libcpp/
[official-gcc.git] / gcc / ChangeLog
bloba9a6e927f9e032f9fbfc9112a9e0dec07c021f87
1 2006-01-04  Richard Henderson  <rth@redhat.com>
3         Merge from gomp branch:
4         * c-lex.c (c_lex_with_flags) <CPP_PRAGMA>: Smuggle pragma id
5         via integer constant.
6         (pragma_lex): Remove.
7         * c-pch.c (c_common_pch_pragma): Accept the name as an argument,
8         rather than parsing it.
9         * c-pragma.c (handle_pragma_weak, handle_pragma_redefine_extname,
10         handle_pragma_extern_prefix): Add %< %> quotes.
11         (registered_pragmas): New.
12         (c_register_pragma_1): New.
13         (c_register_pragma): Use it.
14         (c_register_pragma_with_expansion): Likewise.
15         (c_invoke_pragma_handler): New.
16         (init_pragma): Use cpp_register_deferred_pragma directly for
17         pch_preprocess.
18         * c-pragma.h (enum pragma_kind): New.
19         (pragma_handler): New.
20         (c_invoke_pragma_handler): Declare.
21         * c-common.c (c_parse_error): Pretty print CPP_PRAGMA and
22         CPP_PRAGMA_EOL.
23         * c-common.h (c_common_pch_pragma): Update decl.
24         * Makefile.in (c-parser.o): Update dependencies.
25         (GTFILES): Add c-pragma.h.
26         * c-parser.c (struct c_token): Add pragma_kind.
27         (struct c_parser): Add in_pragma.
28         (c_lex_one_token): Always initialize keyword and pragma_kind.
29         Extract data for CPP_PRAGMA.
30         (c_parser_peek_2nd_token): Deny CPP_PRAGMA_EOL.
31         (c_parser_consume_token): Don't allow CPP_PRAGMA unless errors.
32         Don't allow CPP_PRAGMA_EOL if in_pragma.
33         (c_parser_consume_pragma): New.
34         (c_parser_skip_until_found): Stop on CPP_PRAGMA_EOL.
35         (c_parser_skip_to_end_of_parameter): Likewise.
36         (c_parser_skip_to_end_of_block_or_statement): Likewise.
37         (c_parser_skip_to_pragma_eol): New.
38         (c_parser_external_declaration): Handle CPP_PRAGMA.
39         (c_parser_compound_statement_nostart): Likewise.
40         (c_parser_statement_after_labels): Likewise.
41         (c_parser_pragma): New.
42         (pragma_lex): Likewise.
43         (c_parser_pragma_pch_preprocess): New.
44         (c_parser_new): Merge into ...
45         (c_parse_file): ... here.  Call c_parser_pragma_pch_preprocess.
47 2005-01-04  Jeff Law  <law@redhat.com>
49         PR ada/24994
50         * tree-cfg.c (bsi_replace): Remove the original statement
51         from the EH throw statement table.
53 2006-01-04  Jakub Jelinek  <jakub@redhat.com>
55         * config/i386/pmm_malloc.h (posix_memalign): If __cplusplus,
56         make the prototype extern "C" and add throw ().
58         PR target/25554
59         * config/i386/i386.md (testqi_ext_3): Ensure len is positive
60         and pos non-negative and pos + len <= 32.
61         (testqi_ext_3_rex64): Ensure len is positive and pos non-negative,
62         drop pos + len < HOST_BITS_PER_WIDE_INT test.
63         (testqi_ext_3* splitter): Handle pos + len == HOST_BITS_PER_WIDE_INT.
65         PR c/25559
66         * c-common.c (handle_vector_size_attribute): Reject zero vector size
67         as well as sizes not multiple of component size.
69         PR debug/25562
70         * function.c (instantiate_expr): New function.
71         (instantiate_decls_1, instantiate_decls): If DECL_HAS_VALUE_EXPR_P,
72         walk its DECL_VALUE_EXPR with instantiate_expr.
74         * dwarf2out.c (loc_descriptor_from_tree_1): Don't add
75         DW_OP_deref{,_size} if address isn't going to be added.
77 2006-01-04  Ben Elliston  <bje@au.ibm.com>
79         * config/fp-bit.h: Use top-of-file comment from libgcc2.c.
80         * config/fp-bit.c: Likewise.
82 2006-01-03  Daniel Berlin  <dberlin@dberlin.org>
84         * dominance.c: Add comment about why we use DFS numbering
85         of dominance tree.
87 2006-01-03  Jakub Jelinek  <jakub@redhat.com>
88             Richard Henderson  <rth@redhat.com>
90         Merge from gomp-branch:
91         * varasm.c (assemble_variable): Handle thread-local COMMON data.
92         * defaults.h (ASM_OUTPUT_TLS_COMMON): Define.
94 2006-01-03  Paolo Bonzini  <bonzini@gnu.org>
96         PR rtl-optimization/25578
97         * combine.c (combine_simplify_rtx, force_to_mode): Don't
98         pass a parameter to simplify_shift_const if changing ASHIFTRT
99         to LSHIFTRT.
101 2006-01-03  Adrian Straetling  <straetling@de.ibm.com>
103         * gcc/builtins.c (get_builtin_sync_mem): New function.
104         (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
105         expand_builtin_lock_test_and_set, expand_builtin_lock_release):
106         Call get_builtin_sync_mem to generate mem rtx.
108 2006-01-03  Richard Guenther  <rguenther@suse.de>
110         PR c/25183
111         * stmt.c (add_case_node): Make sure to clear overflow flags
112         from ranges.
114 2006-01-03  Jakub Jelinek  <jakub@redhat.com>
116         Merge from gomp-branch.
117         * config/sparc/sync.md: New file.
118         * config/sparc/sparc.md (UNSPECV_MEMBAR, UNSPECV_CAS, UNSPECV_SWAP,
119         UNSPECV_LDSTUB): New constants.
120         * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): New function.
121         * config/sparc/predicates.md (memory_reg_operand): New predicate.
122         * config/sparc/sparc-protos.h (sparc_expand_compare_and_swap_12): New
123         prototype.
125 2006-01-03  Roger Sayle  <roger@eyesopen.com>
127         * combine.c (reg_subword_p): New predicate to test whether the
128         destination of a set refers to a subword/piece of a register.
129         (try_combine): Generalize the code to merge the setting of a
130         pseudo to a constant followed by a set of a subword of that
131         register to a constant.
133 2006-01-03  Kazu Hirata  <kazu@codesourcery.com>
135         * basic-block.h (control_flow_graph): Change the type of
136         x_label_to_block_map to VEC(basic_block,gc) *.
137         * tree-cfg.c (init_empty_tree_cfg, label_to_block_fn,
138         set_bb_for_stmt): Adjust the uses of x_label_to_block_map.
140         * tree-ssa-propagate.c (cfg_blocks): Change the type to
141         VEC(basic_block,heap) *.
142         (cfg_blocks_add, cfg_blocks_get, ssa_prop_init,
143         ssa_prop_fini): Adjust the uses of cfg_blocks.
145 2006-01-03  Steven Bosscher  <stevenb.gcc@gmail.com>
147         * fold-const.c (operand_equal_p): Accept a NULL operand 0 for
148         COMPONENT_REFs.
149         * emit-rtl.c (mem_attrs_htab_eq): Use iterative_hash_expr for
150         hashing trees instead of a pointer hash.
151         (mem_attrs_htab_eq): Do a deep compare instead of a pointer
152         compare for MEM_EXPR.
154         PR rtl-optimization/25130
155         * cse.c (exp_equiv_p): Compare MEM_ATTRS instead of MEM_ALIAS_SET
156         when comparing MEMs for GCSE
158 2006-01-03  Ben Elliston  <bje@au.ibm.com>
160         * targhooks.h (default_decimal_float_supported_p): Declare.
161         * targhooks.c (default_decimal_float_supported_p): Define.
162         * target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Redefine to
163         `default_decimal_float_supported_p'.
164         * doc/tm.texi (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Update.
166 2006-01-02  Adam Nemet  <anemet@caviumnetworks.com>
168         * combine.c (apply_distributive_law <SUBREG>): Check
169         TRULY_NOOP_TRUNCATION.
171 2006-01-02  Geoffrey Keating  <geoffk@apple.com>
173         * dwarf2out.c (have_switched_text_section): Delete.
174         (have_multiple_function_sections): New.
175         (have_location_lists): Make 'bool'.
176         (add_AT_loc_list): Use 'true' not '1'.
177         (dwarf2out_switch_text_section): Set have_multiple_function_sections.
178         (output_loc_list): Use have_multiple_function_sections.
179         (output_ranges): Likewise.
180         (dwarf2out_begin_function): Set have_multiple_function_sections if
181         necessary.
182         (dwarf2out_source_line): Don't fake separate_line_info_table_in_use.
183         Check function_section rather than DECL_SECTION_NAME.
184         (dwarf2out_finish): Use have_multiple_function_sections.
185         Don't clear have_location_lists.
187 2006-01-02  Eric Botcazou  <ebotcazou@adacore.com>
188             Jan Hubicka  <jh@suse.cz>
190         * cfglayout.c (fixup_reorder_chain): Remove kludge for the
191         case of conditional jump jumping to the next instruction.
192         * cfgrtl.c (force_nonfallthru_and_redirect): Accept all
193         cases of conditional jump jumping to the next instruction.
195 2006-01-02  Jan Hubicka  <jh@suse.cz>
197         * i386.c (*_cost): Add COSTS_N_INSNS.
198         (ix86_rtx_costs): Do not use COSTS_N_INSNS.
200 2006-01-02  Paolo Bonzini  <bonzini@gnu.org>
202         PR target/25259
203         * Makefile.in (DECNUMINC): Include libdecnumber's build directory.
205 2006-01-02  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
207         * config/arm/arm.c (all_fpus): Fix comment typo.
208         * config/darwin.c: Likewise.
209         * config/frv/frv.h (FRV_STRUCT_VALUE_REGNUM): Likewise.
210         * config/h8300/h8300.md (extendqisi2_h8300hs): Likewise.
211         * config/m68hc11/m68hc11.c (m68hc11_reload_operands): Likewise.
213 2006-01-01  David Edelsohn  <edelsohn@gnu.org>
215         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): New.
216         (rs6000_split_compare_and_swapqhi): New.
217         * config/rs6000/sync.md (sync_compare_and_swap{hi,qi}): New.
218         (sync_compare_and_swapqhi_internal): New.
219         * config/rs6000/rs6000-protos.h: Declare.