OSDN Git Service

* tracer.c (tracer): Don't take FLAGS argument. Assert we are
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2007-03-23  Steven Bosscher  <steven@gcc.gnu.org>
2
3         * tracer.c (tracer): Don't take FLAGS argument.  Assert we are
4         in cfglayout mode.  Don't go into and out of cfglayout mode.
5         Link the blocks in the order of the constructed traces.
6         (rest_of_handle_tracer): Adjust call to tracer.
7         * loop-init.c (rtl_loop_init): Assert we are in cfglayout mode.
8         Don't go into cfglayout mode.
9         (rtl_loop_done): Don't go out of cfglayout mode.
10         * cfglayout.c (relink_block_chain): New function, split out from...
11         (fixup_reorder_chain): ...here.  Remove redundant checking.
12         (cfg_layout_finalize): Don't clear the header, footer, and aux
13         fields here, move the code to do so to relink_block_chain.  Likewise
14         for free_original_copy_tables.
15         * rtl.h (tracer): Update prototype.
16         * bb-reorder.c (reorder_basic_blocks): Don't take FLAGS argument.
17         Assert we are in cfglayout mode.  Don't go into and out of cfglayout
18         mode.  Use relink_block_chain to serialize the CFG according to the
19         new basic block order.  Move targetm.cannot_modify_jumps_p check from
20         here...
21         (gate_handle_reorder_blocks): ...to here.
22         (duplicate_computed_gotos): Move targetm.cannot_modify_jumps_p check
23         from here...
24         (gate_duplicate_computed_gotos): ...to here.
25         (rest_of_handle_reorder_blocks): Don't see if anything has changed,
26         something always changes when going into and out of cfglayout mode.
27         Perform an expensive cfg cleanup while going into cfglayout mode.
28         Always update liveness information on HAVE_conditional_execution
29         targets.  Reserialize the basic blocks and go out of cfglayout mode.
30         * reg-stack.c: Include cfglayout.h.
31         (rest_of_handle_stack_regs): Go into and out of cfglayout mode around
32         the call to reorder_basic_blocks.
33         * basic-block.h (reorder_basic_blocks): Update prototype.
34         (relink_block_chain): New prototype.
35         * passes.c (pass_outof_cfg_layout_mode): Move after cse2.
36
37 Index: tracer.c
38 ===================================================================
39 --- tracer.c    (revision 122857)
40 +++ tracer.c    (working copy)
41 @@ -357,24 +357,25 @@ layout_superblocks (void)
42      }
43  }
44  
45 -/* Main entry point to this file.  FLAGS is the set of flags to pass
46 -   to cfg_layout_initialize().  */
47 +/* Main entry point to this file.  */
48  
49  void
50 -tracer (unsigned int flags)
51 +tracer (void)
52  {
53 +  gcc_assert (current_ir_type () == IR_RTL_CFGLAYOUT);
54 +
55    if (n_basic_blocks <= NUM_FIXED_BLOCKS + 1)
56      return;
57  
58 -  cfg_layout_initialize (flags);
59    mark_dfs_back_edges ();
60    if (dump_file)
61      dump_flow_info (dump_file, dump_flags);
62    tail_duplicate ();
63    layout_superblocks ();
64 +  relink_block_chain (/*stay_in_cfglayout_mode=*/true);
65 +  
66    if (dump_file)
67      dump_flow_info (dump_file, dump_flags);
68 -  cfg_layout_finalize ();
69  
70    /* Merge basic blocks in duplicated traces.  */
71    cleanup_cfg (CLEANUP_EXPENSIVE);
72 @@ -392,7 +393,7 @@ rest_of_handle_tracer (void)
73  {
74    if (dump_file)
75      dump_flow_info (dump_file, dump_flags);
76 -  tracer (0);
77 +  tracer ();
78    reg_scan (get_insns (), max_reg_num ());
79    return 0;
80  }
81 Index: loop-init.c
82 ===================================================================
83 --- loop-init.c (revision 122857)
84 +++ loop-init.c (working copy)
85 @@ -171,12 +171,11 @@ struct tree_opt_pass pass_loop2 =
86  static unsigned int
87  rtl_loop_init (void)
88  {
89 +  gcc_assert (current_ir_type () == IR_RTL_CFGLAYOUT);
90 +  
91    if (dump_file)
92      dump_flow_info (dump_file, dump_flags);
93  
94 -  /* Initialize structures for layout changes.  */
95 -  cfg_layout_initialize (0);
96 -
97    loop_optimizer_init (LOOPS_NORMAL);
98    return 0;
99  }
100 @@ -204,17 +203,9 @@ struct tree_opt_pass pass_rtl_loop_init 
101  static unsigned int
102  rtl_loop_done (void)
103  {
104 -  basic_block bb;
105 -
106    loop_optimizer_finalize ();
107    free_dominance_info (CDI_DOMINATORS);
108  
109 -  /* Finalize layout changes.  */
110 -  FOR_EACH_BB (bb)
111 -    if (bb->next_bb != EXIT_BLOCK_PTR)
112 -      bb->aux = bb->next_bb;
113 -  cfg_layout_finalize ();
114 -
115    cleanup_cfg (CLEANUP_EXPENSIVE);
116    delete_trivially_dead_insns (get_insns (), max_reg_num ());
117    reg_scan (get_insns (), max_reg_num ());
118 Index: cfglayout.c
119 ===================================================================
120 --- cfglayout.c (revision 122858)
121 +++ cfglayout.c (working copy)
122 @@ -634,13 +634,83 @@ reemit_insn_block_notes (void)
123    reorder_blocks ();
124  }
125  \f
126 +
127 +/* Link the basic blocks in the correct order, compacting the basic
128 +   block queue while at it.  This also clears the visited flag on
129 +   all basic blocks.  If STAY_IN_CFGLAYOUT_MODE is false, this function
130 +   also clears the basic block header and footer fields.
131 +
132 +   This function is usually called after a pass (e.g. tracer) finishes
133 +   some transformations while in cfglayout mode.  The required sequence
134 +   of the basic blocks is in a linked list along the bb->aux field.
135 +   This functions re-links the basic block prev_bb and next_bb pointers
136 +   accordingly, and it compacts and renumbers the blocks.  */
137 +
138 +void
139 +relink_block_chain (bool stay_in_cfglayout_mode)
140 +{
141 +  basic_block bb, prev_bb;
142 +  int index;
143 +
144 +  /* Maybe dump the re-ordered sequence.  */
145 +  if (dump_file)
146 +    {
147 +      fprintf (dump_file, "Reordered sequence:\n");
148 +      for (bb = ENTRY_BLOCK_PTR->next_bb, index = NUM_FIXED_BLOCKS;
149 +          bb;
150 +          bb = bb->aux, index++)
151 +       {
152 +         fprintf (dump_file, " %i ", index);
153 +         if (get_bb_original (bb))
154 +           fprintf (dump_file, "duplicate of %i ",
155 +                    get_bb_original (bb)->index);
156 +         else if (forwarder_block_p (bb)
157 +                  && !LABEL_P (BB_HEAD (bb)))
158 +           fprintf (dump_file, "compensation ");
159 +         else
160 +           fprintf (dump_file, "bb %i ", bb->index);
161 +         fprintf (dump_file, " [%i]\n", bb->frequency);
162 +       }
163 +    }
164 +
165 +  /* Now reorder the blocks.  */
166 +  prev_bb = ENTRY_BLOCK_PTR;
167 +  bb = ENTRY_BLOCK_PTR->next_bb;
168 +  for (; bb; prev_bb = bb, bb = bb->aux)
169 +    {
170 +      bb->prev_bb = prev_bb;
171 +      prev_bb->next_bb = bb;
172 +    }
173 +  prev_bb->next_bb = EXIT_BLOCK_PTR;
174 +  EXIT_BLOCK_PTR->prev_bb = prev_bb;
175 +
176 +  /* Then, clean up the aux and visited fields.  */
177 +  FOR_ALL_BB (bb)
178 +    {
179 +      bb->aux = NULL;
180 +      bb->il.rtl->visited = 0;
181 +      if (!stay_in_cfglayout_mode)
182 +       bb->il.rtl->header = bb->il.rtl->footer = NULL;
183 +    }
184 +
185 +  /* Maybe reset the original copy tables, they are not valid anymore
186 +     when we renumber the basic blocks in compact_blocks.  If we are
187 +     are going out of cfglayout mode, don't re-allocate the tables.  */
188 +  free_original_copy_tables ();
189 +  if (stay_in_cfglayout_mode)
190 +    initialize_original_copy_tables ();
191 +  
192 +  /* Finally, put basic_block_info in the new order.  */
193 +  compact_blocks ();
194 +}
195 +\f
196 +
197  /* Given a reorder chain, rearrange the code to match.  */
198  
199  static void
200  fixup_reorder_chain (void)
201  {
202 -  basic_block bb, prev_bb;
203 -  int index;
204 +  basic_block bb;
205    rtx insn = NULL;
206  
207    if (cfg_layout_function_header)
208 @@ -654,9 +724,7 @@ fixup_reorder_chain (void)
209    /* First do the bulk reordering -- rechain the blocks without regard to
210       the needed changes to jumps and labels.  */
211  
212 -  for (bb = ENTRY_BLOCK_PTR->next_bb, index = NUM_FIXED_BLOCKS;
213 -       bb != 0;
214 -       bb = bb->aux, index++)
215 +  for (bb = ENTRY_BLOCK_PTR->next_bb; bb; bb = bb->aux)
216      {
217        if (bb->il.rtl->header)
218         {
219 @@ -684,8 +752,6 @@ fixup_reorder_chain (void)
220         }
221      }
222  
223 -  gcc_assert (index == n_basic_blocks);
224 -
225    NEXT_INSN (insn) = cfg_layout_function_footer;
226    if (cfg_layout_function_footer)
227      PREV_INSN (cfg_layout_function_footer) = insn;
228 @@ -838,42 +904,7 @@ fixup_reorder_chain (void)
229         }
230      }
231  
232 -  /* Put basic_block_info in the new order.  */
233 -
234 -  if (dump_file)
235 -    {
236 -      fprintf (dump_file, "Reordered sequence:\n");
237 -      for (bb = ENTRY_BLOCK_PTR->next_bb, index = NUM_FIXED_BLOCKS;
238 -          bb;
239 -          bb = bb->aux, index++)
240 -       {
241 -         fprintf (dump_file, " %i ", index);
242 -         if (get_bb_original (bb))
243 -           fprintf (dump_file, "duplicate of %i ",
244 -                    get_bb_original (bb)->index);
245 -         else if (forwarder_block_p (bb)
246 -                  && !LABEL_P (BB_HEAD (bb)))
247 -           fprintf (dump_file, "compensation ");
248 -         else
249 -           fprintf (dump_file, "bb %i ", bb->index);
250 -         fprintf (dump_file, " [%i]\n", bb->frequency);
251 -       }
252 -    }
253 -
254 -  prev_bb = ENTRY_BLOCK_PTR;
255 -  bb = ENTRY_BLOCK_PTR->next_bb;
256 -  index = NUM_FIXED_BLOCKS;
257 -
258 -  for (; bb; prev_bb = bb, bb = bb->aux, index ++)
259 -    {
260 -      bb->index = index;
261 -      SET_BASIC_BLOCK (index, bb);
262 -
263 -      bb->prev_bb = prev_bb;
264 -      prev_bb->next_bb = bb;
265 -    }
266 -  prev_bb->next_bb = EXIT_BLOCK_PTR;
267 -  EXIT_BLOCK_PTR->prev_bb = prev_bb;
268 +  relink_block_chain (/*stay_in_cfglayout_mode=*/false);
269  
270    /* Annoying special case - jump around dead jumptables left in the code.  */
271    FOR_EACH_BB (bb)
272 @@ -1179,8 +1210,6 @@ break_superblocks (void)
273  void
274  cfg_layout_finalize (void)
275  {
276 -  basic_block bb;
277 -
278  #ifdef ENABLE_CHECKING
279    verify_flow_info ();
280  #endif
281 @@ -1195,19 +1224,8 @@ cfg_layout_finalize (void)
282  
283  #ifdef ENABLE_CHECKING
284    verify_insn_chain ();
285 -#endif
286 -  FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR, NULL, next_bb)
287 -  {
288 -    bb->il.rtl->header = bb->il.rtl->footer = NULL;
289 -    bb->aux = NULL;
290 -    bb->il.rtl->visited = 0;
291 -  }
292 -
293 -#ifdef ENABLE_CHECKING
294    verify_flow_info ();
295  #endif
296 -
297 -  free_original_copy_tables ();
298  }
299  
300  /* Checks whether all N blocks in BBS array can be copied.  */
301 Index: rtl.h
302 ===================================================================
303 --- rtl.h       (revision 122857)
304 +++ rtl.h       (working copy)
305 @@ -2259,7 +2259,7 @@ extern bool expensive_function_p (int);
306  /* In cfgexpand.c */
307  extern void add_reg_br_prob_note (rtx last, int probability);
308  /* In tracer.c */
309 -extern void tracer (unsigned int);
310 +extern void tracer (void);
311  
312  /* In var-tracking.c */
313  extern unsigned int variable_tracking_main (void);
314 Index: bb-reorder.c
315 ===================================================================
316 --- bb-reorder.c        (revision 122857)
317 +++ bb-reorder.c        (working copy)
318 @@ -1889,20 +1889,17 @@ verify_hot_cold_block_grouping (void)
319     the set of flags to pass to cfg_layout_initialize().  */
320  
321  void
322 -reorder_basic_blocks (unsigned int flags)
323 +reorder_basic_blocks (void)
324  {
325    int n_traces;
326    int i;
327    struct trace *traces;
328  
329 -  if (n_basic_blocks <= NUM_FIXED_BLOCKS + 1)
330 -    return;
331 +  gcc_assert (current_ir_type () == IR_RTL_CFGLAYOUT);
332  
333 -  if (targetm.cannot_modify_jumps_p ())
334 +  if (n_basic_blocks <= NUM_FIXED_BLOCKS + 1)
335      return;
336  
337 -  cfg_layout_initialize (flags);
338 -
339    set_edge_can_fallthru_flag ();
340    mark_dfs_back_edges ();
341  
342 @@ -1930,10 +1927,11 @@ reorder_basic_blocks (unsigned int flags
343    FREE (traces);
344    FREE (bbd);
345  
346 +  relink_block_chain (/*stay_in_cfglayout_mode=*/true);
347 +
348    if (dump_file)
349      dump_flow_info (dump_file, dump_flags);
350  
351 -  cfg_layout_finalize ();
352    if (flag_reorder_blocks_and_partition)
353      verify_hot_cold_block_grouping ();
354  }
355 @@ -1976,6 +1974,8 @@ insert_section_boundary_note (void)
356  static bool
357  gate_duplicate_computed_gotos (void)
358  {
359 +  if (targetm.cannot_modify_jumps_p ())
360 +    return false;
361    return (optimize > 0 && flag_expensive_optimizations && !optimize_size);
362  }
363  
364 @@ -1990,9 +1990,6 @@ duplicate_computed_gotos (void)
365    if (n_basic_blocks <= NUM_FIXED_BLOCKS + 1)
366      return 0;
367  
368 -  if (targetm.cannot_modify_jumps_p ())
369 -    return 0;
370 -
371    cfg_layout_initialize (0);
372  
373    /* We are estimating the length of uncond jump insn only once
374 @@ -2198,6 +2195,8 @@ partition_hot_cold_basic_blocks (void)
375  static bool
376  gate_handle_reorder_blocks (void)
377  {
378 +  if (targetm.cannot_modify_jumps_p ())
379 +    return false;
380    return (optimize > 0);
381  }
382  
383 @@ -2206,34 +2205,39 @@ gate_handle_reorder_blocks (void)
384  static unsigned int
385  rest_of_handle_reorder_blocks (void)
386  {
387 -  bool changed;
388    unsigned int liveness_flags;
389 +  basic_block bb;
390  
391    /* Last attempt to optimize CFG, as scheduling, peepholing and insn
392       splitting possibly introduced more crossjumping opportunities.  */
393    liveness_flags = (!HAVE_conditional_execution ? CLEANUP_UPDATE_LIFE : 0);
394 -  changed = cleanup_cfg (CLEANUP_EXPENSIVE | liveness_flags);
395 +  cfg_layout_initialize (CLEANUP_EXPENSIVE | liveness_flags);
396  
397    if (flag_sched2_use_traces && flag_schedule_insns_after_reload)
398      {
399        timevar_push (TV_TRACER);
400 -      tracer (liveness_flags);
401 +      tracer ();
402        timevar_pop (TV_TRACER);
403      }
404  
405    if (flag_reorder_blocks || flag_reorder_blocks_and_partition)
406 -    reorder_basic_blocks (liveness_flags);
407 +    reorder_basic_blocks ();
408    if (flag_reorder_blocks || flag_reorder_blocks_and_partition
409        || (flag_sched2_use_traces && flag_schedule_insns_after_reload))
410 -    changed |= cleanup_cfg (CLEANUP_EXPENSIVE | liveness_flags);
411 +    cleanup_cfg (CLEANUP_EXPENSIVE | liveness_flags);
412  
413    /* On conditional execution targets we can not update the life cheaply, so
414       we deffer the updating to after both cleanups.  This may lose some cases
415       but should not be terribly bad.  */
416 -  if (changed && HAVE_conditional_execution)
417 +  if (HAVE_conditional_execution)
418      update_life_info (NULL, UPDATE_LIFE_GLOBAL_RM_NOTES,
419                       PROP_DEATH_NOTES);
420  
421 +  FOR_EACH_BB (bb)
422 +    if (bb->next_bb != EXIT_BLOCK_PTR)
423 +      bb->aux = bb->next_bb;
424 +  cfg_layout_finalize ();
425 +
426    /* Add NOTE_INSN_SWITCH_TEXT_SECTIONS notes.  */
427    insert_section_boundary_note ();
428    return 0;
429 Index: reg-stack.c
430 ===================================================================
431 --- reg-stack.c (revision 122857)
432 +++ reg-stack.c (working copy)
433 @@ -167,6 +167,7 @@
434  #include "recog.h"
435  #include "output.h"
436  #include "basic-block.h"
437 +#include "cfglayout.h"
438  #include "varray.h"
439  #include "reload.h"
440  #include "ggc.h"
441 @@ -3197,8 +3198,17 @@ rest_of_handle_stack_regs (void)
442                         | (flag_crossjumping ? CLEANUP_CROSSJUMP : 0))
443            && (flag_reorder_blocks || flag_reorder_blocks_and_partition))
444          {
445 -          reorder_basic_blocks (0);
446 -          cleanup_cfg (CLEANUP_EXPENSIVE | CLEANUP_POST_REGSTACK);
447 +         basic_block bb;
448 +
449 +         cfg_layout_initialize (0);
450 +
451 +         reorder_basic_blocks ();
452 +         cleanup_cfg (CLEANUP_EXPENSIVE | CLEANUP_POST_REGSTACK);
453 +
454 +         FOR_EACH_BB (bb)
455 +           if (bb->next_bb != EXIT_BLOCK_PTR)
456 +             bb->aux = bb->next_bb;
457 +         cfg_layout_finalize ();
458          }
459      }
460    else 
461 Index: basic-block.h
462 ===================================================================
463 --- basic-block.h       (revision 122857)
464 +++ basic-block.h       (working copy)
465 @@ -929,7 +929,7 @@ extern bool control_flow_insn_p (rtx);
466  extern rtx get_last_bb_insn (basic_block);
467  
468  /* In bb-reorder.c */
469 -extern void reorder_basic_blocks (unsigned int);
470 +extern void reorder_basic_blocks (void);
471  
472  /* In dominance.c */
473  
474 @@ -976,6 +976,7 @@ unsigned bb_dom_dfs_out (enum cdi_direct
475  
476  extern edge try_redirect_by_replacing_jump (edge, basic_block, bool);
477  extern void break_superblocks (void);
478 +extern void relink_block_chain (bool);
479  extern void check_bb_profile (basic_block, FILE *);
480  extern void update_bb_profile_for_threading (basic_block, int, gcov_type, edge);
481  extern void init_rtl_bb_info (basic_block);
482 Index: passes.c
483 ===================================================================
484 --- passes.c    (revision 122858)
485 +++ passes.c    (working copy)
486 @@ -666,7 +666,6 @@ init_optimization_passes (void)
487        NEXT_PASS (pass_gcse);
488        NEXT_PASS (pass_jump_bypass);
489        NEXT_PASS (pass_rtl_ifcvt);
490 -      NEXT_PASS (pass_outof_cfg_layout_mode);
491        NEXT_PASS (pass_tracer);
492        /* Perform loop optimizations.  It might be better to do them a bit
493          sooner, but we want the profile feedback to work more
494 @@ -685,6 +684,7 @@ init_optimization_passes (void)
495        NEXT_PASS (pass_web);
496        NEXT_PASS (pass_cse2);
497        NEXT_PASS (pass_rtl_fwprop_addr);
498 +      NEXT_PASS (pass_outof_cfg_layout_mode);
499        NEXT_PASS (pass_life);
500        NEXT_PASS (pass_combine);
501        NEXT_PASS (pass_if_after_combine);
502
503 2007-03-23  Joseph Myers  <joseph@codesourcery.com>
504
505         * config/mips/mips.md (type, hazard, *movdi_32bit,
506         *movdi_gp32_fp64, *movdi_64bit, *movsi_internal, movcc,
507         *movhi_internal, *movqi_internal, *movsf_hardfloat,
508         *movdf_hardfloat_64bit, *movdf_hardfloat_32bit, *movdf_softfloat,
509         movv2sf_hardfloat_64bit, load_df_low, load_df_high, store_df_high,
510         mthc1, mfhc1): Change xfer instruction type to mfc and mtc, as
511         applicable.
512         (movcc): Change first xfer to multi.
513         * config/mips/24k.md, config/mips/4100.md, config/mips/4300.md,
514         config/mips/5000.md, config/mips/5400.md, config/mips/5500.md,
515         config/mips/5k.md, config/mips/7000.md, config/mips/9000.md,
516         config/mips/generic.md: Change reservations using "xfer" to use
517         "mfc,mtc".
518         * config/mips/sb1.md (ir_sb1_mtxfer): Use "mtc" instead of
519         using match_operand.
520         (ir_sb1_mfxfer): Use "mfc" instead of using match_operand.
521         * config/mips/sr71k.md (ir_sr70_xfer_from): Use "mfc" instead of
522         examining mode.
523         (ir_sr70_xfer_to): Use "mtc" instead of examining mode.
524
525 2007-03-22  Richard Henderson  <rth@redhat.com>
526
527         * config/i386/i386.c: Remove unnecessary function declarations.
528         Move targetm definition, and all related macros, to the end of
529         the file.  Resort some functions to put definitions before uses.
530         (ix86_attribute_table): Make static.  Move to end of file.
531         (ix86_gimplify_va_arg): Make static.
532
533 2007-03-22  Richard Henderson  <rth@redhat.com>
534
535         * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
536         don't increase local_regparm with force_align_arg_pointer check.
537         (ix86_function_sseregparm): Assert 32-bit.
538         (type_has_variadic_args_p): New.
539         (ix86_return_pops_args): Early exit for 64-bit.  Reindent; use
540         type_has_variadic_args_p.
541         (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
542         (init_cumulative_args): Remove TARGET_DEBUG_ARG.  Remove zero_cum;
543         use memset instead.  Do maybe_vaarg check first; skip attribute
544         tests if true; skip attribute tests for 64-bit.
545         (construct_container): Remove TARGET_DEBUG_ARG.
546         (function_arg_advance_32, function_arg_advance_64): Split out ...
547         (function_arg_advance): ... from here.
548         (function_arg_32, function_arg_64): Split out ...
549         (function_arg): ... from here.
550         (ix86_pass_by_reference): Tidy.
551         (ix86_function_value_regno_p): Rearrange w/ switch on regno.
552         (function_value_32): New, from parts of ix86_function_value
553         and ix86_value_regno.
554         (function_value_64): New, from parts of ix86_function_value
555         and ix86_libcall_value.
556         (ix86_function_value_1): New.
557         (ix86_function_value, ix86_libcall_value): Use it.
558         (return_in_memory_32, return_in_memory_64): Split out ...
559         (ix86_return_in_memory): ... from here.
560         (ix86_struct_value_rtx): Skip for 64-bit.
561         (ix86_libcall_value, ix86_value_regno): Remove.
562         (setup_incoming_varargs_64): Split out ...
563         (ix86_setup_incoming_varargs): ... from here.
564         (ix86_va_start): Remove TARGET_DEBUG_ARG.
565         (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
566         * config/i386/i386-protos.h (ix86_function_value): Remove.
567         * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.
568
569 2007-03-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
570
571         PR other/23572
572         * c-lex.c (interpret_float): On overflow, emit pedantic warning if
573         infinities not supported, otherwise emit warning if -Woverflow. On
574         underflow, emit warning if -Woverflow.
575         * real.c (real_from_string): Return -1 if underflow, +1 if overflow
576         and 0 otherwise.
577         * real.h (real_from_string): Update declaration
578         
579 2007-03-22  Kai Tietz  <kai.tietz@onevision.com>
580             Richard Henderson  <rth@redhat.com>
581
582         * defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
583         * calls.c (compute_argument_block_size, expand_call,
584         emit_library_call_value_1): Don't ifdef OUTGOING_REG_PARM_STACK_SPACE.
585         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
586         * function.c (STACK_DYNAMIC_OFFSET): Likewise.
587         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Update.
588         * config/alpha/unicosmk.h, config/bfin/bfin.h, config/iq2000/iq2000.h,
589         config/mips/mips.h, config/mn10300/mn10300.h, config/mt/mt.h,
590         config/pa/pa.h, config/rs6000/rs6000.h, config/score/score.h,
591         config/spu/spu.h, config/v850/v850.h (OUTGOING_REG_PARM_STACK_SPACE):
592         Set to 1.
593
594 2007-03-22  Joseph Myers  <joseph@codesourcery.com>
595
596         * c-incpath.c (add_sysroot_to_chain): New.
597         (merge_include_chains): Add sysroot argument.  Call
598         add_sysroot_to_chain if sysrooted.
599         (register_include_chains): Update call to merge_include_chains.
600         * doc/cppopts.texi: Document use of '=' in include directory
601         arguments.
602
603 2007-03-22  Uros Bizjak  <ubizjak@gmail.com>
604
605         * config/i386/i386.md (cmp<mode>): Rename from cmpsf and cmpdf.
606         Macroize expander using SSEMODEF mode macro.  Use SSE_FLOAT_MODE_P.
607         (*cmpfp_<mode>): Rename from *cmpfp_sf and *cmpfp_df. Macroize
608         insn pattern using X87MODEF12 mode macro.
609         
610 2007-03-21  Seongbae Park <seongbae.park@gmail.com>
611
612         * regmove.c (regmove_optimize): Use reg_mentioned_p
613         instead of reg_overlap_mentioned_p for DST.
614
615 2007-03-21  Mike Stump  <mrs@apple.com>
616
617         * c.opt: Fixup for Objective-C/C++.
618
619 2007-03-21  Steve Ellcey  <sje@cup.hp.com>
620
621         * explow.c (convert_memory_address): Fold memory reference when
622         POINTERS_EXTEND_UNSIGNED < 0
623
624 2007-03-21  Richard Henderson  <rth@redhat.com>
625
626         PR target/31245
627         * config/i386/emmintrin.h (__m128i, __m128d): Mark may_alias.
628         * config/i386/mmintrin.h (__m64): Likewise.
629         * config/i386/xmmintrin.h (__m128): Likewise.
630
631 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
632
633         * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
634         (VXWORKS_OS_CPP_BUILTINS): Define.
635         * config/i386/vxworks.h (VXWORKS_CPU_DEFINE): Fold into...
636         (TARGET_OS_CPP_BUILTINS): ...here.  Use VXWORKS_OS_CPP_BUILTINS.
637
638 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
639
640         * rtl.h (constant_pool_reference_p): Delete.
641         (find_constant_src): Declare.
642         * rtlanal.c (find_constant_src): New function.
643         * simplify-rtx.c (constant_pool_reference_p): Delete.
644         * config/i386/i386.md: Use find_constant_src instead of
645         constant_pool_reference_p/avoid_constant_pool_reference pairs.
646
647 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
648
649         * doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
650         * c-cppbuiltin.c (c_cpp_builtins): Define them.
651
652 2007-03-20  Mark Mitchell  <mark@codesourcery.com>
653
654         * config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
655         * config/arm/arm.c (arm_elf_asm_cdtor): New function.
656         (arm_elf_asm_constructor): Use it.
657         (arm_elf_asm_destructor): New function.
658
659 2007-03-20  Bernd Schmidt  <bernd.schmidt@analog.com>
660
661         * jump.c (mark_jump_label): Treat SEQUENCE specially.
662
663 2007-03-20  Nathan Sidwell  <nathan@codesourcery.com>
664
665         * config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.
666
667 2007-03-19  Andrew Haley  <aph@redhat.com>
668
669         PR tree-optimization/31264
670         * tree-vrp.c (register_edge_assert_for_1): Don't look though
671         VIEW_CONVERT_EXPRs.
672
673 2007-03-19  Paolo Bonzini  <bonzini@gnu.org>
674
675         PR rtl-optimization/30907
676         * fwprop.c (forward_propagate_into): Never propagate inside a loop.
677         (fwprop_init): Always call loop_optimizer_initialize.
678         (fwprop_done): Always call loop_optimizer_finalize.
679         (fwprop): We always have loop info now.
680         (gate_fwprop_addr): Remove.
681         (pass_fwprop_addr): Use gate_fwprop as gate.
682
683         PR rtl-optimization/30841
684         * df-problems.c (df_ru_local_compute, df_rd_local_compute,
685         df_chain_alloc): Call df_reorganize_refs unconditionally.
686         * df-scan.c (df_rescan_blocks, df_reorganize_refs): Change
687         refs_organized to refs_organized_size.
688         (df_ref_create_structure): Use refs_organized_size instead of
689         bitmap_size if refs had been organized, and keep refs_organized_size
690         up-to-date.
691         * df.h (struct df_ref_info): Change refs_organized to
692         refs_organized_size.
693         (DF_DEFS_SIZE, DF_USES_SIZE): Use refs_organized_size instead of
694         bitmap_size.
695
696 2007-03-19  Mark Mitchell  <mark@codesourcery.com>
697
698         * except.c (output_function_exception_table): Do not reference the
699         EH personality routine for functions that do not require an
700         exception table.
701
702 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
703
704         PR c/30762
705         * c-typeck.c (convert_for_assignment): Call comptypes for
706         RECORD_TYPE or UNION_TYPE.
707
708         PR inline-asm/30505
709         * reload1.c (reload): Do invalid ASM checking after
710         cleanup_subreg_operands.
711
712 2007-03-19  Jeff Law  <law@redhat.com>
713
714         * tree-cfg.c (find_taken_edge): Tighten conditions for
715         optimizing computed gotos.
716
717 2007-03-19  Michael Matz  <matz@suse.de>
718
719         * builtins.c (expand_builtin_sync_operation,
720         expand_builtin_compare_and_swap,
721         expand_builtin_lock_test_and_set): Care for extending CONST_INTs
722         correctly.
723
724         * config/i386/sync.md (sync_double_compare_and_swapdi_pic,
725         sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint
726         for operand 3.
727
728 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
729
730         * doc/tm.texi: Add brackets around the return type of
731         TARGET_SECONDARY_RELOAD.
732
733 2007-03-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
734         Richard Guenther  <rguenther@suse.de>
735
736         PR tree-optimization/31254
737         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
738         Use handled_component_p () where appropriate.  Continue
739         propagating into the rhs if we propagated into an INDIRECT_REF
740         on the lhs.
741
742 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
743
744         * config/s390/s390.md (op_type attribute): RRR instruction type added.
745         (FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros.
746         (xde, xdee): Mode attributes adjusted to support DFP modes.
747         (RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added.
748         ("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters,
749         DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3", 
750         "*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3",
751         "*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3",
752         "div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
753         "*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP 
754         numbers.
755         ("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31",
756         "movsf"): Insn definitions removed.
757         ("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp",
758         "*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2",
759         "trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn
760         definitions added.
761         ("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>",
762         "reload_in<mode>", "reload_out<mode>"): Expander added.
763         ("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"):
764         Expander removed.
765
766 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
767
768         * config/s390/s390.md: Only non-functional changes.  Renamed
769         FPR mode macro to BFP all over the file.
770
771 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
772
773         * config/s390/s390.md (UNSPEC_COPYSIGN): New constant.
774         (op_type attribute): RRF instruction type added.
775         (fT0): New mode attribute.
776         ("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
777         "*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added.
778         * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new instruction
779         no secondary memory is needed when moving DFmode values between GPRs
780         and FPRs.
781
782 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
783
784         * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
785         inverted and documentation adjusted.
786         ("mhard-dfp", "msoft-dfp"): New options.
787         * config/s390/s390.c (s390_handle_arch_option): New architecture
788         switch: z9-ec.
789         (override_options): Sanity checks for the new options added.
790         * config.gcc: New architecture switch: z9-ec.
791         * config/s390/s390.h (processor_flags): PF_DFP added.
792         (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
793         (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
794         when the bit is NOT set so remove it from the defaults.
795
796 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
797
798         * genemit.c (main): Print include statement for dfp.h.
799         * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
800         is not available.
801
802 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
803
804         * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
805
806 2007-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
807
808         PR target/31022
809         * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
810         instead of PATTERN.
811
812 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
813
814         * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
815         attr_length_call, output_call, output_indirect_call): Cleanup
816         formatting of targetm calls.
817
818 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
819
820         * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
821
822 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
823
824         * pa.md: Add fpstore_load and store_fpload instruction types.  Provide
825         reservation, bypass and anti-bypass descriptions for these instructions.
826         Update move patterns.
827         * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
828         TYPE_FPSTORE.
829         
830 2007-03-18  Dorit Nuzman  <dorit@il.ibm.com>
831
832         * tree-vect-transform.c (get_initial_def_for_induction): Replace
833         GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
834         (get_initial_def_for_reduction): Likewise.
835
836 2007-03-16  Daniel Berlin  <dberlin@dberlin.org>
837
838         Fix PR tree-optimization/29922
839         * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
840         (get_representative): Removed.
841         (value_dies_in_block_x): Update for rvuse removal.
842         (valid_in_sets): Update for renaming of vuses_dies_in_block_x.
843         (compute_antic_aux): Handle when PHI nodes appear in
844         non-single-successors. 
845         (dump_bitmap_of_names): Removed.
846         (compute_antic_safe): Renamed and removed rvuse calculation.
847         Calculate only antic safe.
848         (insert_into_preds_of_block): Remove assert.
849         (execute_pre): Update for renamed functions.
850         (defer_or_phi_translate_block): New function.
851         
852 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
853
854         * config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
855         config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
856         typos.
857         * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
858         Follow spelling conventions.
859
860         * tree-data-ref.h: Remove the prototype for analyze_array.
861
862 2007-03-17  Dorit Nuzman  <dorit@il.ibm.com>
863
864         PR tree-optimization/31041
865         * tree-vect-transform.c (get_initial_def_for_induction): Call
866         force_gimple_operand.
867         
868 2007-03-17  Olga Golovanevsky  <olga@il.ibm.com>
869   
870         * ipa-type-escape.c (look_for_casts) : Revert code to use
871         handled_component_p due to ada test a-numaux.adb.
872
873 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
874
875         * final.c (final_scan_insn): Alter the condition of a
876         conditional trap if we have nonstandard CC.
877
878 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
879
880         * configure.ac: Remove excess quoting from asm line 0 test.
881         * configure: Rebuilt.
882
883 2007-03-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
884
885         * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
886         * c-common.c (convert_and_check): Move warning logic to...
887         (warnings_for_convert_and_check): ...here. Define.
888         * c-common.h (warnings_for_convert_and_check): Declare.
889         
890 2007-03-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
891
892         * pa.c (attr_length_call): Partially revert change of 2007-03-09.
893         (output_call): Likewise.
894
895 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
896
897         * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
898
899 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
900
901         * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
902
903 2007-03-16  Uros Bizjak  <ubizjak@gmail.com>
904
905         * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
906         opteron, athlon-64 and athlon-fx processor_alias_table entries.
907
908 2007-03-16  Sebastian Pop  <sebastian.pop@inria.fr>
909
910         PR tree-optimization/31183
911         * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops): 
912         Use double_int instead of unsigned int for representing access_strides.
913         * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
914
915 2007-03-16  Richard Guenther  <rguenther@suse.de>
916
917         PR tree-optimization/31146
918         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
919         to allow recursion of forward_propagate_addr_expr.
920         (forward_propagate_addr_into_variable_array_index): Likewise.
921         (forward_propagate_addr_expr): Likewise.
922         (tree_ssa_forward_propagate_single_use_vars): Likewise.
923         (forward_propagate_addr_expr_1): Recurse on simple copies
924         instead of propagating into them.  Do so for useless conversions
925         as well.
926         (forward_propagate_addr_expr): Clean up unused statements after
927         recursion.
928
929 2007-03-16  Richard Guenther  <rguenther@suse.de>
930
931         * builtins.c (expand_builtin_cexpi): Use the right argument
932         for the expansion via cexp.
933
934 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
935
936         * configure.ac: Don't require ELF binutils to tolerate # 0 "".
937         * configure: Rebuilt.
938
939 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
940
941         PR debug/29906
942         * dwarf2out.c (force_type_die): Adjust comment.
943         (dwarf2out_imported_module_or_decl): Handle base AT_import types.
944
945 2007-03-15  DJ Delorie  <dj@redhat.com>
946
947         * config/frv/predicates.md (minmax_operator): Don't check operands
948         here.
949
950 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
951
952         * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
953         Update constant estimates of number of iterations.
954         (record_nonwrapping_iv): Add "upper" argument.  "data_size_bounds_p"
955         argument renamed to "realistic".
956         (compute_estimated_nb_iterations): Removed.
957         (record_niter_bound): New function.
958         (idx_infer_loop_bounds): For possible but unlikely tail arrays,
959         call record_nonwrapping_iv with upper = false.
960         (infer_loop_bounds_from_signedness): Pass upper argument to
961         record_nonwrapping_iv.
962         (estimate_numbers_of_iterations_loop): Do not call
963         compute_estimated_nb_iterations.  Record estimate based on profile
964         information.  Initialize the constant estimates of number of
965         iterations.
966         * tree-data-ref.c (estimated_loop_iterations): Return the recorded
967         estimates.
968         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
969         number of iterations is too small.
970         * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
971         (EST_NOT_AVAILABLE): Removed.
972         (struct loop): Replace estimated_nb_iterations by any_upper_bound,
973         nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
974         fields.
975
976 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
977
978         * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
979         Handle NE_EXPR guards.
980
981 2007-03-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
982
983         PR c++/24924
984         * c-opts.c (c_common_post_options): Handle C++ post-processing here.
985         Set also -pedantic-errors by default for the  preprocessor unless
986         -fpermissive is given.
987         
988 2007-03-15  Richard Guenther  <rguenther@suse.de>
989
990         PR middle-end/29719
991         PR middle-end/31161
992         * builtins.c (expand_builtin_cexpi): As a fallback if we
993         don't have builtins for sincos or cexp create a function
994         declaration for cexp and expand to a call to that.
995         (expand_builtin_int_roundingfn): Always fall
996         back to floor/ceil and its variants even if they may be
997         not available.
998
999 2007-03-15  Steven Bosscher  <steven@gcc.gnu.org>
1000
1001         PR middle-end/31159
1002         * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
1003         jump tables, move the call to delete_dead_jumptables from here...
1004         (cfg_layout_finalize): ...to here.  But rebuild jump labels first.
1005         * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
1006         don't allow merging of blocks that try_redirect_by_replacing_jump
1007         also does not handle when not optimizing.
1008
1009 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
1010             Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1011
1012         * config/i386/i386.md (x86_sahf_1): Correctly handle
1013         HAVE_AS_IX86_SAHF.
1014
1015 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
1016
1017         PR target/31167
1018         * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
1019         x86_64_general_operand as operand[2] predicate.  Remove "iF"
1020         from operand constraints and use "e" constraint instead.
1021         (*subti3_1, *subti3_1 splitter): Ditto.
1022         (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
1023         operand[1] predicate.
1024
1025 2007-03-14  Sebastian Pop  <sebastian.pop@inria.fr>
1026
1027         * tree-loop-linear.c (gather_interchange_stats): For multidimensional
1028         arrays, multiply the access strides by the size of the sub-array.
1029         * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
1030
1031 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
1032
1033         * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
1034         the configured assembler supports the sahf mnemonic.
1035         * configure: Regenerate.
1036         * config.in: Regenerate.
1037
1038         * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
1039         emit "sahf" or ".byte\t0x9e" as asm template.
1040
1041 2007-03-14  Michael Meissner  <michael.meissner@amd.com>
1042
1043         PR 31018
1044         * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
1045         option to replace hard coded TARGET_xxx in md file.
1046         (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
1047         (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
1048         (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
1049         (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
1050         (X86_TUNE_NOT_UNPAIRABLE): Ditto.
1051         (X86_TUNE_NOT_VECTORMODE): Ditto.
1052         (TUNE_SHORTEN_X87_SSE): Use new tuning option.
1053         (TUNE_AVOID_VECTOR_DECODE): Ditto.
1054         (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
1055         (TUNE_SLOW_IMUL_IMM8): Ditto.
1056         (TUNE_MOVE_M1_VIA_OR): Ditto.
1057         (TUNE_NOT_UNPAIRABLE): Ditto.
1058         (TUNE_NOT_VECTORMODE): Ditto.
1059         
1060         * config/i386/i386.c (ix86_tune_features): Fill in new tuning
1061         options.
1062
1063         * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
1064         tuning options instead of hard coded TARGET_xxx.
1065         (fix ssemode peephole2's): Ditto.
1066         (imul peephole2's): Ditto.
1067         (movsi_or): Ditto.
1068         (movdi_or_rex64): Ditto.
1069         (move peephole2): Ditto.
1070         (not peephole2's): Ditto.
1071
1072 2007-03-14  Dirk Mueller  <dmueller@suse.de>
1073
1074         * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
1075         * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
1076         * c-parser.c (c_parser_if_body): Always add an empty statement in case
1077         of empty body.
1078         * c-parser.c (c_parser_do_statement): Warn about empty body in
1079         do/while statement.
1080         * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
1081         * doc/invoke.texi (-Wempty-body): Update documentation.
1082
1083 2007-03-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1084
1085         PR c/21438
1086         * c-common.h (warn_for_div_by_zero): Declare.
1087         * c-common.c (warn_for_div_by_zero): Define.
1088         * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
1089         warning.
1090
1091 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
1092
1093         * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
1094         to PREFIX and STANDARD_PREFIX.
1095
1096 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
1097             Phil Edwards  <phil@codesourcery.com>
1098
1099         * gthr-vxworks.h: Add an extern "C" wrapper for C++.
1100         (__gthread_once_t): Remove busy field for RTPs.
1101         (__GTHREAD_ONCE_INIT): Update accordingly.
1102
1103 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
1104
1105         * doc/invoke.texi: Document VxWorks options.
1106
1107 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
1108
1109         * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
1110
1111 2007-03-13  Seongbae Park <seongbae.park@gmail.com>
1112
1113         PR tree-optimization/30590
1114         * tree-nrv.c (tree_nrv): Check for the partial update of the
1115         return value.
1116
1117 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
1118
1119         * flags.h (flag_random_seed): Remove declaration, in favor of...
1120         * toplev.h (get_random_seed, set_random_seed): ... these.
1121         * tree.c (get_file_function_name): Use the former.
1122         * opts.c (common_handle_option): Use the latter.
1123         * toplev.c
1124
1125 2007-03-13  Steven Bosscher  <steven@gcc.gnu.org>
1126
1127         PR middle-end/31127
1128         * cse.c (cse_find_path): Do not bail out if a basic block that
1129         we already visited now becomes part of a path that starts at a
1130         different basic block.  Just disallow this, to make sure we
1131         visit each basic block at most once.
1132
1133 2007-03-13  Jan Hubicka  <jh@suse.cz>
1134
1135         * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold attributes,
1136         when profile esitmate is present, calls with very low frequency are
1137         cold.
1138
1139 2007-03-13  Zdenek Dvorak  <dvorakz@suse.cz>
1140
1141         PR tree-optimization/30730
1142         PR tree-optimization/26900
1143         * tree-ssa-loop-niter.c: Include gmp.h.
1144         (bounds): New type.
1145         (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
1146         split_to_var_and_offset, determine_value_range,
1147         bound_difference_of_offsetted_base, refine_bounds_using_guard,
1148         bound_difference, bounds_add, bounds_negate,
1149         number_of_iterations_ne_max, dump_affine_iv): New functions.
1150         (number_of_iterations_ne, number_of_iterations_lt_to_ne,
1151         assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
1152         difference of initial and final value of control iv to validate
1153         results.
1154         (number_of_iterations_cond): Add loop parameter.  Determine bounds
1155         on the difference of the extremes of the control iv.  Add dumps.
1156         (expand_simple_operations): Handle phi nodes.
1157         (simplify_using_initial_conditions): Do not record used conditions.
1158         (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
1159         Do not set additional_info.
1160         (implies_nonnegative_p, implies_ge_p): Removed.
1161         (derive_constant_upper_bound): Do not use parameter `additional'.
1162         (record_estimate): Parameter `additional' removed.  Parameter
1163         `i_bound' added.  Do not call derive_constant_upper_bound.
1164         (record_nonwrapping_iv): Use derive_constant_upper_bound to
1165         bound the number of iterations estimate.
1166         (estimate_numbers_of_iterations_loop): Pass the estimate from
1167         the number of iterations analysis to record_estimate.
1168         * tree.h (multiple_of_p): Declare.
1169         * tree-scalar-evolution.c (expression_expensive_p): Removed.
1170         (scev_const_prop): Do not check expression_expensive_p.
1171         * fold-const.c (multiple_of_p): Exported.
1172         * double-int.c (double_int_mask): Exported.
1173         * double-int.h (double_int_mask): Declare.
1174         * tree-flow.h (struct tree_niter_desc): Removed additional_info
1175         field.  Added max field.
1176
1177 2007-03-13  David Taylor  <taylor@candd.org>
1178
1179         PR driver/12448:
1180         * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
1181         default -MQ.
1182
1183 2007-03-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1184
1185         PR target/31123
1186         * pa.md (vdepi_ior): Don't allow zero length deposit.  Likewise for
1187         two unamed patterns.
1188         
1189 2007-03-13  Uros Bizjak  <ubizjak@gmail.com>
1190
1191         * config/i386/i386.opt (mcx16, msahf): New options.
1192         * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
1193         (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
1194
1195         * config/i386/driver-i386.c (bit_LAHF_LM): New define.
1196         (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
1197         Output -mcx16 and -msahf options when corresponding bit is set.
1198
1199         * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
1200         and -msahf options.
1201
1202 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
1203
1204         * configure.ac: Test for assembler tolerance to # 0 "".
1205         * configure, config.in: Rebuilt.
1206         * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
1207
1208 2007-03-13  Geoffrey Keating  <geoffk@apple.com>
1209
1210         * doc/invoke.texi (Spec Files): Update for '%{,' spec.
1211
1212         * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
1213         (handle_syscall): Handle direct system calls.
1214         * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
1215
1216 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
1217
1218         * doc/invoke.texi: Fix cpp.info cross-reference.
1219         * doc/passes.texi: Fix gcc.info cross-reference.
1220
1221 2007-03-12  Zdenek Dvorak  <dvorakz@suse.cz>
1222
1223         PR tree-optimization/30835
1224         * lambda-code.c (can_convert_to_perfect_nest): Check whether
1225         bb_for_stmt is not NULL before accessing it.
1226
1227 2007-03-12  Joseph Myers  <joseph@codesourcery.com>
1228
1229         * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
1230         some multilibs.
1231
1232 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
1233
1234         PR 30635
1235         * doc/install.texi: Document --enable-stage1-languages
1236
1237 2007-03-12  Steven Bosscher  <steven@gcc.gnu.org>
1238
1239         * tree-pass.h (pass_into_cfg_layout_mode,
1240         pass_outof_cfg_layout_mode): Declare.
1241         * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
1242         pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
1243         * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
1244         (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
1245
1246 2007-03-12  Seongbae Park <seongbae.park@gmail.com>
1247
1248         * c-decl.c (warn_variable_length_array): New function.
1249         Refactored from grokdeclarator to handle warn_vla
1250         and handle unnamed array case.
1251         (grokdeclarator): Refactored VLA warning case.
1252         * c.opt (Wvla): New flag.
1253         * doc/invoke.texi (Wvla): New warning.
1254
1255 2007-03-12  Richard Henderson  <rth@redhat.com>
1256
1257         * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
1258         (TARGET_SECTION_TYPE_FLAGS): New.
1259
1260 2007-03-12  Richard Henderson  <rth@redhat.com>
1261
1262         * config/darwin.c (machopic_reloc_rw_mask): New.
1263         * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
1264         * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
1265
1266 2007-03-12  Mark Mitchell  <mark@codesourcery.com>
1267
1268         * cppdefault.c (cpp_EXEC_PREFIX): New variable.
1269         * cppdefault.h (cpp_PREFIX): Document.
1270         (cpp_PREFIX_len): Likewise.
1271         (cpp_EXEC_PREFIX): New variable.
1272         * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
1273         * c-incpath.c (add_standard_paths): Correct logic for relocating
1274         paths within prefix.
1275
1276 2007-03-12  Uros Bizjak  <ubizjak@gmail.com>
1277
1278         * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
1279         fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
1280         mode macro.
1281         (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
1282         fix_truncdfdi_sse using SSEMODEF mode macro.
1283         (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
1284         fix_truncdfsi_sse using SSEMODEF mode macro.
1285         (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
1286         (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
1287
1288 2007-03-12  Richard Sandiford  <richard@codesourcery.com>
1289
1290         * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
1291         elfos.h to tm_file.
1292
1293 2007-03-12  Olga Golovanevsky  <olga@il.ibm.com>
1294   
1295         * tree.h : Add multiple_of_p declaration.
1296         * fold-const.c (multiple_of_p): Make multiple_of_p public. 
1297         * ipa-type-escape.c (results_of_malloc): Redundant.
1298         (visited_stmts): New. Visited stmt for walk_use_def_chains.
1299         (cast_type): Extended with new members.
1300         (check_cast): Returns cast_type.
1301         (cast): New structure for data of walk_use_def_chains.
1302         (is_malloc_result, is_cast_from_non_pointer_1,
1303         is_cast_from_non_pointer, 
1304         is_array_access_through_pointer_and_index): New functions.
1305         (look_for_casts): Returns cast types.
1306         (check_call): Returns void.
1307         (okay_pointer_operation): Use support of pointer plus index,
1308         pointer plus constant and allow all multiplications.
1309         
1310 2007-03-11  Richard Guenther  <rguenther@suse.de>
1311
1312         PR tree-optimization/31115
1313         * tree-vrp.c (extract_range_from_binary_expr): Make sure
1314         the shift count is positive and non-anti-range for RSHIFT_EXPR.
1315         A shift count of zero is not special as with *_DIV_EXPR.
1316         (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
1317         direction.
1318
1319 2007-03-11  Ian Lance Taylor  <iant@google.com>
1320
1321         * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
1322         the *_DIV_EXPR codes correctly with overflow infinities.
1323
1324 2007-03-11  Ira Rosen  <irar@il.ibm.com>
1325
1326         * tree-data-ref.c (analyze_offset): Add a return value (bool) to 
1327         indicate success/failure of the analysis. Add negation to subtrahend
1328         in case of subtraction. Fail if both operands contain constants.
1329         (create_data_ref): Fail if analyze_offset fails.
1330
1331 2007-03-11  Uros Bizjak  <ubizjak@gmail.com>
1332
1333         * config/i386/i386.md (frndintxf2): Rename to ...
1334         (rintxf2): ... this. Remove expander having same name.
1335         (rintsf2, rintdf2): Implement using SSEMODEF macro.
1336         (roundsf2, rounddf2): Ditto.
1337         (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
1338         (lround<mode>di2, lround<mode>si2): Ditto.
1339
1340 2007-03-11  Steven Bosscher  <steven@gcc.gnu.org>
1341
1342         * lower-subreg.c: Include except.h.
1343         (decompose_multiword_subregs): Verify that the only control flow
1344         insns we can split are loads to multi-words pseudos.
1345         Handle breaking such blocks after splitting, instead of calling
1346         find_many_sub_basic_blocks.
1347
1348         * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
1349         on the new basic block.  Add a lengthy comment explaining why we
1350         thought this was necessary.
1351         * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
1352
1353 2007-03-10  Mark Mitchell  <mark@codesourcery.com>
1354
1355         PR c++/30924
1356         * tree.c (walk_type_fields): Recurse into the element type of
1357         ARRAY_TYPEs if there is a pointer set.
1358
1359 2007-03-10  Dirk Mueller  <dmueller@suse.de>
1360
1361         * c-common.c (warn_logical_operator): Fix condition.
1362
1363 2007-03-10  Tobias Schl├╝ter  <tobi@gcc.gnu.org>
1364
1365         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
1366         quotation mark.
1367         * config/darwin.c (machopic_select_section): Remove superfluous
1368         argument in call to categorize_decl_for_section.  Remove unused
1369         variable shlib.
1370
1371 2007-03-10  Joseph Myers  <joseph@codesourcery.com>
1372
1373         * configure.ac (glibc_header_dir): Set using with_build_sysroot if
1374         defined.
1375         * configure: Regenerate.
1376
1377 2007-03-10  Uros Bizjak  <ubizjak@gmail.com>
1378
1379         PR target/31101
1380         * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
1381         (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
1382         (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
1383         Add LABEL_NUSES to emitted label.
1384         * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
1385         branch probability value to emitted jump insn.
1386         * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
1387         Do not check life information and do not re-arrange input operands
1388         for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
1389
1390 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
1391
1392         * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
1393         the change of decode_asm_operands.
1394
1395 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
1396
1397         * mode-switching.c (create_pre_exit): Skip blockage insn.
1398
1399 2007-03-09  Diego Novillo  <dnovillo@redhat.com>
1400
1401         * tree-pass.h (TODO_update_smt_usage): Remove.
1402         Update all users.
1403         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
1404         argument SOME.
1405         Update all users.
1406
1407 2007-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1408
1409         * pa.c (attr_length_call): Revise condition for long pc-relative branch.
1410         (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long local
1411         calls on the SOM target.  Don't use "LONG_PIC_PCREL" call sequence on
1412         SOM target.
1413
1414 2007-03-09  Geoffrey Keating  <geoffk@apple.com>
1415
1416         * gcc.c: Document %{, in big comment at top.
1417         (input_suffix_matches): Remove special handling for .s and
1418         .S.
1419         (input_spec_matches): New.
1420         (handle_braces): Handle %{,.
1421         (validate_switches): ',' indicates a value which is not a switch.
1422         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
1423         to detect assembler input.
1424         * config/i386/sol2.h (CPP_SPEC): Likewise.
1425         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
1426         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
1427         * config/rs6000/lynx.h (ASM_SPEC): Likewise.
1428         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
1429         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
1430         -m64 causes deployment target to default to 10.5.
1431         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
1432
1433 2007-03-09  Richard Henderson  <rth@redhat.com>
1434
1435         PR target/26090
1436         * target.h (targetm.asm.out.reloc_rw_mask): New.
1437         * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
1438         (TARGET_ASM_OUT): Use it.
1439         * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
1440         * varasm.c (categorize_decl_for_section): Remove shlib argument;
1441         use the new reloc_rw_mask target hook instead.
1442         (default_section_type_flags_1): Merge into...
1443         (default_section_type_flags): ... here.
1444         (decl_readonly_section_1): Merge into...
1445         (decl_readonly_section): ... here.
1446         (default_elf_select_section_1): Merge into...
1447         (default_elf_select_section): ... here.
1448         (default_unique_section_1): Merge into...
1449         (default_unique_section): ... here.
1450         (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
1451         (default_select_rtx_section): Use it.
1452         (default_elf_select_rtx_section): Likewise.
1453         * output.h: Update to match.
1454         * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
1455         * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
1456         (TARGET_ASM_RELOC_RW_MASK): New.
1457         * config/i386/i386.c (x86_64_elf_select_section): Adjust call
1458         to categorize_decl_for_section.
1459         (x86_64_elf_unique_section): Likewise.
1460         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
1461         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
1462         (TARGET_ASM_RELOC_RW_MASK): New.
1463         * config/ia64/ia64.c (ia64_rwreloc_select_section,
1464         ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
1465         (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
1466         (TARGET_RWRELOC): Remove.
1467         (ia64_section_type_flags): Adjust call to default_section_type_flags.
1468         * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
1469         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
1470         (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
1471         (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
1472         (rs6000_xcoff_select_section): Use decl_readonly_section.
1473         (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
1474         * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
1475         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
1476         (TARGET_SECTION_TYPE_FLAGS): Remove.
1477         * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
1478
1479 2007-03-09  Roger Sayle  <roger@eyesopen.com>
1480
1481         * fold-const.c (fold_comparison): Remove compile-time evaluation of
1482         complex constant equality/inequality comparisons for here.
1483         (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
1484         known at compile-time or can be simplified to a scalar comparison.
1485         (fold_relational_const): Move compile-time evaluation of complex
1486         constant equality/inequality comparisons to here.
1487
1488 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
1489
1490         PR rtl-optimization/30643
1491         * cse.c (cse_insn): Recompute dest_hash after insert_regs for
1492         dest_addr_elt.
1493         (fold_rtx): Recurse, like before 2006-11-03.
1494
1495 2007-03-09  DJ Delorie  <dj@redhat.com>
1496
1497         * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
1498         m32c-pragma.o.
1499
1500 2007-03-09  Aldy Hernandez  <aldyh@redhat.com>
1501
1502         PR tree-optimization/30375
1503         * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
1504         LHS of statements is not the same.
1505         * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
1506
1507 2007-03-09  Chao-ying Fu  <fu@mips.com>
1508
1509         * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
1510         REV 2.
1511         * doc/invoke.texi (-mdspr2): Document new option.
1512         * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
1513         New unspec for DSP REV 2.
1514         (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
1515         these instructions are extended in DSP REV 2.
1516         (mips-dspr2.md): Include.
1517         * config/mips/mips.opt (mdspr2): New option.
1518         * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
1519         MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
1520         MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
1521         (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
1522         (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
1523         (dsp_bdesc): Add DSP REV 2 builtins.  Remove 32-bit only DSP builtins.
1524         (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
1525         and 2 builtins.
1526         (bdesc_map): Add one field of unsupported_target_flags.
1527         (bdesc_arrays):  Update entries to have extra fields.  Add
1528         dsp_32only_bdesc.
1529         (mips_init_builtins): Initialize new function types.
1530         Check unsupported_target_fileds to filter out builtins.
1531         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
1532         TARGET_DSPR2.
1533         (ASM_SPEC): Pass mdspr2 to the assembler.
1534         * config/mips/mips-dspr2.md: New file.
1535
1536 2007-03-09  Sa Liu  <saliu@de.ibm.com>
1537
1538         * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
1539
1540 2007-03-09  Ian Lance Taylor  <iant@google.com>
1541
1542         * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
1543         argument) like -Wstrict-overflow=2.
1544         * doc/invoke.texi (Warning Options): Update documentation.
1545
1546 2007-03-09  Dirk Mueller  <dmueller@suse.de>
1547
1548         PR c++/17946
1549         * doc/invoke.texi (-Wlogical-op): Document.
1550         * common.opt (-Wlogical-op): New.
1551         * c-common.h (warn_logical_operator): Declare.
1552         * c-common.c (warn_logical_operator): Define.
1553         * c-typeck.c (parser_build_binary_op): Call
1554         warn_logical_operator.
1555
1556 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
1557
1558         * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
1559         * final.c (final_scan_insn): Test for non-"" file name.
1560
1561 2007-03-09  Sebastian Pop  <sebastian.pop@inria.fr>
1562
1563         * doc/loop.texi: Document the Omega linear constraints solver.
1564         * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
1565         omega-max-geqs, omega-max-eqs, omega-max-wild-cards, 
1566         omega-hash-table-size, omega-max-keys, and 
1567         omega-eliminate-redundant-constraints.
1568         * tree-pass.h (pass_check_data_deps): Declared.
1569         * omega.c: New.
1570         * omega.h: New.
1571         * timevar.def (TV_CHECK_DATA_DEPS): Declared.
1572         * tree-ssa-loop.c (check_data_deps, gate_check_data_deps, 
1573         pass_check_data_deps): New.
1574         * tree-data-ref.c (init_data_ref): Remove declaration.
1575         (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
1576         (analyze_array): Renamed init_array_ref, move up initializations.
1577         (init_data_ref): Renamed init_pointer_ref.  Moved before its call.
1578         Removed arguments that are set to NULL.
1579         (analyze_indirect_ref): Correct indentation, correct call to 
1580         init_pointer_ref.
1581         (object_analysis): Call init_array_ref instead of analyze_array.
1582         (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
1583         (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
1584         of DR_ACCESS_FNS_ADDR.
1585         (init_omega_eq_with_af, omega_extract_distance_vectors, 
1586         omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
1587         ddr_consistent_p): New.
1588         (compute_affine_dependence): Check consistency of ddrs when 
1589         flag_check_data_deps is passed.
1590         (analyze_all_data_dependences): Uncomment.
1591         (tree_check_data_deps): New.
1592         * tree-data-ref.h: Include omega.h.
1593         (DR_ACCESS_FNS_ADDR): Removed.
1594         (data_dependence_relation): Add inner_loop.
1595         (DDR_INNER_LOOP): New.
1596         * common.opt (fcheck-data-deps): New.
1597         * tree-flow.h (tree_check_data_deps): Declare.
1598         * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
1599         (OBJS-common): Depend on omega.o.
1600         (omega.o): Define.
1601         * passes.c (pass_check_data_deps): Scheduled.
1602         * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS, 
1603         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
1604         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
1605         PARAM_VECT_MAX_VERSION_CHECKS,
1606         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
1607
1608 2007-03-09  Richard Guenther  <rguenther@suse.de>
1609
1610         PR tree-optimization/30904
1611         PR middle-end/31058
1612         * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
1613         the same way as *_DIV_EXPR.
1614
1615 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
1616
1617         * recog.c (decode_asm_operands): No mixed declarations and code.
1618
1619 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
1620
1621         * rtl.def (ASM_INPUT): Add location.
1622         * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
1623         (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
1624         (decode_asm_operands): Add loc operand.
1625         (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
1626         * stmt.c (expand_asm): Rename to...
1627         (expand_asm_loc): ... this.  Add locus argument.  Pass it on to
1628         gen_rtx_ASM_INPUT_loc.
1629         (expand_asm_expr): Adjust.
1630         * recog.c (decode_asm_operands): Add loc operand.
1631         (check_asm_operands, extract_insn): Adjust.
1632         * reload1.c (maybe_fix_stack_asms): Likewise.
1633         * final.c (asm_insn_count): Likewise.
1634         (final_scan_insn): Output # line before and after asm.
1635
1636 2007-03-09  Daniel Berlin  <dberlin@dberlin.org>
1637
1638         * tree-ssa-structalias.c (variable_info): Remove
1639         finished_solution.
1640         (new_var_info): Ditto.
1641         (shared_bitmap_info_t): New structure.
1642         (shared_bitmap_table): New variable.
1643         (shared_bitmap_hash): New function.
1644         (shared_bitmap_eq): Ditto
1645         (shared_bitmap_lookup): Ditto.
1646         (shared_bitmap_add): Ditto.
1647         (merge_smts_into): Change to take bitmap directly.
1648         (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
1649         (init_alias_vars): Init shared bitmap hashtable.
1650         (delete_points_to_sets): Delete shared bitmap hashtable.
1651         * tree-ssa-operands.c (add_virtual_operand): Partially revert the
1652         is_aliased removal as a change that was still necessary was
1653         deleted.
1654
1655 2007-03-09  Uros Bizjak  <ubizjak@gmail.com>
1656
1657         * config/i386/i386.h (override_options): Conditionally disable
1658         x86_sahf for 64bit targets only.
1659
1660 2007-03-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1661
1662         PR C/31072
1663         * c-decl.c (merge_decls): Don't call make_var_volatile.
1664         * varasm.c (make_var_volatile): Remove.
1665         * output.h (make_var_volatile): Remove.
1666
1667 2007-03-08  Zdenek Dvorak  <dvorakz@suse.cz>
1668
1669         PR tree-optimization/31085
1670         * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
1671
1672 2007-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1673
1674         * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
1675         llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
1676         ATTR_CONST_NOTHROW_LIST.
1677         
1678         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
1679         FIX_TRUNC_EXPR.
1680
1681 2007-03-08  Diego Novillo  <dnovillo@redhat.com>
1682
1683         * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
1684
1685 2007-03-08  Geoffrey Keating  <geoffk@apple.com>
1686
1687         PR 31013
1688         * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
1689         is declared.
1690         * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
1691         passed, use shared libgcc.
1692
1693 2007-03-08  Roger Sayle  <roger@eyesopen.com>
1694
1695         * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
1696         instead of calling build2 with a GIMPLE_MODIFY_STMT.
1697         (honor_protect_cleanup_actions, lower_try_finally_switch):
1698         Likewise.
1699         * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
1700         ifc_temp_var): Likewise.
1701         * tree-inline.c (setup_one_parameter): Likewise.
1702         * tree-mudflap.c (mf_decl_cache_locals,
1703         mf_build_check_statement_for): Likewise.
1704         * tree-nested.c (init_tmp_var, save_tmp_var,
1705         finalize_nesting_tree_1): Likewise.
1706         * tree-outof-ssa.c (insert_copy_on_edge,
1707         insert_backedge_copies): Likewise.
1708         * tree-profile.c (tree_gen_edge_profiler,
1709         tree_gen_ic_profiler): Likewise.
1710         * tree-scalar-evolution.c (scev_const_prop): Likewise.
1711         * tree-sra.c (sra_build_assignment): Likewise.
1712         * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
1713         * tree-ssa-math-opts.c (insert_reciprocals,
1714         execute_cse_sincos_1): Likewise.
1715         * tree-tailcall.c (adjust_accumulator_values,
1716         adjust_return_value): Likewise.
1717         * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
1718         * tree-vect-transform.c (vect_create_data_ref_ptr,
1719         bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
1720         vect_create_epilog_for_reduction, vectorizable_reduction,
1721         vectorizable_call, vectorizable_conversion,
1722         vectorizable_assignment, vectorizable_operation,
1723         vectorizable_type_demotion, vect_gen_widened_results_half,
1724         vect_permute_store_chain, vectorizable_store,
1725         vect_setup_realignment, vect_permute_load_chain,
1726         vectorizable_load, vectorizable_condition,
1727         vect_create_cond_for_align_checks): Likewise.
1728         * tree-vrp.c (build_assert_expr_for): Likewise.
1729
1730 2007-03-08  Ian Lance Taylor  <iant@google.com>
1731
1732         * tree-vrp.c: Include "intl.h".
1733         (usable_range_p): New static function.
1734         (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
1735         overflowed values, juts set *strict_overflow_p.
1736         (compare_values): Only return -2 if one of the operands is not a
1737         constant.
1738         (compare_ranges): Call usable_range_p.
1739         (compare_range_with_value): Likewise.
1740         (vrp_evaluate_conditional_warnv): Rename from
1741         vrp_evaluate_conditional.  Make static.  Change all callers.
1742         (vrp_evaluate_conditional): New function.
1743         (simplify_div_or_mod_using_ranges): Issue warning about reliance
1744         on signed overflow.
1745         (simplify_abs_using_ranges): Likewise.
1746         (simplify_stmt_for_jump_threading): Add within_stmt parameter.
1747         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
1748         within_stmt parameter.
1749         * tree-ssa-propagate.c (fold_predicate_in): Update call to
1750         vrp_evaluate_conditional.
1751         * tree-ssa-threadedge.c
1752         (record_temporary_equivalences_from_stmts_at_dest): Change
1753         simplify parameter to take a second tree parameter.
1754         (simplify_control_stmt_condition): Likewise.
1755         (thread_across_edge): Likewise.
1756         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
1757         (thread_across_edge): Likewise.
1758         * gcc/Makefile.in (tree-vrp.o): Depend upon intl.h.
1759
1760 2007-03-08  Uros Bizjak  <ubizjak@gmail.com>
1761
1762         * config/i386/i386.h (TARGET_SAHF): New define.
1763         * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
1764         Also enable for m_K8, m_AMDFAM10 and m_CORE2.
1765         (x86_sahf): New global variable.
1766         (override_options): Add PTA_NO_SAHF to pta_flags enum.  Recode
1767         pta_flags masks using shifts.  Add PTA_NO_SAHF to x86_64 and
1768         nocona processor flags.  Set x86_sahf when PTA_NO_SAHF is not set
1769         in processor flags.  Do not unconditionally disable TARGET_USE_SAHF
1770         for 64-bit.
1771         (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
1772         (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
1773         when expanding fcomi/sahf based tests.
1774         (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
1775         expanding sahf based alternative. Emit sahf based sequence when
1776         optimizing for code size.
1777         * config/i386/i386.md (x86_sahf_1): Do not disable for
1778         TARGET_64BIT, enable for TARGET_SAHF. 
1779
1780 2007-03-08  Martin Michlmayr  <tbm@cyrius.com>
1781
1782         * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
1783         spurious whitespace from error message.
1784
1785 2007-03-08  Volker Reichelt  <reichelt@netcologne.de>
1786
1787         PR c++/30852
1788         * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
1789
1790 2007-03-08  Alexandre Oliva  <aoliva@redhat.com>
1791
1792         * c-decl.c (grokdeclarator): Disable warnings for anonymous
1793         bitfields.
1794         * tree-sra.c (instantiate_element): Propagate disabled warnings
1795         from the element itself to the created variable.
1796
1797 2007-03-07  Richard Henderson  <rth@redhat.com>
1798
1799         PR target/30848
1800         * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
1801         silently fix up the stack in the case of a missing register.
1802
1803 2007-03-07  Paul Brook  <paul@codesourcery.com>
1804
1805         * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
1806
1807 2007-03-07  Joseph Myers  <joseph@codesourcery.com>
1808
1809         * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
1810         New.
1811         (phase1_vrs): Use them.
1812         (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
1813         (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
1814         __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
1815         (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
1816         __gnu_Unwind_Restore_WMMXC if required.
1817         (_Unwind_VRS_Pop): Implement iWMMXt support.
1818         * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
1819         gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
1820         gnu_Unwind_Save_WMMXC): Define.
1821
1822 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
1823
1824         * config/vxworks.h (vxworks_override_options): Declare.
1825         (VXWORKS_OVERRIDE_OPTIONS): Use it.
1826         * config/vxworks.c: Include target.h and toplev.h.
1827         (vxworks_override_options): New function.
1828         * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
1829
1830 2007-03-07  Andreas Krebbel  <krebbel1@de.ibm.com>
1831
1832         * config/s390/s390.c (override_options): Don't emit an error when
1833         -mstack-size is used without providing -mstack-guard.
1834         (s390_emit_prologue): Choose stack_guard value automatically if not
1835         provided via command line.
1836         * doc/invoke.texi: Adjust description of -mstack-guard and -mstack-size.
1837
1838 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
1839
1840         * config/i386/i386.c (output_set_got): Add a GOT initialization
1841         sequence for VxWorks PIC.
1842         (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
1843         around labels as well as symbols.  Use gotoff_operand instead
1844         of local_symbolic_operand.
1845         (legitimize_pic_address): Use gotoff_operand instead of
1846         local_symbolic_operand.  Use @GOT accesses for labels as
1847         well as symbols.
1848         (ix86_output_addr_diff_elt): Use PC-relative rather than
1849         GP-relative offsets for VxWorks PIC.
1850         (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
1851         no_new_pseudos.  Check whether the returned register is op0.
1852         * config/i386/i386.md (tablejump): Use PC-relative rather than
1853         GP-relative offsets for VxWorks PIC.
1854         * config/i386/predicates.md (gotoff_operand): New predicate.
1855
1856 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
1857
1858         * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
1859         before defining.
1860         * config/vxworks-dummy.h: New file.
1861         * config/i386/i386.h: Include it.
1862
1863 2007-03-07  Alexandre Oliva  <aoliva@redhat.com>
1864
1865         * dwarf2out.c (is_inlined_entry_point): New
1866         (add_high_low_attributes): Emit DW_AT_entry_pc along with
1867         DW_AT_ranges if the first subblock is the entry point.
1868
1869 2007-03-06  David Daney  <ddaney@avtrex.com>
1870
1871         * doc/install.texi (mips-*-*): Change recommended binutils
1872         version.
1873
1874 2007-03-06  Anatoly Sokolov <aesok@post.ru>
1875
1876         * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
1877         ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162 
1878         devices.
1879         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
1880         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
1881
1882 2007-03-06  Jan Hubicka  <jh@suse.cz>
1883
1884         * errors.h (warning, error, fatal, internal_error): Mark as cold.
1885         * predict.c (maybe_hot_bb): Cold functions are never hot; hot functions
1886         are hot.
1887         (probably_cold_bb_p): Cold functions are cold.
1888         (probably_never_executed_bb_p): Cold functions are cold.
1889         (tree_bb_level_predictions): Predict calls to cold functions as not
1890         taken.
1891         (compute_function_frequency): Check hot/cold attributes.
1892         * function.h (function_frequency): Update comments.
1893         * predict.def (PRED_COLD_FUNCTION): Predict cold function.
1894         * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
1895         (c_common_att): Add cold and hot.
1896
1897         * doc/extend.texi (hot,cold attributes): Document.
1898
1899 2007-03-06  Andrew Haley  <aph@redhat.com>
1900
1901         * function.c (expand_function_end): Move blockage to just after we
1902         emit the label for the naked return from the function.
1903
1904 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
1905
1906         * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
1907         before redefining.
1908
1909 2007-03-06  Jan Hubicka  <jh@suse.cz>
1910
1911         * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
1912         loaded for constant large models.  Non-large 64bit PIC can do.
1913         * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
1914         * cmodel.h: Add LARGE PIC.
1915         * i386.md (UNSPEC_PLTOFF): New.
1916         (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other unspecs as
1917         needed.
1918         (*call_1_rex64): Disable for large models.
1919         (*call_1_rex64_large): New.
1920         (*call_value_1_rex64): Disable for large models.
1921         (*call_value_1_rex64_large): New.
1922         (set_rip_rex4): New.
1923         (set_got_offset_rex64): New.
1924         * predicates.md (constant_call_address_operand): For large model
1925         constant calls are not possible.
1926         * i386-protos.h (construct_plt_address): Declare.
1927         * i386.c (override_options): Accept large models.
1928         (ix86_expand_prologue): Expand large PIC GOT pointer load.
1929         (legitimate_constant_p): Add new UNSPECs.
1930         (legitimate_pic_operand_p): Likewise.
1931         (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
1932         (legitimize_pic_address): Do easy RIP relative way for TLS only for
1933         non-large model.
1934         (output_pic_addr_const): Add PLTOFF.
1935         (ix86_output_addr_diff_elt): Output 64bit tables when needed.
1936         (ix86_expand_move): Legitimize pic address when in PIC mode.
1937         (construct_plt_address): New function.
1938         (ix86_expand_call): Offload the address to register and use GOT pointer
1939         for large model.
1940         * invoke.texi (mcmodel=large): Update documentation.
1941
1942 2007-03-06  Richard Henderson  <rth@redhat.com>
1943
1944         * config/i386/i386.c (x86_use_leave, x86_push_memory,
1945         x86_zero_extend_with_and, x86_movx, x86_double_with_add,
1946         x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
1947         x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
1948         x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
1949         x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
1950         x86_split_long_moves, x86_promote_QImode, x86_fast_prefix, 
1951         x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
1952         x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
1953         x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves, 
1954         x86_partial_reg_dependency, x86_memory_mismatch_stall, 
1955         x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
1956         x86_sse_partial_reg_dependency, x86_sse_split_regs, 
1957         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
1958         x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
1959         x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
1960         x86_schedule, x86_use_bt, x86_pad_returns,
1961         x86_use_xchgb): Merge into ...
1962         (ix86_tune_features): ... here.  New array.
1963         (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
1964         x86_bswap): Merge into ...
1965         (ix86_arch_features): ... here.  New array.
1966         (x86_3dnow_a): Remove.
1967         (x86_accumulate_outgoing_args): Make static.
1968         (x86_arch_always_fancy_math_387): Make static.
1969         (ix86_tune_mask, ix86_arch_mask): Move ...
1970         (override_options): ... to local variables here.  Apply the
1971         appropriate mask to each element of ix86_arch_features and
1972         ix86_tune_features.  Adjust TARGET_CMOVE and TARGET_USE_SAHF
1973         as were done in the old macros.
1974         (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
1975         * config/i386/i386.h (x86_use_leave, x86_push_memory,
1976         x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
1977         x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
1978         x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
1979         x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
1980         x86_read_modify_write, x86_read_modify, x86_split_long_moves,
1981         x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
1982         x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
1983         x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
1984         x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
1985         x86_partial_reg_dependency, x86_memory_mismatch_stall,
1986         x86_accumulate_outgoing_args, x86_prologue_using_move,
1987         x86_epilogue_using_move, x86_decompose_lea,
1988         x86_arch_always_fancy_math_387, x86_shift1,
1989         x86_sse_partial_reg_dependency, x86_sse_split_regs,
1990         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,        
1991         x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
1992         x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
1993         x86_use_incdec, x86_pad_returns, x86_bswap,
1994         x86_partial_flag_reg_stall): Remove.
1995         (enum ix86_tune_indices): New.
1996         (ix86_tune_features): New.
1997         (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
1998         TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
1999         TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
2000         TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
2001         TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
2002         TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
2003         TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
2004         TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
2005         TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
2006         TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
2007         TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
2008         TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
2009         TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
2010         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
2011         TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
2012         TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
2013         TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
2014         TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
2015         TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
2016         TARGET_EXT_80387_CONSTANTS): Use it.
2017         (enum ix86_arch_indices): New.
2018         (ix86_arch_features): New.
2019         (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
2020         TARGET_BSWAP): Use it.
2021         (ix86_tune_mask, ix86_arch_mask): Remove.
2022
2023 2007-03-06  Joseph Myers  <joseph@codesourcery.com>
2024
2025         PR bootstrap/31020
2026         * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
2027         Define using $${sysroot_headers_suffix}.
2028         * configure: Regenerate.
2029         * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
2030         multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
2031         defined.
2032         * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
2033         * gcc.c (print_sysroot_headers_suffix): New.
2034         (option_map): Include --print-sysroot-headers-suffix.
2035         (display_help): Mention -print-sysroot-headers-suffix.
2036         (process_command): Handle -print-sysroot-headers-suffix.
2037         (do_spec_1): Append multilib directory to include-fixed path if
2038         sysroot suffixes in use.
2039         (main): Handle -print-sysroot-headers-suffix.
2040         * Makefile.in (start.encap): Don't depend on xlimits.h
2041         (xlimits.h): Remove.
2042         (stmp-int-hdrs): Don't depend on xlimits.h.  Inline generation of
2043         limits.h for each multilib in fixinc_list.
2044         (fixinc_list, s-fixinc_list): New.
2045         (stmp-fixinc): Depend on fixinc_list.  If not copying headers,
2046         generate them for each multilib in fixinc_list.
2047         (stmp-fixproto): Use include-fixed.  Run fixproto for each
2048         multilib in fixinc_list.
2049         (mostlyclean): Don't remove xlimits.h.
2050         (clean): Remove include-fixed.
2051         (real-install-headers-tar, real-install-headers-cpio,
2052         real-install-headers-cp): Don't copy include, only include-fixed.
2053         (install-mkheaders): Depend on fixinc_list.  Don't depend on
2054         xlimits.h.  Save limits.h files for each multilib in fixinc_list.
2055         Always save mkinstalldirs.  Preserve ${sysroot_headers_suffix} in
2056         SYSTEM_HEADER_DIR setting in mkheaders.conf.
2057
2058 2007-03-06  Jan Hubicka  <jh@suse.cz>
2059
2060         * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
2061         NANs easilly.
2062
2063 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2064
2065         * configure.ac: Allow tm_file to contain build-directory files.
2066         * configure: Regenerate.
2067         * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
2068         * config/m68k/t-uclinux (sysroot-suffix.h): New target.
2069         * config/m68k/print-sysroot-suffix.sh: New file.
2070
2071 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2072
2073         * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
2074         of pic_offset_table_rtx if reload_completed.
2075         (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
2076         PIC_OFFSET_TABLE_REGNUM.
2077         * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
2078         return true.
2079         (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
2080         (m68k_output_mi_thunk): Rewrite to use RTL.  Honor vcall_offset.
2081
2082 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2083
2084         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
2085         functions that call eh_return.
2086
2087 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2088
2089         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
2090         functions that need a constant pool.
2091
2092 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2093
2094         PR target/28181
2095         * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
2096         (m68k_preferred_reload_class): Likewise.
2097         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
2098         (SECONDARY_RELOAD_CLASS): Define.
2099         (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
2100         (LIMIT_RELOAD_CLASS): Delete.
2101         * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
2102         registers from storing bytes.
2103         (m68k_secondary_reload_class): New function.
2104         (m68k_preferred_reload_class): Likewise.
2105
2106 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2107
2108         * config/m68k/m68k.c (m68k_save_reg): Remove special case for
2109         leaf functions.
2110         (m68k_expand_prologue): Likewise.
2111
2112 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2113
2114         * config/m68k/m68k-protos.h (output_sibcall): Declare.
2115         (mips_expand_epilogue): Add a bool parameter.
2116         (m68k_legitimize_sibcall_address): Declare.
2117         * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
2118         (m68k_expand_epilogue): Add a parameter to select between sibling
2119         and normal epilogues.  Only generate a return for the latter.
2120         (m68k_ok_for_sibcall_p): New function.
2121         (m68k_legitimize_sibcall_address, output_sibcall): New functions.
2122         * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
2123         (sibcall_value, *sibcall_value): Likewise.
2124         (*call, *call_value): Require !SIBLING_CALL_P.
2125         (epilogue): Update call to m68k_expand_epilogue.
2126         (sibcall_epilogue): New pattern.
2127         * config/m68k/predicates.md (const_call_operand): Say that this
2128         predicate applies to sibling calls too.
2129         (sibcall_operand): New predicate.
2130
2131 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2132
2133         * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
2134         alternatives as movsi_cf.
2135         (movsf_cf_hard): Add commentary.
2136
2137 2007-03-06  Kazu Hirata  <kazu@codesourcery.com>
2138             Richard Sandiford  <richard@codesourcery.com>
2139
2140         * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
2141         (m68k_movem_pattern_p, m68k_output_movem): Likewise.
2142         (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
2143         * config/m68k/m68k.h (EPILOGUE_USES): Define.  Treat all registers
2144         as being live on exit from an interrupt function.
2145         (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
2146         * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
2147         (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
2148         (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
2149         (m68k_interrupt_function_p): Globalize.
2150         (m68k_compute_frame_layout): Remove reverse mask code.
2151         (m68k_emit_movem, m68k_set_frame_related): New functions.
2152         (m68k_output_function_prologue): Delete in favor of...
2153         (m68k_expand_prologue): ...this new function.
2154         (m68k_output_function_epilogue): Delete in favor of...
2155         (m68k_expand_epilogue): ...this new function.
2156         (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
2157         functions.
2158         (print_operand): Handle %?.
2159         * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
2160         (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
2161         (prologue, epilogue): New patterns.
2162         (return): Turn into a define_expand.
2163         (*return): New pattern, derived from old "return" pattern.  Use rte
2164         rather than rts for interrupt functions.  Only use rtd if the pop
2165         count is nonzero.
2166         (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
2167         (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
2168         (link, *link, unlink, *unlink, load_got): Likewise.
2169
2170 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2171
2172         PR target/23482
2173         PR target/17114
2174         * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
2175         (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
2176         (m68k_matches_q_p, m68k_matches_u_p): Likewise.
2177         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
2178         and m68k_matches_u_p.
2179         (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
2180         (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
2181         (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
2182         (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
2183         (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
2184         (REG_STRICT_P): New macro.
2185         (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
2186         PCREL_GENERAL_OPERAND_OK.
2187         (REG_OK_FOR_BASE_P): Merge definitions.  Use REG_STRICT_P and
2188         m68k_legitimate_base_reg_p.
2189         (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
2190         (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
2191         (PIC_CASE_VECTOR_ADDRESS): Update comment.
2192         * config/m68k/m68k.c (m68k_address): New structure.
2193         (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
2194         (m68k_decompose_index, m68k_legitimate_constant_address_p)
2195         (m68k_jump_table_ref_p, m68k_decompose_address)
2196         (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
2197         (m68k_matches_u_p): New functions.
2198         (print_operand_address): Rewrite to use m68k_decompose_index.
2199
2200 2007-03-05  David Taylor  <dtaylor@emc.com>
2201
2202         * gcc.c: Correct copyright date in --version output.
2203
2204 2007-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2205
2206         * pa.md: In unamed move patterns, disparge copies between general
2207         and floating point registers using '?' modifier.  Don't include 'f'
2208         constraint for register preferences in DImode, SImode, HImode and
2209         QImode patterns.  Likewise for 'r' in DFmode and SFmode patterns.
2210         Remove constraints for copies between general and floating registers
2211         in soft-float DFmode pattern.
2212         (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
2213         floating register.
2214         (movsf): Likewise. 
2215
2216 2007-03-05  Mike Stump  <mrs@apple.com>
2217
2218         * c-common.c (targetcm): Add.
2219         * c-opts.c (c_common_handle_option): Handle language specific
2220         target options.
2221         * opts.c (handle_option): Verify language for target options, if
2222         any are given.
2223         * opth-gen.awk: Add CL_LANG_ALL.
2224         * target-def.h (TARGET_HANDLE_C_OPTION): Add.
2225         (TARGETCM_INITIALIZER): Add.
2226         * target.h (struct gcc_targetcm): Add.
2227         (targetcm): Add.
2228         * targhooks.c (default_handle_c_option): Add.
2229         * targhooks.h (default_handle_c_option): Add.
2230         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
2231
2232         * config/darwin.opt (iframework): Add.
2233         * config/darwin.h (TARGET_HAS_TARGETCM): Add.
2234         * config/darwin-c.c (handle_c_option): Add.
2235         (TARGET_HANDLE_C_OPTION): Add.
2236         (targetcm): Add.
2237         * doc/invoke.texi (Darwin Options): Add -iframework.
2238
2239 2007-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2240
2241         * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
2242         conversion.
2243
2244 2007-03-05  Ian Lance Taylor  <iant@google.com>
2245
2246         * c.opt (fgnu89-inline): New option.
2247         * c-opts.c (c_common_post_options): Set default value for
2248         flag_gnu89_inline.
2249         * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
2250         (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
2251         inline functions.
2252         (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
2253         (grokdeclarator, start_function): Likewise.
2254         * c-cppbuiltin.c (c_cpp_builtins): Define either
2255         __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
2256         * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
2257         (C Dialect Options): Document -fgnu89-inline.
2258         * doc/extend.texi (Function Attributes): Explain what the
2259         gnu_inline attribute does.
2260         * doc/cpp.texi (Common Predefined Macros): Document
2261         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
2262
2263 2007-03-05  Ian Lance Taylor  <iant@google.com>
2264
2265         PR tree-optimization/31034
2266         * tree-vrp.c (extract_range_from_assert): Don't try to handle a
2267         half-range if the other side is an overflow infinity.
2268
2269 2007-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
2270
2271         * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
2272         (bfin*-linux-uclibc*): New configuration.
2273         * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
2274         defining.
2275         * config/bfin/linux.h: New file.
2276         * config/bfin/libgcc-bfin.ver: New file.
2277         * config/bfin/t-bfin-uclinux: New file.
2278         * config/bfin/t-bfin-linux: New file.
2279         * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
2280         (TARGET_OS_CPP_BUILTINS): New macro.
2281
2282 2007-03-05  Richard Guenther  <rguenther@suse.de>
2283
2284         * fold-const.c (fold_binary): Remove duplicate folding
2285         of comparison of non-null ADDR_EXPR against null.
2286
2287 2007-03-05  Richard Guenther  <rguenther@suse.de>
2288             Dorit Nuzman  <dorit@il.ibm.com>
2289
2290         PR tree-optimization/26420
2291         * tree-vectorizer.c (vectorize_loops): Bail out early if there
2292         are no loops in the function.  Only print the number of
2293         vectorized loops if it is greater than zero or we are supposed
2294         to print information about unvectorized loops.
2295
2296 2007-03-05  Revital Eres  <eres@il.ibm.com>
2297
2298         * gcc.dg/var-expand1.c: New test.
2299         * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
2300         when an accumulator is expanded.
2301
2302 2007-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2303
2304         PR other/30465
2305         * c-common.c (convert_and_check): Don't give warnings for
2306         conversion if 'expr' already overflowed.
2307         
2308 2007-03-04  Roger Sayle  <roger@eyesopen.com>
2309
2310         PR middle-end/30744
2311         * fold-const.c (fold_comparison): Enforce type consistency when
2312         transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
2313
2314 2007-03-04  Zdenek Dvorak  <dvorakz@suse.cz>
2315
2316         * tree-ssa-address.c (create_mem_ref): Do not put an expression
2317         containing a cast to the base of TARGET_MEM_REF.
2318
2319 2007-03-04  Martin Michlmayr  <tbm@cyrius.com>
2320
2321         * tree.c (tree_contains_struct_check_failed): Remove spurious
2322         whitespace from error message.
2323
2324 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
2325
2326         PR target/30406
2327         * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
2328         instead of precision.
2329
2330 2007-03-04  Roman Zippel <zippel@linux-m68k.org>
2331             Nathan Sidwell  <nathan@codesourcery.com>
2332
2333         * emit-rtl.c (find_auto_inc): New.
2334         (try_split): recreate REG_INC notes,
2335         Use regular for loops rather than whiles.
2336
2337 2007-03-03  Andreas Schwab  <schwab@suse.de>
2338
2339         * configure.ac (HAVE_AS_REL16): Move test back to correct place.
2340         * configure: Regenerate.
2341
2342 2007-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2343
2344         * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
2345         flag_rounding_math, not flag_unsafe_math_optimizations.
2346
2347         * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
2348         fold_build2.
2349         * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
2350         alpha_fold_vector_minmax): Likewise.
2351         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
2352         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
2353
2354 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
2355
2356         * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
2357         (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
2358         if the lhs has side-effects.
2359         <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
2360
2361 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
2362
2363         * config/i386/i386.h (TUNEMASK): Remove define.
2364         (ARCHMASK): Remove define.
2365         (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
2366          Use ix86_arch_mask variable instead of ARCHMASK.
2367         * config/i386/i386.c (override_options): Ditto.
2368         (standard_80387_constant_p): Ditto.
2369
2370 2007-03-02  Ian Lance Taylor  <iant@google.com>
2371
2372         Used signed infinities in VRP.
2373         * tree-vrp.c (uses_overflow_infinity): New static function.
2374         (supports_overflow_infinity): New static function.
2375         (make_overflow_infinity): New static function.
2376         (negative_overflow_infinity): New static function.
2377         (positive_overflow_infinity): New static function.
2378         (is_negative_overflow_infinity): New static function.
2379         (is_positive_overflow_infinity): New static function.
2380         (is_overflow_infinity): New static function.
2381         (overflow_infinity_range_p): New static function.
2382         (compare_values_warnv): New function split out of compare_values.
2383         (compare_value): Call it.
2384         (set_value_range_to_nonnegative): Add overflow_infinity
2385         parameter.  Change caller.
2386         (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
2387         Change callers.
2388         (vrp_expr_computes_nonzero): Likewise.
2389         (compare_ranges, compare_range_with_value): Likewise.
2390         (compare_name_with_value, compare_names): Likewise.
2391         (vrp_evaluate_conditional): Likewise.
2392         (set_value_range): Handle infinity
2393         (vrp_operand_equal_p, operand_less_p): Likewise.
2394         (extract_range_from_assert): Likewise.
2395         (vrp_int_const_binop): Likewise.
2396         (extract_range_from_binary_expr): Likewise.
2397         (extract_range_from_unary_expr): Likewise.
2398         (extract_range_from_comparison): Likewise.
2399         (extract_range_from_expr): Likewise.
2400         (dump_value_range): Likewise.
2401         (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
2402         (test_for_singularity): Likewise.
2403         (vrp_int_const_binop): Remove inline qualifier.
2404         (adjust_range_with_scev): Add comment.
2405         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
2406
2407 2007-03-02  Diego Novillo  <dnovillo@redhat.com>
2408
2409         * tree-ssa-structalias.c (could_have_pointers): Tidy.
2410         (get_constraint_for): Likewise.
2411         (do_structure_copy): Likewise.
2412         (find_func_aliases): Fix references to MODIFY_EXPR.
2413         (intra_create_variable_infos): Tidy.
2414         * tree-ssa-operands.c (add_virtual_operand): Add argument
2415         IS_CALL_SITE.
2416         When adding members of alias sets, if IS_CALL_SITE is true and
2417         the symbol is not call-clobbered, skip it.
2418         Adjust all callers.
2419
2420 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
2421
2422         * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
2423         entry by means of emit_insn_at_entry.
2424
2425 2007-03-02  Richard Henderson  <rth@redhat.com>
2426
2427         * expr.h (promoted_input_arg): Remove decl.
2428         * function.c (promoted_input_arg): Merge into ...
2429         * combine.c (setup_incoming_promotions): ... only caller.
2430         Rearrange to avoid double loop.
2431
2432 2007-03-02  Ben Elliston  <bje@au.ibm.com>
2433             Peter Bergner  <bergner@vnet.ibm.com>
2434             Janis Johnson  <janis187@us.ibm.com>
2435
2436         * config/rs6000/dfp.md: New file.
2437         * config/rs6000/rs6000.md: Include dfp.md.
2438         (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
2439         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
2440         and TDmode decimal float modes in FP registers.
2441         (num_insns_constant): Likewise.
2442         (rs6000_legitimate_offset_address_p): Likewise.
2443         (rs6000_legitimize_address): Likewise.
2444         (rs6000_legitimize_reload_address): Likewise.
2445         (rs6000_legitimate_address): Likewise.
2446         (rs6000_emit_move): Likewise.
2447         (function_arg_boundary): Likewise.
2448         (function_arg_advance): Likewise.
2449         (rs6000_darwin64_record_arg_recurse): Likewise.
2450         (function_arg): Likewise.
2451         (rs6000_gimplify_va_arg): Likewise.
2452         (rs6000_split_multireg_move): Likewise.
2453         (rs6000_output_function_epilogue): Likewise.
2454         (rs6000_output_function_epilogue): Likewise.
2455         (rs6000_register_move_cost): Likewise.
2456         (rs6000_function_value): Likewise.
2457         (rs6000_libcall_value): Likewise.
2458
2459 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
2460
2461         * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
2462
2463 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
2464
2465         * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
2466         Use $MULTIDIR to choose between the kernel and RTP headers,
2467         and use $WIND_BASE and $WIND_USR to locate them.
2468
2469 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
2470
2471         * config/i386/i386.c (override_options): Put initialization of
2472         ix86_tune_mask and ix86_arch_mask to the correct place.
2473
2474 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
2475             Michael Meissner  <michael.meissner@amd.com>
2476
2477         PR target/31019
2478         * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
2479         (ARCHMASK): Define.
2480         (TARGET_CMOVE): Use ARCHMASK.
2481         (TARGET_CMPXCHG): Ditto.
2482         (TARGET_CMPXCHG8B): Ditto.
2483         (TARGET_XADD): Ditto.
2484         (TARGET_BSWAP): Ditto.
2485         * config/i386/i386.c (ix86_tune_mask): New global variable.
2486         (ix86_arch_mask): Ditto.
2487         (override_options): Initialize ix86_tune_mask and
2488         ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
2489         target_flags.
2490
2491 2007-03-02  Ben Elliston  <bje@au.ibm.com>
2492
2493         PR 30992
2494         * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
2495
2496 2007-03-02  Joseph Myers  <joseph@codesourcery.com>
2497
2498         * target.h (init_dwarf_reg_sizes_extra): New target hook.
2499         * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
2500         * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
2501         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
2502         hook.
2503         * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
2504         rs6000_init_dwarf_reg_sizes_extra): New.
2505         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
2506         SPE register high parts.
2507
2508 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
2509
2510         * Makefile.in: Add install-pdf target as
2511         copied from automake v1.10 rules.
2512         * configure.ac: Add install-pdf to target list.
2513         * configure: Regenerate.
2514
2515 2007-03-01  Paul Brook  <paul@codesourcery.com>
2516
2517         * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
2518         modes to LDRD for DImode.
2519         (output_move_double): Fixup out of range ldrd/strd.
2520         (vfp_secondary_reload_class): Rename...
2521         (coproc_secondary_reload_class): ... to this.  Add wb argument.
2522         * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
2523         coproc_secondary_reload_class for CLASS_IWMMXT.
2524         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
2525         * arm-protos.h (coproc_secondary_reload_class): Update prototype.
2526
2527 2007-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
2528
2529         * tree-ssa-loop-prefetch.c (determine_unroll_factor):  Bound the unroll
2530         factor by the estimated number of iterations.
2531         (loop_prefetch_arrays): Do not prefetch in loops that iterate less than
2532         prefetch latency.
2533
2534         * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
2535         decode_caches_intel, detect_caches_intel): New functions.
2536         (host_detect_local_cpu): Use detect_caches_amd and
2537         detect_caches_intel.
2538
2539 2007-03-01  Richard Henderson  <rth@redhat.com>
2540
2541         * expr.c (emit_move_complex_push): Export.
2542         (emit_move_complex_parts): Split out from ...
2543         (emit_move_complex): ... here.
2544         * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
2545         * config/i386/i386.md (movcdi): New.
2546
2547 2007-03-01  Uros Bizjak  <ubizjak@gmail.com>
2548
2549         * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
2550         size of mode1 to check for tieable modes in MMX case.
2551
2552 2007-03-01  Richard Sandiford  <richard@codesourcery.com>
2553
2554         * Makefile.in (rtlanal.o): Depend on tree.h.
2555         * rtl.h (offset_within_section_p, split_const): Declare.
2556         * rtlanal.c: Include tree.h.
2557         (offset_within_block_p): New function, taken from
2558         mips_offset_within_object_p.
2559         (split_const): New function, taken from mips_split_const.
2560         * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
2561         Declare.
2562         * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
2563         (CONSTANT_ADDRESS_P): Only accept legitimate constants.
2564         (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
2565         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
2566         (m68k_illegitimate_symbolic_constant_p): New function.
2567         * config/m68k/m68k.md (movsi): Remove misleading predicates.
2568         If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
2569         symbolic constant that might be outside the symbol's section,
2570         move the symbol first and then add the offset.
2571         * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
2572         Override.
2573         * config/mips/mips.c (mips_split_const): Delete.
2574         (mips_offset_within_object_p): Delete.
2575         (mips_symbolic_constant_p): Use offset_within_section_p and
2576         split_const instead of mips_offset_within_object_p and
2577         mips_split_const.
2578         (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
2579         (mips_legitimize_const_move, print_operand_reloc)
2580         (mips_dangerous_for_la25_p): Use split_const instead of
2581         mips_split_const.
2582
2583 2007-02-28  Eric Christopher  <echristo@apple.com>
2584
2585         * Makefile.in (install-include-dir): Don't rm -rf include.
2586
2587 2007-02-28  Richard Guenther  <rguenther@suse.de>
2588
2589         PR middle-end/30364
2590         * fold-const.c (fold_binary): Do not associate expressions
2591         with more than one variable for integer types that do not wrap.
2592
2593 2007-02-28  Sandra Loosemore  <sandra@codesourcery.com>
2594
2595         * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
2596         Delete, and replace with...
2597         (fold_builtin_call_array): This.  Update callers to use it.
2598         * fold-const.c (fold_build_call_list): Delete, and replace with...
2599         (fold_build_call_array): This.
2600         (fold_build_call_list_initializer): Delete, and replace with...
2601         (fold_build_call_array_initializer): This.
2602         * tree.h: Update declarations to reflect above changes.
2603
2604         * c-typeck.c (build_function_call): Store converted arguments
2605         in a stack-allocated array instead of building a list.
2606         (convert_arguments): Store arguments in the array passed in as an
2607         argument, and return the actual number of arguments.
2608         * c-format.c: (check_function_format): Pass arguments in an
2609         array instead of a list.
2610         * c-common.c (check_function_nonnull): Likewise.
2611         (check_function_sentinel): Likewise.
2612         (check_function_arguments): Likewise.
2613         * c-common.h: Update declarations to reflect above changes.
2614
2615 2007-02-28  Jan Hubicka  <jh@suse.cz>
2616
2617         * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
2618         PRED_NEGATIVE_RETURN): Update outcomes.
2619
2620 2007-02-28  Bernd Schmidt  <bernd.schmidt@analog.com>
2621
2622         * calls.c (emit_library_call_value_1): Handle partial registers
2623         correctly when building up CALL_INSN_FUNCTION_USAGE.
2624
2625 2007-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2626
2627         * pa/predicates.md (move_src_operand): Allow zero for mode.
2628         * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
2629         move pattern.
2630
2631 2007-02-27  Uros Bizjak  <ubizjak@gmail.com>
2632
2633         PR target/30970
2634         * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
2635         *movv2df_internal): Enable pattern only for valid operand
2636         combinations.
2637         * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
2638         tie only 128bit modes. For MMX registers, tie only 64bit modes.
2639
2640 2007-02-27  Mike Stump  <mrs@apple.com>
2641
2642         * config/darwin-crt3.c: Avoid compilation when compiling for a
2643         kext multilib.
2644
2645 2007-02-27  Joseph Myers  <joseph@codesourcery.com>
2646
2647         * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
2648         FIXED_INCLUDE_DIR.
2649         (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
2650         for fixed headers and limits.h.
2651         (install-include-dir, install-headers-tar, install-headers-cpio,
2652         install-headers-cp, real-install-headers-tar,
2653         real-install-headers-cpio, real-install-headers-cp): Handle
2654         include-fixed as well as include.
2655         (install-mkheaders): Don't install files that go only in include
2656         not include-fixed.
2657         * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
2658         from GCC_INCLUDE_DIR.
2659         * gcc.c (process_command): Remove special -BstageN/ handling.
2660         (do_spec_1): Add include-fixed directories.
2661
2662 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
2663
2664         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
2665         _smulsi3_highpart.
2666         * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
2667         New functions.
2668         * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
2669         patterns.
2670
2671 2007-02-27  Mark Mitchell  <mark@codesourcery.com>
2672
2673         * c-common.c (get_priority): Add check for
2674         SUPPORTS_INIT_PRIORITY.
2675
2676 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
2677
2678         * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
2679
2680         * config/bfin/bfin.c: Include "cfglayout.h".
2681         (MAX_LSETUP_DISTANCE): New macro.
2682         (struct loop_info): New members incoming, incoming_src and
2683         incoming_dest.  Delete member predecessor.
2684         (length_for_loop): New function.
2685         (bfin_optimize_loop): Handle more different loop structures.
2686         (bfin_discover_loop): Rework detection of predecessor blocks by
2687         examining incoming edges.
2688         (bfin_discover_loops, bfin_free_loops): New functions, broken out of
2689         bfin_reorg_loops.
2690         (bfin_reorder_loops): New function.
2691         (bfin_reorg_loops): Use these three new functions.
2692
2693         * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
2694         REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
2695         (CONSTRAINT_LEN): Add entry for 'q'.
2696         (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
2697         Add 'q' constraints.
2698         (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
2699         (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
2700
2701         * config/bfin/bfin.md (add_with_carry): New pattern.
2702         (s_or_u, su_optab, su_modifier): New code macros/attrs.
2703         (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
2704         <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
2705         support unsigned multiplies too.  Removed incorrect commutativity from
2706         operand 1 constraint where appropriate.
2707         (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
2708         patterns.
2709         (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
2710         <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
2711         New patterns.
2712         (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
2713         usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
2714         usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
2715         usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
2716         usmulhisi_hh_huh): New patterns.
2717
2718         * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
2719         lshifthi3): Fix output template to use half reg for operand 2.
2720
2721         * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
2722         instead of R2.
2723
2724         * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
2725
2726 2007-02-27  Andreas Schwab  <schwab@suse.de>
2727
2728         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
2729
2730 2007-02-27  Jan Hubicka  <jh@suse.cz>
2731
2732         * predict.c (last_basic_block_p): Remove.
2733         (tree_estimate_probability): Update return heuristic for commonized
2734         return blocks.
2735
2736 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
2737
2738         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
2739
2740 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
2741
2742         * doc/include/gcc-common.texi (versionsubtitle): New macro.
2743         * doc/cpp.texi: Standardize title page.
2744         * doc/cppinternals.texi: Likewise.
2745         * doc/gcc.texi: Standardize title page, remove version number
2746         from copyright page.
2747         * doc/gccint.texi: Likewise.
2748         * doc/install.texi: Standardize title page, add table of
2749         contents.
2750
2751 2007-02-26  Jan Hubicka  <jh@suse.cz>
2752
2753         * predict.def: Set outcomes according to more recent results.
2754         (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
2755         Remove dead predictors.
2756         * predict.c (return_prediction): Fix pasto.
2757
2758 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
2759
2760         * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
2761         change; avoid a memory leak when returning early.
2762
2763 2007-02-26  Mark Mitchell  <mark@codesourcery.com>
2764
2765         * c-decl.c (static_ctors): Move to c-common.c.
2766         (static_dtors): Likewise.
2767         (finish_function): Use c_record_cdtor_fn.
2768         (build_cdtor): Move to c-common.c.
2769         (c_write_global_declarations): Use c_build_cdtor_fns.
2770         * c-common.h (static_ctors): Declare.
2771         (static_dtors): Likewise.
2772         (c_record_cdtor_fn): Likewise.
2773         (c_build_cdtor_fns): Likewise.
2774         * c-common.c (static_ctors): New variable.
2775         (static_dtors): Likewise.
2776         (c_record_cdtor_fn): New function.
2777         (build_cdtor): Move from c-decl.c
2778         (c_build_cdtor_fns): New function.
2779
2780         * output.h (assemble_addr_to_section): Declare.
2781         (get_cdtor_priority_section): Likewise.
2782         * varasm.c (assemble_addr_to_section): New function.
2783         (get_cdtor_priority_section): Likewise.
2784         (default_named_section_asm_out_destructor): Use them.
2785         (destor_dtor_section_asm_out_destructor): Likewise.
2786         (default_named_section_asm_out_constructor): Likewise.
2787         (default_ctor_section_asm_out_constructor): Likewise.
2788         * config.gcc (*-*-vxworks*): Include vxworks.o.
2789         * config/t-vxworks (vxworks.o): New target.
2790         * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
2791         (TARGET_ASM_CONSTRUCTOR): Define.
2792         (TARGET_ASM_DESTRUCTOR): Likewise.
2793         (vxworks_asm_out_constructor): Declare.
2794         (vxworks_asm_out_destructor): Likewise.
2795
2796         * c-common.c (get_priority): Check that we have not just an
2797         INTEGER_CST, but an integer constant with integeral type.
2798
2799 2007-02-25  Uros Bizjak  <ubizjak@gmail.com>
2800
2801         PR tree-optimization/30938
2802         * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
2803         use &dt[nargs-1] instead of &dt[nargs] in the call to
2804         vect_is_simple_use().
2805
2806 2007-02-25  Ulrich Weigand  <uweigand@de.ibm.com>
2807
2808         * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
2809         from register elimination as PRE_MODIFY / POST_MODIFY increments.
2810         Do not attempt to handle MEM inside auto-inc expressions.
2811         * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
2812         of a register modified by an auto-inc expression.  However, do handle
2813         elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
2814         (elimination_effects): Prohibit elimination of a register modified
2815         by an auto-inc expression.  Disable register elimination rules whose
2816         target register is modified by an auto-inc expression with variable
2817         increment.
2818
2819 2007-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
2820
2821         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
2822         off-by-one error.
2823         (array_at_struct_end_p): New function.
2824         (idx_infer_loop_bounds): Use it.
2825         (estimate_numbers_of_iterations_loop): Export.
2826         * predict.c (predict_loops): Use estimated_loop_iterations_int.
2827         Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
2828         (tree_estimate_probability): Call record_loop_exits.
2829         * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
2830         (estimated_loop_iterations, estimated_loop_iterations_int,
2831         estimated_loop_iterations_tree): New functions.
2832         (analyze_siv_subscript_cst_affine,
2833         compute_overlap_steps_for_affine_1_2,
2834         analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
2835         (analyze_miv_subscript): Use estimated_loop_iterations_tree.
2836         * predict.def (PRED_LOOP_ITERATIONS): Update comment.
2837         (PRED_LOOP_ITERATIONS_GUESSED): New.
2838         * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
2839         * cfgloop.h (estimate_numbers_of_iterations_loop,
2840         estimated_loop_iterations_int): Declare.
2841
2842 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
2843
2844         * doc/extend.texi: Document optional priority argument to
2845         constructors and destructors.
2846         * tree.c (init_priority_for_decl): Adjust GTY markers.
2847         (init_ttree): Use priority-info hash functions for
2848         init_priority_for_decl.
2849         (tree_map_eq): Rename to ...
2850         (tree_map_base_eq): ... this.
2851         (tree_map_marked_p): Rename to ...
2852         (tree_map_base_marked_p): ... this.
2853         (tree_map_base_hash): New function.
2854         (decl_init_priority_lookup): Rework.
2855         (decl_fini_priority_lookup): New function.
2856         (decl_priority_info): New function.
2857         (decl_init_priority_insert): Use it.
2858         (decl_fini_priority_insert): Likewise.
2859         (decl_restrict_base_lookup): Adjust for refactoring of tree_map
2860         hierarchy.
2861         (decl_restrict_base_insert): Likewise.
2862         (decl_debug_expr_insert): Likewise.
2863         (decl_value_expr_lookup): Likewise.
2864         (decl_value_expr_insert): Likewise.
2865         * tree.h (priority_type): New type.
2866         (decl_init_priority_lookup): Use priority_type.
2867         (decl_fini_priority_lookup): New function.
2868         (decl_init_priority_insert): Use priority_type.
2869         (decl_fini_priority_insert): New function.
2870         (DECL_HAS_INIT_PRIORITY): Tweak comments.
2871         (DECL_INIT_PRIORITY): Likewise.
2872         (SET_DECL_INIT_PRIORITY): Add comment.
2873         (DECL_FINI_PRIORITY): New macro.
2874         (SET_DECL_FINI_PRIORITY): Likewise.
2875         (DEFAULT_INIT_PRIORITY): Document.
2876         (MAX_INIT_PRIORITY): Likewise.
2877         (MAX_RESERVED_INIT_PRIORITY): Likewise.
2878         (tree_map_base): New type.
2879         (tree_map_base_eq): New function.
2880         (tree_map_base_hash): Likewise.
2881         (tree_map_base_marked_p): Likewise.
2882         (tree_map): Inherit from tree_map_base.
2883         (tree_map_eq): Make it a macro.
2884         (tree_map_marked_p): Likewise.
2885         (tree_int_map): Inherit from tree_map_base.
2886         (tree_int_map_eq): Make it a macro.
2887         (tree_int_map_hash): Likewise.
2888         (tree_int_map_marked_p): Likewise.
2889         (tree_priority_map): New type.
2890         (tree_priority_map_eq): New macro.
2891         (tree_priority_map_hash): Likewise.
2892         (tree_priority_map_marked_p): Likewise.
2893         * varasm.c (emults_decl): Adjust for refactoring of tree_map
2894         hierarchy.
2895         (emutls_common_1): Likewise.
2896         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
2897         * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
2898         of tree_map hierarchy.
2899         * tree-cfg.c (move_stmt_r): Likewise.
2900         (new_label_mapper): Likewise.
2901         * c-tree.h (c_expand_body): Move to ...
2902         * c-common.h (c_expand_body): ... here.
2903         * c-decl.c (c_expand_body): Move to ...
2904         * c-common.c (c_expand_body): ... here.
2905         (c_common_attribute_table): Allow 1 argument for the constructor
2906         and destructor attributes.
2907         (get_priority): New function.
2908         (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
2909         (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
2910
2911 2007-02-24  Jan Hubicka  <jh@suse.cz>
2912
2913         PR middle-end/30509
2914         * tree-inline.c (copy_bb): Produce exact copy of EH info when copying for inlining.
2915
2916 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
2917             Jan Hubicka  <jh@suse.cz>
2918
2919         PR target/30778
2920         * i386.c (counter_mode): New function.
2921         (expand_set_or_movmem_via_loop): Use it.
2922         (expand_movmem_epilogue): Likewise; fix pasto.
2923         (ix86_expand_movmem): Do emit guard even for constant counts.
2924         (ix86_expand_setmem): Likewise.
2925
2926 2007-02-25  Nick Clifton  <nickc@redhat.com>
2927
2928         * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
2929         (JUMP_TABLES_IN_TEXT_SECTION): Define.
2930
2931 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
2932
2933         PR target/30770
2934         * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
2935         count argument with 0x10, not with 0x16.
2936         (expand_setmem_epilogue): Ditto.
2937
2938 2007-02-24  Mike Stump  <mrs@apple.com>
2939
2940         * config/i386/i386.c (output_pic_addr_const): Stubify optimized
2941         symbols.
2942
2943 2007-02-24  Richard Guenther  <rguenther@suse.de>
2944
2945         PR middle-end/30951
2946         * fold-const.c (fold_binary): Fold x +- CST op x for
2947         EQ_EXPR and NE_EXPR.
2948
2949 2007-02-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2950
2951         * pa.md (muldi3): Force subregs to registers in 64-bit expander.
2952
2953 2007-02-24  Jan Hubicka  <jh@suse.cz>
2954
2955         * cgraphunit.c (decide_is_function_needed): Honor
2956         -fkeep-inline-functions.
2957
2958 2007-02-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2959
2960         * builtins.c (fold_builtin_modf): New.
2961         (fold_builtin_2): Use it.
2962
2963 2007-02-24  Bernd Schmidt  <bernd.schmidt@analog.com>
2964
2965         * loop-iv.c (implies_p): Detect additional cases where A implies B.
2966         (determine_max_iter): Take additional LOOP arg; all callers changed.
2967         Lose broken logic dealing with PLUS.  Try to limit the upper bound by
2968         one using simplifications.
2969         (simplify_using_initial_values): Return if the expression becomes
2970         invalid due to altered regs.
2971
2972 2007-02-23  DJ Delorie  <dj@redhat.com>
2973
2974         * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
2975
2976 2007-02-23  Mike Stump  <mrs@apple.com>
2977
2978         * tlink.c (scan_linker_output): Parse linker messages from
2979         darwin9's linker better.
2980
2981 2007-02-23  Steve Ellcey  <sje@cup.hp.com>
2982
2983         PR debug/29614
2984         * varpool.c (varpool_assemble_pending_decls):  Set
2985         varpool_last_needed_node to null.
2986
2987 2007-02-23  DJ Delorie  <dj@redhat.com>
2988
2989         * config/i386/i386.c (ix86_data_alignment): Don't specify an
2990         alignment bigger than the object file can handle.
2991
2992 2007-02-23  Uros Bizjak  <ubizjak@gmail.com>
2993
2994         PR target/30825
2995         * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
2996         zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
2997         (*movsf_1): Penalize MMX moves.
2998
2999 2007-02-23  Bernd Schmidt  <bernd.schmidt@analog.com>
3000
3001         * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
3002         2^32-1 or more times unless flag_unsafe_loop_optimizations.
3003
3004         * loop-iv.c (determine_max_iter): Moved in front of its sole user.
3005
3006 2007-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3007
3008         * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
3009         (fold_builtin_1): Use them.
3010         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
3011         BUILT_IN_SIGNIFICAND.
3012
3013 2007-02-23  H.J. Lu  <hongjiu.lu@intel.com>
3014
3015         * config/i386/i386.c (bdesc_1arg): Initialize
3016         IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
3017         "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
3018         (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
3019         and IX86_BUILTIN_MOVSLDUP.
3020
3021 2007-02-22  Paolo Bonzini  <bonzini@gnu.org>
3022
3023         PR rtl-optimization/30841
3024         * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
3025
3026 2007-02-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3027
3028         * builtins.c (fold_builtin_frexp): New.
3029         (fold_builtin_2): Use it.
3030
3031 2007-02-22  Mark Mitchell  <mark@codesourcery.com>
3032
3033         * doc/invoke.texi (Spec Files): Document getenv spec function.
3034
3035         * gcc.c (getenv_spec_function): New function.
3036         (static_spec_functions): Add it.
3037         * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
3038         (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
3039         header files.
3040
3041 2007-02-22  Michael Matz  <matz@suse.de
3042
3043         PR c++/29433
3044         * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
3045         (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
3046
3047 2007-02-22  Ian Lance Taylor  <iant@google.com>
3048
3049         PR debug/30898
3050         * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
3051         (mem_loc_descriptor): Call it.
3052
3053 2007-02-22  Zdenek Dvorak  <dvorakz@suse.cz>
3054             Ira Rosen  <irar@il.ibm.com>
3055
3056         * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
3057
3058 2007-02-22  Ira Rosen  <irar@il.ibm.com>
3059
3060         PR tree-optimization/30843
3061         * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
3062         stores only after all the group is vectorized.
3063
3064 2007-02-22  Dorit Nuzman  <dorit@il.ibm.com>
3065
3066         PR tree-optimization/30858
3067         * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
3068         in the reduction cycle have a single use in the loop.
3069         * tree-vectorizer.h (relevant): Add documentation.
3070
3071 2007-02-20  Mike Stump  <mrs@apple.com>
3072
3073         * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
3074         * configure: Regenerate.
3075
3076 2007-02-21  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
3077
3078         Change the defaults of some parameters and options.
3079         * config/spu/spu-protos.h (spu_optimization_options): Declare.
3080         * config/spu/spu.c (spu_optimization_options): Add.
3081         (spu_override_options): Change params in spu_optimization_options.
3082         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
3083
3084         Register 127 is only 16 byte aligned when used as a frame pointer.
3085         * config/spu/spu-protos.h (spu_init_expanders): Declare.
3086         * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
3087         HARD_FRAME_POINTER_REGNUM.
3088         (spu_legitimate_address):  Use regno_aligned_for_reload.
3089         (regno_aligned_for_load):  HARD_FRAME_POINTER_REGNUM is only 16 byte
3090         aligned when frame_pointer_needed is true.
3091         (spu_init_expanders): New.  Set alignment of HARD_FRAME_POINTER_REGNUM
3092         to 8 bits.
3093         * config/spu/spu.h (INIT_EXPANDERS): Define.
3094
3095         Make sure shift and rotate instructions have valid immediate operands.
3096         * config/spu/predicates.md (spu_shift_operand): Remove.
3097         * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
3098         * config/spu/constraints.md (W, O): Extend range.
3099         * config/spu/spu.md (umask, nmask): Define.
3100         (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
3101         lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
3102         rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
3103         rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
3104         spu_nonmem_operand instead of spu_shift_operands.  Use new modifiers.
3105         (lshr<mode>3_reg):  Fix rtl description.
3106
3107         Make sure mulhisi immediate operands are valid.
3108         * config/spu/predicates.md (imm_K_operand): Add.
3109         * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
3110
3111         Generate constants using fsmbi and andi.
3112         * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
3113         (print_operand, spu_split_immediate, classify_immediate,
3114         fsmbi_const_p): Handle IC_FSMBI2.
3115
3116         Correctly handle a CONST_VECTOR containing symbols.
3117         * config/spu/spu.c (print_operand): Handle HIGH correctly.
3118         (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
3119         (immediate_load_p): Allow symbols that use 2 instructions to create.
3120         (classify_immediate, spu_builtin_splats):  Don't accept a CONST_VECTOR
3121         with symbols when flag_pic is set.
3122         (const_vector_immediate_p): New.
3123         (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
3124         accept a CONST_VECTOR with symbols.
3125         (spu_legitimate_constant_p): Use const_vector_immediate_p.  Don't
3126         accept a CONST_VECTOR with symbols when flag_pic is set.  Handle HIGH
3127         correctly.
3128         * config/spu/spu.md (high, low): Delete.
3129         (low_<mode>): Define.
3130
3131         Remove INTRmode and INTR_REGNUM, which didn't work.
3132         * config/spu/spu.c (spu_conditional_register_usage): Remove reference
3133         of INTR_REGNUM.
3134         * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
3135         set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
3136         peephole2 pattern): Don't use INTR or 131.
3137         (movintrcc): Delete.
3138         * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
3139         CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
3140         * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
3141         (UNSPEC_SET_INTR): Add.
3142         * config/spu/spu-modes.def (INTR): Remove.
3143
3144         More accurate warnings about run-time relocations.
3145         * config/spu/spu.c (reloc_diagnostic): Test in_section.
3146
3147         Correctly warn about immediate arguments to specific intrinsics.
3148         * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
3149         (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
3150         the instruction predicate.
3151
3152         Fix tree check errors with latest update.
3153         * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
3154         CALL_EXPR_ARG.
3155         (spu_expand_builtin): Use CALL_EXPR_FN.
3156
3157         Add missing specific intrinsics.
3158         * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
3159         si_bislede.
3160         * config/spu/spu_internals.h: Ditto.
3161
3162         Fix incorrect operand modifiers.
3163         * config/spu/spu-builtins.md (spu_mpy, spu_mpyu):  Remove use of %H.
3164         * config/spu/spu.md (xor<mode>3):  Change %S to %J.
3165
3166         Optimize one case of zero_extend of a vec_select.
3167         * config/spu/spu.md (_vec_extractv8hi_ze):  Add.
3168
3169         Accept any immediate for hbr.
3170         * config/spu/spu.md (hbr):  Change s constraints to i.
3171
3172 2007-02-21  Paul Brook  <paul@codesourcery.com>
3173
3174         * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
3175         condexec_count when skipping USE and CLOBBER.
3176
3177 2007-02-21  Nick Clifton  <nickc@redhat.com>
3178
3179         * common.opt (Warray-bounds): Add Warning attribute.
3180         (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
3181         Likewise.
3182         (fsized-zeroes): Add Optimization attribute.
3183         (fsplit-wide-types, ftree-scev-cprop): Likewise.
3184         * c.opt (Wc++0x-compat): Add Warning attribute.
3185
3186 2007-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
3187
3188         PR middle-end/30761
3189         * reload1.c (eliminate_regs_in_insn): In the single_set special
3190         case, attempt to re-recognize the insn before falling back to
3191         having reload fix it up.
3192
3193 2007-02-20  Eric Christopher  <echristo@gmail.com>
3194
3195         * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
3196         Rewrite accordingly.
3197         (frv_read_iacc_argument): Ditto.
3198         (frv_expand_set_builtin): Take a call instead of arglist, update for
3199         above changes.
3200         (frv_expand_unop_builtin): Ditto.
3201         (frv_expand_binop_builtin): Ditto.
3202         (frv_expand_cut_builtin): Ditto.
3203         (frv_expand_binopimm_builtin): Ditto.
3204         (frv_expand_voidbinop_builtin): Ditto.
3205         (frv_expand_int_void2arg): Ditto.
3206         (frv_expand_prefetches): Ditto.
3207         (frv_expand_voidtriop_builtin): Ditto.
3208         (frv_expand_voidaccop_builtin): Ditto.
3209         (frv_expand_load_builtin): Ditto.
3210         (frv_expand_store_builtin): Ditto.
3211         (frv_expand_mdpackh_builtin): Ditto.
3212         (frv_expand_mclracc_builtin): Ditto.
3213         (frv_expand_mrdacc_builtin): Ditto.
3214         (frv_expand_mwtacc_builtin): Ditto.
3215         (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
3216         calls for above.
3217
3218 2007-02-20  Janis Johnson  <janis187@us.ibm.com>
3219
3220         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
3221         * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
3222         cmpb instruction.
3223         (HAVE_GAS_DFP): Check for assembler support of decimal floating
3224         point instructions.
3225         * configure: Regenerate.
3226         * config.in: Regenerate.
3227         * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
3228         * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
3229         masks to power6 and power6x and to POWERPC_MASKS.
3230         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3231         _ARCH_PWR6.
3232         * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
3233         * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
3234         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
3235         Access PROTOTYPE as variable, not mask.
3236
3237 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
3238
3239         * rtl.h (remove_reg_equal_equiv_notes): New prototype.
3240         * rtlanal.c (remove_reg_equal_equiv_notes): New function.
3241         * combine.c (adjust_for_new_dest): Use it.
3242         * postreload.c (reload_combine): Likewise.
3243
3244 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
3245
3246         * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
3247         notes on an insn with multiple sets, even if single_set returns
3248         non-NULL for that insn.
3249
3250 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3251
3252         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
3253         scalbn and scalbln.
3254
3255 2007-02-20  Geoffrey Keating  <geoffk@apple.com>
3256
3257         * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
3258         if user didn't pass it.
3259         * config/i386/darwin.h (CC1_SPEC): Likewise.
3260         * config/rs6000/darwin.h (CC1_SPEC): Likewise.
3261         (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
3262         -mmacosx-version-min.
3263
3264 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3265             Uros Bizjak  <ubizjak@gmail.com>
3266
3267         * optabs.h (enum optab_index): Add new OTI_scalb.
3268         (scalb_optab): Define corresponding macro.
3269         * optabs.c (init_optabs): Initialize scalb_optab.
3270         * genopinit.c (optabs): Implement scalb_optab using scalb?f3
3271         patterns.
3272         * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
3273         BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
3274         (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
3275         and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
3276         flag_unsafe_math_optimizations is set.
3277
3278         * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
3279         to implement scalbf, scalb and scalbl built-ins as inline x87
3280         intrinsics.
3281
3282 2007-02-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3283             DJ Delorie <dj@redhat.com>
3284
3285         PR other/30824
3286         * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
3287         (diagnostic_report_diagnostic): ... here, and turn them into real
3288         errors. If warnings are inhibited, no need to do anything.
3289
3290 2007-02-20  Uros Bizjak  <ubizjak@gmail.com>
3291
3292         * config/i386/i386.md (expm1xf2): Reorder insn sequence for
3293         better code generation.
3294
3295 2007-02-20  Ben Elliston  <bje@au.ibm.com>
3296
3297         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
3298
3299 2007-02-20  Kazu Hirata  <kazu@codesourcery.com>
3300
3301         * config/alpha/alpha.c, config/alpha/alpha.md,
3302         config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
3303         config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
3304         config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
3305         config/arm/lib1funcs.asm: Follow spelling conventions.
3306
3307         * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
3308         config/fr30/fr30.md, config/i386/i386.h,
3309         config/iq2000/iq2000.h, config/iq2000/predicates.md,
3310         config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
3311         config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
3312         config/pdp11/pdp11.c, config/pdp11/pdp11.h,
3313         config/rs6000/altivec.md, config/rs6000/rs6000.c,
3314         config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
3315         config/sparc/sparc.c, config/sparc/sparc.h,
3316         config/sparc/sparc.md, config/spu/constraints.md,
3317         config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
3318         conventions.
3319
3320 2007-02-20  Alan Modra  <amodra@bigpond.net.au>
3321
3322         PR target/29943
3323         * varasm.c (use_blocks_for_decl_p): Return false for decls with
3324         alias attribute.
3325
3326 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
3327
3328         * doc/invoke.texi (-ftree-lrs): Remove.
3329
3330 2007-02-19  Diego Novillo  <dnovillo@redhat.com>
3331
3332         * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
3333         NULL.
3334
3335 2007-02-19  Lee Millward  <lee.millward@codesourcery.com>
3336
3337         * config/ia64/ia64.c (ia64_expand_builtin): Use the
3338         new CALL_EXPR_FN macro for retrieving the function
3339         declaration of the input expression.
3340
3341 2007-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3342
3343         * c.opt (Waddress): New.
3344         * common.opt (Walways-true): Delete.
3345         (Wstring-literal-comparison): Delete.
3346         * doc/invoke.texi (Warning Options): Delete -Walways-true and
3347         -Wstring-literal-comparison. Add -Waddress.
3348         (Waddress): New.
3349         (Walways-true): Delete.
3350         (Wstring-literal-comparison): Delete.
3351         * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
3352         consistently instead of -Walways-true in example.
3353         * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
3354         * c-typeck.c (parser_build_binary_op): Replace
3355         -Wstring-literal-comparison and -Walways-true with -Waddress.
3356         * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
3357         with -Waddress.
3358
3359 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
3360
3361         * tree-cfg.c (dump_function_to_file): Be prepared for functions
3362         without DECL_STRUCT_FUNCTION initialized.
3363
3364 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
3365
3366         * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
3367         due to calls to functions taking pointers as parameters.
3368
3369 2007-02-19  Richard Henderson  <rth@redhat.com>
3370
3371         PR debug/29558
3372         * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
3373         in memory.
3374
3375 2007-02-19  Andreas Krebbel  <krebbel1@de.ibm.com>
3376
3377         * config/s390/s390.c (s390_call_saved_register_used,
3378         s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
3379         accessed to the new scheme.
3380
3381 2007-02-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3382
3383         * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
3384         (cris_print_index, cris_print_operand, cris_print_operand_address)
3385         (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
3386         (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
3387         (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
3388         GET_CODE () == xxx.
3389         * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
3390         EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
3391         GO_IF_LEGITIMATE_ADDRESS): Ditto.
3392         * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
3393         (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
3394         (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
3395         (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
3396         (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
3397         (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
3398         (uminsi3, call, call_value): Ditto.
3399         (define_split: indir_to_reg_split, unnamed): Ditto.
3400
3401 2007-02-19  Dorit Nuzman  <dorit@il.ibm.com>
3402
3403         PR tree-optimization/30975
3404         * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
3405         wrong assert.
3406
3407 2007-02-18  Eric Christopher  <echristo@gmail.com>
3408
3409         * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
3410         Remove use of arglist.
3411         (mips_expand_builtin): Remove use of arglist, pass in expr.
3412         (mips_expand_builtin_direct): Rewrite handling for arglist removal.
3413         (mips_expand_builtin_movtf): Ditto.
3414         (mips_expand_builtin_compare): Ditto.
3415
3416 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
3417
3418         * tree-sra.c (sra_build_assignment): Replace assertion
3419         checking with a comment explaining why it can't be done.
3420
3421 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
3422
3423         PR middle-end/30833
3424         * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
3425         during CALL_EXPR representation conversion.
3426         * tree-ssa-propagate.c (set_rhs): Likewise.
3427
3428 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
3429
3430         * tree-sra.c (sra_build_assignment): Disable assertion checking
3431         for now.
3432
3433 2007-02-18  Roger Sayle  <roger@eyesopen.com>
3434
3435         * function.c (gimplify_parameters): Call build_gimple_modify_stmt
3436         instead of calling build2 with a GIMPLE_MODIFY_STMT.
3437         * gimple-low.c (lower_function_body, lower_builtin_setjmp):
3438         Likewise.
3439         * gimplify.c (build_stack_save_restore, gimplify_return_expr,
3440         gimplify_decl_expr,  gimplify_self_mod_expr, gimplify_cond_expr,
3441         gimplify_init_ctor_eval_range, gimple_push_cleanup,
3442         gimplify_omp_for, gimplify_omp_atomic_pipeline,
3443         gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
3444         force_gimple_operand): Likewise.
3445         * ipa-cp.c (constant_val_insert): Likewise.
3446         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
3447         lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
3448         perfect_nestify): Likewise.
3449         * langhooks.c (lhd_omp_assignment): Likewise.
3450         * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
3451         lower_copyprivate_clauses, lower_send_clauses,
3452         lower_send_shared_vars, expand_parallel_call,
3453         expand_omp_for_generic, expand_omp_for_static_nochunk,
3454         expand_omp_for_static_chunk, expand_omp_sections,
3455         lower_omp_single_copy, lower_omp_for_lastprivate,
3456         lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
3457         * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
3458   &nb