aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2007-01-05trans-array.c (gfc_trans_array_constructor_value): Make the static const ↵Roger Sayle3-0/+8
"data" array as TREE_READONLY. * trans-array.c (gfc_trans_array_constructor_value): Make the static const "data" array as TREE_READONLY. * trans-stmt.c (gfc_trans_character_select): Likewise. From-SVN: r120501
2007-01-05trans-array.c (gfc_conv_loop_setup): Test whether the loop stride is one...Roger Sayle2-2/+10
* trans-array.c (gfc_conv_loop_setup): Test whether the loop stride is one, to avoid fold_build2 introducing a useless NON_LVALUE_EXPR node. From-SVN: r120500
2007-01-05re PR c++/27826 (ICE in copy_to_mode_reg)Richard Guenther4-4/+28
2007-01-05 Richard Guenther <rguenther@suse.de> PR middle-end/27826 * tree.c (get_narrower): Do not construct COMPONENT_REFs with mismatched types. Instead explicitly build a conversion NOP_EXPR. * g++.dg/opt/pr27826.C: New testcase. From-SVN: r120498
2007-01-05symbol.c (check_conflict): Fix error message.Tobias Burnus2-1/+5
2007-01-05 Tobias Burnus <burnus@net-b.de> * symbol.c (check_conflict): Fix error message. From-SVN: r120496
2007-01-05Makefile.tpl (all-target): Correct @if conditional for target modules.Daniel Jacobowitz5-123/+139
* Makefile.tpl (all-target): Correct @if conditional for target modules. * configure.in: Omit libiberty if building only target libgcc. * configure, Makefile.in: Regenerated. From-SVN: r120494
2007-01-05c-common.c (decl_with_nonnull_addr_p): New function.Ian Lance Taylor11-22/+293
./: * c-common.c (decl_with_nonnull_addr_p): New function. (c_common_truthvalue_conversion): Call it. * c-typeck.c (build_binary_op): Likewise. * c-common.h (decl_with_nonnull_addr_p): Declare. cp/: * typeck.c (build_binary_op): Warn about comparing a non-weak address to NULL. testsuite/: * gcc.dg/Walways-true-1.c: New test. * gcc.dg/Walways-true-2.c: New test. * g++.dg/warn/Walways-true-1.C: New test. * g++.dg/warn/Walways-true-2.C: New test. From-SVN: r120493
2007-01-05* Makefile.in (install): Handle multilibs.Daniel Jacobowitz2-0/+6
From-SVN: r120492
2007-01-05re PR c/30360 (Complex divide bug)Jakub Jelinek4-1/+37
PR c/30360 * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of denom against 0.0. * gcc.dg/pr30360.c: New test. From-SVN: r120486
2007-01-05re PR fortran/23232 ([4.1 only] DATA implied DO variables)Paul Thomas11-25/+193
2007-01-05 Paul Thomas <pault@gcc.gnu.org> PR fortran/23232 * decl.c (gfc_in_match_data, gfc_set_in_match_data): New functions to signal that a DATA statement is being matched. (gfc_match_data): Call gfc_set_in_match_data on entry and on exit. * gfortran.h : Add prototypes for above. * expr.c (check_init_expr): Avoid check on parameter or variable if gfc_in_match_data is true. (gfc_match_init_expr): Do not call error on non-reduction of expression if gfc_in_match_data is true. PR fortran/27996 PR fortran/27998 * decl.c (gfc_set_constant_character_len): Add boolean arg to flag array constructor resolution. Warn if string is being truncated. Standard dependent error if string is padded. Set new arg to false for all three calls to gfc_set_constant_character_len. * match.h : Add boolean arg to prototype for gfc_set_constant_character_len. * gfortran.h : Add warn_character_truncation to gfc_options. * options.c (set_Wall): Set warn_character_truncation if -Wall is set. * resolve.c (resolve_code): Warn if rhs string in character assignment has to be truncated. * array.c (gfc_resolve_character_array_constructor): Set new argument to true for call to gfc_set_constant_character_len. 2007-01-05 Paul Thomas <pault@gcc.gnu.org> PR fortran/23232 * gfortran.dg/data_implied_do_1.f90: New test. PR fortran/27996 PR fortran/27998 * gfortran.dg/char_length_1.f90: New test. From-SVN: r120485
2007-01-05install.texi (Final install): Document the fact that the GNAT runtime should ↵Joel Brobecker2-1/+9
not be stripped. * doc/install.texi (Final install): Document the fact that the GNAT runtime should not be stripped. From-SVN: r120484
2007-01-05pt.c (tsubst): Propagate the need for structural equality checks when...Douglas Gregor2-0/+7
2007-01-04 Douglas Gregor <doug.gregor@gmail.com> * pt.c (tsubst): Propagate the need for structural equality checks when reducing the level of template parameters. From-SVN: r120483
2007-01-05re PR middle-end/28116 (ICE when building konverter with gcc-4.1 with -O3 [RSO])Richard Biener2-1/+25
2007-01-05 Richard Guenther <rguenther@suse.de> PR middle-end/28116 * g++.dg/opt/pr28116.C: New testcase. From-SVN: r120482
2007-01-05tree-inline.c (fold_marked_statements): Update operand caches and EH after ↵Jan Hubicka2-1/+14
folding * tree-inline.c (fold_marked_statements): Update operand caches and EH after folding From-SVN: r120477
2007-01-05re PR fortran/29624 (Fortran 2003: Support intent for pointers)Tobias Burnus13-65/+304
fortran/ 2007-01-05 Tobias Burnus <burnus@net-b.de> PR fortran/29624 * interface.c (compare_parameter_intent): New function. (check_intents): Support pointer intents. * symbol.c (check_conflict): Support pointer intents, better conflict_std message. * expr.c (gfc_check_assign,gfc_check_pointer_assign): Support pointer intents. * resolve.c (resolve_deallocate_expr,resolve_allocate_expr): Support pointer intents. testsuite/ 2006-01-05 Tobias Burnus <burnus@net-b.de> PR fortran/29624 * gfortran.dg/alloc_alloc_expr_1.f90: Add check for invalid deallocate. * gfortran.dg/allocatable_dummy_2.f90: Update dg-error. * gfortran.dg/protected_4.f90: Add pointer intent check. * gfortran.dg/protected_6.f90: Add pointer intent check. * gfortran.dg/pointer_intent_1.f90: New test. * gfortran.dg/pointer_intent_2.f90: New test. * gfortran.dg/pointer_intent_3.f90: New test. From-SVN: r120472
2007-01-05crontab: Spread snapshots more evenly throughout the week, and in ↵Gerald Pfeifer2-4/+9
"ascending" order. * crontab: Spread snapshots more evenly throughout the week, and in "ascending" order. Build all at the same time of the day. From-SVN: r120471
2007-01-05* c-common.c (check_function_nonnull): Whitespace fix.Ian Lance Taylor2-4/+8
From-SVN: r120470
2007-01-05tree-optimize.c (execute_fixup_cfg): Correct previously mistakely comitted ↵Jan Hubicka2-12/+20
older version of patch. * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely comitted older version of patch. (pass_fixup_cfg): Add TODOs to verify flow and statements, dump function, celanup cfg and collect garbage. From-SVN: r120469
2007-01-04re PR fortran/30371 (kill suboutine accepts (invalid) array arguments.)Brooks Moses2-0/+12
PR 30371 * check.c (gfc_check_kill_sub): Add checks for non-scalar arguments. From-SVN: r120468
2007-01-04intrinsic.texi: Minor cleanup, reflowing overlong paragraphs, and correcting ↵Brooks Moses2-26/+51
whitespace. * intrinsic.texi: Minor cleanup, reflowing overlong paragraphs, and correcting whitespace. From-SVN: r120467
2007-01-04intrinsic.texi (LBOUND): Add documentation.Brooks Moses2-46/+173
* intrinsic.texi (LBOUND): Add documentation. (LGE): Add documentation. (LGT): Add documentation. (LINK): Add documentation. (LLE): Add documentation. (LLT): Add documentation. (LNBLNK): Add documentation. (UBOUND): Add documentation. (UNLINK): Add documentation. From-SVN: r120466
2007-01-05Makefile.in (mostlyclean): Don't remove libgcc anymore.Mike Stump2-2/+5
* Makefile.in (mostlyclean): Don't remove libgcc anymore. (clean): Likewise. From-SVN: r120465
2007-01-05Daily bump.GCC Administrator1-1/+1
From-SVN: r120463
2007-01-05Revert revision 120457.Ben Elliston2-6/+1
From-SVN: r120458
2007-01-05strstream.cc (strstreambuf::seekoff): Add parentheses around truth ↵Ben Elliston2-1/+6
expression to eliminate a new warning from g++. * src/strstream.cc (strstreambuf::seekoff): Add parentheses around truth expression to eliminate a new warning from g++. From-SVN: r120457
2007-01-04* Makefile.in: Added .PHONY entry for documentation targets.Brooks Moses2-0/+6
From-SVN: r120456
2007-01-04* Makefile.in: Add empty info, html, dvi, pdf targets.Brooks Moses2-0/+13
From-SVN: r120455
2007-01-04libgcc2.c (__bswapsi2): Use SItype.Eric Christopher3-11/+17
2007-01-04 Eric Christopher <echristo@apple.com> * libgcc2.c (__bswapsi2): Use SItype. (__bswapdi2): Use DItype. * libgcc2.h: Update for above. From-SVN: r120454
2007-01-04arm.md (arm_mulsi3, [...]): Make conditional on !arm_arch6.Paul Brook2-13/+198
2007-01-04 Paul Brook <paul@codesourcery.com> * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0, mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0, mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3, umulsidi3, umulsidi3adddi, smulsi3_highpart, umulsi3_highpart): Make conditional on !arm_arch6. (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6, mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6, mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6, umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6, umulsi3_highpart_v6): New insns. From-SVN: r120453
2007-01-04intrinsic.texi (IAND): Clarify argument specifications.Brooks Moses2-67/+200
* intrinsic.texi (IAND): Clarify argument specifications. (IBCLR): Add documentation. (IBITS): Add documentation. (IBSET): Add documentation. (IEOR): Add documentation. (IERRNO): Add documentation. (INDEX): Add documentation. (IOR): Add documentation. (ISHFT): Add documentation. (ISHFTC): Add documentation. (KILL): Add documentation. (LEN_TRIM): Add documentation. From-SVN: r120452
2007-01-04fold-const.c (fold_convert): When casting an expression to void...Roger Sayle2-1/+11
* fold-const.c (fold_convert): When casting an expression to void, fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't have a type. Instead of attempting to build a NOP_EXPR, return these "special" trees directly. From-SVN: r120451
2007-01-04Makefile.in (MAKEINFO): Remove.Mike Stump2-2/+5
* Makefile.in (MAKEINFO): Remove. (PERL): Likewise. From-SVN: r120450
2007-01-04configure.ac: Add GCC_TOPLEV_SUBDIRS.Paolo Bonzini4-1653/+2197
2007-01-04 Paolo Bonzini <bonzini@gnu.org> * configure.ac: Add GCC_TOPLEV_SUBDIRS. * configure: Regenerate. * Makefile.in (host_subdir): Substitute it. (gcc_objdir): Use it. From-SVN: r120449
2007-01-04re PR fortran/30235 ([4.1 only] missing alternate return argument with ↵Brooks Moses4-0/+27
explicit interface causes segfault) fortran/ PR 30235 * interface.c (compare_actual_formal): check for alternate returns when iterating over non-present arguments. testsuite/ PR 30235 * gfortran.dg/altreturn_2.f90: new test. From-SVN: r120447
2007-01-04* invoke.texi: Update manpage copyright to include 2007.Brooks Moses2-1/+5
From-SVN: r120445
2007-01-04gfortran.texi: Update copyright to include 2007.Brooks Moses4-3/+9
* gfortran.texi: Update copyright to include 2007. * intrinsic.texi: Update copyright to include 2007. * invoke.texi: Update copyright to include 2007. From-SVN: r120444
2007-01-04* config.host (ia64*-*-linux*): Set tmake_file.Daniel Jacobowitz2-0/+5
From-SVN: r120443
2007-01-04rs6000.c (rs6000_rtx_costs): Make adjustment for MULT inside MINUS as either ↵Joseph Myers2-2/+9
argument. * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for MULT inside MINUS as either argument. Use rs6000_cost->dmul - rs6000_cost->fp not 0 as adjustment for outer NEG. From-SVN: r120442
2007-01-04re PR preprocessor/28165 (_Pragma GCC system_header broken)Tom Tromey5-7/+32
libcpp PR preprocessor/28165: * internal.h (cpp_in_primary_file): New function. * directives.c (do_include_next): Use cpp_in_primary_file. (do_pragma_once): Likewise. (do_pragma_system_header): Likewise. gcc/testsuite PR preprocessor/28165: * gcc.dg/cpp/pr28165.c: New file. From-SVN: r120441
2007-01-04* Makefile.in (version): Define.Daniel Jacobowitz2-0/+6
From-SVN: r120440
2007-01-04commit changelog entry for last commitPaolo Bonzini1-0/+5
From-SVN: r120439
2007-01-04cgraph.c (cgraph_release_function_body): New function.Jan Hubicka8-25/+54
* cgraph.c (cgraph_release_function_body): New function. (cgraph_remove_node): Use it. * cgraph.h (cgraph_release_function_body): Declare. * cgraphunit.c (cgraph_expand_function): Use it. * ipa.c (cgraph_remove_unreahchable_nodes): Use it. * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing is initialized and while compilation of other function is running. * tree-optimize.c (execute_free_cfg_annotations): Move code to clear statement CFG annotations from here to ... * tree-cfg.c (delete_tree_cfg_annotations): ... here. From-SVN: r120437
2007-01-04cfgloop.h (enum li_flags): Make the constants powers of two.Zdenek Dvorak2-5/+9
* cfgloop.h (enum li_flags): Make the constants powers of two. From-SVN: r120433
2007-01-04configure.in: Use DEV-PHASE to detect the default for --enable-werror.Paolo Bonzini2-3/+9
2007-01-04 Paolo Bonzini <bonzini@gnu.org> * configure.in: Use DEV-PHASE to detect the default for --enable-werror. * configure: Regenerate. From-SVN: r120432
2007-01-04re PR fortran/30276 (gfortran include problem)Tobias Burnus2-5/+14
2007-01-02 Tobias Burnus <burnus@net-b.de> Jakub Jelinek <jakub@redhat.com> PR fortran/30276 * scanner.c (open_included_file): Revert patch. (gfc_open_included_file): Support absolute pathnames. (gfc_open_intrinsic_module): Support absolute pathnames. Co-Authored-By: Jakub Jelinek <jakub@redhat.com> From-SVN: r120431
2007-01-04tree-inline.c (copy_bb): Insert new statements to statements_to_fold set.Jan Hubicka3-0/+49
* tree-inline.c (copy_bb): Insert new statements to statements_to_fold set. (fold_marked_statements): New function. (optimize_inline_calls, tree_function_versioning): Fold new statements. * tree-inline.h (copy_body_data): Add statemetns_to_fold. From-SVN: r120430
2007-01-04Makefile.def (target_modules): Add libgcc.Daniel Jacobowitz49-1471/+7593
./ * Makefile.def (target_modules): Add libgcc. (lang_env_dependencies): Remove default items. Use no_c and no_gcc. * Makefile.tpl (clean-target-libgcc): Delete. (configure-target-[+module+]): Emit --disable-bootstrap dependencies on gcc even for bootstrapped modules. Rewrite handling of lang_env_dependencies to loop over target_modules. * configure.in (target_libraries): Add target-libgcc. * Makefile.in, configure: Regenerated. gcc/ * config.gcc: Mention libgcc/config.host. * Makefile.in: Update comments mentioning libgcc. (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete. (all.cross, start.encap, rest.encap, rest.cross): Update dependencies for libgcc move. (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib) (clean-target, clean-target-libgcc): Delete. (srcdirify, GCC_EXTRA_PARTS): New macros. (libgcc-support, libgcc.mvars): New rules. (distclean): Remove mention of mklibgcc. (install): Don't reference INSTALL_LIBGCC. (install-common): Don't reference EXTRA_PARTS. (install-libgcc, install-multilib): Delete rules. * mklibgcc.in: Delete file. * doc/configfiles.texi: Don't mention mklibgcc. * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc). * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise. * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise. * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES) (mklibgcc, ldblspecs): Likewise. * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def) (posixpre.def): Use $(T). (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP) (SHLIB_SRC, SHLIB_INSTALL): Delete. (SHLIB_LINK): Make dummy. * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK. * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear. * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS. * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30, config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos, config/rs6000/t-newas, config/sparc/t-elf: Likewise. * configure.ac (all_outputs): Remove mklibgcc. * configure: Regenerated. libgcc/ * Makefile.in, config/i386/t-darwin, config/i386/t-darwin64, config/i386/t-nwld, config/rs6000/t-darwin, config/rs6000/t-ldbl128, config/i386/t-crtfm, config/alpha/t-crtfm, config/ia64/t-ia64, config/sparc/t-crtfm, config/t-slibgcc-darwin, config/rs6000/t-ppccomm, config.host, configure.ac, empty.mk, shared-object.mk, siditi-object.mk, static-object.mk: New files. * configure: Generated. Co-Authored-By: Paolo Bonzini <bonzini@gnu.org> From-SVN: r120429
2007-01-03* gfortran.texi (GNU Fortran and GCC): RewriteBrooks Moses2-43/+33
From-SVN: r120428
2007-01-03gfortran.texi (Introduction): Lower "Part I...Brooks Moses3-30/+60
* gfortran.texi (Introduction): Lower "Part I: Introduction" to a chapter, renumber Parts II and III to Parts I and II. * intrinsic.texi (Introduction): Rename to "Introduction to Intrinsics" to avoid conflict with the new chapter. From-SVN: r120427
2007-01-03* intrinsic.texi (Introduction): Rewrite first paragraph.Brooks Moses2-7/+11
From-SVN: r120426
2007-01-04re PR middle-end/29683 (Arg split between stack/regs can cause stack corruption)Josh Conner4-8/+94
2007-03-01 Josh Conner <jconner@apple.com> PR middle-end/29683 * calls.c (compute_argument_addresses): Set stack and stack_slot for partial args, too. (store_one_arg): Use locate.size.constant for the size when generating a save_area. 2007-03-01 Josh Conner <jconner@apple.com> PR middle-end/29683 * gcc.dg/pr29683.c: New. From-SVN: r120425