OSDN Git Service

f28d732f8512fde235a3539537c08b47338256c6
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2007-06-05  Joerg Wunsch  <j.gnu@uriah.heep.sax.de>
2
3         PR preprocessor/23479
4         * doc/extend.texi: Document the 0b-prefixed binary integer
5         constant extension.
6         
7 2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
8
9         PR tree-optimization/32215
10         * tree-vectorizer.c (supportable_widening_operation): Return false
11         for unsupported FIX_TRUNC_EXPR tree code.
12         (supportable_narrowing_operation): Ditto for FLOAT_EXPR tree code.
13
14 2007-06-06  Nathan Froyd  <froydnj@codesourcery.com>
15
16         * config/rs6000/rs6000.h (FIXED_SCRATCH): Use r0 as a scratch
17         register on SPE targets.  Change documentation to reflect
18         reality.
19         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
20         Change FIXED_SCRATCH to 14 and document why we're keeping r14
21         out of the register allocation pool.
22         (rs6000_reg_live_or_pic_offset_p): New function.
23         (rs6000_emit_prologue): Move the actual saving of LR up to free
24         r0 for holding r11.  Split saving of SPE 64-bit registers into
25         its own case.  Ensure that offsets will always be in-range for
26         'evstdd' by using r11 as a scratch register to point at the start
27         of the SPE save area.  Save r11 if necessary, as it is the static
28         chain register.
29         (rs6000_emit_epilogue): Split restoring of SPE 64-bit registers
30         into its own case.  Ensure that offsets will always be in-range
31         for 'evldd' by using r11 as a scratch register to point at the
32         start of the SPE save area.  Also adjust r11 when restoring
33         the stack pointer to compensate for pre-loading r11.
34
35 2007-06-05  Thomas Neumann  <tneumann@users.sourceforge.net>
36
37         * cfg.c (init_flow): Use type safe memory macros.
38         (alloc_block): Likewise.
39         (unchecked_make_edge): Likewise.
40         (dump_flow_info): Avoid using C++ keywords as variable names.
41         (copy_original_table_clear): Cast according to the coding conventions.
42         (copy_original_table_set): Likewise.
43         * cfgexpand (label_rtx_for_bb): Likewise.
44         (expand_gimple_basic_block): Likewise.
45         * cfghooks.c (dump_bb): Likewise.
46         (lv_adjust_loop_header_phi): Avoid using C++ keywords as variable names.
47         (lv_add_condition_to_bb): Likewise.
48         * cfglayout (relink_block_chain): Cast according to the coding
49         conventions.
50         (fixup_reorder_chain): Likewise.
51         (fixup_fallthru_exit_predecessor): Likewise.
52         * cfgloop.c (glb_enum_p): Likewise.
53         (get_exit_description): Likewise.
54         (dump_recorded_exit): Likewise.
55         * cfgloop.h (enum loop_estimation): Move out of struct scope...
56         (struct loop): ... from here.
57         * cfgloopmanip.c (rpe_enum_p): Cast according to the coding conventions.
58         * cfgrtl.c (rtl_create_basic_block): Likewise.
59         (rtl_split_block): Likewise.
60         (rtl_dump_bb): Likewise.
61         (cfg_layout_split_block): Likewise.
62         (init_rtl_bb_info): Use typesafe memory macros.
63
64         * graphds.h (struct graph_edge): Renamed edge to graph_edge.
65         * graphds.h: Updated all usages of edge to graph_edge.
66         * graphds.c: Likewise.
67         * cfgloopanal.c: Likewise.
68
69 2007-06-05  Ian Lance Taylor  <iant@google.com>
70
71         * tree-vrp.c (compare_values_warnv): Check TREE_NO_WARNING on a
72         PLUS_EXPR or MINUS_EXPR node before setting *strict_overflow_p.
73         (extract_range_from_assert): Set TREE_NO_WARNING when creating an
74         expression.
75         (test_for_singularity): Likewise.
76
77 2007-06-05  H.J. Lu  <hongjiu.lu@intel.com>
78
79         * config/i386/constraints.md ("Y2"): Replaced by ...
80         ("Yt"): This.
81         * config/i386/i386.md: Likewise.
82         * config/i386/mmx.md: Likewise.
83         * config/i386/sse.md: Likewise.
84
85 2007-06-05  H.J. Lu  <hongjiu.lu@intel.com>
86
87         * config/i386/constraints.md ("z"): Replaced by ...
88         ("Y0"): This.
89         * config/i386/sse.md (sse4_1_blendvpd): Likewise.
90         (sse4_1_blendvps): Likewise.
91         (sse4_1_pblendvb): Likewise.
92         (sse4_2_pcmpestr): Likewise.
93         (sse4_2_pcmpestrm): Likewise.
94         (sse4_2_pcmpestr_cconly): Likewise.
95         (sse4_2_pcmpistr): Likewise.
96         (sse4_2_pcmpistrm): Likewise.
97         (sse4_2_pcmpistr_cconly): Likewise.
98
99 2007-06-05  Razya Ladelsky  <razya@il.ibm.com>
100
101         * matrix-reorg.c (transform_access_sites): Fix computation.
102         (transform_allocation_sites): Same.
103
104 2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
105
106         * config/i386/i386.c (override_options): Use
107         TARGET_SUBTARGET32_ISA_DEFAULT to select default ix86_isa_flags.
108
109 2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
110
111         * config/i386/predicates.md (reg_not_xmm0_operand): New predicate.
112         (nonimm_not_xmm0_operand): Ditto.
113         * config/i386/sse.md ("sse4_1_blendvpd"): Use "reg_not_xmm0_operand"
114         as operand[0] and operand[1] predicate.  Use "nonimm_not_xmm0_operand"
115         as operand[2] predicate.  Require "z" class XMM register for
116         operand[3].  Adjust asm template.
117         ("sse4_1_blendvpd"): Ditto.
118         ("sse4_1_pblendvb"): Ditto.
119         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Do not
120         force op2 into xmm0 register for variable blend instructions.
121
122 2007-06-04  Tom Tromey  <tromey@redhat.com>
123
124         * c-tree.h (start_enum): Update.
125         (build_enumerator): Likewise.
126         * c-decl.c (enum_next_value): Removed.
127         (enum_overflow): Likewise.
128         (start_enum): Add c_enum_contents argument.  Don't use globals.
129         (build_enumerator): Likewise.
130         * c-tree.h (struct c_enum_contents): New struct.
131
132 2007-06-04  Tom Tromey  <tromey@redhat.com>
133
134         * c-common.c (c_common_get_alias_set): Fix indentation.
135
136 2007-06-04  Ian Lance Taylor  <iant@google.com>
137
138         * tree-vrp.c (adjust_range_with_scev): When loop is not expected
139         to overflow, reduce overflow infinity to regular infinity.
140         (vrp_var_may_overflow): New static function.
141         (vrp_visit_phi_node): Check vrp_var_may_overflow.
142
143 2007-06-04  Kazu Hirata  <kazu@codesourcery.com>
144
145         * stor-layout.c (layout_type): Remove duplicate code.
146
147 2007-06-04  Uros Bizjak  <ubizjak@gmail.com>
148
149         PR c/32191
150         * gcc/c-common.c (c_define_builtins): Call targetm.init_builtins ()
151         before build_common_builtin_nodes ().
152
153 2007-06-04  Steve Ellcey  <sje@cup.hp.com>
154
155         PR target/31733
156         * cfgrtl.c (rtl_verify_flow_info): Skip notes when looking for barrier.
157
158 2007-05-31  Jan Hubicka  <jh@suse.cz>
159
160         * tree-predcom.c (replace_ref_with, initialize_root_vars_lm,
161         reassociate_to_the_same_stmt): Call build_gimple_modify_stmt
162         instead of _stat version.
163
164 2007-06-03  Zdenek Dvorak  <dvorakz@suse.cz>
165
166         PR tree-optimization/32194
167         * tree-predcom.c (determine_offset): Check that both references have
168         the same type.
169
170 2007-06-03  Zdenek Dvorak  <dvorakz@suse.cz>
171
172         * cfgloopmanip.c (remove_path, loopify, duplicate_loop_to_header_edge):
173         Change dom_bbs to vector.  Add argument to iterate_fix_dominators call.
174         * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
175         * tree-cfg.c (tree_duplicate_sese_region): Change doms to vector.
176         Add argument to iterate_fix_dominators call.
177         (remove_edge_and_dominated_blocks): Pass vector to bbs_to_fix_dom.
178         * gcse.c (hoist_code): Change domby to vector.
179         * cfghooks.c (make_forwarder_block): Change doms_to_fix to vector.
180         Add argument to iterate_fix_dominators call.
181         * loop-doloop.c (doloop_modify): Changed recount_dominator to
182         recompute_dominator.
183         * lambda-code.c (perfect_nestify): Ditto.
184         * cfgloopanal.c: Include graphds.h.
185         (struct edge, struct vertex, struct graph, dump_graph, new_graph,
186         add_edge, dfs, for_each_edge, free_graph): Moved to graphds.c.
187         (mark_irreducible_loops): Use graphds_scc.  Remove argument from
188         add_edge call.
189         * graphds.c: New file.
190         * graphds.h: New file.
191         * dominance.c: Include vecprim.h, pointer-set.h and graphds.h.
192         (get_dominated_by, get_dominated_by_region): Change return type to
193         vector.
194         (verify_dominators): Recompute all dominators and compare the results.
195         (recount_dominator): Renamed to ...
196         (recompute_dominator): ... this.  Do not check that the block is
197         dominated by entry.
198         (iterate_fix_dominators): Reimplemented.
199         (prune_bbs_to_update_dominators, root_of_dom_tree,
200         determine_dominators_for_sons): New functions.
201         * et-forest.c (et_root): New function.
202         * et-forest.h (et_root): Declare.
203         * Makefile.in (graphds.o): Add.
204         (cfgloopanal.o): Add graphds.h dependency.
205         (dominance.o): Add graphds.h, vecprim.h and pointer-set.h dependency.
206         * basic-block.h (get_dominated_by, get_dominated_by_region,
207         iterate_fix_dominators): Declaration changed.
208         (recount_dominator): Renamed to ...
209         (recompute_dominator): ... this.
210         * tree-ssa-threadupdate.c (thread_block): Free dominance info.
211         (thread_through_all_blocks): Do not free dominance info.
212
213 2007-06-03  Andreas Schwab  <schwab@suse.de>
214
215         * config/m68k/m68k.c (override_options): Don't override
216         REAL_MODE_FORMAT.
217         * config/m68k/m68k-modes.def (SF, DF): Define to use
218         motorola_single_format and motorola_double_format, resp.
219         * real.c (motorola_single_format): Renamed from
220         coldfire_single_format.
221         (motorola_double_format): Renamed from coldfire_double_format.
222         (encode_ieee_extended): Generate a proper canonical NaN image
223         respecting canonical_nan_lsbs_set.
224         (ieee_extended_motorola_format): Set canonical_nan_lsbs_set to
225         true.
226         * real.h: Adjust declarations.
227
228 2007-06-03  Kaz Kojima  <kkojima@gcc.gnu.org>
229
230         PR target/32163
231         * config/sh/sh.md (symGOT_load): Don't schedule insns when
232         the symbol is generated with the stack protector.
233
234 2007-06-03  Kazu Hirata  <kazu@codesourcery.com>
235
236         * config/m68k/m68k.c (m68k_attribute_table): Add "interrupt".
237         (m68k_get_function_kind): Return m68k_fk_interrupt_handler on
238         "interrupt".
239         * doc/extend.texi (interrupt): Mention m68k.
240
241 2007-06-02  Uros Bizjak  <ubizjak@gmail.com>
242
243         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Call
244         safe_vector_operand() if input operand is VECTOR_MODE_P operand.
245         (ix86_expand_sse_pcmpestr): Do not check operands for
246         "register_operand", when insn operand predicate is "register_operand".
247         (ix86_expand_sse_pcmpistr): Ditto.
248
249 2007-06-02  H.J. Lu  <hongjiu.lu@intel.com>
250             Uros Bizjak  <ubizjak@gmail.com>
251
252         * config/i386/i386.h (enum reg_class) [SSE_FIRST_REG]: New.
253         (SSE_CLASS_P): Use reg_class_subset_p between SSE_REGS.
254         (REG_CLASS_NAMES): Add "FIRST_SSE_REG" string.
255         (REG_CLASS_CONTENTS): Add members of FIRST_SSE_REG class.
256         * config/i386/constraints.md ("z"): New register constraint
257         for members of SSE_FIRST_REG class.
258         * config/i386/i386-modes.def (CCA, CCC, CCO, CCS): New compare modes.
259         * config/i386/i386.c (regclass_map): Change class of %xmm0 to
260         SSE_FIRST_REG class.
261         (put_condition_code) [EQ, NE]: Output suffixes for new compare modes.
262         (ix86_cc_modes_compatible): Handle CCA, CCC, CCO and CCS modes.
263         (IX86_BUILTIN_PCMPESTRI128): New for SSE4.2.
264         (IX86_BUILTIN_PCMPESTRM128): Likewise.
265         (IX86_BUILTIN_PCMPESTRA128): Likewise.
266         (IX86_BUILTIN_PCMPESTRC128): Likewise.
267         (IX86_BUILTIN_PCMPESTRO128): Likewise.
268         (IX86_BUILTIN_PCMPESTRS128): Likewise.
269         (IX86_BUILTIN_PCMPESTRZ128): Likewise.
270         (IX86_BUILTIN_PCMPISTRI128): Likewise.
271         (IX86_BUILTIN_PCMPISTRM128): Likewise.
272         (IX86_BUILTIN_PCMPISTRA128): Likewise.
273         (IX86_BUILTIN_PCMPISTRC128): Likewise.
274         (IX86_BUILTIN_PCMPISTRO128): Likewise.
275         (IX86_BUILTIN_PCMPISTRS128): Likewise.
276         (IX86_BUILTIN_PCMPISTRZ128): Likewise.
277         (struct builtin_description): Change "flag" field to unsigned.
278         (bdesc_pcmpestr): New builtin description table.
279         (bdesc_pcmpistr): Likewise.
280         (ix86_init_mmx_sse_builtins): Define int_ftype_v16qi_int_v16qi_int_int,
281         v16qi_ftype_v16qi_int_v16qi_int_int and int_ftype_v16qi_v16qi_int.
282         Initialize pcmp[ei]str[im] insns for SSE4.2.
283         (ix86_expand_sse_pcmpestr): New subroutine of ix86_expand_builtin.
284         (ix86_expand_sse_pcmpistr): Likewise.
285         (ix86_expand_builtin): Expand pcmp[ei]str[im] builtins for SSE4.2.
286         * config/i386/i386.md (UNSPEC_PCMPESTR): New for SSE4.2.
287         (UNSPEC_PCMPISTR): Likewise.
288         * config/i386/sse.md (sse4_2_pcmpestr): New insn patern and splitter.
289         (sse4_2_pcmpestri):New isns pattern.
290         (sse4_2_pcmpestrm): Likewise.
291         (sse4_2_pcmpestr_cconly): Likewise.
292         (sse4_2_pcmpistr): New insn patern and splitter.
293         (sse4_2_pcmpistri):New isns pattern.
294         (sse4_2_pcmpistrm): Likewise.
295         (sse4_2_pcmpistr_cconly): Likewise.
296         * config/i386/smmintrin.h: Enable pcmp[ei]str[im] intrinsics
297         in SSE4.2.
298
299 2007-06-01  David Daney  <ddaney@avtrex.com>
300
301         * config/mips/mips.c (mips_output_mi_thunk): Only load gp if not
302         LOADGP_ABSOLUTE and not binds_local_p.
303         
304 2007-06-01  Geoffrey Keating  <geoffk@apple.com>
305
306         * config/darwin.h (LINK_SPEC): Pass -fpie through to the linker.
307
308 2007-06-01  Ian Lance Taylor  <iant@google.com>
309
310         * tree-vrp.c (compare_name_with_value): Always set
311         used_strict_overflow if we get a result from the variable itself.
312
313 2007-06-01  Ian Lance Taylor  <iant@google.com>
314
315         PR rtl-optimization/31455
316         * lower-subreg.c (find_decomposable_subregs): Don't decompose
317         subregs which have a cast between modes which are not tieable.
318
319 2007-06-01  Uros Bizjak  <ubizjak@gmail.com>
320
321         * expr.c (force_operand) [DIV, MOD, UDIV, UMOD, ASHIFTRT]: Remove
322         breaks after return statements.
323
324 2007-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
325
326         * config/sh/sh.c (fpscr_set_from_mem): Call get_free_reg
327         only after no_new_pseudos.
328
329 2007-05-31  Eric Christopher  <echristo@apple.com>
330
331         * expr.c (convert_move): Assert that we don't have a BLKmode
332         operand.
333         (store_expr): Handle BLKmode moves by calling emit_block_move.
334
335 2007-05-31  Daniel Berlin  <dberlin@dberlin.org>
336
337         * c-typeck.c (build_indirect_ref): Include type in error message.
338         (build_binary_op): Pass types to binary_op_error.
339         * c-common.c (binary_op_error): Take two type arguments, print out
340         types with error.
341         * c-common.h (binary_op_error): Update prototype.
342
343 2007-05-31  H.J. Lu  <hongjiu.lu@intel.com>
344
345         * config/i386/i386.c: Correct coments on -mno-sse4.
346
347 2007-05-31  H.J. Lu  <hongjiu.lu@intel.com>
348
349         * config.gcc (i[34567]86-*-*): Add nmmintrin.h to extra_headers.
350         (x86_64-*-*): Likewise.
351         * config/i386/i386.c (OPTION_MASK_ISA_MMX_UNSET): New.
352         (OPTION_MASK_ISA_3DNOW_UNSET): Likewise.
353         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
354         (OPTION_MASK_ISA_SSE2_UNSET): Likewise.
355         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
356         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
357         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
358         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
359         (OPTION_MASK_ISA_SSE4): Likewise.
360         (OPTION_MASK_ISA_SSE4_UNSET): Likewise.
361         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
362         (ix86_handle_option): Use OPTION_MASK_ISA_*_UNSET.  Handle SSE4.2.
363         (override_options): Support SSE4.2.
364         (ix86_build_const_vector): Support SImode and DImode.
365         (ix86_build_signbit_mask): Likewise.
366         (ix86_expand_int_vcond): Support V2DImode.
367         (IX86_BUILTIN_CRC32QI): New for SSE4.2.
368         (IX86_BUILTIN_CRC32HI): Likewise.
369         (IX86_BUILTIN_CRC32SI): Likewise.
370         (IX86_BUILTIN_CRC32DI): Likewise.
371         (IX86_BUILTIN_PCMPGTQ): Likewise.
372         (bdesc_crc32): Likewise.
373         (bdesc_sse_3arg): Likewise.
374         (ix86_expand_crc32): Likewise.
375         (ix86_init_mmx_sse_builtins): Support SSE4.2.
376         (ix86_expand_builtin): Likewise.
377         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
378         __SSE4_2__ for -msse4.2.
379         * config/i386/i386.md (UNSPEC_CRC32): New for SSE4.2.
380         (CRC32MODE): Likewise.
381         (crc32modesuffix): Likewise.
382         (crc32modeconstraint): Likewise.
383         (sse4_2_crc32<mode>): Likewise.
384         (sse4_2_crc32di): Likewise.
385         * config/i386/i386.opt (msse4.2): New for SSE4.2.
386         (msse4): Likewise.
387         * config/i386/nmmintrin.h: New. The dummy SSE4.2 intrinsic header file.
388         * config/i386/smmintrin.h: Add SSE4.2 intrinsics.
389         * config/i386/sse.md (sse4_2_gtv2di3): New pattern for SSE4.2.
390         (vcond<mode>): Use SSEMODEI instead of SSEMODE124.
391         (vcondu<mode>): Likewise.
392         * doc/extend.texi: Document SSE4.2 built-in functions.
393         * doc/invoke.texi: Document -msse4.2/-msse4.
394
395 2007-05-31  Zdenek Dvorak  <dvorakz@suse.cz>
396
397         PR tree-optimization/32160
398         * tree-predcom.c (predcom_tmp_var): New function.  Mark created
399         variable as gimple reg.
400         (initialize_root_vars, initialize_root_vars_lm): Use predcom_tmp_var.
401
402 2007-05-31  Kazu Hirata  <kazu@codesourcery.com>
403
404         * gcc.c (main): Don't consider linker options when issuing the
405         warning about a linker input file not being used.
406
407 2007-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
408
409         * tree-vrp.c (compare_names): Initialize sop.
410
411 2007-05-30  Dirk Mueller  <dmueller@suse.de>
412
413         * cgraphunit.c (cgraph_analyze_function): Remove
414         computation of inline parameters.
415
416 2007-05-30  Uros Bizjak  <ubizjak@gmail.com>
417
418         * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Undef before define.
419
420 2007-05-30  Richard Sandiford  <richard@codesourcery.com>
421
422         * config.gcc (arm-wrs-vxworks): Remove dbxelf.h from tm_file.
423         Add vx-common.h.  Include vxworks.h between vx-common.h and
424         arm/vxworks.h.
425         * config/vx-common.h (DWARF2_UNWIND_INFO): Undefine before
426         redefining.
427         * config/vxworks.h (TARGET_ASM_CONSTRUCTOR): Likewise.
428         (TARGET_ASM_DESTRUCTOR): Likewise.
429         * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Check arm_arch_xscale
430         instead of arm_is_xscale.  Use VXWORKS_OS_CPP_BUILTINS.
431         (OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
432         (CC1_SPEC): Add -tstrongarm.  Line up backslashes.
433         (VXWORKS_ENDIAN_SPEC): Define.
434         (ASM_SPEC): Add VXWORKS_ENDIAN_SPEC.
435         (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine to their
436         VXWORKS_* equivalents.
437         (LINK_SPEC): Likewise, but add VXWORKS_ENDIAN_SPEC.
438         (ASM_FILE_START): Delete.
439         (TARGET_VERSION): Reformat.
440         (FPUTYPE_DEFAULT, FUNCTION_PROFILER): Define.
441         (DEFAULT_STRUCTURE_SIZE_BOUNDARY): Define.
442         * config/arm/t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Define.
443         (FPBIT, DPBIT): Define.
444         (fp-bit.c, dp-bit.c): New rules.
445         (MULTILIB_OPTIONS): Add strongarm, -mrtp and -mrtp/-fPIC multilibs.
446         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Define.
447         * config/arm/arm-protos.h (arm_emit_call_insn): Declare.
448         * config/arm/arm.h: Include vxworks-dummy.h.
449         * config/arm/arm.c (arm_elf_asm_constructor, arm_elf_asm_destructor):
450         Mark with ATTRIBUTE_UNUSED.
451         (arm_override_options): Do not allow VxWorks RTP PIC to be used
452         for Thumb.  Force r9 to be the PIC register for VxWorks RTPs and
453         make it incompatible with -msingle-pic-base.
454         (arm_function_ok_for_sibcall): Return false for calls that might
455         go through a VxWorks PIC PLT entry.
456         (require_pic_register): New function, split out from...
457         (legitimize_pic_address): ...here.  Do not use GOTOFF accesses
458         for VxWorks RTPs.
459         (arm_load_pic_register): Handle the VxWorks RTP initialization
460         sequence.  Use pic_reg as a shorthand for cfun->machine->pic_reg.
461         (arm_emit_call_insn): New function.
462         (arm_assemble_integer): Do not use GOTOFF accesses for VxWorks RTP.
463         * config/arm/arm.md (UNSPEC_PIC_OFFSET): New unspec number.
464         (pic_offset_arm): New pattern.
465         (call, call_value): Use arm_emit_call_insn.
466         (call_internal, call_value_internal): New expanders.
467         * config/arm/lib1funcs.asm (__PLT__): Define to empty for
468         VxWorks unless __PIC__.
469
470 2007-05-30  Eric Christopher  <echristo@gmail.com>
471
472         * genrecog.c: Include regs.h in generated file.
473         * genemit.c: Ditto. Fix up formatting.
474         * config/mn10300/constraints.md: New.
475         * config/mn10300/mn10300.md: Include.
476         * config/mn10300/mn10300.c(mn10300_secondary_reload_class):
477         Fix up for removed macro.
478         * config/mn10300/predicates.md (call_address_operand):  Ditto.
479         * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Delete.
480         (CONST_OK_FOR_I): Ditto.
481         (CONST_OK_FOR_J): Ditto.
482         (CONST_OK_FOR_K): Ditto.
483         (CONST_OK_FOR_L): Ditto.
484         (CONST_OK_FOR_M): Ditto.
485         (CONST_OK_FOR_N): Ditto.
486         (CONST_DOUBLE_OK_FOR_LETTER_P): Ditto.
487         (OK_FOR_Q): Ditto.
488         (OK_FOR_R): Ditto.
489         (OK_FOR_T): Ditto.
490         (EXTRA_CONSTRAINT): Ditto.
491
492 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
493
494         * config/i386/i386.h (MASK_64BIT, MASK_MMX, MASK_3DNOW*, MASK_SSE*):
495         Remove defines.
496         * config/i386/biarch.h (TARGET_64BIT_DEFAULT): Define to
497         OPTION_MASK_ISA_64BIT.
498         * config/i386/i386.c: Rename MASK_* macros to OPTION_MASK_ISA_*.
499
500 2007-05-30  Richard Guenther  <rguenther@suse.de>
501
502         PR middle-end/32152
503         * gimplify.c (gimplify_omp_atomic_pipeline): Use correct
504         types for comparison.
505         * fold-const.c (fold_comparison): Call maybe_canonicalize_comparison
506         with original typed arguments.
507         * config/i386/i386.c (ix86_gimplify_va_arg): Fix type mismatches.
508
509 2007-05-30  Jakub Jelinek  <jakub@redhat.com>
510
511         PR tree-optimization/31769
512         * except.c (duplicate_eh_regions): Clear prev_try if
513         ERT_MUST_NOT_THROW region is inside of ERT_TRY region.
514
515 2007-05-30  Zdenek Dvorak  <dvorakz@suse.cz>
516
517         * tree-scalar-evolution.c (scev_const_prop): Do not create labels.
518         * tree-ssa-sink.c (statement_sink_location): Return basic block and
519         bsi of the location where statements should be inserted.
520         (sink_code_in_bb): Take bsi from statement_sink_location.
521         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use bsi_after_labels
522         instead of bsi_start.
523         * tree-profile.c (tree_gen_ic_func_profiler): Pass BSI_NEW_STMT to
524         bsi_insert_after.
525         * tree-cfg.c (bsi_move_after): Pass BSI_NEW_STMT to bsi_insert_after.
526         (bsi_move_before): Document inconsistency with bsi_move_after.
527         (tree_redirect_edge_and_branch): Do not create labels if not necessary.
528
529 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
530
531         * config/i386/i386.h (TARGET_ABM): New define.
532         (TARGET_POPCNT): Ditto.
533         (TARGET_64BIT, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A, TARGET_SSE*):
534         New temporary defines to redefine from OPTION_ISA_* defines.
535         (MASK_64BIT, MASK_MMX, MASK_3DNOW, MASK_3DNOW_A, MASK_SSE*):
536         New temporary defines to redefine from OPTION_MASK_ISA_* defines.
537         (ix86_isa_flags): New extern int declaration.
538         (TARGET_SUBTARGET_DEFAULT): New define.
539         (TARGET_SUBTARGET_ISA_DEFAULT): Ditto.
540         (TARGET_SUBTARGET32_DEFAULT): Ditto.
541         (TARGET_SUBTARGET32_ISA_DEFAULT): Ditto.
542         (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
543         * config/i386/unix.h: Undef TARGET_SUBTARGET_DEFAULT before define.
544         * config/i386/darwin.h: Change TARGET_64BIT define to
545         OPTION_ISA_64BIT.
546
547         * config/i386/i386.opt (m3dnowa): Define as undocumented option
548         using existing "ix86_isa_flags" varible.
549         (m32, m64): Use existing "ix86_isa_flags" variable.
550         (mmmx, m3dnow): Ditto.
551         (msse, msse2, msse3, mssse3, msse4.1, msse4a): Ditto.
552         (mabm): Define as non-negative option using "x86_abm" variable.
553         (mpopcnt): Define as non-negative option using "x86_popcnt" variable.
554
555         * config/i386/i386.c (ix86_arch_features) [X86_ARCH_CMOVE]:
556         Rewrite feature test bitmap.
557         (ix86_isa_flags): New initialized global int varible.
558         (ix86_isa_flags_explicit): New static int variable.
559         (ix86_handle_option): Set "ix86_isa_flags_explicit" when mmmx, m3dnow,
560         msse, msse2, msse3, msse4.1 and msse4a option is processed.  Change
561         i86_isa_flags and ix86_isa_flags_explicit, not target_flags and
562         target_flags_explicit.
563         (override_options): Remove "target_enable" and "target_disable" fields
564         from "struct ptt". Update processor_target_table accordingly. Remove
565         PTA_PREFETCH_SSE from processor_alias_table entry if PTE_SSE is
566         defined and rearrange PTA_* bits.  Use "ix86_isa_flags" instead of
567         "target_flags" and "ix86_isa_flags_explicit" instead of
568         "target_flags_explicit" when masked with MASK_64BIT, MASK_MMX,
569         MASK_3DNOW, MASK_3DNOW_A or MASK_SSE*.  Set "x86_abm" to true when
570         PTA_ABM is set in processor_alias_table flags entry.  Set "x86_popcnt"
571         to true when either of PTA_POPCNT or PTA_ABM is set in
572         processor_alias_table flags entry.  Set "x86_prefetch_sse" to true
573         when either of PTA_PREFETCH_SSE or PTA_SSE is set in
574         processor_alias_table flags entry.  Remove handling of
575         "target_enable" and "target_disable" fields of processor_target_table.
576         Mask "target_flags" with TARGET_SUBTARGET32_DEFAULT for 32-bit
577         targets or with TARGET_SUBTARGET64_DEFAULT for 64-bit targets.
578         Mask "ix86_isa_flags" with TARGET_SUBTARGET32_ISA_DEFAULT for 32-bit
579         targets or with TARGET_SUBTARGET64_ISA_DEFAULT for 64-bit targets.
580         (def_builtin): Mask "mask" variable with "ix86_isa_flags", not
581         "target_flags".
582         (TARGET_DEFAULT_TARGET_FLAGS): Do not include TARGET_64BIT_DEFAULT.
583
584 2007-05-29  David Daney  <ddaney@avtrex.com>
585
586         PR gcc/31975
587         * config/mips/mips.c (mips_output_mi_thunk): Emit
588         NOTE_INSN_PROLOGUE_END at beginning of the thunk.
589
590 2007-05-29  Hui-May Chang  <hm.chang@apple.com>
591         * config/i386/i386.c (ix86_function_regparm): Added checking of
592         ix86_force_align_arg_pointer to determine the number of
593         register parameters.
594
595 2007-05-29  Zdenek Dvorak  <dvorakz@suse.cz>
596
597         * tree-vectorizer.h (DR_MISALIGNMENT): Cast aux to integer.
598         (SET_DR_MISALIGNMENT): New.
599         * tree-vect-analyze.c (vect_compute_data_ref_alignment,
600         vect_update_misalignment_for_peel, vect_enhance_data_refs_alignment):
601         Use SET_DR_MISALIGNMENT.
602         * tree-predcom.c (split_data_refs_to_components): Cast dr->aux from
603         pointer.
604         * tree-data-ref.c (create_data_ref, compute_all_dependences,
605         find_loop_nest): Export.
606         * tree-data-ref.h (struct data_reference): Change aux field to pointer.
607         (create_data_ref, compute_all_dependences, find_loop_nest): Declare.
608         * tree-ssa-loop-prefetch.c: Include tree-data-ref.h.
609         (L1_CACHE_SIZE_BYTES, L2_CACHE_SIZE_BYTES, NONTEMPORAL_FRACTION):
610         New macros.
611         (struct mem_ref): Add field reuse_distance.
612         (find_or_create_group, record_ref): Use XNEW instead of xcalloc.
613         Initialize reuse_distance field.
614         (issue_prefetch_ref): Select temporality of prefetch according to
615         reuse_distance.
616         (volume_of_references, volume_of_dist_vector, add_subscript_strides,
617         self_reuse_distance, determine_loop_nest_reuse): New functions.
618         (loop_prefetch_arrays): Call determine_loop_nest_reuse.
619         (tree_ssa_prefetch_arrays): Dump L2 cache size.
620         * Makefile.in (tree-ssa-loop-prefetch.o): Add TREE_DATA_REF_H
621         dependency.
622
623 2007-05-29  Daniel Berlin  <dberlin@dberlin.org>
624
625         * tree-ssa-alias.c: Add aliasing overview.
626
627 2007-05-29  Zuxy Meng  <zuxy.meng@gmail.com>
628             Danny Smith  <dannysmith@users.sourceforge.net>
629
630         PR target/29498
631         * config/i386/t-crtfm: Compile crtfastmath.o with
632         -minline-all-stringops.
633         * config/i386/cygwin.h (ENDFILE_SPECS): Add crtfastmath.o.
634         * config/i386/mingw32.h (ENDFILE_SPECS): Add crtfastmath.o.
635
636 2007-05-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
637
638         * doc/md.texi: Document constraints on HP PA-RISC.
639
640         * pa/constraints.md: New file.
641         * pa.md: Include constraints.md.
642         * pa.c (cint_ok_for_move): Avoid using CONST_OK_FOR_LETTER_P.
643         (integer_store_memory_operand, ldil_cint_p): New functions.
644         * pa-protos.h (integer_store_memory_operand, ldil_cint_p): Declare.
645         * pa.h (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
646         IS_RELOADING_PSEUDO_P, EXTRA_CONSTRAINT): Remove.
647         * pa32-regs.h (REG_CLASS_FROM_LETTER): Remove.
648         * pa64-regs.h (REG_CLASS_FROM_LETTER): Remove.
649
650 2007-05-28  Andrew Pinski  <Andrew_pinski@playstation.sony.com>
651
652         PR c/31339
653         * c-typeck.c (build_unary_op <case PREINCREMENT_EXPR,
654         case POSTINCREMENT_EXPR, case PREDECREMENT_EXPR,
655         case POSTDECREMENT_EXPR>): Return the error_mark_node
656         if either the real or imaginary parts would an
657         error_mark_node.
658
659 2007-05-28  Daniel Berlin  <dberlin@dberlin.org>
660
661         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Release LHS SSA
662         name when we remove it from a call.
663
664 2007-05-28  Kazu Hirata  <kazu@codesourcery.com>
665
666         * targhooks.c (default_narrow_bitfield): Remove.
667         * targhooks.h: Remove the prototype for
668         default_narrow_bitfield.
669
670         * langhooks-def.h: Remove the prototype for
671         hook_get_alias_set_0.
672         * langhooks.c (hook_get_alias_set_0): Remove.
673
674         * global.c (EXECUTE_IF_CONFLICT): Remove.
675
676 2007-05-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
677
678         PR tree-opt/32100
679         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't
680         return true when truth_value_p is true and the type
681         is of signed:1.
682
683 2007-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
684
685         * doc/install.texi (Prerequisites): We no longer require Autoconf
686         2.13 for the top-level.
687
688 2007-05-28  Uros Bizjak  <ubizjak@gmail.com>
689
690         * target/i386/i386.c (ix86_expand_vector_move): Expand unaligned
691         memory access via x86_expand_vector_move_misalign() only for
692         TImode values on 32-bit targets.
693
694 2007-05-28  Razya Ladelsky  <razya@il.ibm.com>
695
696         * matrix-reorg.c: New file. Implement matrix flattening and
697         transposing optimization.
698         * tree-pass.h: Add matrix reorg pass.
699         * common.opt: Add fipa-mreorg flag.
700         * Makefile.in: Add matrix-reorg.c.
701         * passes.c: Add matrix reorg pass.
702         * varpool.c (add_new_static_var): New function.
703         * cgraph.h (add_new_static_var): Declare.
704
705 2007-05-27  Eric Christopher  <echristo@apple.com>
706
707         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update
708         sp_offset depending on stack size. Save r12 depending
709         on registers we're saving later.
710         (rs6000_emit_epilogue): Update sp_offset depending only
711         on stack size.
712
713 2007-05-27  Zdenek Dvorak  <dvorakz@suse.cz>
714
715         * tree-vrp.c (execute_vrp): Do not check whether current_loops == NULL.
716         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
717         * ifcvt.c (if_convert): Ditto.
718         * tree-ssa-threadupdate.c (thread_block): Ditto.
719         (thread_through_all_blocks): Ditto.  Assert that loops were analysed.
720         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
721         verify_loop_closed_ssa): Check number_of_loops instead of
722         current_loops.
723         * predict.c (tree_estimate_probability): Ditto.
724         * tree-if-conv.c (main_tree_if_conversion): Ditto.
725         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
726         * modulo-sched.c (sms_schedule): Ditto.
727         * tree-scalar-evolution.c (scev_const_prop): Ditto.
728         (scev_finalize): Do not do anything if scev analysis was not
729         initialized.
730         * cfgloopanal.c (mark_irreducible_loops): Do not check whether
731         current_loops == NULL.
732         (mark_loop_exit_edges): Check number_of_loops instead of current_loops.
733         * loop-init.c (loop_optimizer_init): Do not free current_loops when
734         there are no loops.
735         (loop_optimizer_finalize): Assert that loops were analyzed.
736         (rtl_move_loop_invariants, rtl_unswitch, rtl_unroll_and_peel_loops,
737         rtl_doloop): Check number_of_loops instead of current_loops.
738         * tree-ssa-loop.c (tree_loop_optimizer_init): Do not check whether
739         current_loops == NULL.
740         (tree_ssa_loop_init, tree_ssa_loop_im, tree_ssa_loop_unswitch,
741         gate_tree_vectorize tree_linear_transform, check_data_deps,
742         tree_ssa_loop_ivcanon, tree_ssa_empty_loop, tree_ssa_loop_bounds,
743         tree_complete_unroll, tree_ssa_loop_prefetch, tree_ssa_loop_ivopts):
744         Check number_of_loops instead of current_loops.
745         (tree_ssa_loop_done): Do not check whether current_loops == NULL.
746         * tree-ssa-pre.c (fini_pre): Do not take do_fre argument.  Always
747         free loops if available.
748         (execute_pre): Do not pass do_fre to fini_pre.
749
750 2007-05-27  Tobias Burnus  <burnus@net-b.de>
751
752         PR middle-end/32083
753         * real.c (mpfr_from_real): Fix sign of -Inf.
754
755 2007-05-27  H.J. Lu  <hongjiu.lu@intel.com>
756
757         * tree-vect-transform.c (vectorizable_conversion): Initialize
758         tree_code variables to ERROR_MARK.
759         (vectorizable_type_demotion): Likewise.
760         (vectorizable_type_promotion): Likewise.
761
762 2007-05-26  Uros Bizjak  <ubizjak@gmail.com>
763
764         PR target/32065
765         * config/i386/i386.md (movti): Handle push operands via
766         ix86_expand_push().
767
768 2007-05-26  Kazu Hirata  <kazu@codesourcery.com>
769
770         * basic-block.h: Remove the prototype for merge_seq_blocks.
771         * cfgcleanup.c (merge_seq_blocks): Remove.
772
773         * tree-flow.h: Remove the prototype for is_aliased_with.
774         * tree-ssa-alias.c (is_aliased_with): Remove.
775
776 2007-05-26  H.J. Lu  <hongjiu.lu@intel.com>
777
778         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): New.
779
780         * config/i386/i386.c (ix86_expand_sse4_unpack): New.
781
782         * config/i386/sse.md (vec_unpacku_hi_v16qi): Call
783         ix86_expand_sse4_unpack if SSE4.1 is enabled.
784         (vec_unpacks_hi_v16qi): Likewise.
785         (vec_unpacku_lo_v16qi): Likewise.
786         (vec_unpacks_lo_v16qi): Likewise.
787         (vec_unpacku_hi_v8hi): Likewise.
788         (vec_unpacks_hi_v8hi): Likewise.
789         (vec_unpacku_lo_v8hi): Likewise.
790         (vec_unpacks_lo_v8hi): Likewise.
791         (vec_unpacku_hi_v4si): Likewise.
792         (vec_unpacks_hi_v4si): Likewise.
793         (vec_unpacku_lo_v4si): Likewise.
794         (vec_unpacks_lo_v4si): Likewise.
795
796 2007-05-26  Kazu Hirata  <kazu@codesourcery.com>
797
798         * c-typeck.c, config/arm/arm.c, config/darwin.c,
799         config/sh/symbian.c, gcc.c, ipa-cp.c, ipa-inline.c, loop-iv.c,
800         omega.c, tree-ssa-loop-niter.c, treestruct.def: Fix typos and
801         follow spelling conventions in various
802         warning/error/diagnostic messages.
803
804         * config/i386/i386.c, config/pa/pa.c, config/spu/spu.c,
805         df-problems.c, df-scan.c, domwalk.c, ebitmap.c, ebitmap.h,
806         fold-const.c, gcc.c, ipa-type-escape.c, omega.c, omega.h,
807         tree-ssa-coalesce.c, tree-ssa-live.c, tree-ssa-structalias.c,
808         tree-vrp.c: Fix comment typos.  Follow spelling conventions.
809         * doc/tm.texi: Follow spelling conventions.
810
811 2007-05-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
812
813         PR tree-opt/32090
814         * tree-ssa-forwprop.c
815         (forward_propagate_addr_into_variable_array_index): Remove
816         the lhs argument.  Use the type of def_rhs instead of lhs.
817         (forward_propagate_addr_expr_1): Update use of
818         forward_propagate_addr_into_variable_array_index.
819
820 2007-05-25  Sandra Loosemore  <sandra@codesourcery.com>
821             Nigel Stephens  <nigel@mips.com>
822
823         * config/mips/mips.c (mips_attribute_table): Add "near" and "far"
824         function attributes, "far" being an alias for "long_call".
825         (TARGET_COMP_TYPE_ATTRIBUTES): Define as mips_comp_type_attributes.
826         (mips_near_type_p, mips_far_type_p): New.
827         (mips_comp_type_attributes): New function to check that attributes
828         attached to a function type are compatible.
829         (mips_output_mi_thunk): Test SYMBOL_REF_LONG_CALL_P() rather than
830         TARGET_LONG_CALLS when deciding whether we can do a direct sibcall
831         to the target function of the thunk.
832         (mips_encode_section_info): Check for "near" and "far" function
833         attributes, and always set the SYMBOL_FLAG_LONG_CALL bit explicitly.
834
835         * config/mips/predicates.md (const_call_insn_operand): Test only
836         SYMBOL_REF_LONG_CALL_P() and not TARGET_LONG_CALLS.
837
838         * doc/extend.texi (Function Attributes): Document MIPS "near" and
839         "far" attributes.
840
841         * testsuite/gcc.target/mips/near-far-1.c:  New test case.
842         * testsuite/gcc.target/mips/near-far-2.c:  New test case.
843         * testsuite/gcc.target/mips/near-far-3.c:  New test case.
844         * testsuite/gcc.target/mips/near-far-4.c:  New test case.
845
846 2007-05-25  Eric Christopher  <echristo@apple.com>
847
848         * config.gcc: Add i386/t-fprules-softfp64 and soft-fp/t-softfp
849         to x86-darwin configurations.
850         * config/i386/t-darwin: Add softfp support.
851         * config/i386/t-darwin64: Ditto.
852         * config/i386/sfp-machine.h: If mach then don't use
853         aliasing, emit a stub to call.
854
855 2007-05-25  Kazu Hirata  <kazu@codesourcery.com>
856
857         * cfglayout.c, cgraphunit.c, config/avr/avr.c, fold-const.c,
858         haifa-sched.c, optabs.h, tree-affine.c, tree-data-ref.c,
859         tree-predcom.c, tree-ssa-alias-warnings.c,
860         tree-ssa-forwprop.c, tree-vect-analyze.c, tree-vrp.c: Fix
861         comment typos.  Follow spelling conventions.
862         * doc/cpp.texi, doc/invoke.texi: Fix typos.
863
864 2007-05-26  Uros Bizjak  <ubizjak@gmail.com>
865
866         PR target/32065
867         * target/i386/i386.c (ix86_expand_vector_move): Force SUBREGs of
868         constants into memory.  Expand unaligned memory references for
869         SSE modes via x86_expand_vector_move_misalign() function.
870
871 2007-05-25  Uros Bizjak  <ubizjak@gmail.com>
872
873         * config/i386/sse.md (*vec_extractv2di_1_sse2): Do not calculate
874         "memory" attribute for "sseishft" type insn without operands[2].
875
876 2007-05-25  Dirk Mueller  <dmueller@suse.de>
877             Marcus Meissner <meissner@suse.de>
878
879         * doc/extend.texi (alloc_size): New attribute.
880         * c-common.c (handle_alloc_size_attribute): New.
881         * tree-object-size.c (alloc_object_size): Use alloc_size
882         attribute, if available.
883
884 2007-05-25  H.J. Lu  <hongjiu.lu@intel.com>
885
886         * config/i386/i386.c (__builtin_ia32_vec_ext_v2df): Mark it
887         with MASK_SSE2.
888         (__builtin_ia32_vec_ext_v2di): Likewise.
889         (__builtin_ia32_vec_ext_v4si): Likewise.
890         (__builtin_ia32_vec_ext_v8hi): Likewise.
891         (__builtin_ia32_vec_ext_v16qi): Likewise.
892         (__builtin_ia32_vec_set_v8hi): Likewise.
893
894 2007-05-25  H.J. Lu  <hongjiu.lu@intel.com>
895
896         * config/i386/sse.md (*vec_extractv2di_1_sse2): Correct shift.
897
898 2007-05-25  Richard Sandiford  <richard@codesourcery.com>
899
900         * config/arm/arm-protos.h (arm_encode_call_attribute): Delete.
901         (arm_is_longcall_p): Rename to...
902         (arm_is_long_call_p): ...this.  Take a single tree argument and
903         return a bool.
904         * config/arm/arm.h (CALL_SHORT, CALL_LONG, CALL_NORMAL): Delete.
905         (CUMULATIVE_ARGS): Remove call_cookie.
906         (SHORT_CALL_FLAG_CHAR, LONG_CALL_FLAG_CHAR, ENCODED_SHORT_CALL_ATTR_P)
907         (ENCODED_LONG_CALL_ATTR_P): Delete.
908         (ARM_NAME_ENCODING_LENGTHS): Remove SHORT_CALL_FLAG_CHAR and
909         LONG_CALL_FLAG_CHAR cases.
910         (ARM_DECLARE_FUNCTION_SIZE): Delete.
911         * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Don't use
912         ARM_DECLARE_FUNCTION_SIZE.
913         * config/arm/arm.c (arm_init_cumulative_args): Don't set call_cookie.
914         (arm_function_arg): Return const0_rtx for VOIDmode arguments.
915         (arm_encode_call_attribute, current_file_function_operand): Delete.
916         (arm_function_in_section_p): New function.
917         (arm_is_longcall_p): Rename to...
918         (arm_is_long_call_p): ...this.  Take the target function as a single
919         argument and return a bool.  Do not rely on call cookies.  Check
920         whether the target symbol is in the same section as the current
921         function, not just the same compilation unit.
922         (arm_function_ok_for_sibcall): Use arm_is_long_call_p.
923         (arm_encode_section_info): Don't encode a call type.
924         * config/arm/arm.md (call, call_value): Update calls to
925         arm_is_long(_)call_p.  Simplify logic.
926         (*call_symbol, *call_value_symbol, *call_insn, *call_value_insn):
927         Update calls to arm_is_long(_)call_p.
928
929 2007-05-25  Richard Guenther  <rguenther@suse.de>
930
931         PR tree-optimization/31982
932         * tree-ssa-forwprop.c
933         (forward_propagate_addr_into_variable_array_index): Handle arrays
934         with element size one.
935
936 2007-05-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
937
938         * config/spu/spu.md (smulsi3_highpart): Unshare the rtl chain.
939         (umulsi3_highpart): Likewise.
940
941 2007-05-24  Ian Lance Taylor  <iant@google.com>
942
943         PR rtl-optimization/32069
944         * regclass.c (regclass): Don't crash if the entry in regno_reg_rtx
945         is NULL.
946
947 2007-05-24  Ollie Wild  <aaw@google.com>
948
949         * doc/cpp.texi (Common Predefined Macros): Add __COUNTER__
950         description.
951
952 2007-05-24  Richard Sandiford  <rsandifo@nildram.co.uk>
953
954         * postreload-gcse.c (reg_changed_after_insn_p): New function.
955         (oprs_unchanged_p): Use it to check all registers in a REG.
956         (record_opr_changes): Look for clobbers in CALL_INSN_FUNCTION_USAGE.
957         (reg_set_between_after_reload_p): Delete.
958         (reg_used_between_after_reload_p): Likewise.
959         (reg_set_or_used_since_bb_start): Likewise.
960         (eliminate_partially_redundant_load): Use reg_changed_after_insn_p
961         and reg_used_between_p instead of reg_set_or_used_since_bb_start.
962         Use reg_set_between_p instead of reg_set_between_after_reload_p.
963         * rtlanal.c (reg_set_p): Check whether REG overlaps
964         regs_invalidated_by_call, rather than just checking the
965         membership of REGNO (REG).
966
967 2007-05-24  Zdenek Dvorak  <dvorakz@suse.cz>
968
969         * doc/passes.texi: Document predictive commoning.
970         * doc/invoke.texi (-fpredictive-commoning): Document.
971         * opts.c (decode_options): Enable flag_predictive_commoning on -O3.
972         * tree-ssa-loop-im.c (get_lsm_tmp_name): Export.  Allow
973         adding indices to the generated name.
974         (schedule_sm): Pass 0 to get_lsm_tmp_name.
975         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Export.
976         * tree-pretty-print.c (op_symbol_1): Renamed to ...
977         (op_symbol_code): ... and exported.
978         (dump_omp_clause, op_symbol): Use op_symbol_code
979         instead of op_symbol_1.
980         * tree-pass.h (pass_predcom): Declare.
981         * timevar.def (TV_PREDCOM): New timevar.
982         * tree-ssa-loop.c (run_tree_predictive_commoning,
983         gate_tree_predictive_commoning, pass_predcom): New.
984         * tree-data-ref.c (find_data_references_in_loop): Find the
985         references in dominance order.
986         (canonicalize_base_object_address): Ensure that the result has
987         pointer type.
988         (dr_analyze_innermost): Export.
989         (create_data_ref): Code to fail for references with invariant
990         address moved ...
991         (find_data_references_in_stmt): ... here.
992         * tree-data-ref.h (dr_analyze_innermost): Declare.
993         * tree-affine.c: Include tree-gimple.h and hashtab.h.
994         (aff_combination_find_elt, name_expansion_hash,
995         name_expansion_eq, tree_to_aff_combination_expand,
996         double_int_constant_multiple_p, aff_combination_constant_multiple_p):
997         New functions.
998         * tree-affine.h (aff_combination_constant_multiple_p,
999         tree_to_aff_combination_expand): Declare.
1000         * tree-predcom.c: New file.
1001         * common.opt (fpredictive-commoning): New option.
1002         * tree-flow.h (op_symbol_code, tree_predictive_commoning,
1003         stmt_dominates_stmt_p, get_lsm_tmp_name): Declare.
1004         * Makefile.in (tree-predcom.o): Add.
1005         (tree-affine.o): Add TREE_GIMPLE_H dependency.
1006         * passes.c (init_optimization_passes):  Add dceloop after
1007         copy propagation in loop optimizer.  Add predictive commoning
1008         to loop optimizer passes.
1009
1010 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1011
1012         * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Correct
1013         default hook.
1014
1015 2007-05-24  Jan Hubicka  <jh@suse.cz>
1016
1017         * gengenrtl.c (gendecl, gendef): Output the gens annotated for
1018         statistics.
1019         (genheader): Include statistics.h.
1020
1021         * doc/invoke.texi (-fdump-unnumbered): Update docs when line number
1022         notes are gone.
1023         * print-rtl.c (flag_dump_unnumbered): Update comments.
1024         (print_rtl): Fix my previous change.
1025         * emit-rtl.c (emit_note_before, emit_note_after): Clear out note
1026         specific data.
1027
1028 2007-05-24  Zdenek Dvorak  <dvorakz@suse.cz>
1029
1030         PR middle-end/32018
1031         * tree-ssa-threadupdate.c (thread_through_loop_header): Use
1032         set_loop_copy.
1033         (thread_through_all_blocks): Call initialize_original_copy_tables
1034         and free_original_copy_tables.
1035         * cfgloopmanip.c (duplicate_loop, duplicate_loop_to_header_edge):
1036         Use set_loop_copy.
1037         * tree-cfg.c (tree_duplicate_sese_region): Ditto.
1038         * cfghooks.c (duplicate_block): Use get_loop_copy.
1039         * cfg.c: Include cfgloop.h.
1040         (loop_copy): New hash table.
1041         (initialize_original_copy_tables): Initialize loop_copy table.
1042         (free_original_copy_tables): Free loop_copy table.
1043         (copy_original_table_clear, copy_original_table_set,
1044         set_loop_copy, get_loop_copy): New functions.
1045         (set_bb_original, set_bb_copy): Use copy_original_table_set.
1046         * cfgloop.h (struct loop): Remove copy field.
1047         * Makefile.in (cfg.o): Add CFGLOOP_H dependency.
1048         * basic-block.h (set_loop_copy, get_loop_copy): Declare.
1049
1050 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1051
1052         * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 for
1053         -msse/-msse2/-msse3.
1054
1055 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1056
1057         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Mark
1058         __builtin_ia32_vec_set_v2di with MASK_64BIT.
1059
1060 2007-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
1061
1062         PR target/27067
1063         * doc/tm.texi (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Document.
1064         * targhooks.h (default_mangle_decl_assembler_name): Declare
1065         default hook.
1066         * targhooks.c (default_mangle_decl_assembler_name): Define
1067         default hook.
1068         * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) New. Set to
1069         default hook.
1070         * target.h (struct gcc_target): Add mangle_decl_assembler_name field.
1071         * langhooks.c (lhd_set_decl_assembler_name): Call
1072         targetm.mangle_decl_assembler_name for names with global scope.
1073
1074         * config/i386/cygming.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) Override
1075         default.
1076         (ASM_OUTPUT_DEF_FROM_DECLS): Simplify to use DECL_ASSEMBLER_NAME.
1077         * config/i386/i386-protos.h (i386_pe_mangle_decl_assembler_name):
1078         Declare.
1079         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
1080         New. Factored out of i386_pe_encode_section_info.
1081         (gen_stdcall_or_fastcall_suffix): Get name identifier as argument.
1082         Move check for prior decoration of stdcall
1083         symbols to i386_pe_encode_section_info.
1084         (i386_pe_encode_section_info): Adjust call to
1085         gen_stdcall_or_fastcall_suffix.  Use
1086         i386_pe_maybe_mangle_decl_assembler_name, if needed.
1087         (i386_pe_mangle_decl_assembler_name): New. Wrap
1088         i386_pe_maybe_mangle_decl_assembler_name.
1089
1090 2007-05-16  Rafael Avila de Espindola  <espindola@google.com>
1091
1092         * c-common.c (c_common_signed_or_unsigned_type): Delay the check for
1093         INTEGRAL_TYPE_P and TYPE_UNSIGNED.
1094         * langhooks.c (get_signed_or_unsigned_type): Don't check for
1095         INTEGRAL_TYPE_P or TYPE_UNSIGNED.
1096         (lhd_signed_or_unsigned_type): Check for INTEGRAL_TYPE_P and
1097         TYPE_UNSIGNED.
1098
1099 2007-05-23  Sandra Loosemore  <sandra@codesourcery.com>
1100             Nigel Stephens  <nigel@mips.com>
1101             Richard Sandiford  <richard@codesourcery.com>
1102
1103         Fix up MIPS16 hard float and add support for complex.
1104
1105         * config/mips/mips.h (TARGET_HARD_FLOAT_ABI): New.
1106         (TARGET_SOFT_FLOAT_ABI): New.
1107         (TARGET_CPU_CPP_BUILTINS): Define __mips_hard_float and
1108         __mips_soft_float to reflect the ABI in use, not whether the
1109         FPU is directly accessible (e.g., in MIPS16 mode).
1110         (UNITS_PER_HWFPVALUE): Use TARGET_SOFT_FLOAT_ABI.
1111         (UNITS_PER_FPVALUE): Likewise.
1112
1113         * config/mips/mips.c (mips_expand_call): Remove redundant
1114         TARGET_MIPS16 check.
1115         (mips_arg_regno): New.
1116         (function_arg_advance): When setting bits in cum->fp_code for
1117         MIPS16, don't subtract 1 from cum->arg_number, since it is now
1118         zero-based.
1119         (function_arg): Use mips_arg_regno.
1120         (mips_return_mode_in_fpr_p): New.
1121         (mips16_call_stub_mode_suffix): New.
1122         (mips16_cfun_returns_in_fpr_p): New.
1123         (mips_save_reg_p): Use mips16_cfun_returns_in_fpr_p.
1124         (mips_output_function_prologue): Test mips16_hard_float, not
1125         !TARGET_SOFT_FLOAT, to decide when a function stub is required.
1126         (mips_expand_epilogue): Call MIPS16 helper routines to copy
1127         return value into a floating-point register.
1128         (mips_can_use_return_insn): Use mips16_cfun_returns_in_fpr_p.
1129         (mips_function_value): Rewrite to use mips_return_mode_in_fpr_p.
1130         (mips16_fp_args): Handle MIPS32r2 ISA which supports
1131         TARGET_FLOAT64, and use mfhc1/mthc1 to copy the most significant
1132         word of double arguments from or to the high bits of 64-bit
1133         floating point registers.
1134         (build_mips16_function_stub): Fill in DECL_RESULT for stubdecl.
1135         (mips16_fpret_double): New helper function.
1136         (build_mips16_call_stub): Use mips16_return_mode_in_fpr_p.  Add
1137         support for complex modes.  Fill in DECL_RESULT for stubdecl.
1138         (mips_init_libfuncs): Remove redundant TARGET_MIPS16 check.
1139
1140         * config/mips/mips16.S
1141         (RET, ARG1, ARG2): New.
1142         (MERGE_GPRf, MERGE_GPRt): New.
1143         (DELAYt, DELAYf): New.
1144         (MOVE_SF_BYTE0, MOVE_SI_BYTE0): New.
1145         (MOVE_SF_BYTE4, MOVE_SF_BYTE8): New.
1146         (MOVE_DF_BYTE0, MOVE_DF_BYTE8): New.
1147         (MOVE_SF_RET, MOVE_SC_RET, MOVE_DF_RET, MOVE_DC_RET, MOVE_SI_RET): New.
1148         (SFOP): Renamed to...
1149         (OPSF3): This, and macro-ified.  Updated all uses.
1150         (SFOP2): Renamed to...
1151         (OPSF2): This, and macro-ified.  Updated all uses.
1152         (SFCMP): Renamed to...
1153         (CMPSF): This, and macro-ified.  Updated all uses.
1154         (SFREVCMP): Renamed to...
1155         (REVCMPSF): This, and macro-ified.  Updated all uses.
1156         (__mips16_floatsisf, __mips16_fix_truncsfsi): Macro-ified.
1157         (LDDBL1, LDDBL2, RETDBL): Deleted.
1158         (DFOP): Renamed to...
1159         (OPDF3): This, and macro-ified.  Updated all uses.
1160         (DFOP2): Renamed to...
1161         (OPDF2): This, and macro-ified.  Updated all uses.
1162         (__mips16_extendsfdf2, __mips16_truncdfsf2): Macro-ified.
1163         (DFCMP): Renamed to...
1164         (CMPDF): This, and macro-ified.  Updated all uses.
1165         (DFREVCMP): Renamed to...
1166         (REVCMPDF): This, and macro-ified.  Updated all uses.
1167         (__mips16_floatsidf, __mips16_fix_truncdfsi): Macro-ified.
1168         (RET_FUNCTION): New.
1169         (__mips16_ret_sf, __mips16_ret_df): Macro-ified.
1170         (__mips16_ret_sc, __mips16_ret_dc): New.
1171         (STUB_ARGS_0, STUB_ARGS_1, STUB_ARGS_5, STUB_ARGS_9, STUB_ARGS_2,
1172         STUB_ARGS_6, STUB_ARGS_10): New.
1173         (CALL_STUB_NO_RET): New.
1174         (__mips16_call_stub_1): Macro-ified.
1175         (__mips16_call_stub_5): Macro-ified.
1176         (__mips16_call_stub_2): Macro-ified.
1177         (__mips16_call_stub_6): Macro-ified.
1178         (__mips16_call_stub_9): Macro-ified.
1179         (__mips16_call_stub_10): Macro-ified.
1180         (CALL_STUB_RET): New.
1181         (__mips16_call_stub_sf_0): Macro-ified.
1182         (__mips16_call_stub_sf_1): Macro-ified.
1183         (__mips16_call_stub_sf_5): Macro-ified.
1184         (__mips16_call_stub_sf_2): Macro-ified.
1185         (__mips16_call_stub_sf_6): Macro-ified.
1186         (__mips16_call_stub_sf_9): Macro-ified.
1187         (__mips16_call_stub_sf_10): Macro-ified.
1188         (__mips16_call_stub_df_0): Macro-ified.
1189         (__mips16_call_stub_df_1): Macro-ified.
1190         (__mips16_call_stub_df_5): Macro-ified.
1191         (__mips16_call_stub_df_2): Macro-ified.
1192         (__mips16_call_stub_df_6): Macro-ified.
1193         (__mips16_call_stub_df_9): Macro-ified.
1194         (__mips16_call_stub_df_10): Macro-ified.
1195         (__mips16_call_stub_sc_0): New.
1196         (__mips16_call_stub_sc_1): New.
1197         (__mips16_call_stub_sc_5): New.
1198         (__mips16_call_stub_sc_2): New.
1199         (__mips16_call_stub_sc_6): New.
1200         (__mips16_call_stub_sc_9): New.
1201         (__mips16_call_stub_sc_10): New.
1202         (__mips16_call_stub_dc_0): New.
1203         (__mips16_call_stub_dc_1): New.
1204         (__mips16_call_stub_dc_5): New.
1205         (__mips16_call_stub_dc_2): New.
1206         (__mips16_call_stub_dc_6): New.
1207         (__mips16_call_stub_dc_9): New.
1208         (__mips16_call_stub_dc_10): New.
1209
1210         * config/mips/t-elf (LIB1ASMFUNCS): Add MIPS16 floating-point stubs.
1211         * config/mips/t-isa3264 (LIB1ASMFUNCS): Likewise.
1212         * config/mips/t-r2900 (LIB1ASMFUNCS): Likewise.
1213
1214 2007-05-23  Ian Lance Taylor  <iant@google.com>
1215
1216         * doc/invoke.texi (Invoking GCC): Document that the order of the
1217         -l option matters.
1218
1219 2007-05-23  Chen Liqin  <liqin@sunnorth.com.cn>
1220
1221         PR target/30987
1222         * config/score/misc.md (bitclr_c, bitset_c, bittgl_c): Remove.
1223         * config/score/predicate.md (const_pow2, const_npow2): Remove.
1224         * config/score/score.h (ASM_OUTPUT_EXTERNAL): Add ASM_OUTPUT_EXTERNAL
1225         undef.
1226
1227         PR target/30474
1228         * config/score/score.c (score_print_operand): Make sure that only
1229         lower bits are used.
1230
1231 2007-05-22  Ian Lance Taylor  <iant@google.com>
1232
1233         * tree-vrp.c (avoid_overflow_infinity): New static function,
1234         broken out of set_value_range_to_value.
1235         (set_value_range_to_value): Call avoid_overflow_infinity.
1236         (extract_range_from_assert): Likewise.
1237
1238 2007-05-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1239
1240         PR middle-end/31095
1241          * builtins.c (expand_builtin_memmove_args): Strip nops that don't
1242         change the type before looking for a COMPOUND_EXPR.
1243
1244 2007-05-22  Ian Lance Taylor  <iant@google.com>
1245
1246         * lower-subreg.c (decompose_multiword_subregs): If we change an
1247         insn, call remove_retval_note on it.
1248
1249 2007-05-22  Richard Sandiford  <rsandifo@nildram.co.uk>
1250
1251         * regs.h (end_hard_regno): New function.
1252         (END_HARD_REGNO, END_REGNO): New macros.
1253         (add_to_hard_reg_set): New function.
1254         (remove_from_hard_reg_set): Likewise.
1255         (in_hard_reg_set_p): Likewise.
1256         (overlaps_hard_reg_set_p): Likewise.
1257         * bt-load.c (find_btr_reference): Use overlaps_hard_reg_set_p.
1258         (note_btr_set): Use END_HARD_REGNO.
1259         * caller-save.c (setup_save_areas): Use end_hard_regno.
1260         (mark_set_regs): Use END_HARD_REGNO.
1261         (add_stored_regs): Use end_hard_regno.
1262         (mark_referenced_regs): Use add_to_hard_reg_set.
1263         * combine.c (update_table_tick): Use END_REGNO.
1264         (record_value_for_reg): Likewise.
1265         (record_dead_and_set_regs): Likewise.
1266         (get_last_value_validate): Likewise.
1267         (use_crosses_set_p): Likewise.
1268         (reg_dead_at_p_1): Likewise.
1269         (reg_dead_at_p): Likewise.
1270         (mark_used_regs_combine): Use add_to_hard_reg_set.
1271         (move_deaths): Use END_HARD_REGNO.
1272         (reg_bitfield_target_p): Use end_hard_regno.
1273         (distribute_notes): Use END_HARD_REGNO.
1274         * cse.c (mention_regs): Use END_REGNO.
1275         (insert): Use add_to_hard_reg_set.
1276         (invalidate): Use END_HARD_REGNO.
1277         (invalidate_for_call): Likewise.
1278         (exp_equiv_p): Use END_REGNO.
1279         (cse_insn): Likewise.
1280         * cselib.c (cselib_invalidate_regno): Use end_hard_regno.
1281         * df-problems.c (df_urec_mark_reg_change): Use END_HARD_REGNO.
1282         * df-scan.c (df_ref_record): Use END_HARD_REGNO.
1283         * function.c (keep_stack_depressed): Use end_hard_regno.
1284         * global.c (global_alloc): Use end_hard_regno.
1285         (global_conflicts): Use add_to_hard_reg_set instead of
1286         mark_reg_live_nc.
1287         (find_reg): Likewise.
1288         (mark_reg_store): Likewise.
1289         (mark_reg_conflicts): Likewise.
1290         (mark_reg_death): Use remove_from_hard_reg_set.
1291         (mark_reg_live_nc): Delete.
1292         (set_preference): Use end_hard_regno.
1293         * local-alloc.c (mark_life): Use add_to_hard_reg_set and
1294         remove_from_hard_reg_set.
1295         (post_mark_life): Use add_to_hard_reg_set.
1296         * mode-switching.c (reg_dies): Use remove_from_hard_reg_set.
1297         (reg_becomes_live): Use add_to_hard_reg_set.
1298         * recog.c (reg_fits_class_p): Use in_hard_reg_set_p.
1299         (peep2_find_free_register): Use add_to_hard_reg_set.
1300         * reg-stack.c (convert_regs_exit): Use END_HARD_REGNO.
1301         * regclass.c (record_reg_classes): Use in_hard_reg_set_p.
1302         * regrename.c (note_sets): Use add_to_hard_reg_set.
1303         (clear_dead_regs): Use remove_from_hard_reg_set.
1304         (regrename_optimize): Use add_to_hard_reg_set.
1305         (find_oldest_value_reg): Use in_hard_reg_set_p.
1306         * reload.c (push_reload): Use in_hard_reg_set_p and end_hard_regno.
1307         (hard_reg_set_here_p): Use end_hard_regno.
1308         (decompose): Likewise.
1309         (reg_overlap_mentioned_for_reload_p): Use END_HARD_REGNO.
1310         (find_equiv_reg): Use in_hard_reg_set_p and end_hard_regno.
1311         * reload1.c (compute_use_by_pseudos): Use add_to_hard_reg_set.
1312         (mark_home_live): Use end_hard_regno.
1313         (spill_hard_reg): Likewise.
1314         (clear_reload_reg_in_use): Likewise.
1315         * reorg.c (delete_prior_computation): Use END_REGNO.
1316         * resource.c (update_live_status): Use END_HARD_REGNO.
1317         (mark_referenced_resources): Use add_to_hard_reg_set.
1318         (mark_set_resources): Likewise.
1319         (mark_target_live_regs): Likewise.  Use remove_from_hard_reg_set.
1320         * rtlanal.c (refers_to_regno_p): Use END_REGNO.
1321         (reg_overlap_mentioned_p): Likewise.
1322         (dead_or_set_p): Likewise.  Use an exclusive upper loop bound.
1323         (covers_regno_no_parallel_p): Use END_REGNO.
1324         (find_regno_note): Likewise.
1325         (find_reg_fusage): Use END_HARD_REGNO.
1326         * stmt.c (decl_overlaps_hard_reg_set_p): Use overlaps_hard_reg_set_p.
1327         * var-tracking.c (emit_note_insn_var_location): Use end_hard_regno.
1328
1329 2007-05-22  Richard Sandiford  <rsandifo@nildram.co.uk>
1330
1331         * mode-switching.c (reg_dies): Change type of second argument to
1332         "HARD_REG_SET *".
1333         (optimize_mode_switching): Update accordingly.
1334
1335 2007-05-22  Richard Sandiford  <richard@codesourcery.com>
1336
1337         * hard-reg-set.h (GO_IF_HARD_REG_SUBSET, GO_IF_HARD_REG_EQUAL): Delete
1338         in favor of...
1339         (hard_reg_subset_p, hard_reg_sets_equal_p, hard_reg_sets_intersect_p)
1340         (hard_reg_set_empty_p): ...these new functions.
1341         * bt-load.c (choose_btr): Use hard_reg_subset_p instead of
1342         GO_IF_HARD_REG_SUBSET.
1343         * cfgcleanup.c (old_insns_match_p): Use hard_reg_sets_equal_p
1344         instead of GO_IF_HARD_REG_EQUAL.
1345         * df-problems.c (df_urec_local_compute): Use hard_reg_set_empty_p
1346         instead of GO_IF_HARD_REG_EQUAL.
1347         * global.c (find_reg): Use hard_reg_set_empty_p instead of
1348         GO_IF_HARD_REG_SUBSET.
1349         (modify_reg_pav): Use hard_reg_set_empty_p instead of
1350         GO_IF_HARD_REG_EQUAL.
1351         * local-alloc.c (find_free_reg): Use hard_reg_subset_p instead
1352         of GO_IF_HARD_REG_SUBSET.
1353         * reg-stack.c (change_stack, convert_regs_1): Use hard_reg_sets_equal_p
1354         instead of GO_IF_HARD_REG_EQUAL.
1355         * regclass.c (init_reg_sets_1, reg_scan_mark_refs): Use
1356         hard_reg_subset_p instead of GO_IF_HARD_REG_SUBSET.
1357         (reg_classes_intersect_p): Use hard_reg_sets_intersect_p instead
1358         of GO_IF_HARD_REG_SUBSET,
1359         * reload1.c (finish_spills): Use hard_reg_subset_p instead of
1360         GO_IF_HARD_REG_SUBSET.
1361         * struct-equiv.c (death_notes_match_p): Use hard_reg_sets_equal_p
1362         instead of GO_IF_HARD_REG_EQUAL.
1363         * config/sh/sh.c (push_regs, calc_live_regs): Use
1364         hard_reg_sets_intersect_p instead of hard_regs_intersect_p.
1365         (hard_regs_intersect_p): Delete.
1366
1367 2007-05-22  Janis Johnson  <janis187@us.ibm.com>
1368
1369         * doc/sourcebuild.texi (Test Directives) Add dg-message.
1370
1371 2007-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1372             Richard Henderson  <rth@redhat.com>
1373
1374         * config.gcc (i[34567]86-*-*): Add smmintrin.h to
1375         extra_headers.
1376         (x86_64-*-*): Likewise.
1377
1378         * i386/i386-modes.def (V2QI): New.
1379
1380         * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 and
1381         SSE4A.
1382         (override_options): Support SSE4.1.
1383         (IX86_BUILTIN_BLENDPD): New for SSE4.1.
1384         (IX86_BUILTIN_BLENDPS): Likewise.
1385         (IX86_BUILTIN_BLENDVPD): Likewise.
1386         (IX86_BUILTIN_BLENDVPS): Likewise.
1387         (IX86_BUILTIN_PBLENDVB128): Likewise.
1388         (IX86_BUILTIN_PBLENDW128): Likewise.
1389         (IX86_BUILTIN_DPPD): Likewise.
1390         (IX86_BUILTIN_DPPS): Likewise.
1391         (IX86_BUILTIN_INSERTPS128): Likewise.
1392         (IX86_BUILTIN_MOVNTDQA): Likewise.
1393         (IX86_BUILTIN_MPSADBW128): Likewise.
1394         (IX86_BUILTIN_PACKUSDW128): Likewise.
1395         (IX86_BUILTIN_PCMPEQQ): Likewise.
1396         (IX86_BUILTIN_PHMINPOSUW128): Likewise.
1397         (IX86_BUILTIN_PMAXSB128): Likewise.
1398         (IX86_BUILTIN_PMAXSD128): Likewise.
1399         (IX86_BUILTIN_PMAXUD128): Likewise.
1400         (IX86_BUILTIN_PMAXUW128): Likewise.
1401         (IX86_BUILTIN_PMINSB128): Likewise.
1402         (IX86_BUILTIN_PMINSD128): Likewise.
1403         (IX86_BUILTIN_PMINUD128): Likewise.
1404         (IX86_BUILTIN_PMINUW128): Likewise.
1405         (IX86_BUILTIN_PMOVSXBW128): Likewise.
1406         (IX86_BUILTIN_PMOVSXBD128): Likewise.
1407         (IX86_BUILTIN_PMOVSXBQ128): Likewise.
1408         (IX86_BUILTIN_PMOVSXWD128): Likewise.
1409         (IX86_BUILTIN_PMOVSXWQ128): Likewise.
1410         (IX86_BUILTIN_PMOVSXDQ128): Likewise.
1411         (IX86_BUILTIN_PMOVZXBW128): Likewise.
1412         (IX86_BUILTIN_PMOVZXBD128): Likewise.
1413         (IX86_BUILTIN_PMOVZXBQ128): Likewise.
1414         (IX86_BUILTIN_PMOVZXWD128): Likewise.
1415         (IX86_BUILTIN_PMOVZXWQ128): Likewise.
1416         (IX86_BUILTIN_PMOVZXDQ128): Likewise.
1417         (IX86_BUILTIN_PMULDQ128): Likewise.
1418         (IX86_BUILTIN_PMULLD128): Likewise.
1419         (IX86_BUILTIN_ROUNDPD): Likewise.
1420         (IX86_BUILTIN_ROUNDPS): Likewise.
1421         (IX86_BUILTIN_ROUNDSD): Likewise.
1422         (IX86_BUILTIN_ROUNDSS): Likewise.
1423         (IX86_BUILTIN_PTESTZ): Likewise.
1424         (IX86_BUILTIN_PTESTC): Likewise.
1425         (IX86_BUILTIN_PTESTNZC): Likewise.
1426         (IX86_BUILTIN_VEC_EXT_V16QI): Likewise.
1427         (IX86_BUILTIN_VEC_SET_V2DI): Likewise.
1428         (IX86_BUILTIN_VEC_SET_V4SF): Likewise.
1429         (IX86_BUILTIN_VEC_SET_V4SI): Likewise.
1430         (IX86_BUILTIN_VEC_SET_V16QI): Likewise.
1431         (bdesc_ptest): New.
1432         (bdesc_sse_3arg): Likewise.
1433         (bdesc_2arg): Likewise.
1434         (bdesc_1arg): Likewise.
1435         (ix86_init_mmx_sse_builtins): Support SSE4.1.  Handle SSE builtins
1436         with 3 args.
1437         (ix86_expand_sse_4_operands_builtin): New.
1438         (ix86_expand_unop_builtin): Support 2 arg builtins with a constant
1439         smaller than 8 bits as the 2nd arg.
1440         (ix86_expand_sse_ptest): New.
1441         (ix86_expand_builtin): Support SSE4.1. Support 3 arg SSE builtins.
1442         (ix86_expand_vector_set): Support SSE4.1.
1443         (ix86_expand_vector_extract): Likewise.
1444
1445         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
1446         __SSE4_1__ for -msse4.1.
1447
1448         * config/i386/i386.md (UNSPEC_BLENDV): New for SSE4.1.
1449         (UNSPEC_INSERTPS): Likewise.
1450         (UNSPEC_DP): Likewise.
1451         (UNSPEC_MOVNTDQA): Likewise.
1452         (UNSPEC_MPSADBW): Likewise.
1453         (UNSPEC_PHMINPOSUW): Likewise.
1454         (UNSPEC_PTEST): Likewise.
1455         (UNSPEC_ROUNDP): Likewise.
1456         (UNSPEC_ROUNDS): Likewise.
1457
1458         * config/i386/i386.opt (msse4.1): New for SSE4.1.
1459
1460         * config/i386/predicates.md (const_pow2_1_to_2_operand): New.
1461         (const_pow2_1_to_32768_operand): Likewise.
1462
1463         * config/i386/smmintrin.h: New. The SSE4.1 intrinsic header
1464         file.
1465
1466         * config/i386/sse.md (*vec_setv4sf_sse4_1): New pattern for
1467         SSE4.1.
1468         (sse4_1_insertps): Likewise.
1469         (*sse4_1_extractps): Likewise.
1470         (sse4_1_ptest): Likewise.
1471         (sse4_1_mulv2siv2di3): Likewise.
1472         (*sse4_1_mulv4si3): Likewise.
1473         (*sse4_1_smax<mode>3): Likewise.
1474         (*sse4_1_umax<mode>3): Likewise.
1475         (*sse4_1_smin<mode>3): Likewise.
1476         (*sse4_1_umin<mode>3): Likewise.
1477         (sse4_1_eqv2di3): Likewise.
1478         (*sse4_1_pinsrb): Likewise.
1479         (*sse4_1_pinsrd): Likewise.
1480         (*sse4_1_pinsrq): Likewise.
1481         (*sse4_1_pextrb): Likewise.
1482         (*sse4_1_pextrb_memory): Likewise.
1483         (*sse4_1_pextrw_memory): Likewise.
1484         (*sse4_1_pextrq): Likewise.
1485         (sse4_1_blendpd): Likewise.
1486         (sse4_1_blendps): Likewise.
1487         (sse4_1_blendvpd): Likewise.
1488         (sse4_1_blendvps): Likewise.
1489         (sse4_1_dppd): Likewise.
1490         (sse4_1_dpps): Likewise.
1491         (sse4_1_movntdqa): Likewise.
1492         (sse4_1_mpsadbw): Likewise.
1493         (sse4_1_packusdw): Likewise.
1494         (sse4_1_pblendvb): Likewise.
1495         (sse4_1_pblendw): Likewise.
1496         (sse4_1_phminposuw): Likewise.
1497         (sse4_1_extendv8qiv8hi2): Likewise.
1498         (*sse4_1_extendv8qiv8hi2): Likewise.
1499         (sse4_1_extendv4qiv4si2): Likewise.
1500         (*sse4_1_extendv4qiv4si2): Likewise.
1501         (sse4_1_extendv2qiv2di2): Likewise.
1502         (*sse4_1_extendv2qiv2di2): Likewise.
1503         (sse4_1_extendv4hiv4si2): Likewise.
1504         (*sse4_1_extendv4hiv4si2): Likewise.
1505         (sse4_1_extendv2hiv2di2): Likewise.
1506         (*sse4_1_extendv2hiv2di2): Likewise.
1507         (sse4_1_extendv2siv2di2): Likewise.
1508         (*sse4_1_extendv2siv2di2): Likewise.
1509         (sse4_1_zero_extendv8qiv8hi2): Likewise.
1510         (*sse4_1_zero_extendv8qiv8hi2): Likewise.
1511         (sse4_1_zero_extendv4qiv4si2): Likewise.
1512         (*sse4_1_zero_extendv4qiv4si2): Likewise.
1513         (sse4_1_zero_extendv2qiv2di2): Likewise.
1514         (*sse4_1_zero_extendv2qiv2di2): Likewise.
1515         (sse4_1_zero_extendv4hiv4si2): Likewise.
1516         (*sse4_1_zero_extendv4hiv4si2): Likewise.
1517         (sse4_1_zero_extendv2hiv2di2): Likewise.
1518         (*sse4_1_zero_extendv2hiv2di2): Likewise.
1519         (sse4_1_zero_extendv2siv2di2): Likewise.
1520         (*sse4_1_zero_extendv2siv2di2): Likewise.
1521         (sse4_1_roundpd): Likewise.
1522         (sse4_1_roundps): Likewise.
1523         (sse4_1_roundsd): Likewise.
1524         (sse4_1_roundss): Likewise.
1525         (mulv4si3): Don't expand for SSE4.1.
1526         (smax<mode>3): Likewise.
1527         (umaxv4si3): Likewise.
1528         (uminv16qi3): Likewise.
1529         (umin<mode>3): Likewise.
1530         (umaxv8hi3): Rewrite.  Only enabled for SSE4.1.
1531
1532         * doc/extend.texi: Document SSE4.1 built-in functions.
1533
1534         * doc/invoke.texi: Document -msse4.1.
1535
1536 2007-05-22  Nathan Sidwell  <nathan@codesourcery.com>
1537
1538         * config/m68k/linux.h (ASM_SPEC): Add asm_pcrel_spec.
1539         * config/m68k/m68k-none.h (ASM_SPEC): Don't override here.
1540         * config/m68k/m68k.h (ASM_PCREL_SPEC): New.
1541         (ASM_SPEC): Add asm_pcrel_spec.
1542         (EXTRA_SPECS): Add asm_pcrel_spec.
1543
1544 2007-05-21  David Daney  <ddaney@avtrex.com>
1545
1546         * doc/install.texi (Building a cross compiler): Add requirements
1547         for Java cross compiler.
1548
1549 2007-05-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1550
1551         PR middle-end/31995
1552         * tree-chrec.c (evolution_function_is_affine_multivariate_p):
1553         Add loopno argument.  Use evolution_function_is_invariant_rec_p
1554         instead of evolution_function_is_constant_p.
1555         Update calls to evolution_function_is_affine_multivariate_p.
1556         * tree-chrec.h (evolution_function_is_affine_multivariate_p):
1557         Add loopno argument.
1558         * tree-scalar-evolution.c (gather_chrec_stats): Call
1559         evolution_function_is_affine_multivariate_p with a loop
1560         number of 0.
1561         * tree-data-ref.c (analyze_miv_subscript): Likewise.
1562         (analyze_overlapping_iterations): Likewise.
1563         (access_functions_are_affine_or_constant_p): Likewise.
1564         (build_classic_dist_vector_1): If the access functions
1565         are equal, don't do anything.
1566
1567 2007-05-21  Paolo Bonzini  <bonzini@gnu.org>
1568             Paolo Carlini  <pcarlini@suse.de>
1569             Uros Bizjak  <ubizjak@gmail.com>
1570
1571         * c-cppbuiltin.c (c_cpp_builtins): Define
1572         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
1573         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8,
1574         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16, if appropriate.
1575         * doc/cpp.texi ([Standard Predefined Macros]): Document.
1576
1577 2007-05-21  Mike Stump  <mrs@apple.com>
1578
1579         * config/darwin.h (LINK_COMMAND_SPEC): Add .cxx/.cp for dsymutil
1580         handling as well.
1581         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
1582
1583 2007-05-21  Uros Bizjak  <ubizjak@gmail.com>
1584
1585         * config/i386/tmmintrin.h (_mm_alignr_epi8): Provide macro
1586         implementation if __OPTIMIZE__ is not defined.
1587         (_mm_alignr_pi8): Ditto.
1588         * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
1589         (_mm_inserti_si64): Ditto.
1590         * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
1591         (_mm_slli_epi16): Ditto.
1592         (_mm_slli_epi32): Ditto.
1593         (_mm_slli_epi64): Ditto.
1594         (_mm_srai_epi16): Ditto.
1595         (_mm_srai_epi32): Ditto.
1596         (_mm_srli_si128): Ditto.
1597         (_mm_slli_si128): Ditto.
1598         (_mm_srli_epi16): Ditto.
1599         (_mm_srli_epi32): Ditto.
1600         (_mm_srli_epi64): Ditto.
1601         (_mm_extract_epi16): Ditto.
1602         (_mm_insert_epi16): Ditto.
1603         (_mm_shufflehi_epi16): Ditto.
1604         (_mm_shufflelo_epi16): Ditto.
1605         (_mm_shuffle_epi32): Ditto.
1606         * config/i386/xmmintrin.h (_mm_extract_pi16): Ditto.
1607         (_m_pextrw): Ditto.
1608         (_mm_insert_pi16): Ditto.
1609         (_m_pinsrw): Ditto.
1610         (_mm_shuffle_pi16): Ditto.
1611         (_m_pshufw): Ditto.
1612         (_mm_shufle_ps): Ditto.
1613         (_mm_prefetch): Ditto.
1614
1615 2007-05-21  Andreas Krebbel  <krebbel1@de.ibm.com>
1616
1617         * defaults.h (IBM_FLOAT_FORMAT): Macro definition removed.
1618         * doc/tm.texi (IBM_FLOAT_FORMAT): Documentation entry removed.
1619         * real.c (encode_i370_single, decode_i370_single,
1620         encode_i370_double, decode_i370_double): Functions removed.
1621         (i370_single_format, i370_double_format): Initializations removed.
1622         (real_maxval, round_for_format, exact_real_truncate, significand_size):
1623         Consider the log2_b field to always be one.
1624         (ieee_single_format, mips_single_format, coldfire_single_format,
1625         ieee_double_format, mips_double_format, coldfire_double_format,
1626         ieee_extended_motorola_format, ieee_extended_intel_96_format,
1627         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
1628         ibm_extended_format, mips_extended_format, ieee_quad_format,
1629         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
1630         decimal_single_format, decimal_double_format, decimal_quad_format,
1631         c4x_single_format, c4x_extended_format, real_internal_format): Remove
1632         initialization of log2_b.
1633         * real.h (i370_single_format, i370_double_format): Declarations removed.
1634         * c-cppbuiltin.c (builtin_define_float_constants): Consider the log2_b
1635         field to always be one.
1636
1637 2007-05-21  Andreas Schwab  <schwab@suse.de>
1638
1639         * config/ia64/ia64.c (emit_predicate_relation_info): Fix use of
1640         NOTE_INSN_BASIC_BLOCK_P.
1641         (process_for_unwind_directive): Likewise.
1642
1643 2007-05-21  Nathan Sidwell  <nathan@codesourcery.com>
1644
1645         * builtins.c (expand_builtin_setjmp_setup): Update comment.
1646         * function.h (struct function): Move va_list_gpr_size,
1647         va_list_fpr_size, function_frequency to front of bitfields.  Add
1648         calls_unwind_init.
1649         (current_function_calls_unwind_init): New.
1650         * except.c (expand_builtin_unwind_init): Set
1651         current_function_calls_unwind_init not
1652         current_function_has_nonlocal_label.
1653         * reload1.c (has_nonexceptional_receiver): New.
1654         (reload): Use it and current_function_calls_unwind_init to
1655         determine whether call-saved regs must be saved.
1656
1657 2007-05-20  Jan Hubicka  <jh@suse.cz>
1658
1659         * gengtype.c (adjust_field_rtx_def): Use NOTE_KIND instead of
1660         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
1661         * ddg.c (create_ddg): LIkewise.
1662         * final.c (final): Remove hunk moving line numbernotes around since
1663         they are no longer present at this stage.
1664         (final_scan_insn): Use NOTE_KIND instead of
1665         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
1666         (output_asm_label): Likewise.
1667         * reorg.c (dbr_schedule): Likewise.
1668         * haifa-sched.c (unlink_other_notes): Likewise.
1669         * mode-switching.c (optimize_mode_switching): Likewise.
1670         * graph.c (start_bb): Likewise.
1671         * rtl.def (NOTE): Update description.
1672         * jump.c (squeeze_notes): Delete.
1673         (mark_jump_label): Use NOTE_KIND instead of NOTE_LINE_NUMBER; use
1674         NOTE_INSN_BASIC_BLOCK_P when possible.
1675         * ifcvt.c (dead_or_predicable): Remove call of squeeze_notes.
1676         * dwarf2out.c (gen_label_die): Use NOTE_KIND instead of
1677         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
1678         (dwarf2out_var_location): Likewise.
1679         * cfgbuild.c (make_edges): Likewise.
1680         (find_basic_blocks_1): Likewise.
1681         * function.c (reorder_blocks_1): Likewise.
1682         (epilogue_done): Likewise.
1683         (reposition_prologue_and_epilogue_notes): Likewise.
1684         * print-rtl.c (print_rtx): Likewise; drop code for printing line number
1685         notes.
1686         (print_rtl): Likewise.
1687         (print_rtl_single): Likewise.
1688         * gcse.c (insert_insn_start_bb): Likewise.
1689         * alias.c (init_alias_analysis): Likewise.
1690         * calls.c (fixup_tail_calls): Likewise.
1691         * except.c (sjlj_emit_function_enter): Likewise.
1692         * emit-rtl.c (add_insn_after): Likeiwse.
1693         (emit_label_before): Likewise.
1694         (emit_label_after): Likewise.
1695         (emit_note_before, emit_note_after, emit_note): Update
1696         parameter to be enum insn_note; do not deal with source
1697         files.
1698         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps):
1699         Use NOTE_KIND instead of NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P
1700         when possible.
1701         (merge_blocks_move_successor_nojumps): Simplify now when
1702         we don't have BLOCK notes.
1703         (try_optimize_cfg): Likewise.
1704         * cfglayout.c (skip_insns_after_block): Likewise.
1705         (record_effective_endpoints): Likewise.
1706         (duplicate_insn_chain): Likewise.
1707         * varasm.c (output_constant_pool_1): Likewise.
1708         * sched-deps.c (sched_analyze): Likewise.
1709         * rtl.c (NOTE_INSN_MAX_isnt_negative_adjust_NOTE_INSN_BIAS):
1710         Exterminate.
1711         (note_insn_name): Simplify now when NOTE_INSN_BIAS is gone.
1712         * rtl.h (NOTE_SOURCE_LOCATION, NOTE_EXPANDED_LOCATION): Exterminate.
1713         (SET_INSN_DELETED): Simplify.
1714         (NOTE_LINE_NUMBER): Exterminate.
1715         (NOTE_LINE_KIND): New.
1716         (NOTE_INSN_BASIC_BLOCK_P): Update.
1717         (enum insn_note): Simplify.
1718         (GET_NOTE_INSN_NAME) Simplify.
1719         (emit_note_before, emit_note_after, emit_note): Update prototype.
1720         (squeeze_notes): Remove.
1721         * sched-int.h (NOTE_NOT_BB_P): Update.
1722         * resource.c (mark_target_live_regs): Update.
1723         * sched-rgn.c (debug_dependencies): Update.
1724         * sched-vis.c (print_insn): Update.
1725         * config/alpha/alpha.c (alpha_handle_trap_shadows): Update.
1726         * config/i386/i386.c (ix86_output_function_epilogue): Update.
1727         * config/sh/sh.c (sh_adjust_unroll_max): Function dead since gcc 4.0.0.
1728         (TARGET_ADJUST_UNROLL_MAX): Likewise.
1729         (split_branches): Update.
1730         (sh_optimize_target_register_callee_saved): Remove hunk dead since gcc
1731         4.0.0.
1732         (sh_adjust_unroll_max): Exterminate.
1733         * config/c4x/c4x.c (c4x_reorg): Use SET_INSN_DELETED.
1734         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Likewise.
1735         (m68hc11_reorg): Likewise.
1736         * config/ia64/ia64.c (emit_insn_group_barriers): Update.
1737         (emit_predicate_relation_info): Update.
1738         (process_for_unwind_directive): Update.
1739         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update.
1740         (output_call): Update.
1741         * config/pa/pa.c (output_lbranch): Update.
1742         (output_millicode_call): Update.
1743         (output_call): Update.
1744         (pa_combine_instructions): Update.
1745         * config/mips/mips.c (mips16_gp_pseudo_reg): Update.
1746         * config/bfin/bfin.c (gen_one_bundle): Update.
1747         * cfgrtl.c (can_delete_note_p): Update.
1748         (delete_insn): Update.
1749         (rtl_merge_blocks): Update.
1750         (commit_one_edge_insertion): Update.
1751         (rtl_verify_flow_info): Update.
1752         * stmt.c (expand_case): Do not call squeeze_notes.
1753
1754 2007-05-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1755
1756         PR middle-end/7651
1757         PR c++/11856
1758         PR c/12963
1759         PR c/23587
1760         PR other/29694
1761         * c.opt (Wtype-limits): New.
1762         * doc/invoke.texi (Wtype-limits): Document it.
1763         (Wextra): Enabled by -Wextra.
1764         * c-opts.c (c_common_post_options): Enabled by -Wextra.
1765         * c-common.c (shorten_compare): Warn with Wtype-limits.
1766
1767 2007-05-20  Uros Bizjak  <ubizjak@gmail.com>
1768
1769         * config/i386/tmmintrin.h (_mm_alignr_epi32): Implement as always
1770         inlined function, not as a macro.
1771         (_mm_alignr_pi8): Ditto.
1772         * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
1773         (_mm_inserti_si64): Ditto.
1774         * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
1775         (_mm_extract_epi16): Ditto.
1776         (_mm_insert_epi16): Ditto.
1777         (_mm_shufflehi_epi16): Ditto.
1778         (_mm_shufflelo_epi16): Ditto.
1779         (_mm_shuffle_epi32): Ditto.
1780         * config/i386/xmmintrin.h (_mm_set_ss): Use 0.0f for float constant.
1781         * config/386/mm3dnow.h: Add __attribute__((__always_inline__)) to
1782         all functions.
1783         (_m_from_float): Add __extension__ to conversion.  Use 0.0f for
1784         float constant.
1785         (_m_to_float): Use C89 compatible assignment.
1786
1787 2007-04-20  Martin Michlmayr  <tbm@cyrius.com>
1788
1789         PR target/32007
1790         * config/arm/lib1funcs.asm: Define __ARM_ARCH__ on v2/v3 machines.
1791
1792 2007-05-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1793
1794         PR middle-end/7651
1795         * doc/invoke.texi (Wreturn-type): Complete description.
1796         (Wextra): Delete item about return-type warning.
1797         * c-decl.c: Delete redundant Wextra warning.
1798
1799 2007-05-20  Uros Bizjak  <ubizjak@gmail.com>
1800
1801         PR target/31585
1802         * config/i386/pmmintrin.h: Do not include xmmintrin.h
1803         * config/i386/xmmintrin.h (_mm_extract_pi16): Implement as always
1804         inlined function, not as a macro.
1805         (_mm_prefetch): Ditto.
1806         (_m_pextrw): Ditto.
1807         (_mm_insert_pi16): Ditto.
1808         (_m_pinsrw): Ditto.
1809         (_mm_shuffle_pi16): Ditto.  Add const to __N argument.
1810         (_m_pshufw): Ditto. Add const to __N argument.
1811         (_mm_shufle_ps): Ditto.  Add const to __mask argument.
1812         * config/i386/emmintrin.h (_mm_slli_epi16): Add const to __B argument.
1813         (_mm_slli_epi32): Ditto.
1814         (_mm_srli_si128): Implement as always inlined function, not as a macro.
1815         Add __inline to function declaration.
1816         (_mm_slli_si128): Ditto.
1817
1818 2007-05-19  Uros Bizjak  <ubizjak@gmail.com>
1819
1820         * config/i386/sfp-machine.h (FP_EX_INVALID, FP_EX_DENORM,
1821         FP_EXP_DIVZERO, FP_EX_OVERFLOW, FP_EX_UNDERFLOW, FP_EX_INEXACT):
1822         New constants.
1823         (struct fenv): New structure.
1824         (FP_HANDLE_EXCEPTIONS): New define.
1825         (FP_RND_NEAREST, FP_RND_ZERO, FP_RND_PINF, FP_RND_MINF): New constants.
1826         (_FP_DECL_EXP): New define.
1827         (FP_INIT_ROUNDMODE): New define.
1828         (FP_ROUNDMODE): New define.
1829
1830 2007-05-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1831
1832         * doc/invoke.texi (Warning Options): Add -Wconversion-sign.
1833         (Wconversion): Update description.
1834         (Wconversion-sign): New.
1835         * c.opt (Wconversion-sign): New.
1836         * c-opts.c (c_common_post_options): Uninitialized Wconversion-sign
1837         means disabled for C++. Otherwise, take the status of Wconversion.
1838         * c-common.c (conversion_warning): Warn with either Wconversion or
1839         Wconversion-sign.
1840         (warnings_for_convert_and_check): Conditions are already checked by
1841         conversion_warning.
1842         (convert_and_check): Don't check warnings if the conversion failed.
1843
1844 2007-05-19 Andy Hutchinson <HutchinsonAndy@netscape.net>
1845            Anatoly Sokolov <aesok@dol.ru>
1846
1847         * config/avr/avr-protos.h (expand_prologue, expand_epilogue,
1848         avr_epilogue_uses) : Add declaration.
1849         * config/avr/predicates.md (avr_sp_immediate_operand): New predicate.
1850         * config/avr/constraints.md (R): New constraint.
1851         config/avr/avr.md (SREG_ADDR, UNSPEC_SEI, UNSPEC_CLI,
1852         UNSPECV_PROLOGUE_SAVES, UNSPECV_EPILOGUE_RESTORES): New constants.
1853         (*pop1, *pop2, *pop3, *pop4, *pop5): Combine into ...
1854         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): ... these patterns.
1855         (*movhi_sp, popqi, pophi, enable_interrupt, disable_interrupt,
1856         call_prologue_saves, epilogue_restores, return_from_epilogue,
1857         return_from_main_epilogue, return_from_interrupt_epilogue,
1858         return_from_naked_epilogue, prologue, epilogue): New patterns.
1859         (jump): Handle symbol reference.
1860         * config/avr/avr.c (out_adj_frame_ptr, out_set_stack_ptr,
1861         avr_output_function_prologue, avr_output_function_epilogue): Remove
1862         functions.
1863         (avr_init_machine_status, expand_prologue, expand_epilogue,
1864         avr_asm_function_end_prologue, avr_epilogue_uses,
1865         avr_asm_function_begin_epilogue): New functions.
1866         (prologue_size, epilogue_size, jump_tables_size): Remove global
1867         variables.
1868         (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
1869         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
1870         (TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): Define.
1871         (avr_override_options): Initialise init_machine_status.
1872         (output_movhi): Handle all stack pointer loads.
1873         (out_movqi_r_mr, out_movqi_mr_r): Handle SREG_ADDR address.
1874         (avr_output_addr_vec_elt): Do not use variable jump_tables_size.
1875         * config/avr/avr.h (AVR_2_BYTE_PC, AVR_3_BYTE_PC): New.
1876         (EPILOGUE_USES) Redefine.
1877         (machine_function) Declare.
1878
1879 2007-05-19  Richard Sandiford  <richard@codesourcery.com>
1880
1881         * config/mips/mips.c (mips_offset_within_alignment_p): Tweak comment.
1882         Use a single return statement.
1883
1884 2007-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1885
1886         PR middle-end/30250
1887         * builtins.c (do_mpfr_lgamma_r): New.
1888         (fold_builtin_2): Handle builtin gamma_r/lgamma_r.
1889         * tree.h (CASE_FLT_FN_REENT): New.
1890
1891 2007-05-18  Geoffrey Keating  <geoffk@apple.com>
1892
1893         * dwarf2out.c (print_die): Use '%ld' not '%lu' to print a 'long'.
1894         (output_die): Use 'unsigned long' with %x.
1895         * sched-vis.c (print_value): Use 'unsigned HOST_WIDE_INT' and
1896         HOST_WIDE_INT_PRINT_HEX to print HOST_WIDE_INT.
1897         * tree-dump.c (dump_pointer): Use 'unsigned long' for %lx.
1898
1899         * unwind-dw2.c (uw_identify_context): Use the CFA, not the IP.
1900
1901 2007-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1902
1903         PR target/31989
1904         PR target/31681
1905         PR target/31666
1906         * config/i386/i386.c (init_cumulative_args): Set maybe_vaarg to
1907         true if function has no argument.
1908
1909 2007-05-18  DJ Delorie  <dj@redhat.com>
1910
1911         * config/mips/mips.c (mips_offset_within_alignment_p): New.
1912         (mips_symbolic_constant_p): Call it for TPREL and DTPREL symbols.
1913
1914 2007-05-18  Uros Bizjak  <ubizjak@gmail.com>
1915
1916         * longlong.h (__x86_64__): Add definitions for add_ssaaaa,
1917         sub_ddmmss, umul_ppmm, udiv_qrnnd, count_leading_zeros and
1918         count_trailing_zeros.
1919         (__i386__): Implement count_leading_zeros using __builtin_clz().
1920         Implement count_trailing_zeros usign __builtin_ctz().
1921
1922 2007-05-18  Richard Sandiford  <richard@codesourcery.com>
1923
1924         * config/i386/vxworks.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine.
1925
1926 2007-05-18  Uros Bizjak  <ubizjak@gmail.com>
1927
1928         PR middle-end/31344
1929         * expr.c (emit_move_change_mode): Change mode of push operands here.
1930
1931 2007-05-17  Ian Lance Taylor  <iant@google.com>
1932
1933         PR tree-optimization/31953
1934         * tree-vrp.c (set_value_range_to_value): Add equiv parameter.
1935         Change all callers.
1936         (set_value_range_to_null): Call set_value_range_to_value.
1937         (extract_range_from_comparison): Likewise.
1938
1939 2007-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1940
1941         * toplev.c (print_version): Output GMP/MPFR version info.
1942
1943         * builtins.c (CASE_MATHFN_REENT): New macro.
1944         (mathfn_built_in): Use it.
1945         * builtins.def (BUILT_IN_GAMMA_R, BUILT_IN_GAMMAF_R,
1946         BUILT_IN_GAMMAL_R, BUILT_IN_LGAMMA_R, BUILT_IN_LGAMMAF_R,
1947         BUILT_IN_LGAMMAL_R): New.
1948         * doc/extend.texi: Document new builtins.
1949
1950         PR middle-end/31796
1951         * builtins.c (do_mpfr_remquo): New.
1952         (fold_builtin_2): Handle BUILT_IN_DREM/BUILT_IN_REMAINDER.
1953         (fold_builtin_3): Handle BUILT_IN_REMQUO.
1954
1955         PR middle-end/30251
1956         * builtins.c (fold_builtin_1): Handle y0, y1.
1957         (fold_builtin_2): Handle yn.
1958
1959         PR middle-end/30251
1960         * builtins.c (do_mpfr_bessel_n): New.
1961         (fold_builtin_1): Handle BUILT_IN_J0 and BUILT_IN_J1.
1962         (fold_builtin_2): Handle BUILT_IN_JN.
1963
1964 2007-05-17  Danny Smith  <dannysmith@users.sourceforge.net>
1965
1966         PR target/31965
1967         * config/i386/mingw32.h (_INTEGRAL_MAX_BITS): Define builtin as
1968         TYPE_PRECISION (intmax_type_node).
1969
1970 2007-05-17  Steve Ellcey  <sje@cup.hp.com>
1971
1972         PR target/31850
1973         * reload.c (subst_reloads): Remove checking.
1974
1975 2007-05-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
1976
1977         PR rtl-optimization/31691
1978         * combine.c (simplify_set): Build a new src pattern instead of
1979         substituting its operands in the COMPARE case.
1980
1981 2007-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
1982
1983         * tree-vrp.c (finalize_jump_threads): Do not care about dominance info.
1984         (execute_vrp): Preserve loops through jump threading.
1985         * tree-ssa-threadupdate.c (thread_single_edge,
1986         dbds_continue_enumeration_p, determine_bb_domination_status,
1987         thread_through_loop_header): New functions.
1988         (create_edge_and_update_destination_phis,
1989         create_edge_and_update_destination_phis): Set loops for the new blocks.
1990         (prune_undesirable_thread_requests): Removed.
1991         (redirect_edges): Do not pretend that redirect_edge_and_branch can
1992         create new blocks.
1993         (thread_block): Do not call prune_undesirable_thread_requests.
1994         Update loops.
1995         (mark_threaded_blocks): Select edges to thread here.
1996         (thread_through_all_blocks): Take may_peel_loop_headers argument.
1997         Thread edges through loop headers independently.
1998         * cfgloopmanip.c (create_preheader, mfb_keep_just): Export.
1999         * tree-pass.h (TODO_mark_first_instance): New.
2000         (first_pass_instance): Declare.
2001         * cfghooks.c (duplicate_block): Put the block to the original loop
2002         if copy is not specified.
2003         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Preserve loops through
2004         jump threading.  Pass may_peel_loop_headers to
2005         thread_through_all_blocks according to first_pass_instance.
2006         * cfgloop.h (create_preheader): Declare.
2007         * tree-flow.h (thread_through_all_blocks): Declaration changed.
2008         * basic-block.h (mfb_keep_just, mfb_kj_edge): Declare.
2009         * passes.c (first_pass_instance): New variable.
2010         (next_pass_1): Set TODO_mark_first_instance.
2011         (execute_todo): Set first_pass_instance.
2012
2013 2007-05-17  Uros Bizjak  <ubizjak@gmail.com>
2014
2015         PR tree-optimization/24659
2016         * optabs.h (enum optab_index): Add OTI_vec_unpacks_float_hi,
2017         OTI_vec_unpacks_float_lo, OTI_vec_unpacku_float_hi,
2018         OTI_vec_unpacku_float_lo, OTI_vec_pack_sfix_trunc and
2019         OTI_vec_pack_ufix_trunc.
2020         (vec_unpacks_float_hi_optab): Define new macro.
2021         (vec_unpacks_float_lo_optab): Ditto.
2022         (vec_unpacku_float_hi_optab): Ditto.
2023         (vec_unpacku_float_lo_optab): Ditto.
2024         (vec_pack_sfix_trunc_optab): Ditto.
2025         (vec_pack_ufix_trunc_optab): Ditto.
2026         * genopinit.c (optabs): Implement vec_unpack[s|u]_[hi|lo]_optab
2027         and vec_pack_[s|u]fix_trunc_optab using
2028         vec_unpack[s|u]_[hi\lo]_* and vec_pack_[u|s]fix_trunc_* patterns
2029         * tree-vectorizer.c (supportable_widening_operation): Handle
2030         FLOAT_EXPR and CONVERT_EXPR.  Update comment.
2031         (supportable_narrowing_operation): New function.
2032         * tree-vectorizer.h (supportable_narrowing_operation): Prototype.
2033         * tree-vect-transform.c (vectorizable_conversion): Handle
2034         (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
2035         (vect_gen_widened_results_half): Move before vectorizable_conversion.
2036         (vectorizable_type_demotion): Call supportable_narrowing_operation()
2037         to check for target support.
2038         * optabs.c (optab_for_tree_code) Return vec_unpack[s|u]_float_hi_optab
2039         for VEC_UNPACK_FLOAT_HI_EXPR, vec_unpack[s|u]_float_lo_optab
2040         for VEC_UNPACK_FLOAT_LO_EXPR and vec_pack_[u|s]fix_trunc_optab
2041         for VEC_PACK_FIX_TRUNC_EXPR.
2042         (expand_binop): Special case mode of the result for
2043         vec_pack_[u|s]fix_trunc_optab.
2044         (init_optabs): Initialize vec_unpack[s|u]_[hi|lo]_optab and
2045         vec_pack_[u|s]fix_trunc_optab.
2046
2047         * tree.def (VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR,
2048         VEC_PACK_FIX_TRUNC_EXPR): New tree codes.
2049         * tree-pretty-print.c (dump_generic_node): Handle
2050         VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR and
2051         VEC_PACK_FIX_TRUNC_EXPR.
2052         (op_prio): Ditto.
2053         * expr.c (expand_expr_real_1): Ditto.
2054         * tree-inline.c (estimate_num_insns_1): Ditto.
2055         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
2056
2057         * config/i386/sse.md (vec_unpacks_float_hi_v8hi): New expander.
2058         (vec_unpacks_float_lo_v8hi): Ditto.
2059         (vec_unpacku_float_hi_v8hi): Ditto.
2060         (vec_unpacku_float_lo_v8hi): Ditto.
2061         (vec_unpacks_float_hi_v4si): Ditto.
2062         (vec_unpacks_float_lo_v4si): Ditto.
2063         (vec_pack_sfix_trunc_v2df): Ditto.
2064
2065         * doc/c-tree.texi (Expression trees) [VEC_UNPACK_FLOAT_HI_EXPR]:
2066         Document.
2067         [VEC_UNPACK_FLOAT_LO_EXPR]: Ditto.
2068         [VEC_PACK_FIX_TRUNC_EXPR]: Ditto.
2069         * doc/md.texi (Standard Names) [vec_pack_sfix_trunc]: Document.
2070         [vec_pack_ufix_trunc]: Ditto.
2071         [vec_unpacks_float_hi]: Ditto.
2072         [vec_unpacks_float_lo]: Ditto.
2073         [vec_unpacku_float_hi]: Ditto.
2074         [vec_unpacku_float_lo]: Ditto.
2075
2076 2007-05-16  Uros Bizjak  <ubizjak@gmail.com>
2077
2078         * soft-fp/README: Update for new files.
2079         * soft-fp/floattisf.c: New file.
2080         * soft-fp/floattidf.c: New file.
2081         * soft-fp/floattitf.c: New file.
2082         * soft-fp/floatuntisf.c: New file.
2083         * soft-fp/floatuntidf.c: New file.
2084         * soft-fp/floatuntitf.c: New file.
2085         * soft-fp/fixsfti.c: New file.
2086         * soft-fp/fixdfti.c: New file.
2087         * soft-fp/fixtfti.c: New file.
2088         * soft-fp/fixunssfti.c: New file.
2089         * soft-fp/fixunsdfti.c: New file.
2090         * soft-fp/fixunstfti.c: New file.
2091         * soft-fp/extendxftf.c: New file.
2092         * soft-fp/trunctfxf.c: New file.
2093
2094         * libgcc-std.ver (__extendxftf2): Added to GCC_4.3.0 section.
2095         (__trunctfxf2): Ditto.
2096
2097         * config/i386/libgcc-x86_64-glibc.ver (__addtf3, __divtf3, __eqtf2,
2098         __extenddftf2, __extendsftf2, __fixtfdi, __fixtfsi, __fixtfti,
2099         __fixunstfdi, __fixunstfsi, __fixunstfti, __floatditf, __floatsitf,
2100         __floattitf, __floatunditf, __floatunsitf, __floatuntitf, __getf2,
2101         __letf2, __multf3, __negtf2, __subtf3, __trunctfdf2, __trunctfsf2,
2102         __unordtf2): Exclude and add to GCC_4.3.0 section for x86_64 targets.
2103
2104         * config/i386/t-fprules-softfp64: New file.
2105         * config/i386/sfp-machine.h: New file.
2106         * config.gcc (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu,
2107         x86_64-*-knetbsd*-gnu): Add i386/t-fprules-softfp64
2108         and soft-fp/t-softfp to tmake_file.
2109         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
2110         i[34567]86-*-knetbsd*-gnu): Ditto for --enable-targets=all.
2111
2112         * config/i386/t-linux64 (softfp_wrap_start): New.
2113         (softfp_wrap_end): New.
2114         * config/i386/i386.c (ix86_scalar_mode_supported): TFmode is
2115         supported for TARGET_64BIT.
2116
2117 2007-05-16  Rafael Avila de Espindola  <espindola@google.com>
2118
2119         * c-common.c (c_common_signed_or_unsigned_type): Emulate
2120         c_common_unsigned_type behavior.
2121
2122 2007-05-16  Paolo Bonzini  <bonzini@gnu.org>
2123
2124         * config/i386/i386.c (legitimize_tls_address): Mark __tls_get_addr
2125         calls as pure.
2126
2127 2007-05-16  Eric Christopher  <echristo@apple.com>
2128
2129         * config/rs6000/rs6000.c (rs6000_emit_prologue): Move altivec register
2130         saving after stack push. Set sp_offset whenever we push.
2131         (rs6000_emit_epilogue): Move altivec register restore before
2132         stack push.
2133
2134 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
2135
2136         * configure.ac: Allow sysroots to be relocated under $prefix as
2137         well as $exec_prefix.
2138         * configure: Regenerate.
2139
2140 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
2141
2142         Revert:
2143
2144         2007-05-12  Richard Sandiford  <richard@codesourcery.com>
2145
2146         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
2147         (gcc_tooldir): Likewise.
2148         * configure: Regenerate.
2149         * Makefile.in (libsubdir_to_prefix): New variable, based on the
2150         old configure.ac gcc_tooldir setting.
2151         (prefix_to_exec_prefix): New variable.
2152         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
2153         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
2154
2155 2007-05-14  Janis Johnson  <janis187@us.ibm.com>
2156
2157         * c-typeck.c (build_binary_op): Return early for error.
2158
2159 2007-05-15  Zdenek Dvorak  <dvorakz@suse.cz>
2160
2161         * tree-ssa-loop-niter.c (record_estimate): Use GGC_NEW to allocate
2162         struct nb_iter_bound.
2163         (free_numbers_of_iterations_estimates_loop): Use ggc_free.
2164         * gengtype.c (open_base_files): Add cfhloop.h to the list of includes.
2165         * cfgloopmanip.c (place_new_loop): Vector larray is gc-allocated.
2166         * tree-scalar-evolution.c: Include gt-tree-scalar-evolution.h.
2167         (struct scev_info_str, scalar_evolution_info): Add GTY markers.
2168         (new_scev_info_str): Use GGC_NEW to allocate struct scev_info_str.
2169         (del_scev_info): Use ggc_free.
2170         (scev_initialize): Allocate scalar_evolution_info in gc memory.
2171         * loop-init.c: Include ggc.h.
2172         (loop_optimizer_init): Use GGC_CNEW to allocate struct loops.
2173         (loop_optimizer_finalize): Use ggc_free.
2174         * tree-ssa-loop.c (pass_tree_unswitch, pass_vectorize,
2175         pass_linear_transfom, pass_empty_loop, pass_complete_unroll,
2176         pass_iv_optimize): Add TODO_ggc_collect.
2177         * function.h (struct function): Remove skip marker from x_current_loops.
2178         * cfgloop.c: Include ggc.h.
2179         (flow_loops_free, flow_loop_free): Free the loop descriptions in gc
2180         memory.
2181         (establish_preds): Vector superloops is gc allocated.
2182         (alloc_loop): Allocate loop using GGC_CNEW.  Allocate head of
2183         loop->exits list.
2184         (flow_loops_find): Vector larray is gc allocated.
2185         (loop_exit_free): Use ggc_free.
2186         (rescan_loop_exit): Use GGC_NEW to allocate struct loop_exit.  Reflect
2187         that head of exits list is now not a part of struct loop.
2188         (record_loop_exits): Allocate exits table in gc memory.
2189         (get_loop_exit_edges, verify_loop_structure, single_exit): Reflect that
2190         head of exits list is now not a part of struct loop.
2191         * cfgloop.h (struct lpt_decision, struct nb_iter_bound,
2192         struct loop_exit): Add GTY marker.
2193         (struct loop): Add GTY marker.  Make superloops vector gc allocated.
2194         Add skip marker to aux field.  Make head of exits list a separate
2195         object.
2196         (struct loops): Add GTY marker.  Make larray vector gc allocated.
2197         Add param marker to exits table.
2198         (get_loops): Type changed.
2199         * Makefile.in (tree-scalar-evolution.o): Add gt-tree-scalar-evolution.h
2200         dependency.
2201         (cfgloop.o, loop-init.o): Add ggc.h dependency.
2202         (GTFILES): Add cfgloop.h and tree-scalar-evolution.c.
2203         * basic-block.h (struct basic_block_def): Remove skip marker from
2204         loop_father field.
2205
2206 2007-05-14  Uros Bizjak  <ubizjak@gmail.com>
2207
2208         * builtins.c (expand_builtin_mathfn): Use EXPAND_NORMAL instead
2209         of 0 in the call to expand_expr().
2210         (expand_builtin_mathfn_3): Ditto.
2211         (expand_builtin_interclass_mathfn): Ditto.
2212         (expand_builtin_cexpi): Ditto.
2213         (expand_builtin_int_roundingfn): Ditto.
2214         (expand_builtin_int_roundingfn_2): Ditto.
2215         (expand_builtin_pow): Ditto.
2216         (expand_builtin_powi): Ditto.
2217         (expand_builtin_bswap): Ditto.
2218         (expand_builtin_unop): Ditto.
2219         (expand_builtin_fabs): Ditto.
2220         (get_builtin_sync_mem): Use NULL_RTX instead of NULL in
2221         the call to expand_expr().
2222         (expand_builtin_sync_operation): Ditto.
2223         (expand_builtin_compare_and_swap): Ditto.
2224         (expand_builtin_lock_test_and_set): Ditto.
2225         * except.c (expand_builtin_eh_return_data_regno): Use EXPAND_NORMAL
2226         instead of 0 in the call to expand_expr().
2227         (expand_builtin_extract_return_addr): Ditto.
2228         (expand_builtin_eh_return): Ditto.
2229         (expand_eh_return): Ditto.
2230         * explow.c (expr_size): Ditto.
2231         * expr.c (optimize_bitfield_assignment_op): Ditto.
2232         (expand_assignement): Ditto.
2233         (store_expr): Ditto.
2234         (store_field): Ditto.
2235         (expand_expr_addr_expr_1): Use NULL_RTX instead of NULL in
2236         the call to expand_expr().
2237         (expand_expr_real_1) [COMPLEX_CST]: Use EXPAND_NORMAL instead of 0
2238         in the call to expand_expr().
2239         [CONSTRUCTOR, PLUS_EXPR, MINUS_EXPR, NEGATE_EXPR, ABS_EXPR,
2240         BIT_NOT_EXPR, LSHIFT_EXPR, LT_EXPR, TRUTH_NOT_EXPR]: Ditto.
2241         [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO]: Use expand_normal() instead
2242         of expand_expr().
2243         * optabs.c (expand_vec_shift_expr): Ditto.
2244         (expand_vec_cond_expr): Ditto.
2245         (vector_compare_rtx): Use EXPAND_STACK_PARM instead of 1 in the
2246         call to expand_expr().
2247         * stmt.c (expand_return): Use EXPAND_NORMAL instead of 0
2248         in the call to expand_expr().
2249
2250 2007-05-14  Dave Korn  <dave.korn@artimi.com>
2251
2252         * genautomata.c (gen_regexp_el):  Allocate correct size for regexp.
2253
2254 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
2255
2256         * c-common.c (warnings_for_convert_and_check): Use unsigned_type_for
2257         instead of c_common_unsigned_type.
2258         (c_common_unsigned_type): Remove.
2259         (shorten_compare): Use c_common_signed_or_unsigned_type instead of
2260         c_common_unsigned_type.
2261         (c_common_nodes_and_builtins): Use unsigned_type_for instead of
2262         c_common_unsigned_type.
2263         * c-common.h (c_common_unsigned_type): Remove.
2264         * c-decl.c (grokdeclarator): Use unsigned_type_for instead of
2265         c_common_unsigned_type.
2266         * c-format.c (check_format_types): Use unsigned_type_for instead of
2267         c_common_unsigned_type.
2268         * c-objc-common.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
2269         * c-typeck.c (convert_for_assignment): Use unsigned_type_for instead of
2270         c_common_unsigned_type.
2271         * convert.c (convert_to_integer): Use unsigned_type_for instead of
2272         lang_hooks.types.unsigned_type.
2273         * expmed.c (make_tree): Use unsigned_type_for instead of
2274         lang_hooks.types.unsigned_type.
2275         * fold-const.c (fold_negate_expr): Use unsigned_type_for instead of
2276         lang_hooks.types.unsigned_type.
2277         (build_range_check): Likewise.
2278         (fold_unary): Likewise.
2279         (fold_binary): Likewise.
2280         (fold_ternary): Likewise.
2281         * langhooks-def.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
2282         * langhooks.h (lang_hooks_for_types): Remove unsigned_type.
2283         * tree.c (get_unsigned_type): New.
2284         (unsigned_type_for): Use get_unsigned_type instead of
2285         lang_hooks.types.unsigned_type.
2286
2287 2007-05-14  Kazu Hirata  <kazu@codesourcery.com>
2288
2289         * config/m68k/m68k-protos.h: Rename m68k_interrupt_function_p
2290         to m68k_get_function_kind.  Update its prototype.
2291         * config/m68k/m68k.c (m68k_attribute_table): Add an entry for
2292         interrupt_thread.
2293         (m68k_interrupt_function_p): Return enum m68k_function_type
2294         instead of bool.  Rename to m68k_get_function_kind.
2295         (m68k_handle_fndecl_attribute): Reject interrupt_thread if the
2296         target is not fido.
2297         (m68k_compute_frame_layout): Don't mark any register for save
2298         if an interrupt_thread attribute is specified.
2299         (m68k_hard_regno_rename_ok): Update a use of
2300         m68k_interrupt_function_p.
2301         * config/m68k/m68k.h (EPILOGUE_USES): Update a use of
2302         m68k_interrupt_function_p.
2303         (m68k_function_type): New.
2304         * config/m68k/m68k.md (*return): Output a 'sleep' instruction
2305         for a function with an interrupt_thread attribute.
2306         * doc/extend.texi: Document the interrupt_thread attribute.
2307
2308 2007-05-13  Daniel Berlin  <dberlin@dberlin.org>
2309
2310         Fix PR tree-optimization/31911
2311         * tree-ssa-pre.c (phi_translate): Make sure to cache results even
2312         if they didn't change the expression.
2313
2314 2007-05-13  Zdenek Dvorak  <dvorakz@suse.cz>
2315
2316         * tree-scalar-evolution.c (resolve_mixers): Exported.
2317         * tree-scalar-evolution.h (resolve_mixers): Declare.
2318         * tree-data-ref.c (object_analysis, ptr_decl_may_alias_p,
2319         ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
2320         record_record_differ_p, record_array_differ_p, array_ptr_differ_p,
2321         base_object_differ_p, base_addr_differ_p, analyze_array_indexes,
2322         init_array_ref, init_pointer_ref, analyze_indirect_ref,
2323         strip_conversion, analyze_offset_expr, address_analysis,
2324         object_analysis, analyze_offset): Removed.
2325         (dr_analyze_innermost, dr_analyze_indices, dr_analyze_alias,
2326         split_constant_offset, canonicalize_base_object_address,
2327         object_address_invariant_in_loop_p, disjoint_objects_p,
2328         dr_may_alias_p, dr_address_invariant_p): New functions.
2329         (create_data_ref): Use dr_analyze_innermost, dr_analyze_indices
2330         and dr_analyze_alias.
2331         (initialize_data_dependence_relation): Use dr_may_alias_p
2332         and object_address_invariant_in_loop_p.
2333         (compute_self_dependence): Handle the case when DDR_ARE_DEPENDENT (ddr)
2334         is chrec_dont_know.
2335         (find_data_references_in_stmt): Restrict the analysis of data references
2336         to the given loop nest.
2337         (find_data_references_in_loop): Made static.  Pass loop nest to
2338         find_data_references_in_stmt.
2339         (compute_data_dependences_for_loop): Use DR_VOPS.
2340         (free_data_ref): Free DR_VOPS.
2341         * tree-data-ref.h (struct first_location_in_loop): Replaced by ...
2342         (struct innermost_loop_behavior): ... new.
2343         (struct base_object_info): Replaced by ...
2344         (struct indices): ... new.
2345         (struct dr_alias): New.
2346         (enum data_ref_type): Removed.
2347         (struct data_reference): Consist of struct innermost_loop_behavior,
2348         struct indices and struct dr_alias.
2349         (DR_SET_ACCESS_FNS, DR_FREE_ACCESS_FNS): Removed.
2350         (DR_MEMTAG): Renamed to ...
2351         (DR_SYMBOL_TAG): ... this.
2352         (find_data_references_in_loop): Declaration removed.
2353         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use DR_INIT
2354         instead of DR_OFFSET_MISALIGNMENT.  DR_ALIGNED_TO is never NULL.
2355         (vect_analyze_data_refs): Use DR_SYMBOL_TAG instead of DR_MEMTAG.
2356         * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
2357
2358 2007-05-13  Revital Eres  <eres@il.ibm.com>
2359
2360         * tree-ssa-dse.c (get_use_of_stmt_lhs): New function
2361         which walks virtual def-use chains to find redundant stores.
2362         (dse_optimize_stmt): Call it.
2363
2364 2007-05-12  Steven Bosscher  <steven@gcc.gnu.org>
2365
2366         * gcse.c (gcse_main): Do jump bypassing in CPROP2.
2367         * passes.c (init_optimization_passes): Move pass_jump_bypass
2368         after loop2.
2369
2370         * basic-block.h (bb_has_eh_pred): Fix style issue.
2371
2372 2007-05-12  Steven Bosscher  <steven@gcc.gnu.org>
2373
2374         PR rtl-optimization/31848
2375         * loop-invariant.c (move_invariant_reg): If we move an insn
2376         with a REG_EQUAL note, and that insn is not always executed,
2377         remove the REG_EQUAL note.
2378
2379 2007-05-12  Richard Guenther  <rguenther@suse.de>
2380
2381         PR tree-optimization/31797
2382         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
2383         propagate into a stmt that has volatile ops.
2384
2385 2007-05-12  Richard Sandiford  <richard@codesourcery.com>
2386
2387         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
2388         (gcc_tooldir): Likewise.
2389         * configure: Regenerate.
2390         * Makefile.in (libsubdir_to_prefix): New variable, based on the
2391         old configure.ac gcc_tooldir setting.
2392         (prefix_to_exec_prefix): New variable.
2393         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
2394         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
2395
2396 2007-05-11  Silvius Rus  <rus@google.com>
2397
2398         * Makefile.in (OBJS-common): Add tree-ssa-alias-warnings.o.
2399         * c-common.c (strict_aliasing_warning): Modify -Wstrict-aliasing logic.
2400         * c-common.h (strict_aliasing_warning): Change return type.
2401         * c-opts.c (c_common_handle_option): Add call to set_Wstrict_aliasing.
2402         * c-typeck.c (build_indirect_ref): Add call to strict_aliasing_warning.
2403         (build_c_cast): Condition call to strict_aliasing_warning.
2404         * doc/invoke.texi: Update description of -Wstrict-aliasing[=n].
2405         * flags.h (set_Wstrict_aliasing): Declare.
2406         * opts.c (set_Wstrict_alising): Define, add call to.
2407         * tree-flow.h (strict_aliasing_warning_backend): Declare.
2408         * tree-ssa-alias-warnings.c: New file.
2409         * tree-ssa-alias.c (compute_may_aliases): Add call to
2410         strict_aliasing_warning_backend.
2411
2412 2007-05-11  Zdenek Dvorak  <dvorakz@suse.cz>
2413
2414         * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
2415         Use loop_depth and loop_outer accessor functions.
2416         * tree-ssa-loop-im.c (outermost_invariant_loop, set_level,
2417         determine_invariantness_stmt, move_computations_stmt): Ditto.
2418         * cfgloopmanip.c (fix_bb_placement, fix_loop_placement, remove_path,
2419         add_loop, loopify, unloop, fix_loop_structure): Ditto.
2420         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Ditto.
2421         * tree-scalar-evolution.c (interpret_loop_phi,
2422         compute_scalar_evolution_in_loop, analyze_scalar_evolution_in_loop,
2423         instantiate_parameters_1, scev_const_prop): Ditto.
2424         * cfghooks.c (make_forwarder_block): Ditto.
2425         * cfgloopanal.c (mark_irreducible_loops, mark_loop_exit_edges): Ditto.
2426         * modulo-sched.c (loop_canon_p): Ditto.
2427         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg,
2428         slpeel_can_duplicate_loop_p): Ditto.
2429         * lambda-code.c (invariant_in_loop_and_outer_loops): Ditto.
2430         * tree-cfg.c (tree_duplicate_sese_region): Ditto.
2431         * cfgloop.c (flow_loop_dump, flow_loop_nodes_find, rescan_loop_exit,
2432         cancel_loop, verify_loop_structure): Ditto.
2433         (flow_loop_nested_p, superloop_at_depth, flow_loop_free,
2434         add_bb_to_loop, remove_bb_from_loops, find_common_loop): Use the
2435         superloops vector instead of "pred" array.
2436         (establish_preds): Take father loop as an argument.  Initialize the
2437         superloops vector.
2438         (flow_loop_tree_node_add): Pass father loop to establish_preds.  Do not
2439         initialize loop->outer.
2440         (flow_loop_tree_node_remove): Truncate the superloops vector.
2441         * cfgloop.h (struct loop): Removed field "outer", fields "depth" and
2442         "pred" merged to "superloops" vector.
2443         (loop_depth, loop_outer): New.
2444         (fel_init): Use loop_outer.
2445
2446 2007-05-11  Jan Hubicka  <jh@suse.cz>
2447
2448         * cgraphunit.c: Include gt-cgraphunit.h
2449         (static_ctors, static_dtors): New static vars.
2450         (record_cdtor_fn, build_cdtor, cgraph_build_cdtor_fns): New functions,
2451         based on implementation in c-common.c
2452         (cgraph_finalize_function): Call record_cdtor_fn.
2453         (cgraph_optimize): Call cgraph_build_cdtor_fns.
2454         * decl.c (finish_function): Do not call c_record_cdtor_fn.
2455         (c_write_global_declarations): Do not call c_build_cdtor_fns.
2456         * c-common.c (static_ctors, static_dtors, c_record_cdtor_fn,
2457         build_cdtor, c_build_cdtor_fns): Remove.
2458         * c-common.h (static_ctors, static_dtors, c_record_cdtor_fn,
2459         c_build_cdtor_fns): Remove prototype.
2460
2461 2007-05-11  Paolo Carlini  <pcarlini@suse.de>
2462
2463         PR other/31852
2464         * builtin-types.def: Add BT_FN_PTR_CONST_PTR_INT_SIZE.
2465         * builtins.def: Add BUILT_IN_MEMCHR, use the latter.
2466         * builtins.c (fold_builtin_memchr): New.
2467         (expand_builtin_memchr): Call the latter.
2468         (expand_builtin, fold_builtin_3): Deal with BUILT_IN_MEMCHR.
2469         * doc/extend.texi ([Other built-in functions provided by GCC]):
2470         Document memchr.
2471
2472 2007-05-11  Andreas Krebbel  <krebbel1@de.ibm.com>
2473
2474         * config/s390/s390.md (GPR0_REGNUM, FPR0_REGNUM, FPR2_REGNUM,
2475         PFPO_CONVERT, PFPO_OP_TYPE_SF, PFPO_OP_TYPE_DF, PFPO_OP_TYPE_TF,
2476         PFPO_OP_TYPE_SD, PFPO_OP_TYPE_DD, PFPO_OP_TYPE_TD, PFPO_OP0_TYPE_SHIFT,
2477         PFPO_OP1_TYPE_SHIFT): Constants added.
2478         (DFP_ALL): Mode macro defined.
2479         ("*trunc<BFP:mode><DFP_ALL:mode>2", "*trunc<DFP_ALL:mode><BFP:mode>2",
2480         "*extend<BFP:mode><DFP_ALL:mode>2", "*extend<DFP_ALL:mode><BFP:mode>2"):
2481         Insn definitions added.
2482         ("trunc<BFP:mode><DFP_ALL:mode>2", "trunc<DFP_ALL:mode><BFP:mode>2",
2483         "extend<BFP:mode><DFP_ALL:mode>2", "extend<DFP_ALL:mode><BFP:mode>2"):
2484         Expanders added.
2485
2486 2007-05-10  Zdenek Dvorak  <dvorakz@suse.cz>
2487
2488         PR tree-optimization/31885
2489         * tree-chrec.c (chrec_contains_undetermined): Do not consider NULL_TREE
2490         to be undetermined.
2491         (automatically_generated_chrec_p): Return false for NULL.
2492
2493 2007-05-08  Bernd Schmidt  <bernd.schmidt@analog.com>
2494
2495         * config/bfin/bfin.h (MOVE_RATIO): Define.
2496
2497 2007-05-10  Richard Sandiford  <richard@codesourcery.com>
2498
2499         * config.gcc (sparc-wrs-vxworks): New target.
2500         * config/sparc/vxworks.h, config/sparc/t-vxworks: New files.
2501         * config/sparc/sparc-protos.h (sparc_emit_call_insn): Declare.
2502         * config/sparc/sparc.h: Include vxworks-dummy.h.
2503         (PRINT_OPERAND_ADDRESS): Extend SYMBOL_REF handling to
2504         include LABEL_REFs too.
2505         * config/sparc/sparc.c (sparc_expand_move): Don't assume that
2506         _GLOBAL_OFFSET_TABLE_ - label_ref is a link-time constant on
2507         VxWorks.
2508         (legitimize_pic_address): Handle LABEL_REFs like SYMBOL_REFs
2509         on VxWorks.
2510         (load_pic_register): Use gen_vxworks_load_got for VxWorks.
2511         (sparc_emit_call_insn): New function.
2512         (sparc_function_ok_for_sibcall): Restrict sibcalls to locally-binding
2513         functions when generating VxWorks PIC.
2514         * config/sparc/sparc.md (vxworks_load_got): New pattern.
2515         (call, call_value): Use sparc_emit_call_insn instead of
2516         emit_call_insn.
2517
2518 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
2519
2520         * config/xtensa/xtensa.c (xtensa_output_literal): Don't use #if.
2521
2522 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
2523
2524         * config/xtensa/xtensa.c (xtensa_output_literal): Mask out high bits
2525         for floating-point values if HOST_BITS_PER_LONG > 32.  Use split_double
2526         instead of operand_subword.
2527
2528 2007-05-08  Bernd Schmidt  <bernd.schmidt@analog.com>
2529
2530         * config/bfin/bfin.h (LOCAL_ALIGNMENT): Define.
2531         * config/bfin/bfin.c (bfin_local_alignment): New function.
2532         * config/bfin/bfin-protos.h (bfin_local_alignment): Declare it.
2533
2534 2007-05-08  Chao-ying Fu  <fu@mips.com>
2535
2536         * doc/md.texi (msub@var{m}@var{n}4, usub@var{m}@var{n}4): Document.
2537         * optabs.h (OTI_smsub_widen, OTI_umsub_widen): New optab_indexes.
2538         (smsub_widen_optab, umsub_widen_optab): Define.
2539         * optabs.c (init_optabs): Initialize smsub_widen_optab and
2540         umsub_widen_optab.
2541         * genopinit.c (optabs): Fill in smsub_widen_optab and
2542         umsub_widen_optab.
2543         * expr.c (expand_expr_real_1): Try to use smsub_widen_optab
2544         and umsub_widen_optab to implement multiply-subtract sequences.
2545         * config/mips/mips.md (*msac<u>_di): Rename to...
2546         (<u>msubsidi4): ...this.  Extend condition to include
2547         GENERATE_MADD_MSUB and TARGET_DSPR2.  Change the constraint
2548         of operand 0 to "ka" and use the three-operand form of msub<u>
2549         for TARGET_DSPR2.
2550         * config/mips/mips-dspr2.md (mips_msub, mips_msubu): Convert
2551         to define_expands.
2552
2553 2007-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
2554
2555         PR rtl-optimization/28011
2556         * reload.c (push_reload): Set dont_share if IN appears in OUT
2557         also when IN is a PLUS rtx.
2558         (reg_overlap_mentioned_for_reload_p): Return true if X and IN
2559         are same PLUS rtx.
2560
2561 2007-05-08  Kazu Hirata  <kazu@codesourcery.com>
2562
2563         * emit-rtl.c (unshare_all_rtl_1): Don't copy DECL_RTL.  Don't
2564         call unshare_all_decls.
2565         (unshare_all_rtl): Adjust the call to unshare_all_rtl_1.
2566         (unshare_all_decls): Remove.
2567
2568 2007-05-08  Simon Martin  <simartin@users.sourceforge.net>
2569
2570         PR 31847
2571         * tree-dump.c (dump_options): Don't use TDF_DIAGNOSTIC in "*-all" tree
2572         dumps.
2573
2574 2007-05-08  Sandra Loosemore  <sandra@codesourcery.com>
2575             Nigel Stephens  <nigel@mips.com>
2576
2577         * config/mips/mips.h (MAX_FPRS_PER_FMT): Renamed from FP_INC.
2578         Update comments and all uses.
2579         (MIN_FPRS_PER_FMT): Define.
2580         * config/mips/mips.c (function_arg): Fix to correctly handle
2581         the -mips32r2 -mfp64 -mabi=32 case.
2582         (override_options): Enable use of odd-numbered registers for
2583         SFmode values on MIPS32.
2584         (mips_save_reg_p): Save whole floating-point register pair if
2585         either half is used.
2586         (compute_frame_size): Fix comment.
2587
2588 2007-05-08  Jie Zhang  <jie.zhang@analog.com>
2589
2590         * config/bfin/bfin-protos.h (bfin_expand_epilogue): Add a third
2591         argument of type bool.
2592         * config/bfin/bfin.c (add_to_reg): Add epilogue_p as a fourth
2593         argument. Safely select temporary P register according to it.
2594         (do_link): Change call site of add_to_reg accordingly.
2595         (do_unlink): Add epilogue_p as a fourth argument and pass it
2596         to add_to_reg.
2597         (expand_interrupt_handler_epilogue): Change call of do_unlink
2598         accordingly.
2599         (bfin_expand_prologue): Add a third argument sibcall_p.
2600         * config/bfin/bfin.md (epilogue): Change call of
2601         bfin_expand_epilogue accordingly.
2602         (sibcall_epilogue): Likewise.
2603         (eh_return_internal): Likewise.
2604
2605         * config/bfin/bfin-protos.h (enum bfin_cpu): Add
2606         BFIN_CPU_BF534, BFIN_CPU_BF536 and BFIN_CPU_BF561.
2607         * config/bfin/bfin.c (bfin_handle_option): Handle
2608         -mcpu=bf534, -mcpu=bf536 and -mcpu=bf561.
2609         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS):
2610         Support bf534, bf536 and bf561.
2611         * doc/invoke.texi (Blackfin Options): Document -mcpu and -msim.
2612
2613 2007-05-08  Uros Bizjak  <ubizjak@gmail.com>
2614
2615         PR target/31854
2616         * config/i386/i386.c (ix86_function_regparm): Process local
2617         functions only when TREE_CODE (decl) equals FUNCTION_DECL.
2618
2619 2007-05-07  Mike Stump  <mrs@apple.com>
2620
2621         * doc/invoke.texi (Warning Options): Document that -Wempty-body
2622         also checks for and while statements in C++.
2623
2624 2007-05-07  Nathan Froyd  <froydnj@codesourcery.com>
2625
2626         * gcc.c (at_file_supplied): New variable.
2627         (main): Set it if we expanded argv.
2628         (do_spec_1): Pass an @-file to the linker if we were called with
2629         an @-file argument and HAVE_GNU_LD.
2630         * collect2.c (at_file_supplied): New variable.
2631         (response_file): New variable.
2632         (collect_exit): Unlink response_file if necessary.
2633         (handler): Likewise.
2634         (do_wait): Likewise.
2635         (main): Set at_file_supplied if we expanded argv.
2636         (collect_execute): Pass an @-file to subprocesses if we were called
2637         with an @-file argument.
2638         * configure.ac: Add define for HAVE_GNU_LD.
2639         * configure: Regenerate.
2640         * config.in: Regenerate.
2641
2642 2007-05-07  Naveen.H.S  <naveen.hs@kpitcummins.com>
2643
2644         * config/m32c/muldiv.md (mulhisi3_c): Limit the mode of the 2nd
2645         operand to HI mode.
2646         (mulsi3): New.
2647         (divsi3): New.
2648         (udivsi3): New.
2649
2650 2007-05-07  Jayant Sonar  <jayants@kpitcummins.com>
2651
2652         * config/m32c/m32c.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
2653         (TARGET_ENCODE_SECTION_INFO): Re-define.
2654         (m32c_encode_section_info): New
2655         (function_vector_handler): New
2656         (current_function_special_page_vector): New
2657         (m32c_special_page_vector_p): New.
2658         * config/m32c/m32c-protos.h (m32c_special_page_vector_p):
2659         Prototype.
2660         * config/m32c/jump.md: Added instruction JSRS for functions
2661         with attribute "function_vector".
2662         * doc/extend.texi (function_vector): Added description
2663         for M16C, M32C targets.
2664
2665 2007-05-07  DJ Delorie  <dj@redhat.com>
2666
2667         PR 31794
2668         * config/m32c/shift.md (ashlpsi3_i, ashrpsi3_i, ashlpsi3,
2669         ashrpsi3, lshrpsi3): Update shift count constraint.
2670
2671 2007-05-07  Danny Smith  <dannysmith@users.sourceforge.net>
2672             Nathan Froyd  <froydnj@codesourcery.com>
2673
2674         PR 22133
2675         * c-incpath.c (add_path): Strip trailing path separators.
2676
2677 2007-05-07  Eric Botcazou  <ebotcazou@adacore.com>
2678
2679         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered.
2680         Free dominance info before purging EH edges.
2681         (eliminate_degenerate_phis): Likewise.
2682         (propagate_rhs_into_lhs): Set cfg_altered to true instead of 1.
2683
2684 2007-05-07  Jan Hubicka  <jh@suse.cz>
2685
2686         * gimplify.c (gimplify_expr): Do not crash when folding
2687         (void *)(int)&a + 4.
2688
2689 2007-05-07  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2690
2691         PR driver/31694
2692         * c-opts.c (lang_fortran): Make it non static.
2693         * c-common.h (lang_fortran): New prototype.
2694         * c-cppbuiltin.c (c_cpp_builtins): Create a __GFORTRAN__ if the
2695         -lang-fortran option was passed by the driver.
2696
2697 2007-05-06  Eric Botcazou  <ebotcazou@adacore.com>
2698
2699         * timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead
2700         of ASSERT_CHECKING.  Tweak message.
2701
2702 2007-05-06  Revital Eres  <eres@il.ibm.com>
2703
2704         PR 30957
2705         * loop-unroll.c (insert_var_expansion_initialization):
2706         Initialize the expansions with -zero instead of +zero.
2707
2708 2007-05-05  Aurelien Jarno  <aurelien@aurel32.net>
2709
2710         * config/pa/pa.md: Split tgd_load, tld_load and tie_load
2711         into pic and non-pic versions. Mark r19 as used for
2712         tgd_load_pic, tld_load_pic and tie_load_pic. Mark r27 as used
2713         for tgd_load, tld_load and tie_load .
2714         * config/pa/pa.c (legitimize_tls_address): Emit pic or non-pic
2715         version of tgd_load, tld_load and tie_load depending on the
2716         value of flag_pic.
2717
2718 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
2719             Jakub Jelinek  <jakub@redhat.com>
2720
2721         * crtstuff.c (HIDDEN_DTOR_LIST_END): New macro.
2722         (__do_global_dtors_aux): Use more paranoid loop to run
2723         destructors if HIDDEN_DTOR_LIST_END.
2724         (__DTOR_END__): Export as a hidden symbol when HIDDEN_DTOR_LIST_END.
2725
2726 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
2727
2728         * varasm.c (align_variable): Don't increase alignment for
2729         DECL_THREAD_LOCAL_P variables above BITS_PER_WORD through
2730         DATA_ALIGNMENT or CONSTANT_ALIGNMENT.
2731
2732 2007-05-04  Josh Conner  <jconner@apple.com>
2733
2734         * basic-block.h (cdi_direction): Assign values to all enumeration
2735         constants.
2736         (dom_computed): Remove.
2737         (dom_info_state): New.
2738         (set_dom_info_availability): New.
2739         * tree-ssa-loop-im.c (determine_invariantness): Initialize
2740         walk_data.dom_direction.
2741         * cfghooks.c (delete_basic_block): Use dom_info_available_p()
2742         instead of dom_computed[].
2743         (split_edge): Likewise.
2744         (create_basic_block): Likewise.
2745         (merge_blocks): Likewise.
2746         * ifcvt.c (find_if_header): Likewise.
2747         * tree-cfgcleanup.c (cleanup_tree_cfg): Likewise.
2748         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
2749         * tree-ssa.c (verify_ssa): Likewise.
2750         * tree-cfg.c (tree_verify_flow_info): Likewise.
2751         (remove_edge_and_dominated_blocks): Likewise.
2752         * dominance.c (dom_computed): Make static.
2753         (calc_dfs_tree_nonrec): Change third param to a bool.
2754         (calc_dfs_tree): Change second param to a bool.
2755         (calc_idioms): Change second param to a bool.  Use
2756         dom_convert_dir_to_idx.
2757         (init_dom_info): Validate dir before using.
2758         (dom_convert_dir_to_idx): New.
2759         (calculate_dominance_info): Use dom_convert_dir_to_idx.  New
2760         variable 'reverse' used for calling calc_dfs_tree and calc_idoms.
2761         (free_dominance_info): Use dom_convert_dir_to_idx.
2762         (get_immediate_dominator): Likewise.
2763         (set_immediate_dominator): Likewise.
2764         (get_dominated_by): Likewise.
2765         (redirect_immediate_dominators): Likewise.
2766         (nearest_common_denominator): Likewise.
2767         (dominated_by_p): Likewise.
2768         (bb_dom_dfs_in): Likewise.
2769         (bb_dom_dfs_out): Likewise.
2770         (recount_dominator): Likewise.
2771         (iterate_fix_dominators): Likewise.
2772         (add_to_dominance_info): Likewise.
2773         (delete_from_dominance_info): Likewise.
2774         (first_dom_son): Likewise.
2775         (next_dom_son): Likewise.
2776         (dom_info_available_p): Likewise.
2777         (dom_info_state): New.
2778         (set_dom_info_availability): New.
2779
2780 2007-05-04  Andreas Krebbel  <krebbel1@de.ibm.com>
2781
2782         * config/s390/s390.md ("fix_trunc<mode>di2", "fix_trunc<mode>si2"):
2783         Expander removed.
2784         ("fix_trunc<DSF:mode><GPR:mode>2"): Expander added.
2785
2786 2007-05-04  Bob Wilson  <bob.wilson@acm.org>
2787
2788         * config/xtensa/xtensa.md (adddi3, adddi_carry): Delete.
2789         (subdi3, subdi_carry): Delete.
2790
2791 2007-05-04  Jan Hubicka  <jh@suse.cz>
2792             Richard Guenther  <rguenther@suse.de>
2793
2794         * opts.c (decode_options): Do not fiddle with inlining
2795         parameters in case of optimizing for size.
2796         * ipa-inline.c (cgraph_decide_recursive_inlining): When optimizing
2797         for size do nothing.
2798         (cgraph_decide_inlining_of_small_function): When optimizing for
2799         size never inline functions increasing caller size.
2800         (cgraph_early_inlining): Inline for size when optimizing for size.
2801
2802 2007-04-18  Bernd Schmidt  <bernd.schmidt@analog.com>
2803
2804         * config/bfin/bfin.md (<optab>di3): Now a define_expand which expands
2805         logical operations piecewise.
2806         (<optab>di_zesidi_di, <optab>di_sesidi_di, negdi2, one_cmpldi2,
2807         zero_extendsidi2, subdi_di_zesidi, subdi_zesidi_di, subdi_di_sesidi,
2808         subdi_sesidi_di): Delete.
2809         (add_with_carry): Produce carry in CC instead of a DREG to shorten
2810         the generated sequence.  Allow three-reg add in constraints.  Rewrite
2811         the rtl expression for carry to avoid zero_extend of a constant.
2812         (sub_with_carry): New pattern.
2813         (adddi3, subdi3): Change into define_expand.  For subtract, generate a
2814         different sequence not involving jumps.
2815         (notbi): Now a named pattern.
2816
2817 2007-05-04  Bradley Lucier  <lucier@math.purdue.edu>
2818
2819         * doc/invoke.texi (i386 and x86-64 Options) [-mpc32, -mpc64, -mpc80]:
2820         Add the note about a significant loss of accuracy of some
2821         mathematical routines when these options are used.
2822
2823 2007-05-04  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
2824
2825         * haifa-sched.c (rtx_vec_t): New typedef.
2826         (contributes_to_priority_p): Extract piece of priority () into new
2827         static function.
2828         (priority): Use the function.  Add assertion.
2829         (rank_for_schedule, set_priorities): Add assertion to check that
2830         insn's priority is initialized.
2831         (clear_priorities, calc_priorities): Change signature.  Make it update
2832         all relevant insns.  Update all callers ('add_to_speculative_block ()'
2833         and 'create_block_check_twin ()').
2834         * sched-int.h (struct haifa_insn_data): Remove field 'priority_known'.
2835         Add new field 'priority_status'.
2836         (INSN_PRIORITY_STATUS): New macro.
2837         (INSN_PRIORITY_KNOWN): Change to use INSN_PRIORITY_STATUS.
2838
2839 2007-05-04  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
2840
2841         * sched-ebb.c (debug_ebb_dependencies): New static function.
2842         (init_ready_list): Use it.
2843
2844         * sched-rgn.c (debug_dependencies): Split into 'debug_dependencies ()'
2845         with changed signature and 'debug_rgn_dependencies ()'.
2846         (debug_rgn_dependencies): New static function.
2847         (init_ready_list): Use it.
2848
2849         * sched-int.h (debug_dependencies): Declare.
2850
2851 2007-05-04  Andreas Krebbel  <krebbel1@de.ibm.com>
2852
2853         * libgcc-std.ver (__ffssi2): Added to GCC_4.3.0 section.
2854
2855 2007-05-04  Dirk Mueller  <dmueller@suse.de>
2856
2857         * c.opt(Wmain,ffreestanding): Enable for C++,ObjC++.
2858
2859 2007-05-03  Jan Hubicka  <jh@suse.cz>
2860
2861         * fold-const.c (fold_unary): Convert (T1)(X op Y) into ((T1)X op (T1)Y),
2862         for pointer type in more cases than before.
2863
2864         * gimplify.c (gimplify_expr): Fold (void *)&a + 4.
2865
2866         * tree-object-size.c (plus_expr_object_size): When operand size is
2867         unknown, return unknown.
2868
2869 2007-05-03  Dirk Mueller  <dmueller@suse.de>
2870
2871         * doc/invoke.texi (-m386,-m486,-mpentium,-mpentiumpro): Remove.
2872
2873         * config/i386/i386.h (CC1_CPU_SPEC): Remove handling for deprecated
2874         options.
2875
2876         * config/i386/i386.opt (m386,m486,mpentium,mpentiumpro): Remove.
2877
2878 2007-05-03  Janis Johnson  <janis187@us.ibm.com>
2879
2880         * doc/sourcebuild.texi (Test Directives) Clarify dg-excess-errors.
2881
2882 2007-05-03  Joseph Myers  <joseph@codesourcery.com>
2883
2884         * config/soft-fp/double.h, config/soft-fp/extended.h,
2885         config/soft-fp/floatundidf.c, config/soft-fp/floatundisf.c,
2886         config/soft-fp/floatunsidf.c, config/soft-fp/floatunsisf.c,
2887         config/soft-fp/op-2.h, config/soft-fp/op-4.h,
2888         config/soft-fp/op-common.h, config/soft-fp/quad.h: Update from
2889         glibc CVS.
2890
2891 2007-05-03  Ian Lance Taylor  <iant@google.com>
2892
2893         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
2894         MASK_PPC_GFXOPT for 8540 or 8548.
2895
2896 2007-05-03  Uros Bizjak  <ubizjak@gmail.com>
2897
2898         * tree-vect-transform.c (vect_update_inits_of_drs): Use
2899         vect_print_dump_info() to output debug information.
2900
2901 2007-05-03  Uros Bizjak  <ubizjak@gmail.com>
2902
2903         PR target/31768
2904         * config/i386/i386.c (print_operand) ['z']: Output 'w' for
2905         operands of size 2 when operand is not MEM_P.
2906
2907 2007-05-03  Zdenek Dvorak  <dvorakz@suse.cz>
2908
2909         PR tree-optimization/30565
2910         * lambda-code.c (perfect_nestify): Fix updating of dominators.
2911
2912 2007-05-03  Bernd Schmidt  <bernd.schmidt@analog.com>
2913
2914         * config/bfin/bfin.md (addpdi3, us_truncpdisi2): New patterns.
2915         (umulsi3_highpart): Use them.
2916         * config/bfin/lib1funcs.asm (__umulsi3_highpart): Use unsigned move
2917         for final accumulator to D regisster tranfser.
2918
2919 2007-05-03  Dorit Nuzman  <dorit@il.ibm.com>
2920
2921         PR tree-optimization/31699
2922         * tree-vect-analyze.c (vect_update_misalignment_for_peel): Remove wrong
2923         code.
2924         (vect_enhance_data_refs_alignment): Compute peel amount using
2925         TYPE_VECTOR_SUBPARTS instead of vf.
2926         * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Likewise.
2927
2928 2007-05-02  Brooks Moses  <brooks.moses@codesourcery.com>
2929
2930         PR bootstrap/31776
2931         * system.h: Remove inclusion of double-int.h
2932         * tree.h: Include double-int.h
2933         * gengtype.c: Likewise
2934         * cfgloop.h: Likewise
2935         * Makefile.in: Adjust dependencies on double-int.h
2936
2937 2007-05-02  Eric Christopher  <echristo@apple.com>
2938
2939         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Translate
2940         -shared to -Zdynamiclib.
2941
2942 2007-05-02  Seongbae Park  <seongbae.park@gmail.com>
2943
2944         PR c++/31663
2945         * c-common.c (strip_pointer_or_array_types): New function.
2946         * c-common.h (strip_pointer_or_array_types): New function declaration.
2947
2948 2007-05-03  Zdenek Dvorak  <dvorakz@suse.cz>
2949
2950         PR tree-optimization/31771
2951         * tree-cfg.c (move_block_to_fn): Assign bb to the correct index.
2952
2953 2007-05-02  Paul Brook  <paul@codesourcery.com>
2954
2955         * config/arm/bpabi.S (aeabi_lcmp): Fix result on overflow.
2956
2957 2007-05-02  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2958
2959         PR middle-end/29715
2960         * fold-const.c (fold_comparision): Remove the "foo++ == CONST"
2961         transformation.
2962
2963 2007-05-02  Nick Clifton  <nickc@redhat.com>
2964
2965         * config/frv/predicates.md (symbolic_operand): Accept CONSTs.
2966
2967 2007-05-02  Richard Guenther  <rguenther@suse.de>
2968
2969         PR tree-optimization/31146
2970         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
2971         argument, single_use_p.  If we have a single use that is
2972         a conversion to the definition rhs type, propagate that rhs.
2973         (forward_propagate_addr_expr): Pass single_use_p argument
2974         to forward_propagate_addr_expr_1.
2975
2976 2007-05-01  H.J. Lu  <hongjiu.lu@intel.com>
2977
2978         * config/i386/i386.c (ix86_expand_sse_comi): Remove unused
2979         variable.
2980
2981 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2982
2983         * doc/invoke.texi: Fix typo, 'AMD Family 10h core' instead of
2984         'AMD Family 10 core'.
2985
2986 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2987
2988         * config/i386/i386.c (override_options): Accept k8-sse3, opteron-sse3
2989         and athlon64-sse3 as improved versions of k8, opteron and athlon64
2990         with SSE3 instruction set support.
2991         * doc/invoke.texi: Likewise.
2992
2993 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2994
2995         * config/i386/i386.c (override_options): Tuning 32-byte loop
2996         alignment for amdfam10 architecture. Increasing the max loop
2997         alignment to 24 bytes.
2998
2999 2007-05-01  Kazu Hirata  <kazu@codesourcery.com>
3000
3001         * config/m68k/constraints.md: New.
3002         * config/m68k/m68k.h (REG_CLASS_FROM_LETTER,
3003         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
3004         EXTRA_CONSTRAINT): Remove.
3005         * config/m68k/m68k.md: Include constraints.md.
3006         * expr.c (expand_expr_real_1): Copy DECL_RTL before using it.
3007
3008 2007-05-01  Ian Lance Taylor  <iant@google.com>
3009
3010         PR tree-optimization/31739
3011         * tree-vrp.c (vrp_val_is_max): New static function.
3012         (vrp_val_is_min): New static function.
3013         (set_value_range_to_value): Use TYPE_{MAX,MIN}_VALUE rather than
3014         copying the node.
3015         (set_value_range): Use vrp_val_is_{max,min}.
3016         (extract_range_from_assert): Likewise.
3017         (extract_range_from_binary_expr): Likewise.
3018         (extract_range_from_unary_expr): Likewise.
3019         (dump_value_range, vrp_meet): Likewise.
3020         (vrp_visit_phi_node): Likewise.
3021         * tree.c (build_distinct_type_copy): Revert change of 2007-04-27.
3022
3023 2007-05-01  Mark Mitchell  <mark@codesourcery.com>
3024
3025         * config/i386/gmon-sol2.c (size_t): New type.
3026         (intptr_t): Likewise.
3027         (s_textsize): Declare as size_t.
3028         (sbrk): Declare.
3029         (monstartup): Use size_t for sizes.
3030         (_mcount): Save and restore registers.
3031         (internal_mcount): Pass 0 as the first argument to monstartup
3032         in 64-bit mode.
3033         (moncontrol): Convert pointer to appropriately sized integer
3034         before passing to profil.
3035
3036 2007-05-01  Joseph Myers  <joseph@codesourcery.com>
3037
3038         * config/rs6000/darwin-ldouble.c (__gcc_qunord): Define if
3039         __NO_FPRS__, not just if _SOFT_DOUBLE.
3040         * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qunord): Likewise.
3041         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use __gcc_qunord
3042         also for E500 double.
3043         * config/rs6000/rs6000.md (buneq, bunge, bungt, bunle, bunlt,
3044         suneq, sunge, sungt, sunle, sunlt): Disable for (TARGET_HARD_FLOAT
3045         && !TARGET_FPRS).
3046
3047 2007-05-01  Richard Guenther  <rguenther@suse.de>
3048
3049         * tree-ssa-loop-manip.c (ip_normal_pos): Check if last stmt
3050         is NULL.
3051
3052 2007-05-01  Joseph Myers  <joseph@codesourcery.com>
3053
3054         * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qgt): Fix typo.
3055
3056 2007-05-01  Jan Hubicka  <jh@suse.cz>
3057
3058         * tree-vectorize.c (vect_is_simple_use): gimple_min_invariant is
3059         invariant.
3060
3061 2007-05-01  Jan Hubicka  <jh@suse.cz>
3062
3063         * tree.h (maybe_fold_offset_to_component_ref): Remove.
3064         (maybe_fold_offset_to_reference): Declare.
3065         * fold-const.c (fold_unary): Do not fold
3066         (type *)&A into &A->field_of_type_and_offset_0
3067         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): When base type
3068         size is unknown, give up.
3069         (maybe_fold_offset_to_component_ref): Ignore firelds with unknown
3070         offsets.
3071         (maybe_fold_offset_to_reference): New.
3072         (maybe_fold_stmt_indirect): Use it.
3073         (fold_stmt_r): Fold (type *)&A+offset into A->field_if_type_and_offset.
3074         * gimplify.c (gimplify_conversion): Canonicalize conversions to
3075         field references.
3076         (gimplify_expr): Likewise for plus_expr.
3077
3078 2007-05-01  Zdenek Dvorak  <dvorakz@suse.cz>
3079
3080         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Use
3081         bsi_after_labels.  Always insert statements before bsi.
3082         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
3083         * predict.c (apply_return_prediction): Check for empty blocks.
3084         * cfgexpand.c (lab_rtx_for_bb): New variable.
3085         (label_rtx_for_bb): Do not create new tree labels.
3086         (expand_gimple_basic_block): Add labels recorded in lab_rtx_for_bb.
3087         (tree_expand_cfg): Initialize lab_rtx_for_bb.
3088         * tree-cfg.c (build_tree_cfg): Call cleanup_dead_labels after
3089         creating edges.
3090         (label_for_bb): Add field used.
3091         (update_eh_label, main_block_label): Mark the label used.
3092         (cleanup_dead_labels): Remove unused labels.
3093
3094 2007-05-01  Richard Guenther  <rguenther@suse.de>
3095
3096         * tree-vrp.c (set_value_range): Do not allocate equiv bitmap
3097         if it is not about to be set.
3098         (get_value_range): Do not pre-allocate equiv bitmap.
3099         (update_value_range): No need to clear equiv field.
3100         (add_equivalence): Change prototype to get bitmap pointer.
3101         Allocate bitmap here if it is not already.
3102         (extract_range_from_assert): Do not allocate bitmap here.
3103         Update callers to add_equivalence.
3104         (extract_range_from_ssa_name): Likewise.
3105         (get_vr_for_comparison): New static helper.
3106         (compare_name_with_value): Handle NULL equiv bitmap by
3107         peeling the first iteration of the comparison loop.
3108         Use get_vr_for_comparison.
3109         (compare_names): Handle NULL equiv bitmaps by using fake
3110         ones.  Use get_vr_for_comparison.
3111
3112 2007-04-30  Brooks Moses  <brooks.moses@codesourcery.com>
3113
3114         * double-int.c (mpz_set_double_int): Moved from
3115         tree-ssa-loop-niter.c.
3116         (mpz_get_double_int): Likewise; also, add option to wrap
3117         out-of-range integers.
3118         * double-int.h: New prototypes for above.
3119         * tree.c (get_static_type_bounds): Moved from
3120         tree-ssa-loop-niter.c; now returns TYPE_MIN_VALUE and
3121         TYPE_MAX_VALUE if they exist..
3122         * tree.h: New prototype for above.
3123         * tree-ssa-loop-niter.c: Adjust mpz_to_double_int and
3124         get_type_bounds calls.
3125         (mpz_set_double_int): Move to double-int.c.
3126         (get_type_bounds): Move to tree.c, rename to
3127         get_static_type_bounds.
3128         (mpz_to_double_int): Move to double-int.c, rename to
3129         mpz_get_double_int.
3130
3131 2007-04-30  Bob Wilson  <bob.wilson@acm.org>
3132
3133         * config/xtensa/lib1funcs.asm (__umodsi3, __modsi3): Rearrange so that
3134         DIV0 exception can fall through to a normal return.
3135
3136 2007-04-30  Alexandre Oliva  <aoliva@redhat.com>
3137
3138         PR middle-end/22156
3139         Temporarily revert:
3140         2007-04-06  Andreas Tobler  <a.tobler@schweiz.org>
3141         * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
3142         2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
3143         * tree-sra.c (try_instantiate_multiple_fields): Needlessly
3144         initialize align to silence bogus warning.
3145         2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
3146         * tree-sra.c (struct sra_elt): Add in_bitfld_block.  Remove
3147         all_no_warning.
3148         (struct sra_walk_fns): Remove use_all parameter from use.
3149         (sra_hash_tree): Handle BIT_FIELD_REFs.
3150         (sra_elt_hash): Don't hash bitfld blocks.
3151         (sra_elt_eq): Skip them in parent compares as well.  Handle
3152         BIT_FIELD_REFs.
3153         (sra_walk_expr): Don't maintain or pass down use_all_p.
3154         (scan_use): Remove use_all parameter.
3155         (scalarize_use): Likewise.  Re-expand assignment to
3156         BIT_FIELD_REF of gimple_reg.  De-scalarize before input or
3157         output, and re-scalarize after output.  Don't mark anything
3158         for no warning.
3159         (scalarize_ldst): Adjust.
3160         (scalarize_walk_gimple_modify_statement): Likewise.
3161         (build_element_name_1): Handle BIT_FIELD_REFs.
3162         (instantiate_element): Don't warn for any element whose parent
3163         is used as a whole.
3164         (instantiate_missing_elements_1): Return the sra_elt.
3165         (canon_type_for_field): New.
3166         (try_instantiate_multiple_fields): New.
3167         (instantiate_missing_elemnts): Use them.
3168         (mark_no_warning): Removed.
3169         (generate_one_element_ref): Handle BIT_FIELD_REFs.
3170         (REPLDUP, sra_build_elt_assignment): New.
3171         (generate_copy_inout): Use them.
3172         (generate_element_copy): Likewise.  Handle bitfld differences.
3173         (generate_element_zero): Don't recurse for blocks.  Use
3174         sra_build_elt_assignment.
3175         (generate_one_element_int): Take elt instead of var.  Use
3176         sra_build_elt_assignment.
3177         (generate_element_init_1): Adjust.
3178         (scalarize_use, scalarize_copy): Use REPLDUP.
3179         (scalarize_ldst): Move assert before dereference.
3180         (dump_sra_elt_name): Handle BIT_FIELD_REFs.
3181
3182 2007-04-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3183
3184         PR C++/31721
3185         * tree.c (reconstruct_complex_type): Reconstruct a reference
3186         correctly.
3187         Also use the same mode for the pointer as the old pointer type.
3188
3189 2007-04-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3190
3191         * doc/trouble.texi (Interoperation): Remove note about Ultrix
3192         Fortran compiler.
3193
3194 2007-04-29  Zdenek Dvorak  <dvorakz@suse.cz>
3195
3196         PR rtl-optimization/31676
3197         * df-scan.c (record_nonlocal_goto_receiver_defs): New function.
3198         (df_refs_record): Call it.
3199
3200 2007-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
3201
3202         * rtl.def (SS_ABS): New code.
3203         * config/bfin/bfin.c (print_operand): New modifier 'v'.
3204         (enum bfin_builtins): Add BFIN_BUILTIN_SUM_2X16, BFIN_BUILTIN_ABS_1x32,
3205         BFIN_BUILTIN_ROUND_1x32, BFIN_BUILTIN_MULT_1x32x32,
3206         BFIN_BUILTIN_MULT_1x32x32NS, BFIN_BUILTIN_SSASHIFT_1x32.
3207         (bfin_init_builtins): Define them.
3208         (bdesc_1arg, bdesc_2arg): Add some of them here, ...
3209         (bfin_expand_builtin): ... and handle the others here.
3210         * config/bfin/bfin.md (ssabssi2, ssroundsi2, ssashiftsi3,
3211         flag_mul_macv2hi_parts_acconly_andcc0): New patterns.
3212         (ss_absv2hi2): Renamed from absv2hi; use ss_abs code.
3213         (ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3): Shift count
3214         operand is only HImode.
3215
3216 2007-04-29  Steven Bosscher  <steven@gcc.gnu.org>
3217
3218         * regclass.c (scan_one_insn): Remove splitting of
3219         two address insns.
3220
3221 2007-04-28  Sandra Loosemore  <sandra@codesourcery.com>
3222             Nigel Stephens  <nigel@mips.com>
3223
3224         * config/mips/mips.h (SLOW_BYTE_ACCESS): Turn off for MIPS16.
3225
3226 2007-04-28  Jan Hubicka  <jh@suse.cz>
3227
3228         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Use
3229         insn_locators_alloc instead of insn_locators_initialize;
3230         call reset_block_changes.
3231         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
3232         * config/sh/sh.c (sparc_output_mi_thunk): Likewise.
3233         * config/is64/ia64.c (ia64_output_mi_thunk): Likewise.
3234         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
3235         * config/score/score.c (th_output_mi_thunk): Likewise.
3236         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
3237         * cfglyaout.c (set_curr_insn_source_location, set_curr_insn_block):
3238         tolerate uninitialized locator info.
3239
3240         Re-apply:
3241         * function.c (init_function_start): Don't init line number info.
3242         (expand_function_end): Update.
3243         (reset_block_changes, record_block_change, finalize_block_changes,
3244         check_block_change, free_block_changes): Kill.
3245         * function.h (reset_block_changes, record_block_change,
3246         finalize_block_changes, check_block_change, free_block_changes): Remove
3247         prototypes.
3248         (struct function): Remove ib_boundaries_block.
3249         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
3250         Use curr_insn_locator to initialize locator.
3251         (emit_line_note): Remove.
3252         * cfgexpand.c (expand_gimple_cond_expr): Update.
3253         (construct_exit_block): Likewise.
3254         (tree_expand_cfg): Initialize/finalize locators.
3255         * expr.c (expand_expr_real): Update.
3256         * cfglayout.c (line_locators_locs, line_locators_lines,
3257         file_locators_locs, file_locators_files): Remove.
3258         (set_block_levels): Move to cfgexpand.c.
3259         (insn_locators_initialize): Remove.
3260         (pass_insn_locators_initialize): Remove.
3261         (locations_locators_locs, locations_locators_vals): New static vars.
3262         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
3263         Likewise.
3264         (insn_locators_alloc, insn_locators_finalize,
3265         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
3266         New functions.
3267         (locator_location): New.
3268         (locator_line, locator_file): Rewrite.
3269         * rtl.h (emit_line_note): Kill.
3270         (insn_locators_alloc, insn_locators_finalize,
3271         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
3272         Declare.
3273         * tree-inline.c (initialize_cfun): Do not initialize
3274         ib_boundaries_block.
3275         * passes.c (pass_insn_locators_initialize): Remove.
3276
3277 2007-04-28  Zdenek Dvorak  <dvorakz@suse.cz>
3278
3279         * tree-cfg.c (move_block_to_fn): Release bb from dominance
3280         info.  Update last_basic_block correctly.
3281
3282 2007-04-27  Kaz Kojima  <kkojima@gcc.gnu.org>
3283
3284         PR target/31701
3285         * config/sh/sh.c (output_stack_adjust): Avoid using the frame
3286         register itself to hold the offset constant.  Tell flow the use
3287         of r4 and r5 when they are used.
3288
3289 2007-04-27  Richard Guenther  <rguenther@suse.de>
3290
3291         * tree-ssa-forwprop.c (forward_propagate_into_cond): Keep track
3292         if we simplified anything.
3293         (tree_ssa_forward_propagate_single_use_vars): Defer overflow
3294         warnings until we did a simplification and the stmt was not
3295         marked as TREE_NO_WARNING.
3296
3297 2007-04-27  Mike Stump  <mrs@apple.com>
3298
3299         * config/rs6000/darwin.h (ALWAYS_PUSH_CONSTS_USING_REGS_P): Remove.
3300
3301 2007-04-27  Ian Lance Taylor  <iant@google.com>
3302
3303         PR middle-end/31710
3304         * tree.c (build_distinct_type_copy): If TYPE_MIN_VALUE or
3305         TYPE_MAX_VALUE exist, convert them to the new type.
3306
3307 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
3308
3309         * tree-cfgcleanup.c (cleanup_tree_cfg): Verify dominance info
3310         if it claims to be available.
3311         * tree-ssa-dce.c (remove_dead_stmt): Mark cfg as altered when
3312         edge is redirected.
3313         (perform_tree_ssa_dce): Always free postdominators.
3314
3315 2007-04-27  Richard Henderson  <rth@redhat.com>
3316
3317         * config/alpha/predicates.md (aligned_memory_operand): Mark
3318         as define_special_predicate.
3319         (unaligned_memory_operand, normal_memory_operand): Likewise.
3320         (reg_or_unaligned_mem_operand): Remove.
3321         (any_memory_operand): Match the documentation and check for
3322         non-renumbered pseudos during reload.
3323         * config/alpha/alpha.c (alpha_secondary_reload): Rename from
3324         alpha_secondary_reload_class, update to new interface, make static.
3325         Handle CQImode like HImode.  Remove FP subreg check.
3326         (alpha_expand_mov): Use replace_equiv_address.
3327         (alpha_expand_mov_nobwx): Use any_memory_operand.
3328         (TARGET_SECONDARY_RELOAD): New.
3329         * config/alpha/alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Remove.
3330         (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
3331         * config/alpha/sync.md (I12MODE, I48MODE, modesuffix): Move ...
3332         * config/alpha/alpha.md: ... here.
3333         (RELOAD12, reloadmode): New.
3334         (movcqi): New.
3335         (reload_in<RELOAD12>): Macro-ize from reload_inqi, reload_inhi.
3336         Don't handle the aligned case here.
3337         (reload_out<RELOAD12>): Macro-ize from reload_outqi, reload_outhi.
3338         (reload_in<I12MODE>_aligned): Macro-ize from reload_inqi_help,
3339         reload_inhi_help.  Don't expect a scratch register.
3340         (reload_out<I12MODE>_aligned): Macro-ize from reload_outqi_help,
3341         reload_outhi_help.
3342         * config/alpha/alpha-protos.h (alpha_secondary_reload_class): Remove.
3343
3344 2007-04-27  Richard Guenther  <rguenther@suse.de>
3345
3346         * tree-ssa-forwprop.c (get_prop_dest_stmt): Fix comment typo.
3347
3348 2007-04-27  Richard Guenther  <rguenther@suse.de>
3349
3350         PR tree-optimization/30965
3351         PR tree-optimization/30978
3352         * Makefile.in (tree-ssa-forwprop.o): Depend on $(FLAGS_H).
3353         * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove.
3354         (find_equivalent_equality_comparison): Likewise.
3355         (simplify_cond): Likewise.
3356         (get_prop_source_stmt): New helper.
3357         (get_prop_dest_stmt): Likewise.
3358         (can_propagate_from): Likewise.
3359         (remove_prop_source_from_use): Likewise.
3360         (combine_cond_expr_cond): Likewise.
3361         (forward_propagate_comparison): New function.
3362         (forward_propagate_into_cond): Rewrite to use fold for
3363         tree combining.
3364         (tree_ssa_forward_propagate_single_use_vars): Call
3365         forward_propagate_comparison to propagate comparisons.
3366
3367 2007-04-27  Richard Guenther  <rguenther@suse.de>
3368
3369         PR tree-optimization/31715
3370         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make
3371         sure to do computation on the offset in an appropriate
3372         signed type.
3373
3374 2007-04-27  Richard Sandiford  <richard@codesourcery.com>
3375
3376         * reload.h (elimination_target_reg_p): Declare.
3377         * reload.c (find_reloads): Don't apply the reg_rtx move
3378         optimization if the SET_DEST satisfies elimination_target_reg_p.
3379         * reload1.c (elimination_target_reg_p): New function.
3380         (gen_reload): In the move/add2 fallback, make sure that op0
3381         does not overlap the destination register.
3382
3383 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
3384
3385         * tree-ssa-loop-im.c (determine_invariantness_stmt): Attempt to
3386         transform only GIMPLE_MODIFY_STMTs.
3387         * tree-complex.c (expand_complex_operations_1): Ditto.
3388         (expand_complex_div_wide): Do not create gotos in COND_EXPR branches.
3389         * tree-ssa-loop-manip.c (build_if_stmt): Removed.
3390         (tree_transform_and_unroll_loop): Do not create gotos in COND_EXPR
3391         branches.
3392         * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
3393         tree_mod_subtract, tree_ic, tree_stringop_fixed_value): Ditto.
3394         * omp-low.c (expand_parallel_call, expand_omp_for_generic,
3395         expand_omp_for_static_chunk, expand_omp_for_static_nochunk): Ditto.
3396         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes,
3397         slpeel_add_loop_guard): Ditto.
3398         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
3399         * lambda-code.c (perfect_nestify): Ditto.
3400         * tree-iterator.c (tsi_split_statement_list_before): Fix splitting
3401         before the first statement.
3402         * tree-optimize.c (execute_free_datastructures): Fix comments.
3403         (execute_free_cfg_annotations): Do not call disband_implicit_edges.
3404         * tree-flow.h (disband_implicit_edges): Declaration removed.
3405         * tree-cfg.c (make_cond_expr_edges): Remove gotos from COND_EXPR
3406         branches.
3407         (cleanup_dead_labels, tree_redirect_edge_and_branch): Handle COND_EXPRs
3408         without gotos.
3409         (disband_implicit_edges, has_label_p): Removed.
3410         (tree_verify_flow_info): Verify that COND_EXPR branches are empty.
3411         (tree_lv_add_condition_to_bb): Do not create gotos in COND_EXPR
3412         branches.
3413         * tree.c (build3_stat): Mark COND_EXPRs used as statements as having
3414         side effects.
3415         * tree-pretty-print.c (dump_implicit_edges): Dump implicit edges
3416         also for COND_EXPRs.
3417         * cfgexpand.c (label_rtx_for_bb): New function.
3418         (expand_gimple_cond_expr): Do not expect gotos in COND_EXPR branches.
3419         Use label_rtx_for_bb to find the labels.
3420         (expand_gimple_basic_block): Remove RETURN_EXPR at the end of the
3421         last block.  Detect fallthru edges.
3422
3423 2007-04-26  Ian Lance Taylor  <iant@google.com>
3424
3425         PR target/28675
3426         * reload.c (find_reloads_subreg_address): If the address was valid
3427         in the original mode but not in the new mode, reload the whole
3428         address.
3429
3430 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
3431
3432         * tree-cfgcleanup.c (cfgcleanup_altered_bbs): New global variable.
3433         (remove_fallthru_edge): Use remove_edge_and_dominated_blocks.
3434         (cleanup_control_expr_graph): Do not invalidate dominance info.
3435         Record altered blocks.
3436         (cleanup_control_flow, cleanup_forwarder_blocks): Removed.
3437         (cleanup_control_flow_bb, split_bbs_on_noreturn_calls,
3438         cleanup_tree_cfg_bb): New functions.
3439         (remove_forwarder_block): Do not maintain the worklist of blocks.
3440         Record altered blocks.
3441         (cleanup_tree_cfg_1): Iterate over cfgcleanup_altered_bbs,
3442         not over whole cfg.
3443         (cleanup_tree_cfg): Do not iterate cleanup_tree_cfg_1.  Only call
3444         delete_unreachable_blocks if dominators are not available.
3445         * tree-inline.c (optimize_inline_calls): Free dominance information
3446         earlier.
3447         * tree-flow.h (remove_edge_and_dominated_blocks,
3448         cfgcleanup_altered_bbs): Altered.
3449         * tree-cfg.c (replace_uses_by, tree_merge_blocks): Record altered
3450         blocks.
3451         (get_all_dominated_blocks, remove_edge_and_dominated_blocks): New
3452         functions.
3453         (tree_purge_dead_eh_edges): Use remove_edge_and_dominated_blocks,
3454         do not invalidate dominators.
3455
3456 2007-04-26  Anatoly Sokolov <aesok@post.ru>
3457
3458         * config/avr/avr.c (avr_mcu_types): Add support for ATmega8HVA and
3459         ATmega16HVA devices. Move AT90USB82 device to 'avr5' architecture.
3460         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
3461         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
3462
3463 2007-04-26  Steve Ellcey  <sje@cup.hp.com>
3464
3465         * config/ia64/ia64.md (ip_value):  Fix itanium_class attribute.
3466
3467 2007-04-26  Richard Guenther  <rguenther@suse.de>
3468
3469         PR tree-optimization/31703
3470         * tree-ssa-loop-im.c (rewrite_bittest): Make sure to use
3471         the right type for the target of the bittest.
3472
3473 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
3474
3475         * config/i386/vx-common.h (RETURN_IN_MEMORY): Use
3476         ix86_sol10_return_in_memory.
3477
3478 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
3479
3480         * config/i386/i386.c (ix86_sol10_return_in_memory): Remove unused
3481         variables.
3482
3483 2007-04-26  Jakub Jelinek  <jakub@redhat.com>
3484
3485         PR c++/31598
3486         * tree-inline.c (copy_body_r): Don't touch TREE_TYPE of OMP_CLAUSE.
3487
3488         PR tree-optimization/30558
3489         * tree-eh.c (lower_eh_filter): If EH_FILTER_MUST_NOT_THROW
3490         clear this_state.prev_try.
3491
3492 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
3493             Mark Mitchell  <mark@codesourcery.com>
3494
3495         * config/i386/i386-protos.h (ix86_sol10_return_in_memory): Declare.
3496         * config/i386/i386.c (ix86_sol10_return_in_memory): New function.
3497         * config/i386/sol2-10.h (RETURN_IN_MEMORY): Use it.
3498
3499 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
3500
3501         PR driver/31107
3502         * doc/invoke.texi (%:print-asm-header): Document.
3503         * gcc.c (asm_options): Use %:print-asm-header() for --target-help
3504         and -ftarget-help.
3505         (static_spec_functions): Add print-asm-header.
3506         (main): Print a banner before the --target-help linker options.
3507         (print_asm_header_spec_function): New function.
3508
3509 2007-04-25  Kaz Kojima  <kkojima@gcc.gnu.org>
3510
3511         PR target/31403
3512         * config/sh/sh.md (movsi_ie): Fix length for TARGET_SH2A.
3513         (movsf_ie): Likewise.
3514
3515 2007-04-25  Paolo Carlini  <pcarlini@suse.de>
3516
3517         * doc/extend.texi ([Type Traits]): Adjust per N2255.
3518
3519 2007-04-25  Bob Wilson  <bob.wilson@acm.org>
3520
3521         * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Throw an exception
3522         for divide-by-zero.
3523         (__umodsi3, __modsi3): Likewise.
3524
3525 2007-04-25  Dirk Mueller  <dmueller@suse.de>
3526
3527         * c-typeck.c (build_compound_expr): Annotate warning()
3528         call with OPT_Wunused_value.
3529         * tree-ssa.c (warn_uninit): Annotate warning with
3530         OPT_Wunintialized.
3531         * c-common.c (handle_sentinel_attribute): Annotate warning
3532         call with OPT_Wattributes.
3533
3534 2007-04-25  Thiemo Seufer  <ths@mips.com>
3535
3536         * config/mips/mips.opt (mdmx, mmt, mno-mdmx): New options.
3537         (mips16): Fix typo.
3538         * config/mips/mips.h (ASM_SPEC): Pass -mmt/-mno-mt and -mdmx/-mno-mdmx
3539         on to the assembler.  Improve handling of -mno-mips16.  Add handling
3540         of -mno-mips3d, -mno-dsp, -mno-dspr2.
3541         * doc/invoke.texi (MIPS Options): Whitespace cleanup.  Fix wrong use
3542         of @itemx.  Document -mno-dsp, -mno-dspr2, -mno-paired-single, -mdmx,
3543         -mno-mdmx, -mno-mips3d, -mmt and -mno-mt.
3544
3545 2007-04-25  Danny Smith  <dannysmith.users.sourceforge.net>
3546
3547         PR target/31680
3548         * config/i386/winnt.c (i386_pe_file_end): Strip only
3549         USER_LABEL_PREFIX when writing export name.
3550
3551 2007-04-25  Richard Sandiford  <richard@codesourcery.com>
3552
3553         * config.gcc (sh-wrs-vxworks): Don't include dbxelf.h.  Include
3554         sh/elf.h, vx-common.h and vxworks.h.
3555         * config/sh/sh.h: Include config/vxworks-dummy.h.
3556         (SUBTARGET_OVERRIDE_OPTIONS): Define.
3557         (OVERRIDE_OPTIONS): Use it.
3558         * config/sh/sh.md (GOTaddr2picreg): Add suport for VxWorks RTPs.
3559         (vxworks_picreg): New pattern.
3560         * config/sh/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
3561         VXWORKS_OS_CPP_BUILTINS.
3562         (LIB_SPEC, LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine
3563         to their VXWORKS_* equivalents.
3564         (SUBTARGET_OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
3565         (SUBTARGET_LINK_EMUL_SUFFIX, FUNCTION_PROFILER): Define.
3566         * config/sh/lib1funcs.asm (NO_FPSCR_VALUES): Define for VxWorks PIC.
3567         (set_fpscr, ic_invalidate): Add VxWorks PIC sequences.
3568         * config/sh/t-vxworks (MULTILIB_OPTIONS): Add m4a, -mrtp and
3569         -mrtp/-fPIC multilibs.
3570         (MULTILIB_EXCEPTIONS): Generalize globs accordingly.
3571         (MULTILIB_MATCHES, EXTRA_MULTILIB_PARTS): Define.
3572         (MULTILIB_OSDIRNAMES): Delete.
3573
3574 2007-04-25  Anatoly Sokolov <aesok@post.ru>
3575
3576         PR target/18989
3577         * config/avr/avr.h (ASM_OUTPUT_ALIGN): Redefine.
3578
3579 2007-04-24  Brooks Moses  <brooks.moses@codesourcery.com>
3580
3581         * real.c (mpfr_from_real): Handle Inf and NaN, and allow the
3582         rounding mode to be specified by the caller.
3583         (real_to_mpfr) Likewise.
3584         * real.h: Update mpfr_from_real, mpfr_to_real prototypes to
3585         include new arguments.
3586         * builtins.c: Update mpfr_from_real, mpfr_to_real calls.
3587
3588 2007-04-24  Ian Lance Taylor  <iant@google.com>
3589
3590         PR tree-optimization/31605
3591         * tree-vrp.c (set_value_range): Check that min and max are not
3592         both overflow infinities.
3593         (set_value_range_to_value): New static function.
3594         (extract_range_from_binary_expr): Call set_value_range_to_value.
3595         (extract_range_from_cond_expr): Likewise.
3596         (extract_range_from_expr): Likewise.
3597         (extract_range_from_unary_expr): Likewise.  Don't create a range
3598         which overflows on both sides.
3599         (vrp_meet): Check for a useless range.
3600         (vrp_visit_phi_node): If we see a constant which looks like an
3601         overflow infinity, turn off the TREE_OVERFLOW flag.
3602
3603 2007-04-24  Ian Lance Taylor  <iant@google.com>
3604
3605         * flow.c (elim_reg_cond): Handle a comparison of a subreg.
3606
3607 2007-04-24  Simon Martin  <simartin@users.sourceforge.net>
3608
3609         PR diagnostic/25923
3610         * tree-pass.h (TDF_DIAGNOSTIC): New dump control to specify that a
3611         diagnostic message is being built.
3612         * tree-pretty-print.c (dump_generic_node): Only write the
3613         formatted text into BUFFER's stream if we are not building a
3614         diagnostic message.
3615         * toplev.c (default_tree_printer): Pass TDF_DIAGNOSTIC to
3616         dump_generic_node.
3617         * Makefile.in (toplev.o): Depend on tree-pass.h.
3618
3619 2007-04-24  Ian Lance Taylor  <iant@google.com>
3620
3621         PR tree-optimization/31602
3622         * tree-ssa-loop-ch.c (copy_loop_headers): Set TREE_NO_WARNING for
3623         conditionals in the copied loop header.
3624         * tree-cfg.c (fold_cond_expr_cond): Don't issue undefined overflow
3625         warnings if TREE_NO_WARNING is set.
3626         * doc/invoke.texi (Warning Options): Clarify that
3627         -Wstrict-overflow does not warn about loops.
3628
3629 2007-04-24  Janis Johnson  <janis187@us.ibm.com>
3630
3631         * config/rs6000/rs6000.c (function_arg_advance): For 32-bit ELF ABI,
3632         expand on the comment about _Decimal128 arguments and check the
3633         integer result of the modulus operation; for 64-bit ELF ABI, ensure
3634         that _Decimal128 argument uses even/odd register pair.
3635         (function_arg): Ditto.
3636
3637 2007-04-24  Hui-May Chang <hm.chang@apple.com>
3638
3639         * reload1.c (merge_assigned_reloads) : Do not merge a RELOAD_OTHER
3640         instruction with a RELOAD_FOR_OPERAND_ADDRESS instruction.
3641
3642 2007-04-24  Richard Guenther  <rguenther@suse.de>
3643             Olga Golovanevsky  <olga@il.ibm.com>
3644
3645         * fold-const.c (multiple_of_p): Check for bottom
3646         to be zero.
3647
3648 2007-04-24  Richard Henderson  <rth@redhat.com>
3649
3650         * libgcc2.h (AVOID_FP_TYPE_CONVERSION): Rename from
3651         IS_IBM_EXTENDED.  Also define in terms of WIDEST_HARDWARE_FP_SIZE.
3652         * libgcc2.c (__floatdisf): Avoid double-word arithmetic when
3653         looking for non-zero bits shifted out.  Avoid a recursive call
3654         when constructing the scalar.
3655         (__floatundisf): Likewise.
3656
3657 2007-04-24  Nathan Froyd  <froydnj@codesourcery.com>
3658
3659         * dwarf2out.c (field_byte_offset): Move the existing logic
3660         under the control of PCC_BITFIELD_TYPE_MATTERS and just use
3661         the bit offset of the field if !PCC_BITFIELD_TYPE_MATTERS.
3662
3663 2007-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
3664
3665         PR target/31641
3666         * config/s390/s390.c (s390_expand_setmem): Don't ICE for constant length
3667         argument of 0 for memset.
3668         (s390_expand_movmem, s390_expand_setmem, s390_expand_cmpmem): Use
3669         unsigned shift instead of the signed variant.
3670
3671 2007-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
3672
3673         * config/s390/s390.md ("*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs_ibm",
3674         "fix_trunc<BFP:mode><GPR:mode>2_ieee", "fix_truncdfsi2_ibm",
3675         "floatsidf2_ibm", "floatsisf2", "truncdfsf2_ieee", "truncdfsf2_ibm",
3676         "*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
3677         "*trunctfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
3678         "*extenddftf2_ieee", "*extenddftf2_ibm", "*extendsftf2_ieee",
3679         "*extendsftf2_ibm", "*add<mode>3", "*add<mode>3_ibm", "*sub<mode>3_ibm",
3680         "*mul<mode>3", "*mul<mode>3_ibm", "*div<mode>3", "*div<mode>3_ibm",
3681         "*neg<mode>2_ibm", "*abs<mode>2_ibm"): Insn definitions removed.
3682         ("fix_trunc<BFP:mode><GPR:mode>2_bfp", "floatsi<mode>2",
3683         "truncdfsf2", "trunctf<mode>2", "add<mode>3", "sub<mode>3",
3684         "mul<mode>3", "div<mode>3"): Insn definitions added.
3685         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fix_trunc<mode>di2",
3686         "fix_trunc<mode>si2"): gen_fix_trunc<BFP:mode><GPR:mode>2_ieee renamed
3687         to gen_fix_trunc<BFP:mode><GPR:mode>2_bfp.
3688         ("fix_truncdfsi2", "floatsitf2", "truncdfsf2", "trunctfdf2",
3689         "trunctfsf2", "extendsfdf2", "extenddftf2", "extendsftf2", "add<mode>3",
3690         "sub<mode>3", "mul<mode>3", "div<mode>3"): Expander removed.
3691         ("fix_trunc<mode>si2", "extend<DSF:mode><BFP:mode>2"): Expander added.
3692         * config/s390/s390.h (TARGET_IBM_FLOAT, TARGET_IEEE_FLOAT,
3693         TARGET_FLOAT_FORMAT): Macro definitions removed.
3694         (FP_REGNO_P): No special case for !TARGET_IEEE_FLOAT anymore.
3695         * config/s390/s390.c (struct processor_costs, z900_cost, z990_cost,
3696         z9_109_cost): Remove fields for hexfloat instructions: dxr, ddr and der.
3697         (s390_rtx_costs): Remove !TARGET_IEEE_FLOAT special branches.
3698         (s390_gen_rtx_const_DI): Function removed.
3699         * config/s390/s390-protos.h (s390_gen_rtx_const_DI): Prototype removed.
3700
3701 2007-04-24  Richard Sandiford  <richard@codesourcery.com>
3702
3703         * optabs.c (set_conv_libfunc): Prefer libgcc2's __ffsMM2 functions
3704         over an external ffs function.
3705
3706 2007-04-24  Chao-ying Fu  <fu@mips.com>
3707             Richard Sandiford  <richard@nildram.co.uk>
3708
3709         * doc/md.texi (madd@var{m}@var{n}4, umadd@var{m}@var{n}4): Document.
3710         * optabs.h (OTI_smadd_widen, OTI_umadd_widen): New optab_indexes.
3711         (smadd_widen_optab, umadd_widen_optab): Define.
3712         * optabs.c (init_optabs): Initialize smadd_widen_optab and
3713         umadd_widen_optab.
3714         * genopinit.c (optabs): Fill in smadd_widen_optab and
3715         umadd_widen_optab.
3716         * expr.c (expand_expr_real_1): Try to use smadd_widen_optab
3717         and umadd_widen_optab to implement multiply-add sequences.
3718         * config/mips/mips.md (*<su>mul_acc_di): Rename to...
3719         (<u>maddsidi4): ...this.  Extend condition to include
3720         GENERATE_MADD_MSUB and TARGET_DSPR2.  Change the constraint
3721         of operand 0 to "ka" and use the three-operand form of madd<u>
3722         for TARGET_DSPR2.
3723         * config/mips/mips-dspr2.md (mips_madd, mips_maddu): Convert
3724         to define_expands.
3725         * config/mips/constraints.md (ka): New register constraint.
3726
3727 2007-04-24  Jan Hubicka  <j@suse.cz>
3728
3729         Revert:
3730
3731         2007-04-23  Jan Hubicka  <jh@suse.cz>
3732         * function.c (init_function_start): Don't init line number info.
3733         (expand_function_end): Update.
3734         (reset_block_changes, record_block_change, finalize_block_changes,
3735         check_block_change, free_block_changes): Kill.
3736         * function.h (reset_block_changes, record_block_change,
3737         finalize_block_changes, check_block_change, free_block_changes): Remove
3738         prototypes.
3739         (struct function): Remove ib_boundaries_block.
3740         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
3741         Use curr_insn_locator to initialize locator.
3742         (emit_line_note): Remove.
3743         * cfgexpand.c (expand_gimple_cond_expr): Update.
3744         (construct_exit_block): Likewise.
3745         (tree_expand_cfg): Initialize/finalize locators.
3746         * expr.c (expand_expr_real): Update.
3747         * cfglayout.c (line_locators_locs, line_locators_lines,
3748         file_locators_locs, file_locators_files): Remove.
3749         (set_block_levels): Move to cfgexpand.c.
3750         (insn_locators_initialize): Remove.
3751         (pass_insn_locators_initialize): Remove.
3752         (locations_locators_locs, locations_locators_vals): New static vars.
3753         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
3754         Likewise.
3755         (insn_locators_alloc, insn_locators_finalize,
3756         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
3757         New functions.
3758         (locator_location): New.
3759         (locator_line, locator_file): Rewrite.
3760         * rtl.h (emit_line_note): Kill.
3761         (insn_locators_alloc, insn_locators_finalize,
3762         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
3763         Declare.
3764         * tree-inline.c (initialize_cfun): Do not initialize
3765         ib_boundaries_block.
3766         * passes.c (pass_insn_locators_initialize): Remove.
3767
3768 2007-04-24  Daniel Franke  <franke.daniel@gmail.com>
3769
3770         * doc/invoke.texi: Removed leading '-' from option index entries.
3771
3772 2007-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
3773
3774         * tree-phinodes.c (reserve_phi_args_for_new_edge, remove_phi_node):
3775         Use phi_nodes_ptr.
3776         (create_phi_node): Use set_phi_nodes.
3777         * omp-low.c (expand_omp_parallel): Use bb_stmt_list.
3778         * tree-if-conv.c (process_phi_nodes): Use set_phi_nodes.
3779         (combine_blocks):  Use bb_stmt_list and set_bb_stmt_list.
3780         * tree-flow-inline.h (phi_nodes, set_phi_nodes,
3781         (bsi_start, bsi_last): Use bb_stmt_list.
3782         (phi_nodes_ptr, bb_stmt_list, set_bb_stmt_list): New functions.
3783         * cfgexpand.c (expand_gimple_basic_block): Use bb_stmt_list.
3784         Traverse the statements using tsi iterator.
3785         * basic-block.h (struct basic_block_def): Fields stmt_list
3786         and phi_nodes moved to ...
3787         (struct tree_bb_info): ... new structure.
3788         * tree-cfg.c (create_bb): Allocate il.tree.  Use set_bb_stmt_list.
3789         (tree_merge_blocks): Use bb_stmt_list and set_bb_stmt_list.
3790         (remove_bb): Handle blocks with NULL stmt list.  Clear il.tree field.
3791         (tree_verify_flow_info): Verify that il.tree is not set for
3792         entry and exit block.
3793         (tree_split_block): Use set_bb_stmt_list.
3794
3795 2007-04-23  Mike Stump  <mrs@apple.com>
3796
3797         * config/i386/i386.c (ix86_tune_features
3798         [X86_TUNE_DEEP_BRANCH_PREDICTION]: Prefer call over thunks on
3799         nocona and core2.
3800
3801 2007-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3802
3803         * config/i386/i386.md (prefix_extra): New attribute.
3804         (length): Add prefix_extra.
3805
3806         * onfig/i386/sse.md (sse2_movdqu): Set prefix_data16.
3807         (sse2_movntv2di): Likewise.
3808         (sse2_cvtps2dq): Likewise.
3809         (sse2_cvtpd2pi): Likewise.
3810         (sse2_cvttpd2pi): Likewise.
3811         (*sse2_cvtpd2ps): Likewise.
3812         (*add<mode>3): Likewise.
3813         (sse2_ssadd<mode>3): Likewise.
3814         (sse2_usadd<mode>3): Likewise.
3815         (*sub<mode>3): Likewise.
3816         (sse2_sssub<mode>3): Likewise.
3817         (sse2_ussub<mode>3): Likewise.
3818         (*mulv8hi3): Likewise.
3819         (*smulv8hi3_highpart): Likewise.
3820         (*umulv8hi3_highpart): Likewise.
3821         (sse2_umulv2siv2di3): Likewise.
3822         (sse2_pmaddwd): Likewise.
3823         (ashr<mode>3): Likewise.
3824         (lshr<mode>3): Likewise.
3825         (ashl<mode>3): Likewise.
3826         (sse2_ashlti3): Likewise.
3827         (sse2_lshrti3): Likewise.
3828         (*umaxv16qi3): Likewise.
3829         (*smaxv8hi3): Likewise.
3830         (*uminv16qi3): Likewise.
3831         (*sminv8hi3): Likewise.
3832         (sse2_eq<mode>3): Likewise.
3833         (sse2_gt<mode>3): Likewise.
3834         (*and<mode>3): Likewise.
3835         (sse2_nand<mode>3): Likewise.
3836         (*ior<mode>3): Likewise.
3837         (*xor<mode>3): Likewise.
3838         (sse2_packsswb): Likewise.
3839         (sse2_packssdw): Likewise.
3840         (sse2_packuswb): Likewise.
3841         (sse2_punpckhbw): Likewise.
3842         (sse2_punpcklbw): Likewise.
3843         (sse2_punpckhwd): Likewise.
3844         (sse2_punpcklwd): Likewise.
3845         (sse2_punpckhdq): Likewise.
3846         (sse2_punpckldq): Likewise.
3847         (sse2_punpckhqdq): Likewise.
3848         (sse2_punpcklqdq): Likewise.
3849         (*sse2_pinsrw): Likewise.
3850         (*sse2_pextrw): Likewise.
3851         (sse2_pshufd_1): Likewise.
3852         (sse2_uavgv16qi3): Likewise.
3853         (sse2_uavgv8hi3): Likewise.
3854         (sse2_psadbw): Likewise.
3855         (sse2_pmovmskb): Likewise.
3856         (*sse2_maskmovdqu): Likewise.
3857         (*sse2_maskmovdqu_rex64): Likewise.
3858         (sse4a_extrqi): Likewise.
3859         (sse4a_extrq): Likewise.
3860         (sse3_lddqu): Set prefix_rep.
3861         (sse3_addsubv4sf3): Likewise.
3862         (sse3_haddv4sf3): Likewise.
3863         (sse3_hsubv4sf3): Likewise.
3864         (sse_cvtss2si): Likewise.
3865         (sse_cvtss2si_2): Likewise.
3866         (sse_cvtss2siq): Likewise.
3867         (sse_cvtss2siq_2): Likewise.
3868         (sse_cvttss2si): Likewise.
3869         (sse_cvttss2siq): Likewise.
3870         (sse2_cvttps2dq): Likewise.
3871         (sse3_movshdup): Likewise.
3872         (sse3_movsldup): Likewise.
3873         (sse2_cvtsd2si): Likewise.
3874         (sse2_cvtsd2si_2): Likewise.
3875         (sse2_cvtsd2siq): Likewise.
3876         (sse2_cvtsd2siq_2): Likewise.
3877         (sse2_cvttsd2si): Likewise.
3878         (sse2_cvttsd2siq): Likewise.
3879         (*sse2_cvtpd2dq): Likewise.
3880         (*sse2_cvttpd2dq): Likewise.
3881         (sse2_pshuflw_1): Likewise.
3882         (sse2_pshufhw_1): Likewise.
3883         (sse4a_insertqi): Likewise.
3884         (sse4a_insertq): Likewise.
3885         (ssse3_phaddwv8hi3): Set prefix_data16 and prefix_extra.
3886         (ssse3_phadddv4si3): Likewise.
3887         (ssse3_phaddswv8hi3): Likewise.
3888         (ssse3_phsubwv8hi3): Likewise.
3889         (ssse3_phsubdv4si3): Likewise.
3890         (ssse3_phsubswv8hi3): Likewise.
3891         (ssse3_pmaddubswv8hi3): Likewise.
3892         (ssse3_pmulhrswv8hi3): Likewise.
3893         (ssse3_pshufbv16qi3): Likewise.
3894         (ssse3_psign<mode>3): Likewise.
3895         (ssse3_palignrti): Likewise.
3896         (abs<mode>2): Likewise.
3897         (ssse3_phaddwv4hi3): Set prefix_extra.
3898         (ssse3_phadddv2si3): Likewise.
3899         (ssse3_phaddswv4hi3): Likewise.
3900         (ssse3_phsubwv4hi3): Likewise.
3901         (ssse3_phsubdv2si3): Likewise.
3902         (ssse3_phsubswv4hi3): Likewise.
3903         (ssse3_pmaddubswv4hi3): Likewise.
3904         (ssse3_pmulhrswv4hi3): Likewise.
3905         (ssse3_pshufbv8qi3): Likewise.
3906         (ssse3_psign<mode>3): Likewise.
3907         (ssse3_palignrdi): Likewise.
3908         (abs<mode>2): Likewise.
3909         (sse2_cvtdq2ps): Set mode to V4SF instead of V2DF.
3910         (*vec_dupv2df): Set mode to V2DF instead of V4SF.
3911         (sse2_pmovmskb): Set mode to SI instead of V2DF.
3912
3913 2007-04-23  Nick Clifton  <nickc@redhat.com>
3914
3915         * params.def: Fix formatting of emacs local variables.
3916
3917 2007-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3918
3919         * config/i386/sse.md (sse2_stored): Don't split to inter-unit
3920         move if inter-unit move isn't allowed.
3921         Don't split moving the first element of V2DI to DI to inter-unit
3922         move if inter-unit move isn't allowed.
3923
3924 2007-04-23  Richard Guenther  <rguenther@suse.de>
3925
3926         * tree-ssa-sink.c (execute_sink_code): Calculate CDI_DOMINATORS
3927         and CDI_POST_DOMINATORS separately.
3928
3929 2007-04-23  Nick Clifton  <nickc@redhat.com>
3930
3931         * c.opt (Wformat-contains-nul): Add warning attribute.
3932
3933 2007-04-23  Jan Hubicka  <jh@suse.cz>
3934
3935         * function.c (init_function_start): Don't init line number info.
3936         (expand_function_end): Update.
3937         (reset_block_changes, record_block_change, finalize_block_changes,
3938         check_block_change, free_block_changes): Kill.
3939         * function.h (reset_block_changes, record_block_change,
3940         finalize_block_changes, check_block_change, free_block_changes): Remove
3941         prototypes.
3942         (struct function): Remove ib_boundaries_block.
3943         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
3944         Use curr_insn_locator to initialize locator.
3945         (emit_line_note): Remove.
3946         * cfgexpand.c (expand_gimple_cond_expr): Update.
3947         (construct_exit_block): Likewise.
3948         (tree_expand_cfg): Initialize/finalize locators.
3949         * expr.c (expand_expr_real): Update.
3950         * cfglayout.c (line_locators_locs, line_locators_lines,
3951         file_locators_locs, file_locators_files): Remove.
3952         (set_block_levels): Move to cfgexpand.c.
3953         (insn_locators_initialize): Remove.
3954         (pass_insn_locators_initialize): Remove.
3955         (locations_locators_locs, locations_locators_vals): New static vars.
3956         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
3957         Likewise.
3958         (insn_locators_alloc, insn_locators_finalize,
3959         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
3960         New functions.
3961         (locator_location): New.
3962         (locator_line, locator_file): Rewrite.
3963         * rtl.h (emit_line_note): Kill.
3964         (insn_locators_alloc, insn_locators_finalize,
3965     &nb