1. 09 Mar, 2007 13 commits
    • opts.c (common_handle_option): Treat -Wstrict-overflow (with no argument) like -Wstrict-overflow=2. · 4d4362c8
      	* opts.c (common_handle_option): Treat -Wstrict-overflow (with no
      	argument) like -Wstrict-overflow=2.
      	* doc/invoke.texi (Warning Options): Update documentation.
      
      From-SVN: r122753
      Ian Lance Taylor committed
    • cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling fold with the result of buildN. · 9645c3c5
      
      	* cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
      	fold with the result of buildN.
      	* decl.c (gnat_to_gnu_entity): Likewise.
      	* trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
      	* utils.c (finish_record_type, merge_sizes, max_size, convert):
      	Likewise.
      	* utils2.c (gnat_truthvalue_conversion, compare_arrays,
      	nonbinary_modular_operation, build_binary_op, build_unary_op,
      	build_cond_expr): Likewise.
      
      	* utils.c (convert): Use fold_build1 when casting values to void.
      	* utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
      	fold_convert instead of convert when appropriate.
      
      From-SVN: r122752
      Roger Sayle committed
    • re PR c/17946 (wanted: warning for "a && MASK" when "a & MASK" was probably intended) · 63a08740
      2007-03-09  Dirk Mueller  <dmueller@suse.de>
      
             PR c++/17946
             * doc/invoke.texi (-Wlogical-op): Document.
             * common.opt (-Wlogical-op): New.
             * c-common.h (warn_logical_operator): Declare.
             * c-common.c (warn_logical_operator): Define.
             * c-typeck.c (parser_build_binary_op): Call
             warn_logical_operator.
      
             * cp/call.c (build_new_op): Call warn_logical_operator.
      
             * testsuite/gcc.dg/Wlogical-op-1.c: New.
             * testsuite/g++.dg/warn/Wlogical-op-1.C: New.
      
      From-SVN: r122751
      Dirk Mueller committed
    • rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name. · 0de2ae02
      * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
      * final.c (final_scan_insn): Test for non-"" file name.
      
      From-SVN: r122750
      Alexandre Oliva committed
    • loop.texi: Document the Omega linear constraints solver. · 3d8864c0
      	* doc/loop.texi: Document the Omega linear constraints solver.
      	* doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
      	omega-max-geqs, omega-max-eqs, omega-max-wild-cards, 
      	omega-hash-table-size, omega-max-keys, and 
      	omega-eliminate-redundant-constraints.
      	* tree-pass.h (pass_check_data_deps): Declared.
      	* omega.c: New.
      	* omega.h: New.
      	* timevar.def (TV_CHECK_DATA_DEPS): Declared.
      	* tree-ssa-loop.c (check_data_deps, gate_check_data_deps, 
      	pass_check_data_deps): New.
      	* tree-data-ref.c (init_data_ref): Remove declaration.
      	(dump_data_dependence_relation): Dump DDR_INNER_LOOP.
      	(analyze_array): Renamed init_array_ref, move up initializations.
      	(init_data_ref): Renamed init_pointer_ref.  Moved before its call.
      	Removed arguments that are set to NULL.
      	(analyze_indirect_ref): Correct indentation, correct call to 
      	init_pointer_ref.
      	(object_analysis): Call init_array_ref instead of analyze_array.
      	(initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
      	(access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
      	of DR_ACCESS_FNS_ADDR.
      	(init_omega_eq_with_af, omega_extract_distance_vectors, 
      	omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
      	ddr_consistent_p): New.
      	(compute_affine_dependence): Check consistency of ddrs when 
      	flag_check_data_deps is passed.
      	(analyze_all_data_dependences): Uncomment.
      	(tree_check_data_deps): New.
      	* tree-data-ref.h: Include omega.h.
      	(DR_ACCESS_FNS_ADDR): Removed.
      	(data_dependence_relation): Add inner_loop.
      	(DDR_INNER_LOOP): New.
      	* common.opt (fcheck-data-deps): New.
      	* tree-flow.h (tree_check_data_deps): Declare.
      	* Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
      	(OBJS-common): Depend on omega.o.
      	(omega.o): Define.
      	* passes.c (pass_check_data_deps): Scheduled.
      	* params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS, 
      	PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
      	PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
      	PARAM_VECT_MAX_VERSION_CHECKS,
      	PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
      
      From-SVN: r122749
      Sebastian Pop committed
    • re PR tree-optimization/30904 (VRP does not track values of shifts and/or bitfields?) · 6569e716
      2007-03-09  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/30904
      	PR middle-end/31058
      	* tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
      	the same way as *_DIV_EXPR.
      
      	* gcc.dg/pr30904.c: Remove xfail.
      
      From-SVN: r122748
      Richard Guenther committed
    • re PR xml/30831 (Writing (transforming) XML fails) · 8e4425d7
      2007-03-09  Gary Benson  <gbenson@redhat.com>
      	    Chris Burdess  <dog@gnu.org>
      
      	PR classpath/30831
      	* gnu/xml/dom/ls/SAXEventSink.java: Only set extended document
      	properties when reader is available.
      
      
      Co-Authored-By: Chris Burdess <dog@gnu.org>
      
      From-SVN: r122743
      Gary Benson committed
    • rtl.def (ASM_INPUT): Add location. · bff4b63d
      * rtl.def (ASM_INPUT): Add location.
      * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
      (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
      (decode_asm_operands): Add loc operand.
      (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
      * stmt.c (expand_asm): Rename to...
      (expand_asm_loc): ... this.  Add locus argument.  Pass it on to
      gen_rtx_ASM_INPUT_loc.
      (expand_asm_expr): Adjust.
      * recog.c (decode_asm_operands): Add loc operand.
      (check_asm_operands, extract_insn): Adjust.
      * reload1.c (maybe_fix_stack_asms): Likewise.
      * final.c (asm_insn_count): Likewise.
      (final_scan_insn): Output # line before and after asm.
      
      From-SVN: r122742
      Alexandre Oliva committed
    • tree-ssa-structalias.c (variable_info): Remove finished_solution. · 1296c31f
      2007-03-09  Daniel Berlin  <dberlin@dberlin.org>
      
      	* tree-ssa-structalias.c (variable_info): Remove
      	finished_solution.
      	(new_var_info): Ditto.
      	(shared_bitmap_info_t): New structure.
      	(shared_bitmap_table): New variable.
      	(shared_bitmap_hash): New function.
      	(shared_bitmap_eq): Ditto
      	(shared_bitmap_lookup): Ditto.
      	(shared_bitmap_add): Ditto.
      	(merge_smts_into): Change to take bitmap directly.
      	(find_what_p_points_to): Rewrite to use shared bitmap hashtable.
      	(init_alias_vars): Init shared bitmap hashtable.
      	(delete_points_to_sets): Delete shared bitmap hashtable.
      	* tree-ssa-operands.c (add_virtual_operand): Partially revert the
      	is_aliased removal as a change that was still necessary was
      	deleted.
      
      From-SVN: r122741
      Daniel Berlin committed
    • i386.h (override_options): Conditionally disable x86_sahf for 64bit targets only. · 84ac30cb
              * config/i386/i386.h (override_options): Conditionally disable
      	x86_sahf for 64bit targets only.
      
      From-SVN: r122740
      Uros Bizjak committed
    • re PR c/31072 ([4.2 Rgression] Wrong code for volatile var with initalization and optimization) · ee9f69b4
      2007-03-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              PR C/31072
              * c-decl.c (merge_decls): Don't call make_var_volatile.
              * varasm.c (make_var_volatile): Remove.
              * output.h (make_var_volatile): Remove.
      
      2007-03-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
      
              PR C/31072
              * gcc.c-torture/execute/pr31072.c: New test.
      
      From-SVN: r122736
      Andrew Pinski committed
    • Daily bump. · 99681c8b
      From-SVN: r122734
      GCC Administrator committed
  2. 08 Mar, 2007 27 commits
    • intrinsic.texi: (ICHAR) Improve internal I/O note. · 122e35b4
      * intrinsic.texi: (ICHAR) Improve internal I/O note.
      (ACHAR): Reference it.
      (CHAR): Reference it.
      (IACHAR): Reference it.
      
      From-SVN: r122729
      Brooks Moses committed
    • intrinsic.texi: (LINK) Document function form. · 435b0aa2
      * intrinsic.texi: (LINK) Document function form.
      (RENAME): Likewise.
      (SYMLNK): Likewise.
      (SYSTEM): Likewise.
      (UNLINK): Likewise.
      
      From-SVN: r122728
      Brooks Moses committed
    • intrinsic.texi: minor typo fixes, removed prologue. · e3097489
      * intrinsic.texi: minor typo fixes, removed prologue.
      (FSEEK): moved to correct place in alphabetical order.
      
      From-SVN: r122726
      Brooks Moses committed
    • re PR tree-optimization/31085 (internal compiler error: in create_mem_ref, at… · 5f787cbc
      re PR tree-optimization/31085 (internal compiler error: in create_mem_ref, at tree-ssa-address.c:606)
      
      	PR tree-optimization/31085
      	* tree-ssa-address.c (create_mem_ref): Fix test of type of base.
      
      From-SVN: r122724
      Zdenek Dvorak committed
    • decContext.c, [...]: Add libgcc-style license exception clause. · 9d1d1cd4
      	* decContext.c, decContext.h, decDPD.h, decimal128.c,
      	decimal128.h, decimal32.c, decimal32.h, decimal64.c, decimal64.h,
      	decLibrary.c, decNumber.c, decNumber.h, decNumberLocal.h,
      	decRound.c, decRound.h, decUtility.c, decUtility.h: Add
      	libgcc-style license exception clause.
      
      From-SVN: r122722
      Ben Elliston committed
    • re PR fortran/30947 (intrinsic: ALARM) · 02330e19
      2007-03-08  Daniel Franke  <franke.daniel@gmail.com>
      
              PR fortran/30947
              * intrinsics/signal.c (alarm_sub_int): Avoid SEGFAULT with
              integer arguments.
      
      From-SVN: r122716
      Daniel Franke committed
    • re PR fortran/30947 (intrinsic: ALARM) · 32af3784
      2007-03-08  Daniel Franke  <franke.daniel@gmail.com>
      
      	PR fortran/30947
      	* check.c (gfc_check_alarm_sub): Added check for default integer 
      	kind of status argument.
      	* iresolve.c (gfc_resolve_alarm_sub): Removed conversion of 
      	status argument.
      	* intrinsic.texi (ALARM): Extended documentation.
      
      From-SVN: r122715
      Daniel Franke committed
    • builtins.def (lceil, [...]): Mark with ATTR_CONST_NOTHROW_LIST. · aeabd15d
      	* builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
      	llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
      	ATTR_CONST_NOTHROW_LIST.
      	
      	* fold-const.c (tree_expr_nonnegative_warnv_p): Handle
      	FIX_TRUNC_EXPR.
      
      testsuite:
      	* gcc.dg/builtins-55.c: Test *lceil* and *lfloor*.
      	* gcc.dg/torture/builtin-attr-1.c: Likewise.
      	* gcc.dg/torture/builtin-convert-1.c: Likewise.  Also test *lrint* and *lround*.
      	* gcc.dg/torture/builtin-convert-2.c: Test ceil->lceil and floor->lfloor.
      	* gcc.dg/torture/builtin-convert-3.c: Test *lceil* and *lfloor*.
      	* gcc.dg/torture/builtin-integral-1.c: Likewise.
      	* gcc.dg/torture/builtin-minmax-1.c: Likewise.  Also test *lrint*
      	and *lround*.  Correct macro names.
      	* gcc.dg/torture/builtin-nonneg-1.c: Test *lceil* and *lfloor*.
      	* gcc.dg/torture/builtin-rounding-1.c: Likewise.
      
      From-SVN: r122713
      Kaveh R. Ghazi committed
    • intrinsic.texi (GERROR, [...]): New. · f53e867d
      2007-03-08  Daniel Franke  <franke.daniel@gmail.com>
      
      	* intrinsic.texi (GERROR, ISATTY, TTYNAM): New.
      	(ABORT, FLUSH, FNUM, IRAND, MALLOC, SIGNAL, SRAND): Fixed typo.
      	* intrinsic.c (add_subroutines): Adjusted dummy argument names 
      	of GERROR and TTYNAM.
      
      From-SVN: r122712
      Daniel Franke committed
    • tree-ssa.texi: Remove documentation for V_MUST_DEF. · e9dc9c4e
      
      	* doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
      
      From-SVN: r122710
      Diego Novillo committed
    • re PR objc/31013 (objc PCH is broken on powerpc-darwin again) · d2328a13
      	PR 31013
      	* gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
      	is declared.
      	* config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
      	passed, use shared libgcc.
      
      From-SVN: r122709
      Geoffrey Keating committed
    • tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt instead of… · ebb07520
      tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt instead of calling build2 with a GIMPLE_MODIFY_STMT.
      
      
      	* tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
      	instead of calling build2 with a GIMPLE_MODIFY_STMT.
      	(honor_protect_cleanup_actions, lower_try_finally_switch):
      	Likewise.
      	* tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
      	ifc_temp_var): Likewise.
      	* tree-inline.c (setup_one_parameter): Likewise.
      	* tree-mudflap.c (mf_decl_cache_locals,
      	mf_build_check_statement_for): Likewise.
      	* tree-nested.c (init_tmp_var, save_tmp_var,
      	finalize_nesting_tree_1): Likewise.
      	* tree-outof-ssa.c (insert_copy_on_edge,
      	insert_backedge_copies): Likewise.
      	* tree-profile.c (tree_gen_edge_profiler,
      	tree_gen_ic_profiler): Likewise.
      	* tree-scalar-evolution.c (scev_const_prop): Likewise.
      	* tree-sra.c (sra_build_assignment): Likewise.
      	* tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
      	* tree-ssa-math-opts.c (insert_reciprocals,
      	execute_cse_sincos_1): Likewise.
      	* tree-tailcall.c (adjust_accumulator_values,
      	adjust_return_value): Likewise.
      	* tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
      	* tree-vect-transform.c (vect_create_data_ref_ptr,
      	bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
      	vect_create_epilog_for_reduction, vectorizable_reduction,
      	vectorizable_call, vectorizable_conversion,
      	vectorizable_assignment, vectorizable_operation,
      	vectorizable_type_demotion, vect_gen_widened_results_half,
      	vect_permute_store_chain, vectorizable_store,
      	vect_setup_realignment, vect_permute_load_chain,
      	vectorizable_load, vectorizable_condition,
      	vect_create_cond_for_align_checks): Likewise.
      	* tree-vrp.c (build_assert_expr_for): Likewise.
      
      From-SVN: r122707
      Roger Sayle committed
    • tree-vrp.c: Include "intl.h". · 0c948c27
      ./:	* tree-vrp.c: Include "intl.h".
      	(usable_range_p): New static function.
      	(compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
      	overflowed values, juts set *strict_overflow_p.
      	(compare_values): Only return -2 if one of the operands is not a
      	constant.
      	(compare_ranges): Call usable_range_p.
      	(compare_range_with_value): Likewise.
      	(vrp_evaluate_conditional_warnv): Rename from
      	vrp_evaluate_conditional.  Make static.  Change all callers.
      	(vrp_evaluate_conditional): New function.
      	(simplify_div_or_mod_using_ranges): Issue warning about reliance
      	on signed overflow.
      	(simplify_abs_using_ranges): Likewise.
      	(simplify_stmt_for_jump_threading): Add within_stmt parameter.
      	* tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
      	within_stmt parameter.
      	* tree-ssa-propagate.c (fold_predicate_in): Update call to
      	vrp_evaluate_conditional.
      	* tree-ssa-threadedge.c
      	(record_temporary_equivalences_from_stmts_at_dest): Change
      	simplify parameter to take a second tree parameter.
      	(simplify_control_stmt_condition): Likewise.
      	(thread_across_edge): Likewise.
      	* tree-flow.h (vrp_evaluate_conditional): Update declaration.
      	(thread_across_edge): Likewise.
      	* gcc/Makefile.in (tree-vrp.o): Depend upon intl.h.
      testsuite/:
      	* gcc.dg/no-strict-overflow-5.c: New test.
      	* gcc.dg/no-strict-overflow-6.c: New test.
      	* gcc.dg/Wstrict-overflow-11.c: New test.
      	* gcc.dg/Wstrict-overflow-12.c: New test.
      	* gcc.dg/Wstrict-overflow-13.c: New test.
      	* gcc.dg/Wstrict-overflow-14.c: New test.
      	* gcc.dg/Wstrict-overflow-15.c: New test.
      
      From-SVN: r122706
      Ian Lance Taylor committed
    • i386.h (TARGET_SAHF): New define. · 3c2d980c
              * config/i386/i386.h (TARGET_SAHF): New define.
              * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
              Also enable for m_K8, m_AMDFAM10 and m_CORE2.
              (x86_sahf): New global variable.
              (override_options): Add PTA_NO_SAHF to pta_flags enum.  Recode
              pta_flags masks using shifts.  Add PTA_NO_SAHF to x86_64 and
              nocona processor flags.  Set x86_sahf when PTA_NO_SAHF is not set
              in processor flags.  Do not unconditionally disable TARGET_USE_SAHF
              for 64-bit.
              (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
              (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
              when expanding fcomi/sahf based tests.
              (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
              expanding sahf based alternative. Emit sahf based sequence when
              optimizing for code size.
              * config/i386/i386.md (x86_sahf_1): Do not disable for
              TARGET_64BIT, enable for TARGET_SAHF.
      
      From-SVN: r122705
      Uros Bizjak committed
    • strcmp-1.x: New file. · 0c705abc
      gcc/testsuite/
      	* gcc.c-torture/execute/strcmp-1.x: New file.  XFAIL execution
      	for VxWorks kernel mode.
      	* gcc.c-torture/execute/strncmp-1.x: Likewise.
      
      From-SVN: r122703
      Richard Sandiford committed
    • hugeval.x: XFAIL for VxWorks kernel mode. · 9d002493
      gcc/testsuite/
      	* gcc.c-torture/execute/ieee/hugeval.x: XFAIL for VxWorks kernel
      	mode.
      
      From-SVN: r122702
      Richard Sandiford committed
    • memmove-lib.c: Include lib/bzero.c and lib/bfill.c on VxWorks targets. · e3045e7a
      gcc/testsuite/
      	* gcc.c-torture/execute/builtins/memmove-lib.c: Include lib/bzero.c
      	and lib/bfill.c on VxWorks targets.
      	* gcc.c-torture/execute/builtins/memmove-2-lib.c: Likewise.
      	* gcc.c-torture/execute/builtins/strchr-lib.c: Include lib/bzero.c,
      	lib/bfill.c and lib/memmove.c on VxWorks targets.
      	* gcc.c-torture/execute/builtins/strrchr-lib.c: Likewise.
      	* gcc.c-torture/execute/builtins/memops-asm-lib.c: Include lib/bfill.c
      	on VxWorks targets.
      	* gcc.c-torture/execute/builtins/lib/bzero.c: New file.
      	* gcc.c-torture/execute/builtins/lib/bfill.c: Likewise.
      
      From-SVN: r122701
      Richard Sandiford committed
    • re PR xml/30983 (DocumentBuilder.parse throws exception) · 8c67ec7a
      2007-03-08  Gary Benson  <gbenson@redhat.com>
      
      	PR classpath/30983:
      	* gnu/xml/dom/ls/DomLSParser.java (getInputSource):
      	Do not use the entity resolver to resolve the top-level document.
      
      From-SVN: r122700
      Gary Benson committed
    • [multiple changes] · 56bedf42
      2007-07-08  Tobias Burnus  <burnus@net-b.de>
      
             * module.c (gfc_match_use): Support renaming of operators
             in USE statements.
             * gfortran.texi (Fortran 2003 Status): Document support of
             renaming of operators.
      
      2007-03-08  Tobias Burnus  <burnus@net-b.de>
      
             * gfortran.dg/use_5.f90: New test.
             * gfortran.dg/use_6.f90: Ditto.
             * gfortran.dg/use_7.f90: Ditto.
      
      From-SVN: r122699
      Tobias Burnus committed
    • re PR fortran/30973 ([4.1, 4.2 only] undetected name conflict: variables may be named like modules) · ac497e6a
      2007-03-08  Tobias Burnus  <burnus@net-b.de>
      
      	PR fortran/30973
      	* module.c (read_module): Always import module name as symbol.
      	(gfc_match_use): Disallow module name in the only clause of
      	a use statement.
      
      2007-03-08  Tobias Burnus  <burnus@net-b.de>
      
      	PR fortran/30973
      	* gfortran.dg/use_4.f90: New test.
      	* gfortran.dg/used_dummy_types_7.f90: Correct ambiguous symbol.
      
      From-SVN: r122696
      Tobias Burnus committed
    • * sr.po: New. · 9eaa9996
      From-SVN: r122693
      Joseph Myers committed
    • ffi.c (flush_icache): Fix left-over from previous patch. · 8b9cf39e
      * src/powerpc/ffi.c (flush_icache): Fix left-over from previous
      patch.
      (ffi_prep_closure_loc): Remove unneeded casts.  Add needed ones.
      
      From-SVN: r122692
      Alexandre Oliva committed
    • tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove · 068c623d
      spurious whitespace from error message.
      
      From-SVN: r122690
      Martin Michlmayr committed
    • re PR fortran/31011 ([4.2 and 4.1 only] Incorrect error: parameter array sections) · e1e24dc1
      2007-03-08 Paul Thomas <pault@gcc.gnu.org>
      
      	PR fortran/31011
      	* expr.c (find_array_section): Correct arithmetic for section
      	size.
      
      2007-03-08 Paul Thomas <pault@gcc.gnu.org>
      
      	PR fortran/31011
      	* gfortran.dg/parameter_array_section_2.f90: New test.
      
      From-SVN: r122689
      Paul Thomas committed
    • re PR c++/30852 (Trouble with __builtin_offsetof and volatile) · 1916c916
      	PR c++/30852
      	* c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
      
      	* semantics.c (finish_offsetof): Handle COMPOUND_EXPR.
      
      	* g++.dg/ext/offsetof1.C: Add cases with volatile.
      
      From-SVN: r122686
      Volker Reichelt committed
    • re PR c++/30534 (ICE with invalid template argument) · cc891727
      	PR c++/30534
      	* pt.c (any_template_arguments_need_structural_equality_p):
      	Robustify.
      
      	* g++.dg/template/arg5.C: New test.
      
      From-SVN: r122685
      Volker Reichelt committed
    • c-decl.c (grokdeclarator): Disable warnings for anonymous bitfields. · ab53bae2
      gcc/ChangeLog:
      * c-decl.c (grokdeclarator): Disable warnings for anonymous
      bitfields.
      * tree-sra.c (instantiate_element): Propagate disabled warnings
      from the element itself to the created variable.
      gcc/cp/ChangeLog:
      * decl.c (grokdeclarator): Disable warnings for anonymous
      bitfields.
      
      From-SVN: r122684
      Alexandre Oliva committed