aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
AgeCommit message (Collapse)AuthorFilesLines
2013-04-10re PR c++/56895 (ICE: unexpected expression of kind arrow_expr)Jakub Jelinek2-0/+43
PR c++/56895 * typeck.c (cp_build_binary_op): Call fold_non_dependent_expr_sfinae first before calling maybe_constant_value for warn_for_div_by_zero or invalid shift count warning purposes. * g++.dg/template/arrow3.C: New test. From-SVN: r197660
2013-04-09re PR c++/25466 (typeid expression fails to throw bad_typeid according to ↵Jason Merrill1-0/+36
5.2.8p2) PR c++/25466 * rtti.c (build_typeid): Check the address of the argument rather than looking for an INDIRECT_REF. From-SVN: r197644
2013-04-09arm.md (minmax_arithsi_non_canon): New pattern.Kyrylo Tkachov2-0/+16
2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com> * config/arm/arm.md (minmax_arithsi_non_canon): New pattern. * gcc.target/arm/minmax_minus.c: New test. From-SVN: r197642
2013-04-09re PR middle-end/56883 (error openmp parallel for order)Jakub Jelinek2-0/+62
PR middle-end/56883 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Use simple_p = true in force_gimple_operand_gsi calls when assigning to addressable decls. * c-c++-common/gomp/pr56883.c: New test. From-SVN: r197633
2013-04-09tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean when the ↵Jeff Law2-0/+85
boolean was created by converting a wider... * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean when the boolean was created by converting a wider object which had a boolean range. * gcc.dg/tree-ssa/vrp87.c: New test From-SVN: r197631
2013-04-09re PR tree-optimization/56854 (error: non-decl/MEM_REF LHS in clobber statement)Jakub Jelinek2-0/+29
PR tree-optimization/56854 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't forward into clobber stmts if it would change MEM_REF lhs into non-MEM_REF. * g++.dg/torture/pr56854.C: New test. From-SVN: r197625
2013-04-09Fix non-ASCII characters in names.Jakub Jelinek1-30/+30
From-SVN: r197618
2013-04-08re PR c++/56838 (GCC svn doesn't compile libreoffice 4.0.1.2)Jason Merrill1-2/+2
PR c++/56838 PR c++/17232 * typeck2.c (abstract_virtuals_error_sfinae): Disable complete_type again. From-SVN: r197613
2013-04-08re PR fortran/56872 (Incorrect SUM evaluation, involving implied-do loop, ↵Thomas Koenig2-0/+17
with -ffrontend-optimize) 2013-04-08 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/56782 * frontend-passes.c (callback_reduction): Dont't do any simplification if there is only a single element which has an iterator. 2013-04-08 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/56782 * gfortran.dg/array_constructor_44.f90: New test. From-SVN: r197610
2013-04-08re PR c++/56871 ([c++11] Specialization of constexpr Templated Function)Paolo Carlini2-0/+17
/cp 2013-04-08 Paolo Carlini <paolo.carlini@oracle.com> PR c++/56871 * decl.c (validate_constexpr_redeclaration): Allow an explicit specialization to be different wrt the constexpr specifier. /testsuite 2013-04-08 Paolo Carlini <paolo.carlini@oracle.com> PR c++/56871 * g++.dg/cpp0x/constexpr-specialization.C: New. From-SVN: r197597
2013-04-08* gcc.c-torture/execute/pr56837.c: New test.Jakub Jelinek2-0/+23
From-SVN: r197582
2013-04-08re PR c++/34949 (Dead code in empty destructors.)Jakub Jelinek3-1/+82
PR c++/34949 PR c++/50243 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't contain anything but clobbers, at most one __builtin_stack_restore, optionally debug stmts and final resx, and if it has at least one incoming EH edge. Don't check for SSA_NAME on LHS of a clobber. (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber. Instead of moving clobbers with MEM_REF LHS with SSA_NAME address which isn't defaut definition, remove them. (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge} instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}. * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers with MEM_REF LHS with SSA_NAME address. * g++.dg/opt/vt3.C: New test. * g++.dg/opt/vt4.C: New test. From-SVN: r197580
2013-04-08gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.Jeff Law2-0/+47
* gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y. * gcc.dg/tree-ssa/forwprop-25.c: New test From-SVN: r197579
2013-04-08gimple-pretty-print.c (debug_gimple_stmt): Do not print extra newline.Richard Biener2-1/+5
2013-04-08 Richard Biener <rguenther@suse.de> * gimple-pretty-print.c (debug_gimple_stmt): Do not print extra newline. * tree-vect-loop.c (vect_determine_vectorization_factor): Dump determined vector type. (vect_analyze_data_refs): Likewise. (vect_get_new_vect_var): Adjust. (vect_create_destination_var): Preserve SSA name versions. * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do not dump anything here. * gfortran.dg/vect/fast-math-mgrid-resid.f: Adjust. From-SVN: r197578
2013-04-08fast-math-pr37021.f90: Adjust.Richard Biener2-0/+5
2013-04-08 Richard Biener <rguenther@suse.de> * gfortran.dg/vect/fast-math-pr37021.f90: Adjust. From-SVN: r197571
2013-04-08slp-pr56812.cc: Adjust.Richard Biener2-0/+5
2013-04-08 Richard Biener <rguenther@suse.de> * g++.dg/vect/slp-pr56812.cc: Adjust. From-SVN: r197569
2013-04-08tree-loop-distribution.c (const_with_all_bytes_same): New function.Jakub Jelinek3-1/+73
* tree-loop-distribution.c (const_with_all_bytes_same): New function. (generate_memset_builtin): Only handle integer_all_onesp as -1 val if TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same if possible to compute val. (classify_partition): Verify CONSTRUCTOR doesn't have any elts. For QImode integers don't require anything about precision. Use const_with_all_bytes_same to find out if the constant doesn't have repeated bytes in it. * gcc.dg/pr56837.c: New test. * gcc.dg/tree-ssa/ldist-19.c: Don't check for "generated memset minus one". From-SVN: r197568
2013-04-07parser.c (cp_parser_std_attribute): Treat [[noreturn]] like GNU noreturn ↵Jason Merrill1-5/+5
attribute. * parser.c (cp_parser_std_attribute): Treat [[noreturn]] like GNU noreturn attribute. From-SVN: r197555
2013-04-07re PR fortran/56849 (Missing compile-time shape check for RESHAPE ↵Tobias Burnus2-0/+15
assignments with an ORDER= attribute) 2013-04-07 Tobias Burnus <burnus@net-b.de> PR fortran/56849 * iresolve.c (gfc_resolve_reshape): Set shape also with order=. 2013-04-07 Tobias Burnus <burnus@net-b.de> PR fortran/56849 * gfortran.dg/reshape_5.f90: New. From-SVN: r197550
2013-04-05re PR target/56843 (PowerPC Newton-Raphson reciprocal estimates can be improved)Bill Schmidt5-6/+22
gcc: 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com> PR target/56843 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove. (rs6000_emit_swdiv_low_precision): Remove. (rs6000_emit_swdiv): Rewrite to handle between one and four iterations of Newton-Raphson generally; modify required number of iterations for some cases. * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove. gcc/testsuite: 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com> PR target/56843 * gcc.target/powerpc/recip-1.c: Modify expected output. * gcc.target/powerpc/recip-3.c: Likewise. * gcc.target/powerpc/recip-4.c: Likewise. * gcc.target/powerpc/recip-5.c: Add expected output for iterations. From-SVN: r197534
2013-04-05peep-ldrd-1.c: New test.Greta Yorsh3-0/+25
2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com> gcc/testsuite * gcc.target/arm/peep-ldrd-1.c: New test. * gcc.target/arm/peep-strd-1.c: Likewise. gcc/ * config/arm/constraints.md (q): New constraint. * config/arm/ldrdstrd.md: New file. * config/arm/arm.md (ldrdstrd.md) New include. (arm_movdi): Use "q" instead of "r" constraint for double-word memory access. (movdf_soft_insn): Likewise. * config/arm/vfp.md (movdi_vfp): Likewise. * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md. * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration. * config/arm/arm.c (gen_operands_ldrd_strd): New function. (mem_ok_for_ldrd_strd): Likewise. (output_move_double): Update assertion. From-SVN: r197530
2013-04-05arm.md (negdi_extendsidi): New pattern.Greta Yorsh5-0/+73
2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com> gcc/ * config/arm/arm.md (negdi_extendsidi): New pattern. (negdi_zero_extendsidi): Likewise. gcc/testsuite * gcc.target/arm/negdi-1.c: New test. * gcc.target/arm/negdi-2.c: Likewise. * gcc.target/arm/negdi-3.c: Likewise. * gcc.target/arm/negdi-4.c: Likewise. From-SVN: r197526
2013-04-05target-supports.exp (add_options_for_arm_v8_neon): Add -march=armv8-a when ↵Kyrylo Tkachov6-21/+91
we use v8 NEON. 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com> * lib/target-supports.exp (add_options_for_arm_v8_neon): Add -march=armv8-a when we use v8 NEON. (check_effective_target_vect_call_btruncf): Remove arm-*-*-*. (check_effective_target_vect_call_ceilf): Likewise. (check_effective_target_vect_call_floorf): Likewise. (check_effective_target_vect_call_roundf): Likewise. (check_vect_support_and_set_flags): Remove check for arm_v8_neon. * gcc.target/arm/vect-rounding-btruncf.c: New testcase. * gcc.target/arm/vect-rounding-ceilf.c: Likewise. * gcc.target/arm/vect-rounding-floorf.c: Likewise. * gcc.target/arm/vect-rounding-roundf.c: Likewise. From-SVN: r197523
2013-04-05sd-vsx.c: Skip on AIX.David Edelsohn5-2/+12
* gcc.target/powerpc/sd-vsx.c: Skip on AIX. * gcc.target/powerpc/sd-pwr6.c: Same. * gcc.dg/stack-usage-1.c: Define SIZE on AIX. * g++.dg/debug/pr56294.C: XFAIL on AIX. From-SVN: r197516
2013-04-05There can be only one ref qualifier at most.Ed Smith-Rowland2-0/+11
gcc/cp: 2013-04-05 Ed Smith-Rowland <3dw4rd@verizon.net> * g++.dg/cpp0x/ref-qual-multi-neg.C: New test. gcc/testsuite: 2013-04-05 Ed Smith-Rowland <3dw4rd@verizon.net> * parser.c (cp_parser_ref_qualifier_seq_opt): Move to cp_parser_ref_qualifier_opt. Error if more than one ref-qual found. From-SVN: r197514
2013-04-04re PR fortran/40881 ([F03] warn for obsolescent features)Janus Weil7-28/+41
2013-04-04 Janus Weil <janus@gcc.gnu.org> PR fortran/40881 * match.c (gfc_match_return): Remove standard notification. * primary.c (gfc_match_actual_arglist): Add standard notification. 2013-04-04 Janus Weil <janus@gcc.gnu.org> PR fortran/40881 * gfortran.dg/altreturn_1.f90: Add -std=gnu. * gfortran.dg/altreturn_4.f90: Ditto. * gfortran.dg/altreturn_3.f90: Replace -std=legacy by -std=gnu. * gfortran.dg/altreturn_5.f90: Ditto. * gfortran.dg/altreturn_6.f90: Ditto. * gfortran.dg/altreturn_7.f90: Ditto. From-SVN: r197495
2013-04-04target-supports.exp (check_effective_target_arm_v8_neon_hw): New procedure.Kyrylo Tkachov2-21/+90
2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com> * lib/target-supports.exp (check_effective_target_arm_v8_neon_hw): New procedure. (check_effective_target_arm_v8_neon_ok_nocache): Likewise. (check_effective_target_arm_v8_neon_ok): Change to use check_effective_target_arm_v8_neon_ok_nocache. (add_options_for_arm_v8_neon): Use et_arm_v8_neon_flags to set ARMv8 NEON flags. (check_effective_target_vect_call_btruncf): Enable for arm and ARMv8 NEON. (check_effective_target_vect_call_ceilf): Likewise. (check_effective_target_vect_call_floorf): Likewise. (check_effective_target_vect_call_roundf): Likewise. (check_vect_support_and_set_flags): Handle ARMv8 NEON effective target. From-SVN: r197491
2013-04-04re PR tree-optimization/48186 (ICE: SIGFPE (division by zero) in ↵Marek Polacek2-0/+10
maybe_hot_frequency_p at predict.c:129 with --param hot-bb-frequency-fraction=0 on basic code) PR tree-optimization/48186 * predict.c (maybe_hot_frequency_p): Return false if HOT_BB_FREQUENCY_FRACTION is 0. (cgraph_maybe_hot_edge_p): Likewise. * gcc.dg/pr48186.c: New test. From-SVN: r197487
2013-04-04re PR tree-optimization/56826 (Run-fail after r197189.)Richard Biener3-1/+48
2013-04-04 Richard Biener <rguenther@suse.de> PR tree-optimization/56826 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies more accurately. * gcc.dg/vect/pr56826.c: New testcase. * gcc.dg/vect/O3-pr36098.c: Adjust. From-SVN: r197486
2013-04-04asm-adder-clobber-lr.c: Remove duplication.Tejas Belagod11-172/+13
2013-04-04 Tejas Belagod <tejas.belagod@arm.com> testsuite/ * gcc.target/aarch64/inc/asm-adder-clobber-lr.c: Remove duplication. * gcc.target/aarch64/inc/asm-adder-no-clobber-lr.c: Likewise. * gcc.target/aarch64/test-framepointer-1.c: Likewise. * gcc.target/aarch64/test-framepointer-2.c: Likewise. * gcc.target/aarch64/test-framepointer-3.c: Likewise. * gcc.target/aarch64/test-framepointer-4.c: Likewise. * gcc.target/aarch64/test-framepointer-5.c: Likewise. * gcc.target/aarch64/test-framepointer-6.c: Likewise. * gcc.target/aarch64/test-framepointer-7.c: Likewise. * gcc.target/aarch64/test-framepointer-8.c: Likewise. From-SVN: r197481
2013-04-04re PR tree-optimization/56213 (strided load vectorization is unnecessarily ↵Richard Biener2-0/+20
restricted) 2013-04-04 Richard Biener <rguenther@suse.de> PR tree-optimization/56213 * tree-vect-data-refs.c (vect_check_strided_load): Remove. (vect_analyze_data_refs): Allow all non-nested loads as strided loads. * gcc.dg/vect/vect-123.c: New testcase. From-SVN: r197480
2013-04-04re PR libfortran/56810 (record-repeat fails kind check on complex read)Tobias Burnus2-0/+24
2013-04-04 Tobias Burnus <burnus@net-b.de> PR fortran/56810 * io/list_read.c (check_type): Fix kind checking for COMPLEX. 2013-04-04 Tobias Burnus <burnus@net-b.de> PR fortran/56810 * gfortran.dg/read_repeat_2.f90: New. From-SVN: r197479
2013-04-04re PR tree-optimization/56837 (-ftree-loop-distribute-patterns generates ↵Richard Biener2-0/+25
incorrect code) 2013-04-04 Richard Biener <rguenther@suse.de> PR tree-optimization/56837 * tree-loop-distribution.c (classify_partition): For non-zero values require that the value has the same precision as its mode to be useful as memset value. * g++.dg/torture/pr56837.C: New testcase. From-SVN: r197476
2013-04-04re PR fortran/50269 (Wrongly rejects element of assumed-shape array in C_LOC)Tobias Burnus7-9/+35
2013-04-04 Tobias Burnus <burnus@net-b.de> PR fortran/50269 * gcc/fortran/check.c (is_c_interoperable, gfc_check_c_loc): Correct c_loc array checking for Fortran 2003 and Fortran 2008. 2013-04-04 Tobias Burnus <burnus@net-b.de> PR fortran/50269 * gfortran.dg/c_loc_test_21.f90: New. * gfortran.dg/c_loc_test_19.f90: Update dg-error. * gfortran.dg/c_loc_tests_10.f03: Update dg-error. * gfortran.dg/c_loc_tests_11.f03: Update dg-error. * gfortran.dg/c_loc_tests_4.f03: Update dg-error. * gfortran.dg/c_loc_tests_16.f90: Update dg-error. From-SVN: r197468
2013-04-03cp-demangle.c (cplus_demangle_type): Fix function quals.Jason Merrill2-0/+22
libiberty/ * cp-demangle.c (cplus_demangle_type): Fix function quals. (d_pointer_to_member_type): Simplify. gcc/cp/ * mangle.c (write_type): When writing a function type with function-cv-quals, don't add the unqualified type as a substitution candidate. From-SVN: r197460
2013-04-03re PR tree-optimization/56799 (Runfail after r197060+r197082.)Jeff Law2-0/+48
PR tree-optimization/56799 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring back test for widening conversion erroneously dropped in prior change. PR tree-optimization/56799 * gcc.c-torture/execute/pr56799.c: New test. From-SVN: r197453
2013-04-03re PR c++/56815 (void pointer arithmetic)Paolo Carlini3-2/+21
/cp 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com> PR c++/56815 * typeck.c (cp_build_unary_op): Change -Wpointer-arith permerror to pedwarn. /testsuite 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com> PR c++/56815 * g++.dg/warn/Wpointer-arith-1.C: New. * g++.dg/gomp/for-19.C: Adjust. From-SVN: r197433
2013-04-03re PR sanitizer/55702 (ICE: in instrument_func_exit, at tsan.c:684 with ↵Marek Polacek2-0/+14
-fsanitize=thread and __builtin_return()) PR sanitizer/55702 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions. * gcc.dg/pr55702.c: New test. From-SVN: r197430
2013-04-03re PR target/56809 (Revision 197266 causes trunk ICE for arm-none-eabi targets)Kyrylo Tkachov2-0/+37
gcc/ 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com> PR target/56809 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of next_real_insn. (thumb1_output_casesi): Likewise. (thumb2_output_casesi): Likewise. gcc/testsuite 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com> PR target/56809 * gcc.dg/pr56809.c: New testcase. From-SVN: r197425
2013-04-03re PR c++/56819 (ICE: SIGSEGV in int_cst_value (tree.h:4013) with ↵Jakub Jelinek2-0/+32
-fcompare-debug) PR debug/56819 * tree.c (strip_typedefs): Copy NON_DEFAULT_TEMPLATE_ARGS_COUNT from args to new_args. (strip_typedefs_expr): Copy NON_DEFAULT_TEMPLATE_ARGS_COUNT from t to r instead of doing {S,G}ET_NON_DEFAULT_TEMPLATE_ARGS_COUNT. * g++.dg/debug/pr56819.C: New test. From-SVN: r197420
2013-04-03re PR tree-optimization/56817 (ICE in hide_evolution_in_other_loops_than_loop)Richard Biener2-0/+43
2013-04-03 Richard Biener <rguenther@suse.de> PR tree-optimization/56817 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Split out ... (tree_unroll_loops_completely_1): ... new function to manually walk the loop tree, properly defering outer loops of unrolled loops to later iterations. * g++.dg/torture/pr56817.C: New testcase. From-SVN: r197411
2013-04-03tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.Marc Glisse2-0/+16
2013-04-03 Marc Glisse <marc.glisse@inria.fr> gcc/ * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF. (vectorizable_load): Likewise. * tree-vect-slp.c (vect_build_slp_tree): Likewise. * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE. gcc/testsuite/ * gcc.dg/vect/bb-slp-31.c: New file. From-SVN: r197410
2013-04-03re PR c++/34949 (Dead code in empty destructors.)Jason Merrill2-1/+6
PR c++/34949 * g++.dg/tree-ssa/ehcleanup-1.C: Adjust unreachable count. From-SVN: r197408
2013-04-03slp-pr56812.cc: Use dg-additional-options.Richard Biener2-1/+5
2013-04-03 Richard Biener <rguenther@suse.de> * g++.dg/vect/slp-pr56812.cc: Use dg-additional-options. From-SVN: r197407
2013-04-03re PR tree-optimization/55964 (Segmentation fault with -O ↵Richard Biener2-0/+26
-ftree-loop-distribution -funswitch-loops) 2013-04-03 Richard Biener <rguenther@suse.de> PR tree-optimization/55964 * gcc.dg/torture/pr55964-2.c: New testcase. From-SVN: r197403
2013-04-03re PR tree-optimization/56501 (gcc 4.6 ICE on noreturn function at -Os and ↵Richard Biener2-0/+32
above) 2013-04-03 Richard Biener <rguenther@suse.de> PR tree-optimization/56501 * gcc.dg/torture/pr56501.c: New testcase. From-SVN: r197401
2013-04-03re PR tree-optimization/56407 (Optimizations (-O2 -O3) make comparison of ↵Richard Biener2-0/+53
arrays of ints to fail) 2013-04-03 Richard Biener <rguenther@suse.de> PR tree-optimization/56407 * gcc.dg/torture/pr56407.c: New testcase. From-SVN: r197399
2013-04-03re PR tree-optimization/56790 (VEC_COND_EXPR not constant folded)Marc Glisse2-0/+21
2013-04-03 Marc Glisse <marc.glisse@inria.fr> PR tree-optimization/56790 gcc/ * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant folding. gcc/testsuite/ * g++.dg/ext/pr56790-1.C: New testcase. From-SVN: r197395
2013-04-03simplify-rtx.c (simplify_binary_operation_1): Handle VEC_MERGE.Marc Glisse3-1/+29
2013-04-03 Marc Glisse <marc.glisse@inria.fr> gcc/ * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>: Handle VEC_MERGE. (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT for masks. Test for side effects. Handle nested VEC_MERGE. Handle equal arguments. gcc/testsuite/ * gcc.target/i386/merge-1.c: New testcase. * gcc.target/i386/avx2-vpblendd128-1.c: Make it non-trivial. From-SVN: r197394
2013-04-03re PR c/19449 (__builtin_constant_p cannot resolve to const when optimizing)Jakub Jelinek2-0/+25
PR c/19449 * tree.h (force_folding_builtin_constant_p): New decl. * builtins.c (force_folding_builtin_constant_p): New variable. (fold_builtin_constant_p): Fold immediately also if force_folding_builtin_constant_p. * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p argument. If set, or it temporarily for parsing of the first argument into force_folding_builtin_constant_p. (c_parser_postfix_expression): Adjust callers. * gcc.c-torture/execute/pr19449.c: New test. From-SVN: r197393