OSDN Git Service

fix log format
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2007-09-12  Dorit Nuzman  <dorit@il.ibm.com>
2
3         PR tree-optimization/33373
4         * tree-vect-analyze (vect_determine_vectorization_factor): Call 
5         TREE_INT_CST_LOW when comparing TYPE_SIZE_UNIT. 
6
7 2007-09-12  Jan Hubicka  <jh@suse.cz>
8
9         PR target/33393
10         * i386.md (floatsisf2_mixed_memory, floatsisf2_sse_memory): Disable for
11         !SSE_MATH
12
13 2007-09-12  Christian Bruel  <christian.bruel@st.com>
14
15         * sh.h (SH_DBX_REGISTER_NUMBER): Added fpscr, fixed sr/gbr regs.
16         * linux-unwind.h (SH_DWARF_FRAME_GBR): fixed. 
17         
18 2007-09-12  Ira Rosen  <irar@il.ibm.com>
19
20         * tree-vect-transform.c (vect_get_slp_defs): Don't build a vector
21         for oprnd1 if not required.
22         (vectorizable_operation): Use scalar operand in SLP in case of 
23         shift with scalar argument.
24
25 2007-09-12  Ira Rosen  <irar@il.ibm.com>
26
27         * params.def (PARAM_MIN_VECT_LOOP_BOUND): Change default and minimum 
28         to 1.
29
30 2007-09-11  James E. Wilson  <wilson@specifix.com>
31
32         * defaults.h (DWARF2_UNWIND_INFO): Don't define if
33         TARGET_UNWIND_INFO is defined.
34         * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Delete undef
35         after definition.
36
37 2007-09-12  Kaz Kojima  <kkojima@gcc.gnu.org>
38
39         * config/sh/sh.c (calc_live_regs): Use
40         current_function_saves_all_registers instead of
41         current_function_has_nonlocal_label.
42         (sh_allocate_initial_value): Likewise.
43         (sh_get_pr_initial_val): Likewise.
44         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Likewise.
45         * config/sh/sh.md (load_ra): Likewise.
46
47 2007-09-12  Hans-Peter Nilsson  <hp@axis.com>
48
49         * config/cris/t-linux (LIMITS_H_TEST): Only define if not inhibit_libc.
50
51         PR target/33360
52         * config/cris/cris.c (cris_expand_pic_call_address): Fix typo in
53         GET_CODE (x) == CONST_INT to CONST_INT_P (x) transformation.
54
55 2007-09-12  Sa Liu  <saliu@de.ibm.com>
56
57         * config/spu/spu.c (spu_emit_branch_or_set): Handle NaN values as
58         operands to DFmode GE or LE compares.
59
60 2007-09-12  Bernd Schmidt  <bernd.schmidt@analog.com>
61
62         * config/bfin/bfin.h (enum reg_class, REG_CLASS_CONTENTS,
63         REG_CLASS_NAMES): Add P0REGS.
64         (REGNO_REG_CLASS): Return it where appropriate.
65         (REG_CLASS_FROM_CONSTRAINT): Add 'qA'.
66         (CLASS_LIKELY_SPILLED_P): P0REGS is likely_spilled.
67         * doc/md.texi (Blackfin family): Document 'q' constraints.
68
69 2007-09-11  Steve Kenton  <skenton@ou.edu>
70
71         * pa/linux-unwind.h: Guard with inhibit_libc.
72         * pa/hpux-unwind.h: Likewise.
73
74 2007-09-11  David Daney  <ddaney@avtrex.com>
75
76         * doc/invoke.texi: Document new MIPS -mllsc and -mno-llsc options.
77         * doc/install.texi: Document new --with-llsc and --without-llsc
78         options.
79         * config.gcc: Handle --with-llsc and --without-llsc configure options.
80         * config/mips/mips.md (sync, memory_barrier): Wrap sync instrunction
81         in %| and %- operand codes.  Depend on GENERATE_SYNC instead of
82         ISA_HAS_SYNC.
83         (sync_compare_and_swap<mode>, sync_add<mode>, sync_sub<mode>,
84         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
85         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
86         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
87         sync_new_nand<mode>, sync_lock_test_and_set<mode>): Depend on
88         GENERATE_LL_SC instead of ISA_HAS_LL_SC.
89         * config/mips/mips.opt (mllsc): New option.
90         * config/mips/mips.c (mips_llsc): Define variable.
91         (mips_handle_option): Handle mllsc option.
92         (override_options): Set mips_print_operand_punct for '|' and '-'.
93         (print_operand): Add new %| and %- operand codes.
94         * config/mips/mips.h (mips_llsc_setting): New enum type.
95         (mips_llsc): Declare.
96         (OPTION_DEFAULT_SPECS): Add llsc handling.
97         (GENERATE_SYNC): New macro.
98         (GENERATE_LL_SC): New macro.
99         (MIPS_COMPARE_AND_SWAP, MIPS_SYNC_OP, MIPS_SYNC_OLD_OP,
100         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
101         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE): Wrap instructions
102         in %| and %- operand codes.
103
104 2007-09-11  Eric Botcazou  <ebotcazou@adacore.com>
105
106         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Deal with
107         TYPE_NONALIASED_COMPONENT like with DECL_NONADDRESSABLE_P.
108
109 2007-09-11  Jason Merrill  <jason@redhat.com>
110
111         PR middle-end/27945
112         * stor-layout.c (layout_decl): Do pack variable size fields.    
113
114 2007-09-11  Maxim Kuvyrkov  <maxim@codesourcery.com>
115
116         * config/m68k/predicates.md (movsi_const0_operand,
117         non_symbolic_call_operand): New predicates.
118
119         * config/m68k/constraints.md: (Cs, Ci, C0, Cj, CQ, CW, CZ, CS, Ap, Ac):
120         New constraints.
121         * doc/md.texi (Constraints for Particular Machines: Motorola 680x0):
122         Document constraints N, O, P, R, S, T, Q, U, W, Cs, Ci, C0, Cj, CQ,
123         CW, CZ, CS, Ap and Ac.
124
125         * config/m68k/m68k.md (UNSPEC_IB): New constant.
126         (constraints.md): New include.
127         (cpu, type, type1, opx, opy, opx_type, opy_type, size, opx_access,
128         opx_mem, opy_mem, op_mem, guess, split): New attributes.
129         (movdf_internal): Name pattern.  Fix to use alternatives.  Add split.
130         Specify attributes.
131         (pushdi): Add split.
132         (tstsi_internal): Name pattern.  Fix to use alternatives.  Specify
133         attributes.  Split tstsi_internal_68020_cf from it.
134         (tstsi_internal_68020_cf): New pattern.
135         (tsthi_internal, tstqi_internal): Name pattern.  Specify attributes.
136         (tst<mode>_cf): Specify attributea.
137         (cmpsi_cf): Name pattern.  Specify attributes.
138         (cmp<mode>_68881, cmp<mode>_cf): Specify type attribute.
139         (pushexthisi_const): Fix to use alternatives.  Specify
140         attributes.
141         (movsi_const0): Split movsi_const0_68000_10 and movsi_const0_68040_60
142         from it.  Fix to use alternatives.  Specify attributes.
143         (movsi_const0_68040_10, movsi_const0_68040_60): New patterns.
144         (movsi_cf, movstrictqi_cf): Fix to use alternatives.  Specify
145         attributes.
146         (movsf_cf_soft): Specify attributes.
147         (movdf_cf_soft): Add split.
148         (pushasi, zero_extendhisi2_cf, zero_extendqisi2_cfv4,
149         cfv4_extendhisi2, 68k_extendhisi2, extendqihi2, cfv4_extendqisi2,
150         68k_extendqisi2, truncdfsf2_cf): Specify attributes.
151         (truncdfsf2_68881): Name pattern.  Specify attributes.
152         (floatsi<mode>2_cf, floathi<mode>2_68881, floathi<mode>2_cf,
153         floatqi<mode>2_68881, floatqi<mode>2_cf, ftrunc<mode>2_cf,
154         fix<mode>qi2_cf, fix<mode>hi2_cf, fix<mode>si2_cf, adddi_dishl32):
155         Specify attributes.
156         (addsi3_5200): Fix to use alternatives.  Specify attributes.
157         Add splits.
158         (add<mode>3_cf, subdi_dishl32): Specify attributes.
159         (subsi3): Add alternative for subq.l.  Specify attributes.
160         (sub<mode>3_cf, mulhi3, mulhisi3): Specify attributes.
161         (mulhisisi3_s, mulsi3_68020, mulsi3_cf): Name pattern.  Specify
162         attributes.
163         (umulhisi3): Specify attributes.
164         (mulhisisi3_z): Name pattern.  Specify attributes.
165         (fmul<mode>3_cf, div<mode>3_cf, negsi2_internal, negsi2_5200,
166         sqrt<mode>2_68881, clzsi2, one_cmplsi2_5200, subreghi1ashrdi_const32,
167         subregsi1ashrdi_const32, ashrsi3, subreg1lshrdi_const32, lshrsi3,
168         bsetmemqi): Specify attributes.
169         (bsetmemqi_ext): Name pattern.  Specify attributes.
170         (bclrmemqi): Specify attributes.
171         (bclrmemqi_ext, scc, sls): Name pattern.  Specify attributes.
172         (beq, bne, bgt, bgtu, blt, bltu, bge, bgeu, ble, bleu): Specify
173         attributes.
174         (beq2, bne2, bgt2, bgtu2, blt2, bltu2, bge2, bgeu2, ble2, bleu2): Name
175         pattern.  Specify attributes.
176         (jump): Specify attributes.
177         (tablejump_internal): Name pattern.  Specify attributes.
178         (call_value): Split into non_symbolic_call_value,
179         symbolic_call_value_jsr, symbolic_call_value_bsr.  Fix to use
180         alternatives.  Specify attributes.
181         (non_symbolic_call_value, symbolic_call_value_jsr,
182         symbolic_call_value_bsr): New patterns.
183         (nop, return, unlink, indirect_jump): Specify attributes.
184         (trap): Fix condition.  Specify attributes.
185         (ib): New pattern.
186
187         * config/m68k/m68k.c (m68k_symbolic_call_var): New variable.
188         (override_options): Initialize it.  Initialize m68k_sched_cpu.
189         (CONST_METHOD): Rename to M68K_CONST_METHOD, move to m68k.h.
190         (const_method): Make global, rename to m68k_const_method.
191         (const_int_cost, output_move_const_into_data_reg): Update.
192         (output_move_double): Parametrize to emit rtl code, rename to
193         handle_move_double.
194         (output_reg_adjust, emit_reg_adjust, output_compadr, output_movsi,
195         emit_movsi): New static functions.
196         (output_move_double): New function with semantics of old
197         output_move_double.
198         (m68k_emit_move_double): New function.
199         (m68k_sched_cpu): New variable.
200         (attr_op_type): New enum.
201         (sched_guess_p): New variable.
202         (sched_address_type, sched_operand_type, sched_attr_op_type):
203         New static functions.
204         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type,
205         m68k_sched_attr_size, m68k_sched_attr_op_mem): New functions.
206         (sched_branch_type): New static variable.
207         (m68k_sched_branch_type): New function.
208         * config/m68k/m68k.h (M68K_SYMBOLIC_CALL): New enum.
209         (m68k_symbolic_call_var): Declare.
210         (M68K_CONST_METHOD): Rename from CONST_METHOD.  Move here from m68k.c.
211         (m68k_const_method, m68k_emit_move_double, m68k_sched_cpu,
212         m68k_sched_attr_opx_type, m68k_sched_attr_opy_type,
213         m68k_sched_attr_size, m68k_sched_attr_op_mem, m68k_sched_branch_type):
214         Declare.
215
216 2007-09-11  Jakub Jelinek  <jakub@redhat.com>
217
218         * builtins.def (BUILT_IN_VA_ARG_PACK_LEN): New builtin.
219         * builtins.c (expand_builtin) <case BUILT_IN_VA_ARG_PACK_LEN>: Issue
220         error if __builtin_va_arg_pack_len () wasn't optimized out during
221         inlining.
222         * tree-inline.c (copy_bb): Replace __builtin_va_arg_pack_len ()
223         with the number of inline's anonymous arguments.
224         * doc/extend.texi: Document __builtin_va_arg_pack_len ().
225
226 2007-09-11  Zdenek Dvorak  <ook@ucw.cz>
227
228         * fold-const.c (extract_muldiv_1): Do not simplify
229         var * c * c to var.
230
231 2007-09-11  Jan Hubicka <jh@suse.cz>
232
233         * i386.h (ix86_tune_indices): Add X86_TUNE_INTER_UNIT_CONVERSIONS.
234         (TARGET_INTER_UNIT_CONVERSIONS): New.
235         * i386.md (floatsi expanders): Remove redundant check for SImode
236         source; offload to memory when asked for.
237         (floatsisf2_mixed, floatsisf2_sse, floatsidf2_mixed, floatsidf2_sse
238         floatdisf2_mixed, floatsisf2_sse, floatsidf2_mixed, floatsidf2_sse):
239         Update conditions;
240         (floatsisf2_mixed_memory, floatsisf2_sse_memory,
241         floatsidf2_mixed_memory, floatsidf2_sse_memory
242         floatdisf2_mixed_memory, floatsisf2_sse_memory,
243         floatsidf2_mixed_memory, floatsidf2_sse_memory): New.
244
245 2007-09-11  Jan Hubicka <jh@suse.cz>
246
247         * toplev.c (process_options): all frontends now do unit-at-a-time.
248         * cgraphunit.c: update comments.
249         (cgraph_expand_function): call passmanager dirrectly; emit thunks.
250         * c-decl.c (finish_function): use cgraph_add_new_function.
251         * function.c (expand_function_end): We are always unit-at-a-time.
252
253 2007-09-11  Richard Sandiford  <richard@codesourcery.com>
254
255         * config/mips/mips.c (mips_set_mips16_mode): Use separate anchor
256         settings for MIPS16.
257         (mips_use_anchors_for_symbol_p): Use default_use_anchors_for_symbol_p.
258
259 2007-09-11  Richard Sandiford  <richard@codesourcery.com>
260
261         * config/mips/mips.c (mips_symbol_insns_1): Allow LEAs of
262         SYMBOL_FORCE_TO_MEM constants.
263         (mips_rtx_costs): Give a cost of 1 to force_to_mem_operands.
264         (mips16_rewrite_pool_refs_info): New structure.
265         (mips16_rewrite_pool_constant): New function, split out from...
266         (mips16_rewrite_pool_refs): ...here.  Take a pointer to a
267         mips16_rewrite_pool_refs_info structure rather than a pointer
268         to a constant pool.  Force force_to_mem_operands into memory.
269         (mips16_lay_out_constants): Update call to mips16_rewrite_pool_refs.
270         * config/mips/predicates.md (force_to_mem_operand): New predicate.
271         * config/mips/constraints.md (kf): New constraint.
272         * config/mips/mips.md (*movdi_64bit_mips16): Add a d <- kf alternative.
273         (*movsi_mips16): Likewise.
274
275 2007-09-11  Richard Sandiford  <richard@codesourcery.com>
276             Nigel Stephens  <nigel@mips.com>
277             David Ung  <davidu@mips.com>
278
279         * config/mips/mips.h (CONSTANT_POOL_COST): Move to...
280         * config/mips/mips.c: ...here and set to 4 for TARGET_MIPS16.
281         (mips16_constant_cost, mips_immediate_operand_p, mips_binary_cost)
282         (mips_fp_mult_cost, mips_fp_div_cost, mips_sign_extend_cost)
283         (mips_zero_extend_cost): New functions.
284         (mips_rtx_costs): Treat COMPARE constants as having zero cost.
285         Use the new functions.  Tweak many cost estimates, both here
286         and in the new subroutines.  Return false when the cost of the
287         operands has not been calculated.  Check for *clear_upper32.
288         Check for floating-point multiply-add, reciprocal and rsqrt
289         patterns.  Handle comparison and rotation codes.
290
291 2007-09-11  Danny Smith  <dannysmith@users.sourceforge.net>
292
293         * config/i386/cygming.h (TARGET_STRIP_NAME_ENCODING): Don't
294         override default.
295         * config/i386/i386.c (get_dllimport_decl): Don't strip
296         FASTCALL_PREFIX.
297
298 2007-09-10  Janis Johnson  <janis187@us.ibm.com>
299
300         PR c/30013
301         * config/dfp-bit.c: Don't skip TFmode conversions; move strto*
302         declarations to top.
303         (DFP_TO_BFP): Use for either XFmode or TFmode.
304         (BFP_TO_DFP): Use for either XFmode or TFmode; always use cast
305         of BFP_VIA_TYPE.
306         * config/dfp-bit.h: Include float.h.
307         (LONG_DOUBLE_HAS_XF_MODE, LONG_DOUBLE_HAS_TF_MODE): Define if long
308         double is one of these modes, rather than using LIBGCC_HAS_*F_MODE
309         which doesn't mean the same thing.
310         (BFP_KIND): Use 4 to mean TFmode.
311         (BFP_FMT): Specify the number of decimal digits based on the
312         number of mantissa digits.
313         (BFP_VIA_TYPE): Binary float type to use as cast for sprintf.
314         (BFP_TO_DFP, DFP_TO_BFP): Define names for TFmode variants.
315         (STR_TO_BFP): Use strtold for XFmode or TFmode.
316         (TFtype): Define if TFmode is supported.
317         * doc/libgcc.texi (Decimal float library routines): Document
318         TF conversion functions.
319
320 2007-09-10  Chao-ying Fu  <fu@mips.com>
321
322         * config/mips/mips.c (mips_scalar_mode_supported_p): Declare.
323         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
324         (mips_emit_compare): Process fixed-point modes.
325         (mips_pad_arg_upward): Support fixed-point types.
326         (override_options): Allow fixed-point modes in accumulators.
327         (mips_pass_by_reference): Pass DQ, UDQ, DA, and UDA modes in registers.
328         (mips_vector_mode_supported_p): Support V2HQmode, V2UHQmode, V2HAmode,
329         V2UHAmode, V4QQmode, and V4UQQmode when TARGET_DSP.
330         (mips_scalar_mode_supported_p): New function to accept fixed-point
331         modes if the width is not greater than two BITS_PER_WORD.
332         * config/mips/mips.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE,
333         LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
334         SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
335         LONG_LONG_ACCUM_TYPE_SIZE): Define.
336         * config/mips/mips.md ("d"): Update mode attribute for fixed-point
337         modes.
338         ("IMODE"): New mode attribute.
339         (mips-fixed.md): Include.
340         * config/mips/mips-modes.def: Create VECTOR_MODES for FRACT, UFRACT,
341         ACCUM, UACCUM.
342         * config/mips/mips-fixed.md: New file.
343
344 2007-09-11  Ben Elliston  <bje@au.ibm.com>
345
346         * config/spu/spu.md: Formatting fixes.
347
348 2007-09-10  Janis Johnson  <janis187@us.ibm.com>
349
350         * config/dfp-bit.c (dfp_unary_func): Delete.
351         (dfp_unary_op): Delete.
352         (dfp_binary_op): Use decFloat functions instead of decNumber
353         functions for binary operations.
354         (d32_binary_op): Convert 32-bit operands to 64 bits for evaluation.
355         (dnn_binary_op): Call dfp_binary_op with decFloat rather than
356         DFP_C_TYPE.
357         (dfp_compare_op): Use decFloat functions insteadof decNumber
358         functions for comparisons.
359         (d32_compare_op): Convert 32-bit operands to 64 bits for evaluation.
360         (dnn_binary_op): Call dfp_compare_op with decFloat rather than
361         DFP_C_TYPE.
362         (DFP_ADD, DFP_SUB, DFP_MULTIPLE, DFP_DIVIDE): Use macros for
363         call to dxx_binary_op and decFloat function.
364         (DFP_EQ, DFP_NE, DFP_LT, DFP_GT, DFP_LE, DFP_GE): Use macros for
365         calls to dxx_binary_op and decFloat function.
366         * config/dfp-bit.h: Include decFloat header files.
367         (decFloat, DFP_BINARY_OP, DFP_COMPARE_OP, DEC_FLOAT_ADD,
368         DEC_FLOAT_SUBTRACT, DEC_FLOAT_MULTIPLY, DEC_FLOAT_DIVIDE,
369         DEC_FLOAT_COMPARE, DEC_FLOAT_IS_ZERO, DEC_FLOAT_IS_NAN,
370         DEC_FLOAT_IS_SIGNED: Define for each of 3 operand widths.
371
372 2007-09-10  Harsha Jagasia <harsha.jagasia@amd.com>
373             Jan Sjodin <jan.sjodin@amd.com>
374         
375         * tree-vect-analyze.c (vect_analyze_operations): Change
376         comparison of loop iterations with threshold to less than
377         or equal to instead of less than. Reduce
378         min_scalar_loop_bound by one.
379         * tree-vect-transform.c (vect_estimate_min_profitable_iters): 
380         Change prologue and epilogue iterations estimate to vf/2,
381         when unknown at compile-time. Change versioning guard
382         cost to taken_branch_cost. If peeling for alignment is
383         unknown at compile-time, change peel guard costs to one
384         taken branch and one not-taken branch per peeled loop.
385         If peeling for alignment is known but number of scalar loop
386         iterations is unknown at compile-time, change peel guard
387         costs to one taken branch per peeled loop. Change the cost
388         model equation to consider vector iterations as the loop
389         iterations less the prologue and epilogue iterations.
390         Change outside vector cost check to less than or equal to
391         zero instead of equal to zero.
392         (vect_do_peeling_for_loop_bound): Reduce
393         min_scalar_loop_bound by one.
394         * tree-vectorizer.h: Add TARG_COND_TAKEN_BRANCH_COST and
395         TARG_COND_NOT_TAKEN_BRANCH_COST.        
396         * config/i386/i386.h (processor_costs): Add
397         scalar_stmt_cost, scalar_load_cost, scalar_store_cost,
398         vec_stmt_cost, vec_to_scalar_cost, scalar_to_vec_cost,
399         vec_align_load_cost, vect_unalign_load_cost,
400         vec_store_cost, cond_taken_branch_cost,
401         cond_not_taken_branch_cost.
402         Define macros for x86 costs.
403         * config/i386/i386.c:
404         (size_cost): Set scalar_stmt_cost, scalar_load_cost,
405         scalar_store_cost, vec_stmt_cost, vec_to_scalar_cost,
406         scalar_to_vec_cost, vec_align_load_cost, 
407         vect_unalign_load_cost, vec_store_cost,
408         cond_taken_branch_cost, cond_not_taken_branch_cost to one. 
409         (i386_cost, i486_cost, pentium_cost, pentiumpro_cost,
410         geode_cost, k6_cost, athlon_cost, pentium4_cost, nocona_cost, 
411         core2_cost, generic64_cost, generic32_cost): Set to default
412         untuned costs.
413         (k8_cost, amdfam10_cost): Costs for vectorization tuned.
414         (x86_builtin_vectorization_cost): New.
415
416 2007-09-10  Janis Johnson  <janis187@us.ibm.com>
417             Ben Elliston  <bje@au.ibm.com>
418
419         * dfp.c: Include decimal128Local.h; 
420         (dfp_byte_swap): Remove.
421         (encode_decimal32, decode_decimal32): Don't handle endianness.
422         (encode_decimal64, decode_decimal64): Ditto.
423         (encode_decimal128, decode_decimal128): Ditto.
424         * config/dfp-bit.c (host_to_ieee32, ieee_to_host_32): Ditto.
425         (__swap64): Remove.
426         (host_to_ieee_64, ieee_to_host_64): Don't handle endianness.
427          (__swap128): Remove
428         (host_to_ieee_128, ieee_to_host_128): Don't handle endianness.
429         * Makefile.in (DECNUM_H): Add decimal128Local.h.
430
431 2007-09-10  David Daney  <ddaney@avtrex.com>
432
433         * config/mips/mips.md (UNSPEC_MEMORY_BARRIER): New entry in
434         define_constants.
435         (memory_barrier): Rewrote as an insn that clobbers memory.
436
437 2007-09-10  Richard Sandiford  <richard@codesourcery.com>
438
439         * config/mips/mips.c (mips_global_pointer): Check
440         call_really_used_regs instead of call_used_regs.
441         (mips_save_reg_p): Likewise.  Save all call-saved registers
442         if current_function_saves_all_registers.  Fix indentation.
443         No longer treat $18 as a special case.
444         (compute_frame_size): Guard FPR loop with TARGET_HARD_FLOAT.
445
446 2007-09-10  Richard Sandiford  <richard@codesourcery.com>
447
448         * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): New macro.
449         * config/mips/mips.c (mips_cpu_info_table): Mention it in the
450         the introductory comment.
451         (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Delete.
452         (override_options): Don't test for it.
453         * config/mips/sde.h (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Delete.
454         (DRIVER_SELF_SPECS): Add MIPS_ARCH_FLOAT_SPEC.
455         * config/mips/vr.h: As for config/mips/sde.h.
456
457 2007-09-10  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
458             Revital Eres  <eres@il.ibm.com>
459
460         * target.h (struct gcc_target.sched): New field: sms_res_mii.
461         (struct ddg): Define.
462         * target-def.h (TARGET_SCHED_SMS_RES_MII): Define.
463         (TARGET_SCHED): Add TARGET_SCHED_SMS_RES_MII.
464         * config/spu/spu.c: Include ddg.h.
465         (TARGET_SCHED_SMS_RES_MII): Define.
466         (spu_sms_res_mii): New function to calculate mii.
467         * modulo-sched (res_MII): Use it.
468         * doc/tm.texi: Document TARGET_SCHED_SMS_RES_MII.
469
470 2007-09-10  Andreas Krebbel  <krebbel1@de.ibm.com>
471
472         * config/s390/s390.c (s390_dump_pool): Create copy of constant
473         pool entries since they might hold values that must not be shared.
474
475 2007-09-10  Uros Bizjak  <ubizjak@gmail.com>
476
477         PR target/33369
478         * gcc/config/i386/sse.md (ashr<mode>3): Change op2 mode to SImode.
479         Use 'N' operand constraint for op2.
480         (lshr<mode>3): Ditto.
481         (ashl<mode>3): Ditto.
482         (vec_shl_<mode>): Use const_0_to_255_mul_8_operand predicate for op2.
483         (vec_shr_<mode>): Use const_0_to_255_mul_8_operand predicate for op2.
484
485         * gcc/config/i386/i386.c (ix86_expand_builtin) [IX86_BUILTIN_PSLL?128,
486         IX86_BUILTIN_PSRA*?128, IX86_BUILTIN_PSRL?128]: Convert op1 to SImode.
487
488 2007-09-10  Andreas Krebbel  <krebbel1@de.ibm.com>
489
490         * config/s390/s390.md ("fixuns_trunc<BFP:mode><GPR:mode>2"):
491         Change mode macro in the last real_2expN parameter to uppercase.
492
493 2007-09-10  Michael Matz  <matz@suse.de>
494
495         * tree-pass.h (pass_cselim): Declare new pass.
496         * passes.c (init_optimization_passes): Link in pass_cselim.
497         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Renamed from
498         tree_ssa_phiopt; add do_store_elim parameter, handle it by calling
499         cond_store_replacement.
500         (condstoretemp): New static variable.
501         (cond_store_replacement): New function.
502         (tree_ssa_phiopt, tree_ssa_cs_elim): New wrappers around
503         tree_ssa_phiopt_worker.
504         (struct name_to_bb): New.
505         (get_non_trapping, name_to_bb_hash, name_to_bb_eq, add_or_mark_expr,
506         nt_init_block, nt_fini_block): New static functions.
507         (seen_ssa_names, nontrap_set): New static variables.
508         (gate_cselim, pass_cselim): Define new pass.
509         * common.opt (ftree-cselim): New flag.
510         * toplev.c (process_options): Set flag_tree_cselim if required.
511
512 2007-09-10  Hans-Peter Nilsson  <hp@axis.com>
513
514         * simplify-rtx.c (simplify_relational_operation_1): For recent
515         canonicalization, don't recurse if op1 equals both PLUS arguments.
516
517 2007-09-09  David Daney  <ddaney@avtrex.com>
518
519         * optabs.c (expand_sync_operation):  Use plus insn if minus
520         CONST_INT_P(val).
521         (expand_sync_fetch_operation):  Ditto.
522
523 2007-09-09  H.J. Lu  <hongjiu.lu@intel.com>
524
525         * i386.md (*floatsisf2_mixed_vector): Use cvtdq2ps instead
526         of cvtpq2ps.
527         (*floatsisf2_sse_vector): Likewise.
528
529 2007-09-09  Krister Walfridsson  <cato@df.lth.se>
530
531         * config/netbsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
532
533 2007-09-09  H.J. Lu  <hongjiu.lu@intel.com>
534
535         * config/i386/i386.h (ix86_tune_indices): Rename
536         X86_USE_VECTOR_CONVERTS to X86_TUNE_USE_VECTOR_CONVERTS.
537         (TARGET_USE_VECTOR_CONVERTS): Updated.
538         * config/i386/i386.c: Likewise.
539
540 2007-09-09  Sandra Loosemore  <sandra@codesourcery.com>
541             Nigel Stephens <nigel@mips.com>
542
543         * doc/invoke.texi (Overall Options):  Add .sx file extension
544         as a synonym for .S.
545         * cppspec.c (known_suffixes): Likewise.
546         * gcc.c (default_compilers): Likewise.
547
548 2007-09-09  Rask Ingemann Lambertsen  <rask@sygehus.dk>
549
550         PR target/30315
551         * config/i386/i386.h (CANONICALIZE_COMPARISON): Delete.
552         * simplify-rtx.c (simplify_relational_operation_1): Add the
553         canonicalization from i386.h.
554         * doc/md.texi (Canonicalization of Instructions): Document it.
555
556 2007-09-09  Jan Hubicka  <jh@suse.cz>
557             Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
558
559         * i386.h (ix86_tune_indices): Add X86_USE_VECTOR_CONVERTS.
560         (TARGET_USE_VECTOR_CONVERTS): New.
561         * i386.md: New post-reload splitters for converting SF to DF and DF to
562         SF.
563         (floatsi* expander): Special case vector conversions.
564         (floatsisf2_mixed_vector, floatsisf2_sse_vector_nointernunit,
565         floatsisf2_sse_vector_internunit, floatsisf2_sse_vector,
566         floatsidf2_mixed_vector, floatsidf2_sse_vector): New.
567         (floatsisf2_mixed, floatsisf2_sse, floatsidf2_mixed, floatsidf2_sse):
568         Disable when doing vector converts.
569         (floatsi<mode>2_i387): Disable when
570         * sse.md (vec_dupv2df): Export.
571         * i386.c (ix86_tune_features): Enable SSE conversions.
572
573 2007-09-09  Richard Guenther  <rguenther@suse.de>
574
575         * tree-ssa-operands.c (add_virtual_operand): Only mark
576         stores as has_volatile_ops if alias information is not available.
577
578 2007-09-09  Revital Eres  <eres@il.ibm.com>
579
580         * doc/contrib.texi: Add myself.
581
582 2007-09-09  Ira Rosen  <irar@il.ibm.com>
583
584         * tree-vectorizer.h (stmt_vinfo_set_inside_of_loop_cost,
585         stmt_vinfo_set_outside_of_loop_cost): New functions.
586         * tree-vect-transform.c (vect_get_cost_fields): Remove.
587         (vect_model_simple_cost): Call
588         stmt_vinfo_set_inside/outside_of_loop_cost to set the relevant cost
589         field instead of calling vect_get_cost_fields.
590         (vect_model_store_cost, vect_model_load_cost): Likewise.
591
592 2007-09-09  Revital Eres  <eres@il.ibm.com>
593
594         * config/rs6000/rs6000.c (paired_init_builtins): Add const
595         declaration to bdesc_paired_preds variable.
596         (paired_expand_builtin): Likewise.
597
598 2007-09-09  Revital Eres  <eres@il.ibm.com>
599
600         * dbgcnt.def (sms_sched_loop): New counter.
601         * modulo-sched.c: Use sms_sched_loop instead of
602         MAX_SMS_LOOP_NUMBER to determine the maximum number of loops to
603         perform swing modulo scheduling on.  Include dbgcnt.h.
604         * Makefile.in: Add DBGCNT_H to modulo-sched.o.
605         * params.def: Remove PARAM_MAX_SMS_LOOP_NUMBER.
606
607 2007-09-09  Uros Bizjak  <ubizjak@gmail.com>
608
609         * config/i386/i386.md (X87MODEF12, SSEMODEF): Remove mode iterators.
610         Substitute all uses with ...
611         (MODEF): New mode iterator.
612
613         (fix_trunc<mode>_fisttp_i387_1): Remove operand constraints
614         from pre-regalloc define_insn_and_split splitter pattern.
615         (*fix_trunc<mode>_i387_1): Ditto.
616         (*fistdi2_1): Ditto.
617         (*fist<mode>2_1): Ditto.
618         (frndintxf2_floor): Ditto.
619         (*fist<mode>2_floor_1): Ditto.
620         (frndintxf2_ceil): Ditto.
621         (*fist<mode>2_ceil_1): Ditto.
622         (frndintxf2_trunc): Ditto.
623         (frndintxf2_mask_pm): Ditto.
624
625         (prologue): Use (const_int 0) as never generated filler insn.
626         (epilogue): Ditto.
627         (sibcall_epilogue): Ditto.
628         (eh_return_si): Ditto.
629         (eh_return_di): Ditto.
630
631         (add<mode>3): Rename from adddf3 and addsf3.  Macroize expander
632         using MODEF mode iterator.
633         (sub<mode>3): Rename from subdf3 and subsf3.  Macroize expander
634         using MODEF mode iterator.
635         (mul<mode>3): Rename from muldf3 and mulsf3.  Macroize expander
636         using MODEF mode iterator.
637         (nearbyint<mode>2): Rename from nearbyintdf2 and nearbyintsf2.
638         Macroize expander using MODEF mode iterator.
639
640         (zero_extendsidi2): Remove operand constraints from expander.
641         (smuldi3_highpart): Ditto.
642         (indirect_jump): Ditto.
643         (tablejump): Ditto.
644         (rsqrtsf2): Ditto.
645         * config/i386/sse.md (storentv4sf): Ditto.
646         (storentv2df): Ditto.
647         (storentv2di): Ditto.
648         (storentsi): Ditto.
649         (sse2_cvtpd2ps): Ditto.
650         (vec_interleave_highv16qi): Ditto.
651         (vec_interleave_lowv16qi): Ditto.
652         (vec_interleave_highv8hi): Ditto.
653         (vec_interleave_lowv8hi): Ditto.
654         (vec_interleave_highv4si): Ditto.
655         (vec_interleave_lowv4si): Ditto.
656         (vec_interleave_highv2di): Ditto.
657         (vec_interleave_lowv2di): Ditto.
658         (sse2_maskmovdqu): Ditto.
659         * config/i386/mmx.md (mmx_maskmovq): Ditto.
660
661 2007-09-09  Ira Rosen  <irar@il.ibm.com>
662
663         * tree-vectorizer.h (enum vect_def_type): Start enumeration from 1.
664         (struct _slp_tree, struct _slp_instance): Define new data structures
665         along macros for their access.
666         (struct _loop_vec_info): Define new fields: strided_stores,
667         slp_instances, and slp_unrolling_factor along macros for their access.
668         (enum slp_vect_type): New.
669         (struct _stmt_vec_info): Define new field, slp_type, and macros for its
670         access.
671         (STMT_VINFO_STRIDED_ACCESS): New macro.
672         (vect_free_slp_tree): Declare.
673         (vectorizable_load): Add an argument of type slp_tree.
674         (vectorizable_store, vectorizable_operation, vectorizable_conversion,
675         vectorizable_assignment): Likewise.
676         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
677         Declare (make extern).
678         * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
679         (new_loop_vec_info): Likewise.
680         (destroy_loop_vec_info): Free memory allocated for SLP structures.
681         * tree-vect-analyze.c: Include recog.h.
682         (vect_update_slp_costs_according_to_vf): New.
683         (vect_analyze_operations): Add argument for calls to vectorizable_ ()
684         functions. For not pure SLP stmts with strided access check that the
685         group size is power of 2. Update the vectorization factor according to
686         SLP. Call vect_update_slp_costs_according_to_vf.
687         (vect_analyze_group_access): New.
688         (vect_analyze_data_ref_access): Call vect_analyze_group_access.
689         (vect_free_slp_tree): New functions.
690         (vect_get_and_check_slp_defs, vect_build_slp_tree, vect_print_slp_tree,
691         vect_mark_slp_stmts, vect_analyze_slp_instance, vect_analyze_slp,
692         vect_make_slp_decision, vect_detect_hybrid_slp_stmts,
693         vect_detect_hybrid_slp): Likewise.
694         (vect_analyze_loop): Call vect_analyze_slp, vect_make_slp_decision
695         and vect_detect_hybrid_slp.
696         * tree-vect-transform.c (vect_estimate_min_profitable_iters): Take
697         SLP costs into account.
698         (vect_get_cost_fields): New function.
699         (vect_model_simple_cost): Make extern, add SLP parameter and handle
700         SLP.
701         (vect_model_store_cost, vect_model_load_cost): Likewise.
702         (vect_get_constant_vectors): New function.
703         (vect_get_slp_vect_defs, vect_get_slp_defs,
704         vect_get_vec_defs_for_stmt_copy, vect_get_vec_defs_for_stmt_copy,
705         vect_get_vec_defs): Likewise.
706         (vectorizable_reduction): Don't handle SLP for now.
707         (vectorizable_call): Don't handle SLP for now. Add argument to
708         vect_model_simple_cost.
709         (vectorizable_conversion): Handle SLP (call vect_get_vec_defs to
710         get SLPed and vectorized defs). Fix indentation and spacing.
711         (vectorizable_assignment): Handle SLP.
712         (vectorizable_induction): Don't handle SLP for now.
713         (vectorizable_operation): Likewise.
714         (vectorizable_type_demotion): Add argument to
715         vect_model_simple_cost.
716         (vectorizable_type_promotion): Likewise.
717         (vectorizable_store, vectorizable_load): Handle SLP.
718         (vectorizable_condition): Don't handle SLP for now.
719         (vect_transform_stmt): Add a new argument for SLP. Check that there is
720         no SLP transformation required for unsupported cases. Add SLP
721         argument for supported cases.
722         (vect_remove_stores): New function.
723         (vect_schedule_slp_instance, vect_schedule_slp): Likewise.
724         (vect_transform_loop): Schedule SLP instances.
725         * Makefile.in: (tree-vect-analyze.o): Depend on recog.h.
726
727 2007-09-09  Andrew Haley  <aph@redhat.com>
728
729         * optabs.c (sign_expand_binop): Set libcall_gen = NULL in the
730         fake signed optab.
731
732 2007-09-09  Hans-Peter Nilsson  <hp@axis.com>
733
734         Divide REG_LABEL notes into REG_LABEL_OPERAND and REG_LABEL_TARGET.
735         * doc/rtl.texi (Insns): Specify when a label_ref makes a jump_insn.
736         Similar for what label_refs can go in the JUMP_TARGET field.  Split
737         REG_LABEL documentation into REG_LABEL_TARGET and REG_LABEL_OPERAND.
738         * reload.c (find_reloads): Generate REG_LABEL_OPERAND, not
739         REG_LABEL when replacing an operand with a LABEL_REF for a
740         non-jump insn.
741         (subst_reloads): When replacing a LABEL_REG with a register,
742         instead of generating a REG_LABEL note, assert that there already
743         is one or that the label is a known target for the insn.
744         * rtlanal.c (computed_jump_p): Instead of looking for a REG_LABEL
745         note, check the JUMP_LABEL field.  Remove "else" after return.
746         * reorg.c (emit_delay_sequence): Replace case for REG_LABEL with
747         cases for REG_LABEL_OPERAND and REG_LABEL_TARGET.
748         (fill_slots_from_thread): Handle both REG_LABEL_OPERAND and
749         REG_LABEL_TARGET notes, including the JUMP_TARGET field on JUMP_P
750         insns.  Iterate over all notes; don't assume there's only one.
751         * cse.c (recorded_label_ref): Adjust comment to refer to
752         REG_LABEL_OPERAND.
753         (cse_extended_basic_block): Do LABEL_REF check for all INSN_P
754         insns, not just NONJUMP_INSN_P.
755         (check_for_label_ref): For JUMP_P insns, check that the LABEL_REF
756         isn't a jump target.
757         * jump.c (rebuild_jump_labels): Adjust head comment.
758         (init_label_info): Ditto.  Remove REG_LABEL_OPERAND notes only;
759         don't reset REG_LABEL_TARGET notes, including the JUMP_LABEL field.
760         (mark_all_labels): For JUMP_P insns without a target, check if the
761         the target is noted on the previous nonjump insn.
762         (mark_jump_label_1): New function, guts from mark_jump_label.
763         <case IF_THEN_ELSE>: Handle first operand as a non-target when
764         marking jump target labels.
765         <case LABEL_REF>: Adjust for whether to generate a
766         REG_LABEL_TARGET or a REG_LABEL_OPERAND note.
767         For 'E' format rtl, iterate in descending element order.
768         (delete_related_insns): Handle both REG_LABEL_TARGET and
769         REG_LABEL_OPERAND notes.  For JUMP_P insns with labels with zero
770         reference count, delete and fallthrough.  Move finding-next-
771         non-deleted insn last in the function.  Look at all INSN_P insns
772         for REG_LABEL_OPERAND notes.
773         (redirect_jump_2): Assert that OLABEL equals the old JUMP_LABEL of
774         JUMP.
775         * print-rtl.c (print_rtx): For JUMP_P insns and a non-NULL
776         JUMP_LABEL, output the INSN_UID of it.
777         * gcse.c: Adjust comments as appropriate to say REG_LABEL_OPERAND
778         and/or REG_LABEL_TARGET.
779         (add_label_notes): Only add REG_LABEL_OPERAND notes.  Put in line
780         with jump.c copy by only adding notes for labels actually
781         referenced in the insn.
782         * emit-rtl.c (try_split): Don't assume only NONJUMP_INSN_P need
783         usage count increment; handle all INSN_P trial insns.
784         (emit_copy_of_insn_after): Change to not copy REG_LABEL_OPERAND
785         notes.
786         * rtl.h (struct rtx_def) <volatil>: Adjust to mention
787         REG_LABEL_TARGET and REG_LABEL_OPERAND.
788         (LABEL_REF_NONLOCAL_P): Allow REG_LABEL_TARGET and
789         REG_LABEL_OPERAND.
790         * combine.c (distribute_notes): Adjust for REG_LABEL_TARGET on
791         JUMP_P insns and REG_LABEL_OPERAND everywhere.
792         * sched-rgn.c (is_cfg_nonregular): Check for REG_LABEL_OPERANDS
793         on all INSN_P insns.
794         * reg-notes.def (LABEL_TARGET, LABEL_OPERAND): Split from LABEL.
795         * cfgrtl.c (delete_insn): Adjust to handle REG_LABEL_TARGET and
796         REG_LABEL_OPERAND notes.
797         * reload1.c (calculate_needs_all_insns): Adjust comments.
798         (set_label_offsets): Adjust to look for REG_LABEL_OPERAND notes.
799         * config/alpha/alpha.md (split for load of an address into a
800         four-insn sequence on Unicos/Mk): Adjust to use
801         REG_LABEL_OPERAND.
802         * config/sh/sh.md (sh_reorg, final_prescan_insn): Ditto.
803
804 2007-09-09  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
805
806         Revert:
807         2007-09-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
808         * regrename.c (copyprop_hardreg_forward_1): New variable next. Use
809         FOR_BB_INSNS_SAFE instead of for loop.
810         * cse.c (cse_extended_basic_block): Likewise.
811         * postreload.c (reload_cse_regs_1): New variable next. Make sure
812         that the for loop does not invoke NEXT_INSN on a deleted insn.
813         * function.c (instantiate_virtual_regs): Likewise.
814         * lower-subreg.c (remove_retval_note): Likewise.
815         (decompose_multiword_subregs): Use FOR_BB_INSNS_SAFE instead of
816         FOR_BB_INSNS.
817         * emit-rtl.c (remove_insn): Set NEXT_INSN and PREV_INSN to NULL on
818         a deleted insn.
819         * cfgrtl.c (delete_insn): Set JUMP_LABEL to NULL on a deleted
820         insn, if it's a jump.
821         (try_redirect_by_replacing_jump): New variable jump_p. Call
822         tablejump_p before delete_insn_chain.
823         * reload1.c (reload): New variable next. Make sure that the for
824         loop does not invoke NEXT_INSN on a deleted insn.
825         (fixup_eh_region_note): Make the loop terminate if i becomes NULL.
826         (delete_output_reload): New variable prev. Make sure the the for
827         loops do not invoke PREV_INSN on a deleted insn.
828
829 2007-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
830
831         * pa/constraints.md: Remove 'X' from unused letters comment.
832
833 2007-09-08  Richard Guenther  <rguenther@suse.de>
834
835         * tree-tailcall.c (find_tail_calls): If we don't have aliases
836         computed check stmt_ann->references_memory instead of counting
837         virtual operands.
838  
839 2007-09-08  Segher Boessenkool  <segher@kernel.crashing.org>
840
841         * cse.c (fold_rtx): Use validate_unshare_change() instead of
842         validate_change() in one more case.
843
844 2007-09-08  Zdenek Dvorak  <ook@ucw.cz>
845
846         PR tree-optimization/32283
847         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Use
848         estimated_loop_iterations.
849         (determine_use_iv_cost_condition): Decrease cost of expressions
850         used in iv elimination.
851
852 2007-09-08  Richard Guenther  <rguenther@suse.de>
853
854         * tree-cfg.c (verify_gimple_expr): Avoid building new
855         pointer types, use TYPE_POINTER_TO if available instead.
856
857 2007-09-08  Uros Bizjak  <ubizjak@gmail.com>
858
859         PR target/33329
860         PR rtl-optimization/26449
861         * config/i386/sse.md (mulv4si3): Do not expand sse2 sequence.
862         (*sse2_mulv4si3): New define_insn_and_split pattern. Split insn in
863         split1 pass.
864         (mulv16qi3): Implement as define_insn_and_split pattern instead of
865         define_expand.  Split insn in split1 pass.
866         (mulv2di3): Ditto.
867
868 2007-09-08  Dorit Nuzman  <dorit@il.ibm.com>
869
870         PR tree-optimization/33301
871         * tree-vect-analyze (analyze_operations): Look at the type of the rhs
872         when relevant.
873
874 2007-09-07  Zdenek Dvorak  <ook@ucw.cz>
875
876         PR tree-optimization/32183
877         * Makefile.in (tree-ssa-reassoc.o): Also depend on $(CFGLOOP_H).
878
879         * tree-ssa-reassoc.c: Include cfgloop.h.
880         (is_reassociable_op): Add a loop argument and return true only
881         for inside loop.
882         (linearize_expr): Updated.
883         (should_break_up_subtract): Likewise.
884         (linearize_expr_tree): Likewise.
885         (init_reassoc): Call loop_optimizer_init with
886         AVOID_CFG_MODIFICATIONS.  Remove calculate_dominance_info call
887         with CDI_DOMINATORS.
888         (fini_reassoc): Call loop_optimizer_finalize.
889
890 2007-09-07  Sterling Augustine  <sterling@tensilica.com>
891
892         * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Use an ISYNC even
893         if there is no i-cache.
894
895 2007-09-07  Richard Guenther  <rguenther@suse.de>
896
897         Reapply
898         2007-09-06  Richard Guenther  <rguenther@suse.de>
899
900         PR tree-optimization/32586
901         * tree-ssa-sccvn.c (simplify_binary_expression): Avoid
902         folding if nothing changed.
903         (simplify_unary_expression): New function.  Do tree combining
904         on conversion like codes.
905         (try_to_simplify): Call it.
906
907 2007-09-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
908
909         PR target/33286
910         * gthr-posix.h (__gthread_active_p): Add implementation for hppa-hpux.
911         (__gthread_active,__gthread_start, __gthread_active_init): New.
912         * gthr-posix95.h: Likewise.
913
914 2007-09-07  Roman Zippel <zippel@linux-m68k.org>
915
916         * function.h (struct function): Rename calls_unwind_init
917         to saves_all_registers.
918         (current_function_saves_all_registers): Renamed from
919         current_function_calls_unwind_init.
920         * reload1.c (reload): Set current_function_saves_all_registers.
921         * except.c (expand_builtin_unwind_init): Likewise.
922         * config/m68k/m68k.c (m68k_save_reg): Use
923         current_function_saves_all_registers to save pic register.
924
925 2007-09-07  Janis Johnson  <janis187@us.ibm.com>
926
927         config/m68k/m68k.c (floating_exact_log2): Update call to real_2expN.
928         config/s390/s390.md (fixuns_trunc<BFP:mode><GPR:mode>2): Ditto.
929
930         Reapply reverted changes:
931
932         2007-09-06  Jan Hubicka  <jh@suse.cz>
933  
934         * config/i386.c (ix86_expand_lround, ix86_expand_round): Update call of
935         real_2expN.
936
937         2007-09-06  Richard Sandiford  <richard@codesourcery.com>
938
939         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
940         (fixuns_truncsfsi2, fixuns_truncsfdi2): Update calls to real_2expN.
941
942         2007-09-05  Janis Johnson  <janis187@us.ibm.com>
943
944         * optabs.c (expand_float): Convert unsigned integer as signed only
945         if it provides sufficient accuracy; add mode argument to real_2expN.
946         (expand_fix): Fix comment typos; extend binary float into mode
947         wider than destination for converion to unsigned integer; add mode
948         argument to real_2expN.
949         * real.c (real_2expN): Add mode argument to special-case decimal
950         float values.
951         * real.h (real_2expN): Ditto.
952         * fixed-value.c (check_real_for_fixed_mode): Add mode argument to
953         real_2expN.
954         (fixed_from_string): Ditto.
955         (fixed_to_decimal): Ditto.
956         (fixed_convert_from_real): Ditto.
957         (real_convert_from_fixed): Ditto.
958         * config/rs6000/rs6000.md (FP): Include DD and TD modes.
959         * config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
960         muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
961         floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
962
963 2007-09-07  Diego Novillo  <dnovillo@google.com>
964
965         * tree-flow.h (const_block_stmt_iterator): Remove.
966         Update all users to use block_stmt_iterator.
967         * tree-iterator.h (const_tree_stmt_iterator): Remove.
968         Update all users to use tree_stmt_iterator.
969
970 2007-09-07  Sandra Loosemore  <sandra@codesourcery.com>
971
972         * config/mips/mips.c (mips_set_current_function): Temporarily
973         make this a no-op to fix bootstrap errors, pending rewrite.
974
975 2007-09-07  Jan Hubicka  <jh@suse.cz>
976
977         * reorg.c (dbr_schedule): Move code removing placeholder USEs later
978         in the pass.
979
980 2007-09-07  Dorit Nuzman  <dorit@il.ibm.com>
981
982         PR tree-optimization/33299
983         * tree-vect-transform.c (vect_create_epilog_for_reduction): Update
984         uses for all relevant loop-exit phis, not just the first.
985
986 2007-09-07  Richard Guenther  <rguenther@suse.de>
987
988         PR middle-end/33330
989         * tree-ssa-operands.c (access_can_touch_variable): An access
990         of the form (*p)[0] can touch a variable of same size.
991
992 2007-09-07  Jan Hubicka  <jh@suse.cz>
993
994         * passes.c (init_optimization_passes): Add simple dce and addressable
995         passes.
996         * tree-ssa.c (execute_update_addresses_taken): New function.
997         (pass_update_address_taken): New.
998         * tree-ssa-dse.c (execute_simple_dse): New function.
999         (pass_simple_dse): New.
1000         * tree-pass.h (pass_simple_dse, pass_update_address_taken): Declare.
1001
1002 2007-09-07  Tobias Burnus  <burnus@net-b.de>
1003
1004         PR middle-end/33321
1005         * doc/invoke.texi: Fix -Wstrict-overflow= table.
1006
1007 2007-09-07  Richard Guenther  <rguenther@suse.de>
1008
1009         Revert
1010         2007-09-06  Richard Guenther  <rguenther@suse.de>
1011
1012         PR tree-optimization/32586
1013         * tree-ssa-sccvn.c (simplify_binary_expression): Avoid
1014         folding if nothing changed.
1015         (simplify_unary_expression): New function.  Do tree combining
1016         on conversion like codes.
1017         (try_to_simplify): Call it.
1018
1019 2007-09-07  Richard Guenther  <rguenther@suse.de>
1020             Uros Bizjak  <ubizjak@gmail.com>
1021
1022         PR tree-optimization/32821
1023         * tree_if_conv.c (combine_blocks): Use alloc_stmt_list instead of
1024         NULL in the call to set_bb_stmt_list.
1025
1026 2007-09-07  Richard Sandiford  <richard@codesourcery.com>
1027
1028         * config/mips/mips.c (build_mips16_call_stub): Emit all direct
1029         float calls here, rather than leaving some to the caller.
1030         Use call_internal_direct and call_value_internal_direct.
1031         * config/mips/mips.md (call_internal_direct): New pattern.
1032         (call_value_internal_direct): Likewise.
1033
1034 2007-09-07  Richard Sandiford  <richard@codesourcery.com>
1035
1036         * config/mips/mips.c (mips_base_move_loop_invariants): New variable.
1037         (mips_set_mips16_mode): Restore flag_move_loop_invariants, then set
1038         to 0 for MIPS16.
1039         (override_options): Set mips_base_move_loop_invariants.
1040
1041 2007-09-07  Richard Sandiford  <richard@codesourcery.com>
1042
1043         * config/mips/mips.opt (mcode-readable=): Move to keep list
1044         alphabetical.
1045
1046 2007-09-07  Richard Sandiford  <richard@codesourcery.com>
1047
1048         * doc/invoke.texi: Document the MIPS -mlocal-sdata, -mextern-sdata
1049         and -mgpopt options.  Adjust the -G documentation to match.
1050         * config/mips/mips.opt (mextern-data, mgpopt, mlocal-data): New.
1051         * config/mips/mips.c (mips_rtx_constant_in_small_data_p): New
1052         function, split out from mips_classify_symbol.  Return false for
1053         !TARGET_LOCAL_SDATA.
1054         (mips_classify_symbol): Call mips_rtx_constant_in_small_data_p.
1055         Only use GP-relative accesses for non-pool symbols if TARGET_GPOPT.
1056         (override_options): Check whether the -mgpopt setting is consistent
1057         with the other flags.
1058         (symbolic_expression_p): Delete.
1059         (mips_select_rtx_section): Use mips_rtx_constant_in_small_data_p
1060         and default_elf_select_rtx_section.
1061         (mips_in_small_data_p): Honor section attributes for MIPS16 too.
1062         Return false for local data unless TARGET_LOCAL_SDATA.  Likewise
1063         external data and TARGET_EXTERN_SDATA.
1064
1065 2007-09-07  Tobias Burnus  <burnus@net-b.de>
1066
1067         PR fortran/33303
1068         * doc/cpp.texi (Common Predefined Macros): Add __GFORTRAN__.
1069
1070 2007-09-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1071
1072         * regrename.c (copyprop_hardreg_forward_1): New variable next. Use
1073         FOR_BB_INSNS_SAFE instead of for loop.
1074         * cse.c (cse_extended_basic_block): Likewise.
1075         * postreload.c (reload_cse_regs_1): New variable next. Make sure
1076         that the for loop does not invoke NEXT_INSN on a deleted insn.
1077         * function.c (instantiate_virtual_regs): Likewise.
1078         * lower-subreg.c (remove_retval_note): Likewise.
1079         (decompose_multiword_subregs): Use FOR_BB_INSNS_SAFE instead of
1080         FOR_BB_INSNS.
1081         * emit-rtl.c (remove_insn): Set NEXT_INSN and PREV_INSN to NULL on
1082         a deleted insn.
1083         * cfgrtl.c (delete_insn): Set JUMP_LABEL to NULL on a deleted
1084         insn, if it's a jump.
1085         (try_redirect_by_replacing_jump): New variable jump_p. Call
1086         tablejump_p before delete_insn_chain.
1087         * reload1.c (reload): New variable next. Make sure that the for
1088         loop does not invoke NEXT_INSN on a deleted insn.
1089         (fixup_eh_region_note): Make the loop terminate if i becomes NULL.
1090         (delete_output_reload): New variable prev. Make sure the the for
1091         loops do not invoke PREV_INSN on a deleted insn.
1092
1093 2007-09-06  Zdenek Dvorak  <ook@ucw.cz>
1094
1095         * cgraphbuild.c (rebuild_cgraph_edges): Export.
1096         * cgraph.h (rebuild_cgraph_edges): Declare.
1097         * tree-pass.h (pass_expand_omp_ssa): New.
1098         * omp-low.c (find_omp_clause): Export.
1099         (copy_var_decl): Split from omp_copy_decl_2.
1100         (build_omp_barrier): Return the call to emit instead of emitting
1101         it directly.
1102         (lower_rec_input_clauses, expand_omp_single): Gimplify the result of
1103         build_omp_barrier.
1104         (extract_omp_for_data, expand_parallel_call, expand_omp_parallel,
1105         expand_omp_for_generic, expand_omp_for_static_nochunk,
1106         expand_omp_for_static_chunk, expand_omp_for, expand_omp_sections):
1107         Adapted to work on SSA form.
1108         (execute_expand_omp): Do not invalidate dominance information.
1109         (gate_expand_omp): Do not run with -fopenmp-ssa flag.
1110         (gate_expand_omp_ssa, pass_expand_omp_ssa): New.
1111         * gimplify.c (gimplify_omp_for): Ensure that the control variable is
1112         a gimple_reg.
1113         (force_gimple_operand): Allow gimplifying code expressions without
1114         value.
1115         * tree-predcom.c (mark_virtual_ops_for_renaming): Handle phi nodes.
1116         * common.opt (fopenmp-ssa): New.
1117         * tree-flow.h (find_omp_clause, copy_var_decl): Declare.
1118         * Makefile.in (tree-cfg.o): Add TREE_INLINE_H dependency.
1119         * tree-cfg.c: Include tree-inline.h.
1120         (struct move_stmt_d): Replace vars_to_remove by vars_map field.
1121         (replace_by_duplicate_decl, replace_ssa_name,
1122         mark_virtual_ops_in_region): New functions.
1123         (move_stmt_r, move_block_to_fn, move_sese_region_to_fn): Adapted
1124         to work on SSA form.
1125         * passes.c (init_optimization_passes): Add pass_expand_omp_ssa pass.
1126         * tree-ssa-operands.c (get_expr_operands): Handle operands of OMP
1127         constructs.
1128
1129 2007-09-06  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1130
1131         * tree-loop-linear.c: Include obstack.h.
1132         (linear_transform_loops): New obstack lambda_obstack.
1133         Initialize it, pass it to gcc_loopnest_to_lambda_loopnest,
1134         lambda_loopnest_transform, lambda_loopnest_to_gcc_loopnest calls
1135         and free afterwards.
1136         * lambda.h (struct obstack): New forward declaration.
1137         (lambda_linear_expression_new): New parameter of type struct
1138         obstack *.
1139         (lambda_loopnest_new): Likewise.
1140         (lambda_loopnest_transform): Likewise.
1141         (lambda_body_vector_new): Likewise.
1142         (lambda_body_vector_compute_new): Likewise.
1143         (gcc_loopnest_to_lambda_loopnest): Likewise.
1144         (lambda_loopnest_to_gcc_loopnest): Likewise.
1145         * lambda-code.c: Include obstack.h.
1146         (lambda_lattice_new): New parameter lambda_obstack.  Use it for
1147         allocation of ret.
1148         (lambda_body_vector_new): Likewise.
1149         (lambda_linear_expression_new): Likewise.
1150         (lambda_lattice_new): Likewise.
1151         (lambda_loopnest_new): Likewise.  Additionally use obstack to
1152         allocate LN_LOOPS(ret).
1153         (lambda_lattice_compute_base): New parameter lambda_obstack.  Pass
1154         it to lambda_lattice_new.
1155         (lambda_body_vector_compute_new): New parameter lambda_obstack.
1156         Pass it to lambda_body_vector_new.
1157         (lambda_lattice_compute_base): New paramater lambda_obstack.  Pass
1158         it to lambda_lattice_new.
1159         (compute_nest_using_fourier_motzkin): New parameter lambda_obstack.
1160         Pass it to lambda_loopnest_new, lambda_linear_expression_new.
1161         (lambda_compute_target_space): Likewise.
1162         (lambda_compute_auxillary_space): New parameter lambda_obstack.
1163         Pass it to lambda_lattice_compute_base and
1164         compute_nest_using_fourieer_motzkin.
1165         (lambda_loopnest_transform): New parameter lambda_obstack.  Pass
1166         it to lambda_lattice_compute_base, lambda_lattice_auxillary_space
1167         and lambda_lattice_compute_target_space.
1168         (gcc_tree_to_linear_expression): Nex parameter lambda_obstack.
1169         Pass it to lambda_linear_expression_new.
1170         (gcc_loop_to_lambda_loop): New parameter lambda_obstack.  Pass it
1171         to gcc_tree_to_linear_expression.
1172         (gcc_loopnest_to_lambda_loopnest): New parameter lambda_obstack.
1173         Pass it to gcc_loop_to_lambda_loop and lambda_loopnest_new.
1174         (lambda_loopnest_to_gcc_loopnest): New parameter lambda_obstack.
1175         Pass it to lambda_body_vector_new and
1176         lambda_body_vector_compute_new.
1177         * Makefile.in (tree-loop-linear.o): Add $(OBSTACK_H) dependency.
1178         (lambda-code.o): Likewise.
1179
1180 2007-09-06  Chao-ying Fu  <fu@mips.com>
1181
1182         * ginclude/stdfix.h: New file.
1183         * Makefile.in (USER_H): Add $(srcdir)/ginclude/stdfix.h.
1184         (convert.o): Add dependence on fixed-value.h.
1185         * c-convert.c (convert): Support FIXED_POINT_TYPE.
1186         * c-cppbuiltin.c (builtin_define_fixed_point_constants): New function
1187         to define fixed-point constants.
1188         (c_cpp_builtins): Define fixed-point constants.
1189         * convert.c (fixed-value.h): New include.
1190         (convert_to_real): Update comment to include fixed-point.
1191         Support FIXED_POINT_TYPE.
1192         (convert_to_integer): Update comment to include fixed-point.
1193         Support FIXED_POINT_TYPE.
1194         (convert_to_complex): Support FIXED_POINT_TYPE.
1195         (convert_to_fixed): New function.
1196         * convert.h (convert_to_fixed): Declare.
1197         * genopinit.c: Add comment about $Q for only fixed-point modes.
1198         (optabs): Add fract_optab, fractuns_optab, satfract_optab,
1199         satfractuns_optab, add_optab, ssadd_optab, usadd_optab, sub_optab,
1200         sssub_optab, ussub_optab, smul_optab, ssmul_optab, usmul_optab,
1201         ssmadd_widen_optab, usmadd_widen_optab, ssdiv_optab, udiv_optab,
1202         usdiv_optab, ssashl_optab, usashl_optab, neg_optab, ssneg_optab,
1203         usneg_optab for fixed-point modes.
1204         (gen_insn): Add force_fixed to track the $Q format for all fixed-point
1205         modes.
1206         * optabs.c (optab_for_tree_code): For *DIV_EXPR, LSHIFT_EXPR,
1207         PLUS_EXPR, MINUS_EXPR, MULT_EXPR, NEGATE_EXPR, return signed or
1208         unsigned saturation optabs, when type is saturating.
1209         (shift_optab_p): Return true for SS_ASHIFT or US_ASHIFT.
1210         (expand_fixed_convert): New function.
1211         (gen_fixed_libfunc, gen_signed_fixed_libfunc,
1212         gen_unsigned_fixed_libfunc, gen_int_fp_fixed_libfunc,
1213         gen_int_fp_signed_fixed_libfunc, gen_int_fixed_libfunc,
1214         gen_int_signed_fixed_libfunc, gen_int_unsigned_fixed_libfunc,
1215         gen_fract_conv_libfunc, gen_fractuns_conv_libfunc,
1216         gen_satfract_conv_libfunc, gen_satfractuns_conv_libfunc): New
1217         functions.
1218         (init_optabs): Initialize ssadd_optab, usadd_optab, sssub_optab,
1219         ussub_optab, ssmul_optab, usmul_optab, ssmadd_widen_optab,
1220         usmadd_widen_optab, ssmsub_widen_optab, usmsub_widen_optab,
1221         ssdiv_optab, usdiv_optab, ssashl_optab, usashl_optab, ssneg_optab,
1222         usneg_optab, fract_optab, fractuns_optab, satfract_optab,
1223         satfractuns_optab.
1224         Initialize fixed-point libraries, including add, ssadd, usadd, sub,
1225         sssub, ussub, mul, ssmul, usmul, div, ssdiv, udiv, usdiv, ashl,
1226         ssashl, usashl, ashr, lshr, neg, ssneg, usneg, cmp, fract, satfract,
1227         fractuns, satfractuns.
1228         * optabs.h (enum optab_index): Add OTI_ssadd, OTI_usadd, OTI_sssub,
1229         OTI_ussub, OTI_ssmul, OTI_usmul, OTI_ssdiv, OTI_usdiv, OTI_ssneg,
1230         OTI_usneg, OTI_ssashl, OTI_usashl, OTI_ssmadd_widen, OTI_usmadd_widen,
1231         OTI_ssmsub_widen,  OTI_usmsub_widen.
1232         (ssadd_optab, usadd_optab, sssub_optab, ussub_optab, ssmul_optab,
1233         usmul_optab, ssdiv_optab, usdiv_optab, ssneg_optab, usneg_optab,
1234         ssashl_optab, usashl_optab, ssmadd_widen_optab, usmadd_widen_optab,
1235         umsub_widen_optab, usmsub_widen_optab): Define.
1236         (enum convert_optab_index): Add COI_fract, COI_fractuns, COI_satfract,
1237         COI_satfractuns.
1238         (fract_optab, fractuns_optab, satfract_optab, satfractuns_optab):
1239         Define.
1240         (expand_fixed_convert): Declare.
1241         * expr.c (convert_move): Support the move of fixed-point modes.
1242         (emit_move_insn_1): Handle fixed-point mode to move via integer.
1243         (categorize_ctor_elements_1): Handle FIXED_CST.
1244         (count_type_elements): Handle FIXED_POINT_TYPE.
1245         (expand_expr_real_1): For VECTOR_CST, check MODE_VECTOR_FRACT,
1246         MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
1247         Support FIXED_CST.
1248         For PLUS_EXPR and MINUS_EXPR, support saturating and non-saturating
1249         multiply and add/subtract for fixed-point types.
1250         For MULT_EXPR, *DIV_EXPR, *SHIFT_EXPR, if the mode if a fixed-point
1251         mode, we jump to binop directly.
1252         Support FIXED_CONVERT_EXPR.
1253         (do_store_flag): Check FIXED_CST to put a constant second.
1254         (vector_mode_valid_p): Handle MODE_VECTOR_FRACT,
1255         MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
1256         (const_vector_from_tree): Support FIXED_CST.
1257         * doc/extend.texi (Fixed-Point): New node.
1258         * doc/md.texi (ssadd, usadd, sssub, ussub, ssmul, usmul, ssdiv, usdiv,
1259         ssmadd, usmadd, ssmsub, usmsub, ssashl, usashl, ssneg, usneg, fract,
1260         satfract, fractuns, satfractuns): Document them.
1261
1262 2007-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
1263
1264         * config/bfin/bfin.h (PREFERRED_RELOAD_CLASS): Don't reload autoinc
1265         addresses into I registers.
1266
1267 2007-09-06  Jan Hubicka  <jh@suse.cz>
1268             Andreas Tobler  <a.tobler@schweiz.org>
1269
1270         * config/darwin.c (machopic_indirect_data_reference): Avoid invalid
1271         sharing.
1272         (machopic_legitimize_pic_address): Likewise.
1273
1274 2007-09-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1275             Jan Hubicka  <jh@suse.cz>
1276
1277         * config/spu/spu.md (floatsidf2): Use convert_optab_libfunc
1278         instead of ufloat_optab->handlers directly.
1279         (floatdidf2): Likewise.
1280
1281 2007-09-06  Sandra Loosemore  <sandra@codesourcery.com>
1282
1283         * config/mips/mips.c:  Include diagnostic.h.
1284         (mips_set_current_function): Check errorcount and sorrycount 
1285         before generating RTL.
1286
1287 2007-09-06  Richard Sandiford  <richard@codesourcery.com>
1288
1289         PR target/33256
1290         * config/mips/mips.c (mips_classify_symbolic_expression): New function.
1291         (mips_classify_address): Use it instead of mips_symbolic_constant_p.
1292         (print_operand_reloc): Likewise.
1293
1294 2007-09-06  Janis Johnson  <janis187@us.ibm.com>
1295
1296         Revert:
1297
1298         2007-09-06  Jan Hubicka  <jh@suse.cz>
1299  
1300         * i386.c (ix86_expand_lround, ix86_expand_round): Update call of
1301         real_2expN.
1302
1303         2007-09-06  Richard Sandiford  <richard@codesourcery.com>
1304
1305         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
1306         (fixuns_truncsfsi2, fixuns_truncsfdi2): Update calls to real_2expN.
1307
1308         2007-09-05  Janis Johnson  <janis187@us.ibm.com>
1309
1310         * optabs.c (expand_float): Convert unsigned integer as signed only
1311         if it provides sufficient accuracy; add mode argument to real_2expN.
1312         (expand_fix): Fix comment typos; extend binary float into mode
1313         wider than destination for converion to unsigned integer; add mode
1314         argument to real_2expN.
1315         * real.c (real_2expN): Add mode argument to special-case decimal
1316         float values.
1317         * real.h (real_2expN): Ditto.
1318         * fixed-value.c (check_real_for_fixed_mode): Add mode argument to
1319         real_2expN.
1320         (fixed_from_string): Ditto.
1321         (fixed_to_decimal): Ditto.
1322         (fixed_convert_from_real): Ditto.
1323         (real_convert_from_fixed): Ditto.
1324         * config/rs6000/rs6000.md (FP): Include DD and TD modes.
1325         * config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
1326         muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
1327         floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
1328
1329 2007-09-06  Tom Tromey  <tromey@redhat.com>
1330
1331         * tree-cfg.c (remove_bb): Only warn if line is non-zero.
1332         * c-pch.c (c_common_read_pch): Restore current location after
1333         reading PCH file.
1334         * tree.c (expand_location): Update.
1335         (expr_filename): Changed return type.  Unified the two cases.
1336         (expr_lineno): Likewise.
1337         (annotate_with_file_line): Don't use EXPR_LINENO and EXPR_FILENAME
1338         as lvalues.
1339         * toplev.c (line_table): Changed type.
1340         (general_init): Update.
1341         (realloc_for_line_map): New function.
1342         (general_init): Allocate line_table using GC.
1343         * fix-header.c (line_table): Changed type.
1344         (read_scan_file): Update.
1345         (read_scan_file): Update.
1346         * c-ppoutput.c (maybe_print_line): Update.
1347         (print_line): Update.
1348         (cb_line_change): Update.
1349         (cb_define): Update.
1350         (pp_file_change): Update.
1351         * c-opts.c (c_common_init_options): Update.
1352         (finish_options): Update.
1353         (push_command_line_include): Update.
1354         * c-lex.c (cb_line_change): Update.
1355         (cb_def_pragma): Update.
1356         (cb_define): Update.
1357         (cb_undef): Update.
1358         (c_lex_with_flags): Use cpp_get_token_with_location.
1359         * input.h (line_table): Changed type.
1360         (location_from_locus): New macro.
1361         * tree.h (EXPR_FILENAME): No longer an lvalue.
1362         (EXPR_LINENO): Likewise.
1363         (expr_locus, set_expr_locus): Declare separately for
1364         USE_MAPPED_LOCATION.
1365         (expr_filename, expr_lineno): Changed return type.
1366         * gimplify.c (tree_to_gimple_tuple): Use SET_EXPR_LOCUS.
1367         * cfgexpand.c (expand_gimple_cond_expr): Use location_from_locus.
1368         (expand_gimple_basic_block): Likewise.
1369         * final.c (final_scan_insn): Use expanded_location.
1370
1371 2007-09-06  Richard Guenther  <rguenther@suse.de>
1372
1373         PR tree-optimization/32586
1374         * tree-ssa-sccvn.c (simplify_binary_expression): Avoid
1375         folding if nothing changed.
1376         (simplify_unary_expression): New function.  Do tree combining
1377         on conversion like codes.
1378         (try_to_simplify): Call it.
1379         * builtins.c (fold_builtin_cexp): Fold the built expressions.
1380         * fold-const.c (fold_unary): Test result of get_callee_fndecl().
1381
1382 2007-09-06  Jan Hubicka  <jh@suse.cz>
1383
1384         PR target/33318
1385         * cse.c (fold_rtx): Avoid invalid sharing.
1386
1387 2007-09-06  Richard Sandiford  <richard@codesourcery.com>
1388
1389         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
1390         (fixuns_truncsfsi2, fixuns_truncsfdi2): Update calls to real_2expN.
1391
1392 2007-09-06  Revital Eres  <eres@il.ibm.com>
1393
1394         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
1395         Fix offsettable memory reference for 750CL.
1396
1397 2007-09-06  Pat Haugen  <pthaugen@us.ibm.com>
1398
1399         * reload.c (find_reloads_address_1): Try to preserve original
1400         base/index regclass of operands.
1401         * regrename.c (scan_rtx_address): Likewise.
1402         (replace_oldest_value_addr): Likewise.
1403
1404 2007-09-06  Richard Guenther  <rguenther@suse.de>
1405
1406         PR tree-optimization/33302
1407         * domwalk.c (walk_dominator_tree): The exit block is
1408         interesting even if it is not reachable.
1409
1410 2007-09-06  Richard Sandiford  <richard@codesourcery.com>
1411
1412         PR middle-end/33306
1413         * optabs.c (avoid_expensive_constant): Do nothing if MODE is VOIDmode.
1414
1415 2007-09-06  Basile Starynkevitch  <basile@starynkevitch.net>
1416
1417         * cfg.c (dump_bb_info, dump_edge_info): Added cfun test for 
1418         robustness.
1419
1420 2007-09-05  Ian Lance Taylor  <iant@google.com>
1421
1422         * tree-pretty-print.c (dump_decl_name): Cast LABEL_DECL_UID to int
1423         when printing.
1424         (dump_generic_node): Likewise.
1425         * print-rtl.c (print_decl_name): Likewise.
1426         * print-tree.c (print_node_brief): Likewise.
1427         (print_node): Likewise.
1428         * Makefile.in (RTL_BASE_H): Add alias.h.
1429         (TREE_H): Likewise.
1430
1431 2007-09-06  Jesper Nilsson  <jesper.nilsson@axis.com>
1432
1433         * longlong.h [__CRIS_arch_version >= 8] (count_trailing_zeros):
1434         Defined.
1435         * config/cris/cris.md (ctzsi2, cris_swap_bits): Implemented.
1436         * config/cris/cris.h (CTZ_DEFINED_VALUE_AT_ZERO): Defined.
1437
1438 2007-09-06  Jie Zhang  <jie.zhang@analog.com>
1439
1440         * config.gcc (tm_file): Add linux.h for bfin*-uclinux*.
1441         (tm_defines): Define UCLIBC_DEFAULT to 1.
1442         (extra_options): Add linux.opt.
1443         * config/bfin/linux.h (CPLUSPLUS_CPP_SPEC): Don't define.
1444         (CRT_CALL_STATIC_FUNCTION): Likewise.
1445         (NO_IMPLICIT_EXTERN_C): Likewise.
1446         (TARGET_OS_CPP_BUILTINS): Define as LINUX_TARGET_OS_CPP_BUILTINS.
1447         * config/bfin/elf.h (OBJECT_FORMAT_ELF): Don't define.
1448         * config/bfin/uclinux.h (CPLUSPLUS_CPP_SPEC): Don't define.
1449         (ENDFILE_SPEC): Don't define.
1450         (LIB_SPEC): Likewise.
1451         (CRT_CALL_STATIC_FUNCTION): Likewise.
1452         (NO_IMPLICIT_EXTERN_C): Likewise.
1453         (LINUX_TARGET_OS_CPP_BUILTINS): Likewise.
1454         (TARGET_OS_CPP_BUILTINS): Define as LINUX_TARGET_OS_CPP_BUILTINS.
1455
1456 2007-09-06  Jan Hubicka  <jh@suse.cz>
1457
1458         * i386.c (ix86_expand_lround, ix86_expand_round): Update call of
1459         real_2expN.
1460
1461 2007-09-06  Jan Hubicka  <jh@suse.cz>
1462
1463         * opts.c (common_handle_option): Enable inlining functions for
1464         -fprofile-generate.
1465
1466 2007-09-06  Jakub Jelinek  <jakub@redhat.com>
1467
1468         * builtin-attrs.def (ATTR_NONNULL_3): New.
1469         (DEF_FORMAT_ATTRIBUTE): Use just ATTR_NONNULL_##FA instead of
1470         ATTR_NOTHROW_NONNULL_##FA.
1471         (DEF_FORMAT_ATTRIBUTE_NOTHROW, DEF_FORMAT_ATTRIBUTE_BOTH): New macros.
1472         (ATTR_FORMAT_PRINTF_NOTHROW_2_0, ATTR_PRINTF_NOTHROW_2_3,
1473         ATTR_FORMAT_PRINTF_NOTHROW_3_0, ATTR_FORMAT_PRINTF_NOTHROW_3_4,
1474         ATTR_FORMAT_PRINTF_NOTHROW_4_0, ATTR_PRINTF_NOTHROW_4_5,
1475         ATTR_FORMAT_PRINTF_NOTHROW_5_0, ATTR_FORMAT_PRINTF_NOTHROW_5_6,
1476         ATTR_FORMAT_SCANF_NOTHROW_2_0, ATTR_FORMAT_SCANF_NOTHROW_2_3,
1477         ATTR_FORMAT_STRFTIME_NOTHROW_3_0, ATTR_FORMAT_STRFMON_NOTHROW_3_4):
1478         New.
1479         (ATTR_FORMAT_PRINTF_4_0, ATTR_PRINTF_4_5, ATTR_FORMAT_PRINTF_5_0,
1480         ATTR_FORMAT_PRINTF_5_6, ATTR_FORMAT_STRFTIME_3_0,
1481         ATTR_FORMAT_NOTHROW_3_4): Remove.
1482         * builtins.def (snprintf, sprintf, sscanf, vsnprintf, vsprintf,
1483         vsscanf, strfmon, strftime, __snprintf_chk, __sprintf_chk,
1484         __vsnprintf_chk, __vsprintf_chk): Use ATTR_FORMAT_*_NOTHROW_*
1485         instead of ATTR_FORMAT_*_*.
1486
1487 2007-09-06  Hans-Peter Nilsson  <hp@axis.com>
1488
1489         * config/cris/cris.c (cris_emit_movem_store): Call copy_rtx on
1490         parts re-used for REG_FRAME_RELATED_EXPR.
1491
1492 2007-09-05  Janis Johnson  <janis187@us.ibm.com>
1493
1494         * optabs.c (expand_float): Convert unsigned integer as signed only
1495         if it provides sufficient accuracy; add mode argument to real_2expN.
1496         (expand_fix): Fix comment typos; extend binary float into mode
1497         wider than destination for converion to unsigned integer; add mode
1498         argument to real_2expN.
1499         * real.c (real_2expN): Add mode argument to special-case decimal
1500         float values.
1501         * real.h (real_2expN): Ditto.
1502         * fixed-value.c (check_real_for_fixed_mode): Add mode argument to
1503         real_2expN.
1504         (fixed_from_string): Ditto.
1505         (fixed_to_decimal): Ditto.
1506         (fixed_convert_from_real): Ditto.
1507         (real_convert_from_fixed): Ditto.
1508         * config/rs6000/rs6000.md (FP): Include DD and TD modes.
1509         * config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
1510         muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
1511         floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
1512
1513 2007-09-05  Ian Lance Taylor  <iant@google.com>
1514
1515         * init-regs.c (initialize_uninitialized_regs): Call
1516         emit_insn_before rather than add_insn_before.
1517
1518 2007-09-05  Jakub Jelinek  <jakub@redhat.com>
1519
1520         * builtins.def (BUILT_IN_VA_ARG_PACK): New built-in.
1521         * tree.h (CALL_EXPR_VA_ARG_PACK): Define.
1522         * tree-inline.h (copy_body_data): Add call_expr field.
1523         * tree-inline.c (expand_call_inline): Initialize call_expr.
1524         (copy_bb): Append anonymous inline fn arguments to arguments
1525         when inlining a CALL_EXPR_VA_ARG_PACK call.
1526         * builtins.c (expand_builtin): Issue an error if
1527         BUILT_IN_VA_ARG_PACK is seen during expand.
1528         (fold_call_expr, fold_builtin_call_array): Don't fold
1529         CALL_EXPR_VA_ARG_PACK CALL_EXPRs or calls with
1530         __builtin_va_arg_pack () call as last argument.
1531         * gimplify.c (gimplify_call_expr): If last argument to a vararg
1532         function is __builtin_va_arg_pack (), decrease number of call
1533         arguments and instead set CALL_EXPR_VA_ARG_PACK on the CALL_EXPR.
1534         * expr.c (expand_expr_real_1): Issue an error if
1535         CALL_EXPR_VA_ARG_PACK CALL_EXPR is seen during expand.
1536         * tree-pretty-print.c (dump_generic_node): Handle printing
1537         CALL_EXPR_VA_ARG_PACK bit on CALL_EXPRs.
1538         * doc/extend.texi (__builtin_va_arg_pack): Document.
1539
1540 2007-09-05  Adam Nemet  <anemet@caviumnetworks.com>
1541
1542         PR tree-optimization/21513
1543         * builtins.c (build_builtin_expect_predicate): New function.
1544         (fold_builtin_expect): Add argument for expected value.
1545         Distribute __builtin_expect over short-circuiting operations.
1546         Fold nested builtin_expects.
1547         (fold_builtin_2): Adjust call to fold_builtin_expect.
1548
1549 2007-09-05  Rask Ingemann Lambertsen  <rask@sygehus.dk>
1550
1551         PR web/32965
1552         PR tree-optimization/13756
1553         * doc/invoke.texi (Options That Control Optimization): Document
1554         -ftree-dse.
1555
1556 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
1557
1558         * gcc/config/i386/cpuid.h: New file.
1559         * gcc/config/i386/driver-i386.c: Include cpuid.h.
1560         (describe_cache): Shrink size and line strings to 100 bytes.
1561         (detect_caches_amd): Return "" for unsupported max_ext_level.
1562         Use __cpuid function.
1563         (detect_caches_intel): Return "" for unsupported max_level.
1564         Use __cpuid function.
1565         (host_detect_local_cpu): Change feature flag variables to
1566         unsigned int.  Initialize only extended feature flag variables.
1567         Use __get_cpuid_max to determine max supported cpuid level.
1568         Use __cpuid function to determine supported features.  Fix
1569         calculation of family id.  Remove is_amd and check signature
1570         directly.  Check for Geode signature.  Handle family 4 id.
1571         [PROCESSOR_GENERIC32]: New default for unknown family id.  Move
1572         cpu discovery code to lower part of the function.
1573         [PROCESSOR_PENTIUM, PROCESSOR_K6, PROCESSOR_ATHLON]: Do not tune
1574         for sub-architecture.
1575         [PROCESSOR_PENTIUMPRO]: Simplify cpu discovery code.
1576         [PROCESSOR_K8]: Add k8-sse3 architecture.
1577         [PROCESSOR_NOCONA]: Remove.
1578         [PROCESSOR_GENERIC64]: Ditto.
1579         * gcc/config/i386/x-i386 (driver-i386.o): Depend on cpuid.h.
1580         * gcc/config/i386/crtfastmath.c: Include cpuid.h.  Use __get_cpuid
1581         to check for SSE and FXSAVE support.
1582         * gcc/config/i386/t-crtfm (crtfastmath.o): Depend on cpuid.h.
1583         Add -minline-all-stringops.
1584         * gcc/config.gcc (i[34567]86-*-*): Add cpuid.h to extra_headers.
1585         (x86_64-*-*): Ditto.
1586
1587 2007-09-05  Jie Zhang  <jie.zhang@analog.com>
1588
1589         * config/bfin/linux-unwind.h: New file.
1590         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Define.
1591         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Define.
1592
1593 2007-09-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1594
1595         * Makefile.in (stmt.o): Add alloc-pool.h dependency.
1596         * stmt.c: Include alloc-pool.h.
1597         (struct case_node): Remove GTY marker.
1598         (add_case_node): New parameter case_node_pool.  Use it for
1599         allocation of r.
1600         (expand_case): New allocation pool case_node_pool.  Initialize it,
1601         pass to add_case_node and free it.
1602
1603 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
1604             David Ung  <davidu@mips.com>
1605             Nigel Stephens <nigel@mips.com>
1606
1607         Add mips16/nomips16 function attributes and -mflip-mips16 option
1608         for testing mixed-mode compilation.
1609
1610         * config/mips/mips.opt (mflip-mips16): New.
1611
1612         * config/mips/mips.h (SYMBOL_FLAG_MIPS16_FUNC): Define.
1613         (SYMBOL_FLAG_MIPS16_FUNC_P): Define.
1614
1615         * config/mips/mips.c (mips_base_target_flags): New.
1616         (mips_base_mips16): New.
1617         (mips_base_schedule_insns): New.
1618         (mips_base_reorder_blocks_and_partition): New.
1619         (mips_base_align_loops): New.
1620         (mips_base_align_jumps): New.
1621         (mips_base_align_functions): New.
1622         (mips16_flipper): New.
1623         (mips_attribute_table): Add "mips16" and "nomips16" entries.
1624         (TARGET_SET_CURRENT_FUNCTION): Define.
1625         (mips_mips16_type_p, mips_nomips16_type_p): New.
1626         (mips_comp_type_attributes): Check mips16/nomips16 attributes.
1627         (mips_function_ok_for_sibcall): Make it deal with functions with
1628         mips16 attributes.
1629         (mips_init_split_addresses): New, split out from override_options.
1630         (mips_init_relocs): New, split out from override_options.
1631         (was_mips16_p): New.
1632         (mips_set_mips16_mode): New, split out from override_options.
1633         (mips_set_current_function): New.
1634         (override_options): Add sorry for unsupported mips16/pic
1635         combination.  Remove error for mips16/dsp combination.  Save
1636         base option settings.  
1637         (mips_file_start): Move mips16 mode setting output from here....
1638         (mips_output_function_prologue): ....to here.
1639         (mips_output_mi_thunk): Check for mips16 function.
1640         (build_mips16_function_stub): Don't set .mips16 here.
1641         (build_mips16_call_stub): Likewise.
1642         (mips_expand_builtin): Error in mips16 mode.
1643         (mips_use_mips16_mode_p): New.
1644         (mips_encode_section_info): Check for mips16 function, and set
1645         SYMBOL_REF_FLAGS accordingly.
1646
1647         * doc/extend.texi (Function Attributes): Document new
1648         mips16/nomips16 attributes.
1649         * doc/invoke.texi (Option Summary): Add -mflip-mips16.
1650         (MIPS Options): Document -mflip-mips16.
1651
1652 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
1653
1654         * config/mips/mips.c (mips_legitimize_tls_address): Call sorry
1655         if we encounter TLS address in MIPS16 mode.
1656         (mips_legitimize_const_move): Check cannot_force_const_mem for
1657         the (const (plus symbol offset)) case; this forces invalid TLS
1658         address in MIPS16 mode to be caught by the above call to sorry.
1659         (override_options): Don't reset targetm.have_tls in MIPS16 mode,
1660         because that now enables emutls, which is not ABI compatible
1661         with native TLS in non-MIPS16 mode.
1662
1663 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
1664
1665         Add target hook invoked when cfun changes.
1666
1667         * doc/tm.texi (TARGET_SET_CURRENT_FUNCTION): Document.
1668         * target.h (struct gcc_target): Add set_current_function.
1669         * target-def.h (TARGET_SET_CURRENT_FUNCTION): Define.
1670         (TARGET_INITIALIZER): Add initializer for set_current_function.
1671         * tree.h (push_struct_function): New.
1672         * tree-inline.h (push_cfun, pop_cfun): Move declarations to...
1673         * function.h: Here.
1674         (set_cfun): Declare.
1675         * tree-inline.c (cfun_stack, push_cfun, pop_cfun): Moved to...
1676         * function.c: Here.
1677         (push_function_context_to): Use allocate_struct_function
1678         to create null context, not init_dummy_function_start.  Use set_cfun.
1679         (pop_function_context_from): Use set_cfun.
1680         (in_dummy_function): New.
1681         (invoke_set_current_function_hook): New.
1682         (set_cfun): New.
1683         (push_cfun, pop_cfun): Use set_cfun.
1684         (push_struct_function): New.
1685         (allocate_struct_function): Call invoke_set_current_function_hook
1686         before returning.
1687         (prepare_function_start): Don't set cfun here.  Remove unused
1688         argument; fix all callers.
1689         (init_dummy_function_start): Fiddle with in_dummy_function.  Call
1690         push_struct_function.
1691         (init_function_start): Set cfun here.
1692         (expand_dummy_function_end): Fiddle with in_dummy_function.  Pop cfun.
1693         * omp-low.c (create_omp_child_function): Use push_struct_function
1694         and pop_cfun to save/restore state.
1695         (expand_omp_parallel): Remove unused saved_cfun variable.
1696         * cgraphunit.c (ipa_passes): Use set_cfun.
1697         * gimple-low.c (record_vars_into): Use push_cfun/pop_cfun here.
1698         * dwarf2out.c (dwarf2out_abstract_function): Likewise.
1699         * matrix-reorg.c (transform_allocation_sites): Likewise.
1700         (matrix_reorg): Use set_cfun.
1701         * gimplify.c (gimplify_function_tree): Use push_cfun/pop_cfun here.
1702         * tree-optimize.c (tree_rest_of_compilation): Remove one redundant
1703         assignment to cfun; use set_cfun for the other.
1704         * tree-cfg.c (move_sese_region_to_fn): Use set_cfun.
1705         (dump_function_to_file): Use push_cfun/pop_cfun here.
1706         * c-decl.c (finish_function): Use set_cfun.
1707
1708 2007-09-05  Kenneth Zadeck <zadeck@naturalbridge.com>
1709
1710         * regrename.c (rerename_optimize): Use deferred rescanning and
1711         insert explicit calls to rescan insns when changed.
1712         
1713 2007-09-05  Jan Hubicka  <jh@suse.cz>
1714
1715         * optabs.c (libfunc_entry): Change optab to integer.
1716         (hash_libfunc, convert_optab_libfunc, optab_libfunc,
1717         set_optab_libfunc, set_conv_libfunc): Use optable indexes instead
1718         of pointers for hashing.
1719
1720 2007-09-05  Jan Hubicka  <jh@suse.cz>
1721
1722         * regrename.c (pass_regrename, pass_cprop_hardreg): Add RTL sharing
1723         verifier.
1724         * fwprop.c (pass_rtl_fwprop, pass_rtl_fwprop_add): Likewise.
1725         * see.c (pass_see): Likewise.
1726         * tracer.c (pass_tracer): Likewise.
1727         * postreload-gcse.c (pass_gcse2): Likewise.
1728         * postreload.c (pass_postreload_cse): Likewise.
1729         * mode-switching.c (pass_mode_switching): Likewise.
1730         * modulo-sched.c (pass_sms): Likewise.
1731         * cse.c (cse_insn): Likewise.
1732         * web.c (pass_web): Likweise.
1733         * combine-stack-adj.c (pass_stack_adjustments): Likewise.
1734         * dce.c (pass_ud_rtl_dce, pass_fast_rtl_dce): Likewise.
1735         * loop-init.c (pass_rtl_loop_init): Likewise.
1736         (pass_rtl_loop_done, pass_rtl_move_loop_, pass_rtl_unswitch,
1737         pass_rtl_unroll_and, pass_rtl_doloop): Likewise.
1738         * global.c (pass_global_alloc): Likewise.
1739         * ifcvt.c (pass_rtl_ifcvt, pass_if_after_combine,
1740         pass_if_after_reload): Likewise.
1741         * reload.c (pass_peephole2, pass_split_for_shoren_branches): Likewise.
1742         * dse.c (pass_rtl_dse1, pass_rtl_dse2): Likewise.
1743         * regmove.c (pass_regmove): Likewise.
1744         * function.c (pass_thread_prologugues_epilogues): Likewise.
1745         * gcse.c (pass_gcse): Likewise.
1746         * rtl-factoring.c (pass_rtl_seqabstr): Likewise.
1747         * lower-subreg.c (pass_lower_subreg2): Likewise.
1748         * bt-load.c (pass_branch_target_load): Likewise.
1749         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
1750         * cfgcleanup.c (pass_jump, pass_jump2): Likewise.
1751         * combine.c (pass_combine): Likewise.
1752         * bb-reorder.c (pass_duplicate_comp, pass_reorder_blocks): Likewise.
1753         (pass_partition_blocks): Likewise.
1754         * var-tracking.c (pass_variable_track): Likewise.
1755         * reg-stack.c (pass_stack_regs_run): Likewise.
1756         * sched-rgn.c (pass_sched, pass_sched2): Likewise.
1757         * passes.c (pass_postreload): Likewise.
1758         (execute_function_todo): Add TODO_verify_rtl_sharing handling code.
1759         * tree-pass.h (TODO_verify_rtl_sharing): New.
1760         (TODO_update_ssa, TODO_update_ssa_no_phi, TODO_update_ssa_full_phi,
1761         TODO_update_ssa_only_virtuals, TODO_remove_unused_locals,
1762         TODO_set_props, TODO_df_finish, TODO_df_verify,
1763         TODO_mark_first_instance, TODO_rebuild_alias): Renumber.
1764
1765 2007-09-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1766
1767         * fold-const.c (all_ones_mask_p, sign_bit_p, simple_operand_p,
1768         fold_real_zero_addition_p, reorder_operands_p,
1769         div_if_zero_remainder, fold_undefer_overflow_warnings,
1770         int_binop_types_match_p, fold_convert_const_int_from_int,
1771         fold_convert_const_int_from_real,
1772         fold_convert_const_int_from_fixed,
1773         fold_convert_const_real_from_real,
1774         fold_convert_const_real_from_fixed,
1775         fold_convert_const_fixed_from_fixed,
1776         fold_convert_const_fixed_from_int,
1777         fold_convert_const_fixed_from_real, maybe_lvalue_p,
1778         fold_checksum_tree, fold_check_failed, print_fold_checksum,
1779         debug_fold_checksum, multiple_of_p): Constify.
1780         * tree-flow-inline.h (get_lineno): Likewise.
1781         * tree-flow.h (get_lineno): Likewise.
1782         * tree-object-size.c (compute_object_offset, addr_object_size,
1783         alloc_object_size, pass_through_call): Likewise.
1784         * tree-pretty-print.c (op_symbol, print_call_name,
1785         print_struct_decl, do_niy): Likewise.
1786         * tree.h (fold_undefer_overflow_warnings, multiple_of_p,
1787         debug_fold_checksum): Likewise.
1788
1789 2007-09-04  Steven Bosscher  <steven@gcc.gnu.org>
1790
1791         PR middle-end/33029
1792         * lower-subreg.c (resolve_clobber): If we remove a REG_LIBCALL
1793         note, remove the associated REG_RETVAL note.
1794
1795 2007-09-04  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1796
1797         * config.gcc (powerpc*-*-*): Install
1798         spu2vmx.h, vec_types.h, and si2vmx.h headers.
1799         * config/rs6000/spu2vmx.h: New header.
1800         * config/rs6000/si2vmx.h: New header.
1801         * config/rs6000/vec_types.h: New header.
1802
1803 2007-09-05  Ben Elliston  <bje@au.ibm.com>
1804
1805         * varasm.c (initializer_constant_valid_p): Fix comment typo.
1806
1807 2007-09-05  Ben Elliston  <bje@au.ibm.com>
1808
1809         * config/rs6000/ppu_intrinsics.h (__ldarx): Use `Z' constraint,
1810         not `m' for *ptrp.
1811         (__stdcx): Make asm volatile.
1812         (__stwcx, __stdcx): Return only 0 or 1.
1813
1814 2007-09-05  Jan Hubicka  <jh@suse.cz>
1815
1816         Revert:
1817
1818         2007-09-04  Jan Hubicka  <jh@suse.cz>
1819         * tree-tailcall.c (eliminate_tail_call): Expect unrenamed return value.
1820
1821         2007-09-04  Richard Guenther  <rguenther@suse.de>
1822         * tree-ssa-operands.c (add_virtual_operand): Only mark
1823         stores as has_volatile_ops if alias information is not available.
1824
1825 2007-09-05  Jakub Jelinek  <jakub@redhat.com>
1826
1827         * config/rs6000/tramp.asm: Include config.h.
1828         Check __PIC__ or __pic__ macro instead of SHARED.
1829
1830         PR rtl-optimization/32300
1831         * see.c (see_copy_insn): New function.
1832         (see_def_extension_not_merged, see_merge_one_use_extension,
1833         see_merge_one_def_extension): Use it.  Avoid changing
1834         PREV_INSN/NEXT_INSN chains directly, insted emit insns
1835         into sequences.  Call df_insn_delete on temporary insns
1836         that won't be emitted into the insn stream.
1837         (rest_of_handle_see): Turn off DF_DEFER_INSN_RESCAN
1838         and run df_process_deferred_rescans () before run_fast_dce.
1839
1840         PR tree-optimization/33017
1841         * tree-data-ref.c (split_constant_offset) <case SSA_NAME>: Don't
1842         recurse for pure or const function calls.
1843
1844 2007-09-04  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1845
1846         * c-format.c: Include alloc-pool.h.
1847         (check_format_info_main): New argument fwt_alloc.  Use allocation
1848         pool instead of GC.  Remove GC deallocation code.
1849         (check_format_arg): Create allocation pool, pass it to
1850         check_format_info_main and free it afterwards.
1851         * Makefile.in (c-format.o): Add alloc-pool.h dependency.
1852
1853 2007-09-05  Ben Elliston  <bje@au.ibm.com>
1854
1855         * config/rs6000/ppu_intrinsics.h (__protected_stream_count):
1856         Rename count macro arugment for clarity.
1857         (__protected_unlimited_stream_set): Pass UG=1 to __dcbt_TH1000.
1858         (__protected_stream_set): Likewise, pass 0.
1859
1860 2007-09-04  Jan Hubicka  <jh@suse.cz>
1861
1862         * tree-tailcall.c (eliminate_tail_call): Expect unrenamed return value.
1863
1864 2007-09-04  Jan Hubicka  <jh@suse.cz>
1865
1866         * invoke.texi (-finline-small-functions): Document.
1867         * ipa-inline.c (cgraph_default_inline_p): Do not use DECL_INLINE
1868         when deciding what is inlinable.
1869         (cgraph_decide_recursive_inlining): Handle flag_inline_functions.
1870         (cgraph_decide_inlining_of_small_function): Handle new flags.
1871         (cgraph_decide_inlining_incrementally): Likewise.
1872         * opts.c (decode_options): Enable flag_inline_small_functions at -O2
1873         * common.opt (finline-small-functions): New.
1874         * Makefile.in (build/gengtype.o-warn): Work around PR29478
1875
1876 2007-09-04  Richard Guenther  <rguenther@suse.de>
1877
1878         * tree-ssa-operands.c (add_virtual_operand): Only mark
1879         stores as has_volatile_ops if alias information is not available.
1880
1881 2007-09-04  Andrew Haley  <aph@redhat.com>
1882
1883         * config/arm/libgcc-bpabi.ver: Add _Unwind_Backtrace as GCC_4.3.0.
1884
1885 2007-09-04  Andrew Haley  <aph@redhat.com>
1886
1887         * config/arm/libunwind.S (UNWIND_WRAPPER _Unwind_Backtrace): New.
1888         * config/arm/unwind-arm.h (__gnu_Unwind_Backtrace): New.
1889         * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): New.
1890
1891 2007-09-04  Emmanuel Thome  <Emmanuel.Thome@inria.fr>
1892
1893         PR c++/14178
1894         * common.opt: Mention ABI version 2 in comment.
1895
1896 2007-09-04  Jan Hubicka  <jh@suse.cz>
1897
1898         * optabs.c (debug_optab_libfunc): Update; make available to gdb.
1899         (libfunc_entry): New structure.
1900         (libfunc_hash): New hashtable.
1901         (hash_libfunc): New function.
1902         (eq_libfunc): New function.
1903         (convert_optab_libfunc): New function.
1904         (optab_libfunc): New function.
1905         (expand_binop, sign_expand_binop, expand_twoval_binop_libfunc,
1906         expand_unop, prepare_cmp_insn, prepare_float_insn, gen_add2_insn,
1907         expand_float, expand_fix, new_optab, new_convert_optab):
1908          Update for new libfunc API.
1909         (init_libfunc, init_integral_libfuncs,
1910         init_floating_libfuncs, init_interclass_conv_libfuncs
1911         init_intraclass_conv_libfuncs): Remove; reorganize all logic to:
1912         (gen_libfunc, gen_int_libfunc, gen_fp_libfunc, gen_int_fp_libfunc,
1913         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
1914         gen_int_to_fp_conv_libfunc, gen_ufloat_conv_libfunc,
1915         gen_int_to_fp_nondecimal_conv_libfunc, gen_fp_to_int_conv_libfunc,
1916         gen_intraclass_conv_libfunc, gen_trunc_conv_libfunc,
1917         gen_extend_conv_libfunc): New.
1918         (init_one_libfunc): Revamp for hashtables.
1919         (set_conv_libfunc): Likewise.
1920         (init_optabs): Initialize hashtable; use lazy initialization where
1921         possible.
1922         * optabs.h (optab_handlers): Move out of GGC.
1923         (optab, convert_optab): Move out of GGC; add lazy gen info.
1924         (code_to_optab, convert_optab_table, optab_table): Move out of GGC.
1925         (optab_libfunc, convert_optab_libfunc): New.
1926         * builtins.c (expand_builtin_powi): Update for new API.
1927         * expr.c (convert_move): Likewise.
1928         * expmed.c (expand_divmod): Likewise.
1929
1930 2007-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
1931
1932         * config/rs6000/rs6000.c (rs6000_stack_info): Allocate space for the
1933         GOT pointer only if there is a constant pool.  Use the allocated space
1934         for SPE also.
1935
1936 2007-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
1937
1938         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Correct
1939         typo for AltiVec.
1940
1941 2007-09-04  Revital Eres  <eres@il.ibm.com>
1942             Richard Guenther  <rguenther@suse.de>
1943             R. Clint Whaley  <whaley@cs.utsa.edu>
1944
1945         * doc/invoke.texi (-fassociative-math, -freciprocal-math):
1946         Document new flags.
1947         * tree-tailcall.c (process_assignment): Use -fassociative-math
1948         when reodering operands of floating-point type.
1949         * fold-const.c (fold_comparison, fold_binary): Use
1950         -fassociative-math and -freciprocal-math instead of
1951         -funsafe-math-optimization flag.
1952         * toplev.h (set_unsafe_math_optimizations_flags): Declare function.
1953         * tree-ssa-math-opts.c (gate_cse_reciprocals): Use
1954         -freciprocal-math instead of -funsafe-math-optimizations.
1955         * opts.c (set_fast_math_flags): Set -freciprocal-math and
1956         -fassociative-math when -ffast-math is set.
1957         (set_unsafe_math_optimizations_flags): New Function
1958         to set -freciprocal-math and -fassociative-math when
1959         -funsafe-math-optimizations is set.
1960         (common_handle_option): Call it.
1961         * tree-vectorizer.c (vect_is_simple_reduction): Use
1962         -fassociative-math when doing reduction on floats.
1963         * loop-unroll.c (analyze_insn_to_expand_var): Use
1964         -fassociative-math when expanding an accumulator of type float.
1965         * simplify-rtx.c (simplify_binary_operation_1): Use
1966         -fassociative-math and -freciprocal-math when reordeing operands
1967         of floating-point type.
1968         * combine.c (combine_simplify_rtx): Likewise.
1969         * tree-ssa-reassoc.c (break_up_subtract_bb, reassociate_bb):
1970         Likewise.
1971         * common.opt (-fassociative-math, -freciprocal-math): New flags.
1972
1973 2007-09-04  Paolo Carlini  <pcarlini@suse.de>
1974
1975         PR c++/18608
1976         * doc/install.texi (--enable-__cxa_atexit): Fix typo.
1977
1978 2007-09-04  Jan Hubicka  <jh@suse.cz>
1979
1980         * regrename.c(copyprop_hardreg_forward_1): Unshare when doing copyprop.
1981
1982 2007-09-04  Jan Hubicka  <jh@suse.cz>
1983
1984         * regrename.c (build_def_use): Don't share RTL between MATCH_OPERATOR
1985         and corresponding MATCH_DUP.
1986
1987 2007-09-04  Uros Bizjak  <ubizjak@gmail.com>
1988
1989         PR middle-end/33187
1990         * combine.c (subst): Do not try to simplify X if it represents load
1991         of FP constant from the constant pool via float extension.
1992
1993 2007-09-04  Ben Elliston  <bje@au.ibm.com>
1994
1995         * c-opts.c: Include "tm_p.h".
1996         * Makefile.in (c-opts.o): Add $(TM_P_H) as a dependency.
1997
1998 2007-09-04  Richard Guenther  <rguenther@suse.de>
1999
2000         PR tree-optimization/33291
2001         * tree-pretty-print.c (dump_generic_node): Dump all
2002         qualifiers for pointer types, not only first.  Dump
2003         qualifiers for aggregate types as well.
2004         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Always
2005         use the canonical type for building ARRAY_REFs.
2006         * gimplify.c (canonicalize_addr_expr): Clean up.  The
2007         correct validness check is compatibility of the pointer
2008         types.  Always use the canonical type for building
2009         ARRAY_REFs and ADDR_EXPRs.
2010         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Revert
2011         change that disabled propagation of ADDR_EXPRs into statements
2012         with volatile ops.
2013
2014 2007-09-03  Zack Weinberg  <zack@codesourcery.com>
2015
2016         * config/arm/arm.md (mulsidi3, umulsidi3, mulsi3_highpart)
2017         (umulsi3_highpart): Make into expanders; existing insns are
2018         now named *[insn]_nov6.  Add stars to existing [insn]_v6
2019         counterparts' names.
2020
2021 2007-09-03  Daniel Jacobowitz  <dan@codesourcery.com>
2022
2023         * Makefile.in (DRIVER_DEFINES, gcc.o, gccspec.o, protoize.o)
2024         (unprotoize.o): Remove SHLIB_MULTILIB.
2025
2026 2007-09-03  Eric Weddington  <eweddington@cso.atmel.com>
2027
2028         * doc/extend.texi: Document progmem attribute for AVR.
2029
2030 2007-09-03  Anatoly Sokolov <aesok@post.ru>
2031
2032         PR target/28902
2033         * config/avr/avr.h (TARGET_VTABLE_ENTRY_ALIGN): Define.
2034
2035 2007-09-03  Zack Weinberg  <zack@codesourcery.com>
2036
2037         * optabs.c (expand_ffs): Initialize val and defined_at_zero
2038         to avoid warnings.
2039
2040         * optabs.c: Remove unnecessary forward declarations.
2041         (expand_unop_direct): New, broken out of expand_unop.
2042         (expand_doubleword_clz): New.
2043         (expand_ctz): Move above expand_ffs.  Use
2044         start_sequence, end_sequence, add_equal_note, and
2045         expand_unop_direct.  Add more commentary.
2046         (expand_ffs): Try both ctz optab and expand_ctz.
2047         Generate a test and branch if the hardware doesn't give us
2048         a useful value for input zero.  Style improvements similar to
2049         expand_ctz.
2050
2051         * config/arm/arm.md (ffssi2, ctzsi2): Delete.
2052
2053 2007-09-03  Zack Weinberg  <zack@codesourcery.com>
2054
2055         * config.gcc: Delete stanza for arm-semi-aof and
2056         armel-semi-aof targets.
2057         * config/arm/arm-protos.h
2058         * config/arm/arm.c
2059         * config/arm/arm.h: Delete all #ifdef AOF_ASSEMBLER blocks;
2060         make all #ifndef AOF_ASSEMBLER blocks unconditional.  Also
2061         delete aof_pic_label and remove mention of AOF in comments.
2062         * config/arm/arm.md: Delete patterns used only for AOF assembly.
2063         * config/arm/aof.h
2064         * config/arm/semiaof.h
2065         * config/arm/t-semi: Delete file.
2066
2067 2007-09-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2068
2069         * system.h (CONST_CAST2, CONST_CAST_TREE, CONST_CAST_RTX,
2070         CONST_CAST_BB): New macros for type-specific casts.
2071         (CONST_CAST): Add a TYPE parameter and define it in terms of
2072         CONST_CAST2.
2073
2074         * c-decl.c (c_make_fname_decl): Supply a TYPE for CONST_CAST.
2075         * c-lex.c (cb_ident, lex_string): Likewise,
2076         * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise,
2077         * config/i386/i386.c (ix86_function_regparm,
2078         ix86_function_sseregparm): Use CONST_CAST_TREE.
2079         * config/mmix/mmix.c (mmix_encode_section_info): Supply a TYPE for
2080         CONST_CAST.
2081         * gcc.c (set_spec, read_specs, for_each_path, execute, do_spec_1,
2082         give_switch, set_multilib_dir): Likewise,
2083         * gengtype-parse.c (string_seq, typedef_name): Likewise,
2084         * gimple-low.c (block_may_fallthru): Use CONST_CAST_TREE.
2085         * jump.c (reversed_comparison_code_parts): Use CONST_CAST_RTX.
2086         * passes.c (execute_one_pass): Supply a TYPE for CONST_CAST.
2087         * prefix.c (update_path): Likewise,
2088         * pretty-print.c (pp_base_destroy_prefix): Likewise,
2089         * rtlanal.c (keep_with_call_p): Use CONST_CAST_RTX.
2090         * tree-cfg.c (tree_can_merge_blocks_p,
2091         tree_block_ends_with_condjump_p): Use CONST_CAST_BB.
2092         * tree-eh.c (lookup_stmt_eh_region_fn): USe CONST_CAST_TREE.
2093         * tree.c (build_string): Supply a TYPE for CONST_CAST.
2094         (attribute_list_contained): Use CONST_CAST_TREE.
2095
2096 2007-09-03  Krister Walfridsson  <cato@df.lth.se>
2097
2098         * config/netbsd-elf.h (USE_LD_AS_NEEDED): Define.
2099
2100 2007-09-03  Richard Sandiford  <richard@codesourcery.com>
2101
2102         PR middle-end/33290
2103         * optabs.c (avoid_expensive_constant): Canonicalize CONST_INTs
2104         before forcing them into a register.
2105
2106 2007-09-03  Richard Sandiford  <richard@codesourcery.com>
2107
2108         * config/mips/mips.md (fetchop_bit): Use define_code_iterator
2109         rather than define_code_macro.
2110
2111 2007-09-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2112
2113         * gcc.c (xputenv): New function.
2114         (putenv_from_prefixes): Use xputenv instead of putenv.
2115         (process_command): Use xputenv instead of putenv.
2116         (set_collect_gcc_options): Use xputenv instead of putenv.
2117         (main): Use xputenv instead of putenv.
2118
2119 2007-09-03  Jesper Nilsson  <jesper.nilsson@axis.com>
2120
2121         * config/cris/cris.h (TARGET_HAS_SWAP): Defined to describe
2122         availability of swap instruction.
2123         * config/cris/cris.md (bswapsi2): Implement using swap instruction.
2124
2125 2007-09-03  Revital Eres  <eres@il.ibm.com>
2126
2127         * doc/invoke.texi (-fmodulo-sched-allow-regmoves): Update
2128         Documentation.
2129
2130 2007-09-03  Vladimir Yanovsky  <yanov@il.ibm.com>
2131             Ayal Zaks  <zaks@il.ibm.com>
2132             Revital Eres  <eres@il.ibm.com>
2133
2134         * modulo-sched.c (ps_insert_empty_row, verify_partial_schedule,
2135         compute_split_row): New functions.
2136         (ps_unschedule_node): Remove.
2137         (normalize_sched_times): Iterate over the already scheduled
2138         insns instead of the number of nodes.
2139         (MAX_SPLIT_NUM): New definition.
2140         (sms_schedule_by_order): Change the scheduling heuristic to
2141         avoid useless increases of initiation interval ii.
2142         (get_sched_window): Add dump printouts.
2143
2144 2007-09-02  David Daney  <ddaney@avtrex.com>
2145
2146         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP, UNSPEC_SYNC_OLD_OP,
2147         UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE): New define_constants.
2148         (optab, insn): Add more attributes.
2149         (fetchop_bit): New code macro.
2150         (immediate_insn): New code macro attribute.
2151         (sync): Change condition to ISA_HAS_SYNC.
2152         (rdhwr): Change predicate for operand 0 to register_operand.
2153         (memory_barrier): New expand.
2154         (sync_compare_and_swap<mode>, sync_add<mode>, sync_sub<mode>,
2155         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
2156         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
2157         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
2158         sync_new_nand<mode>, sync_lock_test_and_set<mode>): New insns.
2159         * config/mips/mips.h (ISA_HAS_SYNC, ISA_HAS_LL_SC): New ISA predicates.
2160         (MIPS_COMPARE_AND_SWAP, MIPS_SYNC_OP, MIPS_SYNC_OLD_OP,
2161         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
2162         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE): New Macros.
2163         
2164 2007-09-03  Jesper Nilsson  <jesper.nilsson@axis.com>
2165             Hans-Peter Nilsson  <hp@axis.com>
2166
2167         * config/cris/cris.h (TARGET_HAS_LZ, CLZ_DEFINED_VALUE_AT_ZERO):
2168         Defined to describe availability and behavior of CLZ.
2169         * config/cris/cris.md (clzsi2): Implement using lz instruction.
2170         * config/cris/cris.opt: Tweak comment for "-metrax4".
2171         * config/cris/arit.c (LZ): When defined, define as __builtin_clz.
2172         * longlong.h [__CRIS__ && __CRIS_arch_version >= 3]
2173         (count_leading_zeros): Define.
2174
2175 2007-09-01  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2176
2177         * ggc-page.c (ggc_pch_read): Call validate_free_objects.
2178
2179 2007-09-02  Joseph Myers  <joseph@codesourcery.com>
2180
2181         PR middle-end/33272
2182         * c-decl.c (grokdeclarator): Apply qualifiers to type of parameter
2183         decayed from array.
2184
2185 2007-09-01  Kazu Hirata  <kazu@codesourcery.com>
2186
2187         * config/arm/arm.c, config/rs6000/ppu_intrinsics.h,
2188         config/spu/spu.c, df-scan.c, fixed-value.c, fold-const.c,
2189         ginclude/tgmath.h, haifa-sched.c, optabs.c, recog.c,
2190         sched-deps.c, sched-int.h, system.h, target.h,
2191         tree-ssa-live.c, tree-vect-transform.c, tree-vectorizer.c,
2192         tree.def: Fix comment typos.
2193
2194 2007-09-01  Kazu Hirata  <kazu@codesourcery.com>
2195
2196         * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove.
2197         (override_options): Turn on -mstrict-align on non-ColdFire
2198         targets.
2199         * config/m68k/m68k.h (BIGGEST_ALIGNMENT): Update a comment.
2200
2201 2007-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2202
2203         * c-common.c (const_strip_array_types): Delete.
2204         * c-common.h (const_strip_array_types): Likewise.
2205         * emit-rtl.c (const_next_insn, const_previous_insn,
2206         const_next_nonnote_insn, const_prev_nonnote_insn,
2207         const_next_real_insn, const_prev_real_insn,
2208         const_next_active_insn, const_prev_active_insn, const_next_label,
2209         const_prev_label): Delete.
2210         * gimple-low.c (block_may_fallthru): Use expr_last.
2211         * jump.c (reversed_comparison_code_parts): Use prev_nonnote_insn.
2212         * rtl.h (const_previous_insn, const_next_insn,
2213         const_prev_nonnote_insn, const_next_nonnote_insn,
2214         const_prev_real_insn, const_next_real_insn,
2215         const_prev_active_insn, const_next_active_insn, const_prev_label,
2216         const_next_label): Delete.
2217         * rtlanal.c (keep_with_call_p): Use next_nonnote_insn.
2218         * system.h (CONST_CAST): Update comment.
2219         * tree-cfg.c (tree_can_merge_blocks_p): Use last_stmt.
2220         (const_first_stmt, const_last_stmt): Delete.
2221         (tree_block_ends_with_condjump_p): Use last_stmt.
2222         * tree-flow.h (const_first_stmt, const_last_stmt): Delete.
2223         * tree-iterator.c (const_expr_first, const_expr_last,
2224         const_expr_only): Delete.
2225         * tree.c (const_lookup_attribute): Likewise.
2226         (attribute_list_contained): Use lookup_attribute.
2227         * tree.h (const_lookup_attribute, const_expr_first,
2228         const_expr_last, const_expr_only): Delete.
2229
2230 2007-09-01  Richard Guenther  <rguenther@suse.de>
2231
2232         * tree-ssa-alias.c (create_name_tags): Use TYPE_VOLATILE
2233         instead of TREE_THIS_VOLATILE.
2234         * tree-ssa-operands.c (add_virtual_operand): Do not set
2235         has_volatile_ops.  Do not check s_ann for NULL.
2236         (get_indirect_ref_operands): Likewise.
2237         (get_expr_operands): Likewise.  For all reference trees
2238         set has_volatile_ops based on TREE_THIS_VOLATILE.  Also
2239         check base of reference for TREE_THIS_VOLATILE.
2240
2241 2007-09-01  Richard Guenther  <rguenther@suse.de>
2242
2243         * tree-cfg.c (verify_gimple_expr): Fix check for conversions
2244         between integral types.  Also allow conversions between
2245         pointer types.
2246
2247 2007-08-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2248
2249         * optabs.c (prepare_float_lib_cmp): Use
2250         libgcc_cmp_return_mode instead of word_mode.
2251         * config/dfp-bit.h: Likewise.
2252         * config/fp-bit.h: Likewise.
2253         * config/spu/spu.c (spu_libgcc_cmp_return_mode):
2254         New function.
2255         (spu_libgcc_shift_count_mode): New function.
2256         (TARGET_LIBGCC_CMP_RETURN_MODE): Define.
2257         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Define.
2258
2259 2007-08-31  Joseph Myers  <joseph@codesourcery.com>
2260
2261         * tree-pretty-print.c: Include output.h.
2262         (dump_decl_name, dump_generic_node): Use %wd with pp_printf, not
2263         HOST_WIDE_INT_PRINT_DEC.
2264         * Makefile.in (tree-pretty-print.o): Add dependency on output.h.
2265
2266 2007-08-31  Zdenek Dvorak  <ook@ucw.cz>
2267
2268         PR rtl-optimization/33224
2269         * loop-iv.c (latch_dominating_def): Check that the definition belongs
2270         to the analysed region.
2271
2272 2007-08-31  Richard Guenther  <rguenther@suse.de>
2273
2274         * function.c (allocate_struct_function): Do not set
2275         current_function_returns_pointer.
2276         * function.h (struct var_refs_queue): Remove.
2277         (struct simple_obstack_stack): Likewise.
2278         (struct function): Remove fixup_var_refs_queue member.
2279         Remove returns_pointer flag.
2280         (current_function_returns_pointer): Remove define.
2281
2282 2007-08-31  Nick Clifton  <nickc@redhat.com>
2283
2284         * tree-ssa-coalesce.c (compare_pairs): Use the elements as
2285         secondary keys in order to obtain a stable sort.
2286
2287 2007-08-31  Nick Clifton  <nickc@redhat.com>
2288
2289         PR target/33132
2290         * config/m32r/constraints.md: Add W constraint for integer zero.
2291         * config/m32r/m32r.md (get_pc): Use W and i constraints.
2292         Fix length calculation by using alternatives.
2293
2294 2007-08-31  Richard Sandiford  <richard@codesourcery.com>
2295
2296         * optabs.c (shift_optab_p, commutative_optab_p): New functions,
2297         split out from expand_binop.
2298         (avoid_expensive_constant): New function.
2299         (expand_binop_directly): Remove commutative_op argument and
2300         (expand_binop_directly): Remove commutative_op argument and
2301         call cummutative_optab_p instead.  Do not change op0 or op1
2302         when swapping xop0 and xop1.  Apply avoid_expensive_constant
2303         to each argument after potential swapping.  Enforce the
2304         canonical order of commutative operands.
2305         (expand_binop): Use shift_optab_p and commutative_optab_p.
2306         Update the calls to expand_binop_directly.  Only force constants
2307         into registers when widening an operation.  Only swap operands
2308         once a direct expansion has been rejected.
2309         (expand_twoval_binop): Only force constants into registers when
2310         using a direct expansion.
2311
2312 2007-08-31  Maxim Kuvyrkov  <maxim@codesourcery.com>
2313
2314         * sched-deps.c (update_dep): Mark arguments with ATTRIBUTE_UNUSED.
2315         (sched_analyze_insn): Don't postprocess speculative dependencies when
2316         target has no scheduling.
2317         * tree-vect-transform.c (vect_estimate_min_profitable_iters): Fix
2318         'uninitialized' warning.
2319
2320 2007-08-31  Richard Guenther  <rguenther@suse.de>
2321
2322         * tree.c (build_complex_type): Always set TYPE_NAME for
2323         comples types.
2324
2325 2007-08-31  Olivier Hainque  <hainque@adacore.com>
2326
2327         * config/rs6000/xcoff.h (XCOFF_CSECT_DEFAULT_ALIGNMENT_STR): New
2328         internal macro. Default alignment factor for csect directives, chosen
2329         to match what BIGGEST_ALIGNMENT allows.
2330         (DATA_SECTION_ASM_OP): Use it.
2331         * config/rs6000/rs6000.c
2332         (rs6000_xcoff_output_readonly_section_asm_op):
2333         Use XCOFF_CSECT_DEFAULT_ALIGNMENT_STR.
2334         (rs6000_xcoff_output_readwrite_section_asm_op): Likewise.
2335         
2336 2007-08-31  Olivier Hainque  <hainque@adacore.com>
2337
2338         * dbxout.c (dbxout_block): Move declaration within the first
2339         #if defined (DBX_DEBUGGING_INFO) block.  Rearrange another such
2340         block to include the definition, together with the associated
2341         helpers.
2342
2343 2007-08-31  David Edelsohn  <edelsohn@gnu.org>
2344             Revital Eres  <eres@il.ibm.com>
2345
2346         * doc/invoke.texi (-mpaired): Document flag.
2347         * config.gcc: Include paired.h in powerpc extra_headers and
2348         750cl.h in powerpc-*-linux*paired*.
2349         * config/rs6000/rs6000.opt (-mpaired): New flag.
2350         * config/rs6000/rs6000.c (paired_init_builtins,
2351         paired_expand_builtin, paired_expand_lv_builtin,
2352         paired_expand_stv_builtin, paired_expand_predicate_builtin):
2353         New functions to support the paired single builtin functions.
2354         (rs6000_hard_regno_mode_ok): Handle PAIRED_VECTOR_MODE.
2355         (def_builtin, bdesc_3arg, bdesc_2arg, bdesc_1arg): Add paired
2356         single builtins.
2357         (bdesc_paired_preds): New structure for paired predicate
2358         instructions.
2359         (rs6000_expand_builtin): Expand paired single builtins.
2360         (rs6000_init_builtins): Init paired single builtins.
2361         (rs6000_common_init_builtins): Add v2sf_ftype_v2sf_v2sf_v2sf.
2362         Rename v2sf_ftype_v2sf_v2sf to v2sf_ftype_v2sf_v2sf_spe
2363         and v2sf_ftype_v2sf_spe to v2sf_ftype_v2sf.  Add new types
2364         v2sf_ftype_v2sf_v2sf and v2sf_ftype_v2sf.
2365         (rs6000_vector_mode_supported_p): Support paired vector mode.
2366         * config/rs6000/rs6000.h: (UNITS_PER_PAIRED_WORD,
2367         PAIRED_VECTOR_MODE, PAIRED_SIMD_REGNO_P, TARGET_PAIRED_FLOAT):
2368         New.
2369         (LOCAL_ALIGNMENT): Handle PAIRED_VECTOR_MODE.
2370         (DATA_ALIGNMENT): Likewise.
2371         (UNITS_PER_SIMD_WORD): Handle PAIRED_VECTOR_MODE.
2372         (rs6000_builtins): Add PAIRED builtins.
2373         * config/rs6000/rs6000.md: Include paired.md.
2374         * config/rs6000/paired.h: New.
2375         * config/rs6000/paired.md: New.
2376         * config/rs6000/750cl.h: New.
2377         * config/rs6000/spe.md: Recognize movv2sf instruction for 750cl.
2378
2379 2007-08-30  Ollie Wild  <aaw@google.com>
2380
2381         * c-opts.c (c_common_handle_option): Support -fno-directives-only.
2382         * gcc.c (default_compilers): Add -fno-directives-only to
2383         @assembler-with-cpp.
2384
2385 2007-08-30  Sandra Loosemore  <sandra@codesourcery.com>
2386
2387         PR middle-end/33211
2388
2389         * regclass.c (initial_fixed_regs): Revert previous change and make
2390         it const again.
2391         (initial_call_used_regs): Likewise.
2392         (initial_call_really_used_regs): Delete, reverting previous addition.
2393         (initial_reg_names): Likewise.
2394         (init_reg_sets): Revert previous change.
2395         (saved_fixed_regs): New.
2396         (saved_call_used_regs): New.
2397         (saved_call_really_used_regs): New.
2398         (saved_reg_names): New.
2399         (save_register_info): New.
2400         (restore_register_info): New.
2401         (init_reg_sets_1): Replace reset of register info with call to
2402         restore_register_info.
2403         * rtl.h (save_register_info): Declare.
2404         * toplev.c (backend_init): Call save_register_info.
2405
2406 2007-08-30  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2407
2408         * tree-ssa-propagate.c (set_rhs): Remove the copied annotation
2409         from the original statement.
2410
2411 2007-08-30  Chao-ying Fu  <fu@mips.com>
2412
2413         * c-lex.c (interpret_fixed): Declare.
2414         (interpret_float): Process _Fract and _Accum.
2415         (interpret_fixed): New function.
2416         * final.c (output_addr_const): Process CONST_FIXED.
2417         * simplify-rtx.c (simplify_const_unary_operation): Handle US_NEG.
2418         (simplify_binary_operation_1): Handle US_ASHIFT, SS_MULT, US_MULT,
2419         SS_DIV, US_DIV.
2420         (simplify_const_binary_operation): Handle SS_MULT, US_MULT, SS_DIV,
2421         US_DIV, US_ASHIFT.
2422         (simplify_immed_subreg): Support CONST_FIXED.
2423         Process MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
2424         (simplify_subreg): Support CONST_FIXED.
2425
2426 2007-08-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2427
2428         * config/rs6000/ppu_intrinsics.h: New file.
2429         * config.gcc (powerpc*-*-* <extra_headers>): Install
2430         ppu_intrinsics.h.
2431
2432 2007-08-30  Kenneth Zadeck <zadeck@naturalbridge.com>
2433
2434         * cfg.c (dump_flow_info): Change to also print entry and exit
2435         block info.
2436         * print-rtl.c (print_rtl_single): Allow to print rtl with
2437         -fdump-unnumbered.
2438         
2439 2007-08-30  Kenneth Zadeck <zadeck@naturalbridge.com>
2440
2441         * df-core.h (df_dump_region): New function.
2442         * df.h (df_dump_region): New function.
2443         * loop-invariant.c (find_defs): Add call to df_dump_region.
2444         * loop-iv.c (iv_analysis_loop_init): Changed call from df_dump to
2445         df_dump_region.
2446         
2447 2007-08-30  Jakub Jelinek  <jakub@redhat.com>
2448
2449         PR target/33168
2450         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Return
2451         true if any of the compare_section_name calls returned true,
2452         rather than if any returned false.
2453
2454 2007-08-30  Richard Guenther  <rguenther@suse.de>
2455
2456         PR tree-optimization/33199
2457         * tree-ssa-structalias.c (handle_lhs_call): New function.
2458         (find_func_aliases): In non-IPA mode make sure that for
2459         calls that return a pointer we add a constraint for the
2460         result to point to anything.
2461
2462 2007-08-30  Richard Guenther  <rguenther@suse.de>
2463
2464         * doc/invoke.texi (-mveclibabi): Document new target option.
2465         * config/i386/i386.opt (-mveclibabi): New target option.
2466         * config/i386/i386.c (ix86_veclib_handler): Handler for
2467         vectorization library support.
2468         (override_options): Handle the -mveclibabi option, initialize
2469         the vectorization library handler.
2470         (ix86_builtin_vectorized_function): As fallback call the
2471         vectorization library handler, if set.
2472         (ix86_veclibabi_acml): New static function for ACML ABI style
2473         vectorization support.
2474
2475 2007-08-30  Jakub Jelinek  <jakub@redhat.com>
2476
2477         * config/rs6000/rs6000.c (rs6000_emit_sync): For QI or HI mode
2478         used_m, even if it is 32-bit aligned, adjust used_m MEM to have
2479         SImode and update m.  Don't run gen_lowpart_common on arbitrary
2480         memory address, force it to register first.
2481
2482         PR middle-end/32758
2483         * dce.c (dce_process_block): Don't delete setters of
2484         artificially used registers.
2485
2486 2007-08-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2487
2488         * config/s390/s390.md ("*add<mode>3_alc_carry1_cc",
2489         "*add<mode>3_alc_carry1_cconly", "*add<mode>3_alc_carry2_cc",
2490         "*add<mode>3_alc_carry2_cconly"): New insn definitions.
2491
2492 2007-08-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2493
2494         * config/s390/s390.c (s390_expand_addcc): Emit canonical alc
2495         pattern.
2496         * config/s390/s390.md ("*add<mode>3_alc_cc", "*add<mode>3_alc",
2497         "addti3", "*adddi3_31z", "*scond<mode>"): Make alc pattern canonical.
2498
2499 2007-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2500
2501         * system.h: Activate -Wcast-qual as warning-only.
2502
2503 2007-08-29  Paolo Bonzini  <bonzini@gnu.org>
2504
2505         PR target/33168
2506         * config/rs6000/rs6000.c (compare_section_name): New function.
2507         (rs6000_elf_in_small_data_p): Compare section prefixes instead
2508         of full name.
2509
2510 2007-08-29  Olivier Hainque  <hainque@adacore.com>
2511
2512         * xcoffout.c: #include debug.h.
2513         * Makefile.in (xcoffout.o): Add debug.h dependency.
2514
2515 2007-08-29  Uros Bizjak  <ubizjak@gmail.com>
2516
2517         * simplify-rtx.c (simplify_binary_operation_1) [VEC_SELECT]:
2518         Change CONST_VECTOR_ELT to XVECEXP in elem calculation.
2519
2520 2007-08-29  Richard Guenther  <rguenther@suse.de>
2521
2522         * tree-pretty-print.c (dump_generic_node): Print
2523         label DECL_UID as D.%u.
2524         * tree-dfa.c (dump_variable): Print DECL_UID as D.%u.
2525
2526 2007-08-29  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2527
2528         * gcc/builtin-types.def (BT_FN_PTR_PTR_SIZE): New type.
2529         * gcc/builtins.def (BUILT_IN_REALLOC): New builtin.
2530
2531 2007-08-29  Douglas Gregor  <doug.gregor@gmail.com>
2532
2533         PR c++/33194
2534         * tree.c (build_type_attribute_qual_variant): Set canonical types
2535         on the final, unqualified attribute variant before building the
2536         qualified version.
2537
2538 2007-08-29  Jie Zhang  <jie.zhang@analog.com>
2539
2540         * config/bfin/bfin.c (bfin_expand_builtin): Fix the argument
2541         order of __builtin_bfin_cmplx_mac and __builtin_bfin_cmplx_msu.
2542
2543 2007-08-29  Jie Zhang  <jie.zhang@analog.com>
2544
2545         Revert
2546         2007-08-29  Jie Zhang  <jie.zhang@analog.com>
2547         * config/bfin/bfin.md (composev2hi): Put operands into vector
2548         with correct order.
2549
2550 2007-08-29  Jie Zhang  <jie.zhang@analog.com>
2551
2552         * config/bfin/bfin.md (composev2hi): Put operands into vector
2553         with correct order.
2554
2555 2007-08-29  Jie Zhang  <jie.zhang@analog.com>
2556
2557         * config/bfin/bfin.c (bfin_expand_call): Inline PLT with l1_text
2558         attribute when appropriate.
2559         (bfin_handle_l1_text_attribute): New.
2560         (bfin_handle_l1_data_attribute): New.
2561         (bfin_attribute_table): Add attributes: l1_text, l1_data,
2562         l1_data_A and l1_data_B.
2563         * doc/extend.texi (node Function Attributes): Document l1_text
2564         function attribute.
2565         (Variable Attributes): Add Blackfin subsection. Document l1_data,
2566         l1_data_A and l1_data_B variable attributes.
2567
2568 2007-08-28  Jie Zhang  <jie.zhang@analog.com>
2569
2570         * config/bfin/bfin.opt (minline-plt): Add.
2571         * config/bfin/bfin.c (bfin_expand_call): Inline PLT when emit
2572         call to global functions.
2573         * doc/invoke.texi (Option Summary): Mention -minline-plt.
2574         (Blackfin Options): Document -minline-plt.
2575
2576 2007-08-28  Nathan Sidwell  <nathan@codesourcery.com>
2577
2578         * config/m68k/m68k.c (m68k_get_function_kind): Assert we're never
2579         given a non-function.
2580         (m68k_ok_for_sibcall_p): Only sibcall functions of the same kind.
2581
2582 2007-08-28  DJ Delorie  <dj@redhat.com>
2583
2584         * config/sh/sh.c (sh_gimplify_va_arg_expr): Fix sh2a support.
2585
2586 2007-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2587
2588         * system.h (CONST_CAST): Avoid union for gcc-4.0.x.
2589
2590 2007-08-28  Richard Guenther  <rguenther@suse.de>
2591
2592         * tree.h (struct tree_function_decl): Increase size of
2593         function_code bitfield.
2594
2595 2007-08-28  Nathan Sidwell  <nathan@codesourcery.com>
2596             Kazu Hirata  <kazu@codesourcery.com>
2597
2598         * gcc/config/m68k/linux.h
2599         (M68K_HONOR_TARGET_STRICT_ALIGNMENT): Redefine as 0.
2600         * config/m68k/m68k.c (TARGET_RETURN_IN_MEMORY): New.
2601         (m68k_return_in_memory): New.
2602         * gcc/config/m68k/m68k.h (M68K_HONOR_TARGET_STRICT_ALIGNMENT):
2603         New.
2604
2605 2007-08-28  Uros Bizjak  <ubizjak@gmail.com>
2606
2607         PR target/32661
2608         * simplify-rtx.c (simplify_binary_operation_1) [VEC_SELECT]:
2609         Simplify nested VEC_SELECT (with optional VEC_CONCAT operator as
2610         operand) when top VEC_SELECT extracts scalar element.
2611         * config/i386/sse.md (*vec_extract_v4si_mem): New pattern.
2612         (*vec_extract_v4sf_mem): Ditto.
2613
2614 2007-08-28  Jakub Jelinek  <jakub@redhat.com>
2615
2616         PR middle-end/32370
2617         * passes.c (init_optimization_passes): Move pass_df_finish
2618         after pass_postreload sublist.
2619
2620         PR rtl-optimization/33148
2621         * simplify-rtx.c (simplify_unary_operation_1): Only optimize
2622         (neg (lt X 0)) if X has scalar int mode.
2623
2624         PR debug/32914
2625         * dwarf2out.c (rtl_for_decl_init): If vector decl has CONSTRUCTOR
2626         initializer, use build_vector_from_ctor if possible to create
2627         VECTOR_CST out of it.  If vector initializer is not VECTOR_CST
2628         even after this, return NULL.
2629
2630 2007-08-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2631
2632         * c-pretty-print.c (pp_c_constant): Handle COMPLEX_CST.
2633
2634 2007-08-28  Richard Guenther  <rguenther@suse.de>
2635
2636         * tree.h (DECL_DISREGARD_INLINE_LIMITS): New.
2637         (struct tree_function_decl): Make function_code a bitfield.
2638         Add disregard_inline_limits flag.
2639         * cgraphunit.c (cgraph_process_new_functions): Check
2640         DECL_DISREGARD_INLINE_LIMITS instead of disregard_inline_limits_p.
2641         (cgraph_preserve_function_body_p): Likewise.
2642         * ipa-inline.c (compute_inline_parameters): Likewise.
2643         * c-decl.c (finish_function): Set DECL_DISREGARD_INLINE_LIMITS
2644         for GNU C extern inline functions.
2645         (merge_decls): Merge DECL_DISREGARD_INLINE_LIMITS.
2646         * tree-inline.c (disregard_inline_limits_p): Remove.
2647         * tree-inline.h (disregard_inline_limits_p): Likewise.
2648         * c-common.c (handle_always_inline_attribute): Set
2649         DECL_DISREGARD_INLINE_LIMITS.
2650         * langhooks.c (add_builtin_function): Verify the function code
2651         fits in the bitfield.
2652
2653 2007-08-28  Mircea Namolaru  <namolaru@il.ibm.com>
2654             Vladimir Yanovsky  <yanov@il.ibm.com>
2655             Revital Eres  <eres@il.ibm.com>
2656             Andrey Belevantsev  <abel@ispras.ru>
2657
2658         * config/spu/spu.md: Recognize doloop pattern when -fmodulo-sched
2659         is set.
2660         * modulo-sched.c: Add documentation regarding do-loop.
2661         (doloop_register_get): Change number of arguments to support
2662         the new do-loop pattern and check whether COUNT_REG has no other
2663         occurences in the loop besides in the control part.
2664         (duplicate_insns_of_cycles): Do not duplicate the insn which
2665         changes count_reg as it is already adjusted.
2666         (generate_prolog_epilog): New argument to support the new
2667         do-loop pattern.  Change the subtract instruction to use
2668         expand_simple_binop.  Call duplicate_insns_of_cycles with new
2669         argument.
2670         (sms_schedule): Call doloop_register_get and
2671         generate_prolog_epilog with new argument.  Do not handle loops
2672         with single sets insns with subreg in their lhs.
2673         * loop-doloop.c (doloop_optimize): Support for another do-loop
2674         pattern.
2675         (doloop_condition_get): Gets an instruction instead of a pattern
2676         and change the return condition when the do-loop pattern is
2677         not parallel.
2678         * ddg.c (create_ddg_dep_from_intra_loop_link): Handle only reg
2679         deps when considering to not create edges.
2680
2681 2007-08-27  Alexandre Oliva  <aoliva@redhat.com>
2682
2683         * doc/extend.texi (gnu_inline funtion attribute): Document C++
2684         behavior.
2685
2686 2007-08-27  Jason Merrill  <jason@redhat.com>
2687
2688         PR c++/31337
2689         * gimplify.c (gimplify_modify_expr): Discard the assignment of 
2690         zero-sized types after calling gimplify_modify_expr_rhs.
2691
2692 2007-08-27  Sandra Loosemore  <sandra@codesourcery.com>
2693
2694         * regclass.c (init_reg_autoinc): Fix typo.
2695
2696 2007-08-27  Daniel Berlin  <dberlin@dberlin.org>
2697         
2698         Fix PR tree-optimization/33173
2699         * tree-ssa-alias.c (find_used_portions): Fix reversed test.
2700
2701 2007-08-27  H.J. Lu  <hongjiu.lu@intel.com>
2702
2703         PR target/31385
2704         * config/i386/i386.h (VALID_DFP_MODE_P): New.
2705         * config/i386/i386.c (ix86_hard_regno_mode_ok): Allow DFP in
2706         GPR.
2707
2708 2007-08-27  Sandra Loosemore  <sandra@codesourcery.com>
2709             David Ung  <davidu@mips.com>
2710             Nigel Stephens <nigel@mips.com>
2711
2712         Separate target-specific initialization from general
2713         back-end initialization.
2714
2715         * toplev.c (init_alignments): New, split out from...
2716         (process_options): ...here.
2717         (backend_init_target): New, split out from...
2718         (backend_init): ...here.
2719         (lang_dependent_init_target): New, split out from...
2720         (lang_dependent_init): ...here.
2721         (target_reinit): New.
2722         * toplev.h (target_reinit): Declare.
2723         * expr.c (init_expr_target): Renamed from init_expr_once, since it
2724         now can be called more than once.  Update comments.
2725         * expr.h (init_expr_target): Likewise.
2726         * alias.c (init_alias_target): Renamed from init_alias_once, since it
2727         now can be called more than once.  Explicitly zero
2728         static_reg_base_value.
2729         * emit-rtl.c (init_emit_regs): New, split out from...
2730         (init_emit_once): Here.
2731         * regclass.c (initial_fixed_regs, initial_call_used_regs): Make
2732         non-const, so that changes from command-line arguments can overwrite
2733         values provided by the static initializers.
2734         (initial_call_really_used_regs): New, used similarly to the above.
2735         (initial_reg_names): Likewise.
2736         (last_mode_for_init_move_cost): Promoted function-local static to
2737         file-scope static to make it accessible outside init_move_cost.
2738         (init_reg_sets): Do not initialize fixed_regs and call_used_regs yet.
2739         Do not initialize inv_reg_alloc_order yet, either.  Do initialize
2740         reg_names since it is needed for parsing command-line options.
2741         (init_move_cost): Use last_mode_for_init_move_cost instead of
2742         function-local static.
2743         (init_reg_sets_1): Initialize fixed_regs, call_used_regs, and
2744         call_really_used_regs now.  Reinitialize reg_names.  Also
2745         initialize inv_reg_alloc_order.  Zero reg_class_subunion and
2746         reg_class_superunion.  Clear losing_caller_save_reg_set.
2747         Preserve global registers if called more than once.  Reset
2748         move cost, may_move_in_cost, may_move_out_cost, and
2749         last_mode_for_init_move_cost.
2750         (init_reg_modes_target): Renamed from init_reg_modes_once, since it
2751         can now be invoked more than once.  Update comments.
2752         (init_regs): Update comments.
2753         (fix_register): Update initial_fixed_regs, initial_call_used_regs,
2754         and initial_call_really_used_regs, instead of the non-initial 
2755         variables.  This allows us to save the command-line register settings
2756         after target reinitialization.
2757         (init_reg_autoinc): Zero forbidden_inc_dec_classes.
2758         * rtl.h (init_emit_regs): Declare.
2759         (init_reg_modes_target, init_alias_target): Renamed as described
2760         above.
2761         * reload1.c (init_reload): Update comments.
2762         * optabs.c (init_optabs): Likewise.
2763         * cfgloopanal.c (init_set_costs): Explicitly zero target_avail_regs.
2764         
2765 2007-08-26  Chao-ying Fu  <fu@mips.com>
2766
2767         * rtl.h (XCNMPFV): Preserve const-ness of parameters through use of
2768         __typeof().
2769
2770 2007-08-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2771
2772         * alias.c (memory_modified_1, memory_modified_in_insn_p):
2773         Constify.
2774         * basic-block.h (tree_predicted_by_p, rtl_predicted_by_p):
2775         Likewise.
2776         * bb-reorder.c (copy_bb_p): Likewise.
2777         * cfghooks.c (can_remove_branch_p, can_merge_blocks_p,
2778         predicted_by_p, can_duplicate_block_p, block_ends_with_call_p,
2779         block_ends_with_condjump_p): Likewise.
2780         * cfghooks.h (can_remove_branch_p, can_merge_blocks_p,
2781         predicted_by_p, can_duplicate_block_p, block_ends_with_call_p,
2782         block_ends_with_condjump_p): Likewise.
2783         * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
2784         * cfgrtl.c (can_delete_note_p, can_delete_label_p,
2785         rtl_can_merge_blocks, cfg_layout_can_merge_blocks_p,
2786         rtl_block_ends_with_call_p, rtl_block_ends_with_condjump_p,
2787         need_fake_edge_p, rtl_can_remove_branch_p): Likewise.
2788         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Use
2789         debug_true_const_tree instad of debug_true_tree.
2790         * debug.c (do_nothing_debug_hooks): Likewise.
2791         * debug.h (ignore_block, debug_true_const_tree): Constify.
2792         * dwarf2out.c (stack_adjust_offset, clobbers_queued_reg_save,
2793         dwarf2out_ignore_block, is_pseudo_reg, is_tagged_type,
2794         decl_ultimate_origin, block_ultimate_origin, lookup_decl_loc,
2795         same_dw_val_p, add_ranges, is_subrange_type, type_is_enum,
2796         dbx_reg_number, is_based_loc, field_type,
2797         simple_type_align_in_bits, simple_decl_align_in_bits,
2798         simple_type_size_in_bits, field_byte_offset, insert_float,
2799         type_tag, member_declared_type, is_redundant_typedef,
2800         secname_for_decl, is_inlined_entry_point): Likewise.
2801         * emit-rtl.c (const_next_insn, const_previous_insn,
2802         const_next_nonnote_insn, const_prev_nonnote_insn,
2803         const_next_real_insn, const_prev_real_insn,
2804         const_next_active_insn, const_prev_active_insn, const_next_label,
2805         const_prev_label): Likewise.
2806         * except.h (lookup_stmt_eh_region_fn, lookup_stmt_eh_region):
2807         Likewise.
2808         * haifa-sched.c (may_trap_exp, haifa_classify_insn,
2809         find_set_reg_weight, no_real_insns_p, find_set_reg_weight,
2810         sched_insn_is_legitimate_for_speculation_p): Likewise.
2811         * jump.c (reversed_comparison_code_parts,
2812         reversed_comparison_code, reversed_comparison, condjump_label):
2813         Likewise.
2814         * predict.c (rtl_predicted_by_p, tree_predicted_by_p): Likewise.
2815         * reg-stack.c (stack_regs_mentioned_p, stack_regs_mentioned):
2816         Likewise.
2817         * rtl.h (const_previous_insn, const_next_insn,
2818         const_prev_nonnote_insn, const_next_nonnote_insn,
2819         const_prev_real_insn, const_next_real_insn,
2820         const_prev_active_insn, const_next_active_insn, const_prev_label,
2821         const_next_label, modified_between_p, modified_in_p,
2822         const_note_storeskeep_with_call_p, condjump_label,
2823         reversed_comparison, reversed_comparison_code,
2824         reversed_comparison_code_parts, memory_modified_in_insn_p,
2825         stack_regs_mentioned): Likewise.
2826         * rtlanal.c (modified_between_p, modified_in_p, const_note_stores,
2827         keep_with_call_p): Likewise.
2828         * sched-deps.c (deps_may_trap_p, sched_get_condition,
2829         conditions_mutex_p, sched_insns_conditions_mutex_psd_next_list,
2830         sd_lists_size, sd_lists_empty_p): Likewise.
2831         * sched-int.h (sched_insns_conditions_mutex_p,
2832         haifa_classify_insn, no_real_insns_p,
2833         sched_insn_is_legitimate_for_speculation_p, sd_next_list,
2834         sd_lists_size, sd_lists_empty_p): Likewise.
2835         * sdbout.c (sdb_debug_hooks): Likewise.
2836         * tree-cfg.c (tree_can_merge_blocks_p, is_ctrl_altering_stmt,
2837         stmt_ends_bb_p, tree_can_remove_branch_p, tree_can_duplicate_bb_p,
2838         -tree_block_ends_with_call_p, tree_block_ends_with_condjump_p):
2839         Likewise.
2840         * tree-eh.c (lookup_stmt_eh_region_fn, lookup_stmt_eh_region,
2841         tree_can_throw_internal): Likewise.
2842         * tree-flow-inline.h (phi_nodes): Likewise.
2843         * tree-flow.h (phi_nodesstmt_ends_bb_p, is_ctrl_altering_stmt,
2844         tree_can_throw_internal, lookup_stmt_eh_region): Likewise.
2845         * tree-gimple.c (const_get_call_expr_in): Likewise.
2846         * tree-gimple.h (const_get_call_expr_in): Likewise.
2847         * tree.c (const_lookup_attribute, attribute_list_equal,
2848         attribute_list_contained): Likewise.
2849         * tree.h (attribute_list_equal, attribute_list_contained,
2850         const_lookup_attribute): Likewise.
2851         * vmsdbgout.c (vmsdbgout_ignore_block): Likewise.
2852
2853 2007-08-26  Bernhard Fischer  <aldot@gcc.gnu.org>
2854
2855         * tree-ssa-sccvn.c, tree-ssa-sccvn.h, tree-vn.c,
2856         tree-ssa-pre.c: Remove unnecessary trailing whitespace.
2857
2858 2007-08-26  H.J. Lu  <hongjiu.lu@intel.com>
2859
2860         PR target/32991
2861         * config/alpha/constraints.md: Delete "svn:mime-type" property
2862         with svn propdel "svn:mime-type".
2863
2864 2007-08-26  H.J. Lu  <hongjiu.lu@intel.com>
2865
2866         PR middle-end/33181
2867         * ifcvt.c (noce_get_alt_condition): Make sure that the previous
2868         non NOTE insn doesn't cross basic block.
2869         (noce_try_abs): Likewise.
2870         (noce_process_if_block): Likewise.
2871
2872 2007-08-26  David Edelsohn  <edelsohn@gnu.org>
2873
2874         PR target/33151
2875         * config/rs6000/predicates.md (offsettable_mem_operand): Memory
2876         operand without auto-inc-dec.
2877         * config/rs6000/rs6000.md (floatsidf2_internal): Use
2878         offsettable_mem_operand.
2879         (floatunssidf2_internal): Same.
2880         (fix_truncdfsi2_internal): Same.
2881         (floatsidf_ppc64): Same.
2882         (floatunssidf_ppc64): Same.
2883         (fix_trunctfsi2_internal): Same.
2884
2885 2007-08-26  Bernhard Fischer  <aldot@gcc.gnu.org>
2886
2887         PR bootstrap/30620
2888         * Makefile.in (libbackend.o): Add gcov-iov.h dependency and
2889         pass defines needed for version.c.
2890
2891 2007-08-25  Joseph Myers  <joseph@codesourcery.com>
2892
2893         * configure.ac (--debug-prefix-map check): Change assembler
2894         version presumed to have feature to 2.18.
2895         * configure: Regenerate.
2896
2897 2007-08-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2898
2899         * c-common.c (vector_types_convertible_p,
2900         decl_with_nonnull_addr_p, c_promoting_integer_type_p,
2901         self_promoting_args_p): Constify.
2902         * c-common.h (has_c_linkage, decl_with_nonnull_addr_p,
2903         c_promoting_integer_type_p, self_promoting_args_p,
2904         anon_aggr_type_p, vector_types_convertible_p): Likewise.
2905         * c-decl.c (anon_aggr_type_p): Likewise.
2906         * * c-dump.c (dump_stmt): Likewise.
2907         * c-objc-common.c (has_c_linkage): Likewise.
2908         * c-tree.h (same_translation_unit_p): Likewise.
2909         * c-typeck.c (null_pointer_constant_p,
2910         tagged_types_tu_compatible_p, function_types_compatible_p,
2911         type_lists_compatible_p, lvalue_or_else, lvalue_p,
2912         comptypes_internal, struct tagged_tu_seen_cache,
2913         same_translation_unit_p, alloc_tagged_tu_seen_cache,
2914         c_size_in_bytes): Likewise.
2915         * ggc-common.c (compare_ptr_data, hash_descriptor, eq_descriptor,
2916         hash_ptr, eq_ptr): Likewise.
2917         * langhooks-def.h (lhd_decl_ok_for_sibcall,
2918         LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE): Likewise.
2919         * langhooks.c (lhd_decl_ok_for_sibcall): Likewise.
2920         * langhooks.h (ok_for_sibcall, omp_privatize_by_reference):
2921         Likewise.
2922         * optabs.c (optab_for_tree_code): Likewise.
2923         * optabs.h (optab_for_tree_code): Likewise.
2924         * rtl.h (simplify_rtx): Likewise.
2925         * simplify-rtx.c (simplify_rtx): Likewise.
2926         * tree-dump.c (queue, queue_and_dump_index, queue_and_dump_type,
2927         dump_flag, dump_node): Likewise.
2928         * tree-dump.h (struct dump_info, dump_stmt, queue_and_dump_index,
2929         queue_and_dump_type, dump_flag): Likewise.
2930         * tree-flow.h (vect_can_force_dr_alignment_p): Likewise.
2931         * tree-pass.h (dump_node): Likewise.
2932         * tree-vectorizer.c (vect_can_force_dr_alignment_p,
2933         supportable_narrowing_operation): Likewise.
2934         * tree-vectorizer.h (vect_can_force_dr_alignment_p,
2935         supportable_narrowing_operation): Likewise.
2936         * tree-vrp.c (needs_overflow_infinity, supports_overflow_infinity,
2937         is_negative_overflow_infinity, is_positive_overflow_infinity,
2938         is_overflow_infinity, vrp_val_is_max, vrp_val_is_min,
2939         nonnull_arg_p, get_value_range, vrp_operand_equal_p,
2940         update_value_range, add_equivalence, ssa_name_nonnegative_p,
2941         ssa_name_nonzero_p, fp_predicate): Likewise.
2942         * tree.c (auto_var_in_fn_p, empty_body_p): Likewise.
2943         * tree.h (empty_body_p, auto_var_in_fn_p, ssa_name_nonzero_p,
2944         ssa_name_nonnegative_p): Likewise.
2945
2946 2007-08-25  Hans Kester  <hans.kester@ellips.nl>
2947
2948         * config.gcc : Add x86_64-elf target.
2949
2950 2007-08-25  Jakub Jelinek  <jakub@redhat.com>
2951
2952         * expr.c (store_expr): Fix order of store_by_pieces arguments.
2953
2954 2007-08-24  Sandra Loosemore  <sandra@codesourcery.com>
2955             Nigel Stephens <nigel@mips.com>
2956
2957         PR target/11787
2958
2959         * doc/tm.texi (SET_RATIO, SET_BY_PIECES_P): Document new macros.
2960         (STORE_BY_PIECES_P): No longer applies to __builtin_memset.
2961         * expr.c (SET_BY_PIECES_P): Define.
2962         (can_store_by_pieces, store_by_pieces): Add MEMSETP argument; use
2963         it to decide whether to use SET_BY_PIECES_P or STORE_BY_PIECES_P.
2964         (store_expr): Pass MEMSETP argument to can_store_by_pieces and
2965         store_by_pieces.
2966         * expr.h (SET_RATIO): Define.
2967         (can_store_by_pieces, store_by_pieces): Update prototypes.
2968         * builtins.c (expand_builtin_memcpy): Pass MEMSETP argument to
2969         can_store_by_pieces/store_by_pieces.
2970         (expand_builtin_memcpy_args): Likewise.
2971         (expand_builtin_strncpy): Likewise.
2972         (expand_builtin_memset_args): Likewise.  Also remove special case
2973         for optimize_size so that can_store_by_pieces/SET_BY_PIECES_P can
2974         decide what to do instead.
2975         * value-prof.c (tree_stringops_transform): Pass MEMSETP argument
2976         to can_store_by_pieces.
2977
2978         * config/sh/sh.h (SET_BY_PIECES_P): Clone from STORE_BY_PIECES_P.
2979         * config/s390/s390.h (SET_BY_PIECES_P): Likewise.
2980
2981         * config/mips/mips.opt (mmemcpy): Change from Var to Mask.
2982         * config/mips/mips.c (override_options): Make -Os default to -mmemcpy.
2983         * config/mips/mips.h (MIPS_CALL_RATIO): Define.
2984         (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Define.
2985         (STORE_BY_PIECES_P): Define.
2986
2987 2007-08-24  Tom Tromey  <tromey@redhat.com>
2988
2989         * varpool.c (varpool_last_needed_node): Fix comment typo.
2990         * c-decl.c (duplicate_decls): Fix comment typo.
2991         (clone_underlying_type): Update comment.
2992
2993 2007-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2994
2995         * config/alpha/alpha.c (alpha_mangle_type, decl_has_samegp,
2996         alpha_in_small_data_p, alpha_split_complex_arg,
2997         alpha_stdarg_optimize_hook, TARGET_ASM_CAN_OUTPUT_MI_THUNK):
2998         Constify.
2999         * config/arm/arm-protos.h (arm_mangle_type): Likewise.
3000         * config/arm/arm.c (arm_comp_type_attributes, arm_mangle_type):
3001         Likewise.
3002         * config/bfin/bfin.c (funkind, bfin_comp_type_attributes,
3003         TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3004         * config/darwin-protos.h (darwin_binds_local_p): Likewise.
3005         * config/darwin.c (darwin_binds_local_p): Likewise.
3006         * config/frv/frv.c (frv_string_begins_with, frv_in_small_data_p):
3007         Likewise.
3008         * config/i386/i386-protos.h (i386_pe_binds_local_p,
3009         i386_pe_valid_dllimport_attribute_p): Likewise.
3010         * config/i386/i386.c (ix86_function_regparm,
3011         ix86_comp_type_attributes, ix86_ms_bitfield_layout_p,
3012         x86_can_output_mi_thunk, ix86_mangle_type,
3013         TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
3014         * config/i386/winnt.c (i386_pe_valid_dllimport_attribute_p,
3015         i386_pe_binds_local_p): Likewise.
3016         * config/ia64/ia64.c
3017         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec,
3018         ia64_needs_block_p, ia64_in_small_data_p, ia64_mangle_type,
3019         ia64_invalid_conversion, ia64_invalid_unary_op,
3020         ia64_invalid_binary_op, TARGET_ASM_CAN_OUTPUT_MI_THUNK):
3021         Likewise.
3022         * config/m32c/m32c.c (m32c_comp_type_attributes): Likewise.
3023         * config/m32r/m32r.c (m32r_in_small_data_p): Likewise.
3024         * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3025         * config/mips/mips.c (mips_use_blocks_for_constant_p,
3026         mips_in_small_data_p, mips_use_anchors_for_symbol_p,
3027         mips_comp_type_attributes, TARGET_ASM_CAN_OUTPUT_MI_THUNK,
3028         mips_near_type_p, mips_far_type_p, mips_global_symbol_p,
3029         mips_symbol_binds_local_p, mips_classify_symbol): Likewise.
3030         * config/pa/pa.c (pa_commutative_p): Likewise.
3031         * config/rs6000/rs6000-protos.h (rs6000_elf_in_small_data_p):
3032         Likewise.
3033         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop,
3034         rs6000_ms_bitfield_layout_p, rs6000_mangle_type,
3035         rs6000_use_blocks_for_constant_p,
3036         rs6000_vector_alignment_reachable, rs6000_is_opaque_type,
3037         invalid_arg_for_unprototyped_fn, TARGET_ASM_CAN_OUTPUT_MI_THUNK,
3038         TARGET_SPLIT_COMPLEX_ARG, rs6000_elf_in_small_data_p): Likewise.
3039         * config/s390/s390.c (s390_mangle_type,
3040         TARGET_ASM_CAN_OUTPUT_MI_THUNK, TARGET_INVALID_WITHIN_DOLOOP):
3041         Likewise.
3042         * config/score/score.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK,
3043         th_in_small_data_p): Likewise.
3044         * config/sh/sh.c (sh_ms_bitfield_layout_p,
3045         sh_dwarf_calling_convention, TARGET_ASM_CAN_OUTPUT_MI_THUNK):
3046         Likewise.
3047         * config/sparc/sparc.c (sparc_can_output_mi_thunk,
3048         sparc_mangle_type): Likewise.
3049         * config/spu/spu.c (spu_vector_alignment_reachable): Likewise.
3050         * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): Likewise.
3051         * emit-rtl.c (const_fixed_htab_hash, const_fixed_htab_eq):
3052         Likewise.
3053         * hooks.c (hook_bool_mode_const_rtx_false,
3054         hook_bool_mode_const_rtx_true,
3055         hook_bool_const_tree_hwi_hwi_const_tree_false,
3056         hook_bool_const_tree_hwi_hwi_const_tree_true,
3057         hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
3058         hook_constcharptr_const_tree_null,
3059         hook_constcharptr_const_rtx_null,
3060         hook_constcharptr_const_tree_const_tree_null,
3061         hook_constcharptr_int_const_tree_null,
3062         hook_constcharptr_int_const_tree_const_tree_null): New.
3063         (hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
3064         hook_bool_tree_hwi_hwi_tree_false,
3065         hook_bool_tree_hwi_hwi_tree_true, hook_int_tree_0,
3066         hook_int_tree_tree_1, hook_constcharptr_tree_null,
3067         hook_constcharptr_rtx_null, hook_constcharptr_tree_tree_null,
3068         hook_constcharptr_int_tree_null,
3069         hook_constcharptr_int_tree_tree_null): Delete.
3070         (default_can_output_mi_thunk_no_vcall): Constify.
3071         * hooks.h (hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
3072         hook_bool_tree_hwi_hwi_tree_false,
3073         hook_bool_tree_hwi_hwi_tree_true, hook_int_tree_0,
3074         hook_int_tree_tree_1, hook_constcharptr_tree_null,
3075         hook_constcharptr_rtx_null, hook_constcharptr_tree_tree_null,
3076         hook_constcharptr_int_tree_null,
3077         hook_constcharptr_int_tree_tree_null): Delete.
3078         (hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
3079         hook_bool_const_tree_hwi_hwi_const_tree_false,
3080         hook_bool_const_tree_hwi_hwi_const_tree_true,
3081         hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
3082         hook_constcharptr_const_tree_null,
3083         hook_constcharptr_const_rtx_null,
3084         hook_constcharptr_const_tree_const_tree_null,
3085         hook_constcharptr_int_const_tree_null,
3086         hook_constcharptr_int_const_tree_const_tree_null): New.
3087         (default_can_output_mi_thunk_no_vcall): Constify.
3088         * integrate.c (function_attribute_inlinable_p): Likewise.
3089         * integrate.h (function_attribute_inlinable_p): Likewise.
3090         * jump.c (rtx_renumbered_equal_p): Likewise.
3091         * output.h (decl_readonly_section, categorize_decl_for_section,
3092         default_use_anchors_for_symbol_p, default_binds_local_p,
3093         default_binds_local_p_1): Likewise.
3094         * rtl.h (rtx_renumbered_equal_p, decl_default_tls_model):
3095         Likewise.
3096         * target-def.h (TARGET_ASM_CAN_OUTPUT_MI_THUNK,
3097         TARGET_VALID_DLLIMPORT_ATTRIBUTE_P, TARGET_VECTOR_OPAQUE_P,
3098         TARGET_COMMUTATIVE_P, TARGET_USE_BLOCKS_FOR_CONSTANT_P,
3099         TARGET_COMP_TYPE_ATTRIBUTES,
3100         TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P,
3101         TARGET_MS_BITFIELD_LAYOUT_P, TARGET_MANGLE_TYPE,
3102         TARGET_IN_SMALL_DATA_P, TARGET_INVALID_CONVERSION,
3103         TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP,
3104         TARGET_DWARF_CALLING_CONVENTION): Likewise.
3105         * target.h (can_output_mi_thunk, needs_block_p,
3106         first_cycle_multipass_dfa_lookahead_guard_spec,
3107         vector_alignment_reachable, comp_type_attributes,
3108         function_attribute_inlinable_p, ms_bitfield_layout_p, mangle_type,
3109         commutative_p, use_blocks_for_constant_p,
3110         use_anchors_for_symbol_p, in_small_data_p, binds_local_p,
3111         vector_opaque_p, dwarf_calling_convention, stdarg_optimize_hook,
3112         invalid_within_doloop, valid_dllimport_attribute_p,
3113         split_complex_arg, invalid_arg_for_unprototyped_fn,
3114         invalid_conversion, invalid_unary_op, invalid_binary_op):
3115         Likewise.
3116         * targhooks.c (default_invalid_within_doloop,
3117         hook_invalid_arg_for_unprototyped_fn,
3118         default_builtin_vector_alignment_reachable): Likewise.
3119         (hook_bool_rtx_commutative_p): Delete.
3120         (hook_bool_const_rtx_commutative_p): New.
3121         * targhooks.h (default_invalid_within_doloop,
3122         default_builtin_vector_alignment_reachable,
3123         hook_invalid_arg_for_unprototyped_fn): Constify.
3124         (hook_bool_rtx_commutative_p): Delete.
3125         (hook_bool_const_rtx_commutative_p): New.
3126         * varasm.c (bss_initializer_p, decl_default_tls_model,
3127         categorize_decl_for_section, decl_readonly_section,
3128         default_use_anchors_for_symbol_p, default_binds_local_p,
3129         default_binds_local_p_1): Constify.
3130
3131 2007-08-24  Jie Zhang  <jie.zhang@analog.com>
3132
3133         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
3134         __NO_BUILTIN if -fno-builtin.
3135
3136 2007-08-24  Jie Zhang  <jie.zhang@analog.com>
3137
3138         * config/bfin/bfin.c (print_operand): Report error instead of
3139         ICE for wrong operand.
3140
3141 2007-08-24  Michael Matz  <matz@suse.de>
3142
3143         * Makefile.in (GTFILES_H): Use $(patsubst) instead of $(subst).
3144
3145 2007-08-24  Richard Guenther  <rguenther@suse.de>
3146
3147         PR middle-end/33166
3148         * tree-ssa.c (useless_type_conversion_p): Split into a
3149         recursive and a non-recursive part.
3150         (useless_type_conversion_p_1): New function.
3151         * tree-ssa-ccp.c (fold_stmt_r): Make sure that the result
3152         from maybe_fold_offset_to_reference is trivially convertible
3153         to the desired type before doing the simplification.
3154
3155 2007-08-24  Jakub Jelinek  <jakub@redhat.com>
3156
3157         * expr.c (store_expr): Optimize initialization of an array
3158         with STRING_CST.
3159         * expr.h (builtin_strncpy_read_str): New prototype.
3160         * builtins.c (builtin_strncpy_read_str): Remove prototype.
3161         No longer static.
3162
3163 2007-08-24  Uros Bizjak  <ubizjak@gmail.com>
3164
3165         PR middle-end/33157
3166         * ifcvt.c (noce_find_if_block): Do not clear if_info.cond_earliest
3167         field when initializing if_info structure.
3168
3169 2007-08-24  Richard Guenther  <rguenther@suse.de>
3170
3171         * Makefile.in (tree-inline.o): Add $(TARGET_H) and $(INTEGRATE_H)
3172         dependencies.
3173         * c-objc-common.c (c_cannot_inline_tree_fn): Remove.
3174         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Likewise.
3175         * tree-inline.c (inlinable_function_p): Fold in common parts of
3176         the cannot_inline_tree_fn langhook.
3177         * langhooks-def.h (lhd_tree_inlining_cannot_inline_tree_fn): Remove.
3178         (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN): Likewise.
3179         (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
3180         cannot_inline_tree_fn langhook.
3181         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
3182         cannot_inline_tree_fn member.
3183
3184 2007-08-24  Richard Guenther  <rguenther@suse.de>
3185
3186         * expr.c (get_inner_reference): Do computation of bitoffset
3187         from offset in a way we can detect overflow reliably.
3188
3189 2007-08-24  Jie Zhang  <jie.zhang@analog.com>
3190
3191         * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define for uClibc.
3192
3193 2007-08-24  Jie Zhang  <jie.zhang@analog.com>
3194
3195         * config/bfin/bfin.opt (mfast-fp): Add.
3196         * config/bfin/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Let
3197         libbffastfp override libgcc if -mfast-fp.
3198         * config/bfin/bfin.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3199         * doc/invoke.texi (Option Summary): Mention -mfast-fp.
3200         (Blackfin Options): Document -mfast-fp.
3201
3202 2007-08-24  Jakub Jelinek  <jakub@redhat.com>
3203
3204         PR tree-optimization/32573
3205         PR middle-end/32946
3206         * tree-data-ref.c (initialize_data_dependence_relation): Clear
3207         DDR_SUBSCRIPTS, DDR_DIR_VECTS and DDR_DIST_VECTS at the beginning.
3208         (finalize_ddr_dependent): Clear DDR_SUBSCRIPTS after freeing it.
3209         (build_classic_dist_vector): Return false rather than true if
3210         DDR_ARE_DEPENDENT is non-NULL at the beginning.  Return false
3211         if either subscript_dependence_tester_1 or build_classic_dist_vector_1
3212         returned false.  Don't call save_dist_v before calling
3213         build_classic_dist_vector_1.
3214         (free_dependence_relation): Don't guard freeing DDR_SUBSCRIPTS
3215         with NULL DDR_ARE_DEPENDENT.  Also free DDR_DIST_VECTS and/or
3216         DDR_DIR_VECTS vectors.
3217
3218 2007-08-23  Brian Sidebotham  <brian.sidebotham@gmail.com>
3219
3220         * configure.ac (leb128): Modify sed statement to work with any
3221         binutils version string.
3222         * configure: Regenerate
3223
3224 2007-08-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3225
3226         * config/arc/arc-protos.h arc_select_cc_mode, gen_compare_reg):
3227         Wrap in RTX_CODE macro guard.
3228         * config/arm/pe.c (arm_dllexport_p, arm_dllimport_p,
3229         arm_dllexport_name_p, arm_dllimport_name_p, arm_mark_dllexport,
3230         arm_mark_dllimport, arm_pe_encode_section_info,
3231         arm_pe_unique_section): Use ISO-C function declarations.
3232         * config/c4x/c4x-c.c (c4x_parse_pragma, c4x_pr_CODE_SECTION,
3233         c4x_pr_DATA_SECTION, c4x_pr_FUNC_IS_PURE,
3234         c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT, c4x_pr_ignored):
3235         Likewise.
3236         * config/iq2000/iq2000.h (ASM_OUTPUT_SKIP): Fix format warning.
3237         * config/m68hc11/m68hc11.h (ASM_OUTPUT_EXTERNAL): Undef before
3238         defining.
3239         * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Fix format
3240         warnings.
3241         * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Likewise.
3242         * config/pdp11/pdp11.c (pdp11_output_function_epilogue): Likewise.
3243         (register_move_cost): Use ISO-C function declarations.
3244         * config/pdp11/pdp11.h (PRINT_OPERAND): Fix format warnings.
3245         * config/score/score-protos.h (score_declare_object): Add
3246         ATTRIBUTE_PRINTF_4.
3247         * config/score/score.h (ASM_DECLARE_OBJECT_NAME): Fix format
3248         warnings.
3249         * final.c (profile_function): Avoid empty if-bodies.
3250         
3251         
3252         * calls.c (must_pass_in_stack_var_size,
3253         must_pass_in_stack_var_size_or_pad): Constify.
3254         * config/alpha/alpha-protos.h (function_value): Likewise.
3255         * config/alpha/alpha.c (alpha_return_in_memory,
3256         alpha_pass_by_reference, function_value,
3257         unicosmk_must_pass_in_stack, TARGET_PROMOTE_FUNCTION_ARGS,
3258         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
3259         Likewise.
3260         * config/arc/arc.c (arc_return_in_memory, arc_pass_by_reference,
3261         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
3262         TARGET_PROMOTE_PROTOTYPES): Likewise.
3263         * config/arm/arm-protos.h (arm_return_in_memory,
3264         arm_pad_arg_upward, arm_function_value): Likewise.
3265         * config/arm/arm.c (arm_pass_by_reference,
3266         arm_promote_prototypes, arm_return_in_msb, arm_must_pass_in_stack,
3267         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
3268         arm_function_value, arm_return_in_memory, arm_pad_arg_upward):
3269         Likewise.
3270         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
3271         * config/avr/avr-protos.h (avr_function_value): Likewise.
3272         * config/avr/avr.c (avr_return_in_memory,
3273         gas_output_limited_string, gas_output_ascii, avr_function_value,
3274         avr_return_in_memory): Likewise.
3275         * config/bfin/bfin-protos.h (bfin_return_in_memory): Likewise.
3276         * config/bfin/bfin.c (bfin_pass_by_reference,
3277         bfin_return_in_memory, TARGET_PROMOTE_PROTOTYPES,
3278         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN):
3279         Likewise.
3280         * config/cris/cris.c (cris_pass_by_reference,
3281         TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
3282         * config/crx/crx.c (crx_return_in_memory): Likewise.
3283         * config/darwin.c (function_base, machopic_function_base_name):
3284         Likewise.
3285         * config/fr30/fr30.c (fr30_must_pass_in_stack,
3286         TARGET_PROMOTE_PROTOTYPES): Likewise.
3287         * config/frv/frv.c (frv_must_pass_in_stack): Likewise.
3288         * config/h8300/h8300.c (h8300_return_in_memory): Likewise.
3289         * config/i386/i386-protos.h (ix86_return_in_memory,
3290         ix86_sol10_return_in_memory): Likewise.
3291         * config/i386/i386.c (ix86_function_value,
3292         ix86_function_sseregparm, ix86_must_pass_in_stack,
3293         type_natural_mode, classify_argument, examine_argument,
3294         construct_container, ix86_pass_by_reference, function_value_32,
3295         function_value_64, ix86_function_value_1, return_in_memory_32,
3296         return_in_memory_64, return_in_memory_ms_64,
3297         ix86_return_in_memory, ix86_sol10_return_in_memory,
3298         TARGET_PROMOTE_PROTOTYPES): Likewise.
3299         * config/ia64/ia64-protos.h (ia64_function_value,
3300         ia64_hpux_function_arg_padding): Likewise.
3301         * config/ia64/ia64.c (hfa_element_mode, ia64_return_in_memory,
3302         ia64_function_value, bundle_state_hash, bundle_state_eq_p,
3303         ia64_hpux_function_arg_padding): Likewise.
3304         * config/iq2000/iq2000-protos.h (function_arg,
3305         iq2000_function_value): Likewise.
3306         * config/iq2000/iq2000.c (iq2000_return_in_memory,
3307         iq2000_pass_by_reference, TARGET_PROMOTE_FUNCTION_ARGS,
3308         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
3309         function_arg, iq2000_function_value): Likewise.
3310         * config/m32c/m32c-protos.h (m32c_function_value,
3311         m32c_promote_function_return): Likewise.
3312         * config/m32c/m32c.c (m32c_pass_by_reference,
3313         m32c_promote_prototypes, m32c_promote_function_return,
3314         m32c_function_value): Likewise.
3315         * config/m32r/m32r.c (m32r_return_in_memory,
3316         m32r_pass_by_reference, TARGET_PROMOTE_PROTOTYPES,
3317         m32r_in_small_data_p): Likewise.
3318         * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg_padding):
3319         Likewise.
3320         * config/m68hc11/m68hc11.c (m68hc11_return_in_memory,
3321         m68hc11_function_arg_padding): Likewise.
3322         * config/m68k/m68k-protos.h (m68k_function_value): Likewise.
3323         * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES,
3324         m68k_function_value): Likewise.
3325         * config/mcore/mcore-protos.h (mcore_num_arg_regs,
3326         mcore_function_value): Likewise.
3327         * config/mcore/mcore.c (handle_structs_in_regs,
3328         mcore_return_in_memory, TARGET_PROMOTE_FUNCTION_ARGS,
3329         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
3330         mcore_num_arg_regs, mcore_function_value): Likewise.
3331         * config/mips/mips-protos.h (mips_pad_arg_upward,
3332         mips_function_value): Likewise.
3333         * config/mips/mips.c (mips_fpr_return_fields, mips_return_in_msb,
3334         mips_return_in_memory, mips_pass_by_reference, mips_callee_copies,
3335         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
3336         TARGET_PROMOTE_PROTOTYPES, mips_pad_arg_upward,
3337         mips_function_value): Likewise.
3338         * config/mmix/mmix-protos.h (mmix_function_outgoing_value):
3339         Likewise.
3340         * config/mmix/mmix.c (mmix_pass_by_reference,
3341         TARGET_PROMOTE_FUNCTION_ARGS, mmix_function_outgoing_value,
3342         mmix_encode_section_info): Likewise.
3343         * config/mn10300/mn10300-protos.h (mn10300_function_value):
3344         Likewise.
3345         * config/mn10300/mn10300.c (mn10300_return_in_memory,
3346         mn10300_pass_by_reference, TARGET_PROMOTE_PROTOTYPES,
3347         mn10300_function_value): Likewise.
3348         * config/mt/mt-protos.h (mt_function_value): Likewise.
3349         * config/mt/mt.c (mt_pass_by_reference, mt_function_value,
3350         mt_pass_in_stack, TARGET_PROMOTE_PROTOTYPES): Likewise.
3351         * config/pa/pa-protos.h (function_arg_padding, function_value,
3352         pa_return_in_memory): Likewise.
3353         * config/pa/pa.c (pa_pass_by_reference,
3354         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
3355         function_arg_padding, function_value, pa_return_in_memory):
3356         Likewise.
3357         * config/pdp11/pdp11.c (pdp11_return_in_memory): Likewise.
3358         * config/rs6000/rs6000-protos.h (rs6000_function_value,
3359         function_arg_padding): Likewise.
3360         * config/rs6000/rs6000.c (rs6000_return_in_memory,
3361         rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
3362         rs6000_pass_by_reference, rs6000_must_pass_in_stack,
3363         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
3364         function_arg_padding, altivec_expand_dst_builtin,
3365         altivec_expand_builtin, rs6000_expand_builtin, spe_init_builtins,
3366         altivec_init_builtins, rs6000_common_init_builtins,
3367         rs6000_function_value): Likewise.
3368         * s390/s390-protos.h (s390_function_value): Likewise.
3369         * config/s390/s390.c (s390_function_arg_size,
3370         s390_pass_by_reference, s390_return_in_memory,
3371         s390_function_value, TARGET_PROMOTE_FUNCTION_ARGS,
3372         TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
3373         * config/score/score-protos.h (score_function_value): Likewise.
3374         * config/score/score.c (score_arg_partial_bytes,
3375         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
3376         TARGET_PROMOTE_PROTOTYPES, score_return_in_memory,
3377         score_pass_by_reference, score_add_offset, score_function_value):
3378         Likewise.
3379         * config/sh/sh-protos.h (sh_attr_renesas_p,
3380         sh_promote_prototypes): Likewise.
3381         * config/sh/sh.c (sh_return_in_memory, sh_pass_by_reference,
3382         sh_callee_copies, sh_promote_prototypes, shcompact_byref,
3383         sh_attr_renesas_p): Likewise.
3384         * config/sparc/sparc-protos.h (function_value,
3385         function_arg_padding): Likewise.
3386         * config/sparc/sparc.c (sparc_promote_prototypes,
3387         sparc_return_in_memory, sparc_pass_by_reference,
3388         TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
3389         function_arg_record_value_2, function_arg_record_value_1,
3390         function_arg_record_value, function_arg_record_value,
3391         function_arg_padding, function_value): Likewise.
3392         * config/spu/spu-protos.h (spu_function_value): Likewise.
3393         * config/spu/spu.c (spu_pass_by_reference, spu_return_in_memory,
3394         spu_function_value): Likewise.
3395         * config/stormy16/stormy16-protos.h (xstormy16_function_value):
3396         Likewise.
3397         * config/stormy16/stormy16.c (xstormy16_return_in_memory,
3398         xstormy16_function_value, TARGET_PROMOTE_FUNCTION_ARGS,
3399         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
3400         Likewise.
3401         * config/v850/v850.c (v850_return_in_memory,
3402         v850_pass_by_reference, TARGET_PROMOTE_PROTOTYPES): Likewise.
3403         * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): Likewise.
3404         * config/xtensa/xtensa.c (xtensa_return_in_msb,
3405         xtensa_return_in_memory, TARGET_PROMOTE_FUNCTION_ARGS,
3406         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
3407         Likewise.
3408         * explow.c (promote_mode, hard_function_value): Likewise.
3409         * expr.h (hard_function_value, promote_mode): Likewise.
3410         * function.c (aggregate_value_p): Likewise.
3411         * hooks.c (hook_bool_const_tree_true): New.
3412         * hooks.h (hook_bool_const_tree_true): New.
3413         * sdbout.c (SET_KNOWN_TYPE_TAG, plain_type_1): Constify.
3414         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
3415         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
3416         TARGET_RETURN_IN_MSB): Likewise.
3417         * target.h (promote_function_args, promote_function_return,
3418         promote_prototypes, return_in_memory, return_in_msb,
3419         pass_by_reference, must_pass_in_stack, callee_copies,
3420         function_value): Likewise.
3421         * targhooks.c (default_return_in_memory,
3422         hook_pass_by_reference_must_pass_in_stack,
3423         hook_callee_copies_named,
3424         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false,
3425         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true,
3426         default_function_value): Likewise. 
3427         * targhooks.h (default_return_in_memory,
3428         hook_pass_by_reference_must_pass_in_stack,
3429         hook_callee_copies_named,
3430         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false,
3431         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true,
3432         default_function_value): Likewise.
3433         * tree-ssa-structalias.c (const_equiv_class_label_t): New.
3434         (equiv_class_label_hash, equiv_class_label_eq): Constify.
3435         * tree-vectorizer.c (bb_in_loop_p): Likewise.
3436         * tree.c (needs_to_live_in_memory): Likewise.
3437         * tree.h (struct tree_type, needs_to_live_in_memory,
3438         aggregate_value_p, must_pass_in_stack_var_size,
3439         must_pass_in_stack_var_size_or_pad): Likewise.
3440         * vmsdbgout.c (write_debug_addr, write_debug_delta4,
3441         write_debug_string, ASM_OUTPUT_DEBUG_STRING, write_rtnbeg,
3442         lookup_filename): Likewise.
3443
3444 2007-08-23  Uros Bizjak  <ubizjak@gmail.com>
3445
3446         PR target/17390
3447         * config/i386/i386.c (ix86_expand_fp_compare): Expand fp comparison to
3448         fake fcomi i387 instruction for !TARGET_CMOVE.
3449         (ix86_expand_branch): Expand natural sequence with one jump for
3450         all targets, not only TARGET_CMOVE.
3451         * config/i386/i386.md (*cmpfp_0_cc): New define_insn_and_split
3452         pattern to implement fake fcomi sequence.  Split instruction after
3453         reload to correct compare sequences.
3454         (*cmpfp_xf_cc): Ditto.
3455         (*cmpfp_<mode>_cc): Ditto.
3456         (*cmpfp_u_cc): Ditto.
3457         (*cmpfp_<mode>_cc): Ditto.
3458
3459 2007-08-23  Richard Guenther  <rguenther@suse.de>
3460
3461         * tree-pretty-print.c (dump_generic_node): Annotate
3462         GIMPLE_MODIFY_STMTs with volatile ops with "{v}".
3463
3464 2007-08-23  Richard Guenther  <rguenther@suse.de>
3465
3466         * builtins.c (expand_builtin_mathfn): Wrap argument in
3467         save_expr directly instead of re-building the call.
3468         (expand_builtin_mathfn_2): Likewise.
3469         (expand_builtin_mathfn_3): Likewise.
3470         (expand_builtin_interclass_mathfn): Likewise.
3471         (expand_builtin_int_roundingfn): Set arg.
3472         (expand_builtin_int_roundingfn_2): Likewise.
3473
3474 2007-08-23  Paolo Bonzini  <bonzini@gnu.org>
3475
3476         * config/i386/sse.md (*sse_and<mode>3, *sse_ior<mode>3,
3477         *sse_nand<mode>3, *sse_xor<mode>3): New.
3478
3479 2007-08-23  Uros Bizjak  <ubizjak@gmail.com>
3480
3481         * config/i386/i386.h (PRINT_OPERAND_PUNCT_VALID_P): Add ';' code.
3482         * config/i386/i386.c (print_operand): Handle ';' code.  Output
3483         semicolon for TARGET_MACHO.
3484         * config/i386/sync.md (*sync_compare_and_swap<mode>): Use '%;' to
3485         emit semicolon after 'lock' prefix.
3486         (sync_double_compare_and_swap<mode>): Ditto.
3487         (*sync_double_compare_and_swapdi_pic): Ditto.
3488         (*sync_compare_and_swap_cc<mode>): Ditto.
3489         (sync_double_compare_and_swap_cc<mode>): Ditto.
3490         (*sync_double_compare_and_swap_ccdi_pic): Ditto.
3491         (sync_old_add<mode>): Ditto.
3492         (sync_add<mode>): Ditto.
3493         (sync_sub<mode>): Ditto.
3494         (sync_ior<mode>): Ditto.
3495         (sync_and<mode>): Ditto.
3496         (sync_xor<mode>): Ditto.
3497
3498 2007-08-22  Chao-ying Fu  <fu@mips.com>
3499
3500         * rtl.c (rtx_code_size): Check CONST_FIXED to calcualte correct sizes
3501         in DEF_RTL_EXPR.
3502         (copy_rtx): Handle CONST_FIXED.
3503         (rtx_equal_p): Likewise.
3504         * rtl.h (fixed_value.h): New include.
3505         (rtx_def): Add a new field of fixed_value to u.
3506         (XCNMPFV): Define for accessing fixed_value.
3507         (CONST_FIXED_VALUE, CONST_FIXED_VALUE_HIGH, CONST_FIXED_VALUE_LOW):
3508         Define.
3509         * rtl.def (CONST_FIXED): New constant.
3510         (SS_MULT, US_MULT, SS_DIV, US_DIV, FRACT_CONVERT,
3511         UNSIGNED_FRACT_CONVERT, SAT_FRACT, UNSIGNED_SAT_FRACT, US_NEG,
3512         US_ASHIFT): New codes.
3513         * doc/rtl.texi (Expressions): Document const_fixed, us_neg, ss_mult,
3514         us_mult, ss_div, us_div, us_ashift, fract_convert, sat_fract,
3515         unsigned_fract_convert, unsigned_sat_fract): Document them.
3516         * varasm.c (assemble_integer): Extend to support fixed-point constants
3517         by using different machine classes.
3518         (decode_addr_const): Handle FIXED_CST.
3519         (const_hash_1): Likewise.
3520         (compare_constant): Likewise.
3521         (copy_constant): Likewise.
3522         (const_rtx_hash_1): Handle CONST_FIXED.
3523         (output_constant_pool_2): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
3524         MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
3525         MODE_VECTOR_UACCUM.
3526         (initializer_constant_valid_p): Handle FIXED_CST.
3527         (output_constant): Support FIXED_POINT_TYPE.
3528         * gengenrtl.c (excluded_rtx): Check CONST_FIXED to exclude.
3529         * cse.c (hash_rtx): Support CONST_FIXED.
3530         (exp_equiv_p): Likewise.
3531         (cannon_reg): Likewise.
3532         (fold_rtx): Likewise.
3533         (equiv_constant): Likewise.
3534         (cse_process_notes_1): Likewise.
3535         (count_reg_usage): Likewise.
3536         * cselib.c (entry_and_rtx_equal_p): Check CONST_FIXED.
3537         (rtx_equal_for_cselib_p): Handle CONST_FIXED.
3538         (wrap_constant): Check CONST_FIXED.
3539         (cselib_hash_rtx): Support CONST_FIXED.
3540         (cselib_subst_to_values): Likewise.
3541         * df-scan.c (df_uses_record): Likewise.
3542         * gcse.c (want_to_gcse_p): Likewise.
3543         (oprs_unchanged_p): Likewise.
3544         (oprs_not_set_p): Likewise.
3545         (compute_transp): Likewise.
3546         (extract_mentioned_regs_helper): Likewise.
3547         * genemit.c (gen_exp): Likewise.
3548         * local-alloc.c (equiv_init_varies_p): Likewise.
3549         (contains_replace_regs): Likewise.
3550         (memref_referenced_p): Likewise.
3551         * loop-invariant.c (check_maybe_invariant): Likewise.
3552         (hash_invariant_expr_1): Likewise.
3553         (invariant_expr_equal_p): Likewise.
3554         * postreload-gcse.c (oprs_unchanged_p): Likewise.
3555         * regclass.c (reg_scan_mark_refs): Likewise.
3556         * regrename.c (scan_rtx): Likewise.
3557         * resource.c (mark_referenced_resources): Likewise.
3558         (mark_set_resources): Likewise.
3559         * rtlanal.c (rtx_unstable_p): Likewise.
3560         (rtx_varies_p): Likewise.
3561         (count_occurrences): Likewise.
3562         (reg_mentioned_p): Likewise.
3563         (modified_between_p): Likewise.
3564         (modified_in_p): Likewise.
3565         (volatile_insn_p): Likewise.
3566         (volatile_refs_p): Likewise.
3567         (side_effects_p): Likewise.
3568         (may_trap_p_1): Likewise.
3569         (inequality_comparisons_p): Likewise.
3570         (computed_jump_p_1): Likewise.
3571         (commutative_operand_precedence): Likewise.
3572         * sched-deps.c (sched_analyze_2): Likewise.
3573         * sched-vis.c (print_value): Likewise.
3574         * reload.c (operands_match_p): Likewise.
3575         (subst_reg_equivs): Likewise.
3576         * reload1.c (eliminate_regs_1): Likewise.
3577         (elimination_effects): Likewise.
3578         (scan_paradoxical_subregs): Likewise.
3579         * alias.c (rtx_equal_for_memref_p): Likewise.
3580         * Makefile.in (RTL_BASE_H): Add fixed-value.h.
3581         * emit-rtl.c (const_fixed_htab): New hash table.
3582         (const_fixed_htab_hash, const_fixed_htab_eq, lookup_const_fixed):
3583         Declare.
3584         (const_fixed_htab_hash, const_fixed_htab_eq, lookup_const_fixed,
3585         const_fixed_from_fixed_value): New functions.
3586         (verify_rtx_sharing): Handle CONST_FIXED.
3587         (copy_rtx_if_shared_1): Likewise.
3588         (reset_used_flags): Likewise.
3589         (set_used_flags): Likewise.
3590         (copy_insn_1): Likewise.
3591         (init_emit_once): Create const_fixed_htab.
3592         Store fixed-point scalar and vector zero and one to const_tiny_rtx.
3593
3594 2007-08-22  Zdenek Dvorak  <ook@ucw.cz>
3595
3596         PR tree-optimization/32949
3597         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Test nowrap_type_p
3598         before failing for ivs with non-constant step.
3599
3600 2007-08-22  Hans-Peter Nilsson  <hp@axis.com>
3601
3602         * doc/md.texi (Iterators): Renamed from Macros.  All contents
3603         changed to reflect rename of respectively define_code_macro and
3604         define_mode_macro to define_code_iterator and define_mode_iterator.
3605         (Mode Iterators, Code Iterators): Similar.
3606         * read-rtl.c (struct iterator_group, struct iterator_traverse_data)
3607         (uses_mode_iterator_p, apply_mode_iterator, uses_code_iterator_p)
3608         (apply_iterator_to_string, uses_iterator_p, apply_iterator_traverse)
3609         (initialize_iterators, find_iterator, check_code_iterator)
3610         (map_attr_string, apply_mode_maps, apply_iterator_to_rtx, add_mapping)
3611         (read_mapping, read_rtx_1): Similar.
3612         * config/alpha/sync.md, config/alpha/alpha.md, config/frv/frv.md,
3613         config/s390/s390.md, config/m32c/blkmov.md, config/m32c/m32c.md,
3614         config/spu/spu.md, config/sparc/sparc.md, config/sparc/sync.md,
3615         config/i386/i386.md, config/i386/mmx.md, config/i386/sse.md,
3616         config/i386/sync.md, config/crx/crx.md, config/xtensa/xtensa.md,
3617         config/cris/cris.c, config/cris/cris.md, config/ia64/sync.md,
3618         config/ia64/div.md, config/ia64/vect.md, config/ia64/ia64.md,
3619         config/m68k/m68k.md, config/rs6000/spe.md, config/rs6000/altivec.md,
3620         config/rs6000/sync.md, config/rs6000/rs6000.md,
3621         config/arm/vec-common.md, config/arm/neon.md, config/arm/iwmmxt.md,
3622         config/arm/arm.md, config/mips/mips-dsp.md, config/mips/mips.md,
3623         config/vax/vax.md, config/bfin/bfin.md: Similar.
3624
3625 2007-08-22  David Daney  <ddaney@avtrex.com>
3626
3627         * doc/install.texi (Testing): Mention testing on a simulator.
3628
3629 2007-08-22  Janis Johnson  <janis187@us.ibm.com>
3630
3631         * config/dfp-bit.c (DFP_TO_DFP): Check for overflow.
3632
3633         * doc/libgcc.texi (Decimal float library routines): Fix formatting
3634         and rearrange floating point conversion functions into different
3635         categories.
3636
3637 2007-08-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
3638
3639         * target.h (struct gcc_target.sched: dfa_pre_advance_cycle,
3640         dfa_post_advance_cycle): New scheduler hooks.
3641         * target-def.h (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE,
3642         TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): New macros to initialize
3643         new hooks.
3644         (TARGET_SCHED): Use them.
3645         * doc/tm.texi (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE,
3646         TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Document new hooks.
3647         * haifa-sched.c (advance_one_cycle): Invoke new hooks.
3648
3649         * genautomata.c (insn_has_dfa_reservation_p): New DFA interface
3650         function to facilitate debugging.
3651         (INSN_HAS_DFA_RESERVATION_P_FUNC_NAME): New macro.
3652         (output_insn_has_dfa_reservation_p): New static function to output
3653         insn_has_dfa_reservation_p ().
3654         (write_automata): Use it.
3655         * genattr.c (main): Output declaration for
3656         insn_has_dfa_reservation_p ().
3657
3658 2007-08-22  Christian Bruel  <christian.bruel@st.com>   
3659             Richard Guenther <rguenther@suse.de>
3660         
3661         * fold-const.c (fold_binary): Optimize A-A if -ffinite-math-only.
3662         * simplify_rtx (simplify_binary_operation_1): Likewise.
3663                 
3664 2007-08-22  Rask Ingemann Lambertsen  <rask@sygehus.dk>
3665
3666         PR rtl-optimization/32557
3667         * df-problems.c (df_note_bb_compute): Use mws->start_regno instead
3668         of REGNO (mws->mw_reg).
3669
3670 2007-08-22  Richard Guenther  <rguenther@suse.de>
3671
3672         PR middle-end/33007
3673         * builtins.c (expand_builtin_int_roundingfn): Replace call
3674         argument wrapped with SAVE_EXPR directly.
3675         (expand_builtin_int_roundingfn_2): Likewise.
3676
3677 2007-08-22  Richard Guenther  <rguenther@suse.de>
3678
3679         * tree-inline.c (inlinable_function_p): Restore disregarding
3680         inline limits for GNU extern inline functions.
3681
3682 2007-08-22  Richard Guenther  <rguenther@suse.de>
3683
3684         PR middle-end/32563
3685         * tree.c (host_integerp): Treat sizetype as signed as it is
3686         sign-extended.
3687
3688 2007-08-21  Ian Lance Taylor  <iant@google.com>
3689
3690         PR tree-optimization/33134
3691         * tree-vrp.c (adjust_range_with_scev): Call
3692         set_value_range_to_value.
3693
3694 2007-08-21  Aldy Hernandez  <aldyh@redhat.com>
3695
3696         * value-prof.h (gimple_remove_histogram_value): Remove duplicate
3697         prototype.
3698         
3699 2007-08-21  Aldy Hernandez  <aldyh@redhat.com>
3700
3701         * tree-flow-inline.h (next_imm_use_stmt): Remove unecessary
3702         whitespace.
3703
3704 2007-08-21  Nathan Froyd  <froydnj@codesourcery.com>
3705
3706         * config/rs6000/rs6000.c (expand_block_clear): Add TARGET_SPE
3707         cases to set eight bytes at a time.
3708         (expand_block_move): Likewise.
3709         
3710 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
3711
3712         PR debug/32610
3713         * dwarf2out.c (gen_decl_die): Don't call
3714         gen_tagged_type_instantiation_die if decl doesn't have tagged type.
3715
3716 2007-08-21  Paul Brook  <paul@codesourcery.com>
3717             Nathan Sidwell  <nathan@codesourcery.com>
3718             Mark Mitchell  <mark@codesourcery.com>
3719             Joseph Myers  <joseph@codesourcery.com>
3720
3721         * configure.ac: Add --with-pkgversion and --with-bugurl.
3722         * configure: Regenerate.
3723         * doc/install.texi: Document them.
3724         * version.c (version_string): Remove VERSUFFIX.
3725         (VERSUFFIX): Remove.
3726         (pkgversion_string): New.
3727         (bug_report_url): Do not hard-code initializer.
3728         * version.h (pkgversion_string): Declare.
3729         * Makefile.in (PKGVERSION_s, BUGURL_s, PKGVERSION, BUGURL_TEXI):
3730         Define.
3731         (version.o): Define PKGVERSION and BUGURL.
3732         (gcc-vers.texi): Define VERSION_PACKAGE and BUGURL.
3733         (%.pod): Define BUGURL.
3734         * gcc.c (process_command, main): Use pkgversion_string.
3735         * toplev.c (compile_file, print_version): Likewise.
3736         * protoize.c (main): Likewise.
3737         * gcov.c (print_version): Likewise.  Update copyright date.
3738         * gcov-dump.c (print_version): Likewise.  Update copyright date.
3739         * mips-tdump.c (main): Likewise.  Update copyright date.
3740         * mips-tfile.c (main): Likewise.  Update copyright date.
3741         * doc/include/gcc-common.texi: Include VERSION_PACKAGE as subtitle.
3742         * doc/bugreport.texi: Use BUGURL for bug-reporting instructions;
3743         shorten description.
3744         * doc/gcc.texi: Include VERSION_PACKAGE in version description.
3745         * doc/gccint.texi: Likewise.
3746         * doc/invoke.texi: Use BUGURL for bug-reporting instructions.
3747         Update copyright date.
3748
3749 2007-08-21  Uros Bizjak  <ubizjak@gmail.com>
3750
3751         * config/i386/i386.c (ix86_expand_clear): Use FLAGS_REG.
3752         (ix86_expand_strlensi_unroll_1): Ditto.
3753         (ix86_expand_branch): Use FLAGS_REG and FPSR_REG.
3754         (ix86_expand_carry_flag_compare): Update comment.
3755
3756 2007-08-21  Jakub Jelinek  <jakub@redhat.com>
3757
3758         PR middle-end/32912
3759         * fold-const.c (fold_unary): Optimize BIT_NOT_EXPR of VECTOR_CST.
3760         (fold_binary): Handle vectors in X | ~X and X ^ ~X optimizations.
3761
3762 2007-08-21  Richard Guenther  <rguenther@suse.de>
3763
3764         * fold-const.c (fold_binary): Revert removing of index +p PTR folding.
3765
3766 2007-08-21  Richard Guenther  <rguenther@suse.de>
3767
3768         PR middle-end/33122
3769         * fold-const.c (fold_binary): Remove index +p PTR folding.
3770         Fix types of POINTER_PLUS_EXPR generated by folding of
3771         (PTR +p B) +p A.
3772
3773 2007-08-20  Chao-ying Fu  <fu@mips.com>
3774
3775         * c-common.h (enum rid): Add new enumeration values of RID_SAT,
3776         RID_FRACT, and RID_ACCUM.  RID_SAT needs to be inserted before
3777         RID_ONEWAY, so that it can be checked in declspecs_add_type.
3778         (c_common_fixed_point_type_for_size): Declare.
3779         * c-parser.c (reswords): Add _Fract, _Accum, and _Sat.
3780         (c_token_starts_typename): Handle RID_FRACT, RID_ACCUM, and RID_SAT.
3781         (c_token_starts_declspecs): Likewise.
3782         (c_parser_declspecs): Likewise.
3783         (c_parser_attributes): Likewise.
3784         * c-tree.h (enum c_typespec_keyword): Add cts_fract and cts_accum.
3785         (c_declspecs): Add saturating_p.
3786         * c-decl.c (build_null_declspecs): Initialize saturating_p.
3787         (declspecs_add_type): Avoid using complex with _Fract, _Accum, or
3788         _Sat.  Handle RID_SAT.
3789         Avoid using void, bool, char, int, float, double, _Decimal32,
3790         _Decimal64, _Decimal128, and complex with _Sat.
3791         Handle RID_FRACT and RID_ACCUM.
3792         Make sure _Sat is used with _Fract or _Accum.
3793         (finish_declspecs): Handle cts_fract and cts_accum.
3794         * c-common.c (fixed-value.h): New include.
3795         (constant_expression_warning): Handle FIXED_CST.
3796         (overflow_warning): Likewise.
3797         (warnings_for_convert_and_check): Likewise.
3798         (c_common_fixed_point_type_for_size): New.
3799         (c_common_type_for_mode): Handle fixed-point modes to
3800         return various saturating/non-saturating, signed/unsigned types.
3801         (c_common_signed_or_unsigned_type): Support fixed-point types.
3802         (shorten_compare): Check fixed-point zero.
3803         Handle FIXED_POINT_TYPE.
3804         (c_common_truthvalue_conversion): Handle FIXED_CST.
3805         Handle FIXED_POINT_TYPE.
3806         (c_common_nodes_and_builtins): Record builtin types for fixed-point
3807         types.
3808         (handle_mode_attribute): Handle fixed-point modes.  Need to check
3809         if the signness of base type and fixed-point modes are consistent.
3810         (handle_vector_size_attribute): Handle fixed-point modes.
3811         (same_scalar_type_ignoring_signedness): Handle FIXED_POINT_TYPE.
3812         (warn_for_div_by_zero): Check fixed-point zero.
3813         * c-typeck.c (c_common_type): Check FIXED_POINT_TYPE.  Build
3814         a common fixed-point type based on fbit, ibit, sign, and saturation.
3815         (build_unary_op): Allow FIXED_POINT_TYPE for CONVERT_EXPR,
3816         NEGATE_EXPR, TRUTH_NOT_EXPR, PREINCREMENT_EXPR, POSTINCREMENT_EXPR,
3817         PREDECREMENT_EXPR, and POSTDECREMENT_EXPR.
3818         (convert_for_assignment): Support FIXED_POINT_TYPE.
3819         (digest_init): Handle FIXED_POINT_TYPE.
3820         (build_binary_op): Support FIXED_POINT_TYPE in *_DIV_EXPR,
3821         TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
3822         TRUTH_XOR_EXPR, RSHIFT_EXPR, LSHIFT_EXPR, EQ_EXPR, NE_EXPR, LE_EXPR,
3823         GE_EXPR, LT_EXPR, GT_EXPR.
3824         * target-def.h (TARGET_FIXED_POINT_SUPPORTED_P): New.
3825         (TARGET_INITIALIZER): Add TARGET_FIXED_POINT_SUPPORTED_P.
3826         * target.h (gcc_target): Add fixed_point_supported_p.
3827         * targhooks.c (default_scalar_mode_supported_p): Handle MODE_FRACT,
3828         MODE_UFRACT, MODE_ACCUM, and MODE_UACCUM.
3829         (default_fixed_point_supported_p): Define.
3830         * targhooks.h (default_fixed_point_supported_p): Declare.
3831         * doc/tm.texi (TARGET_FIXED_POINT_SUPPORTED_P): Add.
3832         * doc/install.texi (Configuration): Add --enable-fixed-point.
3833         * configure.ac (--enable-fixed-point): New to enable fixed-point
3834         arithmetic extension to C.  For mips targets, we enable it by default.
3835         * configure, config.in: Regenerate.
3836
3837 2007-08-20  Pawel Sikora  <pluto@pld-linux.org>
3838
3839         * doc/invoke.texi (-Wnon-virtual-dtor): Update documentation.
3840
3841 2007-08-20  David Edelsohn  <edelsohn@gnu.org>
3842
3843         * dwarf2out.c (text_section_used): Move declaration outside ifdef
3844         DWARF2_DEBUGGING_INFO.
3845         (cold_text_section_used): Same.
3846         (cold_text_section): Same.
3847
3848 2007-08-20  Richard Guenther  <rguenther@suse.de>
3849
3850         * c-typeck.c (convert_for_assignment): Use the type of
3851         the member for the initialization.
3852
3853 2007-08-20  Richard Guenther  <rguenther@suse.de>
3854
3855         * c-objc-common.c (c_disregard_inline_limits): Remove.
3856         * c-objc-common.h (c_disregard_inline_limits): Likewise.
3857         * cgraphunit.c (cgraph_process_new_functions): Call
3858         disregard_inline_limits_p.
3859         (cgraph_preserve_function_body_p): Likewise.
3860         * ipa-inline.c (compute_inline_parameters): Likewise.
3861         * langhooks-def.h (lhd_tree_inlining_disregard_inline_limits):
3862         Remove.
3863         (LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS): Remove.
3864         (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
3865         disregard_inline_limits langhook.
3866         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
3867         Remove.
3868         * langhooks.h (lang_hooks_for_tree_inlining): Remove
3869         disregard_inline_limits langhook.
3870         * tree-inline.c (disregard_inline_limits_p): New function.
3871         * tree-inline.h (disregard_inline_limits_p): Declare.
3872
3873 2007-08-20  Richard Guenther  <rguenther@suse.de>
3874
3875         * langhooks-def.h (lhd_tree_inlining_auto_var_in_fn_p): Remove.
3876         (LANG_HOOKS_TREE_INLINING_AUTO_VAR_IN_FN_P): Likewise.
3877         (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
3878         auto_var_in_fn_p langhook.
3879         * langhooks.c (lhd_tree_inlining_auto_var_in_fn_p): Rename and
3880         move ...
3881         * tree.c (auto_var_in_fn_p): ... here.
3882         (find_var_from_fn): Call auto_var_in_fn_p directly.
3883         * langhooks.h (lang_hooks_for_tree_inlining): Remove
3884         auto_var_in_fn_p langhook.
3885         * tree-inline.c (remap_decls): Call auto_var_in_fn_p directly.
3886         (copy_body_r): Likewise.
3887         (self_inlining_addr_expr): Likewise.
3888         * tree.h (auto_var_in_fn_p): Declare.
3889
3890 2007-08-20  Richard Guenther  <rguenther@suse.de>
3891
3892         * tree.c (WALK_SUBTREE): Call walk_tree_1.
3893         (walk_type_fields): Take lh parameter.
3894         (walk_tree): Rename to ...
3895         (walk_tree_1): ... this.  Do not call the walk_subtrees
3896         langhook but the now passed callback.  Pass lh on recursion.
3897         (walk_tree_without_duplicates): Rename to ...
3898         (walk_tree_without_duplicates_1): ... this.  Take lh parameter
3899         and call walk_tree_1.
3900         * tree.h (walk_tree_lh): New typedef.
3901         (walk_tree_1): Declare.
3902         (walk_tree_without_duplicates_1): Likewise.
3903         (walk_tree): New define to walk_tree_1 with NULL lh parameter.
3904         (walk_tree_without_duplicates): New define to
3905         walk_tree_without_duplicates_1 with NULL lh parameter.
3906         * langhooks.c (lhd_tree_inlining_walk_subtrees): Remove.
3907         * langhooks.h (lang_hooks_for_tree_inlining): Remove walk_subtrees
3908         langhook.
3909         * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Remove.
3910         (LANG_HOOKS_TREE_INLINING_WALK_SUBTREES): Likewise.
3911         (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove walk_subtrees
3912         initializer.
3913
3914 2007-08-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3915
3916         PR middle-end/30564
3917         * tree-inline.c (optimize_inline_calls): Move the cgraph checking
3918         code in front of the compacting of basic blocks.
3919         Move the folding of statements inbetween the cgraph checking
3920         and compacting of basic blocks.
3921
3922 2007-08-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3923            Serge Belyshev  <belyshev@depni.sinp.msu.ru>
3924
3925         PR target/32522
3926         * config/alpha/alpha.c (va_list_skip_additions): Check for
3927         POINTER_PLUS_EXPR in addition to PLUS_EXPR.
3928         (alpha_stdarg_optimize_hook): Look for POINTER_PLUS_EXPR instead of
3929         PLUS_EXPR when checking ap.__base.
3930         (alpha_va_start): Create POINTER_PLUS_EXPR instead of PLUS_EXPR
3931         when doing addition on pointer types.  Use size_int instead of
3932         build_int_cst.
3933         (alpha_gimplify_va_arg_1): Likewise, but use sizetype instead of
3934         ptr_type in the second operand.
3935
3936 2007-08-19  Andrew Pinski  <pinskia@gmail.com>
3937
3938         PR target/33115
3939         * config/i386/darwin.h (CC1_SPEC): Add %(cc1_cpu) in front.
3940
3941 2007-08-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3942
3943         PR middle-end/32940
3944         * cfgexpand.c  (expand_one_register_var): Mark pointer
3945         DECL_ARTIFICIAL as REG_POINTER also.
3946         * stmt.c (expand_decl): Likewise.
3947
3948 2007-08-19  Daniel Berlin  <dberlin@dberlin.org>
3949
3950         Fix PR 32772
3951         Fix PR 32716
3952         Fix PR 32328
3953         Fix PR 32303
3954
3955         * tree-flow.h (struct stmt_ann_d): Remove makes_clobbering_call.
3956         * tree-ssa-alias.c (init_transitive_clobber_worklist): Add
3957         on_worklist argument and avoid adding things to worklist multiple
3958         times.
3959         (add_to_worklist): Ditto.
3960         (mark_aliases_call_clobbered): Mark entire structure clobbered if
3961         single SFT is clobbered.
3962         (set_initial_properties): Ditto.
3963         (compute_call_clobbered): Update for changes to function
3964         arguments.
3965         (create_overlap_variables_for): Always create SFT for offset 0.
3966         (create_structure_vars): Handle PHI's, since we are in SSA form at
3967         this point.
3968         * tree-ssa-loop-ivopts.c (get_ref_tag): Don't return subvars.
3969         * tree-ssa-operands.c (access_can_touch_variable): Don't handle
3970         TARGET_MEM_REF.
3971         (add_vars_for_offset): Figure out aliases from access + points-to.
3972         (add_virtual_operand): Use add_vars-for_offset.
3973         (get_tmr_operands): Update for NMT changes, rewrite to be correct.
3974         (add_call_clobber_ops): Remove makes_clobbering_call set.
3975         (get_expr_operands): Always pass through the INDIRECT_REF
3976         reference.
3977         * tree-ssa-structalias.c (struct constraint_graph): Remove
3978         variables member.
3979         Add pe, pe_rep, pointer_label, loc_label, pointed_by, points_to,
3980         address_taken, pt_used, number_incoming.
3981         (FIRST_ADDR_NODE): Removed.
3982         (merge_graph_nodes): Remove broken code for the moment.
3983         (init_graph): New function.
3984         (build_pred_graph): Remove code to init_graph.
3985         Add location equivalence support.
3986         (struct scc_info): Rename roots to deleted.
3987         (scc_visit): Ditto.
3988         (init_scc_info): Ditto
3989         (init_topo_info): Use graph->size.
3990         (compute_topo_order): Ditto.
3991         (do_da_constraint): Removed.
3992         (do_sd_constraint): Remove calls to find().
3993         set_union_with_increment should always get 0 as last arg here.
3994         (do_complex_constraint): Replace do_da_constraint with assert.
3995         Stop calling find.
3996         (struct equiv_class_label): New.
3997         (pointer_equiv_class_table): Ditto.
3998         (location_equiv_class_table): Ditto.
3999         (equiv_class_label_hash): Ditto.
4000         (equiv_class_label_eq): Ditto
4001         (equiv_class_lookup): Ditto.
4002         (equiv_class_ladd): Ditto.
4003         (pointer_equiv_class): Ditto.
4004         (location_equiv_class): Ditto.
4005         (condense_visit): Rename and rewrite from label_visit to do only
4006         SCC related stuff for HU.
4007         (label_visit): Do HU work for HU.
4008         (perform_var_substitution): Update to do HU and location
4009         equivalence.
4010         (free_var_substitution_info): Update to free HU and location
4011         equivalence structures.  */
4012         (find_equivalent_node): Update for pointer but not location
4013         equivalence.
4014         (unite_pointer_equivalences): New function.
4015         (move_complex_constraints): Rewrite to only do moving.
4016         (rewrite_constraints): Split out of move_complex_constraints.
4017         (solve_graph): Use graph->size.
4018         (process_constraint_1): Add from_call argument, use it.
4019         Split *a = &b into two constraints.
4020         (process_constraint): Use new process_constraint_1.
4021         (get_constraint_for_component_ref): Handle bitmaxsize == -1 case.
4022         (get_constraint_for): Handle non-pointer integers properly.
4023         Remove code that used to handle structures.
4024         (handle_ptr_arith): Fix a few bugs in pointer arithmetic handling
4025         with unknown addends.
4026         (handle_rhs_call): New function.
4027         (find_func_aliases): Use handle_rhs_call.
4028         (set_uids_in_ptset): Add an assert.
4029         (set_used_smts): Fix bug in not considering unified vars.
4030         (compute_tbaa_pruning): Stop initing useless iteration_obstack.
4031         (compute_points_to_sets): Update for other function changes.
4032         (delete_points_to_sets): Ditto.
4033         (ipa_pta_execute): Ditto.
4034         (pass_ipa_pta): We need to update SSA after ipa_pta.
4035         
4036 2007-08-19  Jan Hubicka  <jh@suse.cz>
4037
4038         * i386.md: Replace "rim" and "mri" constraints by "g".
4039
4040 2007-08-19  Joseph Myers  <joseph@codesourcery.com>
4041
4042         * dwarf2out.c (text_section_used, cold_text_section_used,
4043         cold_text_section, dwarf2out_note_section_used): New.
4044         (dwarf2out_init): Initialize cold_text_section.
4045         (dwarf2out_switch_text_section, dwarf2out_begin_function): Call
4046         dwarf2out_note_section_used.
4047         (size_of_aranges): Only count entry for text section if it was
4048         used.  Count entry for cold text section if it was used.
4049         (output_aranges): Only output entries for text section and cold
4050         text section if they were used.
4051
4052 2007-08-19  Andrew Pinski  <pinskia@gmail.com>
4053
4054         * tree-pretty-print.c (debug_generic_expr): Add a comment about
4055         the function.
4056         (debug_generic_stmt): Likewise.
4057         (debug_tree_chain): Likewise.
4058
4059 2007-08-19  Dorit Nuzman  <dorit@il.ibm.com>
4060
4061         * tree-data-refs.c (split_constant_offset): Expose.
4062         * tree-data-refs.h (split_constant_offset): Add declaration.
4063
4064         * tree-vectorizer.h (dr_alignment_support): Renamed
4065         dr_unaligned_software_pipeline to dr_explicit_realign_optimized.
4066         Added a new value dr_explicit_realign.
4067         (_stmt_vec_info): Added new fields: dr_base_address, dr_init,
4068         dr_offset, dr_step, and dr_aligned_to, along with new access
4069         functions for these fields: STMT_VINFO_DR_BASE_ADDRESS,
4070         STMT_VINFO_DR_INIT, STMT_VINFO_DR_OFFSET, STMT_VINFO_DR_STEP, and
4071         STMT_VINFO_DR_ALIGNED_TO.
4072
4073         * tree-vectorizer.c (vect_supportable_dr_alignment): Add
4074         documentation.
4075         In case of outer-loop vectorization with non-fixed misalignment - use
4076         the dr_explicit_realign scheme instead of the optimized realignment
4077         scheme.
4078         (new_stmt_vec_info): Initialize new fields.
4079
4080         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Handle the
4081         'nested_in_vect_loop' case. Change verbosity level.
4082         (vect_analyze_data_ref_access): Handle the 'nested_in_vect_loop' case.
4083         Don't fail on zero step in the outer-loop for loads.
4084         (vect_analyze_data_refs): Call split_constant_offset to calculate
4085         base, offset and init relative to the outer-loop.
4086
4087         * tree-vect-transform.c (vect_create_data_ref_ptr): Replace the unused
4088         BSI function argument with a new function argument - at_loop.
4089         Simplify the condition that determines STEP. Takes additional argument
4090         INV_P. Support outer-loop vectorization (handle the
4091         nested_in_vect_loop case), including zero step in the outer-loop. Call
4092         vect_create_addr_base_for_vector_ref with additional argument.
4093         (vect_create_addr_base_for_vector_ref): Takes additional argument LOOP.
4094         Updated function documentation. Handle the 'nested_in_vect_loop' case.
4095         Fixed and simplified calculation of step.
4096         (vectorizable_store): Call vect_create_data_ref_ptr with loop instead
4097         of bsi, and with additional argument. Call bump_vector_ptr with
4098         additional argument. Fix typos. Handle the 'nested_in_vect_loop' case.
4099         (vect_setup_realignment): Takes additional arguments INIT_ADDR and
4100         DR_ALIGNMENT_SUPPORT. Returns another value AT_LOOP. Handle the case
4101         when the realignment setup needs to take place inside the loop.
4102         Support the dr_explicit_realign scheme. Allow generating the optimized
4103         realignment scheme for outer-loop vectorization. Added documentation.
4104         (vectorizable_load): Support the dr_explicit_realign scheme. Handle
4105         the 'nested_in_vect_loop' case, including loads that are invariant in
4106         the outer-loop and the realignment schemes. Handle the case when the
4107         realignment setup needs to take place inside the loop. Call
4108         vect_setup_realignment with additional arguments.  Call
4109         vect_create_data_ref_ptr with additional argument and with loop instead
4110         of bsi. Fix 80-column overflow. Fix typos. Rename PHI_STMT to PHI.
4111         (vect_gen_niters_for_prolog_loop): Call
4112         vect_create_addr_base_for_vector_ref with additional arguments.
4113         (vect_create_cond_for_align_checks): Likewise.
4114         (bump_vector_ptr): Updated to support the new dr_explicit_realign
4115         scheme: takes additional argument bump; argument ptr_incr is now
4116         optional; updated documentation.
4117         (vect_init_vector): Takes additional argument (bsi). Use it, if
4118         available, to insert the vector initialization.
4119         (get_initial_def_for_induction): Pass additional argument in call to
4120         vect_init_vector.
4121         (vect_get_vec_def_for_operand): Likewise.
4122         (vect_setup_realignment): Likewise.
4123         (vectorizable_load): Likewise.
4124
4125 2007-08-19  Dorit Nuzman  <dorit@il.ibm.com>
4126
4127         * tree-vectorizer.h (vect_is_simple_reduction): Takes a loop_vec_info
4128         as argument instead of struct loop.
4129         (nested_in_vect_loop_p): New function.
4130         (vect_relevant): Add enum values vect_used_in_outer_by_reduction and
4131         vect_used_in_outer.
4132         (is_loop_header_bb_p): New. Used to differentiate loop-header phis
4133         from other phis in the loop.
4134         (destroy_loop_vec_info): Add additional argument to declaration.
4135
4136         * tree-vectorizer.c (supportable_widening_operation): Also check if
4137         nested_in_vect_loop_p (don't allow changing the order in this case).
4138         (vect_is_simple_reduction): Takes a loop_vec_info as argument instead
4139         of struct loop. Call nested_in_vect_loop_p and don't require
4140         flag_unsafe_math_optimizations if it returns true.
4141         (new_stmt_vec_info): When setting def_type for phis differentiate 
4142         loop-header phis from other phis.
4143         (bb_in_loop_p): New function.
4144         (new_loop_vec_info): Inner-loop phis already have a stmt_vinfo, so
4145         just update their loop_vinfo.  Order of BB traversal now matters -
4146         call dfs_enumerate_from with bb_in_loop_p.
4147         (destroy_loop_vec_info): Takes additional argument to control whether
4148         stmt_vinfo of the loop stmts should be destroyed as well.
4149         (vect_is_simple_reduction): Allow the "non-reduction" use of a
4150         reduction stmt to be defines by a non loop-header phi.
4151         (vectorize_loops): Call destroy_loop_vec_info with additional argument.
4152
4153         * tree-vect-transform.c (vectorizable_reduction): Call
4154         nested_in_vect_loop_p. Check for multitypes in the inner-loop.
4155         (vectorizable_call): Likewise.
4156         (vectorizable_conversion): Likewise.
4157         (vectorizable_operation): Likewise.
4158         (vectorizable_type_promotion): Likewise.
4159         (vectorizable_type_demotion): Likewise.
4160         (vectorizable_store): Likewise.
4161         (vectorizable_live_operation): Likewise.
4162         (vectorizable_reduction): Likewise. Also pass loop_info to
4163         vect_is_simple_reduction instead of loop.
4164         (vect_init_vector): Call nested_in_vect_loop_p.
4165         (get_initial_def_for_reduction): Likewise.
4166         (vect_create_epilog_for_reduction): Likewise.
4167         (vect_init_vector): Check which loop to work with, in case there's an
4168         inner-loop.
4169         (get_initial_def_for_inducion): Extend to handle outer-loop
4170         vectorization. Fix indentation.
4171         (vect_get_vec_def_for_operand): Support phis in the case vect_loop_def.
4172         In the case vect_induction_def get the vector def from the induction
4173         phi node, instead of calling get_initial_def_for_inducion.
4174         (get_initial_def_for_reduction): Extend to handle outer-loop 
4175         vectorization.
4176         (vect_create_epilog_for_reduction): Extend to handle outer-loop
4177         vectorization.
4178         (vect_transform_loop): Change assert to just skip this case.  Add a
4179         dump printout.
4180         (vect_finish_stmt_generation): Add a couple asserts.
4181
4182         (vect_estimate_min_profitable_iters): Multiply
4183         cost of inner-loop stmts (in outer-loop vectorization) by estimated
4184         inner-loop bound.
4185         (vect_model_reduction_cost): Don't add reduction epilogue cost in case
4186         this is an inner-loop reduction in outer-loop vectorization.
4187
4188         * tree-vect-analyze.c (vect_analyze_scalar_cycles_1): New function.
4189         Same code as what used to be vect_analyze_scalar_cycles, only with
4190         additional argument loop, and loop_info passed to
4191         vect_is_simple_reduction instead of loop.
4192         (vect_analyze_scalar_cycles): Code factored out into
4193         vect_analyze_scalar_cycles_1. Call it for each relevant loop-nest.
4194         Updated documentation.
4195         (analyze_operations): Check for inner-loop loop-closed exit-phis during
4196         outer-loop vectorization that are live or not used in the outerloop,
4197         cause this requires special handling.
4198         (vect_enhance_data_refs_alignment): Don't consider versioning for
4199         nested-loops.
4200         (vect_analyze_data_refs): Check that there are no datarefs in the
4201         inner-loop.
4202         (vect_mark_stmts_to_be_vectorized): Also consider vect_used_in_outer
4203         and vect_used_in_outer_by_reduction cases.
4204         (process_use): Also consider the case of outer-loop stmt defining an
4205         inner-loop stmt and vice versa.
4206         (vect_analyze_loop_1): New function.
4207         (vect_analyze_loop_form): Extend, to allow a restricted form of nested
4208         loops.  Call vect_analyze_loop_1.
4209         (vect_analyze_loop): Skip (inner-)loops within outer-loops that have
4210         been vectorized.  Call destroy_loop_vec_info with additional argument.
4211
4212         * tree-vect-patterns.c (vect_recog_widen_sum_pattern): Don't allow
4213         in the inner-loop when doing outer-loop vectorization. Add
4214         documentation and printout.
4215         (vect_recog_dot_prod_pattern): Likewise. Also add check for
4216         GIMPLE_MODIFY_STMT (in case we encounter a phi in the loop).
4217
4218 2007-08-18  Andrew Pinski  <pinskia@gmail.com>
4219
4220         * tree-affine.h (print_aff): New prototype.
4221         (debug_aff): Likewise.
4222         * tree-affine.c (print_aff): New function.
4223         (debug_aff): Likewise.
4224
4225 2007-08-18  Paul Brook  <paul@codesourcery.com>
4226             Joseph Myers  <joseph@codesourcery.com>
4227
4228         * common.opt (-fdebug-prefix-map=): New option.
4229         * opts.c: Include debug.h.
4230         (common_handle_option): Handle -fdebug-prefix-map.
4231         * final.c: Include ggc.h.
4232         (struct debug_prefix_map, debug_prefix_maps, add_debug_prefix_map,
4233         remap_debug_filename): New.
4234         * Makefile.in (final.o, opts.o): Update dependencies.
4235         * debug.h (remap_debug_filename, add_debug_prefix_map): Declare.
4236         * configure.ac: Check for assembler --debug-prefix-map support.
4237         * configure, config.in: Regenerate.
4238         * gcc.c (ASM_MAP): Define conditional on HAVE_AS_DEBUG_PREFIX_MAP.
4239         (ASM_DEBUG_SPEC): Include ASM_MAP.
4240         * doc/install.texi (--with-debug-prefix-map): Document.
4241         * doc/invoke.texi (-fdebug-prefix-map): Document.
4242         * dbxout.c (dbxout_init, dbxout_start_source_file,
4243         dbxout_source_file): Call remap_debug_filename.
4244         * dwarf2out.c (add_comp_dir_attribute, maybe_emit_file,
4245         dwarf2out_start_source_file, dwarf2out_finish): Call
4246         remap_debug_filename.
4247         (file_table_relative_p): Do not check d->emitted_number.
4248         * toplev.c (output_file_directive): Call remap_debug_filename.
4249         * vmsdbgout.c (write_srccorr): Call remap_debug_filename.
4250         * xcoffout.c (xcoffout_source_file): Call remap_debug_filename.
4251
4252 2007-08-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4253
4254         * loop-invariant.c (find_invariants_to_move): Add missing macro
4255         argument.
4256
4257 2007-08-17  Tom Tromey  <tromey@redhat.com>
4258
4259         * tree.h (struct tree_label_decl): Removed old "java" fields.
4260
4261 2007-08-17  Richard Sandiford  <richard@codesourcery.com>
4262             Nigel Stephens  <nigel@mips.com>
4263
4264         * config/mips/sde.h (DRIVER_SELF_SPECS): Add commas.
4265         Treat -mno-data-in-code and -mcode-xonly as aliases for
4266         -mcode-readable=no and -mcode-readable=pcrel respectively.
4267         * config/mips/t-sde (TARGET_LIBGCC2_CFLAGS): Add -mcode-xonly.
4268         (MULTILIB_OPTIONS): Add -mcode-readable=no multilibs.
4269         (MULTILIB_DIRNAMES): Update accordingly.
4270
4271 2007-08-17  H.J. Lu  <hongjiu.lu@intel.com>
4272
4273         * Makefile.in (version.o): Depend on $(REVISION) only if
4274         REVISION_s is defined.
4275
4276 2007-08-17  Sa Liu  <saliu@de.ibm.com>
4277             Ulrich Weigand  <uweigand@de.ibm.com>
4278
4279         PR middle-end/32970
4280         * tree.c (reconstruct_complex_type): For a pointer to a vector,
4281         use build_qualified_type to retain qualifiers of the base type.
4282
4283 2007-08-17  Chen Liqin  <liqin@sunnorth.com.cn>
4284
4285         * config/score/score.md : Update pattern tablejump.
4286         * config/score/score.c : Update score_initialize_trampoline 
4287         function.
4288         * config/score/score.h (TRAMPOLINE_TEMPLATE): Added macro.
4289         (TRAMPOLINE_INSNS, TRAMPOLINE_SIZE) Update macro.
4290         * doc/contrib.texi: Add my entry.
4291
4292 2007-08-16  H.J. Lu  <hongjiu.lu@intel.com>
4293
4294         * Makefile.in (REVISION): New.
4295         (REVISION_c): New.
4296         (REVISION_s): New.
4297         (version.o): Also depend on $(REVISION). Add
4298         -DREVISION=$(REVISION_s).
4299
4300         * version.c (version_string): Add REVISION.
4301
4302 2007-08-16  Seongbae Park <seongbae.park@gmail.com>
4303
4304         * tree-eh.c (lower_try_finally_onedest): Reset the locus
4305         of GOTO that's relocated to a different block.
4306
4307 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4308
4309         * c-common.c (const_strip_array_types): New.
4310         * c-common.h (lang_missing_noreturn_ok_p): Delete.
4311         (const_strip_array_types): New.
4312         * c-objc-common.c (c_disregard_inline_limits,
4313         c_warn_unused_global_decl): Constify.
4314         * c-tree.h (c_disregard_inline_limits, c_warn_unused_global_decl,
4315         c_vla_type_p, c_incomplete_type_error): Likewise.
4316         * c-typeck.c (c_incomplete_type_error, c_vla_type_p): Likewise.
4317         * hooks.c (hook_bool_const_tree_false): New.
4318         * hooks.h (hook_bool_const_tree_false): Likewise.
4319         * langhooks-def.h (lhd_warn_unused_global_decl,
4320         lhd_incomplete_type_error, lhd_expr_size,
4321         lhd_tree_inlining_disregard_inline_limits,
4322         lhd_tree_inlining_auto_var_in_fn_p, lhd_tree_dump_type_quals,
4323         LANG_HOOKS_GENERIC_TYPE_P, LANG_HOOKS_TYPE_MAX_SIZE): Constify.
4324         * langhooks.c (lhd_warn_unused_global_decl,
4325         lhd_incomplete_type_error,
4326         lhd_tree_inlining_disregard_inline_limits,
4327         lhd_tree_inlining_auto_var_in_fn_p, lhd_tree_dump_type_quals,
4328         lhd_expr_size): Likewise.
4329         * langhooks.h (lang_hooks_for_tree_inlining,
4330         lang_hooks_for_tree_dump, lang_hooks_for_types,
4331         lang_hooks_for_decls, lang_hooks): Likewise.
4332         * pointer-set.c (pointer_set_t, pointer_set_create,
4333         pointer_set_contains, insert_aux, pointer_set_insert,
4334         pointer_set_traverse, pointer_map_t, pointer_map_create,
4335         pointer_map_contains, pointer_map_insert, pointer_map_traverse):
4336         Likewise.
4337         * pointer-set.h (pointer_set_contains, pointer_set_insert,
4338         pointer_set_traverse, pointer_map_contains, pointer_map_insert,
4339         pointer_map_traverse): Likewise.
4340         * predict.c (assert_is_empty): Likewise.
4341         * tree-affine.c (free_name_expansion): Likewise.
4342         * tree-cfg.c (edge_to_cases_cleanup): Likewise.
4343         * tree.c (size_in_bytes, max_int_size_in_bytes): Likewise.
4344         * tree.h (size_in_bytes, max_int_size_in_bytes): Likewise.
4345
4346 2007-08-16  Victor Kaplansky <victork@il.ibm.com>
4347
4348         * tree-vectorizer.c (new_loop_vec_info): Initialize new 
4349         field.
4350         (destroy_loop_vec_info): Add call to VEC_free.
4351         * tree-vectorizer.h (may_alias_ddrs): Define.
4352         (LOOP_VINFO_MAY_ALIAS_DDRS): Define.
4353         * tree-vect-analyze.c (vect_analyze_data_ref_dependence):
4354         Change reporting to dump.
4355         (vect_is_duplicate_ddr): New.
4356         (vect_mark_for_runtime_alias_test): New.
4357         (vect_analyze_data_ref_dependences) Add call to
4358         vect_mark_for_runtime_alias_test.
4359         (vect_enhance_data_refs_alignment): Define local variable
4360         vect_versioning_for_alias_required, don't perform
4361         peeling for alignment if versioning for alias is
4362         required.
4363         (vect_enhance_data_refs_alignment): Use
4364         PARAM_VECT_MAX_VERSION_FOR_ALIGNMENT_CHECKS instead of
4365         PARAM_VECT_MAX_VERSION_CHECKS.
4366         * tree-vect-transform.c
4367         (vect_create_cond_for_alias_checks): New.
4368         (vect_transform_loop): Add call to
4369         vect_create_cond_for_alias_checks.
4370         (vect_vfa_segment_size): New.
4371         * params.def (PARAM_VECT_MAX_VERSION_FOR_ALIGNMENT_CHECKS):
4372         Rename.
4373         (PARAM_VECT_MAX_VERSION_FOR_ALIAS_CHECKS): Define.
4374         * gcc/doc/invoke.texi
4375         (vect-max-version-for-alignment-checks): Document.
4376         (vect-max-version-for-alias-checks): Document.
4377         (vect-max-version-checks): Remove.
4378      
4379 2007-08-16  Uros Bizjak  <ubizjak@gmail.com>
4380
4381         * config/i386/i386.md (*rep_movdi_rex64): Emit "rep" prefix on
4382         the same line as the instruction for all asm dialects.
4383         (*rep_movsi): Ditto.
4384         (*rep_movsi_rex64): Ditto.
4385         (*rep_movqi): Ditto.
4386         (*rep_movqi_rex64): Ditto.
4387         (*rep_stosdi_rex64): Ditto.
4388         (*rep_stossi): Ditto.
4389         (*rep_stossi_rex64): Ditto.
4390         (*rep_stosqi): Ditto.
4391         (*rep_stosqi_rex64): Ditto.
4392         (*cmpstrnqi_nz_1): Ditto.
4393         (*cmpstrnqi_nz_rex_1): Ditto.
4394         (*cmpstrnqi_1): Ditto.
4395         (*cmpstrnqi_rex_1): Ditto.
4396         (*strlenqi_1): Ditto.
4397         (*strlenqi_rex_1): Ditto.
4398         * config/i386/sync.md (*sync_compare_and_swap<mode>): Emit "lock"
4399         prefix on the same line as the instruction for all asm dialects.
4400         (sync_double_compare_and_swap<mode>): Ditto.
4401         (*sync_double_compare_and_swapdi_pic): Ditto.
4402         (*sync_compare_and_swap_cc<mode>): Ditto.
4403         (sync_double_compare_and_swap_cc<mode>): Ditto.
4404         (*sync_double_compare_and_swap_ccdi_pic): Ditto.
4405         (sync_old_add<mode>): Ditto.
4406         (sync_add<mode>): Ditto.
4407         (sync_sub<mode>): Ditto.
4408         (sync_ior<mode>): Ditto.
4409         (sync_and<mode>): Ditto.
4410         (sync_xor<mode>): Ditto.
4411
4412 2007-08-16  Richard Sandiford  <richard@codesourcery.com>
4413
4414         PR middle-end/32897
4415         * reload.c (find_reloads): Check that the memory returned by
4416         find_reloads_toplev was not the result of forcing a constant
4417         to memory.
4418         (find_reloads_toplev): Always use simplify_gen_subreg to get
4419         the subreg of a constant.  If the result is also a constant,
4420         but not a legitimate one, force it into the constant pool
4421         and reload its address.
4422
4423 2007-08-15  David Edelsohn  <edelsohn@gnu.org>
4424
4425         * config/rs6000/rs6000.c (rs6000_rtx_costs): Add CLZ, CTZ, and
4426         POPCOUNT.
4427
4428 2007-08-15  Daniel Jacobowitz  <dan@codesourcery.com>
4429
4430         * config/rs6000/rs6000.c (rs6000_file_start): Output a .gnu_attribute
4431         directive for the current vector ABI.
4432
4433 2007-08-15  Steve Ellcey  <sje@cup.hp.com>
4434
4435         PR target/32963
4436         * caller-save.c (reg_save_code): Set invalide status on restore code.
4437         
4438 2007-08-15  Diego Novillo  <dnovillo@google.com>
4439
4440         * tree-ssa-alias.c (compute_memory_partitions): Use
4441         alias_bitmap_obstack to allocate bitmaps.
4442         (reset_alias_info): Factor out of init_alias_info.
4443         Mark all name tags not associated to an SSA name for renaming.
4444         (init_alias_info): Call it.
4445         (create_name_tags): Tidy.  Add comments.
4446         (dump_points_to_info_for): Do not call get_mem_sym_stats_for.
4447
4448 2007-08-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4449
4450         * config/mips/mips.c (vr4130_swap_insns_p): Use new interface to
4451         scheduler dependencies.
4452
4453 2007-08-15  Rask Ingemann Lambertsen  <rask@sygehus.dk>
4454
4455         * config/i386/i386.md (subsi3_carry_zext): Remove "m" constraint for
4456         "register_operand".
4457         (*iorsi_1_zext): Likewise.
4458         (*iorsi_1_zext_imm): Likewise.
4459         * config/i386/sse.md: (*sse4_1_extractps): Use "nonimmediate_operand"
4460         with "rm"/"xm" constraint.
4461         (sse2_vmsqrtv2df2): Likewise.
4462
4463 2007-08-15  Jakub Jelinek  <jakub@redhat.com>
4464
4465         PR middle-end/33074
4466         * emit-rtl.c (try_split): Use INSN_LIST instead of EXPR_LIST for
4467         REG_LIBCALL note.
4468
4469 2007-08-14  Daniel Berlin  <dberlin@dberlin.org>
4470
4471         * tree-pass.h (PROP_pta): Removed.
4472         (TODO_rebuild_alias): New.
4473         (pass_may_alias): Removed.
4474         * tree-ssa-ccp.c (execute_fold_all_builtins): Only rebuild
4475         aliasing if we changed something.
4476         * tree-ssa-alias.c (compute_may_aliases): Make non-static.  Update
4477         SSA internally.
4478         (pass_may_alias): Removed.
4479         (create_structure_vars): Return TODO_rebuild_alias.
4480         * tree-ssa-pre.c (do_pre): Return TODO_rebuild_alias.
4481         * tree-sra.c (tree_sra): Only rebuild aliasing if something
4482         changed.
4483         (tree_sra_early): We never affect aliasing right now.
4484         * tree-flow.h (compute_may_aliases): New prototype.
4485         * passes.c: Remove pass_may_alias from the passes.
4486         (execute_function_todo): Support TODO_rebuild_alias.    
4487
4488 2007-08-14  Kai Tietz  <kai.tietz@onevision.com>
4489
4490         * i386.c: (legitimize_address): Move dllimported variable check
4491         infront of legitimizing pic address of CONST symbols.
4492
4493 2007-08-14  Steve Ellcey  <sje@cup.hp.com>
4494
4495         PR tree-optimization/32941
4496         * tree-eh.c (struct leh_tf_state): Add goto_queue_map field.
4497         (goto_queue_cmp): Remove.
4498         (find_goto_replacement): Change search method.
4499         (maybe_record_in_goto_queue): Add assert.
4500         (lower_try_finally): Remove qsort call, add pointer_map_destroy call.
4501         * Makefile.in (tree-eh.o): Add pointer-set.h dependency.
4502
4503 2007-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4504
4505         * alias.c (component_uses_parent_alias_set): Constify.
4506         * alias.h (component_uses_parent_alias_set): Likewise.
4507         * cfgrtl.c (print_rtl_with_bb): Likewise.
4508         * double-int.c (tree_to_double_int, double_int_fits_to_tree_p,
4509         mpz_get_double_int): Likewise.
4510         * double-int.h (double_int_fits_to_tree_p, tree_to_double_int,
4511         mpz_get_double_int): Likewise.
4512         * expr.c (is_aligning_offset, undefined_operand_subword_p,
4513         mostly_zeros_p, all_zeros_p, safe_from_p, is_aligning_offset):
4514         Likewise.
4515         * expr.h (safe_from_p): Likewise.
4516         * gimple-low.c (try_catch_may_fallthru, block_may_fallthru):
4517         Likewise.
4518         * gimplify.c (should_carry_locus_p, zero_sized_field_decl,
4519         zero_sized_type, goa_lhs_expr_p): Likewise.
4520         * omp-low.c (is_variable_sized, use_pointer_for_field): Likewise.
4521         * rtl.h (print_rtl_with_bb): Likewise.
4522         * sched-vis.c (print_exp, print_value, print_pattern): Likewise.
4523         * tree-cfg.c (const_first_stmt, const_last_stmt): New.
4524         * tree-flow-inline.h (bb_stmt_list): Constify.
4525         (cbsi_start, cbsi_last, cbsi_end_p, cbsi_next, cbsi_prev,
4526         cbsi_stmt): New.
4527         * tree-flow.h (const_block_stmt_iterator, cbsi_start, cbsi_last,
4528         const_first_stmt, const_last_stmt): New.
4529         (block_may_fallthru, empty_block_p): Constify.
4530         * tree-iterator.c (EXPR_FIRST_BODY, EXPR_LAST_BODY,
4531         EXPR_ONLY_BODY): New.
4532         (expr_first, expr_last, expr_only): Use macro for body.
4533         (const_expr_first, const_expr_last, const_expr_only): New.
4534         * tree-iterator.h (const_tree_stmt_iterator, ctsi_start,
4535         ctsi_last, ctsi_end_p, ctsi_one_before_end_p, ctsi_next,
4536         ctsi_prev, ctsi_stmt): New.
4537         * tree-scalar-evolution.c (get_loop_exit_condition): Constify.
4538         * tree-scalar-evolution.h (get_loop_exit_condition): Likewise.
4539         * tree-ssa-loop-niter.c (loop_only_exit_p,
4540         derive_constant_upper_bound): Likewise.
4541         * tree-ssa-phiopt.c (empty_block_p): Likewise.
4542         * tree-ssa-threadupdate.c (redirection_block_p): Likewise.
4543         * tree-vectorizer.c (slpeel_can_duplicate_loop_p): Likewise.
4544         * tree-vectorizer.h (slpeel_can_duplicate_loop_p): Likewise.
4545         * tree-vrp.c (vrp_bitmap_equal_p): Likewise.
4546         * tree.c (get_type_static_bounds): Likewise.
4547         * tree.h (const_expr_first, const_expr_last, const_expr_only): New.
4548         (get_type_static_bounds): Constify.
4549
4550 2007-08-14  Rask Ingemann Lambertsen  <rask@sygehus.dk>
4551
4552         PR target/30315
4553         * config/i386/i386.h (CANONICALIZE_COMPARISON): New.
4554         * config/i386/i386.md (plusminus)(addsub)(SWI): New.
4555         (*<addsub><mode>3_cc_overflow): New.
4556         (*add<mode>3_cconly_overflow): New.
4557         (*sub<mode>3_cconly_overflow): New.
4558         (*<addsub>si3_zext_cc_overflow): New.
4559         * config/i386/predicates.md (fcmov_comparison_operator): Accept
4560         CCCmode for LTU, GTU, LEU and GEU.
4561         (ix86_comparison_operator): Likewise.
4562         (ix86_carry_flag_operator): Carry flag is set if LTU or GTU in CCCmode.
4563         * config/i386/i386.c (put_condition_code): Support CCCmode.
4564         (ix86_cc_mode): Use CCCmode when testing for overflow of PLUS
4565         or MINUS expressions.
4566
4567 2007-08-14  Andrew Pinski  <pinskia@gmail.com>
4568
4569         PR c/30428
4570         * c-typeck.c (build_binary_op): Disallow vector float types with
4571         BIT_IOR_EXPR, BIT_AND_EXPR, and BIT_XOR_EXPR.
4572
4573 2007-08-14  Maxim Kuvyrkov  <maxim@codesourcery.com>
4574
4575         * sched-int.h (struct _dep): Rename field 'kind' to 'type'.
4576         (DEP_KIND): Rename to DEP_TYPE.  Update all uses.
4577         (dep_def): New typedef.
4578         (init_dep_1, sd_debug_dep): Declare functions.
4579         (DEP_LINK_KIND): Rename to DEP_LINK_TYPE.
4580         (debug_dep_links): Remove.
4581         (struct _deps_list): New field 'n_links'.
4582         (DEPS_LIST_N_LINKS): New macro.
4583         (FOR_EACH_DEP_LINK): Remove.
4584         (create_deps_list, free_deps_list, delete_deps_list): Remove
4585         declaration.
4586         (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
4587         (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
4588         (copy_deps_list_change_con, move_dep_link): Ditto.
4589         (struct haifa_insn_data): Split field 'back_deps' into 'hard_back_deps'
4590         and 'spec_back_deps'.  New field 'resolved_forw_deps'.  Remove field
4591         'dep_count'.
4592         (INSN_BACK_DEPS): Remove.
4593         (INSN_HARD_BACK_DEPS, INSN_SPEC_BACK_DEPS, INSN_RESOLVED_FORW_DEPS):
4594         New macros.
4595         (INSN_DEP_COUNT): Remove.
4596         (enum DEPS_ADJUST_RESULT): Add new constant DEP_NODEP.  Fix comments.
4597         (spec_info, haifa_recovery_block_was_added_during_scheduling_p):
4598         Declare global variables.
4599         (deps_pools_are_empty_p, sched_free_deps): Declare functions.
4600         (add_forw_dep, compute_forward_dependences): Remove declarations.
4601         (add_or_update_back_dep, add_or_update_back_forw_dep): Ditto.
4602         (add_back_forw_dep, delete_back_forw_dep): Ditto.
4603         (debug_ds, sched_insn_is_legitimate_for_speculation_p): Declare
4604         functions.
4605         (SD_LIST_NONE, SD_LIST_HARD_BACK, SD_LIST_SPEC_BACK, SD_LIST_FORW):
4606         New constants.
4607         (SD_LIST_RES_BACK, SD_LIST_RES_FORW, SD_LIST_BACK): Ditto.
4608         (sd_list_types_def): New typedef.
4609         (sd_next_list): Declare function.
4610         (struct _sd_iterator): New type.
4611         (sd_iterator_def): New typedef.
4612         (sd_iterator_start, sd_iterator_cond, sd_iterator_next): New inline
4613         functions.
4614         (FOR_EACH_DEP): New cycle wrapper.
4615         (sd_lists_size, sd_lists_empty_p, sd_init_insn, sd_finish_insn):
4616         Declare functions.
4617         (sd_find_dep_between, sd_add_dep, sd_add_or_update_dep): Ditto.
4618         (sd_resolve_dep, sd_copy_back_deps, sd_delete_dep, sd_debug_lists):
4619         Ditto.
4620
4621         * sched-deps.c (init_dep_1): Make global.
4622         (DUMP_DEP_PRO, DUMP_DEP_CON, DUMP_DEP_STATUS, DUMP_DEP_ALL): New
4623         constants.
4624         (dump_dep): New static function.
4625         (dump_dep_flags): New static variable.
4626         (sd_debug_dep): New function.
4627         (add_to_deps_list, remove_from_deps_list): Update 'n_links' field of
4628         the list.
4629         (move_dep_link): Use remove_from_deps_list (), instead of
4630         detach_dep_link ().
4631         (dep_links_consistent_p, dump_dep_links, debug_dep_links): Remove.
4632         (dep_link_is_detached_p): New static function.
4633         (deps_obstack, dl_obstack, dn_obstack): Remove.  Use dn_pool, dl_pool
4634         instead.
4635         (dn_pool, dl_pool): New alloc_pools.
4636         (dn_pool_diff, dl_pool_diff): New static variables.
4637         (create_dep_node, delete_dep_node): New static function.
4638         (create_deps_list): Make it static.  Use alloc_pool 'dl_pool'.
4639         (deps_list_empty_p): Make it static.  Use 'n_links' field.
4640         (deps_pools_are_empty_p): New static function.
4641         (alloc_deps_list, delete_deps_list): Remove.
4642         (dump_deps_list, debug_deps_list, add_back_dep_to_deps_list): Remove.
4643         (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
4644         (copy_deps_list_change_con): Remove.  Use sd_copy_back_deps () instead.
4645         (forward_dependency_cache): Remove.
4646         (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Remove
4647         'back' from the names.  Change signature to use dep_t instead of
4648         equivalent quad.
4649         (add_back_dep): Ditto.  Make global.
4650         (check_dep_status): Rename to check_dep ().
4651         (sd_next_list, sd_lists_size, sd_lists_empty_p, sd_init_insn):
4652         New functions.
4653         (sd_finish_insn): Ditto.
4654         (sd_find_dep_between_no_cache): New static function.
4655         (sd_find_dep_between): New function.
4656         (ask_dependency_caches, set_dependency_caches): New static functions.
4657         (update_dependency_caches, change_spec_dep_to_hard, update_dep): Ditto.
4658         (add_or_update_dep_1): Separate pieces of functionality into
4659         ask_dependency_caches (), update_dependency_caches (),
4660         change_spec_dep_to_hard (), update_dep ().
4661         (get_back_and_forw_lists): New static function.
4662         (sd_add_dep): Separate setting of dependency caches into
4663         set_dependency_caches ().
4664         (sd_add_or_update_dep, sd_resolve_dep, sd_copy_back_deps):
4665         New functions.
4666         (sd_delete_dep): Ditto.
4667         (DUMP_LISTS_SIZE, DUMP_LISTS_DEPS, DUMP_LISTS_ALL): New constants.
4668         (dump_lists): New static function.
4669         (sd_debug_lists): New debug function.
4670         (delete_all_dependences, fixup_sched_groups): Update to use
4671         sd_* infrastructure.
4672         (sched_analyze_2): Create data-speculative dependency only if
4673         data-speculation is enabled.
4674         (sched_analyze_insn): If insn cannot be speculative, make all its
4675         dependencies non-speculative.
4676         (sched_analyze): Use sd_init_insn ().
4677         (add_forw_dep, compute_forward_dependencies): Remove.
4678         (delete_dep_nodes_in_back_deps): New static function.
4679         (sched_free_deps): New function.
4680         (init_dependency_caches): Init alloc_pools.
4681         (extend_depedency_caches): Update after removing of
4682         forward_dependency_cache.
4683         (free_dependency_caches): Ditto.  Free alloc_pools.
4684         (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Remove.
4685         (delete_forw_dep, add_or_update_back_dep, add_or_update_back_forw_dep):
4686         Ditto.
4687         (add_back_forw_dep, delete_back_forw_dep): Ditto.
4688         (add_dependence): Use init_dep ().
4689         (get_dep_weak_1): New static function.
4690         (get_dep_weak): Move logic to get_dep_weak_1 ().
4691         (dump_ds): New static function moved from haifa-sched.c:
4692         debug_spec_status ().
4693         (debug_ds): New debug function.
4694         (check_dep_status): Rename to check_dep ().  Update to check whole
4695         dependencies.
4696
4697         * haifa-sched.c (spec_info): Make global.
4698         (added_recovery_block_p): Rename to
4699         'haifa_recovery_block_was_added_during_current_schedule_block_p'.
4700         (haifa_recovery_block_was_added_during_scheduling_p): New variable.
4701         (dep_cost, priority, rank_for_schedule, schedule_insn): Update
4702         to use new interfaces.
4703         (ok_for_early_queue_removal): Ditto.
4704         (schedule_block): Initialize logical uids of insns emitted by the
4705         target.
4706         (sched_init): Initialize new variable.
4707         (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
4708         interfaces.
4709         (extend_global): Initialize insn data.
4710         (init_h_i_d): Remove code that is now handled in sd_init_insn ().
4711         (process_insn_forw_deps_be_in_spec): Change signature.  Update to use
4712         new interfaces.
4713         (add_to_speculative_block): Update to use new interfaces.
4714         (create_recovery_block): Set new variables.
4715         (create_check_block_twin, fix_recovery_deps): Update to use new
4716         interfaces.
4717         (sched_insn_is_legitimate_for_speculation_p): New function.
4718         (speculate_insn): Move checking logic to
4719         sched_insn_is_legitimate_for_speculation_p ().
4720         (sched_remove_insn): Finalize sched-deps information of instruction.
4721         (clear_priorities, add_jump_dependencies): Update to use new
4722         interfaces.
4723         (debug_spec_status): Rename to dump_ds () and move to sched-deps.c.
4724         
4725         * sched-rgn.c (set_spec_fed, find_conditional_protection): Update
4726         to use new interfaces.
4727         (is_conditionally_protected, is_pfree, is_prisky) Ditto.
4728         (new_ready): Try to use control speculation only if it is available.
4729         (add_branch_dependences): Update to use new interfaces.
4730         (compute_block_backward_dependences): Rename to
4731         compute_block_dependences ().  Call
4732         targetm.sched.dependencies_evaluation_hook ().
4733         (free_block_dependencies): New static function.
4734         (debug_dependencies): Update to use new interfaces.
4735         (schedule_region): Remove separate computation of forward dependencies.
4736         Move call of targetm.sched.dependencies_evaluation_hook () to
4737         compute_block_dependences ().  Free dependencies at the end of
4738         scheduling the region.
4739
4740         * sched-ebb.c (earliest_block_with_similiar_load): Update to use
4741         new interfaces.
4742         (add_deps_for_risky_insns): Ditto.
4743         (schedule_ebb): Remove separate computation of forward dependencies.
4744         Free dependencies at the end of scheduling the ebb.
4745
4746         * ddg.c (create_ddg_dependence): Update to use new interfaces.
4747         (build_intra_loop_deps): Ditto.  Remove separate computation of
4748         forward dependencies.  Free sched-deps dependencies.
4749
4750         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Update
4751         to use new interfaces.
4752         (ia64_dfa_new_cycle, ia64_gen_check): Ditto.
4753
4754         * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Update to use
4755         new interfaces.
4756         (is_costly_group): Ditto.
4757
4758 2007-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4759
4760         * alias.c (rtx_equal_for_memref_p): Constify.
4761         * basic-block.h (const_edge, const_basic_block): New.
4762         (reg_set_to_hard_reg_set, dfs_enumerate_from, single_succ_p,
4763         single_pred_p, single_succ_edge, single_pred_edge, single_succ,
4764         single_pred, maybe_hot_bb_p, probably_cold_bb_p,
4765         probably_never_executed_bb_p, edge_probability_reliable_p,
4766         br_prob_note_reliable_p, forwarder_block_p, flow_nodes_print,
4767         inside_basic_block_p, control_flow_insn_p, dominated_by_p):
4768         Likewise.
4769         * bb-reorder.c (better_edge_p, push_to_next_round_p): Likewise.
4770         * bt-load.c (basic_block_freq, insn_sets_btr_p, can_move_up):
4771         Likewise.
4772         * cfganal.c (flow_active_insn_p, forwarder_block_p,
4773         flow_nodes_print, dfs_enumerate_from): Likewise.
4774         * cfgbuild.c (count_basic_blocks, inside_basic_block_p,
4775         control_flow_insn_p, count_basic_blocks): Likewise.
4776         * cfgloop.c (flow_bb_inside_loop_p, glb_enum_p,
4777         get_loop_body_with_size, loop_exit_edge_p): Likewise.
4778         * cfgloop.h (flow_bb_inside_loop_p, num_loop_insns,
4779         average_num_loop_insns, loop_exit_edge_p,
4780         just_once_each_iteration_p, can_duplicate_loop_p): Likewise.
4781         * cfgloopanal.c (just_once_each_iteration_p, num_loop_insns,
4782         average_num_loop_insns, seq_cost): Likewise.
4783         * cfgloopmanip.c (rpe_enum_p, can_duplicate_loop_p): Likewise.
4784         * dominance.c (dominated_by_p): Likewise.
4785         * emit-rtl.c (validate_subreg): Likewise.
4786         * except.c (can_throw_internal, can_throw_external): Likewise.
4787         * except.h (can_throw_internal, can_throw_external): Likewise.
4788         * gcse.c (gcse_constant_p, oprs_unchanged_p, oprs_anticipatable_p,
4789         oprs_available_p, hash_expr, expr_equiv_p, oprs_not_set_p,
4790         compute_transp, load_killed_in_block_p, reg_killed_on_edge,
4791         simple_mem, store_ops_ok, load_kills_store, find_loads,
4792         store_killed_in_insn, store_killed_after, store_killed_before,
4793         gcse_mem_operand, implicit_set_cond_p, store_killed_in_pat):
4794         Likewise.
4795         * ifcvt.c (count_bb_insns, cheap_bb_rtx_cost_p, noce_operand_ok,
4796         noce_mem_write_may_trap_or_fault_p): Likewise.
4797         * pointer-set.c (pointer_set_contains, pointer_map_contains):
4798         Likewise.
4799         * pointer-set.h (pointer_set_contains, pointer_map_contains):
4800         Likewise.
4801         * predict.c (can_predict_insn_p, maybe_hot_bb_p,
4802         probably_cold_bb_p, probably_never_executed_bb_p,
4803         edge_probability_reliable_p, br_prob_note_reliable_p,
4804         can_predict_insn_p): Likewise.
4805         * regclass.c (reg_set_to_hard_reg_set): Likewise.
4806         * resource.c (return_insn_p): Likewise.
4807         * rtl.h (reg_set_between_p, reg_set_p, validate_subreg):
4808         Likewise.
4809         * rtlanal.c (reg_set_between_p, reg_set_p): Likewise.
4810         * tracer.c (count_insns, ignore_bb_p, better_p): Likewise.
4811         * tree-cfg.c (verify_gimple_unary_expr, verify_gimple_binary_expr,
4812         verify_gimple_modify_stmt): Likewise.
4813         * tree-chrec.c (is_not_constant_evolution,
4814         is_multivariate_chrec_rec, is_multivariate_chrec,
4815         chrec_contains_symbols, chrec_contains_undetermined,
4816         tree_contains_chrecs, evolution_function_is_affine_multivariate_p,
4817         evolution_function_is_univariate_p, avoid_arithmetics_in_type_p,
4818         eq_evolutions_p, scev_direction): Likewise.
4819         * tree-chrec.h (automatically_generated_chrec_p, tree_is_chrec,
4820         eq_evolutions_p, is_multivariate_chrec, chrec_contains_symbols,
4821         chrec_contains_symbols_defined_in_loop,
4822         chrec_contains_undetermined, tree_contains_chrecs,
4823         evolution_function_is_affine_multivariate_p,
4824         evolution_function_is_univariate_p, chrec_zerop,
4825         evolution_function_is_constant_p, evolution_function_is_affine_p,
4826         evolution_function_is_affine_or_constant_p,
4827         tree_does_not_contain_chrecs, chrec_type): Likewise.
4828         * tree-data-ref.c (tree_fold_divides_p,
4829         object_address_invariant_in_loop_p, dr_may_alias_p,
4830         ziv_subscript_p, siv_subscript_p, gcd_of_steps_may_divide_p,
4831         same_access_functions, constant_access_functions,
4832         access_functions_are_affine_or_constant_p, find_vertex_for_stmt):
4833         Likewise.
4834         * tree-flow.h (scev_direction): Likewise.
4835         * tree-gimple.c (is_gimple_stmt): Likewise.
4836         * tree-outof-ssa.c (identical_copies_p, identical_stmt_lists_p):
4837         Likewise.
4838         * tree-pretty-print.c (op_prio): Likewise.
4839         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop,
4840         analyzable_condition, backedge_phi_arg_p): Likewise.
4841         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
4842         * tree-ssa-operands.c (get_name_decl, operand_build_cmp): Likewise.
4843         * tree-ssa-threadupdate.c (dbds_continue_enumeration_p):
4844         Likewise.
4845
4846 2007-08-13  Dan Hipschman  <dsh@google.com>
4847
4848         PR c/32953
4849         * c-format.c (check_format_arg): Move check for zero-length
4850         format strings below the check for unterminated strings.
4851
4852 2007-08-13  Andrew Pinski  <pinskia@gmail.com>
4853
4854         PR C/30427
4855         * c-typeck.c (build_unary_op <case BIT_NOT_EXPR>): Reject vector float
4856         types.
4857
4858 2007-08-13  Nick Clifton  <nickc@redhat.com>
4859
4860         * config/arm/arm_neon.h: Revert GPLv3 patch to this file.
4861
4862 2007-08-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4863
4864         PR fortran/32860
4865         * c-format.c (gcc_gfc_length_specs): New array.
4866         (gcc_gfc_char_table): Add unsigned specifier, and references to
4867         the l length modifier.
4868         (format_types_orig): Use the new gcc_gfc_length_specs.
4869
4870 2007-08-12  Sa Liu  <saliu@de.ibm.com>
4871
4872         * emit-rtl.c (try_split): Relink the insns with REG_LIBCALL note
4873         and with REG_RETVAL note after split.
4874
4875 2007-08-11  David Daney  <ddaney@avtrex.com>
4876
4877         * config/mips/mips.c (mips_sched_reorder): Mark cycle parameter
4878         as ATTRIBUTE_UNUSED.
4879
4880 2007-08-11  David Edelsohn  <edelsohn@gnu.org>
4881             Segher Boessenkool  <segher@kernel.crashing.org>
4882
4883         * config/rs6000/rs6000.h (CC1_CPU_SPEC): Define as empty string if
4884         HAVE_LOCAL_CPU_DETECT not defined.
4885
4886 2007-08-11  Jan Hubicka  <jh@suse.cz>
4887
4888         * cgraphunit.c (record_cdtor_fn): Declare all cdtors always inlined.
4889         (cgraph_process_new_functions): Honor previous value of
4890         disregard_inline_limits.
4891         * ipa-inline.c (compute_inline_parameters): Likewise.
4892
4893 2007-08-11  Ian Lance Taylor  <iant@google.com>
4894
4895         * alias.h (alias_set_type): Define new type.
4896         (ALIAS_SET_MEMORY_BARRIER): Use it.
4897         * rtl.h: Include alias.h.
4898         (struct mem_attrs): Use alias_set_type.
4899         * tree.h: Include alias.h
4900         (struct tree_type): Use alias_set_type.
4901         (struct tree_struct_field_tag): Likewise.
4902         (struct tree_decl_common): Likewise.
4903         * alias.c (struct alias_set_entry): Use alias_set_type.
4904         (get_alias_set_entry, alias_set_subset_of): Likewise.
4905         (alias_sets_conflict_p): Likewise.
4906         (alias_sets_must_conflict_p): Likewise.
4907         (objects_must_conflict_p): Likewise.
4908         (get_alias_set, new_alias_set): Likewise.
4909         (record_alias_subset, record_component_aliases): Likewise.
4910         (varargs_set, frame_set): Change to alias_set_type.
4911         (get_varargs_alias_set): Use alias_set_type.
4912         (get_frame_alias_set): Likewise.
4913         * builtins.c (setjmp_alias_set): Change to alias_set_type.
4914         * dse.c (struct store_info): Use alias_set_type.
4915         (struct read_info, struct clear_alias_mode_holder): Likewise.
4916         (clear_alias_set_lookup, canon_address): Likewise.
4917         (record_store, check_mem_read_rtx): Likewise.
4918         (dse_record_singleton_alias_set): Likewise.
4919         (dse_invalidate_singleton_alias_set): Likewise.
4920         * emit-rtl.c (get_mem_attrs): Likewise.
4921         (set_mem_attributes_minus_bitpos): Likewise.
4922         (set_mem_alias_set): Likewise.
4923         * expr.c (store_constructor_field, store_field): Likewise.
4924         * gimplify.c (struct gimplify_init_ctor_preeval_data): Likewise.
4925         * langhooks.c (lhd_get_alias_set): Likewise.
4926         * langhooks-def.h (lhd_get_alias_set): Likewise.
4927         * reload1.c (alter_reg): Likewise.
4928         * tree-flow.h (struct fieldoff): Likewise.
4929         * tree-ssa-alias.c (struct alias_map_d): Likewise.
4930         (may_alias_p, get_smt_for, create_sft): Likewise.
4931         * tree-ssa-alias-warnings.c (nonstandard_alias_types_p): Likewise.
4932         * tree-ssa-structalias.c (set_uids_in_ptset): Likewise.
4933         (merge_smts_into): Likewise.
4934         * varasm.c (const_alias_set): Likewise.
4935         * c-common.c (strict_aliasing_warning): Likewise.
4936         (c_common_get_alias_set): Likewise.
4937         * dse.h (dse_record_singleton_alias_set): Update declaration.
4938         (dse_invalidate_singleton_alias_set): Likewise.
4939         * emit-rtl.h (set_mem_alias_set): Likewise.
4940         * c-common.h (c_common_get_alias_set): Likewise.
4941         * print-rtl.c (print_rtx): Cast MEM_ALIAS_SET when printing it.
4942         * print-tree.c (print_node): Likewise.
4943         * config/alpha/alpha.c (alpha_sr_alias_set): Change to
4944         alias_set_type.
4945         (alpha_setup_incoming_varargs): Use alias_set_type.
4946         * config/i386/i386.c (setup_incoming_varargs_64): Use
4947         alias_set_type.
4948         (setup_incoming_varargs_ms_64): Likewise.
4949         (ix86_GOT_alias_set): Likewise.
4950         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
4951         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
4952         (set): Change to alias_set_type.
4953         (get_TOC_alias_set): Use alias_set_type.
4954         * config/rs6000/rs6000-protos.h (get_TOC_alias_set): Update
4955         declaration.
4956         * config/sh/sh.c (sh_builtin_saveregs): Use alias_set_type.
4957         * config/sparc/sparc.c (sparc_sr_alias_set): Change to
4958         alias_set_type.
4959         (struct_value_alias_set): Likewise.
4960         * Makefile.in (GTFILES): Add $(srcdir)/alias.h.
4961
4962 2007-08-11  Richard Sandiford  <richard@codesourcery.com>
4963
4964         * config/vxworks-dummy.h (TARGET_VXWORKS): Define.
4965         * config/vxworks.h (TARGET_VXWORKS): Override.
4966         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define
4967         "mips" if TARGET_VXWORKS.
4968
4969 2007-08-11  Richard Sandiford  <richard@codesourcery.com>
4970
4971         * calls.c (avoid_likely_spilled_reg): New function.
4972         (expand_call): Use it.
4973
4974 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4975
4976         * c-typeck.c (build_c_cast): Add OPT_Wcast_qual to warnings.
4977
4978 2007-08-10  Adam Nemet  <anemet@caviumnetworks.com>
4979
4980         * config/mips/predicates.md (const_call_insn_operand): Invoke
4981         SYMBOL_REF_LONG_CALL_P only on SYMBOL_REFs.
4982
4983 2007-08-10  David Edelsohn  <edelsohn@gnu.org>
4984
4985         PR target/33042
4986         * config/rs6000/driver-rs6000.c: Include link.h.
4987         Use ElfW instead of wordsize-specif typedef.
4988
4989 2007-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4990
4991         * system.h (CONST_CAST): New.
4992         * c-decl.c (c_make_fname_decl): Use it.
4993         * c-lex.c (cb_ident, lex_string): Likewise.
4994         * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
4995         * gcc.c (set_spec, read_specs, for_each_path, execute, do_spec_1,
4996         give_switch, set_multilib_dir): Likewise.
4997         * gengtype-parse.c (string_seq, typedef_name): Likewise.
4998         * passes.c (execute_one_pass): Likewise.
4999         * prefix.c (update_path): Likewise.
5000         * pretty-print.c (pp_base_destroy_prefix): Likewise.
5001         * tree.c (build_string): Likewise.
5002
5003 2007-08-10  Aldy Hernandez  <aldyh@redhat.com>
5004
5005         * tree-flow-inline.h (is_exec_stmt): Remove.
5006         (is_label_stmt): Remove.
5007         * tree-flow.h: Remove prototypes for is_exec_stmt, get_filename, and
5008         is_label_stmt.
5009
5010 2007-08-10  Andreas Krebbel  <krebbel1@de.ibm.com>
5011
5012         * lower-subreg.c (resolve_shift_zext): Don't adjust
5013         src_reg_num for wordmode operands.
5014
5015 2007-08-10  Sandra Loosemore  <sandra@codesourcery.com>
5016             David Ung  <davidu@mips.com>
5017
5018         * config/mips/mips.c (TARGET_SCHED_INIT): Define.
5019         (TARGET_SCHED_REORDER2): Define.
5020         (mips_maybe_swap_ready): New.
5021         (mips_last_74k_agen_insn): New.
5022         (mips_74k_agen_init): New.
5023         (mips_74k_agen_reorder): New function to group loads and stores
5024         in the ready queue.
5025         (mips_sched_init): New.  
5026         (mips_sched_reorder): Don't do initialization here.  Call
5027         mips_74k_agen_reorder.
5028         (mips_variable_issue): Call mips_74k_agen_init.
5029
5030 2007-08-10  Aldy Hernandez  <aldyh@redhat.com>
5031
5032         * tree-flow-inline.h (get_filename): Remove.
5033
5034 2007-08-10  Richard Sandiford  <richard@codesourcery.com>
5035
5036         * config/mips/mips-protos.h (mips_address_insns): Add a boolean
5037         argument.
5038         (mips_fetch_insns): Delete in favor of...
5039         (mips_load_store_insns): ...this new function.
5040         * config/mips/mips.c (mips_address_insns): Add a boolean argument
5041         to say whether multiword moves _might_ be split.
5042         (mips_fetch_insns): Delete in favor of...
5043         (mips_load_store_insns): ...this new function.
5044         (mips_rtx_costs): Update the call to mips_address_insns.
5045         (mips_address_cost): Likewise.
5046         * config/mips/mips.md (length): Use mips_load_store_insns instead
5047         of mips_fetch_insns.
5048         * config/mips/constraints.md (R): Use mips_address_insns rather
5049         than mips_fetch_insns.  Assume that the move never needs to be split.
5050
5051 2007-08-09  Sandra Loosemore  <sandra@codesourcery.com>
5052
5053         * config/mips/mips.opt (mhard-float, msoft-float): Make these
5054         control TARGET_HARD_FLOAT_ABI and TARGET_SOFT_FLOAT_ABI, rather
5055         than TARGET_HARD_FLOAT and TARGET_SOFT_FLOAT.  
5056         * config/mips/mips.h (mips16_hard_float): Delete.
5057         (TARGET_HARD_FLOAT_ABI, TARGET_SOFT_FLOAT_ABI): Delete these
5058         definitions, and replace with....
5059         (TARGET_HARD_FLOAT, TARGET_SOFT_FLOAT): Define.
5060         * config/mips/mips.c (mips16_hard_float): Delete.  Replace
5061         all references with (TARGET_MIPS16 && TARGET_HARD_FLOAT_ABI).
5062         (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Update comments.
5063         (override_options): Replace MASK_SOFT_FLOAT references with
5064         MASK_SOFT_FLOAT_ABI.  Delete twiddling with MASK_SOFT_FLOAT
5065         and mips16_hard_float when TARGET_MIPS16.
5066         
5067 2007-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5068
5069         PR c/32796
5070         * c-typeck.c (build_binary_op): Check for non pointer types before
5071         calling int_fits_type_p.
5072
5073 2007-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5074
5075         PR middle-end/32813
5076         * fold-const.c (omit_one_operand): Return only the ommitted expression
5077         if the result is an empty statement.
5078         (pedantic_omit_one_operand): Likewise.
5079
5080 2007-08-09  Daniel Berlin  <dberlin@dberlin.org>
5081
5082         * c-typeck.c (readonly_error): Improve error for assignment.
5083         
5084         * c-pretty-print.c (pp_c_additive_expression): Handle pointer-plus
5085         expression. 
5086         (pp_c_expression): Ditto.
5087
5088 2007-08-09  Simon Baldwin  <simonb@google.com>
5089
5090         * simplify-rtx.c (simplify_binary_operation_1): Removed erroneous
5091         break that was preventing simplify_associative_operation() for xor.
5092
5093 2007-08-09  Sandra Loosemore  <sandra@codesourcery.com>
5094             Nigel Stephens  <nigel@mips.com>
5095
5096         * doc/tm.texi (CLZ_DEFINED_VALUE_AT_ZERO, CTZ_DEFINED_VALUE_AT_ZERO):
5097         Document change in interpretation of value from boolean to
5098         tri-state integer.
5099         * optabs.c (expand_ffs, expand_ctz): New functions to compute
5100         ffs and ctz using clz.
5101         (expand_unop): Call them.
5102         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Fix its
5103         result value.
5104         (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
5105         * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Likewise, to
5106         enable the new ffs expansion on this target.
5107
5108 2007-08-09  Jan Hubicka  <jh@suse.cz>
5109
5110         * optabs.c (expand_widen_pattern_expr): Use optabs accestors.
5111         (expand_ternary_op): Likewise.
5112         (expand_vec_shift_expr): Likewise.
5113         (expand_binop_directly): Likewise.
5114         (expand_binop): Likewise.
5115         (sign_expand_binop): Likewise.
5116         (expand_twoval_unop): Likewise.
5117         (expand_twoval_binop): Likewise.
5118         (expand_twoval_binop_libfunc): Likewise.
5119         (widen_clz): Likewise.
5120         (widen_bswap): Likewise.
5121         (expand_parity): Likewise.
5122         (expand_unop): Likewise.
5123         (expand_abs_nojump): Likewise.
5124         (expand_copysign): Likewise.
5125         (emit_no_conflict_block): Likewise.
5126         (emit_libcall_block): Likewise.
5127         (can_compare_p): Likewise.
5128         (prepare_cmp_insn): Likewise.
5129         (emit_cmp_and_jump_insn_1): Likewise.
5130         (prepare_float_lib_cmp): Likewise.
5131         (emit_conditional_add): Likewise.
5132         (gen_add2_insn): Likewise.
5133         (have_add2_insn): Likewise.
5134         (gen_sub2_insn): Likewise.
5135         (have_sub2_insn): Likewise.
5136         (can_extend_p): Likewise.
5137         (can_fix_p): Likewise.
5138         (can_float_p): Likewise.
5139         (expand_float): Likewise.
5140         (expand_fix): Likewise.
5141         (expand_sfix_optab): Likewise.
5142         (new_optab): Likewise.
5143         (new_convert_optab): Likewise.
5144         (init_libfuncs): Likewise.
5145         (init_interclass_conv_libfuncs): Likewise.
5146         (init_intraclass_conv_libfuncs): Likewise.
5147         (set_conv_libfunc): Likewise.
5148         (init_optabs): Likewise.
5149         (debug_optab_libfuncs): Likewise.
5150         (gen_cond_trap): Likewise.
5151         * optabs.h (optab_handler, convert_optab_hanlder): New.
5152         * genopinit.c: Update optabs generation table.
5153         * reload.c (find_reloads_address_1): Use optabs accestors.
5154         * builtins.c (expand_builtin_mathfn): Likewise.
5155         (expand_builtin_mathfn_2): Likewise.
5156         (expand_builtin_mathfn_3): Likewise.
5157         (expand_builtin_interclass_mathfn): Likewise.
5158         (expand_builtin_sincos): Likewise.
5159         (expand_builtin_cexpi): Likewise.
5160         (expand_builtin_powi): Likewise.
5161         (expand_builtin_strlen): Likewise.
5162         * dojump.c (do_jump): Likewise.
5163         * expr.c (convert_move): Likewise.
5164         (move_by_pieces): Likewise.
5165         (move_by_pieces_ninsns): Likewise.
5166         (can_store_by_pieces): Likewise.
5167         (store_by_pieces_1): Likewise.
5168         (emit_move_via_integer): Likewise.
5169         (emit_move_complex): Likewise.
5170         (emit_move_ccmode): Likewise.
5171         (emit_move_insn_1): Likewise.
5172         (emit_single_push_insn): Likewise.
5173         (store_constructor): Likewise.
5174         (expand_expr_real_1): Likewise.
5175         (do_store_flag): Likewise.
5176         * ada/misc.c (gnat_compute_largest_alignment): Likewise.
5177         (enumerate_modes): Likewise.
5178         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
5179         (supportable_widening_operation): Likewise.
5180         (supportable_narrowing_operation): Likewise.
5181         * expmed.c (store_bit_field_1): Likewise.
5182         (extract_bit_field_1): Likewise.
5183         (expand_mult_highpart_optab): Likewise.
5184         (expand_smod_pow2): Likewise.
5185         (expand_divmod): Likewise.
5186         (emit_store_flag): Likewise.
5187         * tree-vect-patterns.c
5188         (vect_pattern_recog_1): Likewise.
5189         * tree-ssa-loop-prefetch.c
5190         (nontemporal_store_p): Likewise.
5191         * tree-vect-transform.c (vect_model_reduction_cost): Likewise.
5192         (vect_create_epilog_for_reduction): Likewise.
5193         (vectorizable_reduction): Likewise.
5194         (vectorizable_operation): Likewise.
5195         (vect_strided_store_supported): Likewise.
5196         (vectorizable_store): Likewise.
5197         (vect_strided_load_supported): Likewise.
5198         (vectorizable_load): Likewise.
5199         * combine.c (simplify_comparison): Likewise.
5200         * tree-vect-generic.c
5201         (type_for_widest_vector_mode): Likewise.
5202         (expand_vector_operations_1): Likewise.
5203         * config/spu/spu.c (spu_expand_mov): Likewise.
5204         (spu_emit_vector_compare): Likewise.
5205         * config/rs6000/rs6000.c
5206         (rs6000_emit_vector_compare): Likewise.
5207         * stmt.c (add_case_node): Likewise.
5208         * reload1.c (gen_reload):
5209
5210 2007-08-09  Michael Matz  <matz@suse.de>
5211
5212         * tree.h (fixed_zerop): Declare as taking a const_tree.
5213         * tree.c (fixed_zerop): Take a const_tree.
5214
5215 2007-08-09  Ira Rosen  <irar@il.ibm.com>
5216
5217         * tree-vect-transform.c (vectorizable_store): Remove call to
5218         copy_virtual_operands() and call mark_symbols_for_renaming() for
5219         the created vector store.
5220         (vect_setup_realignment): Don't call copy_virtual_operands() and
5221         update_vuses_to_preheader(). 
5222         (vectorizable_load): Don't call copy_virtual_operands(). 
5223         (update_vuses_to_preheader): Remove.
5224
5225 2007-08-08  Chao-ying Fu  <fu@mips.com>
5226
5227         * tree.def (FIXED_POINT_TYPE): New type.
5228         (FIXED_CST): New constant.
5229         (FIXED_CONVERT_EXPR): New expr.
5230         * doc/c-tree.texi (Types): Document FIXED_POINT_TYPE.
5231         (Expressions): Document FIXED_CST and FIXED_CONVERT_EXPR.
5232         * tree.h (struct tree_base): Add saturating_flag.
5233         Remove one bit of spare for saturating_flag.
5234         (NUMERICAL_TYPE_CHECK): Support FIXED_POINT_TYPE.
5235         (NON_SAT_FIXED_POINT_TYPE_P, SAT_FIXED_POINT_TYPE_P,
5236         FIXED_POINT_TYPE_P): Define.
5237         (TYPE_SATURATING): Define.
5238         (TREE_FIXED_CST_PTR, TREE_FIXED_CST): Define.
5239         (struct tree_fixed_cst): New.
5240         (TYPE_IBIT, TYPE_FBIT): Define.
5241         (tree_node): Add fixed_cst.
5242         (enum tree_index): Add new enumeration values of
5243         TI_SAT_SFRACT_TYPE, TI_SAT_FRACT_TYPE, TI_SAT_LFRACT_TYPE,
5244         TI_SAT_LLFRACT_TYPE, TI_SAT_USFRACT_TYPE, TI_SAT_UFRACT_TYPE,
5245         TI_SAT_ULFRACT_TYPE, TI_SAT_ULLFRACT_TYPE, TI_SFRACT_TYPE,
5246         TI_FRACT_TYPE, TI_LFRACT_TYPE, TI_LLFRACT_TYPE, TI_USFRACT_TYPE,
5247         TI_UFRACT_TYPE, TI_ULFRACT_TYPE, TI_ULLFRACT_TYPE,
5248         TI_SAT_SACCUM_TYPE, TI_SAT_ACCUM_TYPE, TI_SAT_LACCUM_TYPE,
5249         TI_SAT_LLACCUM_TYPE, TI_SAT_USACCUM_TYPE, TI_SAT_UACCUM_TYPE,
5250         TI_SAT_ULACCUM_TYPE, TI_SAT_ULLACCUM_TYPE, TI_SACCUM_TYPE,
5251         TI_ACCUM_TYPE, TI_LACCUM_TYPE, TI_LLACCUM_TYPE, TI_USACCUM_TYPE,
5252         TI_UACCUM_TYPE, TI_ULACCUM_TYPE, TI_ULLACCUM_TYPE,
5253         TI_QQ_TYPE, TI_HQ_TYPE,_TYPE, TI_SQ_TYPE, TI_DQ_TYPE, TI_TQ_TYPE,
5254         TI_UQQ_TYPE, TI_UHQ_TYPE, TI_USQ_TYPE, TI_UDQ_TYPE, TI_UTQ_TYPE,
5255         TI_SAT_QQ_TYPE, TI_SAT_HQ_TYPE, TI_SAT_SQ_TYPE, TI_SAT_DQ_TYPE,
5256         TI_SAT_TQ_TYPE, TI_SAT_UQQ_TYPE, TI_SAT_UHQ_TYPE, TI_SAT_USQ_TYPE,
5257         TI_SAT_UDQ_TYPE, TI_SAT_UTQ_TYPE, TI_HA_TYPE, TI_SA_TYPE, TI_DA_TYPE,
5258         TI_TA_TYPE, TI_UHA_TYPE, TI_USA_TYPE, TI_UDA_TYPE, TI_UTA_TYPE,
5259         TI_SAT_HA_TYPE, TI_SAT_SA_TYPE, TI_SAT_DA_TYPE, TI_SAT_TA_TYPE,
5260         TI_SAT_UHA_TYPE, TI_SAT_USA_TYPE, TI_SAT_UDA_TYPE, TI_SAT_UTA_TYPE.
5261         (sat_short_fract_type_node, sat_fract_type_node,
5262         sat_long_fract_type_node, sat_long_long_fract_type_node,
5263         sat_unsigned_short_fract_type_node, sat_unsigned_fract_type_node,
5264         sat_unsigned_long_fract_type_node,
5265         sat_unsigned_long_long_fract_type_node, short_fract_type_node,
5266         fract_type_node, long_fract_type_node, long_long_fract_type_node,
5267         unsigned_short_fract_type_node, unsigned_fract_type_node,
5268         unsigned_long_fract_type_node, unsigned_long_long_fract_type_node,
5269         sat_short_accum_type_node, sat_accum_type_node,
5270         sat_long_accum_type_node, sat_long_long_accum_type_node,
5271         sat_unsigned_short_accum_type_node, sat_unsigned_accum_type_node,
5272         sat_unsigned_long_accum_type_node,
5273         sat_unsigned_long_long_accum_type_node, short_accum_type_node,
5274         accum_type_node, long_accum_type_node, long_long_accum_type_node,
5275         unsigned_short_accum_type_node, unsigned_accum_type_node,
5276         unsigned_long_accum_type_node, unsigned_long_long_accum_type_node,
5277         qq_type_node, hq_type_node, sq_type_node, dq_type_node, tq_type_node,
5278         uqq_type_node, uhq_type_node, usq_type_node, udq_type_node,
5279         utq_type_node, sat_qq_type_node, sat_hq_type_node, sat_sq_type_node,
5280         sat_dq_type_node, sat_tq_type_node, sat_uqq_type_node,
5281         sat_uhq_type_node, sat_usq_type_node, sat_udq_type_node,
5282         sat_utq_type_node, ha_type_node, sa_type_node, da_type_node,
5283         ta_type_node, uha_type_node, usa_type_node, uda_type_node,
5284         uta_type_node, sat_ha_type_node, sat_sa_type_node, sat_da_type_node,
5285         sat_ta_type_node, sat_uha_type_node, sat_usa_type_node,
5286         sat_uda_type_node, sat_uta_type_node): New macro.
5287         (make_fract_type, make_accum_type): Declare.
5288         (make_signed_fract_type, make_unsigned_fract_type,
5289         make_sat_signed_fract_type, make_sat_unsigned_fract_type,
5290         make_signed_accum_type, make_unsigned_accum_type,
5291         make_sat_signed_accum_type, make_sat_unsigned_accum_type,
5292         make_or_reuse_signed_fract_type, make_or_reuse_unsigned_fract_type,
5293         make_or_reuse_sat_signed_fract_type,
5294         make_or_reuse_sat_unsigned_fract_type, make_or_reuse_signed_accum_type,
5295         make_or_reuse_unsigned_accum_type, make_or_reuse_sat_signed_accum_type,
5296         make_or_reuse_sat_unsigned_accum_type): New macro.
5297         (fixed_zerop): Declare.
5298         * defaults.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE,
5299         LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
5300         SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
5301         LONG_LONG_ACCUM_TYPE_SIZE): Define.
5302         * treestruct.def: Add TS_FIXED_CST.
5303         * Makefile.in (c-pretty-print.o): Add dependence on fixed-value.h.
5304         (tree.o): Likewise.
5305         (tree-dump.o): Likewise.
5306         (print-tree.o): Likewise.
5307         (tree-pretty-print.o): Likewise.
5308         (fold-const.o): Likewise.
5309         * tree-complex.c (some_nonzerop): Handle FIXED_CST.
5310         * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle FIXED_CST.
5311         (is_gimple_min_invariant): Handle FIXED_CST.
5312         * stor-layout.c (int_mode_for_mode): Handle MODE_FRACT, MODE_UFRACT,
5313         MODE_ACCUM, MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
5314         MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
5315         (layout_type): Handle FIXED_POINT_TYPE.
5316         (make_fract_type, make_accum_type): New functions.
5317         * tree-browser.c (browse_tree): Handle FIXED_POINT_TYPE.
5318         * tree-dump.c (fixed-value.h): New include.
5319         (dump_fixed): New function.
5320         (dequeue_and_dump): Handle FIXED_POINT_TYPE and FIXED_CST.
5321         * tree-inline.c (remap_type_1): Handle FIXED_POINT_TYPE.
5322         (estimate_num_insns_1): Handle FIXED_CST and FIXED_CONVERT_EXPR.
5323         * tree-pretty-print.c (fixed-value.h): New include.
5324         (dump_generic_node): Handle FIXED_POINT_TYPE, FIXED_CST, and
5325         FIXED_CONVERT_EXPR.
5326         * tree-scalar-evolution.c (get_scalar_evolution): Handle FIXED_CST.
5327         * tree-ssa-loop-im.c (for_each_index): Handle FIXED_CST.
5328         * tree-ssa-pre.c (poolify_tree): Handle FIXED_CST.
5329         * tree-ssa-reassoc.c (break_up_subtract_bb): We can do reassociation
5330         for non-saturating fixed-point types.
5331         (reassociate_bb): Likewise.
5332         * emit-rtl.c (fixed-value.h): New include.
5333         (fconst0, fconst1): New array.
5334         (init_emit_once): Initialize fconst0 and fconst1 for fixed-point modes.
5335         * tree-vect-generic.c expand_vector_operation): Support
5336         MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, and
5337         MODE_VECTOR_UACCUM.
5338         (type_for_widest_vector_mode): Add one parameter for the 
5339         saturating flag.
5340         Check scalar FRACT, UFRACT, ACCUM, and UACCUM mode to select their
5341         vector mode.
5342         Pass the satp parameter to type_for_mode for fixed-point types.
5343         (expand_vector_operations_1): Pass the saturating flag to
5344         type_for_widest_vector_mode.
5345         Support MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
5346         and MODE_VECTOR_UACCUM.
5347         * tree-vect-transform.c (vect_is_simple_cond): Support FIXED_CST.
5348         (vectorizable_condition): Likewise.
5349         * tree.c (fixed-value.h): New include.
5350         (tree_code_size): Support FIXED_CST.
5351         (build_fixed): New function.
5352         (build_one_cst): Support FIXED_POINT_TYPE for accum types.
5353         (fixed_zerop): New function.
5354         (tree_node_structure): Support FIXED_CST.
5355         (type_contains_placeholder_1): Support FIXED_POINT_TYPE.
5356         (build_type_attribute_qual_variant): Handle FIXED_POINT_TYPE.
5357         (type_hash_eq): Handle FIXED_POINT_TYPE.
5358         (simple_cst_equal): Support FIXED_CST.
5359         (iterative_hash_expr): Handle FIXED_CST.
5360         (get_unwidened): Make sure type is not FIXED_POINT_TYPE.
5361         (get_narrower): Likewise.
5362         (variably_modified_type_p): Handle FIXED_POINT_TYPE.
5363         (make_or_reuse_fract_type, make_or_reuse_accum_type): New functions.
5364         (build_common_tree_nodes_2): Use MAKE_FIXED_TYPE_NODE_FAMILY and
5365         MAKE_FIXED_MODE_NODE macros to initialize fixed-point type
5366         nodes.
5367         (build_vector_type_for_mode): Handle MODE_VECTOR_FRACT,
5368         MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
5369         (initializer_zerop): Support FIXED_CST.
5370         (walk_tree): Handle FIXED_CST and FIXED_POINT_TYPE.
5371         * dwarf2out.c (base_type_die): Use DW_ATE_signed_fixed or
5372         DW_ATE_unsigned_fixed to describe FIXED_POINT_TYPE.
5373         (is_base_type): Handle FIXED_POINT_TYPE.
5374         (add_type_attribute): Handle FIXED_POINT_TYPE.
5375         (gen_type_die_with_usage): Handle FIXED_POINT_TYPE.
5376         * print-tree.c (fixed-value.h): New include.
5377         (print_node_brief): Support FIXED_CST.
5378         (print_node): Support FIXED_POINT_TYPE and FIXED_CST.
5379         * c-pretty-print.c (fixed-value.h): New include.
5380         (pp_c_type_specifier): Handle FIXED_POINT_TYPE.  Need to pass
5381         TYPE_SATURATING to c_common_type_for_mode for fixed-point modes.
5382         (pp_c_direct_abstract_declarator): Handle FIXED_POINT_TYPE.
5383         Support fixed-point types for inner items in VECTOR_TYPE.
5384         (pp_c_direct_declarator): Likewise.
5385         (pp_c_declarator): Likewise.
5386         (pp_c_fixed_constant): New function.
5387         (pp_c_constant): Handle FIXED_CST.
5388         (pp_c_primary_expression): Likewise.
5389         (pp_c_expression): Likewise.
5390         * fold-const.c (fixed-value.h): New include.
5391         (negate_expr_p): Return true for FIXED_CST.
5392         (fold_negate_expr): Support FIXED_CST.
5393         (split_tree): Support FIXED_CST.
5394         (const_binop): Support FIXED_CST.
5395         (fold_convert_const_int_from_fixed): New function to convert from
5396         fixed to int.
5397         (fold_convert_const_real_from_fixed): New function to convert from
5398         fixed to real.
5399         (fold_convert_const_fixed_from_fixed): New function to convert from
5400         fixed to another fixed.
5401         (fold_convert_const_fixed_from_int): New function to convert from
5402         int to fixed.
5403         (fold_convert_const_fixed_from_real): New function to convert from
5404         real to fixed.
5405         (fold_convert_const): Support conversions from fixed to int, from
5406         fixed to real, from fixed to fixed, from int to fixed, and from real
5407         to fixed.
5408         (fold_convert): Support FIXED_CST and FIXED_POINT_TYPE.
5409         (operand_equal_p): Support FIXED_CST.
5410         (make_range): For fixed-point modes, we need to pass the
5411         saturating flag as the 2nd parameter.
5412         (tree_swap_operands_p): Handle FIXED_CST.
5413         (fold_plusminus_mult_expr): For fract modes, we cannot generate
5414         constant 1.
5415         (fold_unary): Support FIXED_CONVERT_EXPR.
5416         (fold_binary): Handle FIXED_CST.
5417         Make sure the type is not saturating, before associating operations.
5418         Ex: A + B + C, A * B * C, (A1 * C1) +/- (A2 * C2).
5419         (tree_expr_nonnegative_warnv_p): Handle FIXED_CST.
5420         (fold_negate_const): Support FIXED_CST.
5421         (fold_relational_const): Support FIXED_CST.
5422         * gimplify.c (omp_firstprivatize_type_sizes): Handle FIXED_POINT_TYPE.
5423         (gimplify_expr): Handle FIXED_CST.
5424         (gimplify_type_sizes): Handle FIXED_POINT_TYPE.
5425         * ipa-prop.c (ipa_callsite_compute_param): Support FIXED_CST.
5426         * ipa-type-escape.c (type_to_consider): Handle FIXED_POINT_TYPE.
5427         * doc/tm.texi (Type Layout): Document SHORT_FRACT_TYPE_SIZE,
5428         FRACT_TYPE_SIZE, LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
5429         SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
5430         LONG_LONG_ACCUM_TYPE_SIZE.
5431         * dbxout.c (dbxout_type): Handle FIXED_POINT_TYPE.
5432         * c-aux-info.c (gen_type): Handle FIXED_POINT_TYPE.
5433         * tree-sra.c (is_sra_scalar_type): Support FIXED_POINT_TYPE.
5434         * expmed.c (extract_bit_field): Support MODE_FRACT, MODE_UFRACT,
5435         MODE_ACCUM, and MODE_UACCUM.
5436         * tree-vectorizer.c (vect_is_simple_reduction): Check for saturating
5437         fixed-point types to disable reduction.
5438         * explow.c (promote_mode): Support FIXED_POINT_TYPE.
5439
5440 2007-08-08  David Edelsohn  <edelsohn@gnu.org>
5441
5442         * config/rs6000/x-rs6000: New file.
5443         * config/rs6000/darwin.h (CC1_SPEC): Add cc1_cpu.
5444         * config/rs6000/rs6000.h (EXTRA_SPECS): Add cc1_cpu.
5445         (EXTRA_SPEC_FUNCTIONS): Define.
5446         (HAVE_LOCAL_CPU_DETECT): Define.
5447         (CC1_CPU_SPEC): Define.
5448         * config/rs6000/driver-rs6000.c: New file.
5449         * config/rs6000/aix.h (CC1_SPEC): Define.
5450         * config/rs6000/sysv4.h (CC1_SPEC): Add cc1_cpu.
5451         * config.host: Add x-rs6000 to host_xmake_file if host and target
5452         are rs6000 or powerpc.
5453
5454 2007-08-08  Paolo Bonzini <paolo.bonzini@lu.unisi.ch>
5455
5456         * config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Use +=.
5457
5458 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
5459             Sandra Loosemore  <sandra@codesourcery.com>
5460             Chao-ying Fu  <fu@mips.com>
5461             Nigel Stephens  <nigel@mips.com>
5462             David Ung  <davidu@mips.com>
5463
5464         * doc/invoke.texi (-mcode-readable): Document.
5465         * config/mips/mips.opt (mcode-readable): New option.
5466         * config/mips/mips-protos.h (SYMBOL_32_HIGH): New symbol type.
5467         * config/mips/mips.h (mips_code_readable_setting): New enum.
5468         (mips_code_readable): Declare.
5469         (TARGET_MIPS16_TEXT_LOADS, TARGET_MIPS16_PCREL_LOADS): New macros.
5470         (TARGET_MIPS16_SHORT_JUMP_TABLES): New macro.
5471         (JUMP_TABLES_IN_TEXT_SECTION): Use it.
5472         (CASE_VECTOR_MODE, CASE_VECTOR_PC_RELATIVE): Likewise.  Remove
5473         boiler-plate comments.
5474         (ASM_OUTPUT_ADDR_DIFF_ELT): Use TARGET_MIPS16_SHORT_JUMP_TABLES.
5475         * config/mips/mips.c (mips_code_readable): New variable.
5476         (mips_classify_symbol): Only return SYMBOL_PC_RELATIVE for
5477         MIPS16 labels if TARGET_MIPS16_SHORT_JUMP_TABLES.  Use both the
5478         context and -mcode-readable setting to restrict the use of
5479         SYMBOL_PC_RELATIVE for MIPS16 constant pool references.
5480         Only return TARGET_FORCE_TO_MEM if PC-relative loads are allowed.
5481         (mips_symbolic_constant_p): Handle SYMBOL_32_HIGH.
5482         (mips_blocks_for_constant_p): Only return false for
5483         TARGET_MIPS16_PCREL_LOADS.
5484         (mips_symbol_insns_1): Treat HIGHs as 2 extended instructions
5485         for MIPS16.  Handle SYMBOL_32_HIGH.
5486         (mips_const_insns): Allow HIGHs for MIPS16 too.
5487         (mips_unspec_address_offset): New function, split out from...
5488         (mips_unspec_address): ...here.
5489         (mips_output_move): Handle MIPS16 HIGH moves.  Use "li" to load
5490         16-bit symbolic constants.  Assert approropiate conditions for
5491         using the "la" and "dla" macros.
5492         (mips_handle_option): Handle -mcode-readable=.
5493         (override_options): Use %hi/%lo relocations for TARGET_MIPS16 too.
5494         Set up mips_lo_relocs[SYMBOL_32_HIGH].
5495         (mips_strip_unspec_address): New function, split out from...
5496         (print_operand_reloc): ...here.
5497         (print_operand): Pass constants through mips_strip_unspec_address.
5498         (print_operand_address): Likewise.
5499         (mips_output_mi_thunk): Remove guard of mips16_lay_out_constants.
5500         (mips_select_rtx_section): Remove MIPS16 handling.
5501         (mips16_gp_pseudo_reg): Check currently_expanding_to_rtl.
5502         (mips16_rewrite_pool_refs): Wrap the labels in an address UNSPEC.
5503         (mips16_lay_out_constants): Do nothing unless
5504         TARGET_MIPS16_PCREL_LOADS.
5505         (mips_avoid_hazards): Remove guard of mips16_lay_out_constants.
5506         * config/mips/mips.md: Split HIGHs for MIPS16.
5507         (tablejump): Use TARGET_MIPS16_SHORT_JUMP_TABLES.
5508
5509 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
5510
5511         * config/mips/mips-protos.h (mips_emit_move): Declare.
5512         * config/mips/mips.c (mips_emit_move): New function.
5513         (mips_force_temporary): Use mips_emit_move instead of emit_move_insn.
5514         (mips_legitimize_const_move): Likewise.
5515         (mips_legitimize_move): Likewise.
5516         (mips_split_64bit_move): Likewise.
5517         (mips_restore_gp): Likewise.
5518         (mips_load_call_address): Likewise.
5519         (mips_emit_fcc_reload): Likewise.
5520         (mips_set_return_address): Likewise.
5521         (mips_block_move_straight): Likewise.
5522         (mips_block_move_loop): Likewise.
5523         (mips_setup_incoming_varargs): Likewise.
5524         (mips_save_reg): Likewise.
5525         (mips_expand_prologue): Likewise.
5526         (mips_restore_reg): Likewise.
5527         (mips_expand_epilogue): Likewise.
5528         (mips_output_mi_thunk): Likewise.
5529         (build_mips16_call_stub): Likewise.
5530         (mips_builtin_branch_and_move): Likewise.
5531         * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Likewise.
5532         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
5533         (fixuns_truncdfdi2): Likewise.
5534         (fixuns_truncsfsi2): Likewise.
5535         (fixuns_truncsfdi2): Likewise.
5536         (loadgp_absolute): Likewise.
5537         (builtin_setjmp_setup): Likewise.
5538         (builtin_longjmp): Likewise.
5539         (untyped_call): Likewise.
5540
5541 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
5542
5543         * config/mips/mips-protos.h (mips_split_symbol): Add a mode and
5544         an "rtx *" argument.  Return a bool.
5545         * config/mips/mips.c (mips_split_symbol): Accept arbitrary source
5546         values and return true if they can be split.  Take the same kind of
5547         mode argument as mips_symbol_insns.  Add a "lo_sum_out" parameter
5548         and store the lo_sum there if nonnull.  Use the symbol type to
5549         determine whether a $gp or HIGH is needed.
5550         (mips_legitimize_address): Update call to mips_split_symbol and
5551         simplify accordingly.
5552         (mips_legitimize_const_move): Likewise.
5553         * config/mips/mips.md: In the combine define_split,
5554         check mips_split_symbol instead of splittable_symbolic_operand.
5555         Update use of mips_split_symbol in the generator code.
5556         * config/mips/predicates.md (splittable_symbolic_operand): Delete.
5557
5558 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
5559
5560         * config/mips/mips.c (mips_symbolic_address_p): Delete.
5561         (mips_symbol_insns_1): New function, split out from...
5562         (mips_symbol_insns): ...here.  Take a mode argument.  Treat loads
5563         and stores separately from load addresses.
5564         (mips_classify_address): Replace uses of mips_symbolic_address_p
5565         with uses of mips_symbol_insns.
5566         (mips_address_insns): Update calls to mips_symbol_insns.
5567         (mips_const_insns): Likewise.
5568         (mips_legitimize_address): Likewise.
5569
5570 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
5571
5572         * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): New symbol type.
5573         * config/mips/mips.c (mips_classify_symbol): Skip TARGET_ABICALLS
5574         block for locally-binding symbols if TARGET_ABSOLUTE_ABICALLS.
5575         Return SYMBOL_FORCE_TO_MEM instead of SYMBOL_ABSOLUTE for
5576         non-call contexts if TARGET_MIPS16.
5577         (mips_symbolic_constant_p): Handle SYMBOL_FORCE_TO_MEM.
5578         (mips_symbolic_address_p): Likewise.  Remove special TARGET_MIPS16
5579         code for SYMBOL_ABSOLUTE.
5580         (mips_symbol_insns): Likewise.
5581
5582 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
5583
5584         * config/mips/mips-protos.h (mips_symbol_context): New enumeration.
5585         * config/mips/mips.c (mips_classify_symbol): Take a context argument.
5586         (mips_symbolic_constant_p): Likewise.  Update the call to
5587         mips_classify_symbol.
5588         (mips_classify_address): Update the calls to mips_symbolic_constant_p.
5589         (mips_const_insns): Likewise.  Update the call to mips_classify_symbol.
5590         (mips_legitimize_address): Update the call to mips_symbolic_constant_p.
5591         (print_operand_reloc): Add a context argument.  Update the call to
5592         mips_symbolic_constant_p.
5593         (print_operand): Update the calls to print_operand_reloc.
5594         (print_operand_address): Use print_operand_reloc rather than
5595         print_operand.
5596         (mips_rewrite_small_data_p): Add a context argument.  Update the call
5597         to mips_symbolic_constant_p.
5598         (mips_small_data_pattern_1): Make DATA the containing mem.
5599         Update the call to mips_rewrite_small_data_p.
5600         (mips_rewrite_small_data_1): Likewise.
5601         (mips_use_anchors_for_symbol_p): Update the call to
5602         mips_symbolic_constant_p.
5603         * config/mips/predicates.md (const_call_insn_operand): Likewise.
5604         (splittable_symbolic_operand): Likewise.
5605         (move_operand): Likewise.
5606         (absolute_symbolic_operand): Likewise.
5607         (got_disp_operand): Likewise.
5608         (got_page_ofst_operand): Likewise.
5609
5610 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
5611
5612         * config/mips/mips-protos.h (SYMBOL_GENERAL): Rename to...
5613         (SYMBOL_ABSOLUTE): ...this.
5614         (SYMBOL_SMALL_DATA): Rename to...
5615         (SYMBOL_GP_RELATIVE): ...this.
5616         (SYMBOL_CONSTANT_POOL): Rename to...
5617         (SYMBOL_PC_RELATIVE): ...this.
5618         * config/mips/mips.c (mips_classify_symbol, mips_symbolic_constant_p)
5619         (mips_symbolic_address_p, mips_symbol_insns, override_options)
5620         (mips_rewrite_small_data_p, mips_use_anchors_for_symbol_p): Update
5621         after above changes.
5622         * config/mips/predicates.md (const_call_insn_operand): Likewise.
5623         (general_symbolic_operand): Rename to...
5624         (absolute_symbolic_operand): ...this.
5625         * config/mips/mips.md: Update after above changes.
5626
5627 2007-08-08  Vladimir Yanovsky  <yanov@il.ibm.com>
5628             Revital Eres  <eres@il.ibm.com>
5629
5630         * ddg.c (print_ddg): Add dump information.
5631         * modulo-sched.c (print_node_sched_params): Add parameter and
5632         verbosity.
5633         (calculate_maxii): Remove function.
5634         (undo_generate_reg_moves): Likewise.
5635         (undo_permute_partial_schedule): Likewise.
5636         (kernel_number_of_cycles): Likewise.
5637         (MAXII_FACTOR): New definition to calculate the upper bound of II.
5638         (sms_schedule): Use it.  Remove profitability checks.
5639         (sms_schedule_by_order): Fix order of nodes within the cycle.
5640
5641 2007-08-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5642
5643         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt0.o in profile mode, add
5644         -profile option, add pie support.
5645         (ENDFILE_SPEC): New spec.
5646         * config/gnu.h (LIB_SPEC): Add -profile option.
5647
5648 2007-08-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5649
5650         * config/i386/gnu.h (CPP_SPEC): Add -pthread option.
5651         * config/gnu.h (LIB_SPEC): Likewise.
5652
5653 2007-08-07  Yaz Saito  <saito@google.com>
5654             Ian Lance Taylor  <iant@google.com>
5655
5656         * common.opt (finstrument-functions-exclude-function-list): New
5657         option.
5658         (finstrument-functions-exclude-file-list): New option.
5659         * opts.c (char_p): Define and DEF_VEC.
5660         (flag_instrument_functions_exclude_functions): New static
5661         variable.
5662         (flag_instrument_functions_exclude_files): New static variable.
5663         (add_instrument_functions_exclude_list): New static function.
5664         (flag_instrument_functions_exclude_p): New function.
5665         (common_handle_option): Handle new options.
5666         * flags.h (flag_instrument_functions_exclude_p): Declare.
5667         * gimplify.c (gimplify_function_tree): Call
5668         flag_instrument_functions_exclude_p.
5669         * doc/invoke.texi (Option Summary): Mention new options.
5670         (Code Gen Options): Document new options.
5671
5672 2007-08-07  Ian Lance Taylor  <iant@google.com>
5673
5674         PR rtl-optimization/32776
5675         * lower-subreg.c (resolve_clobber): Call resolve_reg_notes.
5676         (resolve_use): Likewise.
5677         (decompose_multiword_subregs): Remove "changed" local variable.
5678
5679 2007-08-07  Carlos O'Donell  <carlos@codesourcery.com>
5680
5681         * configure.ac: Define HAVE_GNU_AS if $gas_flag is yes.
5682         * configure: Regenerate.
5683         * config.in: Regenerate.
5684         * gcc.c [HAVE_GNU_AS]: Add "%{v} %{w:-W} %{I*} " to asm_options
5685         spec string.
5686
5687 2007-08-07  Ian Lance Taylor  <iant@google.com>
5688
5689         * lower-subreg.c (resolve_clobber): If the clobber has a LIBCALL
5690         note, just delete the insn.
5691
5692 2007-08-07  Andreas Schwab  <schwab@suse.de>
5693
5694         PR bootstrap/32973
5695         * gengtype-lex.l: Ignore backslash/newline pair while scanning a
5696         struct definition.
5697
5698 2007-08-07  Andreas Krebbel  <krebbel1@de.ibm.com>
5699
5700         * lower-subreg.c (resolve_subreg_use): Remove assertion.
5701         (find_decomposable_shift_zext, resolve_shift_zext): New functions.
5702         (decompose_multiword_subregs): Use the functions above to decompose
5703         multiword shifts and zero-extends.
5704
5705 2007-08-07  Rask Ingemann Lambertsen  <rask@sygehus.dk>
5706
5707         * doc/sourcebuild.texi (Test Directives): Fix "compile" and
5708         "assemble" descriptions which were swapped.
5709
5710 2007-08-06  Chao-ying Fu  <fu@mips.com>
5711
5712         * fixed-value.h: New file.
5713         * fixed-value.c: New file.
5714         * Makefile.in (OBJS-common): Add fixed-value.o.
5715         (fixed-value.o): New rule.
5716         (GTFILES): Add fixed-value.h.
5717         * double-int.c (double_int_scmp): We should use unsigned HOST_WIDE_INT
5718         to compare a.low and b.low.
5719         * gengtype.c (main): Handle FIXED_VALUE_TYPE type as scalar typedef.
5720
5721 2007-08-06  H.J. Lu  <hongjiu.lu@intel.com>
5722             Daniel Jacobowitz  <dan@codesourcery.com>
5723
5724         PR target/31868
5725         * config.gcc (x86_64-*-freebsd*): Add i386/t-crtstuff to
5726         tmake_file.
5727         (x86_64-*-netbsd*): Likewise.
5728         (x86_64-*-linux*): Likewise.
5729         (x86_64-*-kfreebsd*-gnu): Likewise.
5730         (x86_64-*-knetbsd*-gnu): Likewise.
5731         (i[34567]86-*-solaris2.1[0-9]*): Likewise.
5732
5733         * config/i386/t-linux64 (CRTSTUFF_T_CFLAGS): Removed.
5734
5735         * config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Update comments.
5736         Add -fno-asynchronous-unwind-tables.
5737
5738         * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Add $(CRTSTUFF_T_CFLAGS).
5739         * config/t-libc-ok (CRTSTUFF_T_CFLAGS_S): Likewise.
5740         * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Likewise.
5741         * config/t-netbsd (CRTSTUFF_T_CFLAGS_S): Likewise.
5742         * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Likewise.
5743
5744 2007-08-06  Steve Ellcey  <sje@cup.hp.com>
5745
5746         * config/ia64/ia64.c (ia64_c_mode_for_suffix): New.
5747         (TARGET_C_MODE_FOR_SUFFIX): New.
5748
5749 2007-08-06  Steve Ellcey  <sje@cup.hp.com>
5750
5751         * config/ia64/div.md (m2subrf4_cond): Change 'g' to 'G'.
5752
5753 2007-08-06  Steve Ellcey  <sje@cup.hp.com>
5754
5755         * config/ia64/ia64.h (MODES_TIEABLE_P): Fix typo.
5756
5757 2007-08-06  H.J. Lu  <hongjiu.lu@intel.com>
5758
5759         * config/i386/i386.md: Check TARGET_ macros and optimize_size
5760         before checking function returns in conditional expressions.
5761
5762 2007-08-06  Alfred Minarik  <a.minarik@aon.at>
5763
5764         PR pch/13676
5765         * doc/invoke.texi: Add .hp, .hxx, .hpp, .h, .HPP, .tcc as c++ header.
5766
5767 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5768
5769         PR middle-end/32988
5770         * tree.c (build2_stat): Instead of checking for INTEGER_TYPE, check
5771         for INTEGRAL_TYPE_P.
5772
5773 2008-08-05  Paolo Bonzini  <bonzini@gnu.org>
5774
5775         * configure.ac: Remove --enable-checking=df from default settings.
5776         * tree-pass.h (TODO_df_verify): New.  Shift TODO_mark_first_instance.
5777         * df-core.c (df_finish_pass) [ENABLE_CHECKING]: Schedule verification
5778         if the parameter is true.
5779         (df_analyze) [!ENABLE_DF_CHECKING]: Also do verification if the
5780         DF_VERIFY_SCHEDULED flag is true.
5781         * df.h (enum df_changeable_flags): Add DF_VERIFY_SCHEDULED.
5782         (df_finish_pass): Adjust prototype.
5783         * passes.c (execute_todo): Schedule verification if TODO_df_verify is
5784         true.
5785
5786         * see.c (pass_see): Add TODO_df_verify.
5787         * loop-init.c (pass_rtl_move_loop_invariants): Add TODO_df_verify.
5788         * global.c (rest_of_handle_global_alloc): Schedule verification
5789         after the pass.
5790         * local-alloc.c (rest_of_handle_local_alloc): Schedule verification
5791         before the pass.
5792         * function.c (pass_thread_prologue_and_epilogue): Add TODO_df_verify.
5793         * gcse.c (rest_of_handle_gcse): Adjust call to df_finish_pass.
5794         * loop-iv.c (iv_analysis_done): Schedule verification after the pass.
5795
5796         * config/sh/sh.c (sh_output_mi_thunk): Remove dead code.
5797         * config/ia64/ia64.c (ia64_reorg): Adjust call to df_finish_pass.
5798         * config/bfin/bfin.c (bfin_reorg): Adjust call to df_finish_pass.
5799
5800 2007-08-05  Vladimir Yanovsky  <yanov@il.ibm.com>
5801             Revital Eres <eres@il.ibm.com>
5802
5803         * doc/invoke.texi (-fmodulo-sched-allow-regmoves): Document new
5804         flag.
5805         * ddg.c (create_ddg_dependence): Rename to...
5806         (create_ddg_dep_from_intra_loop_link): This.  Do not check
5807         for interloop edges.  Do not create anti dependence edge when
5808         a true dependence edge exists in the opposite direction and
5809         -fmodulo-sched-allow-regmoves is set.
5810         (build_intra_loop_deps): Call create_ddg_dep_from_intra_loop_link.
5811         (add_cross_iteration_register_deps): Create anti dependence edge
5812         when -fno-modulo-sched-allow-regmoves is set.
5813         * common.opt (-fmodulo-sched-allow-regmoves): New flag.
5814
5815 2007-08-04  Richard Sandiford  <richard@codesourcery.com>
5816
5817         * config/arm/arm.md (movsi): Add braces.
5818
5819 2007-08-04  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5820
5821         PR middle-end/32780
5822         * fold-const.c (fold_binary <case MINUS_EXPR>): Fix the type of
5823         operands for the folding of "A - (A & B)" into "~B & A"; cast them
5824         to type.
5825
5826 2007-08-03  Zdenek Dvorak  <ook@ucw.cz>
5827
5828         * tree-ssa-threadupdate.c (thread_through_all_blocks): Use loops'
5829         state accessor functions.
5830         * cfgloopmanip.c (remove_path, create_preheaders,
5831         force_single_succ_latches, fix_loop_structure): Ditto.
5832         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
5833         tree_duplicate_loop_to_header_edge): Ditto.
5834         * cfgloopanal.c (mark_irreducible_loops): Ditto.
5835         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize):
5836         Ditto.
5837         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures,
5838         cleanup_tree_cfg): Ditto.
5839         * tree-cfg.c (tree_merge_blocks): Ditto.
5840         * cfgloop.c (rescan_loop_exit, record_loop_exits,
5841         release_recorded_exits, get_loop_exit_edges, verify_loop_structure,
5842         loop_preheader_edge, single_exit): Ditto.
5843         (flow_loops_find): Do not clear loops->state.
5844         * cfgloop.h (loops_state_satisfies_p, loops_state_set,
5845         loops_state_clear): New functions.
5846
5847 2007-08-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5848
5849         PR middle-end/32399
5850         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
5851         when adding to the base and convert ELT to sizetype instead of type.
5852
5853 2007-08-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5854
5855         PR middle-end/32304
5856         * ipa-reference.c (has_proper_scope_for_analysis): Return false when
5857         the decl's type has TYPE_NEEDS_CONSTRUCTING set.
5858
5859 2007-08-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5860
5861         PR middle-end/32935
5862         * fold-convert.c (fold_negate_expr <NOP_EXPR>): Convert back to the
5863          correct type the negate expression.
5864
5865 2007-08-03  Jan Hubicka  <jh@suse.cz>
5866
5867         * i386.c (setup_incoming_varargs_64): Tolerate 64bit preferred
5868         stack boundary.
5869
5870 2007-08-03  David Edelsohn  <edelsohn@gnu.org>
5871
5872         * config/rs6000/rs6000.c (struct processor_cost): Change
5873         l1_cache_lines to l1_cache_size.  Add l2_cache_size.
5874         (*_cost): Convert l1 cache information to kilobytes.  Add l2 cache
5875         information.
5876         (rios1_costs, rios2_cost): Correct cache line size.
5877         (rs6000_override_options): Set l2-cache-size parameter.
5878
5879 2007-08-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5880             Diego Novillo  <dnovillo@google.com>
5881
5882         PR 31521
5883         * tree-vrp.c (simplify_div_or_mod_using_ranges): Also simplify
5884         if the range includes 0.
5885
5886 2007-08-03  Ben Elliston  <bje@au.ibm.com>
5887
5888         * config/spu/spu.md (dftsv, dftsv_celledp): Attach the appropriate
5889         mode to unspec expressions to silence a warning from the generator
5890         programs.
5891         
5892 2007-08-02  Steve Ellcey  <sje@cup.hp.com>
5893
5894         * config/ia64/constraints.md ("U"): Make constraint vector only.
5895
5896 2007-08-02  Nathan Froyd  <froydnj@codesourcery.com>
5897
5898         PR middle-end/25446
5899         * c-objc-common.c (c_cannot_inline_tree_fn): Check for an
5900         always_inline attribute on the function decl.
5901
5902 2007-08-02  Nathan Froyd  <froydnj@codesourcery.com>
5903
5904         PR middle-end/25445
5905         * varasm.c (default_binds_local_p_1): Consult flag_whole_program
5906         if we are compiling with -fPIC.
5907
5908 2007-08-02  Sandra Loosemore  <sandra@codesourcery.com>
5909             Nigel Stephens  <nigel@mips.com>
5910
5911         * longlong.h [__mips__] (count_leading_zeros, COUNT_LEADING_ZEROS_0):
5912         Define for MIPS32 and MIPS64.
5913
5914 2007-08-02  Nick Clifton  <nickc@redhat.com>
5915
5916         * config/host-hpux.c: Change copyright header to refer to version
5917         3 of the GNU General Public License and to point readers at the
5918         COPYING3 file and the FSF's license web page.
5919         * config/alpha/predicates.md, config/alpha/vms-ld.c,
5920         config/alpha/linux.h, config/alpha/alpha.opt,
5921         config/alpha/linux-elf.h, config/alpha/vms.h, config/alpha/elf.h,
5922         config/alpha/vms-unwind.h, config/alpha/ev4.md,
5923         config/alpha/ev6.md, config/alpha/alpha.c, config/alpha/vms-cc.c,
5924         config/alpha/alpha.h, config/alpha/sync.md,
5925         config/alpha/openbsd.h, config/alpha/alpha.md,
5926         config/alpha/alpha-modes.def, config/alpha/ev5.md,
5927         config/alpha/alpha-protos.h, config/alpha/freebsd.h,
5928         config/alpha/osf5.h, config/alpha/netbsd.h, config/alpha/vms64.h,
5929         config/alpha/constraints.md, config/alpha/osf.h,
5930         config/alpha/xm-vms.h, config/alpha/unicosmk.h, config/linux.h,
5931         config/frv/predicates.md, config/frv/frv.h, config/frv/linux.h,
5932         config/frv/frv.md, config/frv/frv.opt, config/frv/frv-modes.def,
5933         config/frv/frv-asm.h, config/frv/frv-protos.h,
5934         config/frv/frv-abi.h, config/frv/frv.c, config/s390/tpf.h,
5935         config/s390/s390.c, config/s390/predicates.md, config/s390/s390.h,
5936         config/s390/linux.h, config/s390/tpf.md, config/s390/tpf.opt,
5937         config/s390/2064.md, config/s390/2084.md, config/s390/s390.md,
5938         config/s390/s390.opt, config/s390/s390-modes.def,
5939         config/s390/fixdfdi.h, config/s390/constraints.md,
5940         config/s390/s390-protos.h, config/s390/s390x.h, config/elfos.h,
5941         config/dbxcoff.h, config/m32c/predicates.md, config/m32c/cond.md,
5942         config/m32c/m32c.c, config/m32c/minmax.md, config/m32c/blkmov.md,
5943         config/m32c/m32c-pragma.c, config/m32c/m32c.h,
5944         config/m32c/prologue.md, config/m32c/m32c.abi,
5945         config/m32c/muldiv.md, config/m32c/bitops.md, config/m32c/mov.md,
5946         config/m32c/addsub.md, config/m32c/m32c.md, config/m32c/m32c.opt,
5947         config/m32c/t-m32c, config/m32c/m32c-modes.def,
5948         config/m32c/jump.md, config/m32c/shift.md,
5949         config/m32c/m32c-protos.h, config/libgloss.h,
5950         config/spu/spu-protos.h, config/spu/predicates.md,
5951         config/spu/spu-builtins.h, config/spu/spu.c,
5952         config/spu/spu-builtins.def, config/spu/spu-builtins.md,
5953         config/spu/spu.h, config/spu/spu-elf.h, config/spu/constraints.md,
5954         config/spu/spu.md, config/spu/spu-c.c, config/spu/spu.opt,
5955         config/spu/spu-modes.def, config/spu/t-spu-elf, config/interix.h,
5956         config/sparc/hypersparc.md, config/sparc/predicates.md,
5957         config/sparc/linux.h, config/sparc/sp64-elf.h,
5958         config/sparc/supersparc.md, config/sparc/cypress.md,
5959         config/sparc/openbsd1-64.h, config/sparc/openbsd64.h,
5960         config/sparc/niagara.md, config/sparc/sparc.md,
5961         config/sparc/long-double-switch.opt, config/sparc/ultra3.md,
5962         config/sparc/sparc.opt, config/sparc/sync.md,
5963         config/sparc/sp-elf.h, config/sparc/sparc-protos.h,
5964         config/sparc/ultra1_2.md, config/sparc/biarch64.h,
5965         config/sparc/sparc.c, config/sparc/little-endian.opt,
5966         config/sparc/sysv4-only.h, config/sparc/sparc.h,
5967         config/sparc/linux64.h, config/sparc/freebsd.h,
5968         config/sparc/sol2.h, config/sparc/rtemself.h,
5969         config/sparc/netbsd-elf.h, config/sparc/vxworks.h,
5970         config/sparc/sparc-modes.def, config/sparc/sparclet.md,
5971         config/sparc/sysv4.h, config/vx-common.h, config/netbsd-aout.h,
5972         config/flat.h, config/m32r/m32r.md, config/m32r/predicates.md,
5973         config/m32r/little.h, config/m32r/m32r.c, config/m32r/m32r.opt,
5974         config/m32r/linux.h, config/m32r/constraints.md,
5975         config/m32r/m32r.h, config/m32r/m32r-protos.h, config/vxworks.opt,
5976         config/darwin-c.c, config/darwin.opt, config/i386/i386.h,
5977         config/i386/cygming.h, config/i386/linux.h, config/i386/cygwin.h,
5978         config/i386/i386.md, config/i386/netware-crt0.c,
5979         config/i386/sco5.h, config/i386/mmx.md, config/i386/vx-common.h,
5980         config/i386/kaos-i386.h, config/i386/winnt-stubs.c,
5981         config/i386/netbsd64.h, config/i386/djgpp.h, config/i386/gas.h,
5982         config/i386/sol2.h, config/i386/constraints.md,
5983         config/i386/netware-libgcc.c, config/i386/sysv5.h,
5984         config/i386/predicates.md, config/i386/geode.md,
5985         config/i386/x86-64.h, config/i386/kfreebsd-gnu.h,
5986         config/i386/freebsd64.h, config/i386/vxworksae.h,
5987         config/i386/pentium.md, config/i386/lynx.h, config/i386/i386elf.h,
5988         config/i386/rtemself.h, config/i386/netbsd-elf.h,
5989         config/i386/ppro.md, config/i386/k6.md, config/i386/netware.c,
5990         config/i386/netware.h, config/i386/i386-modes.def,
5991         config/i386/sysv4-cpp.h, config/i386/i386-interix.h,
5992         config/i386/cygwin1.c, config/i386/djgpp.opt, config/i386/uwin.h,
5993         config/i386/unix.h, config/i386/ptx4-i.h, config/i386/xm-djgpp.h,
5994         config/i386/att.h, config/i386/winnt.c, config/i386/beos-elf.h,
5995         config/i386/sol2-10.h, config/i386/darwin64.h, config/i386/sse.md,
5996         config/i386/i386.opt, config/i386/bsd.h, config/i386/cygming.opt,
5997         config/i386/xm-mingw32.h, config/i386/linux64.h,
5998         config/i386/openbsdelf.h, config/i386/xm-cygwin.h,
5999         config/i386/sco5.opt, config/i386/darwin.h, config/i386/mingw32.h,
6000         config/i386/winnt-cxx.c, config/i386/i386-interix3.h,
6001         config/i386/nwld.c, config/i386/nwld.h, config/i386/host-cygwin.c,
6002         config/i386/cygwin2.c, config/i386/i386-protos.h,
6003         config/i386/sync.md, config/i386/openbsd.h,
6004         config/i386/host-mingw32.c, config/i386/i386-aout.h,
6005         config/i386/nto.h, config/i386/biarch64.h,
6006         config/i386/i386-coff.h, config/i386/freebsd.h,
6007         config/i386/driver-i386.c, config/i386/knetbsd-gnu.h,
6008         config/i386/host-i386-darwin.c, config/i386/vxworks.h,
6009         config/i386/crtdll.h, config/i386/i386.c, config/i386/sysv4.h,
6010         config/darwin-protos.h, config/linux.opt, config/sol2.c,
6011         config/sol2.h, config/sh/symbian.c, config/sh/sh-protos.h,
6012         config/sh/linux.h, config/sh/elf.h, config/sh/superh.h,
6013         config/sh/sh4.md, config/sh/coff.h, config/sh/newlib.h,
6014         config/sh/embed-elf.h, config/sh/symbian-pre.h, config/sh/rtems.h,
6015         config/sh/kaos-sh.h, config/sh/sh4a.md, config/sh/constraints.md,
6016         config/sh/sh64.h, config/sh/sh.opt, config/sh/symbian-post.h,
6017         config/sh/sh-c.c, config/sh/predicates.md, config/sh/sh.c,
6018         config/sh/sh.h, config/sh/shmedia.md, config/sh/sh-modes.def,
6019         config/sh/little.h, config/sh/sh1.md, config/sh/sh4-300.md,
6020         config/sh/superh64.h, config/sh/rtemself.h,
6021         config/sh/netbsd-elf.h, config/sh/sh.md, config/sh/vxworks.h,
6022         config/usegas.h, config/svr3.h, config/pdp11/pdp11-protos.h,
6023         config/pdp11/2bsd.h, config/pdp11/pdp11.md, config/pdp11/pdp11.c,
6024         config/pdp11/pdp11.opt, config/pdp11/pdp11-modes.def,
6025         config/pdp11/pdp11.h, config/avr/rtems.h, config/avr/avr-protos.h,
6026         config/avr/predicates.md, config/avr/constraints.md,
6027         config/avr/avr.md, config/avr/avr.c, config/avr/avr.opt,
6028         config/avr/avr.h, config/sol2-protos.h, config/dbxelf.h,
6029         config/lynx.opt, config/crx/crx.h, config/crx/crx-protos.h,
6030         config/crx/crx.md, config/crx/crx.c, config/crx/crx.opt,
6031         config/c4x/c4x-c.c, config/c4x/c4x.c, config/c4x/c4x.opt,
6032         config/c4x/c4x-modes.def, config/c4x/rtems.h,
6033         config/c4x/predicates.md, config/c4x/c4x.h,
6034         config/c4x/c4x-protos.h, config/c4x/c4x.md, config/kfreebsd-gnu.h,
6035         config/xtensa/predicates.md, config/xtensa/xtensa.c,
6036         config/xtensa/linux.h, config/xtensa/xtensa.h,
6037         config/xtensa/elf.h, config/xtensa/xtensa.md,
6038         config/xtensa/xtensa.opt, config/xtensa/constraints.md,
6039         config/xtensa/xtensa-protos.h, config/dbx.h,
6040         config/stormy16/predicates.md, config/stormy16/stormy16.md,
6041         config/stormy16/stormy16.c, config/stormy16/stormy16.opt,
6042         config/stormy16/stormy16.h, config/stormy16/stormy16-protos.h,
6043         config/host-solaris.c, config/fr30/fr30.h,
6044         config/fr30/predicates.md, config/fr30/fr30-protos.h,
6045         config/fr30/fr30.md, config/fr30/fr30.c, config/fr30/fr30.opt,
6046         config/vxworksae.h, config/sol2-c.c, config/lynx.h,
6047         config/m68hc11/m68hc11-protos.h, config/m68hc11/predicates.md,
6048         config/m68hc11/m68hc11.md, config/m68hc11/m68hc11.c,
6049         config/m68hc11/m68hc11.opt, config/m68hc11/m68hc11.h,
6050         config/m68hc11/m68hc12.h, config/openbsd-oldgas.h,
6051         config/host-linux.c, config/interix3.h, config/cris/cris.c,
6052         config/cris/predicates.md, config/cris/linux.h,
6053         config/cris/cris.h, config/cris/aout.h, config/cris/cris.md,
6054         config/cris/linux.opt, config/cris/cris.opt, config/cris/elf.opt,
6055         config/cris/aout.opt, config/cris/cris-protos.h,
6056         config/vxworks-dummy.h, config/netbsd.h, config/netbsd-elf.h,
6057         config/iq2000/iq2000.h, config/iq2000/predicates.md,
6058         config/iq2000/iq2000-protos.h, config/iq2000/iq2000.md,
6059         config/iq2000/iq2000.c, config/iq2000/iq2000.opt,
6060         config/host-darwin.c, config/mt/mt.md, config/mt/mt.c,
6061         config/mt/mt.opt, config/mt/t-mt, config/mt/mt.h,
6062         config/mt/mt-protos.h, config/svr4.h, config/host-darwin.h,
6063         config/chorus.h, config/mn10300/mn10300.c,
6064         config/mn10300/mn10300.opt, config/mn10300/predicates.md,
6065         config/mn10300/mn10300.h, config/mn10300/linux.h,
6066         config/mn10300/constraints.md, config/mn10300/mn10300-protos.h,
6067         config/mn10300/mn10300.md, config/ia64/predicates.md,
6068         config/ia64/itanium1.md, config/ia64/unwind-ia64.h,
6069         config/ia64/ia64-c.c, config/ia64/sync.md, config/ia64/ia64.c,
6070         config/ia64/itanium2.md, config/ia64/ia64.h, config/ia64/vect.md,
6071         config/ia64/freebsd.h, config/ia64/ia64.md,
6072         config/ia64/ia64-modes.def, config/ia64/constraints.md,
6073         config/ia64/hpux.h, config/ia64/ia64-protos.h, config/windiss.h,
6074         config/gofast.h, config/rtems.h, config/sol2-10.h,
6075         config/m68k/predicates.md, config/m68k/m68k.md,
6076         config/m68k/linux.h, config/m68k/m68k-modes.def,
6077         config/m68k/print-sysroot-suffix.sh, config/m68k/m68k-protos.h,
6078         config/m68k/coff.h, config/m68k/m68k-none.h, config/m68k/ieee.opt,
6079         config/m68k/openbsd.h, config/m68k/m68k-aout.h,
6080         config/m68k/m68k.opt, config/m68k/m68020-elf.h,
6081         config/m68k/m68kelf.h, config/m68k/m68k-devices.def,
6082         config/m68k/uclinux-oldabi.h, config/m68k/m68k.c,
6083         config/m68k/constraints.md, config/m68k/rtemself.h,
6084         config/m68k/netbsd-elf.h, config/m68k/m68k.h,
6085         config/m68k/uclinux.h, config/rs6000/power4.md,
6086         config/rs6000/host-darwin.c, config/rs6000/6xx.md,
6087         config/rs6000/linux.h, config/rs6000/eabi.h,
6088         config/rs6000/aix41.opt, config/rs6000/xcoff.h,
6089         config/rs6000/secureplt.h, config/rs6000/linuxspe.h,
6090         config/rs6000/eabialtivec.h, config/rs6000/8540.md,
6091         config/rs6000/darwin8.h, config/rs6000/kaos-ppc.h,
6092         config/rs6000/windiss.h, config/rs6000/603.md,
6093         config/rs6000/aix41.h, config/rs6000/cell.md,
6094         config/rs6000/mpc.md, config/rs6000/aix43.h, config/rs6000/beos.h,
6095         config/rs6000/gnu.h, config/rs6000/rtems.h, config/rs6000/aix.opt,
6096         config/rs6000/darwin.md, config/rs6000/darwin64.h,
6097         config/rs6000/default64.h, config/rs6000/7xx.md,
6098         config/rs6000/darwin.opt, config/rs6000/spe.md,
6099         config/rs6000/rs6000.opt, config/rs6000/rs6000-c.c,
6100         config/rs6000/rios2.md, config/rs6000/linuxaltivec.h,
6101         config/rs6000/7450.md, config/rs6000/linux64.h,
6102         config/rs6000/constraints.md, config/rs6000/440.md,
6103         config/rs6000/darwin.h, config/rs6000/host-ppc64-darwin.c,
6104         config/rs6000/rs6000.c, config/rs6000/aix52.h,
6105         config/rs6000/rs6000.h, config/rs6000/power6.md,
6106         config/rs6000/predicates.md, config/rs6000/altivec.md,
6107         config/rs6000/aix64.opt, config/rs6000/rios1.md,
6108         config/rs6000/rs6000-modes.def, config/rs6000/rs64.md,
6109         config/rs6000/eabisim.h, config/rs6000/sysv4le.h,
6110         config/rs6000/darwin7.h, config/rs6000/dfp.md,
6111         config/rs6000/linux64.opt, config/rs6000/sync.md,
6112         config/rs6000/vxworksae.h, config/rs6000/power5.md,
6113         config/rs6000/lynx.h, config/rs6000/biarch64.h,
6114         config/rs6000/rs6000.md, config/rs6000/sysv4.opt,
6115         config/rs6000/eabispe.h, config/rs6000/e500.h,
6116         config/rs6000/freebsd.h, config/rs6000/rs6000-protos.h,
6117         config/rs6000/netbsd.h, config/rs6000/e500-double.h,
6118         config/rs6000/aix.h, config/rs6000/vxworks.h,
6119         config/rs6000/40x.md, config/rs6000/aix51.h,
6120         config/rs6000/sysv4.h, config/arc/arc-protos.h, config/arc/arc.md,
6121         config/arc/arc.c, config/arc/arc.opt, config/arc/arc-modes.def,
6122         config/arc/arc.h, config/mcore/mcore-elf.h,
6123         config/mcore/mcore-protos.h, config/mcore/predicates.md,
6124         config/mcore/mcore.md, config/mcore/mcore.c,
6125         config/mcore/mcore.opt, config/mcore/mcore.h,
6126         config/mcore/mcore-pe.h, config/darwin.c, config/freebsd-nthr.h,
6127         config/score/predicates.md, config/score/score-version.h,
6128         config/score/score-protos.h, config/score/misc.md,
6129         config/score/elf.h, config/score/score.c, config/score/mac.md,
6130         config/score/score7.md, config/score/score.h,
6131         config/score/score-conv.h, config/score/score-mdaux.c,
6132         config/score/score.md, config/score/score.opt,
6133         config/score/score-modes.def, config/score/score-mdaux.h,
6134         config/score/mul-div.S, config/arm/uclinux-elf.h,
6135         config/arm/semi.h, config/arm/ecos-elf.h, config/arm/arm1020e.md,
6136         config/arm/symbian.h, config/arm/linux-elf.h,
6137         config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
6138         config/arm/elf.h, config/arm/aout.h, config/arm/arm.c,
6139         config/arm/thumb2.md, config/arm/vec-common.md, config/arm/coff.h,
6140         config/arm/strongarm-pe.h, config/arm/arm.h,
6141         config/arm/cortex-a8-neon.md, config/arm/semiaof.h,
6142         config/arm/cortex-a8.md, config/arm/uclinux-eabi.h,
6143         config/arm/arm-modes.def, config/arm/linux-eabi.h,
6144         config/arm/rtems-elf.h, config/arm/neon-schedgen.ml,
6145         config/arm/arm-cores.def, config/arm/arm-protos.h,
6146         config/arm/vfp.md, config/arm/aof.h, config/arm/linux-gas.h,
6147         config/arm/wince-pe.h, config/arm/neon.md,
6148         config/arm/constraints.md, config/arm/neon.ml,
6149         config/arm/xscale-elf.h, config/arm/strongarm-coff.h,
6150         config/arm/arm.opt, config/arm/arm926ejs.md,
6151         config/arm/predicates.md, config/arm/iwmmxt.md,
6152         config/arm/arm_neon.h, config/arm/unknown-elf.h,
6153         config/arm/kaos-arm.h, config/arm/bpabi.h, config/arm/pe.opt,
6154         config/arm/neon-testgen.ml, config/arm/arm.md,
6155         config/arm/xscale-coff.h, config/arm/pe.c,
6156         config/arm/arm-generic.md, config/arm/pe.h,
6157         config/arm/kaos-strongarm.h, config/arm/freebsd.h,
6158         config/arm/neon-docgen.ml, config/arm/netbsd.h, config/arm/fpa.md,
6159         config/arm/strongarm-elf.h, config/arm/cirrus.md,
6160         config/arm/netbsd-elf.h, config/arm/vxworks.h,
6161         config/arm/neon-gen.ml, config/kaos.h, config/darwin-driver.c,
6162         config/pa/predicates.md, config/pa/pa64-hpux.h,
6163         config/pa/pa-hpux.opt, config/pa/som.h, config/pa/pa-hpux1010.opt,
6164         config/pa/pa-hpux1111.opt, config/pa/pa-pro-end.h,
6165         config/pa/elf.h, config/pa/fptr.c, config/pa/pa64-linux.h,
6166         config/pa/pa.md, config/pa/pa.opt, config/pa/pa-hpux.h,
6167         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
6168         config/pa/pa-hpux1010.h, config/pa/pa-protos.h,
6169         config/pa/pa-osf.h, config/pa/pa-hpux1111.h, config/pa/pa-64.h,
6170         config/pa/milli64.S, config/pa/pa.c, config/pa/pa-linux.h,
6171         config/pa/pa.h, config/pa/pa32-linux.h, config/pa/pa64-hpux.opt,
6172         config/pa/pa64-regs.h, config/pa/pa-modes.def,
6173         config/pa/constraints.md, config/darwin9.h, config/mips/4100.md,
6174         config/mips/linux.h, config/mips/elfoabi.h, config/mips/elf.h,
6175         config/mips/sdb.h, config/mips/windiss.h, config/mips/rtems.h,
6176         config/mips/3000.md, config/mips/iris5.h, config/mips/5000.md,
6177         config/mips/7000.md, config/mips/9000.md, config/mips/4600.md,
6178         config/mips/linux64.h, config/mips/elforion.h,
6179         config/mips/constraints.md, config/mips/generic.md,
6180         config/mips/predicates.md, config/mips/4300.md,
6181         config/mips/mips-ps-3d.md, config/mips/iris.h, config/mips/24k.md,
6182         config/mips/mips.md, config/mips/mips.opt, config/mips/4k.md,
6183         config/mips/5k.md, config/mips/vr4120-div.S,
6184         config/mips/openbsd.h, config/mips/iris6.h, config/mips/4000.md,
6185         config/mips/mips-protos.h, config/mips/6000.md,
6186         config/mips/mips.c, config/mips/mips.h, config/mips/r3900.h,
6187         config/mips/74k.md, config/mips/netbsd.h, config/mips/vxworks.h,
6188         config/mips/mips-modes.def, config/mips/vr.h,
6189         config/soft-fp/t-softfp, config/openbsd.h, config/ptx4.h,
6190         config/freebsd-spec.h, config/vax/vax.c, config/vax/openbsd.h,
6191         config/vax/vax.h, config/vax/elf.h, config/vax/vax.md,
6192         config/vax/bsd.h, config/vax/vax.opt, config/vax/vax-modes.def,
6193         config/vax/openbsd1.h, config/vax/netbsd.h,
6194         config/vax/vax-protos.h, config/vax/netbsd-elf.h,
6195         config/vax/vaxv.h, config/vax/ultrix.h, config/freebsd.h,
6196         config/h8300/rtems.h, config/h8300/predicates.md,
6197         config/h8300/h8300.c, config/h8300/h8300.h, config/h8300/elf.h,
6198         config/h8300/h8300.md, config/h8300/h8300.opt,
6199         config/h8300/coff.h, config/h8300/h8300-protos.h,
6200         config/v850/v850.md, config/v850/predicates.md,
6201         config/v850/v850-c.c, config/v850/v850.c, config/v850/v850.opt,
6202         config/v850/v850.h, config/v850/v850-protos.h, config/vxworks.c,
6203         config/knetbsd-gnu.h, config/sol2-6.h, config/vxworks.h,
6204         config/mmix/mmix.h, config/mmix/predicates.md,
6205         config/mmix/mmix-protos.h, config/mmix/mmix.md,
6206         config/mmix/mmix.c, config/mmix/mmix.opt,
6207         config/mmix/mmix-modes.def, config/bfin/bfin.opt,
6208         config/bfin/rtems.h, config/bfin/bfin-modes.def,
6209         config/bfin/predicates.md, config/bfin/bfin-protos.h,
6210         config/bfin/bfin.c, config/bfin/bfin.h, config/bfin/bfin.md:
6211         Likewise.
6212
6213 2007-08-02  Richard Sandiford  <richard@codesourcery.com>
6214
6215         * emit-rtl.c (reset_used_decls): Rename to...
6216         (set_used_decls): ...this.  Set the used flag rather than clearing it.
6217         (unshare_all_rtl_again): Update accordingly.  Set flags on argument
6218         DECL_RTLs rather than resetting them.
6219
6220 2007-08-02  Andreas Krebbel  <krebbel1@de.ibm.com>
6221
6222         * config/s390/s390.md ("*xordi3_cconly"): Change xr to xg.
6223
6224 2007-08-01  Sandra Loosemore  <sandra@codesourcery.com>
6225
6226         * reload.c (find_reloads_address_part): Pass correct MEMREFLOC
6227         argument to find_reloads_address.
6228
6229 2007-08-01  Daniel Jacobowitz  <dan@codesourcery.com>
6230
6231         PR tree-optimization/32919
6232         * tree-ssa-sccvn.c (visit_phi): Do not visit abnormal PHIs.
6233         * tree-ssa-coalesce.c (ssa_conflicts_dump): New.
6234         (coalesce_ssa_name): Call it.
6235
6236 2007-08-01  Sandra Loosemore  <sandra@codesourcery.com>
6237             David Ung  <davidu@mips.com>
6238
6239         * config/mips/mips16.S (__mips16_unordsf2, __mips16_floatunsisf): New.
6240         (__mips16_unorddf2, __mips16_floatunsidf): New.
6241         * config/mips/mips.c (mips_init_libfuncs): Add optab entries for
6242         above functions.
6243         * config/mips/t-libgcc-mips16 (LIB1ASMFUNCS): Add new functions.
6244
6245 2007-08-01  Zdenek Dvorak  <ook@ucw.cz>
6246
6247         * tree-pretty-print.c (dump_generic_node): Dump OMP_SECTIONS_SWITCH.
6248         Display new operands of OMP_SECTIONS and OMP_CONTINUE.
6249         * tree.h (OMP_SECTIONS_CONTROL): New macro.
6250         (OMP_DIRECTIVE_P): Add OMP_SECTIONS_SWITCH.
6251         * omp-low.c (get_ws_args_for, determine_parallel_type,
6252         expand_omp_for_generic, expand_omp_for_static_nochunk,
6253         expand_omp_for_static_chunk, expand_omp_for, expand_omp_sections):
6254         Work with more precise CFG.
6255         (build_omp_regions_1): Handle OMP_SECTIONS_SWITCH.
6256         (lower_omp_sections): Emit OMP_SECTIONS_SWITCH.  Add arguments to
6257         OMP_CONTINUE.
6258         * tree-gimple.c (is_gimple_stmt): Handle OMP_SECTIONS_SWITCH.
6259         * gimple-low.c (lower_stmt): Ditto.
6260         * tree-inline.c (estimate_num_insns_1): Ditto.
6261         * tree.def (OMP_SECTIONS, OMP_CONTINUE): Added new operands.
6262         (OMP_SECTIONS_SWITCH): New.
6263         * tree-cfgcleanup.c (cleanup_omp_return): New.
6264         (cleanup_tree_cfg_bb): Call cleanup_omp_return.
6265         * tree-cfg.c (make_edges): Create back edges for OMP_CONTINUE
6266         and exit edge for OMP_FOR.  Handle OMP_SECTIONS_SWITCH.
6267         (tree_redirect_edge_and_branch): Handle omp constructs.
6268
6269         * fortran/trans-openmp.c (gfc_trans_omp_sections): Build OMP_SECTIONS
6270         with three arguments.
6271
6272 2007-08-01  Zdenek Dvorak  <ook@ucw.cz>
6273
6274         * tree-cfg.c (tree_merge_blocks): Preserve loop exit phi nodes only
6275         in loop closed ssa.
6276
6277 2007-08-01  Zdenek Dvorak  <ook@ucw.cz>
6278
6279         * tree-ssa-threadupdate.c (thread_through_all_blocks): Record that
6280         the loop structures may need fixing.
6281         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
6282         New functions.
6283         (cleanup_tree_cfg_loop): Removed.
6284         (cleanup_tree_cfg): If loops need fixing, call repair_loop_structures.
6285         * tree-predcom.c (tree_predictive_commoning): Return TODO_cleanup_cfg
6286         instead of running cleanup_tree_cfg_loop.
6287         * cfgloop.h (LOOPS_NEED_FIXUP): New constant.
6288         * tree-flow.h (cleanup_tree_cfg_loop): Declaration removed.
6289         (tree_predictive_commoning): Declaration changed.
6290         * passes.c (execute_function_todo): Do not use cleanup_tree_cfg_loop.
6291
6292 2007-08-01  Zdenek Dvorak  <ook@ucw.cz>
6293
6294         * doc/invoke.texi (l1-cache-size): Update documentation.
6295         (l2-cache-size): Document.
6296         * params.h (L2_CACHE_SIZE): New macro.
6297         * tree-ssa-loop-prefetch.c (L1_CACHE_SIZE_BYTES): Reflect
6298         that L1_CACHE_SIZE is in kB now.
6299         (L2_CACHE_SIZE_BYTES): New macro.
6300         (tree_ssa_prefetch_arrays): Show size in kB.
6301         * config/i386/i386.h (struct processor_costs): Add l1_cache_size
6302         and l2_cache_size fields.
6303         * config/i386/driver-i386.c (describe_cache): Detect cache size
6304         in kB.
6305         * config/i386/i386.c (size_cost, i386_cost, i486_cost,pentium_cost,
6306         pentiumpro_cost, geode_cost, k6_cost, athlon_cost, k8_cost,
6307         amdfam10_cost, pentium4_cost, nocona_cost, core2_cost,
6308         generic64_cost, generic32_cost): Add l1_cache_size and l2_cache_size.
6309         (override_options): Set l1-cache-size and l2-cache-size to default
6310         values if not specified otherwise.
6311         * params.def (PARAM_L1_CACHE_SIZE): Change to set in kB.
6312         (PARAM_L2_CACHE_SIZE): New.
6313
6314 2007-08-01  Nigel Stephens  <nigel@mips.com>
6315             David Ung  <davidu@mips.com>
6316             Thiemo Seufer  <ths@mips.com>
6317             Chris Dearman  <chris@mips.com>
6318             Richard Sandiford  <richard@codesourcery.com>
6319
6320         * config.gcc (mips*-sde-elf*): New stanza.
6321         (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
6322         (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
6323         (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*, mips-*-elf*)
6324         (mipsel-*-elf*, mips64-*-elf*, mips64el-*-elf*, mips64orion-*-elf*)
6325         (mips64orionel-*-elf*, mips*-*-rtems*, mips-wrs-windiss)
6326         (mipstx39-*-elf*, mipstx39el-*-elf*): Add mips/t-libgcc-mips16
6327         to tmake_file.
6328         * config/mips/sde.h: New file.
6329         * config/mips/t-libgcc-mips16: Likewise.
6330         * config/mips/t-sde: Likewise.
6331         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Remove settings
6332         of _ABIN32, _ABI64, _ABIO32, _MIPS_SIM, _MIPS_SZLONG, _MIPS_SZPTR,
6333         _MIPS_FPSET and _MIPS_SZINT.
6334         * config/mips/iris.h (TARGET_OS_CPP_BUILTINS): Likewise.
6335         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Remove separate
6336         insertion of a default -mips option.  Use MIPS_32BIT_OPTION_SPEC.
6337         * config/mips/t-isa3264 (LIB1ASMSRC, LIB1ASMFUNCS): Delete.
6338         * config/mips/t-r3900 (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
6339         * config/mips/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
6340         * config/mips/mips.h (TARGET_CPU_CPP_BUITINS): Define _ABIO32,
6341         _ABIN32, _ABI64, _ABIO64, _MIPS_SIM, _MIPS_SZINT, _MIPS_SZLONG,
6342         _MIPS_SZPTR and _MIPS_FPSET.
6343         (MIPS_ISA_LEVEL_SPEC): Inject the default -mips option if no
6344         architecture is specified.
6345         (MIPS_32BIT_OPTION_SPEC): New macro.
6346
6347 2007-07-31  Dan Hipschman  <dsh@google.com>
6348
6349         * gcc.c (end_going_arg): New function.
6350         (do_spec_2): Use it.
6351         (do_spec_1): Use it.
6352
6353 2007-07-31  H.J. Lu  <hongjiu.lu@intel.com>
6354
6355         * ddg.c (add_cross_iteration_register_deps): Declare bb_info
6356         only if ENABLE_CHECKING is defined.
6357
6358 2007-07-31  Kenneth Zadeck <zadeck@naturalbridge.com>
6359
6360         * df.h (DF_RU, DF_RU_BB_INFO, df_ru_bb_info, df_ru,
6361         df_ru_add_problem, df_ru_get_bb_info): Removed.
6362         (DF_RD, DF_UREC, DF_CHAIN, DF_NOTE): Renumbered.
6363         * df-problems.c (df_ru_problem_data, df_ru_set_bb_info,
6364         df_ru_free_bb_info, df_ru_alloc,
6365         df_ru_bb_local_compute_process_def,
6366         df_ru_bb_local_compute_process_use, df_ru_bb_local_compute,
6367         df_ru_local_compute, df_ru_init_solution, df_ru_confluence_n,
6368         df_ru_transfer_function, df_ru_free, df_ru_start_dump,
6369         df_ru_top_dump, df_ru_bottom_dump, df_problem problem_RU,
6370         df_ru_add_problem): Removed.
6371
6372 2007-07-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6373
6374         PR target/32847
6375         * pa.md (casesi32): Use match_scratch.  Revise insn condition.
6376         (casesi32p, casesi64p): Likewise.
6377         (casesi): Adjust for above.
6378
6379 2007-07-31  Richard Sandiford  <richard@codesourcery.com>
6380
6381         * mode-switching.c (create_pre_exit): Don't search past calls.
6382
6383 2007-07-31  Sandra Loosemore  <sandra@codesourcery.com>
6384
6385         * config/mips/mips.h (ISA_HAS_SYNCI): Add !TARGET_MIPS16 test.
6386
6387 2007-07-31  Revital Eres  <eres@il.ibm.com>
6388
6389         * ddg.c (add_deps_for_def): Rename to...
6390         (add_cross_iteration_register_deps): This.  Change implementation
6391         to use only reaching def and def-use chains to construct the
6392         inter loop dependencies.
6393         (add_deps_for_use): Remove function.
6394         (build_inter_loop_deps): Call add_cross_iteration_register_deps
6395         function to build the inter loop dependencies.
6396         * modulo-sched.c (sms_schedule): Build only
6397         reaching def and def-use chains for the propose of the ddg
6398         construction.
6399
6400 2007-07-31  Julian Brown  <julian@codesourcery.com>
6401
6402         * config/arm/neon.md (vec_set<mode>_internal, vec_setv2di_internal):
6403         New define_insns. Use correct RTL.
6404         (vec_set<mode>): Write as expander.
6405
6406 2007-07-31  Razya Ladelsky  <razya@il.ibm.com>
6407
6408         * matrix-reorg.c (analyze_matrix_allocation_site): Avoid referring 
6409         to an unallocated space.
6410
6411 2007-07-30  Jan Sjodin  <jan.sjodin@amd.com>
6412
6413         * tree-data-ref.c
6414         (split_constant_offset): Enable split_constant_offset to extract
6415         constants from other statements.
6416         * tree-vect-transform.c
6417         (vect_create_addr_base_for_vector_ref): Generate data_ref_base
6418         to a temp var. Force base_offset to be simple.
6419
6420 2007-07-30  Seongbae Park <seongbae.park@gmail.com>
6421
6422         * df-scan.c (df_scan_verify): Remove artificial limit on
6423         the number of blocks for verification.
6424         * df-problems.c (df_lr_bb_local_compute, df_simulate_find_defs,
6425         df_simulate_defs): Avoid unnecessary insn checking for defs.
6426
6427 2007-07-29  Mark Mitchell  <mark@codesourcery.com>
6428
6429         * config/m68k/lb1sf68.asm (FUNC): New macro.
6430         (__mulsi3): Use it.
6431         (__udivsi3): Likewise.
6432         (__divsi3): Likewise.
6433         (__umodsi3): Likewise.
6434         (__modsi3): Likewise.
6435         (__subdf3): Likewise.
6436         (__adddf3): Likewise.
6437         (__muldf3): Likewise.
6438         (__divdf3): Likewise.
6439         (__negdf2): Likewise.
6440         (__cmpdf2): Likewise.
6441         (__subsf3): Likewise.
6442         (__addsf3): Likewise.
6443         (__mulsf3): Likewise.
6444         (__divsf3): Likewise.
6445         (__negsf2): Likewise.
6446         (__cmpsf2): Likewise.
6447         (__eqdf2): Likewise.
6448         (__nedf2): Likewise.
6449         (__gtdf2): Likewise.
6450         (__gedf2): Likewise.
6451         (__ltdf2): Likewise.
6452         (__ledf2): Likewise.
6453         (__eqsf2): Likewise.
6454         (__nesf2): Likewise.
6455         (__gtsf2): Likewise.
6456         (__gesf2): Likewise.
6457         (__ltsf2): Likewise.
6458         (__lesf2): Likewise.
6459
6460 2007-07-30  Ollie Wild  <aaw@google.com>
6461
6462         * c-ppoutput.c (print_lines_directives_only): New function.
6463         (scan_translation_unit_directives_only): New function.
6464         (preprocess_file): Add call to scan_translation_unit_directives_only.
6465         * c-opts.c (c_common_handle_option): Add OPT_fdirectives_only.
6466         (sanitize_cpp_opts): Add default flag_dump_macros setting for
6467         -fdirectives-only.  Add errors for -fdirectives-only conflict with
6468         -Wunused-macros and -traditional.
6469         (finish_options): Add builtin macro initialization for
6470         -fdirectives-only + -fpreprocessed.
6471         * c.opt (fdirectives-only): New.
6472         * doc/cppopts.texi (fdirectives-only): New.
6473
6474 2007-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6475
6476         * alias.c (record_set, memory_modified_1): Constify.
6477         * bt-load.c (note_btr_set): Likewise.
6478         * caller-save.c (mark_set_regs, add_stored_regs): Likewise.
6479         * combine.c (set_nonzero_bits_and_sign_copies,
6480         expand_field_assignment, record_dead_and_set_regs_1,
6481         use_crosses_set_p, reg_dead_at_p_1, can_combine_p,
6482         likely_spilled_retval_1): Likewise.
6483         * config/frv/frv.c (frv_registers_update_1, frv_io_check_address,
6484         frv_io_handle_set): Likewise.
6485         * config/mips/mips.c (mips_sim_record_set,
6486         vr4130_true_reg_dependence_p_1): Likewise.
6487         * config/mt/mt.c (insn_dependent_p_1): Likewise.
6488         * config/s390/s390.c (s390_reg_clobbered_rtx): Likewise.
6489         * config/sh/sh.c (flow_dependent_p_1): Likewise.
6490         * cselib.c (cselib_invalidate_rtx_note_stores): Likewise.
6491         * dce.c (mark_nonreg_stores_1, mark_nonreg_stores_2): Likewise.
6492         * ddg.c (mark_mem_store): Likewise.
6493         * df-problems.c (df_urec_mark_reg_change): Likewise.
6494         * function.c (update_epilogue_consts): Likewise.
6495         * gcse.c (record_set_info, record_last_set_info,
6496         mems_conflict_for_gcse_p, canon_list_insert, reg_set_info,
6497         reg_clear_last_set): Likewise.
6498         * global.c (mark_reg_store, mark_reg_clobber, reg_becomes_live):
6499         Likewise.
6500         * jump.c (reversed_comparison_code_parts): Likewise.
6501         * local-alloc.c (validate_equiv_mem_from_store, no_equiv,
6502         reg_is_set): Likewise.
6503         * loop-iv.c (mark_altered): Likewise.
6504         * mode-switching.c (reg_becomes_live): Likewise.
6505         * optabs.c (no_conflict_move_test): Likewise.
6506         * postreload-gcse.c (record_last_set_info, find_mem_conflicts):
6507         Likewise.
6508         * postreload.c (reload_combine_note_store, move2add_note_store):
6509         Likewise.
6510         * regmove.c (flags_set_1): Likewise.
6511         * regrename.c (note_sets, kill_clobbered_value, kill_set_value):
6512         Likewise.
6513         * reload1.c (mark_not_eliminable, forget_old_reloads_1):
6514         Likewise. 
6515         * resource.c (update_live_status): Likewise.
6516         * rtl.h (set_of, note_stores): Likewise.
6517         * rtlanal.c (set_of_1, parms_set, struct set_of_data, set_of,
6518         note_stores, parms_set): Likewise.
6519         * sched-rgn.c (sets_likely_spilled_1): Likewise.
6520         * stack-ptr-mod.c (notice_stack_pointer_modification_1):
6521         Likewise. 
6522         * var-tracking.c (count_stores, add_stores): Likewise.
6523
6524 2007-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6525
6526         * alias.c (mems_in_disjoint_alias_sets_p,
6527         fixed_scalar_and_varying_struct_p, aliases_everything_p,
6528         nonoverlapping_component_refs_p, nonoverlapping_memrefs_p,
6529         write_dependence_p, mems_in_disjoint_alias_sets_p,
6530         read_dependence, true_dependence, canon_true_dependence,
6531         anti_dependence, output_dependence): Constify.
6532         * combine.c (extended_count): Likewise.
6533         * cse.c (cse_rtx_varies_p, hash_rtx, exp_equiv_p): Likewise.
6534         * cselib.c (get_value_hash, references_value_p,
6535         cselib_reg_set_mode, cselib_rtx_varies_p): Likewise.
6536         * cselib.h (cselib_reg_set_mode, references_value_p): Likewise.
6537         * emit-rtl.c (mem_expr_equal_p, active_insn_p): Likewise.
6538         * function.c (contains, prologue_epilogue_contains,
6539         sibcall_epilogue_contains): Likewise. 
6540         * jump.c (simplejump_p, condjump_p, condjump_in_parallel_p,
6541         pc_set, any_uncondjump_p, any_condjump_p, onlyjump_p,
6542         only_sets_cc0_p, sets_cc0_p, rtx_renumbered_equal_p, true_regnum,
6543         reg_or_subregno): Likewise.
6544         * recog.c (asm_noperands): Likewise.
6545         * reload1.c (function_invariant_p): Likewise.
6546         * rtl.h (mem_expr_equal_p, active_insn_p, rtx_varies_p,
6547         rtx_addr_varies_p, asm_noperands, exp_equiv_p, hash_rtx,
6548         condjump_p, any_condjump_p, any_uncondjump_p, pc_set,
6549         simplejump_p, onlyjump_p, only_sets_cc0_p, sets_cc0_p,
6550         true_regnum, reg_or_subregno, condjump_in_parallel_p,
6551         extended_count, prologue_epilogue_contains,
6552         sibcall_epilogue_contains, function_invariant_p, true_dependence,
6553         canon_true_dependence, read_dependence, anti_dependence,
6554         output_dependence): Likewise.
6555         * rtlanal.c (rtx_varies_p, rtx_addr_varies_p): Likewise.
6556
6557 2007-07-30  Julian Brown  <julian@codesourcery.com>
6558
6559         * config/arm/neon.md (V_ext): New mode attribute.
6560         (neon_vget_lane<mode>): Replace with define_expand.
6561         (neon_vget_lane<mode>_sext_internal)
6562         (neon_vget_lane<mode>_zext_internal): New define_insns for double
6563         and quad precision vectors.
6564         (neon_vget_lanedi): Add bounds check. Remove dead comment.
6565         * config/arm/neon.ml (get_lane): Make 32-bit get-lane intrinsics
6566         have typeless 32-bit result.
6567
6568 2007-07-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6569
6570         PR tree-opt/32527
6571         * tree-affine.h (aff_tree): The type of rest is sizetype for types
6572         of pointers.
6573         * tree-affine.c (aff_combination_scale): If type is a pointer type,
6574         use sizetype for rest.
6575         (aff_combination_add_elt): Likewise. Don't specialize pointer types.
6576         (aff_combination_convert): Don't convert rest for pointer types.
6577
6578 2007-07-28  Daniel Berlin  <dberlin@dberlin.org>
6579
6580         * Makefile.in (tree-ssa-alias.o): Add alloc-pool.h
6581
6582         * tree-ssa-alias.c: Add alloc-pool.h.
6583         (init_alias_info): Free alias_bitmap_obstack.
6584         (delete_alias_info): Call delete_mem_ref_stats.
6585         (get_mem_sym_stats_for): Use alloc_pool.
6586         (init_mem_ref_stats): Do not delete mem_ref_stats here.
6587         (delete_mem_sym_stats): Removed.
6588         
6589 2007-07-29  Sebastian Pop  <sebpop@gmail.com>
6590
6591         * tree-data-ref.c (add_multivariate_self_dist): Parametric access
6592         functions cannot be represented as classical distance vectors.
6593
6594 2007-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6595
6596         * attribs.c (hash_attr, eq_attr, init_attributes): Constify.
6597         * builtins.c (validate_arg, builtin_mathfn_code,
6598         validate_arglist): Likewise.
6599         * calls.c (call_expr_flags): Likewise.
6600         * combine.c (reg_nonzero_bits_for_combine,
6601         reg_num_sign_bit_copies_for_combine, get_last_value,
6602         reg_truncated_to_mode): Likewise.
6603         * emit-rtl.c (subreg_lowpart_p): Likewise.
6604         * expr.c (highest_pow2_factor_for_target,
6605         categorize_ctor_elements_1, categorize_ctor_elements,
6606         count_type_elements, contains_packed_reference,
6607         highest_pow2_factor, highest_pow2_factor_for_target): Likewise.
6608         * fold-const.c (may_negate_without_overflow_p, int_const_binop,
6609         fold_convertible_p, operand_equal_p, tree_swap_operands_p,
6610         native_encode_int, native_encode_real, native_encode_complex,
6611         native_encode_vector, native_encode_expr, native_interpret_int,
6612         native_interpret_real, native_interpret_complex,
6613         native_interpret_vector, native_interpret_expr): Likewise.
6614         * function.c (use_register_for_decl): Likewise.
6615         * gimplify.c (get_name): Likewise.
6616         * langhooks-def.h (lhd_return_null_const_tree): New.
6617         (LANG_HOOKS_GET_CALLEE_FNDECL): Use it.
6618         * langhooks.c (lhd_return_null_const_tree): New.
6619         * langhooks.h (lang_get_callee_fndecl): Constify.
6620         * output.h (constructor_static_from_elts_p): Likewise.
6621         * rtl-factoring.c (gen_symbol_ref_rtx_for_label): Likewise.
6622         * rtl.h (nonzero_bits, num_sign_bit_copies, truncated_to_mode,
6623         subreg_lowpart_p, noop_move_p, struct rtl_hooks): Likewise.
6624         * rtlanal.c (cached_nonzero_bits, nonzero_bits1,
6625         cached_num_sign_bit_copies, num_sign_bit_copies1, noop_move_p,
6626         nonzero_bits, num_sign_bit_copies, truncated_to_mode): Likewise.
6627         * rtlhooks-def.h (reg_nonzero_bits_general,
6628         reg_num_sign_bit_copies_general, reg_truncated_to_mode_general):
6629         Likewise. 
6630         * rtlhooks.c (reg_num_sign_bit_copies_general,
6631         reg_nonzero_bits_general, reg_truncated_to_mode_general):
6632         Likewise. 
6633         * stmt.c (warn_if_unused_value, is_body_block): Likewise.
6634         * stor-layout.c (mode_for_size_tree): Likewise.
6635         * tree-ssa-loop-im.c (memref_eq): Likewise.
6636         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): Likewise.
6637         * tree.c (contains_placeholder_p, type_list_equal,
6638         simple_cst_equal, get_callee_fndecl, operand_equal_for_phi_arg_p):
6639         Likewise. 
6640         * tree.h (tree_int_cst_sign_bit, may_negate_without_overflow_p,
6641         mode_for_size_tree, categorize_ctor_elements, count_type_elements,
6642         contains_placeholder_p, contains_packed_reference,
6643         get_callee_fndecl, operand_equal_for_phi_arg_p,
6644         warn_if_unused_value, is_body_block, native_encode_expr,
6645         native_interpret_expr, fold_convertible_p, operand_equal_p,
6646         int_const_binop, tree_swap_operands_p, builtin_mathfn_code,
6647         validate_arglist, simple_cst_equal, type_list_equal,
6648         use_register_for_decl, call_expr_flags, get_name,
6649         highest_pow2_factor): Likewise.
6650         (const_call_expr_arg_iterator_d,
6651         init_const_call_expr_arg_iterator, next_const_call_expr_arg,
6652         first_const_call_expr_arg, more_const_call_expr_args_p,
6653         FOR_EACH_CONST_CALL_EXPR_ARG): New.
6654         * varasm.c (constructor_static_from_elts_p): Constify.
6655
6656 2007-07-28  Kazu Hirata  <kazu@codesourcery.com>
6657
6658         * cfglayout.c, config/arm/arm.c, config/arm/cortex-a8.md,
6659         config/arm/neon-schedgen.ml, config/arm/neon.ml,
6660         config/arm/vec-common.md, config/ia64/div.md, cselib.c,
6661         df-core.c, df.h, dominance.c, optabs.c, opts.c, reg-stack.c,
6662         regstat.c, target.h, tree-ssa-live.c, tree-ssa-pre.c,
6663         tree-vect-transform.c, tree.def: Fix comment typos.  Follow
6664         spelling conventions.
6665         * doc/invoke.texi: Follow spelling conventions.
6666
6667 2007-07-29  Vladimir Yanovsky  <yanov@il.ibm.com>
6668             Revital Eres  <eres@il.ibm.com>
6669
6670         * modulo-sched.c (sms_schedule): Avoid loops which includes
6671         auto-increment instructions.
6672
6673 2007-07-28  Richard Guenther  <rguenther@suse.de>
6674
6675         PR middle-end/32920
6676         * fold-const.c (fold_cond_expr_with_comparison): Convert
6677         operand zero of MIN/MAX_EXPR to correct type.
6678
6679 2007-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6680
6681         * calls.c (special_function_p, setjmp_call_p, alloca_call_p,
6682         flags_from_decl_or_type): Constify.
6683         * gcc.c (do_spec_1): Likewise.
6684         * print-tree.c (dump_addr, print_node_brief): Likewise.
6685         * tree-cfg.c (stmt_starts_bb_p, is_ctrl_stmt, computed_goto_p,
6686         simple_goto_p, tree_can_make_abnormal_goto, stmt_starts_bb_p,
6687         tree_purge_all_dead_eh_edges): Likewise.
6688         * tree-flow.h (is_ctrl_stmt, computed_goto_p, simple_goto_p,
6689         tree_can_make_abnormal_goto, tree_purge_all_dead_eh_edges):
6690         Likewise. 
6691         * tree.c (expr_location, expr_has_location, expr_locus,
6692         expr_filename, expr_lineno, get_inner_array_type,
6693         fields_compatible_p): Likewise.
6694         * tree.h (get_inner_array_type, fields_compatible_p,
6695         expr_location, expr_has_location, expr_locus, expr_filename,
6696         expr_lineno, dump_addr, print_node_brief, flags_from_decl_or_type,
6697         setjmp_call_p, alloca_call_p): Likewise.
6698
6699 2007-07-28  Daniel Berlin  <dberlin@dberlin.org>
6700
6701         * timevar.def: Add TV_CALL_CLOBBER, TV_FLOW_SENSITIVE,
6702         TV_FLOW_INSENSITIVE.
6703
6704         * tree-ssa-alias.c (compute_call_clobbered): Push/pop
6705         TV_CALL_CLOBBER.
6706         (compute_flow_sensitive_aliasing): Ditto for TV_FLOW_SENSITIVE.
6707         (compute_flow_insensitive_aliasing): Ditto for
6708         TV_FLOW_INSENSITIVE.    
6709
6710 2007-07-27  Jan Hubicka  <jh@suse.cz>
6711
6712         * config/i386/i386.c (register_move_cost): Remove accidentally
6713         comitted #if 0 block.
6714
6715         * attribs.c: Include hashtab.h
6716         (attribute_hash): New.
6717         (substring): New structure.
6718         (extract_attribute_substring, substring_hash, hash_attr, eq_attr):
6719         New function.
6720         (init_attributes): Initialize attribute hash.
6721         (decl_attributes): Use attribute hash.
6722         * Makefile.in (attribs.c): Depend on hashtab.h.
6723
6724 2007-07-27  Steve Ellcey  <sje@cup.hp.com>
6725
6726         * config/ia64/vect.md (vec_initv2si): Remove bad BIG_ENDIAN test.
6727
6728 2007-07-27  Richard Sandiford  <richard@codesourcery.com>
6729
6730         * doc/invoke.texi (mdsp, mdspr2): Document the __mips_dsp,
6731         __mips_dspr2 and __mips_dsp_rev macros.
6732         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dsp_rev.
6733
6734 2007-07-27  Douglas Gregor  <doug.gregor@gmail.com>
6735         
6736        * c-common.h (enum rid): Add RID_DECLTYPE, update RID_LAST_CXX0X.
6737
6738 2007-07-26  Kenneth Zadeck <zadeck@naturalbridge.com>
6739
6740         PR middle-end/32749
6741         
6742         * df-problems.c (df_create_unused_note): Removed do_not_gen parm
6743         and the updating of the live and do_not_gen sets.
6744         (df_note_bb_compute): Added updating of live and do_not_gen sets
6745         for regular defs so that the case of clobber inside conditional
6746         call is processed correctly.
6747         
6748 2007-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
6749
6750         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Generate the
6751         operands with compatible type.
6752
6753 2007-07-27  Richard Sandiford  <richard@codesourcery.com>
6754
6755         * expr.h (store_bit_field): Don't return a value.
6756         * expmed.c (check_predicate_volatile_ok): New function.
6757         (store_bit_field_1): New function, extracted from store_bit_field.
6758         Take a fallback_p argument and return true if the operation succeeded.
6759         Only use store_fixed_bit_field if fallback_p.  Don't recompute
6760         mode_for_extraction; use op_mode instead.  Try forcing memories
6761         into registers if the insv expander fails.
6762         (store_bit_field): Use store_bit_field_1 with fallback_p true.
6763         Don't return a value.
6764         (convert_extracted_bit_field): New function, extracted from
6765         store_bit_field.
6766         (extract_bit_field_1): Likewise.  Take a fallback_p argument
6767         and return NULL if the operation succeeded.  Only use
6768         extract_fixed_bit_field if fallback_p.  Only calculate one
6769         extraction mode.  Combine code for extv and extzv.  Try forcing
6770         memories into registers if the ext(z)v expander fails.
6771         (extract_bit_field): Use extract_bit_field_1 with fallback_p true.
6772
6773 2007-07-27  Richard Sandiford  <rsandifo@nildram.co.uk>
6774
6775         * df.h (df_mw_hardreg): Turn df_ref_type and df_ref_flags
6776         into bitfields.
6777         (df_ref): Likewise.  Put regno with other integer fields.
6778
6779 2007-07-27  Richard Sandiford  <rsandifo@nildram.co.uk>
6780
6781         * df.h (df_mw_hardreg): Remove "loc" field.
6782         * df-scan.c (df_ref_record): Don't set it.  Remove redundant
6783         local variable.
6784         * df-problems.c (df_whole_mw_reg_unused_p): New function,
6785         split out from df_set_unused_notes_for_mw.  Return false for
6786         partial references.  Assert that mw_reg is a REG when returning true.
6787         (df_set_unused_notes_for_mw): Use it.  Use mw_reg instead of *loc.
6788         (df_whole_mw_reg_dead_p): New function, split out from
6789         df_set_dead_notes_for_mw.  Return false for partial references.
6790         Assert that mw_reg is a REG when returning true.
6791         (df_set_dead_notes_for_mw): Use it.  Use mw_reg instead of *loc.
6792         Remove redundant bitmap check.
6793
6794 2007-07-26  H.J. Lu  <hongjiu.lu@intel.com>
6795
6796         * config/ia64/t-ia64 ($(T)crtbegin.o): Removed.
6797         ($(T)crtend.o): Likwise.
6798         ($(T)crtbeginS.o): Likwise.
6799         ($(T)crtendS.o): Likwise.
6800         ($(T)crtfastmath.o): Likwise.
6801
6802 2007-07-26  Zdenek Dvorak  <dvorakz@suse.cz>
6803
6804         * dominance.c (dom_computed, n_bbs_in_dom_tree): Removed.
6805         * function.h (dom_computed, n_bbs_in_dom_tree): New macros.
6806         * basic-block.h (struct control_flow_graph): Added x_dom_computed
6807         and x_n_bbs_in_dom_tree fields.
6808
6809 2007-07-26  Steve Ellcey  <sje@cup.hp.com>
6810
6811         PR tree-optimization/32087
6812         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
6813         Do not call scale_bbs_frequencies_int with prob of zero.
6814
6815 2007-07-26  Julian Brown  <julian@codesourcery.com>
6816
6817         * config/arm/arm-protos.h (neon_lane_bounds, neon_const_bounds)
6818         (neon_element_bits): Add prototypes.
6819         * config/arm/arm.c (bounds_check, neon_lane_bounds)
6820         (neon_const_bounds, neon_element_bits): New functions.
6821         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_lanedi)
6822         (neon_vget_lanev2di, neon_vset_lane<mode>, neon_vset_lanedi)
6823         (neon_vset_lanev2di, neon_vdup_lane<mode>, neon_vdup_lanedi)
6824         (neon_vdup_lanev2di, neon_vcvt_n<mode>, neon_vmul_lane<mode>)
6825         (neon_vmull_lane<mode>, neon_vqdmull_lane<mode>)
6826         (neon_vqdmulh_lane<mode>, neon_vmla_lane<mode>)
6827         (neon_vmlal_lane<mode>, neon_vqdmlal_lane<mode>)
6828         (neon_vmls_lane<mode>, neon_vmlsl_lane<mode>)
6829         (neon_vqdmlsl_lane<mode>, neon_vext<mode>, neon_vshr_n<mode>)
6830         (neon_vshrn_n<mode>, neon_vqshrn_n<mode>, neon_vqshrun_n<mode>)
6831         (neon_vshl_n<mode>, neon_vshl_n<mode>, neon_vqshl_n<mode>)
6832         (neon_vqshlu_n<mode>, neon_vshll_n<mode>, neon_vsra_n<mode>)
6833         (neon_vsri_n<mode>, neon_vsli_n<mode>): Add bounds checks.
6834
6835 2007-07-26  Nathan Froyd  <froydnj@codesourcery.com>
6836
6837         * config/vxworks.h (VXWORKS_LINK_SPEC): Fix typo.
6838         (HAVE_AS_GNU_ATTRIBUTE): Undefine.
6839
6840 2007-07-26  Mark Shinwell  <shinwell@codesourcery.com>
6841             Julian Brown  <julian@codesourcery.com>
6842
6843         * config/arm/arm.c (arm_mac_accumulator_is_mul_result): New.
6844         * config/arm/arm-protos.h (arm_mac_accumulator_is_mul_result): New.
6845         * config/arm/cortex-a8.md: New.
6846         * config/arm/cortex-a8-neon.md: New.
6847         * config/arm/neon-schedgen.ml: New.
6848         * config/arm/neon.md (vqh_mnem): New.
6849         (neon_type): New.
6850         (Is_float_mode): New.
6851         (Scalar_mul_8_16): New.
6852         (Is_d_reg): New.
6853         (V_mode_nunits): New.
6854         (All instruction patterns): Annotate with neon_type attribute
6855         values.
6856         * config/arm/arm.md: Include cortex-a8.md.
6857         (insn): Add smmla, umaal, smlald, smlsld, clz, mrs, msr and xtab
6858         values.
6859         Annotate instruction patterns accordingly.
6860         (generic_sched): Do not use generic scheduling for Cortex-A8.
6861         (generic_vfp): Do not use generic VFP scheduling for Cortex-A8.
6862
6863 2007-07-26  Daniel Jacobowitz  <dan@codesourcery.com>
6864
6865         * fold-const.c (fold_read_from_constant_string): Use
6866         build_int_cst_type.
6867         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
6868
6869 2007-07-26  Nick Clifton  <nickc@redhat.com>
6870
6871         * tree-ssa-operands.h: Change copyright header to refer to version
6872         3 of the GNU General Public License and to point readers at the
6873         COPYING3 file and the FSF's license web page.
6874         * tree-vrp.c, regrename.c, attribs.c, loop-unswitch.c,
6875         sched-ebb.c, fwprop.c, tree-loop-linear.c, dwarf2asm.c,
6876         tree-into-ssa.c, dwarf2asm.h, tree-ssa-loop-im.c, sbitmap.c,
6877         targhooks.c, tree-dump.c, tree-complex.c, sbitmap.h, targhooks.h,
6878         tree-dump.h, regstat.c, see.c, machmode.h, hooks.c, cgraphbuild.c,
6879         hooks.h, genrecog.c, tree-ssa-threadupdate.c, gen-protos.c,
6880         flags.h, rtlhooks.c, gencheck.c, tree-ssa-loop-niter.c,
6881         opts-common.c, dbgcnt.def, tree-pretty-print.c, tracer.c,
6882         gengtype.c, mkconfig.sh, gengtype.h, tree-ssa-loop-unswitch.c,
6883         cgraph.c, c-lex.c, cgraph.h, libfuncs.h, cfgloopmanip.c,
6884         rtl-error.c, optabs.c, postreload-gcse.c, tree-ssa-loop-manip.c,
6885         optabs.h, genmddeps.c, defaults.h, postreload.c, value-prof.c,
6886         tree-ssa-loop-ch.c, tree-tailcall.c, gengenrtl.c, value-prof.h,
6887         genopinit.c, tree.c, tree.h, reload.c, tree-pass.h, ipa-cp.c,
6888         reload.h, bitmap.c, bitmap.h, tree-scalar-evolution.c,
6889         c-config-lang.in, tree-scalar-evolution.h, target.h, cppspec.c,
6890         rtlanal.c, ddg.c, lambda-mat.c, mips-tdump.c, ddg.h,
6891         tree-phinodes.c, mips-tfile.c, pointer-set.c, pointer-set.h,
6892         diagnostic.c, final.c, diagnostic.h, builtins.c, genoutput.c,
6893         gcc.c, lists.c, tree-ssa-alias-warnings.c, gcc.h, cfghooks.c,
6894         input.h, gensupport.c, fold-const.c, cfghooks.h, insn-notes.def,
6895         gensupport.h, builtin-attrs.def, sync-builtins.def, params.c,
6896         cfgloopanal.c, params.h, graphds.c, omp-low.c, tree-ssa-dse.c,
6897         graphds.h, gcov.c, cfg.c, genextract.c, ipa-reference.c,
6898         genautomata.c, tree-ssa-uncprop.c, auto-inc-dec.c, toplev.c,
6899         tree-gimple.c, ipa-reference.h, vmsdbgout.c, errors.c, toplev.h,
6900         reorg.c, tree-gimple.h, tree-chrec.c, pretty-print.c, errors.h,
6901         real.c, tree-chrec.h, pretty-print.h, debug.c, real.h, genemit.c,
6902         omega.c, c-cppbuiltin.c, genmultilib, debug.h, omega.h,
6903         tree-ssa-sccvn.c, genconfig.c, tree-ssa-sccvn.h, cgraphunit.c,
6904         regs.h, df-scan.c, vec.c, hosthooks-def.h, vec.h,
6905         tree-ssa-copyrename.c, scan.c, builtin-types.def, tree-ssa-ccp.c,
6906         scan.h, mode-classes.def, haifa-sched.c, dominance.c, dojump.c,
6907         double-int.c, gcov-io.c, dbxout.c, builtins.def, double-int.h,
6908         dbxout.h, tree-ssa-loop-ivopts.c, df-core.c, mode-switching.c,
6909         gengtype-lex.l, tree-nomudflap.c, modulo-sched.c, c-objc-common.c,
6910         hosthooks.h, c-objc-common.h, caller-save.c, graph.c,
6911         ipa-pure-const.c, graph.h, c-format.c, cse.c, fix-header.c,
6912         c-format.h, web.c, tree-stdarg.c, genpeep.c, tree-stdarg.h,
6913         tree-ssa-math-opts.c, xcoffout.c, tree-ssa-dom.c, tree-nrv.c,
6914         xcoffout.h, tree-ssa-propagate.c, ipa-utils.c,
6915         tree-ssa-propagate.h, tree-ssa-alias.c, loop-init.c, ipa-utils.h,
6916         gimple-low.c, rtl.def, c-tree.h, tree-ssa-sink.c, ipa-inline.c,
6917         mkmap-symver.awk, machmode.def, c-pch.c, cfganal.c, global.c,
6918         alloc-pool.c, c-semantics.c, alloc-pool.h, jump.c, ifcvt.c,
6919         dwarf2out.c, expr.c, cfgbuild.c, tree-browser.c, dwarf2out.h,
6920         expr.h, longlong.h, opts.c, gcov-iov.c, opts.h, dwarf2.h,
6921         genattrtab.c, genconditions.c, genattr.c, optc-gen.awk,
6922         timevar.def, tree-ssa-loop-ivcanon.c, hard-reg-set.h, predict.c,
6923         tree-ssa-loop.c, host-default.c, predict.h, recog.c, dbgcnt.c,
6924         recog.h, dbgcnt.h, c-aux-info.c, tree-ssa-address.c, timevar.c,
6925         dse.c, lcm.c, tree-ssa-ifcombine.c, timevar.h, dse.h,
6926         matrix-reorg.c, tree-vn.c, treestruct.def, fp-test.c, c-decl.c,
6927         tree-eh.c, c-errors.c, c-pretty-print.c, regmove.c,
6928         lambda-trans.c, c-pretty-print.h, et-forest.c, et-forest.h,
6929         ebitmap.c, configure.ac, local-alloc.c, function.c, langhooks.c,
6930         ebitmap.h, cppdefault.c, tree-vectorizer.c, function.h,
6931         langhooks.h, print-rtl.c, cppdefault.h, df.h, tree-vectorizer.h,
6932         sdbout.c, stor-layout.c, sdbout.h, rtlhooks-def.h, read-rtl.c,
6933         gcse.c, ipa-type-escape.c, vmsdbg.h, alias.c, gengtype-parse.c,
6934         ipa-type-escape.h, domwalk.c, alias.h, tree-if-conv.c, profile.c,
6935         init-regs.c, domwalk.h, ipa.c, gccbug.in, tree-data-ref.c,
6936         loop-unroll.c, tree-data-ref.h, tree-flow-inline.h, tree-affine.c,
6937         mkmap-flat.awk, tree-affine.h, tree-vect-analyze.c, c.opt, ggc.h,
6938         opt-gather.awk, c-typeck.c, gimplify.c, coretypes.h, exec-tool.in,
6939         insn-addr.h, tree-ssa-phiopt.c, c-pragma.c, c-pragma.h, calls.c,
6940         tree-ssa-coalesce.c, genmodes.c, loop-doloop.c, predict.def,
6941         dwarf.h, tree.def, rtl-factoring.c, lower-subreg.c, expmed.c,
6942         bt-load.c, ggc-common.c, genflags.c, tree-dfa.c, except.c,
6943         coverage.c, except.h, emit-rtl.c, cfgexpand.c, coverage.h,
6944         stringpool.c, cselib.c, emit-rtl.h, tree-cfgcleanup.c, c-opts.c,
6945         cselib.h, cfgcleanup.c, simplify-rtx.c, tree-ssa-pre.c, explow.c,
6946         tree-ssa-live.c, tree-sra.c, tree-ssa-live.h, tree-predcom.c,
6947         loop-invariant.c, genpreds.c, protoize.c, opth-gen.awk, c-dump.c,
6948         lambda.h, loop-iv.c, tree-mudflap.c, ipa-prop.c, print-tree.c,
6949         tree-mudflap.h, tree-ssa-copy.c, ipa-prop.h, cfglayout.c,
6950         tree-ssa-forwprop.c, c-convert.c, cfglayout.h, common.opt,
6951         ggc-zone.c, ggc-page.c, c-omp.c, tree-ssa-dce.c, gencodes.c,
6952         varasm.c, tree-vect-patterns.c, libada-mk.in, tree-ssa-ter.c,
6953         sched-deps.c, tree-nested.c, c-ppoutput.c, tree-ssa.c,
6954         target-def.h, tree-ssa-loop-prefetch.c, lambda-code.c,
6955         omp-builtins.def, rtl.c, regclass.c, stab.def, intl.c, rtl.h,
6956         intl.h, tree-inline.c, conditions.h, tree-inline.h, integrate.c,
6957         sched-int.h, tree-iterator.c, integrate.h, tree-iterator.h,
6958         genchecksum.c, tree-optimize.c, output.h, tree-vect-transform.c,
6959         tree-object-size.c, combine.c, tree-outof-ssa.c, addresses.h,
6960         bb-reorder.c, stack-ptr-mod.c, resource.c, var-tracking.c,
6961         cfgloop.c, system.h, resource.h, ggc-none.c, tree-profile.c,
6962         cfgloop.h, c-gimplify.c, c-common.c, opt-functions.awk,
6963         tree-vect-generic.c, tree-flow.h, df-problems.c, scan-decls.c,
6964         c-common.h, config.gcc, reg-stack.c, tlink.c, main.c, stub-objc.c,
6965         fixproto, config.host, Makefile.in, gccspec.c, sched-rgn.c,
6966         vecprim.h, basic-block.h, tree-ssa-structalias.c,
6967         tree-ssa-structalias.h, c-common.def, sched-vis.c, tree-cfg.c,
6968         passes.c, genconstants.c, c-incpath.c, c-incpath.h,
6969         struct-equiv.c, c-parser.c, tree-ssa-reassoc.c, varray.c, sreal.c,
6970         varray.h, dfp.c, sreal.h, combine-stack-adj.c, dfp.h,
6971         reg-notes.def, cfgrtl.c, config.build, varpool.c, gengtype-yacc.y,
6972         stmt.c, dce.c, tree-browser.def, prefix.c, statistics.h,
6973         params.def, dce.h, c-lang.c, gcov-dump.c, prefix.h,
6974         tree-ssanames.c, collect2.c, collect2.h, tree-ssa-threadedge.c,
6975         convert.c, convert.h, langhooks-def.h, reload1.c,
6976         tree-ssa-operands.c: Likewise.
6977
6978 2007-07-26  Jan Hubicka  <jh@suse.cz>
6979
6980         * tree-ssa-live.c: Include debug.h and flags.h.
6981         (mark_scope_block_unused): New function.
6982         (remove_unused_scope_block_p): New function.
6983         (remove_unused_locals): Remove unused blocks too.
6984
6985 2007-07-25  Ian Lance Taylor  <iant@google.com>
6986
6987         * combine.c (combine_max_regno): Remove.  Remove all uses.
6988         (struct reg_stat_struct): Rename from struct reg_stat.
6989         (reg_stat_type): Define, and declare VECs.
6990         (reg_stat): Change from pointer to VEC.  Change all uses.
6991         (combine_split_insns): New static function.
6992         (try_combine, find_split_point): Call it instead of split_insns.
6993
6994 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
6995
6996         * cfghooks.c (split_block): Fix the information about loop latch.
6997
6998 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
6999
7000         * cfgloopmanip.c (fix_loop_structure): Call force_single_succ_latches.
7001
7002 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
7003
7004         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
7005         Scan the new edge for loop exit info.
7006
7007 2007-07-25  Andreas Tobler  <a.tobler@schweiz.org>
7008
7009         * config/darwin.c: Include debug.h.
7010
7011 2007-07-25  Steve Ellcey  <sje@cup.hp.com>
7012
7013         PR target/32218
7014         * tree-vect-patterns.c (vect_pattern_recog_1): Check for valid type.
7015
7016 2007-07-25  Steve Ellcey  <sje@cup.hp.com>
7017
7018         * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle RFmode.
7019         (HARD_REGNO_MODE_OK): Ditto.
7020         (MODES_TIEABLE_P): Ditto.
7021         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
7022         (CLASS_MAX_NREGS): Ditto.
7023         * config/ia64/ia64.c (ia64_print_operand_address): Add R format.
7024         * config/ia64/ia64.md (divsf3_internal_thr): Removed.
7025         (divdf3_internal_thr): Removed.
7026         * config/ia64/div.md: New file.
7027         * config/ia64/constraints.md: Add H constraint.
7028
7029 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7030
7031         * sbitmap.c (sbitmap_verify_popcount, sbitmap_alloc_with_popcount,
7032         sbitmap_copy, sbitmap_copy_n, sbitmap_equal, sbitmap_empty_p,
7033         sbitmap_union_of_diff_cg, sbitmap_union_of_diff, sbitmap_not,
7034         sbitmap_difference, sbitmap_any_common_bits, sbitmap_a_and_b_cg,
7035         sbitmap_a_and_b, sbitmap_a_xor_b_cg, sbitmap_a_xor_b,
7036         sbitmap_a_or_b_cg, sbitmap_a_or_b, sbitmap_a_subset_b_p,
7037         sbitmap_a_or_b_and_c_cg, sbitmap_a_or_b_and_c,
7038         sbitmap_a_and_b_or_c_cg, sbitmap_a_and_b_or_c,
7039         sbitmap_first_set_bit, sbitmap_last_set_bit, dump_sbitmap,
7040         dump_sbitmap_file, debug_sbitmap, popcount_table,
7041         sbitmap_popcount): Constify.
7042         * sbitmap.h (const_sbitmap, const_sbitmap_ptr): New.
7043         (sbitmap_iterator, sbitmap_iter_init, dump_sbitmap,
7044         dump_sbitmap_file, sbitmap_copy, sbitmap_copy_n, sbitmap_equal,
7045         sbitmap_empty_p, sbitmap_union_of_diff, sbitmap_union_of_diff_cg,
7046         sbitmap_difference, sbitmap_not, sbitmap_a_or_b_and_c,
7047         sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c,
7048         sbitmap_a_and_b_or_c_cg, sbitmap_any_common_bits, sbitmap_a_and_b,
7049         sbitmap_a_and_b_cg, sbitmap_a_or_b, sbitmap_a_or_b_cg,
7050         sbitmap_a_xor_b, sbitmap_a_xor_b_cg, sbitmap_a_subset_b_p,
7051         sbitmap_first_set_bit, sbitmap_last_set_bit, debug_sbitmap,
7052         sbitmap_popcount, sbitmap_verify_popcount): Constify.
7053
7054 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7055
7056         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_element_zerop,
7057         bitmap_copy, bitmap_clear_bit, popcount_table, bitmap_count_bits,
7058         bitmap_first_set_bit, bitmap_and, bitmap_and_into,
7059         bitmap_elt_copy, bitmap_and_compl, bitmap_and_compl_into,
7060         bitmap_compl_and_into, bitmap_elt_ior, bitmap_ior,
7061         bitmap_ior_into, bitmap_xor, bitmap_xor_into, bitmap_equal_p,
7062         bitmap_intersect_p, bitmap_intersect_compl_p,
7063         bitmap_ior_and_compl, bitmap_ior_and_compl_into,
7064         debug_bitmap_file, debug_bitmap, bitmap_print, bitmap_hash):
7065         Constify.
7066         * bitmap.h (bitmap_copy, bitmap_equal_p, bitmap_intersect_p,
7067         bitmap_intersect_compl_p, bitmap_count_bits, bitmap_and,
7068         bitmap_and_into, bitmap_and_compl, bitmap_and_compl_into,
7069         bitmap_compl_and_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
7070         bitmap_xor_into, bitmap_ior_and_compl, bitmap_ior_and_compl_into,
7071         debug_bitmap, debug_bitmap_file, bitmap_print,
7072         bitmap_first_set_bit, bitmap_hash, bmp_iter_set_init,
7073         bmp_iter_and_init, bmp_iter_and_compl_init): Likewise.
7074
7075 2007-07-25  Daniel Berlin  <dberlin@dberlin.org>
7076
7077         * config/darwin.c (darwin_override_options): Additional fix for
7078         debug info formats that don't support var tracking.
7079
7080 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7081
7082         * cselib.c (entry_and_rtx_equal_p): Constify.
7083         * gengtype.c (output_mangled_typename, write_types, write_local):
7084         Likewise.
7085         * gengtype.h (const_type_p): New.
7086         * see.c (eq_descriptor_extension, hash_descriptor_extension):
7087         Constify.
7088         * tlink.c (scan_linker_output): De-constify.
7089         * tree-ssa-loop-im.c (memref_eq): Constify.
7090         * tree-ssa-structalias.c (const_shared_bitmap_info_t): New.
7091         (shared_bitmap_hash, shared_bitmap_eq): Constify.
7092
7093 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7094
7095         * c-common.c (fname_as_string, c_type_hash): Constify.
7096         * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
7097         * cgraph.c (edge_hash, edge_eq): Likewise.
7098         * dwarf2out.c (decl_die_table_eq, decl_loc_table_eq): Likewise.
7099         * emit-rtl.c (mem_attrs_htab_eq, reg_attrs_htab_hash,
7100         reg_attrs_htab_eq): Likewise.
7101         * except.c (t2r_eq, t2r_hash, ttypes_filter_eq, ehl_hash, ehl_eq):
7102         Likewise.
7103         * genautomata.c (const_reserv_sets_t, const_unit_decl_t,
7104         const_decl_t, const_state_t, const_automata_list_el_t): New.
7105         (first_out_arc, DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL,
7106         DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV,
7107         automaton_decl_hash, automaton_decl_eq_p, insn_decl_hash,
7108         insn_decl_eq_p, decl_hash, decl_eq_p, alt_state_cmp,
7109         reserv_sets_cmp, reserv_sets_eq, state_hash, state_eq_p,
7110         automata_list_hash, automata_list_eq_p, compare_states_for_equiv,
7111         compare_max_occ_cycle_nums, out_state_arcs_num,
7112         compare_transition_els_num, units_cmp, state_reservs_cmp):
7113         Constify.
7114         * genmodes.c (cmp_modes): Likewise.
7115         * ggc-common.c (saving_htab_hash, saving_htab_eq): Likewise.
7116         * gimplify.c (compare_case_labels): Likewise.
7117         * ipa-type-escape.c (get_name_of_type, type_brand_s): Likewise.
7118         * loop-unroll.c (si_info_hash, ve_info_hash): Likewise.
7119         * matrix-reorg.c (mtt_info_hash): Likewise.
7120         * postreload-gcse.c (hash_expr_for_htab, expr_equiv_p): Likewise.
7121         * rtl-factoring.c (const_p_hash_bucket, const_p_hash_elem): New.
7122         (htab_hash_bucket, htab_hash_elem): Constify.
7123         * tree-browser.c (TB_parent_eq): Likewise.
7124         * tree-scalar-evolution.c (hash_scev_info): Likewise.
7125         * tree-ssa-alias.c (sort_tags_by_id): Likewise.
7126         * tree-ssa-coalesce.c (const_coalesce_pair_p): New.
7127         (coalesce_pair_map_hash, coalesce_pair_map_eq, compare_pairs):
7128         Constify.
7129         * tree-ssa-dom.c (avail_expr_hash, avail_expr_eq): Likewise.
7130         * tree-ssa-pre.c (const_expr_pred_trans_t): New.
7131         (expr_pred_trans_hash, expr_pred_trans_eq): Constify.
7132         * tree-ssa-sccvn.c (const_vn_binary_op_t, const_vn_unary_op_t,
7133         const_vn_phi_t, const_vn_reference_op_t, const_vn_reference_t):
7134         New.
7135         (vn_reference_op_eq, vn_reference_hash, vn_reference_eq,
7136         vn_unary_op_hash, vn_unary_op_eq, vn_binary_op_hash,
7137         vn_binary_op_eq, vn_phi_hash, vn_phi_eq): Constify.
7138         * tree-ssa-threadupdate.c (redirection_data_hash,
7139         redirection_data_eq): Likewise. 
7140         * tree-ssa-uncprop.c (equiv_hash, equiv_eq): Likewise.
7141         * tree-ssa.c (var_ann_eq): Likewise.
7142         * tree-vrp.c (compare_case_labels): Likewise.
7143         * tree.c (int_cst_hash_hash, int_cst_hash_eq,
7144         tree_map_base_marked_p, type_hash_marked_p, tree_check_failed,
7145         tree_not_check_failed, tree_class_check_failed,
7146         tree_range_check_failed, tree_not_class_check_failed,
7147         omp_clause_check_failed, omp_clause_range_check_failed,
7148         tree_contains_struct_check_failed, tree_operand_check_failed):
7149         Likewise. 
7150         * tree.h (tree_contains_struct_check_failed, tree_check_failed,
7151         tree_not_check_failed, tree_class_check_failed,
7152         tree_range_check_failed, tree_not_class_check_failed,
7153         tree_operand_check_failed, omp_clause_operand_check_failed,
7154         tree_operand_length): Likewise. 
7155         * var-tracking.c (const_variable): New.
7156         (variable_htab_hash, variable_htab_eq): Constify.
7157         * varasm.c (const_desc_hash): Likewise.
7158
7159 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7160
7161         * expr.c (handled_component_p): Constify.
7162         * fold-const.c (fit_double_type): Likewise.
7163         * real.h (real_value_from_int_cst): Likewise.
7164         * tree-flow-inline.h (gimple_in_ssa_p,
7165         gimple_aliases_computed_p, gimple_addressable_vars,
7166         gimple_call_clobbered_vars, gimple_referenced_vars,
7167         gimple_global_var, gimple_nonlocal_all, gimple_var_anns,
7168         end_htab_p, end_referenced_vars_p, var_ann, function_ann,
7169         may_aliases, end_readonly_imm_use_p, has_zero_uses,
7170         has_single_use, single_imm_use, num_imm_uses, is_exec_stmt,
7171         is_label_stmt, is_global_var, phi_ssa_name_p,
7172         factoring_name_p, is_call_clobbered, tree_common_ann,
7173         op_iter_done, end_imm_use_stmt_p, end_imm_use_on_stmt_p,
7174         unmodifiable_var_p, array_ref_contains_indirect_ref,
7175         ref_contains_array_ref, lookup_subvars_for_var,
7176         var_can_have_subvars, overlap_subvar, gimple_ssa_operands,
7177         gimple_mem_ref_stats): Likewise.
7178         * tree-flow.h (tree_common_ann, var_ann, function_ann,
7179         may_aliases, is_exec_stmt, is_label_stmt,
7180         ref_contains_array_ref, array_ref_contains_indirect_ref,
7181         var_can_have_subvars, overlap_subvar, is_call_clobbered,
7182         unmodifiable_var_p): Likewise.
7183         * tree-gimple.c (is_gimple_min_invariant): Likewise.
7184         * tree-gimple.h (is_gimple_min_invariant): Likewise. 
7185         * tree.c (type_hash_list, attribute_hash_list, tree_size,
7186         cst_and_fits_in_hwi, real_value_from_int_cst,
7187         build_real_from_int_cst, integer_zerop, integer_onep,
7188         integer_all_onesp, integer_pow2p, integer_nonzerop, tree_log2,
7189         tree_floor_log2, real_zerop, real_onep, real_twop,
7190         real_minus_onep, really_constant_p, purpose_member, chain_member,
7191         list_length, fields_length, int_size_in_bytes, bit_position,
7192         int_bit_position, byte_position, int_byte_position, expr_align,
7193         array_type_nelts, tree_node_structure,
7194         type_contains_placeholder_1, iterative_hash_pointer,
7195         is_attribute_with_length_p, is_attribute_p, check_qualified_type,
7196         tree_map_base_eq, type_hash_list, type_hash_eq,
7197         attribute_hash_list, type_num_arguments, tree_int_cst_equal,
7198         tree_int_cst_lt, tree_int_cst_compare, host_integerp,
7199         tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
7200         simple_cst_list_equal, compare_tree_int, iterative_hash_expr,
7201         int_fits_type_p, get_containing_scope, decl_function_context,
7202         decl_type_context, omp_clause_operand_check_failed,
7203         initializer_zerop, int_cst_value, num_ending_zeros): Likewise.
7204         * tree.h (omp_clause_operand_check_failed, tree_size,
7205         build_real_from_int_cst, array_type_nelts, purpose_member,
7206         tree_int_cst_equal, tree_int_cst_lt, tree_int_cst_compare,
7207         host_integerp, tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
7208         is_attribute_p, check_qualified_type, expr_align,
7209         int_size_in_bytes, bit_position, int_bit_position, byte_position,
7210         int_byte_position, list_length, fields_length, initializer_zerop,
7211         integer_zerop, integer_onep, integer_all_onesp, integer_pow2p,
7212         integer_nonzerop, cst_and_fits_in_hwi, num_ending_zeros,
7213         tree_node_structure, handled_component_p, get_containing_scope,
7214         decl_function_context, decl_type_context, real_zerop,
7215         type_num_arguments, fit_double_type, really_constant_p,
7216         int_fits_type_p, tree_log2, tree_floor_log2, iterative_hash_expr,
7217         compare_tree_int, chain_member, simple_cst_list_equal, real_onep,
7218         real_twop, real_minus_onep, int_cst_value): Likewise.
7219
7220 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7221
7222         * cfglayout.c (insn_scope, insn_line): Constify.
7223         * emit-rtl.c (const_int_htab_hash, const_int_htab_eq,
7224         const_double_htab_hash, const_double_htab_eq,
7225         mem_attrs_htab_hash): Likewise.
7226         * loop-iv.c (biv_eq): Likewise.
7227         * print-rtl.c (print_rtx, print_decl_name, print_mem_expr,
7228         print_inline_rtx, debug_rtx, debug_rtx_list, debug_rtx_range,
7229         debug_rtx_find, print_rtl, print_rtl_single, print_simple_rtl):
7230         Likewise. 
7231         * rtl-error.c (location_for_asm, diagnostic_for_asm,
7232         error_for_asm, warning_for_asm, _fatal_insn,
7233         _fatal_insn_not_found): Likewise. 
7234         * rtl.c (rtx_size, shared_const_p, shallow_copy_rtx_stat,
7235         rtx_equal_p, rtl_check_failed_bounds, rtl_check_failed_type1,
7236         rtl_check_failed_type2, rtl_check_failed_code1,
7237         rtl_check_failed_code2, rtl_check_failed_code_mode,
7238         rtvec_check_failed_bounds, rtl_check_failed_flag): Likewise.
7239         * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
7240         rtl_check_failed_type2, rtl_check_failed_code1,
7241         rtl_check_failed_code2, rtl_check_failed_code_mode,
7242         rtvec_check_failed_bounds, rtl_check_failed_flag, LABEL_KIND,
7243         SET_LABEL_KIND, rhs_regno, subreg_lsb, subreg_regno, subreg_nregs,
7244         shared_const_p, rtx_size, shallow_copy_rtx_stat, rtx_equal_p,
7245         get_pool_mode, insn_line, insn_file, simplify_replace_rtx,
7246         mode_signbit_p, rtx_addr_can_trap_p, nonzero_address_p,
7247         rtx_unstable_p, get_integer_term, get_related_value,
7248         offset_within_block_p, reg_mentioned_p, count_occurrences,
7249         reg_referenced_p, reg_used_between_p, no_labels_between_p,
7250         single_set_2, multiple_sets, set_noop_p, refers_to_regno_p,
7251         reg_overlap_mentioned_p, dead_or_set_p, dead_or_set_regno_p,
7252         find_reg_note, find_regno_note, find_reg_equal_equiv_note,
7253         find_constant_src, find_reg_fusage, find_regno_fusage,
7254         pure_call_p, remove_note, side_effects_p, volatile_refs_p,
7255         volatile_insn_p, may_trap_p, may_trap_after_code_motion_p,
7256         may_trap_or_fault_p, inequality_comparisons_p, tablejump_p,
7257         computed_jump_p, auto_inc_p, in_expr_list_p,
7258         remove_node_from_expr_list, loc_mentioned_in_p,
7259         label_is_jump_target_p, reversed_comparison_code_parts,
7260         debug_rtx, debug_rtx_list, debug_rtx_range, debug_rtx_find,
7261         print_mem_expr, print_rtl, print_simple_rtl, print_rtl_single,
7262         print_inline_rtx): Likewise.
7263         * rtlanal.c (covers_regno_p, covers_regno_no_parallel_p,
7264         computed_jump_p_1, nonzero_bits1, rtx_unstable_p,
7265         rtx_addr_can_trap_p_1, rtx_addr_can_trap_p, nonzero_address_p,
7266         get_integer_term, get_related_value, offset_within_block_p,
7267         count_occurrences, reg_mentioned_p, no_labels_between_p,
7268         reg_used_between_p, reg_referenced_p, single_set_2,
7269         multiple_sets, set_noop_p, refers_to_regno_p,
7270         reg_overlap_mentioned_p, dead_or_set_p,
7271         covers_regno_no_parallel_p, covers_regno_p,
7272         dead_or_set_regno_p, find_reg_note, find_regno_note,
7273         find_reg_equal_equiv_note, find_constant_src, find_reg_fusage,
7274         find_regno_fusage, pure_call_p, remove_note, in_expr_list_p,
7275         remove_node_from_expr_list, volatile_insn_p, volatile_refs_p,
7276         side_effects_p, may_trap_p_1, may_trap_p,
7277         may_trap_after_code_motion_p, may_trap_or_fault_p,
7278         inequality_comparisons_p, tablejump_p, computed_jump_p_1,
7279         computed_jump_p, auto_inc_p, loc_mentioned_in_p, subreg_lsb,
7280         subreg_regno, subreg_nregs, label_is_jump_target_p): Likewise.
7281         * simplify-rtx.c (neg_const_int, plus_minus_operand_p,
7282         mode_signbit_p, simplify_replace_rtx, plus_minus_operand_p):
7283         Likewise. 
7284         * toplev.h (_fatal_insn_not_found, _fatal_insn, error_for_asm,
7285         warning_for_asm): Likewise.
7286         * tree.h (print_rtl): Likewise.
7287         * varasm.c (get_pool_mode): Likewise.
7288
7289 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7290
7291         * c-lex.c (c_lex_with_flags, lex_string): Constify.
7292         * c-ppoutput.c (print_line, pp_dir_change): Likewise.
7293         * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
7294         * cfg.c (bb_copy_original_hash, bb_copy_original_eq): Likewise.
7295         * cfgloop.c (loop_exit_hash, loop_exit_eq): Likewise.
7296         * ddg.c (compare_sccs): Likewise.
7297         * df-scan.c (df_ref_compare, df_mw_compare): Likewise.
7298         * dfp.c (decimal_real_from_string, decimal_to_decnumber,
7299         decimal_to_binary, decimal_do_compare, decimal_real_to_decimal,
7300         decimal_do_fix_trunc, decimal_real_to_integer,
7301         decimal_real_to_integer2, decimal_real_maxval): Likewise.
7302         * dse.c (const_group_info_t): New.
7303         (invariant_group_base_eq, invariant_group_base_hash): Constify.
7304         * dwarf2out.c (const_dw_die_ref): New.
7305         (decl_die_table_hash, decl_die_table_eq, file_info_cmp): Constify.
7306         * tree-browser.c (TB_parent_eq): Likewise.
7307         * unwind-dw2-fde.c (__register_frame_info_bases,
7308         __deregister_frame_info_bases, fde_unencoded_compare, fde_split,
7309         add_fdes, linear_search_fdes, binary_search_unencoded_fdes):
7310         Likewise.
7311         * unwind-dw2-fde.h (get_cie, next_fde): Likewise.
7312         * unwind-dw2.c (uw_frame_state_for): Likewise.
7313         * value-prof.c (histogram_hash, histogram_eq): Likewise.
7314         * value-prof.h (const_histogram_value): New.
7315
7316 2007-07-25  Richard Sandiford  <richard@codesourcery.com>
7317
7318         * config/mips/mips.c (machine_function): Add
7319         initialized_mips16_gp_pseudo_p.
7320         (mips16_gp_pseudo_reg): Do not emit the initialization of
7321         mips16_gp_pseudo_rtx when being called from the gimple cost-
7322         calculation routines; emit it on the first use outside those
7323         routines.
7324
7325 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7326
7327         * coretypes.h (const_bitmap, const_rtx, const_rtvec, const_tree):
7328         New.
7329         
7330         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
7331         RTVEC_ELT, XWINT, XCWINT, XCMWINT, XCNMPRV, BLOCK_SYMBOL_CHECK,
7332         RTL_FLAG_CHECK1, RTL_FLAG_CHECK2, RTL_FLAG_CHECK3,
7333         RTL_FLAG_CHECK4, RTL_FLAG_CHECK5, RTL_FLAG_CHECK6,
7334         RTL_FLAG_CHECK7, RTL_FLAG_CHECK8, LABEL_KIND, SET_LABEL_KIND):
7335         Preserve const-ness of parameters through use of __typeof(),
7336         also constify and tidy.
7337         
7338         * tree.h (TREE_CHECK, TREE_NOT_CHECK, TREE_CHECK2,
7339         TREE_NOT_CHECK2, TREE_CHECK3, TREE_NOT_CHECK3, TREE_CHECK4,
7340         NON_TREE_CHECK4, TREE_CHECK5, TREE_NOT_CHECK5,
7341         CONTAINS_STRUCT_CHECK, TREE_CLASS_CHECK, TREE_RANGE_CHECK,
7342         OMP_CLAUSE_SUBCODE_CHECK, OMP_CLAUSE_RANGE_CHECK, EXPR_CHECK,
7343         GIMPLE_STMT_CHECK, NON_TYPE_CHECK, TREE_VEC_ELT_CHECK,
7344         PHI_NODE_ELT_CHECK, OMP_CLAUSE_ELT_CHECK, TREE_OPERAND_CHECK,
7345         TREE_OPERAND_CHECK_CODE, GIMPLE_STMT_OPERAND_CHECK,
7346         TREE_RTL_OPERAND_CHECK, TREE_CHAIN, TREE_TYPE): Likewise.
7347
7348 2007-07-25  Julian Brown  <julian@codesourcery.com>
7349             Mark Shinwell  <shinwell@codesourcery.com>
7350
7351         * config/alpha/alpha.c (alpha_mangle_fundamental_type): Rename to...
7352         (alpha_mangle_type): This.
7353         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
7354         (TARGET_MANGLE_TYPE): Define this instead.
7355         * config/arm/arm-protos.h (arm_mangle_type): Add prototype.
7356         * config/arm/arm.c (TARGET_MANGLE_TYPE): Define target hook.
7357         (arm_init_neon_builtins): Fix comment.
7358         (arm_mangle_map_entry): New.
7359         (arm_mangle_map): New.
7360         (arm_mangle_type): New.
7361         * config/i386/i386.c (ix86_mangle_fundamental_type): Rename to...
7362         (ix86_mangle_type): This. Use TYPE_MAIN_VARIANT and restrict
7363         mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
7364         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
7365         (TARGET_MANGLE_TYPE): Define this instead.
7366         * config/ia64/ia64.c (ia64_mangle_fundamental_type): Rename to...
7367         (ia64_mangle_type): This. Use TYPE_MAIN_VARIANT  and restrict
7368         mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
7369         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
7370         (TARGET_MANGLE_TYPE): Define this instead.
7371         * config/rs6000/rs6000.c (rs6000_mangle_fundamental_type): Rename
7372         to...
7373         (rs6000_mangle_type): This. Use TYPE_MAIN_VARIANT.
7374         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
7375         (TARGET_MANGLE_TYPE): Define this instead.
7376         * config/s390/s390.c (s390_mangle_fundamental_type): Rename to...
7377         (s390_mangle_type): This.
7378         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
7379         (TARGET_MANGLE_TYPE): Define this instead.
7380         * config/sparc/sparc.c (sparc_mangle_fundamental_type): Rename to...
7381         (sparc_mangle_type): This.
7382         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
7383         (TARGET_MANGLE_TYPE): Define this instead.
7384         * cp/mangle.c (write_type): Call mangle_type target hook on all
7385         types before mangling.  Use original type, not main variant, as
7386         argument.
7387         * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename hook to...
7388         (TARGET_MANGLE_TYPE): This.
7389         * target.h (gcc_target): Rename mangle_fundamental_type to
7390         mangle_type.
7391         * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename section to...
7392         (TARGET_MANGLE_TYPE): This. Note slightly different semantics.
7393
7394 2007-07-25  Julian Brown  <julian@codesourcery.com>
7395             Paul Brook  <paul@codesourcery.com>
7396             Joseph Myers  <joseph@codesourcery.com>
7397             Mark Shinwell  <shinwell@codesourcery.com>
7398
7399         * Makefile.in (TEXI_GCC_FILES): Add arm-neon-intrinsics.texi.
7400         * config.gcc (arm*-*-*): Add arm_neon.h to extra headers.
7401         (with_fpu): Allow --with-fpu=neon.
7402         * config/arm/aof.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
7403         * config/arm/aout.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
7404         * config/arm/arm-modes.def (EI, OI, CI, XI): New modes.
7405         * config/arm/arm-protos.h (neon_immediate_valid_for_move)
7406         (neon_immediate_valid_for_logic, neon_output_logic_immediate)
7407         (neon_pairwise_reduce, neon_expand_vector_init, neon_reinterpret)
7408         (neon_emit_pair_result_insn, neon_disambiguate_copy)
7409         (neon_vector_mem_operand, neon_struct_mem_operand, output_move_quad)
7410         (output_move_neon): Add prototypes.
7411         * config/arm/arm.c (FL_NEON): New flag for NEON processor capability.
7412         (all_fpus): Add FPUTYPE_NEON.
7413         (fp_model_for_fpu): Add NEON field.
7414         (arm_return_in_memory): Return vectors <= 16 bytes in ARM registers.
7415         (arm_arg_partial_bytes): Allow NEON vectors to be passed partially
7416         in registers.
7417         (arm_legitimate_address_p): Don't support fancy addressing for NEON
7418         structure moves.
7419         (thumb2_legitimate_address_p): Likewise.
7420         (neon_valid_immediate): Recognize and prepare constants suitable for
7421         NEON instructions.
7422         (neon_immediate_valid_for_move): New function. Recognize and prepare
7423         immediates for NEON move instructions.
7424         (neon_immediate_valid_for_logic): New function. Recognize and
7425         prepare immediates for NEON logic instructions.
7426         (neon_output_logic_immediate): New function. Create asm string
7427         suitable for outputting immediate logic instructions.
7428         (neon_pairwise_reduce): New function. Implement reduction using
7429         pairwise operations.
7430         (neon_expand_vector_init): New function. Expand a (possibly
7431         non-constant) vector initialization.
7432         (neon_vector_mem_operand): New function. Memory operands supported
7433         for quad-word loads/stores to/from ARM or NEON registers. Don't
7434         allow base+offset addressing for core regs.
7435         (neon_struct_mem_operand): New function. Valid mems for NEON
7436         structure moves.
7437         (coproc_secondary_reload_class): Enable NEON registers to be loaded
7438         from neon_vector_mem_operand addresses without a secondary register.
7439         (add_minipool_forward_ref): Handle >8-byte minipool entries.
7440         (add_minipool_backward_ref): Likewise.
7441         (dump_minipool): Likewise.
7442         (push_minipool_fix): Likewise.
7443         (output_move_quad): New function. Output quad-word moves, loads and
7444         stores using ARM registers.
7445         (output_move_vfp): Add support for vectors in VFP (NEON) D
7446         registers.
7447         (output_move_neon): Output a NEON load/store to/from a quadword
7448         register.
7449         (arm_print_operand): Implement new codes:
7450         - 'c' for unadorned integers (without a # sign).
7451         - 'J', 'K' for reg+2/reg+3, reg+3/reg+2 in little/big-endian
7452         mode.
7453         - 'e', 'f' for the low and high D parts of a NEON Q register.
7454         - 'q' outputs a NEON Q register.
7455         - 'h' outputs ranges of D registers for VLDM/VSTM etc.
7456         - 'T' prints NEON opcode features from a coded bitmask.
7457         - 'F' is similar to T, but signed/unsigned codes both print as
7458         'i'.
7459         - 't' is similar to T, but 'u' is printed instead of 'p'.
7460         - 'O' prints 'r' if NEON instruction should perform rounding (as
7461         specified by bitmask), else prints nothing.
7462         - '#' is a punctuation character to stop operand numbers from
7463         running together with following digits in the assembler
7464         strings for instructions (when using mode attributes).
7465         (arm_assemble_integer): Handle extra NEON vector modes. Permute
7466         constant vectors in big-endian mode, where necessary.
7467         (arm_hard_regno_mode_ok): Allow vectors in VFP/NEON registers.
7468         Handle EI, OI, CI, XI modes.
7469         (ashlv4hi3, ashlv2si3, lshrv4hi3, lshrv2si3, ashrv4hi3)
7470         (ashrv2si3): Rename IWMMXT2_BUILTINs to...
7471         (ashlv4hi3_iwmmxt, ashlv2si3_iwmmxt, lshrv4hi3_iwmmxt)
7472         (lshrv2si3_iwmmxt, ashrv4hi3_iwmmxt, ashrv2si3_iwmmxt): New names.
7473         (neon_builtin_type_bits): Add enumeration, one bit for each vector
7474         type.
7475         (v8qi_UP, v4hi_UP, v2si_UP, v2sf_UP, di_UP, v16qi_UP, v8hi_UP)
7476         (v4si_UP, v4sf_UP, v2di_UP, ti_UP, ei_UP, oi_UP, UP): Define macros
7477         to turn v8qi, etc. into bits defined above.
7478         (neon_itype): New enumeration. Classifications of NEON builtins.
7479         (neon_builtin_datum): Define struct. Contains information about
7480         a single builtin (with multiple modes).
7481         (CF): Define helper macro for...
7482         (VAR1...VAR10): Define builtins with a type, name and 1-10 different
7483         modes.
7484         (neon_builtin_data): New array. Define information about builtins
7485         for use during initialization/expansion.
7486         (arm_init_neon_builtins): New function.
7487         (arm_init_builtins): Call arm_init_neon_builtins if TARGET_NEON is
7488         true.
7489         (neon_builtin_compare): New function.
7490         (locate_neon_builtin_icode): New function. Find an insn code for a
7491         builtin given a function code for that builtin. Also return type of
7492         builtin (NEON_BINOP, NEON_UNOP etc.).
7493         (builtin_arg): New enumeration. Types of arguments for builtins.
7494         (arm_expand_neon_args): New function. Expand a generic NEON builtin.
7495         Takes a variable argument list of builtin_arg types, terminated by
7496         NEON_ARG_STOP.
7497         (arm_expand_neon_builtin): New function. Expand a NEON builtin.
7498         (neon_reinterpret): New function. Expand NEON reinterpret intrinsic.
7499         (neon_emit_pair_result_insn): New function. Support returning pairs
7500         of vectors via a pointer.
7501         (neon_disambiguate_copy): New function. Set up operands for a
7502         multi-word copy such that registers do not get clobbered.
7503         (arm_expand_builtin): Call arm_expand_neon_builtin if fcode >=
7504         ARM_BUILTIN_NEON_BASE.
7505         (arm_file_start): Set float-abi attribute for NEON.
7506         (arm_vector_mode_supported_p): Enable NEON vector modes.
7507         (arm_mangle_map_entry): New.
7508         (arm_mangle_map): New.
7509         (arm_mangle_vector_type): New.
7510         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_NEON__
7511         when appropriate.
7512         (TARGET_NEON): New macro. Target supports NEON.
7513         (fputype): Add FPUTYPE_NEON.
7514         (UNITS_PER_SIMD_WORD): Define. Allow quad-word registers to be used
7515         for vectorization based on command-line arg.
7516         (NEON_REGNO_OK_FOR_NREGS): Define.
7517         (VALID_NEON_DREG_MODE, VALID_NEON_QREG_MODE)
7518         (VALID_NEON_STRUCT_MODE): Define.
7519         (PRINT_OPERAND_PUNCT_VALID_P): '#' is valid punctuation.
7520         (arm_builtins): Add ARM_BUILTIN_NEON_BASE.
7521         * config/arm/arm.md (VUNSPEC_POOL_16): Insert constant for unspec.
7522         (consttable_16): Add pattern for outputting 16-byte minipool
7523         entries.
7524         (movv2si, movv4hi, movv8qi): Remove blank expanders (redefined in
7525         vec-common.md).
7526         (vec-common.md, neon.md): Include md files.
7527         * config/arm/arm.opt (mvectorize-with-neon-quad): Add option.
7528         * config/arm/constraints.md (constraint "Dn", "Dl", "DL"): Define.
7529         (memory_constraint "Ut", "Un", "Us"): Define.
7530         * config/arm/iwmmxt.md (VMMX, VSHFT): New mode macros.
7531         (MMX_char): New mode attribute.
7532         (addv8qi3, addv4hi3, addv2si3): Remove. Replace with...
7533         (*add<mode>3_iwmmxt): New insn pattern.
7534         (subv8qi3, subv4hi3, subv2si3): Remove. Replace with...
7535         (*sub<mode>3_iwmmxt): New insn pattern.
7536         (mulv4hi3): Rename to...
7537         (*mulv4hi3_iwmmxt): This.
7538         (smaxv8qi3, smaxv4hi3, smaxv2si3, umaxv8qi3, umaxv4hi3)
7539         (umaxv2si3, sminv8qi3, sminv4hi3, sminv2si3, uminv8qi3)
7540         (uminv4hi3, uminv2si3): Remove. Replace with...
7541         (*smax<mode>3_iwmmxt, *umax<mode>3_iwmmxt, *smin<mode>3_iwmmxt)
7542         (*umin<mode>3_iwmmxt): These.
7543         (ashrv4hi3, ashrv2si3, ashrdi3_iwmmxt): Replace with...
7544         (ashr<mode>3_iwmmxt): This new pattern.
7545         (lshrv4hi3, lshrv2si3, lshrdi3_iwmmxt): Replace with...
7546         (lshr<mode>3_iwmmxt): This new pattern.
7547         (ashlv4hi3, ashlv2si3, ashldi3_iwmmxt): Replace with...
7548         (ashl<mode>3_iwmmxt): This new pattern.
7549         * config/arm/neon-docgen.ml: New file. Generate documentation for
7550         intrinsics.
7551         * config/arm/neon-gen.ml: New file. Generate arm_neon.h header.
7552         * config/arm/arm_neon.h: New (autogenerated).
7553         * config/arm/neon-testgen.ml: New file. Generate NEON tests
7554         automatically.
7555         * config/arm/neon.md: New file. Define NEON instructions.
7556         * config/arm/neon.ml: New file. Abstract description of NEON
7557         instructions, used to generate arm_neon.h header, documentation and
7558         tests.
7559         * config/arm/t-arm (MD_INCLUDES): Add vec-common.md, neon.md.
7560         * vec-common.md: New file. Shared parts for iWMMXt and NEON vector
7561         support.
7562         * doc/extend.texi (ARM Built-in Functions): Rename and remove
7563         extraneous comma.
7564         (ARM NEON Intrinsics): New subsection.
7565         * doc/arm-neon-intrinsics.texi: New (autogenerated).
7566
7567 2007-07-25  Danny Smith   <dannysmith@users.sourceforge.net>
7568
7569         * config/i386/i386-protos.h (i386_pe_asm_file_end): Remove
7570         prototype.
7571
7572 2007-07-24  Jan Hubicka  <jh@suse.cz>
7573
7574         * regclass.c (move_table): New type.
7575         (move_cost, may_move_in_cost, may_move_out_cost): Use it.
7576         (init_move_cost): Break out from ...
7577         (init_reg_sets_1): ... here; simplify computation of
7578         have_regs-of_mode and contains_reg_of_mode.
7579         (record_reg_classes): Unswitch internal loops.
7580         (copy_cost): Trigger lazy initialization of move cost
7581         (record_address_regs): Likewise.
7582
7583 2007-07-24  Daniel Berlin  <dberlin@dberlin.org>
7584
7585         * config/darwin.c (darwin_override_options): Don't force on
7586         flag_var_tracking_uninit when no debug info is requested.
7587
7588 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
7589
7590         * cfgloop.c (init_loops_structure): New function.
7591         (flow_loops_find): Create root of the loop tree unconditionally.
7592
7593 2007-07-24  Daniel Jacobowitz  <dan@codesourcery.com>
7594
7595         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use fold_convert.
7596
7597 2007-07-24  Jan Hubicka  <jh@suse.cz>
7598
7599         * caller-save.c: Include ggc.h, gt-caller-save.h
7600         (reg_save_code, reg_restore_code): Rename to ...
7601         (cached_reg_save_code, cached_reg_restore_code): ... those.
7602         (savepat, restpat, test_reg, test_mem, saveinsn, restinsn): New.
7603         (reg_save_code, reg_restore_code): New functions.
7604         (init_caller_save): Do not intialize
7605         reg_save_code/reg_restore_code tables.
7606         * Makefile.in: (gt-caller-save.h): New.
7607
7608 2007-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
7609
7610         * tree-ssa-ifcombine.c (ifcombine_ifandif): Use a ONE operand
7611         with the mode of the original operand instead of
7612         integer_one_node.
7613
7614 2007-07-23  Jan Hubicka  <jH@suse.cz>
7615
7616         * i386.c (ix86_secondary_memory_needed): Break out to...
7617         (inline_secondary_memory_needed): ... here.
7618         (ix86_memory_move_cost): Break out to ...
7619         (inline_memory_move_cost): ... here; add support for IN value of 2 for
7620         maximum of input and output; fix handling of Q_REGS on 64bit.
7621         (ix86_secondary_memory_needed): Microoptimize.
7622
7623 2007-07-23  Sebastian Pop  <sebpop@gmail.com>
7624
7625         * tree-data-ref.c (find_vertex_for_stmt, create_rdg_edge_for_ddr,
7626         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
7627         stmts_from_loop, known_dependences_p, build_rdg): New.
7628         * tree-data-ref.h: Depends on graphds.h.
7629         (rdg_vertex, RDGV_STMT, rdg_dep_type, rdg_edge, RDGE_TYPE): New.
7630         (build_rdg): Declared.
7631         * Makefile.in (TREE_DATA_REF_H): Depends on graphds.h.
7632
7633 2007-07-23  Daniel Berlin  <dberlin@dberlin.org>
7634
7635         * tree-ssa-propagate.c (valid_gimple_expression_p): Match up with
7636         ccp_min_invariant.
7637
7638 2007-07-23  Peter Bergner  <bergner@vnet.ibm.com>
7639             Jakub Jelinek  <jakub@redhat.com>
7640
7641         PR middle-end/PR28690
7642         * optabs.c (expand_binop): (emit_cmp_and_jump_insns): Allow
7643         EQ compares.
7644         * rtlanal.c (commutative_operand_precedence): Prefer both REG_POINTER
7645         and MEM_POINTER operands over REG and MEM operands.
7646         (swap_commutative_operands_p): Change return value to bool.
7647         * rtl.h: Update the corresponding prototype.
7648         * tree-ssa-address.c (gen_addr_rtx): Use simplify_gen_binary
7649         instead of gen_rtx_PLUS.
7650         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Change return
7651         value to bool.  Change function arguments to rtx's and update code
7652         to match.
7653         (simplify_plus_minus): Update the simplify_plus_minus_op_data_cmp
7654         calls to match the new declaration.
7655         * simplify-rtx.c (simplify_associative_operation): Don't
7656         reorder simplify_binary_operation arguments.
7657
7658 2007-07-23  Richard Sandiford  <richard@codesourcery.com>
7659
7660         * config/mips/mips.c (override_options): Use mips_costs to derive
7661         the default branch cost.
7662         * config/mips/mips.h (BRANCH_COST): Use mips_branch_cost rather
7663         than mips_costs.
7664         * config/mips/mips.opt (mbranch-cost=): New option.
7665         * doc/invoke.texi (-mbranch-cost): Document new MIPS option.
7666
7667 2007-07-23  Richard Sandiford  <richard@codesourcery.com>
7668
7669         * config/mips/mips.h (GR_REG_CLASS_P, COP_REG_CLASS_P): Delete.
7670         (SECONDARY_MEMORY_NEEDED): Delete commented-out definition.
7671         * config/mips/mips.c (mips_register_move_cost): Use reg_class_subset_p
7672         instead of GR_REG_CLASS_P and COP_REG_CLASS_P.
7673
7674 2007-07-23  Richard Sandiford  <richard@codesourcery.com>
7675
7676         * config/mips/constraints.md (ks): New constraint.
7677         * config/mips/mips.md (*add<mode>3_sp1, *add<mode>3_sp2): Fold into...
7678         (*add<mode>3_mips16): ...here.
7679
7680 2007-07-21  Uros Bizjak  <ubizjak@gmail.com>
7681
7682         * optabs.h (enum optab_index): Add new OTI_signbit.
7683         (signbit_optab): Define corresponding macro.
7684         (enum insn_code signbit_optab[]): Remove array.
7685         * optabs.c (init_optabs): Initialize signbit_optab using init_optab.
7686         (expand_copysign_absneg): If back end provides signbit insn, use it
7687         instead of bit operations on floating point argument.
7688         * builtins.c (enum insn_code signbit_optab[]): Remove array.
7689         (expand_builtin_signbit): Check signbit_optab->handlers[].insn_code
7690         for availability of signbit insn.
7691
7692         * config/i386/i386.md (signbit<mode>2): New insn pattern to implement
7693         signbitf, signbit and signbitl built-ins as inline x87 intrinsics when
7694         SSE mode is not active.
7695         (isinf<mode>2): Disable for mfpmath=sse,387.
7696
7697 2007-07-22  Ben Elliston  <bje@au.ibm.com>
7698
7699         * regclass.c (invalid_mode_change_p): Attach ATTRIBUTE_UNUSED to
7700         `class' parameter.
7701         * struct-equiv.c (note_local_live): Likewise for `y_regno'.
7702
7703 2007-07-20  Richard Guenther  <rguenther@suse.de>
7704
7705         * tree-cfg.c (verify_expr): COND_EXPRs can have any
7706         integral typed condition.
7707         * tree-ssa.c (useless_type_conversion_p): Do not preserve
7708         booleanness.  Only preserve conversions from a non-base
7709         type to a base type, not in general between types with
7710         different TYPE_MIN_VALUE or TYPE_MAX_VALUE.
7711         * tree.def (COND_EXPR): Document that the condition
7712         can be of any integral type.
7713
7714 2007-07-20  Nigel Stephens  <nigel@mips.com>
7715             Richard Sandiford  <richard@codesourcery.com>
7716
7717         * config/mips/mips.h (mips_dwarf_regno): Declare.
7718         (DBX_REGISTER_NUMBER): Remove redundant brackets.
7719         (HI_REGNUM, LO_REGNUM): Define in an endian-dependent way.
7720         (AC1HI_REGNUM, AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM)
7721         (AC3HI_REGNUM, AC3LO_REGNUM, ACC_HI_REG_P): Delete.
7722         (reg_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
7723         (REG_CLASS_NAMES): Update accordingly.
7724         * config/mips/mips.c (mips_dwarf_regno): New array.
7725         (mips_regno_to_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
7726         (mips_subword): Remove special handling for accumulator registers.
7727         (override_options): Initiailize mips_dwarf_regno.  Remove use
7728         of ACC_HI_REG_P.
7729         (mips_swap_registers): New function.
7730         (mips_conditional_register_usage): Swap accumulator registers
7731         around if TARGET_LITTLE_ENDIAN.
7732         (mips_cannot_change_mode_class): Remove special treatment of ACC_REGS.
7733         * config/mips/constraints.md (h, l): Use the endianness to choose
7734         between MD0_REG and MD1_REG.
7735         * config/mips/mips.md (*mfhilo_<mode>_macc): Use a fixed-string,
7736         alternative-dependent template.
7737
7738 2007-07-20  Richard Sandiford  <richard@codesourcery.com>
7739
7740         * config/arm/arm.md (movsi): Use can_create_pseudo_p instead of
7741         no_new_pseudos.
7742
7743 2007-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
7744
7745         * function.c (thread_prologue_and_epilogue_insns): Fix exit
7746         predecessor fallthru flags.
7747
7748 2007-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
7749
7750         * tree-ssa-loop-niter.c (assert_loop_rolls_lt): Convert the operands
7751         of compare to the same type.
7752         * cfgloopmanip.c (add_loop): Update information about loop exits.
7753         (loop_version): Remove the innermost loop requirement.
7754         * tree-ssa-loop-manip.c (determine_exit_conditions): Convert bounds
7755         to sizetype for pointers.
7756
7757 2007-07-18  H.J. Lu  <hongjiu.lu@intel.com>
7758
7759         * Makefile.in (D32PBIT_FUNCS): Add _sd_to_tf and _tf_to_sd.
7760         (D64PBIT_FUNCS): Add _dd_to_tf and _tf_to_dd.
7761         (D128PBIT_FUNCS): Add _td_to_tf and _tf_to_td.
7762
7763         * config/dfp-bit.c: Empty for TFmode conversions.
7764
7765 2007-07-18  Caroline Tice  <ctice@apple.com>
7766         
7767         * var-tracking.c (find_src_status): Check for  COND_EXEC insns
7768         and handle them correctly; check that src is not NULL before
7769         trying to use it.
7770         (find_src_set_src): Likewise.
7771         
7772 2007-07-18  Bob Wilson  <bob.wilson@acm.org>
7773         
7774         * config/xtensa/xtensa.c (xtensa_expand_mask_and_shift): New.
7775         (struct alignment_context, init_alignment_context): New.
7776         (xtensa_expand_compare_and_swap, xtensa_expand_atomic): New.
7777         * config/xtensa/xtensa.h (XCHAL_HAVE_RELEASE_SYNC): Add default.
7778         (XCHAL_HAVE_S32C1I): Likewise.
7779         (TARGET_RELEASE_SYNC, TARGET_S32C1I): New.
7780         * config/xtensa/xtensa.md (UNSPECV_MEMW): New constant.
7781         (UNSPECV_S32RI, UNSPECV_S32C1I): Likewise.
7782         (ATOMIC, HQI): New macros.
7783         (memory_barrier, *memory_barrier): New.
7784         (sync_lock_releasesi): New.
7785         (sync_compare_and_swapsi, sync_compare_and_swap<mode>): New.
7786         (sync_lock_test_and_set<mode>): New.
7787         (sync_<atomic><mode>): New.
7788         (sync_old_<atomic><mode>, sync_new_<atomic><mode>): New.
7789         * config/xtensa/xtensa-protos.h (xtensa_expand_compare_and_swap): New.
7790         (xtensa_expand_atomic): New.
7791         
7792 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7793
7794         PR target/30652
7795
7796         * builtins.c (expand_builtin_interclass_mathfn): Provide a generic
7797         transformation for builtin ISNORMAL.
7798         (expand_builtin): Handle BUILT_IN_ISNORMAL.
7799         * builtins.def (BUILT_IN_ISNORMAL): New.
7800         * doc/extend.texi: Document isnormal.
7801
7802 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7803
7804         PR target/30652
7805
7806         * builtins.c (expand_builtin_interclass_mathfn): Allow for missing
7807         optabs infrastructure.  Provide generic implementation for
7808         FINITE/ISFINITE.
7809         (expand_builtin): Handle FINITE/ISFINITE.
7810         (fold_builtin_classify): Make ISFINITE canonical instead of FINITE.
7811         (fold_builtin_1): Likewise.
7812
7813         * builtins.def (BUILT_IN_ISFINITE): New.
7814
7815         * doc/extend.texi: Document isfinite.
7816
7817 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7818
7819         PR target/30652
7820         PR middle-end/20558
7821
7822         * builtins.c (expand_builtin_interclass_mathfn): Provide a
7823         generic fallback for isinf.
7824         * c-cppbuiltin.c (builtin_define_float_constants): Move FP max
7825         calculation code ...
7826         * real.c (get_max_float): ... to here.
7827         * real.h (get_max_float): New.
7828
7829 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7830
7831         PR middle-end/32668
7832
7833         * builtin-attrs.def (ATTR_TYPEGENERIC,
7834         ATTR_CONST_NOTHROW_TYPEGENERIC): New.
7835
7836         * builtins.def (BUILT_IN_ISINF, BUILT_IN_ISNAN,
7837         BUILT_IN_ISGREATER, BUILT_IN_ISGREATEREQUAL, BUILT_IN_ISLESS,
7838         BUILT_IN_ISLESSEQUAL, BUILT_IN_ISLESSGREATER,
7839         BUILT_IN_ISUNORDERED): Use ATTR_CONST_NOTHROW_TYPEGENERIC.
7840
7841         * c-common.c (handle_type_generic_attribute): New.
7842         (c_common_attribute_table): Add "type generic".
7843
7844         * c-typeck.c (convert_arguments): Handle "type generic" functions.
7845
7846 2007-07-18  Daniel Berlin  <dberlin@dberlin.org>
7847
7848         * tree-ssa-sccvn.c (try_to_simplify): Use valid_gimple_expression
7849         * tree-ssa-propagate (valid_gimple_expression): Handle ADDR_EXPR
7850         properly.
7851
7852 2007-07-18  Rask Ingemann Lambertsen  <rask@sygehus.dk>
7853
7854         PR target/32808
7855         * config/cris/cris.c (cris_print_index): Don't use XEXP before
7856         checking that the operand is an expression.
7857
7858 2007-07-19  Christoph von Wittich  <Christoph_vW@reactos.org>
7859             Danny Smith  <dannysmith@users.sourceforge.net>
7860
7861         PR/other 30335
7862         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Put
7863         file mapping object in local namespace if Windows version later
7864         than NT4
7865
7866 2007-07-18  Richard Sandiford  <richard@codesourcery.com>
7867
7868         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Declare.
7869         * config/arm/arm.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
7870         arm_cannot_force_const_mem.
7871         (arm_cannot_force_const_mem): New function.
7872         * config/arm/arm.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macro.
7873         (LEGITIMATE_CONSTANT_P): Test arm_cannot_force_const_mem instead
7874         of arm_tls_referenced_p.
7875         * config/arm/arm.md (movsi): Split out-of-section constants when
7876         ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P.
7877         * config/arm/vxworks.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
7878
7879 2007-07-18  Richard Sandiford  <richard@codesourcery.com>
7880
7881         * config/mips/mips.md (clear_cache): Treat the size argument as Pmode.
7882
7883 2007-07-18  Richard Sandiford  <richard@codesourcery.com>
7884
7885         * config/mips/mips.md (*extendqihi2): Convert the destination
7886         to SImode.
7887
7888 2007-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7889
7890         * config/pa/fptr.c: Update license header.
7891         * config/pa/milli64.S: Likewise.
7892
7893 2007-07-17  Nick Clifton  <nickc@redhat.com>
7894
7895         * COPYING_v3: New file.  Contains version 3 of the GNU General
7896         Public License.
7897         * COPYING.LIB_v3: New file.  Contains version 3 of the GNU
7898         Lesser General Public License.
7899         * doc/include/gpl_v3.texi: New file.  Contains version 3 of
7900         the GNU General Public License.
7901
7902 2007-07-17  Zdenek Dvorak  <dvorakz@suse.cz>
7903
7904         PR rtl-optimization/32773
7905         * cfglayout.c (force_one_exit_fallthru): New function.
7906         (cfg_layout_finalize): Use it.
7907
7908 2007-07-16  Richard Guenther  <rguenther@suse.de>
7909             Uros Bizjak  <ubizjak@gmail.com>
7910
7911         * tree-if-conv.c (find_phi_replacement_condition): Unshare "*cond"
7912         before forcing it to gimple operand.
7913
7914 2007-07-16  Sandra Loosemore  <sandra@codesourcery.com>
7915             David Ung  <davidu@mips.com>
7916
7917         * config/mips/mips.h (TUNE_24K): Define.
7918         (TUNE_MACC_CHAINS): Add TUNE_24K.
7919         * config/mips/mips.md: (*mul_acc_si, *mul_sub_si): Change type to
7920         imadd.
7921         * config/mips/74k.md (r74k_int_mult): Split madd/msub to ..
7922         (r74k_int_madd): .. this new reservation.
7923         (define_bypass): Fixed bypasses for r74k_int_madd to use
7924         mips_linked_madd_p.
7925         * config/mips/24k.md (define_bypass): Define new
7926         r24k_int_mul3->r24k_int_madd bypass using mips_linked_madd_p.
7927
7928 2007-07-16  Sandra Loosemore  <sandra@codesourcery.com>
7929             Nigel Stephens  <nigel@mips.com>
7930
7931         * config/mips/mips.md: Include 20kc.md.
7932         * config/mips/20kc.md: New file.
7933         * config/mips/mips.c (mips_rtx_cost_data): Fill in 20Kc costs.
7934         (mips_adjust_cost): Tweak for 20Kc.
7935         (mips_issue_rate): Likewise.
7936         * config/mips/mips.h (TUNE_20KC): Define.
7937
7938 2007-07-16  David Edelsohn  <edelsohn@gnu.og>
7939
7940         * config/rs6000/rs6000.c (struct processor_cost): Add
7941         cache_line_size, l1_cache_lines, and simultaneous_prefetches
7942         fields.
7943         (*_cost): Add cache information.
7944         (rs6000_override_options): Set cache parameters.
7945
7946 2007-07-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7947
7948         PR bootstrap/3456
7949         * config.gcc (mips-sgi-irix[56]*): Enable pthread support.
7950         * doc/install.texi (mips-sgi-irix6): pthread support works now.
7951
7952 2007-07-16  Paul Brook  <paul@codesourcery.com>
7953
7954         PR target/32753
7955         * config/arm/cirrus.md (cirrus_arm_movsi_insn): Remove dead insn.
7956         (cirrus_thumb2_movsi_insn): Ditto.
7957
7958 2007-07-15  Geoffrey Keating  <geoffk@apple.com>
7959
7960         * config/rs6000/darwin-fallback.c (interpret_libc): Change
7961         CR2_REGNO to R_CR2.
7962
7963 2007-07-15  Andrew Haley  <aph@redhat.com>
7964
7965         * unwind-sjlj.c (_Unwind_GetIPInfo): Check for context->fc != NULL
7966         before looking in the context.
7967
7968 2007-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7969
7970         PR middle-end/32398
7971         PR middle-end/32769
7972         * pa-protos.h (pa_eh_return_handler_rtx): Declare.
7973         * pa.c (pa_extra_live_on_entry, rp_saved): Declare.
7974         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
7975         (pa_output_function_prologue): Use rp_saved and
7976         current_function_is_leaf to generate .CALLINFO statement.
7977         (hppa_expand_prologue): Set rp_saved.
7978         (hppa_expand_epilogue): Use rp_saved.
7979         (pa_extra_live_on_entry, pa_eh_return_handler_rtx): New functions.
7980         * pa.h (EH_RETURN_HANDLER_RTX): Use pa_eh_return_handler_rtx.
7981
7982 2007-07-14  Dirk Mueller  <dmueller@suse.de>
7983
7984         * omega.c (coalesce): Fix memory leak on early exit.
7985         * matrix-reorg.c (check_allocation_function): Likewise.
7986         * tree-vect-transform.c (vect_get_new_vect_var): free result
7987         of concat().
7988         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
7989         pass pointer to edge vector
7990         (partition_hot_cold_basic_blocks): Fix memory leak.
7991         * collect2.c (prefix_from_string): Free temporary storage.
7992         * reload1.c (fixup_abnormal_edges): Free sbitmap.
7993
7994 2007-07-14  Kaz Kojima  <kkojima@gcc.gnu.org>
7995
7996         * config/sh/sh.h (DO_GLOBAL_CTORS_BODY): Add void to prototype.
7997         (DO_GLOBAL_DTORS_BODY): Likewise.
7998
7999 2007-07-14  Sandra Loosemore  <sandra@codesourcery.com>
8000             Nigel Stephens  <nigel@mips.com>
8001
8002         * config/mips/mips.c (mips_classify_symbol): Don't return
8003         SYMBOL_SMALL_DATA for constant pool addresses if
8004         TARGET_EMBEDDED_DATA is true.
8005
8006 2007-07-14  Uros Bizjak  <ubizjak@gmail.com>
8007
8008         * config/i386/i386.c (init_mmx_sse_builtins): Define all builtins
8009         except __builtin_ia32_emms, __builtin_ia32_ldmxcsr,
8010         __builtin_ia32_stmxcsr, __builtin_ia32_maskmovq, __builtin_ia32_loadups,
8011         __builtin_ia32_storeups, __builtin_ia32_loadhps, __builtin_ia32_loadlps,
8012         __builtin_ia32_storehps, __builtin_ia32_storelps,
8013         __builtin_ia32_movntps, __builtin_ia32_movntq, __builtin_ia32_sfence,
8014         __builtin_ia32_femms, __builtin_ia32_maskmovdqu, __builtin_ia32_loadupd,
8015         __builtin_ia32_storeupd, __builtin_ia32_loadhpd, __builtin_ia32_loadlpd,
8016         __builtin_ia32_movnti, __builtin_ia32_movntpd, __builtin_ia32_movntdq,
8017         __builtin_ia32_clflush, __builtin_ia32_lfence, __builtin_ia32_mfence,
8018         __builtin_ia32_loaddqu, __builtin_ia32_storedqu, __builtin_ia32_monitor,
8019         __builtin_ia32_mwait, __builtin_ia32_lddqu, __builtin_ia32_movntdqa,
8020         __builtin_ia32_movntsd and __builtin_ia32_movntss as const builtins
8021         using def_builtin_const.
8022
8023 2007-07-14  Eric Botcazou  <ebotcazou@adacore.com>
8024
8025         PR tree-optimization/32705
8026         * tree-ssa-sccvn.c (set_ssa_val_to): Accept VN_TOP as value number.
8027         (simplify_binary_expression): Use SSA_VAL consistently.
8028
8029 2007-07-13  David Edelsohn  <edelsohn@gnu.org>
8030
8031         * config/rs6000/spe.md (SPE_ACC_REGNO): Delete definition.
8032         (SPEFSCR_REGNO): Delete definition.
8033         * config/rs6000/rs6000.c: LINK_REGISTER_REGNUM -> LR_REGNO.
8034         COUNT_REGISTER_REGNUM -> CTR_REGNO.
8035         * config/rs6000/rs6000.h: Do not define *_REGNO.
8036         LINK_REGISTER_REGNUM -> LR_REGNO.
8037         COUNT_REGISTER_REGNUM -> CTR_REGNO.
8038         * config/rs6000/predicates.md: LINK_REGISTER_REGNUM ->  LR_REGNO.
8039         COUNT_REGISTER_REGNUM -> CTR_REGNO.
8040         * config/rs6000/linux-unwind.h: Define R_LR, R_CR2, R_VR0,
8041         R_VRSAVE, R_VSCR. Use them.
8042         * config/rs6000/darwin-fallback.c: Define R_LR, R_CTR, R_CR2,
8043         R_XER, R_VR0, R_VRSAVE, R_VSCR, R_SPEFSCR.  Use them.
8044         * config/rs6000/rs6000.md: Define REGNO constants.  Use them.
8045         * config/rs6000/aix.h: Define R_LR.  Use it.
8046         
8047 2007-07-13  Caroline Tice  <ctice@apple.com>
8048         
8049         * toplev.c (process_options): Turn flag_var_tracking_uninit off when
8050         flag_var_tracking is explicitly turned off (i.e. when variable
8051         tracking is not feasible); otherwise, turn flag_var_tracking on when
8052         flag_var_tracking_uninit is on.
8053         * rtl.def (VAR_LOCATION): Add a new integer subfield to VAR_LOCATION
8054         note definitions, to allow recording of initialization status in the
8055         notes.
8056         * dwarf2out.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
8057         (add_var_loc_to_decl): Add comparison of NOTE_VAR_LOCATION_STATUS to
8058         determine if two note locations are equal.
8059         (output_loc_list): Don't output list entries whose start & end labels
8060         are the same.
8061         (reg_loc_descriptor): Add parameter for initialization status; pass it
8062         to other loc descriptor functions.
8063         (one_reg_loc_descriptor): Add parameter for initialization status;
8064         check its value and add DW_OP_GNU_uninit to returned loc descr if
8065         appropriate.
8066         (multiple_reg_loc_descriptor): Add parameter for initialization
8067         status;
8068         pass init status argument to other loc descriptor functions; check
8069         value of intialization parameter and add DW_OP_GNU_uninit to returned
8070         loc descr if appropriate.
8071         (based_loc_descr): Add parameter for initialization status; add new
8072         variable for return value; check value of initialization parameter and
8073         add DW_OP_GNU_uninit to returned loc descr if appropriate.
8074         (concatn_mem_loc_descriptor): Add parameter for initialization status;
8075         pass init status argument to other loc descriptor functions; check
8076         value of intialization parameter and add DW_OP_GNU_uninit to returned
8077         loc descr if appropriate.
8078         (mem_loc_descriptor): Likewise.
8079         (concat_loc_descriptor): Likewise.
8080         (concatn_loc_descriptor): Likewise.
8081         (loc_descriptor): Add parameter for initialization status; pass it as
8082         argument to other loc descriptor function calls.
8083         (loc_descriptor_from_tree_1): Add appropriate initialization status
8084         to loc descriptor function calls.
8085         (add_location_or_const_value_attribute): Get initialization status
8086         from VAR_LOCATION note; add initialization status to loc descriptor
8087         function calls.
8088         * dwarf2.h (enum dwarf_location_atom): New op, DW_OP_GNU_uninit.
8089         * print-rtl.c (print_rtx): When printing a VAR_LOCATION note, if
8090         status is uninitialized, add "[uninint]" to output.
8091         * common.opt (fvar-tracking-uninit): New option, similar to
8092         fvar-tracking, to turn on tracking of uninitialized variables; creates
8093         a new global flag, flag_var_tracking_uninit.
8094         * rtl.h (NOTE_VAR_LOCATION_STATUS): New macro for accessing new field.
8095         (enum var_init_status): New type, for var initialization status field.
8096         * var-tracking.c (struct location_chain_def): Two new fields, init,
8097         for initialization status, and set_src for the assignment value expr.
8098         (unshare_variable): New parameter for initialization status;
8099         initialize new init and set_src fields.
8100         (var_reg_set): New parameters for initialization status and value;
8101         pass them to set_variable_part.
8102         (var_mem_set): Likewise.
8103         (get_init_value): New function.
8104         (var_reg_delete_and_set): New initialization status & value
8105         parameters; add call to get_init_value if status is unknown; pass new
8106         parameters to clobber_variable_part and var_reg_set.
8107         (var_mem_delete_and_set): Likewise.
8108         (var_reg_delete): Pass null set_src value to clobber_variable_part.
8109         (var_mem_delete): Likewise.
8110         (variable_union): Pass status to unshare_variable; initialize new init
8111         and set_src fields. If flag_var_tracking_uninit is not set, force
8112         status to initialized.
8113         (add_stores): Store insn, rather than NEXT_INSN(insn), so it can be
8114         used later to get the set_src value.
8115         (find_src_status): New function.
8116         (find_src_set_src): New function.
8117         (compute_bb_dataflow): Pass init status to calls to var_reg_set,
8118         var_mem_set, var_reg_delete_and_set and var_mem_delete_and_set; for
8119         MO_SET, get set_src value and pass it to var_reg_delete_and_set
8120         and var_mem_delete_and_set.
8121         (dump_variable): Print out "[uninit]" if appropriate.
8122         (set_variable_part): Add new initialization and set_src parameters;
8123         pass status to unshare_variable; set node->init and node- >set_src
8124         fields and modify slot in hash table appropriately; save the init and
8125         set_src values if appropriate and assign to the new node.
8126         (clobber_variable_part): New set_src parameter; if two nodes have
8127         same variable and same location but different set_src (assignment)
8128         values, clobber old node.
8129         (delete_variable_part): Pass init status to unshare_variable.
8130         (emit_note_insn_var_location): Add initialized var; assign var's init
8131         status to new 'initialized'; pass new init status field to calls to
8132         gen_rtx_VAR_LOCATION. If flag_var_tracking_uninit is not set, force
8133         status to initialized.
8134         (emit_notes_in_bb): Pass initialization status to calls to
8135         var_reg_set, var_mem_set, var_reg_delete_and_set and
8136         var_mem_delete_and_set; for MO_SET, get set_src value and pass it to
8137         var_reg_delete_and_set and var_mem_delete_and_set; call
8138         emit_notes_for_changes on NEXT_INSN(insn) rather than on insn, to
8139         make up for change in add_stores.
8140         (vt_add_function_parameters): Add status to calls to
8141         set_variable_part.
8142         * config/darwin.c (darwin_override_options): Turn on uninitialized
8143         tracking automatically, if var_tracking is on and the system is
8144         10.5 or higher.
8145         
8146 2007-07-13  Sa Liu  <saliu@de.ibm.com>
8147
8148         * config.gcc: Add options for arch and tune on SPU.
8149         * config/spu/predicates.md: Add constant operands 0 and 1.
8150         * config/spu/spu-builtins.def: Add builtins for double precision 
8151         floating point comparison: si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt, 
8152         si_dftsv, spu_cmpeq_13, spu_cmpabseq_1, spu_cmpgt_13, spu_cmpabsgt_1,
8153         spu_testsv.
8154         * config/spu/spu-c.c: Define __SPU_EDP__ when builtins invoked with 
8155         a CELLEDP target.
8156         * config/spu/spu-protos.h: Add new function prototypes. 
8157         * config/spu/spu.c (spu_override_options): Check options -march and
8158         -mtune.
8159         (spu_comp_icode): Add comparison code for DFmode and vector mode.
8160         (spu_emit_branch_or_set): Use the new code for DFmode and vector 
8161         mode comparison.
8162         (spu_const_from_int): New.  Create a vector constant from 4 ints.
8163         (get_vec_cmp_insn): New.  Get insn index of vector compare instruction.
8164         (spu_emit_vector_compare): New.  Emit vector compare.
8165         (spu_emit_vector_cond_expr): New.  Emit vector conditional expression.
8166         * config/spu/spu.h: Add options -march and -mtune.  Define processor
8167         types PROCESSOR_CELL and PROCESSOR_CELLEDP.  Define macro
8168         CANONICALIZE_COMPARISON.
8169         * config/spu/spu.md: Add new insns for double precision compare
8170         and double precision vector compare.  Add vcond and smax/smin patterns
8171         to enable DFmode vector conditional expression.
8172         * config/spu/spu.opt: Add options -march and -mtune.
8173         * config/spu/spu_internals.h: Add builtins for CELLEDP target:
8174         si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt, si_dftsv.  Add builtin for
8175         both CELL and CELLEDP targets: spu_testsv.
8176         * config/spu/spu_intrinsics.h: Add flag mnemonics for test special 
8177         values.
8178
8179 2007-07-13  Richard Guenther  <rguenther@suse.de>
8180
8181         PR tree-optimization/32721
8182         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Preserve
8183         TREE_THIS_VOLATILE on the folded reference.
8184         * tree-ssa-operands.c (get_expr_operands): Set has_volatile_ops
8185         if the array reference has TREE_THIS_VOLATILE set.
8186
8187 2007-07-13  H.J. Lu  <hongjiu.lu@intel.com>
8188
8189         PR other/32188
8190         * doc/libgcc.texi: Update DFP intrinsics for DPD and BID.
8191
8192 2007-07-13  Andreas Schwab  <schwab@suse.de>
8193
8194         * gengtype-lex.l: Allow declarations to be indented.
8195
8196 2007-07-12  Geoffrey Keating  <geoffk@apple.com>
8197
8198         * ginclude/tgmath.h: New.
8199         * config.gcc: Use GCC's tgmath.h on non-glibc systems.
8200         * doc/sourcebuild.texi (Headers): Document use_gcc_tgmath.
8201         * configure.ac (STMP_FIXPROTO): Honor use_gcc_tgmath.
8202         * configure: Regenerate.
8203
8204 2007-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
8205
8206         * config/sh/linux-unwind.h (sh_fallback_frame_state): Use
8207         correct index when setting register save state for xd
8208         registers.
8209
8210 2007-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
8211
8212         * config/sh/sh.c (mark_use): Remove.
8213
8214 2007-07-12  Paul Brook  <paul@codesourcery.com>
8215
8216         * config/arm/arm.c (thumb1_compute_save_reg_mask): Make sure scratch
8217         reg does not overlap return value.
8218
8219 2007-07-12  Daniel Berlin  <dberlin@dberlin.org>
8220
8221         * tree-ssa-pre.c (get_expression_vuses): Move out side-effect.
8222         (set_expression_vuses): Ditto.
8223         (init_pre): Initialize expression_vuses.
8224
8225 2007-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
8226
8227         * config/i386/sse.md (storentdf, storentsf): New.
8228
8229 2007-07-12  Geoffrey Keating  <geoffk@apple.com>
8230
8231         * builtins.c (get_pointer_alignment): Honor DECL_ALIGN on a
8232         FUNCTION_DECL.
8233         * tree.c (build_decl_stat): Move code from here...
8234         (make_node_stat): ... to here.  Don't uselessly clear DECL_USER_ALIGN.
8235         (expr_align): Honor DECL_ALIGN on a FUNCTION_DECL.  Add comment
8236         about using DECL_ALIGN of LABEL_DECL and CONST_DECL.
8237         * tree.h (DECL_USER_ALIGN): Fix misplaced comment.
8238         * varasm.c (assemble_start_function): Use DECL_ALIGN instead of
8239         FUNCTION_BOUNDARY.
8240
8241 2007-07-12  Dorit Nuzman  <dorit@il.ibm.com>
8242             Devang Patel  <dpatel@apple.com>
8243
8244         PR tree-optimization/25413
8245         * targhooks.c (default_builtin_vector_alignment_reachable): New.
8246         * targhooks.h (default_builtin_vector_alignment_reachable): New.
8247         * tree.h (contains_packed_reference): New.
8248         * expr.c (contains_packed_reference): New.
8249         * tree-vect-analyze.c (vector_alignment_reachable_p): New.
8250         (vect_enhance_data_refs_alignment): Call
8251         vector_alignment_reachable_p.
8252         * target.h (vector_alignment_reachable): New builtin.
8253         * target-def.h (TARGET_VECTOR_ALIGNMENT_REACHABLE): New.
8254         * config/rs6000/rs6000.c (rs6000_vector_alignment_reachable): New.
8255         (TARGET_VECTOR_ALIGNMENT_REACHABLE): Define.
8256
8257 2007-07-12  Dorit Nuzman  <dorit@il.ibm.com>
8258
8259         * target.h (builtin_vectorization_cost): Add new target builtin.
8260         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
8261         * tree-vectorizer.h (TARG_SCALAR_STMT_COST): New.
8262         (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST): New.
8263         * tree-vect-analyze.c (vect_analyze_slp_instance): Initisliaze
8264         uninitialized variables.
8265         * tree-vect-transform.c (cost_for_stmt): New function.
8266         (vect_estimate_min_profitable_iters): Call cost_for_stmt instead of
8267         using cost 1 for all scalar stmts. Be less conservative when
8268         estimating the number of prologue/epulogue iterations. Call
8269         targetm.vectorize.builtin_vectorization_cost. Return
8270         min_profitable_iters-1.
8271         (vect_model_reduction_cost): Use TARG_SCALAR_TO_VEC_COST for
8272         initialization cost instead of TARG_VEC_STMT_COST. Use
8273         TARG_VEC_TO_SCALAR_COST instead of TARG_VEC_STMT_COST for reduction
8274         epilogue code. Fix epilogue cost computation.
8275         * config/spu/spu.c (spu_builtin_vectorization_cost): New.
8276         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Implement.
8277         * config/spu/spu.h (TARG_COND_BRANCH_COST, TARG_SCALAR_STMT_COST):
8278         (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST, TARG_VEC_STMT_COST):
8279         (TARG_VEC_TO_SCALAR_COST, TARG_SCALAR_TO_VEC, TARG_VEC_LOAD_COST):
8280         (TARG_VEC_UNALIGNED_LOAD_COST, TARG_VEC_STORE_COST): Define.
8281
8282 2007-07-12  Richard Guenther  <rguenther@suse.de>
8283
8284         * gimplify.c (gimplify_conversion): Make sure that the result
8285         from maybe_fold_offset_to_reference is trivially convertible
8286         to the desired type before doing the simplification.
8287         (gimplify_expr): Likewise.
8288         * fold-const.c (fold_binary): Use the correct types for
8289         building the simplified expression.
8290
8291 2007-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
8292
8293         PR rtl-optimization/32729
8294         * cfghooks.c (can_duplicate_block_p): Do not forbid duplicating blocks
8295         that fallthru to exit.
8296
8297 2007-07-12  Kaz Kojima  <kkojima@gcc.gnu.org>
8298
8299         * config/sh/sh.md (symGOTOFF2reg): Add missing parenthesis.
8300         (symDTPOFF2reg): Likewise.
8301
8302 2007-07-11  Daniel Berlin  <dberlin@dberlin.org>
8303
8304         PR tree-optimization/32663
8305         
8306         * tree.h (VALUE_HANDLE_VUSES): Remove.
8307         (struct tree_value_handle): Remove vuses.
8308
8309         * tree-vn.c (create_value_handle_for_expr): Don't set
8310         VALUE_HANDLE_VUSES. 
8311
8312         * tree-ssa-pre.c (expression_vuses): New.
8313         (alloc_expression_id): Set up expression_vuses.
8314         (get_expression_vuses): New.
8315         (set_expression_vuses): Ditto.
8316         (clear_expression_ids): Modify for expression_vuses.
8317         (phi_translate_1): Ditto.
8318         (phi_translate_set): Ditto.
8319         (value_dies_in_block_x): Ditto
8320         (valid_in_sets): Ditto.
8321         (add_to_sets): Ditto.
8322         (find_existing_value_expr): Ditto.
8323         (create_value_handle_for_expr): Ditto.
8324         (make_values_for_stmt): Ditto.
8325         (vuse_equiv): Remove.
8326
8327 2007-07-11  Alexandre Oliva  <aoliva@redhat.com>
8328
8329         * Makefile.in (mostlyclean): Remove object files.
8330
8331 2007-07-11  Kenneth Zadeck <zadeck@naturalbridge.com>
8332
8333         * toplev.c (no_new_pseudos): Deleted.
8334         * rtl.h (no_new_pseudos): Deleted.
8335         * tree-pass.h (pass_no_new_pseudos): Deleted. 
8336         * passes.c (pass_no_new_pseudos): Deleted.
8337         * final.c (rest_of_clean_state): Removed no_new_pseudos.
8338         (rest_of_no_new_pseudos, pass_no_new_pseudos): Deleted.
8339         * struct-equiv.c (rtx_equiv_p): Replaced no_new_pseudos with 
8340         reload_completed.
8341         * cfgcleanup.c (try_crossjump_to_edge): Ditto. 
8342         * rtlhooks.c (gen_lowpart_general): Ditto.
8343         * optabs.c (prepare_operand): Ditto.
8344         * mode-switching.c (rest_of_handle_mode_switching): Deleted set of
8345         no_new_pseudos.
8346         * modulo-sched.c (rest_of_handle_sms): Ditto.
8347         * see.c (rest_of_handle_see): Ditto.
8348         * ifcvt.c (if_convert): Ditto.
8349         (gate_handle_if_after_combine): Replaced no_new_pseudos with 
8350         reload_completed.
8351         * init-regs.c (gate_initialize_regs): Deleted set of
8352         no_new_pseudos.
8353         * lower-subreg.c (decompose_multiword_subregs): Ditto. 
8354         * bb-reorder.c (rest_of_handle_partition_blocks): Ditto.
8355         * doc/md.texi: Changed no_new_pseudos to can_create_pseudo_p.
8356         
8357 2007-07-11  Uros Bizjak  <ubizjak@gmail.com>
8358
8359         PR target/32661
8360         * config/i386/sse.md (*sse2_storeq_rex64): Handle 64bit mem->reg moves.
8361         (*vec_extractv2di_1_sse2): Disable for TARGET_64BIT.
8362         (*vec_extractv2di_1_rex64): New insn pattern.
8363
8364 2007-07-11  David Daney  <ddaney@avtrex.com>
8365
8366         * config/mips/linux-unwind.h (mips_fallback_frame_state): Rewrite
8367         return address calculation.  Substitute DWARF_ALT_FRAME_RETURN_COLUMN
8368         for SIGNAL_UNWIND_RETURN_COLUMN.
8369         * config/mips/mips.h (SIGNAL_UNWIND_RETURN_COLUMN): Remove.
8370         (DWARF_FRAME_REGNUM): Rewrite.
8371         (DWARF_ALT_FRAME_RETURN_COLUMN) Define.
8372
8373 2007-07-11  Nick Clifton  <nickc@redhat.com>
8374
8375         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Revert previous
8376         delta and use gen_int_mode in place of GET_INT instead.
8377
8378 2007-07-11  Uros Bizjak  <ubizjak@gmail.com>
8379
8380         * reg-stack.c (struct tree_opt_pass pass_stack_regs): Nullify name
8381         and letter field.
8382
8383 2007-07-11  Douglas Gregor  <doug.gregor@gmail.com>
8384
8385         * params.def (PARAM_VERIFY_CANONICAL_TYPES): Remove.
8386         (PARAM_USE_CANONICAL_TYPES): New; decides whether to use canonical 
8387         types or not.
8388         * params.h (VERIFY_CANONICAL_TYPES): Remove.
8389         (USE_CANONICAL_TYPES): New.
8390         * doc/invoke.texi (verify-canonical-types): Remove.
8391         (use-canonical-types): Add.
8392
8393 2007-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
8394
8395         * config/spu/spu.c (spu_optimization_options): Remove setting of
8396         parameter PARAM_MAX_COMPLETELY_PEEL_TIMES.
8397         (spu_override_options): Move it here.
8398
8399 2007-07-11  Richard Sandiford  <richard@codesourcery.com>
8400
8401         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle -m4ksc and -m4ksd.
8402         * config/mips/mips.c (mips_cpu_info_table): Mention
8403         MIPS_ISA_LEVEL_SPEC in the comment.
8404
8405 2007-07-11  Eric Botcazou  <ebotcazou@adacore.com>
8406
8407         PR tree-optimization/32713
8408         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle REAL_CST.
8409
8410 2007-07-11  Paolo Carlini  <pcarlini@suse.de>
8411
8412         PR middle-end/30482
8413         * c-opts.c (c_common_post_options): Do not change flag_complex_method
8414         conditional to flag_isoc99.
8415         (c_common_init_options): Do it here, unconditionally.
8416
8417 2007-07-11  Eric Botcazou  <ebotcazou@adacore.com>
8418
8419         PR tree-optimization/32589
8420         * doc/tree-ssa.texi (Rough GIMPLE Grammar): Add missing rule.
8421         * tree-gimple.c (is_gimple_min_invariant): Clarify head comment.
8422         * tree-ssa-propagate.c (valid_gimple_expression_p): New
8423         predicate, extracted from...
8424         (set_rhs): ...here.  Call it for the expression on entry.
8425         * tree-ssa-propagate.h (valid_gimple_expression_p): Declare.
8426         * tree-ssa-sccvn.c: Include tree-ssa-propagate.h.
8427         (simplify_binary_expression): Use valid_gimple_expression_p
8428         to validate the simplification.
8429         * Makefile.in (tree-ssa-sccvn.o): Depends on tree-ssa-propagate.h.
8430
8431 2007-07-11  Danny Smith  <dannysmith@users.sourceforge.net>
8432
8433         * config/i386/cygming.h (PREFERRED_DEBUGGING_TYPE): Define to
8434         DWARF2_DEBUG on 32 bit target too.
8435         (DWARF2_UNWIND_INFO): Reorganize 64-bit vs 32-bit definition. 
8436
8437 2007-07-11  Nick Clifton  <nickc@redhat.com>
8438
8439         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Provide alternative
8440         version for 64-bit hosts.
8441
8442 2007-07-10  David Daney  <ddaney@avtrex.com>
8443
8444         * config/mips/mips.h (ISA_HAS_SYNCI): New target capability
8445         predicate.
8446         (INITIALIZE_TRAMPOLINE): Emit clear_cache insn instead of  library
8447         call.
8448         * config/mips/mips.c (mips_expand_synci_loop): New function.
8449         * config/mips/mips.md (UNSPEC_CLEAR_HAZARD): New constant.
8450         (UNSPEC_RDHWR): Same.
8451         (UNSPEC_SYNCI): Same.
8452         (UNSPEC_SYNC): Same.
8453         (clear_cache): New expand.
8454         (sync): New insn.
8455         (synci): Same.
8456         (rdhwr): Same.
8457         (clear_hazard): Same.
8458         * config/mips/mips-protos.h (mips_expand_synci_loop): Declare
8459         function.
8460         * testsuite/gcc.target/mips/clear-cache-1.c: New test.
8461         * testsuite/gcc.target/mips/clear-cache-2.c: New test.
8462
8463 2007-07-10  Ian Lance Taylor  <iant@google.com>
8464
8465         * emit-rtl.c (gen_reg_rtx): Check can_create_pseudo_p rather than
8466         no_new_pseudos.
8467
8468 2007-07-10  David Daney  <ddaney@avtrex.com>
8469
8470         * builtins.def (BUILT_IN_CLEAR_CACHE): New builtin.
8471         * builtins.c (expand_builtin___clear_cache): New function.
8472         (expand_builtin): Call expand_builtin___clear_cache for
8473         BUILT_IN_CLEAR_CACHE case.
8474         * doc/extend.texi (__builtin___clear_cache): Document new builtin.
8475         * doc/md.texi (clear_cache): Document new instruction pattern.
8476         * testsuite/gcc.dg/builtins-64.c: New test.
8477
8478 2007-07-11  Hans-Peter Nilsson  <hp@axis.com>
8479
8480         * config/cris/cris.md ("movsi"): Fix typo in last change.
8481
8482 2007-07-09  Geoffrey Keating  <geoffk@apple.com>
8483
8484         PR 32617
8485         * c-common.c (c_alignof_expr): Look at DECL_ALIGN of
8486         FUNCTION_DECLs.
8487         (handle_aligned_attribute): Allow use on FUNCTION_DECLs.
8488         * varasm.c (assemble_start_function): Honor DECL_ALIGN
8489         for FUNCTION_DECLs.  Don't use align_functions_log if
8490         DECL_USER_ALIGN.
8491         * print-tree.c (print_node): Print DECL_ALIGN and DECL_USER_ALIGN
8492         even for FUNCTION_DECLs.
8493         * c-decl.c (merge_decls): Propagate DECL_ALIGN even for
8494         FUNCTION_DECLs.
8495         * tree.h (DECL_ALIGN): Update for new location of 'align'.
8496         (DECL_FUNCTION_CODE): Update for new location and name of
8497         'function_code'.
8498         (DECL_OFFSET_ALIGN): Update for new location of 'off_align'.
8499         (struct tree_decl_common): Move 'align' and 'off_align' out
8500         of union, ensure they're still on a 32-bit boundary.  Remove
8501         other fields in union 'u1'.
8502         (struct tree_function_decl): Add field 'function_code' replacing
8503         'u1.f' in tree_decl_common.
8504         * tree.c (build_decl_stat): Set initial value of DECL_ALIGN.
8505         * doc/extend.texi (Function Attributes): Add 'aligned' attribute.
8506         (Variable Attributes): Cross-reference 'aligned' attribute
8507         to Function Attributes.
8508         * flags.h (force_align_functions_log): Delete.
8509         * toplev.c (force_align_functions_log): Delete.
8510
8511 2007-07-10  Uros Bizjak  <ubizjak@gmail.com>
8512
8513         PR target/32708
8514         * config/i386/sse.md (vec_concatv2di): Disable for TARGET_64BIT.
8515         (*vec_concatv2di_rex): New insn pattern.
8516
8517 2007-07-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8518
8519         PR target/32538
8520         * config/mips/iris6.h (LIBGCC_SPEC): Add libm.
8521
8522 2007-07-10  Ian Lance Taylor  <iant@google.com>
8523
8524         Replace no_new_pseudos in backends.
8525         * rtl.h (can_create_pseudo_p): Define.
8526         * config/darwin.c (machopic_indirect_data_reference): Use
8527         can_create_pseudo_p () instead of no_new_pseudos.
8528         (machopic_indirect_data_reference): Likewise.
8529         (machopic_legitimize_pic_address): Likewise.
8530         * config/alpha/alpha.c (alpha_legitimize_address): Likewise.
8531         (alpha_emit_set_const_1): Likewise.
8532         (alpha_emit_set_const): Likewise.
8533         (alpha_emit_conditional_move): Likewise.
8534         (alpha_split_conditional_move): Likewise.
8535         * config/alpha/alpha.md (various splitters): Likewise.
8536         (movti): Likewise.
8537         * config/arm/arm.c (legitimize_pic_address): Likewise.
8538         (arm_load_pic_register): Likewise.
8539         * config/arm/arm.md (addsi3, subsi3, andsi3, iorsi3): Likewise.
8540         (movdi, movsi, movhi, movqi, movsf, movdf): Likewise.
8541         * config/bfin/bfin.c (legitimize_pic_address): Likewise.
8542         * config/cris/cris.c (cris_expand_pic_call_address): Likewise.
8543         * config/cris/cris.md (movsi): Likewise.
8544         * config/frv/frv.md (symGOT2reg_hilo): Likewise.
8545         (symGOTOFF2reg_hilo): Likewise.
8546         (symGPREL2reg, symGPREL2reg_hilo): Likewise.
8547         * config/h8300/h8300.md (insv, extzv): Likewise.
8548         * config/i386/i386.c (ix86_expand_move): Likewise.
8549         (ix86_expand_vector_move): Likewise.
8550         (ix86_prepare_fp_compare_args): Likewise.
8551         (ix86_expand_carry_flag_compare): Likewise.
8552         * config/i386/i386.md (tls_dynamic_gnu2_32): Likewise.
8553         (tls_dynamic_gnu2_combine_32): Likewise.
8554         (tls_dynamic_gnu2_64, tls_dynamic_gnu2_combine_64): Likewise.
8555         * config/ia64/ia64.c (ia64_expand_move): Likewise.
8556         (ia64_expand_movxf_movrf): Likewise.
8557         * config/m32c/m32c.c (m32c_prepare_move): Likewise.
8558         (m32c_split_move): Likewise.
8559         (m32c_expand_insv): Likewise.
8560         * config/m68k/m68k.md (movsi): Likewise.
8561         * config/mips/mips.c (mips_force_temporary): Likewise.
8562         (mips_split_symbol): Likewise.
8563         (mips_move_integer): Likewise.
8564         (mips_legitimize_const_move): Likewise.
8565         * config/mn10300/mn10300.md (movsi): Likewise.
8566         * config/pa/pa.c (emit_move_sequence): Likewise.
8567         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
8568         (rs6000_got_register): Likewise.
8569         (create_TOC_reference): Likewise.
8570         (rs6000_machopic_legitimize_pic_address): Likewise.
8571         * config/rs6000/rs6000.md (add<mode>3): Likewise.
8572         (various splitters): Likewise.
8573         (iorsi3, xorsi3, iordi3, xordi3): Likewise.
8574         (movsi_got): Likewise.
8575         * config/s390/s390.c (emit_symbolic_move): Likewise.
8576         * config/s390/s390.md (movhi, movqi): Likewise.
8577         (load_multiple, store_multiple): Likewise.
8578         * config/score/score.c (score_force_temporary): Likewise.
8579         * config/sh/sh.c (prepare_move_operands): Likewise.
8580         (prepare_cbranch_operands): Likewise.
8581         (emit_fpu_switch): Likewise.
8582         (fpscr_set_from_mem): Likewise.
8583         * config/sh/sh.md (movdicc, movsicc, movsicc_umin): Likewise.
8584         (adddi3, subsi3): Likewise.
8585         (various splitters): Likewise.
8586         (divsi_inv_fp_combine): Likewise.
8587         (symGOT_load, symGOTOFF2reg, symDTPOFF2reg): Likewise.
8588         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu): Likewise.
8589         (sne): Likewise.
8590         * config/sh/predicates.md (xor_operand): Likewise.
8591         * config/sparc/sparc.c (legitimize_tls_address): Likewise.
8592         * config/sparc/sparc.md (movsi_pic_label_ref): Likewise.
8593         (movdi_pic_label_ref): Likewise.
8594         * config/spu/spu.c (spu_split_immediate): Likewise.
8595         * config/alpha/alpha.md (various splitters): Remove test
8596         !no_new_pseudos || reload_completed.
8597         * config/ia64/ia64.c (ia64_output_mi_thunk): Don't set
8598         no_new_pseudos.
8599         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
8600         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
8601         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
8602         * config/score/score.c (th_output_mi_thunk): Likewise.
8603         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
8604         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
8605
8606 2007-07-10  Kaz Kojima  <kkojima@gcc.gnu.org>
8607
8608         PR rtl-optimization/32664
8609         * mode-switching.c (create_pre_exit): Skip barrier insns.
8610
8611 2007-07-10  Zdenek Dvorak  <dvorakz@suse.cz>
8612
8613         * tree-scalar-evolution.c (scev_const_prop): Add arguments to
8614         force_gimple_operand_bsi.
8615         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr,
8616         rewrite_use_compare): Ditto.
8617         * tree-ssa-address.c (gimplify_mem_ref_parts, create_mem_ref):
8618         Ditto.
8619         * tree-ssa-ifcombine.c (ifcombine_ifandif): Ditto.
8620         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
8621         * lambda-code.c (replace_uses_equiv_to_x_with_y): Ditto.
8622         * tree-profile.c (prepare_instrumented_value,
8623         tree_gen_interval_profiler, tree_gen_pow2_profiler,
8624         tree_gen_one_value_profiler, tree_gen_ic_profiler,
8625         tree_gen_ic_func_profiler, tree_gen_average_profiler,
8626         tree_gen_ior_profiler): Ditto.
8627         * tree-ssa-reassoc.c (negate_value): Ditto.
8628         * matrix-reorg.c (transform_access_sites, transform_allocation_sites):
8629         Use force_gimple_operand_bsi.
8630         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
8631         * tree-if-conv.c (add_to_dst_predicate_list,
8632         find_phi_replacement_condition): Ditto.
8633         * gimplify.c (force_gimple_operand_bsi): Add before and m arguments.
8634         Call mark_symbols_for_renaming for new statements.
8635         * tree-flow.h (force_gimple_operand_bsi): Declaration changed.
8636
8637 2007-07-10  Zdenek Dvorak  <dvorakz@suse.cz>
8638
8639         * cfghooks.c (remove_edge): New function.
8640         (redirect_edge_and_branch, remove_branch, merge_blocks): Updated
8641         loop exit rescans.
8642         * cfghooks.h (remove_edge): Declare.
8643         * cfg.c (remove_edge): Renamed to remove_edge_raw.
8644         * basic-block.h (remove_edge): Declaration changed to remove_edge_raw.
8645
8646 2007-07-09  Wolfgang Gellerich  <gellerich@de.ibm.com>
8647
8648         * optabs.h: Added declaration for signbit_optab.  
8649         * optabs.c: (init_optabs): Added initialization for signbit_optab.
8650         * genoptinit.c (optabs): Added entry for signbit insns.  
8651         * builtins.c (expand_builtin_signbit): Added code to use a signbit
8652         insn, if available.  
8653         * config/s390/s390.h (S390_TDC_SIGNBIT_SET): New constant.  
8654         * config/s390/s390.md (signbit<mode>2): New expander.  
8655
8656 2007-07-09  Richard Guenther  <rguenther@suse.de>
8657
8658         PR middle-end/32698
8659         * fold-const.c (fold_plusminus_mult_expr): Move constant
8660         arguments second to allow decomposing.
8661
8662 2007-07-09  Alexandre Oliva  <aoliva@oliva.athome.lsd.ic.unicamp.br>
8663
8664         Revert:
8665         2007-07-06  Alexandre Oliva  <aoliva@redhat.com>
8666         PR debug/23551
8667         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
8668         Disregard DECL_FROM_INLINE.
8669
8670 2007-07-09  Uros Bizjak  <ubizjak@gmail.com>
8671
8672         PR target/27855
8673         * doc/invoke.texi: Add ftree-reassoc flag.
8674         * common.opt (ftree-reassoc): New flag.
8675         * tree-ssa-reassoc.c (gate_tree_ssa_reassoc): New static function.
8676         (struct tree_opt_pass pass_reassoc): Use gate_tree_ssa_reassoc.
8677
8678 2007-07-09  Uros Bizjak  <ubizjak@gmail.com>
8679
8680         PR tree-optimization/32681
8681         * tree-if-conv.c (find_phi_replacement_condition): Use the condition
8682         saved in second_edge->aux when first_bb is a loop header.
8683
8684 2007-07-09  Jan HUbicka  <jh@suse.cz>
8685
8686         * cse.c (cse_insn): Avoid invalid sharing on trial replacement.
8687
8688 2007-07-09  Richard Guenther  <rguenther@suse.de>
8689
8690         * c-decl.c (start_function): Do not promote return type.
8691
8692 2007-07-08  Daniel Franke  <franke.daniel@gmail.com>
8693
8694         * function.c (do_warn_unused_parameter): Do not warn if
8695         TREE_NO_WARNING is set.
8696
8697 2007-07-08  Andreas Schwab  <schwab@suse.de>
8698
8699         * doc/invoke.texi (DEC Alpha/VMS Options): Fix typo.
8700
8701 2007-07-08  Sandra Loosemore  <sandra@codesourcery.com>
8702
8703         Revert this patch:
8704         2007-07-06  Sandra Loosemore  <sandra@codesourcery.com>
8705
8706         * c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
8707         apply to assembly language, too.
8708         * doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
8709
8710 2007-07-07  Daniel Berlin  <dberlin@dberlin.org>
8711
8712         Revert (note the sccvn portions are *not* reverted)
8713         2007-07-06  Daniel Berlin  <dberlin@dberlin.org>
8714
8715         Fix PR tree-optimization/23488
8716
8717         * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
8718         handles.
8719         * tree-flow-inline.h (get_value_handle): Ditto.
8720         * tree-ssa-pre.c (decl_vh_map): New.
8721         (decl_node_pool): New.
8722         (can_value_number_operation): Support DECL_P.
8723         (can_PRE_operation): Ditto.
8724         (create_expression_by_pieces): Ditto.
8725         (find_existing_value_expr): Modify to differnetiate between
8726         addressing and top level.
8727         (create_value_handle_for_expr): Handle DECL's.
8728         (poolify_tree): Ditto.
8729         (make_values_for_phi): Don't insert into PHI_GEN during FRE.
8730         (make_values_for_stmt): Handle DECL's properly.
8731         (init_pre): Reorg to not init useless things during FRE.
8732         (fini_pre): Ditto.
8733         * tree-flow.h: Include pointer-set.h.
8734         (decl_vh_map): Declare.
8735         * Makefile.in (TREE_FLOW_H): Add pointer-set.h
8736
8737 2007-07-07 Eric Weddington  <eweddington@cso.atmel.com>
8738
8739         * config/avr/constraints.md (define_memory_constraint "Q"): Fix
8740         the constraint description.
8741         * doc/md.texi: Update documentation of AVR constraints.
8742
8743 2007-07-07  Kazu Hirata  <kazu@codesourcery.com>
8744
8745         * auto-inc-dec.c, config/arm/arm.c,
8746         config/m32r/constraints.md, config/mips/mips.md,
8747         config/rs6000/rs6000.c, cselib.c, dce.c, df-core.c,
8748         df-problems.c, df-scan.c, df.h, dse.c, gimplify.c,
8749         tree-if-conv.c, tree-ssa-sccvn.c, tree-ssa.c: Fix comment
8750         typos.  Follow spelling conventions.
8751         * doc/invoke.texi, doc/rtl.texi: Fix typos.
8752
8753         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
8754         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
8755
8756         * tree-ssa-operands.c (realloc_vop, realloc_vdef,
8757         realloc_vuse): Remove.
8758         * tree-ssa-operands.h: Remove the prototype for realloc_vdef
8759         and realloc_vuse.
8760
8761 2007-07-06  Daniel Berlin  <dberlin@dberlin.org>
8762
8763         Fix PR tree-optimization/23488
8764
8765         * tree-ssa-sccvn.c (expr_has_constants): Handle tcc_declaration.
8766         (try_to_simplify): Ditto.
8767         (visit_use): Ditto.
8768         * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
8769         handles.
8770         * tree-flow-inline.h (get_value_handle): Ditto.
8771         * tree-ssa-pre.c (decl_vh_map): New.
8772         (decl_node_pool): New.
8773         (can_value_number_operation): Support DECL_P.
8774         (can_PRE_operation): Ditto.
8775         (create_expression_by_pieces): Ditto.
8776         (find_existing_value_expr): Modify to differnetiate between
8777         addressing and top level.
8778         (create_value_handle_for_expr): Handle DECL's.
8779         (poolify_tree): Ditto.
8780         (make_values_for_phi): Don't insert into PHI_GEN during FRE.
8781         (make_values_for_stmt): Handle DECL's properly.
8782         (init_pre): Reorg to not init useless things during FRE.
8783         (fini_pre): Ditto.
8784         * tree-flow.h: Include pointer-set.h.
8785         (decl_vh_map): Declare.
8786         * Makefile.in (TREE_FLOW_H): Add pointer-set.h
8787                 
8788 2007-07-06  Sandra Loosemore  <sandra@codesourcery.com>
8789
8790         * c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
8791         apply to assembly language, too.
8792         * doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
8793
8794 2007-07-06  Ian Lance Taylor  <iant@google.com>
8795             Zack Weinberg  <zackw@panix.com>
8796
8797         PR middle-end/32441
8798         * builtins.c (std_expand_builtin_va_start): Don't use make_tree.
8799
8800 2007-07-06  Richard Sandiford  <richard@codesourcery.com>
8801
8802         * config/sh/sh.md (*prefetch_i4): Disable for TARGET_VXWORKS_RTP.
8803         (prefetch): Likewise if "pref" would be used.
8804
8805 2007-07-06  Josh Conner  <jconner@apple.com>
8806
8807         PR middle-end/32602
8808         PR middle-end/32603
8809         * calls.c (store_one_arg): Handle arguments which are partially
8810         on the stack when detecting argument overlap.
8811
8812 2007-07-06  Bernd Schmidt  <bernd.schmidt@analog.com>
8813
8814         * reload1.c (choose_reload_regs): Set reload_spill_index for regs
8815         chosen during find_reloads.
8816
8817 2007-07-06  Richard Guenther  <rguenther@suse.de>
8818
8819         * gimplify.c (gimplify_call_expr): Prefer DECL_ARGUMENTS over
8820         TYPE_ARG_TYPES for verification of argument types.  Use
8821         DECL_ARG_TYPE instead of the PARM_DECL type.  Take excess
8822         parameters as variable arguments.
8823
8824 2007-07-06  Andreas Krebbel  <krebbel1@de.ibm.com>
8825
8826         * libgcc2.h (word_type): Type definition removed.
8827         (cmp_return_type, shift_count_type): Type definitions added.
8828         (__lshrdi3, __ashldi3, __ashrdi3): word_type of second parameter
8829         replaced with shift_count_type.
8830         (__cmpdi2, __ucmpdi2): word_type of return type replaced with
8831         cmp_return_type.
8832         * libgcc2.c (__udivmoddi4, __moddi3): Type of local variable c
8833         changed from word_type to Wtype.
8834         (__lshrdi3, __ashldi3, __ashrdi3): word_type of second parameter
8835         replaced with shift_count_type.
8836         (__cmpdi2, __ucmpdi2): word_type of return type replaced with
8837         cmp_return_type.
8838         * c-common.c (handle_mode_attribute): Handling for libgcc_cmp_return
8839         and libgcc_shift_count attribute added.
8840         * target-def.h (TARGET_LIBGCC_CMP_RETURN_MODE,
8841         TARGET_LIBGCC_SHIFT_COUNT_MODE): New target hooks defined.
8842         (TARGET_INITIALIZER): New target hooks added.
8843         * targhooks.c (default_libgcc_cmp_return_mode,
8844         default_libgcc_shift_count_mode): Default implementations for the new
8845         target hooks added.
8846         * targhooks.h (default_libgcc_cmp_return_mode,
8847         default_libgcc_shift_count_mode): Function prototypes added.
8848         * target.h (struct gcc_target): Fields for the new target hooks added.
8849         * optabs.c (expand_binop): Use shift_count_mode when expanding shift
8850         as library call.
8851         (prepare_cmp_insn): Use cmp_return_mode when expanding comparison as
8852         library call.
8853
8854         * doc/tm.texi (TARGET_LIBGCC_CMP_RETURN_MODE,
8855         TARGET_LIBGCC_SHIFT_COUNT_MODE): Documentation added.
8856
8857         * config/s390/s390.c (s390_libgcc_cmp_return_mode,
8858         s390_libgcc_shift_count_mode): Functions added.
8859         (TARGET_LIBGCC_CMP_RETURN_MODE, TARGET_LIBGCC_SHIFT_COUNT_MODE):
8860         Target hooks defined.
8861
8862 2007-07-06  Richard Sandiford  <richard@codesourcery.com>
8863
8864         * config/mips/mips.c (compute_frame_size): Restore the original
8865         gp_sp_offset for !GENERATE_MIPS16E_SAVE_RESTORE and remove the
8866         fp_size term from the GENERATE_MIPS16E_SAVE_RESTORE calculation.
8867         Document why the difference is needed.
8868
8869 2007-07-06  Richard Guenther  <rguenther@suse.de>
8870
8871         * c-common.c (boolean_increment): Use correctly typed
8872         constant.
8873
8874 2007-07-06  Richard Sandiford  <richard@codesourcery.com>
8875
8876         * config/mips/mips.c (mips16e_save_restore_pattern_p): Check that
8877         the topmost argument register is not also included in the save mask.
8878         (mips16e_collect_argument_save_p): Take a pointer to the argument
8879         register, rather than a pointer to the number of arguments.
8880         (mips16e_collect_argument_saves): Only include argument saves
8881         that aren't in the register mask.
8882
8883 2007-07-06  Uros Bizjak  <ubizjak@gmail.com>
8884
8885         PR rtl-optimization/32450
8886         * function.c (thread_prologue_and_epilogue_insns): Emit blockage insn
8887         to ensure that instructions are not moved into the prologue when
8888         profiling is on.  Remove unused prologue_end variable.
8889         (expand_function_end): Emit blockage insn instead of ASM_INPUT rtx
8890         as a scheduling barrier.
8891
8892 2007-07-06  Alexandre Oliva  <aoliva@redhat.com>
8893
8894         PR debug/23551
8895         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
8896         Disregard DECL_FROM_INLINE.
8897
8898 2007-07-05  Adam Nemet  <anemet@caviumnetworks.com>
8899
8900         * rtlanal.c (num_sign_bit_copies1): Improve cases of ANDing or
8901         IORing with a constant.
8902
8903 2007-07-05  Seongbae Park  <seongbae.park@gmail.com>
8904
8905         PR rtl-optimization/32475
8906         * df-scan.c (df_def_record_1): Add a use of the stack pointer
8907         for every definition of the stack pointer.
8908
8909 2007-07-05  Richard Earnshaw  <rearnsha@arm.com>
8910
8911         * arm.c (vfp3_const_double_index): Copy signed results of
8912         REAL_VALUE_TO_INT into unsigned vars.
8913
8914 2007-07-05  Richard Guenther  <rguenther@suse.de>
8915
8916         PR middle-end/32639
8917         * alias.c (get_alias_set): Tread METHOD_TYPE the same as
8918         FUNCTION_TYPE.
8919         * tree-ssa.c (useless_type_conversion_p): Check canonical
8920         types early.
8921
8922 2007-07-05 Anatoly Sokolov <aesok@post.ru>
8923
8924         * config/avr/avr.md (zero_extendqihi2, zero_extendqisi2, 
8925         zero_extendhisi2): Change to define_insn_and_split. 
8926         (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New.
8927
8928 2007-07-05  Paolo Bonzini  <bonzini@gnu.org>
8929
8930         * function.c (match_asm_constraints_1, rest_of_match_asm_constraints,
8931         pass_match_asm_constraints): New.
8932         * passes.c (init_optimization_passes): Add new pass.
8933         * stmt.c (expand_asm_operands): Set cfun->has_asm_statement.
8934         * function.h (struct function): Add has_asm_statement bit.
8935         (current_function_has_asm_statement): New.
8936         * tree-pass.h (pass_match_asm_constraints): New.
8937
8938 2007-07-05  Richard Sandiford  <rsandifo@nildram.co.uk>
8939
8940         * config/mips/mips.c (mips_file_start): Avoid declaration
8941         after code.
8942
8943 2007-07-05  Sandra Loosemore  <sandra@codesourcery.com>
8944
8945         * optabs.c (expand_binop_directly): Fix signed/unsigned comparison.
8946
8947 2007-07-05  Uros Bizjak  <ubizjak@gmail.com>
8948
8949         * rtl.def (NOTE): Change print format string to print
8950         operand 5 as a note insn name.
8951
8952 2007-07-05  Sandra Loosemore  <sandra@codesourcery.com>
8953             David Ung  <davidu@mips.com>
8954
8955         * config/mips/mips.c (mips_cpu_info): Add 4ksc and 4ksd processors.
8956         * doc/invoke.texi: (MIPS Options): Document them.
8957
8958 2007-07-05  Sandra Loosemore  <sandra@codesourcery.com>
8959             David Ung  <davidu@mips.com>
8960
8961         Add support for SmartMIPS ASE.
8962
8963         * optabs.c (expand_binop_directly): New, broken out from...
8964         (expand_binop): Here.  Make it try rotating in the other
8965         direction even when the second operand isn't constant.
8966         * config/mips/mips.md (*lwxs): New.
8967         * config/mips/mips.opt (msmartmips): New.
8968         * config/mips/mips.c (mips_lwxs_address_p): New.
8969         (mips_rtx_costs): Make it recognize scaled indexed addressing.
8970         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
8971         __mips_smartmips when compiling for TARGET_SMARTMIPS.
8972         (ISA_HAS_ROR): Define for TARGET_SMARTMIPS.
8973         (ISA_HAS_LWXS): New.
8974         (ASM_SPEC): Add -msmartmips/-mno-smartmips.
8975         * doc/invoke.texi (MIPS Options): Document -msmartmips/-mno-smartmips.
8976         * testsuite/gcc.target/mips/smartmips-lwxs.c: New test case.
8977         * testsuite/gcc.target/mips/smartmips-ror-1.c: New test case.
8978         * testsuite/gcc.target/mips/smartmips-ror-2.c: New test case.
8979         * testsuite/gcc.target/mips/smartmips-ror-3.c: New test case.
8980         * testsuite/gcc.target/mips/smartmips-ror-4.c: New test case.
8981
8982 2007-07-05  Dorit Nuzman  <dorit@il.ibm.com>
8983
8984         * tree-vectorizer.c (new_loop_vec_info): Initialize
8985         LOOP_VINFO_COST_MODEL_MIN_ITERS.
8986         * tree-vectorizer.h (_loop_vec_info): Added new filed
8987         min_profitable_iters.
8988         (LOOP_VINFO_COST_MODEL_MIN_ITERS): New access macro to above new field.
8989         (TARG_SCALAR_TO_VEC_COST): Define cost of scalar to vector operation.
8990         * tree-vect-analyze.c (vect_analyze_operations): Set
8991         LOOP_VINFO_COST_MODEL_MIN_ITERS.
8992         * tree-vect-transform.c (vect_estimate_min_profitable_iters): Use
8993         VEC_length to determine if there are any LOOP_VINFO_MAY_MISALIGN_STMTS.
8994         Fix calculation of peel_iters_prologue. Move consideration of epilogue
8995         and prologue cost to after they are computed.
8996         (vect_model_induction_cost): Use TARG_SCALAR_TO_VEC_COST instead of
8997         TARG_VEC_STMT_COST.
8998         (vect_model_simple_cost): Takes additional argument dt. Consider cost
8999         of creating vectors from scalars according to dt.
9000         (vect_model_store_cost): Likewise.
9001         (vectorizable_call): Use dt array instead of scalar dt. Call
9002         vect_model_simple_cost with additional argument dt.
9003         (vectorizable_assignment): Likewise.
9004         (vectorizable_operation): Likewise.
9005         (vectorizable_type_demotion): Likewise.
9006         (vectorizable_type_promotion): Likewise.
9007         (vectorizable_store): Use dt array instead of scalar dt. Call
9008         vect_model_store_cost with additional argument dt.
9009         (vect_do_peeling_for_loop_bound): Don't call
9010         vect_estimate_min_profitable_iters. Instead, lookup
9011         LOOP_VINFO_COST_MODEL_MIN_ITERS. Don't always print
9012         "may not be profitable".
9013
9014 2007-07-05  Dorit Nuzman  <dorit@il.ibm.com>
9015
9016         PR testsuite/32014
9017         * config/rs6000/altivec.md (UNSPEC_VUPKHS_V4SF, UNSPEC_VUPKLS_V4SF):
9018         (UNSPEC_VUPKHU_V4SF, UNSPEC_VUPKLU_V4SF): New.
9019         (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi): New patterns.
9020         (vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): New patterns. 
9021
9022 2007-07-05  Zdenek Dvorak  <dvorakz@suse.cz>
9023
9024         * config/i386/i386.c (ix86_address_cost): Do not consider more complex
9025         addressing modes cheaper.
9026
9027 2007-07-05  Alexandre Oliva  <aoliva@redhat.com>
9028
9029         * dwarf2out.c (dw_ranges_by_label_ref): New typedef.
9030         (dw_ranges_struct): Rename block_num to num.  Adjust.
9031         (dw_ranges_by_label_struct): New.
9032         (ranges_by_label, ranges_by_label_allocated,
9033         ranges_by_label_in_use): New variables.
9034         (add_ranges_num): Factored most of the code out of...
9035         (add_ranges): ... this one.  Rewrite in terms of the former.
9036         (add_ranges_by_labels): New.
9037         (output_ranges): Output by-label ranges.
9038         (dwarf2out_finish): Output range for multiple-section
9039         compile_unit.  Output standard DW_AT_low_pc in addition to
9040         unexpected DW_AT_entry_pc.
9041
9042 2007-07-04  Daniel Berlin  <dberlin@dberlin.org>
9043
9044         PR tree-optimization/32604
9045         PR tree-optimization/32606
9046
9047         * tree-ssa-pre.c (bb_bitmap_sets): Removed antic_safe_loads.
9048         (compute_antic_safe): Removed.
9049         (ANTIC_SAFE_LOADS): Ditto.
9050         (compute_antic_aux): Don't print ANTIC_SAFE_LOADS.
9051         (execute_pre): Don't call compute_antic_safe.
9052         (vuse_equiv): New function.
9053         (make_values_for_stmt): Use it
9054         * tree-ssa-sccvn.c (set_ssa_val_to): Remove assert, since it is
9055         not always true.
9056
9057 2007-07-04 Anatoly Sokolov <aesok@post.ru>
9058
9059         PR target/31331
9060         * config/avr/avr.c (avr_naked_function_p): Handle receiving a type
9061         rather than a decl. 
9062         (avr_attribute_table): Make "naked" attribute apply to function types
9063         rather than to decls.
9064         (avr_handle_fntype_attribute): New function.
9065
9066 2007-07-04  Joseph Myers  <joseph@codesourcery.com>
9067
9068         * target-def.h (TARGET_INITIALIZER): Remove trailing whitespace
9069         after \.
9070
9071 2007-07-04  David Ung  <davidu@mips.com>
9072             Joseph Myers  <joseph@codesourcery.com>
9073
9074         * config/mips/mips.md (type): Add logical, signext and move.
9075         (one_cmpl<mode>2, *and<mode>3, *and<mode>3_mips16, *ior<mode>3,
9076         *ior<mode>3_mips16, two unnamed insns after *ior<mode>3_mips16,
9077         *nor<mode>3, "Combiner patterns to optimize truncate/zero_extend
9078         combinations", *zero_extend<SHORT:mode><GPR:mode>2,
9079         *zero_extendqihi2, *extend<SHORT:mode><GPR:mode>2_mips16e,
9080         *extend<SHORT:mode><GPR:mode>2_se<SHORT:size>, *movdi_64bit,
9081         *movdi_64bit_mips16, *movsi_internal, *movsi_mips16, movcc,
9082         *movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16,
9083         *movsf_hardfloat, *movsf_softfloat, *movsf_mips16,
9084         *movdf_hardfloat_64bit, *movdf_hardfloat_32bit,
9085         movv2sf_hardfloat_64bit): Use the new types.
9086         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16,
9087         *movdf_softfloat, *movdf_mips16): Use "multi".
9088         (extendqihi2): Replace with a define_expand.
9089         (*extendqihi2_mips16e, *extendqihi2, *extendqihi2_seb): New.
9090         Based on extend<SHORT:mode><GPR:mode>2 patterns.
9091         * config/mips/74k.md (r74k_int_logical): New reservation and
9092         bypasses.
9093         (r74k_int_arith): Remove "slt".
9094         * config/mips/24k.md, config/mips/4130.md, config/mips/4k.md,
9095         config/mips/5400.md, config/mips/5500.md, config/mips/5k.md,
9096         config/mips/7000.md, config/mips/9000.md, config/mips/generic.md,
9097         config/mips/sb1.md, config/mips/sr71k.md: Add new types to
9098         reservations for "arith".
9099
9100 2007-07-04  Richard Guenther  <rguenther@suse.de>
9101
9102         * tree-ssa.c (useless_type_conversion_p): Add handling for
9103         scalar float and vector types.  Only call the types_compatible_p
9104         langhook for aggregate types as last resort.  Follow the
9105         rules.
9106
9107 2007-07-04  Richard Guenther  <rguenther@suse.de>
9108
9109         * tree-inline.c (estimate_num_insns_1): Treat CONVERT_EXPR
9110         the same as NOP_EXPR.
9111
9112 2007-07-04  Nick Clifton  <nickc@redhat.com>
9113
9114         * target.h (struct gcc_target): Add target_help field.
9115         * target-def.h (TARGET_HELP): New.
9116         (TARGET_INITIALIZER): Use TARGET_HELP.
9117         * opts.c (command_handle_option): Invoke target_help function, if
9118         defined, when the user has specified --target-help on the command
9119         line.
9120         * doc/invoke.texi: Mention that --target-help might print
9121         additional information.
9122         * doc/tm.texi: Document TARGET_HELP hook.
9123
9124         * arm.c (TARGET_HELP): Override default definition.
9125         (arm_target_help): New - display a wrapped list of cores and
9126         architectures supported.
9127
9128 2007-07-04  Rask Ingemann Lambertsen  <rask@sygehus.dk>
9129
9130         * config/v850/v850.c (expand_prologue): Make sure
9131         GEN_INT() argument is sign extended rather than zero extended.
9132         (expand_epilogue): Likewise.
9133         (output_move_double): Delete.
9134         * config/v850/v850-protos.h (output_move_double): Delete.
9135         * config/v850/v850.md (movdi): Delete.
9136         (*movdi_internal): Delete.
9137         (movdf): Delete.
9138         (*movdf_internal): Delete.
9139
9140 2007-07-04  Richard Sandiford  <richard@codesourcery.com>
9141
9142         * config/sh/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Reject -mrelax
9143         unless compiling RTP PIC.
9144
9145 2007-07-04  Richard Guenther  <rguenther@suse.de>
9146
9147         PR tree-optimization/32482
9148         * tree-ssa-ifcombine.c (recognize_single_bit_test): Use the
9149         original ssa name if we didn't find a shift expression.
9150         Fix shift constant for bit zero test.
9151
9152 2007-07-04  Richard Sandiford  <richard@codesourcery.com>
9153
9154         * config/sh/lib1funcs.asm (ic_invalidate): Align constant pool.
9155
9156 2007-07-04  Richard Sandiford  <richard@codesourcery.com>
9157
9158         * config.gcc (arm-wrs-vxworks): Don't include svr4.h.
9159         * config/vxworks.h (PTRDIFF_TYPE, SIZE_TYPE, TARGET_POSIX_IO): Define.
9160         * config/arm/vxworks.h (ASM_SPEC): Delete.
9161         (SUBTARGET_EXTRA_ASM_SPEC): Define.
9162
9163 2007-07-04  Sebastian Pop  <sebpop@gmail.com>
9164
9165         * tree-data-ref.h (data_dependence_relation): New flag reversed_p.
9166         (DDR_REVERSED_P): New.
9167         * tree-data-ref.c (initialize_data_dependence_relation,
9168         build_classic_dist_vector): Set DDR_REVERSED_P.
9169
9170 2007-07-04  Sebastian Pop  <sebpop@gmail.com>
9171
9172         PR middle-end/32457
9173         * tree-data-ref.c (analyze_siv_subscript_cst_affine,
9174         compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
9175         init_omega_for_ddr_1): Use non conservative number of iterations
9176         estimations.
9177         (analyze_subscript_affine_affine): Use HOST_WIDE_INT instead of int.
9178         (analyze_siv_subscript): Remove FIXME and reinitialization of 
9179         last_conflicts to chrec_dont_know.
9180         * testsuite/gfortran.dg/vect/pr32457.f90: New.
9181
9182 2007-07-04  Douglas Gregor  <doug.gregor@gmail.com>
9183
9184         * tree.c (maybe_canonicalize_argtypes): Improve description.
9185
9186 2007-07-04  Douglas Gregor  <doug.gregor@gmail.com>
9187
9188         * tree.c (maybe_canonicalize_argtypes): New.
9189         (build_function_type): Set canonical type.
9190         (build_method_type_directly): Ditto.
9191         (reconstruct_complex_type): Rebuild the METHOD_TYPE node
9192         properly.
9193
9194 2007-07-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9195
9196         * tree-ssa-loop-ivopts.c (strip_offset_1): Treat POINTER_PLUS_EXPR
9197         like PLUS_EXPR.
9198         (rewrite_use_nonlinear_expr): Likewise.
9199
9200 2007-07-03  Seongbae Park  <seongbae.park@gmail.com>
9201
9202         * rtl.def (UNSPEC, USE, CLOBBER): More comments.
9203
9204 2007-07-04  Ben Elliston  <bje@au.ibm.com>
9205
9206         * dwarf2out.c: Move DWARF2 abbreviation glossary closer to the top
9207         of this file.
9208
9209         * c-objc-common.c (c_types_compatible_p): Fix indentation.
9210
9211         * doc/tm.texi (Run-time Target): Capitalise "CPU".
9212         (Exception Handling): Likewise.
9213
9214 2007-07-03  Jan Hubicka  <jh@suse.cz>
9215
9216         * ifcvt.c (find_cond_trap): Avoid invalid RTL sharing.
9217
9218 2007-07-03  Eric Christopher  <echristo@apple.com>
9219
9220         * doc/cppopts.texi: Add conflicting option note to -dM.
9221         * doc/invoke.texi: Add note about possible conflicts with
9222         -E for -dCHARS and note that -dM will not produce
9223         any results if there is no machine dependent reorg.
9224         
9225 2007-07-03  Geoffrey Keating  <geoffk@apple.com>
9226
9227         * tree.h (DECL_ALIGN): Back out previous change.
9228
9229 2007-07-03  Joseph Myers  <joseph@codesourcery.com>
9230
9231         * configure.ac: Test for .dtprelword support on MIPS.
9232         * configure, config.in: Regenerate.
9233         * config/mips/mips.c (mips_output_dwarf_dtprel): New.
9234         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
9235
9236 2007-07-03  Julian Brown  <julian@codesourcery.com>
9237
9238         * config.gcc (with_fpu): Allow --with-fpu=vfp3.
9239         * config/arm/aout.h (REGISTER_NAMES): Add D16-D31.
9240         * config/arm/aof.h (REGISTER_NAMES): Add D16-D31.
9241         * config/arm/arm.c (FL_VFPV3): New flag for VFPv3 processor
9242         capability.
9243         (all_fpus): Add FPUTYPE_VFP3.
9244         (fp_model_for_fpu): Add VFPv3 field.
9245         (arm_rtx_costs_1): Give cost to VFPv3 constants.
9246         (vfp3_const_double_index): New function. Return integer index of
9247         VFPv3 constant suitable for fconst[sd] insns, or -1 if constant
9248         isn't suitable.
9249         (vfp3_const_double_rtx): New function. True if VFPv3 is enabled
9250         and argument represents a valid RTX for a VFPv3 constant.
9251         (vfp_output_fldmd): Split fldmd with > 16 registers in the list into
9252         two instructions.
9253         (vfp_emit_fstmd): Similar, for fstmd.
9254         (arm_print_operand): Implement new code 'G' for VFPv3 floating-point
9255         constants, represented as integer indices.
9256         (arm_hard_regno_mode_ok): Use VFP_REGNO_OK_FOR_SINGLE,
9257         VFP_REGNO_OK_FOR_DOUBLE macros.
9258         (arm_regno_class): Handle VFPv3 d0-d7, low, high register split.
9259         (arm_file_start): Set float-abi attribute for VFPv3, and output
9260         correct ".fpu" assembler directive.
9261         (arm_dbx_register_numbering): Add FIXME.
9262         * config/arm/arm.h (TARGET_VFP3): New macro. Target supports VFPv3.
9263         (fputype): Add FPUTYPE_VFP3.
9264         (FIXED_REGISTERS): Add 32 registers for D16-D31.
9265         (CALL_USED_REGISTERS): Likewise.
9266         (CONDITIONAL_REGISTER_USAGE): Add note about conditional definition
9267         of LAST_VFP_REGNUM. Make D16-D31 caller-saved, if present.
9268         (LAST_VFP_REGNUM): Extend available VFP registers for VFPv3.
9269         (D7_VFP_REGNUM): New.
9270         (LAST_LO_VFP_REGNUM, FIRST_HI_VFP_REGNUM, LAST_HI_VFP_REGNUM)
9271         (VFP_REGNO_OK_FOR_SINGLE, VFP_REGNO_OK_FOR_SINGLE)
9272         (VFP_REGNO_OK_FOR_DOUBLE): Define new macros.
9273         (FIRST_PSEUDO_REGISTER): Shift up to 128 to accommodate VFPv3.
9274         (REG_ALLOC_ORDER): Adjust for VFPv3.
9275         (reg_class): Add VFP_D0_D7_REGS, VFP_LO_REGS, VFP_HI_REGS.
9276         (REG_CLASS_NAMES): Add entries corresponding to VFP_D0_D7_REGS,
9277         VFP_LO_REGS, VFP_HI_REGS.
9278         (REG_CLASS_CONTENTS): Likewise. Extend contents for VFP_REGS.
9279         (IS_VFP_CLASS): Define macro.
9280         (SECONDARY_OUTPUT_RELOAD_CLASS, SECONDARY_INPUT_RELOAD_CLASS): Use
9281         IS_VFP_CLASS.
9282         (REGISTER_MOVE_COST): Likewise.
9283         * config/arm/arm-protos.h (vfp3_const_double_rtx): Add prototype.
9284         * config/arm/vfp.md (VFPCC_REGNUM): Redefine as 127.
9285         (*arm_movsi_vfp, *thumb2_movsi_vfp, *movsfcc_vfp)
9286         (*thumb2_movsfcc_vfp, *abssf2_vfp, *negsf2_vfp, *addsf3_vfp)
9287         (*subsf3_vfp, *divsf_vfp, *mulsf_vfp, *mulsf3negsf_vfp)
9288         (*mulsf3addsf_vfp, *mulsf3subsf_vfp, *mulsf3negsfaddsf_vfp)
9289         (*extendsfdf2_vfp, *truncdfsf2_vfp, *truncsisf2_vfp)
9290         (*truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2)
9291         (*floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2)
9292         (floatunssidf2, *sqrtsf2_vfp, *cmpsf_split_vfp)
9293         (*cmpsf_trap_split_vfp, *cmpsf_vfp, *cmpsf_trap_vfp): Use 't'
9294         where appropriate for single-word registers.
9295         (*movsf_vfp, *thumb2_movsf_vfp, *movdf_vfp, *thumb2_movdf_vfp):
9296         As above. Fix type attributes.
9297         * config/arm/constraints.md (register_contraint "t"): Define.
9298         (register_constraint "w"): Change to D0-D15, or D0-D31 for
9299         VFPv3/NEON.
9300         (register_constraint "x"): Define.
9301         (constraint "Dv"): Define.
9302
9303 2007-07-03  Geoffrey Keating  <geoffk@apple.com>
9304
9305         * tree.h (DECL_ALIGN): Prevent use on a FUNCTION_DECL.
9306
9307 2007-07-03  Tom Tromey  <tromey@redhat.com>
9308
9309         * c-parser.c (objc_pq_context): Removed.
9310         (objc_need_raw_identifier): Likewise.
9311         (c_parser) <objc_pq_context>: New field.
9312         <objc_need_raw_identifier>: Likewise.
9313         (OBJC_NEED_RAW_IDENTIFIER): Removed.
9314         (c_lex_one_token): Update.
9315         (c_parser_objc_protocol_definition): Update.
9316         (c_parser_objc_method_definition): Update.
9317         (c_parser_objc_methodproto): Update.
9318         (c_parser_declspecs): Update.
9319
9320 2007-07-03  David Ung  <davidu@mips.com>
9321
9322         * config/mips/mips.c (mips_issue_rate): Return 4 for 74K processors.
9323
9324 2007-07-03  David Ung  <davidu@mips.com>
9325             Richard Sandiford  <richard@codesourcery.com>
9326
9327         * doc/invoke.texi: Document -march=74kf3_2.
9328         * config/mips/mips.h (PROCESSOR_74KF3_2): New processor_type.
9329         (TUNE_74K): Check for it.
9330         * config/mips/mips.c (mips_cpu_info): Add 74kf3_2.
9331         (mips_rtx_cost_data): Add an entry for PROCESSOR_74KF3_2.
9332         * config/mips/mips.md (cpu): Add 74kf3_2.
9333         * config/mips/74k.md (r74k_int_logical, r74k_int_arith, r74k_int_nop)
9334         (r74k_int_cmove, r74k_int_mult, r74k_int_mul3, r74k_int_mfhilo)
9335         (r74k_int_mthilo, r74k_int_div, r74k_int_call, r74k_int_jump)
9336         (r74k_int_load, r74k_int_store, r74k_unknown, r74k_multi): Add
9337         74kf3_2 to the CPU list.
9338         (r74kf3_2_fadd, r74kf3_2_fmove, r74kf3_2_fload, r74kf3_2_fstore)
9339         (r74kf3_2_fmul_sf, r74kf3_2_fmul_df, r74kf3_2_fdiv_sf)
9340         (r74kf3_2_fdiv_df, r74kf3_2_frsqrt_sf, r74kf3_2_frsqrt_df)
9341         (r74kf3_2_fcmp, r74kf3_2_fcvt, r74kf3_2_fxfer_to_c1)
9342         (r74kf3_2_fxfer_from_c1): New insn reservations.
9343
9344 2007-07-03  Richard Sandiford  <richard@codesourcery.com>
9345             David Ung  <davidu@mips.com>
9346
9347         * doc/invoke.texi: Replace -march=24kf with -march=24kf2_1 and
9348         -march=24kx with -march=24kf1_1.  Likewise 24ke[fx], 34k[fx]
9349         and 74k[fx].  Document aliases for the new options.
9350         * config/mips/mips.h (PROCESSOR_24KF): Rename to...
9351         (PROCESSOR_24KF2_1): ...this.
9352         (PROCESSOR_24KX): Rename to...
9353         (PROCESSOR_24KF1_1): ...this.
9354         (PROCESSOR_74KF): Rename to...
9355         (PROCESSOR_74KF2_1): ...this.
9356         (PROCESSOR_74KX): Rename to...
9357         (PROCESSOR_74KF1_1): ...this.
9358         (TUNE_74K): Update PROCESSOR_* names.
9359         * config/mips/mips.c (mips_cpu_info): Add 24kf2_1 as a synonym
9360         for 24kf.  Add 24kf1_1 and 24kfx as synonyms for 24kx.  Likewise
9361         the 24ke*, 34k* and 74k* processors.  Update PROCESSOR_* names.
9362         (mips_rtx_cost_data): Update processor names in comments.
9363         (mips_issue_rate): Update PROCESSOR_* names.
9364         * config/mips/mips.md (cpu): Rename 24kf to 24kf2_1, 24kx to
9365         24kf1_1, 74kf to 74kf2_1 and 74kx to 74kf1_1.
9366         * config/mips/24k.md: Rename FPU-related r24k_* insn reservations
9367         to r24kf2_1_*.  Rename r24kx_* insn reservations to r24kf1_1_*.
9368         Update cpu attribute names.
9369         (r24k_fpu_iss): Rename this reservation to...
9370         (r24kf2_1_fpu_iss): ...this and update all uses.
9371         (r24kx_fpu_iss): Rename this reservation to...
9372         (r24kf1_1_fpu_iss): ...this and update all uses.
9373         * config/mips/74k.md: Rename FPU-related r74kf_* insn reservations
9374         to r74kf2_1_*.  Rename r74kx_* insn reservations to r74kf1_1_*.
9375         Update cpu attribute names.
9376
9377 2007-07-01  Kaz Kojima  <kkojima@gcc.gnu.org>
9378
9379         * config/m32r/constraints.md: New file.
9380         * config/m32r/m32r.c: Include tm-constrs.h.
9381         (small_data_operand): Use satisfies_constraint_* instead of macro.
9382         (addr24_operand, gen_compare): Likewise.
9383         * config/m32r/m32r.h (REG_CLASS_FROM_LETTER): Remove.
9384         (INT8_P, UPPER16_P, UINT32_P, UINT5_P, INVERTED_SIGNED_8BIT,
9385         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
9386         EXTRA_CONSTRAINT): Likewise.
9387         * config/m32r/m32r.md: Include constraints.md.
9388         (*movsi_insn): Use satisfies_constraint_* instead of macro.
9389         (andsi3, iorsi3, xorsi3, seq_insn+1, sne): Likewise.
9390         * config/m32r/predicates.md (conditional_move_operand): Likewise.
9391         (two_insn_const_operand, int8_operand, uint16_operand,
9392         reg_or_int16_operand, reg_or_uint16_operand,
9393         reg_or_cmp_int16_operand, cmp_int16_operand,
9394         seth_add3_operand): Likewise.
9395
9396 2007-07-03  Eric Christopher  <echristo@gmail.com>
9397
9398         * libgcc2.h: Conditionally declare __bswapsi2 and
9399         __bswapdi2.
9400         
9401 2007-07-03  H.J. Lu  <hongjiu.lu@intel.com>
9402
9403         * ddg.c (check_sccs): Define only if ENABLE_CHECKING is
9404         defined.
9405
9406 2007-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9407
9408         PR target/28307
9409         * gthr-posix.h [SUPPORTS_WEAK && GTHREAD_USE_WEAK]
9410         (__gthrw_pragma): Provide default definition.
9411         (__gthrw2): Use it.
9412         * gthr-posix.c (__gthrw_pragma): Define.
9413
9414 2007-07-03  Daniel Berlin  <dberlin@dberlin.org>
9415
9416         * tree-ssa-sccvn.c (set_ssa_val_to): Check for operand_equal_p
9417         before declaring inequality.
9418
9419 2007-07-03  Rask Ingemann Lambertsen  <rask@sygehus.dk>
9420
9421         * combine.c (recog_for_combine): Log the success or failure of
9422           matching new insn patterns against the machine description in
9423           detailed dumps.
9424
9425 2007-07-03  Revital Eres  <eres@il.ibm.com>
9426
9427         * ddg.c (print_sccs): New function.
9428         (check_sccs): New function.
9429         (create_ddg_all_sccs): Use it.
9430         * ddg.h (print_sccs): Declare.
9431         * modulo-sched.c (sms_order_nodes): Call print_sccs.
9432
9433 2007-07-03  Uros Bizjak  <ubizjak@gmail.com>
9434
9435         * targhooks.h (default_mode_for_suffix): New function declaration.
9436         * targhooks.c (default_mode_for_suffix): New default target hook.
9437         * target.h (struct c): New structure in the targetm struct.
9438         (mode_for_suffix): New target hook as part of struct c.
9439         target-def.h (TARGET_C_MODE_FOR_SUFFIX): Define as
9440         default_mode_for_suffix.
9441         (TARGET_C): New define.
9442         * c-lex.c: Include "target.h".
9443         (interpret_float): Use targetm.c.mode_for_suffix to determine
9444         the mode for a given non-standard suffix.
9445         Makefile.in (c-lex.o): Depend on $(TARGET_H).
9446
9447         * config/i386/i386.c (ix86_c_mode_for_suffix): New static function.
9448         (TARGET_C_MODE_FOR_SUFFIX): Define to ix86_c_mode_for_suffix.
9449
9450         * doc/extend.texi (Floating Types): New node.  Document __float80 and
9451         __float128 types.  Document 'w', 'W', 'q' and 'Q' suffixes.
9452
9453 2007-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
9454
9455         PR target/32506
9456         * config/sh/sh.md (udivsi3_i1_media): Use target_reg_operand
9457         predicate instead of target_operand.
9458         (divsi3_i1_media, divsi3_media_2): Likewise.
9459
9460 2007-07-02  Eric Botcazou  <ebotcazou@adacore.com>
9461
9462         * tree.h (alias_sets_might_conflict_p): Rename into
9463         alias_sets_must_conflict_p.
9464         * alias.c (alias_sets_might_conflict_p): Likewise.
9465         (alias_sets_conflict_p): Use it.
9466         (objects_must_conflict_p): Likewise.
9467         * c-common.c (strict_aliasing_warning): Adjust.
9468
9469 2007-07-02  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9470
9471         * rtlhooks.c (gen_lowpart_if_possible): Check for
9472         invalid subreg before calling gen_lowpart_SUBREG.
9473
9474 2007-07-02  Geoffrey Keating  <geoffk@apple.com>
9475
9476         * config/darwin9.h: Add copyright notice.
9477         (LINK_COMMAND_SPEC): Add comment.
9478         (DARWIN_LIBSYSTEM_HAS_UNWIND): Define.
9479         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Conditionalise on
9480         DARWIN_LIBSYSTEM_HAS_UNWIND.
9481
9482 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
9483
9484         PR libgomp/32468
9485         * omp-low.c (check_combined_parallel): New function.
9486         (lower_omp_parallel): Call it via walk_stmts, set
9487         OMP_PARALLEL_COMBINED if appropriate.
9488         (determine_parallel_type): If OMP_FOR resp. OMP_SECTIONS
9489         isn't the only statement in WS_ENTRY_BB or OMP_RETURN
9490         the only one in PAR_EXIT_BB and not OMP_PARALLEL_COMBINED,
9491         don't consider it as combined parallel.
9492
9493 2007-07-02  Richard Sandiford  <richard@codesourcery.com>
9494
9495         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
9496         (gcc_tooldir): Likewise.
9497         * configure: Regenerate.
9498         * Makefile.in (libsubdir_to_prefix): New variable, based on the
9499         old configure.ac gcc_tooldir setting.
9500         (prefix_to_exec_prefix): New variable.
9501         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
9502         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
9503
9504 2007-07-02  Daniel Berlin  <dberlin@dberlin.org>
9505
9506         Fix PR tree-optimization/32583
9507         Fix PR tree-optimization/32584
9508         * tree-ssa-pre.c (phi_translate): Always pass seen bitmap.
9509         (phi_translate_set): Use phi_translate directly now.
9510         (make_values_for_stmt): Don't value number RHS if we already know
9511         it is constant.
9512
9513 2007-07-02  Steve Ellcey  <sje@cup.hp.com>
9514             Jim Wilson <wilson@specifix.com>
9515
9516         PR target/31684
9517         * haifa-sched.c (add_to_speculative_block): Change copy_rtx to
9518         copy_insn.
9519
9520 2007-07-02  Sandra Loosemore  <sandra@codesourcery.com>
9521             Richard Sandiford  <richard@codesourcery.com>
9522             Nigel Stephens  <nigel@mips.com>
9523
9524         * config/mips/mips-protos.h (mips16e_save_restore_info): New struct.
9525         (mips16e_output_save_restore): Declare.
9526         (mips16e_save_restore_pattern_p): Likewise.
9527         * config/mips/mips.h (GENERATE_MIPS16E_SAVE_RESTORE): New macro.
9528         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Return 0x7f8
9529         for GENERATE_MIPS16E_SAVE_RESTORE.  Return 0x400 for TARGET_MIPS16
9530         && !GENERATE_MIPS16E_SAVE_RESTORE && !TARGET_64BIT.
9531         (BITSET_P): New global macro, extracted from...
9532         (mips_for_each_saved_reg): ...here.
9533         (mips16e_save_restore_info): New struct.
9534         (mips16e_s2_s8_regs, mips16e_a0_a3_regs): New variables.
9535         (mips16e_save_restore_regs): New variable.
9536         (mips_split_plus, mips16e_find_first_register): New functions.
9537         (mips16e_mask_registers): New function.
9538         (compute_frame_size): Expand the commentary before the function.
9539         Enforce the MIPS16e save and restore register range restrictions.
9540         Pad the general register save area at the low end.
9541         (mips16e_save_restore_reg, mips16e_build_save_restore)
9542         (mips16e_save_restore_pattern_p, mips16e_add_register_range)
9543         (mips16e_output_save_restore, mips16e_collect_propagate_value)
9544         (mips16e_collect_argument_save, mips16e_collect_argument_saves):
9545         New functions.
9546         (mips_expand_prologue, mips_expand_epilogue): Handle
9547         GENERATE_MIPS16E_SAVE_RESTORE.
9548         * config/mips/mips.md (*mips16e_save_restore): New pattern.
9549
9550 2007-07-02  Uros Bizjak  <ubizjak@gmail.com>
9551
9552         PR tree-optimization/31966
9553         PR tree-optimization/32533
9554         * tree-if-conv.c (add_to_dst_predicate_list): Use "edge", not
9555         "basic_block" description as its third argument.  Update function
9556         calls to get destination bb from "edge" argument.  Save "cond" into
9557         aux field of the edge.  Update prototype for changed arguments.
9558         (if_convertible_loop_p): Clear aux field of incoming edges if bb
9559         contains phi node.
9560         (find_phi_replacement_condition): Operate on incoming edges, not
9561         on predecessor blocks.  If there is a condition saved in the
9562         incoming edge aux field, AND it with incoming bb predicate.
9563         Return source bb of the first edge.
9564         (clean_predicate_lists): Clean aux field of outgoing node edges.
9565         (tree_if_conversion): Do not initialize cond variable. Move
9566         variable declaration into the loop.
9567         (replace_phi_with_cond_gimple_modify_stmt): Remove unneded
9568         initializations of new_stmt, arg0 and arg1 variables.
9569
9570 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
9571
9572         * tree-nrv.c (dest_safe_for_nrv_p): Grok any handled_component_p,
9573         SSA_NAMEs, RESULT_DECLs and PARM_DECLs.
9574
9575 2007-07-02  Richard Guenther  <rguenther@suse.de>
9576
9577         * tree-ssa.c (useless_type_conversion_p): Document
9578         future intent as defining the middle-end type system.
9579         Re-structure to call langhook last, group by type class,
9580         mark questionable parts.
9581
9582 2007-07-02  Richard Guenther  <rguenther@suse.de>
9583
9584         * tree-flow.h (types_compatible_p): Declare.
9585         * tree-ssa.c (types_compatible_p): New function.
9586         * ipa-type-escape.c (discover_unique_type): Use
9587         types_compatible_p instead of lang_hooks.types_compatible_p.
9588         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
9589         * tree-vn.c (expressions_equal_p): Likewise.
9590         * tree.c (fields_compatible_p): Likewise.
9591         * tree-ssa-dom.c (avail_expr_eq): Likewise.
9592         (cprop_operand): Use useless_type_conversion_p instead of
9593         lang_hooks.types_compatible_p.
9594         * tree-inline.c (setup_one_parameter): Likewise.
9595         (declare_return_variable): Likewise.
9596         * tree-nrv.c (tree_nrv): Likewise.
9597         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
9598         (maybe_fold_offset_to_component_ref): Likewise.
9599         (maybe_fold_offset_to_reference): Likewise.
9600         * tree-ssa-copy.c (may_propagate_copy): Likewise.
9601         (merge_alias_info): Likewise.
9602         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
9603         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
9604         * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
9605         * tree-tailcall.c (find_tail_calls): Likewise.
9606         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
9607         * gimplify.c (canonicalize_addr_expr): Likewise.
9608         (fold_indirect_ref_rhs): Likewise.
9609         (gimplify_addr_expr): Likewise.  Swap parameters to cpt_same_type.
9610         (cpt_same_type): Likewise.
9611         (check_pointer_types_r): Swap parameters to cpt_same_type
9612         where appropriate.
9613         * fold-const.c (fold_convert): Revert fix for PR15988.
9614         * tree-inline.c (setup_one_parameter): Instead fix it here by
9615         using fold_build1 instead of fold_convert and checking for
9616         error_mark_node.  Convert only if the conversion is necessary.
9617
9618 2007-07-02  Joseph Myers  <joseph@codesourcery.com>
9619
9620         * configure.ac: Check for .gnu_attribute on Power.
9621         * configure: Regenerate.
9622         * config/rs6000/rs6000.c (rs6000_file_start): If supported, output
9623         attribute for floating-point ABI.
9624
9625 2007-07-02  Ira Rosen  <irar@il.ibm.com>
9626
9627         PR tree-optimization/32230
9628         PR tree-optimization/32477
9629         * tree-vect-analyze.c (vect_analyze_data_refs): Fail if base 
9630         address is a constant.
9631
9632 2007-07-02  Richard Sandiford  <richard@codesourcery.com>
9633
9634         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*)
9635         (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*)
9636         (mipsisa64-*-elf*, mipsisa64el-*-elf*): Combine top-level
9637         stanzas.  Use the first part of the triplet to set MIPS_ISA_DEFAULT.
9638         Remove redundant setting of MASK_FLOAT64 and MASK_64BIT for the
9639         64-bit targets.  Add support for *-elfoabi*.
9640         * config/mips/t-isa3264 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Use
9641         different settings if $(tm_defines) does not select the EABI.
9642         (MULTILIB_EXCLUSIONS): Define in those circumstances.
9643         * config/mips/mips.h (MIPS_ISA_LEVEL_OPTION_SPEC): New macro.
9644         (MIPS_ARCH_OPTION_SPEC): Likewise.
9645         (MIPS_ISA_LEVEL_SPEC): Likewise.
9646         (OPTION_DEFAULT_SPECS): Use MIPS_ARCH_OPTION_SPEC.
9647         * config/mips/elfoabi.h: New file.
9648
9649 2007-07-02  Richard Guenther  <rguenther@suse.de>
9650
9651         * tree-flow.h (tree_ssa_useless_type_conversion_1): Rename to ...
9652         (useless_type_conversion_p): ... this.
9653         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Rename to ...
9654         (useless_type_conversion_p): ... this.
9655         * builtins.c (fold_builtin_memory_op): Rename
9656         tree_ssa_useless_type_conversion_1 to useless_type_conversion_p.
9657         * tree-cfg.c (verify_expr): Likewise.
9658         * tree-ssa-address.c (tree_ssa_useless_type_conversion_1): Likewise.
9659         * tree-ssa-ccp.c (ccp_fold): Likewise.
9660         * tree-ssa-copy.c (may_propagate_copy): Likewise.
9661         * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
9662         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
9663         * tree-ssa-loop-niter.c (refine_bounds_using_guard): Likewise.
9664         * tree-ssa-pre.c (eliminate): Likewise.
9665         * tree-ssa.c (delete_tree_ssa): Likewise.
9666         (tree_ssa_useless_type_conversion): Likewise.
9667         * tree.c (build2_stat): Likewise.
9668
9669 2007-07-01  Daniel Berlin  <dberlin@dberlin.org>
9670
9671         Fix PR tree-optimization/32571
9672         * tree-ssa-sccvn.c (visit_use): Shortcut copies to avoid
9673         simplifying them.
9674
9675 2007-07-01  Daniel Berlin  <dberlin@dberlin.org>
9676
9677         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle constants
9678         and other expected operations explicitly, change default to
9679         gcc_unreachable. 
9680
9681 2007-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
9682
9683         * config/arm/arm.c (arm_cannot_copy_insn_p): Do not expect a
9684         PARALLEL.
9685         * config/arm/arm.md (pic_add_dot_plus_four, pic_add_dot_plus_eight)
9686         (tls_load_dot_plus_eight): Move the label number into the unspec.
9687         * config/arm/thumb2.md (pic_load_dot_plus_four): Likewise.
9688
9689 2007-07-01  Andreas Schwab  <schwab@suse.de>
9690
9691         * dwarf2out.c (initial_return_save): Define only if used.
9692
9693 2007-07-01  Kenneth Zadeck <zadeck@naturalbridge.com>
9694
9695         Unreverting Richard's Revert of:
9696
9697         2007-06-27  Richard Sandiford  <richard@codesourcery.com>
9698
9699         * dce.c (deletable_insn_p_1): New function, split out from...
9700         (deletable_insn_p): ...here.  Only treat bare USEs and CLOBBERs
9701         specially, not those inside PARALLELs.  Remove BODY argument
9702         and adjust recursive call accordingly.
9703         (prescan_insns_for_dce): Update call to delete_insn_p.
9704
9705 2007-07-01  Vladimir Yanovsky  <yanov@il.ibm.com>
9706             Revital Eres  <eres@il.ibm.com>
9707
9708         * ddg.c (create_ddg_all_sccs): Fix missed
9709         initialization of scc_nodes.
9710
9711 2007-07-01  Uros Bizjak  <ubizjak@gmail.com>
9712
9713         PR middle-end/32559
9714         * fold-const.c (fold-binary) [PLUS_EXPR]: Convert ~X + X to 1 or
9715         X + ~X to 1 only for INTEGRAL_TYPE_P type.
9716
9717 2007-06-30  Joseph Myers  <joseph@codesourcery.com>
9718
9719         * configure.ac: Check for .gnu_attribute on MIPS.
9720         * configure, config.in: Regenerate.
9721         * config/mips/mips.c (mips_file_start): If supported, output
9722         attribute for floating-point ABI.
9723
9724 2007-06-30  Uros Bizjak  <ubizjak@gmail.com>
9725
9726         PR target/32433
9727         * config/i386/i386.md (ffssi2): Expand as ffs_cmove for TARGET_CMOVE.
9728         (ffs_cmove): New expander to expand using ctz pattern.
9729         (*ffs_cmove): Remove pattern.
9730         (*ffs_no_cmove): Enable only for !TARGET_CMOVE.
9731         (ffsdi2): Expand using ctz pattern.
9732         (*ffs_rex64): Remove pattern.
9733
9734 2007-06-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9735
9736         PR rtl-optimization/32296
9737         * pa.md (return): Delete pattern.
9738         (return_internal): Remove "(const_int 1)" from pattern.
9739         (epilogue): Use return_internal pattern for trivial returns.
9740         * pa-protos.h (hppa_can_use_return_insn_p): Delete declaration.
9741         * pa.c (hppa_can_use_return_insn_p): Delete function.  Include "df.h".
9742
9743 2007-06-30  Daniel Berlin  <dberlin@dberlin.org>
9744
9745         * tree-ssa-pre.c (is_exception_related): New function
9746         (can_value_number_operation): Use it.
9747
9748 2007-06-30  Daniel Berlin  <dberlin@dberlin.org>
9749         
9750         Fix PR tree-optimization/32540
9751         Fix PR tree-optimization/31651
9752
9753         * tree-ssa-sccvn.c: New file.
9754
9755         * tree-ssa-sccvn.h: Ditto.
9756         
9757         * tree-vn.c: Include tree-ssa-sccvn.h
9758         (val_expr_paid_d): Removed.
9759         (value_table): Ditto.
9760         (vn_compute): Ditto.
9761         (val_expr_pair_hash): Ditto.
9762         (val_expr_pair_expr_eq): Ditto.
9763         (copy_vuses_from_stmt): Ditto.
9764         (vn_delete): Ditto.
9765         (vn_init): Ditto.
9766         (shared_vuses_from_stmt): Ditto.
9767         (print_creation_to_file): Moved up.
9768         (sort_vuses): Ditto.
9769         (sort_vuses_heap): Ditto.
9770         (set_value_handle): Make non-static.
9771         (make_value_handle): Ditto.
9772         (vn_add): Rewritten to use sccvn lookups.
9773         (vn_add_with_vuses): Ditto.
9774         (vn_lookup): Ditto (and second argument removed).
9775         (vn_lookup_with_vuses): Ditto.
9776         (vn_lookup_or_add): Ditto (and second argument removed);
9777         (vn_lookup_or_add_with_vuses): Ditto.
9778         (vn_lookup_with_stmt): New.
9779         (vn_lookup_or_add_with_stmt): Ditto.
9780         (create_value_handle_for_expr): Ditto.
9781
9782         * tree-ssa-pre.c: Include tree-ssa-sccvn.h.
9783         (seen_during_translate): New function.
9784         (phi_trans_lookup): Use iterative_hash_expr, not vn_compute.
9785         (phi_trans_add): Ditto.
9786         (constant_expr_p): FIELD_DECL is always constant.
9787         (phi_translate_1): Renamed from phi_translate, add seen bitmap.
9788         Use constant_expr_p.
9789         Avoid infinite recursion on mutually valued expressions.
9790         Change callers of vn_lookup_or_add.
9791         (phi_translate): New function.
9792         (compute_antic_safe): Allow phi nodes.
9793         (create_component_ref_by_pieces): Update for FIELD_DECL change.
9794         (find_or_generate_expression): Rewrite slightly.
9795         (create_expression_by_pieces): Updated for vn_lookup_or_add
9796         change.
9797         Update VN_INFO for new names.
9798         (insert_into_preds_of_block): Update for new names.
9799         (add_to_exp_gen): New function.
9800         (add_to_sets): Use vn_lookup_or_add_with_stmt.
9801         (find_existing_value_expr): Rewrite to changed vn_lookup.
9802         (create_value_expr_from): Ditto, and use add_to_exp_gen.
9803         (try_look_through_load): Removed.
9804         (try_combine_conversion): Ditto.
9805         (get_sccvn_value): New function.
9806         (make_values_for_phi): Ditto.
9807         (make_values_for_stmt): Ditto.
9808         (compute_avail): Rewritten for vn_lookup_or_add changes and to use
9809         SCCVN.
9810         (init_pre): Update for SCCVN changes.
9811         (fini_pre): Ditto.
9812         (execute_pre): Ditto.
9813
9814         * tree-flow.h (make_value_handle): Declare.
9815         (set_value_handle): Ditto.
9816         (sort_vuses_heap): Ditto.
9817         (vn_lookup_or_add_with_stmt): Ditto.
9818         (vn_lookup_with_stmt): Ditto.
9819         (vn_compute): Remove.
9820         (vn_init): Ditto.
9821         (vn_delete): Ditto.
9822         (vn_lookup): Update arguments.
9823
9824         * Makefile.in (tree-ssa-pre.o): Add tree-ssa-sccvn.h
9825         (tree-vn.o): Ditto.
9826         (tree-ssa-sccvn.o): New.
9827         (OBJS-common): Add tree-ssa-sccvn.o
9828         
9829 2007-06-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9830
9831         PR c/4076
9832         * c-typeck.c (build_external_ref): Don't mark as used if called
9833         from itself.
9834         * calls.c (rtx_for_function_call): Likewise.
9835         
9836 2007-06-30  Richard Sandiford  <richard@codesourcery.com>
9837
9838         Revert:
9839
9840         2007-06-27  Richard Sandiford  <richard@codesourcery.com>
9841
9842         * dce.c (deletable_insn_p_1): New function, split out from...
9843         (deletable_insn_p): ...here.  Only treat bare USEs and CLOBBERs
9844         specially, not those inside PARALLELs.  Remove BODY argument
9845         and adjust recursive call accordingly.
9846         (prescan_insns_for_dce): Update call to delete_insn_p.
9847
9848 2007-06-30  Rask Ingemann Lambertsen <rask@sygehus.dk>
9849
9850         * combine.c (combine_validate_cost): New parameter NEWOTHERPAT.
9851         (try_combine): Move potential calls to undo_all() so they happen
9852         before we commit to using the combined insns.
9853
9854 2006-06-30  Jan Hubicka  <jh@suse.cz>
9855
9856         * loop-unroll.c (unroll_loop_runtime_iterations): Unshare newly emit
9857         code.
9858
9859 2006-06-30  Thomas Neumann  <tneumann@users.sourceforge.net>
9860
9861         * ipa.c (cgraph_postorder): Cast according to the coding conventions.
9862         (cgraph_remove_unreachable_nodes): Likewise.
9863         * ipa-cp.c (ipcp_propagate_stage): Use BOTTOM instead of integer 0.
9864         * ipa-inline.c (update_caller_keys): Cast according to the coding
9865         conventions.
9866         (cgraph_decide_recursive_inlining): Likewise.
9867         (cgraph_decide_inlining_of_small_function): Likewise.
9868         (try_inline): Likewise.
9869         (cgraph_decide_inlining_incrementally): Likewise.
9870         * ipa-pure-const.c (get_function_state): Likewise.
9871         (scan_function): Likewise.
9872         (analyze_function): Likewise.
9873         (static_execute): Likewise.
9874         * ipa-reference.c (scan_for_static_refs): Likewise.
9875         (merge_callee_local_info): Likewise.
9876         (analyze_function): Use type safe memory macros.
9877         (static_execute): Likewise. Cast according to the coding conventions.
9878         * ipa-type-escape.c (scan_for_regs): Cast according to the coding
9879         conventions.
9880         * ipa-utils.c (searchc): Likewise. Avoid using C++ keywords as variable
9881         names.
9882         (ipa_utils_reduced_inorder): Likewise. Use type safe memory macros.
9883         * ipa-utils.h (struct ipa_dfa_info): Avoid using C++ keywords as
9884         variable names.
9885
9886 2007-06-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9887
9888         PR middle-end/30024
9889         * emit-rtl.c (init_emit_once): Intilize const_tiny_rtx[0]
9890         for complex modes (both int and real).
9891
9892 2007-06-29  Jan Hubicka  <jh@suse.cz>
9893
9894         * cse.c: Rever accidentally comitted TODO_verify_rtl_sharing change.
9895
9896 2007-06-29  Jan Hubicka  <jh@suse.cz>
9897
9898         PR middle-end/32372
9899         * cse.c (cse_insn): Avoid invalid sharing in between register note and
9900         the insn pattern.
9901
9902 2007-06-29  Anatoly Sokolov <aesok@post.ru>
9903
9904         PR target/32335
9905         * config/avr/avr.c: Include dataflow header file.
9906         (expand_prologue): Adjust for prologue insn change.
9907         * config/avr/avr.md (call_prologue_saves): Only modify REG_SP once
9908         inside a insn.
9909
9910 2007-06-29  Richard Guenther  <rguenther@suse.de>
9911
9912         PR middle-end/32493
9913         * gimplify.c (gimplify_call_expr): Ignore variable argument parts
9914         during type verification.
9915
9916 2007-06-29  Jan Hubicka  <jh@suse.cz>
9917
9918         * recog.c (validate_change_rtx_1): Unshare TO argument.
9919
9920 2007-06-29  Uros Bizjak  <ubizjak@gmail.com>
9921
9922         PR tree-optimization/24659
9923         * tree-vect-transform.c (vectorizable_call): Handle
9924         (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
9925
9926         * config/i386/sse.md (vec_pack_sfix_v2df): New expander.
9927         * config/i386/i386.c (enum ix86_builtins)
9928         [IX86_BUILTIN_VEC_PACK_SFIX]: New constant.
9929         (struct bdesc_2arg) [__builtin_ia32_vec_pack_sfix]: New builtin
9930         description.
9931         (ix86_init_mmx_sse_builtins): Define all builtins with 2 arguments as
9932         const using def_builtin_const.
9933         (ix86_expand_binop_builtin): Remove bogus assert() that insn wants
9934         input operands in the same modes as the result.
9935         (ix86_builtin_vectorized_function): Handle BUILT_IN_LRINT.
9936
9937 2007-06-29  Richard Sandiford  <rsandifo@nildram.co.uk>
9938
9939         * df-problems.c (df_set_unused_notes_for_mw): Fix formatting.
9940         (df_set_dead_notes_for_mw): Likewise.
9941
9942 2007-06-29  Eric Botcazou  <ebotcazou@adacore.com>
9943
9944         * c-common.c (pointer_int_sum): Do the negation in sizetype.
9945
9946 2007-06-28  DJ Delorie  <dj@redhat.com>
9947
9948         * config/m32c/m32c.h (OVERRIDE_OPTIONS): Omit unneeded semicolon.
9949
9950 2007-06-28  Geoffrey Keating  <geoffk@apple.com>
9951
9952         * doc/invoke.texi (C++ Dialect Options): Document
9953         fvisibility-ms-compat.
9954         * c.opt (fvisibility-ms-compat): New.
9955
9956 2007-06-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9957
9958         PR tree-opt/32417
9959         * tree-affine.c (aff_combination_add_elt): Handle
9960         pointer addition specially.
9961
9962 2007-06-28  Jakub Jelinek  <jakub@redhat.com>
9963
9964         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Ensure
9965         decl is non-external for AIX ABI.
9966
9967 2007-06-28  David Edelsohn  <edelsohn@gnu.org>
9968
9969         * config/rs6000/predicates.md (current_file_function_operand):
9970         Ensure the symbol is non-external for AIX ABI.
9971
9972 2007-06-28  Nick Clifton  <nickc@redhat.com>
9973
9974         * common.opt (fipa-matrix-reorg): Add Optimization attribute.
9975         (fdce, fdse, fpredictive-commoning): Likewise.
9976
9977 2007-06-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9978
9979         PR other/31400
9980         * gcc.c (process_command): Recognize the new -static-libgfortran
9981         option.
9982
9983 2007-06-27  Rask Ingemann Lambertsen  <rask@sygehus.dk>
9984
9985         PR target/32418
9986         * config/m32c/m32c.c (m32c_eh_return_stackadj_rtx): Dataflow fix:
9987         Use a call clobbered hard reg instead of a pseudo reg.
9988
9989 2007-06-27  Kaz Kojima  <kkojima@gcc.gnu.org>
9990
9991         * config/sh/sh.md (load_gbr): Use correct operand constraint.
9992
9993 2007-06-27  Kaz Kojima  <kkojima@gcc.gnu.org>
9994
9995         PR target/32479
9996         * config/sh/sh.md (udivsi3): Don't wrap the sequence with
9997         REG_LIBCALL and REG_RETVAL notes.
9998         (divsi3, mulsi3): Likewise.
9999         (mulhisi3): Likewise.  Use emit_libcall_block.
10000         (umulhisi3, smulsi3_highpart, umulsi3_highpart_i): Likewise.
10001
10002 2007-06-27  Seongbae Park  <seongbae.park@gmail.com>
10003
10004         PR rtl-optimization/32481
10005         * combine.c (adjust_for_new_dest): Rescan the changed insn.
10006
10007 2007-06-27  Richard Sandiford  <richard@codesourcery.com>
10008
10009         * dce.c (deletable_insn_p_1): New function, split out from...
10010         (deletable_insn_p): ...here.  Only treat bare USEs and CLOBBERs
10011         specially, not those inside PARALLELs.  Remove BODY argument
10012         and adjust recursive call accordingly.
10013         (prescan_insns_for_dce): Update call to delete_insn_p.
10014
10015 2007-06-27  Richard Guenther  <rguenther@suse.de>
10016
10017         PR middle-end/32492
10018         * tree.h (fold_convertible_p): Declare.
10019         * fold-const.c (fold_convertible_p): New function.
10020         * gimplify.c (gimplify_call_expr): Use fold_convertible_p
10021         instead of lang_hooks.types_compatible_p.
10022
10023 2007-06-26  Jan Hubicka  <jh@suse.cz>
10024
10025         * fwprop.c (try_fwprop_subst): Use validate_unshare_change.
10026         * postreload.c (reload_cse_simplify_set): Instead of copying the rtx
10027         early use validate_unshare_change.
10028         (reload_combine): Likewise.
10029         * recog.c (change_t): New field unshare.
10030         (validate_change_1): Rename from validate_change; add argument unshare.
10031         (validate_change): Turn into wrapper of validate_change_1; update
10032         prototype for bools.
10033         (validate_unshare_change): New.
10034         (confirm_change_group): Unshare changes if asked for; avoid unnecesary
10035         calls of df_insn_rescan.
10036         * recog.h (validate_change): Replace ints by bools.
10037         (validate_unshare_change): Declare.
10038
10039 2007-06-26  Kenneth Zadeck <zadeck@naturalbridge.com>
10040
10041         * tree.def (VEC_WIDEN_MULT_LO_EXPR): Corrected string name.
10042         
10043 2007-06-26  Steve Ellcey  <sje@cup.hp.com>
10044
10045         * builtins.c (expand_builtin_next_arg): Change Pmode to ptr_mode.
10046
10047 2007-06-25  Jan Hubicka  <jh@suse.cz>
10048
10049         * ipa-inline.c (cgraph_mark_inline): Assert that we never inline
10050         uninlinable call.
10051         (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining,
10052         cgraph_decide_inlining_incrementally): Move uninlinability checks to
10053         places other call site specific checks are performed.
10054
10055 2007-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10056
10057         PR tree-opt/32421
10058         * tree-vect-transform.c (vectorizable_operation): Convert
10059         POINTER_PLUS_EXPR over to PLUS_EXPR.
10060
10061 2007-06-25  Chao-ying Fu  <fu@mips.com>
10062
10063         * doc/rtl.texi (Machine Modes): Document QQ, HQ, SQ, DQ, TQ,
10064         UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA, USA, UDA, and UTAmodes.
10065         Document MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
10066         Document GET_MODE_IBIT, and GET_MODE_FBIT.
10067
10068         * machmode.h (VECTOR_MODE_P): Test MODE_VECTOR_FRACT,
10069         MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
10070         (SCALAR_FRACT_MODE_P, SCALAR_UFRACT_MODE_P, ALL_SCALAR_FRACT_MODE_P,
10071         SCALAR_ACCUM_MODE_P, SCALAR_UACCUM_MODE_P, ALL_SCALAR_ACCUM_MODE_P,
10072         SIGNED_SCALAR_FIXED_POINT_MODE_P, UNSIGNED_SCALAR_FIXED_POINT_MODE_P,
10073         ALL_SCALAR_FIXED_POINT_MODE_P, FRACT_MODE_P, UFRACT_MODE_P,
10074         ALL_FRACT_MODE_P, ACCUM_MODE_P, UACCUM_MODE_P, ALL_ACCUM_MODE_P,
10075         SIGNED_FIXED_POINT_MODE_P, UNSIGNED_FIXED_POINT_MODE_P,
10076         ALL_FIXED_POINT_MODE_P): New define.
10077         (CLASS_HAS_WIDER_MODES_P): Test MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
10078         MODE_UACCUM.
10079         (GET_MODE_IBIT, GET_MODE_FBIT): New define.
10080
10081         * mode-classes.def (MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM,
10082         MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
10083         MODE_VECTOR_UACCUM): New mode classes.
10084
10085         * machmode.def: Document FRACT_MODE, UFRACT_MODE, ACCUM_MODE,
10086         UACCUM_MODE, ADJUST_IBIT, and ADJUST_FBIT.
10087         Add QQ, HQ, SQ, DQ, TQ, UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA,
10088         USA, UDA, and UTA.
10089
10090         * genmodes.c (struct mode_data): Add ibit and fbit fields.
10091         (blank_mode): Initialize ibit and fbit.
10092         (adj_ibit, adj_fbit): New to adjust ibit and fbit.
10093         (vector_class): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
10094         MODE_UACCUM.
10095         (new_adjust): Change required_class to required_class_from and
10096         required_class_to for testing within a range.
10097         (complete_mode): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
10098         MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
10099         MODE_VECTOR_UACCUM.
10100         (FRACT_MODE, UFRACT_MODE, ACCUM_MODE, UACCUM_MODE): New define.
10101         (make_fixed_point_mode): New.
10102         (_ADD_ADJUST): Change C to C1 and C2.
10103         (ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FLOAT_FORMAT): Change to
10104         use a range for machine classes.
10105         (ADJUST_IBIT, ADJUST_FBIT): New.
10106         (emit_insn_modes_h): Output defines of CONST_MODE_IBIT and
10107         CONST_MODE_FBIT.
10108         (emit_mode_adjustments): Handle MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
10109         MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
10110         Emit adjustment for ibit and fbit.
10111         (emit_mode_ibit, emit_mode_fbit): New.
10112         (emit_insn_modes_c): Add emit_mode_ibit and emit_mode_fbit.
10113
10114 2007-06-25  Nathan Froyd  <froydnj@codesourcery.com>
10115
10116         * config/rs6000/spe.md (*frob_ti_tf_2): Specify an input_operand
10117         as the source of the set.
10118
10119 2007-06-25  Roman Zippel <zippel@linux-m68k.org>
10120
10121         * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P,
10122         FP_REGNO_P): Use IN_RANGE.
10123         (REGNO_OK_FOR_DATA_P, REGNO_OK_FOR_FP_P): Remove.
10124         (REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): New.
10125         (DATA_REG_P): Use DATA_REGNO_P.
10126         (FP_REG_P): Use FP_REGNO_P.
10127         (ADDRESS_REG_P): Use ADDRESS_REGNO_P.
10128         * config/m68k/m68k.c (m68k_legitimate_base_reg_p): Use
10129         REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P.
10130
10131 2007-06-24  Jan Hubicka  <jh@suse.cz>
10132
10133         PR middle-end/30563
10134         * cgraphunit.c (cgraph_analyze_function): Fix ordering problem.
10135
10136 2007-06-24  Sebastian Pop  <sebpop@gmail.com>
10137
10138         PR middle-end/32461
10139         * fold-const.c (fold_binary): Strip nops of operand 0
10140         of BIT_NOT_EXPR before calling operand_equal_p.
10141         * testsuite/gcc.dg/tree-ssa/pr32461-1.c: New.
10142         * testsuite/gcc.dg/tree-ssa/pr32461-2.c: New.
10143
10144 2007-06-23  Mark Mitchell  <mark@codesourcery.com>
10145
10146         * doc/extend.texi: Document that dllimport and dllexport imply
10147         default visibility.
10148         * tree.c (handle_dll_attribute): Set DECL_VISIBILITY on the
10149         imported or exported declaration, including type declarations.
10150         * c-common.c (handle_visibility_attribute): Check for conflicts
10151         with dllimport/dllexport.
10152         (c_determine_visibility): Handle dllimport/dllexport as an
10153         explicit visibility atttribute.
10154
10155 2007-06-23  Richard Guenther  <rguenther@suse.de>
10156
10157         PR tree-optimization/16876
10158         PR middle-end/29478
10159         * tree.h (CALL_CANNOT_INLINE_P): New macro to access static_flag
10160         for CALL_EXPRs.
10161         * tree-inline.c (initialize_inlined_parameters): Do not call
10162         lang_hooks.tree_inlining.convert_parm_for_inlining.
10163         * cgraphbuild.c (initialize_inline_failed): Set inline failed
10164         reason for mismatched types.
10165         * gimplify.c (gimplify_call_expr): Verify the call expression
10166         arguments match the called function type signature.  Otherwise
10167         mark the call expression to be not considered for inlining
10168         using CALL_CANNOT_INLINE_P flag.
10169         * ipa-inline.c (cgraph_mark_inline): Honor CALL_CANNOT_INLINE_P on the
10170         edges call expression.
10171         (cgraph_decide_inlining_of_small_function): Likewise.
10172         (cgraph_decide_inlining): Likewise.
10173         * c-objc-common.h (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
10174         Remove define.
10175         * c-tree.h (c_convert_parm_for_inlining): Remove declaration.
10176         * c-typeck.c (c_convert_parm_for_inlining): Remove.
10177         * langhooks-def.h (lhd_tree_inlining_convert_parm_for_inlining):
10178         Remove declaration.
10179         (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING): Remove define.
10180         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining):
10181         Remove.
10182         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
10183         convert_parm_for_inlining member.
10184
10185 2007-06-23  Richard Earnshaw  <rearnsha@arm.com>
10186
10187         PR target/31152
10188         * arm.md (negscc): Match the correct operand for optimized LT0 test.
10189         Remove optimization for GT.
10190
10191 2007-06-23  Kenneth Zadeck <zadeck@naturalbridge.com>
10192
10193         PR middle-end/32437
10194         * dce.c (deletable_insn_p): Add extra parameter and recurse if insn
10195         is a PARALLEL.
10196         (prescan_insns_for_dce): Add extra parameter.
10197         
10198 2007-06-23  Jan Hubicka  <jh@suse.cz>
10199
10200         PR middle-end/31541
10201         * gimplify.c (mark_addressable): New function.
10202         (gimplify_modify_expr_rhs, gimplify_addr_expr, gimplify_expr): Use it.
10203
10204 2007-06-22  Uros Bizjak  <ubizjak@gmail.com>
10205
10206         PR middle-end/32374
10207         * expr.c (store_constructor): Do not clobber non-zeroed memory. 
10208
10209 2007-06-22  Uros Bizjak  <ubizjak@gmail.com>
10210
10211         PR target/32413
10212         * config/i386/i386.c (ix86_register_move_cost): Rise the cost of
10213         moves between MMX/SSE registers to at least 8 units to prevent
10214         ICE caused by non-tieable SI/HI/QImodes in SSE registers. 
10215
10216 2007-06-22  Uros Bizjak  <ubizjak@gmail.com>
10217
10218         * config/i386/i386.c (override_options): Correct x86_sahf
10219         setting condition.
10220
10221 2007-06-21  David Daney  <ddaney@avtrex.com>
10222
10223         PR target/32406
10224         * config/mips/mips.md (define_constants): Rename UNSPEC_EH_RECEIVER
10225         to UNSPEC_NONLOCAL_GOTO_RECEIVER globally.
10226         (exception_receiver): Renamed to ...
10227         (nonlocal_goto_receiver): ... this.
10228
10229 2007-06-22  Roman Zippel <zippel@linux-m68k.org>
10230
10231         * df-scan.c (df_read_modify_subreg_p): Use REGMODE_NATURAL_SIZE.
10232         (df_def_record_1): Set (DF_REF_READ_WRITE | DF_REF_PARTIAL) for
10233         partial register accesses.
10234
10235 2007-06-21  Adam Nemet  <anemet@caviumnetworks.com>
10236
10237         * fold-const.c (debug_fold_checksum): Move it under
10238         ENABLE_FOLD_CHECKING.
10239
10240 2007-06-21  Sebastian Pop  <sebpop@gmail.com>
10241
10242         PR middle-end/20623
10243         * tree.h (debug_fold_checksum): Declared.
10244         * fold-const.c (build_fold_addr_expr_with_type_1): New.
10245         (build_fold_addr_expr_with_type, build_fold_addr_expr): Use 
10246         build_fold_addr_expr_with_type_1.
10247         (fold_addr_expr, debug_fold_checksum): New.
10248         (fold_checksum_tree): Don't fold TREE_CHAIN of an SSA_NAME.
10249         (fold_unary, fold_comparison, split_address_to_core_and_offset):
10250         Use fold_addr_expr.
10251         
10252 2007-06-21  Sebastian Pop  <sebpop@gmail.com>
10253
10254         PR tree-optimization/19590
10255         * tree-vrp.c (adjust_range_with_scev): Set the range when the result
10256         of scev is a constant.
10257
10258 2007-06-21  Kenneth Zadeck <zadeck@naturalbridge.com>
10259
10260         * df-problems.c (df_note_bb_compute): Made computation of live
10261         info consistent with df_lr.
10262
10263 2007-06-21  Richard Guenther  <rguenther@suse.de>
10264
10265         PR tree-optimization/32453
10266         * tree-vrp.c (extract_range_from_assert): Build POINTER_PLUS_EXPR
10267         for pointer anti-range.
10268
10269 2007-06-21  H.J. Lu  <hongjiu.lu@intel.com>
10270
10271         * config/i386/i386.c (processor_target_table): Increase maximum
10272         skip from 7 byte to 10 byte for Pentium Pro, Core 2 Duo and
10273         default 64bit.
10274
10275         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Ensure 8
10276         byte alignment if > 8 byte alignment is preferred.
10277         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
10278
10279 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
10280
10281         PR tree-optimization/31866
10282         * tree-ssa-coalesce.c (create_outofssa_var_map): Do nothing
10283         if ASM_EXPR's input is not a SSA_NAME.
10284
10285         PR middle-end/32362
10286         * omp-low.c (lookup_decl_in_outer_ctx): Don't ICE if t is NULL,
10287         but decl is a global var, instead return decl.
10288         * gimplify.c (gimplify_adjust_omp_clauses_1): Add shared clauses
10289         even for is_global_var decls, if they are private in some outer
10290         context.
10291
10292 2007-06-21  Richard Guenther  <rguenther@suse.de>
10293
10294         PR tree-optimization/32451
10295         * tree-ssa-threadupdate.c (thread_single_edge): Fixup edge flags.
10296
10297 2007-06-21  Christian Bruel  <christian.bruel@st.com>
10298
10299         * config/sh/sh-protos.h (sh_loads_bankedreg_p): Declare.
10300         * config/sh/sh.c (sh_loads_bankedreg_p): New function.
10301         (push_regs): Changed saving order or banked registers.
10302         (sh_expand_epilogue): Likewise.
10303         * config/sh/sh.h (BANKED_REGISTER_P): New macro.
10304         (FIRST_BANKED_REG): Likewise.
10305         (LAST_BANKED_REG): Likewise.
10306         * config/sh/sh.md (banked) New attribute.
10307         (in_delay_slot): Check banked attribute.
10308         
10309 2007-06-20  Sebastian Pop  <sebpop@gmail.com>
10310
10311         PR tree-optimization/32075
10312         * tree-data-ref.c (subscript_dependence_tester_1, 
10313         analyze_miv_subscript, analyze_overlapping_iterations,
10314         add_distance_for_zero_overlaps, build_classic_dist_vector,
10315         subscript_dependence_tester_1, analyze_overlapping_iterations,
10316         subscript_dependence_tester, access_functions_are_affine_or_constant_p,
10317         compute_affine_dependence, compute_all_dependences): Pass loop_nest 
10318         to evolution_function_is_affine_multivariate_p.
10319
10320 2007-06-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
10321
10322         * df-scan.c (df_get_call_refs): Be prepared for MEMs inside CLOBBERs.
10323
10324 2007-06-20  Rask Ingemann Lambertsen  <rask@sygehus.dk>
10325
10326         PR target/32335
10327         * config/m32c/m32c.c (m32c_emit_epilogue): Use new HImode epilogue
10328         for TARGET_A16.
10329         * config/m32c/prologue.md (epilogue_exitd_16): New.
10330         (epilogue_reit_16): New.
10331         (epilogue_exitd): Rename to epilogue_exitd_24.
10332         (epilogue_reit): Rename to epilogue_reit_24.
10333
10334 2007-06-20  Seongbae Park  <seongbae.park@gmail.com>
10335             Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
10336
10337         * dbgcnt.def (global_alloc_at_func, global_alloc_at_reg):
10338         New counters.
10339         * haifa-sched.c (queue_to_ready): Don't requeue next insn
10340         if dbg_cnt (sched_insn) reaches the limit.
10341         (choose_ready): New parameter INSN_PTR and new return value.
10342         (schedule_block): Handle dbg_cnt (sched_insn). Handle
10343         the new return value from choose_ready.
10344         * global.c (global_aloc): New dbgcnt global_alloc_at_reg.
10345         (rest_of_handle_global_alloc): New global_alloc_at_func.
10346
10347 2007-06-20  Adam Nemet  <anemet@caviumnetworks.com>
10348
10349         PR tree-optimization/25737
10350         * tree.h (struct tree_struct_field_tag): Add new field alias_set.
10351         (SFT_NONADDRESSABLE_P, SFT_ALIAS_SET): New macros.
10352         * tree-flow.h (struct fieldoff): Add new field alias_set.
10353         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add new
10354         argument addressable_type.  Set alias_set of fieldoff.
10355         * tree-ssa-alias.c (create_sft): Add new argument alias_set.
10356         (create_overlap_variables_for): Pass alias_set from fieldoff to
10357         create_sft.
10358         * alias.c (get_alias_set): Use alias_set from SFT if set.
10359
10360 2007-06-20  Hui-May Chang  <hm.chang@apple.com>
10361
10362         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Print the size
10363         of a variable as an unsigned HOST_WIDE_INT integer.
10364
10365 2007-06-20  Zdenek Dvorak  <dvorakz@suse.cz>
10366
10367         PR rtl-optimization/32405
10368         * loop-iv.c (iv_get_reaching_def): Fail for partial defs.
10369
10370 2007-06-20  Jakub Jelinek  <jakub@redhat.com>
10371
10372         * Makefile.in (omega.o): Depend on $(DIAGNOSTIC_H).
10373
10374         PR middle-end/31959
10375         * builtins.c: Include diagnostic.h.
10376         (expand_builtin_expect): Make gcc_assert more permissive.
10377         * Makefile.in (builtins.o): Depend on $(DIAGNOSTIC_H).
10378
10379         PR inline-asm/32109
10380         * gimplify.c (gimplify_asm_expr): Issue error if type is addressable
10381         and !allows_mem.
10382
10383         PR middle-end/32285
10384         * calls.c (precompute_arguments): Also precompute CALL_EXPR arguments
10385         if ACCUMULATE_OUTGOING_ARGS.
10386
10387 2007-06-19  Rask Ingemann Lambertsen  <rask@sygehus.dk>
10388
10389         * config/m68hc11/m68hc11.c: Include dataflow header file.
10390         (m68hc11_reorg): Port to dataflow.
10391
10392 2007-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
10393
10394         * df.h (DF_FIRST_OPTIONAL_PROBLEM): Removed.
10395         (struct df_problem.free_blocks_on_set_blocks): New field.
10396         (struct dataflow.optional_p): New field.
10397         (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
10398         (df_live_set_all_dirty): New function.
10399         * df-scan.c (df_scan_alloc): Initialize optional_p.
10400         (problem_SCAN): Initialize free_blocks_on_set_blocks.
10401         * df-core.c (df_set_blocks): Removed use of
10402         DF_FIRST_OPTIONAL_PROBLEM.  Now uses
10403         df_problem.free_blocks_on_set_blocks to determine which blocks are
10404         recycled.
10405         (df_remove_problem): Removed use of DF_FIRST_OPTIONAL_PROBLEM.
10406         (df_finish_pass): Removed use of DF_FIRST_OPTIONAL_PROBLEM.  Now
10407         uses dataflow.optional_p to determine if problem should be
10408         deleted.
10409         (rest_of_handle_df_initialize): Only start live problem if 
10410         -02 or above.
10411         (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
10412         * df-problems.c (df_ru_alloc, df_rd_alloc, df_lr_alloc,
10413         df_live_alloc, df_urec_alloc, df_note_alloc): set optional_p.
10414         (problem_RU, problem_RD, problem_LR, problem_UREC, problem_CHAIN,
10415         problem_NOTE): Initialize free_blocks_on_set_blocks.
10416         (df_lr_bb_local_compute): Recompute luids if df_live problem is
10417         not active.
10418         (df_live_set_all_dirty, df_note_alloc): New function.
10419         * regrename.c (merge_overlapping_regs): Change DF_LIVE_* to
10420         df_get_live_*.
10421         * sched_ebb.c (compute_jump_reg_dependencies): Ditto.
10422         * postreload.c (reload_combine): Ditto.
10423         * cse.c (cse_extended_basic_block): Ditto.
10424         * regmove.c (mark_flags_life_zones): Ditto.
10425         * rtlfactoring.c (split_blocks_after_seqs, split_pattern_seq,
10426         erase_matching_seqs): Ditto.
10427         * bt-load.c (compute_defs_uses_and_gen): Ditto.
10428         * integrate (allocate_initial_values): Ditto.
10429         * combine.c (reg_dead_at_p): Ditto.
10430         * resource.c (mark_target_live_regs): Ditto.
10431         * sched-rgn.c (check_live_1, update_live_1): Ditto.
10432         * config/sh/sh.c (find_r0_life_regions): Ditto.
10433         * global.c (rest_of_handle_global_alloc): Only add back df_live
10434         for -O > 1.
10435         * local-alloc.c (rest_of_handle_local_alloc): Only remove
10436         df_live for -O > 1.
10437         * ifcvt.c (dead_or_predicable): Change DF_LIVE_* to
10438         df_get_live_*.
10439         (if_convert): Make sure df_live is there at -O == 1.
10440         (pass_if_after_combine): Cleanup flags.
10441         * init-regs.c (initialize_uninitialized_regs): Make sure df_live
10442         is there at -O == 1.
10443         
10444 2007-06-19  Seongbae Park  <seongbae.park@gmail.com>
10445
10446         * config/arm/arm.c (arm_get_frame_offsets): Set
10447         offsets->locals_base to avoid negative stack size.
10448         (thumb1_expand_prologue): Assert on negative stack size.
10449
10450 2007-06-19  Sebastian Pop  <sebpop@gmail.com>
10451
10452         PR tree-optimization/32367
10453         * tree-chrec.h (build_polynomial_chrec): Verify that the left hand side 
10454         of the chrec has no evolution in that loop.
10455         * testsuite/gcc.dg/tree-ssa/pr32367.c: New.
10456
10457 2007-06-19  Bob Wilson  <bob.wilson@acm.org>
10458
10459         * config/xtensa/xtensa.c: Include "df.h".
10460         (xtensa_builtin_saveregs): Use adjust_address instead of
10461         change_address.
10462         (xtensa_va_start): Invoke make_tree with sizetype for
10463         expand_builtin_saveregs and then convert the result to a pointer.
10464         Use POINTER_PLUS_EXPR.  Use size_int instead of build_int_cst.
10465         (xtensa_gimplify_va_arg_expr): Use size_int instead of build_int_cst.
10466         Subtract argument size from index value as integers and then use
10467         POINTER_PLUS_EXPR to add the result to the array address.
10468         
10469 2007-06-19  Rask Ingemann Lambertsen  <rask@sygehus.dk>
10470
10471         PR target/32335
10472         * config/m32c/m32c.c: Include dataflow header file.
10473         (m32c_emit_prologue): Adjust for prologue insn change.
10474         * config/m32c/prologue.md (prologue_enter_16): Only modify SP_REGNO
10475         once inside a PARALLEL. Assume frame size passed in operand 0
10476         includes space to save the fb register.
10477         (prologue_enter_24): Likewise.
10478         (epilogue_exitd): Only modify SP_REGNO once inside a PARALLEL.
10479
10480 2007-06-19  David Daney  <ddaney@avtrex.com
10481
10482         PR target/32313
10483         * config/mips/mips.md (cprestore): Mark $gp as used.
10484
10485 2007-06-19  Rask Ingemann Lambertsen  <rask@sygehus.dk>
10486
10487         PR target/32369
10488         * config/frv/frv.c (frv_ifcvt_modify_tests): Dataflow merge fix.
10489         (frv_ifcvt_modify_insn): Likewise.
10490
10491 2007-06-19  Richard Guenther  <rguenther@suse.de>
10492
10493         * tree-ssa-structalias.c (handle_ptr_arith): Make sure to
10494         only handle positive offsets that fit in a HOST_WIDE_INT.
10495
10496 2007-06-19  Uros Bizjak  <ubizjak@gmail.com>
10497
10498         * config/i386/i386.c (ix86_emit_swsqrtsf): Filter out infinity
10499         result of rsqrt insn for zero input argument to avoid NaN.
10500
10501 2007-06-19  Richard Guenther  <rguenther@suse.de>
10502
10503         PR middle-end/31950
10504         * tree-ssa-alias-warnings.c (ffan_walker): Punt on MTAGs.
10505
10506 2007-06-19  Jakub Jelinek  <jakub@redhat.com>
10507
10508         PR tree-optimization/32353
10509         * tree-ssa-structalias.c (set_uids_in_ptset): Also handle RESULT_DECL.
10510
10511 2007-06-19  Nick Clifton  <nickc@redhat.com>
10512
10513         * config/m32r/linux.h (LIB_SPEC): Always imply -lpthread for -pthread.
10514
10515 2007-06-18  Uros Bizjak  <ubizjak@gmail.com>
10516
10517         PR target/32389
10518         * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_VIRTUAL.
10519         * config/i386/i386.c (assign_386_stack_local): Assert that
10520         SLOT_VIRTUAL is valid only before virtual regs are instantiated.
10521         (ix86_expand_builtin) [IX86_BUILTIN_LDMXCSR, IX86_BUILTIN_STMXCSR]:
10522         Use SLOT_VIRTUAL stack slot instead of SLOT_TEMP.
10523         * config/i386/i386.md (truncdfsf2, truncxf<mode>2): Ditto.
10524
10525 2007-06-18  Steve Ellcey  <sje@cup.hp.com>
10526
10527         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): New.
10528
10529 2007-06-18  Seongbae Park  <seongbae.park@gmail.com>
10530
10531         PR rtl-optimization/32321
10532         * gcse.c (replace_store_insn): Update the note before
10533         calling emit_insn_after.
10534
10535 2007-06-18  Kenneth Zadeck <zadeck@naturalbridge.com>
10536
10537         PR middle-end/32355
10538         * gcse (rest_of_handle_gcse): Add call to df_finish_pass after
10539         cse_main.
10540         * df-problems.c (df_note_bb_compute): Fix dumping info.
10541         
10542 2007-06-18  Kazu Hirata  <kazu@codesourcery.com>
10543
10544         * config/m68k/m68k.c (m68k_expand_epilogue): Emit a return
10545         insn with emit_jump_insn.
10546
10547 2007-06-18  Uros Bizjak  <ubizjak@gmail.com>
10548
10549         PR tree-optimization/32383
10550         * targhooks.c (default_builtin_reciprocal): Add new bool argument.
10551         * targhooks.h (default_builtin_reciprocal): Update prototype.
10552         * target.h (struct gcc_target): Update builtin_reciprocal.
10553         * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Update description.
10554         * tree-ssa-math-opts (execute_cse_reciprocals): Skip statements
10555         where arg1 is not SSA_NAME.  Pass true to targetm.builtin_reciprocal
10556         when fndecl is in BUILT_IN_MD class.
10557         (execute_convert_to_rsqrt): Ditto.
10558
10559         * config/i386/i386.c (ix86_builtin_reciprocal): Update for new bool
10560         argument.  Convert IX86_BUILTIN_SQRTPS code only when md_fn is true.
10561         Convert BUILT_IN_SQRTF code only  when md_fn is false.
10562
10563 2007-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
10564
10565         * bt-load.c (move_btr_def): Fix the order of arguments
10566         to validate_replace_rtx.
10567
10568 2007-06-18  Nathan Sidwell  <nathan@codesourcery.com>
10569
10570         * config/m68k/m68k-devices.def: Add 54450..54455.
10571
10572 2007-06-17  Uros Bizjak  <ubizjak@gmail.com>
10573
10574         PR rtl-optimization/32366
10575         * simplify-rtx.c (simplify_unary_operation_1) [FLOAT_TRUNCATE,
10576         FLOAT_EXTEND]: Prevent non-scalar modes from entering
10577         significand_size.
10578
10579 2007-06-17  Kenneth Zadeck <zadeck@naturalbridge.com>
10580
10581         PR middle-end/32349
10582         * modulo-sched (generate_reg_moves): Added rescan parameter and if
10583         this is true, rescan insn being modified.
10584         (sms_schedule): Added rescan parameter.
10585         (rest_of_handle_sms): Moved freeing of dominance info to before
10586         getting out of cfg_layout.
10587         
10588 2007-06-17  Nathan Sidwell  <nathan@codesourcery.com>
10589
10590         * config/m68k/m68k.h (ISA_HAS_FF1, ISA_HAS_MVS_MVZ): New.
10591         * config/m68k/m68k.md: Use ISA_HAS_FF1 and ISA_HAS_MVS_MVZ as
10592         appropriate.
10593
10594         * config/m68k/m68k.c (all_isas): Remove FL_CF_FPU and
10595         FL_CF_EMAC from the entry for isac.
10596
10597         * config/m68k/predicates.md (const_call_operand): Adjust comment.
10598         (const_sibcall_operand): New.
10599         (sibcall_operand): Use it.
10600         * config/m68k/m68k.c (FL_FOR_isa_c): Not ISA_B compatible.
10601         (m68k_isas): ISAC does not imply FPU or EMAC.
10602         (override_options): Add ISA_C logic for symbolic jump & call.
10603
10604 2007-06-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
10605
10606         * config/sparc/sparc.c (sparc_vis_init_builtins): Retrieve the
10607         return mode from the builtin itself.
10608         (sparc_fold_builtin): Fix cast of zero constant.
10609
10610 2007-06-16  Uros Bizjak  <ubizjak@gmail.com>
10611
10612         * targhooks.c (default_builtin_reciprocal): New default target hook.
10613         * targhooks.h (default_builtin_reciprocal): Add prototype.
10614         * hooks.c (hook_tree_tree_bool_null): Remove hook.
10615         * hooks.h (hook_tree_tree_bool_null): Remove prototype.
10616         * target-def.h (TARGET_BUILTIN_RECIPROCAL): Define as
10617         default_builtin_reciprocal.
10618
10619 2007-06-16  Uros Bizjak  <ubizjak@gmail.com>
10620
10621         PR middle-end/31723
10622         * hooks.c (hook_tree_tree_bool_null): New hook.
10623         * hooks.h (hook_tree_tree_bool_null): Add prototype.
10624         * tree-pass.h (pass_convert_to_rsqrt): Declare.
10625         * passes.c (init_optimization_passes): Add pass_convert_to_rsqrt.
10626         * tree-ssa-math-opts.c (execute_cse_reciprocals): Scan for a/func(b)
10627         and convert it to reciprocal a*rfunc(b).
10628         (execute_convert_to_rsqrt): New function.
10629         (gate_convert_to_rsqrt): New function.
10630         (pass_convert_to_rsqrt): New pass definition.
10631         * target.h (struct gcc_target): Add builtin_reciprocal.
10632         * target-def.h (TARGET_BUILTIN_RECIPROCAL): New define.
10633         (TARGET_INITIALIZER): Initialize builtin_reciprocal with
10634         TARGET_BUILTIN_RECIPROCAL.
10635         * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Document.
10636
10637         * config/i386/i386.h (TARGET_RECIP): New define.
10638         * config/i386/i386.md (divsf3): Expand by calling ix86_emit_swdivsf
10639         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
10640         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
10641         and not optimizing for size.
10642         (*rcpsf2_sse): New insn pattern.
10643         (*rsqrtsf2_sse): Ditto.
10644         (rsqrtsf2): New expander.  Expand by calling ix86_emit_swsqrtsf
10645         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
10646         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
10647         and not optimizing for size.
10648         (sqrt<mode>2): Expand SFmode operands by calling ix86_emit_swsqrtsf
10649         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
10650         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
10651         and not optimizing for size.
10652         * config/i386/sse.md (divv4sf): Expand by calling ix86_emit_swdivsf
10653         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
10654         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
10655         and not optimizing for size.
10656         (*sse_rsqrtv4sf2): Do not export.
10657         (sqrtv4sf2): Ditto.
10658         (sse_rsqrtv4sf2): New expander.  Expand by calling ix86_emit_swsqrtsf
10659         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
10660         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
10661         and not optimizing for size.
10662         (sqrtv4sf2): Ditto.
10663         * config/i386/i386.opt (mrecip): New option.
10664         * config/i386/i386-protos.h (ix86_emit_swdivsf): Declare.
10665         (ix86_emit_swsqrtsf): Ditto.
10666         * config/i386/i386.c (IX86_BUILTIN_RSQRTF): New constant.
10667         (ix86_init_mmx_sse_builtins): __builtin_ia32_rsqrtf: New
10668         builtin definition.
10669         (ix86_expand_builtin): Expand IX86_BUILTIN_RSQRTF using
10670         ix86_expand_unop1_builtin.
10671         (ix86_emit_swdivsf): New function.
10672         (ix86_emit_swsqrtsf): Ditto.
10673         (ix86_builtin_reciprocal): New function.
10674         (TARGET_BUILTIN_RECIPROCAL): Use it.
10675         (ix86_vectorize_builtin_conversion): Rename from
10676         ix86_builtin_conversion.
10677         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Use renamed function.
10678         * doc/invoke.texi (Machine Dependent Options): Add -mrecip to
10679         "i386 and x86_64 Options" section.
10680         (Intel 386 and AMD x86_64 Options): Document -mrecip.
10681
10682 2007-06-15  Andrew Pinski <andrew_pinski@playstation.sony.com>
10683             Zdenek Dvorak <dvorakz@suse.cz>
10684             Richard Guenther  <rguenther@suse.de>
10685             Kaz Kojima  <kkojima@gcc.gnu.org>
10686
10687         * tree-vrp.c (compare_values_warnv): Convert val2 to
10688         the type of val1.
10689         (extract_range_from_assert): Create
10690         POINTER_PLUS_EXPR for pointer types.
10691         (extract_range_from_binary_expr): Handle
10692         only POINTER_PLUS_EXPR, MIN_EXPR, and MAX_EXPR
10693         for pointer types.
10694         * doc/c-tree.texi (POINTER_PLUS_EXPR): Document.
10695         * tree-ssa-loop-niter.c (split_to_var_and_offset): Handle
10696         POINTER_PLUS_EXPR as PLUS_EXPR.
10697         (number_of_iterations_lt_to_ne):
10698         For pointer types, use sizetype when
10699         creating MINUS_EXPR/PLUS_EXPRs.
10700         (assert_loop_rolls_lt): For pointer types, use sizetype when
10701         creating MINUS_EXPR/PLUS_EXPRs.
10702         (number_of_iterations_le): Likewise.
10703         (expand_simple_operations): POINTER_PLUS_EXPR are simple also.
10704         (derive_constant_upper_bound): Handle POINTER_PLUS_EXPR just
10705         like PLUS_EXPR and MINUS_EXPR.
10706         * tree-pretty-print.c (dump_generic_node): Handle
10707         POINTER_PLUS_EXPR.
10708         (op_prio): Likewise.
10709         (op_symbol_1): Likewise.
10710         * optabs.c (optab_for_tree_code): Likewise.
10711         * tree-ssa-loop-manip.c (create_iv): Handle pointer base
10712         specially.
10713         * tree-tailcall.c (process_assignment): Mention
10714         POINTER_PLUS_EXPR in a TODO comment.
10715         * tree.c (build2_stat): Assert when trying to use PLUS_EXPR or 
10716         MINUS_EXPR with a pointer. Also assert for POINTER_PLUS_EXPR
10717         not used with a pointer and an integer type.
10718         * tree-scalar-evolution.c (add_to_evolution_1): Convert the
10719         increment using chrec_convert_rhs instead of chrec_convert.
10720         (follow_ssa_edge_in_rhs): Handle POINTER_PLUS_EXPR like
10721         PLUS_EXPR except for the right hand side's type will be
10722         sizetype.
10723         (interpret_rhs_modify_stmt): Handle POINTER_PLUS_EXPR.
10724         (fold_used_pointer_cast): Kill.
10725         (pointer_offset_p): Kill.
10726         (fold_used_pointer): Kill.
10727         (pointer_used_p): Kill.
10728         (analyze_scalar_evolution_1 <case GIMPLE_MODIFY_STMT>): Don't
10729         call fold_used_pointer.
10730         (instantiate_parameters_1): Convert the increment
10731         using chrec_convert_rhs instead of chrec_convert.
10732         Handle POINTER_PLUS_EXPR as PLUS_EXPR.
10733         * builtins.c (get_pointer_alignment): Handle POINTER_PLUS_EXPR
10734         instead of PLUS_EXPR.
10735         (expand_builtin_strcat): Create a POINTER_PLUS_EXPR instead of
10736         PLUS_EXPR for pointers.
10737         (std_gimplify_va_arg_expr): Likewise.
10738         (fold_builtin_memory_op): Likewise.
10739         (fold_builtin_strstr): Likewise.
10740         (fold_builtin_strchr): Likewise.
10741         (fold_builtin_strrchr): Likewise.
10742         (fold_builtin_strpbrk): Likewise.
10743         (expand_builtin_memory_chk): Likewise.
10744         (fold_builtin_memory_chk): Likewise.
10745         (std_expand_builtin_va_start): Use
10746         sizetype for the call to make_tree and then convert
10747         to the pointer type.
10748         (fold_builtin_memchr): Use POINTER_PLUS_EXPR
10749         instead of PLUS_EXPR for adding to a pointer.
10750         (std_gimplify_va_arg_expr): Use fold_build2 for
10751         the creating of POINTER_PLUS_EXPR.  For the BIT_AND_EXPR, cast
10752         the operands to sizetype first and then cast the BIT_AND_EXPR
10753         back to the pointer type.
10754         * fold-const.c (build_range_check): Handle pointer types
10755         specially.
10756         (extract_array_ref): Look for POINTER_PLUS_EXPR instead
10757         of PLUS_EXPR's. Make sure the offset is converted to
10758         sizetype.
10759         (try_move_mult_to_index): Strip the NOPs from the offset.
10760         Remove code argument and replace all uses with PLUS_EXPR.
10761         (fold_to_nonsharp_ineq_using_bound): Handle pointer types
10762         specially. Don't use a pointer type for MINUS_EXPR.
10763         (fold_unary): Handle for (T1)(X op Y),
10764         only p+ as that is the only as that can be handled for
10765         binary operators now.
10766         (fold_binary <case POINTER_PLUS_EXPR>): Add folding of
10767         POINTER_PLUS_EXPR.
10768         <case PLUS_EXPR>: Add folding of PTR+INT into
10769         PTR p+ INT.
10770         Don't call try_move_mult_to_index.
10771         <case MINUS_EXPR>: Fold (PTR0 p+ A) - (PTR1 p+ B)
10772         into (PTR0 - PTR1) + (A - B). Fold (PTR0 p+ A) - PTR1 into
10773         (PTR0 - PTR1) + A iff (PTR0 - PTR1) simplifies.
10774         Don't call try_move_mult_to_index.
10775         (tree_expr_nonnegative_warnv_p): Handle POINTER_PLUS_EXPR.
10776         (tree_expr_nonzero_p): Likewise.
10777         (fold_indirect_ref_1): Look at POINTER_PLUS_EXPR instead
10778         of PLUS_EXPR for the complex expression folding.
10779         * tree-chrec.c (chrec_fold_plus_poly_poly): If the
10780         first chrec is a pointer type, then the second should
10781         be sizetype and not the first's type.
10782         For POINTER_PLUS_EXPR, use a different right hand side type.
10783         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
10784         (chrec_fold_plus_1): For POINTER_PLUS_EXPR, use a
10785         different right hand side type.
10786         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
10787         (chrec_fold_plus): For pointer types, use POINTER_PLUS_EXPR
10788         instead of PLUS_EXPR.
10789         When either operand is zero, convert the other operand.
10790         (chrec_apply): Use chrec_convert_rhs
10791         on the argument x instead of chrec_convert.
10792         (reset_evolution_in_loop): For pointer types, the new_evol
10793         should be sizetype.
10794         (convert_affine_scev): For POINTER_PLUS_EXPR, use a
10795         different right hand side type.
10796         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
10797         (chrec_convert_rhs): New function.
10798         (chrec_convert_aggressive): For POINTER_PLUS_EXPR, use a
10799         different right hand side type.
10800         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
10801         * tree-chrec.h (chrec_convert_rhs): New prototype.
10802         (build_polynomial_chrec): For pointer types, the right hand
10803         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Look for
10804         POINTER_PLUS_EXPR instead of PLUS_EXPR's.
10805         Remove subtraction case as it is always addition now.
10806         Make sure the offset is converted to sizetype.
10807         (fold_stmt_r): Don't handle PLUS_EXPR/MINUS_EXPR specially.
10808         Handle POINTER_PLUS_EXPR like PLUS_EXPR was handled before.
10809         * tree-ssa-loop-ivopts.c (determine_base_object): Abort for 
10810         PLUS_EXPR in pointer type.
10811         Handle POINTER_PLUS_EXPR.
10812         (tree_to_aff_combination): Likewise.
10813         (force_expr_to_var_cost): Likewise.
10814         (force_expr_to_var_cost): Likewise. Create a POINTER_PLUS_EXPR
10815         instead of PLUS_EXPR for pointers.
10816         * c-format.c (check_format_arg): Handle POINTER_PLUS_EXPR
10817         instead of PLUS_EXPR of pointer types.
10818         * tree-stdarg.c (va_list_counter_bump): Handle POINTER_PLUS_EXPR
10819         as PLUS_EXPR.
10820         (check_va_list_escapes): Likewise.
10821         (check_all_va_list_escapes): Likewise.
10822         * dwarf2out.c (loc_descriptor_from_tree_1):
10823         Handle POINT_PLUS_EXPR as a PLUS_EXPR.
10824         * expr.c (expand_expr_real_1): Handle POINTER_PLUS_EXPR.
10825         (string_constant): Likewise.
10826         * tree-ssa-address.c (tree_mem_ref_addr): When adding
10827         the offset to the base, use POINTER_PLUS_EXPR.
10828         (add_to_parts): Convert the index to sizetype.
10829         (create_mem_ref): Create A POINTER_PLUS_EXPR for the one case.
10830         * matrix-reorg.c (collect_data_for_malloc_call): Stmt
10831         will now only be either INDIRECT_REF and POINTER_PLUS_EXPR.
10832         Offset only holds something for PLUS_EXPR.
10833         (ssa_accessed_in_tree): Handle POINTER_PLUS_EXPR just as
10834         a PLUS_EXPR.
10835         (analyze_transpose): POINTER_PLUS_EXPR will only show up now
10836         and not PLUS_EXPR.
10837         (analyze_accesses_for_modify_stmt): Likewise.
10838         Remove comment about the type being integral type as it is
10839         wrong now.
10840         (can_calculate_expr_before_stmt): Handle POINTER_PLUS_EXPR as
10841         PLUS_EXPR.
10842         (transform_access_sites): POINTER_PLUS_EXPR will only show up now
10843         and not PLUS_EXPR.
10844         Correct the type which the artimentic is done in (is now
10845         sizetype).
10846         Reindent one loop.
10847         * tree-data-ref.c (split_constant_offset): Handle
10848         POINTER_PLUS_EXPR
10849         * tree-affine.c (tree_to_aff_combination): Likewise.
10850         * c-typeck.c (build_unary_op): For pointers create the increment
10851         as a sizetype. Create a POINTER_PLUS_EXPR instead of PLUS_EXPR
10852         for pointers.
10853         * gimplify.c (gimplify_self_mod_expr): Create a
10854         POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
10855         (gimplify_omp_atomic_fetch_op): Handle POINTER_PLUS_EXPR.
10856         * tree.def (POINTER_PLUS_EXPR): New tree code.
10857         * tree-predcom.c (ref_at_iteration): If we have a pointer
10858         type do the multiplication in sizetype.
10859         * tree-mudflap.c (mf_xform_derefs_1): Create a
10860         POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
10861         * tree-ssa-forwprop.c 
10862         (forward_propagate_addr_into_variable_array_index):
10863         Don't expect there to be a cast for the index as that
10864         does not exist anymore.
10865         (forward_propagate_addr_expr_1): Check for POINTER_PLUS_EXPR
10866         instead of PLUS_EXPR.
10867         Don't check for the first operand of the POINTER_PLUS_EXPR
10868         was the index as it cannot be.
10869         Call forward_propagate_addr_into_variable_array_index with
10870         the SSA_NAME instead of the statement.
10871         * varasm.c (const_hash_1): Handle POINTER_PLUS_EXPR.
10872         (compare_constant): Likewise.
10873         (copy_constant): Likewise.
10874         (compute_reloc_for_constant): Likewise.
10875         (output_addressed_constants): Likewise.
10876         (initializer_constant_valid_p): Likewise.
10877         * tree-ssa.c (tree_ssa_useless_type_conversion_1):
10878         Convert the MIN/MAX of the inner type to the outer
10879         type before comparing them.
10880         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Handle
10881         POINTER_PLUS_EXPR instead of PLUS_EXPR.
10882         (issue_prefetch_ref): Create a POINTER_PLUS_EXPR instead
10883         of PLUS_EXPR for pointers.
10884         * tree-inline.c (estimate_num_insns_1): Handle
10885         POINTER_PLUS_EXPR.
10886         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): 
10887         Create a POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
10888         (bump_vector_ptr): Create a POINTER_PLUS_EXPR
10889         instead of PLUS_EXPR for the pointer increment statement.
10890         (vect_update_ivs_after_vectorizer): For pointer types, create
10891         POINTER_PLUS_EXPR instead of PLUS_EXPR and also create
10892         MULT_EXPR in sizetype.
10893         (vect_gen_niters_for_prolog_loop): Add a cast when creating
10894         byte_misalign.
10895         * tree-object-size.c (plus_expr_object_size): Handle
10896         POINTER_PLUS_EXPR instead of PLUS_EXPR.  Removing all the extra
10897         code which is trying to figure out which side is a pointer and 
10898         is the index.
10899         (check_for_plus_in_loops_1): Likewise.
10900         (check_for_plus_in_loops): Likewise.
10901         * c-common.c (pointer_int_sum): Create a
10902         POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
10903         * tree-ssa-structalias.c (handle_ptr_arith): Handle
10904         only POINTER_PLUS_EXPR.  Removing all the extra
10905         code which is trying to figure out which side is a pointer and 
10906         is the index.
10907         * tree-cfg.c (verify_expr): Add extra checking for pointers and
10908         PLUS_EXPR and MINUS_EXPR.
10909         Also add checking to make sure the operands of POINTER_PLUS_EXPR
10910         are correct.
10911         * config/frv/frv.c (frv_expand_builtin_va_start): Use sizetype
10912         with make_tree, instead of a pointer type.
10913         * config/s390/s390.c (s390_va_start): Use POINTER_PLUS_EXPR
10914         for pointers instead of PLUS_EXPR.
10915         (s390_gimplify_va_arg): Likewise.
10916         * config/spu/spu.c (spu_va_start): Create POINTER_PLUS_EXPR
10917         instead of PLUS_EXPR when doing addition on pointer
10918         types.  Use sizetype for the second operand.
10919         (spu_gimplify_va_arg_expr): Likewise.
10920         * config/sparc/sparc.c (sparc_gimplify_va_arg): Use 
10921         POINTER_PLUS_EXPR instead of PLUS_EXPR when the operand was
10922         a pointer.  Don't create a BIT_AND_EXPR for pointer types.
10923         * config/i386/i386.c (ix86_va_start): Use POINTER_PLUS_EXPR
10924         for the pointer addition and also use size_int/sizetype
10925         for the offset.
10926         (ix86_gimplify_va_arg): Likewise.
10927         Perform BIT_AND_EXPR on sizetype arguments.
10928         * config/sh/sh.c (sh_va_start): Call make_tree with sizetype
10929         and convert its result to a pointer type.  Use POINTER_PLUS_EXPR
10930         for the pointer additions and also use size_int for the offsets.
10931         (sh_gimplify_va_arg_expr): Use POINTER_PLUS_EXPR for the pointer
10932         additions and also use size_int for the offsets.  Perform
10933         BIT_AND_EXPR on sizetype arguments.
10934         * config/ia64/ia64.c (ia64_gimplify_va_arg): Use
10935         POINTER_PLUS_EXPR for pointers and create the
10936         BIT_AND_EXPR in sizetype.
10937         * config/rs6000/rs6000.c (rs6000_va_start): Use POINTER_PLUS_EXPR
10938         instead of PLUS_EXPR for pointer addition.
10939         (rs6000_va_start): Likewise.
10940         Also use sizetype for the offset.
10941         * config/pa/pa.c (reloc_needed): Handle POINTER_PLUS_EXPR
10942         as PLUS_EXPR/MINUS_EXPR.
10943         (hppa_gimplify_va_arg_expr): Don't create MINUS_EXPR or
10944         PLUS_EXPR for pointers, instead use POINTER_PLUS_EXPR.
10945         Don't use BIT_AND_EXPR on a pointer type, convert the
10946         expression to sizetype first.
10947         * config/mips/mips.c (mips_va_start): Use POINTER_PLUS_EXPR
10948         for pointers.
10949         (mips_gimplify_va_arg_expr): Likewise.
10950         Don't create BIT_AND_EXPR in a pointer type.
10951
10952 2007-06-15  Eric Christopher  <echristo@apple.com>
10953
10954         * config.gcc (i?86-*-darwin*): Add t-crtfm and t-crtpc.
10955         (x86_64-*-darwin*): Ditto.
10956         * config/i386/darwin.h (CRTEND_SPEC): New. Add support
10957         for above.
10958
10959 2007-06-15  Matthew Wilcox <matthew@wil.cx>
10960
10961         * doc/extend.texi: Document behavior of __attribute__((aligned))
10962         on typedefs.
10963
10964 2007-06-15  Mark Mitchell  <mark@codesourcery.com>
10965
10966         * rtlanal.c (note_stores): Improve documentation.
10967
10968 2007-06-15  Bernd Schmidt  <bernd.schmidt@analog.com>
10969
10970         * config/bfin/elf.h (ASM_GENERATE_INTERNAL_LABEL,
10971         LOCAL_LABEL_PREFIX): Delete.
10972         * config/bfin/bfin.c (TARGET_ASM_INTERNAL_LABEL): Delete.
10973         (bfin_internal_label): Delete.
10974
10975 2007-06-15  Uros Bizjak  <ubizjak@gmail.com>
10976
10977         * libgcc2.c (CEXT): When compiling L_multc3 and L_divtc3,
10978         define to "l" if LIBGCC_LONG_DOUBLE_SIZE == 128,
10979         otherwise define to LIBGCC2_TF_CEXT.
10980         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): New define.
10981         (LIBGCC_TF_CEXT): Ditto.
10982         (TF_SIZE): Ditto.
10983
10984 2007-06-14  Seongbae Park  <seongbae.park@gmail.com>
10985
10986         PR rtl-optimization/32339
10987         * df-scan.c (df_uses_record): Don't modify flags but just add to
10988         it for df_ref_record.
10989
10990 2007-06-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10991
10992         * tree-mudflap.c: Fix whitespace issues.
10993
10994 2007-06-15  Kazu Hirata  <kazu@codesourcery.com>
10995
10996         * config/m68k/m68k.c (ASM_DOT, ASM_DOTW, ASM_DOTL): Remove.
10997
10998 2007-06-14  Eric Christopher  <echristo@apple.com>
10999
11000         * config/i386/sse.md (movdi_to_sse): Rewrite body.
11001         (movv4sf): Use gcc_unreachable instead of abort.
11002
11003 2007-06-14  Uros Bizjak  <ubizjak@gmail.com>
11004
11005         PR target/32268
11006         * config/i386/sfp-machine.h (CMPtype): New define.
11007         (mach stubs): Use CMPtype instead of int as a return type.
11008
11009 2007-06-14  Uros Bizjak  <ubizjak@gmail.com>
11010
11011         * config/soft-fp/eqdf2.c, config/soft-fp/eqsf2.c,
11012         config/soft-fp/eqtf2.c, config/soft-fp/gedf2.c,
11013         config/soft-fp/gesf2.c, config/soft-fp/getf2.c,
11014         config/soft-fp/ledf2.c, config/soft-fp/lesf2.c,
11015         config/soft-fp/letf2.c, config/soft-fp/unorddf2.c,
11016         config/soft-fp/unordsf2.c, config/soft-fp/unordtf2.c,
11017         config/soft-fp/soft-fp.h: Update from glibc CVS.
11018
11019 2007-06-14  Bernd Schmidt  <bernd.schmidt@analog.com>
11020
11021         * config/bfin/uclinux.h (MFWRAP_SPEC): New.
11022
11023 2007-06-14  Rask Ingemann Lambertsen  <rask@sygehus.dk>
11024
11025         PR target/32341
11026         * config/v850/v850.c: Include dataflow header file.
11027         (substitute_ep_register): Fix typo.
11028
11029 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
11030
11031         * configure.ac: Fix earlier checkin.
11032         * configure: Regenerated.
11033
11034 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
11035
11036         * acinclude.m4 (gcc_AC_CHECK_PROG_VER): Remove.
11037         * aclocal.m4: Regenerate.
11038         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS,
11039         ACX_PROG_CC_WARNINGS_ARE_ERRORS,
11040         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_CHECK_PROG_VER.
11041         * configure: Regenerate.
11042         * Makefile.in (LOOSE_WARN): Subst loose_warn.
11043
11044         * Makefile.in (quickstrap): Build libgcc too.
11045
11046 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
11047
11048         * configure.ac: Add --enable-checking=df.  Explicitly mention that
11049         the variables are initialized as for "release".
11050         * df-core.c: Use it.
11051         * configure: Regenerate.
11052         * config.in: Regenerate.
11053
11054 2007-06-14  Bob Wilson  <bob.wilson@acm.org>
11055
11056         * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use
11057         validate_replace_rtx instead of replace_rtx.
11058         (xtensa_expand_prologue): Call df_insn_rescan after replace_rtx.
11059
11060 2007-06-14  Danny Smith  <dannysmith@users.sourceforge.net>
11061
11062         * config/i386/cygming.h (DWARF_FRAME_REGNUM): Define.
11063         (DWARF2_UNWIND_INFO): Override default if configured with
11064         SJLJ EH disabled.
11065         * config/i386/cygwin.h (STARTFILE_SPEC): Add crtbegin.o.
11066         (ENDFILE_SPEC): Add crtend.o.
11067         * config/i386/mingw32.h (STARTFILE_SEC): Add crtbegin.o.
11068         (ENDFILE_SPEC): Add crtend.o.
11069         (TARGET_USE_JCR_SECTION): Define.
11070         (MD_UNWIND_SUPPORT): Define for 32-bit target.
11071
11072         * config/i386/cygming-crtbegin.c: New file.
11073         * config/i386/cygming-crtend.c: New file.
11074
11075 2007-06-14  Pascal Obry Pascal Obry  <obry@adacore.com>
11076
11077         * config/i386/w32-unwind.h: New file.
11078
11079 2007-06-13  Eric Christopher  <echristo@apple.com>
11080
11081         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Don't let
11082         the user set a value below STACK_BOUNDARY.
11083
11084 2007-06-13  Thiemo Seufer  <ths@networkno.de>
11085
11086         * config/mips/linux.h, config/mips/linux64.h (LIB_SPEC): Always
11087         imply -lpthread for -pthread.
11088
11089 2007-06-13  Kazu Hirata  <kazu@codesourcery.com>
11090
11091         * basic-block.h: Remove the prototype for
11092         free_basic_block_vars.
11093         * cfglayout.h: Remove the prototype for
11094         insn_locators_initialize.
11095         * tree.h: Remove the prototype for emit_line_note.
11096
11097         * tree-ssa-pre.c (mergephitemp): Remove.
11098         (init_pre): Don't use mergephitemp.
11099
11100 2007-06-13  Eric Christopher  <echristo@apple.com>
11101
11102         * config/i386/i386.c (override_options): If we've specified
11103         an arch then don't use TARGET_SUBTARGET_ISA_DEFAULTs.
11104
11105 2007-06-13  Bob Wilson  <bob.wilson@acm.org>
11106
11107         * df-scan.c (df_get_entry_block_def_set): Check if STATIC_CHAIN_REGNUM
11108         is defined.
11109
11110 2007-06-13  Bernd Schmidt  <bernd.schmidt@analog.com>
11111
11112         * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Use gen_frame_mem.
11113         * config/bfin/bfin.md (UNSPEC_VOLATILE_STORE_EH_HANDLER): New constant.
11114         (eh_store_handler): New pattern.
11115         (eh_return): Emit it instead of a plain move.
11116
11117 2007-06-13  Uros Bizjak  <ubizjak@gmail.com>
11118
11119         * config/i386/i386.c (ix86_init_mmx_sse_builtins)
11120         [__builtin_infq, __builtin_fabsq]: Define usign def_builtin.
11121         [__builtin_ia32_rsqrtps, __builtin_ia32_rsqrtss]: Define using
11122         def_builtin_const.
11123
11124 2007-06-13  Bernd Schmidt  <bernd.schmidt@analog.com>
11125
11126         * config/bfin/bfin.c (gen_one_bundle): Delete unused local variables.
11127         (find_next_insn_start, find_load): New functions.
11128         (bfin_reorg): Use them to deal with the fact that parallel insns are
11129         no longer represented as a SEQUENCE.
11130
11131 2007-06-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
11132
11133         * config/sparc/sparc.c (sparc_override_options): Initialize
11134         fpu mask correctly.
11135
11136 2007-06-13  Dave Korn  <dave.korn@artimi.com>
11137
11138         * config/i386/i386.c (ix86_eax_live_at_start_p): Use
11139         df_get_live_out.
11140
11141 2007-06-13  Kazu Hirata  <kazu@codesourcery.com>
11142
11143         * auto-inc-dec.c, c-incpath.c, config/c4x/libgcc.S,
11144         config/sh/divcost-analysis, dbgcnt.def, df-core.c,
11145         df-problems.c, df-scan.c, df.h, dominance.c, dse.c, regstat.c,
11146         tree-data-ref.c, tree-ssa-loop-im.c, tree-ssa-loop-prefetch.c,
11147         tree-vect-transform.c: Fix comment typos.  Follow spelling
11148         conventions.
11149
11150 2007-06-12  Seongbae Park  <seongbae.park@gmail.com>
11151
11152        * df-scan.c (df_get_exit-block_use_set): Always add the stack pointer
11153        to the exit block use set.
11154        (df_insn_delete, df_insn_rescan): Fixed spelling of "deferring". 
11155        * gcse.c (cpro_jump): Don't emit barrier in cfglayout mode.
11156        * config/sparc/sparc.c (sparc_check_64): Check df != NULL.
11157
11158 2007-06-12  Seongbae Park  <seongbae.park@gmail.com>
11159
11160         * opts.c (common_handle_option): Handle new option -fdbg-cnt-list.
11161         * dbgcnt.c (dbg_cnt_set_limit_by_name): Return value
11162         to indicate an error.
11163         (dbg_cnt_process_single_pair, dbg_cnt_list_all_counters):
11164         New functions.
11165         (dbg_cnt_process_opt): Print an error on a bad argument.
11166         * dbgcnt.h (dbg_cnt_list_all_counters): New function declaration.
11167         * common.opt (-fdbg-cnt-list): New.
11168         * doc/invoke.texi (-fdbg-cnt-list,-fdbg-cnt=): New.
11169
11170 2007-06-12  Eric Botcazou  <ebotcazou@adacore.com>
11171
11172         * tree-ssa-alias.c (finalize_ref_all_pointers): Clear pt_anything
11173         flag on ref-all pointers.
11174
11175 2007-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11176
11177         PR middle-end/31579
11178         * expr.c (expand_expr_addr_expr_1): Call expand_expr
11179         for the offset with the modifier as EXPAND_INITIALIZER
11180         if the modifier is EXPAND_INITIALIZER.
11181         (expand_expr_real_1 <case INTEGER_CST>): Don't force to
11182         a register if we had an overflow.
11183
11184 2007-06-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11185
11186         * real.c (real_isfinite): New.
11187         (real_sqrt): Use it.
11188         * real.h (real_isfinite): New.
11189         * builtins.c: Use it.
11190
11191 2007-06-12  Ian Lance Taylor  <iant@google.com>
11192             Daniel Berlin  <dberlin@dberlin.org>
11193
11194         PR libstdc++/29286
11195         * tree.def: Add CHANGE_DYNAMIC_TYPE_EXPR.
11196         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Define.
11197         (CHANGE_DYNAMIC_TYPE_LOCATION): Define.
11198         (DECL_NO_TBAA_P): Define.
11199         (struct tree_decl_common): Add no_tbaa_flag field.
11200         * tree-ssa-structalias.c (struct variable_info): Add
11201         no_tbaa_pruning field.
11202         (new_var_info): Initialize no_tbaa_pruning field.
11203         (unify_nodes): Copy no_tbaa_pruning field.
11204         (find_func_aliases): Handle CHANGE_DYNAMIC_TYPE_EXPR.
11205         (dump_solution_for_var): Print no_tbaa_pruning flag.
11206         (set_uids_in_ptset): Add no_tbaa_pruning parameter.  Change all
11207         callers.
11208         (compute_tbaa_pruning): New static function.
11209         (compute_points_to_sets): Remove CHANGE_DYNAMIC_TYPE_EXPR nodes.
11210         Call compute_tbaa_pruning.
11211         * tree-ssa-alias.c (may_alias_p): Test no_tbaa_flag for pointers.
11212         * gimplify.c (gimplify_expr): Handle CHANGE_DYNAMIC_TYPE_EXPR.
11213         * gimple-low.c (lower_stmt): Likewise.
11214         * tree-gimple.c (is_gimple_stmt): Likewise.
11215         * tree-ssa-operands.c (get_expr_operands): Likewise.
11216         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
11217         * tree-inline.c (estimate_num_insns_1): Likewise.
11218         (copy_result_decl_to_var): Likewise.
11219         * expr.c (expand_expr_real_1): Likewise.
11220         * tree-pretty-print.c (dump_generic_node): Likewise.
11221         * tree-inline.c (copy_decl_to_var): Copy DECL_NO_TBAA_P flag.
11222         * omp-low.c (omp_copy_decl_2): Likewise.
11223         * print-tree.c (print_node): Print DECL_NO_TBAA_P flag.
11224         * doc/c-tree.texi (Expression trees): Document
11225         CHANGE_DYNAMIC_TYPE_EXPR.
11226
11227 2007-06-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11228
11229         * fold-const.c (fold_binary): Guard (X-X) -> 0 transformation
11230         with !HONOR_NANS and !HONOR_INFINITIES.
11231         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11232
11233 2007-06-12  Tristan Gingold  <gingold@adacore.com>
11234
11235         * gcov.c: Comments updated.
11236         (source_info): Add file_time field.
11237         (source_index): New variable.
11238         (mutiple_files): New variable.
11239         (generate_results): New function extracted from process_file.
11240         (process_file): Save and restore chain of functions, generate
11241         results and free structures only if not merging results.
11242         (release_structures): File names are now freed in create_file_names
11243         (create_file_names): Free previous file names.
11244         (find_source): File date is now read here and modifications in
11245         source files is checked here.
11246         (read_graph_file): Only reverse order of functions for the current
11247         object file.
11248         (make_gcov_file_name): Do not generate long names if input_name is
11249         NULL.
11250         (output_lines): If merging results do not display graph, data and
11251         runs informations.
11252         Checking source file modification is done in find_source.
11253
11254         * doc/gcov.texi: Append an s to sourcefile.
11255
11256 2007-06-12  Bernd Schmidt  <bernd.schmidt@analog.com>
11257
11258         * config/bfin/bfin.md (UNSPEC_NOP): New constant.
11259         (forced_nop): New pattern.
11260         * config/bfin/bfin.c: Include "df.h".
11261         (add_to_reg): Use df_regs_ever_live_p instead of regs_ever_live.
11262         (bfin_discover_loop): Use df_get_live_in instead of
11263         global_live_at_start.
11264         (bfin_reorder_loops): Pass 0 to cfg_layout_initialize.  Call
11265         df_analyze when done.
11266         (gen_one_bundle): Don't generate SEQUENCE insns, just put modes on
11267         the insns.  Use QImode for the final insn in a bundle.  Call
11268         df_insn_rescan on generated NOPs; use gen_forced_nop instead of
11269         gen_nop.
11270         (reorder_var_tracking_notes): New function.
11271         (bfin_reorg): Pass no argument to split_all_insns.  Don't call
11272         update_life_info.  Call df_analyze after scheduling and bundle
11273         generation.  Call reorder_var_tracking_notes if generating these
11274         notes.  Call df_finish_pass at the end.
11275
11276 2007-06-12  Dirk Mueller  <dmueller@suse.de>
11277
11278         * optabs.c (debug_optab_libfuncs): fix gcc_assert to
11279         a comparison, not an assignment.
11280
11281 2007-06-12  Olivier Hainque  <hainque@adacore.com>
11282
11283         * tree-nested.c (convert_local_reference): Handle VIEW_CONVERT_EXPR.
11284         Request walking the subtrees only, leaving the current is_lhs/val_only
11285         untouched.
11286         (convert_non_local_reference): Likewise.
11287
11288 2007-06-12  Nathan Sidwell  <nathan@codesourcery.com>
11289
11290         * config/m68k/m68k-devices.def (52221, 52223, 5253): New.
11291
11292 2007-06-12  Richard Guenther  <rguenther@suse.de>
11293
11294         PR tree-optimization/15353
11295         PR tree-optimization/31657
11296         * passes.c (init_optimization_passes): Add pass_tree_ifcombine.
11297         * timevar.def: Add TV_TREE_IFCOMBINE.
11298         * tree-pass.h (pass_tree_ifcombine): Declare.
11299         * tree-ssa-ifcombine.c: New file.
11300         * tree-ssa-phiopt.c (blocks_in_phiopt_order): Export.
11301         * tree-flow.h (blocks_in_phiopt_order): Declare.
11302         * Makefile.in (OBJS-common): Add tree-ssa-ifcombine.o.
11303         (tree-ssa-ifcombine.o): New dependencies.
11304
11305 2007-06-12  Uros Bizjak  <ubizjak@gmail.com>
11306
11307         PR rtl-optimization/32293
11308         * combine.c (simplify_if_then_else): Truncate return from
11309         nonzero_bits() to correct mode.
11310
11311 2007-06-12  Uros Bizjak  <ubizjak@gmail.com>
11312
11313         * fold-const (fold_binary) [RDIV_EXPR]: Also optimize a/cbrt(b/c)
11314         into a*cbrt(c/b) if flag_unsafe_math_optimizations is set.
11315
11316 2007-06-11  Diego Novillo  <dnovillo@google.com>
11317
11318         * Makefile.in (reload1.o-warn): Remove.
11319
11320 2007-06-11  Seongbae Park <seongbae.park@gmail.com>
11321
11322         * combine.c (subst): Use reg_overlap_mentioned_p
11323         instead of comparing register numbers directly.
11324
11325 2007-06-11  Kenneth Zadeck <zadeck@naturalbridge.com>
11326
11327         * reload1.c (mark_home_live_1): Use the mode parameter.
11328
11329 2007-06-11  Kenneth Zadeck <zadeck@naturalbridge.com>
11330
11331         * df-scan.c (df_insn_delete, df_insn_rescan, df_insn_rescan_all,
11332         df_process_deferred_rescans, df_notes_rescan): Fixed spelling of
11333         word "deferred".
11334         * df-core.c: Ditto.
11335
11336 2007-06-11  Daniel Berlin  <dberlin@dberlin.org>
11337
11338         * Merge dataflow-branch into mainline (see ChangeLog.dataflow)
11339
11340 2007-06-11  Uros Bizjak  <ubizjak@gmail.com>
11341
11342         * config/i386/i386.md ("*movtf_internal): Penalize moves to and
11343         from integer registers.
11344         (FP mode splitters): Handle TFmode.
11345
11346 2007-06-11  Eric Botcazou  <ebotcazou@adacore.com>
11347
11348         * tree-ssa-structalias.c (find_what_p_points_to): Return false
11349         for ref-all pointers that point-to anything.
11350
11351 2007-06-11  Joseph Myers  <joseph@codesourcery.com>
11352
11353         * config/arm/arm.c (arm_output_dwarf_dtprel,
11354         TARGET_ASM_OUTPUT_DWARF_DTPREL): New.
11355
11356 2007-06-11  Bernd Schmidt  <bernd.schmidt@analog.com>
11357
11358         * config/bfin/bfin.md (movdi_insn, movsi_insn, movv2hi_insn,
11359         movhi_insn, movqi_insn, movsf_insn, movdf_insn): Don't allow constant
11360         to memory moves.
11361
11362 2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
11363
11364         * tree.c (signed_or_unsigned_type_for): New.
11365         (unsigned_type_for): Use signed_or_unsigned_type_for.
11366         (signed_type_for): Use signed_or_unsigned_type_for.
11367         * tree.h (signed_or_unsigned_type_for): New.
11368         (get_signed_or_unsigned_type): Remove.
11369         * fold-const.c (fold_negate_expr): Use signed_type_for instead of
11370         lang_hooks.types.signed_type
11371         (size_diffop): Likewise.
11372         (all_ones_mask_p): Likewise.
11373         (build_range_check): Likewise.
11374         (fold_cond_expr_with_comparison): Likewise.
11375         (fold_cond_expr_with_comparison): Likewise.
11376         (unextend): Likewise.
11377         (extract_muldiv_1): Likewise.
11378         (fold_single_bit_test_into_sign_test): Likewise.
11379         (fold_binary): Likewise.
11380         (fold_ternary): Likewise.
11381         (operand_equal_for_comparison_p): Use signed_or_unsigned_type_for
11382         instead of get_signed_or_unsigned_type.
11383         * c-objc-common.h (LANG_HOOKS_SIGNED_TYPE): Remove.
11384         (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
11385         * expr.c (signed_or_unsigned_type_for): Use
11386         signed_or_unsigned_type_for instead of get_signed_or_unsigned_type.
11387         * langhooks.c (get_signed_or_unsigned_type): Remove.
11388         (lhd_signed_or_unsigned_type): Remove.
11389         * langhooks.h (lang_hooks_for_types): Remove signed_type and
11390         signed_or_unsigned_type.
11391         (lhd_signed_or_unsigned_type): Remove.
11392         * expmed.c (make_tree): Use signed_type_for instead of
11393         lang_hooks.types.signed_type.
11394         * c-common.c (same_scalar_type_ignoring_signedness): Use
11395         c_common_signed_type instead of lang_hooks.types.signed_type.
11396         (c_common_unsigned_type): New.
11397         (c_common_signed_type): Just call c_common_signed_or_unsigned_type.
11398         (shorten_compare): Use c_common_unsigned_type instead of
11399         c_common_signed_or_unsigned_type.
11400         (c_common_nodes_and_builtins): Use c_common_unsigned_type instead of
11401         unsigned_type_for.
11402         * convert.c (convert_to_integer): Use signed_type_for instead of
11403         lang_hooks.types.signed_type.
11404         * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
11405         (LANG_HOOK_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_SIGNED_TYPE and
11406         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE.
11407         * c-format.c (check_format_types): Use c_common_unsigned_type
11408         instead of unsigned_type_for.
11409         * c-decl.c (groakdeclarator): Likewise.
11410         * c-typeck.c (convert_for_assignment): Likewise.
11411         * c-common.h (c_common_unsigned_type): New.
11412
11413 2007-06-11  Uros Bizjak  <ubizjak@gmail.com>
11414
11415         PR target/32280
11416         * config/i386/sse.md ("sse2_ashlti", "sse2_lshrti3"): Move ...
11417         * config/i386/i386.md ("sse2_ashlti", "sse2_lshrti3"): ... to here.
11418
11419 2007-06-11  Uros Bizjak  <ubizjak@gmail.com>
11420
11421         PR middle-end/32279
11422         * fold-const (fold_binary) [RDIV_EXPR]: Optimize a/sqrt(b/c)
11423         into a*sqrt(c/b) if flag_unsafe_math_optimizations is set.
11424
11425 2007-06-10  Jan Sjodin  <jan.sjodin@amd.com>
11426             Sebastian Pop  <sebpop@gmail.com>
11427
11428         * lambda-code.c (remove_iv): New.
11429         (lambda_loopnest_to_gcc_loopnest): Use remove_iv.
11430
11431 2007-06-10  Zdenek Dvorak  <dvorakz@suse.cz>
11432
11433         * tree-data-ref.c (dr_analyze_alias): Handle case smt is NULL.
11434         * tree-predcom.c (mark_virtual_ops_for_renaming): Exported.
11435         * tree-ssa-loop-prefetch.c: Include optabs.h.
11436         (FENCE_FOLLOWING_MOVNT): New macro.
11437         (struct mem_ref): Add independent_p and storent_p fields.
11438         (record_ref): Initalize the new fields.
11439         (gather_memory_references_ref): Return true if the reference
11440         could be analysed.
11441         (gather_memory_references): Check whether all memory accesses
11442         in loop were recorded.
11443         (should_issue_prefetch_p): Return false for nontemporal stores.
11444         (nontemporal_store_p, mark_nontemporal_store, emit_mfence_after_loop,
11445         may_use_storent_in_loop_p, mark_nontemporal_stores): New functions.
11446         (determine_loop_nest_reuse): Detect independent memory references.
11447         (loop_prefetch_arrays): Call mark_nontemporal_stores.
11448         * tree-flow.h (mark_virtual_ops_for_renaming): Declare.
11449         * Makefile.in (tree-ssa-loop-prefetch.o): Add OPTABS_H dependency.
11450         * config/i386/i386.h (x86_mfence): Declare.
11451         (FENCE_FOLLOWING_MOVNT): Return x86_mfence.
11452         * config/i386/i386.c (x86_mfence): New variable.
11453         (ix86_init_mmx_sse_builtins): Initialize x86_mfence.
11454
11455         * tree-pretty-print.c (dump_generic_node): Mark nontemporal stores.
11456         * optabs.c (init_optabs): Initialize storent_optab.
11457         * optabs.h (enum optab_index): Add OTI_storent.
11458         (storent_optab): Declare.
11459         * genopinit.c (optabs): Add initialization for storent_optab.
11460         * tree.h (MOVE_NONTEMPORAL): New macro.
11461         * expr.c (expand_assignment, store_expr, store_constructor_field,
11462         store_constructor, store_field, expand_expr_real_1): Propagate
11463         nontemporality of the expanded store.
11464         (emit_storent_insn): New function.
11465         * expr.h (expand_assignment, store_expr): Declaration changed.
11466         * function.c (assign_parm_setup_reg): Pass false as nontemporality
11467         to expand_assignment.
11468         * stmt.c (expand_asm_expr): Ditto.
11469         * calls.c (initialize_argument_information): Pass false as
11470         nontemporality to store_expr.
11471         * config/i386/sse.md (storentv4sf, storentv2df, storentv2di,
11472         storentsi): New.
11473
11474 2007-06-09  Daniel Berlin  <dberlin@dberlin.org>
11475
11476         * tree-ssa-structalias.c (set_uids_in_ptset): Add is_deref'd
11477         parameter, use it.
11478         (find_what_p_points_to): Pass new parameter to set_uids_in_ptset.
11479
11480 2007-06-09  Daniel Berlin  <dberlin@dberlin.org>
11481
11482         * tree-data-ref.c (dr_may_alias_p): Check that decl_a != decl_b,
11483         and allow DECL_P here.
11484
11485 2007-06-09  Zdenek Dvorak  <dvorakz@suse.cz>
11486
11487         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs,
11488         follow_ssa_edge_in_condition_phi, follow_ssa_edge): Keep more precise
11489         track of the size of the expression.
11490         * cfghooks.c (merge_blocks): Remove block from loops structure only
11491         after call of the merge_blocks hook.
11492
11493 2007-06-09  Tom Tromey  <tromey@redhat.com>
11494
11495         * c-decl.c (grokdeclarator): Added 'deprecated_state' argument.
11496         (deprecated_state): Removed.
11497         (start_decl): Update.
11498         (enum deprecated_states): Moved earlier.
11499         (groktypename): Update.
11500         (push_parm_decl): Likewise.
11501         (grokfield): Likewise.
11502         (start_function): Likewise.
11503
11504 2007-06-09  Ian Lance Taylor  <iant@google.com>
11505
11506         PR tree-optimization/32169
11507         * tree-vrp.c (extract_range_from_unary_expr): For NOP_EXPR and
11508         CONVERT_EXPR, check whether min and max both converted to an
11509         overflow infinity representation.
11510
11511 2007-06-08  Eric Botcazou  <ebotcazou@adacore.com>
11512
11513         * reload1.c (fixup_abnormal_edges): Clear bb field for insns
11514         not inserted on the edge.
11515
11516 2007-06-08  Bob Wilson  <bob.wilson@acm.org>
11517
11518         * config/xtensa/lib1funcs.asm (__udivsi3): Use hardware divide
11519         instructions if they are supported.
11520         (__divsi3, __umodsi3, __modsi3): Likewise.
11521         (__ashldi3, __ashrdi3, __lshrdi3): New.
11522         * config/xtensa/t-xtensa (LIB1ASMFUNCS): Add DImode shift functions.
11523
11524 2007-06-08  Harsha Jagasia <harsha.jagasia@amd.com>
11525             Tony Linthicum <tony.linthicum@amd.com>
11526
11527         * doc/invoke.texi: Add fvect-cost-model flag.
11528         * common.opt (fvect-cost-model): New flag.
11529         * tree-vectorizer.c (new_stmt_vec_info): Initialize inside and outside
11530         cost fields in stmt_vec_info struct for STMT.
11531         * tree-vectorizer.h (stmt_vec_info): Define inside and outside cost
11532         fields in stmt_vec_info struct and access functions for the same.
11533         (TARG_COND_BRANCH_COST): Define cost of conditional branch.
11534         (TARG_VEC_STMT_COST): Define cost of any vector operation, excluding
11535         load, store and vector to scalar operation.
11536         (TARG_VEC_TO_SCALAR_COST): Define cost of vector to scalar operation.
11537         (TARG_VEC_LOAD_COST): Define cost of aligned vector load.
11538         (TARG_VEC_UNALIGNED_LOAD_COST): Define cost of misasligned vector load.
11539         (TARG_VEC_STORE_COST): Define cost of vector store.
11540         (vect_estimate_min_profitable_iters): Define new function.
11541         * tree-vect-analyze.c (vect_analyze_operations): Add a compile-time
11542         check to evaluate if loop iterations are less than minimum profitable
11543         iterations determined by cost model or minimum vect loop bound defined
11544         by user, whichever is more conservative.
11545         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Add a
11546         run-time check to evaluate if loop iterations are less than minimum
11547         profitable iterations determined by cost model or minimum vect loop
11548         bound defined by user, whichever is more conservative.
11549         (vect_estimate_min_profitable_iterations): New function to estimate
11550         mimimimum iterartions required for vector version of loop to be
11551         profitable over scalar version.
11552         (vect_model_reduction_cost): New function.
11553         (vect_model_induction_cost): New function.
11554         (vect_model_simple_cost): New function.
11555         (vect_cost_strided_group_size): New function.
11556         (vect_model_store_cost): New function.
11557         (vect_model_load_cost): New function.
11558         (vectorizable_reduction): Call vect_model_reduction_cost during
11559         analysis phase.
11560         (vectorizable_induction): Call vect_model_induction_cost during
11561         analysis phase.
11562         (vectorizable_load): Call vect_model_load_cost during analysis phase.
11563         (vectorizable_store): Call vect_model_store_cost during analysis phase.
11564         (vectorizable_call, vectorizable_assignment, vectorizable_operation,
11565         vectorizable_promotion, vectorizable_demotion): Call
11566         vect_model_simple_cost during analysis phase.
11567
11568 2007-06-08  Simon Baldwin  <simonb@google.com>
11569
11570         * reg-stack.c (get_true_reg): Readability change.  Moved default case
11571         label into direct switch statement scope.
11572
11573 2007-06-08  Simon Baldwin  <simonb@google.com>
11574
11575         * tree-flow-inline.h (var_ann): Replaced erroneous '=' assignment
11576         in gcc_assert() with '==' comparison.
11577
11578 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
11579
11580         * config/i386/i386.c (override_options): Merge TARGET_SSE4_2 and
11581         TARGET_ABM handling of x86_popcnt variable.
11582
11583 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
11584
11585         * doc/extend.texi (X86 Built-in Functions): Document __builtin_fabsq,
11586         __builtin_copysignq and __builtin_infq built-in functions.
11587
11588 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
11589
11590         * doc/extend.texi (X86 Built-in Functions): Add missing `@item's in
11591         SSE4.2 section.  Correct built-in function names in SSE4A section.
11592
11593 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
11594
11595         PR tree-optimization/32243
11596         * tree-vect-transform.c (vectorizable_type_promotion): Move check
11597         for ncopies after ratio check between nunits_out and nunits_in.
11598         (vectorizable_type_demotion): Remove single-use variable "scalar_type".
11599
11600 2007-06-08  Dorit Nuzman  <dorit@il.ibm.com>
11601
11602         PR tree-optimization/32224
11603         * tree-vect-analyze.c (vect_determine_vectorization_factor): Fail
11604         vectorization upon a non GIMPLE_MODIFY_STMT.
11605
11606 2007-06-08  Christian Bruel  <christian.bruel@st.com>
11607
11608         PR target/29953
11609         * config/sh/sh.md (doloop_end): New pattern and splitter.
11610         * loop-iv.c (simple_rhs_p): Check for hardware registers.
11611
11612 2007-06-08  Zdenek Dvorak  <dvorakz@suse.cz>
11613
11614         PR middle-end/32209
11615         * dominance.c (debug_dominance_tree, debug_dominance_tree_1): New
11616         functions.
11617         (verify_dominators): Do not change dominance tree.
11618
11619 2007-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
11620
11621         * config/sh/constraints.md: New file.
11622         * config/sh/sh.c: Include tm-constrs.h.
11623         (reg_class_from_letter): Remove.
11624         (prepare_cbranch_operands): Use satisfies_constraint_*
11625         function instead of macro.
11626         (andcosts, broken_move, sh_secondary_reload): Likewise.
11627         * config/sh/predicates.md (trapping_target_operand): Likewise.
11628         (and_operand, arith_operand, arith_reg_or_0_operand,
11629         cmp_operand, logical_operand, target_operand,
11630         ua_address_operand, ua_offset, xor_operand): Likewise.
11631         * config/sh/sh.md: Include constraints.md.
11632         (*movsicc_t_false): Use satisfies_constraint_* function
11633         instead of macro.
11634         (*movsicc_t_true, ashlsi3_std, ashlhi3_k, lshrsi3_m,
11635         lshrsi3_k, movsi_const_16bit+2, *movhi_media+1,
11636         movdi_const_16bit+1, beq, bne, *ptb): Likewise.
11637         * config/sh/sh.h (reg_class_from_letter): Remove prototype.
11638         (OVERRIDE_OPTIONS): Don't modify reg_class_from_letter.
11639         (REG_CLASS_FROM_CONSTRAINT): Remove.
11640         (CONSTRAINT_LEN, CONST_OK_FOR_I20, CONST_OK_FOR_I,
11641         CONST_OK_FOR_J, CONST_OK_FOR_K16, CONST_OK_FOR_K,
11642         CONST_OK_FOR_P27, CONST_OK_FOR_P, CONST_OK_FOR_M,
11643         CONST_OK_FOR_N, CONST_OK_FOR_CONSTRAINT_P,
11644         CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
11645         (SECONDARY_INOUT_RELOAD_CLASS): Use satisfies_constraint_*
11646         function instead of macro.
11647         (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
11648         (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_A,
11649         EXTRA_CONSTRAINT_Bsc, EXTRA_CONSTRAINT_B,
11650         EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Remove.
11651         (IS_PC_RELATIVE_LOAD_ADDR_P): New macro.
11652         (IS_LITERAL_OR_SYMBOLIC_S16_P): Likewise.
11653         (IS_LITERAL_OR_SYMBOLIC_U16_P): Likewise.
11654         (IS_NON_EXPLICIT_CONSTANT_P): Likewise.
11655         (EXTRA_CONSTRAINT_Csy, EXTRA_CONSTRAINT_Z, EXTRA_CONSTRAINT_W,
11656         EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C,
11657         EXTRA_MEMORY_CONSTRAINT, EXTRA_CONSTRAINT_Sr0,
11658         EXTRA_CONSTRAINT_Sua, EXTRA_CONSTRAINT_S,
11659         EXTRA_CONSTRAINT_STR): Likewise.
11660         (GO_IF_LEGITIMATE_INDEX): Fix indentation.
11661
11662 2007-06-07  Geoffrey Keating  <geoffk@apple.com>
11663
11664         * config/i386/darwin.h (STACK_BOUNDARY): Define.
11665
11666 2007-06-07  Simon Martin  <simartin@users.sourceforge.net>
11667
11668         PR c++/30759
11669         * c-common.h (flag_cpp0x): Replaced by...
11670         (cxx_dialect): ... this new variable specifying the C++ dialect that
11671         is used.
11672         * c-common.c (flag_cpp0x): Removed.
11673         (cxx_dialect): Defined.
11674         * c-cppbuiltin.c (c_cpp_builtins): flag_cpp0x rewritten in terms of
11675         cxx_dialect.
11676         * c-opts.c (c_common_post_options): Likewise.
11677         (set_std_cxx98): Set cxx_dialect to cxx98.
11678         (set_std_cxx0x): Set cxx_dialect to cxx0x.
11679
11680 2007-06-07  Geoffrey Keating  <geoffk@apple.com>
11681             Hui-May Chang <hm.chang@apple.com>
11682
11683         * doc/invoke.texi (Darwin Options): Update documentation for
11684         -mmacosx-version-min.
11685         * config.gcc (*-*-darwin*): Set extra_gcc_objs.
11686         * config/darwin-driver.c: New file.
11687         * config/darwin.h (GCC_DRIVER_HOST_INITIALIZATION): New.
11688         * config/t-darwin (darwin-driver.o): New rule.
11689
11690         * config/darwin-c.c (version_as_macro): Ignore low digit.
11691
11692 2007-06-07  Uros Bizjak  <ubizjak@gmail.com>
11693
11694         * config/i386/i386.md (standard sse constant splitter): Handle TFmode.
11695         (negtf2, abstf2, *absnegtf2_sse): New insn patterns.
11696         (CSGNMODE): New mode macro.
11697         (CSGNVMODE): New mode attribute.
11698         (copysign<mode>3): Rename from copysingsf3 and copysigndf3.  Macroize
11699         expander using CSGNMODE mode macro.  Handle TFmode.
11700         (copysign<mode>3_const): Rename from copysignsf3_const and
11701         copysigndf3_const.  Macroize pattern using CSGNMODE mode macro.
11702         Handle TFmode.
11703         (copysign<mode>3_var): Rename from copysignsf3_var and
11704         copysigndf3_var.  Macroize pattern using CSGNMODE mode macro.
11705         Handle TFmode.
11706         (copysign<mode>3_var splitter): Macroize pattern using CSGNMODE
11707         mode macro.  Handle TFmode.
11708         * config/i386/sse.md (andtf3, *andtf3, *nandtf3): New insn patterns.
11709         (iortf3, *iortf3): Ditto.
11710         (xortf3, *xortf3): Ditto.
11711         * config/i386/i386.c (ix86_build_signbit_mask): Create scalar
11712         TFmode and TImode masks.
11713         (ix86_expand_copysign): Expand TFmode copysign insn.
11714         (IX86_BUILTIN_INFQ): New.
11715         (IX86_BUILTIN_FABSQ): Ditto.
11716         (IX86_BUILTIN_COPYSIGNQ): Ditto.
11717         (ix86_init_mmx_sse_builtins) [__builtin_infq]: New builtin definition.
11718         [__builtin_fabsq]: Ditto.
11719         [__builtin_copysignq]: Ditto.
11720         (ix86_expand_builtin) [IX86_BUILTIN_INFQ]: Expand builtin.
11721         [IX86_BUILTIN_FABSQ]: Expand builtin using ix86_expand_unop_builtin().
11722         [IX86_BUILTIN_COPYSIGNQ]: Expand builtin using
11723         ix86_expand_binop_builtin().
11724
11725 2007-06-07  Bob Wilson  <bob.wilson@acm.org>
11726
11727         * config/xtensa/lib1funcs.asm: Clean up whitespace.
11728
11729 2007-06-07  Steve Ellcey  <sje@cup.hp.com>
11730
11731         PR target/31850
11732         * rtl.h (push_to_sequence2): New.
11733         * emit-rtl.c (push_to_sequence2): New.
11734         * function.c (assign_parm_data_all): Add new fields.
11735         (assign_parm_setup_block): Call push_to_sequence2 instead of
11736         push_to_sequence.
11737         (assign_parm_setup_reg): Ditto.
11738         (assign_parm_setup_stack): Ditto.
11739         (assign_parms_unsplit_complex): Ditto.
11740         (assign_parms): Change field name.
11741
11742 2007-06-07  Zdenek Dvorak  <dvorakz@suse.cz>
11743
11744         PR tree-optimization/32220
11745         * tree-predcom.c (eliminate_temp_copies): Handle the case that loop
11746         phi node is reached before defining statement.
11747
11748 2007-06-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11749
11750         PR tree-opt/32231
11751         * tree-vect-transform.c (vectorizable_call): Call update_stmt
11752         after changing the right hand side of the assignment.
11753
11754 2007-06-06  Eric Christopher  <echristo@apple.com>
11755
11756         * config.gcc (i?86-*-darwin*): Remove arch parameter.
11757         (x86_64-*-darwin*): Ditto.
11758         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Define.
11759         (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
11760
11761 2007-06-06  Thomas Neumann  <tneumann@users.sourceforge.net>
11762
11763         * tree-ssa-alias-warnings.c (maybe_add_match): Cast according to the
11764         coding conventions.
11765         (add_key): Likewise.
11766         * tree-ssa.c (init_tree_ssa): Use type safe memory macros.
11767         * tree-ssa-ccp.c (ccp_fold_builtin): Avoid using C++ keywords as
11768         variable names.
11769         * tree-ssa-coalesce.c (find_coalesce_pair): Use type safe memory
11770         macros.
11771         (add_cost_one_coalesce): Likewise.
11772         * tree-ssa-copy.c (merge_alias_info): Avoid using C++ keywords as
11773         variable names. Rename orig to orig_name for consistency.
11774         * tree-ssa-dom.c (dom_thread_across_edge): Cast according to the
11775         coding conventions.
11776         (cprop_into_successor_phis): Avoid using C++ keywords as variable
11777         names.
11778         (record_equivalences_from_stmt): Likewise.
11779         * tree-ssa-dse.c (dse_initialize_block_local_data): Cast according to
11780         the coding conventions.
11781         (memory_ssa_name_same): Likewise.
11782         (dse_optimize_stmt): Likewise.
11783         (dse_record_phis): Likewise.
11784         (dse_finalize_block): Likewise.
11785         * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Avoid using C++
11786         keywords as variable names.
11787         (may_move_till): Cast according to the coding conventions.
11788         (force_move_till_expr): Avoid using C++ keywords as variable names.
11789         (force_move_till): Cast according to the coding conventions.
11790         (memref_hash): Likewise.
11791         (memref_eq): Likewise.
11792         (gather_mem_refs_stmt): Likewise.
11793         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Avoid
11794         using C++ keywords as variable names.
11795         (idx_find_step): Cast according to the coding conventions.
11796         (idx_record_use): Likewise.
11797         (find_depends): Likewise.
11798         (prepare_decl_rtl): Likewise.
11799         (mbc_entry_hash): Likewise.
11800         (mbc_entry_eq): Likewise.
11801         * tree-ssa-loop-niter.c (SWAP): Use the correct the type for tmp.
11802         (simplify_replace_tree): Avoid using C++ keywords as variable names.
11803         (idx_infer_loop_bounds): Cast according to the coding conventions.
11804         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
11805         * tree-ssa-math-opts.c (occ_new ): Likwise.
11806         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Use type safe memory
11807         macros.
11808         * tree-ssa-operands.c (add_def_op): Avoid using C++ keywords as
11809         variable names.
11810         (add_use_op): Likewise.
11811         (add_vop): Likewise.
11812         (add_vuse_op): Likewise.
11813         (add_vdef_op): Likewise.
11814         (get_expr_operands): Likewise.
11815         (push_stmt_changes): Use type safe memory macros.
11816         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Avoid using C++
11817         keywords as variable names.
11818         (conditional_replacement): Likewise.
11819         (minmax_replacement): Likewise.
11820         (abs_replacement): Likewise.
11821         * tree-ssa-pre.c (create_expression_by_pieces): Cast according to the
11822         coding conventions.
11823         (insert_fake_stores): Avoid using C++ keywords as variable names.
11824         * tree-ssa-reassoc.c (add_to_ops_vec): Cast according to the coding
11825         conventions.
11826         * tree-ssa-structalias.c (heapvar_lookup): Likewise.
11827         (heapvar_insert): Use type safe memory macros.
11828         (new_var_info): Cast according to the coding conventions.
11829         (new_constraint): Likewise.
11830         (remove_preds_and_fake_succs): Use type safe memory macros.
11831         * tree-ssa-threadupdate.c (thread_block): Cast according to the coding
11832         conventions.
11833         (thread_single_edge): Likewise.
11834         (thread_through_loop_header): Likewise.
11835
11836 2007-06-06  Eric Christopher  <echristo@apple.com>
11837
11838         * config/i386/i386.c (override_options): Move handling
11839         of TARGET_SUBTARGET* earlier.
11840
11841 2007-06-06  Paolo Bonzini  <bonzini@gnu.org>
11842
11843         * genmodes.c (tagged_printf, emit_insn_modes_h): Don't
11844         use %n on printf.
11845
11846 2007-06-06  Zdenek Dvorak  <dvorakz@suse.cz>
11847
11848         * haifa-sched.c (restore_bb_notes): Clear bb field of the notes
11849         emited outside of basic block.
11850         * cfgbuild.c (find_bb_boundaries): Clear bb field for insns between
11851         the created blocks.
11852         * rtl.h (delete_insn_chain): Declaration changed.
11853         * cfgrtl.c (delete_insn_chain): Add option to clear bb field for
11854         non-removed insns.
11855         (rtl_delete_block, rtl_merge_blocks): Pass true to delete_insn_chain.
11856         (delete_insn_chain_and_edges, try_redirect_by_replacing_jump,
11857         rtl_tidy_fallthru_edge, cfg_layout_merge_blocks): Pass false
11858         to delete_insn_chain.
11859         (rtl_verify_flow_info_1): Verify that the insns in header and footer
11860         do not have bb field set.
11861         (rtl_verify_flow_info): Verify that insns between basic blocks do not
11862         have bb field set.
11863         * recog.c (peephole2_optimize): Add argument to delete_insn_chain call.
11864         * cfgcleanup.c (try_optimize_cfg): Ditto.
11865
11866 2007-06-06  Thomas Neumann  <tneumann@users.sourceforge.net>
11867
11868         * lambda-code.c (struct lambda_lattice_s): Add a name to the struct.
11869         (lambda_body_vector_new): Use type safe memory macros.
11870         (lambda_linear_expression_new): Likewise.
11871         (lambda_loopnest_new): Likewise.
11872         (lambda_lattice_new): Likewise.
11873         (replace_uses_equiv_to_x_with_y): Cast according to the coding
11874         conventions. Use type safe memory macros.
11875         * lambda.h (struct lambda_trans_matrix_s): Add a name to the struct.
11876         (lambda_body_vector_s): Likewise.
11877         * lambda-mat.c (lambda_matrix_new): Use type safe memory macros.
11878         * lambda-trans.c (lambda_trans_matrix_new): Likewise.
11879
11880 2007-06-06  Richard Guenther  <rguenther@suse.de>
11881
11882         * tree-ssa-forwprop.c (forward_propagate_into_cond): Return 2
11883         if we need to schedule cfg_cleanup.
11884         (tree_ssa_forward_propagate_single_use_vars): Do so.
11885
11886 2007-06-06  Ian Lance Taylor  <iant@google.com>
11887
11888         * fold-const.c (merge_ranges): If range_successor or
11889         range_predecessor fail, just return 0.
11890
11891 2007-06-06  Uros Bizjak  <ubizjak@gmail.com>
11892
11893         PR tree-optimization/32216
11894         * tree-vectorizer.c (supportable_widening_operation): Determine
11895         signedness of FIX_TRUNC_EXPR from output operand.
11896         (supportable_narrowing_operation): Ditto.
11897         * tree-vect-generic.c (expand_vector_operations_1): Determine
11898         signedness of VEC_UNPACK_FLOAT_HI_EXPR and VEC_UNPACK_FLOAT_LO_EXPR
11899         from input operand.
11900
11901 2007-06-06  Thomas Neumann  <tneumann@users.sourceforge.net>
11902
11903         * config/i386/i386.c (enum pta_flags): Move out of struct scope...
11904         (struct pta): ...from here. Change flags to unsigned to avoid
11905         excessive casting (as it is used as a bit mask).
11906         (override_options): Add casts according to the coding convenventions.
11907         (x86_64_elf_unique_section): Likewise.
11908         (examine_argument): Avoid using C++ keywords as variable names.
11909         (construct_container): Likewise.
11910         (legitimize_pic_address): Likewise.
11911         (get_dllimport_decl): Cast according to the coding conventions. Use
11912         type safe memory macros.
11913         (legitimize_address): Cast according to the coding conventions.
11914         (emit_i387_cw_initialization): Corrected the type of slot to enum
11915         ix86_stack_slot.
11916         (ix86_init_machine_status): Use type safe memory macros.
11917         (bdesc_pcmpestr): Use UNKNOWN instead of integer 0.
11918         (bdesc_pcmpistr): Likewise.
11919         (bdesc_crc32): Likewise.
11920         (bdesc_sse_3arg): Likewise.
11921         (bdesc_2arg): Likewise.
11922         (bdesc_1arg): Likewise.
11923         (ix86_expand_sse_pcmpestr): Cast according to the coding conventions.
11924         (ix86_expand_sse_pcmpistr): Likewise.
11925         (ix86_expand_vec_set_builtin): Use EXPAND_NORMAL instead of integer 0.
11926         (ix86_builtin_vectorized_function): Change the type of fn to unsigned
11927         int to match the langhook definition.
11928         (ix86_builtin_conversion): Change the type of code to unsigned init to
11929         match the langhook definition.
11930         (ix86_preferred_reload_class): Avoid using C++ keywords as variable
11931         names.
11932         (ix86_preferred_output_reload_class): Likewise.
11933         (ix86_cannot_change_mode_class): Likewise.
11934         (ix86_memory_move_cost): Likewise.
11935         (ix86_rtx_costs): Cast the outer_code parameter to enum rtx_code to
11936         avoid excessive casting later on.
11937         (x86_output_mi_thunk): Avoid using C++ keywords as variable names.
11938
11939 2007-06-06  Uros Bizjak  <ubizjak@gmail.com>
11940
11941         * config/i386/sse.md (sse4_2_pcmpestr_cconly): Prefer pcmpestrm
11942         as flags setting insn.
11943         (sse4_2_pcmpistr_cconly): Prefer pcmpistrm as flags setting insn.
11944
11945 2007-06-06  Uros Bizjak  <ubizjak@gmail.com>
11946
11947         * config/i386/i386.md (UNSPEC_ROUNDP, UNSPEC_ROUNDS): Remove.
11948         (UNSPEC_ROUND): New.
11949         ("sse4_1_round<mode>2"): New insn pattern.
11950         ("rint<mode>2"): Expand using "sse4_1_round<mode>2" pattern for
11951         SSE4.1 targets.
11952         ("floor<mode>2"): Rename from floordf2 and floorsf2.  Macroize
11953         expander using SSEMODEF mode macro.  Expand using
11954         "sse4_1_round<mode>2" pattern for SSE4.1 targets.
11955         ("ceil<mode>2"): Rename from ceildf2 and ceilsf2.  Macroize
11956         expander using SSEMODEF mode macro.  Expand using
11957         "sse4_1_round<mode>2" pattern for SSE4.1 targets.
11958         ("btrunc<mode>2"): Rename from btruncdf2 and btruncsf2.  Macroize
11959         expander using SSEMODEF mode macro.  Expand using
11960         "sse4_1_round<mode>2" pattern for SSE4.1 targets.
11961         * config/i386/sse.md ("sse4_1_roundpd", "sse4_1_roundps"): Use
11962         UNSPEC_ROUND instead of UNSPEC_ROUNDP.
11963         ("sse4_1_roundsd", "sse4_1_roundss"): Use UNSPEC_ROUND instead of
11964         UNSPEC_ROUNDS.
11965
11966 2007-06-06  Jan Sjodin  <jan.sjodin@amd.com>
11967             Sebastian Pop  <sebpop@gmail.com>
11968
11969         * lambda.h (build_linear_expr): New.
11970         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression):
11971         Use build_linear_expr, call fold and force_gimple_operand.
11972         (lambda_loopnest_to_gcc_loopnest): Check that there is
11973         something to insert.
11974         * testsuite/gcc.dg/tree-ssa/ltrans-6.c: New.
11975
11976 2007-06-05  Joerg Wunsch  <j.gnu@uriah.heep.sax.de>
11977
11978         PR preprocessor/23479
11979         * doc/extend.texi: Document the 0b-prefixed binary integer
11980         constant extension.
11981
11982 2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
11983
11984         PR tree-optimization/32215
11985         * tree-vectorizer.c (supportable_widening_operation): Return false
11986         for unsupported FIX_TRUNC_EXPR tree code.
11987         (supportable_narrowing_operation): Ditto for FLOAT_EXPR tree code.
11988
11989 2007-06-06  Nathan Froyd  <froydnj@codesourcery.com>
11990
11991         * config/rs6000/rs6000.h (FIXED_SCRATCH): Use r0 as a scratch
11992         register on SPE targets.  Change documentation to reflect
11993         reality.
11994         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
11995         Change FIXED_SCRATCH to 14 and document why we're keeping r14
11996         out of the register allocation pool.
11997         (rs6000_reg_live_or_pic_offset_p): New function.
11998         (rs6000_emit_prologue): Move the actual saving of LR up to free
11999         r0 for holding r11.  Split saving of SPE 64-bit registers into
12000         its own case.  Ensure that offsets will always be in-range for
12001         'evstdd' by using r11 as a scratch register to point at the start
12002         of the SPE save area.  Save r11 if necessary, as it is the static
12003         chain register.
12004         (rs6000_emit_epilogue): Split restoring of SPE 64-bit registers
12005         into its own case.  Ensure that offsets will always be in-range
12006         for 'evldd' by using r11 as a scratch register to point at the
12007         start of the SPE save area.  Also adjust r11 when restoring
12008         the stack pointer to compensate for pre-loading r11.
12009
12010 2007-06-05  Thomas Neumann  <tneumann@users.sourceforge.net>
12011
12012         * cfg.c (init_flow): Use type safe memory macros.
12013         (alloc_block): Likewise.
12014         (unchecked_make_edge): Likewise.
12015         (dump_flow_info): Avoid using C++ keywords as variable names.
12016         (copy_original_table_clear): Cast according to the coding conventions.
12017         (copy_original_table_set): Likewise.
12018         * cfgexpand (label_rtx_for_bb): Likewise.
12019         (expand_gimple_basic_block): Likewise.
12020         * cfghooks.c (dump_bb): Likewise.
12021         (lv_adjust_loop_header_phi): Avoid using C++ keywords as
12022         variable names.
12023         (lv_add_condition_to_bb): Likewise.
12024         * cfglayout (relink_block_chain): Cast according to the coding
12025         conventions.
12026         (fixup_reorder_chain): Likewise.
12027         (fixup_fallthru_exit_predecessor): Likewise.
12028         * cfgloop.c (glb_enum_p): Likewise.
12029         (get_exit_description): Likewise.
12030         (dump_recorded_exit): Likewise.
12031         * cfgloop.h (enum loop_estimation): Move out of struct scope...
12032         (struct loop): ... from here.
12033         * cfgloopmanip.c (rpe_enum_p): Cast according to the coding
12034         conventions.
12035         * cfgrtl.c (rtl_create_basic_block): Likewise.
12036         (rtl_split_block): Likewise.
12037         (rtl_dump_bb): Likewise.
12038         (cfg_layout_split_block): Likewise.
12039         (init_rtl_bb_info): Use typesafe memory macros.
12040
12041         * graphds.h (struct graph_edge): Renamed edge to graph_edge.
12042         * graphds.h: Updated all usages of edge to graph_edge.
12043         * graphds.c: Likewise.
12044         * cfgloopanal.c: Likewise.
12045
12046 2007-06-05  Ian Lance Taylor  <iant@google.com>
12047
12048         * tree-vrp.c (compare_values_warnv): Check TREE_NO_WARNING on a
12049         PLUS_EXPR or MINUS_EXPR node before setting *strict_overflow_p.
12050         (extract_range_from_assert): Set TREE_NO_WARNING when creating an
12051         expression.
12052         (test_for_singularity): Likewise.
12053
12054 2007-06-05  H.J. Lu  <hongjiu.lu@intel.com>
12055
12056         * config/i386/constraints.md ("Y2"): Replaced by ...
12057         ("Yt"): This.
12058         * config/i386/i386.md: Likewise.
12059         * config/i386/mmx.md: Likewise.
12060         * config/i386/sse.md: Likewise.
12061
12062 2007-06-05  H.J. Lu  <hongjiu.lu@intel.com>
12063
12064         * config/i386/constraints.md ("z"): Replaced by ...
12065         ("Y0"): This.
12066         * config/i386/sse.md (sse4_1_blendvpd): Likewise.
12067         (sse4_1_blendvps): Likewise.
12068         (sse4_1_pblendvb): Likewise.
12069         (sse4_2_pcmpestr): Likewise.
12070         (sse4_2_pcmpestrm): Likewise.
12071         (sse4_2_pcmpestr_cconly): Likewise.
12072         (sse4_2_pcmpistr): Likewise.
12073         (sse4_2_pcmpistrm): Likewise.
12074         (sse4_2_pcmpistr_cconly): Likewise.
12075
12076 2007-06-05  Razya Ladelsky  <razya@il.ibm.com>
12077
12078         * matrix-reorg.c (transform_access_sites): Fix computation.
12079         (transform_allocation_sites): Same.
12080
12081 2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
12082
12083         * config/i386/i386.c (override_options): Use
12084         TARGET_SUBTARGET32_ISA_DEFAULT to select default ix86_isa_flags.
12085
12086 2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
12087
12088         * config/i386/predicates.md (reg_not_xmm0_operand): New predicate.
12089         (nonimm_not_xmm0_operand): Ditto.
12090         * config/i386/sse.md ("sse4_1_blendvpd"): Use "reg_not_xmm0_operand"
12091         as operand[0] and operand[1] predicate.  Use "nonimm_not_xmm0_operand"
12092         as operand[2] predicate.  Require "z" class XMM register for
12093         operand[3].  Adjust asm template.
12094         ("sse4_1_blendvpd"): Ditto.
12095         ("sse4_1_pblendvb"): Ditto.
12096         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Do not
12097         force op2 into xmm0 register for variable blend instructions.
12098
12099 2007-06-04  Tom Tromey  <tromey@redhat.com>
12100
12101         * c-tree.h (start_enum): Update.
12102         (build_enumerator): Likewise.
12103         * c-decl.c (enum_next_value): Removed.
12104         (enum_overflow): Likewise.
12105         (start_enum): Add c_enum_contents argument.  Don't use globals.
12106         (build_enumerator): Likewise.
12107         * c-tree.h (struct c_enum_contents): New struct.
12108
12109 2007-06-04  Tom Tromey  <tromey@redhat.com>
12110
12111         * c-common.c (c_common_get_alias_set): Fix indentation.
12112
12113 2007-06-04  Ian Lance Taylor  <iant@google.com>
12114
12115         * tree-vrp.c (adjust_range_with_scev): When loop is not expected
12116         to overflow, reduce overflow infinity to regular infinity.
12117         (vrp_var_may_overflow): New static function.
12118         (vrp_visit_phi_node): Check vrp_var_may_overflow.
12119
12120 2007-06-04  Kazu Hirata  <kazu@codesourcery.com>
12121
12122         * stor-layout.c (layout_type): Remove duplicate code.
12123
12124 2007-06-04  Uros Bizjak  <ubizjak@gmail.com>
12125
12126         PR c/32191
12127         * c-common.c (c_define_builtins): Call targetm.init_builtins ()
12128         before build_common_builtin_nodes ().
12129
12130 2007-06-04  Steve Ellcey  <sje@cup.hp.com>
12131
12132         PR target/31733
12133         * cfgrtl.c (rtl_verify_flow_info): Skip notes when looking for barrier.
12134
12135 2007-06-04  Jan Hubicka  <jh@suse.cz>
12136
12137         * tree-predcom.c (replace_ref_with, initialize_root_vars_lm,
12138         reassociate_to_the_same_stmt): Call build_gimple_modify_stmt
12139         instead of _stat version.
12140
12141 2007-06-03  Zdenek Dvorak  <dvorakz@suse.cz>
12142
12143         PR tree-optimization/32194
12144         * tree-predcom.c (determine_offset): Check that both references have
12145         the same type.
12146
12147 2007-06-03  Zdenek Dvorak  <dvorakz@suse.cz>
12148
12149         * cfgloopmanip.c (remove_path, loopify, duplicate_loop_to_header_edge):
12150         Change dom_bbs to vector.  Add argument to iterate_fix_dominators call.
12151         * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
12152         * tree-cfg.c (tree_duplicate_sese_region): Change doms to vector.
12153         Add argument to iterate_fix_dominators call.
12154         (remove_edge_and_dominated_blocks): Pass vector to bbs_to_fix_dom.
12155         * gcse.c (hoist_code): Change domby to vector.
12156         * cfghooks.c (make_forwarder_block): Change doms_to_fix to vector.
12157         Add argument to iterate_fix_dominators call.
12158         * loop-doloop.c (doloop_modify): Changed recount_dominator to
12159         recompute_dominator.
12160         * lambda-code.c (perfect_nestify): Ditto.
12161         * cfgloopanal.c: Include graphds.h.
12162         (struct edge, struct vertex, struct graph, dump_graph, new_graph,
12163         add_edge, dfs, for_each_edge, free_graph): Moved to graphds.c.
12164         (mark_irreducible_loops): Use graphds_scc.  Remove argument from
12165         add_edge call.
12166         * graphds.c: New file.
12167         * graphds.h: New file.
12168         * dominance.c: Include vecprim.h, pointer-set.h and graphds.h.
12169         (get_dominated_by, get_dominated_by_region): Change return type to
12170         vector.
12171         (verify_dominators): Recompute all dominators and compare the results.
12172         (recount_dominator): Renamed to ...
12173         (recompute_dominator): ... this.  Do not check that the block is
12174         dominated by entry.
12175         (iterate_fix_dominators): Reimplemented.
12176         (prune_bbs_to_update_dominators, root_of_dom_tree,
12177         determine_dominators_for_sons): New functions.
12178         * et-forest.c (et_root): New function.
12179         * et-forest.h (et_root): Declare.
12180         * Makefile.in (graphds.o): Add.
12181         (cfgloopanal.o): Add graphds.h dependency.
12182         (dominance.o): Add graphds.h, vecprim.h and pointer-set.h dependency.
12183         * basic-block.h (get_dominated_by, get_dominated_by_region,
12184         iterate_fix_dominators): Declaration changed.
12185         (recount_dominator): Renamed to ...
12186         (recompute_dominator): ... this.
12187         * tree-ssa-threadupdate.c (thread_block): Free dominance info.
12188         (thread_through_all_blocks): Do not free dominance info.
12189
12190 2007-06-03  Andreas Schwab  <schwab@suse.de>
12191
12192         * config/m68k/m68k.c (override_options): Don't override
12193         REAL_MODE_FORMAT.
12194         * config/m68k/m68k-modes.def (SF, DF): Define to use
12195         motorola_single_format and motorola_double_format, resp.
12196         * real.c (motorola_single_format): Renamed from
12197         coldfire_single_format.
12198         (motorola_double_format): Renamed from coldfire_double_format.
12199         (encode_ieee_extended): Generate a proper canonical NaN image
12200         respecting canonical_nan_lsbs_set.
12201         (ieee_extended_motorola_format): Set canonical_nan_lsbs_set to
12202         true.
12203         * real.h: Adjust declarations.
12204
12205 2007-06-03  Kaz Kojima  <kkojima@gcc.gnu.org>
12206
12207         PR target/32163
12208         * config/sh/sh.md (symGOT_load): Don't schedule insns when
12209         the symbol is generated with the stack protector.
12210
12211 2007-06-03  Kazu Hirata  <kazu@codesourcery.com>
12212
12213         * config/m68k/m68k.c (m68k_attribute_table): Add "interrupt".
12214         (m68k_get_function_kind): Return m68k_fk_interrupt_handler on
12215         "interrupt".
12216         * doc/extend.texi (interrupt): Mention m68k.
12217
12218 2007-06-02  Uros Bizjak  <ubizjak@gmail.com>
12219
12220         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Call
12221         safe_vector_operand() if input operand is VECTOR_MODE_P operand.
12222         (ix86_expand_sse_pcmpestr): Do not check operands for
12223         "register_operand", when insn operand predicate is "register_operand".
12224         (ix86_expand_sse_pcmpistr): Ditto.
12225
12226 2007-06-02  H.J. Lu  <hongjiu.lu@intel.com>
12227             Uros Bizjak  <ubizjak@gmail.com>
12228
12229         * config/i386/i386.h (enum reg_class) [SSE_FIRST_REG]: New.
12230         (SSE_CLASS_P): Use reg_class_subset_p between SSE_REGS.
12231         (REG_CLASS_NAMES): Add "FIRST_SSE_REG" string.
12232         (REG_CLASS_CONTENTS): Add members of FIRST_SSE_REG class.
12233         * config/i386/constraints.md ("z"): New register constraint
12234         for members of SSE_FIRST_REG class.
12235         * config/i386/i386-modes.def (CCA, CCC, CCO, CCS): New compare modes.
12236         * config/i386/i386.c (regclass_map): Change class of %xmm0 to
12237         SSE_FIRST_REG class.
12238         (put_condition_code) [EQ, NE]: Output suffixes for new compare modes.
12239         (ix86_cc_modes_compatible): Handle CCA, CCC, CCO and CCS modes.
12240         (IX86_BUILTIN_PCMPESTRI128): New for SSE4.2.
12241         (IX86_BUILTIN_PCMPESTRM128): Likewise.
12242         (IX86_BUILTIN_PCMPESTRA128): Likewise.
12243         (IX86_BUILTIN_PCMPESTRC128): Likewise.
12244         (IX86_BUILTIN_PCMPESTRO128): Likewise.
12245         (IX86_BUILTIN_PCMPESTRS128): Likewise.
12246         (IX86_BUILTIN_PCMPESTRZ128): Likewise.
12247         (IX86_BUILTIN_PCMPISTRI128): Likewise.
12248         (IX86_BUILTIN_PCMPISTRM128): Likewise.
12249         (IX86_BUILTIN_PCMPISTRA128): Likewise.
12250         (IX86_BUILTIN_PCMPISTRC128): Likewise.
12251         (IX86_BUILTIN_PCMPISTRO128): Likewise.
12252         (IX86_BUILTIN_PCMPISTRS128): Likewise.
12253         (IX86_BUILTIN_PCMPISTRZ128): Likewise.
12254         (struct builtin_description): Change "flag" field to unsigned.
12255         (bdesc_pcmpestr): New builtin description table.
12256         (bdesc_pcmpistr): Likewise.
12257         (ix86_init_mmx_sse_builtins): Define int_ftype_v16qi_int_v16qi_int_int,
12258         v16qi_ftype_v16qi_int_v16qi_int_int and int_ftype_v16qi_v16qi_int.
12259         Initialize pcmp[ei]str[im] insns for SSE4.2.
12260         (ix86_expand_sse_pcmpestr): New subroutine of ix86_expand_builtin.
12261         (ix86_expand_sse_pcmpistr): Likewise.
12262         (ix86_expand_builtin): Expand pcmp[ei]str[im] builtins for SSE4.2.
12263         * config/i386/i386.md (UNSPEC_PCMPESTR): New for SSE4.2.
12264         (UNSPEC_PCMPISTR): Likewise.
12265         * config/i386/sse.md (sse4_2_pcmpestr): New insn patern and splitter.
12266         (sse4_2_pcmpestri):New isns pattern.
12267         (sse4_2_pcmpestrm): Likewise.
12268         (sse4_2_pcmpestr_cconly): Likewise.
12269         (sse4_2_pcmpistr): New insn patern and splitter.
12270         (sse4_2_pcmpistri):New isns pattern.
12271         (sse4_2_pcmpistrm): Likewise.
12272         (sse4_2_pcmpistr_cconly): Likewise.
12273         * config/i386/smmintrin.h: Enable pcmp[ei]str[im] intrinsics
12274         in SSE4.2.
12275
12276 2007-06-01  David Daney  <ddaney@avtrex.com>
12277
12278         * config/mips/mips.c (mips_output_mi_thunk): Only load gp if not
12279         LOADGP_ABSOLUTE and not binds_local_p.
12280
12281 2007-06-01  Geoffrey Keating  <geoffk@apple.com>
12282
12283         * config/darwin.h (LINK_SPEC): Pass -fpie through to the linker.
12284
12285 2007-06-01  Ian Lance Taylor  <iant@google.com>
12286
12287         * tree-vrp.c (compare_name_with_value): Always set
12288         used_strict_overflow if we get a result from the variable itself.
12289
12290 2007-06-01  Ian Lance Taylor  <iant@google.com>
12291
12292         PR rtl-optimization/31455
12293         * lower-subreg.c (find_decomposable_subregs): Don't decompose
12294         subregs which have a cast between modes which are not tieable.
12295
12296 2007-06-01  Uros Bizjak  <ubizjak@gmail.com>
12297
12298         * expr.c (force_operand) [DIV, MOD, UDIV, UMOD, ASHIFTRT]: Remove
12299         breaks after return statements.
12300
12301 2007-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
12302
12303         * config/sh/sh.c (fpscr_set_from_mem): Call get_free_reg
12304         only after no_new_pseudos.
12305
12306 2007-05-31  Eric Christopher  <echristo@apple.com>
12307
12308         * expr.c (convert_move): Assert that we don't have a BLKmode
12309         operand.
12310         (store_expr): Handle BLKmode moves by calling emit_block_move.
12311
12312 2007-05-31  Daniel Berlin  <dberlin@dberlin.org>
12313
12314         * c-typeck.c (build_indirect_ref): Include type in error message.
12315         (build_binary_op): Pass types to binary_op_error.
12316         * c-common.c (binary_op_error): Take two type arguments, print out
12317         types with error.
12318         * c-common.h (binary_op_error): Update prototype.
12319
12320 2007-05-31  H.J. Lu  <hongjiu.lu@intel.com>
12321
12322         * config/i386/i386.c: Correct coments on -mno-sse4.
12323
12324 2007-05-31  H.J. Lu  <hongjiu.lu@intel.com>
12325
12326         * config.gcc (i[34567]86-*-*): Add nmmintrin.h to extra_headers.
12327         (x86_64-*-*): Likewise.
12328         * config/i386/i386.c (OPTION_MASK_ISA_MMX_UNSET): New.
12329         (OPTION_MASK_ISA_3DNOW_UNSET): Likewise.
12330         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
12331         (OPTION_MASK_ISA_SSE2_UNSET): Likewise.
12332         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
12333         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
12334         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
12335         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
12336         (OPTION_MASK_ISA_SSE4): Likewise.
12337         (OPTION_MASK_ISA_SSE4_UNSET): Likewise.
12338         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
12339         (ix86_handle_option): Use OPTION_MASK_ISA_*_UNSET.  Handle SSE4.2.
12340         (override_options): Support SSE4.2.
12341         (ix86_build_const_vector): Support SImode and DImode.
12342         (ix86_build_signbit_mask): Likewise.
12343         (ix86_expand_int_vcond): Support V2DImode.
12344         (IX86_BUILTIN_CRC32QI): New for SSE4.2.
12345         (IX86_BUILTIN_CRC32HI): Likewise.
12346         (IX86_BUILTIN_CRC32SI): Likewise.
12347         (IX86_BUILTIN_CRC32DI): Likewise.
12348         (IX86_BUILTIN_PCMPGTQ): Likewise.
12349         (bdesc_crc32): Likewise.
12350         (bdesc_sse_3arg): Likewise.
12351         (ix86_expand_crc32): Likewise.
12352         (ix86_init_mmx_sse_builtins): Support SSE4.2.
12353         (ix86_expand_builtin): Likewise.
12354         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
12355         __SSE4_2__ for -msse4.2.
12356         * config/i386/i386.md (UNSPEC_CRC32): New for SSE4.2.
12357         (CRC32MODE): Likewise.
12358         (crc32modesuffix): Likewise.
12359         (crc32modeconstraint): Likewise.
12360         (sse4_2_crc32<mode>): Likewise.
12361         (sse4_2_crc32di): Likewise.
12362         * config/i386/i386.opt (msse4.2): New for SSE4.2.
12363         (msse4): Likewise.
12364         * config/i386/nmmintrin.h: New. The dummy SSE4.2 intrinsic header file.
12365         * config/i386/smmintrin.h: Add SSE4.2 intrinsics.
12366         * config/i386/sse.md (sse4_2_gtv2di3): New pattern for SSE4.2.
12367         (vcond<mode>): Use SSEMODEI instead of SSEMODE124.
12368         (vcondu<mode>): Likewise.
12369         * doc/extend.texi: Document SSE4.2 built-in functions.
12370         * doc/invoke.texi: Document -msse4.2/-msse4.
12371
12372 2007-05-31  Zdenek Dvorak  <dvorakz@suse.cz>
12373
12374         PR tree-optimization/32160
12375         * tree-predcom.c (predcom_tmp_var): New function.  Mark created
12376         variable as gimple reg.
12377         (initialize_root_vars, initialize_root_vars_lm): Use predcom_tmp_var.
12378
12379 2007-05-31  Kazu Hirata  <kazu@codesourcery.com>
12380
12381         * gcc.c (main): Don't consider linker options when issuing the
12382         warning about a linker input file not being used.
12383
12384 2007-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12385
12386         * tree-vrp.c (compare_names): Initialize sop.
12387
12388 2007-05-30  Dirk Mueller  <dmueller@suse.de>
12389
12390         * cgraphunit.c (cgraph_analyze_function): Remove
12391         computation of inline parameters.
12392
12393 2007-05-30  Uros Bizjak  <ubizjak@gmail.com>
12394
12395         * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Undef before define.
12396
12397 2007-05-30  Richard Sandiford  <richard@codesourcery.com>
12398
12399         * config.gcc (arm-wrs-vxworks): Remove dbxelf.h from tm_file.
12400         Add vx-common.h.  Include vxworks.h between vx-common.h and
12401         arm/vxworks.h.
12402         * config/vx-common.h (DWARF2_UNWIND_INFO): Undefine before
12403         redefining.
12404         * config/vxworks.h (TARGET_ASM_CONSTRUCTOR): Likewise.
12405         (TARGET_ASM_DESTRUCTOR): Likewise.
12406         * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Check arm_arch_xscale
12407         instead of arm_is_xscale.  Use VXWORKS_OS_CPP_BUILTINS.
12408         (OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
12409         (CC1_SPEC): Add -tstrongarm.  Line up backslashes.
12410         (VXWORKS_ENDIAN_SPEC): Define.
12411         (ASM_SPEC): Add VXWORKS_ENDIAN_SPEC.
12412         (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine to their
12413         VXWORKS_* equivalents.
12414         (LINK_SPEC): Likewise, but add VXWORKS_ENDIAN_SPEC.
12415         (ASM_FILE_START): Delete.
12416         (TARGET_VERSION): Reformat.
12417         (FPUTYPE_DEFAULT, FUNCTION_PROFILER): Define.
12418         (DEFAULT_STRUCTURE_SIZE_BOUNDARY): Define.
12419         * config/arm/t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Define.
12420         (FPBIT, DPBIT): Define.
12421         (fp-bit.c, dp-bit.c): New rules.
12422         (MULTILIB_OPTIONS): Add strongarm, -mrtp and -mrtp/-fPIC multilibs.
12423         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Define.
12424         * config/arm/arm-protos.h (arm_emit_call_insn): Declare.
12425         * config/arm/arm.h: Include vxworks-dummy.h.
12426         * config/arm/arm.c (arm_elf_asm_constructor, arm_elf_asm_destructor):
12427         Mark with ATTRIBUTE_UNUSED.
12428         (arm_override_options): Do not allow VxWorks RTP PIC to be used
12429         for Thumb.  Force r9 to be the PIC register for VxWorks RTPs and
12430         make it incompatible with -msingle-pic-base.
12431         (arm_function_ok_for_sibcall): Return false for calls that might
12432         go through a VxWorks PIC PLT entry.
12433         (require_pic_register): New function, split out from...
12434         (legitimize_pic_address): ...here.  Do not use GOTOFF accesses
12435         for VxWorks RTPs.
12436         (arm_load_pic_register): Handle the VxWorks RTP initialization
12437         sequence.  Use pic_reg as a shorthand for cfun->machine->pic_reg.
12438         (arm_emit_call_insn): New function.
12439         (arm_assemble_integer): Do not use GOTOFF accesses for VxWorks RTP.
12440         * config/arm/arm.md (UNSPEC_PIC_OFFSET): New unspec number.
12441         (pic_offset_arm): New pattern.
12442         (call, call_value): Use arm_emit_call_insn.
12443         (call_internal, call_value_internal): New expanders.
12444         * config/arm/lib1funcs.asm (__PLT__): Define to empty for
12445         VxWorks unless __PIC__.
12446
12447 2007-05-30  Eric Christopher  <echristo@gmail.com>
12448
12449         * genrecog.c: Include regs.h in generated file.
12450         * genemit.c: Ditto. Fix up formatting.
12451         * config/mn10300/constraints.md: New.
12452         * config/mn10300/mn10300.md: Include.
12453         * config/mn10300/mn10300.c(mn10300_secondary_reload_class):
12454         Fix up for removed macro.
12455         * config/mn10300/predicates.md (call_address_operand): Ditto.
12456         * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Delete.
12457         (CONST_OK_FOR_I): Ditto.
12458         (CONST_OK_FOR_J): Ditto.
12459         (CONST_OK_FOR_K): Ditto.
12460         (CONST_OK_FOR_L): Ditto.
12461         (CONST_OK_FOR_M): Ditto.
12462         (CONST_OK_FOR_N): Ditto.
12463         (CONST_DOUBLE_OK_FOR_LETTER_P): Ditto.
12464         (OK_FOR_Q): Ditto.
12465         (OK_FOR_R): Ditto.
12466         (OK_FOR_T): Ditto.
12467         (EXTRA_CONSTRAINT): Ditto.
12468
12469 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
12470
12471         * config/i386/i386.h (MASK_64BIT, MASK_MMX, MASK_3DNOW*, MASK_SSE*):
12472         Remove defines.
12473         * config/i386/biarch.h (TARGET_64BIT_DEFAULT): Define to
12474         OPTION_MASK_ISA_64BIT.
12475         * config/i386/i386.c: Rename MASK_* macros to OPTION_MASK_ISA_*.
12476
12477 2007-05-30  Richard Guenther  <rguenther@suse.de>
12478
12479         PR middle-end/32152
12480         * gimplify.c (gimplify_omp_atomic_pipeline): Use correct
12481         types for comparison.
12482         * fold-const.c (fold_comparison): Call maybe_canonicalize_comparison
12483         with original typed arguments.
12484         * config/i386/i386.c (ix86_gimplify_va_arg): Fix type mismatches.
12485
12486 2007-05-30  Jakub Jelinek  <jakub@redhat.com>
12487
12488         PR tree-optimization/31769
12489         * except.c (duplicate_eh_regions): Clear prev_try if
12490         ERT_MUST_NOT_THROW region is inside of ERT_TRY region.
12491
12492 2007-05-30  Zdenek Dvorak  <dvorakz@suse.cz>
12493
12494         * tree-scalar-evolution.c (scev_const_prop): Do not create labels.
12495         * tree-ssa-sink.c (statement_sink_location): Return basic block and
12496         bsi of the location where statements should be inserted.
12497         (sink_code_in_bb): Take bsi from statement_sink_location.
12498         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use bsi_after_labels
12499         instead of bsi_start.
12500         * tree-profile.c (tree_gen_ic_func_profiler): Pass BSI_NEW_STMT to
12501         bsi_insert_after.
12502         * tree-cfg.c (bsi_move_after): Pass BSI_NEW_STMT to bsi_insert_after.
12503         (bsi_move_before): Document inconsistency with bsi_move_after.
12504         (tree_redirect_edge_and_branch): Do not create labels if not necessary.
12505
12506 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
12507
12508         * config/i386/i386.h (TARGET_ABM): New define.
12509         (TARGET_POPCNT): Ditto.
12510         (TARGET_64BIT, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A, TARGET_SSE*):
12511         New temporary defines to redefine from OPTION_ISA_* defines.
12512         (MASK_64BIT, MASK_MMX, MASK_3DNOW, MASK_3DNOW_A, MASK_SSE*):
12513         New temporary defines to redefine from OPTION_MASK_ISA_* defines.
12514         (ix86_isa_flags): New extern int declaration.
12515         (TARGET_SUBTARGET_DEFAULT): New define.
12516         (TARGET_SUBTARGET_ISA_DEFAULT): Ditto.
12517         (TARGET_SUBTARGET32_DEFAULT): Ditto.
12518         (TARGET_SUBTARGET32_ISA_DEFAULT): Ditto.
12519         (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
12520         * config/i386/unix.h: Undef TARGET_SUBTARGET_DEFAULT before define.
12521         * config/i386/darwin.h: Change TARGET_64BIT define to
12522         OPTION_ISA_64BIT.
12523
12524         * config/i386/i386.opt (m3dnowa): Define as undocumented option
12525         using existing "ix86_isa_flags" varible.
12526         (m32, m64): Use existing "ix86_isa_flags" variable.
12527         (mmmx, m3dnow): Ditto.
12528         (msse, msse2, msse3, mssse3, msse4.1, msse4a): Ditto.
12529         (mabm): Define as non-negative option using "x86_abm" variable.
12530         (mpopcnt): Define as non-negative option using "x86_popcnt" variable.
12531
12532         * config/i386/i386.c (ix86_arch_features) [X86_ARCH_CMOVE]:
12533         Rewrite feature test bitmap.
12534         (ix86_isa_flags): New initialized global int varible.
12535         (ix86_isa_flags_explicit): New static int variable.
12536         (ix86_handle_option): Set "ix86_isa_flags_explicit" when mmmx, m3dnow,
12537         msse, msse2, msse3, msse4.1 and msse4a option is processed.  Change
12538         i86_isa_flags and ix86_isa_flags_explicit, not target_flags and
12539         target_flags_explicit.
12540         (override_options): Remove "target_enable" and "target_disable" fields
12541         from "struct ptt". Update processor_target_table accordingly. Remove
12542         PTA_PREFETCH_SSE from processor_alias_table entry if PTE_SSE is
12543         defined and rearrange PTA_* bits.  Use "ix86_isa_flags" instead of
12544         "target_flags" and "ix86_isa_flags_explicit" instead of
12545         "target_flags_explicit" when masked with MASK_64BIT, MASK_MMX,
12546         MASK_3DNOW, MASK_3DNOW_A or MASK_SSE*.  Set "x86_abm" to true when
12547         PTA_ABM is set in processor_alias_table flags entry.  Set "x86_popcnt"
12548         to true when either of PTA_POPCNT or PTA_ABM is set in
12549         processor_alias_table flags entry.  Set "x86_prefetch_sse" to true
12550         when either of PTA_PREFETCH_SSE or PTA_SSE is set in
12551         processor_alias_table flags entry.  Remove handling of
12552         "target_enable" and "target_disable" fields of processor_target_table.
12553         Mask "target_flags" with TARGET_SUBTARGET32_DEFAULT for 32-bit
12554         targets or with TARGET_SUBTARGET64_DEFAULT for 64-bit targets.
12555         Mask "ix86_isa_flags" with TARGET_SUBTARGET32_ISA_DEFAULT for 32-bit
12556         targets or with TARGET_SUBTARGET64_ISA_DEFAULT for 64-bit targets.
12557         (def_builtin): Mask "mask" variable with "ix86_isa_flags", not
12558         "target_flags".
12559         (TARGET_DEFAULT_TARGET_FLAGS): Do not include TARGET_64BIT_DEFAULT.
12560
12561 2007-05-29  David Daney  <ddaney@avtrex.com>
12562
12563         PR gcc/31975
12564         * config/mips/mips.c (mips_output_mi_thunk): Emit
12565         NOTE_INSN_PROLOGUE_END at beginning of the thunk.
12566
12567 2007-05-29  Hui-May Chang  <hm.chang@apple.com>
12568         * config/i386/i386.c (ix86_function_regparm): Added checking of
12569         ix86_force_align_arg_pointer to determine the number of
12570         register parameters.
12571
12572 2007-05-29  Zdenek Dvorak  <dvorakz@suse.cz>
12573
12574         * tree-vectorizer.h (DR_MISALIGNMENT): Cast aux to integer.
12575         (SET_DR_MISALIGNMENT): New.
12576         * tree-vect-analyze.c (vect_compute_data_ref_alignment,
12577         vect_update_misalignment_for_peel, vect_enhance_data_refs_alignment):
12578         Use SET_DR_MISALIGNMENT.
12579         * tree-predcom.c (split_data_refs_to_components): Cast dr->aux from
12580         pointer.
12581         * tree-data-ref.c (create_data_ref, compute_all_dependences,
12582         find_loop_nest): Export.
12583         * tree-data-ref.h (struct data_reference): Change aux field to pointer.
12584         (create_data_ref, compute_all_dependences, find_loop_nest): Declare.
12585         * tree-ssa-loop-prefetch.c: Include tree-data-ref.h.
12586         (L1_CACHE_SIZE_BYTES, L2_CACHE_SIZE_BYTES, NONTEMPORAL_FRACTION):
12587         New macros.
12588         (struct mem_ref): Add field reuse_distance.
12589         (find_or_create_group, record_ref): Use XNEW instead of xcalloc.
12590         Initialize reuse_distance field.
12591         (issue_prefetch_ref): Select temporality of prefetch according to
12592         reuse_distance.
12593         (volume_of_references, volume_of_dist_vector, add_subscript_strides,
12594         self_reuse_distance, determine_loop_nest_reuse): New functions.
12595         (loop_prefetch_arrays): Call determine_loop_nest_reuse.
12596         (tree_ssa_prefetch_arrays): Dump L2 cache size.
12597         * Makefile.in (tree-ssa-loop-prefetch.o): Add TREE_DATA_REF_H
12598         dependency.
12599
12600 2007-05-29  Daniel Berlin  <dberlin@dberlin.org>
12601
12602         * tree-ssa-alias.c: Add aliasing overview.
12603
12604 2007-05-29  Zuxy Meng  <zuxy.meng@gmail.com>
12605             Danny Smith  <dannysmith@users.sourceforge.net>
12606
12607         PR target/29498
12608         * config/i386/t-crtfm: Compile crtfastmath.o with
12609         -minline-all-stringops.
12610         * config/i386/cygwin.h (ENDFILE_SPECS): Add crtfastmath.o.
12611         * config/i386/mingw32.h (ENDFILE_SPECS): Add crtfastmath.o.
12612
12613 2007-05-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12614
12615         * doc/md.texi: Document constraints on HP PA-RISC.
12616
12617         * pa/constraints.md: New file.
12618         * pa.md: Include constraints.md.
12619         * pa.c (cint_ok_for_move): Avoid using CONST_OK_FOR_LETTER_P.
12620         (integer_store_memory_operand, ldil_cint_p): New functions.
12621         * pa-protos.h (integer_store_memory_operand, ldil_cint_p): Declare.
12622         * pa.h (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
12623         IS_RELOADING_PSEUDO_P, EXTRA_CONSTRAINT): Remove.
12624         * pa32-regs.h (REG_CLASS_FROM_LETTER): Remove.
12625         * pa64-regs.h (REG_CLASS_FROM_LETTER): Remove.
12626
12627 2007-05-28  Andrew Pinski  <Andrew_pinski@playstation.sony.com>
12628
12629         PR c/31339
12630         * c-typeck.c (build_unary_op <case PREINCREMENT_EXPR,
12631         case POSTINCREMENT_EXPR, case PREDECREMENT_EXPR,
12632         case POSTDECREMENT_EXPR>): Return the error_mark_node
12633         if either the real or imaginary parts would an
12634         error_mark_node.
12635
12636 2007-05-28  Daniel Berlin  <dberlin@dberlin.org>
12637
12638         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Release LHS SSA
12639         name when we remove it from a call.
12640
12641 2007-05-28  Kazu Hirata  <kazu@codesourcery.com>
12642
12643         * targhooks.c (default_narrow_bitfield): Remove.
12644         * targhooks.h: Remove the prototype for
12645         default_narrow_bitfield.
12646
12647         * langhooks-def.h: Remove the prototype for
12648         hook_get_alias_set_0.
12649         * langhooks.c (hook_get_alias_set_0): Remove.
12650
12651         * global.c (EXECUTE_IF_CONFLICT): Remove.
12652
12653 2007-05-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12654
12655         PR tree-opt/32100
12656         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't
12657         return true when truth_value_p is true and the type
12658         is of signed:1.
12659
12660 2007-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
12661
12662         * doc/install.texi (Prerequisites): We no longer require Autoconf
12663         2.13 for the top-level.
12664
12665 2007-05-28  Uros Bizjak  <ubizjak@gmail.com>
12666
12667         * target/i386/i386.c (ix86_expand_vector_move): Expand unaligned
12668         memory access via x86_expand_vector_move_misalign() only for
12669         TImode values on 32-bit targets.
12670
12671 2007-05-28  Razya Ladelsky  <razya@il.ibm.com>
12672
12673         * matrix-reorg.c: New file. Implement matrix flattening and
12674         transposing optimization.
12675         * tree-pass.h: Add matrix reorg pass.
12676         * common.opt: Add fipa-mreorg flag.
12677         * Makefile.in: Add matrix-reorg.c.
12678         * passes.c: Add matrix reorg pass.
12679         * varpool.c (add_new_static_var): New function.
12680         * cgraph.h (add_new_static_var): Declare.
12681
12682 2007-05-27  Eric Christopher  <echristo@apple.com>
12683
12684         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update
12685         sp_offset depending on stack size. Save r12 depending
12686         on registers we're saving later.
12687         (rs6000_emit_epilogue): Update sp_offset depending only
12688         on stack size.
12689
12690 2007-05-27  Zdenek Dvorak  <dvorakz@suse.cz>
12691
12692         * tree-vrp.c (execute_vrp): Do not check whether current_loops == NULL.
12693         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
12694         * ifcvt.c (if_convert): Ditto.
12695         * tree-ssa-threadupdate.c (thread_block): Ditto.
12696         (thread_through_all_blocks): Ditto.  Assert that loops were analysed.
12697         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
12698         verify_loop_closed_ssa): Check number_of_loops instead of
12699         current_loops.
12700         * predict.c (tree_estimate_probability): Ditto.
12701         * tree-if-conv.c (main_tree_if_conversion): Ditto.
12702         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
12703         * modulo-sched.c (sms_schedule): Ditto.
12704         * tree-scalar-evolution.c (scev_const_prop): Ditto.
12705         (scev_finalize): Do not do anything if scev analysis was not
12706         initialized.
12707         * cfgloopanal.c (mark_irreducible_loops): Do not check whether
12708         current_loops == NULL.
12709         (mark_loop_exit_edges): Check number_of_loops instead of current_loops.
12710         * loop-init.c (loop_optimizer_init): Do not free current_loops when
12711         there are no loops.
12712         (loop_optimizer_finalize): Assert that loops were analyzed.
12713         (rtl_move_loop_invariants, rtl_unswitch, rtl_unroll_and_peel_loops,
12714         rtl_doloop): Check number_of_loops instead of current_loops.
12715         * tree-ssa-loop.c (tree_loop_optimizer_init): Do not check whether
12716         current_loops == NULL.
12717         (tree_ssa_loop_init, tree_ssa_loop_im, tree_ssa_loop_unswitch,
12718         gate_tree_vectorize tree_linear_transform, check_data_deps,
12719         tree_ssa_loop_ivcanon, tree_ssa_empty_loop, tree_ssa_loop_bounds,
12720         tree_complete_unroll, tree_ssa_loop_prefetch, tree_ssa_loop_ivopts):
12721         Check number_of_loops instead of current_loops.
12722         (tree_ssa_loop_done): Do not check whether current_loops == NULL.
12723         * tree-ssa-pre.c (fini_pre): Do not take do_fre argument.  Always
12724         free loops if available.
12725         (execute_pre): Do not pass do_fre to fini_pre.
12726
12727 2007-05-27  Tobias Burnus  <burnus@net-b.de>
12728
12729         PR middle-end/32083
12730         * real.c (mpfr_from_real): Fix sign of -Inf.
12731
12732 2007-05-27  H.J. Lu  <hongjiu.lu@intel.com>
12733
12734         * tree-vect-transform.c (vectorizable_conversion): Initialize
12735         tree_code variables to ERROR_MARK.
12736         (vectorizable_type_demotion): Likewise.
12737         (vectorizable_type_promotion): Likewise.
12738
12739 2007-05-26  Uros Bizjak  <ubizjak@gmail.com>
12740
12741         PR target/32065
12742         * config/i386/i386.md (movti): Handle push operands via
12743         ix86_expand_push().
12744
12745 2007-05-26  Kazu Hirata  <kazu@codesourcery.com>
12746
12747         * basic-block.h: Remove the prototype for merge_seq_blocks.
12748         * cfgcleanup.c (merge_seq_blocks): Remove.
12749
12750         * tree-flow.h: Remove the prototype for is_aliased_with.
12751         * tree-ssa-alias.c (is_aliased_with): Remove.
12752
12753 2007-05-26  H.J. Lu  <hongjiu.lu@intel.com>
12754
12755         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): New.
12756
12757         * config/i386/i386.c (ix86_expand_sse4_unpack): New.
12758
12759         * config/i386/sse.md (vec_unpacku_hi_v16qi): Call
12760         ix86_expand_sse4_unpack if SSE4.1 is enabled.
12761         (vec_unpacks_hi_v16qi): Likewise.
12762         (vec_unpacku_lo_v16qi): Likewise.
12763         (vec_unpacks_lo_v16qi): Likewise.
12764         (vec_unpacku_hi_v8hi): Likewise.
12765         (vec_unpacks_hi_v8hi): Likewise.
12766         (vec_unpacku_lo_v8hi): Likewise.
12767         (vec_unpacks_lo_v8hi): Likewise.
12768         (vec_unpacku_hi_v4si): Likewise.
12769         (vec_unpacks_hi_v4si): Likewise.
12770         (vec_unpacku_lo_v4si): Likewise.
12771         (vec_unpacks_lo_v4si): Likewise.
12772
12773 2007-05-26  Kazu Hirata  <kazu@codesourcery.com>
12774
12775         * c-typeck.c, config/arm/arm.c, config/darwin.c,
12776         config/sh/symbian.c, gcc.c, ipa-cp.c, ipa-inline.c, loop-iv.c,
12777         omega.c, tree-ssa-loop-niter.c, treestruct.def: Fix typos and
12778         follow spelling conventions in various
12779         warning/error/diagnostic messages.
12780
12781         * config/i386/i386.c, config/pa/pa.c, config/spu/spu.c,
12782         df-problems.c, df-scan.c, domwalk.c, ebitmap.c, ebitmap.h,
12783         fold-const.c, gcc.c, ipa-type-escape.c, omega.c, omega.h,
12784         tree-ssa-coalesce.c, tree-ssa-live.c, tree-ssa-structalias.c,
12785         tree-vrp.c: Fix comment typos.  Follow spelling conventions.
12786         * doc/tm.texi: Follow spelling conventions.
12787
12788 2007-05-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12789
12790         PR tree-opt/32090
12791         * tree-ssa-forwprop.c
12792         (forward_propagate_addr_into_variable_array_index): Remove
12793         the lhs argument.  Use the type of def_rhs instead of lhs.
12794         (forward_propagate_addr_expr_1): Update use of
12795         forward_propagate_addr_into_variable_array_index.
12796
12797 2007-05-25  Sandra Loosemore  <sandra@codesourcery.com>
12798             Nigel Stephens  <nigel@mips.com>
12799
12800         * config/mips/mips.c (mips_attribute_table): Add "near" and "far"
12801         function attributes, "far" being an alias for "long_call".
12802         (TARGET_COMP_TYPE_ATTRIBUTES): Define as mips_comp_type_attributes.
12803         (mips_near_type_p, mips_far_type_p): New.
12804         (mips_comp_type_attributes): New function to check that attributes
12805         attached to a function type are compatible.
12806         (mips_output_mi_thunk): Test SYMBOL_REF_LONG_CALL_P() rather than
12807         TARGET_LONG_CALLS when deciding whether we can do a direct sibcall
12808         to the target function of the thunk.
12809         (mips_encode_section_info): Check for "near" and "far" function
12810         attributes, and always set the SYMBOL_FLAG_LONG_CALL bit explicitly.
12811
12812         * config/mips/predicates.md (const_call_insn_operand): Test only
12813         SYMBOL_REF_LONG_CALL_P() and not TARGET_LONG_CALLS.
12814
12815         * doc/extend.texi (Function Attributes): Document MIPS "near" and
12816         "far" attributes.
12817
12818         * testsuite/gcc.target/mips/near-far-1.c: New test case.
12819         * testsuite/gcc.target/mips/near-far-2.c: New test case.
12820         * testsuite/gcc.target/mips/near-far-3.c: New test case.
12821         * testsuite/gcc.target/mips/near-far-4.c: New test case.
12822
12823 2007-05-25  Eric Christopher  <echristo@apple.com>
12824
12825         * config.gcc: Add i386/t-fprules-softfp64 and soft-fp/t-softfp
12826         to x86-darwin configurations.
12827         * config/i386/t-darwin: Add softfp support.
12828         * config/i386/t-darwin64: Ditto.
12829         * config/i386/sfp-machine.h: If mach then don't use
12830         aliasing, emit a stub to call.
12831
12832 2007-05-25  Kazu Hirata  <kazu@codesourcery.com>
12833
12834         * cfglayout.c, cgraphunit.c, config/avr/avr.c, fold-const.c,
12835         haifa-sched.c, optabs.h, tree-affine.c, tree-data-ref.c,
12836         tree-predcom.c, tree-ssa-alias-warnings.c,
12837         tree-ssa-forwprop.c, tree-vect-analyze.c, tree-vrp.c: Fix
12838         comment typos.  Follow spelling conventions.
12839         * doc/cpp.texi, doc/invoke.texi: Fix typos.
12840
12841 2007-05-26  Uros Bizjak  <ubizjak@gmail.com>
12842
12843         PR target/32065
12844         * target/i386/i386.c (ix86_expand_vector_move): Force SUBREGs of
12845         constants into memory.  Expand unaligned memory references for
12846         SSE modes via x86_expand_vector_move_misalign() function.
12847
12848 2007-05-25  Uros Bizjak  <ubizjak@gmail.com>
12849
12850         * config/i386/sse.md (*vec_extractv2di_1_sse2): Do not calculate
12851         "memory" attribute for "sseishft" type insn without operands[2].
12852
12853 2007-05-25  Dirk Mueller  <dmueller@suse.de>
12854             Marcus Meissner <meissner@suse.de>
12855
12856         * doc/extend.texi (alloc_size): New attribute.
12857         * c-common.c (handle_alloc_size_attribute): New.
12858         * tree-object-size.c (alloc_object_size): Use alloc_size
12859         attribute, if available.
12860
12861 2007-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12862
12863         * config/i386/i386.c (__builtin_ia32_vec_ext_v2df): Mark it
12864         with MASK_SSE2.
12865         (__builtin_ia32_vec_ext_v2di): Likewise.
12866         (__builtin_ia32_vec_ext_v4si): Likewise.
12867         (__builtin_ia32_vec_ext_v8hi): Likewise.
12868         (__builtin_ia32_vec_ext_v16qi): Likewise.
12869         (__builtin_ia32_vec_set_v8hi): Likewise.
12870
12871 2007-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12872
12873         * config/i386/sse.md (*vec_extractv2di_1_sse2): Correct shift.
12874
12875 2007-05-25  Richard Sandiford  <richard@codesourcery.com>
12876
12877         * config/arm/arm-protos.h (arm_encode_call_attribute): Delete.
12878         (arm_is_longcall_p): Rename to...
12879         (arm_is_long_call_p): ...this.  Take a single tree argument and
12880         return a bool.
12881         * config/arm/arm.h (CALL_SHORT, CALL_LONG, CALL_NORMAL): Delete.
12882         (CUMULATIVE_ARGS): Remove call_cookie.
12883         (SHORT_CALL_FLAG_CHAR, LONG_CALL_FLAG_CHAR, ENCODED_SHORT_CALL_ATTR_P)
12884         (ENCODED_LONG_CALL_ATTR_P): Delete.
12885         (ARM_NAME_ENCODING_LENGTHS): Remove SHORT_CALL_FLAG_CHAR and
12886         LONG_CALL_FLAG_CHAR cases.
12887         (ARM_DECLARE_FUNCTION_SIZE): Delete.
12888         * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Don't use
12889         ARM_DECLARE_FUNCTION_SIZE.
12890         * config/arm/arm.c (arm_init_cumulative_args): Don't set call_cookie.
12891         (arm_function_arg): Return const0_rtx for VOIDmode arguments.
12892         (arm_encode_call_attribute, current_file_function_operand): Delete.
12893         (arm_function_in_section_p): New function.
12894         (arm_is_longcall_p): Rename to...
12895         (arm_is_long_call_p): ...this.  Take the target function as a single
12896         argument and return a bool.  Do not rely on call cookies.  Check
12897         whether the target symbol is in the same section as the current
12898         function, not just the same compilation unit.
12899         (arm_function_ok_for_sibcall): Use arm_is_long_call_p.
12900         (arm_encode_section_info): Don't encode a call type.
12901         * config/arm/arm.md (call, call_value): Update calls to
12902         arm_is_long(_)call_p.  Simplify logic.
12903         (*call_symbol, *call_value_symbol, *call_insn, *call_value_insn):
12904         Update calls to arm_is_long(_)call_p.
12905
12906 2007-05-25  Richard Guenther  <rguenther@suse.de>
12907
12908         PR tree-optimization/31982
12909         * tree-ssa-forwprop.c
12910         (forward_propagate_addr_into_variable_array_index): Handle arrays
12911         with element size one.
12912
12913 2007-05-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12914
12915         * config/spu/spu.md (smulsi3_highpart): Unshare the rtl chain.
12916         (umulsi3_highpart): Likewise.
12917
12918 2007-05-24  Ian Lance Taylor  <iant@google.com>
12919
12920         PR rtl-optimization/32069
12921         * regclass.c (regclass): Don't crash if the entry in regno_reg_rtx
12922         is NULL.
12923
12924 2007-05-24  Ollie Wild  <aaw@google.com>
12925
12926         * doc/cpp.texi (Common Predefined Macros): Add __COUNTER__
12927         description.
12928
12929 2007-05-24  Richard Sandiford  <rsandifo@nildram.co.uk>
12930
12931         * postreload-gcse.c (reg_changed_after_insn_p): New function.
12932         (oprs_unchanged_p): Use it to check all registers in a REG.
12933         (record_opr_changes): Look for clobbers in CALL_INSN_FUNCTION_USAGE.
12934         (reg_set_between_after_reload_p): Delete.
12935         (reg_used_between_after_reload_p): Likewise.
12936         (reg_set_or_used_since_bb_start): Likewise.
12937         (eliminate_partially_redundant_load): Use reg_changed_after_insn_p
12938         and reg_used_between_p instead of reg_set_or_used_since_bb_start.
12939         Use reg_set_between_p instead of reg_set_between_after_reload_p.
12940         * rtlanal.c (reg_set_p): Check whether REG overlaps
12941         regs_invalidated_by_call, rather than just checking the
12942         membership of REGNO (REG).
12943
12944 2007-05-24  Zdenek Dvorak  <dvorakz@suse.cz>
12945
12946         * doc/passes.texi: Document predictive commoning.
12947         * doc/invoke.texi (-fpredictive-commoning): Document.
12948         * opts.c (decode_options): Enable flag_predictive_commoning on -O3.
12949         * tree-ssa-loop-im.c (get_lsm_tmp_name): Export.  Allow
12950         adding indices to the generated name.
12951         (schedule_sm): Pass 0 to get_lsm_tmp_name.
12952         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Export.
12953         * tree-pretty-print.c (op_symbol_1): Renamed to ...
12954         (op_symbol_code): ... and exported.
12955         (dump_omp_clause, op_symbol): Use op_symbol_code
12956         instead of op_symbol_1.
12957         * tree-pass.h (pass_predcom): Declare.
12958         * timevar.def (TV_PREDCOM): New timevar.
12959         * tree-ssa-loop.c (run_tree_predictive_commoning,
12960         gate_tree_predictive_commoning, pass_predcom): New.
12961         * tree-data-ref.c (find_data_references_in_loop): Find the
12962         references in dominance order.
12963         (canonicalize_base_object_address): Ensure that the result has
12964         pointer type.
12965         (dr_analyze_innermost): Export.
12966         (create_data_ref): Code to fail for references with invariant
12967         address moved ...
12968         (find_data_references_in_stmt): ... here.
12969         * tree-data-ref.h (dr_analyze_innermost): Declare.
12970         * tree-affine.c: Include tree-gimple.h and hashtab.h.
12971         (aff_combination_find_elt, name_expansion_hash,
12972         name_expansion_eq, tree_to_aff_combination_expand,
12973         double_int_constant_multiple_p, aff_combination_constant_multiple_p):
12974         New functions.
12975         * tree-affine.h (aff_combination_constant_multiple_p,
12976         tree_to_aff_combination_expand): Declare.
12977         * tree-predcom.c: New file.
12978         * common.opt (fpredictive-commoning): New option.
12979         * tree-flow.h (op_symbol_code, tree_predictive_commoning,
12980         stmt_dominates_stmt_p, get_lsm_tmp_name): Declare.
12981         * Makefile.in (tree-predcom.o): Add.
12982         (tree-affine.o): Add TREE_GIMPLE_H dependency.
12983         * passes.c (init_optimization_passes): Add dceloop after
12984         copy propagation in loop optimizer.  Add predictive commoning
12985         to loop optimizer passes.
12986
12987 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
12988
12989         * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Correct
12990         default hook.
12991
12992 2007-05-24  Jan Hubicka  <jh@suse.cz>
12993
12994         * gengenrtl.c (gendecl, gendef): Output the gens annotated for
12995         statistics.
12996         (genheader): Include statistics.h.
12997
12998         * doc/invoke.texi (-fdump-unnumbered): Update docs when line number
12999         notes are gone.
13000         * print-rtl.c (flag_dump_unnumbered): Update comments.
13001         (print_rtl): Fix my previous change.
13002         * emit-rtl.c (emit_note_before, emit_note_after): Clear out note
13003         specific data.
13004
13005 2007-05-24  Zdenek Dvorak  <dvorakz@suse.cz>
13006
13007         PR middle-end/32018
13008         * tree-ssa-threadupdate.c (thread_through_loop_header): Use
13009         set_loop_copy.
13010         (thread_through_all_blocks): Call initialize_original_copy_tables
13011         and free_original_copy_tables.
13012         * cfgloopmanip.c (duplicate_loop, duplicate_loop_to_header_edge):
13013         Use set_loop_copy.
13014         * tree-cfg.c (tree_duplicate_sese_region): Ditto.
13015         * cfghooks.c (duplicate_block): Use get_loop_copy.
13016         * cfg.c: Include cfgloop.h.
13017         (loop_copy): New hash table.
13018         (initialize_original_copy_tables): Initialize loop_copy table.
13019         (free_original_copy_tables): Free loop_copy table.
13020         (copy_original_table_clear, copy_original_table_set,
13021         set_loop_copy, get_loop_copy): New functions.
13022         (set_bb_original, set_bb_copy): Use copy_original_table_set.
13023         * cfgloop.h (struct loop): Remove copy field.
13024         * Makefile.in (cfg.o): Add CFGLOOP_H dependency.
13025         * basic-block.h (set_loop_copy, get_loop_copy): Declare.
13026
13027 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13028
13029         * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 for
13030         -msse/-msse2/-msse3.
13031
13032 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13033
13034         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Mark
13035         __builtin_ia32_vec_set_v2di with MASK_64BIT.
13036
13037 2007-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
13038
13039         PR target/27067
13040         * doc/tm.texi (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Document.
13041         * targhooks.h (default_mangle_decl_assembler_name): Declare
13042         default hook.
13043         * targhooks.c (default_mangle_decl_assembler_name): Define
13044         default hook.
13045         * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) New. Set to
13046         default hook.
13047         * target.h (struct gcc_target): Add mangle_decl_assembler_name field.
13048         * langhooks.c (lhd_set_decl_assembler_name): Call
13049         targetm.mangle_decl_assembler_name for names with global scope.
13050
13051         * config/i386/cygming.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) Override
13052         default.
13053         (ASM_OUTPUT_DEF_FROM_DECLS): Simplify to use DECL_ASSEMBLER_NAME.
13054         * config/i386/i386-protos.h (i386_pe_mangle_decl_assembler_name):
13055         Declare.
13056         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
13057         New. Factored out of i386_pe_encode_section_info.
13058         (gen_stdcall_or_fastcall_suffix): Get name identifier as argument.
13059         Move check for prior decoration of stdcall
13060         symbols to i386_pe_encode_section_info.
13061         (i386_pe_encode_section_info): Adjust call to
13062         gen_stdcall_or_fastcall_suffix.  Use
13063         i386_pe_maybe_mangle_decl_assembler_name, if needed.
13064         (i386_pe_mangle_decl_assembler_name): New. Wrap
13065         i386_pe_maybe_mangle_decl_assembler_name.
13066
13067 2007-05-16  Rafael Avila de Espindola  <espindola@google.com>
13068
13069         * c-common.c (c_common_signed_or_unsigned_type): Delay the check for
13070         INTEGRAL_TYPE_P and TYPE_UNSIGNED.
13071         * langhooks.c (get_signed_or_unsigned_type): Don't check for
13072         INTEGRAL_TYPE_P or TYPE_UNSIGNED.
13073         (lhd_signed_or_unsigned_type): Check for INTEGRAL_TYPE_P and
13074         TYPE_UNSIGNED.
13075
13076 2007-05-23  Sandra Loosemore  <sandra@codesourcery.com>
13077             Nigel Stephens  <nigel@mips.com>
13078             Richard Sandiford  <richard@codesourcery.com>
13079
13080         Fix up MIPS16 hard float and add support for complex.
13081
13082         * config/mips/mips.h (TARGET_HARD_FLOAT_ABI): New.
13083         (TARGET_SOFT_FLOAT_ABI): New.
13084         (TARGET_CPU_CPP_BUILTINS): Define __mips_hard_float and
13085         __mips_soft_float to reflect the ABI in use, not whether the
13086         FPU is directly accessible (e.g., in MIPS16 mode).
13087         (UNITS_PER_HWFPVALUE): Use TARGET_SOFT_FLOAT_ABI.
13088         (UNITS_PER_FPVALUE): Likewise.
13089
13090         * config/mips/mips.c (mips_expand_call): Remove redundant
13091         TARGET_MIPS16 check.
13092         (mips_arg_regno): New.
13093         (function_arg_advance): When setting bits in cum->fp_code for
13094         MIPS16, don't subtract 1 from cum->arg_number, since it is now
13095         zero-based.
13096         (function_arg): Use mips_arg_regno.
13097         (mips_return_mode_in_fpr_p): New.
13098         (mips16_call_stub_mode_suffix): New.
13099         (mips16_cfun_returns_in_fpr_p): New.
13100         (mips_save_reg_p): Use mips16_cfun_returns_in_fpr_p.
13101         (mips_output_function_prologue): Test mips16_hard_float, not
13102         !TARGET_SOFT_FLOAT, to decide when a function stub is required.
13103         (mips_expand_epilogue): Call MIPS16 helper routines to copy
13104         return value into a floating-point register.
13105         (mips_can_use_return_insn): Use mips16_cfun_returns_in_fpr_p.
13106         (mips_function_value): Rewrite to use mips_return_mode_in_fpr_p.
13107         (mips16_fp_args): Handle MIPS32r2 ISA which supports
13108         TARGET_FLOAT64, and use mfhc1/mthc1 to copy the most significant
13109         word of double arguments from or to the high bits of 64-bit
13110         floating point registers.
13111         (build_mips16_function_stub): Fill in DECL_RESULT for stubdecl.
13112         (mips16_fpret_double): New helper function.
13113         (build_mips16_call_stub): Use mips16_return_mode_in_fpr_p.  Add
13114         support for complex modes.  Fill in DECL_RESULT for stubdecl.
13115         (mips_init_libfuncs): Remove redundant TARGET_MIPS16 check.
13116
13117         * config/mips/mips16.S
13118         (RET, ARG1, ARG2): New.
13119         (MERGE_GPRf, MERGE_GPRt): New.
13120         (DELAYt, DELAYf): New.
13121         (MOVE_SF_BYTE0, MOVE_SI_BYTE0): New.
13122         (MOVE_SF_BYTE4, MOVE_SF_BYTE8): New.
13123         (MOVE_DF_BYTE0, MOVE_DF_BYTE8): New.
13124         (MOVE_SF_RET, MOVE_SC_RET, MOVE_DF_RET, MOVE_DC_RET, MOVE_SI_RET): New.
13125         (SFOP): Renamed to...
13126         (OPSF3): This, and macro-ified.  Updated all uses.
13127         (SFOP2): Renamed to...
13128         (OPSF2): This, and macro-ified.  Updated all uses.
13129         (SFCMP): Renamed to...
13130         (CMPSF): This, and macro-ified.  Updated all uses.
13131         (SFREVCMP): Renamed to...
13132         (REVCMPSF): This, and macro-ified.  Updated all uses.
13133         (__mips16_floatsisf, __mips16_fix_truncsfsi): Macro-ified.
13134         (LDDBL1, LDDBL2, RETDBL): Deleted.
13135         (DFOP): Renamed to...
13136         (OPDF3): This, and macro-ified.  Updated all uses.
13137         (DFOP2): Renamed to...
13138         (OPDF2): This, and macro-ified.  Updated all uses.
13139         (__mips16_extendsfdf2, __mips16_truncdfsf2): Macro-ified.
13140         (DFCMP): Renamed to...
13141         (CMPDF): This, and macro-ified.  Updated all uses.
13142         (DFREVCMP): Renamed to...
13143         (REVCMPDF): This, and macro-ified.  Updated all uses.
13144         (__mips16_floatsidf, __mips16_fix_truncdfsi): Macro-ified.
13145         (RET_FUNCTION): New.
13146         (__mips16_ret_sf, __mips16_ret_df): Macro-ified.
13147         (__mips16_ret_sc, __mips16_ret_dc): New.
13148         (STUB_ARGS_0, STUB_ARGS_1, STUB_ARGS_5, STUB_ARGS_9, STUB_ARGS_2,
13149         STUB_ARGS_6, STUB_ARGS_10): New.
13150         (CALL_STUB_NO_RET): New.
13151         (__mips16_call_stub_1): Macro-ified.
13152         (__mips16_call_stub_5): Macro-ified.
13153         (__mips16_call_stub_2): Macro-ified.
13154         (__mips16_call_stub_6): Macro-ified.
13155         (__mips16_call_stub_9): Macro-ified.
13156         (__mips16_call_stub_10): Macro-ified.
13157         (CALL_STUB_RET): New.
13158         (__mips16_call_stub_sf_0): Macro-ified.
13159         (__mips16_call_stub_sf_1): Macro-ified.
13160         (__mips16_call_stub_sf_5): Macro-ified.
13161         (__mips16_call_stub_sf_2): Macro-ified.
13162         (__mips16_call_stub_sf_6): Macro-ified.
13163         (__mips16_call_stub_sf_9): Macro-ified.
13164         (__mips16_call_stub_sf_10): Macro-ified.
13165         (__mips16_call_stub_df_0): Macro-ified.
13166         (__mips16_call_stub_df_1): Macro-ified.
13167         (__mips16_call_stub_df_5): Macro-ified.
13168         (__mips16_call_stub_df_2): Macro-ified.
13169         (__mips16_call_stub_df_6): Macro-ified.
13170         (__mips16_call_stub_df_9): Macro-ified.
13171         (__mips16_call_stub_df_10): Macro-ified.
13172         (__mips16_call_stub_sc_0): New.
13173         (__mips16_call_stub_sc_1): New.
13174         (__mips16_call_stub_sc_5): New.
13175         (__mips16_call_stub_sc_2): New.
13176         (__mips16_call_stub_sc_6): New.
13177         (__mips16_call_stub_sc_9): New.
13178         (__mips16_call_stub_sc_10): New.
13179         (__mips16_call_stub_dc_0): New.
13180         (__mips16_call_stub_dc_1): New.
13181         (__mips16_call_stub_dc_5): New.
13182         (__mips16_call_stub_dc_2): New.
13183         (__mips16_call_stub_dc_6): New.
13184         (__mips16_call_stub_dc_9): New.
13185         (__mips16_call_stub_dc_10): New.
13186
13187         * config/mips/t-elf (LIB1ASMFUNCS): Add MIPS16 floating-point stubs.
13188         * config/mips/t-isa3264 (LIB1ASMFUNCS): Likewise.
13189         * config/mips/t-r2900 (LIB1ASMFUNCS): Likewise.
13190
13191 2007-05-23  Ian Lance Taylor  <iant@google.com>
13192
13193         * doc/invoke.texi (Invoking GCC): Document that the order of the
13194         -l option matters.
13195
13196 2007-05-23  Chen Liqin  <liqin@sunnorth.com.cn>
13197
13198         PR target/30987
13199         * config/score/misc.md (bitclr_c, bitset_c, bittgl_c): Remove.
13200         * config/score/predicate.md (const_pow2, const_npow2): Remove.
13201         * config/score/score.h (ASM_OUTPUT_EXTERNAL): Add ASM_OUTPUT_EXTERNAL
13202         undef.
13203
13204         PR target/30474
13205         * config/score/score.c (score_print_operand): Make sure that only
13206         lower bits are used.
13207
13208 2007-05-22  Ian Lance Taylor  <iant@google.com>
13209
13210         * tree-vrp.c (avoid_overflow_infinity): New static function,
13211         broken out of set_value_range_to_value.
13212         (set_value_range_to_value): Call avoid_overflow_infinity.
13213         (extract_range_from_assert): Likewise.
13214
13215 2007-05-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13216
13217         PR middle-end/31095
13218          * builtins.c (expand_builtin_memmove_args): Strip nops that don't
13219         change the type before looking for a COMPOUND_EXPR.
13220
13221 2007-05-22  Ian Lance Taylor  <iant@google.com>
13222
13223         * lower-subreg.c (decompose_multiword_subregs): If we change an
13224         insn, call remove_retval_note on it.
13225
13226 2007-05-22  Richard Sandiford  <rsandifo@nildram.co.uk>
13227
13228         * regs.h (end_hard_regno): New function.
13229         (END_HARD_REGNO, END_REGNO): New macros.
13230         (add_to_hard_reg_set): New function.
13231         (remove_from_hard_reg_set): Likewise.
13232         (in_hard_reg_set_p): Likewise.
13233         (overlaps_hard_reg_set_p): Likewise.
13234         * bt-load.c (find_btr_reference): Use overlaps_hard_reg_set_p.
13235         (note_btr_set): Use END_HARD_REGNO.
13236         * caller-save.c (setup_save_areas): Use end_hard_regno.
13237         (mark_set_regs): Use END_HARD_REGNO.
13238         (add_stored_regs): Use end_hard_regno.
13239         (mark_referenced_regs): Use add_to_hard_reg_set.
13240         * combine.c (update_table_tick): Use END_REGNO.
13241         (record_value_for_reg): Likewise.
13242         (record_dead_and_set_regs): Likewise.
13243         (get_last_value_validate): Likewise.
13244         (use_crosses_set_p): Likewise.
13245         (reg_dead_at_p_1): Likewise.
13246         (reg_dead_at_p): Likewise.
13247         (mark_used_regs_combine): Use add_to_hard_reg_set.
13248         (move_deaths): Use END_HARD_REGNO.
13249         (reg_bitfield_target_p): Use end_hard_regno.
13250         (distribute_notes): Use END_HARD_REGNO.
13251         * cse.c (mention_regs): Use END_REGNO.
13252         (insert): Use add_to_hard_reg_set.
13253         (invalidate): Use END_HARD_REGNO.
13254         (invalidate_for_call): Likewise.
13255         (exp_equiv_p): Use END_REGNO.
13256         (cse_insn): Likewise.
13257         * cselib.c (cselib_invalidate_regno): Use end_hard_regno.
13258         * df-problems.c (df_urec_mark_reg_change): Use END_HARD_REGNO.
13259         * df-scan.c (df_ref_record): Use END_HARD_REGNO.
13260         * function.c (keep_stack_depressed): Use end_hard_regno.
13261         * global.c (global_alloc): Use end_hard_regno.
13262         (global_conflicts): Use add_to_hard_reg_set instead of
13263         mark_reg_live_nc.
13264         (find_reg): Likewise.
13265         (mark_reg_store): Likewise.
13266         (mark_reg_conflicts): Likewise.
13267         (mark_reg_death): Use remove_from_hard_reg_set.
13268         (mark_reg_live_nc): Delete.
13269         (set_preference): Use end_hard_regno.
13270         * local-alloc.c (mark_life): Use add_to_hard_reg_set and
13271         remove_from_hard_reg_set.
13272         (post_mark_life): Use add_to_hard_reg_set.
13273         * mode-switching.c (reg_dies): Use remove_from_hard_reg_set.
13274         (reg_becomes_live): Use add_to_hard_reg_set.
13275         * recog.c (reg_fits_class_p): Use in_hard_reg_set_p.
13276         (peep2_find_free_register): Use add_to_hard_reg_set.
13277         * reg-stack.c (convert_regs_exit): Use END_HARD_REGNO.
13278         * regclass.c (record_reg_classes): Use in_hard_reg_set_p.
13279         * regrename.c (note_sets): Use add_to_hard_reg_set.
13280         (clear_dead_regs): Use remove_from_hard_reg_set.
13281         (regrename_optimize): Use add_to_hard_reg_set.
13282         (find_oldest_value_reg): Use in_hard_reg_set_p.
13283         * reload.c (push_reload): Use in_hard_reg_set_p and end_hard_regno.
13284         (hard_reg_set_here_p): Use end_hard_regno.
13285         (decompose): Likewise.
13286         (reg_overlap_mentioned_for_reload_p): Use END_HARD_REGNO.
13287         (find_equiv_reg): Use in_hard_reg_set_p and end_hard_regno.
13288         * reload1.c (compute_use_by_pseudos): Use add_to_hard_reg_set.
13289         (mark_home_live): Use end_hard_regno.
13290         (spill_hard_reg): Likewise.
13291         (clear_reload_reg_in_use): Likewise.
13292         * reorg.c (delete_prior_computation): Use END_REGNO.
13293         * resource.c (update_live_status): Use END_HARD_REGNO.
13294         (mark_referenced_resources): Use add_to_hard_reg_set.
13295         (mark_set_resources): Likewise.
13296         (mark_target_live_regs): Likewise.  Use remove_from_hard_reg_set.
13297         * rtlanal.c (refers_to_regno_p): Use END_REGNO.
13298         (reg_overlap_mentioned_p): Likewise.
13299         (dead_or_set_p): Likewise.  Use an exclusive upper loop bound.
13300         (covers_regno_no_parallel_p): Use END_REGNO.
13301         (find_regno_note): Likewise.
13302         (find_reg_fusage): Use END_HARD_REGNO.
13303         * stmt.c (decl_overlaps_hard_reg_set_p): Use overlaps_hard_reg_set_p.
13304         * var-tracking.c (emit_note_insn_var_location): Use end_hard_regno.
13305
13306 2007-05-22  Richard Sandiford  <rsandifo@nildram.co.uk>
13307
13308         * mode-switching.c (reg_dies): Change type of second argument to
13309         "HARD_REG_SET *".
13310         (optimize_mode_switching): Update accordingly.
13311
13312 2007-05-22  Richard Sandiford  <richard@codesourcery.com>
13313
13314         * hard-reg-set.h (GO_IF_HARD_REG_SUBSET, GO_IF_HARD_REG_EQUAL): Delete
13315         in favor of...
13316         (hard_reg_subset_p, hard_reg_sets_equal_p, hard_reg_sets_intersect_p)
13317         (hard_reg_set_empty_p): ...these new functions.
13318         * bt-load.c (choose_btr): Use hard_reg_subset_p instead of
13319         GO_IF_HARD_REG_SUBSET.
13320         * cfgcleanup.c (old_insns_match_p): Use hard_reg_sets_equal_p
13321         instead of GO_IF_HARD_REG_EQUAL.
13322         * df-problems.c (df_urec_local_compute): Use hard_reg_set_empty_p
13323         instead of GO_IF_HARD_REG_EQUAL.
13324         * global.c (find_reg): Use hard_reg_set_empty_p instead of
13325         GO_IF_HARD_REG_SUBSET.
13326         (modify_reg_pav): Use hard_reg_set_empty_p instead of
13327         GO_IF_HARD_REG_EQUAL.
13328         * local-alloc.c (find_free_reg): Use hard_reg_subset_p instead
13329         of GO_IF_HARD_REG_SUBSET.
13330         * reg-stack.c (change_stack, convert_regs_1): Use hard_reg_sets_equal_p
13331         instead of GO_IF_HARD_REG_EQUAL.
13332         * regclass.c (init_reg_sets_1, reg_scan_mark_refs): Use
13333         hard_reg_subset_p instead of GO_IF_HARD_REG_SUBSET.
13334         (reg_classes_intersect_p): Use hard_reg_sets_intersect_p instead
13335         of GO_IF_HARD_REG_SUBSET,
13336         * reload1.c (finish_spills): Use hard_reg_subset_p instead of
13337         GO_IF_HARD_REG_SUBSET.
13338         * struct-equiv.c (death_notes_match_p): Use hard_reg_sets_equal_p
13339         instead of GO_IF_HARD_REG_EQUAL.
13340         * config/sh/sh.c (push_regs, calc_live_regs): Use
13341         hard_reg_sets_intersect_p instead of hard_regs_intersect_p.
13342         (hard_regs_intersect_p): Delete.
13343
13344 2007-05-22  Janis Johnson  <janis187@us.ibm.com>
13345
13346         * doc/sourcebuild.texi (Test Directives) Add dg-message.
13347
13348 2007-05-22  H.J. Lu  <hongjiu.lu@intel.com>
13349             Richard Henderson  <rth@redhat.com>
13350
13351         * config.gcc (i[34567]86-*-*): Add smmintrin.h to
13352         extra_headers.
13353         (x86_64-*-*): Likewise.
13354
13355         * i386/i386-modes.def (V2QI): New.
13356
13357         * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 and
13358         SSE4A.
13359         (override_options): Support SSE4.1.
13360         (IX86_BUILTIN_BLENDPD): New for SSE4.1.
13361         (IX86_BUILTIN_BLENDPS): Likewise.
13362         (IX86_BUILTIN_BLENDVPD): Likewise.
13363         (IX86_BUILTIN_BLENDVPS): Likewise.
13364         (IX86_BUILTIN_PBLENDVB128): Likewise.
13365         (IX86_BUILTIN_PBLENDW128): Likewise.
13366         (IX86_BUILTIN_DPPD): Likewise.
13367         (IX86_BUILTIN_DPPS): Likewise.
13368         (IX86_BUILTIN_INSERTPS128): Likewise.
13369         (IX86_BUILTIN_MOVNTDQA): Likewise.
13370         (IX86_BUILTIN_MPSADBW128): Likewise.
13371         (IX86_BUILTIN_PACKUSDW128): Likewise.
13372         (IX86_BUILTIN_PCMPEQQ): Likewise.
13373         (IX86_BUILTIN_PHMINPOSUW128): Likewise.
13374         (IX86_BUILTIN_PMAXSB128): Likewise.
13375         (IX86_BUILTIN_PMAXSD128): Likewise.
13376         (IX86_BUILTIN_PMAXUD128): Likewise.
13377         (IX86_BUILTIN_PMAXUW128): Likewise.
13378         (IX86_BUILTIN_PMINSB128): Likewise.
13379         (IX86_BUILTIN_PMINSD128): Likewise.
13380         (IX86_BUILTIN_PMINUD128): Likewise.
13381         (IX86_BUILTIN_PMINUW128): Likewise.
13382         (IX86_BUILTIN_PMOVSXBW128): Likewise.
13383         (IX86_BUILTIN_PMOVSXBD128): Likewise.
13384         (IX86_BUILTIN_PMOVSXBQ128): Likewise.
13385         (IX86_BUILTIN_PMOVSXWD128): Likewise.
13386         (IX86_BUILTIN_PMOVSXWQ128): Likewise.
13387         (IX86_BUILTIN_PMOVSXDQ128): Likewise.
13388         (IX86_BUILTIN_PMOVZXBW128): Likewise.
13389         (IX86_BUILTIN_PMOVZXBD128): Likewise.
13390         (IX86_BUILTIN_PMOVZXBQ128): Likewise.
13391         (IX86_BUILTIN_PMOVZXWD128): Likewise.
13392         (IX86_BUILTIN_PMOVZXWQ128): Likewise.
13393         (IX86_BUILTIN_PMOVZXDQ128): Likewise.
13394         (IX86_BUILTIN_PMULDQ128): Likewise.
13395         (IX86_BUILTIN_PMULLD128): Likewise.
13396         (IX86_BUILTIN_ROUNDPD): Likewise.
13397         (IX86_BUILTIN_ROUNDPS): Likewise.
13398         (IX86_BUILTIN_ROUNDSD): Likewise.
13399         (IX86_BUILTIN_ROUNDSS): Likewise.
13400         (IX86_BUILTIN_PTESTZ): Likewise.
13401         (IX86_BUILTIN_PTESTC): Likewise.
13402         (IX86_BUILTIN_PTESTNZC): Likewise.
13403         (IX86_BUILTIN_VEC_EXT_V16QI): Likewise.
13404         (IX86_BUILTIN_VEC_SET_V2DI): Likewise.
13405         (IX86_BUILTIN_VEC_SET_V4SF): Likewise.
13406         (IX86_BUILTIN_VEC_SET_V4SI): Likewise.
13407         (IX86_BUILTIN_VEC_SET_V16QI): Likewise.
13408         (bdesc_ptest): New.
13409         (bdesc_sse_3arg): Likewise.
13410         (bdesc_2arg): Likewise.
13411         (bdesc_1arg): Likewise.
13412         (ix86_init_mmx_sse_builtins): Support SSE4.1.  Handle SSE builtins
13413         with 3 args.
13414         (ix86_expand_sse_4_operands_builtin): New.
13415         (ix86_expand_unop_builtin): Support 2 arg builtins with a constant
13416         smaller than 8 bits as the 2nd arg.
13417         (ix86_expand_sse_ptest): New.
13418         (ix86_expand_builtin): Support SSE4.1. Support 3 arg SSE builtins.
13419         (ix86_expand_vector_set): Support SSE4.1.
13420         (ix86_expand_vector_extract): Likewise.
13421
13422         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
13423         __SSE4_1__ for -msse4.1.
13424
13425         * config/i386/i386.md (UNSPEC_BLENDV): New for SSE4.1.
13426         (UNSPEC_INSERTPS): Likewise.
13427         (UNSPEC_DP): Likewise.
13428         (UNSPEC_MOVNTDQA): Likewise.
13429         (UNSPEC_MPSADBW): Likewise.
13430         (UNSPEC_PHMINPOSUW): Likewise.
13431         (UNSPEC_PTEST): Likewise.
13432         (UNSPEC_ROUNDP): Likewise.
13433         (UNSPEC_ROUNDS): Likewise.
13434
13435         * config/i386/i386.opt (msse4.1): New for SSE4.1.
13436
13437         * config/i386/predicates.md (const_pow2_1_to_2_operand): New.
13438         (const_pow2_1_to_32768_operand): Likewise.
13439
13440         * config/i386/smmintrin.h: New. The SSE4.1 intrinsic header
13441         file.
13442
13443         * config/i386/sse.md (*vec_setv4sf_sse4_1): New pattern for
13444         SSE4.1.
13445         (sse4_1_insertps): Likewise.
13446         (*sse4_1_extractps): Likewise.
13447         (sse4_1_ptest): Likewise.
13448         (sse4_1_mulv2siv2di3): Likewise.
13449         (*sse4_1_mulv4si3): Likewise.
13450         (*sse4_1_smax<mode>3): Likewise.
13451         (*sse4_1_umax<mode>3): Likewise.
13452         (*sse4_1_smin<mode>3): Likewise.
13453         (*sse4_1_umin<mode>3): Likewise.
13454         (sse4_1_eqv2di3): Likewise.
13455         (*sse4_1_pinsrb): Likewise.
13456         (*sse4_1_pinsrd): Likewise.
13457         (*sse4_1_pinsrq): Likewise.
13458         (*sse4_1_pextrb): Likewise.
13459         (*sse4_1_pextrb_memory): Likewise.
13460         (*sse4_1_pextrw_memory): Likewise.
13461         (*sse4_1_pextrq): Likewise.
13462         (sse4_1_blendpd): Likewise.
13463         (sse4_1_blendps): Likewise.
13464         (sse4_1_blendvpd): Likewise.
13465         (sse4_1_blendvps): Likewise.
13466         (sse4_1_dppd): Likewise.
13467         (sse4_1_dpps): Likewise.
13468         (sse4_1_movntdqa): Likewise.
13469         (sse4_1_mpsadbw): Likewise.
13470         (sse4_1_packusdw): Likewise.
13471         (sse4_1_pblendvb): Likewise.
13472         (sse4_1_pblendw): Likewise.
13473         (sse4_1_phminposuw): Likewise.
13474         (sse4_1_extendv8qiv8hi2): Likewise.
13475         (*sse4_1_extendv8qiv8hi2): Likewise.
13476         (sse4_1_extendv4qiv4si2): Likewise.
13477         (*sse4_1_extendv4qiv4si2): Likewise.
13478         (sse4_1_extendv2qiv2di2): Likewise.
13479         (*sse4_1_extendv2qiv2di2): Likewise.
13480         (sse4_1_extendv4hiv4si2): Likewise.
13481         (*sse4_1_extendv4hiv4si2): Likewise.
13482         (sse4_1_extendv2hiv2di2): Likewise.
13483         (*sse4_1_extendv2hiv2di2): Likewise.
13484         (sse4_1_extendv2siv2di2): Likewise.
13485         (*sse4_1_extendv2siv2di2): Likewise.
13486         (sse4_1_zero_extendv8qiv8hi2): Likewise.
13487         (*sse4_1_zero_extendv8qiv8hi2): Likewise.
13488         (sse4_1_zero_extendv4qiv4si2): Likewise.
13489         (*sse4_1_zero_extendv4qiv4si2): Likewise.
13490         (sse4_1_zero_extendv2qiv2di2): Likewise.
13491         (*sse4_1_zero_extendv2qiv2di2): Likewise.
13492         (sse4_1_zero_extendv4hiv4si2): Likewise.
13493         (*sse4_1_zero_extendv4hiv4si2): Likewise.
13494         (sse4_1_zero_extendv2hiv2di2): Likewise.
13495         (*sse4_1_zero_extendv2hiv2di2): Likewise.
13496         (sse4_1_zero_extendv2siv2di2): Likewise.
13497         (*sse4_1_zero_extendv2siv2di2): Likewise.
13498         (sse4_1_roundpd): Likewise.
13499         (sse4_1_roundps): Likewise.
13500         (sse4_1_roundsd): Likewise.
13501         (sse4_1_roundss): Likewise.
13502         (mulv4si3): Don't expand for SSE4.1.
13503         (smax<mode>3): Likewise.
13504         (umaxv4si3): Likewise.
13505         (uminv16qi3): Likewise.
13506         (umin<mode>3): Likewise.
13507         (umaxv8hi3): Rewrite.  Only enabled for SSE4.1.
13508
13509         * doc/extend.texi: Document SSE4.1 built-in functions.
13510
13511         * doc/invoke.texi: Document -msse4.1.
13512
13513 2007-05-22  Nathan Sidwell  <nathan@codesourcery.com>
13514
13515         * config/m68k/linux.h (ASM_SPEC): Add asm_pcrel_spec.
13516         * config/m68k/m68k-none.h (ASM_SPEC): Don't override here.
13517         * config/m68k/m68k.h (ASM_PCREL_SPEC): New.
13518         (ASM_SPEC): Add asm_pcrel_spec.
13519         (EXTRA_SPECS): Add asm_pcrel_spec.
13520
13521 2007-05-21  David Daney  <ddaney@avtrex.com>
13522
13523         * doc/install.texi (Building a cross compiler): Add requirements
13524         for Java cross compiler.
13525
13526 2007-05-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13527
13528         PR middle-end/31995
13529         * tree-chrec.c (evolution_function_is_affine_multivariate_p):
13530         Add loopno argument.  Use evolution_function_is_invariant_rec_p
13531         instead of evolution_function_is_constant_p.
13532         Update calls to evolution_function_is_affine_multivariate_p.
13533         * tree-chrec.h (evolution_function_is_affine_multivariate_p):
13534         Add loopno argument.
13535         * tree-scalar-evolution.c (gather_chrec_stats): Call
13536         evolution_function_is_affine_multivariate_p with a loop
13537         number of 0.
13538         * tree-data-ref.c (analyze_miv_subscript): Likewise.
13539         (analyze_overlapping_iterations): Likewise.
13540         (access_functions_are_affine_or_constant_p): Likewise.
13541         (build_classic_dist_vector_1): If the access functions
13542         are equal, don't do anything.
13543
13544 2007-05-21  Paolo Bonzini  <bonzini@gnu.org>
13545             Paolo Carlini  <pcarlini@suse.de>
13546             Uros Bizjak  <ubizjak@gmail.com>
13547
13548         * c-cppbuiltin.c (c_cpp_builtins): Define
13549         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
13550         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8,
13551         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16, if appropriate.
13552         * doc/cpp.texi ([Standard Predefined Macros]): Document.
13553
13554 2007-05-21  Mike Stump  <mrs@apple.com>
13555
13556         * config/darwin.h (LINK_COMMAND_SPEC): Add .cxx/.cp for dsymutil
13557         handling as well.
13558         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
13559
13560 2007-05-21  Uros Bizjak  <ubizjak@gmail.com>
13561
13562         * config/i386/tmmintrin.h (_mm_alignr_epi8): Provide macro
13563         implementation if __OPTIMIZE__ is not defined.
13564         (_mm_alignr_pi8): Ditto.
13565         * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
13566         (_mm_inserti_si64): Ditto.
13567         * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
13568         (_mm_slli_epi16): Ditto.
13569         (_mm_slli_epi32): Ditto.
13570         (_mm_slli_epi64): Ditto.
13571         (_mm_srai_epi16): Ditto.
13572         (_mm_srai_epi32): Ditto.
13573         (_mm_srli_si128): Ditto.
13574         (_mm_slli_si128): Ditto.
13575         (_mm_srli_epi16): Ditto.
13576         (_mm_srli_epi32): Ditto.
13577         (_mm_srli_epi64): Ditto.
13578         (_mm_extract_epi16): Ditto.
13579         (_mm_insert_epi16): Ditto.
13580         (_mm_shufflehi_epi16): Ditto.
13581         (_mm_shufflelo_epi16): Ditto.
13582         (_mm_shuffle_epi32): Ditto.
13583         * config/i386/xmmintrin.h (_mm_extract_pi16): Ditto.
13584         (_m_pextrw): Ditto.
13585         (_mm_insert_pi16): Ditto.
13586         (_m_pinsrw): Ditto.
13587         (_mm_shuffle_pi16): Ditto.
13588         (_m_pshufw): Ditto.
13589         (_mm_shufle_ps): Ditto.
13590         (_mm_prefetch): Ditto.
13591
13592 2007-05-21  Andreas Krebbel  <krebbel1@de.ibm.com>
13593
13594         * defaults.h (IBM_FLOAT_FORMAT): Macro definition removed.
13595         * doc/tm.texi (IBM_FLOAT_FORMAT): Documentation entry removed.
13596         * real.c (encode_i370_single, decode_i370_single,
13597         encode_i370_double, decode_i370_double): Functions removed.
13598         (i370_single_format, i370_double_format): Initializations removed.
13599         (real_maxval, round_for_format, exact_real_truncate, significand_size):
13600         Consider the log2_b field to always be one.
13601         (ieee_single_format, mips_single_format, coldfire_single_format,
13602         ieee_double_format, mips_double_format, coldfire_double_format,
13603         ieee_extended_motorola_format, ieee_extended_intel_96_format,
13604         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
13605         ibm_extended_format, mips_extended_format, ieee_quad_format,
13606         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
13607         decimal_single_format, decimal_double_format, decimal_quad_format,
13608         c4x_single_format, c4x_extended_format, real_internal_format): Remove
13609         initialization of log2_b.
13610         * real.h (i370_single_format, i370_double_format): Declarations
13611         removed.
13612         * c-cppbuiltin.c (builtin_define_float_constants): Consider the log2_b
13613         field to always be one.
13614
13615 2007-05-21  Andreas Schwab  <schwab@suse.de>
13616
13617         * config/ia64/ia64.c (emit_predicate_relation_info): Fix use of
13618         NOTE_INSN_BASIC_BLOCK_P.
13619         (process_for_unwind_directive): Likewise.
13620
13621 2007-05-21  Nathan Sidwell  <nathan@codesourcery.com>
13622
13623         * builtins.c (expand_builtin_setjmp_setup): Update comment.
13624         * function.h (struct function): Move va_list_gpr_size,
13625         va_list_fpr_size, function_frequency to front of bitfields.  Add
13626         calls_unwind_init.
13627         (current_function_calls_unwind_init): New.
13628         * except.c (expand_builtin_unwind_init): Set
13629         current_function_calls_unwind_init not
13630         current_function_has_nonlocal_label.
13631         * reload1.c (has_nonexceptional_receiver): New.
13632         (reload): Use it and current_function_calls_unwind_init to
13633         determine whether call-saved regs must be saved.
13634
13635 2007-05-20  Jan Hubicka  <jh@suse.cz>
13636
13637         * gengtype.c (adjust_field_rtx_def): Use NOTE_KIND instead of
13638         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
13639         * ddg.c (create_ddg): LIkewise.
13640         * final.c (final): Remove hunk moving line number notes around since
13641         they are no longer present at this stage.
13642         (final_scan_insn): Use NOTE_KIND instead of
13643         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
13644         (output_asm_label): Likewise.
13645         * reorg.c (dbr_schedule): Likewise.
13646         * haifa-sched.c (unlink_other_notes): Likewise.
13647         * mode-switching.c (optimize_mode_switching): Likewise.
13648         * graph.c (start_bb): Likewise.
13649         * rtl.def (NOTE): Update description.
13650         * jump.c (squeeze_notes): Delete.
13651         (mark_jump_label): Use NOTE_KIND instead of NOTE_LINE_NUMBER; use
13652         NOTE_INSN_BASIC_BLOCK_P when possible.
13653         * ifcvt.c (dead_or_predicable): Remove call of squeeze_notes.
13654         * dwarf2out.c (gen_label_die): Use NOTE_KIND instead of
13655         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
13656         (dwarf2out_var_location): Likewise.
13657         * cfgbuild.c (make_edges): Likewise.
13658         (find_basic_blocks_1): Likewise.
13659         * function.c (reorder_blocks_1): Likewise.
13660         (epilogue_done): Likewise.
13661         (reposition_prologue_and_epilogue_notes): Likewise.
13662         * print-rtl.c (print_rtx): Likewise; drop code for printing
13663         line number notes.
13664         (print_rtl): Likewise.
13665         (print_rtl_single): Likewise.
13666         * gcse.c (insert_insn_start_bb): Likewise.
13667         * alias.c (init_alias_analysis): Likewise.
13668         * calls.c (fixup_tail_calls): Likewise.
13669         * except.c (sjlj_emit_function_enter): Likewise.
13670         * emit-rtl.c (add_insn_after): Likeiwse.
13671         (emit_label_before): Likewise.
13672         (emit_label_after): Likewise.
13673         (emit_note_before, emit_note_after, emit_note): Update
13674         parameter to be enum insn_note; do not deal with source
13675         files.
13676         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps):
13677         Use NOTE_KIND instead of NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P
13678         when possible.
13679         (merge_blocks_move_successor_nojumps): Simplify now when
13680         we don't have BLOCK notes.
13681         (try_optimize_cfg): Likewise.
13682         * cfglayout.c (skip_insns_after_block): Likewise.
13683         (record_effective_endpoints): Likewise.
13684         (duplicate_insn_chain): Likewise.
13685         * varasm.c (output_constant_pool_1): Likewise.
13686         * sched-deps.c (sched_analyze): Likewise.
13687         * rtl.c (NOTE_INSN_MAX_isnt_negative_adjust_NOTE_INSN_BIAS):
13688         Exterminate.
13689         (note_insn_name): Simplify now when NOTE_INSN_BIAS is gone.
13690         * rtl.h (NOTE_SOURCE_LOCATION, NOTE_EXPANDED_LOCATION): Exterminate.
13691         (SET_INSN_DELETED): Simplify.
13692         (NOTE_LINE_NUMBER): Exterminate.
13693         (NOTE_LINE_KIND): New.
13694         (NOTE_INSN_BASIC_BLOCK_P): Update.
13695         (enum insn_note): Simplify.
13696         (GET_NOTE_INSN_NAME) Simplify.
13697         (emit_note_before, emit_note_after, emit_note): Update prototype.
13698         (squeeze_notes): Remove.
13699         * sched-int.h (NOTE_NOT_BB_P): Update.
13700         * resource.c (mark_target_live_regs): Update.
13701         * sched-rgn.c (debug_dependencies): Update.
13702         * sched-vis.c (print_insn): Update.
13703         * config/alpha/alpha.c (alpha_handle_trap_shadows): Update.
13704         * config/i386/i386.c (ix86_output_function_epilogue): Update.
13705         * config/sh/sh.c (sh_adjust_unroll_max): Function dead since gcc 4.0.0.
13706         (TARGET_ADJUST_UNROLL_MAX): Likewise.
13707         (split_branches): Update.
13708         (sh_optimize_target_register_callee_saved): Remove hunk dead since gcc
13709         4.0.0.
13710         (sh_adjust_unroll_max): Exterminate.
13711         * config/c4x/c4x.c (c4x_reorg): Use SET_INSN_DELETED.
13712         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Likewise.
13713         (m68hc11_reorg): Likewise.
13714         * config/ia64/ia64.c (emit_insn_group_barriers): Update.
13715         (emit_predicate_relation_info): Update.
13716         (process_for_unwind_directive): Update.
13717         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update.
13718         (output_call): Update.
13719         * config/pa/pa.c (output_lbranch): Update.
13720         (output_millicode_call): Update.
13721         (output_call): Update.
13722         (pa_combine_instructions): Update.
13723         * config/mips/mips.c (mips16_gp_pseudo_reg): Update.
13724         * config/bfin/bfin.c (gen_one_bundle): Update.
13725         * cfgrtl.c (can_delete_note_p): Update.
13726         (delete_insn): Update.
13727         (rtl_merge_blocks): Update.
13728         (commit_one_edge_insertion): Update.
13729         (rtl_verify_flow_info): Update.
13730         * stmt.c (expand_case): Do not call squeeze_notes.
13731
13732 2007-05-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13733
13734         PR middle-end/7651
13735         PR c++/11856
13736         PR c/12963
13737         PR c/23587
13738         PR other/29694
13739         * c.opt (Wtype-limits): New.
13740         * doc/invoke.texi (Wtype-limits): Document it.
13741         (Wextra): Enabled by -Wextra.
13742         * c-opts.c (c_common_post_options): Enabled by -Wextra.
13743         * c-common.c (shorten_compare): Warn with Wtype-limits.
13744
13745 2007-05-20  Uros Bizjak  <ubizjak@gmail.com>
13746
13747         * config/i386/tmmintrin.h (_mm_alignr_epi32): Implement as always
13748         inlined function, not as a macro.
13749         (_mm_alignr_pi8): Ditto.
13750         * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
13751         (_mm_inserti_si64): Ditto.
13752         * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
13753         (_mm_extract_epi16): Ditto.
13754         (_mm_insert_epi16): Ditto.
13755         (_mm_shufflehi_epi16): Ditto.
13756         (_mm_shufflelo_epi16): Ditto.
13757         (_mm_shuffle_epi32): Ditto.
13758         * config/i386/xmmintrin.h (_mm_set_ss): Use 0.0f for float constant.
13759         * config/386/mm3dnow.h: Add __attribute__((__always_inline__)) to
13760         all functions.
13761         (_m_from_float): Add __extension__ to conversion.  Use 0.0f for
13762         float constant.
13763         (_m_to_float): Use C89 compatible assignment.
13764
13765 2007-05-20  Martin Michlmayr  <tbm@cyrius.com>
13766
13767         PR target/32007
13768         * config/arm/lib1funcs.asm: Define __ARM_ARCH__ on v2/v3 machines.
13769
13770 2007-05-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13771
13772         PR middle-end/7651
13773         * doc/invoke.texi (Wreturn-type): Complete description.
13774         (Wextra): Delete item about return-type warning.
13775         * c-decl.c: Delete redundant Wextra warning.
13776
13777 2007-05-20  Uros Bizjak  <ubizjak@gmail.com>
13778
13779         PR target/31585
13780         * config/i386/pmmintrin.h: Do not include xmmintrin.h
13781         * config/i386/xmmintrin.h (_mm_extract_pi16): Implement as always
13782         inlined function, not as a macro.
13783         (_mm_prefetch): Ditto.
13784         (_m_pextrw): Ditto.
13785         (_mm_insert_pi16): Ditto.
13786         (_m_pinsrw): Ditto.
13787         (_mm_shuffle_pi16): Ditto.  Add const to __N argument.
13788         (_m_pshufw): Ditto. Add const to __N argument.
13789         (_mm_shufle_ps): Ditto.  Add const to __mask argument.
13790         * config/i386/emmintrin.h (_mm_slli_epi16): Add const to __B argument.
13791         (_mm_slli_epi32): Ditto.
13792         (_mm_srli_si128): Implement as always inlined function, not as a
13793         macro.  Add __inline to function declaration.
13794         (_mm_slli_si128): Ditto.
13795
13796 2007-05-19  Uros Bizjak  <ubizjak@gmail.com>
13797
13798         * config/i386/sfp-machine.h (FP_EX_INVALID, FP_EX_DENORM,
13799         FP_EXP_DIVZERO, FP_EX_OVERFLOW, FP_EX_UNDERFLOW, FP_EX_INEXACT):
13800         New constants.
13801         (struct fenv): New structure.
13802         (FP_HANDLE_EXCEPTIONS): New define.
13803         (FP_RND_NEAREST, FP_RND_ZERO, FP_RND_PINF, FP_RND_MINF): New constants.
13804         (_FP_DECL_EXP): New define.
13805         (FP_INIT_ROUNDMODE): New define.
13806         (FP_ROUNDMODE): New define.
13807
13808 2007-05-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13809
13810         * doc/invoke.texi (Warning Options): Add -Wconversion-sign.
13811         (Wconversion): Update description.
13812         (Wconversion-sign): New.
13813         * c.opt (Wconversion-sign): New.
13814         * c-opts.c (c_common_post_options): Uninitialized Wconversion-sign
13815         means disabled for C++. Otherwise, take the status of Wconversion.
13816         * c-common.c (conversion_warning): Warn with either Wconversion or
13817         Wconversion-sign.
13818         (warnings_for_convert_and_check): Conditions are already checked by
13819         conversion_warning.
13820         (convert_and_check): Don't check warnings if the conversion failed.
13821
13822 2007-05-19 Andy Hutchinson <HutchinsonAndy@netscape.net>
13823            Anatoly Sokolov <aesok@dol.ru>
13824
13825         * config/avr/avr-protos.h (expand_prologue, expand_epilogue,
13826         avr_epilogue_uses) : Add declaration.
13827         * config/avr/predicates.md (avr_sp_immediate_operand): New predicate.
13828         * config/avr/constraints.md (R): New constraint.
13829         config/avr/avr.md (SREG_ADDR, UNSPEC_SEI, UNSPEC_CLI,
13830         UNSPECV_PROLOGUE_SAVES, UNSPECV_EPILOGUE_RESTORES): New constants.
13831         (*pop1, *pop2, *pop3, *pop4, *pop5): Combine into ...
13832         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): ... these patterns.
13833         (*movhi_sp, popqi, pophi, enable_interrupt, disable_interrupt,
13834         call_prologue_saves, epilogue_restores, return_from_epilogue,
13835         return_from_main_epilogue, return_from_interrupt_epilogue,
13836         return_from_naked_epilogue, prologue, epilogue): New patterns.
13837         (jump): Handle symbol reference.
13838         * config/avr/avr.c (out_adj_frame_ptr, out_set_stack_ptr,
13839         avr_output_function_prologue, avr_output_function_epilogue): Remove
13840         functions.
13841         (avr_init_machine_status, expand_prologue, expand_epilogue,
13842         avr_asm_function_end_prologue, avr_epilogue_uses,
13843         avr_asm_function_begin_epilogue): New functions.
13844         (prologue_size, epilogue_size, jump_tables_size): Remove global
13845         variables.
13846         (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
13847         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
13848         (TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): Define.
13849         (avr_override_options): Initialise init_machine_status.
13850         (output_movhi): Handle all stack pointer loads.
13851         (out_movqi_r_mr, out_movqi_mr_r): Handle SREG_ADDR address.
13852         (avr_output_addr_vec_elt): Do not use variable jump_tables_size.
13853         * config/avr/avr.h (AVR_2_BYTE_PC, AVR_3_BYTE_PC): New.
13854         (EPILOGUE_USES) Redefine.
13855         (machine_function) Declare.
13856
13857 2007-05-19  Richard Sandiford  <richard@codesourcery.com>
13858
13859         * config/mips/mips.c (mips_offset_within_alignment_p): Tweak comment.
13860         Use a single return statement.
13861
13862 2007-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13863
13864         PR middle-end/30250
13865         * builtins.c (do_mpfr_lgamma_r): New.
13866         (fold_builtin_2): Handle builtin gamma_r/lgamma_r.
13867         * tree.h (CASE_FLT_FN_REENT): New.
13868
13869 2007-05-18  Geoffrey Keating  <geoffk@apple.com>
13870
13871         * dwarf2out.c (print_die): Use '%ld' not '%lu' to print a 'long'.
13872         (output_die): Use 'unsigned long' with %x.
13873         * sched-vis.c (print_value): Use 'unsigned HOST_WIDE_INT' and
13874         HOST_WIDE_INT_PRINT_HEX to print HOST_WIDE_INT.
13875         * tree-dump.c (dump_pointer): Use 'unsigned long' for %lx.
13876
13877         * unwind-dw2.c (uw_identify_context): Use the CFA, not the IP.
13878
13879 2007-05-18  H.J. Lu  <hongjiu.lu@intel.com>
13880
13881         PR target/31989
13882         PR target/31681
13883         PR target/31666
13884         * config/i386/i386.c (init_cumulative_args): Set maybe_vaarg to
13885         true if function has no argument.
13886
13887 2007-05-18  DJ Delorie  <dj@redhat.com>
13888
13889         * config/mips/mips.c (mips_offset_within_alignment_p): New.
13890         (mips_symbolic_constant_p): Call it for TPREL and DTPREL symbols.
13891
13892 2007-05-18  Uros Bizjak  <ubizjak@gmail.com>
13893
13894         * longlong.h (__x86_64__): Add definitions for add_ssaaaa,
13895         sub_ddmmss, umul_ppmm, udiv_qrnnd, count_leading_zeros and
13896         count_trailing_zeros.
13897         (__i386__): Implement count_leading_zeros using __builtin_clz().
13898         Implement count_trailing_zeros usign __builtin_ctz().
13899
13900 2007-05-18  Richard Sandiford  <richard@codesourcery.com>
13901
13902         * config/i386/vxworks.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine.
13903
13904 2007-05-18  Uros Bizjak  <ubizjak@gmail.com>
13905
13906         PR middle-end/31344
13907         * expr.c (emit_move_change_mode): Change mode of push operands here.
13908
13909 2007-05-17  Ian Lance Taylor  <iant@google.com>
13910
13911         PR tree-optimization/31953
13912         * tree-vrp.c (set_value_range_to_value): Add equiv parameter.
13913         Change all callers.
13914         (set_value_range_to_null): Call set_value_range_to_value.
13915         (extract_range_from_comparison): Likewise.
13916
13917 2007-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13918
13919         * toplev.c (print_version): Output GMP/MPFR version info.
13920
13921         * builtins.c (CASE_MATHFN_REENT): New macro.
13922         (mathfn_built_in): Use it.
13923         * builtins.def (BUILT_IN_GAMMA_R, BUILT_IN_GAMMAF_R,
13924         BUILT_IN_GAMMAL_R, BUILT_IN_LGAMMA_R, BUILT_IN_LGAMMAF_R,
13925         BUILT_IN_LGAMMAL_R): New.
13926         * doc/extend.texi: Document new builtins.
13927
13928         PR middle-end/31796
13929         * builtins.c (do_mpfr_remquo): New.
13930         (fold_builtin_2): Handle BUILT_IN_DREM/BUILT_IN_REMAINDER.
13931         (fold_builtin_3): Handle BUILT_IN_REMQUO.
13932
13933         PR middle-end/30251
13934         * builtins.c (fold_builtin_1): Handle y0, y1.
13935         (fold_builtin_2): Handle yn.
13936
13937         PR middle-end/30251
13938         * builtins.c (do_mpfr_bessel_n): New.
13939         (fold_builtin_1): Handle BUILT_IN_J0 and BUILT_IN_J1.
13940         (fold_builtin_2): Handle BUILT_IN_JN.
13941
13942 2007-05-17  Danny Smith  <dannysmith@users.sourceforge.net>
13943
13944         PR target/31965
13945         * config/i386/mingw32.h (_INTEGRAL_MAX_BITS): Define builtin as
13946         TYPE_PRECISION (intmax_type_node).
13947
13948 2007-05-17  Steve Ellcey  <sje@cup.hp.com>
13949
13950         PR target/31850
13951         * reload.c (subst_reloads): Remove checking.
13952
13953 2007-05-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
13954
13955         PR rtl-optimization/31691
13956         * combine.c (simplify_set): Build a new src pattern instead of
13957         substituting its operands in the COMPARE case.
13958
13959 2007-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
13960
13961         * tree-vrp.c (finalize_jump_threads): Do not care about dominance info.
13962         (execute_vrp): Preserve loops through jump threading.
13963         * tree-ssa-threadupdate.c (thread_single_edge,
13964         dbds_continue_enumeration_p, determine_bb_domination_status,
13965         thread_through_loop_header): New functions.
13966         (create_edge_and_update_destination_phis,
13967         create_edge_and_update_destination_phis): Set loops for the new blocks.
13968         (prune_undesirable_thread_requests): Removed.
13969         (redirect_edges): Do not pretend that redirect_edge_and_branch can
13970         create new blocks.
13971         (thread_block): Do not call prune_undesirable_thread_requests.
13972         Update loops.
13973         (mark_threaded_blocks): Select edges to thread here.
13974         (thread_through_all_blocks): Take may_peel_loop_headers argument.
13975         Thread edges through loop headers independently.
13976         * cfgloopmanip.c (create_preheader, mfb_keep_just): Export.
13977         * tree-pass.h (TODO_mark_first_instance): New.
13978         (first_pass_instance): Declare.
13979         * cfghooks.c (duplicate_block): Put the block to the original loop
13980         if copy is not specified.
13981         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Preserve loops through
13982         jump threading.  Pass may_peel_loop_headers to
13983         thread_through_all_blocks according to first_pass_instance.
13984         * cfgloop.h (create_preheader): Declare.
13985         * tree-flow.h (thread_through_all_blocks): Declaration changed.
13986         * basic-block.h (mfb_keep_just, mfb_kj_edge): Declare.
13987         * passes.c (first_pass_instance): New variable.
13988         (next_pass_1): Set TODO_mark_first_instance.
13989         (execute_todo): Set first_pass_instance.
13990
13991 2007-05-17  Uros Bizjak  <ubizjak@gmail.com>
13992
13993         PR tree-optimization/24659
13994         * optabs.h (enum optab_index): Add OTI_vec_unpacks_float_hi,
13995         OTI_vec_unpacks_float_lo, OTI_vec_unpacku_float_hi,
13996         OTI_vec_unpacku_float_lo, OTI_vec_pack_sfix_trunc and
13997         OTI_vec_pack_ufix_trunc.
13998         (vec_unpacks_float_hi_optab): Define new macro.
13999         (vec_unpacks_float_lo_optab): Ditto.
14000         (vec_unpacku_float_hi_optab): Ditto.
14001         (vec_unpacku_float_lo_optab): Ditto.
14002         (vec_pack_sfix_trunc_optab): Ditto.
14003         (vec_pack_ufix_trunc_optab): Ditto.
14004         * genopinit.c (optabs): Implement vec_unpack[s|u]_[hi|lo]_optab
14005         and vec_pack_[s|u]fix_trunc_optab using
14006         vec_unpack[s|u]_[hi\lo]_* and vec_pack_[u|s]fix_trunc_* patterns
14007         * tree-vectorizer.c (supportable_widening_operation): Handle
14008         FLOAT_EXPR and CONVERT_EXPR.  Update comment.
14009         (supportable_narrowing_operation): New function.
14010         * tree-vectorizer.h (supportable_narrowing_operation): Prototype.
14011         * tree-vect-transform.c (vectorizable_conversion): Handle
14012         (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
14013         (vect_gen_widened_results_half): Move before vectorizable_conversion.
14014         (vectorizable_type_demotion): Call supportable_narrowing_operation()
14015         to check for target support.
14016         * optabs.c (optab_for_tree_code) Return vec_unpack[s|u]_float_hi_optab
14017         for VEC_UNPACK_FLOAT_HI_EXPR, vec_unpack[s|u]_float_lo_optab
14018         for VEC_UNPACK_FLOAT_LO_EXPR and vec_pack_[u|s]fix_trunc_optab
14019         for VEC_PACK_FIX_TRUNC_EXPR.
14020         (expand_binop): Special case mode of the result for
14021         vec_pack_[u|s]fix_trunc_optab.
14022         (init_optabs): Initialize vec_unpack[s|u]_[hi|lo]_optab and
14023         vec_pack_[u|s]fix_trunc_optab.
14024
14025         * tree.def (VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR,
14026         VEC_PACK_FIX_TRUNC_EXPR): New tree codes.
14027         * tree-pretty-print.c (dump_generic_node): Handle
14028         VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR and
14029         VEC_PACK_FIX_TRUNC_EXPR.
14030         (op_prio): Ditto.
14031         * expr.c (expand_expr_real_1): Ditto.
14032         * tree-inline.c (estimate_num_insns_1): Ditto.
14033         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
14034
14035         * config/i386/sse.md (vec_unpacks_float_hi_v8hi): New expander.
14036         (vec_unpacks_float_lo_v8hi): Ditto.
14037         (vec_unpacku_float_hi_v8hi): Ditto.
14038         (vec_unpacku_float_lo_v8hi): Ditto.
14039         (vec_unpacks_float_hi_v4si): Ditto.
14040         (vec_unpacks_float_lo_v4si): Ditto.
14041         (vec_pack_sfix_trunc_v2df): Ditto.
14042
14043         * doc/c-tree.texi (Expression trees) [VEC_UNPACK_FLOAT_HI_EXPR]:
14044         Document.
14045         [VEC_UNPACK_FLOAT_LO_EXPR]: Ditto.
14046         [VEC_PACK_FIX_TRUNC_EXPR]: Ditto.
14047         * doc/md.texi (Standard Names) [vec_pack_sfix_trunc]: Document.
14048         [vec_pack_ufix_trunc]: Ditto.
14049         [vec_unpacks_float_hi]: Ditto.
14050         [vec_unpacks_float_lo]: Ditto.
14051         [vec_unpacku_float_hi]: Ditto.
14052         [vec_unpacku_float_lo]: Ditto.
14053
14054 2007-05-16  Uros Bizjak  <ubizjak@gmail.com>
14055
14056         * soft-fp/README: Update for new files.
14057         * soft-fp/floattisf.c: New file.
14058         * soft-fp/floattidf.c: New file.
14059         * soft-fp/floattitf.c: New file.
14060         * soft-fp/floatuntisf.c: New file.
14061         * soft-fp/floatuntidf.c: New file.
14062         * soft-fp/floatuntitf.c: New file.
14063         * soft-fp/fixsfti.c: New file.
14064         * soft-fp/fixdfti.c: New file.
14065         * soft-fp/fixtfti.c: New file.
14066         * soft-fp/fixunssfti.c: New file.
14067         * soft-fp/fixunsdfti.c: New file.
14068         * soft-fp/fixunstfti.c: New file.
14069         * soft-fp/extendxftf.c: New file.
14070         * soft-fp/trunctfxf.c: New file.
14071
14072         * libgcc-std.ver (__extendxftf2): Added to GCC_4.3.0 section.
14073         (__trunctfxf2): Ditto.
14074
14075         * config/i386/libgcc-x86_64-glibc.ver (__addtf3, __divtf3, __eqtf2,
14076         __extenddftf2, __extendsftf2, __fixtfdi, __fixtfsi, __fixtfti,
14077         __fixunstfdi, __fixunstfsi, __fixunstfti, __floatditf, __floatsitf,
14078         __floattitf, __floatunditf, __floatunsitf, __floatuntitf, __getf2,
14079         __letf2, __multf3, __negtf2, __subtf3, __trunctfdf2, __trunctfsf2,
14080         __unordtf2): Exclude and add to GCC_4.3.0 section for x86_64 targets.
14081
14082         * config/i386/t-fprules-softfp64: New file.
14083         * config/i386/sfp-machine.h: New file.
14084         * config.gcc (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu,
14085         x86_64-*-knetbsd*-gnu): Add i386/t-fprules-softfp64
14086         and soft-fp/t-softfp to tmake_file.
14087         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
14088         i[34567]86-*-knetbsd*-gnu): Ditto for --enable-targets=all.
14089
14090         * config/i386/t-linux64 (softfp_wrap_start): New.
14091         (softfp_wrap_end): New.
14092         * config/i386/i386.c (ix86_scalar_mode_supported): TFmode is
14093         supported for TARGET_64BIT.
14094
14095 2007-05-16  Rafael Avila de Espindola  <espindola@google.com>
14096
14097         * c-common.c (c_common_signed_or_unsigned_type): Emulate
14098         c_common_unsigned_type behavior.
14099
14100 2007-05-16  Paolo Bonzini  <bonzini@gnu.org>
14101
14102         * config/i386/i386.c (legitimize_tls_address): Mark __tls_get_addr
14103         calls as pure.
14104
14105 2007-05-16  Eric Christopher  <echristo@apple.com>
14106
14107         * config/rs6000/rs6000.c (rs6000_emit_prologue): Move altivec register
14108         saving after stack push. Set sp_offset whenever we push.
14109         (rs6000_emit_epilogue): Move altivec register restore before
14110         stack push.
14111
14112 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
14113
14114         * configure.ac: Allow sysroots to be relocated under $prefix as
14115         well as $exec_prefix.
14116         * configure: Regenerate.
14117
14118 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
14119
14120         Revert:
14121
14122         2007-05-12  Richard Sandiford  <richard@codesourcery.com>
14123
14124         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
14125         (gcc_tooldir): Likewise.
14126         * configure: Regenerate.
14127         * Makefile.in (libsubdir_to_prefix): New variable, based on the
14128         old configure.ac gcc_tooldir setting.
14129         (prefix_to_exec_prefix): New variable.
14130         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
14131         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
14132
14133 2007-05-14  Janis Johnson  <janis187@us.ibm.com>
14134
14135         * c-typeck.c (build_binary_op): Return early for error.
14136
14137 2007-05-15  Zdenek Dvorak  <dvorakz@suse.cz>
14138
14139         * tree-ssa-loop-niter.c (record_estimate): Use GGC_NEW to allocate
14140         struct nb_iter_bound.
14141         (free_numbers_of_iterations_estimates_loop): Use ggc_free.
14142         * gengtype.c (open_base_files): Add cfhloop.h to the list of includes.
14143         * cfgloopmanip.c (place_new_loop): Vector larray is gc-allocated.
14144         * tree-scalar-evolution.c: Include gt-tree-scalar-evolution.h.
14145         (struct scev_info_str, scalar_evolution_info): Add GTY markers.
14146         (new_scev_info_str): Use GGC_NEW to allocate struct scev_info_str.
14147         (del_scev_info): Use ggc_free.
14148         (scev_initialize): Allocate scalar_evolution_info in gc memory.
14149         * loop-init.c: Include ggc.h.
14150         (loop_optimizer_init): Use GGC_CNEW to allocate struct loops.
14151         (loop_optimizer_finalize): Use ggc_free.
14152         * tree-ssa-loop.c (pass_tree_unswitch, pass_vectorize,
14153         pass_linear_transfom, pass_empty_loop, pass_complete_unroll,
14154         pass_iv_optimize): Add TODO_ggc_collect.
14155         * function.h (struct function): Remove skip marker from
14156         x_current_loops.
14157         * cfgloop.c: Include ggc.h.
14158         (flow_loops_free, flow_loop_free): Free the loop descriptions in gc
14159         memory.
14160         (establish_preds): Vector superloops is gc allocated.
14161         (alloc_loop): Allocate loop using GGC_CNEW.  Allocate head of
14162         loop->exits list.
14163         (flow_loops_find): Vector larray is gc allocated.
14164         (loop_exit_free): Use ggc_free.
14165         (rescan_loop_exit): Use GGC_NEW to allocate struct loop_exit.  Reflect
14166         that head of exits list is now not a part of struct loop.
14167         (record_loop_exits): Allocate exits table in gc memory.
14168         (get_loop_exit_edges, verify_loop_structure, single_exit): Reflect
14169         that head of exits list is now not a part of struct loop.
14170         * cfgloop.h (struct lpt_decision, struct nb_iter_bound,
14171         struct loop_exit): Add GTY marker.
14172         (struct loop): Add GTY marker.  Make superloops vector gc allocated.
14173         Add skip marker to aux field.  Make head of exits list a separate
14174         object.
14175         (struct loops): Add GTY marker.  Make larray vector gc allocated.
14176         Add param marker to exits table.
14177         (get_loops): Type changed.
14178         * Makefile.in (tree-scalar-evolution.o): Add
14179         gt-tree-scalar-evolution.h dependency.
14180         (cfgloop.o, loop-init.o): Add ggc.h dependency.
14181         (GTFILES): Add cfgloop.h and tree-scalar-evolution.c.
14182         * basic-block.h (struct basic_block_def): Remove skip marker from
14183         loop_father field.
14184
14185 2007-05-14  Uros Bizjak  <ubizjak@gmail.com>
14186
14187         * builtins.c (expand_builtin_mathfn): Use EXPAND_NORMAL instead
14188         of 0 in the call to expand_expr().
14189         (expand_builtin_mathfn_3): Ditto.
14190         (expand_builtin_interclass_mathfn): Ditto.
14191         (expand_builtin_cexpi): Ditto.
14192         (expand_builtin_int_roundingfn): Ditto.
14193         (expand_builtin_int_roundingfn_2): Ditto.
14194         (expand_builtin_pow): Ditto.
14195         (expand_builtin_powi): Ditto.
14196         (expand_builtin_bswap): Ditto.
14197         (expand_builtin_unop): Ditto.
14198         (expand_builtin_fabs): Ditto.
14199         (get_builtin_sync_mem): Use NULL_RTX instead of NULL in
14200         the call to expand_expr().
14201         (expand_builtin_sync_operation): Ditto.
14202         (expand_builtin_compare_and_swap): Ditto.
14203         (expand_builtin_lock_test_and_set): Ditto.
14204         * except.c (expand_builtin_eh_return_data_regno): Use EXPAND_NORMAL
14205         instead of 0 in the call to expand_expr().
14206         (expand_builtin_extract_return_addr): Ditto.
14207         (expand_builtin_eh_return): Ditto.
14208         (expand_eh_return): Ditto.
14209         * explow.c (expr_size): Ditto.
14210         * expr.c (optimize_bitfield_assignment_op): Ditto.
14211         (expand_assignement): Ditto.
14212         (store_expr): Ditto.
14213         (store_field): Ditto.
14214         (expand_expr_addr_expr_1): Use NULL_RTX instead of NULL in
14215         the call to expand_expr().
14216         (expand_expr_real_1) [COMPLEX_CST]: Use EXPAND_NORMAL instead of 0
14217         in the call to expand_expr().
14218         [CONSTRUCTOR, PLUS_EXPR, MINUS_EXPR, NEGATE_EXPR, ABS_EXPR,
14219         BIT_NOT_EXPR, LSHIFT_EXPR, LT_EXPR, TRUTH_NOT_EXPR]: Ditto.
14220         [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO]: Use expand_normal() instead
14221         of expand_expr().
14222         * optabs.c (expand_vec_shift_expr): Ditto.
14223         (expand_vec_cond_expr): Ditto.
14224         (vector_compare_rtx): Use EXPAND_STACK_PARM instead of 1 in the
14225         call to expand_expr().
14226         * stmt.c (expand_return): Use EXPAND_NORMAL instead of 0
14227         in the call to expand_expr().
14228
14229 2007-05-14  Dave Korn  <dave.korn@artimi.com>
14230
14231         * genautomata.c (gen_regexp_el): Allocate correct size for regexp.
14232
14233 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
14234
14235         * c-common.c (warnings_for_convert_and_check): Use unsigned_type_for
14236         instead of c_common_unsigned_type.
14237         (c_common_unsigned_type): Remove.
14238         (shorten_compare): Use c_common_signed_or_unsigned_type instead of
14239         c_common_unsigned_type.
14240         (c_common_nodes_and_builtins): Use unsigned_type_for instead of
14241         c_common_unsigned_type.
14242         * c-common.h (c_common_unsigned_type): Remove.
14243         * c-decl.c (grokdeclarator): Use unsigned_type_for instead of
14244         c_common_unsigned_type.
14245         * c-format.c (check_format_types): Use unsigned_type_for instead of
14246         c_common_unsigned_type.
14247         * c-objc-common.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
14248         * c-typeck.c (convert_for_assignment): Use unsigned_type_for instead
14249         of c_common_unsigned_type.
14250         * convert.c (convert_to_integer): Use unsigned_type_for instead of
14251         lang_hooks.types.unsigned_type.
14252         * expmed.c (make_tree): Use unsigned_type_for instead of
14253         lang_hooks.types.unsigned_type.
14254         * fold-const.c (fold_negate_expr): Use unsigned_type_for instead of
14255         lang_hooks.types.unsigned_type.
14256         (build_range_check): Likewise.
14257         (fold_unary): Likewise.
14258         (fold_binary): Likewise.
14259         (fold_ternary): Likewise.
14260         * langhooks-def.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
14261         * langhooks.h (lang_hooks_for_types): Remove unsigned_type.
14262         * tree.c (get_unsigned_type): New.
14263         (unsigned_type_for): Use get_unsigned_type instead of
14264         lang_hooks.types.unsigned_type.
14265
14266 2007-05-14  Kazu Hirata  <kazu@codesourcery.com>
14267
14268         * config/m68k/m68k-protos.h: Rename m68k_interrupt_function_p
14269         to m68k_get_function_kind.  Update its prototype.
14270         * config/m68k/m68k.c (m68k_attribute_table): Add an entry for
14271         interrupt_thread.
14272         (m68k_interrupt_function_p): Return enum m68k_function_type
14273         instead of bool.  Rename to m68k_get_function_kind.
14274         (m68k_handle_fndecl_attribute): Reject interrupt_thread if the
14275         target is not fido.
14276         (m68k_compute_frame_layout): Don't mark any register for save
14277         if an interrupt_thread attribute is specified.
14278         (m68k_hard_regno_rename_ok): Update a use of
14279         m68k_interrupt_function_p.
14280         * config/m68k/m68k.h (EPILOGUE_USES): Update a use of
14281         m68k_interrupt_function_p.
14282         (m68k_function_type): New.
14283         * config/m68k/m68k.md (*return): Output a 'sleep' instruction
14284         for a function with an interrupt_thread attribute.
14285         * doc/extend.texi: Document the interrupt_thread attribute.
14286
14287 2007-05-13  Daniel Berlin  <dberlin@dberlin.org>
14288
14289         Fix PR tree-optimization/31911
14290         * tree-ssa-pre.c (phi_translate): Make sure to cache results even
14291         if they didn't change the expression.
14292
14293 2007-05-13  Zdenek Dvorak  <dvorakz@suse.cz>
14294
14295         * tree-scalar-evolution.c (resolve_mixers): Exported.
14296         * tree-scalar-evolution.h (resolve_mixers): Declare.
14297         * tree-data-ref.c (object_analysis, ptr_decl_may_alias_p,
14298         ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
14299         record_record_differ_p, record_array_differ_p, array_ptr_differ_p,
14300         base_object_differ_p, base_addr_differ_p, analyze_array_indexes,
14301         init_array_ref, init_pointer_ref, analyze_indirect_ref,
14302         strip_conversion, analyze_offset_expr, address_analysis,
14303         object_analysis, analyze_offset): Removed.
14304         (dr_analyze_innermost, dr_analyze_indices, dr_analyze_alias,
14305         split_constant_offset, canonicalize_base_object_address,
14306         object_address_invariant_in_loop_p, disjoint_objects_p,
14307         dr_may_alias_p, dr_address_invariant_p): New functions.
14308         (create_data_ref): Use dr_analyze_innermost, dr_analyze_indices
14309         and dr_analyze_alias.
14310         (initialize_data_dependence_relation): Use dr_may_alias_p
14311         and object_address_invariant_in_loop_p.
14312         (compute_self_dependence): Handle the case when
14313         DDR_ARE_DEPENDENT (ddr) is chrec_dont_know.
14314         (find_data_references_in_stmt): Restrict the analysis of data
14315         references to the given loop nest.
14316         (find_data_references_in_loop): Made static.  Pass loop nest to
14317         find_data_references_in_stmt.
14318         (compute_data_dependences_for_loop): Use DR_VOPS.
14319         (free_data_ref): Free DR_VOPS.
14320         * tree-data-ref.h (struct first_location_in_loop): Replaced by ...
14321         (struct innermost_loop_behavior): ... new.
14322         (struct base_object_info): Replaced by ...
14323         (struct indices): ... new.
14324         (struct dr_alias): New.
14325         (enum data_ref_type): Removed.
14326         (struct data_reference): Consist of struct innermost_loop_behavior,
14327         struct indices and struct dr_alias.
14328         (DR_SET_ACCESS_FNS, DR_FREE_ACCESS_FNS): Removed.
14329         (DR_MEMTAG): Renamed to ...
14330         (DR_SYMBOL_TAG): ... this.
14331         (find_data_references_in_loop): Declaration removed.
14332         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use DR_INIT
14333         instead of DR_OFFSET_MISALIGNMENT.  DR_ALIGNED_TO is never NULL.
14334         (vect_analyze_data_refs): Use DR_SYMBOL_TAG instead of DR_MEMTAG.
14335         * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
14336
14337 2007-05-13  Revital Eres  <eres@il.ibm.com>
14338
14339         * tree-ssa-dse.c (get_use_of_stmt_lhs): New function
14340         which walks virtual def-use chains to find redundant stores.
14341         (dse_optimize_stmt): Call it.
14342
14343 2007-05-12  Steven Bosscher  <steven@gcc.gnu.org>
14344
14345         * gcse.c (gcse_main): Do jump bypassing in CPROP2.
14346         * passes.c (init_optimization_passes): Move pass_jump_bypass
14347         after loop2.
14348
14349         * basic-block.h (bb_has_eh_pred): Fix style issue.
14350
14351 2007-05-12  Steven Bosscher  <steven@gcc.gnu.org>
14352
14353         PR rtl-optimization/31848
14354         * loop-invariant.c (move_invariant_reg): If we move an insn
14355         with a REG_EQUAL note, and that insn is not always executed,
14356         remove the REG_EQUAL note.
14357
14358 2007-05-12  Richard Guenther  <rguenther@suse.de>
14359
14360         PR tree-optimization/31797
14361         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
14362         propagate into a stmt that has volatile ops.
14363
14364 2007-05-12  Richard Sandiford  <richard@codesourcery.com>
14365
14366         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
14367         (gcc_tooldir): Likewise.
14368         * configure: Regenerate.
14369         * Makefile.in (libsubdir_to_prefix): New variable, based on the
14370         old configure.ac gcc_tooldir setting.
14371         (prefix_to_exec_prefix): New variable.
14372         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
14373         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
14374
14375 2007-05-11  Silvius Rus  <rus@google.com>
14376
14377         * Makefile.in (OBJS-common): Add tree-ssa-alias-warnings.o.
14378         * c-common.c (strict_aliasing_warning): Modify -Wstrict-aliasing logic.
14379         * c-common.h (strict_aliasing_warning): Change return type.
14380         * c-opts.c (c_common_handle_option): Add call to set_Wstrict_aliasing.
14381         * c-typeck.c (build_indirect_ref): Add call to strict_aliasing_warning.
14382         (build_c_cast): Condition call to strict_aliasing_warning.
14383         * doc/invoke.texi: Update description of -Wstrict-aliasing[=n].
14384         * flags.h (set_Wstrict_aliasing): Declare.
14385         * opts.c (set_Wstrict_alising): Define, add call to.
14386         * tree-flow.h (strict_aliasing_warning_backend): Declare.
14387         * tree-ssa-alias-warnings.c: New file.
14388         * tree-ssa-alias.c (compute_may_aliases): Add call to
14389         strict_aliasing_warning_backend.
14390
14391 2007-05-11  Zdenek Dvorak  <dvorakz@suse.cz>
14392
14393         * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
14394         Use loop_depth and loop_outer accessor functions.
14395         * tree-ssa-loop-im.c (outermost_invariant_loop, set_level,
14396         determine_invariantness_stmt, move_computations_stmt): Ditto.
14397         * cfgloopmanip.c (fix_bb_placement, fix_loop_placement, remove_path,
14398         add_loop, loopify, unloop, fix_loop_structure): Ditto.
14399         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Ditto.
14400         * tree-scalar-evolution.c (interpret_loop_phi,
14401         compute_scalar_evolution_in_loop, analyze_scalar_evolution_in_loop,
14402         instantiate_parameters_1, scev_const_prop): Ditto.
14403         * cfghooks.c (make_forwarder_block): Ditto.
14404         * cfgloopanal.c (mark_irreducible_loops, mark_loop_exit_edges): Ditto.
14405         * modulo-sched.c (loop_canon_p): Ditto.
14406         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg,
14407         slpeel_can_duplicate_loop_p): Ditto.
14408         * lambda-code.c (invariant_in_loop_and_outer_loops): Ditto.
14409         * tree-cfg.c (tree_duplicate_sese_region): Ditto.
14410         * cfgloop.c (flow_loop_dump, flow_loop_nodes_find, rescan_loop_exit,
14411         cancel_loop, verify_loop_structure): Ditto.
14412         (flow_loop_nested_p, superloop_at_depth, flow_loop_free,
14413         add_bb_to_loop, remove_bb_from_loops, find_common_loop): Use the
14414         superloops vector instead of "pred" array.
14415         (establish_preds): Take father loop as an argument.  Initialize the
14416         superloops vector.
14417         (flow_loop_tree_node_add): Pass father loop to establish_preds.
14418         Do not initialize loop->outer.
14419         (flow_loop_tree_node_remove): Truncate the superloops vector.
14420         * cfgloop.h (struct loop): Removed field "outer", fields "depth" and
14421         "pred" merged to "superloops" vector.
14422         (loop_depth, loop_outer): New.
14423         (fel_init): Use loop_outer.
14424
14425 2007-05-11  Jan Hubicka  <jh@suse.cz>
14426
14427         * cgraphunit.c: Include gt-cgraphunit.h
14428         (static_ctors, static_dtors): New static vars.
14429         (record_cdtor_fn, build_cdtor, cgraph_build_cdtor_fns): New functions,
14430         based on implementation in c-common.c
14431         (cgraph_finalize_function): Call record_cdtor_fn.
14432         (cgraph_optimize): Call cgraph_build_cdtor_fns.
14433         * decl.c (finish_function): Do not call c_record_cdtor_fn.
14434         (c_write_global_declarations): Do not call c_build_cdtor_fns.
14435         * c-common.c (static_ctors, static_dtors, c_record_cdtor_fn,
14436         build_cdtor, c_build_cdtor_fns): Remove.
14437         * c-common.h (static_ctors, static_dtors, c_record_cdtor_fn,
14438         c_build_cdtor_fns): Remove prototype.
14439
14440 2007-05-11  Paolo Carlini  <pcarlini@suse.de>
14441
14442         PR other/31852
14443         * builtin-types.def: Add BT_FN_PTR_CONST_PTR_INT_SIZE.
14444         * builtins.def: Add BUILT_IN_MEMCHR, use the latter.
14445         * builtins.c (fold_builtin_memchr): New.
14446         (expand_builtin_memchr): Call the latter.
14447         (expand_builtin, fold_builtin_3): Deal with BUILT_IN_MEMCHR.
14448         * doc/extend.texi ([Other built-in functions provided by GCC]):
14449         Document memchr.
14450
14451 2007-05-11  Andreas Krebbel  <krebbel1@de.ibm.com>
14452
14453         * config/s390/s390.md (GPR0_REGNUM, FPR0_REGNUM, FPR2_REGNUM,
14454         PFPO_CONVERT, PFPO_OP_TYPE_SF, PFPO_OP_TYPE_DF, PFPO_OP_TYPE_TF,
14455         PFPO_OP_TYPE_SD, PFPO_OP_TYPE_DD, PFPO_OP_TYPE_TD, PFPO_OP0_TYPE_SHIFT,
14456         PFPO_OP1_TYPE_SHIFT): Constants added.
14457         (DFP_ALL): Mode macro defined.
14458         ("*trunc<BFP:mode><DFP_ALL:mode>2", "*trunc<DFP_ALL:mode><BFP:mode>2",
14459         "*extend<BFP:mode><DFP_ALL:mode>2", "*extend<DFP_ALL:mode><BFP:mode>2"):
14460         Insn definitions added.
14461         ("trunc<BFP:mode><DFP_ALL:mode>2", "trunc<DFP_ALL:mode><BFP:mode>2",
14462         "extend<BFP:mode><DFP_ALL:mode>2", "extend<DFP_ALL:mode><BFP:mode>2"):
14463         Expanders added.
14464
14465 2007-05-10  Zdenek Dvorak  <dvorakz@suse.cz>
14466
14467         PR tree-optimization/31885
14468         * tree-chrec.c (chrec_contains_undetermined): Do not consider
14469         NULL_TREE to be undetermined.
14470         (automatically_generated_chrec_p): Return false for NULL.
14471
14472 2007-05-08  Bernd Schmidt  <bernd.schmidt@analog.com>
14473
14474         * config/bfin/bfin.h (MOVE_RATIO): Define.
14475
14476 2007-05-10  Richard Sandiford  <richard@codesourcery.com>
14477
14478         * config.gcc (sparc-wrs-vxworks): New target.
14479         * config/sparc/vxworks.h, config/sparc/t-vxworks: New files.
14480         * config/sparc/sparc-protos.h (sparc_emit_call_insn): Declare.
14481         * config/sparc/sparc.h: Include vxworks-dummy.h.
14482         (PRINT_OPERAND_ADDRESS): Extend SYMBOL_REF handling to
14483         include LABEL_REFs too.
14484         * config/sparc/sparc.c (sparc_expand_move): Don't assume that
14485         _GLOBAL_OFFSET_TABLE_ - label_ref is a link-time constant on
14486         VxWorks.
14487         (legitimize_pic_address): Handle LABEL_REFs like SYMBOL_REFs
14488         on VxWorks.
14489         (load_pic_register): Use gen_vxworks_load_got for VxWorks.
14490         (sparc_emit_call_insn): New function.
14491         (sparc_function_ok_for_sibcall): Restrict sibcalls to locally-binding
14492         functions when generating VxWorks PIC.
14493         * config/sparc/sparc.md (vxworks_load_got): New pattern.
14494         (call, call_value): Use sparc_emit_call_insn instead of
14495         emit_call_insn.
14496
14497 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
14498
14499         * config/xtensa/xtensa.c (xtensa_output_literal): Don't use #if.
14500
14501 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
14502
14503         * config/xtensa/xtensa.c (xtensa_output_literal): Mask out high bits
14504         for floating-point values if HOST_BITS_PER_LONG > 32.  Use
14505         split_double instead of operand_subword.
14506
14507 2007-05-08  Bernd Schmidt  <bernd.schmidt@analog.com>
14508
14509         * config/bfin/bfin.h (LOCAL_ALIGNMENT): Define.
14510         * config/bfin/bfin.c (bfin_local_alignment): New function.
14511         * config/bfin/bfin-protos.h (bfin_local_alignment): Declare it.
14512
14513 2007-05-08  Chao-ying Fu  <fu@mips.com>
14514
14515         * doc/md.texi (msub@var{m}@var{n}4, usub@var{m}@var{n}4): Document.
14516         * optabs.h (OTI_smsub_widen, OTI_umsub_widen): New optab_indexes.
14517         (smsub_widen_optab, umsub_widen_optab): Define.
14518         * optabs.c (init_optabs): Initialize smsub_widen_optab and
14519         umsub_widen_optab.
14520         * genopinit.c (optabs): Fill in smsub_widen_optab and
14521         umsub_widen_optab.
14522         * expr.c (expand_expr_real_1): Try to use smsub_widen_optab
14523         and umsub_widen_optab to implement multiply-subtract sequences.
14524         * config/mips/mips.md (*msac<u>_di): Rename to...
14525         (<u>msubsidi4): ...this.  Extend condition to include
14526         GENERATE_MADD_MSUB and TARGET_DSPR2.  Change the constraint
14527         of operand 0 to "ka" and use the three-operand form of msub<u>
14528         for TARGET_DSPR2.
14529         * config/mips/mips-dspr2.md (mips_msub, mips_msubu): Convert
14530         to define_expands.
14531
14532 2007-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
14533
14534         PR rtl-optimization/28011
14535         * reload.c (push_reload): Set dont_share if IN appears in OUT
14536         also when IN is a PLUS rtx.
14537         (reg_overlap_mentioned_for_reload_p): Return true if X and IN
14538         are same PLUS rtx.
14539
14540 2007-05-08  Kazu Hirata  <kazu@codesourcery.com>
14541
14542         * emit-rtl.c (unshare_all_rtl_1): Don't copy DECL_RTL.  Don't
14543         call unshare_all_decls.
14544         (unshare_all_rtl): Adjust the call to unshare_all_rtl_1.
14545         (unshare_all_decls): Remove.
14546
14547 2007-05-08  Simon Martin  <simartin@users.sourceforge.net>
14548
14549         PR 31847
14550         * tree-dump.c (dump_options): Don't use TDF_DIAGNOSTIC in "*-all" tree
14551         dumps.
14552
14553 2007-05-08  Sandra Loosemore  <sandra@codesourcery.com>
14554             Nigel Stephens  <nigel@mips.com>
14555
14556         * config/mips/mips.h (MAX_FPRS_PER_FMT): Renamed from FP_INC.
14557         Update comments and all uses.
14558         (MIN_FPRS_PER_FMT): Define.
14559         * config/mips/mips.c (function_arg): Fix to correctly handle
14560         the -mips32r2 -mfp64 -mabi=32 case.
14561         (override_options): Enable use of odd-numbered registers for
14562         SFmode values on MIPS32.
14563         (mips_save_reg_p): Save whole floating-point register pair if
14564         either half is used.
14565         (compute_frame_size): Fix comment.
14566
14567 2007-05-08  Jie Zhang  <jie.zhang@analog.com>
14568
14569         * config/bfin/bfin-protos.h (bfin_expand_epilogue): Add a third
14570         argument of type bool.
14571         * config/bfin/bfin.c (add_to_reg): Add epilogue_p as a fourth
14572         argument. Safely select temporary P register according to it.
14573         (do_link): Change call site of add_to_reg accordingly.
14574         (do_unlink): Add epilogue_p as a fourth argument and pass it
14575         to add_to_reg.
14576         (expand_interrupt_handler_epilogue): Change call of do_unlink
14577         accordingly.
14578         (bfin_expand_prologue): Add a third argument sibcall_p.
14579         * config/bfin/bfin.md (epilogue): Change call of
14580         bfin_expand_epilogue accordingly.
14581         (sibcall_epilogue): Likewise.
14582         (eh_return_internal): Likewise.
14583
14584         * config/bfin/bfin-protos.h (enum bfin_cpu): Add
14585         BFIN_CPU_BF534, BFIN_CPU_BF536 and BFIN_CPU_BF561.
14586         * config/bfin/bfin.c (bfin_handle_option): Handle
14587         -mcpu=bf534, -mcpu=bf536 and -mcpu=bf561.
14588         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS):
14589         Support bf534, bf536 and bf561.
14590         * doc/invoke.texi (Blackfin Options): Document -mcpu and -msim.
14591
14592 2007-05-08  Uros Bizjak  <ubizjak@gmail.com>
14593
14594         PR target/31854
14595         * config/i386/i386.c (ix86_function_regparm): Process local
14596         functions only when TREE_CODE (decl) equals FUNCTION_DECL.
14597
14598 2007-05-07  Mike Stump  <mrs@apple.com>
14599
14600         * doc/invoke.texi (Warning Options): Document that -Wempty-body
14601         also checks for and while statements in C++.
14602
14603 2007-05-07  Nathan Froyd  <froydnj@codesourcery.com>
14604
14605         * gcc.c (at_file_supplied): New variable.
14606         (main): Set it if we expanded argv.
14607         (do_spec_1): Pass an @-file to the linker if we were called with
14608         an @-file argument and HAVE_GNU_LD.
14609         * collect2.c (at_file_supplied): New variable.
14610         (response_file): New variable.
14611         (collect_exit): Unlink response_file if necessary.
14612         (handler): Likewise.
14613         (do_wait): Likewise.
14614         (main): Set at_file_supplied if we expanded argv.
14615         (collect_execute): Pass an @-file to subprocesses if we were called
14616         with an @-file argument.
14617         * configure.ac: Add define for HAVE_GNU_LD.
14618         * configure: Regenerate.
14619         * config.in: Regenerate.
14620
14621 2007-05-07  Naveen.H.S  <naveen.hs@kpitcummins.com>
14622
14623         * config/m32c/muldiv.md (mulhisi3_c): Limit the mode of the 2nd
14624         operand to HI mode.
14625         (mulsi3): New.
14626         (divsi3): New.
14627         (udivsi3): New.
14628
14629 2007-05-07  Jayant Sonar  <jayants@kpitcummins.com>
14630
14631         * config/m32c/m32c.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
14632         (TARGET_ENCODE_SECTION_INFO): Re-define.
14633         (m32c_encode_section_info): New
14634         (function_vector_handler): New
14635         (current_function_special_page_vector): New
14636         (m32c_special_page_vector_p): New.
14637         * config/m32c/m32c-protos.h (m32c_special_page_vector_p):
14638         Prototype.
14639         * config/m32c/jump.md: Added instruction JSRS for functions
14640         with attribute "function_vector".
14641         * doc/extend.texi (function_vector): Added description
14642         for M16C, M32C targets.
14643
14644 2007-05-07  DJ Delorie  <dj@redhat.com>
14645
14646         PR 31794
14647         * config/m32c/shift.md (ashlpsi3_i, ashrpsi3_i, ashlpsi3,
14648         ashrpsi3, lshrpsi3): Update shift count constraint.
14649
14650 2007-05-07  Danny Smith  <dannysmith@users.sourceforge.net>
14651             Nathan Froyd  <froydnj@codesourcery.com>
14652
14653         PR 22133
14654         * c-incpath.c (add_path): Strip trailing path separators.
14655
14656 2007-05-07  Eric Botcazou  <ebotcazou@adacore.com>
14657
14658         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered.
14659         Free dominance info before purging EH edges.
14660         (eliminate_degenerate_phis): Likewise.
14661         (propagate_rhs_into_lhs): Set cfg_altered to true instead of 1.
14662
14663 2007-05-07  Jan Hubicka  <jh@suse.cz>
14664
14665         * gimplify.c (gimplify_expr): Do not crash when folding
14666         (void *)(int)&a + 4.
14667
14668 2007-05-07  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14669
14670         PR driver/31694
14671         * c-opts.c (lang_fortran): Make it non static.
14672         * c-common.h (lang_fortran): New prototype.
14673         * c-cppbuiltin.c (c_cpp_builtins): Create a __GFORTRAN__ if the
14674         -lang-fortran option was passed by the driver.
14675
14676 2007-05-06  Eric Botcazou  <ebotcazou@adacore.com>
14677
14678         * timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead
14679         of ASSERT_CHECKING.  Tweak message.
14680
14681 2007-05-06  Revital Eres  <eres@il.ibm.com>
14682
14683         PR 30957
14684         * loop-unroll.c (insert_var_expansion_initialization):
14685         Initialize the expansions with -zero instead of +zero.
14686
14687 2007-05-05  Aurelien Jarno  <aurelien@aurel32.net>
14688
14689         * config/pa/pa.md: Split tgd_load, tld_load and tie_load
14690         into pic and non-pic versions. Mark r19 as used for
14691         tgd_load_pic, tld_load_pic and tie_load_pic. Mark r27 as used
14692         for tgd_load, tld_load and tie_load .
14693         * config/pa/pa.c (legitimize_tls_address): Emit pic or non-pic
14694         version of tgd_load, tld_load and tie_load depending on the
14695         value of flag_pic.
14696
14697 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
14698             Jakub Jelinek  <jakub@redhat.com>
14699
14700         * crtstuff.c (HIDDEN_DTOR_LIST_END): New macro.
14701         (__do_global_dtors_aux): Use more paranoid loop to run
14702         destructors if HIDDEN_DTOR_LIST_END.
14703         (__DTOR_END__): Export as a hidden symbol when HIDDEN_DTOR_LIST_END.
14704
14705 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
14706
14707         * varasm.c (align_variable): Don't increase alignment for
14708         DECL_THREAD_LOCAL_P variables above BITS_PER_WORD through
14709         DATA_ALIGNMENT or CONSTANT_ALIGNMENT.
14710
14711 2007-05-04  Josh Conner  <jconner@apple.com>
14712
14713         * basic-block.h (cdi_direction): Assign values to all enumeration
14714         constants.
14715         (dom_computed): Remove.
14716         (dom_info_state): New.
14717         (set_dom_info_availability): New.
14718         * tree-ssa-loop-im.c (determine_invariantness): Initialize
14719         walk_data.dom_direction.
14720         * cfghooks.c (delete_basic_block): Use dom_info_available_p()
14721         instead of dom_computed[].
14722         (split_edge): Likewise.
14723         (create_basic_block): Likewise.
14724         (merge_blocks): Likewise.
14725         * ifcvt.c (find_if_header): Likewise.
14726         * tree-cfgcleanup.c (cleanup_tree_cfg): Likewise.
14727         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
14728         * tree-ssa.c (verify_ssa): Likewise.
14729         * tree-cfg.c (tree_verify_flow_info): Likewise.
14730         (remove_edge_and_dominated_blocks): Likewise.
14731         * dominance.c (dom_computed): Make static.
14732         (calc_dfs_tree_nonrec): Change third param to a bool.
14733         (calc_dfs_tree): Change second param to a bool.
14734         (calc_idioms): Change second param to a bool.  Use
14735         dom_convert_dir_to_idx.
14736         (init_dom_info): Validate dir before using.
14737         (dom_convert_dir_to_idx): New.
14738         (calculate_dominance_info): Use dom_convert_dir_to_idx.  New
14739         variable 'reverse' used for calling calc_dfs_tree and calc_idoms.
14740         (free_dominance_info): Use dom_convert_dir_to_idx.
14741         (get_immediate_dominator): Likewise.
14742         (set_immediate_dominator): Likewise.
14743         (get_dominated_by): Likewise.
14744         (redirect_immediate_dominators): Likewise.
14745         (nearest_common_denominator): Likewise.
14746         (dominated_by_p): Likewise.
14747         (bb_dom_dfs_in): Likewise.
14748         (bb_dom_dfs_out): Likewise.
14749         (recount_dominator): Likewise.
14750         (iterate_fix_dominators): Likewise.
14751         (add_to_dominance_info): Likewise.
14752         (delete_from_dominance_info): Likewise.
14753         (first_dom_son): Likewise.
14754         (next_dom_son): Likewise.
14755         (dom_info_available_p): Likewise.
14756         (dom_info_state): New.
14757         (set_dom_info_availability): New.
14758
14759 2007-05-04  Andreas Krebbel  <krebbel1@de.ibm.com>
14760
14761         * config/s390/s390.md ("fix_trunc<mode>di2", "fix_trunc<mode>si2"):
14762         Expander removed.
14763         ("fix_trunc<DSF:mode><GPR:mode>2"): Expander added.
14764
14765 2007-05-04  Bob Wilson  <bob.wilson@acm.org>
14766
14767         * config/xtensa/xtensa.md (adddi3, adddi_carry): Delete.
14768         (subdi3, subdi_carry): Delete.
14769
14770 2007-05-04  Jan Hubicka  <jh@suse.cz>
14771             Richard Guenther  <rguenther@suse.de>
14772
14773         * opts.c (decode_options): Do not fiddle with inlining
14774         parameters in case of optimizing for size.
14775         * ipa-inline.c (cgraph_decide_recursive_inlining): When optimizing
14776         for size do nothing.
14777         (cgraph_decide_inlining_of_small_function): When optimizing for
14778         size never inline functions increasing caller size.
14779         (cgraph_early_inlining): Inline for size when optimizing for size.
14780
14781 2007-05-04  Bernd Schmidt  <bernd.schmidt@analog.com>
14782
14783         * config/bfin/bfin.md (<optab>di3): Now a define_expand which expands
14784         logical operations piecewise.
14785         (<optab>di_zesidi_di, <optab>di_sesidi_di, negdi2, one_cmpldi2,
14786         zero_extendsidi2, subdi_di_zesidi, subdi_zesidi_di, subdi_di_sesidi,
14787         subdi_sesidi_di): Delete.
14788         (add_with_carry): Produce carry in CC instead of a DREG to shorten
14789         the generated sequence.  Allow three-reg add in constraints.  Rewrite
14790         the rtl expression for carry to avoid zero_extend of a constant.
14791         (sub_with_carry): New pattern.
14792         (adddi3, subdi3): Change into define_expand.  For subtract, generate a
14793         different sequence not involving jumps.
14794         (notbi): Now a named pattern.
14795
14796 2007-05-04  Bradley Lucier  <lucier@math.purdue.edu>
14797
14798         * doc/invoke.texi (i386 and x86-64 Options) [-mpc32, -mpc64, -mpc80]:
14799         Add the note about a significant loss of accuracy of some
14800         mathematical routines when these options are used.
14801
14802 2007-05-04  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
14803
14804         * haifa-sched.c (rtx_vec_t): New typedef.
14805         (contributes_to_priority_p): Extract piece of priority () into new
14806         static function.
14807         (priority): Use the function.  Add assertion.
14808         (rank_for_schedule, set_priorities): Add assertion to check that
14809         insn's priority is initialized.
14810         (clear_priorities, calc_priorities): Change signature.  Make it update
14811         all relevant insns.  Update all callers ('add_to_speculative_block ()'
14812         and 'create_block_check_twin ()').
14813         * sched-int.h (struct haifa_insn_data): Remove field 'priority_known'.
14814         Add new field 'priority_status'.
14815         (INSN_PRIORITY_STATUS): New macro.
14816         (INSN_PRIORITY_KNOWN): Change to use INSN_PRIORITY_STATUS.
14817
14818 2007-05-04  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
14819
14820         * sched-ebb.c (debug_ebb_dependencies): New static function.
14821         (init_ready_list): Use it.
14822
14823         * sched-rgn.c (debug_dependencies): Split into 'debug_dependencies ()'
14824         with changed signature and 'debug_rgn_dependencies ()'.
14825         (debug_rgn_dependencies): New static function.
14826         (init_ready_list): Use it.
14827
14828         * sched-int.h (debug_dependencies): Declare.
14829
14830 2007-05-04  Andreas Krebbel  <krebbel1@de.ibm.com>
14831
14832         * libgcc-std.ver (__ffssi2): Added to GCC_4.3.0 section.
14833
14834 2007-05-04  Dirk Mueller  <dmueller@suse.de>
14835
14836         * c.opt(Wmain,ffreestanding): Enable for C++,ObjC++.
14837
14838 2007-05-03  Jan Hubicka  <jh@suse.cz>
14839
14840         * fold-const.c (fold_unary): Convert (T1)(X op Y) into
14841         ((T1)X op (T1)Y), for pointer type in more cases than before.
14842
14843         * gimplify.c (gimplify_expr): Fold (void *)&a + 4.
14844
14845         * tree-object-size.c (plus_expr_object_size): When operand size is
14846         unknown, return unknown.
14847
14848 2007-05-03  Dirk Mueller  <dmueller@suse.de>
14849
14850         * doc/invoke.texi (-m386,-m486,-mpentium,-mpentiumpro): Remove.
14851
14852         * config/i386/i386.h (CC1_CPU_SPEC): Remove handling for deprecated
14853         options.
14854
14855         * config/i386/i386.opt (m386,m486,mpentium,mpentiumpro): Remove.
14856
14857 2007-05-03  Janis Johnson  <janis187@us.ibm.com>
14858
14859         * doc/sourcebuild.texi (Test Directives) Clarify dg-excess-errors.
14860
14861 2007-05-03  Joseph Myers  <joseph@codesourcery.com>
14862
14863         * config/soft-fp/double.h, config/soft-fp/extended.h,
14864         config/soft-fp/floatundidf.c, config/soft-fp/floatundisf.c,
14865         config/soft-fp/floatunsidf.c, config/soft-fp/floatunsisf.c,
14866         config/soft-fp/op-2.h, config/soft-fp/op-4.h,
14867         config/soft-fp/op-common.h, config/soft-fp/quad.h: Update from
14868         glibc CVS.
14869
14870 2007-05-03  Ian Lance Taylor  <iant@google.com>
14871
14872         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
14873         MASK_PPC_GFXOPT for 8540 or 8548.
14874
14875 2007-05-03  Uros Bizjak  <ubizjak@gmail.com>
14876
14877         * tree-vect-transform.c (vect_update_inits_of_drs): Use
14878         vect_print_dump_info() to output debug information.
14879
14880 2007-05-03  Uros Bizjak  <ubizjak@gmail.com>
14881
14882         PR target/31768
14883         * config/i386/i386.c (print_operand) ['z']: Output 'w' for
14884         operands of size 2 when operand is not MEM_P.
14885
14886 2007-05-03  Zdenek Dvorak  <dvorakz@suse.cz>
14887
14888         PR tree-optimization/30565
14889         * lambda-code.c (perfect_nestify): Fix updating of dominators.
14890
14891 2007-05-03  Bernd Schmidt  <bernd.schmidt@analog.com>
14892
14893         * config/bfin/bfin.md (addpdi3, us_truncpdisi2): New patterns.
14894         (umulsi3_highpart): Use them.
14895         * config/bfin/lib1funcs.asm (__umulsi3_highpart): Use unsigned move
14896         for final accumulator to D regisster tranfser.
14897
14898 2007-05-03  Dorit Nuzman  <dorit@il.ibm.com>
14899
14900         PR tree-optimization/31699
14901         * tree-vect-analyze.c (vect_update_misalignment_for_peel): Remove
14902         wrong code.
14903         (vect_enhance_data_refs_alignment): Compute peel amount using
14904         TYPE_VECTOR_SUBPARTS instead of vf.
14905         * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Likewise.
14906
14907 2007-05-02  Brooks Moses  <brooks.moses@codesourcery.com>
14908
14909         PR bootstrap/31776
14910         * system.h: Remove inclusion of double-int.h
14911         * tree.h: Include double-int.h
14912         * gengtype.c: Likewise
14913         * cfgloop.h: Likewise
14914         * Makefile.in: Adjust dependencies on double-int.h
14915
14916 2007-05-02  Eric Christopher  <echristo@apple.com>
14917
14918         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Translate
14919         -shared to -Zdynamiclib.
14920
14921 2007-05-02  Seongbae Park  <seongbae.park@gmail.com>
14922
14923         PR c++/31663
14924         * c-common.c (strip_pointer_or_array_types): New function.
14925         * c-common.h (strip_pointer_or_array_types): New function declaration.
14926
14927 2007-05-03  Zdenek Dvorak  <dvorakz@suse.cz>
14928
14929         PR tree-optimization/31771
14930         * tree-cfg.c (move_block_to_fn): Assign bb to the correct index.
14931
14932 2007-05-02  Paul Brook  <paul@codesourcery.com>
14933
14934         * config/arm/bpabi.S (aeabi_lcmp): Fix result on overflow.
14935
14936 2007-05-02  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14937
14938         PR middle-end/29715
14939         * fold-const.c (fold_comparision): Remove the "foo++ == CONST"
14940         transformation.
14941
14942 2007-05-02  Nick Clifton  <nickc@redhat.com>
14943
14944         * config/frv/predicates.md (symbolic_operand): Accept CONSTs.
14945
14946 2007-05-02  Richard Guenther  <rguenther@suse.de>
14947
14948         PR tree-optimization/31146
14949         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
14950         argument, single_use_p.  If we have a single use that is
14951         a conversion to the definition rhs type, propagate that rhs.
14952         (forward_propagate_addr_expr): Pass single_use_p argument
14953         to forward_propagate_addr_expr_1.
14954
14955 2007-05-01  H.J. Lu  <hongjiu.lu@intel.com>
14956
14957         * config/i386/i386.c (ix86_expand_sse_comi): Remove unused
14958         variable.
14959
14960 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
14961
14962         * doc/invoke.texi: Fix typo, 'AMD Family 10h core' instead of
14963         'AMD Family 10 core'.
14964
14965 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
14966
14967         * config/i386/i386.c (override_options): Accept k8-sse3, opteron-sse3
14968         and athlon64-sse3 as improved versions of k8, opteron and athlon64
14969         with SSE3 instruction set support.
14970         * doc/invoke.texi: Likewise.
14971
14972 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
14973
14974         * config/i386/i386.c (override_options): Tuning 32-byte loop
14975         alignment for amdfam10 architecture. Increasing the max loop
14976         alignment to 24 bytes.
14977
14978 2007-05-01  Kazu Hirata  <kazu@codesourcery.com>
14979
14980         * config/m68k/constraints.md: New.
14981         * config/m68k/m68k.h (REG_CLASS_FROM_LETTER,
14982         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
14983         EXTRA_CONSTRAINT): Remove.
14984         * config/m68k/m68k.md: Include constraints.md.
14985         * expr.c (expand_expr_real_1): Copy DECL_RTL before using it.
14986
14987 2007-05-01  Ian Lance Taylor  <iant@google.com>
14988
14989         PR tree-optimization/31739
14990         * tree-vrp.c (vrp_val_is_max): New static function.
14991         (vrp_val_is_min): New static function.
14992         (set_value_range_to_value): Use TYPE_{MAX,MIN}_VALUE rather than
14993         copying the node.
14994         (set_value_range): Use vrp_val_is_{max,min}.
14995         (extract_range_from_assert): Likewise.
14996         (extract_range_from_binary_expr): Likewise.
14997         (extract_range_from_unary_expr): Likewise.
14998         (dump_value_range, vrp_meet): Likewise.
14999         (vrp_visit_phi_node): Likewise.
15000         * tree.c (build_distinct_type_copy): Revert change of 2007-04-27.
15001
15002 2007-05-01  Mark Mitchell  <mark@codesourcery.com>
15003
15004         * config/i386/gmon-sol2.c (size_t): New type.
15005         (intptr_t): Likewise.
15006         (s_textsize): Declare as size_t.
15007         (sbrk): Declare.
15008         (monstartup): Use size_t for sizes.
15009         (_mcount): Save and restore registers.
15010         (internal_mcount): Pass 0 as the first argument to monstartup
15011         in 64-bit mode.
15012         (moncontrol): Convert pointer to appropriately sized integer
15013         before passing to profil.
15014
15015 2007-05-01  Joseph Myers  <joseph@codesourcery.com>
15016
15017         * config/rs6000/darwin-ldouble.c (__gcc_qunord): Define if
15018         __NO_FPRS__, not just if _SOFT_DOUBLE.
15019         * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qunord): Likewise.
15020         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use __gcc_qunord
15021         also for E500 double.
15022         * config/rs6000/rs6000.md (buneq, bunge, bungt, bunle, bunlt,
15023         suneq, sunge, sungt, sunle, sunlt): Disable for (TARGET_HARD_FLOAT
15024         && !TARGET_FPRS).
15025
15026 2007-05-01  Richard Guenther  <rguenther@suse.de>
15027
15028         * tree-ssa-loop-manip.c (ip_normal_pos): Check if last stmt
15029         is NULL.
15030
15031 2007-05-01  Joseph Myers  <joseph@codesourcery.com>
15032
15033         * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qgt): Fix typo.
15034
15035 2007-05-01  Jan Hubicka  <jh@suse.cz>
15036
15037         * tree-vectorize.c (vect_is_simple_use): gimple_min_invariant is
15038         invariant.
15039
15040 2007-05-01  Jan Hubicka  <jh@suse.cz>
15041
15042         * tree.h (maybe_fold_offset_to_component_ref): Remove.
15043         (maybe_fold_offset_to_reference): Declare.
15044         * fold-const.c (fold_unary): Do not fold
15045         (type *)&A into &A->field_of_type_and_offset_0
15046         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): When base type
15047         size is unknown, give up.
15048         (maybe_fold_offset_to_component_ref): Ignore firelds with unknown
15049         offsets.
15050         (maybe_fold_offset_to_reference): New.
15051         (maybe_fold_stmt_indirect): Use it.
15052         (fold_stmt_r): Fold (type *)&A+offset into A->field_if_type_and_offset.
15053         * gimplify.c (gimplify_conversion): Canonicalize conversions to
15054         field references.
15055         (gimplify_expr): Likewise for plus_expr.
15056
15057 2007-05-01  Zdenek Dvorak  <dvorakz@suse.cz>
15058
15059         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Use
15060         bsi_after_labels.  Always insert statements before bsi.
15061         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
15062         * predict.c (apply_return_prediction): Check for empty blocks.
15063         * cfgexpand.c (lab_rtx_for_bb): New variable.
15064         (label_rtx_for_bb): Do not create new tree labels.
15065         (expand_gimple_basic_block): Add labels recorded in lab_rtx_for_bb.
15066         (tree_expand_cfg): Initialize lab_rtx_for_bb.
15067         * tree-cfg.c (build_tree_cfg): Call cleanup_dead_labels after
15068         creating edges.
15069         (label_for_bb): Add field used.
15070         (update_eh_label, main_block_label): Mark the label used.
15071         (cleanup_dead_labels): Remove unused labels.
15072
15073 2007-05-01  Richard Guenther  <rguenther@suse.de>
15074
15075         * tree-vrp.c (set_value_range): Do not allocate equiv bitmap
15076         if it is not about to be set.
15077         (get_value_range): Do not pre-allocate equiv bitmap.
15078         (update_value_range): No need to clear equiv field.
15079         (add_equivalence): Change prototype to get bitmap pointer.
15080         Allocate bitmap here if it is not already.
15081         (extract_range_from_assert): Do not allocate bitmap here.
15082         Update callers to add_equivalence.
15083         (extract_range_from_ssa_name): Likewise.
15084         (get_vr_for_comparison): New static helper.
15085         (compare_name_with_value): Handle NULL equiv bitmap by
15086         peeling the first iteration of the comparison loop.
15087         Use get_vr_for_comparison.
15088         (compare_names): Handle NULL equiv bitmaps by using fake
15089         ones.  Use get_vr_for_comparison.
15090
15091 2007-04-30  Brooks Moses  <brooks.moses@codesourcery.com>
15092
15093         * double-int.c (mpz_set_double_int): Moved from
15094         tree-ssa-loop-niter.c.
15095         (mpz_get_double_int): Likewise; also, add option to wrap
15096         out-of-range integers.
15097         * double-int.h: New prototypes for above.
15098         * tree.c (get_static_type_bounds): Moved from
15099         tree-ssa-loop-niter.c; now returns TYPE_MIN_VALUE and
15100         TYPE_MAX_VALUE if they exist..
15101         * tree.h: New prototype for above.
15102         * tree-ssa-loop-niter.c: Adjust mpz_to_double_int and
15103         get_type_bounds calls.
15104         (mpz_set_double_int): Move to double-int.c.
15105         (get_type_bounds): Move to tree.c, rename to
15106         get_static_type_bounds.
15107         (mpz_to_double_int): Move to double-int.c, rename to
15108         mpz_get_double_int.
15109
15110 2007-04-30  Bob Wilson  <bob.wilson@acm.org>
15111
15112         * config/xtensa/lib1funcs.asm (__umodsi3, __modsi3): Rearrange so that
15113         DIV0 exception can fall through to a normal return.
15114
15115 2007-04-30  Alexandre Oliva  <aoliva@redhat.com>
15116
15117         PR middle-end/22156
15118         Temporarily revert:
15119         2007-04-06  Andreas Tobler  <a.tobler@schweiz.org>
15120         * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
15121         2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
15122         * tree-sra.c (try_instantiate_multiple_fields): Needlessly
15123         initialize align to silence bogus warning.
15124         2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
15125         * tree-sra.c (struct sra_elt): Add in_bitfld_block.  Remove
15126         all_no_warning.
15127         (struct sra_walk_fns): Remove use_all parameter from use.
15128         (sra_hash_tree): Handle BIT_FIELD_REFs.
15129         (sra_elt_hash): Don't hash bitfld blocks.
15130         (sra_elt_eq): Skip them in parent compares as well.  Handle
15131         BIT_FIELD_REFs.
15132         (sra_walk_expr): Don't maintain or pass down use_all_p.
15133         (scan_use): Remove use_all parameter.
15134         (scalarize_use): Likewise.  Re-expand assignment to
15135         BIT_FIELD_REF of gimple_reg.  De-scalarize before input or
15136         output, and re-scalarize after output.  Don't mark anything
15137         for no warning.
15138         (scalarize_ldst): Adjust.
15139         (scalarize_walk_gimple_modify_statement): Likewise.
15140         (build_element_name_1): Handle BIT_FIELD_REFs.
15141         (instantiate_element): Don't warn for any element whose parent
15142         is used as a whole.
15143         (instantiate_missing_elements_1): Return the sra_elt.
15144         (canon_type_for_field): New.
15145         (try_instantiate_multiple_fields): New.
15146         (instantiate_missing_elemnts): Use them.
15147         (mark_no_warning): Removed.
15148         (generate_one_element_ref): Handle BIT_FIELD_REFs.
15149         (REPLDUP, sra_build_elt_assignment): New.
15150         (generate_copy_inout): Use them.
15151         (generate_element_copy): Likewise.  Handle bitfld differences.
15152         (generate_element_zero): Don't recurse for blocks.  Use
15153         sra_build_elt_assignment.
15154         (generate_one_element_int): Take elt instead of var.  Use
15155         sra_build_elt_assignment.
15156         (generate_element_init_1): Adjust.
15157         (scalarize_use, scalarize_copy): Use REPLDUP.
15158         (scalarize_ldst): Move assert before dereference.
15159         (dump_sra_elt_name): Handle BIT_FIELD_REFs.
15160
15161 2007-04-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15162
15163         PR C++/31721
15164         * tree.c (reconstruct_complex_type): Reconstruct a reference
15165         correctly.
15166         Also use the same mode for the pointer as the old pointer type.
15167
15168 2007-04-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
15169
15170         * doc/trouble.texi (Interoperation): Remove note about Ultrix
15171         Fortran compiler.
15172
15173 2007-04-29  Zdenek Dvorak  <dvorakz@suse.cz>
15174
15175         PR rtl-optimization/31676
15176         * df-scan.c (record_nonlocal_goto_receiver_defs): New function.
15177         (df_refs_record): Call it.
15178
15179 2007-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
15180
15181         * rtl.def (SS_ABS): New code.
15182         * config/bfin/bfin.c (print_operand): New modifier 'v'.
15183         (enum bfin_builtins): Add BFIN_BUILTIN_SUM_2X16, BFIN_BUILTIN_ABS_1x32,
15184         BFIN_BUILTIN_ROUND_1x32, BFIN_BUILTIN_MULT_1x32x32,
15185         BFIN_BUILTIN_MULT_1x32x32NS, BFIN_BUILTIN_SSASHIFT_1x32.
15186         (bfin_init_builtins): Define them.
15187         (bdesc_1arg, bdesc_2arg): Add some of them here, ...
15188         (bfin_expand_builtin): ... and handle the others here.
15189         * config/bfin/bfin.md (ssabssi2, ssroundsi2, ssashiftsi3,
15190         flag_mul_macv2hi_parts_acconly_andcc0): New patterns.
15191         (ss_absv2hi2): Renamed from absv2hi; use ss_abs code.
15192         (ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3): Shift count
15193         operand is only HImode.
15194
15195 2007-04-29  Steven Bosscher  <steven@gcc.gnu.org>
15196
15197         * regclass.c (scan_one_insn): Remove splitting of
15198         two address insns.
15199
15200 2007-04-28  Sandra Loosemore  <sandra@codesourcery.com>
15201             Nigel Stephens  <nigel@mips.com>
15202
15203         * config/mips/mips.h (SLOW_BYTE_ACCESS): Turn off for MIPS16.
15204
15205 2007-04-28  Jan Hubicka  <jh@suse.cz>
15206
15207         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Use
15208         insn_locators_alloc instead of insn_locators_initialize;
15209         call reset_block_changes.
15210         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
15211         * config/sh/sh.c (sparc_output_mi_thunk): Likewise.
15212         * config/is64/ia64.c (ia64_output_mi_thunk): Likewise.
15213         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
15214         * config/score/score.c (th_output_mi_thunk): Likewise.
15215         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
15216         * cfglyaout.c (set_curr_insn_source_location, set_curr_insn_block):
15217         tolerate uninitialized locator info.
15218
15219         Re-apply:
15220         * function.c (init_function_start): Don't init line number info.
15221         (expand_function_end): Update.
15222         (reset_block_changes, record_block_change, finalize_block_changes,
15223         check_block_change, free_block_changes): Kill.
15224         * function.h (reset_block_changes, record_block_change,
15225         finalize_block_changes, check_block_change, free_block_changes):
15226         Remove prototypes.
15227         (struct function): Remove ib_boundaries_block.
15228         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
15229         Use curr_insn_locator to initialize locator.
15230         (emit_line_note): Remove.
15231         * cfgexpand.c (expand_gimple_cond_expr): Update.
15232         (construct_exit_block): Likewise.
15233         (tree_expand_cfg): Initialize/finalize locators.
15234         * expr.c (expand_expr_real): Update.
15235         * cfglayout.c (line_locators_locs, line_locators_lines,
15236         file_locators_locs, file_locators_files): Remove.
15237         (set_block_levels): Move to cfgexpand.c.
15238         (insn_locators_initialize): Remove.
15239         (pass_insn_locators_initialize): Remove.
15240         (locations_locators_locs, locations_locators_vals): New static vars.
15241         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
15242         Likewise.
15243         (insn_locators_alloc, insn_locators_finalize,
15244         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
15245         New functions.
15246         (locator_location): New.
15247         (locator_line, locator_file): Rewrite.
15248         * rtl.h (emit_line_note): Kill.
15249         (insn_locators_alloc, insn_locators_finalize,
15250         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
15251         Declare.
15252         * tree-inline.c (initialize_cfun): Do not initialize
15253         ib_boundaries_block.
15254         * passes.c (pass_insn_locators_initialize): Remove.
15255
15256 2007-04-28  Zdenek Dvorak  <dvorakz@suse.cz>
15257
15258         * tree-cfg.c (move_block_to_fn): Release bb from dominance
15259         info.  Update last_basic_block correctly.
15260
15261 2007-04-27  Kaz Kojima  <kkojima@gcc.gnu.org>
15262
15263         PR target/31701
15264         * config/sh/sh.c (output_stack_adjust): Avoid using the frame
15265         register itself to hold the offset constant.  Tell flow the use
15266         of r4 and r5 when they are used.
15267
15268 2007-04-27  Richard Guenther  <rguenther@suse.de>
15269
15270         * tree-ssa-forwprop.c (forward_propagate_into_cond): Keep track
15271         if we simplified anything.
15272         (tree_ssa_forward_propagate_single_use_vars): Defer overflow
15273         warnings until we did a simplification and the stmt was not
15274         marked as TREE_NO_WARNING.
15275
15276 2007-04-27  Mike Stump  <mrs@apple.com>
15277
15278         * config/rs6000/darwin.h (ALWAYS_PUSH_CONSTS_USING_REGS_P): Remove.
15279
15280 2007-04-27  Ian Lance Taylor  <iant@google.com>
15281
15282         PR middle-end/31710
15283         * tree.c (build_distinct_type_copy): If TYPE_MIN_VALUE or
15284         TYPE_MAX_VALUE exist, convert them to the new type.
15285
15286 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
15287
15288         * tree-cfgcleanup.c (cleanup_tree_cfg): Verify dominance info
15289         if it claims to be available.
15290         * tree-ssa-dce.c (remove_dead_stmt): Mark cfg as altered when
15291         edge is redirected.
15292         (perform_tree_ssa_dce): Always free postdominators.
15293
15294 2007-04-27  Richard Henderson  <rth@redhat.com>
15295
15296         * config/alpha/predicates.md (aligned_memory_operand): Mark
15297         as define_special_predicate.
15298         (unaligned_memory_operand, normal_memory_operand): Likewise.
15299         (reg_or_unaligned_mem_operand): Remove.
15300         (any_memory_operand): Match the documentation and check for
15301         non-renumbered pseudos during reload.
15302         * config/alpha/alpha.c (alpha_secondary_reload): Rename from
15303         alpha_secondary_reload_class, update to new interface, make static.
15304         Handle CQImode like HImode.  Remove FP subreg check.
15305         (alpha_expand_mov): Use replace_equiv_address.
15306         (alpha_expand_mov_nobwx): Use any_memory_operand.
15307         (TARGET_SECONDARY_RELOAD): New.
15308         * config/alpha/alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Remove.
15309         (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
15310         * config/alpha/sync.md (I12MODE, I48MODE, modesuffix): Move ...
15311         * config/alpha/alpha.md: ... here.
15312         (RELOAD12, reloadmode): New.
15313         (movcqi): New.
15314         (reload_in<RELOAD12>): Macro-ize from reload_inqi, reload_inhi.
15315         Don't handle the aligned case here.
15316         (reload_out<RELOAD12>): Macro-ize from reload_outqi, reload_outhi.
15317         (reload_in<I12MODE>_aligned): Macro-ize from reload_inqi_help,
15318         reload_inhi_help.  Don't expect a scratch register.
15319         (reload_out<I12MODE>_aligned): Macro-ize from reload_outqi_help,
15320         reload_outhi_help.
15321         * config/alpha/alpha-protos.h (alpha_secondary_reload_class): Remove.
15322
15323 2007-04-27  Richard Guenther  <rguenther@suse.de>
15324
15325         * tree-ssa-forwprop.c (get_prop_dest_stmt): Fix comment typo.
15326
15327 2007-04-27  Richard Guenther  <rguenther@suse.de>
15328
15329         PR tree-optimization/30965
15330         PR tree-optimization/30978
15331         * Makefile.in (tree-ssa-forwprop.o): Depend on $(FLAGS_H).
15332         * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove.
15333         (find_equivalent_equality_comparison): Likewise.
15334         (simplify_cond): Likewise.
15335         (get_prop_source_stmt): New helper.
15336         (get_prop_dest_stmt): Likewise.
15337         (can_propagate_from): Likewise.
15338         (remove_prop_source_from_use): Likewise.
15339         (combine_cond_expr_cond): Likewise.
15340         (forward_propagate_comparison): New function.
15341         (forward_propagate_into_cond): Rewrite to use fold for
15342         tree combining.
15343         (tree_ssa_forward_propagate_single_use_vars): Call
15344         forward_propagate_comparison to propagate comparisons.
15345
15346 2007-04-27  Richard Guenther  <rguenther@suse.de>
15347
15348         PR tree-optimization/31715
15349         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make
15350         sure to do computation on the offset in an appropriate
15351         signed type.
15352
15353 2007-04-27  Richard Sandiford  <richard@codesourcery.com>
15354
15355         * reload.h (elimination_target_reg_p): Declare.
15356         * reload.c (find_reloads): Don't apply the reg_rtx move
15357         optimization if the SET_DEST satisfies elimination_target_reg_p.
15358         * reload1.c (elimination_target_reg_p): New function.
15359         (gen_reload): In the move/add2 fallback, make sure that op0
15360         does not overlap the destination register.
15361
15362 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
15363
15364         * tree-ssa-loop-im.c (determine_invariantness_stmt): Attempt to
15365         transform only GIMPLE_MODIFY_STMTs.
15366         * tree-complex.c (expand_complex_operations_1): Ditto.
15367         (expand_complex_div_wide): Do not create gotos in COND_EXPR branches.
15368         * tree-ssa-loop-manip.c (build_if_stmt): Removed.
15369         (tree_transform_and_unroll_loop): Do not create gotos in COND_EXPR
15370         branches.
15371         * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
15372         tree_mod_subtract, tree_ic, tree_stringop_fixed_value): Ditto.
15373         * omp-low.c (expand_parallel_call, expand_omp_for_generic,
15374         expand_omp_for_static_chunk, expand_omp_for_static_nochunk): Ditto.
15375         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes,
15376         slpeel_add_loop_guard): Ditto.
15377         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
15378         * lambda-code.c (perfect_nestify): Ditto.
15379         * tree-iterator.c (tsi_split_statement_list_before): Fix splitting
15380         before the first statement.
15381         * tree-optimize.c (execute_free_datastructures): Fix comments.
15382         (execute_free_cfg_annotations): Do not call disband_implicit_edges.
15383         * tree-flow.h (disband_implicit_edges): Declaration removed.
15384         * tree-cfg.c (make_cond_expr_edges): Remove gotos from COND_EXPR
15385         branches.
15386         (cleanup_dead_labels, tree_redirect_edge_and_branch): Handle
15387         COND_EXPRs without gotos.
15388         (disband_implicit_edges, has_label_p): Removed.
15389         (tree_verify_flow_info): Verify that COND_EXPR branches are empty.
15390         (tree_lv_add_condition_to_bb): Do not create gotos in COND_EXPR
15391         branches.
15392         * tree.c (build3_stat): Mark COND_EXPRs used as statements as having
15393         side effects.
15394         * tree-pretty-print.c (dump_implicit_edges): Dump implicit edges
15395         also for COND_EXPRs.
15396         * cfgexpand.c (label_rtx_for_bb): New function.
15397         (expand_gimple_cond_expr): Do not expect gotos in COND_EXPR branches.
15398         Use label_rtx_for_bb to find the labels.
15399         (expand_gimple_basic_block): Remove RETURN_EXPR at the end of the
15400         last block.  Detect fallthru edges.
15401
15402 2007-04-26  Ian Lance Taylor  <iant@google.com>
15403
15404         PR target/28675
15405         * reload.c (find_reloads_subreg_address): If the address was valid
15406         in the original mode but not in the new mode, reload the whole
15407         address.
15408
15409 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
15410
15411         * tree-cfgcleanup.c (cfgcleanup_altered_bbs): New global variable.
15412         (remove_fallthru_edge): Use remove_edge_and_dominated_blocks.
15413         (cleanup_control_expr_graph): Do not invalidate dominance info.
15414         Record altered blocks.
15415         (cleanup_control_flow, cleanup_forwarder_blocks): Removed.
15416         (cleanup_control_flow_bb, split_bbs_on_noreturn_calls,
15417         cleanup_tree_cfg_bb): New functions.
15418         (remove_forwarder_block): Do not maintain the worklist of blocks.
15419         Record altered blocks.
15420         (cleanup_tree_cfg_1): Iterate over cfgcleanup_altered_bbs,
15421         not over whole cfg.
15422         (cleanup_tree_cfg): Do not iterate cleanup_tree_cfg_1.  Only call
15423         delete_unreachable_blocks if dominators are not available.
15424         * tree-inline.c (optimize_inline_calls): Free dominance information
15425         earlier.
15426         * tree-flow.h (remove_edge_and_dominated_blocks,
15427         cfgcleanup_altered_bbs): Altered.
15428         * tree-cfg.c (replace_uses_by, tree_merge_blocks): Record altered
15429         blocks.
15430         (get_all_dominated_blocks, remove_edge_and_dominated_blocks): New
15431         functions.
15432         (tree_purge_dead_eh_edges): Use remove_edge_and_dominated_blocks,
15433         do not invalidate dominators.
15434
15435 2007-04-26  Anatoly Sokolov <aesok@post.ru>
15436
15437         * config/avr/avr.c (avr_mcu_types): Add support for ATmega8HVA and
15438         ATmega16HVA devices. Move AT90USB82 device to 'avr5' architecture.
15439         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
15440         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
15441
15442 2007-04-26  Steve Ellcey  <sje@cup.hp.com>
15443
15444         * config/ia64/ia64.md (ip_value): Fix itanium_class attribute.
15445
15446 2007-04-26  Richard Guenther  <rguenther@suse.de>
15447
15448         PR tree-optimization/31703
15449         * tree-ssa-loop-im.c (rewrite_bittest): Make sure to use
15450         the right type for the target of the bittest.
15451
15452 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
15453
15454         * config/i386/vx-common.h (RETURN_IN_MEMORY): Use
15455         ix86_sol10_return_in_memory.
15456
15457 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
15458
15459         * config/i386/i386.c (ix86_sol10_return_in_memory): Remove unused
15460         variables.
15461
15462 2007-04-26  Jakub Jelinek  <jakub@redhat.com>
15463
15464         PR c++/31598
15465         * tree-inline.c (copy_body_r): Don't touch TREE_TYPE of OMP_CLAUSE.
15466
15467         PR tree-optimization/30558
15468         * tree-eh.c (lower_eh_filter): If EH_FILTER_MUST_NOT_THROW
15469         clear this_state.prev_try.
15470
15471 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
15472             Mark Mitchell  <mark@codesourcery.com>
15473
15474         * config/i386/i386-protos.h (ix86_sol10_return_in_memory): Declare.
15475         * config/i386/i386.c (ix86_sol10_return_in_memory): New function.
15476         * config/i386/sol2-10.h (RETURN_IN_MEMORY): Use it.
15477
15478 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
15479
15480         PR driver/31107
15481         * doc/invoke.texi (%:print-asm-header): Document.
15482         * gcc.c (asm_options): Use %:print-asm-header() for --target-help
15483         and -ftarget-help.
15484         (static_spec_functions): Add print-asm-header.
15485         (main): Print a banner before the --target-help linker options.
15486         (print_asm_header_spec_function): New function.
15487
15488 2007-04-25  Kaz Kojima  <kkojima@gcc.gnu.org>
15489
15490         PR target/31403
15491         * config/sh/sh.md (movsi_ie): Fix length for TARGET_SH2A.
15492         (movsf_ie): Likewise.
15493
15494 2007-04-25  Paolo Carlini  <pcarlini@suse.de>
15495
15496         * doc/extend.texi ([Type Traits]): Adjust per N2255.
15497
15498 2007-04-25  Bob Wilson  <bob.wilson@acm.org>
15499
15500         * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Throw an
15501         exception for divide-by-zero.
15502         (__umodsi3, __modsi3): Likewise.
15503
15504 2007-04-25  Dirk Mueller  <dmueller@suse.de>
15505
15506         * c-typeck.c (build_compound_expr): Annotate warning()
15507         call with OPT_Wunused_value.
15508         * tree-ssa.c (warn_uninit): Annotate warning with
15509         OPT_Wunintialized.
15510         * c-common.c (handle_sentinel_attribute): Annotate warning
15511         call with OPT_Wattributes.
15512
15513 2007-04-25  Thiemo Seufer  <ths@mips.com>
15514
15515         * config/mips/mips.opt (mdmx, mmt, mno-mdmx): New options.
15516         (mips16): Fix typo.
15517         * config/mips/mips.h (ASM_SPEC): Pass -mmt/-mno-mt and -mdmx/-mno-mdmx
15518         on to the assembler.  Improve handling of -mno-mips16.  Add handling
15519         of -mno-mips3d, -mno-dsp, -mno-dspr2.
15520         * doc/invoke.texi (MIPS Options): Whitespace cleanup.  Fix wrong use
15521         of @itemx.  Document -mno-dsp, -mno-dspr2, -mno-paired-single, -mdmx,
15522         -mno-mdmx, -mno-mips3d, -mmt and -mno-mt.
15523
15524 2007-04-25  Danny Smith  <dannysmith.users.sourceforge.net>
15525
15526         PR target/31680
15527         * config/i386/winnt.c (i386_pe_file_end): Strip only
15528         USER_LABEL_PREFIX when writing export name.
15529
15530 2007-04-25  Richard Sandiford  <richard@codesourcery.com>
15531
15532         * config.gcc (sh-wrs-vxworks): Don't include dbxelf.h.  Include
15533         sh/elf.h, vx-common.h and vxworks.h.
15534         * config/sh/sh.h: Include config/vxworks-dummy.h.
15535         (SUBTARGET_OVERRIDE_OPTIONS): Define.
15536         (OVERRIDE_OPTIONS): Use it.
15537         * config/sh/sh.md (GOTaddr2picreg): Add suport for VxWorks RTPs.
15538         (vxworks_picreg): New pattern.
15539         * config/sh/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
15540         VXWORKS_OS_CPP_BUILTINS.
15541         (LIB_SPEC, LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine
15542         to their VXWORKS_* equivalents.
15543         (SUBTARGET_OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
15544         (SUBTARGET_LINK_EMUL_SUFFIX, FUNCTION_PROFILER): Define.
15545         * config/sh/lib1funcs.asm (NO_FPSCR_VALUES): Define for VxWorks PIC.
15546         (set_fpscr, ic_invalidate): Add VxWorks PIC sequences.
15547         * config/sh/t-vxworks (MULTILIB_OPTIONS): Add m4a, -mrtp and
15548         -mrtp/-fPIC multilibs.
15549         (MULTILIB_EXCEPTIONS): Generalize globs accordingly.
15550         (MULTILIB_MATCHES, EXTRA_MULTILIB_PARTS): Define.
15551         (MULTILIB_OSDIRNAMES): Delete.
15552
15553 2007-04-25  Anatoly Sokolov <aesok@post.ru>
15554
15555         PR target/18989
15556         * config/avr/avr.h (ASM_OUTPUT_ALIGN): Redefine.
15557
15558 2007-04-24  Brooks Moses  <brooks.moses@codesourcery.com>
15559
15560         * real.c (mpfr_from_real): Handle Inf and NaN, and allow the
15561         rounding mode to be specified by the caller.
15562         (real_to_mpfr) Likewise.
15563         * real.h: Update mpfr_from_real, mpfr_to_real prototypes to
15564         include new arguments.
15565         * builtins.c: Update mpfr_from_real, mpfr_to_real calls.
15566
15567 2007-04-24  Ian Lance Taylor  <iant@google.com>
15568
15569         PR tree-optimization/31605
15570         * tree-vrp.c (set_value_range): Check that min and max are not
15571         both overflow infinities.
15572         (set_value_range_to_value): New static function.
15573         (extract_range_from_binary_expr): Call set_value_range_to_value.
15574         (extract_range_from_cond_expr): Likewise.
15575         (extract_range_from_expr): Likewise.
15576         (extract_range_from_unary_expr): Likewise.  Don't create a range
15577         which overflows on both sides.
15578         (vrp_meet): Check for a useless range.
15579         (vrp_visit_phi_node): If we see a constant which looks like an
15580         overflow infinity, turn off the TREE_OVERFLOW flag.
15581
15582 2007-04-24  Ian Lance Taylor  <iant@google.com>
15583
15584         * flow.c (elim_reg_cond): Handle a comparison of a subreg.
15585
15586 2007-04-24  Simon Martin  <simartin@users.sourceforge.net>
15587
15588         PR diagnostic/25923
15589         * tree-pass.h (TDF_DIAGNOSTIC): New dump control to specify that a
15590         diagnostic message is being built.
15591         * tree-pretty-print.c (dump_generic_node): Only write the
15592         formatted text into BUFFER's stream if we are not building a
15593         diagnostic message.
15594         * toplev.c (default_tree_printer): Pass TDF_DIAGNOSTIC to
15595         dump_generic_node.
15596         * Makefile.in (toplev.o): Depend on tree-pass.h.
15597
15598 2007-04-24  Ian Lance Taylor  <iant@google.com>
15599
15600         PR tree-optimization/31602
15601         * tree-ssa-loop-ch.c (copy_loop_headers): Set TREE_NO_WARNING for
15602         conditionals in the copied loop header.
15603         * tree-cfg.c (fold_cond_expr_cond): Don't issue undefined overflow
15604         warnings if TREE_NO_WARNING is set.
15605         * doc/invoke.texi (Warning Options): Clarify that
15606         -Wstrict-overflow does not warn about loops.
15607
15608 2007-04-24  Janis Johnson  <janis187@us.ibm.com>
15609
15610         * config/rs6000/rs6000.c (function_arg_advance): For 32-bit ELF ABI,
15611         expand on the comment about _Decimal128 arguments and check the
15612         integer result of the modulus operation; for 64-bit ELF ABI, ensure
15613         that _Decimal128 argument uses even/odd register pair.
15614         (function_arg): Ditto.
15615
15616 2007-04-24  Hui-May Chang <hm.chang@apple.com>
15617
15618         * reload1.c (merge_assigned_reloads) : Do not merge a RELOAD_OTHER
15619         instruction with a RELOAD_FOR_OPERAND_ADDRESS instruction.
15620
15621 2007-04-24  Richard Guenther  <rguenther@suse.de>
15622             Olga Golovanevsky  <olga@il.ibm.com>
15623
15624         * fold-const.c (multiple_of_p): Check for bottom
15625         to be zero.
15626
15627 2007-04-24  Richard Henderson  <rth@redhat.com>
15628
15629         * libgcc2.h (AVOID_FP_TYPE_CONVERSION): Rename from
15630         IS_IBM_EXTENDED.  Also define in terms of WIDEST_HARDWARE_FP_SIZE.
15631         * libgcc2.c (__floatdisf): Avoid double-word arithmetic when
15632         looking for non-zero bits shifted out.  Avoid a recursive call
15633         when constructing the scalar.
15634         (__floatundisf): Likewise.
15635
15636 2007-04-24  Nathan Froyd  <froydnj@codesourcery.com>
15637
15638         * dwarf2out.c (field_byte_offset): Move the existing logic
15639         under the control of PCC_BITFIELD_TYPE_MATTERS and just use
15640         the bit offset of the field if !PCC_BITFIELD_TYPE_MATTERS.
15641
15642 2007-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
15643
15644         PR target/31641
15645         * config/s390/s390.c (s390_expand_setmem): Don't ICE for constant
15646         length argument of 0 for memset.
15647         (s390_expand_movmem, s390_expand_setmem, s390_expand_cmpmem): Use
15648         unsigned shift instead of the signed variant.
15649
15650 2007-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
15651
15652         * config/s390/s390.md ("*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs_ibm",
15653         "fix_trunc<BFP:mode><GPR:mode>2_ieee", "fix_truncdfsi2_ibm",
15654         "floatsidf2_ibm", "floatsisf2", "truncdfsf2_ieee", "truncdfsf2_ibm",
15655         "*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
15656         "*trunctfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
15657         "*extenddftf2_ieee", "*extenddftf2_ibm", "*extendsftf2_ieee",
15658         "*extendsftf2_ibm", "*add<mode>3", "*add<mode>3_ibm", "*sub<mode>3_ibm",
15659         "*mul<mode>3", "*mul<mode>3_ibm", "*div<mode>3", "*div<mode>3_ibm",
15660         "*neg<mode>2_ibm", "*abs<mode>2_ibm"): Insn definitions removed.
15661         ("fix_trunc<BFP:mode><GPR:mode>2_bfp", "floatsi<mode>2",
15662         "truncdfsf2", "trunctf<mode>2", "add<mode>3", "sub<mode>3",
15663         "mul<mode>3", "div<mode>3"): Insn definitions added.
15664         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fix_trunc<mode>di2",
15665         "fix_trunc<mode>si2"): gen_fix_trunc<BFP:mode><GPR:mode>2_ieee renamed
15666         to gen_fix_trunc<BFP:mode><GPR:mode>2_bfp.
15667         ("fix_truncdfsi2", "floatsitf2", "truncdfsf2", "trunctfdf2",
15668         "trunctfsf2", "extendsfdf2", "extenddftf2", "extendsftf2", "add<mode>3",
15669         "sub<mode>3", "mul<mode>3", "div<mode>3"): Expander removed.
15670         ("fix_trunc<mode>si2", "extend<DSF:mode><BFP:mode>2"): Expander added.
15671         * config/s390/s390.h (TARGET_IBM_FLOAT, TARGET_IEEE_FLOAT,
15672         TARGET_FLOAT_FORMAT): Macro definitions removed.
15673         (FP_REGNO_P): No special case for !TARGET_IEEE_FLOAT anymore.
15674         * config/s390/s390.c (struct processor_costs, z900_cost, z990_cost,
15675         z9_109_cost): Remove fields for hexfloat instructions: dxr, ddr and der.
15676         (s390_rtx_costs): Remove !TARGET_IEEE_FLOAT special branches.
15677         (s390_gen_rtx_const_DI): Function removed.
15678         * config/s390/s390-protos.h (s390_gen_rtx_const_DI): Prototype removed.
15679
15680 2007-04-24  Richard Sandiford  <richard@codesourcery.com>
15681
15682         * optabs.c (set_conv_libfunc): Prefer libgcc2's __ffsMM2 functions
15683         over an external ffs function.
15684
15685 2007-04-24  Chao-ying Fu  <fu@mips.com>
15686             Richard Sandiford  <richard@nildram.co.uk>
15687
15688         * doc/md.texi (madd@var{m}@var{n}4, umadd@var{m}@var{n}4): Document.
15689         * optabs.h (OTI_smadd_widen, OTI_umadd_widen): New optab_indexes.
15690         (smadd_widen_optab, umadd_widen_optab): Define.
15691         * optabs.c (init_optabs): Initialize smadd_widen_optab and
15692         umadd_widen_optab.
15693         * genopinit.c (optabs): Fill in smadd_widen_optab and
15694         umadd_widen_optab.
15695         * expr.c (expand_expr_real_1): Try to use smadd_widen_optab
15696         and umadd_widen_optab to implement multiply-add sequences.
15697         * config/mips/mips.md (*<su>mul_acc_di): Rename to...
15698         (<u>maddsidi4): ...this.  Extend condition to include
15699         GENERATE_MADD_MSUB and TARGET_DSPR2.  Change the constraint
15700         of operand 0 to "ka" and use the three-operand form of madd<u>
15701         for TARGET_DSPR2.
15702         * config/mips/mips-dspr2.md (mips_madd, mips_maddu): Convert
15703         to define_expands.
15704         * config/mips/constraints.md (ka): New register constraint.
15705
15706 2007-04-24  Jan Hubicka  <j@suse.cz>
15707
15708         Revert:
15709
15710         2007-04-23  Jan Hubicka  <jh@suse.cz>
15711         * function.c (init_function_start): Don't init line number info.
15712         (expand_function_end): Update.
15713         (reset_block_changes, record_block_change, finalize_block_changes,
15714         check_block_change, free_block_changes): Kill.
15715         * function.h (reset_block_changes, record_block_change,
15716         finalize_block_changes, check_block_change, free_block_changes):
15717         Remove prototypes.
15718         (struct function): Remove ib_boundaries_block.
15719         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
15720         Use curr_insn_locator to initialize locator.
15721         (emit_line_note): Remove.
15722         * cfgexpand.c (expand_gimple_cond_expr): Update.
15723         (construct_exit_block): Likewise.
15724         (tree_expand_cfg): Initialize/finalize locators.
15725         * expr.c (expand_expr_real): Update.
15726         * cfglayout.c (line_locators_locs, line_locators_lines,
15727         file_locators_locs, file_locators_files): Remove.
15728         (set_block_levels): Move to cfgexpand.c.
15729         (insn_locators_initialize): Remove.
15730         (pass_insn_locators_initialize): Remove.
15731         (locations_locators_locs, locations_locators_vals): New static vars.
15732         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
15733         Likewise.
15734         (insn_locators_alloc, insn_locators_finalize,
15735         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
15736         New functions.
15737         (locator_location): New.
15738         (locator_line, locator_file): Rewrite.
15739         * rtl.h (emit_line_note): Kill.
15740         (insn_locators_alloc, insn_locators_finalize,
15741         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
15742         Declare.
15743         * tree-inline.c (initialize_cfun): Do not initialize
15744         ib_boundaries_block.
15745         * passes.c (pass_insn_locators_initialize): Remove.
15746
15747 2007-04-24  Daniel Franke  <franke.daniel@gmail.com>
15748
15749         * doc/invoke.texi: Removed leading '-' from option index entries.
15750
15751 2007-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
15752
15753         * tree-phinodes.c (reserve_phi_args_for_new_edge, remove_phi_node):
15754         Use phi_nodes_ptr.
15755         (create_phi_node): Use set_phi_nodes.
15756         * omp-low.c (expand_omp_parallel): Use bb_stmt_list.
15757         * tree-if-conv.c (process_phi_nodes): Use set_phi_nodes.
15758         (combine_blocks): Use bb_stmt_list and set_bb_stmt_list.
15759         * tree-flow-inline.h (phi_nodes, set_phi_nodes,
15760         (bsi_start, bsi_last): Use bb_stmt_list.
15761         (phi_nodes_ptr, bb_stmt_list, set_bb_stmt_list): New functions.
15762         * cfgexpand.c (expand_gimple_basic_block): Use bb_stmt_list.
15763         Traverse the statements using tsi iterator.
15764         * basic-block.h (struct basic_block_def): Fields stmt_list
15765         and phi_nodes moved to ...
15766         (struct tree_bb_info): ... new structure.
15767         * tree-cfg.c (create_bb): Allocate il.tree.  Use set_bb_stmt_list.
15768         (tree_merge_blocks): Use bb_stmt_list and set_bb_stmt_list.
15769         (remove_bb): Handle blocks with NULL stmt list.  Clear il.tree field.
15770         (tree_verify_flow_info): Verify that il.tree is not set for
15771         entry and exit block.
15772         (tree_split_block): Use set_bb_stmt_list.
15773
15774 2007-04-23  Mike Stump  <mrs@apple.com>
15775
15776         * config/i386/i386.c (ix86_tune_features
15777         [X86_TUNE_DEEP_BRANCH_PREDICTION]: Prefer call over thunks on
15778         nocona and core2.
15779
15780 2007-04-23  H.J. Lu  <hongjiu.lu@intel.com>
15781
15782         * config/i386/i386.md (prefix_extra): New attribute.
15783         (length): Add prefix_extra.
15784
15785         * onfig/i386/sse.md (sse2_movdqu): Set prefix_data16.
15786         (sse2_movntv2di): Likewise.
15787         (sse2_cvtps2dq): Likewise.
15788         (sse2_cvtpd2pi): Likewise.
15789         (sse2_cvttpd2pi): Likewise.
15790         (*sse2_cvtpd2ps): Likewise.
15791         (*add<mode>3): Likewise.
15792         (sse2_ssadd<mode>3): Likewise.
15793         (sse2_usadd<mode>3): Likewise.
15794         (*sub<mode>3): Likewise.
15795         (sse2_sssub<mode>3): Likewise.
15796         (sse2_ussub<mode>3): Likewise.
15797         (*mulv8hi3): Likewise.
15798         (*smulv8hi3_highpart): Likewise.
15799         (*umulv8hi3_highpart): Likewise.
15800         (sse2_umulv2siv2di3): Likewise.
15801         (sse2_pmaddwd): Likewise.
15802         (ashr<mode>3): Likewise.
15803         (lshr<mode>3): Likewise.
15804         (ashl<mode>3): Likewise.
15805         (sse2_ashlti3): Likewise.
15806         (sse2_lshrti3): Likewise.
15807         (*umaxv16qi3): Likewise.
15808         (*smaxv8hi3): Likewise.
15809         (*uminv16qi3): Likewise.
15810         (*sminv8hi3): Likewise.
15811         (sse2_eq<mode>3): Likewise.
15812         (sse2_gt<mode>3): Likewise.
15813         (*and<mode>3): Likewise.
15814         (sse2_nand<mode>3): Likewise.
15815         (*ior<mode>3): Likewise.
15816         (*xor<mode>3): Likewise.
15817         (sse2_packsswb): Likewise.
15818         (sse2_packssdw): Likewise.
15819         (sse2_packuswb): Likewise.
15820         (sse2_punpckhbw): Likewise.
15821         (sse2_punpcklbw): Likewise.
15822         (sse2_punpckhwd): Likewise.
15823         (sse2_punpcklwd): Likewise.
15824         (sse2_punpckhdq): Likewise.
15825         (sse2_punpckldq): Likewise.
15826         (sse2_punpckhqdq): Likewise.
15827         (sse2_punpcklqdq): Likewise.
15828         (*sse2_pinsrw): Likewise.
15829         (*sse2_pextrw): Likewise.
15830         (sse2_pshufd_1): Likewise.
15831         (sse2_uavgv16qi3): Likewise.
15832         (sse2_uavgv8hi3): Likewise.
15833         (sse2_psadbw): Likewise.
15834         (sse2_pmovmskb): Likewise.
15835         (*sse2_maskmovdqu): Likewise.
15836         (*sse2_maskmovdqu_rex64): Likewise.
15837         (sse4a_extrqi): Likewise.
15838         (sse4a_extrq): Likewise.
15839         (sse3_lddqu): Set prefix_rep.
15840         (sse3_addsubv4sf3): Likewise.
15841         (sse3_haddv4sf3): Likewise.
15842         (sse3_hsubv4sf3): Likewise.
15843         (sse_cvtss2si): Likewise.
15844         (sse_cvtss2si_2): Likewise.
15845         (sse_cvtss2siq): Likewise.
15846         (sse_cvtss2siq_2): Likewise.
15847         (sse_cvttss2si): Likewise.
15848         (sse_cvttss2siq): Likewise.
15849         (sse2_cvttps2dq): Likewise.
15850         (sse3_movshdup): Likewise.
15851         (sse3_movsldup): Likewise.
15852         (sse2_cvtsd2si): Likewise.
15853         (sse2_cvtsd2si_2): Likewise.
15854         (sse2_cvtsd2siq): Likewise.
15855         (sse2_cvtsd2siq_2): Likewise.
15856         (sse2_cvttsd2si): Likewise.
15857         (sse2_cvttsd2siq): Likewise.
15858         (*sse2_cvtpd2dq): Likewise.
15859         (*sse2_cvttpd2dq): Likewise.
15860         (sse2_pshuflw_1): Likewise.
15861         (sse2_pshufhw_1): Likewise.
15862         (sse4a_insertqi): Likewise.
15863         (sse4a_insertq): Likewise.
15864         (ssse3_phaddwv8hi3): Set prefix_data16 and prefix_extra.
15865         (ssse3_phadddv4si3): Likewise.
15866         (ssse3_phaddswv8hi3): Likewise.
15867         (ssse3_phsubwv8hi3): Likewise.
15868         (ssse3_phsubdv4si3): Likewise.
15869         (ssse3_phsubswv8hi3): Likewise.
15870         (ssse3_pmaddubswv8hi3): Likewise.
15871         (ssse3_pmulhrswv8hi3): Likewise.
15872         (ssse3_pshufbv16qi3): Likewise.
15873         (ssse3_psign<mode>3): Likewise.
15874         (ssse3_palignrti): Likewise.
15875         (abs<mode>2): Likewise.
15876         (ssse3_phaddwv4hi3): Set prefix_extra.
15877         (ssse3_phadddv2si3): Likewise.
15878         (ssse3_phaddswv4hi3): Likewise.
15879         (ssse3_phsubwv4hi3): Likewise.
15880         (ssse3_phsubdv2si3): Likewise.
15881         (ssse3_phsubswv4hi3): Likewise.
15882         (ssse3_pmaddubswv4hi3): Likewise.
15883         (ssse3_pmulhrswv4hi3): Likewise.
15884         (ssse3_pshufbv8qi3): Likewise.
15885         (ssse3_psign<mode>3): Likewise.
15886         (ssse3_palignrdi): Likewise.
15887         (abs<mode>2): Likewise.
15888         (sse2_cvtdq2ps): Set mode to V4SF instead of V2DF.
15889         (*vec_dupv2df): Set mode to V2DF instead of V4SF.
15890         (sse2_pmovmskb): Set mode to SI instead of V2DF.
15891
15892 2007-04-23  Nick Clifton  <nickc@redhat.com>
15893
15894         * params.def: Fix formatting of emacs local variables.
15895
15896 2007-04-23  H.J. Lu  <hongjiu.lu@intel.com>
15897
15898         * config/i386/sse.md (sse2_stored): Don't split to inter-unit
15899         move if inter-unit move isn't allowed.
15900         Don't split moving the first element of V2DI to DI to inter-unit
15901         move if inter-unit move isn't allowed.
15902
15903 2007-04-23  Richard Guenther  <rguenther@suse.de>
15904
15905         * tree-ssa-sink.c (execute_sink_code): Calculate CDI_DOMINATORS
15906         and CDI_POST_DOMINATORS separately.
15907
15908 2007-04-23  Nick Clifton  <nickc@redhat.com>
15909
15910         * c.opt (Wformat-contains-nul): Add warning attribute.
15911
15912 2007-04-23  Jan Hubicka  <jh@suse.cz>
15913
15914         * function.c (init_function_start): Don't init line number info.
15915         (expand_function_end): Update.
15916         (reset_block_changes, record_block_change, finalize_block_changes,
15917         check_block_change, free_block_changes): Kill.
15918         * function.h (reset_block_changes, record_block_change,
15919         finalize_block_changes, check_block_change, free_block_changes):
15920         Remove prototypes.
15921         (struct function): Remove ib_boundaries_block.
15922         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
15923         Use curr_insn_locator to initialize locator.
15924         (emit_line_note): Remove.
15925         * cfgexpand.c (expand_gimple_cond_expr): Update.
15926         (construct_exit_block): Likewise.
15927         (tree_expand_cfg): Initialize/finalize locators.
15928         * expr.c (expand_expr_real): Update.
15929         * cfglayout.c (line_locators_locs, line_locators_lines,
15930         file_locators_locs, file_locators_files): Remove.
15931         (set_block_levels): Move to cfgexpand.c.
15932         (insn_locators_initialize): Remove.
15933         (pass_insn_locators_initialize): Remove.
15934         (locations_locators_locs, locations_locators_vals): New static vars.
15935         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
15936         Likewise.
15937         (insn_locators_alloc, insn_locators_finalize,
15938         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
15939         New functions.
15940         (locator_location): New.
15941         (locator_line, locator_file): Rewrite.
15942         * rtl.h (emit_line_note): Kill.
15943         (insn_locators_alloc, insn_locators_finalize,
15944         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
15945         Declare.
15946         * tree-inline.c (initialize_cfun): Do not initialize
15947         ib_boundaries_block.
15948         * passes.c (pass_insn_locators_initialize): Remove.
15949
15950 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15951
15952         PR middle-end/31448
15953         * expr.c (reduce_to_bit_field_precision): Handle
15954         CONST_INT rtx's.
15955
15956 2007-04-22  Uros Bizjak  <ubizjak@gmail.com>
15957
15958         PR tree-optimization/24659
15959         * optabs.h (enum optab_index) [OTI_vec_unpacks_hi,
15960         OTI_vec_unpacks_lo]: Update comment to mention floating point operands.
15961         (vec_pack_trunc_optab): Rename from vec_pack_mod_optab.
15962         * genopinit.c (optabs): Rename vec_pack_mod_optab
15963         to vec_pack_trunc_optab.
15964         * tree-vect-transform.c (vectorizable_type_demotion): Do not fail
15965         early for scalar floating point operands for NOP_EXPR.
15966         (vectorizable_type_promotion): Ditto.
15967         * optabs.c (optab_for_tree_code) [VEC_PACK_TRUNC_EXPR]: Return
15968         vec_pack_trunc_optab.
15969         (expand_binop): Rename vec_float_trunc_optab to vec_pack_mod_optab.
15970
15971         * tree.def (VEC_PACK_TRUNC_EXPR): Rename from VEC_PACK_MOD_EXPR.
15972         * tree-pretty-print.c (dump_generic_node) [VEC_PACK_TRUNC_EXPR]:
15973         Rename from VEC_PACK_MOD_EXPR.
15974         (op_prio) [VEC_PACK_TRUNC_EXPR]: Ditto.
15975         * expr.c (expand_expr_real_1): Ditto.
15976         * tree-inline.c (estimate_num_insns_1): Ditto.
15977         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
15978
15979         * config/i386/sse.md (vec_unpacks_hi_v4sf): New expander.
15980         (vec_unpacks_lo_v4sf): Ditto.
15981         (vec_pack_trunc_v2df): Ditto.
15982         (vec_pack_trunc_v8hi): Rename from vec_pack_mod_v8hi.
15983         (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
15984         (vec_pack_trunc_v2di): Rename from vec_pack_mod_v2di.
15985
15986         * config/rs6000/altivec.md (vec_pack_trunc_v8hi): Rename from
15987         vec_pack_mod_v8hi.
15988         (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
15989
15990         * doc/c-tree.texi (Expression trees) [VEC_PACK_TRUNC_EXPR]:
15991         Rename from VEC_PACK_MOD_EXPR.  This expression also represent
15992         packing of floating point operands.
15993         [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR]: These expression also
15994         represent unpacking of floating point operands.
15995         * doc/md.texi (Standard Names) [vec_pack_trunc]: Update documentation.
15996         [vec_unpacks_hi]: Ditto.
15997         [vec_unpacks_lo]: Ditto.
15998
15999 2007-04-22  Jan Hubicka  <jh@suse.cz>
16000
16001         * final.c (rest_of_handle_final): Call
16002         targetm.asm_out.constructor/targetm.asm_out.destructor
16003         * cgraphunit.c (cgraph_build_static_cdtor): Don't do it here; set
16004         proper priority via decl_*_priority_insert.
16005         * c-common.c (c_expand_body): Likewise.
16006
16007 2007-04-22  Richard Guenther  <rguenther@suse.de>
16008
16009         PR tree-optimization/29789
16010         * tree-ssa-loop-im.c (stmt_cost): Adjust cost of shifts.
16011         (rewrite_reciprocal): New helper split out from
16012         determine_invariantness_stmt.
16013         (rewrite_bittest): Likewise.
16014         (determine_invariantness_stmt): Rewrite (A >> B) & 1 to
16015         A & (1 << B) if (1 << B) is loop invariant but (A >> B)
16016         is not.
16017
16018 2007-04-22  Revital Eres  <eres@il.ibm.com>
16019
16020         * loop-unroll.c (var_to_expand): New field to support also
16021         insns of the form x = something + x.
16022         (analyze_insn_to_expand_var): Use it.
16023         (expand_var_during_unrolling): Likewise.
16024
16025 2007-04-21  Zdenek Dvorak  <dvorakz@suse.cz>
16026
16027         * predict.c: Include pointer-set.h.
16028         (bb_predictions): New variable.
16029         (tree_predicted_by_p, tree_predict_edge,
16030         remove_predictions_associated_with_edge): Use bb_predictions map
16031         instead of bb->predictions.
16032         (clear_bb_predictions, assert_is_empty): New functions.
16033         (combine_predictions_for_bb): Use bb_predictions map.  Call
16034         clear_bb_predictions.
16035         (tree_estimate_probability): Create and free bb_predictions map.
16036         * Makefile.in (predict.o): Add pointer-set.h dependency.
16037         * basic-block.h (struct basic_block_def): Remove predictions
16038         field.
16039         * cfgrtl.c (rtl_verify_flow_info_1): Do not check bb->predictions.
16040
16041 2007-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
16042
16043         PR target/31480
16044         * config/sh/sh.md (length): Check if prev_nonnote_insn (insn)
16045         is null.
16046
16047 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16048
16049         * timevar.c (timevar_print): Change reference of --disable-checking to
16050         --enable-checking=release.  Also warn if assert checking is disabled.
16051
16052 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16053
16054         PR C/30265
16055         * c-gimplifier.c (gimplify_compound_literal_expr): Mark the
16056         decl as addressable if the compound literal was marked as
16057         addressable.
16058         Mark the decl as a gimple register if it is a complex or
16059         vector decl and does not live in memory.
16060
16061 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16062
16063         * tree.h (GIMPLE_TUPLE_P): Also true for PHI_NODEs.
16064         (GENERIC_NEXT): New function macro.
16065         (PHI_CHAIN): Use phi_node's new chain variable.
16066         (tree_phi_node): Change tree_common to tree_base
16067         and add the chain field.
16068         * tree-phinodes.c (make_phi_node): Don't set
16069         TREE_TYPE on the new node.
16070         * c-decl.c (lang_tree_node): Use GENERIC_NEXT
16071         instead of checking GIMPLE_TUPLE_P in chain_next.
16072         * tree-vect-transform.c
16073         (get_initial_def_for_induction): Look at
16074         PHI_RESULT_TREE for the type of the phi node.
16075         (update_vuses_to_preheader): Use PHI_CHAIN
16076         instead of TREE_CHAIN on the phi node.
16077         * tree-ssa-structalias.c (compute_points_to_sets):
16078         Likewise.
16079         (ipa_pta_execute): Likewise.
16080
16081 2007-04-21  Richard Guenther  <rguenther@suse.de>
16082
16083         PR middle-end/31136
16084         * fold-const.c (fold_unary): Call fold_convert_const on the
16085         original tree.
16086
16087 2007-04-21  Alexandre Oliva  <aoliva@redhat.com>
16088
16089         * gcse.c (store_killed_in_insn): Handle PARALLELs.
16090         (store_killed_in_pat): New.
16091
16092 2007-04-20  Richard Henderson  <rth@redhat.com>
16093
16094         PR target/31628
16095         * config/i386/i386.c (type_has_variadic_args_p): Look for any
16096         TREE_LIST with a void_type_node value, not void_list_node exactly.
16097
16098 2007-04-21  Douglas Gregor  <doug.gregor@gmail.com>
16099
16100         * doc/standards.texi: Re-arrange into language-specific
16101         subsections. Add a C++ section, documenting which standards we
16102         support.
16103
16104 2007-04-21  Zdenek Dvorak  <dvorakz@suse.cz>
16105
16106         * tree-ssa-structalias.c (delete_points_to_sets): Free graph->complex.
16107         * tree-ssa-operands.c (finalize_ssa_vuse_ops): Free new_ops.
16108
16109 2007-04-20  Daniel Jacobowitz  <dan@codesourcery.com>
16110
16111         * config/rs6000/sysv4.h (STARTFILE_DEFAULT_SPEC): Include
16112         ecrti.o and crtbegin.o.
16113         (LIB_DEFAULT_SPEC): Include -lc.
16114         (ENDFILE_DEFAULT_SPEC): Include crtend.o and ecrtn.o.
16115
16116 2007-04-20  Richard Henderson  <rth@redhat.com>
16117
16118         PR target/28623
16119         * config/alpha/alpha.c (get_unaligned_address): Remove extra_offset
16120         argument; update all callers.
16121         (get_unaligned_offset): New.
16122         * config/alpha/alpha.md (extendqidi2, extendhidi2): Don't use
16123         get_unaligned_address, just pass on the address directly.
16124         (unaligned_extendqidi): Use gen_lowpart instead of open-coding
16125         the subreg in the helper patterns.
16126         (unaligned_extendqidi_le): Use get_unaligned_offset.
16127         (unaligned_extendqidi_be, unaligned_extendhidi_le): Likewise.
16128         (unaligned_extendhidi_be): Likewise.
16129         (unaligned_extendhidi): Tidy.
16130         * config/alpha/alpha-protos.h: Update.
16131
16132 2007-04-20  Richard Henderson  <rth@redhat.com>
16133
16134         * config/alpha/alpha.h (CPP_SPEC, CPP_SUBTARGET_SPEC): Remove.
16135         (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
16136         * config/alpha/linux.h (CPP_SPEC): Undef before redefine.
16137         * config/alpha/linux-elf.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
16138         * config/alpha/freebsd.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
16139         (CPP_SPEC): Don't include %(cpp_subtarget).
16140         * config/alpha/netbsd.h (CPP_SPEC): Rename CPP_SUBTARGET_SPEC.
16141         (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
16142         * config/alpha/osf.h (CPP_SPEC, EXTRA_SPECS): Similarly.
16143
16144 2007-04-20  Jakub Jelinek  <jakub@redhat.com>
16145
16146         * config/i386/i386.c (bdesc_2arg): Use ORDERED rather than UNORDERED
16147         for __builtin_ia32_cmpordss.
16148
16149         PR tree-optimization/31632
16150         * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
16151         and arg1 for optimizations of comparison against min/max values.
16152         Fold arg0 to arg1's type for optimizations of comparison against
16153         min+1 and max-1 values.
16154
16155 2007-04-19  Bernd Schmidt  <bernd.schmidt@analog.com>
16156
16157         * reload.c (combine_reloads): When trying to use a dying register,
16158         check whether it's uninitialized and don't use if so.
16159
16160 2007-04-19  Brooks Moses  <brooks.moses@codesourcery.com>
16161
16162         * fold-const.c: Remove prototypes for native_encode_expr and
16163         native_interpret_expr.
16164         (native_encode_expr): Make non-static.
16165         (native_interpret_expr): Likewise.
16166         * tree.h: Add prototypes for the above.
16167
16168 2007-04-19  Joseph Myers  <joseph@codesourcery.com>
16169
16170         * config/rs6000/spe.md (*frob_tf_ti, *frob_ti_tf, *frob_ti_tf_2,
16171         *mov_si<mode>_e500_subreg0, *mov_si<mode>_e500_subreg0_2,
16172         *mov_sitf_e500_subreg8, *mov_sitf_e500_subreg8_2, spe_extenddftf2,
16173         spe_fix_trunctfsi2_internal, spe_negtf2_internal, cmptfeq_gpr,
16174         tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr, tsttflt_gpr):
16175         Add length attributes.
16176
16177 2007-04-19  Janis Johnson  <janis187@us.ibm.com>
16178
16179         * ginclude/float.h: Check that __STDC_WANT_DEC_FP__ is defined,
16180         not that it is 1.
16181
16182         * c-cppbuiltin.c (c_cpp_builtins): Remove definition of
16183         __STDC_WANT_DEC_FP__.
16184
16185 2007-04-19  Joseph Myers  <joseph@codesourcery.com>
16186
16187         * configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu*
16188         for long double compatibility.
16189         * configure: Regenerate.
16190
16191 2007-04-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
16192
16193         PR rtl-optimization/29841
16194         * cfgbuild.c (control_flow_insn_p): Return TRUE for unconditional
16195         trap instructions.
16196         * sched-deps.c (sched_analyze_insn): Prevent all non-jump instructions
16197         that may cause control flow transfer from being moved.
16198
16199 2007-04-18  Jan Hubicka  <jh@suse.cz>
16200
16201         * fold-const.c (div_if_zero_remainder): Do signed divide for pointer
16202         types.
16203
16204 2007-04-18  Eric Christopher  <echristo@apple.com>
16205
16206         * config/rs6000/darwin.md (load_macho_picbase): Use link register
16207         only. Update operands.
16208         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update caller.
16209         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Ditto. Move from
16210         link register to pic register.
16211
16212 2007-04-18  Dirk Mueller  <dmueller@suse.de>
16213
16214         PR diagnostic/31227
16215         * tree-vrp.c (search_for_addr_array): New.
16216         (check_array_bounds): Suppress warning about
16217         address taken of array refs if its not de-referenced.
16218
16219 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
16220
16221         * tree-vectorizer.c (destroy_loop_vec_info): Set loop->aux to NULL.
16222         * tree-vect-analyze.c (vect_analyze_loop_form): Set loop->aux.
16223
16224         * tree-vectorizer.h (NITERS_KNOWN_P): New.
16225         * tree-vect-analyze.c (vect_analyze_loop_form): Call NITERS_KNOWN_P
16226         instead of LOOP_VINFO_INT_NITERS to avoid having to geneate loop_info.
16227
16228         * tree-vect-analyze.c (vect_determine_vectorization_factor): Add
16229         dump print.
16230         (vect_analyze_operations): Fix indenetation.  Fix a comment.  Fix a
16231         print message.
16232         (vect_analyze_scalar_cycles): Fix indentation.
16233         (vect_enhance_data_refs_alignment): Fix check in case of peeling.
16234         (vect_mark_relevant): Include phis in relevance analysis.
16235
16236         * tree-vect-transform.c (vect_transform_loop): Add an assert.
16237
16238 2007-04-18  Anatoly Sokolov <aesok@post.ru>
16239
16240         * config/avr/avr.c (ptrreg_to_str): Replace error() with
16241         output_operand_lossage().
16242
16243 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
16244
16245         * tree-vect-transform.c (get_initial_def_for_reduction): Clean away
16246         the unused code for reduction without adjust-in-epilog to simplify the
16247         function.
16248
16249 2007-04-18  Wolfgang Gellerich  <gellerich@de.ibm.com>
16250
16251         * config/s390/s390.h (S390_TDC_POSITIVE_ZERO): New constant.
16252         (S390_TDC_NEGATIVE_ZERO): New constant.
16253         (S390_TDC_POSITIVE_NORMALIZED_NUMBER): New constant.
16254         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): New constant.
16255         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): New constant.
16256         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): New constant.
16257         (S390_TDC_POSITIVE_INFINITY): New constant.
16258         (S390_TDC_NEGATIVE_INFINITY): New constant.
16259         (S390_TDC_POSITIVE_QUIET_NAN): New constant.
16260         (S390_TDC_NEGATIVE_QUIET_NAN): New constant.
16261         (S390_TDC_POSITIVE_SIGNALING_NAN): New constant.
16262         (S390_TDC_NEGATIVE_SIGNALING_NAN): New constant.
16263         (S390_TDC_INFINITY): New constant.
16264         * config/s390/s390.c (s390_canonicalize_comparison): Renamed
16265         UNSPEC_CMPINT to UNSPEC_CCU_TO_INT, added a UNSPEC_CCU_TO_INT-like
16266         optimization for UNSPEC_CCZ_TO_INT.
16267         * config/s390/s390.md ("*TDC_insn_<mode>"): New insn.
16268         ("*ccz_to_int"): New insn.
16269         ("isinf<mode>2"): New insn.
16270         (UNSPEC_CMPINT): Renamed to UNSPEC_CCU_TO_INT.
16271         (UNSPEC_CCU_TO_INT): New constant, replaces UNSPEC_CMPINT.
16272         (UNSPEC_CCZ_TO_INT): New constant.
16273
16274 2007-04-18  Richard Guenther  <rguenther@suse.de>
16275
16276         PR tree-optimization/19431
16277         PR tree-optimization/21463
16278         * tree-pass.h (pass_phiprop): Declare.
16279         * passes.c (init_optimization_passes): New phiprop pass.
16280         * tree-ssa-forwprop.c (struct phiprop_d): New structure.
16281         (phivn_valid_p): New helper function.
16282         (phiprop_insert_phi): Likewise.
16283         (propagate_with_phi): Likewise.
16284         (tree_ssa_phiprop): New propagator propagating loads
16285         through phi nodes if profitable.
16286
16287 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
16288
16289         * tree-vect-analyze.c (process_use): New function.
16290         (vect_mark_stmts_to_be_vectorized): Factor out code to process_use.
16291         Check phis in all bbs.
16292         * tree-vectorizer.c (vect_is_simple_use): Remove a no longer relavant
16293         assert.
16294
16295 2007-04-18  Bernd Schmidt  <bernd.schmidt@analog.com>
16296
16297         * reload1.c (eliminte_regs_in_insn): Use REG_EQUIV notes the same way
16298         we use REG_EQUAL.
16299
16300 2007-04-17  Anatoly Sokolov <aesok@post.ru>
16301
16302         PR target/30483
16303         * config/avr/avr.c (ptrreg_to_str): Replace gcc_unreachable() with
16304         error().
16305
16306 2007-04-17  H.J. Lu  <hongjiu.lu@intel.com>
16307
16308         * config/i386/sse.md (sse_vmaddv4sf3): Use register_operand
16309         on "0".
16310         (sse_vmmulv4sf3): Likewise.
16311         (sse2_vmaddv2df3): Likewise.
16312         (sse2_vmmulv2df3): Likewise.
16313
16314 2007-04-17  Zdenek Dvorak  <dvorakz@suse.cz>
16315
16316         PR rtl-optimization/31360
16317         * cfgloopanal.c (target_small_cost, target_pres_cost): Removed.
16318         (target_reg_cost): New.
16319         (init_set_costs): Initialize target_reg_cost.  Add comments
16320         regarding the rationale of the costs.
16321         (global_cost_for_size): Renamed to...
16322         (estimate_reg_pressure_cost): ... and simplify.  Decrease importance
16323         of register pressure.
16324         * tree-ssa-loop-ivopts.c (ivopts_global_cost_for_size): Use
16325         estimate_reg_pressure_cost.  Add number of ivs.
16326         (determine_set_costs): Dump target_reg_cost.
16327         * loop-invariant.c (gain_for_invariant): Use
16328         estimate_reg_pressure_cost.  Removed n_inv_uses argument.
16329         (best_gain_for_invariant, find_invariants_to_move): Remove
16330         n_inv_uses.
16331         * cfgloop.h (target_small_cost, target_pres_cost): Removed.
16332         (target_reg_cost): Declare.
16333         (global_cost_for_size): Declaration removed.
16334         (estimate_reg_pressure_cost): Declare.
16335
16336 2007-04-17  Peter Bergner  <bergner@vnet.ibm.com>
16337
16338         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Force TDmode
16339         regnos into even/odd register pairs.
16340         * config/rs6000/rs6000.h [SLOW_UNALIGNED_ACCESS]: Treat DDmode and
16341         TDmode similar to the other floating point modes.
16342         [SECONDARY_MEMORY_NEEDED]: Treat DDmode similar to DFmode.
16343         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): New
16344         define_expand's.
16345         (negdd2_fpr, absdd2_fpr, nabsdd2_fpr, negtd2_fpr, abstd2_fpr,
16346         nabstd2_fpr, movdd_hardfloat64_mfpgpr): New define_insn's.
16347         (movdd_hardfloat64): Use TARGET_MFPGPR.
16348
16349 2007-04-17  Bernd Schmidt  <bernd.schmidt@analog.com>
16350
16351         * reload1.c (delete_output_reload): Don't count output in n_inherited.
16352
16353         Revert
16354         2005-01-05  Richard Henderson  <rth@redhat.com>
16355         PR rtl-opt/10692
16356         * reload1.c (do_input_reload): Restrict the optimization deleteing
16357         a previous output reload to RELOAD_FOR_INPUT.
16358
16359 2007-04-17  Dorit Nuzman  <dorit@il.ibm.com>
16360
16361         * tree-vectorizer.h (stmt_vec_info_type): Add enum value
16362         induc_vec_info_type.
16363         (vectorizable_induction): New function declaration.
16364         * tree-vect-transform.c (get_initial_def_for_induction): No need to
16365         check if already vectorized.  Find first place in BB where new stmts
16366         can be inserted.  Takes only one argument.
16367         (vectorizable_induction): New function.
16368         (vect_transform_stmt): Add case for induc_vec_info_type to call
16369         vectorizable_induction.
16370         (vect_transform_loop): Consider phis for vectorization.
16371         * tree-vect-analyze.c (vect_determine_vectorization_factor): Simplify
16372         condition.
16373         (analyze_operations): Call vectorizable_induction when analyzing phis.
16374         Fix comment.
16375         (vect_mark_stmts_to_be_vectorized): Remove redundant checks.
16376         (vect_mark_relevant): Include phis in relevance analysis.
16377         (vect_mark_stmts_to_be_vectorize): Likewise.
16378         * tree-vect-patterns.c (widened_name_p): Remove obsolete asserts.
16379
16380 2007-04-16  Lawrence Crowl  <crowl@google.com>
16381
16382         * doc/invoke.texi (Debugging Options): Add documentation for the
16383         -femit-struct-debug options -femit-struct-debug-baseonly,
16384         -femit-struct-debug-reduced, and
16385         -femit-struct-debug-detailed[=...].
16386
16387         * c-opts.c (c_common_handle_option): Add
16388         OPT_femit_struct_debug_baseonly, OPT_femit_struct_debug_reduced,
16389         and OPT_femit_struct_debug_detailed_.
16390         * c.opt: Add specifications for
16391         -femit-struct-debug-baseonly, -femit-struct-debug-reduced,
16392         and -femit-struct-debug-detailed[=...].
16393         * opts.c (set_struct_debug_option): Parse the
16394         -femit-struct-debug-... options.
16395         * opts.c (matches_main_base, main_input_basename,
16396         main_input_baselength, base_of_path, matches_main_base): Add
16397         variables and functions to compare header base name to compilation
16398         unit base name.
16399         * opts.c (should_emit_struct_debug): Add to determine to emit a
16400         structure based on the option.
16401         (dump_struct_debug) Also disabled function to debug this
16402         function.
16403         * opts.c (handle_options): Save the base name of the
16404         compilation unit.
16405
16406         * langhooks-def.h (LANG_HOOKS_GENERIC_TYPE_P): Define.
16407         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add.
16408         This hook indicates if a type is generic.  Set it by default
16409         to "never generic".
16410         * langhooks.h (struct lang_hooks_for_types): Add a new hook
16411         to determine if a struct type is generic or not.
16412         * cp/cp-tree.h (class_tmpl_impl_spec_p): Declare a C++ hook.
16413         * cp/tree.c (class_tmpl_impl_spec_p): Implement the C++ hook.
16414         * cp/cp-lang.c (LANG_HOOKS_GENERIC_TYPE_P): Override null C hook
16415         with live C++ hook.
16416
16417         * flags.h (enum debug_info_usage): Add an enumeration to describe
16418         a program's use of a structure type.
16419         * dwarf2out.c (gen_struct_or_union_type_die): Add a new parameter
16420         to indicate the program's usage of the type.  Filter structs based
16421         on the -femit-struct-debug-... specification.
16422         (gen_type_die): Split into two routines, gen_type_die and
16423         gen_type_die_with_usage.  gen_type_die is now a wrapper
16424         that assumes direct usage.
16425         (gen_type_die_with_usage): Replace calls to gen_type_die
16426         with gen_type_die_with_usage adding the program usage of
16427         the referenced type.
16428         (dwarf2out_imported_module_or_decl): Suppress struct debug
16429         information using should_emit_struct_debug when appropriate.
16430
16431 2007-04-16  Ian Lance Taylor  <iant@google.com>
16432
16433         PR tree-optimization/31522
16434         * tree-vrp.c (vr_phi_edge_counts): New static variable.
16435         (vrp_initialize): Allocate vr_phi_edge_counts.
16436         (vrp_visit_phi_node): Don't push to infinity if we saw a new
16437         executable edge.  Drop test for all constants.
16438         (vrp_finalize): Free vrp_phi_edge_counts.
16439
16440         * doc/cpp.texi (Common Predefined Macros): Clarify description of
16441         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
16442
16443         * tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer
16444         predecessors at head rather than tail.
16445
16446 2007-04-16  Matthias Klose  <doko@debian.org>
16447
16448         * config/alpha/linux.h (CPP_SPEC): Define.
16449         * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Extend.
16450
16451 2007-04-16  Aldy Hernandez  <aldyh@redhat.com>
16452
16453         * function.h: Remove sequence_stack extern declaration.
16454
16455 2007-04-16  Kazu Hirata  <kazu@codesourcery.com>
16456
16457         * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Change to 64 on
16458         TARGET_FIDOA.
16459         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Change to 64 if __mfido__ is
16460         defined.
16461
16462 2007-04-16  Anatoly Sokolov <aesok@post.ru>
16463
16464         * config/avr/avr.c (avr_arch_types): Rearranging  array.
16465         (enum avr_arch): Add.
16466         (avr_mcu_types): Use avr_arch enumeration constants instead of
16467         numbers.
16468         * config/avr/avr.h (LINK_SPEC): Simplify.
16469
16470 2007-04-16  Kazu Hirata  <kazu@codesourcery.com>
16471
16472         * config/m68k/m68k.c (m68k_libcall_value,
16473         m68k_function_value): Use macros for register names more.
16474
16475         * config/m68k/m68k.h (FRAME_POINTER_REGNUM): Use A6_REG
16476         instead.
16477         (M68K_REGNAME): Use A6_REG.
16478         * config/m68k/m68k.md (FP_REG): Rename to A6_REG.
16479
16480 2007-04-16  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
16481
16482         PR middle-end/28071
16483         * sched-int.h (struct deps): Split field 'pending_lists_length' into
16484         'pending_read_list_length' and 'pending_write_list_length'.  Update
16485         comment.
16486         * sched-deps.c (add_insn_mem_dependence): Change signature.  Update
16487         to handle two length counters instead of one.  Update all uses.
16488         (flush_pending_lists, sched_analyze_1, init_deps): Update to handle
16489         two length counters instead of one.
16490         * sched-rgn.c (propagate_deps): Update to handle two length counters
16491         instead of one.
16492
16493 2007-04-16  H.J. Lu  <hongjiu.lu@intel.com>
16494
16495         PR target/31582
16496         * config/i386/i386.c (ix86_expand_vec_set_builtin): Make a
16497         copy of source, pass it to ix86_expand_vector_set and return
16498         it as target.
16499
16500 2007-04-16  David Ung  <davidu@mips.com>
16501             Joseph Myers  <joseph@codesourcery.com>
16502
16503         * config/mips/mips.h (PROCESSOR_74KC, PROCESSOR_74KF,
16504         PROCESSOR_74KX, TUNE_74K, GENERATE_MADD_MSUB): Define.
16505         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
16506         Add 74K processor information.
16507         * config/mips/mips.md: Include 74k.md.
16508         (cpu): Add 74kc,74kf,74kx.
16509         (ISA_HAS_MADD_MSUB): Change to GENERATE_MADD_MSUB throughout.
16510         * config/mips/74k.md: New.
16511         * doc/invoke.texi (MIPS Options): Document 74K support.
16512
16513 2007-04-16  Dorit Nuzman  <dorit@il.ibm.com>
16514
16515         * tree-vect-analyze.c (vect_analyze_operations): Reorganize calls to
16516         vectorizable_* functions.
16517         * tree-vect-transform.c (vectorizable_call): Add check for
16518         STMT_VINFO_RELEVANT_P, STMT_VINFO_DEF_TYPE and STMT_VINFO_LIVE_P.
16519         (vectorizable_store): likewise.
16520         (vectorizable_conversion): Add check for STMT_VINFO_DEF_TYPE.
16521         Add comments.
16522         (vectorizable_operation, vectorizable_type_demotion): Likewise.
16523         (vectorizable_type_promotion, vectorizable_load): Likewise.
16524         (vectorizable_live_operation, vectorizable_condition): Likewise.
16525         (vectorizable_assignment): Add check for STMT_VINFO_DEF_TYPE and
16526         STMT_VINFO_LIVE_P.
16527         (vect_transform_stmt): Reorganize calls to vectorizable_* functions.
16528
16529 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
16530
16531         * config/m68k/linux.h (FUNCTION_VALUE_REGNO_P): Use macros for
16532         register numbers more.
16533         * config/m68k/m68k.h (STACK_POINTER_REGNUM,
16534         FRAME_POINTER_REGNUM, STATIC_CHAIN_REGNUM,
16535         M68K_STRUCT_VALUE_REGNUM, FUNCTION_VALUE, LIBCALL_VALUE,
16536         FUNCTION_VALUE_REGNO_P): Likewise.
16537         * config/m68k/m68kelf.h (M68K_STRUCT_VALUE_REGNUM,
16538         STATIC_CHAIN_REGNUM): Likewise.
16539         * config/m68k/m68kemb.h (FUNCTION_VALUE_REGNO_P): Likewise.
16540         * config/m68k/netbsd-elf.h (M68K_STRUCT_VALUE_REGNUM,
16541         STATIC_CHAIN_REGNUM, FUNCTION_VALUE_REGNO_P): Likewise.
16542         * config/m68k/m68k.md (FP_REG): New.
16543
16544 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
16545
16546         * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit
16547         alignment on fido.
16548
16549 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
16550
16551         * config/i386/i386.c, config/s390/s390.c, config/s390/s390.md,
16552         tree-ssa-loop-niter.c, tree-ssa-structalias.c, tree-vrp.c: Fix
16553         comment typos.
16554
16555 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
16556
16557         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore
16558         cold loops.
16559
16560 2007-04-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16561
16562         PR c/31520
16563         * c-decl.c (finish_decl): Grab the type of the decl after the call
16564         to store_init_value.
16565
16566 2007-04-14  Steven Bosscher  <steven@gcc.gnu.org>
16567
16568         * common.opt (fforward-propagate): Fix "Optimization" annotation.
16569
16570 2007-04-14  Jakub Jelinek  <jakub@redhat.com>
16571
16572         PR c++/25874
16573         * omp-low.c (expand_omp_parallel): If child_cfun->cfg, free
16574         dominators, post dominators and cleanup cfg before returning.
16575
16576 2007-04-14  Bernd Schmidt  <bernd.schmidt@analog.com>
16577
16578         * config/bfin/bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
16579         * config/bfin/bfin.md (movsi_insn): Delete two unused alternatives.
16580
16581 2007-04-14  Kazu Hirata  <kazu@codesourcery.com>
16582
16583         * config.gcc: Recognize fido.
16584         * config/m68k/m68k-devices.def (fidoa): New.
16585         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define
16586         __mfido__.
16587         (FL_FIDOA, TARGET_FIDOA): New.
16588         * config/m68k/m68k.opt (mfidoa): New.
16589
16590 2007-04-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16591
16592         PR middle-end/31322
16593         * dwarf2out.c (output_call_frame_info): Call assemble_external_libcall
16594         when a personality function is used.
16595
16596 2007-04-13  Bob Wilson  <bob.wilson@acm.org>
16597
16598         * config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.
16599
16600 2007-04-13  Mike Stump  <mrs@apple.com>
16601
16602         * config/darwin-c.c (handle_c_option): Handle -fapple-kext here so
16603         we can...
16604         * config/darwin.opt (fapple-kext): Make C++ only.
16605         * config/darwin.c (darwin_override_options): Remove code to ensure
16606         -fapple-kext is given for C++ only.
16607
16608 2007-04-13  Richard Sandiford  <richard@codesourcery.com>
16609
16610         * config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
16611         * config/mips/mips.c (override_options): Call
16612         SUBTARGET_OVERRIDE_OPTIONS, if defined.
16613
16614 2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
16615
16616         * config/i386/i386.opt (msvr3-shlib): Removed.
16617
16618         * doc/invoke.texi: Remove -msvr3-shlib.
16619
16620 2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
16621
16622         * config/i386/i386.opt (mpopcnt): Replace "popcount" instruction
16623         with "popcnt" instruction.
16624
16625 2007-04-13  Richard Guenther  <rguenther@suse.de>
16626
16627         PR tree-optimization/21258
16628         * tree-vrp.c (compare_case_labels): New helper.
16629         (find_switch_asserts): New function.
16630         (find_assert_locations): Call it for SWITCH_EXPRs.
16631
16632 2007-04-13  Uros Bizjak  <ubizjak@gmail.com>
16633
16634         * config/i386/i386.h (X87_FLOAT_MODE_P): Check for TARGET_80387.
16635         * config/i386/i386.md (*cmpfp0): Remove check for TARGET_80387, this
16636         check is now implied in X87_FLOAT_MODE_P.
16637         (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
16638         (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
16639         (fix_trunc<mode>_i386_fisttp): Ditto.
16640         (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
16641         (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
16642         (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
16643         (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
16644         (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
16645         (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
16646         (unnamed_splitters): Ditto.
16647         * config/i386/i386.c (function_value_32): Generate FIRST_FLOAT_REG
16648         for X87_FLOAT_MODE_P mode.  Override FIRST_FLOAT_REG with
16649         FIRST_SSE_REG for local functions when SSE math is enabled or
16650         for functions with sseregparm attribute.
16651         (standard_80387_constant_p): Return -1 if mode is not
16652         X87_FLOAT_MODE_P.
16653         (ix86_cc_mode): Assert that scalar mode is not DECIMAL_FLOAT_MODE_P.
16654         (ix86_expand_compare): Ditto.
16655         (ix86_expand_carry_flag_compare): Ditto.
16656         (ix86_expand_int_movcc): Check for SCALAR_FLOAT_MODE_P instead
16657         of FLOAT_MODE_P for cmp_mode and assert that cmp_mode is not
16658         DECIMAL_FLOAT_MODE_P.
16659         (ix86_preferred_output_reload_class): Use X87_FLOAT_MODE_P instead
16660         of SCALAR_FLOAT_MODE_P.
16661         (ix86_rtx_costs) [PLUS] Remove FLOAT_MODE_P and fall through to ...
16662         [MINUS]: ... here.  Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P
16663         checks before FLOAT_MODE_P.
16664         [MULT]: Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P checks
16665         before FLOAT_MODE_P.
16666         [DIV]: Ditto.
16667         [NEG]: Ditto.
16668         [ABS]: Ditto.
16669         [SQRT]: Ditto.
16670         [FLOAT_EXTEND]: Use SSE_FLOAT_MODE_P.
16671
16672 2007-04-12  Paolo Bonzini  <bonzini@gnu.org>
16673             Charles Wilson  <libtool@cwilson.fastmail.fm>
16674
16675         * Makefile.in (stamp-as, stamp-collect-ld, stamp-nm): Remove.
16676         (libgcc.mvars): Don't depend on them.
16677         * configure.ac (as, collect-ld, nm): Create from exec-tool.in.
16678         * exec-tool.in: New.
16679
16680 2007-04-12  Brooks Moses  <brooks.moses@codesourcery.com>
16681
16682         * doc/invoke.text (--help): Document --help=common.
16683
16684 2007-04-12  Thomas Neumann  <tneumann@users.sourceforge.net>
16685
16686         * stub-objc.c (objc_build_keyword_decl): Avoid C++ keywords.
16687
16688 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
16689
16690         * Makefile.in (insn-emit.o): Depend on $(INTEGRATE_H).
16691         * genemit.c (main): Emit #include "integrate.h".
16692         * config/mips/mips-protos.h (SYMBOL_HALF): New mips_symbol_type.
16693         (LOADGP_RTP): New mips_loadgp_style.
16694         * config/mips/mips.h: Include config/vxworks-dummy.h.
16695         (TARGET_RTP_PIC): New macro.
16696         (TARGET_USE_GOT): Return true for TARGET_RTP_PIC.
16697         (TARGET_USE_PIC_FN_ADDR_REG): Return true for TARGET_VXWORKS_RTP.
16698         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit function-relative case tables
16699         for TARGET_RTP_PIC.
16700         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Define.  Pass down
16701         -mvxworks-pic when using -mrtp and a PIC option.
16702         * config/mips/mips.c (mips_classify_symbol): Return SYMBOL_GOT_DISP
16703         for RTP PIC.
16704         (mips_symbolic_constant_p, mips_symbolic_address_p)
16705         (mips_symbol_insns): Handle SYMBOL_HALF.
16706         (override_options): Warn about -G and -mrtp being used together.
16707         Initialize mips_lo_relocs[SYMBOL_HALF].
16708         (mips_current_loadgp_style): Return LOADGP_RTP for RTP PIC.
16709         (mips_emit_loadgp): Handle LOADGP_RTP.
16710         (mips_in_small_data_p): Return false for TARGET_VXWORKS_RTP.
16711         * config/mips/mips.md (loadgp_rtp): New insn and splitter.
16712         (tablejump): Handle function-relative case table entries if
16713         TARGET_RTP_PIC.
16714         * config/mips/predicates.md (symbol_ref_operand): New predicate.
16715
16716 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
16717
16718         * config/mips/mips.md (load_call<mode>): Allow any general register.
16719         destination.
16720         (sibcall_value_internal, sibcall_value_multiple_internal)
16721         (call_value_internal, call_value_split, call_value_multiple_internal)
16722         (call_value_multiple_split): Remove constraints from operand 0.
16723
16724 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
16725
16726         * config/mips/mips-protos.h: In comments, refer to loadgp_absolute
16727         rather than loadgp_noshared.
16728         * config/mips/mips.c (mips_emit_loadgp): Use gen_loadgp_absolute
16729         instead of gen_loadgp_noshared.  Use gen_loadgp_newabi instead of
16730         gen_loadgp.
16731         * config/mips/mips.md (loadgp): Rename to...
16732         (loadgp_newabi): ...this.
16733         (loadgp_noshared): Rename to...
16734         (loadgp_absolute): ...this.
16735
16736 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
16737
16738         * config/mips/mips.c (mips_ok_for_lazy_binding_p): Always return
16739         false for locally-binding symbols.
16740         (mips_dangerous_for_la25_p): Check mips_global_symbol_p.
16741
16742 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
16743
16744         * config/mips/mips-protos.h (SYMBOL_GOT_LOCAL): Rename to...
16745         (SYMBOL_GOT_PAGE_OFST): ...this.
16746         (SYMBOL_GOT_GLOBAL): Rename to...
16747         (SYMBOL_GOT_DISP): ...this.
16748         (SYMBOL_GOTOFF_GLOBAL): Rename to...
16749         (SYMBOL_GOTOFF_DISP): ...this.  Update comments accordingly.
16750         * config/mips/mips.c (mips_global_symbol_p): New function.
16751         (mips_symbol_binds_local_p): Likewise.
16752         (mips_classify_symbol): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP
16753         and SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST.  Use
16754         mips_global_symbol_p and mips_symbol_binds_local_p.
16755         (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
16756         (override_options): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP,
16757         SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST and SYMBOL_GOTOFF_GLOBAL to
16758         SYMBOL_GOTOFF_DISP.
16759         (mips_ok_for_lazy_binding_p): New function.
16760         (mips_load_call_address, mips_expand_call): Use it.
16761         (mips_dangerous_for_la25_p): Likewise.
16762         * config/mips/mips.md (*xgot_hi<mode>, *xgot_lo<mode>)
16763         (*got_disp<mode>): Use got_disp_operand instead of
16764         global_got_operand.  Use SYMBOL_GOTOFF_DISP instead of
16765         SYMBOL_GOTOFF_GLOBAL.
16766         (*got_page<mode>): Use got_page_ofst_operand instead of
16767         local_got_operand.
16768         * config/mips/predicates.md (const_call_insn_operand): Use
16769         SYMBOL_GOT_DISP instead of SYMBOL_GOT_GLOBAL.
16770         (global_got_operand): Rename to...
16771         (got_disp_operand): ...this and use SYMBOL_GOT_DISP instead of
16772         SYMBOL_GOT_GLOBAL.
16773         (local_got_operand): Rename to...
16774         (got_page_ofst_operand): ...this and use SYMBOL_GOT_PAGE_OFST instead
16775         of SYMBOL_GOT_LOCAL.
16776
16777 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
16778
16779         * config/mips/mips.h (TARGET_SPLIT_CALLS): Check
16780         TARGET_CALL_CLOBBERED_GP.
16781         (TARGET_SIBCALLS): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
16782         (TARGET_USE_GOT, TARGET_CALL_CLOBBERED_GP): New macros.
16783         (TARGET_CALL_SAVED_GP, TARGET_USE_PIC_FN_ADDR_REG): Likewise.
16784         (STARTING_FRAME_OFFSET): Check TARGET_CALL_CLOBBERED_GP instead
16785         of TARGET_ABICALLS && !TARGET_NEWABI.
16786         (MIPS_CALL): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
16787         * config/mips/mips.c (mips_load_call_address): Check
16788         TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
16789         (mips_global_pointer): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
16790         Check TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
16791         (mips_save_reg_p): Check TARGET_CALL_SAVED_GP instead of
16792         TARGET_ABICALLS && TARGET_NEWABI.
16793         (mips_current_loadgp_style): Check TARGET_USE_GOT instead of
16794         TARGET_ABICALLS.
16795         (mips_expand_prologue): Check TARGET_OLDABI instead of !TARGET_NEWABI.
16796         (mips_expand_epilogue): Check TARGET_CALL_SAVED_GP instead of
16797         TARGET_ABICALLS && TARGET_NEWABI.
16798         (mips_output_mi_thunk): Check TARGET_USE_GOT instead of
16799         TARGET_ABICALLS.  Check TARGET_CALL_SAVED_GP instead of
16800         TARGET_NEWABI.  Use TARGET_USE_PIC_FN_ADDR_REG to decide
16801         whether indirect calls must use $25.
16802         (mips_extra_live_on_entry): Check TARGET_GOT instead of
16803         TARGET_ABICALLS.
16804         * config/mips/mips.md (jal_macro): Check flag_pic and
16805         TARGET_CALL_CLOBBERED_GP instead of TARGET_ABICALLS and TARGET_NEWABI.
16806         (builtin_setjmp_setup, builtin_longjmp): Check TARGET_USE_GOT
16807         instead of TARGET_ABICALLS.
16808         (exception_receiver): Check TARGET_CALL_CLOBBERED_GP instead of
16809         TARGET_ABICALLS && TARGET_OLDABI.
16810         (load_call<mode>): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
16811         (sibcall): In the comment above the define_insn, mention
16812         TARGET_USE_PIC_FN_ADDR_REG instead of TARGET_ABICALLS.
16813         * config/mips/constraints.md (c): Check TARGET_USE_PIC_FN_ADDR_REG
16814         instead of TARGET_ABICALLS.
16815
16816 2007-04-12  Bernd Schmidt  <bernd.schmidt@analog.com>
16817
16818         * doc/md.texi (Blackfin family constraints): Document PA and PB.
16819         * config/bfin/bfin.h (CONST_OK_FOR_P): Handle PA and PB.
16820         (MACFLAGS_MATCH_P): New macro.
16821         * config/bfin/bfin.c (print_operand): Handle MACFLAG_IS_M.
16822         (bfin_secondary_reload): Treat EVEN_AREGS and ODD_AREGS like AREGS.
16823         * config/bfin/bfin.md (MACFLAG_IS_M): New constant.  Renumber some of
16824         the other MACFLAG constants.
16825         (sum_of_accumulators, lshrpdi3, ashrpdi3): New patterns.
16826         (flag_machi): Tighten constraints.  Renumber some of the operands.
16827         (flag_machi_acconly): Tighten constraints.  Correct operand numbers in
16828         output template.
16829         (flag_machi_parts_acconly): New pattern.
16830         (flag_macinithi): Tighten constraints.  Allow any accumulator to be
16831         used.
16832         (flag_macinit1hi): Tighten constraints.
16833         (flag_mul_macv2hi_parts_acconly): New pattern.
16834
16835         * config/bfin/lib1funcs.asm (___umulsi3_highpart, __smulsi3_highpart):
16836         Use a more efficient implementation.
16837         * config/bfin/bfin.md (umulsi3_highpart, smulsi3_highpart): Emit
16838         inline sequences when not optimizing for size.
16839
16840         * config/bfin/bfin.md (movhi_low2high, movhi_high2high, movhi_low2low,
16841         movhi_high2low): Delete, merge functionality into...
16842         (packv2hi): ... this pattern.
16843
16844         2007-02-11  Jie Zhang  <jie.zhang@analog.com>
16845         * config/bfin/bfin.opt (msim): New option.
16846         (mcpu=): New option.
16847         * config/bfin/bfin-protos.h (enum bfin_cpu): New.
16848         (bfin_cpu_t): Typedef of enum bfin_cpu.
16849         (bfin_cpu_type): New declaration.
16850         * config/bfin/elf.h (STARTFILE_SPEC): Add support for
16851         -msim and -mcpu= options.
16852         (LIB_SPEC): Likewise.
16853         * config/bfin/bfin.c (bfin_cpu_type): Define.
16854         (bfin_handle_option): Handle -mcpu= option.
16855         * config/bfin/bfin.h (DEFAULT_CPU_TYPE): Define as BFIN_CPU_BF532.
16856         (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF531__, __ADSPBF532__,
16857         __ADSPBF533__ or __ADSPBF537__ according to the cpu type.
16858
16859 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
16860
16861         * config.gcc (*-*-vxworks*): Don't add to tm_files in this stanza.
16862         (arm-wrs-vxworks, mips-wrs-vxworks, powerpc-wrs-vxworks)
16863         (powerpc-wrs-vxworksae): Use ${tm_file}.
16864         (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add svr4.h
16865         after elfos.h.  Remove i386/sysv4.h and add i386/vx-common.h.
16866         * config/i386/vx-common.h: New file.
16867
16868 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
16869
16870         * config/vxworks.h (VXWORKS_STARTFILE_SPEC): Use -l:crt0.o instead
16871         of crt0.o%s.
16872
16873 2007-04-12  Andreas Krebbel  <krebbel1@de.ibm.com>
16874
16875         * config/s390/s390.md ("trunctddd2"): Use TDmode for the target of
16876         ldxtr.
16877
16878 2007-04-12  Douglas Gregor  <doug.gregor@gmail.com>
16879
16880         PR c++/31078
16881         PR c++/31103
16882         * c-common.c (c_build_qualified_type): Set canonical type
16883         appropriately.
16884
16885 2007-04-12  Richard Guenther  <rguenther@suse.de>
16886
16887         * tree-pretty-print.c (dump_generic_node): Print ARRAY_REF
16888         lower bound and element size if lower bound is not zero
16889         or either of the ARRAY_REF operands is set.
16890
16891 2007-04-12  Richard Guenther  <rguenther@suse.de>
16892
16893         PR tree-optimization/24689
16894         PR tree-optimization/31307
16895         * fold-const.c (operand_equal_p): Compare INTEGER_CST array
16896         indices by value.
16897         * gimplify.c (canonicalize_addr_expr): To be consistent with
16898         gimplify_compound_lval only set operands two and three of
16899         ARRAY_REFs if they are not gimple_min_invariant.  This makes
16900         it never at this place.
16901         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
16902
16903 2007-04-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16904
16905         * pa.c (pa_som_asm_init_sections): Ensure that cfun->machine is not
16906         null before emitting a .nsubspa directive.
16907
16908 2007-04-11  Diego Novillo  <dnovillo@redhat.com>
16909
16910         * tree-ssa-alias.c (dump_mem_ref_stats): Do not call
16911         need_to_partition_p if there are no memory statements in the
16912         function.
16913
16914 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
16915
16916         * tree-data-ref.c (chrec_steps_divide_constant_p): Removed.
16917         (gcd_of_steps_may_divide_p): New function.
16918         (analyze_miv_subscript): Use gcd_of_steps_may_divide_p.
16919
16920 2007-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
16921
16922         * reload.c (find_reloads_toplev, find_reloads_address,
16923         find_reloads_address_1, find_reloads_subreg_address): Use rtx_equal_p,
16924         not a pointer equality test, to decide if we need to call
16925         push_reg_equiv_alt_mem.
16926
16927 2007-04-11  Sebastian Pop  <sebastian.pop@inria.fr>
16928
16929         * tree-data-ref.c (affine_function_zero_p, constant_access_functions,
16930         insert_innermost_unit_dist_vector, add_distance_for_zero_overlaps):
16931         New.
16932         (build_classic_dist_vector): Call add_distance_for_zero_overlaps.
16933
16934 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
16935
16936         * tree-data-ref.c (add_multivariate_self_dist): Force the distance
16937         vector to be positive.
16938
16939 2007-04-11  Diego Novillo  <dnovillo@redhat.com>
16940
16941         PR 30735
16942         PR 31090
16943         * doc/invoke.texi: Document --params max-aliased-vops and
16944         avg-aliased-vops.
16945         * tree-ssa-operands.h (get_mpt_for, dump_memory_partitions,
16946         debug_memory_partitions): Move to tree-flow.h
16947         * params.h (AVG_ALIASED_VOPS): Define.
16948         * tree-ssa-alias.c (struct mp_info_def): Remove.  Update all
16949         users.
16950         (mp_info_t): Likewise.
16951         (get_mem_sym_stats_for): New.
16952         (set_memory_partition): Move from tree-flow-inline.h.
16953         (mark_non_addressable): Only clear the set of symbols for the
16954         partition if it exists.
16955         (dump_memory_partitions): Move from tree-ssa-operands.c
16956         (debug_memory_partitions): Likewise.
16957         (need_to_partition_p): New.
16958         (dump_mem_ref_stats): New.
16959         (debug_mem_ref_stats): New.
16960         (dump_mem_sym_stats): New.
16961         (debug_mem_sym_stats): New.
16962         (update_mem_sym_stats_from_stmt): New.
16963         (compare_mp_info_entries): New.
16964         (mp_info_cmp): Call it.
16965         (sort_mp_info): Change argument to a list of mem_sym_stats_t
16966         objects.
16967         (get_mpt_for): Move from tree-ssa-operands.c.
16968         (find_partition_for): New.
16969         (create_partition_for): Remove.
16970         (estimate_vop_reduction): New.
16971         (update_reference_counts): New.
16972         (build_mp_info): New.
16973         (compute_memory_partitions): Refactor.
16974         Document new heuristic.
16975         Call build_mp_info, update_reference_counts,
16976         find_partition_for and estimate_vop_reduction.
16977         (compute_may_aliases): Populate virtual operands before
16978         calling debugging dumps.
16979         (delete_mem_sym_stats): New.
16980         (delete_mem_ref_stats): New.
16981         (init_mem_ref_stats): New.
16982         (init_alias_info): Call it.
16983         (maybe_create_global_var): Remove alias_info argument.
16984         Get number of call sites and number of pure/const call sites
16985         from gimple_mem_ref_stats().
16986         (dump_alias_info): Call dump_memory_partitions first.
16987         (dump_points_to_info_for): Show how many times a pointer has
16988         been dereferenced.
16989         * opts.c (decode_options): For -O2 set --param
16990         max-aliased-vops to 500.
16991         For -O3 set --param max-aliased-vops to 1000 and --param
16992         avg-aliased-vops to 3.
16993         * fortran/options.c (gfc_init_options): Remove assignment to
16994         MAX_ALIASED_VOPS.
16995         * tree-flow-inline.h (gimple_mem_ref_stats): New.
16996         * tree-dfa.c (dump_variable): Dump memory reference
16997         statistics.
16998         Dump NO_ALIAS* settings.
16999         (referenced_var_lookup): Tidy.
17000         (mem_sym_stats): New.
17001         * tree-ssa-copy.c (may_propagate_copy): Return true if DEST
17002         and ORIG are different SSA names for a memory partition.
17003         * tree-ssa.c (delete_tree_ssa): Call delete_mem_ref_stats.
17004         * tree-flow.h (struct mem_sym_stats_d): Define.
17005         (mem_sym_stats_t): Define.
17006         (struct mem_ref_stats_d): Define.
17007         (struct gimple_df): Add field mem_ref_stats.
17008         (enum noalias_state): Define.
17009         (struct var_ann_d): Add bitfield noalias_state.
17010         (mem_sym_stats, delete_mem_ref_stats, dump_mem_ref_stats,
17011         debug_mem_ref_stats, debug_memory_partitions,
17012         debug_mem_sym_stats): Declare.
17013         * tree-ssa-structalias.c (update_alias_info): Update call
17014         sites, pure/const call sites and asm sites in structure
17015         returned by gimple_mem_ref_stats.
17016         Remove local variable IS_POTENTIAL_DEREF.
17017         Increase NUM_DEREFS if the memory expression is a potential
17018         dereference.
17019         Call update_mem_sym_stats_from_stmt.
17020         If the memory references memory, call
17021         update_mem_sym_stats_from_stmt for all the direct memory
17022         symbol references found.
17023         (intra_create_variable_infos): Set noalias_state field for
17024         pointer arguments according to the value of
17025         flag_argument_noalias.
17026         * tree-ssa-structalias.h (struct alias_info): Remove fields
17027         num_calls_found and num_pure_const_calls_found.
17028         (update_mem_sym_stats_from_stmt): Declare.
17029         * params.def (PARAM_MAX_ALIASED_VOPS): Change description.
17030         Set default value to 100.
17031         (PARAM_AVG_ALIASED_VOPS): Define.
17032
17033 2007-04-11  Richard Guenther  <rguenther@suse.de>
17034
17035         PR middle-end/31530
17036         * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
17037         a * -b + c as c - a * b if we honor sign dependent rounding.
17038
17039 2007-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
17040
17041         * config/bfin/bfin-protos.h (bfin_expand_movmem): Renamed from
17042         bfin_expand_strmov.
17043         * config/bfin/bfin.c (bfin_expand_prologue, bfin_delegitimize_address,
17044         bfin_function_ok_for_sibcall, split_load_immediate): Remove unused
17045         variables.
17046         (initialize_trampoline): Don't use old-style function definition.
17047         (bfin_secondary_reload): Mark IN_P argument as unused.
17048
17049 2007-04-10  Sebastian Pop  <sebastian.pop@inria.fr>
17050
17051         PR tree-optimization/31343
17052         * tree-chrec.h (chrec_zerop): Moved before build_polynomial_chrec.
17053         (build_polynomial_chrec): Return a scalar when the evolution is zero.
17054         * testsuite/gcc.dg/vect/pr31343.c: New.
17055
17056 2007-04-10  Eric Christopher  <echristo@apple.com>
17057
17058         * config/i386/i386.h (X87_FLOAT_MODE_P): New.
17059         * config/i386/i386.md (*cmpfp0): Use.
17060         (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
17061         (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
17062         (fix_trunc<mode>_i386_fisttp): Ditto.
17063         (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
17064         (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
17065         (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
17066         (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
17067         (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
17068         (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
17069         (unnamed_splitters): Ditto.
17070         * config/i386/i386.c (output_fix_trunc): Assert that
17071         we're not being passed a TFmode operand.
17072
17073 2007-04-10  Zdenek Dvorak  <dvorakz@suse.cz>
17074
17075         PR tree-optimization/31526
17076         * tree-inline.c (copy_cfg_body): Use last_basic_block instead of
17077         n_basic_blocks to find newly added blocks.
17078
17079 2007-04-10  Uros Bizjak  <ubizjak@gmail.com>
17080
17081         * config/i386/i386.md (fix_trunc<mode>di_sse): Remove "x" from "xm"
17082         alternative.
17083         (fix_trunc<mode>si_sse): Ditto.
17084         (*floatsisf2_mixed, *floatsisf2_sse): Ditto.
17085         (*floatsidf2_mixed, *floatsidf2_sse): Ditto.
17086         (*floatdisf2_mixed, *floatdisf2_sse): Ditto.
17087         (*floatdidf2_mixed, *floatdidf2_sse): Ditto.
17088         (floathi<mode>2): Rename from floathisf2 and floathidf2. Macroize
17089         expander using SSEMODEF mode macro.
17090         (floatsi<mode>2): Rename from floatsisf2 and floashidf2. Macroize
17091         expander using SSEMODEF mode macro.
17092         (*floathi<mode>2_i387): Rename from *floathisf2_i387 and
17093         *floathidf2_i387. Macroize insn using X87MODEF12 mode macro.
17094         (*floatsi<mode>2_i387): Rename from *floatsisf2_i387 and
17095         *floatsidf2_i387. Macroize insn using X87MODEF12 mode macro.
17096         (*floatdi<mode>2_i387): Rename from *floatdisf2_i387 and
17097         *floatdidf2_i387. Macroize insn using X87MODEF12 mode macro.
17098         (float<mode>xf2): Rename from floathixf2, floatsixf2 and floatdixf2.
17099         Macroize insn using X87MODEF mode macro.
17100
17101 2007-04-09  H.J. Lu  <hongjiu.lu@intel.com>
17102
17103         * config/i386/sse.md (sse2_pinsrw): Removed.
17104         (sse2_pextrw): Renamed to ...
17105         (*sse2_pextrw): This.
17106
17107 2007-04-09  Jan Hubicka  <jh@suse.cz>
17108
17109         PR target/27869
17110         * config/i386/sse.md
17111         (sse_vmaddv4sf3, sse_vmmulv4sf3): Remove '%' modifier.
17112         (sse_vmsmaxv4sf3_finite, sse_vmsminv4sf3_finite): Remove.
17113         (sse2_vmaddv2df3, sse2_vmmulv2df3): Remove '%' modifier.
17114         (sse2_vmsmaxv2df3_finite, sse2_vmsminv2df3_finite): Remove.
17115
17116 2007-04-09  Jan Hubicka  <jh@suse.cz>
17117
17118         * tree-ssa-ccp (maybe_fold_offset_to_component_ref): Recurse into
17119         multiple fields of union.
17120
17121 2007-04-09  Zdenek Dvorak  <dvorakz@suse.cz>
17122
17123         * cfgloopmanip.c (create_preheader): Do not use loop_preheader_edge.
17124         (create_preheaders): Check that loops are available.
17125         (fix_loop_structure): Clean up, improve comments.
17126         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa):
17127         Check that loops are available.  Set LOOP_CLOSED_SSA to the loops
17128         state flags.
17129         * tree-scalar-evolution.c (scev_finalize): Clear scalar_evolution_info.
17130         * predict.c (tree_estimate_probability): Do not call
17131         calculate_dominance_info.  Call create_preheaders.
17132         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Only call
17133         rewrite_into_loop_closed_ssa if LOOP_CLOSED_SSA is set in loops state
17134         flags.
17135         * cfgloop.c (loop_preheader_edge): Assert that loops have preheaders.
17136         * cfgloop.h (LOOP_CLOSED_SSA): New constant.
17137         * tree-cfg.c (tree_split_edge): Make an assert more precise.
17138         * tree-ssa-threadedge.c (thread_across_edge): Comment the function
17139         arguments.
17140
17141 2007-04-08  Jan Hubicka  <jh@suse.cz>
17142
17143         * tree.h (maybe_fold_offset_to_component_ref): Declare.
17144         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Export.
17145         * fold-const.c (fold_unary): Use it.
17146
17147 2007-04-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17148
17149         * varasm.c (assemble_variable): Remove call to
17150         lang_hooks.decls.prepare_assemble_variable.
17151         * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): Kill.
17152         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE.
17153         * langhooks.h (lang_hooks_for_decls): Remove
17154         prepare_assemble_variable.
17155
17156 2007-04-08  Mike Stump  <mrs@apple.com>
17157
17158         * config/i386/i386.c: Use inc/dec on Core2.
17159
17160 2007-04-08  Steven Bosscher  <steven@gcc.gnu.org>
17161
17162         * langhooks.c (lhd_tree_inlining_add_pending_fn_decls,
17163         lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
17164         lhd_tree_inlining_end_inlining): Remove.
17165         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove then
17166         add_pending_fn_decls, anon_aggr_type_p, start_inlining, and
17167         end_inlining hooks.
17168         * langhooks-def.h (lhd_tree_inlining_add_pending_fn_decls,
17169         lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
17170         lhd_tree_inlining_end_inlining): Remove prototypes.
17171         (LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS,
17172         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
17173         LANG_HOOKS_TREE_INLINING_START_INLINING,
17174         LANG_HOOKS_TREE_INLINING_END_INLINING): Remove.
17175
17176         * c-objc-common.h (LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Do
17177         not set it.
17178
17179 2007-04-08  Anatoly Sokolov <aesok@post.ru>
17180
17181         PR target/29932
17182         * config/avr/predicates.md (io_address_operand): Delete predicate.
17183         (low_io_address_operand): Don't use 'mode' argument.
17184         (higth_io_address_operand): Rename ...
17185         (high_io_address_operand): ... to this. Don't use 'mode' argument.
17186         * config/avr/avr.md (*sbix_branch_tmp, *sbix_branch_tmp_bit7): Adjust
17187         for above change.
17188
17189 2007-04-07  Daniel Berlin  <dberlin@dberlin.org>
17190
17191         Revert change removing staticp.
17192
17193 2007-04-07  Anatoly Sokolov <aesok@post.ru>
17194
17195         PR target/30289
17196         * config/avr/avr.md (*clrmemqi, *clrmemhi): Mark operand 4 as
17197         earlyclobber.
17198
17199 2007-04-07  Bruce Korb  <bkorb@gnu.org>
17200
17201         * c.opt: Add -Wformat-contains-nul.
17202         * c-format.c (set_Wformat): Set warn_format_contains_nul to the
17203           -Wformat setting.
17204         (check_format_info_main): Check OPT_Wformat_contains_nul before emitting
17205         the NUL byte warning.
17206
17207 2007-04-07  H.J. Lu  <hongjiu.lu@intel.com>
17208
17209         * config/i386/i386.c (ix86_handle_option): Handle SSSE3.
17210
17211 2007-04-06  Daniel Berlin  <dberlin@dberlin.org>
17212
17213         * tree.c (staticp): No longer use staticp langhook.
17214         * langhooks.c (lhd_staticp): Removed.
17215         * langhooks.h (struct lang_hooks): Remove staticp.
17216         * c-common.c (c_staticp): Remove.
17217         * c-common.h (c_staticp): Ditto.
17218         * langhooks-defs.h (lhd_staticp): Ditto.
17219         (LHD_HOOKS_STATICP): Ditto
17220         * tree.h (gcc_assert_lowered): New macro.
17221
17222 2007-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
17223
17224         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Add and use
17225         argument "reliable".
17226         (infer_loop_bounds_from_ref, infer_loop_bounds_from_array):
17227         Add argument "reliable".  Propagate it through calls.
17228         (infer_loop_bounds_from_undefined): Derive number of iterations
17229         estimates from references in blocks that do not dominate loop latch.
17230         (gcov_type_to_double_int): New function.
17231         (estimate_numbers_of_iterations_loop): Use gcov_type_to_double_int
17232         and expected_loop_iterations_unbounded.
17233         * cfgloopanal.c (expected_loop_iterations_unbounded): New function.
17234         (expected_loop_iterations): Use expected_loop_iterations_unbounded.
17235         * tree-data-ref.c (estimated_loop_iterations): Export.
17236         (get_references_in_stmt): Fix -- do not return addresses of local
17237         objects.
17238         * cfgloop.h (expected_loop_iterations_unbounded,
17239         estimated_loop_iterations): Declare.
17240
17241 2007-04-06  Andreas Tobler  <a.tobler@schweiz.org>
17242
17243         * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
17244
17245 2007-04-06  Uros Bizjak  <ubizjak@gmail.com>
17246
17247         * config/i386/i386.md (extend<mode>xf2): Rename from extendsfxf2
17248         and extenddfxf2. Macroize expander using X87MODEF12 mode macro.
17249         (*truncdfsf_mixed, *truncdfsf_i387, *truncdfsf2_i387_1):
17250         Use output_387_reg_move().
17251         (*truncxf<mode>2): Rename from *truncxfsf2 and truncxfdf2. Macroize
17252         expander using X87MODEF12 mode macro.
17253         (*truncxfsf2_mixed): Combine alternatives, ignore "r" alternative when
17254         choosing register preferences.  Use output_387_reg_move().
17255         (*truncxfdf2_mixed): Combine alternatives, use "r" alternative
17256         instead of "x".  Use output_387_reg_move().
17257         (*truncxf<mode>2_i387_noop): Rename from *truncxfsf2_i387_noop and
17258         *truncxfdf2_i387_noop.  Macroize insn using X87MODEF12 mode macro.
17259         (*truncxf<mode>2_i387): Rename from *truncxfsf2_i387 and
17260         *truncxfdf2_i387.  Macroize insn using X87MODEF12 mode macro.
17261         Use output_387_reg_move().
17262         (*truncxf?f_mixed splitter): Macroize splitter using X87MODEF12
17263         mode macro.
17264         (*truncxf?f_i387 splitter): Ditto.
17265
17266 2007-04-06  Daniel Berlin  <dberlin@dberlin.org>
17267
17268         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
17269         LANG_HOOKS_SAFE_FROM_P.
17270         * expr.c (safe_from_p): Remove langhook call.
17271         * langhooks.h (lang_hooks): Remove safe_from_p.
17272         (lhd_safe_from_p): Remove prototype.
17273         * langhooks.c (lhd_safe_from_p): Remove.
17274
17275 2007-04-06  Jan Hubicka  <jh@suse.cz>
17276
17277         * cgraphunit.c (decide_is_function_needed): Do not keep always_inline
17278         functions.
17279
17280 2007-04-06  Uros Bizjak  <ubizjak@gmail.com>
17281
17282         * config/i386/i386.c (output_387_reg_move): Handle memory operand[0].
17283         * config/i386/i386.md (*movsf_1, *movdf_nointeger,
17284         *movdf_integer_rex64, *movdf_integer, *movxf_nointeger,
17285         *movxf_integer): Use output_387_reg_move() for x87 reg->mem
17286         alternative.
17287         (*extendsfdf2_mixed, *extendsfdf2_i387, *extendsfxf2_i387,
17288         *extenddfxf2_i387, *truncdfsf_fast_mixed): Ditto.
17289
17290 2007-04-05  Richard Henderson  <rth@redhat.com>
17291
17292         * config/alpha/alpha.c (print_operand) [+]: Remove.
17293         (alpha_end_function): Print nop if call at end of function.
17294         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Remove +.
17295         * config/alpha/alpha.md (UNSPEC_LDGP1): New.
17296         (call_osf_1_er_noreturn, call_value_osf_1_er_noreturn): New.
17297         (call_osf_2_er_nogp, call_value_osf_2_er_nogp): New.
17298         (call_osf_2_er, call_value_osf_2_er): Merge the ldgp highpart into
17299         the call pattern. Update peepholes to match.
17300
17301 2007-04-05  Janis Johnson  <janis187@us.ibm.com>
17302
17303         * doc/extend.texi (Other Builtins): Add decimal float variants
17304         of signbit.
17305         * builtins.def: Ditto.
17306         * builtins.c (expand_builtin): Ditto.
17307
17308 2007-04-05  Uros Bizjak  <ubizjak@gmail.com>
17309             H.J. Lu  <hongjiu.lu@intel.com>
17310
17311         PR target/31478
17312         * config/i386/sse.md (sse2_umulv2siv2di3): Use V4SImode instead
17313         of V8HImode when calling ix86_binary_operator_ok.
17314         (sse2_pmaddwd): Call ix86_binary_operator_ok.
17315         (sdot_prodv8hi): Operands 1 and 2 must be register.
17316
17317 2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
17318
17319         * tree-sra.c (try_instantiate_multiple_fields): Needlessly
17320         initialize align to silence bogus warning.
17321
17322 2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
17323
17324         PR middle-end/22156
17325         * tree-sra.c (struct sra_elt): Add in_bitfld_block.  Remove
17326         all_no_warning.
17327         (struct sra_walk_fns): Remove use_all parameter from use.
17328         (sra_hash_tree): Handle BIT_FIELD_REFs.
17329         (sra_elt_hash): Don't hash bitfld blocks.
17330         (sra_elt_eq): Skip them in parent compares as well.  Handle
17331         BIT_FIELD_REFs.
17332         (sra_walk_expr): Don't maintain or pass down use_all_p.
17333         (scan_use): Remove use_all parameter.
17334         (scalarize_use): Likewise.  Re-expand assignment to
17335         BIT_FIELD_REF of gimple_reg.  De-scalarize before input or
17336         output, and re-scalarize after output.  Don't mark anything
17337         for no warning.
17338         (scalarize_ldst): Adjust.
17339         (scalarize_walk_gimple_modify_statement): Likewise.
17340         (build_element_name_1): Handle BIT_FIELD_REFs.
17341         (instantiate_element): Don't warn for any element whose parent
17342         is used as a whole.
17343         (instantiate_missing_elements_1): Return the sra_elt.
17344         (canon_type_for_field): New.
17345         (try_instantiate_multiple_fields): New.
17346         (instantiate_missing_elemnts): Use them.
17347         (mark_no_warning): Removed.
17348         (generate_one_element_ref): Handle BIT_FIELD_REFs.
17349         (REPLDUP, sra_build_elt_assignment): New.
17350         (generate_copy_inout): Use them.
17351         (generate_element_copy): Likewise.  Handle bitfld differences.
17352         (generate_element_zero): Don't recurse for blocks.  Use
17353         sra_build_elt_assignment.
17354         (generate_one_element_int): Take elt instead of var.  Use
17355         sra_build_elt_assignment.
17356         (generate_element_init_1): Adjust.
17357         (scalarize_use, scalarize_copy): Use REPLDUP.
17358         (scalarize_ldst): Move assert before dereference.
17359         (dump_sra_elt_name): Handle BIT_FIELD_REFs.
17360
17361 2007-04-05  Steven Bosscher  <steven@gcc.gnu.org>
17362
17363         * regmove.c: Fix unused variable warnings due to previous commit.
17364
17365 2007-04-05  Steven Bosscher  <steven@gcc.gnu.org>
17366
17367         * regmove.c (STACK_GROWS_DOWNWARD): Don't boolean-ize.
17368         (regmove_bb_head): Remove.
17369         (copy_src_to_dest): Don't update regmove_bb_head and BB_HEAD.
17370         (regmove_optimize): Don't do unnecessary CFG fixes for non-existing
17371         problems with fixup_match_1.
17372         Don't initialize/free regmove_bb_head.
17373
17374         (reg_is_remote_constant_p): If an insn is in the same basic block
17375         but not before INSN, consider it remote, too.
17376
17377 2007-04-05  Anatoly Sokolov <aesok@post.ru>
17378
17379         PR target/25448
17380         * config/avr/avr.c (avr_handle_fndecl_attribute): Use the
17381         DECL_ASSEMBLER_NAME, not the DECL_NAME.
17382
17383 2007-04-05  H.J. Lu  <hongjiu.lu@intel.com>
17384
17385         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Reformat.
17386         (CONDITIONAL_REGISTER_USAGE): Likewise.
17387
17388 2007-04-04  Richard Henderson  <rth@redhat.com>
17389
17390         * config/alpha/lib1funcs.asm: Remove unused file.
17391
17392 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
17393
17394         PR other/31356
17395         * opts.c (print_specific_help): Fix --help=<language>
17396         header line.
17397         (common_handle_option): Support --help=common.
17398
17399 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
17400
17401         PR other/31353
17402         * gcc.c (main): Do not run the linker if
17403         print_subprocess_help indicates that it shouldn't be
17404         run.
17405
17406 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
17407
17408         PR doc/31355
17409         * doc/invoke.texi (--help=): Document <languages> value, fix
17410         formatting in tables of values.
17411
17412 2007-04-04  Danny Smith  <dannysmith.users.sourceforge.net>
17413
17414         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Don't ignore
17415         dllimport attribute of virtual methods.
17416
17417 2007-04-04  Chen Liqin  <liqin@sunnorth.com.cn>
17418
17419         * config/score/crti.asm: Change _bss_start to __bss_start.
17420         * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Added.
17421         (OUTGOING_REG_PARM_STACK_SPACE) update.
17422         * config/score/score.opt: add options to make backend support
17423         score5, score5u, score7 and score7d.
17424         * config/score/score.md: Likewise.
17425         * config/score/misc.md: Likewise.
17426         * config/score/mac.md: Likewise.
17427         * doc/invoke.texi: Likewise.
17428         * doc/md.texi: update constraints define.
17429
17430 2007-04-03  Richard Henderson  <rth@redhat.com>
17431
17432         * expr.c (store_expr): If get_signed_or_unsigned_type doesn't yield
17433         an appropriate type, use the mode instead.
17434
17435 2007-04-03  Richard Sandiford  <richard@codesourcery.com>
17436
17437         * config.gcc (mips-wrs-vxworks): Add vx-common.h to tm_file.
17438         Set the default --with-arch setting to mips2.
17439         * config/mips/t-vxworks (MULTILIB_OPTIONS, MULTILIB_MATCHES)
17440         (MULTILIB_EXCEPTIONS): Redefine with new multilibs.
17441         (MULTILIB_OSDIRNAMES): Delete.
17442         (MULTILIB_DIRNAMES): Define.
17443         * config/mips/vxworks.h (LINK_SPEC): Add VXWORKS_LINK_SPEC.
17444         (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Define.
17445         (TARGET_OS_CPP_BUILTINS): Incorporate old SUBTARGET_CPP_SPEC
17446         definitions, except for _WRS_R3K_EXC_SUPPORT.  Call
17447         VXWORKS_OS_CPP_BUILTINS.
17448         (SUBTARGET_CPP_SPEC): Redefine to VXWORKS_ADDITIONAL_CPP_SPEC.
17449         (MIPS_DEBUGGING_INFO): Undefine.
17450         (FUNCTION_PROFILER): Define to VXWORKS_FUNCTION_PROFILER.
17451
17452 2007-04-03  Jakub Jelinek  <jakub@redhat.com>
17453
17454         PR middle-end/30704
17455         * fold-const.c (native_encode_real): Encode real.c provided longs
17456         as a series of 32-bit native integers.
17457         (native_interpret_real): Interpret buffer as a series of 32-bit
17458         native integers.
17459
17460 2007-04-03  Richard Guenther  <rguenther@suse.de>
17461
17462         * genpreds.c (write_insn_constraint_len): Write function
17463         optimized for CONSTRAINT_LEN implementation.
17464         (write_tm_preds_h): Output insn_constraint_len inline and
17465         use it for CONSTRAINT_LEN.
17466         (write_insn_preds_c): Don't output insn_constraint_len.
17467         * doc/md.texi (define_register_constraint): Document multi-letter
17468         constraints shall have the same length if they start with the same
17469         letter.
17470
17471 2007-04-03  Uros Bizjak  <ubizjak@gmail.com>
17472
17473         PR target/31175
17474         * config/i386/i386.md (isinf<mode>2): Expand only when
17475         TARGET_C99_FUNCTIONS is set.
17476
17477 2007-04-03  Uros Bizjak  <ubizjak@gmail.com>
17478
17479         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file.
17480         (x86_64-*-linux*): Ditto.
17481         * config/i386/i386.opt (mpc): New option.
17482         * config/i386/i386.c (overrride_options): Handle
17483         ix87_precision_string.
17484         * config/i386/crtprec.c: New file.
17485         * config/i386/t-crtpc: Ditto.
17486         * config/i386/linux.h (ENDFILE_SPEC): Add handling of -mpc32, -mpc64
17487         and -mpc80 options.
17488         * config/i386/linux64.h (ENDFILE_SPEC): Ditto.
17489         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
17490         crtprec32.o, crtprec64.o and crtprec80.o.
17491
17492         * doc/invoke.texi (Machine Dependent Options): Add -mpc32, -mpc64
17493         and -mpc80 options.
17494         (i386 and x86-64 Options): Document -mpc32, -mpc64 and -mpc80 options.
17495
17496 2007-04-02  Eric Christopher  <echristo@apple.com>
17497
17498         * doc/invoke.texi (i386 and x86-64 Options): Document -m64
17499         limitations on darwin.
17500
17501 2007-04-02  Anatoly Sokolov <aesok@post.ru>
17502
17503         PR target/31137
17504         * config/avr/avr.c (avr_rtx_costs): Add missing 'break' statements.
17505
17506 2007-04-02  Dave Korn  <dave.korn@artimi.com>
17507
17508         * doc/tm.texi (FUNCTION_MODE): Update and extend documentation.
17509
17510 2007-04-02  Dave Korn  <dave.korn@artimi.com>
17511
17512         * libgcc2.h (exception_descriptor): Don't forward-declare.
17513         (__get_eh_table_language, __get_eh_table_version): Delete
17514         prototypes of long-dead functions.
17515
17516 2007-04-01  Daniel Berlin  <dberlin@dberlin.org>
17517
17518         * ebitmap.h: New file
17519         * ebitmap.c: New file
17520         * Makefile.in (ebitmap.o): New target.
17521
17522 2007-04-01  Jan Hubicka  <jh@suse.cz>
17523
17524         * emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit
17525         before very first instruction.
17526
17527 2007-04-01  Jan Hubicka  <jh@suse.cz>
17528
17529         * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
17530         waring on 64bit hosts.
17531         * bitmap.h: Fix typo in bitmap_head_def.
17532
17533 2007-04-01  Steven Bosscher  <steven@gcc.gnu.org>
17534
17535         PR rtl-optimization/31391
17536         * cfgcleanup.c (try_optimize_cfg): If a removed label is turned
17537         into a DELETED_LABEL note, and the label is in an empty basic
17538         block, update BB_END as well as BB_HEAD.
17539
17540 2007-04-01  Richard Henderson  <rth@redhat.com>
17541
17542         PR tree-optimization/31169
17543         * tree-vrp.c (extract_range_from_binary_expr) <RSHIFT_EXPR>: Drop
17544         to varying if the range is outside [0,  prec-1].
17545
17546 2007-04-01  Richard Sandiford  <richard@codesourcery.com>
17547
17548         PR target/31388
17549         * config/mips/mips.md (load_const_gp): New insn.
17550         * config/mips/mips.c (mips_split_symbol): Avoid using or creating
17551         the MIPS16 GP pseudo register if no_new_pseudos.
17552         (mips16_gp_pseudo_reg): Use gen_load_const_gp.
17553
17554 2007-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17555
17556         PR target/31364
17557         * config/rs6000/rs6000.md (call): Convert to LR hard reg for
17558         secureplt.
17559         (call_value): Likewise.
17560
17561 2007-03-31  Wolfgang Bangerth  <bangerth@dealii.org>
17562             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17563
17564         PR 14737
17565         * doc/invoke.texi: (optimization options): Reword description
17566         of -ffast-math. Document its primary purpose.
17567
17568 2007-03-31  Richard Guenther  <rguenther@suse.de>
17569
17570         * omp-low.c (splay-tree.h): Include.
17571         (lookup_decl): Replace splay-tree usage by pointer-map.
17572         (maybe_lookup_decl): Likewise.
17573         (new_omp_context): Likewise.
17574         (delete_omp_context): Likewise.
17575         * gimplify.c (splay-tree.h): Include.
17576         * tree-inline.c (insert_decl_map): Replace splay-tree usage by
17577         pointer-map.
17578         (remap_ssa_name): Likewise.
17579         (remap_decl): Likewise.
17580         (remap_type_1): Likewise.
17581         (remap_type): Likewise.
17582         (copy_body_r): Likewise.
17583         (expand_call_inline): Likewise.
17584         (clone_body): Likewise.
17585         (copy_tree_r): Likewise.
17586         (remap_save_expr): Likewise.
17587         (unsave_r): Likewise.
17588         (unsave_expr_now): Likewise.
17589         (tree_function_versioning): Likewise.
17590         (build_duplicate_type): Likewise.
17591         * tree-inline.h (pointer-set.h): Include instead of splay-tree.h.
17592         (struct copy_body_data): Replace splay-tree by pointer-map.
17593         * Makefile.in (TREE_INLINE_H): Depend on pointer-map.h,
17594         not $(SPLAY_TREE_H).
17595         (gimplify.o): Depend on $(SPLAY_TREE_H).
17596         (omp-low.p): Likewise.
17597
17598 2007-03-31  Anatoly Sokolov <aesok@post.ru>
17599
17600         * config/avr/predicates.md (even_register_operand,
17601         odd_register_operand): New predicates.
17602         * config/avr/avr.md (movw peephole2): New.
17603         (movw_r peephole2): New.
17604
17605 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
17606
17607         * tree.h (get_signed_or_unsigned_type): New.
17608         * fold-const.c (operand_equal_for_comparison_p): Use
17609         get_signed_or_unsigned_type instead of
17610         lang_hooks.types.signed_or_unsigned_type.
17611         * expr.c (store_expr): Ditto.
17612         * langhooks.c (get_signed_or_unsigned_type): New.
17613         (lhd_signed_or_unsigned_type): New.
17614         * langhooks.h (lhd_signed_or_unsigned_type): New.
17615         * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
17616
17617 2007-03-30  Richard Henderson  <rth@redhat.com>
17618
17619         * tree-ssa-loop-ivopts.c: Include target.h.
17620         (produce_memory_decl_rtl): Pass the rtx through encode_section_info.
17621         (get_address_cost): Force SYMBOL_FLAG_LOCAL set.
17622         (force_expr_to_var_cost): Use produce_memory_decl_rtl.
17623         * Makefile.in (tree-ssa-loop-ivopts.o): Depend on TARGET_H.
17624
17625 2007-03-30  Richard Henderson  <rth@redhat.com>
17626             Kai Tietz  <kai.tietz@onevision.com>
17627
17628         * config/i386/cygming.h (DWARF2_DEBUGGING_INFO): Enable by
17629         default for 64-bit.
17630         (PREFERRED_DEBUGGING_TYPE): Prefer dwarf2 for 64-bit.
17631         (TARGET_64BIT_MS_ABI): New.
17632         (DBX_REGISTER_NUMBER): Handle 64-bit.
17633         (SIZE_TYPE, PTRDIFF_TYPE): Use long long for 64-bit.
17634         (LONG_TYPE_SIZE): Force to 32.
17635         (REG_PARM_STACK_SPACE): New.
17636         (OUTGOING_REG_PARM_STACK_SPACE): New.
17637         (REGPARM_MAX, SSE_REGPARM_MAX): New.
17638         (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
17639         (STACK_BOUNDARY): Use 128 for 64-bit.
17640         * config/i386/cygwin.asm: Use push/ret to preserve call stack.
17641         Add 64-bit implementation.
17642         * config/i386/gthr-win32.c (__gthr_win32_key_create): Mark dtor
17643         argument unused.
17644         * config/i386/i386.c (x86_64_ms_abi_int_parameter_registers): New.
17645         (override_options): Set ix86_cmodel for TARGET_64BIT_MS_ABI.
17646         Warn for -mregparm, -mrtd in 64-bit mode; force ix86_regparm
17647         for 64-bit; use TARGET_SUBTARGET64_DEFAULT.
17648         (ix86_handle_cconv_attribute): Don't warn when ignoring if
17649         TARGET_64BIT_MS_ABI.
17650         (ix86_function_arg_regno_p): Handle TARGET_64BIT_MS_ABI.
17651         (ix86_pass_by_reference): Likewise.
17652         (ix86_function_value_regno_p): Likewise.
17653         (ix86_build_builtin_va_list): Likewise.
17654         (ix86_va_start, ix86_gimplify_va_arg): Likewise.
17655         (function_arg_advance_ms_64): New.
17656         (function_arg_advance): Call it.
17657         (function_arg_ms_64): New.
17658         (function_arg): Call it.
17659         (function_value_ms_64): New.
17660         (ix86_function_value_1): Call it.
17661         (return_in_memory_ms_64): New.
17662         (ix86_return_in_memory): Call it.
17663         (setup_incoming_varargs_ms_64): New.
17664         (ix86_setup_incoming_varargs): Call it.
17665         (ix86_expand_prologue): Handle 64-bit stack probing.
17666         (legitimize_pic_address): Handle TARGET_64BIT_MS_ABI.
17667         (output_pic_addr_const): Likewise.
17668         (x86_this_parameter): Likewise.
17669         (x86_output_mi_thunk): Likewise.
17670         (x86_function_profiler): Likewise.
17671         (TARGET_STRICT_ARGUMENT_NAMING): New.
17672         * config/i386/i386.h (TARGET_SUBTARGET64_DEFAULT): New.
17673         (TARGET_64BIT_MS_ABI): New.
17674         (CONDITIONAL_REGISTER_USAGE): Handle TARGET_64BIT_MS_ABI.
17675         * config/i386/i386.md (allocate_stack_worker): Remove.
17676         (allocate_stack_worker_32): Rename from allocate_stack_worker_1;
17677         describe the clobber of eax without a match_scratch.
17678         (allocate_stack_worker_postreload): Remove.
17679         (allocate_stack_worker_64): Rename from allocate_stack_worker_rex64;
17680         describe the clobbers of rax, r10, r11 properly; use __chkstk symbol.
17681         (allocate_stack_worker_rex64_postreload): Remove.
17682         (allocate_stack): Handle 64-bit.
17683         * config/i386/i386elf (TARGET_SUBTARGET_DEFAULT): Remove.
17684         * config/i386/mingw32.h (TARGET_VERSION): Set correctly for 64-bit.
17685         (EXTRA_OS_CPP_BUILTINS): Handle 64-bit.
17686         (STANDARD_INCLUDE_DIR): Handle TARGET_64BIT_DEFAULT.
17687         (STANDARD_STARTFILE_PREFIX_1): Likewise.
17688         * config/i386/unix.h (TARGET_SUBTARGET64_DEFAULT): New.
17689         * config.build (x86_64-*-mingw*): New host.
17690         * config.host (x86_64-*-mingw*): New host.
17691         * config.gcc (x86_64-*-mingw*): New target.
17692         * gthr-win32.h (__gthread_key_create): Mark dtor unused.
17693
17694 2007-03-30  Richard Henderson  <rth@redhat.com>
17695             Kai Tietz  <kai.tietz@onevision.com>
17696
17697         * c-pragma.c (struct def_pragma_macro_value): New.
17698         (struct def_pragma_macro): New.
17699         (pushed_macro_table): New.
17700         (dpm_hash, dpm_eq): New.
17701         (handle_pragma_push_macro, handle_pragma_pop_macro): New.
17702         (init_pragma): Install them.
17703         * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
17704
17705 2007-03-30  Anatoly Sokolov <aesok@post.ru>
17706
17707         * config/avr/avr.c (avr_override_options): Clear
17708         'flag_delete_null_pointer_checks'.
17709
17710 2007-03-30  Paolo Carlini  <pcarlini@suse.de>
17711
17712         PR c++/26099
17713         * c-common.h (enum rid): Add RID_HAS_NOTHROW_ASSIGN,
17714         RID_HAS_NOTHROW_CONSTRUCTOR, RID_HAS_NOTHROW_COPY,
17715         RID_HAS_TRIVIAL_ASSIGN, RID_HAS_TRIVIAL_CONSTRUCTOR,
17716         RID_HAS_TRIVIAL_COPY, RID_HAS_TRIVIAL_DESTRUCTOR,
17717         RID_HAS_VIRTUAL_DESTRUCTOR, RID_IS_ABSTRACT, RID_IS_BASE_OF,
17718         RID_IS_CONVERTIBLE_TO, RID_IS_CLASS, RID_IS_EMPTY, RID_IS_ENUM,
17719         RID_IS_POD, RID_IS_POLYMORPHIC, RID_IS_UNION, as
17720         C++ extensions.
17721         * doc/extend.texi (Extensions to the C++ Language): Add Type Traits.
17722
17723 2007-03-30  Steven Bosscher  <steven@gcc.gnu.org>
17724
17725         * regmove.c: Move all of pass_stack_adjustments from here...
17726         * combine-stack-adj.c: ...to this new file.
17727         * Makefile.in: Add rules for combine-stack-adj.o.
17728
17729 2007-03-30  Zdenek Dvorak  <dvorakz@suse.cz>
17730
17731         PR tree-optimization/31383
17732         * tree-data-ref.c (affine_function_equal_p): Do not require the
17733         vectors to have the same length.
17734
17735 2007-03-30  Jan Hubicka  <jh@suse.cz>
17736
17737         PR middle-end/30700
17738         * dwarf2out.c (reference_to_unused): Ask cgraph for functions
17739         availablility; add more sanity checking; ask varpool only about
17740         VAR_DECL.
17741
17742 2007-03-29  Richard Henderson  <rth@redhat.com>
17743
17744         * unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
17745         to decide, but __SIZEOF_LONG_LONG__.
17746
17747 2007-03-29  Richard Henderson  <rth@redhat.com>
17748
17749         * emutls.c (struct __emutls_array): New.
17750         (emutls_destroy): Use it instead of casting element 0 from void*.
17751         (__emutls_get_address): Likewise.
17752
17753 2007-03-29  Richard Henderson  <rth@redhat.com>
17754
17755         * varasm.c (initializer_constant_valid_p): Don't deny
17756         DECL_DLLIMPORT_P on functions.
17757
17758         * config/i386/cygming.h: Remove function declarations.
17759         (SUBTARGET_ENCODE_SECTION_INFO): Don't undef first.
17760         (ASM_OUTPUT_LABELREF): Remove.
17761         (COMMON_ASM_OP): Remove.
17762         (ASM_OUTPUT_COMMON): Remove.
17763         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
17764         (ASM_DECLARE_OBJECT_NAME): Use i386_pe_maybe_record_exported_symbol.
17765         (ASM_DECLARE_FUNCTION_NAME): Likewise.
17766         * config/i386/i386-interix.h (SUBTARGET_ENCODE_SECTION_INFO):
17767         Rename from TARGET_ENCODE_SECTION_INFO.
17768         * config/i386/netware.h: Likewise.
17769         * config/i386/i386-protos.h: Update.
17770         * config/i386/i386.c (ix86_function_ok_for_sibcall): Turn ifdef
17771         of TARGET_DLLIMPORT_DECL_ATTRIBUTES into straight if.
17772         (legitimate_constant_p): Reject dllimports.
17773         (dllimport_map, get_dllimport_decl): New.
17774         (legitimize_dllimport_symbol): New.
17775         (legitimize_address, ix86_expand_move): Use it.
17776         (TARGET_BINDS_LOCAL_P): Redefine for TARGET_DLLIMPORT_DECL_ATTRIBUTES.
17777         * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Remove.
17778         (SYMBOL_FLAG_DLLIMPORT, SYMBOL_REF_DLLIMPORT_P): New.
17779         (SYMBOL_FLAG_DLLEXPORT, SYMBOL_REF_DLLEXPORT_P): New.
17780         * config/i386/predicates.md (constant_call_address_operand): Only
17781         accept symbols; reject dllimport_p symbols.
17782         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Use
17783         i386_pe_maybe_record_exported_symbol.
17784         * config/i386/winnt.c (DLL_IMPORT_PREFIX, DLL_EXPORT_PREFIX): Remove.
17785         (i386_pe_determine_dllexport_p): Rename from i386_pe_dllexport_p.
17786         (i386_pe_determine_dllimport_p): Rename from i386_pe_dllimport_p;
17787         trust the setting of DECL_DLLIMPORT_P.
17788         (i386_pe_dllexport_name_p, i386_pe_dllimport_name_p): Remove.
17789         (i386_pe_mark_dllexport, i386_pe_mark_dllimport): Remove.
17790         (gen_stdcall_or_fastcall_suffix): Return NULL if no change required;
17791         tidy the argument scanning loop.
17792         (i386_pe_encode_section_info): Set SYMBOL_FLAG_DLLIMPORT and
17793         SYMBOL_FLAG_DLLEXPORT in SYMBOL_REF_FLAGS.
17794         (i386_pe_strip_name_encoding): Remove.
17795         (i386_pe_binds_local_p): New.
17796         (i386_pe_strip_name_encoding_full): Use default_strip_name_encoding.
17797         (i386_pe_output_labelref): Remove.
17798         (i386_pe_asm_output_aligned_decl_common): New.
17799         (i386_pe_maybe_record_exported_symbol): Rename from
17800         i386_pe_record_exported_symbol; check for dllexported symbols.
17801
17802 2007-03-29  Zack Weinberg  <zack@mrtock.ucsd.edu>
17803
17804         * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
17805         add comment explaining why vsnprintf cannot be used.
17806
17807 2007-03-29  Douglas Gregor  <doug.gregor@gmail.com>
17808
17809         PR tree-optimization/30666
17810         * tree.c (build_complex_type): When creating type names for DWARF2
17811         debug info, create TYPE_DECLs for TYPE_NAME instead of
17812         IDENTIFIER_NODEs.
17813         (build_common_tree_nodes_2): Use build_complex_type when building
17814         predefined complex types, to preserve canonical types.
17815
17816 2007-03-29  Steven Bosscher  <steven@gcc.gnu.org>
17817
17818         * ifcvt.c (struct noce_if_info): Add then_else_reversed field.
17819         (noce_get_alt_condition): Look at it to determine whether to
17820         reverse the condition or not.
17821         (noce_get_condition): Substitute the truth for lies.
17822         (noce_find_if_block): Set the then_else_reversed field.
17823
17824 2007-03-29  Lars Poeschel <larsi@wh2.tu-dresden.de>
17825
17826         * config/fr30/fr30.md (movdi): Do not accept immediates as the
17827         destination of this insn.
17828         * config/fr30/fr30.c (fr30_move_double): Use emit_move_insn rather
17829         than calling gen_rtx_SET directly.  Use r0 to hold the value of
17830         'address + 4' rather than a stack based temporary which can be
17831         mis-optimized away.
17832
17833 2007-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
17834
17835         * config/s390/s390.c (s390_secondary_input_reload_class,
17836         s390_secondary_output_reload_class): Functions removed.
17837         (s390_secondary_reload): New function.
17838         (TARGET_SECONDARY_RELOAD): Target macro defined.
17839         * config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS,
17840         SECONDARY_OUTPUT_RELOAD_CLASS): Macro definitions removed.
17841         * config/s390/s390.md ("reload_outti", "reload_outdi",
17842         "reload_indi", "reload_insi", "reload_out<mode>", "reload_in<mode>",
17843         "reload_out<mode>"): Expanders removed.
17844         ("reload<mode>_plus", "reload<mode>_nonoffmem_in",
17845         "reload<mode>_nonoffmem_out"): Expanders added.
17846
17847 2007-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
17848
17849         * regmove.c (optimize_reg_copy_1): Don't perform DEST->SRC repair
17850         action if SRC->DEST replacement failed anyway.
17851
17852 2007-03-28  Mike Stump  <mrs@apple.com>
17853
17854         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
17855         * config/darwin.h (MAX_OFILE_ALIGNMENT): Fix.
17856         * config/rs6000/darwin.h (ASM_OUTPUT_ALIGNED_COMMON): Removed #undef.
17857
17858 2007-03-28  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
17859
17860         * config.gcc: Accept barcelona as a variant of amdfam10.
17861         * config/i386/i386.c (override_options): Likewise.
17862         * doc/invoke.texi: Likewise.
17863
17864 2007-03-28  Eric Botcazou  <ebotcazou@adacore.com>
17865
17866         * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
17867         offsets for BIT_FIELD_REF and COMPONENT_REF.
17868
17869 2007-03-28  Richard Guenther  <rguenther@suse.de>
17870
17871         * tree.c (is_global_var): Move ...
17872         * tree-flow-inline.h (is_global_var): ... here.
17873         * tree.h (is_global_var): Remove declaration.
17874
17875 2007-03-28  Uros Bizjak  <ubizjak@gmail.com>
17876
17877         * config/i386/i386.h (X86_TUNE_PROMOTE_HIMODE_IMUL): New tuning
17878         option.
17879         (TARGET_TUNE_PROMOTE_HIMODE_IMUL): New define. Use new tuning option.
17880         * config/i386/i386.c (ix86_tune_features): Initialize new
17881         tuning option.
17882         * config/i386/predicates.md (promotable_binary_operator): Use
17883         TARGET_TUNE_PROMOTE_HIMODE_IMUL.
17884
17885 2007-03-28  Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
17886
17887         PR target/31380
17888         * config/i386/sse.md (uminv16qi3): Use UMIN instead of UMAX.
17889
17890 2007-03-28  Lars Poeschel <larsi@wh2.tu-dresden.de>
17891
17892         * config/fr30/fr30.md (movsi_internal): Change destination
17893         constraint from m to V and add m to the end.
17894
17895 2007-03-28  Christian Bruel  <christian.bruel@st.com>
17896
17897         * config/sh/sh.md (movsi_i): Fix type attribute.
17898
17899 2007-03-28  Christian Bruel  <christian.bruel@st.com>
17900
17901         * config/sh/sh.md (movsi_ie): Fix memory constraints attribute length.
17902         (movsf_ie): Likewise.
17903
17904 2007-03-28  Christian Bruel  <christian.bruel@st.com>
17905
17906         * config.gcc: Add sh4-300 to multilib.
17907         * config/sh/t-mlib-sh4-300: New file.
17908
17909 2007-03-28  Andreas Krebbel  <krebbel1@de.ibm.com>
17910
17911         * config/s390/s390.md ("fix_trunc<mode>di2"): New expander.
17912         ("fix_trunc<DFP:mode>di2_dfp"): New insn definition renamed from
17913         fix_trunc<mode>di2.
17914         ("fixuns_truncdddi2", "fixuns_trunctddi2"): Use
17915         fix_trunc<DFP:mode>di2_dfp instead of fix_trunc<mode>di2.
17916         ("fix_truncdfsi2", "fix_truncsfsi2", "fixuns_truncdddi2",
17917         "fixuns_trunctddi2"): Whitespace fix.
17918
17919 2007-03-28  Kaz Kojima  <kkojima@gcc.gnu.org>
17920
17921         * config/sh/sh.h (CALL_COOKIE_RET_TRAMP_SHIFT): Move after
17922         the definition of struct sh_args.
17923         (CALL_COOKIE_RET_TRAMP, CALL_COOKIE_STACKSEQ_SHIFT,
17924         CALL_COOKIE_INT_REG_GET): Likewise.
17925
17926 2007-03-28  Steven Bosscher  <steven@gcc.gnu.org>
17927
17928         * ifcvt.c (cond_exec_find_if_block): Return FALSE if no
17929         transformations are applied successfully.
17930
17931 2007-03-27  Douglas Gregor  <doug.gregor@gmail.com>
17932
17933         * tree.c (tree_contains_struct): Permit 512 tree codes.
17934         * tree.h (tree_contains_struct): Ditto.
17935         (MAX_TREE_CODES): Ditto.
17936         (struct tree_base): Make CODE 16 bits, instead of 8 bits. Add
17937         SPARE member to store remaining padding bits.
17938
17939 2007-03-27  Anatoly Sokolov <aesok@post.ru>
17940
17941         * config/avr/avr.c (avr_mcu_types): Move at90usb82 device to 'avr4'
17942         architecture.
17943
17944 2007-03-27  Janis Johnson  <janis187@us.ibm.com>
17945
17946         * configure.ac: Fix assembler test for powerpc*-linux decimal float.
17947         * configure: Regenerate.
17948
17949         * configure: Regenerate using the correct version of autoconf.
17950
17951 2007-03-27  Anatoly Sokolov  <aesok@post.ru>
17952
17953         * config/avr/avr.c (avr_hard_regno_mode_ok): Disallow QImode in stack
17954         pointer regs.
17955         * config/avr/avr.h (REGISTER_NAMES): Rename "__SPL__" and "__SPH__"
17956         regs to "__SP_L__" and "__SP_H__".
17957
17958 2007-03-27  Richard Guenther  <rguenther@suse.de>
17959
17960         * tree-dfa.c (get_ref_base_and_extent): Replace bit_offset and
17961         computations with it with a HOST_WIDE_INT variable.
17962
17963 2007-03-26  Mike Stump  <mrs@apple.com>
17964
17965         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Add
17966         objective-c-header, objective-c++-header and objc++-cpp-output
17967         support.
17968         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
17969
17970 2007-03-26  Richard Henderson  <rth@redhat.com>
17971
17972         PR target/31361
17973         * config/i386/i386.c (IX86_BUILTIN_PSLLDQ128, IX86_BUILTIN_PSLLW128,
17974         IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128, IX86_BUILTIN_PSRAW128,
17975         IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128, IX86_BUILTIN_PSRLD128,
17976         IX86_BUILTIN_PSRLQ128): New.
17977         (ix86_init_mmx_sse_builtins): Add them.
17978         (ix86_expand_builtin): Expand them.
17979         * config/i386/sse.md (ashr<mode>3, lshr<mode>3, ashl<mode>3): Make
17980         operand 2 be TImode.
17981         * config/i386/emmintrin.h (_mm_slli_epi64, _mm_srai_epi16,
17982         _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
17983         _mm_srli_epi64): Mark __B const.
17984         (_mm_srli_si128, _mm_srli_si128): Fix disabled inline versions.
17985         (_mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64, _mm_sra_epi16,
17986         _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32, _mm_srl_epi64): Use
17987         new two-vector shift builtins.
17988
17989 2007-03-26  Ian Lance Taylor  <iant@google.com>
17990
17991         PR tree-optimization/31345
17992         * tree-vrp.c (extract_range_from_binary_expr): Turn ranges like
17993         [+INF, +INF(OVF)] into VARYING.
17994
17995 2007-03-26  Zack Weinberg  <zackw@panix.com>
17996
17997         * gengtype-parse.c: New file.
17998         * gengtype-yacc.y: Delete.
17999         * gengtype-lex.l: Don't include gengtype-yacc.h.
18000         Define YY_DECL and yyterminate appropriately for recursive
18001         descent parser.  yylval is now a string out-parameter to yylex.
18002         (HWS, EOID): New shorthand.
18003         (IWORD): Add a couple more types.
18004         (yylex): Add a setup stanza.  Remove the complex rules for
18005         detecting GTY'ed types and typedefs; replace with simple
18006         keyword detectors.  Adjust everything for the changed
18007         definition of yylval.  Ignore all pp-directives, not just #define.
18008         (yyerror): Delete.
18009         (parse_file): Rename yybegin; do not call yyparse.
18010         (yyend): New.
18011         * gengtype.c (xasprintf): Export again.
18012         (this_file): New.  Use everywhere __FILE__ was being used.
18013         (get_lang_bitmap): Special case types defined in gengtype.c.
18014         (do_typedef, new_structure): Suppress definition of certain types.
18015         (new_structure): Improve diagnostics of duplicate definitions.
18016         Make sure location_s is associated with input.h.
18017         (nreverse_pairs, define_location_structures): New functions.
18018         (main): Improve tagging of kludge types.  Remove old kludges
18019         for input.h types; use define_location_structures.
18020         * gengtype.h: Update prototypes.  Define token codes here.
18021         * Makefile.in: Remove all references to gengtype-yacc.
18022         Add rules for gengtype-parse.o.  Adjust rules for gengtype-lex.o
18023         and gengtype.
18024         * bitmap.h (struct bitmap_head_def): Coalesce definitions,
18025         add GTY((skip)) to the field that's only conditionally there.
18026         * doc/install.texi: Document that Bison is no longer required
18027         unless building treelang.
18028
18029         * gengtype.c: Don't include gtyp-gen.h.
18030         (srcdir): Declare here.
18031         (base_files, lang_dir_names): Allocate dynamically.
18032         (gt_files, num_gt_files, num_lang_dirs): New globals.
18033         (measure_input_list, read_input_line, read_input_list)
18034         (set_lang_bitmap): New functions.
18035         (get_base_file_bitmap): Rename get_lang_bitmap and drastically
18036         simplify, relying on read_input_list to set up the bitmaps.
18037         (main): Arguments are no longer unused.  Check for correct number
18038         of command line arguments, set srcdir and srcdir_len, then call
18039         read_input_list, before doing anything else.  No need to worry
18040         about duplicates in main loop.
18041         * configure.ac: Simplify the calculation of all_gtfiles.
18042         Put language tags in there.  Don't set or substitute
18043         all_gtfiles_files_langs or all_gtfiles_files_frags.
18044         * Makefile.in: Revamp the way gengtype is invoked, now that it
18045         takes a file on its command line with a much simpler format.
18046         Remove or replace with gtyp-input.list all references to gtyp-gen.h.
18047         (GTFILES): Remove duplicates and C source files.
18048         * c-config-lang.in, cp/config-lang.in, objc/config-lang.in
18049         * objcp/config-lang.in: Add c-pragma.h to gtfiles.
18050         * configure: Regenerate.
18051
18052         * gengtype.h: Remove all type definitions to gengtype.c; leave
18053         only definitions of options_p, type_p, and pair_p as opaque
18054         pointers.  Update prototypes.
18055         * gengtype.c: Many type definitions moved here from gengtype.h.
18056         Consolidate type definitions at the top of the file.
18057         (xvasprintf): Delete.
18058         (xasprintf): Make static.
18059         (create_nested_pointer_option): Add 'next' parameter.
18060         (create_field_all, create_field_at): New functions.
18061         (create_field): Now a thin wrapper around create_field_all.
18062         (create_optional_field): Rename create_optional_field_ and add
18063         line argument.  Original name is now a macro which supplies
18064         __LINE__.
18065         (oprintf): Use vsnprintf directly.
18066         (close_output_files): Use fatal rather than perror/exit.
18067         (note_def_vec, note_def_vec_alloc): Use create_field_at.
18068         (main): Set progname.  Don't use exit.
18069         * gengtype-yacc.y (struct_fields): Use create_field_at.
18070         (option, optionseqopt): Delete.
18071         (optionseq): Consolidate productions from option here so we
18072         can use the first argument to create_option.
18073
18074         * gengtype-lex.l: Distinguish unions from structures in the
18075         token type.  Don't call find_structure; return the tag as a string.
18076         * gengtype-yacc.y: Add new token types ENT_TYPEDEF_UNION and
18077         ENT_UNION.  Type of these, ENT_TYPEDEF_STRUCT, and ENT_STRUCT is
18078         string.  Reorganize typedef_struct production accordingly.
18079         Use create_nested_ptr_option.
18080         * gengtype.c (create_nested_ptr_option): New function.
18081         * gengtype.h: Declare it.
18082
18083         * gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
18084         (string_type): Don't declare.
18085         (do_scalar_typedef): Declare.
18086         (create_scalar_type): Update prototype.
18087         * gengtype.c (string_type): Make static.
18088         (scalar_nonchar, scalar_char): New.
18089         (do_scalar_typedef): Export.  Always use scalar_nonchar for the type.
18090         (resolve_typedef): Use scalar_nonchar for error recovery.
18091         (create_scalar_type): Remove name_len field.  Return scalar_char
18092         or scalar_nonchar as appropriate.
18093         (adjust_field_type): Look at scalar_is_char boolean to decide whether
18094         to use string_type.
18095         (throughout): Use scalar_nonchar instead of calling
18096         create_scalar_type, whenever possible.
18097         (main): Initialize scalar_char and scalar_nonchar before calling
18098         gen_rtx_next.
18099         * gengtype-lex.l: Adjust for removal of second argument to
18100         create_scalar_type.  Use yylval.s instead of yylval.t when
18101         returning SCALAR.
18102         * gengtype-yacc.y: Type of SCALAR is string.  Call
18103         create_scalar_type from type:SCALAR rule.  Adjust for removal of
18104         second argument to create_scalar_type.
18105
18106         * vec.h: Remove all #if IN_GENGTYPE blocks.
18107         Add comment saying that changes may require adjustments to gengtype.
18108         * gengtype.c: Don't include coretypes.h or tm.h.
18109         Add comment to inclusion of errors.h.
18110         (note_def_vec, note_def_vec_alloc): New functions.
18111         * gengtype.h: Declare new functions.
18112         * gengtype-lex.l: Don't include coretypes.h.
18113         (YY_INPUT, macro_input, push_macro_expansion, mangle_macro_name):
18114         Delete.
18115         (update_lineno): Remove unnecessary prototype.
18116         (DEF_VEC_* rules): Simplify using note_def_vec / note_def_vec_alloc.
18117         (VEC rule): Just return VEC_TOKEN.
18118         * gengtype-yacc.y (VEC_TOKEN): New token type.
18119         (type): Add a production for VEC(a,b).
18120         * Makefile.in: Update dependencies.
18121
18122         * gengtype-lex.l: Remove rules for parsing pointer-to-function
18123         typedefs that use the old PARAMS macro.
18124
18125         * gengtype-lex.l: Remove all rules and states relating to yacc
18126         input files.
18127         * gengtype-yacc.y: Similarly.
18128         * gengtype.c (note_yacc_type): Delete function.
18129         * gengtype.h: Update prototypes.
18130
18131 2007-03-26  Joseph Myers  <joseph@codesourcery.com>
18132
18133         * tree-pretty-print.c (dump_generic_node): Report precision of
18134         unnamed integer types.
18135
18136 2007-03-26  Steven Bosscher  <steven@gcc.gnu.org>
18137
18138         * ifcvt.c (noce_try_store_flag_constants): Don't check
18139         no_new_pseudos here.
18140         (noce_try_store_flag_constants): Don't check no_new_pseudos.
18141         (noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove_arith,
18142         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
18143         noce_try_sign_mask): Likewise.
18144         (if_convert): Check no_new_pseudos here.
18145
18146         (cond_exec_process_if_block, noce_process_if_block, find_if_block):
18147         Remove prototypes.
18148         (struct noce_if_info): Add then_bb, else_bb, join_bb members.
18149         (noce_get_condition): Handle new then_else_reversed argument.
18150         (noce_init_if_info): Remove, fold into noce_find_if_block.
18151         (noce_process_if_block): Take a struct noce_if_info as the
18152         argument.  Don't set up one based on ce_if_info.  Update pointer
18153         references accordingly.
18154         (cond_move_process_if_block): Likewise.
18155         (process_if_block): Removed.
18156         (find_if_block): Removed.  Move functionality two new functions,
18157         noce_find_if_block and cond_exec_find_if_block.
18158         (noce_find_if_block): New function.  Be aware of IF-THEN-JOIN
18159         blocks and the symmetric IF-ELSE-JOIN case.
18160         (cond_exec_find_if_block): Also new function mostly based on old
18161         find_if_block and process_if_block.
18162         (find_if_header): Replace find_if_block call with separately
18163         guarded calls to noce_find_if_block and cond_exec_find_if_block.
18164         (find_cond_trap): Update noce_get_condition call.
18165         (dead_or_predicable): Likewise.
18166
18167 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
18168
18169         * config/i386/i386.c (IX86_BUILTIN_CMPNEPD, IX86_BUILTIN_CMPNESD):
18170         Remove.
18171         (IX86_BUILTIN_PSLLW128, IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128,
18172         IX86_BUILTIN_PSRAW128, IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128,
18173         IX86_BUILTIN_PSRLD128, IX86_BUILTIN_PSRLQ128): Remove.
18174         (ix86_init_mmx_sse_builtins): Remove v8hi_ftype_v8hi_v2di and
18175         v4si_ftype_v4si_v2di.  Remove __builtin_ia32_psllw128,
18176         __builtin_ia32_pslld128, __builtin_ia32_psllq128,
18177         __builtin_ia32_psrlw128, __builtin_ia32_psrld128,
18178         __builtin_ia32_psrlq128, __builtin_ia32_psraw128 and
18179         __builtin_ia32_psrad128 builtins.
18180
18181 2007-03-26  Uros Bizjak  <ubizjak@gmail.com>
18182
18183         * reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
18184         * config/i386/constraints.md
18185         (define_constraint "I"): Use IN_RANGE macro.
18186         (define_constraint "J"): Ditto.
18187         (define_constraint "K"): Ditto.
18188         (define_constraint "M"): Ditto.
18189         (define_constraint "N"): Ditto.
18190         (define_constraint "O"): Ditto.
18191         * config/i386/predicates.md
18192         (define_predicate "register_no_elim_operand"): Use IN_RANGE macro.
18193         (define_predicate "const_0_to_3_operand"): Ditto.
18194         (define_predicate "const_0_to_7_operand"): Ditto.
18195         (define_predicate "const_0_to_15_operand"): Ditto.
18196         (define_predicate "const_0_to_63_operand"): Ditto.
18197         (define_predicate "const_0_to_255_operand"): Ditto.
18198         (define_predicate "const_1_to_31_operand"): Ditto.
18199         (define_predicate "const_2_to_3_operand"): Ditto.
18200         (define_predicate "const_4_to_7_operand"): Ditto.
18201
18202 2007-03-25  David Edelsohn  <edelsohn@gnu.org>
18203
18204         * config/rs6000/rs6000.c (rs6000_emit_prologue): Always clobber LR
18205         in SImode for save_world.
18206         * config/rs6000/altivec.md (save_world, restore_world): Convert to
18207         LR hard reg.
18208
18209 2007-03-25  Dorit Nuzman  <dorit@il.ibm.com>
18210
18211         PR tree-optimization/30784
18212         * fold-const.c (fold_ternary): Handle CONSTRUCTOR in case
18213         BIT_FIELD_REF.
18214
18215 2007-03-25  Revital Eres  <eres@il.ibm.com>
18216
18217         * tree-if-conv.c (if_convertible_gimple_modify_stmt_p):
18218           Fold movement_possibility function into it.
18219
18220 2007-03-25  David Edelsohn  <edelsohn@gnu.org>
18221
18222         * config/rs6000/darwin.md (load_macho_picbase): Ignore operand 0.
18223         (load_macho_picbase_{si,di}): Convert to LR hard reg.
18224         (call_indirect_nonlocal_darwin64): Same.
18225         (call_nonlocal_darwin64): Same.
18226         (call_value_indirect_nonlocal_darwin64): Same.
18227         (call_value_nonlocal_darwin64): Same.
18228         (sibcall_nonlocal_darwin64): Same.
18229         (sibcall_value_nonlocal_darwin64): Same.
18230         (sibcall_symbolic_64): Same.
18231         (sibcall_value_symbolic_64): Same.
18232         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
18233         LR pseudo.
18234         (rs6000_emit_load_toc_table): Same.
18235         * config/rs6000/altivec.md (restore_world): Convert to LR hard reg.
18236         * config/rs6000/rs6000.md (mulh_call): Convert to LR hard reg.
18237         (mull_call): Same.
18238         (divss_call): Same.
18239         (divus_call): Same.
18240         (quoss_call): Same.
18241         (quous_call): Same.
18242         (load_toc_v4_pic_si): Same
18243         (load_toc_v4_PIC_1): Same.
18244         (load_toc_v4_PIC_1b): Same.
18245         (call_indirect_aix{32,64}): Same.
18246         (call_value_indirect_aix{32,64}): Same.
18247         (call): Same.
18248         (call_value): Same.
18249         (call_local{32,64}): Same.
18250         (call_value_local{32,64}): Same.
18251         (call_indirect_nonlocal_aix{32,64}): Same.
18252         (call_nonlocal_aix{32,64}): Same.
18253         (call_value_indirect_nonlocal_aix{32,64}): Same.
18254         (call_value_nonlocal_aix{32,64}): Same.
18255         (call_indirect_nonlocal_sysv<mode>): Same.
18256         (call_nonlocal_sysv<mode>): Same.
18257         (call_value_indirect_nonlocal_sysv<mode>): Same.
18258         (call_value_nonlocal_sysv<mode>): Same.
18259         (sibcall): Same.
18260         (sibcall_local{32,64}): Same.
18261         (sibcall_value_local{32,64}): Same.
18262         (sibcall_nonlocal_aix{32,64}): Same.
18263         (sibcall_value_nonlocal_aix{32,64}): Same.
18264         (sibcall_nonlocal_sysv<mode>): Same.
18265         (sibcall_value): Same.
18266         (sibcall_value_nonlocal_sysv<mode>): Same.
18267
18268 2007-03-24  Paul Brook  <paul@codesourcery.com>
18269
18270         * config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
18271         * config/arm/linux-eabi.h: Remove legacy syscall hack.
18272
18273 2007-03-24  Richard Henderson  <rth@redhat.com>
18274
18275         * config/ia64/constraints.md: New file.
18276         * config/ia64/predicates.md: Replace CONST_OK_FOR_? with
18277         satisfies_constraint_?.
18278         * config/ia64/ia64.c (ia64_move_ok, ia64_legitimate_constant_p,
18279         ia64_reload_gp, spill_restore_mem, ia64_expand_prologue,
18280         ia64_expand_epilogue, ia64_split_return_addr_rtx, ia64_rtx_costs,
18281         ia64_output_mi_thunk): Likewise.
18282         (ia64_const_ok_for_letter_p): Remove.
18283         (ia64_const_double_ok_for_letter_p): Remove.
18284         (ia64_extra_constraint): Remove.
18285         * config/ia64/ia64.h (REG_CLASS_FROM_LETTER): Remove.
18286         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L,
18287         CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O, CONST_OK_FOR_P,
18288         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_G,
18289         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT,
18290         EXTRA_MEMORY_CONSTRAINT): Remove.
18291         * config/ia64/ia64.md: Include constriants.md.  Replace
18292         CONST_OK_FOR_? with satisfies_constraint_?.
18293
18294 2007-03-23  Michael Meissner  <michael.meissner@amd.com>
18295             H.J. Lu  <hongjiu.lu@intel.com>
18296
18297         * config/dfp-bit.h (DPD_BID_NAME): New macro to give either the
18298         DPD or BID name.
18299         (name macros): Use DPD_BID_NAME to convert names properly.
18300
18301         * optabs.c (DECIMAL_PREFIX): Prefix string to use for the current
18302         decimal floating point format.
18303         (init_floating_libfuncs): Change decimal functions so that they
18304         have a "bid_" prefix if the decimal system uses the BID format,
18305         and "dpd_" prefix if the decimal system uses the DPD format.
18306         (init_interclass_conv_libfuncs): Ditto.
18307         (init_intraclass_conv_libfuncs): Ditto.
18308
18309         * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
18310         using the BID format.
18311
18312         * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
18313         whether we are using the BID decimal format.
18314         * configure: Regenerate.
18315
18316         * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
18317         the compiler has decimal floating point enabled.  Define
18318         __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
18319         instead of DPD.
18320
18321         * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
18322         using the BID format.
18323
18324         * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
18325         whether we are using the BID decimal format.
18326         * configure: Regenerate.
18327
18328         * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
18329         the compiler has decimal floating point enabled.  Define
18330         __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
18331         instead of DPD.
18332
18333         * doc/install.texi (--enable-decimal-float): Document BID and DPD
18334         options, and that it is enabled for i386/x86_64 systems.
18335
18336         * Makefile.in (enable_decimal_float): New.
18337         (DECNUMFMT): New.
18338         (DECNUMINC): Add  -I$(DECNUMFMT).
18339         (DECNUM_H): Mov decimal32.h, decimal64.h and decimal128.h
18340         to $(DECNUMFMT) from $(DECNUM).
18341
18342         * configure.ac: Support * --enable-decimal-float={no,yes,bid,dpd}.
18343         Substitute enable_decimal_float.
18344         * configure: Regenerated.
18345
18346         PR other/30529
18347         * config/dfp-bit.c (__dec_byte_swap): Use uint32_t instead of
18348         unsigned long.
18349
18350         * configure.ac: Enable decimal float for x86_64-*-linux*.
18351         * configure: Regenerated.
18352
18353         PR other/30530
18354         * dfp.c (decimal_real_arithmetic): Use decimal128FlipSign and
18355         decimal128ClearSign to flip and clear the sign bit in decimal128.
18356         (decimal_real_maxval): Set decimal128SetSign to set the sign
18357         bit in decimal128.
18358
18359 2007-03-23  Ian Lance Taylor  <iant@google.com>
18360
18361         * fold-const.c (fold_binary): Correct warning for X - c >= X.
18362
18363 2007-03-23  Ian Lance Taylor  <iant@google.com>
18364
18365         * tree-dump.c (dump_files): Correct comment.
18366
18367 2007-03-23  Ian Lance Taylor  <iant@google.com>
18368
18369         * tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
18370
18371 2007-03-23  Steven Bosscher  <steven@gcc.gnu.org>
18372
18373         * tracer.c (tracer): Don't take FLAGS argument.  Assert we are
18374         in cfglayout mode.  Don't go into and out of cfglayout mode.
18375         Link the blocks in the order of the constructed traces.
18376         (rest_of_handle_tracer): Adjust call to tracer.
18377         * loop-init.c (rtl_loop_init): Assert we are in cfglayout mode.
18378         Don't go into cfglayout mode.
18379         (rtl_loop_done): Don't go out of cfglayout mode.
18380         * cfglayout.c (relink_block_chain): New function, split out from...
18381         (fixup_reorder_chain): ...here.  Remove redundant checking.
18382         (cfg_layout_finalize): Don't clear the header, footer, and aux
18383         fields here, move the code to do so to relink_block_chain.  Likewise
18384         for free_original_copy_tables.
18385         * rtl.h (tracer): Update prototype.
18386         * bb-reorder.c (reorder_basic_blocks): Don't take FLAGS argument.
18387         Assert we are in cfglayout mode.  Don't go into and out of cfglayout
18388         mode.  Use relink_block_chain to serialize the CFG according to the
18389         new basic block order.  Move targetm.cannot_modify_jumps_p check from
18390         here...
18391         (gate_handle_reorder_blocks): ...to here.
18392         (duplicate_computed_gotos): Move targetm.cannot_modify_jumps_p check
18393         from here...
18394         (gate_duplicate_computed_gotos): ...to here.
18395         (rest_of_handle_reorder_blocks): Don't see if anything has changed,
18396         something always changes when going into and out of cfglayout mode.
18397         Perform an expensive cfg cleanup while going into cfglayout mode.
18398         Always update liveness information on HAVE_conditional_execution
18399         targets.  Reserialize the basic blocks and go out of cfglayout mode.
18400         * reg-stack.c: Include cfglayout.h.
18401         (rest_of_handle_stack_regs): Go into and out of cfglayout mode around
18402         the call to reorder_basic_blocks.
18403         * basic-block.h (reorder_basic_blocks): Update prototype.
18404         (relink_block_chain): New prototype.
18405         * passes.c (pass_outof_cfg_layout_mode): Move after cse2.
18406
18407 2007-03-23  Joseph Myers  <joseph@codesourcery.com>
18408
18409         * config/mips/mips.md (type, hazard, *movdi_32bit,
18410         *movdi_gp32_fp64, *movdi_64bit, *movsi_internal, movcc,
18411         *movhi_internal, *movqi_internal, *movsf_hardfloat,
18412         *movdf_hardfloat_64bit, *movdf_hardfloat_32bit, *movdf_softfloat,
18413         movv2sf_hardfloat_64bit, load_df_low, load_df_high, store_df_high,
18414         mthc1, mfhc1): Change xfer instruction type to mfc and mtc, as
18415         applicable.
18416         (movcc): Change first xfer to multi.
18417         * config/mips/24k.md, config/mips/4100.md, config/mips/4300.md,
18418         config/mips/5000.md, config/mips/5400.md, config/mips/5500.md,
18419         config/mips/5k.md, config/mips/7000.md, config/mips/9000.md,
18420         config/mips/generic.md: Change reservations using "xfer" to use
18421         "mfc,mtc".
18422         * config/mips/sb1.md (ir_sb1_mtxfer): Use "mtc" instead of
18423         using match_operand.
18424         (ir_sb1_mfxfer): Use "mfc" instead of using match_operand.
18425         * config/mips/sr71k.md (ir_sr70_xfer_from): Use "mfc" instead of
18426         examining mode.
18427         (ir_sr70_xfer_to): Use "mtc" instead of examining mode.
18428
18429 2007-03-22  Richard Henderson  <rth@redhat.com>
18430
18431         * config/i386/i386.c: Remove unnecessary function declarations.
18432         Move targetm definition, and all related macros, to the end of
18433         the file.  Resort some functions to put definitions before uses.
18434         (ix86_attribute_table): Make static.  Move to end of file.
18435         (ix86_gimplify_va_arg): Make static.
18436
18437 2007-03-22  Richard Henderson  <rth@redhat.com>
18438
18439         * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
18440         don't increase local_regparm with force_align_arg_pointer check.
18441         (ix86_function_sseregparm): Assert 32-bit.
18442         (type_has_variadic_args_p): New.
18443         (ix86_return_pops_args): Early exit for 64-bit.  Reindent; use
18444         type_has_variadic_args_p.
18445         (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
18446         (init_cumulative_args): Remove TARGET_DEBUG_ARG.  Remove zero_cum;
18447         use memset instead.  Do maybe_vaarg check first; skip attribute
18448         tests if true; skip attribute tests for 64-bit.
18449         (construct_container): Remove TARGET_DEBUG_ARG.
18450         (function_arg_advance_32, function_arg_advance_64): Split out ...
18451         (function_arg_advance): ... from here.
18452         (function_arg_32, function_arg_64): Split out ...
18453         (function_arg): ... from here.
18454         (ix86_pass_by_reference): Tidy.
18455         (ix86_function_value_regno_p): Rearrange w/ switch on regno.
18456         (function_value_32): New, from parts of ix86_function_value
18457         and ix86_value_regno.
18458         (function_value_64): New, from parts of ix86_function_value
18459         and ix86_libcall_value.
18460         (ix86_function_value_1): New.
18461         (ix86_function_value, ix86_libcall_value): Use it.
18462         (return_in_memory_32, return_in_memory_64): Split out ...
18463         (ix86_return_in_memory): ... from here.
18464         (ix86_struct_value_rtx): Skip for 64-bit.
18465         (ix86_libcall_value, ix86_value_regno): Remove.
18466         (setup_incoming_varargs_64): Split out ...
18467         (ix86_setup_incoming_varargs): ... from here.
18468         (ix86_va_start): Remove TARGET_DEBUG_ARG.
18469         (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
18470         * config/i386/i386-protos.h (ix86_function_value): Remove.
18471         * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.
18472
18473 2007-03-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18474
18475         PR other/23572
18476         * c-lex.c (interpret_float): On overflow, emit pedantic warning if
18477         infinities not supported, otherwise emit warning if -Woverflow. On
18478         underflow, emit warning if -Woverflow.
18479         * real.c (real_from_string): Return -1 if underflow, +1 if overflow
18480         and 0 otherwise.
18481         * real.h (real_from_string): Update declaration
18482
18483 2007-03-22  Kai Tietz  <kai.tietz@onevision.com>
18484             Richard Henderson  <rth@redhat.com>
18485
18486         * defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
18487         * calls.c (compute_argument_block_size, expand_call,
18488         emit_library_call_value_1): Don't ifdef OUTGOING_REG_PARM_STACK_SPACE.
18489         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
18490         * function.c (STACK_DYNAMIC_OFFSET): Likewise.
18491         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Update.
18492         * config/alpha/unicosmk.h, config/bfin/bfin.h, config/iq2000/iq2000.h,
18493         config/mips/mips.h, config/mn10300/mn10300.h, config/mt/mt.h,
18494         config/pa/pa.h, config/rs6000/rs6000.h, config/score/score.h,
18495         config/spu/spu.h, config/v850/v850.h (OUTGOING_REG_PARM_STACK_SPACE):
18496         Set to 1.
18497
18498 2007-03-22  Joseph Myers  <joseph@codesourcery.com>
18499
18500         * c-incpath.c (add_sysroot_to_chain): New.
18501         (merge_include_chains): Add sysroot argument.  Call
18502         add_sysroot_to_chain if sysrooted.
18503         (register_include_chains): Update call to merge_include_chains.
18504         * doc/cppopts.texi: Document use of '=' in include directory
18505         arguments.
18506
18507 2007-03-22  Uros Bizjak  <ubizjak@gmail.com>
18508
18509         * config/i386/i386.md (cmp<mode>): Rename from cmpsf and cmpdf.
18510         Macroize expander using SSEMODEF mode macro.  Use SSE_FLOAT_MODE_P.
18511         (*cmpfp_<mode>): Rename from *cmpfp_sf and *cmpfp_df. Macroize
18512         insn pattern using X87MODEF12 mode macro.
18513
18514 2007-03-21  Seongbae Park <seongbae.park@gmail.com>
18515
18516         * regmove.c (regmove_optimize): Use reg_mentioned_p
18517         instead of reg_overlap_mentioned_p for DST.
18518
18519 2007-03-21  Mike Stump  <mrs@apple.com>
18520
18521         * c.opt: Fixup for Objective-C/C++.
18522
18523 2007-03-21  Steve Ellcey  <sje@cup.hp.com>
18524
18525         * explow.c (convert_memory_address): Fold memory reference when
18526         POINTERS_EXTEND_UNSIGNED < 0
18527
18528 2007-03-21  Richard Henderson  <rth@redhat.com>
18529
18530         PR target/31245
18531         * config/i386/emmintrin.h (__m128i, __m128d): Mark may_alias.
18532         * config/i386/mmintrin.h (__m64): Likewise.
18533         * config/i386/xmmintrin.h (__m128): Likewise.
18534
18535 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
18536
18537         * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
18538         (VXWORKS_OS_CPP_BUILTINS): Define.
18539         * config/i386/vxworks.h (VXWORKS_CPU_DEFINE): Fold into...
18540         (TARGET_OS_CPP_BUILTINS): ...here.  Use VXWORKS_OS_CPP_BUILTINS.
18541
18542 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
18543
18544         * rtl.h (constant_pool_reference_p): Delete.
18545         (find_constant_src): Declare.
18546         * rtlanal.c (find_constant_src): New function.
18547         * simplify-rtx.c (constant_pool_reference_p): Delete.
18548         * config/i386/i386.md: Use find_constant_src instead of
18549         constant_pool_reference_p/avoid_constant_pool_reference pairs.
18550
18551 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
18552
18553         * doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
18554         * c-cppbuiltin.c (c_cpp_builtins): Define them.
18555
18556 2007-03-20  Mark Mitchell  <mark@codesourcery.com>
18557
18558         * config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
18559         * config/arm/arm.c (arm_elf_asm_cdtor): New function.
18560         (arm_elf_asm_constructor): Use it.
18561         (arm_elf_asm_destructor): New function.
18562
18563 2007-03-20  Bernd Schmidt  <bernd.schmidt@analog.com>
18564
18565         * jump.c (mark_jump_label): Treat SEQUENCE specially.
18566
18567 2007-03-20  Nathan Sidwell  <nathan@codesourcery.com>
18568
18569         * config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.
18570
18571 2007-03-19  Andrew Haley  <aph@redhat.com>
18572
18573         PR tree-optimization/31264
18574         * tree-vrp.c (register_edge_assert_for_1): Don't look though
18575         VIEW_CONVERT_EXPRs.
18576
18577 2007-03-19  Paolo Bonzini  <bonzini@gnu.org>
18578
18579         PR rtl-optimization/30907
18580         * fwprop.c (forward_propagate_into): Never propagate inside a loop.
18581         (fwprop_init): Always call loop_optimizer_initialize.
18582         (fwprop_done): Always call loop_optimizer_finalize.
18583         (fwprop): We always have loop info now.
18584         (gate_fwprop_addr): Remove.
18585         (pass_fwprop_addr): Use gate_fwprop as gate.
18586
18587         PR rtl-optimization/30841
18588         * df-problems.c (df_ru_local_compute, df_rd_local_compute,
18589         df_chain_alloc): Call df_reorganize_refs unconditionally.
18590         * df-scan.c (df_rescan_blocks, df_reorganize_refs): Change
18591         refs_organized to refs_organized_size.
18592         (df_ref_create_structure): Use refs_organized_size instead of
18593         bitmap_size if refs had been organized, and keep refs_organized_size
18594         up-to-date.
18595         * df.h (struct df_ref_info): Change refs_organized to
18596         refs_organized_size.
18597         (DF_DEFS_SIZE, DF_USES_SIZE): Use refs_organized_size instead of
18598         bitmap_size.
18599
18600 2007-03-19  Mark Mitchell  <mark@codesourcery.com>
18601
18602         * except.c (output_function_exception_table): Do not reference the
18603         EH personality routine for functions that do not require an
18604         exception table.
18605
18606 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
18607
18608         PR c/30762
18609         * c-typeck.c (convert_for_assignment): Call comptypes for
18610         RECORD_TYPE or UNION_TYPE.
18611
18612         PR inline-asm/30505
18613         * reload1.c (reload): Do invalid ASM checking after
18614         cleanup_subreg_operands.
18615
18616 2007-03-19  Jeff Law  <law@redhat.com>
18617
18618         * tree-cfg.c (find_taken_edge): Tighten conditions for
18619         optimizing computed gotos.
18620
18621 2007-03-19  Michael Matz  <matz@suse.de>
18622
18623         * builtins.c (expand_builtin_sync_operation,
18624         expand_builtin_compare_and_swap,
18625         expand_builtin_lock_test_and_set): Care for extending CONST_INTs
18626         correctly.
18627
18628         * config/i386/sync.md (sync_double_compare_and_swapdi_pic,
18629         sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint
18630         for operand 3.
18631
18632 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
18633
18634         * doc/tm.texi: Add brackets around the return type of
18635         TARGET_SECONDARY_RELOAD.
18636
18637 2007-03-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18638         Richard Guenther  <rguenther@suse.de>
18639
18640         PR tree-optimization/31254
18641         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
18642         Use handled_component_p () where appropriate.  Continue
18643         propagating into the rhs if we propagated into an INDIRECT_REF
18644         on the lhs.
18645
18646 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
18647
18648         * config/s390/s390.md (op_type attribute): RRR instruction type added.
18649         (FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros.
18650         (xde, xdee): Mode attributes adjusted to support DFP modes.
18651         (RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added.
18652         ("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters,
18653         DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3",
18654         "*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3",
18655         "*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3",
18656         "div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
18657         "*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP
18658         numbers.
18659         ("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31",
18660         "movsf"): Insn definitions removed.
18661         ("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp",
18662         "*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2",
18663         "trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn
18664         definitions added.
18665         ("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>",
18666         "reload_in<mode>", "reload_out<mode>"): Expander added.
18667         ("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"):
18668         Expander removed.
18669
18670 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
18671
18672         * config/s390/s390.md: Only non-functional changes.  Renamed
18673         FPR mode macro to BFP all over the file.
18674
18675 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
18676
18677         * config/s390/s390.md (UNSPEC_COPYSIGN): New constant.
18678         (op_type attribute): RRF instruction type added.
18679         (fT0): New mode attribute.
18680         ("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
18681         "*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added.
18682         * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new
18683         instruction no secondary memory is needed when moving DFmode values
18684         between GPRs and FPRs.
18685
18686 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
18687
18688         * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
18689         inverted and documentation adjusted.
18690         ("mhard-dfp", "msoft-dfp"): New options.
18691         * config/s390/s390.c (s390_handle_arch_option): New architecture
18692         switch: z9-ec.
18693         (override_options): Sanity checks for the new options added.
18694         * config.gcc: New architecture switch: z9-ec.
18695         * config/s390/s390.h (processor_flags): PF_DFP added.
18696         (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
18697         (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
18698         when the bit is NOT set so remove it from the defaults.
18699
18700 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
18701
18702         * genemit.c (main): Print include statement for dfp.h.
18703         * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
18704         is not available.
18705
18706 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
18707
18708         * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
18709
18710 2007-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
18711
18712         PR target/31022
18713         * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
18714         instead of PATTERN.
18715
18716 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18717
18718         * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
18719         attr_length_call, output_call, output_indirect_call): Cleanup
18720         formatting of targetm calls.
18721
18722 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
18723
18724         * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
18725
18726 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18727
18728         * pa.md: Add fpstore_load and store_fpload instruction types.  Provide
18729         reservation, bypass and anti-bypass descriptions for these
18730         instructions.  Update move patterns.
18731         * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
18732         TYPE_FPSTORE.
18733
18734 2007-03-18  Dorit Nuzman  <dorit@il.ibm.com>
18735
18736         * tree-vect-transform.c (get_initial_def_for_induction): Replace
18737         GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
18738         (get_initial_def_for_reduction): Likewise.
18739
18740 2007-03-16  Daniel Berlin  <dberlin@dberlin.org>
18741
18742         Fix PR tree-optimization/29922
18743         * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
18744         (get_representative): Removed.
18745         (value_dies_in_block_x): Update for rvuse removal.
18746         (valid_in_sets): Update for renaming of vuses_dies_in_block_x.
18747         (compute_antic_aux): Handle when PHI nodes appear in
18748         non-single-successors.
18749         (dump_bitmap_of_names): Removed.
18750         (compute_antic_safe): Renamed and removed rvuse calculation.
18751         Calculate only antic safe.
18752         (insert_into_preds_of_block): Remove assert.
18753         (execute_pre): Update for renamed functions.
18754         (defer_or_phi_translate_block): New function.
18755
18756 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
18757
18758         * config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
18759         config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
18760         typos.
18761         * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
18762         Follow spelling conventions.
18763
18764         * tree-data-ref.h: Remove the prototype for analyze_array.
18765
18766 2007-03-17  Dorit Nuzman  <dorit@il.ibm.com>
18767
18768         PR tree-optimization/31041
18769         * tree-vect-transform.c (get_initial_def_for_induction): Call
18770         force_gimple_operand.
18771
18772 2007-03-17  Olga Golovanevsky  <olga@il.ibm.com>
18773
18774         * ipa-type-escape.c (look_for_casts) : Revert code to use
18775         handled_component_p due to ada test a-numaux.adb.
18776
18777 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
18778
18779         * final.c (final_scan_insn): Alter the condition of a
18780         conditional trap if we have nonstandard CC.
18781
18782 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
18783
18784         * configure.ac: Remove excess quoting from asm line 0 test.
18785         * configure: Rebuilt.
18786
18787 2007-03-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18788
18789         * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
18790         * c-common.c (convert_and_check): Move warning logic to...
18791         (warnings_for_convert_and_check): ...here. Define.
18792         * c-common.h (warnings_for_convert_and_check): Declare.
18793
18794 2007-03-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18795
18796         * pa.c (attr_length_call): Partially revert change of 2007-03-09.
18797         (output_call): Likewise.
18798
18799 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
18800
18801         * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
18802
18803 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
18804
18805         * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
18806
18807 2007-03-16  Uros Bizjak  <ubizjak@gmail.com>
18808
18809         * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
18810         opteron, athlon-64 and athlon-fx processor_alias_table entries.
18811
18812 2007-03-16  Sebastian Pop  <sebastian.pop@inria.fr>
18813
18814         PR tree-optimization/31183
18815         * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
18816         Use double_int instead of unsigned int for representing access_strides.
18817         * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
18818
18819 2007-03-16  Richard Guenther  <rguenther@suse.de>
18820
18821         PR tree-optimization/31146
18822         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
18823         to allow recursion of forward_propagate_addr_expr.
18824         (forward_propagate_addr_into_variable_array_index): Likewise.
18825         (forward_propagate_addr_expr): Likewise.
18826         (tree_ssa_forward_propagate_single_use_vars): Likewise.
18827         (forward_propagate_addr_expr_1): Recurse on simple copies
18828         instead of propagating into them.  Do so for useless conversions
18829         as well.
18830         (forward_propagate_addr_expr): Clean up unused statements after
18831         recursion.
18832
18833 2007-03-16  Richard Guenther  <rguenther@suse.de>
18834
18835         * builtins.c (expand_builtin_cexpi): Use the right argument
18836         for the expansion via cexp.
18837
18838 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
18839
18840         * configure.ac: Don't require ELF binutils to tolerate # 0 "".
18841         * configure: Rebuilt.
18842
18843 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
18844
18845         PR debug/29906
18846         * dwarf2out.c (force_type_die): Adjust comment.
18847         (dwarf2out_imported_module_or_decl): Handle base AT_import types.
18848
18849 2007-03-15  DJ Delorie  <dj@redhat.com>
18850
18851         * config/frv/predicates.md (minmax_operator): Don't check operands
18852         here.
18853
18854 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
18855
18856         * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
18857         Update constant estimates of number of iterations.
18858         (record_nonwrapping_iv): Add "upper" argument.  "data_size_bounds_p"
18859         argument renamed to "realistic".
18860         (compute_estimated_nb_iterations): Removed.
18861         (record_niter_bound): New function.
18862         (idx_infer_loop_bounds): For possible but unlikely tail arrays,
18863         call record_nonwrapping_iv with upper = false.
18864         (infer_loop_bounds_from_signedness): Pass upper argument to
18865         record_nonwrapping_iv.
18866         (estimate_numbers_of_iterations_loop): Do not call
18867         compute_estimated_nb_iterations.  Record estimate based on profile
18868         information.  Initialize the constant estimates of number of
18869         iterations.
18870         * tree-data-ref.c (estimated_loop_iterations): Return the recorded
18871         estimates.
18872         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
18873         number of iterations is too small.
18874         * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
18875         (EST_NOT_AVAILABLE): Removed.
18876         (struct loop): Replace estimated_nb_iterations by any_upper_bound,
18877         nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
18878         fields.
18879
18880 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
18881
18882         * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
18883         Handle NE_EXPR guards.
18884
18885 2007-03-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18886
18887         PR c++/24924
18888         * c-opts.c (c_common_post_options): Handle C++ post-processing here.
18889         Set also -pedantic-errors by default for the  preprocessor unless
18890         -fpermissive is given.
18891
18892 2007-03-15  Richard Guenther  <rguenther@suse.de>
18893
18894         PR middle-end/29719
18895         PR middle-end/31161
18896         * builtins.c (expand_builtin_cexpi): As a fallback if we
18897         don't have builtins for sincos or cexp create a function
18898         declaration for cexp and expand to a call to that.
18899         (expand_builtin_int_roundingfn): Always fall
18900         back to floor/ceil and its variants even if they may be
18901         not available.
18902
18903 2007-03-15  Steven Bosscher  <steven@gcc.gnu.org>
18904
18905         PR middle-end/31159
18906         * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
18907         jump tables, move the call to delete_dead_jumptables from here...
18908         (cfg_layout_finalize): ...to here.  But rebuild jump labels first.
18909         * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
18910         don't allow merging of blocks that try_redirect_by_replacing_jump
18911         also does not handle when not optimizing.
18912
18913 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
18914             Francois-Xavier Coudert  <coudert@clipper.ens.fr>
18915
18916         * config/i386/i386.md (x86_sahf_1): Correctly handle
18917         HAVE_AS_IX86_SAHF.
18918
18919 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
18920
18921         PR target/31167
18922         * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
18923         x86_64_general_operand as operand[2] predicate.  Remove "iF"
18924         from operand constraints and use "e" constraint instead.
18925         (*subti3_1, *subti3_1 splitter): Ditto.
18926         (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
18927         operand[1] predicate.
18928
18929 2007-03-14  Sebastian Pop  <sebastian.pop@inria.fr>
18930
18931         * tree-loop-linear.c (gather_interchange_stats): For multidimensional
18932         arrays, multiply the access strides by the size of the sub-array.
18933         * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
18934
18935 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
18936
18937         * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
18938         the configured assembler supports the sahf mnemonic.
18939         * configure: Regenerate.
18940         * config.in: Regenerate.
18941
18942         * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
18943         emit "sahf" or ".byte\t0x9e" as asm template.
18944
18945 2007-03-14  Michael Meissner  <michael.meissner@amd.com>
18946
18947         PR 31018
18948         * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
18949         option to replace hard coded TARGET_xxx in md file.
18950         (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
18951         (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
18952         (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
18953         (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
18954         (X86_TUNE_NOT_UNPAIRABLE): Ditto.
18955         (X86_TUNE_NOT_VECTORMODE): Ditto.
18956         (TUNE_SHORTEN_X87_SSE): Use new tuning option.
18957         (TUNE_AVOID_VECTOR_DECODE): Ditto.
18958         (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
18959         (TUNE_SLOW_IMUL_IMM8): Ditto.
18960         (TUNE_MOVE_M1_VIA_OR): Ditto.
18961         (TUNE_NOT_UNPAIRABLE): Ditto.
18962         (TUNE_NOT_VECTORMODE): Ditto.
18963
18964         * config/i386/i386.c (ix86_tune_features): Fill in new tuning
18965         options.
18966
18967         * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
18968         tuning options instead of hard coded TARGET_xxx.
18969         (fix ssemode peephole2's): Ditto.
18970         (imul peephole2's): Ditto.
18971         (movsi_or): Ditto.
18972         (movdi_or_rex64): Ditto.
18973         (move peephole2): Ditto.
18974         (not peephole2's): Ditto.
18975
18976 2007-03-14  Dirk Mueller  <dmueller@suse.de>
18977
18978         * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
18979         * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
18980         * c-parser.c (c_parser_if_body): Always add an empty statement in case
18981         of empty body.
18982         * c-parser.c (c_parser_do_statement): Warn about empty body in
18983         do/while statement.
18984         * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
18985         * doc/invoke.texi (-Wempty-body): Update documentation.
18986
18987 2007-03-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18988
18989         PR c/21438
18990         * c-common.h (warn_for_div_by_zero): Declare.
18991         * c-common.c (warn_for_div_by_zero): Define.
18992         * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
18993         warning.
18994
18995 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
18996
18997         * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
18998         to PREFIX and STANDARD_PREFIX.
18999
19000 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
19001             Phil Edwards  <phil@codesourcery.com>
19002
19003         * gthr-vxworks.h: Add an extern "C" wrapper for C++.
19004         (__gthread_once_t): Remove busy field for RTPs.
19005         (__GTHREAD_ONCE_INIT): Update accordingly.
19006
19007 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
19008
19009         * doc/invoke.texi: Document VxWorks options.
19010
19011 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
19012
19013         * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
19014
19015 2007-03-13  Seongbae Park <seongbae.park@gmail.com>
19016
19017         PR tree-optimization/30590
19018         * tree-nrv.c (tree_nrv): Check for the partial update of the
19019         return value.
19020
19021 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
19022
19023         * flags.h (flag_random_seed): Remove declaration, in favor of...
19024         * toplev.h (get_random_seed, set_random_seed): ... these.
19025         * tree.c (get_file_function_name): Use the former.
19026         * opts.c (common_handle_option): Use the latter.
19027         * toplev.c
19028
19029 2007-03-13  Steven Bosscher  <steven@gcc.gnu.org>
19030
19031         PR middle-end/31127
19032         * cse.c (cse_find_path): Do not bail out if a basic block that
19033         we already visited now becomes part of a path that starts at a
19034         different basic block.  Just disallow this, to make sure we
19035         visit each basic block at most once.
19036
19037 2007-03-13  Jan Hubicka  <jh@suse.cz>
19038
19039         * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold
19040         attributes, when profile esitmate is present, calls with very low
19041         frequency are cold.
19042
19043 2007-03-13  Zdenek Dvorak  <dvorakz@suse.cz>
19044
19045         PR tree-optimization/30730
19046         PR tree-optimization/26900
19047         * tree-ssa-loop-niter.c: Include gmp.h.
19048         (bounds): New type.
19049         (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
19050         split_to_var_and_offset, determine_value_range,
19051         bound_difference_of_offsetted_base, refine_bounds_using_guard,
19052         bound_difference, bounds_add, bounds_negate,
19053         number_of_iterations_ne_max, dump_affine_iv): New functions.
19054         (number_of_iterations_ne, number_of_iterations_lt_to_ne,
19055         assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
19056         difference of initial and final value of control iv to validate
19057         results.
19058         (number_of_iterations_cond): Add loop parameter.  Determine bounds
19059         on the difference of the extremes of the control iv.  Add dumps.
19060         (expand_simple_operations): Handle phi nodes.
19061         (simplify_using_initial_conditions): Do not record used conditions.
19062         (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
19063         Do not set additional_info.
19064         (implies_nonnegative_p, implies_ge_p): Removed.
19065         (derive_constant_upper_bound): Do not use parameter `additional'.
19066         (record_estimate): Parameter `additional' removed.  Parameter
19067         `i_bound' added.  Do not call derive_constant_upper_bound.
19068         (record_nonwrapping_iv): Use derive_constant_upper_bound to
19069         bound the number of iterations estimate.
19070         (estimate_numbers_of_iterations_loop): Pass the estimate from
19071         the number of iterations analysis to record_estimate.
19072         * tree.h (multiple_of_p): Declare.
19073         * tree-scalar-evolution.c (expression_expensive_p): Removed.
19074         (scev_const_prop): Do not check expression_expensive_p.
19075         * fold-const.c (multiple_of_p): Exported.
19076         * double-int.c (double_int_mask): Exported.
19077         * double-int.h (double_int_mask): Declare.
19078         * tree-flow.h (struct tree_niter_desc): Removed additional_info
19079         field.  Added max field.
19080
19081 2007-03-13  David Taylor  <taylor@candd.org>
19082
19083         PR driver/12448:
19084         * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
19085         default -MQ.
19086
19087 2007-03-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19088
19089         PR target/31123
19090         * pa.md (vdepi_ior): Don't allow zero length deposit.  Likewise for
19091         two unamed patterns.
19092
19093 2007-03-13  Uros Bizjak  <ubizjak@gmail.com>
19094
19095         * config/i386/i386.opt (mcx16, msahf): New options.
19096         * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
19097         (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
19098
19099         * config/i386/driver-i386.c (bit_LAHF_LM): New define.
19100         (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
19101         Output -mcx16 and -msahf options when corresponding bit is set.
19102
19103         * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
19104         and -msahf options.
19105
19106 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
19107
19108         * configure.ac: Test for assembler tolerance to # 0 "".
19109         * configure, config.in: Rebuilt.
19110         * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
19111
19112 2007-03-13  Geoffrey Keating  <geoffk@apple.com>
19113
19114         * doc/invoke.texi (Spec Files): Update for '%{,' spec.
19115
19116         * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
19117         (handle_syscall): Handle direct system calls.
19118         * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
19119
19120 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
19121
19122         * doc/invoke.texi: Fix cpp.info cross-reference.
19123         * doc/passes.texi: Fix gcc.info cross-reference.
19124
19125 2007-03-12  Zdenek Dvorak  <dvorakz@suse.cz>
19126
19127         PR tree-optimization/30835
19128         * lambda-code.c (can_convert_to_perfect_nest): Check whether
19129         bb_for_stmt is not NULL before accessing it.
19130
19131 2007-03-12  Joseph Myers  <joseph@codesourcery.com>
19132
19133         * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
19134         some multilibs.
19135
19136 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
19137
19138         PR 30635
19139         * doc/install.texi: Document --enable-stage1-languages
19140
19141 2007-03-12  Steven Bosscher  <steven@gcc.gnu.org>
19142
19143         * tree-pass.h (pass_into_cfg_layout_mode,
19144         pass_outof_cfg_layout_mode): Declare.
19145         * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
19146         pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
19147         * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
19148         (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
19149
19150 2007-03-12  Seongbae Park <seongbae.park@gmail.com>
19151
19152         * c-decl.c (warn_variable_length_array): New function.
19153         Refactored from grokdeclarator to handle warn_vla
19154         and handle unnamed array case.
19155         (grokdeclarator): Refactored VLA warning case.
19156         * c.opt (Wvla): New flag.
19157         * doc/invoke.texi (Wvla): New warning.
19158
19159 2007-03-12  Richard Henderson  <rth@redhat.com>
19160
19161         * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
19162         (TARGET_SECTION_TYPE_FLAGS): New.
19163
19164 2007-03-12  Richard Henderson  <rth@redhat.com>
19165
19166         * config/darwin.c (machopic_reloc_rw_mask): New.
19167         * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
19168         * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
19169
19170 2007-03-12  Mark Mitchell  <mark@codesourcery.com>
19171
19172         * cppdefault.c (cpp_EXEC_PREFIX): New variable.
19173         * cppdefault.h (cpp_PREFIX): Document.
19174         (cpp_PREFIX_len): Likewise.
19175         (cpp_EXEC_PREFIX): New variable.
19176         * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
19177         * c-incpath.c (add_standard_paths): Correct logic for relocating
19178         paths within prefix.
19179
19180 2007-03-12  Uros Bizjak  <ubizjak@gmail.com>
19181
19182         * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
19183         fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
19184         mode macro.
19185         (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
19186         fix_truncdfdi_sse using SSEMODEF mode macro.
19187         (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
19188         fix_truncdfsi_sse using SSEMODEF mode macro.
19189         (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
19190         (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
19191
19192 2007-03-12  Richard Sandiford  <richard@codesourcery.com>
19193
19194         * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
19195         elfos.h to tm_file.
19196
19197 2007-03-12  Olga Golovanevsky  <olga@il.ibm.com>
19198
19199         * tree.h : Add multiple_of_p declaration.
19200         * fold-const.c (multiple_of_p): Make multiple_of_p public.
19201         * ipa-type-escape.c (results_of_malloc): Redundant.
19202         (visited_stmts): New. Visited stmt for walk_use_def_chains.
19203         (cast_type): Extended with new members.
19204         (check_cast): Returns cast_type.
19205         (cast): New structure for data of walk_use_def_chains.
19206         (is_malloc_result, is_cast_from_non_pointer_1,
19207         is_cast_from_non_pointer,
19208         is_array_access_through_pointer_and_index): New functions.
19209         (look_for_casts): Returns cast types.
19210         (check_call): Returns void.
19211         (okay_pointer_operation): Use support of pointer plus index,
19212         pointer plus constant and allow all multiplications.
19213
19214 2007-03-11  Richard Guenther  <rguenther@suse.de>
19215
19216         PR tree-optimization/31115
19217         * tree-vrp.c (extract_range_from_binary_expr): Make sure
19218         the shift count is positive and non-anti-range for RSHIFT_EXPR.
19219         A shift count of zero is not special as with *_DIV_EXPR.
19220         (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
19221         direction.
19222
19223 2007-03-11  Ian Lance Taylor  <iant@google.com>
19224
19225         * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
19226         the *_DIV_EXPR codes correctly with overflow infinities.
19227
19228 2007-03-11  Ira Rosen  <irar@il.ibm.com>
19229
19230         * tree-data-ref.c (analyze_offset): Add a return value (bool) to
19231         indicate success/failure of the analysis. Add negation to subtrahend
19232         in case of subtraction. Fail if both operands contain constants.
19233         (create_data_ref): Fail if analyze_offset fails.
19234
19235 2007-03-11  Uros Bizjak  <ubizjak@gmail.com>
19236
19237         * config/i386/i386.md (frndintxf2): Rename to ...
19238         (rintxf2): ... this. Remove expander having same name.
19239         (rintsf2, rintdf2): Implement using SSEMODEF macro.
19240         (roundsf2, rounddf2): Ditto.
19241         (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
19242         (lround<mode>di2, lround<mode>si2): Ditto.
19243
19244 2007-03-11  Steven Bosscher  <steven@gcc.gnu.org>
19245
19246         * lower-subreg.c: Include except.h.
19247         (decompose_multiword_subregs): Verify that the only control flow
19248         insns we can split are loads to multi-words pseudos.
19249         Handle breaking such blocks after splitting, instead of calling
19250         find_many_sub_basic_blocks.
19251
19252         * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
19253         on the new basic block.  Add a lengthy comment explaining why we
19254         thought this was necessary.
19255         * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
19256
19257 2007-03-10  Mark Mitchell  <mark@codesourcery.com>
19258
19259         PR c++/30924
19260         * tree.c (walk_type_fields): Recurse into the element type of
19261         ARRAY_TYPEs if there is a pointer set.
19262
19263 2007-03-10  Dirk Mueller  <dmueller@suse.de>
19264
19265         * c-common.c (warn_logical_operator): Fix condition.
19266
19267 2007-03-10  Tobias Schl�ter  <tobi@gcc.gnu.org>
19268
19269         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
19270         quotation mark.
19271         * config/darwin.c (machopic_select_section): Remove superfluous
19272         argument in call to categorize_decl_for_section.  Remove unused
19273         variable shlib.
19274
19275 2007-03-10  Joseph Myers  <joseph@codesourcery.com>
19276
19277         * configure.ac (glibc_header_dir): Set using with_build_sysroot if
19278         defined.
19279         * configure: Regenerate.
19280
19281 2007-03-10  Uros Bizjak  <ubizjak@gmail.com>
19282
19283         PR target/31101
19284         * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
19285         (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
19286         (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
19287         Add LABEL_NUSES to emitted label.
19288         * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
19289         branch probability value to emitted jump insn.
19290         * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
19291         Do not check life information and do not re-arrange input operands
19292         for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
19293
19294 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
19295
19296         * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
19297         the change of decode_asm_operands.
19298
19299 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
19300
19301         * mode-switching.c (create_pre_exit): Skip blockage insn.
19302
19303 2007-03-09  Diego Novillo  <dnovillo@redhat.com>
19304
19305         * tree-pass.h (TODO_update_smt_usage): Remove.
19306         Update all users.
19307         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
19308         argument SOME.
19309         Update all users.
19310
19311 2007-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19312
19313         * pa.c (attr_length_call): Revise condition for long
19314         pc-relative branch.
19315         (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long
19316         local calls on the SOM target.  Don't use "LONG_PIC_PCREL" call
19317         sequence on SOM target.
19318
19319 2007-03-09  Geoffrey Keating  <geoffk@apple.com>
19320
19321         * gcc.c: Document %{, in big comment at top.
19322         (input_suffix_matches): Remove special handling for .s and
19323         .S.
19324         (input_spec_matches): New.
19325         (handle_braces): Handle %{,.
19326         (validate_switches): ',' indicates a value which is not a switch.
19327         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
19328         to detect assembler input.
19329         * config/i386/sol2.h (CPP_SPEC): Likewise.
19330         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
19331         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
19332         * config/rs6000/lynx.h (ASM_SPEC): Likewise.
19333         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
19334         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
19335         -m64 causes deployment target to default to 10.5.
19336         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
19337
19338 2007-03-09  Richard Henderson  <rth@redhat.com>
19339
19340         PR target/26090
19341         * target.h (targetm.asm.out.reloc_rw_mask): New.
19342         * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
19343         (TARGET_ASM_OUT): Use it.
19344         * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
19345         * varasm.c (categorize_decl_for_section): Remove shlib argument;
19346         use the new reloc_rw_mask target hook instead.
19347         (default_section_type_flags_1): Merge into...
19348         (default_section_type_flags): ... here.
19349         (decl_readonly_section_1): Merge into...
19350         (decl_readonly_section): ... here.
19351         (default_elf_select_section_1): Merge into...
19352         (default_elf_select_section): ... here.
19353         (default_unique_section_1): Merge into...
19354         (default_unique_section): ... here.
19355         (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
19356         (default_select_rtx_section): Use it.
19357         (default_elf_select_rtx_section): Likewise.
19358         * output.h: Update to match.
19359         * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
19360         * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
19361         (TARGET_ASM_RELOC_RW_MASK): New.
19362         * config/i386/i386.c (x86_64_elf_select_section): Adjust call
19363         to categorize_decl_for_section.
19364         (x86_64_elf_unique_section): Likewise.
19365         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
19366         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
19367         (TARGET_ASM_RELOC_RW_MASK): New.
19368         * config/ia64/ia64.c (ia64_rwreloc_select_section,
19369         ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
19370         (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
19371         (TARGET_RWRELOC): Remove.
19372         (ia64_section_type_flags): Adjust call to default_section_type_flags.
19373         * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
19374         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
19375         (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
19376         (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
19377         (rs6000_xcoff_select_section): Use decl_readonly_section.
19378         (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
19379         * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
19380         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
19381         (TARGET_SECTION_TYPE_FLAGS): Remove.
19382         * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
19383
19384 2007-03-09  Roger Sayle  <roger@eyesopen.com>
19385
19386         * fold-const.c (fold_comparison): Remove compile-time evaluation of
19387         complex constant equality/inequality comparisons for here.
19388         (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
19389         known at compile-time or can be simplified to a scalar comparison.
19390         (fold_relational_const): Move compile-time evaluation of complex
19391         constant equality/inequality comparisons to here.
19392
19393 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
19394
19395         PR rtl-optimization/30643
19396         * cse.c (cse_insn): Recompute dest_hash after insert_regs for
19397         dest_addr_elt.
19398         (fold_rtx): Recurse, like before 2006-11-03.
19399
19400 2007-03-09  DJ Delorie  <dj@redhat.com>
19401
19402         * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
19403         m32c-pragma.o.
19404
19405 2007-03-09  Aldy Hernandez  <aldyh@redhat.com>
19406
19407         PR tree-optimization/30375
19408         * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
19409         LHS of statements is not the same.
19410         * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
19411
19412 2007-03-09  Chao-ying Fu  <fu@mips.com>
19413
19414         * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
19415         REV 2.
19416         * doc/invoke.texi (-mdspr2): Document new option.
19417         * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
19418         New unspec for DSP REV 2.
19419         (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
19420         these instructions are extended in DSP REV 2.
19421         (mips-dspr2.md): Include.
19422         * config/mips/mips.opt (mdspr2): New option.
19423         * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
19424         MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
19425         MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
19426         (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
19427         (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
19428         (dsp_bdesc): Add DSP REV 2 builtins.  Remove 32-bit only DSP builtins.
19429         (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
19430         and 2 builtins.
19431         (bdesc_map): Add one field of unsupported_target_flags.
19432         (bdesc_arrays): Update entries to have extra fields.  Add
19433         dsp_32only_bdesc.
19434         (mips_init_builtins): Initialize new function types.
19435         Check unsupported_target_fileds to filter out builtins.
19436         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
19437         TARGET_DSPR2.
19438         (ASM_SPEC): Pass mdspr2 to the assembler.
19439         * config/mips/mips-dspr2.md: New file.
19440
19441 2007-03-09  Sa Liu  <saliu@de.ibm.com>
19442
19443         * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
19444
19445 2007-03-09  Ian Lance Taylor  <iant@google.com>
19446
19447         * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
19448         argument) like -Wstrict-overflow=2.
19449         * doc/invoke.texi (Warning Options): Update documentation.
19450
19451 2007-03-09  Dirk Mueller  <dmueller@suse.de>
19452
19453         PR c++/17946
19454         * doc/invoke.texi (-Wlogical-op): Document.
19455         * common.opt (-Wlogical-op): New.
19456         * c-common.h (warn_logical_operator): Declare.
19457         * c-common.c (warn_logical_operator): Define.
19458         * c-typeck.c (parser_build_binary_op): Call
19459         warn_logical_operator.
19460
19461 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
19462
19463         * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
19464         * final.c (final_scan_insn): Test for non-"" file name.
19465
19466 2007-03-09  Sebastian Pop  <sebastian.pop@inria.fr>
19467
19468         * doc/loop.texi: Document the Omega linear constraints solver.
19469         * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
19470         omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
19471         omega-hash-table-size, omega-max-keys, and
19472         omega-eliminate-redundant-constraints.
19473         * tree-pass.h (pass_check_data_deps): Declared.
19474         * omega.c: New.
19475         * omega.h: New.
19476         * timevar.def (TV_CHECK_DATA_DEPS): Declared.
19477         * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
19478         pass_check_data_deps): New.
19479         * tree-data-ref.c (init_data_ref): Remove declaration.
19480         (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
19481         (analyze_array): Renamed init_array_ref, move up initializations.
19482         (init_data_ref): Renamed init_pointer_ref.  Moved before its call.
19483         Removed arguments that are set to NULL.
19484         (analyze_indirect_ref): Correct indentation, correct call to
19485         init_pointer_ref.
19486         (object_analysis): Call init_array_ref instead of analyze_array.
19487         (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
19488         (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
19489         of DR_ACCESS_FNS_ADDR.
19490         (init_omega_eq_with_af, omega_extract_distance_vectors,
19491         omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
19492         ddr_consistent_p): New.
19493         (compute_affine_dependence): Check consistency of ddrs when
19494         flag_check_data_deps is passed.
19495         (analyze_all_data_dependences): Uncomment.
19496         (tree_check_data_deps): New.
19497         * tree-data-ref.h: Include omega.h.
19498         (DR_ACCESS_FNS_ADDR): Removed.
19499         (data_dependence_relation): Add inner_loop.
19500         (DDR_INNER_LOOP): New.
19501         * common.opt (fcheck-data-deps): New.
19502         * tree-flow.h (tree_check_data_deps): Declare.
19503         * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
19504         (OBJS-common): Depend on omega.o.
19505         (omega.o): Define.
19506         * passes.c (pass_check_data_deps): Scheduled.
19507         * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
19508         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
19509         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
19510         PARAM_VECT_MAX_VERSION_CHECKS,
19511         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
19512
19513 2007-03-09  Richard Guenther  <rguenther@suse.de>
19514
19515         PR tree-optimization/30904
19516         PR middle-end/31058
19517         * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
19518         the same way as *_DIV_EXPR.
19519
19520 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
19521
19522         * recog.c (decode_asm_operands): No mixed declarations and code.
19523
19524 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
19525
19526         * rtl.def (ASM_INPUT): Add location.
19527         * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
19528         (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
19529         (decode_asm_operands): Add loc operand.
19530         (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
19531         * stmt.c (expand_asm): Rename to...
19532         (expand_asm_loc): ... this.  Add locus argument.  Pass it on to
19533         gen_rtx_ASM_INPUT_loc.
19534         (expand_asm_expr): Adjust.
19535         * recog.c (decode_asm_operands): Add loc operand.
19536         (check_asm_operands, extract_insn): Adjust.
19537         * reload1.c (maybe_fix_stack_asms): Likewise.
19538         * final.c (asm_insn_count): Likewise.
19539         (final_scan_insn): Output # line before and after asm.
19540
19541 2007-03-09  Daniel Berlin  <dberlin@dberlin.org>
19542
19543         * tree-ssa-structalias.c (variable_info): Remove
19544         finished_solution.
19545         (new_var_info): Ditto.
19546         (shared_bitmap_info_t): New structure.
19547         (shared_bitmap_table): New variable.
19548         (shared_bitmap_hash): New function.
19549         (shared_bitmap_eq): Ditto
19550         (shared_bitmap_lookup): Ditto.
19551         (shared_bitmap_add): Ditto.
19552         (merge_smts_into): Change to take bitmap directly.
19553         (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
19554         (init_alias_vars): Init shared bitmap hashtable.
19555         (delete_points_to_sets): Delete shared bitmap hashtable.
19556         * tree-ssa-operands.c (add_virtual_operand): Partially revert the
19557         is_aliased removal as a change that was still necessary was
19558         deleted.
19559
19560 2007-03-09  Uros Bizjak  <ubizjak@gmail.com>
19561
19562         * config/i386/i386.h (override_options): Conditionally disable
19563         x86_sahf for 64bit targets only.
19564
19565 2007-03-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19566
19567         PR C/31072
19568         * c-decl.c (merge_decls): Don't call make_var_volatile.
19569         * varasm.c (make_var_volatile): Remove.
19570         * output.h (make_var_volatile): Remove.
19571
19572 2007-03-08  Zdenek Dvorak  <dvorakz@suse.cz>
19573
19574         PR tree-optimization/31085
19575         * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
19576
19577 2007-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19578
19579         * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
19580         llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
19581         ATTR_CONST_NOTHROW_LIST.
19582
19583         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
19584         FIX_TRUNC_EXPR.
19585
19586 2007-03-08  Diego Novillo  <dnovillo@redhat.com>
19587
19588         * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
19589
19590 2007-03-08  Geoffrey Keating  <geoffk@apple.com>
19591
19592         PR 31013
19593         * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
19594         is declared.
19595         * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
19596         passed, use shared libgcc.
19597
19598 2007-03-08  Roger Sayle  <roger@eyesopen.com>
19599
19600         * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
19601         instead of calling build2 with a GIMPLE_MODIFY_STMT.
19602         (honor_protect_cleanup_actions, lower_try_finally_switch):
19603         Likewise.
19604         * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
19605         ifc_temp_var): Likewise.
19606         * tree-inline.c (setup_one_parameter): Likewise.
19607         * tree-mudflap.c (mf_decl_cache_locals,
19608         mf_build_check_statement_for): Likewise.
19609         * tree-nested.c (init_tmp_var, save_tmp_var,
19610         finalize_nesting_tree_1): Likewise.
19611         * tree-outof-ssa.c (insert_copy_on_edge,
19612         insert_backedge_copies): Likewise.
19613         * tree-profile.c (tree_gen_edge_profiler,
19614         tree_gen_ic_profiler): Likewise.
19615         * tree-scalar-evolution.c (scev_const_prop): Likewise.
19616         * tree-sra.c (sra_build_assignment): Likewise.
19617         * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
19618         * tree-ssa-math-opts.c (insert_reciprocals,
19619         execute_cse_sincos_1): Likewise.
19620         * tree-tailcall.c (adjust_accumulator_values,
19621         adjust_return_value): Likewise.
19622         * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
19623         * tree-vect-transform.c (vect_create_data_ref_ptr,
19624         bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
19625         vect_create_epilog_for_reduction, vectorizable_reduction,
19626         vectorizable_call, vectorizable_conversion,
19627         vectorizable_assignment, vectorizable_operation,
19628         vectorizable_type_demotion, vect_gen_widened_results_half,
19629         vect_permute_store_chain, vectorizable_store,
19630         vect_setup_realignment, vect_permute_load_chain,
19631         vectorizable_load, vectorizable_condition,
19632         vect_create_cond_for_align_checks): Likewise.
19633         * tree-vrp.c (build_assert_expr_for): Likewise.
19634
19635 2007-03-08  Ian Lance Taylor  <iant@google.com>
19636
19637         * tree-vrp.c: Include "intl.h".
19638         (usable_range_p): New static function.
19639         (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
19640         overflowed values, juts set *strict_overflow_p.
19641         (compare_values): Only return -2 if one of the operands is not a
19642         constant.
19643         (compare_ranges): Call usable_range_p.
19644         (compare_range_with_value): Likewise.
19645         (vrp_evaluate_conditional_warnv): Rename from
19646         vrp_evaluate_conditional.  Make static.  Change all callers.
19647         (vrp_evaluate_conditional): New function.
19648         (simplify_div_or_mod_using_ranges): Issue warning about reliance
19649         on signed overflow.
19650         (simplify_abs_using_ranges): Likewise.
19651         (simplify_stmt_for_jump_threading): Add within_stmt parameter.
19652         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
19653         within_stmt parameter.
19654         * tree-ssa-propagate.c (fold_predicate_in): Update call to
19655         vrp_evaluate_conditional.
19656         * tree-ssa-threadedge.c
19657         (record_temporary_equivalences_from_stmts_at_dest): Change
19658         simplify parameter to take a second tree parameter.
19659         (simplify_control_stmt_condition): Likewise.
19660         (thread_across_edge): Likewise.
19661         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
19662         (thread_across_edge): Likewise.
19663         * Makefile.in (tree-vrp.o): Depend upon intl.h.
19664
19665 2007-03-08  Uros Bizjak  <ubizjak@gmail.com>
19666
19667         * config/i386/i386.h (TARGET_SAHF): New define.
19668         * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
19669         Also enable for m_K8, m_AMDFAM10 and m_CORE2.
19670         (x86_sahf): New global variable.
19671         (override_options): Add PTA_NO_SAHF to pta_flags enum.  Recode
19672         pta_flags masks using shifts.  Add PTA_NO_SAHF to x86_64 and
19673         nocona processor flags.  Set x86_sahf when PTA_NO_SAHF is not set
19674         in processor flags.  Do not unconditionally disable TARGET_USE_SAHF
19675         for 64-bit.
19676         (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
19677         (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
19678         when expanding fcomi/sahf based tests.
19679         (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
19680         expanding sahf based alternative. Emit sahf based sequence when
19681         optimizing for code size.
19682         * config/i386/i386.md (x86_sahf_1): Do not disable for
19683         TARGET_64BIT, enable for TARGET_SAHF.
19684
19685 2007-03-08  Martin Michlmayr  <tbm@cyrius.com>
19686
19687         * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
19688         spurious whitespace from error message.
19689
19690 2007-03-08  Volker Reichelt  <reichelt@netcologne.de>
19691
19692         PR c++/30852
19693         * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
19694
19695 2007-03-08  Alexandre Oliva  <aoliva@redhat.com>
19696
19697         * c-decl.c (grokdeclarator): Disable warnings for anonymous
19698         bitfields.
19699         * tree-sra.c (instantiate_element): Propagate disabled warnings
19700         from the element itself to the created variable.
19701
19702 2007-03-07  Richard Henderson  <rth@redhat.com>
19703
19704         PR target/30848
19705         * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
19706         silently fix up the stack in the case of a missing register.
19707
19708 2007-03-07  Paul Brook  <paul@codesourcery.com>
19709
19710         * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
19711
19712 2007-03-07  Joseph Myers  <joseph@codesourcery.com>
19713
19714         * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
19715         New.
19716         (phase1_vrs): Use them.
19717         (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
19718         (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
19719         __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
19720         (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
19721         __gnu_Unwind_Restore_WMMXC if required.
19722         (_Unwind_VRS_Pop): Implement iWMMXt support.
19723         * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
19724         gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
19725         gnu_Unwind_Save_WMMXC): Define.
19726
19727 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
19728
19729         * config/vxworks.h (vxworks_override_options): Declare.
19730         (VXWORKS_OVERRIDE_OPTIONS): Use it.
19731         * config/vxworks.c: Include target.h and toplev.h.
19732         (vxworks_override_options): New function.
19733         * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
19734
19735 2007-03-07  Andreas Krebbel  <krebbel1@de.ibm.com>
19736
19737         * config/s390/s390.c (override_options): Don't emit an error when
19738         -mstack-size is used without providing -mstack-guard.
19739         (s390_emit_prologue): Choose stack_guard value automatically if not
19740         provided via command line.
19741         * doc/invoke.texi: Adjust description of -mstack-guard and
19742         -mstack-size.
19743
19744 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
19745
19746         * config/i386/i386.c (output_set_got): Add a GOT initialization
19747         sequence for VxWorks PIC.
19748         (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
19749         around labels as well as symbols.  Use gotoff_operand instead
19750         of local_symbolic_operand.
19751         (legitimize_pic_address): Use gotoff_operand instead of
19752         local_symbolic_operand.  Use @GOT accesses for labels as
19753         well as symbols.
19754         (ix86_output_addr_diff_elt): Use PC-relative rather than
19755         GP-relative offsets for VxWorks PIC.
19756         (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
19757         no_new_pseudos.  Check whether the returned register is op0.
19758         * config/i386/i386.md (tablejump): Use PC-relative rather than
19759         GP-relative offsets for VxWorks PIC.
19760         * config/i386/predicates.md (gotoff_operand): New predicate.
19761
19762 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
19763
19764         * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
19765         before defining.
19766         * config/vxworks-dummy.h: New file.
19767         * config/i386/i386.h: Include it.
19768
19769 2007-03-07  Alexandre Oliva  <aoliva@redhat.com>
19770
19771         * dwarf2out.c (is_inlined_entry_point): New
19772         (add_high_low_attributes): Emit DW_AT_entry_pc along with
19773         DW_AT_ranges if the first subblock is the entry point.
19774
19775 2007-03-06  David Daney  <ddaney@avtrex.com>
19776
19777         * doc/install.texi (mips-*-*): Change recommended binutils
19778         version.
19779
19780 2007-03-06  Anatoly Sokolov <aesok@post.ru>
19781
19782         * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
19783         ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
19784         devices.
19785         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
19786         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
19787
19788 2007-03-06  Jan Hubicka  <jh@suse.cz>
19789
19790         * errors.h (warning, error, fatal, internal_error): Mark as cold.
19791         * predict.c (maybe_hot_bb): Cold functions are never hot; hot
19792         functions are hot.
19793         (probably_cold_bb_p): Cold functions are cold.
19794         (probably_never_executed_bb_p): Cold functions are cold.
19795         (tree_bb_level_predictions): Predict calls to cold functions as not
19796         taken.
19797         (compute_function_frequency): Check hot/cold attributes.
19798         * function.h (function_frequency): Update comments.
19799         * predict.def (PRED_COLD_FUNCTION): Predict cold function.
19800         * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
19801         (c_common_att): Add cold and hot.
19802
19803         * doc/extend.texi (hot,cold attributes): Document.
19804
19805 2007-03-06  Andrew Haley  <aph@redhat.com>
19806
19807         * function.c (expand_function_end): Move blockage to just after we
19808         emit the label for the naked return from the function.
19809
19810 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
19811
19812         * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
19813         before redefining.
19814
19815 2007-03-06  Jan Hubicka  <jh@suse.cz>
19816
19817         * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
19818         loaded for constant large models.  Non-large 64bit PIC can do.
19819         * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
19820         * cmodel.h: Add LARGE PIC.
19821         * i386.md (UNSPEC_PLTOFF): New.
19822         (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other
19823         unspecs as needed.
19824         (*call_1_rex64): Disable for large models.
19825         (*call_1_rex64_large): New.
19826         (*call_value_1_rex64): Disable for large models.
19827         (*call_value_1_rex64_large): New.
19828         (set_rip_rex4): New.
19829         (set_got_offset_rex64): New.
19830         * predicates.md (constant_call_address_operand): For large model
19831         constant calls are not possible.
19832         * i386-protos.h (construct_plt_address): Declare.
19833         * i386.c (override_options): Accept large models.
19834         (ix86_expand_prologue): Expand large PIC GOT pointer load.
19835         (legitimate_constant_p): Add new UNSPECs.
19836         (legitimate_pic_operand_p): Likewise.
19837         (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
19838         (legitimize_pic_address): Do easy RIP relative way for TLS only for
19839         non-large model.
19840         (output_pic_addr_const): Add PLTOFF.
19841         (ix86_output_addr_diff_elt): Output 64bit tables when needed.
19842         (ix86_expand_move): Legitimize pic address when in PIC mode.
19843         (construct_plt_address): New function.
19844         (ix86_expand_call): Offload the address to register and use GOT
19845         pointer for large model.
19846         * invoke.texi (mcmodel=large): Update documentation.
19847
19848 2007-03-06  Richard Henderson  <rth@redhat.com>
19849
19850         * config/i386/i386.c (x86_use_leave, x86_push_memory,
19851         x86_zero_extend_with_and, x86_movx, x86_double_with_add,
19852         x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
19853         x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
19854         x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
19855         x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
19856         x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
19857         x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
19858         x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
19859         x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
19860         x86_partial_reg_dependency, x86_memory_mismatch_stall,
19861         x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
19862         x86_sse_partial_reg_dependency, x86_sse_split_regs,
19863         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
19864         x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
19865         x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
19866         x86_schedule, x86_use_bt, x86_pad_returns,
19867         x86_use_xchgb): Merge into ...
19868         (ix86_tune_features): ... here.  New array.
19869         (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
19870         x86_bswap): Merge into ...
19871         (ix86_arch_features): ... here.  New array.
19872         (x86_3dnow_a): Remove.
19873         (x86_accumulate_outgoing_args): Make static.
19874         (x86_arch_always_fancy_math_387): Make static.
19875         (ix86_tune_mask, ix86_arch_mask): Move ...
19876         (override_options): ... to local variables here.  Apply the
19877         appropriate mask to each element of ix86_arch_features and
19878         ix86_tune_features.  Adjust TARGET_CMOVE and TARGET_USE_SAHF
19879         as were done in the old macros.
19880         (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
19881         * config/i386/i386.h (x86_use_leave, x86_push_memory,
19882         x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
19883         x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
19884         x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
19885         x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
19886         x86_read_modify_write, x86_read_modify, x86_split_long_moves,
19887         x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
19888         x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
19889         x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
19890         x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
19891         x86_partial_reg_dependency, x86_memory_mismatch_stall,
19892         x86_accumulate_outgoing_args, x86_prologue_using_move,
19893         x86_epilogue_using_move, x86_decompose_lea,
19894         x86_arch_always_fancy_math_387, x86_shift1,
19895         x86_sse_partial_reg_dependency, x86_sse_split_regs,
19896         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
19897         x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
19898         x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
19899         x86_use_incdec, x86_pad_returns, x86_bswap,
19900         x86_partial_flag_reg_stall): Remove.
19901         (enum ix86_tune_indices): New.
19902         (ix86_tune_features): New.
19903         (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
19904         TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
19905         TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
19906         TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
19907         TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
19908         TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
19909         TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
19910         TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
19911         TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
19912         TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
19913         TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
19914         TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
19915         TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
19916         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
19917         TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
19918         TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
19919         TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
19920         TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
19921         TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
19922         TARGET_EXT_80387_CONSTANTS): Use it.
19923         (enum ix86_arch_indices): New.
19924         (ix86_arch_features): New.
19925         (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
19926         TARGET_BSWAP): Use it.
19927         (ix86_tune_mask, ix86_arch_mask): Remove.
19928
19929 2007-03-06  Joseph Myers  <joseph@codesourcery.com>
19930
19931         PR bootstrap/31020
19932         * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
19933         Define using $${sysroot_headers_suffix}.
19934         * configure: Regenerate.
19935         * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
19936         multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
19937         defined.
19938         * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
19939         * gcc.c (print_sysroot_headers_suffix): New.
19940         (option_map): Include --print-sysroot-headers-suffix.
19941         (display_help): Mention -print-sysroot-headers-suffix.
19942         (process_command): Handle -print-sysroot-headers-suffix.
19943         (do_spec_1): Append multilib directory to include-fixed path if
19944         sysroot suffixes in use.
19945         (main): Handle -print-sysroot-headers-suffix.
19946         * Makefile.in (start.encap): Don't depend on xlimits.h
19947         (xlimits.h): Remove.
19948         (stmp-int-hdrs): Don't depend on xlimits.h.  Inline generation of
19949         limits.h for each multilib in fixinc_list.
19950         (fixinc_list, s-fixinc_list): New.
19951         (stmp-fixinc): Depend on fixinc_list.  If not copying headers,
19952         generate them for each multilib in fixinc_list.
19953         (stmp-fixproto): Use include-fixed.  Run fixproto for each
19954         multilib in fixinc_list.
19955         (mostlyclean): Don't remove xlimits.h.
19956         (clean): Remove include-fixed.
19957         (real-install-headers-tar, real-install-headers-cpio,
19958         real-install-headers-cp): Don't copy include, only include-fixed.
19959         (install-mkheaders): Depend on fixinc_list.  Don't depend on
19960         xlimits.h.  Save limits.h files for each multilib in fixinc_list.
19961         Always save mkinstalldirs.  Preserve ${sysroot_headers_suffix} in
19962         SYSTEM_HEADER_DIR setting in mkheaders.conf.
19963
19964 2007-03-06  Jan Hubicka  <jh@suse.cz>
19965
19966         * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
19967         NANs easilly.
19968
19969 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
19970
19971         * configure.ac: Allow tm_file to contain build-directory files.
19972         * configure: Regenerate.
19973         * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
19974         * config/m68k/t-uclinux (sysroot-suffix.h): New target.
19975         * config/m68k/print-sysroot-suffix.sh: New file.
19976
19977 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
19978
19979         * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
19980         of pic_offset_table_rtx if reload_completed.
19981         (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
19982         PIC_OFFSET_TABLE_REGNUM.
19983         * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
19984         return true.
19985         (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
19986         (m68k_output_mi_thunk): Rewrite to use RTL.  Honor vcall_offset.
19987
19988 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
19989
19990         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
19991         functions that call eh_return.
19992
19993 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
19994
19995         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
19996         functions that need a constant pool.
19997
19998 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
19999
20000         PR target/28181
20001         * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
20002         (m68k_preferred_reload_class): Likewise.
20003         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
20004         (SECONDARY_RELOAD_CLASS): Define.
20005         (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
20006         (LIMIT_RELOAD_CLASS): Delete.
20007         * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
20008         registers from storing bytes.
20009         (m68k_secondary_reload_class): New function.
20010         (m68k_preferred_reload_class): Likewise.
20011
20012 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
20013
20014         * config/m68k/m68k.c (m68k_save_reg): Remove special case for
20015         leaf functions.
20016         (m68k_expand_prologue): Likewise.
20017
20018 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
20019
20020         * config/m68k/m68k-protos.h (output_sibcall): Declare.
20021         (mips_expand_epilogue): Add a bool parameter.
20022         (m68k_legitimize_sibcall_address): Declare.
20023         * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
20024         (m68k_expand_epilogue): Add a parameter to select between sibling
20025         and normal epilogues.  Only generate a return for the latter.
20026         (m68k_ok_for_sibcall_p): New function.
20027         (m68k_legitimize_sibcall_address, output_sibcall): New functions.
20028         * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
20029         (sibcall_value, *sibcall_value): Likewise.
20030         (*call, *call_value): Require !SIBLING_CALL_P.
20031         (epilogue): Update call to m68k_expand_epilogue.
20032         (sibcall_epilogue): New pattern.
20033         * config/m68k/predicates.md (const_call_operand): Say that this
20034         predicate applies to sibling calls too.
20035         (sibcall_operand): New predicate.
20036
20037 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
20038
20039         * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
20040         alternatives as movsi_cf.
20041         (movsf_cf_hard): Add commentary.
20042
20043 2007-03-06  Kazu Hirata  <kazu@codesourcery.com>
20044             Richard Sandiford  <richard@codesourcery.com>
20045
20046         * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
20047         (m68k_movem_pattern_p, m68k_output_movem): Likewise.
20048         (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
20049         * config/m68k/m68k.h (EPILOGUE_USES): Define.  Treat all registers
20050         as being live on exit from an interrupt function.
20051         (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
20052         * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
20053         (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
20054         (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
20055         (m68k_interrupt_function_p): Globalize.
20056         (m68k_compute_frame_layout): Remove reverse mask code.
20057         (m68k_emit_movem, m68k_set_frame_related): New functions.
20058         (m68k_output_function_prologue): Delete in favor of...
20059         (m68k_expand_prologue): ...this new function.
20060         (m68k_output_function_epilogue): Delete in favor of...
20061         (m68k_expand_epilogue): ...this new function.
20062         (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
20063         functions.
20064         (print_operand): Handle %?.
20065         * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
20066         (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
20067         (prologue, epilogue): New patterns.
20068         (return): Turn into a define_expand.
20069         (*return): New pattern, derived from old "return" pattern.  Use rte
20070         rather than rts for interrupt functions.  Only use rtd if the pop
20071         count is nonzero.
20072         (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
20073         (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
20074         (link, *link, unlink, *unlink, load_got): Likewise.
20075
20076 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
20077
20078         PR target/23482
20079         PR target/17114
20080         * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
20081         (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
20082         (m68k_matches_q_p, m68k_matches_u_p): Likewise.
20083         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
20084         and m68k_matches_u_p.
20085         (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
20086         (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
20087         (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
20088         (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
20089         (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
20090         (REG_STRICT_P): New macro.
20091         (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
20092         PCREL_GENERAL_OPERAND_OK.
20093         (REG_OK_FOR_BASE_P): Merge definitions.  Use REG_STRICT_P and
20094         m68k_legitimate_base_reg_p.
20095         (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
20096         (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
20097         (PIC_CASE_VECTOR_ADDRESS): Update comment.
20098         * config/m68k/m68k.c (m68k_address): New structure.
20099         (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
20100         (m68k_decompose_index, m68k_legitimate_constant_address_p)
20101         (m68k_jump_table_ref_p, m68k_decompose_address)
20102         (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
20103         (m68k_matches_u_p): New functions.
20104         (print_operand_address): Rewrite to use m68k_decompose_index.
20105
20106 2007-03-05  David Taylor  <dtaylor@emc.com>
20107
20108         * gcc.c: Correct copyright date in --version output.
20109
20110 2007-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20111
20112         * pa.md: In unamed move patterns, disparge copies between general
20113         and floating point registers using '?' modifier.  Don't include 'f'
20114         constraint for register preferences in DImode, SImode, HImode and
20115         QImode patterns.  Likewise for 'r' in DFmode and SFmode patterns.
20116         Remove constraints for copies between general and floating registers
20117         in soft-float DFmode pattern.
20118         (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
20119         floating register.
20120         (movsf): Likewise.
20121
20122 2007-03-05  Mike Stump  <mrs@apple.com>
20123
20124         * c-common.c (targetcm): Add.
20125         * c-opts.c (c_common_handle_option): Handle language specific
20126         target options.
20127         * opts.c (handle_option): Verify language for target options, if
20128         any are given.
20129         * opth-gen.awk: Add CL_LANG_ALL.
20130         * target-def.h (TARGET_HANDLE_C_OPTION): Add.
20131         (TARGETCM_INITIALIZER): Add.
20132         * target.h (struct gcc_targetcm): Add.
20133         (targetcm): Add.
20134         * targhooks.c (default_handle_c_option): Add.
20135         * targhooks.h (default_handle_c_option): Add.
20136         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
20137
20138         * config/darwin.opt (iframework): Add.
20139         * config/darwin.h (TARGET_HAS_TARGETCM): Add.
20140         * config/darwin-c.c (handle_c_option): Add.
20141         (TARGET_HANDLE_C_OPTION): Add.
20142         (targetcm): Add.
20143         * doc/invoke.texi (Darwin Options): Add -iframework.
20144
20145 2007-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20146
20147         * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
20148         conversion.
20149
20150 2007-03-05  Ian Lance Taylor  <iant@google.com>
20151
20152         * c.opt (fgnu89-inline): New option.
20153         * c-opts.c (c_common_post_options): Set default value for
20154         flag_gnu89_inline.
20155         * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
20156         (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
20157         inline functions.
20158         (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
20159         (grokdeclarator, start_function): Likewise.
20160         * c-cppbuiltin.c (c_cpp_builtins): Define either
20161         __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
20162         * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
20163         (C Dialect Options): Document -fgnu89-inline.
20164         * doc/extend.texi (Function Attributes): Explain what the
20165         gnu_inline attribute does.
20166         * doc/cpp.texi (Common Predefined Macros): Document
20167         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
20168
20169 2007-03-05  Ian Lance Taylor  <iant@google.com>
20170
20171         PR tree-optimization/31034
20172         * tree-vrp.c (extract_range_from_assert): Don't try to handle a
20173         half-range if the other side is an overflow infinity.
20174
20175 2007-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
20176
20177         * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
20178         (bfin*-linux-uclibc*): New configuration.
20179         * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
20180         defining.
20181         * config/bfin/linux.h: New file.
20182         * config/bfin/libgcc-bfin.ver: New file.
20183         * config/bfin/t-bfin-uclinux: New file.
20184         * config/bfin/t-bfin-linux: New file.
20185         * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
20186         (TARGET_OS_CPP_BUILTINS): New macro.
20187
20188 2007-03-05  Richard Guenther  <rguenther@suse.de>
20189
20190         * fold-const.c (fold_binary): Remove duplicate folding
20191         of comparison of non-null ADDR_EXPR against null.
20192
20193 2007-03-05  Richard Guenther  <rguenther@suse.de>
20194             Dorit Nuzman  <dorit@il.ibm.com>
20195
20196         PR tree-optimization/26420
20197         * tree-vectorizer.c (vectorize_loops): Bail out early if there
20198         are no loops in the function.  Only print the number of
20199         vectorized loops if it is greater than zero or we are supposed
20200         to print information about unvectorized loops.
20201
20202 2007-03-05  Revital Eres  <eres@il.ibm.com>
20203
20204         * gcc.dg/var-expand1.c: New test.
20205         * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
20206         when an accumulator is expanded.
20207
20208 2007-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20209
20210         PR other/30465
20211         * c-common.c (convert_and_check): Don't give warnings for
20212         conversion if 'expr' already overflowed.
20213
20214 2007-03-04  Roger Sayle  <roger@eyesopen.com>
20215
20216         PR middle-end/30744
20217         * fold-const.c (fold_comparison): Enforce type consistency when
20218         transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
20219
20220 2007-03-04  Zdenek Dvorak  <dvorakz@suse.cz>
20221
20222         * tree-ssa-address.c (create_mem_ref): Do not put an expression
20223         containing a cast to the base of TARGET_MEM_REF.
20224
20225 2007-03-04  Martin Michlmayr  <tbm@cyrius.com>
20226
20227         * tree.c (tree_contains_struct_check_failed): Remove spurious
20228         whitespace from error message.
20229
20230 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
20231
20232         PR target/30406
20233         * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
20234         instead of precision.
20235
20236 2007-03-04  Roman Zippel <zippel@linux-m68k.org>
20237             Nathan Sidwell  <nathan@codesourcery.com>
20238
20239         * emit-rtl.c (find_auto_inc): New.
20240         (try_split): recreate REG_INC notes,
20241         Use regular for loops rather than whiles.
20242
20243 2007-03-03  Andreas Schwab  <schwab@suse.de>
20244
20245         * configure.ac (HAVE_AS_REL16): Move test back to correct place.
20246         * configure: Regenerate.
20247
20248 2007-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20249
20250         * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
20251         flag_rounding_math, not flag_unsafe_math_optimizations.
20252
20253         * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
20254         fold_build2.
20255         * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
20256         alpha_fold_vector_minmax): Likewise.
20257         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
20258         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
20259
20260 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
20261
20262         * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
20263         (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
20264         if the lhs has side-effects.
20265         <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
20266
20267 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
20268
20269         * config/i386/i386.h (TUNEMASK): Remove define.
20270         (ARCHMASK): Remove define.
20271         (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
20272          Use ix86_arch_mask variable instead of ARCHMASK.
20273         * config/i386/i386.c (override_options): Ditto.
20274         (standard_80387_constant_p): Ditto.
20275
20276 2007-03-02  Ian Lance Taylor  <iant@google.com>
20277
20278         Used signed infinities in VRP.
20279         * tree-vrp.c (uses_overflow_infinity): New static function.
20280         (supports_overflow_infinity): New static function.
20281         (make_overflow_infinity): New static function.
20282         (negative_overflow_infinity): New static function.
20283         (positive_overflow_infinity): New static function.
20284         (is_negative_overflow_infinity): New static function.
20285         (is_positive_overflow_infinity): New static function.
20286         (is_overflow_infinity): New static function.
20287         (overflow_infinity_range_p): New static function.
20288         (compare_values_warnv): New function split out of compare_values.
20289         (compare_value): Call it.
20290         (set_value_range_to_nonnegative): Add overflow_infinity
20291         parameter.  Change caller.
20292         (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
20293         Change callers.
20294         (vrp_expr_computes_nonzero): Likewise.
20295         (compare_ranges, compare_range_with_value): Likewise.
20296         (compare_name_with_value, compare_names): Likewise.
20297         (vrp_evaluate_conditional): Likewise.
20298         (set_value_range): Handle infinity
20299         (vrp_operand_equal_p, operand_less_p): Likewise.
20300         (extract_range_from_assert): Likewise.
20301         (vrp_int_const_binop): Likewise.
20302         (extract_range_from_binary_expr): Likewise.
20303         (extract_range_from_unary_expr): Likewise.
20304         (extract_range_from_comparison): Likewise.
20305         (extract_range_from_expr): Likewise.
20306         (dump_value_range): Likewise.
20307         (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
20308         (test_for_singularity): Likewise.
20309         (vrp_int_const_binop): Remove inline qualifier.
20310         (adjust_range_with_scev): Add comment.
20311         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
20312
20313 2007-03-02  Diego Novillo  <dnovillo@redhat.com>
20314
20315         * tree-ssa-structalias.c (could_have_pointers): Tidy.
20316         (get_constraint_for): Likewise.
20317         (do_structure_copy): Likewise.
20318         (find_func_aliases): Fix references to MODIFY_EXPR.
20319         (intra_create_variable_infos): Tidy.
20320         * tree-ssa-operands.c (add_virtual_operand): Add argument
20321         IS_CALL_SITE.
20322         When adding members of alias sets, if IS_CALL_SITE is true and
20323         the symbol is not call-clobbered, skip it.
20324         Adjust all callers.
20325
20326 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
20327
20328         * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
20329         entry by means of emit_insn_at_entry.
20330
20331 2007-03-02  Richard Henderson  <rth@redhat.com>
20332
20333         * expr.h (promoted_input_arg): Remove decl.
20334         * function.c (promoted_input_arg): Merge into ...
20335         * combine.c (setup_incoming_promotions): ... only caller.
20336         Rearrange to avoid double loop.
20337
20338 2007-03-02  Ben Elliston  <bje@au.ibm.com>
20339             Peter Bergner  <bergner@vnet.ibm.com>
20340             Janis Johnson  <janis187@us.ibm.com>
20341
20342         * config/rs6000/dfp.md: New file.
20343         * config/rs6000/rs6000.md: Include dfp.md.
20344         (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
20345         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
20346         and TDmode decimal float modes in FP registers.
20347         (num_insns_constant): Likewise.
20348         (rs6000_legitimate_offset_address_p): Likewise.
20349         (rs6000_legitimize_address): Likewise.
20350         (rs6000_legitimize_reload_address): Likewise.
20351         (rs6000_legitimate_address): Likewise.
20352         (rs6000_emit_move): Likewise.
20353         (function_arg_boundary): Likewise.
20354         (function_arg_advance): Likewise.
20355         (rs6000_darwin64_record_arg_recurse): Likewise.
20356         (function_arg): Likewise.
20357         (rs6000_gimplify_va_arg): Likewise.
20358         (rs6000_split_multireg_move): Likewise.
20359         (rs6000_output_function_epilogue): Likewise.
20360         (rs6000_output_function_epilogue): Likewise.
20361         (rs6000_register_move_cost): Likewise.
20362         (rs6000_function_value): Likewise.
20363         (rs6000_libcall_value): Likewise.
20364
20365 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
20366
20367         * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
20368
20369 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
20370
20371         * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
20372         Use $MULTIDIR to choose between the kernel and RTP headers,
20373         and use $WIND_BASE and $WIND_USR to locate them.
20374
20375 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
20376
20377         * config/i386/i386.c (override_options): Put initialization of
20378         ix86_tune_mask and ix86_arch_mask to the correct place.
20379
20380 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
20381             Michael Meissner  <michael.meissner@amd.com>
20382
20383         PR target/31019
20384         * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
20385         (ARCHMASK): Define.
20386         (TARGET_CMOVE): Use ARCHMASK.
20387         (TARGET_CMPXCHG): Ditto.
20388         (TARGET_CMPXCHG8B): Ditto.
20389         (TARGET_XADD): Ditto.
20390         (TARGET_BSWAP): Ditto.
20391         * config/i386/i386.c (ix86_tune_mask): New global variable.
20392         (ix86_arch_mask): Ditto.
20393         (override_options): Initialize ix86_tune_mask and
20394         ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
20395         target_flags.
20396
20397 2007-03-02  Ben Elliston  <bje@au.ibm.com>
20398
20399         PR 30992
20400         * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
20401
20402 2007-03-02  Joseph Myers  <joseph@codesourcery.com>
20403
20404         * target.h (init_dwarf_reg_sizes_extra): New target hook.
20405         * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
20406         * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
20407         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
20408         hook.
20409         * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
20410         rs6000_init_dwarf_reg_sizes_extra): New.
20411         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
20412         SPE register high parts.
20413
20414 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
20415
20416         * Makefile.in: Add install-pdf target as
20417         copied from automake v1.10 rules.
20418         * configure.ac: Add install-pdf to target list.
20419         * configure: Regenerate.
20420
20421 2007-03-01  Paul Brook  <paul@codesourcery.com>
20422
20423         * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
20424         modes to LDRD for DImode.
20425         (output_move_double): Fixup out of range ldrd/strd.
20426         (vfp_secondary_reload_class): Rename...
20427         (coproc_secondary_reload_class): ... to this.  Add wb argument.
20428         * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
20429         coproc_secondary_reload_class for CLASS_IWMMXT.
20430         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
20431         * arm-protos.h (coproc_secondary_reload_class): Update prototype.
20432
20433 2007-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
20434
20435         * tree-ssa-loop-prefetch.c (determine_unroll_factor): Bound the
20436         unroll factor by the estimated number of iterations.
20437         (loop_prefetch_arrays): Do not prefetch in loops that iterate less
20438         than prefetch latency.
20439
20440         * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
20441         decode_caches_intel, detect_caches_intel): New functions.
20442         (host_detect_local_cpu): Use detect_caches_amd and
20443         detect_caches_intel.
20444
20445 2007-03-01  Richard Henderson  <rth@redhat.com>
20446
20447         * expr.c (emit_move_complex_push): Export.
20448         (emit_move_complex_parts): Split out from ...
20449         (emit_move_complex): ... here.
20450         * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
20451         * config/i386/i386.md (movcdi): New.
20452
20453 2007-03-01  Uros Bizjak  <ubizjak@gmail.com>
20454
20455         * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
20456         size of mode1 to check for tieable modes in MMX case.
20457
20458 2007-03-01  Richard Sandiford  <richard@codesourcery.com>
20459
20460         * Makefile.in (rtlanal.o): Depend on tree.h.
20461         * rtl.h (offset_within_section_p, split_const): Declare.
20462         * rtlanal.c: Include tree.h.
20463         (offset_within_block_p): New function, taken from
20464         mips_offset_within_object_p.
20465         (split_const): New function, taken from mips_split_const.
20466         * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
20467         Declare.
20468         * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
20469         (CONSTANT_ADDRESS_P): Only accept legitimate constants.
20470         (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
20471         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
20472         (m68k_illegitimate_symbolic_constant_p): New function.
20473         * config/m68k/m68k.md (movsi): Remove misleading predicates.
20474         If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
20475         symbolic constant that might be outside the symbol's section,
20476         move the symbol first and then add the offset.
20477         * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
20478         Override.
20479         * config/mips/mips.c (mips_split_const): Delete.
20480         (mips_offset_within_object_p): Delete.
20481         (mips_symbolic_constant_p): Use offset_within_section_p and
20482         split_const instead of mips_offset_within_object_p and
20483         mips_split_const.
20484         (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
20485         (mips_legitimize_const_move, print_operand_reloc)
20486         (mips_dangerous_for_la25_p): Use split_const instead of
20487         mips_split_const.
20488
20489 2007-02-28  Eric Christopher  <echristo@apple.com>
20490
20491         * Makefile.in (install-include-dir): Don't rm -rf include.
20492
20493 2007-02-28  Richard Guenther  <rguenther@suse.de>
20494
20495         PR middle-end/30364
20496         * fold-const.c (fold_binary): Do not associate expressions
20497         with more than one variable for integer types that do not wrap.
20498
20499 2007-02-28  Sandra Loosemore  <sandra@codesourcery.com>
20500
20501         * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
20502         Delete, and replace with...
20503         (fold_builtin_call_array): This.  Update callers to use it.
20504         * fold-const.c (fold_build_call_list): Delete, and replace with...
20505         (fold_build_call_array): This.
20506         (fold_build_call_list_initializer): Delete, and replace with...
20507         (fold_build_call_array_initializer): This.
20508         * tree.h: Update declarations to reflect above changes.
20509
20510         * c-typeck.c (build_function_call): Store converted arguments
20511         in a stack-allocated array instead of building a list.
20512         (convert_arguments): Store arguments in the array passed in as an
20513         argument, and return the actual number of arguments.
20514         * c-format.c: (check_function_format): Pass arguments in an
20515         array instead of a list.
20516         * c-common.c (check_function_nonnull): Likewise.
20517         (check_function_sentinel): Likewise.
20518         (check_function_arguments): Likewise.
20519         * c-common.h: Update declarations to reflect above changes.
20520
20521 2007-02-28  Jan Hubicka  <jh@suse.cz>
20522
20523         * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
20524         PRED_NEGATIVE_RETURN): Update outcomes.
20525
20526 2007-02-28  Bernd Schmidt  <bernd.schmidt@analog.com>
20527
20528         * calls.c (emit_library_call_value_1): Handle partial registers
20529         correctly when building up CALL_INSN_FUNCTION_USAGE.
20530
20531 2007-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20532
20533         * pa/predicates.md (move_src_operand): Allow zero for mode.
20534         * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
20535         move pattern.
20536
20537 2007-02-27  Uros Bizjak  <ubizjak@gmail.com>
20538
20539         PR target/30970
20540         * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
20541         *movv2df_internal): Enable pattern only for valid operand
20542         combinations.
20543         * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
20544         tie only 128bit modes. For MMX registers, tie only 64bit modes.
20545
20546 2007-02-27  Mike Stump  <mrs@apple.com>
20547
20548         * config/darwin-crt3.c: Avoid compilation when compiling for a
20549         kext multilib.
20550
20551 2007-02-27  Joseph Myers  <joseph@codesourcery.com>
20552
20553         * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
20554         FIXED_INCLUDE_DIR.
20555         (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
20556         for fixed headers and limits.h.
20557         (install-include-dir, install-headers-tar, install-headers-cpio,
20558         install-headers-cp, real-install-headers-tar,
20559         real-install-headers-cpio, real-install-headers-cp): Handle
20560         include-fixed as well as include.
20561         (install-mkheaders): Don't install files that go only in include
20562         not include-fixed.
20563         * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
20564         from GCC_INCLUDE_DIR.
20565         * gcc.c (process_command): Remove special -BstageN/ handling.
20566         (do_spec_1): Add include-fixed directories.
20567
20568 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
20569
20570         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
20571         _smulsi3_highpart.
20572         * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
20573         New functions.
20574         * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
20575         patterns.
20576
20577 2007-02-27  Mark Mitchell  <mark@codesourcery.com>
20578
20579         * c-common.c (get_priority): Add check for
20580         SUPPORTS_INIT_PRIORITY.
20581
20582 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
20583
20584         * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
20585
20586         * config/bfin/bfin.c: Include "cfglayout.h".
20587         (MAX_LSETUP_DISTANCE): New macro.
20588         (struct loop_info): New members incoming, incoming_src and
20589         incoming_dest.  Delete member predecessor.
20590         (length_for_loop): New function.
20591         (bfin_optimize_loop): Handle more different loop structures.
20592         (bfin_discover_loop): Rework detection of predecessor blocks by
20593         examining incoming edges.
20594         (bfin_discover_loops, bfin_free_loops): New functions, broken out of
20595         bfin_reorg_loops.
20596         (bfin_reorder_loops): New function.
20597         (bfin_reorg_loops): Use these three new functions.
20598
20599         * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
20600         REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
20601         (CONSTRAINT_LEN): Add entry for 'q'.
20602         (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
20603         Add 'q' constraints.
20604         (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
20605         (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
20606
20607         * config/bfin/bfin.md (add_with_carry): New pattern.
20608         (s_or_u, su_optab, su_modifier): New code macros/attrs.
20609         (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
20610         <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
20611         support unsigned multiplies too.  Removed incorrect commutativity from
20612         operand 1 constraint where appropriate.
20613         (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
20614         patterns.
20615         (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
20616         <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
20617         New patterns.
20618         (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
20619         usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
20620         usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
20621         usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
20622         usmulhisi_hh_huh): New patterns.
20623
20624         * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
20625         lshifthi3): Fix output template to use half reg for operand 2.
20626
20627         * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
20628         instead of R2.
20629
20630         * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
20631
20632 2007-02-27  Andreas Schwab  <schwab@suse.de>
20633
20634         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
20635
20636 2007-02-27  Jan Hubicka  <jh@suse.cz>
20637
20638         * predict.c (last_basic_block_p): Remove.
20639         (tree_estimate_probability): Update return heuristic for commonized
20640         return blocks.
20641
20642 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
20643
20644         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
20645
20646 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
20647
20648         * doc/include/gcc-common.texi (versionsubtitle): New macro.
20649         * doc/cpp.texi: Standardize title page.
20650         * doc/cppinternals.texi: Likewise.
20651         * doc/gcc.texi: Standardize title page, remove version number
20652         from copyright page.
20653         * doc/gccint.texi: Likewise.
20654         * doc/install.texi: Standardize title page, add table of
20655         contents.
20656
20657 2007-02-26  Jan Hubicka  <jh@suse.cz>
20658
20659         * predict.def: Set outcomes according to more recent results.
20660         (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
20661         Remove dead predictors.
20662         * predict.c (return_prediction): Fix pasto.
20663
20664 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
20665
20666         * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
20667         change; avoid a memory leak when returning early.
20668
20669 2007-02-26  Mark Mitchell  <mark@codesourcery.com>
20670
20671         * c-decl.c (static_ctors): Move to c-common.c.
20672         (static_dtors): Likewise.
20673         (finish_function): Use c_record_cdtor_fn.
20674         (build_cdtor): Move to c-common.c.
20675         (c_write_global_declarations): Use c_build_cdtor_fns.
20676         * c-common.h (static_ctors): Declare.
20677         (static_dtors): Likewise.
20678         (c_record_cdtor_fn): Likewise.
20679         (c_build_cdtor_fns): Likewise.
20680         * c-common.c (static_ctors): New variable.
20681         (static_dtors): Likewise.
20682         (c_record_cdtor_fn): New function.
20683         (build_cdtor): Move from c-decl.c
20684         (c_build_cdtor_fns): New function.
20685
20686         * output.h (assemble_addr_to_section): Declare.
20687         (get_cdtor_priority_section): Likewise.
20688         * varasm.c (assemble_addr_to_section): New function.
20689         (get_cdtor_priority_section): Likewise.
20690         (default_named_section_asm_out_destructor): Use them.
20691         (destor_dtor_section_asm_out_destructor): Likewise.
20692         (default_named_section_asm_out_constructor): Likewise.
20693         (default_ctor_section_asm_out_constructor): Likewise.
20694         * config.gcc (*-*-vxworks*): Include vxworks.o.
20695         * config/t-vxworks (vxworks.o): New target.
20696         * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
20697         (TARGET_ASM_CONSTRUCTOR): Define.
20698         (TARGET_ASM_DESTRUCTOR): Likewise.
20699         (vxworks_asm_out_constructor): Declare.
20700         (vxworks_asm_out_destructor): Likewise.
20701
20702         * c-common.c (get_priority): Check that we have not just an
20703         INTEGER_CST, but an integer constant with integeral type.
20704
20705 2007-02-25  Uros Bizjak  <ubizjak@gmail.com>
20706
20707         PR tree-optimization/30938
20708         * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
20709         use &dt[nargs-1] instead of &dt[nargs] in the call to
20710         vect_is_simple_use().
20711
20712 2007-02-25  Ulrich Weigand  <uweigand@de.ibm.com>
20713
20714         * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
20715         from register elimination as PRE_MODIFY / POST_MODIFY increments.
20716         Do not attempt to handle MEM inside auto-inc expressions.
20717         * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
20718         of a register modified by an auto-inc expression.  However, do handle
20719         elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
20720         (elimination_effects): Prohibit elimination of a register modified
20721         by an auto-inc expression.  Disable register elimination rules whose
20722         target register is modified by an auto-inc expression with variable
20723         increment.
20724
20725 2007-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
20726
20727         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
20728         off-by-one error.
20729         (array_at_struct_end_p): New function.
20730         (idx_infer_loop_bounds): Use it.
20731         (estimate_numbers_of_iterations_loop): Export.
20732         * predict.c (predict_loops): Use estimated_loop_iterations_int.
20733         Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
20734         (tree_estimate_probability): Call record_loop_exits.
20735         * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
20736         (estimated_loop_iterations, estimated_loop_iterations_int,
20737         estimated_loop_iterations_tree): New functions.
20738         (analyze_siv_subscript_cst_affine,
20739         compute_overlap_steps_for_affine_1_2,
20740         analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
20741         (analyze_miv_subscript): Use estimated_loop_iterations_tree.
20742         * predict.def (PRED_LOOP_ITERATIONS): Update comment.
20743         (PRED_LOOP_ITERATIONS_GUESSED): New.
20744         * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
20745         * cfgloop.h (estimate_numbers_of_iterations_loop,
20746         estimated_loop_iterations_int): Declare.
20747
20748 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
20749
20750         * doc/extend.texi: Document optional priority argument to
20751         constructors and destructors.
20752         * tree.c (init_priority_for_decl): Adjust GTY markers.
20753         (init_ttree): Use priority-info hash functions for
20754         init_priority_for_decl.
20755         (tree_map_eq): Rename to ...
20756         (tree_map_base_eq): ... this.
20757         (tree_map_marked_p): Rename to ...
20758         (tree_map_base_marked_p): ... this.
20759         (tree_map_base_hash): New function.
20760         (decl_init_priority_lookup): Rework.
20761         (decl_fini_priority_lookup): New function.
20762         (decl_priority_info): New function.
20763         (decl_init_priority_insert): Use it.
20764         (decl_fini_priority_insert): Likewise.
20765         (decl_restrict_base_lookup): Adjust for refactoring of tree_map
20766         hierarchy.
20767         (decl_restrict_base_insert): Likewise.
20768         (decl_debug_expr_insert): Likewise.
20769         (decl_value_expr_lookup): Likewise.
20770         (decl_value_expr_insert): Likewise.
20771         * tree.h (priority_type): New type.
20772         (decl_init_priority_lookup): Use priority_type.
20773         (decl_fini_priority_lookup): New function.
20774         (decl_init_priority_insert): Use priority_type.
20775         (decl_fini_priority_insert): New function.
20776         (DECL_HAS_INIT_PRIORITY): Tweak comments.
20777         (DECL_INIT_PRIORITY): Likewise.
20778         (SET_DECL_INIT_PRIORITY): Add comment.
20779         (DECL_FINI_PRIORITY): New macro.
20780         (SET_DECL_FINI_PRIORITY): Likewise.
20781         (DEFAULT_INIT_PRIORITY): Document.
20782         (MAX_INIT_PRIORITY): Likewise.
20783         (MAX_RESERVED_INIT_PRIORITY): Likewise.
20784         (tree_map_base): New type.
20785         (tree_map_base_eq): New function.
20786         (tree_map_base_hash): Likewise.
20787         (tree_map_base_marked_p): Likewise.
20788         (tree_map): Inherit from tree_map_base.
20789         (tree_map_eq): Make it a macro.
20790         (tree_map_marked_p): Likewise.
20791         (tree_int_map): Inherit from tree_map_base.
20792         (tree_int_map_eq): Make it a macro.
20793         (tree_int_map_hash): Likewise.
20794         (tree_int_map_marked_p): Likewise.
20795         (tree_priority_map): New type.
20796         (tree_priority_map_eq): New macro.
20797         (tree_priority_map_hash): Likewise.
20798         (tree_priority_map_marked_p): Likewise.
20799         * varasm.c (emults_decl): Adjust for refactoring of tree_map
20800         hierarchy.
20801         (emutls_common_1): Likewise.
20802         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
20803         * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
20804         of tree_map hierarchy.
20805         * tree-cfg.c (move_stmt_r): Likewise.
20806         (new_label_mapper): Likewise.
20807         * c-tree.h (c_expand_body): Move to ...
20808         * c-common.h (c_expand_body): ... here.
20809         * c-decl.c (c_expand_body): Move to ...
20810         * c-common.c (c_expand_body): ... here.
20811         (c_common_attribute_table): Allow 1 argument for the constructor
20812         and destructor attributes.
20813         (get_priority): New function.
20814         (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
20815         (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
20816
20817 2007-02-24  Jan Hubicka  <jh@suse.cz>
20818
20819         PR middle-end/30509
20820         * tree-inline.c (copy_bb): Produce exact copy of EH info when
20821         copying for inlining.
20822
20823 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
20824             Jan Hubicka  <jh@suse.cz>
20825
20826         PR target/30778
20827         * i386.c (counter_mode): New function.
20828         (expand_set_or_movmem_via_loop): Use it.
20829         (expand_movmem_epilogue): Likewise; fix pasto.
20830         (ix86_expand_movmem): Do emit guard even for constant counts.
20831         (ix86_expand_setmem): Likewise.
20832
20833 2007-02-25  Nick Clifton  <nickc@redhat.com>
20834
20835         * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
20836         (JUMP_TABLES_IN_TEXT_SECTION): Define.
20837
20838 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
20839
20840         PR target/30770
20841         * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
20842         count argument with 0x10, not with 0x16.
20843         (expand_setmem_epilogue): Ditto.
20844
20845 2007-02-24  Mike Stump  <mrs@apple.com>
20846
20847         * config/i386/i386.c (output_pic_addr_const): Stubify optimized
20848         symbols.
20849
20850 2007-02-24  Richard Guenther  <rguenther@suse.de>
20851
20852         PR middle-end/30951
20853         * fold-const.c (fold_binary): Fold x +- CST op x for
20854         EQ_EXPR and NE_EXPR.
20855
20856 2007-02-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20857
20858         * pa.md (muldi3): Force subregs to registers in 64-bit expander.
20859
20860 2007-02-24  Jan Hubicka  <jh@suse.cz>
20861
20862         * cgraphunit.c (decide_is_function_needed): Honor
20863         -fkeep-inline-functions.
20864
20865 2007-02-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20866
20867         * builtins.c (fold_builtin_modf): New.
20868         (fold_builtin_2): Use it.
20869
20870 2007-02-24  Bernd Schmidt  <bernd.schmidt@analog.com>
20871
20872         * loop-iv.c (implies_p): Detect additional cases where A implies B.
20873         (determine_max_iter): Take additional LOOP arg; all callers changed.
20874         Lose broken logic dealing with PLUS.  Try to limit the upper bound by
20875         one using simplifications.
20876         (simplify_using_initial_values): Return if the expression becomes
20877         invalid due to altered regs.
20878
20879 2007-02-23  DJ Delorie  <dj@redhat.com>
20880
20881         * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
20882
20883 2007-02-23  Mike Stump  <mrs@apple.com>
20884
20885         * tlink.c (scan_linker_output): Parse linker messages from
20886         darwin9's linker better.
20887
20888 2007-02-23  Steve Ellcey  <sje@cup.hp.com>
20889
20890         PR debug/29614
20891         * varpool.c (varpool_assemble_pending_decls): Set
20892         varpool_last_needed_node to null.
20893
20894 2007-02-23  DJ Delorie  <dj@redhat.com>
20895
20896         * config/i386/i386.c (ix86_data_alignment): Don't specify an
20897         alignment bigger than the object file can handle.
20898
20899 2007-02-23  Uros Bizjak  <ubizjak@gmail.com>
20900
20901         PR target/30825
20902         * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
20903         zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
20904         (*movsf_1): Penalize MMX moves.
20905
20906 2007-02-23  Bernd Schmidt  <bernd.schmidt@analog.com>
20907
20908         * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
20909         2^32-1 or more times unless flag_unsafe_loop_optimizations.
20910
20911         * loop-iv.c (determine_max_iter): Moved in front of its sole user.
20912
20913 2007-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20914
20915         * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
20916         (fold_builtin_1): Use them.
20917         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
20918         BUILT_IN_SIGNIFICAND.
20919
20920 2007-02-23  H.J. Lu  <hongjiu.lu@intel.com>
20921
20922         * config/i386/i386.c (bdesc_1arg): Initialize
20923         IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
20924         "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
20925         (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
20926         and IX86_BUILTIN_MOVSLDUP.
20927
20928 2007-02-22  Paolo Bonzini  <bonzini@gnu.org>
20929
20930         PR rtl-optimization/30841
20931         * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
20932
20933 2007-02-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20934
20935         * builtins.c (fold_builtin_frexp): New.
20936         (fold_builtin_2): Use it.
20937
20938 2007-02-22  Mark Mitchell  <mark@codesourcery.com>
20939
20940         * doc/invoke.texi (Spec Files): Document getenv spec function.
20941
20942         * gcc.c (getenv_spec_function): New function.
20943         (static_spec_functions): Add it.
20944         * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
20945         (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
20946         header files.
20947
20948 2007-02-22  Michael Matz  <matz@suse.de
20949
20950         PR c++/29433
20951         * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
20952         (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
20953
20954 2007-02-22  Ian Lance Taylor  <iant@google.com>
20955
20956         PR debug/30898
20957         * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
20958         (mem_loc_descriptor): Call it.
20959
20960 2007-02-22  Zdenek Dvorak  <dvorakz@suse.cz>
20961             Ira Rosen  <irar@il.ibm.com>
20962
20963         * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
20964
20965 2007-02-22  Ira Rosen  <irar@il.ibm.com>
20966
20967         PR tree-optimization/30843
20968         * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
20969         stores only after all the group is vectorized.
20970
20971 2007-02-22  Dorit Nuzman  <dorit@il.ibm.com>
20972
20973         PR tree-optimization/30858
20974         * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
20975         in the reduction cycle have a single use in the loop.
20976         * tree-vectorizer.h (relevant): Add documentation.
20977
20978 2007-02-20  Mike Stump  <mrs@apple.com>
20979
20980         * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
20981         * configure: Regenerate.
20982
20983 2007-02-21  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
20984
20985         Change the defaults of some parameters and options.
20986         * config/spu/spu-protos.h (spu_optimization_options): Declare.
20987         * config/spu/spu.c (spu_optimization_options): Add.
20988         (spu_override_options): Change params in spu_optimization_options.
20989         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
20990
20991         Register 127 is only 16 byte aligned when used as a frame pointer.
20992         * config/spu/spu-protos.h (spu_init_expanders): Declare.
20993         * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
20994         HARD_FRAME_POINTER_REGNUM.
20995         (spu_legitimate_address): Use regno_aligned_for_reload.
20996         (regno_aligned_for_load): HARD_FRAME_POINTER_REGNUM is only 16 byte
20997         aligned when frame_pointer_needed is true.
20998         (spu_init_expanders): New.  Set alignment of HARD_FRAME_POINTER_REGNUM
20999         to 8 bits.
21000         * config/spu/spu.h (INIT_EXPANDERS): Define.
21001
21002         Make sure shift and rotate instructions have valid immediate operands.
21003         * config/spu/predicates.md (spu_shift_operand): Remove.
21004         * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
21005         * config/spu/constraints.md (W, O): Extend range.
21006         * config/spu/spu.md (umask, nmask): Define.
21007         (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
21008         lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
21009         rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
21010         rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
21011         spu_nonmem_operand instead of spu_shift_operands.  Use new modifiers.
21012         (lshr<mode>3_reg): Fix rtl description.
21013
21014         Make sure mulhisi immediate operands are valid.
21015         * config/spu/predicates.md (imm_K_operand): Add.
21016         * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
21017
21018         Generate constants using fsmbi and andi.
21019         * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
21020         (print_operand, spu_split_immediate, classify_immediate,
21021         fsmbi_const_p): Handle IC_FSMBI2.
21022
21023         Correctly handle a CONST_VECTOR containing symbols.
21024         * config/spu/spu.c (print_operand): Handle HIGH correctly.
21025         (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
21026         (immediate_load_p): Allow symbols that use 2 instructions to create.
21027         (classify_immediate, spu_builtin_splats): Don't accept a CONST_VECTOR
21028         with symbols when flag_pic is set.
21029         (const_vector_immediate_p): New.
21030         (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
21031         accept a CONST_VECTOR with symbols.
21032         (spu_legitimate_constant_p): Use const_vector_immediate_p.  Don't
21033         accept a CONST_VECTOR with symbols when flag_pic is set.  Handle HIGH
21034         correctly.
21035         * config/spu/spu.md (high, low): Delete.
21036         (low_<mode>): Define.
21037
21038         Remove INTRmode and INTR_REGNUM, which didn't work.
21039         * config/spu/spu.c (spu_conditional_register_usage): Remove reference
21040         of INTR_REGNUM.
21041         * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
21042         set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
21043         peephole2 pattern): Don't use INTR or 131.
21044         (movintrcc): Delete.
21045         * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
21046         CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
21047         * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
21048         (UNSPEC_SET_INTR): Add.
21049         * config/spu/spu-modes.def (INTR): Remove.
21050
21051         More accurate warnings about run-time relocations.
21052         * config/spu/spu.c (reloc_diagnostic): Test in_section.
21053
21054         Correctly warn about immediate arguments to specific intrinsics.
21055         * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
21056         (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
21057         the instruction predicate.
21058
21059         Fix tree check errors with latest update.
21060         * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
21061         CALL_EXPR_ARG.
21062         (spu_expand_builtin): Use CALL_EXPR_FN.
21063
21064         Add missing specific intrinsics.
21065         * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
21066         si_bislede.
21067         * config/spu/spu_internals.h: Ditto.
21068
21069         Fix incorrect operand modifiers.
21070         * config/spu/spu-builtins.md (spu_mpy, spu_mpyu): Remove use of %H.
21071         * config/spu/spu.md (xor<mode>3): Change %S to %J.
21072
21073         Optimize one case of zero_extend of a vec_select.
21074         * config/spu/spu.md (_vec_extractv8hi_ze): Add.
21075
21076         Accept any immediate for hbr.
21077         * config/spu/spu.md (hbr): Change s constraints to i.
21078
21079 2007-02-21  Paul Brook  <paul@codesourcery.com>
21080
21081         * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
21082         condexec_count when skipping USE and CLOBBER.
21083
21084 2007-02-21  Nick Clifton  <nickc@redhat.com>
21085
21086         * common.opt (Warray-bounds): Add Warning attribute.
21087         (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
21088         Likewise.
21089         (fsized-zeroes): Add Optimization attribute.
21090         (fsplit-wide-types, ftree-scev-cprop): Likewise.
21091         * c.opt (Wc++0x-compat): Add Warning attribute.
21092
21093 2007-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
21094
21095         PR middle-end/30761
21096         * reload1.c (eliminate_regs_in_insn): In the single_set special
21097         case, attempt to re-recognize the insn before falling back to
21098         having reload fix it up.
21099
21100 2007-02-20  Eric Christopher  <echristo@gmail.com>
21101
21102         * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
21103         Rewrite accordingly.
21104         (frv_read_iacc_argument): Ditto.
21105         (frv_expand_set_builtin): Take a call instead of arglist, update for
21106         above changes.
21107         (frv_expand_unop_builtin): Ditto.
21108         (frv_expand_binop_builtin): Ditto.
21109         (frv_expand_cut_builtin): Ditto.
21110         (frv_expand_binopimm_builtin): Ditto.
21111         (frv_expand_voidbinop_builtin): Ditto.
21112         (frv_expand_int_void2arg): Ditto.
21113         (frv_expand_prefetches): Ditto.
21114         (frv_expand_voidtriop_builtin): Ditto.
21115         (frv_expand_voidaccop_builtin): Ditto.
21116         (frv_expand_load_builtin): Ditto.
21117         (frv_expand_store_builtin): Ditto.
21118         (frv_expand_mdpackh_builtin): Ditto.
21119         (frv_expand_mclracc_builtin): Ditto.
21120         (frv_expand_mrdacc_builtin): Ditto.
21121         (frv_expand_mwtacc_builtin): Ditto.
21122         (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
21123         calls for above.
21124
21125 2007-02-20  Janis Johnson  <janis187@us.ibm.com>
21126
21127         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
21128         * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
21129         cmpb instruction.
21130         (HAVE_GAS_DFP): Check for assembler support of decimal floating
21131         point instructions.
21132         * configure: Regenerate.
21133         * config.in: Regenerate.
21134         * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
21135         * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
21136         masks to power6 and power6x and to POWERPC_MASKS.
21137         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
21138         _ARCH_PWR6.
21139         * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
21140         * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
21141         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
21142         Access PROTOTYPE as variable, not mask.
21143
21144 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
21145
21146         * rtl.h (remove_reg_equal_equiv_notes): New prototype.
21147         * rtlanal.c (remove_reg_equal_equiv_notes): New function.
21148         * combine.c (adjust_for_new_dest): Use it.
21149         * postreload.c (reload_combine): Likewise.
21150
21151 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
21152
21153         * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
21154         notes on an insn with multiple sets, even if single_set returns
21155         non-NULL for that insn.
21156
21157 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21158
21159         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
21160         scalbn and scalbln.
21161
21162 2007-02-20  Geoffrey Keating  <geoffk@apple.com>
21163
21164         * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
21165         if user didn't pass it.
21166         * config/i386/darwin.h (CC1_SPEC): Likewise.
21167         * config/rs6000/darwin.h (CC1_SPEC): Likewise.
21168         (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
21169         -mmacosx-version-min.
21170
21171 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21172             Uros Bizjak  <ubizjak@gmail.com>
21173
21174         * optabs.h (enum optab_index): Add new OTI_scalb.
21175         (scalb_optab): Define corresponding macro.
21176         * optabs.c (init_optabs): Initialize scalb_optab.
21177         * genopinit.c (optabs): Implement scalb_optab using scalb?f3
21178         patterns.
21179         * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
21180         BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
21181         (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
21182         and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
21183         flag_unsafe_math_optimizations is set.
21184
21185         * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
21186         to implement scalbf, scalb and scalbl built-ins as inline x87
21187         intrinsics.
21188
21189 2007-02-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21190             DJ Delorie <dj@redhat.com>
21191
21192         PR other/30824
21193         * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
21194         (diagnostic_report_diagnostic): ... here, and turn them into real
21195         errors. If warnings are inhibited, no need to do anything.
21196
21197 2007-02-20  Uros Bizjak  <ubizjak@gmail.com>
21198
21199         * config/i386/i386.md (expm1xf2): Reorder insn sequence for
21200         better code generation.
21201
21202 2007-02-20  Ben Elliston  <bje@au.ibm.com>
21203
21204         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
21205
21206 2007-02-20  Kazu Hirata  <kazu@codesourcery.com>
21207
21208         * config/alpha/alpha.c, config/alpha/alpha.md,
21209         config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
21210         config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
21211         config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
21212         config/arm/lib1funcs.asm: Follow spelling conventions.
21213
21214         * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
21215         config/fr30/fr30.md, config/i386/i386.h,
21216         config/iq2000/iq2000.h, config/iq2000/predicates.md,
21217         config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
21218         config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
21219         config/pdp11/pdp11.c, config/pdp11/pdp11.h,
21220         config/rs6000/altivec.md, config/rs6000/rs6000.c,
21221         config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
21222         config/sparc/sparc.c, config/sparc/sparc.h,
21223         config/sparc/sparc.md, config/spu/constraints.md,
21224         config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
21225         conventions.
21226
21227 2007-02-20  Alan Modra  <amodra@bigpond.net.au>
21228
21229         PR target/29943
21230         * varasm.c (use_blocks_for_decl_p): Return false for decls with
21231         alias attribute.
21232
21233 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
21234
21235         * doc/invoke.texi (-ftree-lrs): Remove.
21236
21237 2007-02-19  Diego Novillo  <dnovillo@redhat.com>
21238
21239         * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
21240         NULL.
21241
21242 2007-02-19  Lee Millward  <lee.millward@codesourcery.com>
21243
21244         * config/ia64/ia64.c (ia64_expand_builtin): Use the
21245         new CALL_EXPR_FN macro for retrieving the function
21246         declaration of the input expression.
21247
21248 2007-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21249
21250         * c.opt (Waddress): New.
21251         * common.opt (Walways-true): Delete.
21252         (Wstring-literal-comparison): Delete.
21253         * doc/invoke.texi (Warning Options): Delete -Walways-true and
21254         -Wstring-literal-comparison. Add -Waddress.
21255         (Waddress): New.
21256         (Walways-true): Delete.
21257         (Wstring-literal-comparison): Delete.
21258         * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
21259         consistently instead of -Walways-true in example.
21260         * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
21261         * c-typeck.c (parser_build_binary_op): Replace
21262         -Wstring-literal-comparison and -Walways-true with -Waddress.
21263         * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
21264         with -Waddress.
21265
21266 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
21267
21268         * tree-cfg.c (dump_function_to_file): Be prepared for functions
21269         without DECL_STRUCT_FUNCTION initialized.
21270
21271 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
21272
21273         * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
21274         due to calls to functions taking pointers as parameters.
21275
21276 2007-02-19  Richard Henderson  <rth@redhat.com>
21277
21278         PR debug/29558
21279         * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
21280         in memory.
21281
21282 2007-02-19  Andreas Krebbel  <krebbel1@de.ibm.com>
21283
21284         * config/s390/s390.c (s390_call_saved_register_used,
21285         s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
21286         accessed to the new scheme.
21287
21288 2007-02-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
21289
21290         * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
21291         (cris_print_index, cris_print_operand, cris_print_operand_address)
21292         (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
21293         (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
21294         (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
21295         GET_CODE () == xxx.
21296         * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
21297         EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
21298         GO_IF_LEGITIMATE_ADDRESS): Ditto.
21299         * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
21300         (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
21301         (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
21302         (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
21303         (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
21304         (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
21305         (uminsi3, call, call_value): Ditto.
21306         (define_split: indir_to_reg_split, unnamed): Ditto.
21307
21308 2007-02-19  Dorit Nuzman  <dorit@il.ibm.com>
21309
21310         PR tree-optimization/30975
21311         * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
21312         wrong assert.
21313
21314 2007-02-18  Eric Christopher  <echristo@gmail.com>
21315
21316         * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
21317         Remove use of arglist.
21318         (mips_expand_builtin): Remove use of arglist, pass in expr.
21319         (mips_expand_builtin_direct): Rewrite handling for arglist removal.
21320         (mips_expand_builtin_movtf): Ditto.
21321         (mips_expand_builtin_compare): Ditto.
21322
21323 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
21324
21325         * tree-sra.c (sra_build_assignment): Replace assertion
21326         checking with a comment explaining why it can't be done.
21327
21328 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
21329
21330         PR middle-end/30833
21331         * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
21332         during CALL_EXPR representation conversion.
21333         * tree-ssa-propagate.c (set_rhs): Likewise.
21334
21335 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
21336
21337         * tree-sra.c (sra_build_assignment): Disable assertion checking
21338         for now.
21339
21340 2007-02-18  Roger Sayle  <roger@eyesopen.com>
21341
21342         * function.c (gimplify_parameters): Call build_gimple_modify_stmt
21343         instead of calling build2 with a GIMPLE_MODIFY_STMT.
21344         * gimple-low.c (lower_function_body, lower_builtin_setjmp):
21345         Likewise.
21346         * gimplify.c (build_stack_save_restore, gimplify_return_expr,
21347         gimplify_decl_expr,  gimplify_self_mod_expr, gimplify_cond_expr,
21348         gimplify_init_ctor_eval_range, gimple_push_cleanup,
21349         gimplify_omp_for, gimplify_omp_atomic_pipeline,
21350         gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
21351         force_gimple_operand): Likewise.
21352         * ipa-cp.c (constant_val_insert): Likewise.
21353         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
21354         lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
21355         perfect_nestify): Likewise.
21356         * langhooks.c (lhd_omp_assignment): Likewise.
21357         * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
21358         lower_copyprivate_clauses, lower_send_clauses,
21359         lower_send_shared_vars, expand_parallel_call,
21360         expand_omp_for_generic, expand_omp_for_static_nochunk,
21361         expand_omp_for_static_chunk, expand_omp_sections,
21362         lower_omp_single_copy, lower_omp_for_lastprivate,
21363         lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
21364         * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
21365         tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
21366         Likewise.
21367
21368 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
21369
21370         * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
21371         config/sh/sh.md: Follow spelling conventions.
21372
21373         * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
21374         config/frv/predicates.md: Follow spelling conventions.
21375
21376         * config/m68k/linux-unwind.h: Fix a comment typo.
21377         * target.h: Follow spelling conventions.
21378
21379 2007-02-18  Roger Sayle  <roger@eyesopen.com>
21380
21381         PR rtl-optimization/28173
21382         * simplify-rtx.c (simplify_binary_operation_1) <IOR>: Optimize
21383         (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
21384         Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
21385         Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
21386         <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
21387
21388 2007-02-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21389
21390         * builtins.c (fold_builtin_load_exponent): New.
21391         (fold_builtin_2): Use it.
21392
21393 2007-02-18  Steven Bosscher  <steven@gcc.gnu.org>
21394
21395         PR rtl-optimization/30773
21396         * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
21397         if we fail to attach a REG_EQUIV note.
21398
21399 2007-02-18  David Edelsohn  <edelsohn@gnu.org>
21400             Roger Sayle  <roger@eyesopen.com>
21401
21402         * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
21403
21404 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
21405
21406         * calls.c (initialize_argument_information): Pass original EXP
21407         and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments.  Move
21408         code to split complex arguments here, as part of initializing the
21409         ARGS array.
21410         (expand_call): Remove code that builds a list of arguments and
21411         inserts implicit arguments into it.  Instead, just count how many
21412         implicit arguments there will be so we can determine the size of
21413         the ARGS array, and let initialize_argument_information do the work.
21414         (split_complex_values): Delete unused function.
21415
21416 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
21417
21418         * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
21419
21420 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
21421
21422         * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
21423         for arg pointer based indexed addressing.
21424
21425 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
21426
21427         * config/ia64/ia64.h, config/ia64/ia64.md,
21428         config/ia64/predicates.md, config/ia64/sysv4.h: Follow
21429         spelling conventions.
21430
21431 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
21432
21433         * config/m68k/m68k.c (split_di): New.
21434         * config/m68k/m68k-protos.h: Declare split_di.
21435         * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
21436           Improve predicate handling and split constant shifts.
21437
21438 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
21439
21440         * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
21441         parameter for register bitfield operations, general predicates
21442         cleanup
21443
21444 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
21445
21446         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
21447         * config/m68k/linux-unwind.h: New file.
21448
21449 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
21450
21451         * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
21452         config/i386/athlon.md, config/ia64/ia64.md,
21453         config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
21454         df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
21455         ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
21456         tree-ssa-loop-niter.c, tree-vect-analyze.c,
21457         tree-vect-transform.c: Fix comment typos.
21458
21459 2007-02-17  Kazu Hirata  <kazu@codesourcery.com>
21460
21461         * sched-deps.c (find_insn_list): Remove.
21462         * sched-int.h: Remove the prototype for find_insn_list.
21463
21464 2007-02-16  Geoffrey Keating  <geoffk@apple.com>
21465
21466         * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
21467         to linker.
21468         (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
21469         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
21470         darwin_rs6000_override_options.
21471         (C_COMMON_OVERRIDE_OPTIONS): Expect
21472         darwin_macosx_version_min to be non-NULL always.
21473         (TARGET_C99_FUNCTIONS): Likewise.
21474         (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
21475         (DARWIN_MINVERSION_SPEC): New.
21476         * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
21477         * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
21478         to cc1*.
21479         (DARWIN_MINVERSION_SPEC): New.
21480         * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
21481         value.
21482         * config/darwin-c.c (darwin_cpp_builtins): Expect
21483         darwin_macosx_version_min to be non-NULL always.
21484
21485         * config/rs6000/rs6000.c: Clean up trailing whitespace.
21486
21487 2007-02-16  Uros Bizjak  <ubizjak@gmail.com>
21488
21489         * config/i386/i386.h (x86_use_xchgb): New.
21490         (TARGET_USE_XCHGB): New macro.
21491         * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
21492         * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
21493         Split after reload into bswaphi for shifts of 8.
21494         (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
21495         (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
21496         or when optimizing for size.
21497
21498 2007-02-16  Richard Guenther  <rguenther@suse.de>
21499             Christian Bruel  <christian.bruel@st.com>
21500
21501         * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
21502         DECLs but prefer SSA_NAMEs over DECLs.
21503
21504 2007-02-16  Richard Guenther  <rguenther@suse.de>
21505
21506         * tree-flow-inline.h (single_imm_use_p): Remove.
21507         (zero_imm_uses_p): Likewise.
21508         * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
21509         instead of single_imm_use_p.
21510         * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
21511         zero_imm_uses_p.
21512
21513 2007-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21514
21515         PR other/27843
21516         * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
21517         nested double- and backquotes.
21518
21519 2007-02-15  Roger Sayle  <roger@eyesopen.com>
21520
21521         PR middle-end/30391
21522         * tree.c (expr_align): Handle MODIFY_EXPR.  GIMPLE_MODIFY_STMT
21523         should be unreachable.
21524         (build2_stat): Allow construction of MODIFY_EXPR at any time.
21525         For the time being redirect GIMPLE_MODIFY_STMT to the new
21526         (renamed) build_gimple_modify_stmt_stat.
21527         (build2_gimple_stat): Rename to...
21528         (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
21529         Always build a GIMPLE_MODIFY_STMT node.
21530         * tree.h (build2_gimple, build2_gimple_stat): Delete.
21531         (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
21532         declarations.
21533
21534         * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
21535         gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
21536         * tree-complex.c (set_component_ssa_name, expand_complex_move,
21537         expand_complex_div_wide): Likewise.
21538         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
21539         * tree-ssa-loop-im.c (schedule_sm): Likewise.
21540         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
21541         * tree-ssa-loop-manip.c (create_iv): Likewise.
21542         * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
21543         abs_replacement): Likewise.
21544         * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
21545         realify_fake_stores): Likewise.
21546
21547         * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
21548         node rather than a GIMPLE_MODIFY_STMT node.
21549         (std_gimpify_va_arg_expr, expand_builtin_va_copy,
21550         fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
21551         Likewise.
21552         (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
21553         * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
21554         GIMPLE_MODIFY_STMT.
21555
21556 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21557
21558         PR middle-end/30433
21559         * fold-const.c (fold_comparison): Add back the
21560         folding of constant complex comparisions.
21561
21562 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21563
21564         PR middle-end/30729
21565         * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
21566         effects unknown to this function, return early.
21567
21568 2007-02-15  Ian Lance Taylor  <iant@google.com>
21569
21570         * lower-subreg.c (move_eh_region_note): New static function.
21571         (resolve_simple_move): Call it.
21572         (decompose_multiword_subregs): Track blocks for which we resolve a
21573         simple move which is also a control flow insn.  Pass them to
21574         find_many_sub_basic_blocks.
21575         (pass_lower_subreg): Add TODO_verify_flow.
21576         (pass_lower_subreg2): Likewise.
21577
21578 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
21579             Brooks Moses  <brooks.moses@codesourcery.com>
21580             Lee Millward  <lee.millward@codesourcery.com>
21581
21582         * tree.h (enum tree_code_class): Add tcc_vl_exp.
21583         (VL_EXP_CLASS_P): New.
21584         (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
21585         TREE_CODE_LENGTH.
21586         (TREE_OPERAND_CHECK_CODE): Likewise.
21587         (GIMPLE_STMT_OPERAND_CHECK): Likewise.
21588         (TREE_RTL_OPERAND_CHECK): Likewise.
21589         (tree_operand_check_failed): Make second parameter the whole tree
21590         instead of its code.  Fixed callers.
21591         (VL_EXP_CHECK): New.
21592         (TREE_OPERAND_LENGTH): New.
21593         (VL_EXP_OPERAND_LENGTH): New.
21594         (CALL_EXPR_FN): New.
21595         (CALL_EXPR_STATIC_CHAIN): New.
21596         (CALL_EXPR_ARGS): New.
21597         (CALL_EXPR_ARG): New.
21598         (call_expr_nargs): New.
21599         (CALL_EXPR_ARGP): New.
21600         (build_nt_call_list): Declare.
21601         (build_vl_exp_stat): Declare.
21602         (build_vl_exp): New.
21603         (build_call_list): Declare.
21604         (build_call_nary): Declare.
21605         (build_call_valist): Declare.
21606         (build_call_array): Declare.
21607         (call_expr_arg): Declare.
21608         (call_expr_argp): Declare.
21609         (call_expr_arglist): Declare.
21610         (fold_build_call_list): Declare.
21611         (fold_build_call_list_initializer): Declare.
21612         (fold_call_expr): Declare to replace fold_builtin.
21613         (fold_builtin_fputs): Update to agree with modified definition.
21614         (fold_builtin_strcpy): Likewise.
21615         (fold_builtin_strncpy): Likewise.
21616         (fold_builtin_memory_chk): Likewise.
21617         (fold_builtin_stxcpy_chk): Likewise.
21618         (fold_builtin_strncpy_chk): Likewise.
21619         (fold_builtin_next_arg): Likewise.
21620         (fold_build_call_expr): Declare.
21621         (fold_builtin_call_list): Declare.
21622         (fold_builtin_call_valist): Declare.
21623         (build_call_expr): Declare.
21624         (validate_arglist): Update to agree with modified definition.
21625         (tree_operand_length): New.
21626         (call_expr_arg_iterator): New.
21627         (init_call_expr_arg_iterator): New.
21628         (next_call_expr_arg): New.
21629         (first_call_expr_arg): New.
21630         (more_call_expr_args_p): New.
21631         (FOR_EACH_CALL_EXPR_ARG): New.
21632
21633         * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
21634         and tcc_gimple_stmt.
21635         (tree_code_size): Update documentation.  Use sizeof (tree) rather
21636         than sizeof (char *).
21637         (tree_size): Likewise.  Add case for tcc_vl_exp.
21638         (tree_node_structure): Add case for tcc_vl_exp.
21639         (contains_placeholder_p): Likewise.
21640         (substitute_in_expr): Likewise.
21641         (substitute_placeholder_in_expr): Likewise.
21642         (stabilize_reference_1): Likewise.
21643         (build3_stat): Remove logic for CALL_EXPRs.  Replace with assertion
21644         to diagnose breakage of this interface for constructing CALL_EXPRs.
21645         (build_nt): Add similar assertion here.
21646         (build_nt_call_list): New.
21647         (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
21648         (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
21649         TREE_CODE_LENGTH.
21650         (get_callee_fndecl): Use new CALL_EXPR accessors.
21651         (tree_operand_check_failed): Change parameters to pass entire node
21652         instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
21653         (process_call_operands): New.
21654         (build_vl_exp_stat): New.
21655         (build_call_list): New.
21656         (build_call_nary): New.
21657         (build_call_valist): New.
21658         (build_call_array): New.
21659         (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
21660         (call_expr_arglist): New.
21661
21662         * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
21663         tcc_vl_exp instead of a fixed-size tcc_expression.
21664
21665         * doc/c-tree.texi (CALL_EXPR): Document new representation and
21666         accessors for CALL_EXPRs.
21667         (AGGR_INIT_EXPR): Likewise.
21668
21669 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
21670             Brooks Moses  <brooks.moses@codesourcery.com>
21671             Lee Millward  <lee.millward@codesourcery.com>
21672
21673         * builtins.c (c_strlen): Return NULL_TREE instead of 0.
21674         (expand_builtin_nonlocal_goto): Change parameter to be entire
21675         CALL_EXPR instead of an arglist.  Use new CALL_EXPR accessors.
21676         (expand_builtin_prefetch): Likewise.
21677         (expand_builtin_classify_type): Likewise.
21678         (mathfn_built_in): Return NULL_TREE instead of 0.
21679         (expand_errno_check): Use new CALL_EXPR accessors.
21680         (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
21681         Return NULL_RTX instead of 0.
21682         (expand_builtin_mathfn_2): Likewise.
21683         (expand_builtin_mathfn_3): Likewise.
21684         (expand_builtin_interclass_mathfn): Likewise.
21685         (expand_builtin_sincos): Likewise.
21686         (expand_builtin_cexpi): Likewise.
21687         (expand_builtin_int_roundingfn): Likewise.
21688         (expand_builtin_int_roundingfn_2): Likewise.
21689         (expand_builtin_pow): Likewise.
21690         (expand_builtin_powi): Likewise.
21691         (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
21692         of arglist, fixing callers appropriately.  Use new CALL_EXPR
21693         accessors and constructors.  Return NULL_RTX instead of 0.
21694         (expand_builtin_strstr): Likewise.
21695         (expand_builtin_strchr): Likewise.
21696         (expand_builtin_strrchr): Likewise.
21697         (expand_builtin_strpbrk): Likewise.
21698         (expand_builtin_memcpy): Likewise.
21699         (expand_builtin_mempcpy): Likewise.
21700         (expand_builtin_mempcpy_args): New.
21701         (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
21702         (expand_builtin_memmove_args): New.
21703         (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
21704         (expand_movstr): Likewise.
21705         (expand_builtin_strcpy): Likewise.
21706         (expand_builtin_strcpy_args): New.
21707         (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
21708         (expand_builtin_strncpy): Likewise.
21709         (expand_builtin_memset): Likewise.
21710         (expand_builtin_memset_args): New.
21711         (expand_builtin_bzero): Similarly to expand_builtin_memset.
21712         (expand_builtin_memcmp): Likewise.
21713         (expand_builtin_strcmp): Likewise.
21714         (expand_builtin_strncmp): Likewise.
21715         (expand_builtin_strcat): Likewise.
21716         (expand_builtin_strncat): Likewise.
21717         (expand_builtin_strspn): Likewise.
21718         (expand_builtin_strcspn): Likewise.
21719         (expand_builtin_args_info): Likewise.
21720         (expand_builtin_va_start): Likewise.
21721         (gimplify_va_arg_expr): Likewise.
21722         (expand_builtin_va_end): Likewise.
21723         (expand_builtin_va_copy): Likewise.
21724         (expand_builtin_frame_address): Likewise.
21725         (expand_builtin_alloca): Likewise.
21726         (expand_builtin_bswap): Likewise.
21727         (expand_builtin_unop): Likewise.
21728         (expand_builtin_fputs): Likewise.
21729         (expand_builtin_expect): Likewise.
21730         (expand_builtin_fabs): Likewise.
21731         (expand_builtin_copysign): Likewise.
21732         (expand_builtin_printf): Likewise.
21733         (expand_builtin_fprintf): Likewise.
21734         (expand_builtin_sprintf): Likewise.
21735         (expand_builtin_init_trampoline): Likewise.
21736         (expand_builtin_signbit): Likewise.
21737         (expand_builtin_fork_or_exec): Likewise.
21738         (expand_builtin_sync_operation): Likewise.
21739         (expand_builtin_compare_and_swap): Likewise.
21740         (expand_builtin_lock_test_and_set): Likewise.
21741         (expand_builtin_lock_release): Likewise.
21742         (expand_builtin): Likewise.
21743         (builtin_mathfn_code): Likewise.
21744
21745         (fold_builtin_constant_p): Pass call arguments individually instead
21746         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
21747         accessors and constructors.  Return NULL_TREE instead of 0.
21748         (fold_builtin_expect): Likewise.
21749         (fold_builtin_classify_type): Likewise.
21750         (fold_builtin_strlen): Likewise.
21751         (fold_builtin_nan): Likewise.
21752         (integer_valued_real_p): Likewise.
21753         (fold_trunc_transparent_mathfn): Likewise.
21754         (fold_fixed_mathfn): Likewise.
21755         (fold_builtin_cabs): Likewise.
21756         (fold_builtin_sqrt): Likewise.
21757         (fold_builtin_cbrt): Likewise.
21758         (fold_builtin_cos): Likewise.
21759         (fold_builtin_cosh): Likewise.
21760         (fold_builtin_tan): Likewise.
21761         (fold_builtin_sincos): Likewise.
21762         (fold_builtin_cexp): Likewise.
21763         (fold_builtin_trunc): Likewise.
21764         (fold_builtin_floor): Likewise.
21765         (fold_builtin_ceil): Likewise.
21766         (fold_builtin_round): Likewise.
21767         (fold_builtin_int_roundingfn): Likewise.
21768         (fold_builtin_bitop): Likewise.
21769         (fold_builtin_bswap): Likewise.
21770         (fold_builtin_logarithm): Likewise.
21771         (fold_builtin_hypot): Likewise.
21772         (fold_builtin_pow): Likewise.
21773         (fold_builtin_powi): Likewise.
21774         (fold_builtin_exponent): Likewise.
21775         (fold_builtin_memset): Likewise.
21776         (fold_builtin_bzero): Likewise.
21777         (fold_builtin_memory_op): Likewise.
21778         (fold_builtin_bcopy): Deleted; call site changed to invoke
21779         fold_builtin_memory_op directly.
21780         (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
21781         (fold_builtin_strncpy): Likewise.
21782         (fold_builtin_memcmp): Likewise.
21783         (fold_builtin_strcmp): Likewise.
21784         (fold_builtin_strncmp): Likewise.
21785         (fold_builtin_signbit): Likewise.
21786         (fold_builtin_copysign): Likewise.
21787         (fold_builtin_isascii): Likewise.
21788         (fold_builtin_toascii): Likewise.
21789         (fold_builtin_isdigit): Likewise.
21790         (fold_builtin_fabs): Likewise.
21791         (fold_builtin_abs): Likewise.
21792         (fold_builtin_fmin_fmax): Likewise.
21793         (fold_builtin_carg): Likewise.
21794         (fold_builtin_classify): Likewise.
21795         (fold_builtin_unordered_cmp): Likewise.
21796
21797         (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
21798         New functions split out from fold_builtin_1.
21799         (fold_builtin_n): New.
21800         (fold_builtin_varargs): New.
21801         (fold_builtin): Deleted.  Most callers changed to use fold_call_expr
21802         instead.
21803         (fold_call_expr): New.
21804         (build_function_call_expr): Rewrite to use new helper function.
21805         (fold_builtin_call_list): New.
21806         (build_call_expr): New.
21807         (fold_builtin_call_valist): New.
21808         (rewrite_call_expr): New.
21809         (validate_arg): New.
21810         (validate_arglist): Change parameter to be entire CALL_EXPR instead
21811         of an arglist.  Change return type to bool.  Use new CALL_EXPR
21812         accessors.
21813
21814         (fold_builtin_strstr): Pass call arguments individually instead
21815         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
21816         accessors and constructors.  Return NULL_TREE instead of 0.
21817         (fold_builtin_strchr): Likewise.
21818         (fold_builtin_strrchr): Likewise.
21819         (fold_builtin_strpbrk): Likewise.
21820         (fold_builtin_strcat): Likewise.
21821         (fold_builtin_strncat): Likewise.
21822         (fold_builtin_strspn): Likewise.
21823         (fold_builtin_strcspn): Likewise.
21824         (fold_builtin_fputs): Likewise.
21825         (fold_builtin_next_arg): Likewise.
21826         (fold_builtin_sprintf): Likewise.
21827
21828         (expand_builtin_object_size): Use new CALL_EXPR accessors.  Use
21829         NULL_RTX instead of 0.
21830         (expand_builtin_memory_chk): Likewise.
21831         (maybe_emit_chk_warning): Likewise.
21832         (maybe_emit_sprintf_chk_warning): Likewise.
21833
21834         (fold_builtin_object_size): Pass call arguments individually instead
21835         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
21836         accessors and constructors.  Return NULL_TREE instead of 0.
21837         (fold_builtin_memory_chk): Likewise.
21838         (fold_builtin_stxcpy_chk): Likewise.
21839         (fold_builtin_strncpy_chk): Likewise.
21840         (fold_builtin_strcat_chk): Likewise.
21841         (fold_builtin_strcat_chk): Likewise.
21842         (fold_builtin_strncat_chk): Likewise.
21843         (fold_builtin_sprintf_chk): Likewise.
21844         (fold_builtin_snprintf_chk): Likewise.
21845         (fold_builtin_printf): Likewise.
21846         (fold_builtin_vprintf): Likewise.
21847
21848         * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
21849         constructors.
21850         (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
21851         (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
21852         (extract_muldiv_1): Add VL_EXP_CLASS_P case.
21853         (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
21854         (fold_unary): Likewise.
21855         (fold_binary): Likewise.
21856         (fold_ternary): Remove CALL_EXPR case, since they are no longer
21857         ternary expressions.
21858         (fold): Add logic for tcc_vl_exp.
21859         (fold_checksum_tree): Make it know about tcc_vl_exp.  Use
21860         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
21861         (fold_build3_stat): Add assertion to flag broken interface for
21862         constructing CALL_EXPRs.
21863         (fold_build_call_list): New.
21864         (fold_build_call_list_initializer): New.
21865         (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
21866         constructors.
21867         (fold_strip_sign_ops): Likewise.
21868
21869 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
21870             Brooks Moses  <brooks.moses@codesourcery.com>
21871             Lee Millward  <lee.millward@codesourcery.com>
21872
21873         * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
21874         accessors and dump arguments explicitly.
21875
21876         * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
21877         TREE_CODE_LENGTH.
21878         (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
21879         explicitly.
21880         (print_call_name): Use new CALL_EXPR accessors.
21881
21882         * print-tree.c (print_node): Add case tcc_vl_exp.  Print
21883         CALL_EXPR arguments explicitly instead of as a list.  Use
21884         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
21885
21886         * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
21887         (vrp_visit_stmt): Likewise.
21888
21889         * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Make it
21890         know about tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of
21891         TREE_CODE_LENGTH.
21892         (force_move_till_expr): Likewise.
21893
21894         * targhooks.c (default_external_stack_protect_fail): Use
21895         build_call_expr instead of build_function_call_expr.
21896         (default_hidden_stack_protect_fail): Likewise.
21897
21898         * tree-complex.c (expand_complex_libcall): Use build_call_expr to
21899         build the call.
21900
21901         * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
21902         and walk arguments explicitly.
21903
21904         * tree-ssa-loop-niter.c (simplify_replace_tree): Use
21905         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
21906         (expand_simple_operations): Likewise.
21907         (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
21908
21909         * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
21910         of TREE_CODE_LENGTH.
21911         (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
21912
21913         * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
21914         instead of TREE_CODE_LENGTH.
21915
21916         * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
21917         (tree_ic_transform): Likewise.
21918         (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
21919         parameter instead of arglist.  Fix callers.
21920         (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
21921         (tree_stringops_transform): Likewise.
21922         (tree_indirect_call_to_profile): Likewise.
21923         (tree_stringops_values_to_profile): Likewise.
21924
21925         * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
21926         (eliminate_tail_call): Likewise.
21927
21928         * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
21929
21930         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
21931         Use TREE_OPERAND_LENGTH and generalize to handle any number of
21932         operands.
21933         (instantiate_parameters_1): Can't handle tcc_vl_exp here.
21934
21935         * omp-low.c (build_omp_barrier): Use build_call_expr.
21936         (lower_rec_input_clauses): Likewise.
21937         (lower_reduction_clauses): Likewise.
21938         (expand_parallel_call): Likewise.
21939         (maybe_catch_exception): Likewise.
21940         (expand_omp_for_generic): Likewise.
21941         (expand_omp_for_static_nochunk): Likewise.
21942         (expand_omp_sections): Likewise.
21943         (lower_omp_single_simple): Likewise.
21944         (lower_omp_single_copy): Likewise.
21945         (lower_omp_master): Likewise.
21946         (lower_omp_ordered): Likewise.
21947         (lower_omp_critical): Likewise.
21948
21949         * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
21950         (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
21951
21952         * tree-gimple.c (is_gimple_call_addr): Fix doc.
21953         (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
21954         TREE_CODE_LENGTH.  Add tcc_vl_exp case.
21955
21956         * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
21957         and generalize to handle any number of operands.
21958         (chrec_contains_undetermined): Likewise.
21959         (tree_contains_chrecs): Likewise.
21960         (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
21961
21962         * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
21963
21964         * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors.  Use
21965         fold_call_expr instead of fold_builtin.
21966         (ccp_fold_builtin): Likewise.  Update calls into builtins.c to
21967         match declarations there.
21968         (fold_stmt): Use new CALL_EXPR constructor and accessors.  Doc
21969         updates.
21970
21971         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
21972         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
21973
21974         * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
21975         (scan_function): Add case tcc_vl_exp for CALL_EXPR.
21976
21977         * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
21978         accessors.
21979
21980         * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
21981         (execute_cse_sincos): Use new CALL_EXPR accessors.
21982
21983         * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
21984
21985         * gimple-low.c (lower_function_body): Use build_call_expr.
21986         (lower_builtin_setjmp): Likewise.
21987
21988         * expr.c (emit_block_move_via_libcall): Use build_call_expr.
21989         (set_storage_via_libcall): Likewise.
21990         (safe_from_p): Add tcc_vl_exp case.  Use TREE_OPERAND_LENGTH
21991         instead of TREE_CODE_LENGTH.
21992         (expand_expr_real_1): Use new CALL_EXPR accessors.
21993
21994         * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
21995         generalize to handle any number of operands.
21996         (TB_parent_eq): Likewise.
21997
21998         * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
21999         (strip_builtin_expect): Likewise.
22000
22001         * function.c (gimplify_parameters): Use build_call_expr.
22002
22003         * tree-vectorizer.c (vect_is_simple_reduction): Use
22004         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
22005
22006         * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
22007         (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
22008
22009         * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
22010         iterators.
22011
22012         * gimplify.c (build_stack_save_restore): Use build_call_expr.
22013         (gimplify_decl_expr): Likewise.
22014         (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
22015         Use new CALL_EXPR iterators.
22016         (gimplify_modify_expr_to_memcpy): Use build_call_expr.
22017         (gimplify_modify_expr_to_memset): Likewise.
22018         (gimplify_variable_sized_compare): Likewise.
22019         (gimplify_omp_atomic_fetch_op): Likewise.
22020         (gimplify_omp_atomic_pipeline): Likewise.
22021         (gimplify_omp_atomic_mutex): Likewise.
22022         (gimplify_function_tree): Likewise.
22023
22024         * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
22025         (call_expr_flags): Likewise.
22026         (expand_call): Likewise.
22027
22028         * except.c (expand_builtin_eh_return_data_regno): Pass entire
22029         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
22030         accessors.
22031
22032         * coverage.c (create_coverage): Use build_call_expr.
22033
22034         * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
22035         (temp_call_expr_obstack): New.
22036         (pool_copy_list): Delete.
22037         (temp_copy_call_expr): New.
22038         (phi_translate): Add case tcc_vl_exp for CALL_EXPR.  Use new
22039         CALL_EXPR accessors.  Get rid of special goo for copying argument
22040         lists and use temp_copy_call_expr instead.
22041         (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR.  Use new
22042         CALL_EXPR accessors.
22043         (create_expression_by_pieces): Likewise.  Use build_call_array
22044         to construct the result instead of fold_build3.
22045         (create_value_expr_from): Add tcc_vl_exp.  Delete special goo for
22046         dealing with argument lists.
22047         (init_pre): Remove references to expression_node_pool and
22048         list_node_pool.  Init temp_call_expr_obstack instead.
22049         (fini_pre): Remove references to expression_node_pool and
22050         list_node_pool.
22051
22052         * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
22053         and walk arguments explicitly instead of as a list.
22054
22055         * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
22056         (mx_register_decls): Likewise.
22057         (mudflap_register_call): Likewise.
22058         (mudflap_finish_file): Likewise.
22059
22060         * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
22061         (ipa_callsite_compute_param): Likewise.
22062
22063         * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
22064         accessors and constructor.
22065
22066         * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
22067         accessors and constructor.
22068         (convert_tramp_reference): Likewise.
22069         (convert_call_expr): Likewise.
22070         (finalize_nesting_tree_1): Likewise.
22071
22072         * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
22073         accessors.
22074
22075         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
22076
22077         * tree-inline.c (initialize_inlined_parameters): Pass entire
22078         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
22079         accessors.
22080         (estimate_num_insns_1): Use new CALL_EXPR accessors.
22081         (expand_call_inline): Tidy up call to initialize_inlined_parameters.
22082
22083         * tree-vect-transform.c (vect_create_epilog_for_reduction): Use
22084         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
22085         (vectorizable_reduction): Likewise.
22086         (vectorizable_call): Use new CALL_EXPR iterators.
22087         (vectorizable_conversion): Use build_call_expr.
22088         (vectorizable_operation): Use TREE_OPERAND_LENGTH.
22089         (vect_gen_widened_results_half): Use build_call_expr.
22090         (vect_setup_realignment): Likewise.
22091         (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
22092
22093         * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
22094         (pass_through_call): Likewise.
22095         (compute_object_sizes): Likewise.  Use fold_call_expr instead of
22096         fold_builtin.
22097
22098         * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
22099         (tree_gen_pow2_profiler): Likewise.
22100         (tree_gen_one_value_profiler): Likewise.
22101         (tree_gen_ic_func_profiler): Likewise.
22102         (tree_gen_average_profiler): Likewise.
22103         (tree_gen_ior_profiler): Likewise.
22104
22105         * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
22106         (find_func_aliases): Use new CALL_EXPR accessors.  Add case
22107         tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
22108
22109         * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
22110         of TREE_CODE_LENGTH.
22111
22112         * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
22113         of TREE_CODE_LENGTH.
22114
22115         * convert.c (convert_to_real): Use new CALL_EXPR accessors and
22116         constructor.
22117         (convert_to_integer): Likewise.
22118
22119         * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
22120         accessors.
22121
22122 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
22123             Brooks Moses  <brooks.moses@codesourcery.com>
22124             Lee Millward  <lee.millward@codesourcery.com>
22125
22126         * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
22127         accessors.
22128         * config/frv/frv.c (frv_expand_builtin): Likewise.
22129         * config/s390/s390.c (s390_expand_builtin): Likewise.
22130
22131         * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
22132         (sparc_expand_builtin): Use new CALL_EXPR accessors.
22133
22134         * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
22135         (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
22136         instead of arglist.  Use new CALL_EXPR accessors on it.  Fix callers.
22137         (ix86_expand_store_builtin): Likewise.
22138         (ix86_expand_unop_builtin): Likewise.
22139         (ix86_expand_unop1_builtin): Likewise.
22140         (ix86_expand_sse_compare): Likewise.
22141         (ix86_expand_sse_comi): Likewise.
22142         (ix86_expand_vec_init_builtin): Likewise.
22143         (ix86_expand_vec_ext_builtin): Likewise.
22144         (ix86_expand_vec_set_builtin): Likewise.
22145         (ix86_expand_builtin): Use new CALL_EXPR accessors.
22146
22147         * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
22148         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
22149
22150         * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
22151         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
22152         (iq2000_expand_builtin): Use new CALL_EXPR accessors.
22153
22154         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
22155         build_call_expr.
22156         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
22157         (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
22158         arglist.  Use new CALL_EXPR accessors.  Fix callers.
22159         (altivec_expand_abs_builtin): Likewise.
22160         (rs6000_expand_binop_builtin): Likewise.
22161         (altivec_expand_predicate_builtin): Likewise.
22162         (altivec_expand_lv_builtin): Likewise.
22163         (spe_expand_stv_builtin): Likewise.
22164         (altivec_expand_stv_builtin): Likewise.
22165         (rs6000_expand_ternop_builtin): Likewise.
22166         (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
22167         (altivec_expand_st_builtin): Likewise.
22168         (altivec_expand_dst_builtin): Likewise.
22169         (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
22170         arglist.  Use new CALL_EXPR accessors.  Fix callers.
22171         (altivec_expand_vec_set_builtin): Likewise.
22172         (altivec_expand_vec_ext_builtin): Likewise.
22173         (altivec_expand_builtin): Use new CALL_EXPR accessors.
22174         (spe_expand_builtin): Likewise.
22175         (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
22176         arglist.  Use new CALL_EXPR accessors.  Fix callers.
22177         (spe_expand_evsel_builtin): Likewise.
22178         (rs6000_expand_builtin): Use new CALL_EXPR accessors.  VCFUX and
22179         FCFSX cases must construct whole new CALL_EXPR, not just arglist.
22180
22181         * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
22182         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
22183         (arm_expand_unop_builtin): Likewise.
22184         (arm_expand_builtin): Use new CALL_EXPR accessors.
22185
22186         * config/mips/mips.c (mips_expand_builtin): Use new CALL_EXPR
22187         accessors.
22188
22189         * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire
22190         CALL_EXPR instead of arglist.  Use new CALL_EXPR accessors.
22191         Fix callers.
22192         (bfin_expand_unop_builtin): Likewise.
22193         (bfin_expand_builtin): Use new CALL_EXPR accessors.
22194
22195 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
22196             Brooks Moses  <brooks.moses@codesourcery.com>
22197             Lee Millward  <lee.millward@codesourcery.com>
22198
22199         * c-semantics.c (build_stmt): Add internal diagnostic check.
22200
22201         * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
22202         accessors.  Print arguments explicitly instead of as a list.
22203
22204         * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
22205
22206         * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
22207         (c_finish_omp_flish): Likewise.
22208
22209         * c-common.c (verify_tree): Use new CALL_EXPR accessors.  Traverse
22210         arguments explicitly instead of as a list.  Use TREE_OPERAND_LENGTH
22211         instead of TREE_CODE_LENGTH.
22212         (check_function_arguments_recurse): Use new CALL_EXPR accessors.
22213         (c_warn_unused_result): Likewise.
22214
22215 2007-02-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22216
22217         PR c/26494
22218         * doc/invoke.texi (Warning Options): Remove
22219         -Werror-implicit-function-declaration.
22220         (Wimplicit-function-declaration): Update description.
22221         * opts.c (common_handle_option): Move handling of -Werror=* to...
22222         (enable_warning_as_error): ...here.
22223         * opts.h (enable_warning_as_error): Declare.
22224         * c-decl.c (implicit_decl_warning): Unless
22225         -Wno-implicit-function-declaration is given, emit a pedwarn if
22226         -std=c99 or emit a warning if -Wimplicit-function-declaration.
22227         * c.opt (Wimplicit-function-declaration): Replace
22228         mesg_implicit_function_declaration with
22229         warn_implicit_function_declaration.
22230         * c-opts.c (c_common_handle_option):
22231         -Werror-implicit-function-declaration is exactly equal as
22232         -Werror=implicit-function-declaration.
22233         (set_Wimplicit): Replace mesg_implicit_function_declaration with
22234         warn_implicit_function_declaration.
22235         (c_common_post_options): -Wimplict-function-declaration is enabled
22236         by default by -std=c99, otherwise is disabled by default.
22237         * c-objc-common.c (c_objc_common_init): Remove flawed logic.
22238
22239 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
22240
22241         * gimplify.c (gimplify_modify_expr): During gimplification, attach a
22242         DECL on the rhs to a DECL on the lhs for debug info purposes if the
22243         former is ignored but not the latter.
22244
22245 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
22246
22247         * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
22248         is made and the reference doesn't use the alias set of its type,
22249         do not create the temporary using that type.
22250
22251 2007-02-15  Aldy Hernandez  <aldyh@redhat.com>
22252
22253         * jump.c: Remove prototypes for delete_computation and
22254         delete_prior_computation.
22255
22256 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
22257
22258         * jump.c (get_label_after): Delete.
22259         (get_label_before, delete_computation, delete_jump,
22260         delete_prior_computation, follow_jumps): Move...
22261         * reorg.c (delete_computation, delete_prior_computation): ... here...
22262         (get_label_before, delete_jump): ... making these static ...
22263         (follow_jumps): ... and simplifying this since it only runs after
22264         reload.
22265         * rtl.h (get_label_after, get_label_before, delete_jump,
22266         follow_jumps): Delete prototypes.
22267
22268 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
22269
22270         * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
22271
22272 2007-02-15  Nick Clifton  <nickc@redhat.com>
22273
22274         * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
22275         order to prevent it from being munged by the target.
22276
22277 2007-02-15  Uros Bizjak  <ubizjak@gmail.com>
22278
22279         * config/i386/i386.md: Remove misleading comment.
22280
22281 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
22282
22283         * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
22284         reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
22285         invalid patterns.
22286
22287 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
22288
22289         * tree-sra.c (instantiate_missing_elements): Canonicalize
22290         bit-field types.
22291         (sra_build_assignment): New.
22292         (generate_copy_inout, generate_element_copy,
22293         generate_element_zero, generate_one_element_init): Use it.
22294
22295 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
22296
22297         * tree-sra.c (instantiate_missing_elements): Canonicalize
22298         bit-field types.
22299         (sra_build_assignment): New.
22300         (generate_copy_inout, generate_element_copy,
22301         generate_element_zero, generate_one_element_init): Use it.
22302
22303 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
22304
22305         * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
22306         limbo die nodes.
22307
22308 2007-02-14  Joseph Myers  <joseph@codesourcery.com>
22309
22310         * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
22311         types as aggregates not scalars.
22312         * function.c (assign_stack_temp_for_type): Likewise.
22313
22314 2007-02-14  Roger Sayle  <roger@eyesopen.com>
22315             Zdenek Dvorak  <dvorakz@suse.cz>
22316
22317         * tree-dump.c (dump_switch_p_1): Require exact match of the option
22318         name.
22319
22320 2007-02-14  Zdenek Dvorak  <dvorakz@suse.cz>
22321
22322         * passes.c (next_pass_1): Clear the next field of the copied
22323         pass structure.
22324
22325 2007-02-14  Richard Henderson  <rth@redhat.com>
22326
22327         * tree-sra.c (early_sra): New.
22328         (decl_can_be_decomposed_p): Deny va_list if early_sra.
22329         (tree_sra_early, pass_sra_early): New.
22330         * tree-pass.h (pass_sra_early): Declare.
22331         * passes.c (init_optimization_passes): Use it.
22332
22333 2007-02-14  Richard Guenther  <rguenther@suse.de>
22334
22335         * flags.h (issue_strict_overflow_warning): Convert to a macro.
22336
22337 2007-02-14  Dorit Nuzman  <dorit@il.ibm.com>
22338
22339          PR tree-optimization/30771
22340         * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
22341         also phi nodes.
22342         (vect_analyze_operations): Induction phis can now be marked as
22343         used_in_loop.
22344         (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
22345         Update documentation accordingly.
22346
22347 2007-02-14  Nick Clifton  <nickc@redhat.com>
22348
22349         * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
22350         most 3 arguments are supported.
22351         (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
22352
22353 2007-02-13  Seongbae Park <seongbae.park@gmail.com>
22354
22355         * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
22356         Ensure dst->current is valid.
22357
22358 2007-02-13  Paul Brook  <paul@codesourcery.com>
22359
22360         * config.gcc: Add arm*-*-uclinux-*eabi.
22361         * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
22362         (SUBTARGET_EXTRA_LINK_SPEC): Define.
22363         (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
22364         (LINK_GCC_C_SEQUENCE_SPEC): Undef.
22365         (LINK_SPEC): Define.
22366         (LIB_SPEC): Define.
22367         * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
22368         register.
22369         * config/arm/uclinux-eabi.h: New file.
22370         * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
22371         * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
22372         based targets.
22373
22374 2007-02-13  Ian Lance Taylor  <iant@google.com>
22375
22376         * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
22377         * flags.h (warn_strict_overflow): Declare.
22378         (enum warn_strict_overflow_code): Define.
22379         (issue_strict_overflow_warning): New static inline function.
22380         * opts.c (warn_strict_overflow): New variable.
22381         (common_handle_option): Handle OPT_Wstrict_overflow and
22382         OPT_Wstrict_overflow_.
22383         * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
22384         OPT_Wall.
22385         * fold-const.c: Include intl.h.
22386         (fold_deferring_overflow_warnings): New static variable.
22387         (fold_deferred_overflow_warning): New static variable.
22388         (fold_deferred_overflow_code): New static variable.
22389         (fold_defer_overflow_warnings): New function.
22390         (fold_undefer_overflow_warnings): New function.
22391         (fold_undefer_and_ignore_overflow_warnings): New function.
22392         (fold_deferring_overflow_warnings_p): New function.
22393         (fold_overflow_warning): New static function.
22394         (make_range): Add strict_overflow_p parameter.  Change all
22395         callers.
22396         (extract_muldiv, extract_muldiv_1): Likewise.
22397         (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
22398         tree_expr_nonnegative_p.
22399         (fold_negate_expr): Call fold_overflow_warning.
22400         (fold_range_test): Likewise.
22401         (fold_comparison): Likewise.
22402         (fold_binary): Likewise.  Call tree_expr_nonnegative_warnv_p
22403         instead of tree_expr_nonnegative_p.
22404         (tree_expr_nonnegative_warnv_p): Rename from
22405         tree_expr_nonnegative_p, add strict_overflow_p parameter.
22406         (tree_expr_nonnegative_p): New function.
22407         (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
22408         strict_overflow_p parameter.
22409         (tree_expr_nonzero_p): New function.
22410         * passes.c (verify_interpass_invariants): New static function.
22411         (execute_one_pass): Call it.
22412         * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
22413         warnings.
22414         (number_of_iterations_exit, loop_niter_by_eval): Likewise.
22415         (estimate_numbers_of_iterations): Likewise.
22416         (scev_probably_wraps_p): Likewise.
22417         * tree-ssa-ccp.c: Include "toplev.h".
22418         (evaluate_stmt): Defer fold overflow warnings until we know we are
22419         going to optimize.
22420         (struct fold_stmt_r_data): Add stmt field.
22421         (fold_stmt_r): Defer fold overflow warnings until we know we
22422         optimized.
22423         (fold_stmt): Initialize stmt field of fold_stmt_r_data.
22424         (fold_stmt_inplace): Likewise.
22425         * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
22426         (cleanup_control_expr_graph): Defer fold overflow warnings until
22427         we know we are going to optimize.
22428         * tree-cfg.c (fold_cond_expr_cond): Likewise.
22429         * tree-ssa-threadedge.c (simplify_control_stmt_condition):
22430         Likewise.
22431         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
22432         tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
22433         * tree-ssa-loop-manip.c (create_iv): Likewise.
22434         * c-typeck.c (build_conditional_expr): Likewise.
22435         (build_binary_op): Likewise.
22436         * tree-vrp.c (vrp_expr_computes_nonzero): Call
22437         tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
22438         (extract_range_from_unary_expr): Likewise.
22439         * simplify-rtx.c (simplify_const_relational_operation): Warn when
22440         assuming that signed overflow does not occur.
22441         * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
22442         * tree.h (tree_expr_nonnegative_warnv_p): Declare.
22443         (fold_defer_overflow_warnings): Declare.
22444         (fold_undefer_overflow_warnings): Declare.
22445         (fold_undefer_and_ignore_overflow_warnings): Declare.
22446         (fold_deferring_overflow_warnings_p): Declare.
22447         (tree_expr_nonzero_warnv_p): Declare.
22448         * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
22449         of warning options.
22450         (Warning Options): Document -Wstrict-overflow.
22451         * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
22452         (tree-ssa-ccp.o): Likewise.
22453         (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
22454         (fold-const.o): Depend on intl.h.
22455
22456 2007-02-13  Ian Lance Taylor  <iant@google.com>
22457
22458         PR middle-end/30751
22459         * lower-subreg.c (resolve_simple_move): Decompose subregs in
22460         addresses.
22461
22462 2007-02-13  Stuart Hastings  <stuart@apple.com>
22463
22464         * config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
22465
22466 2007-02-13  Richard Henderson  <rth@redhat.com>
22467
22468         * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
22469         handled_component_p before looking for the indirect_ref.
22470
22471 2007-02-13  Richard Henderson  <rth@redhat.com>
22472
22473         * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
22474         remove flags clobber.
22475         (bswapsi2): New expander, emit code for !TARGET_BSWAP.
22476         (bswaphi_lowpart): New.
22477         (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
22478         remove TARGET_BSWAP test.  Delete expander of the same name.
22479
22480         * optabs.c (widen_bswap, expand_doubleword_bswap): New.
22481         (expand_unop): Use them.
22482
22483 2007-02-13  Uros Bizjak  <ubizjak@gmail.com>
22484
22485         * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
22486         *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
22487         *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
22488         *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
22489         *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
22490         *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
22491         *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
22492         assembler dialect choice from asm templates.
22493
22494 2007-02-12  Richard Henderson  <rth@redhat.com>
22495
22496         * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
22497         (fixuns_trunc<SSEMODEF>si2): Use it.
22498         * config/i386/sse.md (vec_setv4sf_0): Export.
22499         * config/i386/i386.c (ix86_build_const_vector): Export.
22500         (ix86_split_convert_uns_si_sse): Rename from
22501         ix86_expand_convert_uns_si_sse and rewrite as a splitter.
22502         * config/i386/i386-protos.h: Update.
22503
22504 2007-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22505
22506         PR c/29521
22507         * c-typeck.c (c_finish_return): Improve warning message.
22508
22509 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22510
22511         * alias.c (find_symbolic_term): Delete unused function.
22512
22513 2007-02-12  Uros Bizjak  <ubizjak@gmail.com>
22514
22515         * config/i386/i386.md (paritydi2, paritysi2): New expanders.
22516         (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
22517         (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
22518
22519 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
22520
22521         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
22522         * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
22523         the function, temporarily point the debug interface to the null one.
22524
22525 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
22526
22527         * dwarf2out.c (round_up_to_align): New static function.
22528         (field_byte_offset): Use it to round the offset.
22529
22530 2007-02-12  Richard Henderson  <rth@redhat.com>
22531
22532         * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
22533         (inswl_const): Export.
22534
22535 2007-02-12  Richard Henderson  <rth@redhat.com>
22536
22537         * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
22538         result mode of the libcall, convert back to outmode.
22539
22540 2007-02-12  Roger Sayle  <roger@eyesopen.com>
22541
22542         * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
22543         (bswapdi2): New define_expand to implement 32-bit implementation.
22544
22545 2007-02-12  Nick Clifton  <nickc@redhat.com>
22546
22547         * doc/invoke.texi (Overall Options): Document --help=.
22548         * gcc.c (target_help_flag): Rename to print_subprocess_flag.
22549         (cc1_options): Pass --help= on to cc1.
22550         (display_help): Add description of --help=.
22551         (process_command): Add code to handle --help=.  Allow translated
22552         --help and --target-help switches to be passed on to compiler
22553         sub-process.
22554         (main): Remove unused if statement.
22555         * opts.c (columns): Remove.
22556         (LEFT_COLUMN): Define.
22557         (wrap_help): Add columns argument.
22558         (print_filtered_help): Change parameters to be an include bitmask,
22559         an exclude bitmask, an any bitmask and the column width.  Move the
22560         code to display the params list here.  Add code to display the
22561         status of options rather than their descriptions if the quiet flag
22562         is not active.
22563         (print_specific_help): Change parameters to be an include bitmask,
22564         an exclude bitmask and an any bitmask.  Move code to look up the
22565         column width here.  Decide upon the title for an options listing.
22566         (common_handle_options): Add code to handle --help=.  Adapt code
22567         for --help and --target-help to use the revised form of the
22568         print_specific_help function.
22569         (print_help): Delete.
22570         (print_param_help): Delete.
22571         (print_switch): Delete.
22572         * opts.h (cl_lang_count): Add prototype.
22573         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
22574         CL_MAX_OPTION_CLASS): New defines.
22575         * optc-gen.awk: Add construction of cl_lang_count.
22576         * c.opt: Add Warning attribute to warning options and Optimization
22577         attribute to optimization options.
22578         * common.opt: Likewise.
22579         Add --help=.
22580         Add -fhelp and -ftarget-help as aliases for the transformed --help
22581         and --target-help options.
22582         * opt-functions.awk: Add code to handle Warning and Optimization
22583         attributes.
22584
22585 2007-02-12  Richard Henderson  <rth@redhat.com>
22586
22587         * config/alpha/constraints.md: New file.
22588         * config/alpha/alpha.c: Include tm-constrs.h.
22589         (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
22590         alpha_extra_constraint): Remove.
22591         (alpha_emit_conditional_branch): Use satisfies_constraint_*.
22592         * config/alpha/alpha-protos.h: Update.
22593         * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
22594         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
22595         (EXTRA_CONSTRAINT): Remove.
22596         * config/alpha/alpha.md: Include constraints.md.
22597         (adddi splitter): Use satisfies_constraint_*.
22598         * config/alpha/predicates.md (add_operand): Likewise.
22599         (sext_add_operand, addition_operation): Likewise.
22600
22601 2007-02-12  Dorit Nuzman  <dorit@il.ibm.com>
22602
22603         PR tree-optimization/29145
22604         * tree-data-ref.c (base_addr_differ_p): Make us more conservative
22605         in our handling of restrict qualified pointers.
22606
22607 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22608
22609         PR middle-end/7651
22610         * doc/invoke.texi (Wunused-value): Update description.
22611         (Wextra): Delete item.
22612         * opts.c (set_Wextra): Don't use the value of Wextra to set the
22613         value of Wunused-value.
22614         * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
22615         (c_finish_stmt_expr): Don't check extra_warnings.
22616         (emit_side_effect_warnings): The caller is responsible to check
22617         warn_unused_value.
22618
22619 2007-02-11  Roger Sayle  <roger@eyesopen.com>
22620             Matt Thomas  <matt@3am-software.com>
22621
22622         * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
22623
22624 2007-02-11  Roger Sayle  <roger@eyesopen.com>
22625
22626         * simplify-rtx.c (simplify_relational_operation_1): Optimize
22627         comparisons of POPCOUNT against zero.
22628         (simplify_const_relational_operation): Likewise.
22629
22630 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22631
22632         * doc/invoke.texi (Wextra): Delete outdated paragraph.
22633
22634 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22635
22636         * dwarf2out.c (root_type): Delete unused function.
22637
22638 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22639
22640         * genattrtab.c (contained_in_p): Delete unused function.
22641         (write_expr_attr_cache): Likewise.
22642
22643 2007-02-11  Jan Hubicka  <jh@suse.cz>
22644
22645         * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
22646         previous patch.
22647
22648 2007-02-11  Steven Bosscher  <steven@gcc.gnu.org>
22649
22650         * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
22651         to add the REG_EQ* note.
22652         * see.c (see_merge_one_use_extension): Likewise.
22653         * local-alloc.c (update_equiv_regs): Likewise.  Also don't
22654         turn REG_EQUAL notes into REG_EQUIV notes if the target
22655         register may have more than one set.
22656         * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
22657         * gcse.c (try_replace_reg): Likewise.
22658         * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
22659         * calls.c (fixup_tail_calls): Likewise.  Abort if there is
22660         more than one REG_EQUIV note.
22661         * reload1.c (gen_reload): Use set_unique_reg_note.
22662
22663 2007-02-11  Uros Bizjak  <ubizjak@gmail.com>
22664
22665         * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
22666         (ix86_builtin_conversion): New function.
22667
22668 2007-02-06  Mark Mitchell  <mark@codesourcery.com>
22669
22670         PR target/29487
22671         * tree.h (DECL_REPLACEABLE_P): New macro.
22672         * except.c (set_nothrow_function_flags): Likewise.
22673
22674 2007-02-11  Tehila Meyzels  <tehila@il.ibm.com>
22675             Ira Rosen  <irar@il.ibm.com>
22676             Dorit Nuzman  <dorit@il.ibm.com>
22677
22678         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
22679         * targhooks.c (default_builtin_vectorized_conversion): New.
22680         * targhooks.h (default_builtin_vectorized_function): New declaration.
22681         * target.h (struct vectorize): Add builtin_conversion field.
22682         * tree-vectorizer.h (type_conversion_vec_info_type): New enum
22683         stmt_vec_info_type value.
22684         (vectorizable_conversion): New declaration.
22685         * tree-vect-analyze.c (vect_analyze_operations): Add
22686         vectorizable_conversion call.
22687         * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
22688         * tree-vect-transform.c (vectorizable_conversion): New function.
22689         (vect_transform_stmt): Add case for type_conversion_vec_info_type.
22690         * tree-vect-generic.c (expand_vector_operations_1): Consider correct
22691         mode.
22692         * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
22693         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
22694         (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
22695         or ALTIVEC_BUILTIN_VCFSX.
22696
22697 2007-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22698
22699         PR target/30634
22700         * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
22701         CONST_DOUBLE and operand 0 is a hard register.
22702         (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
22703         memory.  Fail if operand 1 is a non-zero CONST_INT and operand 0
22704         is a hard floating-point register.
22705
22706 2007-02-10  Richard Henderson  <rth@redhat.com>
22707             Jakub Jelinek  <jakub@redhat.com>
22708             Alexandre Oliva  <aoliva@redhat.com>
22709
22710         * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
22711         * builtin-types.def (BT_WORD): Make unsigned.
22712         (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
22713         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
22714         (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
22715         * c-decl.c (grokdeclarator): Don't error if !have_tls.
22716         * c-parser.c (c_parser_omp_threadprivate): Likewise.
22717         * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
22718         emulated tls.
22719         * expr.c (emutls_var_address): New.
22720         (expand_expr_real_1): Expand emulated tls.
22721         (expand_expr_addr_expr_1): Likewise.
22722         * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
22723         * output.h (emutls_finish): Declare.
22724         * toplev.c (compile_file): Call it.
22725         * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
22726         address before wrapping in CONST.
22727         * varasm.c (emutls_htab, emutls_object_type): New.
22728         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
22729         (get_emutls_object_name, get_emutls_object_type): New.
22730         (get_emutls_init_templ_addr, emutls_decl): New.
22731         (emutls_common_1, emutls_finish): New.
22732         (assemble_variable): When emulating tls, swap decls; generate
22733         constructor for the emutls objects.
22734         (do_assemble_alias): When emulating tls, swap decl and target name.
22735         (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
22736         for emulated tls.
22737         * varpool.c (decide_is_variable_needed): Look at force_output.
22738         Recurse for emulated tls.
22739         (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
22740         with decide_is_variable_needed.
22741         * emutls.c: New file.
22742         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
22743         tls_object for real tls.
22744
22745 2007-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
22746
22747         PR rtl-optimization/29599
22748         * reload1.c (eliminate_regs_in_insn): Take the destination
22749         mode into account when computing the offset.
22750
22751 2007-02-09  Stuart Hastings  <stuart@apple.com>
22752             Richard Henderson  <rth@redhat.com>
22753
22754         * config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
22755         * config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
22756         * config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
22757         fixuns_truncdfhi2): New.
22758         (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
22759         (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
22760         (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
22761         (floatunssidf2): Allow nonimmediate source.
22762         * config/i386/sse.md (movdi_to_sse): New.
22763         (vec_concatv2di): Drop '*'.
22764         * config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
22765         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
22766         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
22767         New.
22768         * config/i386/i386.c (ix86_expand_convert_uns_si_sse,
22769         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
22770         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
22771         ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
22772         (ix86_build_signbit_mask): Fix decl of v, refactor to call
22773         ix86_build_const_vector.
22774         (x86_emit_floatuns): Rewrite.
22775
22776 2007-02-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22777
22778         * genautomata.c (longest_path_length): Delete unused function.
22779         (struct state): Delete unused longest_path_length.
22780         (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
22781         (get_free_state): Delete unused.
22782
22783 2007-02-09  Jan Hubicka  <jh@suse.cz>
22784
22785         * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
22786         * doc/invoke.texi (inline-unit-growth): Update default value.
22787
22788         * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
22789         * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
22790         (rebuild_cgraph_edges): Likewise.
22791         * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
22792         (dump_cgraph_node): Dump frequencies.
22793         (cgraph_clone_edge): Add frequency scales.
22794         (cgraph_clone_node): Add freuqnecy.
22795         * cgraph.h (cgraph_edge): Add freuqnecy argument.
22796         (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
22797         (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
22798         * tree-pass.h (TODO_rebuild_frequencies): New constant.
22799         * cgraphunit.c (verify_cgraph_node): Verify frequencies.
22800         (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
22801         (save_inline_function_body): Likewise.
22802         * ipa-inline.c: inluce rtl.h
22803         (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
22804         (cgraph_edge_badness): Use frequencies.
22805         (cgraph_decide_recursive_inlining): Update clonning.
22806         (cgraph_decide_inlining_of_small_function): Dump frequency.
22807         * predict.c (estimate_bb_frequencies): Export.
22808         * predict.h (estimate_bb_frequencies): Declare.
22809         * tree-inline.c (copy_bb): Watch overflows.
22810         (expand_call_inline): Update call of cgraph_create_edge.
22811         (optimize_inline_calls): Use TODO flags to update frequnecies.
22812         * passes.h: Include predict.h
22813         (init_optimization_passes): Move profile ahead.
22814         (execute_function_todo): Handle TODO_rebuild_frequencies.
22815
22816 2007-02-09  Roger Sayle  <roger@eyesopen.com>
22817
22818         * config/alpha/alpha.c (emit_insxl): Force the first operand of
22819         the insbl or inswl pattern into a register.
22820
22821 2007-02-09  Roger Sayle  <roger@eyesopen.com>
22822
22823         * config/ia64/ia64.md (bswapdi2): New define_insn.
22824
22825 2007-02-09  Richard Henderson  <rth@redhat.com>
22826
22827         * config/i386/constraints.md (Ym): New constraint.
22828         * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
22829         (movdi_1_rex64): Split sse and xmm general register moves from
22830         memory move alternatives.  Use conditional register constraints.
22831         (movsf_1, movdf_integer): Likewise.
22832         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
22833         (movdf_integer_rex64): New.
22834         (pushsf_rex64): Fix output constraints.
22835         * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
22836         (sse2_stored): Likewise.
22837         (sse2_storeq_rex64): New.
22838         * config/i386/i386.c (x86_inter_unit_moves): Enable for not
22839         amd and not generic.
22840         (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
22841         for optimize_size.  Remove SF/DFmode hack.
22842
22843 2007-02-09  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
22844
22845         * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
22846         (bit_SSE4a): New.
22847
22848 2007-02-09  Nathan Sidwell  <nathan@codesourcery.com>
22849             Richard Sandiford  <richard@codesourcery.com>
22850
22851         * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
22852         (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
22853         (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
22854         m68k/t-mlib to tmake_file.
22855         (m68020-*-elf*, m68k-*-elf*): Likewise.  Add t-m68kbare as well.
22856         (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
22857         (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
22858         Allow it to be cf or m68k.  Set m68k_arch_family.  If that
22859         variable is not empty, add t-$m68k_arch_family to tmake_file.
22860         Add t-mlibs to tmake_file.
22861         * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
22862         * config/m68k/t-cf: New file.
22863         * config/m68k/t-m68k: Likewise.
22864         * config/m68k/t-mlibs: Likewise.
22865         * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
22866         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
22867         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
22868         * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
22869         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
22870         Delete.
22871         * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
22872         (INSTALL_LIBGCC): Delete.
22873         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
22874         * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
22875         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
22876         (M68K_MLIB_CPU): Define.
22877         * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
22878         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
22879         (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
22880
22881 2007-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
22882             Richard Guenther  <rguenther@suse.de>
22883
22884         PR middle-end/23361
22885         * fold-const.c (fold_comparison): Handle obfuscated comparisons
22886         against INT_MIN/INT_MAX.
22887         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
22888         file if a loop is removed.
22889
22890 2007-02-09  Joseph Myers  <joseph@codesourcery.com>
22891
22892         * calls.c (store_one_arg): Pass correct alignment to
22893         emit_push_insn for non-BLKmode values.
22894         * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
22895         unaligned stack slot via a suitably aligned slot.
22896
22897 2007-02-08  DJ Delorie  <dj@redhat.com>
22898
22899         * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
22900         warnings.
22901         (legal_subregs): Use unsigned char, make const.
22902         (m32c_illegal_subreg_p): Use ARRAY_SIZE.  Delete unused variables.
22903
22904 2007-02-08  Paul Brook  <paul@codesourcery.com>
22905
22906         * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
22907         special interworking needed.
22908
22909 2007-02-08  Harsha Jagasia  <harsha.jagasia@amd.com>
22910
22911         * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
22912         conditional to __SSE2__.
22913         (Entries below should have been added to first ChangeLog
22914         entry for amdfam10 dated 2007-02-05)
22915         * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
22916         defined.
22917         * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
22918         defined.
22919         * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
22920         defined.
22921
22922 2007-02-08  DJ Delorie  <dj@redhat.com>
22923
22924         * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
22925         * config/m32c/m32c.c (legal_subregs): New.
22926         (m32c_illegal_subreg_p): New.
22927         * config/m32c/predicates.md (m32c_any_operand): Use it to reject
22928         unsupported subregs of hard regs.
22929
22930 2007-02-08  Jan Hubicka  <jh@suse.cz>
22931
22932         * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
22933         the same one; always update histograms.
22934
22935 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
22936
22937         * passes.c (init_optimization_passes): Tidy comment.
22938
22939 2007-02-08  Roger Sayle  <roger@eyesopen.com>
22940
22941         * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
22942         strip zero_extend, bswap and rotates from POCOUNT's argument.
22943         <PARITY>: Likewise, we can strip not, bswap, sign_extend,
22944         zero_extend and rotates from PARITY's argument.
22945         <BSWAP>: A byte-swap followed by a byte-swap is an identity.
22946         (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
22947         of an integer constant at compile-time.
22948
22949 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
22950
22951         PR 30562
22952         * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
22953         Update all users.
22954         * tree-ssa-alias.c (compute_is_aliased): Remove.  Update all
22955         users.
22956         (init_alias_info):
22957         * tree-ssa-live.c (remove_unused_locals): Do not remove
22958         TREE_ADDRESSABLE variables.
22959         * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
22960         * tree-ssa-operands.c (add_virtual_operand): Remove argument
22961         FOR_CLOBBER.  Update all users.
22962         If VAR has an associated alias set, add a virtual operand for
22963         it if no alias is found to conflict with the memory reference.
22964
22965 2007-02-07  Jan Hubicka  <jh@suse.cz>
22966             Robert Kidd <rkidd@crhc.uiuc.edu>
22967
22968         * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
22969
22970 2007-02-07  Ian Lance Taylor  <iant@google.com>
22971
22972         * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
22973
22974 2007-02-07  Roger Sayle  <roger@eyesopen.com>
22975
22976         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
22977         parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
22978         tablejumpdi, movsi_to_cr_one): Remove constraints from
22979         define_expand's match_operands.
22980
22981 2007-02-07  Roger Sayle  <roger@eyesopen.com>
22982
22983         * global.c (compute_regsets): Move declatation of "i" inside of
22984         #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
22985
22986 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
22987
22988         PR c++/30703
22989         * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
22990         of INDIRECT_REF <RESULT_DECL>.
22991
22992         * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
22993
22994 2007-02-06  J"orn Rennecke  <joern.rennecke@arc.com>
22995             Kaz Kojima  <kkojima@gcc.gnu.org>
22996
22997         PR target/29746
22998         * config/sh/sh.c (expand_cbranchdi4): Use scratch register
22999         properly.
23000         (sh_initialize_trampoline): Add parentheses to avoid a warning.
23001
23002 2007-02-06  Zdenek Dvorak <dvorakz@suse.cz>
23003
23004         * doc/loop.texi: Document possibility not to perform disambiguation
23005         of loops with multiple latches.
23006         * cfgloopmanip.c (alp_enum_p): Removed.
23007         (add_loop): Handle subloops.  Use get_loop_body_with_size.
23008         (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
23009         * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
23010         the new forwarder block.
23011         (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
23012         Handle the case latch is NULL.
23013         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg
23014         modifications when marking loop exits.
23015         * ifcvt.c (if_convert): Ditto.  Mark loop exits even if cfg cannot
23016         be modified.
23017         * loop-init.c (loop_optimizer_init): Do not modify cfg.  Call
23018         disambiguate_loops_with_multiple_latches.
23019         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
23020         before fix_loop_structure.
23021         * cfgloop.c: Include pointer-set.h and output.h.
23022         (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
23023         update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
23024         (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
23025         find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
23026         mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
23027         disambiguate_multiple_latches, get_loop_body_with_size,
23028         disambiguate_loops_with_multiple_latches): New functions.
23029         (flow_loop_dump): Dump multiple latch edges.
23030         (flow_loop_nodes_find): Handle loops with multiple latches.
23031         (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
23032         (glb_enum_p): Modified.
23033         (get_loop_body): Use get_loop_body_with_size.
23034         * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
23035         (AVOID_CFG_MODIFICATIONS): New constant.
23036         (disambiguate_loops_with_multiple_latches, add_loop,
23037         get_loop_body_with_size): Declare.
23038         * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
23039
23040 2007-02-06  Seongbae Park <seongbae.park@gmail.com>
23041
23042         PR inline-asm/28686
23043         * global.c (compute_regsets): New function.
23044         (global_alloc): Refactored ELIMINABLE_REGSET
23045         and NO_GLOBAL_ALLOC_REGS computation out.
23046         (rest_of_handle_global_alloc): Call compute_regsets()
23047         for non-optimizing case.
23048
23049 2007-02-06  Richard Henderson  <rth@redhat.com>
23050
23051         * config/i386/constraints.md (Y2): Rename from Y.
23052         (Yi): New constraint.
23053         * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
23054         pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
23055         zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
23056         (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
23057         truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
23058         fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
23059         floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed,
23060         absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
23061         fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
23062         * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
23063         mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
23064         vec_extractv2si_1): Change Y constraints to Y2.
23065         * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
23066         vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
23067         Change Y constraints to Y2.
23068         (sse2_loadld): Change Y constraints to x.
23069
23070 2007-02-06  Roger Sayle  <roger@eyesopen.com>
23071
23072         * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
23073         (parity<mode>2): New define_expand using rs6000_emit_parity.
23074         * config/rs6000/rs6000.c (rs6000_emit_popcount,
23075         rs6000_emit_parity): New functions.
23076         * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
23077         rs6000_emit_parity): Prototype here.
23078
23079 2007-02-06  Ian Lance Taylor  <iant@google.com>
23080
23081         * lower-subreg.c (simple_move_operand): Reject CONST.
23082         (resolve_clobber): Call validate_change rather than directly
23083         assigning to XEXP (pat, 0).
23084
23085 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
23086
23087         * Makefile.in (tree-ssa-loop-ivopts.o): Add pointer-set.h dependency.
23088         (tree-ssa-reassoc.o): Add pointer-set.h dependency.
23089         (tree-cfg.o): Remove hashtab.h dependency.
23090
23091         * tree-ssa-loop-ivopts.c: Include pointer-set.h.
23092         (struct ivopts_data): Change niters to pointer_map_t.
23093         (struct nfe_cache_elt, nfe_hash, nfe_eq): Delete.
23094         (niter_for_exit): Create pointer_map on demand.  Change for
23095         pointer_map API.
23096         (tree_ssa_iv_optimize_init): Initialize data->niters to NULL.
23097         (free_loop_data): Destroy data->niters if created and reset field.
23098         (tree_ssa_iv_optimize_finalize): Don't delete data->niters here.
23099         (tree_ssa_iv_optimize_loop): Check for presence of stale data.
23100
23101         * tree-ssa-reassoc.c: Include pointer-set.h.
23102         (bb_rank): Change to long *.
23103         (operand_rank): Change to pointer_map_t.
23104         (find_operand_rank): Return long, -1 if not found.  Declare as inline.
23105         (insert_operand_rank): Accept long.
23106         (operand_entry_hash, operand_entry_eq): Remove.
23107         (get_rank): Return long.  Adjust for changes above.
23108         (init_reassoc): Change rank type to long.  Adjust creation of bb_rank
23109         and operand_rank.
23110         (fini_reassoc): Delete operand_rank with pointer_map_destroy.
23111
23112         * tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
23113         (struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
23114         (insert_vi_for_tree): Rewrite for pointer_map API.  Assert argument
23115         is not NULL.
23116         (lookup_vi_for_tree): Rewrite for pointer_map API.  Return varinfo_t
23117         directly since it cannot be NULL.
23118         (get_vi_for_tree): Rewrite for pointer_map API.
23119         (find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
23120         (init_alias_vars): Create vi_for_tree as pointer_map.
23121         (delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
23122
23123         * tree-cfg.c: Don't include hashtab.h.
23124         (edge_to_cases): Declare as pointer_map.
23125         (struct edge_to_cases_elt, edge_to_cases_hash, edge_to_cases_eq):
23126         Delete.
23127         (edge_to_cases_cleanup): Rewrite as pointer_map_traverse callback.
23128         (start_recording_case_labels): Create edge_to_cases as pointer_map.
23129         (end_recoding_case_labels): Cleanup edge_to_cases manually before
23130         destroying it.
23131         (record_switch_edge): Delete.
23132         (get_cases_for_edge): Adjust for pointer_map API, inline
23133         record_switch_edge (rewritten for new API), remove goto.
23134
23135 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
23136
23137         * Makefile.in (tree-nested.o): Add pointer-set.h dependency.
23138         * tree-nested.c: Include pointer-set.h.
23139         (var_map_elt, var_map_eq, var_map_hash): Delete.
23140         (struct nesting_info): Remove GTY marker.  Change the two htab_t's
23141         to pointer_map_t's.
23142         (nesting_info_bitmap_obstack): New.
23143         (lookup_field_for_decl): Adjust for pointer_map API.
23144         (lookup_tramp_for_decl): Adjust for pointer_map API.
23145         (get_nonlocal_debug_decl): Adjust for pointer_map API.
23146         (get_local_debug_decl): Adjust for pointer_map API.
23147         (convert_nl_goto_reference): Adjust for pointer_map API.
23148         (convert_nl_goto_receiver): Adjust for pointer_map API.
23149         (create_nesting_tree): Create outside GGC space.  Create bitmap on
23150         the new obstack.  Create field_map and var_map as pointer_maps.
23151         (free_nesting_tree): Adjust for changes to create_nesting_tree.
23152         (root): Delete.
23153         (lower_nested_functions): Move root here, no need to NULL it.
23154         Initialize and release the obstack.
23155
23156 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
23157
23158         * tree.c (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p):
23159         Remove prototypes and make them non-static.
23160         (struct tree_int_map): Remove.
23161         * tree.h (struct tree_int_map): Move here, turning TO into an
23162         unsigned int.
23163         (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p): Declare.
23164
23165         * tree.h (TREE_COMPLEXITY): Remove.
23166         (struct tree_exp): Remove complexity field.
23167         * tree.c (build1_stat): Don't set it.
23168
23169 2007-02-06  Dorit Nuzman  <dorit@il.ibm.com>
23170             Victor Kaplansky  <victork@il.ibm.com>
23171
23172         * tree-vectorizer.c (vect_is_simple_use): Support induction.
23173         (vect_is_simple_reduction): Support reduction with induction as
23174         one of the operands.
23175         (vect_is_simple_iv_evolution): Fix formatting.
23176         * tree-vect-analyze.c (vect_mark_stmts_to_be_vectorized): Fix
23177         formatting.  Don't mark induction phis for vectorization.
23178         (vect_analyze_scalar_cycles): Analyze all inductions, then reductions.
23179         * tree-vect-transform.c (get_initial_def_for_induction): New function.
23180         (vect_get_vec_def_for_operand): Support induction.
23181         (vect_get_vec_def_for_stmt_copy): Fix formatting and add check for
23182         induction case.
23183         (vectorizable_reduction): Support reduction with induction as one of
23184         the operands.
23185         (vectorizable_type_demotion): Use def-type of stmt argument rather
23186         than dummy def-type.
23187
23188         * tree-ssa-loop.c (gate_scev_const_prop): Return the value of
23189         flag_tree_scev_cprop.
23190         * common.opt (tree-scev-cprop): New flag.
23191
23192         * tree-vect-transform.c (vect_create_destination_var): Use 'kind' in
23193         call to vect_get_new_vect_var.
23194
23195 2007-02-06  Ira Rosen  <irar@il.ibm.com>
23196
23197         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that
23198         vectype is not NULL.
23199         (vect_pattern_recog_1): Likewise.
23200
23201 2007-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23202
23203         * fold-const.c (negate_expr_p): Handle CONJ_EXPR.
23204         (fold_negate_expr): Likewise.
23205
23206 2007-02-05  Alexandre Oliva  <aoliva@redhat.com>
23207
23208         PR debug/30189
23209         * dwarf2out.c (modified_type_die): Follow DECL_ORIGINAL_TYPE
23210         even if cv-qualification is the same.
23211
23212 2007-02-05  Geoffrey Keating  <geoffk@apple.com>
23213
23214         * config/rs6000/darwin-tramp.asm (__trampoline_setup): Call
23215         __enable_execute_stack on completion.
23216
23217 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
23218
23219         * config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
23220         athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
23221         athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
23222         athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
23223         athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
23224         athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
23225         athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
23226         athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
23227
23228 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
23229
23230         * config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
23231         cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
23232         swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
23233         fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
23234         x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
23235         floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
23236         floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
23237         mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
23238         umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
23239         umuldi3_highpart_rex64, umulsi3_highpart_insn,
23240         umulsi3_highpart_zext, smuldi3_highpart_rex64,
23241         smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
23242         x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
23243         sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
23244         sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
23245         sqrtextenddfxf2_i387): Added amdfam10_decode.
23246
23247         * config/i386/athlon.md (athlon_idirect_amdfam10,
23248         athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
23249         athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
23250         athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
23251         athlon_ivector_store_amdfam10): New define_insn_reservation.
23252         (athlon_idirect_loadmov, athlon_idirect_movstore): Added
23253         amdfam10.
23254
23255 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
23256
23257         * config/i386/athlon.md (athlon_call_amdfam10,
23258         athlon_pop_amdfam10, athlon_lea_amdfam10): New
23259         define_insn_reservation.
23260         (athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
23261         athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
23262         athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
23263
23264 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
23265
23266         * config/i386/athlon.md (athlon_sseld_amdfam10,
23267         athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
23268         athlon_mmxssest_short_amdfam10): New define_insn_reservation.
23269
23270 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
23271
23272         * config/i386/athlon.md (athlon_sseins_amdfam10): New
23273         define_insn_reservation.
23274         * config/i386/i386.md (sseins): Added sseins to define_attr type
23275         and define_attr unit.
23276         * config/i386/sse.md: Set type attribute to sseins for insertq
23277         and insertqi.
23278
23279 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
23280
23281         * config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
23282         ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
23283         ssecomi_load_amdfam10, ssecomi_amdfam10,
23284         sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
23285         define_insn_reservation.
23286         (ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
23287
23288 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
23289
23290         * config/i386/athlon.md (cvtss2sd_load_amdfam10,
23291         cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
23292         cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
23293         cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
23294         cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
23295         cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New
23296         define_insn_reservation.
23297
23298         * config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
23299         cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
23300         cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
23301         cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
23302         cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
23303
23304 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
23305
23306         * config/i386/athlon.md (athlon_ssedivvector_amdfam10,
23307         athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
23308         athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
23309         (athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
23310         athlon_ssemul_load_k8): Added amdfam10.
23311
23312 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
23313
23314         * config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
23315         (x86_sse_unaligned_move_optimal): New variable.
23316
23317         * config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for
23318         m_AMDFAM10.
23319         (ix86_expand_vector_move_misalign): Add code to generate movupd/movups
23320         for unaligned vector SSE double/single precision loads for AMDFAM10.
23321
23322 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
23323
23324         * config/i386/i386.h (TARGET_AMDFAM10): New macro.
23325         (TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
23326         Define TARGET_CPU_DEFAULT_amdfam10.
23327         (TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
23328         (processor_type): Add PROCESSOR_AMDFAM10.
23329
23330         * config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
23331         processor_type in config/i386/i386.h.
23332         Enable imul peepholes for TARGET_AMDFAM10.
23333
23334         * config.gcc: Add support for --with-cpu option for amdfam10.
23335
23336         * config/i386/i386.c (amdfam10_cost): New variable.
23337         (m_AMDFAM10): New macro.
23338         (m_ATHLON_K8_AMDFAM10): New macro.
23339         (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
23340         x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
23341         x86_promote_QImode, x86_integer_DFmode_moves,
23342         x86_partial_reg_dependency, x86_memory_mismatch_stall,
23343         x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
23344         x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
23345         x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
23346         x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
23347         Enable/disable for amdfam10.
23348         (override_options): Add amdfam10_cost to processor_target_table.
23349         Set up PROCESSOR_AMDFAM10 for amdfam10 entry in
23350         processor_alias_table.
23351         (ix86_issue_rate): Add PROCESSOR_AMDFAM10.
23352         (ix86_adjust_cost): Add code for amdfam10.
23353
23354 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
23355
23356         * config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
23357         instruction set feature flag. Add new (-mpopcnt) flag for popcnt
23358         instruction. Add new SSE4A (-msse4a) instruction set feature flag.
23359         * config/i386/i386.h: Add builtin definition for SSE4A.
23360         * config/i386/i386.md: Add support for ABM instructions
23361         (popcnt and lzcnt).
23362         * config/i386/sse.md: Add support for SSE4A instructions
23363         (movntss, movntsd, extrq, insertq).
23364         * config/i386/i386.c: Add support for ABM and SSE4A builtins.
23365         Add -march=amdfam10 flag.
23366         * config/i386/ammintrin.h: Add support for SSE4A intrinsics.
23367         * doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
23368         and amdfam10.
23369         * doc/extend.texi: Add documentation for SSE4A builtins.
23370
23371 2007-02-05  Bob Wilson  <bob.wilson@acm.org>
23372
23373         * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
23374
23375 2007-02-05  Richard Guenther  <rguenther@suse.de>
23376
23377         * tree-vectorizer.h (vectorizable_function): Add argument type
23378         argument, change return type.
23379         * tree-vect-patterns.c (vect_recog_pow_pattern): Adjust caller.
23380         * tree-vect-transform.c (vectorizable_function): Handle extra
23381         argument, return vectorized function decl.
23382         (build_vectorized_function_call): Remove.
23383         (vectorizable_call): Handle calls with result and argument types
23384         differing.  Handle loop vectorization factor correctly.
23385         * targhooks.c (default_builtin_vectorized_function): Adjust for
23386         extra argument.
23387         * targhooks.h (default_builtin_vectorized_function): Likewise.
23388         * target.h (builtin_vectorized_function): Add argument type
23389         argument.
23390         * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
23391         extra argument, allow vectorizing of lrintf.
23392         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Adjust
23393         documentation of target hook.
23394
23395 2007-02-05  Hans-Peter Nilsson  <hp@axis.com>
23396
23397         PR target/30665
23398         * config/cris/cris.md ("*andsi_movu", "*andsi_clear", "*andhi_movu")
23399         ("*andhi_clear", andu (casesi+45)): For size-changed operand where
23400         memory is allowed, require !side_effects_p, not just !MEM_VOLATILE_P.
23401
23402 2007-02-05  Roger Sayle  <roger@eyesopen.com>
23403
23404         * fold-const.c (fold_unary) <REAL_PART>: Test for availability of
23405         BUILT_IN_COS before simplifying REAL_PART(CEXPI)) to COS.
23406         <IMAG_PART>: Likewise, check for availability of BUILT_IN_SIN.
23407         * builtins.c (fold_builtin_sincos): Check for TARGET_C99_FUNCTIONS
23408         before canonicalizing sincos to cexpi.
23409         (fold_builtin_cexp): Likewise, for canonicalizing cexp to cexpi.
23410
23411 2007-02-05  Roger Sayle  <roger@eyesopen.com>
23412
23413         * config/alpha/alpha.c (alpha_add_builtins): New Helper function.
23414         Set TREE_READONLY and TREE_NOTHROW directly, not via attributes.
23415         (alpha_init_builtins): Use alpha_add_builtins to process tables.
23416
23417 2007-02-05  Roger Sayle  <roger@eyesopen.com>
23418
23419         * mips-tfile.c (initialize_init_file): Correct endianness test.
23420
23421 2007-02-05  Kazu Hirata  <kazu@codesourcery.com>
23422
23423         * config/m68k/m68k.md (pushdi-1, pushdi, movsi+1): Don't use
23424         the 'y' constraint.
23425
23426 2007-02-05  Richard Sandiford  <richard@codesourcery.com>
23427
23428         * dwarf2out.c (dwarf2out_frame_debug_expr): Record the register
23429         saves in a PARALLEL before the register assignments.
23430
23431 2007-02-05  Richard Sandiford  <richard@codesourcery.com>
23432
23433         * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Do not require
23434         DWARF_FRAME_RETURN_COLUMN to be a general register.
23435         * dwarf2out.c (init_return_column_size): New function, split from...
23436         (expand_builtin_init_dwarf_reg_sizes): ...here.  Allow both
23437         DWARF_FRAME_RETURN_COLUMN and DWARF_ALT_FRAME_RETURN_COLUMN
23438         to be nongeneral registers.
23439         * config/m68k/m68k.h (DWARF_FRAME_REGNUM): Only map FP and
23440         integer registers.
23441         (DWARF_FRAME_REGISTERS, DWARF_FRAME_RETURN_COLUMN): Define.
23442         (DWARF_ALT_FRAME_RETURN_COLUMN): Define.
23443
23444 2007-02-04  Zdenek Dvorak <dvorakz@suse.cz>
23445
23446         * cfgcleanup.c (try_optimize_cfg): Avoid removing ENTRY_BLOCK_PTR.
23447
23448 2007-02-04  Zdenek Dvorak <dvorakz@suse.cz>
23449
23450         * cfgloopmanip.c (loop_delete_branch_edge): Removed.
23451         (remove_path): Use can_remove_branch_p and remove_branch instead
23452         of loop_delete_branch_edge.
23453         * tree-ssa-loop-manip.c (scale_dominated_blocks_in_loop): New function.
23454         (tree_transform_and_unroll_loop): Remove dead branches immediately.
23455         Update profile using scale_dominated_blocks_in_loop.
23456         * cfghooks.c (can_remove_branch_p, remove_branch): New functions.
23457         * cfghooks.h (struct cfg_hooks): Add can_remove_branch_p.
23458         (can_remove_branch_p, remove_branch): Declare.
23459         * tree-cfg.c (tree_can_remove_branch_p): New function.
23460         (tree_cfg_hooks): Add tree_can_remove_branch_p.
23461         * cfgrtl.c (rtl_can_remove_branch_p): New function.
23462         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add rtl_can_remove_branch_p.
23463
23464 2007-02-05  Jan Hubicka  <jh@suse.cz>
23465
23466         PR middle-end/30696
23467         * ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed
23468         nodes in cgraph, don't remove offline copy of the function.
23469
23470 2007-02-04  Jan Hubicka  <jh@suse.cz>
23471
23472         * tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
23473         vectors might cause maybe_lookup_element_for_expr to be called
23474         on non-sra-candidate.
23475
23476 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
23477
23478         * config/bfin/bfin-modes.def, config/bfin/bfin.c,
23479         config/bfin/bfin.md, config/bfin/predicates.md: Follow
23480         spelling conventions.
23481
23482 2007-02-04  Richard Guenther  <rguenther@suse.de>
23483
23484         PR middle-end/30636
23485         * fold-const.c (try_move_mult_to_index): Make sure to not
23486         overflow one dimension of a multi-dimensional array access.
23487
23488 2007-02-04  Jan Hubicka  <jh@suse.cz>
23489
23490         * passes.c (init_optimization_passes): Reindent.
23491
23492 2007-02-04  Jan Hubicka  <jh@suse.cz>
23493             Eric Botcazou  <ebotcazou@adacore.com>
23494
23495         * tree-optimize.c (has_abnormal_outgoing_edge_p): Move to...
23496         (execute_fixup_cfg): Break out the abnormal goto code.
23497         * tree-inline.c (has_abnormal_outgoing_edge_p): ...here.
23498         (make_nonlocal_label_edges): Move here from execute_fixup_cfg.
23499         (optimize_inline_calls): Call make_nonlocal_label_edges.
23500
23501 2007-02-04  Jan Hubicka  <jh@suse.cz>
23502
23503         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Return
23504         true when something was changed.
23505         (rename_ssa_copies): When something was changed, do
23506         TODO_remove_unused_locals.
23507         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
23508         add TODO_remove_unused_locals when instruction was removed.
23509
23510 2007-02-04  Jan Hubicka  <jh@suse.cz>
23511
23512         * ipa-inline.c (try_inline): Improve debug output; work on already
23513         inline edges too.
23514         (cgraph_decide_inlining_incrementally): Indent; improve debug output;
23515         call try_inline for already inlined edges too when flattening;
23516         inline also functions that make callee growth but overall unit size
23517         reduce.
23518
23519 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
23520
23521         * config/m32c/bitops.md, config/m32c/jump.md,
23522         config/m32c/m32c.c, config/m32c/m32c.h, config/m32r/m32r.c,
23523         config/m32r/m32r.h, config/m32r/m32r.md,
23524         config/m32r/predicates.md, config/m68hc11/larith.asm,
23525         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
23526         config/m68k/m68k.h, config/mcore/mcore.md, config/mips/4k.md,
23527         config/mips/mips-protos.h, config/mips/mips.c,
23528         config/mips/mips.h, config/mips/mips.md, config/mips/mips16.S,
23529         config/mn10300/mn10300.h, config/mn10300/predicates.md,
23530         config/mt/mt.c, config/mt/mt.h, config/mt/mt.md: Follow
23531         spelling conventions.
23532
23533         * config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
23534         Follow spelling conventions.
23535
23536 2007-02-03  Douglas Gregor  <doug.gregor@gmail.com>
23537
23538         * c-opts.c (c_common_post_options): If C++0x mode is enabled, don't
23539         warn about C++0x compatibility.
23540
23541 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
23542
23543         * config/h8300/h8300.c, config/h8300/h8300.h,
23544         config/h8300/h8300.md: Follow spelling conventions.
23545
23546 2007-02-03  Uros Bizjak  <ubizjak@gmail.com>
23547
23548         PR middle-end/30667
23549         * combine.c (try_combine): Do not substitute source operand
23550         with constants wider than 2 * HOST_BITS_PER_WIDE_INT.
23551
23552 2007-02-03  Jan Hubicka  <jh@suse.cz>
23553
23554         PR gcov-profile/30650
23555         * value-prof.c (stringop_block_profile): Fix handling of size counter;
23556         do not divide by zero for never executed counters.
23557         (tree_find_values_to_profile): Fix counters.
23558         * gcov-ui.h (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): Fix comments.
23559
23560 2007-02-03  Ian Lance Taylor  <iant@google.com>
23561
23562         * lower-subreg.c (simple_move_operand): New static function,
23563         broken out of simple_move.  Reject LABEL_REF, SYMBOL_REF, and HIGH
23564         operands.
23565         (simple_move): Call simple_move_operand.
23566         (find_decomposable_subregs): Add special handling of MEMs.
23567         (can_decompose_p): Rename from cannot_decompose_p.  Reverse
23568         meaning of return value.  If we see a hard register, test whether
23569         it can store a word_mode value.  Change all callers.
23570
23571 2007-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23572
23573         * pa.md (addvdi3, addvsi3, subvdi3, subvsi3, negvdi2, negvsi2): New
23574         ftrapv insns and expanders.
23575         (subdi3): Change define_expand operand 1 to arith11_operand, and
23576         operand 2 to reg_or_0_operand.  Change constraints of 64-bit insn
23577         pattern to handle reg_or_0 operands.  Revise 32-bit insn pattern to
23578         handle 11-bit constants and reg_or_0 operands in operands 1 and 2,
23579         respectively.
23580
23581         PR middle-end/30174
23582         * varasm.c (notice_global_symbol): Treat global objects as weak when
23583         flag_shlib is true.
23584
23585 2007-02-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23586
23587         * emit-rtl.c (dconstpi): Delete.
23588         (dconstsqrt2): New.
23589         (init_emit_once): Delete dconstpi and init dconstsqrt2.
23590         * real.h (dconstpi): Delete.
23591         (dconstsqrt2): New.
23592         * builtins.c (fold_builtin_cabs): Use dconstsqrt2.
23593         (fold_builtin_hypot): Likewise.
23594
23595 2007-02-03  Tom Tromey  <tromey@redhat.com>
23596
23597         PR driver/30246
23598         * gcc.c (cpp_unique_options): Any of -ggdb3, -gstabs3,
23599         -gcoff3, -gxcoff3, -gvms3 implies -dD.
23600
23601 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
23602
23603         * c-decl.c, config/avr/avr.c, config/avr/avr.h,
23604         config/m68k/m68k.c, config/m68k/netbsd-elf.h,
23605         config/mn10300/mn10300.c, config/pdp11/pdp11.h,
23606         config/rs6000/cell.md, config/rs6000/darwin.h,
23607         config/sh/sh.md, config/sh/sh4-300.md, config/spu/spu.c,
23608         config/spu/spu.md, cselib.c, expr.c, haifa-sched.c, hwint.h,
23609         jump.c, reload.c, sched-deps.c, sched-int.h, tree-inline.c,
23610         tree-profile.c, tree-ssa-live.h, tree-vrp.c: Fix comment
23611         typos.  Follow spelling conventions.
23612         * doc/invoke.texi: Follow spelling conventions.
23613
23614 2007-02-03  Roger Sayle  <roger@eyesopen.com>
23615
23616         * simplify-rtx.c (simplify_relational_operation_1): Implement some
23617         canonicalization transformations that attempt to simplify integer
23618         constant comparisons to become comparisons against zero.
23619
23620 2007-02-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23621
23622         * builtins.c (fold_builtin_cabs): Fold cabs(x+xi) into
23623         fabs(x)*sqrt(2).
23624         * fold-const.c (fold_binary): Fix comment typos.  Fold complex
23625         (x,0)-(0,y) into (x,-y).  Likewise (0,y)-(x,0) into (-x,y).
23626
23627 2007-02-02  Mike Stump  <mrs@apple.com>
23628
23629         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Add.
23630         * config/rs6000/rs6000.c (DARWIN_GENERATE_ISLANDS): Add.
23631         (output_call): Use DARWIN_GENERATE_ISLANDS to decide when to
23632         generate a branch island.
23633
23634 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
23635
23636         * config/xtensa/xtensa.c (smalloffset_mem_p): Use BASE_REG_P.
23637         (xtensa_legitimate_address_p): New.
23638         (xtensa_legitimize_address): New.
23639         (xtensa_output_addr_const_extra): New.
23640         * config/xtensa/xtensa.h (REG_OK_STRICT_FLAG): Define.
23641         (BASE_REG_P): New.
23642         (REG_OK_FOR_BASE_P): Use BASE_REG_P.
23643         (GO_IF_LEGITIMATE_ADDRESS): Move code to xtensa_legitimate_address_p.
23644         (LEGITIMIZE_ADDRESS): Move code to xtensa_legitimize_address.
23645         (OUTPUT_ADDR_CONST_EXTRA): Move code to xtensa_output_addr_const_extra.
23646         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): New.
23647         (xtensa_legitimize_address): New.
23648         (xtensa_output_addr_const_extra): New.
23649
23650 2007-02-02  Steve Ellcey  <sje@cup.hp.com>
23651
23652         * config/ia64/ia64.c (ia64_print_operand): Fix compare strings.
23653
23654 2007-02-02  Ian Lance Taylor  <iant@google.com>
23655
23656         * expmed.c (expand_divmod): Add comment.
23657
23658 2007-02-02  Kazu Hirata  <kazu@codesourcery.com>
23659
23660         * emit-rtl.c (renumber_insns): Remove.
23661         * flags.h: Remove the extern for flag_renumber_insns.
23662         * rtl.h: Remove the prototype for renumber_insns.
23663         * toplev.c (flag_renumber_insns): Remove.
23664
23665 2007-02-02  Hui-May Chang  <hm.chang@apple.com>
23666
23667         Revert for x86 darwin:
23668         2005-06-19  Uros Bizjak  <uros@kss-loka.si>
23669
23670         * config/i386/i386.c (ix86_function_arg_regno_p): Put back the
23671         code before the following patch under TARGET_MACHO.
23672         (ix86_function_value_regno_p): Likewise.
23673
23674 2007-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23675
23676         * fold-const.c (negate_expr_p, fold_negate_expr): Handle
23677         COMPLEX_EXPR.
23678
23679 2007-02-02  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
23680
23681         PR target/29682
23682         * config/ia64/ia64.c (ia64_speculate_insn): Restrict to memory
23683         loads to general or fp registers.  Add comments.
23684         * config/ia64/ia64.md (reg_pred_prefix): Add comment.
23685
23686 2007-02-02  Paolo Bonzini  <bonzini@gnu.org>
23687
23688         * pointer-set.c (insert_aux): Only return insertion slot.
23689         (pointer_set_insert): Adjust.
23690         (pointer_set_traverse, struct pointer_map_t, pointer_map_create,
23691         pointer_map_destroy, pointer_map_insert, pointer_map_contains,
23692         pointer_map_traverse): New.
23693         * pointer-set.h (pointer_set_traverse, struct pointer_map_t,
23694         pointer_map_create,  pointer_map_destroy, pointer_map_insert,
23695         pointer_map_contains, pointer_map_traverse): Declare.
23696
23697 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
23698
23699         PR middle-end/30473
23700         * builtins.c (fold_builtin_sprintf): Do not attempt to optimize
23701         sprintf (str, "%s").  Do not optimize sprintf (str, "nopercent", p++).
23702
23703 2007-02-02  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
23704
23705         * sched-int.h (ds_to_dk, dk_to_ds): Declare functions.
23706
23707         (struct _dep): New type.
23708         (dep_t): New typedef.
23709         (DEP_PRO, DEP_CON, DEP_KIND): New access macros.
23710         (DEP_STATUS): New access macro.  The macro with the same name was
23711         renamed to DEP_LINK_STATUS.
23712         (dep_init): Declare function
23713
23714         (struct _dep_link): New type.
23715         (dep_link_t): New typedef.
23716         (DEP_LINK_NODE, DEP_LINK_NEXT, DEP_LINK_PREV_NEXTP): New access macros.
23717         (DEP_LINK_DEP, DEP_LINK_PRO, DEP_LINK_CON, DEP_LINK_KIND): New macros.
23718         (DEP_LINK_STATUS): New macro.
23719         (debug_dep_links): New debug function.
23720
23721         (struct _deps_list): New type.
23722         (deps_list_t): New typedef.
23723         (DEPS_LIST_FIRST): New access macro.
23724         (FOR_EACH_DEP_LINK): New cycle macro.
23725         (create_deps_list, free_deps_list, delete_deps_list): Declare
23726         functions.
23727         (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
23728         (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
23729         (copy_deps_list_change_con): Ditto.
23730
23731         (move_dep_link): Declare function.
23732
23733         (struct _dep_node): New type.
23734         (dep_node_t): New typedef.
23735         (DEP_NODE_BACK, DEP_NODE_DEP, DEP_NODE_FORW): New access macros.
23736
23737         (struct haifa_insn_data.back_deps): New field to hold backward
23738         dependencies of the insn.
23739         (struct haifa_insn_data.depend): Rename to forw_deps.  Change its type
23740         to deps_list_t.
23741         (struct haifa_insn_data.resolved_deps): Rename to resolved_back_deps.
23742         Change its type to deps_list_t.
23743         (INSN_BACK_DEPS): New access macro to use instead of LOG_LINKS.
23744         (INSN_DEPEND): Rename to INSN_FORW_DEPS.
23745         (RESOLVED_DEPS): Rename to INSN_RESOLVED_BACK_DEPS.
23746
23747         (INSN_COST): Move to haifa-sched.c.  Use insn_cost () instead.
23748
23749         (DEP_STATUS): Rename to DEP_LINK_STATUS.  Fix typo in the comment.
23750
23751         (add_forw_dep, delete_back_forw_dep, insn_cost): Update declaration
23752         and all callers.
23753         (dep_cost): Declare.
23754
23755         * sched-deps.c (CHECK): New macro to (en/dis)able sanity checks.
23756         (ds_to_dk, dk_to_ds): New functions.
23757
23758         (init_dep_1): New static function.
23759         (init_dep): New function.
23760         (copy_dep): New static function.
23761
23762         (dep_link_consistent_p, attach_dep_link, add_to_deps_list): New static
23763         functions.
23764         (detach_dep_link): New static function.
23765         (move_dep_link): New function.
23766
23767         (dep_links_consistent_p, dump_dep_links): New static functions.
23768         (debug_dep_links): New debugging function.
23769
23770         (deps_obstack, dl_obstack, dn_obstack): New static variables.
23771
23772         (alloc_deps_list, init_deps_list): New static functions.
23773         (create_deps_list): New function.
23774         (clear_deps_list): New static function.
23775         (free_deps_list, delete_deps_list, deps_list_empty_p): New functions.
23776         (deps_list_consistent_p, dump_deps_list): New static functions.
23777         (debug_deps_list): New function.
23778         (add_back_dep_to_deps_list, find_link_by_pro_in_deps_list): New
23779         functions.
23780         (find_link_by_con_in_deps_list, copy_deps_list_change_con): Ditto.
23781
23782         (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Update to
23783         use new scheduler dependencies lists.
23784         (add_back_dep, delete_all_dependences, fixup_sched_groups): Ditto.
23785         (sched_analyze): Ditto.  Initialize dependencies lists.
23786         (add_forw_dep, compute_forward_dependences): Update to use new
23787         scheduler dependencies lists.
23788
23789         (init_dependency_caches): Init deps_obstack.
23790         (free_dependency_caches): Free deps_obstack.
23791
23792         (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Update to use
23793         new scheduler dependencies lists.
23794         (delete_forw_dep, add_or_update_back_forw_dep): Ditto.
23795         (add_back_forw_dep, delete_back_forw_dep): Ditto.
23796
23797         * sched-rgn.c (set_spec_fed, find_conditional_protection, is_pfree):
23798         Update to use new scheduler dependencies lists.
23799         (is_conditionally_protected, is_prisky, add_branch_dependences): Ditto.
23800         (debug_dependencies): Ditto.
23801         (schedule_region): Update comments.
23802
23803         * sched-ebb.c (earliest_block_with_similiar_load): Update to use new
23804         scheduler dependencies lists.
23805         (schedule_ebb): Update comments.
23806
23807         * rtl.def (DEPS_LIST): Remove.
23808
23809         * lists.c (unused_deps_list): Remove.
23810         (free_list): Update assertions.
23811
23812         (alloc_DEPS_LIST, free_DEPS_LIST_list, free_DEPS_LIST_node): Remove.
23813         (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
23814
23815         * rtl.h (free_DEPS_LIST_list, alloc_DEPS_LIST): Remove declarations.
23816         (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
23817
23818         * haifa-sched.c (comments): Update.
23819         (insn_cost1): Remove.  Inline the code into insn_cost ().
23820         (insn_cost): Update to use new scheduler dependencies lists.  Move
23821         processing of the dependency cost to dep_cost ().
23822         (dep_cost): New function.  Use it instead of insn_cost () when
23823         evaluating cost of the dependency.  Use compatible interface to
23824         interact with the target.
23825         (priority): Update to use new scheduler dependencies lists.
23826         (rank_for_schedule): Ditto.  Optimize heuristic that prefers the insn
23827         with greater number of insns that depend on the insn.
23828         (schedule_insn): Update to use new scheduler dependencies lists.  Add
23829         code to free backward dependencies lists.  Inline and optimize code
23830         from resolve_dep () - see PR28071.
23831         (ok_for_early_queue_removal): Update to use new scheduler dependencies
23832         lists.  Update call to targetm.sched.is_costly_dependence hook.
23833
23834         (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
23835         scheduler dependencies lists.
23836
23837         (resolve_dep): Remove.  Move the logic to schedule_insn ().
23838         (init_h_i_d): Initialize dependencies lists.
23839
23840         (process_insn_depend_be_in_spec): Rename to
23841         process_insn_forw_deps_be_in_spec.  Update to use new scheduler
23842         dependencies lists.
23843         (add_to_speculative_block, create_check_block_twin, fix_recovery_deps):
23844         Update to use new scheduler dependencies lists.
23845         (clear_priorities, calc_priorities, add_jump_dependencies): Ditto.
23846
23847         * ddg.c (create_ddg_dependence, create_ddg_dep_no_link): Update to use
23848         new scheduler dependencies lists.
23849         (build_intra_loop_deps): Ditto.
23850
23851         * target.h (struct _dep): Declare to use in
23852         gcc_target.sched.is_costly_dependence.
23853         (struct gcc_target.sched.adjust_cost): Fix typo.
23854         (struct gcc_target.sched.is_costly_dependence): Change signature to
23855         use single dep_t parameter instead of an equivalent triad.
23856         (struct gcc_target.sched.adjust_cost_2): Remove.
23857
23858         * target-def.h (TARGET_SCHED_ADJUST_COST_2): Remove.
23859
23860         * reg-notes.def (DEP_TRUE, DEP_OUTPUT, DEP_ANTI): Update comments.
23861
23862         * doc/tm.texi (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Update
23863         documentation.
23864         (TARGET_SCHED_ADJUST_COST_2): Remove documentation.
23865
23866         * doc/rtl.texi (LOG_LINKS): Remove part about instruction scheduler.
23867         (REG_DEP_TRUE): Document.
23868
23869         * config/ia64/ia64.c (ia64_adjust_cost_2): Rename to ia64_adjust_cost.
23870         Change signature to correspond to the targetm.sched.adjust_cost hook.
23871         Update use in TARGET_SCHED_ADJUST_COST_2.
23872         (TARGET_SCHED_ADJUST_COST_2): Rename to TARGET_SCHED_ADJUST_COST.
23873         (ia64_dependencies_evaluation_hook, ia64_dfa_new_cycle): Update to use
23874         new scheduler dependencies lists.
23875         (ia64_gen_check): Ditto.
23876
23877         * config/mips/mips.c (vr4130_swap_insns_p): Update to use new
23878         scheduler dependencies lists.
23879
23880         * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Change
23881         signature to correspond to the targetm.sched.is_costly_dependence hook.
23882         (is_costly_group): Update to use new scheduler dependencies lists.
23883
23884         * config/spu/spu.c (spu_sched_adjust_cost): Use insn_cost () function
23885         instead of INSN_COST () macro.
23886
23887 2007-02-01  Ian Lance Taylor  <iant@google.com>
23888
23889         * lower-subreg.c (resolve_clobber): Handle a subreg of a concatn.
23890
23891 2007-02-01  Guy Martin  <gmsoft@gentoo.org>
23892
23893         * pa.md (tp_load): Correct mfctl instruction syntax.
23894
23895 2007-02-01  Geoffrey Keating  <geoffk@apple.com>
23896
23897         * config/rs6000/rs6000.c (rs6000_stack_info): Correct
23898         altivec_padding_size calculation on AIX.  Improve comment, add
23899         assert to verify that it's right.
23900
23901         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Don't define for
23902         64-bit.
23903
23904 2007-2-01  Seongbae Park  <seongbae.park@gmail.com>
23905
23906         PR inline-asm/28686
23907         * global.c (global_alloc): Add mising initialization of
23908         ELIMINABLE_REGSET.
23909
23910 2007-02-01  Roger Sayle  <roger@eyesopen.com>
23911
23912         * alias.c (init_alias_analysis): Correct whitespace.
23913         * bb-reorder.c (fix_edges_for_rarely_executed_code,
23914         partition_hot_cold_basic_blocks): Likewise.
23915         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
23916         expand_builtin_sprintf, fold_builtin_carg, fold_builtin_sprintf,
23917         maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
23918         fold_builtin_snprintf_chk, fold_builtin_printf,
23919         fold_builtin_fprintf, do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_arg2,
23920         do_mpfr_arg3, do_mpfr_sincos): Likewise.
23921         * cfgcleanup.c (cleanup_cfg): Likewise.
23922         * cfgexpand.c (tree_expand_cfg): Likewise.
23923         * fold-const.c (fold_binary) <RDIV_EXPR>: Likewise.
23924         * function.c (get_next_funcdef_no): Likewise.
23925         * gengtype.c (main): Likewise.
23926         * genmodes.c (main): Likewise.
23927         * gcse.c (bypass_conditional_jumps, print_ldst_list): Likewise.
23928         * haifa-sched.c (schedule_block, extend_h_i_d): Likewise.
23929         * ifcvt.c (noce_emit_move_insn): Likewise.
23930         * modulo-sched.c (generate_prolog_epilog, sms_schedule_by_order):
23931         Likewise.
23932         * stor-layout.c (get_best_mode): Likewise.
23933         * tree-ssa-loop-niter.c (get_val_for): Likewise.
23934         * tree-ssa-structalias.c (get_varinfo, get_varinfo_fc,
23935         scc_visit, do_ds_constraint, do_complex_constraint, label_visit,
23936         perform_var_substitution, solve_graph): Likewise.
23937         * tree-vrp.c (vrp_finalize): Likewise.
23938
23939 2007-02-01  Ian Lance Taylor  <iant@google.com>
23940
23941         * lower-subreg.c (simplify_gen_subreg_concatn): If we ask for the
23942         high part of a paradoxical subreg, return a constant zero.
23943
23944 2007-02-01  Zdenek Dvorak <dvorakz@suse.cz>
23945
23946         * toplev.c (lang_dependent_init): Call init_set_costs.
23947         * loop-init.c (loop_optimizer_init): Do not call init_set_costs.
23948
23949 2007-02-01  Richard Guenther  <rguenther@suse.de>
23950
23951         PR middle-end/30656
23952         * fold-const.c (fold_negate_expr): Allow negating a
23953         constant if overflow does not change.
23954
23955 2007-02-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23956
23957         * doc/c-tree.texi (Expression trees): Improve markup.
23958         * doc/tm.texi (Register Classes, Addressing Modes)
23959         (Floating Point): Fix spacing after abbreviations.  Fix some
23960         typos.
23961
23962 2007-02-01  Ben Elliston  <bje@au.ibm.com>
23963
23964         * doc/invoke.texi: Replace "bugfix" with "bug fix" throughout.
23965         * doc/contrib.texi: Likewise.
23966         * doc/install.texi: Likewise.
23967
23968 2007-01-31  Richard Henderson  <rth@redhat.com>
23969             Ian Lance Taylor  <iant@google.com>
23970
23971         * lower-subreg.c: New file.
23972         * rtl.def (CONCATN): Define.
23973         * passes.c (init_optimization_passes): Add pass_lower_subreg and
23974         pass_lower_subreg2.
23975         * emit-rtl.c (update_reg_offset): New static function, broken out
23976         of gen_rtx_REG_offset.
23977         (gen_rtx_REG_offset): Call update_reg_offset.
23978         (gen_reg_rtx_offset): New function.
23979         * regclass.c: Revert patch of 2006-03-05, restoring
23980         reg_scan_update.
23981         (clear_reg_info_regno): New function.
23982         * dwarf2out.c (concatn_loc_descriptor): New static function.
23983         (loc_descriptor): Handle CONCATN.
23984         * common.opt (fsplit_wide_types): New option.
23985         * opts.c (decode_options): Set flag_split_wide_types when
23986         optimizing.
23987         * timevar.def (TV_LOWER_SUBREG): Define.
23988         * rtl.h (gen_reg_rtx_offset): Declare.
23989         (reg_scan_update): Declare.
23990         * regs.h (clear_reg_info_regno): Declare.
23991         * tree-pass.h (pass_lower_subreg): Declare.
23992         (pass_lower_subreg2): Declare.
23993         * doc/invoke.texi (Option Summary): List -fno-split-wide-types.
23994         (Optimize Options): Add -fsplit-wide-types to -O1 list.  Document
23995         -fsplit-wide-types.
23996         * doc/rtl.texi (Regs and Memory): Document concat and concatn.
23997         * Makefile.in (OBJS-common): Add lower-subreg.o.
23998         (lower-subreg.o): New target.
23999
24000 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
24001
24002         * config/sh/sh.h (HAVE_SECONDARY_RELOADS): Remove.
24003
24004 2007-01-31  Anatoly Sokolov <aesok@post.ru>
24005
24006         PR target/19087
24007         * config/avr/avr.c (DWARF2_ADDR_SIZE): Define.
24008
24009 2007-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24010
24011         PR middle-end/29335
24012         * builtins.c (fold_builtin_sqrt): Use MPFR for constant args.
24013
24014 2007-01-31  Zdenek Dvorak <dvorakz@suse.cz>
24015
24016         * cfgloop.h: Include vec-prim.h.
24017         (enum li_flags): Remove LI_ONLY_OLD.
24018         (loop_iterator): Changed.
24019         (fel_next, fel_init): Iterate over loop tree.
24020         (FOR_EACH_LOOP_BREAK): New macro.
24021         * loop-unswitch.c (unswitch_loops): Do not pass LI_ONLY_OLD to
24022         FOR_EACH_LOOP.
24023         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Ditto.
24024         * modulo-sched.c (sms_schedule): Ditto.
24025         * tree-vectorizer.c (vectorize_loops): Ditto.
24026         * doc/loop.texi: Update information on loop numbering and behavior of
24027         FOR_EACH_LOOP wrto new loops.
24028         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
24029         add_to_evolution_1): Test nestedness of loops instead of comparing
24030         their numbers.
24031         * tree-chrec.c (chrec_fold_plus_poly_poly,
24032         chrec_fold_multiply_poly_poly, chrec_evaluate,
24033         hide_evolution_in_other_loops_than_loop, chrec_component_in_loop_num,
24034         reset_evolution_in_loop): Ditto.
24035         * Makefile.in (CFGLOOP_H): Add vecprim.h dependency.
24036
24037 2007-01-31  Dirk Mueller  <dmueller@suse.de>
24038
24039         * c-common.c (warn_about_parentheses): Separate warning about
24040         un-parenthized sequence of comparison operators from the one
24041         which is supposed to warn about x <= y <= z.
24042
24043 2007-01-31  Uros Bizjak  <ubizjak@gmail.com>
24044
24045         * optabs.h (enum optab_index): Add new OTI_isinf.
24046         (isinf_optab): Define corresponding macro.
24047         * optabs.c (init_optabs): Initialize isinf_optab.
24048         * genopinit.c (optabs): Implement isinf_optab using isinf?f2
24049         patterns.
24050         * builtins.c (mathfn_built_in): Handle BUILT_IN_ISINF{,F,L}.
24051         (expand_builtin_interclass_mathfn): Expand BUILT_IN_ISINF{,F,L}
24052         using isinf_optab.
24053         (expand_builtin): Expand BUILT_IN_ISINF{,F,L} using
24054         expand_builtin_interclass_mathfn.
24055         * reg_stack.c (subst_stack_regs_pat): Handle UNSPEC_FXAM.
24056         * config/i386/i386.md (UNSPEC_FXAM): New constant.
24057         (fxam<mode>2_i387): New insn pattern.
24058         (isinf<mode>2) New expander to implement isinf, isinff and isinfl
24059         built-in functions as x87 inline asm.
24060
24061 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
24062
24063         * config/arm/unwind-arm.h (_sleb128_t, _uleb128_t): New.
24064
24065 2007-01-30  Eric Christopher  <echristo@apple.com>
24066
24067         * config.gcc: Add geode.
24068
24069 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
24070
24071         * cgraphunit.c, config/arm/arm.c, config/m68k/m68k.c,
24072         ipa-inline.c, tree-profile.c, tree-ssa-live.c,
24073         tree-ssa-math-opts.c, tree-ssanames.c, tree-vect-analyze.c,
24074         value-prof.c: Fix comment typos.
24075
24076 2007-01-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24077
24078         PR c++/24745
24079         * doc/invoke.texi (Wpointer-arith): Document warning.
24080
24081 2007-01-30  Janis Johnson  <janis187@us.ibm.com>
24082
24083         * doc/extend.texi (Decimal Floating Types): Remove decfloat.h from
24084         the list of discrepancies from the draft TR.
24085
24086 2007-01-30  Dirk Mueller  <dmueller@suse.de>
24087
24088         PR c++/30601
24089         * doc/invoke.texi (-Wreturn-type): Update description to
24090         match new behavior.
24091
24092 2007-01-30  Richard Sandiford  <richard@codesourcery.com>
24093
24094         * cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
24095
24096 2007-01-30  Uros Bizjak  <ubizjak@gmail.com>
24097
24098         * builtins.c (expand_builtin_int_interclass_roundingfn): New function
24099         to handle optabs that operate on floating point input argument and
24100         output to integer output.
24101         (expand_builtin_mathfn) [BUILT_IN_ILOGB]: Move from here ...
24102         (expand_builtin_interclass_mathfn) [BUILT_IN_ILOGB]: ... to here.
24103         (expand_builtin): Expand BUILT_IN_ILOGB{,F,L} using
24104         expand_builtin_interclass_mathfn ().
24105         * config/i386/i386.md (fxtractxf3_i387): Rename from *fxtractxf3_i387.
24106         (ilogbsi2): Remove.
24107         (ilogbxf2, ilogb<mode>2): New expanders to implement ilogb, ilogbf and
24108         ilogbl built-in functions as x87 intrinsics.
24109
24110 2007-01-30  Richard Guenther  <rguenther@suse.de>
24111
24112         PR middle-end/27657
24113         * dwarf2out.c (reference_to_unused): Query varpool if the
24114         variable was output.
24115
24116 2007-01-30  Richard Guenther  <rguenther@suse.de>
24117
24118         PR middle-end/30313
24119         * passes.c (execute_one_pass): Reset in_gimple_form to not
24120         confuse non-unit-at-a-time mode.
24121
24122 2007-01-29  Roger Sayle  <roger@eyesopen.com>
24123             Richard Guenther  <rguenther@suse.de>
24124
24125         * fold-const.c (round_up): Make HIGH an unsigned HOST_WIDE_INT to
24126         avoid undefined behaviour on overflow.  Use force_fit_type_double
24127         to construct the constant with the specified TREE_OVERFLOW.
24128
24129 2007-01-29  Janis Johnson  <janis187@us.ibm.com>
24130
24131         * config/dfp-bit.c: Add parameterized support for fp exceptions.
24132         * config/dfp-bit.h: Ditto.
24133
24134 2007-01-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24135
24136         * c-decl.c (pop_scope): Replace warnings with call to
24137         warn_for_unused_label.
24138         * c-common.h (warn_for_unused_label): Declare.
24139         * c-common.c (warn_for_unused_label): Define.
24140
24141 2007-01-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24142
24143         * tree-optimize.c (update_inlined_to_pointers): Delete unused
24144         function.
24145
24146 2007-01-29  Janis Johnson  <janis187@us.ibm.com>
24147
24148         * Makefile.in (USER_H): Remove decfloat.h.
24149         * ginclude/decfloat.h: Delete, moving contents to ...
24150         * ginclude/float.h: Add support for decimal floating point,
24151         guarded by __STDC_WANT_DEC_FP__.
24152
24153 2007-01-29  Mike Stump  <mrs@apple.com>
24154
24155         * doc/gccint.texi (Top): Rename Loop Representation to Loop
24156         Analysis and Representation to resolve case insensitive conflict.
24157         * doc/loop.texi (Loop Analysis and Representation): Likewise.
24158
24159 2007-01-28  Daniel Berlin  <dberlin@dberlin.org>
24160
24161         * tree.h (struct tree_memory_tag): Add aliases member.
24162         (MTAG_ALIASES): New macro.
24163         * tree-ssa-alias.c (alias_bitmap_obstack): New variable.
24164         (add_may_alias): Remove pointer-set. Update for may_aliases being
24165         a bitmap.
24166         (mark_aliases_call_clobbered): Update for may_aliases being a
24167         bitmap.
24168         (compute_tag_properties): Ditto.
24169         (create_partition_for): Ditto.
24170         (compute_memory_partitions): Ditto.
24171         (dump_may_aliases_for): Ditto.
24172         (is_aliased_with): Ditto.
24173         (add_may_alias_for_new_tag): Ditto.
24174         (rewrite_alias_set_for): Rewrite for may_aliases being a bitmap.
24175         (compute_is_aliased): New function.
24176         (compute_may_aliases): Call compute_is_aliased).
24177         (init_alias_info): Initialize alias_bitmap_obstack.
24178         (union_alias_set_into): New function.
24179         (compute_flow_sensitive_aliasing): Use union_aliases_into.
24180         (have_common_aliases_p): Rewrite to take two bitmaps and use
24181         intersection.
24182         (compute_flow_insensitive_aliasing): Stop using pointer-sets.
24183         Update for bitmaps.
24184         (finalize_ref_all_pointers): Update for add_may_alias changes.
24185         (new_type_alias): Ditto.
24186         * tree-flow-inline.h (may_aliases): Return a bitmap.
24187         * tree-dfa.c (dump_variable): Check for MTAG_P'ness.
24188         * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
24189         may_aliases being a bitmap.
24190         * tree-flow.h (struct var_ann_d): Remove may_aliases member.
24191         may_aliases now returns a bitmap.
24192         * tree-ssa-structalias.c (merge_smts_into): Update for may_aliases
24193         being a bitmap.
24194         * tree-ssa-operands.c (add_virtual_operand): Update for
24195         may_aliases being a bitmap.
24196
24197 2007-01-29  Daniel Berlin  <dberlin@dberlin.org>
24198
24199         PR tree-optimization/30630
24200         * tree-ssa-structalias.c (do_complex_constraint): Mark correct
24201         variable as changed.
24202
24203 2007-01-29  Simon Martin  <simartin@users.sourceforge.net>
24204
24205         PR c++/28266
24206         * gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
24207         expanded only once even if an error occurs.
24208
24209 2007-01-29  Ben Elliston  <bje@au.ibm.com>
24210
24211         * gcov-io.h (__gcov_indirect_call_profiler): Declare.
24212         (__gcov_average_profiler): Likewise.
24213         (__gcov_ior_profiler): Likewise.
24214         (__gcov_merge_ior): Likewise.
24215
24216 2007-01-28  Jan Hubicka  <jh@suse.cz>
24217
24218         * builtins.c (expand_builtin_memset): Fix typo in my last patch.
24219         * value-prof.c (stringop_block_profile): Likewise.
24220
24221 2007-01-28  Jan Hubicka  <jh@suse.cz>
24222
24223         * expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall):
24224         Add variant handling histograms; add wrapper.
24225         (clear_storage_via_libcall): Export.
24226         (emit_block_move_hints): Break out from ...; add histograms.
24227         (emit_block_move): ... this one.
24228         (clear_storage_hints): Break out from ...; add histograms.
24229         (clear_storage): ... this one.
24230         (set_storage_via_memset): Handle histogram.
24231         * expr.h (emit_block_move_via_libcall, emit_block_move_hints): Declare.
24232         (clear_storage_hints, clear_storage_via_libcall): Declare.
24233         (set_storage_via_setmem): Update prototype.
24234         * doc/md.texi (movmem, setmem): Document new arguments.
24235
24236         * value-prof.c (dump_histogram_value, tree_find_values_to_profile):
24237         Add new histograms.
24238         (stringop_block_profile): New global function.
24239         (tree_stringops_values_to_profile): Profile block size and alignment.
24240         * value-prof.h (enum hist_type): add HIST_TYPE_AVERAGE and
24241         HIST_TYPE_IOR.
24242         (struct profile_hooks): Add gen_average_profiler and gen_ior_profiler.
24243         (stringop_block_profile): Declare.
24244         * builtins.c: Include value-prof.h.
24245         (expand_builtin_memcpy, expand_builtin_memset): Pass block profile.
24246         * gcov-ui.h (GCOV_COUNTER_NAMES): Add new counter.
24247         (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): New constants.
24248         (GCOV_COUNTERS, GCOV_LAST_VALUE_COUNTER): Update.
24249         * profile.c (instrument_values): Add new counters.
24250         * cfgexpand.c (expand_gimple_basic_block): Propagate histograms to
24251         calls.
24252         * tree-profile.c (tree_average_profiler_fn, tree_ior_profiler_fn): New.
24253         (tree_init_edge_profiler): Build new profilers.
24254         (tree_gen_average_profiler, tree_gen_ior_profiler): New.
24255         (pass_tree_profile): Add dump.
24256         (tree_profile_hooks): Update.
24257         * Makefile.in (LIBGCOV): Add new constants.
24258         * libgcov.c (__gcov_merge_ior, __gcov_average_profiler,
24259         __gcov_ior_profiler): New.
24260         * i386.md (movmem/setmem expanders): Add new optional arguments.
24261
24262 2007-01-28  David Edelsohn  <edelsohn@gnu.org>
24263
24264         * doc/md.texi (Standard Pattern Names): Document blockage pattern.
24265
24266 2007-01-28  Zdenek Dvorak <dvorakz@suse.cz>
24267
24268         * tree-ssa-loop-unswitch.c: Include tree-inline.h.
24269         (tree_unswitch_single_loop): Pass eni_size_weights to
24270         tree_num_loop_insns.
24271         * tree-ssa-loop-manip.c: Include tree-inline.h.
24272         (can_unroll_loop_p): Pass eni_size_weights to
24273         tree_num_loop_insns.
24274         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
24275         Pass eni_size_weights to estimate_num_insns.
24276         * tree.h (init_inline_once): Export.
24277         * toplev.c (backend_init): Call init_inline_once.
24278         * cgraphunit.c (cgraph_process_new_functions,
24279         cgraph_analyze_function): Pass eni_inlining_weights to
24280         estimate_num_insns.
24281         * ipa-inline.c (compute_inline_parameters): Ditto.
24282         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Pass weights
24283         to estimate_num_insns.
24284         (try_unroll_loop_completely): Pass eni_size_weights to
24285         tree_num_loop_insns.
24286         * tree-eh.c (decide_copy_try_finally): Pass eni_size_weights
24287         ot estimate_num_insns.
24288         * tree-ssa-loop-prefetch.c: Include tree-inline.h.
24289         (loop_prefetch_arrays): Pass eni_time_weights to tree_num_loop_insns.
24290         * tree-inline.c (eni_inlining_weights, eni_size_weights,
24291         eni_time_weights): New variables.
24292         (init_inline_once): Initialize them.
24293         (struct eni_data): Mew.
24294         (estimate_num_insns_1, estimate_num_insns): Use weights.
24295         * tree-inline.h (struct eni_weights_d): New.
24296         (eni_inlining_weights, eni_size_weights, eni_time_weights): Declare.
24297         (estimate_num_insns): Declaration changed.
24298         * cfgloop.h (tree_num_loop_insns): Declaration changed.
24299         * Makefile.in (tree-ssa-loop-unswitch.o, tree-ssa-loop-prefetch.o,
24300         tree-ssa-loop-manip.o): Add TREE_INLINE_H dependency.
24301
24302 2007-01-28  Zdenek Dvorak <dvorakz@suse.cz>
24303
24304         * tree-data-ref.c (conflict_fn): Assert that the number of affine
24305         relations in the conflict function is valid.
24306
24307 2007-01-27  Ian Lance Taylor  <iant@google.com>
24308
24309         * common.opt: Add fstrict-overflow.
24310         * opts.c (decode_options): Set flag_strict_overflow if -O2.
24311         * flags.h (TYPE_OVERFLOW_WRAPS): Define.
24312         (TYPE_OVERFLOW_UNDEFINED): Define.
24313         (TYPE_OVERFLOW_TRAPS): Define.  This replaces TYPE_TRAP_SIGNED.
24314         Replace all uses.
24315         * tree.h (TYPE_TRAP_SIGNED): Don't define.
24316         * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_UNDEFINED.
24317         (fold_negate_expr): Likewise.
24318         (make_range): Likewise.
24319         (extract_muldiv_1): Likewise.
24320         (maybe_canonicalize_comparison): Likewise.
24321         (fold_comparison): Likewise.
24322         (fold_binary): Likewise.
24323         (tree_expr_nonnegative_p): Likewise.
24324         (tree_expr_nonzero_p): Likewise.
24325         * tree-vrp.c (compare_values): Likewise.
24326         (extract_range_from_binary_expr): Likewise.
24327         (extract_range_from_unary_expr): Likewise.
24328         * tree-ssa-loop-niter.c (infer_loop_bounds_from_signedness):
24329         Likewise.
24330         (nowrap_type_p): Likewise.
24331         * tree-scalar-evolution.c (simple_iv): Likewise.
24332         * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_WRAPS.
24333         (build_range_check): Likewise.
24334         (extract_muldiv_1): Likewise.
24335         (fold_comparison): Likewise.
24336         * tree-vrp.c (vrp_int_const_binop): Likewise.
24337         (extract_range_from_unary_expr): Likewise.
24338         * convert.c (convert_to_integer): Likewise.
24339         * fold-const.c (fold_negate_expr): Use TYPE_OVERFLOW_TRAPS.
24340         (fold_comparison): Likewise.
24341         (fold_binary): Likewise.
24342         * optabs.c (optab_for_tree_code): Likewise.
24343         * tree-vectorizer.c (vect_is_simple_reduction): Likewise.
24344         * simplify-rtx.c (simplify_const_relational_operation): Check
24345         flag_strict_overflow and flag_trapv.
24346         (simplify_const_relational_operation): Likewise.
24347         * doc/invoke.texi (Option Summary): Mention -fstrict-overflow.
24348         (Optimize Options): Add -fstrict-overflow to -O2 list.  Document
24349         -fstrict-overflow.
24350
24351 2007-01-27  Roger Sayle  <roger@eyesopen.com>
24352
24353         * tree.c (tree_fold_gcd): Delete.
24354         * tree.h (tree_fold_gcd): Remove prototype.
24355         * tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to
24356         test whether one constant integer is a multiple of another.  Instead
24357         call int_const_binop with TRUNC_MOD_EXPR and test for a zero result.
24358         * fold-const.c (multiple_of_p): We've determined both TOP and
24359         BOTTOM are integer constants so we can call int_const_binop directly
24360         instead of the more generic const_binop.
24361
24362 2007-01-27  Roger Sayle  <roger@eyesopen.com>
24363
24364         * fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
24365         1*X check that the constant hasn't overflowed, to preserve the
24366         TREE_OVERFLOW bit.
24367         (round_up): Provide an efficient implementation when rouding-up an
24368         INTEGER_CST to a power-of-two.
24369
24370 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24371
24372         * doc/sourcebuild.texi: Add comma for clarity.
24373         * doc/extend.texi: Fix some typos.
24374         * doc/passes.texi: Likewise.
24375         * doc/cppinternals.texi: Likewise.
24376         * doc/c-tree.texi: Likewise.
24377         * doc/tree-ssa.texi: Likewise.
24378         * doc/install.texi: Likewise.
24379
24380 2007-01-27  Jan Hubicka  <jh@suse.cz>
24381
24382         * tree-sra.c (sra_walk_function): Don't rely on aliases being build.
24383         (pass_sra): Do not require alias information.
24384         * passes.c (init_optimization_passes): Add SRA
24385
24386 2007-01-27  Steven Bosscher  <steven@gcc.gnu.org>
24387
24388         * tracer.c (rest_of_handle_tracer): We already cleaned
24389         up the CFG in tracer() so don't do it here again.
24390         * cfgcleanup.c (rest_of_handle_jump2): Don't repeat
24391         cleanup_cfg here, either.  And don't call renumber_insns.
24392
24393         * cfgrtl.c (rtl_verify_flow_info_1): Don't verify that BB_END
24394         and BB_HEAD are in the insn stream here.  Instead make sure
24395         that BB_INSN is valid on all insns.  Also, do check here that
24396         there are no pending branch predictions...
24397         (rtl_verify_flow_info): ...instead of doing it here.  Checks
24398         for BB_END and BB_HEAD moved from rtl_verify_flow_info_1 to
24399         here.
24400
24401 2007-01-26  Roger Sayle  <roger@eyesopen.com>
24402
24403         * config/i386/i386.c (ix86_swap_binary_operands_p): New helper
24404         function to simplify/factorize operand order canonicalization.
24405         (ix86_fixup_binary_operands): Reorganize using the above function.
24406         (ix86_binary_operator_ok): Likewise.
24407
24408 2007-01-27  Jakub Jelinek  <jakub@redhat.com>
24409
24410         * genattrtab.c (struct attr_value_list, insn_code_values): Move to
24411         file scope from optimize_attrs.
24412         (simplify_test_exp): If insn_code_values is not NULL, use it to speed
24413         up search.
24414         (optimize_attrs): Clear insn_code_values after freeing it.
24415
24416 2007-01-26  Zdenek Dvorak <dvorakz@suse.cz>
24417
24418         * tree-ssa-address.c (create_mem_ref): Remove ", bsi" from
24419         a parts.base assignment.
24420
24421 2007-01-26  Zdenek Dvorak <dvorakz@suse.cz>
24422
24423         * tree-data-ref.c (dump_subscript): Use dump_conflict_function.
24424         (compute_subscript_distance, initialize_data_dependence_relation,
24425         finalize_ddr_dependent, analyze_ziv_subscript,
24426         analyze_siv_subscript_cst_affine,
24427         compute_overlap_steps_for_affine_univar,
24428         compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
24429         analyze_siv_subscript, analyze_miv_subscript,
24430         analyze_overlapping_iterations, subscript_dependence_tester_1,
24431         compute_self_dependence, free_dependence_relation): Work
24432         with affine_fn instead of chrecs.
24433         (dump_affine_function, dump_conflict_function, affine_function_equal_p,
24434         common_affine_function, affine_function_base,
24435         affine_function_constant_p, affine_fn_op, affine_fn_plus,
24436         affine_fn_minus, affine_fn_free, conflict_fn_not_known,
24437         conflict_fn_no_dependence, free_conflict_function, free_subscripts,
24438         conflict_fn, affine_fn_cst, affine_fn_univar): New functions.
24439         (all_chrecs_equal_p): Removed.
24440         * tree-data-ref.h (affine_fn, conflict_function): New types.
24441         (struct subscript): Change type of conflicting_iterations_in_a
24442         and conflicting_iterations_in_b.
24443
24444 2007-01-26  Steve Ellcey  <sje@cup.hp.com>
24445
24446         PR other/30182
24447         * config/pa/pa.h (TARGET_HPUX_11): New.
24448         * config/pa/pa-hpux11.h (TARGET_HPUX_11): New.
24449         * config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11.
24450
24451 2007-01-26  Daniel Berlin  <dberlin@dberlin.org>
24452         Richard Guenther  <rguenther@suse.de>
24453
24454         * tree-ssa-structalias.c (solve_graph): Handle case
24455         we merged the variable to another.
24456
24457 2007-01-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24458
24459         * builtins.c (fold_builtin_1): Treat ccos and ccosh as 'even'
24460         functions.
24461
24462         * fold-const.c (negate_mathfn_p): Treat casin, casinh, catan,
24463         catanh, cproj, csin, csinh, ctan and ctanh as 'odd' functions.
24464
24465 2007-01-25  DJ Delorie  <dj@redhat.com>
24466
24467         * config/m32c/m32c.c (m32c_cannot_change_mode_class): We don't
24468         allow changes to modes which don't fit in those registers.
24469
24470         * reload1.c (choose_reload_regs): Check for invalid subregs before
24471         computing their locations, not after.
24472
24473 2007-01-25  Geoffrey Keating  <geoffk@apple.com>
24474
24475         PR 25127
24476         * config/rs6000/rs6000.c (first_altivec_reg_to_save): On Darwin,
24477         save Altivec registers in an eh_return function.
24478         (compute_vrsave_mask): Likewise.
24479         (rs6000_stack_info): Correct AIX/Darwin stack alignment computation
24480         for saving Altivec registers.
24481         (rs6000_emit_prologue): Don't allocate stack twice in
24482         eh_return function.  Correct expected value of altivec_save_offset
24483         when using save_world.  Describe save of R0 to stack when using
24484         save_world.  Describe stack pointer adjustment when using
24485         save_world.  Remove duplicated eh_return parameter register saving.
24486         Update sp_offset variable after save_world.
24487         * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA): Remove
24488         darwin-world.asm.
24489         (LIB2FUNCS_EXTRA): Add darwin-world.asm.
24490         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): -m64
24491         implies Altivec.
24492
24493 2007-01-25  Steve Ellcey  <sje@cup.hp.com>
24494
24495         * config.gcc (ia64*-*-hpux*): Make posix threads the default.
24496
24497 2007-01-25  Steve Ellcey  <sje@cup.hp.com>
24498
24499         PR other/30182
24500         * config/pa/pa.c (pa_init_builtins): Set asm names for finite routines.
24501         * config/ia64/ia64.c (ia64_init_builtins): Ditto.
24502
24503 2007-01-25  Richard Guenther  <rguenther@suse.de>
24504
24505         * doc/invoke.texi (-Wcoverage-mismatch): Document.
24506         * common.opt (-Wcoverage-mismatch): New warning option.
24507         * coverage.c (get_coverage_counts): Ignore coverage mismatch
24508         if -Wcoverage-mismatch is given.
24509
24510 2007-01-25  Razya Ladelsky  <razya@il.ibm.com>
24511
24512         * ipa-cp.c (ipcp_insert_stage, ipcp_driver): Support for SSA.
24513         (ipcp_driver): Change to static definition.
24514         Add dumping of the ifunctions.
24515         (constant_val_insert): Remove unused parameter. Support for SSA.
24516         (ipcp_propagate_const): Support for SSA.
24517         (ipcp_profile_bb_print): Print only analyzed nodes.
24518         (ipcp_replace_map_create): Remove support for Fortran constant
24519         for now.
24520         * ipa-prop.c (ipa_method_modify_stmt,
24521         ipa_callsite_compute_param): Support for SSA.
24522         * ipa-prop.h (ipcp_driver): Remove declaration.
24523         (IS_VALID_TREE_MAP_INDEX): Add define.
24524
24525 2007-01-24  Geoffrey Keating  <geoffk@apple.com>
24526
24527         * unwind-dw2.c (execute_stack_op): Handle DW_OP_swap.
24528
24529 2007-01-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24530
24531         PR middle-end/30447
24532         * builtins.c (fold_builtin_cabs): Use MPFR to evaluate a
24533         constant argument to cabs and do it without checking for
24534         -funsafe-math-optimizations.
24535
24536 2007-01-24  Douglas Gregor  <dgregor@osl.iu.edu>
24537
24538         * c-common.h (RID_FIRST_CXX0X): New.
24539         (RID_LAST_CXX0X): New.
24540         * c-opts.c (c_common_handle_option): -Wc++0x-compat is triggered
24541         by -Wall.
24542         * c.opt (Wc++0x-compat): New.
24543         * doc/invoke.texi (-Wc++0x-compat): Document.
24544
24545 2007-01-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24546
24547         * builtins.c (fold_builtin_carg): New.
24548         (fold_builtin_1): Use it.
24549
24550 2007-01-24  Jan Hubicka  <jh@suse.cz>
24551
24552         * ipa-inline.c (cgraph_decide_inlining): Initialize initial_insns.
24553
24554         * ipa-inline.c (initial_insns, max_insns): Delete.
24555         (compute_max_insns): New function.
24556         (cgraph_decide_inlining_of_small_function): Use it; take minimal
24557         amount of insns as base for code growth.
24558         (cgraph_decide_inlining): Make initial_insns local; do not compute
24559         max_insns.
24560         * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 60.
24561         * doc/invoke.texi (inline-unit-growth): Update docs.
24562
24563 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
24564
24565         * config/i386/i386.h (x86_cmpxchg16b): Remove const.
24566         (TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
24567         * config/i386/i386.c (x86_cmpxchg16b): Remove const.
24568         (override_options): Add PTA_CX16 flag.  Set x86_cmpxchg16b
24569         for CPUs that have PTA_CX16 set.
24570
24571         PR middle-end/27416
24572         * gimplify.c (omp_check_private): New function.
24573         (gimplify_scan_omp_clauses): Use it for
24574         firstprivate/lastprivate/reduction.
24575
24576         PR middle-end/30494
24577         * gimplify.c (omp_add_variable): Don't call omp_notice_variable
24578         on TYPE_SIZE_UNIT for GOVD_LOCAL VLAs.
24579
24580         PR middle-end/30421
24581         * omp-low.c (lower_omp_for_lastprivate): Add dlist argument.
24582         If lower_lastprivate_clauses emits some statements, append them
24583         to dlist rather than body_p and to body_p append an initializer.
24584         (lower_omp_for): Adjust caller.
24585
24586 2007-01-24  Steve Ellcey  <sje@cup.hp.com>
24587
24588         * target.h (globalize_decl_name): New.
24589         * target-def.h (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
24590         * output.h (default_globalize_decl_name): New.
24591         * varasm.c (asm_output_bss): Use globalize_decl_name instead of
24592         globalize_label.
24593         (globalize_decl): Ditto.
24594         (default_globalize_decl_name): New.
24595         * config/ia64/ia64.c (ia64_globalize_decl_name): New.
24596         (ia64_handle_version_id_attribute): New.
24597         (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
24598         (ia64_asm_output_external): Use globalize_decl_name instead
24599         of globalize_label.
24600         * doc/extend.texi (version_id): New pragma.
24601         * doc/tm.texi (ARGET_ASM_GLOBALIZE_DECL_NAME): New target hook.
24602
24603 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
24604
24605         * unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with
24606         _uleb128_t and _Unwind_SWord with _sleb128_t.
24607         * unwind-dw2.c (extract_cie_info, execute_stack_op,
24608         execute_cfa_program, uw_frame_state_for, uw_update_context_1):
24609         Likewise.
24610         * unwind-c.c (parse_lsda_header, PERSONALITY_FUNCTION): Likewise.
24611         * unwind-pe.h (read_uleb128, read_sleb128,
24612         read_encoded_value_with_base): Likewise.
24613         * unwind-generic.h: Define _sleb128_t and _uleb128_t types.
24614
24615 2007-01-24  Richard Guenther  <rguenther@suse.de>
24616
24617         * builtins.c (expand_builtin_cexpi): Get the fndecl
24618         for cexp in the correct way.
24619
24620 2007-01-24  Jan Hubicka  <jh@suse.cz>
24621
24622         * tree-ssa-dce.c (eliminate_unnecesary_stmts): Remove dead LHS
24623         of calls.
24624
24625 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
24626
24627         * c-cppbuiltin.c (builtin_define_type_sizeof): New function.
24628         (c_cpp_builtins): New builtin macros: __SIZEOF_INT__, __SIZEOF_LONG__,
24629         __SIZEOF_LONG_LONG__, __SIZEOF_SHORT__, __SIZEOF_POINTER__,
24630         __SIZEOF_FLOAT__, __SIZEOF_DOUBLE__, __SIZEOF_LONG_DOUBLE__,
24631         __SIZEOF_SIZE_T__, __SIZEOF_WCHAR_T__, __SIZEOF_WINT_T__ and
24632         __SIZEOF_PTRDIFF_T__.
24633         * doc/cpp.texi: Documentation for the new builtin macros added.
24634
24635 2007-01-24  Uros Bizjak  <ubizjak@gmail.com>
24636
24637         * config/i386/i386.md (tanxf2, tan<mode>2, atan<mode>2, log<mode>2,
24638         log10<mode>2, log2<mode>2, expxf2, exp10xf2, exp2xf2): Use op2
24639         instead of operands[2] to avoid access past the end of array.
24640
24641 2007-01-24  Richard Sandiford  <richard@codesourcery.com>
24642
24643         * reload1.c (emit_reload_insns): Pass the reload register
24644         for a non-spill output reload through forget_old_reloads_1.
24645
24646 2007-01-23  Joseph Myers  <joseph@codesourcery.com>
24647
24648         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
24649         _SOFT_DOUBLE if doubles use software floating-point.
24650         * config/rs6000/libgcc-ppc-glibc.ver: Export additional long
24651         double functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
24652         * config/rs6000/darwin-ldouble.c: Also compile functions for
24653         hard-float without FPRs.  Use fmsub function for all __NO_FPRS__
24654         cases.  Compile extra functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
24655         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove
24656         commented-out long double override.
24657         (CPP_LONGDOUBLE_DEFAULT_SPEC): Likewise.
24658         * config/rs6000/eabispe.h: Likewise.
24659         * config/rs6000/rs6000.c (rs6000_override_options): Don't override
24660         long double for non-SPE.
24661         (rs6000_handle_option): Likewise.
24662         (invalid_e500_subreg): Disallow more subregs involding DImode,
24663         DFmode, TImode or TFmode.
24664         (rs6000_legitimate_offset_address_p): Check TFmode offsets for
24665         E500 double.
24666         (legitimate_lo_sum_address_p): Also check for TFmode for E500
24667         double.
24668         (rs6000_legitimize_address): Also handle TFmode for E500 double.
24669         (rs6000_legitimize_reload_address): Also handle TFmode for E500
24670         double.
24671         (rs6000_legitimate_address): Also check for TFmode for E500
24672         double.
24673         (rs6000_emit_move): Use DFmode subregs of TFmode for E500 double.
24674         (spe_build_register_parallel): Handle TFmode and TCmode.
24675         (rs6000_spe_function_arg): Handle TFmode and TCmode for E500
24676         double.
24677         (function_arg): Handle TFmode and TCmode for E500 double.
24678         (rs6000_init_libfuncs): Initialize extra libfuncs for soft double
24679         in general.
24680         (print_operand): Handle TFmode and TImode for %y.
24681         (rs6000_generate_compare): Handle TFmode comparisons for E500
24682         double.
24683         (spe_func_has_64bit_regs_p): Check for TFmode for E500 double.
24684         (rs6000_function_value): Handle TFmode and TCmode for E500 double.
24685         (rs6000_libcall_value): Handle TFmode and TCmode for E500 double.
24686         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Check for
24687         TFmode for E500 double.
24688         * config/rs6000/rs6000.md (FP): Allow TF for E500 double.
24689         (floatsidf2): Enable for E500 double.
24690         (movtf_softfloat): Use rs6000_nonimmediate_operand.
24691         (extenddftf2): Change to extenddftf2_fprs.
24692         (extenddftf2): Call gen_spe_extenddftf2 or gen_extenddftf2_fprs
24693         depending on TARGET_E500_DOUBLE.
24694         (extendsftf2): Enable for E500 double.
24695         (trunctfdf2): Enable for E500 double.
24696         (trunctfsf2): Change to trunctfsf2_fprs.
24697         (trunctfsf2): Call gen_spe_trunctfsf2 or gen_trunctfsf2_fprs
24698         depending on TARGET_E500_DOUBLE.
24699         (floatsitf2): Enable for E500 double.
24700         (fix_trunctfsi2): Change to fix_trunctfsi2_fprs.
24701         (fix_trunctfsi2): Call gen_spe_fix_trunctfsi2 or
24702         gen_fix_trunctfsi2_fprs depending on TARGET_E500_DOUBLE.
24703         (negtf2): Change to negtf2_internal.
24704         (negtf2): New expander.
24705         (abstf2): Enable for E500 double.  Call gen_spe_abstf2_tst,
24706         gen_spe_abstf2_cmp or gen_abstf2_internal depending on
24707         TARGET_E500_DOUBLE and flag_unsafe_math_optimizations.
24708         (movdi_internal32): Use rs6000_nonimmediate_operand.
24709         (unnamed splitter): Likewise.
24710         * config/rs6000/spe.md (CMPTFEQ_GPR, TSTTFEQ_GPR, CMPTFGT_GPR,
24711         TSTTFGT_GPR, CMPTFLT_GPR, TSTTFLT_GPR): New unspecs.
24712         (SPE64TF, DITI): New mode macros.
24713         (frob_df_di): Change to frob_<SPE64:mode>_<DITI:mode>; allow more
24714         modes.
24715         (frob_tf_ti): New.
24716         (frob_<mode>_di_2): New.
24717         (frob_tf_di_8_2): New.
24718         (frob_di_df): Change to frob_di_<mode>; allow more modes.
24719         (frob_ti_tf): New.
24720         (frob_di_df_2): Change to frob_<DITI:mode>_<SPE64:mode>_2; allow
24721         more modes.
24722         (frob_ti_<mode>_8_2): New.
24723         (frob_ti_tf_2): New.
24724         (mov_si<mode>_e500_subreg0, mov_si<mode>_e500_subreg0_2,
24725         mov_si<mode>_e500_subreg4, mov_si<mode>_e500_subreg4_2): Allow
24726         TFmode.
24727         (mov_sitf_e500_subreg8, mov_sitf_e500_subreg8_2,
24728         mov_sitf_e500_subreg12, mov_sitf_e500_subreg12_2): New.
24729         (spe_trunctfdf2_internal1, spe_trunctfsf2, spe_extenddftf2,
24730         spe_fix_trunctfsi2, spe_fix_trunctfsi2_internal,
24731         spe_negtf2_internal, spe_abstf2_cmp, spe_abstf2_tst): New.
24732         (cmptfeq_gpr, tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr,
24733         tsttflt_gp): New.
24734
24735 2007-01-23  Ian Lance Taylor  <iant@google.com>
24736
24737         * Makefile.in (OBJS-common): Reformat, alphabetize, but put
24738         insn-*.o first.
24739         (OBJS-archive): Reformat, alphabetize.
24740         (OBJS): Change out_object_file to OBJS-md.
24741
24742 2007-01-23  Uros Bizjak  <ubizjak@gmail.com>
24743
24744         * config/i386/i386.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
24745         JUMP_P and CALL_P predicates where applicable.
24746         * config/i386/i386.c: Ditto.
24747         * config/i386/i386.md: Ditto.
24748         * config/i386/mmx.md: Ditto.
24749         * config/i386/predicates.md: Ditto.
24750
24751 2007-01-22  Andreas Schwab  <schwab@suse.de>
24752
24753         * config/m68k/m68k.h: Fix comment.
24754
24755 2007-01-22  Jan Hubicka  <jh@suse.cz>
24756
24757         * passes.c (init_optimization_passes): Do not rerun
24758         pass_early_warn_uninitialized.
24759
24760 2007-01-22  Richard Guenther  <rguenther@suse.de>
24761
24762         PR tree-optimization/30038
24763         * tree-ssa-math-opts.c (maybe_record_sincos): New static helper
24764         function.
24765         (execute_cse_sincos_1): Likewise.
24766         (execute_cse_sincos): Likewise.
24767         (gate_cse_sincos): Likewise.
24768         (pass_cse_sincos): New pass CSEing sin() and cos() calls using
24769         the cexpi() canonicalization of sincos().
24770         * tree-pass.h (pass_cse_sincos): Declare.
24771         * passes.c (init_optimization_passes): New pass pas_cse_sincos.
24772
24773 2007-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
24774
24775         PR rtl-optimization/29329
24776         * combine.c (replaced_rhs_insn): Rename to i2mod.
24777         (replaced_rhs_value): Rename to i2mod_new_rhs.
24778         (i2mod_old_rhs): New global variable.
24779         (combine_instructions): Adjust for above change.  Save a copy of
24780         the old RHS into i2mod_old_rhs when the contents of a REG_EQUAL
24781         note are substituted in the second instruction.
24782         (distribute_notes) <REG_DEAD>: Adjust for above change.  Do not
24783         ditch the note if it pertains to the second eliminated register
24784         and this register is mentioned in i2mod_old_rhs.
24785
24786         Revert:
24787         2006-09-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
24788
24789         * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
24790         the insn to which the note was originally attached.
24791
24792 2007-01-21  Jan Hubicka  <jh@suse.cz>
24793
24794         * ipa-inline.c (inlining_mode): Comment, move up.
24795         (cgraph_decide_inlining_incrementally): Do not perform inlining
24796         itself; fix handling of flattening of self recursive functions.
24797         (cgraph_find_cycles): Remove.
24798         (cgraph_flatten_node): Remove.
24799         (cgraph_decide_inlining): Use incremental inliner to handle flattening.
24800         (try_inline): New function.
24801         (cgraph_early_inlining): Update call of
24802         cgraph_decide_inlining_incrementally.  Apply inlining here.
24803         (apply_inline): Update call of cgraph_decide_inlining_incrementally.
24804
24805 2007-01-21  Dirk Mueller  <dmueller@suse.de>
24806
24807         PR bootstrap/30511
24808         * tree-vrp.c (check_array_bounds): do not warn
24809         about ADDR_EXPR's of ARRAY_REF's which are immediately
24810         used in binary expressions.
24811
24812 2007-01-21  Ira Rosen  <irar@il.ibm.com>
24813
24814         * tree-vectorizer.h (struct _stmt_vec_info): Add new field
24815         read_write_dep and macros for its access.
24816         * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
24817         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Remove
24818         argument, call vect_check_interleaving for every independent pair of
24819         data-refs. Mark loads that access the same memory location as a store
24820         in the loop.
24821         (vect_check_dependences): Remove.
24822         (vect_analyze_data_ref_dependences): Remove  vect_check_dependences
24823         call, fix the call to vect_analyze_data_ref_dependence.
24824         (vect_analyze_data_ref_access): For statements that access the same
24825         data-ref, check that they are not stores; for loads, check that there
24826         is no store that access the same location.
24827
24828 2007-01-20  Roger Sayle  <roger@eyesopen.com>
24829             Joseph Myers  <joseph@codesourcery.com>
24830
24831         * doc/invoke.texi (-fdump-rtl-combine): Fix under/overfull hbox.
24832         (-fdump-rtl-stack): Likewise.
24833         (-fno-signed-zeros): Use @minus{} for a minus sign.  Correct typo.
24834         (-mcheck-zero-division, -mcpu): Fix under/overfull hbox.
24835         (-mpt-fixed): Use @minus{} for minus sign.
24836         (Using Precompiled Headers): Fix under/overfull hbox.
24837
24838 2007-01-20  Jan Hubicka  <jh@suse.cz>
24839
24840         * tree-flow.h (struct stmt_ann_d): Move references_memory to proper
24841         place within annotation.
24842
24843 2007-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24844
24845         * pa.c (output_move_double): Change array size of xoperands to 4.
24846
24847 2007-01-20  Jan Hubicka  <jh@suse.cz>
24848
24849         * tree-tailcall.c (adjust_return_value): Do not use RESULT_DECL
24850         as temporary.
24851
24852 2007-01-19  Ian Lance Taylor  <iant@google.com>
24853
24854         * expmed.c (expand_divmod) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]: Cast
24855         constant to unsigned HOST_WIDE_INT before negating.
24856
24857 2007-01-19  Ian Lance Taylor  <iant@google.com>
24858
24859         * tree-ssa-operands.h (struct vuse_vec_d): Change num_vuse field
24860         to unsigned.
24861         (VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Use unsigned comparison.
24862         (VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
24863         (SET_VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Likewise.
24864         (SET_VUSE_ELEMENT_VAR) [ENABLE_CHECKING]: Likewise.
24865         (SET_VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
24866         (realloc_vdef, realloc_vuse): Change second parameter to
24867         unsigned.
24868         (ssa_operand_iterator_d): Change vuse_index and mayuse_index
24869         fields to unsigned.
24870         * tree-ssa-operands.c (realloc_vop): Change num_elem parameter to
24871         unsigned. Change x and lim locals to unsigned.
24872         (realloc_vdef, realloc_vuse): Change num_elem parameter to
24873         unsigned.
24874         (finalize_ssa_vuse_ops): Change old_i local to unsigned.
24875         (copy_virtual_operands): Change i and n locals to unsigned.
24876
24877 2007-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24878
24879         PR middle-end/29335
24880         * builtins.c (fold_builtin_1): Handle builtin fdim.
24881
24882 2007-01-20  Jan Hubicka  <jh@suse.cz>
24883
24884         * tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
24885         * tree-ssa-structalias.c (compute_points_to_sets): Do call
24886         init_alias_heapvars.
24887         (init_alias_heapvars): Initialize only when not already initialized.
24888         (delete_alias_heapvars): Set heapvar_for_stmt to NULL.
24889
24890 2007-01-19  Roger Sayle  <roger@eyesopen.com>
24891
24892         * common.opt (fsigned-zeros): New command line option.
24893         * flags.h (HONOR_SIGNED_ZEROS): Control via flag_signed_zeros instead
24894         of flag_unsafe_math_optimizations.
24895         * opts.c (set_fast_math_flags): The -ffast-math command line option
24896         implies -fno-signed-zeros.
24897         (fast_math_flags_set_p): Likewise.
24898
24899         * doc/invoke.texi: Document new -fno-signed-zeros option, and update
24900         the documentation of -ffast-math appropriately.  Wrap long lines.
24901
24902 2007-01-19  Steve Ellcey  <sje@cup.hp.com>
24903
24904         * system.h (ASM_MAKE_LABEL_LINKONCE): Poison.
24905         * varasm.c (globalize_decl): Remove ASM_MAKE_LABEL_LINKONCE ifdef.
24906
24907 2007-01-19  Tomas Bily  <tbily@suse.cz>
24908
24909         * cgraphunit.c (cgraph_finalize_function): Updating of pid
24910         * tree-profile.c:
24911         (tree_init_ic_make_global_vars): New function
24912         (tree_init_edge_profiler): call of tree_init_ic_make_global_vars
24913         (tree_gen_ic_profiler): New function
24914         (tree_gen_ic_func_profiler): New function
24915         (tree_profiling): Added calling of tree_gen_ic_func_profiler
24916         (tree_profile_hooks): Added hook for indirec/virtual calls
24917         * value-prof.c (tree_find_values_to_profile): New case for
24918         indirect calls
24919         (tree_values_to_profile): Call for determining indirect/virtual
24920         counters
24921         (tree_indirect_call_to_profile): New function
24922         (tree_ic_transform): New function
24923         (tree_ic): New function
24924         (find_func_by_pid): New function
24925         (init_pid_map): New function
24926         (tree_value_profile_transformations): Added check for
24927         indirect/virtual call transformation
24928         * value-prof.h (enum hist_type): New counter type for
24929         indirect/virtual calls
24930         (profile_hooks): Added new hook for profiling indirect/virtual
24931         calls
24932         * profile.c (instrument_values): New case for indirect/virtual
24933         call added
24934         * gcov-io.h (GCOV_LAST_VALUE_COUNTER): Changed to 6
24935         (GCOV_COUNTER_V_INDIR): New counter type
24936         (GCOV_COUNTER_NAMES): New name of counter "indirect" added
24937         (GCOV_MERGE_FUNCTIONS): New merge function for indirect/virtual
24938         call added
24939         * cgraph.c: Definition of cgraph_max_pid
24940         (cgraph_create_node): Default init of pid attribute
24941         * cgraph.h: Declaration of cgraph_max_pid
24942         (struct cgraph_node): Added pid attribute
24943         * libgcov.c (__gcov_indirect_call_profiler): New function
24944         (__gcov_one_value_profiler_body): New function
24945         (__gcov_one_value_profiler): Body was moved to
24946         __gcov_one_value_profiler_body and calls it
24947
24948 2007-01-19  Basile Starynkevitch  <basile@starynkevitch.net>
24949
24950         * doc/gty.texi (Options): Document the mark_hook option to GTY.
24951         * gengtype.c (write_types_data, write_func_for_structure,
24952         write_types, ggc_wtd, pch_wtd): Add skip_hooks to
24953         write_types_data, ggc_wtd, pch_wtd for processing mark_hook.
24954         (walk_type, write_func_for_structure): Generate the mark_hook if
24955         needed.
24956
24957 2007-01-19  Jan Hubicka  <jh@suse.cz>
24958
24959         * ipa-inline.c (cgraph_decide_inlining_incrementally): Instead of
24960         'early' argument take inlining mode argument specifying whether to
24961         inline for size/speeed or all functions; add support for flattening;
24962         improve dumpting.
24963         (cgraph_early_inlining): Update call of decide_inlining_incrementally.
24964
24965 2007-01-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24966
24967         PR c++/17947
24968         * toplev.c (warn_deprecated_use): Use %qD instead of %qs to print
24969         the name of the declared identifier.
24970
24971 2007-01-19  Dirk Mueller  <dmueller@suse.de>
24972
24973         * config/i386.h (CONDITIONAL_REGISTER_USAGE): Store
24974         result of PIC_OFFSET_TABLE_REGNUM in temporary variable to avoid
24975         duplicate evaluation.
24976
24977 2007-01-19  Uros Bizjak  <ubizjak@gmail.com>
24978
24979         * config/i386/i386.md (acos<mode>2): Rename from acossf2 and acosdf2.
24980         Macroize expander using X87MODEF12 mode macro.  Extend operand 1
24981         to XFMode, use acosxf2 and truncate result to requested mode.
24982         Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
24983         (asin<mode>2): Similarly, with asin expanders.
24984         (*fscalexf4_i387): Rename from *fscalexf4.
24985         (expNcorexf3): New expander.
24986         (expxf2, exp10xf2, exp2xf2): Use expNcorexf3 expander.
24987         (exp<mode>2): Rename from expsf2 and expdf2. Macroize expander using
24988         X87MODEF12 mode macro.  Extend operand 1 to XFMode, use expxf2 and
24989         truncate result to requested mode. Use SSE_FLOAT_MODE_P to disable
24990         patterns for SSE math.
24991         (exp10<mode>2): Similarly, with exp10 expanders.
24992         (exp2<mode>2): Similarly, with exp2 expanders.
24993         (expm1<mode>2): Similarly, with expm1 expanders.
24994         (ldexp<mode>3): Similarly, with ldexp expanders.
24995         (log<mode>2, log10<mode>2, log2<mode>2, log1p<mode>2, logb<mode>2):
24996         Use gen_truncxf<mode>2_i387_noop to truncate result.
24997
24998 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
24999
25000         * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32
25001         for ColdFire targets.
25002
25003 2007-01-19  Nathan Sidwell  <nathan@codesourcery.com>
25004             Richard Sandiford  <richard@codesourcery.com>
25005
25006         * config/m68k/m68k.h (M68K_STATIC_CHAIN_REG_NAME): New macro.
25007         (INITIALIZE_TRAMPOLINE): Use STATIC_CHAIN_REGNUM.
25008         (__transfer_from_trampoline): Use M68K_STATIC_CHAIN_REG_NAME.
25009         * config/m68k/m68kelf.h (STATIC_CHAIN_REGNUM): Override.
25010         (M68K_STATIC_CHAIN_REG_NAME): Likewise.
25011         * config/m68k/netbsd-elf.h (M68K_STATIC_CHAIN_REG_NAME): Likewise.
25012
25013 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
25014
25015         * config/m68k/m68k.md (adddi_dilshr32): Rename to...
25016         (*adddi_dilshr32): ...this.  Fix formatting.  Remove commented-out
25017         non-canonical pattern.  Restrict to !TARGET_COLDFIRE.
25018         (*adddi_dilshr32_cf): New pattern.
25019         (adddi3, subdi3): Remove first alternatives.
25020
25021 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
25022
25023         * config/m68k/m68k.c (notice_update_cc): If an SFmode move is
25024         implemented using move.l, do not use its cc result for floating-point
25025         comparisons.
25026
25027 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
25028
25029         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Stop the 'T' constraint
25030         from accepting 's' constraints if flag_pic.
25031
25032 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
25033
25034         * config/m68k/m68k.md (bordered, bunordered, buneq, bunge, bungt)
25035         (bunle, bunlt, bltgt, bordered_rev, bunordered_rev, buneq_rev)
25036         (bunge_rev, bungt_rev, bunle_rev, bunlt_rev, bltgt_rev): Change
25037         condition from TARGET_68881 to TARGET_HARD_FLOAT.
25038
25039 2007-01-19  Sandra Loosemore  <sandra@codesourcery.com>
25040
25041         * longlong.h (count_leading_zeros, COUNT_LEADING_ZEROS_0): Add
25042         ColdFire alternatives.
25043         * config/m68k/m68k.h (CLZ_DEFINED_VALUE_AT_ZERO): New macro.
25044         * config/m68k/m68k.md (clzsi2): Define for ColdFire
25045         architectures that support ff1 instruction.
25046
25047 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
25048             Julian Brown  <julian@codesourcery.com>
25049
25050         * config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Add an 'R' case.
25051         * config/m68k/m68k.md (*movsi_cfv4): Fold into...
25052         (*movsi_cf): ...here.  Remove unnecessary 'R' from 'Rg'.
25053         Add commentary.
25054
25055 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
25056
25057         * config/m68k/m68k-protos.h (valid_mov3q_const): Take a HOST_WIDE_INT
25058         and return a bool.
25059         (output_move_const_into_data_reg, output_move_simode_const): Delete.
25060         * config/m68k/m68k.c (const_method, const_int_cost): Take a
25061         HOST_WIDE_INT instead of an rtx.
25062         (m68k_rtx_costs): Update call accordingly.
25063         (output_move_const_into_data_reg): Likewise.  Fix formatting.
25064         (valid_mov3q_const): Take a HOST_WIDE_INT instead of an rtx.
25065         Return a bool.
25066         (output_move_simode_const): Update calls after above changes.
25067         Rework to use automatic variables and predicates like MEM_P.
25068         * config/m68k/m68k.md (pushexthisi_const): Update call to
25069         valid_mov3q_const.
25070
25071 2007-01-19  Dirk Mueller  <dmueller@suse.de>
25072
25073         * tree-ssa-alias.c (perform_var_substitution): Fix typo
25074         in dump_flags test.
25075
25076 2007-01-19  Richard Guenther  <rguenther@suse.de>
25077
25078         * builtins.c (expand_builtin_cexpi): Fall back to expanding
25079         via cexp in case sincos is not available.
25080
25081 2007-01-19  Richard Guenther  <rguenther@suse.de>
25082
25083         * doc/tm.texi (TARGET_HAS_SINCOS): Document new target macro.
25084         * defaults.h (TARGET_HAS_SINCOS): Default to off.
25085         * config/linux.h (TARGET_HAS_SINCOS): Set to on if we have glibc.
25086         * config/alpha/linux.h (TARGET_HAS_SINCOS): Likewise.
25087         * config/sparc/linux.h (TARGET_HAS_SINCOS): Likewise.
25088         * config/sparc/linux64.h (TARGET_HAS_SINCOS): Likewise.
25089         * config/rs6000/linux.h (TARGET_HAS_SINCOS): Likewise.
25090         * config/rs6000/linux64.h (TARGET_HAS_SINCOS): Likewise.
25091
25092 2007-01-19  Uros Bizjak  <ubizjak@gmail.com>
25093
25094         * config/i386/i386.md (*fpatanxf3_i387, fpatan_extend<mode>xf3_i387):
25095         New insn patterns.
25096         (atan2sf3_1, atan2df3_1, atan2xf3_1): Remove insn patterns.
25097         (atan2xf3): Directly generate RTL pattern.
25098         (atan2<mode>3): Rename from atan2sf3 and atan2df3 and macroize insn
25099         patterns using X87MODEF12 mode macro.  Use fpatan_extend<mode>xf3_i387
25100         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
25101         disable patterns for SSE math.
25102         (atan<mode>2): Rename from atansf2 and atandf2 and macroize insn
25103         patterns using X87MODEF12 mode macro.  Use fpatan_extend<mode>xf3_i387
25104         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
25105         disable patterns for SSE math.
25106
25107 2007-01-19  Alexandre Oliva  <aoliva@redhat.com>
25108
25109         * libgcc-std.ver: Fix typo in %inherit for GCC_4.3.0.
25110
25111 2007-01-18  Roger Sayle  <roger@eyesopen.com>
25112
25113         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Optimize away a
25114         VIEW_CONVERT_EXPR to the same type as it's operand.
25115
25116 2007-01-18  David Edelsohn  <edelsohn@gnu.org>
25117
25118         * config/rs6000/darwin-ldouble.c: Only build _SOFT_FLOAT if
25119         configured for long double 128.
25120
25121 2007-01-18  Mike Stump  <mrs@apple.com>
25122
25123         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Fix build
25124         error.
25125
25126 2007-01-18  Michael Meissner  <michael.meissner@amd.com>
25127
25128         * i386.c (ix86_compute_frame_layout): Make fprintf's in #if 0 code
25129         type correct.
25130
25131 2007-01-18  Jan Hubicka  <jh@suse.cz>
25132
25133         * tree-ssa-operands.c (vop_free_bucket_size): Never return value
25134         greater than NUM_VOP_FREE_BUCKETS.
25135
25136 2007-01-18  Daniel Berlin  <dberlin@dberlin.org>
25137
25138         * tree-ssa-structalias.c: Update comments.
25139         (ptabitmap_obstack): Removed.
25140         (pta_obstack): New.
25141         (oldpta_obstack): Ditto.
25142         (stats): Add a few members.
25143         (struct variable_info): Remove node, complex, address_taken, and
25144         indirect_target members. Add oldsolution member.
25145         (new_var_info): Do not initialize removed members.
25146         (constraint_expr_type): Remove INCLUDES.
25147         (constraint_graph): Add size, implicit_preds, rep,
25148         indirect_cycles, eq_rep, label, direct_nodes, and complex members.
25149         (FIRST_REF_NODE): New macro.
25150         (LAST_REF_NODE): Ditto.
25151         (FIRST_ADDR_NODE): Ditto.
25152         (find): New function.
25153         (unite): Ditto.
25154         (dump_constraint): Do not handle INCLUDES.
25155         (insert_into_complex): Do not insert duplicate constraints.
25156         (condense_varmap_nodes): Renamed and rewritten into ...
25157         (merge_node_constraints): This. Also fix bug in handling of
25158         offseted copy constraints.
25159         (clear_edges_for_node): No longer need to deal with preds at all,
25160         or removing associated preds/succs.
25161         (merge_graph_nodes): Deal with indirect_cycles.
25162         Don't deal with predecessors.
25163         (add_implicit_graph_edge): New function.
25164         (add_pred_graph_edge): Ditto.
25165         (add_graph_edge): Don't deal with predecessors.
25166         (build_constraint_graph): Removed.
25167         (build_pred_graph): New function.
25168         (build_succ_graph): Ditto.
25169         (struct scc_info): Removed in_component. Added roots, dfs, and
25170         node_mapping. Remove visited_index, unification_queue.
25171         (scc_visit): Deal with union-find we do now.
25172         Deal with cycles with REF nodes.
25173         (collapse_nodes): Renamed and rewritten to ...
25174         (unify_nodes): This.
25175         (process_unification_queue): Removed.
25176         (topo_visit): Cleanup
25177         (do_da_constraint): Use find.
25178         (do_sd_constraint): Ditto.
25179         (do_ds_constraint): Ditto.
25180         (do_complex_constraint): Ditto.
25181         (init_scc_info): Update for removed and added members.
25182         (find_and_collapse_graph_cycles): Renamed and rewritten into ...
25183         (find_indirect_cycles): This.
25184         (equivalence_class): New variable.
25185         (label_visit): New function.
25186         (perform_variable_substitution): Rewritten.
25187         (free_var_substitution_info): New function.
25188         (find_equivalent_node): Ditto.
25189         (move_complex_constraints): Ditto.
25190         (eliminate_indirect_cycles): Ditto.
25191         (solve_graph): Only propagate changed bits.
25192         Use indirect cycle elimination.
25193         Use find.
25194         (tree_id_t): Rename to tree_vi_t, delete id member, add vi member.
25195         (tree_id_eq): Renamed to ...
25196         (tree_vi_eq): This. Update for member change
25197         (insert_id_for_tree): Renamed and rewritten to ...
25198         (insert_vi_for_tree): This.
25199         (lookup_id_for_tree): Renamed and rewritten to ...
25200         (lookup_vi_for_tree): This.
25201         (get_id_for_tree): Renamed and rewritten to ...
25202         (get_vi_for_tree): Ditto.
25203         (get_constraint_exp_from_ssa_var): Update to use get_vi_for_tree.
25204         (process_constraint): Don't handle INCLUDES.
25205         Remove special ADDRESSOF case.
25206         (find_func_aliases): Rewrite to use vi functions instead of id
25207         ones.
25208         (create_function_info_for): Ditto.
25209         (create_variable_info_for): Ditto.
25210         (intra_create_variable_infos): Ditto.
25211         (merge_smts_into): Ditto.
25212         (find_what_p_points_to): Ditto.
25213         (init_base_vars): Ditto.
25214         (init_alias_vars): Ditto.
25215         (remove_preds_and_fake_succs): New function.
25216         (dump_sa_points_to_info): Dump new stats.
25217         (dump_solution_for_var): Use find.
25218         (set_used_smts): Fix formatting.
25219         (compute_points_to_sets): Updated for new functions.
25220         (ipa_pta_execute): Ditto.
25221
25222 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
25223             Richard Sandiford  <richard@codesourcery.com>
25224
25225         * doc/tm.texi (TARGET_FUNCTION_VALUE): Expand documentation of
25226         parallels.
25227         * calls.c (expand_call): If the return value is a PARALLEL,
25228         extract its first member.
25229         * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Remove.
25230         * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
25231         use FUNCTION_EXTRA_EPILOGUE.
25232         (m68k_function_value): Return a PARALLEL if the return value
25233         is of a pointer type.
25234         * config/m68k/netbsd-elf.h (current_function_returns_pointer)
25235         (FUNCTION_EXTRA_EPILOGUE): Remove.
25236         * config/m68k/m68k.md (D0_REG): New constant.
25237
25238 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
25239
25240         * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
25241         output a NOP for empty epilogues.
25242
25243 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
25244
25245         * config/m68k/m68k.c (m68k_use_return_insn): Update comments
25246         before function.  Extend register save check to include all
25247         registers, not just integer ones.
25248
25249 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
25250
25251         * config/m68k/m68k-protos.h (use_return_insn): Rename to...
25252         (m68k_use_return_insn): ...this.
25253         * config/m68k/m68k.h (USE_RETURN_INSN): Delete.
25254         * config/m68k/m68k.c (use_return_insn): Rename to...
25255         (m68k_use_return_insn): ...this.
25256         * config/m68k/m68k.md (return): Use m68k_use_return_insn instead
25257         of USE_RETURN_INSN.
25258
25259 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
25260
25261         * config/m68k/fpgnulib.c (__truncdfsf2): Implement round to
25262         nearest even, fix denormal rounding overflow.
25263
25264 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
25265
25266         * config/m68k/m68k.md (movsf_cf_hard): Use fsmove instead of
25267         f%$smove and f%$move.
25268         (movdf_cf_hard): Use fdmove for cases 0 and 3 and fmove for case 1.
25269         (extendsfdf2_cf): Use fdmove instead of f%&move.
25270         (truncdfsf2_cf): Use fsmove instead of f%$smove.
25271         (add<mode>3_cf, sub<mode>3_cf): Use <FP:prec> instead of <FP:round>.
25272
25273 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
25274
25275         * config/m68k/m68k.md (movdf_cf_hard): Use output_move_double for
25276         GPR<-GPR moves.
25277
25278 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
25279
25280         * real.h (real_format): Add a canonical_nan_lsbs_set field.
25281         (coldfire_single_format): Declare.
25282         (coldfire_double_format): Likewise.
25283         * real.c (encode_ieee_single): Use canonical_nan_lsbs_set instead
25284         of qnan_msb_set to determine the lower bits of a canonical
25285         NaN significand.
25286         (encode_ieee_double): Likewise.
25287         (encode_ieee_quad): Likewise.
25288         (ieee_single_format): Initialize canonical_nan_lsbs_set.
25289         (mips_single_format): Likewise.
25290         (ieee_double_format): Likewise.
25291         (mips_double_format): Likewise.
25292         (ieee_extended_motorola_format): Likewise.
25293         (ieee_extended_intel_96_format): Likewise.
25294         (ieee_extended_intel_128_format): Likewise.
25295         (ieee_extended_intel_96_round_53_format): Likewise.
25296         (ibm_extended_format): Likewise.
25297         (mips_extended_format): Likewise.
25298         (ieee_quad_format): Likewise.
25299         (mips_quad_format): Likewise.
25300         (vax_f_format): Likewise.
25301         (vax_d_format): Likewise.
25302         (vax_g_format): Likewise.
25303         (i370_single_format): Likewise.
25304         (i370_double_format): Likewise.
25305         (decimal_single_format): Likewise.
25306         (decimal_double_format): Likewise.
25307         (decimal_quad_format): Likewise.
25308         (c4x_single_format): Likewise.
25309         (c4x_extended_format): Likewise.
25310         (real_internal_format): Likewise.
25311         (coldfire_single_format): New real_format.
25312         (coldfire_double_format): Likewise.
25313         * config/pdp11/pdp11.c (pdp11_f_format): Initialize
25314         canonical_nan_lsbs_set.
25315         (pdp11_d_format): Likewise.
25316         * config/m68k/m68k.c (override_options): Override REAL_FORMAT_MODE
25317         if TARGET_COLDFIRE_CPU.
25318
25319 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
25320
25321         * config/m68k/m68k-protos.h (m68k_output_pic_call): Delete.
25322         (output_call, m68k_legitimize_call_address): Declare.
25323         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Remove unnecessary
25324         parenthesees.  Add support for a 'W' constraint.
25325         (LEGITIMATE_PIC_OPERAND_P): Remove SYMBOL_REF_FLAG handling.
25326         (PRINT_OPERAND_PUNCT_VALID_P): Remove comment about 'o'.
25327         (m68k_symbolic_call, m68k_symbolic_jump): Declare.
25328         * config/m68k/m68k.c (m68k_symbolic_call, m68k_symbolic_jump): New
25329         variables.
25330         (override_options): Initialize them.  Do not set flag_no_function_cse
25331         for TARGET_ID_SHARED_LIBRARY.
25332         (m68k_output_pic_call): Delete.
25333         (m68k_legitimize_call_address): New function.
25334         (print_operand): Remove the %o prefix.  Handle the %p prefix.
25335         (output_call): New function.
25336         (m68k_output_mi_thunk): Use m68k_symbolic_jump.  Always load the
25337         target address from the GOT if symbolic jumps are not allowed.
25338         * config/m68k/m68k.md (call, general_operand): Do not set
25339         SYMBOL_REF_FLAG.  Use m68k_legitimize_call_address instead.
25340         Merge separate flag_pic and !flag_pic define_insns into...
25341         (*call, *call_value): ...these new patterns.  Match the address
25342         rather than the containing MEM and require it to be a call_operand.
25343         Use output_call to generate the asm template.
25344         * config/m68k/predicates.md (const_call_operand): New predicate.
25345         (call_operand): Likewise.
25346
25347 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
25348
25349         * config/m68k/m68k.h (REGISTER_MOVE_COST): Simplify definition.
25350         (STACK_GROWS_DOWNWARD): Define to 1.
25351         (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Equivocate
25352         comments, emphasizing that these values are only defaults.
25353         * config/m68k/linux.h (LINK_SPEC): Fix formatting in #undef.
25354         * config/m68k/m68k.c (const_method): Remove trailing whitespace.
25355
25356 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
25357
25358         * config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling.
25359
25360 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
25361             Richard Sandiford  <richard@codesourcery.com>
25362
25363         * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P)
25364         (FP_REGNO_P): New macros.
25365         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_DATA_P)
25366         (REGNO_OK_FOR_FP_P, REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Use them.
25367         (EH_RETURN_STACKADJ_RTX): Use A0_REG.
25368         * config/m68k/m68k.c (m68k_regno_mode_ok): Use the new REGNO macros.
25369
25370 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
25371
25372         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
25373         (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-rtems*): Add t-floatlib
25374         to $tmake_file.
25375         * config/m68k/t-floatlib: New file, extracting common code from...
25376         * config/m68k/t-m68kbare, config/m68k/t-m68kelf,
25377         * config/m68k/t-uclinux: Here.
25378         * config/m68k/fpgnulib.c: Do not compile extendeed precision
25379         routines on ColdFire targets.
25380
25381 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
25382
25383         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
25384         (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*)
25385         (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-linux*)
25386         (m68k-*-rtems*): Use tm_file rather than m68k/m68k.h and
25387         explicitly set MOTOROLA to 1.
25388         * config/m68k/m68k.h (MOTOROLA): Simplify definition accordingly.
25389
25390 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
25391             Nathan Sidwell  <nathan@codesourcery.com>
25392
25393         * config/m68k/m68k.h (PCC_STATIC_STRUCT_RETURN): Delete.
25394         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add MOTOROLA cases.
25395         * config/m68k/coff.h (REGISTER_PREFIX_MD): Delete.
25396         * config/m68k/m68020-elf.h (LIB_SPEC): Delete.
25397         * config/m68k/m68k-none.h (CC1_SPEC, CPP_SUBTARGET_SPEC): Delete.
25398         * config/m68k/m68kelf.h (IMMEDIATE_PREFIX, REGISTER_PREFIX_MD)
25399         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
25400         (NO_DOLLAR_IN_LABEL, PCC_STATIC_STRUCT_RETURN): Don't undefine.
25401         (BSS_ASM_OP, ASM_OUTPUT_SKIP, ASM_OUTPUT_ASCII): Delete.
25402         * config/m68k/m68kemb.h (PCC_STATIC_STRUCT_RETURN): Don't undefine.
25403         * config/m68k/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE)
25404         (WCHAR_TYPE_SIZE, TARGET_OBJFMT_CPP_BUILTINS): Delete.
25405         (TARGET_OS_CPP_BUILTINS): Don't define mc68000 and mc68020 here.
25406         (DBX_REGISTER_NUMBER): Delete.
25407         * config/m68k/netbsd-elf.h (IMMEDIATE_PREFIX): Delete.
25408         (PCC_STATIC_STRUCT_RETURN): Don't undefine.
25409         * config/m68k/openbsd.h (PCC_STATIC_STRUCT_RETURN): Define.
25410
25411 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
25412
25413         * config.gcc (m68k-*-uclinux*): Add flat.h to $tm_file.
25414         * config/flat.h: New file.
25415         * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define if
25416         OBJECT_FORMAT_FLAT.
25417         * config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Do not use
25418         indirect references for -msep-data or -mid-shared-library.
25419         Do not use PC-relative code addresses either.
25420         * config/m68k/m68k.c (override_options): Restrict -fPIC error
25421         to -mpcrel.
25422         * config/m68k/uclinux.h (STARTFILE_SPEC): Define.  Use Scrt1.o
25423         for shared libraries and crt1.o for executables.  Use crti.o and
25424         crtbegin.o.
25425         (ENDFILE_SPEC): Use crtend.o and crtn.o.
25426         (LIB_SPEC): Suppress -Rlibc.gdb if -static-libc is given.
25427         Do not add -elf2flt or -shared-lib-id options here.
25428         (LINK_SPEC): Define.  Pass -elf2flt if no -elf2flt option is given.
25429         Pass -shared-lib-id if -mid-shared-library, taking the library
25430         identifier from -mshared-library-id if given, otherwise
25431         defaulting to 0.
25432         (EH_FRAME_IN_DATA_SECTION): Do not undefine.
25433         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Likewise.
25434         (TARGET_OS_CPP_BUILTINS): Define __GXX_MERGED_TYPEINFO_NAMES=0
25435         and __GXX_TYPEINFO_EQUALITY_INLINE=0 if -mid-shared-library.
25436         (DRIVER_SELF_SPECS): Map unadorned PIC options to -msep-data.
25437         * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Add crtbegin.o
25438         and crtend.o.
25439         * config/m68k/lb1sf68.asm (PICCALL): Use an lea and pc-relative
25440         jump sequence for ISA A and ISA A+.
25441         (PICJUMP): Likewise.
25442
25443 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
25444
25445         * config.gcc (m68k-*-uclinux*): Base the port on the common
25446         and m68k GNU/Linux files rather than on the generic ELF ones.
25447         * config/m68k/uclinux.h (TARGET_VERSION): Override.
25448         (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
25449
25450 2007-01-18  Julian Brown  <julian@codesourcery.com>
25451             Richard Sandiford  <richard@codesourcery.com>
25452
25453         * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Make 64-bit on ColdFire.
25454         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
25455         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Undefine
25456         before redefining.
25457         * config/m68k/uclinux-oldabi.h (LONG_DOUBLE_TYPE_SIZE): Redefine to
25458         80 unconditionally.
25459         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
25460
25461 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
25462
25463         * doc/install.texi: Document m68k-uclinuxoldabi.
25464         * config.gcc (m68k-*-uclinuxoldabi): New configuration.
25465         * config/m68k/uclinux-oldabi.h: New file, copied from
25466         config/m68k/uclinux.h.
25467
25468 2007-01-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
25469
25470         * config/m32r/m32r-protos.h (m32r_expand_epilogue): Declare it.
25471         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Use gen_frame_mem.
25472         (m32r_compute_frame_size): Use unsigned for regno.
25473         (m32r_reload_lr): Use gen_frame_mem.
25474         (pop): New.
25475         (m32r_output_function_epilogue): Don't output the function epilogue
25476         textually here.
25477         (m32r_expand_epilogue): New.
25478         (direct_return): Return false if the function has the interrupt
25479         attribute.
25480         (m32r_hard_regno_rename_ok): Remove code for the textual epilogue.
25481         * config/m32r/m32r.md (epilogue): New expander.
25482         (return_lr, return_rte): New insns.
25483         (return): Make it expander.
25484         (return_normal): New expander.
25485
25486 2007-01-18  Josh Conner  <jconner@apple.com>
25487
25488         PR target/30485
25489         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Add
25490         support for UNLE, UNLT, UNGE, and UNGT.
25491
25492 2007-01-18  Jan Hubicka  <jh@suse.cz>
25493
25494         * tree-vrp.c (finalize_jump_threads): Do not call cleanup_cfg by hand.
25495         * tree-tailcall (add_virtual_phis): Likewise.
25496         (optimize_tail_call): Return TODOs.
25497         (execute_tail_calls): Return TODOs.
25498         * tree-ssa-ccp (execute_fold_all_builtins): Do cleanup_cfg via TODO.
25499         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Return if something
25500         changed.
25501         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
25502         Cleanup cfg using TODO.
25503         * tree-flow.h (cleanup_tree_cfg_loop): Update prototype.
25504         * passes.c (execute_function_todo): When cleanup did something, remove
25505         unused locals.
25506         * tree-cfg.c (pass_build_cfg): Add cleanup_cfg TODO.
25507         (make_edges): Don't cleanup_cfg.
25508
25509 2007-01-18  Uros Bizjak  <ubizjak@gmail.com>
25510
25511         * reg-stack.c (subst_stack_regs_pat) [UNSPEC_SINCOS_COS,
25512         UNSPEC_XTRACT_FRACT]: Use generic code for instructions that
25513         operate on the top of stack.
25514         [UNSPEC_SINCOS_SIN, UNSPEC_XTRACT_EXP, UNSPEC_TAN]: Rewrite
25515         register handling of instructions that output to the second
25516         stack slot.
25517         [UNSPEC_TAN_ONE, UNSPEC_TAN_TAN]: Remove.
25518         (move_for_stack_reg): Special-case check for dead destination
25519         stack slot for constant load of 1.0 inside UNSPEC_TAN.
25520
25521         * config/i386/i386.md (UNSPEC_TAN): New constant.
25522         (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): Remove.
25523         (fptanxf4_i387, fptan_extend<mode>xf4_i387): New patterns
25524         to correctly model move of constant 1.0 to top stack slot.
25525         (*tandf3_1, *tansf3_1, *tanxf3_1): Remove insn patterns.
25526         (unnamed peephole2 pattern): Remove corresponding peephole2
25527         pattern that optimizes tan insn and loading of constant 1.0.
25528         (tanxf2): Use fptanxf4_i387.
25529         (tan<mode>2): Rename from tansf2 and tandf2 and macroize insn
25530         patterns using X87MODEF12 mode macro.  Use fptan_extend<mode>xf4_i387
25531         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
25532         disable patterns for SSE math.
25533         (sincos<mode>3): Use truncxf<mode>2_i387_noop for truncation.
25534         (fyl2x_extend<mode>xf3_i387): Use X87MODEF12 for operand 1.
25535
25536 2007-01-18  Dirk Mueller  <dmueller@suse.de>
25537             Richard Guenther <rguenther@suse.de>
25538
25539         PR diagnostic/8268
25540         * doc/invoke.texi (Warray-bounds): Document -Warray-bounds.
25541         * common.opt (Warray-bounds): Add new warning option.
25542         * c-opts.c (c_common_handle_option): Define -Warray-bounds
25543         if -Wall is given.
25544         * Makefile.in: make tree-vrp.o depend on toplev.h
25545         * tree-vrp.c (vrp_finalize): Call check_array_refs if -Warray-bounds
25546         is enabled.
25547         (check_array_refs, check_array_bounds, check_array_ref): New.
25548
25549 2007-01-18  Jan Hubicka  <jh@suse.cz>
25550
25551         * tree-ssa-ccp.c (ccp_finalize): Return if something changed.
25552         (execute_ssa_ccp): Return flags conditionally.
25553         * tree-ssa-propagate.c (substitue_and_fold): Return if something was
25554         changed.
25555         * tree-ssa-propagate.h (substitute_and_fold): Update prototype.
25556
25557 2007-01-18  Steven Bosscher  <steven@gcc.gnu.org>
25558
25559         * cfgcleanup.c (cleanup_cfg): Detect cfglayout mode and set
25560         the CLEANUP_CFGLAYOUT flag when in cfglayout mode.
25561
25562         * Makefile.c (GTFILES): Add cfglayout.h.
25563         * gengtype.c (open_base_files): Likewise.
25564         * cfglayout.c (cfg_layout_function_footer,
25565         cfg_layout_function_header) Reindent to make gengtype happy.
25566         * cfglayout.h (cfg_layout_function_footer,
25567         cfg_layout_function_header): Add GTY(()) marker.
25568
25569         * ifcvt.c (noce_try_sign_mask): Make sure INSN_B is non-null.
25570
25571 2007-01-18  Ben Elliston  <bje@au.ibm.com>
25572
25573         * genautomata.c (write_automata): Include xstrerror output in the
25574         error message if writing the DFA description file fails.
25575
25576 2007-01-17  H.J. Lu  <hongjiu.lu@intel.com>
25577
25578         * config/mips/mips-protos.h (mips_output_external): Make it
25579         return void.
25580         * config/mips/iris.h (TARGET_ASM_EXTERNAL_LIBCALL): Removed.
25581         * config/mips/mips.c (irix_output_external_libcall): Likewise.
25582         (extern_list): Likewise.
25583         (extern_head): Likewise.
25584         (TARGET_ASM_FILE_END): Likewise.
25585         (mips_file_end): Likewise.
25586         (mips_output_external): Rewritten.
25587
25588 2007-01-18  Ben Elliston  <bje@au.ibm.com>
25589
25590         * genpreds.c (write_insn_preds_c): Only write out the function
25591         body for regclass_for_constraint if we have register constraints.
25592
25593 2007-01-17  Tom Tromey  <tromey@redhat.com>
25594
25595         * doc/sourcebuild.texi (libgcj Tests): Use sourceware.org.
25596         * doc/install.texi (Testing): Use sourceware.org.
25597         (Binaries): Likewise.
25598         (Specific): Likewise.
25599         * doc/contrib.texi (Contributors): Use sourceware.org.
25600
25601 2007-01-17  Anatoly Sokolov <aesok@post.ru>
25602
25603         * config/avr/avr.h (AVR_HAVE_LPMX): New macro.
25604         (AVR_ENHANCED): Rename to ...
25605         (AVR_HAVE_MUL): ... new.
25606         (avr_enhanced_p): Rename to ...
25607         (avr_have_mul_p): ... new.
25608         (TARGET_CPU_CPP_BUILTINS): Use 'avr_have_mul_p' instead of
25609         'avr_enhanced_p' for "__AVR_ENHANCED__". Define "__AVR_HAVE_MUL__".
25610         * config/avr/avr.c (avr_enhanced_p): Rename to ...
25611         (avr_have_mul_p): ... new.
25612         (base_arch_s): Rename 'enhanced' to 'have_mul'.
25613         (avr_override_options): Use 'avr_have_mul_p' and 'have_mul' instead of
25614         'avr_enhanced_p' and 'enhanced'.
25615         (ashlhi3_out, ashrhi3_out, lshrhi3_out, avr_rtx_costs): Use
25616         AVR_HAVE_MUL instead of AVR_ENHANCED.
25617         * avr.md (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
25618         (mulqi3, *mulqi3_enh, *mulqi3_call, mulqihi3, umulqihi3, mulhi3,
25619         *mulhi3_enh, *mulhi3_call, mulsi3, *mulsi3_call): Use AVR_HAVE_MUL
25620         instead of AVR_ENHANCED.
25621         (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
25622         * libgcc.S: Use __AVR_HAVE_MUL__ instead of __AVR_ENHANCED__.
25623         (__tablejump__): Use __AVR_HAVE_LPMX__ instead of __AVR_ENHANCED__.
25624
25625 2007-01-17  Ian Lance Taylor  <iant@google.com>
25626
25627         * vec.h (VEC_reserve_exact): Define.
25628         (vec_gc_p_reserve_exact): Declare.
25629         (vec_gc_o_reserve_exact): Declare.
25630         (vec_heap_p_reserve_exact): Declare.
25631         (vec_heap_o_reserve_exact): Declare.
25632         (VEC_OP (T,A,reserve_exact)): New static inline function, three
25633         versions.
25634         (VEC_OP (T,A,reserve)) [all versions]: Remove handling of
25635         negative parameter.
25636         (VEC_OP (T,A,alloc)) [all versions]: Call ...reserve_exact.
25637         (VEC_OP (T,A,copy)) [all versions]: Likewise.
25638         (VEC_OP (T,a,safe_grow)) [all versions]: Likewise.
25639         * vec.c (calculate_allocation): Add exact parameter.  Change all
25640         callers.
25641         (vec_gc_o_reserve_1): New static function, from vec_gc_o_reserve.
25642         (vec_gc_p_reserve, vec_gc_o_reserve): Call vec_gc_o_reserve_1.
25643         (vec_gc_p_reserve_exact, vec_gc_o_reserve_exact): New functions.
25644         (vec_heap_o_reserve_1): New static function, from vec_heap_o_reserve.
25645         (vec_heap_p_reserve, vec_heap_o_reserve): Call vec_heap_o_reserve_1.
25646         (vec_heap_p_reserve_exact): New function.
25647         (vec_heap_o_reserve_exact): New function.
25648
25649 2007-01-17  Jan Hubicka  <jh@suse.cz>
25650
25651         * ipa-type-escape.c (look_for_casts): Revamp using handled_component_p.
25652
25653 2007-01-17  Eric Christopher  <echristo@apple.com>
25654
25655         * config.gcc: Support core2 processor.
25656
25657 2007-01-16  Jan Hubicka  <jh@suse.cz>
25658
25659         * tree-ssanames.c (release_dead_ssa_names): Instead of ggc_freeing
25660         the names, just unlink the chain so we don't crash on dangling
25661         pointers
25662         to dead SSA names.
25663
25664 2007-01-16  Jan Hubicka  <jh@suse.cz>
25665
25666         * cgraph.h (cgraph_decide_inlining_incrementally): Kill.
25667         * tree-pass.h: Reorder to make IPA passes appear toegher.
25668         (pass_early_inline, pass_inline_parameters, pass_apply_inline):
25669         Declare.
25670         * cgraphunit.c (cgraph_finalize_function): Do not compute inling
25671         parameters, do not call early inliner.
25672         * ipa-inline.c: Update comments.  Include tree-flow.h
25673         (cgraph_decide_inlining): Do not compute inlining parameters.
25674         (cgraph_decide_inlining_incrementally): Return TODOs; assume to
25675         be called with function context set up.
25676         (pass_ipa_inline): Remove unreachable functions before pass.
25677         (cgraph_early_inlining): Simplify assuming to be called from the
25678         PM as local pass.
25679         (pass_early_inline): New pass.
25680         (cgraph_gate_ipa_early_inlining): New gate.
25681         (pass_ipa_early_inline): Turn into simple wrapper.
25682         (compute_inline_parameters): New function.
25683         (gate_inline_passes): New gate.
25684         (pass_inline_parameters): New pass.
25685         (apply_inline): Move here from tree-optimize.c
25686         (pass_apply_inline): New pass.
25687         * ipa.c (cgraph_remove_unreachable_nodes): Verify cgraph after
25688         transforming.
25689         * tree-inline.c (optimize_inline_calls): Return TODOs rather than
25690         doing them by hand.
25691         (tree_function_versioning): Do not allocate dummy struct function.
25692         * tree-inline.h (optimize_inline_calls): Update prototype.
25693         * tree-optimize.c (execute_fixup_cfg): Export.
25694         (pass_fixup_cfg): Remove
25695         (tree_rest_of_compilation): Do not apply inlines.
25696         * tree-flow.h (execute_fixup_cfg): Declare.
25697         * Makefile.in (gt-passes.c): New.
25698         * passes.c: Include gt-passes.h
25699         (init_optimization_passes): New passes.
25700         (nnodes, order): New static vars.
25701         (do_per_function_toporder): New function.
25702         (execute_one_pass): Dump current pass here.
25703         (execute_ipa_pass_list): Don't dump current pass here.
25704
25705 2007-01-16  Janis Johnson  <janis187@us.ibm.com>
25706
25707         * config/dfp-bit.c (dfp_compare_op): Return separate value for NaN.
25708         (DFP_NE, DFP_LE, DFP_GE): Return false for NaN.
25709
25710 2007-01-16  David Edelsohn  <edelsohn@gnu.org>
25711
25712         * config/rs6000/darwin-ldouble.c: Build file for SOFT_FLOAT.
25713         (strong_alias): Define.
25714         (__gcc_qmul): Provide non-FMA for soft-float.
25715         (__gcc_qdiv): Same.
25716         (__gcc_qneg): New.
25717         (__gcc_qeq): New.
25718         (__gcc_qle): New.
25719         (__gcc_qge): New.
25720         (__gcc_qunord): New.
25721         (__gcc_stoq): New.
25722         (__gcc_dtoq): New.
25723         (__gcc_qtos): New.
25724         (__gcc_qtod): New.
25725         (__gcc_qtoi): New.
25726         (__gcc_qtou): New.
25727         (__gcc_itoq): New.
25728         (__gcc_utoq): New.
25729         (fmsub): New.
25730         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Initialize
25731         soft-float functions.
25732         * config/rs6000/libgcc-ppc-glibc.ver: Version soft-float symbols.
25733         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Do not warn
25734         about long double soft float.
25735
25736 2007-01-16  Dorit Nuzman  <dorit@il.ibm.com>
25737             Tehila Meyzels  <tehila@il.ibm.com>
25738
25739         * tree-vectorizer.h (is_pattern_stmt_p): New.
25740         * tree-vect-analyze.c (vect_determine_vectorization_factor): Fix
25741         formatting (tabs instead of spaces). Cleanup and clarify setting
25742         of STMT_VINFO_VECTYPE. Call is_pattern_stmt_p.
25743         * tree-vect-transform.c (vect_get_vec_def_for_operand): Fix typo.
25744         (vectorizable_type_demotion): Check that types are integral.
25745         (vectorizable_type_promotion): Likewise.
25746         (vectorizable_store): Fix typo.  Eliminate new-line at end of
25747         comments.
25748
25749 2007-01-16  Jan Hubicka  <jh@suse.cz>
25750
25751         * tree-ssanames.c (release_dead_ssa_names): Remove invalidated
25752         cgraph edges too.
25753
25754 2007-01-15  Eric Christopher  <echristo@apple.com>
25755
25756         * ifcvt.c: Include vec.h, vecprim.h.
25757         (check_cond_move_block): New argument regs.
25758         Reorganize. Add registers used to regs.
25759         (cond_move_process_if_block): Use regs set above as
25760         loop bounds.
25761
25762 2007-01-15  Eric Christopher  <echristo@apple.com>
25763
25764         * config/darwin.h: Update copyright.
25765         (TARGET_OPTION_TRANSLATE_TABLE): Add umbrella.
25766         (LINK_COMMAND_SPEC): Add -u.
25767         (LINK_SPEC): Fix umbrella for above.
25768
25769 2007-01-15  Joseph S. Myers  <joseph@codesourcery.com>
25770
25771         * config/soft-fp/op-common.h, config/soft-fp/op-4.h: Update from
25772         glibc CVS.
25773
25774 2007-01-15  Tom Tromey  <tromey@redhat.com>
25775
25776         * doc/sourcebuild.texi (libgcj Tests): Don't mention jacks.
25777         * doc/install.texi (Testing): Don't mention jacks.
25778         (Configuration): Document --enable-java-maintainer-mode.  Move
25779         --with-java-home to libgcj-specific section.  Document
25780         --with-ecj-jar.
25781         (Prerequisites): Mention --enable-java-maintainer-mode, ecj1.
25782
25783 2007-01-15  Jan Hubicka  <jh@suse.cz>
25784
25785         * tree-ssa-dce.c (DCE_TODOs): New.
25786         (propagate_necessity): Return if something changed.
25787         (eliminate_unnecessary_stmts): Likewise.
25788         (perform_tree_ssa_dce): Return TODO flags when needed.
25789         (pass_dce, pass_dce_loop, pass_cd_dce): Remove TODO flags.
25790
25791 2007-01-15  Uros Bizjak  <ubizjak@gmail.com>
25792
25793         * config/i386/i386.md (fyl2xxf3_i387): Rename from fyl2x_xf3.
25794         (fyl2x_extend<mode>xf3_i387): New insn pattern.
25795         (log<mode>2): Rename from logsf2 and logdf2 and macroize insn
25796         patterns using X87MODEF12 mode macro.  Extend operand 1
25797         to XFmode. Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
25798         (log10<mode>2): Ditto.
25799         (log2<mode>2): Ditto.
25800         (log1p<mode>2): Ditto.
25801         (logb<mode>2): Ditto.
25802         (fyl2xp1xf3_i387): Rename from fyl2xp1_xf3.
25803         (fyl2xp1_extend<mode>xf3_i387): New insn pattern.
25804         (*fxtractxf3_i387): Rename from *fxtractxf3.
25805         (fxtract_extend<mode>xf3_i387): New insn pattern.
25806         (ilogbsi2): Use match_dup 3, not match_operand:XF 3.
25807         * config/i386/i386.c (ix86_emit_i387_log1p): Use gen_fyl2xp1xf3_i387()
25808         and gen_fyl2xxf3_i387().
25809
25810 2007-01-14  Zdenek Dvorak <dvorakz@suse.cz>
25811
25812         * loop-unswitch.c (unswitch_loop): Do not call fix_loop_placement.
25813         * cfgloopmanip.c (fix_loop_placement): Made static.  Use
25814         get_loop_exit_edges.  Changed return type to bool.
25815         * cfgloop.h (fix_loop_placement): Declaration removed.
25816
25817 2007-01-14  Dorit Nuzman  <dorit@il.ibm.com>
25818
25819         * param.h (MIN_VECT_LOOP_BOUND): New.
25820         * params.def (MIN_VECT_LOOP_BOUND): New.
25821         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Takes another
25822         argument - minimum threshold for number of iterations.
25823         * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge): Add another
25824         argument to declaration.
25825         * tree-vect-analyze.c (vect_analyze_operations): Check value of
25826         MIN_VECT_LOOP_BOUND.
25827         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Call
25828         slpeel_tree_peel_loop_to_edge with additional argument.
25829         (vect_do_peeling_for_alignment): Likewise.
25830         * doc/invoke.texi (min-vect-loop-bound): Document new param option.
25831
25832 2007-01-14  Uros Bizjak  <ubizjak@gmail.com>
25833
25834         PR target/30413
25835         * config/i386/i386.c (print_operand) ['z']: Output 'b' for
25836         operands of size 1.
25837
25838 2007-01-14  Jan Hubicka  <jh@suse.cz>
25839
25840         * tree-dfa.c (remove_referenced_var): New function.
25841         * tree-ssa-live.c (remove_unused_locals): Walk referenced vars and
25842         prune referenced vars list too.
25843         * tree-flow.h (remove_referenced_var): Declare.
25844
25845 2007-01-14  Jan Hubicka  <jh@suse.cz>
25846
25847         * tree-eh.c (add_stmt_to_eh_region_fn): Do not add call_exprs
25848         separately.
25849         (remove_stmt_from_eh_region_fn): Do not remove call_exprs.
25850         (verify_eh_throw_stmt_node, verify_eh_throw_table_statements): Kill.
25851         * except.h (verify_eh_throw_table_statements): Kill prototype.
25852         * cfgexpand.c (expand_gimple_basic_block): Propagate Eh regions
25853         into call exrepssions.
25854         * tree-optimize.c (execute_free_cfg_annotatiosn): Do not call
25855         eh trhow verifier.
25856         * tree-cfg.c: Include pointer-set.h.
25857         (verify_node_sharing): Work on pointer set.
25858         (verify_eh_throw_stmt_node): New.
25859         (verify_stmts): Use pointers sets, verify throw_stmt.
25860
25861 2007-01-13  Zdenek Dvorak <dvorakz@suse.cz>
25862
25863         * ipa-reference.c (analyze_function): Consider also addresses taken
25864         in phi nodes.
25865
25866 2007-01-12  Roger Sayle  <roger@eyesopen.com>
25867
25868         * c-typeck.c (null_pointer_constant_p): Replace use of
25869         TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
25870         (build_c_cast): Likewise.
25871
25872 2007-01-12  Roger Sayle  <roger@eyesopen.com>
25873
25874         * tree.h (force_fit_type_double): Remove unused final argument.
25875         * c-common.c (constant_expression_warning): Replace use of
25876         TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
25877         (convert_and_check): Likewise.
25878         (shorten_compare): Update call to force_fit_type_double.
25879         (c_common_truthvalue_conversion) <INTEGER_CST>: Use integer_zerop.
25880         * convert.c (convert_to_pointer): Update call to
25881         force_fit_type_double.
25882         * fold-const.c (force_fit_type_double): Remove overflowed_const
25883         argument.
25884         (int_const_binop, fold_convert_const_int_from_int,
25885         fold_convert_const_int_from_real, fold_div_compare,
25886         fold_sign_changed_comparison, fold_unary, fold_negate_const,
25887         fold_abs_const, fold_not_const): Remove the final argument from
25888         calls to force_fit_type_double.
25889
25890 2007-01-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
25891
25892         * configure.ac: Set insn to "nop" for spu-*-* also.
25893         * configure: Regenerate.
25894
25895 2007-01-12  Olga Golovanevsky  <olga@il.ibm.com>
25896
25897         * builtins.def : Add BUILT_IN_FREE.
25898
25899 2007-01-12  Jan Hubicka  <jh@suse.cz>
25900
25901         PR tree-optimization/30443
25902         * tree-inline.c (tree_function_versioning): Do not optimize when
25903         cloning for inlining.
25904
25905 2007-01-12  Zdenek Dvorak <dvorakz@suse.cz>
25906
25907         * doc/loop.texi: Document recording of loop exits.
25908         * cfgloopmanip.c (loopify, duplicate_loop): Use alloc_loop.
25909         (update_single_exits_after_duplication,
25910         update_single_exit_for_duplicated_loop,
25911         update_single_exit_for_duplicated_loops): Removed.
25912         (duplicate_loop_to_header_edge): Do not call
25913         update_single_exits_after_duplication and
25914         update_single_exit_for_duplicated_loops.
25915         (loop_version): Do not update single_exit information.
25916         (fix_loop_structure): Use record_loop_exits instead of
25917         mark_single_exit_loops.
25918         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update
25919         the lists of loop exits.
25920         * cfghooks.c (redirect_edge_and_branch, redirect_edge_and_branch_force,
25921         split_edge, merge_blocks): Update the lists of loop exits.
25922         * modulo-sched.c (sms_schedule): Pass LOOPS_HAVE_RECORDED_EXITS to
25923         loop_optimizer_init.
25924         * loop-init.c (loop_optimizer_init): Call record_loop_exits instead
25925         of mark_single_exit_loops.
25926         (loop_optimizer_finalize): Call release_recorded_exits.
25927         * tree-ssa-loop.c (tree_loop_optimizer_init): Pass
25928         LOOPS_HAVE_RECORDED_EXITS to loop_optimizer_init.
25929         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg): Do not
25930         update single exit information.
25931         * lambda-code.c (perfect_nestify): Ditto.
25932         * cfgloop.c (flow_loop_free): Destroy the list of exits of the loop.
25933         (mark_single_exit_loops): Removed.
25934         (alloc_loop, loop_exit_hash, loop_exit_eq, loop_exit_free,
25935         get_exit_descriptions, rescan_loop_exit, record_loop_exits,
25936         dump_recorded_exit, dump_recorded_exits, release_recorded_exits): New
25937         functions.
25938         (get_loop_exit_edges, single_exit): Use recorded exit lists.
25939         (add_bb_to_loop, remove_bb_from_loops): Update the lists of loop exits.
25940         (verify_loop_structure): Verify consistency of the exit lists.
25941         (flow_loops_find): Use alloc_loop.  Initialize exits hash.
25942         (set_single_exit): Removed.
25943         * cfgloop.h (struct loop_exit): New function.
25944         (struct loop): single_exit_ field replaced by exits field.
25945         (LOOPS_HAVE_MARKED_SINGLE_EXITS): Replaced by
25946         LOOPS_HAVE_RECORDED_EXITS.
25947         (struct loops): Added exits hash.
25948         (mark_single_exit_loops, set_single_exit): Declaration removed.
25949         (release_recorded_exits, record_loop_exits, rescan_loop_exit): Declare.
25950
25951 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
25952
25953         * doc/invoke.texi: Avoid use of @headitem.
25954
25955 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
25956
25957         * cse.c (cse_insn): Move HAVE_CC0 code after declarations.
25958
25959 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
25960
25961         * doc/install.texi: Fix m68k-*-* anchor and add m68k-*-* to the
25962         list of targets.
25963
25964 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
25965             Richard Sandiford  <richard@codesourcery.com>
25966
25967         * doc/invoke.texi: Document -mno-bitfield, -mno-rtd and -mno-short.
25968         * config/m68k/m68k.opt: Resort options.
25969         (mbitfield, mrtd, mshort): Remove RejectNegative properties.
25970
25971 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
25972             Richard Sandiford  <richard@codesourcery.com>
25973
25974         * doc/invoke.texi: Document the macros that are defined by
25975         m68k's -mtune and -mhard-float options.
25976         * config/m68k/m68k-protos.h (m68k_cpp_cpu_ident) Declare.
25977         (m68k_cpp_cpu_family): Likewise.
25978         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add a full set
25979         of __ucfv*__ macros.  Define __mcffpu__ if generating code for
25980         ColdFire FPUs.  Define __mcf_cpu_* and __mcf_family_* macros.
25981         * config/m68k/m68k.c (m68k_cpp_cpu_ident): New function.
25982         (m68k_cpp_cpu_family): Likewise.
25983
25984 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
25985
25986         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Treat all mc68*
25987         macros besides mc68000 as tuning macros.  Use a switch statement
25988         to set them and mcpu32.
25989
25990 2007-01-12  Julian Brown  <julian@codesourcery.com>
25991
25992         * config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY.
25993         (TARGET_68040_ONLY): Rename to...
25994         (TARGET_68040): ...this.
25995         * config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY.
25996         * config/m68k/m68k.md: Likewise.
25997
25998 2007-01-12  Julian Brown  <julian@codesourcery.com>
25999             Nathan Sidwell  <nathan@codesourcery.com>
26000             Richard Sandiford  <richard@codesourcery.com>
26001
26002         * config.gcc (m680[012]0-*-*, m68k*-*-*): Set m68k_cpu_ident to
26003         the -mcpu= argument associated with the --with-cpu setting.
26004         Define M68K_DEFAULT_TUNE to the default -mtune= option,
26005         if different from the one implied by the -mcpu setting.
26006         Accept --with-cpu=FOO if FOO is listed in m68k-devices.def,
26007         using mcpu=FOO as the default CPU option.  Set target_cpu_default2.
26008         * doc/invoke.texi: Mention ColdFire in the introduction to the
26009         m68k options.  Document the new -march, -mcpu, -mtune, -mdiv,
26010         -mno-div and -mhard-float options.  Make -m68881 a synonym for
26011         -mhard-float.  Document the previously-undocumented -m5206e,
26012         -m528x, -m5307 and -m5407 options.  Tweak the existing option
26013         documentation for consistency.
26014         * doc/install.texi: Mention new --with-cpu arguments.
26015         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Only use the
26016         default CPU if neither -mcpu nor -march are specified.
26017         (ASM_CPU_SPEC): Pass down -mcpu and -march options.
26018         (TARGET_CPU_CPP_BUILTINS): Set __mcfisa*__ macros from
26019         TARGET_ISA*.  Set the legacy __mcf*__ cpu macros in the same way,
26020         using m68k_tune to decide between families that implement the
26021         same ISA.  Use m68k_tune to set __mcfv4e__.
26022         (FL_BITFIELD, FL_68881, FL_COLDFIRE, FL_CF_HWDIV, FL_CF_MAC)
26023         (FL_CF_EMAC, FL_CF_EMAC_B, FL_CF_USP, FL_CF_FPU, FL_ISA_68000)
26024         (FL_ISA_68010, FL_ISA_68020, FL_ISA_68040, FL_ISA_A, FL_ISA_B)
26025         (FL_ISA_C, FL_ISA_MMU): New macros.
26026         (MASK_COLDFIRE): Delete.
26027         (TARGET_68010, TARGET_68020, TARGET_68040_ONLY, TARGET_COLDFIRE)
26028         (TARGET_ISAB): Redefine in terms of m68k_cpu_flags.
26029         (TARGET_68881, TARGET_COLDFIRE_FPU): Redefine in terms of m68k_fpu.
26030         (TARGET_HARD_FLOAT): Do not define here.
26031         (TARGET_ISAAPLUS, TARGET_ISAC): New macros.
26032         (TUNE_68000): New macro.
26033         (TUNE_68000_10): Redefine in terms of TUNE_68000 and TUNE_68010.
26034         (TUNE_68010, TUNE_68030, TUNE_68040, TUNE_68060, TUNE_CPU32)
26035         (TUNE_CFV2): Redefine in terms of m68k_tune.
26036         (uarch_type, target_device, fpu_type): New enums.
26037         (m68k_cpu, m68k_tune, m68k_fpu, m68k_cpu_flags): Declare.
26038         * config/m68k/m68k.c (TARGET_DEFAULT): Remove MASK_68881.
26039         (FL_FOR_isa_00, FL_FOR_isa_10, FL_FOR_isa_20, FL_FOR_isa_40)
26040         (FL_FOR_isa_cpu32, FL_FOR_isa_a, FL_FOR_isa_aplus, FL_FOR_isa_b)
26041         (FL_FOR_isa_c): New macros.
26042         (m68k_isa): New enum.
26043         (m68k_target_selection): New structure.
26044         (all_devices, all_isas, all_microarchs): New tables.
26045         (m68k_cpu_entry, m68k_arch_entry, m68k_tune_entry, m68k_cpu)
26046         (m68k_tune, m68k_fpu, m68k_cpu_flags): New variables.
26047         (MASK_ALL_CPU_BITS): Delete.
26048         (m68k_find_selection): New function.
26049         (m68k_handle_option): Handle -mcpu=, -march= and -mtune=.
26050         Map the legacy target options to a combination of the new ones.
26051         (override_options): Set m68k_cpu, m68k_tune, m68k_fpu and
26052         m68k_cpu_flags.  Handle M68K_DEFAULT_TUNE.  Use m68k_cpu_flags
26053         to derive default MASK_BITFIELD, MASK_CF_HWDIV and MASK_HARD_FLOAT
26054         settings.
26055         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407, mcfv4e)
26056         (m68010, m68020, m68020-40, m68020-60, m68030, m68040): Remove Mask
26057         properties.
26058         (m68881, msoft-float): Change mask from 68881 to HARD_FLOAT.
26059         (march=, mcpu=, mdiv, mhard-float, mtune=): New options.
26060         * config/m68k/m68k-devices.def: New file.
26061
26062 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
26063             Nathan Sidwell  <nathan@codesourcery.com>
26064
26065         * config/m68k/m68k.h (ASM_CPU_SPEC, ASM_SPEC, EXTRA_SPECS)
26066         (SUBTARGET_EXTRA_SPECS): New macros.
26067         * config/m68k/linux.h (ASM_SPEC): Remove CPU flags;
26068         use %(asm_cpu_spec) instead.
26069         * config/m68k/m68k-none.h (ASM_SPEC): Likewise.
26070         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
26071         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
26072         (EXTRA_SPECS): Rename to...
26073         (SUBTARGET_EXTRA_SPECS): ...this.
26074
26075 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
26076             Richard Sandiford  <richard@codesourcery.com>
26077             Julian Brown  <julian@codesourcery.com>
26078
26079         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
26080         (m68k-*-uclinux*, m68k-*-linux*, m68k-*-rtems*): Set default_m68k_cpu
26081         to the configuration's default CPU.
26082         (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*): Likewise.
26083         Remove default masks.
26084         (m680[012]0-*-*): Set the default with_cpu to the first part of
26085         the target name.
26086         (m68k*-*-*): Set the default with_cpu to m$default_m68k_cpu.
26087         (m68k*-*-linux): Extend the --with-cpu handling to...
26088         (m680[012]0-*-*, m68k*-*-*): ...these configurations.  Allow m68000
26089         and m68010.  Don't set target_cpu_default2.
26090         * doc/install.texi: Document --with-cpu for m68k.
26091         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Define.
26092         * config/m68k/m68k-none.h (TARGET_CPU_DEFAULT, M68K_CPU_m68k)
26093         (M68K_CPU_m68000, M68K_CPU_m68010, M68K_CPU_m68020, M68K_CPU_m68030)
26094         (M68K_CPU_m68040, M68K_CPU_m68302, M68K_CPU_m68332, TARGET_DEFAULT)
26095         (ASM_CPU_DEFAULT_SPEC, CC1_CPU_DEFAULT_SPEC): Delete.
26096         (ASM_SPEC): Remove use of %(asm_cpu_default).
26097         (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS, MULTILIB_DEFAULTS): Delete.
26098         * config/m68k/linux.h (TARGET_DEFAULT): Delete.
26099         (CPP_SPEC): Merge definitions.  Do not handle __HAVE_68881__ here.
26100         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
26101         __HAVE_FPU__ if TARGET_HARD_FLOAT.
26102         (TARGET_DEFAULT): Delete.
26103         (EXTRA_SPECS): Delete cpp_cpu_default_spec, cpp_cpu_spec,
26104         cpp_fpu_spec, asm_default_spec and netbsd_cpp_spec.
26105         (CPP_CPU_SPEC): Delete.
26106         (TARGET_VERSION): Merge definitions, using TARGET_68010 to pick
26107         the appropriate string.
26108         (CPP_CPU_DEFAULT_SPEC, ASM_DEFAULT_SPEC, CPP_FPU_SPEC): Delete.
26109         (CPP_SPEC): Define to NETBSD_CPP_SPEC.
26110         (ASM_SPEC): Don't use %(asm_default_spec).
26111         * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
26112         TARGET_DEFAULT and add MASK_68881.
26113         * config/m68k/m68k.md: Remove mention of TARGET_DEFAULT from comments.
26114
26115 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
26116
26117         * config.gcc (m68010-*-netbsdelf*): Add MASK_68010.
26118         (m68k*-*-netbsdelf*, m68k*-*-openbsd*, m68k*-linux*): Add
26119         MASK_68010 alongside MASK_68020.
26120         * doc/invoke.texi: Document -m68010.
26121         * config/m68k/m68k.opt (m68010): New.
26122         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define mc68010
26123         if TUNE_68010.
26124         (TUNE_68010): New macro.
26125         * config/m68k/m68k-none.h (M68K_CPU_m68k, M68K_CPU_m68010)
26126         (M68K_CPU_m68020, M68K_CPU_m68030, M68K_CPU_m68040)
26127         (M68K_CPU_m68332): Add MASK_68010.
26128         * config/m68k/linux.h (TARGET_DEFAULT): Add MASK_68010 to
26129         fallback definition.
26130         * config/m68k/netbsd-elf.h (CPP_CPU_SPEC): Remove now-redundant
26131         defines.
26132         * config/m68k/m68k.c (MASK_ALL_CPU_BITS): Add MASK_68010.
26133         (m68k_handle_option): Handle OPT_m68010.  Add MASK_68010
26134         to all entries that use MASK_68020.
26135         (output_move_simode_const, output_move_himode, output_move_qimode)
26136         (output_move_stricthi, output_move_strictqi): Use TARGET_68010
26137         instead of TARGET_68020 to select clr behavior.  Remove comment
26138         about there being no TARGET_68010.
26139         * config/m68k/m68k.md: Likewise throughout.
26140
26141 2007-01-12  Julian Brown  <julian@codesourcery.com>
26142
26143         * config/m68k/m68k.h (TARGET_ISAB): New macro.
26144         * config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
26145         * config/m68k/m68k.md: Likewise.
26146
26147 2007-01-12  Julian Brown  <julian@codesourcery.com>
26148
26149         * config/m68k/m68k.h (LEGITIMATE_INDEX_P, LEGITIMIZE_ADDRESS): Use
26150         TARGET_COLDFIRE_FPU instead of TARGET_CFV4E.
26151
26152 2007-01-12  Julian Brown  <julian@codesourcery.com>
26153
26154         * config/m68k/m68k.h (TUNE_68040_60): New macro.
26155         * config/m68k/m68k.c (standard_68881_constant_p): Use it.
26156         * config/m68k/m68k.md: Likewise.
26157
26158 2007-01-12  Julian Brown  <julian@codesourcery.com>
26159             Richard Sandiford  <richard@codesourcery.com>
26160
26161         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Use TUNE_68030
26162         instead of TARGET_68030, TUNE_68040 instead of TARGET_68040,
26163         TUNE_68060 instead of TARGET_68060 and TUNE_CPU32 instead of
26164         TARGET_CPU32.
26165         (TARGET_CPU32): Rename to...
26166         (TUNE_CPU32): ...this.
26167         (TUNE_68000_10, TUNE_68030, TUNE_68040, TUNE_68060)
26168         (TUNE_CFV2): New macros.
26169         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Simplify;
26170         remove conditions that are implied by TARGET_68020.
26171         * config/m68k/m68k.c (m68k_output_function_prologue): Use TUNE_68040
26172         instead of TARGET_68040 and TUNE_CPU32 instead of TARGET_CPU32.
26173         (m68k_output_function_epilogue): Likewise.
26174         (m68k_rtx_costs): Likewise.  Use TUNE_68060 instead of TARGET_68060
26175         and TUNE_CFV2 instead of TARGET_5200.  Use TUNE_68000_10 instead of
26176         "!TARGET_68020 && !TARGET_COLDFIRE" to choose between 68000 and
26177         non-68000 timings.  Refactor multiplication and division costs.
26178         (output_addsi3): Use TUNE_68040 instead of TARGET_68040 and
26179         TUNE_CPU32 instead of TARGET_CPU32.
26180         (standard_68881_constant_p): Use TUNE_68040 instead of TARGET_68040
26181         and TUNE_68060 instead of TARGET_68060.
26182         * config/m68k/m68k.md: Use TUNE_68040 instead of TARGET_68040,
26183         TUNE_68060 instead of TARGET_68060, and TUNE_CPU32 instead of
26184         TARGET_CPU32.
26185         (movsi_const0): Use TUNE_68000_10 rather than "!TARGET_68020
26186         && !TARGET_COLDFIRE" to choose between moveq and clr.
26187         Likewise in the unnamed movsf pattern.
26188         (ashlsi_17_24, lshrsi_17_24): Guard with TUNE_68000_10 rather than
26189         "!TARGET_68020 && !TARGET_COLDFIRE".  Likewise the unnamed
26190         ashiftrt pattern.
26191
26192 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
26193
26194         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Increase amount
26195         of tabbing before backslashes.
26196
26197 2007-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26198
26199         * pa-linux.h (ASM_OUTPUT_INTERNAL_LABEL): Undefine.
26200         * pa.h (ASM_OUTPUT_LABEL): Output colon when using GAS.
26201         (ASM_OUTPUT_INTERNAL_LABEL): Define.
26202
26203 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
26204
26205         * tree-ssa-loop-ivopts.c (extract_cond_operands): Split from
26206         find_interesting_uses_cond.
26207         (find_interesting_uses_cond): Use extract_cond_operands.
26208         (rewrite_use_compare): Use extract_cond_operands and
26209         force_gimple_operand_bsi.  Do not call update_stmt.
26210         (determine_use_iv_cost_condition): Use extract_cond_operands.
26211         Return cheaper of using original bound and changing the exit bound.
26212
26213 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
26214
26215         PR tree-optimization/29516
26216         * tree-ssa-address.c (tree_mem_ref_addr, add_to_parts,
26217         most_expensive_mult_to_index, addr_to_parts,
26218         create_mem_ref, maybe_fold_tmr): Make the type of
26219         fields of TARGET_MEM_REF sizetype.
26220         (move_fixed_address_to_symbol, move_pointer_to_base):
26221         New functions.
26222         * tree.def (TARGET_MEM_REF): Add comment on types of
26223         the operands.
26224
26225 2007-01-11  Joseph Myers  <joseph@codesourcery.com>
26226
26227         * c-common.c (vector_types_convertible_p): Treat opaque types as
26228         always convertible if they have the same size, but not otherwise.
26229
26230 2007-01-11  Steven Bosscher  <steven@gcc.gnu.org>
26231
26232         * ifcvt.c (struct noce_if_info): Add comments to the fields.
26233         Remove the b_unconditional field.
26234         (noce_try_sign_mask): Do not look at b_unconditional.
26235         (noce_process_if_block): Do not use merge_if_blocks.  Update
26236         the CFG here.  Do not set b_unconditional.
26237         (cond_move_process_if_block): Likewise.
26238         (find_cond_trap): Likewise.
26239         (check_cond_move_block): Require simple jump insns at the end
26240         of the basic block.
26241
26242 2007-01-11  Jan Hubicka  <jh@suse.cz>
26243
26244         PR tree-optimization/1046
26245         * tree-tailcall.c (suitable_for_tail_call_opt_p): Use TREE_ADDRESSABLE
26246         when alias info is not ready.
26247         (pass_tail_recursion): Do not require aliasing.
26248         * tree-ssa-copyrename.c (pass_rename_ssa_cop): Likewise.
26249         * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Likewise.
26250         * tree-ssa-copy.c (pass_copy_prop): Likewise.
26251         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
26252         * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Likewise.
26253         * passes.c (init_optimization_passes): Execute rename_ssa_copies,
26254         ccp, forwprop, copy_prop, merge_phi, copy_prop, dce and tail recursion
26255         before inlining.
26256         * tree-ssa-operands.c (add_virtual_operand, get_indirect_ref_operand):
26257         When aliasing is not build, mark statement as volatile.
26258
26259 2007-01-11  Tom Tromey  <tromey@redhat.com>
26260
26261         PR preprocessor/15185, PR preprocessor/20989:
26262         * doc/cppopts.texi <-MT>: Update description of algorithm for
26263         computing default target.
26264         <-M, -MD>: Reword "basename" text.
26265
26266 2007-01-11  Roger Sayle  <roger@eyesopen.com>
26267
26268         * builtins.c (expand_builtin_pow, expand_builtin_powi,
26269         fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_trunc,
26270         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
26271         fold_builtin_int_int_roundingfn, fold_builtin_bitop,
26272         fold_builtin_bswap, real_constp, fold_builtin_pow,
26273         fold_builtin_powi, fold_builtin_signbit, fold_builtin_copysign,
26274         do_mpfr_arg1, do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Replace
26275         uses of the macro TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
26276         * convert.c (convert_to_pointer): Likewise.
26277         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
26278         * fold-const.c (force_fit_type, fold_negate_expr, int_const_binop,
26279         const_binop, fold_convert_const_int_from_int,
26280         fold_convert_const_int_from_real,
26281         fold_convert_const_real_from_real, sign_bit_p,
26282         optimize_minmax_comparison, extract_muldiv_1, fold_div_compare,
26283         fold_sign_changed_comparison, fold_unary, fold_comparison,
26284         fold_binary, multiple_of_p, tree_Expr_non_zero_p,
26285         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
26286         * print-tree.c (print_node_brief, print_node): Likewise.
26287         * stor-layout.c (place_field, layout_type): Likewise.
26288         * tree-chrec.c (keep_cast): Likewise.
26289         * tree.c (build_vector, build_real, build_real_from_int_cst,
26290         build_complex): Likewise.
26291
26292 2007-01-11  Roger Sayle  <roger@eyesopen.com>
26293
26294         * tree.h (TREE_CONSTANT_OVERFLOW): Obsolete.  For the time being,
26295         treat TREE_CONSTANT_OVERFLOW as a synonym of TREE_OVERFLOW.
26296
26297 2007-01-11  Paolo Bonzini  <bonzini@gnu.org>
26298
26299         * configure.ac (strict1_warn): Rename to strict_warn.
26300         (WERROR, --enable-werror, symlink hacks, stage1_cflags,
26301         cc_set_by_configure, quoted_cc_set_by_configure,
26302         stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
26303         all_boot_languages, all_stagestuff): Remove.
26304         (target_list): Remove bootstrap targets.
26305         * Makefile.in (quickstrap): Unconditionally make a synonym of all.
26306         (BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
26307         REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
26308         SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
26309         VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
26310         STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
26311         stage1_copy, stage2_build, stage2_copy, stageprofile_build,
26312         stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
26313         stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
26314         bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
26315         bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
26316         unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
26317         restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
26318         cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
26319         *compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
26320         stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
26321         stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
26322         risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
26323         (ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
26324         (STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
26325         (mostlyclean): Adjust.
26326         (clean, distclean): Don't mention bootstrap stuff.
26327         * configure: Regenerate.
26328         * ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
26329         java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
26330         treelang/config-lang.in (stagestuff): Remove.
26331         * doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
26332         stageprofile, stagefeedback, stagestuff): Remove mention.
26333
26334 2007-01-11  Nick Clifton  <nickc@redhat.com>
26335
26336         * config/mcore/predicates.md (mcore_general_movesrc_operand):
26337         Accept CONSTs.
26338         (mcore_general_movdst_operand): Do not accept CONST_INTs.
26339         (mcore_arith_K_S_operand): Run the test for the S constraint not
26340         the test for the M constraint.
26341         (mcore_addsub_operand): Do not accept integer values that are
26342         larger than 32 bits.
26343         * config/mcore/mcore.md: Remove unused constraints from split.
26344         (andsi3): Use HOST_WIDE_INT instead of int to hold an INTVAL.
26345         (addsi3): Likewise.
26346         (allocate_stack): Likewise.
26347         * config/mcore/mcore.c (mcore_print_operand): Restrict output of P
26348         operands to 32 bits.
26349         (mcore_const_costs): Use HOST_WIDE_INT instead of int to hold an
26350         INTVAL.
26351         (mcore_and_cost, mcore_modify_comparison, const_ok_for_mcore,
26352         mcore_const_ok_for_inline, mcore_const_trick_uses_not,
26353         try_constant_tricks, mcore_num_ones, mcore_num_zeros,
26354         mcore_output_bclri, mcore_output_andn, output_inline_const,
26355         mcore_output_move, mcore_output_movedouble): Likewise.
26356         (mcore_output_cmov): Use CONST_OK_FOR_M and CONST_OK_FOR_N.
26357         (output_inline_const): Likewise.
26358         (output_inline_const): Fix format strings used in sprintf
26359         statements.
26360         * config/mcore/mcore-protos.h: Update prototypes for changed
26361         functions in mcore.c.
26362         * config/mcore/mcore.h (CONST_OK_FOR_I): Cast values to
26363         HOST_WIDE_INT and not int.
26364         (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M,
26365         CONST_OK_FOR_N): Likewise.
26366         (LEGITIMATE_CONSTANT_P): Also check CONSTANT_P.
26367         (GO_IF_LEGITIMATE_INDEX): Use HOST_WIDE_INT instead of int to hold
26368         an INTVAL.
26369
26370 2007-01-10  Jan Hubicka  <jh@suse.cz>
26371
26372         * tree-vrp.c (remove_range_assertions): Release defs.
26373         * tree-ssa-loop-ivopts.c (rmeove_statement): Likewise.
26374         * tree-ssa-dom.c (remove_stmt_or_phi): Likewise.
26375
26376 2007-01-10  Paul Brook  <paul@codesourcery.com>
26377
26378         * config/arm/arm.c (arm_rtx_costs_1): Handle mutiply-subtract.
26379         * config/arm/arm.md (mulsi3subsi): New insn.
26380
26381 2007-01-10  Zdenek Dvorak <dvorakz@suse.cz>
26382
26383         * tree-ssa-loop-manip.c (tree_unroll_loop): Make it a wrapper over ...
26384         (tree_transform_and_unroll_loop): New.
26385         * tree-flow.h (transform_callback, tree_transform_and_unroll_loop):
26386         Declare.
26387
26388 2007-01-10  Robert Kennedy <jimbob@google.com>
26389
26390         * fold-const.c (fold_comparison): Fold comparisons like (x *
26391         1000 < 0) to (x < 0).
26392
26393 2007-01-10  Ian Lance Taylor  <iant@google.com>
26394
26395         * tree-pretty-print.c (dump_generic_node): Print parentheses when
26396         operands have the same priority.
26397
26398 2007-01-10  Tom Tromey  <tromey@redhat.com>
26399
26400         * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
26401         (fold_binary): Likewise.
26402         * langhooks.c (lhd_can_use_bit_fields_p): Removed.
26403         * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
26404         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
26405         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
26406         * langhooks.h (struct lang_hooks): Removed field
26407         'can_use_bit_fields_p'.
26408
26409 2007-01-10  Ralf Corsépius <ralf.corsepius@rtems.org>
26410
26411         * config/bfin/t-bfin, config/bfin/t-bfin-elf: Remove GCC_CFLAGS.
26412
26413 2007-01-10  Razya Ladelsky  <razya@il.ibm.com>
26414
26415         * function.c (get_last_funcdef_no): New function.
26416         * function.h (get_last_funcdef_no): Declare.
26417         * tree-inline.c (initialize_cfun): Add initialization.
26418         (tree_function_versioning): Cleanup.
26419
26420 2007-01-10  Jan Hubicka  <jh@suse.cz>
26421
26422         * tree-inline.c (setup_one_parameter): Do not propagate into abnormal
26423         PHIs.
26424
26425 2007-01-10  Sa Liu  <saliu@de.ibm.com>
26426             Ben Elliston  <bje@au.ibm.com>
26427
26428         * spu.h (STACK_SAVE_AREA): Use VOIDmode for SAVE_FUNCTION, SImode
26429         for SAVE_NONLOCAL and Pmode for any other save level.
26430         * spu-protos.h (spu_restore_stack_block): Declare.
26431         * spu.md (save_stack_block): Remove.
26432         (restore_stack_block): Call spu_restore_stack_block.
26433         * spu.c (spu_restore_stack_block): New function.
26434         (spu_expand_epilogue): Remove old comment.
26435
26436 2007-01-09  Zdenek Dvorak <dvorakz@suse.cz>
26437
26438         PR tree-optimization/30322
26439         * tree-ssa-loop-ivopts.c (fold_affine_expr, iv_value): Removed.
26440         (cand_value_at): Return the value as aff_tree.
26441         (may_eliminate_iv): Convert the bound from aff_tree to tree.
26442         * tree-affine.c (aff_combination_add_cst, aff_combination_add_product,
26443         aff_combination_mult): New functions.
26444         (aff_combination_add): Use aff_combination_add_cst.
26445         (aff_combination_convert): Allow conversions to a wider type.
26446         (tree_to_aff_combination): Handle BIT_NOT_EXPR.
26447         * tree-affine.h (aff_combination_mult): Declare.
26448
26449 2007-01-09  Carlos O'Donell  <carlos@codesourcery.com>
26450
26451         * doc/tm.texi: Update documentation to reflect reality of exec
26452         and start file search behaviours. Update copyright year.
26453         * doc/invoke.texi: Explain how GCC_EXEC_PREFIX is used to find
26454         header file directories.
26455
26456 2007-01-09  Uros Bizjak  <ubizjak@gmail.com>
26457
26458         * config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
26459         (*cosxf2): Rename to cosxf2_i387.
26460         (*sindf2, *sinsf2): Extend operand 1 to XFmode.  Macroize patterns
26461         using X87MODEF12 mode macro. Rename patterns to
26462         *sin_extend<mode>xf2_i387.  Use SSE_FLOAT_MODE_P to disable patterns
26463         for SSE math.
26464         (*cosdf2, *cossf2): Ditto.
26465         (sincosdf3, sincossf3): Ditto.  Rewrite corresponding splitters
26466         to match extended input operands.
26467         (sincos<mode>3): New expander.
26468         (*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
26469         insn patterns and corresponding splitters.
26470
26471 2007-01-09  Kaz Kojima  <kkojima@gcc.gnu.org>
26472
26473         * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Delete.
26474         (SHLIB_MAPFILES, SHLIB_LINK, SHLIB_INSTALL): Likewise.
26475
26476 2007-01-09  Nicolas Pitre  <nico@cam.org>
26477
26478         PR target/30173
26479         * arm/ieee754-df.S (Lad_s): Also test the low word of X for zero.
26480
26481 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
26482
26483         * target.h (struct gcc_target): New field library_rtti_comdat.
26484         * target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
26485         (TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
26486         * doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
26487         * config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
26488
26489 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
26490
26491         * doc/invoke.texi (Optimize Options): Correct description of -O0.
26492
26493 2007-01-08  Richard Guenther  <rguenther@suse.de>
26494
26495         * tree.h (force_fit_type_double): Export.
26496         (force_fit_type): Remove.
26497         * fold-const.c (force_fit_type_double): New function.
26498         (force_fit_type): Remove.
26499         (int_const_binop): Use it.
26500         (fold_convert_const_int_from_int): Likewise.
26501         (fold_convert_const_int_from_real): Likewise.
26502         (fold_div_compare): Likewise.
26503         (fold_sign_changed_comparison): Likewise.
26504         (fold_unary): Likewise.
26505         (fold_negate_const): Likewise.
26506         (fold_abs_const): Likewise.
26507         (fold_not_const): Likewise.
26508         * c-common.c (shorten_compare): Use force_fit_type_double.
26509         * convert.c (convert_to_pointer): Likewise.
26510
26511 2007-01-08  Richard Guenther  <rguenther@suse.de>
26512
26513         * tree.h (build_int_cst_wide_type): Export.
26514         * tree.c (build_int_cst_wide_type): New function.
26515         (build_int_cst_wide): Fix comment.
26516         * builtins.c (fold_builtin_object_size): Use build_int_cst
26517         to build -1 or 0 of the correct type.  Use fit_double_type
26518         to check for overflow.
26519         * fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
26520         to build the mask.
26521         (decode_field_reference): Likewise.
26522         (all_ones_mask_p): Likewise.
26523         (native_interpret_int): Use build_int_cst_wide_type.
26524         (fold_binary): Use build_int_cst_type to build an all-ones
26525         value.
26526         * stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
26527
26528 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
26529
26530         * config/pa/t-pa64 (libgcc_stub.a): Use $(T).
26531
26532 2007-01-09  Ben Elliston  <bje@au.ibm.com>
26533
26534         * genautomata.c (STATS_OPTION): New option.
26535         (stats_flag): New flag.
26536         (gen_automata_option): Handle it.
26537         (initiate_automaton_gen): Ditto.
26538         (write_automata): Output statistics only if stats_flag is
26539         set. Likewise, output time statistics only if time_flag is set.
26540         * doc/md.texi (Processor pipeline description): Document new flag.
26541
26542 2007-01-08  Richard Guenther  <rguenther@suse.de>
26543
26544         * builtins.c (fold_builtin_int_roundingfn): Use fit_double_type.
26545         * tree.c (build_int_cst_type): Likewise.
26546         (size_in_bytes): Don't call force_fit_type on the result.
26547         (int_fits_type_p): Use fit_double_type.
26548         * fold-const.c (fit_double_type): New function.
26549         (force_fit_type): Use it.
26550         * tree.h (fit_double_type): Export.
26551
26552 2007-01-08  Jan Hubicka  <jh@suse.cz>
26553
26554         * tree-vectorizer.c (gate_increase_alignment): Fix return type.
26555         * ipa.c (function_and_variable_visibility): Fix return type.
26556
26557 2007-01-08  Richard Guenther  <rguenther@suse.de>
26558
26559         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use type
26560         of offset to build the index.
26561         * tree-pretty-print.c (dump_generic_node): Don't build negated
26562         const just for printing.
26563         * c-pretty-print.c (pp_c_integer_constant): Likewise.
26564         * builtins.c (fold_builtin_int_roundingfn): Check if result
26565         fits the type by using force_fit_type and comparing the result.
26566         * predict.c (predict_loops): Use compare_tree_int for comparison.
26567         * tree.c (build_int_cst): Fall back to integer_type_node for
26568         NULL_TREE type.
26569         (build_int_cst_wide): Assert type is non-null.
26570
26571 2007-01-08  Roberto Costa  <roberto.costa@st.com>
26572
26573         * tree-vrp.c (extract_range_from_cond_expr): New.
26574         (extract_range_from_expr): Handle COND_EXPR nodes used as expressions.
26575         * tree-ssa-ccp.c (get_maxval_strlen): Handle COND_EXPR nodes used
26576         as expressions.
26577         (fold_stmt): Bug fix, avoid infinite recursion when folding COND_EXPRs.
26578         * tree-ssa-forwprop.c (simplify_cond, forward_propagate_into_cond,
26579         tree_ssa_forward_propagate_single_use_vars): Handle COND_EXPR nodes
26580         used as expressions.
26581         * tree-object-size.c (cond_expr_object_size): New.
26582         (collect_object_sizes_for): Handle COND_EXPR nodes used as expressions.
26583
26584 2007-01-08  Jan Hubicka  <jh@suse.cz>
26585
26586         * tree-ssa-forwprop.c (forward_propagate_into_cond,
26587         tree_ssa_forward_propagate_single_use_va): Release defs of propagated
26588         statement.
26589
26590 2007-01-08  Richard Guenther  <rguenther@suse.de>
26591
26592         PR tree-optimization/23603
26593         * tree-vrp.c (set_value_range_to_truthvalue): New function.
26594         (extract_range_from_binary): Fall back to truthvalue instead of
26595         varying for TRUTH_*_EXPR.
26596         (extract_range_from_comparison): Fall back to truthvalue instead of
26597         varying.
26598         (vrp_visit_phi_node): Don't adjust new range bounds to +INF/-INF
26599         if all visited PHI values were constant.
26600
26601 2007-01-08  Jan Hubicka  <jh@suse.cz>
26602
26603         * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
26604         (cgraph_analyze_function): break out from ...
26605         (cgraph_finalize_compilation_unit): ... here.
26606         (cgraph_expand_function): Remove forgoten commented out line.
26607         (cgraph_optimize): Analyze functions.
26608
26609 2007-01-08  Jan Hubicka  <jh@suse.cz>
26610
26611         * tree-pas.h (TODO_remove_function): New flag.
26612         (TODO_update*): Renumber.
26613         (pass_ipa_increase_alignment,
26614         pass_ipa_function_and_variable_visibility): New passes.
26615         * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
26616         (cgraph_function_and_variable_visibility): Move to ipa.c
26617         (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
26618         cgraph_increase_alignment.
26619         * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
26620         (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
26621         calling tree-inline.
26622         (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
26623         (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
26624         * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
26625         (gate_increase_alignment): New function.
26626         (pass_ipa_increase_alignment): New pass.
26627         * ipa.c: Inline tree-pass.h and timevar.h
26628         (function_and_variable_visibility): Move here from cgraphunit.c
26629         * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
26630         * passes.c (init_optimization_passes): Add the two new passes.
26631         (execute_todo): Handle cgraph_remove_functions.
26632
26633 2007-01-08  Nick Clifton  <nickc@redhat.com>
26634
26635         * config/frv/predicates.md (reg_or_0_operand): Accept
26636         CONST_DOUBLEs.
26637
26638 2007-01-08  Ralf Corsépius <ralf.corsepius@rtems.org>
26639
26640         * config/bfin/rtems.h, config/bfin/t-rtems: New.
26641         * config.gcc: Add bfin*-rtems*.
26642
26643 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
26644
26645         * c.opt: Add -flax-vector-conversions.
26646         * c-typeck.c (convert_for_assignment): Pass flag to
26647         vector_types_convertible_p to allow emission of note.
26648         (digest_init): Likewise.
26649         * c-opts.c: Handle -flax-vector-conversions.
26650         * c-common.c (flag_lax_vector_conversions): New.
26651         (vector_types_convertible_p): Unless -flax-vector conversions
26652         has been passed, disallow conversions between vectors with
26653         differing numbers of subparts and/or element types.  If such
26654         a conversion is disallowed, possibly emit a note on the first
26655         occasion only to inform the user of -flax-vector-conversions.
26656         The new last argument specifies this.
26657         * c-common.h (flag_lax_vector_conversions): New.
26658         (vector_types_convertible_p): Add extra argument.
26659         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
26660         char_type_node for V*QI type vectors.
26661         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
26662         Update to satisfy new typechecking rules.
26663         * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
26664         C and C++ variants.
26665         * doc/invoke.texi (C Dialect Options): Document
26666         -flax-vector-conversions.
26667
26668 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
26669
26670         PR tree-optimization/29877
26671         * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
26672         a register variable on the RHS to not be replaceable.
26673
26674 2007-01-08  Chen Liqin  <liqin@sunnorth.com.cn>
26675         * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
26676         * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
26677         const_simm15, const_pow2, const_npow2): Added.
26678         * config/score/misc.md (insv, extv, extzv, movmemsi,
26679         move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
26680         * config/score/score.c (score_address_cost, score_select_cc_mode):
26681         Added.
26682         Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
26683         Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
26684         Update score_print_operand.
26685         * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
26686         Adjust register allocate order and update some macro define.
26687         * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
26688         mdx_block_move_straight, mdx_block_move_loop_head,
26689         mdx_block_move_loop_body, mdx_block_move_loop_foot,
26690         mdx_block_move_loop, mdx_block_move): Added.
26691         (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
26692         mdp_limm): Updated and fix some bug and typo.
26693         * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
26694         (movsf, movdf, doloop_end): Added.
26695
26696 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
26697
26698         * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
26699         config/arm/thumb2.md: Fix comment typos.
26700         * doc/extend.texi: Fix a typo.
26701
26702 2007-01-07  Eric Christopher  <echristo@apple.com>
26703
26704         * configure.ac: Check for __stack_chk_fail for darwin.
26705         * configure: Regenerate.
26706
26707 2007-01-07  Richard Guenther  <rguenther@suse.de>
26708
26709         * tree-vrp.c (extract_range_from_assert): CSE calls to
26710         compare_values where possible.
26711         (extract_range_from_unary_expr): Likewise.
26712
26713 2007-01-07  Anatoly Sokolov <aesok@post.ru>
26714
26715         * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
26716         * config/avr/avr.c (call_insn_operand): Delete function.
26717         * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
26718         instead of register number. Use predicates.
26719         * config/avr/predicates.md (const0_operand, reg_or_0_operand,
26720         call_insn_operand): Add.
26721
26722 2007-01-06  Jan Hubicka  <jh@suse.cz>
26723
26724         * tree-pass.h (pass_build_cgraph_edges): Declare.
26725         * cgraphunit.c (record_refernece): Move to cgraphbuild.c
26726         (visited_nodes): Remove.
26727         (cgraph_create_edges): Move to cgraphbuild.c; rename to
26728         build_cgrpah_edges; make visited_nodes local.
26729         (cgraph_process_new_functions): DO not call initialize_inline_failed.
26730         (record_references_in_initializer): Move to cgraphbuild.c
26731         (initialize_inline_failed, rebuild_cgraph_edges,
26732         pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
26733         (verify_cgraph_node): Make visited_nodes local.
26734         (cgraph_analyze_function): Do not call cgraph_create_edges and
26735         initialize_inline_failed.
26736         (cgraph_expand_function): Do not call cgraph_lower_function;
26737         assert that function is already lowered.
26738         * Makefile.in (cgraphbuild.o): New.
26739         * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
26740         at the end of lowering passes.
26741
26742 2007-01-06  Steven Bosscher  <steven@gcc.gnu.org>
26743
26744         * ifcvt.c (cond_move_convert_if_block): New function, code
26745         factored out from...
26746         (cond_move_process_if_block): ...here.  Call the new function
26747         on the THEN and ELSE blocks.
26748         (merge_if_block): Do not copy global_live_at_end, merge_blocks
26749         already takes care of this.
26750
26751 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
26752
26753         PR c/19978
26754         * tree.h (TREE_OVERFLOW_P): New.
26755         * c-typeck.c (parser_build_unary_op): Warn only if result
26756         overflowed and operands did not.
26757         (parser_build_binary_op): Likewise.
26758         (convert_for_assignment): Remove redundant overflow_warning.
26759         * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
26760
26761 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
26762
26763         * c-typeck.c (store_init_value): Split over two lines to follow
26764         the GNU coding style.
26765
26766 2007-01-05  Benjamin Kosnik  <bkoz@redhat.com>
26767
26768         * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
26769         __GXX_EXPERIMENTAL_CXX0X__.
26770         * doc/cpp.texi: Same.
26771
26772 2007-01-05  Richard Guenther  <rguenther@suse.de>
26773
26774         PR middle-end/27826
26775         * tree.c (get_narrower): Do not construct COMPONENT_REFs
26776         with mismatched types.  Instead explicitly build a
26777         conversion NOP_EXPR.
26778
26779 2007-01-05  Ian Lance Taylor  <iant@google.com>
26780
26781         * c-common.c (decl_with_nonnull_addr_p): New function.
26782         (c_common_truthvalue_conversion): Call it.
26783         * c-typeck.c (build_binary_op): Likewise.
26784         * c-common.h (decl_with_nonnull_addr_p): Declare.
26785
26786 2007-01-05  Jakub Jelinek  <jakub@redhat.com>
26787
26788         PR c/30360
26789         * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
26790         denom against 0.0.
26791
26792 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
26793
26794         * doc/install.texi (Final install): Document the fact that
26795         the GNAT runtime should not be stripped.
26796
26797 2007-01-04  Jan Hubicka  <jh@suse.cz>
26798
26799         * tree-inline.c (fold_marked_statements): Update operand caches
26800         and EH after folding
26801
26802 2007-01-04  Ian Lance Taylor  <iant@google.com>
26803
26804         * c-common.c (check_function_nonnull): Whitespace fix.
26805
26806 2007-01-04  Jan Hubicka  <jh@suse.cz>
26807
26808         * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
26809         comitted older version of patch.
26810         (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
26811         function, celanup cfg and collect garbage.
26812
26813 2007-01-04  Mike Stump  <mrs@apple.com>
26814
26815         * Makefile.in (mostlyclean): Don't remove libgcc anymore.
26816         (clean): Likewise.
26817
26818 2007-01-04  Eric Christopher  <echristo@apple.com>
26819
26820         * libgcc2.c (__bswapsi2): Use SItype.
26821         (__bswapdi2): Use DItype.
26822         * libgcc2.h: Update for above.
26823
26824 2007-01-04  Paul Brook  <paul@codesourcery.com>
26825
26826         * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
26827         mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
26828         mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
26829         umulsidi3, umulsidi3adddi, smulsi3_highpart,
26830         umulsi3_highpart): Make conditional on !arm_arch6.
26831         (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
26832         mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
26833         mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
26834         umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
26835         umulsi3_highpart_v6): New insns.
26836
26837 2007-01-04  Roger Sayle  <roger@eyesopen.com>
26838
26839         * fold-const.c (fold_convert): When casting an expression to void,
26840         fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
26841         have a type.  Instead of attempting to build a NOP_EXPR, return
26842         these "special" trees directly.
26843
26844 2007-01-04  Joseph Myers  <joseph@codesourcery.com>
26845
26846         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
26847         MULT inside MINUS as either argument.  Use rs6000_cost->dmul -
26848         rs6000_cost->fp not 0 as adjustment for outer NEG.
26849
26850 2007-01-04  Jan Hubicka  <jh@suse.cz>
26851
26852         * cgraph.c (cgraph_release_function_body): New function.
26853         (cgraph_remove_node): Use it.
26854         * cgraph.h (cgraph_release_function_body): Declare.
26855         * cgraphunit.c (cgraph_expand_function): Use it.
26856         * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
26857         * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
26858         is initialized and while compilation of other function is running.
26859         * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
26860         statement CFG annotations from here to ...
26861         * tree-cfg.c (delete_tree_cfg_annotations): ... here.
26862
26863 2007-01-04  Zdenek Dvorak <dvorakz@suse.cz>
26864
26865         * cfgloop.h (enum li_flags): Make the constants powers of two.
26866
26867 2007-01-04  Jan Hubicka  <jh@suse.cz>
26868
26869         * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
26870         set.
26871         (fold_marked_statements): New function.
26872         (optimize_inline_calls, tree_function_versioning): Fold new statements.
26873         * tree-inline.h (copy_body_data): Add statements_to_fold.
26874
26875 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
26876
26877         * config.gcc: Mention libgcc/config.host.
26878         * Makefile.in: Update comments mentioning libgcc.
26879         (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
26880         (all.cross, start.encap, rest.encap, rest.cross): Update
26881         dependencies for libgcc move.
26882         (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
26883         (clean-target, clean-target-libgcc): Delete.
26884         (srcdirify, GCC_EXTRA_PARTS): New macros.
26885         (libgcc-support, libgcc.mvars): New rules.
26886         (distclean): Remove mention of mklibgcc.
26887         (install): Don't reference INSTALL_LIBGCC.
26888         (install-common): Don't reference EXTRA_PARTS.
26889         (install-libgcc, install-multilib): Delete rules.
26890         * mklibgcc.in: Delete file.
26891         * doc/configfiles.texi: Don't mention mklibgcc.
26892
26893         * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
26894         * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
26895         * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
26896         * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
26897         (mklibgcc, ldblspecs): Likewise.
26898
26899         * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
26900         (posixpre.def): Use $(T).
26901         (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
26902         (SHLIB_SRC, SHLIB_INSTALL): Delete.
26903         (SHLIB_LINK): Make dummy.
26904         * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
26905
26906         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
26907
26908         * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
26909         * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
26910         config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
26911         config/rs6000/t-newas, config/sparc/t-elf: Likewise.
26912
26913         * configure.ac (all_outputs): Remove mklibgcc.
26914         * configure: Regenerated.
26915
26916 2007-01-03  Josh Conner  <jconner@apple.com>
26917
26918         PR middle-end/29683
26919         * calls.c (compute_argument_addresses): Set stack and stack_slot
26920         for partial args, too.
26921         (store_one_arg): Use locate.size.constant for the size when
26922         generating a save_area.
26923
26924 2007-01-03  Robert Kennedy <jimbob@google.com>
26925
26926         * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
26927         whose definitions are deleted due to basic block merging.
26928
26929 2007-01-03  Paul Brook  <paul@codesourcery.com>
26930
26931         PR target/16634
26932         * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
26933         functions.
26934         (use_return_insn): Return 0 for Thumb interrupt functions.
26935         (print_multi_reg): Add rfe argument for IRQ returns.
26936         (arm_output_epilogue): Pop interrupt return address directly into PC.
26937         (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
26938
26939 2007-01-03  Paul Brook  <paul@codesourcery.com>
26940
26941         Merge from sourcerygxx-4_1.
26942         * config/arm/thumb2.md: New file.
26943         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
26944         Thumb-2.
26945         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
26946         * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
26947         (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
26948         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
26949         tables.
26950         (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
26951         * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
26952         comptibility.
26953         * config/arm/ieee754-sf.S: Ditto.
26954         * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
26955         (thumb1_base_register_rtx_p): ... to this.
26956         (thumb_index_register_rtx_p): Rename...
26957         (thumb1_index_register_rtx_p): ... to this.
26958         (thumb_output_function_prologue): Rename...
26959         (thumb1_output_function_prologue): ... to this.
26960         (thumb_legitimate_address_p): Rename...
26961         (thumb1_legitimate_address_p): ... to this.
26962         (thumb_rtx_costs): Rename...
26963         (thumb1_rtx_costs): ... to this.
26964         (thumb_compute_save_reg_mask): Rename...
26965         (thumb1_compute_save_reg_mask): ... to this.
26966         (thumb_final_prescan_insn): Rename...
26967         (thumb1_final_prescan_insn): ... to this.
26968         (thumb_expand_epilogue): Rename...
26969         (thumb1_expand_epilogue): ... to this.
26970         (arm_unwind_emit_stm): Rename...
26971         (arm_unwind_emit_sequence): ... to this.
26972         (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
26973         thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
26974         thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
26975         arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
26976         thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
26977         thumb2_output_casesi): New functions.
26978         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
26979         (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
26980         FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
26981         THUMB2_WORK_REGS): Define.
26982         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
26983         arm_condexec_mask, arm_condexec_masklen)): New variables.
26984         (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
26985         (arm_override_options): Check new CPU capabilities.
26986         Set new architecture flag variables.
26987         (arm_isr_value): Handle v7m interrupt functions.
26988         (user_return_insn): Return 0 for v7m interrupt functions.  Handle
26989         Thumb-2.
26990         (const_ok_for_arm): Handle Thumb-2 constants.
26991         (arm_gen_constant): Ditto.  Use movw when available.
26992         (arm_function_ok_for_sibcall): Return false for v7m interrupt
26993         functions.
26994         (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
26995         (thumb_find_work_register, arm_load_pic_register,
26996         legitimize_tls_address, arm_address_cost, load_multiple_sequence,
26997         emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
26998         print_multi_reg, output_mov_long_double_fpa_from_arm,
26999         output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
27000         output_mov_double_fpa_from_arm, output_move_double,
27001         arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
27002         output_return_instruction, arm_output_function_prologue,
27003         arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
27004         arm_output_mi_thunk, thumb_set_return_address): Ditto.
27005         (arm_expand_prologue): Handle Thumb-2.  Use arm_save_coproc_regs.
27006         (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
27007         (arithmetic_instr, shift_op): Use arm_shift_nmem.
27008         (arm_print_operand): Use arm_print_condition.  Handle '(', ')', '.',
27009         '!' and 'L'.
27010         (arm_final_prescan_insn): Use extract_constrain_insn_cached.
27011         (thumb_expand_prologue): Use thumb_set_frame_pointer.
27012         (arm_file_start): Output directive for unified syntax.
27013         (arm_unwind_emit_set): Handle stack alignment instruction.
27014         * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
27015         Add v6t2, v7, v7a, v7r and v7m.
27016         (RETLDM): Add Thumb-2 code.
27017         (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
27018         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
27019         (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
27020         TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
27021         THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
27022         ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
27023         THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
27024         CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
27025         ADJUST_INSN_LENGTH): Define.
27026         (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
27027         STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
27028         BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
27029         PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
27030         SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
27031         TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
27032         HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
27033         HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
27034         REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
27035         REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
27036         LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
27037         GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
27038         ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
27039         FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
27040         PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
27041         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
27042         * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
27043         cortex-m3.
27044         * config/arm/arm-tune.md: Regenerate.
27045         * config/arm/arm-protos.h: Update prototypes.
27046         * config/arm/vfp.md: Enable patterns for Thumb-2.
27047         (arm_movsi_vfp): Add movw alternative.  Use output_move_vfp.
27048         (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
27049         (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
27050         thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
27051         * config/arm/libunwind.S: Add Thumb-2 code.
27052         * config/arm/constraints.md: Update include Thumb-2.
27053         * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
27054         * config/arm/ieee754-df.S: Ditto.
27055         * config/arm/bpabi.S: Ditto.
27056         * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
27057         * config/arm/predicates.md (low_register_operand,
27058         low_reg_or_int_operand, thumb_16bit_operator): New.
27059         (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
27060         (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
27061         * config/arm/t-arm-elf: Add armv7 multilib.
27062         * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
27063         Include thumb2.md.
27064         (UNSPEC_STACK_ALIGN, ce_count): New.
27065         (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
27066         arm_zero_extendsidi2, arm_zero_extendqidi2): New
27067         insns/expanders.
27068         * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
27069         (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
27070         thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
27071         * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
27072         (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
27073         thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
27074         insns.
27075         * doc/extend.texi: Document ARMv7-M interrupt functions.
27076         * doc/invoke.texi: Document Thumb-2 new cores+architectures.
27077
27078 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
27079
27080         * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
27081         (struct _Unwind_Context): Rename args_size to flags, remove
27082         signal_frame field, add a new args_size field and version field.
27083         (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
27084         _Unwind_IsExtendedContext): New inline functions.
27085         (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
27086         Assume by_value array is only present if _Unwind_IsExtendedContext.
27087         (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
27088         _Unwind_IsSignalFrame.
27089         (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
27090         (uw_update_context_1): Use _Unwind_SetSignalFrame.
27091         (uw_init_context_1): Initialize context->flags to
27092         EXTENDED_CONTEXT_BIT.
27093         * config/rs6000/linux-unwind.h (frob_update_context): Use
27094         _Unwind_SetSignalFrame.
27095
27096 2007-01-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
27097
27098         PR middle-end/30353
27099         * gimplify.c (gimplify_modify_expr_complex_part): Move below
27100         tree_to_gimple_tuple.  Call tree_to_gimple_tuple when we need
27101         the value.
27102
27103 2007-01-03  Kazu Hirata  <kazu@codesourcery.com>
27104
27105         * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
27106         REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
27107         RET, AT_SP): Remove.
27108         * config/i386/i386.md (*sse_prologue_save_insn): Use return
27109         instead of RET.
27110
27111         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
27112         * cfgbuild.c (find_basic_blocks): Likewise.
27113         * cfgrtl.c (rtl_create_basic_block): Likewise.
27114         * function.c (temp_slots_at_level): Likewise.
27115         * reg-stack.c (stack_regs_mentioned): Likewise.
27116         * regclass.c (allocate_reg_info): Likewise.
27117         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
27118         set_bb_for_stmt, move_block_to_fn): Likewise.
27119         * tree-complex.c (tree_lower_complex): Likewise.
27120         * vec.h (VEC_safe_grow_cleared): New.
27121
27122         * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
27123
27124 2007-01-03  Zdenek Dvorak <dvorakz@suse.cz>
27125
27126         * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
27127         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
27128         to loop_version.
27129         * cfgloopmanip.c (scale_loop_frequencies): Export.
27130         (loopify): Scale the frequencies by prescribed coefficients.
27131         (set_zero_probability): New function.
27132         (duplicate_loop_to_header_edge): Improve updating of frequencies.
27133         (lv_adjust_loop_entry_edge, loop_version): Set probabilities
27134         and frequencies according to arguments.
27135         * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
27136         correctly.
27137         * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
27138         * modulo-sched.c (sms_schedule): Set probabilities for entering
27139         versioned loop correctly.
27140         * tree-vect-transform.c (vect_transform_loop): Ditto.
27141         * cfgloop.h (loopify, loop_version): Declaration changed.
27142         (scale_loop_frequencies): Declared.
27143
27144 2007-01-02  Jan Hubicka  <jh@suse.cz>
27145
27146         * cgraph.c: Include tree-flow.h
27147         (cgraph_add_new-function): Handle IPA_SSA mode; execute
27148         early_local_passes.
27149         * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
27150         * tree-pass.h (pass_all_early_optimizations): Declare.
27151         * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
27152         early_local_passes.
27153         (cgraph_analyze_function): Do early_local_passes.
27154         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
27155         Do not add referenced vars.
27156         * tree-optimize.c (gate_all_optimizations): Do not execute when not in
27157         SSA form.
27158         (gate_all_early_local_passes): New gate.
27159         (pass_early_local_passes): Use new gate.
27160         (execute_early_local_optimizations): New functions.
27161         (gate_all_early_optimizations): New gate.
27162         (pass_all_early_optimizations): New pass.
27163         (execute_free_datastructures): Free SSA only when initialized.
27164         (gate_init_datastructures): Init only when optimizing.
27165         (tree_lowering_passes): Do early local passes when called late.
27166         * tree-profile.c (do_tree_profiling): Don't profile functions added
27167         late.
27168         (do_early_tree_profiling, pass_early_tree_profile): Kill.
27169         * tree-cfg.c (update_modified_stmts): Do not update when operands are
27170         not active.
27171         * passes.c (init_optimizations_passes): Reorder so we go into SSA
27172         during early_local_passes.
27173         * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
27174
27175
27176 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
27177
27178         * Makefile.in: Update copyright year.
27179
27180 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
27181
27182         * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
27183         in $(lang_checks) and check-consistency targets.
27184
27185 2007-01-02  Jan Hubicka  <jh@suse.cz>
27186
27187         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
27188         Do not add referenced vars.
27189         * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
27190         are not active.
27191         * passes.c (init_optimization_passes): Put mudflap_2 after
27192         free_datastructures.
27193
27194 2007-01-02  Jan Hubicka  <jh@suse.cz>
27195
27196         * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
27197         Set NOTHROW flag on call statements proved to be nothrow.
27198         Update statement of local calls so new pure/const functions are
27199         updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
27200         goto receivers.
27201         (tree_rest_of_compilation): Register hooks and initialize bitmap
27202         early. Do not set after_inlining flag.
27203
27204 2007-01-02  Steve Ellcey  <sje@cup.hp.com>
27205
27206         * sbitmap.c (HOST_BITS_PER_LONG_LONG): Change to
27207         HOST_BITS_PER_LONGLONG
27208
27209 2007-01-02  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
27210
27211         PR c/19977
27212         * c-typeck.c (store_init_value): Don't emit pedantic overflow
27213         warning for non-static initializers.
27214
27215 2007-01-02  Steven Bosscher  <steven@gcc.gnu.org>
27216
27217         * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
27218         m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
27219         rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
27220         Always use set_unique_reg_note to add REG_EQUAL notes.
27221
27222 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
27223
27224         Revert:
27225         2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
27226
27227         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
27228         * cfgbuild.c (find_basic_blocks): Likewise.
27229         * cfgrtl.c (rtl_create_basic_block): Likewise.
27230         * function.c (temp_slots_at_level): Likewise.
27231         * reg-stack.c (stack_regs_mentioned): Likewise.
27232         * regclass.c (allocate_reg_info): Likewise.
27233         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
27234         set_bb_for_stmt, move_block_to_fn): Likewise.
27235         * tree-complex.c (tree_lower_complex): Likewise.
27236         * vec.h (VEC_safe_grow_cleared): New.
27237
27238 2007-01-02  Ian Lance Taylor  <iant@google.com>
27239
27240         * c-common.c (c_common_truthvalue_conversion): When warning about
27241         using an assignment as a truth value, set TREE_NO_WARNING.
27242
27243 2007-01-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
27244
27245         PR middle-end/7651
27246         * c.opt (Wold-style-declaration): New.
27247         * doc/invoke.texi (C-only Warning Options): New.
27248         (Wold-style-declaration): Document it.
27249         (Wextra): Enabled by -Wextra.
27250         * c-opts.c (c_common_post_options): Enabled by -Wextra.
27251         * c-decl.c (declspecs_add_scspec): Replace -Wextra with
27252         -Wold-style-declaration.
27253
27254 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
27255
27256         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
27257         * cfgbuild.c (find_basic_blocks): Likewise.
27258         * cfgrtl.c (rtl_create_basic_block): Likewise.
27259         * function.c (temp_slots_at_level): Likewise.
27260         * reg-stack.c (stack_regs_mentioned): Likewise.
27261         * regclass.c (allocate_reg_info): Likewise.
27262         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
27263         set_bb_for_stmt, move_block_to_fn): Likewise.
27264         * tree-complex.c (tree_lower_complex): Likewise.
27265         * vec.h (VEC_safe_grow_cleared): New.
27266
27267 2007-01-02  Douglas Gregor  <doug.gregor@gmail.com>
27268
27269         * c-common.c (c_common_nodes_and_builtins): Since variants of
27270         void_type_node get built before it is given a name, we need to
27271         give those variants the name, too.
27272         (complete_array_type): We need to work with the canonical main
27273         type of the array, from which we will build the qualified version.
27274         * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
27275         * print-tree.c (print_node): Display canonical type information
27276         for each type.
27277         * stor-layout.c (layout_type): When we don't know the
27278         alignment of a type for which we're building an array, we end up
27279         guessing wrong, so make the type require structural equality.
27280         * tree.c (make_node_stat): When we build a new type, it is its
27281         own canonical type.
27282         (build_type_attribute_qual_variant): When building an attribute
27283         variant, its canonical type is the non-attribute variant. However,
27284         if the attributes are target-dependent and they differ, we need to
27285         use structural equality checks for this type.
27286         (build_qualified_type): A qualified type is not equivalent to its
27287         unqualified variant; set the canonical type appropriately.
27288         (build_distinct_type_copy): When building a distinct type from
27289         another type, the new type is its own canonical type.
27290         (build_variant_type_copy): When building a new type variant, we
27291         assume that it is equivalent to the original type.
27292         (build_pointer_type_for_mode): When building a pointer type, also
27293         build a canonical type pointer.
27294         (build_reference_type_for_mode): When building a reference type,
27295         also build a canonical type reference.
27296         (build_index_type): When we can't hash an index type (e.g.,
27297         because its maximum value is negative), the index type requires
27298         structural equality tests.
27299         (build_array_type): Build the canonical form of an array type.
27300         (build_function_type): Function types require structural equality,
27301         because they contain default arguments, attributes, etc.
27302         (build_method_type_directly): Ditto for method types.
27303         (build_offset_type): Build the canonical offset type.
27304         (build_complex_type): Build the canonical vector type.
27305         (make_vector_type): Build the canonical vector type.
27306         * tree.h (TYPE_CANONICAL): New.
27307         (TYPE_STRUCTURAL_EQUALITY_P): New.
27308         (SET_TYPE_STRUCTURAL_EQUALITY): New.
27309         (struct tree_type): Added "canonical" field.
27310         * params.h (VERIFY_CANONICAL_TYPES): New.
27311         * doc/c-tree.texi (TYPE_CANONICAL): Document.
27312         (TYPE_STRUCTURAL_EQUALITY_P): Document.
27313         (SET_TYPE_STRUCTURAL_EQUALITY): Document.
27314         * doc/invoke.texi (verify-canonical-types): Document --param
27315         parameter for verifying canonical types.
27316
27317 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
27318
27319         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
27320         powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
27321         powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
27322         powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
27323         tm_file.
27324         * config/rs6000/e500.h: New.
27325         * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
27326         TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
27327         Remove.
27328         * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
27329         TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
27330         TARGET_E500_DOUBLE): Remove.
27331         * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
27332         TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
27333         * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
27334         * config/rs6000/rs6000.c (rs6000_override_options): Use
27335         CHECK_E500_OPTIONS.
27336
27337 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
27338
27339         * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
27340         TARGET_E500_DOUBLE), not TARGET_E500, for %y.
27341         (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
27342         rs6000_emit_cmove): Don't check TARGET_E500.
27343         * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
27344         sordered): Don't check TARGET_E500.
27345
27346 2007-01-01  Eric Christopher  <echristo@apple.com>
27347
27348         * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
27349         HARD_REGISTER_NUM_P.
27350
27351 2007-01-01  Roger Sayle  <roger@eyesopen.com>
27352
27353         * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
27354         "X eq/ne (C1^C2)".  Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
27355         has no side-effects.  Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
27356         eq/ne Y".
27357
27358 2007-01-01  Mike Stump  <mrs@apple.com>
27359
27360         * configure.ac: Remove support for building with Apple's gcc-3.1.
27361
27362 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
27363
27364         PR middle-end/30311
27365         * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
27366         REG is a hard register.  Do not modify REG before calling
27367         subreg_nregs.
27368         * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
27369         multiple of the size of YMODE for certain lowpart cases.
27370
27371 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
27372
27373         PR middle-end/30253
27374         * gimplify (voidify_wrapper_expr): Update for
27375         GIMPLE_MODIFY_STMT.
27376
27377 2007-01-01  Andreas Schwab  <schwab@suse.de>
27378
27379         PR target/29166
27380         * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
27381         save of BR0 in extra_spill_size instead of spill_size.
27382         (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
27383         area.
27384         (ia64_expand_epilogue): Restore BR0 from its new location.
27385
27386 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
27387
27388         * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
27389         Use a temporary variable if the left hand side is not a gimple
27390         register.
27391
27392 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
27393
27394         * gimplify.c (gimplify_return_expr): Make the temporary variable
27395         for the return expression, a gimple register variable.
27396
27397 2007-01-01  Jan Hubicka  <jh@suse.cz>
27398
27399         * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
27400         INSN_LIST.
27401
27402 2007-01-01  Mike Stump  <mrs@apple.com>
27403
27404         * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
27405         .literal16.
27406         * config/darwin.c (machopic_select_rtx_section): Use
27407         HAVE_GAS_LITERAL16.
27408         (darwin_mergeable_constant_section): Likewise.
27409         * configure: Regenerate.
27410         * config.in: Regenerate.
27411
27412 2007-01-01  Jan Hubicka  <jh@suse.cz>
27413             Andrew Pinski  <pinskia@gmail.com>
27414
27415         * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
27416         before starting IPA passes.