- 04 Nov, 2005 3 commits
-
-
gcc/cp: * cp-tree.h (cp_cpp_error), error.c (cp_cpp_error): Take va_list* parameter. libcpp: * include/cpplib.h (struct cpp_callbacks): Make error take va_list* parameter. * errors.c (cpp_error): Update call to callback. From-SVN: r106466
Joseph Myers committed -
2005-11-03 Andrew Pinski <pinskia@physics.uc.edu> PR preprocessor/22042 * macro.c (_cpp_builtin_macro_text): Lower the needed max buffer size. (cpp_quote_string): Don't octalify non printable charactors. 2005-11-03 Andrew Pinski <pinskia@physics.uc.edu> PR preprocessor/22042 * gcc.dg/cpp/strify4.c: New test. From-SVN: r106463
Andrew Pinski committed -
From-SVN: r106460
GCC Administrator committed
-
- 03 Nov, 2005 19 commits
-
-
gcc: PR c++/17964 * diagnostic.c (diagnostic_set_info_translated): New function. (diagnostic_set_info): Use it. Add comment. * diagnostic.h (diagnostic_set_info_translated): Declare. gcc/cp: * error.c (cp_cpp_error): New function. * cp-tree.h (cp_cpp_error): Declare. * parser.c (cp_lexer_new_main): Set CPP option client_diagnostic and error callback after lexing. gcc/testsuite: * g++.dg/cpp/string-1.C: New test. libcpp: * include/cpplib.h (struct cpp_options): Add client_diagnostic. (struct cpp_callbacks): Add error. * errors.c (cpp_error): If client_diagnostic, use error callback. * charset.c (convert_escape): Don't use %03o in diagnostic. From-SVN: r106454
Joseph Myers committed -
* gcc.target/powerpc: New directory. * gcc.target/powerpc/powerpc.exp: New file. * gcc.dg/20020118-1.c, gcc.dg/20030218-1.c, gcc.dg/20030505.c, gcc.dg/20040121-1.c, gcc.dg/20040622-1.c, gcc.dg/20041111-1.c, gcc.dg/20050603-1.c, gcc.dg/20050603-3.c, gcc.dg/20050830-1.c, gcc.dg/980827-1.c, gcc.dg/altivec-1.c, gcc.dg/altivec-10.c, gcc.dg/altivec-11.c, gcc.dg/altivec-12.c, gcc.dg/altivec-13.c, gcc.dg/altivec-14.c, gcc.dg/altivec-15.c, gcc.dg/altivec-16.c, gcc.dg/altivec-17.c, gcc.dg/altivec-18.c, gcc.dg/altivec-19.c, gcc.dg/altivec-2.c, gcc.dg/altivec-20.c, gcc.dg/altivec-21.c, gcc.dg/altivec-22.c, gcc.dg/altivec-3.c, gcc.dg/altivec-4.c, gcc.dg/altivec-5.c, gcc.dg/altivec-6.c, gcc.dg/altivec-7.c, gcc.dg/altivec-8.c, gcc.dg/altivec-9.c, gcc.dg/altivec-pr22085.c, gcc.dg/altivec-types-1.c, gcc.dg/altivec-types-2.c, gcc.dg/altivec-types-3.c, gcc.dg/altivec-types-4.c, gcc.dg/altivec-varargs-1.c, gcc.dg/altivec-vec-merge.c, gcc.dg/altivec_check.h, gcc.dg/compress-float-ppc-pic.c, gcc.dg/compress-float-ppc.c, gcc.dg/darwin-abi-1.c, gcc.dg/darwin-abi-2.c, gcc.dg/darwin-bool-1.c, gcc.dg/darwin-bool-2.c, gcc.dg/darwin-longdouble.c, gcc.dg/darwin-longlong.c, gcc.dg/darwin-misaligned.c, gcc.dg/doloop-1.c, gcc.dg/macho-lo-sum.c, gcc.dg/ppc-and-1.c, gcc.dg/ppc-bitfield1.c, gcc.dg/ppc-compare-1.c, gcc.dg/ppc-eabi.c, gcc.dg/ppc-fmadd-1.c, gcc.dg/ppc-fmadd-2.c, gcc.dg/ppc-fmadd-3.c, gcc.dg/ppc-fsel-1.c, gcc.dg/ppc-fsel-2.c, gcc.dg/ppc-fsel-3.c, gcc.dg/ppc-ldstruct.c, gcc.dg/ppc-mov-1.c, gcc.dg/ppc-sdata-1.c, gcc.dg/ppc-sdata-2.c, gcc.dg/ppc-spe.c, gcc.dg/ppc-spe64-1.c, gcc.dg/ppc-stackalign-1.c, gcc.dg/ppc-stfiwx.c, gcc.dg/ppc-vector-memcpy.c, gcc.dg/ppc-vector-memset.c, gcc.dg/ppc64-abi-1.c, gcc.dg/ppc64-abi-2.c, gcc.dg/ppc64-abi-3.c, gcc.dg/ppc64-toc.c, gcc.dg/pr16155.c, gcc.dg/pr16286.c, gcc.dg/pr18096-1.c, gcc.dg/rs6000-fpint-2.c, gcc.dg/rs6000-fpint.c, gcc.dg/rs6000-ldouble-1.c, gcc.dg/rs6000-ldouble-2.c, gcc.dg/rs6000-power2-1.c, gcc.dg/rs6000-power2-2.c, gcc.dg/spe1.c, gcc.dg/stabs-attrib-vect-darwin.c: Move to gcc.target/powerpc. From-SVN: r106453
Joseph Myers committed -
2005-11-03 James E Wilson <wilson@specifix.com> PR ada/23427 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in TREE_OVERFLOW check. From-SVN: r106452
James E Wilson committed -
From-SVN: r106449
Steven Bosscher committed -
* dwarf2asm.c (dw2_force_const_mem): Add new parameter 'public'. On USE_LINKONCE_INDIRECT platforms, build a DECL_ONE_ONLY indirect reference only if 'public' is true. (dw2_output_indirect_constant_1): On USE_LINKONCE_INDIRECT platforms, emit the .hidden directive only if the indirect reference is public. (dw2_asm_output_encoded_addr_rtx): Add new parameter 'public'. Pass it to dw2_force_const_mem. * dwarf2asm.h (dw2_asm_output_encoded_addr_rtx): New param 'public'. * dwarf2out.c (output_cfi): Adjust calls to above function. (output_call_frame_info): Likewise. * except.c (output_ttype): Pass TREE_PUBLIC of the type_info object as 'public' argument to dw2_asm_output_encoded_addr_rtx. From-SVN: r106445
Eric Botcazou committed -
PR c++/21627 * pt.c (register_specialization): Update inline flags on clones.y PR c++/21627 * g++.dg/warn/inline2.C: New test. From-SVN: r106442
Mark Mitchell committed -
PR tree-optimization/24483 * tree-ssa-loop-ivopts.c (aff_combination_add_elt): Move rest field to elts if possible. From-SVN: r106440
Zdenek Dvorak committed -
2005-11-03 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/23155 * g++.dg/ext/c99struct1.C: New test. * gcc.dg/union-cast-1.c: New test. * gcc.dg/union-cast-2.c: New test. * gcc.dg/union-cast-3.c: New test. 2005-11-03 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/23155 * gimplifier.c (gimplify_expr): Create a temporary for lvalue CONSTRUCTOR. From-SVN: r106438
Andrew Pinski committed -
2005-11-03 Daniel Berlin <dberlin@dberlin.org> Fix PR tree-optimization/24351 * tree-ssa-structalias.c (struct variable_info): Add collapsed_into. (get_varinfo_fc): New function to follow collapsing. (new_var_info): Set collapsed_to to NULL. (dump_constraint): Follow collapsing. (build_constraint_graph): Handle collapsing. (do_simple_structure_copy): Return false if something bad happened. (collapse_rest_of_var): New function. (do_structure_copy): Collapse if do_simple_structure_copy returns false. From-SVN: r106437
Daniel Berlin committed -
2005-11-03 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/24589 * gimplify.c (gimplify_expr) <case CONSTRUCTOR>: Add the expressions to a statement list instead of gimplifying them. 2005-11-03 Andrew Pinski <pinskia@physics.uc.edu> PR middle-end/24589 * gcc.c-torture/execute/zero-struct-2.c: New test. From-SVN: r106436
Andrew Pinski committed -
2005-11-03 Andrew Pinski <pinskia@physics.uc.edu> PR c++/24582 * g++.dg/init/switch1.C: New test. 2005-11-03 Andrew Pinski <pinskia@physics.uc.edu> PR c++/24582 * decl.c (declare_local_label): Return 0 for variables with error_mark_node as their types. From-SVN: r106434
Andrew Pinski committed -
sso_string_base.h (__sso_string_base<>::_M_swap): Change the various traits_type::copy call to always copy the entire local buffer... 2005-11-03 Paolo Carlini <pcarlini@suse.de> * include/ext/sso_string_base.h (__sso_string_base<>::_M_swap): Change the various traits_type::copy call to always copy the entire local buffer; return early and don't do a full swap on the lengths for two common cases; change two _S_copy to plain traits_type::copy. From-SVN: r106431
Paolo Carlini committed -
From-SVN: r106429
Eric Botcazou committed -
PR rtl-optimization/23585 * rtlanal.c (rtx_addr_can_trap_p_1) <PLUS>: Return 0 for an address that can't trap plus a constant integer, if the mode has zero size. From-SVN: r106427
Eric Botcazou committed -
ChangeLog: PR target/24620 * config/s390/s390.md ("*insv<mode>_reg_imm"): Accept any CONST_INT as operand 2. ("*insv<mode>_reg_extimm"): Likewise. testsuite/ChangeLog: PR target/24620 * gcc.dg/pr24620.c: New test. From-SVN: r106422
Ulrich Weigand committed -
PR c/24329 * c-pretty-print.c (pp_c_type_specifier): Do not recurse if c_common_type_for_mode returns an unnamed type. testsuite: * gcc.dg/format/unnamed-1.c: New test. From-SVN: r106421
Joseph Myers committed -
PR target/9350 PR target/24374 * dwarf2out.c (dwarf2out_reg_save_reg): New. (dwarf2out_frame_debug_expr): Return after dwarf_handle_frame_unspec. * function.c (assign_parms): Use calls.internal_arg_pointer. (expand_main_function): Remove FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN code. * target-def.h (TARGET_INTERNAL_ARG_POINTER): New. (TARGET_CALLS): Add it. * target.h (struct gcc_target): Add calls.internal_arg_pointer. * targhooks.c (default_internal_arg_pointer): New. * targhooks.h (default_internal_arg_pointer): Declare. * tree.h (dwarf2out_reg_save_reg): Declare. * doc/tm.texi (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Remove. * config/i386/i386.c (dbx_register_map): Add return column. (dbx64_register_map, svr4_dbx_register_map): Likewise. (TARGET_INTERNAL_ARG_POINTER, ix86_internal_arg_pointer): New. (TARGET_DWARF_HANDLE_FRAME_UNSPEC, ix86_dwarf_handle_frame_unspec): New. (ix86_function_ok_for_sibcall): Disable if force_align_arg_pointer. (ix86_save_reg): Save force_align_arg_pointer. (ix86_emit_save_regs): Make regno unsigned. (ix86_emit_save_regs_using_mov): Likewise. (ix86_expand_prologue): Handle force_align_arg_pointer. (ix86_expand_epilogue): Likewise. * config/i386/i386.h: (dbx_register_map): Update. (dbx64_register_map, svr4_dbx_register_map): Update. (struct machine_function): Add force_align_arg_pointer. * config/i386/i386.md (UNSPEC_REG_SAVE, UNSPEC_DEF_CFA): New. (UNSPEC_TP, UNSPEC_TLS_GD, UNSPEC_TLS_LD_BASE): Renumber. (TARGET_PUSH_MEMORY peepholes): Disable if RTX_FRAME_RELATED_P. From-SVN: r106420
Richard Henderson committed -
PR c++/22434 * call.c (build_conditional_expr): Do bad conversions, if there's no other choice. PR c++/22434 * g++.dg/expr/cond8.C: New test. From-SVN: r106418
Mark Mitchell committed -
From-SVN: r106414
GCC Administrator committed
-
- 02 Nov, 2005 18 commits
-
-
re PR c++/24560 ("insufficient contextual information to determine type" is not a helpful error message) PR c++/24560 * parser.c (cp_parser_postfix_dot_deref_expression): Improve error message for use of overloaded functions on LHS of "." operator. PR c++/24560 * g++.dg/parse/dot1.C: New test. From-SVN: r106408
Mark Mitchell committed -
PR target/23303 * i386.md: Add peep2 for simplyfing array accesses. * gcc.dg/i386-lea.c: New test From-SVN: r106406
Jan Hubicka committed -
re PR target/24615 (internal compiler error: in print_shift_count_operand, at config/s390/s390.c:4025) ChangeLog: PR target/24615 * config/s390/s390-protos.h (s390_decompose_shift_count): Declare. * config/s390/s390.c (s390_decompose_shift_count): New function. (s390_extra_constraint_str) ['Y']: Use s390_decompose_shift_count. (print_shift_count_operand): Use s390_decompose_shift_count. * config/s390/predicates.md ("setmem_operand", "shift_count_operand"): Use s390_decompose_shift_count. Do not accept any non-base hard regs. testsuite/ChangeLog: PR target/24615 * gcc.dg/pr24615.c: New test. From-SVN: r106405
Ulrich Weigand committed -
ChangeLog: PR target/24600 * loop.c (loop_givs_rescan): Use force_operand to expand complex GIVs. testsuite/ChangeLog: PR target/24600 * gcc.dg/pr24600.c: New test. From-SVN: r106404
Ulrich Weigand committed -
2005-11-02 Andreas Tobler <a.tobler@schweiz.ch> * testsuite/lib/libjava.exp (libjava_find_lib): Add dylib to the shared library extensions. From-SVN: r106403
Andreas Tobler committed -
PR 22429 * fold-const.c (build_range_check): Use unsigned when signed overflow is undefined also. If etype is subtype, make sure that the subtraction is in the supertype. From-SVN: r106400
Andrew Pinski committed -
PR c++/19253 * parser.c (cp_parser_postfix_expression): Use cp_parser_elaborated_type_specifier to handle typename-types in functional casts. (cp_parser_enclosed_argument_list): Skip ahead to the end of the template argument list if the closing ">" is not found. PR c++/19253 * g++.dg/parse/typename8.C: Compile with -w -fpermissive. * g++.dg/parse/typename9.C: New test. * g++/dg/parse/typename10.C: Likewise. From-SVN: r106398
Mark Mitchell committed -
2005-11-02 Andrew Pinski <pinskia@physics.uc.edu> PR fortran/18157 * gfortran.fortran-torture/compile/defined_type_1.f90: New test. * gfortran.fortran-torture/compile/defined_type_2.f90: New test. * gfortran.fortran-torture/compile/defined_type_3.f90: New test. 2005-11-02 Andrew Pinski <pinskia@physics.uc.edu> PR fortran/18157 * trans-array.c (gfc_conv_resolve_dependencies): Use the correct type for the temporary array. * trans-expr.c (gfc_trans_assignment): Pass lss instead of lss_section to gfc_conv_resolve_dependencies to get the correct type. From-SVN: r106396
Andrew Pinski committed -
PR c++/24569 * pt.c (instantiate_decl): Use cp_finish_decl, not finish_static_data_member_decl. PR c++/24569 * g++.dg/debug/static1.C: New test. From-SVN: r106392
Mark Mitchell committed -
* g++.dg/crash38.C: moved into proper directory... * g++.dg/template/crash42.C: ...here From-SVN: r106389
Josh Conner committed -
PR target/24178 * config/alpha/alpha.c (get_aligned_mem): Honor alignment given by MEM_ALIGN. From-SVN: r106388
Richard Henderson committed -
From-SVN: r106387
Richard Kenner committed -
2005-11-02 Thomas Kho <tkho@ucla.edu> PR libstdc++/23425 * include/bits/stl_vector.h (vector<>::clear): Open code in terms of _Destroy. 2005-11-02 Paolo Carlini <pcarlini@suse.de> * include/bits/vector.tcc (vector<>::_M_fill_assign): Qualify fill_n. From-SVN: r106379
Paolo Carlini committed -
re PR testsuite/18338 (mmix-knuth-mmixware testsuite failure: gcc.dg/bitfld-4.c and g++.dg/abi/bitfield4.C) PR target/18338 * gcc.dg/bitfld-4.c, g++.dg/abi/bitfield4.C: Gate on pcc_bitfield_type_matters || default_packed. From-SVN: r106377
Hans-Peter Nilsson committed -
re PR testsuite/23304 (testsuite failures: g++.dg/ext/packed3.C, packed4.C, packed8.c and g++.dg/other/crash-4.C) PR testsuite/23304 * lib/target-supports.exp (check_effective_default_packed): New proc. * g++.dg/ext/packed3.C, g++.dg/ext/packed8.C, g++.dg/other/crash-4.C: Gate expected errors on target ! default_packed. * g++.dg/ext/packed4.C: Gate on target ! default_packed. From-SVN: r106376
Hans-Peter Nilsson committed -
(check_effective_target_pcc_bitfield_type_matters): New proc. * gcc.dg/bitfld-3.c: Gate on target pcc_bitfield_type_matters. From-SVN: r106375
Hans-Peter Nilsson committed -
* lib/target-supports.exp (check_effective_default_packed): New proc. * g++.dg/ext/packed3.C, g++.dg/ext/packed8.C, g++.dg/other/crash-4.C: Gate expected errors on target ! default_packed. * g++.dg/ext/packed4.C: Gate on target ! default_packed. From-SVN: r106374
Hans-Peter Nilsson committed -
PR 21518 * loop.c (scan_loop): Do not propagate computations to a hard register destination with SMALL_REGISTER_CLASSES. From-SVN: r106373
Richard Henderson committed
-