1 2006-09-19 Paul Brook <paul@codesourcery.com>
4 * config/arm/arm.c (arm_unwind_emit_set): Handle reg = sp + const.
6 2006-09-17 Zdenek Dvorak <dvorakz@suse.cz>
8 PR tree-optimization/28887
9 * tree-ssa-loop-prefetch.c (analyze_ref): Strip nonaddressable
10 component parts from the reference.
11 (gather_memory_references_ref): Record the reference without the
12 nonaddressable component parts.
14 2006-09-17 Steven Bosscher <steven@gcc.gnu.org>
17 * c-opts.c (c_common_handle_option): Ignore the -std options
18 if the input language is assembly.
20 2006-09-17 Ira Rosen <irar@il.ibm.com>
23 * tree-data-ref.c (ptr_decl_may_alias_p): Look for the name memory
25 (ptr_ptr_may_alias_p): Likewise.
26 (record_record_differ_p): New function.
27 (base_object_differ_p): Call record_record_differ_p.
29 2006-09-16 Andrew Pinski <pinskia@physics.uc.edu>
32 * tree-ssa-propagate.c (set_rhs): Reject MODIFY_EXPR right
33 away for the expr argument.
35 2006-09-16 Steven Bosscher <steven@gcc.gnu.org>
38 * tree-vectorizer.c (vectorize_loops): Clear vect_loop_location
39 before using it for dumping after vectorizing loops.
41 2006-09-16 Andrew Pinski <pinskia@physics.uc.edu>
42 Jack Howarth <howarth@bromo.med.uc.edu>
45 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_recurse)
46 skip on error_mark_node.
47 (rs6000_darwin64_record_arg_recurse): Likewise.
49 2006-09-16 Steven Bosscher <steven@gcc.gnu.org>
51 * rtl.h (LABEL_OUTSIDE_LOOP_P): Remove.
52 * doc/rtl.texi: Remove related documentation.
54 2006-09-16 Bernd Schmidt <bernd.schmidt@analog.com>
56 * loop-doloop.c (doloop_optimize): Remove bogus arg from debugging
59 2006-09-15 Jim Wilson <wilson@specifix.com>
61 * config/ia64/ia64.c (ia64_legitimate_constant_p, cast CONST):
62 Handle symbol offsets same as they are handled in ia64_expand_move
65 2006-09-16 Andreas Tobler <a.tobler@schweiz.org>
67 * loop-doloop.c (doloop_optimize): Change type of max_cost to int.
68 Add forgotten parameter to the fprintf call.
70 2006-09-15 Steve Ellcey <sje@cup.hp.com>
72 * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Add define.
74 2006-09-15 Uros Bizjak <uros@kss-loka.si>
76 * doc/contrib.texi: Add my entry.
78 2006-09-15 Nick Clifton <nickc@redhat.com>
80 * doc/md.texi (Processor pipeline description): Fix typo in
81 example of how to use the absence_set directive and reword the
82 description to make it slightly easier to read.
84 2006-09-15 Bernd Schmidt <bernd.schmidt@analog.com>
86 * params.def (PARAM_MAX_ITERATIONS_COMPUTATION_COST): New.
87 * loop-doloop.c (doloop_optimize): Use it to limit costs of
88 expanding the number of iterations.
89 * config/bfin/bfin.c (bfin_rtx_costs): Handle UDIV, UMOD.
91 * cfgrtl.c (emit_insn_at_entry): New function.
92 * rtl.h (emit_insn_at_entry): Declare it.
93 * integrate.c (emit_initial_value_sets): Use it.
95 * cfgrtl.c (emit_insn_at_entry): Use gcc_assert, not abort.
97 * config/bfin/bfin.c (struct loop_info): New members block_bitmap and
99 (struct loop_work and related VEC declarations): Delete.
100 (bfin_dump_loops): Print out new member bad.
101 (bfin_bb_in_loop): Use plain bitmap test. Don't recurse.
102 (bfin_scan_loop): Don't recurse.
103 (bfin_optimize_loop): Don't use a loop depth of -1 to indicate bad
104 loops. No longer need to update outer loops if the current one is
105 found bad. Move some validitiy checks to bfin_discover_loop.
106 (bfin_discover_loop): New function, mostly split from bfin_reorg_loops,
107 but changed not to check for nesting. Also changed to use the new bad
109 (bfin_reorg_loops): Use bfin_discover_loop to find single loops one at a
110 time. Use bitmap based test to discover loop nesting.
112 2006-09-15 Kazu Hirata <kazu@codesourcery.com>
114 * doc/tm.texi (TARGET_FUNCTION_VALUE): Put @deftypefn all in
117 2006-09-14 Richard Guenther <rguenther@suse.de>
118 Kazu Hirata <kazu@codesourcery.com>
121 * doc/tm.texi (TARGET_FUNCTION_VALUE): Document.
122 (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE): Deprecate.
123 Replace mentions of FUNCTION_VALUE and FUNCTION_OUTGOING_VALUE
124 with TARGET_FUNCTION_VALUE.
126 2006-09-14 Anatoly Sokolov <aesok@post.ru>
129 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Define.
131 2006-09-13 Aldy Hernandez <aldyh@redhat.com>
133 * doc/tree-ssa.texi (Jumps): RESULT_DECL can also be an operand
136 2006-09-13 Andrew Pinski <pinskia@physics.uc.edu>
139 * dwarf2out.c (loc_descriptor_from_tree_1): Handle
142 2006-09-13 Andreas Krebbel <krebbel1@de.ibm.com>
144 * basic_block.h (bb_has_eh_pred): Fix comment.
146 2006-09-13 Andreas Krebbel <krebbel1@de.ibm.com>
148 * flow.c (calculate_global_regs_live): Invalidate eh registers
149 on eh edges. Renamed invalidated_by_call to invalidated_by_eh_edge.
150 (propagate_block): Handle eh registers as if they were set at basic
152 * except.c (dw2_build_landing_pads): Don't emit clobbers for eh
154 * global.c (global_conflicts): Make eh registers to conflict with
155 pseudos live at basic block begin.
156 * basic_block.h (bb_has_eh_pred): New function.
158 2006-09-13 Richard Sandiford <richard@codesourcery.com>
160 PR rtl-optimization/28982
161 * reload.c (find_reloads_address_1): Use RELOAD_OTHER for the
162 index of a PRE_MODIFY or POST_MODIFY address.
163 * reload1.c (inc_for_reload): Use find_replacement on the original
164 base and index registers.
166 2006-09-12 H.J. Lu <hongjiu.lu@intel.com>
168 * doc/invoke.texi (mpreferred-stack-boundary): Remove exception
169 for -Os. Update __m128 alignment requirement.
171 2006-09-13 Jan Hubicka <jh@suse.cz>
173 * cfganal.c (compute_dominance_frontiers_1): Don't be quadratic.
175 2006-09-12 Eric Botcazou <ebotcazou@libertysurf.fr>
177 PR rtl-optimization/28243
178 * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
179 the insn to which the note was originally attached.
181 2006-09-12 Andrew Pinski <pinskia@physics.uc.edu>
182 Roger Sayle <roger@eyesopen.com>
184 * dwarf2out.c (file_table_last_lookup): Move this GC'd declaration
185 outside of #ifdef DWARF2_DEBUGGING_INFO to fix bootstrap failure
186 on platforms that don't use dwarf for debug info.
188 2006-09-12 Jason Merrill <jason@redhat.com>
191 * builtins.c (expand_builtin_setjmp_receiver): Clobber
192 hard_frame_pointer_rtx after using it to update the frame pointer.
194 2006-09-12 Roger Sayle <roger@eyesopen.com>
196 * target-def.h (TARGET_ASM_OPEN_PAREN): Guard with an #ifndef.
197 (TARGET_ASM_CLOSE_PAREN): Likewise.
198 * config/alpha/osf5.h (TARGET_ASM_OPEN_PAREN): Define.
199 (TARGET_ASM_CLOSE_PAREN): Likewise.
201 2006-09-12 Roger Sayle <roger@eyesopen.com>
204 * config/alpha/alpha.c (alpha_start_function): Don't emit stack
205 frame information for frames larger than 512 Kbytes on Tru64 when
206 using the native assembler.
208 2006-09-12 Roger Sayle <roger@eyesopen.com>
212 * cselib.c (cselib_hash_rtx): Avoid hashing on the address of labels
213 and symbols. Instead use the implementation from cse.c's hash_rtx.
215 2006-09-12 Jan Hubicka <jh@suse.cz>
217 PR rtl-optimization/28071
218 * tree-vect-transform.c (vect_create_data_ref_ptr): Kill cast.
219 (vect_transform_loop): Likewise.
220 * tree-vectorizer.c (new_loop_vec_info): Likewise.
221 (new_loop_vec_info): Likewise.
222 (destroy_loop_vec_info): Likewise.
223 * tree-dfa.c (create_var_ann): Use GCC_CNEW.
224 (create_stmt_ann): Likewise.
225 (create_tree_ann): Rename to ...
226 (create_tree_common_ann): ... this one; allocate only the common part
228 * tree-vn.c (set_value_handle): Use get_tree_common_ann.
229 (get_value_handle): Likewise.
230 * tree-ssa-pre.c (phi_translate): Delay annotation allocation for
232 * tree-vectorizer.h (set_stmt_info): Take stmt annotation.
233 (vinfo_for_stmt): Use stmt annotations.
234 * tree-flow.h (tree_ann_common_t): New type.
235 (tree_common_ann, get_tree_common_ann, create_tree_common_ann): New.
236 (tree_ann, get_tree_ann, create_tree_ann): New.
237 * tree-flow-inline.h (get_function_ann): Do more type checking.
238 (stmt_ann): Likewise.
239 (tree_ann): Rename to ...
240 (tree_common_ann): ... this one; return ony common_ann
241 (get_tree_ann): Rename to ...
242 (tree_common_ann): This one; return only common_ann.
243 * tree-vect-patterns.c (vect_pattern_recog_1): Update call
246 2006-09-11 Geoffrey Keating <geoffk@apple.com>
248 * config.gcc (i[34567]86-*-darwin*): Set with_arch and
251 * dwarf2out.c (dwarf_file_data): New.
252 (enum dw_val_class): Add dw_val_class_file.
253 (struct dw_val_struct): Add val_file.
254 (file_table): Change to a hash table.
255 (file_table_emitted): Delete.
256 (file_table_last_lookup_index): Delete.
258 (last_emitted_file): New.
259 (lookup_filename): Change prototype to return a struct dwarf_file_data.
260 (init_file_table): Delete.
261 (maybe_emit_file): Change prototype to take a struct dwarf_file_data.
262 (AT_addr): Add comment.
266 (print_die): Handle dw_val_class_file.
267 (print_dwarf_line_table): Update for new file table structure.
268 (attr_checksum): Do checksum a filename.
269 (same_dw_val_p, same_attr_p): Do compare a filename.
270 (size_of_die): Handle dw_val_class_file.
271 (value_format): Likewise.
272 (output_die): Likewise. Also, call maybe_emit_file here.
273 (struct file_info): Constify filenames. Make file_idx a pointer
274 to a struct dwarf_file_data.
275 (struct dir_info): Constify directory names. Remove 'used' field.
276 (struct file_name_acquire_data): New.
277 (file_name_acquire): New.
278 (output_file_names): Modify to handle new file data structures.
279 (add_src_coords_attributes): Use add_AT_file.
280 (add_call_src_coords_attributes): Likewise.
281 (dwarf2out_imported_module_or_decl): Likewise.
282 (gen_subprogram_die): Modify for new file data structures.
283 (gen_variable_die): Likewise.
284 (file_table_eq): New.
285 (file_table_hash): New.
286 (file_table_last_lookup): New.
287 (lookup_filename): Rewrite to handle new file data structures.
288 (maybe_emit_file): Rewrite to handle new file data structures.
289 (dwarf2out_source_line): Always call lookup_filename and
291 (dwarf2out_init): Create file_table here.
292 (prune_unused_types_walk_attribs): Don't call maybe_emit_file here.
293 (file_table_relative_p): New.
294 (dwarf2out_finish): Change detection of relative filenames
295 to work with new file data structures. Move output_line_info call
296 after debug_info output.
298 2006-09-11 H.J. Lu <hongjiu.lu@intel.com>
303 * config/i386/i386.c (override_options): Always default to 16
306 2006-09-11 Alexandre Oliva <aoliva@redhat.com>
309 * var-tracking.c (dump_dataflow_set): Start dumping at
311 (clobber_variable_part): Kill only the variable part in
312 registers holding it, leaving other variables alone.
314 2006-09-11 Josh Triplett <josh@freedesktop.org>
316 * doc/extend.texi (Other Builtins): Actually use the macro
317 argument in the documentation example for
318 __builtin_types_compatible_p.
320 2006-09-11 Eric Botcazou <ebotcazou@libertysurf.fr>
322 PR rtl-optimization/28726
323 * sched-deps.c (sched_analyze_reg): New function extracted from...
324 (sched_analyze_1): ...here. Call it to analyze references to
325 registers. Treat again writes to a stack register as writing to the
327 (sched_analyze_2): ...and here. Call it to analyze references to
328 registers. Treat again reads of a stack register as reading the
331 2006-09-11 Guenter Roeck <guenter@roeck-us.net>
332 David Edelsohn <edelsohn@gnu.org>
335 * config/rs6000/spe.md (frob_df_di): Remove %H.
336 (frob_di_df): Remove %H. Change evmergelo to mr.
337 (frob_di_df_2): Remove %H. Change evldd to two loads.
339 2006-09-11 Hideki Iwamoto <h-iwamoto@kit.hi-ho.ne.jp>
341 * doc/cpp.texi: Fix names of charset options.
343 2006-09-10 Andrew Pinski <pinskia@physics.uc.edu>
346 * config/i386/i386.c (override_options): Use 128-bit
347 stack boundary always for 64bits.
349 2006-09-10 Eric Botcazou <ebotcazou@libertysurf.fr>
351 PR rtl-optimization/28636
352 * combine.c (force_to_mode): Test for side-effects before
353 substituting by zero.
354 (simplify_shift_const): Likewise for zero or other constants.
356 2006-09-10 Steven Bosscher <steven@gcc.gnu.org>
359 * builtins.c (expand_builtin_setjmp): Force next_lab to be
362 2006-09-10 Richard Sandiford <richard@codesourcery.com>
365 * config/mips/mips-protos.h (mips_mem_fits_mode_p): Declare.
366 * config/mips/mips.c (mips_expand_unaligned_store): Use the mode
367 returned by mode_for_size, rather than the mode of src itself,
368 to choose between 32-bit and 64-bit patterns.
369 (mips_mem_fits_mode_p): New function.
370 * config/mips/mips.md (mov_<load>l, mov_<load>r): Use it to check
371 that the size of the source matches the size of the destination.
372 (mov_<store>l, mov_<store>r): Likewise.
374 2006-09-10 Eric Christopher <echristo@apple.com>
376 * config/darwin.c (machopic_select_rtx_section): Add CONST_VECTOR
379 2006-09-09 Eric Christopher <echristo@apple.com>
382 * config/darwin.c (machopic_select_rtx_section): Add TARGET_64BIT
385 2006-09-09 Roger Sayle <roger@eyesopen.com>
386 Nicolas Setton <setton@adacore.com>
388 * dwarf2out.c (convert_cfa_to_fb_loc_list): Handle DW_CFA_set_loc.
390 2006-09-10 Andreas Schwab <schwab@suse.de>
392 * config/m68k/m68k.md (bungt_rev): New pattern.
394 2006-09-09 Paolo Bonzini <bonzini@gnu.org>
395 Dale Johannesen <dalej@apple.com>
398 * regclass.c (struct reg_pref): Update documentation.
399 (regclass): Set prefclass to NO_REGS if memory is the best option.
400 (record_reg_classes): Cope with a prefclass set to NO_REGS.
402 2006-09-08 Eric Christopher <echristo@apple.com>
404 * config.gcc (i?86-*-darwin): Add 64-bit HWI support.
405 * config/t-slibgcc-darwin: Support x86_64 multilib.
406 * config/i386/i386.h (JUMP_TABLES_IN_TEXT_SECTION):
407 Return 1 for x86_64-darwin.
408 * config/i386/t-darwin: Add m64 multilib.
409 (LIB2_SIDITI_CONV_FUNCS): Use.
410 (LIB2FUNCS_EXTRA): Ditto.
411 * config/i386/darwin.h: Support x86_64.
412 * config/i386/i386.c (override_options): Turn on flag_pic
413 for x86_64-darwin. Disable flag_omit_pointer.
414 (get_pc_thunk_name): Assert !TARGET_64BIT.
415 (legitimate_address_p): Disable machopic addressing for
417 (legitimize_pic_address): Ditto.
418 (ix86_expand_move): Ditto.
419 (ix86_expand_call): Ditto.
420 (machopic_output_stub): Ditto.
421 * config/darwin.c (machopic_select_section): Support literal16.
422 (machopic_select_rtx_section): Ditto.
423 * config/darwin-sections.def: Ditto.
424 * config/darwin-64.c: New.
426 2006-09-08 Joseph S. Myers <joseph@codesourcery.com>
429 * c-tree.h (struct c_arg_info): Add pending_sizes.
430 * c-parser.c (c_parser_parms_declarator,
431 c_parser_parms_list_declarator): Initialize pending_sizes.
432 * c-decl.c (get_parm_info): Initialize pending_sizes.
433 (get_parm_info): Set pending_sizes.
434 (grokdeclarator): Call put_pending_sizes for parameters for
435 function definition only.
437 2006-09-07 Jason Merrill <jason@redhat.com>
440 * varasm.c (output_constant): Only strip actual no-op conversions.
443 * config/i386/i386.c (override_options): Use 128-bit
444 stack boundary if -msse.
446 2006-09-07 Eric Christopher <echristo@apple.com>
448 * config/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Update
450 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE):
453 2006-09-07 Geoffrey Keating <geoffk@apple.com>
455 * dwarf2out.c: Remove strange characters from comment above
456 dwarf2out_frame_debug_expr.
458 2006-09-07 Eric Christopher <echristo@apple.com>
460 * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Move from here...
461 * config/darwin.h: ... to here.
463 2006-09-07 H.J. Lu <hongjiu.lu@intel.com>
465 * config/i386/i386.c (x86_partial_flag_reg_stall): New.
467 * config/i386/i386.h (x86_partial_flag_reg_stall): New.
468 (TARGET_PARTIAL_FLAG_REG_STALL): New.
470 * config/i386/i386.md (*ashldi3_cmp_rex64): Disabled for
471 TARGET_PARTIAL_FLAG_REG_STALL.
472 (*ashldi3_cconly_rex64): Likewise.
473 (*ashlsi3_cmp): Likewise.
474 (*ashlsi3_cconly): Likewise.
475 (*ashlsi3_cmp_zext): Likewise.
476 (*ashlhi3_cmp): Likewise.
477 (*ashlhi3_cconly): Likewise.
478 (*ashlqi3_cmp): Likewise.
479 (*ashlqi3_cconly): Likewise.
480 (*ashrdi3_cmp_rex64): Likewise.
481 (*ashrdi3_cconly_rex64): Likewise.
482 (*ashrsi3_cmp): Likewise.
483 (*ashrsi3_cconly): Likewise.
484 (*ashrsi3_cmp_zext): Likewise.
485 (*ashrhi3_cmp): Likewise.
486 (*ashrhi3_cconly): Likewise.
487 (*ashrqi3_cmp): Likewise.
488 (*ashrqi3_cconly): Likewise.
489 (*lshrdi3_cmp_rex64): Likewise.
490 (*lshrdi3_cconly_rex64): Likewise.
491 (*lshrsi3_cmp): Likewise.
492 (*lshrsi3_cconly): Likewise.
493 (*lshrsi3_cmp_zext): Likewise.
494 (*lshrhi3_cmp): Likewise.
495 (*lshrhi3_cconly): Likewise.
496 (*lshrqi2_cmp): Likewise.
497 (*lshrqi2_cconly): Likewise.
499 2006-09-07 Uros Bizjak <uros@kss-loka.si>
502 * config/i386/i386.md ("*ashldi3_cconly_rex64", "*ashlsi3_cconly",
503 "*ashlhi3_cconly", "*ashlqi3_cconly", "*ashrdi3_one_bit_cconly_rex64",
504 "*ashrdi3_cconly_rex64", "*ashrsi3_one_bit_cconly", "*ashrsi3_cconly",
505 "*ashrhi3_one_bit_cconly", "*ashrhi3_cconly",
506 "*ashrqi3_one_bit_cconly", "*ashrqi3_cconly",
507 "*lshrdi3_cconly_one_bit_rex64", "*lshrdi3_cconly_rex64",
508 "*lshrsi3_one_bit_cconly", "*lshrsi3_cconly",
509 "*lshrhi3_one_bit_cconly", "*lshrhi3_cconly",
510 "*lshrqi2_one_bit_cconly", "*lshrqi2_cconly": New patterns to
511 implement only CC setting effects of shift instructions.
513 2006-09-07 Martin Michlmayr <tbm@cyrius.com>
515 * doc/contrib.texi: Add myself.
517 2006-09-07 Andrew Pinski <pinskia@physics.uc.edu>
520 * stor-layout.c (relayout_decl): Don't zero the alignment if it
523 2006-09-07 Paolo Bonzini <bonzini@gnu.org>
526 * config/sh/sh.md (divsi_inv_qitable, divsi_inv_hitable): New patterns.
527 (divsi_inv_m1): Use them.
528 (UNSPEC_DIV_INV_TABLE): New constant.
530 2006-09-06 James E Wilson <wilson@specifix.com>
533 * flow.c (update_life_info): If UPDATE_LIFE_LOCAL and PROP_DEATH_NOTES
534 then call count_or_remove_death_notes.
536 2006-09-06 Jason Merrill <jason@redhat.com>
539 * tree-inline.c (copy_result_decl_to_var): New fn.
540 (declare_return_variable): Use it. Call declare_inline_vars here.
541 (expand_call_inline): Not here.
543 2006-09-06 Diego Novillo <dnovillo@redhat.com>
545 * doc/contrib.texi: Update my entry.
547 2006-09-06 Nick Clifton <nickc@redhat.com>
549 * config/frv/frv.h (EXTRA_MEMORY_CONSTRAINT): Define.
551 2006-09-05 Andrew Pinski <pinskia@physics.uc.edu>
554 * tree-flow.h (tree_ssa_unswitch_loops): Return unsigned int.
555 (canonicalize_induction_variables): Likewise.
556 (tree_unroll_loops_completely): Likewise.
557 (tree_ssa_prefetch_arrays): Likewise.
558 (remove_empty_loops): Likewise.
559 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Return
560 TODO_cleanup_cfg instead of directly calling
561 cleanup_tree_cfg_loop.
562 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
564 (tree_unroll_loops_completely): Likewise.
565 (remove_empty_loops): Likewise.
566 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
567 * tree-ssa-loop.c (tree_ssa_loop_unswitch): Use the return value
568 of tree_ssa_unswitch_loops.
569 (tree_ssa_loop_ivcanon): Use the return value of
570 canonicalize_induction_variables.
571 (tree_ssa_empty_loop): Use the return value of
573 (tree_complete_unroll): Use the return value of
574 tree_unroll_loops_completely.
575 (tree_ssa_loop_prefetch): Use the return value of
576 tree_ssa_prefetch_arrays.
577 * passes.c (execute_todo): Before Cleanup CFG, set
578 updating_used_alone and after cleanup CFG, call
579 recalculate_used_alone.
581 2006-09-05 Andrew Pinski <pinskia@physics.uc.edu>
584 * tree-vect-transform.c (vectorizable_condition): Move the check
585 for the type after the check for simple condition.
587 2006-09-05 J"orn Rennecke <joern.rennecke@st.com>
588 Kaz Kojima <kkojima@gcc.gnu.org>
591 * mode-switching.c (optimize_mode_switching): Make the destination
592 block of an abnormal edge have no anticipatable mode. Don't
593 insert mode switching code at the end of the source block of
596 2006-09-05 Paolo Bonzini <bonzini@gnu.org>
598 PR rtl-optimization/26847
599 * simplify-rtx.c (struct simplify_plus_minus_op_data): Remove ix.
600 (simplify_plus_minus_op_data_cmp): For REGs, break ties on the regno.
601 (simplify_plus_minus): Count n_constants while filling ops. Replace
602 qsort with insertion sort. Before going through the array to simplify
603 pairs, sort it. Delay early exit until after the first sort, exiting
604 only if no swaps occurred. Simplify pairs in reversed order, without
605 special-casing the first iteration. Pack ops after simplifying pairs.
607 2006-09-05 Anatoly Sokolov <aesok@post.ru>
609 * config/avr/avr.c (avr_mcu_types): Add support for at90pwm1 device.
610 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
611 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
612 (avr_rtx_costs): Mark 'outer_code' argument with ATTRIBUTE_UNUSED.
614 2006-09-05 Richard Guenther <rguenther@suse.de>
616 PR tree-optimization/28900
617 * tree-if-conv.c (find_phi_replacement_condition): Gimplify
618 compound conditional before creating COND_EXPR condition.
620 2006-09-05 Richard Guenther <rguenther@suse.de>
622 PR tree-optimization/28905
623 * tree-vrp.c (fix_equivalence_set): Manually implement
624 !value_ranges_intersect_p to also handle symbolic ranges.
626 2006-09-05 Richard Guenther <rguenther@suse.de>
629 * tree-ssa-ccp.c (fold_stmt_r): Make sure to fold the condition
632 2006-09-04 Eric Botcazou <ebotcazou@libertysurf.fr>
634 PR rtl-optimization/27616
635 * cse.c (table_size): New static variable.
636 (new_basic_block): Initialize it to 0.
637 (remove_from_table): Decrement it.
638 (insert): Increment it.
639 (fold_rtx_mem_1): New function, renamed from fold_rtx_mem.
640 (fold_rtx_mem): Enforce a cap on the recursion depth. Call
641 fold_rtx_mem_1 if under the cap.
642 (fold_rtx) <RTX_COMM_ARITH>: In the associative case, delay a little
643 the lookup of the equivalent expression and test for equality of the
644 first operand of the equivalent expression before in turn looking up
645 an equivalent constant for the second operand.
647 2006-09-02 Geoffrey Keating <geoffk@apple.com>
650 2006-03-17 Alexandre Oliva <aoliva@redhat.com>
651 * dwarf2out.c (dwarf2out_stack_adjust): Always track the stack
652 pointer, instead of assuming it is possible to derive the
653 correct args size from a call insn.
655 2006-09-02 Jakub Jelinek <jakub@redhat.com>
658 * builtins.c (fold_builtin_memcpy, fold_builtin_memmove): Remove.
659 (fold_builtin_mempcpy): Rename to...
660 (fold_builtin_memory_op): ... this. Optimize one element copy
662 (fold_builtin_memset, fold_builtin_bzero, fold_builtin_bcopy): New
664 (expand_builtin_strcpy, expand_builtin_strncpy): Handle COMPOUND_EXPR.
665 (expand_builtin_memcpy, expand_builtin_mempcpy,
666 expand_builtin_memmove): Likewise. Use fold_builtin_memory_op.
667 (fold_builtin_1): Handle BUILT_IN_MEMSET, BUILT_IN_BZERO and
668 BUILT_IN_BCOPY. Use fold_builtin_memory_op for
669 BUILT_IN_MEM{CPY,PCPY,MOVE}.
671 2006-09-01 DJ Delorie <dj@redhat.com>
673 * config/m32c/cond.md (cbranch<mode>4): Defer splitting until after reload.
675 ("stzx_24_<mode>"): Likewise.
676 ("stzx_reversed_<mode>"): Likewise, and make mode-specific.
677 ("cmp<mode>_op"): New.
678 (cmp<mode>): Change to expander; just save operands.
680 (b<code>): Change to expander, emit compare here.
681 (s<code>_op): Change to use split and expander.
682 (s<code>_24_op): Likewise.
683 (s<code>_<mode>): New.
684 (s<code>_<mode>_24): New.
685 (movqicc_<code>_<mode): New.
686 (movhicc_<code>_<mode>): New.
689 * config/m32c/m32c.c (compare_op0, compare_op1): New.
690 (m32c_pend_compare): New.
691 (m32c_unpend_compare): New.
692 (m32c_expand_scc): New.
693 (m32c_expand_movcc): Emit the compare also.
694 * config/m32c/predicates.md (mra_nopp_operand): New.
696 2006-09-01 J"orn Rennecke <joern.rennecke@st.com>
697 Richard Guenther <rguenther@suse.de>
698 Adam Nemet <anemet@caviumnetworks.com>
701 * builtins.c (get_pointer_alignment): Handle more forms
702 of base addresses that can be used to derive more precise
703 information about alignment.
705 2006-09-01 Jason Merrill <jason@redhat.com>
708 * gimplify.c (gimplify_modify_expr_rhs) [BIND_EXPR]: Handle
711 * gimplify.c (voidify_wrapper_expr): Handle null type.
713 2006-09-01 Josh Conner <jconner@apple.com>
716 * tree-nrv.c (dest_safe_for_nrv_p): New function.
717 (execute_return_slot_opt): Use it.
719 2006-08-31 Josh Conner <jconner@apple.com>
722 * tree-gimple.c (is_gimple_mem_rhs): Recognize functions
723 returning aggregates.
725 2006-08-31 Zdenek Dvorak <dvorakz@suse.cz>
727 PR tree-optimization/28839
728 * tree-into-ssa.c (prune_unused_phi_nodes): Take into account kills in
729 blocks in that phi arguments appear.
731 2006-08-31 Roger Sayle <roger@eyesopen.com>
734 * dwarf2out.c (add_fde_cfi): Use a set_loc if the current label is
735 NULL, otherwise use an advance_loc4 to adjust relative to the
737 (output_cfi) <DW_CFA_set_loc>: Update the current label.
738 (dwarf2out_switch_text_section): Reset the current label to avoid
739 using advance_loc4 over section boundaries.
741 2006-08-31 Andreas Krebbel <krebbel1@de.ibm.com>
744 * config/s390/s390.md ("movsi", "movdi" expander): Accept rtxes like
745 r12 + SYMBOLIC_CONST.
747 2006-08-30 Richard Guenther <rguenther@suse.de>
749 * Makefile.in (see.o): Add $(EXPR_H) dependency.
751 2006-08-30 Zdenek Dvorak <dvorakz@suse.cz>
753 PR rtl-optimization/27735
754 * cfgloopmanip.c (fix_loop_placements, fix_bb_placements, unloop):
755 Add new argument to keep track of whether an irreducible region
756 was affected. All callers changed.
757 (fix_irreducible_loops): Removed.
758 (remove_path): Call mark_irreducible_loops if EDGE_IRREDUCIBLE_LOOP
759 flags were invalidated.
761 2006-08-29 H.J. Lu <hongjiu.lu@intel.com>
763 * config/i386/i386.md (*fop_df_comm_mixed): Match DF operands
764 instead of SF operands.
765 (*fop_df_comm_sse): Likewise.
766 (*fop_df_comm_i387): Likewise.
767 (*fop_df_1_mixed): Likewise.
768 (*fop_df_1_sse): Likewise.
770 2006-08-29 Andrew Pinski <pinskia@physics.uc.edu>
771 J"orn Rennecke <joern.rennecke@st.com>
773 PR tree-optimization/17506
774 * tree-ssa.c (warn_uninit): If warning about a location outside of
775 the current function, note where the variable was declared.
777 2006-08-28 Zdenek Dvorak <dvorakz@suse.cz>
779 PR tree-optimization/28411
780 * double-int.c (double_int_div): Use double_int_divmod.
781 (double_int_divmod, double_int_sdivmod, double_int_udivmod,
782 double_int_mod, double_int_smod, double_int_umod): New functions.
783 * double-int.h (double_int_divmod, double_int_sdivmod,
784 double_int_udivmod, double_int_mod, double_int_smod, double_int_umod):
786 * tree-ssa-loop-ivopts.c (constant_multiple_of): Returns the result
788 (get_computation_aff, get_computation_cost_at): Handle double_int
789 return type of constant_multiple_of.
791 2006-08-28 Kazu Hirata <kazu@codesourcery.com>
794 * convert.c (convert_to_integer): Set TREE_NO_WARNING to 1 on
795 an implicit conversion.
797 2006-08-28 Prafulla Thakare <prafullat@kpitcummins.com>
799 * config/h8300/h8300.c (TARGET_DEFAULT_TARGET_FLAGS): New.
801 2006-08-27 Roger Sayle <roger@eyesopen.com>
803 * ifcvt.c (cheap_bb_rtx_cost_p): Don't speculatively execute
806 2006-08-27 Kazu Hirata <kazu@codesourcery.com>
808 * config/i386/crtfastmath.c: Fix a comment typo.
810 2006-08-26 Roger Sayle <roger@eyesopen.com>
812 * tree.h (CASE_LOW_SEEN, CASE_HIGH_SEEN): New macros for manipulating
813 temporary visit flags on CASE_LABEL_EXPRs.
814 * c-common.c (match_case_to_enum): Add function comment. Avoid
815 O(N) loop, by looking up both CASE_LOW_SEEN and CASE_HIGH_SEEN.
816 (c_do_switch_warnings): Reorganize to record CASE_LOW_SEEN and
817 CASE_HIGH_SEEN for enumerated types. If the switch expression is
818 a constant, only warn if that constant value isn't handled.
820 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
823 * input.h (restore_input_file_stack): Declare.
824 (INPUT_FILE_STACK_BITS): Define.
825 * toplev.c (fs_p, input_file_stack_history,
826 input_file_stack_restored, restore_input_file_stack): New.
827 (push_srcloc, pop_srcloc): Check for input_file_stack_tick
828 overflowing INPUT_FILE_STACK_BITS bits. Save new state of stack.
829 (pop_srcloc): Don't free old state of stack.
831 2006-08-26 David Edelsohn <edelsohn@gnu.org>
834 * doc/extend.texi (PowerPC Variable Attributes): Mention altivec.
835 (PowerPC Type Attributes): New.
837 2006-08-26 Bob Wilson <bob.wilson@acm.org>
839 * config/xtensa/xtensa.c (function_arg_boundary): New.
840 (function_arg, xtensa_gimplify_va_arg_expr): Limit alignment to
842 * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Move code to new
843 function_arg_boundary function that limits alignment to STACK_BOUNDARY.
845 2006-08-26 Jakub Jelinek <jakub@redhat.com>
848 * cfgexpand.c (add_reg_br_prob_note): Check if last has exactly
851 2006-08-25 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
853 * flow.c (verify_wide_reg): Use internal_error for consistency failure.
854 (verify_local_live_at_start): Likewise.
856 2006-08-25 Joseph S. Myers <joseph@codesourcery.com>
859 * gimplify.c (gimplify_decl_expr, gimplify_init_ctor_preeval,
860 omp_add_variable): Treat sizes as variable whenever not
863 2006-08-26 Richard Guenther <rguenther@suse.de>
866 * fold-const.c (fold_binary): Fold temporary to correct
867 type before constructing new comparison.
869 2006-08-25 Fariborz Jahanian <fjahanian@apple.com>
872 * c-gimplify.c (gimplify_compound_literal_expr): Don't add
873 variable again if DECL_SEEN_IN_BIND_EXPR_P.
875 2006-08-25 Joseph S. Myers <joseph@codesourcery.com>
878 * c-decl.c (start_function): Don't try to process prototype
879 information from old declaration that isn't a function.
881 2006-08-25 Jan Hubicka <jh@suse.cz>
884 * config/i386/crtfastmath.c (set_fast_math): Force stack alignment.
886 2006-08-25 Alan Modra <amodra@bigpond.net.au>
889 * config/rs6000/rs6000.c (print_operand): Only use e500 %y syntax
892 2006-08-25 J"orn Rennecke <joern.rennecke@st.com>
894 PR tree-optimization/16876
895 * c-typeck.c (c_convert_parm_for_inlining): Don't take early
896 exit if PARM doesn't match VALUE.
898 2006-08-25 Bob Wilson <bob.wilson@acm.org>
900 * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Do not emit a
901 literal_prefix directive.
902 (XTENSA_DECLARE_FUNCTION_SIZE): Delete.
903 * config/xtensa/linux.h (ASM_DECLARE_FUNCTION_SIZE): Delete.
904 * config/xtensa/elf.h (ASM_DECLARE_FUNCTION_SIZE): Delete.
906 2006-08-25 David Edelsohn <edelsohn@gnu.org>
909 * config/rs6000/rs6000.md (movcc_internal1): Change operand 1
910 predicate to general_operand. Add 0->y and I->r alternatives.
912 2006-08-25 Kazu Hirata <kazu@codesourcery.com>
914 * doc/tm.texi: Fix a typo.
915 * predict.c: Fix comment typos.
917 2006-08-25 Nick Clifton <nickc@redhat.com>
919 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
920 assertions of "cpu" and "machine".
922 2006-08-24 Andrew Pinski <pinskia@physics.uc.edu>
925 * tree-ssa-operands.c (access_can_touch_variable): Don't say
926 the access through a base which has an alias set of 0 cannot
929 2006-08-24 Bill Wendling <wendling@apple.com>
931 * doc/tm.texi (TARGET_DEFAULT_PACK_STRUCT): Fixed English.
933 2006-08-24 Jan Hubicka <jh@suse.cz>
935 * reload1.c (emit_reload_insns): Fix yet another typo in my patch.
937 2006-08-24 Jan Hubicka <jh@suse.cz>
940 * cgraph.c: Fix comments.
941 (cgraph_varpool_mark_needed_node): Mark only variables not already
943 * cgraphunit.c: Update comments; include gt-cgraphunit.h
944 (cgraph_varpool_assembled_nodes_queue): New static variable.
945 (cgraph_varpool_assemble_decl): Record output decls for debug out code.
946 (cgraph_varpool_output_debug_info): New function.
947 (cgraph_finalize_compilation_unit, cgraph_optimize): Call it.
948 * Makefile.in: Add gt-cgraphunit.h
950 2006-08-24 Jan Hubicka <jh@suse.cz>
952 * predict.c (probability_reliable_p): New predicate.
953 (edge_probability_reliable_p, br_prob_note_reliable_p): Likewise.
954 (predict_loops): Do not predict loop exit with less than 2%
956 * basic-block.h (edge_probability_reliable_p,
957 br_prob_note_reliable_p): Declare.
958 * ia64.h (ia64_print_operand): Do not disable on-chip branch
959 prediction when static predictor is not reliable.
960 * rs6000.c (output_cbranch): Likewise.
962 2006-08-23 Stuart Hastings <stuart@apple.com>
965 * gcc/config/i386/i386.c (ix86_expand_vector_init_duplicate,
966 ix86_expand_vector_init_one_nonzero): Remove TARGET_SSE test.
968 2006-08-21 Geoffrey Keating <geoffk@apple.com>
971 * dwarf2out.c (rtl_for_decl_init): Don't try to create RTL for
972 complex values, nor for generic vector values.
974 2006-08-22 Richard Guenther <rguenther@suse.de>
977 * tree-scalar-evolution.c (fold_used_pointer): Add at_stmt
978 parameter. Convert arguments to arithmetic expression to the
980 (analyze_scalar_evolution_1): Adjust caller.
982 2006-08-22 Jan Hubicka <jh@suse.cz>
984 Patch by Paolo Bonzini
985 * reload1.c (emit_reload_insns): Fix incorrect bracketing introduced by
988 2006-08-22 Daniel Berlin <dberlin@dberlin.org>
990 PR tree-optimization/28003
991 * tree-ssa-alias.c (compute_may_aliases): Compute call clobbered
992 before grouping aliases.
994 2006-08-22 Roger Sayle <roger@eyesopen.com>
996 * config/i386/i386.c (ix86_value_regno): Don't return FIRST_MMX_REG
997 if !TARGET_MMX, and don't return FIRST_SSE_REG if !TARGET_SSE.
999 2006-08-21 Jason Merrill <jason@redhat.com>
1002 * gimplify.c (voidify_wrapper_expr): Handle STATEMENT_LIST as a
1003 wrapper. Loop to handle nested wrappers.
1004 (gimplify_bind_expr): Remove temp parameter.
1005 (gimplify_modify_expr_rhs): Handle CLEANUP_POINT_EXPR, BIND_EXPR
1006 and STATEMENT_LIST on the rhs.
1007 (gimplify_statement_list): Voidify the STATEMENT_LIST.
1008 (gimplify_expr): Pass pre_p to gimplify_statement_list.
1009 (gimplify_target_expr): Remove special BIND_EXPR handling.
1011 2006-08-21 J"orn Rennecke <joern.rennecke@st.com>
1013 * config/sh/lib1funcs-Os-4-200.asm: Guard entire file with
1016 2006-08-21 Olivier Hainque <hainque@adacore.com>
1018 * gimplify.c (gimplify_init_constructor) <RECORD,UNION,ARRAY types>:
1019 Arrange for the temporary captures of components overlapping the lhs
1020 to happen before the lhs is possibly cleared.
1022 2006-08-21 Mark Shinwell <shinwell@codesourcery.com>
1024 * config/arm/pr-support.c (__gnu_unwind_execute): Insert " + 1" in
1025 necessary places to pass the correct "number of registers" values
1028 2006-08-20 Jan Hubicka <jh@suse.cz>
1030 * tree-ssa-alias.c (eq_ptr_info, ptr_info_hash): New function.
1031 (create_name_tags): Instead of quadratic checking use hashtable.
1032 * bitmap.h: Include hashtab.h.
1033 (bitmap_hash): Declare.
1034 * bitmap.c (bitmap_hash): New function.
1036 2006-08-20 Jan Hubicka <jh@suse.cz>
1038 PR rtl-optimization/28071
1039 * tree-optimize.c (tree_rest_of_compilation): Do not remove edges
1041 * tree-inline.c (copy_bb): Use cgraph_set_call_stmt.
1042 * ipa-inline.c (cgraph_check_inline_limits): Add one_only argument.
1043 (cgraph_decide_inlining, cgraph_decide_inlining_of_small_function,
1044 cgraph_decide_inlining_incrementally): Update use of
1045 cgraph_check_inline_limits.
1046 * cgraph.c (edge_hash, edge_eq): New function.
1047 (cgraph_edge, cgraph_set_call_stmt, cgraph_create_edge,
1048 cgraph_edge_remove_caller, cgraph_node_remove_callees,
1049 cgraph_remove_node): Maintain call site hash.
1050 * cgraph.h (struct cgraph_node): Add call_site_hash.
1051 (cgraph_set_call_stmt): New function.
1053 2006-08-20 Jan Hubicka <jh@suse.cz>
1055 PR rtl-optimization/28071
1056 * reload1.c (reg_has_output_reload): Turn into regset.
1057 (reload_as_needed, forget_old_reloads_1, forget_marked_reloads,
1058 choose_reload_regs, emit_reload_insns): Update to new
1059 reg_has_output_reload.
1061 2006-08-20 Jan Hubicka <jh@suse.cz>
1064 * ipa-inline.c (cgraph_decide_inlining, cgraph_early_inlining): Compute
1065 function body sizes.
1066 * cgraphunit.c (cgraph_analyze_function): Don't do so.
1068 2006-08-20 Danny Smith <dannysmith@users.sourceforge.net>
1071 * tree.c (handle_dll_attribute): Return early if not a
1072 var or function decl.
1074 2006-08-18 Joseph Myers <joseph@codesourcery.com>
1077 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): For SPE, only adjust
1078 alignment of SPE vector types.
1080 2006-08-18 Christophe Jaillet <christophe.jaillet@wanadoo.fr>
1082 * tree.c (is_attribute_with_length_p): Remove a duplicated assert.
1084 2006-08-17 Jakub Jelinek <jakub@redhat.com>
1087 * cgraph.h (struct cgraph_node): Remove externally_visible
1089 * cgraphunit.c (process_function_and_variable_attributes): Set
1090 local.externally_visible rather than externally_visible.
1093 * c-common.c (handle_externally_visible_attribute): First look
1094 at TREE_CODE and only if it is function or var decl, check for
1095 non-public objects. Don't warn for DECL_EXTERNAL.
1096 * cgraphunit.c (process_function_and_variable_attributes): Warn
1097 if externally_visible attribute is used on non-public object.
1099 2006-08-17 Jan Hubicka <jh@suse.cz>
1101 PR tree-optimization/27865
1102 * reload1.c (forget_marked_reloads): New function.
1103 (forget_old_reloads_1): When data are passed, just mark the registers
1105 (reload_as_needed): Use the new mechanizm.
1107 2006-08-17 Alexandre Oliva <aoliva@redhat.com>
1110 * reload.h (reg_equiv_alt_mem_list): New declaration.
1111 * reload1.c (reg_equiv_alt_mem_list): New definition.
1112 (reload): Initialize it and release it.
1113 (delete_output_reload): Use it.
1114 * reload.c (push_reg_equiv_alt_mem): New function.
1115 (find_reloads_toplev): Call it.
1116 (find_reloads_address, find_reloads_address_1): Likewise.
1117 (find_reloads_subreg_address): Likewise.
1119 2006-08-17 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1121 PR rtl-optimization/28489
1122 * sched-ebb.c (begin_schedule_ready): Create basic block
1124 (advance_target_bb): Skip empty blocks.
1125 * haifa-sched.c (bb_note): Make global.
1126 * sched-int.h (bb_note): Add prototype.
1128 2006-08-16 Zdenek Dvorak <dvorakz@suse.cz>
1130 PR tree-optimization/27865
1131 * tree-vrp.c (adjust_range_with_scev): Do not use TYPE_{MIN,MAX}_VALUE
1133 * tree-scalar-evolution.c (fold_used_pointer_cast, pointer_offset_p,
1134 fold_used_pointer, pointer_used_p): New functions.
1135 (analyze_scalar_evolution_1): Use fold_used_pointer.
1136 * tree-chrec.c (convert_affine_scev): Convert no-op casts correctly.
1137 * tree-ssa-loop-ivopts.c (generic_type_for): Return integral type
1140 2006-08-17 Paolo Bonzini <bonzini@gnu.org>
1143 * c-common.c (fold_offsetof_1): Add an argument and recurse down to it
1144 or the INTEGER_CST. Fail on a CALL_EXPR.
1145 (fold_offsetof): Pass new argument to fold_offsetof_1.
1146 * c-parser.c (c_parser_postfix_expression): Don't include a NULL
1147 operand into an INDIRECT_REF.
1148 * c-typeck.c (build_unary_op): Adjust call to fold_offsetof.
1150 2006-08-16 Zdenek Dvorak <dvorakz@suse.cz>
1152 PR gcov/profile/26570
1153 * value-prof.c (static_values): Removed.
1154 (tree_find_values_to_profile): Do not set static_values.
1155 (find_values_to_profile): Do not free static_values.
1156 * profile.c (instrument_values): Do not free the values.
1157 (branch_prob): Free the values.
1159 2006-08-16 Naveen.H.S <naveenh@kpitcummins.com>
1161 * config/m32c/m32c_lib1.S (__mulsi3): Use only registers for dest.
1163 2006-08-16 Joseph S. Myers <joseph@codesourcery.com>
1166 * c-typeck.c (build_component_ref): Combine qualifiers of
1167 structure or union and field.
1169 2006-08-16 Zdenek Dvorak <dvorakz@suse.cz>
1171 PR rtl-optimization/28071
1172 * basic-block.h (bb_dom_dfs_in, bb_dom_dfs_out): Declare.
1173 * dominance.c (bb_dom_dfs_in, bb_dom_dfs_out): New functions.
1174 * tree-into-ssa.c (struct dom_dfsnum): New.
1175 (cmp_dfsnum, find_dfsnum_interval, prune_unused_phi_nodes): New
1177 (insert_phi_nodes_for): Use prune_unused_phi_nodes instead of
1178 compute_global_livein.
1179 (prepare_block_for_update, prepare_use_sites_for): Mark the uses
1180 in phi nodes in the correct blocks.
1182 2006-08-16 Zdenek Dvorak <dvorakz@suse.cz>
1184 PR tree-optimization/28364
1185 * tree-ssa-loop-ivopts.c (aff_combination_to_tree): Handle zero
1187 (fold_affine_expr): New function.
1188 (may_eliminate_iv): Use fold_affine_expr.
1190 2006-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1193 * c-typeck.c (c_start_case): Handle invalid orig_type correctly.
1196 2006-08-16 Mike Stump <mrs@apple.com>
1198 * doc/invoke.texi (-Wno-deprecated-declarations): Fixup use of pxref.
1199 * doc/cppopts.texi (-MD): Likewise.
1201 2006-08-15 Danny Smith <dannysmith@users.sourceforge.net>
1204 * c-common.c (handle_weak_attribute): Ignore and warn if
1205 not a FUNCTION_ or VAR_DECL.
1207 2006-07-15 Mike Stump <mrs@apple.com>
1210 * c-parser.c (c_parser_typeof_specifier): Don't use
1211 c_finish_expr_stmt, open code desired semantics instead.
1213 2006-08-15 Nick Clifton <nickc@redhat.com>
1215 * config.gcc (x86-mingw32): Add a gthr-win32.h including makefile
1216 fragment to tmake_file only if threads are enabled.
1217 * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Move to...
1218 * config/i386/t-gthr-win32: New file. ... here.
1220 2006-08-15 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1223 * c-parser.c (c_parser_compound_statement_nostart): Reset
1224 parser->error after each statement.
1226 2006-08-15 Jakub Jelinek <jakub@redhat.com>
1229 * omp-low.c (lower_omp_parallel): Convert t to
1230 receiver_decl's type.
1231 (expand_omp_parallel): STRIP_NOPS from the MODIFY_EXPR
1232 source before comparison.
1235 * gimplify.c (gimplify_omp_atomic_pipeline): Convert oldival
1236 to itype in assignment to oldival2.
1238 2006-07-14 Andrew Pinski <pinksia@physics.uc.edu>
1242 * c-typeck.c (build_compound_expr): If the second expression
1243 is an error mark, then just return an error mark instead of
1244 creating a COMPOUND_EXPR.
1246 2006-07-14 Mike Stump <mrs@apple.com>
1248 * Makefile.in (LIBGCC_DEPS): Don't depend on LANGUAGES.
1250 2006-08-14 Kazu Hirata <kazu@codesourcery.com>
1252 * c-decl.c, var-tracking.c: Fix comment typos.
1254 2006-08-14 Richard Sandiford <richard@codesourcery.com>
1256 PR rtl-optimization/28634
1257 * reorg.c (fill_slots_from_thread): Do not assume A + X - X == A
1258 for floating-point modes unless flag_unsafe_math_optimizations.
1260 2006-08-13 Alexandre Oliva <aoliva@redhat.com>
1261 Andrew Pinski <pinskia@physics.uc.edu>
1264 * tree.c (build_array_type): Unify array types with
1265 unspecified index_type.
1266 * c-decl.c (grokdeclarator): Make sure we do not modify a
1267 unified incomplete array type.
1268 * c-typeck.c (store_init_value): Create distinct type before
1269 filling in the index type in an initializer from a compound
1272 * c-decl.c (grokdeclarator): Remove code where we copy the
1275 2006-08-13 Andrew Pinski <pinskia@physics.uc.edu>
1277 * tree-pass.h (TODO_update_ssa): Fix which bit is used to take
1278 into account for TODO_dump_cgraph.
1279 (TODO_update_ssa_no_phi): Likewise.
1280 (TODO_update_ssa_full_phi): Likewise.
1281 (TODO_update_ssa_only_virtuals): Likewise.
1282 (TODO_remove_unused_locals): Likewise.
1283 (TODO_set_props): Likewise.
1284 (TODO_update_stmt_usage): Likewise.
1286 2006-08-13 Dirk Mueller <dmueller@suse.de>
1288 * c-common.c (strict_aliasing_warning): Fix formatting.
1290 2006-08-13 Matthias Klose <doko@debian.org>
1292 * doc/invoke.texi: Fix spelling errors.
1294 2006-08-11 Eric Botcazou <ebotcazou@libertysurf.fr>
1296 PR rtl-optimization/23454
1297 * reorg.c (relax_delay_slots): Update comment.
1299 2006-08-11 Richard Guenther <rguenther@suse.de>
1302 * simplify-rtx.c (simplify_const_relational_operation):
1303 Simplify A CMP B to A - B CMP 0 only for EQ and NE comparison
1306 2006-08-10 Eric Botcazou <ebotcazou@adacore.com>
1308 * tree.c (build1_stat): Also propagate the TREE_CONSTANT and
1309 TREE_INVARIANT flags for a VIEW_CONVERT_EXPR.
1311 2006-08-10 Paul Brook <paul@codesourcery.com>
1313 * final.c (final_scan_insn): Clear current_insn_predicate before
1314 outputting inline asm.
1316 2006-08-10 Dorit Nuzman <dorit@il.ibm.com>
1318 PR tree-optimization/26197
1319 * tree-ssa-alias.c (new_type_alias): Takes additional argument. Calls
1320 get_ref_base_and_extent and overlap_subvar to add only relevant
1321 subvars as may-aliases.
1322 (add_may_alias_for_new_tag): New function, factored out of
1324 * tree-vect-transform.c (vect_create_data_ref_ptr): Call new_type_alias
1325 with additional argument.
1326 * tree-flow.h (new_type_alias): Takes additional argument.
1328 2006-08-09 Nathan Sidwell <nathan@codesourcery.com>
1330 * gcov.c (no_data_file): New flag.
1331 (read_count_file): Set it if data file not present. Assume counts
1333 (output_lines): Don't name the data file, if there wasn't one.
1335 2006-08-09 Eric Botcazou <ebotcazou@adacore.com>
1337 * config/rs6000/rs6000.c (print_operand) <D>: Fix comment and adjust.
1338 (rs6000_generate_compare): Tweak comments.
1339 * config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Fix comment.
1341 2006-08-09 Alexandre Oliva <aoliva@redhat.com>
1343 * var-tracking.c (enum micro_operation_type): Add MO_COPY.
1344 (var_debug_decl): New function.
1345 (var_reg_set): Follow debug decl link. Add location even if
1346 reg is already known to hold some other variable.
1347 (var_mem_set): Follow debug decl link.
1348 (var_reg_delete_and_set, var_mem_delete_and_set): Follow debug
1349 decl link. Delete other known locations of the variable part
1351 (var_reg_delete, var_mem_delete): Delete other known locations
1352 of the variable part if requested.
1353 (same_variable_part_p): New function.
1354 (add_stores): Select MO_COPY when appropriate.
1355 (vt_initialize): Handle it.
1356 (compute_bb_dataflow, emit_notes_in_bb): Likewise. Delete
1357 known locations for MO_SET and MO_CLOBBER.
1358 (find_variable_location_part): New function.
1359 (set_variable_part, delete_variable_part): Use it.
1360 (clobber_variable_part): New function.
1361 * dwarf2out.c (dwarf2out_var_location): Do not follow debug
1364 2006-08-07 Victor Kaplansky <victork@il.ibm.com>
1366 PR tree-optimization/26969
1367 * tree-vect-analyze.c (vect_analyze_loop_form): Add check of latch
1368 with an empty list of PHIs.
1370 2006-08-06 Paolo Bonzini <bonzini@gnu.org>
1374 * conffig/i386/i386.md: Add peephole2 to avoid "fld %st"
1377 2006-08-06 Andreas Schwab <schwab@suse.de>
1379 * config/m68k/m68k.c (m68k_output_function_epilogue): Fix format
1380 string. Whitespace and comment fixup.
1382 2006-08-05 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1385 * c-decl.c (validate_proto_after_old_defn): Return false on invalid
1389 * c-typeck.c (build_modify_expr): Test earlier for non-lvalues.
1392 * c-parser.c (c_parser_postfix_expression_after_paren_type): Robustify.
1394 2006-08-04 Jan Hubicka <jh@suse.cz>
1398 * reload.c (push_reload): Patch out the mismatching instruction;
1400 (find_reload): Bail out if the instruction was patched out.
1402 2006-08-04 Jan Hubicka <jh@suse.cz>
1404 PR tree-optimization/24888
1405 * tree-inline.c (expand_call_inline): Do not re-record variables.
1406 (declare_inline_vars): Add variable to unexpanded_var_list.
1408 2006-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1409 Roger Sayle <roger@eyesopen.com>
1411 PR rtl-optimization/26244
1412 * cse.c (fold_rtx): Correctly associate shifts when const_arg1 and/or
1413 inner_const are negative or greater than or equal to the bitsize of
1414 MODE. If SHIFT_COUNT_TRUNCATED is false, the values aren't associated.
1415 Otherwise, the values are masked using GET_MODE_BITSIZE (mode) - 1.
1416 Simplify complicated if statement. For ASHIFT and LSHIFTRT, return
1417 CONST0_RTX (mode) when the new shift count is greater than or equal to
1418 to the bitsize of the object being shifted and XEXP (y, 0) has no side
1421 2006-08-04 Kazu Hirata <kazu@codesourcery.com>
1423 * tree-cfg.c: Fix a comment typo.
1425 2006-08-03 Mark Mitchell <mark@codesourcery.com>
1428 * varasm.c (output_constant): Give the front end another chance to
1429 expand constants, after stripping NOPs.
1431 2006-08-03 Jan Hubicka <jh@suse.cz>
1433 * domwalk.c (walk_dominator_tree): Reorganize to non-recursive
1436 2006-08-03 Dorit Nuzman <dorit@il.ibm.com>
1438 PR tree-optimization/27770
1439 * tree-vectorizer.h (get_vectype_for_scalar_type): Function
1440 declaration removed (moved to tree-flow.h).
1441 (vect_can_force_dr_alignment_p): Likewise.
1442 * tree-flow.h (get_vectype_for_scalar_type): New function declaration
1443 (moved from tree-vectorizer.h).
1444 (vect_can_force_dr_alignment_p): Likewise.
1445 * tree-vectorizer.c (vect_print_dump_info): Allow calling this function
1446 from outside the vectorizer - in particular from cgraph stage.
1447 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Don't increase
1448 the alignment of global arrays when -fsection-anchors is enabled.
1449 * cgraphunit.c (cgraph_increase_alignment): New function.
1450 (cgraph_optimize): Call cgraph_increase_alignment.
1452 2006-08-03 David Edelsohn <edelsohn@gnu.org>
1455 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
1456 not reload a SPE symbol_ref into a lo_sum address.
1458 2006-08-02 Daniel Jacobowitz <dan@codesourcery.com>
1461 * dwarf2out.c (prune_unused_types_prune): Move call to
1462 prune_unused_types_update_strings to cover the parent DIE also.
1464 2006-08-02 Jan Hubicka <jh@suse.cz>
1466 PR gcov/profile/28480
1467 * tree-cfg.c (change_bb_for_stmt): New function.
1468 (tree_merge_blocks, tree_split_blocks): Use it.
1470 2006-08-01 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1476 * toplev.c (compile_file): Return early on errorcount or sorrycount.
1477 * cgraphunit.c (cgraph_finalize_compilation_unit): Likewise.
1478 (cgraph_optimize): Likewise.
1480 2006-08-01 Stuart Hastings <stuart@apple.com>
1482 * rtl.h (UINTVAL) New.
1483 * config/rs6000/rs6000.c (SMALL_INT) Use it.
1484 * testsuite/gcc.dg/20060801-1.c: New.
1486 2006-08-01 Daniel Jacobowitz <dan@codesourcery.com>
1489 * c-typeck.c (build_external_type): Mark used enum types.
1490 * dwarf2out.c (dwarf2out_abstract_function): Save and restore
1492 (gen_subprogram_die): Whitespace fix.
1494 2006-08-01 Jan Hubicka <jh@suse.cz>
1496 * tree-outof-ssa.c (check_replaceable): Do not allocate def_vars
1497 bitmap when not needed.
1498 * tree-ssa-pre.c (bitmap_set_and, bitmap_set_and_compl): Free temporary
1501 2006-08-01 Dirk Mueller <dmueller@suse.de>
1503 * tree-vrp.c (fix_equivalence_set): Avoid bitmap memory leak.
1505 2006-07-31 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1507 * Makefile.in: Revert part of previous patch:
1508 Replace $(VARRAY_H) by varray.h in definition of BASIC_BLOCK_H
1511 2006-07-30 Eric Christopher <echristo@apple.com>
1514 * doc/extend.texi (i386 Variable Attributes): Add anchor.
1515 (PowerPC Variable Attributes): New section.
1517 2006-07-30 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
1519 PR target/28126 (partial fix)
1520 * config/mips/mips.md (tls_get_tp_<mode>): Set can_delay to no.
1522 2006-07-28 Jan Hubicka <jh@suse.cz>
1524 PR rtl-optimization/28071
1525 * cfgrtl.c (rtl_delete_block): Free regsets.
1526 * flow.c (allocate_bb_life_data): Re-use regsets if available.
1528 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1530 * Makefile.in: Use $(HEADER_H) instead of header.h in dependencies
1531 and variables used in dependencies.
1533 2006-07-27 Arjan van de Ven <arjan@linux.intel.com>
1535 * config/i386/i386.md (stack_tls_protect_set_di) Use %gs rather than
1536 %fs for -mcmodel=kernel.
1537 (stack_tls_protect_test_di): Likewise.
1539 2006-07-27 Carlos O'Donell <carlos@codesourcery.com>
1541 * Makefile.in: Use mkinstalldirs.
1543 2006-07-27 H.J. Lu <hongjiu.lu@intel.com>
1546 * opts-common.c (prune_options): Skip joined switches.
1548 2006-07-27 Jan Hubicka <jh@suse.cz>
1550 PR rtl-optimization/28071
1551 * cselib.c (cselib_process_insn): Don't remove useless values too
1552 often for very large hashtables.
1554 2006-07-27 Jan Hubicka <jh@suse.cz>
1556 PR rtl-optimization/28071
1557 * global.c (greg_obstack): New obstack.
1558 (allocate_bb_info): Use it.
1559 (free_bb_info): Likewise.
1560 (modify_reg_pav): Likewise.
1562 2006-07-27 Roger Sayle <roger@eyesopen.com>
1564 * builtins.c (fold_fixed_mathfn): When long and long long are the
1565 same size, canonicalize llceil*, llfloor*, llround* and llrint*
1566 functions to their lceil*, lfloor*, lround* and lrint* forms.
1568 2006-07-27 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1571 * config/m32r/m32r.md (branch_insn): Reduce pc range for short
1573 (rev_branch_insn): Likewise.
1575 2006-07-27 Jan Hubicka <jh@suse.cz>
1577 PR rtl-optimization/28071
1578 * regmove.c (reg_is_remote_constant_p): Avoid quadratic behaviour.
1579 (reg_set_in_bb, max_reg_computed): New static variables.
1580 (regmove_optimize): Free the new array.
1581 (fixup_match_1): Update call of reg_is_remote_constant_p.
1583 2006-07-26 Jan Hubicka <jh@suse.cz>
1585 PR tree-optimization/27882
1586 * cgraph.c (cgraph_remove_node): Clear needed, reachable, next, previous
1588 * cgraphunit.c (cgraph_reset_node): Expect cgraph_remove_node to kill
1590 (cgraph_analyze_compilation_unit): Likewise.
1591 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
1592 * ipa-inline.c (cgraph_decide_recursive_inlining): Likewise.
1593 (cgraph_early_inlinine): Make order garbage collected.
1594 * Makefile.in (gt-ipa-inline): New garbagecollected file.
1596 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
1598 * dbxout.c (output_types_sort): Add a comment.
1599 (output_used_types): Free the VEC.
1601 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
1603 * function.c (reorder_fix_fragments): Delete.
1604 (reorder_blocks): Don't call it.
1605 (reorder_blocks_1): Put all subblocks under the origin block.
1607 2006-07-26 Zdenek Dvorak <dvorakz@suse.cz>
1609 PR rtl-optimization/27907
1610 * expr.c (force_operand): Use convert_move to handle FLOAT_EXTEND and
1613 2006-07-25 Roger Sayle <roger@eyesopen.com>
1616 * convert.c (convert_to_integer): When transforming (T)foo(x) into
1617 bar(x) check that bar's result type can represent all the values of T.
1619 2006-07-25 Zdenek Dvorak <dvorakz@suse.cz>
1621 * tree-chrec.c (chrec_convert_aggressive): Return NULL on failure.
1623 2006-07-25 Nick Clifton <nickc@redhat.com>
1625 * ggc-page.c (NUM_SIZE_LOOKUP): New constant - the length of the
1626 size_lookup[] array.
1627 (ggc_alloc_stat): Use NUM_SIZE_LOOKUP.
1628 (ggc_pch_count_object): Likewise.
1629 (ggc_pch_alloc_object): Likewise.
1630 (ggc_pch_write_object): Likewise.
1631 (init_ggc): Do not attempt to initialize entries in the
1632 size_lookup[] array for objects whose size is greater than than
1633 the length of the array.
1635 2006-07-25 Daniel Jacobowitz <dan@codesourcery.com>
1637 * dbxout.c (output_used_types_helper): Push queued types
1639 (output_types_sort): New.
1640 (output_used_types): Collect used types on a VEC and sort them
1643 2006-07-24 Richard Guenther <rguenther@suse.de>
1646 * cgraph.c (cgraph_remove_node): Do not check if dumps
1648 * cgraphunit.c (cgraph_optimize): Likewise.
1650 2006-07-24 Jan Hubicka <jh@suse.cz>
1652 PR rtl-optimization/28071
1653 * tree-cfg.c (tree_split_block): Do not allocate new stmt_list nodes.
1654 * tree-iterator.c (tsi_split_statement_list_before): Do not crash when
1655 splitting before first stmt.
1657 2006-07-24 Jan Hubicka <jh@suse.cz>
1659 PR rtl-optimization/28071
1660 * ipa-inline.c (update_caller_keys): Remove edges that
1661 are no longer inline candidates.
1663 2006-07-23 Daniel Jacobowitz <dan@codesourcery.com>
1666 * dbxout.c (output_used_types_helper, output_used_types): New.
1667 (dbxout_symbol): Call output_used_types.
1669 2006-07-23 Jan Hubicka <jh@suse.cz>
1673 * cgraph.c (cgraph_varpool_nodes): Export.
1674 (decide_is_variable_needed): Ignored "used" attribute in
1675 unit-at-a-time mode.
1676 * cgraph.h (cgraph_varpool_nodes): Declare.
1677 * cgraphunit.c (decide_is_function_needed): Ignored "used" attribute in
1678 unit-at-a-time mode.
1680 2006-07-23 Roger Sayle <roger@eyesopen.com>
1683 * gthr-solaris.h: Prototype __gthrw forms of thr_self, mutex_init and
1684 mutex_destroy even when !_LIBOOBJC. Remove duplicate prototype of
1685 the __gthrw form of thr_keycreate.
1686 (__gthread_key_delete): Silence the unused argument warning.
1688 2006-07-23 Steven Bosscher <steven@gcc.gnu.org>
1691 * config/elfos.h (ASM_OUTPUT_ASCII): Remove 'register' marks.
1692 Cache the last found '\0' marker to avoid quadratic behavior.
1694 2006-07-23 Jan Hubicka <jh@suse.cz>
1696 * i386.md (subsi_3_zext): Fix output template.
1698 2006-07-21 Mike Stump <mrs@apple.com>
1700 * doc/invoke.texi (C++ Dialect Options): Note that
1701 -fvisibility-inlines-hidden doesn't affect explicitly
1702 instantiationed inline methods.
1704 2006-07-20 Roger Sayle <roger@eyesopen.com>
1706 * config.gcc (i[34567]86-*-solaris2*): Add usegas.h to $tm_file
1707 if the target assembler is GNU binutils' gas.
1708 * config/i386/sol2-10.h (ASM_SPEC): Check USE_GAS to determine
1709 whether to pass GNU gas or native as command line options.
1711 2006-07-20 Jason Merrill <jason@redhat.com>
1713 * tree.c (remove_attribute): New fn.
1714 * tree.h: Declare it.
1716 2006-07-20 Paul Brook <paul@codesourcery.com>
1719 * cse.c (cse_insn): Add destination addresses to hash table. Check if
1720 they are invalidated by this instruction.
1722 2006-07-21 Danny Smith <dannysmith@users.sourceforge.net>
1725 * config/i386/cygming.h (MAX_OFILE_ALIGNMENT): Define.
1727 2006-07-20 Eric Christopher <echristo@apple.com>
1730 * config/i386/i386.h (OPTION_DEFAULT_SPECS): Reorder.
1732 2006-07-19 Eric Christopher <echristo@apple.com>
1734 * config/t-slibgcc-darwin (stmp-lipo): Remove.
1735 Rewrite dependencies for libgcc_s.1.dylib.
1737 2006-07-19 Jakub Jelinek <jakub@redhat.com>
1739 * except.c (duplicate_eh_regions_1): Clear next_peer.
1741 2006-07-17 Nathan Sidwell <nathan@codesourcery.com>
1743 * doc/invoke.texi (RS/6000 and PowerPC Options): Document that
1744 -mlongcall does not guarantee all calls will be long.
1745 * doc/extend.texi (long_call/short_call): Document that longcall
1746 does not guarantee a long call will be used.
1747 (longcall/shortcall): Likewise.
1749 2006-07-18 Roger Sayle <roger@eyesopen.com>
1752 * expmed.c (expand_shift): Additionally check that the shift_cost
1753 is not MAX_COST and that INTVAL(op1) is less than MAX_BITS_PER_WORD
1754 before implementing a LSHIFT_EXPR as a sequence of additions.
1755 * config/sh/sh.c (shift_costs): Return MAX_COST to inform the
1756 middle-end that DImode shifts need to be synthesized by expand.
1758 2006-07-18 Diego Novillo <dnovillo@redhat.com>
1761 * tree-ssa-operands.c (access_can_touch_variable): Update
1763 Return true if ALIAS is .GLOBAL_VAR.
1765 2006-07-18 David Daney <ddaney@avtrex.com>
1767 * gcc.c (display_help): Fix typo in help text.
1769 2006-07-18 Olivier Hainque <hainque@adacore.com>
1771 * tree.h (categorize_ctor_elements): Adjust prototype and add
1772 descriptive comment, both in accordance with the interface change
1774 * varasm.c (constructor_static_from_elts_p): New function.
1775 Whether a constructor node is a valid static constant initializer
1776 if all its elements are.
1777 (initializer_constant_valid_p) <CONSTRUCTOR value>: Use it.
1778 * output.h: Declare it.
1779 * expr.c (categorize_ctor_elements_1): Return whether the constructor
1780 is a valid constant initializer instead of computing the number of
1781 non-constant elements. Use constructor_static_from_elts_p for this
1782 purpose. Replace the head comment with an indication that this is a
1783 helper for categorize_ctor_elements.
1784 (categorize_ctor_elements): Same interface change as for the _1
1785 helper. Former head comment from this helper moved here, adjusted to
1786 account for the interface changes.
1787 (mostly_zeros_p): Adjust call to categorize_ctor_elements.
1788 (all_zeros_p): Likewise.
1789 * gimplify.c (gimplify_init_constructor): Decide whether we can make
1790 static versions of the constructor from the categorize_ctor_elements
1791 return value instead of the formerly computed number of non-constant
1794 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
1796 * configure: Regenerate.
1797 * Makefile.in (build_libsubdir): New configure substitution
1798 (build_libobjdir): New variable.
1799 (BUILD_LIBIBERTY): Use it.
1801 2006-07-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1804 * c-pragma.c (handle_pragma_pack): Handle invalid constants.
1806 2006-07-18 Alexandre Oliva <aoliva@redhat.com>
1809 * c-common.c (handle_weakref_attribute): Ignore attribute in
1810 the same conditions the alias attribute is ignored.
1812 2006-07-17 Carlos O'Donell <carlos@codesourcery.com>
1814 * dbxout.c (dbxout_function_end): Do not increment scope_labelno.
1815 (dbxout_begin_prologue): Increment scope_labelno.
1817 2006-07-17 Richard Henderson <rth@redhat.com>
1820 * tree-nested.c (create_tmp_var_for): Set DECL_COMPLEX_GIMPLE_REG_P
1823 2006-07-17 Roger Sayle <roger@eyesopen.com>
1824 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1826 * config/i386/gmon-sol2.c: Silence compilation warnings by partially
1827 synchronizing code with config/sparc/gmon-sol2.c. Remove #if 0
1828 blocks. #include "tconfig.h" and "tsystem.h" to prototype system
1829 functions such as sbrk, write, etc.. Add function prototypes.
1830 Convert function declarations from K&R to ISO C. Cast pointers
1831 to "long" and "unsigned long" instead of "int" and "unsigned int".
1832 Convert tokens following #endif into comments.
1834 2006-07-17 Toon Moene <toon@moene.indiv.nluug.nl>
1836 * invoke.texi: Remove mention of f77; Reformat table for
1837 inline parameter options correctly; mention that -malign-double
1838 is default on x86-64 targets.
1840 2006-07-17 Zdenek Dvorak <dvorakz@suse.cz>
1842 * tree-chrec.c (avoid_arithmetics_in_type_p): New.
1843 (convert_affine_scev, chrec_convert_aggressive): Use
1844 avoid_arithmetics_in_type_p. Do not check for the subtypes
1847 2006-07-17 Richard Sandiford <richard@codesourcery.com>
1850 * optabs.c (expand_doubleword_shift): Wrap the call to
1851 do_compare_rtx_and_jump with NO_DEFER_POP and OK_DEFER_POP.
1853 2006-07-17 Richard Sandiford <richard@codesourcery.com>
1856 * optabs.c (expand_binop): Pass next_methods rather than methods
1857 to expand_doubleword_shift.
1859 2006-07-17 J"orn Rennecke <joern.rennecke@st.com>
1862 * tree.h (dump_addr): Declare.
1863 * print-tree.c (dump_addr): New function.
1864 (print_node_brief, print_node): Use it.
1865 * print-rtl.c (print_rtx): Likewise.
1866 * common.opt (-fdump-noaddr): New option.
1867 * doc/invoke.texi (-fdump-noaddr): Document.
1868 * loop-unroll.c (si_info_hash): Make hash independent of addresses.
1869 (ve_info_hash): Likewise.
1871 2006-07-13 Andrew Haley <aph@redhat.com>
1873 PR tree-optimization/19505
1874 * tree-cfgcleanup.c (tree_forwarder_block_p): If we have an EH
1875 edge leaving this block, make sure that the destination of this
1876 block has only one predecessor.
1878 2006-07-17 Richard Guenther <rguenther@suse.de>
1880 PR tree-optimization/28238
1881 * tree-inline.c (copy_bb): Check if we produced valid
1882 gimple copying and substituting a stmt. If not, gimplify
1885 2006-07-16 Eric Botcazou <ebotcazou@adacore.com>
1887 * optabs.c (maybe_encapsulate_block): New function extracted from...
1888 (emit_libcall_block): ...here. Invoke it on the block of insns to
1889 maybe emit REG_LIBCALL/REG_RETVAL notes around the block.
1890 (emit_no_conflict_block): Likewise.
1892 2006-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
1894 * doc/install.texi (sparc-sun-solaris2*): Add GMP version number.
1896 2006-07-15 Roger Sayle <roger@eyesopen.com>
1898 * tree-gimple.c (is_gimple_stmt): Sink test of IS_EMPTY_STMT into
1899 a new NOP_EXPR case of the switch statement.
1901 2006-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
1904 * stor-layout.c (place_field): Take the bit field with
1905 an excessive size into account in the ms-bitfiled case.
1908 * stor-layout.c (place_field): Use DECL_BIT_FIELD_TYPE of
1909 the previous bit field.
1911 2006-07-14 Eliot Dresselhaus <eliot@sonic.net>
1914 * config/rs6000/spe.md (frob_di_df_2): Add m->r alternative.
1916 2006-07-14 Ulrich Weigand <uweigand@de.ibm.com>
1918 * config/s390/linux-unwind.h (s390_fallback_frame_state): Detect
1919 signal frames correctly even when the signal was installed with
1922 2006-07-14 Carlos O'Donell <carlos@codesourcery.com>
1924 * dbxout.c (dbxout_begin_prologue): Emit LFBB label at function start.
1925 (dbxout_function_end): Use local label LFBB. Remove hook
1927 (dbxout_source_line): Use local label LFBB.
1928 (dbxout_block): Likewise.
1929 (dbx_output_lbrac): Remove hook DBX_OUTPUT_LBRAC.
1930 (dbx_output_rbrac): Remove hook DBX_OUTPUT_RBRAC.
1931 * config/rs6000/linux64.h: Remove DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC,
1932 and DBX_OUTPUT_NFUN.
1934 2006-07-13 Janis Johnson <janis187@us.ibm.com>
1936 * doc/sourcebuild.texi (Test Directives): Document dg-shouldfail.
1938 2006-07-13 Jan Hubicka <jh@suse.cz>
1940 * cgraphunit.c (cgraph_varpool_analyze_pending_decls): Call
1942 * output.h (align_variable): Declare.
1943 * varasm.c (align_variable): Export.
1944 * value-prof.c (tree_value_profile_transformations): Recompute iterator
1945 when basic block changed.
1947 2006-07-13 Nick Clifton <nickc@redhat.com>
1949 * config/sh/sh.c (sh_reorg): Ignore deleted insns whilst
1950 walking the LOG_LINKS chain.
1952 2006-07-12 Geoffrey Keating <geoffk@apple.com>
1954 * doc/invoke.texi (C++ Dialect Options): Explain difference
1955 between -fvisibility-inlines-hidden and setting hidden
1956 visibility explicitly.
1958 2006-07-12 Eric Christopher <echristo@apple.com>
1960 * config/t-slibgcc-darwin (SHLIB_LINK): Don't munge stmp-lipo.
1961 (stmp-lipo): Depend on libgcc.a.
1963 2006-07-12 Kazu Hirata <kazu@codesourcery.com>
1965 * tree.c: Fix a comment typo.
1967 2006-07-12 Naveen.H.S <naveenh@kpitcummins.com>
1969 * config/m32c/muldiv.md (umulhisi3_c): Use only registers for
1971 (umulhisi3_r): Likewise.
1973 2006-07-12 Paolo Carlini <pcarlini@suse.de>
1976 * doc/install.texi (mips-sgi-irix6): Add note about IRIX 6.5.x,
1977 x < 19, vs wchar_t support.
1979 2006-07-12 Nick Clifton <nickc@redhat.com>
1981 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Use -isa=sh4-up
1982 instead of -isa=sh4.
1984 2006-07-12 Mike Stump <mrs@apple.com>
1986 * protoize.c (edit_fn_definition): Add volatile to clean_text_p.
1988 2006-07-10 Eric Christopher <echristo@apple.com>
1990 * config/t-slibgcc-darwin: Rewrite.
1992 2006-07-10 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1995 * Makefile.in (configure): add missing aclocal.m4 and acinclude.m4
1998 2006-07-08 Matthias Klose <doko@debian.org>
2000 * doc/sourcebuild.texi: Fix typo.
2002 2006-07-07 Mike Stump <mrs@apple.com>
2004 * toplev.c (process_options): Don't give -ffunction-sections may
2005 affect debugging warning for Mach-O.
2007 2006-07-07 James E Wilson <wilson@specifix.com>
2009 * config/mips/mips.md (cpu): Add sb1a.
2010 * config/mips/sb1.md: Modify almost all patterns to accept sb1a in
2011 addition to sb1. Adjust comments to clarify SB-1A differences from
2013 (ir_sb1a_load): New. Modify bypasses to use it.
2014 (ir_sb1a_simple_alu): Likewise.
2015 * config/mips/mips.c (mips_cpu_info_table): Add sb1a.
2016 (mips_rtx_cost_data): Add PROCESSOR_SB1A support.
2017 (mips_issue_rate): Add PROCESSOR_SB1A.
2018 (mips_multipass_dfa_lookahead): Use TUNE_SB1 instead of PROCESSOR_SB1.
2019 * config/mips/mips.h (processor_type): Add PROCESSOR_SB1A.
2020 (TARGET_SB1): Add PROCESSOR_SB1A check.
2021 (TUNE_SB1): Likewise.
2023 * config/mips/mips-protos.h (mips_store_data_bypass_p): New.
2024 * config/mips/mips.c (mips_store_data_bypass_p): New.
2025 * config/mips/sb1.md: Use mips_store_data_bypass_p instead of
2026 store_data_bypass_p.
2028 2006-07-08 Paul Brook <paul@codesourcery.com>
2031 * config/m68k/m68k.md: Add r-m patterns for 68881 movxf.
2033 2006-07-07 Richard Guenther <rguenther@suse.de>
2036 * tree.h (build_one_cst): Declare.
2037 * tree.c (build_one_cst): New function.
2038 * tree-ssa-math-opts.c (get_constant_one): Remove.
2039 (insert_reciprocals): Use build_one_cst.
2040 * fold-const.c (fold_plusminus_mult): Likewise.
2042 2006-07-07 Roger Sayle <roger@eyesopen.com>
2044 * pointer-set.c (pointer_set_destroy): Correct whitespace.
2045 * cfgloopanal.c (dump_graph): Likewise.
2046 * dojump.c (discard_pending_stack_adjust): Likewise.
2047 * fix-header.c (TARGET_EXTRA_INCLUDE, TARGET_EXTRA_PRE_INCLUDES):
2049 * alloc-pool.c (dump_alloc_pool_statistics): Likewise.
2050 * function.c (finalize_block_changes): Likewise.
2051 * gcc-common.c (ggc_free_overhead, dump_gcc_loc_statistics): Likewise.
2052 * tree-ssa-dce.c (clear_control_dependence_bitmap): Likewise.
2053 * rtl.c (dump_rtx_statistics): Likewise.
2054 * tree-ssa-structalias.c (sort_fieldstack, init_alias_heapvars):
2056 * varray.c (dump_varray_statistics): Likewise.
2057 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
2058 decode_decimal64, encode_decimal128, decode_decimal128,
2059 decimal_real_to_decimal): Likewise.
2061 2006-07-07 Richard Guenther <rguenther@suse.de>
2063 PR tree-optimization/28187
2064 * tree-vrp.c (vrp_operand_equal_p): New function.
2065 (vrp_bitmap_equal_p): Likewise.
2066 (update_value_range): Use them to compare old and new
2069 2006-07-06 Roger Sayle <roger@eyesopen.com>
2071 * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Add
2072 a default case to switch statement to silence compiler warnings.
2074 2006-07-06 Roger Sayle <roger@eyesopen.com>
2077 * configure.ac (HAVE_AS_IX86_FFREEP): On x86 targets check whether
2078 the configured assembler supports the x87's ffreep mnemonic.
2079 * configure: Regenerate.
2080 * config.in: Regenerate.
2082 * config/i386/i386.c (output_387_ffreep): New function.
2083 (output_fp_compare): Use output_387_ffreep to emit ffreep insns.
2084 (output_387_reg_move): Likewise.
2086 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
2088 Port to hosts whose 'sort' and 'tail' implementations
2089 treat operands with leading '+' as file names, as POSIX
2090 has required since 2001. However, make sure the code still
2091 works on pre-POSIX hosts.
2092 * Makefile.in (slowcompare): Port to POSIX 1003.1-2001,
2093 which says you should use "tail -c +N" rather than "tail +Nc".
2094 Fix a bug: the old code incorrectly skipped 15 bytes, not 16.
2096 2006-07-06 Zdenek Dvorak <dvorakz@suse.cz>
2098 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Fix typo in
2101 2006-07-06 David Edelsohn <edelsohn@gnu.org>
2104 * config/rs6000/rs6000.c (rs6000_legitimate_address): Do not allow
2105 PRE_{INC,DEC} of TFmode.
2107 2006-07-06 David Edelsohn <edelsohn@gnu.org>
2108 Alan Modra <amodra@bigpond.net.au>
2111 * config/rs6000/rs6000.c (insvdi_rshift_rlwimi_p): Correct shiftop
2114 2006-07-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2117 * config/alpha/predicates.md (alpha_swapped_comparison_operator):
2118 Remove duplicate gtu.
2120 2006-07-05 Jason Merrill <jason@redhat.com>
2124 * stor-layout.c (finish_record_layout): Copy TYPE_PACKED to variants.
2125 * c-common.c (handle_packed_attribute): So don't copy it here.
2126 * c-decl.c (finish_struct): Don't copy TYPE_ALIGN.
2128 2006-07-05 Mike Stump <mrs@apple.com>
2130 * doc/invoke.texi (Invoking G++): Clarify prose for g++.
2132 2006-07-05 H.J. Lu <hongjiu.lu@intel.com>
2135 * config.gcc: Check with_cpu for i[34567]86--*-solaris2.1[0-9]*.
2137 2006-07-05 Richard Guenther <rguenther@suse.de>
2140 * config/i386/i386.md (*negdf2_1): Restrict pattern to
2141 TARGET_SSE2 targets if using SSE math.
2142 (*absdf2_1): Likewise.
2144 2006-07-05 Richard Guenther <rguenther@suse.de>
2146 PR tree-optimization/28162
2147 * fold-const.c (fold_binary): For (-A) * (-B) -> A * B
2148 make sure to convert the operands to the correct type.
2150 2006-07-04 Paolo Bonzini <bonzini@gnu.org>
2152 PR tree-optimization/28218
2154 * tree-ssa-math-opts.c (execute_cse_reciprocals): Fix calls
2155 to calculate and free the dominator information.
2157 2006-07-04 Peter O'Gorman <peter@pogma.com>
2159 * mklibgcc.in: chmod 644 before ranlib during install.
2161 2006-07-04 Andrew Stubbs <andrew.stubbs@st.com>
2162 J"orn Rennecke <joern.rennecke@st.com>
2164 * configure.ac (.eh_frame data check): Use diff -b.
2166 2006-07-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2169 * Makefile.in (BUILD_RTL): Add build/vec.o.
2170 (build/gencondmd.o): Filter out -fkeep-inline-functions.
2171 (build/genextract): Delete.
2172 (build/genautomata): Likewise.
2174 2006-07-04 Alan Modra <amodra@bigpond.net.au>
2177 * config/rs6000/rs6000.c (function_arg_boundary): Double-word align
2178 128-bit IBM long doubles for ABI_V4.
2180 2006-07-03 Eric Botcazou <ebotcazou@adacore.com>
2182 * tree.c (range_in_array_bounds_p): New predicate.
2183 * tree.h (range_in_array_bounds_p): Declare it.
2184 * tree-eh.c (tree_could_trap_p) <ARRAY_RANGE_REF>: Use it to
2185 return a less conservative answer.
2186 * tree-sra.c (struct sra_elt): Add new pointer field 'groups'
2187 and flag 'is_group'.
2188 (IS_ELEMENT_FOR_GROUP): New macro.
2189 (FOR_EACH_ACTUAL_CHILD): Likewise.
2190 (next_child_for_group): New helper function.
2191 (can_completely_scalarize_p): Take into account groups.
2192 (sra_hash_tree): Handle RANGE_EXPR.
2193 (sra_elt_eq): Likewise.
2194 (lookup_element): Be prepared for handling groups.
2195 (is_valid_const_index): Delete.
2196 (maybe_lookup_element_for_expr) <ARRAY_REF>: Use in_array_bounds_p
2197 instead of is_valid_const_index.
2198 <ARRAY_RANGE_REF>: New case.
2199 (sra_walk_expr) <ARRAY_REF>: Use in_array_bounds_p instead of
2200 is_valid_const_index.
2201 <ARRAY_RANGE_REF>: Do not unconditionally punt.
2202 (scan_dump): Dump info for groups too.
2203 (decide_instantiation_1): Likewise.
2204 (decide_block_copy): Assert that the element is not a group.
2205 Propagate decision to groups.
2206 (generate_one_element_ref): Handle RANGE_EXPR.
2207 (mark_no_warning): Iterate over actual childs.
2208 (generate_copy_inout): Likewise.
2209 (generate_element_copy): Likewise.
2210 (generate_element_zero): Likewise.
2211 (generate_element_init_1): Likewise.
2212 (dump_sra_elt_name): Handle RANGE_EXPR.
2214 2006-07-03 Roger Sayle <roger@eyesopen.com>
2216 PR tree-optimization/26251
2217 * tree-ssa-threadupdate.c (redirection_block_p): New function.
2218 (thread_block): When optimizing for size refuse to thread jumps
2219 that would require duplication of blocks other than redirection
2222 2006-07-03 Paolo Bonzini <bonzini@gnu.org>
2224 * configure.ac: Fix thinko in previous check-in.
2225 * configure: Regenerate.
2227 2006-07-03 Paolo Bonzini <bonzini@gnu.org>
2230 * configure.ac (for lang...): Simplify nesting of conditionals.
2231 Test subdir_requires for non-enabled languages. Move processing
2232 of lang_opt_files and lang_tree_fiels below that test.
2233 * configure: Regenerate.
2234 * doc/sourcebuild.texi (Front End Config): Document subdir_requires.
2236 2006-07-01 Martin Michlmayr <tbm@cyrius.com>
2238 * doc/gcov.texi (Invoking Gcov): Add a missing word.
2240 2006-06-30 Kazu Hirata <kazu@codesourcery.com>
2242 * cfgexpand.c, config/i386/i386.c, genpreds.c, tree-cfg.c: Fix
2245 2006-06-29 Jason Merrill <jason@redhat.com>
2252 * tree.c (build_decl_stat): Don't hande #pragma visibility here.
2253 * c-common.c (c_determine_visibility): Handle it here.
2254 * c-decl.c (finish_decl): Call c_determine_visibility for
2256 * flags.h (enum symbol_visibility): Sort from most to least visibility.
2258 * varasm.c (default_assemble_visibility): Likewise.
2259 * c-common.c (handle_visibility_attribute): Complain about trying
2260 to give visibility to an already defined class, or trying to change
2261 declared visibility. Always attach the attribute.
2266 * attribs.c (decl_attributes): Ignore type-in-place attributes
2267 once the type has been defined.
2269 2006-06-29 Roger Sayle <roger@eyesopen.com>
2272 * c-lex.c (c_lex_with_flags) <CPP_N_INVALID>: Increment errorcount
2273 to indicate the cpplib has issued an error message for us.
2275 2006-06-29 Asher Langton <langton2@llnl.gov>
2278 * config/i386/i386.c (ix86_output_function_epilogue): Don't
2279 insert a label at the end of an function under Mach-O.
2281 2006-06-29 Eric Christopher <echristo@apple.com>
2282 Evan Cheng <evan.cheng@apple.com>
2284 * predicates.md (vector_all_ones_operand): New.
2285 (nonimmediate_or_sse_const_operand): Ditto.
2286 * config/i386/i386-protos.h (standard_sse_constant_opcode): Declare.
2287 * config/i386/i386.c (standard_sse_constant_opcode): Define.
2288 (standard_sse_mode_p): Ditto.
2289 (standard_sse_constant_p): Add case for -1 vector.
2290 (ix86_expand_vector_move): Try to use.
2291 * sse.md (*mov<mode>_internal): Use nonimmediate_or_sse_const_operand.
2292 Call standard_sse_constant_opcode.
2293 (*movv4sf_internal): Ditto.
2294 (*movv2df_internal): Ditto.
2296 2006-06-29 Roger Sayle <roger@eyesopen.com>
2298 * genpreds.c (write_match_code_switch): Correctly use XSTR instead
2299 of XEXP to extract the operands of a MATCH_CODE rtx.
2301 2006-06-28 Andrew Pinski <pinskia@gmail.com>
2303 * tree.c (tree_size): Do not waste tail padding in
2304 struct tree_string and make the size be the same as
2305 build_string will generate.
2307 2006-06-28 Jason Merrill <jason@redhat.com>
2310 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
2311 may_aliases already in the tag's annotations to the bitmap.
2313 2006-06-28 Roger Sayle <roger@eyesopen.com>
2315 * genpreds.c (write_predicate_stmts) <IOR>: Add missing break.
2317 2006-06-28 Roger Sayle <roger@eyesopen.com>
2319 * genpreds.c (generate_switch_p): New function.
2320 (add_mode_tests): Push the new mode test down inside an AND expr
2321 if this allows the switch-suitable MATCH_CODE to be near the root.
2322 (write_match_code_switch): New function to write a MATCH_CODE as
2324 (write_predicate_stmts): New function to write a predicate RTX
2325 expression as a sequence of statements.
2326 (write_one_predicate_function): Use write_predicate_stmts.
2327 (write_tm_constrs_h): Likewise.
2329 2006-06-26 Fred Fish <fnf@specifix.com>
2331 * config/mips/t-sb1: New file.
2332 * config.gcc (mipsisa64sb1-*-elf*): Add mips/t-sb1 to
2335 2006-06-26 DJ Delorie <dj@redhat.com>
2337 * config/m32c/m32c.c (m32c_print_operand): Fix sign-merging logic.
2339 2006-06-26 Naveen H.S <naveenh@kpitcummins.com>
2340 Jayant Sonar <jayants@kpitcummins.com>
2341 Jaydeep Vipradas <jaydeepv@kpitcummins.com>
2343 * config/m32c/addsub.md (addsi3, addsi3_1, addsi3_2): New.
2344 (subsi3, subsi3_1, subsi3_2): New.
2345 * config/m32c/bitops.md (andsi3, iorsi3, xorsi3): New.
2346 * config/m32c/mov.md (SI mov peephole): New.
2347 * config/m32c/m32.c (m32c_immd_dbl_mov): New.
2348 * config/m32c/m32c-protos.h (m32c_immd_dbl_mov): New.
2350 2006-06-26 Olivier Hainque <hainque@adacore.com>
2352 * function.c (aggregate_value_p): Honor DECL_BY_REFERENCE on
2353 a CALL_EXPR target function declaration.
2355 2006-06-26 Richard Guenther <rguenther@suse.de>
2357 * tree.c (build_string): Do not waste tail padding in
2360 2006-06-26 Richard Guenther <rguenther@suse.de>
2362 * ggc-page.c (init_ggc): Add missing element to size_lookup
2366 2006-06-23 Richard Guenther <rguenther@suse.de>
2368 * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
2369 sizes to MAX_ALIGNMENT. Fix the size_lookup table to honour
2370 alignment requests instead. Add verification code.
2371 Add struct tree_function_decl and struct tree_binfo size to
2372 extra_order_size_table. Add missing element to size_lookup
2375 2006-06-25 Eric Botcazou <ebotcazou@adacore.com>
2378 * fold-const.c (const_binop): Be prepared for self returning zero.
2379 Simplify code handling complex values.
2381 2006-06-24 Olivier Hainque <hainque@adacore.com>
2383 * gimplify.c (gimplify_scalar_mode_aggregate_compare): New function.
2384 (gimplify_expr): Use it for tcc_comparison of operands of non BLKmode
2387 2006-06-24 Olivier Hainque <hainque@adacore.com>
2389 * tree-ssa-loop-im.c (for_each_index): Handle ARRAY_RANGE_REF as
2390 ARRAY_REF, so have the callback called for the low bound expression.
2392 2006-06-23 Janis Johnson <janis187@us.ibm.com>
2394 * tree.h (DECIMAL_FLOAT_TYPE_P): New.
2395 * c-typeck.c (c_common_type): Disallow operations on decimal float
2396 types and other float types.
2397 * convert.c (convert_to_real): Don't ignore conversions involving
2398 decimal float types.
2400 2006-06-23 Olivier Hainque <hainque@adacore.com>
2402 * tree.c (max_int_size_in_bytes): New function, inspired from
2403 code in function.c:assign_temp.
2404 * tree.h (max_int_size_in_bytes): Declare.
2405 * function.c (assign_temp): Use it.
2406 * gimplify.c (create_tmp_var): Relax the assertions on the type
2407 properties, not mandating constant size any more.
2408 (force_constant_size): New static function.
2409 (gimple_add_tmp_var): Use it, forcing variable size to a
2410 constant upper bound if it is not constant on entry.
2412 2006-06-23 Danny Smith <dannysmith@users.sourceforge.net>
2415 * config/i386/winnt.c (ix86_handle_selectany_attribute): Move check
2416 for initialization and setting of one_only flag to ...
2417 (i386_pe_encode_section_info): ...here.
2418 (i386_pe_dllimport_p): Check for DECL_DLLIMPORT_P also.
2419 Recheck that the symbol has not been defined.
2421 2006-06-23 Richard Guenther <rguenther@suse.de>
2423 * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
2424 sizes to MAX_ALIGNMENT. Fix the size_lookup table to honour
2425 alignment requests instead. Add verification code.
2426 Add struct tree_function_decl and struct tree_binfo size to
2427 extra_order_size_table. Add missing element to size_lookup
2430 2006-06-22 Roger Sayle <roger@eyesopen.com>
2431 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2434 * expr.c (expand_expr_real_1) <VECTOR_CST>: Check whether the
2435 call to lang_hooks.types.type_for_mode returned NULL_TREE.
2437 2006-06-23 Ben Elliston <bje@au.ibm.com>
2439 * dfp.c (decimal_to_decnumber): Do not use decNumberNegate to
2440 negate dn -- manipulate it directly.
2442 2006-06-22 Roger Sayle <roger@eyesopen.com>
2443 Steven Bosscher <stevenb.gcc@gmail.com>
2446 * reload1.c (gen_reload): Call mark_jump_label on the new insns
2447 generated by gen_move_insn to add REG_LABEL notes if necessary.
2449 2006-06-22 Bob Wilson <bob.wilson@acm.org>
2451 * config/xtensa/lib1funcs.asm (MIN_ESA): Delete.
2452 (leaf_entry): Remove use of MIN_ESA.
2454 2006-06-22 Zdenek Dvorak <dvorakz@suse.cz>
2456 PR rtl-optimization/28121
2457 * cfgexpand.c (tree_expand_cfg): Clean EDGE_EXECUTABLE flag from
2460 2006-06-21 DJ Delorie <dj@redhat.com>
2462 * config/m32c/muldiv.md (mulhisi3_i): Only use registers for dest
2464 (mulhisi3_r): Likewise.
2466 2006-06-21 Richard Sandiford <richard@codesourcery.com>
2469 * coverage.c (coverage_counter_alloc): Leave the index type
2471 (coverage_counter_alloc): Use null arguments for operands 2 and 3
2474 2006-06-21 Andrew Pinski <pinskia@physics.uc.edu>
2476 * doc/invoke.texi (-fopenmp) Move to "Options Controlling C Dialect"
2477 section from the "Options for Code Generation Conventions".
2479 2006-06-21 Richard Henderson <rth@redhat.com>
2483 * config/alpha/predicates.md (small_symbolic_operand): Deny weak
2485 (global_symbolic_operand): Allow weak symbols, even if local_p.
2487 2006-06-21 Eric Botcazou <ebotcazou@adacore.com>
2489 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): New function.
2490 (find_interesting_uses_address): Punt if above function returns true.
2492 2006-06-21 Richard Guenther <rguenther@suse.de>
2494 * configure: Regenerated.
2496 2006-06-21 Joseph Myers <joseph@codesourcery.com>
2498 * config/mips/mips.c (function_arg): Where one part of a
2499 complex argument is in registers and the other part in the stack,
2500 return a REG not a PARALLEL.
2502 2006-06-21 Mark Mitchell <mark@codesourcery.com>
2504 * configure.ac: Set gcc_gxx_include_dir to $target/include/c++
2505 when cross-compiling. Do not substitute libstdcxx_incdir.
2506 * configure: Regenerated.
2508 2006-06-21 Jakub Jelinek <jakub@redhat.com>
2510 * varasm.c (mergeable_string_section): Check for embedded NULs and
2511 NUL termination in the first int_size_in_bytes (TREE_TYPE (decl))
2512 rather than TREE_STRING_LENGTH bytes.
2514 2006-06-21 Richard Guenther <rguenther@suse.de>
2516 * ggc-page.c (extra_order_size_table): Add var_ann_d,
2517 tree_ssa_name, bitmap_element and phi_node with 4 arguments
2520 2006-06-21 Richrad Guenther <rguenther@suse.de>
2522 * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
2523 Limit iteration over the dominators.
2525 2006-06-20 Roger Sayle <roger@eyesopen.com>
2527 * config/mips/iris6.h (LIB_SPEC): Add support for -pthread.
2528 (SUBTARGET_CPP_SPEC): Define _REENTERANT if -pthread specified.
2530 2006-06-20 Richard Guenther <rguenther@suse.de>
2531 Michael Matz <matz@suse.de>
2533 * alloc-pool.h (free_alloc_pool_if_empty): Prototype new
2535 * alloc-pool.c (free_alloc_pool_if_empty): New function.
2536 * et-forest.h (et_free_pools): Prototype new function.
2537 * et-forest.c (et_free_tree_force): Free parent occurrence.
2538 (et_free_pools): New function.
2539 * dominance.c (free_dominance_info): Free et-forest alloc
2542 2006-06-20 Roger Sayle <roger@eyesopen.com>
2544 * expr.c (expand_expr_real_1) <VECTOR_CST>: For vector constants with
2545 integer modes, attempt to directly construct an integer constant.
2547 * fold-const.c (native_encode_vector): Determine the size of each
2548 element from the vector type instead of the first vector element.
2550 * tree.c (build_constructor_single): Mark a CONSTRUCTOR as constant,
2551 if all of its elements/components are constant.
2552 (build_constructor_from_list): Likewise.
2554 2006-06-20 Zdenek Dvorak <dvorakz@suse.cz>
2556 PR tree-optimization/27331
2557 * tree-data-ref.c (free_data_ref): New function.
2558 (create_data_ref): Fail if the data reference has unknown access
2560 (free_data_refs): Use free_data_ref.
2562 2006-06-19 Andrew Pinski <pinskia@gmail.com>
2565 * tree-inline.c (setup_one_parameter): Strip useless
2566 type conversion before adding it to the IR.
2567 (declare_return_variable): Likewise.
2569 2006-06-19 Martin Michlmayr <tbm@cyrius.com>
2572 * c-common.c (c_common_truthvalue_conversion): Fix grammar in warning.
2574 2006-06-19 Mike Stump <mrs@apple.com>
2576 * tree.c (variably_modified_type_p): VM arguments don't make the
2579 2006-06-19 Richard Guenther <rguenther@suse.de>
2581 * tree-ssa-pre.c (try_combine_conversion): Strip useless
2582 type conversions after folding.
2584 2006-06-19 Richard Guenther <rguenther@suse.de>
2586 * ggc-page.c (extra_order_size_tab): Add entries with
2587 size of struct function and basic_block.
2588 (size_lookup): Extend to cover sizes up to 511.
2589 (ggc_alloc_stat): Adjust user.
2590 (ggc_pch_count_object): Likewise.
2591 (ggc_pch_alloc_object): Likewise.
2592 (ggc_pch_write_object): Likewise.
2594 2006-06-19 Zdenek Dvorak <dvorakz@suse.cz>
2596 * tree-ssa-loop-niter.c (implies_ge_p): New function.
2597 (derive_constant_upper_bound): Handle OP0 - CST in unsigned types
2600 2006-06-19 Denis Chertykov <denisc@overta.ru>
2602 * config/avr/libgcc.S : Correct my wrong previous commit.
2604 2006-06-19 Roger Sayle <roger@eyesopen.com>
2607 * expmed.c (expand_shift): On SHIFT_COUNT_TRUNCATED targets, we may
2608 have stripped a SUBREG from the shift count, so we may need to
2609 convert_to_mode back to the type's mode before calling make_tree.
2610 Use new_amount instead of amount to avoid expanding a tree twice.
2612 2006-06-19 Richard Guenther <rguenther@suse.de>
2615 * fold-const.c (operand_equal_p): Check if the argument types
2616 have the same precision before stripping NOPs.
2618 2006-06-19 Daniel Berlin <dberlin@dberlin.org>
2620 Fix PR tree-optimization/27341
2621 * tree-cfg.c (gimplify_val): Call mark_new_vars_to_rename on the
2623 * tree-complex.c (pass_lower_complex): Update SMT usage.
2625 2006-06-19 Andreas Krebbel <krebbel1@de.ibm.com>
2627 * config/s390/s390.md ("doloop_si64", "doloop_si31", "doloop_di"):
2628 Add a new alternative to the constraint strings. Add move of
2629 operand 1 to 3 to the splitter definition.
2630 ("doloop_si_long"): Second contraint alternative removed.
2632 2006-06-08 Anatoly Sokolov <aesok@post.ru>
2634 * config/avr/avr.h (avr_have_movw_lpmx_p): Declare.
2635 (TARGET_CPU_CPP_BUILTINS): Add __AVR_HAVE_MOVW__ and
2637 (AVR_HAVE_MOVW) Define.
2638 (ASSEMBLER_DIALECT): Use AVR_HAVE_MOVW.
2639 (ASM_SPEC): Add avr25.
2640 (LINK_SPEC): Add avr25.
2641 * config/avr/avr.c (avr_have_movw_lpmx_p): Add.
2642 (base_arch_s): Add new member 'have_movw_lpmx'.
2643 (avr_arch_types): Init 'have_movw_lpmx'.
2644 (avr_mcu_types): Add 'avr25'. Move attiny13, attiny2313, attiny24,
2645 attiny44, attiny84, attiny25, attiny45, attiny85, attiny261,
2646 attiny461, attiny861 and at86rf401 in 'avr25' arhitecture.
2647 (avr_override_options): Init 'avr_have_movw_lpmx_p'.
2648 (output_movhi, output_movsisf, ashlsi3_out, avr_rtx_costs): Use
2650 (avr_file_start): Do not output '.arh' derective.
2651 * config/avr/libgcc.S (mov_l): Use __AVR_HAVE_MOVW__.
2652 (__do_copy_data): Use __AVR_HAVE_LPMX__.
2653 * config/avr/avr.md (mcu_enhanced): Delete.
2654 (mcu_have_movw): Define.
2655 (negsi2, extendhisi2, zero_extendhisi2): Use 'mcu_have_movw'.
2656 (call_insn, call_value_insn): Use 'call_insn' and __AVR_HAVE_MOVW__.
2657 * config/avr/t-avr(MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add avr25.
2658 (MULTILIB_MATCHES): Add attiny13, attiny2313, attiny24, attiny44,
2659 attiny84, attiny25, attiny45, attiny85, attiny261, attiny461,
2660 attiny861 and at86rf401 devices.
2662 2006-06-18 Jie Zhang <jie.zhang@analog.com>
2664 * config/bfin/bfin.c (MAX_LOOP_LENGTH): Define to be 2042 instead
2667 2006-06-17 Karl Berry <karl@gnu.org>
2669 * doc/cpp.texi, doc/cppinternals.texi, doc/gcc.texi,
2670 doc/gccint.texi, doc/install.texi (@dircategory): Use
2671 "Software development" instead of "Programming", following
2672 the Free Software Directory.
2674 2006-06-17 Alexandre Oliva <aoliva@redhat.com>
2676 * config/i386/i386.c (legitimate_tls_address)
2677 <TARGET_GNU2_TLS>: Add tp after DTPOFF.
2678 * config/i386/i386.md (*tls_dynamic_gnu2_combine_32): Adjust.
2679 (*tls_dynamic_gnu2_combine_64): Likewise.
2681 2006-06-16 Richard Guenther <rguenther@suse.de>
2684 * fold-const.c (negate_expr_p): Do not introduce undefined
2685 overflow in negating INTEGER_CSTs.
2686 (fold_negate_expr): Rename from negate_expr. Revert last
2687 change for folding BIT_NOT_EXPR. Change semantics to
2688 return NULL_TREE for non-simplified negations. Do not
2689 strip type conversions and unify type handling.
2690 (negate_expr): New function, wrap around fold_negate_expr
2691 but ensure building a tree always. Strip type conversions
2692 here, fold to result type.
2693 (fold_unary): Use fold_negate_expr for folding NEGATE_EXPR.
2695 2006-06-16 Roger Sayle <roger@eyesopen.com>
2698 * reg-stack.c (subst_stack_regs): Handle noreturn function calls
2699 that (would) return their results in stack registers.
2701 2006-06-16 Michael Matz <matz@suse.de>
2702 Richard Guenther <rguenther@suse.de>
2704 * fold-const.c (fold_truthop): Only return new tree node if
2705 we canonicalized something.
2707 2006-06-16 Richard Guenther <rguenther@suse.de>
2709 * function.h (enum function_frequency): Move declaration
2710 out of struct function.
2711 (struct function): Move bool fields and the enum to the bitfield
2712 section. Reorder elements to avoid padding. Remove unused
2713 fields left over from the RTL inliner removal.
2714 * function.c (free_after_compilation): Do not zero removed fields.
2715 * Makefile.in (ipa-reference.o): Add $(FUNCTION_H) dependency.
2716 (ipa-type-escape.o): Likewise.
2718 2006-06-16 Richard Guenther <rguenther@suse.de>
2720 * cgraph.h (struct cgraph_local_info): Turn bool elements
2722 (struct cgraph_node): Likewise.
2723 (struct cgraph_varpool_node): Likewise.
2725 2006-06-15 Richard Guenther <rguenther@suse.de>
2727 * fold-const.c (fold_truth_not_expr): Rename from
2728 invert_truthvalue. Give it fold_* semantics to avoid
2730 (invert_truthvalue): New function. Wrapper around
2731 fold_truth_not_expr.
2732 (optimize_minmax_comparison): Avoid creating garbage.
2733 (fold_unary): Use fold_truth_not_expr for folding
2735 (fold_ternary): Replace uses of invert_truthvalue with
2736 fold_truth_not_expr where applicable.
2737 * tree.h (fold_truth_not_expr): Prototype.
2739 2006-06-16 Richard Guenther <rguenther@suse.de>
2741 PR tree-optimization/27781
2742 * Makefile.in (ipa-pure-const.o): Add $(TARGET_H) dependency.
2743 * ipa-pure-const.c (target.h): Include.
2744 (analyze_function): Do not analyze functions that do not
2747 2006-06-15 Andrew MacLeod <amacleod@redhat.com>
2750 * tree-dfa.c (referenced_vars_dup_list): Remove.
2751 (find_referenced_vars): Remove assert.
2752 (referenced_var_check_and_insert): Replace dup list with assert.
2753 * tree-ssa.c (delete_tree_ssa): Remove dup list processing.
2754 * tree-flow.h (referenced_vars_dup_list): Remove extern decl.
2756 2006-06-15 Richard Guenther <rguenther@suse.de>
2758 * tree-ssa-structalias.c (alias_get_name): Avoid creating
2759 extra unused identifiers if not dumping.
2760 (create_variable_info_for): Likewise.
2762 2006-06-15 Zdenek Dvorak <dvorakz@suse.cz>
2764 * tree-ssa-loop-niter.c (implies_nonnegative_p): New function.
2765 (derive_constant_upper_bound): Derive more precise upper bound in
2766 common cases. Return type changed to double_int.
2767 (record_estimate): Reflect the changed return type of
2768 derive_constant_upper_bound.
2769 * double-int.c (double_int_zext, double_int_sext): Fix.
2771 2006-06-15 Paolo Bonzini <bonzini@gnu.org>
2773 * configure.ac (CFLAGS): Get them from the toplevel or from the
2774 configure invocation.
2775 * configure: Regenerate.
2776 * Makefile.in (CFLAGS): Substitute value provided by configure.
2778 2006-06-14 Mark Mitchell <mark@codesourcery.com>
2781 * c-common.h (c_finish_omp_atomic): Adjust declaration.
2782 * c-omp.c (c_finish_omp_atomic): Return the expression to perform,
2783 rather than calling add_stmt on it.
2784 * c-parser.c (c_parser_omp_atomic): Adjust accordingly.
2786 2006-06-14 Andreas Krebbel <krebbel1@de.ibm.com>
2789 * reload1.c (reload): Remove registers returned by update_eliminables
2790 from used_spill_regs.
2792 2006-06-13 DJ Delorie <dj@redhat.com>
2794 * config/m32c/muldiv.md (mulpsi3): Expect arbitrary constants.
2796 2006-06-13 Carlos O'Donell <carlos@codesourcery.com>
2798 * Makefile.in: Define HTMLS_BUILD, HTMLS_INSTALL,
2799 html__strip_dir, html__mkdir_p. Enhance install-html target.
2800 * configure.ac: AC_SUBST datarootdir, docdir and htmldir.
2801 * configure: Regenerate.
2803 2006-06-13 Fariborz Jahanian <fjahanian@apple.com>
2805 * fold-const.c (fold_cond_expr_with_comparison): Check for
2806 Objective-C++ as language in deciding COND_EXPR transformation.
2808 2006-06-06 J"orn Rennecke <joern.rennecke@st.com>
2811 * config/sh/t-sh (LIB1ASMFUNCS): Add _udiv_qrnnd16
2812 * config/sh/sh.c (print_operand): Add !SHMEDIA functionality to 'M'.
2813 * config/sh/lib1funcs.h (SL, SL1): Define.
2814 * config/sh/lib1funcs.asm (__udiv_qrnnd16): New hidden function.
2815 * longlong.h (__sh__): Define umul_ppmm, udiv_qrnnd and sub_ddmmss.
2816 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): New rule.
2817 (OBJS_Os_4_200): New variable.
2818 ($(T)libgcc-Os-4-200.a): Use it.
2819 * sh.md (udivsi3): For TARGET_DIVIDE_CALL_TABLE, avoid function call
2820 when dividing 1 and/or by 0.
2822 2006-06-13 Roger Sayle <roger@eyesopen.com>
2824 * configure.ac (HAS_MCONTEXT_T_UNDERSCORES): Include <sys/signal.h>
2825 before <ucontext.h> to define sigset_t required by <sys/ucontext.h>.
2826 * configure: Regenerate.
2828 2006-06-13 Jie Zhang <jie.zhang@analog.com>
2830 * config/bfin/bfin.c (bfin_reorg_loops): Only call recog_memoized ()
2831 for real instruction.
2833 2006-06-13 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2836 * haifa-sched.c (check_cfg): Handle special case.
2838 2006-06-13 Eric Botcazou <ebotcazou@adacore.com>
2841 * gimplify.c (declare_tmp_vars): Rename into declare_vars.
2842 Add debug_info parameter. Chain the vars to the BLOCK instead
2843 of the BIND_EXPR if debug info are requested for them.
2844 (pop_gimplify_context): Adjust for above change.
2845 (gimple_add_tmp_var): Likewise.
2846 * tree-gimple.h (declare_tmp_vars): Rename into declare_vars.
2848 * tree-nested.c (convert_nonlocal_reference): Adjust for above change.
2849 (convert_local_reference): Likewise.
2850 (get_local_debug_decl): Set DECL_IGNORED_P on the original variable.
2851 (finalize_nesting_tree_1): Request that debug info be emitted
2852 for debug_var_chain.
2854 2006-06-13 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2856 * haifa-sched.c (unlink_other_notes, unlink_line_notes): Fix the patch
2857 for PR target/27863.
2859 2006-06-13 Richard Guenther <rguenther@suse.de>
2862 * except.c (output_ttype): Expand type with EXPAND_INITIALIZER.
2864 2006-06-13 Richard Guenther <rguenther@suse.de>
2866 PR tree-optimization/27830
2867 * tree-inline.c (copy_body_r): For copying the operand
2868 of an ADDR_EXPR make sure to fold &* afterwards.
2870 2006-06-12 Eric Botcazou <ebotcazou@adacore.com>
2872 * gimplify.c (gimplify_expr): Treat VIEW_CONVERT_EXPR like other
2873 lvalues in the fb_none case with side-effects.
2875 2006-06-12 Kazu Hirata <kazu@codesourcery.com>
2877 * tree-flow.h: Remove the prototype for
2878 compute_phi_arg_on_exit.
2879 * tree-ssa-loop-ivopts.c (protect_loop_closed_ssa_form_use,
2880 protect_loop_closed_ssa_form, compute_phi_arg_on_exit):
2883 2006-06-12 Mark Shinwell <shinwell@codesourcery.com>
2885 * builtins.c (expand_builtin_return_addr): Only use
2886 frame_pointer_rtx when count == 0 and we are expanding
2887 __builtin_return_address.
2889 2006-06-12 Fred Fish <fnf@specifix.com>
2891 * config/mips/mips.c (mips_file_start): Create special section
2892 ".gcc_compiled_longXX" for o64 ABI as well as EABI.
2894 2006-06-11 Eric Christopher <echristo@apple.com>
2897 * stor-layout.c (place_field): Remove check for
2898 remaining_in_alignment when aligning at the end of a run.
2900 2006-06-11 Eric Christopher <echristo@apple.com>
2903 * doc/extend.texi (Structure-Packing Pragmas): Document ms_struct
2906 2006-06-11 Roger Sayle <roger@eyesopen.com>
2909 Revert incorrect fix for PR target/27158
2910 2006-05-08 Roger Sayle <roger@eyesopen.com>
2911 * reload.c (find_reloads_toplev): Only return the simplified SUBREG
2912 of a reg_equiv_constant if the result is a legitimate constant.
2914 2006-06-11 Roger Sayle <roger@eyesopen.com>
2917 * config/rs6000/rs6000.c (const_vector_elt_as_int): New function to
2918 extract a CONST_VECTOR element and interpret it as an integer.
2919 (vspltis_constant): Use const_vector_elt_as_int instead of the
2920 macro CONST_VECTOR_ELT in order to handle FP vector modes.
2921 * config/rs6000/predicates.md (easy_vector_const): Consider
2922 floating point ALTIVEC_VECTOR_MODEs via easy_altivec_constant.
2924 2006-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
2927 * stor-layout.c (update_alignment_for_field): Don't add extra
2928 alignment for packed non-bitfield fields in ms_bitfield_layout_p
2931 2006-06-09 Ralf Corsepius <ralf.corsepius@rtems.org>
2933 * config/mips/t-rtems: Add EL/EB multilib variants.
2935 2006-06-09 Mike Stump <mrs@apple.com>
2937 * c-typeck.c (c_begin_vm_scope): Fix file_scope processing.
2939 2006-06-09 David Daney <ddaney@avtrex.com>
2941 * doc/install.texi: Add binutils version recommendation for mips-*-*.
2943 2006-06-09 Andreas Krebbel <krebbel1@de.ibm.com>
2945 * reload.c (find_reloads): Unset force_reload for 'X' constraint.
2947 2006-06-09 Richard Guenther <rguenther@suse.de>
2949 PR tree-optimization/26998
2950 * tree-vrp.c (extract_range_from_unary_expr): For NEGATE_EXPR
2951 of signed types, only TYPE_MIN_VALUE is special, but for both,
2952 minimum and maximum value. Likewise VR_ANTI_RANGE is special
2953 in this case, as is -fwrapv.
2955 2006-06-08 Mike Stump <mrs@apple.com>
2958 * config/darwin.c (darwin_asm_output_anchor): Disable
2959 -fsection-anchors on darwin for now.
2960 * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Likewise.
2961 * rs6000/rs6000.c (optimization_options): Likewise.
2963 2006-06-08 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2966 * config/i386/i386.c (classify_argument): Skip fields with invalid
2969 2006-06-08 Steven Bosscher <steven@gcc.gnu.org>
2971 * cse.c (flush_hash_table): Use VOIDmode to invalidate a REG.
2972 (cse_insn): Likewise for the stack_pointer_rtx.
2974 2006-06-08 Roger Sayle <roger@eyesopen.com>
2976 * tree-ssa-dom.c (record_conditions): Only record "unordered"
2977 conditions from floating point comparisons.
2979 2006-06-08 Paolo Bonzini <bonzini@gnu.org>
2982 * expmed.c (struct alg_hash_entry): Fix type of field T
2983 to match synth_mult argument.
2984 (NUM_ALG_HASH_ENTRIES): Make it bigger for 64-bit HOST_WIDE_INT.
2986 2006-06-08 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2989 * haifa-sched.c (unlink_other_notes, unlink_line_notes): Update basic
2992 2006-06-08 Richard Guenther <rguenther@suse.de>
2995 * fold-const.c (negate_expr_p): We can negate BIT_NOT_EXPR
2996 only, if overflow is defined and not trapping.
2997 (negate_expr): Likewise.
2999 2006-06-07 Zdenek Dvorak <dvorakz@suse.cz>
3001 PR tree-optimization/27872
3002 * tree-ssa-loop-manip.c (tree_unroll_loop): Set EDGE_IRREDUCIBLE_LOOP
3003 flag on the new exit edge of the unrolled loop.
3005 2006-06-07 Zdenek Dvorak <dvorakz@suse.cz>
3007 PR rtl-optimization/26449
3008 * loop-invariant.c (move_invariant_reg): Fail if force_operand fails.
3010 2006-06-07 Andrew MacLeod <amacleod@redhat.com>
3013 * tree-dfa.c (referenced_vars_dup_list): New. List of duplicate
3014 referenced_variables with matching DECL_UID's.
3015 (find_referenced_vars): Make sure duplicate list is empty to start.
3016 (referenced_var_p): Remove.
3017 (referenced_var_check_and_insert): Renamed from referenced_var_insert.
3018 Check if var is in the list, and add if needed. Update the duplicate
3019 list if a different var is in the list with the same DECL_UID.
3020 (add_referenced_var): Call routine to check and insert.
3021 * tree-ssa.c (delete_tree_ssa): Clear var_ann's on duplicates.
3022 * tree-flow.h (referenced_vars_dup_list): External declaration.
3024 2006-06-07 Fred Fish <fnf@specifix.com>
3026 * config/mips/t-elf (MULTILIB_MATCHES): Combine two entries
3029 2006-06-07 Paolo Bonzini <bonzini@gnu.org>
3032 * reg-stack.c (subst_stack_regs_pat): Reorder resetting of
3033 the imaginary and real parts of a clobbered register.
3034 Emit insn to set the imaginary part.
3036 2006-06-06 Peter Lemieszewski <lemie@us.ibm.com>
3038 * config/s390/t-tpf (LIB2ADDEH): Include unwind-dw2-fde-glibc.c
3039 in lieu of unwind-dw2-fde.c.
3041 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3043 * config/i386/mingw32.h (GOMP_SELF_SPECS): Define.
3045 2006-06-06 Ulrich Weigand <uweigand@de.ibm.com>
3048 * config/rs6000/altivec.md (UNSPEC_VSLW): Remove.
3049 ("altivec_vspltisw_v4sf", "altivec_vslw_v4sf"): Remove.
3050 ("mulv4sf3", "absv4sf3", "negv4sf3"): Adapt users to use
3051 V4SImode temporaries and operations instead.
3053 2006-06-06 Joseph S. Myers <joseph@codesourcery.com>
3055 * config/mips/t-linux64 (tp-bit.c): Append to tp-bit.c, not
3058 2006-06-06 Mike Stump <mrs@apple.com>
3060 * Makefile.in: Rename to htmldir to build_htmldir to avoid
3061 installing during build.
3063 2006-06-06 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3065 * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): Change default
3067 * doc/invoke.texi (max-sched-extend-regions-iters): Document.
3068 * config/ia64/ia64.c (params.h): New header.
3069 (ia64_optimization_options): New function to adjust parameters.
3070 * config/ia64/ia64-protos.h (ia64_optimization_options): New prototype.
3071 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): New macro.
3072 * config/ia64/t-ia64 (ia64.o): Add dependence from params.h .
3074 2006-06-05 Kazu Hirata <kazu@codesourcery.com>
3076 * stor-layout.c (debug_rli): Fix a typo in a debug message.
3078 2006-06-05 Steve Ellcey <sje@cup.hp.com>
3081 * config/ia64/ia64.c (ia64_select_rtx_section): Check TARGET_NO_SDATA.
3083 2006-06-05 Dorit Nuzman <dorit@il.ibm.com>
3084 Victor Kaplansky <victork@il.ibm.com>
3086 PR tree-optimization/26360
3087 * tree-vectorizer.c (destroy_loop_vec_info): Remove (dead) pattern
3090 2006-06-04 Roger Sayle <roger@eyesopen.com>
3091 Andrew Pinski <pinskia@physics.uc.edu>
3094 * c-common.c (c_common_truthvalue_conversion): Explicitly check
3095 for LABEL_DECL before calling DECL_WEAK.
3098 * c-typeck.c (build_binary_op): Likewise, explicitly check for
3099 LABEL_DECL and PARM_DECL.
3101 2006-06-05 Joseph S. Myers <joseph@codesourcery.com>
3105 * c-decl.c (grokdeclarator): Disallow variably modified types at
3106 file scope. Avoid marking shared array type of constant size as
3109 2006-06-04 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3112 * c-common.c (fold_offsetof_1): Handle static members.
3114 2006-06-04 Eric Christopher <echristo@apple.com>
3116 * stor-layout.c (start_record_layout): Initialize remaining_in_alignment.
3117 (debug_rli): Output value for remaining_in_alignment.
3118 (update_alignment_for_field): Unconditionalize
3119 ms_bitfield_layout_p code. Handle non-bitfield fields. Remove
3120 extra alignment code.
3121 (place_field): Don't realign if ms_bitfield_layout_p. Unconditionalize
3122 ms_bitfield_layout_p code. Rewrite handling of structure fields.
3123 * tree.h (record_layout_info_s): Remove prev_packed.
3124 * doc/extend.texi (ms_struct): Add documentation of format.
3126 2006-06-04 Mark Shinwell <shinwell@codesourcery.com>
3128 * tree.h: Declare folding_initializer.
3129 * builtins.c (fold_builtin_constant_p): Give definite answer
3130 if folding inside an initializer.
3131 * fold-const.c: Define folding_initializer.
3132 (START_FOLD_INIT): Save and then set folding_initializer.
3133 (END_FOLD_INIT): Restore folding_initializer.
3135 2006-06-04 Richard Guenther <rguenther@suse.de>
3137 PR tree-optimization/27039
3138 * fold-const.c (fold_comparison): Handle pointer comparison
3139 again for all comparison codes. Compare offsets in signed
3141 (fold_binary): Move code from here.
3143 2006-06-03 Roger Sayle <roger@eyesopen.com>
3146 * config/i386/i386.c (construct_container): Split static issued_error
3147 flag into issued_sse_arg_error, issued_sse_ret_error and
3148 issued_x87_ret_error. Issue a daignostic if the x86-64 ABI
3149 requires the use of x87 registers and the user explicitly
3150 specified the -mno-80387 command line option.
3152 2006-06-02 Geoffrey Keating <geoffk@apple.com>
3154 * config/rs6000/host-darwin.c (sigaltstack): Protect prototype with
3155 HAVE_DECL_SIGALTSTACK.
3157 (segv_handler): Use MC_FLD.
3158 * configure.ac: Check for a sigaltstack declaration.
3159 Compute HAS_MCONTEXT_T_UNDERSCORES on Darwin.
3160 * configure: Regenerate.
3161 * config.in: Regenerate.
3163 2006-06-03 J"orn Rennecke <joern.rennecke@st.com>
3166 * Makefile.in (stmp-fixinc): Fix typo.
3168 2006-06-02 Roger Sayle <roger@eyesopen.com>
3170 * fold-const.c (fold_unary) <CONJ_EXPR>: Ensure folded expressions
3171 are type correct. Clean-up.
3172 <REALPART_EXPR>: Likewise. Optimize creal(~z) as creal(z).
3173 <IMAGPART_EXPR>: Likewise. Optimize cimag(~z) as -cimag(z).
3175 2006-06-01 DJ Delorie <dj@redhat.com>
3177 * config/v850/v850.h (ASM_OUTPUT_ADDR_DIFF_ELT): Disabled the
3178 shift, as we've disabled the "switch" insn that needs it.
3180 2006-06-01 Per Bothner <bothner@bothner.com>
3182 Suppress extra '#1 <built-in> or '#1 <command line>' on -dD output.
3183 * c-opts.c (finish_options): Use internal line 0 for <command-line>.
3184 * c-ppoutput.c (cb_define): Don't increment line 0.
3186 2006-06-01 Pete Steinmetz <steinmtz@us.ibm.com>
3188 * doc/invoke.texi: Add cpu_type power6.
3189 * config.gcc: Add cpu_type power6.
3190 * config/rs6000/rs6000.c (rs6000_override_options): Alias power6
3191 to power5+ with Altivec.
3192 * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power6.
3193 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add power6.
3195 2006-05-30 Anatoly Sokolov <aesok@post.ru>
3197 * config/avr/avr.h (SET_ASM_OP): Define.
3199 2006-06-01 Kazu Hirata <kazu@codesourcery.com>
3201 * config/bfin/bfin.c: Fix comment typos.
3203 2006-06-01 Paolo Bonzini <bonzini@gnu.org>
3206 * doc/install.texi: Document --enable-bootstrap and
3207 --disable-bootstrap.
3209 2006-06-01 Paolo Bonzini <bonzini@gnu.org>
3211 * doc/install.texi: Document that InfoZIP can replace jar.
3213 2006-05-31 Roger Sayle <roger@eyesopen.com>
3215 * config/i386/i386.c (ix86_expand_fp_absneg_operator): When SSE
3216 isn't available, directly generate the simpler x87 patterns without
3217 the (use (const_int 0)).
3218 * config/i386/i386.md (*negsf2_1): Enable pre-reload if the SSE
3219 implementation isn't available.
3220 (*negdf2_1): Likewise.
3221 (*negxf2_1): XF mode negation is always done using the x87.
3222 (*abssf2_1, *absdf2_1, *absxf2_1): Likewise^3 for fabs.
3224 2006-05-31 Roger Sayle <roger@eyesopen.com>
3226 * builtins.c (fold_builtin_cabs): Delete prototype. Require an
3227 additional FNDECL argument. Optimize cabs(-z) and cabs(~z) as
3229 (fold_builtin_decl) <BUILT_IN_CABS>: Update fold_builtin_cabs call.
3231 2006-05-31 Jie Zhang <jie.zhang@analog.com>
3233 * config/bfin/bfin-protos.h (bfin_hardware_loop): Declare.
3234 * config/bfin/bfin.c (basic-block.h): Include.
3235 (struct machine_function): New.
3236 (bfin_init_machine_status): New.
3237 (override_options): Initialize init_machine_status.
3238 (bfin_hardware_loop): New.
3239 (MAX_LOOP_DEPTH, MAX_LOOP_LENGTH): Define.
3240 (DEF_VEC_P (loop_info)): New.
3241 (DEF_VEC_ALLOC_P (loop_info,heap)): New.
3242 (struct loop_info): New.
3243 (loop_info): New typedef.
3244 (struct loop_work): New.
3245 (loop_work): New typedef.
3246 (DEF_VEC_O (loop_work)): New.
3247 (DEF_VEC_ALLOC_O (loop_work,heap)): New.
3248 (bfin_dump_loops): New.
3249 (bfin_bb_in_loop): New.
3250 (bfin_scan_loop): New.
3251 (bfin_optimize_loop): New.
3252 (bfin_reorg_loops): New.
3253 (bfin_reorg): Use bfin_reorg_loops.
3254 * config/bfin/bfin.h (FIRST_PSEUDO_REGISTER): Adjust for adding
3256 (I_REGNO_P): Simplify.
3257 (DP_REGNO_P, DPREG_P): New macros.
3258 (REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
3259 REG_ALLOC_ORDER): Add LT0, LT1, LC0, LC1, LB0, LB1.
3260 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
3261 Add LT_REGS, LC_REGS, LB_REGS.
3262 (REG_CLASS_FROM_LETTER): Add 't' for LT_REGS, 'k' for LC_REGS,
3264 (REGNO_REG_CLASS): Deal with loop registers.
3265 * config/bfin/bfin.md: Add comment for 't', 'k', 'l' constraint
3267 (REG_LT0, REG_LT1, REG_LC0, REG_LC1, REG_LB0, REG_LB1):
3268 New constants for loop registers.
3269 (UNSPEC_LSETUP_END): New.
3270 (seq_insns): New define_attr. Set it for appropriate insns.
3271 (movsi_insn): Add alternatives for move from/to
3272 loop count registers.
3273 (doloop_end): New define_expand.
3274 (loop_end): New define_insn.
3275 (define_split for bad doloop_end): New.
3276 (lsetup_with_autoinit): New define_insn.
3277 (lsetup_without_autoinit): New define_insn.
3278 (rep_movsi, rep_movhi): Clobber LT1, LC1, LB1.
3279 * config/bfin/predicates.md (lc_register_operand): New.
3280 (lt_register_operand): New.
3281 (lb_register_operand): New.
3282 (nondp_register_operand): New.
3283 (nondp_reg_or_memory_operand): New.
3284 * doc/md.texi: Document Blackfin new 't', 'k', 'l' constraint letters.
3286 2006-05-31 Jie Zhang <jie.zhang@analog.com>
3288 * config/bfin/bfin.c (bfin_delegitimize_address): New.
3289 (TARGET_DELEGITIMIZE_ADDRESS): Define.
3291 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
3293 * Makefile.in (CATALOGS): Add po/ prefix.
3294 * configure: Regenerated.
3296 2006-05-31 Richard Earnshaw <richard.earnshaw@arm.com>
3299 * arm.c (arm_print_operand case 'S'): Validate that the operand is
3300 a shift operand before calling shift_op. Avoid redundant call of
3303 2006-05-30 Naveen.H.S <naveenh@kpitcummins.com>
3304 DJ Delorie <dj@redhat.com>
3306 * config/m32c/m32c.c (m32c_expand_insv): Check that the value
3307 we're inserting is a singlt-bit constant.
3309 2006-05-30 Roger Sayle <roger@eyesopen.com>
3311 * simplify-rtx.c (simplify_binary_operation_1) <LSHIFTRT>: Cast
3312 width to HOST_WIDE_INT to avoid comparison warnings on some targets.
3314 2006-05-30 Roger Sayle <roger@eyesopen.com>
3316 PR tree-optimization/23452
3317 * fold-const.c (fold_mult_zconjz): New subroutine of fold_binary,
3318 to optimize z * conj(z) as realpart(z)^2 + imagpart(z)^2.
3319 (fold_binary) <MULT_EXPR>: Call fold_mult_zconjz for integral
3320 complex values and with -ffast-math for FP complex values.
3322 2006-05-30 Kazu Hirata <kazu@codesourcery.com>
3324 * c-common.h: Remove the prototype for yyparse.
3325 * rtl.h: Remove the prototype for init_loop.
3327 2006-05-30 Andreas Krebbel <krebbel1@de.ibm.com>
3329 * cse.c (validate_canon_reg, cse_insn): Don't change insns without
3332 2006-05-30 Roger Sayle <roger@eyesopen.com>
3334 * simplify-rtx.c (simplify_binary_operation): Unfactor the shift
3336 <LSHIFTRT>: Optimize (lshiftrt (clz X) C) as (eq X 0) where C is
3337 log2(GET_MODE_BITSIZE(X)) on targets with the appropriate semantics.
3339 2006-05-30 Dirk Mueller <dmueller@suse.de>
3342 * c-common.c (convert_and_check): Only track TREE_CONSTANT_OVERFLOW
3343 for CONSTANT_CLASS_P expresisons.
3345 2006-05-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3348 * c-typeck.c (c_expr_sizeof_type): Handle invalid types.
3350 2006-05-30 Zdenek Dvorak <dvorakz@suse.cz>
3352 PR tree-optimization/27779
3353 * tree-data-ref.c (analyze_siv_subscript_cst_affine): Use
3354 initial_condition instead of CHREC_LEFT.
3356 2006-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
3358 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Fix type of begin_label.
3359 * config/m32r/initfini.c (__do_global_dtors, __do_global_ctors):
3360 Make prototypes ISO C90.
3362 2006-05-30 Mircea Namolaru <namolaru@il.ibm.com>
3363 Leehod Baruch <leehod.baruch@weizmann.ac.il>
3365 * see.c (see_analyze_one_def): Correct check.
3366 (see_get_extension_data): Check if extension is parallel.
3367 (see_get_extension_reg): Likewise.
3369 2006-05-30 Uros Bizjak <uros@kss-loka.si>
3372 * config/i386/i386.c (ix86_expand_int_vcond): Force cop0
3373 into register for (code == GTU).
3375 2006-05-29 Roger Sayle <roger@eyesopen.com>
3377 PR tree-optimization/24964
3378 * simplify-rtx.c (simplify_binary_operation_1): Add function comment.
3379 <MULT>: Minor clean-up. Don't convert x*-1.0 into -x if we honor
3380 signaling NaNs. Optimize -x*-x as x*x for all float modes, and
3381 abs(x)*abs(x) as x*x for scalar floating point modes.
3383 2006-05-29 Sebastian Pop <pop@cri.ensmp.fr>
3386 * lambda-code.c (perfect_nestify): Don't copy statements
3387 in the inner loop: move them to the inner loop header.
3389 2006-05-29 Diego Novillo <dnovillo@redhat.com>
3392 * c-tree.texi: Document OpenMP directives and clauses.
3394 2006-05-29 Kazu Hirata <kazu@codesourcery.com>
3396 * varasm.c (globalize_decl): Fix indentation.
3398 2006-05-29 Diego Novillo <dnovillo@redhat.com>
3401 * doc/passes.texi: Add documentation for pass_vrp, pass_ipa_pta,
3402 pass_fre, pass_store_ccp, pass_copy_prop,
3403 pass_store_copy_prop, pass_merge_phi, pass_nrv,
3404 pass_return_slot, pass_object_size, pass_lim,
3405 pass_linear_transform, pass_empty_loop, pass_complete_unroll,
3406 pass_loop_prefetch and pass_stdarg.
3408 2005-05-29 Bernd Schmidt <bernd.schmidt@analog.com>
3410 * config/bfin/bfin.opt (mfdpic): New option.
3411 * config/bfin/t-bfin-elf (EXTRA_PARTS): Add crtbeginS.o and crtendS.o.
3412 (EXTRA_MULTILIB_PARTS): Likewise.
3413 (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS): Use -fpic.
3414 (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Build one extra -mfdpic
3416 * config/bfin/elf.h (STARTFILE_SPEC): Don't link in crt0.o if -shared.
3417 (CRT_CALL_STATIC_FUNCTION): New.
3418 * config/bfin/uclinux.h (STARTFILE_SPEC): Don't link in crt0.o if
3420 (CRT_CALL_STATIC_FUNCTION): New.
3421 * config/bfin/bfin.c (legitimize_pic_address): Now static. Handle
3423 (n_pregs_to_save): PIC register doesn't need to be saved with FD-PIC.
3424 (print_operand): Handle UNSPEC_MOVE_FDPIC and UNSPEC_FUNCDESC_GOT17M4.
3425 (initialize_trampoline): Changed to handle FD-PIC code generation.
3426 (expand_move): If TARGET_FDPIC, use emit_pic_move as needed.
3427 (bfin_expand_call): Generate FD-PIC calls if TARGET_FDPIC.
3428 (override_options): Disallow -mid-shared-library -mfdpic combination.
3429 Can't do unaligned ops if FD-PIC.
3430 Turn off flag_pic if trying to generate non-id-shared-library
3431 non-fdpic code, since it's not supported.
3432 (bfin_assemble_integer): New function.
3433 (TARGET_ASM_INTEGER): Define.
3434 * config/bfin/crti.s (__init, __fini): Save P3 on the stack if
3436 * config/bfin/crtn.s: Restore them.
3437 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __BFIN_FDPIC__
3439 (DRIVER_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
3440 LINK_GCC_C_SEQUENCE_SPEC, ASM_SPEC, LINK_SPEC): New macros.
3441 (FDPIC_FPTR_REGNO, FDPIC_REGNO, OUR_FDPIC_REG): New macros.
3442 (TRAMPOLINE_SIZE, TRAMPOLINE_TEMPLATE): Adjust for FD-PIC.
3443 (CONDITIONAL_REGISTER_USAGE): If TARGET_FDPIC, FDPIC_REGNO is
3445 (enum reg_class, REG_CLASS_CONTENTS, REG_CLASS_NAMES): Add
3446 FDPIC_REGS and FDPIC_FPTR_REGS.
3447 (REG_CLASS_FROM_LETTER): Use 'Z' and 'Y' for them.
3448 * config/bfin/bfin.md (UNSPEC_MOVE_FDPIC, UNSPEC_FUNCDESC_GOT17M4,
3449 UNSPEC_VOLATILE_LOAD_FUNCDESC): New constants.
3450 (load_funcdescsi): New pattern.
3451 (call_symbol_fdpic, sibcall_symbol_fdpic, call_value_symbol_fdpic,
3452 sibcall_value_symbol_fdpic, call_insn_fdpic, sibcall_insn_fdpic,
3453 call_value_insn_fdpic, sibcall_value_insn_fdpic): New patterns.
3455 2006-05-29 Kazu Hirata <kazu@codesourcery.com>
3457 * gcse.c, rtlanal.c: Remove obsolete comments associated with
3460 * config/bfin/bfin.h (PARM_BOUNDRY, STACK_BOUNDRY): Remove.
3462 * tree-flow.h: Remove the prototype for add_type_alias.
3463 * tree-ssa-alias.c (add_type_alias): Remove.
3465 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
3467 * cfgcleanup.c, cfgexpand.c, cgraphunit.c, config/arm/arm.c,
3468 config/fr30/fr30.md, config/i386/i386-interix.h,
3469 config/i386/i386.c, config/i386/i386.md, config/sh/superh.h,
3470 config/sh/superh64.h, config/v850/v850.c, df-core.c,
3471 df-problems.c, df.h, except.c, final.c, haifa-sched.c,
3472 lambda-code.c, libgcc2.h, omp-low.c, optabs.c, predict.c,
3473 reload.c, tree-flow.h, tree-outof-ssa.c, tree-ssa-dce.c,
3474 tree-ssa-pre.c, tree-vect-transform.c: Fix comment typos.
3475 Follow spelling conventions.
3476 * doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix typos.
3477 Follow spelling conventions.
3479 2006-05-27 Richard Guenther <rguenther@suse.de>
3482 * fold-const.c (fold_plusminus_mult_expr): Use fold_convert
3483 to produce a constant of value 1 of generic type.
3485 2006-05-27 Dirk Mueller <dmueller@suse.de>
3487 * cgraphunit.c (decide_is_function_needed): Fix wrong
3490 2006-05-26 Ulrich Weigand <uweigand@de.ibm.com>
3492 PR rtl-optimization/27661
3493 * reload.c (find_reloads): When reloading a VOIDmode constant
3494 as address due to an EXTRA_MEMORY_CONSTRAINT or 'o' constraint,
3495 use Pmode as mode of the reload register.
3497 2006-05-26 Eric Botcazou <ebotcazou@adacore.com>
3499 * doc/invoke.texi (Optimize Options): Document that -funit-at-a-time
3500 is enabled at -O and above.
3502 2006-05-26 Steven Bosscher <steven@gcc.gnu.org>
3505 * config/alpha/alpha.c (alpha_does_function_need_gp): Skip jump
3508 2006-05-25 Mark Mitchell <mark@codesourcery.com>
3511 * gimplify.c (gimplify_decl_expr): Do not call gimple_add_tmp_var
3512 for anonymous variables explicitly declared by front ends.
3514 2006-05-25 Eric Botcazou <ebotcazou@adacore.com>
3516 * tree-ssa-structalias.h (PTR_IS_REF_ALL): New macro.
3517 (struct alias_info): Add new field ref_all_symbol_mem_tag.
3518 * tree-ssa-alias.c (compute_may_aliases): If the program contains
3519 ref-all pointers, run a finalization pass for them.
3520 (compute_flow_insensitive_aliasing): Skip ref-all pointers.
3521 (finalize_ref_all_pointers): New function.
3522 (is_escape_site): Return ESCAPE_BAD_CAST for conversion from a
3523 regular pointer type to a ref-all pointer type.
3524 (get_tmt_for): Return the special memory tag for ref-all pointers.
3526 2006-05-25 Richard Guenther <rguenther@suse.de>
3529 * fold-const.c (fold_binary): Do not look at the stripped
3530 op0 for (a OP c1) OP c2 to a OP (c1+c2) shift optimization.
3532 2006-05-25 Eric Botcazou <ebotcazou@adacore.com>
3534 * tree-vrp.c (extract_range_from_assert): Set the range to VARYING
3535 for LT and GT if the computed range is effectively empty.
3537 2006-05-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3540 * pa/pa-modes.def: Use mips_single_format, mips_double_format and
3541 mips_quad_format formats instead of ieee_single_format,
3542 ieee_double_format and ieee_quad_format formats, respectively.
3544 2006-05-24 Zdenek Dvorak <dvorakz@suse.cz>
3546 PR tree-optimization/27639
3547 PR tree-optimization/26719
3548 * tree-vrp.c (adjust_range_with_scev): Use scev_direction and adjust
3549 call to scev_probably_wraps_p.
3550 * tree-ssa-loop-niter.c (compare_trees, convert_step_widening,
3551 used_in_pointer_arithmetic_p, convert_step): Removed.
3552 (nowrap_type_p): New function.
3553 (scev_probably_wraps_p): Rewritten.
3554 * tree-scalar-evolution.c (instantiate_parameters_1): Do not call
3555 chrec_convert if chrec_convert_aggressive might have been used.
3556 * tree-chrec.c (convert_affine_scev, chrec_convert_1,
3557 scev_direction): New functions.
3558 (chrec_convert): Changed to a wrapper over chrec_convert_1.
3559 * tree-ssa-loop-ivopts.c (idx_find_step): Use convert_affine_scev
3560 instead of convert_step.
3561 * tree-flow.h (scev_probably_wraps_p): Declaration changed.
3562 (convert_step): Declaration removed.
3563 (convert_affine_scev, nowrap_type_p, scev_direction): Declare.
3565 2006-05-23 Kenneth Zadeck <zadeck@naturalbridge.com>
3567 * df-core.c: Added to header comments.
3568 * df.h (df_ru_bb_info, df_rd_bb_info, df_lr_bb_info,
3569 df_ur_bb_info, df_urec_bb_info): Added comments.
3570 * df-problems (df_ref_bitmap, ru, rd, lr, ur,
3571 urec, ri problems): Fixed header comments.
3572 (df_ru_transfer_function): Fixed in-out set dyslexia when copying
3573 code from df_rd_transfer_function.
3575 2006-05-23 Richard Sandiford <richard@codesourcery.com>
3577 * libgcc2.c (LIBGCC2_MAX_UNITS_PER_WORD): New macro.
3578 (LIBGCC2_UNITS_PER_WORD): Use LIBGCC2_MAX_UNITS_PER_WORD rather than
3579 MIN_UNITS_PER_WORD to set the default. Also use it in the guard.
3581 2006-05-23 Joseph Myers <joseph@codesourcery.com>
3583 * expr.c (undefined_operand_subword_p): New.
3584 (emit_move_multi_word): Do not generate move from undefined bits
3585 of a paradoxical subreg.
3587 2006-05-23 Richard Sandiford <richard@codesourcery.com>
3589 PR rtl-optimization/27736
3590 * combine.c (replaced_rhs_value): New variable.
3591 (combine_instructions): Set it.
3592 (distribute_notes): When distributing a note in replaced_rhs_insn,
3593 check whether the value was used in replaced_rhs_value.
3595 2006-05-23 Andrew MacLeod <amacleod@redhat.com>
3598 * tree-ssa-loop-im.c (determine_invariantness_stmt): Use
3599 add_referenced_var instead of add_referenced_tmp_var.
3600 * tree-complex.c (create_one_component_var): Use add_referenced_var.
3601 * tree-ssa-loop-manip.c (create_iv, tree_unroll_loop): Use
3603 * tree-tailcall.c (adjust_accumulator_values, adjust_return_value,
3604 tree_optimize_tail_calls_1): Use add_referenced_var.
3605 * tree-ssa-loop-ivopts.c (create_new_iv): Use add_referenced_var.
3606 * tree-ssa-alias.c (create_memory_tag, create_global_var, create_sft):
3607 Use add_referenced_var.
3608 * tree-if-conv.c (ifc_temp_var): Use add_referenced_var.
3609 * gimplify.c (force_gimple_operand): Use add_referenced_var.
3610 * tree-ssa-phiopt.c (conditional_replacement, abs_replacement):
3611 Use add_referenced_var.
3612 * tree-dfa.c (struct walk_state): Remove.
3613 (find_referenced_vars): Remove walk state and vars_found hash table.
3614 (make_rename_temp): Use add_referenced_var.
3615 (find_vars_r): Pass less parameters to add_referenced_var.
3616 (referenced_var_p): New. Is var in referenced_var hash table.
3617 (referenced_var_insert): Assert var isn't already in hash table.
3618 (add_referenced_var): Don't need walk_state parameter. Add var if it
3619 isn't already in the hash table.
3620 (add_referenced_tmp_var): Remove.
3621 (find_new_referenced_vars_1): Use add_referenced_var.
3622 * tree-ssa-pre.c (create_expression_by_pieces,
3623 insert_into_preds_of_block, insert_extra_phis, realify_fake_stores):
3624 Use add_referenced_var.
3625 * tree-vect-patterns.c (vect_pattern_recog_1): Use add_referenced_var.
3626 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
3627 lambda_loopnest_to_gcc_loopnest, perfect_nestify): Use
3629 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
3630 vect_create_data_ref_ptr, vect_create_destination_var,
3631 vect_init_vector, vect_build_loop_niters,
3632 vect_generate_tmps_on_preheader, vect_update_ivs_after_vectorizer,
3633 vect_gen_niters_for_prolog_loop, vect_create_cond_for_align_checks):
3634 Use add_referenced_var.
3635 * tree-outof-ssa.c (create_temp): Use add_referenced_var.
3636 * tree-flow.h (add_referenced_tmp_var): Remove prototype
3637 (add_referenced_var): Add prototype.
3638 * tree-ssa-structalias.c (get_constraint_for,
3639 intra_create_variable_infos): Use add_referenced_var.
3641 2006-05-23 Alexandre Oliva <aoliva@redhat.com>
3643 * simplify-rtx.c (simplify_subreg): Adjust REG_OFFSET for
3644 big-endian paradoxical subregs.
3645 * var-tracking.c (struct micro_operation_def): Document that,
3646 for modify micro operations, insn is the subsequent instruction.
3647 (var_reg_delete_and_set, var_mem_delete_and_set): Split into...
3648 (var_reg_set, var_mem_set): ... new functions.
3649 (add_stores): Record subsequent insn.
3650 (compute_bb_dataflow): Use new functions for MO_USE.
3651 (emit_notes_in_bb): Use new functions for MO_USE. Emit use
3652 notes after the insn, and modify notes before the insn known
3653 to be the subsequent one.
3654 (vt_initialize): Invert sorting of MO_CLOBBERs and MO_SETs.
3656 2006-05-23 Kazu Hirata <kazu@codesourcery.com>
3659 * config/i386/i386.c (ix86_expand_builtin): Use
3660 gen_sse3_monitor64 for TARGET_64BIT.
3662 2006-05-22 Kenneth Zadeck <zadeck@naturalbridge.com>
3664 PR rtl-optimization/26375
3665 PR rtl-optimization/26855
3666 * df-problems (df_ru_bb_local_compute_process_def): Removed update
3668 (df_ru_bb_local_compute): Reversed statements and removed bogus
3669 comment explaining why they should be in wrong order.
3670 (df_ru_dump, df_rd_dump): Enhanced debug info.
3671 * modulo-sched.c (sms_schedule, tree_opt_pass pass_sms): Enhanced
3673 * ddg.c (add_deps_for_def): Converted use of reaching defs to
3674 reaching uses and fixed space problem.
3676 2006-05-23 Jan Hubicka <jh@suse.cz>
3678 * cgraphunit.c (decide_is_function_needed): Also nested functions
3679 and functions declared inline can be optimized out at -O0.
3681 2006-05-22 Gerald Pfeifer <gerald@pfeifer.com>
3683 * doc/install.texi (Configuration): Remove reference to CrossGCC
3687 2006-05-22 Kazu Hirata <kazu@codesourcery.com>
3690 * config/i386/i386.c (ix86_expand_branch): Jump to simple if
3691 ix86_compare_emitted is non-NULL.
3693 2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3696 * stmt.c (expand_asm_operands): Skip asm statement with erroneous
3699 2006-05-22 Richard Sandiford <richard@codesourcery.com>
3701 PR rtl-optimization/25514
3702 * combine.c (replaced_rhs_insn): New variable.
3703 (combine_instructions): Set replaced_rhs_insn when trying to replace
3704 a SET_SRC with a REG_EQUAL note.
3705 (distribute_notes): Use replaced_rhs_insn when determining the live
3706 range of a REG_DEAD register.
3708 2006-18-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
3709 Anatoly Sokolov <aesok@post.ru>
3711 * config/avr/avr.c (avr_mcu_types): Add support for attiny261,
3712 attiny461, attiny861, attiny25, attiny45, attiny85, attiny24,
3713 attiny44, attiny84, at90pwm2, at90pwm3, atmega165p, atmega169p,
3714 atmega164p, atmega324p, atmega644p, atmega644, atmega329,
3715 atmega3290, atmega649, atmega6490, atmega406, atmega640,
3716 atmega1280, atmega1281, at90can32, at90can64, at90usb646,
3717 at90usb647, at90usb1286 and at90usb1287 devices.
3718 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
3719 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
3721 2006-05-22 Richard Sandiford <richard@codesourcery.com>
3723 * mklibgcc.in (lib2funcs): Remove _floatdidf from initial assignment.
3725 2006-05-22 Richard Guenther <rguenther@suse.de>
3728 2006-01-31 Richard Guenther <rguenther@suse.de>
3729 Paolo Bonzini <bonzini@gnu.org>
3731 * doc/install.texi (--disable-libgcc-math): Document.
3733 2006-05-22 Richard Guenther <rguenther@suse.de>
3736 2006-01-31 Richard Guenther <rguenther@suse.de>
3738 * doc/invoke.texi (-msselibm): Document.
3739 * target.h (expand_library_builtin): New target hook.
3740 * builtins.c (expand_builtin): Use expand_library_builtin.
3741 (default_expand_library_builtin): New function.
3742 * gcc.c (LINK_GCC_MATH_SPEC): Define.
3743 (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
3744 (link_gcc_math_spec): Declare.
3745 (static_specs): Add link_gcc_math_spec.
3746 * expr.h (default_expand_library_builtin): Declare.
3747 * target-def.h (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
3748 (TARGET_INITIALIZER): Add TARGET_EXPAND_LIBRARY_BUILTIN.
3749 * config/i386/i386.h: Provide LINK_GCC_MATH_SPEC.
3750 * config/i386/i386.opt (msselibm): New target option.
3751 * config/i386/i386.c (ix86_builtin_function_variants): New array.
3752 (ix86_init_sse_abi_builtins): New function.
3753 (ix86_expand_library_builtin): Likewise.
3754 (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
3755 (override_options): Handle error conditions wrt -msselibm.
3756 (ix86_builtins): Add function codes for SSE2 ABI builtins.
3757 (ix86_init_builtins): Call ix86_init_sse_abi_builtins.
3758 * doc/extend.texi (__builtin_sse2_*): Document new target specific
3761 2006-05-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3764 * c-common.c (self_promoting_args_p): Skip erroneous args.
3767 * c-decl.c (finish_struct): Skip erroneous fields.
3769 2006-05-22 Nick Clifton <nickc@redhat.com>
3771 * config/cris/cris.opt (march): Remove VarExists attribute.
3772 (max-stackframe=): Likewise.
3774 2006-05-22 Kazu Hirata <kazu@codesourcery.com>
3776 * doc/rtl.texi: Fix a typo.
3777 * see.c: Fix comment typos.
3779 * tree-ssa-structalias.h (alias_info): Remove num_references.
3781 2006-05-21 Mike Stump <mrs@apple.com>
3783 * config/darwin-c.c (BAD): Conditionalize on OPT_Wpragmas.
3785 (darwin_pragma_options): Use BAD instead.
3786 (darwin_pragma_unused): Likewise.
3787 (darwin_pragma_ms_struct): Likewise.
3789 2006-05-21 David Edelsohn <edelsohn@gnu.org>
3791 * config/rs6000/rs6000.md (floatsitf2): Remove constraints.
3793 2006-05-21 Kazu Hirata <kazu@codesourcery.com>
3795 PR rtl-optimization/27671
3796 * simplify-rtx.c (simplify_relational_operation_1): Fix
3797 simplifications of (eq/ne (xor x y) y) and
3798 (eq/ne (xor x y) x).
3800 PR tree-optimization/26622.
3801 * fold-const.c (fold_ternary) <COND_EXPR>: Call fold_convert
3804 2006-05-21 Bernhard Fischer <aldot@gcc.gnu.org>
3806 * tree-cfg.c: Prune whitespace.
3807 (debug_tree_cfg): Point to correct header containing the
3810 2006-05-21 Bernhard Fischer <aldot@gcc.gnu.org>
3813 * cgraphunit.c (verify_cgraph_node): Typo in error message.
3815 2006-05-20 Andrew Pinski <pinskia@physics.uc.edu>
3818 * cgraphunit.c (cgraph_optimize): Don't run ipa passes if error
3819 or sorry count is non zero.
3821 2006-05-20 Andreas Schwab <schwab@suse.de>
3823 * config/pa/pa-linux.h (STRING_ASM_OP): Prepend and append a tab.
3825 2006-05-19 Daniel Berlin <dberlin@dberlin.org>
3826 Kenneth Zadeck <zadeck@naturalbridge.com>
3828 PR rtl-optimization/26855
3830 * df-scan.c (mw_reg_pool, mw_link_pool): New allocation pools for
3832 (df_scan_alloc): Added code to properly handle multiword hard
3833 registers and add all_blocks parameter.
3834 (df_scan_free_internal, df_insn_refs_delete, df_ref_record): Added
3835 code to properly handle multiword hard registers.
3836 (df_rescan_blocks): Added code to remove deleted blocks from
3838 (df_ref_create_structure, df_ref_record): Added code to properly
3840 (df_ref_record_1): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER
3841 and set DF_REF_PARTIAL.
3842 (df_defs_record): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER.
3843 (df_uses_record): Added DF_REF_PARTIAL for subreg.
3844 (df_scan_add_problem): Added flags parameter.
3845 (df_ref_create_structure): Changed switching structure.
3846 (df_bb_refs_record): Fixed case where duplicate artificial refs
3847 were created. Changed location of flags.
3848 (df_record_entry_block_defs): Added code to make stack pointer
3849 live in entry block. Refined cases where frame pointer is needed.
3850 Changed location of flags.
3851 (df_record_exit_block_uses, df_insn_refs_record): Changed location of flags.
3852 (df_set_state): Removed function.
3853 (df_grow_reg_info, df_reg_chain_unlink, df_ref_remove,
3854 df_insn_create_insn_record, df_insn_refs_delete,
3855 df_ref_create_structure): Formatting changes.
3856 * df-core.c (df_mvs_dump, df_set_flags, df_clear_flags,
3857 df_delete_basic_block): New function.
3858 (df_init): Changed location of flags.
3859 (df_add_problem): Added flags parameter and the way flags are
3861 (df_insn_uid_debug, df_ref_debug, debug_df_defno, debug_df_ref,
3862 debug_df_chain): Improved debugging output.
3863 (df_insn_debug, df_insn_uid_debug): Added multiword reg support.
3864 (df_refs_chain_dump): Removed df parameter.
3865 (df_iterative_dataflow): Added consistency check.
3866 (df_prune_to_subcfg): Made public.
3867 (df_analyze_problem): Added blocks_to_init parameter and made
3869 (df_ref_record, df_bb_refs_record, df_mark_reg,
3870 df_record_exit_block_uses): Whitespace changes.
3871 (df_dump): Whitespace changes.
3872 * df.h: Some reordering to remove forward references.
3873 (df_ref_flags.DF_REF_MW_HARDREG, DF_REF_PARTIAL,
3874 DF_REF_MUST_CLOBBER, DF_REF_MAY_CLOBBER): New fields.
3875 (df_ref_flags.DF_REF_CLOBBER): Deleted field.
3876 (dataflow.flags): New field.
3877 (df.flag): Deleted field.
3878 (df_alloc_function): Added additional bitmap parameter.
3879 (df_dependent_problem_function): New type.
3880 (df_problem.changeable_flags): New field.
3881 (df_ref_flags.DF_REF_DIES_AFTER_THIS_USE, DF_SCAN_INITIAL,
3882 DF_SCAN_GLOBAL, DF_SCAN_POST_ALLOC, df_state): Removed.
3883 (df_mw_hardreg): New struct.
3884 (DF_INSN_UID_MWS): New macro.
3885 (df_refs_chain_dump, df_ref_debug, df_chain_dump): Removed df
3887 (df_add_problem, df_ru_add_problem, df_rd_add_problem,
3888 df_lr_add_problem, df_ur_add_problem, df_urec_add_problem,
3889 df_ri_add_problem, df_scan_add_problem): Added flags parameter.
3890 (df_set_state): Removed function.
3891 (df_set_flags, df_clear_flags, df_delete_basic_block) New functions.
3892 * df-problems.c (df_chain_dump): Removed df parameter.
3893 (df_ru_alloc, df_rd_alloc, df_lr_alloc, df_ur_alloc,
3894 df_urec_alloc, df_chain_alloc, df_ri_alloc): Added all blocks
3896 (df_ru_alloc, df_rd_alloc): Now resets all blocks.
3897 (df_rd_bb_local_compute_process_def, df_ur_bb_local_compute,
3898 df_chain_create_bb, df_create_unused_note, df_ri_bb_compute):
3899 Split DF_REF_CLOBBER into DF_REF_MAY_CLOBBER and
3900 DF_REF_MUST_CLOBBER cases.
3901 (df_ru_bb_local_compute_process_def,
3902 df_rd_bb_local_compute_process_def, df_lr_bb_local_compute,
3903 df_lr_bb_local_compute, df_ur_bb_local_compute,
3904 df_chain_create_bb): Made subreg aware.
3905 (df_ru_bb_local_compute, df_rd_bb_local_compute,
3906 df_lr_bb_local_compute, df_lr_bb_local_compute,
3907 df_chain_create_bb): Cleanup to use proper macros.
3908 (df_ur_local_finalize, df_urec_local_finalize): Removed unnecessary
3909 code to fixup bitvectors.
3910 (df_ri_alloc): Cleared lifetime.
3911 (df_ignore_stack_reg, df_kill_notes, df_set_notes_for_mw,
3912 df_create_unused_note): New function.
3913 (df_ri_bb_compute, df_ri_compute): Added code to create/update
3914 REG_DEAD and REG_UNUSED notes as well as register information.
3915 (df_ru_dump, df_rd_dump, df_lr_dump, df_ur_dump, df_urec_dump,
3916 df_chains_dump): Fixed crash if problem was never run.
3917 (df_ru_add_problem, df_rd_add_problem, df_lr_add_problem,
3918 df_ur_add_problem, df_urec_add_problem, df_chain_add_problem,
3919 df_ri_add_problem): Processes flags in uniform manner.
3920 (df_ru_alloc, df_ru_local_compute, df_ru_confluence_n, df_ru_free,
3921 df_ru_dump, df_rd_local_compute, df_rd_confluence_n, df_rd_free,
3922 df_rd_dump, df_urec_free_bb_info): Formatting changes.
3923 (df_ru_free_bb_info, df_ru_bb_local_compute, df_ru_dump,
3924 df_rd_free_bb_info, df_rd_bb_local_compute_process_def,
3925 df_rd_bb_local_compute, df_rd_dump, df_lr_free_bb_info,
3926 df_lr_bb_local_compute, df_lr_local_compute, df_ur_free_bb_info,
3927 df_ur_dump, df_urec_free_bb_info, df_urec_dump,
3928 df_chain_create_bb, df_ri_bb_compute): Whitespace changes.
3929 * modulo-sched.c (sms_schedule): Added flag parameter to calls.
3930 * see.c (see_initialize_data): Ditto.
3931 * final.c (rest_of_clean_state) Added regstack_completed.
3932 * rtl.h (regstack_completed): Ditto.
3933 * reg-stack.c (regstack_completed): Ditto.
3935 2006-05-19 Mike Stump <mrs@apple.com>
3937 * c-tree.h (default_conversion): Remove.
3938 * c-common.h (default_conversion): Add.
3940 2006-05-19 Zdenek Dvorak <dvorakz@suse.cz>
3942 * tree-vrp.c (valid_value_p): New function.
3943 (adjust_range_with_scev): Fail if the value of bound is not
3946 2006-05-19 Richard Sandiford <richard@codesourcery.com>
3948 * config/mips/linux-unwind.h: Include <asm/unistd.h>
3949 (mips_fallback_frame_state): Use syscall numbers to determine
3950 the appropriate li instruction for the current ABI. Only use
3951 __NR_sigreturn for o32.
3953 2006-05-19 Nicolas Setton <setton@adacore.com>
3955 * langhooks.h (struct lang_hooks): Add dwarf_name language hook.
3956 * langhooks.c (lhd_dwarf_name): New function.
3957 * langhooks-def.h (lhd_dwarf_name): Declare.
3958 (LANG_HOOKS_DWARF_NAME): New macro, defaults to lhd_dwarf_name.
3959 * dwarf2out.c (dwarf2_name): Use the dwarf_name language hook.
3960 * ada/misc.c (gnat_dwarf_name): New function.
3961 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
3963 2006-05-19 Richard Sandiford <richard@codesourcery.com>
3965 * libgcc2.c (MIN_UNITS_PER_WORD): Move default definition from
3967 (LIBGCC2_UNITS_PER_WORD): Provide default definition, using old
3968 MIN_UNITS_PER_WORD logic from libgcc2.h. Do nothing if
3969 LIBGCC2_UNITS_PER_WORD > MIN_UNITS_PER_WORD.
3970 * libgcc2.h (MIN_UNITS_PER_WORD): Remove definition from here.
3971 Use LIBGCC2_UNITS_PER_WORD rather than MIN_UNITS_PER_WORD to
3972 determine the size of Wtype, etc.
3973 * mklibgcc.in (LIB2_SIDITI_CONV_FUNCS): New argument.
3974 (swfloatfuncs): New variable.
3975 (dwfloatfuncs): Likewise.
3976 (lib2funcs): Remove floating-point conversion functions from
3977 initial assignment. Use LIB2_SIDITI_CONV_FUNCS to determine
3978 the set of conversion routines needed. Allow entries to specify
3979 an object name, filename and word size. Update users accordingly.
3980 * Makefile.in (libgcc.mk): Pass LIB2_SIDITI_CONV_FUNCS.
3981 * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Define.
3985 2006-02-08 Roger Sayle <roger@eyesopen.com>
3988 * config/fixtfdi.c: New libgcc source file.
3989 * config/fixunstfdi.c: New source file.
3990 * config/floatditf.c: New source file.
3991 * config/floatunditf.c: New souce file.
3992 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Include the new source
3993 files above instead of config/mips/_tilib.c.
3994 * config/mips/t-linux64 (LIB2FUNCS_EXTRA): Likewise.
3996 2006-05-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3998 * pa/t-hpux-shlib (SHLIB_LINK): Remove `-lc'.
3999 * pa/pa-hpux11.h (LIB_SPEC): Update comment.
4001 2006-05-18 Mike Stump <mrs@apple.com>
4003 Fix up vla, vm and [*] sematics.
4009 * c-tree.h (struct c_arg_info): Add had_vla_unspec.
4010 (c_vla_unspec_p): Add.
4011 (c_vla_type_p): Add.
4012 * c-decl.c (struct c_scope): Add had_vla_unspec.
4013 (build_array_declarator): Add support for [*].
4014 (grokdeclarator): Likewise.
4015 (grokparms): Likewise.
4016 (get_parm_info): Likewise.
4017 * c-objc-common.c (c_vla_unspec_p): Likewise.
4018 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Likewise.
4019 * c-parser.c (c_parser_typeof_specifier): Evaluate arguments to
4020 typeof when argument is a variably modified type not inside sizeof or alignof.
4021 (c_parser_direct_declarator_inner): Propagate errors.
4022 (c_parser_sizeof_expression): Add support for [*].
4023 (c_parser_parms_declarator): Initialize had_vla_unspec.
4024 (c_parser_parms_list_declarator): Likewise.
4025 * c-typeck.c (c_vla_type_p): Add.
4026 (composite_type): Add support for vla compositing.
4027 (comptypes_internal): Add support for vla compatibility.
4028 (c_expr_sizeof_expr): Evaluate vla arguments.
4029 * tree.c (variably_modified_type_p): Update comment for [*].
4031 2006-05-18 Michael Matz <matz@suse.de>
4034 * config.host: Make assignments to host_xmake_file cumulative.
4035 * config.host (*-darwin*): Test $host, not $target.
4037 2006-05-12 Stuart Hastings <stuart@apple.com>
4039 * config/i386/i386.opt (-mstackrealign): New flag.
4040 * config/i386/i386.c (force_align_arg_pointer): New attribute.
4041 (ix86_handle_cconv_attribute): Emit error when
4042 force_align_arg_pointer attribute collides with too many regparms.
4043 (ix86_function_regparm): Limit regparms when used with
4044 force_align_arg_pointer attribute. (ix86_internal_arg_pointer):
4045 Support stack-realigning prologue in non-main functions. Emit
4046 warning for nested functions under -mstackrealign, emit error for
4047 nested functions with force_align_arg_pointer attribute.
4048 * doc/extend.texi (force_align_arg_pointer): Document it.
4049 * doc/invoke.texi (-mstackrealign): Document it.
4051 2006-05-17 Kazu Hirata <kazu@codesourcery.com>
4053 PR rtl-optimization/27477
4054 * combine.c (try_combine): Don't split a parallel consisting
4055 of two sets into two individual sets if both sets reference
4058 2006-05-17 H.J. Lu <hongjiu.lu@intel.com>
4060 * config/arm/arm.opt (target_fpe_name): Remove VarExists.
4061 * config/rs6000/rs6000.opt (TARGET_NO_FP_IN_TOC): Likewise.
4063 * doc/options.texi (VarExists): Updated.
4065 2006-05-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4067 * unwind-dw2.c: Add declarations for uw_update_context and
4069 * pa/hpux-unwind.h (pa_fallback_frame_state): When an export stub is
4070 detected, advance frame state and context once to skip over stub.
4072 2006-05-17 Sebastian Pop <pop@cri.ensmp.fr>
4076 * tree-loop-linear.c (linear_transform_loops): Don't test perfect_nest_p.
4077 Call rewrite_into_loop_closed_ssa only when something changed.
4078 * lambda.h (gcc_loopnest_to_lambda_loopnest): Update declaration.
4079 * lambda-code.c (can_convert_to_perfect_nest): Declared.
4080 (gcc_loopnest_to_lambda_loopnest): Removed need_perfect_nest parameter.
4081 Test for perfect_nest_p here. Fix formating.
4082 (replace_uses_equiv_to_x_with_y): Fix formating.
4083 (stmt_uses_op): Removed.
4084 (can_convert_to_perfect_nest): Removed loopivs parameter.
4085 Complete the test by checking the scalar dependences.
4086 (perfect_nestify): Remove the test for can_convert_to_perfect_nest.
4089 2005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>
4092 From Dan Kegel <dank@kegel.com>:
4093 * Makefile.in: Strip "dir/../" combinations from SYSTEM_INCLUDE_DIR.
4095 2006-05-17 Eric Botcazou <ebotcazou@adacore.com>
4097 * tree.c (variably_modified_type_p) <ARRAY_TYPE>: Return true
4098 if the element type is variably modified without recursing.
4100 2006-05-17 Sebastian Pop <pop@cri.ensmp.fr>
4103 * tree-loop-linear.c (try_interchange_loops): Test for
4104 no data dependences.
4106 2006-05-17 Zdenek Dvorak <dvorakz@suse.cz>
4108 PR tree-optimization/27548
4109 * tree-scalar-evolution.c (scev_const_prop): Do not prolong life
4110 range of ssa names that appear on abnormal edges.
4111 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Export.
4112 * tree-flow.h (contains_abnormal_ssa_name_p): Declare.
4114 2005-05-17 Bernd Schmidt <bernd.schmidt@analog.com>