1. 16 Mar, 2007 13 commits
  2. 15 Mar, 2007 21 commits
    • tree-ssa-loop-niter.c (refine_bounds_using_guard, [...]): Handle NE_EXPR guards. · 17b236ed
      	* tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
      	Handle NE_EXPR guards.
      
      From-SVN: r122963
      Zdenek Dvorak committed
    • re PR c++/30891 (poor diagnostic with namespace in the function scope) · 2ce88bea
      2007-03-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
      
      	PR c++/30891
      cp/
      	* parser.c (cp_parser_statement): If 'namespace' is found, this
      	only can be a namespace alias definition, so parse it now.
      	(cp_parser_namespace_alias_definition): if we find an open brace
      	instead of '=', then this is actually a misplaced namespace
      	definition.
      testsuite/
      	* g++.dg/parse/namespace-definition.C: New.
      
      From-SVN: r122962
      Manuel López-Ibáñez committed
    • re PR c++/24924 (front end and preprocessor pedantic_errors settings should agree) · 9b439fe1
      2007-03-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
      
      	PR c++/24924
      	* c-opts.c (c_common_post_options): Handle C++ post-processing here.
      	Set also -pedantic-errors by default for the  preprocessor unless
      	-fpermissive is given.
      cp/
      	* decl.c (cxx_init_decl_processing): Move command-line options
      	processing to c-opts.c.
      testsuite/
      	* g++.dg/cpp/pedantic-errors.C: New.
      	* g++.dg/cpp/permissive.C: New.
      
      From-SVN: r122961
      Manuel López-Ibáñez committed
    • mmx1.C: Only use the PIC options for fpic targets. · 71afac1d
      gcc/testsuite/
      	* g++.dg/opt/mmx1.C: Only use the PIC options for fpic targets.
      	* g++.old-deja/g++.other/store-expr1.C: Require fpic.
      
      From-SVN: r122960
      Richard Sandiford committed
    • gcc/testsuite/ · e6625c44
      	* lib/target-supports.exp (check_missing_uclibc_feature)
      	(check_effective_target_wchar): New procedures.
      	* gcc.dg/wchar_t-1.c: Require target wchar.
      	* gcc.dg/wint_t-1.c: Likewise.
      
      From-SVN: r122959
      Richard Sandiford committed
    • re PR middle-end/29719 (newlib targets ICEs in expand_builtin_int_roundingfn) · 34a24c11
      2007-03-15  Richard Guenther  <rguenther@suse.de>
      
      	PR middle-end/29719
      	PR middle-end/31161
      	* builtins.c (expand_builtin_int_roundingfn): Always fall
      	back to floor/ceil and its variants even if they may be
      	not available.
      	(expand_builtin_cexpi): As a fallback if we
      	don't have builtins for sincos or cexp create a function
      	declaration for cexp and expand to a call to that.
      
      From-SVN: r122958
      Richard Guenther committed
    • cfglayout.c (fixup_reorder_chain): Postpone deleting dead jump tables... · 49ea3702
      	* cfglayout.c (fixup_reorder_chain): Postpone deleting dead
      	jump tables, move the call to delete_dead_jumptables from here...
      	(cfg_layout_finalize): ...to here.  But rebuild jump labels first.
      	* cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
      	don't allow merging of blocks that try_redirect_by_replacing_jump
      	also does not handle when not optimizing.
      
      From-SVN: r122957
      Steven Bosscher committed
    • ptree.c (cxx_print_type): Use formatting markup for integers when printing template parameter... · 30bcc028
      2007-03-15  Douglas Gregor  <doug.gregor@gmail.com>
      
      	* ptree.c (cxx_print_type): Use formatting markup for integers
      	when printing template parameter index/level/orig level.
      	(cxx_print_xnode): Ditto.
      	* cp-tree.h (TEMPLATE_PARM_PARAMETER_PACK): Use TREE_LANG_FLAG_0.
      	(struct template_parm_index_s): Remove the PARAMETER_PACK member.
      	Make INDEX, LEVEL, and ORIG_LEVEL integers instead of
      	HOST_WIDE_INTs.
      	(struct saved_scope): Make X_PROCESSING_TEMPLATE_DECL an int,
      	rather than a HOST_WIDE_INT.
      	Turn X_PROCESSING_EXPLICIT_INSTANTIATION, SKIP_EVALUATION, and
      	NEED_POP_FUNCTION_CONTEXT into bool bitfields; reorder fields for
      	better bit-packing.
      	(struct language_function): Make RETURNS_VALUE, RETURNS_NULL,
      	RETURNS_ABNORMALLY, IN_FUNCTION_TRY_HANDLER, and
      	IN_BASE_INITIALIZER bool bitfields.
      	(struct cp_declarator): Make KIND a 4-bit field. Make
      	PARAMETER_PACK_P a bool bitfield just after KIND.
      	* pt.c (uses_parameter_packs): Destroy the pointer set.
      	(make_pack_expansion): Ditto.
      	(check_for_bare_parameter_packs): Ditto.
      	* name-lookup.c (push_to_top_level): Make need_pop a bool value.
      
      From-SVN: r122955
      Douglas Gregor committed
    • gfortran.h (gfc_option_t): Add flag_backtrace field. · 868d75db
      	* gfortran.h (gfc_option_t): Add flag_backtrace field.
      	* lang.opt: Add -fbacktrace option.
      	* invoke.texi: Document the new option.
      	* trans-decl.c (gfc_build_builtin_function_decls): Add new
      	option to the call to set_std.
      	* options.c (gfc_init_options, gfc_handle_option): Handle the
      	new option.
      
      	* runtime/backtrace.c: New file.
      	* runtime/environ.c (variable_table): New GFORTRAN_ERROR_BACKTRACE
      	environment variable.
      	* runtime/compile_options.c (set_std): Add new argument.
      	* runtime/main.c (store_exe_path, full_exe_path): New functions.
      	* runtime/error.c (sys_exit): Add call to show_backtrace.
      	* libgfortran.h (options_t): New backtrace field.
      	(store_exe_path, full_exe_path, show_backtrace): New prototypes.
      	* configure.ac: Add checks for execinfo.h, execvp, pipe, dup2,
      	close, fdopen, strcasestr, getrlimit, backtrace, backtrace_symbols
      	and getppid.
      	* Makefile.am: Add runtime/backtrace.c.
      	* fmain.c (main): Add call to store_exe_path.
      	* Makefile.in: Renegerate.
      	* config.h.in: Renegerate.
      	* configure: Regenerate.
      
      From-SVN: r122954
      Francois-Xavier Coudert committed
    • i386.md (x86_sahf_1): Correctly handle HAVE_AS_IX86_SAHF. · 419452fe
             * config/i386/i386.md (x86_sahf_1): Correctly handle
             HAVE_AS_IX86_SAHF.
      
      
      Co-Authored-By: Francois-Xavier Coudert <coudert@clipper.ens.fr>
      
      From-SVN: r122953
      Uros Bizjak committed
    • target-supports.exp (check_gc_sections_available): Return false for VxWorks targets. · 75873b87
      gcc/testsuite/
      	* lib/target-supports.exp (check_gc_sections_available): Return
      	false for VxWorks targets.
      
      From-SVN: r122951
      Richard Sandiford committed
    • libstdc++.exp (v3-build_support): If it exists, use env(AR_FOR_TARGET). · 43e03430
      	* testsuite/lib/libstdc++.exp (v3-build_support) <ar>: If it
      	exists, use env(AR_FOR_TARGET).  Log the command.
      	<ranlib>: Similar.
      
      From-SVN: r122950
      Hans-Peter Nilsson committed
    • Wconversion2.C: Fix typo. · c123d98f
      2007-03-15  Dirk Mueller  <dmueller@suse.de>
      
             * g++.dg/warn/Wconversion2.C: Fix typo.
             * gcc.dg/if-empty-1.c: Ditto.
      
      From-SVN: r122949
      Dirk Mueller committed
    • assert4.c: Treat VxWorks as a unix target. · 211ea300
      gcc/testsuite/
      	* gcc.dg/cpp/assert4.c: Treat VxWorks as a unix target.
      
      From-SVN: r122948
      Richard Sandiford committed
    • cmpxchg16b-1.c: Compile for lp64 targets only. · 2ec612a3
      	* gcc.target/i386/cmpxchg16b-1.c: Compile for lp64 targets only.
      	* gcc.target/i386/pr31167.c: Ditto.
      
      From-SVN: r122947
      Uros Bizjak committed
    • re PR target/31167 (ICE wnen using __int128_t on x86_64) · 68b8830a
              PR target/31167
              * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
              x86_64_general_operand as operand[2] predicate.  Remove "iF"
              from operand constraints and use "e" constraint instead.
              (*subti3_1, *subti3_1 splitter): Ditto.
              (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
              operand[1] predicate.
      
      testsuite/ChangeLog
      
             PR target/31167
             * gcc.target/i386/pr31167.c: New test.
      
      From-SVN: r122945
      Uros Bizjak committed
    • [multiple changes] · 36d3fb4c
      2007-03-15  Tobias Burnus  <burnus@gcc.gnu.org>
      	    Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/30922
      	* decl.c (gfc_match_import): If the parent of the current name-
      	space is null, try looking for an imported symbol in the parent
      	of the proc_name interface.
      	* resolve.c (resolve_fl_variable): Do not check for blocking of
      	host association by a same symbol, if the symbol is in an
      	interface body.
      
      2007-03-15  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/30879
      	* decl.c (match_data_constant): Before going on to try to match
      	a name, try to match a structure component.
      
      
      	PR fortran/30870
      	* resolve.c (resolve_actual_arglist): Do not reject a generic
      	actual argument if it has a same name specific interface.
      
      	PR fortran/31163
      	* trans-array.c (parse_interface): Do not nullify allocatable
      	components if the symbol has the saved attribute.
      
      
      2007-03-15  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/30922
      	* gfortran.dg/import5.f90.f90: New test.
      
      
      	PR fortran/30879
      	* gfortran.dg/data_components_1.f90: New test.
      
      
      	PR fortran/30870
      	* gfortran.dg/generic_13.f90: New test.
      
      	PR fortran/31163
      	* gfortran.dg/alloc_comp_basics_5.f90: New test.
      
      From-SVN: r122944
      Paul Thomas committed
    • re PR fortran/31051 ([4.2 Only] gfortran bug with x and t format descriptors.) · 23dd7383
      2007-03-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libgfortran/31051
      	* gfortran.dg/fmt_t_4.f90: New
      
      From-SVN: r122942
      Jerry DeLisle committed
    • re PR c++/31165 (Error: symbol `an_empty_string' is already defined) · 344bd5a8
      2007-03-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              PR c++/31165
              * call.c  (convert_default_arg): Instead of copying the node,
              unshare it.
      2007-03-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              PR C++/31165
              * g++.dg/other/default7.C: New test.
      
      From-SVN: r122941
      Andrew Pinski committed
    • re PR fortran/31051 ([4.2 Only] gfortran bug with x and t format descriptors.) · 22cbc707
      2007-03-14  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libgfortran/31051
      	* io/transfer.c (formatted_transfer_scalar): Adjust position for pending
      	spaces when in writing mode.  Clean up some formatting.
      
      From-SVN: r122940
      Jerry DeLisle committed
    • Daily bump. · 15ce86a7
      From-SVN: r122938
      GCC Administrator committed
  3. 14 Mar, 2007 6 commits