aboutsummaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2010-05-26MAINTAINERS (CPU Port Maintainers): Add myself for xtensa port.Sterling Augustine1-1/+6
2010-05-25 Sterling Augustine <sterling@tensilica.com> * MAINTAINERS (CPU Port Maintainers): Add myself for xtensa port. From-SVN: r159894
2010-04-26* filenames.h (PATH_SEPARATOR): Delete.Pedro Alves2-2/+4
From-SVN: r158742
2010-04-26ChangeLog fixes. (Changes to ChangeLog do not get a ChangeLog entry).Ian Lance Taylor1-2/+3
From-SVN: r158741
2010-04-23filenames.h (IS_DIR_SEPARATOR_1): Rename from IS_DIR_SEPARATOR...Pedro Alves3-20/+61
2010-04-23 Pedro Alves <pedro@codesourcery.com> include/ * filenames.h (IS_DIR_SEPARATOR_1): Rename from IS_DIR_SEPARATOR, always define it independently of host, add `dos_based' parameter, and handle it. (HAS_DRIVE_SPEC_1): Rename from HAS_DRIVE_SPEC, always define it independently of host, add `dos_based' parameter, and handle it. (IS_ABSOLUTE_PATH_1): Rename from IS_ABSOLUTE_PATH, always define it independently of host, add `dos_based' parameter, and handle it. (IS_DOS_DIR_SEPARATOR, IS_DOS_ABSOLUTE_PATH) (IS_UNIX_DIR_SEPARATOR, IS_UNIX_ABSOLUTE_PATH) (HAS_DOS_DRIVE_SPEC): New. (HAS_DRIVE_SPEC): Reimplement on top of HAS_DRIVE_SPEC_1. (IS_DIR_SEPARATOR): Reimplement on top of IS_DIR_SEPARATOR_1. (IS_ABSOLUTE_PATH): Reimplement on top of IS_ABSOLUTE_PATH_1. * libiberty.h (dos_lbasename, unix_lbasename): Declare. libiberty/ * lbasename.c (lbasename): Split into ... (unix_lbasename, dos_basename): ... these. (lbasename): ... and reimplement on top of them. * Makefile.in (lbasename.o): Add dependency on $(INCDIR)/filenames.h. From-SVN: r158681
2010-04-20Update copyright notice to use GPLv3.Nick Clifton2-2/+6
From-SVN: r158543
2010-04-14* filenames.h (HAS_DRIVE_SPEC, STRIP_DRIVE_SPEC): New macros.Doug Evans2-2/+16
From-SVN: r158359
2010-04-13elf: Remove empty directory.Matthias Klose1-1/+5
2010-04-13 Matthias Klose <doko@ubuntu.com> * elf: Remove empty directory. From-SVN: r158248
2010-04-06dwarf2.h (DWARF2_Internal_LineInfo): Add li_max_ops_per_insn field.Jakub Jelinek2-1/+8
* dwarf2.h (DWARF2_Internal_LineInfo): Add li_max_ops_per_insn field. From-SVN: r157983
2010-03-23* symcat.h (CONCAT5, CONCAT6, XCONCAT5, XCONCAT6): Define.Joseph Myers2-1/+11
From-SVN: r157674
2010-02-03re PR c++/12909 (ambiguity in mangling vector types)Jason Merrill1-0/+5
PR c++/12909 * mangle.c (write_type) [VECTOR_TYPE]: Change mangling. From-SVN: r156481
2010-01-13Add new DW_AT_use_GNAT_descriptive_type CU attribute.Joel Brobecker2-0/+6
* dwarf2.h (dwarf_attribute): Add DW_AT_use_GNAT_descriptive_type. From-SVN: r155855
2010-01-11demangle.h (ada_demangle): Add prototype.Tristan Gingold2-0/+7
include/ 2010-01-11 Tristan Gingold <gingold@adacore.com> * demangle.h (ada_demangle): Add prototype. libiberty/ 2010-01-11 Tristan Gingold <gingold@adacore.com> * cplus-dem.c (ada_demangle): Remove prototype. (grow_vect): Removed. (ada_demangle): Rewritten. (cplus_demangle): Fix indentation. * testsuite/demangle-expected: Add tests for Ada. From-SVN: r155804
2010-01-05re PR bootstrap/41771 (Bootstrap with Sun Studio 12.1 fails)Rainer Orth2-2/+7
gcc: PR bootstrap/41771 * flags.h: Don't include real.h. (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): Move ... * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here. * dominance.c: Update copyright. * gimple.c (walk_gimple_op): Remove inline. * tree-ssa-reassoc.c: Include real.h. * Makefile.in (FLAGS_H): Remove $(REAL_H). (tree-ssa-reassoc.o): Depend on $(REAL_H). include: PR bootstrap/41771 * ansidecl.h: Fix inline test for C99 and Sun Studio cc. From-SVN: r155654
2009-12-29* dwarf2.h (enum dwarf_attribute): Add DW_AT_GNAT_descriptive_type.Joel Brobecker2-0/+8
From-SVN: r155501
2009-11-06Checking this in for: Jonas Maebe <jonas.maebe@elis.ugent.be>Jonas Maebe2-1/+8
Add DWARF attribute value for the "Borland fastcall" calling convention. * elf/dwarf2.h: Add DW_CC_GNU_borland_fastcall_i386 constant. From-SVN: r153970
2009-10-23splay-tree.h (libi_uhostptr_t): Add gcc specific __extension__ for long long ↵Kai Tietz2-0/+12
type case to silent cX9. 2009-10-23 Kai Tietz <kai.tietz@onevision.com> * splay-tree.h (libi_uhostptr_t): Add gcc specific __extension__ for long long type case to silent cX9. (libi_shostptr_t): Likewise. From-SVN: r153499
2009-10-19missing changelogRafael Espindola1-0/+5
From-SVN: r152982
2009-10-19re PR lto/40790 (plugin-api.h unconditionally includes stdint.h)Rafael Espindola1-0/+8
include/ 2009-10-09 Rafael Avila de Espindola <espindola@google.com> PR40790 * plugin-api.h: Don't include stdint.h unconditionally. lto-plugin/ 2009-10-09 Rafael Avila de Espindola <espindola@google.com> PR40790 * configure: Regenerate. * configure.ac: Add AC_TYPE_UINT64_T. From-SVN: r152976
2009-10-15dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type and ↵Jakub Jelinek2-0/+6
DW_TAG_template_alias. * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type and DW_TAG_template_alias. (dwarf_attr_name): Handle DW_AT_main_subprogram, DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class, DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by, DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded, DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required and DW_AT_GNU_odr_signature. (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc, DW_FORM_flag_present and DW_FORM_ref_sig8. (output_signature): Only print name on the first byte. (output_die): Likewise for dw_val_class_data8. * include/dwarf2.h (DW_LANG_Python): Add comment that it is a DWARF 4 addition. From-SVN: r152853
2009-10-09plugin-api.h (ld_plugin_add_input_library): Change argument name to libname.Rafael Avila de Espindola2-2/+7
2009-10-09 Rafael Espindola <espindola@google.com> * plugin-api.h (ld_plugin_add_input_library): Change argument name to libname. From-SVN: r152592
2009-10-06Fix a changelogRafael Espindola1-1/+9
2009-10-05 Rafael Espindola <espindola@google.com> * plugin-api.h (ld_plugin_status): Add LDPS_BAD_HANDLE. (ld_plugin_get_input_file): New. (ld_plugin_release_input_file): New. (ld_plugin_add_input_library): New. (ld_plugin_message): Mark format const. (ld_plugin_level): Add LDPT_GET_INPUT_FILE, LDPT_RELEASE_INPUT_FILE and LDPT_ADD_INPUT_LIBRARY. (ld_plugin_tv): Add tv_get_input_file, tv_release_input_file and tv_add_input_library. From-SVN: r152498
2009-10-05plugin-api.h: Sync with src.Rafael Avila de Espindola2-2/+33
2009-10-05 Rafael Espindola <espindola@google.com> * plugin-api.h: Sync with src. From-SVN: r152472
2009-10-04plugin-api.h: Fix compile.Jerry Quinn2-1/+5
2009-10-04 Jerry Quinn <jlquinn@optonline.net> * plugin-api.h: Fix compile. From-SVN: r152438
2009-10-03Merge lto branch into trunk.Diego Novillo3-0/+309
From-SVN: r152434
2009-09-29properly merge include/ChangeLogJason Merrill2-6/+7
From-SVN: r152319
2009-09-29merge in cxx0x-lambdas-branch@152308Jason Merrill2-0/+20
From-SVN: r152318
2009-09-26DWARF for Template parm pack is a gnu extension.Dodji Seketeli2-8/+13
include/ChangeLog: * dwarf2.h (enum dwarf_tag): Rename DW_TAG_template_parameter_pack and DW_TAG_formal_parameter_pack into DW_TAG_GNU_template_parameter_pack and DW_TAG_formal_parameter_pack until DWARF 5 is out. gcc/ChangeLog: * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies, generic_parameter_die, template_parameter_pack_die, gen_formal_parameter_die, gen_subprogram_die): Adjust after renaming DW_TAG_formal_parameter_pack and DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack and DW_TAG_GNU_template_parameter_pack. gcc/testsuite/ChangeLog: * g++.dg/debug/dwarf2/template-func-params-4.C: Adjust after renaming DW_TAG_template_parameter_pack and DW_TAG_formal_parameter_pack into DW_TAG_GNU_template_parameter_pack and DW_TAG_GNU_formal_parameter_pack. * g++.dg/debug/dwarf2/template-params-4.C: Likewise. * g++.dg/debug/dwarf2/template-func-params-7.C: Likewise. From-SVN: r152188
2009-09-25Add rest of new values from DWARF Version 4.Cary Coutant2-2/+37
include/ Add rest of new values from DWARF Version 4. * dwarf2.h (DW_TAG_rvalue_reference_type, DW_TAG_template_alias): New tags. (DW_FORM_ref_sig8): New name for DW_FORM_sig8. (DW_AT_main_subprogram, DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class, DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by, DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded, DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required, DW_AT_GNU_odr_signature): New attributes. (DW_LANG_Python): New language. From-SVN: r152181
2009-09-22re PR debug/41266 (Emit DW_TAG_template_parameter_pack and ↵Dodji Seketeli2-0/+13
DW_TAG_formal_parameter_pack) Fix for PR debug/41266 ChangeLog: * include/dwarf2.h (enum dwarf_tag): Add DW_TAG_template_parameter_pack and DW_TAG_formal_parameter_pack. gcc/ChangeLog: * dwarf2out.c (template_parameter_pack_die, gen_formal_parameter_pack_die ): New functions. (make_ith_pack_parameter_name): Remove this function. (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and DW_TAG_formal_parameter_pack. (gen_generic_params_dies): Represent each template parameter pack by a DW_TAG_template_parameter_pack DIE. Argument pack elements are represented by usual DW_TAG_template_*_parameter DIEs that are children of the DW_TAG_template_parameter_pack element DIE. (generic_parameter_die): This doesn't deal with parameter pack names anymore. Don't generate DW_AT_name for some DIEs, e.g. children of parameter pack DIEs. (gen_formal_parameter_die): Add a flag to not emit DW_AT_name in certain cases, e.g. for pack elements. (gen_formal_types_die, gen_decl_die): Adjust usage of gen_formal_parameter_die. (gen_subprogram_die): Represent each function parameter pack by a DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are represented by usual DW_TAG_formal_parameter DIEs that are children of the DW_TAG_formal_parameter_pack DIE. Remove references to ____builtin_va_alist decls as no part of the compiler uses those anymore. * langhooks.h (struct lang_hooks_for_decls): Add function_parm_expanded_from_pack_p, get_generic_function_decl and function_parameter_pack_p hooks. Fix comment for get_innermost_generic_parms hook. * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P, LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook macros and use them to initialize lang_hook. gcc/cp/ChangeLog: * cp-lang.c (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P, LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P, LANG_HOOKS_GET_GENERIC_FUNCTION_DECL): Initialize these hooks for the c++ FE. * cp-tree.h (function_parameter_pack_p, get_function_template_decl, function_parameter_expanded_from_pack_p): Declare ... * pt.c (function_parameter_pack_p, get_function_template_decl, function_parameter_expanded_from_pack_p): ... new hooks. (get_template_info): Make this more robust. (template_args_variadic_p, make_ith_pack_parameter_name): Add a new line between comment and function. (get_template_argument_pack_elems): Fix comment. (tsubst_decl): Arguments of function parameter packs are not parameter packs themselves. gcc/testsuite/ChangeLog: * g++.dg/debug/dwarf2/template-func-params-4.C: Adjust. * g++.dg/debug/dwarf2/template-func-params-7.C: Likewise. * g++.dg/debug/dwarf2/template-params-4.C: Likewise. From-SVN: r152043
2009-09-03update copyright datesAlan Modra3-3/+5
From-SVN: r151359
2009-08-31Emit DWARF for template parameters (PR debug/30161)Dodji Seketeli1-0/+6
ChangeLog: PR debug/30161 * include/dwarf2.h (enum dwarf_tag): Added DW_TAG_GNU_template_template_param (enum dwarf_attribute): Added DW_AT_GNU_template_name. gcc/ChangeLog: PR debug/30161 * cgraph.h (cgraph_get_node): Declare ... * cgraph.c (cgraph_get_node): ... new function. * dwarf2out.c (gen_generic_params_dies, generic_parameter_die, tree_add_const_value_attribute_for_decl, make_ith_pack_parameter_name, append_entry_to_tmpl_value_parm_die_table, gen_remaining_tmpl_value_param_die_attribute): New functions. (gen_subprogram_die): Generate debug info for template parameters if debug info level is higher than DINFO_LEVEL_TERSE. Use tree_add_const_value_attribute_for_decl instead of tree_add_const_value_attribute. (gen_const_die): Use tree_add_const_value_attribute_for_decl instead of tree_add_const_value_attribute. (gen_struct_or_union_type_die): Generate debug info for template parameters if debug info level is higher than DINFO_LEVEL_TERSE. (tree_add_const_value_attribute): Handle integral and pointer constants. Update comment. (dwarf_tag_name): Support DW_TAG_GNU_template_template_param. (dwarf_attr_name): Support DW_AT_GNU_template_name. (reference_to_unused): Fix thinko. Remove redundant predicates from tests. (tree_add_const_value_attribute): Make this work for constant expressions only. tree_add_const_value_attribute_for_decl is to be used for variable DECLs now. (add_location_or_const_value_attribute): Use tree_add_const_value_attribute_for_decl now. (dwarf2out_finish): Emit the DW_AT_const_value attribute of DW_TAG_template_value_param DIEs after function DIEs have been emitted. * langhooks.h (lang_hooks_for_types): Add get_argument_pack_elems. (lang_hooks_for_decls): Add generic_generic_parameter_decl_p. (lang_hooks): Added get_innermost_generic_parms, get_innermost_generic_args. * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS, LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS, LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS, LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks. gcc/cp/ChangeLog: PR debug/30161 * cp-tree.h (get_template_info): Parameter should be const. (CLASSTYPE_SPECIALIZATION_OF_PRIMARY_TEMPLATE_P): Fix typo. (get_template_argument_pack_elems, get_primary_template_innermost_parameters, get_template_innermost_arguments, template_template_parameter_p): Declare ... * pt.c (get_template_argument_pack_elems, get_template_innermost_parameters, get_template_innermost_arguments, template_template_parameter_p): ... New C++ front end implementation of new language hooks. (primary_template_instantiation_p): New private helper. (make_ith_pack_parameter_name): Use snprintf and strnlen instead of printf and strlen. (get_template_info): Const-ify parameter. * cp-lang.c (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS, LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS, LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS, LANG_HOOKS_GENERIC_TYPE_PARAMETER_DECL_P): Initialize these interfaces for the C++ front-end. gcc/testsuite/ChangeLog: PR debug/30161 * g++.dg/debug/dwarf2/template-params-1.C: New test. * g++.dg/debug/dwarf2/template-params-2.C: Likewise. * g++.dg/debug/dwarf2/template-params-3.C: Likewise. * g++.dg/debug/dwarf2/template-params-4.C: Likewise. * g++.dg/debug/dwarf2/template-params-5.C: Likewise. * g++.dg/debug/dwarf2/template-params-6.C: Likewise. * g++.dg/debug/dwarf2/template-func-params-1.C: Likewise. * g++.dg/debug/dwarf2/template-func-params-2.C: Likewise. * g++.dg/debug/dwarf2/template-func-params-3.C: Likewise. * g++.dg/debug/dwarf2/template-func-params-4.C: Likewise. * g++.dg/debug/dwarf2/template-func-params-5.C: Likewise. * g++.dg/debug/dwarf2/template-func-params-6.C: Likewise. * g++.dg/debug/dwarf2/template-func-params-7.C: Likewise. From-SVN: r151249
2009-07-25re PR bootstrap/40854 (Conflicting crc32 functions in libiberty and zlib)Ian Lance Taylor2-1/+6
include/: PR bootstrap/40854 * libiberty.h (xcrc32): Rename from crc32. libiberty/: PR bootstrap/40854 * crc32.c (xcrc32): Rename from crc32. From-SVN: r150075
2009-07-24crc32.c: New file.Ian Lance Taylor2-1/+8
libiberty/: * crc32.c: New file. * Makefile.in: Rebuild dependencies. (CFILES): Add crc32.c. (REQUIRED_OFILES): Add ./crc32.o. * functions.texi: Rebuild. include/: * libiberty.h (crc32): Declare. From-SVN: r150067
2009-07-21Add ccoutant to previous dwarf4 entry.Cary Coutant1-1/+2
From-SVN: r149866
2009-07-20Add some dwarf4 values.Cary Coutant2-1/+18
* dwarf2.h (enum dwarf_tag): Add DW_TAG_type_unit. (enum dwarf_form): Add DW_FORM_sec_offset, DW_FORM_exprloc, DW_FORM_flag_present, DW_FORM_sig8. (enum dwarf_attribute): Add DW_AT_signature. From-SVN: r149836
2009-07-17demangle.h (enum demangle_component_type ↵Jan Kratochvil2-0/+11
<DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>) (enum demangle_component_type <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS>): New. include 2009-07-17 Jan Kratochvil <jan.kratochvil@redhat.com> * demangle.h (enum demangle_component_type <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>) (enum demangle_component_type <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS>): New. libiberty 2009-07-17 Jan Kratochvil <jan.kratochvil@redhat.com> * cp-demangle.c (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>) (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New. (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>) (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New. (d_demangle_callback): The variable type is now declared as enum. Replace parser of _GLOBAL_ symbols by a d_make_comp call. From-SVN: r149756
2009-07-09dwarf2.h (enum dwarf_location_atom): Add DW_OP_implicit_value and ↵Jakub Jelinek2-0/+9
DW_OP_stack_value. 2009-07-09 Jakub Jelinek <jakub@redhat.com> * dwarf2.h (enum dwarf_location_atom): Add DW_OP_implicit_value and DW_OP_stack_value. From-SVN: r149438
2009-07-09unwind-dw2-fde-darwin.c: Include dwarf2.h.Tom Tromey2-0/+5
gcc * unwind-dw2-fde-darwin.c: Include dwarf2.h. * config/mmix/mmix.c: Include dwarf2.h. * config/rs6000/darwin-fallback.c: Include dwarf2.h. * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h. * config/sh/sh.c: Include dwarf2.h. * config/i386/i386.c: Include dwarf2.h. * Makefile.in (DWARF2_H): Remove 'elf'. * except.c: Include dwarf2.h. * unwind-dw2.c: Include dwarf2.h. * dwarf2out.c: Include dwarf2.h. * unwind-dw2-fde-glibc.c: Include dwarf2.h. * unwind-dw2-fde.c: Include dwarf2.h. * dwarf2asm.c: Include dwarf2.h. gcc/ada * raise-gcc.c: Include dwarf2h (unconditionally). include * elf/dwarf2.h: Remove, renaming to... * dwarf2.h: ... this. From-SVN: r149433
2009-06-30dwarf2.h: Remove.Tom Tromey2-0/+862
gcc * dwarf2.h: Remove. * Makefile.in (DWARF2_H): New variable. (except.o): Use it. (dwarf2out.o): Likewise. (dwarf2asm.o): Likewise. * config/i386/t-i386: Use DWARF2_H. * except.c: Include elf/dwarf2.h. * unwind-dw2.c: Include elf/dwarf2.h. * dwarf2out.c: Include elf/dwarf2.h. (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield. <dtprel>: New field. (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr. (size_of_loc_descr): Likewise. (output_loc_operands_raw): Likewise. (output_loc_operands): Handle new dtprel field. (loc_checksum): Update. (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field. * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h. * unwind-dw2-fde.c: Include elf/dwarf2.h. * dwarf2asm.c: Include elf/dwarf2.h. * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h. * config/mmix/mmix.c: Include elf/dwarf2.h. * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h. * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h. * config/sh/sh.c: Include elf/dwarf2.h. * config/i386/i386.c: Include elf/dwarf2.h. gcc/ada * raise-gcc.c: Include elf/dwarf2.h. include * elf/dwarf2.h: New file. Merged with gdb. From-SVN: r149070
2009-06-10* ansidecl.h (ATTRIBUTE_UNUSED_LABEL): Define for C++.Ian Lance Taylor2-7/+20
From-SVN: r148333
2009-06-03ansidecl.h (EXPORTED_CONST): Define.Ian Lance Taylor2-0/+16
include/: * ansidecl.h (EXPORTED_CONST): Define. gcc/: * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST. * genattrtab.c (write_length_unit_log): Likewise. * genchecksum.c (dosum): Likewise. * gengtype.c (write_rtx_next): Likewise. (finish_root_table, write_roots): Likewise. * gimple.c (gimple_ops_offset_): Likewise. * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise. * config/arc/arc.c (arc_attribute_table): Likewise. * config/arm/arm.c (arm_attribute_table): Likewise. * config/avr/avr.c (avr_attribute_table): Likewise. * config/crx/crx.c (crx_attribute_table): Likewise. * config/m32r/m32r.c (m32r_attribute_table): Likewise. * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise. * config/mcore/mcore.c (mcore_attribute_table): Likewise. * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise. * config/sh/sh.c (sh_attribute_table): Likewise. * config/sparc/sparc.c (sparc_attribute_table): Likewise. * config/spu/spu.c (spu_attribute_table): Likewise. * config/v850/v850.c (v850_attribute_table): Likewise. * config/alpha/alpha.c (vms_attribute_table): Make static. * config/bfin/bfin.c (bfin_attribute_table): Likewise. * config/h8300/h8300.c (h8300_attribute_table): Likewise. * config/mips/mips.c (mips_attribute_table): Likewise. * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and $(SYSTEM_H). (cc1-checksum.o): Likewise. gcc/cp/: * Make-lang.in (cc1plus-checksum.o): Depend upon $(CONFIG_H) and $(SYSTEM_H). gcc/objc/: * Make-lang.in (cc1obj-checksum.o): Depend upon $(CONFIG_H) and $(SYSTEM_H). gcc/objcp/: * Make-lang.in (cc1objplus-checksum.o): Depend upon $(CONFIG_H) and $(SYSTEM_H). From-SVN: r148146
2009-06-01ansidecl.h: Add extern "C" when compiling with C++.Ian Lance Taylor4-5/+45
* ansidecl.h: Add extern "C" when compiling with C++. Treat C++ the way we treat an ISO C compiler. Don't define inline as a macdro when compiling with C++. * dyn-string.h: Add header guard DYN_STRING_H. Add extern "C" when compiling with C++. * fibheap.h: Add extern "C" when compiling with C++. From-SVN: r148032
2009-04-24Correct filenames.H.J. Lu1-2/+2
From-SVN: r146740
2009-04-24Add missing ChangeLog entries for revision 146607.Taras Glek1-0/+5
From-SVN: r146739
2009-04-22hashtab.h: Update GTY annotations to new syntaxTaras Glek2-6/+3
2009-04-21 Taras Glek <tglek@mozilla.com> * include/hashtab.h: Update GTY annotations to new syntax * include/splay-tree.h: Likewise gcc/ChangeLog 2009-04-21 Taras Glek <tglek@mozilla.com> * alias.c: Update GTY annotations to new syntax * basic-block.h: Likewise * bitmap.h: Likewise * c-common.h: Likewise * c-decl.c: Likewise * c-parser.c: Likewise * c-pragma.c: Likewise * c-tree.h: Likewise * cfgloop.h: Likewise * cgraph.h: Likewise * config/alpha/alpha.c: Likewise * config/arm/arm.h: Likewise * config/avr/avr.h: Likewise * config/bfin/bfin.c: Likewise * config/cris/cris.c: Likewise * config/darwin.c: Likewise * config/frv/frv.c: Likewise * config/i386/i386.c: Likewise * config/i386/i386.h: Likewise * config/i386/winnt.c: Likewise * config/ia64/ia64.h: Likewise * config/iq2000/iq2000.c: Likewise * config/mips/mips.c: Likewise * config/mmix/mmix.h: Likewise * config/pa/pa.c: Likewise * config/pa/pa.h: Likewise * config/rs6000/rs6000.c: Likewise * config/s390/s390.c: Likewise * config/sparc/sparc.c: Likewise * config/xtensa/xtensa.c: Likewise * cselib.h: Likewise * dbxout.c: Likewise * dwarf2out.c: Likewise * except.c: Likewise * except.h: Likewise * fixed-value.h: Likewise * function.c: Likewise * function.h: Likewise * gimple.h: Likewise * integrate.c: Likewise * optabs.c: Likewise * output.h: Likewise * real.h: Likewise * rtl.h: Likewise * stringpool.c: Likewise * tree-data-ref.c: Likewise * tree-flow.h: Likewise * tree-scalar-evolution.c: Likewise * tree-ssa-address.c: Likewise * tree-ssa-alias.h: Likewise * tree-ssa-operands.h: Likewise * tree.c: Likewise * tree.h: Likewise * varasm.c: Likewise * varray.h: Likewise * vec.h: Likewise * coretypes.h: Do not define GTY macro if it is already defined * doc/gty.texi: Update GTY documentation to new syntax * gengtype-lex.l: Enforce attribute-like syntax for GTY annotations on structs * gengtype-parse.c: Likewise gcc/ada/ChangeLog 2009-04-21 Taras Glek <tglek@mozilla.com> * gcc-interface/ada-tree.h: Update GTY annotations to new syntax * gcc-interface/trans.c: Likewise * gcc-interface/utils.c: Likewise gcc/cp/ChangeLog 2009-04-21 Taras Glek <tglek@mozilla.com> * cp-tree.h: Update GTY annotations to new syntax * decl.c: Likewise * mangle.c: Likewise * name-lookup.c: Likewise * name-lookup.h: Likewise * parser.c: Likewise * pt.c: Likewise * rtti.c: Likewise * semantics.c: Likewise * typeck2.c: Likewise gcc/fortran/ChangeLog 2009-04-21 Taras Glek <tglek@mozilla.com> * f95-lang.c: Update GTY annotations to new syntax * trans-intrinsic.c: Likewise * trans-io.c: Likewise * trans.h: Likewise gcc/java/ChangeLog 2009-04-21 Taras Glek <tglek@mozilla.com> * builtins.c: Update GTY annotations to new syntax * decl.c: Likewise * java-tree.h: Likewise * jcf.h: Likewise * lang.c: Likewise gcc/objc/ChangeLog 2009-04-21 Taras Glek <tglek@mozilla.com> * objc-act.c: Update GTY annotations to new syntax * objc-act.h: Likewise libcpp/ChangeLog 2009-04-21 Taras Glek <tglek@mozilla.com> * include/cpp-id-data.h: Update GTY annotations to new syntax * include/cpplib.h: Likewise * include/line-map.h: Likewise * include/symtab.h: Likewise From-SVN: r146607
2009-03-17decl.c (grokfndecl): Set DECL_CONTEXT on parms.Jason Merrill2-2/+9
cp/: * decl.c (grokfndecl): Set DECL_CONTEXT on parms. (duplicate_decls): Adjust DECL_CONTEXT of newdecl's parms. * pt.c (check_explicit_specialization): Likewise. (tsubst_copy) [PARM_DECL]: Return a dummy parm if we don't have a local specialization. * tree.c (cp_tree_equal) [PARM_DECL]: Check type and index, not name. * decl2.c (parm_index): New fn. * semantics.c (finish_decltype_type): Don't use describable_type. * mangle.c (write_expression): Likewise. Mangle ALIGNOF_EXPR. Give a sorry for unsupported codes rather than crash. Mangle conversions with other than 1 operand. New mangling for PARM_DECL. * operators.def (ALIGNOF_EXPR): Mangle as az. * include/demangle.h (enum demangle_component_type): Add DEMANGLE_COMPONENT_FUNCTION_PARAM. * libiberty/cp-demangle.c (d_make_function_param): new fn. (cplus_demangle_mangled_name): Work around abi v2 bug. (d_expr_primary): Likewise. (cplus_demangle_operators): Add alignof ops. (d_expression): Handle function parameters and conversions with other than 1 operand. (d_print_comp): Handle function parameters. Fix bug with function used in type of function. From-SVN: r144924
2008-12-10re PR c++/35319 (ICE throwing fixed-point types)Jason Merrill2-0/+18
PR c++/35319 * mangle.c (write_builtin_type): Add mangling for decimal floating point and fixed point types. (write_type): Pass FIXED_POINT_TYPE along. * cp-demangle.c (cplus_demangle_type): Support fixed-point types. (d_print_comp, d_dump): Likewise. From-SVN: r142661
2008-11-19include/Bob Wilson2-18/+30
* xtensa-config.h (XCHAL_HAVE_MUL16, XCHAL_HAVE_MUL32, XCHAL_HAVE_DIV32) (XCHAL_HAVE_MINMAX, XCHAL_HAVE_SEXT, XCHAL_HAVE_THREADPTR) (XCHAL_HAVE_RELEASE_SYNC, XCHAL_HAVE_S32C1I): Change to 1. (XCHAL_NUM_AREGS): Change to 32. (XCHAL_ICACHE_SIZE, XCHAL_DCACHE_SIZE): Change to 16K. (XCHAL_ICACHE_LINESIZE, XCHAL_DCACHE_LINESIZE): Change to 32. (XCHAL_ICACHE_LINEWIDTH, XCHAL_DCACHE_LINEWIDTH): Change to 5. (XCHAL_DCACHE_IS_WRITEBACK): Change to 1. (XCHAL_DEBUGLEVEL): Change to 6. From-SVN: r142012
2008-10-21obstack.h (obstack_finish <!__GNUC__>): Cast result to void *.Alan Modra2-2/+6
* obstack.h (obstack_finish <!__GNUC__>): Cast result to void *. From-SVN: r141254
2008-10-06PR c++/37376, other mangling issuesJason Merrill2-1/+8
gcc/cp/: PR c++/37376, other mangling issues * mangle.c (write_type): Update TYPE_PACK_EXPANSION mangling. (write_member_name): Break out from... (write_expression): ...here. Handle dependent COMPONENT_REF. (write_template_arg): Wrap an argument pack in 'I'/'E'. (write_builtin_type): Update char16/32_t mangling. (write_nested_name, write_prefix): Don't forget template args for typename types. * operators.def: Add ARROW_EXPR, update COMPONENT_REF and EXPR_PACK_EXPANSION. libstdc++-v3/: * config/abi/pre/gnu.ver: Update char16/32_t manglings. include/: * demangle.h (enum demangle_component_type): Add DEMANGLE_COMPONENT_PACK_EXPANSION. libiberty/: * cp-demangle.c (struct d_print_info): Add pack_index. (d_dump): Add DEMANGLE_COMPONENT_PACK_EXPANSION. (d_make_comp): Likewise. DEMANGLE_COMPONENT_ARGLIST and DEMANGLE_COMPONENT_TEMPLATE_ARGLIST can have two null args. (cplus_demangle_builtin_types): Add char16/32_t. (cplus_demangle_type): Recognize them. (d_template_args): Handle empty argument packs. (d_template_arg): Handle argument packs. (d_expression): Handle dependent name. (d_index_template_argument): New fn. (d_lookup_template_argument): New fn. (d_find_pack, d_pack_length): New fn. (d_print_subexpr): Split out... (d_print_comp): ...from here. Use d_*_template_argument. Handle empty arg lists. Support pack expansions. * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Increase to 32. From-SVN: r140916