* c-parser.c (c_parser_lex_all): Don't enforce location constraint
[official-gcc.git] / gcc / ChangeLog
blob5772c3324639eba9838e036303615b2eb73c9622
1 2008-04-28  Tom Tromey  <tromey@redhat.com>
3         * c-parser.c (c_parser_lex_all): Don't enforce location constraint
4         on pragmas.
6 2008-04-28  Tom Tromey  <tromey@redhat.com>
8         * gcc.c (process_command): Add missing 'const'.
9         * server.c (send_fd): Move assert after declarations.
10         * c-parser.c (c_parser_mark_hunk_set): Don't cast away const.
11         (update_shared_from_hunk): Use a union to convert types.
13 2008-04-24  Tom Tromey  <tromey@redhat.com>
15         * c-parser.c (c_parser) <next>: New field.
16         (all_used_hunks): New global.
17         (c_parser_create_smash_map): Reset all_used_hunks.
18         (c_parse_file): Link parsers.  Update all_used_hunks.
19         (c_server_steady_state): Reverse list of parsers.
20         (universalize_decl_locations): Loop over parsers.  Only
21         universalize a hunk once.
22         (traverse_hunk_binding_entry): Remove.
23         (can_reuse_hunk): Map in bindings inline.  Avoid resetting
24         location in some cases.
26 2008-04-23  Tom Tromey  <tromey@redhat.com>
28         * toplev.c (create_line_map): New function.
29         (general_init): Use it.
30         (compile_file): Call server_steady_state hook.
31         (server_callback): Call create_line_map.
32         * c-tree.h (c_server_steady_state): Declare.
33         * c-lang.c (LANG_HOOKS_SERVER_STEADY_STATE): New define.
34         * langhooks-def.h (LANG_HOOKS_SERVER_STEADY_STATE): New define.
35         (LANG_HOOKS_INITIALIZER): Update.
36         * langhooks.h (struct lang_hooks) <server_steady_state>: New
37         function.
38         * c-parser.c (traverse_hunk_binding_entry): Reset decl locations.
39         (can_reuse_hunk): Pass parser to traverse_hunk_binding_entry.
40         Reset binding's location and token offset.
41         (struct hunk_binding) <token_offset, token_count>: New fields.
42         (start_new_parsed_hunk): Set token_offset field.
43         (c_server_steady_state): New function.
44         (universalize_decl_locations): Likewise.
45         (c_parser_create_smash_map): Null 'the_parser'.
46         (c_parse_file): Don't null 'the_parser'.
47         (reset_tree_location): New function.
48         (universalize_tree): Likewise.
49         (c_parser_lex_all): Add assert.
51 2008-04-21  Tom Tromey  <tromey@redhat.com>
53         * dwarf2out.c (seen_decls): Remove.
54         (dwarf2out_init): Don't initialize seen_decls.
55         (mark_decl): Remove.
56         (seen_decl_p): Likewise.
57         Update all callers.
59 2008-04-18  Tom Tromey  <tromey@redhat.com>
61         * toplev.c (free_for_line_map): New function.
62         (general_init): Use it.
64 2008-04-17  Tom Tromey  <tromey@redhat.com>
66         * server.h (server_start, server_main_loop): Update.
67         * server.c (server_directory): Update comment.
68         (get_socket_name): Always set server_directory.
69         (forget_socket_name): Free server_directory.
70         (server_cleanup): Don't remove socket or directory.
71         (delete_server_socket): New function.
72         (server_start): Add 'nservers' argument.  Pass -j to new process.
73         (server_main_loop): Add 'nservers' argument.
74         (client_kill_server): Loop to kill all servers.  Call
75         delete_server_socket.
76         * toplev.c (toplev_main): Handle -j.
77         * gcc.c (server_count): New global.
78         (process_command): Handle -j.
79         (main): Use server_count.
81 2008-04-02  Tom Tromey  <tromey@redhat.com>
83         * c-decl.c (c_clear_binding_stack): Use dump_vec.
84         * tree-pass.h (dump_vec): Declare.
85         * tree-dump.c (dump_vec): New function.
87 2008-03-31  Tom Tromey  <tromey@redhat.com>
89         * c-parser.c (c_parser_find_binding): Rename 'decl' argument.
90         Register hunk dependency if update is found.
91         * c-tree.h (C_SMASHED_TYPE_VARIANT): Update comment.
93 2008-03-31  Tom Tromey  <tromey@redhat.com>
95         * gcc.c (main): Disable server if input comes from stdin.
97 2008-03-29  Tom Tromey  <tromey@redhat.com>
99         * c-parser.c (c_parser_translation_unit): Clear
100         current_hunk_binding after finishing hunk.
102 2008-03-27  Tom Tromey  <tromey@redhat.com>
104         * c-tree.h (c_parser_print_job_statistics): Declare.
105         * c-parser.c (struct job_statistics): New struct.
106         (update_shared_from_hunk): New function.
107         (update_shared_from_job): Likewise.
108         (c_parser_print_job_statistics): Likewise.
110 2008-03-27  Tom Tromey  <tromey@redhat.com>
112         * server.c (server_start): Use fileno.
113         * toplev.c (server_callback): Use fileno.
115 2008-03-24  Tom Tromey  <tromey@redhat.com>
117         * c-opts.c (clean_up): Clear more globals.
119 2008-03-24  Tom Tromey  <tromey@redhat.com>
121         * c-parser.c (c_parser_lex_all): Fix off-by-one error.
122         (can_reuse_hunk): Handle end-of-file.
124 2008-03-24  Tom Tromey  <tromey@redhat.com>
126         * c-typeck.c (build_binary_op) <LE_EXPR>: Look at smashed type
127         variant.
129 2008-03-24  Tom Tromey  <tromey@redhat.com>
131         * toplev.c (lang_independent_params): Update for params.h change.
132         (DEFPARAM): Likewise.
133         * opts.c (option_value): New typedef.
134         (default_values, defaults_saved): New globals.
135         (verbose): Move out of function scope.
136         (type_explicit): Likewise.
137         (clean_up): Call restore_default_option_values, reset_params.
138         (decode_options): Call save_default_option_values.
139         (common_handle_option): Move 'verbose' to file scope.
140         (set_debug_level): Move 'type_explicit' to file scope.
141         (save_default_option_values): New function.
142         (restore_default_option_values): Likewise.
143         * params.c (reset_params): New function.
144         * params.h (param_info) <default_value>: New field.
145         (reset_params): Declare.
147 2008-03-19  Tom Tromey  <tromey@redhat.com>
149         * toplev.c (do_compile): Set ggc_protect_identifiers here...
150         (compile_file): ... not here.
151         * tree.h (struct tree_identifier): Fix typo.
152         * tree.c (tree_code_size): Disallow identifiers.
154 2008-03-13  Tom Tromey  <tromey@redhat.com>
156         * c-decl.c (hand_off_decls) <VAR_DECL>: Call
157         rewrite_types_and_globals on the DECL_INITIAL.
159 2008-03-12  Tom Tromey  <tromey@redhat.com>
161         * passes.c (pass_do_nothing_but_lower) <name>: Set to NULL.
162         <todo_flags_finish>: Set to 0.
163         * tree-pass.h (struct tree_opt_pass) <name>: Document NULL.
165 2008-03-12  Tom Tromey  <tromey@redhat.com>
167         * passes.c (do_nothing_but_lower): New function.
168         (pass_do_nothing_but_lower): New global.
169         (init_optimization_passes): Add pass_do_nothing_but_lower at
170         beginning of all_lowering_passes.
172 2008-03-11  Tom Tromey  <tromey@redhat.com>
174         * dwarf2out.c (hash_type_die_entry): Use TYPE_UID.
175         (reference_to_unused): Use seen_decl_p.
176         (gen_type_die_with_usage): Use seen_decl_p and mark_decl.
178 2008-03-05  Tom Tromey  <tromey@redhat.com>
180         * c-opts.c (finish_options): Set input_location.
181         * toplev.c (general_init): Create builtins location.
182         * input.h (BUILTINS_LOCATION): Change value.
184 2008-02-29  Tom Tromey  <tromey@redhat.com>
186         * cgraphunit.c (cgraph_unit_reset): Use NULL, not NULL_TREE.
188 2008-02-29  Tom Tromey  <tromey@redhat.com>
190         * diagnostic.c (diagnostic_action_after_output) <DK_ICE>: Print
191         stack trace.
193 2008-02-27  Tom Tromey  <tromey@redhat.com>
195         * Makefile.in (c-format.o): Depend on gt-c-format.h.
196         * c-format.c (struct format_state): Mark with GTY.
197         (global_format_state): Likewise.
198         (construct_format_state): Allocate global_format_state via GC.
199         (c_format_finalize): Don't free global_format_state.
200         Include gt-c-format.h.
201         (init_dynamic_diag_info): Use global diag_t, not '&t'.
202         * c-config-lang.in (gtfiles): Add c-format.h, c-format.c.
204 2008-02-25  Tom Tromey  <tromey@redhat.com>
206         * c-common.c (handle_alias_attribute): Handle error_mark_node as
207         function's DECL_INITIAL.
208         (handle_no_instrument_function_attribute): Likewise.
209         (handle_no_limit_stack_attribute): Likewise.
211 2008-02-21  Tom Tromey  <tromey@redhat.com>
213         * c-gimplify.c (c_gimplify_expr) <VIEW_CONVERT_EXPR>: Update
214         assertion.
215         * c-decl.c (all_global_decls): New global.
216         (pop_scope_internal): New function.
217         (pop_scope): Use it.
218         (pop_file_scope): Initialize all_global_decls.  Use
219         pop_scope_internal.
220         (c_clear_binding_stack): Use pop_scope_internal.
221         (ext_block): Remove.
222         (c_smash_decls): Change type of 'result'.  Remove 'list'
223         argument; add 'globals' argument.  Smash field types of records
224         and unions.
225         (get_smashed_type): Don't smash field types of records and
226         unions.
227         (hand_off_decls): Walk DECL_ARGUMENTS of function.
228         (c_write_global_declarations): Use all_global_decls.
229         (c_init_decl_processing): Initialize all_global_decls.
230         * c-parser.c (struct can_reuse_hunk_data) <parser>: Remove.
231         (traverse_check_statics): New function.
232         (can_reuse_hunk): Call traverse_check_statics.
234 2008-02-18  Tom Tromey  <tromey@redhat.com>
236         * c-parser.c (c_hack_token): Pop timevar in early return.
238 2008-02-15  Tom Tromey  <tromey@redhat.com>
240         * c-decl.c (get_smashed_type): Don't mix declaration with code.
241         (duplicate_decls): Apply attributes to new decl.
243 2008-02-13  Tom Tromey  <tromey@redhat.com>
245         * c-parser.c: Include pointer-set.h.
246         (c_parser) <smash_map>: Removed.
247         (global_smash_map): New global.
248         (struct mark_one_hunk_binding_info): Define.
249         (mark_one_hunk_binding): Change argument types.  Use
250         htab_clear_slot.
251         (c_parser_mark_hunk_set): Update.
252         (struct smash_value): Define.
253         (struct smash_entry) <value>: Change type.
254         (c_parser_find_binding): Update.
255         (hash_c_tree_map_entry): New function.
256         (eq_c_tree_map_entry): Likewise.
257         (copy_to_pointer_map): Likewise.
258         (c_parser_create_smash_map): Likewise.
259         (c_parser_note_smash): Track canonical definition.
260         (c_parse_file): Create global_smash_map.
261         * c-common.h: Update comment.
262         * c-gimplify.c (c_gimplify_expr) <CALL_EXPR, FDESC_EXPR,
263         ADDR_EXPR>: Remove cases.
264         <VIEW_CONVERT_EXPR>: Handle C_SMASHED_P.
265         * c-typeck.c (build_component_ref): Set C_SMASHED_P.
266         (build_indirect_ref): Likewise.
267         (build_array_ref): Likewise.
268         (build_external_ref): Likewise.
269         (build_function_call): Likewise.
270         (wrap_pointer_int_sum): Likewise.
271         (readonly_error): Remove VIEW_CONVERT_EXPRs.
272         * c-decl.c: Include server.h, pointer-set.h.
273         (c_decl_re_bind): Don't hand off decls.
274         (merge_decls): Don't call cgraph_finalize_function.
275         (duplicate_decls): Copy C_FIRST_DEFINITION_P.
276         (clone_underlying_type): Update comment.
277         (start_decl): Set C_FIRST_DEFINITION_P.
278         (finish_decl): Don't call rest_of_decl_compilation for file-scope
279         decls.
280         (finish_struct): Likewise.
281         (start_struct): Set C_FIRST_DEFINITION_P.
282         (start_enum): Likewise.
283         (finish_enum): Don't call rest_of_type_compilation for file-scope
284         type.
285         (start_function): Set C_FIRST_DEFINITION_P.
286         (finish_function): Don't call cgraph_finalize_function.
287         (c_merge_decls): New function.
288         (get_smashed_type): Likewise.
289         (c_smash_decls): Likewise.
290         (rewrite_types_and_globals): Likewise.
291         (hand_off_decls): Likewise.
292         (c_write_global_declarations_1): Change argument type.
293         (c_write_global_declarations_2): Likewise.
294         (lowering_smash_map): New global.
295         (c_write_global_declarations): Call c_smash_decls.
296         * c-tree.h (c_parser_create_smash_map, c_merge_decls): Declare.
297         (C_FIRST_DEFINITION_P): New macro.
298         (C_SMASHED_P): Likewise.
299         (struct c_tree_map_entry): Define.
300         * cgraphunit.c (cgraph_analyze_functions): Handle case where child
301         is also deleted.
302         * cgraph.h (cgraph_note_duplicate, cgraph_canonical_decl):
303         Remove.
304         * cgraph.c (duplicate_map): Remove.
305         (cgraph_reset): Update.
306         (cgraph_canonical_decl): Remove.
307         (cgraph_note_duplicate): Remove.
308         * cgraphbuild.c (record_reference): Don't call
309         cgraph_canonical_decl.
311 2008-02-01  Tom Tromey  <tromey@redhat.com>
313         * Makefile.in (TAGS): Also tag tree.def.
315 2008-01-29  Tom Tromey  <tromey@redhat.com>
317         * server.c (forget_socket_name): New function.
318         (send_command_and_wait): Close connection.
320 2008-01-28  Tom Tromey  <tromey@redhat.com>
322         * c-typeck.c (wrap_pointer_int_sum): New function.
323         (pointer_diff): Use C_SMASHED_TYPE_VARIANT.
324         (wrap_pointer_int_sum): New function.
325         (build_binary_op): Use it.
327 2008-01-28  Tom Tromey  <tromey@redhat.com>
329         * toplev.c (server_callback): Save and restore stderr.
331 2008-01-28  Tom Tromey  <tromey@redhat.com>
333         * c-typeck.c (build_array_ref): Wrap pointer in
334         VIEW_CONVERT_EXPR.
336 2008-01-23  Tom Tromey  <tromey@redhat.com>
338         * c-parser.c (c_parse_file_wrapper): Only save jobs with names.
340 2008-01-23  Tom Tromey  <tromey@redhat.com>
342         * c-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
343         * toplev.h (get_asm_object_file_name): Declare.
344         * c-tree.h (c_parser_mark_hunk_set): Declare.
345         (c_parse_file_wrapper): Declare.
346         * c-parser.c (global_hunk_map): Use 'if_marked'.
347         (mark_one_hunk_binding): New function.
348         (c_parser_mark_hunk_set): Likewise.
349         (finish_current_hunk): Update used_hunks.
350         (struct c_compile_job): New struct.
351         (hash_c_compile_job): New function.
352         (eq_c_compile_job): Likewise.
353         (all_compile_jobs): New global.
354         (old_job, working_job): Likewise.
355         (c_parse_file_wrapper): New function.
356         (insert_single_binding): Likewise.
357         (copy_used_hunks): Likewise.
358         (c_parse_file): Call copy_used_hunks.
359         * toplev.c (server_asm_object_file_name): New global.
360         (parse_as_command_line): New function.
361         (server_callback): Call it.
362         (get_asm_object_file_name): New function.
364 2008-01-18  Tom Tromey  <tromey@redhat.com>
366         * c-parser.c (c_parser_translation_unit): Check for interrupt.
367         Include server.h.
368         * server.h (server_interrupted_p): Declare.
369         * server.c (server_pid): New global.
370         (client_interrupted): Likewise.
371         (client_connect): Set server_pid.
372         (server_main_loop): Send process id.
373         (client_sigint_handler): New function.
374         (client_connect): Set SIGINT handler.
375         (send_command_and_wait): Remove SIGINT handler.
376         (server_start_back_end): Likewise.
377         (server_main_loop): Reset 'interrupted'.  Handle SIGINT.
378         (server_interrupted_p): New function.
379         (server_sigint_handler): Likewise.
381 2008-01-18  Tom Tromey  <tromey@redhat.com>
383         * c-decl.c (c_write_global_declarations_2): Fix typo.
385 2008-01-18  Tom Tromey  <tromey@redhat.com>
387         * toplev.c (wait_for_as): Remove comment.
388         (finalize): Return bool.
389         (do_compile): Update.
390         (compile_file): Update.
391         (server_back_end_status): New global.
392         (start_as): Remove comment.
393         * gcc.c (execute): Use client_wait result.
394         * server.c (client_wait): Return bool.
395         (send_command_and_wait): Likewise.
396         (send_fd): New function.
397         (request_and_response): Handle 'F' request.  Clean up error
398         handling.
399         (server_start_back_end): Add 'status' argument.
400         * server.h (client_wait): Update.
401         (server_callback): Change return type.
402         (server_start_back_end): Update.
404 2008-01-18  Tom Tromey  <tromey@redhat.com>
406         * toplev.c (toplev_main): Return result of server_main_loop.
407         * server.h (server_main_loop): Update.
408         * server.c (server_directory): New global.
409         (get_socket_name): Added 'server' argument.  Make directory in
410         temp directory.  Use choose_tmpdir.
411         (open_socket): Update.
412         (client_connect): Update.
413         (server_start): Exit if server startup failed.
414         (server_main_loop): Return int.  Call server_cleanup.
415         (server_cleanup): New function.
417 2008-01-15  Tom Tromey  <tromey@redhat.com>
419         * c-decl.c (duplicate_decls): Merge non-top-level declarations.
421 2008-01-15  Tom Tromey  <tromey@redhat.com>
423         * c-parser.c (c_parser_update_checksum): Include keyword value.
425 2008-01-14  Tom Tromey  <tromey@redhat.com>
427         * c-decl.c (lookup_name_in_scope): Only register anti-dependency
428         at file scope.
430 2008-01-14  Tom Tromey  <tromey@redhat.com>
432         * c-decl.c (c_write_global_declarations): Call
433         cgraph_finalize_compilation_unit.
435 2008-01-14  Tom Tromey  <tromey@redhat.com>
437         * c-parser.c: Fix comment.
439 2008-01-09  Tom Tromey  <tromey@redhat.com>
441         * c-decl.c (pushdecl): Always override file scope copy after
442         smashing.
444 2007-12-21  Tom Tromey  <tromey@redhat.com>
446         * c-decl.c (lookup_tag): Only record anti-dependency at file
447         scope.
448         (pushdecl): Do nothing if no external scope available.
450 2007-12-20  Tom Tromey  <tromey@redhat.com>
452         * c-parser.c (c_parser_update_checksum): Fix logic.
454 2007-12-20  Tom Tromey  <tromey@redhat.com>
456         * dwarf2out.c (macro_obstack): New global.
457         (struct macro_entry): New.
458         (first_macro_entry, last_macro_entry): New globals.
459         (add_macro_entry): New function.
460         (emit_macro_entries): Likewise.
461         (dwarf2out_start_source_file): Use add_macro_entry.
462         (dwarf2out_end_source_file): Likewise.
463         (dwarf2out_define): Likewise.
464         (dwarf2out_undef): Likewise.
465         (dwarf2out_init): Clear macro_obstack if needed.
466         (dwarf2out_finish): Call emit_macro_entries.
468 2007-12-20  Tom Tromey  <tromey@redhat.com>
470         * toplev.c (clear_src_pwd): Add cast.
471         * c-parser.c (c_parser_lookup_callback): Check against
472         error_mark_node.
473         (c_parser_update_checksum): Likewise.
474         (c_parser_bind_callback): Likewise.
475         * c-typeck.c (really_start_incremental_init): Check against
476         error_mark_node.
477         * tree.c (make_node_stat): Only allow one error mark.  Remove dead
478         code.
480 2007-12-17  Tom Tromey  <tromey@redhat.com>
482         * c-decl.c (c_write_global_declarations): Return early if making a
483         PCH file.
485 2007-12-17  Tom Tromey  <tromey@redhat.com>
487         * gimplify.c (gimplify_function_tree): Use
488         server_assert_code_generation.
489         * server.h (server_assert_code_generation): Declare.
490         * server.c (enum server_state): New.
491         (current_server_state): New global.
492         (server_main_loop): Set it.
493         (server_start_back_end): Likewise.
494         (server_assert_code_generation): New function.
495         * c-pretty-print.c (pp_c_expression): Handle VIEW_CONVERT_EXPR.
496         (pp_c_cast_expression): Likewise.
497         * c-typeck.c (really_start_incremental_init): Handle error mark
498         nodes.
499         (build_external_ref): Wrap variables in VIEW_CONVERT_EXPR.
500         * c-parser.c (c_parser_lookup_callback): Handle error mark nodes.
501         * c-decl.c (check_bitfield_type_and_width): Handle enum type
502         without a min and max.
503         (lookup_name): Revert earlier patch; don't wrap with
504         VIEW_CONVERT_EXPR.
506 2007-12-14  Tom Tromey  <tromey@redhat.com>
508         * c-decl.c (lookup_name): Wrap variables in a VIEW_CONVERT_EXPR.
510 2007-12-14  Tom Tromey  <tromey@redhat.com>
512         * c-common.h (c_set_cpp_error_callback): Declare.
513         * c-lex.c (c_cpp_error): New function, renamed and moved from
514         cp_cpp_error.
515         (c_set_cpp_error_callback): New function.
516         * c-parser.c (c_parser_lex_string): Set location from first string
517         token.
518         (c_parser_lex_all): Call c_set_cpp_error_callback.
520 2007-12-14  Tom Tromey  <tromey@redhat.com>
522         * c-parser.c (c_parser_update_checksum): Handle ERROR_MARK.
524 2007-12-14  Tom Tromey  <tromey@redhat.com>
526         * c-decl.c (pushdecl): Pass NULL directly to duplicate_decls.
527         (duplicate_decls): Check for non-NULL binding.
529 2007-12-14  Tom Tromey  <tromey@redhat.com>
531         * c-common.c (c_type_hash): Handle VLAs.
533 2007-12-13  Tom Tromey  <tromey@redhat.com>
535         * tree-nested.c (gimplify_all_functions): New function.
536         (lower_nested_functions): Call it.
537         * cgraphunit.c (cgraph_lower_function): Call
538         lower_nested_functions here...
539         (cgraph_finalize_function): ... not here.
540         (cgraph_analyze_function): Restore current_function_decl.
542 2007-12-12  Tom Tromey  <tromey@redhat.com>
544         * c-parser.c (check_hunk_binding): Fix multi-hunk failure check.
545         * c-tree.h (C_IS_RESERVED_WORD): Update documentation.
547 2007-12-11  Tom Tromey  <tromey@redhat.com>
549         * gcc.c (execute): Call client_send_directory.
550         (server_callback): Add argument.
551         * server.c (client_send_directory): New function.
552         (request_and_response): Handle '.' request.
553         * server.h (client_send_directory): Declare.
554         (server_callback): Add argument.
555         * toplev.c (get_src_pwd): Ensure src_pwd is allocated.  Use
556         getcwd.
557         (clear_src_pwd): New function.
558         (server_callback): Call it.  Add argument.  Set directory.
560 2007-12-11  Tom Tromey  <tromey@redhat.com>
562         * c-typeck.c (require_complete_type): Now static.
563         (build_function_call): Cast function type.
564         (comptypes_internal): Use smashed type variant.
565         (build_indirect_ref): Convert pointer type, not type of
566         dereference.
567         (really_start_incremental_init): Use smashed type variant.
568         * c-tree.h (require_complete_type): Remove declaration.
569         (C_SMASHED_TYPE_VARIANT): Rewrote.
570         (C_SMASHED_VARIANT): Remove.
571         * c-decl.c (grokdeclarator): Remove unused variable.
572         (start_struct): Fix condition.
573         (start_enum): Likewise.
574         (declspecs_add_type): Use smashed variant of a typedef.
575         (duplicate_decls): Use smashed type variant.
576         (pushdecl): Likewise.
578 2007-12-04  Tom Tromey  <tromey@redhat.com>
580         * c-decl.c (c_gimple_diagnostics_recursively): Remove.
581         (finish_function): Remove comment.
582         * c-common.h (c_warn_unused_result_pass): Declare.
583         (c_warn_unused_result): Delete declaration.
584         * c-common.c (c_warn_unused_result): Now static.
585         (run_warn_unused_result): New function.
586         (c_warn_unused_result_pass): New global.
587         Include tree-pass.h.
588         * c-objc-common.h (LANG_HOOKS_POST_GIMPLIFY_PASS): New macro.
589         * langhooks-def.h (LANG_HOOKS_POST_GIMPLIFY_PASS): New macro.
590         (LANG_HOOKS_INITIALIZER): Use it.
591         * langhooks.h (struct lang_hooks) <post_gimplify_pass>: New
592         field.
593         * tree-gimple.h (diagnose_omp_structured_block_errors): Remove
594         declaration.
595         * omp-low.c (diagnose_omp_structured_block_errors): Change return
596         type.  Make static.  Don't set current_function_decl.
597         (pass_diagnose_omp_blocks): New global.
598         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
599         * passes.c (init_optimization_passes) <all_lowering_passes>: Run
600         pass_diagnose_omp_blocks, lang_hooks.post_gimplify_pass.
602 2007-12-04  Tom Tromey  <tromey@redhat.com>
604         * c-gimplify.c (c_genericize): Don't dump generic function.
605         * tree-optimize.c (tree_lowering_passes): Dump generic function.
606         * gimplify.c (gimplify_function_tree): Exit early if function
607         already gimplified.
608         * tree.c (staticp): Handle VIEW_CONVERT_EXPR.
609         * debug.h: (dwarf2out_ensure_output_file_set): Declare.
610         * dwarf2out.c (dwarf2out_ensure_output_file_set): New function.
611         * toplev.c (compile_file): Don't call
612         cgraph_finalize_compilation_unit.
613         (lang_dependent_init): Call dwarf2out_ensure_output_file_set.
614         (compile_file): Likewise.
615         * langhooks.c (write_global_declarations): Call
616         cgraph_finalize_compilation_unit and cgraph_optimize.
617         Include cgraph.h.
619 2007-11-30  Tom Tromey  <tromey@redhat.com>
621         * c-opts.c (finish_options): Update.
623 2007-11-29  Tom Tromey  <tromey@redhat.com>
625         * c-decl.c (struct lang_identifier): Add comment for 'node'
626         field.
628 2007-11-28  Tom Tromey  <tromey@redhat.com>
630         * c-parser.c (c_parser_translation_unit): Handle a wrong guess by
631         c_parser_find_decl_boundary.  Only set parsed_any if a new hunk
632         was started.
633         * server.c (server_start): Move declaration to start of function.
634         * ggc-page.c (gt_ggc_m_S): Cast argument to
635         gt_ggc_mx_lang_tree_node.
636         * c-decl.c (c_gimple_diagnostics_recursively): Comment out.
637         * c-format.c (handle_format_attribute): Copy format_types_orig.
638         * gengtype.c (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
639         * dwarf2out.c (equate_type_number_to_die): Move declaration to
640         start of function.
642 2007-11-27  Tom Tromey  <tromey@redhat.com>
644         * c-parser.c (c_parse_init_once): New function.
645         (c_parse_init): Remove once-only code.
646         * ggc-page.c: Include langhooks.h
647         (gt_ggc_m_S): Mark containing objects as trees.
648         * ggc-common.c (ggc_mark_roots): Call ggc_mark_stringpool twice.
649         (ggc_protect_identifiers): New global.
650         * ggc.h (ggc_protect_identifiers): Declare.
651         (ggc_mark_stringpool): Update.
652         * c-tree.h (c_parse_init_once): Declare.
653         * c-decl.c (c_init_decl_processing): Use c_parse_init_once.
654         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
655         * stringpool.c (check_ident): New function.
656         (ggc_mark_stringpool): Add 'marking' argument.  Remove elements
657         from identifier table if requested.
659 2007-11-26  Tom Tromey  <tromey@redhat.com>
661         * c-parser.c (check_hunk_binding): Comment out unused variable.
662         * langhooks-def.h (LANG_HOOKS_IDENTIFIER_OFFSET): New define.
663         (LANG_HOOKS_INITIALIZER): Use it.
664         * c-common.h (C_RID_CODE): Rewrote.
665         (struct c_common_identifier) <node>: Remove field.
666         * var-tracking.c: Include langhooks.h.
667         * tree-outof-ssa.c: Include langhooks.h.
668         * ggc-page.c (gt_ggc_m_S): New function.
669         * stringpool.c: Include langhooks.h.
670         (string_stack): Remove.
671         (init_stringpool): Update.
672         (alloc_node): Add length argument.  Use build_identifier.
673         (ggc_alloc_string): Use ggc_alloc.
674         (gt_ggc_m_S): Remove.
675         * c-pragma.c: Include langhooks.h.
676         * ggc.h (gt_ggc_m_S): Change argument type.
677         * print-rtl.c: Include langhooks.h.
678         * langhooks.h (struct lang_hooks) <identifier_offset>: New field.
679         * c-pretty-print.c: Include langhooks.h.
680         * c-decl.c (struct lang_identifier) <node>: New field.
681         (C_IDENTIFIER_OFFSET_isnt_accurate): New declaration.
682         * c-aux-info.c: Include langhooks.h.
683         * c-tree.h (C_SIZEOF_STRUCT_LANG_IDENTIFIER): Redefine.
684         (C_IDENTIFIER_OFFSET): New define.
685         * c-objc-common.h (LANG_HOOKS_IDENTIFIER_OFFSET): New define.
686         * toplev.c (struct save_string_list): New struct.
687         (struct compilation_job) <strings>: New field.
688         (copy_to_vec): Add 'strings' argument.
689         (server_callback): Update.
690         * tree.h (IDENTIFIER_LENGTH): Redefine.
691         (IDENTIFIER_POINTER): Likewise.
692         (IDENTIFIER_HASH_VALUE): Likewise.
693         (HT_IDENT_TO_GCC_IDENT): Likewise.
694         (GCC_IDENT_TO_HT_IDENT): Likewise.
695         (struct tree_identifier) <id>: Remove.
696         (build_identifier): Declare.
697         * tree.c (make_node_stat): Don't allow IDENTIFIER_NODEs.
698         (build_identifier): New function.
699         * c-lex.c: Include langhooks.h.
700         * gengtype.c (write_types_process_field): Arrange to mark
701         strings.
702         (open_base_files): Include langhooks.h.
703         * tree-complex.c: Include langhooks.h.
705 2007-11-15  Tom Tromey  <tromey@redhat.com>
707         * c-parser.c (struct hunk_binding) <prereqs>: Changed type.
708         (c_parser_lookup_callback): Record name/value pairs, not hunk
709         signatures.
710         (start_new_parsed_hunk): Update.
711         (traverse_check_prereq): Update.
712         (struct prereq_traverse_data): Removed.
713         (c_parser_lex_all): Handle empty files.
714         * c-tree.h (lookup_name_no_callback, lookup_tag_no_callback):
715         Declare.
716         * c-decl.c (lookup_name_no_callback): New function.
717         (lookup_tag_no_callback): Likewise.
719 2007-11-14  Tom Tromey  <tromey@redhat.com>
721         * c-parser.c (hunk_binding_entry) <tag_binding, symbol_binding>:
722         Renamed.
723         (traverse_hunk_binding_entry): Update.
724         (c_parser_bind_callback): Update.
725         (struct can_reuse_hunk_data) <binding>: New field.
726         (check_hunk_binding): Set binding field.
727         (can_reuse_hunk): Set slot in hash to new hunk_set.  Use
728         'info.binding' field.
730 2007-11-12  Tom Tromey  <tromey@redhat.com>
732         * c-pragma.c (c_register_pragma_1): Update.
733         * c-parser.c (c_token) <pragma_kind>: Use 6 bits, not 7.
735 2007-11-09  Tom Tromey  <tromey@redhat.com>
737         * c-parser.c (c_parser_lex_all): Added 'initial' argument.
738         (c_parser_pragma_pch_preprocess): Changed argument type.  Use
739         c_lex_with_flags.
740         (c_parse_file): Don't create initial parser.  Examine first token
741         with c_lex_with_flags.
743 2007-11-08  Tom Tromey  <tromey@redhat.com>
745         * c-parser.c (c_parse_init): Call create_hunk_binding_map here...
746         (c_parse_file): ... not here.
748 2007-11-08  Tom Tromey  <tromey@redhat.com>
750         * c-parser.c (c_parser_is_string_literal): New function.
751         (c_parser_lex_string): Likewise.
752         (c_hack_token): Add raw_string argument.  Use
753         c_parser_lex_string.
754         (c_parser_peek_token): Update.
755         (c_parser_peek_2nd_token): Update.
757 2007-11-08  Tom Tromey  <tromey@redhat.com>
759         * toplev.c (finalize): Check 'job'.
761 2007-10-25  Tom Tromey  <tromey@redhat.com>
763         * Makefile.in (GTFILES): Added toplev.c.
764         * toplev.c (job_arguments): Removed.
765         (struct compilation_job): New.
766         (job): New global.
767         (compile_file): Collect before forking.  Start 'as'.
768         (finalize): Call wait_for_as.
769         (wait_for_as): New function.
770         (copy_to_vec): Likewise.
771         (server_callback): Create a compilation_job.  Don't start or wait
772         for as.
773         Include gt-toplev.h.
774         * server.c: Don't include dyn-string.h.
775         (free_argv, split_argv): Removed.
776         (request_and_response): Use buildargv, freeargv.
777         (client_send_command): Use argvtostr.
779 2007-10-25  Tom Tromey  <tromey@redhat.com>
781         * c-parser.c (c_parser) <current_hset>: New field.
782         (struct hunk_binding) <key, next>: Remove.
783         (struct hunk_set): New.
784         (hash_hunk_binding, eq_hunk_binding): Remove.
785         (hash_hunk_set, eq_hunk_set): New functions.
786         (global_hunk_map): Now contains 'hunk_set's.
787         (start_new_parsed_hunk): Remove 'new_signature' argument.  Update.
788         (finish_current_hunk): Add 'hset' argument.  Update.
789         (create_hunk_binding_map): Update.
790         (struct can_reuse_hunk_data): New.
791         (check_hunk_binding): New function.
792         (can_reuse_hunk): Add 'out_set' argument.  Update.  Use
793         check_hunk_binding.
794         (c_parser_translation_unit): Update.
796 2007-10-25  Tom Tromey  <tromey@redhat.com>
798         * ggc-common.c (ggc_thread_clean_up): Check for pending GC after
799         cleanup.
801 2007-10-19  Tom Tromey  <tromey@redhat.com>
803         * dbxout.c (dbx_debug_hooks): Update.
804         * varasm.c (assemble_external): Remove assert.
805         * dwarf2out.c (dw_asm_out_file): New global.
806         Changed all users of asm_out_file to use dw_asm_out_file.
807         (dwarf2out_init): Update.
808         (dwarf2out_set_output_file): New function.
809         * debug.h (struct gcc_debug_hooks) <set_output_file>: New hook.
810         (debug_nothing_filestar): Declare.
811         * debug.c (do_nothing_debug_hooks): Update.
812         (debug_nothing_filestar): New.
813         * toplev.c (server_asm_out_file): New global.
814         (compile_file): Don't flush asm_out_file.  Call init_asm_output in
815         server mode.  Call set_output_file debug hook.
816         (lang_dependent_init): Conditionally call init_asm_output and
817         set_output_file debug hook.
818         (finalize): Close server_asm_out_file.
819         (start_as): Set server_asm_out_file, not asm_out_file.
821 2007-10-16  Tom Tromey  <tromey@redhat.com>
823         * gengtype.c (write_roots): Ensure thread-local variable does not
824         use global for 'length'.
826 2007-10-12  Tom Tromey  <tromey@redhat.com>
828         * c-format.h (c_format_finalize): Declare.
829         * c-format.c (struct format_state): New struct.
830         (global_format_state): New global.
831         (construct_format_state): New function.
832         (c_format_finalize): Likewise.
833         (obdup_mem): Likewise.
834         (init_dynamic_asm_fprintf_info): Use global_format_state.
835         (init_dynamic_gfc_info): Likewise.
836         (init_dynamic_diag_info): Likewise.
837         (handle_format_attribute): Call construct_format_state.  Allocate
838         on obstack.
840 2007-10-12  Tom Tromey  <tromey@redhat.com>
842         * c-format.c (dollar_argument_info): New struct.
843         (dollar_arguments_used, dollar_arguments_pointer_p,
844         dollar_arguments_alloc, dollar_arguments_count,
845         dollar_first_arg_num, dollar_max_arg_used, dollar_format_warned):
846         Remove.
847         (init_dollar_format_checking): Add 'state' argument.
848         (maybe_read_dollar_number): Likewise.
849         (finish_dollar_format_checking): Likewise.
850         (check_format_info_inner): Likewise.  Renamed from
851         check_format_info_main.
852         (check_format_info_main): New function.
854 2007-10-11  Tom Tromey  <tromey@redhat.com>
856         * Makefile.in (LIBS): Add -lpthread.
857         * system.h (GCC_THREAD): New define.
858         * ggc-page.c (ggc_alloc_stat): Lock.
859         (ggc_get_size): Lock.
860         (ggc_free): Lock.
861         (ggc_collect): Call ggc_thread_pause, ggc_collection_completed.
862         * ggc-zone.c (ggc_alloc_zone_stat): Lock.
863         (ggc_free): Lock.
864         (ggc_get_size): Lock.
865         (new_ggc_zone): Lock.
866         (destroy_ggc_zone): Lock.
867         (ggc_collect): Call ggc_thread_pause, ggc_collection_completed.
868         * ggc-common.c (global_root_list): New global.
869         (ggc_mark_roots): Mark thread-local roots.
870         (roots, ggc_n_threads, ggc_gc_lock, gc_condition,
871         ggc_n_waiting_threads, collection_generation): New globals.
872         (ggc_thread_init): New function.
873         (ggc_thread_start): Likewise.
874         (ggc_thread_clean_up): Likewise.
875         (ggc_thread_pause): Likewise.
876         (ggc_collection_completed): Likewise.
877         (ggc_thread_ignore_me): Likewise.
878         * ggc.h: Include host-thread.h.
879         (struct ggc_thread_roots): New.
880         (struct ggc_thread_root_list): New.
881         (ggc_thread_registration_function): New typedef.
882         (gt_ggc_thread_funcs): Declare.
883         (ggc_gc_lock): Likewise.
884         (ggc_thread_init, ggc_thread_start, ggc_thread_clean_up,
885         ggc_thread_ignore_me, ggc_thread_pause, ggc_collection_completed):
886         Declare.
887         * gengtype-parse.c (extern_or_static): Handle GCC_THREAD.
888         * gengtype-lex.l: Recognize "GGC_THREAD".
889         * toplev.c (general_init): Call ggc_thread_init.
890         * host-thread.h: New file.
891         * gengtype.h (THREAD): New value.
892         (note_variable): Update.
893         * gengtype.c (struct pair) <thread_local>: New field.
894         (do_typedef): Initialize it.
895         (note_variable): Added 'thread_local' argument.
896         (create_field_all): Initialize new field.
897         (struct flist) <item_count, saved_offset>: New fields.
898         (finish_thread_registration): New function.
899         (write_thread_lang_registration): Likewise.
900         (start_root_field): Likewise.
901         (end_root_field): Likewise.
902         (write_root): Handle thread-local variables.
903         (start_thread_local_table): New function.
904         (write_roots): Added 'thread_local' argument.  Write thread
905         registration functions.
906         (main): Call write_roots twice.
908 2007-10-10  Tom Tromey  <tromey@redhat.com>
910         * cgraph.c (cgraph_note_duplicate): Refine assertion.
911         * cgraphbuild.c (record_reference): Use cgraph_canonical_decl.
913 2007-10-08  Tom Tromey  <tromey@redhat.com>
915         * c-decl.c (pushdecl): Update file scope decl as well.
916         * cgraph.c (cgraph_note_duplicate): Swap decl and duplicate when
917         function already defined.
918         * cgraphbuild.c (record_reference): Don't canonicalize decl.
920 2007-10-05  Tom Tromey  <tromey@redhat.com>
922         * c-decl.c (c_clear_binding_stack): Move early exit...
923         (c_write_global_declarations): ... here.
925 2007-10-05  Tom Tromey  <tromey@redhat.com>
927         * gdbinit.in (pt): Accept argument.
929 2007-10-04  Tom Tromey  <tromey@redhat.com>
931         * toplev.c (char_p): New typedef.
932         (job_arguments): New global.
933         (server_callback): GC-copy arguments.
935 2007-10-04  Tom Tromey  <tromey@redhat.com>
937         * c-decl.c (bind): Note a smash when needed.
938         (c_decl_re_bind): Pass function definitions to
939         cgraph_finalize_function.
940         (c_builtin_function): Don't use decl's TREE_CHAIN for
941         visible_builtins linked list.
942         (push_file_scope): Update.
943         (duplicate_decls): Also avoid smashing objects in external scope.
944         (start_function): Don't call c_parser_note_smash.
945         * toplev.c (start_as): Fix argv argument to pex_run.
947 2007-10-01  Tom Tromey  <tromey@redhat.com>
949         * c-parser.c (c_parser_translation_unit): Make next_token a
950         local.
951         * c-lex.c (fe_file_change): Mark main file as user-owned.
953 2007-10-01  Tom Tromey  <tromey@redhat.com>
955         * toplev.c (server_callback): Reset errorcount and sorrycount.
957 2007-09-28  Tom Tromey  <tromey@redhat.com>
958             Michael Matz  <matz@suse.de>
960         * c-gimplify.c (c_genericize): Don't call gimplify_function_tree.
961         (c_gimplify_expr): Handle CALL_EXPR, FDESC_EXPR, and ADDR_EXPR.
962         * tree-optimize.c (tree_lowering_passes): Call
963         gimplify_function_tree.
964         * c-decl.c (pop_file_scope): Don't call
965         cgraph_finalize_compilation_unit.
966         (finish_function): Don't call c_gimple_diagnostics_recursively.
967         * toplev.c (compile_file): Call cgraph_finalize_compilation_unit.
968         * cgraphunit.c (verify_cgraph_node): Reverted.
969         * cgraph.h (cgraph_get_callee_fndecl): Removed.
970         * cgraphbuild.c (build_cgraph_edges): Reverted.
971         (rebuild_cgraph_edges): Likewise.
972         * cgraph.c (cgraph_note_duplicate): Clean up.
973         (cgraph_get_callee_fndecl): Removed.
975 2007-09-26  Tom Tromey  <tromey@redhat.com>
977         * c-parser.c (c_parser_note_smash): Call cgraph_note_duplicate.
978         * c-decl.c (c_builtin_function): Put builtins in all_c_built_ins.
979         * cgraphunit.c (verify_cgraph_node): Use
980         cgraph_get_callee_fndecl.
981         * cgraph.c (duplicate_map): New global.
982         (cgraph_reset): Destroy duplicate_map.
983         (cgraph_canonical_decl): New function.
984         (cgraph_note_duplicate): Likewise.
985         (cgraph_get_callee_fndecl): Likewise.
986         * cgraphbuild.c (record_reference): Use cgraph_canonical_decl.
987         (build_cgraph_edges): Use cgraph_get_callee_fndecl.
988         (rebuild_cgraph_edges): Likewise.
989         * cgraph.h (cgraph_canonical_decl, cgraph_note_duplicate,
990         cgraph_get_callee_fndecl): Declare.
992 2007-09-25  Tom Tromey  <tromey@redhat.com>
994         * c-parser.c (update_numeric_checksum): New function.
995         (c_parser_update_checksum): Handle all tokens properly.
997 2007-09-24  Tom Tromey  <tromey@redhat.com>
999         * c-decl.c (all_c_built_ins): New global.
1000         (c_decl_re_bind): Pass re-bound decls to rest_of_decl_compilation
1001         or rest_of_type_compilation.
1002         (re_bind_built_in): New function.
1003         (pushdecl): Note built-ins in all_c_built_ins.
1004         (c_init_decl_processing): Initialize all_c_built_ins.  Call
1005         re_bind_built_in when re-run.
1006         * dwarf2out.c (mark_decl): New function.
1007         (seen_decl_p): Likewise.
1008         (struct type_die_entry): New struct.
1009         (type_die_table): New global.
1010         (seen_decls): Likewise.
1011         (hash_type_die_entry): New function.
1012         (eq_type_die_entry): Likewise.
1013         (lookup_type_die): Use type_die_table.
1014         (equate_type_number_to_die): Likewise.
1015         (reference_to_unused): Use seen_decl_p.
1016         (add_name_and_src_coords_attributes): Likewise.
1017         (scope_die_for): Likewise.
1018         (gen_variable_die): Likewise.
1019         (gen_typedef_die): Likewise.
1020         (gen_type_die_with_usage): Likewise.
1021         (gen_block_die): Likewise.
1022         (dwarf2out_init): Initialize seen_decls, type_die_table.
1023         (gen_enumeration_type_die): Use mark_decl.
1024         (gen_struct_or_union_type_die): Likewise.
1025         (gen_typedef_die): Likewise.
1026         (gen_type_die_with_usage): Likewise.
1027         * dwarf2asm.h (dw2_initialize): Declare.
1028         * dwarf2asm.c (dw2_initialize): New function.
1029         * toplev.c (lang_dependent_init): Call dw2_initialize.
1031 2007-09-20  Tom Tromey  <tromey@redhat.com>
1033         * toplev.c (compile_file): Flush output file.
1035 2007-09-19  Tom Tromey  <tromey@redhat.com>
1037         * c-decl.c (pushdecl): Pass b_use, not b, to duplicate_decls.
1039 2007-09-18  Tom Tromey  <tromey@redhat.com>
1041         * c-parser.c (c_parser_bind_callback): Normalized.
1042         (can_reuse_hunk): Don't allow hunk reuse.
1043         (c_parser_translation_unit): Don't let "user code" fall through.
1044         * c-decl.c (duplicate_decls): Comment assert.
1046 2007-09-18  Tom Tromey  <tromey@redhat.com>
1048         * c-opts.c (c_common_post_options): Call cpp_read_main_file when
1049         preprocessing only.
1051 2007-09-17  Tom Tromey  <tromey@redhat.com>
1053         * Makefile.in (server.o): Added rule; include valgrind defines.
1055 2007-09-13  Tom Tromey  <tromey@redhat.com>
1057         * gcc.c (execute): Fall back to exec if connection fails.
1059 2007-09-12  Tom Tromey  <tromey@redhat.com>
1061         * c-common.c (c_common_get_alias_set): Don't check num_in_fnames.
1062         * c-parser.c (c_parser_note_smash): Disable assertion.
1063         * varpool.c (varpool_reset): New function.
1064         (dump_varpool): Iterate using 'next', not 'next_needed'.
1065         * cgraph.h (varpool_reset): Declare.
1066         * cgraph.c (cgraph_reset): Document.
1067         * cgraphunit.c (cgraph_unit_reset): Document.
1068         * toplev.c (server_callback): Set flag_unit_at_a_time here...
1069         (toplev_main): ... not here.
1070         (server_callback): Call varpool_reset.
1071         * c-decl.c (c_write_global_declarations): Don't exit early.
1072         (start_function): Handle decl smashing.
1073         (c_decl_re_bind): Re-bind public decls in the external scope.
1074         (c_init_decl_processing): Reset all_translation_units.
1076 2007-09-07  Tom Tromey  <tromey@redhat.com>
1078         * c-pragma.c (init_pragma): Free pragma vector if already
1079         allocated.
1080         * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK): Define.
1081         * c-tree.h (c_clear_binding_stack): Declare.
1082         * c-decl.c (c_init_decl_processing): Only initialize some things
1083         once.
1084         (c_clear_binding_stack): New function.
1085         (c_write_global_declarations): Move code to c_clear_binding_stack.
1086         * dwarf2out.c (dwarf2out_init): Initialize more globals.
1087         * server.c (server_main_loop): Print server pid.
1088         * cgraphunit.c (first_analyzed, first_analyzed_var, counter): Move
1089         out of function scope.
1090         (cgraph_unit_reset): Reset them.
1091         * toplev.c (compile_file): Return bool.
1092         (do_compile): Exit child process in server mode.
1094 2007-09-06  Tom Tromey  <tromey@redhat.com>
1096         * server.h (server_start_back_end): Declare.
1097         * server.c (server_start_back_end): New function.
1098         * cgraph.h (cgraph_unit_reset, cgraph_reset): Declare.
1099         * cgraphunit.c (cgraph_unit_reset): New function.
1100         * cgraph.c (cgraph_reset): New function.
1101         * toplev.c (server_callback): Garbage collect.  Reset cgraph
1102         modules.
1103         (server_mode): New global.
1104         (toplev_main): Set it.
1105         (compile_file): Call server_start_back_end.
1106         (do_compile): Only initialize front end once.
1108 2007-09-05  Tom Tromey  <tromey@redhat.com>
1110         * toplev.c (server_callback): Call pex_get_status.
1111         (finalize): Clear asm_out_file.
1113 2007-09-05  Tom Tromey  <tromey@redhat.com>
1115         * c-parser.c (c_token) <user_owned>: New field.
1116         (c_parser_lex_all): Set user_owned field on token.
1117         * c-lex.c (fe_file_change): Set user_owned field in c_lex_state.
1118         * c-common.h (struct c_lex_state) <user_owned>: New field.
1120 2007-09-04  Tom Tromey  <tromey@redhat.com>
1122         * c-parser.c (c_parser_bind_callback): Don't bind error nodes.
1123         (finish_current_hunk): Don't save hunks with errors.
1125 2007-09-04  Tom Tromey  <tromey@redhat.com>
1127         * c-parser.c (c_parser_bind_callback): Use GGC_CNEW.
1128         (c_parser_translation_unit): Added assert.
1129         (c_parser_find_decl_boundary): Handle structure initialization.
1131 2007-08-31  Tom Tromey  <tromey@redhat.com>
1133         * toplev.c (toplev_main): Set flag_unit_at_a_time when in server
1134         mode.
1135         * opts.c (clean_up): New function.
1136         (decode_options): Call it.
1137         * fix-header.c (TARGET_EXTRA_INCLUDES): Add c_incpath argument.
1138         (TARGET_EXTRA_PRE_INCLUDES): Likewise.
1139         * c-incpath.h (struct target_c_incpath_s) <extra_pre_includes,
1140         extra_includes>: Add c_incpath argument.
1141         (struct c_incpath): Declare.
1142         (new_c_incpath, delete_c_incpath): Likewise.
1143         (split_quote_chain, add_path, register_include_chains,
1144         add_cpp_dir_path): Add c_incpath argument.
1145         * c-incpath.c (new_c_incpath): New function.
1146         (struct c_incpath): New struct.
1147         (heads, tails, quote_ignores_source_dir): No longer global.
1148         (delete_c_incpath): New function.
1149         (add_sysroot_to_chain): Added 'incpath' argument.
1150         (merge_include_chains): Likewise.
1151         (split_quote_chain): Likewise.
1152         (add_cpp_dir_path): Likewise.
1153         (add_path): Likewise.
1154         (register_include_chains): Likewise.
1155         (add_env_var_paths): Likewise.
1156         (add_standard_paths): Likewise.
1157         (hook_void_charptr_charptr_int): Likewise.
1158         * c-opts.c (clean_up): New function.
1159         (c_common_init_options): Use it.  Set include_chains.
1160         (include_chains): New global.
1161         (c_common_handle_option): Update.
1162         (add_prefixed_path): Added c_incpath argument.
1163         (c_common_post_options): Update.
1164         (c_common_post_options): Don't parse first file here...
1165         (c_common_parse_file): ... parse it here.
1167 2007-08-31  Tom Tromey  <tromey@redhat.com>
1169         * server.h (client_kill_server): Declare.
1170         * gcc.c (kill_server): New global.
1171         (option_map): Added --kill-server.
1172         (process_command): Handle -kill-server.
1173         (main): Likewise.
1174         * server.c (request_and_response): Changed return type.  Handle
1175         'K' request.
1176         (server_main_loop): Use request_and_response return value.
1177         (send_command_and_wait): New function.
1178         (client_wait): Use it.
1179         (client_kill_server): New function.
1181 2007-08-30  Tom Tromey  <tromey@redhat.com>
1183         * Makefile.in (OBJS-common): Added server.o.
1184         (GCC_OBJS): Likewise.
1185         (toplev.o): Added server.h.
1186         (gcc.o): Likewise.
1187         (server.o): New target.
1188         * toplev.c (toplev_main): Handle -fserver.
1189         Include server.h.
1190         (init_asm_output): Don't open file if already open.
1191         (server_callback): New function.
1192         * server.h: New file.
1193         * server.c: New file.
1194         * gcc.c (server): New global.
1195         (use_server): Likewise.
1196         (option_map): Added --server.
1197         (process_command): Recognize -server.
1198         Include server.h.
1199         (execute): Send commands to server.
1200         (server_callback): New function.
1202 2007-08-24  Tom Tromey  <tromey@redhat.com>
1204         * c-parser.c (c_parser_find_decl_boundary): New function.
1205         (start_new_parsed_hunk): Changed arguments.
1206         (c_parser_update_checksum): New function.
1207         (c_parser_checksum_buffer): Likewise.
1208         (c_parser_lex_all): Use c_parser_update_checksum.
1209         (can_reuse_hunk): Changed arguments.
1210         (c_parser_translation_unit): Handle per-decl hunks.
1212 2007-08-21  Tom Tromey  <tromey@redhat.com>
1214         * c-common.c (fold_offsetof_1): Handle VIEW_CONVERT_EXPR.
1215         * c-decl.c (bind): Added notify_ok argument.  Call
1216         c_parser_bind_callback when needed.
1217         (c_decl_re_bind): New function.
1218         (push_file_scope): Update.
1219         (pushtag): Likewise.
1220         (decl_needs_merging): New function.
1221         (diagnose_mismatched_decls): Added 'need_mergep' argument.  Call
1222         decl_needs_merging.
1223         (duplicate_decls): Added 'binding' argument.  Call
1224         c_parser_note_smash.  Only merge decls when necessary.
1225         (pushdecl): Update.
1226         (pushdecl_top_level): Update.
1227         (implicitly_declare): Update.
1228         (undeclared_variable): Update.
1229         (lookup_label): Update.
1230         (declare_label): Update.
1231         (define_label): Update.
1232         (lookup_tag): Call c_parser_lookup_callback.
1233         (lookup_name): Likewise.
1234         (lookup_name_in_scope): Likewise.
1235         (c_make_fname_decl): Update.
1236         (c_builtin_function): Likewise.
1237         (start_struct): Call c_parser_note_smash when needed.
1238         (finish_struct): Only allocate TYPE_LANG_SPECIFIC if not already
1239         allocated.
1240         (start_enum): Rearrange.  call c_parser_note_smash when needed.
1241         (finish_enum): Only allocate TYPE_LANG_SPECIFIC is not already
1242         allocated.
1243         (store_parm_decls_newstyle): Update.
1244         * c-typeck.c (build_component_ref): Use smashed type variant.
1245         (build_indirect_ref): Likewise.
1246         (lvalue_p): Handle VIEW_CONVERT_EXPR.
1247         * c-tree.h (struct lang_decl) <declaring_hunk>: New field.
1248         (struct lang_type) <declaring_hunk>: Likewise.
1249         (c_parser_bind_callback, c_parser_note_smash,
1250         object_in_current_hunk_p, c_parser_find_binding,
1251         c_parser_lookup_callback, c_decl_re_bind): Declare.
1252         (C_SMASHED_VARIANT): New macro.
1253         (C_SMASHED_TYPE_VARIANT): Likewise.
1254         (C_SMASHED_P): Likewise.
1255         * c-lex.c (fe_file_change): Update file_change field.
1256         * c-common.h (struct c_lex_state) <file_change>: New field.
1257         Update lang-flag comment.
1258         * c-parser.c (parsed_hunk): New struct.
1259         (c_parser) <used_hunks, first_hunk, prev_hunk,
1260         current_hunk_binding, smash_map>: New fields.
1261         (struct hunk_binding): New struct.
1262         (hash_hunk_binding_entry): New function.
1263         (eq_hunk_binding_entry): Likewise.
1264         (traverse_hunk_binding_entry): Likewise.
1265         (struct hunk_binding): New struct.
1266         (hash_hunk_binding): New function.
1267         (eq_hunk_binding): Likewise.
1268         (global_hunk_map): New global.
1269         (c_parser_bind_callback): New function.
1270         (find_hunk_binding): Likewise.
1271         (c_parser_lookup_callback): Likewise.
1272         (object_in_current_hunk_p): Likewise.
1273         (start_new_parsed_hunk): Likewise.
1274         (finish_current_hunk): Likewise.
1275         (create_hunk_binding_map): Likewise.
1276         (struct smash_entry): New struct.
1277         (hash_smash_entry): New function.
1278         (eq_smash_entry): Likewise.
1279         (c_parser_find_binding): Likewise.
1280         (c_parser_note_smash): Likewise.
1281         (c_parser_lex_all): Keep track of hunks.  Checksum tokens while
1282         lexing.
1283         (struct prereq_traverse_data): New struct.
1284         (traverse_check_prereq): New function.
1285         (can_reuse_hunk): Likewise.
1286         (c_parser_translation_unit): Reuse hunks when possible.
1287         (c_parse_file): Initialize new fields in parser.  Call
1288         create_hunk_binding_map.
1290 2007-08-21  Tom Tromey  <tromey@redhat.com>
1292         * c-opts.c (cb_file_change): Update.
1293         * c-lex.c (pending_lang_change, c_header_level): Removed.
1294         (init_c_lex): Create a c_lex_state object.
1295         (fe_file_change): Added c_lex_state argument.
1296         (c_lex_get_state): New function.
1297         * c-common.h (struct c_lex_state): New struct.
1298         (pending_lang_change): Removed.
1299         (fe_file_change): Update.
1300         (c_lex_get_state): Declare.
1302 2007-08-20  Tom Tromey  <tromey@redhat.com>
1304         * c-parser.c (the_parser): Updated comment.
1305         (c_parser) <tokens>: Removed.
1306         <buffer, buffer_length, next>: New fields.
1307         (c_parser_lex_all): New function.
1308         (c_hack_token): Likewise.
1309         (c_lex_one_token): Simplify.
1310         (c_parse_file): Use c_parser_lex_all.
1311         (c_parser_set_source_position_from_token): Moved earlier.
1313 2007-08-20  Tom Tromey  <tromey@redhat.com>
1315         * c-common.c (fname_as_string): Update.
1316         * c-parser.c (c_parser) <lex_untranslated_string>: New field.
1317         (c_lex_one_token): Update.  Add 'parser' argument.
1318         (c_parser_simple_asm_expr): Update.
1319         (c_parser_attributes): Update.
1320         (c_parser_asm_statement): Update.
1321         (c_parser_asm_operands): Update.
1322         (c_parser_peek_token): Update.
1323         (c_parser_peek_2nd_token): Update.
1324         * c-lex.c (c_lex_string_translate): Remove.
1325         (c_lex_return_raw_strings): Likewise.
1326         (c_lex_with_flags): Added 'lex_flags' argument.
1327         (lex_string): Added 'translate' argument.
1328         * c-pragma.h (c_lex_with_flags): Update.
1329         (c_lex_string_translate, c_lex_return_raw_strings): Remove.
1330         (C_LEX_STRING_NO_TRANSLATE): New define.
1331         (C_LEX_RAW_STRINGS): Likewise.
1333 2007-08-20  Pawel Sikora  <pluto@pld-linux.org>
1334 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1336         * c-common.c (match_case_to_enum_1): Add appropriate
1337         OPT_W* parameter to warning.
1338         (c_do_switch_warnings): Likewise.
1339         * c-typeck.c (warning_init): Add one more parameter following
1340         'warning' function.
1341         (push_init_level): Update call to warning_init.
1342         (pop_init_level): Likewise.
1343         (add_pending_init): Likewise.
1344         (output_init_element: Likewise.
1346 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1348         PR 28322
1349         * toplev.c (toplev_main): If there are warnings or error, print
1350         errors for ignored options.
1351         * opts.c (ignored_options): New static variable.
1352         (postpone_unknown_option_error): New.
1353         (print_ignored_options): New.
1354         (handle_option): Postpone errors for unknown -Wno-* options.
1355         * opts.h (print_ignored_options): Declare.
1356         
1357 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
1359         * config/mips/mips.md (loadgp_blockage, blockage): Change type
1360         to "ghost".
1362 2008-02-25  Richard Guenther  <rguenther@suse.de>
1364         Revert:
1365         2008-02-25  Richard Guenther  <rguenther@suse.de>
1367         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
1368         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
1369         (lookup_decl_from_uid): Declare.
1370         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
1371         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
1372         (decl_for_uid_map): New global hashtable mapping DECL_UID
1373         to the decl tree.
1374         (init_ttree): Allocate it.
1375         (insert_decl_to_uid_decl_map): New helper function.
1376         (make_node_stat): Insert new decls into the map.
1377         (copy_node_stat): Likewise.
1378         (lookup_decl_from_uid): New function.
1379         (print_decl_for_uid_map_statistics): New helper.
1380         (dump_tree_statistics): Call it.
1382         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
1383         (referenced_var_iterator): Adjust.
1384         (FOR_EACH_REFERENCED_VAR): Adjust.
1385         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
1386         (num_referenced_vars): Adjust.
1387         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
1388         (first_referenced_var): Remove.
1389         (end_referenced_vars_p): Likewise.
1390         (next_referenced_var): Likewise.
1391         (referenced_var_iterator_set): New helper function.
1392         * tree-dfa.c (referenced_var_lookup): Adjust.
1393         (referenced_var_check_and_insert): Likewise.
1394         (remove_referenced_var): Likewise.
1395         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
1396         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
1397         (verify_call_clobbering): Likewise.
1398         (verify_memory_partitions): Likewise.
1399         (init_tree_ssa): Allocate bitmap instead of hashtable for
1400         referenced_vars.
1401         (delete_tree_ssa): Adjust.
1402         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
1403         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
1404         (compute_tag_properties): Likewise.
1405         (set_initial_properties): Likewise.
1406         (find_partition_for): Likewise.
1407         (update_reference_counts): Likewise.
1408         (dump_may_aliases_for): Likewise.
1409         * tree-ssa-operands.c (add_virtual_operand): Likewise.
1410         (add_call_clobber_ops): Likewise.
1411         (add_call_read_ops): Likewise.
1412         (get_asm_expr_operands): Likewise.
1413         * tree-into-ssa.c (dump_decl_set): Likewise.
1414         (update_ssa): Likewise.
1415         * tree-sra.c (scan_function): Likewise.
1416         (decide_instantiations): Likewise.
1417         (scalarize_parms): Likewise.
1418         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
1419         (dsa_named_for): Likewise.
1420         * tree-ssa-structalias.c (update_alias_info): Likewise.
1421         (merge_smts_into): Likewise.
1423 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
1425         PR fortran/29549
1426         * doc/invoke.texi (-fcx-limited-range): Document new option.
1427         * toplev.c (process_options): Handle -fcx-fortran-rules.
1428         * common.opt: Add documentation for -fcx-fortran-rules.
1430 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
1432         PR c/35162
1433         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
1434         actual behaviour and C99.
1435         
1436 2008-02-26  Ben Elliston  <bje@au.ibm.com>
1438         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
1439         (ASM_CPU_POWER6_SPEC): Likewise.
1440         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
1441         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
1442         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
1444 2008-02-25  Richard Guenther  <rguenther@suse.de>
1446         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
1447         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
1448         (lookup_decl_from_uid): Declare.
1449         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
1450         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
1451         (decl_for_uid_map): New global hashtable mapping DECL_UID
1452         to the decl tree.
1453         (init_ttree): Allocate it.
1454         (insert_decl_to_uid_decl_map): New helper function.
1455         (make_node_stat): Insert new decls into the map.
1456         (copy_node_stat): Likewise.
1457         (lookup_decl_from_uid): New function.
1458         (print_decl_for_uid_map_statistics): New helper.
1459         (dump_tree_statistics): Call it.
1461         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
1462         (referenced_var_iterator): Adjust.
1463         (FOR_EACH_REFERENCED_VAR): Adjust.
1464         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
1465         (num_referenced_vars): Adjust.
1466         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
1467         (first_referenced_var): Remove.
1468         (end_referenced_vars_p): Likewise.
1469         (next_referenced_var): Likewise.
1470         (referenced_var_iterator_set): New helper function.
1471         * tree-dfa.c (referenced_var_lookup): Adjust.
1472         (referenced_var_check_and_insert): Likewise.
1473         (remove_referenced_var): Likewise.
1474         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
1475         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
1476         (verify_call_clobbering): Likewise.
1477         (verify_memory_partitions): Likewise.
1478         (init_tree_ssa): Allocate bitmap instead of hashtable for
1479         referenced_vars.
1480         (delete_tree_ssa): Adjust.
1481         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
1482         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
1483         (compute_tag_properties): Likewise.
1484         (set_initial_properties): Likewise.
1485         (find_partition_for): Likewise.
1486         (update_reference_counts): Likewise.
1487         (dump_may_aliases_for): Likewise.
1488         * tree-ssa-operands.c (add_virtual_operand): Likewise.
1489         (add_call_clobber_ops): Likewise.
1490         (add_call_read_ops): Likewise.
1491         (get_asm_expr_operands): Likewise.
1492         * tree-into-ssa.c (dump_decl_set): Likewise.
1493         (update_ssa): Likewise.
1494         * tree-sra.c (scan_function): Likewise.
1495         (decide_instantiations): Likewise.
1496         (scalarize_parms): Likewise.
1497         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
1498         (dsa_named_for): Likewise.
1499         * tree-ssa-structalias.c (update_alias_info): Likewise.
1500         (merge_smts_into): Likewise.
1502 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
1504         PR target/35258
1505         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
1506         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
1507         * alias.h (nonoverlapping_memrefs_p): Likewise.
1509 2008-02-25  Jan Beulich  <jbeulich@novell.com>
1511         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with
1512         $(T).
1513         * config/i386/netware-libgcc.exp: Add __bswap?i2,
1514         __emultls_get_address, __emultls_register_common,
1515         __floatundi?f, and _Unwind_GetIPInfo.
1516         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
1517         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
1518         (gen_regparm_prefix): Likewise.
1519         (i386_nlm_encode_section_info): Sync with
1520         config/i386/winnt.c:i386_pe_encode_section_info().
1521         (i386_nlm_maybe_mangle_decl_assembler_name): New.
1522         i386_nlm_mangle_decl_assembler_name): New.
1523         (netware_override_options): New.
1524         * config/i386/netware.h (netware_override_options): Declare.
1525         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
1526         (i386_nlm_mangle_decl_assembler_name): Declare.
1527         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
1529 2008-02-25  Ben Elliston  <bje@au.ibm.com>
1531         PR other/32948
1532         * c-decl.c (grokdeclarator): Remove unused local variables
1533         `typedef_type' and `type_as_written'.
1534         * bb-reorder.c
1535         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
1536         unused local variable `has_hot_blocks'.
1537         (fix_crossing_conditional_branches): Remove unused local variable
1538         `prev_bb'.
1539         
1540 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
1542         PR middle-end/19984
1543         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
1544         using DEF_C99_BUILTIN.
1545         (BUILT_IN_NANF): Ditto.
1546         (BUILT_IN_NANL): Ditto.
1548 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
1549             Revital Eres  <eres@il.ibm.com>
1551         * modulo-sched.c (calculate_must_precede_follow): Address TODO
1552         regarding the order of two dependent insns in the same row.
1554 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
1556         * stor-layout.c (layout_decl): Do not bump the alignment of a
1557         bit-field to more than byte alignment if it is packed.
1559 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
1561         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
1562         e300c2 and e300c3.
1564 2008-02-24  Diego Novillo  <dnovillo@google.com>
1566         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
1568         PR 33738
1569         * tree-vrp.c (vrp_evaluate_conditional): With
1570         -Wtype-limits, emit a warning when comparing against a
1571         constant outside the natural range of OP0's type.
1572         * c.opt (Wtype-limits): Move ...
1573         * common.opt (Wtype-limits): ... here.
1575 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
1577         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
1578         * config/rs6000/e300c2c3.md: New file.
1579         * config/rs6000/rs6000.c (processor_costs): Add new costs for
1580         e300c2 and e300c3.
1581         (rs6000_override_options): Add e300c2 and e300c3 cases to
1582         processor_target_table. Do not allow usage of Altivec or Spe
1583         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
1584         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
1585         * config/rs6000/rs6000.h (processor_type): Add
1586         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
1587         (ASM_CPU_SPEC): Add e300c2 and e300c3.
1588         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
1589         and ppce300c3. Include e300c2c3.md.
1591 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
1593         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
1594         instead of TARGET_STRICT_ALIGN.
1596 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
1598         * explow.c (memory_address): Assert that the generated address is
1599         valid.
1601 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1603         PR target/25477
1604         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
1605         * config/darwin-ppc-ldouble-patch.def: New file.
1606         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
1607         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
1608         SUBTARGET_INIT_BUILTINS if defined.
1609         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
1610         New functions.
1612 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1614         PR rtl-opt/33512
1615         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
1616         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
1618 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1620         PR pch/35027
1621         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
1622         file" warning condtional on -Winvalid-PCH.
1624 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
1626         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
1628 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
1630         PR target/22076
1631         PR target/34256 
1632         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
1633         prevent reload from using MMX registers.
1634         (*mov<mode>_internal): Ditto.
1635         (*movv2sf_internal_rex64): Ditto.
1636         (*movv2sf_internal): Ditto.
1638 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1640         PR documentation/31569
1641         * doc/install.texi2html: Use makeinfo --no-number-sections.
1643 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
1645         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
1646         ensure that we can address an entire entity > 8 bytes.  Don't
1647         generate reg+reg addressing for such data.
1649 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
1651         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
1652         strings when optimizing for size, unless the target cares about
1653         alignment.
1655 2008-02-22  Tom Tromey  <tromey@redhat.com>
1657         * regclass.c (current_pass): Remove declaration.
1659 2008-02-22  Anatoly Sokolov <aesok@post.ru>
1661         * config/avr/libgcc.S (__RAMPZ__): Define.
1662         (__do_copy_data): Add for devices with 128KB code memory.
1664 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
1666         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
1667         Use spe_abi.
1668         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
1670 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
1672         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
1673         GENNONACR_REGS.
1675 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1677         PR c/19999
1678         * c-typeck.c (build_binary_op): Warn about floating point
1679         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
1681 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
1683         PR target/34526
1684         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
1685         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
1686         add vrsave.
1687         (rs6000_override_options): Set altivec_abi as default, not override,
1688         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
1689         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
1690         is used; use new member spe_abi.
1691         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
1692         spe_abi and altivec_abi.
1694 2008-02-22  Tomas Bily  <tbily@suse.cz>
1696         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
1698 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1700         PR bootstrap/35273
1701         * config.build (build_file_translate): Set to `CMD //c' only if
1702         it works.
1703         * Makefile.in (build_file_translate): Improve comment.
1705 2008-02-21  Jan Hubicka  <jh@suse.cz>
1707         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
1708         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
1709         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
1711 2008-02-21  Michael Matz  <matz@suse.de>
1713         PR target/35264
1714         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
1716 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
1718         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
1719         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
1720         as insn constraint.
1721         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
1722         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
1723         SSE_VEC_FLOAT_MODE_P as insn constraint.
1724         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
1725         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
1726         sse4a_movntdf using MODEF mode iterator.
1727         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
1728         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
1729         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
1730         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
1731         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
1732         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
1733         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
1735 2008-02-21  Richard Guenther  <rguenther@suse.de>
1737         * tree.def (PAREN_EXPR): New tree code.
1738         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
1739         and PAREN_EXPR.
1740         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
1741         * expr.c (expand_expr_real_1): Likewise.
1742         * tree-inline.c (estimate_num_insns_1): Likewise.
1743         * tree-complex.c (expand_complex_move): Likewise.
1744         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
1745         as plain x.
1747 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
1749         PR target/35225
1750         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
1752 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
1754         PR target/35190
1755         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
1757         * config/sh/sh.c (find_barrier): Don't go past
1758         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
1760 2008-02-20  DJ Delorie  <dj@redhat.com>
1762         * config/h8300/h8300.md (insv): Force source operand to be a register.
1764         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
1765         as a jump, not as a plain insn.
1766         
1767 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
1769         * doc/invoke.texi (Warning Options): Add new option
1770         -Wframe-larger-than=.
1771         (-Wframe-larger-than): Document.
1773         * flags.h (warn_frame_larger_than, frame_larger_than_size):
1774         Add declarations for new option variables.
1776         * final.c (final_start_function): Check the frame size
1777         before emission and issue a Wframe-larger-than warning.
1779         * opts.c (warn_frame_larger_than, frame_larger_than_size):
1780         Add definitions for new option variables.
1781         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
1783         * common.opt (Wframe-larger-than=): New option.
1785 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
1787         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
1788         (<sse>_div<mode>3): Ditto.
1789         (<sse>_vmdiv<mode>3): Ditto.
1790         (<sse>_vmsqrt<mode>2): Ditto.
1791         (*smax<mode>3): Ditto.
1792         (sse5_frcz<mode>2): Ditto.
1793         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
1794         as insn constraint.
1796 2008-02-20  Richard Guenther  <rguenther@suse.de>
1798         PR middle-end/35265
1799         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
1800         be happy with INTEGRAL_TYPE_P.
1802 2008-02-20  Richard Guenther  <rguenther@suse.de>
1804         * fold-const.c (split_tree): Associate floatig-point expressions
1805         if flag_associative_math is set.
1807 2008-02-20  Richard Guenther  <rguenther@suse.de>
1809         * tree.h (fold_real_zero_addition_p): Declare.
1810         * fold-const.c (fold_real_zero_addition_p): Export.
1811         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
1812         floating-point operations with zero and one.
1814 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
1816         * doc/install.texi: Correct references to CFLAGS, replacing them
1817         with BOOT_CFLAGS.  Document flags used during bootstrap for
1818         target libraries.
1819                                 
1820 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
1822         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
1823         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
1824         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
1825         insn constraint.
1826         (smin<mode>3): Ditto from similar patterns.
1827         (smax<mode>3): Ditto.
1828         (*ieee_smin<mode>3): Ditto.
1829         (*ieee_smax<mode>3): Ditto.
1830         * config/i386/sse.md (sse): New mode attribute.
1831         (mov<mode>): Macroize expander from movv4sf and movv2df using
1832         SSEMODEF2P mode iterator.
1833         (<sse>_movnt<mode>): Ditto from similar patterns. Use
1834         SSE_VEC_FLOAT_MODE_P as insn constraint.
1835         (storent<mode>): Ditto.
1836         (storent<mode>): Macroize expander from storentsf and storentdf using
1837         MODEF mode iterator.
1838         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
1839         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
1840         (abs<mode>2): Ditto from similar patterns.
1841         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
1842         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
1843         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
1844         (<sse>_vmsqrt<mode>2): Ditto.
1845         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
1846         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
1847         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
1848         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
1849         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
1850         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
1851         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
1852         insn constraint.
1853         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
1854         iterator and SSE_FLOAT_MODE_P as insn constraint.
1855         (<sse>_ucomi): Ditto from similar patterns.
1856         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
1857         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
1858         SSE_VEC_FLOAT_MODE_P as insn constraint.
1859         (vcond<mode>): Ditto from similar patterns.
1860         (and<mode>3, *and<mode>3): Ditto.
1861         (<sse>_nand<mode>3): Ditto.
1862         (ior<mode>3, *ior<mode>3): Ditto.
1863         (xor<mode>3, *xor<mode>3): Ditto.
1864         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
1865         iterator and SSE_FLOAT_MODE_P as insn constraint.
1866         (*nand<mode>3): Ditto from similar patterns.
1867         (*ior<mode>3): Ditto.
1868         (*xor<mode>3): Ditto.
1870 2008-02-20  Ira Rosen  <irar@il.ibm.com>
1872         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
1873         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
1874         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
1876 2008-02-19  Jan Hubicka  <jh@suse.cz>
1878         * predict.c (tree_bb_level_predictions): Remove variable next
1879         mistakely introduced by previous commit.
1881 2008-02-19  Jan Hubicka  <jh@suse.cz>
1883         * predict.c (predict_paths_leading_to): Rewrite.
1884         (predict_paths_for_bb): New.
1885         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
1887 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1889         PR bootstrap/35218
1890         * Makefile.in (build_file_translate): New.
1891         (gcc-vers.texi): Use it for translating $(abs_srcdir).
1892         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
1893         * configure.ac (build_file_translate): Substitute it.
1894         * configure: Regenerate.
1896 2008-02-19  Jan Hubicka  <jh@suse.cz>
1898         PR rtl-optimization/34408
1899         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
1900         invalid sharing.
1902 2008-02-19  Jan Hubicka  <jh@suse.cz>
1904         PR middle-end/28779
1905         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
1906         call_expr.
1908 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
1910         PR Ada/35186
1911         * config/i386/i386-modes.def: Revert the last DI alignment
1912         change until Ada people can look into it.
1914 2008-02-19  Nick Clifton  <nickc@redhat.com>
1916         * opts.c (print_specific_help): Fix typo in --help text.
1918 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
1920         PR target/35239
1921         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
1922         32-bit inline asm without asm alternatives for host GCC < 3.0.
1924 2008-02-19  Richard Guenther  <rguenther@suse.de>
1926         PR tree-optimization/34989
1927         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
1928         Allow propagation to INDIRECT_REF if we can simplify only.
1930 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1932         * c-common.c (warn_for_collisions_1): Use appropriate option when
1933         warning.
1935 2008-02-19  Nick Clifton  <nickc@redhat.com>
1937         PR other/31349
1938         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
1939         (handle_options): Fix indentation.
1940         (print_filtered_help): If no language-specific options were
1941         displayed tell the user how to list all the options supported by
1942         the language's front-end.
1943         (print_specific_help): Fix indentation and remove duplicate line.
1944         (common_handle_option): Handle the -v option.
1945         For --help enable the display of undocumented options if the -v
1946         switch has been included on the command line.
1947         For --help= check for overlaps in the arguments between the option
1948         classes and the language names and issue a warning when they
1949         cannot be disambiguated.
1950         * c.opt (v): Pass on to the common option handler.
1952 2008-02-19  Revital Eres  <eres@il.ibm.com> 
1954         * modulo-sched.c (sms_schedule): Change dump message when
1955         create_ddg function fails.
1956         (try_scheduling_node_in_cycle): Rename row to cycle.
1957         (print_partial_schedule): Rename CYCLE to ROW.
1959 2008-02-19  Christian Bruel  <christian.bruel@st.com>
1960             Zdenek Dvorak  <ook@ucw.cz>
1962         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
1964 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
1966         PR target/33555
1967         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
1968         (*x86_movdicc_0_m1_se): Ditto.
1970 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
1972         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
1973         (CMPtype): Define as __gcc_CMPtype.
1974         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
1975         (CMPtype): Define as __gcc_CMPtype.
1977 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
1979         Support valgrind 3.3 for --enable-checking=valgrind.
1980         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
1981         here.
1982         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
1983         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
1984         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
1985         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
1986         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
1987         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
1988         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
1989         respectively.
1990         * ggc-zone.c: Similar.
1991         * ggc-page.c: Similar.
1993 2008-02-19  Paul Brook  <paul@codesourcery.com>
1995         PR target/35071
1996         * config/arm/ieee754-df.S: Fix do_it typo.
1997         * config/arm/ieee754-sf.S: Fix do_it typo.
1999 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
2001         PR target/35189
2002         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
2003         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
2004         (OPTION_MASK_ISA_SSE_SET): Likewise.
2005         (OPTION_MASK_ISA_SSE2_SET): Likewise.
2006         (OPTION_MASK_ISA_SSE3_SET): Likewise.
2007         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
2008         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
2009         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
2010         (OPTION_MASK_ISA_SSE4_SET): Likewise.
2011         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
2012         (OPTION_MASK_ISA_SSE5_SET): Likewise.
2013         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
2014         (OPTION_MASK_ISA_MMX_UNSET): Updated.
2015         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
2016         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
2017         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
2018         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
2019         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
2020         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
2021         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
2022         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
2023         (OPTION_MASK_ISA_SSE4): Removed.
2024         (ix86_handle_option): Turn on bits in ix86_isa_flags and
2025         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for
2026         -mXXX.
2027         (override_options): Don't turn on implied SSE/MMX bits in
2028         ix86_isa_flags.
2030 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
2032         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
2033         32bit host.
2035 2008-02-18  Joey Ye  <joey.ye@intel.com>
2037         PR middle-end/34921
2038         * tree-nested.c (insert_field_into_struct): Set type alignment
2039         to field alignment if the former is less than the latter.
2041 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
2043         * BASE-VER: Set to 4.4.0.
2045 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2047         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
2048         * doc/cfg.texi: Likewise.
2049         * doc/extend.texi: Likewise.
2050         * doc/gty.texi: Likewise.
2051         * doc/invoke.texi: Likewise.
2052         * doc/loop.texi: Likewise.
2053         * doc/md.texi: Likewise.
2054         * doc/passes.texi: Likewise.
2055         * doc/rtl.texi: Likewise.
2056         * doc/sourcebuild.texi: Likewise.
2057         * doc/tm.texi: Likewise.
2058         * doc/tree-ssa.texi: Likewise.
2060 2008-02-17  Richard Guenther  <rguenther@suse.de>
2062         PR middle-end/35227
2063         * tree-complex.c (init_parameter_lattice_values): Handle parameters
2064         without default definition.
2066 2008-02-17  Richard Guenther  <rguenther@suse.de>
2068         PR tree-optimization/35231
2069         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
2070         if A | B != 1.
2072 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
2074         Revert:
2076         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
2077         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
2078         libgcc_cmp_return mode.
2080 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2082         PR c/28368
2083         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
2085 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
2087         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
2088         multilibs.
2090 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2092         * doc/c-tree.texi: Use `@.' where appropriate.
2093         * doc/extend.texi: Likewise.
2094         * doc/install.texi: Likewise.
2095         * doc/invoke.texi: Likewise.
2096         * doc/loop.texi: Likewise.
2097         * doc/makefile.texi: Likewise.
2098         * doc/md.texi: Likewise.
2099         * doc/passes.texi: Likewise.
2100         * doc/standards.texi: Likewise.
2101         * doc/tm.texi: Likewise.
2103 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
2105         PR middle-end/35196
2106         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
2107         in entry_bb.
2108         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
2109         rather than in entry_bb.
2111 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
2113         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
2114         libgcc_cmp_return mode.
2116 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
2118         PR middle-end/35130
2119         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
2120         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
2122 2008-02-15  Richard Guenther  <rguenther@suse.de>
2123             Zdenek Dvorak  <ook@ucw.cz>
2125         PR tree-optimization/35164
2126         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
2127         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
2128         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
2129         Only propagate addresses which do not have abnormal SSA_NAMEs
2130         in their operands.
2132 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
2134         PR target/35088
2135         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
2137 2008-02-15  Jan Hubicka  <jh@suse.cz>
2139         PR middle-end/35149
2140         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
2142 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
2144         PR middle-end/34621
2145         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
2146         when calculating alignment_pad.
2148 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
2150         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
2151         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
2152         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
2153         and STACK_BOUNDARY define.
2155 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
2157         PR preprocessor/35061
2158         * c-pragma.c (handle_pragma_pop_macro): Check that
2159         pushed_macro_table has been allocated.
2161 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
2163         PR middle-end/35136
2164         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
2165         (force_gimple_operand): Likewise.
2166         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
2167         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
2168         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
2169         (find_interesting_uses_address): Check addressability and alignment
2170         of the base expression only after substituting bases of IVs into it.
2172 2008-02-14  Michael Matz  <matz@suse.de>
2174         PR target/34930
2175         * function.c (instantiate_virtual_regs_in_insn): Reload address
2176         before falling back to reloading the whole operand.
2178 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
2180         * config/s390/s390.c (s390_mainpool_start): Emit the pool
2181         before the first section switch note.
2183 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2185         * doc/bugreport.texi: Update copyright years.
2186         * doc/c-tree.texi: Likewise.
2187         * doc/cfg.texi: Likewise.
2188         * doc/cpp.texi: Likewise.
2189         * doc/cppinternals.texi: Likewise.
2190         * doc/fragments.texi: Likewise.
2191         * doc/frontends.texi: Likewise.
2192         * doc/gcc.texi: Likewise.
2193         * doc/gty.texi: Likewise.
2194         * doc/hostconfig.texi: Likewise.
2195         * doc/implement-c.texi: Likewise.
2196         * doc/libgcc.texi: Likewise.
2197         * doc/loop.texi: Likewise.
2198         * doc/makefile.texi: Likewise.
2199         * doc/options.texi: Likewise.
2200         * doc/passes.texi: Likewise.
2201         * doc/rtl.texi: Likewise.
2202         * doc/sourcebuild.texi: Likewise.
2203         * doc/standards.texi: Likewise.
2204         * doc/tree-ssa.texi: Likewise.
2205         * doc/trouble.texi: Likewise.
2207         * doc/extend.texi: Use @: or add comma where appropriate.
2208         * doc/invoke.texi: Likewise.
2209         * doc/tm.texi: Likewise.
2211 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
2213         PR target/34393
2214         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
2215         to a reg.
2217 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
2219         * doc/md.texi (clz, ctz): Add reference.
2220         * doc/rtl.texi (clz, ctz): Likewise.
2222 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2224         PR other/35148
2225         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
2226         srcdir.
2228 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
2230         * config/s390/s390.c (struct constant_pool): New field
2231         emit_pool_after added.
2232         (s390_mainpool_start): Set the emit_pool_after flag according
2233         to the section switch notes.
2234         (s390_mainpool_finish): Consider emit_pool_after when emitting
2235         the literal pool at the end of the function.
2236         (s390_chunkify_start): Force literal pool splits at section
2237         switch notes.
2239 2008-02-13  Michael Matz  <matz@suse.de>
2241         PR debug/35065
2242         * var-tracking.c (clobber_variable_part): Correctly traverse the
2243         list.
2245 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2247         PR 29673
2248         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
2249         Add -fdump-ipa-inline.
2250         * tree-dump.c (dump_files): Remove tree-inlined dump.
2251         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
2252         
2253 2008-02-12  Richard Guenther  <rguenther@suse.de>
2255         PR tree-optimization/35171
2256         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
2257         default defs.
2259 2008-02-12  Richard Guenther  <rguenther@suse.de>
2261         PR middle-end/35163
2262         * fold-const.c (fold_widened_comparison): Use get_unwidened in
2263         value-preserving mode.  Disallow final truncation.
2265 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
2267         PR middle-end/35136
2268         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
2269         code from here to...
2270         (force_gimple_operand): ...here.
2272 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
2274         PR c++/35144
2275         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
2276         non-compatible pointers.
2277         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
2278         different FIELD_DECLs, try harder by comparing field offsets, sizes
2279         and types.
2281         PR inline-asm/35160
2282         * function.c (match_asm_constraints_1): Don't replace the same input
2283         multiple times.
2285 2008-02-12  Anatoly Sokolov <aesok@post.ru>
2287         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
2288         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
2289         (expand_epilogue): Restore RAMPZ register.
2290         * config/avr/avr.md (RAMPZ_ADDR): New constant.
2292 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
2294         * config/i386/cygwin.asm: (__alloca): Correct calling
2295         convention and alignment.
2296         (__chkstk): Force 8 byte stack alignment.
2298 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
2299             Richard Guenther  <rguenther@suse.de>
2301         PR tree-optimization/33992
2302         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
2303         the zero we compare against.
2305 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
2307         PR libfortran/35063
2308         * gthr-win32.h (__gthread_mutex_destroy_function): New function
2309         to CloseHandle after unlocking to prevent accumulation of handle
2310         count.
2312 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2314         PR middle_end/34150
2315         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
2316         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
2317         and update LABEL_NUSES during and after reload.
2319 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
2321         PR middle-end/34627
2322         * combine.c (simplify_if_then_else): Make sure the comparison is
2323         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
2325 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
2327         PR bootstrap/35051
2328         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
2329         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
2330         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
2331         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
2332         * tree.h (get_type_static_bounds): Likewise.
2334 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2336         * doc/invoke.texi (Option Summary, C++ Dialect Options)
2337         (Objective-C and Objective-C++ Dialect Options, Warning Options):
2338         Make -Wfoo language annotations match what the compiler outputs.
2340 2008-02-08  Sa Liu  <saliu@de.ibm.com>
2342         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
2343         intrinsics spu_convts, spu_convtu, spu_convtf.
2344         * testsuite/gcc.target/spu/intrinsics-3.c: New. Test error messages.
2346 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
2348         * doc/extend.texi (Function Attributes) <noinline>: Mention
2349         asm ("") as method to keep calls.
2351 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2353         PR other/32754
2354         * doc/options.texi (Options): Replace references to opts.sh with
2355         optc-gen.awk.
2356         * opts-common.c: Likewise.
2357         * optc-gen.awk: Likewise.
2358         
2359 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
2361         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
2363 2008-02-07  Richard Henderson  <rth@redhat.com>
2365         PR rtl-opt/33410
2366         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
2367         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
2368         funny mode.
2370 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
2372         PR tree-optimization/35085
2373         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
2374         for operand entry oe2 in addition to operand entry oe3 in order to
2375         expose more opportunities for vectorizer sum reduction.
2377 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2379         PR other/35107
2380         * Makefile.in (LIBS): Remove $(GMPLIBS).
2381         (cc1-dummy, cc1): Add $(GMPLIBS).
2383 2008-02-06  Jan Hubicka  <jh@suse.cz>
2385         PR target/23322
2386         * i386.md (moddf_integer): Do not produce partial memory stalls for
2387         targets where it hurts.
2389 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
2391         PR target/35083
2392         * optabs.c (expand_float): Do not check for decimal modes when
2393         expanding unsigned integer through signed conversion.
2395 2008-02-06  Nick Clifton  <nickc@redhat.com>
2397         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
2398         inside the clobber with a match_operand and duplicated operand
2399         number in the constraint.
2400         (ineqbranchsi): Delete redundant comment.
2402 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
2404         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
2405         builtin_define ("__USE_INIT_FINI__").
2406         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
2407         -msx multilibs.
2408         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
2410 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2412         PR documentation/30330
2413         * doc/invoke.texi (C++ Dialect Options)
2414         (Objective-C and Objective-C++ Dialect Options, Warning Options):
2415         For each warning option -Wfoo that allows -Wno-foo, ensure both
2416         -Wfoo and -Wno-foo are listed in the option index.  Fix index
2417         entry of -Wswitch-default, index -Wnormalized= including the
2418         `=', and -Wlarger-than-@var{len} including @var{len}.
2420 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
2422         * config/i386/i386.md (floatunssisf2): Use
2423         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
2424         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
2425         Macroize expander using MODEF mode iterator.
2427 2008-02-05  Diego Novillo  <dnovillo@google.com>
2429         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
2431         PR 33738
2432         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
2434 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2436         PR other/35070
2437         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
2439 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
2441         PR target/35084
2442         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
2443         to indicate if a message should be generated.
2444         (init_cumulative_args): Updated.
2445         (function_value_32): Likewise.
2447 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
2449         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
2451 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
2453         PR target/35083
2454         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
2455         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
2457 2008-02-04  Diego Novillo  <dnovillo@google.com>
2459         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
2461         PR 33738
2462         * tree-vrp.c (vrp_evaluate_conditional): With
2463         -Wtype-limits, emit a warning when comparing against a
2464         constant outside the natural range of OP0's type.
2466 2008-02-04  Richard Guenther  <rguenther@suse.de>
2468         PR middle-end/33631
2469         * expr.c (count_type_elements): Give for unions instead of
2470         guessing.
2472 2008-02-04  Richard Guenther  <rguenther@suse.de>
2474         PR middle-end/35043
2475         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
2476         to TYPE_DOMAINs base type instead of using bitsizetype here.
2478 2008-02-03  Jason Merrill  <jason@redhat.com>
2480         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
2482 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2484         PR other/29972
2485         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
2486         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
2487         (RS/6000 and PowerPC Options): Fix typos and markup.
2488         * doc/passes.texi (Tree-SSA passes): Likewise.
2490 2008-02-02  Michael Matz  <matz@suse.de>
2492         PR target/35045
2493         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
2494         from record_last_reg_set_info.
2495         (record_last_reg_set_info): Take an RTX argument, iterate over all
2496         constituent hardregs.
2497         (record_last_set_info, record_opr_changes): Change calls to
2498         new signature or to record_last_reg_set_info_regno.
2500 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
2502         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
2504 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
2506         PR rtl-optimization/34773
2507         * reg-notes.def (EQUAL): Mention significance of combination of
2508         REG_EQUAL and REG_RETVAL.
2509         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
2510         insn that has a REG_RETVAL.
2512 2008-02-01  Roger Sayle  <roger@eyesopen.com>
2514         PR bootstrap/33781
2515         * configure.ac (--enable-fixed-point): Disable unless explicitly
2516         requested on IRIX.
2517         * configure: Regenerate.
2519 2008-02-01  Richard Guenther  <rguenther@suse.de>
2521         PR other/35042
2522         * invoke.texi (-finline-limit): Remove no longer true parts
2523         of the documentation.  Note that there is no default value.
2525 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
2526             Mark Mitchell  <mark@codesourcery.com>
2527             Ben Elliston  <bje@au.ibm.com>
2529         PR c/29326
2530         * doc/extend.texi (Other Builtins): Document.
2532 2008-01-31  Tom Browder <tom.browder@gmail.com>
2534         * doc/c-tree.texi (Types): Fix grammar.
2535         (Expression trees): Ditto.
2536         * doc/passes.texi (Tree-SSA passes): Ditto.
2537         
2538         * doc/configterms.texi (Configure Terms): Fix typo.
2539         * doc/cpp.texi (Common Predefined Macros): Ditto.
2540         * doc/md.texi (Machine Constraints): Ditto.
2541         
2542         * doc/makefile.texi (Makefile): Add comma.
2544 2008-01-31  Tom Browder  <tom.browder@gmail.com>
2545             Gerald Pfeifer  <gerald@pfeifer.com>
2546         
2547         * doc/sourcebuild.texi (Front End): Remove references to CVS
2548         and CVSROOT/modules.
2549         (Texinfo Manuals): Replace reference to CVS by one to SVN.
2550         (Back End): Remove reference to CVS.
2552 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
2554         PR target/34900
2555         * config/mips/mips.c (gen_load_const_gp): New function, taking a
2556         comment from...
2557         (mips16_gp_pseudo_reg): ...here.
2558         * config/mips/mips.md (load_const_gp): Replace with...
2559         (load_const_gp_<mode>): ...this :P-based insn.
2561 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2563         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
2564         options. Minor fixes.
2565         (-std): Move reference to standards closer to where language
2566         standards are first mentioned.
2567         
2568 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
2570         PR rtl-optimization/34995
2571         * reload.c (alternative_allows_const_pool_ref): Take an rtx
2572         parameter and return a bool.  If the rtx parameter is nonnull,
2573         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
2574         (find_reloads): Update call accordingly.  Pass the new operand
2575         if it needed no address reloads, otherwise pass null.
2577 2008-01-30  Richard Henderson  <rth@redhat.com>
2579         PR c/34993
2580         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
2581         for unbounded arrays.
2583 2008-01-30  Silvius Rus  <rus@google.com>
2585         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
2587 2008-01-30  Jan Hubicka  <jh@suse.cz>
2589         PR target/34982
2590         * i386.c (init_cumulative_args): Use real function declaration when
2591         calling locally.
2593 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
2595         PR rtl-optimization/34998
2596         * global.c (build_insn_chain): Treat non-subreg_lowpart
2597         SUBREGs of pseudos as clobbering all the words covered by the
2598         SUBREG, not just all the bytes.
2599         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
2600         original df_ref rather than an extract parameter.
2601         (global_conflicts): Update call accordingly.
2603 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
2605         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
2606         the overflow check to make it easier to read.
2607         (__fixtfdi): Change the type of the ll member in union
2608         long_double to UDItype_x.
2610 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
2612         PR middle-end/34969
2613         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
2614         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
2615         * tree-inline.c (fold_marked_statements): Call
2616         cgraph_update_edges_for_call_stmt if folding a call statement.
2617         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
2618         debug_generic_stmt calls, reset it back afterwards.
2620         PR c/35017
2621         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
2622         static decls.
2623         * c-typeck.c (build_external_ref): Don't pedwarn about
2624         static vars in current function's scope.
2626 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
2628         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
2630 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
2632         PR c/35002
2633         * ipa-struct-reorg.c: Fix spelling.
2634         * params.def: Ditto.
2636 2008-01-29  Richard Guenther  <rguenther@suse.de>
2638         PR middle-end/35006
2639         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
2640         field.
2641         * tree-inline.c (remap_type): Increment remapping_type_depth
2642         around remapping types.
2643         (copy_body_r): Only add referenced variables if they are referenced
2644         from code, not types.
2646 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
2648         PR c++/34055
2649         PR c++/34103
2650         PR c++/34219
2651         PR c++/34606
2652         PR c++/34753
2653         PR c++/34754
2654         PR c++/34755
2655         PR c++/34919
2656         PR c++/34961
2657         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
2658         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
2660 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
2662         PR target/34412
2663         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
2664         pointer for tiny stack.
2666 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
2668         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
2670 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
2672         * config/vx-common.h: Fix typo in comment.
2674 2008-01-28  Ian Lance Taylor  <iant@google.com>
2676         PR c++/34862
2677         PR c++/33407
2678         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
2679         coalesce pointers if they have different DECL_NO_TBAA_P values.
2680         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
2681         between variables with different DECL_NO_TBAA_P values.
2683 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
2685         PR 31535
2686         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
2687         are not legitimate small data references on SPE targets.
2689 2008-01-28  David Daney  <ddaney@avtrex.com>
2691         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
2693 2008-01-28  David Daney  <ddaney@avtrex.com>
2695         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
2697 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
2699         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
2700         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
2701         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
2702         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
2703         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
2704         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
2705         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
2706         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
2708 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
2710         * basic-block.h (condjump_equiv_p): Fix comment.
2712 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
2714         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
2715         print_generic_stmt_indented): Fix comment.
2717 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
2719         * configure.ac (__stack_chk_fail): Add detecion for availability
2720         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
2721         * configure: Regenerate.
2723 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
2725         PR middle-end/34688
2726         * final.c (output_addr_const): Handle TRUNCATE.
2728 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
2730         PR target/34711
2731         * tree-ssa-loop-ivopts.c (comp_cost): New type.
2732         (zero_cost, infinite_cost): New constants.
2733         (struct cost_pair): Change type of cost to comp_cost.
2734         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
2735         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
2736         New functions.
2737         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
2738         split_address_cost, ptr_difference_cost, difference_cost,
2739         get_computation_cost_at, get_computation_cost,
2740         determine_use_iv_cost_generic, determine_use_iv_cost_address,
2741         determine_use_iv_cost_condition, determine_use_iv_costs,
2742         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
2743         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
2744         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
2745         Change type of cost to comp_cost.
2746         (determine_iv_cost): Increase cost of non-original ivs, instead
2747         of decreasing the cost of original ones.
2748         (get_address_cost): Indicate the complexity of the addressing mode 
2749         in comp_cost.
2750         (try_add_cand_for): Prefer using ivs not specific to some object.
2751         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
2753 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
2754             Janis Johnson  <janis187@us.ibm.com>
2756         PR target/34814
2757         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
2758         (TARGET_INSTANTIATE_DECLS): Likewise.
2759         * target.h (expand_to_rtl_hook): New target hook.
2760         (instantiate_decls): Likewise.
2761         * function.c (instantiate_decl): Make non-static.  Rename to...
2762         (instantiate_decl_rtl): ... this.
2763         (instantiate_expr): Use instantiate_decl_rtl.
2764         (instantiate_decls_1): Likewise.
2765         (instantiate_decls): Likewise.
2766         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
2767         * function.h (instantiate_decl_rtl): Add prototype.
2768         * cfgexpand.c (target.h): New include.
2769         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
2770         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
2771         (TARGET_INSTANTIATE_DECLS): Likewise.
2772         (TARGET_INITIALIZER): New target hooks added.
2773         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
2774         New prototype.
2775         * config/rs6000/rs6000.c (tree-flow.h): New include.
2776         (machine_function): Add sdmode_stack_slot field.
2777         (rs6000_alloc_sdmode_stack_slot): New function.
2778         (rs6000_instantiate_decls): Likewise.
2779         (rs6000_secondary_memory_needed_rtx): Likewise.
2780         (rs6000_check_sdmode): Likewise.
2781         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
2782         (TARGET_INSTANTIATE_DECLS): Likewise.
2783         (rs6000_hard_regno_mode_ok): Allow SDmode.
2784         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
2785         (rs6000_emit_move): Handle SDmode.
2786         (function_arg_advance): Likewise.
2787         (function_arg): Likewise.
2788         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
2789         SDmode var args for 32-bit compiles.
2790         (rs6000_secondary_reload_class): Handle SDmode.
2791         (rs6000_output_function_epilogue): Likewise.
2792         (rs6000_function_value): Simplify if statement.
2793         (rs6000_libcall_value): Likewise.
2794         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
2795         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
2796         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
2797         (movsd_hardfloat): New define_insn.
2798         (movsd_softfloat): Likewise.
2799         (movsd_store): Likewise.
2800         (movsd_load): Likewise.
2801         (extendsddd2): Likewise.
2802         (extendsdtd2): Likewise.
2803         (truncddsd2): Likewise.
2804         (movdd_hardfloat64): Fixup comment.
2805         (UNSPEC_MOVSD_LOAD): New constant.
2806         (UNSPEC_MOVSD_STORE): Likewise.
2808 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
2810         PR c++/34965
2811         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
2812         TRUTH_XOR_EXPR.
2813         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
2814         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
2815         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
2816         and TRUTH_XOR_EXPR.
2818 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
2820         PR target/34794
2821         * config.gcc: Separate AIX 5.3 from AIX 6.1.
2822         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2823         __LONGDOUBLE128 too.
2824         * config/rs6000/aix61.h: New file.
2826 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
2828         PR rtl-optimization/34959
2829         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
2830         popcount and parity rtxes the same mode as their operand.
2831         Truncate or extend the result to the return value's mode
2832         if necessary.
2834 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
2836         PR target/34981
2837         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
2838         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
2839         to GOT_VERSION_REGNUM.
2840         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
2841         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
2842         * config/mips/mips.c (mips_emit_call_insn): New function.
2843         (mips_call_tls_get_addr): Call mips_expand_call directly.
2844         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
2845         emit_call_insn.
2846         (mips16_build_call_stub): Likewise.  Return the call insn or null.
2847         (mips_expand_call): Update the call to mips16_build_call_stub
2848         accordingly and a remove redundant condition.  Assert that MIPS16
2849         stubs do not use lazy binding.  Use mips_emit_call_insn and return
2850         the call insn.
2851         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
2852         TARGET_USE_GOT.
2853         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
2854         (mips_avoid_hazard): Remove hazard_set handling.
2855         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
2856         (UNSPEC_RESTORE_GP): ...this.
2857         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
2858         (FAKE_CALL_REGNO): Rename to...
2859         (GOT_VERSION_REGNUM): ...this.
2860         (type): Add "ghost" value.  Add an associated insn reservation.
2861         (hazard_set): Remove.
2862         (exception_receiver): Rename to...
2863         (restore_gp): ...this and update the unspec identifier accordingly.
2864         (exception_receiver, nonlocal_got_receiver): New expanders.
2865         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
2866         FAKE_CALL_REGNO.  Remove hazard_set attribute.
2867         (set_got_version, update_got_version): New patterns.
2869 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
2871         PR target/34970
2872         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
2874 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
2876         PR other/31955
2877         * doc/install.texi2html: Generate gcc-vers.texi.
2879 2008-01-25  DJ Delorie  <dj@redhat.com>
2881         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2883 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
2885         * config/c4x: Remove directory.
2886         * config.gcc (crx-*, mt-*): Mark obsolete.
2887         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
2888         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
2889         sh-*-rtemscoff*): Remove cases.
2890         * defaults.h (C4X_FLOAT_FORMAT): Remove.
2891         * real.c (encode_c4x_single, decode_c4x_single,
2892         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
2893         c4x_extended_format): Remove.
2894         * real.h (c4x_single_format, c4x_extended_format): Remove.
2895         * doc/extend.texi (interrupt, naked): Remove mention of attributes
2896         on C4x.
2897         (Pragmas): Remove comment about c4x pragmas.
2898         * doc/install.texi (c4x): Remove target-specific instructions.
2899         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
2900         * doc/md.texi (Machine Constraints): Remove C4x documentation.
2901         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
2902         refer to C4x source files as examples.
2903         (C4X_FLOAT_FORMAT): Remove documentation.
2905 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
2907         * config/bfin/bfin.c (override_options): Reorder tests so that
2908         flag_pic gets enabled for -msep-data.
2910 2008-01-25  Richard Guenther  <rguenther@suse.de>
2912         PR middle-end/32244
2913         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
2914         to its bitfield precision if required.
2916 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
2918         PR middle-end/33880
2919         * tree-nested.c (walk_omp_for): New function.
2920         (convert_nonlocal_reference, convert_local_reference): Call
2921         walk_omp_for on OMP_FOR.
2922         (convert_call_expr): Call walk_body on OMP_FOR's
2923         OMP_FOR_PRE_INIT_BODY.
2925 2008-01-25  Richard Guenther  <rguenther@suse.de>
2927         PR tree-optimization/34966
2928         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
2929         default defs and PHI_NODEs we have to insert after the
2930         defining statement.
2932 2008-01-24  Nick Clifton  <nickc@redhat.com>
2934         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
2935         Provide a default definition.
2936         (LIBGCC2_UNITS_PER_WORD): Likewise.
2938         * config/stormy16/stormy16.c: Include df.h for the prototype
2939         for df_regs_ever_live_p.
2940         (xstormy16_expand_builtin_va_start): Convert the stack offset
2941         into a component_ref and then use POINTER_PLUS_EXPR to add it
2942         to the incoming_virtual_args_rtx.
2943         (xstormy16_gimplify_va_arg_expr): Rename to
2944         xstormy16_gimplify_va_arg_expr.
2945         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
2946         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
2947         xstormy16_gimplify_va_arg_expr.
2948         Fix up some formatting issues.
2950         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
2951         Move to predicates.md.
2952         (xs_hi_general_operand): Likewise.
2953         (xs_hi_nonmemory_operand): Likewise.
2954         * config/stormy16/predicates.md:
2955         (xstormy16_carry_plus_operand): New predicate.
2956         (xs_hi_general_operand): New predicate.
2957         (xs_hi_nonmemory_operand): New predicate.
2958         * config/stormy16/stormy16-protos.h:
2959         (xstormy16_carry_plus_operand): Delete prototype.
2960         (xs_hi_general_operand): Likewise.
2961         (xs_hi_nonmemory_operand): Likewise.
2963         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
2964         modifiers as they are no longer needed and they can trigger
2965         reload spill failures.
2967         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
2968         with a match_operand in order to help reload.
2970         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
2971         constraint with 'e' for the 8th alternative as this version of
2972         the mov.w instruction only accepts the lower 8 registers.
2974 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
2976         PR target/34856
2977         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
2978         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
2979         vector elements.
2981 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
2983         PR middle-end/33333
2984         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
2986 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
2988         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
2989         New functions.
2990         (remove_structure): Update allocations list before removing structure.
2991         
2992 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
2994         * ipa-struct-reorg.c (is_safe_cond_expr, 
2995         create_new_stmts_for_cond_expr): Use integer_zerop function,
2996         that recognize not only zero-pointer, but zero-integer too.
2998 2008-01-25  Ben Elliston  <bje@au.ibm.com>
3000         PR other/22232
3001         * fixproto: Escape "." in sed expression that strips leading "./".
3003 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
3005         PR driver/34904
3006         * gcc.c (SWITCH_OK): Removed.
3007         (SWITCH_LIVE): Changed to bit.
3008         (SWITCH_FALSE): Likewise.
3009         (SWITCH_IGNORE): Likewise.
3010         (switchstr): Change live_cond to unsigned int.
3011         (process_command): Replace SWITCH_OK with 0.
3012         (do_self_spec): Likewise.
3013         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
3014         (give_switch): Likewise.
3015         (used_arg): Likewise.
3016         (do_spec_1): Set the SWITCH_IGNORE bit.
3017         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
3018         bits.  Set the SWITCH_LIVE bit.
3020 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
3022         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
3024 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
3026         PR tree-optimization/34472
3027         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
3028         parameter to a "bool *" and set *DATA to false if there is
3029         an unsafe access.  Do not delete the structure here.
3030         (check_cond_exprs): Delete it here instead.
3031         (check_cond_exprs, exclude_cold_structs): Do not increase
3032         I when removing a structure.
3034 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
3036         PR target/34856
3037         * config/i386/i386.c (ix86_expand_vector_init): Consider only
3038         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
3040 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
3042         PR middle-end/34934
3043         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
3044         a fixed vector for stack.
3046 2008-01-24  Ben Elliston  <bje@au.ibm.com>
3048         PR c++/25701
3049         * doc/gcc.texi (Software development): Add a direntry for g++.
3050         
3051 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
3053         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
3054         stale and straggling -fforce-addr comments above.
3056         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
3057         define.
3058         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
3059         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
3061 2008-01-23  Michael Matz  <matz@suse.de>
3063         PR debug/34895
3064         * dwarf2out.c (force_type_die): Use modified_type_die instead of
3065         gen_type_die.
3067 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
3069         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
3070         malloc result type.
3072 2008-01-23 Anatoly Sokolov <aesok@post.ru>
3074         * config/avr/avr.c (avr_current_arch): New variable.
3075         (avr_arch_types): Add 'avr31' and 'avr51' entries.
3076         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
3077         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
3078         (avr_override_options): Init 'avr_current_arch'. 
3079         (base_arch_s): Move from here...
3080         * config/avr/avr.h (base_arch_s): ... here. Add new members 
3081         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
3082         'mega' to 'have_jmp_call'.
3083         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
3084         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
3085         macros.
3086         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
3087         architectures.
3088         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
3089         MULTILIB_MATCHES): (Ditto.).
3091 2008-01-23  Richard Guenther  <rguenther@suse.de>
3093         PR middle-end/31529
3094         * cgraphunit.c (cgraph_reset_node): Always mark the node
3095         not reachable if it is not queued already.
3097 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
3099         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
3100         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
3101         (cputype_selected): New static variable.
3102         (bfin_handle_option): Set it if -mcpu is used.
3103         (override_option): Select default set of workarounds if no cpu type
3104         selected on the command line.
3105         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
3107         From  Michael Frysinger  <michael.frysinger@analog.com>
3108         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
3109         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
3111         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
3112         for bf547, bf523, bf524, and bf526.
3113         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
3114         bf526.
3115         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
3116         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
3117         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
3118         __ADSPBF547__ and __ADSPBF54x__ for bf547.
3119         * doc/invoke.texi (Blackfin Options): Document that
3120         -mcpu now accept bf547, bf523, bf524, and bf526.
3122 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
3124         PR rtl-optimization/34628
3125         * combine.c (try_combine): Stop and undo after the first combination
3126         if an autoincrement side-effect on the first insn has effectively
3127         been lost.
3129 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
3131         PR target/34529
3132         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
3133         Offset addresses are not valid for Altivec or paired float modes.
3135 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
3137         PR c++/34607
3138         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
3139         if DECL_INITIAL (decl) is error_mark_node.
3141         PR c++/34914
3142         * c-common.c (handle_vector_size_attribute): Only allow
3143         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
3144         the same way as pointer, array etc. types.
3145         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
3147         PR c++/34917
3148         * tree.c (build_type_attribute_qual_variant): Call
3149         build_qualified_type if attributes are equal, but quals are not.
3151 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3153         PR 32102
3154         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
3155         * flags.h (warn_strict_aliasing): Remove.
3156         (warn_strict_overflow): Remove.
3157         * opts.c (warn_strict_aliasing): Remove.
3158         (warn_strict_overflow): Remove.
3159         * c-opts.c (c_common_handle_option): -Wall only sets
3160         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
3161         (c_common_post_options): Give default values to -Wstrict-aliasing
3162         and -Wstrict-overflow if they are uninitialized.
3163         * common.opt (Wstrict-aliasing): Specify Var and Init.
3164         (Wstrict-overflow): Likewise.
3166 2008-01-22  Kenneth Zadeck <zadeck@naturalbridge.com>
3168         PR rtl-optimization/26854
3169         PR rtl-optimization/34400
3170         PR rtl-optimization/34884
3171         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
3172         DF_RD->gen.
3173         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
3174         (df_rd_bb_info.expanded_lr_out): Deleted
3175         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
3176         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
3177         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
3178         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
3179         Removed code to allocate, initialize or free expanded_lr_out.
3180         (df_rd_bb_local_compute_process_def): Restructured to make more
3181         understandable.
3182         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
3183         sets if the sets are being trimmed.
3185 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
3187         PR bootstrap/32287
3188         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
3189         (as_vers): Likewise.
3190         * configure: Regenerated.
3192 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3194         PR middle-end/33092
3195         * tree-pass.h (pass_build_alias): New pass.
3196         * tree-ssa-alias.c (gate_build_alias): New.
3197         (pass_build_alias): New.
3198         * passes.c (init_optimization_passes): Add pass_build_alias after
3199         pass_create_structure_vars.
3201 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
3203         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
3204         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
3205         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
3206         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
3207         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
3208         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
3209         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
3210         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
3211         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
3212         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
3213         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
3214         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
3215         * config/s390/s390.md (FP_ALL): New mode iterator.
3216         (_d): New mode attribute.
3217         ("*signbit<mode>2>"): Changed mode of first operand.
3218         ("isinf<mode>2"): Changed mode of first operand.
3219         ("*TDC_insn"): Adaptation for DFP modes.
3221 2008-01-22  Ben Elliston  <bje@au.ibm.com>
3223         * tree.c (check_qualified_type): Improve function description.
3225 2008-01-21  Jason Merrill  <jason@redhat.com>
3227         PR c++/34196
3228         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
3229         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
3230         if it is set.
3232 2008-01-21  DJ Delorie  <dj@redhat.com>
3234         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
3235         return zero.
3237 2008-01-21  Richard Guenther  <rguenther@suse.de>
3239         PR middle-end/34856
3240         * tree-cfg.c (verify_expr): Allow all invariant expressions
3241         instead of just constant class ones as reference argument.
3242         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
3243         like any other constant.
3244         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3246 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
3248         * regmove.c (fixup_match_1): Update call crossed frequencies.
3250 2008-01-21  Richard Guenther  <rguenther@suse.de>
3252         PR c/34885
3253         * tree-inline.c (setup_one_parameter): Deal with mismatched
3254         types using a VIEW_CONVERT_EXPR.
3256 2008-01-21  Alon Dayan  <alond@il.ibm.com>
3257             Olga Golovanevsky  <olga@il.ibm.com>
3258         
3259         PR tree-optimization/34701
3260         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
3261         when the structure size is not a power of 2.
3263 2008-01-20  Kenneth Zadeck <zadeck@naturalbridge.com>
3265         * doc/install.texi: Add doc for --enable-checking=df.
3266         
3267 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
3269         PR rtl-optimization/34808
3270         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
3272 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
3274         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
3275         input.
3277 2008-01-19  Kenneth Zadeck <zadeck@naturalbridge.com>
3279         PR rtl-optimization/26854
3280         PR rtl-optimization/34400
3281         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
3282         DF_RD->gen.
3283         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
3284         (df_rd_bb_info.expanded_lr_out): New.
3285         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
3286         * loop_iv.c (iv_analysis_loop_init): Ditto.
3287         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
3288         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
3289         Added code to allocate, initialize or free expanded_lr_out.
3290         (df_rd_bb_local_compute_process_def): Restructured to make
3291         more understandable.
3292         (df_rd_confluence_n): Add code to do nothing with fake edges and
3293         code to no apply invalidate_by_call sets if the sets are being trimmed.
3294         (df_lr_local_finalize): Renamed to df_lr_finalize.
3295         (df_live_local_finalize): Renamed to df_live_finalize.
3297 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
3299         PR target/34831
3300         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
3301         deciding whether to use reciprocal instructions.
3303 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
3305         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
3306         dwarf2out_note_section_used if cold_text_section is NULL.
3308 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
3310         PR gcov-profile/34610
3311         * tree-cfg.c (make_edges): Mark both outgoing edges from
3312         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
3313         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
3314         from OMP_FOR and OMP_CONTINUE outgoing edges.
3316         * tree-profile.c (tree_profiling): Return early if
3317         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
3318         at the end.
3319         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
3320         from cfun to child_cfun.
3321         * function.h (struct function): Add after_tree_profile bit.
3323 2008-01-19 Anatoly Sokolov <aesok@post.ru>
3325         * config/avr/avr.S (_exit): Disable interrupt.
3327 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
3328             Steven Bosscher  <stevenb.gcc@gmail.com>
3330         PR rtl-optimization/26854
3331         PR rtl-optimization/34400
3332         * df-problems.c (df_live_scratch): New scratch bitmap.
3333         (df_live_alloc): Allocate df_live_scratch when doing df_live.
3334         (df_live_reset): Clear the proper bitmaps.
3335         (df_live_bb_local_compute): Only process the artificial defs once
3336         since the order is not important.
3337         (df_live_init): Init the df_live sets only with the variables
3338         found live by df_lr.
3339         (df_live_transfer_function): Use the df_lr sets to prune the
3340         df_live sets as they are being computed.  
3341         (df_live_free): Free df_live_scratch.
3343 2008-01-18  Ian Lance Taylor  <iant@google.com>
3345         * common.opt: Add fmerge-debug-strings.
3346         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
3347         flag_merge_debug_strings rather than flag_merge_constants.
3348         * doc/invoke.texi (Option Summary): Mention
3349         -fmerge-debug-strings.
3350         (Debugging Options): Document -fmerge-debug-strings.
3352 2008-01-18  Ian Lance Taylor  <iant@google.com>
3354         PR c++/33407
3355         * tree.h (DECL_IS_OPERATOR_NEW): Define.
3356         (struct tree_function_decl): Add new field operator_new_flag.
3357         * tree-inline.c (expand_call_inline): When inlining a call to
3358         operator new, force the return value to go into a variable, and
3359         set DECL_NO_TBAA_P on that variable.
3360         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
3362 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
3364         PR debug/34484
3365         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
3366         DWARF2_DEBUGGING_INFO.
3367         (dwarf2out_note_section_used): Ditto.  Add prototype.
3368         (have_multiple_function_sections, text_section_used,
3369         cold_text_section_used, *cold_text_sections): Move declarations
3370         before their uses.
3372 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
3374         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
3375         field and add signal_ra.
3376         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
3377         assignments to frame state pc.  Move end of stack check after
3378         MD_FALLBACK_FRAME_STATE_FOR.
3379         (uw_update_context_1): Use frame state signal_regs if set, instead
3380         of checking signal_frame flag.
3381         (uw_update_context): Use frame state signal_ra if set.
3382         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
3383         * config/xtensa/linux-unwind.h: New file.
3385 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
3387         * modulo-sched.c (get_sched_window): Fix comment typo.
3389 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
3391         PR tree-optimization/34648
3392         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
3394 2008-01-17  Anatoly Sokolov <aesok@post.ru>
3396         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
3397         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
3399 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
3401         PR rtl-optimization/34400
3402         * df-core.c (df_worklist_dataflow_overeager,
3403         df_worklist_dataflow_doublequeue): New functions.
3404         (df_worklist_dataflow): Two different worklist solvers.
3405         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
3406         New param.
3408 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
3410         PR testsuite/34821
3411         * doc/invoke.texi: Document the dependence on pthread for fopenmp
3412         and ftree-parallelize-loops.
3414 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
3416         PR rtl-optimization/34826
3417         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
3419 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
3421         * global.c (find_reg): Mark the eh regs as used if necessary.
3422         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
3423         * ra.h (struct allocno): no_eh_reg field added.  Changed
3424         no_stack_reg type to bitfield.
3426 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
3428         * tree.c (substitute_in_expr): Add missing 'break'.
3430 2008-01-17  Richard Guenther  <rguenther@suse.de>
3432         PR tree-optimization/34825
3433         * tree-ssa-math-opts.c (is_division_by): Do not recognize
3434         x / x as division to handle.
3436 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3438         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
3439         "-pthread" is specified.
3440         * pa-hpux11.h (LIB_SPEC): Likewise.
3442 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
3443             Peter Bergner  <bergner@vnet.ibm.com>
3445         PR rtl-optimization/33796
3446         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
3448 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3450         PR libgfortran/34699
3451         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
3452         static links.
3453         * pa-hpux10.h (LINK_SPEC): Likewise.
3454         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
3456 2008-01-16  Richard Guenther  <rguenther@suse.de>
3458         PR middle-end/32628
3459         * fold-const.c (fold_convert_const_int_from_int): Do not
3460         set overflow if that occured only because of a sign extension
3461         change when converting from/to a sizetype with the same
3462         precision and signedness.
3464 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
3466         PR debug/34249
3467         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
3468         location address to the correct place.  Update copyright year.
3470 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
3472         * lambda-code.c (lambda_transform_legal_p): Handle the case of
3473         no dependences in the dependence_relations vector.
3475 2008-01-16  Jan Hubicka  <jh@suse.cz>
3477         PR rtl-optimization/31396
3478         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
3479         * cfg.c (dump_reg_info): Print it.
3480         * regs.h (struct reg_info_t): add freq_calls_crossed.
3481         (REG_FREQ_CALLS_CROSSED): New macro.
3482         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
3483         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
3484         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
3485         regmove_optimize): Update call crossed frequencies.
3486         * local-alloc.c (struct qty): Add freq_calls_crossed.
3487         (alloc_qty): Copute freq_calls_crossed.
3488         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
3489         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
3490         * ra.h (struct allocno): Add freq_calls_crossed.
3492 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
3494         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
3495         libgomp when compiling with ftree-parallelize-loops.
3496         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
3498 2008-01-16  Richard Guenther  <rguenther@suse.de>
3500         PR tree-optimization/34769
3501         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
3502         * tree.c (int_cst_value): Instead make this function more
3503         permissive in what it accepts as valid input.  Document this
3504         function always sign-extends the value.
3506 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
3507             Richard Guenther  <rguenther@suse.de>
3509         PR c/34668
3510         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
3511         (gimple_fold_indirect_ref_rhs): ... this.
3512         (gimple_fold_indirect_ref): New function with foldings
3513         that preserve lvalueness.
3514         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
3515         * tree-flow.h (gimple_fold_indirect_ref): Declare.
3516         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
3517         to fold an INDIRECT_REF, fall back to the old use of
3518         fold_indirect_ref_1.
3520 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
3522         * tree-data-ref.c (subscript_dependence_tester_1): Call 
3523         free_conflict_function.
3524         (compute_self_dependence): Same.
3526 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
3528         PR debug/34249
3529         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
3530         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
3531         function global.
3532         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
3533         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
3534         for DWARF2_UNWIND_INFO targets.
3536 2008-01-16  Richard Guenther  <rguenther@suse.de>
3538         PR c/34768
3539         * c-typeck.c (common_pointer_type): Do not merge inconsistent
3540         type qualifiers for function types.
3542 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
3544         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
3545         loop_iterator li from previous commit.
3547 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
3549         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
3551 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
3553         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
3554         (parallelize_loops): Don't parallelize irreducible components.
3556 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3558         PR c++/24924
3559         * c-opts (c_common_post_options): Do not enable CPP
3560         flag_pedantic_errors by default.
3561         
3562 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
3564         PR rtl-optimization/31944
3565         * cse.c (remove_pseudo_from_table): New function.
3566         (merge_equiv_classes): Use above function to remove pseudo-registers.
3567         (invalidate): Likewise.
3569 2008-01-13  Richard Guenther  <rguenther@suse.de>
3571         PR middle-end/34601
3572         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
3573         instead of TYPE_MODE to deal with calls from expand_one_error_var.
3575 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
3577         * gcse.c (cprop_jump): Call validate_unshare_change instead of
3578         validate_change to unshare the source of the PC set.
3580 2008-01-12  Jan Hubicka  <jh@suse.cz>
3582         PR middle-end/32135
3583         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
3584         references above array bounds.  This might trigger bounds checks for
3585         pointers to arrays.
3587 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
3589         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
3590         new_replaceable_dependencies.
3592 2008-01-12  Doug Kwan  <dougkwan@google.com>
3594         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
3595         instead of OPT_Wreturn_type in warning due to ignored return type
3596         qualifiers.
3597         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
3598         options included in -Wextra.
3599         * c.opt: New option -Wignored_qualifiers.
3600         * doc/invoke.texi (Warning Options, -Wextra): Add new option
3601         -Wignore_qualifiers.
3602         (-Wignored-qualifiers): Document.
3603         (-Wreturn-type): Remove description of functionality now handled
3604         by -Wignored-qualifiers.
3606 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
3608         PR ada/33788
3609         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
3610         NOP_EXPR if it is between integral types with the same precision.
3612 2008-01-12  Jan Hubicka  <jh@suse.cz>
3614         PR other/28023
3615         * invoke.texi (max-inline-recursive-depth): Fix default value.
3617 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
3619         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
3620         correct type.
3622 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
3623         
3624         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
3625         
3626 2008-01-11  James E. Wilson  <wilson@specifix.com>
3628         PR target/26015
3629         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
3631 2008-01-11  Anatoly Sokolov <aesok@post.ru>
3633         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
3634         save/restore frame pointer register and don't use 'call-prologues' 
3635         optimization in function with "OS_task" attribute.
3637 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
3639         PR middle-end/31309
3640         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
3641         when copying to memory.
3643 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
3645         PR rtl-optimization/30905
3646         * cfgcleanup.c: Include dce.h
3647         (crossjumps_occured): New global variable.
3648         (try_crossjump_bb): Exit loop after finding a fallthru edge.
3649         If something changed, set crossjumps_occured to true.
3650         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
3651         Don't add/remove fake edges to exit here...
3652         (cleanup_cfg): ...but do it here, when crossjumping.
3653         Run a fast DCE when successful crossjumps occured in the latest
3654         iteration of try_optimize_cfg.
3656 2008-01-11  Richard Guenther  <rguenther@suse.de>
3658         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
3659         (struct vn_unary_op_s): Likewise.
3660         (vn_reference_insert): Free old reference on hash collision.
3662 2008-01-10  Raksit Ashok  <raksit@google.com>
3664         PR rtl-optimization/27971
3665         * combine.c (find_split_point): Split PLUS expressions which are
3666         inside a MEM rtx, and whose first operand is complex.
3668 2008-01-10  DJ Delorie  <dj@redhat.com>
3670         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
3671         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
3672         (m32c_hard_regno_ok): Call the underlying function.
3674 2008-01-10  Richard Guenther  <rguenther@suse.de>
3676         PR middle-end/34683
3677         * tree-cfg.c (tree_merge_blocks): Do not go through the
3678         full-blown folding and stmt updating path if we just deal
3679         with virtual operands.
3680         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
3681         test for abnormal SSA_NAMEs.
3683 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
3685         PR middle-end/34641
3686         * reload.c (push_reload): Add assertions.  All constants from
3687         reg_equiv_constant should have been used for replacing the respective
3688         pseudo earlier.
3689         (find_reloads_address): Invoke find_reloads_address_part for
3690         constant taken from the reg_equiv_constant array.
3692 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
3694         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
3695         field (valnum) the first in the struct.  Replace bools with
3696         unit bit fields.
3698 2008-01-10  Richard Guenther  <rguenther@suse.de>
3700         PR tree-optimization/34651
3701         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
3702         types and ordering for masking and converting.
3704 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
3706         PR tree-optimization/34017
3707         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
3708         also for PHI_NODE expressions.
3710 2008-01-09  Jan Hubicka  <jh@suse.cz>
3712         PR tree-optimization/34708
3713         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
3714         based on number of case labels.
3715         (init_inline_once): Remove switch_cost.
3716         * tree-inline.h (eni_weights_d): Remove switch_cost.
3718 2008-01-09  Richard Guenther  <rguenther@suse.de>
3719         Andrew Pinski  <andrew_pinski@playstation.sony.com>
3721         PR middle-end/30132
3722         * gimplify.c (gimplify_cond_expr): Do not create an addressable
3723         temporary if an rvalue is ok or an lvalue is not required.
3725 2008-01-09  Richard Guenther  <rguenther@suse.de>
3727         PR middle-end/34458
3728         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
3729         adjust return type.
3731 2008-01-09  Richard Guenther  <rguenther@suse.de>
3733         PR middle-end/34679
3734         * tree.c (host_integerp): Check for sizetype only if the
3735         type is an integer type.
3737 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
3739         PR debug/26364
3740         * opts.c (decode_options): Disable inlining of functions called
3741         once if not in unit-at-a-time mode.
3743 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
3745         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
3747 2008-01-08  Richard Guenther  <rguenther@suse.de>
3749         PR middle-end/31863
3750         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
3751         out early if the result will be unused.
3753 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
3755         PR target/34709
3756         Revert:
3758         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
3759         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
3760         for TARGET_RECIP.       
3761         
3762 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
3763         
3764         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
3765         for vectorization tuned.
3766         
3767 2008-01-08  Richard Guenther  <rguenther@suse.de>
3769         PR tree-optimization/34683
3770         * tree-ssa-operands.c (operand_build_cmp): Export.
3771         * tree-ssa-operands.h (operand_build_cmp): Declare.
3772         * tree-vn.c (vuses_compare): Remove.
3773         (sort_vuses): Use operand_build_cmp.
3774         (sort_vuses_heap): Likewise.
3775         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
3776         to re-use old VEC if available.  Do not sort already sorted VUSEs.
3777         (vdefs_to_vec): Do not sort already sorted VDEFs.
3779 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
3781         PR middle-end/34694
3782         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
3784 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
3786         PR target/34702
3787         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
3788         limitations of reciprocal sequences on x86 targets.
3790 2008-01-08  Richard Guenther  <rguenther@suse.de>
3792         PR tree-optimization/34683
3793         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
3795 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
3797         PR target/34622
3798         * config/darwin.c (darwin_mergeable_string_section): Don't use
3799         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
3801 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
3803         PR target/34682
3804         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
3805         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
3806         predicates of op0 and op1 to register_operand.
3807         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
3808         expander using X87MODEF mode iterator.  Change predicates of
3809         op0 and op1 to register_operand.
3810         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
3811         corresponding patterns and macroize using MODEF macro.  Change
3812         predicates of op0 and op1 to register_operand and remove
3813         "m" constraint. Disparage "r" alternative with "!".
3814         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
3815         macroize using X87MODEF macro.  Change predicates of op0 and op1
3816         to register_operand and remove "m" constraint.  Disparage "r"
3817         alternative with "!".
3818         (absneg splitter with memory operands): Remove.
3819         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
3820         patterns and macroize using X87MODEF mode iterator.
3821         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
3822         Change predicate of op1 to register_operand.
3823         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
3824         for memory operands.
3826 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
3828         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
3830 2008-01-07  Richard Guenther  <rguenther@suse.de>
3832         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
3833         fields.
3835 2008-01-07  Richard Guenther  <rguenther@suse.de>
3837         PR tree-optimization/34683
3838         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
3839         VOPs of the needed size to save memory.  Use VEC_quick_push
3840         to save compile-time.
3841         (vdefs_to_vec): Likewise.
3843 2008-01-07  Sa Liu  <saliu@de.ibm.com>
3845         * config/spu/spu.md (divdf3): Genetate inline code for double
3846         division.  The implementation doesn't handle INF or NAN, therefore it
3847         only applies when -ffinite-math-only is given.
3849 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
3851         PR libstdc++/34680
3852         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
3853         * doc/cpp.texi ([Common Predefined Macros]): Document.
3855 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
3857         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
3858         order to use commutative addition instead of subtraction.
3860 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3861             Mircea Namolaru  <namolaru@il.ibm.com>
3862             Vladimir Yanovsky  <yanov@il.ibm.com>
3863             Revital Eres  <eres@il.ibm.com>
3865         PR tree-optimization/34263
3866         * tree-outof-ssa.c (process_single_block_loop_latch,
3867         contains_tree_r): New functions.
3868         (analyze_edges_for_bb): Call process_single_block_loop_latch
3869         function to empty single-basic-block latch block if possible.
3871 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
3873         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
3874         for TARGET_RECIP.
3875         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
3877 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
3879         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
3881 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
3883         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
3885 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
3887         PR tree-optimization/34618
3888         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
3889         flag from T.
3891 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
3893         PR target/34673
3894         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
3895         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
3896         Update copyright year.
3898         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
3899         Update copyright year.
3900         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
3901         using NR fixup.
3903 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
3905         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
3906         edge does not point to current bb before changing need_assert.
3908 2008-01-04  Richard Guenther  <rguenther@suse.de>
3910         PR middle-end/34029
3911         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
3912         for verifying purposes if they are is_gimple_min_invariant.
3914 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
3916         PR tree-optimization/34448
3917         PR tree-optimization/34465
3918         * gimplify.c (gimplify_init_constructor): Add new parameter
3919         notify_temp_creation.  Use it.
3920         (gimplify_modify_expr_rhs): Take volatiles into account when
3921         optimizing constructors.
3922         Do not optimize constructors if gimplify_init_constructor will dump to
3923         memory.
3924         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
3925         * gcc.c-torture/compile/pr34448.c: New.
3927 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
3929         PR gcov-profile/34609
3930         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
3931         return_slot if result is TREE_ADDRESSABLE.
3933 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
3935         * config/mips/mips.md (sqrt_condition): Tweak comment.
3936         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
3938 2008-01-03  Tom Tromey  <tromey@redhat.com>
3940         PR c/34457
3941         * c-common.c (c_type_hash): Handle VLAs.
3943 2008-01-03  Jan Hubicka  <jh@suse.cz>
3945         PR tree-optimization/31081
3946         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
3947         0 when inlining and not inlining to first basic block.
3948         (remap_decl): When var is initialized to 0, don't set default_def.
3949         (expand_call_inline): Set entry_bb.
3950         * tree-inline.h (copy_body_data): Add entry_bb.
3952 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
3954         PR c++/34619
3955         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
3956         before returning.
3958         PR tree-optimization/29484
3959         * tree-inline.c (inline_forbidden_p_2): New function.
3960         (inline_forbidden_p): Disallow inlining if some static var
3961         has an address of a local LABEL_DECL in its initializer.
3962         * doc/extend.texi (Labels as Values): Document &&foo behaviour
3963         vs. inlining.
3965 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
3967         PR tree-optimization/34635
3968         * tree-data-ref.c (add_other_self_distances): Make sure that the
3969         evolution step is constant.
3971 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
3973         PR middle-end/34608
3974         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
3976 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
3978         * tree-sra.c (scalarize_init): Insert the generate_element_init
3979         statements after the generate_element_zero statements.
3981 2008-01-02  Richard Guenther  <rguenther@suse.de>
3983         PR middle-end/34093
3984         PR middle-end/31976
3985         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
3986         for very large number of operands instead of ICEing.
3988 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
3990         PR target/34013
3991         * gcc/config/i386/i386.c (ix86_expand_prologue): Save red-zone
3992         while stack probing.
3994 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
3996         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
3997         in C++0x mode.
3999 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
4001         PR libmudflap/26442
4002         * tree-mudflap.c (mx_register_decls): Guard warning by
4003         !DECL_ARTIFICIAL check.
4005 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
4007         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
4008         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
4009         sse5_perm<mode>): Fix constraints.