aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2006-10-02re PR fortran/29210 ([4.1 only] Name parameter in complex constant not ↵Francois-Xavier Coudert4-0/+26
allowed in F95) PR fortran/29210 * primary.c (match_sym_complex_part): Named constants as real or imaginary part of complex a named constant are only allowed in Fortran 2003. * gfortran.dg/complex_parameter_1.f90: New test. From-SVN: r117368
2006-10-02re PR c/29154 (*(* ppointer++)++ = *pointer++ generates bad code)Jakub Jelinek4-2/+63
PR c/29154 * gimplify.c (gimplify_self_mod_expr): Run inner expression's post side effects after the outer expression's post side effects. * gcc.c-torture/execute/20060929-1.c: New test. From-SVN: r117366
2006-10-02re PR c++/29105 (segfault in add_candidates with a non template base class ↵Mark Mitchell4-10/+25
and a template member function) PR c++/29105 * pt.c (tsubst_baselink): Substituteinto the qualifying scope. * semantics.c (baselink_for_fns): Build a baselink, even when processing a template. PR c++/29105 * g++.dg/template/member6.C: New test. * g++.dg/parse/typename7.C: Adjust error markers. From-SVN: r117361
2006-10-02re PR c++/29080 (Multiple-inheritance with template method function code ↵Mark Mitchell4-1/+37
triggers "internal compiler error: in build_base_path, at cp/class.c:273") PR c++/29080 * parser.c (cp_parser_postfix_dot_deref_expression): Use BASELINK_ACCESS_BINFO as the qualifying scope when calling adjust_result_of_qualified_name_lookup. PR c++/29080 * g++.dg/template/member7.C: New test. From-SVN: r117360
2006-10-02Daily bump.GCC Administrator1-1/+1
From-SVN: r117357
2006-10-01tree.h (DECL_FIELD_OFFSET, [...]): Fix comments to reflect actual behavior ↵Sandra Loosemore3-8/+28
and relationship between... 2006-10-01 Sandra Loosemore <sandra@codesourcery.com> * gcc/tree.h (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET): Fix comments to reflect actual behavior and relationship between DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET, and DECL_OFFSET_ALIGN. * gcc/doc/c-tree.texi (Working with declarations): Fix documentation of FIELD_DECL likewise. From-SVN: r117352
2006-10-01gfortran.texi: Corrected references to MALLOC intrinsic.Brooks Moses3-43/+35
2006-10-01 Brooks Moses <bmoses@stanford.edu> * gfortran.texi: Corrected references to MALLOC intrinsic. * invoke.texi: Minor cleanup and clarification to the Dialect Options section. From-SVN: r117350
2006-10-01re PR c/20533 (documentation: attribute 'used', applied to a variable)Ryan Mansfield2-0/+9
2006-10-01 Ryan Mansfield <rmansfield@qnx.com> PR c/20533 * doc/extend.texi: Add used variable attribute description. From-SVN: r117349
2006-10-01invoke.texi: Add mention of BOZ constants and integer overflow to ↵Brooks Moses3-10/+31
-fno-range-check. 2006-09-30 Brooks Moses <bmoses@stanford.edu> * invoke.texi: Add mention of BOZ constants and integer overflow to -fno-range-check. * fortran.texi: Add mention of -fno-range-check to section on BOZ contants. From-SVN: r117342
2006-10-01Daily bump.GCC Administrator1-1/+1
From-SVN: r117340
2006-09-30re PR c/24010 (Duplicate C99 dot initializer warning missing)Joseph Myers9-2/+134
PR c/24010 * c.opt (Woverride-init): New. * c-opts.c (c_common_post_options): Default warn_override_init to extra_warnings. * c-typeck.c (add_pending_init, output_init_element): Warn for overriding initializers without side effects. * doc/invoke.texi (-Woverride-init): Document. (-Wextra): Update. testsuite: * gcc.dg/Woverride-init-1.c, gcc.dg/Woverride-init-2.c, gcc.dg/Woverride-init-3.c: New tests. From-SVN: r117334
2006-09-30resolve.c: Fix commentary typo.Bernhard Fischer2-27/+31
2006-09-30 Bernhard Fischer <aldot@gcc.gnu.org> * resolve.c: Fix commentary typo. Fix whitespace. From-SVN: r117332
2006-09-30re PR rtl-optimization/28096 (fdlibm/strtod.c miscompiled at -O2)Eric Botcazou4-3/+63
PR rtl-optimization/28096 * ifcvt.c (check_cond_move_block): Return FALSE if the source of an assignment has already been used as a destination earlier in the block. From-SVN: r117331
2006-09-30Daily bump.GCC Administrator1-1/+1
From-SVN: r117326
2006-09-29re PR libfortran/18791 (CABS specifics declared of wrong type)Francois-Xavier Coudert3-3/+319
PR fortran/18791 * gfortran.dg/specifics_1.f90: New test. * gfortran.fortran-torture/execute/specifics.f90: Add tests for complex specifics. * m4/specific.m4: Special-case cabs so that its return type is real. Special-case conjg so that their suffices are _4, _8, _10 and _16 instead of _c4, _c8, _c10 and _c16. * intrinsics/f2c_specifics.F90: Special-case conjg functions so that their suffices are _4 and _8 instead of _c4 and _c8. * generated/_conjg_c4.F90: Regenerate. * generated/_conjg_c8.F90: Regenerate. * generated/_conjg_c10.F90: Regenerate. * generated/_conjg_c16.F90: Regenerate. * generated/_abs_c4.F90: Regenerate. * generated/_abs_c8.F90: Regenerate. * generated/_abs_c10.F90: Regenerate. * generated/_abs_c16.F90: Regenerate. From-SVN: r117317
2006-09-29pthread-init-1.c, [...]: New.Kaveh R. Ghazi4-0/+51
* gcc.dg/pthread-init-1.c, pthread-init-2.c, pthread-init-common.h: New. From-SVN: r117314
2006-09-29nearest_1.f90: Add -ffloat-store to defeat extra precision on some archs.Steven G. Kargl2-1/+7
2006-09-29 Steven G. Kargl <kargl@gcc.gnu.org> * gfortran.dg/nearest_1.f90: Add -ffloat-store to defeat extra precision on some archs. From-SVN: r117309
2006-09-29Fix nits.Eric Botcazou1-3/+3
From-SVN: r117300
2006-09-29decl.c (gnat_to_gnu_entity): Do not set "const" flag on "pure" Ada ↵Eric Botcazou5-4/+34
subprograms if SJLJ exceptions are used. * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag on "pure" Ada subprograms if SJLJ exceptions are used. * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING on the declaration node of JMPBUF_SAVE. * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception. * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS. From-SVN: r117299
2006-09-29builtins.c (expand_builtin_setjmp): Delete.Eric Botcazou17-180/+708
* builtins.c (expand_builtin_setjmp): Delete. (expand_builtin) <BUILT_IN_SETJMP>: Mark as unreachable. <BUILT_IN_SETJMP_SETUP>: New case. <BUILT_IN_SETJMP_DISPATCHER>: Likewise. <BUILT_IN_SETJMP_RECEIVER>: Likewise. * builtins.def (BUILT_IN_SETJMP_SETUP): New built-in stub. (BUILT_IN_SETJMP_DISPATCHER): Likewise. (BUILT_IN_SETJMP_RECEIVER): Likewise. * gimple-low.c (struct lower_data): New field calls_builtin_setjmp. (lower_function_body): Initialize it to false. If it is set to true at the end of the processing, emit the setjmp dispatcher. (lower_stmt) <CALL_EXPR>: Invoke lower_builtin_setjmp if the callee is __builtin_setjmp and set calls_builtin_setjmp to true as well. <MODIFY_EXPR>: Fall through to above case if there is a CALL_EXPR on the rhs of the assignment. (lower_builtin_setjmp): New function. * tree.c (build_common_builtin_nodes): Build BUILT_IN_SETJMP_SETUP, BUILT_IN_SETJMP_DISPATCHER and BUILT_IN_SETJMP_RECEIVER nodes. * tree-cfg.c (make_exit_edges) <CALL_EXPR>: Use specific predicate to detect calls that can go to non-local labels. Use specific helper to create the abnormal edges associated with them. <MODIFY_EXPR>: Likewise. (make_abnormal_goto_edges): New function extracted from... (make_goto_expr_edges): ...here. Call it for computed gotos. (simple_goto_p): Minor tweak. (tree_can_make_abnormal_goto): New predicate. (tree_redirect_edge_and_branch): Return zero on all abnormal edges. (tree_purge_dead_abnormal_call_edges): New function. * tree-flow.h (tree_can_make_abnormal_goto): Declare. (tree_purge_dead_abnormal_call_edges): Likewise. (make_abnormal_goto_edges): Likewise. * tree-inline.c (expand_call_inline): Simplify statement frobbing. Purge all dead abnormal edges if the call was in the last statement. * tree-optimize.c (has_abnormal_outgoing_edge_p): New predicate. (execute_fixup_cfg): If there are non-local labels in the function, scan the basic blocks and split them at calls that can go to non-local labels or add missing abnormal call edges. Write down the CFG in the dump file. (pass_fixup_cfg): Remove TODO_dump_func flag. * unwind-sjlj.c: Poison setjmp. * doc/install.texi (enable-sjlj-exceptions): Use more general wording. * doc/tm.texi (DWARF2_UNWIND_INFO): Likewise. (TARGET_UNWIND_TABLES_DEFAULT): Fix typo. (DONT_USE_BUILTIN_SETJMP): Document it. From-SVN: r117298
2006-09-29arith.c (gfc_check_integer_range): Disable range checking via -fno-range-check.Steven G. Kargl2-0/+10
2006-09-28 Steven G. Kargl <kargl@gcc.gnu.org> fortran/29147 * arith.c (gfc_check_integer_range): Disable range checking via -fno-range-check. From-SVN: r117297
2006-09-29re PR target/28617 (___divti3 and ___umodti3 undefined for -m64 on ↵Geoffrey Keating4-2/+13
powerpc-apple-darwin8) PR target/28617 * config/rs6000/rs6000.h [IN_LIBGCC2] (TARGET_POWERPC64): Define to 1 when __ppc64__ is defined. * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Add ppc64-fp.c and darwin-64.c. * config/rs6000/ppc64-fp.c: Also compile when __ppc64__ is defined. From-SVN: r117296
2006-09-29Daily bump.GCC Administrator1-1/+1
From-SVN: r117294
2006-09-28t-hpux (LIB2FUNCS_EXTRA): Remove unwind-hpux.c.Steve Ellcey3-43/+6
* config/ia64/t-hpux (LIB2FUNCS_EXTRA): Remove unwind-hpux.c. * config/ia64/unwind-hpux.c: Delete. From-SVN: r117290
2006-09-28arith.c: Change conditional test for inclusion of arctangent().Steven G. Kargl3-8/+20
2006-09-28 Steven G. Kargl <kargl@gcc.gnu.org> * arith.c: Change conditional test for inclusion of arctangent(). (gfc_check_real_range): Change conditional test for use of mpfr_subnormalize. * simplify.c (gfc_simplify_atan2): Fix conditional for use of mpfr_atan2() instead of arctangent(). (gfc_simplify_exponent): Fix conditional for use of mpfr_get_exp(). (gfc_simplify_log): Fix conditional for use of mpfr_atan2() instead of arctangent(). (gfc_simplify_nearest): Fix conditional for use of mpfr_nextafter(). From-SVN: r117289
2006-09-28gimplify.c (gimplify_init_ctor_preeval): Call maybe_with_size_expr on the ↵Eric Botcazou4-3/+38
element before gimplifying it... * gimplify.c (gimplify_init_ctor_preeval): Call maybe_with_size_expr on the element before gimplifying it, instead of punting if it is of variable size. From-SVN: r117288
2006-09-28loop.texi: New file.Zdenek Dvorak4-1/+557
* doc/loop.texi: New file. * doc/gccint.texi: Reference loop.texi. * Makefile.in (loop.texi): Add. From-SVN: r117277
2006-09-28darwin.h (ENABLE_EXECUTE_STACK): New, use getpagesize not __sysctl.Geoffrey Keating4-94/+45
* config/darwin.h (ENABLE_EXECUTE_STACK): New, use getpagesize not __sysctl. * config/rs6000/darwin.h (ENABLE_EXECUTE_STACK): Remove. * config/i386/darwin.h (ENABLE_EXECUTE_STACK): Remove. From-SVN: r117274
2006-09-28sh.md (divsi_inv_m0): Remove unused variable.Kaz Kojima2-1/+4
* config/sh/sh.md (divsi_inv_m0): Remove unused variable. From-SVN: r117272
2006-09-28Daily bump.GCC Administrator1-1/+1
From-SVN: r117263
2006-09-27re PR fortran/28276 (EXPONENT() broken for real constants)Steven G. Kargl9-32/+173
* configure.in: Check for GMP 4.1 or newer. Check for MPFR 2.2.0 or newer. * configure: Regenerated. * doc/install.texi: Document required versions of GMP and MPFR. * fortran/arith.c: Conditionally include arctangent2(). (gfc_check_real_range): Use mpfr_subnormalize in preference to local hack. * fortran/trans-intrinsic.c (gfc_get_intrinsic_lib_fndecl): Append l for long double functions. * fortran/simplify.c: Wrap Copyright to new line. (gfc_simplify_atan2): Use mpfr_atan2 in preference to arctangent2(). (gfc_simplify_log): Ditto. PR fortran/28276 * fortran/simplify.c (gfc_simplify_exponent): Use mpfr_get_exp in preference to broken local hack. PR fortran/27021 * fortran/simplify.c (gfc_simplify_nearest): Use mpfr_nexttoward and mpfr_subnormalize to handle numbers near zero in preference to broken local hack. PR fortran/28276 * testsuite/gfortran.dg/exponent_1.f90: New test. PR fortran/27021 * testsuite/gfortran.dg/nearest_1.f90: New test. From-SVN: r117257
2006-09-27re PR target/29230 (gcc-4.1 generates faulty asm on ARM when compiling ↵Paul Brook2-3/+19
openmsx 0.6.1 with -O3) 2006-09-27 Paul Brook <paul@codesourcery.com> PR target/29230 gcc/ * config/arm/arm.md (arith_adjacentmem): Handle large offsets. From-SVN: r117253
2006-09-27reload1.c (alter_reg): Require the alignment of the stack slot to be at ↵Richard Sandiford2-6/+21
least reg_max_ref_width bytes. gcc/ * reload1.c (alter_reg): Require the alignment of the stack slot to be at least reg_max_ref_width bytes. (scan_paradoxical_subregs): Record the largest width in reg_max_ref_width. From-SVN: r117252
2006-09-27Daily bump.GCC Administrator1-1/+1
From-SVN: r117242
2006-09-26re PR middle-end/25261 ([gomp] Nested function calls in #pragma omp parallel ↵Jakub Jelinek4-3/+105
blocks) PR middle-end/25261 PR middle-end/28790 * tree-nested.c (struct nesting_info): Added static_chain_added. (convert_call_expr): Set static_chain_added when adding static chain. Handle OMP_PARALLEL and OMP_SECTION. * gcc.dg/gomp/nestedfn-1.c: New test. * testsuite/libgomp.c/nestedfn-4.c: New test. * testsuite/libgomp.c/nestedfn-5.c: New test. * testsuite/libgomp.fortran/nestedfn3.f90: New test. From-SVN: r117235
2006-09-26re PR fortran/29097 (!$ include 'omp_lib.h' does not work)Jakub Jelinek2-1/+24
PR fortran/29097 * scanner.c (include_line): Handle conditional include. * testsuite/libgomp.fortran/condinc1.f: New test. * testsuite/libgomp.fortran/condinc2.f: New test. * testsuite/libgomp.fortran/condinc3.f90: New test. * testsuite/libgomp.fortran/condinc4.f90: New test. * testsuite/libgomp.fortran/condinc1.inc: New file. From-SVN: r117234
2006-09-26re PR objc/29195 (ICE in expand_expr_real_1, at expr.c:6932)Andrew Pinski4-12/+46
2006-09-26 Andrew Pinski <pinskia@physics.uc.edu> PR objc/29195 * objc-act.c (objc_push_parm): If we change the type of the decl, relayout the decl. 2006-09-26 Andrew Pinski <pinskia@physics.uc.edu> PR objc/29195 * objc/compile/method-1.m: New test. From-SVN: r117229
2006-09-26Daily bump.GCC Administrator1-1/+1
From-SVN: r117219
2006-09-25invoke.texi: Add missing full stop.Matthias Klose2-1/+5
2006-09-25 Matthias Klose <doko@debian.org> * doc/invoke.texi: Add missing full stop. From-SVN: r117211
2006-09-25re PR c++/27667 (ICE with in-class specialization)Lee Millward7-11/+49
PR c++/27667 * cp-tree.h (begin_specialization): Return bool instead of void. * pt.c (check_specialization_scope): Likwise. Adjust comment. Return false if a specialization isn't permitted in the current scope,. (begin_specialization): Use the return value of check_specialization_scope. * parser.c (cp_parser_explicit_specialization): If begin_specialization returned false, skip the rest of the specialization. * g++.dg/template/spec33.C: New test. * g++.old-deja/g++.pt/spec20.C: Adjust error markers. From-SVN: r117206
2006-09-25re PR c++/27329 (ICE with misplaced expression)Lee Millward11-14/+71
PR c++/27329 PR c++/26938 * cp-tree.h (redeclare_class_template): Adjust declaration to return bool instead of void. * pt.c (redeclare_class_template): Update definition. Return false on error. * decl.c (xref_tag): Return error_mark_node if redeclare_class_template returned false. * g++.dg/template/crash58.C: New test. * g++.dg/template/crash59.C: New test. * g++.dg/parse/crash28.C: Adjust error markers. * g++.dg/template/crash34.C: Likewise. * g++.dg/template/friend31.C: Likewise. * g++.dg/template/crash32.C: Likewise. From-SVN: r117205
2006-09-25cgraph.c (dump_cgraph_varpool_node): Don't crash if called before ↵Richard Henderson2-1/+9
cgraph_function_flags_ready. * cgraph.c (dump_cgraph_varpool_node): Don't crash if called before cgraph_function_flags_ready. From-SVN: r117203
2006-09-25* ChangeLog: attribute change to its author :)Tobias Schluter1-1/+1
From-SVN: r117192
2006-09-25re PR fortran/21203 (gfortran doesn't work on targets/variants without two ↵Tobias Schluter2-1/+7
floating point types) PR fortran/21203 * error.c (show_loci): No need to risk an ICE to output a slightly nicer error message. From-SVN: r117191
2006-09-25Daily bump.GCC Administrator1-1/+1
From-SVN: r117189
2006-09-24ivopts-1.c: New test.Zdenek Dvorak3-0/+56
* gcc.dg/tree-ssa/ivopts-1.c: New test. * gcc.dg/tree-ssa/ivopts-2.c: New test. Co-Authored-By: Adam Nemet <anemet@caviumnetworks.com> From-SVN: r117183
2006-09-24tree-ssa-loop-ivopts.c (aff_combination_convert, [...]): New functions.Zdenek Dvorak2-8/+105
* tree-ssa-loop-ivopts.c (aff_combination_convert, determine_common_wider_type): New functions. (get_computation_aff): Use them to simplify arithmetic between UBASE and CBASE if they are shortened from the same type. Co-Authored-By: Adam Nemet <anemet@caviumnetworks.com> From-SVN: r117182
2006-09-24re PR target/28911 (Cross compiler build for m68k--elf fails on ↵Kazu Hirata4-3/+27
x86_64-linux-gnu) gcc/ PR target/28911 * config/m68k/m68k.md (negsf2, negdf2, negxf2): Use -2147483647 - 1 instead of 0x80000000. gcc/testsuite/ PR target/28911 * gcc.dg/pr28911.c: New. From-SVN: r117181
2006-09-24Daily bump.GCC Administrator1-1/+1
From-SVN: r117176
2006-09-23flags.h (HONOR_NANS): Fix typo in comment.Revital Eres2-1/+5
gcc/ 2001-01-01 Revital1 Eres <ERES@il.ibm.com> * flags.h (HONOR_NANS): Fix typo in comment. From-SVN: r117172