OSDN Git Service

* gimplify.c (gimplify_type_sizes) [POINTER_TYPE, REFERENCE_TYPE]:
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2006-10-06  Olivier Hainque  <hainque@adacore.com>
2         
3         * gimplify.c (gimplify_type_sizes) [POINTER_TYPE, REFERENCE_TYPE]:
4         Don't recurse on the pointed-to type.
5         * c-decl.c (grokdeclarator) [cdk_pointer]: If we are in a NORMAL or
6         DECL context, attach an artificial TYPE_DECL to anonymous pointed-to
7         types with components of variable size.
8
9 2006-10-06  Danny Smith  <dannysmith@users.sourceforge.net>
10
11         config/i386/mingw32.h (GOMP_SELF_SPECS): Add -mthreads for openmp.
12
13 2006-10-06  Jakub Jelinek  <jakub@redhat.com>
14
15         PR tree-optimization/29290
16         * tree-loop-linear.c (linear_transform_loops): Bail if loop_nest has
17         multiple exits.
18
19         PR target/29198
20         * config/i386/i386.c (legitimize_pic_address): Reject TLS symbols.
21         * config/i386/predicates.md (local_symbolic_operand): Likewise.
22
23         PR c/29091
24         * varasm.c (output_constant): If TREE_VECTOR_CST_ELTS chain is shorter than
25         the number of vector elements fill the rest with zeros.
26
27 2006-10-05  Richard Sandiford  <richard@codesourcery.com>
28
29         * config/mips/mips.c (mips_pass_by_reference): Do not return false
30         for EABI if type is NULL.  Use a size check based on GET_MODE_SIZE
31         instead.
32
33 2006-10-05  Bernd Schmidt  <bernd.schmidt@analog.com>
34
35         * config/bfin/bfin.md (subsi3): Lose expander, change previously
36         unnamed pattern into subsi3.  Use correct constraints/predicates.
37         * config/bfin/bfin.h (CONST_OK_FOR_K): Handle "KN7".
38         * config/bfin/predicates.md (reg_or_neg7bit_operand_p): New.
39
40 2006-10-05  Ira Rosen  <irar@il.ibm.com>
41
42         * doc/loop.texi: Add data references analysis description.
43
44 2006-10-04  Brooks Moses  <bmoses@stanford.edu>
45
46         * doc/gcov.texi: Add formatting to "Invoking gcov" section head.
47
48 2006-10-04  Richard Henderson  <rth@redhat.com>
49             Jakub Jelinek  <jakub@redhat.com>
50
51         * Makefile.in (libgcc.mk, LIBGCC_DEPS): Add emutls.c.
52         * builtin-types.def (BT_WORD): Make unsigned.
53         (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
54         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
55         (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
56         * c-decl.c (grokdeclarator): Don't error if !have_tls.
57         * c-parser.c (c_parser_omp_threadprivate): Likewise.
58         * cgraph.c (decide_is_variable_needed): Look at force_output.
59         Recurse for emulated tls.
60         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Remove
61         checks redundant with decide_is_variable_needed.
62         (cgraph_build_static_cdtor): Do cgraph_varpool_assemble_pending_decls.
63         * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
64         emulated tls.
65         * expr.c (emutls_var_address): New.
66         (expand_expr_real_1): Expand emulated tls.
67         (expand_expr_addr_expr_1): Likewise.
68         * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
69         * output.h (emutls_finish): Declare.
70         * toplev.c (compile_file): Call it.
71         * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
72         address before wrapping in CONST.
73         * varasm.c (emutls_htab, emutls_object_type): New.
74         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
75         (get_emutls_object_name, get_emutls_object_type): New.
76         (get_emutls_init_templ_addr, emutls_decl): New.
77         (emutls_common_1, emutls_finish): New.
78         (assemble_variable): When emulating tls, swap decls; generate 
79         constructor for the emutls objects.
80         (do_assemble_alias): When emulating tls, swap decl and target name.
81         (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
82         for emulated tls.
83         * emutls.c: New file.
84         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
85         tls_object for real tls.
86
87 2006-10-04  Zack Weinberg  <zackw@panix.com>
88
89         Fix bug in constraint-check generator, reported by Rask Ingemann
90         Lambertsen:
91         * genpreds.c (add_constraint): Don't remove anything from the
92         expression here.
93         (write_tm_constrs_h): Detect whether "op" argument is used, and
94         mark it ARG_UNUSED if it isn't.
95         (write_insn_const_int_ok_for_constraint): Skip the part of the
96         expression that would test whether "op" (which is not available
97         here) is a CONST_INT.
98
99 2006-10-04  Ryan Mansfield  <rmansfield@qnx.com>
100
101         PR c++/28448
102         * doc/invoke.texi (fdiagnostics-show-option): Fix typos.
103
104 2006-10-03  Geoffrey Keating  <geoffk@apple.com>
105
106         * config/i386/darwin-libgcc.10.5.ver: Update to symbol list for
107         current Leopard versions.
108         * config/rs6000/darwin-libgcc.10.5.ver: Likewise.
109
110 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
111
112         * doc/install.texi: Fix typos.
113
114 2006-10-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
115
116         * builtins.c (expand_builtin_return_addr): Deal with FRAME_ADDR_RTX.
117         * doc/tm.texi (Basic Stack Layout): Document FRAME_ADDR_RTX.
118         * config/sparc/sparc.h (FRAME_ADDR_RTX): Define.
119
120 2006-10-02  Jack Howarth  <howarth@bromo.med.uc.edu>
121
122         * unwind-dw2-fde-darwin.c (getsectdatafromheader_64): Fix first
123         arg to be struct mach_header_64* instead.
124
125 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
126
127         PR c/29154
128         * gimplify.c (gimplify_self_mod_expr): Run inner expression's post
129         side effects after the outer expression's post side effects.
130
131 2006-10-01  Sandra Loosemore  <sandra@codesourcery.com>
132
133         * tree.h (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET):  Fix
134         comments to reflect actual behavior and relationship between
135         DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET, and DECL_OFFSET_ALIGN.
136
137         * doc/c-tree.texi (Working with declarations): Fix documentation
138         of FIELD_DECL likewise.
139
140 2006-10-01  Ryan Mansfield  <rmansfield@qnx.com>
141
142         PR c/20533
143         * doc/extend.texi: Add used variable attribute description.
144
145 2006-09-30  Joseph S. Myers  <joseph@codesourcery.com>
146
147         PR c/24010
148         * c.opt (Woverride-init): New.
149         * c-opts.c (c_common_post_options): Default warn_override_init to
150         extra_warnings.
151         * c-typeck.c (add_pending_init, output_init_element): Warn for
152         overriding initializers without side effects.
153         * doc/invoke.texi (-Woverride-init): Document.
154         (-Wextra): Update.
155
156 2006-09-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
157
158         PR rtl-optimization/28096
159         * ifcvt.c (check_cond_move_block): Return FALSE if the source of an
160         assignment has already been used as a destination earlier in the block.
161
162 2006-09-29  Eric Botcazou  <ebotcazou@adacore.com>
163
164         * builtins.c (expand_builtin_setjmp): Delete.
165         (expand_builtin) <BUILT_IN_SETJMP>: Mark as unreachable.
166         <BUILT_IN_SETJMP_SETUP>: New case.
167         <BUILT_IN_SETJMP_DISPATCHER>: Likewise.
168         <BUILT_IN_SETJMP_RECEIVER>: Likewise.
169         * builtins.def (BUILT_IN_SETJMP_SETUP): New built-in stub.
170         (BUILT_IN_SETJMP_DISPATCHER): Likewise.
171         (BUILT_IN_SETJMP_RECEIVER): Likewise.
172         * gimple-low.c (struct lower_data): New field calls_builtin_setjmp.
173         (lower_function_body): Initialize it to false.  If it is set to true
174         at the end of the processing, emit the setjmp dispatcher.
175         (lower_stmt) <CALL_EXPR>: Invoke lower_builtin_setjmp if the callee
176         is __builtin_setjmp and set calls_builtin_setjmp to true as well.
177         <MODIFY_EXPR>: Fall through to above case if there is a CALL_EXPR
178         on the rhs of the assignment.
179         (lower_builtin_setjmp): New function.
180         * tree.c (build_common_builtin_nodes): Build BUILT_IN_SETJMP_SETUP,
181         BUILT_IN_SETJMP_DISPATCHER and BUILT_IN_SETJMP_RECEIVER nodes.
182         * tree-cfg.c (make_exit_edges) <CALL_EXPR>: Use specific predicate
183         to detect calls that can go to non-local labels.  Use specific
184         helper to create the abnormal edges associated with them.
185         <MODIFY_EXPR>: Likewise.
186         (make_abnormal_goto_edges): New function extracted from...
187         (make_goto_expr_edges): ...here.  Call it for computed gotos.
188         (simple_goto_p): Minor tweak.
189         (tree_can_make_abnormal_goto): New predicate.
190         (tree_redirect_edge_and_branch): Return zero on all abnormal edges.
191         (tree_purge_dead_abnormal_call_edges): New function.
192         * tree-flow.h (tree_can_make_abnormal_goto): Declare.
193         (tree_purge_dead_abnormal_call_edges): Likewise.
194         (make_abnormal_goto_edges): Likewise.
195         * tree-inline.c (expand_call_inline): Simplify statement frobbing.
196         Purge all dead abnormal edges if the call was in the last statement.
197         * tree-optimize.c (has_abnormal_outgoing_edge_p): New predicate.
198         (execute_fixup_cfg): If there are non-local labels in the function,
199         scan the basic blocks and split them at calls that can go to non-local
200         labels or add missing abnormal call edges.  Write down the CFG in the
201         dump file.
202         (pass_fixup_cfg): Remove TODO_dump_func flag.
203         * unwind-sjlj.c: Poison setjmp.
204         * doc/install.texi (enable-sjlj-exceptions): Use more general wording.
205         * doc/tm.texi (DWARF2_UNWIND_INFO): Likewise.
206         (TARGET_UNWIND_TABLES_DEFAULT): Fix typo.
207         (DONT_USE_BUILTIN_SETJMP): Document it.
208
209 2006-09-28  Geoffrey Keating  <geoffk@apple.com>
210
211         PR target/28617
212         * config/rs6000/rs6000.h [IN_LIBGCC2] (TARGET_POWERPC64): Define
213         to 1 when __ppc64__ is defined.
214         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Add ppc64-fp.c and
215         darwin-64.c.
216         * config/rs6000/ppc64-fp.c: Also compile when __ppc64__ is defined.
217
218 2006-09-28  Steve Ellcey  <sje@cup.hp.com>
219
220         * config/ia64/t-hpux (LIB2FUNCS_EXTRA): Remove unwind-hpux.c.
221         * config/ia64/unwind-hpux.c: Delete.
222
223 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
224
225         * gimplify.c (gimplify_init_ctor_preeval): Call maybe_with_size_expr
226         on the element before gimplifying it, instead of punting if it is of
227         variable size.
228
229 2006-09-28  Zdenek Dvorak <dvorakz@suse.cz>
230
231         * doc/loop.texi: New file.
232         * doc/gccint.texi: Reference loop.texi.
233         * Makefile.in (loop.texi): Add.
234
235 2006-09-27  Geoffrey Keating  <geoffk@apple.com>
236
237         * config/darwin.h (ENABLE_EXECUTE_STACK): New, use getpagesize not
238         __sysctl.
239         * config/rs6000/darwin.h (ENABLE_EXECUTE_STACK): Remove.
240         * config/i386/darwin.h (ENABLE_EXECUTE_STACK): Remove.
241
242 2006-09-28  Kaz Kojima  <kkojima@gcc.gnu.org>
243
244         * config/sh/sh.md (divsi_inv_m0): Remove unused variable.
245
246 2006-09-27  Steven G. Kargl  <kargl@gcc.gnu.org>
247
248         * doc/install.texi: Document required versions of GMP and MPFR.
249
250 2006-09-27  Paul Brook  <paul@codesourcery.com>
251
252         PR target/29230
253         * config/arm/arm.md (arith_adjacentmem): Handle large offsets.
254
255 2006-09-27  Richard Sandiford  <richard@codesourcery.com>
256
257         * reload1.c (alter_reg): Require the alignment of the stack slot to
258         be at least reg_max_ref_width bytes.
259         (scan_paradoxical_subregs): Record the largest width in
260         reg_max_ref_width.
261
262 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
263
264         PR middle-end/25261
265         PR middle-end/28790
266         * tree-nested.c (struct nesting_info): Added static_chain_added.
267         (convert_call_expr): Set static_chain_added when adding static
268         chain.  Handle OMP_PARALLEL and OMP_SECTION.
269
270 2006-09-25  Matthias Klose  <doko@debian.org>
271
272         * doc/invoke.texi: Add missing full stop.
273
274 2006-09-25  Richard Henderson  <rth@redhat.com>
275
276         * cgraph.c (dump_cgraph_varpool_node): Don't crash if called
277         before cgraph_function_flags_ready.
278
279 2006-09-24  Zdenek Dvorak <dvorakz@suse.cz>
280             Adam Nemet  <anemet@caviumnetworks.com>
281
282         * tree-ssa-loop-ivopts.c (aff_combination_convert,
283         determine_common_wider_type): New functions.
284         (get_computation_aff): Use them to simplify arithmetic between
285         UBASE and CBASE if they are shortened from the same type.
286
287 2006-09-24  Kazu Hirata  <kazu@codesourcery.com>
288
289         PR target/28911
290         * config/m68k/m68k.md (negsf2, negdf2, negxf2): Use
291         -2147483647 - 1 instead of 0x80000000.
292
293 2006-09-23  Revital1 Eres  <ERES@il.ibm.com>
294
295         * flags.h (HONOR_NANS): Fix typo in comment.
296
297 2006-09-23  Uros Bizjak <uros@kss-loka.si>
298
299         * config/i386/driver-i386.c (host_detect_local_cpu): Add prototype.
300
301 2006-09-23  Jakub Jelinek  <jakub@redhat.com>
302
303         PR c/28706
304         PR c/28712
305         * tree.c (merge_attributes, attribute_list_contained): If both
306         TREE_VALUEs are TREE_LISTs, use simple_cst_list_equal instead of
307         simple_cst_equal.
308         * c-typeck.c (comptypes_internal): Don't consider aggregates
309         in different TUs as compatible if there one set of attributes is
310         not a subset of the other type's attributes.
311         (composite_type): Try harder not to create a new aggregate type.
312
313 2006-09-22  Geoffrey Keating  <geoffk@apple.com>
314
315         * config/i386/driver-i386.c: Always define host_detect_local_cpu.
316         * config/i386/i386.h: Define EXTRA_SPEC_FUNCTIONS on any i386
317         or x86_64 host.  Define HAVE_LOCAL_CPU_DETECT.
318         (CC1_CPU_SPEC): Make conditional on HAVE_LOCAL_CPU_DETECT rather
319         than replicating condition above.
320         * config.host (i[34567]86-*-*): Always use driver-i386.o.
321
322         * config/darwin.h (LINK_SYSROOT_SPEC): New.
323         (LINK_SPEC): If TARGET_SYSTEM_ROOT is defined, pass it to
324         the linker by default.
325
326 2006-09-22  Mike Stump  <mrs@apple.com>
327
328         * config/rs6000/darwin.h (PROFILE_HOOK): Reassociate comment with
329         code.
330
331 2006-09-22  Richard Guenther  <rguenther@suse.de>
332
333         PR middle-end/28964
334         * cfgexpand.c (stack_var_size_cmp): Use DECL_UID to make
335         sort of stack variables stable.
336
337 2006-09-22  Peter Bergner <bergner@vnet.ibm.com>
338
339         PR middle-end/28690
340         * explow.c (force_reg): Set REG_POINTER flag according to
341         MEM_POINTER flag.
342
343 2006-09-22  Zdenek Dvorak <dvorakz@suse.cz>
344
345         PR tree-optimization/28888
346         * tree-if-conv.c (combine_blocks): Rewritten.
347         * tree-cfg.c (tree_verify_flow_info): Check that edges with
348         EDGE_TRUE/FALSE_VALUE follow COND_EXPR.
349
350 2006-09-22  Jakub Jelinek  <jakub@redhat.com>
351
352         * tree-ssa-propagate.c (set_rhs): Copy EXPR_LOCATION if
353         needed.
354
355 2006-09-21  Richard Sandiford  <richard@codesourcery.com>
356
357         * varasm.c (copy_constant): Fix reversed gcc_assert check.
358
359 2006-09-21  Janis Johnson  <janis187@us.ibm.com>
360
361         * ginclude/decfloat.h (DEC*_DEN): Define using the correct builtins.
362
363 2006-09-21  Roger Sayle  <roger@eyesopen.com>
364
365         PR debug/29132
366         * dwarf2out.c (dwarf2out_begin_prologue): Initialise the current label,
367         dw_fde_current_label, to be the start of the function, i.e. the same
368         value as dw_fde_begin.
369
370 2006-09-20  Richard Sandiford  <richard@codesourcery.com>
371
372         * config/mips/mips.c (CODE_FOR_mips_abs_ps): Delete.
373         * config/mips/mips.md (UNSPEC_ABS_PS): New constant.
374         (UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2)
375         (UNSPEC_SINGLE_CC, UNSPEC_SCC): Bump values by 1.
376         (*nmadd<mode>, *nmadd<mode>_fastmath): Require !HONOR_NANS.
377         (*nmsub<mode>, *nmsub<mode>_fastmath): Likewise.
378         (abs<mode>2, neg<mode>2): Likewise.
379         * config/mips/mips-ps-3d.md (mips_abs_ps): New define_expand.
380         (*mips_abs_ps): New define_insn.
381
382 2006-09-20  Josh Conner  <jconner@apple.com>
383
384         PR middle-end/25505
385         * calls.c (expand_call): Allow reuse of structure return stack
386         temp.
387
388 2006-09-20  Paul Brook  <paul@codesourcery.com>
389
390         * config/arm/unwind-arm.c (selfrel_offset31): Clear top bit for
391         positive offsets.
392
393 2006-09-20  Janis Johnson  <janis187@us.ibm.com>
394
395         * doc/extend.texi (Decimal Float): Update for latest draft TR,
396         clean up terminology.
397
398 2006-09-20  Steve Ellcey  <sje@cup.hp.com>
399
400         PR target/28574
401         * ifcvt.c (dead_or_predicable): Don't predicate then blocks
402         with tablejumps in them.
403
404 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
405
406         PR middle-end/28046
407         * c-omp.c (c_finish_omp_atomic): If ADDR is not simple enough,
408         wrap it into TARGET_EXPR.
409
410 2006-09-20  Eric Christopher  <echristo@apple.com>
411
412         * config/i386/i386.c (x86_fisttp): Remove.
413         * config/i386/i386.h (x86_fisttp): Ditto.
414         (TARGET_FISTTP): Ditto.
415
416 2006-09-19  Eric Christopher  <echristo@apple.com>
417
418         * doc/tm.texi (OBJC_JBLEN): Describe.
419         * config/i386/darwin.h (OBJC_JBLEN): Define.
420         * config/rs6000/darwin.h: Ditto.
421
422 2006-09-19  Steven Bosscher  <steven@gcc.gnu.org>
423
424         PR rtl-optimization/21299
425         * reload1.c (reload): Purge invalid ASMs in the final pass.
426
427 2006-09-19  Steve Ellcey  <sje@cup.hp.com>
428
429         PR  28490
430         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow function
431         pointers as legitimate constants.
432
433 2006-09-19  Paul Brook  <paul@codesourcery.com>
434
435         PR target/28516
436         * config/arm/arm.c (arm_unwind_emit_set): Handle reg = sp + const.
437
438 2006-09-17  Zdenek Dvorak <dvorakz@suse.cz>
439
440         PR tree-optimization/28887
441         * tree-ssa-loop-prefetch.c (analyze_ref): Strip nonaddressable
442         component parts from the reference.
443         (gather_memory_references_ref): Record the reference without the
444         nonaddressable component parts.
445
446 2006-09-17  Steven Bosscher  <steven@gcc.gnu.org>
447
448         PR c/25993
449         * c-opts.c (c_common_handle_option): Ignore the -std options
450         if the input language is assembly.
451
452 2006-09-17  Ira Rosen  <irar@il.ibm.com>
453
454         PR tree-opt/21591
455         * tree-data-ref.c (ptr_decl_may_alias_p): Look for the name memory
456         tag first.
457         (ptr_ptr_may_alias_p): Likewise.
458         (record_record_differ_p): New function.
459         (base_object_differ_p): Call record_record_differ_p.
460
461 2006-09-16  Andrew Pinski  <pinskia@physics.uc.edu>
462
463         PR tree-opt/29059
464         * tree-ssa-propagate.c (set_rhs): Reject MODIFY_EXPR right
465         away for the expr argument.
466
467 2006-09-16  Steven Bosscher  <steven@gcc.gnu.org>
468
469         PR tree-opt/27742
470         * tree-vectorizer.c (vectorize_loops): Clear vect_loop_location
471         before using it for dumping after vectorizing loops.
472
473 2006-09-16  Andrew Pinski  <pinskia@physics.uc.edu>
474             Jack Howarth  <howarth@bromo.med.uc.edu>
475
476         PR target/29030
477         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_recurse)
478         skip on error_mark_node.
479         (rs6000_darwin64_record_arg_recurse): Likewise.
480
481 2006-09-16  Steven Bosscher  <steven@gcc.gnu.org>
482
483         * rtl.h (LABEL_OUTSIDE_LOOP_P): Remove.
484         * doc/rtl.texi: Remove related documentation.
485
486 2006-09-16  Bernd Schmidt  <bernd.schmidt@analog.com>
487
488         * loop-doloop.c (doloop_optimize): Remove bogus arg from debugging
489         printf.
490
491 2006-09-15  Jim Wilson  <wilson@specifix.com>
492
493         * config/ia64/ia64.c (ia64_legitimate_constant_p, cast CONST):
494         Handle symbol offsets same as they are handled in ia64_expand_move
495         and move_operand.
496
497 2006-09-16  Andreas Tobler  <a.tobler@schweiz.org>
498
499         * loop-doloop.c (doloop_optimize): Change type of max_cost to int.
500         Add forgotten parameter to the fprintf call.
501
502 2006-09-15  Steve Ellcey  <sje@cup.hp.com>
503
504         * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Add define.
505
506 2006-09-15  Uros Bizjak <uros@kss-loka.si>
507
508         * doc/contrib.texi: Add my entry.
509
510 2006-09-15  Nick Clifton  <nickc@redhat.com>
511
512         * doc/md.texi (Processor pipeline description): Fix typo in
513         example of how to use the absence_set directive and reword the
514         description to make it slightly easier to read.
515
516 2006-09-15  Bernd Schmidt  <bernd.schmidt@analog.com>
517
518         * params.def (PARAM_MAX_ITERATIONS_COMPUTATION_COST): New.
519         * loop-doloop.c (doloop_optimize): Use it to limit costs of
520         expanding the number of iterations.
521         * config/bfin/bfin.c (bfin_rtx_costs): Handle UDIV, UMOD.
522
523         * cfgrtl.c (emit_insn_at_entry): New function.
524         * rtl.h (emit_insn_at_entry): Declare it.
525         * integrate.c (emit_initial_value_sets): Use it.
526
527         * cfgrtl.c (emit_insn_at_entry): Use gcc_assert, not abort.
528
529         * config/bfin/bfin.c (struct loop_info): New members block_bitmap and
530         bad.
531         (struct loop_work and related VEC declarations): Delete.
532         (bfin_dump_loops): Print out new member bad.
533         (bfin_bb_in_loop): Use plain bitmap test.  Don't recurse.
534         (bfin_scan_loop): Don't recurse.
535         (bfin_optimize_loop): Don't use a loop depth of -1 to indicate bad
536         loops.  No longer need to update outer loops if the current one is
537         found bad.  Move some validitiy checks to bfin_discover_loop.
538         (bfin_discover_loop): New function, mostly split from bfin_reorg_loops,
539         but changed not to check for nesting.  Also changed to use the new bad
540         flag.
541         (bfin_reorg_loops): Use bfin_discover_loop to find single loops one at a
542         time.  Use bitmap based test to discover loop nesting.
543
544 2006-09-15  Kazu Hirata  <kazu@codesourcery.com>
545
546         * doc/tm.texi (TARGET_FUNCTION_VALUE): Put @deftypefn all in
547         one line.
548
549 2006-09-14  Richard Guenther  <rguenther@suse.de>
550             Kazu Hirata  <kazu@codesourcery.com>
551
552         PR middle-end/28884.
553         * doc/tm.texi (TARGET_FUNCTION_VALUE): Document.
554         (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE): Deprecate.
555         Replace mentions of FUNCTION_VALUE and FUNCTION_OUTGOING_VALUE
556         with TARGET_FUNCTION_VALUE.
557
558 2006-09-14  Anatoly Sokolov <aesok@post.ru>
559
560         PR target/26504
561         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Define.
562
563 2006-09-13  Aldy Hernandez  <aldyh@redhat.com>
564
565         * doc/tree-ssa.texi (Jumps): RESULT_DECL can also be an operand
566         of a RETURN_EXPR
567
568 2006-09-13  Andrew Pinski  <pinskia@physics.uc.edu>
569
570         PR debug/28980
571         * dwarf2out.c (loc_descriptor_from_tree_1): Handle
572         FUNCTION_DECL.
573
574 2006-09-13  Andreas Krebbel  <krebbel1@de.ibm.com>
575
576         * basic_block.h (bb_has_eh_pred): Fix comment.
577
578 2006-09-13  Andreas Krebbel  <krebbel1@de.ibm.com>
579
580         * flow.c (calculate_global_regs_live): Invalidate eh registers
581         on eh edges. Renamed invalidated_by_call to invalidated_by_eh_edge.
582         (propagate_block): Handle eh registers as if they were set at basic
583         block start.
584         * except.c (dw2_build_landing_pads): Don't emit clobbers for eh
585         registers.
586         * global.c (global_conflicts): Make eh registers to conflict with
587         pseudos live at basic block begin.
588         * basic_block.h (bb_has_eh_pred): New function.
589
590 2006-09-13  Richard Sandiford  <richard@codesourcery.com>
591
592         PR rtl-optimization/28982
593         * reload.c (find_reloads_address_1): Use RELOAD_OTHER for the
594         index of a PRE_MODIFY or POST_MODIFY address.
595         * reload1.c (inc_for_reload): Use find_replacement on the original
596         base and index registers.
597
598 2006-09-12  H.J. Lu  <hongjiu.lu@intel.com>
599
600         * doc/invoke.texi (mpreferred-stack-boundary): Remove exception
601         for -Os. Update __m128 alignment requirement.
602
603 2006-09-13  Jan Hubicka  <jh@suse.cz>
604
605         * cfganal.c (compute_dominance_frontiers_1): Don't be quadratic.
606
607 2006-09-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
608
609         PR rtl-optimization/28243
610         * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
611         the insn to which the note was originally attached.
612
613 2006-09-12  Andrew Pinski  <pinskia@physics.uc.edu>
614             Roger Sayle  <roger@eyesopen.com>
615
616         * dwarf2out.c (file_table_last_lookup): Move this GC'd declaration
617         outside of #ifdef DWARF2_DEBUGGING_INFO to fix bootstrap failure
618         on platforms that don't use dwarf for debug info.
619
620 2006-09-12  Jason Merrill  <jason@redhat.com>
621
622         PR middle-end/28493
623         * builtins.c (expand_builtin_setjmp_receiver): Clobber
624         hard_frame_pointer_rtx after using it to update the frame pointer.
625
626 2006-09-12  Roger Sayle  <roger@eyesopen.com>
627
628         * target-def.h (TARGET_ASM_OPEN_PAREN): Guard with an #ifndef.
629         (TARGET_ASM_CLOSE_PAREN): Likewise.
630         * config/alpha/osf5.h (TARGET_ASM_OPEN_PAREN): Define.
631         (TARGET_ASM_CLOSE_PAREN): Likewise.
632
633 2006-09-12  Roger Sayle  <roger@eyesopen.com>
634
635         PR target/22223
636         * config/alpha/alpha.c (alpha_start_function): Don't emit stack
637         frame information for frames larger than 512 Kbytes on Tru64 when
638         using the native assembler.
639
640 2006-09-12  Roger Sayle  <roger@eyesopen.com>
641
642         PR middle-end/4520
643         PR bootstrap/28784
644         * cselib.c (cselib_hash_rtx): Avoid hashing on the address of labels
645         and symbols.  Instead use the implementation from cse.c's hash_rtx.
646
647 2006-09-12  Jan Hubicka  <jh@suse.cz>
648
649         PR rtl-optimization/28071
650         * tree-vect-transform.c (vect_create_data_ref_ptr): Kill cast.
651         (vect_transform_loop): Likewise.
652         * tree-vectorizer.c (new_loop_vec_info): Likewise.
653         (new_loop_vec_info): Likewise.
654         (destroy_loop_vec_info): Likewise.
655         * tree-dfa.c (create_var_ann): Use GCC_CNEW.
656         (create_stmt_ann): Likewise.
657         (create_tree_ann): Rename to ...
658         (create_tree_common_ann): ... this one; allocate only the common part
659         of annotations.
660         * tree-vn.c (set_value_handle): Use get_tree_common_ann.
661         (get_value_handle): Likewise.
662         * tree-ssa-pre.c (phi_translate): Delay annotation allocation for
663         get_tree_common_ann.
664         * tree-vectorizer.h (set_stmt_info): Take stmt annotation.
665         (vinfo_for_stmt): Use stmt annotations.
666         * tree-flow.h (tree_ann_common_t): New type.
667         (tree_common_ann, get_tree_common_ann, create_tree_common_ann): New.
668         (tree_ann, get_tree_ann, create_tree_ann): New.
669         * tree-flow-inline.h (get_function_ann): Do more type checking.
670         (stmt_ann): Likewise.
671         (tree_ann): Rename to ...
672         (tree_common_ann): ... this one; return ony common_ann
673         (get_tree_ann): Rename to ...
674         (tree_common_ann): This one; return only common_ann.
675         * tree-vect-patterns.c (vect_pattern_recog_1): Update call
676         of set_stmt_info.
677
678 2006-09-11  Geoffrey Keating  <geoffk@apple.com>
679
680         * config.gcc (i[34567]86-*-darwin*): Set with_arch and
681         with_cpu by default.
682
683         * dwarf2out.c (dwarf_file_data): New.
684         (enum dw_val_class): Add dw_val_class_file.
685         (struct dw_val_struct): Add val_file.
686         (file_table): Change to a hash table.
687         (file_table_emitted): Delete.
688         (file_table_last_lookup_index): Delete.
689         (emitcount): Delete.
690         (last_emitted_file): New.
691         (lookup_filename): Change prototype to return a struct dwarf_file_data.
692         (init_file_table): Delete.
693         (maybe_emit_file): Change prototype to take a struct dwarf_file_data.
694         (AT_addr): Add comment.
695         (add_AT_file): New.
696         (AT_file): New.
697         (get_AT_file): New.
698         (print_die): Handle dw_val_class_file.
699         (print_dwarf_line_table): Update for new file table structure.
700         (attr_checksum): Do checksum a filename.
701         (same_dw_val_p, same_attr_p): Do compare a filename.
702         (size_of_die): Handle dw_val_class_file.
703         (value_format): Likewise.
704         (output_die): Likewise.  Also, call maybe_emit_file here.
705         (struct file_info): Constify filenames.  Make file_idx a pointer
706         to a struct dwarf_file_data.
707         (struct dir_info): Constify directory names.  Remove 'used' field.
708         (struct file_name_acquire_data): New.
709         (file_name_acquire): New.
710         (output_file_names): Modify to handle new file data structures.
711         (add_src_coords_attributes): Use add_AT_file.
712         (add_call_src_coords_attributes): Likewise.
713         (dwarf2out_imported_module_or_decl): Likewise.
714         (gen_subprogram_die): Modify for new file data structures.
715         (gen_variable_die): Likewise.
716         (file_table_eq): New.
717         (file_table_hash): New.
718         (file_table_last_lookup): New.
719         (lookup_filename): Rewrite to handle new file data structures.
720         (maybe_emit_file): Rewrite to handle new file data structures.
721         (dwarf2out_source_line): Always call lookup_filename and
722         maybe_emit_file.
723         (dwarf2out_init): Create file_table here.
724         (prune_unused_types_walk_attribs): Don't call maybe_emit_file here.
725         (file_table_relative_p): New.
726         (dwarf2out_finish): Change detection of relative filenames
727         to work with new file data structures.  Move output_line_info call
728         after debug_info output.
729
730 2006-09-11  H.J. Lu  <hongjiu.lu@intel.com>
731
732         PR target/13685
733         PR target/27537
734         PR target/28621
735         * config/i386/i386.c (override_options): Always default to 16
736         byte stack boundary.
737
738 2006-09-11  Alexandre Oliva  <aoliva@redhat.com>
739
740         PR target/28672
741         * var-tracking.c (dump_dataflow_set): Start dumping at
742         register zero.
743         (clobber_variable_part): Kill only the variable part in
744         registers holding it, leaving other variables alone.
745
746 2006-09-11  Josh Triplett  <josh@freedesktop.org>
747
748         * doc/extend.texi (Other Builtins): Actually use the macro
749         argument in the documentation example for
750         __builtin_types_compatible_p.
751
752 2006-09-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
753
754         PR rtl-optimization/28726
755         * sched-deps.c (sched_analyze_reg): New function extracted from...
756         (sched_analyze_1): ...here.  Call it to analyze references to
757         registers.  Treat again writes to a stack register as writing to the
758         register.
759         (sched_analyze_2): ...and here.  Call it to analyze references to
760         registers.  Treat again reads of a stack register as reading the
761         register.
762
763 2006-09-11  Guenter Roeck  <guenter@roeck-us.net>
764             David Edelsohn  <edelsohn@gnu.org>
765
766         PR target/27287
767         * config/rs6000/spe.md (frob_df_di): Remove %H.
768         (frob_di_df): Remove %H.  Change evmergelo to mr.
769         (frob_di_df_2): Remove %H.  Change evldd to two loads.
770
771 2006-09-11  Hideki Iwamoto  <h-iwamoto@kit.hi-ho.ne.jp>
772
773         * doc/cpp.texi: Fix names of charset options.
774
775 2006-09-10  Andrew Pinski  <pinskia@physics.uc.edu>
776
777         PR target/29009
778         * config/i386/i386.c (override_options): Use 128-bit
779         stack boundary always for 64bits.
780
781 2006-09-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
782
783         PR rtl-optimization/28636
784         * combine.c (force_to_mode): Test for side-effects before
785         substituting by zero.
786         (simplify_shift_const): Likewise for zero or other constants.
787
788 2006-09-10  Steven Bosscher  <steven@gcc.gnu.org>
789
790         PR middle-end/26983
791         * builtins.c (expand_builtin_setjmp): Force next_lab to be
792         preserved.
793
794 2006-09-10  Richard Sandiford  <richard@codesourcery.com>
795
796         PR target/29006
797         * config/mips/mips-protos.h (mips_mem_fits_mode_p): Declare.
798         * config/mips/mips.c (mips_expand_unaligned_store): Use the mode
799         returned by mode_for_size, rather than the mode of src itself,
800         to choose between 32-bit and 64-bit patterns.
801         (mips_mem_fits_mode_p): New function.
802         * config/mips/mips.md (mov_<load>l, mov_<load>r): Use it to check
803         that the size of the source matches the size of the destination.
804         (mov_<store>l, mov_<store>r): Likewise.
805
806 2006-09-10  Eric Christopher  <echristo@apple.com>
807
808         * config/darwin.c (machopic_select_rtx_section): Add CONST_VECTOR
809         for literal16.
810
811 2006-09-09  Eric Christopher  <echristo@apple.com>
812
813         PR target/28995
814         * config/darwin.c (machopic_select_rtx_section): Add TARGET_64BIT
815         for literal16.
816
817 2006-09-09  Roger Sayle  <roger@eyesopen.com>
818             Nicolas Setton <setton@adacore.com>
819
820         * dwarf2out.c (convert_cfa_to_fb_loc_list): Handle DW_CFA_set_loc.
821
822 2006-09-10  Andreas Schwab  <schwab@suse.de>
823
824         * config/m68k/m68k.md (bungt_rev): New pattern.
825
826 2006-09-09  Paolo Bonzini  <bonzini@gnu.org>
827             Dale Johannesen  <dalej@apple.com>
828
829         PR target/26778
830         * regclass.c (struct reg_pref): Update documentation.
831         (regclass): Set prefclass to NO_REGS if memory is the best option.
832         (record_reg_classes): Cope with a prefclass set to NO_REGS.
833
834 2006-09-08  Eric Christopher  <echristo@apple.com>
835
836         * config.gcc (i?86-*-darwin): Add 64-bit HWI support.
837         * config/t-slibgcc-darwin: Support x86_64 multilib.
838         * config/i386/i386.h (JUMP_TABLES_IN_TEXT_SECTION):
839         Return 1 for x86_64-darwin.
840         * config/i386/t-darwin: Add m64 multilib.
841         (LIB2_SIDITI_CONV_FUNCS): Use.
842         (LIB2FUNCS_EXTRA): Ditto.
843         * config/i386/darwin.h: Support x86_64.
844         * config/i386/i386.c (override_options): Turn on flag_pic
845         for x86_64-darwin. Disable flag_omit_pointer.
846         (get_pc_thunk_name): Assert !TARGET_64BIT.
847         (legitimate_address_p): Disable machopic addressing for
848         x86_64.
849         (legitimize_pic_address): Ditto.
850         (ix86_expand_move): Ditto.
851         (ix86_expand_call): Ditto.
852         (machopic_output_stub): Ditto.
853         * config/darwin.c (machopic_select_section): Support literal16.
854         (machopic_select_rtx_section): Ditto.
855         * config/darwin-sections.def: Ditto.
856         * config/darwin-64.c: New.
857
858 2006-09-08  Joseph S. Myers  <joseph@codesourcery.com>
859
860         PR c/28504
861         * c-tree.h (struct c_arg_info): Add pending_sizes.
862         * c-parser.c (c_parser_parms_declarator,
863         c_parser_parms_list_declarator): Initialize pending_sizes.
864         * c-decl.c (get_parm_info): Initialize pending_sizes.
865         (get_parm_info): Set pending_sizes.
866         (grokdeclarator): Call put_pending_sizes for parameters for
867         function definition only.
868
869 2006-09-07  Jason Merrill  <jason@redhat.com>
870
871         PR middle-end/27724
872         * varasm.c (output_constant): Only strip actual no-op conversions.
873
874         PR target/13685
875         * config/i386/i386.c (override_options): Use 128-bit
876         stack boundary if -msse.
877
878 2006-09-07  Eric Christopher  <echristo@apple.com>
879
880         * config/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Update
881         comment.
882         * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE):
883         Redefine.
884
885 2006-09-07  Geoffrey Keating  <geoffk@apple.com>
886
887         * dwarf2out.c: Remove strange characters from comment above
888         dwarf2out_frame_debug_expr.
889
890 2006-09-07  Eric Christopher  <echristo@apple.com>
891
892         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Move from here...
893         * config/darwin.h: ... to here.
894
895 2006-09-07  H.J. Lu  <hongjiu.lu@intel.com>
896
897         * config/i386/i386.c (x86_partial_flag_reg_stall): New.
898
899         * config/i386/i386.h (x86_partial_flag_reg_stall): New.
900         (TARGET_PARTIAL_FLAG_REG_STALL): New.
901
902         * config/i386/i386.md (*ashldi3_cmp_rex64): Disabled for
903         TARGET_PARTIAL_FLAG_REG_STALL.
904         (*ashldi3_cconly_rex64): Likewise.
905         (*ashlsi3_cmp): Likewise.
906         (*ashlsi3_cconly): Likewise.
907         (*ashlsi3_cmp_zext): Likewise.
908         (*ashlhi3_cmp): Likewise.
909         (*ashlhi3_cconly): Likewise.
910         (*ashlqi3_cmp): Likewise.
911         (*ashlqi3_cconly): Likewise.
912         (*ashrdi3_cmp_rex64): Likewise.
913         (*ashrdi3_cconly_rex64): Likewise.
914         (*ashrsi3_cmp): Likewise.
915         (*ashrsi3_cconly): Likewise.
916         (*ashrsi3_cmp_zext): Likewise.
917         (*ashrhi3_cmp): Likewise.
918         (*ashrhi3_cconly): Likewise.
919         (*ashrqi3_cmp): Likewise.
920         (*ashrqi3_cconly): Likewise.
921         (*lshrdi3_cmp_rex64): Likewise.
922         (*lshrdi3_cconly_rex64): Likewise.
923         (*lshrsi3_cmp): Likewise.
924         (*lshrsi3_cconly): Likewise.
925         (*lshrsi3_cmp_zext): Likewise.
926         (*lshrhi3_cmp): Likewise.
927         (*lshrhi3_cconly): Likewise.
928         (*lshrqi2_cmp): Likewise.
929         (*lshrqi2_cconly): Likewise.
930
931 2006-09-07 Uros Bizjak <uros@kss-loka.si>
932
933         PR target/28946
934         * config/i386/i386.md ("*ashldi3_cconly_rex64", "*ashlsi3_cconly",
935         "*ashlhi3_cconly", "*ashlqi3_cconly", "*ashrdi3_one_bit_cconly_rex64",
936         "*ashrdi3_cconly_rex64", "*ashrsi3_one_bit_cconly", "*ashrsi3_cconly",
937         "*ashrhi3_one_bit_cconly", "*ashrhi3_cconly",
938         "*ashrqi3_one_bit_cconly", "*ashrqi3_cconly",
939         "*lshrdi3_cconly_one_bit_rex64", "*lshrdi3_cconly_rex64",
940         "*lshrsi3_one_bit_cconly", "*lshrsi3_cconly",
941         "*lshrhi3_one_bit_cconly", "*lshrhi3_cconly",
942         "*lshrqi2_one_bit_cconly", "*lshrqi2_cconly": New patterns to
943         implement only CC setting effects of shift instructions.
944
945 2006-09-07  Martin Michlmayr  <tbm@cyrius.com>
946
947         * doc/contrib.texi: Add myself.
948
949 2006-09-07  Andrew Pinski  <pinskia@physics.uc.edu>
950
951         PR middle-end/28862
952         * stor-layout.c (relayout_decl): Don't zero the alignment if it
953         was set by the user.
954
955 2006-09-07  Paolo Bonzini  <bonzini@gnu.org>
956
957         PR target/27117
958         * config/sh/sh.md (divsi_inv_qitable, divsi_inv_hitable): New patterns.
959         (divsi_inv_m1): Use them.
960         (UNSPEC_DIV_INV_TABLE): New constant.
961
962 2006-09-06  James E Wilson  <wilson@specifix.com>
963
964         PR rtl-opt/27883
965         * flow.c (update_life_info): If UPDATE_LIFE_LOCAL and PROP_DEATH_NOTES
966         then call count_or_remove_death_notes.
967
968 2006-09-06  Jason Merrill  <jason@redhat.com>
969
970         PR c++/27371
971         * tree-inline.c (copy_result_decl_to_var): New fn.
972         (declare_return_variable): Use it.  Call declare_inline_vars here.
973         (expand_call_inline): Not here.
974
975 2006-09-06  Diego Novillo  <dnovillo@redhat.com>
976
977         * doc/contrib.texi: Update my entry.
978
979 2006-09-06  Nick Clifton  <nickc@redhat.com>
980
981         * config/frv/frv.h (EXTRA_MEMORY_CONSTRAINT): Define.
982
983 2006-09-05  Andrew Pinski  <pinskia@physics.uc.edu>
984
985         PR tree-opt/28937
986         * tree-flow.h (tree_ssa_unswitch_loops): Return unsigned int.
987         (canonicalize_induction_variables): Likewise.
988         (tree_unroll_loops_completely): Likewise.
989         (tree_ssa_prefetch_arrays): Likewise.
990         (remove_empty_loops): Likewise.
991         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Return
992         TODO_cleanup_cfg instead of directly calling
993         cleanup_tree_cfg_loop.
994         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
995         Likewise.
996         (tree_unroll_loops_completely): Likewise.
997         (remove_empty_loops): Likewise.
998         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
999         * tree-ssa-loop.c (tree_ssa_loop_unswitch): Use the return value
1000         of tree_ssa_unswitch_loops.
1001         (tree_ssa_loop_ivcanon): Use the return value of
1002         canonicalize_induction_variables.
1003         (tree_ssa_empty_loop): Use the return value of
1004         remove_empty_loops.
1005         (tree_complete_unroll): Use the return value of
1006         tree_unroll_loops_completely.
1007         (tree_ssa_loop_prefetch): Use the return value of
1008         tree_ssa_prefetch_arrays.
1009         * passes.c (execute_todo): Before Cleanup CFG, set
1010         updating_used_alone and after cleanup CFG, call
1011         recalculate_used_alone.
1012
1013 2006-09-05  Andrew Pinski  <pinskia@physics.uc.edu>
1014
1015         PR tree-opt/28952
1016         * tree-vect-transform.c (vectorizable_condition): Move the check
1017         for the type after the check for simple condition.
1018
1019 2006-09-05  J"orn Rennecke  <joern.rennecke@st.com>
1020             Kaz Kojima  <kkojima@gcc.gnu.org>
1021
1022         PR target/28764
1023         * mode-switching.c (optimize_mode_switching): Make the destination
1024         block of an abnormal edge have no anticipatable mode.  Don't
1025         insert mode switching code at the end of the source block of
1026         an abnormal edge.
1027
1028 2006-09-05  Paolo Bonzini  <bonzini@gnu.org>
1029
1030         PR rtl-optimization/26847
1031         * simplify-rtx.c (struct simplify_plus_minus_op_data): Remove ix.
1032         (simplify_plus_minus_op_data_cmp): For REGs, break ties on the regno.
1033         (simplify_plus_minus): Count n_constants while filling ops.  Replace
1034         qsort with insertion sort.  Before going through the array to simplify
1035         pairs, sort it.  Delay early exit until after the first sort, exiting
1036         only if no swaps occurred.  Simplify pairs in reversed order, without
1037         special-casing the first iteration.  Pack ops after simplifying pairs.
1038
1039 2006-09-05  Anatoly Sokolov <aesok@post.ru>
1040
1041         * config/avr/avr.c (avr_mcu_types): Add support for at90pwm1 device.
1042         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
1043         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
1044         (avr_rtx_costs): Mark 'outer_code' argument with ATTRIBUTE_UNUSED.
1045
1046 2006-09-05  Richard Guenther  <rguenther@suse.de>
1047
1048         PR tree-optimization/28900
1049         * tree-if-conv.c (find_phi_replacement_condition): Gimplify
1050         compound conditional before creating COND_EXPR condition.
1051
1052 2006-09-05  Richard Guenther  <rguenther@suse.de>
1053
1054         PR tree-optimization/28905
1055         * tree-vrp.c (fix_equivalence_set): Manually implement
1056         !value_ranges_intersect_p to also handle symbolic ranges.
1057
1058 2006-09-05  Richard Guenther  <rguenther@suse.de>
1059
1060         PR middle-end/28935
1061         * tree-ssa-ccp.c (fold_stmt_r): Make sure to fold the condition
1062         of a COND_EXPR.
1063
1064 2006-09-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1065
1066         PR rtl-optimization/27616
1067         * cse.c (table_size): New static variable.
1068         (new_basic_block): Initialize it to 0.
1069         (remove_from_table): Decrement it.
1070         (insert): Increment it.
1071         (fold_rtx_mem_1): New function, renamed from fold_rtx_mem.
1072         (fold_rtx_mem): Enforce a cap on the recursion depth.  Call
1073         fold_rtx_mem_1 if under the cap.
1074         (fold_rtx) <RTX_COMM_ARITH>: In the associative case, delay a little
1075         the lookup of the equivalent expression and test for equality of the
1076         first operand of the equivalent expression before in turn looking up
1077         an equivalent constant for the second operand.
1078
1079 2006-09-02  Geoffrey Keating  <geoffk@apple.com>
1080
1081         Revert this change:
1082         2006-03-17  Alexandre Oliva  <aoliva@redhat.com>
1083         * dwarf2out.c (dwarf2out_stack_adjust): Always track the stack
1084         pointer, instead of assuming it is possible to derive the
1085         correct args size from a call insn.
1086
1087 2006-09-02  Jakub Jelinek  <jakub@redhat.com>
1088
1089         PR middle-end/27567
1090         * builtins.c (fold_builtin_memcpy, fold_builtin_memmove): Remove.
1091         (fold_builtin_mempcpy): Rename to...
1092         (fold_builtin_memory_op): ... this.  Optimize one element copy
1093         into an assignment.
1094         (fold_builtin_memset, fold_builtin_bzero, fold_builtin_bcopy): New
1095         functions.
1096         (expand_builtin_strcpy, expand_builtin_strncpy): Handle COMPOUND_EXPR.
1097         (expand_builtin_memcpy, expand_builtin_mempcpy,
1098         expand_builtin_memmove): Likewise.  Use fold_builtin_memory_op.
1099         (fold_builtin_1): Handle BUILT_IN_MEMSET, BUILT_IN_BZERO and
1100         BUILT_IN_BCOPY.  Use fold_builtin_memory_op for
1101         BUILT_IN_MEM{CPY,PCPY,MOVE}.
1102
1103 2006-09-01  DJ Delorie  <dj@redhat.com>
1104
1105         * config/m32c/cond.md (cbranch<mode>4): Defer splitting until after reload.
1106         (stzx_16): Likewise.
1107         ("stzx_24_<mode>"): Likewise.
1108         ("stzx_reversed_<mode>"): Likewise, and make mode-specific.
1109         ("cmp<mode>_op"): New.
1110         (cmp<mode>): Change to expander; just save operands.
1111         (b<code>_op): New.
1112         (b<code>): Change to expander, emit compare here.
1113         (s<code>_op): Change to use split and expander.
1114         (s<code>_24_op): Likewise.
1115         (s<code>_<mode>): New.
1116         (s<code>_<mode>_24): New.
1117         (movqicc_<code>_<mode): New.
1118         (movhicc_<code>_<mode>): New.
1119         (s<code>): New.
1120         (s<code>_24): New.
1121         * config/m32c/m32c.c (compare_op0, compare_op1): New.
1122         (m32c_pend_compare): New.
1123         (m32c_unpend_compare): New.
1124         (m32c_expand_scc): New.
1125         (m32c_expand_movcc): Emit the compare also.
1126         * config/m32c/predicates.md (mra_nopp_operand): New.
1127
1128 2006-09-01  J"orn Rennecke  <joern.rennecke@st.com>
1129         Richard Guenther  <rguenther@suse.de>
1130         Adam Nemet  <anemet@caviumnetworks.com>
1131
1132         PR middle-end/27226
1133         * builtins.c (get_pointer_alignment): Handle more forms
1134         of base addresses that can be used to derive more precise
1135         information about alignment.
1136
1137 2006-09-01  Jason Merrill  <jason@redhat.com>
1138
1139         PR c++/28899
1140         * gimplify.c (gimplify_modify_expr_rhs) [BIND_EXPR]: Handle
1141         want_value.
1142
1143         * gimplify.c (voidify_wrapper_expr): Handle null type.
1144
1145 2006-09-01  Josh Conner  <jconner@apple.com>
1146
1147         PR c++/25505
1148         * tree-nrv.c (dest_safe_for_nrv_p): New function.
1149         (execute_return_slot_opt): Use it.
1150
1151 2006-08-31  Josh Conner  <jconner@apple.com>
1152
1153         PR c++/25505
1154         * tree-gimple.c (is_gimple_mem_rhs): Recognize functions
1155         returning aggregates.
1156
1157 2006-08-31  Zdenek Dvorak <dvorakz@suse.cz>
1158
1159         PR tree-optimization/28839
1160         * tree-into-ssa.c (prune_unused_phi_nodes): Take into account kills in
1161         blocks in that phi arguments appear.
1162
1163 2006-08-31  Roger Sayle  <roger@eyesopen.com>
1164
1165         PR other/22313
1166         * dwarf2out.c (add_fde_cfi): Use a set_loc if the current label is
1167         NULL, otherwise use an advance_loc4 to adjust relative to the
1168         current label.
1169         (output_cfi) <DW_CFA_set_loc>: Update the current label.
1170         (dwarf2out_switch_text_section): Reset the current label to avoid
1171         using advance_loc4 over section boundaries.
1172
1173 2006-08-31  Andreas Krebbel  <krebbel1@de.ibm.com>
1174
1175         PR target/24367
1176         * config/s390/s390.md ("movsi", "movdi" expander): Accept rtxes like
1177         r12 + SYMBOLIC_CONST.
1178
1179 2006-08-30  Richard Guenther  <rguenther@suse.de>
1180
1181         * Makefile.in (see.o): Add $(EXPR_H) dependency.
1182
1183 2006-08-30  Zdenek Dvorak <dvorakz@suse.cz>
1184
1185         PR rtl-optimization/27735
1186         * cfgloopmanip.c (fix_loop_placements, fix_bb_placements, unloop):
1187         Add new argument to keep track of whether an irreducible region
1188         was affected.  All callers changed.
1189         (fix_irreducible_loops): Removed.
1190         (remove_path): Call mark_irreducible_loops if EDGE_IRREDUCIBLE_LOOP
1191         flags were invalidated.
1192
1193 2006-08-29  H.J. Lu  <hongjiu.lu@intel.com>
1194
1195         * config/i386/i386.md (*fop_df_comm_mixed): Match DF operands
1196         instead of SF operands.
1197         (*fop_df_comm_sse): Likewise.
1198         (*fop_df_comm_i387): Likewise.
1199         (*fop_df_1_mixed): Likewise.
1200         (*fop_df_1_sse): Likewise.
1201
1202 2006-08-29  Andrew Pinski  <pinskia@physics.uc.edu>
1203             J"orn Rennecke  <joern.rennecke@st.com>
1204
1205         PR tree-optimization/17506
1206         * tree-ssa.c (warn_uninit): If warning about a location outside of
1207         the current function, note where the variable was declared.
1208
1209 2006-08-28  Zdenek Dvorak <dvorakz@suse.cz>
1210
1211         PR tree-optimization/28411
1212         * double-int.c (double_int_div): Use double_int_divmod.
1213         (double_int_divmod, double_int_sdivmod, double_int_udivmod,
1214         double_int_mod, double_int_smod, double_int_umod): New functions.
1215         * double-int.h (double_int_divmod, double_int_sdivmod,
1216         double_int_udivmod, double_int_mod, double_int_smod, double_int_umod):
1217         Declare.
1218         * tree-ssa-loop-ivopts.c (constant_multiple_of): Returns the result
1219         in double_int.
1220         (get_computation_aff, get_computation_cost_at): Handle double_int
1221         return type of constant_multiple_of.
1222
1223 2006-08-28  Kazu Hirata  <kazu@codesourcery.com>
1224
1225         PR middle-end/26632
1226         * convert.c (convert_to_integer): Set TREE_NO_WARNING to 1 on
1227         an implicit conversion.
1228
1229 2006-08-28  Prafulla Thakare  <prafullat@kpitcummins.com>
1230
1231         * config/h8300/h8300.c (TARGET_DEFAULT_TARGET_FLAGS): New.
1232
1233 2006-08-27  Roger Sayle  <roger@eyesopen.com>
1234
1235         * ifcvt.c (cheap_bb_rtx_cost_p): Don't speculatively execute
1236         x87 instructions.
1237
1238 2006-08-27  Kazu Hirata  <kazu@codesourcery.com>
1239
1240         * config/i386/crtfastmath.c: Fix a comment typo.
1241
1242 2006-08-26  Roger Sayle  <roger@eyesopen.com>
1243
1244         * tree.h (CASE_LOW_SEEN, CASE_HIGH_SEEN): New macros for manipulating
1245         temporary visit flags on CASE_LABEL_EXPRs.
1246         * c-common.c (match_case_to_enum): Add function comment.  Avoid
1247         O(N) loop, by looking up both CASE_LOW_SEEN and CASE_HIGH_SEEN.
1248         (c_do_switch_warnings):  Reorganize to record CASE_LOW_SEEN and
1249         CASE_HIGH_SEEN for enumerated types.  If the switch expression is
1250         a constant, only warn if that constant value isn't handled.
1251
1252 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
1253
1254         PR c++/24009
1255         * input.h (restore_input_file_stack): Declare.
1256         (INPUT_FILE_STACK_BITS): Define.
1257         * toplev.c (fs_p, input_file_stack_history,
1258         input_file_stack_restored, restore_input_file_stack): New.
1259         (push_srcloc, pop_srcloc): Check for input_file_stack_tick
1260         overflowing INPUT_FILE_STACK_BITS bits.  Save new state of stack.
1261         (pop_srcloc): Don't free old state of stack.
1262
1263 2006-08-26  David Edelsohn  <edelsohn@gnu.org>
1264
1265         PR target/27544
1266         * doc/extend.texi (PowerPC Variable Attributes): Mention altivec.
1267         (PowerPC Type Attributes): New.
1268
1269 2006-08-26  Bob Wilson  <bob.wilson@acm.org>
1270
1271         * config/xtensa/xtensa.c (function_arg_boundary): New.
1272         (function_arg, xtensa_gimplify_va_arg_expr): Limit alignment to
1273         STACK_BOUNDARY.
1274         * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Move code to new
1275         function_arg_boundary function that limits alignment to STACK_BOUNDARY.
1276
1277 2006-08-26  Jakub Jelinek  <jakub@redhat.com>
1278
1279         PR middle-end/28683
1280         * cfgexpand.c (add_reg_br_prob_note): Check if last has exactly
1281         3 following insns.
1282
1283 2006-08-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1284
1285         * flow.c (verify_wide_reg): Use internal_error for consistency failure.
1286         (verify_local_live_at_start): Likewise.
1287
1288 2006-08-25  Joseph S. Myers  <joseph@codesourcery.com>
1289
1290         PR c/27893
1291         * gimplify.c (gimplify_decl_expr, gimplify_init_ctor_preeval,
1292         omp_add_variable): Treat sizes as variable whenever not
1293         INTEGER_CST.
1294
1295 2006-08-26  Richard Guenther  <rguenther@suse.de>
1296
1297         PR middle-end/28814
1298         * fold-const.c (fold_binary): Fold temporary to correct
1299         type before constructing new comparison.
1300
1301 2006-08-25  Fariborz Jahanian  <fjahanian@apple.com>
1302
1303         PR c/28418
1304         * c-gimplify.c (gimplify_compound_literal_expr): Don't add
1305         variable again if DECL_SEEN_IN_BIND_EXPR_P.
1306
1307 2006-08-25  Joseph S. Myers  <joseph@codesourcery.com>
1308
1309         PR c/28299
1310         * c-decl.c (start_function): Don't try to process prototype
1311         information from old declaration that isn't a function.
1312
1313 2006-08-25  Jan Hubicka  <jh@suse.cz>
1314
1315         PR target/28621
1316         * config/i386/crtfastmath.c (set_fast_math): Force stack alignment.
1317
1318 2006-08-25  Alan Modra  <amodra@bigpond.net.au>
1319
1320         PR target/27075
1321         * config/rs6000/rs6000.c (print_operand): Only use e500 %y syntax
1322         for 8 byte objects.
1323
1324 2006-08-25  J"orn Rennecke  <joern.rennecke@st.com>
1325
1326         PR tree-optimization/16876
1327         * c-typeck.c (c_convert_parm_for_inlining): Don't take early
1328         exit if PARM doesn't match VALUE.
1329
1330 2006-08-25  Bob Wilson  <bob.wilson@acm.org>
1331
1332         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Do not emit a
1333         literal_prefix directive.
1334         (XTENSA_DECLARE_FUNCTION_SIZE): Delete.
1335         * config/xtensa/linux.h (ASM_DECLARE_FUNCTION_SIZE): Delete.
1336         * config/xtensa/elf.h (ASM_DECLARE_FUNCTION_SIZE): Delete.
1337
1338 2006-08-25  David Edelsohn  <edelsohn@gnu.org>
1339
1340         PR target/28753
1341         * config/rs6000/rs6000.md (movcc_internal1): Change operand 1
1342         predicate to general_operand.  Add 0->y and I->r alternatives.
1343
1344 2006-08-25  Kazu Hirata  <kazu@codesourcery.com>
1345
1346         * doc/tm.texi: Fix a typo.
1347         * predict.c: Fix comment typos.
1348
1349 2006-08-25  Nick Clifton  <nickc@redhat.com>
1350
1351         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1352         assertions of "cpu" and "machine".
1353
1354 2006-08-24  Andrew Pinski  <pinskia@physics.uc.edu>
1355
1356         PR tree-opt/28807
1357         * tree-ssa-operands.c (access_can_touch_variable): Don't say
1358         the access through a base which has an alias set of 0 cannot
1359         touch the variable.
1360
1361 2006-08-24  Bill Wendling  <wendling@apple.com>
1362
1363         * doc/tm.texi (TARGET_DEFAULT_PACK_STRUCT): Fixed English.
1364
1365 2006-08-24  Jan Hubicka  <jh@suse.cz>
1366
1367         * reload1.c (emit_reload_insns): Fix yet another typo in my patch.
1368
1369 2006-08-24  Jan Hubicka  <jh@suse.cz>
1370
1371         PR debug/26881
1372         * cgraph.c: Fix comments.
1373         (cgraph_varpool_mark_needed_node): Mark only variables not already
1374         output to file.
1375         * cgraphunit.c: Update comments; include gt-cgraphunit.h
1376         (cgraph_varpool_assembled_nodes_queue): New static variable.
1377         (cgraph_varpool_assemble_decl): Record output decls for debug out code.
1378         (cgraph_varpool_output_debug_info): New function.
1379         (cgraph_finalize_compilation_unit, cgraph_optimize): Call it.
1380         * Makefile.in: Add gt-cgraphunit.h
1381
1382 2006-08-24  Jan Hubicka  <jh@suse.cz>
1383
1384         * predict.c (probability_reliable_p): New predicate.
1385         (edge_probability_reliable_p, br_prob_note_reliable_p): Likewise.
1386         (predict_loops): Do not predict loop exit with less than 2%
1387         probability.
1388         * basic-block.h (edge_probability_reliable_p,
1389         br_prob_note_reliable_p): Declare.
1390         * ia64.h (ia64_print_operand): Do not disable on-chip branch
1391         prediction when static predictor is not reliable.
1392         * rs6000.c (output_cbranch): Likewise.
1393
1394 2006-08-23  Stuart Hastings  <stuart@apple.com>
1395
1396         PR 28825
1397         * gcc/config/i386/i386.c (ix86_expand_vector_init_duplicate,
1398         ix86_expand_vector_init_one_nonzero): Remove TARGET_SSE test.
1399
1400 2006-08-21  Geoffrey Keating  <geoffk@apple.com>
1401
1402         PR debug/28692
1403         * dwarf2out.c (rtl_for_decl_init): Don't try to create RTL for
1404         complex values, nor for generic vector values.
1405
1406 2006-08-22  Richard Guenther  <rguenther@suse.de>
1407
1408         PR middle-end/28776
1409         * tree-scalar-evolution.c (fold_used_pointer): Add at_stmt
1410         parameter.  Convert arguments to arithmetic expression to the
1411         chrecs type.
1412         (analyze_scalar_evolution_1): Adjust caller.
1413
1414 2006-08-22  Jan Hubicka  <jh@suse.cz>
1415
1416         Patch by Paolo Bonzini
1417         * reload1.c (emit_reload_insns): Fix incorrect bracketing introduced by
1418         my previous patch.
1419
1420 2006-08-22  Daniel Berlin  <dberlin@dberlin.org>
1421
1422         PR tree-optimization/28003
1423         * tree-ssa-alias.c (compute_may_aliases): Compute call clobbered
1424         before grouping aliases.
1425
1426 2006-08-22  Roger Sayle  <roger@eyesopen.com>
1427
1428         * config/i386/i386.c (ix86_value_regno): Don't return FIRST_MMX_REG
1429         if !TARGET_MMX, and don't return FIRST_SSE_REG if !TARGET_SSE.
1430
1431 2006-08-21  Jason Merrill  <jason@redhat.com>
1432
1433         PR c++/27115
1434         * gimplify.c (voidify_wrapper_expr): Handle STATEMENT_LIST as a
1435         wrapper.  Loop to handle nested wrappers.
1436         (gimplify_bind_expr): Remove temp parameter.
1437         (gimplify_modify_expr_rhs): Handle CLEANUP_POINT_EXPR, BIND_EXPR
1438         and STATEMENT_LIST on the rhs.
1439         (gimplify_statement_list): Voidify the STATEMENT_LIST.
1440         (gimplify_expr): Pass pre_p to gimplify_statement_list.
1441         (gimplify_target_expr): Remove special BIND_EXPR handling.
1442
1443 2006-08-21  J"orn Rennecke  <joern.rennecke@st.com>
1444
1445         * config/sh/lib1funcs-Os-4-200.asm: Guard entire file with
1446         #if !__SHMEDIA__ .
1447
1448 2006-08-21  Olivier Hainque  <hainque@adacore.com>
1449
1450         * gimplify.c (gimplify_init_constructor) <RECORD,UNION,ARRAY types>:
1451         Arrange for the temporary captures of components overlapping the lhs
1452         to happen before the lhs is possibly cleared.
1453
1454 2006-08-21  Mark Shinwell  <shinwell@codesourcery.com>
1455
1456         * config/arm/pr-support.c (__gnu_unwind_execute): Insert " + 1" in
1457         necessary places to pass the correct "number of registers" values
1458         to _Unwind_VRS_Pop.
1459
1460 2006-08-20  Jan Hubicka  <jh@suse.cz>
1461
1462         * tree-ssa-alias.c (eq_ptr_info, ptr_info_hash): New function.
1463         (create_name_tags): Instead of quadratic checking use hashtable.
1464         * bitmap.h: Include hashtab.h.
1465         (bitmap_hash): Declare.
1466         * bitmap.c (bitmap_hash): New function.
1467
1468 2006-08-20  Jan Hubicka  <jh@suse.cz>
1469
1470         PR rtl-optimization/28071
1471         * tree-optimize.c (tree_rest_of_compilation): Do not remove edges
1472         twice.
1473         * tree-inline.c (copy_bb): Use cgraph_set_call_stmt.
1474         * ipa-inline.c (cgraph_check_inline_limits): Add one_only argument.
1475         (cgraph_decide_inlining, cgraph_decide_inlining_of_small_function,
1476         cgraph_decide_inlining_incrementally): Update use of
1477         cgraph_check_inline_limits.
1478         * cgraph.c (edge_hash, edge_eq): New function.
1479         (cgraph_edge, cgraph_set_call_stmt, cgraph_create_edge,
1480         cgraph_edge_remove_caller, cgraph_node_remove_callees,
1481         cgraph_remove_node): Maintain call site hash.
1482         * cgraph.h (struct cgraph_node): Add call_site_hash.
1483         (cgraph_set_call_stmt): New function.
1484
1485 2006-08-20  Jan Hubicka  <jh@suse.cz>
1486
1487         PR rtl-optimization/28071
1488         * reload1.c (reg_has_output_reload): Turn into regset.
1489         (reload_as_needed, forget_old_reloads_1, forget_marked_reloads,
1490         choose_reload_regs, emit_reload_insns): Update to new
1491         reg_has_output_reload.
1492
1493 2006-08-20  Jan Hubicka  <jh@suse.cz>
1494
1495         PR middle-end/28779
1496         * ipa-inline.c (cgraph_decide_inlining, cgraph_early_inlining): Compute
1497         function body sizes.
1498         * cgraphunit.c (cgraph_analyze_function): Don't do so.
1499
1500 2006-08-20  Danny Smith  <dannysmith@users.sourceforge.net>
1501
1502         PR target/28648 c:
1503         * tree.c (handle_dll_attribute): Return early if not a
1504         var or function decl.
1505
1506 2006-08-18  Joseph Myers  <joseph@codesourcery.com>
1507
1508         PR target/27565
1509         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): For SPE, only adjust
1510         alignment of SPE vector types.
1511
1512 2006-08-18  Christophe Jaillet  <christophe.jaillet@wanadoo.fr>
1513
1514         * tree.c (is_attribute_with_length_p): Remove a duplicated assert.
1515
1516 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
1517
1518         PR c/28744
1519         * cgraph.h (struct cgraph_node): Remove externally_visible
1520         bitfield.
1521         * cgraphunit.c (process_function_and_variable_attributes): Set
1522         local.externally_visible rather than externally_visible.
1523
1524         PR c/28744
1525         * c-common.c (handle_externally_visible_attribute): First look
1526         at TREE_CODE and only if it is function or var decl, check for
1527         non-public objects.  Don't warn for DECL_EXTERNAL.
1528         * cgraphunit.c (process_function_and_variable_attributes): Warn
1529         if externally_visible attribute is used on non-public object.
1530
1531 2006-08-17  Jan Hubicka  <jh@suse.cz>
1532
1533         PR tree-optimization/27865
1534         * reload1.c (forget_marked_reloads): New function.
1535         (forget_old_reloads_1): When data are passed, just mark the registers
1536         for later removal.
1537         (reload_as_needed): Use the new mechanizm.
1538
1539 2006-08-17  Alexandre Oliva  <aoliva@redhat.com>
1540
1541         PR target/28146
1542         * reload.h (reg_equiv_alt_mem_list): New declaration.
1543         * reload1.c (reg_equiv_alt_mem_list): New definition.
1544         (reload): Initialize it and release it.
1545         (delete_output_reload): Use it.
1546         * reload.c (push_reg_equiv_alt_mem): New function.
1547         (find_reloads_toplev): Call it.
1548         (find_reloads_address, find_reloads_address_1): Likewise.
1549         (find_reloads_subreg_address): Likewise.
1550
1551 2006-08-17  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
1552
1553         PR rtl-optimization/28489
1554         * sched-ebb.c (begin_schedule_ready): Create basic block
1555         at the right place.
1556         (advance_target_bb): Skip empty blocks.
1557         * haifa-sched.c (bb_note): Make global.
1558         * sched-int.h (bb_note): Add prototype.
1559
1560 2006-08-16  Zdenek Dvorak <dvorakz@suse.cz>
1561
1562         PR tree-optimization/27865
1563         * tree-vrp.c (adjust_range_with_scev): Do not use TYPE_{MIN,MAX}_VALUE
1564         for pointer types.
1565         * tree-scalar-evolution.c (fold_used_pointer_cast, pointer_offset_p,
1566         fold_used_pointer, pointer_used_p): New functions.
1567         (analyze_scalar_evolution_1): Use fold_used_pointer.
1568         * tree-chrec.c (convert_affine_scev): Convert no-op casts correctly.
1569         * tree-ssa-loop-ivopts.c (generic_type_for): Return integral type
1570         for pointers.
1571
1572 2006-08-17  Paolo Bonzini <bonzini@gnu.org>
1573
1574         PR c++/28573
1575         * c-common.c (fold_offsetof_1): Add an argument and recurse down to it
1576         or the INTEGER_CST.  Fail on a CALL_EXPR.
1577         (fold_offsetof): Pass new argument to fold_offsetof_1.
1578         * c-parser.c (c_parser_postfix_expression): Don't include a NULL
1579         operand into an INDIRECT_REF.
1580         * c-typeck.c (build_unary_op): Adjust call to fold_offsetof.
1581
1582 2006-08-16  Zdenek Dvorak <dvorakz@suse.cz>
1583
1584         PR gcov/profile/26570
1585         * value-prof.c (static_values): Removed.
1586         (tree_find_values_to_profile): Do not set static_values.
1587         (find_values_to_profile): Do not free static_values.
1588         * profile.c (instrument_values): Do not free the values.
1589         (branch_prob): Free the values.
1590
1591 2006-08-16  Naveen.H.S  <naveenh@kpitcummins.com>
1592
1593         * config/m32c/m32c_lib1.S (__mulsi3): Use only registers for dest.
1594
1595 2006-08-16  Joseph S. Myers  <joseph@codesourcery.com>
1596
1597         PR c/27697
1598         * c-typeck.c (build_component_ref): Combine qualifiers of
1599         structure or union and field.
1600
1601 2006-08-16  Zdenek Dvorak <dvorakz@suse.cz>
1602
1603         PR rtl-optimization/28071
1604         * basic-block.h (bb_dom_dfs_in, bb_dom_dfs_out): Declare.
1605         * dominance.c (bb_dom_dfs_in, bb_dom_dfs_out): New functions.
1606         * tree-into-ssa.c (struct dom_dfsnum): New.
1607         (cmp_dfsnum, find_dfsnum_interval, prune_unused_phi_nodes): New
1608         functions.
1609         (insert_phi_nodes_for): Use prune_unused_phi_nodes instead of
1610         compute_global_livein.
1611         (prepare_block_for_update, prepare_use_sites_for): Mark the uses
1612         in phi nodes in the correct blocks.
1613
1614 2006-08-16  Zdenek Dvorak <dvorakz@suse.cz>
1615
1616         PR tree-optimization/28364
1617         * tree-ssa-loop-ivopts.c (aff_combination_to_tree): Handle zero
1618         correctly.
1619         (fold_affine_expr): New function.
1620         (may_eliminate_iv): Use fold_affine_expr.
1621
1622 2006-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1623
1624         PR c/27489
1625         * c-typeck.c (c_start_case): Handle invalid orig_type correctly.
1626         Clean up.
1627
1628 2006-08-16  Mike Stump  <mrs@apple.com>
1629
1630         * doc/invoke.texi (-Wno-deprecated-declarations): Fixup use of pxref.
1631         * doc/cppopts.texi (-MD): Likewise.
1632
1633 2006-08-15  Danny Smith  <dannysmith@users.sourceforge.net>
1634
1635         PR c/28287
1636         * c-common.c (handle_weak_attribute): Ignore and warn if
1637         not a FUNCTION_ or VAR_DECL.
1638
1639 2006-07-15  Mike Stump  <mrs@apple.com>
1640
1641         PR c/28280
1642         * c-parser.c (c_parser_typeof_specifier): Don't use
1643         c_finish_expr_stmt, open code desired semantics instead.
1644
1645 2006-08-15  Nick Clifton  <nickc@redhat.com>
1646
1647         * config.gcc (x86-mingw32): Add a gthr-win32.h including makefile
1648         fragment to tmake_file only if threads are enabled.
1649         * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Move to...
1650         * config/i386/t-gthr-win32: New file. ... here.
1651
1652 2006-08-15  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1653
1654         PR c/28649
1655         * c-parser.c (c_parser_compound_statement_nostart): Reset
1656         parser->error after each statement.
1657
1658 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
1659
1660         PR middle-end/28713
1661         * omp-low.c (lower_omp_parallel): Convert t to
1662         receiver_decl's type.
1663         (expand_omp_parallel): STRIP_NOPS from the MODIFY_EXPR
1664         source before comparison.
1665
1666         PR middle-end/28724
1667         * gimplify.c (gimplify_omp_atomic_pipeline): Convert oldival
1668         to itype in assignment to oldival2.
1669
1670 2006-07-14  Andrew Pinski  <pinksia@physics.uc.edu>
1671
1672         PR c/27490
1673         PR c/27489
1674         * c-typeck.c (build_compound_expr): If the second expression
1675         is an error mark, then just return an error mark instead of
1676         creating a COMPOUND_EXPR.
1677
1678 2006-07-14  Mike Stump  <mrs@apple.com>
1679
1680         * Makefile.in (LIBGCC_DEPS): Don't depend on LANGUAGES.
1681
1682 2006-08-14  Kazu Hirata  <kazu@codesourcery.com>
1683
1684         * c-decl.c, var-tracking.c: Fix comment typos.
1685
1686 2006-08-14  Richard Sandiford  <richard@codesourcery.com>
1687
1688         PR rtl-optimization/28634
1689         * reorg.c (fill_slots_from_thread): Do not assume A + X - X == A
1690         for floating-point modes unless flag_unsafe_math_optimizations.
1691
1692 2006-08-13  Alexandre Oliva  <aoliva@redhat.com>
1693             Andrew Pinski  <pinskia@physics.uc.edu>
1694
1695         PR c/27184
1696         * tree.c (build_array_type): Unify array types with
1697         unspecified index_type.
1698         * c-decl.c (grokdeclarator): Make sure we do not modify a
1699         unified incomplete array type.
1700         * c-typeck.c (store_init_value): Create distinct type before
1701         filling in the index type in an initializer from a compound
1702         literal.
1703
1704         * c-decl.c (grokdeclarator): Remove code where we copy the
1705         array type over.
1706
1707 2006-08-13  Andrew Pinski  <pinskia@physics.uc.edu>
1708
1709         * tree-pass.h (TODO_update_ssa): Fix which bit is used to take
1710         into account for TODO_dump_cgraph.
1711         (TODO_update_ssa_no_phi): Likewise.
1712         (TODO_update_ssa_full_phi): Likewise.
1713         (TODO_update_ssa_only_virtuals): Likewise.
1714         (TODO_remove_unused_locals): Likewise.
1715         (TODO_set_props): Likewise.
1716         (TODO_update_stmt_usage): Likewise.
1717
1718 2006-08-13  Dirk Mueller  <dmueller@suse.de>
1719
1720         * c-common.c (strict_aliasing_warning): Fix formatting.
1721
1722 2006-08-13  Matthias Klose  <doko@debian.org>
1723
1724         * doc/invoke.texi: Fix spelling errors.
1725
1726 2006-08-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
1727
1728         PR rtl-optimization/23454
1729         * reorg.c (relax_delay_slots): Update comment.
1730
1731 2006-08-11  Richard Guenther  <rguenther@suse.de>
1732
1733         PR middle-end/28651
1734         * simplify-rtx.c (simplify_const_relational_operation):
1735         Simplify A CMP B to A - B CMP 0 only for EQ and NE comparison
1736         codes.
1737
1738 2006-08-10  Eric Botcazou  <ebotcazou@adacore.com>
1739
1740         * tree.c (build1_stat): Also propagate the TREE_CONSTANT and
1741         TREE_INVARIANT flags for a VIEW_CONVERT_EXPR.
1742
1743 2006-08-10  Paul Brook  <paul@codesourcery.com>
1744
1745         * final.c (final_scan_insn): Clear current_insn_predicate before
1746         outputting inline asm.
1747
1748 2006-08-10  Dorit Nuzman  <dorit@il.ibm.com>
1749
1750         PR tree-optimization/26197
1751         * tree-ssa-alias.c (new_type_alias): Takes additional argument. Calls
1752         get_ref_base_and_extent and overlap_subvar to add only relevant
1753         subvars as may-aliases.
1754         (add_may_alias_for_new_tag): New function, factored out of
1755         new_type_alias.
1756         * tree-vect-transform.c (vect_create_data_ref_ptr): Call new_type_alias
1757         with additional argument.
1758         * tree-flow.h (new_type_alias): Takes additional argument.
1759
1760 2006-08-09  Nathan Sidwell  <nathan@codesourcery.com>
1761
1762         * gcov.c (no_data_file): New flag.
1763         (read_count_file): Set it if data file not present.  Assume counts
1764         zero if not found.
1765         (output_lines): Don't name the data file, if there wasn't one.
1766
1767 2006-08-09  Eric Botcazou  <ebotcazou@adacore.com>
1768
1769         * config/rs6000/rs6000.c (print_operand) <D>: Fix comment and adjust.
1770         (rs6000_generate_compare): Tweak comments.
1771         * config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Fix comment.
1772
1773 2006-08-09  Alexandre Oliva  <aoliva@redhat.com>
1774
1775         * var-tracking.c (enum micro_operation_type): Add MO_COPY.
1776         (var_debug_decl): New function.
1777         (var_reg_set): Follow debug decl link.  Add location even if
1778         reg is already known to hold some other variable.
1779         (var_mem_set): Follow debug decl link.
1780         (var_reg_delete_and_set, var_mem_delete_and_set): Follow debug
1781         decl link.  Delete other known locations of the variable part
1782         if requested.
1783         (var_reg_delete, var_mem_delete): Delete other known locations
1784         of the variable part if requested.
1785         (same_variable_part_p): New function.
1786         (add_stores): Select MO_COPY when appropriate.
1787         (vt_initialize): Handle it.
1788         (compute_bb_dataflow, emit_notes_in_bb): Likewise.  Delete
1789         known locations for MO_SET and MO_CLOBBER.
1790         (find_variable_location_part): New function.
1791         (set_variable_part, delete_variable_part): Use it.
1792         (clobber_variable_part): New function.
1793         * dwarf2out.c (dwarf2out_var_location): Do not follow debug
1794         decl link.
1795
1796 2006-08-07  Victor Kaplansky <victork@il.ibm.com>
1797
1798         PR tree-optimization/26969
1799         * tree-vect-analyze.c (vect_analyze_loop_form): Add check of latch
1800         with an empty list of PHIs.
1801
1802 2006-08-06  Paolo Bonzini  <bonzini@gnu.org>
1803
1804         PR target/27827
1805
1806         * conffig/i386/i386.md: Add peephole2 to avoid "fld %st"
1807         instructions.
1808
1809 2006-08-06  Andreas Schwab  <schwab@suse.de>
1810
1811         * config/m68k/m68k.c (m68k_output_function_epilogue): Fix format
1812         string.  Whitespace and comment fixup.
1813
1814 2006-08-05  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1815
1816         PR c/28502
1817         * c-decl.c (validate_proto_after_old_defn): Return false on invalid
1818         argument.
1819
1820         PR c/27721
1821         * c-typeck.c (build_modify_expr): Test earlier for non-lvalues.
1822
1823         PR c/28136
1824         * c-parser.c (c_parser_postfix_expression_after_paren_type): Robustify.
1825
1826 2006-08-04  Jan Hubicka  <jh@suse.cz>
1827
1828         PR target/26655
1829         PR target/28270
1830         * reload.c (push_reload): Patch out the mismatching instruction;
1831         return early.
1832         (find_reload): Bail out if the instruction was patched out.
1833
1834 2006-08-04  Jan Hubicka  <jh@suse.cz>
1835
1836         PR tree-optimization/24888
1837         * tree-inline.c (expand_call_inline): Do not re-record variables.
1838         (declare_inline_vars): Add variable to unexpanded_var_list.
1839
1840 2006-08-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1841             Roger Sayle  <roger@eyesopen.com>
1842
1843         PR rtl-optimization/26244
1844         * cse.c (fold_rtx): Correctly associate shifts when const_arg1 and/or
1845         inner_const are negative or greater than or equal to the bitsize of
1846         MODE.  If SHIFT_COUNT_TRUNCATED is false, the values aren't associated.
1847         Otherwise, the values are masked using GET_MODE_BITSIZE (mode) - 1.
1848         Simplify complicated if statement.  For ASHIFT and LSHIFTRT, return
1849         CONST0_RTX (mode) when the new shift count is greater than or equal to
1850         to the bitsize of the object being shifted and XEXP (y, 0) has no side
1851         effects.
1852
1853 2006-08-04  Kazu Hirata  <kazu@codesourcery.com>
1854
1855         * tree-cfg.c: Fix a comment typo.
1856
1857 2006-08-03  Mark Mitchell  <mark@codesourcery.com>
1858
1859         PR c++/28148
1860         * varasm.c (output_constant): Give the front end another chance to
1861         expand constants, after stripping NOPs.
1862
1863 2006-08-03  Jan Hubicka  <jh@suse.cz>
1864
1865         * domwalk.c (walk_dominator_tree): Reorganize to non-recursive
1866         implementation.
1867
1868 2006-08-03  Dorit Nuzman  <dorit@il.ibm.com>
1869
1870         PR tree-optimization/27770
1871         * tree-vectorizer.h (get_vectype_for_scalar_type): Function
1872         declaration removed (moved to tree-flow.h).
1873         (vect_can_force_dr_alignment_p): Likewise.
1874         * tree-flow.h (get_vectype_for_scalar_type): New function declaration
1875         (moved from tree-vectorizer.h).
1876         (vect_can_force_dr_alignment_p): Likewise.
1877         * tree-vectorizer.c (vect_print_dump_info): Allow calling this function
1878         from outside the vectorizer - in particular from cgraph stage.
1879         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Don't increase
1880         the alignment of global arrays when -fsection-anchors is enabled.
1881         * cgraphunit.c (cgraph_increase_alignment): New function.
1882         (cgraph_optimize): Call cgraph_increase_alignment.
1883
1884 2006-08-03  David Edelsohn  <edelsohn@gnu.org>
1885
1886         PR target/27566
1887         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
1888         not reload a SPE symbol_ref into a lo_sum address.
1889
1890 2006-08-02  Daniel Jacobowitz  <dan@codesourcery.com>
1891
1892         PR debug/28063
1893         * dwarf2out.c (prune_unused_types_prune): Move call to
1894         prune_unused_types_update_strings to cover the parent DIE also.
1895
1896 2006-08-02  Jan Hubicka  <jh@suse.cz>
1897
1898         PR gcov/profile/28480
1899         * tree-cfg.c (change_bb_for_stmt): New function.
1900         (tree_merge_blocks, tree_split_blocks): Use it.
1901
1902 2006-08-01  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1903
1904         PR c++/28250
1905         PR c++/28257
1906         PR c++/28259
1907         PR c++/28267
1908         * toplev.c (compile_file): Return early on errorcount or sorrycount.
1909         * cgraphunit.c (cgraph_finalize_compilation_unit): Likewise.
1910         (cgraph_optimize): Likewise.
1911
1912 2006-08-01  Stuart Hastings  <stuart@apple.com>
1913
1914         * rtl.h (UINTVAL) New.
1915         * config/rs6000/rs6000.c (SMALL_INT) Use it.
1916         * testsuite/gcc.dg/20060801-1.c: New.
1917
1918 2006-08-01  Daniel Jacobowitz  <dan@codesourcery.com>
1919
1920         PR debug/23336
1921         * c-typeck.c (build_external_type): Mark used enum types.
1922         * dwarf2out.c (dwarf2out_abstract_function): Save and restore
1923         cfun also.
1924         (gen_subprogram_die): Whitespace fix.
1925
1926 2006-08-01  Jan Hubicka  <jh@suse.cz>
1927
1928         * tree-outof-ssa.c (check_replaceable): Do not allocate def_vars
1929         bitmap when not needed.
1930         * tree-ssa-pre.c (bitmap_set_and, bitmap_set_and_compl): Free temporary
1931         bitmaps.
1932
1933 2006-08-01  Dirk Mueller  <dmueller@suse.de>
1934
1935         * tree-vrp.c (fix_equivalence_set): Avoid bitmap memory leak.
1936
1937 2006-07-31  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1938
1939         * Makefile.in: Revert part of previous patch:
1940         Replace $(VARRAY_H) by varray.h in definition of BASIC_BLOCK_H
1941         and REGS_H.
1942
1943 2006-07-30  Eric Christopher  <echristo@apple.com>
1944
1945         PR target/27543
1946         * doc/extend.texi (i386 Variable Attributes): Add anchor.
1947         (PowerPC Variable Attributes): New section.
1948
1949 2006-07-30  Atsushi Nemoto  <anemo@mba.ocn.ne.jp>
1950
1951         PR target/28126 (partial fix)
1952         * config/mips/mips.md (tls_get_tp_<mode>): Set can_delay to no.
1953
1954 2006-07-28  Jan Hubicka  <jh@suse.cz>
1955
1956         PR rtl-optimization/28071
1957         * cfgrtl.c (rtl_delete_block): Free regsets.
1958         * flow.c (allocate_bb_life_data): Re-use regsets if available.
1959
1960 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1961
1962         * Makefile.in: Use $(HEADER_H) instead of header.h in dependencies
1963         and variables used in dependencies.
1964
1965 2006-07-27  Arjan van de Ven <arjan@linux.intel.com>
1966
1967         * config/i386/i386.md (stack_tls_protect_set_di) Use %gs rather than
1968         %fs for -mcmodel=kernel.
1969         (stack_tls_protect_test_di): Likewise.
1970
1971 2006-07-27  Carlos O'Donell  <carlos@codesourcery.com>
1972
1973         * Makefile.in: Use mkinstalldirs.
1974
1975 2006-07-27  H.J. Lu  <hongjiu.lu@intel.com>
1976
1977         PR driver/28437
1978         * opts-common.c (prune_options): Skip joined switches.
1979
1980 2006-07-27  Jan Hubicka  <jh@suse.cz>
1981
1982         PR rtl-optimization/28071
1983         * cselib.c (cselib_process_insn): Don't remove useless values too
1984         often for very large hashtables.
1985
1986 2006-07-27  Jan Hubicka  <jh@suse.cz>
1987
1988         PR rtl-optimization/28071
1989         * global.c (greg_obstack): New obstack.
1990         (allocate_bb_info): Use it.
1991         (free_bb_info): Likewise.
1992         (modify_reg_pav): Likewise.
1993
1994 2006-07-27  Roger Sayle  <roger@eyesopen.com>
1995
1996         * builtins.c (fold_fixed_mathfn): When long and long long are the
1997         same size, canonicalize llceil*, llfloor*, llround* and llrint*
1998         functions to their lceil*, lfloor*, lround* and lrint* forms.
1999
2000 2006-07-27  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
2001
2002         PR gcc/28508
2003         * config/m32r/m32r.md (branch_insn): Reduce pc range for short
2004         branch.
2005         (rev_branch_insn): Likewise.
2006
2007 2006-07-27  Jan Hubicka  <jh@suse.cz>
2008
2009         PR rtl-optimization/28071
2010         * regmove.c (reg_is_remote_constant_p): Avoid quadratic behaviour.
2011         (reg_set_in_bb, max_reg_computed): New static variables.
2012         (regmove_optimize): Free the new array.
2013         (fixup_match_1): Update call of reg_is_remote_constant_p.
2014
2015 2006-07-26  Jan Hubicka  <jh@suse.cz>
2016
2017         PR tree-optimization/27882
2018         * cgraph.c (cgraph_remove_node): Clear needed, reachable, next, previous
2019         and decl fields.
2020         * cgraphunit.c (cgraph_reset_node): Expect cgraph_remove_node to kill
2021         next pointer
2022         (cgraph_analyze_compilation_unit): Likewise.
2023         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
2024         * ipa-inline.c (cgraph_decide_recursive_inlining): Likewise.
2025         (cgraph_early_inlinine): Make order garbage collected.
2026         * Makefile.in (gt-ipa-inline): New garbagecollected file.
2027
2028 2006-07-26  Daniel Jacobowitz  <dan@codesourcery.com>
2029
2030         * dbxout.c (output_types_sort): Add a comment.
2031         (output_used_types): Free the VEC.
2032
2033 2006-07-26  Daniel Jacobowitz  <dan@codesourcery.com>
2034
2035         * function.c (reorder_fix_fragments): Delete.
2036         (reorder_blocks): Don't call it.
2037         (reorder_blocks_1): Put all subblocks under the origin block.
2038
2039 2006-07-26  Zdenek Dvorak <dvorakz@suse.cz>
2040
2041         PR rtl-optimization/27907
2042         * expr.c (force_operand): Use convert_move to handle FLOAT_EXTEND and
2043         FLOAT_TRUNCATE.
2044
2045 2006-07-25  Roger Sayle  <roger@eyesopen.com>
2046
2047         PR middle-end/28473
2048         * convert.c (convert_to_integer): When transforming (T)foo(x) into
2049         bar(x) check that bar's result type can represent all the values of T.
2050
2051 2006-07-25  Zdenek Dvorak <dvorakz@suse.cz>
2052
2053         * tree-chrec.c (chrec_convert_aggressive): Return NULL on failure.
2054
2055 2006-07-25  Nick Clifton  <nickc@redhat.com>
2056
2057         * ggc-page.c (NUM_SIZE_LOOKUP): New constant - the length of the
2058         size_lookup[] array.
2059         (ggc_alloc_stat): Use NUM_SIZE_LOOKUP.
2060         (ggc_pch_count_object): Likewise.
2061         (ggc_pch_alloc_object): Likewise.
2062         (ggc_pch_write_object): Likewise.
2063         (init_ggc): Do not attempt to initialize entries in the
2064         size_lookup[] array for objects whose size is greater than than
2065         the length of the array.
2066
2067 2006-07-25  Daniel Jacobowitz  <dan@codesourcery.com>
2068
2069         * dbxout.c (output_used_types_helper): Push queued types
2070         on a VEC.
2071         (output_types_sort): New.
2072         (output_used_types): Collect used types on a VEC and sort them
2073         before emission.
2074
2075 2006-07-24  Richard Guenther  <rguenther@suse.de>
2076
2077         PR middle-end/28463
2078         * cgraph.c (cgraph_remove_node): Do not check if dumps
2079         are enabled.
2080         * cgraphunit.c (cgraph_optimize): Likewise.
2081
2082 2006-07-24  Jan Hubicka  <jh@suse.cz>
2083
2084         PR rtl-optimization/28071
2085         * tree-cfg.c (tree_split_block): Do not allocate new stmt_list nodes.
2086         * tree-iterator.c (tsi_split_statement_list_before): Do not crash when
2087         splitting before first stmt.
2088
2089 2006-07-24  Jan Hubicka  <jh@suse.cz>
2090
2091         PR rtl-optimization/28071
2092         * ipa-inline.c (update_caller_keys): Remove edges that
2093         are no longer inline candidates.
2094
2095 2006-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
2096
2097         PR debug/27473
2098         * dbxout.c (output_used_types_helper, output_used_types): New.
2099         (dbxout_symbol): Call output_used_types.
2100
2101 2006-07-23  Jan Hubicka  <jh@suse.cz>
2102
2103         PR c/25795
2104         PR c++/27369
2105         * cgraph.c (cgraph_varpool_nodes): Export.
2106         (decide_is_variable_needed): Ignored "used" attribute in
2107         unit-at-a-time mode.
2108         * cgraph.h (cgraph_varpool_nodes): Declare.
2109         * cgraphunit.c (decide_is_function_needed): Ignored "used" attribute in
2110         unit-at-a-time mode.
2111
2112 2006-07-23  Roger Sayle  <roger@eyesopen.com>
2113
2114         PR target/28247
2115         * gthr-solaris.h: Prototype __gthrw forms of thr_self, mutex_init and
2116         mutex_destroy even when !_LIBOOBJC.  Remove duplicate prototype of
2117         the __gthrw form of thr_keycreate.
2118         (__gthread_key_delete): Silence the unused argument warning.
2119
2120 2006-07-23  Steven Bosscher  <steven@gcc.gnu.org>
2121
2122         PR debug/25468
2123         * config/elfos.h (ASM_OUTPUT_ASCII): Remove 'register' marks.
2124         Cache the last found '\0' marker to avoid quadratic behavior.
2125
2126 2006-07-23  Jan Hubicka  <jh@suse.cz>
2127
2128         * i386.md (subsi_3_zext): Fix output template.
2129
2130 2006-07-21  Mike Stump  <mrs@apple.com>
2131
2132         * doc/invoke.texi (C++ Dialect Options): Note that
2133         -fvisibility-inlines-hidden doesn't affect explicitly
2134         instantiationed inline methods.
2135
2136 2006-07-20  Roger Sayle  <roger@eyesopen.com>
2137
2138         * config.gcc (i[34567]86-*-solaris2*): Add usegas.h to $tm_file
2139         if the target assembler is GNU binutils' gas.
2140         * config/i386/sol2-10.h (ASM_SPEC): Check USE_GAS to determine
2141         whether to pass GNU gas or native as command line options.
2142
2143 2006-07-20  Jason Merrill  <jason@redhat.com>
2144
2145         * tree.c (remove_attribute): New fn.
2146         * tree.h: Declare it.
2147
2148 2006-07-20  Paul Brook  <paul@codesourcery.com>
2149
2150         PR 27363
2151         * cse.c (cse_insn): Add destination addresses to hash table. Check if
2152         they are invalidated by this instruction.
2153
2154 2006-07-21  Danny Smith  <dannysmith@users.sourceforge.net>
2155
2156         PR target/28427
2157         * config/i386/cygming.h (MAX_OFILE_ALIGNMENT): Define.
2158
2159 2006-07-20  Eric Christopher  <echristo@apple.com>
2160
2161         PR target/26877
2162         * config/i386/i386.h (OPTION_DEFAULT_SPECS): Reorder.
2163
2164 2006-07-19  Eric Christopher  <echristo@apple.com>
2165
2166         * config/t-slibgcc-darwin (stmp-lipo): Remove.
2167         Rewrite dependencies for libgcc_s.1.dylib.
2168
2169 2006-07-19  Jakub Jelinek  <jakub@redhat.com>
2170
2171         * except.c (duplicate_eh_regions_1): Clear next_peer.
2172
2173 2006-07-17  Nathan Sidwell  <nathan@codesourcery.com>
2174
2175         * doc/invoke.texi (RS/6000 and PowerPC Options): Document that
2176         -mlongcall does not guarantee all calls will be long.
2177         * doc/extend.texi (long_call/short_call): Document that longcall
2178         does not guarantee a long call will be used.
2179         (longcall/shortcall): Likewise.
2180
2181 2006-07-18  Roger Sayle  <roger@eyesopen.com>
2182
2183         PR middle-end/28283
2184         * expmed.c (expand_shift): Additionally check that the shift_cost
2185         is not MAX_COST and that INTVAL(op1) is less than MAX_BITS_PER_WORD
2186         before implementing a LSHIFT_EXPR as a sequence of additions.
2187         * config/sh/sh.c (shift_costs): Return MAX_COST to inform the
2188         middle-end that DImode shifts need to be synthesized by expand.
2189
2190 2006-07-18  Diego Novillo  <dnovillo@redhat.com>
2191
2192         PR 28410
2193         * tree-ssa-operands.c (access_can_touch_variable): Update
2194         comment.
2195         Return true if ALIAS is .GLOBAL_VAR.
2196
2197 2006-07-18  David Daney  <ddaney@avtrex.com>
2198
2199         * gcc.c (display_help): Fix typo in help text.
2200
2201 2006-07-18  Olivier Hainque  <hainque@adacore.com>
2202
2203         * tree.h (categorize_ctor_elements): Adjust prototype and add
2204         descriptive comment, both in accordance with the interface change
2205         described below.
2206         * varasm.c (constructor_static_from_elts_p): New function.
2207         Whether a constructor node is a valid static constant initializer
2208         if all its elements are.
2209         (initializer_constant_valid_p) <CONSTRUCTOR value>: Use it.
2210         * output.h: Declare it.
2211         * expr.c (categorize_ctor_elements_1): Return whether the constructor
2212         is a valid constant initializer instead of computing the number of
2213         non-constant elements.  Use constructor_static_from_elts_p for this
2214         purpose.  Replace the head comment with an indication that this is a
2215         helper for categorize_ctor_elements.
2216         (categorize_ctor_elements): Same interface change as for the _1
2217         helper.  Former head comment from this helper moved here, adjusted to
2218         account for the interface changes.
2219         (mostly_zeros_p): Adjust call to categorize_ctor_elements.
2220         (all_zeros_p): Likewise.
2221         * gimplify.c (gimplify_init_constructor): Decide whether we can make
2222         static versions of the constructor from the categorize_ctor_elements
2223         return value instead of the formerly computed number of non-constant
2224         elements.
2225
2226 2006-07-18  Paolo Bonzini  <bonzini@gnu.org>
2227
2228         * configure: Regenerate.
2229         * Makefile.in (build_libsubdir): New configure substitution
2230         (build_libobjdir): New variable.
2231         (BUILD_LIBIBERTY): Use it.
2232
2233 2006-07-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2234
2235         PR c/28286
2236         * c-pragma.c (handle_pragma_pack): Handle invalid constants.
2237
2238 2006-07-18  Alexandre Oliva  <aoliva@redhat.com>
2239
2240         PR c/26993
2241         * c-common.c (handle_weakref_attribute): Ignore attribute in
2242         the same conditions the alias attribute is ignored.
2243
2244 2006-07-17  Carlos O'Donell  <carlos@codesourcery.com>
2245
2246         * dbxout.c (dbxout_function_end): Do not increment scope_labelno.
2247         (dbxout_begin_prologue): Increment scope_labelno.
2248
2249 2006-07-17  Richard Henderson  <rth@redhat.com>
2250
2251         PR 27889
2252         * tree-nested.c (create_tmp_var_for): Set DECL_COMPLEX_GIMPLE_REG_P
2253         if needed.
2254
2255 2006-07-17  Roger Sayle  <roger@eyesopen.com>
2256             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2257
2258         * config/i386/gmon-sol2.c: Silence compilation warnings by partially
2259         synchronizing code with config/sparc/gmon-sol2.c.  Remove #if 0
2260         blocks.  #include "tconfig.h" and "tsystem.h" to prototype system
2261         functions such as sbrk, write, etc..  Add function prototypes.
2262         Convert function declarations from K&R to ISO C.  Cast pointers
2263         to "long" and "unsigned long" instead of "int" and "unsigned int".
2264         Convert tokens following #endif into comments.
2265
2266 2006-07-17  Toon Moene  <toon@moene.indiv.nluug.nl>
2267
2268         * invoke.texi: Remove mention of f77; Reformat table for
2269         inline parameter options correctly; mention that -malign-double
2270         is default on x86-64 targets.
2271
2272 2006-07-17  Zdenek Dvorak <dvorakz@suse.cz>
2273
2274         * tree-chrec.c (avoid_arithmetics_in_type_p): New.
2275         (convert_affine_scev, chrec_convert_aggressive): Use
2276         avoid_arithmetics_in_type_p.  Do not check for the subtypes
2277         separately.
2278
2279 2006-07-17  Richard Sandiford  <richard@codesourcery.com>
2280
2281         PR middle-end/28403
2282         * optabs.c (expand_doubleword_shift): Wrap the call to
2283         do_compare_rtx_and_jump with NO_DEFER_POP and OK_DEFER_POP.
2284
2285 2006-07-17  Richard Sandiford  <richard@codesourcery.com>
2286
2287         PR middle-end/28402
2288         * optabs.c (expand_binop): Pass next_methods rather than methods
2289         to expand_doubleword_shift.
2290
2291 2006-07-17  J"orn Rennecke  <joern.rennecke@st.com>
2292
2293         PR other/28251
2294         * tree.h (dump_addr): Declare.
2295         * print-tree.c (dump_addr): New function.
2296         (print_node_brief, print_node): Use it.
2297         * print-rtl.c (print_rtx): Likewise.
2298         * common.opt (-fdump-noaddr): New option.
2299         * doc/invoke.texi (-fdump-noaddr): Document.
2300         * loop-unroll.c (si_info_hash): Make hash independent of addresses.
2301         (ve_info_hash): Likewise.
2302
2303 2006-07-13  Andrew Haley  <aph@redhat.com>
2304
2305         PR tree-optimization/19505
2306         * tree-cfgcleanup.c (tree_forwarder_block_p): If we have an EH
2307         edge leaving this block, make sure that the destination of this
2308         block has only one predecessor.
2309
2310 2006-07-17  Richard Guenther  <rguenther@suse.de>
2311
2312         PR tree-optimization/28238
2313         * tree-inline.c (copy_bb): Check if we produced valid
2314         gimple copying and substituting a stmt.  If not, gimplify
2315         it.
2316
2317 2006-07-16  Eric Botcazou  <ebotcazou@adacore.com>
2318
2319         * optabs.c (maybe_encapsulate_block): New function extracted from...
2320         (emit_libcall_block): ...here.  Invoke it on the block of insns to
2321         maybe emit REG_LIBCALL/REG_RETVAL notes around the block.
2322         (emit_no_conflict_block): Likewise.
2323
2324 2006-07-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
2325
2326         * doc/install.texi (sparc-sun-solaris2*): Add GMP version number.
2327
2328 2006-07-15  Roger Sayle  <roger@eyesopen.com>
2329
2330         * tree-gimple.c (is_gimple_stmt): Sink test of IS_EMPTY_STMT into
2331         a new NOP_EXPR case of the switch statement.
2332
2333 2006-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
2334
2335         PR middle-end/28160
2336         * stor-layout.c (place_field): Take the bit field with
2337         an excessive size into account in the ms-bitfiled case.
2338
2339         PR middle-end/28161
2340         * stor-layout.c (place_field): Use DECL_BIT_FIELD_TYPE of
2341         the previous bit field.
2342
2343 2006-07-14  Eliot Dresselhaus  <eliot@sonic.net>
2344
2345         PR target/27287
2346         * config/rs6000/spe.md (frob_di_df_2): Add m->r alternative.
2347
2348 2006-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
2349
2350         * config/s390/linux-unwind.h (s390_fallback_frame_state): Detect
2351         signal frames correctly even when the signal was installed with
2352         sa_restorer set.
2353
2354 2006-07-14  Carlos O'Donell  <carlos@codesourcery.com>
2355
2356         * dbxout.c (dbxout_begin_prologue): Emit LFBB label at function start.
2357         (dbxout_function_end): Use local label LFBB. Remove hook
2358         DBX_OUTPUT_NFUN.
2359         (dbxout_source_line): Use local label LFBB.
2360         (dbxout_block): Likewise.
2361         (dbx_output_lbrac): Remove hook DBX_OUTPUT_LBRAC.
2362         (dbx_output_rbrac): Remove hook DBX_OUTPUT_RBRAC.
2363         * config/rs6000/linux64.h: Remove DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC,
2364         and DBX_OUTPUT_NFUN.
2365
2366 2006-07-13  Janis Johnson  <janis187@us.ibm.com>
2367
2368         * doc/sourcebuild.texi (Test Directives): Document dg-shouldfail.
2369
2370 2006-07-13  Jan Hubicka  <jh@suse.cz>
2371
2372         * cgraphunit.c (cgraph_varpool_analyze_pending_decls): Call
2373         align_variable.
2374         * output.h (align_variable): Declare.
2375         * varasm.c (align_variable): Export.
2376         * value-prof.c (tree_value_profile_transformations): Recompute iterator
2377         when basic block changed.
2378
2379 2006-07-13  Nick Clifton  <nickc@redhat.com>
2380
2381         * config/sh/sh.c (sh_reorg): Ignore deleted insns whilst
2382         walking the LOG_LINKS chain.
2383
2384 2006-07-12  Geoffrey Keating  <geoffk@apple.com>
2385
2386         * doc/invoke.texi (C++ Dialect Options): Explain difference
2387         between -fvisibility-inlines-hidden and setting hidden
2388         visibility explicitly.
2389
2390 2006-07-12  Eric Christopher  <echristo@apple.com>
2391
2392         * config/t-slibgcc-darwin (SHLIB_LINK): Don't munge stmp-lipo.
2393         (stmp-lipo): Depend on libgcc.a.
2394
2395 2006-07-12  Kazu Hirata  <kazu@codesourcery.com>
2396
2397         * tree.c: Fix a comment typo.
2398
2399 2006-07-12  Naveen.H.S  <naveenh@kpitcummins.com>
2400
2401         * config/m32c/muldiv.md (umulhisi3_c): Use only registers for
2402         dest.
2403         (umulhisi3_r): Likewise.
2404
2405 2006-07-12  Paolo Carlini  <pcarlini@suse.de>
2406
2407         PR libstdc++/27878
2408         * doc/install.texi (mips-sgi-irix6): Add note about IRIX 6.5.x,
2409         x < 19, vs wchar_t support.
2410
2411 2006-07-12  Nick Clifton  <nickc@redhat.com>
2412
2413         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Use -isa=sh4-up
2414         instead of -isa=sh4.
2415
2416 2006-07-12  Mike Stump  <mrs@apple.com>
2417
2418         * protoize.c (edit_fn_definition): Add volatile to clean_text_p.
2419
2420 2006-07-10  Eric Christopher  <echristo@apple.com>
2421
2422         * config/t-slibgcc-darwin: Rewrite.
2423
2424 2006-07-10  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2425
2426         PR bootstrap/20437
2427         * Makefile.in (configure): add missing aclocal.m4 and acinclude.m4
2428         dependencies.
2429
2430 2006-07-08  Matthias Klose  <doko@debian.org>
2431
2432         * doc/sourcebuild.texi: Fix typo.
2433
2434 2006-07-07  Mike Stump  <mrs@apple.com>
2435
2436         * toplev.c (process_options): Don't give -ffunction-sections may
2437         affect debugging warning for Mach-O.
2438
2439 2006-07-07  James E Wilson  <wilson@specifix.com>
2440
2441         * config/mips/mips.md (cpu): Add sb1a.
2442         * config/mips/sb1.md: Modify almost all patterns to accept sb1a in
2443         addition to sb1.  Adjust comments to clarify SB-1A differences from
2444         SB-1.
2445         (ir_sb1a_load): New.  Modify bypasses to use it.
2446         (ir_sb1a_simple_alu): Likewise.
2447         * config/mips/mips.c (mips_cpu_info_table): Add sb1a.
2448         (mips_rtx_cost_data): Add PROCESSOR_SB1A support.
2449         (mips_issue_rate): Add PROCESSOR_SB1A.
2450         (mips_multipass_dfa_lookahead): Use TUNE_SB1 instead of PROCESSOR_SB1.
2451         * config/mips/mips.h (processor_type): Add PROCESSOR_SB1A.
2452         (TARGET_SB1): Add PROCESSOR_SB1A check.
2453         (TUNE_SB1): Likewise.
2454
2455         * config/mips/mips-protos.h (mips_store_data_bypass_p): New.
2456         * config/mips/mips.c (mips_store_data_bypass_p): New.
2457         * config/mips/sb1.md: Use mips_store_data_bypass_p instead of
2458         store_data_bypass_p.
2459
2460 2006-07-08  Paul Brook  <paul@codesourcery.com>
2461
2462         PR target/27991
2463         * config/m68k/m68k.md: Add r-m patterns for 68881 movxf.
2464
2465 2006-07-07   Richard Guenther  <rguenther@suse.de>
2466
2467         PR middle-end/28268
2468         * tree.h (build_one_cst): Declare.
2469         * tree.c (build_one_cst): New function.
2470         * tree-ssa-math-opts.c (get_constant_one): Remove.
2471         (insert_reciprocals): Use build_one_cst.
2472         * fold-const.c (fold_plusminus_mult): Likewise.
2473
2474 2006-07-07  Roger Sayle  <roger@eyesopen.com>
2475
2476         * pointer-set.c (pointer_set_destroy): Correct whitespace.
2477         * cfgloopanal.c (dump_graph): Likewise.
2478         * dojump.c (discard_pending_stack_adjust): Likewise.
2479         * fix-header.c (TARGET_EXTRA_INCLUDE, TARGET_EXTRA_PRE_INCLUDES):
2480         Likewise.
2481         * alloc-pool.c (dump_alloc_pool_statistics): Likewise.
2482         * function.c (finalize_block_changes): Likewise.
2483         * gcc-common.c (ggc_free_overhead, dump_gcc_loc_statistics): Likewise.
2484         * tree-ssa-dce.c (clear_control_dependence_bitmap): Likewise.
2485         * rtl.c (dump_rtx_statistics): Likewise.
2486         * tree-ssa-structalias.c (sort_fieldstack, init_alias_heapvars):
2487         Likewise.
2488         * varray.c (dump_varray_statistics): Likewise.
2489         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
2490         decode_decimal64, encode_decimal128, decode_decimal128,
2491         decimal_real_to_decimal): Likewise.
2492
2493 2006-07-07  Richard Guenther  <rguenther@suse.de>
2494
2495         PR tree-optimization/28187
2496         * tree-vrp.c (vrp_operand_equal_p): New function.
2497         (vrp_bitmap_equal_p): Likewise.
2498         (update_value_range): Use them to compare old and new
2499         max and min values.
2500
2501 2006-07-06  Roger Sayle  <roger@eyesopen.com>
2502
2503         * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Add
2504         a default case to switch statement to silence compiler warnings.
2505
2506 2006-07-06  Roger Sayle  <roger@eyesopen.com>
2507
2508         PR target/27968
2509         * configure.ac (HAVE_AS_IX86_FFREEP): On x86 targets check whether
2510         the configured assembler supports the x87's ffreep mnemonic.
2511         * configure: Regenerate.
2512         * config.in: Regenerate.
2513
2514         * config/i386/i386.c (output_387_ffreep): New function.
2515         (output_fp_compare): Use output_387_ffreep to emit ffreep insns.
2516         (output_387_reg_move): Likewise.
2517
2518 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2519
2520         Port to hosts whose 'sort' and 'tail' implementations
2521         treat operands with leading '+' as file names, as POSIX
2522         has required since 2001.  However, make sure the code still
2523         works on pre-POSIX hosts.
2524         * Makefile.in (slowcompare): Port to POSIX 1003.1-2001,
2525         which says you should use "tail -c +N" rather than "tail +Nc".
2526         Fix a bug: the old code incorrectly skipped 15 bytes, not 16.
2527
2528 2006-07-06  Zdenek Dvorak <dvorakz@suse.cz>
2529
2530         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Fix typo in
2531         argument name.
2532
2533 2006-07-06  David Edelsohn  <edelsohn@gnu.org>
2534
2535         PR target/28150
2536         * config/rs6000/rs6000.c (rs6000_legitimate_address): Do not allow
2537         PRE_{INC,DEC} of TFmode.
2538
2539 2006-07-06  David Edelsohn  <edelsohn@gnu.org>
2540             Alan Modra  <amodra@bigpond.net.au>
2541
2542         PR target/28170
2543         * config/rs6000/rs6000.c (insvdi_rshift_rlwimi_p): Correct shiftop
2544         bounds. Simplify.
2545
2546 2006-07-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2547
2548         PR target/28285
2549         * config/alpha/predicates.md (alpha_swapped_comparison_operator):
2550         Remove duplicate gtu.
2551
2552 2006-07-05  Jason Merrill  <jason@redhat.com>
2553
2554         PR c++/13983
2555         PR c++/17519
2556         * stor-layout.c (finish_record_layout): Copy TYPE_PACKED to variants.
2557         * c-common.c (handle_packed_attribute): So don't copy it here.
2558         * c-decl.c (finish_struct): Don't copy TYPE_ALIGN.
2559
2560 2006-07-05  Mike Stump  <mrs@apple.com>
2561
2562         * doc/invoke.texi (Invoking G++): Clarify prose for g++.
2563
2564 2006-07-05  H.J. Lu  <hongjiu.lu@intel.com>
2565
2566         PR target/26146
2567         * config.gcc: Check with_cpu for i[34567]86--*-solaris2.1[0-9]*.
2568
2569 2006-07-05  Richard Guenther  <rguenther@suse.de>
2570
2571         PR target/28158
2572         * config/i386/i386.md (*negdf2_1): Restrict pattern to
2573         TARGET_SSE2 targets if using SSE math.
2574         (*absdf2_1): Likewise.
2575
2576 2006-07-05  Richard Guenther  <rguenther@suse.de>
2577
2578         PR tree-optimization/28162
2579         * fold-const.c (fold_binary): For (-A) * (-B) -> A * B
2580         make sure to convert the operands to the correct type.
2581
2582 2006-07-04  Paolo Bonzini  <bonzini@gnu.org>
2583
2584         PR tree-optimization/28218
2585
2586         * tree-ssa-math-opts.c (execute_cse_reciprocals): Fix calls
2587         to calculate and free the dominator information.
2588
2589 2006-07-04  Peter O'Gorman  <peter@pogma.com>
2590
2591         * mklibgcc.in: chmod 644 before ranlib during install.
2592
2593 2006-07-04  Andrew Stubbs <andrew.stubbs@st.com>
2594             J"orn Rennecke <joern.rennecke@st.com>
2595
2596         * configure.ac (.eh_frame data check): Use diff -b.
2597
2598 2006-07-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2599
2600         PR bootstrap/18058
2601         * Makefile.in (BUILD_RTL): Add build/vec.o.
2602         (build/gencondmd.o): Filter out -fkeep-inline-functions.
2603         (build/genextract): Delete.
2604         (build/genautomata): Likewise.
2605
2606 2006-07-04  Alan Modra  <amodra@bigpond.net.au>
2607
2608         PR target/28207
2609         * config/rs6000/rs6000.c (function_arg_boundary): Double-word align
2610         128-bit IBM long doubles for ABI_V4.
2611
2612 2006-07-03  Eric Botcazou  <ebotcazou@adacore.com>
2613
2614         * tree.c (range_in_array_bounds_p): New predicate.
2615         * tree.h (range_in_array_bounds_p): Declare it.
2616         * tree-eh.c (tree_could_trap_p) <ARRAY_RANGE_REF>: Use it to
2617         return a less conservative answer.
2618         * tree-sra.c (struct sra_elt): Add new pointer field 'groups'
2619         and flag 'is_group'.
2620         (IS_ELEMENT_FOR_GROUP): New macro.
2621         (FOR_EACH_ACTUAL_CHILD): Likewise.
2622         (next_child_for_group): New helper function.
2623         (can_completely_scalarize_p): Take into account groups.
2624         (sra_hash_tree): Handle RANGE_EXPR.
2625         (sra_elt_eq): Likewise.
2626         (lookup_element): Be prepared for handling groups.
2627         (is_valid_const_index): Delete.
2628         (maybe_lookup_element_for_expr) <ARRAY_REF>: Use in_array_bounds_p
2629         instead of is_valid_const_index.
2630         <ARRAY_RANGE_REF>: New case.
2631         (sra_walk_expr) <ARRAY_REF>: Use in_array_bounds_p instead of
2632         is_valid_const_index.
2633         <ARRAY_RANGE_REF>: Do not unconditionally punt.
2634         (scan_dump): Dump info for groups too.
2635         (decide_instantiation_1): Likewise.
2636         (decide_block_copy): Assert that the element is not a group.
2637         Propagate decision to groups.
2638         (generate_one_element_ref): Handle RANGE_EXPR.
2639         (mark_no_warning): Iterate over actual childs.
2640         (generate_copy_inout): Likewise.
2641         (generate_element_copy): Likewise.
2642         (generate_element_zero): Likewise.
2643         (generate_element_init_1): Likewise.
2644         (dump_sra_elt_name): Handle RANGE_EXPR.
2645
2646 2006-07-03  Roger Sayle  <roger@eyesopen.com>
2647
2648         PR tree-optimization/26251
2649         * tree-ssa-threadupdate.c (redirection_block_p): New function.
2650         (thread_block): When optimizing for size refuse to thread jumps
2651         that would require duplication of blocks other than redirection
2652         blocks.
2653
2654 2006-07-03  Paolo Bonzini  <bonzini@gnu.org>
2655
2656         * configure.ac: Fix thinko in previous check-in.
2657         * configure: Regenerate.
2658
2659 2006-07-03  Paolo Bonzini  <bonzini@gnu.org>
2660
2661         PR other/27063
2662         * configure.ac (for lang...): Simplify nesting of conditionals.
2663         Test subdir_requires for non-enabled languages.  Move processing
2664         of lang_opt_files and lang_tree_fiels below that test.
2665         * configure: Regenerate.
2666         * doc/sourcebuild.texi (Front End Config): Document subdir_requires.
2667
2668 2006-07-01  Martin Michlmayr  <tbm@cyrius.com>
2669
2670         * doc/gcov.texi (Invoking Gcov): Add a missing word.
2671
2672 2006-06-30  Kazu Hirata  <kazu@codesourcery.com>
2673
2674         * cfgexpand.c, config/i386/i386.c, genpreds.c, tree-cfg.c: Fix
2675         comment typos.
2676
2677 2006-06-29  Jason Merrill  <jason@redhat.com>
2678
2679         PR c++/26905
2680         PR c++/26612
2681         PR c++/27000
2682         PR c++/26984
2683         PR c++/19134
2684         * tree.c (build_decl_stat): Don't hande #pragma visibility here.
2685         * c-common.c (c_determine_visibility): Handle it here.
2686         * c-decl.c (finish_decl): Call c_determine_visibility for
2687         functions, too.
2688         * flags.h (enum symbol_visibility): Sort from most to least visibility.
2689         * tree.h: Likewise.
2690         * varasm.c (default_assemble_visibility): Likewise.
2691         * c-common.c (handle_visibility_attribute): Complain about trying
2692         to give visibility to an already defined class, or trying to change
2693         declared visibility. Always attach the attribute.
2694
2695         PR c++/26905
2696         PR c++/21675
2697         PR c++/17470
2698         * attribs.c (decl_attributes): Ignore type-in-place attributes
2699         once the type has been defined.
2700
2701 2006-06-29  Roger Sayle  <roger@eyesopen.com>
2702
2703         PR middle-end/27428
2704         * c-lex.c (c_lex_with_flags) <CPP_N_INVALID>: Increment errorcount
2705         to indicate the cpplib has issued an error message for us.
2706
2707 2006-06-29  Asher Langton  <langton2@llnl.gov>
2708
2709         PR target/25765
2710         * config/i386/i386.c (ix86_output_function_epilogue): Don't
2711         insert a label at the end of an function under Mach-O.
2712
2713 2006-06-29  Eric Christopher  <echristo@apple.com>
2714             Evan Cheng  <evan.cheng@apple.com>
2715
2716         * predicates.md (vector_all_ones_operand): New.
2717         (nonimmediate_or_sse_const_operand): Ditto.
2718         * config/i386/i386-protos.h (standard_sse_constant_opcode): Declare.
2719         * config/i386/i386.c (standard_sse_constant_opcode): Define.
2720         (standard_sse_mode_p): Ditto.
2721         (standard_sse_constant_p): Add case for -1 vector.
2722         (ix86_expand_vector_move): Try to use.
2723         * sse.md (*mov<mode>_internal): Use nonimmediate_or_sse_const_operand.
2724         Call standard_sse_constant_opcode.
2725         (*movv4sf_internal): Ditto.
2726         (*movv2df_internal): Ditto.
2727
2728 2006-06-29  Roger Sayle  <roger@eyesopen.com>
2729
2730         * genpreds.c (write_match_code_switch): Correctly use XSTR instead
2731         of XEXP to extract the operands of a MATCH_CODE rtx.
2732
2733 2006-06-28  Andrew Pinski  <pinskia@gmail.com>
2734
2735         * tree.c (tree_size): Do not waste tail padding in
2736         struct tree_string and make the size be the same as
2737         build_string will generate.
2738
2739 2006-06-28  Jason Merrill  <jason@redhat.com>
2740
2741         PR c++/27768
2742         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
2743         may_aliases already in the tag's annotations to the bitmap.
2744
2745 2006-06-28  Roger Sayle  <roger@eyesopen.com>
2746
2747         * genpreds.c (write_predicate_stmts) <IOR>: Add missing break.
2748
2749 2006-06-28  Roger Sayle  <roger@eyesopen.com>
2750
2751         * genpreds.c (generate_switch_p): New function.
2752         (add_mode_tests): Push the new mode test down inside an AND expr
2753         if this allows the switch-suitable MATCH_CODE to be near the root.
2754         (write_match_code_switch): New function to write a MATCH_CODE as
2755         a switch statement.
2756         (write_predicate_stmts): New function to write a predicate RTX
2757         expression as a sequence of statements.
2758         (write_one_predicate_function): Use write_predicate_stmts.
2759         (write_tm_constrs_h): Likewise.
2760
2761 2006-06-26  Fred Fish  <fnf@specifix.com>
2762
2763         * config/mips/t-sb1: New file.
2764         * config.gcc (mipsisa64sb1-*-elf*): Add mips/t-sb1 to
2765         tmake_file list.
2766
2767 2006-06-26  DJ Delorie  <dj@redhat.com>
2768
2769         * config/m32c/m32c.c (m32c_print_operand): Fix sign-merging logic.
2770
2771 2006-06-26  Naveen H.S  <naveenh@kpitcummins.com>
2772             Jayant Sonar  <jayants@kpitcummins.com>
2773             Jaydeep Vipradas  <jaydeepv@kpitcummins.com>
2774
2775         * config/m32c/addsub.md (addsi3, addsi3_1, addsi3_2): New.
2776         (subsi3, subsi3_1, subsi3_2): New.
2777         * config/m32c/bitops.md (andsi3, iorsi3, xorsi3): New.
2778         * config/m32c/mov.md (SI mov peephole): New.
2779         * config/m32c/m32.c (m32c_immd_dbl_mov): New.
2780         * config/m32c/m32c-protos.h (m32c_immd_dbl_mov): New.
2781
2782 2006-06-26  Olivier Hainque  <hainque@adacore.com>
2783
2784         * function.c (aggregate_value_p): Honor DECL_BY_REFERENCE on
2785         a CALL_EXPR target function declaration.
2786
2787 2006-06-26  Richard Guenther  <rguenther@suse.de>
2788
2789         * tree.c (build_string): Do not waste tail padding in
2790         struct tree_string.
2791
2792 2006-06-26  Richard Guenther  <rguenther@suse.de>
2793
2794         * ggc-page.c (init_ggc): Add missing element to size_lookup
2795         table.
2796
2797         Revert
2798         2006-06-23  Richard Guenther  <rguenther@suse.de>
2799
2800         * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
2801         sizes to MAX_ALIGNMENT.  Fix the size_lookup table to honour
2802         alignment requests instead.  Add verification code.
2803         Add struct tree_function_decl and struct tree_binfo size to
2804         extra_order_size_table.  Add missing element to size_lookup
2805         table.
2806
2807 2006-06-25  Eric Botcazou  <ebotcazou@adacore.com>
2808
2809         PR middle-end/28151
2810         * fold-const.c (const_binop): Be prepared for self returning zero.
2811         Simplify code handling complex values.
2812
2813 2006-06-24  Olivier Hainque  <hainque@adacore.com>
2814
2815         * gimplify.c (gimplify_scalar_mode_aggregate_compare): New function.
2816         (gimplify_expr): Use it for tcc_comparison of operands of non BLKmode
2817         aggregate types.
2818
2819 2006-06-24  Olivier Hainque  <hainque@adacore.com>
2820
2821         * tree-ssa-loop-im.c (for_each_index): Handle ARRAY_RANGE_REF as
2822         ARRAY_REF, so have the callback called for the low bound expression.
2823
2824 2006-06-23  Janis Johnson  <janis187@us.ibm.com>
2825
2826         * tree.h (DECIMAL_FLOAT_TYPE_P): New.
2827         * c-typeck.c (c_common_type): Disallow operations on decimal float
2828         types and other float types.
2829         * convert.c (convert_to_real): Don't ignore conversions involving
2830         decimal float types.
2831
2832 2006-06-23  Olivier Hainque  <hainque@adacore.com>
2833
2834         * tree.c (max_int_size_in_bytes): New function, inspired from
2835         code in function.c:assign_temp.
2836         * tree.h (max_int_size_in_bytes): Declare.
2837         * function.c (assign_temp): Use it.
2838         * gimplify.c (create_tmp_var): Relax the assertions on the type
2839         properties, not mandating constant size any more.
2840         (force_constant_size): New static function.
2841         (gimple_add_tmp_var): Use it, forcing variable size to a
2842         constant upper bound if it is not constant on entry.
2843
2844 2006-06-23  Danny Smith   <dannysmith@users.sourceforge.net>
2845
2846         PR target/27789
2847         * config/i386/winnt.c (ix86_handle_selectany_attribute): Move check
2848         for initialization and setting of one_only flag to ...
2849         (i386_pe_encode_section_info): ...here.
2850         (i386_pe_dllimport_p): Check for DECL_DLLIMPORT_P also.
2851         Recheck that the symbol has not been defined.
2852
2853 2006-06-23  Richard Guenther  <rguenther@suse.de>
2854
2855         * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
2856         sizes to MAX_ALIGNMENT.  Fix the size_lookup table to honour
2857         alignment requests instead.  Add verification code.
2858         Add struct tree_function_decl and struct tree_binfo size to
2859         extra_order_size_table.  Add missing element to size_lookup
2860         table.
2861
2862 2006-06-22  Roger Sayle  <roger@eyesopen.com>
2863             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2864
2865         PR middle-end/28131
2866         * expr.c (expand_expr_real_1) <VECTOR_CST>: Check whether the
2867         call to lang_hooks.types.type_for_mode returned NULL_TREE.
2868
2869 2006-06-23  Ben Elliston  <bje@au.ibm.com>
2870
2871         * dfp.c (decimal_to_decnumber): Do not use decNumberNegate to
2872         negate dn -- manipulate it directly.
2873
2874 2006-06-22  Roger Sayle  <roger@eyesopen.com>
2875             Steven Bosscher  <stevenb.gcc@gmail.com>
2876
2877         PR target/27531
2878         * reload1.c (gen_reload): Call mark_jump_label on the new insns
2879         generated by gen_move_insn to add REG_LABEL notes if necessary.
2880
2881 2006-06-22  Bob Wilson  <bob.wilson@acm.org>
2882
2883         * config/xtensa/lib1funcs.asm (MIN_ESA): Delete.
2884         (leaf_entry): Remove use of MIN_ESA.
2885
2886 2006-06-22  Zdenek Dvorak <dvorakz@suse.cz>
2887
2888         PR rtl-optimization/28121
2889         * cfgexpand.c (tree_expand_cfg): Clean EDGE_EXECUTABLE flag from
2890         the entry edge.
2891
2892 2006-06-21  DJ Delorie  <dj@redhat.com>
2893
2894         * config/m32c/muldiv.md (mulhisi3_i): Only use registers for dest
2895         (TN-16C-A156A/E).
2896         (mulhisi3_r): Likewise.
2897
2898 2006-06-21  Richard Sandiford  <richard@codesourcery.com>
2899
2900         PR middle-end/28034
2901         * coverage.c (coverage_counter_alloc): Leave the index type
2902         unspecified.
2903         (coverage_counter_alloc): Use null arguments for operands 2 and 3
2904         of the ARRAY_REF.
2905
2906 2006-06-21  Andrew Pinski  <pinskia@physics.uc.edu>
2907
2908         * doc/invoke.texi (-fopenmp) Move to "Options Controlling C Dialect"
2909         section from the "Options for Code Generation Conventions".
2910
2911 2006-06-21  Richard Henderson  <rth@redhat.com>
2912
2913         PR target/26347
2914         PR target/27082
2915         * config/alpha/predicates.md (small_symbolic_operand): Deny weak
2916         symbols.
2917         (global_symbolic_operand): Allow weak symbols, even if local_p.
2918
2919 2006-06-21  Eric Botcazou  <ebotcazou@adacore.com>
2920
2921         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): New function.
2922         (find_interesting_uses_address): Punt if above function returns true.
2923
2924 2006-06-21  Richard Guenther  <rguenther@suse.de>
2925
2926         * configure: Regenerated.
2927
2928 2006-06-21  Joseph Myers  <joseph@codesourcery.com>
2929
2930         * config/mips/mips.c (function_arg): Where one part of a
2931         complex argument is in registers and the other part in the stack,
2932         return a REG not a PARALLEL.
2933
2934 2006-06-21  Mark Mitchell  <mark@codesourcery.com>
2935
2936         * configure.ac: Set gcc_gxx_include_dir to $target/include/c++
2937         when cross-compiling.  Do not substitute libstdcxx_incdir.
2938         * configure: Regenerated.
2939
2940 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
2941
2942         * varasm.c (mergeable_string_section): Check for embedded NULs and
2943         NUL termination in the first int_size_in_bytes (TREE_TYPE (decl))
2944         rather than TREE_STRING_LENGTH bytes.
2945
2946 2006-06-21  Richard Guenther  <rguenther@suse.de>
2947
2948         * ggc-page.c (extra_order_size_table): Add var_ann_d,
2949         tree_ssa_name, bitmap_element and phi_node with 4 arguments
2950         sizes.
2951
2952 2006-06-21  Richrad Guenther  <rguenther@suse.de>
2953
2954         * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
2955         Limit iteration over the dominators.
2956
2957 2006-06-20  Roger Sayle  <roger@eyesopen.com>
2958
2959         * config/mips/iris6.h (LIB_SPEC): Add support for -pthread.
2960         (SUBTARGET_CPP_SPEC): Define _REENTERANT if -pthread specified.
2961
2962 2006-06-20  Richard Guenther  <rguenther@suse.de>
2963         Michael Matz  <matz@suse.de>
2964
2965         * alloc-pool.h (free_alloc_pool_if_empty): Prototype new
2966         function.
2967         * alloc-pool.c (free_alloc_pool_if_empty): New function.
2968         * et-forest.h (et_free_pools): Prototype new function.
2969         * et-forest.c (et_free_tree_force): Free parent occurrence.
2970         (et_free_pools): New function.
2971         * dominance.c (free_dominance_info): Free et-forest alloc
2972         pools.
2973
2974 2006-06-20  Roger Sayle  <roger@eyesopen.com>
2975
2976         * expr.c (expand_expr_real_1) <VECTOR_CST>: For vector constants with
2977         integer modes, attempt to directly construct an integer constant.
2978
2979         * fold-const.c (native_encode_vector): Determine the size of each
2980         element from the vector type instead of the first vector element.
2981
2982         * tree.c (build_constructor_single): Mark a CONSTRUCTOR as constant,
2983         if all of its elements/components are constant.
2984         (build_constructor_from_list): Likewise.
2985
2986 2006-06-20  Zdenek Dvorak <dvorakz@suse.cz>
2987
2988         PR tree-optimization/27331
2989         * tree-data-ref.c (free_data_ref): New function.
2990         (create_data_ref): Fail if the data reference has unknown access
2991         function.
2992         (free_data_refs): Use free_data_ref.
2993
2994 2006-06-19  Andrew Pinski  <pinskia@gmail.com>
2995
2996         PR middle-end/28075
2997         * tree-inline.c (setup_one_parameter): Strip useless
2998         type conversion before adding it to the IR.
2999         (declare_return_variable): Likewise.
3000
3001 2006-06-19  Martin Michlmayr  <tbm@cyrius.com>
3002
3003         PR c/27149
3004         * c-common.c (c_common_truthvalue_conversion): Fix grammar in warning.
3005
3006 2006-06-19  Mike Stump  <mrs@apple.com>
3007
3008         * tree.c (variably_modified_type_p): VM arguments don't make the
3009         type a VM type.
3010
3011 2006-06-19  Richard Guenther  <rguenther@suse.de>
3012
3013         * tree-ssa-pre.c (try_combine_conversion): Strip useless
3014         type conversions after folding.
3015
3016 2006-06-19  Richard Guenther  <rguenther@suse.de>
3017
3018         * ggc-page.c (extra_order_size_tab): Add entries with
3019         size of struct function and basic_block.
3020         (size_lookup): Extend to cover sizes up to 511.
3021         (ggc_alloc_stat): Adjust user.
3022         (ggc_pch_count_object): Likewise.
3023         (ggc_pch_alloc_object): Likewise.
3024         (ggc_pch_write_object): Likewise.
3025
3026 2006-06-19  Zdenek Dvorak <dvorakz@suse.cz>
3027
3028         * tree-ssa-loop-niter.c (implies_ge_p): New function.
3029         (derive_constant_upper_bound): Handle OP0 - CST in unsigned types
3030         correctly.
3031
3032 2006-06-19  Denis Chertykov  <denisc@overta.ru>
3033
3034         * config/avr/libgcc.S : Correct my wrong previous commit.
3035
3036 2006-06-19  Roger Sayle  <roger@eyesopen.com>
3037
3038         PR target/27861
3039         * expmed.c (expand_shift): On SHIFT_COUNT_TRUNCATED targets, we may
3040         have stripped a SUBREG from the shift count, so we may need to
3041         convert_to_mode back to the type's mode before calling make_tree.
3042         Use new_amount instead of amount to avoid expanding a tree twice.
3043
3044 2006-06-19  Richard Guenther  <rguenther@suse.de>
3045
3046         PR middle-end/28045
3047         * fold-const.c (operand_equal_p): Check if the argument types
3048         have the same precision before stripping NOPs.
3049
3050 2006-06-19  Daniel Berlin  <dberlin@dberlin.org>
3051
3052         Fix PR tree-optimization/27341
3053         * tree-cfg.c (gimplify_val): Call mark_new_vars_to_rename on the
3054         statement we get.
3055         * tree-complex.c (pass_lower_complex): Update SMT usage.
3056
3057 2006-06-19  Andreas Krebbel  <krebbel1@de.ibm.com>
3058
3059         * config/s390/s390.md ("doloop_si64", "doloop_si31", "doloop_di"):
3060         Add a new alternative to the constraint strings. Add move of
3061         operand 1 to 3 to the splitter definition.
3062         ("doloop_si_long"): Second contraint alternative removed.
3063
3064 2006-06-08  Anatoly Sokolov <aesok@post.ru>
3065
3066         * config/avr/avr.h (avr_have_movw_lpmx_p): Declare.
3067         (TARGET_CPU_CPP_BUILTINS): Add __AVR_HAVE_MOVW__ and
3068         __AVR_HAVE_LPMX__.
3069         (AVR_HAVE_MOVW) Define.
3070         (ASSEMBLER_DIALECT): Use AVR_HAVE_MOVW.
3071         (ASM_SPEC): Add avr25.
3072         (LINK_SPEC): Add avr25.
3073         * config/avr/avr.c (avr_have_movw_lpmx_p): Add.
3074         (base_arch_s): Add new member 'have_movw_lpmx'.
3075         (avr_arch_types): Init 'have_movw_lpmx'.
3076         (avr_mcu_types): Add 'avr25'. Move attiny13, attiny2313, attiny24,
3077         attiny44, attiny84, attiny25, attiny45, attiny85, attiny261,
3078         attiny461, attiny861 and at86rf401 in 'avr25' arhitecture.
3079         (avr_override_options): Init 'avr_have_movw_lpmx_p'.
3080         (output_movhi, output_movsisf, ashlsi3_out, avr_rtx_costs): Use
3081         AVR_HAVE_MOVW.
3082         (avr_file_start): Do not output '.arh' derective.
3083         * config/avr/libgcc.S (mov_l): Use __AVR_HAVE_MOVW__.
3084         (__do_copy_data): Use __AVR_HAVE_LPMX__.
3085         * config/avr/avr.md (mcu_enhanced): Delete.
3086         (mcu_have_movw): Define.
3087         (negsi2, extendhisi2, zero_extendhisi2): Use 'mcu_have_movw'.
3088         (call_insn, call_value_insn): Use 'call_insn' and __AVR_HAVE_MOVW__.
3089         * config/avr/t-avr(MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add avr25.
3090         (MULTILIB_MATCHES): Add attiny13, attiny2313, attiny24, attiny44,
3091         attiny84, attiny25, attiny45, attiny85, attiny261, attiny461,
3092         attiny861 and at86rf401 devices.
3093
3094 2006-06-18  Jie Zhang  <jie.zhang@analog.com>
3095
3096         * config/bfin/bfin.c (MAX_LOOP_LENGTH): Define to be 2042 instead
3097         of 4096.
3098
3099 2006-06-17  Karl Berry  <karl@gnu.org>
3100
3101         * doc/cpp.texi, doc/cppinternals.texi, doc/gcc.texi,
3102         doc/gccint.texi, doc/install.texi (@dircategory): Use
3103         "Software development" instead of "Programming", following
3104         the Free Software Directory.
3105
3106 2006-06-17  Alexandre Oliva  <aoliva@redhat.com>
3107
3108         * config/i386/i386.c (legitimate_tls_address)
3109         <TARGET_GNU2_TLS>: Add tp after DTPOFF.
3110         * config/i386/i386.md (*tls_dynamic_gnu2_combine_32): Adjust.
3111         (*tls_dynamic_gnu2_combine_64): Likewise.
3112
3113 2006-06-16  Richard Guenther  <rguenther@suse.de>
3114
3115         PR middle-end/27116
3116         * fold-const.c (negate_expr_p): Do not introduce undefined
3117         overflow in negating INTEGER_CSTs.
3118         (fold_negate_expr): Rename from negate_expr.  Revert last
3119         change for folding BIT_NOT_EXPR.  Change semantics to
3120         return NULL_TREE for non-simplified negations.  Do not
3121         strip type conversions and unify type handling.
3122         (negate_expr): New function, wrap around fold_negate_expr
3123         but ensure building a tree always.  Strip type conversions
3124         here, fold to result type.
3125         (fold_unary): Use fold_negate_expr for folding NEGATE_EXPR.
3126
3127 2006-06-16  Roger Sayle  <roger@eyesopen.com>
3128
3129         PR middle-end/27802
3130         * reg-stack.c (subst_stack_regs): Handle noreturn function calls
3131         that (would) return their results in stack registers.
3132
3133 2006-06-16  Michael Matz  <matz@suse.de>
3134         Richard Guenther  <rguenther@suse.de>
3135
3136         * fold-const.c (fold_truthop): Only return new tree node if
3137         we canonicalized something.
3138
3139 2006-06-16  Richard Guenther  <rguenther@suse.de>
3140
3141         * function.h (enum function_frequency): Move declaration
3142         out of struct function.
3143         (struct function): Move bool fields and the enum to the bitfield
3144         section.  Reorder elements to avoid padding.  Remove unused
3145         fields left over from the RTL inliner removal.
3146         * function.c (free_after_compilation): Do not zero removed fields.
3147         * Makefile.in (ipa-reference.o): Add $(FUNCTION_H) dependency.
3148         (ipa-type-escape.o): Likewise.
3149
3150 2006-06-16  Richard Guenther  <rguenther@suse.de>
3151
3152         * cgraph.h (struct cgraph_local_info): Turn bool elements
3153         into a bitfield.
3154         (struct cgraph_node): Likewise.
3155         (struct cgraph_varpool_node): Likewise.
3156
3157 2006-06-15  Richard Guenther  <rguenther@suse.de>
3158
3159         * fold-const.c (fold_truth_not_expr): Rename from
3160         invert_truthvalue.  Give it fold_* semantics to avoid
3161         generating garbage.
3162         (invert_truthvalue): New function.  Wrapper around
3163         fold_truth_not_expr.
3164         (optimize_minmax_comparison): Avoid creating garbage.
3165         (fold_unary): Use fold_truth_not_expr for folding
3166         TRUTH_NOT_EXPR.
3167         (fold_ternary): Replace uses of invert_truthvalue with
3168         fold_truth_not_expr where applicable.
3169         * tree.h (fold_truth_not_expr): Prototype.
3170
3171 2006-06-16  Richard Guenther  <rguenther@suse.de>
3172
3173         PR tree-optimization/27781
3174         * Makefile.in (ipa-pure-const.o): Add $(TARGET_H) dependency.
3175         * ipa-pure-const.c (target.h): Include.
3176         (analyze_function): Do not analyze functions that do not
3177         bind locally.
3178
3179 2006-06-15  Andrew MacLeod  <amacleod@redhat.com>
3180
3181         PR middle-end/27793
3182         * tree-dfa.c (referenced_vars_dup_list): Remove.
3183         (find_referenced_vars): Remove assert.
3184         (referenced_var_check_and_insert): Replace dup list with assert.
3185         * tree-ssa.c (delete_tree_ssa): Remove dup list processing.
3186         * tree-flow.h (referenced_vars_dup_list): Remove extern decl.
3187
3188 2006-06-15  Richard Guenther  <rguenther@suse.de>
3189
3190         * tree-ssa-structalias.c (alias_get_name): Avoid creating
3191         extra unused identifiers if not dumping.
3192         (create_variable_info_for): Likewise.
3193
3194 2006-06-15  Zdenek Dvorak <dvorakz@suse.cz>
3195
3196         * tree-ssa-loop-niter.c (implies_nonnegative_p): New function.
3197         (derive_constant_upper_bound): Derive more precise upper bound in
3198         common cases.  Return type changed to double_int.
3199         (record_estimate): Reflect the changed return type of
3200         derive_constant_upper_bound.
3201         * double-int.c (double_int_zext, double_int_sext): Fix.
3202
3203 2006-06-15  Paolo Bonzini  <bonzini@gnu.org>
3204
3205         * configure.ac (CFLAGS): Get them from the toplevel or from the
3206         configure invocation.
3207         * configure: Regenerate.
3208         * Makefile.in (CFLAGS): Substitute value provided by configure.
3209
3210 2006-06-14  Mark Mitchell  <mark@codesourcery.com>
3211
3212         PR c++/26559
3213         * c-common.h (c_finish_omp_atomic): Adjust declaration.
3214         * c-omp.c (c_finish_omp_atomic): Return the expression to perform,
3215         rather than calling add_stmt on it.
3216         * c-parser.c (c_parser_omp_atomic): Adjust accordingly.
3217
3218 2006-06-14  Andreas Krebbel  <krebbel1@de.ibm.com>
3219
3220         PR middle-end/27959
3221         * reload1.c (reload): Remove registers returned by update_eliminables
3222         from used_spill_regs.
3223
3224 2006-06-13  DJ Delorie  <dj@redhat.com>
3225
3226         * config/m32c/muldiv.md (mulpsi3): Expect arbitrary constants.
3227
3228 2006-06-13  Carlos O'Donell  <carlos@codesourcery.com>
3229
3230         * Makefile.in: Define HTMLS_BUILD, HTMLS_INSTALL,
3231         html__strip_dir, html__mkdir_p. Enhance install-html target.
3232         * configure.ac: AC_SUBST datarootdir, docdir and htmldir.
3233         * configure: Regenerate.
3234
3235 2006-06-13  Fariborz Jahanian <fjahanian@apple.com>
3236
3237         * fold-const.c (fold_cond_expr_with_comparison): Check for
3238         Objective-C++ as language in deciding COND_EXPR transformation.
3239
3240 2006-06-06  J"orn Rennecke <joern.rennecke@st.com>
3241
3242         PR target/28014:
3243         * config/sh/t-sh (LIB1ASMFUNCS): Add _udiv_qrnnd16
3244         * config/sh/sh.c (print_operand): Add !SHMEDIA functionality to 'M'.
3245         * config/sh/lib1funcs.h (SL, SL1): Define.
3246         * config/sh/lib1funcs.asm (__udiv_qrnnd16): New hidden function.
3247         * longlong.h (__sh__): Define umul_ppmm, udiv_qrnnd and sub_ddmmss.
3248         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): New rule.
3249         (OBJS_Os_4_200): New variable.
3250         ($(T)libgcc-Os-4-200.a): Use it.
3251         * sh.md (udivsi3): For TARGET_DIVIDE_CALL_TABLE, avoid function call
3252         when dividing 1 and/or by 0.
3253
3254 2006-06-13  Roger Sayle  <roger@eyesopen.com>
3255
3256         * configure.ac (HAS_MCONTEXT_T_UNDERSCORES): Include <sys/signal.h>
3257         before <ucontext.h> to define sigset_t required by <sys/ucontext.h>.
3258         * configure: Regenerate.
3259
3260 2006-06-13  Jie Zhang  <jie.zhang@analog.com>
3261
3262         * config/bfin/bfin.c (bfin_reorg_loops): Only call recog_memoized ()
3263         for real instruction.
3264
3265 2006-06-13  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
3266
3267         PR middle-end/26807
3268         * haifa-sched.c (check_cfg): Handle special case.
3269
3270 2006-06-13  Eric Botcazou  <ebotcazou@adacore.com>
3271
3272         PR debug/26754
3273         * gimplify.c (declare_tmp_vars): Rename into declare_vars.
3274         Add debug_info parameter.  Chain the vars to the BLOCK instead
3275         of the BIND_EXPR if debug info are requested for them.
3276         (pop_gimplify_context): Adjust for above change.
3277         (gimple_add_tmp_var): Likewise.
3278         * tree-gimple.h (declare_tmp_vars): Rename into declare_vars.
3279         Add bool parameter.
3280         * tree-nested.c (convert_nonlocal_reference): Adjust for above change.
3281         (convert_local_reference): Likewise.
3282         (get_local_debug_decl): Set DECL_IGNORED_P on the original variable.
3283         (finalize_nesting_tree_1): Request that debug info be emitted
3284         for debug_var_chain.
3285
3286 2006-06-13  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
3287
3288         * haifa-sched.c (unlink_other_notes, unlink_line_notes): Fix the patch
3289         for PR target/27863.
3290
3291 2006-06-13  Richard Guenther  <rguenther@suse.de>
3292
3293         PR middle-end/27536
3294         * except.c (output_ttype): Expand type with EXPAND_INITIALIZER.
3295
3296 2006-06-13  Richard Guenther  <rguenther@suse.de>
3297
3298         PR tree-optimization/27830
3299         * tree-inline.c (copy_body_r): For copying the operand
3300         of an ADDR_EXPR make sure to fold &* afterwards.
3301
3302 2006-06-12  Eric Botcazou  <ebotcazou@adacore.com>
3303
3304         * gimplify.c (gimplify_expr): Treat VIEW_CONVERT_EXPR like other
3305         lvalues in the fb_none case with side-effects.
3306
3307 2006-06-12  Kazu Hirata  <kazu@codesourcery.com>
3308
3309         * tree-flow.h: Remove the prototype for
3310         compute_phi_arg_on_exit.
3311         * tree-ssa-loop-ivopts.c (protect_loop_closed_ssa_form_use,
3312         protect_loop_closed_ssa_form, compute_phi_arg_on_exit):
3313         Remove.
3314
3315 2006-06-12  Mark Shinwell  <shinwell@codesourcery.com>
3316
3317         * builtins.c (expand_builtin_return_addr): Only use
3318         frame_pointer_rtx when count == 0 and we are expanding
3319         __builtin_return_address.
3320
3321 2006-06-12  Fred Fish  <fnf@specifix.com>
3322
3323         * config/mips/mips.c (mips_file_start): Create special section
3324         ".gcc_compiled_longXX" for o64 ABI as well as EABI.
3325
3326 2006-06-11  Eric Christopher  <echristo@apple.com>
3327
3328         PR middle-end/27948
3329         * stor-layout.c (place_field): Remove check for
3330         remaining_in_alignment when aligning at the end of a run.
3331
3332 2006-06-11  Eric Christopher  <echristo@apple.com>
3333
3334         PR 27542
3335         * doc/extend.texi (Structure-Packing Pragmas): Document ms_struct
3336         pragma.
3337
3338 2006-06-11  Roger Sayle  <roger@eyesopen.com>
3339
3340         PR target/27858
3341         Revert incorrect fix for PR target/27158
3342         2006-05-08  Roger Sayle  <roger@eyesopen.com>
3343         * reload.c (find_reloads_toplev): Only return the simplified SUBREG
3344         of a reg_equiv_constant if the result is a legitimate constant.
3345
3346 2006-06-11  Roger Sayle  <roger@eyesopen.com>
3347
3348         PR target/27158
3349         * config/rs6000/rs6000.c (const_vector_elt_as_int): New function to
3350         extract a CONST_VECTOR element and interpret it as an integer.
3351         (vspltis_constant): Use const_vector_elt_as_int instead of the
3352         macro CONST_VECTOR_ELT in order to handle FP vector modes.
3353         * config/rs6000/predicates.md (easy_vector_const): Consider
3354         floating point ALTIVEC_VECTOR_MODEs via easy_altivec_constant.
3355
3356 2006-06-11  Kaz Kojima  <kkojima@gcc.gnu.org>
3357
3358         PR middle-end/27942
3359         * stor-layout.c (update_alignment_for_field): Don't add extra
3360         alignment for packed non-bitfield fields in ms_bitfield_layout_p
3361         code.
3362
3363 2006-06-09  Ralf Corsepius  <ralf.corsepius@rtems.org>
3364
3365         * config/mips/t-rtems: Add EL/EB multilib variants.
3366
3367 2006-06-09  Mike Stump  <mrs@apple.com>
3368
3369         * c-typeck.c (c_begin_vm_scope): Fix file_scope processing.
3370
3371 2006-06-09  David Daney  <ddaney@avtrex.com>
3372
3373         * doc/install.texi: Add binutils version recommendation for mips-*-*.
3374
3375 2006-06-09  Andreas Krebbel  <krebbel1@de.ibm.com>
3376
3377         * reload.c (find_reloads): Unset force_reload for 'X' constraint.
3378
3379 2006-06-09  Richard Guenther  <rguenther@suse.de>
3380
3381         PR tree-optimization/26998
3382         * tree-vrp.c (extract_range_from_unary_expr): For NEGATE_EXPR
3383         of signed types, only TYPE_MIN_VALUE is special, but for both,
3384         minimum and maximum value.  Likewise VR_ANTI_RANGE is special
3385         in this case, as is -fwrapv.
3386
3387 2006-06-08  Mike Stump  <mrs@apple.com>
3388
3389         PR target/26427
3390         * config/darwin.c (darwin_asm_output_anchor): Disable
3391         -fsection-anchors on darwin for now.
3392         * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Likewise.
3393         * rs6000/rs6000.c (optimization_options): Likewise.
3394
3395 2006-06-08  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3396
3397         PR target/27421
3398         * config/i386/i386.c (classify_argument): Skip fields with invalid
3399         types in unions.
3400
3401 2006-06-08  Steven Bosscher  <steven@gcc.gnu.org>
3402
3403         * cse.c (flush_hash_table): Use VOIDmode to invalidate a REG.
3404         (cse_insn): Likewise for the stack_pointer_rtx.
3405
3406 2006-06-08  Roger Sayle  <roger@eyesopen.com>
3407
3408         * tree-ssa-dom.c (record_conditions): Only record "unordered"
3409         conditions from floating point comparisons.
3410
3411 2006-06-08  Paolo Bonzini  <bonzini@gnu.org>
3412
3413         PR middle-end/27733
3414         * expmed.c (struct alg_hash_entry): Fix type of field T
3415         to match synth_mult argument.
3416         (NUM_ALG_HASH_ENTRIES): Make it bigger for 64-bit HOST_WIDE_INT.
3417
3418 2006-06-08  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
3419
3420         PR target/27863
3421         * haifa-sched.c (unlink_other_notes, unlink_line_notes): Update basic
3422         block boundaries.
3423
3424 2006-06-08  Richard Guenther  <rguenther@suse.de>
3425
3426         PR middle-end/27116
3427         * fold-const.c (negate_expr_p): We can negate BIT_NOT_EXPR
3428         only, if overflow is defined and not trapping.
3429         (negate_expr): Likewise.
3430
3431 2006-06-07  Zdenek Dvorak <dvorakz@suse.cz>
3432
3433         PR tree-optimization/27872
3434         * tree-ssa-loop-manip.c (tree_unroll_loop): Set EDGE_IRREDUCIBLE_LOOP
3435         flag on the new exit edge of the unrolled loop.
3436
3437 2006-06-07  Zdenek Dvorak <dvorakz@suse.cz>
3438
3439         PR rtl-optimization/26449
3440         * loop-invariant.c (move_invariant_reg): Fail if force_operand fails.
3441
3442 2006-06-07  Andrew MacLeod  <amacleod@redhat.com>
3443
3444         PR middle-end/27793
3445         * tree-dfa.c (referenced_vars_dup_list): New.  List of duplicate
3446         referenced_variables with matching DECL_UID's.
3447         (find_referenced_vars): Make sure duplicate list is empty to start.
3448         (referenced_var_p): Remove.
3449         (referenced_var_check_and_insert): Renamed from referenced_var_insert.
3450         Check if var is in the list, and add if needed.  Update the duplicate
3451         list if a different var is in the list with the same DECL_UID.
3452         (add_referenced_var): Call routine to check and insert.
3453         * tree-ssa.c (delete_tree_ssa): Clear var_ann's on duplicates.
3454         * tree-flow.h (referenced_vars_dup_list): External declaration.
3455
3456 2006-06-07  Fred Fish  <fnf@specifix.com>
3457
3458         * config/mips/t-elf (MULTILIB_MATCHES): Combine two entries
3459         into single entry.
3460
3461 2006-06-07  Paolo Bonzini  <bonzini@gnu.org>
3462
3463         PR target/27390
3464         * reg-stack.c (subst_stack_regs_pat): Reorder resetting of
3465         the imaginary and real parts of a clobbered register.
3466         Emit insn to set the imaginary part.
3467
3468 2006-06-06  Peter Lemieszewski  <lemie@us.ibm.com>
3469
3470         * config/s390/t-tpf (LIB2ADDEH): Include unwind-dw2-fde-glibc.c
3471         in lieu of unwind-dw2-fde.c.
3472
3473 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3474
3475         * config/i386/mingw32.h (GOMP_SELF_SPECS): Define.
3476
3477 2006-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
3478
3479         PR target/27842
3480         * config/rs6000/altivec.md (UNSPEC_VSLW): Remove.
3481         ("altivec_vspltisw_v4sf", "altivec_vslw_v4sf"): Remove.
3482         ("mulv4sf3", "absv4sf3", "negv4sf3"): Adapt users to use
3483         V4SImode temporaries and operations instead.
3484
3485 2006-06-06  Joseph S. Myers  <joseph@codesourcery.com>
3486
3487         * config/mips/t-linux64 (tp-bit.c): Append to tp-bit.c, not
3488         dp-bit.c.
3489
3490 2006-06-06  Mike Stump  <mrs@apple.com>
3491
3492         * Makefile.in: Rename to htmldir to build_htmldir to avoid
3493         installing during build.
3494
3495 2006-06-06  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
3496
3497         * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): Change default
3498         value to 0.
3499         * doc/invoke.texi (max-sched-extend-regions-iters): Document.
3500         * config/ia64/ia64.c (params.h): New header.
3501         (ia64_optimization_options): New function to adjust parameters.
3502         * config/ia64/ia64-protos.h (ia64_optimization_options): New prototype.
3503         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): New macro.
3504         * config/ia64/t-ia64 (ia64.o): Add dependence from params.h .
3505
3506 2006-06-05  Kazu Hirata  <kazu@codesourcery.com>
3507
3508         * stor-layout.c (debug_rli): Fix a typo in a debug message.
3509
3510 2006-06-05  Steve Ellcey  <sje@cup.hp.com>
3511
3512         PR target/27051
3513         * config/ia64/ia64.c (ia64_select_rtx_section): Check TARGET_NO_SDATA.
3514
3515 2006-06-05  Dorit Nuzman  <dorit@il.ibm.com>
3516             Victor Kaplansky  <victork@il.ibm.com>
3517
3518         PR tree-optimization/26360
3519         * tree-vectorizer.c (destroy_loop_vec_info): Remove (dead) pattern
3520         stmts.
3521
3522 2006-06-04  Roger Sayle  <roger@eyesopen.com>
3523             Andrew Pinski  <pinskia@physics.uc.edu>
3524
3525         PR middle-end/27382
3526         * c-common.c (c_common_truthvalue_conversion): Explicitly check
3527         for LA