mips.h (CONSTANT_POOL_COST): Move to...
[gcc.git] / gcc / ChangeLog
1 2007-09-11 Richard Sandiford <richard@codesourcery.com>
2 Nigel Stephens <nigel@mips.com>
3 David Ung <davidu@mips.com>
4
5 * config/mips/mips.h (CONSTANT_POOL_COST): Move to...
6 * config/mips/mips.c: ...here and set to 4 for TARGET_MIPS16.
7 (mips16_constant_cost, mips_immediate_operand_p, mips_binary_cost)
8 (mips_fp_mult_cost, mips_fp_div_cost, mips_sign_extend_cost)
9 (mips_zero_extend_cost): New functions.
10 (mips_rtx_costs): Treat COMPARE constants as having zero cost.
11 Use the new functions. Tweak many cost estimates, both here
12 and in the new subroutines. Return false when the cost of the
13 operands has not been calculated. Check for *clear_upper32.
14 Check for floating-point multiply-add, reciprocal and rsqrt
15 patterns. Handle comparison and rotation codes.
16
17 2007-09-11 Danny Smith <dannysmith@users.sourceforge.net>
18
19 * config/i386/cygming.h (TARGET_STRIP_NAME_ENCODING): Don't
20 override default.
21 * config/i386/i386.c (get_dllimport_decl): Don't strip
22 FASTCALL_PREFIX.
23
24 2007-09-10 Janis Johnson <janis187@us.ibm.com>
25
26 PR c/30013
27 * config/dfp-bit.c: Don't skip TFmode conversions; move strto*
28 declarations to top.
29 (DFP_TO_BFP): Use for either XFmode or TFmode.
30 (BFP_TO_DFP): Use for either XFmode or TFmode; always use cast
31 of BFP_VIA_TYPE.
32 * config/dfp-bit.h: Include float.h.
33 (LONG_DOUBLE_HAS_XF_MODE, LONG_DOUBLE_HAS_TF_MODE): Define if long
34 double is one of these modes, rather than using LIBGCC_HAS_*F_MODE
35 which doesn't mean the same thing.
36 (BFP_KIND): Use 4 to mean TFmode.
37 (BFP_FMT): Specify the number of decimal digits based on the
38 number of mantissa digits.
39 (BFP_VIA_TYPE): Binary float type to use as cast for sprintf.
40 (BFP_TO_DFP, DFP_TO_BFP): Define names for TFmode variants.
41 (STR_TO_BFP): Use strtold for XFmode or TFmode.
42 (TFtype): Define if TFmode is supported.
43 * doc/libgcc.texi (Decimal float library routines): Document
44 TF conversion functions.
45
46 2007-09-10 Chao-ying Fu <fu@mips.com>
47
48 * config/mips/mips.c (mips_scalar_mode_supported_p): Declare.
49 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
50 (mips_emit_compare): Process fixed-point modes.
51 (mips_pad_arg_upward): Support fixed-point types.
52 (override_options): Allow fixed-point modes in accumulators.
53 (mips_pass_by_reference): Pass DQ, UDQ, DA, and UDA modes in registers.
54 (mips_vector_mode_supported_p): Support V2HQmode, V2UHQmode, V2HAmode,
55 V2UHAmode, V4QQmode, and V4UQQmode when TARGET_DSP.
56 (mips_scalar_mode_supported_p): New function to accept fixed-point
57 modes if the width is not greater than two BITS_PER_WORD.
58 * config/mips/mips.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE,
59 LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
60 SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
61 LONG_LONG_ACCUM_TYPE_SIZE): Define.
62 * config/mips/mips.md ("d"): Update mode attribute for fixed-point
63 modes.
64 ("IMODE"): New mode attribute.
65 (mips-fixed.md): Include.
66 * config/mips/mips-modes.def: Create VECTOR_MODES for FRACT, UFRACT,
67 ACCUM, UACCUM.
68 * config/mips/mips-fixed.md: New file.
69
70 2007-09-11 Ben Elliston <bje@au.ibm.com>
71
72 * config/spu/spu.md: Formatting fixes.
73
74 2007-09-10 Janis Johnson <janis187@us.ibm.com>
75
76 * config/dfp-bit.c (dfp_unary_func): Delete.
77 (dfp_unary_op): Delete.
78 (dfp_binary_op): Use decFloat functions instead of decNumber
79 functions for binary operations.
80 (d32_binary_op): Convert 32-bit operands to 64 bits for evaluation.
81 (dnn_binary_op): Call dfp_binary_op with decFloat rather than
82 DFP_C_TYPE.
83 (dfp_compare_op): Use decFloat functions insteadof decNumber
84 functions for comparisons.
85 (d32_compare_op): Convert 32-bit operands to 64 bits for evaluation.
86 (dnn_binary_op): Call dfp_compare_op with decFloat rather than
87 DFP_C_TYPE.
88 (DFP_ADD, DFP_SUB, DFP_MULTIPLE, DFP_DIVIDE): Use macros for
89 call to dxx_binary_op and decFloat function.
90 (DFP_EQ, DFP_NE, DFP_LT, DFP_GT, DFP_LE, DFP_GE): Use macros for
91 calls to dxx_binary_op and decFloat function.
92 * config/dfp-bit.h: Include decFloat header files.
93 (decFloat, DFP_BINARY_OP, DFP_COMPARE_OP, DEC_FLOAT_ADD,
94 DEC_FLOAT_SUBTRACT, DEC_FLOAT_MULTIPLY, DEC_FLOAT_DIVIDE,
95 DEC_FLOAT_COMPARE, DEC_FLOAT_IS_ZERO, DEC_FLOAT_IS_NAN,
96 DEC_FLOAT_IS_SIGNED: Define for each of 3 operand widths.
97
98 2007-09-10 Harsha Jagasia <harsha.jagasia@amd.com>
99 Jan Sjodin <jan.sjodin@amd.com>
100
101 * tree-vect-analyze.c (vect_analyze_operations): Change
102 comparison of loop iterations with threshold to less than
103 or equal to instead of less than. Reduce
104 min_scalar_loop_bound by one.
105 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
106 Change prologue and epilogue iterations estimate to vf/2,
107 when unknown at compile-time. Change versioning guard
108 cost to taken_branch_cost. If peeling for alignment is
109 unknown at compile-time, change peel guard costs to one
110 taken branch and one not-taken branch per peeled loop.
111 If peeling for alignment is known but number of scalar loop
112 iterations is unknown at compile-time, change peel guard
113 costs to one taken branch per peeled loop. Change the cost
114 model equation to consider vector iterations as the loop
115 iterations less the prologue and epilogue iterations.
116 Change outside vector cost check to less than or equal to
117 zero instead of equal to zero.
118 (vect_do_peeling_for_loop_bound): Reduce
119 min_scalar_loop_bound by one.
120 * tree-vectorizer.h: Add TARG_COND_TAKEN_BRANCH_COST and
121 TARG_COND_NOT_TAKEN_BRANCH_COST.
122 * config/i386/i386.h (processor_costs): Add
123 scalar_stmt_cost, scalar_load_cost, scalar_store_cost,
124 vec_stmt_cost, vec_to_scalar_cost, scalar_to_vec_cost,
125 vec_align_load_cost, vect_unalign_load_cost,
126 vec_store_cost, cond_taken_branch_cost,
127 cond_not_taken_branch_cost.
128 Define macros for x86 costs.
129 * config/i386/i386.c:
130 (size_cost): Set scalar_stmt_cost, scalar_load_cost,
131 scalar_store_cost, vec_stmt_cost, vec_to_scalar_cost,
132 scalar_to_vec_cost, vec_align_load_cost,
133 vect_unalign_load_cost, vec_store_cost,
134 cond_taken_branch_cost, cond_not_taken_branch_cost to one.
135 (i386_cost, i486_cost, pentium_cost, pentiumpro_cost,
136 geode_cost, k6_cost, athlon_cost, pentium4_cost, nocona_cost,
137 core2_cost, generic64_cost, generic32_cost): Set to default
138 untuned costs.
139 (k8_cost, amdfam10_cost): Costs for vectorization tuned.
140 (x86_builtin_vectorization_cost): New.
141
142 2007-09-10 Janis Johnson <janis187@us.ibm.com>
143 Ben Elliston <bje@au.ibm.com>
144
145 * dfp.c: Include decimal128Local.h;
146 (dfp_byte_swap): Remove.
147 (encode_decimal32, decode_decimal32): Don't handle endianness.
148 (encode_decimal64, decode_decimal64): Ditto.
149 (encode_decimal128, decode_decimal128): Ditto.
150 * config/dfp-bit.c (host_to_ieee32, ieee_to_host_32): Ditto.
151 (__swap64): Remove.
152 (host_to_ieee_64, ieee_to_host_64): Don't handle endianness.
153 (__swap128): Remove
154 (host_to_ieee_128, ieee_to_host_128): Don't handle endianness.
155 * Makefile.in (DECNUM_H): Add decimal128Local.h.
156
157 2007-09-10 David Daney <ddaney@avtrex.com>
158
159 * config/mips/mips.md (UNSPEC_MEMORY_BARRIER): New entry in
160 define_constants.
161 (memory_barrier): Rewrote as an insn that clobbers memory.
162
163 2007-09-10 Richard Sandiford <richard@codesourcery.com>
164
165 * config/mips/mips.c (mips_global_pointer): Check
166 call_really_used_regs instead of call_used_regs.
167 (mips_save_reg_p): Likewise. Save all call-saved registers
168 if current_function_saves_all_registers. Fix indentation.
169 No longer treat $18 as a special case.
170 (compute_frame_size): Guard FPR loop with TARGET_HARD_FLOAT.
171
172 2007-09-10 Richard Sandiford <richard@codesourcery.com>
173
174 * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): New macro.
175 * config/mips/mips.c (mips_cpu_info_table): Mention it in the
176 the introductory comment.
177 (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Delete.
178 (override_options): Don't test for it.
179 * config/mips/sde.h (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Delete.
180 (DRIVER_SELF_SPECS): Add MIPS_ARCH_FLOAT_SPEC.
181 * config/mips/vr.h: As for config/mips/sde.h.
182
183 2007-09-10 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
184 Revital Eres <eres@il.ibm.com>
185
186 * target.h (struct gcc_target.sched): New field: sms_res_mii.
187 (struct ddg): Define.
188 * target-def.h (TARGET_SCHED_SMS_RES_MII): Define.
189 (TARGET_SCHED): Add TARGET_SCHED_SMS_RES_MII.
190 * config/spu/spu.c: Include ddg.h.
191 (TARGET_SCHED_SMS_RES_MII): Define.
192 (spu_sms_res_mii): New function to calculate mii.
193 * modulo-sched (res_MII): Use it.
194 * doc/tm.texi: Document TARGET_SCHED_SMS_RES_MII.
195
196 2007-09-10 Andreas Krebbel <krebbel1@de.ibm.com>
197
198 * config/s390/s390.c (s390_dump_pool): Create copy of constant
199 pool entries since they might hold values that must not be shared.
200
201 2007-09-10 Uros Bizjak <ubizjak@gmail.com>
202
203 PR target/33369
204 * gcc/config/i386/sse.md (ashr<mode>3): Change op2 mode to SImode.
205 Use 'N' operand constraint for op2.
206 (lshr<mode>3): Ditto.
207 (ashl<mode>3): Ditto.
208 (vec_shl_<mode>): Use const_0_to_255_mul_8_operand predicate for op2.
209 (vec_shr_<mode>): Use const_0_to_255_mul_8_operand predicate for op2.
210
211 * gcc/config/i386/i386.c (ix86_expand_builtin) [IX86_BUILTIN_PSLL?128,
212 IX86_BUILTIN_PSRA*?128, IX86_BUILTIN_PSRL?128]: Convert op1 to SImode.
213
214 2007-09-10 Andreas Krebbel <krebbel1@de.ibm.com>
215
216 * config/s390/s390.md ("fixuns_trunc<BFP:mode><GPR:mode>2"):
217 Change mode macro in the last real_2expN parameter to uppercase.
218
219 2007-09-10 Michael Matz <matz@suse.de>
220
221 * tree-pass.h (pass_cselim): Declare new pass.
222 * passes.c (init_optimization_passes): Link in pass_cselim.
223 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Renamed from
224 tree_ssa_phiopt; add do_store_elim parameter, handle it by calling
225 cond_store_replacement.
226 (condstoretemp): New static variable.
227 (cond_store_replacement): New function.
228 (tree_ssa_phiopt, tree_ssa_cs_elim): New wrappers around
229 tree_ssa_phiopt_worker.
230 (struct name_to_bb): New.
231 (get_non_trapping, name_to_bb_hash, name_to_bb_eq, add_or_mark_expr,
232 nt_init_block, nt_fini_block): New static functions.
233 (seen_ssa_names, nontrap_set): New static variables.
234 (gate_cselim, pass_cselim): Define new pass.
235 * common.opt (ftree-cselim): New flag.
236 * toplev.c (process_options): Set flag_tree_cselim if required.
237
238 2007-09-10 Hans-Peter Nilsson <hp@axis.com>
239
240 * simplify-rtx.c (simplify_relational_operation_1): For recent
241 canonicalization, don't recurse if op1 equals both PLUS arguments.
242
243 2007-09-09 David Daney <ddaney@avtrex.com>
244
245 * optabs.c (expand_sync_operation): Use plus insn if minus
246 CONST_INT_P(val).
247 (expand_sync_fetch_operation): Ditto.
248
249 2007-09-09 H.J. Lu <hongjiu.lu@intel.com>
250
251 * i386.md (*floatsisf2_mixed_vector): Use cvtdq2ps instead
252 of cvtpq2ps.
253 (*floatsisf2_sse_vector): Likewise.
254
255 2007-09-09 Krister Walfridsson <cato@df.lth.se>
256
257 * config/netbsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
258
259 2007-09-09 H.J. Lu <hongjiu.lu@intel.com>
260
261 * config/i386/i386.h (ix86_tune_indices): Rename
262 X86_USE_VECTOR_CONVERTS to X86_TUNE_USE_VECTOR_CONVERTS.
263 (TARGET_USE_VECTOR_CONVERTS): Updated.
264 * config/i386/i386.c: Likewise.
265
266 2007-09-09 Sandra Loosemore <sandra@codesourcery.com>
267 Nigel Stephens <nigel@mips.com>
268
269 * doc/invoke.texi (Overall Options): Add .sx file extension
270 as a synonym for .S.
271 * cppspec.c (known_suffixes): Likewise.
272 * gcc.c (default_compilers): Likewise.
273
274 2007-09-09 Rask Ingemann Lambertsen <rask@sygehus.dk>
275
276 PR target/30315
277 * config/i386/i386.h (CANONICALIZE_COMPARISON): Delete.
278 * simplify-rtx.c (simplify_relational_operation_1): Add the
279 canonicalization from i386.h.
280 * doc/md.texi (Canonicalization of Instructions): Document it.
281
282 2007-09-09 Jan Hubicka <jh@suse.cz>
283 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
284
285 * i386.h (ix86_tune_indices): Add X86_USE_VECTOR_CONVERTS.
286 (TARGET_USE_VECTOR_CONVERTS): New.
287 * i386.md: New post-reload splitters for converting SF to DF and DF to
288 SF.
289 (floatsi* expander): Special case vector conversions.
290 (floatsisf2_mixed_vector, floatsisf2_sse_vector_nointernunit,
291 floatsisf2_sse_vector_internunit, floatsisf2_sse_vector,
292 floatsidf2_mixed_vector, floatsidf2_sse_vector): New.
293 (floatsisf2_mixed, floatsisf2_sse, floatsidf2_mixed, floatsidf2_sse):
294 Disable when doing vector converts.
295 (floatsi<mode>2_i387): Disable when
296 * sse.md (vec_dupv2df): Export.
297 * i386.c (ix86_tune_features): Enable SSE conversions.
298
299 2007-09-09 Richard Guenther <rguenther@suse.de>
300
301 * tree-ssa-operands.c (add_virtual_operand): Only mark
302 stores as has_volatile_ops if alias information is not available.
303
304 2007-09-09 Revital Eres <eres@il.ibm.com>
305
306 * doc/contrib.texi: Add myself.
307
308 2007-09-09 Ira Rosen <irar@il.ibm.com>
309
310 * tree-vectorizer.h (stmt_vinfo_set_inside_of_loop_cost,
311 stmt_vinfo_set_outside_of_loop_cost): New functions.
312 * tree-vect-transform.c (vect_get_cost_fields): Remove.
313 (vect_model_simple_cost): Call
314 stmt_vinfo_set_inside/outside_of_loop_cost to set the relevant cost
315 field instead of calling vect_get_cost_fields.
316 (vect_model_store_cost, vect_model_load_cost): Likewise.
317
318 2007-09-09 Revital Eres <eres@il.ibm.com>
319
320 * config/rs6000/rs6000.c (paired_init_builtins): Add const
321 declaration to bdesc_paired_preds variable.
322 (paired_expand_builtin): Likewise.
323
324 2007-09-09 Revital Eres <eres@il.ibm.com>
325
326 * dbgcnt.def (sms_sched_loop): New counter.
327 * modulo-sched.c: Use sms_sched_loop instead of
328 MAX_SMS_LOOP_NUMBER to determine the maximum number of loops to
329 perform swing modulo scheduling on. Include dbgcnt.h.
330 * Makefile.in: Add DBGCNT_H to modulo-sched.o.
331 * params.def: Remove PARAM_MAX_SMS_LOOP_NUMBER.
332
333 2007-09-09 Uros Bizjak <ubizjak@gmail.com>
334
335 * config/i386/i386.md (X87MODEF12, SSEMODEF): Remove mode iterators.
336 Substitute all uses with ...
337 (MODEF): New mode iterator.
338
339 (fix_trunc<mode>_fisttp_i387_1): Remove operand constraints
340 from pre-regalloc define_insn_and_split splitter pattern.
341 (*fix_trunc<mode>_i387_1): Ditto.
342 (*fistdi2_1): Ditto.
343 (*fist<mode>2_1): Ditto.
344 (frndintxf2_floor): Ditto.
345 (*fist<mode>2_floor_1): Ditto.
346 (frndintxf2_ceil): Ditto.
347 (*fist<mode>2_ceil_1): Ditto.
348 (frndintxf2_trunc): Ditto.
349 (frndintxf2_mask_pm): Ditto.
350
351 (prologue): Use (const_int 0) as never generated filler insn.
352 (epilogue): Ditto.
353 (sibcall_epilogue): Ditto.
354 (eh_return_si): Ditto.
355 (eh_return_di): Ditto.
356
357 (add<mode>3): Rename from adddf3 and addsf3. Macroize expander
358 using MODEF mode iterator.
359 (sub<mode>3): Rename from subdf3 and subsf3. Macroize expander
360 using MODEF mode iterator.
361 (mul<mode>3): Rename from muldf3 and mulsf3. Macroize expander
362 using MODEF mode iterator.
363 (nearbyint<mode>2): Rename from nearbyintdf2 and nearbyintsf2.
364 Macroize expander using MODEF mode iterator.
365
366 (zero_extendsidi2): Remove operand constraints from expander.
367 (smuldi3_highpart): Ditto.
368 (indirect_jump): Ditto.
369 (tablejump): Ditto.
370 (rsqrtsf2): Ditto.
371 * config/i386/sse.md (storentv4sf): Ditto.
372 (storentv2df): Ditto.
373 (storentv2di): Ditto.
374 (storentsi): Ditto.
375 (sse2_cvtpd2ps): Ditto.
376 (vec_interleave_highv16qi): Ditto.
377 (vec_interleave_lowv16qi): Ditto.
378 (vec_interleave_highv8hi): Ditto.
379 (vec_interleave_lowv8hi): Ditto.
380 (vec_interleave_highv4si): Ditto.
381 (vec_interleave_lowv4si): Ditto.
382 (vec_interleave_highv2di): Ditto.
383 (vec_interleave_lowv2di): Ditto.
384 (sse2_maskmovdqu): Ditto.
385 * config/i386/mmx.md (mmx_maskmovq): Ditto.
386
387 2007-09-09 Ira Rosen <irar@il.ibm.com>
388
389 * tree-vectorizer.h (enum vect_def_type): Start enumeration from 1.
390 (struct _slp_tree, struct _slp_instance): Define new data structures
391 along macros for their access.
392 (struct _loop_vec_info): Define new fields: strided_stores,
393 slp_instances, and slp_unrolling_factor along macros for their access.
394 (enum slp_vect_type): New.
395 (struct _stmt_vec_info): Define new field, slp_type, and macros for its
396 access.
397 (STMT_VINFO_STRIDED_ACCESS): New macro.
398 (vect_free_slp_tree): Declare.
399 (vectorizable_load): Add an argument of type slp_tree.
400 (vectorizable_store, vectorizable_operation, vectorizable_conversion,
401 vectorizable_assignment): Likewise.
402 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
403 Declare (make extern).
404 * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
405 (new_loop_vec_info): Likewise.
406 (destroy_loop_vec_info): Free memory allocated for SLP structures.
407 * tree-vect-analyze.c: Include recog.h.
408 (vect_update_slp_costs_according_to_vf): New.
409 (vect_analyze_operations): Add argument for calls to vectorizable_ ()
410 functions. For not pure SLP stmts with strided access check that the
411 group size is power of 2. Update the vectorization factor according to
412 SLP. Call vect_update_slp_costs_according_to_vf.
413 (vect_analyze_group_access): New.
414 (vect_analyze_data_ref_access): Call vect_analyze_group_access.
415 (vect_free_slp_tree): New functions.
416 (vect_get_and_check_slp_defs, vect_build_slp_tree, vect_print_slp_tree,
417 vect_mark_slp_stmts, vect_analyze_slp_instance, vect_analyze_slp,
418 vect_make_slp_decision, vect_detect_hybrid_slp_stmts,
419 vect_detect_hybrid_slp): Likewise.
420 (vect_analyze_loop): Call vect_analyze_slp, vect_make_slp_decision
421 and vect_detect_hybrid_slp.
422 * tree-vect-transform.c (vect_estimate_min_profitable_iters): Take
423 SLP costs into account.
424 (vect_get_cost_fields): New function.
425 (vect_model_simple_cost): Make extern, add SLP parameter and handle
426 SLP.
427 (vect_model_store_cost, vect_model_load_cost): Likewise.
428 (vect_get_constant_vectors): New function.
429 (vect_get_slp_vect_defs, vect_get_slp_defs,
430 vect_get_vec_defs_for_stmt_copy, vect_get_vec_defs_for_stmt_copy,
431 vect_get_vec_defs): Likewise.
432 (vectorizable_reduction): Don't handle SLP for now.
433 (vectorizable_call): Don't handle SLP for now. Add argument to
434 vect_model_simple_cost.
435 (vectorizable_conversion): Handle SLP (call vect_get_vec_defs to
436 get SLPed and vectorized defs). Fix indentation and spacing.
437 (vectorizable_assignment): Handle SLP.
438 (vectorizable_induction): Don't handle SLP for now.
439 (vectorizable_operation): Likewise.
440 (vectorizable_type_demotion): Add argument to
441 vect_model_simple_cost.
442 (vectorizable_type_promotion): Likewise.
443 (vectorizable_store, vectorizable_load): Handle SLP.
444 (vectorizable_condition): Don't handle SLP for now.
445 (vect_transform_stmt): Add a new argument for SLP. Check that there is
446 no SLP transformation required for unsupported cases. Add SLP
447 argument for supported cases.
448 (vect_remove_stores): New function.
449 (vect_schedule_slp_instance, vect_schedule_slp): Likewise.
450 (vect_transform_loop): Schedule SLP instances.
451 * Makefile.in: (tree-vect-analyze.o): Depend on recog.h.
452
453 2007-09-09 Andrew Haley <aph@redhat.com>
454
455 * optabs.c (sign_expand_binop): Set libcall_gen = NULL in the
456 fake signed optab.
457
458 2007-09-09 Hans-Peter Nilsson <hp@axis.com>
459
460 Divide REG_LABEL notes into REG_LABEL_OPERAND and REG_LABEL_TARGET.
461 * doc/rtl.texi (Insns): Specify when a label_ref makes a jump_insn.
462 Similar for what label_refs can go in the JUMP_TARGET field. Split
463 REG_LABEL documentation into REG_LABEL_TARGET and REG_LABEL_OPERAND.
464 * reload.c (find_reloads): Generate REG_LABEL_OPERAND, not
465 REG_LABEL when replacing an operand with a LABEL_REF for a
466 non-jump insn.
467 (subst_reloads): When replacing a LABEL_REG with a register,
468 instead of generating a REG_LABEL note, assert that there already
469 is one or that the label is a known target for the insn.
470 * rtlanal.c (computed_jump_p): Instead of looking for a REG_LABEL
471 note, check the JUMP_LABEL field. Remove "else" after return.
472 * reorg.c (emit_delay_sequence): Replace case for REG_LABEL with
473 cases for REG_LABEL_OPERAND and REG_LABEL_TARGET.
474 (fill_slots_from_thread): Handle both REG_LABEL_OPERAND and
475 REG_LABEL_TARGET notes, including the JUMP_TARGET field on JUMP_P
476 insns. Iterate over all notes; don't assume there's only one.
477 * cse.c (recorded_label_ref): Adjust comment to refer to
478 REG_LABEL_OPERAND.
479 (cse_extended_basic_block): Do LABEL_REF check for all INSN_P
480 insns, not just NONJUMP_INSN_P.
481 (check_for_label_ref): For JUMP_P insns, check that the LABEL_REF
482 isn't a jump target.
483 * jump.c (rebuild_jump_labels): Adjust head comment.
484 (init_label_info): Ditto. Remove REG_LABEL_OPERAND notes only;
485 don't reset REG_LABEL_TARGET notes, including the JUMP_LABEL field.
486 (mark_all_labels): For JUMP_P insns without a target, check if the
487 the target is noted on the previous nonjump insn.
488 (mark_jump_label_1): New function, guts from mark_jump_label.
489 <case IF_THEN_ELSE>: Handle first operand as a non-target when
490 marking jump target labels.
491 <case LABEL_REF>: Adjust for whether to generate a
492 REG_LABEL_TARGET or a REG_LABEL_OPERAND note.
493 For 'E' format rtl, iterate in descending element order.
494 (delete_related_insns): Handle both REG_LABEL_TARGET and
495 REG_LABEL_OPERAND notes. For JUMP_P insns with labels with zero
496 reference count, delete and fallthrough. Move finding-next-
497 non-deleted insn last in the function. Look at all INSN_P insns
498 for REG_LABEL_OPERAND notes.
499 (redirect_jump_2): Assert that OLABEL equals the old JUMP_LABEL of
500 JUMP.
501 * print-rtl.c (print_rtx): For JUMP_P insns and a non-NULL
502 JUMP_LABEL, output the INSN_UID of it.
503 * gcse.c: Adjust comments as appropriate to say REG_LABEL_OPERAND
504 and/or REG_LABEL_TARGET.
505 (add_label_notes): Only add REG_LABEL_OPERAND notes. Put in line
506 with jump.c copy by only adding notes for labels actually
507 referenced in the insn.
508 * emit-rtl.c (try_split): Don't assume only NONJUMP_INSN_P need
509 usage count increment; handle all INSN_P trial insns.
510 (emit_copy_of_insn_after): Change to not copy REG_LABEL_OPERAND
511 notes.
512 * rtl.h (struct rtx_def) <volatil>: Adjust to mention
513 REG_LABEL_TARGET and REG_LABEL_OPERAND.
514 (LABEL_REF_NONLOCAL_P): Allow REG_LABEL_TARGET and
515 REG_LABEL_OPERAND.
516 * combine.c (distribute_notes): Adjust for REG_LABEL_TARGET on
517 JUMP_P insns and REG_LABEL_OPERAND everywhere.
518 * sched-rgn.c (is_cfg_nonregular): Check for REG_LABEL_OPERANDS
519 on all INSN_P insns.
520 * reg-notes.def (LABEL_TARGET, LABEL_OPERAND): Split from LABEL.
521 * cfgrtl.c (delete_insn): Adjust to handle REG_LABEL_TARGET and
522 REG_LABEL_OPERAND notes.
523 * reload1.c (calculate_needs_all_insns): Adjust comments.
524 (set_label_offsets): Adjust to look for REG_LABEL_OPERAND notes.
525 * config/alpha/alpha.md (split for load of an address into a
526 four-insn sequence on Unicos/Mk): Adjust to use
527 REG_LABEL_OPERAND.
528 * config/sh/sh.md (sh_reorg, final_prescan_insn): Ditto.
529
530 2007-09-09 Laurynas Biveinis <laurynas.biveinis@gmail.com>
531
532 Revert:
533 2007-09-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
534 * regrename.c (copyprop_hardreg_forward_1): New variable next. Use
535 FOR_BB_INSNS_SAFE instead of for loop.
536 * cse.c (cse_extended_basic_block): Likewise.
537 * postreload.c (reload_cse_regs_1): New variable next. Make sure
538 that the for loop does not invoke NEXT_INSN on a deleted insn.
539 * function.c (instantiate_virtual_regs): Likewise.
540 * lower-subreg.c (remove_retval_note): Likewise.
541 (decompose_multiword_subregs): Use FOR_BB_INSNS_SAFE instead of
542 FOR_BB_INSNS.
543 * emit-rtl.c (remove_insn): Set NEXT_INSN and PREV_INSN to NULL on
544 a deleted insn.
545 * cfgrtl.c (delete_insn): Set JUMP_LABEL to NULL on a deleted
546 insn, if it's a jump.
547 (try_redirect_by_replacing_jump): New variable jump_p. Call
548 tablejump_p before delete_insn_chain.
549 * reload1.c (reload): New variable next. Make sure that the for
550 loop does not invoke NEXT_INSN on a deleted insn.
551 (fixup_eh_region_note): Make the loop terminate if i becomes NULL.
552 (delete_output_reload): New variable prev. Make sure the the for
553 loops do not invoke PREV_INSN on a deleted insn.
554
555 2007-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
556
557 * pa/constraints.md: Remove 'X' from unused letters comment.
558
559 2007-09-08 Richard Guenther <rguenther@suse.de>
560
561 * tree-tailcall.c (find_tail_calls): If we don't have aliases
562 computed check stmt_ann->references_memory instead of counting
563 virtual operands.
564
565 2007-09-08 Segher Boessenkool <segher@kernel.crashing.org>
566
567 * cse.c (fold_rtx): Use validate_unshare_change() instead of
568 validate_change() in one more case.
569
570 2007-09-08 Zdenek Dvorak <ook@ucw.cz>
571
572 PR tree-optimization/32283
573 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Use
574 estimated_loop_iterations.
575 (determine_use_iv_cost_condition): Decrease cost of expressions
576 used in iv elimination.
577
578 2007-09-08 Richard Guenther <rguenther@suse.de>
579
580 * tree-cfg.c (verify_gimple_expr): Avoid building new
581 pointer types, use TYPE_POINTER_TO if available instead.
582
583 2007-09-08 Uros Bizjak <ubizjak@gmail.com>
584
585 PR target/33329
586 PR rtl-optimization/26449
587 * config/i386/sse.md (mulv4si3): Do not expand sse2 sequence.
588 (*sse2_mulv4si3): New define_insn_and_split pattern. Split insn in
589 split1 pass.
590 (mulv16qi3): Implement as define_insn_and_split pattern instead of
591 define_expand. Split insn in split1 pass.
592 (mulv2di3): Ditto.
593
594 2007-09-08 Dorit Nuzman <dorit@il.ibm.com>
595
596 PR tree-optimization/33301
597 * tree-vect-analyze (analyze_operations): Look at the type of the rhs
598 when relevant.
599
600 2007-09-07 Zdenek Dvorak <ook@ucw.cz>
601
602 PR tree-optimization/32183
603 * Makefile.in (tree-ssa-reassoc.o): Also depend on $(CFGLOOP_H).
604
605 * tree-ssa-reassoc.c: Include cfgloop.h.
606 (is_reassociable_op): Add a loop argument and return true only
607 for inside loop.
608 (linearize_expr): Updated.
609 (should_break_up_subtract): Likewise.
610 (linearize_expr_tree): Likewise.
611 (init_reassoc): Call loop_optimizer_init with
612 AVOID_CFG_MODIFICATIONS. Remove calculate_dominance_info call
613 with CDI_DOMINATORS.
614 (fini_reassoc): Call loop_optimizer_finalize.
615
616 2007-09-07 Sterling Augustine <sterling@tensilica.com>
617
618 * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Use an ISYNC even
619 if there is no i-cache.
620
621 2007-09-07 Richard Guenther <rguenther@suse.de>
622
623 Reapply
624 2007-09-06 Richard Guenther <rguenther@suse.de>
625
626 PR tree-optimization/32586
627 * tree-ssa-sccvn.c (simplify_binary_expression): Avoid
628 folding if nothing changed.
629 (simplify_unary_expression): New function. Do tree combining
630 on conversion like codes.
631 (try_to_simplify): Call it.
632
633 2007-09-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
634
635 PR target/33286
636 * gthr-posix.h (__gthread_active_p): Add implementation for hppa-hpux.
637 (__gthread_active,__gthread_start, __gthread_active_init): New.
638 * gthr-posix95.h: Likewise.
639
640 2007-09-07 Roman Zippel <zippel@linux-m68k.org>
641
642 * function.h (struct function): Rename calls_unwind_init
643 to saves_all_registers.
644 (current_function_saves_all_registers): Renamed from
645 current_function_calls_unwind_init.
646 * reload1.c (reload): Set current_function_saves_all_registers.
647 * except.c (expand_builtin_unwind_init): Likewise.
648 * config/m68k/m68k.c (m68k_save_reg): Use
649 current_function_saves_all_registers to save pic register.
650
651 2007-09-07 Janis Johnson <janis187@us.ibm.com>
652
653 config/m68k/m68k.c (floating_exact_log2): Update call to real_2expN.
654 config/s390/s390.md (fixuns_trunc<BFP:mode><GPR:mode>2): Ditto.
655
656 Reapply reverted changes:
657
658 2007-09-06 Jan Hubicka <jh@suse.cz>
659
660 * config/i386.c (ix86_expand_lround, ix86_expand_round): Update call of
661 real_2expN.
662
663 2007-09-06 Richard Sandiford <richard@codesourcery.com>
664
665 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
666 (fixuns_truncsfsi2, fixuns_truncsfdi2): Update calls to real_2expN.
667
668 2007-09-05 Janis Johnson <janis187@us.ibm.com>
669
670 * optabs.c (expand_float): Convert unsigned integer as signed only
671 if it provides sufficient accuracy; add mode argument to real_2expN.
672 (expand_fix): Fix comment typos; extend binary float into mode
673 wider than destination for converion to unsigned integer; add mode
674 argument to real_2expN.
675 * real.c (real_2expN): Add mode argument to special-case decimal
676 float values.
677 * real.h (real_2expN): Ditto.
678 * fixed-value.c (check_real_for_fixed_mode): Add mode argument to
679 real_2expN.
680 (fixed_from_string): Ditto.
681 (fixed_to_decimal): Ditto.
682 (fixed_convert_from_real): Ditto.
683 (real_convert_from_fixed): Ditto.
684 * config/rs6000/rs6000.md (FP): Include DD and TD modes.
685 * config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
686 muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
687 floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
688
689 2007-09-07 Diego Novillo <dnovillo@google.com>
690
691 * tree-flow.h (const_block_stmt_iterator): Remove.
692 Update all users to use block_stmt_iterator.
693 * tree-iterator.h (const_tree_stmt_iterator): Remove.
694 Update all users to use tree_stmt_iterator.
695
696 2007-09-07 Sandra Loosemore <sandra@codesourcery.com>
697
698 * config/mips/mips.c (mips_set_current_function): Temporarily
699 make this a no-op to fix bootstrap errors, pending rewrite.
700
701 2007-09-07 Jan Hubicka <jh@suse.cz>
702
703 * reorg.c (dbr_schedule): Move code removing placeholder USEs later
704 in the pass.
705
706 2007-09-07 Dorit Nuzman <dorit@il.ibm.com>
707
708 PR tree-optimization/33299
709 * tree-vect-transform.c (vect_create_epilog_for_reduction): Update
710 uses for all relevant loop-exit phis, not just the first.
711
712 2007-09-07 Richard Guenther <rguenther@suse.de>
713
714 PR middle-end/33330
715 * tree-ssa-operands.c (access_can_touch_variable): An access
716 of the form (*p)[0] can touch a variable of same size.
717
718 2007-09-07 Jan Hubicka <jh@suse.cz>
719
720 * passes.c (init_optimization_passes): Add simple dce and addressable
721 passes.
722 * tree-ssa.c (execute_update_addresses_taken): New function.
723 (pass_update_address_taken): New.
724 * tree-ssa-dse.c (execute_simple_dse): New function.
725 (pass_simple_dse): New.
726 * tree-pass.h (pass_simple_dse, pass_update_address_taken): Declare.
727
728 2007-09-07 Tobias Burnus <burnus@net-b.de>
729
730 PR middle-end/33321
731 * doc/invoke.texi: Fix -Wstrict-overflow= table.
732
733 2007-09-07 Richard Guenther <rguenther@suse.de>
734
735 Revert
736 2007-09-06 Richard Guenther <rguenther@suse.de>
737
738 PR tree-optimization/32586
739 * tree-ssa-sccvn.c (simplify_binary_expression): Avoid
740 folding if nothing changed.
741 (simplify_unary_expression): New function. Do tree combining
742 on conversion like codes.
743 (try_to_simplify): Call it.
744
745 2007-09-07 Richard Guenther <rguenther@suse.de>
746 Uros Bizjak <ubizjak@gmail.com>
747
748 PR tree-optimization/32821
749 * tree_if_conv.c (combine_blocks): Use alloc_stmt_list instead of
750 NULL in the call to set_bb_stmt_list.
751
752 2007-09-07 Richard Sandiford <richard@codesourcery.com>
753
754 * config/mips/mips.c (build_mips16_call_stub): Emit all direct
755 float calls here, rather than leaving some to the caller.
756 Use call_internal_direct and call_value_internal_direct.
757 * config/mips/mips.md (call_internal_direct): New pattern.
758 (call_value_internal_direct): Likewise.
759
760 2007-09-07 Richard Sandiford <richard@codesourcery.com>
761
762 * config/mips/mips.c (mips_base_move_loop_invariants): New variable.
763 (mips_set_mips16_mode): Restore flag_move_loop_invariants, then set
764 to 0 for MIPS16.
765 (override_options): Set mips_base_move_loop_invariants.
766
767 2007-09-07 Richard Sandiford <richard@codesourcery.com>
768
769 * config/mips/mips.opt (mcode-readable=): Move to keep list
770 alphabetical.
771
772 2007-09-07 Richard Sandiford <richard@codesourcery.com>
773
774 * doc/invoke.texi: Document the MIPS -mlocal-sdata, -mextern-sdata
775 and -mgpopt options. Adjust the -G documentation to match.
776 * config/mips/mips.opt (mextern-data, mgpopt, mlocal-data): New.
777 * config/mips/mips.c (mips_rtx_constant_in_small_data_p): New
778 function, split out from mips_classify_symbol. Return false for
779 !TARGET_LOCAL_SDATA.
780 (mips_classify_symbol): Call mips_rtx_constant_in_small_data_p.
781 Only use GP-relative accesses for non-pool symbols if TARGET_GPOPT.
782 (override_options): Check whether the -mgpopt setting is consistent
783 with the other flags.
784 (symbolic_expression_p): Delete.
785 (mips_select_rtx_section): Use mips_rtx_constant_in_small_data_p
786 and default_elf_select_rtx_section.
787 (mips_in_small_data_p): Honor section attributes for MIPS16 too.
788 Return false for local data unless TARGET_LOCAL_SDATA. Likewise
789 external data and TARGET_EXTERN_SDATA.
790
791 2007-09-07 Tobias Burnus <burnus@net-b.de>
792
793 PR fortran/33303
794 * doc/cpp.texi (Common Predefined Macros): Add __GFORTRAN__.
795
796 2007-09-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
797
798 * regrename.c (copyprop_hardreg_forward_1): New variable next. Use
799 FOR_BB_INSNS_SAFE instead of for loop.
800 * cse.c (cse_extended_basic_block): Likewise.
801 * postreload.c (reload_cse_regs_1): New variable next. Make sure
802 that the for loop does not invoke NEXT_INSN on a deleted insn.
803 * function.c (instantiate_virtual_regs): Likewise.
804 * lower-subreg.c (remove_retval_note): Likewise.
805 (decompose_multiword_subregs): Use FOR_BB_INSNS_SAFE instead of
806 FOR_BB_INSNS.
807 * emit-rtl.c (remove_insn): Set NEXT_INSN and PREV_INSN to NULL on
808 a deleted insn.
809 * cfgrtl.c (delete_insn): Set JUMP_LABEL to NULL on a deleted
810 insn, if it's a jump.
811 (try_redirect_by_replacing_jump): New variable jump_p. Call
812 tablejump_p before delete_insn_chain.
813 * reload1.c (reload): New variable next. Make sure that the for
814 loop does not invoke NEXT_INSN on a deleted insn.
815 (fixup_eh_region_note): Make the loop terminate if i becomes NULL.
816 (delete_output_reload): New variable prev. Make sure the the for
817 loops do not invoke PREV_INSN on a deleted insn.
818
819 2007-09-06 Zdenek Dvorak <ook@ucw.cz>
820
821 * cgraphbuild.c (rebuild_cgraph_edges): Export.
822 * cgraph.h (rebuild_cgraph_edges): Declare.
823 * tree-pass.h (pass_expand_omp_ssa): New.
824 * omp-low.c (find_omp_clause): Export.
825 (copy_var_decl): Split from omp_copy_decl_2.
826 (build_omp_barrier): Return the call to emit instead of emitting
827 it directly.
828 (lower_rec_input_clauses, expand_omp_single): Gimplify the result of
829 build_omp_barrier.
830 (extract_omp_for_data, expand_parallel_call, expand_omp_parallel,
831 expand_omp_for_generic, expand_omp_for_static_nochunk,
832 expand_omp_for_static_chunk, expand_omp_for, expand_omp_sections):
833 Adapted to work on SSA form.
834 (execute_expand_omp): Do not invalidate dominance information.
835 (gate_expand_omp): Do not run with -fopenmp-ssa flag.
836 (gate_expand_omp_ssa, pass_expand_omp_ssa): New.
837 * gimplify.c (gimplify_omp_for): Ensure that the control variable is
838 a gimple_reg.
839 (force_gimple_operand): Allow gimplifying code expressions without
840 value.
841 * tree-predcom.c (mark_virtual_ops_for_renaming): Handle phi nodes.
842 * common.opt (fopenmp-ssa): New.
843 * tree-flow.h (find_omp_clause, copy_var_decl): Declare.
844 * Makefile.in (tree-cfg.o): Add TREE_INLINE_H dependency.
845 * tree-cfg.c: Include tree-inline.h.
846 (struct move_stmt_d): Replace vars_to_remove by vars_map field.
847 (replace_by_duplicate_decl, replace_ssa_name,
848 mark_virtual_ops_in_region): New functions.
849 (move_stmt_r, move_block_to_fn, move_sese_region_to_fn): Adapted
850 to work on SSA form.
851 * passes.c (init_optimization_passes): Add pass_expand_omp_ssa pass.
852 * tree-ssa-operands.c (get_expr_operands): Handle operands of OMP
853 constructs.
854
855 2007-09-06 Laurynas Biveinis <laurynas.biveinis@gmail.com>
856
857 * tree-loop-linear.c: Include obstack.h.
858 (linear_transform_loops): New obstack lambda_obstack.
859 Initialize it, pass it to gcc_loopnest_to_lambda_loopnest,
860 lambda_loopnest_transform, lambda_loopnest_to_gcc_loopnest calls
861 and free afterwards.
862 * lambda.h (struct obstack): New forward declaration.
863 (lambda_linear_expression_new): New parameter of type struct
864 obstack *.
865 (lambda_loopnest_new): Likewise.
866 (lambda_loopnest_transform): Likewise.
867 (lambda_body_vector_new): Likewise.
868 (lambda_body_vector_compute_new): Likewise.
869 (gcc_loopnest_to_lambda_loopnest): Likewise.
870 (lambda_loopnest_to_gcc_loopnest): Likewise.
871 * lambda-code.c: Include obstack.h.
872 (lambda_lattice_new): New parameter lambda_obstack. Use it for
873 allocation of ret.
874 (lambda_body_vector_new): Likewise.
875 (lambda_linear_expression_new): Likewise.
876 (lambda_lattice_new): Likewise.
877 (lambda_loopnest_new): Likewise. Additionally use obstack to
878 allocate LN_LOOPS(ret).
879 (lambda_lattice_compute_base): New parameter lambda_obstack. Pass
880 it to lambda_lattice_new.
881 (lambda_body_vector_compute_new): New parameter lambda_obstack.
882 Pass it to lambda_body_vector_new.
883 (lambda_lattice_compute_base): New paramater lambda_obstack. Pass
884 it to lambda_lattice_new.
885 (compute_nest_using_fourier_motzkin): New parameter lambda_obstack.
886 Pass it to lambda_loopnest_new, lambda_linear_expression_new.
887 (lambda_compute_target_space): Likewise.
888 (lambda_compute_auxillary_space): New parameter lambda_obstack.
889 Pass it to lambda_lattice_compute_base and
890 compute_nest_using_fourieer_motzkin.
891 (lambda_loopnest_transform): New parameter lambda_obstack. Pass
892 it to lambda_lattice_compute_base, lambda_lattice_auxillary_space
893 and lambda_lattice_compute_target_space.
894 (gcc_tree_to_linear_expression): Nex parameter lambda_obstack.
895 Pass it to lambda_linear_expression_new.
896 (gcc_loop_to_lambda_loop): New parameter lambda_obstack. Pass it
897 to gcc_tree_to_linear_expression.
898 (gcc_loopnest_to_lambda_loopnest): New parameter lambda_obstack.
899 Pass it to gcc_loop_to_lambda_loop and lambda_loopnest_new.
900 (lambda_loopnest_to_gcc_loopnest): New parameter lambda_obstack.
901 Pass it to lambda_body_vector_new and
902 lambda_body_vector_compute_new.
903 * Makefile.in (tree-loop-linear.o): Add $(OBSTACK_H) dependency.
904 (lambda-code.o): Likewise.
905
906 2007-09-06 Chao-ying Fu <fu@mips.com>
907
908 * ginclude/stdfix.h: New file.
909 * Makefile.in (USER_H): Add $(srcdir)/ginclude/stdfix.h.
910 (convert.o): Add dependence on fixed-value.h.
911 * c-convert.c (convert): Support FIXED_POINT_TYPE.
912 * c-cppbuiltin.c (builtin_define_fixed_point_constants): New function
913 to define fixed-point constants.
914 (c_cpp_builtins): Define fixed-point constants.
915 * convert.c (fixed-value.h): New include.
916 (convert_to_real): Update comment to include fixed-point.
917 Support FIXED_POINT_TYPE.
918 (convert_to_integer): Update comment to include fixed-point.
919 Support FIXED_POINT_TYPE.
920 (convert_to_complex): Support FIXED_POINT_TYPE.
921 (convert_to_fixed): New function.
922 * convert.h (convert_to_fixed): Declare.
923 * genopinit.c: Add comment about $Q for only fixed-point modes.
924 (optabs): Add fract_optab, fractuns_optab, satfract_optab,
925 satfractuns_optab, add_optab, ssadd_optab, usadd_optab, sub_optab,
926 sssub_optab, ussub_optab, smul_optab, ssmul_optab, usmul_optab,
927 ssmadd_widen_optab, usmadd_widen_optab, ssdiv_optab, udiv_optab,
928 usdiv_optab, ssashl_optab, usashl_optab, neg_optab, ssneg_optab,
929 usneg_optab for fixed-point modes.
930 (gen_insn): Add force_fixed to track the $Q format for all fixed-point
931 modes.
932 * optabs.c (optab_for_tree_code): For *DIV_EXPR, LSHIFT_EXPR,
933 PLUS_EXPR, MINUS_EXPR, MULT_EXPR, NEGATE_EXPR, return signed or
934 unsigned saturation optabs, when type is saturating.
935 (shift_optab_p): Return true for SS_ASHIFT or US_ASHIFT.
936 (expand_fixed_convert): New function.
937 (gen_fixed_libfunc, gen_signed_fixed_libfunc,
938 gen_unsigned_fixed_libfunc, gen_int_fp_fixed_libfunc,
939 gen_int_fp_signed_fixed_libfunc, gen_int_fixed_libfunc,
940 gen_int_signed_fixed_libfunc, gen_int_unsigned_fixed_libfunc,
941 gen_fract_conv_libfunc, gen_fractuns_conv_libfunc,
942 gen_satfract_conv_libfunc, gen_satfractuns_conv_libfunc): New
943 functions.
944 (init_optabs): Initialize ssadd_optab, usadd_optab, sssub_optab,
945 ussub_optab, ssmul_optab, usmul_optab, ssmadd_widen_optab,
946 usmadd_widen_optab, ssmsub_widen_optab, usmsub_widen_optab,
947 ssdiv_optab, usdiv_optab, ssashl_optab, usashl_optab, ssneg_optab,
948 usneg_optab, fract_optab, fractuns_optab, satfract_optab,
949 satfractuns_optab.
950 Initialize fixed-point libraries, including add, ssadd, usadd, sub,
951 sssub, ussub, mul, ssmul, usmul, div, ssdiv, udiv, usdiv, ashl,
952 ssashl, usashl, ashr, lshr, neg, ssneg, usneg, cmp, fract, satfract,
953 fractuns, satfractuns.
954 * optabs.h (enum optab_index): Add OTI_ssadd, OTI_usadd, OTI_sssub,
955 OTI_ussub, OTI_ssmul, OTI_usmul, OTI_ssdiv, OTI_usdiv, OTI_ssneg,
956 OTI_usneg, OTI_ssashl, OTI_usashl, OTI_ssmadd_widen, OTI_usmadd_widen,
957 OTI_ssmsub_widen, OTI_usmsub_widen.
958 (ssadd_optab, usadd_optab, sssub_optab, ussub_optab, ssmul_optab,
959 usmul_optab, ssdiv_optab, usdiv_optab, ssneg_optab, usneg_optab,
960 ssashl_optab, usashl_optab, ssmadd_widen_optab, usmadd_widen_optab,
961 umsub_widen_optab, usmsub_widen_optab): Define.
962 (enum convert_optab_index): Add COI_fract, COI_fractuns, COI_satfract,
963 COI_satfractuns.
964 (fract_optab, fractuns_optab, satfract_optab, satfractuns_optab):
965 Define.
966 (expand_fixed_convert): Declare.
967 * expr.c (convert_move): Support the move of fixed-point modes.
968 (emit_move_insn_1): Handle fixed-point mode to move via integer.
969 (categorize_ctor_elements_1): Handle FIXED_CST.
970 (count_type_elements): Handle FIXED_POINT_TYPE.
971 (expand_expr_real_1): For VECTOR_CST, check MODE_VECTOR_FRACT,
972 MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
973 Support FIXED_CST.
974 For PLUS_EXPR and MINUS_EXPR, support saturating and non-saturating
975 multiply and add/subtract for fixed-point types.
976 For MULT_EXPR, *DIV_EXPR, *SHIFT_EXPR, if the mode if a fixed-point
977 mode, we jump to binop directly.
978 Support FIXED_CONVERT_EXPR.
979 (do_store_flag): Check FIXED_CST to put a constant second.
980 (vector_mode_valid_p): Handle MODE_VECTOR_FRACT,
981 MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
982 (const_vector_from_tree): Support FIXED_CST.
983 * doc/extend.texi (Fixed-Point): New node.
984 * doc/md.texi (ssadd, usadd, sssub, ussub, ssmul, usmul, ssdiv, usdiv,
985 ssmadd, usmadd, ssmsub, usmsub, ssashl, usashl, ssneg, usneg, fract,
986 satfract, fractuns, satfractuns): Document them.
987
988 2007-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
989
990 * config/bfin/bfin.h (PREFERRED_RELOAD_CLASS): Don't reload autoinc
991 addresses into I registers.
992
993 2007-09-06 Jan Hubicka <jh@suse.cz>
994 Andreas Tobler <a.tobler@schweiz.org>
995
996 * config/darwin.c (machopic_indirect_data_reference): Avoid invalid
997 sharing.
998 (machopic_legitimize_pic_address): Likewise.
999
1000 2007-09-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
1001 Jan Hubicka <jh@suse.cz>
1002
1003 * config/spu/spu.md (floatsidf2): Use convert_optab_libfunc
1004 instead of ufloat_optab->handlers directly.
1005 (floatdidf2): Likewise.
1006
1007 2007-09-06 Sandra Loosemore <sandra@codesourcery.com>
1008
1009 * config/mips/mips.c: Include diagnostic.h.
1010 (mips_set_current_function): Check errorcount and sorrycount
1011 before generating RTL.
1012
1013 2007-09-06 Richard Sandiford <richard@codesourcery.com>
1014
1015 PR target/33256
1016 * config/mips/mips.c (mips_classify_symbolic_expression): New function.
1017 (mips_classify_address): Use it instead of mips_symbolic_constant_p.
1018 (print_operand_reloc): Likewise.
1019
1020 2007-09-06 Janis Johnson <janis187@us.ibm.com>
1021
1022 Revert:
1023
1024 2007-09-06 Jan Hubicka <jh@suse.cz>
1025
1026 * i386.c (ix86_expand_lround, ix86_expand_round): Update call of
1027 real_2expN.
1028
1029 2007-09-06 Richard Sandiford <richard@codesourcery.com>
1030
1031 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
1032 (fixuns_truncsfsi2, fixuns_truncsfdi2): Update calls to real_2expN.
1033
1034 2007-09-05 Janis Johnson <janis187@us.ibm.com>
1035
1036 * optabs.c (expand_float): Convert unsigned integer as signed only
1037 if it provides sufficient accuracy; add mode argument to real_2expN.
1038 (expand_fix): Fix comment typos; extend binary float into mode
1039 wider than destination for converion to unsigned integer; add mode
1040 argument to real_2expN.
1041 * real.c (real_2expN): Add mode argument to special-case decimal
1042 float values.
1043 * real.h (real_2expN): Ditto.
1044 * fixed-value.c (check_real_for_fixed_mode): Add mode argument to
1045 real_2expN.
1046 (fixed_from_string): Ditto.
1047 (fixed_to_decimal): Ditto.
1048 (fixed_convert_from_real): Ditto.
1049 (real_convert_from_fixed): Ditto.
1050 * config/rs6000/rs6000.md (FP): Include DD and TD modes.
1051 * config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
1052 muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
1053 floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
1054
1055 2007-09-06 Tom Tromey <tromey@redhat.com>
1056
1057 * tree-cfg.c (remove_bb): Only warn if line is non-zero.
1058 * c-pch.c (c_common_read_pch): Restore current location after
1059 reading PCH file.
1060 * tree.c (expand_location): Update.
1061 (expr_filename): Changed return type. Unified the two cases.
1062 (expr_lineno): Likewise.
1063 (annotate_with_file_line): Don't use EXPR_LINENO and EXPR_FILENAME
1064 as lvalues.
1065 * toplev.c (line_table): Changed type.
1066 (general_init): Update.
1067 (realloc_for_line_map): New function.
1068 (general_init): Allocate line_table using GC.
1069 * fix-header.c (line_table): Changed type.
1070 (read_scan_file): Update.
1071 (read_scan_file): Update.
1072 * c-ppoutput.c (maybe_print_line): Update.
1073 (print_line): Update.
1074 (cb_line_change): Update.
1075 (cb_define): Update.
1076 (pp_file_change): Update.
1077 * c-opts.c (c_common_init_options): Update.
1078 (finish_options): Update.
1079 (push_command_line_include): Update.
1080 * c-lex.c (cb_line_change): Update.
1081 (cb_def_pragma): Update.
1082 (cb_define): Update.
1083 (cb_undef): Update.
1084 (c_lex_with_flags): Use cpp_get_token_with_location.
1085 * input.h (line_table): Changed type.
1086 (location_from_locus): New macro.
1087 * tree.h (EXPR_FILENAME): No longer an lvalue.
1088 (EXPR_LINENO): Likewise.
1089 (expr_locus, set_expr_locus): Declare separately for
1090 USE_MAPPED_LOCATION.
1091 (expr_filename, expr_lineno): Changed return type.
1092 * gimplify.c (tree_to_gimple_tuple): Use SET_EXPR_LOCUS.
1093 * cfgexpand.c (expand_gimple_cond_expr): Use location_from_locus.
1094 (expand_gimple_basic_block): Likewise.
1095 * final.c (final_scan_insn): Use expanded_location.
1096
1097 2007-09-06 Richard Guenther <rguenther@suse.de>
1098
1099 PR tree-optimization/32586
1100 * tree-ssa-sccvn.c (simplify_binary_expression): Avoid
1101 folding if nothing changed.
1102 (simplify_unary_expression): New function. Do tree combining
1103 on conversion like codes.
1104 (try_to_simplify): Call it.
1105 * builtins.c (fold_builtin_cexp): Fold the built expressions.
1106 * fold-const.c (fold_unary): Test result of get_callee_fndecl().
1107
1108 2007-09-06 Jan Hubicka <jh@suse.cz>
1109
1110 PR target/33318
1111 * cse.c (fold_rtx): Avoid invalid sharing.
1112
1113 2007-09-06 Richard Sandiford <richard@codesourcery.com>
1114
1115 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
1116 (fixuns_truncsfsi2, fixuns_truncsfdi2): Update calls to real_2expN.
1117
1118 2007-09-06 Revital Eres <eres@il.ibm.com>
1119
1120 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
1121 Fix offsettable memory reference for 750CL.
1122
1123 2007-09-06 Pat Haugen <pthaugen@us.ibm.com>
1124
1125 * reload.c (find_reloads_address_1): Try to preserve original
1126 base/index regclass of operands.
1127 * regrename.c (scan_rtx_address): Likewise.
1128 (replace_oldest_value_addr): Likewise.
1129
1130 2007-09-06 Richard Guenther <rguenther@suse.de>
1131
1132 PR tree-optimization/33302
1133 * domwalk.c (walk_dominator_tree): The exit block is
1134 interesting even if it is not reachable.
1135
1136 2007-09-06 Richard Sandiford <richard@codesourcery.com>
1137
1138 PR middle-end/33306
1139 * optabs.c (avoid_expensive_constant): Do nothing if MODE is VOIDmode.
1140
1141 2007-09-06 Basile Starynkevitch <basile@starynkevitch.net>
1142
1143 * cfg.c (dump_bb_info, dump_edge_info): Added cfun test for
1144 robustness.
1145
1146 2007-09-05 Ian Lance Taylor <iant@google.com>
1147
1148 * tree-pretty-print.c (dump_decl_name): Cast LABEL_DECL_UID to int
1149 when printing.
1150 (dump_generic_node): Likewise.
1151 * print-rtl.c (print_decl_name): Likewise.
1152 * print-tree.c (print_node_brief): Likewise.
1153 (print_node): Likewise.
1154 * Makefile.in (RTL_BASE_H): Add alias.h.
1155 (TREE_H): Likewise.
1156
1157 2007-09-06 Jesper Nilsson <jesper.nilsson@axis.com>
1158
1159 * longlong.h [__CRIS_arch_version >= 8] (count_trailing_zeros):
1160 Defined.
1161 * config/cris/cris.md (ctzsi2, cris_swap_bits): Implemented.
1162 * config/cris/cris.h (CTZ_DEFINED_VALUE_AT_ZERO): Defined.
1163
1164 2007-09-06 Jie Zhang <jie.zhang@analog.com>
1165
1166 * config.gcc (tm_file): Add linux.h for bfin*-uclinux*.
1167 (tm_defines): Define UCLIBC_DEFAULT to 1.
1168 (extra_options): Add linux.opt.
1169 * config/bfin/linux.h (CPLUSPLUS_CPP_SPEC): Don't define.
1170 (CRT_CALL_STATIC_FUNCTION): Likewise.
1171 (NO_IMPLICIT_EXTERN_C): Likewise.
1172 (TARGET_OS_CPP_BUILTINS): Define as LINUX_TARGET_OS_CPP_BUILTINS.
1173 * config/bfin/elf.h (OBJECT_FORMAT_ELF): Don't define.
1174 * config/bfin/uclinux.h (CPLUSPLUS_CPP_SPEC): Don't define.
1175 (ENDFILE_SPEC): Don't define.
1176 (LIB_SPEC): Likewise.
1177 (CRT_CALL_STATIC_FUNCTION): Likewise.
1178 (NO_IMPLICIT_EXTERN_C): Likewise.
1179 (LINUX_TARGET_OS_CPP_BUILTINS): Likewise.
1180 (TARGET_OS_CPP_BUILTINS): Define as LINUX_TARGET_OS_CPP_BUILTINS.
1181
1182 2007-09-06 Jan Hubicka <jh@suse.cz>
1183
1184 * i386.c (ix86_expand_lround, ix86_expand_round): Update call of
1185 real_2expN.
1186
1187 2007-09-06 Jan Hubicka <jh@suse.cz>
1188
1189 * opts.c (common_handle_option): Enable inlining functions for
1190 -fprofile-generate.
1191
1192 2007-09-06 Jakub Jelinek <jakub@redhat.com>
1193
1194 * builtin-attrs.def (ATTR_NONNULL_3): New.
1195 (DEF_FORMAT_ATTRIBUTE): Use just ATTR_NONNULL_##FA instead of
1196 ATTR_NOTHROW_NONNULL_##FA.
1197 (DEF_FORMAT_ATTRIBUTE_NOTHROW, DEF_FORMAT_ATTRIBUTE_BOTH): New macros.
1198 (ATTR_FORMAT_PRINTF_NOTHROW_2_0, ATTR_PRINTF_NOTHROW_2_3,
1199 ATTR_FORMAT_PRINTF_NOTHROW_3_0, ATTR_FORMAT_PRINTF_NOTHROW_3_4,
1200 ATTR_FORMAT_PRINTF_NOTHROW_4_0, ATTR_PRINTF_NOTHROW_4_5,
1201 ATTR_FORMAT_PRINTF_NOTHROW_5_0, ATTR_FORMAT_PRINTF_NOTHROW_5_6,
1202 ATTR_FORMAT_SCANF_NOTHROW_2_0, ATTR_FORMAT_SCANF_NOTHROW_2_3,
1203 ATTR_FORMAT_STRFTIME_NOTHROW_3_0, ATTR_FORMAT_STRFMON_NOTHROW_3_4):
1204 New.
1205 (ATTR_FORMAT_PRINTF_4_0, ATTR_PRINTF_4_5, ATTR_FORMAT_PRINTF_5_0,
1206 ATTR_FORMAT_PRINTF_5_6, ATTR_FORMAT_STRFTIME_3_0,
1207 ATTR_FORMAT_NOTHROW_3_4): Remove.
1208 * builtins.def (snprintf, sprintf, sscanf, vsnprintf, vsprintf,
1209 vsscanf, strfmon, strftime, __snprintf_chk, __sprintf_chk,
1210 __vsnprintf_chk, __vsprintf_chk): Use ATTR_FORMAT_*_NOTHROW_*
1211 instead of ATTR_FORMAT_*_*.
1212
1213 2007-09-06 Hans-Peter Nilsson <hp@axis.com>
1214
1215 * config/cris/cris.c (cris_emit_movem_store): Call copy_rtx on
1216 parts re-used for REG_FRAME_RELATED_EXPR.
1217
1218 2007-09-05 Janis Johnson <janis187@us.ibm.com>
1219
1220 * optabs.c (expand_float): Convert unsigned integer as signed only
1221 if it provides sufficient accuracy; add mode argument to real_2expN.
1222 (expand_fix): Fix comment typos; extend binary float into mode
1223 wider than destination for converion to unsigned integer; add mode
1224 argument to real_2expN.
1225 * real.c (real_2expN): Add mode argument to special-case decimal
1226 float values.
1227 * real.h (real_2expN): Ditto.
1228 * fixed-value.c (check_real_for_fixed_mode): Add mode argument to
1229 real_2expN.
1230 (fixed_from_string): Ditto.
1231 (fixed_to_decimal): Ditto.
1232 (fixed_convert_from_real): Ditto.
1233 (real_convert_from_fixed): Ditto.
1234 * config/rs6000/rs6000.md (FP): Include DD and TD modes.
1235 * config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
1236 muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
1237 floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
1238
1239 2007-09-05 Ian Lance Taylor <iant@google.com>
1240
1241 * init-regs.c (initialize_uninitialized_regs): Call
1242 emit_insn_before rather than add_insn_before.
1243
1244 2007-09-05 Jakub Jelinek <jakub@redhat.com>
1245
1246 * builtins.def (BUILT_IN_VA_ARG_PACK): New built-in.
1247 * tree.h (CALL_EXPR_VA_ARG_PACK): Define.
1248 * tree-inline.h (copy_body_data): Add call_expr field.
1249 * tree-inline.c (expand_call_inline): Initialize call_expr.
1250 (copy_bb): Append anonymous inline fn arguments to arguments
1251 when inlining a CALL_EXPR_VA_ARG_PACK call.
1252 * builtins.c (expand_builtin): Issue an error if
1253 BUILT_IN_VA_ARG_PACK is seen during expand.
1254 (fold_call_expr, fold_builtin_call_array): Don't fold
1255 CALL_EXPR_VA_ARG_PACK CALL_EXPRs or calls with
1256 __builtin_va_arg_pack () call as last argument.
1257 * gimplify.c (gimplify_call_expr): If last argument to a vararg
1258 function is __builtin_va_arg_pack (), decrease number of call
1259 arguments and instead set CALL_EXPR_VA_ARG_PACK on the CALL_EXPR.
1260 * expr.c (expand_expr_real_1): Issue an error if
1261 CALL_EXPR_VA_ARG_PACK CALL_EXPR is seen during expand.
1262 * tree-pretty-print.c (dump_generic_node): Handle printing
1263 CALL_EXPR_VA_ARG_PACK bit on CALL_EXPRs.
1264 * doc/extend.texi (__builtin_va_arg_pack): Document.
1265
1266 2007-09-05 Adam Nemet <anemet@caviumnetworks.com>
1267
1268 PR tree-optimization/21513
1269 * builtins.c (build_builtin_expect_predicate): New function.
1270 (fold_builtin_expect): Add argument for expected value.
1271 Distribute __builtin_expect over short-circuiting operations.
1272 Fold nested builtin_expects.
1273 (fold_builtin_2): Adjust call to fold_builtin_expect.
1274
1275 2007-09-05 Rask Ingemann Lambertsen <rask@sygehus.dk>
1276
1277 PR web/32965
1278 PR tree-optimization/13756
1279 * doc/invoke.texi (Options That Control Optimization): Document
1280 -ftree-dse.
1281
1282 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
1283
1284 * gcc/config/i386/cpuid.h: New file.
1285 * gcc/config/i386/driver-i386.c: Include cpuid.h.
1286 (describe_cache): Shrink size and line strings to 100 bytes.
1287 (detect_caches_amd): Return "" for unsupported max_ext_level.
1288 Use __cpuid function.
1289 (detect_caches_intel): Return "" for unsupported max_level.
1290 Use __cpuid function.
1291 (host_detect_local_cpu): Change feature flag variables to
1292 unsigned int. Initialize only extended feature flag variables.
1293 Use __get_cpuid_max to determine max supported cpuid level.
1294 Use __cpuid function to determine supported features. Fix
1295 calculation of family id. Remove is_amd and check signature
1296 directly. Check for Geode signature. Handle family 4 id.
1297 [PROCESSOR_GENERIC32]: New default for unknown family id. Move
1298 cpu discovery code to lower part of the function.
1299 [PROCESSOR_PENTIUM, PROCESSOR_K6, PROCESSOR_ATHLON]: Do not tune
1300 for sub-architecture.
1301 [PROCESSOR_PENTIUMPRO]: Simplify cpu discovery code.
1302 [PROCESSOR_K8]: Add k8-sse3 architecture.
1303 [PROCESSOR_NOCONA]: Remove.
1304 [PROCESSOR_GENERIC64]: Ditto.
1305 * gcc/config/i386/x-i386 (driver-i386.o): Depend on cpuid.h.
1306 * gcc/config/i386/crtfastmath.c: Include cpuid.h. Use __get_cpuid
1307 to check for SSE and FXSAVE support.
1308 * gcc/config/i386/t-crtfm (crtfastmath.o): Depend on cpuid.h.
1309 Add -minline-all-stringops.
1310 * gcc/config.gcc (i[34567]86-*-*): Add cpuid.h to extra_headers.
1311 (x86_64-*-*): Ditto.
1312
1313 2007-09-05 Jie Zhang <jie.zhang@analog.com>
1314
1315 * config/bfin/linux-unwind.h: New file.
1316 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Define.
1317 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Define.
1318
1319 2007-09-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1320
1321 * Makefile.in (stmt.o): Add alloc-pool.h dependency.
1322 * stmt.c: Include alloc-pool.h.
1323 (struct case_node): Remove GTY marker.
1324 (add_case_node): New parameter case_node_pool. Use it for
1325 allocation of r.
1326 (expand_case): New allocation pool case_node_pool. Initialize it,
1327 pass to add_case_node and free it.
1328
1329 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
1330 David Ung <davidu@mips.com>
1331 Nigel Stephens <nigel@mips.com>
1332
1333 Add mips16/nomips16 function attributes and -mflip-mips16 option
1334 for testing mixed-mode compilation.
1335
1336 * config/mips/mips.opt (mflip-mips16): New.
1337
1338 * config/mips/mips.h (SYMBOL_FLAG_MIPS16_FUNC): Define.
1339 (SYMBOL_FLAG_MIPS16_FUNC_P): Define.
1340
1341 * config/mips/mips.c (mips_base_target_flags): New.
1342 (mips_base_mips16): New.
1343 (mips_base_schedule_insns): New.
1344 (mips_base_reorder_blocks_and_partition): New.
1345 (mips_base_align_loops): New.
1346 (mips_base_align_jumps): New.
1347 (mips_base_align_functions): New.
1348 (mips16_flipper): New.
1349 (mips_attribute_table): Add "mips16" and "nomips16" entries.
1350 (TARGET_SET_CURRENT_FUNCTION): Define.
1351 (mips_mips16_type_p, mips_nomips16_type_p): New.
1352 (mips_comp_type_attributes): Check mips16/nomips16 attributes.
1353 (mips_function_ok_for_sibcall): Make it deal with functions with
1354 mips16 attributes.
1355 (mips_init_split_addresses): New, split out from override_options.
1356 (mips_init_relocs): New, split out from override_options.
1357 (was_mips16_p): New.
1358 (mips_set_mips16_mode): New, split out from override_options.
1359 (mips_set_current_function): New.
1360 (override_options): Add sorry for unsupported mips16/pic
1361 combination. Remove error for mips16/dsp combination. Save
1362 base option settings.
1363 (mips_file_start): Move mips16 mode setting output from here....
1364 (mips_output_function_prologue): ....to here.
1365 (mips_output_mi_thunk): Check for mips16 function.
1366 (build_mips16_function_stub): Don't set .mips16 here.
1367 (build_mips16_call_stub): Likewise.
1368 (mips_expand_builtin): Error in mips16 mode.
1369 (mips_use_mips16_mode_p): New.
1370 (mips_encode_section_info): Check for mips16 function, and set
1371 SYMBOL_REF_FLAGS accordingly.
1372
1373 * doc/extend.texi (Function Attributes): Document new
1374 mips16/nomips16 attributes.
1375 * doc/invoke.texi (Option Summary): Add -mflip-mips16.
1376 (MIPS Options): Document -mflip-mips16.
1377
1378 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
1379
1380 * config/mips/mips.c (mips_legitimize_tls_address): Call sorry
1381 if we encounter TLS address in MIPS16 mode.
1382 (mips_legitimize_const_move): Check cannot_force_const_mem for
1383 the (const (plus symbol offset)) case; this forces invalid TLS
1384 address in MIPS16 mode to be caught by the above call to sorry.
1385 (override_options): Don't reset targetm.have_tls in MIPS16 mode,
1386 because that now enables emutls, which is not ABI compatible
1387 with native TLS in non-MIPS16 mode.
1388
1389 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
1390
1391 Add target hook invoked when cfun changes.
1392
1393 * doc/tm.texi (TARGET_SET_CURRENT_FUNCTION): Document.
1394 * target.h (struct gcc_target): Add set_current_function.
1395 * target-def.h (TARGET_SET_CURRENT_FUNCTION): Define.
1396 (TARGET_INITIALIZER): Add initializer for set_current_function.
1397 * tree.h (push_struct_function): New.
1398 * tree-inline.h (push_cfun, pop_cfun): Move declarations to...
1399 * function.h: Here.
1400 (set_cfun): Declare.
1401 * tree-inline.c (cfun_stack, push_cfun, pop_cfun): Moved to...
1402 * function.c: Here.
1403 (push_function_context_to): Use allocate_struct_function
1404 to create null context, not init_dummy_function_start. Use set_cfun.
1405 (pop_function_context_from): Use set_cfun.
1406 (in_dummy_function): New.
1407 (invoke_set_current_function_hook): New.
1408 (set_cfun): New.
1409 (push_cfun, pop_cfun): Use set_cfun.
1410 (push_struct_function): New.
1411 (allocate_struct_function): Call invoke_set_current_function_hook
1412 before returning.
1413 (prepare_function_start): Don't set cfun here. Remove unused
1414 argument; fix all callers.
1415 (init_dummy_function_start): Fiddle with in_dummy_function. Call
1416 push_struct_function.
1417 (init_function_start): Set cfun here.
1418 (expand_dummy_function_end): Fiddle with in_dummy_function. Pop cfun.
1419 * omp-low.c (create_omp_child_function): Use push_struct_function
1420 and pop_cfun to save/restore state.
1421 (expand_omp_parallel): Remove unused saved_cfun variable.
1422 * cgraphunit.c (ipa_passes): Use set_cfun.
1423 * gimple-low.c (record_vars_into): Use push_cfun/pop_cfun here.
1424 * dwarf2out.c (dwarf2out_abstract_function): Likewise.
1425 * matrix-reorg.c (transform_allocation_sites): Likewise.
1426 (matrix_reorg): Use set_cfun.
1427 * gimplify.c (gimplify_function_tree): Use push_cfun/pop_cfun here.
1428 * tree-optimize.c (tree_rest_of_compilation): Remove one redundant
1429 assignment to cfun; use set_cfun for the other.
1430 * tree-cfg.c (move_sese_region_to_fn): Use set_cfun.
1431 (dump_function_to_file): Use push_cfun/pop_cfun here.
1432 * c-decl.c (finish_function): Use set_cfun.
1433
1434 2007-09-05 Kenneth Zadeck <zadeck@naturalbridge.com>
1435
1436 * regrename.c (rerename_optimize): Use deferred rescanning and
1437 insert explicit calls to rescan insns when changed.
1438
1439 2007-09-05 Jan Hubicka <jh@suse.cz>
1440
1441 * optabs.c (libfunc_entry): Change optab to integer.
1442 (hash_libfunc, convert_optab_libfunc, optab_libfunc,
1443 set_optab_libfunc, set_conv_libfunc): Use optable indexes instead
1444 of pointers for hashing.
1445
1446 2007-09-05 Jan Hubicka <jh@suse.cz>
1447
1448 * regrename.c (pass_regrename, pass_cprop_hardreg): Add RTL sharing
1449 verifier.
1450 * fwprop.c (pass_rtl_fwprop, pass_rtl_fwprop_add): Likewise.
1451 * see.c (pass_see): Likewise.
1452 * tracer.c (pass_tracer): Likewise.
1453 * postreload-gcse.c (pass_gcse2): Likewise.
1454 * postreload.c (pass_postreload_cse): Likewise.
1455 * mode-switching.c (pass_mode_switching): Likewise.
1456 * modulo-sched.c (pass_sms): Likewise.
1457 * cse.c (cse_insn): Likewise.
1458 * web.c (pass_web): Likweise.
1459 * combine-stack-adj.c (pass_stack_adjustments): Likewise.
1460 * dce.c (pass_ud_rtl_dce, pass_fast_rtl_dce): Likewise.
1461 * loop-init.c (pass_rtl_loop_init): Likewise.
1462 (pass_rtl_loop_done, pass_rtl_move_loop_, pass_rtl_unswitch,
1463 pass_rtl_unroll_and, pass_rtl_doloop): Likewise.
1464 * global.c (pass_global_alloc): Likewise.
1465 * ifcvt.c (pass_rtl_ifcvt, pass_if_after_combine,
1466 pass_if_after_reload): Likewise.
1467 * reload.c (pass_peephole2, pass_split_for_shoren_branches): Likewise.
1468 * dse.c (pass_rtl_dse1, pass_rtl_dse2): Likewise.
1469 * regmove.c (pass_regmove): Likewise.
1470 * function.c (pass_thread_prologugues_epilogues): Likewise.
1471 * gcse.c (pass_gcse): Likewise.
1472 * rtl-factoring.c (pass_rtl_seqabstr): Likewise.
1473 * lower-subreg.c (pass_lower_subreg2): Likewise.
1474 * bt-load.c (pass_branch_target_load): Likewise.
1475 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
1476 * cfgcleanup.c (pass_jump, pass_jump2): Likewise.
1477 * combine.c (pass_combine): Likewise.
1478 * bb-reorder.c (pass_duplicate_comp, pass_reorder_blocks): Likewise.
1479 (pass_partition_blocks): Likewise.
1480 * var-tracking.c (pass_variable_track): Likewise.
1481 * reg-stack.c (pass_stack_regs_run): Likewise.
1482 * sched-rgn.c (pass_sched, pass_sched2): Likewise.
1483 * passes.c (pass_postreload): Likewise.
1484 (execute_function_todo): Add TODO_verify_rtl_sharing handling code.
1485 * tree-pass.h (TODO_verify_rtl_sharing): New.
1486 (TODO_update_ssa, TODO_update_ssa_no_phi, TODO_update_ssa_full_phi,
1487 TODO_update_ssa_only_virtuals, TODO_remove_unused_locals,
1488 TODO_set_props, TODO_df_finish, TODO_df_verify,
1489 TODO_mark_first_instance, TODO_rebuild_alias): Renumber.
1490
1491 2007-09-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1492
1493 * fold-const.c (all_ones_mask_p, sign_bit_p, simple_operand_p,
1494 fold_real_zero_addition_p, reorder_operands_p,
1495 div_if_zero_remainder, fold_undefer_overflow_warnings,
1496 int_binop_types_match_p, fold_convert_const_int_from_int,
1497 fold_convert_const_int_from_real,
1498 fold_convert_const_int_from_fixed,
1499 fold_convert_const_real_from_real,
1500 fold_convert_const_real_from_fixed,
1501 fold_convert_const_fixed_from_fixed,
1502 fold_convert_const_fixed_from_int,
1503 fold_convert_const_fixed_from_real, maybe_lvalue_p,
1504 fold_checksum_tree, fold_check_failed, print_fold_checksum,
1505 debug_fold_checksum, multiple_of_p): Constify.
1506 * tree-flow-inline.h (get_lineno): Likewise.
1507 * tree-flow.h (get_lineno): Likewise.
1508 * tree-object-size.c (compute_object_offset, addr_object_size,
1509 alloc_object_size, pass_through_call): Likewise.
1510 * tree-pretty-print.c (op_symbol, print_call_name,
1511 print_struct_decl, do_niy): Likewise.
1512 * tree.h (fold_undefer_overflow_warnings, multiple_of_p,
1513 debug_fold_checksum): Likewise.
1514
1515 2007-09-04 Steven Bosscher <steven@gcc.gnu.org>
1516
1517 PR middle-end/33029
1518 * lower-subreg.c (resolve_clobber): If we remove a REG_LIBCALL
1519 note, remove the associated REG_RETVAL note.
1520
1521 2007-09-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
1522
1523 * config.gcc (powerpc*-*-*): Install
1524 spu2vmx.h, vec_types.h, and si2vmx.h headers.
1525 * config/rs6000/spu2vmx.h: New header.
1526 * config/rs6000/si2vmx.h: New header.
1527 * config/rs6000/vec_types.h: New header.
1528
1529 2007-09-05 Ben Elliston <bje@au.ibm.com>
1530
1531 * varasm.c (initializer_constant_valid_p): Fix comment typo.
1532
1533 2007-09-05 Ben Elliston <bje@au.ibm.com>
1534
1535 * config/rs6000/ppu_intrinsics.h (__ldarx): Use `Z' constraint,
1536 not `m' for *ptrp.
1537 (__stdcx): Make asm volatile.
1538 (__stwcx, __stdcx): Return only 0 or 1.
1539
1540 2007-09-05 Jan Hubicka <jh@suse.cz>
1541
1542 Revert:
1543
1544 2007-09-04 Jan Hubicka <jh@suse.cz>
1545 * tree-tailcall.c (eliminate_tail_call): Expect unrenamed return value.
1546
1547 2007-09-04 Richard Guenther <rguenther@suse.de>
1548 * tree-ssa-operands.c (add_virtual_operand): Only mark
1549 stores as has_volatile_ops if alias information is not available.
1550
1551 2007-09-05 Jakub Jelinek <jakub@redhat.com>
1552
1553 * config/rs6000/tramp.asm: Include config.h.
1554 Check __PIC__ or __pic__ macro instead of SHARED.
1555
1556 PR rtl-optimization/32300
1557 * see.c (see_copy_insn): New function.
1558 (see_def_extension_not_merged, see_merge_one_use_extension,
1559 see_merge_one_def_extension): Use it. Avoid changing
1560 PREV_INSN/NEXT_INSN chains directly, insted emit insns
1561 into sequences. Call df_insn_delete on temporary insns
1562 that won't be emitted into the insn stream.
1563 (rest_of_handle_see): Turn off DF_DEFER_INSN_RESCAN
1564 and run df_process_deferred_rescans () before run_fast_dce.
1565
1566 PR tree-optimization/33017
1567 * tree-data-ref.c (split_constant_offset) <case SSA_NAME>: Don't
1568 recurse for pure or const function calls.
1569
1570 2007-09-04 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1571
1572 * c-format.c: Include alloc-pool.h.
1573 (check_format_info_main): New argument fwt_alloc. Use allocation
1574 pool instead of GC. Remove GC deallocation code.
1575 (check_format_arg): Create allocation pool, pass it to
1576 check_format_info_main and free it afterwards.
1577 * Makefile.in (c-format.o): Add alloc-pool.h dependency.
1578
1579 2007-09-05 Ben Elliston <bje@au.ibm.com>
1580
1581 * config/rs6000/ppu_intrinsics.h (__protected_stream_count):
1582 Rename count macro arugment for clarity.
1583 (__protected_unlimited_stream_set): Pass UG=1 to __dcbt_TH1000.
1584 (__protected_stream_set): Likewise, pass 0.
1585
1586 2007-09-04 Jan Hubicka <jh@suse.cz>
1587
1588 * tree-tailcall.c (eliminate_tail_call): Expect unrenamed return value.
1589
1590 2007-09-04 Jan Hubicka <jh@suse.cz>
1591
1592 * invoke.texi (-finline-small-functions): Document.
1593 * ipa-inline.c (cgraph_default_inline_p): Do not use DECL_INLINE
1594 when deciding what is inlinable.
1595 (cgraph_decide_recursive_inlining): Handle flag_inline_functions.
1596 (cgraph_decide_inlining_of_small_function): Handle new flags.
1597 (cgraph_decide_inlining_incrementally): Likewise.
1598 * opts.c (decode_options): Enable flag_inline_small_functions at -O2
1599 * common.opt (finline-small-functions): New.
1600 * Makefile.in (build/gengtype.o-warn): Work around PR29478
1601
1602 2007-09-04 Richard Guenther <rguenther@suse.de>
1603
1604 * tree-ssa-operands.c (add_virtual_operand): Only mark
1605 stores as has_volatile_ops if alias information is not available.
1606
1607 2007-09-04 Andrew Haley <aph@redhat.com>
1608
1609 * config/arm/libgcc-bpabi.ver: Add _Unwind_Backtrace as GCC_4.3.0.
1610
1611 2007-09-04 Andrew Haley <aph@redhat.com>
1612
1613 * config/arm/libunwind.S (UNWIND_WRAPPER _Unwind_Backtrace): New.
1614 * config/arm/unwind-arm.h (__gnu_Unwind_Backtrace): New.
1615 * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): New.
1616
1617 2007-09-04 Emmanuel Thome <Emmanuel.Thome@inria.fr>
1618
1619 PR c++/14178
1620 * common.opt: Mention ABI version 2 in comment.
1621
1622 2007-09-04 Jan Hubicka <jh@suse.cz>
1623
1624 * optabs.c (debug_optab_libfunc): Update; make available to gdb.
1625 (libfunc_entry): New structure.
1626 (libfunc_hash): New hashtable.
1627 (hash_libfunc): New function.
1628 (eq_libfunc): New function.
1629 (convert_optab_libfunc): New function.
1630 (optab_libfunc): New function.
1631 (expand_binop, sign_expand_binop, expand_twoval_binop_libfunc,
1632 expand_unop, prepare_cmp_insn, prepare_float_insn, gen_add2_insn,
1633 expand_float, expand_fix, new_optab, new_convert_optab):
1634 Update for new libfunc API.
1635 (init_libfunc, init_integral_libfuncs,
1636 init_floating_libfuncs, init_interclass_conv_libfuncs
1637 init_intraclass_conv_libfuncs): Remove; reorganize all logic to:
1638 (gen_libfunc, gen_int_libfunc, gen_fp_libfunc, gen_int_fp_libfunc,
1639 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
1640 gen_int_to_fp_conv_libfunc, gen_ufloat_conv_libfunc,
1641 gen_int_to_fp_nondecimal_conv_libfunc, gen_fp_to_int_conv_libfunc,
1642 gen_intraclass_conv_libfunc, gen_trunc_conv_libfunc,
1643 gen_extend_conv_libfunc): New.
1644 (init_one_libfunc): Revamp for hashtables.
1645 (set_conv_libfunc): Likewise.
1646 (init_optabs): Initialize hashtable; use lazy initialization where
1647 possible.
1648 * optabs.h (optab_handlers): Move out of GGC.
1649 (optab, convert_optab): Move out of GGC; add lazy gen info.
1650 (code_to_optab, convert_optab_table, optab_table): Move out of GGC.
1651 (optab_libfunc, convert_optab_libfunc): New.
1652 * builtins.c (expand_builtin_powi): Update for new API.
1653 * expr.c (convert_move): Likewise.
1654 * expmed.c (expand_divmod): Likewise.
1655
1656 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1657
1658 * config/rs6000/rs6000.c (rs6000_stack_info): Allocate space for the
1659 GOT pointer only if there is a constant pool. Use the allocated space
1660 for SPE also.
1661
1662 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1663
1664 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Correct
1665 typo for AltiVec.
1666
1667 2007-09-04 Revital Eres <eres@il.ibm.com>
1668 Richard Guenther <rguenther@suse.de>
1669 R. Clint Whaley <whaley@cs.utsa.edu>
1670
1671 * doc/invoke.texi (-fassociative-math, -freciprocal-math):
1672 Document new flags.
1673 * tree-tailcall.c (process_assignment): Use -fassociative-math
1674 when reodering operands of floating-point type.
1675 * fold-const.c (fold_comparison, fold_binary): Use
1676 -fassociative-math and -freciprocal-math instead of
1677 -funsafe-math-optimization flag.
1678 * toplev.h (set_unsafe_math_optimizations_flags): Declare function.
1679 * tree-ssa-math-opts.c (gate_cse_reciprocals): Use
1680 -freciprocal-math instead of -funsafe-math-optimizations.
1681 * opts.c (set_fast_math_flags): Set -freciprocal-math and
1682 -fassociative-math when -ffast-math is set.
1683 (set_unsafe_math_optimizations_flags): New Function
1684 to set -freciprocal-math and -fassociative-math when
1685 -funsafe-math-optimizations is set.
1686 (common_handle_option): Call it.
1687 * tree-vectorizer.c (vect_is_simple_reduction): Use
1688 -fassociative-math when doing reduction on floats.
1689 * loop-unroll.c (analyze_insn_to_expand_var): Use
1690 -fassociative-math when expanding an accumulator of type float.
1691 * simplify-rtx.c (simplify_binary_operation_1): Use
1692 -fassociative-math and -freciprocal-math when reordeing operands
1693 of floating-point type.
1694 * combine.c (combine_simplify_rtx): Likewise.
1695 * tree-ssa-reassoc.c (break_up_subtract_bb, reassociate_bb):
1696 Likewise.
1697 * common.opt (-fassociative-math, -freciprocal-math): New flags.
1698
1699 2007-09-04 Paolo Carlini <pcarlini@suse.de>
1700
1701 PR c++/18608
1702 * doc/install.texi (--enable-__cxa_atexit): Fix typo.
1703
1704 2007-09-04 Jan Hubicka <jh@suse.cz>
1705
1706 * regrename.c(copyprop_hardreg_forward_1): Unshare when doing copyprop.
1707
1708 2007-09-04 Jan Hubicka <jh@suse.cz>
1709
1710 * regrename.c (build_def_use): Don't share RTL between MATCH_OPERATOR
1711 and corresponding MATCH_DUP.
1712
1713 2007-09-04 Uros Bizjak <ubizjak@gmail.com>
1714
1715 PR middle-end/33187
1716 * combine.c (subst): Do not try to simplify X if it represents load
1717 of FP constant from the constant pool via float extension.
1718
1719 2007-09-04 Ben Elliston <bje@au.ibm.com>
1720
1721 * c-opts.c: Include "tm_p.h".
1722 * Makefile.in (c-opts.o): Add $(TM_P_H) as a dependency.
1723
1724 2007-09-04 Richard Guenther <rguenther@suse.de>
1725
1726 PR tree-optimization/33291
1727 * tree-pretty-print.c (dump_generic_node): Dump all
1728 qualifiers for pointer types, not only first. Dump
1729 qualifiers for aggregate types as well.
1730 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Always
1731 use the canonical type for building ARRAY_REFs.
1732 * gimplify.c (canonicalize_addr_expr): Clean up. The
1733 correct validness check is compatibility of the pointer
1734 types. Always use the canonical type for building
1735 ARRAY_REFs and ADDR_EXPRs.
1736 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Revert
1737 change that disabled propagation of ADDR_EXPRs into statements
1738 with volatile ops.
1739
1740 2007-09-03 Zack Weinberg <zack@codesourcery.com>
1741
1742 * config/arm/arm.md (mulsidi3, umulsidi3, mulsi3_highpart)
1743 (umulsi3_highpart): Make into expanders; existing insns are
1744 now named *[insn]_nov6. Add stars to existing [insn]_v6
1745 counterparts' names.
1746
1747 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
1748
1749 * Makefile.in (DRIVER_DEFINES, gcc.o, gccspec.o, protoize.o)
1750 (unprotoize.o): Remove SHLIB_MULTILIB.
1751
1752 2007-09-03 Eric Weddington <eweddington@cso.atmel.com>
1753
1754 * doc/extend.texi: Document progmem attribute for AVR.
1755
1756 2007-09-03 Anatoly Sokolov <aesok@post.ru>
1757
1758 PR target/28902
1759 * config/avr/avr.h (TARGET_VTABLE_ENTRY_ALIGN): Define.
1760
1761 2007-09-03 Zack Weinberg <zack@codesourcery.com>
1762
1763 * optabs.c (expand_ffs): Initialize val and defined_at_zero
1764 to avoid warnings.
1765
1766 * optabs.c: Remove unnecessary forward declarations.
1767 (expand_unop_direct): New, broken out of expand_unop.
1768 (expand_doubleword_clz): New.
1769 (expand_ctz): Move above expand_ffs. Use
1770 start_sequence, end_sequence, add_equal_note, and
1771 expand_unop_direct. Add more commentary.
1772 (expand_ffs): Try both ctz optab and expand_ctz.
1773 Generate a test and branch if the hardware doesn't give us
1774 a useful value for input zero. Style improvements similar to
1775 expand_ctz.
1776
1777 * config/arm/arm.md (ffssi2, ctzsi2): Delete.
1778
1779 2007-09-03 Zack Weinberg <zack@codesourcery.com>
1780
1781 * config.gcc: Delete stanza for arm-semi-aof and
1782 armel-semi-aof targets.
1783 * config/arm/arm-protos.h
1784 * config/arm/arm.c
1785 * config/arm/arm.h: Delete all #ifdef AOF_ASSEMBLER blocks;
1786 make all #ifndef AOF_ASSEMBLER blocks unconditional. Also
1787 delete aof_pic_label and remove mention of AOF in comments.
1788 * config/arm/arm.md: Delete patterns used only for AOF assembly.
1789 * config/arm/aof.h
1790 * config/arm/semiaof.h
1791 * config/arm/t-semi: Delete file.
1792
1793 2007-09-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1794
1795 * system.h (CONST_CAST2, CONST_CAST_TREE, CONST_CAST_RTX,
1796 CONST_CAST_BB): New macros for type-specific casts.
1797 (CONST_CAST): Add a TYPE parameter and define it in terms of
1798 CONST_CAST2.
1799
1800 * c-decl.c (c_make_fname_decl): Supply a TYPE for CONST_CAST.
1801 * c-lex.c (cb_ident, lex_string): Likewise,
1802 * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise,
1803 * config/i386/i386.c (ix86_function_regparm,
1804 ix86_function_sseregparm): Use CONST_CAST_TREE.
1805 * config/mmix/mmix.c (mmix_encode_section_info): Supply a TYPE for
1806 CONST_CAST.
1807 * gcc.c (set_spec, read_specs, for_each_path, execute, do_spec_1,
1808 give_switch, set_multilib_dir): Likewise,
1809 * gengtype-parse.c (string_seq, typedef_name): Likewise,
1810 * gimple-low.c (block_may_fallthru): Use CONST_CAST_TREE.
1811 * jump.c (reversed_comparison_code_parts): Use CONST_CAST_RTX.
1812 * passes.c (execute_one_pass): Supply a TYPE for CONST_CAST.
1813 * prefix.c (update_path): Likewise,
1814 * pretty-print.c (pp_base_destroy_prefix): Likewise,
1815 * rtlanal.c (keep_with_call_p): Use CONST_CAST_RTX.
1816 * tree-cfg.c (tree_can_merge_blocks_p,
1817 tree_block_ends_with_condjump_p): Use CONST_CAST_BB.
1818 * tree-eh.c (lookup_stmt_eh_region_fn): USe CONST_CAST_TREE.
1819 * tree.c (build_string): Supply a TYPE for CONST_CAST.
1820 (attribute_list_contained): Use CONST_CAST_TREE.
1821
1822 2007-09-03 Krister Walfridsson <cato@df.lth.se>
1823
1824 * config/netbsd-elf.h (USE_LD_AS_NEEDED): Define.
1825
1826 2007-09-03 Richard Sandiford <richard@codesourcery.com>
1827
1828 PR middle-end/33290
1829 * optabs.c (avoid_expensive_constant): Canonicalize CONST_INTs
1830 before forcing them into a register.
1831
1832 2007-09-03 Richard Sandiford <richard@codesourcery.com>
1833
1834 * config/mips/mips.md (fetchop_bit): Use define_code_iterator
1835 rather than define_code_macro.
1836
1837 2007-09-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1838
1839 * gcc.c (xputenv): New function.
1840 (putenv_from_prefixes): Use xputenv instead of putenv.
1841 (process_command): Use xputenv instead of putenv.
1842 (set_collect_gcc_options): Use xputenv instead of putenv.
1843 (main): Use xputenv instead of putenv.
1844
1845 2007-09-03 Jesper Nilsson <jesper.nilsson@axis.com>
1846
1847 * config/cris/cris.h (TARGET_HAS_SWAP): Defined to describe
1848 availability of swap instruction.
1849 * config/cris/cris.md (bswapsi2): Implement using swap instruction.
1850
1851 2007-09-03 Revital Eres <eres@il.ibm.com>
1852
1853 * doc/invoke.texi (-fmodulo-sched-allow-regmoves): Update
1854 Documentation.
1855
1856 2007-09-03 Vladimir Yanovsky <yanov@il.ibm.com>
1857 Ayal Zaks <zaks@il.ibm.com>
1858 Revital Eres <eres@il.ibm.com>
1859
1860 * modulo-sched.c (ps_insert_empty_row, verify_partial_schedule,
1861 compute_split_row): New functions.
1862 (ps_unschedule_node): Remove.
1863 (normalize_sched_times): Iterate over the already scheduled
1864 insns instead of the number of nodes.
1865 (MAX_SPLIT_NUM): New definition.
1866 (sms_schedule_by_order): Change the scheduling heuristic to
1867 avoid useless increases of initiation interval ii.
1868 (get_sched_window): Add dump printouts.
1869
1870 2007-09-02 David Daney <ddaney@avtrex.com>
1871
1872 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP, UNSPEC_SYNC_OLD_OP,
1873 UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE): New define_constants.
1874 (optab, insn): Add more attributes.
1875 (fetchop_bit): New code macro.
1876 (immediate_insn): New code macro attribute.
1877 (sync): Change condition to ISA_HAS_SYNC.
1878 (rdhwr): Change predicate for operand 0 to register_operand.
1879 (memory_barrier): New expand.
1880 (sync_compare_and_swap<mode>, sync_add<mode>, sync_sub<mode>,
1881 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
1882 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
1883 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
1884 sync_new_nand<mode>, sync_lock_test_and_set<mode>): New insns.
1885 * config/mips/mips.h (ISA_HAS_SYNC, ISA_HAS_LL_SC): New ISA predicates.
1886 (MIPS_COMPARE_AND_SWAP, MIPS_SYNC_OP, MIPS_SYNC_OLD_OP,
1887 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
1888 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE): New Macros.
1889
1890 2007-09-03 Jesper Nilsson <jesper.nilsson@axis.com>
1891 Hans-Peter Nilsson <hp@axis.com>
1892
1893 * config/cris/cris.h (TARGET_HAS_LZ, CLZ_DEFINED_VALUE_AT_ZERO):
1894 Defined to describe availability and behavior of CLZ.
1895 * config/cris/cris.md (clzsi2): Implement using lz instruction.
1896 * config/cris/cris.opt: Tweak comment for "-metrax4".
1897 * config/cris/arit.c (LZ): When defined, define as __builtin_clz.
1898 * longlong.h [__CRIS__ && __CRIS_arch_version >= 3]
1899 (count_leading_zeros): Define.
1900
1901 2007-09-01 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1902
1903 * ggc-page.c (ggc_pch_read): Call validate_free_objects.
1904
1905 2007-09-02 Joseph Myers <joseph@codesourcery.com>
1906
1907 PR middle-end/33272
1908 * c-decl.c (grokdeclarator): Apply qualifiers to type of parameter
1909 decayed from array.
1910
1911 2007-09-01 Kazu Hirata <kazu@codesourcery.com>
1912
1913 * config/arm/arm.c, config/rs6000/ppu_intrinsics.h,
1914 config/spu/spu.c, df-scan.c, fixed-value.c, fold-const.c,
1915 ginclude/tgmath.h, haifa-sched.c, optabs.c, recog.c,
1916 sched-deps.c, sched-int.h, system.h, target.h,
1917 tree-ssa-live.c, tree-vect-transform.c, tree-vectorizer.c,
1918 tree.def: Fix comment typos.
1919
1920 2007-09-01 Kazu Hirata <kazu@codesourcery.com>
1921
1922 * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove.
1923 (override_options): Turn on -mstrict-align on non-ColdFire
1924 targets.
1925 * config/m68k/m68k.h (BIGGEST_ALIGNMENT): Update a comment.
1926
1927 2007-09-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1928
1929 * c-common.c (const_strip_array_types): Delete.
1930 * c-common.h (const_strip_array_types): Likewise.
1931 * emit-rtl.c (const_next_insn, const_previous_insn,
1932 const_next_nonnote_insn, const_prev_nonnote_insn,
1933 const_next_real_insn, const_prev_real_insn,
1934 const_next_active_insn, const_prev_active_insn, const_next_label,
1935 const_prev_label): Delete.
1936 * gimple-low.c (block_may_fallthru): Use expr_last.
1937 * jump.c (reversed_comparison_code_parts): Use prev_nonnote_insn.
1938 * rtl.h (const_previous_insn, const_next_insn,
1939 const_prev_nonnote_insn, const_next_nonnote_insn,
1940 const_prev_real_insn, const_next_real_insn,
1941 const_prev_active_insn, const_next_active_insn, const_prev_label,
1942 const_next_label): Delete.
1943 * rtlanal.c (keep_with_call_p): Use next_nonnote_insn.
1944 * system.h (CONST_CAST): Update comment.
1945 * tree-cfg.c (tree_can_merge_blocks_p): Use last_stmt.
1946 (const_first_stmt, const_last_stmt): Delete.
1947 (tree_block_ends_with_condjump_p): Use last_stmt.
1948 * tree-flow.h (const_first_stmt, const_last_stmt): Delete.
1949 * tree-iterator.c (const_expr_first, const_expr_last,
1950 const_expr_only): Delete.
1951 * tree.c (const_lookup_attribute): Likewise.
1952 (attribute_list_contained): Use lookup_attribute.
1953 * tree.h (const_lookup_attribute, const_expr_first,
1954 const_expr_last, const_expr_only): Delete.
1955
1956 2007-09-01 Richard Guenther <rguenther@suse.de>
1957
1958 * tree-ssa-alias.c (create_name_tags): Use TYPE_VOLATILE
1959 instead of TREE_THIS_VOLATILE.
1960 * tree-ssa-operands.c (add_virtual_operand): Do not set
1961 has_volatile_ops. Do not check s_ann for NULL.
1962 (get_indirect_ref_operands): Likewise.
1963 (get_expr_operands): Likewise. For all reference trees
1964 set has_volatile_ops based on TREE_THIS_VOLATILE. Also
1965 check base of reference for TREE_THIS_VOLATILE.
1966
1967 2007-09-01 Richard Guenther <rguenther@suse.de>
1968
1969 * tree-cfg.c (verify_gimple_expr): Fix check for conversions
1970 between integral types. Also allow conversions between
1971 pointer types.
1972
1973 2007-08-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
1974
1975 * optabs.c (prepare_float_lib_cmp): Use
1976 libgcc_cmp_return_mode instead of word_mode.
1977 * config/dfp-bit.h: Likewise.
1978 * config/fp-bit.h: Likewise.
1979 * config/spu/spu.c (spu_libgcc_cmp_return_mode):
1980 New function.
1981 (spu_libgcc_shift_count_mode): New function.
1982 (TARGET_LIBGCC_CMP_RETURN_MODE): Define.
1983 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Define.
1984
1985 2007-08-31 Joseph Myers <joseph@codesourcery.com>
1986
1987 * tree-pretty-print.c: Include output.h.
1988 (dump_decl_name, dump_generic_node): Use %wd with pp_printf, not
1989 HOST_WIDE_INT_PRINT_DEC.
1990 * Makefile.in (tree-pretty-print.o): Add dependency on output.h.
1991
1992 2007-08-31 Zdenek Dvorak <ook@ucw.cz>
1993
1994 PR rtl-optimization/33224
1995 * loop-iv.c (latch_dominating_def): Check that the definition belongs
1996 to the analysed region.
1997
1998 2007-08-31 Richard Guenther <rguenther@suse.de>
1999
2000 * function.c (allocate_struct_function): Do not set
2001 current_function_returns_pointer.
2002 * function.h (struct var_refs_queue): Remove.
2003 (struct simple_obstack_stack): Likewise.
2004 (struct function): Remove fixup_var_refs_queue member.
2005 Remove returns_pointer flag.
2006 (current_function_returns_pointer): Remove define.
2007
2008 2007-08-31 Nick Clifton <nickc@redhat.com>
2009
2010 * tree-ssa-coalesce.c (compare_pairs): Use the elements as
2011 secondary keys in order to obtain a stable sort.
2012
2013 2007-08-31 Nick Clifton <nickc@redhat.com>
2014
2015 PR target/33132
2016 * config/m32r/constraints.md: Add W constraint for integer zero.
2017 * config/m32r/m32r.md (get_pc): Use W and i constraints.
2018 Fix length calculation by using alternatives.
2019
2020 2007-08-31 Richard Sandiford <richard@codesourcery.com>
2021
2022 * optabs.c (shift_optab_p, commutative_optab_p): New functions,
2023 split out from expand_binop.
2024 (avoid_expensive_constant): New function.
2025 (expand_binop_directly): Remove commutative_op argument and
2026 (expand_binop_directly): Remove commutative_op argument and
2027 call cummutative_optab_p instead. Do not change op0 or op1
2028 when swapping xop0 and xop1. Apply avoid_expensive_constant
2029 to each argument after potential swapping. Enforce the
2030 canonical order of commutative operands.
2031 (expand_binop): Use shift_optab_p and commutative_optab_p.
2032 Update the calls to expand_binop_directly. Only force constants
2033 into registers when widening an operation. Only swap operands
2034 once a direct expansion has been rejected.
2035 (expand_twoval_binop): Only force constants into registers when
2036 using a direct expansion.
2037
2038 2007-08-31 Maxim Kuvyrkov <maxim@codesourcery.com>
2039
2040 * sched-deps.c (update_dep): Mark arguments with ATTRIBUTE_UNUSED.
2041 (sched_analyze_insn): Don't postprocess speculative dependencies when
2042 target has no scheduling.
2043 * tree-vect-transform.c (vect_estimate_min_profitable_iters): Fix
2044 'uninitialized' warning.
2045
2046 2007-08-31 Richard Guenther <rguenther@suse.de>
2047
2048 * tree.c (build_complex_type): Always set TYPE_NAME for
2049 comples types.
2050
2051 2007-08-31 Olivier Hainque <hainque@adacore.com>
2052
2053 * config/rs6000/xcoff.h (XCOFF_CSECT_DEFAULT_ALIGNMENT_STR): New
2054 internal macro. Default alignment factor for csect directives, chosen
2055 to match what BIGGEST_ALIGNMENT allows.
2056 (DATA_SECTION_ASM_OP): Use it.
2057 * config/rs6000/rs6000.c
2058 (rs6000_xcoff_output_readonly_section_asm_op):
2059 Use XCOFF_CSECT_DEFAULT_ALIGNMENT_STR.
2060 (rs6000_xcoff_output_readwrite_section_asm_op): Likewise.
2061
2062 2007-08-31 Olivier Hainque <hainque@adacore.com>
2063
2064 * dbxout.c (dbxout_block): Move declaration within the first
2065 #if defined (DBX_DEBUGGING_INFO) block. Rearrange another such
2066 block to include the definition, together with the associated
2067 helpers.
2068
2069 2007-08-31 David Edelsohn <edelsohn@gnu.org>
2070 Revital Eres <eres@il.ibm.com>
2071
2072 * doc/invoke.texi (-mpaired): Document flag.
2073 * config.gcc: Include paired.h in powerpc extra_headers and
2074 750cl.h in powerpc-*-linux*paired*.
2075 * config/rs6000/rs6000.opt (-mpaired): New flag.
2076 * config/rs6000/rs6000.c (paired_init_builtins,
2077 paired_expand_builtin, paired_expand_lv_builtin,
2078 paired_expand_stv_builtin, paired_expand_predicate_builtin):
2079 New functions to support the paired single builtin functions.
2080 (rs6000_hard_regno_mode_ok): Handle PAIRED_VECTOR_MODE.
2081 (def_builtin, bdesc_3arg, bdesc_2arg, bdesc_1arg): Add paired
2082 single builtins.
2083 (bdesc_paired_preds): New structure for paired predicate
2084 instructions.
2085 (rs6000_expand_builtin): Expand paired single builtins.
2086 (rs6000_init_builtins): Init paired single builtins.
2087 (rs6000_common_init_builtins): Add v2sf_ftype_v2sf_v2sf_v2sf.
2088 Rename v2sf_ftype_v2sf_v2sf to v2sf_ftype_v2sf_v2sf_spe
2089 and v2sf_ftype_v2sf_spe to v2sf_ftype_v2sf. Add new types
2090 v2sf_ftype_v2sf_v2sf and v2sf_ftype_v2sf.
2091 (rs6000_vector_mode_supported_p): Support paired vector mode.
2092 * config/rs6000/rs6000.h: (UNITS_PER_PAIRED_WORD,
2093 PAIRED_VECTOR_MODE, PAIRED_SIMD_REGNO_P, TARGET_PAIRED_FLOAT):
2094 New.
2095 (LOCAL_ALIGNMENT): Handle PAIRED_VECTOR_MODE.
2096 (DATA_ALIGNMENT): Likewise.
2097 (UNITS_PER_SIMD_WORD): Handle PAIRED_VECTOR_MODE.
2098 (rs6000_builtins): Add PAIRED builtins.
2099 * config/rs6000/rs6000.md: Include paired.md.
2100 * config/rs6000/paired.h: New.
2101 * config/rs6000/paired.md: New.
2102 * config/rs6000/750cl.h: New.
2103 * config/rs6000/spe.md: Recognize movv2sf instruction for 750cl.
2104
2105 2007-08-30 Ollie Wild <aaw@google.com>
2106
2107 * c-opts.c (c_common_handle_option): Support -fno-directives-only.
2108 * gcc.c (default_compilers): Add -fno-directives-only to
2109 @assembler-with-cpp.
2110
2111 2007-08-30 Sandra Loosemore <sandra@codesourcery.com>
2112
2113 PR middle-end/33211
2114
2115 * regclass.c (initial_fixed_regs): Revert previous change and make
2116 it const again.
2117 (initial_call_used_regs): Likewise.
2118 (initial_call_really_used_regs): Delete, reverting previous addition.
2119 (initial_reg_names): Likewise.
2120 (init_reg_sets): Revert previous change.
2121 (saved_fixed_regs): New.
2122 (saved_call_used_regs): New.
2123 (saved_call_really_used_regs): New.
2124 (saved_reg_names): New.
2125 (save_register_info): New.
2126 (restore_register_info): New.
2127 (init_reg_sets_1): Replace reset of register info with call to
2128 restore_register_info.
2129 * rtl.h (save_register_info): Declare.
2130 * toplev.c (backend_init): Call save_register_info.
2131
2132 2007-08-30 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2133
2134 * tree-ssa-propagate.c (set_rhs): Remove the copied annotation
2135 from the original statement.
2136
2137 2007-08-30 Chao-ying Fu <fu@mips.com>
2138
2139 * c-lex.c (interpret_fixed): Declare.
2140 (interpret_float): Process _Fract and _Accum.
2141 (interpret_fixed): New function.
2142 * final.c (output_addr_const): Process CONST_FIXED.
2143 * simplify-rtx.c (simplify_const_unary_operation): Handle US_NEG.
2144 (simplify_binary_operation_1): Handle US_ASHIFT, SS_MULT, US_MULT,
2145 SS_DIV, US_DIV.
2146 (simplify_const_binary_operation): Handle SS_MULT, US_MULT, SS_DIV,
2147 US_DIV, US_ASHIFT.
2148 (simplify_immed_subreg): Support CONST_FIXED.
2149 Process MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
2150 (simplify_subreg): Support CONST_FIXED.
2151
2152 2007-08-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
2153
2154 * config/rs6000/ppu_intrinsics.h: New file.
2155 * config.gcc (powerpc*-*-* <extra_headers>): Install
2156 ppu_intrinsics.h.
2157
2158 2007-08-30 Kenneth Zadeck <zadeck@naturalbridge.com>
2159
2160 * cfg.c (dump_flow_info): Change to also print entry and exit
2161 block info.
2162 * print-rtl.c (print_rtl_single): Allow to print rtl with
2163 -fdump-unnumbered.
2164
2165 2007-08-30 Kenneth Zadeck <zadeck@naturalbridge.com>
2166
2167 * df-core.h (df_dump_region): New function.
2168 * df.h (df_dump_region): New function.
2169 * loop-invariant.c (find_defs): Add call to df_dump_region.
2170 * loop-iv.c (iv_analysis_loop_init): Changed call from df_dump to
2171 df_dump_region.
2172
2173 2007-08-30 Jakub Jelinek <jakub@redhat.com>
2174
2175 PR target/33168
2176 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Return
2177 true if any of the compare_section_name calls returned true,
2178 rather than if any returned false.
2179
2180 2007-08-30 Richard Guenther <rguenther@suse.de>
2181
2182 PR tree-optimization/33199
2183 * tree-ssa-structalias.c (handle_lhs_call): New function.
2184 (find_func_aliases): In non-IPA mode make sure that for
2185 calls that return a pointer we add a constraint for the
2186 result to point to anything.
2187
2188 2007-08-30 Richard Guenther <rguenther@suse.de>
2189
2190 * doc/invoke.texi (-mveclibabi): Document new target option.
2191 * config/i386/i386.opt (-mveclibabi): New target option.
2192 * config/i386/i386.c (ix86_veclib_handler): Handler for
2193 vectorization library support.
2194 (override_options): Handle the -mveclibabi option, initialize
2195 the vectorization library handler.
2196 (ix86_builtin_vectorized_function): As fallback call the
2197 vectorization library handler, if set.
2198 (ix86_veclibabi_acml): New static function for ACML ABI style
2199 vectorization support.
2200
2201 2007-08-30 Jakub Jelinek <jakub@redhat.com>
2202
2203 * config/rs6000/rs6000.c (rs6000_emit_sync): For QI or HI mode
2204 used_m, even if it is 32-bit aligned, adjust used_m MEM to have
2205 SImode and update m. Don't run gen_lowpart_common on arbitrary
2206 memory address, force it to register first.
2207
2208 PR middle-end/32758
2209 * dce.c (dce_process_block): Don't delete setters of
2210 artificially used registers.
2211
2212 2007-08-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2213
2214 * config/s390/s390.md ("*add<mode>3_alc_carry1_cc",
2215 "*add<mode>3_alc_carry1_cconly", "*add<mode>3_alc_carry2_cc",
2216 "*add<mode>3_alc_carry2_cconly"): New insn definitions.
2217
2218 2007-08-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2219
2220 * config/s390/s390.c (s390_expand_addcc): Emit canonical alc
2221 pattern.
2222 * config/s390/s390.md ("*add<mode>3_alc_cc", "*add<mode>3_alc",
2223 "addti3", "*adddi3_31z", "*scond<mode>"): Make alc pattern canonical.
2224
2225 2007-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2226
2227 * system.h: Activate -Wcast-qual as warning-only.
2228
2229 2007-08-29 Paolo Bonzini <bonzini@gnu.org>
2230
2231 PR target/33168
2232 * config/rs6000/rs6000.c (compare_section_name): New function.
2233 (rs6000_elf_in_small_data_p): Compare section prefixes instead
2234 of full name.
2235
2236 2007-08-29 Olivier Hainque <hainque@adacore.com>
2237
2238 * xcoffout.c: #include debug.h.
2239 * Makefile.in (xcoffout.o): Add debug.h dependency.
2240
2241 2007-08-29 Uros Bizjak <ubizjak@gmail.com>
2242
2243 * simplify-rtx.c (simplify_binary_operation_1) [VEC_SELECT]:
2244 Change CONST_VECTOR_ELT to XVECEXP in elem calculation.
2245
2246 2007-08-29 Richard Guenther <rguenther@suse.de>
2247
2248 * tree-pretty-print.c (dump_generic_node): Print
2249 label DECL_UID as D.%u.
2250 * tree-dfa.c (dump_variable): Print DECL_UID as D.%u.
2251
2252 2007-08-29 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2253
2254 * gcc/builtin-types.def (BT_FN_PTR_PTR_SIZE): New type.
2255 * gcc/builtins.def (BUILT_IN_REALLOC): New builtin.
2256
2257 2007-08-29 Douglas Gregor <doug.gregor@gmail.com>
2258
2259 PR c++/33194
2260 * tree.c (build_type_attribute_qual_variant): Set canonical types
2261 on the final, unqualified attribute variant before building the
2262 qualified version.
2263
2264 2007-08-29 Jie Zhang <jie.zhang@analog.com>
2265
2266 * config/bfin/bfin.c (bfin_expand_builtin): Fix the argument
2267 order of __builtin_bfin_cmplx_mac and __builtin_bfin_cmplx_msu.
2268
2269 2007-08-29 Jie Zhang <jie.zhang@analog.com>
2270
2271 Revert
2272 2007-08-29 Jie Zhang <jie.zhang@analog.com>
2273 * config/bfin/bfin.md (composev2hi): Put operands into vector
2274 with correct order.
2275
2276 2007-08-29 Jie Zhang <jie.zhang@analog.com>
2277
2278 * config/bfin/bfin.md (composev2hi): Put operands into vector
2279 with correct order.
2280
2281 2007-08-29 Jie Zhang <jie.zhang@analog.com>
2282
2283 * config/bfin/bfin.c (bfin_expand_call): Inline PLT with l1_text
2284 attribute when appropriate.
2285 (bfin_handle_l1_text_attribute): New.
2286 (bfin_handle_l1_data_attribute): New.
2287 (bfin_attribute_table): Add attributes: l1_text, l1_data,
2288 l1_data_A and l1_data_B.
2289 * doc/extend.texi (node Function Attributes): Document l1_text
2290 function attribute.
2291 (Variable Attributes): Add Blackfin subsection. Document l1_data,
2292 l1_data_A and l1_data_B variable attributes.
2293
2294 2007-08-28 Jie Zhang <jie.zhang@analog.com>
2295
2296 * config/bfin/bfin.opt (minline-plt): Add.
2297 * config/bfin/bfin.c (bfin_expand_call): Inline PLT when emit
2298 call to global functions.
2299 * doc/invoke.texi (Option Summary): Mention -minline-plt.
2300 (Blackfin Options): Document -minline-plt.
2301
2302 2007-08-28 Nathan Sidwell <nathan@codesourcery.com>
2303
2304 * config/m68k/m68k.c (m68k_get_function_kind): Assert we're never
2305 given a non-function.
2306 (m68k_ok_for_sibcall_p): Only sibcall functions of the same kind.
2307
2308 2007-08-28 DJ Delorie <dj@redhat.com>
2309
2310 * config/sh/sh.c (sh_gimplify_va_arg_expr): Fix sh2a support.
2311
2312 2007-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2313
2314 * system.h (CONST_CAST): Avoid union for gcc-4.0.x.
2315
2316 2007-08-28 Richard Guenther <rguenther@suse.de>
2317
2318 * tree.h (struct tree_function_decl): Increase size of
2319 function_code bitfield.
2320
2321 2007-08-28 Nathan Sidwell <nathan@codesourcery.com>
2322 Kazu Hirata <kazu@codesourcery.com>
2323
2324 * gcc/config/m68k/linux.h
2325 (M68K_HONOR_TARGET_STRICT_ALIGNMENT): Redefine as 0.
2326 * config/m68k/m68k.c (TARGET_RETURN_IN_MEMORY): New.
2327 (m68k_return_in_memory): New.
2328 * gcc/config/m68k/m68k.h (M68K_HONOR_TARGET_STRICT_ALIGNMENT):
2329 New.
2330
2331 2007-08-28 Uros Bizjak <ubizjak@gmail.com>
2332
2333 PR target/32661
2334 * simplify-rtx.c (simplify_binary_operation_1) [VEC_SELECT]:
2335 Simplify nested VEC_SELECT (with optional VEC_CONCAT operator as
2336 operand) when top VEC_SELECT extracts scalar element.
2337 * config/i386/sse.md (*vec_extract_v4si_mem): New pattern.
2338 (*vec_extract_v4sf_mem): Ditto.
2339
2340 2007-08-28 Jakub Jelinek <jakub@redhat.com>
2341
2342 PR middle-end/32370
2343 * passes.c (init_optimization_passes): Move pass_df_finish
2344 after pass_postreload sublist.
2345
2346 PR rtl-optimization/33148
2347 * simplify-rtx.c (simplify_unary_operation_1): Only optimize
2348 (neg (lt X 0)) if X has scalar int mode.
2349
2350 PR debug/32914
2351 * dwarf2out.c (rtl_for_decl_init): If vector decl has CONSTRUCTOR
2352 initializer, use build_vector_from_ctor if possible to create
2353 VECTOR_CST out of it. If vector initializer is not VECTOR_CST
2354 even after this, return NULL.
2355
2356 2007-08-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
2357
2358 * c-pretty-print.c (pp_c_constant): Handle COMPLEX_CST.
2359
2360 2007-08-28 Richard Guenther <rguenther@suse.de>
2361
2362 * tree.h (DECL_DISREGARD_INLINE_LIMITS): New.
2363 (struct tree_function_decl): Make function_code a bitfield.
2364 Add disregard_inline_limits flag.
2365 * cgraphunit.c (cgraph_process_new_functions): Check
2366 DECL_DISREGARD_INLINE_LIMITS instead of disregard_inline_limits_p.
2367 (cgraph_preserve_function_body_p): Likewise.
2368 * ipa-inline.c (compute_inline_parameters): Likewise.
2369 * c-decl.c (finish_function): Set DECL_DISREGARD_INLINE_LIMITS
2370 for GNU C extern inline functions.
2371 (merge_decls): Merge DECL_DISREGARD_INLINE_LIMITS.
2372 * tree-inline.c (disregard_inline_limits_p): Remove.
2373 * tree-inline.h (disregard_inline_limits_p): Likewise.
2374 * c-common.c (handle_always_inline_attribute): Set
2375 DECL_DISREGARD_INLINE_LIMITS.
2376 * langhooks.c (add_builtin_function): Verify the function code
2377 fits in the bitfield.
2378
2379 2007-08-28 Mircea Namolaru <namolaru@il.ibm.com>
2380 Vladimir Yanovsky <yanov@il.ibm.com>
2381 Revital Eres <eres@il.ibm.com>
2382 Andrey Belevantsev <abel@ispras.ru>
2383
2384 * config/spu/spu.md: Recognize doloop pattern when -fmodulo-sched
2385 is set.
2386 * modulo-sched.c: Add documentation regarding do-loop.
2387 (doloop_register_get): Change number of arguments to support
2388 the new do-loop pattern and check whether COUNT_REG has no other
2389 occurences in the loop besides in the control part.
2390 (duplicate_insns_of_cycles): Do not duplicate the insn which
2391 changes count_reg as it is already adjusted.
2392 (generate_prolog_epilog): New argument to support the new
2393 do-loop pattern. Change the subtract instruction to use
2394 expand_simple_binop. Call duplicate_insns_of_cycles with new
2395 argument.
2396 (sms_schedule): Call doloop_register_get and
2397 generate_prolog_epilog with new argument. Do not handle loops
2398 with single sets insns with subreg in their lhs.
2399 * loop-doloop.c (doloop_optimize): Support for another do-loop
2400 pattern.
2401 (doloop_condition_get): Gets an instruction instead of a pattern
2402 and change the return condition when the do-loop pattern is
2403 not parallel.
2404 * ddg.c (create_ddg_dep_from_intra_loop_link): Handle only reg
2405 deps when considering to not create edges.
2406
2407 2007-08-27 Alexandre Oliva <aoliva@redhat.com>
2408
2409 * doc/extend.texi (gnu_inline funtion attribute): Document C++
2410 behavior.
2411
2412 2007-08-27 Jason Merrill <jason@redhat.com>
2413
2414 PR c++/31337
2415 * gimplify.c (gimplify_modify_expr): Discard the assignment of
2416 zero-sized types after calling gimplify_modify_expr_rhs.
2417
2418 2007-08-27 Sandra Loosemore <sandra@codesourcery.com>
2419
2420 * regclass.c (init_reg_autoinc): Fix typo.
2421
2422 2007-08-27 Daniel Berlin <dberlin@dberlin.org>
2423
2424 Fix PR tree-optimization/33173
2425 * tree-ssa-alias.c (find_used_portions): Fix reversed test.
2426
2427 2007-08-27 H.J. Lu <hongjiu.lu@intel.com>
2428
2429 PR target/31385
2430 * config/i386/i386.h (VALID_DFP_MODE_P): New.
2431 * config/i386/i386.c (ix86_hard_regno_mode_ok): Allow DFP in
2432 GPR.
2433
2434 2007-08-27 Sandra Loosemore <sandra@codesourcery.com>
2435 David Ung <davidu@mips.com>
2436 Nigel Stephens <nigel@mips.com>
2437
2438 Separate target-specific initialization from general
2439 back-end initialization.
2440
2441 * toplev.c (init_alignments): New, split out from...
2442 (process_options): ...here.
2443 (backend_init_target): New, split out from...
2444 (backend_init): ...here.
2445 (lang_dependent_init_target): New, split out from...
2446 (lang_dependent_init): ...here.
2447 (target_reinit): New.
2448 * toplev.h (target_reinit): Declare.
2449 * expr.c (init_expr_target): Renamed from init_expr_once, since it
2450 now can be called more than once. Update comments.
2451 * expr.h (init_expr_target): Likewise.
2452 * alias.c (init_alias_target): Renamed from init_alias_once, since it
2453 now can be called more than once. Explicitly zero
2454 static_reg_base_value.
2455 * emit-rtl.c (init_emit_regs): New, split out from...
2456 (init_emit_once): Here.
2457 * regclass.c (initial_fixed_regs, initial_call_used_regs): Make
2458 non-const, so that changes from command-line arguments can overwrite
2459 values provided by the static initializers.
2460 (initial_call_really_used_regs): New, used similarly to the above.
2461 (initial_reg_names): Likewise.
2462 (last_mode_for_init_move_cost): Promoted function-local static to
2463 file-scope static to make it accessible outside init_move_cost.
2464 (init_reg_sets): Do not initialize fixed_regs and call_used_regs yet.
2465 Do not initialize inv_reg_alloc_order yet, either. Do initialize
2466 reg_names since it is needed for parsing command-line options.
2467 (init_move_cost): Use last_mode_for_init_move_cost instead of
2468 function-local static.
2469 (init_reg_sets_1): Initialize fixed_regs, call_used_regs, and
2470 call_really_used_regs now. Reinitialize reg_names. Also
2471 initialize inv_reg_alloc_order. Zero reg_class_subunion and
2472 reg_class_superunion. Clear losing_caller_save_reg_set.
2473 Preserve global registers if called more than once. Reset
2474 move cost, may_move_in_cost, may_move_out_cost, and
2475 last_mode_for_init_move_cost.
2476 (init_reg_modes_target): Renamed from init_reg_modes_once, since it
2477 can now be invoked more than once. Update comments.
2478 (init_regs): Update comments.
2479 (fix_register): Update initial_fixed_regs, initial_call_used_regs,
2480 and initial_call_really_used_regs, instead of the non-initial
2481 variables. This allows us to save the command-line register settings
2482 after target reinitialization.
2483 (init_reg_autoinc): Zero forbidden_inc_dec_classes.
2484 * rtl.h (init_emit_regs): Declare.
2485 (init_reg_modes_target, init_alias_target): Renamed as described
2486 above.
2487 * reload1.c (init_reload): Update comments.
2488 * optabs.c (init_optabs): Likewise.
2489 * cfgloopanal.c (init_set_costs): Explicitly zero target_avail_regs.
2490
2491 2007-08-26 Chao-ying Fu <fu@mips.com>
2492
2493 * rtl.h (XCNMPFV): Preserve const-ness of parameters through use of
2494 __typeof().
2495
2496 2007-08-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2497
2498 * alias.c (memory_modified_1, memory_modified_in_insn_p):
2499 Constify.
2500 * basic-block.h (tree_predicted_by_p, rtl_predicted_by_p):
2501 Likewise.
2502 * bb-reorder.c (copy_bb_p): Likewise.
2503 * cfghooks.c (can_remove_branch_p, can_merge_blocks_p,
2504 predicted_by_p, can_duplicate_block_p, block_ends_with_call_p,
2505 block_ends_with_condjump_p): Likewise.
2506 * cfghooks.h (can_remove_branch_p, can_merge_blocks_p,
2507 predicted_by_p, can_duplicate_block_p, block_ends_with_call_p,
2508 block_ends_with_condjump_p): Likewise.
2509 * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
2510 * cfgrtl.c (can_delete_note_p, can_delete_label_p,
2511 rtl_can_merge_blocks, cfg_layout_can_merge_blocks_p,
2512 rtl_block_ends_with_call_p, rtl_block_ends_with_condjump_p,
2513 need_fake_edge_p, rtl_can_remove_branch_p): Likewise.
2514 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Use
2515 debug_true_const_tree instad of debug_true_tree.
2516 * debug.c (do_nothing_debug_hooks): Likewise.
2517 * debug.h (ignore_block, debug_true_const_tree): Constify.
2518 * dwarf2out.c (stack_adjust_offset, clobbers_queued_reg_save,
2519 dwarf2out_ignore_block, is_pseudo_reg, is_tagged_type,
2520 decl_ultimate_origin, block_ultimate_origin, lookup_decl_loc,
2521 same_dw_val_p, add_ranges, is_subrange_type, type_is_enum,
2522 dbx_reg_number, is_based_loc, field_type,
2523 simple_type_align_in_bits, simple_decl_align_in_bits,
2524 simple_type_size_in_bits, field_byte_offset, insert_float,
2525 type_tag, member_declared_type, is_redundant_typedef,
2526 secname_for_decl, is_inlined_entry_point): Likewise.
2527 * emit-rtl.c (const_next_insn, const_previous_insn,
2528 const_next_nonnote_insn, const_prev_nonnote_insn,
2529 const_next_real_insn, const_prev_real_insn,
2530 const_next_active_insn, const_prev_active_insn, const_next_label,
2531 const_prev_label): Likewise.
2532 * except.h (lookup_stmt_eh_region_fn, lookup_stmt_eh_region):
2533 Likewise.
2534 * haifa-sched.c (may_trap_exp, haifa_classify_insn,
2535 find_set_reg_weight, no_real_insns_p, find_set_reg_weight,
2536 sched_insn_is_legitimate_for_speculation_p): Likewise.
2537 * jump.c (reversed_comparison_code_parts,
2538 reversed_comparison_code, reversed_comparison, condjump_label):
2539 Likewise.
2540 * predict.c (rtl_predicted_by_p, tree_predicted_by_p): Likewise.
2541 * reg-stack.c (stack_regs_mentioned_p, stack_regs_mentioned):
2542 Likewise.
2543 * rtl.h (const_previous_insn, const_next_insn,
2544 const_prev_nonnote_insn, const_next_nonnote_insn,
2545 const_prev_real_insn, const_next_real_insn,
2546 const_prev_active_insn, const_next_active_insn, const_prev_label,
2547 const_next_label, modified_between_p, modified_in_p,
2548 const_note_storeskeep_with_call_p, condjump_label,
2549 reversed_comparison, reversed_comparison_code,
2550 reversed_comparison_code_parts, memory_modified_in_insn_p,
2551 stack_regs_mentioned): Likewise.
2552 * rtlanal.c (modified_between_p, modified_in_p, const_note_stores,
2553 keep_with_call_p): Likewise.
2554 * sched-deps.c (deps_may_trap_p, sched_get_condition,
2555 conditions_mutex_p, sched_insns_conditions_mutex_psd_next_list,
2556 sd_lists_size, sd_lists_empty_p): Likewise.
2557 * sched-int.h (sched_insns_conditions_mutex_p,
2558 haifa_classify_insn, no_real_insns_p,
2559 sched_insn_is_legitimate_for_speculation_p, sd_next_list,
2560 sd_lists_size, sd_lists_empty_p): Likewise.
2561 * sdbout.c (sdb_debug_hooks): Likewise.
2562 * tree-cfg.c (tree_can_merge_blocks_p, is_ctrl_altering_stmt,
2563 stmt_ends_bb_p, tree_can_remove_branch_p, tree_can_duplicate_bb_p,
2564 -tree_block_ends_with_call_p, tree_block_ends_with_condjump_p):
2565 Likewise.
2566 * tree-eh.c (lookup_stmt_eh_region_fn, lookup_stmt_eh_region,
2567 tree_can_throw_internal): Likewise.
2568 * tree-flow-inline.h (phi_nodes): Likewise.
2569 * tree-flow.h (phi_nodesstmt_ends_bb_p, is_ctrl_altering_stmt,
2570 tree_can_throw_internal, lookup_stmt_eh_region): Likewise.
2571 * tree-gimple.c (const_get_call_expr_in): Likewise.
2572 * tree-gimple.h (const_get_call_expr_in): Likewise.
2573 * tree.c (const_lookup_attribute, attribute_list_equal,
2574 attribute_list_contained): Likewise.
2575 * tree.h (attribute_list_equal, attribute_list_contained,
2576 const_lookup_attribute): Likewise.
2577 * vmsdbgout.c (vmsdbgout_ignore_block): Likewise.
2578
2579 2007-08-26 Bernhard Fischer <aldot@gcc.gnu.org>
2580
2581 * tree-ssa-sccvn.c, tree-ssa-sccvn.h, tree-vn.c,
2582 tree-ssa-pre.c: Remove unnecessary trailing whitespace.
2583
2584 2007-08-26 H.J. Lu <hongjiu.lu@intel.com>
2585
2586 PR target/32991
2587 * config/alpha/constraints.md: Delete "svn:mime-type" property
2588 with svn propdel "svn:mime-type".
2589
2590 2007-08-26 H.J. Lu <hongjiu.lu@intel.com>
2591
2592 PR middle-end/33181
2593 * ifcvt.c (noce_get_alt_condition): Make sure that the previous
2594 non NOTE insn doesn't cross basic block.
2595 (noce_try_abs): Likewise.
2596 (noce_process_if_block): Likewise.
2597
2598 2007-08-26 David Edelsohn <edelsohn@gnu.org>
2599
2600 PR target/33151
2601 * config/rs6000/predicates.md (offsettable_mem_operand): Memory
2602 operand without auto-inc-dec.
2603 * config/rs6000/rs6000.md (floatsidf2_internal): Use
2604 offsettable_mem_operand.
2605 (floatunssidf2_internal): Same.
2606 (fix_truncdfsi2_internal): Same.
2607 (floatsidf_ppc64): Same.
2608 (floatunssidf_ppc64): Same.
2609 (fix_trunctfsi2_internal): Same.
2610
2611 2007-08-26 Bernhard Fischer <aldot@gcc.gnu.org>
2612
2613 PR bootstrap/30620
2614 * Makefile.in (libbackend.o): Add gcov-iov.h dependency and
2615 pass defines needed for version.c.
2616
2617 2007-08-25 Joseph Myers <joseph@codesourcery.com>
2618
2619 * configure.ac (--debug-prefix-map check): Change assembler
2620 version presumed to have feature to 2.18.
2621 * configure: Regenerate.
2622
2623 2007-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2624
2625 * c-common.c (vector_types_convertible_p,
2626 decl_with_nonnull_addr_p, c_promoting_integer_type_p,
2627 self_promoting_args_p): Constify.
2628 * c-common.h (has_c_linkage, decl_with_nonnull_addr_p,
2629 c_promoting_integer_type_p, self_promoting_args_p,
2630 anon_aggr_type_p, vector_types_convertible_p): Likewise.
2631 * c-decl.c (anon_aggr_type_p): Likewise.
2632 * * c-dump.c (dump_stmt): Likewise.
2633 * c-objc-common.c (has_c_linkage): Likewise.
2634 * c-tree.h (same_translation_unit_p): Likewise.
2635 * c-typeck.c (null_pointer_constant_p,
2636 tagged_types_tu_compatible_p, function_types_compatible_p,
2637 type_lists_compatible_p, lvalue_or_else, lvalue_p,
2638 comptypes_internal, struct tagged_tu_seen_cache,
2639 same_translation_unit_p, alloc_tagged_tu_seen_cache,
2640 c_size_in_bytes): Likewise.
2641 * ggc-common.c (compare_ptr_data, hash_descriptor, eq_descriptor,
2642 hash_ptr, eq_ptr): Likewise.
2643 * langhooks-def.h (lhd_decl_ok_for_sibcall,
2644 LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE): Likewise.
2645 * langhooks.c (lhd_decl_ok_for_sibcall): Likewise.
2646 * langhooks.h (ok_for_sibcall, omp_privatize_by_reference):
2647 Likewise.
2648 * optabs.c (optab_for_tree_code): Likewise.
2649 * optabs.h (optab_for_tree_code): Likewise.
2650 * rtl.h (simplify_rtx): Likewise.
2651 * simplify-rtx.c (simplify_rtx): Likewise.
2652 * tree-dump.c (queue, queue_and_dump_index, queue_and_dump_type,
2653 dump_flag, dump_node): Likewise.
2654 * tree-dump.h (struct dump_info, dump_stmt, queue_and_dump_index,
2655 queue_and_dump_type, dump_flag): Likewise.
2656 * tree-flow.h (vect_can_force_dr_alignment_p): Likewise.
2657 * tree-pass.h (dump_node): Likewise.
2658 * tree-vectorizer.c (vect_can_force_dr_alignment_p,
2659 supportable_narrowing_operation): Likewise.
2660 * tree-vectorizer.h (vect_can_force_dr_alignment_p,
2661 supportable_narrowing_operation): Likewise.
2662 * tree-vrp.c (needs_overflow_infinity, supports_overflow_infinity,
2663 is_negative_overflow_infinity, is_positive_overflow_infinity,
2664 is_overflow_infinity, vrp_val_is_max, vrp_val_is_min,
2665 nonnull_arg_p, get_value_range, vrp_operand_equal_p,
2666 update_value_range, add_equivalence, ssa_name_nonnegative_p,
2667 ssa_name_nonzero_p, fp_predicate): Likewise.
2668 * tree.c (auto_var_in_fn_p, empty_body_p): Likewise.
2669 * tree.h (empty_body_p, auto_var_in_fn_p, ssa_name_nonzero_p,
2670 ssa_name_nonnegative_p): Likewise.
2671
2672 2007-08-25 Hans Kester <hans.kester@ellips.nl>
2673
2674 * config.gcc : Add x86_64-elf target.
2675
2676 2007-08-25 Jakub Jelinek <jakub@redhat.com>
2677
2678 * expr.c (store_expr): Fix order of store_by_pieces arguments.
2679
2680 2007-08-24 Sandra Loosemore <sandra@codesourcery.com>
2681 Nigel Stephens <nigel@mips.com>
2682
2683 PR target/11787
2684
2685 * doc/tm.texi (SET_RATIO, SET_BY_PIECES_P): Document new macros.
2686 (STORE_BY_PIECES_P): No longer applies to __builtin_memset.
2687 * expr.c (SET_BY_PIECES_P): Define.
2688 (can_store_by_pieces, store_by_pieces): Add MEMSETP argument; use
2689 it to decide whether to use SET_BY_PIECES_P or STORE_BY_PIECES_P.
2690 (store_expr): Pass MEMSETP argument to can_store_by_pieces and
2691 store_by_pieces.
2692 * expr.h (SET_RATIO): Define.
2693 (can_store_by_pieces, store_by_pieces): Update prototypes.
2694 * builtins.c (expand_builtin_memcpy): Pass MEMSETP argument to
2695 can_store_by_pieces/store_by_pieces.
2696 (expand_builtin_memcpy_args): Likewise.
2697 (expand_builtin_strncpy): Likewise.
2698 (expand_builtin_memset_args): Likewise. Also remove special case
2699 for optimize_size so that can_store_by_pieces/SET_BY_PIECES_P can
2700 decide what to do instead.
2701 * value-prof.c (tree_stringops_transform): Pass MEMSETP argument
2702 to can_store_by_pieces.
2703
2704 * config/sh/sh.h (SET_BY_PIECES_P): Clone from STORE_BY_PIECES_P.
2705 * config/s390/s390.h (SET_BY_PIECES_P): Likewise.
2706
2707 * config/mips/mips.opt (mmemcpy): Change from Var to Mask.
2708 * config/mips/mips.c (override_options): Make -Os default to -mmemcpy.
2709 * config/mips/mips.h (MIPS_CALL_RATIO): Define.
2710 (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Define.
2711 (STORE_BY_PIECES_P): Define.
2712
2713 2007-08-24 Tom Tromey <tromey@redhat.com>
2714
2715 * varpool.c (varpool_last_needed_node): Fix comment typo.
2716 * c-decl.c (duplicate_decls): Fix comment typo.
2717 (clone_underlying_type): Update comment.
2718
2719 2007-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2720
2721 * config/alpha/alpha.c (alpha_mangle_type, decl_has_samegp,
2722 alpha_in_small_data_p, alpha_split_complex_arg,
2723 alpha_stdarg_optimize_hook, TARGET_ASM_CAN_OUTPUT_MI_THUNK):
2724 Constify.
2725 * config/arm/arm-protos.h (arm_mangle_type): Likewise.
2726 * config/arm/arm.c (arm_comp_type_attributes, arm_mangle_type):
2727 Likewise.
2728 * config/bfin/bfin.c (funkind, bfin_comp_type_attributes,
2729 TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2730 * config/darwin-protos.h (darwin_binds_local_p): Likewise.
2731 * config/darwin.c (darwin_binds_local_p): Likewise.
2732 * config/frv/frv.c (frv_string_begins_with, frv_in_small_data_p):
2733 Likewise.
2734 * config/i386/i386-protos.h (i386_pe_binds_local_p,
2735 i386_pe_valid_dllimport_attribute_p): Likewise.
2736 * config/i386/i386.c (ix86_function_regparm,
2737 ix86_comp_type_attributes, ix86_ms_bitfield_layout_p,
2738 x86_can_output_mi_thunk, ix86_mangle_type,
2739 TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
2740 * config/i386/winnt.c (i386_pe_valid_dllimport_attribute_p,
2741 i386_pe_binds_local_p): Likewise.
2742 * config/ia64/ia64.c
2743 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec,
2744 ia64_needs_block_p, ia64_in_small_data_p, ia64_mangle_type,
2745 ia64_invalid_conversion, ia64_invalid_unary_op,
2746 ia64_invalid_binary_op, TARGET_ASM_CAN_OUTPUT_MI_THUNK):
2747 Likewise.
2748 * config/m32c/m32c.c (m32c_comp_type_attributes): Likewise.
2749 * config/m32r/m32r.c (m32r_in_small_data_p): Likewise.
2750 * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2751 * config/mips/mips.c (mips_use_blocks_for_constant_p,
2752 mips_in_small_data_p, mips_use_anchors_for_symbol_p,
2753 mips_comp_type_attributes, TARGET_ASM_CAN_OUTPUT_MI_THUNK,
2754 mips_near_type_p, mips_far_type_p, mips_global_symbol_p,
2755 mips_symbol_binds_local_p, mips_classify_symbol): Likewise.
2756 * config/pa/pa.c (pa_commutative_p): Likewise.
2757 * config/rs6000/rs6000-protos.h (rs6000_elf_in_small_data_p):
2758 Likewise.
2759 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop,
2760 rs6000_ms_bitfield_layout_p, rs6000_mangle_type,
2761 rs6000_use_blocks_for_constant_p,
2762 rs6000_vector_alignment_reachable, rs6000_is_opaque_type,
2763 invalid_arg_for_unprototyped_fn, TARGET_ASM_CAN_OUTPUT_MI_THUNK,
2764 TARGET_SPLIT_COMPLEX_ARG, rs6000_elf_in_small_data_p): Likewise.
2765 * config/s390/s390.c (s390_mangle_type,
2766 TARGET_ASM_CAN_OUTPUT_MI_THUNK, TARGET_INVALID_WITHIN_DOLOOP):
2767 Likewise.
2768 * config/score/score.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK,
2769 th_in_small_data_p): Likewise.
2770 * config/sh/sh.c (sh_ms_bitfield_layout_p,
2771 sh_dwarf_calling_convention, TARGET_ASM_CAN_OUTPUT_MI_THUNK):
2772 Likewise.
2773 * config/sparc/sparc.c (sparc_can_output_mi_thunk,
2774 sparc_mangle_type): Likewise.
2775 * config/spu/spu.c (spu_vector_alignment_reachable): Likewise.
2776 * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): Likewise.
2777 * emit-rtl.c (const_fixed_htab_hash, const_fixed_htab_eq):
2778 Likewise.
2779 * hooks.c (hook_bool_mode_const_rtx_false,
2780 hook_bool_mode_const_rtx_true,
2781 hook_bool_const_tree_hwi_hwi_const_tree_false,
2782 hook_bool_const_tree_hwi_hwi_const_tree_true,
2783 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
2784 hook_constcharptr_const_tree_null,
2785 hook_constcharptr_const_rtx_null,
2786 hook_constcharptr_const_tree_const_tree_null,
2787 hook_constcharptr_int_const_tree_null,
2788 hook_constcharptr_int_const_tree_const_tree_null): New.
2789 (hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
2790 hook_bool_tree_hwi_hwi_tree_false,
2791 hook_bool_tree_hwi_hwi_tree_true, hook_int_tree_0,
2792 hook_int_tree_tree_1, hook_constcharptr_tree_null,
2793 hook_constcharptr_rtx_null, hook_constcharptr_tree_tree_null,
2794 hook_constcharptr_int_tree_null,
2795 hook_constcharptr_int_tree_tree_null): Delete.
2796 (default_can_output_mi_thunk_no_vcall): Constify.
2797 * hooks.h (hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
2798 hook_bool_tree_hwi_hwi_tree_false,
2799 hook_bool_tree_hwi_hwi_tree_true, hook_int_tree_0,
2800 hook_int_tree_tree_1, hook_constcharptr_tree_null,
2801 hook_constcharptr_rtx_null, hook_constcharptr_tree_tree_null,
2802 hook_constcharptr_int_tree_null,
2803 hook_constcharptr_int_tree_tree_null): Delete.
2804 (hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
2805 hook_bool_const_tree_hwi_hwi_const_tree_false,
2806 hook_bool_const_tree_hwi_hwi_const_tree_true,
2807 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
2808 hook_constcharptr_const_tree_null,
2809 hook_constcharptr_const_rtx_null,
2810 hook_constcharptr_const_tree_const_tree_null,
2811 hook_constcharptr_int_const_tree_null,
2812 hook_constcharptr_int_const_tree_const_tree_null): New.
2813 (default_can_output_mi_thunk_no_vcall): Constify.
2814 * integrate.c (function_attribute_inlinable_p): Likewise.
2815 * integrate.h (function_attribute_inlinable_p): Likewise.
2816 * jump.c (rtx_renumbered_equal_p): Likewise.
2817 * output.h (decl_readonly_section, categorize_decl_for_section,
2818 default_use_anchors_for_symbol_p, default_binds_local_p,
2819 default_binds_local_p_1): Likewise.
2820 * rtl.h (rtx_renumbered_equal_p, decl_default_tls_model):
2821 Likewise.
2822 * target-def.h (TARGET_ASM_CAN_OUTPUT_MI_THUNK,
2823 TARGET_VALID_DLLIMPORT_ATTRIBUTE_P, TARGET_VECTOR_OPAQUE_P,
2824 TARGET_COMMUTATIVE_P, TARGET_USE_BLOCKS_FOR_CONSTANT_P,
2825 TARGET_COMP_TYPE_ATTRIBUTES,
2826 TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P,
2827 TARGET_MS_BITFIELD_LAYOUT_P, TARGET_MANGLE_TYPE,
2828 TARGET_IN_SMALL_DATA_P, TARGET_INVALID_CONVERSION,
2829 TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP,
2830 TARGET_DWARF_CALLING_CONVENTION): Likewise.
2831 * target.h (can_output_mi_thunk, needs_block_p,
2832 first_cycle_multipass_dfa_lookahead_guard_spec,
2833 vector_alignment_reachable, comp_type_attributes,
2834 function_attribute_inlinable_p, ms_bitfield_layout_p, mangle_type,
2835 commutative_p, use_blocks_for_constant_p,
2836 use_anchors_for_symbol_p, in_small_data_p, binds_local_p,
2837 vector_opaque_p, dwarf_calling_convention, stdarg_optimize_hook,
2838 invalid_within_doloop, valid_dllimport_attribute_p,
2839 split_complex_arg, invalid_arg_for_unprototyped_fn,
2840 invalid_conversion, invalid_unary_op, invalid_binary_op):
2841 Likewise.
2842 * targhooks.c (default_invalid_within_doloop,
2843 hook_invalid_arg_for_unprototyped_fn,
2844 default_builtin_vector_alignment_reachable): Likewise.
2845 (hook_bool_rtx_commutative_p): Delete.
2846 (hook_bool_const_rtx_commutative_p): New.
2847 * targhooks.h (default_invalid_within_doloop,
2848 default_builtin_vector_alignment_reachable,
2849 hook_invalid_arg_for_unprototyped_fn): Constify.
2850 (hook_bool_rtx_commutative_p): Delete.
2851 (hook_bool_const_rtx_commutative_p): New.
2852 * varasm.c (bss_initializer_p, decl_default_tls_model,
2853 categorize_decl_for_section, decl_readonly_section,
2854 default_use_anchors_for_symbol_p, default_binds_local_p,
2855 default_binds_local_p_1): Constify.
2856
2857 2007-08-24 Jie Zhang <jie.zhang@analog.com>
2858
2859 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2860 __NO_BUILTIN if -fno-builtin.
2861
2862 2007-08-24 Jie Zhang <jie.zhang@analog.com>
2863
2864 * config/bfin/bfin.c (print_operand): Report error instead of
2865 ICE for wrong operand.
2866
2867 2007-08-24 Michael Matz <matz@suse.de>
2868
2869 * Makefile.in (GTFILES_H): Use $(patsubst) instead of $(subst).
2870
2871 2007-08-24 Richard Guenther <rguenther@suse.de>
2872
2873 PR middle-end/33166
2874 * tree-ssa.c (useless_type_conversion_p): Split into a
2875 recursive and a non-recursive part.
2876 (useless_type_conversion_p_1): New function.
2877 * tree-ssa-ccp.c (fold_stmt_r): Make sure that the result
2878 from maybe_fold_offset_to_reference is trivially convertible
2879 to the desired type before doing the simplification.
2880
2881 2007-08-24 Jakub Jelinek <jakub@redhat.com>
2882
2883 * expr.c (store_expr): Optimize initialization of an array
2884 with STRING_CST.
2885 * expr.h (builtin_strncpy_read_str): New prototype.
2886 * builtins.c (builtin_strncpy_read_str): Remove prototype.
2887 No longer static.
2888
2889 2007-08-24 Uros Bizjak <ubizjak@gmail.com>
2890
2891 PR middle-end/33157
2892 * ifcvt.c (noce_find_if_block): Do not clear if_info.cond_earliest
2893 field when initializing if_info structure.
2894
2895 2007-08-24 Richard Guenther <rguenther@suse.de>
2896
2897 * Makefile.in (tree-inline.o): Add $(TARGET_H) and $(INTEGRATE_H)
2898 dependencies.
2899 * c-objc-common.c (c_cannot_inline_tree_fn): Remove.
2900 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Likewise.
2901 * tree-inline.c (inlinable_function_p): Fold in common parts of
2902 the cannot_inline_tree_fn langhook.
2903 * langhooks-def.h (lhd_tree_inlining_cannot_inline_tree_fn): Remove.
2904 (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN): Likewise.
2905 (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
2906 cannot_inline_tree_fn langhook.
2907 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
2908 cannot_inline_tree_fn member.
2909
2910 2007-08-24 Richard Guenther <rguenther@suse.de>
2911
2912 * expr.c (get_inner_reference): Do computation of bitoffset
2913 from offset in a way we can detect overflow reliably.
2914
2915 2007-08-24 Jie Zhang <jie.zhang@analog.com>
2916
2917 * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define for uClibc.
2918
2919 2007-08-24 Jie Zhang <jie.zhang@analog.com>
2920
2921 * config/bfin/bfin.opt (mfast-fp): Add.
2922 * config/bfin/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Let
2923 libbffastfp override libgcc if -mfast-fp.
2924 * config/bfin/bfin.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
2925 * doc/invoke.texi (Option Summary): Mention -mfast-fp.
2926 (Blackfin Options): Document -mfast-fp.
2927
2928 2007-08-24 Jakub Jelinek <jakub@redhat.com>
2929
2930 PR tree-optimization/32573
2931 PR middle-end/32946
2932 * tree-data-ref.c (initialize_data_dependence_relation): Clear
2933 DDR_SUBSCRIPTS, DDR_DIR_VECTS and DDR_DIST_VECTS at the beginning.
2934 (finalize_ddr_dependent): Clear DDR_SUBSCRIPTS after freeing it.
2935 (build_classic_dist_vector): Return false rather than true if
2936 DDR_ARE_DEPENDENT is non-NULL at the beginning. Return false
2937 if either subscript_dependence_tester_1 or build_classic_dist_vector_1
2938 returned false. Don't call save_dist_v before calling
2939 build_classic_dist_vector_1.
2940 (free_dependence_relation): Don't guard freeing DDR_SUBSCRIPTS
2941 with NULL DDR_ARE_DEPENDENT. Also free DDR_DIST_VECTS and/or
2942 DDR_DIR_VECTS vectors.
2943
2944 2007-08-23 Brian Sidebotham <brian.sidebotham@gmail.com>
2945
2946 * configure.ac (leb128): Modify sed statement to work with any
2947 binutils version string.
2948 * configure: Regenerate
2949
2950 2007-08-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2951
2952 * config/arc/arc-protos.h arc_select_cc_mode, gen_compare_reg):
2953 Wrap in RTX_CODE macro guard.
2954 * config/arm/pe.c (arm_dllexport_p, arm_dllimport_p,
2955 arm_dllexport_name_p, arm_dllimport_name_p, arm_mark_dllexport,
2956 arm_mark_dllimport, arm_pe_encode_section_info,
2957 arm_pe_unique_section): Use ISO-C function declarations.
2958 * config/c4x/c4x-c.c (c4x_parse_pragma, c4x_pr_CODE_SECTION,
2959 c4x_pr_DATA_SECTION, c4x_pr_FUNC_IS_PURE,
2960 c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT, c4x_pr_ignored):
2961 Likewise.
2962 * config/iq2000/iq2000.h (ASM_OUTPUT_SKIP): Fix format warning.
2963 * config/m68hc11/m68hc11.h (ASM_OUTPUT_EXTERNAL): Undef before
2964 defining.
2965 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Fix format
2966 warnings.
2967 * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Likewise.
2968 * config/pdp11/pdp11.c (pdp11_output_function_epilogue): Likewise.
2969 (register_move_cost): Use ISO-C function declarations.
2970 * config/pdp11/pdp11.h (PRINT_OPERAND): Fix format warnings.
2971 * config/score/score-protos.h (score_declare_object): Add
2972 ATTRIBUTE_PRINTF_4.
2973 * config/score/score.h (ASM_DECLARE_OBJECT_NAME): Fix format
2974 warnings.
2975 * final.c (profile_function): Avoid empty if-bodies.
2976
2977
2978 * calls.c (must_pass_in_stack_var_size,
2979 must_pass_in_stack_var_size_or_pad): Constify.
2980 * config/alpha/alpha-protos.h (function_value): Likewise.
2981 * config/alpha/alpha.c (alpha_return_in_memory,
2982 alpha_pass_by_reference, function_value,
2983 unicosmk_must_pass_in_stack, TARGET_PROMOTE_FUNCTION_ARGS,
2984 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
2985 Likewise.
2986 * config/arc/arc.c (arc_return_in_memory, arc_pass_by_reference,
2987 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
2988 TARGET_PROMOTE_PROTOTYPES): Likewise.
2989 * config/arm/arm-protos.h (arm_return_in_memory,
2990 arm_pad_arg_upward, arm_function_value): Likewise.
2991 * config/arm/arm.c (arm_pass_by_reference,
2992 arm_promote_prototypes, arm_return_in_msb, arm_must_pass_in_stack,
2993 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
2994 arm_function_value, arm_return_in_memory, arm_pad_arg_upward):
2995 Likewise.
2996 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
2997 * config/avr/avr-protos.h (avr_function_value): Likewise.
2998 * config/avr/avr.c (avr_return_in_memory,
2999 gas_output_limited_string, gas_output_ascii, avr_function_value,
3000 avr_return_in_memory): Likewise.
3001 * config/bfin/bfin-protos.h (bfin_return_in_memory): Likewise.
3002 * config/bfin/bfin.c (bfin_pass_by_reference,
3003 bfin_return_in_memory, TARGET_PROMOTE_PROTOTYPES,
3004 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN):
3005 Likewise.
3006 * config/cris/cris.c (cris_pass_by_reference,
3007 TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
3008 * config/crx/crx.c (crx_return_in_memory): Likewise.
3009 * config/darwin.c (function_base, machopic_function_base_name):
3010 Likewise.
3011 * config/fr30/fr30.c (fr30_must_pass_in_stack,
3012 TARGET_PROMOTE_PROTOTYPES): Likewise.
3013 * config/frv/frv.c (frv_must_pass_in_stack): Likewise.
3014 * config/h8300/h8300.c (h8300_return_in_memory): Likewise.
3015 * config/i386/i386-protos.h (ix86_return_in_memory,
3016 ix86_sol10_return_in_memory): Likewise.
3017 * config/i386/i386.c (ix86_function_value,
3018 ix86_function_sseregparm, ix86_must_pass_in_stack,
3019 type_natural_mode, classify_argument, examine_argument,
3020 construct_container, ix86_pass_by_reference, function_value_32,
3021 function_value_64, ix86_function_value_1, return_in_memory_32,
3022 return_in_memory_64, return_in_memory_ms_64,
3023 ix86_return_in_memory, ix86_sol10_return_in_memory,
3024 TARGET_PROMOTE_PROTOTYPES): Likewise.
3025 * config/ia64/ia64-protos.h (ia64_function_value,
3026 ia64_hpux_function_arg_padding): Likewise.
3027 * config/ia64/ia64.c (hfa_element_mode, ia64_return_in_memory,
3028 ia64_function_value, bundle_state_hash, bundle_state_eq_p,
3029 ia64_hpux_function_arg_padding): Likewise.
3030 * config/iq2000/iq2000-protos.h (function_arg,
3031 iq2000_function_value): Likewise.
3032 * config/iq2000/iq2000.c (iq2000_return_in_memory,
3033 iq2000_pass_by_reference, TARGET_PROMOTE_FUNCTION_ARGS,
3034 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
3035 function_arg, iq2000_function_value): Likewise.
3036 * config/m32c/m32c-protos.h (m32c_function_value,
3037 m32c_promote_function_return): Likewise.
3038 * config/m32c/m32c.c (m32c_pass_by_reference,
3039 m32c_promote_prototypes, m32c_promote_function_return,
3040 m32c_function_value): Likewise.
3041 * config/m32r/m32r.c (m32r_return_in_memory,
3042 m32r_pass_by_reference, TARGET_PROMOTE_PROTOTYPES,
3043 m32r_in_small_data_p): Likewise.
3044 * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg_padding):
3045 Likewise.
3046 * config/m68hc11/m68hc11.c (m68hc11_return_in_memory,
3047 m68hc11_function_arg_padding): Likewise.
3048 * config/m68k/m68k-protos.h (m68k_function_value): Likewise.
3049 * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES,
3050 m68k_function_value): Likewise.
3051 * config/mcore/mcore-protos.h (mcore_num_arg_regs,
3052 mcore_function_value): Likewise.
3053 * config/mcore/mcore.c (handle_structs_in_regs,
3054 mcore_return_in_memory, TARGET_PROMOTE_FUNCTION_ARGS,
3055 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
3056 mcore_num_arg_regs, mcore_function_value): Likewise.
3057 * config/mips/mips-protos.h (mips_pad_arg_upward,
3058 mips_function_value): Likewise.
3059 * config/mips/mips.c (mips_fpr_return_fields, mips_return_in_msb,
3060 mips_return_in_memory, mips_pass_by_reference, mips_callee_copies,
3061 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
3062 TARGET_PROMOTE_PROTOTYPES, mips_pad_arg_upward,
3063 mips_function_value): Likewise.
3064 * config/mmix/mmix-protos.h (mmix_function_outgoing_value):
3065 Likewise.
3066 * config/mmix/mmix.c (mmix_pass_by_reference,
3067 TARGET_PROMOTE_FUNCTION_ARGS, mmix_function_outgoing_value,
3068 mmix_encode_section_info): Likewise.
3069 * config/mn10300/mn10300-protos.h (mn10300_function_value):
3070 Likewise.
3071 * config/mn10300/mn10300.c (mn10300_return_in_memory,
3072 mn10300_pass_by_reference, TARGET_PROMOTE_PROTOTYPES,
3073 mn10300_function_value): Likewise.
3074 * config/mt/mt-protos.h (mt_function_value): Likewise.
3075 * config/mt/mt.c (mt_pass_by_reference, mt_function_value,
3076 mt_pass_in_stack, TARGET_PROMOTE_PROTOTYPES): Likewise.
3077 * config/pa/pa-protos.h (function_arg_padding, function_value,
3078 pa_return_in_memory): Likewise.
3079 * config/pa/pa.c (pa_pass_by_reference,
3080 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
3081 function_arg_padding, function_value, pa_return_in_memory):
3082 Likewise.
3083 * config/pdp11/pdp11.c (pdp11_return_in_memory): Likewise.
3084 * config/rs6000/rs6000-protos.h (rs6000_function_value,
3085 function_arg_padding): Likewise.
3086 * config/rs6000/rs6000.c (rs6000_return_in_memory,
3087 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
3088 rs6000_pass_by_reference, rs6000_must_pass_in_stack,
3089 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
3090 function_arg_padding, altivec_expand_dst_builtin,
3091 altivec_expand_builtin, rs6000_expand_builtin, spe_init_builtins,
3092 altivec_init_builtins, rs6000_common_init_builtins,
3093 rs6000_function_value): Likewise.
3094 * s390/s390-protos.h (s390_function_value): Likewise.
3095 * config/s390/s390.c (s390_function_arg_size,
3096 s390_pass_by_reference, s390_return_in_memory,
3097 s390_function_value, TARGET_PROMOTE_FUNCTION_ARGS,
3098 TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
3099 * config/score/score-protos.h (score_function_value): Likewise.
3100 * config/score/score.c (score_arg_partial_bytes,
3101 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
3102 TARGET_PROMOTE_PROTOTYPES, score_return_in_memory,
3103 score_pass_by_reference, score_add_offset, score_function_value):
3104 Likewise.
3105 * config/sh/sh-protos.h (sh_attr_renesas_p,
3106 sh_promote_prototypes): Likewise.
3107 * config/sh/sh.c (sh_return_in_memory, sh_pass_by_reference,
3108 sh_callee_copies, sh_promote_prototypes, shcompact_byref,
3109 sh_attr_renesas_p): Likewise.
3110 * config/sparc/sparc-protos.h (function_value,
3111 function_arg_padding): Likewise.
3112 * config/sparc/sparc.c (sparc_promote_prototypes,
3113 sparc_return_in_memory, sparc_pass_by_reference,
3114 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
3115 function_arg_record_value_2, function_arg_record_value_1,
3116 function_arg_record_value, function_arg_record_value,
3117 function_arg_padding, function_value): Likewise.
3118 * config/spu/spu-protos.h (spu_function_value): Likewise.
3119 * config/spu/spu.c (spu_pass_by_reference, spu_return_in_memory,
3120 spu_function_value): Likewise.
3121 * config/stormy16/stormy16-protos.h (xstormy16_function_value):
3122 Likewise.
3123 * config/stormy16/stormy16.c (xstormy16_return_in_memory,
3124 xstormy16_function_value, TARGET_PROMOTE_FUNCTION_ARGS,
3125 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
3126 Likewise.
3127 * config/v850/v850.c (v850_return_in_memory,
3128 v850_pass_by_reference, TARGET_PROMOTE_PROTOTYPES): Likewise.
3129 * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): Likewise.
3130 * config/xtensa/xtensa.c (xtensa_return_in_msb,
3131 xtensa_return_in_memory, TARGET_PROMOTE_FUNCTION_ARGS,
3132 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
3133 Likewise.
3134 * explow.c (promote_mode, hard_function_value): Likewise.
3135 * expr.h (hard_function_value, promote_mode): Likewise.
3136 * function.c (aggregate_value_p): Likewise.
3137 * hooks.c (hook_bool_const_tree_true): New.
3138 * hooks.h (hook_bool_const_tree_true): New.
3139 * sdbout.c (SET_KNOWN_TYPE_TAG, plain_type_1): Constify.
3140 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
3141 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
3142 TARGET_RETURN_IN_MSB): Likewise.
3143 * target.h (promote_function_args, promote_function_return,
3144 promote_prototypes, return_in_memory, return_in_msb,
3145 pass_by_reference, must_pass_in_stack, callee_copies,
3146 function_value): Likewise.
3147 * targhooks.c (default_return_in_memory,
3148 hook_pass_by_reference_must_pass_in_stack,
3149 hook_callee_copies_named,
3150 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false,
3151 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true,
3152 default_function_value): Likewise.
3153 * targhooks.h (default_return_in_memory,
3154 hook_pass_by_reference_must_pass_in_stack,
3155 hook_callee_copies_named,
3156 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false,
3157 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true,
3158 default_function_value): Likewise.
3159 * tree-ssa-structalias.c (const_equiv_class_label_t): New.
3160 (equiv_class_label_hash, equiv_class_label_eq): Constify.
3161 * tree-vectorizer.c (bb_in_loop_p): Likewise.
3162 * tree.c (needs_to_live_in_memory): Likewise.
3163 * tree.h (struct tree_type, needs_to_live_in_memory,
3164 aggregate_value_p, must_pass_in_stack_var_size,
3165 must_pass_in_stack_var_size_or_pad): Likewise.
3166 * vmsdbgout.c (write_debug_addr, write_debug_delta4,
3167 write_debug_string, ASM_OUTPUT_DEBUG_STRING, write_rtnbeg,
3168 lookup_filename): Likewise.
3169
3170 2007-08-23 Uros Bizjak <ubizjak@gmail.com>
3171
3172 PR target/17390
3173 * config/i386/i386.c (ix86_expand_fp_compare): Expand fp comparison to
3174 fake fcomi i387 instruction for !TARGET_CMOVE.
3175 (ix86_expand_branch): Expand natural sequence with one jump for
3176 all targets, not only TARGET_CMOVE.
3177 * config/i386/i386.md (*cmpfp_0_cc): New define_insn_and_split
3178 pattern to implement fake fcomi sequence. Split instruction after
3179 reload to correct compare sequences.
3180 (*cmpfp_xf_cc): Ditto.
3181 (*cmpfp_<mode>_cc): Ditto.
3182 (*cmpfp_u_cc): Ditto.
3183 (*cmpfp_<mode>_cc): Ditto.
3184
3185 2007-08-23 Richard Guenther <rguenther@suse.de>
3186
3187 * tree-pretty-print.c (dump_generic_node): Annotate
3188 GIMPLE_MODIFY_STMTs with volatile ops with "{v}".
3189
3190 2007-08-23 Richard Guenther <rguenther@suse.de>
3191
3192 * builtins.c (expand_builtin_mathfn): Wrap argument in
3193 save_expr directly instead of re-building the call.
3194 (expand_builtin_mathfn_2): Likewise.
3195 (expand_builtin_mathfn_3): Likewise.
3196 (expand_builtin_interclass_mathfn): Likewise.
3197 (expand_builtin_int_roundingfn): Set arg.
3198 (expand_builtin_int_roundingfn_2): Likewise.
3199
3200 2007-08-23 Paolo Bonzini <bonzini@gnu.org>
3201
3202 * config/i386/sse.md (*sse_and<mode>3, *sse_ior<mode>3,
3203 *sse_nand<mode>3, *sse_xor<mode>3): New.
3204
3205 2007-08-23 Uros Bizjak <ubizjak@gmail.com>
3206
3207 * config/i386/i386.h (PRINT_OPERAND_PUNCT_VALID_P): Add ';' code.
3208 * config/i386/i386.c (print_operand): Handle ';' code. Output
3209 semicolon for TARGET_MACHO.
3210 * config/i386/sync.md (*sync_compare_and_swap<mode>): Use '%;' to
3211 emit semicolon after 'lock' prefix.
3212 (sync_double_compare_and_swap<mode>): Ditto.
3213 (*sync_double_compare_and_swapdi_pic): Ditto.
3214 (*sync_compare_and_swap_cc<mode>): Ditto.
3215 (sync_double_compare_and_swap_cc<mode>): Ditto.
3216 (*sync_double_compare_and_swap_ccdi_pic): Ditto.
3217 (sync_old_add<mode>): Ditto.
3218 (sync_add<mode>): Ditto.
3219 (sync_sub<mode>): Ditto.
3220 (sync_ior<mode>): Ditto.
3221 (sync_and<mode>): Ditto.
3222 (sync_xor<mode>): Ditto.
3223
3224 2007-08-22 Chao-ying Fu <fu@mips.com>
3225
3226 * rtl.c (rtx_code_size): Check CONST_FIXED to calcualte correct sizes
3227 in DEF_RTL_EXPR.
3228 (copy_rtx): Handle CONST_FIXED.
3229 (rtx_equal_p): Likewise.
3230 * rtl.h (fixed_value.h): New include.
3231 (rtx_def): Add a new field of fixed_value to u.
3232 (XCNMPFV): Define for accessing fixed_value.
3233 (CONST_FIXED_VALUE, CONST_FIXED_VALUE_HIGH, CONST_FIXED_VALUE_LOW):
3234 Define.
3235 * rtl.def (CONST_FIXED): New constant.
3236 (SS_MULT, US_MULT, SS_DIV, US_DIV, FRACT_CONVERT,
3237 UNSIGNED_FRACT_CONVERT, SAT_FRACT, UNSIGNED_SAT_FRACT, US_NEG,
3238 US_ASHIFT): New codes.
3239 * doc/rtl.texi (Expressions): Document const_fixed, us_neg, ss_mult,
3240 us_mult, ss_div, us_div, us_ashift, fract_convert, sat_fract,
3241 unsigned_fract_convert, unsigned_sat_fract): Document them.
3242 * varasm.c (assemble_integer): Extend to support fixed-point constants
3243 by using different machine classes.
3244 (decode_addr_const): Handle FIXED_CST.
3245 (const_hash_1): Likewise.
3246 (compare_constant): Likewise.
3247 (copy_constant): Likewise.
3248 (const_rtx_hash_1): Handle CONST_FIXED.
3249 (output_constant_pool_2): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
3250 MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
3251 MODE_VECTOR_UACCUM.
3252 (initializer_constant_valid_p): Handle FIXED_CST.
3253 (output_constant): Support FIXED_POINT_TYPE.
3254 * gengenrtl.c (excluded_rtx): Check CONST_FIXED to exclude.
3255 * cse.c (hash_rtx): Support CONST_FIXED.
3256 (exp_equiv_p): Likewise.
3257 (cannon_reg): Likewise.
3258 (fold_rtx): Likewise.
3259 (equiv_constant): Likewise.
3260 (cse_process_notes_1): Likewise.
3261 (count_reg_usage): Likewise.
3262 * cselib.c (entry_and_rtx_equal_p): Check CONST_FIXED.
3263 (rtx_equal_for_cselib_p): Handle CONST_FIXED.
3264 (wrap_constant): Check CONST_FIXED.
3265 (cselib_hash_rtx): Support CONST_FIXED.
3266 (cselib_subst_to_values): Likewise.
3267 * df-scan.c (df_uses_record): Likewise.
3268 * gcse.c (want_to_gcse_p): Likewise.
3269 (oprs_unchanged_p): Likewise.
3270 (oprs_not_set_p): Likewise.
3271 (compute_transp): Likewise.
3272 (extract_mentioned_regs_helper): Likewise.
3273 * genemit.c (gen_exp): Likewise.
3274 * local-alloc.c (equiv_init_varies_p): Likewise.
3275 (contains_replace_regs): Likewise.
3276 (memref_referenced_p): Likewise.
3277 * loop-invariant.c (check_maybe_invariant): Likewise.
3278 (hash_invariant_expr_1): Likewise.
3279 (invariant_expr_equal_p): Likewise.
3280 * postreload-gcse.c (oprs_unchanged_p): Likewise.
3281 * regclass.c (reg_scan_mark_refs): Likewise.
3282 * regrename.c (scan_rtx): Likewise.
3283 * resource.c (mark_referenced_resources): Likewise.
3284 (mark_set_resources): Likewise.
3285 * rtlanal.c (rtx_unstable_p): Likewise.
3286 (rtx_varies_p): Likewise.
3287 (count_occurrences): Likewise.
3288 (reg_mentioned_p): Likewise.
3289 (modified_between_p): Likewise.
3290 (modified_in_p): Likewise.
3291 (volatile_insn_p): Likewise.
3292 (volatile_refs_p): Likewise.
3293 (side_effects_p): Likewise.
3294 (may_trap_p_1): Likewise.
3295 (inequality_comparisons_p): Likewise.
3296 (computed_jump_p_1): Likewise.
3297 (commutative_operand_precedence): Likewise.
3298 * sched-deps.c (sched_analyze_2): Likewise.
3299 * sched-vis.c (print_value): Likewise.
3300 * reload.c (operands_match_p): Likewise.
3301 (subst_reg_equivs): Likewise.
3302 * reload1.c (eliminate_regs_1): Likewise.
3303 (elimination_effects): Likewise.
3304 (scan_paradoxical_subregs): Likewise.
3305 * alias.c (rtx_equal_for_memref_p): Likewise.
3306 * Makefile.in (RTL_BASE_H): Add fixed-value.h.
3307 * emit-rtl.c (const_fixed_htab): New hash table.
3308 (const_fixed_htab_hash, const_fixed_htab_eq, lookup_const_fixed):
3309 Declare.
3310 (const_fixed_htab_hash, const_fixed_htab_eq, lookup_const_fixed,
3311 const_fixed_from_fixed_value): New functions.
3312 (verify_rtx_sharing): Handle CONST_FIXED.
3313 (copy_rtx_if_shared_1): Likewise.
3314 (reset_used_flags): Likewise.
3315 (set_used_flags): Likewise.
3316 (copy_insn_1): Likewise.
3317 (init_emit_once): Create const_fixed_htab.
3318 Store fixed-point scalar and vector zero and one to const_tiny_rtx.
3319
3320 2007-08-22 Zdenek Dvorak <ook@ucw.cz>
3321
3322 PR tree-optimization/32949
3323 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Test nowrap_type_p
3324 before failing for ivs with non-constant step.
3325
3326 2007-08-22 Hans-Peter Nilsson <hp@axis.com>
3327
3328 * doc/md.texi (Iterators): Renamed from Macros. All contents
3329 changed to reflect rename of respectively define_code_macro and
3330 define_mode_macro to define_code_iterator and define_mode_iterator.
3331 (Mode Iterators, Code Iterators): Similar.
3332 * read-rtl.c (struct iterator_group, struct iterator_traverse_data)
3333 (uses_mode_iterator_p, apply_mode_iterator, uses_code_iterator_p)
3334 (apply_iterator_to_string, uses_iterator_p, apply_iterator_traverse)
3335 (initialize_iterators, find_iterator, check_code_iterator)
3336 (map_attr_string, apply_mode_maps, apply_iterator_to_rtx, add_mapping)
3337 (read_mapping, read_rtx_1): Similar.
3338 * config/alpha/sync.md, config/alpha/alpha.md, config/frv/frv.md,
3339 config/s390/s390.md, config/m32c/blkmov.md, config/m32c/m32c.md,
3340 config/spu/spu.md, config/sparc/sparc.md, config/sparc/sync.md,
3341 config/i386/i386.md, config/i386/mmx.md, config/i386/sse.md,
3342 config/i386/sync.md, config/crx/crx.md, config/xtensa/xtensa.md,
3343 config/cris/cris.c, config/cris/cris.md, config/ia64/sync.md,
3344 config/ia64/div.md, config/ia64/vect.md, config/ia64/ia64.md,
3345 config/m68k/m68k.md, config/rs6000/spe.md, config/rs6000/altivec.md,
3346 config/rs6000/sync.md, config/rs6000/rs6000.md,
3347 config/arm/vec-common.md, config/arm/neon.md, config/arm/iwmmxt.md,
3348 config/arm/arm.md, config/mips/mips-dsp.md, config/mips/mips.md,
3349 config/vax/vax.md, config/bfin/bfin.md: Similar.
3350
3351 2007-08-22 David Daney <ddaney@avtrex.com>
3352
3353 * doc/install.texi (Testing): Mention testing on a simulator.
3354
3355 2007-08-22 Janis Johnson <janis187@us.ibm.com>
3356
3357 * config/dfp-bit.c (DFP_TO_DFP): Check for overflow.
3358
3359 * doc/libgcc.texi (Decimal float library routines): Fix formatting
3360 and rearrange floating point conversion functions into different
3361 categories.
3362
3363 2007-08-22 Maxim Kuvyrkov <maxim@codesourcery.com>
3364
3365 * target.h (struct gcc_target.sched: dfa_pre_advance_cycle,
3366 dfa_post_advance_cycle): New scheduler hooks.
3367 * target-def.h (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE,
3368 TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): New macros to initialize
3369 new hooks.
3370 (TARGET_SCHED): Use them.
3371 * doc/tm.texi (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE,
3372 TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Document new hooks.
3373 * haifa-sched.c (advance_one_cycle): Invoke new hooks.
3374
3375 * genautomata.c (insn_has_dfa_reservation_p): New DFA interface
3376 function to facilitate debugging.
3377 (INSN_HAS_DFA_RESERVATION_P_FUNC_NAME): New macro.
3378 (output_insn_has_dfa_reservation_p): New static function to output
3379 insn_has_dfa_reservation_p ().
3380 (write_automata): Use it.
3381 * genattr.c (main): Output declaration for
3382 insn_has_dfa_reservation_p ().
3383
3384 2007-08-22 Christian Bruel <christian.bruel@st.com>
3385 Richard Guenther <rguenther@suse.de>
3386
3387 * fold-const.c (fold_binary): Optimize A-A if -ffinite-math-only.
3388 * simplify_rtx (simplify_binary_operation_1): Likewise.
3389
3390 2007-08-22 Rask Ingemann Lambertsen <rask@sygehus.dk>
3391
3392 PR rtl-optimization/32557
3393 * df-problems.c (df_note_bb_compute): Use mws->start_regno instead
3394 of REGNO (mws->mw_reg).
3395
3396 2007-08-22 Richard Guenther <rguenther@suse.de>
3397
3398 PR middle-end/33007
3399 * builtins.c (expand_builtin_int_roundingfn): Replace call
3400 argument wrapped with SAVE_EXPR directly.
3401 (expand_builtin_int_roundingfn_2): Likewise.
3402
3403 2007-08-22 Richard Guenther <rguenther@suse.de>
3404
3405 * tree-inline.c (inlinable_function_p): Restore disregarding
3406 inline limits for GNU extern inline functions.
3407
3408 2007-08-22 Richard Guenther <rguenther@suse.de>
3409
3410 PR middle-end/32563
3411 * tree.c (host_integerp): Treat sizetype as signed as it is
3412 sign-extended.
3413
3414 2007-08-21 Ian Lance Taylor <iant@google.com>
3415
3416 PR tree-optimization/33134
3417 * tree-vrp.c (adjust_range_with_scev): Call
3418 set_value_range_to_value.
3419
3420 2007-08-21 Aldy Hernandez <aldyh@redhat.com>
3421
3422 * value-prof.h (gimple_remove_histogram_value): Remove duplicate
3423 prototype.
3424
3425 2007-08-21 Aldy Hernandez <aldyh@redhat.com>
3426
3427 * tree-flow-inline.h (next_imm_use_stmt): Remove unecessary
3428 whitespace.
3429
3430 2007-08-21 Nathan Froyd <froydnj@codesourcery.com>
3431
3432 * config/rs6000/rs6000.c (expand_block_clear): Add TARGET_SPE
3433 cases to set eight bytes at a time.
3434 (expand_block_move): Likewise.
3435
3436 2007-08-21 Jakub Jelinek <jakub@redhat.com>
3437
3438 PR debug/32610
3439 * dwarf2out.c (gen_decl_die): Don't call
3440 gen_tagged_type_instantiation_die if decl doesn't have tagged type.
3441
3442 2007-08-21 Paul Brook <paul@codesourcery.com>
3443 Nathan Sidwell <nathan@codesourcery.com>
3444 Mark Mitchell <mark@codesourcery.com>
3445 Joseph Myers <joseph@codesourcery.com>
3446
3447 * configure.ac: Add --with-pkgversion and --with-bugurl.
3448 * configure: Regenerate.
3449 * doc/install.texi: Document them.
3450 * version.c (version_string): Remove VERSUFFIX.
3451 (VERSUFFIX): Remove.
3452 (pkgversion_string): New.
3453 (bug_report_url): Do not hard-code initializer.
3454 * version.h (pkgversion_string): Declare.
3455 * Makefile.in (PKGVERSION_s, BUGURL_s, PKGVERSION, BUGURL_TEXI):
3456 Define.
3457 (version.o): Define PKGVERSION and BUGURL.
3458 (gcc-vers.texi): Define VERSION_PACKAGE and BUGURL.
3459 (%.pod): Define BUGURL.
3460 * gcc.c (process_command, main): Use pkgversion_string.
3461 * toplev.c (compile_file, print_version): Likewise.
3462 * protoize.c (main): Likewise.
3463 * gcov.c (print_version): Likewise. Update copyright date.
3464 * gcov-dump.c (print_version): Likewise. Update copyright date.
3465 * mips-tdump.c (main): Likewise. Update copyright date.
3466 * mips-tfile.c (main): Likewise. Update copyright date.
3467 * doc/include/gcc-common.texi: Include VERSION_PACKAGE as subtitle.
3468 * doc/bugreport.texi: Use BUGURL for bug-reporting instructions;
3469 shorten description.
3470 * doc/gcc.texi: Include VERSION_PACKAGE in version description.
3471 * doc/gccint.texi: Likewise.
3472 * doc/invoke.texi: Use BUGURL for bug-reporting instructions.
3473 Update copyright date.
3474
3475 2007-08-21 Uros Bizjak <ubizjak@gmail.com>
3476
3477 * config/i386/i386.c (ix86_expand_clear): Use FLAGS_REG.
3478 (ix86_expand_strlensi_unroll_1): Ditto.
3479 (ix86_expand_branch): Use FLAGS_REG and FPSR_REG.
3480 (ix86_expand_carry_flag_compare): Update comment.
3481
3482 2007-08-21 Jakub Jelinek <jakub@redhat.com>
3483
3484 PR middle-end/32912
3485 * fold-const.c (fold_unary): Optimize BIT_NOT_EXPR of VECTOR_CST.
3486 (fold_binary): Handle vectors in X | ~X and X ^ ~X optimizations.
3487
3488 2007-08-21 Richard Guenther <rguenther@suse.de>
3489
3490 * fold-const.c (fold_binary): Revert removing of index +p PTR folding.
3491
3492 2007-08-21 Richard Guenther <rguenther@suse.de>
3493
3494 PR middle-end/33122
3495 * fold-const.c (fold_binary): Remove index +p PTR folding.
3496 Fix types of POINTER_PLUS_EXPR generated by folding of
3497 (PTR +p B) +p A.
3498
3499 2007-08-20 Chao-ying Fu <fu@mips.com>
3500
3501 * c-common.h (enum rid): Add new enumeration values of RID_SAT,
3502 RID_FRACT, and RID_ACCUM. RID_SAT needs to be inserted before
3503 RID_ONEWAY, so that it can be checked in declspecs_add_type.
3504 (c_common_fixed_point_type_for_size): Declare.
3505 * c-parser.c (reswords): Add _Fract, _Accum, and _Sat.
3506 (c_token_starts_typename): Handle RID_FRACT, RID_ACCUM, and RID_SAT.
3507 (c_token_starts_declspecs): Likewise.
3508 (c_parser_declspecs): Likewise.
3509 (c_parser_attributes): Likewise.
3510 * c-tree.h (enum c_typespec_keyword): Add cts_fract and cts_accum.
3511 (c_declspecs): Add saturating_p.
3512 * c-decl.c (build_null_declspecs): Initialize saturating_p.
3513 (declspecs_add_type): Avoid using complex with _Fract, _Accum, or
3514 _Sat. Handle RID_SAT.
3515 Avoid using void, bool, char, int, float, double, _Decimal32,
3516 _Decimal64, _Decimal128, and complex with _Sat.
3517 Handle RID_FRACT and RID_ACCUM.
3518 Make sure _Sat is used with _Fract or _Accum.
3519 (finish_declspecs): Handle cts_fract and cts_accum.
3520 * c-common.c (fixed-value.h): New include.
3521 (constant_expression_warning): Handle FIXED_CST.
3522 (overflow_warning): Likewise.
3523 (warnings_for_convert_and_check): Likewise.
3524 (c_common_fixed_point_type_for_size): New.
3525 (c_common_type_for_mode): Handle fixed-point modes to
3526 return various saturating/non-saturating, signed/unsigned types.
3527 (c_common_signed_or_unsigned_type): Support fixed-point types.
3528 (shorten_compare): Check fixed-point zero.
3529 Handle FIXED_POINT_TYPE.
3530 (c_common_truthvalue_conversion): Handle FIXED_CST.
3531 Handle FIXED_POINT_TYPE.
3532 (c_common_nodes_and_builtins): Record builtin types for fixed-point
3533 types.
3534 (handle_mode_attribute): Handle fixed-point modes. Need to check
3535 if the signness of base type and fixed-point modes are consistent.
3536 (handle_vector_size_attribute): Handle fixed-point modes.
3537 (same_scalar_type_ignoring_signedness): Handle FIXED_POINT_TYPE.
3538 (warn_for_div_by_zero): Check fixed-point zero.
3539 * c-typeck.c (c_common_type): Check FIXED_POINT_TYPE. Build
3540 a common fixed-point type based on fbit, ibit, sign, and saturation.
3541 (build_unary_op): Allow FIXED_POINT_TYPE for CONVERT_EXPR,
3542 NEGATE_EXPR, TRUTH_NOT_EXPR, PREINCREMENT_EXPR, POSTINCREMENT_EXPR,
3543 PREDECREMENT_EXPR, and POSTDECREMENT_EXPR.
3544 (convert_for_assignment): Support FIXED_POINT_TYPE.
3545 (digest_init): Handle FIXED_POINT_TYPE.
3546 (build_binary_op): Support FIXED_POINT_TYPE in *_DIV_EXPR,
3547 TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
3548 TRUTH_XOR_EXPR, RSHIFT_EXPR, LSHIFT_EXPR, EQ_EXPR, NE_EXPR, LE_EXPR,
3549 GE_EXPR, LT_EXPR, GT_EXPR.
3550 * target-def.h (TARGET_FIXED_POINT_SUPPORTED_P): New.
3551 (TARGET_INITIALIZER): Add TARGET_FIXED_POINT_SUPPORTED_P.
3552 * target.h (gcc_target): Add fixed_point_supported_p.
3553 * targhooks.c (default_scalar_mode_supported_p): Handle MODE_FRACT,
3554 MODE_UFRACT, MODE_ACCUM, and MODE_UACCUM.
3555 (default_fixed_point_supported_p): Define.
3556 * targhooks.h (default_fixed_point_supported_p): Declare.
3557 * doc/tm.texi (TARGET_FIXED_POINT_SUPPORTED_P): Add.
3558 * doc/install.texi (Configuration): Add --enable-fixed-point.
3559 * configure.ac (--enable-fixed-point): New to enable fixed-point
3560 arithmetic extension to C. For mips targets, we enable it by default.
3561 * configure, config.in: Regenerate.
3562
3563 2007-08-20 Pawel Sikora <pluto@pld-linux.org>
3564
3565 * doc/invoke.texi (-Wnon-virtual-dtor): Update documentation.
3566
3567 2007-08-20 David Edelsohn <edelsohn@gnu.org>
3568
3569 * dwarf2out.c (text_section_used): Move declaration outside ifdef
3570 DWARF2_DEBUGGING_INFO.
3571 (cold_text_section_used): Same.
3572 (cold_text_section): Same.
3573
3574 2007-08-20 Richard Guenther <rguenther@suse.de>
3575
3576 * c-typeck.c (convert_for_assignment): Use the type of
3577 the member for the initialization.
3578
3579 2007-08-20 Richard Guenther <rguenther@suse.de>
3580
3581 * c-objc-common.c (c_disregard_inline_limits): Remove.
3582 * c-objc-common.h (c_disregard_inline_limits): Likewise.
3583 * cgraphunit.c (cgraph_process_new_functions): Call
3584 disregard_inline_limits_p.
3585 (cgraph_preserve_function_body_p): Likewise.
3586 * ipa-inline.c (compute_inline_parameters): Likewise.
3587 * langhooks-def.h (lhd_tree_inlining_disregard_inline_limits):
3588 Remove.
3589 (LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS): Remove.
3590 (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
3591 disregard_inline_limits langhook.
3592 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
3593 Remove.
3594 * langhooks.h (lang_hooks_for_tree_inlining): Remove
3595 disregard_inline_limits langhook.
3596 * tree-inline.c (disregard_inline_limits_p): New function.
3597 * tree-inline.h (disregard_inline_limits_p): Declare.
3598
3599 2007-08-20 Richard Guenther <rguenther@suse.de>
3600
3601 * langhooks-def.h (lhd_tree_inlining_auto_var_in_fn_p): Remove.
3602 (LANG_HOOKS_TREE_INLINING_AUTO_VAR_IN_FN_P): Likewise.
3603 (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
3604 auto_var_in_fn_p langhook.
3605 * langhooks.c (lhd_tree_inlining_auto_var_in_fn_p): Rename and
3606 move ...
3607 * tree.c (auto_var_in_fn_p): ... here.
3608 (find_var_from_fn): Call auto_var_in_fn_p directly.
3609 * langhooks.h (lang_hooks_for_tree_inlining): Remove
3610 auto_var_in_fn_p langhook.
3611 * tree-inline.c (remap_decls): Call auto_var_in_fn_p directly.
3612 (copy_body_r): Likewise.
3613 (self_inlining_addr_expr): Likewise.
3614 * tree.h (auto_var_in_fn_p): Declare.
3615
3616 2007-08-20 Richard Guenther <rguenther@suse.de>
3617
3618 * tree.c (WALK_SUBTREE): Call walk_tree_1.
3619 (walk_type_fields): Take lh parameter.
3620 (walk_tree): Rename to ...
3621 (walk_tree_1): ... this. Do not call the walk_subtrees
3622 langhook but the now passed callback. Pass lh on recursion.
3623 (walk_tree_without_duplicates): Rename to ...
3624 (walk_tree_without_duplicates_1): ... this. Take lh parameter
3625 and call walk_tree_1.
3626 * tree.h (walk_tree_lh): New typedef.
3627 (walk_tree_1): Declare.
3628 (walk_tree_without_duplicates_1): Likewise.
3629 (walk_tree): New define to walk_tree_1 with NULL lh parameter.
3630 (walk_tree_without_duplicates): New define to
3631 walk_tree_without_duplicates_1 with NULL lh parameter.
3632 * langhooks.c (lhd_tree_inlining_walk_subtrees): Remove.
3633 * langhooks.h (lang_hooks_for_tree_inlining): Remove walk_subtrees
3634 langhook.
3635 * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Remove.
3636 (LANG_HOOKS_TREE_INLINING_WALK_SUBTREES): Likewise.
3637 (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove walk_subtrees
3638 initializer.
3639
3640 2007-08-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
3641
3642 PR middle-end/30564
3643 * tree-inline.c (optimize_inline_calls): Move the cgraph checking
3644 code in front of the compacting of basic blocks.
3645 Move the folding of statements inbetween the cgraph checking
3646 and compacting of basic blocks.
3647
3648 2007-08-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
3649 Serge Belyshev <belyshev@depni.sinp.msu.ru>
3650
3651 PR target/32522
3652 * config/alpha/alpha.c (va_list_skip_additions): Check for
3653 POINTER_PLUS_EXPR in addition to PLUS_EXPR.
3654 (alpha_stdarg_optimize_hook): Look for POINTER_PLUS_EXPR instead of
3655 PLUS_EXPR when checking ap.__base.
3656 (alpha_va_start): Create POINTER_PLUS_EXPR instead of PLUS_EXPR
3657 when doing addition on pointer types. Use size_int instead of
3658 build_int_cst.
3659 (alpha_gimplify_va_arg_1): Likewise, but use sizetype instead of
3660 ptr_type in the second operand.
3661
3662 2007-08-19 Andrew Pinski <pinskia@gmail.com>
3663
3664 PR target/33115
3665 * config/i386/darwin.h (CC1_SPEC): Add %(cc1_cpu) in front.
3666
3667 2007-08-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
3668
3669 PR middle-end/32940
3670 * cfgexpand.c (expand_one_register_var): Mark pointer
3671 DECL_ARTIFICIAL as REG_POINTER also.
3672 * stmt.c (expand_decl): Likewise.
3673
3674 2007-08-19 Daniel Berlin <dberlin@dberlin.org>
3675
3676 Fix PR 32772
3677 Fix PR 32716
3678 Fix PR 32328
3679 Fix PR 32303
3680
3681 * tree-flow.h (struct stmt_ann_d): Remove makes_clobbering_call.
3682 * tree-ssa-alias.c (init_transitive_clobber_worklist): Add
3683 on_worklist argument and avoid adding things to worklist multiple
3684 times.
3685 (add_to_worklist): Ditto.
3686 (mark_aliases_call_clobbered): Mark entire structure clobbered if
3687 single SFT is clobbered.
3688 (set_initial_properties): Ditto.
3689 (compute_call_clobbered): Update for changes to function
3690 arguments.
3691 (create_overlap_variables_for): Always create SFT for offset 0.
3692 (create_structure_vars): Handle PHI's, since we are in SSA form at
3693 this point.
3694 * tree-ssa-loop-ivopts.c (get_ref_tag): Don't return subvars.
3695 * tree-ssa-operands.c (access_can_touch_variable): Don't handle
3696 TARGET_MEM_REF.
3697 (add_vars_for_offset): Figure out aliases from access + points-to.
3698 (add_virtual_operand): Use add_vars-for_offset.
3699 (get_tmr_operands): Update for NMT changes, rewrite to be correct.
3700 (add_call_clobber_ops): Remove makes_clobbering_call set.
3701 (get_expr_operands): Always pass through the INDIRECT_REF
3702 reference.
3703 * tree-ssa-structalias.c (struct constraint_graph): Remove
3704 variables member.
3705 Add pe, pe_rep, pointer_label, loc_label, pointed_by, points_to,
3706 address_taken, pt_used, number_incoming.
3707 (FIRST_ADDR_NODE): Removed.
3708 (merge_graph_nodes): Remove broken code for the moment.
3709 (init_graph): New function.
3710 (build_pred_graph): Remove code to init_graph.
3711 Add location equivalence support.
3712 (struct scc_info): Rename roots to deleted.
3713 (scc_visit): Ditto.
3714 (init_scc_info): Ditto
3715 (init_topo_info): Use graph->size.
3716 (compute_topo_order): Ditto.
3717 (do_da_constraint): Removed.
3718 (do_sd_constraint): Remove calls to find().
3719 set_union_with_increment should always get 0 as last arg here.
3720 (do_complex_constraint): Replace do_da_constraint with assert.
3721 Stop calling find.
3722 (struct equiv_class_label): New.
3723 (pointer_equiv_class_table): Ditto.
3724 (location_equiv_class_table): Ditto.
3725 (equiv_class_label_hash): Ditto.
3726 (equiv_class_label_eq): Ditto
3727 (equiv_class_lookup): Ditto.
3728 (equiv_class_ladd): Ditto.
3729 (pointer_equiv_class): Ditto.
3730 (location_equiv_class): Ditto.
3731 (condense_visit): Rename and rewrite from label_visit to do only
3732 SCC related stuff for HU.
3733 (label_visit): Do HU work for HU.
3734 (perform_var_substitution): Update to do HU and location
3735 equivalence.
3736 (free_var_substitution_info): Update to free HU and location
3737 equivalence structures. */
3738 (find_equivalent_node): Update for pointer but not location
3739 equivalence.
3740 (unite_pointer_equivalences): New function.
3741 (move_complex_constraints): Rewrite to only do moving.
3742 (rewrite_constraints): Split out of move_complex_constraints.
3743 (solve_graph): Use graph->size.
3744 (process_constraint_1): Add from_call argument, use it.
3745 Split *a = &b into two constraints.
3746 (process_constraint): Use new process_constraint_1.
3747 (get_constraint_for_component_ref): Handle bitmaxsize == -1 case.
3748 (get_constraint_for): Handle non-pointer integers properly.
3749 Remove code that used to handle structures.
3750 (handle_ptr_arith): Fix a few bugs in pointer arithmetic handling
3751 with unknown addends.
3752 (handle_rhs_call): New function.
3753 (find_func_aliases): Use handle_rhs_call.
3754 (set_uids_in_ptset): Add an assert.
3755 (set_used_smts): Fix bug in not considering unified vars.
3756 (compute_tbaa_pruning): Stop initing useless iteration_obstack.
3757 (compute_points_to_sets): Update for other function changes.
3758 (delete_points_to_sets): Ditto.
3759 (ipa_pta_execute): Ditto.
3760 (pass_ipa_pta): We need to update SSA after ipa_pta.
3761
3762 2007-08-19 Jan Hubicka <jh@suse.cz>
3763
3764 * i386.md: Replace "rim" and "mri" constraints by "g".
3765
3766 2007-08-19 Joseph Myers <joseph@codesourcery.com>
3767
3768 * dwarf2out.c (text_section_used, cold_text_section_used,
3769 cold_text_section, dwarf2out_note_section_used): New.
3770 (dwarf2out_init): Initialize cold_text_section.
3771 (dwarf2out_switch_text_section, dwarf2out_begin_function): Call
3772 dwarf2out_note_section_used.
3773 (size_of_aranges): Only count entry for text section if it was
3774 used. Count entry for cold text section if it was used.
3775 (output_aranges): Only output entries for text section and cold
3776 text section if they were used.
3777
3778 2007-08-19 Andrew Pinski <pinskia@gmail.com>
3779
3780 * tree-pretty-print.c (debug_generic_expr): Add a comment about
3781 the function.
3782 (debug_generic_stmt): Likewise.
3783 (debug_tree_chain): Likewise.
3784
3785 2007-08-19 Dorit Nuzman <dorit@il.ibm.com>
3786
3787 * tree-data-refs.c (split_constant_offset): Expose.
3788 * tree-data-refs.h (split_constant_offset): Add declaration.
3789
3790 * tree-vectorizer.h (dr_alignment_support): Renamed
3791 dr_unaligned_software_pipeline to dr_explicit_realign_optimized.
3792 Added a new value dr_explicit_realign.
3793 (_stmt_vec_info): Added new fields: dr_base_address, dr_init,
3794 dr_offset, dr_step, and dr_aligned_to, along with new access
3795 functions for these fields: STMT_VINFO_DR_BASE_ADDRESS,
3796 STMT_VINFO_DR_INIT, STMT_VINFO_DR_OFFSET, STMT_VINFO_DR_STEP, and
3797 STMT_VINFO_DR_ALIGNED_TO.
3798
3799 * tree-vectorizer.c (vect_supportable_dr_alignment): Add
3800 documentation.
3801 In case of outer-loop vectorization with non-fixed misalignment - use
3802 the dr_explicit_realign scheme instead of the optimized realignment
3803 scheme.
3804 (new_stmt_vec_info): Initialize new fields.
3805
3806 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Handle the
3807 'nested_in_vect_loop' case. Change verbosity level.
3808 (vect_analyze_data_ref_access): Handle the 'nested_in_vect_loop' case.
3809 Don't fail on zero step in the outer-loop for loads.
3810 (vect_analyze_data_refs): Call split_constant_offset to calculate
3811 base, offset and init relative to the outer-loop.
3812
3813 * tree-vect-transform.c (vect_create_data_ref_ptr): Replace the unused
3814 BSI function argument with a new function argument - at_loop.
3815 Simplify the condition that determines STEP. Takes additional argument
3816 INV_P. Support outer-loop vectorization (handle the
3817 nested_in_vect_loop case), including zero step in the outer-loop. Call
3818 vect_create_addr_base_for_vector_ref with additional argument.
3819 (vect_create_addr_base_for_vector_ref): Takes additional argument LOOP.
3820 Updated function documentation. Handle the 'nested_in_vect_loop' case.
3821 Fixed and simplified calculation of step.
3822 (vectorizable_store): Call vect_create_data_ref_ptr with loop instead
3823 of bsi, and with additional argument. Call bump_vector_ptr with
3824 additional argument. Fix typos. Handle the 'nested_in_vect_loop' case.
3825 (vect_setup_realignment): Takes additional arguments INIT_ADDR and
3826 DR_ALIGNMENT_SUPPORT. Returns another value AT_LOOP. Handle the case
3827 when the realignment setup needs to take place inside the loop.
3828 Support the dr_explicit_realign scheme. Allow generating the optimized
3829 realignment scheme for outer-loop vectorization. Added documentation.
3830 (vectorizable_load): Support the dr_explicit_realign scheme. Handle
3831 the 'nested_in_vect_loop' case, including loads that are invariant in
3832 the outer-loop and the realignment schemes. Handle the case when the
3833 realignment setup needs to take place inside the loop. Call
3834 vect_setup_realignment with additional arguments. Call
3835 vect_create_data_ref_ptr with additional argument and with loop instead
3836 of bsi. Fix 80-column overflow. Fix typos. Rename PHI_STMT to PHI.
3837 (vect_gen_niters_for_prolog_loop): Call
3838 vect_create_addr_base_for_vector_ref with additional arguments.
3839 (vect_create_cond_for_align_checks): Likewise.
3840 (bump_vector_ptr): Updated to support the new dr_explicit_realign
3841 scheme: takes additional argument bump; argument ptr_incr is now
3842 optional; updated documentation.
3843 (vect_init_vector): Takes additional argument (bsi). Use it, if
3844 available, to insert the vector initialization.
3845 (get_initial_def_for_induction): Pass additional argument in call to
3846 vect_init_vector.
3847 (vect_get_vec_def_for_operand): Likewise.
3848 (vect_setup_realignment): Likewise.
3849 (vectorizable_load): Likewise.
3850
3851 2007-08-19 Dorit Nuzman <dorit@il.ibm.com>
3852
3853 * tree-vectorizer.h (vect_is_simple_reduction): Takes a loop_vec_info
3854 as argument instead of struct loop.
3855 (nested_in_vect_loop_p): New function.
3856 (vect_relevant): Add enum values vect_used_in_outer_by_reduction and
3857 vect_used_in_outer.
3858 (is_loop_header_bb_p): New. Used to differentiate loop-header phis
3859 from other phis in the loop.
3860 (destroy_loop_vec_info): Add additional argument to declaration.
3861
3862 * tree-vectorizer.c (supportable_widening_operation): Also check if
3863 nested_in_vect_loop_p (don't allow changing the order in this case).
3864 (vect_is_simple_reduction): Takes a loop_vec_info as argument instead
3865 of struct loop. Call nested_in_vect_loop_p and don't require
3866 flag_unsafe_math_optimizations if it returns true.
3867 (new_stmt_vec_info): When setting def_type for phis differentiate
3868 loop-header phis from other phis.
3869 (bb_in_loop_p): New function.
3870 (new_loop_vec_info): Inner-loop phis already have a stmt_vinfo, so
3871 just update their loop_vinfo. Order of BB traversal now matters -
3872 call dfs_enumerate_from with bb_in_loop_p.
3873 (destroy_loop_vec_info): Takes additional argument to control whether
3874 stmt_vinfo of the loop stmts should be destroyed as well.
3875 (vect_is_simple_reduction): Allow the "non-reduction" use of a
3876 reduction stmt to be defines by a non loop-header phi.
3877 (vectorize_loops): Call destroy_loop_vec_info with additional argument.
3878
3879 * tree-vect-transform.c (vectorizable_reduction): Call
3880 nested_in_vect_loop_p. Check for multitypes in the inner-loop.
3881 (vectorizable_call): Likewise.
3882 (vectorizable_conversion): Likewise.
3883 (vectorizable_operation): Likewise.
3884 (vectorizable_type_promotion): Likewise.
3885 (vectorizable_type_demotion): Likewise.
3886 (vectorizable_store): Likewise.
3887 (vectorizable_live_operation): Likewise.
3888 (vectorizable_reduction): Likewise. Also pass loop_info to
3889 vect_is_simple_reduction instead of loop.
3890 (vect_init_vector): Call nested_in_vect_loop_p.
3891 (get_initial_def_for_reduction): Likewise.
3892 (vect_create_epilog_for_reduction): Likewise.
3893 (vect_init_vector): Check which loop to work with, in case there's an
3894 inner-loop.
3895 (get_initial_def_for_inducion): Extend to handle outer-loop
3896 vectorization. Fix indentation.
3897 (vect_get_vec_def_for_operand): Support phis in the case vect_loop_def.
3898 In the case vect_induction_def get the vector def from the induction
3899 phi node, instead of calling get_initial_def_for_inducion.
3900 (get_initial_def_for_reduction): Extend to handle outer-loop
3901 vectorization.
3902 (vect_create_epilog_for_reduction): Extend to handle outer-loop
3903 vectorization.
3904 (vect_transform_loop): Change assert to just skip this case. Add a
3905 dump printout.
3906 (vect_finish_stmt_generation): Add a couple asserts.
3907
3908 (vect_estimate_min_profitable_iters): Multiply
3909 cost of inner-loop stmts (in outer-loop vectorization) by estimated
3910 inner-loop bound.
3911 (vect_model_reduction_cost): Don't add reduction epilogue cost in case
3912 this is an inner-loop reduction in outer-loop vectorization.
3913
3914 * tree-vect-analyze.c (vect_analyze_scalar_cycles_1): New function.
3915 Same code as what used to be vect_analyze_scalar_cycles, only with
3916 additional argument loop, and loop_info passed to
3917 vect_is_simple_reduction instead of loop.
3918 (vect_analyze_scalar_cycles): Code factored out into
3919 vect_analyze_scalar_cycles_1. Call it for each relevant loop-nest.
3920 Updated documentation.
3921 (analyze_operations): Check for inner-loop loop-closed exit-phis during
3922 outer-loop vectorization that are live or not used in the outerloop,
3923 cause this requires special handling.
3924 (vect_enhance_data_refs_alignment): Don't consider versioning for
3925 nested-loops.
3926 (vect_analyze_data_refs): Check that there are no datarefs in the
3927 inner-loop.
3928 (vect_mark_stmts_to_be_vectorized): Also consider vect_used_in_outer
3929 and vect_used_in_outer_by_reduction cases.
3930 (process_use): Also consider the case of outer-loop stmt defining an
3931 inner-loop stmt and vice versa.
3932 (vect_analyze_loop_1): New function.
3933 (vect_analyze_loop_form): Extend, to allow a restricted form of nested
3934 loops. Call vect_analyze_loop_1.
3935 (vect_analyze_loop): Skip (inner-)loops within outer-loops that have
3936 been vectorized. Call destroy_loop_vec_info with additional argument.
3937
3938 * tree-vect-patterns.c (vect_recog_widen_sum_pattern): Don't allow
3939 in the inner-loop when doing outer-loop vectorization. Add
3940 documentation and printout.
3941 (vect_recog_dot_prod_pattern): Likewise. Also add check for
3942 GIMPLE_MODIFY_STMT (in case we encounter a phi in the loop).
3943
3944 2007-08-18 Andrew Pinski <pinskia@gmail.com>
3945
3946 * tree-affine.h (print_aff): New prototype.
3947 (debug_aff): Likewise.
3948 * tree-affine.c (print_aff): New function.
3949 (debug_aff): Likewise.
3950
3951 2007-08-18 Paul Brook <paul@codesourcery.com>
3952 Joseph Myers <joseph@codesourcery.com>
3953
3954 * common.opt (-fdebug-prefix-map=): New option.
3955 * opts.c: Include debug.h.
3956 (common_handle_option): Handle -fdebug-prefix-map.
3957 * final.c: Include ggc.h.
3958 (struct debug_prefix_map, debug_prefix_maps, add_debug_prefix_map,
3959 remap_debug_filename): New.
3960 * Makefile.in (final.o, opts.o): Update dependencies.
3961 * debug.h (remap_debug_filename, add_debug_prefix_map): Declare.
3962 * configure.ac: Check for assembler --debug-prefix-map support.
3963 * configure, config.in: Regenerate.
3964 * gcc.c (ASM_MAP): Define conditional on HAVE_AS_DEBUG_PREFIX_MAP.
3965 (ASM_DEBUG_SPEC): Include ASM_MAP.
3966 * doc/install.texi (--with-debug-prefix-map): Document.
3967 * doc/invoke.texi (-fdebug-prefix-map): Document.
3968 * dbxout.c (dbxout_init, dbxout_start_source_file,
3969 dbxout_source_file): Call remap_debug_filename.
3970 * dwarf2out.c (add_comp_dir_attribute, maybe_emit_file,
3971 dwarf2out_start_source_file, dwarf2out_finish): Call
3972 remap_debug_filename.
3973 (file_table_relative_p): Do not check d->emitted_number.
3974 * toplev.c (output_file_directive): Call remap_debug_filename.
3975 * vmsdbgout.c (write_srccorr): Call remap_debug_filename.
3976 * xcoffout.c (xcoffout_source_file): Call remap_debug_filename.
3977
3978 2007-08-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3979
3980 * loop-invariant.c (find_invariants_to_move): Add missing macro
3981 argument.
3982
3983 2007-08-17 Tom Tromey <tromey@redhat.com>
3984
3985 * tree.h (struct tree_label_decl): Removed old "java" fields.
3986
3987 2007-08-17 Richard Sandiford <richard@codesourcery.com>
3988 Nigel Stephens <nigel@mips.com>
3989
3990 * config/mips/sde.h (DRIVER_SELF_SPECS): Add commas.
3991 Treat -mno-data-in-code and -mcode-xonly as aliases for
3992 -mcode-readable=no and -mcode-readable=pcrel respectively.
3993 * config/mips/t-sde (TARGET_LIBGCC2_CFLAGS): Add -mcode-xonly.
3994 (MULTILIB_OPTIONS): Add -mcode-readable=no multilibs.
3995 (MULTILIB_DIRNAMES): Update accordingly.
3996
3997 2007-08-17 H.J. Lu <hongjiu.lu@intel.com>
3998
3999 * Makefile.in (version.o): Depend on $(REVISION) only if
4000 REVISION_s is defined.
4001
4002 2007-08-17 Sa Liu <saliu@de.ibm.com>
4003 Ulrich Weigand <uweigand@de.ibm.com>
4004
4005 PR middle-end/32970
4006 * tree.c (reconstruct_complex_type): For a pointer to a vector,
4007 use build_qualified_type to retain qualifiers of the base type.
4008
4009 2007-08-17 Chen Liqin <liqin@sunnorth.com.cn>
4010
4011 * config/score/score.md : Update pattern tablejump.
4012 * config/score/score.c : Update score_initialize_trampoline
4013 function.
4014 * config/score/score.h (TRAMPOLINE_TEMPLATE): Added macro.
4015 (TRAMPOLINE_INSNS, TRAMPOLINE_SIZE) Update macro.
4016 * doc/contrib.texi: Add my entry.
4017
4018 2007-08-16 H.J. Lu <hongjiu.lu@intel.com>
4019
4020 * Makefile.in (REVISION): New.
4021 (REVISION_c): New.
4022 (REVISION_s): New.
4023 (version.o): Also depend on $(REVISION). Add
4024 -DREVISION=$(REVISION_s).
4025
4026 * version.c (version_string): Add REVISION.
4027
4028 2007-08-16 Seongbae Park <seongbae.park@gmail.com>
4029
4030 * tree-eh.c (lower_try_finally_onedest): Reset the locus
4031 of GOTO that's relocated to a different block.
4032
4033 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4034
4035 * c-common.c (const_strip_array_types): New.
4036 * c-common.h (lang_missing_noreturn_ok_p): Delete.
4037 (const_strip_array_types): New.
4038 * c-objc-common.c (c_disregard_inline_limits,
4039 c_warn_unused_global_decl): Constify.
4040 * c-tree.h (c_disregard_inline_limits, c_warn_unused_global_decl,
4041 c_vla_type_p, c_incomplete_type_error): Likewise.
4042 * c-typeck.c (c_incomplete_type_error, c_vla_type_p): Likewise.
4043 * hooks.c (hook_bool_const_tree_false): New.
4044 * hooks.h (hook_bool_const_tree_false): Likewise.
4045 * langhooks-def.h (lhd_warn_unused_global_decl,
4046 lhd_incomplete_type_error, lhd_expr_size,
4047 lhd_tree_inlining_disregard_inline_limits,
4048 lhd_tree_inlining_auto_var_in_fn_p, lhd_tree_dump_type_quals,
4049 LANG_HOOKS_GENERIC_TYPE_P, LANG_HOOKS_TYPE_MAX_SIZE): Constify.
4050 * langhooks.c (lhd_warn_unused_global_decl,
4051 lhd_incomplete_type_error,
4052 lhd_tree_inlining_disregard_inline_limits,
4053 lhd_tree_inlining_auto_var_in_fn_p, lhd_tree_dump_type_quals,
4054 lhd_expr_size): Likewise.
4055 * langhooks.h (lang_hooks_for_tree_inlining,
4056 lang_hooks_for_tree_dump, lang_hooks_for_types,
4057 lang_hooks_for_decls, lang_hooks): Likewise.
4058 * pointer-set.c (pointer_set_t, pointer_set_create,
4059 pointer_set_contains, insert_aux, pointer_set_insert,
4060 pointer_set_traverse, pointer_map_t, pointer_map_create,
4061 pointer_map_contains, pointer_map_insert, pointer_map_traverse):
4062 Likewise.
4063 * pointer-set.h (pointer_set_contains, pointer_set_insert,
4064 pointer_set_traverse, pointer_map_contains, pointer_map_insert,
4065 pointer_map_traverse): Likewise.
4066 * predict.c (assert_is_empty): Likewise.
4067 * tree-affine.c (free_name_expansion): Likewise.
4068 * tree-cfg.c (edge_to_cases_cleanup): Likewise.
4069 * tree.c (size_in_bytes, max_int_size_in_bytes): Likewise.
4070 * tree.h (size_in_bytes, max_int_size_in_bytes): Likewise.
4071
4072 2007-08-16 Victor Kaplansky <victork@il.ibm.com>
4073
4074 * tree-vectorizer.c (new_loop_vec_info): Initialize new
4075 field.
4076 (destroy_loop_vec_info): Add call to VEC_free.
4077 * tree-vectorizer.h (may_alias_ddrs): Define.
4078 (LOOP_VINFO_MAY_ALIAS_DDRS): Define.
4079 * tree-vect-analyze.c (vect_analyze_data_ref_dependence):
4080 Change reporting to dump.
4081 (vect_is_duplicate_ddr): New.
4082 (vect_mark_for_runtime_alias_test): New.
4083 (vect_analyze_data_ref_dependences) Add call to
4084 vect_mark_for_runtime_alias_test.
4085 (vect_enhance_data_refs_alignment): Define local variable
4086 vect_versioning_for_alias_required, don't perform
4087 peeling for alignment if versioning for alias is
4088 required.
4089 (vect_enhance_data_refs_alignment): Use
4090 PARAM_VECT_MAX_VERSION_FOR_ALIGNMENT_CHECKS instead of
4091 PARAM_VECT_MAX_VERSION_CHECKS.
4092 * tree-vect-transform.c
4093 (vect_create_cond_for_alias_checks): New.
4094 (vect_transform_loop): Add call to
4095 vect_create_cond_for_alias_checks.
4096 (vect_vfa_segment_size): New.
4097 * params.def (PARAM_VECT_MAX_VERSION_FOR_ALIGNMENT_CHECKS):
4098 Rename.
4099 (PARAM_VECT_MAX_VERSION_FOR_ALIAS_CHECKS): Define.
4100 * gcc/doc/invoke.texi
4101 (vect-max-version-for-alignment-checks): Document.
4102 (vect-max-version-for-alias-checks): Document.
4103 (vect-max-version-checks): Remove.
4104
4105 2007-08-16 Uros Bizjak <ubizjak@gmail.com>
4106
4107 * config/i386/i386.md (*rep_movdi_rex64): Emit "rep" prefix on
4108 the same line as the instruction for all asm dialects.
4109 (*rep_movsi): Ditto.
4110 (*rep_movsi_rex64): Ditto.
4111 (*rep_movqi): Ditto.
4112 (*rep_movqi_rex64): Ditto.
4113 (*rep_stosdi_rex64): Ditto.
4114 (*rep_stossi): Ditto.
4115 (*rep_stossi_rex64): Ditto.
4116 (*rep_stosqi): Ditto.
4117 (*rep_stosqi_rex64): Ditto.
4118 (*cmpstrnqi_nz_1): Ditto.
4119 (*cmpstrnqi_nz_rex_1): Ditto.
4120 (*cmpstrnqi_1): Ditto.
4121 (*cmpstrnqi_rex_1): Ditto.
4122 (*strlenqi_1): Ditto.
4123 (*strlenqi_rex_1): Ditto.
4124 * config/i386/sync.md (*sync_compare_and_swap<mode>): Emit "lock"
4125 prefix on the same line as the instruction for all asm dialects.
4126 (sync_double_compare_and_swap<mode>): Ditto.
4127 (*sync_double_compare_and_swapdi_pic): Ditto.
4128 (*sync_compare_and_swap_cc<mode>): Ditto.
4129 (sync_double_compare_and_swap_cc<mode>): Ditto.
4130 (*sync_double_compare_and_swap_ccdi_pic): Ditto.
4131 (sync_old_add<mode>): Ditto.
4132 (sync_add<mode>): Ditto.
4133 (sync_sub<mode>): Ditto.
4134 (sync_ior<mode>): Ditto.
4135 (sync_and<mode>): Ditto.
4136 (sync_xor<mode>): Ditto.
4137
4138 2007-08-16 Richard Sandiford <richard@codesourcery.com>
4139
4140 PR middle-end/32897
4141 * reload.c (find_reloads): Check that the memory returned by
4142 find_reloads_toplev was not the result of forcing a constant
4143 to memory.
4144 (find_reloads_toplev): Always use simplify_gen_subreg to get
4145 the subreg of a constant. If the result is also a constant,
4146 but not a legitimate one, force it into the constant pool
4147 and reload its address.
4148
4149 2007-08-15 David Edelsohn <edelsohn@gnu.org>
4150
4151 * config/rs6000/rs6000.c (rs6000_rtx_costs): Add CLZ, CTZ, and
4152 POPCOUNT.
4153
4154 2007-08-15 Daniel Jacobowitz <dan@codesourcery.com>
4155
4156 * config/rs6000/rs6000.c (rs6000_file_start): Output a .gnu_attribute
4157 directive for the current vector ABI.
4158
4159 2007-08-15 Steve Ellcey <sje@cup.hp.com>
4160
4161 PR target/32963
4162 * caller-save.c (reg_save_code): Set invalide status on restore code.
4163
4164 2007-08-15 Diego Novillo <dnovillo@google.com>
4165
4166 * tree-ssa-alias.c (compute_memory_partitions): Use
4167 alias_bitmap_obstack to allocate bitmaps.
4168 (reset_alias_info): Factor out of init_alias_info.
4169 Mark all name tags not associated to an SSA name for renaming.
4170 (init_alias_info): Call it.
4171 (create_name_tags): Tidy. Add comments.
4172 (dump_points_to_info_for): Do not call get_mem_sym_stats_for.
4173
4174 2007-08-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4175
4176 * config/mips/mips.c (vr4130_swap_insns_p): Use new interface to
4177 scheduler dependencies.
4178
4179 2007-08-15 Rask Ingemann Lambertsen <rask@sygehus.dk>
4180
4181 * config/i386/i386.md (subsi3_carry_zext): Remove "m" constraint for
4182 "register_operand".
4183 (*iorsi_1_zext): Likewise.
4184 (*iorsi_1_zext_imm): Likewise.
4185 * config/i386/sse.md: (*sse4_1_extractps): Use "nonimmediate_operand"
4186 with "rm"/"xm" constraint.
4187 (sse2_vmsqrtv2df2): Likewise.
4188
4189 2007-08-15 Jakub Jelinek <jakub@redhat.com>
4190
4191 PR middle-end/33074
4192 * emit-rtl.c (try_split): Use INSN_LIST instead of EXPR_LIST for
4193 REG_LIBCALL note.
4194
4195 2007-08-14 Daniel Berlin <dberlin@dberlin.org>
4196
4197 * tree-pass.h (PROP_pta): Removed.
4198 (TODO_rebuild_alias): New.
4199 (pass_may_alias): Removed.
4200 * tree-ssa-ccp.c (execute_fold_all_builtins): Only rebuild
4201 aliasing if we changed something.
4202 * tree-ssa-alias.c (compute_may_aliases): Make non-static. Update
4203 SSA internally.
4204 (pass_may_alias): Removed.
4205 (create_structure_vars): Return TODO_rebuild_alias.
4206 * tree-ssa-pre.c (do_pre): Return TODO_rebuild_alias.
4207 * tree-sra.c (tree_sra): Only rebuild aliasing if something
4208 changed.
4209 (tree_sra_early): We never affect aliasing right now.
4210 * tree-flow.h (compute_may_aliases): New prototype.
4211 * passes.c: Remove pass_may_alias from the passes.
4212 (execute_function_todo): Support TODO_rebuild_alias.
4213
4214 2007-08-14 Kai Tietz <kai.tietz@onevision.com>
4215
4216 * i386.c: (legitimize_address): Move dllimported variable check
4217 infront of legitimizing pic address of CONST symbols.
4218
4219 2007-08-14 Steve Ellcey <sje@cup.hp.com>
4220
4221 PR tree-optimization/32941
4222 * tree-eh.c (struct leh_tf_state): Add goto_queue_map field.
4223 (goto_queue_cmp): Remove.
4224 (find_goto_replacement): Change search method.
4225 (maybe_record_in_goto_queue): Add assert.
4226 (lower_try_finally): Remove qsort call, add pointer_map_destroy call.
4227 * Makefile.in (tree-eh.o): Add pointer-set.h dependency.
4228
4229 2007-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4230
4231 * alias.c (component_uses_parent_alias_set): Constify.
4232 * alias.h (component_uses_parent_alias_set): Likewise.
4233 * cfgrtl.c (print_rtl_with_bb): Likewise.
4234 * double-int.c (tree_to_double_int, double_int_fits_to_tree_p,
4235 mpz_get_double_int): Likewise.
4236 * double-int.h (double_int_fits_to_tree_p, tree_to_double_int,
4237 mpz_get_double_int): Likewise.
4238 * expr.c (is_aligning_offset, undefined_operand_subword_p,
4239 mostly_zeros_p, all_zeros_p, safe_from_p, is_aligning_offset):
4240 Likewise.
4241 * expr.h (safe_from_p): Likewise.
4242 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru):
4243 Likewise.
4244 * gimplify.c (should_carry_locus_p, zero_sized_field_decl,
4245 zero_sized_type, goa_lhs_expr_p): Likewise.
4246 * omp-low.c (is_variable_sized, use_pointer_for_field): Likewise.
4247 * rtl.h (print_rtl_with_bb): Likewise.
4248 * sched-vis.c (print_exp, print_value, print_pattern): Likewise.
4249 * tree-cfg.c (const_first_stmt, const_last_stmt): New.
4250 * tree-flow-inline.h (bb_stmt_list): Constify.
4251 (cbsi_start, cbsi_last, cbsi_end_p, cbsi_next, cbsi_prev,
4252 cbsi_stmt): New.
4253 * tree-flow.h (const_block_stmt_iterator, cbsi_start, cbsi_last,
4254 const_first_stmt, const_last_stmt): New.
4255 (block_may_fallthru, empty_block_p): Constify.
4256 * tree-iterator.c (EXPR_FIRST_BODY, EXPR_LAST_BODY,
4257 EXPR_ONLY_BODY): New.
4258 (expr_first, expr_last, expr_only): Use macro for body.
4259 (const_expr_first, const_expr_last, const_expr_only): New.
4260 * tree-iterator.h (const_tree_stmt_iterator, ctsi_start,
4261 ctsi_last, ctsi_end_p, ctsi_one_before_end_p, ctsi_next,
4262 ctsi_prev, ctsi_stmt): New.
4263 * tree-scalar-evolution.c (get_loop_exit_condition): Constify.
4264 * tree-scalar-evolution.h (get_loop_exit_condition): Likewise.
4265 * tree-ssa-loop-niter.c (loop_only_exit_p,
4266 derive_constant_upper_bound): Likewise.
4267 * tree-ssa-phiopt.c (empty_block_p): Likewise.
4268 * tree-ssa-threadupdate.c (redirection_block_p): Likewise.
4269 * tree-vectorizer.c (slpeel_can_duplicate_loop_p): Likewise.
4270 * tree-vectorizer.h (slpeel_can_duplicate_loop_p): Likewise.
4271 * tree-vrp.c (vrp_bitmap_equal_p): Likewise.
4272 * tree.c (get_type_static_bounds): Likewise.
4273 * tree.h (const_expr_first, const_expr_last, const_expr_only): New.
4274 (get_type_static_bounds): Constify.
4275
4276 2007-08-14 Rask Ingemann Lambertsen <rask@sygehus.dk>
4277
4278 PR target/30315
4279 * config/i386/i386.h (CANONICALIZE_COMPARISON): New.
4280 * config/i386/i386.md (plusminus)(addsub)(SWI): New.
4281 (*<addsub><mode>3_cc_overflow): New.
4282 (*add<mode>3_cconly_overflow): New.
4283 (*sub<mode>3_cconly_overflow): New.
4284 (*<addsub>si3_zext_cc_overflow): New.
4285 * config/i386/predicates.md (fcmov_comparison_operator): Accept
4286 CCCmode for LTU, GTU, LEU and GEU.
4287 (ix86_comparison_operator): Likewise.
4288 (ix86_carry_flag_operator): Carry flag is set if LTU or GTU in CCCmode.
4289 * config/i386/i386.c (put_condition_code): Support CCCmode.
4290 (ix86_cc_mode): Use CCCmode when testing for overflow of PLUS
4291 or MINUS expressions.
4292
4293 2007-08-14 Andrew Pinski <pinskia@gmail.com>
4294
4295 PR c/30428
4296 * c-typeck.c (build_binary_op): Disallow vector float types with
4297 BIT_IOR_EXPR, BIT_AND_EXPR, and BIT_XOR_EXPR.
4298
4299 2007-08-14 Maxim Kuvyrkov <maxim@codesourcery.com>
4300
4301 * sched-int.h (struct _dep): Rename field 'kind' to 'type'.
4302 (DEP_KIND): Rename to DEP_TYPE. Update all uses.
4303 (dep_def): New typedef.
4304 (init_dep_1, sd_debug_dep): Declare functions.
4305 (DEP_LINK_KIND): Rename to DEP_LINK_TYPE.
4306 (debug_dep_links): Remove.
4307 (struct _deps_list): New field 'n_links'.
4308 (DEPS_LIST_N_LINKS): New macro.
4309 (FOR_EACH_DEP_LINK): Remove.
4310 (create_deps_list, free_deps_list, delete_deps_list): Remove
4311 declaration.
4312 (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
4313 (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
4314 (copy_deps_list_change_con, move_dep_link): Ditto.
4315 (struct haifa_insn_data): Split field 'back_deps' into 'hard_back_deps'
4316 and 'spec_back_deps'. New field 'resolved_forw_deps'. Remove field
4317 'dep_count'.
4318 (INSN_BACK_DEPS): Remove.
4319 (INSN_HARD_BACK_DEPS, INSN_SPEC_BACK_DEPS, INSN_RESOLVED_FORW_DEPS):
4320 New macros.
4321 (INSN_DEP_COUNT): Remove.
4322 (enum DEPS_ADJUST_RESULT): Add new constant DEP_NODEP. Fix comments.
4323 (spec_info, haifa_recovery_block_was_added_during_scheduling_p):
4324 Declare global variables.
4325 (deps_pools_are_empty_p, sched_free_deps): Declare functions.
4326 (add_forw_dep, compute_forward_dependences): Remove declarations.
4327 (add_or_update_back_dep, add_or_update_back_forw_dep): Ditto.
4328 (add_back_forw_dep, delete_back_forw_dep): Ditto.
4329 (debug_ds, sched_insn_is_legitimate_for_speculation_p): Declare
4330 functions.
4331 (SD_LIST_NONE, SD_LIST_HARD_BACK, SD_LIST_SPEC_BACK, SD_LIST_FORW):
4332 New constants.
4333 (SD_LIST_RES_BACK, SD_LIST_RES_FORW, SD_LIST_BACK): Ditto.
4334 (sd_list_types_def): New typedef.
4335 (sd_next_list): Declare function.
4336 (struct _sd_iterator): New type.
4337 (sd_iterator_def): New typedef.
4338 (sd_iterator_start, sd_iterator_cond, sd_iterator_next): New inline
4339 functions.
4340 (FOR_EACH_DEP): New cycle wrapper.
4341 (sd_lists_size, sd_lists_empty_p, sd_init_insn, sd_finish_insn):
4342 Declare functions.
4343 (sd_find_dep_between, sd_add_dep, sd_add_or_update_dep): Ditto.
4344 (sd_resolve_dep, sd_copy_back_deps, sd_delete_dep, sd_debug_lists):
4345 Ditto.
4346
4347 * sched-deps.c (init_dep_1): Make global.
4348 (DUMP_DEP_PRO, DUMP_DEP_CON, DUMP_DEP_STATUS, DUMP_DEP_ALL): New
4349 constants.
4350 (dump_dep): New static function.
4351 (dump_dep_flags): New static variable.
4352 (sd_debug_dep): New function.
4353 (add_to_deps_list, remove_from_deps_list): Update 'n_links' field of
4354 the list.
4355 (move_dep_link): Use remove_from_deps_list (), instead of
4356 detach_dep_link ().
4357 (dep_links_consistent_p, dump_dep_links, debug_dep_links): Remove.
4358 (dep_link_is_detached_p): New static function.
4359 (deps_obstack, dl_obstack, dn_obstack): Remove. Use dn_pool, dl_pool
4360 instead.
4361 (dn_pool, dl_pool): New alloc_pools.
4362 (dn_pool_diff, dl_pool_diff): New static variables.
4363 (create_dep_node, delete_dep_node): New static function.
4364 (create_deps_list): Make it static. Use alloc_pool 'dl_pool'.
4365 (deps_list_empty_p): Make it static. Use 'n_links' field.
4366 (deps_pools_are_empty_p): New static function.
4367 (alloc_deps_list, delete_deps_list): Remove.
4368 (dump_deps_list, debug_deps_list, add_back_dep_to_deps_list): Remove.
4369 (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
4370 (copy_deps_list_change_con): Remove. Use sd_copy_back_deps () instead.
4371 (forward_dependency_cache): Remove.
4372 (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Remove
4373 'back' from the names. Change signature to use dep_t instead of
4374 equivalent quad.
4375 (add_back_dep): Ditto. Make global.
4376 (check_dep_status): Rename to check_dep ().
4377 (sd_next_list, sd_lists_size, sd_lists_empty_p, sd_init_insn):
4378 New functions.
4379 (sd_finish_insn): Ditto.
4380 (sd_find_dep_between_no_cache): New static function.
4381 (sd_find_dep_between): New function.
4382 (ask_dependency_caches, set_dependency_caches): New static functions.
4383 (update_dependency_caches, change_spec_dep_to_hard, update_dep): Ditto.
4384 (add_or_update_dep_1): Separate pieces of functionality into
4385 ask_dependency_caches (), update_dependency_caches (),
4386 change_spec_dep_to_hard (), update_dep ().
4387 (get_back_and_forw_lists): New static function.
4388 (sd_add_dep): Separate setting of dependency caches into
4389 set_dependency_caches ().
4390 (sd_add_or_update_dep, sd_resolve_dep, sd_copy_back_deps):
4391 New functions.
4392 (sd_delete_dep): Ditto.
4393 (DUMP_LISTS_SIZE, DUMP_LISTS_DEPS, DUMP_LISTS_ALL): New constants.
4394 (dump_lists): New static function.
4395 (sd_debug_lists): New debug function.
4396 (delete_all_dependences, fixup_sched_groups): Update to use
4397 sd_* infrastructure.
4398 (sched_analyze_2): Create data-speculative dependency only if
4399 data-speculation is enabled.
4400 (sched_analyze_insn): If insn cannot be speculative, make all its
4401 dependencies non-speculative.
4402 (sched_analyze): Use sd_init_insn ().
4403 (add_forw_dep, compute_forward_dependencies): Remove.
4404 (delete_dep_nodes_in_back_deps): New static function.
4405 (sched_free_deps): New function.
4406 (init_dependency_caches): Init alloc_pools.
4407 (extend_depedency_caches): Update after removing of
4408 forward_dependency_cache.
4409 (free_dependency_caches): Ditto. Free alloc_pools.
4410 (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Remove.
4411 (delete_forw_dep, add_or_update_back_dep, add_or_update_back_forw_dep):
4412 Ditto.
4413 (add_back_forw_dep, delete_back_forw_dep): Ditto.
4414 (add_dependence): Use init_dep ().
4415 (get_dep_weak_1): New static function.
4416 (get_dep_weak): Move logic to get_dep_weak_1 ().
4417 (dump_ds): New static function moved from haifa-sched.c:
4418 debug_spec_status ().
4419 (debug_ds): New debug function.
4420 (check_dep_status): Rename to check_dep (). Update to check whole
4421 dependencies.
4422
4423 * haifa-sched.c (spec_info): Make global.
4424 (added_recovery_block_p): Rename to
4425 'haifa_recovery_block_was_added_during_current_schedule_block_p'.
4426 (haifa_recovery_block_was_added_during_scheduling_p): New variable.
4427 (dep_cost, priority, rank_for_schedule, schedule_insn): Update
4428 to use new interfaces.
4429 (ok_for_early_queue_removal): Ditto.
4430 (schedule_block): Initialize logical uids of insns emitted by the
4431 target.
4432 (sched_init): Initialize new variable.
4433 (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
4434 interfaces.
4435 (extend_global): Initialize insn data.
4436 (init_h_i_d): Remove code that is now handled in sd_init_insn ().
4437 (process_insn_forw_deps_be_in_spec): Change signature. Update to use
4438 new interfaces.
4439 (add_to_speculative_block): Update to use new interfaces.
4440 (create_recovery_block): Set new variables.
4441 (create_check_block_twin, fix_recovery_deps): Update to use new
4442 interfaces.
4443 (sched_insn_is_legitimate_for_speculation_p): New function.
4444 (speculate_insn): Move checking logic to
4445 sched_insn_is_legitimate_for_speculation_p ().
4446 (sched_remove_insn): Finalize sched-deps information of instruction.
4447 (clear_priorities, add_jump_dependencies): Update to use new
4448 interfaces.
4449 (debug_spec_status): Rename to dump_ds () and move to sched-deps.c.
4450
4451 * sched-rgn.c (set_spec_fed, find_conditional_protection): Update
4452 to use new interfaces.
4453 (is_conditionally_protected, is_pfree, is_prisky) Ditto.
4454 (new_ready): Try to use control speculation only if it is available.
4455 (add_branch_dependences): Update to use new interfaces.
4456 (compute_block_backward_dependences): Rename to
4457 compute_block_dependences (). Call
4458 targetm.sched.dependencies_evaluation_hook ().
4459 (free_block_dependencies): New static function.
4460 (debug_dependencies): Update to use new interfaces.
4461 (schedule_region): Remove separate computation of forward dependencies.
4462 Move call of targetm.sched.dependencies_evaluation_hook () to
4463 compute_block_dependences (). Free dependencies at the end of
4464 scheduling the region.
4465
4466 * sched-ebb.c (earliest_block_with_similiar_load): Update to use
4467 new interfaces.
4468 (add_deps_for_risky_insns): Ditto.
4469 (schedule_ebb): Remove separate computation of forward dependencies.
4470 Free dependencies at the end of scheduling the ebb.
4471
4472 * ddg.c (create_ddg_dependence): Update to use new interfaces.
4473 (build_intra_loop_deps): Ditto. Remove separate computation of
4474 forward dependencies. Free sched-deps dependencies.
4475
4476 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Update
4477 to use new interfaces.
4478 (ia64_dfa_new_cycle, ia64_gen_check): Ditto.
4479
4480 * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Update to use
4481 new interfaces.
4482 (is_costly_group): Ditto.
4483
4484 2007-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4485
4486 * alias.c (rtx_equal_for_memref_p): Constify.
4487 * basic-block.h (const_edge, const_basic_block): New.
4488 (reg_set_to_hard_reg_set, dfs_enumerate_from, single_succ_p,
4489 single_pred_p, single_succ_edge, single_pred_edge, single_succ,
4490 single_pred, maybe_hot_bb_p, probably_cold_bb_p,
4491 probably_never_executed_bb_p, edge_probability_reliable_p,
4492 br_prob_note_reliable_p, forwarder_block_p, flow_nodes_print,
4493 inside_basic_block_p, control_flow_insn_p, dominated_by_p):
4494 Likewise.
4495 * bb-reorder.c (better_edge_p, push_to_next_round_p): Likewise.
4496 * bt-load.c (basic_block_freq, insn_sets_btr_p, can_move_up):
4497 Likewise.
4498 * cfganal.c (flow_active_insn_p, forwarder_block_p,
4499 flow_nodes_print, dfs_enumerate_from): Likewise.
4500 * cfgbuild.c (count_basic_blocks, inside_basic_block_p,
4501 control_flow_insn_p, count_basic_blocks): Likewise.
4502 * cfgloop.c (flow_bb_inside_loop_p, glb_enum_p,
4503 get_loop_body_with_size, loop_exit_edge_p): Likewise.
4504 * cfgloop.h (flow_bb_inside_loop_p, num_loop_insns,
4505 average_num_loop_insns, loop_exit_edge_p,
4506 just_once_each_iteration_p, can_duplicate_loop_p): Likewise.
4507 * cfgloopanal.c (just_once_each_iteration_p, num_loop_insns,
4508 average_num_loop_insns, seq_cost): Likewise.
4509 * cfgloopmanip.c (rpe_enum_p, can_duplicate_loop_p): Likewise.
4510 * dominance.c (dominated_by_p): Likewise.
4511 * emit-rtl.c (validate_subreg): Likewise.
4512 * except.c (can_throw_internal, can_throw_external): Likewise.
4513 * except.h (can_throw_internal, can_throw_external): Likewise.
4514 * gcse.c (gcse_constant_p, oprs_unchanged_p, oprs_anticipatable_p,
4515 oprs_available_p, hash_expr, expr_equiv_p, oprs_not_set_p,
4516 compute_transp, load_killed_in_block_p, reg_killed_on_edge,
4517 simple_mem, store_ops_ok, load_kills_store, find_loads,
4518 store_killed_in_insn, store_killed_after, store_killed_before,
4519 gcse_mem_operand, implicit_set_cond_p, store_killed_in_pat):
4520 Likewise.
4521 * ifcvt.c (count_bb_insns, cheap_bb_rtx_cost_p, noce_operand_ok,
4522 noce_mem_write_may_trap_or_fault_p): Likewise.
4523 * pointer-set.c (pointer_set_contains, pointer_map_contains):
4524 Likewise.
4525 * pointer-set.h (pointer_set_contains, pointer_map_contains):
4526 Likewise.
4527 * predict.c (can_predict_insn_p, maybe_hot_bb_p,
4528 probably_cold_bb_p, probably_never_executed_bb_p,
4529 edge_probability_reliable_p, br_prob_note_reliable_p,
4530 can_predict_insn_p): Likewise.
4531 * regclass.c (reg_set_to_hard_reg_set): Likewise.
4532 * resource.c (return_insn_p): Likewise.
4533 * rtl.h (reg_set_between_p, reg_set_p, validate_subreg):
4534 Likewise.
4535 * rtlanal.c (reg_set_between_p, reg_set_p): Likewise.
4536 * tracer.c (count_insns, ignore_bb_p, better_p): Likewise.
4537 * tree-cfg.c (verify_gimple_unary_expr, verify_gimple_binary_expr,
4538 verify_gimple_modify_stmt): Likewise.
4539 * tree-chrec.c (is_not_constant_evolution,
4540 is_multivariate_chrec_rec, is_multivariate_chrec,
4541 chrec_contains_symbols, chrec_contains_undetermined,
4542 tree_contains_chrecs, evolution_function_is_affine_multivariate_p,
4543 evolution_function_is_univariate_p, avoid_arithmetics_in_type_p,
4544 eq_evolutions_p, scev_direction): Likewise.
4545 * tree-chrec.h (automatically_generated_chrec_p, tree_is_chrec,
4546 eq_evolutions_p, is_multivariate_chrec, chrec_contains_symbols,
4547 chrec_contains_symbols_defined_in_loop,
4548 chrec_contains_undetermined, tree_contains_chrecs,
4549 evolution_function_is_affine_multivariate_p,
4550 evolution_function_is_univariate_p, chrec_zerop,
4551 evolution_function_is_constant_p, evolution_function_is_affine_p,
4552 evolution_function_is_affine_or_constant_p,
4553 tree_does_not_contain_chrecs, chrec_type): Likewise.
4554 * tree-data-ref.c (tree_fold_divides_p,
4555 object_address_invariant_in_loop_p, dr_may_alias_p,
4556 ziv_subscript_p, siv_subscript_p, gcd_of_steps_may_divide_p,
4557 same_access_functions, constant_access_functions,
4558 access_functions_are_affine_or_constant_p, find_vertex_for_stmt):
4559 Likewise.
4560 * tree-flow.h (scev_direction): Likewise.
4561 * tree-gimple.c (is_gimple_stmt): Likewise.
4562 * tree-outof-ssa.c (identical_copies_p, identical_stmt_lists_p):
4563 Likewise.
4564 * tree-pretty-print.c (op_prio): Likewise.
4565 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop,
4566 analyzable_condition, backedge_phi_arg_p): Likewise.
4567 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
4568 * tree-ssa-operands.c (get_name_decl, operand_build_cmp): Likewise.
4569 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p):
4570 Likewise.
4571
4572 2007-08-13 Dan Hipschman <dsh@google.com>
4573
4574 PR c/32953
4575 * c-format.c (check_format_arg): Move check for zero-length
4576 format strings below the check for unterminated strings.
4577
4578 2007-08-13 Andrew Pinski <pinskia@gmail.com>
4579
4580 PR C/30427
4581 * c-typeck.c (build_unary_op <case BIT_NOT_EXPR>): Reject vector float
4582 types.
4583
4584 2007-08-13 Nick Clifton <nickc@redhat.com>
4585
4586 * config/arm/arm_neon.h: Revert GPLv3 patch to this file.
4587
4588 2007-08-12 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4589
4590 PR fortran/32860
4591 * c-format.c (gcc_gfc_length_specs): New array.
4592 (gcc_gfc_char_table): Add unsigned specifier, and references to
4593 the l length modifier.
4594 (format_types_orig): Use the new gcc_gfc_length_specs.
4595
4596 2007-08-12 Sa Liu <saliu@de.ibm.com>
4597
4598 * emit-rtl.c (try_split): Relink the insns with REG_LIBCALL note
4599 and with REG_RETVAL note after split.
4600
4601 2007-08-11 David Daney <ddaney@avtrex.com>
4602
4603 * config/mips/mips.c (mips_sched_reorder): Mark cycle parameter
4604 as ATTRIBUTE_UNUSED.
4605
4606 2007-08-11 David Edelsohn <edelsohn@gnu.org>
4607 Segher Boessenkool <segher@kernel.crashing.org>
4608
4609 * config/rs6000/rs6000.h (CC1_CPU_SPEC): Define as empty string if
4610 HAVE_LOCAL_CPU_DETECT not defined.
4611
4612 2007-08-11 Jan Hubicka <jh@suse.cz>
4613
4614 * cgraphunit.c (record_cdtor_fn): Declare all cdtors always inlined.
4615 (cgraph_process_new_functions): Honor previous value of
4616 disregard_inline_limits.
4617 * ipa-inline.c (compute_inline_parameters): Likewise.
4618
4619 2007-08-11 Ian Lance Taylor <iant@google.com>
4620
4621 * alias.h (alias_set_type): Define new type.
4622 (ALIAS_SET_MEMORY_BARRIER): Use it.
4623 * rtl.h: Include alias.h.
4624 (struct mem_attrs): Use alias_set_type.
4625 * tree.h: Include alias.h
4626 (struct tree_type): Use alias_set_type.
4627 (struct tree_struct_field_tag): Likewise.
4628 (struct tree_decl_common): Likewise.
4629 * alias.c (struct alias_set_entry): Use alias_set_type.
4630 (get_alias_set_entry, alias_set_subset_of): Likewise.
4631 (alias_sets_conflict_p): Likewise.
4632 (alias_sets_must_conflict_p): Likewise.
4633 (objects_must_conflict_p): Likewise.
4634 (get_alias_set, new_alias_set): Likewise.
4635 (record_alias_subset, record_component_aliases): Likewise.
4636 (varargs_set, frame_set): Change to alias_set_type.
4637 (get_varargs_alias_set): Use alias_set_type.
4638 (get_frame_alias_set): Likewise.
4639 * builtins.c (setjmp_alias_set): Change to alias_set_type.
4640 * dse.c (struct store_info): Use alias_set_type.
4641 (struct read_info, struct clear_alias_mode_holder): Likewise.
4642 (clear_alias_set_lookup, canon_address): Likewise.
4643 (record_store, check_mem_read_rtx): Likewise.
4644 (dse_record_singleton_alias_set): Likewise.
4645 (dse_invalidate_singleton_alias_set): Likewise.
4646 * emit-rtl.c (get_mem_attrs): Likewise.
4647 (set_mem_attributes_minus_bitpos): Likewise.
4648 (set_mem_alias_set): Likewise.
4649 * expr.c (store_constructor_field, store_field): Likewise.
4650 * gimplify.c (struct gimplify_init_ctor_preeval_data): Likewise.
4651 * langhooks.c (lhd_get_alias_set): Likewise.
4652 * langhooks-def.h (lhd_get_alias_set): Likewise.
4653 * reload1.c (alter_reg): Likewise.
4654 * tree-flow.h (struct fieldoff): Likewise.
4655 * tree-ssa-alias.c (struct alias_map_d): Likewise.
4656 (may_alias_p, get_smt_for, create_sft): Likewise.
4657 * tree-ssa-alias-warnings.c (nonstandard_alias_types_p): Likewise.
4658 * tree-ssa-structalias.c (set_uids_in_ptset): Likewise.
4659 (merge_smts_into): Likewise.
4660 * varasm.c (const_alias_set): Likewise.
4661 * c-common.c (strict_aliasing_warning): Likewise.
4662 (c_common_get_alias_set): Likewise.
4663 * dse.h (dse_record_singleton_alias_set): Update declaration.
4664 (dse_invalidate_singleton_alias_set): Likewise.
4665 * emit-rtl.h (set_mem_alias_set): Likewise.
4666 * c-common.h (c_common_get_alias_set): Likewise.
4667 * print-rtl.c (print_rtx): Cast MEM_ALIAS_SET when printing it.
4668 * print-tree.c (print_node): Likewise.
4669 * config/alpha/alpha.c (alpha_sr_alias_set): Change to
4670 alias_set_type.
4671 (alpha_setup_incoming_varargs): Use alias_set_type.
4672 * config/i386/i386.c (setup_incoming_varargs_64): Use
4673 alias_set_type.
4674 (setup_incoming_varargs_ms_64): Likewise.
4675 (ix86_GOT_alias_set): Likewise.
4676 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
4677 * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
4678 (set): Change to alias_set_type.
4679 (get_TOC_alias_set): Use alias_set_type.
4680 * config/rs6000/rs6000-protos.h (get_TOC_alias_set): Update
4681 declaration.
4682 * config/sh/sh.c (sh_builtin_saveregs): Use alias_set_type.
4683 * config/sparc/sparc.c (sparc_sr_alias_set): Change to
4684 alias_set_type.
4685 (struct_value_alias_set): Likewise.
4686 * Makefile.in (GTFILES): Add $(srcdir)/alias.h.
4687
4688 2007-08-11 Richard Sandiford <richard@codesourcery.com>
4689
4690 * config/vxworks-dummy.h (TARGET_VXWORKS): Define.
4691 * config/vxworks.h (TARGET_VXWORKS): Override.
4692 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define
4693 "mips" if TARGET_VXWORKS.
4694
4695 2007-08-11 Richard Sandiford <richard@codesourcery.com>
4696
4697 * calls.c (avoid_likely_spilled_reg): New function.
4698 (expand_call): Use it.
4699
4700 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4701
4702 * c-typeck.c (build_c_cast): Add OPT_Wcast_qual to warnings.
4703
4704 2007-08-10 Adam Nemet <anemet@caviumnetworks.com>
4705
4706 * config/mips/predicates.md (const_call_insn_operand): Invoke
4707 SYMBOL_REF_LONG_CALL_P only on SYMBOL_REFs.
4708
4709 2007-08-10 David Edelsohn <edelsohn@gnu.org>
4710
4711 PR target/33042
4712 * config/rs6000/driver-rs6000.c: Include link.h.
4713 Use ElfW instead of wordsize-specif typedef.
4714
4715 2007-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4716
4717 * system.h (CONST_CAST): New.
4718 * c-decl.c (c_make_fname_decl): Use it.
4719 * c-lex.c (cb_ident, lex_string): Likewise.
4720 * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
4721 * gcc.c (set_spec, read_specs, for_each_path, execute, do_spec_1,
4722 give_switch, set_multilib_dir): Likewise.
4723 * gengtype-parse.c (string_seq, typedef_name): Likewise.
4724 * passes.c (execute_one_pass): Likewise.
4725 * prefix.c (update_path): Likewise.
4726 * pretty-print.c (pp_base_destroy_prefix): Likewise.
4727 * tree.c (build_string): Likewise.
4728
4729 2007-08-10 Aldy Hernandez <aldyh@redhat.com>
4730
4731 * tree-flow-inline.h (is_exec_stmt): Remove.
4732 (is_label_stmt): Remove.
4733 * tree-flow.h: Remove prototypes for is_exec_stmt, get_filename, and
4734 is_label_stmt.
4735
4736 2007-08-10 Andreas Krebbel <krebbel1@de.ibm.com>
4737
4738 * lower-subreg.c (resolve_shift_zext): Don't adjust
4739 src_reg_num for wordmode operands.
4740
4741 2007-08-10 Sandra Loosemore <sandra@codesourcery.com>
4742 David Ung <davidu@mips.com>
4743
4744 * config/mips/mips.c (TARGET_SCHED_INIT): Define.
4745 (TARGET_SCHED_REORDER2): Define.
4746 (mips_maybe_swap_ready): New.
4747 (mips_last_74k_agen_insn): New.
4748 (mips_74k_agen_init): New.
4749 (mips_74k_agen_reorder): New function to group loads and stores
4750 in the ready queue.
4751 (mips_sched_init): New.
4752 (mips_sched_reorder): Don't do initialization here. Call
4753 mips_74k_agen_reorder.
4754 (mips_variable_issue): Call mips_74k_agen_init.
4755
4756 2007-08-10 Aldy Hernandez <aldyh@redhat.com>
4757
4758 * tree-flow-inline.h (get_filename): Remove.
4759
4760 2007-08-10 Richard Sandiford <richard@codesourcery.com>
4761
4762 * config/mips/mips-protos.h (mips_address_insns): Add a boolean
4763 argument.
4764 (mips_fetch_insns): Delete in favor of...
4765 (mips_load_store_insns): ...this new function.
4766 * config/mips/mips.c (mips_address_insns): Add a boolean argument
4767 to say whether multiword moves _might_ be split.
4768 (mips_fetch_insns): Delete in favor of...
4769 (mips_load_store_insns): ...this new function.
4770 (mips_rtx_costs): Update the call to mips_address_insns.
4771 (mips_address_cost): Likewise.
4772 * config/mips/mips.md (length): Use mips_load_store_insns instead
4773 of mips_fetch_insns.
4774 * config/mips/constraints.md (R): Use mips_address_insns rather
4775 than mips_fetch_insns. Assume that the move never needs to be split.
4776
4777 2007-08-09 Sandra Loosemore <sandra@codesourcery.com>
4778
4779 * config/mips/mips.opt (mhard-float, msoft-float): Make these
4780 control TARGET_HARD_FLOAT_ABI and TARGET_SOFT_FLOAT_ABI, rather
4781 than TARGET_HARD_FLOAT and TARGET_SOFT_FLOAT.
4782 * config/mips/mips.h (mips16_hard_float): Delete.
4783 (TARGET_HARD_FLOAT_ABI, TARGET_SOFT_FLOAT_ABI): Delete these
4784 definitions, and replace with....
4785 (TARGET_HARD_FLOAT, TARGET_SOFT_FLOAT): Define.
4786 * config/mips/mips.c (mips16_hard_float): Delete. Replace
4787 all references with (TARGET_MIPS16 && TARGET_HARD_FLOAT_ABI).
4788 (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Update comments.
4789 (override_options): Replace MASK_SOFT_FLOAT references with
4790 MASK_SOFT_FLOAT_ABI. Delete twiddling with MASK_SOFT_FLOAT
4791 and mips16_hard_float when TARGET_MIPS16.
4792
4793 2007-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
4794
4795 PR c/32796
4796 * c-typeck.c (build_binary_op): Check for non pointer types before
4797 calling int_fits_type_p.
4798
4799 2007-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
4800
4801 PR middle-end/32813
4802 * fold-const.c (omit_one_operand): Return only the ommitted expression
4803 if the result is an empty statement.
4804 (pedantic_omit_one_operand): Likewise.
4805
4806 2007-08-09 Daniel Berlin <dberlin@dberlin.org>
4807
4808 * c-typeck.c (readonly_error): Improve error for assignment.
4809
4810 * c-pretty-print.c (pp_c_additive_expression): Handle pointer-plus
4811 expression.
4812 (pp_c_expression): Ditto.
4813
4814 2007-08-09 Simon Baldwin <simonb@google.com>
4815
4816 * simplify-rtx.c (simplify_binary_operation_1): Removed erroneous
4817 break that was preventing simplify_associative_operation() for xor.
4818
4819 2007-08-09 Sandra Loosemore <sandra@codesourcery.com>
4820 Nigel Stephens <nigel@mips.com>
4821
4822 * doc/tm.texi (CLZ_DEFINED_VALUE_AT_ZERO, CTZ_DEFINED_VALUE_AT_ZERO):
4823 Document change in interpretation of value from boolean to
4824 tri-state integer.
4825 * optabs.c (expand_ffs, expand_ctz): New functions to compute
4826 ffs and ctz using clz.
4827 (expand_unop): Call them.
4828 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Fix its
4829 result value.
4830 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
4831 * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Likewise, to
4832 enable the new ffs expansion on this target.
4833
4834 2007-08-09 Jan Hubicka <jh@suse.cz>
4835
4836 * optabs.c (expand_widen_pattern_expr): Use optabs accestors.
4837 (expand_ternary_op): Likewise.
4838 (expand_vec_shift_expr): Likewise.
4839 (expand_binop_directly): Likewise.
4840 (expand_binop): Likewise.
4841 (sign_expand_binop): Likewise.
4842 (expand_twoval_unop): Likewise.
4843 (expand_twoval_binop): Likewise.
4844 (expand_twoval_binop_libfunc): Likewise.
4845 (widen_clz): Likewise.
4846 (widen_bswap): Likewise.
4847 (expand_parity): Likewise.
4848 (expand_unop): Likewise.
4849 (expand_abs_nojump): Likewise.
4850 (expand_copysign): Likewise.
4851 (emit_no_conflict_block): Likewise.
4852 (emit_libcall_block): Likewise.
4853 (can_compare_p): Likewise.
4854 (prepare_cmp_insn): Likewise.
4855 (emit_cmp_and_jump_insn_1): Likewise.
4856 (prepare_float_lib_cmp): Likewise.
4857 (emit_conditional_add): Likewise.
4858 (gen_add2_insn): Likewise.
4859 (have_add2_insn): Likewise.
4860 (gen_sub2_insn): Likewise.
4861 (have_sub2_insn): Likewise.
4862 (can_extend_p): Likewise.
4863 (can_fix_p): Likewise.
4864 (can_float_p): Likewise.
4865 (expand_float): Likewise.
4866 (expand_fix): Likewise.
4867 (expand_sfix_optab): Likewise.
4868 (new_optab): Likewise.
4869 (new_convert_optab): Likewise.
4870 (init_libfuncs): Likewise.
4871 (init_interclass_conv_libfuncs): Likewise.
4872 (init_intraclass_conv_libfuncs): Likewise.
4873 (set_conv_libfunc): Likewise.
4874 (init_optabs): Likewise.
4875 (debug_optab_libfuncs): Likewise.
4876 (gen_cond_trap): Likewise.
4877 * optabs.h (optab_handler, convert_optab_hanlder): New.
4878 * genopinit.c: Update optabs generation table.
4879 * reload.c (find_reloads_address_1): Use optabs accestors.
4880 * builtins.c (expand_builtin_mathfn): Likewise.
4881 (expand_builtin_mathfn_2): Likewise.
4882 (expand_builtin_mathfn_3): Likewise.
4883 (expand_builtin_interclass_mathfn): Likewise.
4884 (expand_builtin_sincos): Likewise.
4885 (expand_builtin_cexpi): Likewise.
4886 (expand_builtin_powi): Likewise.
4887 (expand_builtin_strlen): Likewise.
4888 * dojump.c (do_jump): Likewise.
4889 * expr.c (convert_move): Likewise.
4890 (move_by_pieces): Likewise.
4891 (move_by_pieces_ninsns): Likewise.
4892 (can_store_by_pieces): Likewise.
4893 (store_by_pieces_1): Likewise.
4894 (emit_move_via_integer): Likewise.
4895 (emit_move_complex): Likewise.
4896 (emit_move_ccmode): Likewise.
4897 (emit_move_insn_1): Likewise.
4898 (emit_single_push_insn): Likewise.
4899 (store_constructor): Likewise.
4900 (expand_expr_real_1): Likewise.
4901 (do_store_flag): Likewise.
4902 * ada/misc.c (gnat_compute_largest_alignment): Likewise.
4903 (enumerate_modes): Likewise.
4904 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
4905 (supportable_widening_operation): Likewise.
4906 (supportable_narrowing_operation): Likewise.
4907 * expmed.c (store_bit_field_1): Likewise.
4908 (extract_bit_field_1): Likewise.
4909 (expand_mult_highpart_optab): Likewise.
4910 (expand_smod_pow2): Likewise.
4911 (expand_divmod): Likewise.
4912 (emit_store_flag): Likewise.
4913 * tree-vect-patterns.c
4914 (vect_pattern_recog_1): Likewise.
4915 * tree-ssa-loop-prefetch.c
4916 (nontemporal_store_p): Likewise.
4917 * tree-vect-transform.c (vect_model_reduction_cost): Likewise.
4918 (vect_create_epilog_for_reduction): Likewise.
4919 (vectorizable_reduction): Likewise.
4920 (vectorizable_operation): Likewise.
4921 (vect_strided_store_supported): Likewise.
4922 (vectorizable_store): Likewise.
4923 (vect_strided_load_supported): Likewise.
4924 (vectorizable_load): Likewise.
4925 * combine.c (simplify_comparison): Likewise.
4926 * tree-vect-generic.c
4927 (type_for_widest_vector_mode): Likewise.
4928 (expand_vector_operations_1): Likewise.
4929 * config/spu/spu.c (spu_expand_mov): Likewise.
4930 (spu_emit_vector_compare): Likewise.
4931 * config/rs6000/rs6000.c
4932 (rs6000_emit_vector_compare): Likewise.
4933 * stmt.c (add_case_node): Likewise.
4934 * reload1.c (gen_reload):
4935
4936 2007-08-09 Michael Matz <matz@suse.de>
4937
4938 * tree.h (fixed_zerop): Declare as taking a const_tree.
4939 * tree.c (fixed_zerop): Take a const_tree.
4940
4941 2007-08-09 Ira Rosen <irar@il.ibm.com>
4942
4943 * tree-vect-transform.c (vectorizable_store): Remove call to
4944 copy_virtual_operands() and call mark_symbols_for_renaming() for
4945 the created vector store.
4946 (vect_setup_realignment): Don't call copy_virtual_operands() and
4947 update_vuses_to_preheader().
4948 (vectorizable_load): Don't call copy_virtual_operands().
4949 (update_vuses_to_preheader): Remove.
4950
4951 2007-08-08 Chao-ying Fu <fu@mips.com>
4952
4953 * tree.def (FIXED_POINT_TYPE): New type.
4954 (FIXED_CST): New constant.
4955 (FIXED_CONVERT_EXPR): New expr.
4956 * doc/c-tree.texi (Types): Document FIXED_POINT_TYPE.
4957 (Expressions): Document FIXED_CST and FIXED_CONVERT_EXPR.
4958 * tree.h (struct tree_base): Add saturating_flag.
4959 Remove one bit of spare for saturating_flag.
4960 (NUMERICAL_TYPE_CHECK): Support FIXED_POINT_TYPE.
4961 (NON_SAT_FIXED_POINT_TYPE_P, SAT_FIXED_POINT_TYPE_P,
4962 FIXED_POINT_TYPE_P): Define.
4963 (TYPE_SATURATING): Define.
4964 (TREE_FIXED_CST_PTR, TREE_FIXED_CST): Define.
4965 (struct tree_fixed_cst): New.
4966 (TYPE_IBIT, TYPE_FBIT): Define.
4967 (tree_node): Add fixed_cst.
4968 (enum tree_index): Add new enumeration values of
4969 TI_SAT_SFRACT_TYPE, TI_SAT_FRACT_TYPE, TI_SAT_LFRACT_TYPE,
4970 TI_SAT_LLFRACT_TYPE, TI_SAT_USFRACT_TYPE, TI_SAT_UFRACT_TYPE,
4971 TI_SAT_ULFRACT_TYPE, TI_SAT_ULLFRACT_TYPE, TI_SFRACT_TYPE,
4972 TI_FRACT_TYPE, TI_LFRACT_TYPE, TI_LLFRACT_TYPE, TI_USFRACT_TYPE,
4973 TI_UFRACT_TYPE, TI_ULFRACT_TYPE, TI_ULLFRACT_TYPE,
4974 TI_SAT_SACCUM_TYPE, TI_SAT_ACCUM_TYPE, TI_SAT_LACCUM_TYPE,
4975 TI_SAT_LLACCUM_TYPE, TI_SAT_USACCUM_TYPE, TI_SAT_UACCUM_TYPE,
4976 TI_SAT_ULACCUM_TYPE, TI_SAT_ULLACCUM_TYPE, TI_SACCUM_TYPE,
4977 TI_ACCUM_TYPE, TI_LACCUM_TYPE, TI_LLACCUM_TYPE, TI_USACCUM_TYPE,
4978 TI_UACCUM_TYPE, TI_ULACCUM_TYPE, TI_ULLACCUM_TYPE,
4979 TI_QQ_TYPE, TI_HQ_TYPE,_TYPE, TI_SQ_TYPE, TI_DQ_TYPE, TI_TQ_TYPE,
4980 TI_UQQ_TYPE, TI_UHQ_TYPE, TI_USQ_TYPE, TI_UDQ_TYPE, TI_UTQ_TYPE,
4981 TI_SAT_QQ_TYPE, TI_SAT_HQ_TYPE, TI_SAT_SQ_TYPE, TI_SAT_DQ_TYPE,
4982 TI_SAT_TQ_TYPE, TI_SAT_UQQ_TYPE, TI_SAT_UHQ_TYPE, TI_SAT_USQ_TYPE,
4983 TI_SAT_UDQ_TYPE, TI_SAT_UTQ_TYPE, TI_HA_TYPE, TI_SA_TYPE, TI_DA_TYPE,
4984 TI_TA_TYPE, TI_UHA_TYPE, TI_USA_TYPE, TI_UDA_TYPE, TI_UTA_TYPE,
4985 TI_SAT_HA_TYPE, TI_SAT_SA_TYPE, TI_SAT_DA_TYPE, TI_SAT_TA_TYPE,
4986 TI_SAT_UHA_TYPE, TI_SAT_USA_TYPE, TI_SAT_UDA_TYPE, TI_SAT_UTA_TYPE.
4987 (sat_short_fract_type_node, sat_fract_type_node,
4988 sat_long_fract_type_node, sat_long_long_fract_type_node,
4989 sat_unsigned_short_fract_type_node, sat_unsigned_fract_type_node,
4990 sat_unsigned_long_fract_type_node,
4991 sat_unsigned_long_long_fract_type_node, short_fract_type_node,
4992 fract_type_node, long_fract_type_node, long_long_fract_type_node,
4993 unsigned_short_fract_type_node, unsigned_fract_type_node,
4994 unsigned_long_fract_type_node, unsigned_long_long_fract_type_node,
4995 sat_short_accum_type_node, sat_accum_type_node,
4996 sat_long_accum_type_node, sat_long_long_accum_type_node,
4997 sat_unsigned_short_accum_type_node, sat_unsigned_accum_type_node,
4998 sat_unsigned_long_accum_type_node,
4999 sat_unsigned_long_long_accum_type_node, short_accum_type_node,
5000 accum_type_node, long_accum_type_node, long_long_accum_type_node,
5001 unsigned_short_accum_type_node, unsigned_accum_type_node,
5002 unsigned_long_accum_type_node, unsigned_long_long_accum_type_node,
5003 qq_type_node, hq_type_node, sq_type_node, dq_type_node, tq_type_node,
5004 uqq_type_node, uhq_type_node, usq_type_node, udq_type_node,
5005 utq_type_node, sat_qq_type_node, sat_hq_type_node, sat_sq_type_node,
5006 sat_dq_type_node, sat_tq_type_node, sat_uqq_type_node,
5007 sat_uhq_type_node, sat_usq_type_node, sat_udq_type_node,
5008 sat_utq_type_node, ha_type_node, sa_type_node, da_type_node,
5009 ta_type_node, uha_type_node, usa_type_node, uda_type_node,
5010 uta_type_node, sat_ha_type_node, sat_sa_type_node, sat_da_type_node,
5011 sat_ta_type_node, sat_uha_type_node, sat_usa_type_node,
5012 sat_uda_type_node, sat_uta_type_node): New macro.
5013 (make_fract_type, make_accum_type): Declare.
5014 (make_signed_fract_type, make_unsigned_fract_type,
5015 make_sat_signed_fract_type, make_sat_unsigned_fract_type,
5016 make_signed_accum_type, make_unsigned_accum_type,
5017 make_sat_signed_accum_type, make_sat_unsigned_accum_type,
5018 make_or_reuse_signed_fract_type, make_or_reuse_unsigned_fract_type,
5019 make_or_reuse_sat_signed_fract_type,
5020 make_or_reuse_sat_unsigned_fract_type, make_or_reuse_signed_accum_type,
5021 make_or_reuse_unsigned_accum_type, make_or_reuse_sat_signed_accum_type,
5022 make_or_reuse_sat_unsigned_accum_type): New macro.
5023 (fixed_zerop): Declare.
5024 * defaults.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE,
5025 LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
5026 SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
5027 LONG_LONG_ACCUM_TYPE_SIZE): Define.
5028 * treestruct.def: Add TS_FIXED_CST.
5029 * Makefile.in (c-pretty-print.o): Add dependence on fixed-value.h.
5030 (tree.o): Likewise.
5031 (tree-dump.o): Likewise.
5032 (print-tree.o): Likewise.
5033 (tree-pretty-print.o): Likewise.
5034 (fold-const.o): Likewise.
5035 * tree-complex.c (some_nonzerop): Handle FIXED_CST.
5036 * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle FIXED_CST.
5037 (is_gimple_min_invariant): Handle FIXED_CST.
5038 * stor-layout.c (int_mode_for_mode): Handle MODE_FRACT, MODE_UFRACT,
5039 MODE_ACCUM, MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
5040 MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
5041 (layout_type): Handle FIXED_POINT_TYPE.
5042 (make_fract_type, make_accum_type): New functions.
5043 * tree-browser.c (browse_tree): Handle FIXED_POINT_TYPE.
5044 * tree-dump.c (fixed-value.h): New include.
5045 (dump_fixed): New function.
5046 (dequeue_and_dump): Handle FIXED_POINT_TYPE and FIXED_CST.
5047 * tree-inline.c (remap_type_1): Handle FIXED_POINT_TYPE.
5048 (estimate_num_insns_1): Handle FIXED_CST and FIXED_CONVERT_EXPR.
5049 * tree-pretty-print.c (fixed-value.h): New include.
5050 (dump_generic_node): Handle FIXED_POINT_TYPE, FIXED_CST, and
5051 FIXED_CONVERT_EXPR.
5052 * tree-scalar-evolution.c (get_scalar_evolution): Handle FIXED_CST.
5053 * tree-ssa-loop-im.c (for_each_index): Handle FIXED_CST.
5054 * tree-ssa-pre.c (poolify_tree): Handle FIXED_CST.
5055 * tree-ssa-reassoc.c (break_up_subtract_bb): We can do reassociation
5056 for non-saturating fixed-point types.
5057 (reassociate_bb): Likewise.
5058 * emit-rtl.c (fixed-value.h): New include.
5059 (fconst0, fconst1): New array.
5060 (init_emit_once): Initialize fconst0 and fconst1 for fixed-point modes.
5061 * tree-vect-generic.c expand_vector_operation): Support
5062 MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, and
5063 MODE_VECTOR_UACCUM.
5064 (type_for_widest_vector_mode): Add one parameter for the
5065 saturating flag.
5066 Check scalar FRACT, UFRACT, ACCUM, and UACCUM mode to select their
5067 vector mode.
5068 Pass the satp parameter to type_for_mode for fixed-point types.
5069 (expand_vector_operations_1): Pass the saturating flag to
5070 type_for_widest_vector_mode.
5071 Support MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
5072 and MODE_VECTOR_UACCUM.
5073 * tree-vect-transform.c (vect_is_simple_cond): Support FIXED_CST.
5074 (vectorizable_condition): Likewise.
5075 * tree.c (fixed-value.h): New include.
5076 (tree_code_size): Support FIXED_CST.
5077 (build_fixed): New function.
5078 (build_one_cst): Support FIXED_POINT_TYPE for accum types.
5079 (fixed_zerop): New function.
5080 (tree_node_structure): Support FIXED_CST.
5081 (type_contains_placeholder_1): Support FIXED_POINT_TYPE.
5082 (build_type_attribute_qual_variant): Handle FIXED_POINT_TYPE.
5083 (type_hash_eq): Handle FIXED_POINT_TYPE.
5084 (simple_cst_equal): Support FIXED_CST.
5085 (iterative_hash_expr): Handle FIXED_CST.
5086 (get_unwidened): Make sure type is not FIXED_POINT_TYPE.
5087 (get_narrower): Likewise.
5088 (variably_modified_type_p): Handle FIXED_POINT_TYPE.
5089 (make_or_reuse_fract_type, make_or_reuse_accum_type): New functions.
5090 (build_common_tree_nodes_2): Use MAKE_FIXED_TYPE_NODE_FAMILY and
5091 MAKE_FIXED_MODE_NODE macros to initialize fixed-point type
5092 nodes.
5093 (build_vector_type_for_mode): Handle MODE_VECTOR_FRACT,
5094 MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
5095 (initializer_zerop): Support FIXED_CST.
5096 (walk_tree): Handle FIXED_CST and FIXED_POINT_TYPE.
5097 * dwarf2out.c (base_type_die): Use DW_ATE_signed_fixed or
5098 DW_ATE_unsigned_fixed to describe FIXED_POINT_TYPE.
5099 (is_base_type): Handle FIXED_POINT_TYPE.
5100 (add_type_attribute): Handle FIXED_POINT_TYPE.
5101 (gen_type_die_with_usage): Handle FIXED_POINT_TYPE.
5102 * print-tree.c (fixed-value.h): New include.
5103 (print_node_brief): Support FIXED_CST.
5104 (print_node): Support FIXED_POINT_TYPE and FIXED_CST.
5105 * c-pretty-print.c (fixed-value.h): New include.
5106 (pp_c_type_specifier): Handle FIXED_POINT_TYPE. Need to pass
5107 TYPE_SATURATING to c_common_type_for_mode for fixed-point modes.
5108 (pp_c_direct_abstract_declarator): Handle FIXED_POINT_TYPE.
5109 Support fixed-point types for inner items in VECTOR_TYPE.
5110 (pp_c_direct_declarator): Likewise.
5111 (pp_c_declarator): Likewise.
5112 (pp_c_fixed_constant): New function.
5113 (pp_c_constant): Handle FIXED_CST.
5114 (pp_c_primary_expression): Likewise.
5115 (pp_c_expression): Likewise.
5116 * fold-const.c (fixed-value.h): New include.
5117 (negate_expr_p): Return true for FIXED_CST.
5118 (fold_negate_expr): Support FIXED_CST.
5119 (split_tree): Support FIXED_CST.
5120 (const_binop): Support FIXED_CST.
5121 (fold_convert_const_int_from_fixed): New function to convert from
5122 fixed to int.
5123 (fold_convert_const_real_from_fixed): New function to convert from
5124 fixed to real.
5125 (fold_convert_const_fixed_from_fixed): New function to convert from
5126 fixed to another fixed.
5127 (fold_convert_const_fixed_from_int): New function to convert from
5128 int to fixed.
5129 (fold_convert_const_fixed_from_real): New function to convert from
5130 real to fixed.
5131 (fold_convert_const): Support conversions from fixed to int, from
5132 fixed to real, from fixed to fixed, from int to fixed, and from real
5133 to fixed.
5134 (fold_convert): Support FIXED_CST and FIXED_POINT_TYPE.
5135 (operand_equal_p): Support FIXED_CST.
5136 (make_range): For fixed-point modes, we need to pass the
5137 saturating flag as the 2nd parameter.
5138 (tree_swap_operands_p): Handle FIXED_CST.
5139 (fold_plusminus_mult_expr): For fract modes, we cannot generate
5140 constant 1.
5141 (fold_unary): Support FIXED_CONVERT_EXPR.
5142 (fold_binary): Handle FIXED_CST.
5143 Make sure the type is not saturating, before associating operations.
5144 Ex: A + B + C, A * B * C, (A1 * C1) +/- (A2 * C2).
5145 (tree_expr_nonnegative_warnv_p): Handle FIXED_CST.
5146 (fold_negate_const): Support FIXED_CST.
5147 (fold_relational_const): Support FIXED_CST.
5148 * gimplify.c (omp_firstprivatize_type_sizes): Handle FIXED_POINT_TYPE.
5149 (gimplify_expr): Handle FIXED_CST.
5150 (gimplify_type_sizes): Handle FIXED_POINT_TYPE.
5151 * ipa-prop.c (ipa_callsite_compute_param): Support FIXED_CST.
5152 * ipa-type-escape.c (type_to_consider): Handle FIXED_POINT_TYPE.
5153 * doc/tm.texi (Type Layout): Document SHORT_FRACT_TYPE_SIZE,
5154 FRACT_TYPE_SIZE, LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
5155 SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
5156 LONG_LONG_ACCUM_TYPE_SIZE.
5157 * dbxout.c (dbxout_type): Handle FIXED_POINT_TYPE.
5158 * c-aux-info.c (gen_type): Handle FIXED_POINT_TYPE.
5159 * tree-sra.c (is_sra_scalar_type): Support FIXED_POINT_TYPE.
5160 * expmed.c (extract_bit_field): Support MODE_FRACT, MODE_UFRACT,
5161 MODE_ACCUM, and MODE_UACCUM.
5162 * tree-vectorizer.c (vect_is_simple_reduction): Check for saturating
5163 fixed-point types to disable reduction.
5164 * explow.c (promote_mode): Support FIXED_POINT_TYPE.
5165
5166 2007-08-08 David Edelsohn <edelsohn@gnu.org>
5167
5168 * config/rs6000/x-rs6000: New file.
5169 * config/rs6000/darwin.h (CC1_SPEC): Add cc1_cpu.
5170 * config/rs6000/rs6000.h (EXTRA_SPECS): Add cc1_cpu.
5171 (EXTRA_SPEC_FUNCTIONS): Define.
5172 (HAVE_LOCAL_CPU_DETECT): Define.
5173 (CC1_CPU_SPEC): Define.
5174 * config/rs6000/driver-rs6000.c: New file.
5175 * config/rs6000/aix.h (CC1_SPEC): Define.
5176 * config/rs6000/sysv4.h (CC1_SPEC): Add cc1_cpu.
5177 * config.host: Add x-rs6000 to host_xmake_file if host and target
5178 are rs6000 or powerpc.
5179
5180 2007-08-08 Paolo Bonzini <paolo.bonzini@lu.unisi.ch>
5181
5182 * config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Use +=.
5183
5184 2007-08-08 Richard Sandiford <richard@codesourcery.com>
5185 Sandra Loosemore <sandra@codesourcery.com>
5186 Chao-ying Fu <fu@mips.com>
5187 Nigel Stephens <nigel@mips.com>
5188 David Ung <davidu@mips.com>
5189
5190 * doc/invoke.texi (-mcode-readable): Document.
5191 * config/mips/mips.opt (mcode-readable): New option.
5192 * config/mips/mips-protos.h (SYMBOL_32_HIGH): New symbol type.
5193 * config/mips/mips.h (mips_code_readable_setting): New enum.
5194 (mips_code_readable): Declare.
5195 (TARGET_MIPS16_TEXT_LOADS, TARGET_MIPS16_PCREL_LOADS): New macros.
5196 (TARGET_MIPS16_SHORT_JUMP_TABLES): New macro.
5197 (JUMP_TABLES_IN_TEXT_SECTION): Use it.
5198 (CASE_VECTOR_MODE, CASE_VECTOR_PC_RELATIVE): Likewise. Remove
5199 boiler-plate comments.
5200 (ASM_OUTPUT_ADDR_DIFF_ELT): Use TARGET_MIPS16_SHORT_JUMP_TABLES.
5201 * config/mips/mips.c (mips_code_readable): New variable.
5202 (mips_classify_symbol): Only return SYMBOL_PC_RELATIVE for
5203 MIPS16 labels if TARGET_MIPS16_SHORT_JUMP_TABLES. Use both the
5204 context and -mcode-readable setting to restrict the use of
5205 SYMBOL_PC_RELATIVE for MIPS16 constant pool references.
5206 Only return TARGET_FORCE_TO_MEM if PC-relative loads are allowed.
5207 (mips_symbolic_constant_p): Handle SYMBOL_32_HIGH.
5208 (mips_blocks_for_constant_p): Only return false for
5209 TARGET_MIPS16_PCREL_LOADS.
5210 (mips_symbol_insns_1): Treat HIGHs as 2 extended instructions
5211 for MIPS16. Handle SYMBOL_32_HIGH.
5212 (mips_const_insns): Allow HIGHs for MIPS16 too.
5213 (mips_unspec_address_offset): New function, split out from...
5214 (mips_unspec_address): ...here.
5215 (mips_output_move): Handle MIPS16 HIGH moves. Use "li" to load
5216 16-bit symbolic constants. Assert approropiate conditions for
5217 using the "la" and "dla" macros.
5218 (mips_handle_option): Handle -mcode-readable=.
5219 (override_options): Use %hi/%lo relocations for TARGET_MIPS16 too.
5220 Set up mips_lo_relocs[SYMBOL_32_HIGH].
5221 (mips_strip_unspec_address): New function, split out from...
5222 (print_operand_reloc): ...here.
5223 (print_operand): Pass constants through mips_strip_unspec_address.
5224 (print_operand_address): Likewise.
5225 (mips_output_mi_thunk): Remove guard of mips16_lay_out_constants.
5226 (mips_select_rtx_section): Remove MIPS16 handling.
5227 (mips16_gp_pseudo_reg): Check currently_expanding_to_rtl.
5228 (mips16_rewrite_pool_refs): Wrap the labels in an address UNSPEC.
5229 (mips16_lay_out_constants): Do nothing unless
5230 TARGET_MIPS16_PCREL_LOADS.
5231 (mips_avoid_hazards): Remove guard of mips16_lay_out_constants.
5232 * config/mips/mips.md: Split HIGHs for MIPS16.
5233 (tablejump): Use TARGET_MIPS16_SHORT_JUMP_TABLES.
5234
5235 2007-08-08 Richard Sandiford <richard@codesourcery.com>
5236
5237 * config/mips/mips-protos.h (mips_emit_move): Declare.
5238 * config/mips/mips.c (mips_emit_move): New function.
5239 (mips_force_temporary): Use mips_emit_move instead of emit_move_insn.
5240 (mips_legitimize_const_move): Likewise.
5241 (mips_legitimize_move): Likewise.
5242 (mips_split_64bit_move): Likewise.
5243 (mips_restore_gp): Likewise.
5244 (mips_load_call_address): Likewise.
5245 (mips_emit_fcc_reload): Likewise.
5246 (mips_set_return_address): Likewise.
5247 (mips_block_move_straight): Likewise.
5248 (mips_block_move_loop): Likewise.
5249 (mips_setup_incoming_varargs): Likewise.
5250 (mips_save_reg): Likewise.
5251 (mips_expand_prologue): Likewise.
5252 (mips_restore_reg): Likewise.
5253 (mips_expand_epilogue): Likewise.
5254 (mips_output_mi_thunk): Likewise.
5255 (build_mips16_call_stub): Likewise.
5256 (mips_builtin_branch_and_move): Likewise.
5257 * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Likewise.
5258 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
5259 (fixuns_truncdfdi2): Likewise.
5260 (fixuns_truncsfsi2): Likewise.
5261 (fixuns_truncsfdi2): Likewise.
5262 (loadgp_absolute): Likewise.
5263 (builtin_setjmp_setup): Likewise.
5264 (builtin_longjmp): Likewise.
5265 (untyped_call): Likewise.
5266
5267 2007-08-08 Richard Sandiford <richard@codesourcery.com>
5268
5269 * config/mips/mips-protos.h (mips_split_symbol): Add a mode and
5270 an "rtx *" argument. Return a bool.
5271 * config/mips/mips.c (mips_split_symbol): Accept arbitrary source
5272 values and return true if they can be split. Take the same kind of
5273 mode argument as mips_symbol_insns. Add a "lo_sum_out" parameter
5274 and store the lo_sum there if nonnull. Use the symbol type to
5275 determine whether a $gp or HIGH is needed.
5276 (mips_legitimize_address): Update call to mips_split_symbol and
5277 simplify accordingly.
5278 (mips_legitimize_const_move): Likewise.
5279 * config/mips/mips.md: In the combine define_split,
5280 check mips_split_symbol instead of splittable_symbolic_operand.
5281 Update use of mips_split_symbol in the generator code.
5282 * config/mips/predicates.md (splittable_symbolic_operand): Delete.
5283
5284 2007-08-08 Richard Sandiford <richard@codesourcery.com>
5285
5286 * config/mips/mips.c (mips_symbolic_address_p): Delete.
5287 (mips_symbol_insns_1): New function, split out from...
5288 (mips_symbol_insns): ...here. Take a mode argument. Treat loads
5289 and stores separately from load addresses.
5290 (mips_classify_address): Replace uses of mips_symbolic_address_p
5291 with uses of mips_symbol_insns.
5292 (mips_address_insns): Update calls to mips_symbol_insns.
5293 (mips_const_insns): Likewise.
5294 (mips_legitimize_address): Likewise.
5295
5296 2007-08-08 Richard Sandiford <richard@codesourcery.com>
5297
5298 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): New symbol type.
5299 * config/mips/mips.c (mips_classify_symbol): Skip TARGET_ABICALLS
5300 block for locally-binding symbols if TARGET_ABSOLUTE_ABICALLS.
5301 Return SYMBOL_FORCE_TO_MEM instead of SYMBOL_ABSOLUTE for
5302 non-call contexts if TARGET_MIPS16.
5303 (mips_symbolic_constant_p): Handle SYMBOL_FORCE_TO_MEM.
5304 (mips_symbolic_address_p): Likewise. Remove special TARGET_MIPS16
5305 code for SYMBOL_ABSOLUTE.
5306 (mips_symbol_insns): Likewise.
5307
5308 2007-08-08 Richard Sandiford <richard@codesourcery.com>
5309
5310 * config/mips/mips-protos.h (mips_symbol_context): New enumeration.
5311 * config/mips/mips.c (mips_classify_symbol): Take a context argument.
5312 (mips_symbolic_constant_p): Likewise. Update the call to
5313 mips_classify_symbol.
5314 (mips_classify_address): Update the calls to mips_symbolic_constant_p.
5315 (mips_const_insns): Likewise. Update the call to mips_classify_symbol.
5316 (mips_legitimize_address): Update the call to mips_symbolic_constant_p.
5317 (print_operand_reloc): Add a context argument. Update the call to
5318 mips_symbolic_constant_p.
5319 (print_operand): Update the calls to print_operand_reloc.
5320 (print_operand_address): Use print_operand_reloc rather than
5321 print_operand.
5322 (mips_rewrite_small_data_p): Add a context argument. Update the call
5323 to mips_symbolic_constant_p.
5324 (mips_small_data_pattern_1): Make DATA the containing mem.
5325 Update the call to mips_rewrite_small_data_p.
5326 (mips_rewrite_small_data_1): Likewise.
5327 (mips_use_anchors_for_symbol_p): Update the call to
5328 mips_symbolic_constant_p.
5329 * config/mips/predicates.md (const_call_insn_operand): Likewise.
5330 (splittable_symbolic_operand): Likewise.
5331 (move_operand): Likewise.
5332 (absolute_symbolic_operand): Likewise.
5333 (got_disp_operand): Likewise.
5334 (got_page_ofst_operand): Likewise.
5335
5336 2007-08-08 Richard Sandiford <richard@codesourcery.com>
5337
5338 * config/mips/mips-protos.h (SYMBOL_GENERAL): Rename to...
5339 (SYMBOL_ABSOLUTE): ...this.
5340 (SYMBOL_SMALL_DATA): Rename to...
5341 (SYMBOL_GP_RELATIVE): ...this.
5342 (SYMBOL_CONSTANT_POOL): Rename to...
5343 (SYMBOL_PC_RELATIVE): ...this.
5344 * config/mips/mips.c (mips_classify_symbol, mips_symbolic_constant_p)
5345 (mips_symbolic_address_p, mips_symbol_insns, override_options)
5346 (mips_rewrite_small_data_p, mips_use_anchors_for_symbol_p): Update
5347 after above changes.
5348 * config/mips/predicates.md (const_call_insn_operand): Likewise.
5349 (general_symbolic_operand): Rename to...
5350 (absolute_symbolic_operand): ...this.
5351 * config/mips/mips.md: Update after above changes.
5352
5353 2007-08-08 Vladimir Yanovsky <yanov@il.ibm.com>
5354 Revital Eres <eres@il.ibm.com>
5355
5356 * ddg.c (print_ddg): Add dump information.
5357 * modulo-sched.c (print_node_sched_params): Add parameter and
5358 verbosity.
5359 (calculate_maxii): Remove function.
5360 (undo_generate_reg_moves): Likewise.
5361 (undo_permute_partial_schedule): Likewise.
5362 (kernel_number_of_cycles): Likewise.
5363 (MAXII_FACTOR): New definition to calculate the upper bound of II.
5364 (sms_schedule): Use it. Remove profitability checks.
5365 (sms_schedule_by_order): Fix order of nodes within the cycle.
5366
5367 2007-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
5368
5369 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt0.o in profile mode, add
5370 -profile option, add pie support.
5371 (ENDFILE_SPEC): New spec.
5372 * config/gnu.h (LIB_SPEC): Add -profile option.
5373
5374 2007-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
5375
5376 * config/i386/gnu.h (CPP_SPEC): Add -pthread option.
5377 * config/gnu.h (LIB_SPEC): Likewise.
5378
5379 2007-08-07 Yaz Saito <saito@google.com>
5380 Ian Lance Taylor <iant@google.com>
5381
5382 * common.opt (finstrument-functions-exclude-function-list): New
5383 option.
5384 (finstrument-functions-exclude-file-list): New option.
5385 * opts.c (char_p): Define and DEF_VEC.
5386 (flag_instrument_functions_exclude_functions): New static
5387 variable.
5388 (flag_instrument_functions_exclude_files): New static variable.
5389 (add_instrument_functions_exclude_list): New static function.
5390 (flag_instrument_functions_exclude_p): New function.
5391 (common_handle_option): Handle new options.
5392 * flags.h (flag_instrument_functions_exclude_p): Declare.
5393 * gimplify.c (gimplify_function_tree): Call
5394 flag_instrument_functions_exclude_p.
5395 * doc/invoke.texi (Option Summary): Mention new options.
5396 (Code Gen Options): Document new options.
5397
5398 2007-08-07 Ian Lance Taylor <iant@google.com>
5399
5400 PR rtl-optimization/32776
5401 * lower-subreg.c (resolve_clobber): Call resolve_reg_notes.
5402 (resolve_use): Likewise.
5403 (decompose_multiword_subregs): Remove "changed" local variable.
5404
5405 2007-08-07 Carlos O'Donell <carlos@codesourcery.com>
5406
5407 * configure.ac: Define HAVE_GNU_AS if $gas_flag is yes.
5408 * configure: Regenerate.
5409 * config.in: Regenerate.
5410 * gcc.c [HAVE_GNU_AS]: Add "%{v} %{w:-W} %{I*} " to asm_options
5411 spec string.
5412
5413 2007-08-07 Ian Lance Taylor <iant@google.com>
5414
5415 * lower-subreg.c (resolve_clobber): If the clobber has a LIBCALL
5416 note, just delete the insn.
5417
5418 2007-08-07 Andreas Schwab <schwab@suse.de>
5419
5420 PR bootstrap/32973
5421 * gengtype-lex.l: Ignore backslash/newline pair while scanning a
5422 struct definition.
5423
5424 2007-08-07 Andreas Krebbel <krebbel1@de.ibm.com>
5425
5426 * lower-subreg.c (resolve_subreg_use): Remove assertion.
5427 (find_decomposable_shift_zext, resolve_shift_zext): New functions.
5428 (decompose_multiword_subregs): Use the functions above to decompose
5429 multiword shifts and zero-extends.
5430
5431 2007-08-07 Rask Ingemann Lambertsen <rask@sygehus.dk>
5432
5433 * doc/sourcebuild.texi (Test Directives): Fix "compile" and
5434 "assemble" descriptions which were swapped.
5435
5436 2007-08-06 Chao-ying Fu <fu@mips.com>
5437
5438 * fixed-value.h: New file.
5439 * fixed-value.c: New file.
5440 * Makefile.in (OBJS-common): Add fixed-value.o.
5441 (fixed-value.o): New rule.
5442 (GTFILES): Add fixed-value.h.
5443 * double-int.c (double_int_scmp): We should use unsigned HOST_WIDE_INT
5444 to compare a.low and b.low.
5445 * gengtype.c (main): Handle FIXED_VALUE_TYPE type as scalar typedef.
5446
5447 2007-08-06 H.J. Lu <hongjiu.lu@intel.com>
5448 Daniel Jacobowitz <dan@codesourcery.com>
5449
5450 PR target/31868
5451 * config.gcc (x86_64-*-freebsd*): Add i386/t-crtstuff to
5452 tmake_file.
5453 (x86_64-*-netbsd*): Likewise.
5454 (x86_64-*-linux*): Likewise.
5455 (x86_64-*-kfreebsd*-gnu): Likewise.
5456 (x86_64-*-knetbsd*-gnu): Likewise.
5457 (i[34567]86-*-solaris2.1[0-9]*): Likewise.
5458
5459 * config/i386/t-linux64 (CRTSTUFF_T_CFLAGS): Removed.
5460
5461 * config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Update comments.
5462 Add -fno-asynchronous-unwind-tables.
5463
5464 * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Add $(CRTSTUFF_T_CFLAGS).
5465 * config/t-libc-ok (CRTSTUFF_T_CFLAGS_S): Likewise.
5466 * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Likewise.
5467 * config/t-netbsd (CRTSTUFF_T_CFLAGS_S): Likewise.
5468 * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Likewise.
5469
5470 2007-08-06 Steve Ellcey <sje@cup.hp.com>
5471
5472 * config/ia64/ia64.c (ia64_c_mode_for_suffix): New.
5473 (TARGET_C_MODE_FOR_SUFFIX): New.
5474
5475 2007-08-06 Steve Ellcey <sje@cup.hp.com>
5476
5477 * config/ia64/div.md (m2subrf4_cond): Change 'g' to 'G'.
5478
5479 2007-08-06 Steve Ellcey <sje@cup.hp.com>
5480
5481 * config/ia64/ia64.h (MODES_TIEABLE_P): Fix typo.
5482
5483 2007-08-06 H.J. Lu <hongjiu.lu@intel.com>
5484
5485 * config/i386/i386.md: Check TARGET_ macros and optimize_size
5486 before checking function returns in conditional expressions.
5487
5488 2007-08-06 Alfred Minarik <a.minarik@aon.at>
5489
5490 PR pch/13676
5491 * doc/invoke.texi: Add .hp, .hxx, .hpp, .h, .HPP, .tcc as c++ header.
5492
5493 2008-08-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
5494
5495 PR middle-end/32988
5496 * tree.c (build2_stat): Instead of checking for INTEGER_TYPE, check
5497 for INTEGRAL_TYPE_P.
5498
5499 2008-08-05 Paolo Bonzini <bonzini@gnu.org>
5500
5501 * configure.ac: Remove --enable-checking=df from default settings.
5502 * tree-pass.h (TODO_df_verify): New. Shift TODO_mark_first_instance.
5503 * df-core.c (df_finish_pass) [ENABLE_CHECKING]: Schedule verification
5504 if the parameter is true.
5505 (df_analyze) [!ENABLE_DF_CHECKING]: Also do verification if the
5506 DF_VERIFY_SCHEDULED flag is true.
5507 * df.h (enum df_changeable_flags): Add DF_VERIFY_SCHEDULED.
5508 (df_finish_pass): Adjust prototype.
5509 * passes.c (execute_todo): Schedule verification if TODO_df_verify is
5510 true.
5511
5512 * see.c (pass_see): Add TODO_df_verify.
5513 * loop-init.c (pass_rtl_move_loop_invariants): Add TODO_df_verify.
5514 * global.c (rest_of_handle_global_alloc): Schedule verification
5515 after the pass.
5516 * local-alloc.c (rest_of_handle_local_alloc): Schedule verification
5517 before the pass.
5518 * function.c (pass_thread_prologue_and_epilogue): Add TODO_df_verify.
5519 * gcse.c (rest_of_handle_gcse): Adjust call to df_finish_pass.
5520 * loop-iv.c (iv_analysis_done): Schedule verification after the pass.
5521
5522 * config/sh/sh.c (sh_output_mi_thunk): Remove dead code.
5523 * config/ia64/ia64.c (ia64_reorg): Adjust call to df_finish_pass.
5524 * config/bfin/bfin.c (bfin_reorg): Adjust call to df_finish_pass.
5525
5526 2007-08-05 Vladimir Yanovsky <yanov@il.ibm.com>
5527 Revital Eres <eres@il.ibm.com>
5528
5529 * doc/invoke.texi (-fmodulo-sched-allow-regmoves): Document new
5530 flag.
5531 * ddg.c (create_ddg_dependence): Rename to...
5532 (create_ddg_dep_from_intra_loop_link): This. Do not check
5533 for interloop edges. Do not create anti dependence edge when
5534 a true dependence edge exists in the opposite direction and
5535 -fmodulo-sched-allow-regmoves is set.
5536 (build_intra_loop_deps): Call create_ddg_dep_from_intra_loop_link.
5537 (add_cross_iteration_register_deps): Create anti dependence edge
5538 when -fno-modulo-sched-allow-regmoves is set.
5539 * common.opt (-fmodulo-sched-allow-regmoves): New flag.
5540
5541 2007-08-04 Richard Sandiford <richard@codesourcery.com>
5542
5543 * config/arm/arm.md (movsi): Add braces.
5544
5545 2007-08-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
5546
5547 PR middle-end/32780
5548 * fold-const.c (fold_binary <case MINUS_EXPR>): Fix the type of
5549 operands for the folding of "A - (A & B)" into "~B & A"; cast them
5550 to type.
5551
5552 2007-08-03 Zdenek Dvorak <ook@ucw.cz>
5553
5554 * tree-ssa-threadupdate.c (thread_through_all_blocks): Use loops'
5555 state accessor functions.
5556 * cfgloopmanip.c (remove_path, create_preheaders,
5557 force_single_succ_latches, fix_loop_structure): Ditto.
5558 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
5559 tree_duplicate_loop_to_header_edge): Ditto.
5560 * cfgloopanal.c (mark_irreducible_loops): Ditto.
5561 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize):
5562 Ditto.
5563 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures,
5564 cleanup_tree_cfg): Ditto.
5565 * tree-cfg.c (tree_merge_blocks): Ditto.
5566 * cfgloop.c (rescan_loop_exit, record_loop_exits,
5567 release_recorded_exits, get_loop_exit_edges, verify_loop_structure,
5568 loop_preheader_edge, single_exit): Ditto.
5569 (flow_loops_find): Do not clear loops->state.
5570 * cfgloop.h (loops_state_satisfies_p, loops_state_set,
5571 loops_state_clear): New functions.
5572
5573 2007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
5574
5575 PR middle-end/32399
5576 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
5577 when adding to the base and convert ELT to sizetype instead of type.
5578
5579 2007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
5580
5581 PR middle-end/32304
5582 * ipa-reference.c (has_proper_scope_for_analysis): Return false when
5583 the decl's type has TYPE_NEEDS_CONSTRUCTING set.
5584
5585 2007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
5586
5587 PR middle-end/32935
5588 * fold-convert.c (fold_negate_expr <NOP_EXPR>): Convert back to the
5589 correct type the negate expression.
5590
5591 2007-08-03 Jan Hubicka <jh@suse.cz>
5592
5593 * i386.c (setup_incoming_varargs_64): Tolerate 64bit preferred
5594 stack boundary.
5595
5596 2007-08-03 David Edelsohn <edelsohn@gnu.org>
5597
5598 * config/rs6000/rs6000.c (struct processor_cost): Change
5599 l1_cache_lines to l1_cache_size. Add l2_cache_size.
5600 (*_cost): Convert l1 cache information to kilobytes. Add l2 cache
5601 information.
5602 (rios1_costs, rios2_cost): Correct cache line size.
5603 (rs6000_override_options): Set l2-cache-size parameter.
5604
5605 2007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
5606 Diego Novillo <dnovillo@google.com>
5607
5608 PR 31521
5609 * tree-vrp.c (simplify_div_or_mod_using_ranges): Also simplify
5610 if the range includes 0.
5611
5612 2007-08-03 Ben Elliston <bje@au.ibm.com>
5613
5614 * config/spu/spu.md (dftsv, dftsv_celledp): Attach the appropriate
5615 mode to unspec expressions to silence a warning from the generator
5616 programs.
5617
5618 2007-08-02 Steve Ellcey <sje@cup.hp.com>
5619
5620 * config/ia64/constraints.md ("U"): Make constraint vector only.
5621
5622 2007-08-02 Nathan Froyd <froydnj@codesourcery.com>
5623
5624 PR middle-end/25446
5625 * c-objc-common.c (c_cannot_inline_tree_fn): Check for an
5626 always_inline attribute on the function decl.
5627
5628 2007-08-02 Nathan Froyd <froydnj@codesourcery.com>
5629
5630 PR middle-end/25445
5631 * varasm.c (default_binds_local_p_1): Consult flag_whole_program
5632 if we are compiling with -fPIC.
5633
5634 2007-08-02 Sandra Loosemore <sandra@codesourcery.com>
5635 Nigel Stephens <nigel@mips.com>
5636
5637 * longlong.h [__mips__] (count_leading_zeros, COUNT_LEADING_ZEROS_0):
5638 Define for MIPS32 and MIPS64.
5639
5640 2007-08-02 Nick Clifton <nickc@redhat.com>
5641
5642 * config/host-hpux.c: Change copyright header to refer to version
5643 3 of the GNU General Public License and to point readers at the
5644 COPYING3 file and the FSF's license web page.
5645 * config/alpha/predicates.md, config/alpha/vms-ld.c,
5646 config/alpha/linux.h, config/alpha/alpha.opt,
5647 config/alpha/linux-elf.h, config/alpha/vms.h, config/alpha/elf.h,
5648 config/alpha/vms-unwind.h, config/alpha/ev4.md,
5649 config/alpha/ev6.md, config/alpha/alpha.c, config/alpha/vms-cc.c,
5650 config/alpha/alpha.h, config/alpha/sync.md,
5651 config/alpha/openbsd.h, config/alpha/alpha.md,
5652 config/alpha/alpha-modes.def, config/alpha/ev5.md,
5653 config/alpha/alpha-protos.h, config/alpha/freebsd.h,
5654 config/alpha/osf5.h, config/alpha/netbsd.h, config/alpha/vms64.h,
5655 config/alpha/constraints.md, config/alpha/osf.h,
5656 config/alpha/xm-vms.h, config/alpha/unicosmk.h, config/linux.h,
5657 config/frv/predicates.md, config/frv/frv.h, config/frv/linux.h,
5658 config/frv/frv.md, config/frv/frv.opt, config/frv/frv-modes.def,
5659 config/frv/frv-asm.h, config/frv/frv-protos.h,
5660 config/frv/frv-abi.h, config/frv/frv.c, config/s390/tpf.h,
5661 config/s390/s390.c, config/s390/predicates.md, config/s390/s390.h,
5662 config/s390/linux.h, config/s390/tpf.md, config/s390/tpf.opt,
5663 config/s390/2064.md, config/s390/2084.md, config/s390/s390.md,
5664 config/s390/s390.opt, config/s390/s390-modes.def,
5665 config/s390/fixdfdi.h, config/s390/constraints.md,
5666 config/s390/s390-protos.h, config/s390/s390x.h, config/elfos.h,
5667 config/dbxcoff.h, config/m32c/predicates.md, config/m32c/cond.md,
5668 config/m32c/m32c.c, config/m32c/minmax.md, config/m32c/blkmov.md,
5669 config/m32c/m32c-pragma.c, config/m32c/m32c.h,
5670 config/m32c/prologue.md, config/m32c/m32c.abi,
5671 config/m32c/muldiv.md, config/m32c/bitops.md, config/m32c/mov.md,
5672 config/m32c/addsub.md, config/m32c/m32c.md, config/m32c/m32c.opt,
5673 config/m32c/t-m32c, config/m32c/m32c-modes.def,
5674 config/m32c/jump.md, config/m32c/shift.md,
5675 config/m32c/m32c-protos.h, config/libgloss.h,
5676 config/spu/spu-protos.h, config/spu/predicates.md,
5677 config/spu/spu-builtins.h, config/spu/spu.c,
5678 config/spu/spu-builtins.def, config/spu/spu-builtins.md,
5679 config/spu/spu.h, config/spu/spu-elf.h, config/spu/constraints.md,
5680 config/spu/spu.md, config/spu/spu-c.c, config/spu/spu.opt,
5681 config/spu/spu-modes.def, config/spu/t-spu-elf, config/interix.h,
5682 config/sparc/hypersparc.md, config/sparc/predicates.md,
5683 config/sparc/linux.h, config/sparc/sp64-elf.h,
5684 config/sparc/supersparc.md, config/sparc/cypress.md,
5685 config/sparc/openbsd1-64.h, config/sparc/openbsd64.h,
5686 config/sparc/niagara.md, config/sparc/sparc.md,
5687 config/sparc/long-double-switch.opt, config/sparc/ultra3.md,
5688 config/sparc/sparc.opt, config/sparc/sync.md,
5689 config/sparc/sp-elf.h, config/sparc/sparc-protos.h,
5690 config/sparc/ultra1_2.md, config/sparc/biarch64.h,
5691 config/sparc/sparc.c, config/sparc/little-endian.opt,
5692 config/sparc/sysv4-only.h, config/sparc/sparc.h,
5693 config/sparc/linux64.h, config/sparc/freebsd.h,
5694 config/sparc/sol2.h, config/sparc/rtemself.h,
5695 config/sparc/netbsd-elf.h, config/sparc/vxworks.h,
5696 config/sparc/sparc-modes.def, config/sparc/sparclet.md,
5697 config/sparc/sysv4.h, config/vx-common.h, config/netbsd-aout.h,
5698 config/flat.h, config/m32r/m32r.md, config/m32r/predicates.md,
5699 config/m32r/little.h, config/m32r/m32r.c, config/m32r/m32r.opt,
5700 config/m32r/linux.h, config/m32r/constraints.md,
5701 config/m32r/m32r.h, config/m32r/m32r-protos.h, config/vxworks.opt,
5702 config/darwin-c.c, config/darwin.opt, config/i386/i386.h,
5703 config/i386/cygming.h, config/i386/linux.h, config/i386/cygwin.h,
5704 config/i386/i386.md, config/i386/netware-crt0.c,
5705 config/i386/sco5.h, config/i386/mmx.md, config/i386/vx-common.h,
5706 config/i386/kaos-i386.h, config/i386/winnt-stubs.c,
5707 config/i386/netbsd64.h, config/i386/djgpp.h, config/i386/gas.h,
5708 config/i386/sol2.h, config/i386/constraints.md,
5709 config/i386/netware-libgcc.c, config/i386/sysv5.h,
5710 config/i386/predicates.md, config/i386/geode.md,
5711 config/i386/x86-64.h, config/i386/kfreebsd-gnu.h,
5712 config/i386/freebsd64.h, config/i386/vxworksae.h,
5713 config/i386/pentium.md, config/i386/lynx.h, config/i386/i386elf.h,
5714 config/i386/rtemself.h, config/i386/netbsd-elf.h,
5715 config/i386/ppro.md, config/i386/k6.md, config/i386/netware.c,
5716 config/i386/netware.h, config/i386/i386-modes.def,
5717 config/i386/sysv4-cpp.h, config/i386/i386-interix.h,
5718 config/i386/cygwin1.c, config/i386/djgpp.opt, config/i386/uwin.h,
5719 config/i386/unix.h, config/i386/ptx4-i.h, config/i386/xm-djgpp.h,
5720 config/i386/att.h, config/i386/winnt.c, config/i386/beos-elf.h,
5721 config/i386/sol2-10.h, config/i386/darwin64.h, config/i386/sse.md,
5722 config/i386/i386.opt, config/i386/bsd.h, config/i386/cygming.opt,
5723 config/i386/xm-mingw32.h, config/i386/linux64.h,
5724 config/i386/openbsdelf.h, config/i386/xm-cygwin.h,
5725 config/i386/sco5.opt, config/i386/darwin.h, config/i386/mingw32.h,
5726 config/i386/winnt-cxx.c, config/i386/i386-interix3.h,
5727 config/i386/nwld.c, config/i386/nwld.h, config/i386/host-cygwin.c,
5728 config/i386/cygwin2.c, config/i386/i386-protos.h,
5729 config/i386/sync.md, config/i386/openbsd.h,
5730 config/i386/host-mingw32.c, config/i386/i386-aout.h,
5731 config/i386/nto.h, config/i386/biarch64.h,
5732 config/i386/i386-coff.h, config/i386/freebsd.h,
5733 config/i386/driver-i386.c, config/i386/knetbsd-gnu.h,
5734 config/i386/host-i386-darwin.c, config/i386/vxworks.h,
5735 config/i386/crtdll.h, config/i386/i386.c, config/i386/sysv4.h,
5736 config/darwin-protos.h, config/linux.opt, config/sol2.c,
5737 config/sol2.h, config/sh/symbian.c, config/sh/sh-protos.h,
5738 config/sh/linux.h, config/sh/elf.h, config/sh/superh.h,
5739 config/sh/sh4.md, config/sh/coff.h, config/sh/newlib.h,
5740 config/sh/embed-elf.h, config/sh/symbian-pre.h, config/sh/rtems.h,
5741 config/sh/kaos-sh.h, config/sh/sh4a.md, config/sh/constraints.md,
5742 config/sh/sh64.h, config/sh/sh.opt, config/sh/symbian-post.h,
5743 config/sh/sh-c.c, config/sh/predicates.md, config/sh/sh.c,
5744 config/sh/sh.h, config/sh/shmedia.md, config/sh/sh-modes.def,
5745 config/sh/little.h, config/sh/sh1.md, config/sh/sh4-300.md,
5746 config/sh/superh64.h, config/sh/rtemself.h,
5747 config/sh/netbsd-elf.h, config/sh/sh.md, config/sh/vxworks.h,
5748 config/usegas.h, config/svr3.h, config/pdp11/pdp11-protos.h,
5749 config/pdp11/2bsd.h, config/pdp11/pdp11.md, config/pdp11/pdp11.c,
5750 config/pdp11/pdp11.opt, config/pdp11/pdp11-modes.def,
5751 config/pdp11/pdp11.h, config/avr/rtems.h, config/avr/avr-protos.h,
5752 config/avr/predicates.md, config/avr/constraints.md,
5753 config/avr/avr.md, config/avr/avr.c, config/avr/avr.opt,
5754 config/avr/avr.h, config/sol2-protos.h, config/dbxelf.h,
5755 config/lynx.opt, config/crx/crx.h, config/crx/crx-protos.h,
5756 config/crx/crx.md, config/crx/crx.c, config/crx/crx.opt,
5757 config/c4x/c4x-c.c, config/c4x/c4x.c, config/c4x/c4x.opt,
5758 config/c4x/c4x-modes.def, config/c4x/rtems.h,
5759 config/c4x/predicates.md, config/c4x/c4x.h,
5760 config/c4x/c4x-protos.h, config/c4x/c4x.md, config/kfreebsd-gnu.h,
5761 config/xtensa/predicates.md, config/xtensa/xtensa.c,
5762 config/xtensa/linux.h, config/xtensa/xtensa.h,
5763 config/xtensa/elf.h, config/xtensa/xtensa.md,
5764 config/xtensa/xtensa.opt, config/xtensa/constraints.md,
5765 config/xtensa/xtensa-protos.h, config/dbx.h,
5766 config/stormy16/predicates.md, config/stormy16/stormy16.md,
5767 config/stormy16/stormy16.c, config/stormy16/stormy16.opt,
5768 config/stormy16/stormy16.h, config/stormy16/stormy16-protos.h,
5769 config/host-solaris.c, config/fr30/fr30.h,
5770 config/fr30/predicates.md, config/fr30/fr30-protos.h,
5771 config/fr30/fr30.md, config/fr30/fr30.c, config/fr30/fr30.opt,
5772 config/vxworksae.h, config/sol2-c.c, config/lynx.h,
5773 config/m68hc11/m68hc11-protos.h, config/m68hc11/predicates.md,
5774 config/m68hc11/m68hc11.md, config/m68hc11/m68hc11.c,
5775 config/m68hc11/m68hc11.opt, config/m68hc11/m68hc11.h,
5776 config/m68hc11/m68hc12.h, config/openbsd-oldgas.h,
5777 config/host-linux.c, config/interix3.h, config/cris/cris.c,
5778 config/cris/predicates.md, config/cris/linux.h,
5779 config/cris/cris.h, config/cris/aout.h, config/cris/cris.md,
5780 config/cris/linux.opt, config/cris/cris.opt, config/cris/elf.opt,
5781 config/cris/aout.opt, config/cris/cris-protos.h,
5782 config/vxworks-dummy.h, config/netbsd.h, config/netbsd-elf.h,
5783 config/iq2000/iq2000.h, config/iq2000/predicates.md,
5784 config/iq2000/iq2000-protos.h, config/iq2000/iq2000.md,
5785 config/iq2000/iq2000.c, config/iq2000/iq2000.opt,
5786 config/host-darwin.c, config/mt/mt.md, config/mt/mt.c,
5787 config/mt/mt.opt, config/mt/t-mt, config/mt/mt.h,
5788 config/mt/mt-protos.h, config/svr4.h, config/host-darwin.h,
5789 config/chorus.h, config/mn10300/mn10300.c,
5790 config/mn10300/mn10300.opt, config/mn10300/predicates.md,
5791 config/mn10300/mn10300.h, config/mn10300/linux.h,
5792 config/mn10300/constraints.md, config/mn10300/mn10300-protos.h,
5793 config/mn10300/mn10300.md, config/ia64/predicates.md,
5794 config/ia64/itanium1.md, config/ia64/unwind-ia64.h,
5795 config/ia64/ia64-c.c, config/ia64/sync.md, config/ia64/ia64.c,
5796 config/ia64/itanium2.md, config/ia64/ia64.h, config/ia64/vect.md,
5797 config/ia64/freebsd.h, config/ia64/ia64.md,
5798 config/ia64/ia64-modes.def, config/ia64/constraints.md,
5799 config/ia64/hpux.h, config/ia64/ia64-protos.h, config/windiss.h,
5800 config/gofast.h, config/rtems.h, config/sol2-10.h,
5801 config/m68k/predicates.md, config/m68k/m68k.md,
5802 config/m68k/linux.h, config/m68k/m68k-modes.def,
5803 config/m68k/print-sysroot-suffix.sh, config/m68k/m68k-protos.h,
5804 config/m68k/coff.h, config/m68k/m68k-none.h, config/m68k/ieee.opt,
5805 config/m68k/openbsd.h, config/m68k/m68k-aout.h,
5806 config/m68k/m68k.opt, config/m68k/m68020-elf.h,
5807 config/m68k/m68kelf.h, config/m68k/m68k-devices.def,
5808 config/m68k/uclinux-oldabi.h, config/m68k/m68k.c,
5809 config/m68k/constraints.md, config/m68k/rtemself.h,
5810 config/m68k/netbsd-elf.h, config/m68k/m68k.h,
5811 config/m68k/uclinux.h, config/rs6000/power4.md,
5812 config/rs6000/host-darwin.c, config/rs6000/6xx.md,
5813 config/rs6000/linux.h, config/rs6000/eabi.h,
5814 config/rs6000/aix41.opt, config/rs6000/xcoff.h,
5815 config/rs6000/secureplt.h, config/rs6000/linuxspe.h,
5816 config/rs6000/eabialtivec.h, config/rs6000/8540.md,
5817 config/rs6000/darwin8.h, config/rs6000/kaos-ppc.h,
5818 config/rs6000/windiss.h, config/rs6000/603.md,
5819 config/rs6000/aix41.h, config/rs6000/cell.md,
5820 config/rs6000/mpc.md, config/rs6000/aix43.h, config/rs6000/beos.h,
5821 config/rs6000/gnu.h, config/rs6000/rtems.h, config/rs6000/aix.opt,
5822 config/rs6000/darwin.md, config/rs6000/darwin64.h,
5823 config/rs6000/default64.h, config/rs6000/7xx.md,
5824 config/rs6000/darwin.opt, config/rs6000/spe.md,
5825 config/rs6000/rs6000.opt, config/rs6000/rs6000-c.c,
5826 config/rs6000/rios2.md, config/rs6000/linuxaltivec.h,
5827 config/rs6000/7450.md, config/rs6000/linux64.h,
5828 config/rs6000/constraints.md, config/rs6000/440.md,
5829 config/rs6000/darwin.h, config/rs6000/host-ppc64-darwin.c,
5830 config/rs6000/rs6000.c, config/rs6000/aix52.h,
5831 config/rs6000/rs6000.h, config/rs6000/power6.md,
5832 config/rs6000/predicates.md, config/rs6000/altivec.md,
5833 config/rs6000/aix64.opt, config/rs6000/rios1.md,
5834 config/rs6000/rs6000-modes.def, config/rs6000/rs64.md,
5835 config/rs6000/eabisim.h, config/rs6000/sysv4le.h,
5836 config/rs6000/darwin7.h, config/rs6000/dfp.md,
5837 config/rs6000/linux64.opt, config/rs6000/sync.md,
5838 config/rs6000/vxworksae.h, config/rs6000/power5.md,
5839 config/rs6000/lynx.h, config/rs6000/biarch64.h,
5840 config/rs6000/rs6000.md, config/rs6000/sysv4.opt,
5841 config/rs6000/eabispe.h, config/rs6000/e500.h,
5842 config/rs6000/freebsd.h, config/rs6000/rs6000-protos.h,
5843 config/rs6000/netbsd.h, config/rs6000/e500-double.h,
5844 config/rs6000/aix.h, config/rs6000/vxworks.h,
5845 config/rs6000/40x.md, config/rs6000/aix51.h,
5846 config/rs6000/sysv4.h, config/arc/arc-protos.h, config/arc/arc.md,
5847 config/arc/arc.c, config/arc/arc.opt, config/arc/arc-modes.def,
5848 config/arc/arc.h, config/mcore/mcore-elf.h,
5849 config/mcore/mcore-protos.h, config/mcore/predicates.md,
5850 config/mcore/mcore.md, config/mcore/mcore.c,
5851 config/mcore/mcore.opt, config/mcore/mcore.h,
5852 config/mcore/mcore-pe.h, config/darwin.c, config/freebsd-nthr.h,
5853 config/score/predicates.md, config/score/score-version.h,
5854 config/score/score-protos.h, config/score/misc.md,
5855 config/score/elf.h, config/score/score.c, config/score/mac.md,
5856 config/score/score7.md, config/score/score.h,
5857 config/score/score-conv.h, config/score/score-mdaux.c,
5858 config/score/score.md, config/score/score.opt,
5859 config/score/score-modes.def, config/score/score-mdaux.h,
5860 config/score/mul-div.S, config/arm/uclinux-elf.h,
5861 config/arm/semi.h, config/arm/ecos-elf.h, config/arm/arm1020e.md,
5862 config/arm/symbian.h, config/arm/linux-elf.h,
5863 config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
5864 config/arm/elf.h, config/arm/aout.h, config/arm/arm.c,
5865 config/arm/thumb2.md, config/arm/vec-common.md, config/arm/coff.h,
5866 config/arm/strongarm-pe.h, config/arm/arm.h,
5867 config/arm/cortex-a8-neon.md, config/arm/semiaof.h,
5868 config/arm/cortex-a8.md, config/arm/uclinux-eabi.h,
5869 config/arm/arm-modes.def, config/arm/linux-eabi.h,
5870 config/arm/rtems-elf.h, config/arm/neon-schedgen.ml,
5871 config/arm/arm-cores.def, config/arm/arm-protos.h,
5872 config/arm/vfp.md, config/arm/aof.h, config/arm/linux-gas.h,
5873 config/arm/wince-pe.h, config/arm/neon.md,
5874 config/arm/constraints.md, config/arm/neon.ml,
5875 config/arm/xscale-elf.h, config/arm/strongarm-coff.h,
5876 config/arm/arm.opt, config/arm/arm926ejs.md,
5877 config/arm/predicates.md, config/arm/iwmmxt.md,
5878 config/arm/arm_neon.h, config/arm/unknown-elf.h,
5879 config/arm/kaos-arm.h, config/arm/bpabi.h, config/arm/pe.opt,
5880 config/arm/neon-testgen.ml, config/arm/arm.md,
5881 config/arm/xscale-coff.h, config/arm/pe.c,
5882 config/arm/arm-generic.md, config/arm/pe.h,
5883 config/arm/kaos-strongarm.h, config/arm/freebsd.h,
5884 config/arm/neon-docgen.ml, config/arm/netbsd.h, config/arm/fpa.md,
5885 config/arm/strongarm-elf.h, config/arm/cirrus.md,
5886 config/arm/netbsd-elf.h, config/arm/vxworks.h,
5887 config/arm/neon-gen.ml, config/kaos.h, config/darwin-driver.c,
5888 config/pa/predicates.md, config/pa/pa64-hpux.h,
5889 config/pa/pa-hpux.opt, config/pa/som.h, config/pa/pa-hpux1010.opt,
5890 config/pa/pa-hpux1111.opt, config/pa/pa-pro-end.h,
5891 config/pa/elf.h, config/pa/fptr.c, config/pa/pa64-linux.h,
5892 config/pa/pa.md, config/pa/pa.opt, config/pa/pa-hpux.h,
5893 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
5894 config/pa/pa-hpux1010.h, config/pa/pa-protos.h,
5895 config/pa/pa-osf.h, config/pa/pa-hpux1111.h, config/pa/pa-64.h,
5896 config/pa/milli64.S, config/pa/pa.c, config/pa/pa-linux.h,
5897 config/pa/pa.h, config/pa/pa32-linux.h, config/pa/pa64-hpux.opt,
5898 config/pa/pa64-regs.h, config/pa/pa-modes.def,
5899 config/pa/constraints.md, config/darwin9.h, config/mips/4100.md,
5900 config/mips/linux.h, config/mips/elfoabi.h, config/mips/elf.h,
5901 config/mips/sdb.h, config/mips/windiss.h, config/mips/rtems.h,
5902 config/mips/3000.md, config/mips/iris5.h, config/mips/5000.md,
5903 config/mips/7000.md, config/mips/9000.md, config/mips/4600.md,
5904 config/mips/linux64.h, config/mips/elforion.h,
5905 config/mips/constraints.md, config/mips/generic.md,
5906 config/mips/predicates.md, config/mips/4300.md,
5907 config/mips/mips-ps-3d.md, config/mips/iris.h, config/mips/24k.md,
5908 config/mips/mips.md, config/mips/mips.opt, config/mips/4k.md,
5909 config/mips/5k.md, config/mips/vr4120-div.S,
5910 config/mips/openbsd.h, config/mips/iris6.h, config/mips/4000.md,
5911 config/mips/mips-protos.h, config/mips/6000.md,
5912 config/mips/mips.c, config/mips/mips.h, config/mips/r3900.h,
5913 config/mips/74k.md, config/mips/netbsd.h, config/mips/vxworks.h,
5914 config/mips/mips-modes.def, config/mips/vr.h,
5915 config/soft-fp/t-softfp, config/openbsd.h, config/ptx4.h,
5916 config/freebsd-spec.h, config/vax/vax.c, config/vax/openbsd.h,
5917 config/vax/vax.h, config/vax/elf.h, config/vax/vax.md,
5918 config/vax/bsd.h, config/vax/vax.opt, config/vax/vax-modes.def,
5919 config/vax/openbsd1.h, config/vax/netbsd.h,
5920 config/vax/vax-protos.h, config/vax/netbsd-elf.h,
5921 config/vax/vaxv.h, config/vax/ultrix.h, config/freebsd.h,
5922 config/h8300/rtems.h, config/h8300/predicates.md,
5923 config/h8300/h8300.c, config/h8300/h8300.h, config/h8300/elf.h,
5924 config/h8300/h8300.md, config/h8300/h8300.opt,
5925 config/h8300/coff.h, config/h8300/h8300-protos.h,
5926 config/v850/v850.md, config/v850/predicates.md,
5927 config/v850/v850-c.c, config/v850/v850.c, config/v850/v850.opt,
5928 config/v850/v850.h, config/v850/v850-protos.h, config/vxworks.c,
5929 config/knetbsd-gnu.h, config/sol2-6.h, config/vxworks.h,
5930 config/mmix/mmix.h, config/mmix/predicates.md,
5931 config/mmix/mmix-protos.h, config/mmix/mmix.md,
5932 config/mmix/mmix.c, config/mmix/mmix.opt,
5933 config/mmix/mmix-modes.def, config/bfin/bfin.opt,
5934 config/bfin/rtems.h, config/bfin/bfin-modes.def,
5935 config/bfin/predicates.md, config/bfin/bfin-protos.h,
5936 config/bfin/bfin.c, config/bfin/bfin.h, config/bfin/bfin.md:
5937 Likewise.
5938
5939 2007-08-02 Richard Sandiford <richard@codesourcery.com>
5940
5941 * emit-rtl.c (reset_used_decls): Rename to...
5942 (set_used_decls): ...this. Set the used flag rather than clearing it.
5943 (unshare_all_rtl_again): Update accordingly. Set flags on argument
5944 DECL_RTLs rather than resetting them.
5945
5946 2007-08-02 Andreas Krebbel <krebbel1@de.ibm.com>
5947
5948 * config/s390/s390.md ("*xordi3_cconly"): Change xr to xg.
5949
5950 2007-08-01 Sandra Loosemore <sandra@codesourcery.com>
5951
5952 * reload.c (find_reloads_address_part): Pass correct MEMREFLOC
5953 argument to find_reloads_address.
5954
5955 2007-08-01 Daniel Jacobowitz <dan@codesourcery.com>
5956
5957 PR tree-optimization/32919
5958 * tree-ssa-sccvn.c (visit_phi): Do not visit abnormal PHIs.
5959 * tree-ssa-coalesce.c (ssa_conflicts_dump): New.
5960 (coalesce_ssa_name): Call it.
5961
5962 2007-08-01 Sandra Loosemore <sandra@codesourcery.com>
5963 David Ung <davidu@mips.com>
5964
5965 * config/mips/mips16.S (__mips16_unordsf2, __mips16_floatunsisf): New.
5966 (__mips16_unorddf2, __mips16_floatunsidf): New.
5967 * config/mips/mips.c (mips_init_libfuncs): Add optab entries for
5968 above functions.
5969 * config/mips/t-libgcc-mips16 (LIB1ASMFUNCS): Add new functions.
5970
5971 2007-08-01 Zdenek Dvorak <ook@ucw.cz>
5972
5973 * tree-pretty-print.c (dump_generic_node): Dump OMP_SECTIONS_SWITCH.
5974 Display new operands of OMP_SECTIONS and OMP_CONTINUE.
5975 * tree.h (OMP_SECTIONS_CONTROL): New macro.
5976 (OMP_DIRECTIVE_P): Add OMP_SECTIONS_SWITCH.
5977 * omp-low.c (get_ws_args_for, determine_parallel_type,
5978 expand_omp_for_generic, expand_omp_for_static_nochunk,
5979 expand_omp_for_static_chunk, expand_omp_for, expand_omp_sections):
5980 Work with more precise CFG.
5981 (build_omp_regions_1): Handle OMP_SECTIONS_SWITCH.
5982 (lower_omp_sections): Emit OMP_SECTIONS_SWITCH. Add arguments to
5983 OMP_CONTINUE.
5984 * tree-gimple.c (is_gimple_stmt): Handle OMP_SECTIONS_SWITCH.
5985 * gimple-low.c (lower_stmt): Ditto.
5986 * tree-inline.c (estimate_num_insns_1): Ditto.
5987 * tree.def (OMP_SECTIONS, OMP_CONTINUE): Added new operands.
5988 (OMP_SECTIONS_SWITCH): New.
5989 * tree-cfgcleanup.c (cleanup_omp_return): New.
5990 (cleanup_tree_cfg_bb): Call cleanup_omp_return.
5991 * tree-cfg.c (make_edges): Create back edges for OMP_CONTINUE
5992 and exit edge for OMP_FOR. Handle OMP_SECTIONS_SWITCH.
5993 (tree_redirect_edge_and_branch): Handle omp constructs.
5994
5995 * fortran/trans-openmp.c (gfc_trans_omp_sections): Build OMP_SECTIONS
5996 with three arguments.
5997
5998 2007-08-01 Zdenek Dvorak <ook@ucw.cz>
5999
6000 * tree-cfg.c (tree_merge_blocks): Preserve loop exit phi nodes only
6001 in loop closed ssa.
6002
6003 2007-08-01 Zdenek Dvorak <ook@ucw.cz>
6004
6005 * tree-ssa-threadupdate.c (thread_through_all_blocks): Record that
6006 the loop structures may need fixing.
6007 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
6008 New functions.
6009 (cleanup_tree_cfg_loop): Removed.
6010 (cleanup_tree_cfg): If loops need fixing, call repair_loop_structures.
6011 * tree-predcom.c (tree_predictive_commoning): Return TODO_cleanup_cfg
6012 instead of running cleanup_tree_cfg_loop.
6013 * cfgloop.h (LOOPS_NEED_FIXUP): New constant.
6014 * tree-flow.h (cleanup_tree_cfg_loop): Declaration removed.
6015 (tree_predictive_commoning): Declaration changed.
6016 * passes.c (execute_function_todo): Do not use cleanup_tree_cfg_loop.
6017
6018 2007-08-01 Zdenek Dvorak <ook@ucw.cz>
6019
6020 * doc/invoke.texi (l1-cache-size): Update documentation.
6021 (l2-cache-size): Document.
6022 * params.h (L2_CACHE_SIZE): New macro.
6023 * tree-ssa-loop-prefetch.c (L1_CACHE_SIZE_BYTES): Reflect
6024 that L1_CACHE_SIZE is in kB now.
6025 (L2_CACHE_SIZE_BYTES): New macro.
6026 (tree_ssa_prefetch_arrays): Show size in kB.
6027 * config/i386/i386.h (struct processor_costs): Add l1_cache_size
6028 and l2_cache_size fields.
6029 * config/i386/driver-i386.c (describe_cache): Detect cache size
6030 in kB.
6031 * config/i386/i386.c (size_cost, i386_cost, i486_cost,pentium_cost,
6032 pentiumpro_cost, geode_cost, k6_cost, athlon_cost, k8_cost,
6033 amdfam10_cost, pentium4_cost, nocona_cost, core2_cost,
6034 generic64_cost, generic32_cost): Add l1_cache_size and l2_cache_size.
6035 (override_options): Set l1-cache-size and l2-cache-size to default
6036 values if not specified otherwise.
6037 * params.def (PARAM_L1_CACHE_SIZE): Change to set in kB.
6038 (PARAM_L2_CACHE_SIZE): New.
6039
6040 2007-08-01 Nigel Stephens <nigel@mips.com>
6041 David Ung <davidu@mips.com>
6042 Thiemo Seufer <ths@mips.com>
6043 Chris Dearman <chris@mips.com>
6044 Richard Sandiford <richard@codesourcery.com>
6045
6046 * config.gcc (mips*-sde-elf*): New stanza.
6047 (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
6048 (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
6049 (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*, mips-*-elf*)
6050 (mipsel-*-elf*, mips64-*-elf*, mips64el-*-elf*, mips64orion-*-elf*)
6051 (mips64orionel-*-elf*, mips*-*-rtems*, mips-wrs-windiss)
6052 (mipstx39-*-elf*, mipstx39el-*-elf*): Add mips/t-libgcc-mips16
6053 to tmake_file.
6054 * config/mips/sde.h: New file.
6055 * config/mips/t-libgcc-mips16: Likewise.
6056 * config/mips/t-sde: Likewise.
6057 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Remove settings
6058 of _ABIN32, _ABI64, _ABIO32, _MIPS_SIM, _MIPS_SZLONG, _MIPS_SZPTR,
6059 _MIPS_FPSET and _MIPS_SZINT.
6060 * config/mips/iris.h (TARGET_OS_CPP_BUILTINS): Likewise.
6061 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Remove separate
6062 insertion of a default -mips option. Use MIPS_32BIT_OPTION_SPEC.
6063 * config/mips/t-isa3264 (LIB1ASMSRC, LIB1ASMFUNCS): Delete.
6064 * config/mips/t-r3900 (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
6065 * config/mips/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
6066 * config/mips/mips.h (TARGET_CPU_CPP_BUITINS): Define _ABIO32,
6067 _ABIN32, _ABI64, _ABIO64, _MIPS_SIM, _MIPS_SZINT, _MIPS_SZLONG,
6068 _MIPS_SZPTR and _MIPS_FPSET.
6069 (MIPS_ISA_LEVEL_SPEC): Inject the default -mips option if no
6070 architecture is specified.
6071 (MIPS_32BIT_OPTION_SPEC): New macro.
6072
6073 2007-07-31 Dan Hipschman <dsh@google.com>
6074
6075 * gcc.c (end_going_arg): New function.
6076 (do_spec_2): Use it.
6077 (do_spec_1): Use it.
6078
6079 2007-07-31 H.J. Lu <hongjiu.lu@intel.com>
6080
6081 * ddg.c (add_cross_iteration_register_deps): Declare bb_info
6082 only if ENABLE_CHECKING is defined.
6083
6084 2007-07-31 Kenneth Zadeck <zadeck@naturalbridge.com>
6085
6086 * df.h (DF_RU, DF_RU_BB_INFO, df_ru_bb_info, df_ru,
6087 df_ru_add_problem, df_ru_get_bb_info): Removed.
6088 (DF_RD, DF_UREC, DF_CHAIN, DF_NOTE): Renumbered.
6089 * df-problems.c (df_ru_problem_data, df_ru_set_bb_info,
6090 df_ru_free_bb_info, df_ru_alloc,
6091 df_ru_bb_local_compute_process_def,
6092 df_ru_bb_local_compute_process_use, df_ru_bb_local_compute,
6093 df_ru_local_compute, df_ru_init_solution, df_ru_confluence_n,
6094 df_ru_transfer_function, df_ru_free, df_ru_start_dump,
6095 df_ru_top_dump, df_ru_bottom_dump, df_problem problem_RU,
6096 df_ru_add_problem): Removed.
6097
6098 2007-07-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6099
6100 PR target/32847
6101 * pa.md (casesi32): Use match_scratch. Revise insn condition.
6102 (casesi32p, casesi64p): Likewise.
6103 (casesi): Adjust for above.
6104
6105 2007-07-31 Richard Sandiford <richard@codesourcery.com>
6106
6107 * mode-switching.c (create_pre_exit): Don't search past calls.
6108
6109 2007-07-31 Sandra Loosemore <sandra@codesourcery.com>
6110
6111 * config/mips/mips.h (ISA_HAS_SYNCI): Add !TARGET_MIPS16 test.
6112
6113 2007-07-31 Revital Eres <eres@il.ibm.com>
6114
6115 * ddg.c (add_deps_for_def): Rename to...
6116 (add_cross_iteration_register_deps): This. Change implementation
6117 to use only reaching def and def-use chains to construct the
6118 inter loop dependencies.
6119 (add_deps_for_use): Remove function.
6120 (build_inter_loop_deps): Call add_cross_iteration_register_deps
6121 function to build the inter loop dependencies.
6122 * modulo-sched.c (sms_schedule): Build only
6123 reaching def and def-use chains for the propose of the ddg
6124 construction.
6125
6126 2007-07-31 Julian Brown <julian@codesourcery.com>
6127
6128 * config/arm/neon.md (vec_set<mode>_internal, vec_setv2di_internal):
6129 New define_insns. Use correct RTL.
6130 (vec_set<mode>): Write as expander.
6131
6132 2007-07-31 Razya Ladelsky <razya@il.ibm.com>
6133
6134 * matrix-reorg.c (analyze_matrix_allocation_site): Avoid referring
6135 to an unallocated space.
6136
6137 2007-07-30 Jan Sjodin <jan.sjodin@amd.com>
6138
6139 * tree-data-ref.c
6140 (split_constant_offset): Enable split_constant_offset to extract
6141 constants from other statements.
6142 * tree-vect-transform.c
6143 (vect_create_addr_base_for_vector_ref): Generate data_ref_base
6144 to a temp var. Force base_offset to be simple.
6145
6146 2007-07-30 Seongbae Park <seongbae.park@gmail.com>
6147
6148 * df-scan.c (df_scan_verify): Remove artificial limit on
6149 the number of blocks for verification.
6150 * df-problems.c (df_lr_bb_local_compute, df_simulate_find_defs,
6151 df_simulate_defs): Avoid unnecessary insn checking for defs.
6152
6153 2007-07-29 Mark Mitchell <mark@codesourcery.com>
6154
6155 * config/m68k/lb1sf68.asm (FUNC): New macro.
6156 (__mulsi3): Use it.
6157 (__udivsi3): Likewise.
6158 (__divsi3): Likewise.
6159 (__umodsi3): Likewise.
6160 (__modsi3): Likewise.
6161 (__subdf3): Likewise.
6162 (__adddf3): Likewise.
6163 (__muldf3): Likewise.
6164 (__divdf3): Likewise.
6165 (__negdf2): Likewise.
6166 (__cmpdf2): Likewise.
6167 (__subsf3): Likewise.
6168 (__addsf3): Likewise.
6169 (__mulsf3): Likewise.
6170 (__divsf3): Likewise.
6171 (__negsf2): Likewise.
6172 (__cmpsf2): Likewise.
6173 (__eqdf2): Likewise.
6174 (__nedf2): Likewise.
6175 (__gtdf2): Likewise.
6176 (__gedf2): Likewise.
6177 (__ltdf2): Likewise.
6178 (__ledf2): Likewise.
6179 (__eqsf2): Likewise.
6180 (__nesf2): Likewise.
6181 (__gtsf2): Likewise.
6182 (__gesf2): Likewise.
6183 (__ltsf2): Likewise.
6184 (__lesf2): Likewise.
6185
6186 2007-07-30 Ollie Wild <aaw@google.com>
6187
6188 * c-ppoutput.c (print_lines_directives_only): New function.
6189 (scan_translation_unit_directives_only): New function.
6190 (preprocess_file): Add call to scan_translation_unit_directives_only.
6191 * c-opts.c (c_common_handle_option): Add OPT_fdirectives_only.
6192 (sanitize_cpp_opts): Add default flag_dump_macros setting for
6193 -fdirectives-only. Add errors for -fdirectives-only conflict with
6194 -Wunused-macros and -traditional.
6195 (finish_options): Add builtin macro initialization for
6196 -fdirectives-only + -fpreprocessed.
6197 * c.opt (fdirectives-only): New.
6198 * doc/cppopts.texi (fdirectives-only): New.
6199
6200 2007-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6201
6202 * alias.c (record_set, memory_modified_1): Constify.
6203 * bt-load.c (note_btr_set): Likewise.
6204 * caller-save.c (mark_set_regs, add_stored_regs): Likewise.
6205 * combine.c (set_nonzero_bits_and_sign_copies,
6206 expand_field_assignment, record_dead_and_set_regs_1,
6207 use_crosses_set_p, reg_dead_at_p_1, can_combine_p,
6208 likely_spilled_retval_1): Likewise.
6209 * config/frv/frv.c (frv_registers_update_1, frv_io_check_address,
6210 frv_io_handle_set): Likewise.
6211 * config/mips/mips.c (mips_sim_record_set,
6212 vr4130_true_reg_dependence_p_1): Likewise.
6213 * config/mt/mt.c (insn_dependent_p_1): Likewise.
6214 * config/s390/s390.c (s390_reg_clobbered_rtx): Likewise.
6215 * config/sh/sh.c (flow_dependent_p_1): Likewise.
6216 * cselib.c (cselib_invalidate_rtx_note_stores): Likewise.
6217 * dce.c (mark_nonreg_stores_1, mark_nonreg_stores_2): Likewise.
6218 * ddg.c (mark_mem_store): Likewise.
6219 * df-problems.c (df_urec_mark_reg_change): Likewise.
6220 * function.c (update_epilogue_consts): Likewise.
6221 * gcse.c (record_set_info, record_last_set_info,
6222 mems_conflict_for_gcse_p, canon_list_insert, reg_set_info,
6223 reg_clear_last_set): Likewise.
6224 * global.c (mark_reg_store, mark_reg_clobber, reg_becomes_live):
6225 Likewise.
6226 * jump.c (reversed_comparison_code_parts): Likewise.
6227 * local-alloc.c (validate_equiv_mem_from_store, no_equiv,
6228 reg_is_set): Likewise.
6229 * loop-iv.c (mark_altered): Likewise.
6230 * mode-switching.c (reg_becomes_live): Likewise.
6231 * optabs.c (no_conflict_move_test): Likewise.
6232 * postreload-gcse.c (record_last_set_info, find_mem_conflicts):
6233 Likewise.
6234 * postreload.c (reload_combine_note_store, move2add_note_store):
6235 Likewise.
6236 * regmove.c (flags_set_1): Likewise.
6237 * regrename.c (note_sets, kill_clobbered_value, kill_set_value):
6238 Likewise.
6239 * reload1.c (mark_not_eliminable, forget_old_reloads_1):
6240 Likewise.
6241 * resource.c (update_live_status): Likewise.
6242 * rtl.h (set_of, note_stores): Likewise.
6243 * rtlanal.c (set_of_1, parms_set, struct set_of_data, set_of,
6244 note_stores, parms_set): Likewise.
6245 * sched-rgn.c (sets_likely_spilled_1): Likewise.
6246 * stack-ptr-mod.c (notice_stack_pointer_modification_1):
6247 Likewise.
6248 * var-tracking.c (count_stores, add_stores): Likewise.
6249
6250 2007-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6251
6252 * alias.c (mems_in_disjoint_alias_sets_p,
6253 fixed_scalar_and_varying_struct_p, aliases_everything_p,
6254 nonoverlapping_component_refs_p, nonoverlapping_memrefs_p,
6255 write_dependence_p, mems_in_disjoint_alias_sets_p,
6256 read_dependence, true_dependence, canon_true_dependence,
6257 anti_dependence, output_dependence): Constify.
6258 * combine.c (extended_count): Likewise.
6259 * cse.c (cse_rtx_varies_p, hash_rtx, exp_equiv_p): Likewise.
6260 * cselib.c (get_value_hash, references_value_p,
6261 cselib_reg_set_mode, cselib_rtx_varies_p): Likewise.
6262 * cselib.h (cselib_reg_set_mode, references_value_p): Likewise.
6263 * emit-rtl.c (mem_expr_equal_p, active_insn_p): Likewise.
6264 * function.c (contains, prologue_epilogue_contains,
6265 sibcall_epilogue_contains): Likewise.
6266 * jump.c (simplejump_p, condjump_p, condjump_in_parallel_p,
6267 pc_set, any_uncondjump_p, any_condjump_p, onlyjump_p,
6268 only_sets_cc0_p, sets_cc0_p, rtx_renumbered_equal_p, true_regnum,
6269 reg_or_subregno): Likewise.
6270 * recog.c (asm_noperands): Likewise.
6271 * reload1.c (function_invariant_p): Likewise.
6272 * rtl.h (mem_expr_equal_p, active_insn_p, rtx_varies_p,
6273 rtx_addr_varies_p, asm_noperands, exp_equiv_p, hash_rtx,
6274 condjump_p, any_condjump_p, any_uncondjump_p, pc_set,
6275 simplejump_p, onlyjump_p, only_sets_cc0_p, sets_cc0_p,
6276 true_regnum, reg_or_subregno, condjump_in_parallel_p,
6277 extended_count, prologue_epilogue_contains,
6278 sibcall_epilogue_contains, function_invariant_p, true_dependence,
6279 canon_true_dependence, read_dependence, anti_dependence,
6280 output_dependence): Likewise.
6281 * rtlanal.c (rtx_varies_p, rtx_addr_varies_p): Likewise.
6282
6283 2007-07-30 Julian Brown <julian@codesourcery.com>
6284
6285 * config/arm/neon.md (V_ext): New mode attribute.
6286 (neon_vget_lane<mode>): Replace with define_expand.
6287 (neon_vget_lane<mode>_sext_internal)
6288 (neon_vget_lane<mode>_zext_internal): New define_insns for double
6289 and quad precision vectors.
6290 (neon_vget_lanedi): Add bounds check. Remove dead comment.
6291 * config/arm/neon.ml (get_lane): Make 32-bit get-lane intrinsics
6292 have typeless 32-bit result.
6293
6294 2007-07-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
6295
6296 PR tree-opt/32527
6297 * tree-affine.h (aff_tree): The type of rest is sizetype for types
6298 of pointers.
6299 * tree-affine.c (aff_combination_scale): If type is a pointer type,
6300 use sizetype for rest.
6301 (aff_combination_add_elt): Likewise. Don't specialize pointer types.
6302 (aff_combination_convert): Don't convert rest for pointer types.
6303
6304 2007-07-28 Daniel Berlin <dberlin@dberlin.org>
6305
6306 * Makefile.in (tree-ssa-alias.o): Add alloc-pool.h
6307
6308 * tree-ssa-alias.c: Add alloc-pool.h.
6309 (init_alias_info): Free alias_bitmap_obstack.
6310 (delete_alias_info): Call delete_mem_ref_stats.
6311 (get_mem_sym_stats_for): Use alloc_pool.
6312 (init_mem_ref_stats): Do not delete mem_ref_stats here.
6313 (delete_mem_sym_stats): Removed.
6314
6315 2007-07-29 Sebastian Pop <sebpop@gmail.com>
6316
6317 * tree-data-ref.c (add_multivariate_self_dist): Parametric access
6318 functions cannot be represented as classical distance vectors.
6319
6320 2007-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6321
6322 * attribs.c (hash_attr, eq_attr, init_attributes): Constify.
6323 * builtins.c (validate_arg, builtin_mathfn_code,
6324 validate_arglist): Likewise.
6325 * calls.c (call_expr_flags): Likewise.
6326 * combine.c (reg_nonzero_bits_for_combine,
6327 reg_num_sign_bit_copies_for_combine, get_last_value,
6328 reg_truncated_to_mode): Likewise.
6329 * emit-rtl.c (subreg_lowpart_p): Likewise.
6330 * expr.c (highest_pow2_factor_for_target,
6331 categorize_ctor_elements_1, categorize_ctor_elements,
6332 count_type_elements, contains_packed_reference,
6333 highest_pow2_factor, highest_pow2_factor_for_target): Likewise.
6334 * fold-const.c (may_negate_without_overflow_p, int_const_binop,
6335 fold_convertible_p, operand_equal_p, tree_swap_operands_p,
6336 native_encode_int, native_encode_real, native_encode_complex,
6337 native_encode_vector, native_encode_expr, native_interpret_int,
6338 native_interpret_real, native_interpret_complex,
6339 native_interpret_vector, native_interpret_expr): Likewise.
6340 * function.c (use_register_for_decl): Likewise.
6341 * gimplify.c (get_name): Likewise.
6342 * langhooks-def.h (lhd_return_null_const_tree): New.
6343 (LANG_HOOKS_GET_CALLEE_FNDECL): Use it.
6344 * langhooks.c (lhd_return_null_const_tree): New.
6345 * langhooks.h (lang_get_callee_fndecl): Constify.
6346 * output.h (constructor_static_from_elts_p): Likewise.
6347 * rtl-factoring.c (gen_symbol_ref_rtx_for_label): Likewise.
6348 * rtl.h (nonzero_bits, num_sign_bit_copies, truncated_to_mode,
6349 subreg_lowpart_p, noop_move_p, struct rtl_hooks): Likewise.
6350 * rtlanal.c (cached_nonzero_bits, nonzero_bits1,
6351 cached_num_sign_bit_copies, num_sign_bit_copies1, noop_move_p,
6352 nonzero_bits, num_sign_bit_copies, truncated_to_mode): Likewise.
6353 * rtlhooks-def.h (reg_nonzero_bits_general,
6354 reg_num_sign_bit_copies_general, reg_truncated_to_mode_general):
6355 Likewise.
6356 * rtlhooks.c (reg_num_sign_bit_copies_general,
6357 reg_nonzero_bits_general, reg_truncated_to_mode_general):
6358 Likewise.
6359 * stmt.c (warn_if_unused_value, is_body_block): Likewise.
6360 * stor-layout.c (mode_for_size_tree): Likewise.
6361 * tree-ssa-loop-im.c (memref_eq): Likewise.
6362 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): Likewise.
6363 * tree.c (contains_placeholder_p, type_list_equal,
6364 simple_cst_equal, get_callee_fndecl, operand_equal_for_phi_arg_p):
6365 Likewise.
6366 * tree.h (tree_int_cst_sign_bit, may_negate_without_overflow_p,
6367 mode_for_size_tree, categorize_ctor_elements, count_type_elements,
6368 contains_placeholder_p, contains_packed_reference,
6369 get_callee_fndecl, operand_equal_for_phi_arg_p,
6370 warn_if_unused_value, is_body_block, native_encode_expr,
6371 native_interpret_expr, fold_convertible_p, operand_equal_p,
6372 int_const_binop, tree_swap_operands_p, builtin_mathfn_code,
6373 validate_arglist, simple_cst_equal, type_list_equal,
6374 use_register_for_decl, call_expr_flags, get_name,
6375 highest_pow2_factor): Likewise.
6376 (const_call_expr_arg_iterator_d,
6377 init_const_call_expr_arg_iterator, next_const_call_expr_arg,
6378 first_const_call_expr_arg, more_const_call_expr_args_p,
6379 FOR_EACH_CONST_CALL_EXPR_ARG): New.
6380 * varasm.c (constructor_static_from_elts_p): Constify.
6381
6382 2007-07-28 Kazu Hirata <kazu@codesourcery.com>
6383
6384 * cfglayout.c, config/arm/arm.c, config/arm/cortex-a8.md,
6385 config/arm/neon-schedgen.ml, config/arm/neon.ml,
6386 config/arm/vec-common.md, config/ia64/div.md, cselib.c,
6387 df-core.c, df.h, dominance.c, optabs.c, opts.c, reg-stack.c,
6388 regstat.c, target.h, tree-ssa-live.c, tree-ssa-pre.c,
6389 tree-vect-transform.c, tree.def: Fix comment typos. Follow
6390 spelling conventions.
6391 * doc/invoke.texi: Follow spelling conventions.
6392
6393 2007-07-29 Vladimir Yanovsky <yanov@il.ibm.com>
6394 Revital Eres <eres@il.ibm.com>
6395
6396 * modulo-sched.c (sms_schedule): Avoid loops which includes
6397 auto-increment instructions.
6398
6399 2007-07-28 Richard Guenther <rguenther@suse.de>
6400
6401 PR middle-end/32920
6402 * fold-const.c (fold_cond_expr_with_comparison): Convert
6403 operand zero of MIN/MAX_EXPR to correct type.
6404
6405 2007-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6406
6407 * calls.c (special_function_p, setjmp_call_p, alloca_call_p,
6408 flags_from_decl_or_type): Constify.
6409 * gcc.c (do_spec_1): Likewise.
6410 * print-tree.c (dump_addr, print_node_brief): Likewise.
6411 * tree-cfg.c (stmt_starts_bb_p, is_ctrl_stmt, computed_goto_p,
6412 simple_goto_p, tree_can_make_abnormal_goto, stmt_starts_bb_p,
6413 tree_purge_all_dead_eh_edges): Likewise.
6414 * tree-flow.h (is_ctrl_stmt, computed_goto_p, simple_goto_p,
6415 tree_can_make_abnormal_goto, tree_purge_all_dead_eh_edges):
6416 Likewise.
6417 * tree.c (expr_location, expr_has_location, expr_locus,
6418 expr_filename, expr_lineno, get_inner_array_type,
6419 fields_compatible_p): Likewise.
6420 * tree.h (get_inner_array_type, fields_compatible_p,
6421 expr_location, expr_has_location, expr_locus, expr_filename,
6422 expr_lineno, dump_addr, print_node_brief, flags_from_decl_or_type,
6423 setjmp_call_p, alloca_call_p): Likewise.
6424
6425 2007-07-28 Daniel Berlin <dberlin@dberlin.org>
6426
6427 * timevar.def: Add TV_CALL_CLOBBER, TV_FLOW_SENSITIVE,
6428 TV_FLOW_INSENSITIVE.
6429
6430 * tree-ssa-alias.c (compute_call_clobbered): Push/pop
6431 TV_CALL_CLOBBER.
6432 (compute_flow_sensitive_aliasing): Ditto for TV_FLOW_SENSITIVE.
6433 (compute_flow_insensitive_aliasing): Ditto for
6434 TV_FLOW_INSENSITIVE.
6435
6436 2007-07-27 Jan Hubicka <jh@suse.cz>
6437
6438 * config/i386/i386.c (register_move_cost): Remove accidentally
6439 comitted #if 0 block.
6440
6441 * attribs.c: Include hashtab.h
6442 (attribute_hash): New.
6443 (substring): New structure.
6444 (extract_attribute_substring, substring_hash, hash_attr, eq_attr):
6445 New function.
6446 (init_attributes): Initialize attribute hash.
6447 (decl_attributes): Use attribute hash.
6448 * Makefile.in (attribs.c): Depend on hashtab.h.
6449
6450 2007-07-27 Steve Ellcey <sje@cup.hp.com>
6451
6452 * config/ia64/vect.md (vec_initv2si): Remove bad BIG_ENDIAN test.
6453
6454 2007-07-27 Richard Sandiford <richard@codesourcery.com>
6455
6456 * doc/invoke.texi (mdsp, mdspr2): Document the __mips_dsp,
6457 __mips_dspr2 and __mips_dsp_rev macros.
6458 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dsp_rev.
6459
6460 2007-07-27 Douglas Gregor <doug.gregor@gmail.com>
6461
6462 * c-common.h (enum rid): Add RID_DECLTYPE, update RID_LAST_CXX0X.
6463
6464 2007-07-26 Kenneth Zadeck <zadeck@naturalbridge.com>
6465
6466 PR middle-end/32749
6467
6468 * df-problems.c (df_create_unused_note): Removed do_not_gen parm
6469 and the updating of the live and do_not_gen sets.
6470 (df_note_bb_compute): Added updating of live and do_not_gen sets
6471 for regular defs so that the case of clobber inside conditional
6472 call is processed correctly.
6473
6474 2007-07-27 Zdenek Dvorak <dvorakz@suse.cz>
6475
6476 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Generate the
6477 operands with compatible type.
6478
6479 2007-07-27 Richard Sandiford <richard@codesourcery.com>
6480
6481 * expr.h (store_bit_field): Don't return a value.
6482 * expmed.c (check_predicate_volatile_ok): New function.
6483 (store_bit_field_1): New function, extracted from store_bit_field.
6484 Take a fallback_p argument and return true if the operation succeeded.
6485 Only use store_fixed_bit_field if fallback_p. Don't recompute
6486 mode_for_extraction; use op_mode instead. Try forcing memories
6487 into registers if the insv expander fails.
6488 (store_bit_field): Use store_bit_field_1 with fallback_p true.
6489 Don't return a value.
6490 (convert_extracted_bit_field): New function, extracted from
6491 store_bit_field.
6492 (extract_bit_field_1): Likewise. Take a fallback_p argument
6493 and return NULL if the operation succeeded. Only use
6494 extract_fixed_bit_field if fallback_p. Only calculate one
6495 extraction mode. Combine code for extv and extzv. Try forcing
6496 memories into registers if the ext(z)v expander fails.
6497 (extract_bit_field): Use extract_bit_field_1 with fallback_p true.
6498
6499 2007-07-27 Richard Sandiford <rsandifo@nildram.co.uk>
6500
6501 * df.h (df_mw_hardreg): Turn df_ref_type and df_ref_flags
6502 into bitfields.
6503 (df_ref): Likewise. Put regno with other integer fields.
6504
6505 2007-07-27 Richard Sandiford <rsandifo@nildram.co.uk>
6506
6507 * df.h (df_mw_hardreg): Remove "loc" field.
6508 * df-scan.c (df_ref_record): Don't set it. Remove redundant
6509 local variable.
6510 * df-problems.c (df_whole_mw_reg_unused_p): New function,
6511 split out from df_set_unused_notes_for_mw. Return false for
6512 partial references. Assert that mw_reg is a REG when returning true.
6513 (df_set_unused_notes_for_mw): Use it. Use mw_reg instead of *loc.
6514 (df_whole_mw_reg_dead_p): New function, split out from
6515 df_set_dead_notes_for_mw. Return false for partial references.
6516 Assert that mw_reg is a REG when returning true.
6517 (df_set_dead_notes_for_mw): Use it. Use mw_reg instead of *loc.
6518 Remove redundant bitmap check.
6519
6520 2007-07-26 H.J. Lu <hongjiu.lu@intel.com>
6521
6522 * config/ia64/t-ia64 ($(T)crtbegin.o): Removed.
6523 ($(T)crtend.o): Likwise.
6524 ($(T)crtbeginS.o): Likwise.
6525 ($(T)crtendS.o): Likwise.
6526 ($(T)crtfastmath.o): Likwise.
6527
6528 2007-07-26 Zdenek Dvorak <dvorakz@suse.cz>
6529
6530 * dominance.c (dom_computed, n_bbs_in_dom_tree): Removed.
6531 * function.h (dom_computed, n_bbs_in_dom_tree): New macros.
6532 * basic-block.h (struct control_flow_graph): Added x_dom_computed
6533 and x_n_bbs_in_dom_tree fields.
6534
6535 2007-07-26 Steve Ellcey <sje@cup.hp.com>
6536
6537 PR tree-optimization/32087
6538 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
6539 Do not call scale_bbs_frequencies_int with prob of zero.
6540
6541 2007-07-26 Julian Brown <julian@codesourcery.com>
6542
6543 * config/arm/arm-protos.h (neon_lane_bounds, neon_const_bounds)
6544 (neon_element_bits): Add prototypes.
6545 * config/arm/arm.c (bounds_check, neon_lane_bounds)
6546 (neon_const_bounds, neon_element_bits): New functions.
6547 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_lanedi)
6548 (neon_vget_lanev2di, neon_vset_lane<mode>, neon_vset_lanedi)
6549 (neon_vset_lanev2di, neon_vdup_lane<mode>, neon_vdup_lanedi)
6550 (neon_vdup_lanev2di, neon_vcvt_n<mode>, neon_vmul_lane<mode>)
6551 (neon_vmull_lane<mode>, neon_vqdmull_lane<mode>)
6552 (neon_vqdmulh_lane<mode>, neon_vmla_lane<mode>)
6553 (neon_vmlal_lane<mode>, neon_vqdmlal_lane<mode>)
6554 (neon_vmls_lane<mode>, neon_vmlsl_lane<mode>)
6555 (neon_vqdmlsl_lane<mode>, neon_vext<mode>, neon_vshr_n<mode>)
6556 (neon_vshrn_n<mode>, neon_vqshrn_n<mode>, neon_vqshrun_n<mode>)
6557 (neon_vshl_n<mode>, neon_vshl_n<mode>, neon_vqshl_n<mode>)
6558 (neon_vqshlu_n<mode>, neon_vshll_n<mode>, neon_vsra_n<mode>)
6559 (neon_vsri_n<mode>, neon_vsli_n<mode>): Add bounds checks.
6560
6561 2007-07-26 Nathan Froyd <froydnj@codesourcery.com>
6562
6563 * config/vxworks.h (VXWORKS_LINK_SPEC): Fix typo.
6564 (HAVE_AS_GNU_ATTRIBUTE): Undefine.
6565
6566 2007-07-26 Mark Shinwell <shinwell@codesourcery.com>
6567 Julian Brown <julian@codesourcery.com>
6568
6569 * config/arm/arm.c (arm_mac_accumulator_is_mul_result): New.
6570 * config/arm/arm-protos.h (arm_mac_accumulator_is_mul_result): New.
6571 * config/arm/cortex-a8.md: New.
6572 * config/arm/cortex-a8-neon.md: New.
6573 * config/arm/neon-schedgen.ml: New.
6574 * config/arm/neon.md (vqh_mnem): New.
6575 (neon_type): New.
6576 (Is_float_mode): New.
6577 (Scalar_mul_8_16): New.
6578 (Is_d_reg): New.
6579 (V_mode_nunits): New.
6580 (All instruction patterns): Annotate with neon_type attribute
6581 values.
6582 * config/arm/arm.md: Include cortex-a8.md.
6583 (insn): Add smmla, umaal, smlald, smlsld, clz, mrs, msr and xtab
6584 values.
6585 Annotate instruction patterns accordingly.
6586 (generic_sched): Do not use generic scheduling for Cortex-A8.
6587 (generic_vfp): Do not use generic VFP scheduling for Cortex-A8.
6588
6589 2007-07-26 Daniel Jacobowitz <dan@codesourcery.com>
6590
6591 * fold-const.c (fold_read_from_constant_string): Use
6592 build_int_cst_type.
6593 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
6594
6595 2007-07-26 Nick Clifton <nickc@redhat.com>
6596
6597 * tree-ssa-operands.h: Change copyright header to refer to version
6598 3 of the GNU General Public License and to point readers at the
6599 COPYING3 file and the FSF's license web page.
6600 * tree-vrp.c, regrename.c, attribs.c, loop-unswitch.c,
6601 sched-ebb.c, fwprop.c, tree-loop-linear.c, dwarf2asm.c,
6602 tree-into-ssa.c, dwarf2asm.h, tree-ssa-loop-im.c, sbitmap.c,
6603 targhooks.c, tree-dump.c, tree-complex.c, sbitmap.h, targhooks.h,
6604 tree-dump.h, regstat.c, see.c, machmode.h, hooks.c, cgraphbuild.c,
6605 hooks.h, genrecog.c, tree-ssa-threadupdate.c, gen-protos.c,
6606 flags.h, rtlhooks.c, gencheck.c, tree-ssa-loop-niter.c,
6607 opts-common.c, dbgcnt.def, tree-pretty-print.c, tracer.c,
6608 gengtype.c, mkconfig.sh, gengtype.h, tree-ssa-loop-unswitch.c,
6609 cgraph.c, c-lex.c, cgraph.h, libfuncs.h, cfgloopmanip.c,
6610 rtl-error.c, optabs.c, postreload-gcse.c, tree-ssa-loop-manip.c,
6611 optabs.h, genmddeps.c, defaults.h, postreload.c, value-prof.c,
6612 tree-ssa-loop-ch.c, tree-tailcall.c, gengenrtl.c, value-prof.h,
6613 genopinit.c, tree.c, tree.h, reload.c, tree-pass.h, ipa-cp.c,
6614 reload.h, bitmap.c, bitmap.h, tree-scalar-evolution.c,
6615 c-config-lang.in, tree-scalar-evolution.h, target.h, cppspec.c,
6616 rtlanal.c, ddg.c, lambda-mat.c, mips-tdump.c, ddg.h,
6617 tree-phinodes.c, mips-tfile.c, pointer-set.c, pointer-set.h,
6618 diagnostic.c, final.c, diagnostic.h, builtins.c, genoutput.c,
6619 gcc.c, lists.c, tree-ssa-alias-warnings.c, gcc.h, cfghooks.c,
6620 input.h, gensupport.c, fold-const.c, cfghooks.h, insn-notes.def,
6621 gensupport.h, builtin-attrs.def, sync-builtins.def, params.c,
6622 cfgloopanal.c, params.h, graphds.c, omp-low.c, tree-ssa-dse.c,
6623 graphds.h, gcov.c, cfg.c, genextract.c, ipa-reference.c,
6624 genautomata.c, tree-ssa-uncprop.c, auto-inc-dec.c, toplev.c,
6625 tree-gimple.c, ipa-reference.h, vmsdbgout.c, errors.c, toplev.h,
6626 reorg.c, tree-gimple.h, tree-chrec.c, pretty-print.c, errors.h,
6627 real.c, tree-chrec.h, pretty-print.h, debug.c, real.h, genemit.c,
6628 omega.c, c-cppbuiltin.c, genmultilib, debug.h, omega.h,
6629 tree-ssa-sccvn.c, genconfig.c, tree-ssa-sccvn.h, cgraphunit.c,
6630 regs.h, df-scan.c, vec.c, hosthooks-def.h, vec.h,
6631 tree-ssa-copyrename.c, scan.c, builtin-types.def, tree-ssa-ccp.c,
6632 scan.h, mode-classes.def, haifa-sched.c, dominance.c, dojump.c,
6633 double-int.c, gcov-io.c, dbxout.c, builtins.def, double-int.h,
6634 dbxout.h, tree-ssa-loop-ivopts.c, df-core.c, mode-switching.c,
6635 gengtype-lex.l, tree-nomudflap.c, modulo-sched.c, c-objc-common.c,
6636 hosthooks.h, c-objc-common.h, caller-save.c, graph.c,
6637 ipa-pure-const.c, graph.h, c-format.c, cse.c, fix-header.c,
6638 c-format.h, web.c, tree-stdarg.c, genpeep.c, tree-stdarg.h,
6639 tree-ssa-math-opts.c, xcoffout.c, tree-ssa-dom.c, tree-nrv.c,
6640 xcoffout.h, tree-ssa-propagate.c, ipa-utils.c,
6641 tree-ssa-propagate.h, tree-ssa-alias.c, loop-init.c, ipa-utils.h,
6642 gimple-low.c, rtl.def, c-tree.h, tree-ssa-sink.c, ipa-inline.c,
6643 mkmap-symver.awk, machmode.def, c-pch.c, cfganal.c, global.c,
6644 alloc-pool.c, c-semantics.c, alloc-pool.h, jump.c, ifcvt.c,
6645 dwarf2out.c, expr.c, cfgbuild.c, tree-browser.c, dwarf2out.h,
6646 expr.h, longlong.h, opts.c, gcov-iov.c, opts.h, dwarf2.h,
6647 genattrtab.c, genconditions.c, genattr.c, optc-gen.awk,
6648 timevar.def, tree-ssa-loop-ivcanon.c, hard-reg-set.h, predict.c,
6649 tree-ssa-loop.c, host-default.c, predict.h, recog.c, dbgcnt.c,
6650 recog.h, dbgcnt.h, c-aux-info.c, tree-ssa-address.c, timevar.c,
6651 dse.c, lcm.c, tree-ssa-ifcombine.c, timevar.h, dse.h,
6652 matrix-reorg.c, tree-vn.c, treestruct.def, fp-test.c, c-decl.c,
6653 tree-eh.c, c-errors.c, c-pretty-print.c, regmove.c,
6654 lambda-trans.c, c-pretty-print.h, et-forest.c, et-forest.h,
6655 ebitmap.c, configure.ac, local-alloc.c, function.c, langhooks.c,
6656 ebitmap.h, cppdefault.c, tree-vectorizer.c, function.h,
6657 langhooks.h, print-rtl.c, cppdefault.h, df.h, tree-vectorizer.h,
6658 sdbout.c, stor-layout.c, sdbout.h, rtlhooks-def.h, read-rtl.c,
6659 gcse.c, ipa-type-escape.c, vmsdbg.h, alias.c, gengtype-parse.c,
6660 ipa-type-escape.h, domwalk.c, alias.h, tree-if-conv.c, profile.c,
6661 init-regs.c, domwalk.h, ipa.c, gccbug.in, tree-data-ref.c,
6662 loop-unroll.c, tree-data-ref.h, tree-flow-inline.h, tree-affine.c,
6663 mkmap-flat.awk, tree-affine.h, tree-vect-analyze.c, c.opt, ggc.h,
6664 opt-gather.awk, c-typeck.c, gimplify.c, coretypes.h, exec-tool.in,
6665 insn-addr.h, tree-ssa-phiopt.c, c-pragma.c, c-pragma.h, calls.c,
6666 tree-ssa-coalesce.c, genmodes.c, loop-doloop.c, predict.def,
6667 dwarf.h, tree.def, rtl-factoring.c, lower-subreg.c, expmed.c,
6668 bt-load.c, ggc-common.c, genflags.c, tree-dfa.c, except.c,
6669 coverage.c, except.h, emit-rtl.c, cfgexpand.c, coverage.h,
6670 stringpool.c, cselib.c, emit-rtl.h, tree-cfgcleanup.c, c-opts.c,
6671 cselib.h, cfgcleanup.c, simplify-rtx.c, tree-ssa-pre.c, explow.c,
6672 tree-ssa-live.c, tree-sra.c, tree-ssa-live.h, tree-predcom.c,
6673 loop-invariant.c, genpreds.c, protoize.c, opth-gen.awk, c-dump.c,
6674 lambda.h, loop-iv.c, tree-mudflap.c, ipa-prop.c, print-tree.c,
6675 tree-mudflap.h, tree-ssa-copy.c, ipa-prop.h, cfglayout.c,
6676 tree-ssa-forwprop.c, c-convert.c, cfglayout.h, common.opt,
6677 ggc-zone.c, ggc-page.c, c-omp.c, tree-ssa-dce.c, gencodes.c,
6678 varasm.c, tree-vect-patterns.c, libada-mk.in, tree-ssa-ter.c,
6679 sched-deps.c, tree-nested.c, c-ppoutput.c, tree-ssa.c,
6680 target-def.h, tree-ssa-loop-prefetch.c, lambda-code.c,
6681 omp-builtins.def, rtl.c, regclass.c, stab.def, intl.c, rtl.h,
6682 intl.h, tree-inline.c, conditions.h, tree-inline.h, integrate.c,
6683 sched-int.h, tree-iterator.c, integrate.h, tree-iterator.h,
6684 genchecksum.c, tree-optimize.c, output.h, tree-vect-transform.c,
6685 tree-object-size.c, combine.c, tree-outof-ssa.c, addresses.h,
6686 bb-reorder.c, stack-ptr-mod.c, resource.c, var-tracking.c,
6687 cfgloop.c, system.h, resource.h, ggc-none.c, tree-profile.c,
6688 cfgloop.h, c-gimplify.c, c-common.c, opt-functions.awk,
6689 tree-vect-generic.c, tree-flow.h, df-problems.c, scan-decls.c,
6690 c-common.h, config.gcc, reg-stack.c, tlink.c, main.c, stub-objc.c,
6691 fixproto, config.host, Makefile.in, gccspec.c, sched-rgn.c,
6692 vecprim.h, basic-block.h, tree-ssa-structalias.c,
6693 tree-ssa-structalias.h, c-common.def, sched-vis.c, tree-cfg.c,
6694 passes.c, genconstants.c, c-incpath.c, c-incpath.h,
6695 struct-equiv.c, c-parser.c, tree-ssa-reassoc.c, varray.c, sreal.c,
6696 varray.h, dfp.c, sreal.h, combine-stack-adj.c, dfp.h,
6697 reg-notes.def, cfgrtl.c, config.build, varpool.c, gengtype-yacc.y,
6698 stmt.c, dce.c, tree-browser.def, prefix.c, statistics.h,
6699 params.def, dce.h, c-lang.c, gcov-dump.c, prefix.h,
6700 tree-ssanames.c, collect2.c, collect2.h, tree-ssa-threadedge.c,
6701 convert.c, convert.h, langhooks-def.h, reload1.c,
6702 tree-ssa-operands.c: Likewise.
6703
6704 2007-07-26 Jan Hubicka <jh@suse.cz>
6705
6706 * tree-ssa-live.c: Include debug.h and flags.h.
6707 (mark_scope_block_unused): New function.
6708 (remove_unused_scope_block_p): New function.
6709 (remove_unused_locals): Remove unused blocks too.
6710
6711 2007-07-25 Ian Lance Taylor <iant@google.com>
6712
6713 * combine.c (combine_max_regno): Remove. Remove all uses.
6714 (struct reg_stat_struct): Rename from struct reg_stat.
6715 (reg_stat_type): Define, and declare VECs.
6716 (reg_stat): Change from pointer to VEC. Change all uses.
6717 (combine_split_insns): New static function.
6718 (try_combine, find_split_point): Call it instead of split_insns.
6719
6720 2007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
6721
6722 * cfghooks.c (split_block): Fix the information about loop latch.
6723
6724 2007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
6725
6726 * cfgloopmanip.c (fix_loop_structure): Call force_single_succ_latches.
6727
6728 2007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
6729
6730 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
6731 Scan the new edge for loop exit info.
6732
6733 2007-07-25 Andreas Tobler <a.tobler@schweiz.org>
6734
6735 * config/darwin.c: Include debug.h.
6736
6737 2007-07-25 Steve Ellcey <sje@cup.hp.com>
6738
6739 PR target/32218
6740 * tree-vect-patterns.c (vect_pattern_recog_1): Check for valid type.
6741
6742 2007-07-25 Steve Ellcey <sje@cup.hp.com>
6743
6744 * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle RFmode.
6745 (HARD_REGNO_MODE_OK): Ditto.
6746 (MODES_TIEABLE_P): Ditto.
6747 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
6748 (CLASS_MAX_NREGS): Ditto.
6749 * config/ia64/ia64.c (ia64_print_operand_address): Add R format.
6750 * config/ia64/ia64.md (divsf3_internal_thr): Removed.
6751 (divdf3_internal_thr): Removed.
6752 * config/ia64/div.md: New file.
6753 * config/ia64/constraints.md: Add H constraint.
6754
6755 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6756
6757 * sbitmap.c (sbitmap_verify_popcount, sbitmap_alloc_with_popcount,
6758 sbitmap_copy, sbitmap_copy_n, sbitmap_equal, sbitmap_empty_p,
6759 sbitmap_union_of_diff_cg, sbitmap_union_of_diff, sbitmap_not,
6760 sbitmap_difference, sbitmap_any_common_bits, sbitmap_a_and_b_cg,
6761 sbitmap_a_and_b, sbitmap_a_xor_b_cg, sbitmap_a_xor_b,
6762 sbitmap_a_or_b_cg, sbitmap_a_or_b, sbitmap_a_subset_b_p,
6763 sbitmap_a_or_b_and_c_cg, sbitmap_a_or_b_and_c,
6764 sbitmap_a_and_b_or_c_cg, sbitmap_a_and_b_or_c,
6765 sbitmap_first_set_bit, sbitmap_last_set_bit, dump_sbitmap,
6766 dump_sbitmap_file, debug_sbitmap, popcount_table,
6767 sbitmap_popcount): Constify.
6768 * sbitmap.h (const_sbitmap, const_sbitmap_ptr): New.
6769 (sbitmap_iterator, sbitmap_iter_init, dump_sbitmap,
6770 dump_sbitmap_file, sbitmap_copy, sbitmap_copy_n, sbitmap_equal,
6771 sbitmap_empty_p, sbitmap_union_of_diff, sbitmap_union_of_diff_cg,
6772 sbitmap_difference, sbitmap_not, sbitmap_a_or_b_and_c,
6773 sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c,
6774 sbitmap_a_and_b_or_c_cg, sbitmap_any_common_bits, sbitmap_a_and_b,
6775 sbitmap_a_and_b_cg, sbitmap_a_or_b, sbitmap_a_or_b_cg,
6776 sbitmap_a_xor_b, sbitmap_a_xor_b_cg, sbitmap_a_subset_b_p,
6777 sbitmap_first_set_bit, sbitmap_last_set_bit, debug_sbitmap,
6778 sbitmap_popcount, sbitmap_verify_popcount): Constify.
6779
6780 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6781
6782 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_element_zerop,
6783 bitmap_copy, bitmap_clear_bit, popcount_table, bitmap_count_bits,
6784 bitmap_first_set_bit, bitmap_and, bitmap_and_into,
6785 bitmap_elt_copy, bitmap_and_compl, bitmap_and_compl_into,
6786 bitmap_compl_and_into, bitmap_elt_ior, bitmap_ior,
6787 bitmap_ior_into, bitmap_xor, bitmap_xor_into, bitmap_equal_p,
6788 bitmap_intersect_p, bitmap_intersect_compl_p,
6789 bitmap_ior_and_compl, bitmap_ior_and_compl_into,
6790 debug_bitmap_file, debug_bitmap, bitmap_print, bitmap_hash):
6791 Constify.
6792 * bitmap.h (bitmap_copy, bitmap_equal_p, bitmap_intersect_p,
6793 bitmap_intersect_compl_p, bitmap_count_bits, bitmap_and,
6794 bitmap_and_into, bitmap_and_compl, bitmap_and_compl_into,
6795 bitmap_compl_and_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
6796 bitmap_xor_into, bitmap_ior_and_compl, bitmap_ior_and_compl_into,
6797 debug_bitmap, debug_bitmap_file, bitmap_print,
6798 bitmap_first_set_bit, bitmap_hash, bmp_iter_set_init,
6799 bmp_iter_and_init, bmp_iter_and_compl_init): Likewise.
6800
6801 2007-07-25 Daniel Berlin <dberlin@dberlin.org>
6802
6803 * config/darwin.c (darwin_override_options): Additional fix for
6804 debug info formats that don't support var tracking.
6805
6806 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6807
6808 * cselib.c (entry_and_rtx_equal_p): Constify.
6809 * gengtype.c (output_mangled_typename, write_types, write_local):
6810 Likewise.
6811 * gengtype.h (const_type_p): New.
6812 * see.c (eq_descriptor_extension, hash_descriptor_extension):
6813 Constify.
6814 * tlink.c (scan_linker_output): De-constify.
6815 * tree-ssa-loop-im.c (memref_eq): Constify.
6816 * tree-ssa-structalias.c (const_shared_bitmap_info_t): New.
6817 (shared_bitmap_hash, shared_bitmap_eq): Constify.
6818
6819 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6820
6821 * c-common.c (fname_as_string, c_type_hash): Constify.
6822 * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
6823 * cgraph.c (edge_hash, edge_eq): Likewise.
6824 * dwarf2out.c (decl_die_table_eq, decl_loc_table_eq): Likewise.
6825 * emit-rtl.c (mem_attrs_htab_eq, reg_attrs_htab_hash,
6826 reg_attrs_htab_eq): Likewise.
6827 * except.c (t2r_eq, t2r_hash, ttypes_filter_eq, ehl_hash, ehl_eq):
6828 Likewise.
6829 * genautomata.c (const_reserv_sets_t, const_unit_decl_t,
6830 const_decl_t, const_state_t, const_automata_list_el_t): New.
6831 (first_out_arc, DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL,
6832 DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV,
6833 automaton_decl_hash, automaton_decl_eq_p, insn_decl_hash,
6834 insn_decl_eq_p, decl_hash, decl_eq_p, alt_state_cmp,
6835 reserv_sets_cmp, reserv_sets_eq, state_hash, state_eq_p,
6836 automata_list_hash, automata_list_eq_p, compare_states_for_equiv,
6837 compare_max_occ_cycle_nums, out_state_arcs_num,
6838 compare_transition_els_num, units_cmp, state_reservs_cmp):
6839 Constify.
6840 * genmodes.c (cmp_modes): Likewise.
6841 * ggc-common.c (saving_htab_hash, saving_htab_eq): Likewise.
6842 * gimplify.c (compare_case_labels): Likewise.
6843 * ipa-type-escape.c (get_name_of_type, type_brand_s): Likewise.
6844 * loop-unroll.c (si_info_hash, ve_info_hash): Likewise.
6845 * matrix-reorg.c (mtt_info_hash): Likewise.
6846 * postreload-gcse.c (hash_expr_for_htab, expr_equiv_p): Likewise.
6847 * rtl-factoring.c (const_p_hash_bucket, const_p_hash_elem): New.
6848 (htab_hash_bucket, htab_hash_elem): Constify.
6849 * tree-browser.c (TB_parent_eq): Likewise.
6850 * tree-scalar-evolution.c (hash_scev_info): Likewise.
6851 * tree-ssa-alias.c (sort_tags_by_id): Likewise.
6852 * tree-ssa-coalesce.c (const_coalesce_pair_p): New.
6853 (coalesce_pair_map_hash, coalesce_pair_map_eq, compare_pairs):
6854 Constify.
6855 * tree-ssa-dom.c (avail_expr_hash, avail_expr_eq): Likewise.
6856 * tree-ssa-pre.c (const_expr_pred_trans_t): New.
6857 (expr_pred_trans_hash, expr_pred_trans_eq): Constify.
6858 * tree-ssa-sccvn.c (const_vn_binary_op_t, const_vn_unary_op_t,
6859 const_vn_phi_t, const_vn_reference_op_t, const_vn_reference_t):
6860 New.
6861 (vn_reference_op_eq, vn_reference_hash, vn_reference_eq,
6862 vn_unary_op_hash, vn_unary_op_eq, vn_binary_op_hash,
6863 vn_binary_op_eq, vn_phi_hash, vn_phi_eq): Constify.
6864 * tree-ssa-threadupdate.c (redirection_data_hash,
6865 redirection_data_eq): Likewise.
6866 * tree-ssa-uncprop.c (equiv_hash, equiv_eq): Likewise.
6867 * tree-ssa.c (var_ann_eq): Likewise.
6868 * tree-vrp.c (compare_case_labels): Likewise.
6869 * tree.c (int_cst_hash_hash, int_cst_hash_eq,
6870 tree_map_base_marked_p, type_hash_marked_p, tree_check_failed,
6871 tree_not_check_failed, tree_class_check_failed,
6872 tree_range_check_failed, tree_not_class_check_failed,
6873 omp_clause_check_failed, omp_clause_range_check_failed,
6874 tree_contains_struct_check_failed, tree_operand_check_failed):
6875 Likewise.
6876 * tree.h (tree_contains_struct_check_failed, tree_check_failed,
6877 tree_not_check_failed, tree_class_check_failed,
6878 tree_range_check_failed, tree_not_class_check_failed,
6879 tree_operand_check_failed, omp_clause_operand_check_failed,
6880 tree_operand_length): Likewise.
6881 * var-tracking.c (const_variable): New.
6882 (variable_htab_hash, variable_htab_eq): Constify.
6883 * varasm.c (const_desc_hash): Likewise.
6884
6885 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6886
6887 * expr.c (handled_component_p): Constify.
6888 * fold-const.c (fit_double_type): Likewise.
6889 * real.h (real_value_from_int_cst): Likewise.
6890 * tree-flow-inline.h (gimple_in_ssa_p,
6891 gimple_aliases_computed_p, gimple_addressable_vars,
6892 gimple_call_clobbered_vars, gimple_referenced_vars,
6893 gimple_global_var, gimple_nonlocal_all, gimple_var_anns,
6894 end_htab_p, end_referenced_vars_p, var_ann, function_ann,
6895 may_aliases, end_readonly_imm_use_p, has_zero_uses,
6896 has_single_use, single_imm_use, num_imm_uses, is_exec_stmt,
6897 is_label_stmt, is_global_var, phi_ssa_name_p,
6898 factoring_name_p, is_call_clobbered, tree_common_ann,
6899 op_iter_done, end_imm_use_stmt_p, end_imm_use_on_stmt_p,
6900 unmodifiable_var_p, array_ref_contains_indirect_ref,
6901 ref_contains_array_ref, lookup_subvars_for_var,
6902 var_can_have_subvars, overlap_subvar, gimple_ssa_operands,
6903 gimple_mem_ref_stats): Likewise.
6904 * tree-flow.h (tree_common_ann, var_ann, function_ann,
6905 may_aliases, is_exec_stmt, is_label_stmt,
6906 ref_contains_array_ref, array_ref_contains_indirect_ref,
6907 var_can_have_subvars, overlap_subvar, is_call_clobbered,
6908 unmodifiable_var_p): Likewise.
6909 * tree-gimple.c (is_gimple_min_invariant): Likewise.
6910 * tree-gimple.h (is_gimple_min_invariant): Likewise.
6911 * tree.c (type_hash_list, attribute_hash_list, tree_size,
6912 cst_and_fits_in_hwi, real_value_from_int_cst,
6913 build_real_from_int_cst, integer_zerop, integer_onep,
6914 integer_all_onesp, integer_pow2p, integer_nonzerop, tree_log2,
6915 tree_floor_log2, real_zerop, real_onep, real_twop,
6916 real_minus_onep, really_constant_p, purpose_member, chain_member,
6917 list_length, fields_length, int_size_in_bytes, bit_position,
6918 int_bit_position, byte_position, int_byte_position, expr_align,
6919 array_type_nelts, tree_node_structure,
6920 type_contains_placeholder_1, iterative_hash_pointer,
6921 is_attribute_with_length_p, is_attribute_p, check_qualified_type,
6922 tree_map_base_eq, type_hash_list, type_hash_eq,
6923 attribute_hash_list, type_num_arguments, tree_int_cst_equal,
6924 tree_int_cst_lt, tree_int_cst_compare, host_integerp,
6925 tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
6926 simple_cst_list_equal, compare_tree_int, iterative_hash_expr,
6927 int_fits_type_p, get_containing_scope, decl_function_context,
6928 decl_type_context, omp_clause_operand_check_failed,
6929 initializer_zerop, int_cst_value, num_ending_zeros): Likewise.
6930 * tree.h (omp_clause_operand_check_failed, tree_size,
6931 build_real_from_int_cst, array_type_nelts, purpose_member,
6932 tree_int_cst_equal, tree_int_cst_lt, tree_int_cst_compare,
6933 host_integerp, tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
6934 is_attribute_p, check_qualified_type, expr_align,
6935 int_size_in_bytes, bit_position, int_bit_position, byte_position,
6936 int_byte_position, list_length, fields_length, initializer_zerop,
6937 integer_zerop, integer_onep, integer_all_onesp, integer_pow2p,
6938 integer_nonzerop, cst_and_fits_in_hwi, num_ending_zeros,
6939 tree_node_structure, handled_component_p, get_containing_scope,
6940 decl_function_context, decl_type_context, real_zerop,
6941 type_num_arguments, fit_double_type, really_constant_p,
6942 int_fits_type_p, tree_log2, tree_floor_log2, iterative_hash_expr,
6943 compare_tree_int, chain_member, simple_cst_list_equal, real_onep,
6944 real_twop, real_minus_onep, int_cst_value): Likewise.
6945
6946 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6947
6948 * cfglayout.c (insn_scope, insn_line): Constify.
6949 * emit-rtl.c (const_int_htab_hash, const_int_htab_eq,
6950 const_double_htab_hash, const_double_htab_eq,
6951 mem_attrs_htab_hash): Likewise.
6952 * loop-iv.c (biv_eq): Likewise.
6953 * print-rtl.c (print_rtx, print_decl_name, print_mem_expr,
6954 print_inline_rtx, debug_rtx, debug_rtx_list, debug_rtx_range,
6955 debug_rtx_find, print_rtl, print_rtl_single, print_simple_rtl):
6956 Likewise.
6957 * rtl-error.c (location_for_asm, diagnostic_for_asm,
6958 error_for_asm, warning_for_asm, _fatal_insn,
6959 _fatal_insn_not_found): Likewise.
6960 * rtl.c (rtx_size, shared_const_p, shallow_copy_rtx_stat,
6961 rtx_equal_p, rtl_check_failed_bounds, rtl_check_failed_type1,
6962 rtl_check_failed_type2, rtl_check_failed_code1,
6963 rtl_check_failed_code2, rtl_check_failed_code_mode,
6964 rtvec_check_failed_bounds, rtl_check_failed_flag): Likewise.
6965 * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
6966 rtl_check_failed_type2, rtl_check_failed_code1,
6967 rtl_check_failed_code2, rtl_check_failed_code_mode,
6968 rtvec_check_failed_bounds, rtl_check_failed_flag, LABEL_KIND,
6969 SET_LABEL_KIND, rhs_regno, subreg_lsb, subreg_regno, subreg_nregs,
6970 shared_const_p, rtx_size, shallow_copy_rtx_stat, rtx_equal_p,
6971 get_pool_mode, insn_line, insn_file, simplify_replace_rtx,
6972 mode_signbit_p, rtx_addr_can_trap_p, nonzero_address_p,
6973 rtx_unstable_p, get_integer_term, get_related_value,
6974 offset_within_block_p, reg_mentioned_p, count_occurrences,
6975 reg_referenced_p, reg_used_between_p, no_labels_between_p,
6976 single_set_2, multiple_sets, set_noop_p, refers_to_regno_p,
6977 reg_overlap_mentioned_p, dead_or_set_p, dead_or_set_regno_p,
6978 find_reg_note, find_regno_note, find_reg_equal_equiv_note,
6979 find_constant_src, find_reg_fusage, find_regno_fusage,
6980 pure_call_p, remove_note, side_effects_p, volatile_refs_p,
6981 volatile_insn_p, may_trap_p, may_trap_after_code_motion_p,
6982 may_trap_or_fault_p, inequality_comparisons_p, tablejump_p,
6983 computed_jump_p, auto_inc_p, in_expr_list_p,
6984 remove_node_from_expr_list, loc_mentioned_in_p,
6985 label_is_jump_target_p, reversed_comparison_code_parts,
6986 debug_rtx, debug_rtx_list, debug_rtx_range, debug_rtx_find,
6987 print_mem_expr, print_rtl, print_simple_rtl, print_rtl_single,
6988 print_inline_rtx): Likewise.
6989 * rtlanal.c (covers_regno_p, covers_regno_no_parallel_p,
6990 computed_jump_p_1, nonzero_bits1, rtx_unstable_p,
6991 rtx_addr_can_trap_p_1, rtx_addr_can_trap_p, nonzero_address_p,
6992 get_integer_term, get_related_value, offset_within_block_p,
6993 count_occurrences, reg_mentioned_p, no_labels_between_p,
6994 reg_used_between_p, reg_referenced_p, single_set_2,
6995 multiple_sets, set_noop_p, refers_to_regno_p,
6996 reg_overlap_mentioned_p, dead_or_set_p,
6997 covers_regno_no_parallel_p, covers_regno_p,
6998 dead_or_set_regno_p, find_reg_note, find_regno_note,
6999 find_reg_equal_equiv_note, find_constant_src, find_reg_fusage,
7000 find_regno_fusage, pure_call_p, remove_note, in_expr_list_p,
7001 remove_node_from_expr_list, volatile_insn_p, volatile_refs_p,
7002 side_effects_p, may_trap_p_1, may_trap_p,
7003 may_trap_after_code_motion_p, may_trap_or_fault_p,
7004 inequality_comparisons_p, tablejump_p, computed_jump_p_1,
7005 computed_jump_p, auto_inc_p, loc_mentioned_in_p, subreg_lsb,
7006 subreg_regno, subreg_nregs, label_is_jump_target_p): Likewise.
7007 * simplify-rtx.c (neg_const_int, plus_minus_operand_p,
7008 mode_signbit_p, simplify_replace_rtx, plus_minus_operand_p):
7009 Likewise.
7010 * toplev.h (_fatal_insn_not_found, _fatal_insn, error_for_asm,
7011 warning_for_asm): Likewise.
7012 * tree.h (print_rtl): Likewise.
7013 * varasm.c (get_pool_mode): Likewise.
7014
7015 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7016
7017 * c-lex.c (c_lex_with_flags, lex_string): Constify.
7018 * c-ppoutput.c (print_line, pp_dir_change): Likewise.
7019 * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
7020 * cfg.c (bb_copy_original_hash, bb_copy_original_eq): Likewise.
7021 * cfgloop.c (loop_exit_hash, loop_exit_eq): Likewise.
7022 * ddg.c (compare_sccs): Likewise.
7023 * df-scan.c (df_ref_compare, df_mw_compare): Likewise.
7024 * dfp.c (decimal_real_from_string, decimal_to_decnumber,
7025 decimal_to_binary, decimal_do_compare, decimal_real_to_decimal,
7026 decimal_do_fix_trunc, decimal_real_to_integer,
7027 decimal_real_to_integer2, decimal_real_maxval): Likewise.
7028 * dse.c (const_group_info_t): New.
7029 (invariant_group_base_eq, invariant_group_base_hash): Constify.
7030 * dwarf2out.c (const_dw_die_ref): New.
7031 (decl_die_table_hash, decl_die_table_eq, file_info_cmp): Constify.
7032 * tree-browser.c (TB_parent_eq): Likewise.
7033 * unwind-dw2-fde.c (__register_frame_info_bases,
7034 __deregister_frame_info_bases, fde_unencoded_compare, fde_split,
7035 add_fdes, linear_search_fdes, binary_search_unencoded_fdes):
7036 Likewise.
7037 * unwind-dw2-fde.h (get_cie, next_fde): Likewise.
7038 * unwind-dw2.c (uw_frame_state_for): Likewise.
7039 * value-prof.c (histogram_hash, histogram_eq): Likewise.
7040 * value-prof.h (const_histogram_value): New.
7041
7042 2007-07-25 Richard Sandiford <richard@codesourcery.com>
7043
7044 * config/mips/mips.c (machine_function): Add
7045 initialized_mips16_gp_pseudo_p.
7046 (mips16_gp_pseudo_reg): Do not emit the initialization of
7047 mips16_gp_pseudo_rtx when being called from the gimple cost-
7048 calculation routines; emit it on the first use outside those
7049 routines.
7050
7051 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7052
7053 * coretypes.h (const_bitmap, const_rtx, const_rtvec, const_tree):
7054 New.
7055
7056 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
7057 RTVEC_ELT, XWINT, XCWINT, XCMWINT, XCNMPRV, BLOCK_SYMBOL_CHECK,
7058 RTL_FLAG_CHECK1, RTL_FLAG_CHECK2, RTL_FLAG_CHECK3,
7059 RTL_FLAG_CHECK4, RTL_FLAG_CHECK5, RTL_FLAG_CHECK6,
7060 RTL_FLAG_CHECK7, RTL_FLAG_CHECK8, LABEL_KIND, SET_LABEL_KIND):
7061 Preserve const-ness of parameters through use of __typeof(),
7062 also constify and tidy.
7063
7064 * tree.h (TREE_CHECK, TREE_NOT_CHECK, TREE_CHECK2,
7065 TREE_NOT_CHECK2, TREE_CHECK3, TREE_NOT_CHECK3, TREE_CHECK4,
7066 NON_TREE_CHECK4, TREE_CHECK5, TREE_NOT_CHECK5,
7067 CONTAINS_STRUCT_CHECK, TREE_CLASS_CHECK, TREE_RANGE_CHECK,
7068 OMP_CLAUSE_SUBCODE_CHECK, OMP_CLAUSE_RANGE_CHECK, EXPR_CHECK,
7069 GIMPLE_STMT_CHECK, NON_TYPE_CHECK, TREE_VEC_ELT_CHECK,
7070 PHI_NODE_ELT_CHECK, OMP_CLAUSE_ELT_CHECK, TREE_OPERAND_CHECK,
7071 TREE_OPERAND_CHECK_CODE, GIMPLE_STMT_OPERAND_CHECK,
7072 TREE_RTL_OPERAND_CHECK, TREE_CHAIN, TREE_TYPE): Likewise.
7073
7074 2007-07-25 Julian Brown <julian@codesourcery.com>
7075 Mark Shinwell <shinwell@codesourcery.com>
7076
7077 * config/alpha/alpha.c (alpha_mangle_fundamental_type): Rename to...
7078 (alpha_mangle_type): This.
7079 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
7080 (TARGET_MANGLE_TYPE): Define this instead.
7081 * config/arm/arm-protos.h (arm_mangle_type): Add prototype.
7082 * config/arm/arm.c (TARGET_MANGLE_TYPE): Define target hook.
7083 (arm_init_neon_builtins): Fix comment.
7084 (arm_mangle_map_entry): New.
7085 (arm_mangle_map): New.
7086 (arm_mangle_type): New.
7087 * config/i386/i386.c (ix86_mangle_fundamental_type): Rename to...
7088 (ix86_mangle_type): This. Use TYPE_MAIN_VARIANT and restrict
7089 mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
7090 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
7091 (TARGET_MANGLE_TYPE): Define this instead.
7092 * config/ia64/ia64.c (ia64_mangle_fundamental_type): Rename to...
7093 (ia64_mangle_type): This. Use TYPE_MAIN_VARIANT and restrict
7094 mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
7095 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
7096 (TARGET_MANGLE_TYPE): Define this instead.
7097 * config/rs6000/rs6000.c (rs6000_mangle_fundamental_type): Rename
7098 to...
7099 (rs6000_mangle_type): This. Use TYPE_MAIN_VARIANT.
7100 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
7101 (TARGET_MANGLE_TYPE): Define this instead.
7102 * config/s390/s390.c (s390_mangle_fundamental_type): Rename to...
7103 (s390_mangle_type): This.
7104 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
7105 (TARGET_MANGLE_TYPE): Define this instead.
7106 * config/sparc/sparc.c (sparc_mangle_fundamental_type): Rename to...
7107 (sparc_mangle_type): This.
7108 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
7109 (TARGET_MANGLE_TYPE): Define this instead.
7110 * cp/mangle.c (write_type): Call mangle_type target hook on all
7111 types before mangling. Use original type, not main variant, as
7112 argument.
7113 * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename hook to...
7114 (TARGET_MANGLE_TYPE): This.
7115 * target.h (gcc_target): Rename mangle_fundamental_type to
7116 mangle_type.
7117 * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename section to...
7118 (TARGET_MANGLE_TYPE): This. Note slightly different semantics.
7119
7120 2007-07-25 Julian Brown <julian@codesourcery.com>
7121 Paul Brook <paul@codesourcery.com>
7122 Joseph Myers <joseph@codesourcery.com>
7123 Mark Shinwell <shinwell@codesourcery.com>
7124
7125 * Makefile.in (TEXI_GCC_FILES): Add arm-neon-intrinsics.texi.
7126 * config.gcc (arm*-*-*): Add arm_neon.h to extra headers.
7127 (with_fpu): Allow --with-fpu=neon.
7128 * config/arm/aof.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
7129 * config/arm/aout.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
7130 * config/arm/arm-modes.def (EI, OI, CI, XI): New modes.
7131 * config/arm/arm-protos.h (neon_immediate_valid_for_move)
7132 (neon_immediate_valid_for_logic, neon_output_logic_immediate)
7133 (neon_pairwise_reduce, neon_expand_vector_init, neon_reinterpret)
7134 (neon_emit_pair_result_insn, neon_disambiguate_copy)
7135 (neon_vector_mem_operand, neon_struct_mem_operand, output_move_quad)
7136 (output_move_neon): Add prototypes.
7137 * config/arm/arm.c (FL_NEON): New flag for NEON processor capability.
7138 (all_fpus): Add FPUTYPE_NEON.
7139 (fp_model_for_fpu): Add NEON field.
7140 (arm_return_in_memory): Return vectors <= 16 bytes in ARM registers.
7141 (arm_arg_partial_bytes): Allow NEON vectors to be passed partially
7142 in registers.
7143 (arm_legitimate_address_p): Don't support fancy addressing for NEON
7144 structure moves.
7145 (thumb2_legitimate_address_p): Likewise.
7146 (neon_valid_immediate): Recognize and prepare constants suitable for
7147 NEON instructions.
7148 (neon_immediate_valid_for_move): New function. Recognize and prepare
7149 immediates for NEON move instructions.
7150 (neon_immediate_valid_for_logic): New function. Recognize and
7151 prepare immediates for NEON logic instructions.
7152 (neon_output_logic_immediate): New function. Create asm string
7153 suitable for outputting immediate logic instructions.
7154 (neon_pairwise_reduce): New function. Implement reduction using
7155 pairwise operations.
7156 (neon_expand_vector_init): New function. Expand a (possibly
7157 non-constant) vector initialization.
7158 (neon_vector_mem_operand): New function. Memory operands supported
7159 for quad-word loads/stores to/from ARM or NEON registers. Don't
7160 allow base+offset addressing for core regs.
7161 (neon_struct_mem_operand): New function. Valid mems for NEON
7162 structure moves.
7163 (coproc_secondary_reload_class): Enable NEON registers to be loaded
7164 from neon_vector_mem_operand addresses without a secondary register.
7165 (add_minipool_forward_ref): Handle >8-byte minipool entries.
7166 (add_minipool_backward_ref): Likewise.
7167 (dump_minipool): Likewise.
7168 (push_minipool_fix): Likewise.
7169 (output_move_quad): New function. Output quad-word moves, loads and
7170 stores using ARM registers.
7171 (output_move_vfp): Add support for vectors in VFP (NEON) D
7172 registers.
7173 (output_move_neon): Output a NEON load/store to/from a quadword
7174 register.
7175 (arm_print_operand): Implement new codes:
7176 - 'c' for unadorned integers (without a # sign).
7177 - 'J', 'K' for reg+2/reg+3, reg+3/reg+2 in little/big-endian
7178 mode.
7179 - 'e', 'f' for the low and high D parts of a NEON Q register.
7180 - 'q' outputs a NEON Q register.
7181 - 'h' outputs ranges of D registers for VLDM/VSTM etc.
7182 - 'T' prints NEON opcode features from a coded bitmask.
7183 - 'F' is similar to T, but signed/unsigned codes both print as
7184 'i'.
7185 - 't' is similar to T, but 'u' is printed instead of 'p'.
7186 - 'O' prints 'r' if NEON instruction should perform rounding (as
7187 specified by bitmask), else prints nothing.
7188 - '#' is a punctuation character to stop operand numbers from
7189 running together with following digits in the assembler
7190 strings for instructions (when using mode attributes).
7191 (arm_assemble_integer): Handle extra NEON vector modes. Permute
7192 constant vectors in big-endian mode, where necessary.
7193 (arm_hard_regno_mode_ok): Allow vectors in VFP/NEON registers.
7194 Handle EI, OI, CI, XI modes.
7195 (ashlv4hi3, ashlv2si3, lshrv4hi3, lshrv2si3, ashrv4hi3)
7196 (ashrv2si3): Rename IWMMXT2_BUILTINs to...
7197 (ashlv4hi3_iwmmxt, ashlv2si3_iwmmxt, lshrv4hi3_iwmmxt)
7198 (lshrv2si3_iwmmxt, ashrv4hi3_iwmmxt, ashrv2si3_iwmmxt): New names.
7199 (neon_builtin_type_bits): Add enumeration, one bit for each vector
7200 type.
7201 (v8qi_UP, v4hi_UP, v2si_UP, v2sf_UP, di_UP, v16qi_UP, v8hi_UP)
7202 (v4si_UP, v4sf_UP, v2di_UP, ti_UP, ei_UP, oi_UP, UP): Define macros
7203 to turn v8qi, etc. into bits defined above.
7204 (neon_itype): New enumeration. Classifications of NEON builtins.
7205 (neon_builtin_datum): Define struct. Contains information about
7206 a single builtin (with multiple modes).
7207 (CF): Define helper macro for...
7208 (VAR1...VAR10): Define builtins with a type, name and 1-10 different
7209 modes.
7210 (neon_builtin_data): New array. Define information about builtins
7211 for use during initialization/expansion.
7212 (arm_init_neon_builtins): New function.
7213 (arm_init_builtins): Call arm_init_neon_builtins if TARGET_NEON is
7214 true.
7215 (neon_builtin_compare): New function.
7216 (locate_neon_builtin_icode): New function. Find an insn code for a
7217 builtin given a function code for that builtin. Also return type of
7218 builtin (NEON_BINOP, NEON_UNOP etc.).
7219 (builtin_arg): New enumeration. Types of arguments for builtins.
7220 (arm_expand_neon_args): New function. Expand a generic NEON builtin.
7221 Takes a variable argument list of builtin_arg types, terminated by
7222 NEON_ARG_STOP.
7223 (arm_expand_neon_builtin): New function. Expand a NEON builtin.
7224 (neon_reinterpret): New function. Expand NEON reinterpret intrinsic.
7225 (neon_emit_pair_result_insn): New function. Support returning pairs
7226 of vectors via a pointer.
7227 (neon_disambiguate_copy): New function. Set up operands for a
7228 multi-word copy such that registers do not get clobbered.
7229 (arm_expand_builtin): Call arm_expand_neon_builtin if fcode >=
7230 ARM_BUILTIN_NEON_BASE.
7231 (arm_file_start): Set float-abi attribute for NEON.
7232 (arm_vector_mode_supported_p): Enable NEON vector modes.
7233 (arm_mangle_map_entry): New.
7234 (arm_mangle_map): New.
7235 (arm_mangle_vector_type): New.
7236 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_NEON__
7237 when appropriate.
7238 (TARGET_NEON): New macro. Target supports NEON.
7239 (fputype): Add FPUTYPE_NEON.
7240 (UNITS_PER_SIMD_WORD): Define. Allow quad-word registers to be used
7241 for vectorization based on command-line arg.
7242 (NEON_REGNO_OK_FOR_NREGS): Define.
7243 (VALID_NEON_DREG_MODE, VALID_NEON_QREG_MODE)
7244 (VALID_NEON_STRUCT_MODE): Define.
7245 (PRINT_OPERAND_PUNCT_VALID_P): '#' is valid punctuation.
7246 (arm_builtins): Add ARM_BUILTIN_NEON_BASE.
7247 * config/arm/arm.md (VUNSPEC_POOL_16): Insert constant for unspec.
7248 (consttable_16): Add pattern for outputting 16-byte minipool
7249 entries.
7250 (movv2si, movv4hi, movv8qi): Remove blank expanders (redefined in
7251 vec-common.md).
7252 (vec-common.md, neon.md): Include md files.
7253 * config/arm/arm.opt (mvectorize-with-neon-quad): Add option.
7254 * config/arm/constraints.md (constraint "Dn", "Dl", "DL"): Define.
7255 (memory_constraint "Ut", "Un", "Us"): Define.
7256 * config/arm/iwmmxt.md (VMMX, VSHFT): New mode macros.
7257 (MMX_char): New mode attribute.
7258 (addv8qi3, addv4hi3, addv2si3): Remove. Replace with...
7259 (*add<mode>3_iwmmxt): New insn pattern.
7260 (subv8qi3, subv4hi3, subv2si3): Remove. Replace with...
7261 (*sub<mode>3_iwmmxt): New insn pattern.
7262 (mulv4hi3): Rename to...
7263 (*mulv4hi3_iwmmxt): This.
7264 (smaxv8qi3, smaxv4hi3, smaxv2si3, umaxv8qi3, umaxv4hi3)
7265 (umaxv2si3, sminv8qi3, sminv4hi3, sminv2si3, uminv8qi3)
7266 (uminv4hi3, uminv2si3): Remove. Replace with...
7267 (*smax<mode>3_iwmmxt, *umax<mode>3_iwmmxt, *smin<mode>3_iwmmxt)
7268 (*umin<mode>3_iwmmxt): These.
7269 (ashrv4hi3, ashrv2si3, ashrdi3_iwmmxt): Replace with...
7270 (ashr<mode>3_iwmmxt): This new pattern.
7271 (lshrv4hi3, lshrv2si3, lshrdi3_iwmmxt): Replace with...
7272 (lshr<mode>3_iwmmxt): This new pattern.
7273 (ashlv4hi3, ashlv2si3, ashldi3_iwmmxt): Replace with...
7274 (ashl<mode>3_iwmmxt): This new pattern.
7275 * config/arm/neon-docgen.ml: New file. Generate documentation for
7276 intrinsics.
7277 * config/arm/neon-gen.ml: New file. Generate arm_neon.h header.
7278 * config/arm/arm_neon.h: New (autogenerated).
7279 * config/arm/neon-testgen.ml: New file. Generate NEON tests
7280 automatically.
7281 * config/arm/neon.md: New file. Define NEON instructions.
7282 * config/arm/neon.ml: New file. Abstract description of NEON
7283 instructions, used to generate arm_neon.h header, documentation and
7284 tests.
7285 * config/arm/t-arm (MD_INCLUDES): Add vec-common.md, neon.md.
7286 * vec-common.md: New file. Shared parts for iWMMXt and NEON vector
7287 support.
7288 * doc/extend.texi (ARM Built-in Functions): Rename and remove
7289 extraneous comma.
7290 (ARM NEON Intrinsics): New subsection.
7291 * doc/arm-neon-intrinsics.texi: New (autogenerated).
7292
7293 2007-07-25 Danny Smith <dannysmith@users.sourceforge.net>
7294
7295 * config/i386/i386-protos.h (i386_pe_asm_file_end): Remove
7296 prototype.
7297
7298 2007-07-24 Jan Hubicka <jh@suse.cz>
7299
7300 * regclass.c (move_table): New type.
7301 (move_cost, may_move_in_cost, may_move_out_cost): Use it.
7302 (init_move_cost): Break out from ...
7303 (init_reg_sets_1): ... here; simplify computation of
7304 have_regs-of_mode and contains_reg_of_mode.
7305 (record_reg_classes): Unswitch internal loops.
7306 (copy_cost): Trigger lazy initialization of move cost
7307 (record_address_regs): Likewise.
7308
7309 2007-07-24 Daniel Berlin <dberlin@dberlin.org>
7310
7311 * config/darwin.c (darwin_override_options): Don't force on
7312 flag_var_tracking_uninit when no debug info is requested.
7313
7314 2007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
7315
7316 * cfgloop.c (init_loops_structure): New function.
7317 (flow_loops_find): Create root of the loop tree unconditionally.
7318
7319 2007-07-24 Daniel Jacobowitz <dan@codesourcery.com>
7320
7321 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use fold_convert.
7322
7323 2007-07-24 Jan Hubicka <jh@suse.cz>
7324
7325 * caller-save.c: Include ggc.h, gt-caller-save.h
7326 (reg_save_code, reg_restore_code): Rename to ...
7327 (cached_reg_save_code, cached_reg_restore_code): ... those.
7328 (savepat, restpat, test_reg, test_mem, saveinsn, restinsn): New.
7329 (reg_save_code, reg_restore_code): New functions.
7330 (init_caller_save): Do not intialize
7331 reg_save_code/reg_restore_code tables.
7332 * Makefile.in: (gt-caller-save.h): New.
7333
7334 2007-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
7335
7336 * tree-ssa-ifcombine.c (ifcombine_ifandif): Use a ONE operand
7337 with the mode of the original operand instead of
7338 integer_one_node.
7339
7340 2007-07-23 Jan Hubicka <jH@suse.cz>
7341
7342 * i386.c (ix86_secondary_memory_needed): Break out to...
7343 (inline_secondary_memory_needed): ... here.
7344 (ix86_memory_move_cost): Break out to ...
7345 (inline_memory_move_cost): ... here; add support for IN value of 2 for
7346 maximum of input and output; fix handling of Q_REGS on 64bit.
7347 (ix86_secondary_memory_needed): Microoptimize.
7348
7349 2007-07-23 Sebastian Pop <sebpop@gmail.com>
7350
7351 * tree-data-ref.c (find_vertex_for_stmt, create_rdg_edge_for_ddr,
7352 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
7353 stmts_from_loop, known_dependences_p, build_rdg): New.
7354 * tree-data-ref.h: Depends on graphds.h.
7355 (rdg_vertex, RDGV_STMT, rdg_dep_type, rdg_edge, RDGE_TYPE): New.
7356 (build_rdg): Declared.
7357 * Makefile.in (TREE_DATA_REF_H): Depends on graphds.h.
7358
7359 2007-07-23 Daniel Berlin <dberlin@dberlin.org>
7360
7361 * tree-ssa-propagate.c (valid_gimple_expression_p): Match up with
7362 ccp_min_invariant.
7363
7364 2007-07-23 Peter Bergner <bergner@vnet.ibm.com>
7365 Jakub Jelinek <jakub@redhat.com>
7366
7367 PR middle-end/PR28690
7368 * optabs.c (expand_binop): (emit_cmp_and_jump_insns): Allow
7369 EQ compares.
7370 * rtlanal.c (commutative_operand_precedence): Prefer both REG_POINTER
7371 and MEM_POINTER operands over REG and MEM operands.
7372 (swap_commutative_operands_p): Change return value to bool.
7373 * rtl.h: Update the corresponding prototype.
7374 * tree-ssa-address.c (gen_addr_rtx): Use simplify_gen_binary
7375 instead of gen_rtx_PLUS.
7376 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Change return
7377 value to bool. Change function arguments to rtx's and update code
7378 to match.
7379 (simplify_plus_minus): Update the simplify_plus_minus_op_data_cmp
7380 calls to match the new declaration.
7381 * simplify-rtx.c (simplify_associative_operation): Don't
7382 reorder simplify_binary_operation arguments.
7383
7384 2007-07-23 Richard Sandiford <richard@codesourcery.com>
7385
7386 * config/mips/mips.c (override_options): Use mips_costs to derive
7387 the default branch cost.
7388 * config/mips/mips.h (BRANCH_COST): Use mips_branch_cost rather
7389 than mips_costs.
7390 * config/mips/mips.opt (mbranch-cost=): New option.
7391 * doc/invoke.texi (-mbranch-cost): Document new MIPS option.
7392
7393 2007-07-23 Richard Sandiford <richard@codesourcery.com>
7394
7395 * config/mips/mips.h (GR_REG_CLASS_P, COP_REG_CLASS_P): Delete.
7396 (SECONDARY_MEMORY_NEEDED): Delete commented-out definition.
7397 * config/mips/mips.c (mips_register_move_cost): Use reg_class_subset_p
7398 instead of GR_REG_CLASS_P and COP_REG_CLASS_P.
7399
7400 2007-07-23 Richard Sandiford <richard@codesourcery.com>
7401
7402 * config/mips/constraints.md (ks): New constraint.
7403 * config/mips/mips.md (*add<mode>3_sp1, *add<mode>3_sp2): Fold into...
7404 (*add<mode>3_mips16): ...here.
7405
7406 2007-07-21 Uros Bizjak <ubizjak@gmail.com>
7407
7408 * optabs.h (enum optab_index): Add new OTI_signbit.
7409 (signbit_optab): Define corresponding macro.
7410 (enum insn_code signbit_optab[]): Remove array.
7411 * optabs.c (init_optabs): Initialize signbit_optab using init_optab.
7412 (expand_copysign_absneg): If back end provides signbit insn, use it
7413 instead of bit operations on floating point argument.
7414 * builtins.c (enum insn_code signbit_optab[]): Remove array.
7415 (expand_builtin_signbit): Check signbit_optab->handlers[].insn_code
7416 for availability of signbit insn.
7417
7418 * config/i386/i386.md (signbit<mode>2): New insn pattern to implement
7419 signbitf, signbit and signbitl built-ins as inline x87 intrinsics when
7420 SSE mode is not active.
7421 (isinf<mode>2): Disable for mfpmath=sse,387.
7422
7423 2007-07-22 Ben Elliston <bje@au.ibm.com>
7424
7425 * regclass.c (invalid_mode_change_p): Attach ATTRIBUTE_UNUSED to
7426 `class' parameter.
7427 * struct-equiv.c (note_local_live): Likewise for `y_regno'.
7428
7429 2007-07-20 Richard Guenther <rguenther@suse.de>
7430
7431 * tree-cfg.c (verify_expr): COND_EXPRs can have any
7432 integral typed condition.
7433 * tree-ssa.c (useless_type_conversion_p): Do not preserve
7434 booleanness. Only preserve conversions from a non-base
7435 type to a base type, not in general between types with
7436 different TYPE_MIN_VALUE or TYPE_MAX_VALUE.
7437 * tree.def (COND_EXPR): Document that the condition
7438 can be of any integral type.
7439
7440 2007-07-20 Nigel Stephens <nigel@mips.com>
7441 Richard Sandiford <richard@codesourcery.com>
7442
7443 * config/mips/mips.h (mips_dwarf_regno): Declare.
7444 (DBX_REGISTER_NUMBER): Remove redundant brackets.
7445 (HI_REGNUM, LO_REGNUM): Define in an endian-dependent way.
7446 (AC1HI_REGNUM, AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM)
7447 (AC3HI_REGNUM, AC3LO_REGNUM, ACC_HI_REG_P): Delete.
7448 (reg_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
7449 (REG_CLASS_NAMES): Update accordingly.
7450 * config/mips/mips.c (mips_dwarf_regno): New array.
7451 (mips_regno_to_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
7452 (mips_subword): Remove special handling for accumulator registers.
7453 (override_options): Initiailize mips_dwarf_regno. Remove use
7454 of ACC_HI_REG_P.
7455 (mips_swap_registers): New function.
7456 (mips_conditional_register_usage): Swap accumulator registers
7457 around if TARGET_LITTLE_ENDIAN.
7458 (mips_cannot_change_mode_class): Remove special treatment of ACC_REGS.
7459 * config/mips/constraints.md (h, l): Use the endianness to choose
7460 between MD0_REG and MD1_REG.
7461 * config/mips/mips.md (*mfhilo_<mode>_macc): Use a fixed-string,
7462 alternative-dependent template.
7463
7464 2007-07-20 Richard Sandiford <richard@codesourcery.com>
7465
7466 * config/arm/arm.md (movsi): Use can_create_pseudo_p instead of
7467 no_new_pseudos.
7468
7469 2007-07-20 Zdenek Dvorak <dvorakz@suse.cz>
7470
7471 * function.c (thread_prologue_and_epilogue_insns): Fix exit
7472 predecessor fallthru flags.
7473
7474 2007-07-20 Zdenek Dvorak <dvorakz@suse.cz>
7475
7476 * tree-ssa-loop-niter.c (assert_loop_rolls_lt): Convert the operands
7477 of compare to the same type.
7478 * cfgloopmanip.c (add_loop): Update information about loop exits.
7479 (loop_version): Remove the innermost loop requirement.
7480 * tree-ssa-loop-manip.c (determine_exit_conditions): Convert bounds
7481 to sizetype for pointers.
7482
7483 2007-07-18 H.J. Lu <hongjiu.lu@intel.com>
7484
7485 * Makefile.in (D32PBIT_FUNCS): Add _sd_to_tf and _tf_to_sd.
7486 (D64PBIT_FUNCS): Add _dd_to_tf and _tf_to_dd.
7487 (D128PBIT_FUNCS): Add _td_to_tf and _tf_to_td.
7488
7489 * config/dfp-bit.c: Empty for TFmode conversions.
7490
7491 2007-07-18 Caroline Tice <ctice@apple.com>
7492
7493 * var-tracking.c (find_src_status): Check for COND_EXEC insns
7494 and handle them correctly; check that src is not NULL before
7495 trying to use it.
7496 (find_src_set_src): Likewise.
7497
7498 2007-07-18 Bob Wilson <bob.wilson@acm.org>
7499
7500 * config/xtensa/xtensa.c (xtensa_expand_mask_and_shift): New.
7501 (struct alignment_context, init_alignment_context): New.
7502 (xtensa_expand_compare_and_swap, xtensa_expand_atomic): New.
7503 * config/xtensa/xtensa.h (XCHAL_HAVE_RELEASE_SYNC): Add default.
7504 (XCHAL_HAVE_S32C1I): Likewise.
7505 (TARGET_RELEASE_SYNC, TARGET_S32C1I): New.
7506 * config/xtensa/xtensa.md (UNSPECV_MEMW): New constant.
7507 (UNSPECV_S32RI, UNSPECV_S32C1I): Likewise.
7508 (ATOMIC, HQI): New macros.
7509 (memory_barrier, *memory_barrier): New.
7510 (sync_lock_releasesi): New.
7511 (sync_compare_and_swapsi, sync_compare_and_swap<mode>): New.
7512 (sync_lock_test_and_set<mode>): New.
7513 (sync_<atomic><mode>): New.
7514 (sync_old_<atomic><mode>, sync_new_<atomic><mode>): New.
7515 * config/xtensa/xtensa-protos.h (xtensa_expand_compare_and_swap): New.
7516 (xtensa_expand_atomic): New.
7517
7518 2007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7519
7520 PR target/30652
7521
7522 * builtins.c (expand_builtin_interclass_mathfn): Provide a generic
7523 transformation for builtin ISNORMAL.
7524 (expand_builtin): Handle BUILT_IN_ISNORMAL.
7525 * builtins.def (BUILT_IN_ISNORMAL): New.
7526 * doc/extend.texi: Document isnormal.
7527
7528 2007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7529
7530 PR target/30652
7531
7532 * builtins.c (expand_builtin_interclass_mathfn): Allow for missing
7533 optabs infrastructure. Provide generic implementation for
7534 FINITE/ISFINITE.
7535 (expand_builtin): Handle FINITE/ISFINITE.
7536 (fold_builtin_classify): Make ISFINITE canonical instead of FINITE.
7537 (fold_builtin_1): Likewise.
7538
7539 * builtins.def (BUILT_IN_ISFINITE): New.
7540
7541 * doc/extend.texi: Document isfinite.
7542
7543 2007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7544
7545 PR target/30652
7546 PR middle-end/20558
7547
7548 * builtins.c (expand_builtin_interclass_mathfn): Provide a
7549 generic fallback for isinf.
7550 * c-cppbuiltin.c (builtin_define_float_constants): Move FP max
7551 calculation code ...
7552 * real.c (get_max_float): ... to here.
7553 * real.h (get_max_float): New.
7554
7555 2007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7556
7557 PR middle-end/32668
7558
7559 * builtin-attrs.def (ATTR_TYPEGENERIC,
7560 ATTR_CONST_NOTHROW_TYPEGENERIC): New.
7561
7562 * builtins.def (BUILT_IN_ISINF, BUILT_IN_ISNAN,
7563 BUILT_IN_ISGREATER, BUILT_IN_ISGREATEREQUAL, BUILT_IN_ISLESS,
7564 BUILT_IN_ISLESSEQUAL, BUILT_IN_ISLESSGREATER,
7565 BUILT_IN_ISUNORDERED): Use ATTR_CONST_NOTHROW_TYPEGENERIC.
7566
7567 * c-common.c (handle_type_generic_attribute): New.
7568 (c_common_attribute_table): Add "type generic".
7569
7570 * c-typeck.c (convert_arguments): Handle "type generic" functions.
7571
7572 2007-07-18 Daniel Berlin <dberlin@dberlin.org>
7573
7574 * tree-ssa-sccvn.c (try_to_simplify): Use valid_gimple_expression
7575 * tree-ssa-propagate (valid_gimple_expression): Handle ADDR_EXPR
7576 properly.
7577
7578 2007-07-18 Rask Ingemann Lambertsen <rask@sygehus.dk>
7579
7580 PR target/32808
7581 * config/cris/cris.c (cris_print_index): Don't use XEXP before
7582 checking that the operand is an expression.
7583
7584 2007-07-19 Christoph von Wittich <Christoph_vW@reactos.org>
7585 Danny Smith <dannysmith@users.sourceforge.net>
7586
7587 PR/other 30335
7588 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Put
7589 file mapping object in local namespace if Windows version later
7590 than NT4
7591
7592 2007-07-18 Richard Sandiford <richard@codesourcery.com>
7593
7594 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Declare.
7595 * config/arm/arm.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
7596 arm_cannot_force_const_mem.
7597 (arm_cannot_force_const_mem): New function.
7598 * config/arm/arm.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macro.
7599 (LEGITIMATE_CONSTANT_P): Test arm_cannot_force_const_mem instead
7600 of arm_tls_referenced_p.
7601 * config/arm/arm.md (movsi): Split out-of-section constants when
7602 ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P.
7603 * config/arm/vxworks.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
7604
7605 2007-07-18 Richard Sandiford <richard@codesourcery.com>
7606
7607 * config/mips/mips.md (clear_cache): Treat the size argument as Pmode.
7608
7609 2007-07-18 Richard Sandiford <richard@codesourcery.com>
7610
7611 * config/mips/mips.md (*extendqihi2): Convert the destination
7612 to SImode.
7613
7614 2007-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7615
7616 * config/pa/fptr.c: Update license header.
7617 * config/pa/milli64.S: Likewise.
7618
7619 2007-07-17 Nick Clifton <nickc@redhat.com>
7620
7621 * COPYING_v3: New file. Contains version 3 of the GNU General
7622 Public License.
7623 * COPYING.LIB_v3: New file. Contains version 3 of the GNU
7624 Lesser General Public License.
7625 * doc/include/gpl_v3.texi: New file. Contains version 3 of
7626 the GNU General Public License.
7627
7628 2007-07-17 Zdenek Dvorak <dvorakz@suse.cz>
7629
7630 PR rtl-optimization/32773
7631 * cfglayout.c (force_one_exit_fallthru): New function.
7632 (cfg_layout_finalize): Use it.
7633
7634 2007-07-16 Richard Guenther <rguenther@suse.de>
7635 Uros Bizjak <ubizjak@gmail.com>
7636
7637 * tree-if-conv.c (find_phi_replacement_condition): Unshare "*cond"
7638 before forcing it to gimple operand.
7639
7640 2007-07-16 Sandra Loosemore <sandra@codesourcery.com>
7641 David Ung <davidu@mips.com>
7642
7643 * config/mips/mips.h (TUNE_24K): Define.
7644 (TUNE_MACC_CHAINS): Add TUNE_24K.
7645 * config/mips/mips.md: (*mul_acc_si, *mul_sub_si): Change type to
7646 imadd.
7647 * config/mips/74k.md (r74k_int_mult): Split madd/msub to ..
7648 (r74k_int_madd): .. this new reservation.
7649 (define_bypass): Fixed bypasses for r74k_int_madd to use
7650 mips_linked_madd_p.
7651 * config/mips/24k.md (define_bypass): Define new
7652 r24k_int_mul3->r24k_int_madd bypass using mips_linked_madd_p.
7653
7654 2007-07-16 Sandra Loosemore <sandra@codesourcery.com>
7655 Nigel Stephens <nigel@mips.com>
7656
7657 * config/mips/mips.md: Include 20kc.md.
7658 * config/mips/20kc.md: New file.
7659 * config/mips/mips.c (mips_rtx_cost_data): Fill in 20Kc costs.
7660 (mips_adjust_cost): Tweak for 20Kc.
7661 (mips_issue_rate): Likewise.
7662 * config/mips/mips.h (TUNE_20KC): Define.
7663
7664 2007-07-16 David Edelsohn <edelsohn@gnu.og>
7665
7666 * config/rs6000/rs6000.c (struct processor_cost): Add
7667 cache_line_size, l1_cache_lines, and simultaneous_prefetches
7668 fields.
7669 (*_cost): Add cache information.
7670 (rs6000_override_options): Set cache parameters.
7671
7672 2007-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7673
7674 PR bootstrap/3456
7675 * config.gcc (mips-sgi-irix[56]*): Enable pthread support.
7676 * doc/install.texi (mips-sgi-irix6): pthread support works now.
7677
7678 2007-07-16 Paul Brook <paul@codesourcery.com>
7679
7680 PR target/32753
7681 * config/arm/cirrus.md (cirrus_arm_movsi_insn): Remove dead insn.
7682 (cirrus_thumb2_movsi_insn): Ditto.
7683
7684 2007-07-15 Geoffrey Keating <geoffk@apple.com>
7685
7686 * config/rs6000/darwin-fallback.c (interpret_libc): Change
7687 CR2_REGNO to R_CR2.
7688
7689 2007-07-15 Andrew Haley <aph@redhat.com>
7690
7691 * unwind-sjlj.c (_Unwind_GetIPInfo): Check for context->fc != NULL
7692 before looking in the context.
7693
7694 2007-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7695
7696 PR middle-end/32398
7697 PR middle-end/32769
7698 * pa-protos.h (pa_eh_return_handler_rtx): Declare.
7699 * pa.c (pa_extra_live_on_entry, rp_saved): Declare.
7700 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
7701 (pa_output_function_prologue): Use rp_saved and
7702 current_function_is_leaf to generate .CALLINFO statement.
7703 (hppa_expand_prologue): Set rp_saved.
7704 (hppa_expand_epilogue): Use rp_saved.
7705 (pa_extra_live_on_entry, pa_eh_return_handler_rtx): New functions.
7706 * pa.h (EH_RETURN_HANDLER_RTX): Use pa_eh_return_handler_rtx.
7707
7708 2007-07-14 Dirk Mueller <dmueller@suse.de>
7709
7710 * omega.c (coalesce): Fix memory leak on early exit.
7711 * matrix-reorg.c (check_allocation_function): Likewise.
7712 * tree-vect-transform.c (vect_get_new_vect_var): free result
7713 of concat().
7714 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
7715 pass pointer to edge vector
7716 (partition_hot_cold_basic_blocks): Fix memory leak.
7717 * collect2.c (prefix_from_string): Free temporary storage.
7718 * reload1.c (fixup_abnormal_edges): Free sbitmap.
7719
7720 2007-07-14 Kaz Kojima <kkojima@gcc.gnu.org>
7721
7722 * config/sh/sh.h (DO_GLOBAL_CTORS_BODY): Add void to prototype.
7723 (DO_GLOBAL_DTORS_BODY): Likewise.
7724
7725 2007-07-14 Sandra Loosemore <sandra@codesourcery.com>
7726 Nigel Stephens <nigel@mips.com>
7727
7728 * config/mips/mips.c (mips_classify_symbol): Don't return
7729 SYMBOL_SMALL_DATA for constant pool addresses if
7730 TARGET_EMBEDDED_DATA is true.
7731
7732 2007-07-14 Uros Bizjak <ubizjak@gmail.com>
7733
7734 * config/i386/i386.c (init_mmx_sse_builtins): Define all builtins
7735 except __builtin_ia32_emms, __builtin_ia32_ldmxcsr,
7736 __builtin_ia32_stmxcsr, __builtin_ia32_maskmovq, __builtin_ia32_loadups,
7737 __builtin_ia32_storeups, __builtin_ia32_loadhps, __builtin_ia32_loadlps,
7738 __builtin_ia32_storehps, __builtin_ia32_storelps,
7739 __builtin_ia32_movntps, __builtin_ia32_movntq, __builtin_ia32_sfence,
7740 __builtin_ia32_femms, __builtin_ia32_maskmovdqu, __builtin_ia32_loadupd,
7741 __builtin_ia32_storeupd, __builtin_ia32_loadhpd, __builtin_ia32_loadlpd,
7742 __builtin_ia32_movnti, __builtin_ia32_movntpd, __builtin_ia32_movntdq,
7743 __builtin_ia32_clflush, __builtin_ia32_lfence, __builtin_ia32_mfence,
7744 __builtin_ia32_loaddqu, __builtin_ia32_storedqu, __builtin_ia32_monitor,
7745 __builtin_ia32_mwait, __builtin_ia32_lddqu, __builtin_ia32_movntdqa,
7746 __builtin_ia32_movntsd and __builtin_ia32_movntss as const builtins
7747 using def_builtin_const.
7748
7749 2007-07-14 Eric Botcazou <ebotcazou@adacore.com>
7750
7751 PR tree-optimization/32705
7752 * tree-ssa-sccvn.c (set_ssa_val_to): Accept VN_TOP as value number.
7753 (simplify_binary_expression): Use SSA_VAL consistently.
7754
7755 2007-07-13 David Edelsohn <edelsohn@gnu.org>
7756
7757 * config/rs6000/spe.md (SPE_ACC_REGNO): Delete definition.
7758 (SPEFSCR_REGNO): Delete definition.
7759 * config/rs6000/rs6000.c: LINK_REGISTER_REGNUM -> LR_REGNO.
7760 COUNT_REGISTER_REGNUM -> CTR_REGNO.
7761 * config/rs6000/rs6000.h: Do not define *_REGNO.
7762 LINK_REGISTER_REGNUM -> LR_REGNO.
7763 COUNT_REGISTER_REGNUM -> CTR_REGNO.
7764 * config/rs6000/predicates.md: LINK_REGISTER_REGNUM -> LR_REGNO.
7765 COUNT_REGISTER_REGNUM -> CTR_REGNO.
7766 * config/rs6000/linux-unwind.h: Define R_LR, R_CR2, R_VR0,
7767 R_VRSAVE, R_VSCR. Use them.
7768 * config/rs6000/darwin-fallback.c: Define R_LR, R_CTR, R_CR2,
7769 R_XER, R_VR0, R_VRSAVE, R_VSCR, R_SPEFSCR. Use them.
7770 * config/rs6000/rs6000.md: Define REGNO constants. Use them.
7771 * config/rs6000/aix.h: Define R_LR. Use it.
7772
7773 2007-07-13 Caroline Tice <ctice@apple.com>
7774
7775 * toplev.c (process_options): Turn flag_var_tracking_uninit off when
7776 flag_var_tracking is explicitly turned off (i.e. when variable
7777 tracking is not feasible); otherwise, turn flag_var_tracking on when
7778 flag_var_tracking_uninit is on.
7779 * rtl.def (VAR_LOCATION): Add a new integer subfield to VAR_LOCATION
7780 note definitions, to allow recording of initialization status in the
7781 notes.
7782 * dwarf2out.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
7783 (add_var_loc_to_decl): Add comparison of NOTE_VAR_LOCATION_STATUS to
7784 determine if two note locations are equal.
7785 (output_loc_list): Don't output list entries whose start & end labels
7786 are the same.
7787 (reg_loc_descriptor): Add parameter for initialization status; pass it
7788 to other loc descriptor functions.
7789 (one_reg_loc_descriptor): Add parameter for initialization status;
7790 check its value and add DW_OP_GNU_uninit to returned loc descr if
7791 appropriate.
7792 (multiple_reg_loc_descriptor): Add parameter for initialization
7793 status;
7794 pass init status argument to other loc descriptor functions; check
7795 value of intialization parameter and add DW_OP_GNU_uninit to returned
7796 loc descr if appropriate.
7797 (based_loc_descr): Add parameter for initialization status; add new
7798 variable for return value; check value of initialization parameter and
7799 add DW_OP_GNU_uninit to returned loc descr if appropriate.
7800 (concatn_mem_loc_descriptor): Add parameter for initialization status;
7801 pass init status argument to other loc descriptor functions; check
7802 value of intialization parameter and add DW_OP_GNU_uninit to returned
7803 loc descr if appropriate.
7804 (mem_loc_descriptor): Likewise.
7805 (concat_loc_descriptor): Likewise.
7806 (concatn_loc_descriptor): Likewise.
7807 (loc_descriptor): Add parameter for initialization status; pass it as
7808 argument to other loc descriptor function calls.
7809 (loc_descriptor_from_tree_1): Add appropriate initialization status
7810 to loc descriptor function calls.
7811 (add_location_or_const_value_attribute): Get initialization status
7812 from VAR_LOCATION note; add initialization status to loc descriptor
7813 function calls.
7814 * dwarf2.h (enum dwarf_location_atom): New op, DW_OP_GNU_uninit.
7815 * print-rtl.c (print_rtx): When printing a VAR_LOCATION note, if
7816 status is uninitialized, add "[uninint]" to output.
7817 * common.opt (fvar-tracking-uninit): New option, similar to
7818 fvar-tracking, to turn on tracking of uninitialized variables; creates
7819 a new global flag, flag_var_tracking_uninit.
7820 * rtl.h (NOTE_VAR_LOCATION_STATUS): New macro for accessing new field.
7821 (enum var_init_status): New type, for var initialization status field.
7822 * var-tracking.c (struct location_chain_def): Two new fields, init,
7823 for initialization status, and set_src for the assignment value expr.
7824 (unshare_variable): New parameter for initialization status;
7825 initialize new init and set_src fields.
7826 (var_reg_set): New parameters for initialization status and value;
7827 pass them to set_variable_part.
7828 (var_mem_set): Likewise.
7829 (get_init_value): New function.
7830 (var_reg_delete_and_set): New initialization status & value
7831 parameters; add call to get_init_value if status is unknown; pass new
7832 parameters to clobber_variable_part and var_reg_set.
7833 (var_mem_delete_and_set): Likewise.
7834 (var_reg_delete): Pass null set_src value to clobber_variable_part.
7835 (var_mem_delete): Likewise.
7836 (variable_union): Pass status to unshare_variable; initialize new init
7837 and set_src fields. If flag_var_tracking_uninit is not set, force
7838 status to initialized.
7839 (add_stores): Store insn, rather than NEXT_INSN(insn), so it can be
7840 used later to get the set_src value.
7841 (find_src_status): New function.
7842 (find_src_set_src): New function.
7843 (compute_bb_dataflow): Pass init status to calls to var_reg_set,
7844 var_mem_set, var_reg_delete_and_set and var_mem_delete_and_set; for
7845 MO_SET, get set_src value and pass it to var_reg_delete_and_set
7846 and var_mem_delete_and_set.
7847 (dump_variable): Print out "[uninit]" if appropriate.
7848 (set_variable_part): Add new initialization and set_src parameters;
7849 pass status to unshare_variable; set node->init and node- >set_src
7850 fields and modify slot in hash table appropriately; save the init and
7851 set_src values if appropriate and assign to the new node.
7852 (clobber_variable_part): New set_src parameter; if two nodes have
7853 same variable and same location but different set_src (assignment)
7854 values, clobber old node.
7855 (delete_variable_part): Pass init status to unshare_variable.
7856 (emit_note_insn_var_location): Add initialized var; assign var's init
7857 status to new 'initialized'; pass new init status field to calls to
7858 gen_rtx_VAR_LOCATION. If flag_var_tracking_uninit is not set, force
7859 status to initialized.
7860 (emit_notes_in_bb): Pass initialization status to calls to
7861 var_reg_set, var_mem_set, var_reg_delete_and_set and
7862 var_mem_delete_and_set; for MO_SET, get set_src value and pass it to
7863 var_reg_delete_and_set and var_mem_delete_and_set; call
7864 emit_notes_for_changes on NEXT_INSN(insn) rather than on insn, to
7865 make up for change in add_stores.
7866 (vt_add_function_parameters): Add status to calls to
7867 set_variable_part.
7868 * config/darwin.c (darwin_override_options): Turn on uninitialized
7869 tracking automatically, if var_tracking is on and the system is
7870 10.5 or higher.
7871
7872 2007-07-13 Sa Liu <saliu@de.ibm.com>
7873
7874 * config.gcc: Add options for arch and tune on SPU.
7875 * config/spu/predicates.md: Add constant operands 0 and 1.
7876 * config/spu/spu-builtins.def: Add builtins for double precision
7877 floating point comparison: si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt,
7878 si_dftsv, spu_cmpeq_13, spu_cmpabseq_1, spu_cmpgt_13, spu_cmpabsgt_1,
7879 spu_testsv.
7880 * config/spu/spu-c.c: Define __SPU_EDP__ when builtins invoked with
7881 a CELLEDP target.
7882 * config/spu/spu-protos.h: Add new function prototypes.
7883 * config/spu/spu.c (spu_override_options): Check options -march and
7884 -mtune.
7885 (spu_comp_icode): Add comparison code for DFmode and vector mode.
7886 (spu_emit_branch_or_set): Use the new code for DFmode and vector
7887 mode comparison.
7888 (spu_const_from_int): New. Create a vector constant from 4 ints.
7889 (get_vec_cmp_insn): New. Get insn index of vector compare instruction.
7890 (spu_emit_vector_compare): New. Emit vector compare.
7891 (spu_emit_vector_cond_expr): New. Emit vector conditional expression.
7892 * config/spu/spu.h: Add options -march and -mtune. Define processor
7893 types PROCESSOR_CELL and PROCESSOR_CELLEDP. Define macro
7894 CANONICALIZE_COMPARISON.
7895 * config/spu/spu.md: Add new insns for double precision compare
7896 and double precision vector compare. Add vcond and smax/smin patterns
7897 to enable DFmode vector conditional expression.
7898 * config/spu/spu.opt: Add options -march and -mtune.
7899 * config/spu/spu_internals.h: Add builtins for CELLEDP target:
7900 si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt, si_dftsv. Add builtin for
7901 both CELL and CELLEDP targets: spu_testsv.
7902 * config/spu/spu_intrinsics.h: Add flag mnemonics for test special
7903 values.
7904
7905 2007-07-13 Richard Guenther <rguenther@suse.de>
7906
7907 PR tree-optimization/32721
7908 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Preserve
7909 TREE_THIS_VOLATILE on the folded reference.
7910 * tree-ssa-operands.c (get_expr_operands): Set has_volatile_ops
7911 if the array reference has TREE_THIS_VOLATILE set.
7912
7913 2007-07-13 H.J. Lu <hongjiu.lu@intel.com>
7914
7915 PR other/32188
7916 * doc/libgcc.texi: Update DFP intrinsics for DPD and BID.
7917
7918 2007-07-13 Andreas Schwab <schwab@suse.de>
7919
7920 * gengtype-lex.l: Allow declarations to be indented.
7921
7922 2007-07-12 Geoffrey Keating <geoffk@apple.com>
7923
7924 * ginclude/tgmath.h: New.
7925 * config.gcc: Use GCC's tgmath.h on non-glibc systems.
7926 * doc/sourcebuild.texi (Headers): Document use_gcc_tgmath.
7927 * configure.ac (STMP_FIXPROTO): Honor use_gcc_tgmath.
7928 * configure: Regenerate.
7929
7930 2007-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
7931
7932 * config/sh/linux-unwind.h (sh_fallback_frame_state): Use
7933 correct index when setting register save state for xd
7934 registers.
7935
7936 2007-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
7937
7938 * config/sh/sh.c (mark_use): Remove.
7939
7940 2007-07-12 Paul Brook <paul@codesourcery.com>
7941
7942 * config/arm/arm.c (thumb1_compute_save_reg_mask): Make sure scratch
7943 reg does not overlap return value.
7944
7945 2007-07-12 Daniel Berlin <dberlin@dberlin.org>
7946
7947 * tree-ssa-pre.c (get_expression_vuses): Move out side-effect.
7948 (set_expression_vuses): Ditto.
7949 (init_pre): Initialize expression_vuses.
7950
7951 2007-07-12 Zdenek Dvorak <dvorakz@suse.cz>
7952
7953 * config/i386/sse.md (storentdf, storentsf): New.
7954
7955 2007-07-12 Geoffrey Keating <geoffk@apple.com>
7956
7957 * builtins.c (get_pointer_alignment): Honor DECL_ALIGN on a
7958 FUNCTION_DECL.
7959 * tree.c (build_decl_stat): Move code from here...
7960 (make_node_stat): ... to here. Don't uselessly clear DECL_USER_ALIGN.
7961 (expr_align): Honor DECL_ALIGN on a FUNCTION_DECL. Add comment
7962 about using DECL_ALIGN of LABEL_DECL and CONST_DECL.
7963 * tree.h (DECL_USER_ALIGN): Fix misplaced comment.
7964 * varasm.c (assemble_start_function): Use DECL_ALIGN instead of
7965 FUNCTION_BOUNDARY.
7966
7967 2007-07-12 Dorit Nuzman <dorit@il.ibm.com>
7968 Devang Patel <dpatel@apple.com>
7969
7970 PR tree-optimization/25413
7971 * targhooks.c (default_builtin_vector_alignment_reachable): New.
7972 * targhooks.h (default_builtin_vector_alignment_reachable): New.
7973 * tree.h (contains_packed_reference): New.
7974 * expr.c (contains_packed_reference): New.
7975 * tree-vect-analyze.c (vector_alignment_reachable_p): New.
7976 (vect_enhance_data_refs_alignment): Call
7977 vector_alignment_reachable_p.
7978 * target.h (vector_alignment_reachable): New builtin.
7979 * target-def.h (TARGET_VECTOR_ALIGNMENT_REACHABLE): New.
7980 * config/rs6000/rs6000.c (rs6000_vector_alignment_reachable): New.
7981 (TARGET_VECTOR_ALIGNMENT_REACHABLE): Define.
7982
7983 2007-07-12 Dorit Nuzman <dorit@il.ibm.com>
7984
7985 * target.h (builtin_vectorization_cost): Add new target builtin.
7986 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
7987 * tree-vectorizer.h (TARG_SCALAR_STMT_COST): New.
7988 (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST): New.
7989 * tree-vect-analyze.c (vect_analyze_slp_instance): Initisliaze
7990 uninitialized variables.
7991 * tree-vect-transform.c (cost_for_stmt): New function.
7992 (vect_estimate_min_profitable_iters): Call cost_for_stmt instead of
7993 using cost 1 for all scalar stmts. Be less conservative when
7994 estimating the number of prologue/epulogue iterations. Call
7995 targetm.vectorize.builtin_vectorization_cost. Return
7996 min_profitable_iters-1.
7997 (vect_model_reduction_cost): Use TARG_SCALAR_TO_VEC_COST for
7998 initialization cost instead of TARG_VEC_STMT_COST. Use
7999 TARG_VEC_TO_SCALAR_COST instead of TARG_VEC_STMT_COST for reduction
8000 epilogue code. Fix epilogue cost computation.
8001 * config/spu/spu.c (spu_builtin_vectorization_cost): New.
8002 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Implement.
8003 * config/spu/spu.h (TARG_COND_BRANCH_COST, TARG_SCALAR_STMT_COST):
8004 (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST, TARG_VEC_STMT_COST):
8005 (TARG_VEC_TO_SCALAR_COST, TARG_SCALAR_TO_VEC, TARG_VEC_LOAD_COST):
8006 (TARG_VEC_UNALIGNED_LOAD_COST, TARG_VEC_STORE_COST): Define.
8007
8008 2007-07-12 Richard Guenther <rguenther@suse.de>
8009
8010 * gimplify.c (gimplify_conversion): Make sure that the result
8011 from maybe_fold_offset_to_reference is trivially convertible
8012 to the desired type before doing the simplification.
8013 (gimplify_expr): Likewise.
8014 * fold-const.c (fold_binary): Use the correct types for
8015 building the simplified expression.
8016
8017 2007-07-12 Zdenek Dvorak <dvorakz@suse.cz>
8018
8019 PR rtl-optimization/32729
8020 * cfghooks.c (can_duplicate_block_p): Do not forbid duplicating blocks
8021 that fallthru to exit.
8022
8023 2007-07-12 Kaz Kojima <kkojima@gcc.gnu.org>
8024
8025 * config/sh/sh.md (symGOTOFF2reg): Add missing parenthesis.
8026 (symDTPOFF2reg): Likewise.
8027
8028 2007-07-11 Daniel Berlin <dberlin@dberlin.org>
8029
8030 PR tree-optimization/32663
8031
8032 * tree.h (VALUE_HANDLE_VUSES): Remove.
8033 (struct tree_value_handle): Remove vuses.
8034
8035 * tree-vn.c (create_value_handle_for_expr): Don't set
8036 VALUE_HANDLE_VUSES.
8037
8038 * tree-ssa-pre.c (expression_vuses): New.
8039 (alloc_expression_id): Set up expression_vuses.
8040 (get_expression_vuses): New.
8041 (set_expression_vuses): Ditto.
8042 (clear_expression_ids): Modify for expression_vuses.
8043 (phi_translate_1): Ditto.
8044 (phi_translate_set): Ditto.
8045 (value_dies_in_block_x): Ditto
8046 (valid_in_sets): Ditto.
8047 (add_to_sets): Ditto.
8048 (find_existing_value_expr): Ditto.
8049 (create_value_handle_for_expr): Ditto.
8050 (make_values_for_stmt): Ditto.
8051 (vuse_equiv): Remove.
8052
8053 2007-07-11 Alexandre Oliva <aoliva@redhat.com>
8054
8055 * Makefile.in (mostlyclean): Remove object files.
8056
8057 2007-07-11 Kenneth Zadeck <zadeck@naturalbridge.com>
8058
8059 * toplev.c (no_new_pseudos): Deleted.
8060 * rtl.h (no_new_pseudos): Deleted.
8061 * tree-pass.h (pass_no_new_pseudos): Deleted.
8062 * passes.c (pass_no_new_pseudos): Deleted.
8063 * final.c (rest_of_clean_state): Removed no_new_pseudos.
8064 (rest_of_no_new_pseudos, pass_no_new_pseudos): Deleted.
8065 * struct-equiv.c (rtx_equiv_p): Replaced no_new_pseudos with
8066 reload_completed.
8067 * cfgcleanup.c (try_crossjump_to_edge): Ditto.
8068 * rtlhooks.c (gen_lowpart_general): Ditto.
8069 * optabs.c (prepare_operand): Ditto.
8070 * mode-switching.c (rest_of_handle_mode_switching): Deleted set of
8071 no_new_pseudos.
8072 * modulo-sched.c (rest_of_handle_sms): Ditto.
8073 * see.c (rest_of_handle_see): Ditto.
8074 * ifcvt.c (if_convert): Ditto.
8075 (gate_handle_if_after_combine): Replaced no_new_pseudos with
8076 reload_completed.
8077 * init-regs.c (gate_initialize_regs): Deleted set of
8078 no_new_pseudos.
8079 * lower-subreg.c (decompose_multiword_subregs): Ditto.
8080 * bb-reorder.c (rest_of_handle_partition_blocks): Ditto.
8081 * doc/md.texi: Changed no_new_pseudos to can_create_pseudo_p.
8082
8083 2007-07-11 Uros Bizjak <ubizjak@gmail.com>
8084
8085 PR target/32661
8086 * config/i386/sse.md (*sse2_storeq_rex64): Handle 64bit mem->reg moves.
8087 (*vec_extractv2di_1_sse2): Disable for TARGET_64BIT.
8088 (*vec_extractv2di_1_rex64): New insn pattern.
8089
8090 2007-07-11 David Daney <ddaney@avtrex.com>
8091
8092 * config/mips/linux-unwind.h (mips_fallback_frame_state): Rewrite
8093 return address calculation. Substitute DWARF_ALT_FRAME_RETURN_COLUMN
8094 for SIGNAL_UNWIND_RETURN_COLUMN.
8095 * config/mips/mips.h (SIGNAL_UNWIND_RETURN_COLUMN): Remove.
8096 (DWARF_FRAME_REGNUM): Rewrite.
8097 (DWARF_ALT_FRAME_RETURN_COLUMN) Define.
8098
8099 2007-07-11 Nick Clifton <nickc@redhat.com>
8100
8101 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Revert previous
8102 delta and use gen_int_mode in place of GET_INT instead.
8103
8104 2007-07-11 Uros Bizjak <ubizjak@gmail.com>
8105
8106 * reg-stack.c (struct tree_opt_pass pass_stack_regs): Nullify name
8107 and letter field.
8108
8109 2007-07-11 Douglas Gregor <doug.gregor@gmail.com>
8110
8111 * params.def (PARAM_VERIFY_CANONICAL_TYPES): Remove.
8112 (PARAM_USE_CANONICAL_TYPES): New; decides whether to use canonical
8113 types or not.
8114 * params.h (VERIFY_CANONICAL_TYPES): Remove.
8115 (USE_CANONICAL_TYPES): New.
8116 * doc/invoke.texi (verify-canonical-types): Remove.
8117 (use-canonical-types): Add.
8118
8119 2007-07-11 Ulrich Weigand <uweigand@de.ibm.com>
8120
8121 * config/spu/spu.c (spu_optimization_options): Remove setting of
8122 parameter PARAM_MAX_COMPLETELY_PEEL_TIMES.
8123 (spu_override_options): Move it here.
8124
8125 2007-07-11 Richard Sandiford <richard@codesourcery.com>
8126
8127 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle -m4ksc and -m4ksd.
8128 * config/mips/mips.c (mips_cpu_info_table): Mention
8129 MIPS_ISA_LEVEL_SPEC in the comment.
8130
8131 2007-07-11 Eric Botcazou <ebotcazou@adacore.com>
8132
8133 PR tree-optimization/32713
8134 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle REAL_CST.
8135
8136 2007-07-11 Paolo Carlini <pcarlini@suse.de>
8137
8138 PR middle-end/30482
8139 * c-opts.c (c_common_post_options): Do not change flag_complex_method
8140 conditional to flag_isoc99.
8141 (c_common_init_options): Do it here, unconditionally.
8142
8143 2007-07-11 Eric Botcazou <ebotcazou@adacore.com>
8144
8145 PR tree-optimization/32589
8146 * doc/tree-ssa.texi (Rough GIMPLE Grammar): Add missing rule.
8147 * tree-gimple.c (is_gimple_min_invariant): Clarify head comment.
8148 * tree-ssa-propagate.c (valid_gimple_expression_p): New
8149 predicate, extracted from...
8150 (set_rhs): ...here. Call it for the expression on entry.
8151 * tree-ssa-propagate.h (valid_gimple_expression_p): Declare.
8152 * tree-ssa-sccvn.c: Include tree-ssa-propagate.h.
8153 (simplify_binary_expression): Use valid_gimple_expression_p
8154 to validate the simplification.
8155 * Makefile.in (tree-ssa-sccvn.o): Depends on tree-ssa-propagate.h.
8156
8157 2007-07-11 Danny Smith <dannysmith@users.sourceforge.net>
8158
8159 * config/i386/cygming.h (PREFERRED_DEBUGGING_TYPE): Define to
8160 DWARF2_DEBUG on 32 bit target too.
8161 (DWARF2_UNWIND_INFO): Reorganize 64-bit vs 32-bit definition.
8162
8163 2007-07-11 Nick Clifton <nickc@redhat.com>
8164
8165 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Provide alternative
8166 version for 64-bit hosts.
8167
8168 2007-07-10 David Daney <ddaney@avtrex.com>
8169
8170 * config/mips/mips.h (ISA_HAS_SYNCI): New target capability
8171 predicate.
8172 (INITIALIZE_TRAMPOLINE): Emit clear_cache insn instead of library
8173 call.
8174 * config/mips/mips.c (mips_expand_synci_loop): New function.
8175 * config/mips/mips.md (UNSPEC_CLEAR_HAZARD): New constant.
8176 (UNSPEC_RDHWR): Same.
8177 (UNSPEC_SYNCI): Same.
8178 (UNSPEC_SYNC): Same.
8179 (clear_cache): New expand.
8180 (sync): New insn.
8181 (synci): Same.
8182 (rdhwr): Same.
8183 (clear_hazard): Same.
8184 * config/mips/mips-protos.h (mips_expand_synci_loop): Declare
8185 function.
8186 * testsuite/gcc.target/mips/clear-cache-1.c: New test.
8187 * testsuite/gcc.target/mips/clear-cache-2.c: New test.
8188
8189 2007-07-10 Ian Lance Taylor <iant@google.com>
8190
8191 * emit-rtl.c (gen_reg_rtx): Check can_create_pseudo_p rather than
8192 no_new_pseudos.
8193
8194 2007-07-10 David Daney <ddaney@avtrex.com>
8195
8196 * builtins.def (BUILT_IN_CLEAR_CACHE): New builtin.
8197 * builtins.c (expand_builtin___clear_cache): New function.
8198 (expand_builtin): Call expand_builtin___clear_cache for
8199 BUILT_IN_CLEAR_CACHE case.
8200 * doc/extend.texi (__builtin___clear_cache): Document new builtin.
8201 * doc/md.texi (clear_cache): Document new instruction pattern.
8202 * testsuite/gcc.dg/builtins-64.c: New test.
8203
8204 2007-07-11 Hans-Peter Nilsson <hp@axis.com>
8205
8206 * config/cris/cris.md ("movsi"): Fix typo in last change.
8207
8208 2007-07-09 Geoffrey Keating <geoffk@apple.com>
8209
8210 PR 32617
8211 * c-common.c (c_alignof_expr): Look at DECL_ALIGN of
8212 FUNCTION_DECLs.
8213 (handle_aligned_attribute): Allow use on FUNCTION_DECLs.
8214 * varasm.c (assemble_start_function): Honor DECL_ALIGN
8215 for FUNCTION_DECLs. Don't use align_functions_log if
8216 DECL_USER_ALIGN.
8217 * print-tree.c (print_node): Print DECL_ALIGN and DECL_USER_ALIGN
8218 even for FUNCTION_DECLs.
8219 * c-decl.c (merge_decls): Propagate DECL_ALIGN even for
8220 FUNCTION_DECLs.
8221 * tree.h (DECL_ALIGN): Update for new location of 'align'.
8222 (DECL_FUNCTION_CODE): Update for new location and name of
8223 'function_code'.
8224 (DECL_OFFSET_ALIGN): Update for new location of 'off_align'.
8225 (struct tree_decl_common): Move 'align' and 'off_align' out
8226 of union, ensure they're still on a 32-bit boundary. Remove
8227 other fields in union 'u1'.
8228 (struct tree_function_decl): Add field 'function_code' replacing
8229 'u1.f' in tree_decl_common.
8230 * tree.c (build_decl_stat): Set initial value of DECL_ALIGN.
8231 * doc/extend.texi (Function Attributes): Add 'aligned' attribute.
8232 (Variable Attributes): Cross-reference 'aligned' attribute
8233 to Function Attributes.
8234 * flags.h (force_align_functions_log): Delete.
8235 * toplev.c (force_align_functions_log): Delete.
8236
8237 2007-07-10 Uros Bizjak <ubizjak@gmail.com>
8238
8239 PR target/32708
8240 * config/i386/sse.md (vec_concatv2di): Disable for TARGET_64BIT.
8241 (*vec_concatv2di_rex): New insn pattern.
8242
8243 2007-07-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8244
8245 PR target/32538
8246 * config/mips/iris6.h (LIBGCC_SPEC): Add libm.
8247
8248 2007-07-10 Ian Lance Taylor <iant@google.com>
8249
8250 Replace no_new_pseudos in backends.
8251 * rtl.h (can_create_pseudo_p): Define.
8252 * config/darwin.c (machopic_indirect_data_reference): Use
8253 can_create_pseudo_p () instead of no_new_pseudos.
8254 (machopic_indirect_data_reference): Likewise.
8255 (machopic_legitimize_pic_address): Likewise.
8256 * config/alpha/alpha.c (alpha_legitimize_address): Likewise.
8257 (alpha_emit_set_const_1): Likewise.
8258 (alpha_emit_set_const): Likewise.
8259 (alpha_emit_conditional_move): Likewise.
8260 (alpha_split_conditional_move): Likewise.
8261 * config/alpha/alpha.md (various splitters): Likewise.
8262 (movti): Likewise.
8263 * config/arm/arm.c (legitimize_pic_address): Likewise.
8264 (arm_load_pic_register): Likewise.
8265 * config/arm/arm.md (addsi3, subsi3, andsi3, iorsi3): Likewise.
8266 (movdi, movsi, movhi, movqi, movsf, movdf): Likewise.
8267 * config/bfin/bfin.c (legitimize_pic_address): Likewise.
8268 * config/cris/cris.c (cris_expand_pic_call_address): Likewise.
8269 * config/cris/cris.md (movsi): Likewise.
8270 * config/frv/frv.md (symGOT2reg_hilo): Likewise.
8271 (symGOTOFF2reg_hilo): Likewise.
8272 (symGPREL2reg, symGPREL2reg_hilo): Likewise.
8273 * config/h8300/h8300.md (insv, extzv): Likewise.
8274 * config/i386/i386.c (ix86_expand_move): Likewise.
8275 (ix86_expand_vector_move): Likewise.
8276 (ix86_prepare_fp_compare_args): Likewise.
8277 (ix86_expand_carry_flag_compare): Likewise.
8278 * config/i386/i386.md (tls_dynamic_gnu2_32): Likewise.
8279 (tls_dynamic_gnu2_combine_32): Likewise.
8280 (tls_dynamic_gnu2_64, tls_dynamic_gnu2_combine_64): Likewise.
8281 * config/ia64/ia64.c (ia64_expand_move): Likewise.
8282 (ia64_expand_movxf_movrf): Likewise.
8283 * config/m32c/m32c.c (m32c_prepare_move): Likewise.
8284 (m32c_split_move): Likewise.
8285 (m32c_expand_insv): Likewise.
8286 * config/m68k/m68k.md (movsi): Likewise.
8287 * config/mips/mips.c (mips_force_temporary): Likewise.
8288 (mips_split_symbol): Likewise.
8289 (mips_move_integer): Likewise.
8290 (mips_legitimize_const_move): Likewise.
8291 * config/mn10300/mn10300.md (movsi): Likewise.
8292 * config/pa/pa.c (emit_move_sequence): Likewise.
8293 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
8294 (rs6000_got_register): Likewise.
8295 (create_TOC_reference): Likewise.
8296 (rs6000_machopic_legitimize_pic_address): Likewise.
8297 * config/rs6000/rs6000.md (add<mode>3): Likewise.
8298 (various splitters): Likewise.
8299 (iorsi3, xorsi3, iordi3, xordi3): Likewise.
8300 (movsi_got): Likewise.
8301 * config/s390/s390.c (emit_symbolic_move): Likewise.
8302 * config/s390/s390.md (movhi, movqi): Likewise.
8303 (load_multiple, store_multiple): Likewise.
8304 * config/score/score.c (score_force_temporary): Likewise.
8305 * config/sh/sh.c (prepare_move_operands): Likewise.
8306 (prepare_cbranch_operands): Likewise.
8307 (emit_fpu_switch): Likewise.
8308 (fpscr_set_from_mem): Likewise.
8309 * config/sh/sh.md (movdicc, movsicc, movsicc_umin): Likewise.
8310 (adddi3, subsi3): Likewise.
8311 (various splitters): Likewise.
8312 (divsi_inv_fp_combine): Likewise.
8313 (symGOT_load, symGOTOFF2reg, symDTPOFF2reg): Likewise.
8314 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu): Likewise.
8315 (sne): Likewise.
8316 * config/sh/predicates.md (xor_operand): Likewise.
8317 * config/sparc/sparc.c (legitimize_tls_address): Likewise.
8318 * config/sparc/sparc.md (movsi_pic_label_ref): Likewise.
8319 (movdi_pic_label_ref): Likewise.
8320 * config/spu/spu.c (spu_split_immediate): Likewise.
8321 * config/alpha/alpha.md (various splitters): Remove test
8322 !no_new_pseudos || reload_completed.
8323 * config/ia64/ia64.c (ia64_output_mi_thunk): Don't set
8324 no_new_pseudos.
8325 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
8326 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
8327 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
8328 * config/score/score.c (th_output_mi_thunk): Likewise.
8329 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
8330 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
8331
8332 2007-07-10 Kaz Kojima <kkojima@gcc.gnu.org>
8333
8334 PR rtl-optimization/32664
8335 * mode-switching.c (create_pre_exit): Skip barrier insns.
8336
8337 2007-07-10 Zdenek Dvorak <dvorakz@suse.cz>
8338
8339 * tree-scalar-evolution.c (scev_const_prop): Add arguments to
8340 force_gimple_operand_bsi.
8341 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr,
8342 rewrite_use_compare): Ditto.
8343 * tree-ssa-address.c (gimplify_mem_ref_parts, create_mem_ref):
8344 Ditto.
8345 * tree-ssa-ifcombine.c (ifcombine_ifandif): Ditto.
8346 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
8347 * lambda-code.c (replace_uses_equiv_to_x_with_y): Ditto.
8348 * tree-profile.c (prepare_instrumented_value,
8349 tree_gen_interval_profiler, tree_gen_pow2_profiler,
8350 tree_gen_one_value_profiler, tree_gen_ic_profiler,
8351 tree_gen_ic_func_profiler, tree_gen_average_profiler,
8352 tree_gen_ior_profiler): Ditto.
8353 * tree-ssa-reassoc.c (negate_value): Ditto.
8354 * matrix-reorg.c (transform_access_sites, transform_allocation_sites):
8355 Use force_gimple_operand_bsi.
8356 * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
8357 * tree-if-conv.c (add_to_dst_predicate_list,
8358 find_phi_replacement_condition): Ditto.
8359 * gimplify.c (force_gimple_operand_bsi): Add before and m arguments.
8360 Call mark_symbols_for_renaming for new statements.
8361 * tree-flow.h (force_gimple_operand_bsi): Declaration changed.
8362
8363 2007-07-10 Zdenek Dvorak <dvorakz@suse.cz>
8364
8365 * cfghooks.c (remove_edge): New function.
8366 (redirect_edge_and_branch, remove_branch, merge_blocks): Updated
8367 loop exit rescans.
8368 * cfghooks.h (remove_edge): Declare.
8369 * cfg.c (remove_edge): Renamed to remove_edge_raw.
8370 * basic-block.h (remove_edge): Declaration changed to remove_edge_raw.
8371
8372 2007-07-09 Wolfgang Gellerich <gellerich@de.ibm.com>
8373
8374 * optabs.h: Added declaration for signbit_optab.
8375 * optabs.c: (init_optabs): Added initialization for signbit_optab.
8376 * genoptinit.c (optabs): Added entry for signbit insns.
8377 * builtins.c (expand_builtin_signbit): Added code to use a signbit
8378 insn, if available.
8379 * config/s390/s390.h (S390_TDC_SIGNBIT_SET): New constant.
8380 * config/s390/s390.md (signbit<mode>2): New expander.
8381
8382 2007-07-09 Richard Guenther <rguenther@suse.de>
8383
8384 PR middle-end/32698
8385 * fold-const.c (fold_plusminus_mult_expr): Move constant
8386 arguments second to allow decomposing.
8387
8388 2007-07-09 Alexandre Oliva <aoliva@oliva.athome.lsd.ic.unicamp.br>
8389
8390 Revert:
8391 2007-07-06 Alexandre Oliva <aoliva@redhat.com>
8392 PR debug/23551
8393 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
8394 Disregard DECL_FROM_INLINE.
8395
8396 2007-07-09 Uros Bizjak <ubizjak@gmail.com>
8397
8398 PR target/27855
8399 * doc/invoke.texi: Add ftree-reassoc flag.
8400 * common.opt (ftree-reassoc): New flag.
8401 * tree-ssa-reassoc.c (gate_tree_ssa_reassoc): New static function.
8402 (struct tree_opt_pass pass_reassoc): Use gate_tree_ssa_reassoc.
8403
8404 2007-07-09 Uros Bizjak <ubizjak@gmail.com>
8405
8406 PR tree-optimization/32681
8407 * tree-if-conv.c (find_phi_replacement_condition): Use the condition
8408 saved in second_edge->aux when first_bb is a loop header.
8409
8410 2007-07-09 Jan HUbicka <jh@suse.cz>
8411
8412 * cse.c (cse_insn): Avoid invalid sharing on trial replacement.
8413
8414 2007-07-09 Richard Guenther <rguenther@suse.de>
8415
8416 * c-decl.c (start_function): Do not promote return type.
8417
8418 2007-07-08 Daniel Franke <franke.daniel@gmail.com>
8419
8420 * function.c (do_warn_unused_parameter): Do not warn if
8421 TREE_NO_WARNING is set.
8422
8423 2007-07-08 Andreas Schwab <schwab@suse.de>
8424
8425 * doc/invoke.texi (DEC Alpha/VMS Options): Fix typo.
8426
8427 2007-07-08 Sandra Loosemore <sandra@codesourcery.com>
8428
8429 Revert this patch:
8430 2007-07-06 Sandra Loosemore <sandra@codesourcery.com>
8431
8432 * c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
8433 apply to assembly language, too.
8434 * doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
8435
8436 2007-07-07 Daniel Berlin <dberlin@dberlin.org>
8437
8438 Revert (note the sccvn portions are *not* reverted)
8439 2007-07-06 Daniel Berlin <dberlin@dberlin.org>
8440
8441 Fix PR tree-optimization/23488
8442
8443 * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
8444 handles.
8445 * tree-flow-inline.h (get_value_handle): Ditto.
8446 * tree-ssa-pre.c (decl_vh_map): New.
8447 (decl_node_pool): New.
8448 (can_value_number_operation): Support DECL_P.
8449 (can_PRE_operation): Ditto.
8450 (create_expression_by_pieces): Ditto.
8451 (find_existing_value_expr): Modify to differnetiate between
8452 addressing and top level.
8453 (create_value_handle_for_expr): Handle DECL's.
8454 (poolify_tree): Ditto.
8455 (make_values_for_phi): Don't insert into PHI_GEN during FRE.
8456 (make_values_for_stmt): Handle DECL's properly.
8457 (init_pre): Reorg to not init useless things during FRE.
8458 (fini_pre): Ditto.
8459 * tree-flow.h: Include pointer-set.h.
8460 (decl_vh_map): Declare.
8461 * Makefile.in (TREE_FLOW_H): Add pointer-set.h
8462
8463 2007-07-07 Eric Weddington <eweddington@cso.atmel.com>
8464
8465 * config/avr/constraints.md (define_memory_constraint "Q"): Fix
8466 the constraint description.
8467 * doc/md.texi: Update documentation of AVR constraints.
8468
8469 2007-07-07 Kazu Hirata <kazu@codesourcery.com>
8470
8471 * auto-inc-dec.c, config/arm/arm.c,
8472 config/m32r/constraints.md, config/mips/mips.md,
8473 config/rs6000/rs6000.c, cselib.c, dce.c, df-core.c,
8474 df-problems.c, df-scan.c, df.h, dse.c, gimplify.c,
8475 tree-if-conv.c, tree-ssa-sccvn.c, tree-ssa.c: Fix comment
8476 typos. Follow spelling conventions.
8477 * doc/invoke.texi, doc/rtl.texi: Fix typos.
8478
8479 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
8480 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
8481
8482 * tree-ssa-operands.c (realloc_vop, realloc_vdef,
8483 realloc_vuse): Remove.
8484 * tree-ssa-operands.h: Remove the prototype for realloc_vdef
8485 and realloc_vuse.
8486
8487 2007-07-06 Daniel Berlin <dberlin@dberlin.org>
8488
8489 Fix PR tree-optimization/23488
8490
8491 * tree-ssa-sccvn.c (expr_has_constants): Handle tcc_declaration.
8492 (try_to_simplify): Ditto.
8493 (visit_use): Ditto.
8494 * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
8495 handles.
8496 * tree-flow-inline.h (get_value_handle): Ditto.
8497 * tree-ssa-pre.c (decl_vh_map): New.
8498 (decl_node_pool): New.
8499 (can_value_number_operation): Support DECL_P.
8500 (can_PRE_operation): Ditto.
8501 (create_expression_by_pieces): Ditto.
8502 (find_existing_value_expr): Modify to differnetiate between
8503 addressing and top level.
8504 (create_value_handle_for_expr): Handle DECL's.
8505 (poolify_tree): Ditto.
8506 (make_values_for_phi): Don't insert into PHI_GEN during FRE.
8507 (make_values_for_stmt): Handle DECL's properly.
8508 (init_pre): Reorg to not init useless things during FRE.
8509 (fini_pre): Ditto.
8510 * tree-flow.h: Include pointer-set.h.
8511 (decl_vh_map): Declare.
8512 * Makefile.in (TREE_FLOW_H): Add pointer-set.h
8513
8514 2007-07-06 Sandra Loosemore <sandra@codesourcery.com>
8515
8516 * c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
8517 apply to assembly language, too.
8518 * doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
8519
8520 2007-07-06 Ian Lance Taylor <iant@google.com>
8521 Zack Weinberg <zackw@panix.com>
8522
8523 PR middle-end/32441
8524 * builtins.c (std_expand_builtin_va_start): Don't use make_tree.
8525
8526 2007-07-06 Richard Sandiford <richard@codesourcery.com>
8527
8528 * config/sh/sh.md (*prefetch_i4): Disable for TARGET_VXWORKS_RTP.
8529 (prefetch): Likewise if "pref" would be used.
8530
8531 2007-07-06 Josh Conner <jconner@apple.com>
8532
8533 PR middle-end/32602
8534 PR middle-end/32603
8535 * calls.c (store_one_arg): Handle arguments which are partially
8536 on the stack when detecting argument overlap.
8537
8538 2007-07-06 Bernd Schmidt <bernd.schmidt@analog.com>
8539
8540 * reload1.c (choose_reload_regs): Set reload_spill_index for regs
8541 chosen during find_reloads.
8542
8543 2007-07-06 Richard Guenther <rguenther@suse.de>
8544
8545 * gimplify.c (gimplify_call_expr): Prefer DECL_ARGUMENTS over
8546 TYPE_ARG_TYPES for verification of argument types. Use
8547 DECL_ARG_TYPE instead of the PARM_DECL type. Take excess
8548 parameters as variable arguments.
8549
8550 2007-07-06 Andreas Krebbel <krebbel1@de.ibm.com>
8551
8552 * libgcc2.h (word_type): Type definition removed.
8553 (cmp_return_type, shift_count_type): Type definitions added.
8554 (__lshrdi3, __ashldi3, __ashrdi3): word_type of second parameter
8555 replaced with shift_count_type.
8556 (__cmpdi2, __ucmpdi2): word_type of return type replaced with
8557 cmp_return_type.
8558 * libgcc2.c (__udivmoddi4, __moddi3): Type of local variable c
8559 changed from word_type to Wtype.
8560 (__lshrdi3, __ashldi3, __ashrdi3): word_type of second parameter
8561 replaced with shift_count_type.
8562 (__cmpdi2, __ucmpdi2): word_type of return type replaced with
8563 cmp_return_type.
8564 * c-common.c (handle_mode_attribute): Handling for libgcc_cmp_return
8565 and libgcc_shift_count attribute added.
8566 * target-def.h (TARGET_LIBGCC_CMP_RETURN_MODE,
8567 TARGET_LIBGCC_SHIFT_COUNT_MODE): New target hooks defined.
8568 (TARGET_INITIALIZER): New target hooks added.
8569 * targhooks.c (default_libgcc_cmp_return_mode,
8570 default_libgcc_shift_count_mode): Default implementations for the new
8571 target hooks added.
8572 * targhooks.h (default_libgcc_cmp_return_mode,
8573 default_libgcc_shift_count_mode): Function prototypes added.
8574 * target.h (struct gcc_target): Fields for the new target hooks added.
8575 * optabs.c (expand_binop): Use shift_count_mode when expanding shift
8576 as library call.
8577 (prepare_cmp_insn): Use cmp_return_mode when expanding comparison as
8578 library call.
8579
8580 * doc/tm.texi (TARGET_LIBGCC_CMP_RETURN_MODE,
8581 TARGET_LIBGCC_SHIFT_COUNT_MODE): Documentation added.
8582
8583 * config/s390/s390.c (s390_libgcc_cmp_return_mode,
8584 s390_libgcc_shift_count_mode): Functions added.
8585 (TARGET_LIBGCC_CMP_RETURN_MODE, TARGET_LIBGCC_SHIFT_COUNT_MODE):
8586 Target hooks defined.
8587
8588 2007-07-06 Richard Sandiford <richard@codesourcery.com>
8589
8590 * config/mips/mips.c (compute_frame_size): Restore the original
8591 gp_sp_offset for !GENERATE_MIPS16E_SAVE_RESTORE and remove the
8592 fp_size term from the GENERATE_MIPS16E_SAVE_RESTORE calculation.
8593 Document why the difference is needed.
8594
8595 2007-07-06 Richard Guenther <rguenther@suse.de>
8596
8597 * c-common.c (boolean_increment): Use correctly typed
8598 constant.
8599
8600 2007-07-06 Richard Sandiford <richard@codesourcery.com>
8601
8602 * config/mips/mips.c (mips16e_save_restore_pattern_p): Check that
8603 the topmost argument register is not also included in the save mask.
8604 (mips16e_collect_argument_save_p): Take a pointer to the argument
8605 register, rather than a pointer to the number of arguments.
8606 (mips16e_collect_argument_saves): Only include argument saves
8607 that aren't in the register mask.
8608
8609 2007-07-06 Uros Bizjak <ubizjak@gmail.com>
8610
8611 PR rtl-optimization/32450
8612 * function.c (thread_prologue_and_epilogue_insns): Emit blockage insn
8613 to ensure that instructions are not moved into the prologue when
8614 profiling is on. Remove unused prologue_end variable.
8615 (expand_function_end): Emit blockage insn instead of ASM_INPUT rtx
8616 as a scheduling barrier.
8617
8618 2007-07-06 Alexandre Oliva <aoliva@redhat.com>
8619
8620 PR debug/23551
8621 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
8622 Disregard DECL_FROM_INLINE.
8623
8624 2007-07-05 Adam Nemet <anemet@caviumnetworks.com>
8625
8626 * rtlanal.c (num_sign_bit_copies1): Improve cases of ANDing or
8627 IORing with a constant.
8628
8629 2007-07-05 Seongbae Park <seongbae.park@gmail.com>
8630
8631 PR rtl-optimization/32475
8632 * df-scan.c (df_def_record_1): Add a use of the stack pointer
8633 for every definition of the stack pointer.
8634
8635 2007-07-05 Richard Earnshaw <rearnsha@arm.com>
8636
8637 * arm.c (vfp3_const_double_index): Copy signed results of
8638 REAL_VALUE_TO_INT into unsigned vars.
8639
8640 2007-07-05 Richard Guenther <rguenther@suse.de>
8641
8642 PR middle-end/32639
8643 * alias.c (get_alias_set): Tread METHOD_TYPE the same as
8644 FUNCTION_TYPE.
8645 * tree-ssa.c (useless_type_conversion_p): Check canonical
8646 types early.
8647
8648 2007-07-05 Anatoly Sokolov <aesok@post.ru>
8649
8650 * config/avr/avr.md (zero_extendqihi2, zero_extendqisi2,
8651 zero_extendhisi2): Change to define_insn_and_split.
8652 (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New.
8653
8654 2007-07-05 Paolo Bonzini <bonzini@gnu.org>
8655
8656 * function.c (match_asm_constraints_1, rest_of_match_asm_constraints,
8657 pass_match_asm_constraints): New.
8658 * passes.c (init_optimization_passes): Add new pass.
8659 * stmt.c (expand_asm_operands): Set cfun->has_asm_statement.
8660 * function.h (struct function): Add has_asm_statement bit.
8661 (current_function_has_asm_statement): New.
8662 * tree-pass.h (pass_match_asm_constraints): New.
8663
8664 2007-07-05 Richard Sandiford <rsandifo@nildram.co.uk>
8665
8666 * config/mips/mips.c (mips_file_start): Avoid declaration
8667 after code.
8668
8669 2007-07-05 Sandra Loosemore <sandra@codesourcery.com>
8670
8671 * optabs.c (expand_binop_directly): Fix signed/unsigned comparison.
8672
8673 2007-07-05 Uros Bizjak <ubizjak@gmail.com>
8674
8675 * rtl.def (NOTE): Change print format string to print
8676 operand 5 as a note insn name.
8677
8678 2007-07-05 Sandra Loosemore <sandra@codesourcery.com>
8679 David Ung <davidu@mips.com>
8680
8681 * config/mips/mips.c (mips_cpu_info): Add 4ksc and 4ksd processors.
8682 * doc/invoke.texi: (MIPS Options): Document them.
8683
8684 2007-07-05 Sandra Loosemore <sandra@codesourcery.com>
8685 David Ung <davidu@mips.com>
8686
8687 Add support for SmartMIPS ASE.
8688
8689 * optabs.c (expand_binop_directly): New, broken out from...
8690 (expand_binop): Here. Make it try rotating in the other
8691 direction even when the second operand isn't constant.
8692 * config/mips/mips.md (*lwxs): New.
8693 * config/mips/mips.opt (msmartmips): New.
8694 * config/mips/mips.c (mips_lwxs_address_p): New.
8695 (mips_rtx_costs): Make it recognize scaled indexed addressing.
8696 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
8697 __mips_smartmips when compiling for TARGET_SMARTMIPS.
8698 (ISA_HAS_ROR): Define for TARGET_SMARTMIPS.
8699 (ISA_HAS_LWXS): New.
8700 (ASM_SPEC): Add -msmartmips/-mno-smartmips.
8701 * doc/invoke.texi (MIPS Options): Document -msmartmips/-mno-smartmips.
8702 * testsuite/gcc.target/mips/smartmips-lwxs.c: New test case.
8703 * testsuite/gcc.target/mips/smartmips-ror-1.c: New test case.
8704 * testsuite/gcc.target/mips/smartmips-ror-2.c: New test case.
8705 * testsuite/gcc.target/mips/smartmips-ror-3.c: New test case.
8706 * testsuite/gcc.target/mips/smartmips-ror-4.c: New test case.
8707
8708 2007-07-05 Dorit Nuzman <dorit@il.ibm.com>
8709
8710 * tree-vectorizer.c (new_loop_vec_info): Initialize
8711 LOOP_VINFO_COST_MODEL_MIN_ITERS.
8712 * tree-vectorizer.h (_loop_vec_info): Added new filed
8713 min_profitable_iters.
8714 (LOOP_VINFO_COST_MODEL_MIN_ITERS): New access macro to above new field.
8715 (TARG_SCALAR_TO_VEC_COST): Define cost of scalar to vector operation.
8716 * tree-vect-analyze.c (vect_analyze_operations): Set
8717 LOOP_VINFO_COST_MODEL_MIN_ITERS.
8718 * tree-vect-transform.c (vect_estimate_min_profitable_iters): Use
8719 VEC_length to determine if there are any LOOP_VINFO_MAY_MISALIGN_STMTS.
8720 Fix calculation of peel_iters_prologue. Move consideration of epilogue
8721 and prologue cost to after they are computed.
8722 (vect_model_induction_cost): Use TARG_SCALAR_TO_VEC_COST instead of
8723 TARG_VEC_STMT_COST.
8724 (vect_model_simple_cost): Takes additional argument dt. Consider cost
8725 of creating vectors from scalars according to dt.
8726 (vect_model_store_cost): Likewise.
8727 (vectorizable_call): Use dt array instead of scalar dt. Call
8728 vect_model_simple_cost with additional argument dt.
8729 (vectorizable_assignment): Likewise.
8730 (vectorizable_operation): Likewise.
8731 (vectorizable_type_demotion): Likewise.
8732 (vectorizable_type_promotion): Likewise.
8733 (vectorizable_store): Use dt array instead of scalar dt. Call
8734 vect_model_store_cost with additional argument dt.
8735 (vect_do_peeling_for_loop_bound): Don't call
8736 vect_estimate_min_profitable_iters. Instead, lookup
8737 LOOP_VINFO_COST_MODEL_MIN_ITERS. Don't always print
8738 "may not be profitable".
8739
8740 2007-07-05 Dorit Nuzman <dorit@il.ibm.com>
8741
8742 PR testsuite/32014
8743 * config/rs6000/altivec.md (UNSPEC_VUPKHS_V4SF, UNSPEC_VUPKLS_V4SF):
8744 (UNSPEC_VUPKHU_V4SF, UNSPEC_VUPKLU_V4SF): New.
8745 (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi): New patterns.
8746 (vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): New patterns.
8747
8748 2007-07-05 Zdenek Dvorak <dvorakz@suse.cz>
8749
8750 * config/i386/i386.c (ix86_address_cost): Do not consider more complex
8751 addressing modes cheaper.
8752
8753 2007-07-05 Alexandre Oliva <aoliva@redhat.com>
8754
8755 * dwarf2out.c (dw_ranges_by_label_ref): New typedef.
8756 (dw_ranges_struct): Rename block_num to num. Adjust.
8757 (dw_ranges_by_label_struct): New.
8758 (ranges_by_label, ranges_by_label_allocated,
8759 ranges_by_label_in_use): New variables.
8760 (add_ranges_num): Factored most of the code out of...
8761 (add_ranges): ... this one. Rewrite in terms of the former.
8762 (add_ranges_by_labels): New.
8763 (output_ranges): Output by-label ranges.
8764 (dwarf2out_finish): Output range for multiple-section
8765 compile_unit. Output standard DW_AT_low_pc in addition to
8766 unexpected DW_AT_entry_pc.
8767
8768 2007-07-04 Daniel Berlin <dberlin@dberlin.org>
8769
8770 PR tree-optimization/32604
8771 PR tree-optimization/32606
8772
8773 * tree-ssa-pre.c (bb_bitmap_sets): Removed antic_safe_loads.
8774 (compute_antic_safe): Removed.
8775 (ANTIC_SAFE_LOADS): Ditto.
8776 (compute_antic_aux): Don't print ANTIC_SAFE_LOADS.
8777 (execute_pre): Don't call compute_antic_safe.
8778 (vuse_equiv): New function.
8779 (make_values_for_stmt): Use it
8780 * tree-ssa-sccvn.c (set_ssa_val_to): Remove assert, since it is
8781 not always true.
8782
8783 2007-07-04 Anatoly Sokolov <aesok@post.ru>
8784
8785 PR target/31331
8786 * config/avr/avr.c (avr_naked_function_p): Handle receiving a type
8787 rather than a decl.
8788 (avr_attribute_table): Make "naked" attribute apply to function types
8789 rather than to decls.
8790 (avr_handle_fntype_attribute): New function.
8791
8792 2007-07-04 Joseph Myers <joseph@codesourcery.com>
8793
8794 * target-def.h (TARGET_INITIALIZER): Remove trailing whitespace
8795 after \.
8796
8797 2007-07-04 David Ung <davidu@mips.com>
8798 Joseph Myers <joseph@codesourcery.com>
8799
8800 * config/mips/mips.md (type): Add logical, signext and move.
8801 (one_cmpl<mode>2, *and<mode>3, *and<mode>3_mips16, *ior<mode>3,
8802 *ior<mode>3_mips16, two unnamed insns after *ior<mode>3_mips16,
8803 *nor<mode>3, "Combiner patterns to optimize truncate/zero_extend
8804 combinations", *zero_extend<SHORT:mode><GPR:mode>2,
8805 *zero_extendqihi2, *extend<SHORT:mode><GPR:mode>2_mips16e,
8806 *extend<SHORT:mode><GPR:mode>2_se<SHORT:size>, *movdi_64bit,
8807 *movdi_64bit_mips16, *movsi_internal, *movsi_mips16, movcc,
8808 *movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16,
8809 *movsf_hardfloat, *movsf_softfloat, *movsf_mips16,
8810 *movdf_hardfloat_64bit, *movdf_hardfloat_32bit,
8811 movv2sf_hardfloat_64bit): Use the new types.
8812 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16,
8813 *movdf_softfloat, *movdf_mips16): Use "multi".
8814 (extendqihi2): Replace with a define_expand.
8815 (*extendqihi2_mips16e, *extendqihi2, *extendqihi2_seb): New.
8816 Based on extend<SHORT:mode><GPR:mode>2 patterns.
8817 * config/mips/74k.md (r74k_int_logical): New reservation and
8818 bypasses.
8819 (r74k_int_arith): Remove "slt".
8820 * config/mips/24k.md, config/mips/4130.md, config/mips/4k.md,
8821 config/mips/5400.md, config/mips/5500.md, config/mips/5k.md,
8822 config/mips/7000.md, config/mips/9000.md, config/mips/generic.md,
8823 config/mips/sb1.md, config/mips/sr71k.md: Add new types to
8824 reservations for "arith".
8825
8826 2007-07-04 Richard Guenther <rguenther@suse.de>
8827
8828 * tree-ssa.c (useless_type_conversion_p): Add handling for
8829 scalar float and vector types. Only call the types_compatible_p
8830 langhook for aggregate types as last resort. Follow the
8831 rules.
8832
8833 2007-07-04 Richard Guenther <rguenther@suse.de>
8834
8835 * tree-inline.c (estimate_num_insns_1): Treat CONVERT_EXPR
8836 the same as NOP_EXPR.
8837
8838 2007-07-04 Nick Clifton <nickc@redhat.com>
8839
8840 * target.h (struct gcc_target): Add target_help field.
8841 * target-def.h (TARGET_HELP): New.
8842 (TARGET_INITIALIZER): Use TARGET_HELP.
8843 * opts.c (command_handle_option): Invoke target_help function, if
8844 defined, when the user has specified --target-help on the command
8845 line.
8846 * doc/invoke.texi: Mention that --target-help might print
8847 additional information.
8848 * doc/tm.texi: Document TARGET_HELP hook.
8849
8850 * arm.c (TARGET_HELP): Override default definition.
8851 (arm_target_help): New - display a wrapped list of cores and
8852 architectures supported.
8853
8854 2007-07-04 Rask Ingemann Lambertsen <rask@sygehus.dk>
8855
8856 * config/v850/v850.c (expand_prologue): Make sure
8857 GEN_INT() argument is sign extended rather than zero extended.
8858 (expand_epilogue): Likewise.
8859 (output_move_double): Delete.
8860 * config/v850/v850-protos.h (output_move_double): Delete.
8861 * config/v850/v850.md (movdi): Delete.
8862 (*movdi_internal): Delete.
8863 (movdf): Delete.
8864 (*movdf_internal): Delete.
8865
8866 2007-07-04 Richard Sandiford <richard@codesourcery.com>
8867
8868 * config/sh/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Reject -mrelax
8869 unless compiling RTP PIC.
8870
8871 2007-07-04 Richard Guenther <rguenther@suse.de>
8872
8873 PR tree-optimization/32482
8874 * tree-ssa-ifcombine.c (recognize_single_bit_test): Use the
8875 original ssa name if we didn't find a shift expression.
8876 Fix shift constant for bit zero test.
8877
8878 2007-07-04 Richard Sandiford <richard@codesourcery.com>
8879
8880 * config/sh/lib1funcs.asm (ic_invalidate): Align constant pool.
8881
8882 2007-07-04 Richard Sandiford <richard@codesourcery.com>
8883
8884 * config.gcc (arm-wrs-vxworks): Don't include svr4.h.
8885 * config/vxworks.h (PTRDIFF_TYPE, SIZE_TYPE, TARGET_POSIX_IO): Define.
8886 * config/arm/vxworks.h (ASM_SPEC): Delete.
8887 (SUBTARGET_EXTRA_ASM_SPEC): Define.
8888
8889 2007-07-04 Sebastian Pop <sebpop@gmail.com>
8890
8891 * tree-data-ref.h (data_dependence_relation): New flag reversed_p.
8892 (DDR_REVERSED_P): New.
8893 * tree-data-ref.c (initialize_data_dependence_relation,
8894 build_classic_dist_vector): Set DDR_REVERSED_P.
8895
8896 2007-07-04 Sebastian Pop <sebpop@gmail.com>
8897
8898 PR middle-end/32457
8899 * tree-data-ref.c (analyze_siv_subscript_cst_affine,
8900 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
8901 init_omega_for_ddr_1): Use non conservative number of iterations
8902 estimations.
8903 (analyze_subscript_affine_affine): Use HOST_WIDE_INT instead of int.
8904 (analyze_siv_subscript): Remove FIXME and reinitialization of
8905 last_conflicts to chrec_dont_know.
8906 * testsuite/gfortran.dg/vect/pr32457.f90: New.
8907
8908 2007-07-04 Douglas Gregor <doug.gregor@gmail.com>
8909
8910 * tree.c (maybe_canonicalize_argtypes): Improve description.
8911
8912 2007-07-04 Douglas Gregor <doug.gregor@gmail.com>
8913
8914 * tree.c (maybe_canonicalize_argtypes): New.
8915 (build_function_type): Set canonical type.
8916 (build_method_type_directly): Ditto.
8917 (reconstruct_complex_type): Rebuild the METHOD_TYPE node
8918 properly.
8919
8920 2007-07-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
8921
8922 * tree-ssa-loop-ivopts.c (strip_offset_1): Treat POINTER_PLUS_EXPR
8923 like PLUS_EXPR.
8924 (rewrite_use_nonlinear_expr): Likewise.
8925
8926 2007-07-03 Seongbae Park <seongbae.park@gmail.com>
8927
8928 * rtl.def (UNSPEC, USE, CLOBBER): More comments.
8929
8930 2007-07-04 Ben Elliston <bje@au.ibm.com>
8931
8932 * dwarf2out.c: Move DWARF2 abbreviation glossary closer to the top
8933 of this file.
8934
8935 * c-objc-common.c (c_types_compatible_p): Fix indentation.
8936
8937 * doc/tm.texi (Run-time Target): Capitalise "CPU".
8938 (Exception Handling): Likewise.
8939
8940 2007-07-03 Jan Hubicka <jh@suse.cz>
8941
8942 * ifcvt.c (find_cond_trap): Avoid invalid RTL sharing.
8943
8944 2007-07-03 Eric Christopher <echristo@apple.com>
8945
8946 * doc/cppopts.texi: Add conflicting option note to -dM.
8947 * doc/invoke.texi: Add note about possible conflicts with
8948 -E for -dCHARS and note that -dM will not produce
8949 any results if there is no machine dependent reorg.
8950
8951 2007-07-03 Geoffrey Keating <geoffk@apple.com>
8952
8953 * tree.h (DECL_ALIGN): Back out previous change.
8954
8955 2007-07-03 Joseph Myers <joseph@codesourcery.com>
8956
8957 * configure.ac: Test for .dtprelword support on MIPS.
8958 * configure, config.in: Regenerate.
8959 * config/mips/mips.c (mips_output_dwarf_dtprel): New.
8960 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
8961
8962 2007-07-03 Julian Brown <julian@codesourcery.com>
8963
8964 * config.gcc (with_fpu): Allow --with-fpu=vfp3.
8965 * config/arm/aout.h (REGISTER_NAMES): Add D16-D31.
8966 * config/arm/aof.h (REGISTER_NAMES): Add D16-D31.
8967 * config/arm/arm.c (FL_VFPV3): New flag for VFPv3 processor
8968 capability.
8969 (all_fpus): Add FPUTYPE_VFP3.
8970 (fp_model_for_fpu): Add VFPv3 field.
8971 (arm_rtx_costs_1): Give cost to VFPv3 constants.
8972 (vfp3_const_double_index): New function. Return integer index of
8973 VFPv3 constant suitable for fconst[sd] insns, or -1 if constant
8974 isn't suitable.
8975 (vfp3_const_double_rtx): New function. True if VFPv3 is enabled
8976 and argument represents a valid RTX for a VFPv3 constant.
8977 (vfp_output_fldmd): Split fldmd with > 16 registers in the list into
8978 two instructions.
8979 (vfp_emit_fstmd): Similar, for fstmd.
8980 (arm_print_operand): Implement new code 'G' for VFPv3 floating-point
8981 constants, represented as integer indices.
8982 (arm_hard_regno_mode_ok): Use VFP_REGNO_OK_FOR_SINGLE,
8983 VFP_REGNO_OK_FOR_DOUBLE macros.
8984 (arm_regno_class): Handle VFPv3 d0-d7, low, high register split.
8985 (arm_file_start): Set float-abi attribute for VFPv3, and output
8986 correct ".fpu" assembler directive.
8987 (arm_dbx_register_numbering): Add FIXME.
8988 * config/arm/arm.h (TARGET_VFP3): New macro. Target supports VFPv3.
8989 (fputype): Add FPUTYPE_VFP3.
8990 (FIXED_REGISTERS): Add 32 registers for D16-D31.
8991 (CALL_USED_REGISTERS): Likewise.
8992 (CONDITIONAL_REGISTER_USAGE): Add note about conditional definition
8993 of LAST_VFP_REGNUM. Make D16-D31 caller-saved, if present.
8994 (LAST_VFP_REGNUM): Extend available VFP registers for VFPv3.
8995 (D7_VFP_REGNUM): New.
8996 (LAST_LO_VFP_REGNUM, FIRST_HI_VFP_REGNUM, LAST_HI_VFP_REGNUM)
8997 (VFP_REGNO_OK_FOR_SINGLE, VFP_REGNO_OK_FOR_SINGLE)
8998 (VFP_REGNO_OK_FOR_DOUBLE): Define new macros.
8999 (FIRST_PSEUDO_REGISTER): Shift up to 128 to accommodate VFPv3.
9000 (REG_ALLOC_ORDER): Adjust for VFPv3.
9001 (reg_class): Add VFP_D0_D7_REGS, VFP_LO_REGS, VFP_HI_REGS.
9002 (REG_CLASS_NAMES): Add entries corresponding to VFP_D0_D7_REGS,
9003 VFP_LO_REGS, VFP_HI_REGS.
9004 (REG_CLASS_CONTENTS): Likewise. Extend contents for VFP_REGS.
9005 (IS_VFP_CLASS): Define macro.
9006 (SECONDARY_OUTPUT_RELOAD_CLASS, SECONDARY_INPUT_RELOAD_CLASS): Use
9007 IS_VFP_CLASS.
9008 (REGISTER_MOVE_COST): Likewise.
9009 * config/arm/arm-protos.h (vfp3_const_double_rtx): Add prototype.
9010 * config/arm/vfp.md (VFPCC_REGNUM): Redefine as 127.
9011 (*arm_movsi_vfp, *thumb2_movsi_vfp, *movsfcc_vfp)
9012 (*thumb2_movsfcc_vfp, *abssf2_vfp, *negsf2_vfp, *addsf3_vfp)
9013 (*subsf3_vfp, *divsf_vfp, *mulsf_vfp, *mulsf3negsf_vfp)
9014 (*mulsf3addsf_vfp, *mulsf3subsf_vfp, *mulsf3negsfaddsf_vfp)
9015 (*extendsfdf2_vfp, *truncdfsf2_vfp, *truncsisf2_vfp)
9016 (*truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2)
9017 (*floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2)
9018 (floatunssidf2, *sqrtsf2_vfp, *cmpsf_split_vfp)
9019 (*cmpsf_trap_split_vfp, *cmpsf_vfp, *cmpsf_trap_vfp): Use 't'
9020 where appropriate for single-word registers.
9021 (*movsf_vfp, *thumb2_movsf_vfp, *movdf_vfp, *thumb2_movdf_vfp):
9022 As above. Fix type attributes.
9023 * config/arm/constraints.md (register_contraint "t"): Define.
9024 (register_constraint "w"): Change to D0-D15, or D0-D31 for
9025 VFPv3/NEON.
9026 (register_constraint "x"): Define.
9027 (constraint "Dv"): Define.
9028
9029 2007-07-03 Geoffrey Keating <geoffk@apple.com>
9030
9031 * tree.h (DECL_ALIGN): Prevent use on a FUNCTION_DECL.
9032
9033 2007-07-03 Tom Tromey <tromey@redhat.com>
9034
9035 * c-parser.c (objc_pq_context): Removed.
9036 (objc_need_raw_identifier): Likewise.
9037 (c_parser) <objc_pq_context>: New field.
9038 <objc_need_raw_identifier>: Likewise.
9039 (OBJC_NEED_RAW_IDENTIFIER): Removed.
9040 (c_lex_one_token): Update.
9041 (c_parser_objc_protocol_definition): Update.
9042 (c_parser_objc_method_definition): Update.
9043 (c_parser_objc_methodproto): Update.
9044 (c_parser_declspecs): Update.
9045
9046 2007-07-03 David Ung <davidu@mips.com>
9047
9048 * config/mips/mips.c (mips_issue_rate): Return 4 for 74K processors.
9049
9050 2007-07-03 David Ung <davidu@mips.com>
9051 Richard Sandiford <richard@codesourcery.com>
9052
9053 * doc/invoke.texi: Document -march=74kf3_2.
9054 * config/mips/mips.h (PROCESSOR_74KF3_2): New processor_type.
9055 (TUNE_74K): Check for it.
9056 * config/mips/mips.c (mips_cpu_info): Add 74kf3_2.
9057 (mips_rtx_cost_data): Add an entry for PROCESSOR_74KF3_2.
9058 * config/mips/mips.md (cpu): Add 74kf3_2.
9059 * config/mips/74k.md (r74k_int_logical, r74k_int_arith, r74k_int_nop)
9060 (r74k_int_cmove, r74k_int_mult, r74k_int_mul3, r74k_int_mfhilo)
9061 (r74k_int_mthilo, r74k_int_div, r74k_int_call, r74k_int_jump)
9062 (r74k_int_load, r74k_int_store, r74k_unknown, r74k_multi): Add
9063 74kf3_2 to the CPU list.
9064 (r74kf3_2_fadd, r74kf3_2_fmove, r74kf3_2_fload, r74kf3_2_fstore)
9065 (r74kf3_2_fmul_sf, r74kf3_2_fmul_df, r74kf3_2_fdiv_sf)
9066 (r74kf3_2_fdiv_df, r74kf3_2_frsqrt_sf, r74kf3_2_frsqrt_df)
9067 (r74kf3_2_fcmp, r74kf3_2_fcvt, r74kf3_2_fxfer_to_c1)
9068 (r74kf3_2_fxfer_from_c1): New insn reservations.
9069
9070 2007-07-03 Richard Sandiford <richard@codesourcery.com>
9071 David Ung <davidu@mips.com>
9072
9073 * doc/invoke.texi: Replace -march=24kf with -march=24kf2_1 and
9074 -march=24kx with -march=24kf1_1. Likewise 24ke[fx], 34k[fx]
9075 and 74k[fx]. Document aliases for the new options.
9076 * config/mips/mips.h (PROCESSOR_24KF): Rename to...
9077 (PROCESSOR_24KF2_1): ...this.
9078 (PROCESSOR_24KX): Rename to...
9079 (PROCESSOR_24KF1_1): ...this.
9080 (PROCESSOR_74KF): Rename to...
9081 (PROCESSOR_74KF2_1): ...this.
9082 (PROCESSOR_74KX): Rename to...
9083 (PROCESSOR_74KF1_1): ...this.
9084 (TUNE_74K): Update PROCESSOR_* names.
9085 * config/mips/mips.c (mips_cpu_info): Add 24kf2_1 as a synonym
9086 for 24kf. Add 24kf1_1 and 24kfx as synonyms for 24kx. Likewise
9087 the 24ke*, 34k* and 74k* processors. Update PROCESSOR_* names.
9088 (mips_rtx_cost_data): Update processor names in comments.
9089 (mips_issue_rate): Update PROCESSOR_* names.
9090 * config/mips/mips.md (cpu): Rename 24kf to 24kf2_1, 24kx to
9091 24kf1_1, 74kf to 74kf2_1 and 74kx to 74kf1_1.
9092 * config/mips/24k.md: Rename FPU-related r24k_* insn reservations
9093 to r24kf2_1_*. Rename r24kx_* insn reservations to r24kf1_1_*.
9094 Update cpu attribute names.
9095 (r24k_fpu_iss): Rename this reservation to...
9096 (r24kf2_1_fpu_iss): ...this and update all uses.
9097 (r24kx_fpu_iss): Rename this reservation to...
9098 (r24kf1_1_fpu_iss): ...this and update all uses.
9099 * config/mips/74k.md: Rename FPU-related r74kf_* insn reservations
9100 to r74kf2_1_*. Rename r74kx_* insn reservations to r74kf1_1_*.
9101 Update cpu attribute names.
9102
9103 2007-07-01 Kaz Kojima <kkojima@gcc.gnu.org>
9104
9105 * config/m32r/constraints.md: New file.
9106 * config/m32r/m32r.c: Include tm-constrs.h.
9107 (small_data_operand): Use satisfies_constraint_* instead of macro.
9108 (addr24_operand, gen_compare): Likewise.
9109 * config/m32r/m32r.h (REG_CLASS_FROM_LETTER): Remove.
9110 (INT8_P, UPPER16_P, UINT32_P, UINT5_P, INVERTED_SIGNED_8BIT,
9111 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
9112 EXTRA_CONSTRAINT): Likewise.
9113 * config/m32r/m32r.md: Include constraints.md.
9114 (*movsi_insn): Use satisfies_constraint_* instead of macro.
9115 (andsi3, iorsi3, xorsi3, seq_insn+1, sne): Likewise.
9116 * config/m32r/predicates.md (conditional_move_operand): Likewise.
9117 (two_insn_const_operand, int8_operand, uint16_operand,
9118 reg_or_int16_operand, reg_or_uint16_operand,
9119 reg_or_cmp_int16_operand, cmp_int16_operand,
9120 seth_add3_operand): Likewise.
9121
9122 2007-07-03 Eric Christopher <echristo@gmail.com>
9123
9124 * libgcc2.h: Conditionally declare __bswapsi2 and
9125 __bswapdi2.
9126
9127 2007-07-03 H.J. Lu <hongjiu.lu@intel.com>
9128
9129 * ddg.c (check_sccs): Define only if ENABLE_CHECKING is
9130 defined.
9131
9132 2007-07-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9133
9134 PR target/28307
9135 * gthr-posix.h [SUPPORTS_WEAK && GTHREAD_USE_WEAK]
9136 (__gthrw_pragma): Provide default definition.
9137 (__gthrw2): Use it.
9138 * gthr-posix.c (__gthrw_pragma): Define.
9139
9140 2007-07-03 Daniel Berlin <dberlin@dberlin.org>
9141
9142 * tree-ssa-sccvn.c (set_ssa_val_to): Check for operand_equal_p
9143 before declaring inequality.
9144
9145 2007-07-03 Rask Ingemann Lambertsen <rask@sygehus.dk>
9146
9147 * combine.c (recog_for_combine): Log the success or failure of
9148 matching new insn patterns against the machine description in
9149 detailed dumps.
9150
9151 2007-07-03 Revital Eres <eres@il.ibm.com>
9152
9153 * ddg.c (print_sccs): New function.
9154 (check_sccs): New function.
9155 (create_ddg_all_sccs): Use it.
9156 * ddg.h (print_sccs): Declare.
9157 * modulo-sched.c (sms_order_nodes): Call print_sccs.
9158
9159 2007-07-03 Uros Bizjak <ubizjak@gmail.com>
9160
9161 * targhooks.h (default_mode_for_suffix): New function declaration.
9162 * targhooks.c (default_mode_for_suffix): New default target hook.
9163 * target.h (struct c): New structure in the targetm struct.
9164 (mode_for_suffix): New target hook as part of struct c.
9165 target-def.h (TARGET_C_MODE_FOR_SUFFIX): Define as
9166 default_mode_for_suffix.
9167 (TARGET_C): New define.
9168 * c-lex.c: Include "target.h".
9169 (interpret_float): Use targetm.c.mode_for_suffix to determine
9170 the mode for a given non-standard suffix.
9171 Makefile.in (c-lex.o): Depend on $(TARGET_H).
9172
9173 * config/i386/i386.c (ix86_c_mode_for_suffix): New static function.
9174 (TARGET_C_MODE_FOR_SUFFIX): Define to ix86_c_mode_for_suffix.
9175
9176 * doc/extend.texi (Floating Types): New node. Document __float80 and
9177 __float128 types. Document 'w', 'W', 'q' and 'Q' suffixes.
9178
9179 2007-07-03 Kaz Kojima <kkojima@gcc.gnu.org>
9180
9181 PR target/32506
9182 * config/sh/sh.md (udivsi3_i1_media): Use target_reg_operand
9183 predicate instead of target_operand.
9184 (divsi3_i1_media, divsi3_media_2): Likewise.
9185
9186 2007-07-02 Eric Botcazou <ebotcazou@adacore.com>
9187
9188 * tree.h (alias_sets_might_conflict_p): Rename into
9189 alias_sets_must_conflict_p.
9190 * alias.c (alias_sets_might_conflict_p): Likewise.
9191 (alias_sets_conflict_p): Use it.
9192 (objects_must_conflict_p): Likewise.
9193 * c-common.c (strict_aliasing_warning): Adjust.
9194
9195 2007-07-02 Andrew Pinski <andrew_pinski@playstation.sony.com>
9196
9197 * rtlhooks.c (gen_lowpart_if_possible): Check for
9198 invalid subreg before calling gen_lowpart_SUBREG.
9199
9200 2007-07-02 Geoffrey Keating <geoffk@apple.com>
9201
9202 * config/darwin9.h: Add copyright notice.
9203 (LINK_COMMAND_SPEC): Add comment.
9204 (DARWIN_LIBSYSTEM_HAS_UNWIND): Define.
9205 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Conditionalise on
9206 DARWIN_LIBSYSTEM_HAS_UNWIND.
9207
9208 2007-07-02 Jakub Jelinek <jakub@redhat.com>
9209
9210 PR libgomp/32468
9211 * omp-low.c (check_combined_parallel): New function.
9212 (lower_omp_parallel): Call it via walk_stmts, set
9213 OMP_PARALLEL_COMBINED if appropriate.
9214 (determine_parallel_type): If OMP_FOR resp. OMP_SECTIONS
9215 isn't the only statement in WS_ENTRY_BB or OMP_RETURN
9216 the only one in PAR_EXIT_BB and not OMP_PARALLEL_COMBINED,
9217 don't consider it as combined parallel.
9218
9219 2007-07-02 Richard Sandiford <richard@codesourcery.com>
9220
9221 * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
9222 (gcc_tooldir): Likewise.
9223 * configure: Regenerate.
9224 * Makefile.in (libsubdir_to_prefix): New variable, based on the
9225 old configure.ac gcc_tooldir setting.
9226 (prefix_to_exec_prefix): New variable.
9227 (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
9228 rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
9229
9230 2007-07-02 Daniel Berlin <dberlin@dberlin.org>
9231
9232 Fix PR tree-optimization/32583
9233 Fix PR tree-optimization/32584
9234 * tree-ssa-pre.c (phi_translate): Always pass seen bitmap.
9235 (phi_translate_set): Use phi_translate directly now.
9236 (make_values_for_stmt): Don't value number RHS if we already know
9237 it is constant.
9238
9239 2007-07-02 Steve Ellcey <sje@cup.hp.com>
9240 Jim Wilson <wilson@specifix.com>
9241
9242 PR target/31684
9243 * haifa-sched.c (add_to_speculative_block): Change copy_rtx to
9244 copy_insn.
9245
9246 2007-07-02 Sandra Loosemore <sandra@codesourcery.com>
9247 Richard Sandiford <richard@codesourcery.com>
9248 Nigel Stephens <nigel@mips.com>
9249
9250 * config/mips/mips-protos.h (mips16e_save_restore_info): New struct.
9251 (mips16e_output_save_restore): Declare.
9252 (mips16e_save_restore_pattern_p): Likewise.
9253 * config/mips/mips.h (GENERATE_MIPS16E_SAVE_RESTORE): New macro.
9254 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Return 0x7f8
9255 for GENERATE_MIPS16E_SAVE_RESTORE. Return 0x400 for TARGET_MIPS16
9256 && !GENERATE_MIPS16E_SAVE_RESTORE && !TARGET_64BIT.
9257 (BITSET_P): New global macro, extracted from...
9258 (mips_for_each_saved_reg): ...here.
9259 (mips16e_save_restore_info): New struct.
9260 (mips16e_s2_s8_regs, mips16e_a0_a3_regs): New variables.
9261 (mips16e_save_restore_regs): New variable.
9262 (mips_split_plus, mips16e_find_first_register): New functions.
9263 (mips16e_mask_registers): New function.
9264 (compute_frame_size): Expand the commentary before the function.
9265 Enforce the MIPS16e save and restore register range restrictions.
9266 Pad the general register save area at the low end.
9267 (mips16e_save_restore_reg, mips16e_build_save_restore)
9268 (mips16e_save_restore_pattern_p, mips16e_add_register_range)
9269 (mips16e_output_save_restore, mips16e_collect_propagate_value)
9270 (mips16e_collect_argument_save, mips16e_collect_argument_saves):
9271 New functions.
9272 (mips_expand_prologue, mips_expand_epilogue): Handle
9273 GENERATE_MIPS16E_SAVE_RESTORE.
9274 * config/mips/mips.md (*mips16e_save_restore): New pattern.
9275
9276 2007-07-02 Uros Bizjak <ubizjak@gmail.com>
9277
9278 PR tree-optimization/31966
9279 PR tree-optimization/32533
9280 * tree-if-conv.c (add_to_dst_predicate_list): Use "edge", not
9281 "basic_block" description as its third argument. Update function
9282 calls to get destination bb from "edge" argument. Save "cond" into
9283 aux field of the edge. Update prototype for changed arguments.
9284 (if_convertible_loop_p): Clear aux field of incoming edges if bb
9285 contains phi node.
9286 (find_phi_replacement_condition): Operate on incoming edges, not
9287 on predecessor blocks. If there is a condition saved in the
9288 incoming edge aux field, AND it with incoming bb predicate.
9289 Return source bb of the first edge.
9290 (clean_predicate_lists): Clean aux field of outgoing node edges.
9291 (tree_if_conversion): Do not initialize cond variable. Move
9292 variable declaration into the loop.
9293 (replace_phi_with_cond_gimple_modify_stmt): Remove unneded
9294 initializations of new_stmt, arg0 and arg1 variables.
9295
9296 2007-07-02 Jakub Jelinek <jakub@redhat.com>
9297
9298 * tree-nrv.c (dest_safe_for_nrv_p): Grok any handled_component_p,
9299 SSA_NAMEs, RESULT_DECLs and PARM_DECLs.
9300
9301 2007-07-02 Richard Guenther <rguenther@suse.de>
9302
9303 * tree-ssa.c (useless_type_conversion_p): Document
9304 future intent as defining the middle-end type system.
9305 Re-structure to call langhook last, group by type class,
9306 mark questionable parts.
9307
9308 2007-07-02 Richard Guenther <rguenther@suse.de>
9309
9310 * tree-flow.h (types_compatible_p): Declare.
9311 * tree-ssa.c (types_compatible_p): New function.
9312 * ipa-type-escape.c (discover_unique_type): Use
9313 types_compatible_p instead of lang_hooks.types_compatible_p.
9314 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
9315 * tree-vn.c (expressions_equal_p): Likewise.
9316 * tree.c (fields_compatible_p): Likewise.
9317 * tree-ssa-dom.c (avail_expr_eq): Likewise.
9318 (cprop_operand): Use useless_type_conversion_p instead of
9319 lang_hooks.types_compatible_p.
9320 * tree-inline.c (setup_one_parameter): Likewise.
9321 (declare_return_variable): Likewise.
9322 * tree-nrv.c (tree_nrv): Likewise.
9323 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
9324 (maybe_fold_offset_to_component_ref): Likewise.
9325 (maybe_fold_offset_to_reference): Likewise.
9326 * tree-ssa-copy.c (may_propagate_copy): Likewise.
9327 (merge_alias_info): Likewise.
9328 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
9329 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
9330 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
9331 * tree-tailcall.c (find_tail_calls): Likewise.
9332 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
9333 * gimplify.c (canonicalize_addr_expr): Likewise.
9334 (fold_indirect_ref_rhs): Likewise.
9335 (gimplify_addr_expr): Likewise. Swap parameters to cpt_same_type.
9336 (cpt_same_type): Likewise.
9337 (check_pointer_types_r): Swap parameters to cpt_same_type
9338 where appropriate.
9339 * fold-const.c (fold_convert): Revert fix for PR15988.
9340 * tree-inline.c (setup_one_parameter): Instead fix it here by
9341 using fold_build1 instead of fold_convert and checking for
9342 error_mark_node. Convert only if the conversion is necessary.
9343
9344 2007-07-02 Joseph Myers <joseph@codesourcery.com>
9345
9346 * configure.ac: Check for .gnu_attribute on Power.
9347 * configure: Regenerate.
9348 * config/rs6000/rs6000.c (rs6000_file_start): If supported, output
9349 attribute for floating-point ABI.
9350
9351 2007-07-02 Ira Rosen <irar@il.ibm.com>
9352
9353 PR tree-optimization/32230
9354 PR tree-optimization/32477
9355 * tree-vect-analyze.c (vect_analyze_data_refs): Fail if base
9356 address is a constant.
9357
9358 2007-07-02 Richard Sandiford <richard@codesourcery.com>
9359
9360 * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*)
9361 (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*)
9362 (mipsisa64-*-elf*, mipsisa64el-*-elf*): Combine top-level
9363 stanzas. Use the first part of the triplet to set MIPS_ISA_DEFAULT.
9364 Remove redundant setting of MASK_FLOAT64 and MASK_64BIT for the
9365 64-bit targets. Add support for *-elfoabi*.
9366 * config/mips/t-isa3264 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Use
9367 different settings if $(tm_defines) does not select the EABI.
9368 (MULTILIB_EXCLUSIONS): Define in those circumstances.
9369 * config/mips/mips.h (MIPS_ISA_LEVEL_OPTION_SPEC): New macro.
9370 (MIPS_ARCH_OPTION_SPEC): Likewise.
9371 (MIPS_ISA_LEVEL_SPEC): Likewise.
9372 (OPTION_DEFAULT_SPECS): Use MIPS_ARCH_OPTION_SPEC.
9373 * config/mips/elfoabi.h: New file.
9374
9375 2007-07-02 Richard Guenther <rguenther@suse.de>
9376
9377 * tree-flow.h (tree_ssa_useless_type_conversion_1): Rename to ...
9378 (useless_type_conversion_p): ... this.
9379 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Rename to ...
9380 (useless_type_conversion_p): ... this.
9381 * builtins.c (fold_builtin_memory_op): Rename
9382 tree_ssa_useless_type_conversion_1 to useless_type_conversion_p.
9383 * tree-cfg.c (verify_expr): Likewise.
9384 * tree-ssa-address.c (tree_ssa_useless_type_conversion_1): Likewise.
9385 * tree-ssa-ccp.c (ccp_fold): Likewise.
9386 * tree-ssa-copy.c (may_propagate_copy): Likewise.
9387 * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
9388 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
9389 * tree-ssa-loop-niter.c (refine_bounds_using_guard): Likewise.
9390 * tree-ssa-pre.c (eliminate): Likewise.
9391 * tree-ssa.c (delete_tree_ssa): Likewise.
9392 (tree_ssa_useless_type_conversion): Likewise.
9393 * tree.c (build2_stat): Likewise.
9394
9395 2007-07-01 Daniel Berlin <dberlin@dberlin.org>
9396
9397 Fix PR tree-optimization/32571
9398 * tree-ssa-sccvn.c (visit_use): Shortcut copies to avoid
9399 simplifying them.
9400
9401 2007-07-01 Daniel Berlin <dberlin@dberlin.org>
9402
9403 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle constants
9404 and other expected operations explicitly, change default to
9405 gcc_unreachable.
9406
9407 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
9408
9409 * config/arm/arm.c (arm_cannot_copy_insn_p): Do not expect a
9410 PARALLEL.
9411 * config/arm/arm.md (pic_add_dot_plus_four, pic_add_dot_plus_eight)
9412 (tls_load_dot_plus_eight): Move the label number into the unspec.
9413 * config/arm/thumb2.md (pic_load_dot_plus_four): Likewise.
9414
9415 2007-07-01 Andreas Schwab <schwab@suse.de>
9416
9417 * dwarf2out.c (initial_return_save): Define only if used.
9418
9419 2007-07-01 Kenneth Zadeck <zadeck@naturalbridge.com>
9420
9421 Unreverting Richard's Revert of:
9422
9423 2007-06-27 Richard Sandiford <richard@codesourcery.com>
9424
9425 * dce.c (deletable_insn_p_1): New function, split out from...
9426 (deletable_insn_p): ...here. Only treat bare USEs and CLOBBERs
9427 specially, not those inside PARALLELs. Remove BODY argument
9428 and adjust recursive call accordingly.
9429 (prescan_insns_for_dce): Update call to delete_insn_p.
9430
9431 2007-07-01 Vladimir Yanovsky <yanov@il.ibm.com>
9432 Revital Eres <eres@il.ibm.com>
9433
9434 * ddg.c (create_ddg_all_sccs): Fix missed
9435 initialization of scc_nodes.
9436
9437 2007-07-01 Uros Bizjak <ubizjak@gmail.com>
9438
9439 PR middle-end/32559
9440 * fold-const.c (fold-binary) [PLUS_EXPR]: Convert ~X + X to 1 or
9441 X + ~X to 1 only for INTEGRAL_TYPE_P type.
9442
9443 2007-06-30 Joseph Myers <joseph@codesourcery.com>
9444
9445 * configure.ac: Check for .gnu_attribute on MIPS.
9446 * configure, config.in: Regenerate.
9447 * config/mips/mips.c (mips_file_start): If supported, output
9448 attribute for floating-point ABI.
9449
9450 2007-06-30 Uros Bizjak <ubizjak@gmail.com>
9451
9452 PR target/32433
9453 * config/i386/i386.md (ffssi2): Expand as ffs_cmove for TARGET_CMOVE.
9454 (ffs_cmove): New expander to expand using ctz pattern.
9455 (*ffs_cmove): Remove pattern.
9456 (*ffs_no_cmove): Enable only for !TARGET_CMOVE.
9457 (ffsdi2): Expand using ctz pattern.
9458 (*ffs_rex64): Remove pattern.
9459
9460 2007-06-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9461
9462 PR rtl-optimization/32296
9463 * pa.md (return): Delete pattern.
9464 (return_internal): Remove "(const_int 1)" from pattern.
9465 (epilogue): Use return_internal pattern for trivial returns.
9466 * pa-protos.h (hppa_can_use_return_insn_p): Delete declaration.
9467 * pa.c (hppa_can_use_return_insn_p): Delete function. Include "df.h".
9468
9469 2007-06-30 Daniel Berlin <dberlin@dberlin.org>
9470
9471 * tree-ssa-pre.c (is_exception_related): New function
9472 (can_value_number_operation): Use it.
9473
9474 2007-06-30 Daniel Berlin <dberlin@dberlin.org>
9475
9476 Fix PR tree-optimization/32540
9477 Fix PR tree-optimization/31651
9478
9479 * tree-ssa-sccvn.c: New file.
9480
9481 * tree-ssa-sccvn.h: Ditto.
9482
9483 * tree-vn.c: Include tree-ssa-sccvn.h
9484 (val_expr_paid_d): Removed.
9485 (value_table): Ditto.
9486 (vn_compute): Ditto.
9487 (val_expr_pair_hash): Ditto.
9488 (val_expr_pair_expr_eq): Ditto.
9489 (copy_vuses_from_stmt): Ditto.
9490 (vn_delete): Ditto.
9491 (vn_init): Ditto.
9492 (shared_vuses_from_stmt): Ditto.
9493 (print_creation_to_file): Moved up.
9494 (sort_vuses): Ditto.
9495 (sort_vuses_heap): Ditto.
9496 (set_value_handle): Make non-static.
9497 (make_value_handle): Ditto.
9498 (vn_add): Rewritten to use sccvn lookups.
9499 (vn_add_with_vuses): Ditto.
9500 (vn_lookup): Ditto (and second argument removed).
9501 (vn_lookup_with_vuses): Ditto.
9502 (vn_lookup_or_add): Ditto (and second argument removed);
9503 (vn_lookup_or_add_with_vuses): Ditto.
9504 (vn_lookup_with_stmt): New.
9505 (vn_lookup_or_add_with_stmt): Ditto.
9506 (create_value_handle_for_expr): Ditto.
9507
9508 * tree-ssa-pre.c: Include tree-ssa-sccvn.h.
9509 (seen_during_translate): New function.
9510 (phi_trans_lookup): Use iterative_hash_expr, not vn_compute.
9511 (phi_trans_add): Ditto.
9512 (constant_expr_p): FIELD_DECL is always constant.
9513 (phi_translate_1): Renamed from phi_translate, add seen bitmap.
9514 Use constant_expr_p.
9515 Avoid infinite recursion on mutually valued expressions.
9516 Change callers of vn_lookup_or_add.
9517 (phi_translate): New function.
9518 (compute_antic_safe): Allow phi nodes.
9519 (create_component_ref_by_pieces): Update for FIELD_DECL change.
9520 (find_or_generate_expression): Rewrite slightly.
9521 (create_expression_by_pieces): Updated for vn_lookup_or_add
9522 change.
9523 Update VN_INFO for new names.
9524 (insert_into_preds_of_block): Update for new names.
9525 (add_to_exp_gen): New function.
9526 (add_to_sets): Use vn_lookup_or_add_with_stmt.
9527 (find_existing_value_expr): Rewrite to changed vn_lookup.
9528 (create_value_expr_from): Ditto, and use add_to_exp_gen.
9529 (try_look_through_load): Removed.
9530 (try_combine_conversion): Ditto.
9531 (get_sccvn_value): New function.
9532 (make_values_for_phi): Ditto.
9533 (make_values_for_stmt): Ditto.
9534 (compute_avail): Rewritten for vn_lookup_or_add changes and to use
9535 SCCVN.
9536 (init_pre): Update for SCCVN changes.
9537 (fini_pre): Ditto.
9538 (execute_pre): Ditto.
9539
9540 * tree-flow.h (make_value_handle): Declare.
9541 (set_value_handle): Ditto.
9542 (sort_vuses_heap): Ditto.
9543 (vn_lookup_or_add_with_stmt): Ditto.
9544 (vn_lookup_with_stmt): Ditto.
9545 (vn_compute): Remove.
9546 (vn_init): Ditto.
9547 (vn_delete): Ditto.
9548 (vn_lookup): Update arguments.
9549
9550 * Makefile.in (tree-ssa-pre.o): Add tree-ssa-sccvn.h
9551 (tree-vn.o): Ditto.
9552 (tree-ssa-sccvn.o): New.
9553 (OBJS-common): Add tree-ssa-sccvn.o
9554
9555 2007-06-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9556
9557 PR c/4076
9558 * c-typeck.c (build_external_ref): Don't mark as used if called
9559 from itself.
9560 * calls.c (rtx_for_function_call): Likewise.
9561
9562 2007-06-30 Richard Sandiford <richard@codesourcery.com>
9563
9564 Revert:
9565
9566 2007-06-27 Richard Sandiford <richard@codesourcery.com>
9567
9568 * dce.c (deletable_insn_p_1): New function, split out from...
9569 (deletable_insn_p): ...here. Only treat bare USEs and CLOBBERs
9570 specially, not those inside PARALLELs. Remove BODY argument
9571 and adjust recursive call accordingly.
9572 (prescan_insns_for_dce): Update call to delete_insn_p.
9573
9574 2007-06-30 Rask Ingemann Lambertsen <rask@sygehus.dk>
9575
9576 * combine.c (combine_validate_cost): New parameter NEWOTHERPAT.
9577 (try_combine): Move potential calls to undo_all() so they happen
9578 before we commit to using the combined insns.
9579
9580 2006-06-30 Jan Hubicka <jh@suse.cz>
9581
9582 * loop-unroll.c (unroll_loop_runtime_iterations): Unshare newly emit
9583 code.
9584
9585 2006-06-30 Thomas Neumann <tneumann@users.sourceforge.net>
9586
9587 * ipa.c (cgraph_postorder): Cast according to the coding conventions.
9588 (cgraph_remove_unreachable_nodes): Likewise.
9589 * ipa-cp.c (ipcp_propagate_stage): Use BOTTOM instead of integer 0.
9590 * ipa-inline.c (update_caller_keys): Cast according to the coding
9591 conventions.
9592 (cgraph_decide_recursive_inlining): Likewise.
9593 (cgraph_decide_inlining_of_small_function): Likewise.
9594 (try_inline): Likewise.
9595 (cgraph_decide_inlining_incrementally): Likewise.
9596 * ipa-pure-const.c (get_function_state): Likewise.
9597 (scan_function): Likewise.
9598 (analyze_function): Likewise.
9599 (static_execute): Likewise.
9600 * ipa-reference.c (scan_for_static_refs): Likewise.
9601 (merge_callee_local_info): Likewise.
9602 (analyze_function): Use type safe memory macros.
9603 (static_execute): Likewise. Cast according to the coding conventions.
9604 * ipa-type-escape.c (scan_for_regs): Cast according to the coding
9605 conventions.
9606 * ipa-utils.c (searchc): Likewise. Avoid using C++ keywords as variable
9607 names.
9608 (ipa_utils_reduced_inorder): Likewise. Use type safe memory macros.
9609 * ipa-utils.h (struct ipa_dfa_info): Avoid using C++ keywords as
9610 variable names.
9611
9612 2007-06-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
9613
9614 PR middle-end/30024
9615 * emit-rtl.c (init_emit_once): Intilize const_tiny_rtx[0]
9616 for complex modes (both int and real).
9617
9618 2007-06-29 Jan Hubicka <jh@suse.cz>
9619
9620 * cse.c: Rever accidentally comitted TODO_verify_rtl_sharing change.
9621
9622 2007-06-29 Jan Hubicka <jh@suse.cz>
9623
9624 PR middle-end/32372
9625 * cse.c (cse_insn): Avoid invalid sharing in between register note and
9626 the insn pattern.
9627
9628 2007-06-29 Anatoly Sokolov <aesok@post.ru>
9629
9630 PR target/32335
9631 * config/avr/avr.c: Include dataflow header file.
9632 (expand_prologue): Adjust for prologue insn change.
9633 * config/avr/avr.md (call_prologue_saves): Only modify REG_SP once
9634 inside a insn.
9635
9636 2007-06-29 Richard Guenther <rguenther@suse.de>
9637
9638 PR middle-end/32493
9639 * gimplify.c (gimplify_call_expr): Ignore variable argument parts
9640 during type verification.
9641
9642 2007-06-29 Jan Hubicka <jh@suse.cz>
9643
9644 * recog.c (validate_change_rtx_1): Unshare TO argument.
9645
9646 2007-06-29 Uros Bizjak <ubizjak@gmail.com>
9647
9648 PR tree-optimization/24659
9649 * tree-vect-transform.c (vectorizable_call): Handle
9650 (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
9651
9652 * config/i386/sse.md (vec_pack_sfix_v2df): New expander.
9653 * config/i386/i386.c (enum ix86_builtins)
9654 [IX86_BUILTIN_VEC_PACK_SFIX]: New constant.
9655 (struct bdesc_2arg) [__builtin_ia32_vec_pack_sfix]: New builtin
9656 description.
9657 (ix86_init_mmx_sse_builtins): Define all builtins with 2 arguments as
9658 const using def_builtin_const.
9659 (ix86_expand_binop_builtin): Remove bogus assert() that insn wants
9660 input operands in the same modes as the result.
9661 (ix86_builtin_vectorized_function): Handle BUILT_IN_LRINT.
9662
9663 2007-06-29 Richard Sandiford <rsandifo@nildram.co.uk>
9664
9665 * df-problems.c (df_set_unused_notes_for_mw): Fix formatting.
9666 (df_set_dead_notes_for_mw): Likewise.
9667
9668 2007-06-29 Eric Botcazou <ebotcazou@adacore.com>
9669
9670 * c-common.c (pointer_int_sum): Do the negation in sizetype.
9671
9672 2007-06-28 DJ Delorie <dj@redhat.com>
9673
9674 * config/m32c/m32c.h (OVERRIDE_OPTIONS): Omit unneeded semicolon.
9675
9676 2007-06-28 Geoffrey Keating <geoffk@apple.com>
9677
9678 * doc/invoke.texi (C++ Dialect Options): Document
9679 fvisibility-ms-compat.
9680 * c.opt (fvisibility-ms-compat): New.
9681
9682 2007-06-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
9683
9684 PR tree-opt/32417
9685 * tree-affine.c (aff_combination_add_elt): Handle
9686 pointer addition specially.
9687
9688 2007-06-28 Jakub Jelinek <jakub@redhat.com>
9689
9690 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Ensure
9691 decl is non-external for AIX ABI.
9692
9693 2007-06-28 David Edelsohn <edelsohn@gnu.org>
9694
9695 * config/rs6000/predicates.md (current_file_function_operand):
9696 Ensure the symbol is non-external for AIX ABI.
9697
9698 2007-06-28 Nick Clifton <nickc@redhat.com>
9699
9700 * common.opt (fipa-matrix-reorg): Add Optimization attribute.
9701 (fdce, fdse, fpredictive-commoning): Likewise.
9702
9703 2007-06-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9704
9705 PR other/31400
9706 * gcc.c (process_command): Recognize the new -static-libgfortran
9707 option.
9708
9709 2007-06-27 Rask Ingemann Lambertsen <rask@sygehus.dk>
9710
9711 PR target/32418
9712 * config/m32c/m32c.c (m32c_eh_return_stackadj_rtx): Dataflow fix:
9713 Use a call clobbered hard reg instead of a pseudo reg.
9714
9715 2007-06-27 Kaz Kojima <kkojima@gcc.gnu.org>
9716
9717 * config/sh/sh.md (load_gbr): Use correct operand constraint.
9718
9719 2007-06-27 Kaz Kojima <kkojima@gcc.gnu.org>
9720
9721 PR target/32479
9722 * config/sh/sh.md (udivsi3): Don't wrap the sequence with
9723 REG_LIBCALL and REG_RETVAL notes.
9724 (divsi3, mulsi3): Likewise.
9725 (mulhisi3): Likewise. Use emit_libcall_block.
9726 (umulhisi3, smulsi3_highpart, umulsi3_highpart_i): Likewise.
9727
9728 2007-06-27 Seongbae Park <seongbae.park@gmail.com>
9729
9730 PR rtl-optimization/32481
9731 * combine.c (adjust_for_new_dest): Rescan the changed insn.
9732
9733 2007-06-27 Richard Sandiford <richard@codesourcery.com>
9734
9735 * dce.c (deletable_insn_p_1): New function, split out from...
9736 (deletable_insn_p): ...here. Only treat bare USEs and CLOBBERs
9737 specially, not those inside PARALLELs. Remove BODY argument
9738 and adjust recursive call accordingly.
9739 (prescan_insns_for_dce): Update call to delete_insn_p.
9740
9741 2007-06-27 Richard Guenther <rguenther@suse.de>
9742
9743 PR middle-end/32492
9744 * tree.h (fold_convertible_p): Declare.
9745 * fold-const.c (fold_convertible_p): New function.
9746 * gimplify.c (gimplify_call_expr): Use fold_convertible_p
9747 instead of lang_hooks.types_compatible_p.
9748
9749 2007-06-26 Jan Hubicka <jh@suse.cz>
9750
9751 * fwprop.c (try_fwprop_subst): Use validate_unshare_change.
9752 * postreload.c (reload_cse_simplify_set): Instead of copying the rtx
9753 early use validate_unshare_change.
9754 (reload_combine): Likewise.
9755 * recog.c (change_t): New field unshare.
9756 (validate_change_1): Rename from validate_change; add argument unshare.
9757 (validate_change): Turn into wrapper of validate_change_1; update
9758 prototype for bools.
9759 (validate_unshare_change): New.
9760 (confirm_change_group): Unshare changes if asked for; avoid unnecesary
9761 calls of df_insn_rescan.
9762 * recog.h (validate_change): Replace ints by bools.
9763 (validate_unshare_change): Declare.
9764
9765 2007-06-26 Kenneth Zadeck <zadeck@naturalbridge.com>
9766
9767 * tree.def (VEC_WIDEN_MULT_LO_EXPR): Corrected string name.
9768
9769 2007-06-26 Steve Ellcey <sje@cup.hp.com>
9770
9771 * builtins.c (expand_builtin_next_arg): Change Pmode to ptr_mode.
9772
9773 2007-06-25 Jan Hubicka <jh@suse.cz>
9774
9775 * ipa-inline.c (cgraph_mark_inline): Assert that we never inline
9776 uninlinable call.
9777 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining,
9778 cgraph_decide_inlining_incrementally): Move uninlinability checks to
9779 places other call site specific checks are performed.
9780
9781 2007-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
9782
9783 PR tree-opt/32421
9784 * tree-vect-transform.c (vectorizable_operation): Convert
9785 POINTER_PLUS_EXPR over to PLUS_EXPR.
9786
9787 2007-06-25 Chao-ying Fu <fu@mips.com>
9788
9789 * doc/rtl.texi (Machine Modes): Document QQ, HQ, SQ, DQ, TQ,
9790 UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA, USA, UDA, and UTAmodes.
9791 Document MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
9792 Document GET_MODE_IBIT, and GET_MODE_FBIT.
9793
9794 * machmode.h (VECTOR_MODE_P): Test MODE_VECTOR_FRACT,
9795 MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
9796 (SCALAR_FRACT_MODE_P, SCALAR_UFRACT_MODE_P, ALL_SCALAR_FRACT_MODE_P,
9797 SCALAR_ACCUM_MODE_P, SCALAR_UACCUM_MODE_P, ALL_SCALAR_ACCUM_MODE_P,
9798 SIGNED_SCALAR_FIXED_POINT_MODE_P, UNSIGNED_SCALAR_FIXED_POINT_MODE_P,
9799 ALL_SCALAR_FIXED_POINT_MODE_P, FRACT_MODE_P, UFRACT_MODE_P,
9800 ALL_FRACT_MODE_P, ACCUM_MODE_P, UACCUM_MODE_P, ALL_ACCUM_MODE_P,
9801 SIGNED_FIXED_POINT_MODE_P, UNSIGNED_FIXED_POINT_MODE_P,
9802 ALL_FIXED_POINT_MODE_P): New define.
9803 (CLASS_HAS_WIDER_MODES_P): Test MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
9804 MODE_UACCUM.
9805 (GET_MODE_IBIT, GET_MODE_FBIT): New define.
9806
9807 * mode-classes.def (MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM,
9808 MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
9809 MODE_VECTOR_UACCUM): New mode classes.
9810
9811 * machmode.def: Document FRACT_MODE, UFRACT_MODE, ACCUM_MODE,
9812 UACCUM_MODE, ADJUST_IBIT, and ADJUST_FBIT.
9813 Add QQ, HQ, SQ, DQ, TQ, UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA,
9814 USA, UDA, and UTA.
9815
9816 * genmodes.c (struct mode_data): Add ibit and fbit fields.
9817 (blank_mode): Initialize ibit and fbit.
9818 (adj_ibit, adj_fbit): New to adjust ibit and fbit.
9819 (vector_class): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
9820 MODE_UACCUM.
9821 (new_adjust): Change required_class to required_class_from and
9822 required_class_to for testing within a range.
9823 (complete_mode): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
9824 MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
9825 MODE_VECTOR_UACCUM.
9826 (FRACT_MODE, UFRACT_MODE, ACCUM_MODE, UACCUM_MODE): New define.
9827 (make_fixed_point_mode): New.
9828 (_ADD_ADJUST): Change C to C1 and C2.
9829 (ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FLOAT_FORMAT): Change to
9830 use a range for machine classes.
9831 (ADJUST_IBIT, ADJUST_FBIT): New.
9832 (emit_insn_modes_h): Output defines of CONST_MODE_IBIT and
9833 CONST_MODE_FBIT.
9834 (emit_mode_adjustments): Handle MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
9835 MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
9836 Emit adjustment for ibit and fbit.
9837 (emit_mode_ibit, emit_mode_fbit): New.
9838 (emit_insn_modes_c): Add emit_mode_ibit and emit_mode_fbit.
9839
9840 2007-06-25 Nathan Froyd <froydnj@codesourcery.com>
9841
9842 * config/rs6000/spe.md (*frob_ti_tf_2): Specify an input_operand
9843 as the source of the set.
9844
9845 2007-06-25 Roman Zippel <zippel@linux-m68k.org>
9846
9847 * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P,
9848 FP_REGNO_P): Use IN_RANGE.
9849 (REGNO_OK_FOR_DATA_P, REGNO_OK_FOR_FP_P): Remove.
9850 (REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): New.
9851 (DATA_REG_P): Use DATA_REGNO_P.
9852 (FP_REG_P): Use FP_REGNO_P.
9853 (ADDRESS_REG_P): Use ADDRESS_REGNO_P.
9854 * config/m68k/m68k.c (m68k_legitimate_base_reg_p): Use
9855 REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P.
9856
9857 2007-06-24 Jan Hubicka <jh@suse.cz>
9858
9859 PR middle-end/30563
9860 * cgraphunit.c (cgraph_analyze_function): Fix ordering problem.
9861
9862 2007-06-24 Sebastian Pop <sebpop@gmail.com>
9863
9864 PR middle-end/32461
9865 * fold-const.c (fold_binary): Strip nops of operand 0
9866 of BIT_NOT_EXPR before calling operand_equal_p.
9867 * testsuite/gcc.dg/tree-ssa/pr32461-1.c: New.
9868 * testsuite/gcc.dg/tree-ssa/pr32461-2.c: New.
9869
9870 2007-06-23 Mark Mitchell <mark@codesourcery.com>
9871
9872 * doc/extend.texi: Document that dllimport and dllexport imply
9873 default visibility.
9874 * tree.c (handle_dll_attribute): Set DECL_VISIBILITY on the
9875 imported or exported declaration, including type declarations.
9876 * c-common.c (handle_visibility_attribute): Check for conflicts
9877 with dllimport/dllexport.
9878 (c_determine_visibility): Handle dllimport/dllexport as an
9879 explicit visibility atttribute.
9880
9881 2007-06-23 Richard Guenther <rguenther@suse.de>
9882
9883 PR tree-optimization/16876
9884 PR middle-end/29478
9885 * tree.h (CALL_CANNOT_INLINE_P): New macro to access static_flag
9886 for CALL_EXPRs.
9887 * tree-inline.c (initialize_inlined_parameters): Do not call
9888 lang_hooks.tree_inlining.convert_parm_for_inlining.
9889 * cgraphbuild.c (initialize_inline_failed): Set inline failed
9890 reason for mismatched types.
9891 * gimplify.c (gimplify_call_expr): Verify the call expression
9892 arguments match the called function type signature. Otherwise
9893 mark the call expression to be not considered for inlining
9894 using CALL_CANNOT_INLINE_P flag.
9895 * ipa-inline.c (cgraph_mark_inline): Honor CALL_CANNOT_INLINE_P on the
9896 edges call expression.
9897 (cgraph_decide_inlining_of_small_function): Likewise.
9898 (cgraph_decide_inlining): Likewise.
9899 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
9900 Remove define.
9901 * c-tree.h (c_convert_parm_for_inlining): Remove declaration.
9902 * c-typeck.c (c_convert_parm_for_inlining): Remove.
9903 * langhooks-def.h (lhd_tree_inlining_convert_parm_for_inlining):
9904 Remove declaration.
9905 (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING): Remove define.
9906 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining):
9907 Remove.
9908 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
9909 convert_parm_for_inlining member.
9910
9911 2007-06-23 Richard Earnshaw <rearnsha@arm.com>
9912
9913 PR target/31152
9914 * arm.md (negscc): Match the correct operand for optimized LT0 test.
9915 Remove optimization for GT.
9916
9917 2007-06-23 Kenneth Zadeck <zadeck@naturalbridge.com>
9918
9919 PR middle-end/32437
9920 * dce.c (deletable_insn_p): Add extra parameter and recurse if insn
9921 is a PARALLEL.
9922 (prescan_insns_for_dce): Add extra parameter.
9923
9924 2007-06-23 Jan Hubicka <jh@suse.cz>
9925
9926 PR middle-end/31541
9927 * gimplify.c (mark_addressable): New function.
9928 (gimplify_modify_expr_rhs, gimplify_addr_expr, gimplify_expr): Use it.
9929
9930 2007-06-22 Uros Bizjak <ubizjak@gmail.com>
9931
9932 PR middle-end/32374
9933 * expr.c (store_constructor): Do not clobber non-zeroed memory.
9934
9935 2007-06-22 Uros Bizjak <ubizjak@gmail.com>
9936
9937 PR target/32413
9938 * config/i386/i386.c (ix86_register_move_cost): Rise the cost of
9939 moves between MMX/SSE registers to at least 8 units to prevent
9940 ICE caused by non-tieable SI/HI/QImodes in SSE registers.
9941
9942 2007-06-22 Uros Bizjak <ubizjak@gmail.com>
9943
9944 * config/i386/i386.c (override_options): Correct x86_sahf
9945 setting condition.
9946
9947 2007-06-21 David Daney <ddaney@avtrex.com>
9948
9949 PR target/32406
9950 * config/mips/mips.md (define_constants): Rename UNSPEC_EH_RECEIVER
9951 to UNSPEC_NONLOCAL_GOTO_RECEIVER globally.
9952 (exception_receiver): Renamed to ...
9953 (nonlocal_goto_receiver): ... this.
9954
9955 2007-06-22 Roman Zippel <zippel@linux-m68k.org>
9956
9957 * df-scan.c (df_read_modify_subreg_p): Use REGMODE_NATURAL_SIZE.
9958 (df_def_record_1): Set (DF_REF_READ_WRITE | DF_REF_PARTIAL) for
9959 partial register accesses.
9960
9961 2007-06-21 Adam Nemet <anemet@caviumnetworks.com>
9962
9963 * fold-const.c (debug_fold_checksum): Move it under
9964 ENABLE_FOLD_CHECKING.
9965
9966 2007-06-21 Sebastian Pop <sebpop@gmail.com>
9967
9968 PR middle-end/20623
9969 * tree.h (debug_fold_checksum): Declared.
9970 * fold-const.c (build_fold_addr_expr_with_type_1): New.
9971 (build_fold_addr_expr_with_type, build_fold_addr_expr): Use
9972 build_fold_addr_expr_with_type_1.
9973 (fold_addr_expr, debug_fold_checksum): New.
9974 (fold_checksum_tree): Don't fold TREE_CHAIN of an SSA_NAME.
9975 (fold_unary, fold_comparison, split_address_to_core_and_offset):
9976 Use fold_addr_expr.
9977
9978 2007-06-21 Sebastian Pop <sebpop@gmail.com>
9979
9980 PR tree-optimization/19590
9981 * tree-vrp.c (adjust_range_with_scev): Set the range when the result
9982 of scev is a constant.
9983
9984 2007-06-21 Kenneth Zadeck <zadeck@naturalbridge.com>
9985
9986 * df-problems.c (df_note_bb_compute): Made computation of live
9987 info consistent with df_lr.
9988
9989 2007-06-21 Richard Guenther <rguenther@suse.de>
9990
9991 PR tree-optimization/32453
9992 * tree-vrp.c (extract_range_from_assert): Build POINTER_PLUS_EXPR
9993 for pointer anti-range.
9994
9995 2007-06-21 H.J. Lu <hongjiu.lu@intel.com>
9996
9997 * config/i386/i386.c (processor_target_table): Increase maximum
9998 skip from 7 byte to 10 byte for Pentium Pro, Core 2 Duo and
9999 default 64bit.
10000
10001 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Ensure 8
10002 byte alignment if > 8 byte alignment is preferred.
10003 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
10004
10005 2007-06-21 Jakub Jelinek <jakub@redhat.com>
10006
10007 PR tree-optimization/31866
10008 * tree-ssa-coalesce.c (create_outofssa_var_map): Do nothing
10009 if ASM_EXPR's input is not a SSA_NAME.
10010
10011 PR middle-end/32362
10012 * omp-low.c (lookup_decl_in_outer_ctx): Don't ICE if t is NULL,
10013 but decl is a global var, instead return decl.
10014 * gimplify.c (gimplify_adjust_omp_clauses_1): Add shared clauses
10015 even for is_global_var decls, if they are private in some outer
10016 context.
10017
10018 2007-06-21 Richard Guenther <rguenther@suse.de>
10019
10020 PR tree-optimization/32451
10021 * tree-ssa-threadupdate.c (thread_single_edge): Fixup edge flags.
10022
10023 2007-06-21 Christian Bruel <christian.bruel@st.com>
10024
10025 * config/sh/sh-protos.h (sh_loads_bankedreg_p): Declare.
10026 * config/sh/sh.c (sh_loads_bankedreg_p): New function.
10027 (push_regs): Changed saving order or banked registers.
10028 (sh_expand_epilogue): Likewise.
10029 * config/sh/sh.h (BANKED_REGISTER_P): New macro.
10030 (FIRST_BANKED_REG): Likewise.
10031 (LAST_BANKED_REG): Likewise.
10032 * config/sh/sh.md (banked) New attribute.
10033 (in_delay_slot): Check banked attribute.
10034
10035 2007-06-20 Sebastian Pop <sebpop@gmail.com>
10036
10037 PR tree-optimization/32075
10038 * tree-data-ref.c (subscript_dependence_tester_1,
10039 analyze_miv_subscript, analyze_overlapping_iterations,
10040 add_distance_for_zero_overlaps, build_classic_dist_vector,
10041 subscript_dependence_tester_1, analyze_overlapping_iterations,
10042 subscript_dependence_tester, access_functions_are_affine_or_constant_p,
10043 compute_affine_dependence, compute_all_dependences): Pass loop_nest
10044 to evolution_function_is_affine_multivariate_p.
10045
10046 2007-06-20 Eric Botcazou <ebotcazou@libertysurf.fr>
10047
10048 * df-scan.c (df_get_call_refs): Be prepared for MEMs inside CLOBBERs.
10049
10050 2007-06-20 Rask Ingemann Lambertsen <rask@sygehus.dk>
10051
10052 PR target/32335
10053 * config/m32c/m32c.c (m32c_emit_epilogue): Use new HImode epilogue
10054 for TARGET_A16.
10055 * config/m32c/prologue.md (epilogue_exitd_16): New.
10056 (epilogue_reit_16): New.
10057 (epilogue_exitd): Rename to epilogue_exitd_24.
10058 (epilogue_reit): Rename to epilogue_reit_24.
10059
10060 2007-06-20 Seongbae Park <seongbae.park@gmail.com>
10061 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
10062
10063 * dbgcnt.def (global_alloc_at_func, global_alloc_at_reg):
10064 New counters.
10065 * haifa-sched.c (queue_to_ready): Don't requeue next insn
10066 if dbg_cnt (sched_insn) reaches the limit.
10067 (choose_ready): New parameter INSN_PTR and new return value.
10068 (schedule_block): Handle dbg_cnt (sched_insn). Handle
10069 the new return value from choose_ready.
10070 * global.c (global_aloc): New dbgcnt global_alloc_at_reg.
10071 (rest_of_handle_global_alloc): New global_alloc_at_func.
10072
10073 2007-06-20 Adam Nemet <anemet@caviumnetworks.com>
10074
10075 PR tree-optimization/25737
10076 * tree.h (struct tree_struct_field_tag): Add new field alias_set.
10077 (SFT_NONADDRESSABLE_P, SFT_ALIAS_SET): New macros.
10078 * tree-flow.h (struct fieldoff): Add new field alias_set.
10079 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add new
10080 argument addressable_type. Set alias_set of fieldoff.
10081 * tree-ssa-alias.c (create_sft): Add new argument alias_set.
10082 (create_overlap_variables_for): Pass alias_set from fieldoff to
10083 create_sft.
10084 * alias.c (get_alias_set): Use alias_set from SFT if set.
10085
10086 2007-06-20 Hui-May Chang <hm.chang@apple.com>
10087
10088 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Print the size
10089 of a variable as an unsigned HOST_WIDE_INT integer.
10090
10091 2007-06-20 Zdenek Dvorak <dvorakz@suse.cz>
10092
10093 PR rtl-optimization/32405
10094 * loop-iv.c (iv_get_reaching_def): Fail for partial defs.
10095
10096 2007-06-20 Jakub Jelinek <jakub@redhat.com>
10097
10098 * Makefile.in (omega.o): Depend on $(DIAGNOSTIC_H).
10099
10100 PR middle-end/31959
10101 * builtins.c: Include diagnostic.h.
10102 (expand_builtin_expect): Make gcc_assert more permissive.
10103 * Makefile.in (builtins.o): Depend on $(DIAGNOSTIC_H).
10104
10105 PR inline-asm/32109
10106 * gimplify.c (gimplify_asm_expr): Issue error if type is addressable
10107 and !allows_mem.
10108
10109 PR middle-end/32285
10110 * calls.c (precompute_arguments): Also precompute CALL_EXPR arguments
10111 if ACCUMULATE_OUTGOING_ARGS.
10112
10113 2007-06-19 Rask Ingemann Lambertsen <rask@sygehus.dk>
10114
10115 * config/m68hc11/m68hc11.c: Include dataflow header file.
10116 (m68hc11_reorg): Port to dataflow.
10117
10118 2007-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
10119
10120 * df.h (DF_FIRST_OPTIONAL_PROBLEM): Removed.
10121 (struct df_problem.free_blocks_on_set_blocks): New field.
10122 (struct dataflow.optional_p): New field.
10123 (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
10124 (df_live_set_all_dirty): New function.
10125 * df-scan.c (df_scan_alloc): Initialize optional_p.
10126 (problem_SCAN): Initialize free_blocks_on_set_blocks.
10127 * df-core.c (df_set_blocks): Removed use of
10128 DF_FIRST_OPTIONAL_PROBLEM. Now uses
10129 df_problem.free_blocks_on_set_blocks to determine which blocks are
10130 recycled.
10131 (df_remove_problem): Removed use of DF_FIRST_OPTIONAL_PROBLEM.
10132 (df_finish_pass): Removed use of DF_FIRST_OPTIONAL_PROBLEM. Now
10133 uses dataflow.optional_p to determine if problem should be
10134 deleted.
10135 (rest_of_handle_df_initialize): Only start live problem if
10136 -02 or above.
10137 (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
10138 * df-problems.c (df_ru_alloc, df_rd_alloc, df_lr_alloc,
10139 df_live_alloc, df_urec_alloc, df_note_alloc): set optional_p.
10140 (problem_RU, problem_RD, problem_LR, problem_UREC, problem_CHAIN,
10141 problem_NOTE): Initialize free_blocks_on_set_blocks.
10142 (df_lr_bb_local_compute): Recompute luids if df_live problem is
10143 not active.
10144 (df_live_set_all_dirty, df_note_alloc): New function.
10145 * regrename.c (merge_overlapping_regs): Change DF_LIVE_* to
10146 df_get_live_*.
10147 * sched_ebb.c (compute_jump_reg_dependencies): Ditto.
10148 * postreload.c (reload_combine): Ditto.
10149 * cse.c (cse_extended_basic_block): Ditto.
10150 * regmove.c (mark_flags_life_zones): Ditto.
10151 * rtlfactoring.c (split_blocks_after_seqs, split_pattern_seq,
10152 erase_matching_seqs): Ditto.
10153 * bt-load.c (compute_defs_uses_and_gen): Ditto.
10154 * integrate (allocate_initial_values): Ditto.
10155 * combine.c (reg_dead_at_p): Ditto.
10156 * resource.c (mark_target_live_regs): Ditto.
10157 * sched-rgn.c (check_live_1, update_live_1): Ditto.
10158 * config/sh/sh.c (find_r0_life_regions): Ditto.
10159 * global.c (rest_of_handle_global_alloc): Only add back df_live
10160 for -O > 1.
10161 * local-alloc.c (rest_of_handle_local_alloc): Only remove
10162 df_live for -O > 1.
10163 * ifcvt.c (dead_or_predicable): Change DF_LIVE_* to
10164 df_get_live_*.
10165 (if_convert): Make sure df_live is there at -O == 1.
10166 (pass_if_after_combine): Cleanup flags.
10167 * init-regs.c (initialize_uninitialized_regs): Make sure df_live
10168 is there at -O == 1.
10169
10170 2007-06-19 Seongbae Park <seongbae.park@gmail.com>
10171
10172 * config/arm/arm.c (arm_get_frame_offsets): Set
10173 offsets->locals_base to avoid negative stack size.
10174 (thumb1_expand_prologue): Assert on negative stack size.
10175
10176 2007-06-19 Sebastian Pop <sebpop@gmail.com>
10177
10178 PR tree-optimization/32367
10179 * tree-chrec.h (build_polynomial_chrec): Verify that the left hand side
10180 of the chrec has no evolution in that loop.
10181 * testsuite/gcc.dg/tree-ssa/pr32367.c: New.
10182
10183 2007-06-19 Bob Wilson <bob.wilson@acm.org>
10184
10185 * config/xtensa/xtensa.c: Include "df.h".
10186 (xtensa_builtin_saveregs): Use adjust_address instead of
10187 change_address.
10188 (xtensa_va_start): Invoke make_tree with sizetype for
10189 expand_builtin_saveregs and then convert the result to a pointer.
10190 Use POINTER_PLUS_EXPR. Use size_int instead of build_int_cst.
10191 (xtensa_gimplify_va_arg_expr): Use size_int instead of build_int_cst.
10192 Subtract argument size from index value as integers and then use
10193 POINTER_PLUS_EXPR to add the result to the array address.
10194
10195 2007-06-19 Rask Ingemann Lambertsen <rask@sygehus.dk>
10196
10197 PR target/32335
10198 * config/m32c/m32c.c: Include dataflow header file.
10199 (m32c_emit_prologue): Adjust for prologue insn change.
10200 * config/m32c/prologue.md (prologue_enter_16): Only modify SP_REGNO
10201 once inside a PARALLEL. Assume frame size passed in operand 0
10202 includes space to save the fb register.
10203 (prologue_enter_24): Likewise.
10204 (epilogue_exitd): Only modify SP_REGNO once inside a PARALLEL.
10205
10206 2007-06-19 David Daney <ddaney@avtrex.com
10207
10208 PR target/32313
10209 * config/mips/mips.md (cprestore): Mark $gp as used.
10210
10211 2007-06-19 Rask Ingemann Lambertsen <rask@sygehus.dk>
10212
10213 PR target/32369
10214 * config/frv/frv.c (frv_ifcvt_modify_tests): Dataflow merge fix.
10215 (frv_ifcvt_modify_insn): Likewise.
10216
10217 2007-06-19 Richard Guenther <rguenther@suse.de>
10218
10219 * tree-ssa-structalias.c (handle_ptr_arith): Make sure to
10220 only handle positive offsets that fit in a HOST_WIDE_INT.
10221
10222 2007-06-19 Uros Bizjak <ubizjak@gmail.com>
10223
10224 * config/i386/i386.c (ix86_emit_swsqrtsf): Filter out infinity
10225 result of rsqrt insn for zero input argument to avoid NaN.
10226
10227 2007-06-19 Richard Guenther <rguenther@suse.de>
10228
10229 PR middle-end/31950
10230 * tree-ssa-alias-warnings.c (ffan_walker): Punt on MTAGs.
10231
10232 2007-06-19 Jakub Jelinek <jakub@redhat.com>
10233
10234 PR tree-optimization/32353
10235 * tree-ssa-structalias.c (set_uids_in_ptset): Also handle RESULT_DECL.
10236
10237 2007-06-19 Nick Clifton <nickc@redhat.com>
10238
10239 * config/m32r/linux.h (LIB_SPEC): Always imply -lpthread for -pthread.
10240
10241 2007-06-18 Uros Bizjak <ubizjak@gmail.com>
10242
10243 PR target/32389
10244 * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_VIRTUAL.
10245 * config/i386/i386.c (assign_386_stack_local): Assert that
10246 SLOT_VIRTUAL is valid only before virtual regs are instantiated.
10247 (ix86_expand_builtin) [IX86_BUILTIN_LDMXCSR, IX86_BUILTIN_STMXCSR]:
10248 Use SLOT_VIRTUAL stack slot instead of SLOT_TEMP.
10249 * config/i386/i386.md (truncdfsf2, truncxf<mode>2): Ditto.
10250
10251 2007-06-18 Steve Ellcey <sje@cup.hp.com>
10252
10253 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): New.
10254
10255 2007-06-18 Seongbae Park <seongbae.park@gmail.com>
10256
10257 PR rtl-optimization/32321
10258 * gcse.c (replace_store_insn): Update the note before
10259 calling emit_insn_after.
10260
10261 2007-06-18 Kenneth Zadeck <zadeck@naturalbridge.com>
10262
10263 PR middle-end/32355
10264 * gcse (rest_of_handle_gcse): Add call to df_finish_pass after
10265 cse_main.
10266 * df-problems.c (df_note_bb_compute): Fix dumping info.
10267
10268 2007-06-18 Kazu Hirata <kazu@codesourcery.com>
10269
10270 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a return
10271 insn with emit_jump_insn.
10272
10273 2007-06-18 Uros Bizjak <ubizjak@gmail.com>
10274
10275 PR tree-optimization/32383
10276 * targhooks.c (default_builtin_reciprocal): Add new bool argument.
10277 * targhooks.h (default_builtin_reciprocal): Update prototype.
10278 * target.h (struct gcc_target): Update builtin_reciprocal.
10279 * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Update description.
10280 * tree-ssa-math-opts (execute_cse_reciprocals): Skip statements
10281 where arg1 is not SSA_NAME. Pass true to targetm.builtin_reciprocal
10282 when fndecl is in BUILT_IN_MD class.
10283 (execute_convert_to_rsqrt): Ditto.
10284
10285 * config/i386/i386.c (ix86_builtin_reciprocal): Update for new bool
10286 argument. Convert IX86_BUILTIN_SQRTPS code only when md_fn is true.
10287 Convert BUILT_IN_SQRTF code only when md_fn is false.
10288
10289 2007-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
10290
10291 * bt-load.c (move_btr_def): Fix the order of arguments
10292 to validate_replace_rtx.
10293
10294 2007-06-18 Nathan Sidwell <nathan@codesourcery.com>
10295
10296 * config/m68k/m68k-devices.def: Add 54450..54455.
10297
10298 2007-06-17 Uros Bizjak <ubizjak@gmail.com>
10299
10300 PR rtl-optimization/32366
10301 * simplify-rtx.c (simplify_unary_operation_1) [FLOAT_TRUNCATE,
10302 FLOAT_EXTEND]: Prevent non-scalar modes from entering
10303 significand_size.
10304
10305 2007-06-17 Kenneth Zadeck <zadeck@naturalbridge.com>
10306
10307 PR middle-end/32349
10308 * modulo-sched (generate_reg_moves): Added rescan parameter and if
10309 this is true, rescan insn being modified.
10310 (sms_schedule): Added rescan parameter.
10311 (rest_of_handle_sms): Moved freeing of dominance info to before
10312 getting out of cfg_layout.
10313
10314 2007-06-17 Nathan Sidwell <nathan@codesourcery.com>
10315
10316 * config/m68k/m68k.h (ISA_HAS_FF1, ISA_HAS_MVS_MVZ): New.
10317 * config/m68k/m68k.md: Use ISA_HAS_FF1 and ISA_HAS_MVS_MVZ as
10318 appropriate.
10319
10320 * config/m68k/m68k.c (all_isas): Remove FL_CF_FPU and
10321 FL_CF_EMAC from the entry for isac.
10322
10323 * config/m68k/predicates.md (const_call_operand): Adjust comment.
10324 (const_sibcall_operand): New.
10325 (sibcall_operand): Use it.
10326 * config/m68k/m68k.c (FL_FOR_isa_c): Not ISA_B compatible.
10327 (m68k_isas): ISAC does not imply FPU or EMAC.
10328 (override_options): Add ISA_C logic for symbolic jump & call.
10329
10330 2007-06-17 Eric Botcazou <ebotcazou@libertysurf.fr>
10331
10332 * config/sparc/sparc.c (sparc_vis_init_builtins): Retrieve the
10333 return mode from the builtin itself.
10334 (sparc_fold_builtin): Fix cast of zero constant.
10335
10336 2007-06-16 Uros Bizjak <ubizjak@gmail.com>
10337
10338 * targhooks.c (default_builtin_reciprocal): New default target hook.
10339 * targhooks.h (default_builtin_reciprocal): Add prototype.
10340 * hooks.c (hook_tree_tree_bool_null): Remove hook.
10341 * hooks.h (hook_tree_tree_bool_null): Remove prototype.
10342 * target-def.h (TARGET_BUILTIN_RECIPROCAL): Define as
10343 default_builtin_reciprocal.
10344
10345 2007-06-16 Uros Bizjak <ubizjak@gmail.com>
10346
10347 PR middle-end/31723
10348 * hooks.c (hook_tree_tree_bool_null): New hook.
10349 * hooks.h (hook_tree_tree_bool_null): Add prototype.
10350 * tree-pass.h (pass_convert_to_rsqrt): Declare.
10351 * passes.c (init_optimization_passes): Add pass_convert_to_rsqrt.
10352 * tree-ssa-math-opts.c (execute_cse_reciprocals): Scan for a/func(b)
10353 and convert it to reciprocal a*rfunc(b).
10354 (execute_convert_to_rsqrt): New function.
10355 (gate_convert_to_rsqrt): New function.
10356 (pass_convert_to_rsqrt): New pass definition.
10357 * target.h (struct gcc_target): Add builtin_reciprocal.
10358 * target-def.h (TARGET_BUILTIN_RECIPROCAL): New define.
10359 (TARGET_INITIALIZER): Initialize builtin_reciprocal with
10360 TARGET_BUILTIN_RECIPROCAL.
10361 * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Document.
10362
10363 * config/i386/i386.h (TARGET_RECIP): New define.
10364 * config/i386/i386.md (divsf3): Expand by calling ix86_emit_swdivsf
10365 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
10366 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
10367 and not optimizing for size.
10368 (*rcpsf2_sse): New insn pattern.
10369 (*rsqrtsf2_sse): Ditto.
10370 (rsqrtsf2): New expander. Expand by calling ix86_emit_swsqrtsf
10371 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
10372 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
10373 and not optimizing for size.
10374 (sqrt<mode>2): Expand SFmode operands by calling ix86_emit_swsqrtsf
10375 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
10376 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
10377 and not optimizing for size.
10378 * config/i386/sse.md (divv4sf): Expand by calling ix86_emit_swdivsf
10379 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
10380 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
10381 and not optimizing for size.
10382 (*sse_rsqrtv4sf2): Do not export.
10383 (sqrtv4sf2): Ditto.
10384 (sse_rsqrtv4sf2): New expander. Expand by calling ix86_emit_swsqrtsf
10385 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
10386 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
10387 and not optimizing for size.
10388 (sqrtv4sf2): Ditto.
10389 * config/i386/i386.opt (mrecip): New option.
10390 * config/i386/i386-protos.h (ix86_emit_swdivsf): Declare.
10391 (ix86_emit_swsqrtsf): Ditto.
10392 * config/i386/i386.c (IX86_BUILTIN_RSQRTF): New constant.
10393 (ix86_init_mmx_sse_builtins): __builtin_ia32_rsqrtf: New
10394 builtin definition.
10395 (ix86_expand_builtin): Expand IX86_BUILTIN_RSQRTF using
10396 ix86_expand_unop1_builtin.
10397 (ix86_emit_swdivsf): New function.
10398 (ix86_emit_swsqrtsf): Ditto.
10399 (ix86_builtin_reciprocal): New function.
10400 (TARGET_BUILTIN_RECIPROCAL): Use it.
10401 (ix86_vectorize_builtin_conversion): Rename from
10402 ix86_builtin_conversion.
10403 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Use renamed function.
10404 * doc/invoke.texi (Machine Dependent Options): Add -mrecip to
10405 "i386 and x86_64 Options" section.
10406 (Intel 386 and AMD x86_64 Options): Document -mrecip.
10407
10408 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
10409 Zdenek Dvorak <dvorakz@suse.cz>
10410 Richard Guenther <rguenther@suse.de>
10411 Kaz Kojima <kkojima@gcc.gnu.org>
10412
10413 * tree-vrp.c (compare_values_warnv): Convert val2 to
10414 the type of val1.
10415 (extract_range_from_assert): Create
10416 POINTER_PLUS_EXPR for pointer types.
10417 (extract_range_from_binary_expr): Handle
10418 only POINTER_PLUS_EXPR, MIN_EXPR, and MAX_EXPR
10419 for pointer types.
10420 * doc/c-tree.texi (POINTER_PLUS_EXPR): Document.
10421 * tree-ssa-loop-niter.c (split_to_var_and_offset): Handle
10422 POINTER_PLUS_EXPR as PLUS_EXPR.
10423 (number_of_iterations_lt_to_ne):
10424 For pointer types, use sizetype when
10425 creating MINUS_EXPR/PLUS_EXPRs.
10426 (assert_loop_rolls_lt): For pointer types, use sizetype when
10427 creating MINUS_EXPR/PLUS_EXPRs.
10428 (number_of_iterations_le): Likewise.
10429 (expand_simple_operations): POINTER_PLUS_EXPR are simple also.
10430 (derive_constant_upper_bound): Handle POINTER_PLUS_EXPR just
10431 like PLUS_EXPR and MINUS_EXPR.
10432 * tree-pretty-print.c (dump_generic_node): Handle
10433 POINTER_PLUS_EXPR.
10434 (op_prio): Likewise.
10435 (op_symbol_1): Likewise.
10436 * optabs.c (optab_for_tree_code): Likewise.
10437 * tree-ssa-loop-manip.c (create_iv): Handle pointer base
10438 specially.
10439 * tree-tailcall.c (process_assignment): Mention
10440 POINTER_PLUS_EXPR in a TODO comment.
10441 * tree.c (build2_stat): Assert when trying to use PLUS_EXPR or
10442 MINUS_EXPR with a pointer. Also assert for POINTER_PLUS_EXPR
10443 not used with a pointer and an integer type.
10444 * tree-scalar-evolution.c (add_to_evolution_1): Convert the
10445 increment using chrec_convert_rhs instead of chrec_convert.
10446 (follow_ssa_edge_in_rhs): Handle POINTER_PLUS_EXPR like
10447 PLUS_EXPR except for the right hand side's type will be
10448 sizetype.
10449 (interpret_rhs_modify_stmt): Handle POINTER_PLUS_EXPR.
10450 (fold_used_pointer_cast): Kill.
10451 (pointer_offset_p): Kill.
10452 (fold_used_pointer): Kill.
10453 (pointer_used_p): Kill.
10454 (analyze_scalar_evolution_1 <case GIMPLE_MODIFY_STMT>): Don't
10455 call fold_used_pointer.
10456 (instantiate_parameters_1): Convert the increment
10457 using chrec_convert_rhs instead of chrec_convert.
10458 Handle POINTER_PLUS_EXPR as PLUS_EXPR.
10459 * builtins.c (get_pointer_alignment): Handle POINTER_PLUS_EXPR
10460 instead of PLUS_EXPR.
10461 (expand_builtin_strcat): Create a POINTER_PLUS_EXPR instead of
10462 PLUS_EXPR for pointers.
10463 (std_gimplify_va_arg_expr): Likewise.
10464 (fold_builtin_memory_op): Likewise.
10465 (fold_builtin_strstr): Likewise.
10466 (fold_builtin_strchr): Likewise.
10467 (fold_builtin_strrchr): Likewise.
10468 (fold_builtin_strpbrk): Likewise.
10469 (expand_builtin_memory_chk): Likewise.
10470 (fold_builtin_memory_chk): Likewise.
10471 (std_expand_builtin_va_start): Use
10472 sizetype for the call to make_tree and then convert
10473 to the pointer type.
10474 (fold_builtin_memchr): Use POINTER_PLUS_EXPR
10475 instead of PLUS_EXPR for adding to a pointer.
10476 (std_gimplify_va_arg_expr): Use fold_build2 for
10477 the creating of POINTER_PLUS_EXPR. For the BIT_AND_EXPR, cast
10478 the operands to sizetype first and then cast the BIT_AND_EXPR
10479 back to the pointer type.
10480 * fold-const.c (build_range_check): Handle pointer types
10481 specially.
10482 (extract_array_ref): Look for POINTER_PLUS_EXPR instead
10483 of PLUS_EXPR's. Make sure the offset is converted to
10484 sizetype.
10485 (try_move_mult_to_index): Strip the NOPs from the offset.
10486 Remove code argument and replace all uses with PLUS_EXPR.
10487 (fold_to_nonsharp_ineq_using_bound): Handle pointer types
10488 specially. Don't use a pointer type for MINUS_EXPR.
10489 (fold_unary): Handle for (T1)(X op Y),
10490 only p+ as that is the only as that can be handled for
10491 binary operators now.
10492 (fold_binary <case POINTER_PLUS_EXPR>): Add folding of
10493 POINTER_PLUS_EXPR.
10494 <case PLUS_EXPR>: Add folding of PTR+INT into
10495 PTR p+ INT.
10496 Don't call try_move_mult_to_index.
10497 <case MINUS_EXPR>: Fold (PTR0 p+ A) - (PTR1 p+ B)
10498 into (PTR0 - PTR1) + (A - B). Fold (PTR0 p+ A) - PTR1 into
10499 (PTR0 - PTR1) + A iff (PTR0 - PTR1) simplifies.
10500 Don't call try_move_mult_to_index.
10501 (tree_expr_nonnegative_warnv_p): Handle POINTER_PLUS_EXPR.
10502 (tree_expr_nonzero_p): Likewise.
10503 (fold_indirect_ref_1): Look at POINTER_PLUS_EXPR instead
10504 of PLUS_EXPR for the complex expression folding.
10505 * tree-chrec.c (chrec_fold_plus_poly_poly): If the
10506 first chrec is a pointer type, then the second should
10507 be sizetype and not the first's type.
10508 For POINTER_PLUS_EXPR, use a different right hand side type.
10509 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
10510 (chrec_fold_plus_1): For POINTER_PLUS_EXPR, use a
10511 different right hand side type.
10512 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
10513 (chrec_fold_plus): For pointer types, use POINTER_PLUS_EXPR
10514 instead of PLUS_EXPR.
10515 When either operand is zero, convert the other operand.
10516 (chrec_apply): Use chrec_convert_rhs
10517 on the argument x instead of chrec_convert.
10518 (reset_evolution_in_loop): For pointer types, the new_evol
10519 should be sizetype.
10520 (convert_affine_scev): For POINTER_PLUS_EXPR, use a
10521 different right hand side type.
10522 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
10523 (chrec_convert_rhs): New function.
10524 (chrec_convert_aggressive): For POINTER_PLUS_EXPR, use a
10525 different right hand side type.
10526 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
10527 * tree-chrec.h (chrec_convert_rhs): New prototype.
10528 (build_polynomial_chrec): For pointer types, the right hand
10529 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Look for
10530 POINTER_PLUS_EXPR instead of PLUS_EXPR's.
10531 Remove subtraction case as it is always addition now.
10532 Make sure the offset is converted to sizetype.
10533 (fold_stmt_r): Don't handle PLUS_EXPR/MINUS_EXPR specially.
10534 Handle POINTER_PLUS_EXPR like PLUS_EXPR was handled before.
10535 * tree-ssa-loop-ivopts.c (determine_base_object): Abort for
10536 PLUS_EXPR in pointer type.
10537 Handle POINTER_PLUS_EXPR.
10538 (tree_to_aff_combination): Likewise.
10539 (force_expr_to_var_cost): Likewise.
10540 (force_expr_to_var_cost): Likewise. Create a POINTER_PLUS_EXPR
10541 instead of PLUS_EXPR for pointers.
10542 * c-format.c (check_format_arg): Handle POINTER_PLUS_EXPR
10543 instead of PLUS_EXPR of pointer types.
10544 * tree-stdarg.c (va_list_counter_bump): Handle POINTER_PLUS_EXPR
10545 as PLUS_EXPR.
10546 (check_va_list_escapes): Likewise.
10547 (check_all_va_list_escapes): Likewise.
10548 * dwarf2out.c (loc_descriptor_from_tree_1):
10549 Handle POINT_PLUS_EXPR as a PLUS_EXPR.
10550 * expr.c (expand_expr_real_1): Handle POINTER_PLUS_EXPR.
10551 (string_constant): Likewise.
10552 * tree-ssa-address.c (tree_mem_ref_addr): When adding
10553 the offset to the base, use POINTER_PLUS_EXPR.
10554 (add_to_parts): Convert the index to sizetype.
10555 (create_mem_ref): Create A POINTER_PLUS_EXPR for the one case.
10556 * matrix-reorg.c (collect_data_for_malloc_call): Stmt
10557 will now only be either INDIRECT_REF and POINTER_PLUS_EXPR.
10558 Offset only holds something for PLUS_EXPR.
10559 (ssa_accessed_in_tree): Handle POINTER_PLUS_EXPR just as
10560 a PLUS_EXPR.
10561 (analyze_transpose): POINTER_PLUS_EXPR will only show up now
10562 and not PLUS_EXPR.
10563 (analyze_accesses_for_modify_stmt): Likewise.
10564 Remove comment about the type being integral type as it is
10565 wrong now.
10566 (can_calculate_expr_before_stmt): Handle POINTER_PLUS_EXPR as
10567 PLUS_EXPR.
10568 (transform_access_sites): POINTER_PLUS_EXPR will only show up now
10569 and not PLUS_EXPR.
10570 Correct the type which the artimentic is done in (is now
10571 sizetype).
10572 Reindent one loop.
10573 * tree-data-ref.c (split_constant_offset): Handle
10574 POINTER_PLUS_EXPR
10575 * tree-affine.c (tree_to_aff_combination): Likewise.
10576 * c-typeck.c (build_unary_op): For pointers create the increment
10577 as a sizetype. Create a POINTER_PLUS_EXPR instead of PLUS_EXPR
10578 for pointers.
10579 * gimplify.c (gimplify_self_mod_expr): Create a
10580 POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
10581 (gimplify_omp_atomic_fetch_op): Handle POINTER_PLUS_EXPR.
10582 * tree.def (POINTER_PLUS_EXPR): New tree code.
10583 * tree-predcom.c (ref_at_iteration): If we have a pointer
10584 type do the multiplication in sizetype.
10585 * tree-mudflap.c (mf_xform_derefs_1): Create a
10586 POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
10587 * tree-ssa-forwprop.c
10588 (forward_propagate_addr_into_variable_array_index):
10589 Don't expect there to be a cast for the index as that
10590 does not exist anymore.
10591 (forward_propagate_addr_expr_1): Check for POINTER_PLUS_EXPR
10592 instead of PLUS_EXPR.
10593 Don't check for the first operand of the POINTER_PLUS_EXPR
10594 was the index as it cannot be.
10595 Call forward_propagate_addr_into_variable_array_index with
10596 the SSA_NAME instead of the statement.
10597 * varasm.c (const_hash_1): Handle POINTER_PLUS_EXPR.
10598 (compare_constant): Likewise.
10599 (copy_constant): Likewise.
10600 (compute_reloc_for_constant): Likewise.
10601 (output_addressed_constants): Likewise.
10602 (initializer_constant_valid_p): Likewise.
10603 * tree-ssa.c (tree_ssa_useless_type_conversion_1):
10604 Convert the MIN/MAX of the inner type to the outer
10605 type before comparing them.
10606 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Handle
10607 POINTER_PLUS_EXPR instead of PLUS_EXPR.
10608 (issue_prefetch_ref): Create a POINTER_PLUS_EXPR instead
10609 of PLUS_EXPR for pointers.
10610 * tree-inline.c (estimate_num_insns_1): Handle
10611 POINTER_PLUS_EXPR.
10612 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
10613 Create a POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
10614 (bump_vector_ptr): Create a POINTER_PLUS_EXPR
10615 instead of PLUS_EXPR for the pointer increment statement.
10616 (vect_update_ivs_after_vectorizer): For pointer types, create
10617 POINTER_PLUS_EXPR instead of PLUS_EXPR and also create
10618 MULT_EXPR in sizetype.
10619 (vect_gen_niters_for_prolog_loop): Add a cast when creating
10620 byte_misalign.
10621 * tree-object-size.c (plus_expr_object_size): Handle
10622 POINTER_PLUS_EXPR instead of PLUS_EXPR. Removing all the extra
10623 code which is trying to figure out which side is a pointer and
10624 is the index.
10625 (check_for_plus_in_loops_1): Likewise.
10626 (check_for_plus_in_loops): Likewise.
10627 * c-common.c (pointer_int_sum): Create a
10628 POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
10629 * tree-ssa-structalias.c (handle_ptr_arith): Handle
10630 only POINTER_PLUS_EXPR. Removing all the extra
10631 code which is trying to figure out which side is a pointer and
10632 is the index.
10633 * tree-cfg.c (verify_expr): Add extra checking for pointers and
10634 PLUS_EXPR and MINUS_EXPR.
10635 Also add checking to make sure the operands of POINTER_PLUS_EXPR
10636 are correct.
10637 * config/frv/frv.c (frv_expand_builtin_va_start): Use sizetype
10638 with make_tree, instead of a pointer type.
10639 * config/s390/s390.c (s390_va_start): Use POINTER_PLUS_EXPR
10640 for pointers instead of PLUS_EXPR.
10641 (s390_gimplify_va_arg): Likewise.
10642 * config/spu/spu.c (spu_va_start): Create POINTER_PLUS_EXPR
10643 instead of PLUS_EXPR when doing addition on pointer
10644 types. Use sizetype for the second operand.
10645 (spu_gimplify_va_arg_expr): Likewise.
10646 * config/sparc/sparc.c (sparc_gimplify_va_arg): Use
10647 POINTER_PLUS_EXPR instead of PLUS_EXPR when the operand was
10648 a pointer. Don't create a BIT_AND_EXPR for pointer types.
10649 * config/i386/i386.c (ix86_va_start): Use POINTER_PLUS_EXPR
10650 for the pointer addition and also use size_int/sizetype
10651 for the offset.
10652 (ix86_gimplify_va_arg): Likewise.
10653 Perform BIT_AND_EXPR on sizetype arguments.
10654 * config/sh/sh.c (sh_va_start): Call make_tree with sizetype
10655 and convert its result to a pointer type. Use POINTER_PLUS_EXPR
10656 for the pointer additions and also use size_int for the offsets.
10657 (sh_gimplify_va_arg_expr): Use POINTER_PLUS_EXPR for the pointer
10658 additions and also use size_int for the offsets. Perform
10659 BIT_AND_EXPR on sizetype arguments.
10660 * config/ia64/ia64.c (ia64_gimplify_va_arg): Use
10661 POINTER_PLUS_EXPR for pointers and create the
10662 BIT_AND_EXPR in sizetype.
10663 * config/rs6000/rs6000.c (rs6000_va_start): Use POINTER_PLUS_EXPR
10664 instead of PLUS_EXPR for pointer addition.
10665 (rs6000_va_start): Likewise.
10666 Also use sizetype for the offset.
10667 * config/pa/pa.c (reloc_needed): Handle POINTER_PLUS_EXPR
10668 as PLUS_EXPR/MINUS_EXPR.
10669 (hppa_gimplify_va_arg_expr): Don't create MINUS_EXPR or
10670 PLUS_EXPR for pointers, instead use POINTER_PLUS_EXPR.
10671 Don't use BIT_AND_EXPR on a pointer type, convert the
10672 expression to sizetype first.
10673 * config/mips/mips.c (mips_va_start): Use POINTER_PLUS_EXPR
10674 for pointers.
10675 (mips_gimplify_va_arg_expr): Likewise.
10676 Don't create BIT_AND_EXPR in a pointer type.
10677
10678 2007-06-15 Eric Christopher <echristo@apple.com>
10679
10680 * config.gcc (i?86-*-darwin*): Add t-crtfm and t-crtpc.
10681 (x86_64-*-darwin*): Ditto.
10682 * config/i386/darwin.h (CRTEND_SPEC): New. Add support
10683 for above.
10684
10685 2007-06-15 Matthew Wilcox <matthew@wil.cx>
10686
10687 * doc/extend.texi: Document behavior of __attribute__((aligned))
10688 on typedefs.
10689
10690 2007-06-15 Mark Mitchell <mark@codesourcery.com>
10691
10692 * rtlanal.c (note_stores): Improve documentation.
10693
10694 2007-06-15 Bernd Schmidt <bernd.schmidt@analog.com>
10695
10696 * config/bfin/elf.h (ASM_GENERATE_INTERNAL_LABEL,
10697 LOCAL_LABEL_PREFIX): Delete.
10698 * config/bfin/bfin.c (TARGET_ASM_INTERNAL_LABEL): Delete.
10699 (bfin_internal_label): Delete.
10700
10701 2007-06-15 Uros Bizjak <ubizjak@gmail.com>
10702
10703 * libgcc2.c (CEXT): When compiling L_multc3 and L_divtc3,
10704 define to "l" if LIBGCC_LONG_DOUBLE_SIZE == 128,
10705 otherwise define to LIBGCC2_TF_CEXT.
10706 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): New define.
10707 (LIBGCC_TF_CEXT): Ditto.
10708 (TF_SIZE): Ditto.
10709
10710 2007-06-14 Seongbae Park <seongbae.park@gmail.com>
10711
10712 PR rtl-optimization/32339
10713 * df-scan.c (df_uses_record): Don't modify flags but just add to
10714 it for df_ref_record.
10715
10716 2007-06-14 Andrew Pinski <andrew_pinski@playstation.sony.com>
10717
10718 * tree-mudflap.c: Fix whitespace issues.
10719
10720 2007-06-15 Kazu Hirata <kazu@codesourcery.com>
10721
10722 * config/m68k/m68k.c (ASM_DOT, ASM_DOTW, ASM_DOTL): Remove.
10723
10724 2007-06-14 Eric Christopher <echristo@apple.com>
10725
10726 * config/i386/sse.md (movdi_to_sse): Rewrite body.
10727 (movv4sf): Use gcc_unreachable instead of abort.
10728
10729 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
10730
10731 PR target/32268
10732 * config/i386/sfp-machine.h (CMPtype): New define.
10733 (mach stubs): Use CMPtype instead of int as a return type.
10734
10735 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
10736
10737 * config/soft-fp/eqdf2.c, config/soft-fp/eqsf2.c,
10738 config/soft-fp/eqtf2.c, config/soft-fp/gedf2.c,
10739 config/soft-fp/gesf2.c, config/soft-fp/getf2.c,
10740 config/soft-fp/ledf2.c, config/soft-fp/lesf2.c,
10741 config/soft-fp/letf2.c, config/soft-fp/unorddf2.c,
10742 config/soft-fp/unordsf2.c, config/soft-fp/unordtf2.c,
10743 config/soft-fp/soft-fp.h: Update from glibc CVS.
10744
10745 2007-06-14 Bernd Schmidt <bernd.schmidt@analog.com>
10746
10747 * config/bfin/uclinux.h (MFWRAP_SPEC): New.
10748
10749 2007-06-14 Rask Ingemann Lambertsen <rask@sygehus.dk>
10750
10751 PR target/32341
10752 * config/v850/v850.c: Include dataflow header file.
10753 (substitute_ep_register): Fix typo.
10754
10755 2007-06-14 Paolo Bonzini <bonzini@gnu.org>
10756
10757 * configure.ac: Fix earlier checkin.
10758 * configure: Regenerated.
10759
10760 2007-06-14 Paolo Bonzini <bonzini@gnu.org>
10761
10762 * acinclude.m4 (gcc_AC_CHECK_PROG_VER): Remove.
10763 * aclocal.m4: Regenerate.
10764 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS,
10765 ACX_PROG_CC_WARNINGS_ARE_ERRORS,
10766 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_CHECK_PROG_VER.
10767 * configure: Regenerate.
10768 * Makefile.in (LOOSE_WARN): Subst loose_warn.
10769
10770 * Makefile.in (quickstrap): Build libgcc too.
10771
10772 2007-06-14 Paolo Bonzini <bonzini@gnu.org>
10773
10774 * configure.ac: Add --enable-checking=df. Explicitly mention that
10775 the variables are initialized as for "release".
10776 * df-core.c: Use it.
10777 * configure: Regenerate.
10778 * config.in: Regenerate.
10779
10780 2007-06-14 Bob Wilson <bob.wilson@acm.org>
10781
10782 * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use
10783 validate_replace_rtx instead of replace_rtx.
10784 (xtensa_expand_prologue): Call df_insn_rescan after replace_rtx.
10785
10786 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
10787
10788 * config/i386/cygming.h (DWARF_FRAME_REGNUM): Define.
10789 (DWARF2_UNWIND_INFO): Override default if configured with
10790 SJLJ EH disabled.
10791 * config/i386/cygwin.h (STARTFILE_SPEC): Add crtbegin.o.
10792 (ENDFILE_SPEC): Add crtend.o.
10793 * config/i386/mingw32.h (STARTFILE_SEC): Add crtbegin.o.
10794 (ENDFILE_SPEC): Add crtend.o.
10795 (TARGET_USE_JCR_SECTION): Define.
10796 (MD_UNWIND_SUPPORT): Define for 32-bit target.
10797
10798 * config/i386/cygming-crtbegin.c: New file.
10799 * config/i386/cygming-crtend.c: New file.
10800
10801 2007-06-14 Pascal Obry Pascal Obry <obry@adacore.com>
10802
10803 * config/i386/w32-unwind.h: New file.
10804
10805 2007-06-13 Eric Christopher <echristo@apple.com>
10806
10807 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Don't let
10808 the user set a value below STACK_BOUNDARY.
10809
10810 2007-06-13 Thiemo Seufer <ths@networkno.de>
10811
10812 * config/mips/linux.h, config/mips/linux64.h (LIB_SPEC): Always
10813 imply -lpthread for -pthread.
10814
10815 2007-06-13 Kazu Hirata <kazu@codesourcery.com>
10816
10817 * basic-block.h: Remove the prototype for
10818 free_basic_block_vars.
10819 * cfglayout.h: Remove the prototype for
10820 insn_locators_initialize.
10821 * tree.h: Remove the prototype for emit_line_note.
10822
10823 * tree-ssa-pre.c (mergephitemp): Remove.
10824 (init_pre): Don't use mergephitemp.
10825
10826 2007-06-13 Eric Christopher <echristo@apple.com>
10827
10828 * config/i386/i386.c (override_options): If we've specified
10829 an arch then don't use TARGET_SUBTARGET_ISA_DEFAULTs.
10830
10831 2007-06-13 Bob Wilson <bob.wilson@acm.org>
10832
10833 * df-scan.c (df_get_entry_block_def_set): Check if STATIC_CHAIN_REGNUM
10834 is defined.
10835
10836 2007-06-13 Bernd Schmidt <bernd.schmidt@analog.com>
10837
10838 * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Use gen_frame_mem.
10839 * config/bfin/bfin.md (UNSPEC_VOLATILE_STORE_EH_HANDLER): New constant.
10840 (eh_store_handler): New pattern.
10841 (eh_return): Emit it instead of a plain move.
10842
10843 2007-06-13 Uros Bizjak <ubizjak@gmail.com>
10844
10845 * config/i386/i386.c (ix86_init_mmx_sse_builtins)
10846 [__builtin_infq, __builtin_fabsq]: Define usign def_builtin.
10847 [__builtin_ia32_rsqrtps, __builtin_ia32_rsqrtss]: Define using
10848 def_builtin_const.
10849
10850 2007-06-13 Bernd Schmidt <bernd.schmidt@analog.com>
10851
10852 * config/bfin/bfin.c (gen_one_bundle): Delete unused local variables.
10853 (find_next_insn_start, find_load): New functions.
10854 (bfin_reorg): Use them to deal with the fact that parallel insns are
10855 no longer represented as a SEQUENCE.
10856
10857 2007-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
10858
10859 * config/sparc/sparc.c (sparc_override_options): Initialize
10860 fpu mask correctly.
10861
10862 2007-06-13 Dave Korn <dave.korn@artimi.com>
10863
10864 * config/i386/i386.c (ix86_eax_live_at_start_p): Use
10865 df_get_live_out.
10866
10867 2007-06-13 Kazu Hirata <kazu@codesourcery.com>
10868
10869 * auto-inc-dec.c, c-incpath.c, config/c4x/libgcc.S,
10870 config/sh/divcost-analysis, dbgcnt.def, df-core.c,
10871 df-problems.c, df-scan.c, df.h, dominance.c, dse.c, regstat.c,
10872 tree-data-ref.c, tree-ssa-loop-im.c, tree-ssa-loop-prefetch.c,
10873 tree-vect-transform.c: Fix comment typos. Follow spelling
10874 conventions.
10875
10876 2007-06-12 Seongbae Park <seongbae.park@gmail.com>
10877
10878 * df-scan.c (df_get_exit-block_use_set): Always add the stack pointer
10879 to the exit block use set.
10880 (df_insn_delete, df_insn_rescan): Fixed spelling of "deferring".
10881 * gcse.c (cpro_jump): Don't emit barrier in cfglayout mode.
10882 * config/sparc/sparc.c (sparc_check_64): Check df != NULL.
10883
10884 2007-06-12 Seongbae Park <seongbae.park@gmail.com>
10885
10886 * opts.c (common_handle_option): Handle new option -fdbg-cnt-list.
10887 * dbgcnt.c (dbg_cnt_set_limit_by_name): Return value
10888 to indicate an error.
10889 (dbg_cnt_process_single_pair, dbg_cnt_list_all_counters):
10890 New functions.
10891 (dbg_cnt_process_opt): Print an error on a bad argument.
10892 * dbgcnt.h (dbg_cnt_list_all_counters): New function declaration.
10893 * common.opt (-fdbg-cnt-list): New.
10894 * doc/invoke.texi (-fdbg-cnt-list,-fdbg-cnt=): New.
10895
10896 2007-06-12 Eric Botcazou <ebotcazou@adacore.com>
10897
10898 * tree-ssa-alias.c (finalize_ref_all_pointers): Clear pt_anything
10899 flag on ref-all pointers.
10900
10901 2007-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
10902
10903 PR middle-end/31579
10904 * expr.c (expand_expr_addr_expr_1): Call expand_expr
10905 for the offset with the modifier as EXPAND_INITIALIZER
10906 if the modifier is EXPAND_INITIALIZER.
10907 (expand_expr_real_1 <case INTEGER_CST>): Don't force to
10908 a register if we had an overflow.
10909
10910 2007-06-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10911
10912 * real.c (real_isfinite): New.
10913 (real_sqrt): Use it.
10914 * real.h (real_isfinite): New.
10915 * builtins.c: Use it.
10916
10917 2007-06-12 Ian Lance Taylor <iant@google.com>
10918 Daniel Berlin <dberlin@dberlin.org>
10919
10920 PR libstdc++/29286
10921 * tree.def: Add CHANGE_DYNAMIC_TYPE_EXPR.
10922 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Define.
10923 (CHANGE_DYNAMIC_TYPE_LOCATION): Define.
10924 (DECL_NO_TBAA_P): Define.
10925 (struct tree_decl_common): Add no_tbaa_flag field.
10926 * tree-ssa-structalias.c (struct variable_info): Add
10927 no_tbaa_pruning field.
10928 (new_var_info): Initialize no_tbaa_pruning field.
10929 (unify_nodes): Copy no_tbaa_pruning field.
10930 (find_func_aliases): Handle CHANGE_DYNAMIC_TYPE_EXPR.
10931 (dump_solution_for_var): Print no_tbaa_pruning flag.
10932 (set_uids_in_ptset): Add no_tbaa_pruning parameter. Change all
10933 callers.
10934 (compute_tbaa_pruning): New static function.
10935 (compute_points_to_sets): Remove CHANGE_DYNAMIC_TYPE_EXPR nodes.
10936 Call compute_tbaa_pruning.
10937 * tree-ssa-alias.c (may_alias_p): Test no_tbaa_flag for pointers.
10938 * gimplify.c (gimplify_expr): Handle CHANGE_DYNAMIC_TYPE_EXPR.
10939 * gimple-low.c (lower_stmt): Likewise.
10940 * tree-gimple.c (is_gimple_stmt): Likewise.
10941 * tree-ssa-operands.c (get_expr_operands): Likewise.
10942 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
10943 * tree-inline.c (estimate_num_insns_1): Likewise.
10944 (copy_result_decl_to_var): Likewise.
10945 * expr.c (expand_expr_real_1): Likewise.
10946 * tree-pretty-print.c (dump_generic_node): Likewise.
10947 * tree-inline.c (copy_decl_to_var): Copy DECL_NO_TBAA_P flag.
10948 * omp-low.c (omp_copy_decl_2): Likewise.
10949 * print-tree.c (print_node): Print DECL_NO_TBAA_P flag.
10950 * doc/c-tree.texi (Expression trees): Document
10951 CHANGE_DYNAMIC_TYPE_EXPR.
10952
10953 2007-06-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10954
10955 * fold-const.c (fold_binary): Guard (X-X) -> 0 transformation
10956 with !HONOR_NANS and !HONOR_INFINITIES.
10957 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
10958
10959 2007-06-12 Tristan Gingold <gingold@adacore.com>
10960
10961 * gcov.c: Comments updated.
10962 (source_info): Add file_time field.
10963 (source_index): New variable.
10964 (mutiple_files): New variable.
10965 (generate_results): New function extracted from process_file.
10966 (process_file): Save and restore chain of functions, generate
10967 results and free structures only if not merging results.
10968 (release_structures): File names are now freed in create_file_names
10969 (create_file_names): Free previous file names.
10970 (find_source): File date is now read here and modifications in
10971 source files is checked here.
10972 (read_graph_file): Only reverse order of functions for the current
10973 object file.
10974 (make_gcov_file_name): Do not generate long names if input_name is
10975 NULL.
10976 (output_lines): If merging results do not display graph, data and
10977 runs informations.
10978 Checking source file modification is done in find_source.
10979
10980 * doc/gcov.texi: Append an s to sourcefile.
10981
10982 2007-06-12 Bernd Schmidt <bernd.schmidt@analog.com>
10983
10984 * config/bfin/bfin.md (UNSPEC_NOP): New constant.
10985 (forced_nop): New pattern.
10986 * config/bfin/bfin.c: Include "df.h".
10987 (add_to_reg): Use df_regs_ever_live_p instead of regs_ever_live.
10988 (bfin_discover_loop): Use df_get_live_in instead of
10989 global_live_at_start.
10990 (bfin_reorder_loops): Pass 0 to cfg_layout_initialize. Call
10991 df_analyze when done.
10992 (gen_one_bundle): Don't generate SEQUENCE insns, just put modes on
10993 the insns. Use QImode for the final insn in a bundle. Call
10994 df_insn_rescan on generated NOPs; use gen_forced_nop instead of
10995 gen_nop.
10996 (reorder_var_tracking_notes): New function.
10997 (bfin_reorg): Pass no argument to split_all_insns. Don't call
10998 update_life_info. Call df_analyze after scheduling and bundle
10999 generation. Call reorder_var_tracking_notes if generating these
11000 notes. Call df_finish_pass at the end.
11001
11002 2007-06-12 Dirk Mueller <dmueller@suse.de>
11003
11004 * optabs.c (debug_optab_libfuncs): fix gcc_assert to
11005 a comparison, not an assignment.
11006
11007 2007-06-12 Olivier Hainque <hainque@adacore.com>
11008
11009 * tree-nested.c (convert_local_reference): Handle VIEW_CONVERT_EXPR.
11010 Request walking the subtrees only, leaving the current is_lhs/val_only
11011 untouched.
11012 (convert_non_local_reference): Likewise.
11013
11014 2007-06-12 Nathan Sidwell <nathan@codesourcery.com>
11015
11016 * config/m68k/m68k-devices.def (52221, 52223, 5253): New.
11017
11018 2007-06-12 Richard Guenther <rguenther@suse.de>
11019
11020 PR tree-optimization/15353
11021 PR tree-optimization/31657
11022 * passes.c (init_optimization_passes): Add pass_tree_ifcombine.
11023 * timevar.def: Add TV_TREE_IFCOMBINE.
11024 * tree-pass.h (pass_tree_ifcombine): Declare.
11025 * tree-ssa-ifcombine.c: New file.
11026 * tree-ssa-phiopt.c (blocks_in_phiopt_order): Export.
11027 * tree-flow.h (blocks_in_phiopt_order): Declare.
11028 * Makefile.in (OBJS-common): Add tree-ssa-ifcombine.o.
11029 (tree-ssa-ifcombine.o): New dependencies.
11030
11031 2007-06-12 Uros Bizjak <ubizjak@gmail.com>
11032
11033 PR rtl-optimization/32293
11034 * combine.c (simplify_if_then_else): Truncate return from
11035 nonzero_bits() to correct mode.
11036
11037 2007-06-12 Uros Bizjak <ubizjak@gmail.com>
11038
11039 * fold-const (fold_binary) [RDIV_EXPR]: Also optimize a/cbrt(b/c)
11040 into a*cbrt(c/b) if flag_unsafe_math_optimizations is set.
11041
11042 2007-06-11 Diego Novillo <dnovillo@google.com>
11043
11044 * Makefile.in (reload1.o-warn): Remove.
11045
11046 2007-06-11 Seongbae Park <seongbae.park@gmail.com>
11047
11048 * combine.c (subst): Use reg_overlap_mentioned_p
11049 instead of comparing register numbers directly.
11050
11051 2007-06-11 Kenneth Zadeck <zadeck@naturalbridge.com>
11052
11053 * reload1.c (mark_home_live_1): Use the mode parameter.
11054
11055 2007-06-11 Kenneth Zadeck <zadeck@naturalbridge.com>
11056
11057 * df-scan.c (df_insn_delete, df_insn_rescan, df_insn_rescan_all,
11058 df_process_deferred_rescans, df_notes_rescan): Fixed spelling of
11059 word "deferred".
11060 * df-core.c: Ditto.
11061
11062 2007-06-11 Daniel Berlin <dberlin@dberlin.org>
11063
11064 * Merge dataflow-branch into mainline (see ChangeLog.dataflow)
11065
11066 2007-06-11 Uros Bizjak <ubizjak@gmail.com>
11067
11068 * config/i386/i386.md ("*movtf_internal): Penalize moves to and
11069 from integer registers.
11070 (FP mode splitters): Handle TFmode.
11071
11072 2007-06-11 Eric Botcazou <ebotcazou@adacore.com>
11073
11074 * tree-ssa-structalias.c (find_what_p_points_to): Return false
11075 for ref-all pointers that point-to anything.
11076
11077 2007-06-11 Joseph Myers <joseph@codesourcery.com>
11078
11079 * config/arm/arm.c (arm_output_dwarf_dtprel,
11080 TARGET_ASM_OUTPUT_DWARF_DTPREL): New.
11081
11082 2007-06-11 Bernd Schmidt <bernd.schmidt@analog.com>
11083
11084 * config/bfin/bfin.md (movdi_insn, movsi_insn, movv2hi_insn,
11085 movhi_insn, movqi_insn, movsf_insn, movdf_insn): Don't allow constant
11086 to memory moves.
11087
11088 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
11089
11090 * tree.c (signed_or_unsigned_type_for): New.
11091 (unsigned_type_for): Use signed_or_unsigned_type_for.
11092 (signed_type_for): Use signed_or_unsigned_type_for.
11093 * tree.h (signed_or_unsigned_type_for): New.
11094 (get_signed_or_unsigned_type): Remove.
11095 * fold-const.c (fold_negate_expr): Use signed_type_for instead of
11096 lang_hooks.types.signed_type
11097 (size_diffop): Likewise.
11098 (all_ones_mask_p): Likewise.
11099 (build_range_check): Likewise.
11100 (fold_cond_expr_with_comparison): Likewise.
11101 (fold_cond_expr_with_comparison): Likewise.
11102 (unextend): Likewise.
11103 (extract_muldiv_1): Likewise.
11104 (fold_single_bit_test_into_sign_test): Likewise.
11105 (fold_binary): Likewise.
11106 (fold_ternary): Likewise.
11107 (operand_equal_for_comparison_p): Use signed_or_unsigned_type_for
11108 instead of get_signed_or_unsigned_type.
11109 * c-objc-common.h (LANG_HOOKS_SIGNED_TYPE): Remove.
11110 (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
11111 * expr.c (signed_or_unsigned_type_for): Use
11112 signed_or_unsigned_type_for instead of get_signed_or_unsigned_type.
11113 * langhooks.c (get_signed_or_unsigned_type): Remove.
11114 (lhd_signed_or_unsigned_type): Remove.
11115 * langhooks.h (lang_hooks_for_types): Remove signed_type and
11116 signed_or_unsigned_type.
11117 (lhd_signed_or_unsigned_type): Remove.
11118 * expmed.c (make_tree): Use signed_type_for instead of
11119 lang_hooks.types.signed_type.
11120 * c-common.c (same_scalar_type_ignoring_signedness): Use
11121 c_common_signed_type instead of lang_hooks.types.signed_type.
11122 (c_common_unsigned_type): New.
11123 (c_common_signed_type): Just call c_common_signed_or_unsigned_type.
11124 (shorten_compare): Use c_common_unsigned_type instead of
11125 c_common_signed_or_unsigned_type.
11126 (c_common_nodes_and_builtins): Use c_common_unsigned_type instead of
11127 unsigned_type_for.
11128 * convert.c (convert_to_integer): Use signed_type_for instead of
11129 lang_hooks.types.signed_type.
11130 * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
11131 (LANG_HOOK_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_SIGNED_TYPE and
11132 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE.
11133 * c-format.c (check_format_types): Use c_common_unsigned_type
11134 instead of unsigned_type_for.
11135 * c-decl.c (groakdeclarator): Likewise.
11136 * c-typeck.c (convert_for_assignment): Likewise.
11137 * c-common.h (c_common_unsigned_type): New.
11138
11139 2007-06-11 Uros Bizjak <ubizjak@gmail.com>
11140
11141 PR target/32280
11142 * config/i386/sse.md ("sse2_ashlti", "sse2_lshrti3"): Move ...
11143 * config/i386/i386.md ("sse2_ashlti", "sse2_lshrti3"): ... to here.
11144
11145 2007-06-11 Uros Bizjak <ubizjak@gmail.com>
11146
11147 PR middle-end/32279
11148 * fold-const (fold_binary) [RDIV_EXPR]: Optimize a/sqrt(b/c)
11149 into a*sqrt(c/b) if flag_unsafe_math_optimizations is set.
11150
11151 2007-06-10 Jan Sjodin <jan.sjodin@amd.com>
11152 Sebastian Pop <sebpop@gmail.com>
11153
11154 * lambda-code.c (remove_iv): New.
11155 (lambda_loopnest_to_gcc_loopnest): Use remove_iv.
11156
11157 2007-06-10 Zdenek Dvorak <dvorakz@suse.cz>
11158
11159 * tree-data-ref.c (dr_analyze_alias): Handle case smt is NULL.
11160 * tree-predcom.c (mark_virtual_ops_for_renaming): Exported.
11161 * tree-ssa-loop-prefetch.c: Include optabs.h.
11162 (FENCE_FOLLOWING_MOVNT): New macro.
11163 (struct mem_ref): Add independent_p and storent_p fields.
11164 (record_ref): Initalize the new fields.
11165 (gather_memory_references_ref): Return true if the reference
11166 could be analysed.
11167 (gather_memory_references): Check whether all memory accesses
11168 in loop were recorded.
11169 (should_issue_prefetch_p): Return false for nontemporal stores.
11170 (nontemporal_store_p, mark_nontemporal_store, emit_mfence_after_loop,
11171 may_use_storent_in_loop_p, mark_nontemporal_stores): New functions.
11172 (determine_loop_nest_reuse): Detect independent memory references.
11173 (loop_prefetch_arrays): Call mark_nontemporal_stores.
11174 * tree-flow.h (mark_virtual_ops_for_renaming): Declare.
11175 * Makefile.in (tree-ssa-loop-prefetch.o): Add OPTABS_H dependency.
11176 * config/i386/i386.h (x86_mfence): Declare.
11177 (FENCE_FOLLOWING_MOVNT): Return x86_mfence.
11178 * config/i386/i386.c (x86_mfence): New variable.
11179 (ix86_init_mmx_sse_builtins): Initialize x86_mfence.
11180
11181 * tree-pretty-print.c (dump_generic_node): Mark nontemporal stores.
11182 * optabs.c (init_optabs): Initialize storent_optab.
11183 * optabs.h (enum optab_index): Add OTI_storent.
11184 (storent_optab): Declare.
11185 * genopinit.c (optabs): Add initialization for storent_optab.
11186 * tree.h (MOVE_NONTEMPORAL): New macro.
11187 * expr.c (expand_assignment, store_expr, store_constructor_field,
11188 store_constructor, store_field, expand_expr_real_1): Propagate
11189 nontemporality of the expanded store.
11190 (emit_storent_insn): New function.
11191 * expr.h (expand_assignment, store_expr): Declaration changed.
11192 * function.c (assign_parm_setup_reg): Pass false as nontemporality
11193 to expand_assignment.
11194 * stmt.c (expand_asm_expr): Ditto.
11195 * calls.c (initialize_argument_information): Pass false as
11196 nontemporality to store_expr.
11197 * config/i386/sse.md (storentv4sf, storentv2df, storentv2di,
11198 storentsi): New.
11199
11200 2007-06-09 Daniel Berlin <dberlin@dberlin.org>
11201
11202 * tree-ssa-structalias.c (set_uids_in_ptset): Add is_deref'd
11203 parameter, use it.
11204 (find_what_p_points_to): Pass new parameter to set_uids_in_ptset.
11205
11206 2007-06-09 Daniel Berlin <dberlin@dberlin.org>
11207
11208 * tree-data-ref.c (dr_may_alias_p): Check that decl_a != decl_b,
11209 and allow DECL_P here.
11210
11211 2007-06-09 Zdenek Dvorak <dvorakz@suse.cz>
11212
11213 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs,
11214 follow_ssa_edge_in_condition_phi, follow_ssa_edge): Keep more precise
11215 track of the size of the expression.
11216 * cfghooks.c (merge_blocks): Remove block from loops structure only
11217 after call of the merge_blocks hook.
11218
11219 2007-06-09 Tom Tromey <tromey@redhat.com>
11220
11221 * c-decl.c (grokdeclarator): Added 'deprecated_state' argument.
11222 (deprecated_state): Removed.
11223 (start_decl): Update.
11224 (enum deprecated_states): Moved earlier.
11225 (groktypename): Update.
11226 (push_parm_decl): Likewise.
11227 (grokfield): Likewise.
11228 (start_function): Likewise.
11229
11230 2007-06-09 Ian Lance Taylor <iant@google.com>
11231
11232 PR tree-optimization/32169
11233 * tree-vrp.c (extract_range_from_unary_expr): For NOP_EXPR and
11234 CONVERT_EXPR, check whether min and max both converted to an
11235 overflow infinity representation.
11236
11237 2007-06-08 Eric Botcazou <ebotcazou@adacore.com>
11238
11239 * reload1.c (fixup_abnormal_edges): Clear bb field for insns
11240 not inserted on the edge.
11241
11242 2007-06-08 Bob Wilson <bob.wilson@acm.org>
11243
11244 * config/xtensa/lib1funcs.asm (__udivsi3): Use hardware divide
11245 instructions if they are supported.
11246 (__divsi3, __umodsi3, __modsi3): Likewise.
11247 (__ashldi3, __ashrdi3, __lshrdi3): New.
11248 * config/xtensa/t-xtensa (LIB1ASMFUNCS): Add DImode shift functions.
11249
11250 2007-06-08 Harsha Jagasia <harsha.jagasia@amd.com>
11251 Tony Linthicum <tony.linthicum@amd.com>
11252
11253 * doc/invoke.texi: Add fvect-cost-model flag.
11254 * common.opt (fvect-cost-model): New flag.
11255 * tree-vectorizer.c (new_stmt_vec_info): Initialize inside and outside
11256 cost fields in stmt_vec_info struct for STMT.
11257 * tree-vectorizer.h (stmt_vec_info): Define inside and outside cost
11258 fields in stmt_vec_info struct and access functions for the same.
11259 (TARG_COND_BRANCH_COST): Define cost of conditional branch.
11260 (TARG_VEC_STMT_COST): Define cost of any vector operation, excluding
11261 load, store and vector to scalar operation.
11262 (TARG_VEC_TO_SCALAR_COST): Define cost of vector to scalar operation.
11263 (TARG_VEC_LOAD_COST): Define cost of aligned vector load.
11264 (TARG_VEC_UNALIGNED_LOAD_COST): Define cost of misasligned vector load.
11265 (TARG_VEC_STORE_COST): Define cost of vector store.
11266 (vect_estimate_min_profitable_iters): Define new function.
11267 * tree-vect-analyze.c (vect_analyze_operations): Add a compile-time
11268 check to evaluate if loop iterations are less than minimum profitable
11269 iterations determined by cost model or minimum vect loop bound defined
11270 by user, whichever is more conservative.
11271 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Add a
11272 run-time check to evaluate if loop iterations are less than minimum
11273 profitable iterations determined by cost model or minimum vect loop
11274 bound defined by user, whichever is more conservative.
11275 (vect_estimate_min_profitable_iterations): New function to estimate
11276 mimimimum iterartions required for vector version of loop to be
11277 profitable over scalar version.
11278 (vect_model_reduction_cost): New function.
11279 (vect_model_induction_cost): New function.
11280 (vect_model_simple_cost): New function.
11281 (vect_cost_strided_group_size): New function.
11282 (vect_model_store_cost): New function.
11283 (vect_model_load_cost): New function.
11284 (vectorizable_reduction): Call vect_model_reduction_cost during
11285 analysis phase.
11286 (vectorizable_induction): Call vect_model_induction_cost during
11287 analysis phase.
11288 (vectorizable_load): Call vect_model_load_cost during analysis phase.
11289 (vectorizable_store): Call vect_model_store_cost during analysis phase.
11290 (vectorizable_call, vectorizable_assignment, vectorizable_operation,
11291 vectorizable_promotion, vectorizable_demotion): Call
11292 vect_model_simple_cost during analysis phase.
11293
11294 2007-06-08 Simon Baldwin <simonb@google.com>
11295
11296 * reg-stack.c (get_true_reg): Readability change. Moved default case
11297 label into direct switch statement scope.
11298
11299 2007-06-08 Simon Baldwin <simonb@google.com>
11300
11301 * tree-flow-inline.h (var_ann): Replaced erroneous '=' assignment
11302 in gcc_assert() with '==' comparison.
11303
11304 2007-06-08 Uros Bizjak <ubizjak@gmail.com>
11305
11306 * config/i386/i386.c (override_options): Merge TARGET_SSE4_2 and
11307 TARGET_ABM handling of x86_popcnt variable.
11308
11309 2007-06-08 Uros Bizjak <ubizjak@gmail.com>
11310
11311 * doc/extend.texi (X86 Built-in Functions): Document __builtin_fabsq,
11312 __builtin_copysignq and __builtin_infq built-in functions.
11313
11314 2007-06-08 Uros Bizjak <ubizjak@gmail.com>
11315
11316 * doc/extend.texi (X86 Built-in Functions): Add missing `@item's in
11317 SSE4.2 section. Correct built-in function names in SSE4A section.
11318
11319 2007-06-08 Uros Bizjak <ubizjak@gmail.com>
11320
11321 PR tree-optimization/32243
11322 * tree-vect-transform.c (vectorizable_type_promotion): Move check
11323 for ncopies after ratio check between nunits_out and nunits_in.
11324 (vectorizable_type_demotion): Remove single-use variable "scalar_type".
11325
11326 2007-06-08 Dorit Nuzman <dorit@il.ibm.com>
11327
11328 PR tree-optimization/32224
11329 * tree-vect-analyze.c (vect_determine_vectorization_factor): Fail
11330 vectorization upon a non GIMPLE_MODIFY_STMT.
11331
11332 2007-06-08 Christian Bruel <christian.bruel@st.com>
11333
11334 PR target/29953
11335 * config/sh/sh.md (doloop_end): New pattern and splitter.
11336 * loop-iv.c (simple_rhs_p): Check for hardware registers.
11337
11338 2007-06-08 Zdenek Dvorak <dvorakz@suse.cz>
11339
11340 PR middle-end/32209
11341 * dominance.c (debug_dominance_tree, debug_dominance_tree_1): New
11342 functions.
11343 (verify_dominators): Do not change dominance tree.
11344
11345 2007-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
11346
11347 * config/sh/constraints.md: New file.
11348 * config/sh/sh.c: Include tm-constrs.h.
11349 (reg_class_from_letter): Remove.
11350 (prepare_cbranch_operands): Use satisfies_constraint_*
11351 function instead of macro.
11352 (andcosts, broken_move, sh_secondary_reload): Likewise.
11353 * config/sh/predicates.md (trapping_target_operand): Likewise.
11354 (and_operand, arith_operand, arith_reg_or_0_operand,
11355 cmp_operand, logical_operand, target_operand,
11356 ua_address_operand, ua_offset, xor_operand): Likewise.
11357 * config/sh/sh.md: Include constraints.md.
11358 (*movsicc_t_false): Use satisfies_constraint_* function
11359 instead of macro.
11360 (*movsicc_t_true, ashlsi3_std, ashlhi3_k, lshrsi3_m,
11361 lshrsi3_k, movsi_const_16bit+2, *movhi_media+1,
11362 movdi_const_16bit+1, beq, bne, *ptb): Likewise.
11363 * config/sh/sh.h (reg_class_from_letter): Remove prototype.
11364 (OVERRIDE_OPTIONS): Don't modify reg_class_from_letter.
11365 (REG_CLASS_FROM_CONSTRAINT): Remove.
11366 (CONSTRAINT_LEN, CONST_OK_FOR_I20, CONST_OK_FOR_I,
11367 CONST_OK_FOR_J, CONST_OK_FOR_K16, CONST_OK_FOR_K,
11368 CONST_OK_FOR_P27, CONST_OK_FOR_P, CONST_OK_FOR_M,
11369 CONST_OK_FOR_N, CONST_OK_FOR_CONSTRAINT_P,
11370 CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
11371 (SECONDARY_INOUT_RELOAD_CLASS): Use satisfies_constraint_*
11372 function instead of macro.
11373 (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
11374 (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_A,
11375 EXTRA_CONSTRAINT_Bsc, EXTRA_CONSTRAINT_B,
11376 EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Remove.
11377 (IS_PC_RELATIVE_LOAD_ADDR_P): New macro.
11378 (IS_LITERAL_OR_SYMBOLIC_S16_P): Likewise.
11379 (IS_LITERAL_OR_SYMBOLIC_U16_P): Likewise.
11380 (IS_NON_EXPLICIT_CONSTANT_P): Likewise.
11381 (EXTRA_CONSTRAINT_Csy, EXTRA_CONSTRAINT_Z, EXTRA_CONSTRAINT_W,
11382 EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C,
11383 EXTRA_MEMORY_CONSTRAINT, EXTRA_CONSTRAINT_Sr0,
11384 EXTRA_CONSTRAINT_Sua, EXTRA_CONSTRAINT_S,
11385 EXTRA_CONSTRAINT_STR): Likewise.
11386 (GO_IF_LEGITIMATE_INDEX): Fix indentation.
11387
11388 2007-06-07 Geoffrey Keating <geoffk@apple.com>
11389
11390 * config/i386/darwin.h (STACK_BOUNDARY): Define.
11391
11392 2007-06-07 Simon Martin <simartin@users.sourceforge.net>
11393
11394 PR c++/30759
11395 * c-common.h (flag_cpp0x): Replaced by...
11396 (cxx_dialect): ... this new variable specifying the C++ dialect that
11397 is used.
11398 * c-common.c (flag_cpp0x): Removed.
11399 (cxx_dialect): Defined.
11400 * c-cppbuiltin.c (c_cpp_builtins): flag_cpp0x rewritten in terms of
11401 cxx_dialect.
11402 * c-opts.c (c_common_post_options): Likewise.
11403 (set_std_cxx98): Set cxx_dialect to cxx98.
11404 (set_std_cxx0x): Set cxx_dialect to cxx0x.
11405
11406 2007-06-07 Geoffrey Keating <geoffk@apple.com>
11407 Hui-May Chang <hm.chang@apple.com>
11408
11409 * doc/invoke.texi (Darwin Options): Update documentation for
11410 -mmacosx-version-min.
11411 * config.gcc (*-*-darwin*): Set extra_gcc_objs.
11412 * config/darwin-driver.c: New file.
11413 * config/darwin.h (GCC_DRIVER_HOST_INITIALIZATION): New.
11414 * config/t-darwin (darwin-driver.o): New rule.
11415
11416 * config/darwin-c.c (version_as_macro): Ignore low digit.
11417
11418 2007-06-07 Uros Bizjak <ubizjak@gmail.com>
11419
11420 * config/i386/i386.md (standard sse constant splitter): Handle TFmode.
11421 (negtf2, abstf2, *absnegtf2_sse): New insn patterns.
11422 (CSGNMODE): New mode macro.
11423 (CSGNVMODE): New mode attribute.
11424 (copysign<mode>3): Rename from copysingsf3 and copysigndf3. Macroize
11425 expander using CSGNMODE mode macro. Handle TFmode.
11426 (copysign<mode>3_const): Rename from copysignsf3_const and
11427 copysigndf3_const. Macroize pattern using CSGNMODE mode macro.
11428 Handle TFmode.
11429 (copysign<mode>3_var): Rename from copysignsf3_var and
11430 copysigndf3_var. Macroize pattern using CSGNMODE mode macro.
11431 Handle TFmode.
11432 (copysign<mode>3_var splitter): Macroize pattern using CSGNMODE
11433 mode macro. Handle TFmode.
11434 * config/i386/sse.md (andtf3, *andtf3, *nandtf3): New insn patterns.
11435 (iortf3, *iortf3): Ditto.
11436 (xortf3, *xortf3): Ditto.
11437 * config/i386/i386.c (ix86_build_signbit_mask): Create scalar
11438 TFmode and TImode masks.
11439 (ix86_expand_copysign): Expand TFmode copysign insn.
11440 (IX86_BUILTIN_INFQ): New.
11441 (IX86_BUILTIN_FABSQ): Ditto.
11442 (IX86_BUILTIN_COPYSIGNQ): Ditto.
11443 (ix86_init_mmx_sse_builtins) [__builtin_infq]: New builtin definition.
11444 [__builtin_fabsq]: Ditto.
11445 [__builtin_copysignq]: Ditto.
11446 (ix86_expand_builtin) [IX86_BUILTIN_INFQ]: Expand builtin.
11447 [IX86_BUILTIN_FABSQ]: Expand builtin using ix86_expand_unop_builtin().
11448 [IX86_BUILTIN_COPYSIGNQ]: Expand builtin using
11449 ix86_expand_binop_builtin().
11450
11451 2007-06-07 Bob Wilson <bob.wilson@acm.org>
11452
11453 * config/xtensa/lib1funcs.asm: Clean up whitespace.
11454
11455 2007-06-07 Steve Ellcey <sje@cup.hp.com>
11456
11457 PR target/31850
11458 * rtl.h (push_to_sequence2): New.
11459 * emit-rtl.c (push_to_sequence2): New.
11460 * function.c (assign_parm_data_all): Add new fields.
11461 (assign_parm_setup_block): Call push_to_sequence2 instead of
11462 push_to_sequence.
11463 (assign_parm_setup_reg): Ditto.
11464 (assign_parm_setup_stack): Ditto.
11465 (assign_parms_unsplit_complex): Ditto.
11466 (assign_parms): Change field name.
11467
11468 2007-06-07 Zdenek Dvorak <dvorakz@suse.cz>
11469
11470 PR tree-optimization/32220
11471 * tree-predcom.c (eliminate_temp_copies): Handle the case that loop
11472 phi node is reached before defining statement.
11473
11474 2007-06-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
11475
11476 PR tree-opt/32231
11477 * tree-vect-transform.c (vectorizable_call): Call update_stmt
11478 after changing the right hand side of the assignment.
11479
11480 2007-06-06 Eric Christopher <echristo@apple.com>
11481
11482 * config.gcc (i?86-*-darwin*): Remove arch parameter.
11483 (x86_64-*-darwin*): Ditto.
11484 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Define.
11485 (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
11486
11487 2007-06-06 Thomas Neumann <tneumann@users.sourceforge.net>
11488
11489 * tree-ssa-alias-warnings.c (maybe_add_match): Cast according to the
11490 coding conventions.
11491 (add_key): Likewise.
11492 * tree-ssa.c (init_tree_ssa): Use type safe memory macros.
11493 * tree-ssa-ccp.c (ccp_fold_builtin): Avoid using C++ keywords as
11494 variable names.
11495 * tree-ssa-coalesce.c (find_coalesce_pair): Use type safe memory
11496 macros.
11497 (add_cost_one_coalesce): Likewise.
11498 * tree-ssa-copy.c (merge_alias_info): Avoid using C++ keywords as
11499 variable names. Rename orig to orig_name for consistency.
11500 * tree-ssa-dom.c (dom_thread_across_edge): Cast according to the
11501 coding conventions.
11502 (cprop_into_successor_phis): Avoid using C++ keywords as variable
11503 names.
11504 (record_equivalences_from_stmt): Likewise.
11505 * tree-ssa-dse.c (dse_initialize_block_local_data): Cast according to
11506 the coding conventions.
11507 (memory_ssa_name_same): Likewise.
11508 (dse_optimize_stmt): Likewise.
11509 (dse_record_phis): Likewise.
11510 (dse_finalize_block): Likewise.
11511 * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Avoid using C++
11512 keywords as variable names.
11513 (may_move_till): Cast according to the coding conventions.
11514 (force_move_till_expr): Avoid using C++ keywords as variable names.
11515 (force_move_till): Cast according to the coding conventions.
11516 (memref_hash): Likewise.
11517 (memref_eq): Likewise.
11518 (gather_mem_refs_stmt): Likewise.
11519 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Avoid
11520 using C++ keywords as variable names.
11521 (idx_find_step): Cast according to the coding conventions.
11522 (idx_record_use): Likewise.
11523 (find_depends): Likewise.
11524 (prepare_decl_rtl): Likewise.
11525 (mbc_entry_hash): Likewise.
11526 (mbc_entry_eq): Likewise.
11527 * tree-ssa-loop-niter.c (SWAP): Use the correct the type for tmp.
11528 (simplify_replace_tree): Avoid using C++ keywords as variable names.
11529 (idx_infer_loop_bounds): Cast according to the coding conventions.
11530 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
11531 * tree-ssa-math-opts.c (occ_new ): Likwise.
11532 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Use type safe memory
11533 macros.
11534 * tree-ssa-operands.c (add_def_op): Avoid using C++ keywords as
11535 variable names.
11536 (add_use_op): Likewise.
11537 (add_vop): Likewise.
11538 (add_vuse_op): Likewise.
11539 (add_vdef_op): Likewise.
11540 (get_expr_operands): Likewise.
11541 (push_stmt_changes): Use type safe memory macros.
11542 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Avoid using C++
11543 keywords as variable names.
11544 (conditional_replacement): Likewise.
11545 (minmax_replacement): Likewise.
11546 (abs_replacement): Likewise.
11547 * tree-ssa-pre.c (create_expression_by_pieces): Cast according to the
11548 coding conventions.
11549 (insert_fake_stores): Avoid using C++ keywords as variable names.
11550 * tree-ssa-reassoc.c (add_to_ops_vec): Cast according to the coding
11551 conventions.
11552 * tree-ssa-structalias.c (heapvar_lookup): Likewise.
11553 (heapvar_insert): Use type safe memory macros.
11554 (new_var_info): Cast according to the coding conventions.
11555 (new_constraint): Likewise.
11556 (remove_preds_and_fake_succs): Use type safe memory macros.
11557 * tree-ssa-threadupdate.c (thread_block): Cast according to the coding
11558 conventions.
11559 (thread_single_edge): Likewise.
11560 (thread_through_loop_header): Likewise.
11561
11562 2007-06-06 Eric Christopher <echristo@apple.com>
11563
11564 * config/i386/i386.c (override_options): Move handling
11565 of TARGET_SUBTARGET* earlier.
11566
11567 2007-06-06 Paolo Bonzini <bonzini@gnu.org>
11568
11569 * genmodes.c (tagged_printf, emit_insn_modes_h): Don't
11570 use %n on printf.
11571
11572 2007-06-06 Zdenek Dvorak <dvorakz@suse.cz>
11573
11574 * haifa-sched.c (restore_bb_notes): Clear bb field of the notes
11575 emited outside of basic block.
11576 * cfgbuild.c (find_bb_boundaries): Clear bb field for insns between
11577 the created blocks.
11578 * rtl.h (delete_insn_chain): Declaration changed.
11579 * cfgrtl.c (delete_insn_chain): Add option to clear bb field for
11580 non-removed insns.
11581 (rtl_delete_block, rtl_merge_blocks): Pass true to delete_insn_chain.
11582 (delete_insn_chain_and_edges, try_redirect_by_replacing_jump,
11583 rtl_tidy_fallthru_edge, cfg_layout_merge_blocks): Pass false
11584 to delete_insn_chain.
11585 (rtl_verify_flow_info_1): Verify that the insns in header and footer
11586 do not have bb field set.
11587 (rtl_verify_flow_info): Verify that insns between basic blocks do not
11588 have bb field set.
11589 * recog.c (peephole2_optimize): Add argument to delete_insn_chain call.
11590 * cfgcleanup.c (try_optimize_cfg): Ditto.
11591
11592 2007-06-06 Thomas Neumann <tneumann@users.sourceforge.net>
11593
11594 * lambda-code.c (struct lambda_lattice_s): Add a name to the struct.
11595 (lambda_body_vector_new): Use type safe memory macros.
11596 (lambda_linear_expression_new): Likewise.
11597 (lambda_loopnest_new): Likewise.
11598 (lambda_lattice_new): Likewise.
11599 (replace_uses_equiv_to_x_with_y): Cast according to the coding
11600 conventions. Use type safe memory macros.
11601 * lambda.h (struct lambda_trans_matrix_s): Add a name to the struct.
11602 (lambda_body_vector_s): Likewise.
11603 * lambda-mat.c (lambda_matrix_new): Use type safe memory macros.
11604 * lambda-trans.c (lambda_trans_matrix_new): Likewise.
11605
11606 2007-06-06 Richard Guenther <rguenther@suse.de>
11607
11608 * tree-ssa-forwprop.c (forward_propagate_into_cond): Return 2
11609 if we need to schedule cfg_cleanup.
11610 (tree_ssa_forward_propagate_single_use_vars): Do so.
11611
11612 2007-06-06 Ian Lance Taylor <iant@google.com>
11613
11614 * fold-const.c (merge_ranges): If range_successor or
11615 range_predecessor fail, just return 0.
11616
11617 2007-06-06 Uros Bizjak <ubizjak@gmail.com>
11618
11619 PR tree-optimization/32216
11620 * tree-vectorizer.c (supportable_widening_operation): Determine
11621 signedness of FIX_TRUNC_EXPR from output operand.
11622 (supportable_narrowing_operation): Ditto.
11623 * tree-vect-generic.c (expand_vector_operations_1): Determine
11624 signedness of VEC_UNPACK_FLOAT_HI_EXPR and VEC_UNPACK_FLOAT_LO_EXPR
11625 from input operand.
11626
11627 2007-06-06 Thomas Neumann <tneumann@users.sourceforge.net>
11628
11629 * config/i386/i386.c (enum pta_flags): Move out of struct scope...
11630 (struct pta): ...from here. Change flags to unsigned to avoid
11631 excessive casting (as it is used as a bit mask).
11632 (override_options): Add casts according to the coding convenventions.
11633 (x86_64_elf_unique_section): Likewise.
11634 (examine_argument): Avoid using C++ keywords as variable names.
11635 (construct_container): Likewise.
11636 (legitimize_pic_address): Likewise.
11637 (get_dllimport_decl): Cast according to the coding conventions. Use
11638 type safe memory macros.
11639 (legitimize_address): Cast according to the coding conventions.
11640 (emit_i387_cw_initialization): Corrected the type of slot to enum
11641 ix86_stack_slot.
11642 (ix86_init_machine_status): Use type safe memory macros.
11643 (bdesc_pcmpestr): Use UNKNOWN instead of integer 0.
11644 (bdesc_pcmpistr): Likewise.
11645 (bdesc_crc32): Likewise.
11646 (bdesc_sse_3arg): Likewise.
11647 (bdesc_2arg): Likewise.
11648 (bdesc_1arg): Likewise.
11649 (ix86_expand_sse_pcmpestr): Cast according to the coding conventions.
11650 (ix86_expand_sse_pcmpistr): Likewise.
11651 (ix86_expand_vec_set_builtin): Use EXPAND_NORMAL instead of integer 0.
11652 (ix86_builtin_vectorized_function): Change the type of fn to unsigned
11653 int to match the langhook definition.
11654 (ix86_builtin_conversion): Change the type of code to unsigned init to
11655 match the langhook definition.
11656 (ix86_preferred_reload_class): Avoid using C++ keywords as variable
11657 names.
11658 (ix86_preferred_output_reload_class): Likewise.
11659 (ix86_cannot_change_mode_class): Likewise.
11660 (ix86_memory_move_cost): Likewise.
11661 (ix86_rtx_costs): Cast the outer_code parameter to enum rtx_code to
11662 avoid excessive casting later on.
11663 (x86_output_mi_thunk): Avoid using C++ keywords as variable names.
11664
11665 2007-06-06 Uros Bizjak <ubizjak@gmail.com>
11666
11667 * config/i386/sse.md (sse4_2_pcmpestr_cconly): Prefer pcmpestrm
11668 as flags setting insn.
11669 (sse4_2_pcmpistr_cconly): Prefer pcmpistrm as flags setting insn.
11670
11671 2007-06-06 Uros Bizjak <ubizjak@gmail.com>
11672
11673 * config/i386/i386.md (UNSPEC_ROUNDP, UNSPEC_ROUNDS): Remove.
11674 (UNSPEC_ROUND): New.
11675 ("sse4_1_round<mode>2"): New insn pattern.
11676 ("rint<mode>2"): Expand using "sse4_1_round<mode>2" pattern for
11677 SSE4.1 targets.
11678 ("floor<mode>2"): Rename from floordf2 and floorsf2. Macroize
11679 expander using SSEMODEF mode macro. Expand using
11680 "sse4_1_round<mode>2" pattern for SSE4.1 targets.
11681 ("ceil<mode>2"): Rename from ceildf2 and ceilsf2. Macroize
11682 expander using SSEMODEF mode macro. Expand using
11683 "sse4_1_round<mode>2" pattern for SSE4.1 targets.
11684 ("btrunc<mode>2"): Rename from btruncdf2 and btruncsf2. Macroize
11685 expander using SSEMODEF mode macro. Expand using
11686 "sse4_1_round<mode>2" pattern for SSE4.1 targets.
11687 * config/i386/sse.md ("sse4_1_roundpd", "sse4_1_roundps"): Use
11688 UNSPEC_ROUND instead of UNSPEC_ROUNDP.
11689 ("sse4_1_roundsd", "sse4_1_roundss"): Use UNSPEC_ROUND instead of
11690 UNSPEC_ROUNDS.
11691
11692 2007-06-06 Jan Sjodin <jan.sjodin@amd.com>
11693 Sebastian Pop <sebpop@gmail.com>
11694
11695 * lambda.h (build_linear_expr): New.
11696 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression):
11697 Use build_linear_expr, call fold and force_gimple_operand.
11698 (lambda_loopnest_to_gcc_loopnest): Check that there is
11699 something to insert.
11700 * testsuite/gcc.dg/tree-ssa/ltrans-6.c: New.
11701
11702 2007-06-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
11703
11704 PR preprocessor/23479
11705 * doc/extend.texi: Document the 0b-prefixed binary integer
11706 constant extension.
11707
11708 2007-06-05 Uros Bizjak <ubizjak@gmail.com>
11709
11710 PR tree-optimization/32215
11711 * tree-vectorizer.c (supportable_widening_operation): Return false
11712 for unsupported FIX_TRUNC_EXPR tree code.
11713 (supportable_narrowing_operation): Ditto for FLOAT_EXPR tree code.
11714
11715 2007-06-06 Nathan Froyd <froydnj@codesourcery.com>
11716
11717 * config/rs6000/rs6000.h (FIXED_SCRATCH): Use r0 as a scratch
11718 register on SPE targets. Change documentation to reflect
11719 reality.
11720 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
11721 Change FIXED_SCRATCH to 14 and document why we're keeping r14
11722 out of the register allocation pool.
11723 (rs6000_reg_live_or_pic_offset_p): New function.
11724 (rs6000_emit_prologue): Move the actual saving of LR up to free
11725 r0 for holding r11. Split saving of SPE 64-bit registers into
11726 its own case. Ensure that offsets will always be in-range for
11727 'evstdd' by using r11 as a scratch register to point at the start
11728 of the SPE save area. Save r11 if necessary, as it is the static
11729 chain register.
11730 (rs6000_emit_epilogue): Split restoring of SPE 64-bit registers
11731 into its own case. Ensure that offsets will always be in-range
11732 for 'evldd' by using r11 as a scratch register to point at the
11733 start of the SPE save area. Also adjust r11 when restoring
11734 the stack pointer to compensate for pre-loading r11.
11735
11736 2007-06-05 Thomas Neumann <tneumann@users.sourceforge.net>
11737
11738 * cfg.c (init_flow): Use type safe memory macros.
11739 (alloc_block): Likewise.
11740 (unchecked_make_edge): Likewise.
11741 (dump_flow_info): Avoid using C++ keywords as variable names.
11742 (copy_original_table_clear): Cast according to the coding conventions.
11743 (copy_original_table_set): Likewise.
11744 * cfgexpand (label_rtx_for_bb): Likewise.
11745 (expand_gimple_basic_block): Likewise.
11746 * cfghooks.c (dump_bb): Likewise.
11747 (lv_adjust_loop_header_phi): Avoid using C++ keywords as
11748 variable names.
11749 (lv_add_condition_to_bb): Likewise.
11750 * cfglayout (relink_block_chain): Cast according to the coding
11751 conventions.
11752 (fixup_reorder_chain): Likewise.
11753 (fixup_fallthru_exit_predecessor): Likewise.
11754 * cfgloop.c (glb_enum_p): Likewise.
11755 (get_exit_description): Likewise.
11756 (dump_recorded_exit): Likewise.
11757 * cfgloop.h (enum loop_estimation): Move out of struct scope...
11758 (struct loop): ... from here.
11759 * cfgloopmanip.c (rpe_enum_p): Cast according to the coding
11760 conventions.
11761 * cfgrtl.c (rtl_create_basic_block): Likewise.
11762 (rtl_split_block): Likewise.
11763 (rtl_dump_bb): Likewise.
11764 (cfg_layout_split_block): Likewise.
11765 (init_rtl_bb_info): Use typesafe memory macros.
11766
11767 * graphds.h (struct graph_edge): Renamed edge to graph_edge.
11768 * graphds.h: Updated all usages of edge to graph_edge.
11769 * graphds.c: Likewise.
11770 * cfgloopanal.c: Likewise.
11771
11772 2007-06-05 Ian Lance Taylor <iant@google.com>
11773
11774 * tree-vrp.c (compare_values_warnv): Check TREE_NO_WARNING on a
11775 PLUS_EXPR or MINUS_EXPR node before setting *strict_overflow_p.
11776 (extract_range_from_assert): Set TREE_NO_WARNING when creating an
11777 expression.
11778 (test_for_singularity): Likewise.
11779
11780 2007-06-05 H.J. Lu <hongjiu.lu@intel.com>
11781
11782 * config/i386/constraints.md ("Y2"): Replaced by ...
11783 ("Yt"): This.
11784 * config/i386/i386.md: Likewise.
11785 * config/i386/mmx.md: Likewise.
11786 * config/i386/sse.md: Likewise.
11787
11788 2007-06-05 H.J. Lu <hongjiu.lu@intel.com>
11789
11790 * config/i386/constraints.md ("z"): Replaced by ...
11791 ("Y0"): This.
11792 * config/i386/sse.md (sse4_1_blendvpd): Likewise.
11793 (sse4_1_blendvps): Likewise.
11794 (sse4_1_pblendvb): Likewise.
11795 (sse4_2_pcmpestr): Likewise.
11796 (sse4_2_pcmpestrm): Likewise.
11797 (sse4_2_pcmpestr_cconly): Likewise.
11798 (sse4_2_pcmpistr): Likewise.
11799 (sse4_2_pcmpistrm): Likewise.
11800 (sse4_2_pcmpistr_cconly): Likewise.
11801
11802 2007-06-05 Razya Ladelsky <razya@il.ibm.com>
11803
11804 * matrix-reorg.c (transform_access_sites): Fix computation.
11805 (transform_allocation_sites): Same.
11806
11807 2007-06-05 Uros Bizjak <ubizjak@gmail.com>
11808
11809 * config/i386/i386.c (override_options): Use
11810 TARGET_SUBTARGET32_ISA_DEFAULT to select default ix86_isa_flags.
11811
11812 2007-06-05 Uros Bizjak <ubizjak@gmail.com>
11813
11814 * config/i386/predicates.md (reg_not_xmm0_operand): New predicate.
11815 (nonimm_not_xmm0_operand): Ditto.
11816 * config/i386/sse.md ("sse4_1_blendvpd"): Use "reg_not_xmm0_operand"
11817 as operand[0] and operand[1] predicate. Use "nonimm_not_xmm0_operand"
11818 as operand[2] predicate. Require "z" class XMM register for
11819 operand[3]. Adjust asm template.
11820 ("sse4_1_blendvpd"): Ditto.
11821 ("sse4_1_pblendvb"): Ditto.
11822 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Do not
11823 force op2 into xmm0 register for variable blend instructions.
11824
11825 2007-06-04 Tom Tromey <tromey@redhat.com>
11826
11827 * c-tree.h (start_enum): Update.
11828 (build_enumerator): Likewise.
11829 * c-decl.c (enum_next_value): Removed.
11830 (enum_overflow): Likewise.
11831 (start_enum): Add c_enum_contents argument. Don't use globals.
11832 (build_enumerator): Likewise.
11833 * c-tree.h (struct c_enum_contents): New struct.
11834
11835 2007-06-04 Tom Tromey <tromey@redhat.com>
11836
11837 * c-common.c (c_common_get_alias_set): Fix indentation.
11838
11839 2007-06-04 Ian Lance Taylor <iant@google.com>
11840
11841 * tree-vrp.c (adjust_range_with_scev): When loop is not expected
11842 to overflow, reduce overflow infinity to regular infinity.
11843 (vrp_var_may_overflow): New static function.
11844 (vrp_visit_phi_node): Check vrp_var_may_overflow.
11845
11846 2007-06-04 Kazu Hirata <kazu@codesourcery.com>
11847
11848 * stor-layout.c (layout_type): Remove duplicate code.
11849
11850 2007-06-04 Uros Bizjak <ubizjak@gmail.com>
11851
11852 PR c/32191
11853 * c-common.c (c_define_builtins): Call targetm.init_builtins ()
11854 before build_common_builtin_nodes ().
11855
11856 2007-06-04 Steve Ellcey <sje@cup.hp.com>
11857
11858 PR target/31733
11859 * cfgrtl.c (rtl_verify_flow_info): Skip notes when looking for barrier.
11860
11861 2007-06-04 Jan Hubicka <jh@suse.cz>
11862
11863 * tree-predcom.c (replace_ref_with, initialize_root_vars_lm,
11864 reassociate_to_the_same_stmt): Call build_gimple_modify_stmt
11865 instead of _stat version.
11866
11867 2007-06-03 Zdenek Dvorak <dvorakz@suse.cz>
11868
11869 PR tree-optimization/32194
11870 * tree-predcom.c (determine_offset): Check that both references have
11871 the same type.
11872
11873 2007-06-03 Zdenek Dvorak <dvorakz@suse.cz>
11874
11875 * cfgloopmanip.c (remove_path, loopify, duplicate_loop_to_header_edge):
11876 Change dom_bbs to vector. Add argument to iterate_fix_dominators call.
11877 * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
11878 * tree-cfg.c (tree_duplicate_sese_region): Change doms to vector.
11879 Add argument to iterate_fix_dominators call.
11880 (remove_edge_and_dominated_blocks): Pass vector to bbs_to_fix_dom.
11881 * gcse.c (hoist_code): Change domby to vector.
11882 * cfghooks.c (make_forwarder_block): Change doms_to_fix to vector.
11883 Add argument to iterate_fix_dominators call.
11884 * loop-doloop.c (doloop_modify): Changed recount_dominator to
11885 recompute_dominator.
11886 * lambda-code.c (perfect_nestify): Ditto.
11887 * cfgloopanal.c: Include graphds.h.
11888 (struct edge, struct vertex, struct graph, dump_graph, new_graph,
11889 add_edge, dfs, for_each_edge, free_graph): Moved to graphds.c.
11890 (mark_irreducible_loops): Use graphds_scc. Remove argument from
11891 add_edge call.
11892 * graphds.c: New file.
11893 * graphds.h: New file.
11894 * dominance.c: Include vecprim.h, pointer-set.h and graphds.h.
11895 (get_dominated_by, get_dominated_by_region): Change return type to
11896 vector.
11897 (verify_dominators): Recompute all dominators and compare the results.
11898 (recount_dominator): Renamed to ...
11899 (recompute_dominator): ... this. Do not check that the block is
11900 dominated by entry.
11901 (iterate_fix_dominators): Reimplemented.
11902 (prune_bbs_to_update_dominators, root_of_dom_tree,
11903 determine_dominators_for_sons): New functions.
11904 * et-forest.c (et_root): New function.
11905 * et-forest.h (et_root): Declare.
11906 * Makefile.in (graphds.o): Add.
11907 (cfgloopanal.o): Add graphds.h dependency.
11908 (dominance.o): Add graphds.h, vecprim.h and pointer-set.h dependency.
11909 * basic-block.h (get_dominated_by, get_dominated_by_region,
11910 iterate_fix_dominators): Declaration changed.
11911 (recount_dominator): Renamed to ...
11912 (recompute_dominator): ... this.
11913 * tree-ssa-threadupdate.c (thread_block): Free dominance info.
11914 (thread_through_all_blocks): Do not free dominance info.
11915
11916 2007-06-03 Andreas Schwab <schwab@suse.de>
11917
11918 * config/m68k/m68k.c (override_options): Don't override
11919 REAL_MODE_FORMAT.
11920 * config/m68k/m68k-modes.def (SF, DF): Define to use
11921 motorola_single_format and motorola_double_format, resp.
11922 * real.c (motorola_single_format): Renamed from
11923 coldfire_single_format.
11924 (motorola_double_format): Renamed from coldfire_double_format.
11925 (encode_ieee_extended): Generate a proper canonical NaN image
11926 respecting canonical_nan_lsbs_set.
11927 (ieee_extended_motorola_format): Set canonical_nan_lsbs_set to
11928 true.
11929 * real.h: Adjust declarations.
11930
11931 2007-06-03 Kaz Kojima <kkojima@gcc.gnu.org>
11932
11933 PR target/32163
11934 * config/sh/sh.md (symGOT_load): Don't schedule insns when
11935 the symbol is generated with the stack protector.
11936
11937 2007-06-03 Kazu Hirata <kazu@codesourcery.com>
11938
11939 * config/m68k/m68k.c (m68k_attribute_table): Add "interrupt".
11940 (m68k_get_function_kind): Return m68k_fk_interrupt_handler on
11941 "interrupt".
11942 * doc/extend.texi (interrupt): Mention m68k.
11943
11944 2007-06-02 Uros Bizjak <ubizjak@gmail.com>
11945
11946 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Call
11947 safe_vector_operand() if input operand is VECTOR_MODE_P operand.
11948 (ix86_expand_sse_pcmpestr): Do not check operands for
11949 "register_operand", when insn operand predicate is "register_operand".
11950 (ix86_expand_sse_pcmpistr): Ditto.
11951
11952 2007-06-02 H.J. Lu <hongjiu.lu@intel.com>
11953 Uros Bizjak <ubizjak@gmail.com>
11954
11955 * config/i386/i386.h (enum reg_class) [SSE_FIRST_REG]: New.
11956 (SSE_CLASS_P): Use reg_class_subset_p between SSE_REGS.
11957 (REG_CLASS_NAMES): Add "FIRST_SSE_REG" string.
11958 (REG_CLASS_CONTENTS): Add members of FIRST_SSE_REG class.
11959 * config/i386/constraints.md ("z"): New register constraint
11960 for members of SSE_FIRST_REG class.
11961 * config/i386/i386-modes.def (CCA, CCC, CCO, CCS): New compare modes.
11962 * config/i386/i386.c (regclass_map): Change class of %xmm0 to
11963 SSE_FIRST_REG class.
11964 (put_condition_code) [EQ, NE]: Output suffixes for new compare modes.
11965 (ix86_cc_modes_compatible): Handle CCA, CCC, CCO and CCS modes.
11966 (IX86_BUILTIN_PCMPESTRI128): New for SSE4.2.
11967 (IX86_BUILTIN_PCMPESTRM128): Likewise.
11968 (IX86_BUILTIN_PCMPESTRA128): Likewise.
11969 (IX86_BUILTIN_PCMPESTRC128): Likewise.
11970 (IX86_BUILTIN_PCMPESTRO128): Likewise.
11971 (IX86_BUILTIN_PCMPESTRS128): Likewise.
11972 (IX86_BUILTIN_PCMPESTRZ128): Likewise.
11973 (IX86_BUILTIN_PCMPISTRI128): Likewise.
11974 (IX86_BUILTIN_PCMPISTRM128): Likewise.
11975 (IX86_BUILTIN_PCMPISTRA128): Likewise.
11976 (IX86_BUILTIN_PCMPISTRC128): Likewise.
11977 (IX86_BUILTIN_PCMPISTRO128): Likewise.
11978 (IX86_BUILTIN_PCMPISTRS128): Likewise.
11979 (IX86_BUILTIN_PCMPISTRZ128): Likewise.
11980 (struct builtin_description): Change "flag" field to unsigned.
11981 (bdesc_pcmpestr): New builtin description table.
11982 (bdesc_pcmpistr): Likewise.
11983 (ix86_init_mmx_sse_builtins): Define int_ftype_v16qi_int_v16qi_int_int,
11984 v16qi_ftype_v16qi_int_v16qi_int_int and int_ftype_v16qi_v16qi_int.
11985 Initialize pcmp[ei]str[im] insns for SSE4.2.
11986 (ix86_expand_sse_pcmpestr): New subroutine of ix86_expand_builtin.
11987 (ix86_expand_sse_pcmpistr): Likewise.
11988 (ix86_expand_builtin): Expand pcmp[ei]str[im] builtins for SSE4.2.
11989 * config/i386/i386.md (UNSPEC_PCMPESTR): New for SSE4.2.
11990 (UNSPEC_PCMPISTR): Likewise.
11991 * config/i386/sse.md (sse4_2_pcmpestr): New insn patern and splitter.
11992 (sse4_2_pcmpestri):New isns pattern.
11993 (sse4_2_pcmpestrm): Likewise.
11994 (sse4_2_pcmpestr_cconly): Likewise.
11995 (sse4_2_pcmpistr): New insn patern and splitter.
11996 (sse4_2_pcmpistri):New isns pattern.
11997 (sse4_2_pcmpistrm): Likewise.
11998 (sse4_2_pcmpistr_cconly): Likewise.
11999 * config/i386/smmintrin.h: Enable pcmp[ei]str[im] intrinsics
12000 in SSE4.2.
12001
12002 2007-06-01 David Daney <ddaney@avtrex.com>
12003
12004 * config/mips/mips.c (mips_output_mi_thunk): Only load gp if not
12005 LOADGP_ABSOLUTE and not binds_local_p.
12006
12007 2007-06-01 Geoffrey Keating <geoffk@apple.com>
12008
12009 * config/darwin.h (LINK_SPEC): Pass -fpie through to the linker.
12010
12011 2007-06-01 Ian Lance Taylor <iant@google.com>
12012
12013 * tree-vrp.c (compare_name_with_value): Always set
12014 used_strict_overflow if we get a result from the variable itself.
12015
12016 2007-06-01 Ian Lance Taylor <iant@google.com>
12017
12018 PR rtl-optimization/31455
12019 * lower-subreg.c (find_decomposable_subregs): Don't decompose
12020 subregs which have a cast between modes which are not tieable.
12021
12022 2007-06-01 Uros Bizjak <ubizjak@gmail.com>
12023
12024 * expr.c (force_operand) [DIV, MOD, UDIV, UMOD, ASHIFTRT]: Remove
12025 breaks after return statements.
12026
12027 2007-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
12028
12029 * config/sh/sh.c (fpscr_set_from_mem): Call get_free_reg
12030 only after no_new_pseudos.
12031
12032 2007-05-31 Eric Christopher <echristo@apple.com>
12033
12034 * expr.c (convert_move): Assert that we don't have a BLKmode
12035 operand.
12036 (store_expr): Handle BLKmode moves by calling emit_block_move.
12037
12038 2007-05-31 Daniel Berlin <dberlin@dberlin.org>
12039
12040 * c-typeck.c (build_indirect_ref): Include type in error message.
12041 (build_binary_op): Pass types to binary_op_error.
12042 * c-common.c (binary_op_error): Take two type arguments, print out
12043 types with error.
12044 * c-common.h (binary_op_error): Update prototype.
12045
12046 2007-05-31 H.J. Lu <hongjiu.lu@intel.com>
12047
12048 * config/i386/i386.c: Correct coments on -mno-sse4.
12049
12050 2007-05-31 H.J. Lu <hongjiu.lu@intel.com>
12051
12052 * config.gcc (i[34567]86-*-*): Add nmmintrin.h to extra_headers.
12053 (x86_64-*-*): Likewise.
12054 * config/i386/i386.c (OPTION_MASK_ISA_MMX_UNSET): New.
12055 (OPTION_MASK_ISA_3DNOW_UNSET): Likewise.
12056 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
12057 (OPTION_MASK_ISA_SSE2_UNSET): Likewise.
12058 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
12059 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
12060 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
12061 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
12062 (OPTION_MASK_ISA_SSE4): Likewise.
12063 (OPTION_MASK_ISA_SSE4_UNSET): Likewise.
12064 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
12065 (ix86_handle_option): Use OPTION_MASK_ISA_*_UNSET. Handle SSE4.2.
12066 (override_options): Support SSE4.2.
12067 (ix86_build_const_vector): Support SImode and DImode.
12068 (ix86_build_signbit_mask): Likewise.
12069 (ix86_expand_int_vcond): Support V2DImode.
12070 (IX86_BUILTIN_CRC32QI): New for SSE4.2.
12071 (IX86_BUILTIN_CRC32HI): Likewise.
12072 (IX86_BUILTIN_CRC32SI): Likewise.
12073 (IX86_BUILTIN_CRC32DI): Likewise.
12074 (IX86_BUILTIN_PCMPGTQ): Likewise.
12075 (bdesc_crc32): Likewise.
12076 (bdesc_sse_3arg): Likewise.
12077 (ix86_expand_crc32): Likewise.
12078 (ix86_init_mmx_sse_builtins): Support SSE4.2.
12079 (ix86_expand_builtin): Likewise.
12080 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
12081 __SSE4_2__ for -msse4.2.
12082 * config/i386/i386.md (UNSPEC_CRC32): New for SSE4.2.
12083 (CRC32MODE): Likewise.
12084 (crc32modesuffix): Likewise.
12085 (crc32modeconstraint): Likewise.
12086 (sse4_2_crc32<mode>): Likewise.
12087 (sse4_2_crc32di): Likewise.
12088 * config/i386/i386.opt (msse4.2): New for SSE4.2.
12089 (msse4): Likewise.
12090 * config/i386/nmmintrin.h: New. The dummy SSE4.2 intrinsic header file.
12091 * config/i386/smmintrin.h: Add SSE4.2 intrinsics.
12092 * config/i386/sse.md (sse4_2_gtv2di3): New pattern for SSE4.2.
12093 (vcond<mode>): Use SSEMODEI instead of SSEMODE124.
12094 (vcondu<mode>): Likewise.
12095 * doc/extend.texi: Document SSE4.2 built-in functions.
12096 * doc/invoke.texi: Document -msse4.2/-msse4.
12097
12098 2007-05-31 Zdenek Dvorak <dvorakz@suse.cz>
12099
12100 PR tree-optimization/32160
12101 * tree-predcom.c (predcom_tmp_var): New function. Mark created
12102 variable as gimple reg.
12103 (initialize_root_vars, initialize_root_vars_lm): Use predcom_tmp_var.
12104
12105 2007-05-31 Kazu Hirata <kazu@codesourcery.com>
12106
12107 * gcc.c (main): Don't consider linker options when issuing the
12108 warning about a linker input file not being used.
12109
12110 2007-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12111
12112 * tree-vrp.c (compare_names): Initialize sop.
12113
12114 2007-05-30 Dirk Mueller <dmueller@suse.de>
12115
12116 * cgraphunit.c (cgraph_analyze_function): Remove
12117 computation of inline parameters.
12118
12119 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
12120
12121 * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Undef before define.
12122
12123 2007-05-30 Richard Sandiford <richard@codesourcery.com>
12124
12125 * config.gcc (arm-wrs-vxworks): Remove dbxelf.h from tm_file.
12126 Add vx-common.h. Include vxworks.h between vx-common.h and
12127 arm/vxworks.h.
12128 * config/vx-common.h (DWARF2_UNWIND_INFO): Undefine before
12129 redefining.
12130 * config/vxworks.h (TARGET_ASM_CONSTRUCTOR): Likewise.
12131 (TARGET_ASM_DESTRUCTOR): Likewise.
12132 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Check arm_arch_xscale
12133 instead of arm_is_xscale. Use VXWORKS_OS_CPP_BUILTINS.
12134 (OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
12135 (CC1_SPEC): Add -tstrongarm. Line up backslashes.
12136 (VXWORKS_ENDIAN_SPEC): Define.
12137 (ASM_SPEC): Add VXWORKS_ENDIAN_SPEC.
12138 (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine to their
12139 VXWORKS_* equivalents.
12140 (LINK_SPEC): Likewise, but add VXWORKS_ENDIAN_SPEC.
12141 (ASM_FILE_START): Delete.
12142 (TARGET_VERSION): Reformat.
12143 (FPUTYPE_DEFAULT, FUNCTION_PROFILER): Define.
12144 (DEFAULT_STRUCTURE_SIZE_BOUNDARY): Define.
12145 * config/arm/t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Define.
12146 (FPBIT, DPBIT): Define.
12147 (fp-bit.c, dp-bit.c): New rules.
12148 (MULTILIB_OPTIONS): Add strongarm, -mrtp and -mrtp/-fPIC multilibs.
12149 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Define.
12150 * config/arm/arm-protos.h (arm_emit_call_insn): Declare.
12151 * config/arm/arm.h: Include vxworks-dummy.h.
12152 * config/arm/arm.c (arm_elf_asm_constructor, arm_elf_asm_destructor):
12153 Mark with ATTRIBUTE_UNUSED.
12154 (arm_override_options): Do not allow VxWorks RTP PIC to be used
12155 for Thumb. Force r9 to be the PIC register for VxWorks RTPs and
12156 make it incompatible with -msingle-pic-base.
12157 (arm_function_ok_for_sibcall): Return false for calls that might
12158 go through a VxWorks PIC PLT entry.
12159 (require_pic_register): New function, split out from...
12160 (legitimize_pic_address): ...here. Do not use GOTOFF accesses
12161 for VxWorks RTPs.
12162 (arm_load_pic_register): Handle the VxWorks RTP initialization
12163 sequence. Use pic_reg as a shorthand for cfun->machine->pic_reg.
12164 (arm_emit_call_insn): New function.
12165 (arm_assemble_integer): Do not use GOTOFF accesses for VxWorks RTP.
12166 * config/arm/arm.md (UNSPEC_PIC_OFFSET): New unspec number.
12167 (pic_offset_arm): New pattern.
12168 (call, call_value): Use arm_emit_call_insn.
12169 (call_internal, call_value_internal): New expanders.
12170 * config/arm/lib1funcs.asm (__PLT__): Define to empty for
12171 VxWorks unless __PIC__.
12172
12173 2007-05-30 Eric Christopher <echristo@gmail.com>
12174
12175 * genrecog.c: Include regs.h in generated file.
12176 * genemit.c: Ditto. Fix up formatting.
12177 * config/mn10300/constraints.md: New.
12178 * config/mn10300/mn10300.md: Include.
12179 * config/mn10300/mn10300.c(mn10300_secondary_reload_class):
12180 Fix up for removed macro.
12181 * config/mn10300/predicates.md (call_address_operand): Ditto.
12182 * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Delete.
12183 (CONST_OK_FOR_I): Ditto.
12184 (CONST_OK_FOR_J): Ditto.
12185 (CONST_OK_FOR_K): Ditto.
12186 (CONST_OK_FOR_L): Ditto.
12187 (CONST_OK_FOR_M): Ditto.
12188 (CONST_OK_FOR_N): Ditto.
12189 (CONST_DOUBLE_OK_FOR_LETTER_P): Ditto.
12190 (OK_FOR_Q): Ditto.
12191 (OK_FOR_R): Ditto.
12192 (OK_FOR_T): Ditto.
12193 (EXTRA_CONSTRAINT): Ditto.
12194
12195 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
12196
12197 * config/i386/i386.h (MASK_64BIT, MASK_MMX, MASK_3DNOW*, MASK_SSE*):
12198 Remove defines.
12199 * config/i386/biarch.h (TARGET_64BIT_DEFAULT): Define to
12200 OPTION_MASK_ISA_64BIT.
12201 * config/i386/i386.c: Rename MASK_* macros to OPTION_MASK_ISA_*.
12202
12203 2007-05-30 Richard Guenther <rguenther@suse.de>
12204
12205 PR middle-end/32152
12206 * gimplify.c (gimplify_omp_atomic_pipeline): Use correct
12207 types for comparison.
12208 * fold-const.c (fold_comparison): Call maybe_canonicalize_comparison
12209 with original typed arguments.
12210 * config/i386/i386.c (ix86_gimplify_va_arg): Fix type mismatches.
12211
12212 2007-05-30 Jakub Jelinek <jakub@redhat.com>
12213
12214 PR tree-optimization/31769
12215 * except.c (duplicate_eh_regions): Clear prev_try if
12216 ERT_MUST_NOT_THROW region is inside of ERT_TRY region.
12217
12218 2007-05-30 Zdenek Dvorak <dvorakz@suse.cz>
12219
12220 * tree-scalar-evolution.c (scev_const_prop): Do not create labels.
12221 * tree-ssa-sink.c (statement_sink_location): Return basic block and
12222 bsi of the location where statements should be inserted.
12223 (sink_code_in_bb): Take bsi from statement_sink_location.
12224 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use bsi_after_labels
12225 instead of bsi_start.
12226 * tree-profile.c (tree_gen_ic_func_profiler): Pass BSI_NEW_STMT to
12227 bsi_insert_after.
12228 * tree-cfg.c (bsi_move_after): Pass BSI_NEW_STMT to bsi_insert_after.
12229 (bsi_move_before): Document inconsistency with bsi_move_after.
12230 (tree_redirect_edge_and_branch): Do not create labels if not necessary.
12231
12232 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
12233
12234 * config/i386/i386.h (TARGET_ABM): New define.
12235 (TARGET_POPCNT): Ditto.
12236 (TARGET_64BIT, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A, TARGET_SSE*):
12237 New temporary defines to redefine from OPTION_ISA_* defines.
12238 (MASK_64BIT, MASK_MMX, MASK_3DNOW, MASK_3DNOW_A, MASK_SSE*):
12239 New temporary defines to redefine from OPTION_MASK_ISA_* defines.
12240 (ix86_isa_flags): New extern int declaration.
12241 (TARGET_SUBTARGET_DEFAULT): New define.
12242 (TARGET_SUBTARGET_ISA_DEFAULT): Ditto.
12243 (TARGET_SUBTARGET32_DEFAULT): Ditto.
12244 (TARGET_SUBTARGET32_ISA_DEFAULT): Ditto.
12245 (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
12246 * config/i386/unix.h: Undef TARGET_SUBTARGET_DEFAULT before define.
12247 * config/i386/darwin.h: Change TARGET_64BIT define to
12248 OPTION_ISA_64BIT.
12249
12250 * config/i386/i386.opt (m3dnowa): Define as undocumented option
12251 using existing "ix86_isa_flags" varible.
12252 (m32, m64): Use existing "ix86_isa_flags" variable.
12253 (mmmx, m3dnow): Ditto.
12254 (msse, msse2, msse3, mssse3, msse4.1, msse4a): Ditto.
12255 (mabm): Define as non-negative option using "x86_abm" variable.
12256 (mpopcnt): Define as non-negative option using "x86_popcnt" variable.
12257
12258 * config/i386/i386.c (ix86_arch_features) [X86_ARCH_CMOVE]:
12259 Rewrite feature test bitmap.
12260 (ix86_isa_flags): New initialized global int varible.
12261 (ix86_isa_flags_explicit): New static int variable.
12262 (ix86_handle_option): Set "ix86_isa_flags_explicit" when mmmx, m3dnow,
12263 msse, msse2, msse3, msse4.1 and msse4a option is processed. Change
12264 i86_isa_flags and ix86_isa_flags_explicit, not target_flags and
12265 target_flags_explicit.
12266 (override_options): Remove "target_enable" and "target_disable" fields
12267 from "struct ptt". Update processor_target_table accordingly. Remove
12268 PTA_PREFETCH_SSE from processor_alias_table entry if PTE_SSE is
12269 defined and rearrange PTA_* bits. Use "ix86_isa_flags" instead of
12270 "target_flags" and "ix86_isa_flags_explicit" instead of
12271 "target_flags_explicit" when masked with MASK_64BIT, MASK_MMX,
12272 MASK_3DNOW, MASK_3DNOW_A or MASK_SSE*. Set "x86_abm" to true when
12273 PTA_ABM is set in processor_alias_table flags entry. Set "x86_popcnt"
12274 to true when either of PTA_POPCNT or PTA_ABM is set in
12275 processor_alias_table flags entry. Set "x86_prefetch_sse" to true
12276 when either of PTA_PREFETCH_SSE or PTA_SSE is set in
12277 processor_alias_table flags entry. Remove handling of
12278 "target_enable" and "target_disable" fields of processor_target_table.
12279 Mask "target_flags" with TARGET_SUBTARGET32_DEFAULT for 32-bit
12280 targets or with TARGET_SUBTARGET64_DEFAULT for 64-bit targets.
12281 Mask "ix86_isa_flags" with TARGET_SUBTARGET32_ISA_DEFAULT for 32-bit
12282 targets or with TARGET_SUBTARGET64_ISA_DEFAULT for 64-bit targets.
12283 (def_builtin): Mask "mask" variable with "ix86_isa_flags", not
12284 "target_flags".
12285 (TARGET_DEFAULT_TARGET_FLAGS): Do not include TARGET_64BIT_DEFAULT.
12286
12287 2007-05-29 David Daney <ddaney@avtrex.com>
12288
12289 PR gcc/31975
12290 * config/mips/mips.c (mips_output_mi_thunk): Emit
12291 NOTE_INSN_PROLOGUE_END at beginning of the thunk.
12292
12293 2007-05-29 Hui-May Chang <hm.chang@apple.com>
12294 * config/i386/i386.c (ix86_function_regparm): Added checking of
12295 ix86_force_align_arg_pointer to determine the number of
12296 register parameters.
12297
12298 2007-05-29 Zdenek Dvorak <dvorakz@suse.cz>
12299
12300 * tree-vectorizer.h (DR_MISALIGNMENT): Cast aux to integer.
12301 (SET_DR_MISALIGNMENT): New.
12302 * tree-vect-analyze.c (vect_compute_data_ref_alignment,
12303 vect_update_misalignment_for_peel, vect_enhance_data_refs_alignment):
12304 Use SET_DR_MISALIGNMENT.
12305 * tree-predcom.c (split_data_refs_to_components): Cast dr->aux from
12306 pointer.
12307 * tree-data-ref.c (create_data_ref, compute_all_dependences,
12308 find_loop_nest): Export.
12309 * tree-data-ref.h (struct data_reference): Change aux field to pointer.
12310 (create_data_ref, compute_all_dependences, find_loop_nest): Declare.
12311 * tree-ssa-loop-prefetch.c: Include tree-data-ref.h.
12312 (L1_CACHE_SIZE_BYTES, L2_CACHE_SIZE_BYTES, NONTEMPORAL_FRACTION):
12313 New macros.
12314 (struct mem_ref): Add field reuse_distance.
12315 (find_or_create_group, record_ref): Use XNEW instead of xcalloc.
12316 Initialize reuse_distance field.
12317 (issue_prefetch_ref): Select temporality of prefetch according to
12318 reuse_distance.
12319 (volume_of_references, volume_of_dist_vector, add_subscript_strides,
12320 self_reuse_distance, determine_loop_nest_reuse): New functions.
12321 (loop_prefetch_arrays): Call determine_loop_nest_reuse.
12322 (tree_ssa_prefetch_arrays): Dump L2 cache size.
12323 * Makefile.in (tree-ssa-loop-prefetch.o): Add TREE_DATA_REF_H
12324 dependency.
12325
12326 2007-05-29 Daniel Berlin <dberlin@dberlin.org>
12327
12328 * tree-ssa-alias.c: Add aliasing overview.
12329
12330 2007-05-29 Zuxy Meng <zuxy.meng@gmail.com>
12331 Danny Smith <dannysmith@users.sourceforge.net>
12332
12333 PR target/29498
12334 * config/i386/t-crtfm: Compile crtfastmath.o with
12335 -minline-all-stringops.
12336 * config/i386/cygwin.h (ENDFILE_SPECS): Add crtfastmath.o.
12337 * config/i386/mingw32.h (ENDFILE_SPECS): Add crtfastmath.o.
12338
12339 2007-05-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12340
12341 * doc/md.texi: Document constraints on HP PA-RISC.
12342
12343 * pa/constraints.md: New file.
12344 * pa.md: Include constraints.md.
12345 * pa.c (cint_ok_for_move): Avoid using CONST_OK_FOR_LETTER_P.
12346 (integer_store_memory_operand, ldil_cint_p): New functions.
12347 * pa-protos.h (integer_store_memory_operand, ldil_cint_p): Declare.
12348 * pa.h (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
12349 IS_RELOADING_PSEUDO_P, EXTRA_CONSTRAINT): Remove.
12350 * pa32-regs.h (REG_CLASS_FROM_LETTER): Remove.
12351 * pa64-regs.h (REG_CLASS_FROM_LETTER): Remove.
12352
12353 2007-05-28 Andrew Pinski <Andrew_pinski@playstation.sony.com>
12354
12355 PR c/31339
12356 * c-typeck.c (build_unary_op <case PREINCREMENT_EXPR,
12357 case POSTINCREMENT_EXPR, case PREDECREMENT_EXPR,
12358 case POSTDECREMENT_EXPR>): Return the error_mark_node
12359 if either the real or imaginary parts would an
12360 error_mark_node.
12361
12362 2007-05-28 Daniel Berlin <dberlin@dberlin.org>
12363
12364 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Release LHS SSA
12365 name when we remove it from a call.
12366
12367 2007-05-28 Kazu Hirata <kazu@codesourcery.com>
12368
12369 * targhooks.c (default_narrow_bitfield): Remove.
12370 * targhooks.h: Remove the prototype for
12371 default_narrow_bitfield.
12372
12373 * langhooks-def.h: Remove the prototype for
12374 hook_get_alias_set_0.
12375 * langhooks.c (hook_get_alias_set_0): Remove.
12376
12377 * global.c (EXECUTE_IF_CONFLICT): Remove.
12378
12379 2007-05-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
12380
12381 PR tree-opt/32100
12382 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't
12383 return true when truth_value_p is true and the type
12384 is of signed:1.
12385
12386 2007-05-28 Gerald Pfeifer <gerald@pfeifer.com>
12387
12388 * doc/install.texi (Prerequisites): We no longer require Autoconf
12389 2.13 for the top-level.
12390
12391 2007-05-28 Uros Bizjak <ubizjak@gmail.com>
12392
12393 * target/i386/i386.c (ix86_expand_vector_move): Expand unaligned
12394 memory access via x86_expand_vector_move_misalign() only for
12395 TImode values on 32-bit targets.
12396
12397 2007-05-28 Razya Ladelsky <razya@il.ibm.com>
12398
12399 * matrix-reorg.c: New file. Implement matrix flattening and
12400 transposing optimization.
12401 * tree-pass.h: Add matrix reorg pass.
12402 * common.opt: Add fipa-mreorg flag.
12403 * Makefile.in: Add matrix-reorg.c.
12404 * passes.c: Add matrix reorg pass.
12405 * varpool.c (add_new_static_var): New function.
12406 * cgraph.h (add_new_static_var): Declare.
12407
12408 2007-05-27 Eric Christopher <echristo@apple.com>
12409
12410 * config/rs6000/rs6000.c (rs6000_emit_prologue): Update
12411 sp_offset depending on stack size. Save r12 depending
12412 on registers we're saving later.
12413 (rs6000_emit_epilogue): Update sp_offset depending only
12414 on stack size.
12415
12416 2007-05-27 Zdenek Dvorak <dvorakz@suse.cz>
12417
12418 * tree-vrp.c (execute_vrp): Do not check whether current_loops == NULL.
12419 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
12420 * ifcvt.c (if_convert): Ditto.
12421 * tree-ssa-threadupdate.c (thread_block): Ditto.
12422 (thread_through_all_blocks): Ditto. Assert that loops were analysed.
12423 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
12424 verify_loop_closed_ssa): Check number_of_loops instead of
12425 current_loops.
12426 * predict.c (tree_estimate_probability): Ditto.
12427 * tree-if-conv.c (main_tree_if_conversion): Ditto.
12428 * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
12429 * modulo-sched.c (sms_schedule): Ditto.
12430 * tree-scalar-evolution.c (scev_const_prop): Ditto.
12431 (scev_finalize): Do not do anything if scev analysis was not
12432 initialized.
12433 * cfgloopanal.c (mark_irreducible_loops): Do not check whether
12434 current_loops == NULL.
12435 (mark_loop_exit_edges): Check number_of_loops instead of current_loops.
12436 * loop-init.c (loop_optimizer_init): Do not free current_loops when
12437 there are no loops.
12438 (loop_optimizer_finalize): Assert that loops were analyzed.
12439 (rtl_move_loop_invariants, rtl_unswitch, rtl_unroll_and_peel_loops,
12440 rtl_doloop): Check number_of_loops instead of current_loops.
12441 * tree-ssa-loop.c (tree_loop_optimizer_init): Do not check whether
12442 current_loops == NULL.
12443 (tree_ssa_loop_init, tree_ssa_loop_im, tree_ssa_loop_unswitch,
12444 gate_tree_vectorize tree_linear_transform, check_data_deps,
12445 tree_ssa_loop_ivcanon, tree_ssa_empty_loop, tree_ssa_loop_bounds,
12446 tree_complete_unroll, tree_ssa_loop_prefetch, tree_ssa_loop_ivopts):
12447 Check number_of_loops instead of current_loops.
12448 (tree_ssa_loop_done): Do not check whether current_loops == NULL.
12449 * tree-ssa-pre.c (fini_pre): Do not take do_fre argument. Always
12450 free loops if available.
12451 (execute_pre): Do not pass do_fre to fini_pre.
12452
12453 2007-05-27 Tobias Burnus <burnus@net-b.de>
12454
12455 PR middle-end/32083
12456 * real.c (mpfr_from_real): Fix sign of -Inf.
12457
12458 2007-05-27 H.J. Lu <hongjiu.lu@intel.com>
12459
12460 * tree-vect-transform.c (vectorizable_conversion): Initialize
12461 tree_code variables to ERROR_MARK.
12462 (vectorizable_type_demotion): Likewise.
12463 (vectorizable_type_promotion): Likewise.
12464
12465 2007-05-26 Uros Bizjak <ubizjak@gmail.com>
12466
12467 PR target/32065
12468 * config/i386/i386.md (movti): Handle push operands via
12469 ix86_expand_push().
12470
12471 2007-05-26 Kazu Hirata <kazu@codesourcery.com>
12472
12473 * basic-block.h: Remove the prototype for merge_seq_blocks.
12474 * cfgcleanup.c (merge_seq_blocks): Remove.
12475
12476 * tree-flow.h: Remove the prototype for is_aliased_with.
12477 * tree-ssa-alias.c (is_aliased_with): Remove.
12478
12479 2007-05-26 H.J. Lu <hongjiu.lu@intel.com>
12480
12481 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): New.
12482
12483 * config/i386/i386.c (ix86_expand_sse4_unpack): New.
12484
12485 * config/i386/sse.md (vec_unpacku_hi_v16qi): Call
12486 ix86_expand_sse4_unpack if SSE4.1 is enabled.
12487 (vec_unpacks_hi_v16qi): Likewise.
12488 (vec_unpacku_lo_v16qi): Likewise.
12489 (vec_unpacks_lo_v16qi): Likewise.
12490 (vec_unpacku_hi_v8hi): Likewise.
12491 (vec_unpacks_hi_v8hi): Likewise.
12492 (vec_unpacku_lo_v8hi): Likewise.
12493 (vec_unpacks_lo_v8hi): Likewise.
12494 (vec_unpacku_hi_v4si): Likewise.
12495 (vec_unpacks_hi_v4si): Likewise.
12496 (vec_unpacku_lo_v4si): Likewise.
12497 (vec_unpacks_lo_v4si): Likewise.
12498
12499 2007-05-26 Kazu Hirata <kazu@codesourcery.com>
12500
12501 * c-typeck.c, config/arm/arm.c, config/darwin.c,
12502 config/sh/symbian.c, gcc.c, ipa-cp.c, ipa-inline.c, loop-iv.c,
12503 omega.c, tree-ssa-loop-niter.c, treestruct.def: Fix typos and
12504 follow spelling conventions in various
12505 warning/error/diagnostic messages.
12506
12507 * config/i386/i386.c, config/pa/pa.c, config/spu/spu.c,
12508 df-problems.c, df-scan.c, domwalk.c, ebitmap.c, ebitmap.h,
12509 fold-const.c, gcc.c, ipa-type-escape.c, omega.c, omega.h,
12510 tree-ssa-coalesce.c, tree-ssa-live.c, tree-ssa-structalias.c,
12511 tree-vrp.c: Fix comment typos. Follow spelling conventions.
12512 * doc/tm.texi: Follow spelling conventions.
12513
12514 2007-05-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
12515
12516 PR tree-opt/32090
12517 * tree-ssa-forwprop.c
12518 (forward_propagate_addr_into_variable_array_index): Remove
12519 the lhs argument. Use the type of def_rhs instead of lhs.
12520 (forward_propagate_addr_expr_1): Update use of
12521 forward_propagate_addr_into_variable_array_index.
12522
12523 2007-05-25 Sandra Loosemore <sandra@codesourcery.com>
12524 Nigel Stephens <nigel@mips.com>
12525
12526 * config/mips/mips.c (mips_attribute_table): Add "near" and "far"
12527 function attributes, "far" being an alias for "long_call".
12528 (TARGET_COMP_TYPE_ATTRIBUTES): Define as mips_comp_type_attributes.
12529 (mips_near_type_p, mips_far_type_p): New.
12530 (mips_comp_type_attributes): New function to check that attributes
12531 attached to a function type are compatible.
12532 (mips_output_mi_thunk): Test SYMBOL_REF_LONG_CALL_P() rather than
12533 TARGET_LONG_CALLS when deciding whether we can do a direct sibcall
12534 to the target function of the thunk.
12535 (mips_encode_section_info): Check for "near" and "far" function
12536 attributes, and always set the SYMBOL_FLAG_LONG_CALL bit explicitly.
12537
12538 * config/mips/predicates.md (const_call_insn_operand): Test only
12539 SYMBOL_REF_LONG_CALL_P() and not TARGET_LONG_CALLS.
12540
12541 * doc/extend.texi (Function Attributes): Document MIPS "near" and
12542 "far" attributes.
12543
12544 * testsuite/gcc.target/mips/near-far-1.c: New test case.
12545 * testsuite/gcc.target/mips/near-far-2.c: New test case.
12546 * testsuite/gcc.target/mips/near-far-3.c: New test case.
12547 * testsuite/gcc.target/mips/near-far-4.c: New test case.
12548
12549 2007-05-25 Eric Christopher <echristo@apple.com>
12550
12551 * config.gcc: Add i386/t-fprules-softfp64 and soft-fp/t-softfp
12552 to x86-darwin configurations.
12553 * config/i386/t-darwin: Add softfp support.
12554 * config/i386/t-darwin64: Ditto.
12555 * config/i386/sfp-machine.h: If mach then don't use
12556 aliasing, emit a stub to call.
12557
12558 2007-05-25 Kazu Hirata <kazu@codesourcery.com>
12559
12560 * cfglayout.c, cgraphunit.c, config/avr/avr.c, fold-const.c,
12561 haifa-sched.c, optabs.h, tree-affine.c, tree-data-ref.c,
12562 tree-predcom.c, tree-ssa-alias-warnings.c,
12563 tree-ssa-forwprop.c, tree-vect-analyze.c, tree-vrp.c: Fix
12564 comment typos. Follow spelling conventions.
12565 * doc/cpp.texi, doc/invoke.texi: Fix typos.
12566
12567 2007-05-26 Uros Bizjak <ubizjak@gmail.com>
12568
12569 PR target/32065
12570 * target/i386/i386.c (ix86_expand_vector_move): Force SUBREGs of
12571 constants into memory. Expand unaligned memory references for
12572 SSE modes via x86_expand_vector_move_misalign() function.
12573
12574 2007-05-25 Uros Bizjak <ubizjak@gmail.com>
12575
12576 * config/i386/sse.md (*vec_extractv2di_1_sse2): Do not calculate
12577 "memory" attribute for "sseishft" type insn without operands[2].
12578
12579 2007-05-25 Dirk Mueller <dmueller@suse.de>
12580 Marcus Meissner <meissner@suse.de>
12581
12582 * doc/extend.texi (alloc_size): New attribute.
12583 * c-common.c (handle_alloc_size_attribute): New.
12584 * tree-object-size.c (alloc_object_size): Use alloc_size
12585 attribute, if available.
12586
12587 2007-05-25 H.J. Lu <hongjiu.lu@intel.com>
12588
12589 * config/i386/i386.c (__builtin_ia32_vec_ext_v2df): Mark it
12590 with MASK_SSE2.
12591 (__builtin_ia32_vec_ext_v2di): Likewise.
12592 (__builtin_ia32_vec_ext_v4si): Likewise.
12593 (__builtin_ia32_vec_ext_v8hi): Likewise.
12594 (__builtin_ia32_vec_ext_v16qi): Likewise.
12595 (__builtin_ia32_vec_set_v8hi): Likewise.
12596
12597 2007-05-25 H.J. Lu <hongjiu.lu@intel.com>
12598
12599 * config/i386/sse.md (*vec_extractv2di_1_sse2): Correct shift.
12600
12601 2007-05-25 Richard Sandiford <richard@codesourcery.com>
12602
12603 * config/arm/arm-protos.h (arm_encode_call_attribute): Delete.
12604 (arm_is_longcall_p): Rename to...
12605 (arm_is_long_call_p): ...this. Take a single tree argument and
12606 return a bool.
12607 * config/arm/arm.h (CALL_SHORT, CALL_LONG, CALL_NORMAL): Delete.
12608 (CUMULATIVE_ARGS): Remove call_cookie.
12609 (SHORT_CALL_FLAG_CHAR, LONG_CALL_FLAG_CHAR, ENCODED_SHORT_CALL_ATTR_P)
12610 (ENCODED_LONG_CALL_ATTR_P): Delete.
12611 (ARM_NAME_ENCODING_LENGTHS): Remove SHORT_CALL_FLAG_CHAR and
12612 LONG_CALL_FLAG_CHAR cases.
12613 (ARM_DECLARE_FUNCTION_SIZE): Delete.
12614 * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Don't use
12615 ARM_DECLARE_FUNCTION_SIZE.
12616 * config/arm/arm.c (arm_init_cumulative_args): Don't set call_cookie.
12617 (arm_function_arg): Return const0_rtx for VOIDmode arguments.
12618 (arm_encode_call_attribute, current_file_function_operand): Delete.
12619 (arm_function_in_section_p): New function.
12620 (arm_is_longcall_p): Rename to...
12621 (arm_is_long_call_p): ...this. Take the target function as a single
12622 argument and return a bool. Do not rely on call cookies. Check
12623 whether the target symbol is in the same section as the current
12624 function, not just the same compilation unit.
12625 (arm_function_ok_for_sibcall): Use arm_is_long_call_p.
12626 (arm_encode_section_info): Don't encode a call type.
12627 * config/arm/arm.md (call, call_value): Update calls to
12628 arm_is_long(_)call_p. Simplify logic.
12629 (*call_symbol, *call_value_symbol, *call_insn, *call_value_insn):
12630 Update calls to arm_is_long(_)call_p.
12631
12632 2007-05-25 Richard Guenther <rguenther@suse.de>
12633
12634 PR tree-optimization/31982
12635 * tree-ssa-forwprop.c
12636 (forward_propagate_addr_into_variable_array_index): Handle arrays
12637 with element size one.
12638
12639 2007-05-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
12640
12641 * config/spu/spu.md (smulsi3_highpart): Unshare the rtl chain.
12642 (umulsi3_highpart): Likewise.
12643
12644 2007-05-24 Ian Lance Taylor <iant@google.com>
12645
12646 PR rtl-optimization/32069
12647 * regclass.c (regclass): Don't crash if the entry in regno_reg_rtx
12648 is NULL.
12649
12650 2007-05-24 Ollie Wild <aaw@google.com>
12651
12652 * doc/cpp.texi (Common Predefined Macros): Add __COUNTER__
12653 description.
12654
12655 2007-05-24 Richard Sandiford <rsandifo@nildram.co.uk>
12656
12657 * postreload-gcse.c (reg_changed_after_insn_p): New function.
12658 (oprs_unchanged_p): Use it to check all registers in a REG.
12659 (record_opr_changes): Look for clobbers in CALL_INSN_FUNCTION_USAGE.
12660 (reg_set_between_after_reload_p): Delete.
12661 (reg_used_between_after_reload_p): Likewise.
12662 (reg_set_or_used_since_bb_start): Likewise.
12663 (eliminate_partially_redundant_load): Use reg_changed_after_insn_p
12664 and reg_used_between_p instead of reg_set_or_used_since_bb_start.
12665 Use reg_set_between_p instead of reg_set_between_after_reload_p.
12666 * rtlanal.c (reg_set_p): Check whether REG overlaps
12667 regs_invalidated_by_call, rather than just checking the
12668 membership of REGNO (REG).
12669
12670 2007-05-24 Zdenek Dvorak <dvorakz@suse.cz>
12671
12672 * doc/passes.texi: Document predictive commoning.
12673 * doc/invoke.texi (-fpredictive-commoning): Document.
12674 * opts.c (decode_options): Enable flag_predictive_commoning on -O3.
12675 * tree-ssa-loop-im.c (get_lsm_tmp_name): Export. Allow
12676 adding indices to the generated name.
12677 (schedule_sm): Pass 0 to get_lsm_tmp_name.
12678 * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Export.
12679 * tree-pretty-print.c (op_symbol_1): Renamed to ...
12680 (op_symbol_code): ... and exported.
12681 (dump_omp_clause, op_symbol): Use op_symbol_code
12682 instead of op_symbol_1.
12683 * tree-pass.h (pass_predcom): Declare.
12684 * timevar.def (TV_PREDCOM): New timevar.
12685 * tree-ssa-loop.c (run_tree_predictive_commoning,
12686 gate_tree_predictive_commoning, pass_predcom): New.
12687 * tree-data-ref.c (find_data_references_in_loop): Find the
12688 references in dominance order.
12689 (canonicalize_base_object_address): Ensure that the result has
12690 pointer type.
12691 (dr_analyze_innermost): Export.
12692 (create_data_ref): Code to fail for references with invariant
12693 address moved ...
12694 (find_data_references_in_stmt): ... here.
12695 * tree-data-ref.h (dr_analyze_innermost): Declare.
12696 * tree-affine.c: Include tree-gimple.h and hashtab.h.
12697 (aff_combination_find_elt, name_expansion_hash,
12698 name_expansion_eq, tree_to_aff_combination_expand,
12699 double_int_constant_multiple_p, aff_combination_constant_multiple_p):
12700 New functions.
12701 * tree-affine.h (aff_combination_constant_multiple_p,
12702 tree_to_aff_combination_expand): Declare.
12703 * tree-predcom.c: New file.
12704 * common.opt (fpredictive-commoning): New option.
12705 * tree-flow.h (op_symbol_code, tree_predictive_commoning,
12706 stmt_dominates_stmt_p, get_lsm_tmp_name): Declare.
12707 * Makefile.in (tree-predcom.o): Add.
12708 (tree-affine.o): Add TREE_GIMPLE_H dependency.
12709 * passes.c (init_optimization_passes): Add dceloop after
12710 copy propagation in loop optimizer. Add predictive commoning
12711 to loop optimizer passes.
12712
12713 2007-05-24 H.J. Lu <hongjiu.lu@intel.com>
12714
12715 * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Correct
12716 default hook.
12717
12718 2007-05-24 Jan Hubicka <jh@suse.cz>
12719
12720 * gengenrtl.c (gendecl, gendef): Output the gens annotated for
12721 statistics.
12722 (genheader): Include statistics.h.
12723
12724 * doc/invoke.texi (-fdump-unnumbered): Update docs when line number
12725 notes are gone.
12726 * print-rtl.c (flag_dump_unnumbered): Update comments.
12727 (print_rtl): Fix my previous change.
12728 * emit-rtl.c (emit_note_before, emit_note_after): Clear out note
12729 specific data.
12730
12731 2007-05-24 Zdenek Dvorak <dvorakz@suse.cz>
12732
12733 PR middle-end/32018
12734 * tree-ssa-threadupdate.c (thread_through_loop_header): Use
12735 set_loop_copy.
12736 (thread_through_all_blocks): Call initialize_original_copy_tables
12737 and free_original_copy_tables.
12738 * cfgloopmanip.c (duplicate_loop, duplicate_loop_to_header_edge):
12739 Use set_loop_copy.
12740 * tree-cfg.c (tree_duplicate_sese_region): Ditto.
12741 * cfghooks.c (duplicate_block): Use get_loop_copy.
12742 * cfg.c: Include cfgloop.h.
12743 (loop_copy): New hash table.
12744 (initialize_original_copy_tables): Initialize loop_copy table.
12745 (free_original_copy_tables): Free loop_copy table.
12746 (copy_original_table_clear, copy_original_table_set,
12747 set_loop_copy, get_loop_copy): New functions.
12748 (set_bb_original, set_bb_copy): Use copy_original_table_set.
12749 * cfgloop.h (struct loop): Remove copy field.
12750 * Makefile.in (cfg.o): Add CFGLOOP_H dependency.
12751 * basic-block.h (set_loop_copy, get_loop_copy): Declare.
12752
12753 2007-05-24 H.J. Lu <hongjiu.lu@intel.com>
12754
12755 * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 for
12756 -msse/-msse2/-msse3.
12757
12758 2007-05-24 H.J. Lu <hongjiu.lu@intel.com>
12759
12760 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Mark
12761 __builtin_ia32_vec_set_v2di with MASK_64BIT.
12762
12763 2007-05-24 Danny Smith <dannysmith@users.sourceforge.net>
12764
12765 PR target/27067
12766 * doc/tm.texi (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Document.
12767 * targhooks.h (default_mangle_decl_assembler_name): Declare
12768 default hook.
12769 * targhooks.c (default_mangle_decl_assembler_name): Define
12770 default hook.
12771 * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) New. Set to
12772 default hook.
12773 * target.h (struct gcc_target): Add mangle_decl_assembler_name field.
12774 * langhooks.c (lhd_set_decl_assembler_name): Call
12775 targetm.mangle_decl_assembler_name for names with global scope.
12776
12777 * config/i386/cygming.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) Override
12778 default.
12779 (ASM_OUTPUT_DEF_FROM_DECLS): Simplify to use DECL_ASSEMBLER_NAME.
12780 * config/i386/i386-protos.h (i386_pe_mangle_decl_assembler_name):
12781 Declare.
12782 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
12783 New. Factored out of i386_pe_encode_section_info.
12784 (gen_stdcall_or_fastcall_suffix): Get name identifier as argument.
12785 Move check for prior decoration of stdcall
12786 symbols to i386_pe_encode_section_info.
12787 (i386_pe_encode_section_info): Adjust call to
12788 gen_stdcall_or_fastcall_suffix. Use
12789 i386_pe_maybe_mangle_decl_assembler_name, if needed.
12790 (i386_pe_mangle_decl_assembler_name): New. Wrap
12791 i386_pe_maybe_mangle_decl_assembler_name.
12792
12793 2007-05-16 Rafael Avila de Espindola <espindola@google.com>
12794
12795 * c-common.c (c_common_signed_or_unsigned_type): Delay the check for
12796 INTEGRAL_TYPE_P and TYPE_UNSIGNED.
12797 * langhooks.c (get_signed_or_unsigned_type): Don't check for
12798 INTEGRAL_TYPE_P or TYPE_UNSIGNED.
12799 (lhd_signed_or_unsigned_type): Check for INTEGRAL_TYPE_P and
12800 TYPE_UNSIGNED.
12801
12802 2007-05-23 Sandra Loosemore <sandra@codesourcery.com>
12803 Nigel Stephens <nigel@mips.com>
12804 Richard Sandiford <richard@codesourcery.com>
12805
12806 Fix up MIPS16 hard float and add support for complex.
12807
12808 * config/mips/mips.h (TARGET_HARD_FLOAT_ABI): New.
12809 (TARGET_SOFT_FLOAT_ABI): New.
12810 (TARGET_CPU_CPP_BUILTINS): Define __mips_hard_float and
12811 __mips_soft_float to reflect the ABI in use, not whether the
12812 FPU is directly accessible (e.g., in MIPS16 mode).
12813 (UNITS_PER_HWFPVALUE): Use TARGET_SOFT_FLOAT_ABI.
12814 (UNITS_PER_FPVALUE): Likewise.
12815
12816 * config/mips/mips.c (mips_expand_call): Remove redundant
12817 TARGET_MIPS16 check.
12818 (mips_arg_regno): New.
12819 (function_arg_advance): When setting bits in cum->fp_code for
12820 MIPS16, don't subtract 1 from cum->arg_number, since it is now
12821 zero-based.
12822 (function_arg): Use mips_arg_regno.
12823 (mips_return_mode_in_fpr_p): New.
12824 (mips16_call_stub_mode_suffix): New.
12825 (mips16_cfun_returns_in_fpr_p): New.
12826 (mips_save_reg_p): Use mips16_cfun_returns_in_fpr_p.
12827 (mips_output_function_prologue): Test mips16_hard_float, not
12828 !TARGET_SOFT_FLOAT, to decide when a function stub is required.
12829 (mips_expand_epilogue): Call MIPS16 helper routines to copy
12830 return value into a floating-point register.
12831 (mips_can_use_return_insn): Use mips16_cfun_returns_in_fpr_p.
12832 (mips_function_value): Rewrite to use mips_return_mode_in_fpr_p.
12833 (mips16_fp_args): Handle MIPS32r2 ISA which supports
12834 TARGET_FLOAT64, and use mfhc1/mthc1 to copy the most significant
12835 word of double arguments from or to the high bits of 64-bit
12836 floating point registers.
12837 (build_mips16_function_stub): Fill in DECL_RESULT for stubdecl.
12838 (mips16_fpret_double): New helper function.
12839 (build_mips16_call_stub): Use mips16_return_mode_in_fpr_p. Add
12840 support for complex modes. Fill in DECL_RESULT for stubdecl.
12841 (mips_init_libfuncs): Remove redundant TARGET_MIPS16 check.
12842
12843 * config/mips/mips16.S
12844 (RET, ARG1, ARG2): New.
12845 (MERGE_GPRf, MERGE_GPRt): New.
12846 (DELAYt, DELAYf): New.
12847 (MOVE_SF_BYTE0, MOVE_SI_BYTE0): New.
12848 (MOVE_SF_BYTE4, MOVE_SF_BYTE8): New.
12849 (MOVE_DF_BYTE0, MOVE_DF_BYTE8): New.
12850 (MOVE_SF_RET, MOVE_SC_RET, MOVE_DF_RET, MOVE_DC_RET, MOVE_SI_RET): New.
12851 (SFOP): Renamed to...
12852 (OPSF3): This, and macro-ified. Updated all uses.
12853 (SFOP2): Renamed to...
12854 (OPSF2): This, and macro-ified. Updated all uses.
12855 (SFCMP): Renamed to...
12856 (CMPSF): This, and macro-ified. Updated all uses.
12857 (SFREVCMP): Renamed to...
12858 (REVCMPSF): This, and macro-ified. Updated all uses.
12859 (__mips16_floatsisf, __mips16_fix_truncsfsi): Macro-ified.
12860 (LDDBL1, LDDBL2, RETDBL): Deleted.
12861 (DFOP): Renamed to...
12862 (OPDF3): This, and macro-ified. Updated all uses.
12863 (DFOP2): Renamed to...
12864 (OPDF2): This, and macro-ified. Updated all uses.
12865 (__mips16_extendsfdf2, __mips16_truncdfsf2): Macro-ified.
12866 (DFCMP): Renamed to...
12867 (CMPDF): This, and macro-ified. Updated all uses.
12868 (DFREVCMP): Renamed to...
12869 (REVCMPDF): This, and macro-ified. Updated all uses.
12870 (__mips16_floatsidf, __mips16_fix_truncdfsi): Macro-ified.
12871 (RET_FUNCTION): New.
12872 (__mips16_ret_sf, __mips16_ret_df): Macro-ified.
12873 (__mips16_ret_sc, __mips16_ret_dc): New.
12874 (STUB_ARGS_0, STUB_ARGS_1, STUB_ARGS_5, STUB_ARGS_9, STUB_ARGS_2,
12875 STUB_ARGS_6, STUB_ARGS_10): New.
12876 (CALL_STUB_NO_RET): New.
12877 (__mips16_call_stub_1): Macro-ified.
12878 (__mips16_call_stub_5): Macro-ified.
12879 (__mips16_call_stub_2): Macro-ified.
12880 (__mips16_call_stub_6): Macro-ified.
12881 (__mips16_call_stub_9): Macro-ified.
12882 (__mips16_call_stub_10): Macro-ified.
12883 (CALL_STUB_RET): New.
12884 (__mips16_call_stub_sf_0): Macro-ified.
12885 (__mips16_call_stub_sf_1): Macro-ified.
12886 (__mips16_call_stub_sf_5): Macro-ified.
12887 (__mips16_call_stub_sf_2): Macro-ified.
12888 (__mips16_call_stub_sf_6): Macro-ified.
12889 (__mips16_call_stub_sf_9): Macro-ified.
12890 (__mips16_call_stub_sf_10): Macro-ified.
12891 (__mips16_call_stub_df_0): Macro-ified.
12892 (__mips16_call_stub_df_1): Macro-ified.
12893 (__mips16_call_stub_df_5): Macro-ified.
12894 (__mips16_call_stub_df_2): Macro-ified.
12895 (__mips16_call_stub_df_6): Macro-ified.
12896 (__mips16_call_stub_df_9): Macro-ified.
12897 (__mips16_call_stub_df_10): Macro-ified.
12898 (__mips16_call_stub_sc_0): New.
12899 (__mips16_call_stub_sc_1): New.
12900 (__mips16_call_stub_sc_5): New.
12901 (__mips16_call_stub_sc_2): New.
12902 (__mips16_call_stub_sc_6): New.
12903 (__mips16_call_stub_sc_9): New.
12904 (__mips16_call_stub_sc_10): New.
12905 (__mips16_call_stub_dc_0): New.
12906 (__mips16_call_stub_dc_1): New.
12907 (__mips16_call_stub_dc_5): New.
12908 (__mips16_call_stub_dc_2): New.
12909 (__mips16_call_stub_dc_6): New.
12910 (__mips16_call_stub_dc_9): New.
12911 (__mips16_call_stub_dc_10): New.
12912
12913 * config/mips/t-elf (LIB1ASMFUNCS): Add MIPS16 floating-point stubs.
12914 * config/mips/t-isa3264 (LIB1ASMFUNCS): Likewise.
12915 * config/mips/t-r2900 (LIB1ASMFUNCS): Likewise.
12916
12917 2007-05-23 Ian Lance Taylor <iant@google.com>
12918
12919 * doc/invoke.texi (Invoking GCC): Document that the order of the
12920 -l option matters.
12921
12922 2007-05-23 Chen Liqin <liqin@sunnorth.com.cn>
12923
12924 PR target/30987
12925 * config/score/misc.md (bitclr_c, bitset_c, bittgl_c): Remove.
12926 * config/score/predicate.md (const_pow2, const_npow2): Remove.
12927 * config/score/score.h (ASM_OUTPUT_EXTERNAL): Add ASM_OUTPUT_EXTERNAL
12928 undef.
12929
12930 PR target/30474
12931 * config/score/score.c (score_print_operand): Make sure that only
12932 lower bits are used.
12933
12934 2007-05-22 Ian Lance Taylor <iant@google.com>
12935
12936 * tree-vrp.c (avoid_overflow_infinity): New static function,
12937 broken out of set_value_range_to_value.
12938 (set_value_range_to_value): Call avoid_overflow_infinity.
12939 (extract_range_from_assert): Likewise.
12940
12941 2007-05-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
12942
12943 PR middle-end/31095
12944 * builtins.c (expand_builtin_memmove_args): Strip nops that don't
12945 change the type before looking for a COMPOUND_EXPR.
12946
12947 2007-05-22 Ian Lance Taylor <iant@google.com>
12948
12949 * lower-subreg.c (decompose_multiword_subregs): If we change an
12950 insn, call remove_retval_note on it.
12951
12952 2007-05-22 Richard Sandiford <rsandifo@nildram.co.uk>
12953
12954 * regs.h (end_hard_regno): New function.
12955 (END_HARD_REGNO, END_REGNO): New macros.
12956 (add_to_hard_reg_set): New function.
12957 (remove_from_hard_reg_set): Likewise.
12958 (in_hard_reg_set_p): Likewise.
12959 (overlaps_hard_reg_set_p): Likewise.
12960 * bt-load.c (find_btr_reference): Use overlaps_hard_reg_set_p.
12961 (note_btr_set): Use END_HARD_REGNO.
12962 * caller-save.c (setup_save_areas): Use end_hard_regno.
12963 (mark_set_regs): Use END_HARD_REGNO.
12964 (add_stored_regs): Use end_hard_regno.
12965 (mark_referenced_regs): Use add_to_hard_reg_set.
12966 * combine.c (update_table_tick): Use END_REGNO.
12967 (record_value_for_reg): Likewise.
12968 (record_dead_and_set_regs): Likewise.
12969 (get_last_value_validate): Likewise.
12970 (use_crosses_set_p): Likewise.
12971 (reg_dead_at_p_1): Likewise.
12972 (reg_dead_at_p): Likewise.
12973 (mark_used_regs_combine): Use add_to_hard_reg_set.
12974 (move_deaths): Use END_HARD_REGNO.
12975 (reg_bitfield_target_p): Use end_hard_regno.
12976 (distribute_notes): Use END_HARD_REGNO.
12977 * cse.c (mention_regs): Use END_REGNO.
12978 (insert): Use add_to_hard_reg_set.
12979 (invalidate): Use END_HARD_REGNO.
12980 (invalidate_for_call): Likewise.
12981 (exp_equiv_p): Use END_REGNO.
12982 (cse_insn): Likewise.
12983 * cselib.c (cselib_invalidate_regno): Use end_hard_regno.
12984 * df-problems.c (df_urec_mark_reg_change): Use END_HARD_REGNO.
12985 * df-scan.c (df_ref_record): Use END_HARD_REGNO.
12986 * function.c (keep_stack_depressed): Use end_hard_regno.
12987 * global.c (global_alloc): Use end_hard_regno.
12988 (global_conflicts): Use add_to_hard_reg_set instead of
12989 mark_reg_live_nc.
12990 (find_reg): Likewise.
12991 (mark_reg_store): Likewise.
12992 (mark_reg_conflicts): Likewise.
12993 (mark_reg_death): Use remove_from_hard_reg_set.
12994 (mark_reg_live_nc): Delete.
12995 (set_preference): Use end_hard_regno.
12996 * local-alloc.c (mark_life): Use add_to_hard_reg_set and
12997 remove_from_hard_reg_set.
12998 (post_mark_life): Use add_to_hard_reg_set.
12999 * mode-switching.c (reg_dies): Use remove_from_hard_reg_set.
13000 (reg_becomes_live): Use add_to_hard_reg_set.
13001 * recog.c (reg_fits_class_p): Use in_hard_reg_set_p.
13002 (peep2_find_free_register): Use add_to_hard_reg_set.
13003 * reg-stack.c (convert_regs_exit): Use END_HARD_REGNO.
13004 * regclass.c (record_reg_classes): Use in_hard_reg_set_p.
13005 * regrename.c (note_sets): Use add_to_hard_reg_set.
13006 (clear_dead_regs): Use remove_from_hard_reg_set.
13007 (regrename_optimize): Use add_to_hard_reg_set.
13008 (find_oldest_value_reg): Use in_hard_reg_set_p.
13009 * reload.c (push_reload): Use in_hard_reg_set_p and end_hard_regno.
13010 (hard_reg_set_here_p): Use end_hard_regno.
13011 (decompose): Likewise.
13012 (reg_overlap_mentioned_for_reload_p): Use END_HARD_REGNO.
13013 (find_equiv_reg): Use in_hard_reg_set_p and end_hard_regno.
13014 * reload1.c (compute_use_by_pseudos): Use add_to_hard_reg_set.
13015 (mark_home_live): Use end_hard_regno.
13016 (spill_hard_reg): Likewise.
13017 (clear_reload_reg_in_use): Likewise.
13018 * reorg.c (delete_prior_computation): Use END_REGNO.
13019 * resource.c (update_live_status): Use END_HARD_REGNO.
13020 (mark_referenced_resources): Use add_to_hard_reg_set.
13021 (mark_set_resources): Likewise.
13022 (mark_target_live_regs): Likewise. Use remove_from_hard_reg_set.
13023 * rtlanal.c (refers_to_regno_p): Use END_REGNO.
13024 (reg_overlap_mentioned_p): Likewise.
13025 (dead_or_set_p): Likewise. Use an exclusive upper loop bound.
13026 (covers_regno_no_parallel_p): Use END_REGNO.
13027 (find_regno_note): Likewise.
13028 (find_reg_fusage): Use END_HARD_REGNO.
13029 * stmt.c (decl_overlaps_hard_reg_set_p): Use overlaps_hard_reg_set_p.
13030 * var-tracking.c (emit_note_insn_var_location): Use end_hard_regno.
13031
13032 2007-05-22 Richard Sandiford <rsandifo@nildram.co.uk>
13033
13034 * mode-switching.c (reg_dies): Change type of second argument to
13035 "HARD_REG_SET *".
13036 (optimize_mode_switching): Update accordingly.
13037
13038 2007-05-22 Richard Sandiford <richard@codesourcery.com>
13039
13040 * hard-reg-set.h (GO_IF_HARD_REG_SUBSET, GO_IF_HARD_REG_EQUAL): Delete
13041 in favor of...
13042 (hard_reg_subset_p, hard_reg_sets_equal_p, hard_reg_sets_intersect_p)
13043 (hard_reg_set_empty_p): ...these new functions.
13044 * bt-load.c (choose_btr): Use hard_reg_subset_p instead of
13045 GO_IF_HARD_REG_SUBSET.
13046 * cfgcleanup.c (old_insns_match_p): Use hard_reg_sets_equal_p
13047 instead of GO_IF_HARD_REG_EQUAL.
13048 * df-problems.c (df_urec_local_compute): Use hard_reg_set_empty_p
13049 instead of GO_IF_HARD_REG_EQUAL.
13050 * global.c (find_reg): Use hard_reg_set_empty_p instead of
13051 GO_IF_HARD_REG_SUBSET.
13052 (modify_reg_pav): Use hard_reg_set_empty_p instead of
13053 GO_IF_HARD_REG_EQUAL.
13054 * local-alloc.c (find_free_reg): Use hard_reg_subset_p instead
13055 of GO_IF_HARD_REG_SUBSET.
13056 * reg-stack.c (change_stack, convert_regs_1): Use hard_reg_sets_equal_p
13057 instead of GO_IF_HARD_REG_EQUAL.
13058 * regclass.c (init_reg_sets_1, reg_scan_mark_refs): Use
13059 hard_reg_subset_p instead of GO_IF_HARD_REG_SUBSET.
13060 (reg_classes_intersect_p): Use hard_reg_sets_intersect_p instead
13061 of GO_IF_HARD_REG_SUBSET,
13062 * reload1.c (finish_spills): Use hard_reg_subset_p instead of
13063 GO_IF_HARD_REG_SUBSET.
13064 * struct-equiv.c (death_notes_match_p): Use hard_reg_sets_equal_p
13065 instead of GO_IF_HARD_REG_EQUAL.
13066 * config/sh/sh.c (push_regs, calc_live_regs): Use
13067 hard_reg_sets_intersect_p instead of hard_regs_intersect_p.
13068 (hard_regs_intersect_p): Delete.
13069
13070 2007-05-22 Janis Johnson <janis187@us.ibm.com>
13071
13072 * doc/sourcebuild.texi (Test Directives) Add dg-message.
13073
13074 2007-05-22 H.J. Lu <hongjiu.lu@intel.com>
13075 Richard Henderson <rth@redhat.com>
13076
13077 * config.gcc (i[34567]86-*-*): Add smmintrin.h to
13078 extra_headers.
13079 (x86_64-*-*): Likewise.
13080
13081 * i386/i386-modes.def (V2QI): New.
13082
13083 * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 and
13084 SSE4A.
13085 (override_options): Support SSE4.1.
13086 (IX86_BUILTIN_BLENDPD): New for SSE4.1.
13087 (IX86_BUILTIN_BLENDPS): Likewise.
13088 (IX86_BUILTIN_BLENDVPD): Likewise.
13089 (IX86_BUILTIN_BLENDVPS): Likewise.
13090 (IX86_BUILTIN_PBLENDVB128): Likewise.
13091 (IX86_BUILTIN_PBLENDW128): Likewise.
13092 (IX86_BUILTIN_DPPD): Likewise.
13093 (IX86_BUILTIN_DPPS): Likewise.
13094 (IX86_BUILTIN_INSERTPS128): Likewise.
13095 (IX86_BUILTIN_MOVNTDQA): Likewise.
13096 (IX86_BUILTIN_MPSADBW128): Likewise.
13097 (IX86_BUILTIN_PACKUSDW128): Likewise.
13098 (IX86_BUILTIN_PCMPEQQ): Likewise.
13099 (IX86_BUILTIN_PHMINPOSUW128): Likewise.
13100 (IX86_BUILTIN_PMAXSB128): Likewise.
13101 (IX86_BUILTIN_PMAXSD128): Likewise.
13102 (IX86_BUILTIN_PMAXUD128): Likewise.
13103 (IX86_BUILTIN_PMAXUW128): Likewise.
13104 (IX86_BUILTIN_PMINSB128): Likewise.
13105 (IX86_BUILTIN_PMINSD128): Likewise.
13106 (IX86_BUILTIN_PMINUD128): Likewise.
13107 (IX86_BUILTIN_PMINUW128): Likewise.
13108 (IX86_BUILTIN_PMOVSXBW128): Likewise.
13109 (IX86_BUILTIN_PMOVSXBD128): Likewise.
13110 (IX86_BUILTIN_PMOVSXBQ128): Likewise.
13111 (IX86_BUILTIN_PMOVSXWD128): Likewise.
13112 (IX86_BUILTIN_PMOVSXWQ128): Likewise.
13113 (IX86_BUILTIN_PMOVSXDQ128): Likewise.
13114 (IX86_BUILTIN_PMOVZXBW128): Likewise.
13115 (IX86_BUILTIN_PMOVZXBD128): Likewise.
13116 (IX86_BUILTIN_PMOVZXBQ128): Likewise.
13117 (IX86_BUILTIN_PMOVZXWD128): Likewise.
13118 (IX86_BUILTIN_PMOVZXWQ128): Likewise.
13119 (IX86_BUILTIN_PMOVZXDQ128): Likewise.
13120 (IX86_BUILTIN_PMULDQ128): Likewise.
13121 (IX86_BUILTIN_PMULLD128): Likewise.
13122 (IX86_BUILTIN_ROUNDPD): Likewise.
13123 (IX86_BUILTIN_ROUNDPS): Likewise.
13124 (IX86_BUILTIN_ROUNDSD): Likewise.
13125 (IX86_BUILTIN_ROUNDSS): Likewise.
13126 (IX86_BUILTIN_PTESTZ): Likewise.
13127 (IX86_BUILTIN_PTESTC): Likewise.
13128 (IX86_BUILTIN_PTESTNZC): Likewise.
13129 (IX86_BUILTIN_VEC_EXT_V16QI): Likewise.
13130 (IX86_BUILTIN_VEC_SET_V2DI): Likewise.
13131 (IX86_BUILTIN_VEC_SET_V4SF): Likewise.
13132 (IX86_BUILTIN_VEC_SET_V4SI): Likewise.
13133 (IX86_BUILTIN_VEC_SET_V16QI): Likewise.
13134 (bdesc_ptest): New.
13135 (bdesc_sse_3arg): Likewise.
13136 (bdesc_2arg): Likewise.
13137 (bdesc_1arg): Likewise.
13138 (ix86_init_mmx_sse_builtins): Support SSE4.1. Handle SSE builtins
13139 with 3 args.
13140 (ix86_expand_sse_4_operands_builtin): New.
13141 (ix86_expand_unop_builtin): Support 2 arg builtins with a constant
13142 smaller than 8 bits as the 2nd arg.
13143 (ix86_expand_sse_ptest): New.
13144 (ix86_expand_builtin): Support SSE4.1. Support 3 arg SSE builtins.
13145 (ix86_expand_vector_set): Support SSE4.1.
13146 (ix86_expand_vector_extract): Likewise.
13147
13148 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
13149 __SSE4_1__ for -msse4.1.
13150
13151 * config/i386/i386.md (UNSPEC_BLENDV): New for SSE4.1.
13152 (UNSPEC_INSERTPS): Likewise.
13153 (UNSPEC_DP): Likewise.
13154 (UNSPEC_MOVNTDQA): Likewise.
13155 (UNSPEC_MPSADBW): Likewise.
13156 (UNSPEC_PHMINPOSUW): Likewise.
13157 (UNSPEC_PTEST): Likewise.
13158 (UNSPEC_ROUNDP): Likewise.
13159 (UNSPEC_ROUNDS): Likewise.
13160
13161 * config/i386/i386.opt (msse4.1): New for SSE4.1.
13162
13163 * config/i386/predicates.md (const_pow2_1_to_2_operand): New.
13164 (const_pow2_1_to_32768_operand): Likewise.
13165
13166 * config/i386/smmintrin.h: New. The SSE4.1 intrinsic header
13167 file.
13168
13169 * config/i386/sse.md (*vec_setv4sf_sse4_1): New pattern for
13170 SSE4.1.
13171 (sse4_1_insertps): Likewise.
13172 (*sse4_1_extractps): Likewise.
13173 (sse4_1_ptest): Likewise.
13174 (sse4_1_mulv2siv2di3): Likewise.
13175 (*sse4_1_mulv4si3): Likewise.
13176 (*sse4_1_smax<mode>3): Likewise.
13177 (*sse4_1_umax<mode>3): Likewise.
13178 (*sse4_1_smin<mode>3): Likewise.
13179 (*sse4_1_umin<mode>3): Likewise.
13180 (sse4_1_eqv2di3): Likewise.
13181 (*sse4_1_pinsrb): Likewise.
13182 (*sse4_1_pinsrd): Likewise.
13183 (*sse4_1_pinsrq): Likewise.
13184 (*sse4_1_pextrb): Likewise.
13185 (*sse4_1_pextrb_memory): Likewise.
13186 (*sse4_1_pextrw_memory): Likewise.
13187 (*sse4_1_pextrq): Likewise.
13188 (sse4_1_blendpd): Likewise.
13189 (sse4_1_blendps): Likewise.
13190 (sse4_1_blendvpd): Likewise.
13191 (sse4_1_blendvps): Likewise.
13192 (sse4_1_dppd): Likewise.
13193 (sse4_1_dpps): Likewise.
13194 (sse4_1_movntdqa): Likewise.
13195 (sse4_1_mpsadbw): Likewise.
13196 (sse4_1_packusdw): Likewise.
13197 (sse4_1_pblendvb): Likewise.
13198 (sse4_1_pblendw): Likewise.
13199 (sse4_1_phminposuw): Likewise.
13200 (sse4_1_extendv8qiv8hi2): Likewise.
13201 (*sse4_1_extendv8qiv8hi2): Likewise.
13202 (sse4_1_extendv4qiv4si2): Likewise.
13203 (*sse4_1_extendv4qiv4si2): Likewise.
13204 (sse4_1_extendv2qiv2di2): Likewise.
13205 (*sse4_1_extendv2qiv2di2): Likewise.
13206 (sse4_1_extendv4hiv4si2): Likewise.
13207 (*sse4_1_extendv4hiv4si2): Likewise.
13208 (sse4_1_extendv2hiv2di2): Likewise.
13209 (*sse4_1_extendv2hiv2di2): Likewise.
13210 (sse4_1_extendv2siv2di2): Likewise.
13211 (*sse4_1_extendv2siv2di2): Likewise.
13212 (sse4_1_zero_extendv8qiv8hi2): Likewise.
13213 (*sse4_1_zero_extendv8qiv8hi2): Likewise.
13214 (sse4_1_zero_extendv4qiv4si2): Likewise.
13215 (*sse4_1_zero_extendv4qiv4si2): Likewise.
13216 (sse4_1_zero_extendv2qiv2di2): Likewise.
13217 (*sse4_1_zero_extendv2qiv2di2): Likewise.
13218 (sse4_1_zero_extendv4hiv4si2): Likewise.
13219 (*sse4_1_zero_extendv4hiv4si2): Likewise.
13220 (sse4_1_zero_extendv2hiv2di2): Likewise.
13221 (*sse4_1_zero_extendv2hiv2di2): Likewise.
13222 (sse4_1_zero_extendv2siv2di2): Likewise.
13223 (*sse4_1_zero_extendv2siv2di2): Likewise.
13224 (sse4_1_roundpd): Likewise.
13225 (sse4_1_roundps): Likewise.
13226 (sse4_1_roundsd): Likewise.
13227 (sse4_1_roundss): Likewise.
13228 (mulv4si3): Don't expand for SSE4.1.
13229 (smax<mode>3): Likewise.
13230 (umaxv4si3): Likewise.
13231 (uminv16qi3): Likewise.
13232 (umin<mode>3): Likewise.
13233 (umaxv8hi3): Rewrite. Only enabled for SSE4.1.
13234
13235 * doc/extend.texi: Document SSE4.1 built-in functions.
13236
13237 * doc/invoke.texi: Document -msse4.1.
13238
13239 2007-05-22 Nathan Sidwell <nathan@codesourcery.com>
13240
13241 * config/m68k/linux.h (ASM_SPEC): Add asm_pcrel_spec.
13242 * config/m68k/m68k-none.h (ASM_SPEC): Don't override here.
13243 * config/m68k/m68k.h (ASM_PCREL_SPEC): New.
13244 (ASM_SPEC): Add asm_pcrel_spec.
13245 (EXTRA_SPECS): Add asm_pcrel_spec.
13246
13247 2007-05-21 David Daney <ddaney@avtrex.com>
13248
13249 * doc/install.texi (Building a cross compiler): Add requirements
13250 for Java cross compiler.
13251
13252 2007-05-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
13253
13254 PR middle-end/31995
13255 * tree-chrec.c (evolution_function_is_affine_multivariate_p):
13256 Add loopno argument. Use evolution_function_is_invariant_rec_p
13257 instead of evolution_function_is_constant_p.
13258 Update calls to evolution_function_is_affine_multivariate_p.
13259 * tree-chrec.h (evolution_function_is_affine_multivariate_p):
13260 Add loopno argument.
13261 * tree-scalar-evolution.c (gather_chrec_stats): Call
13262 evolution_function_is_affine_multivariate_p with a loop
13263 number of 0.
13264 * tree-data-ref.c (analyze_miv_subscript): Likewise.
13265 (analyze_overlapping_iterations): Likewise.
13266 (access_functions_are_affine_or_constant_p): Likewise.
13267 (build_classic_dist_vector_1): If the access functions
13268 are equal, don't do anything.
13269
13270 2007-05-21 Paolo Bonzini <bonzini@gnu.org>
13271 Paolo Carlini <pcarlini@suse.de>
13272 Uros Bizjak <ubizjak@gmail.com>
13273
13274 * c-cppbuiltin.c (c_cpp_builtins): Define
13275 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
13276 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8,
13277 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16, if appropriate.
13278 * doc/cpp.texi ([Standard Predefined Macros]): Document.
13279
13280 2007-05-21 Mike Stump <mrs@apple.com>
13281
13282 * config/darwin.h (LINK_COMMAND_SPEC): Add .cxx/.cp for dsymutil
13283 handling as well.
13284 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
13285
13286 2007-05-21 Uros Bizjak <ubizjak@gmail.com>
13287
13288 * config/i386/tmmintrin.h (_mm_alignr_epi8): Provide macro
13289 implementation if __OPTIMIZE__ is not defined.
13290 (_mm_alignr_pi8): Ditto.
13291 * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
13292 (_mm_inserti_si64): Ditto.
13293 * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
13294 (_mm_slli_epi16): Ditto.
13295 (_mm_slli_epi32): Ditto.
13296 (_mm_slli_epi64): Ditto.
13297 (_mm_srai_epi16): Ditto.
13298 (_mm_srai_epi32): Ditto.
13299 (_mm_srli_si128): Ditto.
13300 (_mm_slli_si128): Ditto.
13301 (_mm_srli_epi16): Ditto.
13302 (_mm_srli_epi32): Ditto.
13303 (_mm_srli_epi64): Ditto.
13304 (_mm_extract_epi16): Ditto.
13305 (_mm_insert_epi16): Ditto.
13306 (_mm_shufflehi_epi16): Ditto.
13307 (_mm_shufflelo_epi16): Ditto.
13308 (_mm_shuffle_epi32): Ditto.
13309 * config/i386/xmmintrin.h (_mm_extract_pi16): Ditto.
13310 (_m_pextrw): Ditto.
13311 (_mm_insert_pi16): Ditto.
13312 (_m_pinsrw): Ditto.
13313 (_mm_shuffle_pi16): Ditto.
13314 (_m_pshufw): Ditto.
13315 (_mm_shufle_ps): Ditto.
13316 (_mm_prefetch): Ditto.
13317
13318 2007-05-21 Andreas Krebbel <krebbel1@de.ibm.com>
13319
13320 * defaults.h (IBM_FLOAT_FORMAT): Macro definition removed.
13321 * doc/tm.texi (IBM_FLOAT_FORMAT): Documentation entry removed.
13322 * real.c (encode_i370_single, decode_i370_single,
13323 encode_i370_double, decode_i370_double): Functions removed.
13324 (i370_single_format, i370_double_format): Initializations removed.
13325 (real_maxval, round_for_format, exact_real_truncate, significand_size):
13326 Consider the log2_b field to always be one.
13327 (ieee_single_format, mips_single_format, coldfire_single_format,
13328 ieee_double_format, mips_double_format, coldfire_double_format,
13329 ieee_extended_motorola_format, ieee_extended_intel_96_format,
13330 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
13331 ibm_extended_format, mips_extended_format, ieee_quad_format,
13332 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
13333 decimal_single_format, decimal_double_format, decimal_quad_format,
13334 c4x_single_format, c4x_extended_format, real_internal_format): Remove
13335 initialization of log2_b.
13336 * real.h (i370_single_format, i370_double_format): Declarations
13337 removed.
13338 * c-cppbuiltin.c (builtin_define_float_constants): Consider the log2_b
13339 field to always be one.
13340
13341 2007-05-21 Andreas Schwab <schwab@suse.de>
13342
13343 * config/ia64/ia64.c (emit_predicate_relation_info): Fix use of
13344 NOTE_INSN_BASIC_BLOCK_P.
13345 (process_for_unwind_directive): Likewise.
13346
13347 2007-05-21 Nathan Sidwell <nathan@codesourcery.com>
13348
13349 * builtins.c (expand_builtin_setjmp_setup): Update comment.
13350 * function.h (struct function): Move va_list_gpr_size,
13351 va_list_fpr_size, function_frequency to front of bitfields. Add
13352 calls_unwind_init.
13353 (current_function_calls_unwind_init): New.
13354 * except.c (expand_builtin_unwind_init): Set
13355 current_function_calls_unwind_init not
13356 current_function_has_nonlocal_label.
13357 * reload1.c (has_nonexceptional_receiver): New.
13358 (reload): Use it and current_function_calls_unwind_init to
13359 determine whether call-saved regs must be saved.
13360
13361 2007-05-20 Jan Hubicka <jh@suse.cz>
13362
13363 * gengtype.c (adjust_field_rtx_def): Use NOTE_KIND instead of
13364 NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
13365 * ddg.c (create_ddg): LIkewise.
13366 * final.c (final): Remove hunk moving line number notes around since
13367 they are no longer present at this stage.
13368 (final_scan_insn): Use NOTE_KIND instead of
13369 NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
13370 (output_asm_label): Likewise.
13371 * reorg.c (dbr_schedule): Likewise.
13372 * haifa-sched.c (unlink_other_notes): Likewise.
13373 * mode-switching.c (optimize_mode_switching): Likewise.
13374 * graph.c (start_bb): Likewise.
13375 * rtl.def (NOTE): Update description.
13376 * jump.c (squeeze_notes): Delete.
13377 (mark_jump_label): Use NOTE_KIND instead of NOTE_LINE_NUMBER; use
13378 NOTE_INSN_BASIC_BLOCK_P when possible.
13379 * ifcvt.c (dead_or_predicable): Remove call of squeeze_notes.
13380 * dwarf2out.c (gen_label_die): Use NOTE_KIND instead of
13381 NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
13382 (dwarf2out_var_location): Likewise.
13383 * cfgbuild.c (make_edges): Likewise.
13384 (find_basic_blocks_1): Likewise.
13385 * function.c (reorder_blocks_1): Likewise.
13386 (epilogue_done): Likewise.
13387 (reposition_prologue_and_epilogue_notes): Likewise.
13388 * print-rtl.c (print_rtx): Likewise; drop code for printing
13389 line number notes.
13390 (print_rtl): Likewise.
13391 (print_rtl_single): Likewise.
13392 * gcse.c (insert_insn_start_bb): Likewise.
13393 * alias.c (init_alias_analysis): Likewise.
13394 * calls.c (fixup_tail_calls): Likewise.
13395 * except.c (sjlj_emit_function_enter): Likewise.
13396 * emit-rtl.c (add_insn_after): Likeiwse.
13397 (emit_label_before): Likewise.
13398 (emit_label_after): Likewise.
13399 (emit_note_before, emit_note_after, emit_note): Update
13400 parameter to be enum insn_note; do not deal with source
13401 files.
13402 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps):
13403 Use NOTE_KIND instead of NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P
13404 when possible.
13405 (merge_blocks_move_successor_nojumps): Simplify now when
13406 we don't have BLOCK notes.
13407 (try_optimize_cfg): Likewise.
13408 * cfglayout.c (skip_insns_after_block): Likewise.
13409 (record_effective_endpoints): Likewise.
13410 (duplicate_insn_chain): Likewise.
13411 * varasm.c (output_constant_pool_1): Likewise.
13412 * sched-deps.c (sched_analyze): Likewise.
13413 * rtl.c (NOTE_INSN_MAX_isnt_negative_adjust_NOTE_INSN_BIAS):
13414 Exterminate.
13415 (note_insn_name): Simplify now when NOTE_INSN_BIAS is gone.
13416 * rtl.h (NOTE_SOURCE_LOCATION, NOTE_EXPANDED_LOCATION): Exterminate.
13417 (SET_INSN_DELETED): Simplify.
13418 (NOTE_LINE_NUMBER): Exterminate.
13419 (NOTE_LINE_KIND): New.
13420 (NOTE_INSN_BASIC_BLOCK_P): Update.
13421 (enum insn_note): Simplify.
13422 (GET_NOTE_INSN_NAME) Simplify.
13423 (emit_note_before, emit_note_after, emit_note): Update prototype.
13424 (squeeze_notes): Remove.
13425 * sched-int.h (NOTE_NOT_BB_P): Update.
13426 * resource.c (mark_target_live_regs): Update.
13427 * sched-rgn.c (debug_dependencies): Update.
13428 * sched-vis.c (print_insn): Update.
13429 * config/alpha/alpha.c (alpha_handle_trap_shadows): Update.
13430 * config/i386/i386.c (ix86_output_function_epilogue): Update.
13431 * config/sh/sh.c (sh_adjust_unroll_max): Function dead since gcc 4.0.0.
13432 (TARGET_ADJUST_UNROLL_MAX): Likewise.
13433 (split_branches): Update.
13434 (sh_optimize_target_register_callee_saved): Remove hunk dead since gcc
13435 4.0.0.
13436 (sh_adjust_unroll_max): Exterminate.
13437 * config/c4x/c4x.c (c4x_reorg): Use SET_INSN_DELETED.
13438 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Likewise.
13439 (m68hc11_reorg): Likewise.
13440 * config/ia64/ia64.c (emit_insn_group_barriers): Update.
13441 (emit_predicate_relation_info): Update.
13442 (process_for_unwind_directive): Update.
13443 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update.
13444 (output_call): Update.
13445 * config/pa/pa.c (output_lbranch): Update.
13446 (output_millicode_call): Update.
13447 (output_call): Update.
13448 (pa_combine_instructions): Update.
13449 * config/mips/mips.c (mips16_gp_pseudo_reg): Update.
13450 * config/bfin/bfin.c (gen_one_bundle): Update.
13451 * cfgrtl.c (can_delete_note_p): Update.
13452 (delete_insn): Update.
13453 (rtl_merge_blocks): Update.
13454 (commit_one_edge_insertion): Update.
13455 (rtl_verify_flow_info): Update.
13456 * stmt.c (expand_case): Do not call squeeze_notes.
13457
13458 2007-05-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13459
13460 PR middle-end/7651
13461 PR c++/11856
13462 PR c/12963
13463 PR c/23587
13464 PR other/29694
13465 * c.opt (Wtype-limits): New.
13466 * doc/invoke.texi (Wtype-limits): Document it.
13467 (Wextra): Enabled by -Wextra.
13468 * c-opts.c (c_common_post_options): Enabled by -Wextra.
13469 * c-common.c (shorten_compare): Warn with Wtype-limits.
13470
13471 2007-05-20 Uros Bizjak <ubizjak@gmail.com>
13472
13473 * config/i386/tmmintrin.h (_mm_alignr_epi32): Implement as always
13474 inlined function, not as a macro.
13475 (_mm_alignr_pi8): Ditto.
13476 * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
13477 (_mm_inserti_si64): Ditto.
13478 * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
13479 (_mm_extract_epi16): Ditto.
13480 (_mm_insert_epi16): Ditto.
13481 (_mm_shufflehi_epi16): Ditto.
13482 (_mm_shufflelo_epi16): Ditto.
13483 (_mm_shuffle_epi32): Ditto.
13484 * config/i386/xmmintrin.h (_mm_set_ss): Use 0.0f for float constant.
13485 * config/386/mm3dnow.h: Add __attribute__((__always_inline__)) to
13486 all functions.
13487 (_m_from_float): Add __extension__ to conversion. Use 0.0f for
13488 float constant.
13489 (_m_to_float): Use C89 compatible assignment.
13490
13491 2007-05-20 Martin Michlmayr <tbm@cyrius.com>
13492
13493 PR target/32007
13494 * config/arm/lib1funcs.asm: Define __ARM_ARCH__ on v2/v3 machines.
13495
13496 2007-05-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13497
13498 PR middle-end/7651
13499 * doc/invoke.texi (Wreturn-type): Complete description.
13500 (Wextra): Delete item about return-type warning.
13501 * c-decl.c: Delete redundant Wextra warning.
13502
13503 2007-05-20 Uros Bizjak <ubizjak@gmail.com>
13504
13505 PR target/31585
13506 * config/i386/pmmintrin.h: Do not include xmmintrin.h
13507 * config/i386/xmmintrin.h (_mm_extract_pi16): Implement as always
13508 inlined function, not as a macro.
13509 (_mm_prefetch): Ditto.
13510 (_m_pextrw): Ditto.
13511 (_mm_insert_pi16): Ditto.
13512 (_m_pinsrw): Ditto.
13513 (_mm_shuffle_pi16): Ditto. Add const to __N argument.
13514 (_m_pshufw): Ditto. Add const to __N argument.
13515 (_mm_shufle_ps): Ditto. Add const to __mask argument.
13516 * config/i386/emmintrin.h (_mm_slli_epi16): Add const to __B argument.
13517 (_mm_slli_epi32): Ditto.
13518 (_mm_srli_si128): Implement as always inlined function, not as a
13519 macro. Add __inline to function declaration.
13520 (_mm_slli_si128): Ditto.
13521
13522 2007-05-19 Uros Bizjak <ubizjak@gmail.com>
13523
13524 * config/i386/sfp-machine.h (FP_EX_INVALID, FP_EX_DENORM,
13525 FP_EXP_DIVZERO, FP_EX_OVERFLOW, FP_EX_UNDERFLOW, FP_EX_INEXACT):
13526 New constants.
13527 (struct fenv): New structure.
13528 (FP_HANDLE_EXCEPTIONS): New define.
13529 (FP_RND_NEAREST, FP_RND_ZERO, FP_RND_PINF, FP_RND_MINF): New constants.
13530 (_FP_DECL_EXP): New define.
13531 (FP_INIT_ROUNDMODE): New define.
13532 (FP_ROUNDMODE): New define.
13533
13534 2007-05-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13535
13536 * doc/invoke.texi (Warning Options): Add -Wconversion-sign.
13537 (Wconversion): Update description.
13538 (Wconversion-sign): New.
13539 * c.opt (Wconversion-sign): New.
13540 * c-opts.c (c_common_post_options): Uninitialized Wconversion-sign
13541 means disabled for C++. Otherwise, take the status of Wconversion.
13542 * c-common.c (conversion_warning): Warn with either Wconversion or
13543 Wconversion-sign.
13544 (warnings_for_convert_and_check): Conditions are already checked by
13545 conversion_warning.
13546 (convert_and_check): Don't check warnings if the conversion failed.
13547
13548 2007-05-19 Andy Hutchinson <HutchinsonAndy@netscape.net>
13549 Anatoly Sokolov <aesok@dol.ru>
13550
13551 * config/avr/avr-protos.h (expand_prologue, expand_epilogue,
13552 avr_epilogue_uses) : Add declaration.
13553 * config/avr/predicates.md (avr_sp_immediate_operand): New predicate.
13554 * config/avr/constraints.md (R): New constraint.
13555 config/avr/avr.md (SREG_ADDR, UNSPEC_SEI, UNSPEC_CLI,
13556 UNSPECV_PROLOGUE_SAVES, UNSPECV_EPILOGUE_RESTORES): New constants.
13557 (*pop1, *pop2, *pop3, *pop4, *pop5): Combine into ...
13558 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): ... these patterns.
13559 (*movhi_sp, popqi, pophi, enable_interrupt, disable_interrupt,
13560 call_prologue_saves, epilogue_restores, return_from_epilogue,
13561 return_from_main_epilogue, return_from_interrupt_epilogue,
13562 return_from_naked_epilogue, prologue, epilogue): New patterns.
13563 (jump): Handle symbol reference.
13564 * config/avr/avr.c (out_adj_frame_ptr, out_set_stack_ptr,
13565 avr_output_function_prologue, avr_output_function_epilogue): Remove
13566 functions.
13567 (avr_init_machine_status, expand_prologue, expand_epilogue,
13568 avr_asm_function_end_prologue, avr_epilogue_uses,
13569 avr_asm_function_begin_epilogue): New functions.
13570 (prologue_size, epilogue_size, jump_tables_size): Remove global
13571 variables.
13572 (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
13573 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
13574 (TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): Define.
13575 (avr_override_options): Initialise init_machine_status.
13576 (output_movhi): Handle all stack pointer loads.
13577 (out_movqi_r_mr, out_movqi_mr_r): Handle SREG_ADDR address.
13578 (avr_output_addr_vec_elt): Do not use variable jump_tables_size.
13579 * config/avr/avr.h (AVR_2_BYTE_PC, AVR_3_BYTE_PC): New.
13580 (EPILOGUE_USES) Redefine.
13581 (machine_function) Declare.
13582
13583 2007-05-19 Richard Sandiford <richard@codesourcery.com>
13584
13585 * config/mips/mips.c (mips_offset_within_alignment_p): Tweak comment.
13586 Use a single return statement.
13587
13588 2007-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13589
13590 PR middle-end/30250
13591 * builtins.c (do_mpfr_lgamma_r): New.
13592 (fold_builtin_2): Handle builtin gamma_r/lgamma_r.
13593 * tree.h (CASE_FLT_FN_REENT): New.
13594
13595 2007-05-18 Geoffrey Keating <geoffk@apple.com>
13596
13597 * dwarf2out.c (print_die): Use '%ld' not '%lu' to print a 'long'.
13598 (output_die): Use 'unsigned long' with %x.
13599 * sched-vis.c (print_value): Use 'unsigned HOST_WIDE_INT' and
13600 HOST_WIDE_INT_PRINT_HEX to print HOST_WIDE_INT.
13601 * tree-dump.c (dump_pointer): Use 'unsigned long' for %lx.
13602
13603 * unwind-dw2.c (uw_identify_context): Use the CFA, not the IP.
13604
13605 2007-05-18 H.J. Lu <hongjiu.lu@intel.com>
13606
13607 PR target/31989
13608 PR target/31681
13609 PR target/31666
13610 * config/i386/i386.c (init_cumulative_args): Set maybe_vaarg to
13611 true if function has no argument.
13612
13613 2007-05-18 DJ Delorie <dj@redhat.com>
13614
13615 * config/mips/mips.c (mips_offset_within_alignment_p): New.
13616 (mips_symbolic_constant_p): Call it for TPREL and DTPREL symbols.
13617
13618 2007-05-18 Uros Bizjak <ubizjak@gmail.com>
13619
13620 * longlong.h (__x86_64__): Add definitions for add_ssaaaa,
13621 sub_ddmmss, umul_ppmm, udiv_qrnnd, count_leading_zeros and
13622 count_trailing_zeros.
13623 (__i386__): Implement count_leading_zeros using __builtin_clz().
13624 Implement count_trailing_zeros usign __builtin_ctz().
13625
13626 2007-05-18 Richard Sandiford <richard@codesourcery.com>
13627
13628 * config/i386/vxworks.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine.
13629
13630 2007-05-18 Uros Bizjak <ubizjak@gmail.com>
13631
13632 PR middle-end/31344
13633 * expr.c (emit_move_change_mode): Change mode of push operands here.
13634
13635 2007-05-17 Ian Lance Taylor <iant@google.com>
13636
13637 PR tree-optimization/31953
13638 * tree-vrp.c (set_value_range_to_value): Add equiv parameter.
13639 Change all callers.
13640 (set_value_range_to_null): Call set_value_range_to_value.
13641 (extract_range_from_comparison): Likewise.
13642
13643 2007-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13644
13645 * toplev.c (print_version): Output GMP/MPFR version info.
13646
13647 * builtins.c (CASE_MATHFN_REENT): New macro.
13648 (mathfn_built_in): Use it.
13649 * builtins.def (BUILT_IN_GAMMA_R, BUILT_IN_GAMMAF_R,
13650 BUILT_IN_GAMMAL_R, BUILT_IN_LGAMMA_R, BUILT_IN_LGAMMAF_R,
13651 BUILT_IN_LGAMMAL_R): New.
13652 * doc/extend.texi: Document new builtins.
13653
13654 PR middle-end/31796
13655 * builtins.c (do_mpfr_remquo): New.
13656 (fold_builtin_2): Handle BUILT_IN_DREM/BUILT_IN_REMAINDER.
13657 (fold_builtin_3): Handle BUILT_IN_REMQUO.
13658
13659 PR middle-end/30251
13660 * builtins.c (fold_builtin_1): Handle y0, y1.
13661 (fold_builtin_2): Handle yn.
13662
13663 PR middle-end/30251
13664 * builtins.c (do_mpfr_bessel_n): New.
13665 (fold_builtin_1): Handle BUILT_IN_J0 and BUILT_IN_J1.
13666 (fold_builtin_2): Handle BUILT_IN_JN.
13667
13668 2007-05-17 Danny Smith <dannysmith@users.sourceforge.net>
13669
13670 PR target/31965
13671 * config/i386/mingw32.h (_INTEGRAL_MAX_BITS): Define builtin as
13672 TYPE_PRECISION (intmax_type_node).
13673
13674 2007-05-17 Steve Ellcey <sje@cup.hp.com>
13675
13676 PR target/31850
13677 * reload.c (subst_reloads): Remove checking.
13678
13679 2007-05-17 Eric Botcazou <ebotcazou@libertysurf.fr>
13680
13681 PR rtl-optimization/31691
13682 * combine.c (simplify_set): Build a new src pattern instead of
13683 substituting its operands in the COMPARE case.
13684
13685 2007-05-17 Zdenek Dvorak <dvorakz@suse.cz>
13686
13687 * tree-vrp.c (finalize_jump_threads): Do not care about dominance info.
13688 (execute_vrp): Preserve loops through jump threading.
13689 * tree-ssa-threadupdate.c (thread_single_edge,
13690 dbds_continue_enumeration_p, determine_bb_domination_status,
13691 thread_through_loop_header): New functions.
13692 (create_edge_and_update_destination_phis,
13693 create_edge_and_update_destination_phis): Set loops for the new blocks.
13694 (prune_undesirable_thread_requests): Removed.
13695 (redirect_edges): Do not pretend that redirect_edge_and_branch can
13696 create new blocks.
13697 (thread_block): Do not call prune_undesirable_thread_requests.
13698 Update loops.
13699 (mark_threaded_blocks): Select edges to thread here.
13700 (thread_through_all_blocks): Take may_peel_loop_headers argument.
13701 Thread edges through loop headers independently.
13702 * cfgloopmanip.c (create_preheader, mfb_keep_just): Export.
13703 * tree-pass.h (TODO_mark_first_instance): New.
13704 (first_pass_instance): Declare.
13705 * cfghooks.c (duplicate_block): Put the block to the original loop
13706 if copy is not specified.
13707 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Preserve loops through
13708 jump threading. Pass may_peel_loop_headers to
13709 thread_through_all_blocks according to first_pass_instance.
13710 * cfgloop.h (create_preheader): Declare.
13711 * tree-flow.h (thread_through_all_blocks): Declaration changed.
13712 * basic-block.h (mfb_keep_just, mfb_kj_edge): Declare.
13713 * passes.c (first_pass_instance): New variable.
13714 (next_pass_1): Set TODO_mark_first_instance.
13715 (execute_todo): Set first_pass_instance.
13716
13717 2007-05-17 Uros Bizjak <ubizjak@gmail.com>
13718
13719 PR tree-optimization/24659
13720 * optabs.h (enum optab_index): Add OTI_vec_unpacks_float_hi,
13721 OTI_vec_unpacks_float_lo, OTI_vec_unpacku_float_hi,
13722 OTI_vec_unpacku_float_lo, OTI_vec_pack_sfix_trunc and
13723 OTI_vec_pack_ufix_trunc.
13724 (vec_unpacks_float_hi_optab): Define new macro.
13725 (vec_unpacks_float_lo_optab): Ditto.
13726 (vec_unpacku_float_hi_optab): Ditto.
13727 (vec_unpacku_float_lo_optab): Ditto.
13728 (vec_pack_sfix_trunc_optab): Ditto.
13729 (vec_pack_ufix_trunc_optab): Ditto.
13730 * genopinit.c (optabs): Implement vec_unpack[s|u]_[hi|lo]_optab
13731 and vec_pack_[s|u]fix_trunc_optab using
13732 vec_unpack[s|u]_[hi\lo]_* and vec_pack_[u|s]fix_trunc_* patterns
13733 * tree-vectorizer.c (supportable_widening_operation): Handle
13734 FLOAT_EXPR and CONVERT_EXPR. Update comment.
13735 (supportable_narrowing_operation): New function.
13736 * tree-vectorizer.h (supportable_narrowing_operation): Prototype.
13737 * tree-vect-transform.c (vectorizable_conversion): Handle
13738 (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
13739 (vect_gen_widened_results_half): Move before vectorizable_conversion.
13740 (vectorizable_type_demotion): Call supportable_narrowing_operation()
13741 to check for target support.
13742 * optabs.c (optab_for_tree_code) Return vec_unpack[s|u]_float_hi_optab
13743 for VEC_UNPACK_FLOAT_HI_EXPR, vec_unpack[s|u]_float_lo_optab
13744 for VEC_UNPACK_FLOAT_LO_EXPR and vec_pack_[u|s]fix_trunc_optab
13745 for VEC_PACK_FIX_TRUNC_EXPR.
13746 (expand_binop): Special case mode of the result for
13747 vec_pack_[u|s]fix_trunc_optab.
13748 (init_optabs): Initialize vec_unpack[s|u]_[hi|lo]_optab and
13749 vec_pack_[u|s]fix_trunc_optab.
13750
13751 * tree.def (VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR,
13752 VEC_PACK_FIX_TRUNC_EXPR): New tree codes.
13753 * tree-pretty-print.c (dump_generic_node): Handle
13754 VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR and
13755 VEC_PACK_FIX_TRUNC_EXPR.
13756 (op_prio): Ditto.
13757 * expr.c (expand_expr_real_1): Ditto.
13758 * tree-inline.c (estimate_num_insns_1): Ditto.
13759 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
13760
13761 * config/i386/sse.md (vec_unpacks_float_hi_v8hi): New expander.
13762 (vec_unpacks_float_lo_v8hi): Ditto.
13763 (vec_unpacku_float_hi_v8hi): Ditto.
13764 (vec_unpacku_float_lo_v8hi): Ditto.
13765 (vec_unpacks_float_hi_v4si): Ditto.
13766 (vec_unpacks_float_lo_v4si): Ditto.
13767 (vec_pack_sfix_trunc_v2df): Ditto.
13768
13769 * doc/c-tree.texi (Expression trees) [VEC_UNPACK_FLOAT_HI_EXPR]:
13770 Document.
13771 [VEC_UNPACK_FLOAT_LO_EXPR]: Ditto.
13772 [VEC_PACK_FIX_TRUNC_EXPR]: Ditto.
13773 * doc/md.texi (Standard Names) [vec_pack_sfix_trunc]: Document.
13774 [vec_pack_ufix_trunc]: Ditto.
13775 [vec_unpacks_float_hi]: Ditto.
13776 [vec_unpacks_float_lo]: Ditto.
13777 [vec_unpacku_float_hi]: Ditto.
13778 [vec_unpacku_float_lo]: Ditto.
13779
13780 2007-05-16 Uros Bizjak <ubizjak@gmail.com>
13781
13782 * soft-fp/README: Update for new files.
13783 * soft-fp/floattisf.c: New file.
13784 * soft-fp/floattidf.c: New file.
13785 * soft-fp/floattitf.c: New file.
13786 * soft-fp/floatuntisf.c: New file.
13787 * soft-fp/floatuntidf.c: New file.
13788 * soft-fp/floatuntitf.c: New file.
13789 * soft-fp/fixsfti.c: New file.
13790 * soft-fp/fixdfti.c: New file.
13791 * soft-fp/fixtfti.c: New file.
13792 * soft-fp/fixunssfti.c: New file.
13793 * soft-fp/fixunsdfti.c: New file.
13794 * soft-fp/fixunstfti.c: New file.
13795 * soft-fp/extendxftf.c: New file.
13796 * soft-fp/trunctfxf.c: New file.
13797
13798 * libgcc-std.ver (__extendxftf2): Added to GCC_4.3.0 section.
13799 (__trunctfxf2): Ditto.
13800
13801 * config/i386/libgcc-x86_64-glibc.ver (__addtf3, __divtf3, __eqtf2,
13802 __extenddftf2, __extendsftf2, __fixtfdi, __fixtfsi, __fixtfti,
13803 __fixunstfdi, __fixunstfsi, __fixunstfti, __floatditf, __floatsitf,
13804 __floattitf, __floatunditf, __floatunsitf, __floatuntitf, __getf2,
13805 __letf2, __multf3, __negtf2, __subtf3, __trunctfdf2, __trunctfsf2,
13806 __unordtf2): Exclude and add to GCC_4.3.0 section for x86_64 targets.
13807
13808 * config/i386/t-fprules-softfp64: New file.
13809 * config/i386/sfp-machine.h: New file.
13810 * config.gcc (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu,
13811 x86_64-*-knetbsd*-gnu): Add i386/t-fprules-softfp64
13812 and soft-fp/t-softfp to tmake_file.
13813 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
13814 i[34567]86-*-knetbsd*-gnu): Ditto for --enable-targets=all.
13815
13816 * config/i386/t-linux64 (softfp_wrap_start): New.
13817 (softfp_wrap_end): New.
13818 * config/i386/i386.c (ix86_scalar_mode_supported): TFmode is
13819 supported for TARGET_64BIT.
13820
13821 2007-05-16 Rafael Avila de Espindola <espindola@google.com>
13822
13823 * c-common.c (c_common_signed_or_unsigned_type): Emulate
13824 c_common_unsigned_type behavior.
13825
13826 2007-05-16 Paolo Bonzini <bonzini@gnu.org>
13827
13828 * config/i386/i386.c (legitimize_tls_address): Mark __tls_get_addr
13829 calls as pure.
13830
13831 2007-05-16 Eric Christopher <echristo@apple.com>
13832
13833 * config/rs6000/rs6000.c (rs6000_emit_prologue): Move altivec register
13834 saving after stack push. Set sp_offset whenever we push.
13835 (rs6000_emit_epilogue): Move altivec register restore before
13836 stack push.
13837
13838 2007-05-16 Richard Sandiford <richard@codesourcery.com>
13839
13840 * configure.ac: Allow sysroots to be relocated under $prefix as
13841 well as $exec_prefix.
13842 * configure: Regenerate.
13843
13844 2007-05-16 Richard Sandiford <richard@codesourcery.com>
13845
13846 Revert:
13847
13848 2007-05-12 Richard Sandiford <richard@codesourcery.com>
13849
13850 * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
13851 (gcc_tooldir): Likewise.
13852 * configure: Regenerate.
13853 * Makefile.in (libsubdir_to_prefix): New variable, based on the
13854 old configure.ac gcc_tooldir setting.
13855 (prefix_to_exec_prefix): New variable.
13856 (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
13857 rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
13858
13859 2007-05-14 Janis Johnson <janis187@us.ibm.com>
13860
13861 * c-typeck.c (build_binary_op): Return early for error.
13862
13863 2007-05-15 Zdenek Dvorak <dvorakz@suse.cz>
13864
13865 * tree-ssa-loop-niter.c (record_estimate): Use GGC_NEW to allocate
13866 struct nb_iter_bound.
13867 (free_numbers_of_iterations_estimates_loop): Use ggc_free.
13868 * gengtype.c (open_base_files): Add cfhloop.h to the list of includes.
13869 * cfgloopmanip.c (place_new_loop): Vector larray is gc-allocated.
13870 * tree-scalar-evolution.c: Include gt-tree-scalar-evolution.h.
13871 (struct scev_info_str, scalar_evolution_info): Add GTY markers.
13872 (new_scev_info_str): Use GGC_NEW to allocate struct scev_info_str.
13873 (del_scev_info): Use ggc_free.
13874 (scev_initialize): Allocate scalar_evolution_info in gc memory.
13875 * loop-init.c: Include ggc.h.
13876 (loop_optimizer_init): Use GGC_CNEW to allocate struct loops.
13877 (loop_optimizer_finalize): Use ggc_free.
13878 * tree-ssa-loop.c (pass_tree_unswitch, pass_vectorize,
13879 pass_linear_transfom, pass_empty_loop, pass_complete_unroll,
13880 pass_iv_optimize): Add TODO_ggc_collect.
13881 * function.h (struct function): Remove skip marker from
13882 x_current_loops.
13883 * cfgloop.c: Include ggc.h.
13884 (flow_loops_free, flow_loop_free): Free the loop descriptions in gc
13885 memory.
13886 (establish_preds): Vector superloops is gc allocated.
13887 (alloc_loop): Allocate loop using GGC_CNEW. Allocate head of
13888 loop->exits list.
13889 (flow_loops_find): Vector larray is gc allocated.
13890 (loop_exit_free): Use ggc_free.
13891 (rescan_loop_exit): Use GGC_NEW to allocate struct loop_exit. Reflect
13892 that head of exits list is now not a part of struct loop.
13893 (record_loop_exits): Allocate exits table in gc memory.
13894 (get_loop_exit_edges, verify_loop_structure, single_exit): Reflect
13895 that head of exits list is now not a part of struct loop.
13896 * cfgloop.h (struct lpt_decision, struct nb_iter_bound,
13897 struct loop_exit): Add GTY marker.
13898 (struct loop): Add GTY marker. Make superloops vector gc allocated.
13899 Add skip marker to aux field. Make head of exits list a separate
13900 object.
13901 (struct loops): Add GTY marker. Make larray vector gc allocated.
13902 Add param marker to exits table.
13903 (get_loops): Type changed.
13904 * Makefile.in (tree-scalar-evolution.o): Add
13905 gt-tree-scalar-evolution.h dependency.
13906 (cfgloop.o, loop-init.o): Add ggc.h dependency.
13907 (GTFILES): Add cfgloop.h and tree-scalar-evolution.c.
13908 * basic-block.h (struct basic_block_def): Remove skip marker from
13909 loop_father field.
13910
13911 2007-05-14 Uros Bizjak <ubizjak@gmail.com>
13912
13913 * builtins.c (expand_builtin_mathfn): Use EXPAND_NORMAL instead
13914 of 0 in the call to expand_expr().
13915 (expand_builtin_mathfn_3): Ditto.
13916 (expand_builtin_interclass_mathfn): Ditto.
13917 (expand_builtin_cexpi): Ditto.
13918 (expand_builtin_int_roundingfn): Ditto.
13919 (expand_builtin_int_roundingfn_2): Ditto.
13920 (expand_builtin_pow): Ditto.
13921 (expand_builtin_powi): Ditto.
13922 (expand_builtin_bswap): Ditto.
13923 (expand_builtin_unop): Ditto.
13924 (expand_builtin_fabs): Ditto.
13925 (get_builtin_sync_mem): Use NULL_RTX instead of NULL in
13926 the call to expand_expr().
13927 (expand_builtin_sync_operation): Ditto.
13928 (expand_builtin_compare_and_swap): Ditto.
13929 (expand_builtin_lock_test_and_set): Ditto.
13930 * except.c (expand_builtin_eh_return_data_regno): Use EXPAND_NORMAL
13931 instead of 0 in the call to expand_expr().
13932 (expand_builtin_extract_return_addr): Ditto.
13933 (expand_builtin_eh_return): Ditto.
13934 (expand_eh_return): Ditto.
13935 * explow.c (expr_size): Ditto.
13936 * expr.c (optimize_bitfield_assignment_op): Ditto.
13937 (expand_assignement): Ditto.
13938 (store_expr): Ditto.
13939 (store_field): Ditto.
13940 (expand_expr_addr_expr_1): Use NULL_RTX instead of NULL in
13941 the call to expand_expr().
13942 (expand_expr_real_1) [COMPLEX_CST]: Use EXPAND_NORMAL instead of 0
13943 in the call to expand_expr().
13944 [CONSTRUCTOR, PLUS_EXPR, MINUS_EXPR, NEGATE_EXPR, ABS_EXPR,
13945 BIT_NOT_EXPR, LSHIFT_EXPR, LT_EXPR, TRUTH_NOT_EXPR]: Ditto.
13946 [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO]: Use expand_normal() instead
13947 of expand_expr().
13948 * optabs.c (expand_vec_shift_expr): Ditto.
13949 (expand_vec_cond_expr): Ditto.
13950 (vector_compare_rtx): Use EXPAND_STACK_PARM instead of 1 in the
13951 call to expand_expr().
13952 * stmt.c (expand_return): Use EXPAND_NORMAL instead of 0
13953 in the call to expand_expr().
13954
13955 2007-05-14 Dave Korn <dave.korn@artimi.com>
13956
13957 * genautomata.c (gen_regexp_el): Allocate correct size for regexp.
13958
13959 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
13960
13961 * c-common.c (warnings_for_convert_and_check): Use unsigned_type_for
13962 instead of c_common_unsigned_type.
13963 (c_common_unsigned_type): Remove.
13964 (shorten_compare): Use c_common_signed_or_unsigned_type instead of
13965 c_common_unsigned_type.
13966 (c_common_nodes_and_builtins): Use unsigned_type_for instead of
13967 c_common_unsigned_type.
13968 * c-common.h (c_common_unsigned_type): Remove.
13969 * c-decl.c (grokdeclarator): Use unsigned_type_for instead of
13970 c_common_unsigned_type.
13971 * c-format.c (check_format_types): Use unsigned_type_for instead of
13972 c_common_unsigned_type.
13973 * c-objc-common.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
13974 * c-typeck.c (convert_for_assignment): Use unsigned_type_for instead
13975 of c_common_unsigned_type.
13976 * convert.c (convert_to_integer): Use unsigned_type_for instead of
13977 lang_hooks.types.unsigned_type.
13978 * expmed.c (make_tree): Use unsigned_type_for instead of
13979 lang_hooks.types.unsigned_type.
13980 * fold-const.c (fold_negate_expr): Use unsigned_type_for instead of
13981 lang_hooks.types.unsigned_type.
13982 (build_range_check): Likewise.
13983 (fold_unary): Likewise.
13984 (fold_binary): Likewise.
13985 (fold_ternary): Likewise.
13986 * langhooks-def.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
13987 * langhooks.h (lang_hooks_for_types): Remove unsigned_type.
13988 * tree.c (get_unsigned_type): New.
13989 (unsigned_type_for): Use get_unsigned_type instead of
13990 lang_hooks.types.unsigned_type.
13991
13992 2007-05-14 Kazu Hirata <kazu@codesourcery.com>
13993
13994 * config/m68k/m68k-protos.h: Rename m68k_interrupt_function_p
13995 to m68k_get_function_kind. Update its prototype.
13996 * config/m68k/m68k.c (m68k_attribute_table): Add an entry for
13997 interrupt_thread.
13998 (m68k_interrupt_function_p): Return enum m68k_function_type
13999 instead of bool. Rename to m68k_get_function_kind.
14000 (m68k_handle_fndecl_attribute): Reject interrupt_thread if the
14001 target is not fido.
14002 (m68k_compute_frame_layout): Don't mark any register for save
14003 if an interrupt_thread attribute is specified.
14004 (m68k_hard_regno_rename_ok): Update a use of
14005 m68k_interrupt_function_p.
14006 * config/m68k/m68k.h (EPILOGUE_USES): Update a use of
14007 m68k_interrupt_function_p.
14008 (m68k_function_type): New.
14009 * config/m68k/m68k.md (*return): Output a 'sleep' instruction
14010 for a function with an interrupt_thread attribute.
14011 * doc/extend.texi: Document the interrupt_thread attribute.
14012
14013 2007-05-13 Daniel Berlin <dberlin@dberlin.org>
14014
14015 Fix PR tree-optimization/31911
14016 * tree-ssa-pre.c (phi_translate): Make sure to cache results even
14017 if they didn't change the expression.
14018
14019 2007-05-13 Zdenek Dvorak <dvorakz@suse.cz>
14020
14021 * tree-scalar-evolution.c (resolve_mixers): Exported.
14022 * tree-scalar-evolution.h (resolve_mixers): Declare.
14023 * tree-data-ref.c (object_analysis, ptr_decl_may_alias_p,
14024 ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
14025 record_record_differ_p, record_array_differ_p, array_ptr_differ_p,
14026 base_object_differ_p, base_addr_differ_p, analyze_array_indexes,
14027 init_array_ref, init_pointer_ref, analyze_indirect_ref,
14028 strip_conversion, analyze_offset_expr, address_analysis,
14029 object_analysis, analyze_offset): Removed.
14030 (dr_analyze_innermost, dr_analyze_indices, dr_analyze_alias,
14031 split_constant_offset, canonicalize_base_object_address,
14032 object_address_invariant_in_loop_p, disjoint_objects_p,
14033 dr_may_alias_p, dr_address_invariant_p): New functions.
14034 (create_data_ref): Use dr_analyze_innermost, dr_analyze_indices
14035 and dr_analyze_alias.
14036 (initialize_data_dependence_relation): Use dr_may_alias_p
14037 and object_address_invariant_in_loop_p.
14038 (compute_self_dependence): Handle the case when
14039 DDR_ARE_DEPENDENT (ddr) is chrec_dont_know.
14040 (find_data_references_in_stmt): Restrict the analysis of data
14041 references to the given loop nest.
14042 (find_data_references_in_loop): Made static. Pass loop nest to
14043 find_data_references_in_stmt.
14044 (compute_data_dependences_for_loop): Use DR_VOPS.
14045 (free_data_ref): Free DR_VOPS.
14046 * tree-data-ref.h (struct first_location_in_loop): Replaced by ...
14047 (struct innermost_loop_behavior): ... new.
14048 (struct base_object_info): Replaced by ...
14049 (struct indices): ... new.
14050 (struct dr_alias): New.
14051 (enum data_ref_type): Removed.
14052 (struct data_reference): Consist of struct innermost_loop_behavior,
14053 struct indices and struct dr_alias.
14054 (DR_SET_ACCESS_FNS, DR_FREE_ACCESS_FNS): Removed.
14055 (DR_MEMTAG): Renamed to ...
14056 (DR_SYMBOL_TAG): ... this.
14057 (find_data_references_in_loop): Declaration removed.
14058 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use DR_INIT
14059 instead of DR_OFFSET_MISALIGNMENT. DR_ALIGNED_TO is never NULL.
14060 (vect_analyze_data_refs): Use DR_SYMBOL_TAG instead of DR_MEMTAG.
14061 * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
14062
14063 2007-05-13 Revital Eres <eres@il.ibm.com>
14064
14065 * tree-ssa-dse.c (get_use_of_stmt_lhs): New function
14066 which walks virtual def-use chains to find redundant stores.
14067 (dse_optimize_stmt): Call it.
14068
14069 2007-05-12 Steven Bosscher <steven@gcc.gnu.org>
14070
14071 * gcse.c (gcse_main): Do jump bypassing in CPROP2.
14072 * passes.c (init_optimization_passes): Move pass_jump_bypass
14073 after loop2.
14074
14075 * basic-block.h (bb_has_eh_pred): Fix style issue.
14076
14077 2007-05-12 Steven Bosscher <steven@gcc.gnu.org>
14078
14079 PR rtl-optimization/31848
14080 * loop-invariant.c (move_invariant_reg): If we move an insn
14081 with a REG_EQUAL note, and that insn is not always executed,
14082 remove the REG_EQUAL note.
14083
14084 2007-05-12 Richard Guenther <rguenther@suse.de>
14085
14086 PR tree-optimization/31797
14087 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
14088 propagate into a stmt that has volatile ops.
14089
14090 2007-05-12 Richard Sandiford <richard@codesourcery.com>
14091
14092 * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
14093 (gcc_tooldir): Likewise.
14094 * configure: Regenerate.
14095 * Makefile.in (libsubdir_to_prefix): New variable, based on the
14096 old configure.ac gcc_tooldir setting.
14097 (prefix_to_exec_prefix): New variable.
14098 (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
14099 rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
14100
14101 2007-05-11 Silvius Rus <rus@google.com>
14102
14103 * Makefile.in (OBJS-common): Add tree-ssa-alias-warnings.o.
14104 * c-common.c (strict_aliasing_warning): Modify -Wstrict-aliasing logic.
14105 * c-common.h (strict_aliasing_warning): Change return type.
14106 * c-opts.c (c_common_handle_option): Add call to set_Wstrict_aliasing.
14107 * c-typeck.c (build_indirect_ref): Add call to strict_aliasing_warning.
14108 (build_c_cast): Condition call to strict_aliasing_warning.
14109 * doc/invoke.texi: Update description of -Wstrict-aliasing[=n].
14110 * flags.h (set_Wstrict_aliasing): Declare.
14111 * opts.c (set_Wstrict_alising): Define, add call to.
14112 * tree-flow.h (strict_aliasing_warning_backend): Declare.
14113 * tree-ssa-alias-warnings.c: New file.
14114 * tree-ssa-alias.c (compute_may_aliases): Add call to
14115 strict_aliasing_warning_backend.
14116
14117 2007-05-11 Zdenek Dvorak <dvorakz@suse.cz>
14118
14119 * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
14120 Use loop_depth and loop_outer accessor functions.
14121 * tree-ssa-loop-im.c (outermost_invariant_loop, set_level,
14122 determine_invariantness_stmt, move_computations_stmt): Ditto.
14123 * cfgloopmanip.c (fix_bb_placement, fix_loop_placement, remove_path,
14124 add_loop, loopify, unloop, fix_loop_structure): Ditto.
14125 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Ditto.
14126 * tree-scalar-evolution.c (interpret_loop_phi,
14127 compute_scalar_evolution_in_loop, analyze_scalar_evolution_in_loop,
14128 instantiate_parameters_1, scev_const_prop): Ditto.
14129 * cfghooks.c (make_forwarder_block): Ditto.
14130 * cfgloopanal.c (mark_irreducible_loops, mark_loop_exit_edges): Ditto.
14131 * modulo-sched.c (loop_canon_p): Ditto.
14132 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg,
14133 slpeel_can_duplicate_loop_p): Ditto.
14134 * lambda-code.c (invariant_in_loop_and_outer_loops): Ditto.
14135 * tree-cfg.c (tree_duplicate_sese_region): Ditto.
14136 * cfgloop.c (flow_loop_dump, flow_loop_nodes_find, rescan_loop_exit,
14137 cancel_loop, verify_loop_structure): Ditto.
14138 (flow_loop_nested_p, superloop_at_depth, flow_loop_free,
14139 add_bb_to_loop, remove_bb_from_loops, find_common_loop): Use the
14140 superloops vector instead of "pred" array.
14141 (establish_preds): Take father loop as an argument. Initialize the
14142 superloops vector.
14143 (flow_loop_tree_node_add): Pass father loop to establish_preds.
14144 Do not initialize loop->outer.
14145 (flow_loop_tree_node_remove): Truncate the superloops vector.
14146 * cfgloop.h (struct loop): Removed field "outer", fields "depth" and
14147 "pred" merged to "superloops" vector.
14148 (loop_depth, loop_outer): New.
14149 (fel_init): Use loop_outer.
14150
14151 2007-05-11 Jan Hubicka <jh@suse.cz>
14152
14153 * cgraphunit.c: Include gt-cgraphunit.h
14154 (static_ctors, static_dtors): New static vars.
14155 (record_cdtor_fn, build_cdtor, cgraph_build_cdtor_fns): New functions,
14156 based on implementation in c-common.c
14157 (cgraph_finalize_function): Call record_cdtor_fn.
14158 (cgraph_optimize): Call cgraph_build_cdtor_fns.
14159 * decl.c (finish_function): Do not call c_record_cdtor_fn.
14160 (c_write_global_declarations): Do not call c_build_cdtor_fns.
14161 * c-common.c (static_ctors, static_dtors, c_record_cdtor_fn,
14162 build_cdtor, c_build_cdtor_fns): Remove.
14163 * c-common.h (static_ctors, static_dtors, c_record_cdtor_fn,
14164 c_build_cdtor_fns): Remove prototype.
14165
14166 2007-05-11 Paolo Carlini <pcarlini@suse.de>
14167
14168 PR other/31852
14169 * builtin-types.def: Add BT_FN_PTR_CONST_PTR_INT_SIZE.
14170 * builtins.def: Add BUILT_IN_MEMCHR, use the latter.
14171 * builtins.c (fold_builtin_memchr): New.
14172 (expand_builtin_memchr): Call the latter.
14173 (expand_builtin, fold_builtin_3): Deal with BUILT_IN_MEMCHR.
14174 * doc/extend.texi ([Other built-in functions provided by GCC]):
14175 Document memchr.
14176
14177 2007-05-11 Andreas Krebbel <krebbel1@de.ibm.com>
14178
14179 * config/s390/s390.md (GPR0_REGNUM, FPR0_REGNUM, FPR2_REGNUM,
14180 PFPO_CONVERT, PFPO_OP_TYPE_SF, PFPO_OP_TYPE_DF, PFPO_OP_TYPE_TF,
14181 PFPO_OP_TYPE_SD, PFPO_OP_TYPE_DD, PFPO_OP_TYPE_TD, PFPO_OP0_TYPE_SHIFT,
14182 PFPO_OP1_TYPE_SHIFT): Constants added.
14183 (DFP_ALL): Mode macro defined.
14184 ("*trunc<BFP:mode><DFP_ALL:mode>2", "*trunc<DFP_ALL:mode><BFP:mode>2",
14185 "*extend<BFP:mode><DFP_ALL:mode>2", "*extend<DFP_ALL:mode><BFP:mode>2"):
14186 Insn definitions added.
14187 ("trunc<BFP:mode><DFP_ALL:mode>2", "trunc<DFP_ALL:mode><BFP:mode>2",
14188 "extend<BFP:mode><DFP_ALL:mode>2", "extend<DFP_ALL:mode><BFP:mode>2"):
14189 Expanders added.
14190
14191 2007-05-10 Zdenek Dvorak <dvorakz@suse.cz>
14192
14193 PR tree-optimization/31885
14194 * tree-chrec.c (chrec_contains_undetermined): Do not consider
14195 NULL_TREE to be undetermined.
14196 (automatically_generated_chrec_p): Return false for NULL.
14197
14198 2007-05-08 Bernd Schmidt <bernd.schmidt@analog.com>
14199
14200 * config/bfin/bfin.h (MOVE_RATIO): Define.
14201
14202 2007-05-10 Richard Sandiford <richard@codesourcery.com>
14203
14204 * config.gcc (sparc-wrs-vxworks): New target.
14205 * config/sparc/vxworks.h, config/sparc/t-vxworks: New files.
14206 * config/sparc/sparc-protos.h (sparc_emit_call_insn): Declare.
14207 * config/sparc/sparc.h: Include vxworks-dummy.h.
14208 (PRINT_OPERAND_ADDRESS): Extend SYMBOL_REF handling to
14209 include LABEL_REFs too.
14210 * config/sparc/sparc.c (sparc_expand_move): Don't assume that
14211 _GLOBAL_OFFSET_TABLE_ - label_ref is a link-time constant on
14212 VxWorks.
14213 (legitimize_pic_address): Handle LABEL_REFs like SYMBOL_REFs
14214 on VxWorks.
14215 (load_pic_register): Use gen_vxworks_load_got for VxWorks.
14216 (sparc_emit_call_insn): New function.
14217 (sparc_function_ok_for_sibcall): Restrict sibcalls to locally-binding
14218 functions when generating VxWorks PIC.
14219 * config/sparc/sparc.md (vxworks_load_got): New pattern.
14220 (call, call_value): Use sparc_emit_call_insn instead of
14221 emit_call_insn.
14222
14223 2007-05-09 Bob Wilson <bob.wilson@acm.org>
14224
14225 * config/xtensa/xtensa.c (xtensa_output_literal): Don't use #if.
14226
14227 2007-05-09 Bob Wilson <bob.wilson@acm.org>
14228
14229 * config/xtensa/xtensa.c (xtensa_output_literal): Mask out high bits
14230 for floating-point values if HOST_BITS_PER_LONG > 32. Use
14231 split_double instead of operand_subword.
14232
14233 2007-05-08 Bernd Schmidt <bernd.schmidt@analog.com>
14234
14235 * config/bfin/bfin.h (LOCAL_ALIGNMENT): Define.
14236 * config/bfin/bfin.c (bfin_local_alignment): New function.
14237 * config/bfin/bfin-protos.h (bfin_local_alignment): Declare it.
14238
14239 2007-05-08 Chao-ying Fu <fu@mips.com>
14240
14241 * doc/md.texi (msub@var{m}@var{n}4, usub@var{m}@var{n}4): Document.
14242 * optabs.h (OTI_smsub_widen, OTI_umsub_widen): New optab_indexes.
14243 (smsub_widen_optab, umsub_widen_optab): Define.
14244 * optabs.c (init_optabs): Initialize smsub_widen_optab and
14245 umsub_widen_optab.
14246 * genopinit.c (optabs): Fill in smsub_widen_optab and
14247 umsub_widen_optab.
14248 * expr.c (expand_expr_real_1): Try to use smsub_widen_optab
14249 and umsub_widen_optab to implement multiply-subtract sequences.
14250 * config/mips/mips.md (*msac<u>_di): Rename to...
14251 (<u>msubsidi4): ...this. Extend condition to include
14252 GENERATE_MADD_MSUB and TARGET_DSPR2. Change the constraint
14253 of operand 0 to "ka" and use the three-operand form of msub<u>
14254 for TARGET_DSPR2.
14255 * config/mips/mips-dspr2.md (mips_msub, mips_msubu): Convert
14256 to define_expands.
14257
14258 2007-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
14259
14260 PR rtl-optimization/28011
14261 * reload.c (push_reload): Set dont_share if IN appears in OUT
14262 also when IN is a PLUS rtx.
14263 (reg_overlap_mentioned_for_reload_p): Return true if X and IN
14264 are same PLUS rtx.
14265
14266 2007-05-08 Kazu Hirata <kazu@codesourcery.com>
14267
14268 * emit-rtl.c (unshare_all_rtl_1): Don't copy DECL_RTL. Don't
14269 call unshare_all_decls.
14270 (unshare_all_rtl): Adjust the call to unshare_all_rtl_1.
14271 (unshare_all_decls): Remove.
14272
14273 2007-05-08 Simon Martin <simartin@users.sourceforge.net>
14274
14275 PR 31847
14276 * tree-dump.c (dump_options): Don't use TDF_DIAGNOSTIC in "*-all" tree
14277 dumps.
14278
14279 2007-05-08 Sandra Loosemore <sandra@codesourcery.com>
14280 Nigel Stephens <nigel@mips.com>
14281
14282 * config/mips/mips.h (MAX_FPRS_PER_FMT): Renamed from FP_INC.
14283 Update comments and all uses.
14284 (MIN_FPRS_PER_FMT): Define.
14285 * config/mips/mips.c (function_arg): Fix to correctly handle
14286 the -mips32r2 -mfp64 -mabi=32 case.
14287 (override_options): Enable use of odd-numbered registers for
14288 SFmode values on MIPS32.
14289 (mips_save_reg_p): Save whole floating-point register pair if
14290 either half is used.
14291 (compute_frame_size): Fix comment.
14292
14293 2007-05-08 Jie Zhang <jie.zhang@analog.com>
14294
14295 * config/bfin/bfin-protos.h (bfin_expand_epilogue): Add a third
14296 argument of type bool.
14297 * config/bfin/bfin.c (add_to_reg): Add epilogue_p as a fourth
14298 argument. Safely select temporary P register according to it.
14299 (do_link): Change call site of add_to_reg accordingly.
14300 (do_unlink): Add epilogue_p as a fourth argument and pass it
14301 to add_to_reg.
14302 (expand_interrupt_handler_epilogue): Change call of do_unlink
14303 accordingly.
14304 (bfin_expand_prologue): Add a third argument sibcall_p.
14305 * config/bfin/bfin.md (epilogue): Change call of
14306 bfin_expand_epilogue accordingly.
14307 (sibcall_epilogue): Likewise.
14308 (eh_return_internal): Likewise.
14309
14310 * config/bfin/bfin-protos.h (enum bfin_cpu): Add
14311 BFIN_CPU_BF534, BFIN_CPU_BF536 and BFIN_CPU_BF561.
14312 * config/bfin/bfin.c (bfin_handle_option): Handle
14313 -mcpu=bf534, -mcpu=bf536 and -mcpu=bf561.
14314 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS):
14315 Support bf534, bf536 and bf561.
14316 * doc/invoke.texi (Blackfin Options): Document -mcpu and -msim.
14317
14318 2007-05-08 Uros Bizjak <ubizjak@gmail.com>
14319
14320 PR target/31854
14321 * config/i386/i386.c (ix86_function_regparm): Process local
14322 functions only when TREE_CODE (decl) equals FUNCTION_DECL.
14323
14324 2007-05-07 Mike Stump <mrs@apple.com>
14325
14326 * doc/invoke.texi (Warning Options): Document that -Wempty-body
14327 also checks for and while statements in C++.
14328
14329 2007-05-07 Nathan Froyd <froydnj@codesourcery.com>
14330
14331 * gcc.c (at_file_supplied): New variable.
14332 (main): Set it if we expanded argv.
14333 (do_spec_1): Pass an @-file to the linker if we were called with
14334 an @-file argument and HAVE_GNU_LD.
14335 * collect2.c (at_file_supplied): New variable.
14336 (response_file): New variable.
14337 (collect_exit): Unlink response_file if necessary.
14338 (handler): Likewise.
14339 (do_wait): Likewise.
14340 (main): Set at_file_supplied if we expanded argv.
14341 (collect_execute): Pass an @-file to subprocesses if we were called
14342 with an @-file argument.
14343 * configure.ac: Add define for HAVE_GNU_LD.
14344 * configure: Regenerate.
14345 * config.in: Regenerate.
14346
14347 2007-05-07 Naveen.H.S <naveen.hs@kpitcummins.com>
14348
14349 * config/m32c/muldiv.md (mulhisi3_c): Limit the mode of the 2nd
14350 operand to HI mode.
14351 (mulsi3): New.
14352 (divsi3): New.
14353 (udivsi3): New.
14354
14355 2007-05-07 Jayant Sonar <jayants@kpitcummins.com>
14356
14357 * config/m32c/m32c.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
14358 (TARGET_ENCODE_SECTION_INFO): Re-define.
14359 (m32c_encode_section_info): New
14360 (function_vector_handler): New
14361 (current_function_special_page_vector): New
14362 (m32c_special_page_vector_p): New.
14363 * config/m32c/m32c-protos.h (m32c_special_page_vector_p):
14364 Prototype.
14365 * config/m32c/jump.md: Added instruction JSRS for functions
14366 with attribute "function_vector".
14367 * doc/extend.texi (function_vector): Added description
14368 for M16C, M32C targets.
14369
14370 2007-05-07 DJ Delorie <dj@redhat.com>
14371
14372 PR 31794
14373 * config/m32c/shift.md (ashlpsi3_i, ashrpsi3_i, ashlpsi3,
14374 ashrpsi3, lshrpsi3): Update shift count constraint.
14375
14376 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
14377 Nathan Froyd <froydnj@codesourcery.com>
14378
14379 PR 22133
14380 * c-incpath.c (add_path): Strip trailing path separators.
14381
14382 2007-05-07 Eric Botcazou <ebotcazou@adacore.com>
14383
14384 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered.
14385 Free dominance info before purging EH edges.
14386 (eliminate_degenerate_phis): Likewise.
14387 (propagate_rhs_into_lhs): Set cfg_altered to true instead of 1.
14388
14389 2007-05-07 Jan Hubicka <jh@suse.cz>
14390
14391 * gimplify.c (gimplify_expr): Do not crash when folding
14392 (void *)(int)&a + 4.
14393
14394 2007-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14395
14396 PR driver/31694
14397 * c-opts.c (lang_fortran): Make it non static.
14398 * c-common.h (lang_fortran): New prototype.
14399 * c-cppbuiltin.c (c_cpp_builtins): Create a __GFORTRAN__ if the
14400 -lang-fortran option was passed by the driver.
14401
14402 2007-05-06 Eric Botcazou <ebotcazou@adacore.com>
14403
14404 * timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead
14405 of ASSERT_CHECKING. Tweak message.
14406
14407 2007-05-06 Revital Eres <eres@il.ibm.com>
14408
14409 PR 30957
14410 * loop-unroll.c (insert_var_expansion_initialization):
14411 Initialize the expansions with -zero instead of +zero.
14412
14413 2007-05-05 Aurelien Jarno <aurelien@aurel32.net>
14414
14415 * config/pa/pa.md: Split tgd_load, tld_load and tie_load
14416 into pic and non-pic versions. Mark r19 as used for
14417 tgd_load_pic, tld_load_pic and tie_load_pic. Mark r27 as used
14418 for tgd_load, tld_load and tie_load .
14419 * config/pa/pa.c (legitimize_tls_address): Emit pic or non-pic
14420 version of tgd_load, tld_load and tie_load depending on the
14421 value of flag_pic.
14422
14423 2007-05-04 Ulrich Drepper <drepper@redhat.com>
14424 Jakub Jelinek <jakub@redhat.com>
14425
14426 * crtstuff.c (HIDDEN_DTOR_LIST_END): New macro.
14427 (__do_global_dtors_aux): Use more paranoid loop to run
14428 destructors if HIDDEN_DTOR_LIST_END.
14429 (__DTOR_END__): Export as a hidden symbol when HIDDEN_DTOR_LIST_END.
14430
14431 2007-05-04 Jakub Jelinek <jakub@redhat.com>
14432
14433 * varasm.c (align_variable): Don't increase alignment for
14434 DECL_THREAD_LOCAL_P variables above BITS_PER_WORD through
14435 DATA_ALIGNMENT or CONSTANT_ALIGNMENT.
14436
14437 2007-05-04 Josh Conner <jconner@apple.com>
14438
14439 * basic-block.h (cdi_direction): Assign values to all enumeration
14440 constants.
14441 (dom_computed): Remove.
14442 (dom_info_state): New.
14443 (set_dom_info_availability): New.
14444 * tree-ssa-loop-im.c (determine_invariantness): Initialize
14445 walk_data.dom_direction.
14446 * cfghooks.c (delete_basic_block): Use dom_info_available_p()
14447 instead of dom_computed[].
14448 (split_edge): Likewise.
14449 (create_basic_block): Likewise.
14450 (merge_blocks): Likewise.
14451 * ifcvt.c (find_if_header): Likewise.
14452 * tree-cfgcleanup.c (cleanup_tree_cfg): Likewise.
14453 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
14454 * tree-ssa.c (verify_ssa): Likewise.
14455 * tree-cfg.c (tree_verify_flow_info): Likewise.
14456 (remove_edge_and_dominated_blocks): Likewise.
14457 * dominance.c (dom_computed): Make static.
14458 (calc_dfs_tree_nonrec): Change third param to a bool.
14459 (calc_dfs_tree): Change second param to a bool.
14460 (calc_idioms): Change second param to a bool. Use
14461 dom_convert_dir_to_idx.
14462 (init_dom_info): Validate dir before using.
14463 (dom_convert_dir_to_idx): New.
14464 (calculate_dominance_info): Use dom_convert_dir_to_idx. New
14465 variable 'reverse' used for calling calc_dfs_tree and calc_idoms.
14466 (free_dominance_info): Use dom_convert_dir_to_idx.
14467 (get_immediate_dominator): Likewise.
14468 (set_immediate_dominator): Likewise.
14469 (get_dominated_by): Likewise.
14470 (redirect_immediate_dominators): Likewise.
14471 (nearest_common_denominator): Likewise.
14472 (dominated_by_p): Likewise.
14473 (bb_dom_dfs_in): Likewise.
14474 (bb_dom_dfs_out): Likewise.
14475 (recount_dominator): Likewise.
14476 (iterate_fix_dominators): Likewise.
14477 (add_to_dominance_info): Likewise.
14478 (delete_from_dominance_info): Likewise.
14479 (first_dom_son): Likewise.
14480 (next_dom_son): Likewise.
14481 (dom_info_available_p): Likewise.
14482 (dom_info_state): New.
14483 (set_dom_info_availability): New.
14484
14485 2007-05-04 Andreas Krebbel <krebbel1@de.ibm.com>
14486
14487 * config/s390/s390.md ("fix_trunc<mode>di2", "fix_trunc<mode>si2"):
14488 Expander removed.
14489 ("fix_trunc<DSF:mode><GPR:mode>2"): Expander added.
14490
14491 2007-05-04 Bob Wilson <bob.wilson@acm.org>
14492
14493 * config/xtensa/xtensa.md (adddi3, adddi_carry): Delete.
14494 (subdi3, subdi_carry): Delete.
14495
14496 2007-05-04 Jan Hubicka <jh@suse.cz>
14497 Richard Guenther <rguenther@suse.de>
14498
14499 * opts.c (decode_options): Do not fiddle with inlining
14500 parameters in case of optimizing for size.
14501 * ipa-inline.c (cgraph_decide_recursive_inlining): When optimizing
14502 for size do nothing.
14503 (cgraph_decide_inlining_of_small_function): When optimizing for
14504 size never inline functions increasing caller size.
14505 (cgraph_early_inlining): Inline for size when optimizing for size.
14506
14507 2007-05-04 Bernd Schmidt <bernd.schmidt@analog.com>
14508
14509 * config/bfin/bfin.md (<optab>di3): Now a define_expand which expands
14510 logical operations piecewise.
14511 (<optab>di_zesidi_di, <optab>di_sesidi_di, negdi2, one_cmpldi2,
14512 zero_extendsidi2, subdi_di_zesidi, subdi_zesidi_di, subdi_di_sesidi,
14513 subdi_sesidi_di): Delete.
14514 (add_with_carry): Produce carry in CC instead of a DREG to shorten
14515 the generated sequence. Allow three-reg add in constraints. Rewrite
14516 the rtl expression for carry to avoid zero_extend of a constant.
14517 (sub_with_carry): New pattern.
14518 (adddi3, subdi3): Change into define_expand. For subtract, generate a
14519 different sequence not involving jumps.
14520 (notbi): Now a named pattern.
14521
14522 2007-05-04 Bradley Lucier <lucier@math.purdue.edu>
14523
14524 * doc/invoke.texi (i386 and x86-64 Options) [-mpc32, -mpc64, -mpc80]:
14525 Add the note about a significant loss of accuracy of some
14526 mathematical routines when these options are used.
14527
14528 2007-05-04 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
14529
14530 * haifa-sched.c (rtx_vec_t): New typedef.
14531 (contributes_to_priority_p): Extract piece of priority () into new
14532 static function.
14533 (priority): Use the function. Add assertion.
14534 (rank_for_schedule, set_priorities): Add assertion to check that
14535 insn's priority is initialized.
14536 (clear_priorities, calc_priorities): Change signature. Make it update
14537 all relevant insns. Update all callers ('add_to_speculative_block ()'
14538 and 'create_block_check_twin ()').
14539 * sched-int.h (struct haifa_insn_data): Remove field 'priority_known'.
14540 Add new field 'priority_status'.
14541 (INSN_PRIORITY_STATUS): New macro.
14542 (INSN_PRIORITY_KNOWN): Change to use INSN_PRIORITY_STATUS.
14543
14544 2007-05-04 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
14545
14546 * sched-ebb.c (debug_ebb_dependencies): New static function.
14547 (init_ready_list): Use it.
14548
14549 * sched-rgn.c (debug_dependencies): Split into 'debug_dependencies ()'
14550 with changed signature and 'debug_rgn_dependencies ()'.
14551 (debug_rgn_dependencies): New static function.
14552 (init_ready_list): Use it.
14553
14554 * sched-int.h (debug_dependencies): Declare.
14555
14556 2007-05-04 Andreas Krebbel <krebbel1@de.ibm.com>
14557
14558 * libgcc-std.ver (__ffssi2): Added to GCC_4.3.0 section.
14559
14560 2007-05-04 Dirk Mueller <dmueller@suse.de>
14561
14562 * c.opt(Wmain,ffreestanding): Enable for C++,ObjC++.
14563
14564 2007-05-03 Jan Hubicka <jh@suse.cz>
14565
14566 * fold-const.c (fold_unary): Convert (T1)(X op Y) into
14567 ((T1)X op (T1)Y), for pointer type in more cases than before.
14568
14569 * gimplify.c (gimplify_expr): Fold (void *)&a + 4.
14570
14571 * tree-object-size.c (plus_expr_object_size): When operand size is
14572 unknown, return unknown.
14573
14574 2007-05-03 Dirk Mueller <dmueller@suse.de>
14575
14576 * doc/invoke.texi (-m386,-m486,-mpentium,-mpentiumpro): Remove.
14577
14578 * config/i386/i386.h (CC1_CPU_SPEC): Remove handling for deprecated
14579 options.
14580
14581 * config/i386/i386.opt (m386,m486,mpentium,mpentiumpro): Remove.
14582
14583 2007-05-03 Janis Johnson <janis187@us.ibm.com>
14584
14585 * doc/sourcebuild.texi (Test Directives) Clarify dg-excess-errors.
14586
14587 2007-05-03 Joseph Myers <joseph@codesourcery.com>
14588
14589 * config/soft-fp/double.h, config/soft-fp/extended.h,
14590 config/soft-fp/floatundidf.c, config/soft-fp/floatundisf.c,
14591 config/soft-fp/floatunsidf.c, config/soft-fp/floatunsisf.c,
14592 config/soft-fp/op-2.h, config/soft-fp/op-4.h,
14593 config/soft-fp/op-common.h, config/soft-fp/quad.h: Update from
14594 glibc CVS.
14595
14596 2007-05-03 Ian Lance Taylor <iant@google.com>
14597
14598 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
14599 MASK_PPC_GFXOPT for 8540 or 8548.
14600
14601 2007-05-03 Uros Bizjak <ubizjak@gmail.com>
14602
14603 * tree-vect-transform.c (vect_update_inits_of_drs): Use
14604 vect_print_dump_info() to output debug information.
14605
14606 2007-05-03 Uros Bizjak <ubizjak@gmail.com>
14607
14608 PR target/31768
14609 * config/i386/i386.c (print_operand) ['z']: Output 'w' for
14610 operands of size 2 when operand is not MEM_P.
14611
14612 2007-05-03 Zdenek Dvorak <dvorakz@suse.cz>
14613
14614 PR tree-optimization/30565
14615 * lambda-code.c (perfect_nestify): Fix updating of dominators.
14616
14617 2007-05-03 Bernd Schmidt <bernd.schmidt@analog.com>
14618
14619 * config/bfin/bfin.md (addpdi3, us_truncpdisi2): New patterns.
14620 (umulsi3_highpart): Use them.
14621 * config/bfin/lib1funcs.asm (__umulsi3_highpart): Use unsigned move
14622 for final accumulator to D regisster tranfser.
14623
14624 2007-05-03 Dorit Nuzman <dorit@il.ibm.com>
14625
14626 PR tree-optimization/31699
14627 * tree-vect-analyze.c (vect_update_misalignment_for_peel): Remove
14628 wrong code.
14629 (vect_enhance_data_refs_alignment): Compute peel amount using
14630 TYPE_VECTOR_SUBPARTS instead of vf.
14631 * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Likewise.
14632
14633 2007-05-02 Brooks Moses <brooks.moses@codesourcery.com>
14634
14635 PR bootstrap/31776
14636 * system.h: Remove inclusion of double-int.h
14637 * tree.h: Include double-int.h
14638 * gengtype.c: Likewise
14639 * cfgloop.h: Likewise
14640 * Makefile.in: Adjust dependencies on double-int.h
14641
14642 2007-05-02 Eric Christopher <echristo@apple.com>
14643
14644 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Translate
14645 -shared to -Zdynamiclib.
14646
14647 2007-05-02 Seongbae Park <seongbae.park@gmail.com>
14648
14649 PR c++/31663
14650 * c-common.c (strip_pointer_or_array_types): New function.
14651 * c-common.h (strip_pointer_or_array_types): New function declaration.
14652
14653 2007-05-03 Zdenek Dvorak <dvorakz@suse.cz>
14654
14655 PR tree-optimization/31771
14656 * tree-cfg.c (move_block_to_fn): Assign bb to the correct index.
14657
14658 2007-05-02 Paul Brook <paul@codesourcery.com>
14659
14660 * config/arm/bpabi.S (aeabi_lcmp): Fix result on overflow.
14661
14662 2007-05-02 Andrew Pinski <andrew_pinski@playstation.sony.com>
14663
14664 PR middle-end/29715
14665 * fold-const.c (fold_comparision): Remove the "foo++ == CONST"
14666 transformation.
14667
14668 2007-05-02 Nick Clifton <nickc@redhat.com>
14669
14670 * config/frv/predicates.md (symbolic_operand): Accept CONSTs.
14671
14672 2007-05-02 Richard Guenther <rguenther@suse.de>
14673
14674 PR tree-optimization/31146
14675 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
14676 argument, single_use_p. If we have a single use that is
14677 a conversion to the definition rhs type, propagate that rhs.
14678 (forward_propagate_addr_expr): Pass single_use_p argument
14679 to forward_propagate_addr_expr_1.
14680
14681 2007-05-01 H.J. Lu <hongjiu.lu@intel.com>
14682
14683 * config/i386/i386.c (ix86_expand_sse_comi): Remove unused
14684 variable.
14685
14686 2007-05-01 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
14687
14688 * doc/invoke.texi: Fix typo, 'AMD Family 10h core' instead of
14689 'AMD Family 10 core'.
14690
14691 2007-05-01 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
14692
14693 * config/i386/i386.c (override_options): Accept k8-sse3, opteron-sse3
14694 and athlon64-sse3 as improved versions of k8, opteron and athlon64
14695 with SSE3 instruction set support.
14696 * doc/invoke.texi: Likewise.
14697
14698 2007-05-01 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
14699
14700 * config/i386/i386.c (override_options): Tuning 32-byte loop
14701 alignment for amdfam10 architecture. Increasing the max loop
14702 alignment to 24 bytes.
14703
14704 2007-05-01 Kazu Hirata <kazu@codesourcery.com>
14705
14706 * config/m68k/constraints.md: New.
14707 * config/m68k/m68k.h (REG_CLASS_FROM_LETTER,
14708 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
14709 EXTRA_CONSTRAINT): Remove.
14710 * config/m68k/m68k.md: Include constraints.md.
14711 * expr.c (expand_expr_real_1): Copy DECL_RTL before using it.
14712
14713 2007-05-01 Ian Lance Taylor <iant@google.com>
14714
14715 PR tree-optimization/31739
14716 * tree-vrp.c (vrp_val_is_max): New static function.
14717 (vrp_val_is_min): New static function.
14718 (set_value_range_to_value): Use TYPE_{MAX,MIN}_VALUE rather than
14719 copying the node.
14720 (set_value_range): Use vrp_val_is_{max,min}.
14721 (extract_range_from_assert): Likewise.
14722 (extract_range_from_binary_expr): Likewise.
14723 (extract_range_from_unary_expr): Likewise.
14724 (dump_value_range, vrp_meet): Likewise.
14725 (vrp_visit_phi_node): Likewise.
14726 * tree.c (build_distinct_type_copy): Revert change of 2007-04-27.
14727
14728 2007-05-01 Mark Mitchell <mark@codesourcery.com>
14729
14730 * config/i386/gmon-sol2.c (size_t): New type.
14731 (intptr_t): Likewise.
14732 (s_textsize): Declare as size_t.
14733 (sbrk): Declare.
14734 (monstartup): Use size_t for sizes.
14735 (_mcount): Save and restore registers.
14736 (internal_mcount): Pass 0 as the first argument to monstartup
14737 in 64-bit mode.
14738 (moncontrol): Convert pointer to appropriately sized integer
14739 before passing to profil.
14740
14741 2007-05-01 Joseph Myers <joseph@codesourcery.com>
14742
14743 * config/rs6000/darwin-ldouble.c (__gcc_qunord): Define if
14744 __NO_FPRS__, not just if _SOFT_DOUBLE.
14745 * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qunord): Likewise.
14746 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use __gcc_qunord
14747 also for E500 double.
14748 * config/rs6000/rs6000.md (buneq, bunge, bungt, bunle, bunlt,
14749 suneq, sunge, sungt, sunle, sunlt): Disable for (TARGET_HARD_FLOAT
14750 && !TARGET_FPRS).
14751
14752 2007-05-01 Richard Guenther <rguenther@suse.de>
14753
14754 * tree-ssa-loop-manip.c (ip_normal_pos): Check if last stmt
14755 is NULL.
14756
14757 2007-05-01 Joseph Myers <joseph@codesourcery.com>
14758
14759 * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qgt): Fix typo.
14760
14761 2007-05-01 Jan Hubicka <jh@suse.cz>
14762
14763 * tree-vectorize.c (vect_is_simple_use): gimple_min_invariant is
14764 invariant.
14765
14766 2007-05-01 Jan Hubicka <jh@suse.cz>
14767
14768 * tree.h (maybe_fold_offset_to_component_ref): Remove.
14769 (maybe_fold_offset_to_reference): Declare.
14770 * fold-const.c (fold_unary): Do not fold
14771 (type *)&A into &A->field_of_type_and_offset_0
14772 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): When base type
14773 size is unknown, give up.
14774 (maybe_fold_offset_to_component_ref): Ignore firelds with unknown
14775 offsets.
14776 (maybe_fold_offset_to_reference): New.
14777 (maybe_fold_stmt_indirect): Use it.
14778 (fold_stmt_r): Fold (type *)&A+offset into A->field_if_type_and_offset.
14779 * gimplify.c (gimplify_conversion): Canonicalize conversions to
14780 field references.
14781 (gimplify_expr): Likewise for plus_expr.
14782
14783 2007-05-01 Zdenek Dvorak <dvorakz@suse.cz>
14784
14785 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Use
14786 bsi_after_labels. Always insert statements before bsi.
14787 * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
14788 * predict.c (apply_return_prediction): Check for empty blocks.
14789 * cfgexpand.c (lab_rtx_for_bb): New variable.
14790 (label_rtx_for_bb): Do not create new tree labels.
14791 (expand_gimple_basic_block): Add labels recorded in lab_rtx_for_bb.
14792 (tree_expand_cfg): Initialize lab_rtx_for_bb.
14793 * tree-cfg.c (build_tree_cfg): Call cleanup_dead_labels after
14794 creating edges.
14795 (label_for_bb): Add field used.
14796 (update_eh_label, main_block_label): Mark the label used.
14797 (cleanup_dead_labels): Remove unused labels.
14798
14799 2007-05-01 Richard Guenther <rguenther@suse.de>
14800
14801 * tree-vrp.c (set_value_range): Do not allocate equiv bitmap
14802 if it is not about to be set.
14803 (get_value_range): Do not pre-allocate equiv bitmap.
14804 (update_value_range): No need to clear equiv field.
14805 (add_equivalence): Change prototype to get bitmap pointer.
14806 Allocate bitmap here if it is not already.
14807 (extract_range_from_assert): Do not allocate bitmap here.
14808 Update callers to add_equivalence.
14809 (extract_range_from_ssa_name): Likewise.
14810 (get_vr_for_comparison): New static helper.
14811 (compare_name_with_value): Handle NULL equiv bitmap by
14812 peeling the first iteration of the comparison loop.
14813 Use get_vr_for_comparison.
14814 (compare_names): Handle NULL equiv bitmaps by using fake
14815 ones. Use get_vr_for_comparison.
14816
14817 2007-04-30 Brooks Moses <brooks.moses@codesourcery.com>
14818
14819 * double-int.c (mpz_set_double_int): Moved from
14820 tree-ssa-loop-niter.c.
14821 (mpz_get_double_int): Likewise; also, add option to wrap
14822 out-of-range integers.
14823 * double-int.h: New prototypes for above.
14824 * tree.c (get_static_type_bounds): Moved from
14825 tree-ssa-loop-niter.c; now returns TYPE_MIN_VALUE and
14826 TYPE_MAX_VALUE if they exist..
14827 * tree.h: New prototype for above.
14828 * tree-ssa-loop-niter.c: Adjust mpz_to_double_int and
14829 get_type_bounds calls.
14830 (mpz_set_double_int): Move to double-int.c.
14831 (get_type_bounds): Move to tree.c, rename to
14832 get_static_type_bounds.
14833 (mpz_to_double_int): Move to double-int.c, rename to
14834 mpz_get_double_int.
14835
14836 2007-04-30 Bob Wilson <bob.wilson@acm.org>
14837
14838 * config/xtensa/lib1funcs.asm (__umodsi3, __modsi3): Rearrange so that
14839 DIV0 exception can fall through to a normal return.
14840
14841 2007-04-30 Alexandre Oliva <aoliva@redhat.com>
14842
14843 PR middle-end/22156
14844 Temporarily revert:
14845 2007-04-06 Andreas Tobler <a.tobler@schweiz.org>
14846 * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
14847 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
14848 * tree-sra.c (try_instantiate_multiple_fields): Needlessly
14849 initialize align to silence bogus warning.
14850 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
14851 * tree-sra.c (struct sra_elt): Add in_bitfld_block. Remove
14852 all_no_warning.
14853 (struct sra_walk_fns): Remove use_all parameter from use.
14854 (sra_hash_tree): Handle BIT_FIELD_REFs.
14855 (sra_elt_hash): Don't hash bitfld blocks.
14856 (sra_elt_eq): Skip them in parent compares as well. Handle
14857 BIT_FIELD_REFs.
14858 (sra_walk_expr): Don't maintain or pass down use_all_p.
14859 (scan_use): Remove use_all parameter.
14860 (scalarize_use): Likewise. Re-expand assignment to
14861 BIT_FIELD_REF of gimple_reg. De-scalarize before input or
14862 output, and re-scalarize after output. Don't mark anything
14863 for no warning.
14864 (scalarize_ldst): Adjust.
14865 (scalarize_walk_gimple_modify_statement): Likewise.
14866 (build_element_name_1): Handle BIT_FIELD_REFs.
14867 (instantiate_element): Don't warn for any element whose parent
14868 is used as a whole.
14869 (instantiate_missing_elements_1): Return the sra_elt.
14870 (canon_type_for_field): New.
14871 (try_instantiate_multiple_fields): New.
14872 (instantiate_missing_elemnts): Use them.
14873 (mark_no_warning): Removed.
14874 (generate_one_element_ref): Handle BIT_FIELD_REFs.
14875 (REPLDUP, sra_build_elt_assignment): New.
14876 (generate_copy_inout): Use them.
14877 (generate_element_copy): Likewise. Handle bitfld differences.
14878 (generate_element_zero): Don't recurse for blocks. Use
14879 sra_build_elt_assignment.
14880 (generate_one_element_int): Take elt instead of var. Use
14881 sra_build_elt_assignment.
14882 (generate_element_init_1): Adjust.
14883 (scalarize_use, scalarize_copy): Use REPLDUP.
14884 (scalarize_ldst): Move assert before dereference.
14885 (dump_sra_elt_name): Handle BIT_FIELD_REFs.
14886
14887 2007-04-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
14888
14889 PR C++/31721
14890 * tree.c (reconstruct_complex_type): Reconstruct a reference
14891 correctly.
14892 Also use the same mode for the pointer as the old pointer type.
14893
14894 2007-04-30 Francois-Xavier Coudert <coudert@clipper.ens.fr>
14895
14896 * doc/trouble.texi (Interoperation): Remove note about Ultrix
14897 Fortran compiler.
14898
14899 2007-04-29 Zdenek Dvorak <dvorakz@suse.cz>
14900
14901 PR rtl-optimization/31676
14902 * df-scan.c (record_nonlocal_goto_receiver_defs): New function.
14903 (df_refs_record): Call it.
14904
14905 2007-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
14906
14907 * rtl.def (SS_ABS): New code.
14908 * config/bfin/bfin.c (print_operand): New modifier 'v'.
14909 (enum bfin_builtins): Add BFIN_BUILTIN_SUM_2X16, BFIN_BUILTIN_ABS_1x32,
14910 BFIN_BUILTIN_ROUND_1x32, BFIN_BUILTIN_MULT_1x32x32,
14911 BFIN_BUILTIN_MULT_1x32x32NS, BFIN_BUILTIN_SSASHIFT_1x32.
14912 (bfin_init_builtins): Define them.
14913 (bdesc_1arg, bdesc_2arg): Add some of them here, ...
14914 (bfin_expand_builtin): ... and handle the others here.
14915 * config/bfin/bfin.md (ssabssi2, ssroundsi2, ssashiftsi3,
14916 flag_mul_macv2hi_parts_acconly_andcc0): New patterns.
14917 (ss_absv2hi2): Renamed from absv2hi; use ss_abs code.
14918 (ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3): Shift count
14919 operand is only HImode.
14920
14921 2007-04-29 Steven Bosscher <steven@gcc.gnu.org>
14922
14923 * regclass.c (scan_one_insn): Remove splitting of
14924 two address insns.
14925
14926 2007-04-28 Sandra Loosemore <sandra@codesourcery.com>
14927 Nigel Stephens <nigel@mips.com>
14928
14929 * config/mips/mips.h (SLOW_BYTE_ACCESS): Turn off for MIPS16.
14930
14931 2007-04-28 Jan Hubicka <jh@suse.cz>
14932
14933 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Use
14934 insn_locators_alloc instead of insn_locators_initialize;
14935 call reset_block_changes.
14936 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
14937 * config/sh/sh.c (sparc_output_mi_thunk): Likewise.
14938 * config/is64/ia64.c (ia64_output_mi_thunk): Likewise.
14939 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
14940 * config/score/score.c (th_output_mi_thunk): Likewise.
14941 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
14942 * cfglyaout.c (set_curr_insn_source_location, set_curr_insn_block):
14943 tolerate uninitialized locator info.
14944
14945 Re-apply:
14946 * function.c (init_function_start): Don't init line number info.
14947 (expand_function_end): Update.
14948 (reset_block_changes, record_block_change, finalize_block_changes,
14949 check_block_change, free_block_changes): Kill.
14950 * function.h (reset_block_changes, record_block_change,
14951 finalize_block_changes, check_block_change, free_block_changes):
14952 Remove prototypes.
14953 (struct function): Remove ib_boundaries_block.
14954 * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
14955 Use curr_insn_locator to initialize locator.
14956 (emit_line_note): Remove.
14957 * cfgexpand.c (expand_gimple_cond_expr): Update.
14958 (construct_exit_block): Likewise.
14959 (tree_expand_cfg): Initialize/finalize locators.
14960 * expr.c (expand_expr_real): Update.
14961 * cfglayout.c (line_locators_locs, line_locators_lines,
14962 file_locators_locs, file_locators_files): Remove.
14963 (set_block_levels): Move to cfgexpand.c.
14964 (insn_locators_initialize): Remove.
14965 (pass_insn_locators_initialize): Remove.
14966 (locations_locators_locs, locations_locators_vals): New static vars.
14967 (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
14968 Likewise.
14969 (insn_locators_alloc, insn_locators_finalize,
14970 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
14971 New functions.
14972 (locator_location): New.
14973 (locator_line, locator_file): Rewrite.
14974 * rtl.h (emit_line_note): Kill.
14975 (insn_locators_alloc, insn_locators_finalize,
14976 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
14977 Declare.
14978 * tree-inline.c (initialize_cfun): Do not initialize
14979 ib_boundaries_block.
14980 * passes.c (pass_insn_locators_initialize): Remove.
14981
14982 2007-04-28 Zdenek Dvorak <dvorakz@suse.cz>
14983
14984 * tree-cfg.c (move_block_to_fn): Release bb from dominance
14985 info. Update last_basic_block correctly.
14986
14987 2007-04-27 Kaz Kojima <kkojima@gcc.gnu.org>
14988
14989 PR target/31701
14990 * config/sh/sh.c (output_stack_adjust): Avoid using the frame
14991 register itself to hold the offset constant. Tell flow the use
14992 of r4 and r5 when they are used.
14993
14994 2007-04-27 Richard Guenther <rguenther@suse.de>
14995
14996 * tree-ssa-forwprop.c (forward_propagate_into_cond): Keep track
14997 if we simplified anything.
14998 (tree_ssa_forward_propagate_single_use_vars): Defer overflow
14999 warnings until we did a simplification and the stmt was not
15000 marked as TREE_NO_WARNING.
15001
15002 2007-04-27 Mike Stump <mrs@apple.com>
15003
15004 * config/rs6000/darwin.h (ALWAYS_PUSH_CONSTS_USING_REGS_P): Remove.
15005
15006 2007-04-27 Ian Lance Taylor <iant@google.com>
15007
15008 PR middle-end/31710
15009 * tree.c (build_distinct_type_copy): If TYPE_MIN_VALUE or
15010 TYPE_MAX_VALUE exist, convert them to the new type.
15011
15012 2007-04-27 Zdenek Dvorak <dvorakz@suse.cz>
15013
15014 * tree-cfgcleanup.c (cleanup_tree_cfg): Verify dominance info
15015 if it claims to be available.
15016 * tree-ssa-dce.c (remove_dead_stmt): Mark cfg as altered when
15017 edge is redirected.
15018 (perform_tree_ssa_dce): Always free postdominators.
15019
15020 2007-04-27 Richard Henderson <rth@redhat.com>
15021
15022 * config/alpha/predicates.md (aligned_memory_operand): Mark
15023 as define_special_predicate.
15024 (unaligned_memory_operand, normal_memory_operand): Likewise.
15025 (reg_or_unaligned_mem_operand): Remove.
15026 (any_memory_operand): Match the documentation and check for
15027 non-renumbered pseudos during reload.
15028 * config/alpha/alpha.c (alpha_secondary_reload): Rename from
15029 alpha_secondary_reload_class, update to new interface, make static.
15030 Handle CQImode like HImode. Remove FP subreg check.
15031 (alpha_expand_mov): Use replace_equiv_address.
15032 (alpha_expand_mov_nobwx): Use any_memory_operand.
15033 (TARGET_SECONDARY_RELOAD): New.
15034 * config/alpha/alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Remove.
15035 (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
15036 * config/alpha/sync.md (I12MODE, I48MODE, modesuffix): Move ...
15037 * config/alpha/alpha.md: ... here.
15038 (RELOAD12, reloadmode): New.
15039 (movcqi): New.
15040 (reload_in<RELOAD12>): Macro-ize from reload_inqi, reload_inhi.
15041 Don't handle the aligned case here.
15042 (reload_out<RELOAD12>): Macro-ize from reload_outqi, reload_outhi.
15043 (reload_in<I12MODE>_aligned): Macro-ize from reload_inqi_help,
15044 reload_inhi_help. Don't expect a scratch register.
15045 (reload_out<I12MODE>_aligned): Macro-ize from reload_outqi_help,
15046 reload_outhi_help.
15047 * config/alpha/alpha-protos.h (alpha_secondary_reload_class): Remove.
15048
15049 2007-04-27 Richard Guenther <rguenther@suse.de>
15050
15051 * tree-ssa-forwprop.c (get_prop_dest_stmt): Fix comment typo.
15052
15053 2007-04-27 Richard Guenther <rguenther@suse.de>
15054
15055 PR tree-optimization/30965
15056 PR tree-optimization/30978
15057 * Makefile.in (tree-ssa-forwprop.o): Depend on $(FLAGS_H).
15058 * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove.
15059 (find_equivalent_equality_comparison): Likewise.
15060 (simplify_cond): Likewise.
15061 (get_prop_source_stmt): New helper.
15062 (get_prop_dest_stmt): Likewise.
15063 (can_propagate_from): Likewise.
15064 (remove_prop_source_from_use): Likewise.
15065 (combine_cond_expr_cond): Likewise.
15066 (forward_propagate_comparison): New function.
15067 (forward_propagate_into_cond): Rewrite to use fold for
15068 tree combining.
15069 (tree_ssa_forward_propagate_single_use_vars): Call
15070 forward_propagate_comparison to propagate comparisons.
15071
15072 2007-04-27 Richard Guenther <rguenther@suse.de>
15073
15074 PR tree-optimization/31715
15075 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make
15076 sure to do computation on the offset in an appropriate
15077 signed type.
15078
15079 2007-04-27 Richard Sandiford <richard@codesourcery.com>
15080
15081 * reload.h (elimination_target_reg_p): Declare.
15082 * reload.c (find_reloads): Don't apply the reg_rtx move
15083 optimization if the SET_DEST satisfies elimination_target_reg_p.
15084 * reload1.c (elimination_target_reg_p): New function.
15085 (gen_reload): In the move/add2 fallback, make sure that op0
15086 does not overlap the destination register.
15087
15088 2007-04-27 Zdenek Dvorak <dvorakz@suse.cz>
15089
15090 * tree-ssa-loop-im.c (determine_invariantness_stmt): Attempt to
15091 transform only GIMPLE_MODIFY_STMTs.
15092 * tree-complex.c (expand_complex_operations_1): Ditto.
15093 (expand_complex_div_wide): Do not create gotos in COND_EXPR branches.
15094 * tree-ssa-loop-manip.c (build_if_stmt): Removed.
15095 (tree_transform_and_unroll_loop): Do not create gotos in COND_EXPR
15096 branches.
15097 * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
15098 tree_mod_subtract, tree_ic, tree_stringop_fixed_value): Ditto.
15099 * omp-low.c (expand_parallel_call, expand_omp_for_generic,
15100 expand_omp_for_static_chunk, expand_omp_for_static_nochunk): Ditto.
15101 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes,
15102 slpeel_add_loop_guard): Ditto.
15103 * tree-mudflap.c (mf_build_check_statement_for): Ditto.
15104 * lambda-code.c (perfect_nestify): Ditto.
15105 * tree-iterator.c (tsi_split_statement_list_before): Fix splitting
15106 before the first statement.
15107 * tree-optimize.c (execute_free_datastructures): Fix comments.
15108 (execute_free_cfg_annotations): Do not call disband_implicit_edges.
15109 * tree-flow.h (disband_implicit_edges): Declaration removed.
15110 * tree-cfg.c (make_cond_expr_edges): Remove gotos from COND_EXPR
15111 branches.
15112 (cleanup_dead_labels, tree_redirect_edge_and_branch): Handle
15113 COND_EXPRs without gotos.
15114 (disband_implicit_edges, has_label_p): Removed.
15115 (tree_verify_flow_info): Verify that COND_EXPR branches are empty.
15116 (tree_lv_add_condition_to_bb): Do not create gotos in COND_EXPR
15117 branches.
15118 * tree.c (build3_stat): Mark COND_EXPRs used as statements as having
15119 side effects.
15120 * tree-pretty-print.c (dump_implicit_edges): Dump implicit edges
15121 also for COND_EXPRs.
15122 * cfgexpand.c (label_rtx_for_bb): New function.
15123 (expand_gimple_cond_expr): Do not expect gotos in COND_EXPR branches.
15124 Use label_rtx_for_bb to find the labels.
15125 (expand_gimple_basic_block): Remove RETURN_EXPR at the end of the
15126 last block. Detect fallthru edges.
15127
15128 2007-04-26 Ian Lance Taylor <iant@google.com>
15129
15130 PR target/28675
15131 * reload.c (find_reloads_subreg_address): If the address was valid
15132 in the original mode but not in the new mode, reload the whole
15133 address.
15134
15135 2007-04-27 Zdenek Dvorak <dvorakz@suse.cz>
15136
15137 * tree-cfgcleanup.c (cfgcleanup_altered_bbs): New global variable.
15138 (remove_fallthru_edge): Use remove_edge_and_dominated_blocks.
15139 (cleanup_control_expr_graph): Do not invalidate dominance info.
15140 Record altered blocks.
15141 (cleanup_control_flow, cleanup_forwarder_blocks): Removed.
15142 (cleanup_control_flow_bb, split_bbs_on_noreturn_calls,
15143 cleanup_tree_cfg_bb): New functions.
15144 (remove_forwarder_block): Do not maintain the worklist of blocks.
15145 Record altered blocks.
15146 (cleanup_tree_cfg_1): Iterate over cfgcleanup_altered_bbs,
15147 not over whole cfg.
15148 (cleanup_tree_cfg): Do not iterate cleanup_tree_cfg_1. Only call
15149 delete_unreachable_blocks if dominators are not available.
15150 * tree-inline.c (optimize_inline_calls): Free dominance information
15151 earlier.
15152 * tree-flow.h (remove_edge_and_dominated_blocks,
15153 cfgcleanup_altered_bbs): Altered.
15154 * tree-cfg.c (replace_uses_by, tree_merge_blocks): Record altered
15155 blocks.
15156 (get_all_dominated_blocks, remove_edge_and_dominated_blocks): New
15157 functions.
15158 (tree_purge_dead_eh_edges): Use remove_edge_and_dominated_blocks,
15159 do not invalidate dominators.
15160
15161 2007-04-26 Anatoly Sokolov <aesok@post.ru>
15162
15163 * config/avr/avr.c (avr_mcu_types): Add support for ATmega8HVA and
15164 ATmega16HVA devices. Move AT90USB82 device to 'avr5' architecture.
15165 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
15166 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
15167
15168 2007-04-26 Steve Ellcey <sje@cup.hp.com>
15169
15170 * config/ia64/ia64.md (ip_value): Fix itanium_class attribute.
15171
15172 2007-04-26 Richard Guenther <rguenther@suse.de>
15173
15174 PR tree-optimization/31703
15175 * tree-ssa-loop-im.c (rewrite_bittest): Make sure to use
15176 the right type for the target of the bittest.
15177
15178 2007-04-26 Richard Sandiford <richard@codesourcery.com>
15179
15180 * config/i386/vx-common.h (RETURN_IN_MEMORY): Use
15181 ix86_sol10_return_in_memory.
15182
15183 2007-04-26 Richard Sandiford <richard@codesourcery.com>
15184
15185 * config/i386/i386.c (ix86_sol10_return_in_memory): Remove unused
15186 variables.
15187
15188 2007-04-26 Jakub Jelinek <jakub@redhat.com>
15189
15190 PR c++/31598
15191 * tree-inline.c (copy_body_r): Don't touch TREE_TYPE of OMP_CLAUSE.
15192
15193 PR tree-optimization/30558
15194 * tree-eh.c (lower_eh_filter): If EH_FILTER_MUST_NOT_THROW
15195 clear this_state.prev_try.
15196
15197 2007-04-26 Richard Sandiford <richard@codesourcery.com>
15198 Mark Mitchell <mark@codesourcery.com>
15199
15200 * config/i386/i386-protos.h (ix86_sol10_return_in_memory): Declare.
15201 * config/i386/i386.c (ix86_sol10_return_in_memory): New function.
15202 * config/i386/sol2-10.h (RETURN_IN_MEMORY): Use it.
15203
15204 2007-04-26 Richard Sandiford <richard@codesourcery.com>
15205
15206 PR driver/31107
15207 * doc/invoke.texi (%:print-asm-header): Document.
15208 * gcc.c (asm_options): Use %:print-asm-header() for --target-help
15209 and -ftarget-help.
15210 (static_spec_functions): Add print-asm-header.
15211 (main): Print a banner before the --target-help linker options.
15212 (print_asm_header_spec_function): New function.
15213
15214 2007-04-25 Kaz Kojima <kkojima@gcc.gnu.org>
15215
15216 PR target/31403
15217 * config/sh/sh.md (movsi_ie): Fix length for TARGET_SH2A.
15218 (movsf_ie): Likewise.
15219
15220 2007-04-25 Paolo Carlini <pcarlini@suse.de>
15221
15222 * doc/extend.texi ([Type Traits]): Adjust per N2255.
15223
15224 2007-04-25 Bob Wilson <bob.wilson@acm.org>
15225
15226 * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Throw an
15227 exception for divide-by-zero.
15228 (__umodsi3, __modsi3): Likewise.
15229
15230 2007-04-25 Dirk Mueller <dmueller@suse.de>
15231
15232 * c-typeck.c (build_compound_expr): Annotate warning()
15233 call with OPT_Wunused_value.
15234 * tree-ssa.c (warn_uninit): Annotate warning with
15235 OPT_Wunintialized.
15236 * c-common.c (handle_sentinel_attribute): Annotate warning
15237 call with OPT_Wattributes.
15238
15239 2007-04-25 Thiemo Seufer <ths@mips.com>
15240
15241 * config/mips/mips.opt (mdmx, mmt, mno-mdmx): New options.
15242 (mips16): Fix typo.
15243 * config/mips/mips.h (ASM_SPEC): Pass -mmt/-mno-mt and -mdmx/-mno-mdmx
15244 on to the assembler. Improve handling of -mno-mips16. Add handling
15245 of -mno-mips3d, -mno-dsp, -mno-dspr2.
15246 * doc/invoke.texi (MIPS Options): Whitespace cleanup. Fix wrong use
15247 of @itemx. Document -mno-dsp, -mno-dspr2, -mno-paired-single, -mdmx,
15248 -mno-mdmx, -mno-mips3d, -mmt and -mno-mt.
15249
15250 2007-04-25 Danny Smith <dannysmith.users.sourceforge.net>
15251
15252 PR target/31680
15253 * config/i386/winnt.c (i386_pe_file_end): Strip only
15254 USER_LABEL_PREFIX when writing export name.
15255
15256 2007-04-25 Richard Sandiford <richard@codesourcery.com>
15257
15258 * config.gcc (sh-wrs-vxworks): Don't include dbxelf.h. Include
15259 sh/elf.h, vx-common.h and vxworks.h.
15260 * config/sh/sh.h: Include config/vxworks-dummy.h.
15261 (SUBTARGET_OVERRIDE_OPTIONS): Define.
15262 (OVERRIDE_OPTIONS): Use it.
15263 * config/sh/sh.md (GOTaddr2picreg): Add suport for VxWorks RTPs.
15264 (vxworks_picreg): New pattern.
15265 * config/sh/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
15266 VXWORKS_OS_CPP_BUILTINS.
15267 (LIB_SPEC, LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine
15268 to their VXWORKS_* equivalents.
15269 (SUBTARGET_OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
15270 (SUBTARGET_LINK_EMUL_SUFFIX, FUNCTION_PROFILER): Define.
15271 * config/sh/lib1funcs.asm (NO_FPSCR_VALUES): Define for VxWorks PIC.
15272 (set_fpscr, ic_invalidate): Add VxWorks PIC sequences.
15273 * config/sh/t-vxworks (MULTILIB_OPTIONS): Add m4a, -mrtp and
15274 -mrtp/-fPIC multilibs.
15275 (MULTILIB_EXCEPTIONS): Generalize globs accordingly.
15276 (MULTILIB_MATCHES, EXTRA_MULTILIB_PARTS): Define.
15277 (MULTILIB_OSDIRNAMES): Delete.
15278
15279 2007-04-25 Anatoly Sokolov <aesok@post.ru>
15280
15281 PR target/18989
15282 * config/avr/avr.h (ASM_OUTPUT_ALIGN): Redefine.
15283
15284 2007-04-24 Brooks Moses <brooks.moses@codesourcery.com>
15285
15286 * real.c (mpfr_from_real): Handle Inf and NaN, and allow the
15287 rounding mode to be specified by the caller.
15288 (real_to_mpfr) Likewise.
15289 * real.h: Update mpfr_from_real, mpfr_to_real prototypes to
15290 include new arguments.
15291 * builtins.c: Update mpfr_from_real, mpfr_to_real calls.
15292
15293 2007-04-24 Ian Lance Taylor <iant@google.com>
15294
15295 PR tree-optimization/31605
15296 * tree-vrp.c (set_value_range): Check that min and max are not
15297 both overflow infinities.
15298 (set_value_range_to_value): New static function.
15299 (extract_range_from_binary_expr): Call set_value_range_to_value.
15300 (extract_range_from_cond_expr): Likewise.
15301 (extract_range_from_expr): Likewise.
15302 (extract_range_from_unary_expr): Likewise. Don't create a range
15303 which overflows on both sides.
15304 (vrp_meet): Check for a useless range.
15305 (vrp_visit_phi_node): If we see a constant which looks like an
15306 overflow infinity, turn off the TREE_OVERFLOW flag.
15307
15308 2007-04-24 Ian Lance Taylor <iant@google.com>
15309
15310 * flow.c (elim_reg_cond): Handle a comparison of a subreg.
15311
15312 2007-04-24 Simon Martin <simartin@users.sourceforge.net>
15313
15314 PR diagnostic/25923
15315 * tree-pass.h (TDF_DIAGNOSTIC): New dump control to specify that a
15316 diagnostic message is being built.
15317 * tree-pretty-print.c (dump_generic_node): Only write the
15318 formatted text into BUFFER's stream if we are not building a
15319 diagnostic message.
15320 * toplev.c (default_tree_printer): Pass TDF_DIAGNOSTIC to
15321 dump_generic_node.
15322 * Makefile.in (toplev.o): Depend on tree-pass.h.
15323
15324 2007-04-24 Ian Lance Taylor <iant@google.com>
15325
15326 PR tree-optimization/31602
15327 * tree-ssa-loop-ch.c (copy_loop_headers): Set TREE_NO_WARNING for
15328 conditionals in the copied loop header.
15329 * tree-cfg.c (fold_cond_expr_cond): Don't issue undefined overflow
15330 warnings if TREE_NO_WARNING is set.
15331 * doc/invoke.texi (Warning Options): Clarify that
15332 -Wstrict-overflow does not warn about loops.
15333
15334 2007-04-24 Janis Johnson <janis187@us.ibm.com>
15335
15336 * config/rs6000/rs6000.c (function_arg_advance): For 32-bit ELF ABI,
15337 expand on the comment about _Decimal128 arguments and check the
15338 integer result of the modulus operation; for 64-bit ELF ABI, ensure
15339 that _Decimal128 argument uses even/odd register pair.
15340 (function_arg): Ditto.
15341
15342 2007-04-24 Hui-May Chang <hm.chang@apple.com>
15343
15344 * reload1.c (merge_assigned_reloads) : Do not merge a RELOAD_OTHER
15345 instruction with a RELOAD_FOR_OPERAND_ADDRESS instruction.
15346
15347 2007-04-24 Richard Guenther <rguenther@suse.de>
15348 Olga Golovanevsky <olga@il.ibm.com>
15349
15350 * fold-const.c (multiple_of_p): Check for bottom
15351 to be zero.
15352
15353 2007-04-24 Richard Henderson <rth@redhat.com>
15354
15355 * libgcc2.h (AVOID_FP_TYPE_CONVERSION): Rename from
15356 IS_IBM_EXTENDED. Also define in terms of WIDEST_HARDWARE_FP_SIZE.
15357 * libgcc2.c (__floatdisf): Avoid double-word arithmetic when
15358 looking for non-zero bits shifted out. Avoid a recursive call
15359 when constructing the scalar.
15360 (__floatundisf): Likewise.
15361
15362 2007-04-24 Nathan Froyd <froydnj@codesourcery.com>
15363
15364 * dwarf2out.c (field_byte_offset): Move the existing logic
15365 under the control of PCC_BITFIELD_TYPE_MATTERS and just use
15366 the bit offset of the field if !PCC_BITFIELD_TYPE_MATTERS.
15367
15368 2007-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
15369
15370 PR target/31641
15371 * config/s390/s390.c (s390_expand_setmem): Don't ICE for constant
15372 length argument of 0 for memset.
15373 (s390_expand_movmem, s390_expand_setmem, s390_expand_cmpmem): Use
15374 unsigned shift instead of the signed variant.
15375
15376 2007-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
15377
15378 * config/s390/s390.md ("*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs_ibm",
15379 "fix_trunc<BFP:mode><GPR:mode>2_ieee", "fix_truncdfsi2_ibm",
15380 "floatsidf2_ibm", "floatsisf2", "truncdfsf2_ieee", "truncdfsf2_ibm",
15381 "*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
15382 "*trunctfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
15383 "*extenddftf2_ieee", "*extenddftf2_ibm", "*extendsftf2_ieee",
15384 "*extendsftf2_ibm", "*add<mode>3", "*add<mode>3_ibm", "*sub<mode>3_ibm",
15385 "*mul<mode>3", "*mul<mode>3_ibm", "*div<mode>3", "*div<mode>3_ibm",
15386 "*neg<mode>2_ibm", "*abs<mode>2_ibm"): Insn definitions removed.
15387 ("fix_trunc<BFP:mode><GPR:mode>2_bfp", "floatsi<mode>2",
15388 "truncdfsf2", "trunctf<mode>2", "add<mode>3", "sub<mode>3",
15389 "mul<mode>3", "div<mode>3"): Insn definitions added.
15390 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fix_trunc<mode>di2",
15391 "fix_trunc<mode>si2"): gen_fix_trunc<BFP:mode><GPR:mode>2_ieee renamed
15392 to gen_fix_trunc<BFP:mode><GPR:mode>2_bfp.
15393 ("fix_truncdfsi2", "floatsitf2", "truncdfsf2", "trunctfdf2",
15394 "trunctfsf2", "extendsfdf2", "extenddftf2", "extendsftf2", "add<mode>3",
15395 "sub<mode>3", "mul<mode>3", "div<mode>3"): Expander removed.
15396 ("fix_trunc<mode>si2", "extend<DSF:mode><BFP:mode>2"): Expander added.
15397 * config/s390/s390.h (TARGET_IBM_FLOAT, TARGET_IEEE_FLOAT,
15398 TARGET_FLOAT_FORMAT): Macro definitions removed.
15399 (FP_REGNO_P): No special case for !TARGET_IEEE_FLOAT anymore.
15400 * config/s390/s390.c (struct processor_costs, z900_cost, z990_cost,
15401 z9_109_cost): Remove fields for hexfloat instructions: dxr, ddr and der.
15402 (s390_rtx_costs): Remove !TARGET_IEEE_FLOAT special branches.
15403 (s390_gen_rtx_const_DI): Function removed.
15404 * config/s390/s390-protos.h (s390_gen_rtx_const_DI): Prototype removed.
15405
15406 2007-04-24 Richard Sandiford <richard@codesourcery.com>
15407
15408 * optabs.c (set_conv_libfunc): Prefer libgcc2's __ffsMM2 functions
15409 over an external ffs function.
15410
15411 2007-04-24 Chao-ying Fu <fu@mips.com>
15412 Richard Sandiford <richard@nildram.co.uk>
15413
15414 * doc/md.texi (madd@var{m}@var{n}4, umadd@var{m}@var{n}4): Document.
15415 * optabs.h (OTI_smadd_widen, OTI_umadd_widen): New optab_indexes.
15416 (smadd_widen_optab, umadd_widen_optab): Define.
15417 * optabs.c (init_optabs): Initialize smadd_widen_optab and
15418 umadd_widen_optab.
15419 * genopinit.c (optabs): Fill in smadd_widen_optab and
15420 umadd_widen_optab.
15421 * expr.c (expand_expr_real_1): Try to use smadd_widen_optab
15422 and umadd_widen_optab to implement multiply-add sequences.
15423 * config/mips/mips.md (*<su>mul_acc_di): Rename to...
15424 (<u>maddsidi4): ...this. Extend condition to include
15425 GENERATE_MADD_MSUB and TARGET_DSPR2. Change the constraint
15426 of operand 0 to "ka" and use the three-operand form of madd<u>
15427 for TARGET_DSPR2.
15428 * config/mips/mips-dspr2.md (mips_madd, mips_maddu): Convert
15429 to define_expands.
15430 * config/mips/constraints.md (ka): New register constraint.
15431
15432 2007-04-24 Jan Hubicka <j@suse.cz>
15433
15434 Revert:
15435
15436 2007-04-23 Jan Hubicka <jh@suse.cz>
15437 * function.c (init_function_start): Don't init line number info.
15438 (expand_function_end): Update.
15439 (reset_block_changes, record_block_change, finalize_block_changes,
15440 check_block_change, free_block_changes): Kill.
15441 * function.h (reset_block_changes, record_block_change,
15442 finalize_block_changes, check_block_change, free_block_changes):
15443 Remove prototypes.
15444 (struct function): Remove ib_boundaries_block.
15445 * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
15446 Use curr_insn_locator to initialize locator.
15447 (emit_line_note): Remove.
15448 * cfgexpand.c (expand_gimple_cond_expr): Update.
15449 (construct_exit_block): Likewise.
15450 (tree_expand_cfg): Initialize/finalize locators.
15451 * expr.c (expand_expr_real): Update.
15452 * cfglayout.c (line_locators_locs, line_locators_lines,
15453 file_locators_locs, file_locators_files): Remove.
15454 (set_block_levels): Move to cfgexpand.c.
15455 (insn_locators_initialize): Remove.
15456 (pass_insn_locators_initialize): Remove.
15457 (locations_locators_locs, locations_locators_vals): New static vars.
15458 (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
15459 Likewise.
15460 (insn_locators_alloc, insn_locators_finalize,
15461 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
15462 New functions.
15463 (locator_location): New.
15464 (locator_line, locator_file): Rewrite.
15465 * rtl.h (emit_line_note): Kill.
15466 (insn_locators_alloc, insn_locators_finalize,
15467 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
15468 Declare.
15469 * tree-inline.c (initialize_cfun): Do not initialize
15470 ib_boundaries_block.
15471 * passes.c (pass_insn_locators_initialize): Remove.
15472
15473 2007-04-24 Daniel Franke <franke.daniel@gmail.com>
15474
15475 * doc/invoke.texi: Removed leading '-' from option index entries.
15476
15477 2007-04-23 Zdenek Dvorak <dvorakz@suse.cz>
15478
15479 * tree-phinodes.c (reserve_phi_args_for_new_edge, remove_phi_node):
15480 Use phi_nodes_ptr.
15481 (create_phi_node): Use set_phi_nodes.
15482 * omp-low.c (expand_omp_parallel): Use bb_stmt_list.
15483 * tree-if-conv.c (process_phi_nodes): Use set_phi_nodes.
15484 (combine_blocks): Use bb_stmt_list and set_bb_stmt_list.
15485 * tree-flow-inline.h (phi_nodes, set_phi_nodes,
15486 (bsi_start, bsi_last): Use bb_stmt_list.
15487 (phi_nodes_ptr, bb_stmt_list, set_bb_stmt_list): New functions.
15488 * cfgexpand.c (expand_gimple_basic_block): Use bb_stmt_list.
15489 Traverse the statements using tsi iterator.
15490 * basic-block.h (struct basic_block_def): Fields stmt_list
15491 and phi_nodes moved to ...
15492 (struct tree_bb_info): ... new structure.
15493 * tree-cfg.c (create_bb): Allocate il.tree. Use set_bb_stmt_list.
15494 (tree_merge_blocks): Use bb_stmt_list and set_bb_stmt_list.
15495 (remove_bb): Handle blocks with NULL stmt list. Clear il.tree field.
15496 (tree_verify_flow_info): Verify that il.tree is not set for
15497 entry and exit block.
15498 (tree_split_block): Use set_bb_stmt_list.
15499
15500 2007-04-23 Mike Stump <mrs@apple.com>
15501
15502 * config/i386/i386.c (ix86_tune_features
15503 [X86_TUNE_DEEP_BRANCH_PREDICTION]: Prefer call over thunks on
15504 nocona and core2.
15505
15506 2007-04-23 H.J. Lu <hongjiu.lu@intel.com>
15507
15508 * config/i386/i386.md (prefix_extra): New attribute.
15509 (length): Add prefix_extra.
15510
15511 * onfig/i386/sse.md (sse2_movdqu): Set prefix_data16.
15512 (sse2_movntv2di): Likewise.
15513 (sse2_cvtps2dq): Likewise.
15514 (sse2_cvtpd2pi): Likewise.
15515 (sse2_cvttpd2pi): Likewise.
15516 (*sse2_cvtpd2ps): Likewise.
15517 (*add<mode>3): Likewise.
15518 (sse2_ssadd<mode>3): Likewise.
15519 (sse2_usadd<mode>3): Likewise.
15520 (*sub<mode>3): Likewise.
15521 (sse2_sssub<mode>3): Likewise.
15522 (sse2_ussub<mode>3): Likewise.
15523 (*mulv8hi3): Likewise.
15524 (*smulv8hi3_highpart): Likewise.
15525 (*umulv8hi3_highpart): Likewise.
15526 (sse2_umulv2siv2di3): Likewise.
15527 (sse2_pmaddwd): Likewise.
15528 (ashr<mode>3): Likewise.
15529 (lshr<mode>3): Likewise.
15530 (ashl<mode>3): Likewise.
15531 (sse2_ashlti3): Likewise.
15532 (sse2_lshrti3): Likewise.
15533 (*umaxv16qi3): Likewise.
15534 (*smaxv8hi3): Likewise.
15535 (*uminv16qi3): Likewise.
15536 (*sminv8hi3): Likewise.
15537 (sse2_eq<mode>3): Likewise.
15538 (sse2_gt<mode>3): Likewise.
15539 (*and<mode>3): Likewise.
15540 (sse2_nand<mode>3): Likewise.
15541 (*ior<mode>3): Likewise.
15542 (*xor<mode>3): Likewise.
15543 (sse2_packsswb): Likewise.
15544 (sse2_packssdw): Likewise.
15545 (sse2_packuswb): Likewise.
15546 (sse2_punpckhbw): Likewise.
15547 (sse2_punpcklbw): Likewise.
15548 (sse2_punpckhwd): Likewise.
15549 (sse2_punpcklwd): Likewise.
15550 (sse2_punpckhdq): Likewise.
15551 (sse2_punpckldq): Likewise.
15552 (sse2_punpckhqdq): Likewise.
15553 (sse2_punpcklqdq): Likewise.
15554 (*sse2_pinsrw): Likewise.
15555 (*sse2_pextrw): Likewise.
15556 (sse2_pshufd_1): Likewise.
15557 (sse2_uavgv16qi3): Likewise.
15558 (sse2_uavgv8hi3): Likewise.
15559 (sse2_psadbw): Likewise.
15560 (sse2_pmovmskb): Likewise.
15561 (*sse2_maskmovdqu): Likewise.
15562 (*sse2_maskmovdqu_rex64): Likewise.
15563 (sse4a_extrqi): Likewise.
15564 (sse4a_extrq): Likewise.
15565 (sse3_lddqu): Set prefix_rep.
15566 (sse3_addsubv4sf3): Likewise.
15567 (sse3_haddv4sf3): Likewise.
15568 (sse3_hsubv4sf3): Likewise.
15569 (sse_cvtss2si): Likewise.
15570 (sse_cvtss2si_2): Likewise.
15571 (sse_cvtss2siq): Likewise.
15572 (sse_cvtss2siq_2): Likewise.
15573 (sse_cvttss2si): Likewise.
15574 (sse_cvttss2siq): Likewise.
15575 (sse2_cvttps2dq): Likewise.
15576 (sse3_movshdup): Likewise.
15577 (sse3_movsldup): Likewise.
15578 (sse2_cvtsd2si): Likewise.
15579 (sse2_cvtsd2si_2): Likewise.
15580 (sse2_cvtsd2siq): Likewise.
15581 (sse2_cvtsd2siq_2): Likewise.
15582 (sse2_cvttsd2si): Likewise.
15583 (sse2_cvttsd2siq): Likewise.
15584 (*sse2_cvtpd2dq): Likewise.
15585 (*sse2_cvttpd2dq): Likewise.
15586 (sse2_pshuflw_1): Likewise.
15587 (sse2_pshufhw_1): Likewise.
15588 (sse4a_insertqi): Likewise.
15589 (sse4a_insertq): Likewise.
15590 (ssse3_phaddwv8hi3): Set prefix_data16 and prefix_extra.
15591 (ssse3_phadddv4si3): Likewise.
15592 (ssse3_phaddswv8hi3): Likewise.
15593 (ssse3_phsubwv8hi3): Likewise.
15594 (ssse3_phsubdv4si3): Likewise.
15595 (ssse3_phsubswv8hi3): Likewise.
15596 (ssse3_pmaddubswv8hi3): Likewise.
15597 (ssse3_pmulhrswv8hi3): Likewise.
15598 (ssse3_pshufbv16qi3): Likewise.
15599 (ssse3_psign<mode>3): Likewise.
15600 (ssse3_palignrti): Likewise.
15601 (abs<mode>2): Likewise.
15602 (ssse3_phaddwv4hi3): Set prefix_extra.
15603 (ssse3_phadddv2si3): Likewise.
15604 (ssse3_phaddswv4hi3): Likewise.
15605 (ssse3_phsubwv4hi3): Likewise.
15606 (ssse3_phsubdv2si3): Likewise.
15607 (ssse3_phsubswv4hi3): Likewise.
15608 (ssse3_pmaddubswv4hi3): Likewise.
15609 (ssse3_pmulhrswv4hi3): Likewise.
15610 (ssse3_pshufbv8qi3): Likewise.
15611 (ssse3_psign<mode>3): Likewise.
15612 (ssse3_palignrdi): Likewise.
15613 (abs<mode>2): Likewise.
15614 (sse2_cvtdq2ps): Set mode to V4SF instead of V2DF.
15615 (*vec_dupv2df): Set mode to V2DF instead of V4SF.
15616 (sse2_pmovmskb): Set mode to SI instead of V2DF.
15617
15618 2007-04-23 Nick Clifton <nickc@redhat.com>
15619
15620 * params.def: Fix formatting of emacs local variables.
15621
15622 2007-04-23 H.J. Lu <hongjiu.lu@intel.com>
15623
15624 * config/i386/sse.md (sse2_stored): Don't split to inter-unit
15625 move if inter-unit move isn't allowed.
15626 Don't split moving the first element of V2DI to DI to inter-unit
15627 move if inter-unit move isn't allowed.
15628
15629 2007-04-23 Richard Guenther <rguenther@suse.de>
15630
15631 * tree-ssa-sink.c (execute_sink_code): Calculate CDI_DOMINATORS
15632 and CDI_POST_DOMINATORS separately.
15633
15634 2007-04-23 Nick Clifton <nickc@redhat.com>
15635
15636 * c.opt (Wformat-contains-nul): Add warning attribute.
15637
15638 2007-04-23 Jan Hubicka <jh@suse.cz>
15639
15640 * function.c (init_function_start): Don't init line number info.
15641 (expand_function_end): Update.
15642 (reset_block_changes, record_block_change, finalize_block_changes,
15643 check_block_change, free_block_changes): Kill.
15644 * function.h (reset_block_changes, record_block_change,
15645 finalize_block_changes, check_block_change, free_block_changes):
15646 Remove prototypes.
15647 (struct function): Remove ib_boundaries_block.
15648 * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
15649 Use curr_insn_locator to initialize locator.
15650 (emit_line_note): Remove.
15651 * cfgexpand.c (expand_gimple_cond_expr): Update.
15652 (construct_exit_block): Likewise.
15653 (tree_expand_cfg): Initialize/finalize locators.
15654 * expr.c (expand_expr_real): Update.
15655 * cfglayout.c (line_locators_locs, line_locators_lines,
15656 file_locators_locs, file_locators_files): Remove.
15657 (set_block_levels): Move to cfgexpand.c.
15658 (insn_locators_initialize): Remove.
15659 (pass_insn_locators_initialize): Remove.
15660 (locations_locators_locs, locations_locators_vals): New static vars.
15661 (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
15662 Likewise.
15663 (insn_locators_alloc, insn_locators_finalize,
15664 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
15665 New functions.
15666 (locator_location): New.
15667 (locator_line, locator_file): Rewrite.
15668 * rtl.h (emit_line_note): Kill.
15669 (insn_locators_alloc, insn_locators_finalize,
15670 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
15671 Declare.
15672 * tree-inline.c (initialize_cfun): Do not initialize
15673 ib_boundaries_block.
15674 * passes.c (pass_insn_locators_initialize): Remove.
15675
15676 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
15677
15678 PR middle-end/31448
15679 * expr.c (reduce_to_bit_field_precision): Handle
15680 CONST_INT rtx's.
15681
15682 2007-04-22 Uros Bizjak <ubizjak@gmail.com>
15683
15684 PR tree-optimization/24659
15685 * optabs.h (enum optab_index) [OTI_vec_unpacks_hi,
15686 OTI_vec_unpacks_lo]: Update comment to mention floating point operands.
15687 (vec_pack_trunc_optab): Rename from vec_pack_mod_optab.
15688 * genopinit.c (optabs): Rename vec_pack_mod_optab
15689 to vec_pack_trunc_optab.
15690 * tree-vect-transform.c (vectorizable_type_demotion): Do not fail
15691 early for scalar floating point operands for NOP_EXPR.
15692 (vectorizable_type_promotion): Ditto.
15693 * optabs.c (optab_for_tree_code) [VEC_PACK_TRUNC_EXPR]: Return
15694 vec_pack_trunc_optab.
15695 (expand_binop): Rename vec_float_trunc_optab to vec_pack_mod_optab.
15696
15697 * tree.def (VEC_PACK_TRUNC_EXPR): Rename from VEC_PACK_MOD_EXPR.
15698 * tree-pretty-print.c (dump_generic_node) [VEC_PACK_TRUNC_EXPR]:
15699 Rename from VEC_PACK_MOD_EXPR.
15700 (op_prio) [VEC_PACK_TRUNC_EXPR]: Ditto.
15701 * expr.c (expand_expr_real_1): Ditto.
15702 * tree-inline.c (estimate_num_insns_1): Ditto.
15703 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
15704
15705 * config/i386/sse.md (vec_unpacks_hi_v4sf): New expander.
15706 (vec_unpacks_lo_v4sf): Ditto.
15707 (vec_pack_trunc_v2df): Ditto.
15708 (vec_pack_trunc_v8hi): Rename from vec_pack_mod_v8hi.
15709 (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
15710 (vec_pack_trunc_v2di): Rename from vec_pack_mod_v2di.
15711
15712 * config/rs6000/altivec.md (vec_pack_trunc_v8hi): Rename from
15713 vec_pack_mod_v8hi.
15714 (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
15715
15716 * doc/c-tree.texi (Expression trees) [VEC_PACK_TRUNC_EXPR]:
15717 Rename from VEC_PACK_MOD_EXPR. This expression also represent
15718 packing of floating point operands.
15719 [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR]: These expression also
15720 represent unpacking of floating point operands.
15721 * doc/md.texi (Standard Names) [vec_pack_trunc]: Update documentation.
15722 [vec_unpacks_hi]: Ditto.
15723 [vec_unpacks_lo]: Ditto.
15724
15725 2007-04-22 Jan Hubicka <jh@suse.cz>
15726
15727 * final.c (rest_of_handle_final): Call
15728 targetm.asm_out.constructor/targetm.asm_out.destructor
15729 * cgraphunit.c (cgraph_build_static_cdtor): Don't do it here; set
15730 proper priority via decl_*_priority_insert.
15731 * c-common.c (c_expand_body): Likewise.
15732
15733 2007-04-22 Richard Guenther <rguenther@suse.de>
15734
15735 PR tree-optimization/29789
15736 * tree-ssa-loop-im.c (stmt_cost): Adjust cost of shifts.
15737 (rewrite_reciprocal): New helper split out from
15738 determine_invariantness_stmt.
15739 (rewrite_bittest): Likewise.
15740 (determine_invariantness_stmt): Rewrite (A >> B) & 1 to
15741 A & (1 << B) if (1 << B) is loop invariant but (A >> B)
15742 is not.
15743
15744 2007-04-22 Revital Eres <eres@il.ibm.com>
15745
15746 * loop-unroll.c (var_to_expand): New field to support also
15747 insns of the form x = something + x.
15748 (analyze_insn_to_expand_var): Use it.
15749 (expand_var_during_unrolling): Likewise.
15750
15751 2007-04-21 Zdenek Dvorak <dvorakz@suse.cz>
15752
15753 * predict.c: Include pointer-set.h.
15754 (bb_predictions): New variable.
15755 (tree_predicted_by_p, tree_predict_edge,
15756 remove_predictions_associated_with_edge): Use bb_predictions map
15757 instead of bb->predictions.
15758 (clear_bb_predictions, assert_is_empty): New functions.
15759 (combine_predictions_for_bb): Use bb_predictions map. Call
15760 clear_bb_predictions.
15761 (tree_estimate_probability): Create and free bb_predictions map.
15762 * Makefile.in (predict.o): Add pointer-set.h dependency.
15763 * basic-block.h (struct basic_block_def): Remove predictions
15764 field.
15765 * cfgrtl.c (rtl_verify_flow_info_1): Do not check bb->predictions.
15766
15767 2007-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
15768
15769 PR target/31480
15770 * config/sh/sh.md (length): Check if prev_nonnote_insn (insn)
15771 is null.
15772
15773 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
15774
15775 * timevar.c (timevar_print): Change reference of --disable-checking to
15776 --enable-checking=release. Also warn if assert checking is disabled.
15777
15778 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
15779
15780 PR C/30265
15781 * c-gimplifier.c (gimplify_compound_literal_expr): Mark the
15782 decl as addressable if the compound literal was marked as
15783 addressable.
15784 Mark the decl as a gimple register if it is a complex or
15785 vector decl and does not live in memory.
15786
15787 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
15788
15789 * tree.h (GIMPLE_TUPLE_P): Also true for PHI_NODEs.
15790 (GENERIC_NEXT): New function macro.
15791 (PHI_CHAIN): Use phi_node's new chain variable.
15792 (tree_phi_node): Change tree_common to tree_base
15793 and add the chain field.
15794 * tree-phinodes.c (make_phi_node): Don't set
15795 TREE_TYPE on the new node.
15796 * c-decl.c (lang_tree_node): Use GENERIC_NEXT
15797 instead of checking GIMPLE_TUPLE_P in chain_next.
15798 * tree-vect-transform.c
15799 (get_initial_def_for_induction): Look at
15800 PHI_RESULT_TREE for the type of the phi node.
15801 (update_vuses_to_preheader): Use PHI_CHAIN
15802 instead of TREE_CHAIN on the phi node.
15803 * tree-ssa-structalias.c (compute_points_to_sets):
15804 Likewise.
15805 (ipa_pta_execute): Likewise.
15806
15807 2007-04-21 Richard Guenther <rguenther@suse.de>
15808
15809 PR middle-end/31136
15810 * fold-const.c (fold_unary): Call fold_convert_const on the
15811 original tree.
15812
15813 2007-04-21 Alexandre Oliva <aoliva@redhat.com>
15814
15815 * gcse.c (store_killed_in_insn): Handle PARALLELs.
15816 (store_killed_in_pat): New.
15817
15818 2007-04-20 Richard Henderson <rth@redhat.com>
15819
15820 PR target/31628
15821 * config/i386/i386.c (type_has_variadic_args_p): Look for any
15822 TREE_LIST with a void_type_node value, not void_list_node exactly.
15823
15824 2007-04-21 Douglas Gregor <doug.gregor@gmail.com>
15825
15826 * doc/standards.texi: Re-arrange into language-specific
15827 subsections. Add a C++ section, documenting which standards we
15828 support.
15829
15830 2007-04-21 Zdenek Dvorak <dvorakz@suse.cz>
15831
15832 * tree-ssa-structalias.c (delete_points_to_sets): Free graph->complex.
15833 * tree-ssa-operands.c (finalize_ssa_vuse_ops): Free new_ops.
15834
15835 2007-04-20 Daniel Jacobowitz <dan@codesourcery.com>
15836
15837 * config/rs6000/sysv4.h (STARTFILE_DEFAULT_SPEC): Include
15838 ecrti.o and crtbegin.o.
15839 (LIB_DEFAULT_SPEC): Include -lc.
15840 (ENDFILE_DEFAULT_SPEC): Include crtend.o and ecrtn.o.
15841
15842 2007-04-20 Richard Henderson <rth@redhat.com>
15843
15844 PR target/28623
15845 * config/alpha/alpha.c (get_unaligned_address): Remove extra_offset
15846 argument; update all callers.
15847 (get_unaligned_offset): New.
15848 * config/alpha/alpha.md (extendqidi2, extendhidi2): Don't use
15849 get_unaligned_address, just pass on the address directly.
15850 (unaligned_extendqidi): Use gen_lowpart instead of open-coding
15851 the subreg in the helper patterns.
15852 (unaligned_extendqidi_le): Use get_unaligned_offset.
15853 (unaligned_extendqidi_be, unaligned_extendhidi_le): Likewise.
15854 (unaligned_extendhidi_be): Likewise.
15855 (unaligned_extendhidi): Tidy.
15856 * config/alpha/alpha-protos.h: Update.
15857
15858 2007-04-20 Richard Henderson <rth@redhat.com>
15859
15860 * config/alpha/alpha.h (CPP_SPEC, CPP_SUBTARGET_SPEC): Remove.
15861 (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
15862 * config/alpha/linux.h (CPP_SPEC): Undef before redefine.
15863 * config/alpha/linux-elf.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
15864 * config/alpha/freebsd.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
15865 (CPP_SPEC): Don't include %(cpp_subtarget).
15866 * config/alpha/netbsd.h (CPP_SPEC): Rename CPP_SUBTARGET_SPEC.
15867 (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
15868 * config/alpha/osf.h (CPP_SPEC, EXTRA_SPECS): Similarly.
15869
15870 2007-04-20 Jakub Jelinek <jakub@redhat.com>
15871
15872 * config/i386/i386.c (bdesc_2arg): Use ORDERED rather than UNORDERED
15873 for __builtin_ia32_cmpordss.
15874
15875 PR tree-optimization/31632
15876 * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
15877 and arg1 for optimizations of comparison against min/max values.
15878 Fold arg0 to arg1's type for optimizations of comparison against
15879 min+1 and max-1 values.
15880
15881 2007-04-19 Bernd Schmidt <bernd.schmidt@analog.com>
15882
15883 * reload.c (combine_reloads): When trying to use a dying register,
15884 check whether it's uninitialized and don't use if so.
15885
15886 2007-04-19 Brooks Moses <brooks.moses@codesourcery.com>
15887
15888 * fold-const.c: Remove prototypes for native_encode_expr and
15889 native_interpret_expr.
15890 (native_encode_expr): Make non-static.
15891 (native_interpret_expr): Likewise.
15892 * tree.h: Add prototypes for the above.
15893
15894 2007-04-19 Joseph Myers <joseph@codesourcery.com>
15895
15896 * config/rs6000/spe.md (*frob_tf_ti, *frob_ti_tf, *frob_ti_tf_2,
15897 *mov_si<mode>_e500_subreg0, *mov_si<mode>_e500_subreg0_2,
15898 *mov_sitf_e500_subreg8, *mov_sitf_e500_subreg8_2, spe_extenddftf2,
15899 spe_fix_trunctfsi2_internal, spe_negtf2_internal, cmptfeq_gpr,
15900 tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr, tsttflt_gpr):
15901 Add length attributes.
15902
15903 2007-04-19 Janis Johnson <janis187@us.ibm.com>
15904
15905 * ginclude/float.h: Check that __STDC_WANT_DEC_FP__ is defined,
15906 not that it is 1.
15907
15908 * c-cppbuiltin.c (c_cpp_builtins): Remove definition of
15909 __STDC_WANT_DEC_FP__.
15910
15911 2007-04-19 Joseph Myers <joseph@codesourcery.com>
15912
15913 * configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu*
15914 for long double compatibility.
15915 * configure: Regenerate.
15916
15917 2007-04-19 Eric Botcazou <ebotcazou@libertysurf.fr>
15918
15919 PR rtl-optimization/29841
15920 * cfgbuild.c (control_flow_insn_p): Return TRUE for unconditional
15921 trap instructions.
15922 * sched-deps.c (sched_analyze_insn): Prevent all non-jump instructions
15923 that may cause control flow transfer from being moved.
15924
15925 2007-04-18 Jan Hubicka <jh@suse.cz>
15926
15927 * fold-const.c (div_if_zero_remainder): Do signed divide for pointer
15928 types.
15929
15930 2007-04-18 Eric Christopher <echristo@apple.com>
15931
15932 * config/rs6000/darwin.md (load_macho_picbase): Use link register
15933 only. Update operands.
15934 * config/rs6000/rs6000.c (rs6000_emit_prologue): Update caller.
15935 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Ditto. Move from
15936 link register to pic register.
15937
15938 2007-04-18 Dirk Mueller <dmueller@suse.de>
15939
15940 PR diagnostic/31227
15941 * tree-vrp.c (search_for_addr_array): New.
15942 (check_array_bounds): Suppress warning about
15943 address taken of array refs if its not de-referenced.
15944
15945 2007-04-18 Dorit Nuzman <dorit@il.ibm.com>
15946
15947 * tree-vectorizer.c (destroy_loop_vec_info): Set loop->aux to NULL.
15948 * tree-vect-analyze.c (vect_analyze_loop_form): Set loop->aux.
15949
15950 * tree-vectorizer.h (NITERS_KNOWN_P): New.
15951 * tree-vect-analyze.c (vect_analyze_loop_form): Call NITERS_KNOWN_P
15952 instead of LOOP_VINFO_INT_NITERS to avoid having to geneate loop_info.
15953
15954 * tree-vect-analyze.c (vect_determine_vectorization_factor): Add
15955 dump print.
15956 (vect_analyze_operations): Fix indenetation. Fix a comment. Fix a
15957 print message.
15958 (vect_analyze_scalar_cycles): Fix indentation.
15959 (vect_enhance_data_refs_alignment): Fix check in case of peeling.
15960 (vect_mark_relevant): Include phis in relevance analysis.
15961
15962 * tree-vect-transform.c (vect_transform_loop): Add an assert.
15963
15964 2007-04-18 Anatoly Sokolov <aesok@post.ru>
15965
15966 * config/avr/avr.c (ptrreg_to_str): Replace error() with
15967 output_operand_lossage().
15968
15969 2007-04-18 Dorit Nuzman <dorit@il.ibm.com>
15970
15971 * tree-vect-transform.c (get_initial_def_for_reduction): Clean away
15972 the unused code for reduction without adjust-in-epilog to simplify the
15973 function.
15974
15975 2007-04-18 Wolfgang Gellerich <gellerich@de.ibm.com>
15976
15977 * config/s390/s390.h (S390_TDC_POSITIVE_ZERO): New constant.
15978 (S390_TDC_NEGATIVE_ZERO): New constant.
15979 (S390_TDC_POSITIVE_NORMALIZED_NUMBER): New constant.
15980 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): New constant.
15981 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): New constant.
15982 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): New constant.
15983 (S390_TDC_POSITIVE_INFINITY): New constant.
15984 (S390_TDC_NEGATIVE_INFINITY): New constant.
15985 (S390_TDC_POSITIVE_QUIET_NAN): New constant.
15986 (S390_TDC_NEGATIVE_QUIET_NAN): New constant.
15987 (S390_TDC_POSITIVE_SIGNALING_NAN): New constant.
15988 (S390_TDC_NEGATIVE_SIGNALING_NAN): New constant.
15989 (S390_TDC_INFINITY): New constant.
15990 * config/s390/s390.c (s390_canonicalize_comparison): Renamed
15991 UNSPEC_CMPINT to UNSPEC_CCU_TO_INT, added a UNSPEC_CCU_TO_INT-like
15992 optimization for UNSPEC_CCZ_TO_INT.
15993 * config/s390/s390.md ("*TDC_insn_<mode>"): New insn.
15994 ("*ccz_to_int"): New insn.
15995 ("isinf<mode>2"): New insn.
15996 (UNSPEC_CMPINT): Renamed to UNSPEC_CCU_TO_INT.
15997 (UNSPEC_CCU_TO_INT): New constant, replaces UNSPEC_CMPINT.
15998 (UNSPEC_CCZ_TO_INT): New constant.
15999
16000 2007-04-18 Richard Guenther <rguenther@suse.de>
16001
16002 PR tree-optimization/19431
16003 PR tree-optimization/21463
16004 * tree-pass.h (pass_phiprop): Declare.
16005 * passes.c (init_optimization_passes): New phiprop pass.
16006 * tree-ssa-forwprop.c (struct phiprop_d): New structure.
16007 (phivn_valid_p): New helper function.
16008 (phiprop_insert_phi): Likewise.
16009 (propagate_with_phi): Likewise.
16010 (tree_ssa_phiprop): New propagator propagating loads
16011 through phi nodes if profitable.
16012
16013 2007-04-18 Dorit Nuzman <dorit@il.ibm.com>
16014
16015 * tree-vect-analyze.c (process_use): New function.
16016 (vect_mark_stmts_to_be_vectorized): Factor out code to process_use.
16017 Check phis in all bbs.
16018 * tree-vectorizer.c (vect_is_simple_use): Remove a no longer relavant
16019 assert.
16020
16021 2007-04-18 Bernd Schmidt <bernd.schmidt@analog.com>
16022
16023 * reload1.c (eliminte_regs_in_insn): Use REG_EQUIV notes the same way
16024 we use REG_EQUAL.
16025
16026 2007-04-17 Anatoly Sokolov <aesok@post.ru>
16027
16028 PR target/30483
16029 * config/avr/avr.c (ptrreg_to_str): Replace gcc_unreachable() with
16030 error().
16031
16032 2007-04-17 H.J. Lu <hongjiu.lu@intel.com>
16033
16034 * config/i386/sse.md (sse_vmaddv4sf3): Use register_operand
16035 on "0".
16036 (sse_vmmulv4sf3): Likewise.
16037 (sse2_vmaddv2df3): Likewise.
16038 (sse2_vmmulv2df3): Likewise.
16039
16040 2007-04-17 Zdenek Dvorak <dvorakz@suse.cz>
16041
16042 PR rtl-optimization/31360
16043 * cfgloopanal.c (target_small_cost, target_pres_cost): Removed.
16044 (target_reg_cost): New.
16045 (init_set_costs): Initialize target_reg_cost. Add comments
16046 regarding the rationale of the costs.
16047 (global_cost_for_size): Renamed to...
16048 (estimate_reg_pressure_cost): ... and simplify. Decrease importance
16049 of register pressure.
16050 * tree-ssa-loop-ivopts.c (ivopts_global_cost_for_size): Use
16051 estimate_reg_pressure_cost. Add number of ivs.
16052 (determine_set_costs): Dump target_reg_cost.
16053 * loop-invariant.c (gain_for_invariant): Use
16054 estimate_reg_pressure_cost. Removed n_inv_uses argument.
16055 (best_gain_for_invariant, find_invariants_to_move): Remove
16056 n_inv_uses.
16057 * cfgloop.h (target_small_cost, target_pres_cost): Removed.
16058 (target_reg_cost): Declare.
16059 (global_cost_for_size): Declaration removed.
16060 (estimate_reg_pressure_cost): Declare.
16061
16062 2007-04-17 Peter Bergner <bergner@vnet.ibm.com>
16063
16064 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Force TDmode
16065 regnos into even/odd register pairs.
16066 * config/rs6000/rs6000.h [SLOW_UNALIGNED_ACCESS]: Treat DDmode and
16067 TDmode similar to the other floating point modes.
16068 [SECONDARY_MEMORY_NEEDED]: Treat DDmode similar to DFmode.
16069 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): New
16070 define_expand's.
16071 (negdd2_fpr, absdd2_fpr, nabsdd2_fpr, negtd2_fpr, abstd2_fpr,
16072 nabstd2_fpr, movdd_hardfloat64_mfpgpr): New define_insn's.
16073 (movdd_hardfloat64): Use TARGET_MFPGPR.
16074
16075 2007-04-17 Bernd Schmidt <bernd.schmidt@analog.com>
16076
16077 * reload1.c (delete_output_reload): Don't count output in n_inherited.
16078
16079 Revert
16080 2005-01-05 Richard Henderson <rth@redhat.com>
16081 PR rtl-opt/10692
16082 * reload1.c (do_input_reload): Restrict the optimization deleteing
16083 a previous output reload to RELOAD_FOR_INPUT.
16084
16085 2007-04-17 Dorit Nuzman <dorit@il.ibm.com>
16086
16087 * tree-vectorizer.h (stmt_vec_info_type): Add enum value
16088 induc_vec_info_type.
16089 (vectorizable_induction): New function declaration.
16090 * tree-vect-transform.c (get_initial_def_for_induction): No need to
16091 check if already vectorized. Find first place in BB where new stmts
16092 can be inserted. Takes only one argument.
16093 (vectorizable_induction): New function.
16094 (vect_transform_stmt): Add case for induc_vec_info_type to call
16095 vectorizable_induction.
16096 (vect_transform_loop): Consider phis for vectorization.
16097 * tree-vect-analyze.c (vect_determine_vectorization_factor): Simplify
16098 condition.
16099 (analyze_operations): Call vectorizable_induction when analyzing phis.
16100 Fix comment.
16101 (vect_mark_stmts_to_be_vectorized): Remove redundant checks.
16102 (vect_mark_relevant): Include phis in relevance analysis.
16103 (vect_mark_stmts_to_be_vectorize): Likewise.
16104 * tree-vect-patterns.c (widened_name_p): Remove obsolete asserts.
16105
16106 2007-04-16 Lawrence Crowl <crowl@google.com>
16107
16108 * doc/invoke.texi (Debugging Options): Add documentation for the
16109 -femit-struct-debug options -femit-struct-debug-baseonly,
16110 -femit-struct-debug-reduced, and
16111 -femit-struct-debug-detailed[=...].
16112
16113 * c-opts.c (c_common_handle_option): Add
16114 OPT_femit_struct_debug_baseonly, OPT_femit_struct_debug_reduced,
16115 and OPT_femit_struct_debug_detailed_.
16116 * c.opt: Add specifications for
16117 -femit-struct-debug-baseonly, -femit-struct-debug-reduced,
16118 and -femit-struct-debug-detailed[=...].
16119 * opts.c (set_struct_debug_option): Parse the
16120 -femit-struct-debug-... options.
16121 * opts.c (matches_main_base, main_input_basename,
16122 main_input_baselength, base_of_path, matches_main_base): Add
16123 variables and functions to compare header base name to compilation
16124 unit base name.
16125 * opts.c (should_emit_struct_debug): Add to determine to emit a
16126 structure based on the option.
16127 (dump_struct_debug) Also disabled function to debug this
16128 function.
16129 * opts.c (handle_options): Save the base name of the
16130 compilation unit.
16131
16132 * langhooks-def.h (LANG_HOOKS_GENERIC_TYPE_P): Define.
16133 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add.
16134 This hook indicates if a type is generic. Set it by default
16135 to "never generic".
16136 * langhooks.h (struct lang_hooks_for_types): Add a new hook
16137 to determine if a struct type is generic or not.
16138 * cp/cp-tree.h (class_tmpl_impl_spec_p): Declare a C++ hook.
16139 * cp/tree.c (class_tmpl_impl_spec_p): Implement the C++ hook.
16140 * cp/cp-lang.c (LANG_HOOKS_GENERIC_TYPE_P): Override null C hook
16141 with live C++ hook.
16142
16143 * flags.h (enum debug_info_usage): Add an enumeration to describe
16144 a program's use of a structure type.
16145 * dwarf2out.c (gen_struct_or_union_type_die): Add a new parameter
16146 to indicate the program's usage of the type. Filter structs based
16147 on the -femit-struct-debug-... specification.
16148 (gen_type_die): Split into two routines, gen_type_die and
16149 gen_type_die_with_usage. gen_type_die is now a wrapper
16150 that assumes direct usage.
16151 (gen_type_die_with_usage): Replace calls to gen_type_die
16152 with gen_type_die_with_usage adding the program usage of
16153 the referenced type.
16154 (dwarf2out_imported_module_or_decl): Suppress struct debug
16155 information using should_emit_struct_debug when appropriate.
16156
16157 2007-04-16 Ian Lance Taylor <iant@google.com>
16158
16159 PR tree-optimization/31522
16160 * tree-vrp.c (vr_phi_edge_counts): New static variable.
16161 (vrp_initialize): Allocate vr_phi_edge_counts.
16162 (vrp_visit_phi_node): Don't push to infinity if we saw a new
16163 executable edge. Drop test for all constants.
16164 (vrp_finalize): Free vrp_phi_edge_counts.
16165
16166 * doc/cpp.texi (Common Predefined Macros): Clarify description of
16167 __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
16168
16169 * tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer
16170 predecessors at head rather than tail.
16171
16172 2007-04-16 Matthias Klose <doko@debian.org>
16173
16174 * config/alpha/linux.h (CPP_SPEC): Define.
16175 * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Extend.
16176
16177 2007-04-16 Aldy Hernandez <aldyh@redhat.com>
16178
16179 * function.h: Remove sequence_stack extern declaration.
16180
16181 2007-04-16 Kazu Hirata <kazu@codesourcery.com>
16182
16183 * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Change to 64 on
16184 TARGET_FIDOA.
16185 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Change to 64 if __mfido__ is
16186 defined.
16187
16188 2007-04-16 Anatoly Sokolov <aesok@post.ru>
16189
16190 * config/avr/avr.c (avr_arch_types): Rearranging array.
16191 (enum avr_arch): Add.
16192 (avr_mcu_types): Use avr_arch enumeration constants instead of
16193 numbers.
16194 * config/avr/avr.h (LINK_SPEC): Simplify.
16195
16196 2007-04-16 Kazu Hirata <kazu@codesourcery.com>
16197
16198 * config/m68k/m68k.c (m68k_libcall_value,
16199 m68k_function_value): Use macros for register names more.
16200
16201 * config/m68k/m68k.h (FRAME_POINTER_REGNUM): Use A6_REG
16202 instead.
16203 (M68K_REGNAME): Use A6_REG.
16204 * config/m68k/m68k.md (FP_REG): Rename to A6_REG.
16205
16206 2007-04-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
16207
16208 PR middle-end/28071
16209 * sched-int.h (struct deps): Split field 'pending_lists_length' into
16210 'pending_read_list_length' and 'pending_write_list_length'. Update
16211 comment.
16212 * sched-deps.c (add_insn_mem_dependence): Change signature. Update
16213 to handle two length counters instead of one. Update all uses.
16214 (flush_pending_lists, sched_analyze_1, init_deps): Update to handle
16215 two length counters instead of one.
16216 * sched-rgn.c (propagate_deps): Update to handle two length counters
16217 instead of one.
16218
16219 2007-04-16 H.J. Lu <hongjiu.lu@intel.com>
16220
16221 PR target/31582
16222 * config/i386/i386.c (ix86_expand_vec_set_builtin): Make a
16223 copy of source, pass it to ix86_expand_vector_set and return
16224 it as target.
16225
16226 2007-04-16 David Ung <davidu@mips.com>
16227 Joseph Myers <joseph@codesourcery.com>
16228
16229 * config/mips/mips.h (PROCESSOR_74KC, PROCESSOR_74KF,
16230 PROCESSOR_74KX, TUNE_74K, GENERATE_MADD_MSUB): Define.
16231 * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
16232 Add 74K processor information.
16233 * config/mips/mips.md: Include 74k.md.
16234 (cpu): Add 74kc,74kf,74kx.
16235 (ISA_HAS_MADD_MSUB): Change to GENERATE_MADD_MSUB throughout.
16236 * config/mips/74k.md: New.
16237 * doc/invoke.texi (MIPS Options): Document 74K support.
16238
16239 2007-04-16 Dorit Nuzman <dorit@il.ibm.com>
16240
16241 * tree-vect-analyze.c (vect_analyze_operations): Reorganize calls to
16242 vectorizable_* functions.
16243 * tree-vect-transform.c (vectorizable_call): Add check for
16244 STMT_VINFO_RELEVANT_P, STMT_VINFO_DEF_TYPE and STMT_VINFO_LIVE_P.
16245 (vectorizable_store): likewise.
16246 (vectorizable_conversion): Add check for STMT_VINFO_DEF_TYPE.
16247 Add comments.
16248 (vectorizable_operation, vectorizable_type_demotion): Likewise.
16249 (vectorizable_type_promotion, vectorizable_load): Likewise.
16250 (vectorizable_live_operation, vectorizable_condition): Likewise.
16251 (vectorizable_assignment): Add check for STMT_VINFO_DEF_TYPE and
16252 STMT_VINFO_LIVE_P.
16253 (vect_transform_stmt): Reorganize calls to vectorizable_* functions.
16254
16255 2007-04-15 Kazu Hirata <kazu@codesourcery.com>
16256
16257 * config/m68k/linux.h (FUNCTION_VALUE_REGNO_P): Use macros for
16258 register numbers more.
16259 * config/m68k/m68k.h (STACK_POINTER_REGNUM,
16260 FRAME_POINTER_REGNUM, STATIC_CHAIN_REGNUM,
16261 M68K_STRUCT_VALUE_REGNUM, FUNCTION_VALUE, LIBCALL_VALUE,
16262 FUNCTION_VALUE_REGNO_P): Likewise.
16263 * config/m68k/m68kelf.h (M68K_STRUCT_VALUE_REGNUM,
16264 STATIC_CHAIN_REGNUM): Likewise.
16265 * config/m68k/m68kemb.h (FUNCTION_VALUE_REGNO_P): Likewise.
16266 * config/m68k/netbsd-elf.h (M68K_STRUCT_VALUE_REGNUM,
16267 STATIC_CHAIN_REGNUM, FUNCTION_VALUE_REGNO_P): Likewise.
16268 * config/m68k/m68k.md (FP_REG): New.
16269
16270 2007-04-15 Kazu Hirata <kazu@codesourcery.com>
16271
16272 * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit
16273 alignment on fido.
16274
16275 2007-04-15 Kazu Hirata <kazu@codesourcery.com>
16276
16277 * config/i386/i386.c, config/s390/s390.c, config/s390/s390.md,
16278 tree-ssa-loop-niter.c, tree-ssa-structalias.c, tree-vrp.c: Fix
16279 comment typos.
16280
16281 2007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
16282
16283 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore
16284 cold loops.
16285
16286 2007-04-14 Andrew Pinski <andrew_pinski@playstation.sony.com>
16287
16288 PR c/31520
16289 * c-decl.c (finish_decl): Grab the type of the decl after the call
16290 to store_init_value.
16291
16292 2007-04-14 Steven Bosscher <steven@gcc.gnu.org>
16293
16294 * common.opt (fforward-propagate): Fix "Optimization" annotation.
16295
16296 2007-04-14 Jakub Jelinek <jakub@redhat.com>
16297
16298 PR c++/25874
16299 * omp-low.c (expand_omp_parallel): If child_cfun->cfg, free
16300 dominators, post dominators and cleanup cfg before returning.
16301
16302 2007-04-14 Bernd Schmidt <bernd.schmidt@analog.com>
16303
16304 * config/bfin/bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
16305 * config/bfin/bfin.md (movsi_insn): Delete two unused alternatives.
16306
16307 2007-04-14 Kazu Hirata <kazu@codesourcery.com>
16308
16309 * config.gcc: Recognize fido.
16310 * config/m68k/m68k-devices.def (fidoa): New.
16311 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define
16312 __mfido__.
16313 (FL_FIDOA, TARGET_FIDOA): New.
16314 * config/m68k/m68k.opt (mfidoa): New.
16315
16316 2007-04-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16317
16318 PR middle-end/31322
16319 * dwarf2out.c (output_call_frame_info): Call assemble_external_libcall
16320 when a personality function is used.
16321
16322 2007-04-13 Bob Wilson <bob.wilson@acm.org>
16323
16324 * config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.
16325
16326 2007-04-13 Mike Stump <mrs@apple.com>
16327
16328 * config/darwin-c.c (handle_c_option): Handle -fapple-kext here so
16329 we can...
16330 * config/darwin.opt (fapple-kext): Make C++ only.
16331 * config/darwin.c (darwin_override_options): Remove code to ensure
16332 -fapple-kext is given for C++ only.
16333
16334 2007-04-13 Richard Sandiford <richard@codesourcery.com>
16335
16336 * config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
16337 * config/mips/mips.c (override_options): Call
16338 SUBTARGET_OVERRIDE_OPTIONS, if defined.
16339
16340 2007-04-13 H.J. Lu <hongjiu.lu@intel.com>
16341
16342 * config/i386/i386.opt (msvr3-shlib): Removed.
16343
16344 * doc/invoke.texi: Remove -msvr3-shlib.
16345
16346 2007-04-13 H.J. Lu <hongjiu.lu@intel.com>
16347
16348 * config/i386/i386.opt (mpopcnt): Replace "popcount" instruction
16349 with "popcnt" instruction.
16350
16351 2007-04-13 Richard Guenther <rguenther@suse.de>
16352
16353 PR tree-optimization/21258
16354 * tree-vrp.c (compare_case_labels): New helper.
16355 (find_switch_asserts): New function.
16356 (find_assert_locations): Call it for SWITCH_EXPRs.
16357
16358 2007-04-13 Uros Bizjak <ubizjak@gmail.com>
16359
16360 * config/i386/i386.h (X87_FLOAT_MODE_P): Check for TARGET_80387.
16361 * config/i386/i386.md (*cmpfp0): Remove check for TARGET_80387, this
16362 check is now implied in X87_FLOAT_MODE_P.
16363 (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
16364 (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
16365 (fix_trunc<mode>_i386_fisttp): Ditto.
16366 (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
16367 (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
16368 (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
16369 (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
16370 (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
16371 (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
16372 (unnamed_splitters): Ditto.
16373 * config/i386/i386.c (function_value_32): Generate FIRST_FLOAT_REG
16374 for X87_FLOAT_MODE_P mode. Override FIRST_FLOAT_REG with
16375 FIRST_SSE_REG for local functions when SSE math is enabled or
16376 for functions with sseregparm attribute.
16377 (standard_80387_constant_p): Return -1 if mode is not
16378 X87_FLOAT_MODE_P.
16379 (ix86_cc_mode): Assert that scalar mode is not DECIMAL_FLOAT_MODE_P.
16380 (ix86_expand_compare): Ditto.
16381 (ix86_expand_carry_flag_compare): Ditto.
16382 (ix86_expand_int_movcc): Check for SCALAR_FLOAT_MODE_P instead
16383 of FLOAT_MODE_P for cmp_mode and assert that cmp_mode is not
16384 DECIMAL_FLOAT_MODE_P.
16385 (ix86_preferred_output_reload_class): Use X87_FLOAT_MODE_P instead
16386 of SCALAR_FLOAT_MODE_P.
16387 (ix86_rtx_costs) [PLUS] Remove FLOAT_MODE_P and fall through to ...
16388 [MINUS]: ... here. Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P
16389 checks before FLOAT_MODE_P.
16390 [MULT]: Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P checks
16391 before FLOAT_MODE_P.
16392 [DIV]: Ditto.
16393 [NEG]: Ditto.
16394 [ABS]: Ditto.
16395 [SQRT]: Ditto.
16396 [FLOAT_EXTEND]: Use SSE_FLOAT_MODE_P.
16397
16398 2007-04-12 Paolo Bonzini <bonzini@gnu.org>
16399 Charles Wilson <libtool@cwilson.fastmail.fm>
16400
16401 * Makefile.in (stamp-as, stamp-collect-ld, stamp-nm): Remove.
16402 (libgcc.mvars): Don't depend on them.
16403 * configure.ac (as, collect-ld, nm): Create from exec-tool.in.
16404 * exec-tool.in: New.
16405
16406 2007-04-12 Brooks Moses <brooks.moses@codesourcery.com>
16407
16408 * doc/invoke.text (--help): Document --help=common.
16409
16410 2007-04-12 Thomas Neumann <tneumann@users.sourceforge.net>
16411
16412 * stub-objc.c (objc_build_keyword_decl): Avoid C++ keywords.
16413
16414 2007-04-12 Richard Sandiford <richard@codesourcery.com>
16415
16416 * Makefile.in (insn-emit.o): Depend on $(INTEGRATE_H).
16417 * genemit.c (main): Emit #include "integrate.h".
16418 * config/mips/mips-protos.h (SYMBOL_HALF): New mips_symbol_type.
16419 (LOADGP_RTP): New mips_loadgp_style.
16420 * config/mips/mips.h: Include config/vxworks-dummy.h.
16421 (TARGET_RTP_PIC): New macro.
16422 (TARGET_USE_GOT): Return true for TARGET_RTP_PIC.
16423 (TARGET_USE_PIC_FN_ADDR_REG): Return true for TARGET_VXWORKS_RTP.
16424 (ASM_OUTPUT_ADDR_DIFF_ELT): Emit function-relative case tables
16425 for TARGET_RTP_PIC.
16426 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Define. Pass down
16427 -mvxworks-pic when using -mrtp and a PIC option.
16428 * config/mips/mips.c (mips_classify_symbol): Return SYMBOL_GOT_DISP
16429 for RTP PIC.
16430 (mips_symbolic_constant_p, mips_symbolic_address_p)
16431 (mips_symbol_insns): Handle SYMBOL_HALF.
16432 (override_options): Warn about -G and -mrtp being used together.
16433 Initialize mips_lo_relocs[SYMBOL_HALF].
16434 (mips_current_loadgp_style): Return LOADGP_RTP for RTP PIC.
16435 (mips_emit_loadgp): Handle LOADGP_RTP.
16436 (mips_in_small_data_p): Return false for TARGET_VXWORKS_RTP.
16437 * config/mips/mips.md (loadgp_rtp): New insn and splitter.
16438 (tablejump): Handle function-relative case table entries if
16439 TARGET_RTP_PIC.
16440 * config/mips/predicates.md (symbol_ref_operand): New predicate.
16441
16442 2007-04-12 Richard Sandiford <richard@codesourcery.com>
16443
16444 * config/mips/mips.md (load_call<mode>): Allow any general register.
16445 destination.
16446 (sibcall_value_internal, sibcall_value_multiple_internal)
16447 (call_value_internal, call_value_split, call_value_multiple_internal)
16448 (call_value_multiple_split): Remove constraints from operand 0.
16449
16450 2007-04-12 Richard Sandiford <richard@codesourcery.com>
16451
16452 * config/mips/mips-protos.h: In comments, refer to loadgp_absolute
16453 rather than loadgp_noshared.
16454 * config/mips/mips.c (mips_emit_loadgp): Use gen_loadgp_absolute
16455 instead of gen_loadgp_noshared. Use gen_loadgp_newabi instead of
16456 gen_loadgp.
16457 * config/mips/mips.md (loadgp): Rename to...
16458 (loadgp_newabi): ...this.
16459 (loadgp_noshared): Rename to...
16460 (loadgp_absolute): ...this.
16461
16462 2007-04-12 Richard Sandiford <richard@codesourcery.com>
16463
16464 * config/mips/mips.c (mips_ok_for_lazy_binding_p): Always return
16465 false for locally-binding symbols.
16466 (mips_dangerous_for_la25_p): Check mips_global_symbol_p.
16467
16468 2007-04-12 Richard Sandiford <richard@codesourcery.com>
16469
16470 * config/mips/mips-protos.h (SYMBOL_GOT_LOCAL): Rename to...
16471 (SYMBOL_GOT_PAGE_OFST): ...this.
16472 (SYMBOL_GOT_GLOBAL): Rename to...
16473 (SYMBOL_GOT_DISP): ...this.
16474 (SYMBOL_GOTOFF_GLOBAL): Rename to...
16475 (SYMBOL_GOTOFF_DISP): ...this. Update comments accordingly.
16476 * config/mips/mips.c (mips_global_symbol_p): New function.
16477 (mips_symbol_binds_local_p): Likewise.
16478 (mips_classify_symbol): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP
16479 and SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST. Use
16480 mips_global_symbol_p and mips_symbol_binds_local_p.
16481 (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
16482 (override_options): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP,
16483 SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST and SYMBOL_GOTOFF_GLOBAL to
16484 SYMBOL_GOTOFF_DISP.
16485 (mips_ok_for_lazy_binding_p): New function.
16486 (mips_load_call_address, mips_expand_call): Use it.
16487 (mips_dangerous_for_la25_p): Likewise.
16488 * config/mips/mips.md (*xgot_hi<mode>, *xgot_lo<mode>)
16489 (*got_disp<mode>): Use got_disp_operand instead of
16490 global_got_operand. Use SYMBOL_GOTOFF_DISP instead of
16491 SYMBOL_GOTOFF_GLOBAL.
16492 (*got_page<mode>): Use got_page_ofst_operand instead of
16493 local_got_operand.
16494 * config/mips/predicates.md (const_call_insn_operand): Use
16495 SYMBOL_GOT_DISP instead of SYMBOL_GOT_GLOBAL.
16496 (global_got_operand): Rename to...
16497 (got_disp_operand): ...this and use SYMBOL_GOT_DISP instead of
16498 SYMBOL_GOT_GLOBAL.
16499 (local_got_operand): Rename to...
16500 (got_page_ofst_operand): ...this and use SYMBOL_GOT_PAGE_OFST instead
16501 of SYMBOL_GOT_LOCAL.
16502
16503 2007-04-12 Richard Sandiford <richard@codesourcery.com>
16504
16505 * config/mips/mips.h (TARGET_SPLIT_CALLS): Check
16506 TARGET_CALL_CLOBBERED_GP.
16507 (TARGET_SIBCALLS): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
16508 (TARGET_USE_GOT, TARGET_CALL_CLOBBERED_GP): New macros.
16509 (TARGET_CALL_SAVED_GP, TARGET_USE_PIC_FN_ADDR_REG): Likewise.
16510 (STARTING_FRAME_OFFSET): Check TARGET_CALL_CLOBBERED_GP instead
16511 of TARGET_ABICALLS && !TARGET_NEWABI.
16512 (MIPS_CALL): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
16513 * config/mips/mips.c (mips_load_call_address): Check
16514 TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
16515 (mips_global_pointer): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
16516 Check TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
16517 (mips_save_reg_p): Check TARGET_CALL_SAVED_GP instead of
16518 TARGET_ABICALLS && TARGET_NEWABI.
16519 (mips_current_loadgp_style): Check TARGET_USE_GOT instead of
16520 TARGET_ABICALLS.
16521 (mips_expand_prologue): Check TARGET_OLDABI instead of !TARGET_NEWABI.
16522 (mips_expand_epilogue): Check TARGET_CALL_SAVED_GP instead of
16523 TARGET_ABICALLS && TARGET_NEWABI.
16524 (mips_output_mi_thunk): Check TARGET_USE_GOT instead of
16525 TARGET_ABICALLS. Check TARGET_CALL_SAVED_GP instead of
16526 TARGET_NEWABI. Use TARGET_USE_PIC_FN_ADDR_REG to decide
16527 whether indirect calls must use $25.
16528 (mips_extra_live_on_entry): Check TARGET_GOT instead of
16529 TARGET_ABICALLS.
16530 * config/mips/mips.md (jal_macro): Check flag_pic and
16531 TARGET_CALL_CLOBBERED_GP instead of TARGET_ABICALLS and TARGET_NEWABI.
16532 (builtin_setjmp_setup, builtin_longjmp): Check TARGET_USE_GOT
16533 instead of TARGET_ABICALLS.
16534 (exception_receiver): Check TARGET_CALL_CLOBBERED_GP instead of
16535 TARGET_ABICALLS && TARGET_OLDABI.
16536 (load_call<mode>): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
16537 (sibcall): In the comment above the define_insn, mention
16538 TARGET_USE_PIC_FN_ADDR_REG instead of TARGET_ABICALLS.
16539 * config/mips/constraints.md (c): Check TARGET_USE_PIC_FN_ADDR_REG
16540 instead of TARGET_ABICALLS.
16541
16542 2007-04-12 Bernd Schmidt <bernd.schmidt@analog.com>
16543
16544 * doc/md.texi (Blackfin family constraints): Document PA and PB.
16545 * config/bfin/bfin.h (CONST_OK_FOR_P): Handle PA and PB.
16546 (MACFLAGS_MATCH_P): New macro.
16547 * config/bfin/bfin.c (print_operand): Handle MACFLAG_IS_M.
16548 (bfin_secondary_reload): Treat EVEN_AREGS and ODD_AREGS like AREGS.
16549 * config/bfin/bfin.md (MACFLAG_IS_M): New constant. Renumber some of
16550 the other MACFLAG constants.
16551 (sum_of_accumulators, lshrpdi3, ashrpdi3): New patterns.
16552 (flag_machi): Tighten constraints. Renumber some of the operands.
16553 (flag_machi_acconly): Tighten constraints. Correct operand numbers in
16554 output template.
16555 (flag_machi_parts_acconly): New pattern.
16556 (flag_macinithi): Tighten constraints. Allow any accumulator to be
16557 used.
16558 (flag_macinit1hi): Tighten constraints.
16559 (flag_mul_macv2hi_parts_acconly): New pattern.
16560
16561 * config/bfin/lib1funcs.asm (___umulsi3_highpart, __smulsi3_highpart):
16562 Use a more efficient implementation.
16563 * config/bfin/bfin.md (umulsi3_highpart, smulsi3_highpart): Emit
16564 inline sequences when not optimizing for size.
16565
16566 * config/bfin/bfin.md (movhi_low2high, movhi_high2high, movhi_low2low,
16567 movhi_high2low): Delete, merge functionality into...
16568 (packv2hi): ... this pattern.
16569
16570 2007-02-11 Jie Zhang <jie.zhang@analog.com>
16571 * config/bfin/bfin.opt (msim): New option.
16572 (mcpu=): New option.
16573 * config/bfin/bfin-protos.h (enum bfin_cpu): New.
16574 (bfin_cpu_t): Typedef of enum bfin_cpu.
16575 (bfin_cpu_type): New declaration.
16576 * config/bfin/elf.h (STARTFILE_SPEC): Add support for
16577 -msim and -mcpu= options.
16578 (LIB_SPEC): Likewise.
16579 * config/bfin/bfin.c (bfin_cpu_type): Define.
16580 (bfin_handle_option): Handle -mcpu= option.
16581 * config/bfin/bfin.h (DEFAULT_CPU_TYPE): Define as BFIN_CPU_BF532.
16582 (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF531__, __ADSPBF532__,
16583 __ADSPBF533__ or __ADSPBF537__ according to the cpu type.
16584
16585 2007-04-12 Richard Sandiford <richard@codesourcery.com>
16586
16587 * config.gcc (*-*-vxworks*): Don't add to tm_files in this stanza.
16588 (arm-wrs-vxworks, mips-wrs-vxworks, powerpc-wrs-vxworks)
16589 (powerpc-wrs-vxworksae): Use ${tm_file}.
16590 (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add svr4.h
16591 after elfos.h. Remove i386/sysv4.h and add i386/vx-common.h.
16592 * config/i386/vx-common.h: New file.
16593
16594 2007-04-12 Richard Sandiford <richard@codesourcery.com>
16595
16596 * config/vxworks.h (VXWORKS_STARTFILE_SPEC): Use -l:crt0.o instead
16597 of crt0.o%s.
16598
16599 2007-04-12 Andreas Krebbel <krebbel1@de.ibm.com>
16600
16601 * config/s390/s390.md ("trunctddd2"): Use TDmode for the target of
16602 ldxtr.
16603
16604 2007-04-12 Douglas Gregor <doug.gregor@gmail.com>
16605
16606 PR c++/31078
16607 PR c++/31103
16608 * c-common.c (c_build_qualified_type): Set canonical type
16609 appropriately.
16610
16611 2007-04-12 Richard Guenther <rguenther@suse.de>
16612
16613 * tree-pretty-print.c (dump_generic_node): Print ARRAY_REF
16614 lower bound and element size if lower bound is not zero
16615 or either of the ARRAY_REF operands is set.
16616
16617 2007-04-12 Richard Guenther <rguenther@suse.de>
16618
16619 PR tree-optimization/24689
16620 PR tree-optimization/31307
16621 * fold-const.c (operand_equal_p): Compare INTEGER_CST array
16622 indices by value.
16623 * gimplify.c (canonicalize_addr_expr): To be consistent with
16624 gimplify_compound_lval only set operands two and three of
16625 ARRAY_REFs if they are not gimple_min_invariant. This makes
16626 it never at this place.
16627 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
16628
16629 2007-04-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16630
16631 * pa.c (pa_som_asm_init_sections): Ensure that cfun->machine is not
16632 null before emitting a .nsubspa directive.
16633
16634 2007-04-11 Diego Novillo <dnovillo@redhat.com>
16635
16636 * tree-ssa-alias.c (dump_mem_ref_stats): Do not call
16637 need_to_partition_p if there are no memory statements in the
16638 function.
16639
16640 2007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
16641
16642 * tree-data-ref.c (chrec_steps_divide_constant_p): Removed.
16643 (gcd_of_steps_may_divide_p): New function.
16644 (analyze_miv_subscript): Use gcd_of_steps_may_divide_p.
16645
16646 2007-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
16647
16648 * reload.c (find_reloads_toplev, find_reloads_address,
16649 find_reloads_address_1, find_reloads_subreg_address): Use rtx_equal_p,
16650 not a pointer equality test, to decide if we need to call
16651 push_reg_equiv_alt_mem.
16652
16653 2007-04-11 Sebastian Pop <sebastian.pop@inria.fr>
16654
16655 * tree-data-ref.c (affine_function_zero_p, constant_access_functions,
16656 insert_innermost_unit_dist_vector, add_distance_for_zero_overlaps):
16657 New.
16658 (build_classic_dist_vector): Call add_distance_for_zero_overlaps.
16659
16660 2007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
16661
16662 * tree-data-ref.c (add_multivariate_self_dist): Force the distance
16663 vector to be positive.
16664
16665 2007-04-11 Diego Novillo <dnovillo@redhat.com>
16666
16667 PR 30735
16668 PR 31090
16669 * doc/invoke.texi: Document --params max-aliased-vops and
16670 avg-aliased-vops.
16671 * tree-ssa-operands.h (get_mpt_for, dump_memory_partitions,
16672 debug_memory_partitions): Move to tree-flow.h
16673 * params.h (AVG_ALIASED_VOPS): Define.
16674 * tree-ssa-alias.c (struct mp_info_def): Remove. Update all
16675 users.
16676 (mp_info_t): Likewise.
16677 (get_mem_sym_stats_for): New.
16678 (set_memory_partition): Move from tree-flow-inline.h.
16679 (mark_non_addressable): Only clear the set of symbols for the
16680 partition if it exists.
16681 (dump_memory_partitions): Move from tree-ssa-operands.c
16682 (debug_memory_partitions): Likewise.
16683 (need_to_partition_p): New.
16684 (dump_mem_ref_stats): New.
16685 (debug_mem_ref_stats): New.
16686 (dump_mem_sym_stats): New.
16687 (debug_mem_sym_stats): New.
16688 (update_mem_sym_stats_from_stmt): New.
16689 (compare_mp_info_entries): New.
16690 (mp_info_cmp): Call it.
16691 (sort_mp_info): Change argument to a list of mem_sym_stats_t
16692 objects.
16693 (get_mpt_for): Move from tree-ssa-operands.c.
16694 (find_partition_for): New.
16695 (create_partition_for): Remove.
16696 (estimate_vop_reduction): New.
16697 (update_reference_counts): New.
16698 (build_mp_info): New.
16699 (compute_memory_partitions): Refactor.
16700 Document new heuristic.
16701 Call build_mp_info, update_reference_counts,
16702 find_partition_for and estimate_vop_reduction.
16703 (compute_may_aliases): Populate virtual operands before
16704 calling debugging dumps.
16705 (delete_mem_sym_stats): New.
16706 (delete_mem_ref_stats): New.
16707 (init_mem_ref_stats): New.
16708 (init_alias_info): Call it.
16709 (maybe_create_global_var): Remove alias_info argument.
16710 Get number of call sites and number of pure/const call sites
16711 from gimple_mem_ref_stats().
16712 (dump_alias_info): Call dump_memory_partitions first.
16713 (dump_points_to_info_for): Show how many times a pointer has
16714 been dereferenced.
16715 * opts.c (decode_options): For -O2 set --param
16716 max-aliased-vops to 500.
16717 For -O3 set --param max-aliased-vops to 1000 and --param
16718 avg-aliased-vops to 3.
16719 * fortran/options.c (gfc_init_options): Remove assignment to
16720 MAX_ALIASED_VOPS.
16721 * tree-flow-inline.h (gimple_mem_ref_stats): New.
16722 * tree-dfa.c (dump_variable): Dump memory reference
16723 statistics.
16724 Dump NO_ALIAS* settings.
16725 (referenced_var_lookup): Tidy.
16726 (mem_sym_stats): New.
16727 * tree-ssa-copy.c (may_propagate_copy): Return true if DEST
16728 and ORIG are different SSA names for a memory partition.
16729 * tree-ssa.c (delete_tree_ssa): Call delete_mem_ref_stats.
16730 * tree-flow.h (struct mem_sym_stats_d): Define.
16731 (mem_sym_stats_t): Define.
16732 (struct mem_ref_stats_d): Define.
16733 (struct gimple_df): Add field mem_ref_stats.
16734 (enum noalias_state): Define.
16735 (struct var_ann_d): Add bitfield noalias_state.
16736 (mem_sym_stats, delete_mem_ref_stats, dump_mem_ref_stats,
16737 debug_mem_ref_stats, debug_memory_partitions,
16738 debug_mem_sym_stats): Declare.
16739 * tree-ssa-structalias.c (update_alias_info): Update call
16740 sites, pure/const call sites and asm sites in structure
16741 returned by gimple_mem_ref_stats.
16742 Remove local variable IS_POTENTIAL_DEREF.
16743 Increase NUM_DEREFS if the memory expression is a potential
16744 dereference.
16745 Call update_mem_sym_stats_from_stmt.
16746 If the memory references memory, call
16747 update_mem_sym_stats_from_stmt for all the direct memory
16748 symbol references found.
16749 (intra_create_variable_infos): Set noalias_state field for
16750 pointer arguments according to the value of
16751 flag_argument_noalias.
16752 * tree-ssa-structalias.h (struct alias_info): Remove fields
16753 num_calls_found and num_pure_const_calls_found.
16754 (update_mem_sym_stats_from_stmt): Declare.
16755 * params.def (PARAM_MAX_ALIASED_VOPS): Change description.
16756 Set default value to 100.
16757 (PARAM_AVG_ALIASED_VOPS): Define.
16758
16759 2007-04-11 Richard Guenther <rguenther@suse.de>
16760
16761 PR middle-end/31530
16762 * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
16763 a * -b + c as c - a * b if we honor sign dependent rounding.
16764
16765 2007-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
16766
16767 * config/bfin/bfin-protos.h (bfin_expand_movmem): Renamed from
16768 bfin_expand_strmov.
16769 * config/bfin/bfin.c (bfin_expand_prologue, bfin_delegitimize_address,
16770 bfin_function_ok_for_sibcall, split_load_immediate): Remove unused
16771 variables.
16772 (initialize_trampoline): Don't use old-style function definition.
16773 (bfin_secondary_reload): Mark IN_P argument as unused.
16774
16775 2007-04-10 Sebastian Pop <sebastian.pop@inria.fr>
16776
16777 PR tree-optimization/31343
16778 * tree-chrec.h (chrec_zerop): Moved before build_polynomial_chrec.
16779 (build_polynomial_chrec): Return a scalar when the evolution is zero.
16780 * testsuite/gcc.dg/vect/pr31343.c: New.
16781
16782 2007-04-10 Eric Christopher <echristo@apple.com>
16783
16784 * config/i386/i386.h (X87_FLOAT_MODE_P): New.
16785 * config/i386/i386.md (*cmpfp0): Use.
16786 (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
16787 (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
16788 (fix_trunc<mode>_i386_fisttp): Ditto.
16789 (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
16790 (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
16791 (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
16792 (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
16793 (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
16794 (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
16795 (unnamed_splitters): Ditto.
16796 * config/i386/i386.c (output_fix_trunc): Assert that
16797 we're not being passed a TFmode operand.
16798
16799 2007-04-10 Zdenek Dvorak <dvorakz@suse.cz>
16800
16801 PR tree-optimization/31526
16802 * tree-inline.c (copy_cfg_body): Use last_basic_block instead of
16803 n_basic_blocks to find newly added blocks.
16804
16805 2007-04-10 Uros Bizjak <ubizjak@gmail.com>
16806
16807 * config/i386/i386.md (fix_trunc<mode>di_sse): Remove "x" from "xm"
16808 alternative.
16809 (fix_trunc<mode>si_sse): Ditto.
16810 (*floatsisf2_mixed, *floatsisf2_sse): Ditto.
16811 (*floatsidf2_mixed, *floatsidf2_sse): Ditto.
16812 (*floatdisf2_mixed, *floatdisf2_sse): Ditto.
16813 (*floatdidf2_mixed, *floatdidf2_sse): Ditto.
16814 (floathi<mode>2): Rename from floathisf2 and floathidf2. Macroize
16815 expander using SSEMODEF mode macro.
16816 (floatsi<mode>2): Rename from floatsisf2 and floashidf2. Macroize
16817 expander using SSEMODEF mode macro.
16818 (*floathi<mode>2_i387): Rename from *floathisf2_i387 and
16819 *floathidf2_i387. Macroize insn using X87MODEF12 mode macro.
16820 (*floatsi<mode>2_i387): Rename from *floatsisf2_i387 and
16821 *floatsidf2_i387. Macroize insn using X87MODEF12 mode macro.
16822 (*floatdi<mode>2_i387): Rename from *floatdisf2_i387 and
16823 *floatdidf2_i387. Macroize insn using X87MODEF12 mode macro.
16824 (float<mode>xf2): Rename from floathixf2, floatsixf2 and floatdixf2.
16825 Macroize insn using X87MODEF mode macro.
16826
16827 2007-04-09 H.J. Lu <hongjiu.lu@intel.com>
16828
16829 * config/i386/sse.md (sse2_pinsrw): Removed.
16830 (sse2_pextrw): Renamed to ...
16831 (*sse2_pextrw): This.
16832
16833 2007-04-09 Jan Hubicka <jh@suse.cz>
16834
16835 PR target/27869
16836 * config/i386/sse.md
16837 (sse_vmaddv4sf3, sse_vmmulv4sf3): Remove '%' modifier.
16838 (sse_vmsmaxv4sf3_finite, sse_vmsminv4sf3_finite): Remove.
16839 (sse2_vmaddv2df3, sse2_vmmulv2df3): Remove '%' modifier.
16840 (sse2_vmsmaxv2df3_finite, sse2_vmsminv2df3_finite): Remove.
16841
16842 2007-04-09 Jan Hubicka <jh@suse.cz>
16843
16844 * tree-ssa-ccp (maybe_fold_offset_to_component_ref): Recurse into
16845 multiple fields of union.
16846
16847 2007-04-09 Zdenek Dvorak <dvorakz@suse.cz>
16848
16849 * cfgloopmanip.c (create_preheader): Do not use loop_preheader_edge.
16850 (create_preheaders): Check that loops are available.
16851 (fix_loop_structure): Clean up, improve comments.
16852 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa):
16853 Check that loops are available. Set LOOP_CLOSED_SSA to the loops
16854 state flags.
16855 * tree-scalar-evolution.c (scev_finalize): Clear scalar_evolution_info.
16856 * predict.c (tree_estimate_probability): Do not call
16857 calculate_dominance_info. Call create_preheaders.
16858 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Only call
16859 rewrite_into_loop_closed_ssa if LOOP_CLOSED_SSA is set in loops state
16860 flags.
16861 * cfgloop.c (loop_preheader_edge): Assert that loops have preheaders.
16862 * cfgloop.h (LOOP_CLOSED_SSA): New constant.
16863 * tree-cfg.c (tree_split_edge): Make an assert more precise.
16864 * tree-ssa-threadedge.c (thread_across_edge): Comment the function
16865 arguments.
16866
16867 2007-04-08 Jan Hubicka <jh@suse.cz>
16868
16869 * tree.h (maybe_fold_offset_to_component_ref): Declare.
16870 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Export.
16871 * fold-const.c (fold_unary): Use it.
16872
16873 2007-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
16874
16875 * varasm.c (assemble_variable): Remove call to
16876 lang_hooks.decls.prepare_assemble_variable.
16877 * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): Kill.
16878 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE.
16879 * langhooks.h (lang_hooks_for_decls): Remove
16880 prepare_assemble_variable.
16881
16882 2007-04-08 Mike Stump <mrs@apple.com>
16883
16884 * config/i386/i386.c: Use inc/dec on Core2.
16885
16886 2007-04-08 Steven Bosscher <steven@gcc.gnu.org>
16887
16888 * langhooks.c (lhd_tree_inlining_add_pending_fn_decls,
16889 lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
16890 lhd_tree_inlining_end_inlining): Remove.
16891 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove then
16892 add_pending_fn_decls, anon_aggr_type_p, start_inlining, and
16893 end_inlining hooks.
16894 * langhooks-def.h (lhd_tree_inlining_add_pending_fn_decls,
16895 lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
16896 lhd_tree_inlining_end_inlining): Remove prototypes.
16897 (LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS,
16898 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
16899 LANG_HOOKS_TREE_INLINING_START_INLINING,
16900 LANG_HOOKS_TREE_INLINING_END_INLINING): Remove.
16901
16902 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Do
16903 not set it.
16904
16905 2007-04-08 Anatoly Sokolov <aesok@post.ru>
16906
16907 PR target/29932
16908 * config/avr/predicates.md (io_address_operand): Delete predicate.
16909 (low_io_address_operand): Don't use 'mode' argument.
16910 (higth_io_address_operand): Rename ...
16911 (high_io_address_operand): ... to this. Don't use 'mode' argument.
16912 * config/avr/avr.md (*sbix_branch_tmp, *sbix_branch_tmp_bit7): Adjust
16913 for above change.
16914
16915 2007-04-07 Daniel Berlin <dberlin@dberlin.org>
16916
16917 Revert change removing staticp.
16918
16919 2007-04-07 Anatoly Sokolov <aesok@post.ru>
16920
16921 PR target/30289
16922 * config/avr/avr.md (*clrmemqi, *clrmemhi): Mark operand 4 as
16923 earlyclobber.
16924
16925 2007-04-07 Bruce Korb <bkorb@gnu.org>
16926
16927 * c.opt: Add -Wformat-contains-nul.
16928 * c-format.c (set_Wformat): Set warn_format_contains_nul to the
16929 -Wformat setting.
16930 (check_format_info_main): Check OPT_Wformat_contains_nul before emitting
16931 the NUL byte warning.
16932
16933 2007-04-07 H.J. Lu <hongjiu.lu@intel.com>
16934
16935 * config/i386/i386.c (ix86_handle_option): Handle SSSE3.
16936
16937 2007-04-06 Daniel Berlin <dberlin@dberlin.org>
16938
16939 * tree.c (staticp): No longer use staticp langhook.
16940 * langhooks.c (lhd_staticp): Removed.
16941 * langhooks.h (struct lang_hooks): Remove staticp.
16942 * c-common.c (c_staticp): Remove.
16943 * c-common.h (c_staticp): Ditto.
16944 * langhooks-defs.h (lhd_staticp): Ditto.
16945 (LHD_HOOKS_STATICP): Ditto
16946 * tree.h (gcc_assert_lowered): New macro.
16947
16948 2007-04-06 Zdenek Dvorak <dvorakz@suse.cz>
16949
16950 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Add and use
16951 argument "reliable".
16952 (infer_loop_bounds_from_ref, infer_loop_bounds_from_array):
16953 Add argument "reliable". Propagate it through calls.
16954 (infer_loop_bounds_from_undefined): Derive number of iterations
16955 estimates from references in blocks that do not dominate loop latch.
16956 (gcov_type_to_double_int): New function.
16957 (estimate_numbers_of_iterations_loop): Use gcov_type_to_double_int
16958 and expected_loop_iterations_unbounded.
16959 * cfgloopanal.c (expected_loop_iterations_unbounded): New function.
16960 (expected_loop_iterations): Use expected_loop_iterations_unbounded.
16961 * tree-data-ref.c (estimated_loop_iterations): Export.
16962 (get_references_in_stmt): Fix -- do not return addresses of local
16963 objects.
16964 * cfgloop.h (expected_loop_iterations_unbounded,
16965 estimated_loop_iterations): Declare.
16966
16967 2007-04-06 Andreas Tobler <a.tobler@schweiz.org>
16968
16969 * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
16970
16971 2007-04-06 Uros Bizjak <ubizjak@gmail.com>
16972
16973 * config/i386/i386.md (extend<mode>xf2): Rename from extendsfxf2
16974 and extenddfxf2. Macroize expander using X87MODEF12 mode macro.
16975 (*truncdfsf_mixed, *truncdfsf_i387, *truncdfsf2_i387_1):
16976 Use output_387_reg_move().
16977 (*truncxf<mode>2): Rename from *truncxfsf2 and truncxfdf2. Macroize
16978 expander using X87MODEF12 mode macro.
16979 (*truncxfsf2_mixed): Combine alternatives, ignore "r" alternative when
16980 choosing register preferences. Use output_387_reg_move().
16981 (*truncxfdf2_mixed): Combine alternatives, use "r" alternative
16982 instead of "x". Use output_387_reg_move().
16983 (*truncxf<mode>2_i387_noop): Rename from *truncxfsf2_i387_noop and
16984 *truncxfdf2_i387_noop. Macroize insn using X87MODEF12 mode macro.
16985 (*truncxf<mode>2_i387): Rename from *truncxfsf2_i387 and
16986 *truncxfdf2_i387. Macroize insn using X87MODEF12 mode macro.
16987 Use output_387_reg_move().
16988 (*truncxf?f_mixed splitter): Macroize splitter using X87MODEF12
16989 mode macro.
16990 (*truncxf?f_i387 splitter): Ditto.
16991
16992 2007-04-06 Daniel Berlin <dberlin@dberlin.org>
16993
16994 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
16995 LANG_HOOKS_SAFE_FROM_P.
16996 * expr.c (safe_from_p): Remove langhook call.
16997 * langhooks.h (lang_hooks): Remove safe_from_p.
16998 (lhd_safe_from_p): Remove prototype.
16999 * langhooks.c (lhd_safe_from_p): Remove.
17000
17001 2007-04-06 Jan Hubicka <jh@suse.cz>
17002
17003 * cgraphunit.c (decide_is_function_needed): Do not keep always_inline
17004 functions.
17005
17006 2007-04-06 Uros Bizjak <ubizjak@gmail.com>
17007
17008 * config/i386/i386.c (output_387_reg_move): Handle memory operand[0].
17009 * config/i386/i386.md (*movsf_1, *movdf_nointeger,
17010 *movdf_integer_rex64, *movdf_integer, *movxf_nointeger,
17011 *movxf_integer): Use output_387_reg_move() for x87 reg->mem
17012 alternative.
17013 (*extendsfdf2_mixed, *extendsfdf2_i387, *extendsfxf2_i387,
17014 *extenddfxf2_i387, *truncdfsf_fast_mixed): Ditto.
17015
17016 2007-04-05 Richard Henderson <rth@redhat.com>
17017
17018 * config/alpha/alpha.c (print_operand) [+]: Remove.
17019 (alpha_end_function): Print nop if call at end of function.
17020 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Remove +.
17021 * config/alpha/alpha.md (UNSPEC_LDGP1): New.
17022 (call_osf_1_er_noreturn, call_value_osf_1_er_noreturn): New.
17023 (call_osf_2_er_nogp, call_value_osf_2_er_nogp): New.
17024 (call_osf_2_er, call_value_osf_2_er): Merge the ldgp highpart into
17025 the call pattern. Update peepholes to match.
17026
17027 2007-04-05 Janis Johnson <janis187@us.ibm.com>
17028
17029 * doc/extend.texi (Other Builtins): Add decimal float variants
17030 of signbit.
17031 * builtins.def: Ditto.
17032 * builtins.c (expand_builtin): Ditto.
17033
17034 2007-04-05 Uros Bizjak <ubizjak@gmail.com>
17035 H.J. Lu <hongjiu.lu@intel.com>
17036
17037 PR target/31478
17038 * config/i386/sse.md (sse2_umulv2siv2di3): Use V4SImode instead
17039 of V8HImode when calling ix86_binary_operator_ok.
17040 (sse2_pmaddwd): Call ix86_binary_operator_ok.
17041 (sdot_prodv8hi): Operands 1 and 2 must be register.
17042
17043 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
17044
17045 * tree-sra.c (try_instantiate_multiple_fields): Needlessly
17046 initialize align to silence bogus warning.
17047
17048 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
17049
17050 PR middle-end/22156
17051 * tree-sra.c (struct sra_elt): Add in_bitfld_block. Remove
17052 all_no_warning.
17053 (struct sra_walk_fns): Remove use_all parameter from use.
17054 (sra_hash_tree): Handle BIT_FIELD_REFs.
17055 (sra_elt_hash): Don't hash bitfld blocks.
17056 (sra_elt_eq): Skip them in parent compares as well. Handle
17057 BIT_FIELD_REFs.
17058 (sra_walk_expr): Don't maintain or pass down use_all_p.
17059 (scan_use): Remove use_all parameter.
17060 (scalarize_use): Likewise. Re-expand assignment to
17061 BIT_FIELD_REF of gimple_reg. De-scalarize before input or
17062 output, and re-scalarize after output. Don't mark anything
17063 for no warning.
17064 (scalarize_ldst): Adjust.
17065 (scalarize_walk_gimple_modify_statement): Likewise.
17066 (build_element_name_1): Handle BIT_FIELD_REFs.
17067 (instantiate_element): Don't warn for any element whose parent
17068 is used as a whole.
17069 (instantiate_missing_elements_1): Return the sra_elt.
17070 (canon_type_for_field): New.
17071 (try_instantiate_multiple_fields): New.
17072 (instantiate_missing_elemnts): Use them.
17073 (mark_no_warning): Removed.
17074 (generate_one_element_ref): Handle BIT_FIELD_REFs.
17075 (REPLDUP, sra_build_elt_assignment): New.
17076 (generate_copy_inout): Use them.
17077 (generate_element_copy): Likewise. Handle bitfld differences.
17078 (generate_element_zero): Don't recurse for blocks. Use
17079 sra_build_elt_assignment.
17080 (generate_one_element_int): Take elt instead of var. Use
17081 sra_build_elt_assignment.
17082 (generate_element_init_1): Adjust.
17083 (scalarize_use, scalarize_copy): Use REPLDUP.
17084 (scalarize_ldst): Move assert before dereference.
17085 (dump_sra_elt_name): Handle BIT_FIELD_REFs.
17086
17087 2007-04-05 Steven Bosscher <steven@gcc.gnu.org>
17088
17089 * regmove.c: Fix unused variable warnings due to previous commit.
17090
17091 2007-04-05 Steven Bosscher <steven@gcc.gnu.org>
17092
17093 * regmove.c (STACK_GROWS_DOWNWARD): Don't boolean-ize.
17094 (regmove_bb_head): Remove.
17095 (copy_src_to_dest): Don't update regmove_bb_head and BB_HEAD.
17096 (regmove_optimize): Don't do unnecessary CFG fixes for non-existing
17097 problems with fixup_match_1.
17098 Don't initialize/free regmove_bb_head.
17099
17100 (reg_is_remote_constant_p): If an insn is in the same basic block
17101 but not before INSN, consider it remote, too.
17102
17103 2007-04-05 Anatoly Sokolov <aesok@post.ru>
17104
17105 PR target/25448
17106 * config/avr/avr.c (avr_handle_fndecl_attribute): Use the
17107 DECL_ASSEMBLER_NAME, not the DECL_NAME.
17108
17109 2007-04-05 H.J. Lu <hongjiu.lu@intel.com>
17110
17111 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Reformat.
17112 (CONDITIONAL_REGISTER_USAGE): Likewise.
17113
17114 2007-04-04 Richard Henderson <rth@redhat.com>
17115
17116 * config/alpha/lib1funcs.asm: Remove unused file.
17117
17118 2007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
17119
17120 PR other/31356
17121 * opts.c (print_specific_help): Fix --help=<language>
17122 header line.
17123 (common_handle_option): Support --help=common.
17124
17125 2007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
17126
17127 PR other/31353
17128 * gcc.c (main): Do not run the linker if
17129 print_subprocess_help indicates that it shouldn't be
17130 run.
17131
17132 2007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
17133
17134 PR doc/31355
17135 * doc/invoke.texi (--help=): Document <languages> value, fix
17136 formatting in tables of values.
17137
17138 2007-04-04 Danny Smith <dannysmith.users.sourceforge.net>
17139
17140 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Don't ignore
17141 dllimport attribute of virtual methods.
17142
17143 2007-04-04 Chen Liqin <liqin@sunnorth.com.cn>
17144
17145 * config/score/crti.asm: Change _bss_start to __bss_start.
17146 * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Added.
17147 (OUTGOING_REG_PARM_STACK_SPACE) update.
17148 * config/score/score.opt: add options to make backend support
17149 score5, score5u, score7 and score7d.
17150 * config/score/score.md: Likewise.
17151 * config/score/misc.md: Likewise.
17152 * config/score/mac.md: Likewise.
17153 * doc/invoke.texi: Likewise.
17154 * doc/md.texi: update constraints define.
17155
17156 2007-04-03 Richard Henderson <rth@redhat.com>
17157
17158 * expr.c (store_expr): If get_signed_or_unsigned_type doesn't yield
17159 an appropriate type, use the mode instead.
17160
17161 2007-04-03 Richard Sandiford <richard@codesourcery.com>
17162
17163 * config.gcc (mips-wrs-vxworks): Add vx-common.h to tm_file.
17164 Set the default --with-arch setting to mips2.
17165 * config/mips/t-vxworks (MULTILIB_OPTIONS, MULTILIB_MATCHES)
17166 (MULTILIB_EXCEPTIONS): Redefine with new multilibs.
17167 (MULTILIB_OSDIRNAMES): Delete.
17168 (MULTILIB_DIRNAMES): Define.
17169 * config/mips/vxworks.h (LINK_SPEC): Add VXWORKS_LINK_SPEC.
17170 (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Define.
17171 (TARGET_OS_CPP_BUILTINS): Incorporate old SUBTARGET_CPP_SPEC
17172 definitions, except for _WRS_R3K_EXC_SUPPORT. Call
17173 VXWORKS_OS_CPP_BUILTINS.
17174 (SUBTARGET_CPP_SPEC): Redefine to VXWORKS_ADDITIONAL_CPP_SPEC.
17175 (MIPS_DEBUGGING_INFO): Undefine.
17176 (FUNCTION_PROFILER): Define to VXWORKS_FUNCTION_PROFILER.
17177
17178 2007-04-03 Jakub Jelinek <jakub@redhat.com>
17179
17180 PR middle-end/30704
17181 * fold-const.c (native_encode_real): Encode real.c provided longs
17182 as a series of 32-bit native integers.
17183 (native_interpret_real): Interpret buffer as a series of 32-bit
17184 native integers.
17185
17186 2007-04-03 Richard Guenther <rguenther@suse.de>
17187
17188 * genpreds.c (write_insn_constraint_len): Write function
17189 optimized for CONSTRAINT_LEN implementation.
17190 (write_tm_preds_h): Output insn_constraint_len inline and
17191 use it for CONSTRAINT_LEN.
17192 (write_insn_preds_c): Don't output insn_constraint_len.
17193 * doc/md.texi (define_register_constraint): Document multi-letter
17194 constraints shall have the same length if they start with the same
17195 letter.
17196
17197 2007-04-03 Uros Bizjak <ubizjak@gmail.com>
17198
17199 PR target/31175
17200 * config/i386/i386.md (isinf<mode>2): Expand only when
17201 TARGET_C99_FUNCTIONS is set.
17202
17203 2007-04-03 Uros Bizjak <ubizjak@gmail.com>
17204
17205 * config.gcc (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file.
17206 (x86_64-*-linux*): Ditto.
17207 * config/i386/i386.opt (mpc): New option.
17208 * config/i386/i386.c (overrride_options): Handle
17209 ix87_precision_string.
17210 * config/i386/crtprec.c: New file.
17211 * config/i386/t-crtpc: Ditto.
17212 * config/i386/linux.h (ENDFILE_SPEC): Add handling of -mpc32, -mpc64
17213 and -mpc80 options.
17214 * config/i386/linux64.h (ENDFILE_SPEC): Ditto.
17215 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
17216 crtprec32.o, crtprec64.o and crtprec80.o.
17217
17218 * doc/invoke.texi (Machine Dependent Options): Add -mpc32, -mpc64
17219 and -mpc80 options.
17220 (i386 and x86-64 Options): Document -mpc32, -mpc64 and -mpc80 options.
17221
17222 2007-04-02 Eric Christopher <echristo@apple.com>
17223
17224 * doc/invoke.texi (i386 and x86-64 Options): Document -m64
17225 limitations on darwin.
17226
17227 2007-04-02 Anatoly Sokolov <aesok@post.ru>
17228
17229 PR target/31137
17230 * config/avr/avr.c (avr_rtx_costs): Add missing 'break' statements.
17231
17232 2007-04-02 Dave Korn <dave.korn@artimi.com>
17233
17234 * doc/tm.texi (FUNCTION_MODE): Update and extend documentation.
17235
17236 2007-04-02 Dave Korn <dave.korn@artimi.com>
17237
17238 * libgcc2.h (exception_descriptor): Don't forward-declare.
17239 (__get_eh_table_language, __get_eh_table_version): Delete
17240 prototypes of long-dead functions.
17241
17242 2007-04-01 Daniel Berlin <dberlin@dberlin.org>
17243
17244 * ebitmap.h: New file
17245 * ebitmap.c: New file
17246 * Makefile.in (ebitmap.o): New target.
17247
17248 2007-04-01 Jan Hubicka <jh@suse.cz>
17249
17250 * emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit
17251 before very first instruction.
17252
17253 2007-04-01 Jan Hubicka <jh@suse.cz>
17254
17255 * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
17256 waring on 64bit hosts.
17257 * bitmap.h: Fix typo in bitmap_head_def.
17258
17259 2007-04-01 Steven Bosscher <steven@gcc.gnu.org>
17260
17261 PR rtl-optimization/31391
17262 * cfgcleanup.c (try_optimize_cfg): If a removed label is turned
17263 into a DELETED_LABEL note, and the label is in an empty basic
17264 block, update BB_END as well as BB_HEAD.
17265
17266 2007-04-01 Richard Henderson <rth@redhat.com>
17267
17268 PR tree-optimization/31169
17269 * tree-vrp.c (extract_range_from_binary_expr) <RSHIFT_EXPR>: Drop
17270 to varying if the range is outside [0, prec-1].
17271
17272 2007-04-01 Richard Sandiford <richard@codesourcery.com>
17273
17274 PR target/31388
17275 * config/mips/mips.md (load_const_gp): New insn.
17276 * config/mips/mips.c (mips_split_symbol): Avoid using or creating
17277 the MIPS16 GP pseudo register if no_new_pseudos.
17278 (mips16_gp_pseudo_reg): Use gen_load_const_gp.
17279
17280 2007-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
17281
17282 PR target/31364
17283 * config/rs6000/rs6000.md (call): Convert to LR hard reg for
17284 secureplt.
17285 (call_value): Likewise.
17286
17287 2007-03-31 Wolfgang Bangerth <bangerth@dealii.org>
17288 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
17289
17290 PR 14737
17291 * doc/invoke.texi: (optimization options): Reword description
17292 of -ffast-math. Document its primary purpose.
17293
17294 2007-03-31 Richard Guenther <rguenther@suse.de>
17295
17296 * omp-low.c (splay-tree.h): Include.
17297 (lookup_decl): Replace splay-tree usage by pointer-map.
17298 (maybe_lookup_decl): Likewise.
17299 (new_omp_context): Likewise.
17300 (delete_omp_context): Likewise.
17301 * gimplify.c (splay-tree.h): Include.
17302 * tree-inline.c (insert_decl_map): Replace splay-tree usage by
17303 pointer-map.
17304 (remap_ssa_name): Likewise.
17305 (remap_decl): Likewise.
17306 (remap_type_1): Likewise.
17307 (remap_type): Likewise.
17308 (copy_body_r): Likewise.
17309 (expand_call_inline): Likewise.
17310 (clone_body): Likewise.
17311 (copy_tree_r): Likewise.
17312 (remap_save_expr): Likewise.
17313 (unsave_r): Likewise.
17314 (unsave_expr_now): Likewise.
17315 (tree_function_versioning): Likewise.
17316 (build_duplicate_type): Likewise.
17317 * tree-inline.h (pointer-set.h): Include instead of splay-tree.h.
17318 (struct copy_body_data): Replace splay-tree by pointer-map.
17319 * Makefile.in (TREE_INLINE_H): Depend on pointer-map.h,
17320 not $(SPLAY_TREE_H).
17321 (gimplify.o): Depend on $(SPLAY_TREE_H).
17322 (omp-low.p): Likewise.
17323
17324 2007-03-31 Anatoly Sokolov <aesok@post.ru>
17325
17326 * config/avr/predicates.md (even_register_operand,
17327 odd_register_operand): New predicates.
17328 * config/avr/avr.md (movw peephole2): New.
17329 (movw_r peephole2): New.
17330
17331 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
17332
17333 * tree.h (get_signed_or_unsigned_type): New.
17334 * fold-const.c (operand_equal_for_comparison_p): Use
17335 get_signed_or_unsigned_type instead of
17336 lang_hooks.types.signed_or_unsigned_type.
17337 * expr.c (store_expr): Ditto.
17338 * langhooks.c (get_signed_or_unsigned_type): New.
17339 (lhd_signed_or_unsigned_type): New.
17340 * langhooks.h (lhd_signed_or_unsigned_type): New.
17341 * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
17342
17343 2007-03-30 Richard Henderson <rth@redhat.com>
17344
17345 * tree-ssa-loop-ivopts.c: Include target.h.
17346 (produce_memory_decl_rtl): Pass the rtx through encode_section_info.
17347 (get_address_cost): Force SYMBOL_FLAG_LOCAL set.
17348 (force_expr_to_var_cost): Use produce_memory_decl_rtl.
17349 * Makefile.in (tree-ssa-loop-ivopts.o): Depend on TARGET_H.
17350
17351 2007-03-30 Richard Henderson <rth@redhat.com>
17352 Kai Tietz <kai.tietz@onevision.com>
17353
17354 * config/i386/cygming.h (DWARF2_DEBUGGING_INFO): Enable by
17355 default for 64-bit.
17356 (PREFERRED_DEBUGGING_TYPE): Prefer dwarf2 for 64-bit.
17357 (TARGET_64BIT_MS_ABI): New.
17358 (DBX_REGISTER_NUMBER): Handle 64-bit.
17359 (SIZE_TYPE, PTRDIFF_TYPE): Use long long for 64-bit.
17360 (LONG_TYPE_SIZE): Force to 32.
17361 (REG_PARM_STACK_SPACE): New.
17362 (OUTGOING_REG_PARM_STACK_SPACE): New.
17363 (REGPARM_MAX, SSE_REGPARM_MAX): New.
17364 (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
17365 (STACK_BOUNDARY): Use 128 for 64-bit.
17366 * config/i386/cygwin.asm: Use push/ret to preserve call stack.
17367 Add 64-bit implementation.
17368 * config/i386/gthr-win32.c (__gthr_win32_key_create): Mark dtor
17369 argument unused.
17370 * config/i386/i386.c (x86_64_ms_abi_int_parameter_registers): New.
17371 (override_options): Set ix86_cmodel for TARGET_64BIT_MS_ABI.
17372 Warn for -mregparm, -mrtd in 64-bit mode; force ix86_regparm
17373 for 64-bit; use TARGET_SUBTARGET64_DEFAULT.
17374 (ix86_handle_cconv_attribute): Don't warn when ignoring if
17375 TARGET_64BIT_MS_ABI.
17376 (ix86_function_arg_regno_p): Handle TARGET_64BIT_MS_ABI.
17377 (ix86_pass_by_reference): Likewise.
17378 (ix86_function_value_regno_p): Likewise.
17379 (ix86_build_builtin_va_list): Likewise.
17380 (ix86_va_start, ix86_gimplify_va_arg): Likewise.
17381 (function_arg_advance_ms_64): New.
17382 (function_arg_advance): Call it.
17383 (function_arg_ms_64): New.
17384 (function_arg): Call it.
17385 (function_value_ms_64): New.
17386 (ix86_function_value_1): Call it.
17387 (return_in_memory_ms_64): New.
17388 (ix86_return_in_memory): Call it.
17389 (setup_incoming_varargs_ms_64): New.
17390 (ix86_setup_incoming_varargs): Call it.
17391 (ix86_expand_prologue): Handle 64-bit stack probing.
17392 (legitimize_pic_address): Handle TARGET_64BIT_MS_ABI.
17393 (output_pic_addr_const): Likewise.
17394 (x86_this_parameter): Likewise.
17395 (x86_output_mi_thunk): Likewise.
17396 (x86_function_profiler): Likewise.
17397 (TARGET_STRICT_ARGUMENT_NAMING): New.
17398 * config/i386/i386.h (TARGET_SUBTARGET64_DEFAULT): New.
17399 (TARGET_64BIT_MS_ABI): New.
17400 (CONDITIONAL_REGISTER_USAGE): Handle TARGET_64BIT_MS_ABI.
17401 * config/i386/i386.md (allocate_stack_worker): Remove.
17402 (allocate_stack_worker_32): Rename from allocate_stack_worker_1;
17403 describe the clobber of eax without a match_scratch.
17404 (allocate_stack_worker_postreload): Remove.
17405 (allocate_stack_worker_64): Rename from allocate_stack_worker_rex64;
17406 describe the clobbers of rax, r10, r11 properly; use __chkstk symbol.
17407 (allocate_stack_worker_rex64_postreload): Remove.
17408 (allocate_stack): Handle 64-bit.
17409 * config/i386/i386elf (TARGET_SUBTARGET_DEFAULT): Remove.
17410 * config/i386/mingw32.h (TARGET_VERSION): Set correctly for 64-bit.
17411 (EXTRA_OS_CPP_BUILTINS): Handle 64-bit.
17412 (STANDARD_INCLUDE_DIR): Handle TARGET_64BIT_DEFAULT.
17413 (STANDARD_STARTFILE_PREFIX_1): Likewise.
17414 * config/i386/unix.h (TARGET_SUBTARGET64_DEFAULT): New.
17415 * config.build (x86_64-*-mingw*): New host.
17416 * config.host (x86_64-*-mingw*): New host.
17417 * config.gcc (x86_64-*-mingw*): New target.
17418 * gthr-win32.h (__gthread_key_create): Mark dtor unused.
17419
17420 2007-03-30 Richard Henderson <rth@redhat.com>
17421 Kai Tietz <kai.tietz@onevision.com>
17422
17423 * c-pragma.c (struct def_pragma_macro_value): New.
17424 (struct def_pragma_macro): New.
17425 (pushed_macro_table): New.
17426 (dpm_hash, dpm_eq): New.
17427 (handle_pragma_push_macro, handle_pragma_pop_macro): New.
17428 (init_pragma): Install them.
17429 * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
17430
17431 2007-03-30 Anatoly Sokolov <aesok@post.ru>
17432
17433 * config/avr/avr.c (avr_override_options): Clear
17434 'flag_delete_null_pointer_checks'.
17435
17436 2007-03-30 Paolo Carlini <pcarlini@suse.de>
17437
17438 PR c++/26099
17439 * c-common.h (enum rid): Add RID_HAS_NOTHROW_ASSIGN,
17440 RID_HAS_NOTHROW_CONSTRUCTOR, RID_HAS_NOTHROW_COPY,
17441 RID_HAS_TRIVIAL_ASSIGN, RID_HAS_TRIVIAL_CONSTRUCTOR,
17442 RID_HAS_TRIVIAL_COPY, RID_HAS_TRIVIAL_DESTRUCTOR,
17443 RID_HAS_VIRTUAL_DESTRUCTOR, RID_IS_ABSTRACT, RID_IS_BASE_OF,
17444 RID_IS_CONVERTIBLE_TO, RID_IS_CLASS, RID_IS_EMPTY, RID_IS_ENUM,
17445 RID_IS_POD, RID_IS_POLYMORPHIC, RID_IS_UNION, as
17446 C++ extensions.
17447 * doc/extend.texi (Extensions to the C++ Language): Add Type Traits.
17448
17449 2007-03-30 Steven Bosscher <steven@gcc.gnu.org>
17450
17451 * regmove.c: Move all of pass_stack_adjustments from here...
17452 * combine-stack-adj.c: ...to this new file.
17453 * Makefile.in: Add rules for combine-stack-adj.o.
17454
17455 2007-03-30 Zdenek Dvorak <dvorakz@suse.cz>
17456
17457 PR tree-optimization/31383
17458 * tree-data-ref.c (affine_function_equal_p): Do not require the
17459 vectors to have the same length.
17460
17461 2007-03-30 Jan Hubicka <jh@suse.cz>
17462
17463 PR middle-end/30700
17464 * dwarf2out.c (reference_to_unused): Ask cgraph for functions
17465 availablility; add more sanity checking; ask varpool only about
17466 VAR_DECL.
17467
17468 2007-03-29 Richard Henderson <rth@redhat.com>
17469
17470 * unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
17471 to decide, but __SIZEOF_LONG_LONG__.
17472
17473 2007-03-29 Richard Henderson <rth@redhat.com>
17474
17475 * emutls.c (struct __emutls_array): New.
17476 (emutls_destroy): Use it instead of casting element 0 from void*.
17477 (__emutls_get_address): Likewise.
17478
17479 2007-03-29 Richard Henderson <rth@redhat.com>
17480
17481 * varasm.c (initializer_constant_valid_p): Don't deny
17482 DECL_DLLIMPORT_P on functions.
17483
17484 * config/i386/cygming.h: Remove function declarations.
17485 (SUBTARGET_ENCODE_SECTION_INFO): Don't undef first.
17486 (ASM_OUTPUT_LABELREF): Remove.
17487 (COMMON_ASM_OP): Remove.
17488 (ASM_OUTPUT_COMMON): Remove.
17489 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
17490 (ASM_DECLARE_OBJECT_NAME): Use i386_pe_maybe_record_exported_symbol.
17491 (ASM_DECLARE_FUNCTION_NAME): Likewise.
17492 * config/i386/i386-interix.h (SUBTARGET_ENCODE_SECTION_INFO):
17493 Rename from TARGET_ENCODE_SECTION_INFO.
17494 * config/i386/netware.h: Likewise.
17495 * config/i386/i386-protos.h: Update.
17496 * config/i386/i386.c (ix86_function_ok_for_sibcall): Turn ifdef
17497 of TARGET_DLLIMPORT_DECL_ATTRIBUTES into straight if.
17498 (legitimate_constant_p): Reject dllimports.
17499 (dllimport_map, get_dllimport_decl): New.
17500 (legitimize_dllimport_symbol): New.
17501 (legitimize_address, ix86_expand_move): Use it.
17502 (TARGET_BINDS_LOCAL_P): Redefine for TARGET_DLLIMPORT_DECL_ATTRIBUTES.
17503 * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Remove.
17504 (SYMBOL_FLAG_DLLIMPORT, SYMBOL_REF_DLLIMPORT_P): New.
17505 (SYMBOL_FLAG_DLLEXPORT, SYMBOL_REF_DLLEXPORT_P): New.
17506 * config/i386/predicates.md (constant_call_address_operand): Only
17507 accept symbols; reject dllimport_p symbols.
17508 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Use
17509 i386_pe_maybe_record_exported_symbol.
17510 * config/i386/winnt.c (DLL_IMPORT_PREFIX, DLL_EXPORT_PREFIX): Remove.
17511 (i386_pe_determine_dllexport_p): Rename from i386_pe_dllexport_p.
17512 (i386_pe_determine_dllimport_p): Rename from i386_pe_dllimport_p;
17513 trust the setting of DECL_DLLIMPORT_P.
17514 (i386_pe_dllexport_name_p, i386_pe_dllimport_name_p): Remove.
17515 (i386_pe_mark_dllexport, i386_pe_mark_dllimport): Remove.
17516 (gen_stdcall_or_fastcall_suffix): Return NULL if no change required;
17517 tidy the argument scanning loop.
17518 (i386_pe_encode_section_info): Set SYMBOL_FLAG_DLLIMPORT and
17519 SYMBOL_FLAG_DLLEXPORT in SYMBOL_REF_FLAGS.
17520 (i386_pe_strip_name_encoding): Remove.
17521 (i386_pe_binds_local_p): New.
17522 (i386_pe_strip_name_encoding_full): Use default_strip_name_encoding.
17523 (i386_pe_output_labelref): Remove.
17524 (i386_pe_asm_output_aligned_decl_common): New.
17525 (i386_pe_maybe_record_exported_symbol): Rename from
17526 i386_pe_record_exported_symbol; check for dllexported symbols.
17527
17528 2007-03-29 Zack Weinberg <zack@mrtock.ucsd.edu>
17529
17530 * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
17531 add comment explaining why vsnprintf cannot be used.
17532
17533 2007-03-29 Douglas Gregor <doug.gregor@gmail.com>
17534
17535 PR tree-optimization/30666
17536 * tree.c (build_complex_type): When creating type names for DWARF2
17537 debug info, create TYPE_DECLs for TYPE_NAME instead of
17538 IDENTIFIER_NODEs.
17539 (build_common_tree_nodes_2): Use build_complex_type when building
17540 predefined complex types, to preserve canonical types.
17541
17542 2007-03-29 Steven Bosscher <steven@gcc.gnu.org>
17543
17544 * ifcvt.c (struct noce_if_info): Add then_else_reversed field.
17545 (noce_get_alt_condition): Look at it to determine whether to
17546 reverse the condition or not.
17547 (noce_get_condition): Substitute the truth for lies.
17548 (noce_find_if_block): Set the then_else_reversed field.
17549
17550 2007-03-29 Lars Poeschel <larsi@wh2.tu-dresden.de>
17551
17552 * config/fr30/fr30.md (movdi): Do not accept immediates as the
17553 destination of this insn.
17554 * config/fr30/fr30.c (fr30_move_double): Use emit_move_insn rather
17555 than calling gen_rtx_SET directly. Use r0 to hold the value of
17556 'address + 4' rather than a stack based temporary which can be
17557 mis-optimized away.
17558
17559 2007-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
17560
17561 * config/s390/s390.c (s390_secondary_input_reload_class,
17562 s390_secondary_output_reload_class): Functions removed.
17563 (s390_secondary_reload): New function.
17564 (TARGET_SECONDARY_RELOAD): Target macro defined.
17565 * config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS,
17566 SECONDARY_OUTPUT_RELOAD_CLASS): Macro definitions removed.
17567 * config/s390/s390.md ("reload_outti", "reload_outdi",
17568 "reload_indi", "reload_insi", "reload_out<mode>", "reload_in<mode>",
17569 "reload_out<mode>"): Expanders removed.
17570 ("reload<mode>_plus", "reload<mode>_nonoffmem_in",
17571 "reload<mode>_nonoffmem_out"): Expanders added.
17572
17573 2007-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
17574
17575 * regmove.c (optimize_reg_copy_1): Don't perform DEST->SRC repair
17576 action if SRC->DEST replacement failed anyway.
17577
17578 2007-03-28 Mike Stump <mrs@apple.com>
17579
17580 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
17581 * config/darwin.h (MAX_OFILE_ALIGNMENT): Fix.
17582 * config/rs6000/darwin.h (ASM_OUTPUT_ALIGNED_COMMON): Removed #undef.
17583
17584 2007-03-28 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
17585
17586 * config.gcc: Accept barcelona as a variant of amdfam10.
17587 * config/i386/i386.c (override_options): Likewise.
17588 * doc/invoke.texi: Likewise.
17589
17590 2007-03-28 Eric Botcazou <ebotcazou@adacore.com>
17591
17592 * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
17593 offsets for BIT_FIELD_REF and COMPONENT_REF.
17594
17595 2007-03-28 Richard Guenther <rguenther@suse.de>
17596
17597 * tree.c (is_global_var): Move ...
17598 * tree-flow-inline.h (is_global_var): ... here.
17599 * tree.h (is_global_var): Remove declaration.
17600
17601 2007-03-28 Uros Bizjak <ubizjak@gmail.com>
17602
17603 * config/i386/i386.h (X86_TUNE_PROMOTE_HIMODE_IMUL): New tuning
17604 option.
17605 (TARGET_TUNE_PROMOTE_HIMODE_IMUL): New define. Use new tuning option.
17606 * config/i386/i386.c (ix86_tune_features): Initialize new
17607 tuning option.
17608 * config/i386/predicates.md (promotable_binary_operator): Use
17609 TARGET_TUNE_PROMOTE_HIMODE_IMUL.
17610
17611 2007-03-28 Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
17612
17613 PR target/31380
17614 * config/i386/sse.md (uminv16qi3): Use UMIN instead of UMAX.
17615
17616 2007-03-28 Lars Poeschel <larsi@wh2.tu-dresden.de>
17617
17618 * config/fr30/fr30.md (movsi_internal): Change destination
17619 constraint from m to V and add m to the end.
17620
17621 2007-03-28 Christian Bruel <christian.bruel@st.com>
17622
17623 * config/sh/sh.md (movsi_i): Fix type attribute.
17624
17625 2007-03-28 Christian Bruel <christian.bruel@st.com>
17626
17627 * config/sh/sh.md (movsi_ie): Fix memory constraints attribute length.
17628 (movsf_ie): Likewise.
17629
17630 2007-03-28 Christian Bruel <christian.bruel@st.com>
17631
17632 * config.gcc: Add sh4-300 to multilib.
17633 * config/sh/t-mlib-sh4-300: New file.
17634
17635 2007-03-28 Andreas Krebbel <krebbel1@de.ibm.com>
17636
17637 * config/s390/s390.md ("fix_trunc<mode>di2"): New expander.
17638 ("fix_trunc<DFP:mode>di2_dfp"): New insn definition renamed from
17639 fix_trunc<mode>di2.
17640 ("fixuns_truncdddi2", "fixuns_trunctddi2"): Use
17641 fix_trunc<DFP:mode>di2_dfp instead of fix_trunc<mode>di2.
17642 ("fix_truncdfsi2", "fix_truncsfsi2", "fixuns_truncdddi2",
17643 "fixuns_trunctddi2"): Whitespace fix.
17644
17645 2007-03-28 Kaz Kojima <kkojima@gcc.gnu.org>
17646
17647 * config/sh/sh.h (CALL_COOKIE_RET_TRAMP_SHIFT): Move after
17648 the definition of struct sh_args.
17649 (CALL_COOKIE_RET_TRAMP, CALL_COOKIE_STACKSEQ_SHIFT,
17650 CALL_COOKIE_INT_REG_GET): Likewise.
17651
17652 2007-03-28 Steven Bosscher <steven@gcc.gnu.org>
17653
17654 * ifcvt.c (cond_exec_find_if_block): Return FALSE if no
17655 transformations are applied successfully.
17656
17657 2007-03-27 Douglas Gregor <doug.gregor@gmail.com>
17658
17659 * tree.c (tree_contains_struct): Permit 512 tree codes.
17660 * tree.h (tree_contains_struct): Ditto.
17661 (MAX_TREE_CODES): Ditto.
17662 (struct tree_base): Make CODE 16 bits, instead of 8 bits. Add
17663 SPARE member to store remaining padding bits.
17664
17665 2007-03-27 Anatoly Sokolov <aesok@post.ru>
17666
17667 * config/avr/avr.c (avr_mcu_types): Move at90usb82 device to 'avr4'
17668 architecture.
17669
17670 2007-03-27 Janis Johnson <janis187@us.ibm.com>
17671
17672 * configure.ac: Fix assembler test for powerpc*-linux decimal float.
17673 * configure: Regenerate.
17674
17675 * configure: Regenerate using the correct version of autoconf.
17676
17677 2007-03-27 Anatoly Sokolov <aesok@post.ru>
17678
17679 * config/avr/avr.c (avr_hard_regno_mode_ok): Disallow QImode in stack
17680 pointer regs.
17681 * config/avr/avr.h (REGISTER_NAMES): Rename "__SPL__" and "__SPH__"
17682 regs to "__SP_L__" and "__SP_H__".
17683
17684 2007-03-27 Richard Guenther <rguenther@suse.de>
17685
17686 * tree-dfa.c (get_ref_base_and_extent): Replace bit_offset and
17687 computations with it with a HOST_WIDE_INT variable.
17688
17689 2007-03-26 Mike Stump <mrs@apple.com>
17690
17691 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Add
17692 objective-c-header, objective-c++-header and objc++-cpp-output
17693 support.
17694 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
17695
17696 2007-03-26 Richard Henderson <rth@redhat.com>
17697
17698 PR target/31361
17699 * config/i386/i386.c (IX86_BUILTIN_PSLLDQ128, IX86_BUILTIN_PSLLW128,
17700 IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128, IX86_BUILTIN_PSRAW128,
17701 IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128, IX86_BUILTIN_PSRLD128,
17702 IX86_BUILTIN_PSRLQ128): New.
17703 (ix86_init_mmx_sse_builtins): Add them.
17704 (ix86_expand_builtin): Expand them.
17705 * config/i386/sse.md (ashr<mode>3, lshr<mode>3, ashl<mode>3): Make
17706 operand 2 be TImode.
17707 * config/i386/emmintrin.h (_mm_slli_epi64, _mm_srai_epi16,
17708 _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
17709 _mm_srli_epi64): Mark __B const.
17710 (_mm_srli_si128, _mm_srli_si128): Fix disabled inline versions.
17711 (_mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64, _mm_sra_epi16,
17712 _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32, _mm_srl_epi64): Use
17713 new two-vector shift builtins.
17714
17715 2007-03-26 Ian Lance Taylor <iant@google.com>
17716
17717 PR tree-optimization/31345
17718 * tree-vrp.c (extract_range_from_binary_expr): Turn ranges like
17719 [+INF, +INF(OVF)] into VARYING.
17720
17721 2007-03-26 Zack Weinberg <zackw@panix.com>
17722
17723 * gengtype-parse.c: New file.
17724 * gengtype-yacc.y: Delete.
17725 * gengtype-lex.l: Don't include gengtype-yacc.h.
17726 Define YY_DECL and yyterminate appropriately for recursive
17727 descent parser. yylval is now a string out-parameter to yylex.
17728 (HWS, EOID): New shorthand.
17729 (IWORD): Add a couple more types.
17730 (yylex): Add a setup stanza. Remove the complex rules for
17731 detecting GTY'ed types and typedefs; replace with simple
17732 keyword detectors. Adjust everything for the changed
17733 definition of yylval. Ignore all pp-directives, not just #define.
17734 (yyerror): Delete.
17735 (parse_file): Rename yybegin; do not call yyparse.
17736 (yyend): New.
17737 * gengtype.c (xasprintf): Export again.
17738 (this_file): New. Use everywhere __FILE__ was being used.
17739 (get_lang_bitmap): Special case types defined in gengtype.c.
17740 (do_typedef, new_structure): Suppress definition of certain types.
17741 (new_structure): Improve diagnostics of duplicate definitions.
17742 Make sure location_s is associated with input.h.
17743 (nreverse_pairs, define_location_structures): New functions.
17744 (main): Improve tagging of kludge types. Remove old kludges
17745 for input.h types; use define_location_structures.
17746 * gengtype.h: Update prototypes. Define token codes here.
17747 * Makefile.in: Remove all references to gengtype-yacc.
17748 Add rules for gengtype-parse.o. Adjust rules for gengtype-lex.o
17749 and gengtype.
17750 * bitmap.h (struct bitmap_head_def): Coalesce definitions,
17751 add GTY((skip)) to the field that's only conditionally there.
17752 * doc/install.texi: Document that Bison is no longer required
17753 unless building treelang.
17754
17755 * gengtype.c: Don't include gtyp-gen.h.
17756 (srcdir): Declare here.
17757 (base_files, lang_dir_names): Allocate dynamically.
17758 (gt_files, num_gt_files, num_lang_dirs): New globals.
17759 (measure_input_list, read_input_line, read_input_list)
17760 (set_lang_bitmap): New functions.
17761 (get_base_file_bitmap): Rename get_lang_bitmap and drastically
17762 simplify, relying on read_input_list to set up the bitmaps.
17763 (main): Arguments are no longer unused. Check for correct number
17764 of command line arguments, set srcdir and srcdir_len, then call
17765 read_input_list, before doing anything else. No need to worry
17766 about duplicates in main loop.
17767 * configure.ac: Simplify the calculation of all_gtfiles.
17768 Put language tags in there. Don't set or substitute
17769 all_gtfiles_files_langs or all_gtfiles_files_frags.
17770 * Makefile.in: Revamp the way gengtype is invoked, now that it
17771 takes a file on its command line with a much simpler format.
17772 Remove or replace with gtyp-input.list all references to gtyp-gen.h.
17773 (GTFILES): Remove duplicates and C source files.
17774 * c-config-lang.in, cp/config-lang.in, objc/config-lang.in
17775 * objcp/config-lang.in: Add c-pragma.h to gtfiles.
17776 * configure: Regenerate.
17777
17778 * gengtype.h: Remove all type definitions to gengtype.c; leave
17779 only definitions of options_p, type_p, and pair_p as opaque
17780 pointers. Update prototypes.
17781 * gengtype.c: Many type definitions moved here from gengtype.h.
17782 Consolidate type definitions at the top of the file.
17783 (xvasprintf): Delete.
17784 (xasprintf): Make static.
17785 (create_nested_pointer_option): Add 'next' parameter.
17786 (create_field_all, create_field_at): New functions.
17787 (create_field): Now a thin wrapper around create_field_all.
17788 (create_optional_field): Rename create_optional_field_ and add
17789 line argument. Original name is now a macro which supplies
17790 __LINE__.
17791 (oprintf): Use vsnprintf directly.
17792 (close_output_files): Use fatal rather than perror/exit.
17793 (note_def_vec, note_def_vec_alloc): Use create_field_at.
17794 (main): Set progname. Don't use exit.
17795 * gengtype-yacc.y (struct_fields): Use create_field_at.
17796 (option, optionseqopt): Delete.
17797 (optionseq): Consolidate productions from option here so we
17798 can use the first argument to create_option.
17799
17800 * gengtype-lex.l: Distinguish unions from structures in the
17801 token type. Don't call find_structure; return the tag as a string.
17802 * gengtype-yacc.y: Add new token types ENT_TYPEDEF_UNION and
17803 ENT_UNION. Type of these, ENT_TYPEDEF_STRUCT, and ENT_STRUCT is
17804 string. Reorganize typedef_struct production accordingly.
17805 Use create_nested_ptr_option.
17806 * gengtype.c (create_nested_ptr_option): New function.
17807 * gengtype.h: Declare it.
17808
17809 * gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
17810 (string_type): Don't declare.
17811 (do_scalar_typedef): Declare.
17812 (create_scalar_type): Update prototype.
17813 * gengtype.c (string_type): Make static.
17814 (scalar_nonchar, scalar_char): New.
17815 (do_scalar_typedef): Export. Always use scalar_nonchar for the type.
17816 (resolve_typedef): Use scalar_nonchar for error recovery.
17817 (create_scalar_type): Remove name_len field. Return scalar_char
17818 or scalar_nonchar as appropriate.
17819 (adjust_field_type): Look at scalar_is_char boolean to decide whether
17820 to use string_type.
17821 (throughout): Use scalar_nonchar instead of calling
17822 create_scalar_type, whenever possible.
17823 (main): Initialize scalar_char and scalar_nonchar before calling
17824 gen_rtx_next.
17825 * gengtype-lex.l: Adjust for removal of second argument to
17826 create_scalar_type. Use yylval.s instead of yylval.t when
17827 returning SCALAR.
17828 * gengtype-yacc.y: Type of SCALAR is string. Call
17829 create_scalar_type from type:SCALAR rule. Adjust for removal of
17830 second argument to create_scalar_type.
17831
17832 * vec.h: Remove all #if IN_GENGTYPE blocks.
17833 Add comment saying that changes may require adjustments to gengtype.
17834 * gengtype.c: Don't include coretypes.h or tm.h.
17835 Add comment to inclusion of errors.h.
17836 (note_def_vec, note_def_vec_alloc): New functions.
17837 * gengtype.h: Declare new functions.
17838 * gengtype-lex.l: Don't include coretypes.h.
17839 (YY_INPUT, macro_input, push_macro_expansion, mangle_macro_name):
17840 Delete.
17841 (update_lineno): Remove unnecessary prototype.
17842 (DEF_VEC_* rules): Simplify using note_def_vec / note_def_vec_alloc.
17843 (VEC rule): Just return VEC_TOKEN.
17844 * gengtype-yacc.y (VEC_TOKEN): New token type.
17845 (type): Add a production for VEC(a,b).
17846 * Makefile.in: Update dependencies.
17847
17848 * gengtype-lex.l: Remove rules for parsing pointer-to-function
17849 typedefs that use the old PARAMS macro.
17850
17851 * gengtype-lex.l: Remove all rules and states relating to yacc
17852 input files.
17853 * gengtype-yacc.y: Similarly.
17854 * gengtype.c (note_yacc_type): Delete function.
17855 * gengtype.h: Update prototypes.
17856
17857 2007-03-26 Joseph Myers <joseph@codesourcery.com>
17858
17859 * tree-pretty-print.c (dump_generic_node): Report precision of
17860 unnamed integer types.
17861
17862 2007-03-26 Steven Bosscher <steven@gcc.gnu.org>
17863
17864 * ifcvt.c (noce_try_store_flag_constants): Don't check
17865 no_new_pseudos here.
17866 (noce_try_store_flag_constants): Don't check no_new_pseudos.
17867 (noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove_arith,
17868 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
17869 noce_try_sign_mask): Likewise.
17870 (if_convert): Check no_new_pseudos here.
17871
17872 (cond_exec_process_if_block, noce_process_if_block, find_if_block):
17873 Remove prototypes.
17874 (struct noce_if_info): Add then_bb, else_bb, join_bb members.
17875 (noce_get_condition): Handle new then_else_reversed argument.
17876 (noce_init_if_info): Remove, fold into noce_find_if_block.
17877 (noce_process_if_block): Take a struct noce_if_info as the
17878 argument. Don't set up one based on ce_if_info. Update pointer
17879 references accordingly.
17880 (cond_move_process_if_block): Likewise.
17881 (process_if_block): Removed.
17882 (find_if_block): Removed. Move functionality two new functions,
17883 noce_find_if_block and cond_exec_find_if_block.
17884 (noce_find_if_block): New function. Be aware of IF-THEN-JOIN
17885 blocks and the symmetric IF-ELSE-JOIN case.
17886 (cond_exec_find_if_block): Also new function mostly based on old
17887 find_if_block and process_if_block.
17888 (find_if_header): Replace find_if_block call with separately
17889 guarded calls to noce_find_if_block and cond_exec_find_if_block.
17890 (find_cond_trap): Update noce_get_condition call.
17891 (dead_or_predicable): Likewise.
17892
17893 2007-03-26 Jakub Jelinek <jakub@redhat.com>
17894
17895 * config/i386/i386.c (IX86_BUILTIN_CMPNEPD, IX86_BUILTIN_CMPNESD):
17896 Remove.
17897 (IX86_BUILTIN_PSLLW128, IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128,
17898 IX86_BUILTIN_PSRAW128, IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128,
17899 IX86_BUILTIN_PSRLD128, IX86_BUILTIN_PSRLQ128): Remove.
17900 (ix86_init_mmx_sse_builtins): Remove v8hi_ftype_v8hi_v2di and
17901 v4si_ftype_v4si_v2di. Remove __builtin_ia32_psllw128,
17902 __builtin_ia32_pslld128, __builtin_ia32_psllq128,
17903 __builtin_ia32_psrlw128, __builtin_ia32_psrld128,
17904 __builtin_ia32_psrlq128, __builtin_ia32_psraw128 and
17905 __builtin_ia32_psrad128 builtins.
17906
17907 2007-03-26 Uros Bizjak <ubizjak@gmail.com>
17908
17909 * reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
17910 * config/i386/constraints.md
17911 (define_constraint "I"): Use IN_RANGE macro.
17912 (define_constraint "J"): Ditto.
17913 (define_constraint "K"): Ditto.
17914 (define_constraint "M"): Ditto.
17915 (define_constraint "N"): Ditto.
17916 (define_constraint "O"): Ditto.
17917 * config/i386/predicates.md
17918 (define_predicate "register_no_elim_operand"): Use IN_RANGE macro.
17919 (define_predicate "const_0_to_3_operand"): Ditto.
17920 (define_predicate "const_0_to_7_operand"): Ditto.
17921 (define_predicate "const_0_to_15_operand"): Ditto.
17922 (define_predicate "const_0_to_63_operand"): Ditto.
17923 (define_predicate "const_0_to_255_operand"): Ditto.
17924 (define_predicate "const_1_to_31_operand"): Ditto.
17925 (define_predicate "const_2_to_3_operand"): Ditto.
17926 (define_predicate "const_4_to_7_operand"): Ditto.
17927
17928 2007-03-25 David Edelsohn <edelsohn@gnu.org>
17929
17930 * config/rs6000/rs6000.c (rs6000_emit_prologue): Always clobber LR
17931 in SImode for save_world.
17932 * config/rs6000/altivec.md (save_world, restore_world): Convert to
17933 LR hard reg.
17934
17935 2007-03-25 Dorit Nuzman <dorit@il.ibm.com>
17936
17937 PR tree-optimization/30784
17938 * fold-const.c (fold_ternary): Handle CONSTRUCTOR in case
17939 BIT_FIELD_REF.
17940
17941 2007-03-25 Revital Eres <eres@il.ibm.com>
17942
17943 * tree-if-conv.c (if_convertible_gimple_modify_stmt_p):
17944 Fold movement_possibility function into it.
17945
17946 2007-03-25 David Edelsohn <edelsohn@gnu.org>
17947
17948 * config/rs6000/darwin.md (load_macho_picbase): Ignore operand 0.
17949 (load_macho_picbase_{si,di}): Convert to LR hard reg.
17950 (call_indirect_nonlocal_darwin64): Same.
17951 (call_nonlocal_darwin64): Same.
17952 (call_value_indirect_nonlocal_darwin64): Same.
17953 (call_value_nonlocal_darwin64): Same.
17954 (sibcall_nonlocal_darwin64): Same.
17955 (sibcall_value_nonlocal_darwin64): Same.
17956 (sibcall_symbolic_64): Same.
17957 (sibcall_value_symbolic_64): Same.
17958 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
17959 LR pseudo.
17960 (rs6000_emit_load_toc_table): Same.
17961 * config/rs6000/altivec.md (restore_world): Convert to LR hard reg.
17962 * config/rs6000/rs6000.md (mulh_call): Convert to LR hard reg.
17963 (mull_call): Same.
17964 (divss_call): Same.
17965 (divus_call): Same.
17966 (quoss_call): Same.
17967 (quous_call): Same.
17968 (load_toc_v4_pic_si): Same
17969 (load_toc_v4_PIC_1): Same.
17970 (load_toc_v4_PIC_1b): Same.
17971 (call_indirect_aix{32,64}): Same.
17972 (call_value_indirect_aix{32,64}): Same.
17973 (call): Same.
17974 (call_value): Same.
17975 (call_local{32,64}): Same.
17976 (call_value_local{32,64}): Same.
17977 (call_indirect_nonlocal_aix{32,64}): Same.
17978 (call_nonlocal_aix{32,64}): Same.
17979 (call_value_indirect_nonlocal_aix{32,64}): Same.
17980 (call_value_nonlocal_aix{32,64}): Same.
17981 (call_indirect_nonlocal_sysv<mode>): Same.
17982 (call_nonlocal_sysv<mode>): Same.
17983 (call_value_indirect_nonlocal_sysv<mode>): Same.
17984 (call_value_nonlocal_sysv<mode>): Same.
17985 (sibcall): Same.
17986 (sibcall_local{32,64}): Same.
17987 (sibcall_value_local{32,64}): Same.
17988 (sibcall_nonlocal_aix{32,64}): Same.
17989 (sibcall_value_nonlocal_aix{32,64}): Same.
17990 (sibcall_nonlocal_sysv<mode>): Same.
17991 (sibcall_value): Same.
17992 (sibcall_value_nonlocal_sysv<mode>): Same.
17993
17994 2007-03-24 Paul Brook <paul@codesourcery.com>
17995
17996 * config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
17997 * config/arm/linux-eabi.h: Remove legacy syscall hack.
17998
17999 2007-03-24 Richard Henderson <rth@redhat.com>
18000
18001 * config/ia64/constraints.md: New file.
18002 * config/ia64/predicates.md: Replace CONST_OK_FOR_? with
18003 satisfies_constraint_?.
18004 * config/ia64/ia64.c (ia64_move_ok, ia64_legitimate_constant_p,
18005 ia64_reload_gp, spill_restore_mem, ia64_expand_prologue,
18006 ia64_expand_epilogue, ia64_split_return_addr_rtx, ia64_rtx_costs,
18007 ia64_output_mi_thunk): Likewise.
18008 (ia64_const_ok_for_letter_p): Remove.
18009 (ia64_const_double_ok_for_letter_p): Remove.
18010 (ia64_extra_constraint): Remove.
18011 * config/ia64/ia64.h (REG_CLASS_FROM_LETTER): Remove.
18012 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L,
18013 CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O, CONST_OK_FOR_P,
18014 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_G,
18015 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT,
18016 EXTRA_MEMORY_CONSTRAINT): Remove.
18017 * config/ia64/ia64.md: Include constriants.md. Replace
18018 CONST_OK_FOR_? with satisfies_constraint_?.
18019
18020 2007-03-23 Michael Meissner <michael.meissner@amd.com>
18021 H.J. Lu <hongjiu.lu@intel.com>
18022
18023 * config/dfp-bit.h (DPD_BID_NAME): New macro to give either the
18024 DPD or BID name.
18025 (name macros): Use DPD_BID_NAME to convert names properly.
18026
18027 * optabs.c (DECIMAL_PREFIX): Prefix string to use for the current
18028 decimal floating point format.
18029 (init_floating_libfuncs): Change decimal functions so that they
18030 have a "bid_" prefix if the decimal system uses the BID format,
18031 and "dpd_" prefix if the decimal system uses the DPD format.
18032 (init_interclass_conv_libfuncs): Ditto.
18033 (init_intraclass_conv_libfuncs): Ditto.
18034
18035 * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
18036 using the BID format.
18037
18038 * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
18039 whether we are using the BID decimal format.
18040 * configure: Regenerate.
18041
18042 * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
18043 the compiler has decimal floating point enabled. Define
18044 __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
18045 instead of DPD.
18046
18047 * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
18048 using the BID format.
18049
18050 * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
18051 whether we are using the BID decimal format.
18052 * configure: Regenerate.
18053
18054 * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
18055 the compiler has decimal floating point enabled. Define
18056 __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
18057 instead of DPD.
18058
18059 * doc/install.texi (--enable-decimal-float): Document BID and DPD
18060 options, and that it is enabled for i386/x86_64 systems.
18061
18062 * Makefile.in (enable_decimal_float): New.
18063 (DECNUMFMT): New.
18064 (DECNUMINC): Add -I$(DECNUMFMT).
18065 (DECNUM_H): Mov decimal32.h, decimal64.h and decimal128.h
18066 to $(DECNUMFMT) from $(DECNUM).
18067
18068 * configure.ac: Support * --enable-decimal-float={no,yes,bid,dpd}.
18069 Substitute enable_decimal_float.
18070 * configure: Regenerated.
18071
18072 PR other/30529
18073 * config/dfp-bit.c (__dec_byte_swap): Use uint32_t instead of
18074 unsigned long.
18075
18076 * configure.ac: Enable decimal float for x86_64-*-linux*.
18077 * configure: Regenerated.
18078
18079 PR other/30530
18080 * dfp.c (decimal_real_arithmetic): Use decimal128FlipSign and
18081 decimal128ClearSign to flip and clear the sign bit in decimal128.
18082 (decimal_real_maxval): Set decimal128SetSign to set the sign
18083 bit in decimal128.
18084
18085 2007-03-23 Ian Lance Taylor <iant@google.com>
18086
18087 * fold-const.c (fold_binary): Correct warning for X - c >= X.
18088
18089 2007-03-23 Ian Lance Taylor <iant@google.com>
18090
18091 * tree-dump.c (dump_files): Correct comment.
18092
18093 2007-03-23 Ian Lance Taylor <iant@google.com>
18094
18095 * tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
18096
18097 2007-03-23 Steven Bosscher <steven@gcc.gnu.org>
18098
18099 * tracer.c (tracer): Don't take FLAGS argument. Assert we are
18100 in cfglayout mode. Don't go into and out of cfglayout mode.
18101 Link the blocks in the order of the constructed traces.
18102 (rest_of_handle_tracer): Adjust call to tracer.
18103 * loop-init.c (rtl_loop_init): Assert we are in cfglayout mode.
18104 Don't go into cfglayout mode.
18105 (rtl_loop_done): Don't go out of cfglayout mode.
18106 * cfglayout.c (relink_block_chain): New function, split out from...
18107 (fixup_reorder_chain): ...here. Remove redundant checking.
18108 (cfg_layout_finalize): Don't clear the header, footer, and aux
18109 fields here, move the code to do so to relink_block_chain. Likewise
18110 for free_original_copy_tables.
18111 * rtl.h (tracer): Update prototype.
18112 * bb-reorder.c (reorder_basic_blocks): Don't take FLAGS argument.
18113 Assert we are in cfglayout mode. Don't go into and out of cfglayout
18114 mode. Use relink_block_chain to serialize the CFG according to the
18115 new basic block order. Move targetm.cannot_modify_jumps_p check from
18116 here...
18117 (gate_handle_reorder_blocks): ...to here.
18118 (duplicate_computed_gotos): Move targetm.cannot_modify_jumps_p check
18119 from here...
18120 (gate_duplicate_computed_gotos): ...to here.
18121 (rest_of_handle_reorder_blocks): Don't see if anything has changed,
18122 something always changes when going into and out of cfglayout mode.
18123 Perform an expensive cfg cleanup while going into cfglayout mode.
18124 Always update liveness information on HAVE_conditional_execution
18125 targets. Reserialize the basic blocks and go out of cfglayout mode.
18126 * reg-stack.c: Include cfglayout.h.
18127 (rest_of_handle_stack_regs): Go into and out of cfglayout mode around
18128 the call to reorder_basic_blocks.
18129 * basic-block.h (reorder_basic_blocks): Update prototype.
18130 (relink_block_chain): New prototype.
18131 * passes.c (pass_outof_cfg_layout_mode): Move after cse2.
18132
18133 2007-03-23 Joseph Myers <joseph@codesourcery.com>
18134
18135 * config/mips/mips.md (type, hazard, *movdi_32bit,
18136 *movdi_gp32_fp64, *movdi_64bit, *movsi_internal, movcc,
18137 *movhi_internal, *movqi_internal, *movsf_hardfloat,
18138 *movdf_hardfloat_64bit, *movdf_hardfloat_32bit, *movdf_softfloat,
18139 movv2sf_hardfloat_64bit, load_df_low, load_df_high, store_df_high,
18140 mthc1, mfhc1): Change xfer instruction type to mfc and mtc, as
18141 applicable.
18142 (movcc): Change first xfer to multi.
18143 * config/mips/24k.md, config/mips/4100.md, config/mips/4300.md,
18144 config/mips/5000.md, config/mips/5400.md, config/mips/5500.md,
18145 config/mips/5k.md, config/mips/7000.md, config/mips/9000.md,
18146 config/mips/generic.md: Change reservations using "xfer" to use
18147 "mfc,mtc".
18148 * config/mips/sb1.md (ir_sb1_mtxfer): Use "mtc" instead of
18149 using match_operand.
18150 (ir_sb1_mfxfer): Use "mfc" instead of using match_operand.
18151 * config/mips/sr71k.md (ir_sr70_xfer_from): Use "mfc" instead of
18152 examining mode.
18153 (ir_sr70_xfer_to): Use "mtc" instead of examining mode.
18154
18155 2007-03-22 Richard Henderson <rth@redhat.com>
18156
18157 * config/i386/i386.c: Remove unnecessary function declarations.
18158 Move targetm definition, and all related macros, to the end of
18159 the file. Resort some functions to put definitions before uses.
18160 (ix86_attribute_table): Make static. Move to end of file.
18161 (ix86_gimplify_va_arg): Make static.
18162
18163 2007-03-22 Richard Henderson <rth@redhat.com>
18164
18165 * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
18166 don't increase local_regparm with force_align_arg_pointer check.
18167 (ix86_function_sseregparm): Assert 32-bit.
18168 (type_has_variadic_args_p): New.
18169 (ix86_return_pops_args): Early exit for 64-bit. Reindent; use
18170 type_has_variadic_args_p.
18171 (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
18172 (init_cumulative_args): Remove TARGET_DEBUG_ARG. Remove zero_cum;
18173 use memset instead. Do maybe_vaarg check first; skip attribute
18174 tests if true; skip attribute tests for 64-bit.
18175 (construct_container): Remove TARGET_DEBUG_ARG.
18176 (function_arg_advance_32, function_arg_advance_64): Split out ...
18177 (function_arg_advance): ... from here.
18178 (function_arg_32, function_arg_64): Split out ...
18179 (function_arg): ... from here.
18180 (ix86_pass_by_reference): Tidy.
18181 (ix86_function_value_regno_p): Rearrange w/ switch on regno.
18182 (function_value_32): New, from parts of ix86_function_value
18183 and ix86_value_regno.
18184 (function_value_64): New, from parts of ix86_function_value
18185 and ix86_libcall_value.
18186 (ix86_function_value_1): New.
18187 (ix86_function_value, ix86_libcall_value): Use it.
18188 (return_in_memory_32, return_in_memory_64): Split out ...
18189 (ix86_return_in_memory): ... from here.
18190 (ix86_struct_value_rtx): Skip for 64-bit.
18191 (ix86_libcall_value, ix86_value_regno): Remove.
18192 (setup_incoming_varargs_64): Split out ...
18193 (ix86_setup_incoming_varargs): ... from here.
18194 (ix86_va_start): Remove TARGET_DEBUG_ARG.
18195 (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
18196 * config/i386/i386-protos.h (ix86_function_value): Remove.
18197 * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.
18198
18199 2007-03-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
18200
18201 PR other/23572
18202 * c-lex.c (interpret_float): On overflow, emit pedantic warning if
18203 infinities not supported, otherwise emit warning if -Woverflow. On
18204 underflow, emit warning if -Woverflow.
18205 * real.c (real_from_string): Return -1 if underflow, +1 if overflow
18206 and 0 otherwise.
18207 * real.h (real_from_string): Update declaration
18208
18209 2007-03-22 Kai Tietz <kai.tietz@onevision.com>
18210 Richard Henderson <rth@redhat.com>
18211
18212 * defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
18213 * calls.c (compute_argument_block_size, expand_call,
18214 emit_library_call_value_1): Don't ifdef OUTGOING_REG_PARM_STACK_SPACE.
18215 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
18216 * function.c (STACK_DYNAMIC_OFFSET): Likewise.
18217 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Update.
18218 * config/alpha/unicosmk.h, config/bfin/bfin.h, config/iq2000/iq2000.h,
18219 config/mips/mips.h, config/mn10300/mn10300.h, config/mt/mt.h,
18220 config/pa/pa.h, config/rs6000/rs6000.h, config/score/score.h,
18221 config/spu/spu.h, config/v850/v850.h (OUTGOING_REG_PARM_STACK_SPACE):
18222 Set to 1.
18223
18224 2007-03-22 Joseph Myers <joseph@codesourcery.com>
18225
18226 * c-incpath.c (add_sysroot_to_chain): New.
18227 (merge_include_chains): Add sysroot argument. Call
18228 add_sysroot_to_chain if sysrooted.
18229 (register_include_chains): Update call to merge_include_chains.
18230 * doc/cppopts.texi: Document use of '=' in include directory
18231 arguments.
18232
18233 2007-03-22 Uros Bizjak <ubizjak@gmail.com>
18234
18235 * config/i386/i386.md (cmp<mode>): Rename from cmpsf and cmpdf.
18236 Macroize expander using SSEMODEF mode macro. Use SSE_FLOAT_MODE_P.
18237 (*cmpfp_<mode>): Rename from *cmpfp_sf and *cmpfp_df. Macroize
18238 insn pattern using X87MODEF12 mode macro.
18239
18240 2007-03-21 Seongbae Park <seongbae.park@gmail.com>
18241
18242 * regmove.c (regmove_optimize): Use reg_mentioned_p
18243 instead of reg_overlap_mentioned_p for DST.
18244
18245 2007-03-21 Mike Stump <mrs@apple.com>
18246
18247 * c.opt: Fixup for Objective-C/C++.
18248
18249 2007-03-21 Steve Ellcey <sje@cup.hp.com>
18250
18251 * explow.c (convert_memory_address): Fold memory reference when
18252 POINTERS_EXTEND_UNSIGNED < 0
18253
18254 2007-03-21 Richard Henderson <rth@redhat.com>
18255
18256 PR target/31245
18257 * config/i386/emmintrin.h (__m128i, __m128d): Mark may_alias.
18258 * config/i386/mmintrin.h (__m64): Likewise.
18259 * config/i386/xmmintrin.h (__m128): Likewise.
18260
18261 2007-03-21 Richard Sandiford <richard@codesourcery.com>
18262
18263 * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
18264 (VXWORKS_OS_CPP_BUILTINS): Define.
18265 * config/i386/vxworks.h (VXWORKS_CPU_DEFINE): Fold into...
18266 (TARGET_OS_CPP_BUILTINS): ...here. Use VXWORKS_OS_CPP_BUILTINS.
18267
18268 2007-03-21 Richard Sandiford <richard@codesourcery.com>
18269
18270 * rtl.h (constant_pool_reference_p): Delete.
18271 (find_constant_src): Declare.
18272 * rtlanal.c (find_constant_src): New function.
18273 * simplify-rtx.c (constant_pool_reference_p): Delete.
18274 * config/i386/i386.md: Use find_constant_src instead of
18275 constant_pool_reference_p/avoid_constant_pool_reference pairs.
18276
18277 2007-03-21 Richard Sandiford <richard@codesourcery.com>
18278
18279 * doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
18280 * c-cppbuiltin.c (c_cpp_builtins): Define them.
18281
18282 2007-03-20 Mark Mitchell <mark@codesourcery.com>
18283
18284 * config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
18285 * config/arm/arm.c (arm_elf_asm_cdtor): New function.
18286 (arm_elf_asm_constructor): Use it.
18287 (arm_elf_asm_destructor): New function.
18288
18289 2007-03-20 Bernd Schmidt <bernd.schmidt@analog.com>
18290
18291 * jump.c (mark_jump_label): Treat SEQUENCE specially.
18292
18293 2007-03-20 Nathan Sidwell <nathan@codesourcery.com>
18294
18295 * config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.
18296
18297 2007-03-19 Andrew Haley <aph@redhat.com>
18298
18299 PR tree-optimization/31264
18300 * tree-vrp.c (register_edge_assert_for_1): Don't look though
18301 VIEW_CONVERT_EXPRs.
18302
18303 2007-03-19 Paolo Bonzini <bonzini@gnu.org>
18304
18305 PR rtl-optimization/30907
18306 * fwprop.c (forward_propagate_into): Never propagate inside a loop.
18307 (fwprop_init): Always call loop_optimizer_initialize.
18308 (fwprop_done): Always call loop_optimizer_finalize.
18309 (fwprop): We always have loop info now.
18310 (gate_fwprop_addr): Remove.
18311 (pass_fwprop_addr): Use gate_fwprop as gate.
18312
18313 PR rtl-optimization/30841
18314 * df-problems.c (df_ru_local_compute, df_rd_local_compute,
18315 df_chain_alloc): Call df_reorganize_refs unconditionally.
18316 * df-scan.c (df_rescan_blocks, df_reorganize_refs): Change
18317 refs_organized to refs_organized_size.
18318 (df_ref_create_structure): Use refs_organized_size instead of
18319 bitmap_size if refs had been organized, and keep refs_organized_size
18320 up-to-date.
18321 * df.h (struct df_ref_info): Change refs_organized to
18322 refs_organized_size.
18323 (DF_DEFS_SIZE, DF_USES_SIZE): Use refs_organized_size instead of
18324 bitmap_size.
18325
18326 2007-03-19 Mark Mitchell <mark@codesourcery.com>
18327
18328 * except.c (output_function_exception_table): Do not reference the
18329 EH personality routine for functions that do not require an
18330 exception table.
18331
18332 2007-03-20 Jakub Jelinek <jakub@redhat.com>
18333
18334 PR c/30762
18335 * c-typeck.c (convert_for_assignment): Call comptypes for
18336 RECORD_TYPE or UNION_TYPE.
18337
18338 PR inline-asm/30505
18339 * reload1.c (reload): Do invalid ASM checking after
18340 cleanup_subreg_operands.
18341
18342 2007-03-19 Jeff Law <law@redhat.com>
18343
18344 * tree-cfg.c (find_taken_edge): Tighten conditions for
18345 optimizing computed gotos.
18346
18347 2007-03-19 Michael Matz <matz@suse.de>
18348
18349 * builtins.c (expand_builtin_sync_operation,
18350 expand_builtin_compare_and_swap,
18351 expand_builtin_lock_test_and_set): Care for extending CONST_INTs
18352 correctly.
18353
18354 * config/i386/sync.md (sync_double_compare_and_swapdi_pic,
18355 sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint
18356 for operand 3.
18357
18358 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
18359
18360 * doc/tm.texi: Add brackets around the return type of
18361 TARGET_SECONDARY_RELOAD.
18362
18363 2007-03-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
18364 Richard Guenther <rguenther@suse.de>
18365
18366 PR tree-optimization/31254
18367 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
18368 Use handled_component_p () where appropriate. Continue
18369 propagating into the rhs if we propagated into an INDIRECT_REF
18370 on the lhs.
18371
18372 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
18373
18374 * config/s390/s390.md (op_type attribute): RRR instruction type added.
18375 (FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros.
18376 (xde, xdee): Mode attributes adjusted to support DFP modes.
18377 (RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added.
18378 ("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters,
18379 DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3",
18380 "*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3",
18381 "*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3",
18382 "div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
18383 "*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP
18384 numbers.
18385 ("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31",
18386 "movsf"): Insn definitions removed.
18387 ("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp",
18388 "*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2",
18389 "trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn
18390 definitions added.
18391 ("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>",
18392 "reload_in<mode>", "reload_out<mode>"): Expander added.
18393 ("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"):
18394 Expander removed.
18395
18396 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
18397
18398 * config/s390/s390.md: Only non-functional changes. Renamed
18399 FPR mode macro to BFP all over the file.
18400
18401 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
18402
18403 * config/s390/s390.md (UNSPEC_COPYSIGN): New constant.
18404 (op_type attribute): RRF instruction type added.
18405 (fT0): New mode attribute.
18406 ("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
18407 "*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added.
18408 * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new
18409 instruction no secondary memory is needed when moving DFmode values
18410 between GPRs and FPRs.
18411
18412 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
18413
18414 * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
18415 inverted and documentation adjusted.
18416 ("mhard-dfp", "msoft-dfp"): New options.
18417 * config/s390/s390.c (s390_handle_arch_option): New architecture
18418 switch: z9-ec.
18419 (override_options): Sanity checks for the new options added.
18420 * config.gcc: New architecture switch: z9-ec.
18421 * config/s390/s390.h (processor_flags): PF_DFP added.
18422 (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
18423 (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
18424 when the bit is NOT set so remove it from the defaults.
18425
18426 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
18427
18428 * genemit.c (main): Print include statement for dfp.h.
18429 * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
18430 is not available.
18431
18432 2007-03-19 Hans-Peter Nilsson <hp@axis.com>
18433
18434 * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
18435
18436 2007-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
18437
18438 PR target/31022
18439 * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
18440 instead of PATTERN.
18441
18442 2007-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18443
18444 * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
18445 attr_length_call, output_call, output_indirect_call): Cleanup
18446 formatting of targetm calls.
18447
18448 2007-03-19 Hans-Peter Nilsson <hp@axis.com>
18449
18450 * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
18451
18452 2007-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18453
18454 * pa.md: Add fpstore_load and store_fpload instruction types. Provide
18455 reservation, bypass and anti-bypass descriptions for these
18456 instructions. Update move patterns.
18457 * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
18458 TYPE_FPSTORE.
18459
18460 2007-03-18 Dorit Nuzman <dorit@il.ibm.com>
18461
18462 * tree-vect-transform.c (get_initial_def_for_induction): Replace
18463 GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
18464 (get_initial_def_for_reduction): Likewise.
18465
18466 2007-03-16 Daniel Berlin <dberlin@dberlin.org>
18467
18468 Fix PR tree-optimization/29922
18469 * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
18470 (get_representative): Removed.
18471 (value_dies_in_block_x): Update for rvuse removal.
18472 (valid_in_sets): Update for renaming of vuses_dies_in_block_x.
18473 (compute_antic_aux): Handle when PHI nodes appear in
18474 non-single-successors.
18475 (dump_bitmap_of_names): Removed.
18476 (compute_antic_safe): Renamed and removed rvuse calculation.
18477 Calculate only antic safe.
18478 (insert_into_preds_of_block): Remove assert.
18479 (execute_pre): Update for renamed functions.
18480 (defer_or_phi_translate_block): New function.
18481
18482 2007-03-17 Kazu Hirata <kazu@codesourcery.com>
18483
18484 * config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
18485 config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
18486 typos.
18487 * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
18488 Follow spelling conventions.
18489
18490 * tree-data-ref.h: Remove the prototype for analyze_array.
18491
18492 2007-03-17 Dorit Nuzman <dorit@il.ibm.com>
18493
18494 PR tree-optimization/31041
18495 * tree-vect-transform.c (get_initial_def_for_induction): Call
18496 force_gimple_operand.
18497
18498 2007-03-17 Olga Golovanevsky <olga@il.ibm.com>
18499
18500 * ipa-type-escape.c (look_for_casts) : Revert code to use
18501 handled_component_p due to ada test a-numaux.adb.
18502
18503 2007-03-17 Kazu Hirata <kazu@codesourcery.com>
18504
18505 * final.c (final_scan_insn): Alter the condition of a
18506 conditional trap if we have nonstandard CC.
18507
18508 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
18509
18510 * configure.ac: Remove excess quoting from asm line 0 test.
18511 * configure: Rebuilt.
18512
18513 2007-03-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
18514
18515 * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
18516 * c-common.c (convert_and_check): Move warning logic to...
18517 (warnings_for_convert_and_check): ...here. Define.
18518 * c-common.h (warnings_for_convert_and_check): Declare.
18519
18520 2007-03-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18521
18522 * pa.c (attr_length_call): Partially revert change of 2007-03-09.
18523 (output_call): Likewise.
18524
18525 2007-03-16 Richard Sandiford <richard@codesourcery.com>
18526
18527 * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
18528
18529 2007-03-16 Richard Sandiford <richard@codesourcery.com>
18530
18531 * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
18532
18533 2007-03-16 Uros Bizjak <ubizjak@gmail.com>
18534
18535 * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
18536 opteron, athlon-64 and athlon-fx processor_alias_table entries.
18537
18538 2007-03-16 Sebastian Pop <sebastian.pop@inria.fr>
18539
18540 PR tree-optimization/31183
18541 * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
18542 Use double_int instead of unsigned int for representing access_strides.
18543 * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
18544
18545 2007-03-16 Richard Guenther <rguenther@suse.de>
18546
18547 PR tree-optimization/31146
18548 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
18549 to allow recursion of forward_propagate_addr_expr.
18550 (forward_propagate_addr_into_variable_array_index): Likewise.
18551 (forward_propagate_addr_expr): Likewise.
18552 (tree_ssa_forward_propagate_single_use_vars): Likewise.
18553 (forward_propagate_addr_expr_1): Recurse on simple copies
18554 instead of propagating into them. Do so for useless conversions
18555 as well.
18556 (forward_propagate_addr_expr): Clean up unused statements after
18557 recursion.
18558
18559 2007-03-16 Richard Guenther <rguenther@suse.de>
18560
18561 * builtins.c (expand_builtin_cexpi): Use the right argument
18562 for the expansion via cexp.
18563
18564 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
18565
18566 * configure.ac: Don't require ELF binutils to tolerate # 0 "".
18567 * configure: Rebuilt.
18568
18569 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
18570
18571 PR debug/29906
18572 * dwarf2out.c (force_type_die): Adjust comment.
18573 (dwarf2out_imported_module_or_decl): Handle base AT_import types.
18574
18575 2007-03-15 DJ Delorie <dj@redhat.com>
18576
18577 * config/frv/predicates.md (minmax_operator): Don't check operands
18578 here.
18579
18580 2007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
18581
18582 * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
18583 Update constant estimates of number of iterations.
18584 (record_nonwrapping_iv): Add "upper" argument. "data_size_bounds_p"
18585 argument renamed to "realistic".
18586 (compute_estimated_nb_iterations): Removed.
18587 (record_niter_bound): New function.
18588 (idx_infer_loop_bounds): For possible but unlikely tail arrays,
18589 call record_nonwrapping_iv with upper = false.
18590 (infer_loop_bounds_from_signedness): Pass upper argument to
18591 record_nonwrapping_iv.
18592 (estimate_numbers_of_iterations_loop): Do not call
18593 compute_estimated_nb_iterations. Record estimate based on profile
18594 information. Initialize the constant estimates of number of
18595 iterations.
18596 * tree-data-ref.c (estimated_loop_iterations): Return the recorded
18597 estimates.
18598 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
18599 number of iterations is too small.
18600 * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
18601 (EST_NOT_AVAILABLE): Removed.
18602 (struct loop): Replace estimated_nb_iterations by any_upper_bound,
18603 nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
18604 fields.
18605
18606 2007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
18607
18608 * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
18609 Handle NE_EXPR guards.
18610
18611 2007-03-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
18612
18613 PR c++/24924
18614 * c-opts.c (c_common_post_options): Handle C++ post-processing here.
18615 Set also -pedantic-errors by default for the preprocessor unless
18616 -fpermissive is given.
18617
18618 2007-03-15 Richard Guenther <rguenther@suse.de>
18619
18620 PR middle-end/29719
18621 PR middle-end/31161
18622 * builtins.c (expand_builtin_cexpi): As a fallback if we
18623 don't have builtins for sincos or cexp create a function
18624 declaration for cexp and expand to a call to that.
18625 (expand_builtin_int_roundingfn): Always fall
18626 back to floor/ceil and its variants even if they may be
18627 not available.
18628
18629 2007-03-15 Steven Bosscher <steven@gcc.gnu.org>
18630
18631 PR middle-end/31159
18632 * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
18633 jump tables, move the call to delete_dead_jumptables from here...
18634 (cfg_layout_finalize): ...to here. But rebuild jump labels first.
18635 * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
18636 don't allow merging of blocks that try_redirect_by_replacing_jump
18637 also does not handle when not optimizing.
18638
18639 2007-03-15 Uros Bizjak <ubizjak@gmail.com>
18640 Francois-Xavier Coudert <coudert@clipper.ens.fr>
18641
18642 * config/i386/i386.md (x86_sahf_1): Correctly handle
18643 HAVE_AS_IX86_SAHF.
18644
18645 2007-03-15 Uros Bizjak <ubizjak@gmail.com>
18646
18647 PR target/31167
18648 * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
18649 x86_64_general_operand as operand[2] predicate. Remove "iF"
18650 from operand constraints and use "e" constraint instead.
18651 (*subti3_1, *subti3_1 splitter): Ditto.
18652 (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
18653 operand[1] predicate.
18654
18655 2007-03-14 Sebastian Pop <sebastian.pop@inria.fr>
18656
18657 * tree-loop-linear.c (gather_interchange_stats): For multidimensional
18658 arrays, multiply the access strides by the size of the sub-array.
18659 * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
18660
18661 2007-03-14 Uros Bizjak <ubizjak@gmail.com>
18662
18663 * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
18664 the configured assembler supports the sahf mnemonic.
18665 * configure: Regenerate.
18666 * config.in: Regenerate.
18667
18668 * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
18669 emit "sahf" or ".byte\t0x9e" as asm template.
18670
18671 2007-03-14 Michael Meissner <michael.meissner@amd.com>
18672
18673 PR 31018
18674 * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
18675 option to replace hard coded TARGET_xxx in md file.
18676 (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
18677 (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
18678 (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
18679 (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
18680 (X86_TUNE_NOT_UNPAIRABLE): Ditto.
18681 (X86_TUNE_NOT_VECTORMODE): Ditto.
18682 (TUNE_SHORTEN_X87_SSE): Use new tuning option.
18683 (TUNE_AVOID_VECTOR_DECODE): Ditto.
18684 (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
18685 (TUNE_SLOW_IMUL_IMM8): Ditto.
18686 (TUNE_MOVE_M1_VIA_OR): Ditto.
18687 (TUNE_NOT_UNPAIRABLE): Ditto.
18688 (TUNE_NOT_VECTORMODE): Ditto.
18689
18690 * config/i386/i386.c (ix86_tune_features): Fill in new tuning
18691 options.
18692
18693 * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
18694 tuning options instead of hard coded TARGET_xxx.
18695 (fix ssemode peephole2's): Ditto.
18696 (imul peephole2's): Ditto.
18697 (movsi_or): Ditto.
18698 (movdi_or_rex64): Ditto.
18699 (move peephole2): Ditto.
18700 (not peephole2's): Ditto.
18701
18702 2007-03-14 Dirk Mueller <dmueller@suse.de>
18703
18704 * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
18705 * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
18706 * c-parser.c (c_parser_if_body): Always add an empty statement in case
18707 of empty body.
18708 * c-parser.c (c_parser_do_statement): Warn about empty body in
18709 do/while statement.
18710 * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
18711 * doc/invoke.texi (-Wempty-body): Update documentation.
18712
18713 2007-03-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
18714
18715 PR c/21438
18716 * c-common.h (warn_for_div_by_zero): Declare.
18717 * c-common.c (warn_for_div_by_zero): Define.
18718 * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
18719 warning.
18720
18721 2007-03-14 Richard Sandiford <richard@codesourcery.com>
18722
18723 * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
18724 to PREFIX and STANDARD_PREFIX.
18725
18726 2007-03-14 Richard Sandiford <richard@codesourcery.com>
18727 Phil Edwards <phil@codesourcery.com>
18728
18729 * gthr-vxworks.h: Add an extern "C" wrapper for C++.
18730 (__gthread_once_t): Remove busy field for RTPs.
18731 (__GTHREAD_ONCE_INIT): Update accordingly.
18732
18733 2007-03-14 Richard Sandiford <richard@codesourcery.com>
18734
18735 * doc/invoke.texi: Document VxWorks options.
18736
18737 2007-03-14 Uros Bizjak <ubizjak@gmail.com>
18738
18739 * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
18740
18741 2007-03-13 Seongbae Park <seongbae.park@gmail.com>
18742
18743 PR tree-optimization/30590
18744 * tree-nrv.c (tree_nrv): Check for the partial update of the
18745 return value.
18746
18747 2007-03-13 Alexandre Oliva <aoliva@redhat.com>
18748
18749 * flags.h (flag_random_seed): Remove declaration, in favor of...
18750 * toplev.h (get_random_seed, set_random_seed): ... these.
18751 * tree.c (get_file_function_name): Use the former.
18752 * opts.c (common_handle_option): Use the latter.
18753 * toplev.c
18754
18755 2007-03-13 Steven Bosscher <steven@gcc.gnu.org>
18756
18757 PR middle-end/31127
18758 * cse.c (cse_find_path): Do not bail out if a basic block that
18759 we already visited now becomes part of a path that starts at a
18760 different basic block. Just disallow this, to make sure we
18761 visit each basic block at most once.
18762
18763 2007-03-13 Jan Hubicka <jh@suse.cz>
18764
18765 * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold
18766 attributes, when profile esitmate is present, calls with very low
18767 frequency are cold.
18768
18769 2007-03-13 Zdenek Dvorak <dvorakz@suse.cz>
18770
18771 PR tree-optimization/30730
18772 PR tree-optimization/26900
18773 * tree-ssa-loop-niter.c: Include gmp.h.
18774 (bounds): New type.
18775 (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
18776 split_to_var_and_offset, determine_value_range,
18777 bound_difference_of_offsetted_base, refine_bounds_using_guard,
18778 bound_difference, bounds_add, bounds_negate,
18779 number_of_iterations_ne_max, dump_affine_iv): New functions.
18780 (number_of_iterations_ne, number_of_iterations_lt_to_ne,
18781 assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
18782 difference of initial and final value of control iv to validate
18783 results.
18784 (number_of_iterations_cond): Add loop parameter. Determine bounds
18785 on the difference of the extremes of the control iv. Add dumps.
18786 (expand_simple_operations): Handle phi nodes.
18787 (simplify_using_initial_conditions): Do not record used conditions.
18788 (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
18789 Do not set additional_info.
18790 (implies_nonnegative_p, implies_ge_p): Removed.
18791 (derive_constant_upper_bound): Do not use parameter `additional'.
18792 (record_estimate): Parameter `additional' removed. Parameter
18793 `i_bound' added. Do not call derive_constant_upper_bound.
18794 (record_nonwrapping_iv): Use derive_constant_upper_bound to
18795 bound the number of iterations estimate.
18796 (estimate_numbers_of_iterations_loop): Pass the estimate from
18797 the number of iterations analysis to record_estimate.
18798 * tree.h (multiple_of_p): Declare.
18799 * tree-scalar-evolution.c (expression_expensive_p): Removed.
18800 (scev_const_prop): Do not check expression_expensive_p.
18801 * fold-const.c (multiple_of_p): Exported.
18802 * double-int.c (double_int_mask): Exported.
18803 * double-int.h (double_int_mask): Declare.
18804 * tree-flow.h (struct tree_niter_desc): Removed additional_info
18805 field. Added max field.
18806
18807 2007-03-13 David Taylor <taylor@candd.org>
18808
18809 PR driver/12448:
18810 * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
18811 default -MQ.
18812
18813 2007-03-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18814
18815 PR target/31123
18816 * pa.md (vdepi_ior): Don't allow zero length deposit. Likewise for
18817 two unamed patterns.
18818
18819 2007-03-13 Uros Bizjak <ubizjak@gmail.com>
18820
18821 * config/i386/i386.opt (mcx16, msahf): New options.
18822 * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
18823 (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
18824
18825 * config/i386/driver-i386.c (bit_LAHF_LM): New define.
18826 (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
18827 Output -mcx16 and -msahf options when corresponding bit is set.
18828
18829 * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
18830 and -msahf options.
18831
18832 2007-03-13 Alexandre Oliva <aoliva@redhat.com>
18833
18834 * configure.ac: Test for assembler tolerance to # 0 "".
18835 * configure, config.in: Rebuilt.
18836 * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
18837
18838 2007-03-13 Geoffrey Keating <geoffk@apple.com>
18839
18840 * doc/invoke.texi (Spec Files): Update for '%{,' spec.
18841
18842 * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
18843 (handle_syscall): Handle direct system calls.
18844 * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
18845
18846 2007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
18847
18848 * doc/invoke.texi: Fix cpp.info cross-reference.
18849 * doc/passes.texi: Fix gcc.info cross-reference.
18850
18851 2007-03-12 Zdenek Dvorak <dvorakz@suse.cz>
18852
18853 PR tree-optimization/30835
18854 * lambda-code.c (can_convert_to_perfect_nest): Check whether
18855 bb_for_stmt is not NULL before accessing it.
18856
18857 2007-03-12 Joseph Myers <joseph@codesourcery.com>
18858
18859 * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
18860 some multilibs.
18861
18862 2007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
18863
18864 PR 30635
18865 * doc/install.texi: Document --enable-stage1-languages
18866
18867 2007-03-12 Steven Bosscher <steven@gcc.gnu.org>
18868
18869 * tree-pass.h (pass_into_cfg_layout_mode,
18870 pass_outof_cfg_layout_mode): Declare.
18871 * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
18872 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
18873 * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
18874 (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
18875
18876 2007-03-12 Seongbae Park <seongbae.park@gmail.com>
18877
18878 * c-decl.c (warn_variable_length_array): New function.
18879 Refactored from grokdeclarator to handle warn_vla
18880 and handle unnamed array case.
18881 (grokdeclarator): Refactored VLA warning case.
18882 * c.opt (Wvla): New flag.
18883 * doc/invoke.texi (Wvla): New warning.
18884
18885 2007-03-12 Richard Henderson <rth@redhat.com>
18886
18887 * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
18888 (TARGET_SECTION_TYPE_FLAGS): New.
18889
18890 2007-03-12 Richard Henderson <rth@redhat.com>
18891
18892 * config/darwin.c (machopic_reloc_rw_mask): New.
18893 * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
18894 * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
18895
18896 2007-03-12 Mark Mitchell <mark@codesourcery.com>
18897
18898 * cppdefault.c (cpp_EXEC_PREFIX): New variable.
18899 * cppdefault.h (cpp_PREFIX): Document.
18900 (cpp_PREFIX_len): Likewise.
18901 (cpp_EXEC_PREFIX): New variable.
18902 * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
18903 * c-incpath.c (add_standard_paths): Correct logic for relocating
18904 paths within prefix.
18905
18906 2007-03-12 Uros Bizjak <ubizjak@gmail.com>
18907
18908 * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
18909 fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
18910 mode macro.
18911 (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
18912 fix_truncdfdi_sse using SSEMODEF mode macro.
18913 (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
18914 fix_truncdfsi_sse using SSEMODEF mode macro.
18915 (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
18916 (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
18917
18918 2007-03-12 Richard Sandiford <richard@codesourcery.com>
18919
18920 * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
18921 elfos.h to tm_file.
18922
18923 2007-03-12 Olga Golovanevsky <olga@il.ibm.com>
18924
18925 * tree.h : Add multiple_of_p declaration.
18926 * fold-const.c (multiple_of_p): Make multiple_of_p public.
18927 * ipa-type-escape.c (results_of_malloc): Redundant.
18928 (visited_stmts): New. Visited stmt for walk_use_def_chains.
18929 (cast_type): Extended with new members.
18930 (check_cast): Returns cast_type.
18931 (cast): New structure for data of walk_use_def_chains.
18932 (is_malloc_result, is_cast_from_non_pointer_1,
18933 is_cast_from_non_pointer,
18934 is_array_access_through_pointer_and_index): New functions.
18935 (look_for_casts): Returns cast types.
18936 (check_call): Returns void.
18937 (okay_pointer_operation): Use support of pointer plus index,
18938 pointer plus constant and allow all multiplications.
18939
18940 2007-03-11 Richard Guenther <rguenther@suse.de>
18941
18942 PR tree-optimization/31115
18943 * tree-vrp.c (extract_range_from_binary_expr): Make sure
18944 the shift count is positive and non-anti-range for RSHIFT_EXPR.
18945 A shift count of zero is not special as with *_DIV_EXPR.
18946 (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
18947 direction.
18948
18949 2007-03-11 Ian Lance Taylor <iant@google.com>
18950
18951 * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
18952 the *_DIV_EXPR codes correctly with overflow infinities.
18953
18954 2007-03-11 Ira Rosen <irar@il.ibm.com>
18955
18956 * tree-data-ref.c (analyze_offset): Add a return value (bool) to
18957 indicate success/failure of the analysis. Add negation to subtrahend
18958 in case of subtraction. Fail if both operands contain constants.
18959 (create_data_ref): Fail if analyze_offset fails.
18960
18961 2007-03-11 Uros Bizjak <ubizjak@gmail.com>
18962
18963 * config/i386/i386.md (frndintxf2): Rename to ...
18964 (rintxf2): ... this. Remove expander having same name.
18965 (rintsf2, rintdf2): Implement using SSEMODEF macro.
18966 (roundsf2, rounddf2): Ditto.
18967 (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
18968 (lround<mode>di2, lround<mode>si2): Ditto.
18969
18970 2007-03-11 Steven Bosscher <steven@gcc.gnu.org>
18971
18972 * lower-subreg.c: Include except.h.
18973 (decompose_multiword_subregs): Verify that the only control flow
18974 insns we can split are loads to multi-words pseudos.
18975 Handle breaking such blocks after splitting, instead of calling
18976 find_many_sub_basic_blocks.
18977
18978 * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
18979 on the new basic block. Add a lengthy comment explaining why we
18980 thought this was necessary.
18981 * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
18982
18983 2007-03-10 Mark Mitchell <mark@codesourcery.com>
18984
18985 PR c++/30924
18986 * tree.c (walk_type_fields): Recurse into the element type of
18987 ARRAY_TYPEs if there is a pointer set.
18988
18989 2007-03-10 Dirk Mueller <dmueller@suse.de>
18990
18991 * c-common.c (warn_logical_operator): Fix condition.
18992
18993 2007-03-10 Tobias Schl�ter <tobi@gcc.gnu.org>
18994
18995 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
18996 quotation mark.
18997 * config/darwin.c (machopic_select_section): Remove superfluous
18998 argument in call to categorize_decl_for_section. Remove unused
18999 variable shlib.
19000
19001 2007-03-10 Joseph Myers <joseph@codesourcery.com>
19002
19003 * configure.ac (glibc_header_dir): Set using with_build_sysroot if
19004 defined.
19005 * configure: Regenerate.
19006
19007 2007-03-10 Uros Bizjak <ubizjak@gmail.com>
19008
19009 PR target/31101
19010 * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
19011 (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
19012 (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
19013 Add LABEL_NUSES to emitted label.
19014 * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
19015 branch probability value to emitted jump insn.
19016 * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
19017 Do not check life information and do not re-arrange input operands
19018 for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
19019
19020 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
19021
19022 * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
19023 the change of decode_asm_operands.
19024
19025 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
19026
19027 * mode-switching.c (create_pre_exit): Skip blockage insn.
19028
19029 2007-03-09 Diego Novillo <dnovillo@redhat.com>
19030
19031 * tree-pass.h (TODO_update_smt_usage): Remove.
19032 Update all users.
19033 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
19034 argument SOME.
19035 Update all users.
19036
19037 2007-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19038
19039 * pa.c (attr_length_call): Revise condition for long
19040 pc-relative branch.
19041 (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long
19042 local calls on the SOM target. Don't use "LONG_PIC_PCREL" call
19043 sequence on SOM target.
19044
19045 2007-03-09 Geoffrey Keating <geoffk@apple.com>
19046
19047 * gcc.c: Document %{, in big comment at top.
19048 (input_suffix_matches): Remove special handling for .s and
19049 .S.
19050 (input_spec_matches): New.
19051 (handle_braces): Handle %{,.
19052 (validate_switches): ',' indicates a value which is not a switch.
19053 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
19054 to detect assembler input.
19055 * config/i386/sol2.h (CPP_SPEC): Likewise.
19056 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
19057 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
19058 * config/rs6000/lynx.h (ASM_SPEC): Likewise.
19059 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
19060 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
19061 -m64 causes deployment target to default to 10.5.
19062 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
19063
19064 2007-03-09 Richard Henderson <rth@redhat.com>
19065
19066 PR target/26090
19067 * target.h (targetm.asm.out.reloc_rw_mask): New.
19068 * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
19069 (TARGET_ASM_OUT): Use it.
19070 * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
19071 * varasm.c (categorize_decl_for_section): Remove shlib argument;
19072 use the new reloc_rw_mask target hook instead.
19073 (default_section_type_flags_1): Merge into...
19074 (default_section_type_flags): ... here.
19075 (decl_readonly_section_1): Merge into...
19076 (decl_readonly_section): ... here.
19077 (default_elf_select_section_1): Merge into...
19078 (default_elf_select_section): ... here.
19079 (default_unique_section_1): Merge into...
19080 (default_unique_section): ... here.
19081 (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
19082 (default_select_rtx_section): Use it.
19083 (default_elf_select_rtx_section): Likewise.
19084 * output.h: Update to match.
19085 * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
19086 * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
19087 (TARGET_ASM_RELOC_RW_MASK): New.
19088 * config/i386/i386.c (x86_64_elf_select_section): Adjust call
19089 to categorize_decl_for_section.
19090 (x86_64_elf_unique_section): Likewise.
19091 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
19092 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
19093 (TARGET_ASM_RELOC_RW_MASK): New.
19094 * config/ia64/ia64.c (ia64_rwreloc_select_section,
19095 ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
19096 (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
19097 (TARGET_RWRELOC): Remove.
19098 (ia64_section_type_flags): Adjust call to default_section_type_flags.
19099 * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
19100 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
19101 (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
19102 (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
19103 (rs6000_xcoff_select_section): Use decl_readonly_section.
19104 (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
19105 * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
19106 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
19107 (TARGET_SECTION_TYPE_FLAGS): Remove.
19108 * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
19109
19110 2007-03-09 Roger Sayle <roger@eyesopen.com>
19111
19112 * fold-const.c (fold_comparison): Remove compile-time evaluation of
19113 complex constant equality/inequality comparisons for here.
19114 (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
19115 known at compile-time or can be simplified to a scalar comparison.
19116 (fold_relational_const): Move compile-time evaluation of complex
19117 constant equality/inequality comparisons to here.
19118
19119 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
19120
19121 PR rtl-optimization/30643
19122 * cse.c (cse_insn): Recompute dest_hash after insert_regs for
19123 dest_addr_elt.
19124 (fold_rtx): Recurse, like before 2006-11-03.
19125
19126 2007-03-09 DJ Delorie <dj@redhat.com>
19127
19128 * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
19129 m32c-pragma.o.
19130
19131 2007-03-09 Aldy Hernandez <aldyh@redhat.com>
19132
19133 PR tree-optimization/30375
19134 * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
19135 LHS of statements is not the same.
19136 * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
19137
19138 2007-03-09 Chao-ying Fu <fu@mips.com>
19139
19140 * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
19141 REV 2.
19142 * doc/invoke.texi (-mdspr2): Document new option.
19143 * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
19144 New unspec for DSP REV 2.
19145 (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
19146 these instructions are extended in DSP REV 2.
19147 (mips-dspr2.md): Include.
19148 * config/mips/mips.opt (mdspr2): New option.
19149 * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
19150 MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
19151 MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
19152 (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
19153 (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
19154 (dsp_bdesc): Add DSP REV 2 builtins. Remove 32-bit only DSP builtins.
19155 (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
19156 and 2 builtins.
19157 (bdesc_map): Add one field of unsupported_target_flags.
19158 (bdesc_arrays): Update entries to have extra fields. Add
19159 dsp_32only_bdesc.
19160 (mips_init_builtins): Initialize new function types.
19161 Check unsupported_target_fileds to filter out builtins.
19162 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
19163 TARGET_DSPR2.
19164 (ASM_SPEC): Pass mdspr2 to the assembler.
19165 * config/mips/mips-dspr2.md: New file.
19166
19167 2007-03-09 Sa Liu <saliu@de.ibm.com>
19168
19169 * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
19170
19171 2007-03-09 Ian Lance Taylor <iant@google.com>
19172
19173 * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
19174 argument) like -Wstrict-overflow=2.
19175 * doc/invoke.texi (Warning Options): Update documentation.
19176
19177 2007-03-09 Dirk Mueller <dmueller@suse.de>
19178
19179 PR c++/17946
19180 * doc/invoke.texi (-Wlogical-op): Document.
19181 * common.opt (-Wlogical-op): New.
19182 * c-common.h (warn_logical_operator): Declare.
19183 * c-common.c (warn_logical_operator): Define.
19184 * c-typeck.c (parser_build_binary_op): Call
19185 warn_logical_operator.
19186
19187 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
19188
19189 * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
19190 * final.c (final_scan_insn): Test for non-"" file name.
19191
19192 2007-03-09 Sebastian Pop <sebastian.pop@inria.fr>
19193
19194 * doc/loop.texi: Document the Omega linear constraints solver.
19195 * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
19196 omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
19197 omega-hash-table-size, omega-max-keys, and
19198 omega-eliminate-redundant-constraints.
19199 * tree-pass.h (pass_check_data_deps): Declared.
19200 * omega.c: New.
19201 * omega.h: New.
19202 * timevar.def (TV_CHECK_DATA_DEPS): Declared.
19203 * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
19204 pass_check_data_deps): New.
19205 * tree-data-ref.c (init_data_ref): Remove declaration.
19206 (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
19207 (analyze_array): Renamed init_array_ref, move up initializations.
19208 (init_data_ref): Renamed init_pointer_ref. Moved before its call.
19209 Removed arguments that are set to NULL.
19210 (analyze_indirect_ref): Correct indentation, correct call to
19211 init_pointer_ref.
19212 (object_analysis): Call init_array_ref instead of analyze_array.
19213 (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
19214 (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
19215 of DR_ACCESS_FNS_ADDR.
19216 (init_omega_eq_with_af, omega_extract_distance_vectors,
19217 omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
19218 ddr_consistent_p): New.
19219 (compute_affine_dependence): Check consistency of ddrs when
19220 flag_check_data_deps is passed.
19221 (analyze_all_data_dependences): Uncomment.
19222 (tree_check_data_deps): New.
19223 * tree-data-ref.h: Include omega.h.
19224 (DR_ACCESS_FNS_ADDR): Removed.
19225 (data_dependence_relation): Add inner_loop.
19226 (DDR_INNER_LOOP): New.
19227 * common.opt (fcheck-data-deps): New.
19228 * tree-flow.h (tree_check_data_deps): Declare.
19229 * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
19230 (OBJS-common): Depend on omega.o.
19231 (omega.o): Define.
19232 * passes.c (pass_check_data_deps): Scheduled.
19233 * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
19234 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
19235 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
19236 PARAM_VECT_MAX_VERSION_CHECKS,
19237 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
19238
19239 2007-03-09 Richard Guenther <rguenther@suse.de>
19240
19241 PR tree-optimization/30904
19242 PR middle-end/31058
19243 * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
19244 the same way as *_DIV_EXPR.
19245
19246 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
19247
19248 * recog.c (decode_asm_operands): No mixed declarations and code.
19249
19250 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
19251
19252 * rtl.def (ASM_INPUT): Add location.
19253 * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
19254 (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
19255 (decode_asm_operands): Add loc operand.
19256 (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
19257 * stmt.c (expand_asm): Rename to...
19258 (expand_asm_loc): ... this. Add locus argument. Pass it on to
19259 gen_rtx_ASM_INPUT_loc.
19260 (expand_asm_expr): Adjust.
19261 * recog.c (decode_asm_operands): Add loc operand.
19262 (check_asm_operands, extract_insn): Adjust.
19263 * reload1.c (maybe_fix_stack_asms): Likewise.
19264 * final.c (asm_insn_count): Likewise.
19265 (final_scan_insn): Output # line before and after asm.
19266
19267 2007-03-09 Daniel Berlin <dberlin@dberlin.org>
19268
19269 * tree-ssa-structalias.c (variable_info): Remove
19270 finished_solution.
19271 (new_var_info): Ditto.
19272 (shared_bitmap_info_t): New structure.
19273 (shared_bitmap_table): New variable.
19274 (shared_bitmap_hash): New function.
19275 (shared_bitmap_eq): Ditto
19276 (shared_bitmap_lookup): Ditto.
19277 (shared_bitmap_add): Ditto.
19278 (merge_smts_into): Change to take bitmap directly.
19279 (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
19280 (init_alias_vars): Init shared bitmap hashtable.
19281 (delete_points_to_sets): Delete shared bitmap hashtable.
19282 * tree-ssa-operands.c (add_virtual_operand): Partially revert the
19283 is_aliased removal as a change that was still necessary was
19284 deleted.
19285
19286 2007-03-09 Uros Bizjak <ubizjak@gmail.com>
19287
19288 * config/i386/i386.h (override_options): Conditionally disable
19289 x86_sahf for 64bit targets only.
19290
19291 2007-03-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
19292
19293 PR C/31072
19294 * c-decl.c (merge_decls): Don't call make_var_volatile.
19295 * varasm.c (make_var_volatile): Remove.
19296 * output.h (make_var_volatile): Remove.
19297
19298 2007-03-08 Zdenek Dvorak <dvorakz@suse.cz>
19299
19300 PR tree-optimization/31085
19301 * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
19302
19303 2007-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19304
19305 * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
19306 llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
19307 ATTR_CONST_NOTHROW_LIST.
19308
19309 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
19310 FIX_TRUNC_EXPR.
19311
19312 2007-03-08 Diego Novillo <dnovillo@redhat.com>
19313
19314 * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
19315
19316 2007-03-08 Geoffrey Keating <geoffk@apple.com>
19317
19318 PR 31013
19319 * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
19320 is declared.
19321 * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
19322 passed, use shared libgcc.
19323
19324 2007-03-08 Roger Sayle <roger@eyesopen.com>
19325
19326 * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
19327 instead of calling build2 with a GIMPLE_MODIFY_STMT.
19328 (honor_protect_cleanup_actions, lower_try_finally_switch):
19329 Likewise.
19330 * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
19331 ifc_temp_var): Likewise.
19332 * tree-inline.c (setup_one_parameter): Likewise.
19333 * tree-mudflap.c (mf_decl_cache_locals,
19334 mf_build_check_statement_for): Likewise.
19335 * tree-nested.c (init_tmp_var, save_tmp_var,
19336 finalize_nesting_tree_1): Likewise.
19337 * tree-outof-ssa.c (insert_copy_on_edge,
19338 insert_backedge_copies): Likewise.
19339 * tree-profile.c (tree_gen_edge_profiler,
19340 tree_gen_ic_profiler): Likewise.
19341 * tree-scalar-evolution.c (scev_const_prop): Likewise.
19342 * tree-sra.c (sra_build_assignment): Likewise.
19343 * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
19344 * tree-ssa-math-opts.c (insert_reciprocals,
19345 execute_cse_sincos_1): Likewise.
19346 * tree-tailcall.c (adjust_accumulator_values,
19347 adjust_return_value): Likewise.
19348 * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
19349 * tree-vect-transform.c (vect_create_data_ref_ptr,
19350 bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
19351 vect_create_epilog_for_reduction, vectorizable_reduction,
19352 vectorizable_call, vectorizable_conversion,
19353 vectorizable_assignment, vectorizable_operation,
19354 vectorizable_type_demotion, vect_gen_widened_results_half,
19355 vect_permute_store_chain, vectorizable_store,
19356 vect_setup_realignment, vect_permute_load_chain,
19357 vectorizable_load, vectorizable_condition,
19358 vect_create_cond_for_align_checks): Likewise.
19359 * tree-vrp.c (build_assert_expr_for): Likewise.
19360
19361 2007-03-08 Ian Lance Taylor <iant@google.com>
19362
19363 * tree-vrp.c: Include "intl.h".
19364 (usable_range_p): New static function.
19365 (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
19366 overflowed values, juts set *strict_overflow_p.
19367 (compare_values): Only return -2 if one of the operands is not a
19368 constant.
19369 (compare_ranges): Call usable_range_p.
19370 (compare_range_with_value): Likewise.
19371 (vrp_evaluate_conditional_warnv): Rename from
19372 vrp_evaluate_conditional. Make static. Change all callers.
19373 (vrp_evaluate_conditional): New function.
19374 (simplify_div_or_mod_using_ranges): Issue warning about reliance
19375 on signed overflow.
19376 (simplify_abs_using_ranges): Likewise.
19377 (simplify_stmt_for_jump_threading): Add within_stmt parameter.
19378 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
19379 within_stmt parameter.
19380 * tree-ssa-propagate.c (fold_predicate_in): Update call to
19381 vrp_evaluate_conditional.
19382 * tree-ssa-threadedge.c
19383 (record_temporary_equivalences_from_stmts_at_dest): Change
19384 simplify parameter to take a second tree parameter.
19385 (simplify_control_stmt_condition): Likewise.
19386 (thread_across_edge): Likewise.
19387 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
19388 (thread_across_edge): Likewise.
19389 * Makefile.in (tree-vrp.o): Depend upon intl.h.
19390
19391 2007-03-08 Uros Bizjak <ubizjak@gmail.com>
19392
19393 * config/i386/i386.h (TARGET_SAHF): New define.
19394 * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
19395 Also enable for m_K8, m_AMDFAM10 and m_CORE2.
19396 (x86_sahf): New global variable.
19397 (override_options): Add PTA_NO_SAHF to pta_flags enum. Recode
19398 pta_flags masks using shifts. Add PTA_NO_SAHF to x86_64 and
19399 nocona processor flags. Set x86_sahf when PTA_NO_SAHF is not set
19400 in processor flags. Do not unconditionally disable TARGET_USE_SAHF
19401 for 64-bit.
19402 (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
19403 (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
19404 when expanding fcomi/sahf based tests.
19405 (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
19406 expanding sahf based alternative. Emit sahf based sequence when
19407 optimizing for code size.
19408 * config/i386/i386.md (x86_sahf_1): Do not disable for
19409 TARGET_64BIT, enable for TARGET_SAHF.
19410
19411 2007-03-08 Martin Michlmayr <tbm@cyrius.com>
19412
19413 * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
19414 spurious whitespace from error message.
19415
19416 2007-03-08 Volker Reichelt <reichelt@netcologne.de>
19417
19418 PR c++/30852
19419 * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
19420
19421 2007-03-08 Alexandre Oliva <aoliva@redhat.com>
19422
19423 * c-decl.c (grokdeclarator): Disable warnings for anonymous
19424 bitfields.
19425 * tree-sra.c (instantiate_element): Propagate disabled warnings
19426 from the element itself to the created variable.
19427
19428 2007-03-07 Richard Henderson <rth@redhat.com>
19429
19430 PR target/30848
19431 * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
19432 silently fix up the stack in the case of a missing register.
19433
19434 2007-03-07 Paul Brook <paul@codesourcery.com>
19435
19436 * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
19437
19438 2007-03-07 Joseph Myers <joseph@codesourcery.com>
19439
19440 * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
19441 New.
19442 (phase1_vrs): Use them.
19443 (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
19444 (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
19445 __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
19446 (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
19447 __gnu_Unwind_Restore_WMMXC if required.
19448 (_Unwind_VRS_Pop): Implement iWMMXt support.
19449 * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
19450 gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
19451 gnu_Unwind_Save_WMMXC): Define.
19452
19453 2007-03-07 Richard Sandiford <richard@codesourcery.com>
19454
19455 * config/vxworks.h (vxworks_override_options): Declare.
19456 (VXWORKS_OVERRIDE_OPTIONS): Use it.
19457 * config/vxworks.c: Include target.h and toplev.h.
19458 (vxworks_override_options): New function.
19459 * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
19460
19461 2007-03-07 Andreas Krebbel <krebbel1@de.ibm.com>
19462
19463 * config/s390/s390.c (override_options): Don't emit an error when
19464 -mstack-size is used without providing -mstack-guard.
19465 (s390_emit_prologue): Choose stack_guard value automatically if not
19466 provided via command line.
19467 * doc/invoke.texi: Adjust description of -mstack-guard and
19468 -mstack-size.
19469
19470 2007-03-07 Richard Sandiford <richard@codesourcery.com>
19471
19472 * config/i386/i386.c (output_set_got): Add a GOT initialization
19473 sequence for VxWorks PIC.
19474 (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
19475 around labels as well as symbols. Use gotoff_operand instead
19476 of local_symbolic_operand.
19477 (legitimize_pic_address): Use gotoff_operand instead of
19478 local_symbolic_operand. Use @GOT accesses for labels as
19479 well as symbols.
19480 (ix86_output_addr_diff_elt): Use PC-relative rather than
19481 GP-relative offsets for VxWorks PIC.
19482 (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
19483 no_new_pseudos. Check whether the returned register is op0.
19484 * config/i386/i386.md (tablejump): Use PC-relative rather than
19485 GP-relative offsets for VxWorks PIC.
19486 * config/i386/predicates.md (gotoff_operand): New predicate.
19487
19488 2007-03-06 Richard Sandiford <richard@codesourcery.com>
19489
19490 * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
19491 before defining.
19492 * config/vxworks-dummy.h: New file.
19493 * config/i386/i386.h: Include it.
19494
19495 2007-03-07 Alexandre Oliva <aoliva@redhat.com>
19496
19497 * dwarf2out.c (is_inlined_entry_point): New
19498 (add_high_low_attributes): Emit DW_AT_entry_pc along with
19499 DW_AT_ranges if the first subblock is the entry point.
19500
19501 2007-03-06 David Daney <ddaney@avtrex.com>
19502
19503 * doc/install.texi (mips-*-*): Change recommended binutils
19504 version.
19505
19506 2007-03-06 Anatoly Sokolov <aesok@post.ru>
19507
19508 * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
19509 ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
19510 devices.
19511 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
19512 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
19513
19514 2007-03-06 Jan Hubicka <jh@suse.cz>
19515
19516 * errors.h (warning, error, fatal, internal_error): Mark as cold.
19517 * predict.c (maybe_hot_bb): Cold functions are never hot; hot
19518 functions are hot.
19519 (probably_cold_bb_p): Cold functions are cold.
19520 (probably_never_executed_bb_p): Cold functions are cold.
19521 (tree_bb_level_predictions): Predict calls to cold functions as not
19522 taken.
19523 (compute_function_frequency): Check hot/cold attributes.
19524 * function.h (function_frequency): Update comments.
19525 * predict.def (PRED_COLD_FUNCTION): Predict cold function.
19526 * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
19527 (c_common_att): Add cold and hot.
19528
19529 * doc/extend.texi (hot,cold attributes): Document.
19530
19531 2007-03-06 Andrew Haley <aph@redhat.com>
19532
19533 * function.c (expand_function_end): Move blockage to just after we
19534 emit the label for the naked return from the function.
19535
19536 2007-03-06 Richard Sandiford <richard@codesourcery.com>
19537
19538 * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
19539 before redefining.
19540
19541 2007-03-06 Jan Hubicka <jh@suse.cz>
19542
19543 * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
19544 loaded for constant large models. Non-large 64bit PIC can do.
19545 * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
19546 * cmodel.h: Add LARGE PIC.
19547 * i386.md (UNSPEC_PLTOFF): New.
19548 (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other
19549 unspecs as needed.
19550 (*call_1_rex64): Disable for large models.
19551 (*call_1_rex64_large): New.
19552 (*call_value_1_rex64): Disable for large models.
19553 (*call_value_1_rex64_large): New.
19554 (set_rip_rex4): New.
19555 (set_got_offset_rex64): New.
19556 * predicates.md (constant_call_address_operand): For large model
19557 constant calls are not possible.
19558 * i386-protos.h (construct_plt_address): Declare.
19559 * i386.c (override_options): Accept large models.
19560 (ix86_expand_prologue): Expand large PIC GOT pointer load.
19561 (legitimate_constant_p): Add new UNSPECs.
19562 (legitimate_pic_operand_p): Likewise.
19563 (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
19564 (legitimize_pic_address): Do easy RIP relative way for TLS only for
19565 non-large model.
19566 (output_pic_addr_const): Add PLTOFF.
19567 (ix86_output_addr_diff_elt): Output 64bit tables when needed.
19568 (ix86_expand_move): Legitimize pic address when in PIC mode.
19569 (construct_plt_address): New function.
19570 (ix86_expand_call): Offload the address to register and use GOT
19571 pointer for large model.
19572 * invoke.texi (mcmodel=large): Update documentation.
19573
19574 2007-03-06 Richard Henderson <rth@redhat.com>
19575
19576 * config/i386/i386.c (x86_use_leave, x86_push_memory,
19577 x86_zero_extend_with_and, x86_movx, x86_double_with_add,
19578 x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
19579 x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
19580 x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
19581 x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
19582 x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
19583 x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
19584 x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
19585 x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
19586 x86_partial_reg_dependency, x86_memory_mismatch_stall,
19587 x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
19588 x86_sse_partial_reg_dependency, x86_sse_split_regs,
19589 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
19590 x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
19591 x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
19592 x86_schedule, x86_use_bt, x86_pad_returns,
19593 x86_use_xchgb): Merge into ...
19594 (ix86_tune_features): ... here. New array.
19595 (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
19596 x86_bswap): Merge into ...
19597 (ix86_arch_features): ... here. New array.
19598 (x86_3dnow_a): Remove.
19599 (x86_accumulate_outgoing_args): Make static.
19600 (x86_arch_always_fancy_math_387): Make static.
19601 (ix86_tune_mask, ix86_arch_mask): Move ...
19602 (override_options): ... to local variables here. Apply the
19603 appropriate mask to each element of ix86_arch_features and
19604 ix86_tune_features. Adjust TARGET_CMOVE and TARGET_USE_SAHF
19605 as were done in the old macros.
19606 (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
19607 * config/i386/i386.h (x86_use_leave, x86_push_memory,
19608 x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
19609 x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
19610 x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
19611 x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
19612 x86_read_modify_write, x86_read_modify, x86_split_long_moves,
19613 x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
19614 x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
19615 x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
19616 x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
19617 x86_partial_reg_dependency, x86_memory_mismatch_stall,
19618 x86_accumulate_outgoing_args, x86_prologue_using_move,
19619 x86_epilogue_using_move, x86_decompose_lea,
19620 x86_arch_always_fancy_math_387, x86_shift1,
19621 x86_sse_partial_reg_dependency, x86_sse_split_regs,
19622 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
19623 x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
19624 x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
19625 x86_use_incdec, x86_pad_returns, x86_bswap,
19626 x86_partial_flag_reg_stall): Remove.
19627 (enum ix86_tune_indices): New.
19628 (ix86_tune_features): New.
19629 (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
19630 TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
19631 TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
19632 TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
19633 TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
19634 TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
19635 TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
19636 TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
19637 TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
19638 TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
19639 TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
19640 TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
19641 TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
19642 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
19643 TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
19644 TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
19645 TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
19646 TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
19647 TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
19648 TARGET_EXT_80387_CONSTANTS): Use it.
19649 (enum ix86_arch_indices): New.
19650 (ix86_arch_features): New.
19651 (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
19652 TARGET_BSWAP): Use it.
19653 (ix86_tune_mask, ix86_arch_mask): Remove.
19654
19655 2007-03-06 Joseph Myers <joseph@codesourcery.com>
19656
19657 PR bootstrap/31020
19658 * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
19659 Define using $${sysroot_headers_suffix}.
19660 * configure: Regenerate.
19661 * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
19662 multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
19663 defined.
19664 * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
19665 * gcc.c (print_sysroot_headers_suffix): New.
19666 (option_map): Include --print-sysroot-headers-suffix.
19667 (display_help): Mention -print-sysroot-headers-suffix.
19668 (process_command): Handle -print-sysroot-headers-suffix.
19669 (do_spec_1): Append multilib directory to include-fixed path if
19670 sysroot suffixes in use.
19671 (main): Handle -print-sysroot-headers-suffix.
19672 * Makefile.in (start.encap): Don't depend on xlimits.h
19673 (xlimits.h): Remove.
19674 (stmp-int-hdrs): Don't depend on xlimits.h. Inline generation of
19675 limits.h for each multilib in fixinc_list.
19676 (fixinc_list, s-fixinc_list): New.
19677 (stmp-fixinc): Depend on fixinc_list. If not copying headers,
19678 generate them for each multilib in fixinc_list.
19679 (stmp-fixproto): Use include-fixed. Run fixproto for each
19680 multilib in fixinc_list.
19681 (mostlyclean): Don't remove xlimits.h.
19682 (clean): Remove include-fixed.
19683 (real-install-headers-tar, real-install-headers-cpio,
19684 real-install-headers-cp): Don't copy include, only include-fixed.
19685 (install-mkheaders): Depend on fixinc_list. Don't depend on
19686 xlimits.h. Save limits.h files for each multilib in fixinc_list.
19687 Always save mkinstalldirs. Preserve ${sysroot_headers_suffix} in
19688 SYSTEM_HEADER_DIR setting in mkheaders.conf.
19689
19690 2007-03-06 Jan Hubicka <jh@suse.cz>
19691
19692 * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
19693 NANs easilly.
19694
19695 2007-03-06 Richard Sandiford <richard@codesourcery.com>
19696
19697 * configure.ac: Allow tm_file to contain build-directory files.
19698 * configure: Regenerate.
19699 * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
19700 * config/m68k/t-uclinux (sysroot-suffix.h): New target.
19701 * config/m68k/print-sysroot-suffix.sh: New file.
19702
19703 2007-03-06 Richard Sandiford <richard@codesourcery.com>
19704
19705 * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
19706 of pic_offset_table_rtx if reload_completed.
19707 (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
19708 PIC_OFFSET_TABLE_REGNUM.
19709 * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
19710 return true.
19711 (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
19712 (m68k_output_mi_thunk): Rewrite to use RTL. Honor vcall_offset.
19713
19714 2007-03-06 Richard Sandiford <richard@codesourcery.com>
19715
19716 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
19717 functions that call eh_return.
19718
19719 2007-03-06 Richard Sandiford <richard@codesourcery.com>
19720
19721 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
19722 functions that need a constant pool.
19723
19724 2007-03-06 Richard Sandiford <richard@codesourcery.com>
19725
19726 PR target/28181
19727 * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
19728 (m68k_preferred_reload_class): Likewise.
19729 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
19730 (SECONDARY_RELOAD_CLASS): Define.
19731 (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
19732 (LIMIT_RELOAD_CLASS): Delete.
19733 * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
19734 registers from storing bytes.
19735 (m68k_secondary_reload_class): New function.
19736 (m68k_preferred_reload_class): Likewise.
19737
19738 2007-03-06 Richard Sandiford <richard@codesourcery.com>
19739
19740 * config/m68k/m68k.c (m68k_save_reg): Remove special case for
19741 leaf functions.
19742 (m68k_expand_prologue): Likewise.
19743
19744 2007-03-06 Richard Sandiford <richard@codesourcery.com>
19745
19746 * config/m68k/m68k-protos.h (output_sibcall): Declare.
19747 (mips_expand_epilogue): Add a bool parameter.
19748 (m68k_legitimize_sibcall_address): Declare.
19749 * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
19750 (m68k_expand_epilogue): Add a parameter to select between sibling
19751 and normal epilogues. Only generate a return for the latter.
19752 (m68k_ok_for_sibcall_p): New function.
19753 (m68k_legitimize_sibcall_address, output_sibcall): New functions.
19754 * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
19755 (sibcall_value, *sibcall_value): Likewise.
19756 (*call, *call_value): Require !SIBLING_CALL_P.
19757 (epilogue): Update call to m68k_expand_epilogue.
19758 (sibcall_epilogue): New pattern.
19759 * config/m68k/predicates.md (const_call_operand): Say that this
19760 predicate applies to sibling calls too.
19761 (sibcall_operand): New predicate.
19762
19763 2007-03-06 Richard Sandiford <richard@codesourcery.com>
19764
19765 * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
19766 alternatives as movsi_cf.
19767 (movsf_cf_hard): Add commentary.
19768
19769 2007-03-06 Kazu Hirata <kazu@codesourcery.com>
19770 Richard Sandiford <richard@codesourcery.com>
19771
19772 * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
19773 (m68k_movem_pattern_p, m68k_output_movem): Likewise.
19774 (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
19775 * config/m68k/m68k.h (EPILOGUE_USES): Define. Treat all registers
19776 as being live on exit from an interrupt function.
19777 (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
19778 * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
19779 (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
19780 (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
19781 (m68k_interrupt_function_p): Globalize.
19782 (m68k_compute_frame_layout): Remove reverse mask code.
19783 (m68k_emit_movem, m68k_set_frame_related): New functions.
19784 (m68k_output_function_prologue): Delete in favor of...
19785 (m68k_expand_prologue): ...this new function.
19786 (m68k_output_function_epilogue): Delete in favor of...
19787 (m68k_expand_epilogue): ...this new function.
19788 (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
19789 functions.
19790 (print_operand): Handle %?.
19791 * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
19792 (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
19793 (prologue, epilogue): New patterns.
19794 (return): Turn into a define_expand.
19795 (*return): New pattern, derived from old "return" pattern. Use rte
19796 rather than rts for interrupt functions. Only use rtd if the pop
19797 count is nonzero.
19798 (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
19799 (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
19800 (link, *link, unlink, *unlink, load_got): Likewise.
19801
19802 2007-03-06 Richard Sandiford <richard@codesourcery.com>
19803
19804 PR target/23482
19805 PR target/17114
19806 * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
19807 (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
19808 (m68k_matches_q_p, m68k_matches_u_p): Likewise.
19809 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
19810 and m68k_matches_u_p.
19811 (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
19812 (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
19813 (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
19814 (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
19815 (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
19816 (REG_STRICT_P): New macro.
19817 (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
19818 PCREL_GENERAL_OPERAND_OK.
19819 (REG_OK_FOR_BASE_P): Merge definitions. Use REG_STRICT_P and
19820 m68k_legitimate_base_reg_p.
19821 (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
19822 (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
19823 (PIC_CASE_VECTOR_ADDRESS): Update comment.
19824 * config/m68k/m68k.c (m68k_address): New structure.
19825 (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
19826 (m68k_decompose_index, m68k_legitimate_constant_address_p)
19827 (m68k_jump_table_ref_p, m68k_decompose_address)
19828 (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
19829 (m68k_matches_u_p): New functions.
19830 (print_operand_address): Rewrite to use m68k_decompose_index.
19831
19832 2007-03-05 David Taylor <dtaylor@emc.com>
19833
19834 * gcc.c: Correct copyright date in --version output.
19835
19836 2007-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19837
19838 * pa.md: In unamed move patterns, disparge copies between general
19839 and floating point registers using '?' modifier. Don't include 'f'
19840 constraint for register preferences in DImode, SImode, HImode and
19841 QImode patterns. Likewise for 'r' in DFmode and SFmode patterns.
19842 Remove constraints for copies between general and floating registers
19843 in soft-float DFmode pattern.
19844 (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
19845 floating register.
19846 (movsf): Likewise.
19847
19848 2007-03-05 Mike Stump <mrs@apple.com>
19849
19850 * c-common.c (targetcm): Add.
19851 * c-opts.c (c_common_handle_option): Handle language specific
19852 target options.
19853 * opts.c (handle_option): Verify language for target options, if
19854 any are given.
19855 * opth-gen.awk: Add CL_LANG_ALL.
19856 * target-def.h (TARGET_HANDLE_C_OPTION): Add.
19857 (TARGETCM_INITIALIZER): Add.
19858 * target.h (struct gcc_targetcm): Add.
19859 (targetcm): Add.
19860 * targhooks.c (default_handle_c_option): Add.
19861 * targhooks.h (default_handle_c_option): Add.
19862 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
19863
19864 * config/darwin.opt (iframework): Add.
19865 * config/darwin.h (TARGET_HAS_TARGETCM): Add.
19866 * config/darwin-c.c (handle_c_option): Add.
19867 (TARGET_HANDLE_C_OPTION): Add.
19868 (targetcm): Add.
19869 * doc/invoke.texi (Darwin Options): Add -iframework.
19870
19871 2007-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19872
19873 * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
19874 conversion.
19875
19876 2007-03-05 Ian Lance Taylor <iant@google.com>
19877
19878 * c.opt (fgnu89-inline): New option.
19879 * c-opts.c (c_common_post_options): Set default value for
19880 flag_gnu89_inline.
19881 * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
19882 (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
19883 inline functions.
19884 (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
19885 (grokdeclarator, start_function): Likewise.
19886 * c-cppbuiltin.c (c_cpp_builtins): Define either
19887 __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
19888 * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
19889 (C Dialect Options): Document -fgnu89-inline.
19890 * doc/extend.texi (Function Attributes): Explain what the
19891 gnu_inline attribute does.
19892 * doc/cpp.texi (Common Predefined Macros): Document
19893 __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
19894
19895 2007-03-05 Ian Lance Taylor <iant@google.com>
19896
19897 PR tree-optimization/31034
19898 * tree-vrp.c (extract_range_from_assert): Don't try to handle a
19899 half-range if the other side is an overflow infinity.
19900
19901 2007-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
19902
19903 * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
19904 (bfin*-linux-uclibc*): New configuration.
19905 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
19906 defining.
19907 * config/bfin/linux.h: New file.
19908 * config/bfin/libgcc-bfin.ver: New file.
19909 * config/bfin/t-bfin-uclinux: New file.
19910 * config/bfin/t-bfin-linux: New file.
19911 * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
19912 (TARGET_OS_CPP_BUILTINS): New macro.
19913
19914 2007-03-05 Richard Guenther <rguenther@suse.de>
19915
19916 * fold-const.c (fold_binary): Remove duplicate folding
19917 of comparison of non-null ADDR_EXPR against null.
19918
19919 2007-03-05 Richard Guenther <rguenther@suse.de>
19920 Dorit Nuzman <dorit@il.ibm.com>
19921
19922 PR tree-optimization/26420
19923 * tree-vectorizer.c (vectorize_loops): Bail out early if there
19924 are no loops in the function. Only print the number of
19925 vectorized loops if it is greater than zero or we are supposed
19926 to print information about unvectorized loops.
19927
19928 2007-03-05 Revital Eres <eres@il.ibm.com>
19929
19930 * gcc.dg/var-expand1.c: New test.
19931 * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
19932 when an accumulator is expanded.
19933
19934 2007-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19935
19936 PR other/30465
19937 * c-common.c (convert_and_check): Don't give warnings for
19938 conversion if 'expr' already overflowed.
19939
19940 2007-03-04 Roger Sayle <roger@eyesopen.com>
19941
19942 PR middle-end/30744
19943 * fold-const.c (fold_comparison): Enforce type consistency when
19944 transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
19945
19946 2007-03-04 Zdenek Dvorak <dvorakz@suse.cz>
19947
19948 * tree-ssa-address.c (create_mem_ref): Do not put an expression
19949 containing a cast to the base of TARGET_MEM_REF.
19950
19951 2007-03-04 Martin Michlmayr <tbm@cyrius.com>
19952
19953 * tree.c (tree_contains_struct_check_failed): Remove spurious
19954 whitespace from error message.
19955
19956 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
19957
19958 PR target/30406
19959 * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
19960 instead of precision.
19961
19962 2007-03-04 Roman Zippel <zippel@linux-m68k.org>
19963 Nathan Sidwell <nathan@codesourcery.com>
19964
19965 * emit-rtl.c (find_auto_inc): New.
19966 (try_split): recreate REG_INC notes,
19967 Use regular for loops rather than whiles.
19968
19969 2007-03-03 Andreas Schwab <schwab@suse.de>
19970
19971 * configure.ac (HAVE_AS_REL16): Move test back to correct place.
19972 * configure: Regenerate.
19973
19974 2007-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19975
19976 * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
19977 flag_rounding_math, not flag_unsafe_math_optimizations.
19978
19979 * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
19980 fold_build2.
19981 * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
19982 alpha_fold_vector_minmax): Likewise.
19983 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
19984 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
19985
19986 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
19987
19988 * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
19989 (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
19990 if the lhs has side-effects.
19991 <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
19992
19993 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
19994
19995 * config/i386/i386.h (TUNEMASK): Remove define.
19996 (ARCHMASK): Remove define.
19997 (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
19998 Use ix86_arch_mask variable instead of ARCHMASK.
19999 * config/i386/i386.c (override_options): Ditto.
20000 (standard_80387_constant_p): Ditto.
20001
20002 2007-03-02 Ian Lance Taylor <iant@google.com>
20003
20004 Used signed infinities in VRP.
20005 * tree-vrp.c (uses_overflow_infinity): New static function.
20006 (supports_overflow_infinity): New static function.
20007 (make_overflow_infinity): New static function.
20008 (negative_overflow_infinity): New static function.
20009 (positive_overflow_infinity): New static function.
20010 (is_negative_overflow_infinity): New static function.
20011 (is_positive_overflow_infinity): New static function.
20012 (is_overflow_infinity): New static function.
20013 (overflow_infinity_range_p): New static function.
20014 (compare_values_warnv): New function split out of compare_values.
20015 (compare_value): Call it.
20016 (set_value_range_to_nonnegative): Add overflow_infinity
20017 parameter. Change caller.
20018 (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
20019 Change callers.
20020 (vrp_expr_computes_nonzero): Likewise.
20021 (compare_ranges, compare_range_with_value): Likewise.
20022 (compare_name_with_value, compare_names): Likewise.
20023 (vrp_evaluate_conditional): Likewise.
20024 (set_value_range): Handle infinity
20025 (vrp_operand_equal_p, operand_less_p): Likewise.
20026 (extract_range_from_assert): Likewise.
20027 (vrp_int_const_binop): Likewise.
20028 (extract_range_from_binary_expr): Likewise.
20029 (extract_range_from_unary_expr): Likewise.
20030 (extract_range_from_comparison): Likewise.
20031 (extract_range_from_expr): Likewise.
20032 (dump_value_range): Likewise.
20033 (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
20034 (test_for_singularity): Likewise.
20035 (vrp_int_const_binop): Remove inline qualifier.
20036 (adjust_range_with_scev): Add comment.
20037 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
20038
20039 2007-03-02 Diego Novillo <dnovillo@redhat.com>
20040
20041 * tree-ssa-structalias.c (could_have_pointers): Tidy.
20042 (get_constraint_for): Likewise.
20043 (do_structure_copy): Likewise.
20044 (find_func_aliases): Fix references to MODIFY_EXPR.
20045 (intra_create_variable_infos): Tidy.
20046 * tree-ssa-operands.c (add_virtual_operand): Add argument
20047 IS_CALL_SITE.
20048 When adding members of alias sets, if IS_CALL_SITE is true and
20049 the symbol is not call-clobbered, skip it.
20050 Adjust all callers.
20051
20052 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
20053
20054 * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
20055 entry by means of emit_insn_at_entry.
20056
20057 2007-03-02 Richard Henderson <rth@redhat.com>
20058
20059 * expr.h (promoted_input_arg): Remove decl.
20060 * function.c (promoted_input_arg): Merge into ...
20061 * combine.c (setup_incoming_promotions): ... only caller.
20062 Rearrange to avoid double loop.
20063
20064 2007-03-02 Ben Elliston <bje@au.ibm.com>
20065 Peter Bergner <bergner@vnet.ibm.com>
20066 Janis Johnson <janis187@us.ibm.com>
20067
20068 * config/rs6000/dfp.md: New file.
20069 * config/rs6000/rs6000.md: Include dfp.md.
20070 (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
20071 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
20072 and TDmode decimal float modes in FP registers.
20073 (num_insns_constant): Likewise.
20074 (rs6000_legitimate_offset_address_p): Likewise.
20075 (rs6000_legitimize_address): Likewise.
20076 (rs6000_legitimize_reload_address): Likewise.
20077 (rs6000_legitimate_address): Likewise.
20078 (rs6000_emit_move): Likewise.
20079 (function_arg_boundary): Likewise.
20080 (function_arg_advance): Likewise.
20081 (rs6000_darwin64_record_arg_recurse): Likewise.
20082 (function_arg): Likewise.
20083 (rs6000_gimplify_va_arg): Likewise.
20084 (rs6000_split_multireg_move): Likewise.
20085 (rs6000_output_function_epilogue): Likewise.
20086 (rs6000_output_function_epilogue): Likewise.
20087 (rs6000_register_move_cost): Likewise.
20088 (rs6000_function_value): Likewise.
20089 (rs6000_libcall_value): Likewise.
20090
20091 2007-03-02 Richard Sandiford <richard@codesourcery.com>
20092
20093 * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
20094
20095 2007-03-02 Richard Sandiford <richard@codesourcery.com>
20096
20097 * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
20098 Use $MULTIDIR to choose between the kernel and RTP headers,
20099 and use $WIND_BASE and $WIND_USR to locate them.
20100
20101 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
20102
20103 * config/i386/i386.c (override_options): Put initialization of
20104 ix86_tune_mask and ix86_arch_mask to the correct place.
20105
20106 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
20107 Michael Meissner <michael.meissner@amd.com>
20108
20109 PR target/31019
20110 * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
20111 (ARCHMASK): Define.
20112 (TARGET_CMOVE): Use ARCHMASK.
20113 (TARGET_CMPXCHG): Ditto.
20114 (TARGET_CMPXCHG8B): Ditto.
20115 (TARGET_XADD): Ditto.
20116 (TARGET_BSWAP): Ditto.
20117 * config/i386/i386.c (ix86_tune_mask): New global variable.
20118 (ix86_arch_mask): Ditto.
20119 (override_options): Initialize ix86_tune_mask and
20120 ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
20121 target_flags.
20122
20123 2007-03-02 Ben Elliston <bje@au.ibm.com>
20124
20125 PR 30992
20126 * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
20127
20128 2007-03-02 Joseph Myers <joseph@codesourcery.com>
20129
20130 * target.h (init_dwarf_reg_sizes_extra): New target hook.
20131 * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
20132 * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
20133 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
20134 hook.
20135 * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
20136 rs6000_init_dwarf_reg_sizes_extra): New.
20137 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
20138 SPE register high parts.
20139
20140 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
20141
20142 * Makefile.in: Add install-pdf target as
20143 copied from automake v1.10 rules.
20144 * configure.ac: Add install-pdf to target list.
20145 * configure: Regenerate.
20146
20147 2007-03-01 Paul Brook <paul@codesourcery.com>
20148
20149 * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
20150 modes to LDRD for DImode.
20151 (output_move_double): Fixup out of range ldrd/strd.
20152 (vfp_secondary_reload_class): Rename...
20153 (coproc_secondary_reload_class): ... to this. Add wb argument.
20154 * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
20155 coproc_secondary_reload_class for CLASS_IWMMXT.
20156 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
20157 * arm-protos.h (coproc_secondary_reload_class): Update prototype.
20158
20159 2007-03-01 Zdenek Dvorak <dvorakz@suse.cz>
20160
20161 * tree-ssa-loop-prefetch.c (determine_unroll_factor): Bound the
20162 unroll factor by the estimated number of iterations.
20163 (loop_prefetch_arrays): Do not prefetch in loops that iterate less
20164 than prefetch latency.
20165
20166 * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
20167 decode_caches_intel, detect_caches_intel): New functions.
20168 (host_detect_local_cpu): Use detect_caches_amd and
20169 detect_caches_intel.
20170
20171 2007-03-01 Richard Henderson <rth@redhat.com>
20172
20173 * expr.c (emit_move_complex_push): Export.
20174 (emit_move_complex_parts): Split out from ...
20175 (emit_move_complex): ... here.
20176 * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
20177 * config/i386/i386.md (movcdi): New.
20178
20179 2007-03-01 Uros Bizjak <ubizjak@gmail.com>
20180
20181 * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
20182 size of mode1 to check for tieable modes in MMX case.
20183
20184 2007-03-01 Richard Sandiford <richard@codesourcery.com>
20185
20186 * Makefile.in (rtlanal.o): Depend on tree.h.
20187 * rtl.h (offset_within_section_p, split_const): Declare.
20188 * rtlanal.c: Include tree.h.
20189 (offset_within_block_p): New function, taken from
20190 mips_offset_within_object_p.
20191 (split_const): New function, taken from mips_split_const.
20192 * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
20193 Declare.
20194 * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
20195 (CONSTANT_ADDRESS_P): Only accept legitimate constants.
20196 (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
20197 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
20198 (m68k_illegitimate_symbolic_constant_p): New function.
20199 * config/m68k/m68k.md (movsi): Remove misleading predicates.
20200 If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
20201 symbolic constant that might be outside the symbol's section,
20202 move the symbol first and then add the offset.
20203 * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
20204 Override.
20205 * config/mips/mips.c (mips_split_const): Delete.
20206 (mips_offset_within_object_p): Delete.
20207 (mips_symbolic_constant_p): Use offset_within_section_p and
20208 split_const instead of mips_offset_within_object_p and
20209 mips_split_const.
20210 (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
20211 (mips_legitimize_const_move, print_operand_reloc)
20212 (mips_dangerous_for_la25_p): Use split_const instead of
20213 mips_split_const.
20214
20215 2007-02-28 Eric Christopher <echristo@apple.com>
20216
20217 * Makefile.in (install-include-dir): Don't rm -rf include.
20218
20219 2007-02-28 Richard Guenther <rguenther@suse.de>
20220
20221 PR middle-end/30364
20222 * fold-const.c (fold_binary): Do not associate expressions
20223 with more than one variable for integer types that do not wrap.
20224
20225 2007-02-28 Sandra Loosemore <sandra@codesourcery.com>
20226
20227 * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
20228 Delete, and replace with...
20229 (fold_builtin_call_array): This. Update callers to use it.
20230 * fold-const.c (fold_build_call_list): Delete, and replace with...
20231 (fold_build_call_array): This.
20232 (fold_build_call_list_initializer): Delete, and replace with...
20233 (fold_build_call_array_initializer): This.
20234 * tree.h: Update declarations to reflect above changes.
20235
20236 * c-typeck.c (build_function_call): Store converted arguments
20237 in a stack-allocated array instead of building a list.
20238 (convert_arguments): Store arguments in the array passed in as an
20239 argument, and return the actual number of arguments.
20240 * c-format.c: (check_function_format): Pass arguments in an
20241 array instead of a list.
20242 * c-common.c (check_function_nonnull): Likewise.
20243 (check_function_sentinel): Likewise.
20244 (check_function_arguments): Likewise.
20245 * c-common.h: Update declarations to reflect above changes.
20246
20247 2007-02-28 Jan Hubicka <jh@suse.cz>
20248
20249 * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
20250 PRED_NEGATIVE_RETURN): Update outcomes.
20251
20252 2007-02-28 Bernd Schmidt <bernd.schmidt@analog.com>
20253
20254 * calls.c (emit_library_call_value_1): Handle partial registers
20255 correctly when building up CALL_INSN_FUNCTION_USAGE.
20256
20257 2007-02-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20258
20259 * pa/predicates.md (move_src_operand): Allow zero for mode.
20260 * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
20261 move pattern.
20262
20263 2007-02-27 Uros Bizjak <ubizjak@gmail.com>
20264
20265 PR target/30970
20266 * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
20267 *movv2df_internal): Enable pattern only for valid operand
20268 combinations.
20269 * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
20270 tie only 128bit modes. For MMX registers, tie only 64bit modes.
20271
20272 2007-02-27 Mike Stump <mrs@apple.com>
20273
20274 * config/darwin-crt3.c: Avoid compilation when compiling for a
20275 kext multilib.
20276
20277 2007-02-27 Joseph Myers <joseph@codesourcery.com>
20278
20279 * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
20280 FIXED_INCLUDE_DIR.
20281 (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
20282 for fixed headers and limits.h.
20283 (install-include-dir, install-headers-tar, install-headers-cpio,
20284 install-headers-cp, real-install-headers-tar,
20285 real-install-headers-cpio, real-install-headers-cp): Handle
20286 include-fixed as well as include.
20287 (install-mkheaders): Don't install files that go only in include
20288 not include-fixed.
20289 * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
20290 from GCC_INCLUDE_DIR.
20291 * gcc.c (process_command): Remove special -BstageN/ handling.
20292 (do_spec_1): Add include-fixed directories.
20293
20294 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
20295
20296 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
20297 _smulsi3_highpart.
20298 * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
20299 New functions.
20300 * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
20301 patterns.
20302
20303 2007-02-27 Mark Mitchell <mark@codesourcery.com>
20304
20305 * c-common.c (get_priority): Add check for
20306 SUPPORTS_INIT_PRIORITY.
20307
20308 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
20309
20310 * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
20311
20312 * config/bfin/bfin.c: Include "cfglayout.h".
20313 (MAX_LSETUP_DISTANCE): New macro.
20314 (struct loop_info): New members incoming, incoming_src and
20315 incoming_dest. Delete member predecessor.
20316 (length_for_loop): New function.
20317 (bfin_optimize_loop): Handle more different loop structures.
20318 (bfin_discover_loop): Rework detection of predecessor blocks by
20319 examining incoming edges.
20320 (bfin_discover_loops, bfin_free_loops): New functions, broken out of
20321 bfin_reorg_loops.
20322 (bfin_reorder_loops): New function.
20323 (bfin_reorg_loops): Use these three new functions.
20324
20325 * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
20326 REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
20327 (CONSTRAINT_LEN): Add entry for 'q'.
20328 (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
20329 Add 'q' constraints.
20330 (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
20331 (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
20332
20333 * config/bfin/bfin.md (add_with_carry): New pattern.
20334 (s_or_u, su_optab, su_modifier): New code macros/attrs.
20335 (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
20336 <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
20337 support unsigned multiplies too. Removed incorrect commutativity from
20338 operand 1 constraint where appropriate.
20339 (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
20340 patterns.
20341 (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
20342 <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
20343 New patterns.
20344 (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
20345 usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
20346 usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
20347 usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
20348 usmulhisi_hh_huh): New patterns.
20349
20350 * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
20351 lshifthi3): Fix output template to use half reg for operand 2.
20352
20353 * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
20354 instead of R2.
20355
20356 * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
20357
20358 2007-02-27 Andreas Schwab <schwab@suse.de>
20359
20360 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
20361
20362 2007-02-27 Jan Hubicka <jh@suse.cz>
20363
20364 * predict.c (last_basic_block_p): Remove.
20365 (tree_estimate_probability): Update return heuristic for commonized
20366 return blocks.
20367
20368 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
20369
20370 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
20371
20372 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
20373
20374 * doc/include/gcc-common.texi (versionsubtitle): New macro.
20375 * doc/cpp.texi: Standardize title page.
20376 * doc/cppinternals.texi: Likewise.
20377 * doc/gcc.texi: Standardize title page, remove version number
20378 from copyright page.
20379 * doc/gccint.texi: Likewise.
20380 * doc/install.texi: Standardize title page, add table of
20381 contents.
20382
20383 2007-02-26 Jan Hubicka <jh@suse.cz>
20384
20385 * predict.def: Set outcomes according to more recent results.
20386 (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
20387 Remove dead predictors.
20388 * predict.c (return_prediction): Fix pasto.
20389
20390 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
20391
20392 * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
20393 change; avoid a memory leak when returning early.
20394
20395 2007-02-26 Mark Mitchell <mark@codesourcery.com>
20396
20397 * c-decl.c (static_ctors): Move to c-common.c.
20398 (static_dtors): Likewise.
20399 (finish_function): Use c_record_cdtor_fn.
20400 (build_cdtor): Move to c-common.c.
20401 (c_write_global_declarations): Use c_build_cdtor_fns.
20402 * c-common.h (static_ctors): Declare.
20403 (static_dtors): Likewise.
20404 (c_record_cdtor_fn): Likewise.
20405 (c_build_cdtor_fns): Likewise.
20406 * c-common.c (static_ctors): New variable.
20407 (static_dtors): Likewise.
20408 (c_record_cdtor_fn): New function.
20409 (build_cdtor): Move from c-decl.c
20410 (c_build_cdtor_fns): New function.
20411
20412 * output.h (assemble_addr_to_section): Declare.
20413 (get_cdtor_priority_section): Likewise.
20414 * varasm.c (assemble_addr_to_section): New function.
20415 (get_cdtor_priority_section): Likewise.
20416 (default_named_section_asm_out_destructor): Use them.
20417 (destor_dtor_section_asm_out_destructor): Likewise.
20418 (default_named_section_asm_out_constructor): Likewise.
20419 (default_ctor_section_asm_out_constructor): Likewise.
20420 * config.gcc (*-*-vxworks*): Include vxworks.o.
20421 * config/t-vxworks (vxworks.o): New target.
20422 * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
20423 (TARGET_ASM_CONSTRUCTOR): Define.
20424 (TARGET_ASM_DESTRUCTOR): Likewise.
20425 (vxworks_asm_out_constructor): Declare.
20426 (vxworks_asm_out_destructor): Likewise.
20427
20428 * c-common.c (get_priority): Check that we have not just an
20429 INTEGER_CST, but an integer constant with integeral type.
20430
20431 2007-02-25 Uros Bizjak <ubizjak@gmail.com>
20432
20433 PR tree-optimization/30938
20434 * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
20435 use &dt[nargs-1] instead of &dt[nargs] in the call to
20436 vect_is_simple_use().
20437
20438 2007-02-25 Ulrich Weigand <uweigand@de.ibm.com>
20439
20440 * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
20441 from register elimination as PRE_MODIFY / POST_MODIFY increments.
20442 Do not attempt to handle MEM inside auto-inc expressions.
20443 * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
20444 of a register modified by an auto-inc expression. However, do handle
20445 elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
20446 (elimination_effects): Prohibit elimination of a register modified
20447 by an auto-inc expression. Disable register elimination rules whose
20448 target register is modified by an auto-inc expression with variable
20449 increment.
20450
20451 2007-02-25 Zdenek Dvorak <dvorakz@suse.cz>
20452
20453 * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
20454 off-by-one error.
20455 (array_at_struct_end_p): New function.
20456 (idx_infer_loop_bounds): Use it.
20457 (estimate_numbers_of_iterations_loop): Export.
20458 * predict.c (predict_loops): Use estimated_loop_iterations_int.
20459 Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
20460 (tree_estimate_probability): Call record_loop_exits.
20461 * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
20462 (estimated_loop_iterations, estimated_loop_iterations_int,
20463 estimated_loop_iterations_tree): New functions.
20464 (analyze_siv_subscript_cst_affine,
20465 compute_overlap_steps_for_affine_1_2,
20466 analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
20467 (analyze_miv_subscript): Use estimated_loop_iterations_tree.
20468 * predict.def (PRED_LOOP_ITERATIONS): Update comment.
20469 (PRED_LOOP_ITERATIONS_GUESSED): New.
20470 * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
20471 * cfgloop.h (estimate_numbers_of_iterations_loop,
20472 estimated_loop_iterations_int): Declare.
20473
20474 2007-02-25 Mark Mitchell <mark@codesourcery.com>
20475
20476 * doc/extend.texi: Document optional priority argument to
20477 constructors and destructors.
20478 * tree.c (init_priority_for_decl): Adjust GTY markers.
20479 (init_ttree): Use priority-info hash functions for
20480 init_priority_for_decl.
20481 (tree_map_eq): Rename to ...
20482 (tree_map_base_eq): ... this.
20483 (tree_map_marked_p): Rename to ...
20484 (tree_map_base_marked_p): ... this.
20485 (tree_map_base_hash): New function.
20486 (decl_init_priority_lookup): Rework.
20487 (decl_fini_priority_lookup): New function.
20488 (decl_priority_info): New function.
20489 (decl_init_priority_insert): Use it.
20490 (decl_fini_priority_insert): Likewise.
20491 (decl_restrict_base_lookup): Adjust for refactoring of tree_map
20492 hierarchy.
20493 (decl_restrict_base_insert): Likewise.
20494 (decl_debug_expr_insert): Likewise.
20495 (decl_value_expr_lookup): Likewise.
20496 (decl_value_expr_insert): Likewise.
20497 * tree.h (priority_type): New type.
20498 (decl_init_priority_lookup): Use priority_type.
20499 (decl_fini_priority_lookup): New function.
20500 (decl_init_priority_insert): Use priority_type.
20501 (decl_fini_priority_insert): New function.
20502 (DECL_HAS_INIT_PRIORITY): Tweak comments.
20503 (DECL_INIT_PRIORITY): Likewise.
20504 (SET_DECL_INIT_PRIORITY): Add comment.
20505 (DECL_FINI_PRIORITY): New macro.
20506 (SET_DECL_FINI_PRIORITY): Likewise.
20507 (DEFAULT_INIT_PRIORITY): Document.
20508 (MAX_INIT_PRIORITY): Likewise.
20509 (MAX_RESERVED_INIT_PRIORITY): Likewise.
20510 (tree_map_base): New type.
20511 (tree_map_base_eq): New function.
20512 (tree_map_base_hash): Likewise.
20513 (tree_map_base_marked_p): Likewise.
20514 (tree_map): Inherit from tree_map_base.
20515 (tree_map_eq): Make it a macro.
20516 (tree_map_marked_p): Likewise.
20517 (tree_int_map): Inherit from tree_map_base.
20518 (tree_int_map_eq): Make it a macro.
20519 (tree_int_map_hash): Likewise.
20520 (tree_int_map_marked_p): Likewise.
20521 (tree_priority_map): New type.
20522 (tree_priority_map_eq): New macro.
20523 (tree_priority_map_hash): Likewise.
20524 (tree_priority_map_marked_p): Likewise.
20525 * varasm.c (emults_decl): Adjust for refactoring of tree_map
20526 hierarchy.
20527 (emutls_common_1): Likewise.
20528 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
20529 * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
20530 of tree_map hierarchy.
20531 * tree-cfg.c (move_stmt_r): Likewise.
20532 (new_label_mapper): Likewise.
20533 * c-tree.h (c_expand_body): Move to ...
20534 * c-common.h (c_expand_body): ... here.
20535 * c-decl.c (c_expand_body): Move to ...
20536 * c-common.c (c_expand_body): ... here.
20537 (c_common_attribute_table): Allow 1 argument for the constructor
20538 and destructor attributes.
20539 (get_priority): New function.
20540 (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
20541 (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
20542
20543 2007-02-24 Jan Hubicka <jh@suse.cz>
20544
20545 PR middle-end/30509
20546 * tree-inline.c (copy_bb): Produce exact copy of EH info when
20547 copying for inlining.
20548
20549 2007-02-24 Uros Bizjak <ubizjak@gmail.com>
20550 Jan Hubicka <jh@suse.cz>
20551
20552 PR target/30778
20553 * i386.c (counter_mode): New function.
20554 (expand_set_or_movmem_via_loop): Use it.
20555 (expand_movmem_epilogue): Likewise; fix pasto.
20556 (ix86_expand_movmem): Do emit guard even for constant counts.
20557 (ix86_expand_setmem): Likewise.
20558
20559 2007-02-25 Nick Clifton <nickc@redhat.com>
20560
20561 * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
20562 (JUMP_TABLES_IN_TEXT_SECTION): Define.
20563
20564 2007-02-24 Uros Bizjak <ubizjak@gmail.com>
20565
20566 PR target/30770
20567 * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
20568 count argument with 0x10, not with 0x16.
20569 (expand_setmem_epilogue): Ditto.
20570
20571 2007-02-24 Mike Stump <mrs@apple.com>
20572
20573 * config/i386/i386.c (output_pic_addr_const): Stubify optimized
20574 symbols.
20575
20576 2007-02-24 Richard Guenther <rguenther@suse.de>
20577
20578 PR middle-end/30951
20579 * fold-const.c (fold_binary): Fold x +- CST op x for
20580 EQ_EXPR and NE_EXPR.
20581
20582 2007-02-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20583
20584 * pa.md (muldi3): Force subregs to registers in 64-bit expander.
20585
20586 2007-02-24 Jan Hubicka <jh@suse.cz>
20587
20588 * cgraphunit.c (decide_is_function_needed): Honor
20589 -fkeep-inline-functions.
20590
20591 2007-02-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20592
20593 * builtins.c (fold_builtin_modf): New.
20594 (fold_builtin_2): Use it.
20595
20596 2007-02-24 Bernd Schmidt <bernd.schmidt@analog.com>
20597
20598 * loop-iv.c (implies_p): Detect additional cases where A implies B.
20599 (determine_max_iter): Take additional LOOP arg; all callers changed.
20600 Lose broken logic dealing with PLUS. Try to limit the upper bound by
20601 one using simplifications.
20602 (simplify_using_initial_values): Return if the expression becomes
20603 invalid due to altered regs.
20604
20605 2007-02-23 DJ Delorie <dj@redhat.com>
20606
20607 * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
20608
20609 2007-02-23 Mike Stump <mrs@apple.com>
20610
20611 * tlink.c (scan_linker_output): Parse linker messages from
20612 darwin9's linker better.
20613
20614 2007-02-23 Steve Ellcey <sje@cup.hp.com>
20615
20616 PR debug/29614
20617 * varpool.c (varpool_assemble_pending_decls): Set
20618 varpool_last_needed_node to null.
20619
20620 2007-02-23 DJ Delorie <dj@redhat.com>
20621
20622 * config/i386/i386.c (ix86_data_alignment): Don't specify an
20623 alignment bigger than the object file can handle.
20624
20625 2007-02-23 Uros Bizjak <ubizjak@gmail.com>
20626
20627 PR target/30825
20628 * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
20629 zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
20630 (*movsf_1): Penalize MMX moves.
20631
20632 2007-02-23 Bernd Schmidt <bernd.schmidt@analog.com>
20633
20634 * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
20635 2^32-1 or more times unless flag_unsafe_loop_optimizations.
20636
20637 * loop-iv.c (determine_max_iter): Moved in front of its sole user.
20638
20639 2007-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20640
20641 * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
20642 (fold_builtin_1): Use them.
20643 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
20644 BUILT_IN_SIGNIFICAND.
20645
20646 2007-02-23 H.J. Lu <hongjiu.lu@intel.com>
20647
20648 * config/i386/i386.c (bdesc_1arg): Initialize
20649 IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
20650 "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
20651 (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
20652 and IX86_BUILTIN_MOVSLDUP.
20653
20654 2007-02-22 Paolo Bonzini <bonzini@gnu.org>
20655
20656 PR rtl-optimization/30841
20657 * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
20658
20659 2007-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20660
20661 * builtins.c (fold_builtin_frexp): New.
20662 (fold_builtin_2): Use it.
20663
20664 2007-02-22 Mark Mitchell <mark@codesourcery.com>
20665
20666 * doc/invoke.texi (Spec Files): Document getenv spec function.
20667
20668 * gcc.c (getenv_spec_function): New function.
20669 (static_spec_functions): Add it.
20670 * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
20671 (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
20672 header files.
20673
20674 2007-02-22 Michael Matz <matz@suse.de
20675
20676 PR c++/29433
20677 * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
20678 (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
20679
20680 2007-02-22 Ian Lance Taylor <iant@google.com>
20681
20682 PR debug/30898
20683 * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
20684 (mem_loc_descriptor): Call it.
20685
20686 2007-02-22 Zdenek Dvorak <dvorakz@suse.cz>
20687 Ira Rosen <irar@il.ibm.com>
20688
20689 * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
20690
20691 2007-02-22 Ira Rosen <irar@il.ibm.com>
20692
20693 PR tree-optimization/30843
20694 * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
20695 stores only after all the group is vectorized.
20696
20697 2007-02-22 Dorit Nuzman <dorit@il.ibm.com>
20698
20699 PR tree-optimization/30858
20700 * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
20701 in the reduction cycle have a single use in the loop.
20702 * tree-vectorizer.h (relevant): Add documentation.
20703
20704 2007-02-20 Mike Stump <mrs@apple.com>
20705
20706 * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
20707 * configure: Regenerate.
20708
20709 2007-02-21 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
20710
20711 Change the defaults of some parameters and options.
20712 * config/spu/spu-protos.h (spu_optimization_options): Declare.
20713 * config/spu/spu.c (spu_optimization_options): Add.
20714 (spu_override_options): Change params in spu_optimization_options.
20715 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
20716
20717 Register 127 is only 16 byte aligned when used as a frame pointer.
20718 * config/spu/spu-protos.h (spu_init_expanders): Declare.
20719 * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
20720 HARD_FRAME_POINTER_REGNUM.
20721 (spu_legitimate_address): Use regno_aligned_for_reload.
20722 (regno_aligned_for_load): HARD_FRAME_POINTER_REGNUM is only 16 byte
20723 aligned when frame_pointer_needed is true.
20724 (spu_init_expanders): New. Set alignment of HARD_FRAME_POINTER_REGNUM
20725 to 8 bits.
20726 * config/spu/spu.h (INIT_EXPANDERS): Define.
20727
20728 Make sure shift and rotate instructions have valid immediate operands.
20729 * config/spu/predicates.md (spu_shift_operand): Remove.
20730 * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
20731 * config/spu/constraints.md (W, O): Extend range.
20732 * config/spu/spu.md (umask, nmask): Define.
20733 (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
20734 lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
20735 rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
20736 rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
20737 spu_nonmem_operand instead of spu_shift_operands. Use new modifiers.
20738 (lshr<mode>3_reg): Fix rtl description.
20739
20740 Make sure mulhisi immediate operands are valid.
20741 * config/spu/predicates.md (imm_K_operand): Add.
20742 * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
20743
20744 Generate constants using fsmbi and andi.
20745 * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
20746 (print_operand, spu_split_immediate, classify_immediate,
20747 fsmbi_const_p): Handle IC_FSMBI2.
20748
20749 Correctly handle a CONST_VECTOR containing symbols.
20750 * config/spu/spu.c (print_operand): Handle HIGH correctly.
20751 (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
20752 (immediate_load_p): Allow symbols that use 2 instructions to create.
20753 (classify_immediate, spu_builtin_splats): Don't accept a CONST_VECTOR
20754 with symbols when flag_pic is set.
20755 (const_vector_immediate_p): New.
20756 (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
20757 accept a CONST_VECTOR with symbols.
20758 (spu_legitimate_constant_p): Use const_vector_immediate_p. Don't
20759 accept a CONST_VECTOR with symbols when flag_pic is set. Handle HIGH
20760 correctly.
20761 * config/spu/spu.md (high, low): Delete.
20762 (low_<mode>): Define.
20763
20764 Remove INTRmode and INTR_REGNUM, which didn't work.
20765 * config/spu/spu.c (spu_conditional_register_usage): Remove reference
20766 of INTR_REGNUM.
20767 * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
20768 set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
20769 peephole2 pattern): Don't use INTR or 131.
20770 (movintrcc): Delete.
20771 * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
20772 CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
20773 * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
20774 (UNSPEC_SET_INTR): Add.
20775 * config/spu/spu-modes.def (INTR): Remove.
20776
20777 More accurate warnings about run-time relocations.
20778 * config/spu/spu.c (reloc_diagnostic): Test in_section.
20779
20780 Correctly warn about immediate arguments to specific intrinsics.
20781 * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
20782 (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
20783 the instruction predicate.
20784
20785 Fix tree check errors with latest update.
20786 * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
20787 CALL_EXPR_ARG.
20788 (spu_expand_builtin): Use CALL_EXPR_FN.
20789
20790 Add missing specific intrinsics.
20791 * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
20792 si_bislede.
20793 * config/spu/spu_internals.h: Ditto.
20794
20795 Fix incorrect operand modifiers.
20796 * config/spu/spu-builtins.md (spu_mpy, spu_mpyu): Remove use of %H.
20797 * config/spu/spu.md (xor<mode>3): Change %S to %J.
20798
20799 Optimize one case of zero_extend of a vec_select.
20800 * config/spu/spu.md (_vec_extractv8hi_ze): Add.
20801
20802 Accept any immediate for hbr.
20803 * config/spu/spu.md (hbr): Change s constraints to i.
20804
20805 2007-02-21 Paul Brook <paul@codesourcery.com>
20806
20807 * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
20808 condexec_count when skipping USE and CLOBBER.
20809
20810 2007-02-21 Nick Clifton <nickc@redhat.com>
20811
20812 * common.opt (Warray-bounds): Add Warning attribute.
20813 (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
20814 Likewise.
20815 (fsized-zeroes): Add Optimization attribute.
20816 (fsplit-wide-types, ftree-scev-cprop): Likewise.
20817 * c.opt (Wc++0x-compat): Add Warning attribute.
20818
20819 2007-02-21 Ulrich Weigand <uweigand@de.ibm.com>
20820
20821 PR middle-end/30761
20822 * reload1.c (eliminate_regs_in_insn): In the single_set special
20823 case, attempt to re-recognize the insn before falling back to
20824 having reload fix it up.
20825
20826 2007-02-20 Eric Christopher <echristo@gmail.com>
20827
20828 * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
20829 Rewrite accordingly.
20830 (frv_read_iacc_argument): Ditto.
20831 (frv_expand_set_builtin): Take a call instead of arglist, update for
20832 above changes.
20833 (frv_expand_unop_builtin): Ditto.
20834 (frv_expand_binop_builtin): Ditto.
20835 (frv_expand_cut_builtin): Ditto.
20836 (frv_expand_binopimm_builtin): Ditto.
20837 (frv_expand_voidbinop_builtin): Ditto.
20838 (frv_expand_int_void2arg): Ditto.
20839 (frv_expand_prefetches): Ditto.
20840 (frv_expand_voidtriop_builtin): Ditto.
20841 (frv_expand_voidaccop_builtin): Ditto.
20842 (frv_expand_load_builtin): Ditto.
20843 (frv_expand_store_builtin): Ditto.
20844 (frv_expand_mdpackh_builtin): Ditto.
20845 (frv_expand_mclracc_builtin): Ditto.
20846 (frv_expand_mrdacc_builtin): Ditto.
20847 (frv_expand_mwtacc_builtin): Ditto.
20848 (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
20849 calls for above.
20850
20851 2007-02-20 Janis Johnson <janis187@us.ibm.com>
20852
20853 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
20854 * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
20855 cmpb instruction.
20856 (HAVE_GAS_DFP): Check for assembler support of decimal floating
20857 point instructions.
20858 * configure: Regenerate.
20859 * config.in: Regenerate.
20860 * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
20861 * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
20862 masks to power6 and power6x and to POWERPC_MASKS.
20863 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
20864 _ARCH_PWR6.
20865 * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
20866 * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
20867 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
20868 Access PROTOTYPE as variable, not mask.
20869
20870 2007-02-20 Steven Bosscher <steven@gcc.gnu.org>
20871
20872 * rtl.h (remove_reg_equal_equiv_notes): New prototype.
20873 * rtlanal.c (remove_reg_equal_equiv_notes): New function.
20874 * combine.c (adjust_for_new_dest): Use it.
20875 * postreload.c (reload_combine): Likewise.
20876
20877 2007-02-20 Steven Bosscher <steven@gcc.gnu.org>
20878
20879 * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
20880 notes on an insn with multiple sets, even if single_set returns
20881 non-NULL for that insn.
20882
20883 2007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20884
20885 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
20886 scalbn and scalbln.
20887
20888 2007-02-20 Geoffrey Keating <geoffk@apple.com>
20889
20890 * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
20891 if user didn't pass it.
20892 * config/i386/darwin.h (CC1_SPEC): Likewise.
20893 * config/rs6000/darwin.h (CC1_SPEC): Likewise.
20894 (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
20895 -mmacosx-version-min.
20896
20897 2007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20898 Uros Bizjak <ubizjak@gmail.com>
20899
20900 * optabs.h (enum optab_index): Add new OTI_scalb.
20901 (scalb_optab): Define corresponding macro.
20902 * optabs.c (init_optabs): Initialize scalb_optab.
20903 * genopinit.c (optabs): Implement scalb_optab using scalb?f3
20904 patterns.
20905 * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
20906 BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
20907 (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
20908 and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
20909 flag_unsafe_math_optimizations is set.
20910
20911 * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
20912 to implement scalbf, scalb and scalbl built-ins as inline x87
20913 intrinsics.
20914
20915 2007-02-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20916 DJ Delorie <dj@redhat.com>
20917
20918 PR other/30824
20919 * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
20920 (diagnostic_report_diagnostic): ... here, and turn them into real
20921 errors. If warnings are inhibited, no need to do anything.
20922
20923 2007-02-20 Uros Bizjak <ubizjak@gmail.com>
20924
20925 * config/i386/i386.md (expm1xf2): Reorder insn sequence for
20926 better code generation.
20927
20928 2007-02-20 Ben Elliston <bje@au.ibm.com>
20929
20930 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
20931
20932 2007-02-20 Kazu Hirata <kazu@codesourcery.com>
20933
20934 * config/alpha/alpha.c, config/alpha/alpha.md,
20935 config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
20936 config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
20937 config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
20938 config/arm/lib1funcs.asm: Follow spelling conventions.
20939
20940 * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
20941 config/fr30/fr30.md, config/i386/i386.h,
20942 config/iq2000/iq2000.h, config/iq2000/predicates.md,
20943 config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
20944 config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
20945 config/pdp11/pdp11.c, config/pdp11/pdp11.h,
20946 config/rs6000/altivec.md, config/rs6000/rs6000.c,
20947 config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
20948 config/sparc/sparc.c, config/sparc/sparc.h,
20949 config/sparc/sparc.md, config/spu/constraints.md,
20950 config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
20951 conventions.
20952
20953 2007-02-20 Alan Modra <amodra@bigpond.net.au>
20954
20955 PR target/29943
20956 * varasm.c (use_blocks_for_decl_p): Return false for decls with
20957 alias attribute.
20958
20959 2007-02-19 Kazu Hirata <kazu@codesourcery.com>
20960
20961 * doc/invoke.texi (-ftree-lrs): Remove.
20962
20963 2007-02-19 Diego Novillo <dnovillo@redhat.com>
20964
20965 * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
20966 NULL.
20967
20968 2007-02-19 Lee Millward <lee.millward@codesourcery.com>
20969
20970 * config/ia64/ia64.c (ia64_expand_builtin): Use the
20971 new CALL_EXPR_FN macro for retrieving the function
20972 declaration of the input expression.
20973
20974 2007-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20975
20976 * c.opt (Waddress): New.
20977 * common.opt (Walways-true): Delete.
20978 (Wstring-literal-comparison): Delete.
20979 * doc/invoke.texi (Warning Options): Delete -Walways-true and
20980 -Wstring-literal-comparison. Add -Waddress.
20981 (Waddress): New.
20982 (Walways-true): Delete.
20983 (Wstring-literal-comparison): Delete.
20984 * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
20985 consistently instead of -Walways-true in example.
20986 * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
20987 * c-typeck.c (parser_build_binary_op): Replace
20988 -Wstring-literal-comparison and -Walways-true with -Waddress.
20989 * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
20990 with -Waddress.
20991
20992 2007-02-19 Eric Botcazou <ebotcazou@adacore.com>
20993
20994 * tree-cfg.c (dump_function_to_file): Be prepared for functions
20995 without DECL_STRUCT_FUNCTION initialized.
20996
20997 2007-02-19 Eric Botcazou <ebotcazou@adacore.com>
20998
20999 * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
21000 due to calls to functions taking pointers as parameters.
21001
21002 2007-02-19 Richard Henderson <rth@redhat.com>
21003
21004 PR debug/29558
21005 * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
21006 in memory.
21007
21008 2007-02-19 Andreas Krebbel <krebbel1@de.ibm.com>
21009
21010 * config/s390/s390.c (s390_call_saved_register_used,
21011 s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
21012 accessed to the new scheme.
21013
21014 2007-02-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21015
21016 * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
21017 (cris_print_index, cris_print_operand, cris_print_operand_address)
21018 (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
21019 (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
21020 (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
21021 GET_CODE () == xxx.
21022 * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
21023 EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
21024 GO_IF_LEGITIMATE_ADDRESS): Ditto.
21025 * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
21026 (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
21027 (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
21028 (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
21029 (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
21030 (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
21031 (uminsi3, call, call_value): Ditto.
21032 (define_split: indir_to_reg_split, unnamed): Ditto.
21033
21034 2007-02-19 Dorit Nuzman <dorit@il.ibm.com>
21035
21036 PR tree-optimization/30975
21037 * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
21038 wrong assert.
21039
21040 2007-02-18 Eric Christopher <echristo@gmail.com>
21041
21042 * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
21043 Remove use of arglist.
21044 (mips_expand_builtin): Remove use of arglist, pass in expr.
21045 (mips_expand_builtin_direct): Rewrite handling for arglist removal.
21046 (mips_expand_builtin_movtf): Ditto.
21047 (mips_expand_builtin_compare): Ditto.
21048
21049 2007-02-19 Alexandre Oliva <aoliva@redhat.com>
21050
21051 * tree-sra.c (sra_build_assignment): Replace assertion
21052 checking with a comment explaining why it can't be done.
21053
21054 2007-02-18 Sandra Loosemore <sandra@codesourcery.com>
21055
21056 PR middle-end/30833
21057 * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
21058 during CALL_EXPR representation conversion.
21059 * tree-ssa-propagate.c (set_rhs): Likewise.
21060
21061 2007-02-19 Alexandre Oliva <aoliva@redhat.com>
21062
21063 * tree-sra.c (sra_build_assignment): Disable assertion checking
21064 for now.
21065
21066 2007-02-18 Roger Sayle <roger@eyesopen.com>
21067
21068 * function.c (gimplify_parameters): Call build_gimple_modify_stmt
21069 instead of calling build2 with a GIMPLE_MODIFY_STMT.
21070 * gimple-low.c (lower_function_body, lower_builtin_setjmp):
21071 Likewise.
21072 * gimplify.c (build_stack_save_restore, gimplify_return_expr,
21073 gimplify_decl_expr, gimplify_self_mod_expr, gimplify_cond_expr,
21074 gimplify_init_ctor_eval_range, gimple_push_cleanup,
21075 gimplify_omp_for, gimplify_omp_atomic_pipeline,
21076 gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
21077 force_gimple_operand): Likewise.
21078 * ipa-cp.c (constant_val_insert): Likewise.
21079 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
21080 lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
21081 perfect_nestify): Likewise.
21082 * langhooks.c (lhd_omp_assignment): Likewise.
21083 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
21084 lower_copyprivate_clauses, lower_send_clauses,
21085 lower_send_shared_vars, expand_parallel_call,
21086 expand_omp_for_generic, expand_omp_for_static_nochunk,
21087 expand_omp_for_static_chunk, expand_omp_sections,
21088 lower_omp_single_copy, lower_omp_for_lastprivate,
21089 lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
21090 * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
21091 tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
21092 Likewise.
21093
21094 2007-02-19 Kazu Hirata <kazu@codesourcery.com>
21095
21096 * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
21097 config/sh/sh.md: Follow spelling conventions.
21098
21099 * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
21100 config/frv/predicates.md: Follow spelling conventions.
21101
21102 * config/m68k/linux-unwind.h: Fix a comment typo.
21103 * target.h: Follow spelling conventions.
21104
21105 2007-02-18 Roger Sayle <roger@eyesopen.com>
21106
21107 PR rtl-optimization/28173
21108 * simplify-rtx.c (simplify_binary_operation_1) <IOR>: Optimize
21109 (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
21110 Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
21111 Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
21112 <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
21113
21114 2007-02-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21115
21116 * builtins.c (fold_builtin_load_exponent): New.
21117 (fold_builtin_2): Use it.
21118
21119 2007-02-18 Steven Bosscher <steven@gcc.gnu.org>
21120
21121 PR rtl-optimization/30773
21122 * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
21123 if we fail to attach a REG_EQUIV note.
21124
21125 2007-02-18 David Edelsohn <edelsohn@gnu.org>
21126 Roger Sayle <roger@eyesopen.com>
21127
21128 * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
21129
21130 2007-02-18 Sandra Loosemore <sandra@codesourcery.com>
21131
21132 * calls.c (initialize_argument_information): Pass original EXP
21133 and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments. Move
21134 code to split complex arguments here, as part of initializing the
21135 ARGS array.
21136 (expand_call): Remove code that builds a list of arguments and
21137 inserts implicit arguments into it. Instead, just count how many
21138 implicit arguments there will be so we can determine the size of
21139 the ARGS array, and let initialize_argument_information do the work.
21140 (split_complex_values): Delete unused function.
21141
21142 2007-02-18 Eric Botcazou <ebotcazou@adacore.com>
21143
21144 * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
21145
21146 2007-02-18 Eric Botcazou <ebotcazou@adacore.com>
21147
21148 * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
21149 for arg pointer based indexed addressing.
21150
21151 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
21152
21153 * config/ia64/ia64.h, config/ia64/ia64.md,
21154 config/ia64/predicates.md, config/ia64/sysv4.h: Follow
21155 spelling conventions.
21156
21157 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
21158
21159 * config/m68k/m68k.c (split_di): New.
21160 * config/m68k/m68k-protos.h: Declare split_di.
21161 * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
21162 Improve predicate handling and split constant shifts.
21163
21164 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
21165
21166 * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
21167 parameter for register bitfield operations, general predicates
21168 cleanup
21169
21170 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
21171
21172 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
21173 * config/m68k/linux-unwind.h: New file.
21174
21175 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
21176
21177 * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
21178 config/i386/athlon.md, config/ia64/ia64.md,
21179 config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
21180 df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
21181 ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
21182 tree-ssa-loop-niter.c, tree-vect-analyze.c,
21183 tree-vect-transform.c: Fix comment typos.
21184
21185 2007-02-17 Kazu Hirata <kazu@codesourcery.com>
21186
21187 * sched-deps.c (find_insn_list): Remove.
21188 * sched-int.h: Remove the prototype for find_insn_list.
21189
21190 2007-02-16 Geoffrey Keating <geoffk@apple.com>
21191
21192 * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
21193 to linker.
21194 (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
21195 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
21196 darwin_rs6000_override_options.
21197 (C_COMMON_OVERRIDE_OPTIONS): Expect
21198 darwin_macosx_version_min to be non-NULL always.
21199 (TARGET_C99_FUNCTIONS): Likewise.
21200 (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
21201 (DARWIN_MINVERSION_SPEC): New.
21202 * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
21203 * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
21204 to cc1*.
21205 (DARWIN_MINVERSION_SPEC): New.
21206 * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
21207 value.
21208 * config/darwin-c.c (darwin_cpp_builtins): Expect
21209 darwin_macosx_version_min to be non-NULL always.
21210
21211 * config/rs6000/rs6000.c: Clean up trailing whitespace.
21212
21213 2007-02-16 Uros Bizjak <ubizjak@gmail.com>
21214
21215 * config/i386/i386.h (x86_use_xchgb): New.
21216 (TARGET_USE_XCHGB): New macro.
21217 * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
21218 * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
21219 Split after reload into bswaphi for shifts of 8.
21220 (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
21221 (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
21222 or when optimizing for size.
21223
21224 2007-02-16 Richard Guenther <rguenther@suse.de>
21225 Christian Bruel <christian.bruel@st.com>
21226
21227 * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
21228 DECLs but prefer SSA_NAMEs over DECLs.
21229
21230 2007-02-16 Richard Guenther <rguenther@suse.de>
21231
21232 * tree-flow-inline.h (single_imm_use_p): Remove.
21233 (zero_imm_uses_p): Likewise.
21234 * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
21235 instead of single_imm_use_p.
21236 * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
21237 zero_imm_uses_p.
21238
21239 2007-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21240
21241 PR other/27843
21242 * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
21243 nested double- and backquotes.
21244
21245 2007-02-15 Roger Sayle <roger@eyesopen.com>
21246
21247 PR middle-end/30391
21248 * tree.c (expr_align): Handle MODIFY_EXPR. GIMPLE_MODIFY_STMT
21249 should be unreachable.
21250 (build2_stat): Allow construction of MODIFY_EXPR at any time.
21251 For the time being redirect GIMPLE_MODIFY_STMT to the new
21252 (renamed) build_gimple_modify_stmt_stat.
21253 (build2_gimple_stat): Rename to...
21254 (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
21255 Always build a GIMPLE_MODIFY_STMT node.
21256 * tree.h (build2_gimple, build2_gimple_stat): Delete.
21257 (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
21258 declarations.
21259
21260 * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
21261 gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
21262 * tree-complex.c (set_component_ssa_name, expand_complex_move,
21263 expand_complex_div_wide): Likewise.
21264 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
21265 * tree-ssa-loop-im.c (schedule_sm): Likewise.
21266 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
21267 * tree-ssa-loop-manip.c (create_iv): Likewise.
21268 * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
21269 abs_replacement): Likewise.
21270 * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
21271 realify_fake_stores): Likewise.
21272
21273 * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
21274 node rather than a GIMPLE_MODIFY_STMT node.
21275 (std_gimpify_va_arg_expr, expand_builtin_va_copy,
21276 fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
21277 Likewise.
21278 (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
21279 * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
21280 GIMPLE_MODIFY_STMT.
21281
21282 2007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
21283
21284 PR middle-end/30433
21285 * fold-const.c (fold_comparison): Add back the
21286 folding of constant complex comparisions.
21287
21288 2007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
21289
21290 PR middle-end/30729
21291 * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
21292 effects unknown to this function, return early.
21293
21294 2007-02-15 Ian Lance Taylor <iant@google.com>
21295
21296 * lower-subreg.c (move_eh_region_note): New static function.
21297 (resolve_simple_move): Call it.
21298 (decompose_multiword_subregs): Track blocks for which we resolve a
21299 simple move which is also a control flow insn. Pass them to
21300 find_many_sub_basic_blocks.
21301 (pass_lower_subreg): Add TODO_verify_flow.
21302 (pass_lower_subreg2): Likewise.
21303
21304 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
21305 Brooks Moses <brooks.moses@codesourcery.com>
21306 Lee Millward <lee.millward@codesourcery.com>
21307
21308 * tree.h (enum tree_code_class): Add tcc_vl_exp.
21309 (VL_EXP_CLASS_P): New.
21310 (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
21311 TREE_CODE_LENGTH.
21312 (TREE_OPERAND_CHECK_CODE): Likewise.
21313 (GIMPLE_STMT_OPERAND_CHECK): Likewise.
21314 (TREE_RTL_OPERAND_CHECK): Likewise.
21315 (tree_operand_check_failed): Make second parameter the whole tree
21316 instead of its code. Fixed callers.
21317 (VL_EXP_CHECK): New.
21318 (TREE_OPERAND_LENGTH): New.
21319 (VL_EXP_OPERAND_LENGTH): New.
21320 (CALL_EXPR_FN): New.
21321 (CALL_EXPR_STATIC_CHAIN): New.
21322 (CALL_EXPR_ARGS): New.
21323 (CALL_EXPR_ARG): New.
21324 (call_expr_nargs): New.
21325 (CALL_EXPR_ARGP): New.
21326 (build_nt_call_list): Declare.
21327 (build_vl_exp_stat): Declare.
21328 (build_vl_exp): New.
21329 (build_call_list): Declare.
21330 (build_call_nary): Declare.
21331 (build_call_valist): Declare.
21332 (build_call_array): Declare.
21333 (call_expr_arg): Declare.
21334 (call_expr_argp): Declare.
21335 (call_expr_arglist): Declare.
21336 (fold_build_call_list): Declare.
21337 (fold_build_call_list_initializer): Declare.
21338 (fold_call_expr): Declare to replace fold_builtin.
21339 (fold_builtin_fputs): Update to agree with modified definition.
21340 (fold_builtin_strcpy): Likewise.
21341 (fold_builtin_strncpy): Likewise.
21342 (fold_builtin_memory_chk): Likewise.
21343 (fold_builtin_stxcpy_chk): Likewise.
21344 (fold_builtin_strncpy_chk): Likewise.
21345 (fold_builtin_next_arg): Likewise.
21346 (fold_build_call_expr): Declare.
21347 (fold_builtin_call_list): Declare.
21348 (fold_builtin_call_valist): Declare.
21349 (build_call_expr): Declare.
21350 (validate_arglist): Update to agree with modified definition.
21351 (tree_operand_length): New.
21352 (call_expr_arg_iterator): New.
21353 (init_call_expr_arg_iterator): New.
21354 (next_call_expr_arg): New.
21355 (first_call_expr_arg): New.
21356 (more_call_expr_args_p): New.
21357 (FOR_EACH_CALL_EXPR_ARG): New.
21358
21359 * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
21360 and tcc_gimple_stmt.
21361 (tree_code_size): Update documentation. Use sizeof (tree) rather
21362 than sizeof (char *).
21363 (tree_size): Likewise. Add case for tcc_vl_exp.
21364 (tree_node_structure): Add case for tcc_vl_exp.
21365 (contains_placeholder_p): Likewise.
21366 (substitute_in_expr): Likewise.
21367 (substitute_placeholder_in_expr): Likewise.
21368 (stabilize_reference_1): Likewise.
21369 (build3_stat): Remove logic for CALL_EXPRs. Replace with assertion
21370 to diagnose breakage of this interface for constructing CALL_EXPRs.
21371 (build_nt): Add similar assertion here.
21372 (build_nt_call_list): New.
21373 (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
21374 (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
21375 TREE_CODE_LENGTH.
21376 (get_callee_fndecl): Use new CALL_EXPR accessors.
21377 (tree_operand_check_failed): Change parameters to pass entire node
21378 instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
21379 (process_call_operands): New.
21380 (build_vl_exp_stat): New.
21381 (build_call_list): New.
21382 (build_call_nary): New.
21383 (build_call_valist): New.
21384 (build_call_array): New.
21385 (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
21386 (call_expr_arglist): New.
21387
21388 * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
21389 tcc_vl_exp instead of a fixed-size tcc_expression.
21390
21391 * doc/c-tree.texi (CALL_EXPR): Document new representation and
21392 accessors for CALL_EXPRs.
21393 (AGGR_INIT_EXPR): Likewise.
21394
21395 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
21396 Brooks Moses <brooks.moses@codesourcery.com>
21397 Lee Millward <lee.millward@codesourcery.com>
21398
21399 * builtins.c (c_strlen): Return NULL_TREE instead of 0.
21400 (expand_builtin_nonlocal_goto): Change parameter to be entire
21401 CALL_EXPR instead of an arglist. Use new CALL_EXPR accessors.
21402 (expand_builtin_prefetch): Likewise.
21403 (expand_builtin_classify_type): Likewise.
21404 (mathfn_built_in): Return NULL_TREE instead of 0.
21405 (expand_errno_check): Use new CALL_EXPR accessors.
21406 (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
21407 Return NULL_RTX instead of 0.
21408 (expand_builtin_mathfn_2): Likewise.
21409 (expand_builtin_mathfn_3): Likewise.
21410 (expand_builtin_interclass_mathfn): Likewise.
21411 (expand_builtin_sincos): Likewise.
21412 (expand_builtin_cexpi): Likewise.
21413 (expand_builtin_int_roundingfn): Likewise.
21414 (expand_builtin_int_roundingfn_2): Likewise.
21415 (expand_builtin_pow): Likewise.
21416 (expand_builtin_powi): Likewise.
21417 (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
21418 of arglist, fixing callers appropriately. Use new CALL_EXPR
21419 accessors and constructors. Return NULL_RTX instead of 0.
21420 (expand_builtin_strstr): Likewise.
21421 (expand_builtin_strchr): Likewise.
21422 (expand_builtin_strrchr): Likewise.
21423 (expand_builtin_strpbrk): Likewise.
21424 (expand_builtin_memcpy): Likewise.
21425 (expand_builtin_mempcpy): Likewise.
21426 (expand_builtin_mempcpy_args): New.
21427 (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
21428 (expand_builtin_memmove_args): New.
21429 (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
21430 (expand_movstr): Likewise.
21431 (expand_builtin_strcpy): Likewise.
21432 (expand_builtin_strcpy_args): New.
21433 (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
21434 (expand_builtin_strncpy): Likewise.
21435 (expand_builtin_memset): Likewise.
21436 (expand_builtin_memset_args): New.
21437 (expand_builtin_bzero): Similarly to expand_builtin_memset.
21438 (expand_builtin_memcmp): Likewise.
21439 (expand_builtin_strcmp): Likewise.
21440 (expand_builtin_strncmp): Likewise.
21441 (expand_builtin_strcat): Likewise.
21442 (expand_builtin_strncat): Likewise.
21443 (expand_builtin_strspn): Likewise.
21444 (expand_builtin_strcspn): Likewise.
21445 (expand_builtin_args_info): Likewise.
21446 (expand_builtin_va_start): Likewise.
21447 (gimplify_va_arg_expr): Likewise.
21448 (expand_builtin_va_end): Likewise.
21449 (expand_builtin_va_copy): Likewise.
21450 (expand_builtin_frame_address): Likewise.
21451 (expand_builtin_alloca): Likewise.
21452 (expand_builtin_bswap): Likewise.
21453 (expand_builtin_unop): Likewise.
21454 (expand_builtin_fputs): Likewise.
21455 (expand_builtin_expect): Likewise.
21456 (expand_builtin_fabs): Likewise.
21457 (expand_builtin_copysign): Likewise.
21458 (expand_builtin_printf): Likewise.
21459 (expand_builtin_fprintf): Likewise.
21460 (expand_builtin_sprintf): Likewise.
21461 (expand_builtin_init_trampoline): Likewise.
21462 (expand_builtin_signbit): Likewise.
21463 (expand_builtin_fork_or_exec): Likewise.
21464 (expand_builtin_sync_operation): Likewise.
21465 (expand_builtin_compare_and_swap): Likewise.
21466 (expand_builtin_lock_test_and_set): Likewise.
21467 (expand_builtin_lock_release): Likewise.
21468 (expand_builtin): Likewise.
21469 (builtin_mathfn_code): Likewise.
21470
21471 (fold_builtin_constant_p): Pass call arguments individually instead
21472 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
21473 accessors and constructors. Return NULL_TREE instead of 0.
21474 (fold_builtin_expect): Likewise.
21475 (fold_builtin_classify_type): Likewise.
21476 (fold_builtin_strlen): Likewise.
21477 (fold_builtin_nan): Likewise.
21478 (integer_valued_real_p): Likewise.
21479 (fold_trunc_transparent_mathfn): Likewise.
21480 (fold_fixed_mathfn): Likewise.
21481 (fold_builtin_cabs): Likewise.
21482 (fold_builtin_sqrt): Likewise.
21483 (fold_builtin_cbrt): Likewise.
21484 (fold_builtin_cos): Likewise.
21485 (fold_builtin_cosh): Likewise.
21486 (fold_builtin_tan): Likewise.
21487 (fold_builtin_sincos): Likewise.
21488 (fold_builtin_cexp): Likewise.
21489 (fold_builtin_trunc): Likewise.
21490 (fold_builtin_floor): Likewise.
21491 (fold_builtin_ceil): Likewise.
21492 (fold_builtin_round): Likewise.
21493 (fold_builtin_int_roundingfn): Likewise.
21494 (fold_builtin_bitop): Likewise.
21495 (fold_builtin_bswap): Likewise.
21496 (fold_builtin_logarithm): Likewise.
21497 (fold_builtin_hypot): Likewise.
21498 (fold_builtin_pow): Likewise.
21499 (fold_builtin_powi): Likewise.
21500 (fold_builtin_exponent): Likewise.
21501 (fold_builtin_memset): Likewise.
21502 (fold_builtin_bzero): Likewise.
21503 (fold_builtin_memory_op): Likewise.
21504 (fold_builtin_bcopy): Deleted; call site changed to invoke
21505 fold_builtin_memory_op directly.
21506 (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
21507 (fold_builtin_strncpy): Likewise.
21508 (fold_builtin_memcmp): Likewise.
21509 (fold_builtin_strcmp): Likewise.
21510 (fold_builtin_strncmp): Likewise.
21511 (fold_builtin_signbit): Likewise.
21512 (fold_builtin_copysign): Likewise.
21513 (fold_builtin_isascii): Likewise.
21514 (fold_builtin_toascii): Likewise.
21515 (fold_builtin_isdigit): Likewise.
21516 (fold_builtin_fabs): Likewise.
21517 (fold_builtin_abs): Likewise.
21518 (fold_builtin_fmin_fmax): Likewise.
21519 (fold_builtin_carg): Likewise.
21520 (fold_builtin_classify): Likewise.
21521 (fold_builtin_unordered_cmp): Likewise.
21522
21523 (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
21524 New functions split out from fold_builtin_1.
21525 (fold_builtin_n): New.
21526 (fold_builtin_varargs): New.
21527 (fold_builtin): Deleted. Most callers changed to use fold_call_expr
21528 instead.
21529 (fold_call_expr): New.
21530 (build_function_call_expr): Rewrite to use new helper function.
21531 (fold_builtin_call_list): New.
21532 (build_call_expr): New.
21533 (fold_builtin_call_valist): New.
21534 (rewrite_call_expr): New.
21535 (validate_arg): New.
21536 (validate_arglist): Change parameter to be entire CALL_EXPR instead
21537 of an arglist. Change return type to bool. Use new CALL_EXPR
21538 accessors.
21539
21540 (fold_builtin_strstr): Pass call arguments individually instead
21541 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
21542 accessors and constructors. Return NULL_TREE instead of 0.
21543 (fold_builtin_strchr): Likewise.
21544 (fold_builtin_strrchr): Likewise.
21545 (fold_builtin_strpbrk): Likewise.
21546 (fold_builtin_strcat): Likewise.
21547 (fold_builtin_strncat): Likewise.
21548 (fold_builtin_strspn): Likewise.
21549 (fold_builtin_strcspn): Likewise.
21550 (fold_builtin_fputs): Likewise.
21551 (fold_builtin_next_arg): Likewise.
21552 (fold_builtin_sprintf): Likewise.
21553
21554 (expand_builtin_object_size): Use new CALL_EXPR accessors. Use
21555 NULL_RTX instead of 0.
21556 (expand_builtin_memory_chk): Likewise.
21557 (maybe_emit_chk_warning): Likewise.
21558 (maybe_emit_sprintf_chk_warning): Likewise.
21559
21560 (fold_builtin_object_size): Pass call arguments individually instead
21561 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
21562 accessors and constructors. Return NULL_TREE instead of 0.
21563 (fold_builtin_memory_chk): Likewise.
21564 (fold_builtin_stxcpy_chk): Likewise.
21565 (fold_builtin_strncpy_chk): Likewise.
21566 (fold_builtin_strcat_chk): Likewise.
21567 (fold_builtin_strcat_chk): Likewise.
21568 (fold_builtin_strncat_chk): Likewise.
21569 (fold_builtin_sprintf_chk): Likewise.
21570 (fold_builtin_snprintf_chk): Likewise.
21571 (fold_builtin_printf): Likewise.
21572 (fold_builtin_vprintf): Likewise.
21573
21574 * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
21575 constructors.
21576 (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
21577 (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
21578 (extract_muldiv_1): Add VL_EXP_CLASS_P case.
21579 (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
21580 (fold_unary): Likewise.
21581 (fold_binary): Likewise.
21582 (fold_ternary): Remove CALL_EXPR case, since they are no longer
21583 ternary expressions.
21584 (fold): Add logic for tcc_vl_exp.
21585 (fold_checksum_tree): Make it know about tcc_vl_exp. Use
21586 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
21587 (fold_build3_stat): Add assertion to flag broken interface for
21588 constructing CALL_EXPRs.
21589 (fold_build_call_list): New.
21590 (fold_build_call_list_initializer): New.
21591 (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
21592 constructors.
21593 (fold_strip_sign_ops): Likewise.
21594
21595 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
21596 Brooks Moses <brooks.moses@codesourcery.com>
21597 Lee Millward <lee.millward@codesourcery.com>
21598
21599 * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
21600 accessors and dump arguments explicitly.
21601
21602 * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
21603 TREE_CODE_LENGTH.
21604 (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
21605 explicitly.
21606 (print_call_name): Use new CALL_EXPR accessors.
21607
21608 * print-tree.c (print_node): Add case tcc_vl_exp. Print
21609 CALL_EXPR arguments explicitly instead of as a list. Use
21610 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
21611
21612 * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
21613 (vrp_visit_stmt): Likewise.
21614
21615 * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Make it
21616 know about tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of
21617 TREE_CODE_LENGTH.
21618 (force_move_till_expr): Likewise.
21619
21620 * targhooks.c (default_external_stack_protect_fail): Use
21621 build_call_expr instead of build_function_call_expr.
21622 (default_hidden_stack_protect_fail): Likewise.
21623
21624 * tree-complex.c (expand_complex_libcall): Use build_call_expr to
21625 build the call.
21626
21627 * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
21628 and walk arguments explicitly.
21629
21630 * tree-ssa-loop-niter.c (simplify_replace_tree): Use
21631 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
21632 (expand_simple_operations): Likewise.
21633 (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
21634
21635 * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
21636 of TREE_CODE_LENGTH.
21637 (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
21638
21639 * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
21640 instead of TREE_CODE_LENGTH.
21641
21642 * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
21643 (tree_ic_transform): Likewise.
21644 (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
21645 parameter instead of arglist. Fix callers.
21646 (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
21647 (tree_stringops_transform): Likewise.
21648 (tree_indirect_call_to_profile): Likewise.
21649 (tree_stringops_values_to_profile): Likewise.
21650
21651 * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
21652 (eliminate_tail_call): Likewise.
21653
21654 * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
21655
21656 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
21657 Use TREE_OPERAND_LENGTH and generalize to handle any number of
21658 operands.
21659 (instantiate_parameters_1): Can't handle tcc_vl_exp here.
21660
21661 * omp-low.c (build_omp_barrier): Use build_call_expr.
21662 (lower_rec_input_clauses): Likewise.
21663 (lower_reduction_clauses): Likewise.
21664 (expand_parallel_call): Likewise.
21665 (maybe_catch_exception): Likewise.
21666 (expand_omp_for_generic): Likewise.
21667 (expand_omp_for_static_nochunk): Likewise.
21668 (expand_omp_sections): Likewise.
21669 (lower_omp_single_simple): Likewise.
21670 (lower_omp_single_copy): Likewise.
21671 (lower_omp_master): Likewise.
21672 (lower_omp_ordered): Likewise.
21673 (lower_omp_critical): Likewise.
21674
21675 * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
21676 (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
21677
21678 * tree-gimple.c (is_gimple_call_addr): Fix doc.
21679 (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
21680 TREE_CODE_LENGTH. Add tcc_vl_exp case.
21681
21682 * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
21683 and generalize to handle any number of operands.
21684 (chrec_contains_undetermined): Likewise.
21685 (tree_contains_chrecs): Likewise.
21686 (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
21687
21688 * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
21689
21690 * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors. Use
21691 fold_call_expr instead of fold_builtin.
21692 (ccp_fold_builtin): Likewise. Update calls into builtins.c to
21693 match declarations there.
21694 (fold_stmt): Use new CALL_EXPR constructor and accessors. Doc
21695 updates.
21696
21697 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
21698 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
21699
21700 * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
21701 (scan_function): Add case tcc_vl_exp for CALL_EXPR.
21702
21703 * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
21704 accessors.
21705
21706 * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
21707 (execute_cse_sincos): Use new CALL_EXPR accessors.
21708
21709 * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
21710
21711 * gimple-low.c (lower_function_body): Use build_call_expr.
21712 (lower_builtin_setjmp): Likewise.
21713
21714 * expr.c (emit_block_move_via_libcall): Use build_call_expr.
21715 (set_storage_via_libcall): Likewise.
21716 (safe_from_p): Add tcc_vl_exp case. Use TREE_OPERAND_LENGTH
21717 instead of TREE_CODE_LENGTH.
21718 (expand_expr_real_1): Use new CALL_EXPR accessors.
21719
21720 * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
21721 generalize to handle any number of operands.
21722 (TB_parent_eq): Likewise.
21723
21724 * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
21725 (strip_builtin_expect): Likewise.
21726
21727 * function.c (gimplify_parameters): Use build_call_expr.
21728
21729 * tree-vectorizer.c (vect_is_simple_reduction): Use
21730 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
21731
21732 * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
21733 (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
21734
21735 * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
21736 iterators.
21737
21738 * gimplify.c (build_stack_save_restore): Use build_call_expr.
21739 (gimplify_decl_expr): Likewise.
21740 (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
21741 Use new CALL_EXPR iterators.
21742 (gimplify_modify_expr_to_memcpy): Use build_call_expr.
21743 (gimplify_modify_expr_to_memset): Likewise.
21744 (gimplify_variable_sized_compare): Likewise.
21745 (gimplify_omp_atomic_fetch_op): Likewise.
21746 (gimplify_omp_atomic_pipeline): Likewise.
21747 (gimplify_omp_atomic_mutex): Likewise.
21748 (gimplify_function_tree): Likewise.
21749
21750 * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
21751 (call_expr_flags): Likewise.
21752 (expand_call): Likewise.
21753
21754 * except.c (expand_builtin_eh_return_data_regno): Pass entire
21755 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
21756 accessors.
21757
21758 * coverage.c (create_coverage): Use build_call_expr.
21759
21760 * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
21761 (temp_call_expr_obstack): New.
21762 (pool_copy_list): Delete.
21763 (temp_copy_call_expr): New.
21764 (phi_translate): Add case tcc_vl_exp for CALL_EXPR. Use new
21765 CALL_EXPR accessors. Get rid of special goo for copying argument
21766 lists and use temp_copy_call_expr instead.
21767 (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR. Use new
21768 CALL_EXPR accessors.
21769 (create_expression_by_pieces): Likewise. Use build_call_array
21770 to construct the result instead of fold_build3.
21771 (create_value_expr_from): Add tcc_vl_exp. Delete special goo for
21772 dealing with argument lists.
21773 (init_pre): Remove references to expression_node_pool and
21774 list_node_pool. Init temp_call_expr_obstack instead.
21775 (fini_pre): Remove references to expression_node_pool and
21776 list_node_pool.
21777
21778 * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
21779 and walk arguments explicitly instead of as a list.
21780
21781 * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
21782 (mx_register_decls): Likewise.
21783 (mudflap_register_call): Likewise.
21784 (mudflap_finish_file): Likewise.
21785
21786 * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
21787 (ipa_callsite_compute_param): Likewise.
21788
21789 * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
21790 accessors and constructor.
21791
21792 * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
21793 accessors and constructor.
21794 (convert_tramp_reference): Likewise.
21795 (convert_call_expr): Likewise.
21796 (finalize_nesting_tree_1): Likewise.
21797
21798 * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
21799 accessors.
21800
21801 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
21802
21803 * tree-inline.c (initialize_inlined_parameters): Pass entire
21804 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
21805 accessors.
21806 (estimate_num_insns_1): Use new CALL_EXPR accessors.
21807 (expand_call_inline): Tidy up call to initialize_inlined_parameters.
21808
21809 * tree-vect-transform.c (vect_create_epilog_for_reduction): Use
21810 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
21811 (vectorizable_reduction): Likewise.
21812 (vectorizable_call): Use new CALL_EXPR iterators.
21813 (vectorizable_conversion): Use build_call_expr.
21814 (vectorizable_operation): Use TREE_OPERAND_LENGTH.
21815 (vect_gen_widened_results_half): Use build_call_expr.
21816 (vect_setup_realignment): Likewise.
21817 (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
21818
21819 * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
21820 (pass_through_call): Likewise.
21821 (compute_object_sizes): Likewise. Use fold_call_expr instead of
21822 fold_builtin.
21823
21824 * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
21825 (tree_gen_pow2_profiler): Likewise.
21826 (tree_gen_one_value_profiler): Likewise.
21827 (tree_gen_ic_func_profiler): Likewise.
21828 (tree_gen_average_profiler): Likewise.
21829 (tree_gen_ior_profiler): Likewise.
21830
21831 * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
21832 (find_func_aliases): Use new CALL_EXPR accessors. Add case
21833 tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
21834
21835 * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
21836 of TREE_CODE_LENGTH.
21837
21838 * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
21839 of TREE_CODE_LENGTH.
21840
21841 * convert.c (convert_to_real): Use new CALL_EXPR accessors and
21842 constructor.
21843 (convert_to_integer): Likewise.
21844
21845 * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
21846 accessors.
21847
21848 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
21849 Brooks Moses <brooks.moses@codesourcery.com>
21850 Lee Millward <lee.millward@codesourcery.com>
21851
21852 * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
21853 accessors.
21854 * config/frv/frv.c (frv_expand_builtin): Likewise.
21855 * config/s390/s390.c (s390_expand_builtin): Likewise.
21856
21857 * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
21858 (sparc_expand_builtin): Use new CALL_EXPR accessors.
21859
21860 * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
21861 (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
21862 instead of arglist. Use new CALL_EXPR accessors on it. Fix callers.
21863 (ix86_expand_store_builtin): Likewise.
21864 (ix86_expand_unop_builtin): Likewise.
21865 (ix86_expand_unop1_builtin): Likewise.
21866 (ix86_expand_sse_compare): Likewise.
21867 (ix86_expand_sse_comi): Likewise.
21868 (ix86_expand_vec_init_builtin): Likewise.
21869 (ix86_expand_vec_ext_builtin): Likewise.
21870 (ix86_expand_vec_set_builtin): Likewise.
21871 (ix86_expand_builtin): Use new CALL_EXPR accessors.
21872
21873 * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
21874 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
21875
21876 * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
21877 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
21878 (iq2000_expand_builtin): Use new CALL_EXPR accessors.
21879
21880 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
21881 build_call_expr.
21882 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
21883 (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
21884 arglist. Use new CALL_EXPR accessors. Fix callers.
21885 (altivec_expand_abs_builtin): Likewise.
21886 (rs6000_expand_binop_builtin): Likewise.
21887 (altivec_expand_predicate_builtin): Likewise.
21888 (altivec_expand_lv_builtin): Likewise.
21889 (spe_expand_stv_builtin): Likewise.
21890 (altivec_expand_stv_builtin): Likewise.
21891 (rs6000_expand_ternop_builtin): Likewise.
21892 (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
21893 (altivec_expand_st_builtin): Likewise.
21894 (altivec_expand_dst_builtin): Likewise.
21895 (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
21896 arglist. Use new CALL_EXPR accessors. Fix callers.
21897 (altivec_expand_vec_set_builtin): Likewise.
21898 (altivec_expand_vec_ext_builtin): Likewise.
21899 (altivec_expand_builtin): Use new CALL_EXPR accessors.
21900 (spe_expand_builtin): Likewise.
21901 (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
21902 arglist. Use new CALL_EXPR accessors. Fix callers.
21903 (spe_expand_evsel_builtin): Likewise.
21904 (rs6000_expand_builtin): Use new CALL_EXPR accessors. VCFUX and
21905 FCFSX cases must construct whole new CALL_EXPR, not just arglist.
21906
21907 * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
21908 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
21909 (arm_expand_unop_builtin): Likewise.
21910 (arm_expand_builtin): Use new CALL_EXPR accessors.
21911
21912 * config/mips/mips.c (mips_expand_builtin): Use new CALL_EXPR
21913 accessors.
21914
21915 * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire
21916 CALL_EXPR instead of arglist. Use new CALL_EXPR accessors.
21917 Fix callers.
21918 (bfin_expand_unop_builtin): Likewise.
21919 (bfin_expand_builtin): Use new CALL_EXPR accessors.
21920
21921 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
21922 Brooks Moses <brooks.moses@codesourcery.com>
21923 Lee Millward <lee.millward@codesourcery.com>
21924
21925 * c-semantics.c (build_stmt): Add internal diagnostic check.
21926
21927 * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
21928 accessors. Print arguments explicitly instead of as a list.
21929
21930 * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
21931
21932 * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
21933 (c_finish_omp_flish): Likewise.
21934
21935 * c-common.c (verify_tree): Use new CALL_EXPR accessors. Traverse
21936 arguments explicitly instead of as a list. Use TREE_OPERAND_LENGTH
21937 instead of TREE_CODE_LENGTH.
21938 (check_function_arguments_recurse): Use new CALL_EXPR accessors.
21939 (c_warn_unused_result): Likewise.
21940
21941 2007-02-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21942
21943 PR c/26494
21944 * doc/invoke.texi (Warning Options): Remove
21945 -Werror-implicit-function-declaration.
21946 (Wimplicit-function-declaration): Update description.
21947 * opts.c (common_handle_option): Move handling of -Werror=* to...
21948 (enable_warning_as_error): ...here.
21949 * opts.h (enable_warning_as_error): Declare.
21950 * c-decl.c (implicit_decl_warning): Unless
21951 -Wno-implicit-function-declaration is given, emit a pedwarn if
21952 -std=c99 or emit a warning if -Wimplicit-function-declaration.
21953 * c.opt (Wimplicit-function-declaration): Replace
21954 mesg_implicit_function_declaration with
21955 warn_implicit_function_declaration.
21956 * c-opts.c (c_common_handle_option):
21957 -Werror-implicit-function-declaration is exactly equal as
21958 -Werror=implicit-function-declaration.
21959 (set_Wimplicit): Replace mesg_implicit_function_declaration with
21960 warn_implicit_function_declaration.
21961 (c_common_post_options): -Wimplict-function-declaration is enabled
21962 by default by -std=c99, otherwise is disabled by default.
21963 * c-objc-common.c (c_objc_common_init): Remove flawed logic.
21964
21965 2007-02-15 Eric Botcazou <ebotcazou@adacore.com>
21966
21967 * gimplify.c (gimplify_modify_expr): During gimplification, attach a
21968 DECL on the rhs to a DECL on the lhs for debug info purposes if the
21969 former is ignored but not the latter.
21970
21971 2007-02-15 Eric Botcazou <ebotcazou@adacore.com>
21972
21973 * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
21974 is made and the reference doesn't use the alias set of its type,
21975 do not create the temporary using that type.
21976
21977 2007-02-15 Aldy Hernandez <aldyh@redhat.com>
21978
21979 * jump.c: Remove prototypes for delete_computation and
21980 delete_prior_computation.
21981
21982 2007-02-15 Paolo Bonzini <bonzini@gnu.org>
21983
21984 * jump.c (get_label_after): Delete.
21985 (get_label_before, delete_computation, delete_jump,
21986 delete_prior_computation, follow_jumps): Move...
21987 * reorg.c (delete_computation, delete_prior_computation): ... here...
21988 (get_label_before, delete_jump): ... making these static ...
21989 (follow_jumps): ... and simplifying this since it only runs after
21990 reload.
21991 * rtl.h (get_label_after, get_label_before, delete_jump,
21992 follow_jumps): Delete prototypes.
21993
21994 2007-02-15 Paolo Bonzini <bonzini@gnu.org>
21995
21996 * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
21997
21998 2007-02-15 Nick Clifton <nickc@redhat.com>
21999
22000 * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
22001 order to prevent it from being munged by the target.
22002
22003 2007-02-15 Uros Bizjak <ubizjak@gmail.com>
22004
22005 * config/i386/i386.md: Remove misleading comment.
22006
22007 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
22008
22009 * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
22010 reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
22011 invalid patterns.
22012
22013 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
22014
22015 * tree-sra.c (instantiate_missing_elements): Canonicalize
22016 bit-field types.
22017 (sra_build_assignment): New.
22018 (generate_copy_inout, generate_element_copy,
22019 generate_element_zero, generate_one_element_init): Use it.
22020
22021 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
22022
22023 * tree-sra.c (instantiate_missing_elements): Canonicalize
22024 bit-field types.
22025 (sra_build_assignment): New.
22026 (generate_copy_inout, generate_element_copy,
22027 generate_element_zero, generate_one_element_init): Use it.
22028
22029 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
22030
22031 * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
22032 limbo die nodes.
22033
22034 2007-02-14 Joseph Myers <joseph@codesourcery.com>
22035
22036 * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
22037 types as aggregates not scalars.
22038 * function.c (assign_stack_temp_for_type): Likewise.
22039
22040 2007-02-14 Roger Sayle <roger@eyesopen.com>
22041 Zdenek Dvorak <dvorakz@suse.cz>
22042
22043 * tree-dump.c (dump_switch_p_1): Require exact match of the option
22044 name.
22045
22046 2007-02-14 Zdenek Dvorak <dvorakz@suse.cz>
22047
22048 * passes.c (next_pass_1): Clear the next field of the copied
22049 pass structure.
22050
22051 2007-02-14 Richard Henderson <rth@redhat.com>
22052
22053 * tree-sra.c (early_sra): New.
22054 (decl_can_be_decomposed_p): Deny va_list if early_sra.
22055 (tree_sra_early, pass_sra_early): New.
22056 * tree-pass.h (pass_sra_early): Declare.
22057 * passes.c (init_optimization_passes): Use it.
22058
22059 2007-02-14 Richard Guenther <rguenther@suse.de>
22060
22061 * flags.h (issue_strict_overflow_warning): Convert to a macro.
22062
22063 2007-02-14 Dorit Nuzman <dorit@il.ibm.com>
22064
22065 PR tree-optimization/30771
22066 * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
22067 also phi nodes.
22068 (vect_analyze_operations): Induction phis can now be marked as
22069 used_in_loop.
22070 (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
22071 Update documentation accordingly.
22072
22073 2007-02-14 Nick Clifton <nickc@redhat.com>
22074
22075 * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
22076 most 3 arguments are supported.
22077 (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
22078
22079 2007-02-13 Seongbae Park <seongbae.park@gmail.com>
22080
22081 * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
22082 Ensure dst->current is valid.
22083
22084 2007-02-13 Paul Brook <paul@codesourcery.com>
22085
22086 * config.gcc: Add arm*-*-uclinux-*eabi.
22087 * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
22088 (SUBTARGET_EXTRA_LINK_SPEC): Define.
22089 (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
22090 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
22091 (LINK_SPEC): Define.
22092 (LIB_SPEC): Define.
22093 * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
22094 register.
22095 * config/arm/uclinux-eabi.h: New file.
22096 * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
22097 * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
22098 based targets.
22099
22100 2007-02-13 Ian Lance Taylor <iant@google.com>
22101
22102 * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
22103 * flags.h (warn_strict_overflow): Declare.
22104 (enum warn_strict_overflow_code): Define.
22105 (issue_strict_overflow_warning): New static inline function.
22106 * opts.c (warn_strict_overflow): New variable.
22107 (common_handle_option): Handle OPT_Wstrict_overflow and
22108 OPT_Wstrict_overflow_.
22109 * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
22110 OPT_Wall.
22111 * fold-const.c: Include intl.h.
22112 (fold_deferring_overflow_warnings): New static variable.
22113 (fold_deferred_overflow_warning): New static variable.
22114 (fold_deferred_overflow_code): New static variable.
22115 (fold_defer_overflow_warnings): New function.
22116 (fold_undefer_overflow_warnings): New function.
22117 (fold_undefer_and_ignore_overflow_warnings): New function.
22118 (fold_deferring_overflow_warnings_p): New function.
22119 (fold_overflow_warning): New static function.
22120 (make_range): Add strict_overflow_p parameter. Change all
22121 callers.
22122 (extract_muldiv, extract_muldiv_1): Likewise.
22123 (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
22124 tree_expr_nonnegative_p.
22125 (fold_negate_expr): Call fold_overflow_warning.
22126 (fold_range_test): Likewise.
22127 (fold_comparison): Likewise.
22128 (fold_binary): Likewise. Call tree_expr_nonnegative_warnv_p
22129 instead of tree_expr_nonnegative_p.
22130 (tree_expr_nonnegative_warnv_p): Rename from
22131 tree_expr_nonnegative_p, add strict_overflow_p parameter.
22132 (tree_expr_nonnegative_p): New function.
22133 (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
22134 strict_overflow_p parameter.
22135 (tree_expr_nonzero_p): New function.
22136 * passes.c (verify_interpass_invariants): New static function.
22137 (execute_one_pass): Call it.
22138 * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
22139 warnings.
22140 (number_of_iterations_exit, loop_niter_by_eval): Likewise.
22141 (estimate_numbers_of_iterations): Likewise.
22142 (scev_probably_wraps_p): Likewise.
22143 * tree-ssa-ccp.c: Include "toplev.h".
22144 (evaluate_stmt): Defer fold overflow warnings until we know we are
22145 going to optimize.
22146 (struct fold_stmt_r_data): Add stmt field.
22147 (fold_stmt_r): Defer fold overflow warnings until we know we
22148 optimized.
22149 (fold_stmt): Initialize stmt field of fold_stmt_r_data.
22150 (fold_stmt_inplace): Likewise.
22151 * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
22152 (cleanup_control_expr_graph): Defer fold overflow warnings until
22153 we know we are going to optimize.
22154 * tree-cfg.c (fold_cond_expr_cond): Likewise.
22155 * tree-ssa-threadedge.c (simplify_control_stmt_condition):
22156 Likewise.
22157 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
22158 tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
22159 * tree-ssa-loop-manip.c (create_iv): Likewise.
22160 * c-typeck.c (build_conditional_expr): Likewise.
22161 (build_binary_op): Likewise.
22162 * tree-vrp.c (vrp_expr_computes_nonzero): Call
22163 tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
22164 (extract_range_from_unary_expr): Likewise.
22165 * simplify-rtx.c (simplify_const_relational_operation): Warn when
22166 assuming that signed overflow does not occur.
22167 * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
22168 * tree.h (tree_expr_nonnegative_warnv_p): Declare.
22169 (fold_defer_overflow_warnings): Declare.
22170 (fold_undefer_overflow_warnings): Declare.
22171 (fold_undefer_and_ignore_overflow_warnings): Declare.
22172 (fold_deferring_overflow_warnings_p): Declare.
22173 (tree_expr_nonzero_warnv_p): Declare.
22174 * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
22175 of warning options.
22176 (Warning Options): Document -Wstrict-overflow.
22177 * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
22178 (tree-ssa-ccp.o): Likewise.
22179 (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
22180 (fold-const.o): Depend on intl.h.
22181
22182 2007-02-13 Ian Lance Taylor <iant@google.com>
22183
22184 PR middle-end/30751
22185 * lower-subreg.c (resolve_simple_move): Decompose subregs in
22186 addresses.
22187
22188 2007-02-13 Stuart Hastings <stuart@apple.com>
22189
22190 * config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
22191
22192 2007-02-13 Richard Henderson <rth@redhat.com>
22193
22194 * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
22195 handled_component_p before looking for the indirect_ref.
22196
22197 2007-02-13 Richard Henderson <rth@redhat.com>
22198
22199 * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
22200 remove flags clobber.
22201 (bswapsi2): New expander, emit code for !TARGET_BSWAP.
22202 (bswaphi_lowpart): New.
22203 (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
22204 remove TARGET_BSWAP test. Delete expander of the same name.
22205
22206 * optabs.c (widen_bswap, expand_doubleword_bswap): New.
22207 (expand_unop): Use them.
22208
22209 2007-02-13 Uros Bizjak <ubizjak@gmail.com>
22210
22211 * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
22212 *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
22213 *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
22214 *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
22215 *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
22216 *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
22217 *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
22218 assembler dialect choice from asm templates.
22219
22220 2007-02-12 Richard Henderson <rth@redhat.com>
22221
22222 * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
22223 (fixuns_trunc<SSEMODEF>si2): Use it.
22224 * config/i386/sse.md (vec_setv4sf_0): Export.
22225 * config/i386/i386.c (ix86_build_const_vector): Export.
22226 (ix86_split_convert_uns_si_sse): Rename from
22227 ix86_expand_convert_uns_si_sse and rewrite as a splitter.
22228 * config/i386/i386-protos.h: Update.
22229
22230 2007-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22231
22232 PR c/29521
22233 * c-typeck.c (c_finish_return): Improve warning message.
22234
22235 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22236
22237 * alias.c (find_symbolic_term): Delete unused function.
22238
22239 2007-02-12 Uros Bizjak <ubizjak@gmail.com>
22240
22241 * config/i386/i386.md (paritydi2, paritysi2): New expanders.
22242 (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
22243 (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
22244
22245 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
22246
22247 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
22248 * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
22249 the function, temporarily point the debug interface to the null one.
22250
22251 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
22252
22253 * dwarf2out.c (round_up_to_align): New static function.
22254 (field_byte_offset): Use it to round the offset.
22255
22256 2007-02-12 Richard Henderson <rth@redhat.com>
22257
22258 * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
22259 (inswl_const): Export.
22260
22261 2007-02-12 Richard Henderson <rth@redhat.com>
22262
22263 * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
22264 result mode of the libcall, convert back to outmode.
22265
22266 2007-02-12 Roger Sayle <roger@eyesopen.com>
22267
22268 * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
22269 (bswapdi2): New define_expand to implement 32-bit implementation.
22270
22271 2007-02-12 Nick Clifton <nickc@redhat.com>
22272
22273 * doc/invoke.texi (Overall Options): Document --help=.
22274 * gcc.c (target_help_flag): Rename to print_subprocess_flag.
22275 (cc1_options): Pass --help= on to cc1.
22276 (display_help): Add description of --help=.
22277 (process_command): Add code to handle --help=. Allow translated
22278 --help and --target-help switches to be passed on to compiler
22279 sub-process.
22280 (main): Remove unused if statement.
22281 * opts.c (columns): Remove.
22282 (LEFT_COLUMN): Define.
22283 (wrap_help): Add columns argument.
22284 (print_filtered_help): Change parameters to be an include bitmask,
22285 an exclude bitmask, an any bitmask and the column width. Move the
22286 code to display the params list here. Add code to display the
22287 status of options rather than their descriptions if the quiet flag
22288 is not active.
22289 (print_specific_help): Change parameters to be an include bitmask,
22290 an exclude bitmask and an any bitmask. Move code to look up the
22291 column width here. Decide upon the title for an options listing.
22292 (common_handle_options): Add code to handle --help=. Adapt code
22293 for --help and --target-help to use the revised form of the
22294 print_specific_help function.
22295 (print_help): Delete.
22296 (print_param_help): Delete.
22297 (print_switch): Delete.
22298 * opts.h (cl_lang_count): Add prototype.
22299 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
22300 CL_MAX_OPTION_CLASS): New defines.
22301 * optc-gen.awk: Add construction of cl_lang_count.
22302 * c.opt: Add Warning attribute to warning options and Optimization
22303 attribute to optimization options.
22304 * common.opt: Likewise.
22305 Add --help=.
22306 Add -fhelp and -ftarget-help as aliases for the transformed --help
22307 and --target-help options.
22308 * opt-functions.awk: Add code to handle Warning and Optimization
22309 attributes.
22310
22311 2007-02-12 Richard Henderson <rth@redhat.com>
22312
22313 * config/alpha/constraints.md: New file.
22314 * config/alpha/alpha.c: Include tm-constrs.h.
22315 (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
22316 alpha_extra_constraint): Remove.
22317 (alpha_emit_conditional_branch): Use satisfies_constraint_*.
22318 * config/alpha/alpha-protos.h: Update.
22319 * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
22320 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
22321 (EXTRA_CONSTRAINT): Remove.
22322 * config/alpha/alpha.md: Include constraints.md.
22323 (adddi splitter): Use satisfies_constraint_*.
22324 * config/alpha/predicates.md (add_operand): Likewise.
22325 (sext_add_operand, addition_operation): Likewise.
22326
22327 2007-02-12 Dorit Nuzman <dorit@il.ibm.com>
22328
22329 PR tree-optimization/29145
22330 * tree-data-ref.c (base_addr_differ_p): Make us more conservative
22331 in our handling of restrict qualified pointers.
22332
22333 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22334
22335 PR middle-end/7651
22336 * doc/invoke.texi (Wunused-value): Update description.
22337 (Wextra): Delete item.
22338 * opts.c (set_Wextra): Don't use the value of Wextra to set the
22339 value of Wunused-value.
22340 * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
22341 (c_finish_stmt_expr): Don't check extra_warnings.
22342 (emit_side_effect_warnings): The caller is responsible to check
22343 warn_unused_value.
22344
22345 2007-02-11 Roger Sayle <roger@eyesopen.com>
22346 Matt Thomas <matt@3am-software.com>
22347
22348 * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
22349
22350 2007-02-11 Roger Sayle <roger@eyesopen.com>
22351
22352 * simplify-rtx.c (simplify_relational_operation_1): Optimize
22353 comparisons of POPCOUNT against zero.
22354 (simplify_const_relational_operation): Likewise.
22355
22356 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22357
22358 * doc/invoke.texi (Wextra): Delete outdated paragraph.
22359
22360 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22361
22362 * dwarf2out.c (root_type): Delete unused function.
22363
22364 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22365
22366 * genattrtab.c (contained_in_p): Delete unused function.
22367 (write_expr_attr_cache): Likewise.
22368
22369 2007-02-11 Jan Hubicka <jh@suse.cz>
22370
22371 * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
22372 previous patch.
22373
22374 2007-02-11 Steven Bosscher <steven@gcc.gnu.org>
22375
22376 * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
22377 to add the REG_EQ* note.
22378 * see.c (see_merge_one_use_extension): Likewise.
22379 * local-alloc.c (update_equiv_regs): Likewise. Also don't
22380 turn REG_EQUAL notes into REG_EQUIV notes if the target
22381 register may have more than one set.
22382 * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
22383 * gcse.c (try_replace_reg): Likewise.
22384 * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
22385 * calls.c (fixup_tail_calls): Likewise. Abort if there is
22386 more than one REG_EQUIV note.
22387 * reload1.c (gen_reload): Use set_unique_reg_note.
22388
22389 2007-02-11 Uros Bizjak <ubizjak@gmail.com>
22390
22391 * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
22392 (ix86_builtin_conversion): New function.
22393
22394 2007-02-06 Mark Mitchell <mark@codesourcery.com>
22395
22396 PR target/29487
22397 * tree.h (DECL_REPLACEABLE_P): New macro.
22398 * except.c (set_nothrow_function_flags): Likewise.
22399
22400 2007-02-11 Tehila Meyzels <tehila@il.ibm.com>
22401 Ira Rosen <irar@il.ibm.com>
22402 Dorit Nuzman <dorit@il.ibm.com>
22403
22404 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
22405 * targhooks.c (default_builtin_vectorized_conversion): New.
22406 * targhooks.h (default_builtin_vectorized_function): New declaration.
22407 * target.h (struct vectorize): Add builtin_conversion field.
22408 * tree-vectorizer.h (type_conversion_vec_info_type): New enum
22409 stmt_vec_info_type value.
22410 (vectorizable_conversion): New declaration.
22411 * tree-vect-analyze.c (vect_analyze_operations): Add
22412 vectorizable_conversion call.
22413 * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
22414 * tree-vect-transform.c (vectorizable_conversion): New function.
22415 (vect_transform_stmt): Add case for type_conversion_vec_info_type.
22416 * tree-vect-generic.c (expand_vector_operations_1): Consider correct
22417 mode.
22418 * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
22419 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
22420 (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
22421 or ALTIVEC_BUILTIN_VCFSX.
22422
22423 2007-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22424
22425 PR target/30634
22426 * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
22427 CONST_DOUBLE and operand 0 is a hard register.
22428 (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
22429 memory. Fail if operand 1 is a non-zero CONST_INT and operand 0
22430 is a hard floating-point register.
22431
22432 2007-02-10 Richard Henderson <rth@redhat.com>
22433 Jakub Jelinek <jakub@redhat.com>
22434 Alexandre Oliva <aoliva@redhat.com>
22435
22436 * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
22437 * builtin-types.def (BT_WORD): Make unsigned.
22438 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
22439 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
22440 (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
22441 * c-decl.c (grokdeclarator): Don't error if !have_tls.
22442 * c-parser.c (c_parser_omp_threadprivate): Likewise.
22443 * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
22444 emulated tls.
22445 * expr.c (emutls_var_address): New.
22446 (expand_expr_real_1): Expand emulated tls.
22447 (expand_expr_addr_expr_1): Likewise.
22448 * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
22449 * output.h (emutls_finish): Declare.
22450 * toplev.c (compile_file): Call it.
22451 * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
22452 address before wrapping in CONST.
22453 * varasm.c (emutls_htab, emutls_object_type): New.
22454 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
22455 (get_emutls_object_name, get_emutls_object_type): New.
22456 (get_emutls_init_templ_addr, emutls_decl): New.
22457 (emutls_common_1, emutls_finish): New.
22458 (assemble_variable): When emulating tls, swap decls; generate
22459 constructor for the emutls objects.
22460 (do_assemble_alias): When emulating tls, swap decl and target name.
22461 (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
22462 for emulated tls.
22463 * varpool.c (decide_is_variable_needed): Look at force_output.
22464 Recurse for emulated tls.
22465 (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
22466 with decide_is_variable_needed.
22467 * emutls.c: New file.
22468 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
22469 tls_object for real tls.
22470
22471 2007-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
22472
22473 PR rtl-optimization/29599
22474 * reload1.c (eliminate_regs_in_insn): Take the destination
22475 mode into account when computing the offset.
22476
22477 2007-02-09 Stuart Hastings <stuart@apple.com>
22478 Richard Henderson <rth@redhat.com>
22479
22480 * config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
22481 * config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
22482 * config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
22483 fixuns_truncdfhi2): New.
22484 (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
22485 (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
22486 (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
22487 (floatunssidf2): Allow nonimmediate source.
22488 * config/i386/sse.md (movdi_to_sse): New.
22489 (vec_concatv2di): Drop '*'.
22490 * config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
22491 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
22492 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
22493 New.
22494 * config/i386/i386.c (ix86_expand_convert_uns_si_sse,
22495 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
22496 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
22497 ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
22498 (ix86_build_signbit_mask): Fix decl of v, refactor to call
22499 ix86_build_const_vector.
22500 (x86_emit_floatuns): Rewrite.
22501
22502 2007-02-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22503
22504 * genautomata.c (longest_path_length): Delete unused function.
22505 (struct state): Delete unused longest_path_length.
22506 (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
22507 (get_free_state): Delete unused.
22508
22509 2007-02-09 Jan Hubicka <jh@suse.cz>
22510
22511 * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
22512 * doc/invoke.texi (inline-unit-growth): Update default value.
22513
22514 * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
22515 * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
22516 (rebuild_cgraph_edges): Likewise.
22517 * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
22518 (dump_cgraph_node): Dump frequencies.
22519 (cgraph_clone_edge): Add frequency scales.
22520 (cgraph_clone_node): Add freuqnecy.
22521 * cgraph.h (cgraph_edge): Add freuqnecy argument.
22522 (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
22523 (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
22524 * tree-pass.h (TODO_rebuild_frequencies): New constant.
22525 * cgraphunit.c (verify_cgraph_node): Verify frequencies.
22526 (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
22527 (save_inline_function_body): Likewise.
22528 * ipa-inline.c: inluce rtl.h
22529 (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
22530 (cgraph_edge_badness): Use frequencies.
22531 (cgraph_decide_recursive_inlining): Update clonning.
22532 (cgraph_decide_inlining_of_small_function): Dump frequency.
22533 * predict.c (estimate_bb_frequencies): Export.
22534 * predict.h (estimate_bb_frequencies): Declare.
22535 * tree-inline.c (copy_bb): Watch overflows.
22536 (expand_call_inline): Update call of cgraph_create_edge.
22537 (optimize_inline_calls): Use TODO flags to update frequnecies.
22538 * passes.h: Include predict.h
22539 (init_optimization_passes): Move profile ahead.
22540 (execute_function_todo): Handle TODO_rebuild_frequencies.
22541
22542 2007-02-09 Roger Sayle <roger@eyesopen.com>
22543
22544 * config/alpha/alpha.c (emit_insxl): Force the first operand of
22545 the insbl or inswl pattern into a register.
22546
22547 2007-02-09 Roger Sayle <roger@eyesopen.com>
22548
22549 * config/ia64/ia64.md (bswapdi2): New define_insn.
22550
22551 2007-02-09 Richard Henderson <rth@redhat.com>
22552
22553 * config/i386/constraints.md (Ym): New constraint.
22554 * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
22555 (movdi_1_rex64): Split sse and xmm general register moves from
22556 memory move alternatives. Use conditional register constraints.
22557 (movsf_1, movdf_integer): Likewise.
22558 (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
22559 (movdf_integer_rex64): New.
22560 (pushsf_rex64): Fix output constraints.
22561 * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
22562 (sse2_stored): Likewise.
22563 (sse2_storeq_rex64): New.
22564 * config/i386/i386.c (x86_inter_unit_moves): Enable for not
22565 amd and not generic.
22566 (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
22567 for optimize_size. Remove SF/DFmode hack.
22568
22569 2007-02-09 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
22570
22571 * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
22572 (bit_SSE4a): New.
22573
22574 2007-02-09 Nathan Sidwell <nathan@codesourcery.com>
22575 Richard Sandiford <richard@codesourcery.com>
22576
22577 * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
22578 (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
22579 (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
22580 m68k/t-mlib to tmake_file.
22581 (m68020-*-elf*, m68k-*-elf*): Likewise. Add t-m68kbare as well.
22582 (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
22583 (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
22584 Allow it to be cf or m68k. Set m68k_arch_family. If that
22585 variable is not empty, add t-$m68k_arch_family to tmake_file.
22586 Add t-mlibs to tmake_file.
22587 * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
22588 * config/m68k/t-cf: New file.
22589 * config/m68k/t-m68k: Likewise.
22590 * config/m68k/t-mlibs: Likewise.
22591 * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
22592 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
22593 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
22594 * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
22595 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
22596 Delete.
22597 * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
22598 (INSTALL_LIBGCC): Delete.
22599 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
22600 * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
22601 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
22602 (M68K_MLIB_CPU): Define.
22603 * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
22604 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
22605 (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
22606
22607 2007-02-09 Zdenek Dvorak <dvorakz@suse.cz>
22608 Richard Guenther <rguenther@suse.de>
22609
22610 PR middle-end/23361
22611 * fold-const.c (fold_comparison): Handle obfuscated comparisons
22612 against INT_MIN/INT_MAX.
22613 * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
22614 file if a loop is removed.
22615
22616 2007-02-09 Joseph Myers <joseph@codesourcery.com>
22617
22618 * calls.c (store_one_arg): Pass correct alignment to
22619 emit_push_insn for non-BLKmode values.
22620 * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
22621 unaligned stack slot via a suitably aligned slot.
22622
22623 2007-02-08 DJ Delorie <dj@redhat.com>
22624
22625 * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
22626 warnings.
22627 (legal_subregs): Use unsigned char, make const.
22628 (m32c_illegal_subreg_p): Use ARRAY_SIZE. Delete unused variables.
22629
22630 2007-02-08 Paul Brook <paul@codesourcery.com>
22631
22632 * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
22633 special interworking needed.
22634
22635 2007-02-08 Harsha Jagasia <harsha.jagasia@amd.com>
22636
22637 * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
22638 conditional to __SSE2__.
22639 (Entries below should have been added to first ChangeLog
22640 entry for amdfam10 dated 2007-02-05)
22641 * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
22642 defined.
22643 * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
22644 defined.
22645 * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
22646 defined.
22647
22648 2007-02-08 DJ Delorie <dj@redhat.com>
22649
22650 * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
22651 * config/m32c/m32c.c (legal_subregs): New.
22652 (m32c_illegal_subreg_p): New.
22653 * config/m32c/predicates.md (m32c_any_operand): Use it to reject
22654 unsupported subregs of hard regs.
22655
22656 2007-02-08 Jan Hubicka <jh@suse.cz>
22657
22658 * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
22659 the same one; always update histograms.
22660
22661 2007-02-08 Diego Novillo <dnovillo@redhat.com>
22662
22663 * passes.c (init_optimization_passes): Tidy comment.
22664
22665 2007-02-08 Roger Sayle <roger@eyesopen.com>
22666
22667 * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
22668 strip zero_extend, bswap and rotates from POCOUNT's argument.
22669 <PARITY>: Likewise, we can strip not, bswap, sign_extend,
22670 zero_extend and rotates from PARITY's argument.
22671 <BSWAP>: A byte-swap followed by a byte-swap is an identity.
22672 (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
22673 of an integer constant at compile-time.
22674
22675 2007-02-08 Diego Novillo <dnovillo@redhat.com>
22676
22677 PR 30562
22678 * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
22679 Update all users.
22680 * tree-ssa-alias.c (compute_is_aliased): Remove. Update all
22681 users.
22682 (init_alias_info):
22683 * tree-ssa-live.c (remove_unused_locals): Do not remove
22684 TREE_ADDRESSABLE variables.
22685 * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
22686 * tree-ssa-operands.c (add_virtual_operand): Remove argument
22687 FOR_CLOBBER. Update all users.
22688 If VAR has an associated alias set, add a virtual operand for
22689 it if no alias is found to conflict with the memory reference.
22690
22691 2007-02-07 Jan Hubicka <jh@suse.cz>
22692 Robert Kidd <rkidd@crhc.uiuc.edu>
22693
22694 * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
22695
22696 2007-02-07 Ian Lance Taylor <iant@google.com>
22697
22698 * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
22699
22700 2007-02-07 Roger Sayle <roger@eyesopen.com>
22701
22702 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
22703 parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
22704 tablejumpdi, movsi_to_cr_one): Remove constraints from
22705 define_expand's match_operands.
22706
22707 2007-02-07 Roger Sayle <roger@eyesopen.com>
22708
22709 * global.c (compute_regsets): Move declatation of "i" inside of
22710 #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
22711
22712 2007-02-07 Jakub Jelinek <jakub@redhat.com>
22713
22714 PR c++/30703
22715 * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
22716 of INDIRECT_REF <RESULT_DECL>.
22717
22718 * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
22719
22720 2007-02-06 J"orn Rennecke <joern.rennecke@arc.com>
22721 Kaz Kojima <kkojima@gcc.gnu.org>
22722
22723 PR target/29746
22724 * config/sh/sh.c (expand_cbranchdi4): Use scratch register
22725 properly.
22726 (sh_initialize_trampoline): Add parentheses to avoid a warning.
22727
22728 2007-02-06 Zdenek Dvorak <dvorakz@suse.cz>
22729
22730 * doc/loop.texi: Document possibility not to perform disambiguation
22731 of loops with multiple latches.
22732 * cfgloopmanip.c (alp_enum_p): Removed.
22733 (add_loop): Handle subloops. Use get_loop_body_with_size.
22734 (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
22735 * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
22736 the new forwarder block.
22737 (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
22738 Handle the case latch is NULL.
22739 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg
22740 modifications when marking loop exits.
22741 * ifcvt.c (if_convert): Ditto. Mark loop exits even if cfg cannot
22742 be modified.
22743 * loop-init.c (loop_optimizer_init): Do not modify cfg. Call
22744 disambiguate_loops_with_multiple_latches.
22745 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
22746 before fix_loop_structure.
22747 * cfgloop.c: Include pointer-set.h and output.h.
22748 (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
22749 update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
22750 (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
22751 find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
22752 mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
22753 disambiguate_multiple_latches, get_loop_body_with_size,
22754 disambiguate_loops_with_multiple_latches): New functions.
22755 (flow_loop_dump): Dump multiple latch edges.
22756 (flow_loop_nodes_find): Handle loops with multiple latches.
22757 (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
22758 (glb_enum_p): Modified.
22759 (get_loop_body): Use get_loop_body_with_size.
22760 * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
22761 (AVOID_CFG_MODIFICATIONS): New constant.
22762 (disambiguate_loops_with_multiple_latches, add_loop,
22763 get_loop_body_with_size): Declare.
22764 * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
22765
22766 2007-02-06 Seongbae Park <seongbae.park@gmail.com>
22767
22768 PR inline-asm/28686
22769 * global.c (compute_regsets): New function.
22770 (global_alloc): Refactored ELIMINABLE_REGSET
22771 and NO_GLOBAL_ALLOC_REGS computation out.
22772 (rest_of_handle_global_alloc): Call compute_regsets()
22773 for non-optimizing case.
22774
22775 2007-02-06 Richard Henderson <rth@redhat.com>
22776
22777 * config/i386/constraints.md (Y2): Rename from Y.
22778 (Yi): New constraint.
22779 * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
22780 pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
22781 zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
22782 (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
22783 truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
22784 fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
22785 floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed,
22786 absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
22787 fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
22788 * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
22789 mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
22790 vec_extractv2si_1): Change Y constraints to Y2.
22791 * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
22792 vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
22793 Change Y constraints to Y2.
22794 (sse2_loadld): Change Y constraints to x.
22795
22796 2007-02-06 Roger Sayle <roger@eyesopen.com>
22797
22798 * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
22799 (parity<mode>2): New define_expand using rs6000_emit_parity.
22800 * config/rs6000/rs6000.c (rs6000_emit_popcount,
22801 rs6000_emit_parity): New functions.
22802 * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
22803 rs6000_emit_parity): Prototype here.
22804
22805 2007-02-06 Ian Lance Taylor <iant@google.com>
22806
22807 * lower-subreg.c (simple_move_operand): Reject CONST.
22808 (resolve_clobber): Call validate_change rather than directly
22809 assigning to XEXP (pat, 0).
22810
22811 2006-02-06 Paolo Bonzini <bonzini@gnu.org>
22812
22813 * Makefile.in (tree-ssa-loop-ivopts.o): Add pointer-set.h dependency.
22814 (tree-ssa-reassoc.o): Add pointer-set.h dependency.
22815 (tree-cfg.o): Remove hashtab.h dependency.
22816
22817 * tree-ssa-loop-ivopts.c: Include pointer-set.h.
22818 (struct ivopts_data): Change niters to pointer_map_t.
22819 (struct nfe_cache_elt, nfe_hash, nfe_eq): Delete.
22820 (niter_for_exit): Create pointer_map on demand. Change for
22821 pointer_map API.
22822 (tree_ssa_iv_optimize_init): Initialize data->niters to NULL.
22823 (free_loop_data): Destroy data->niters if created and reset field.
22824 (tree_ssa_iv_optimize_finalize): Don't delete data->niters here.
22825 (tree_ssa_iv_optimize_loop): Check for presence of stale data.
22826
22827 * tree-ssa-reassoc.c: Include pointer-set.h.
22828 (bb_rank): Change to long *.
22829 (operand_rank): Change to pointer_map_t.
22830 (find_operand_rank): Return long, -1 if not found. Declare as inline.
22831 (insert_operand_rank): Accept long.
22832 (operand_entry_hash, operand_entry_eq): Remove.
22833 (get_rank): Return long. Adjust for changes above.
22834 (init_reassoc): Change rank type to long. Adjust creation of bb_rank
22835 and operand_rank.
22836 (fini_reassoc): Delete operand_rank with pointer_map_destroy.
22837
22838 * tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
22839 (struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
22840 (insert_vi_for_tree): Rewrite for pointer_map API. Assert argument
22841 is not NULL.
22842 (lookup_vi_for_tree): Rewrite for pointer_map API. Return varinfo_t
22843 directly since it cannot be NULL.
22844 (get_vi_for_tree): Rewrite for pointer_map API.
22845 (find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
22846 (init_alias_vars): Create vi_for_tree as pointer_map.
22847 (delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
22848
22849 * tree-cfg.c: Don't include hashtab.h.
22850 (edge_to_cases): Declare as pointer_map.
22851 (struct edge_to_cases_elt, edge_to_cases_hash, edge_to_cases_eq):
22852 Delete.
22853 (edge_to_cases_cleanup): Rewrite as pointer_map_traverse callback.
22854 (start_recording_case_labels): Create edge_to_cases as pointer_map.
22855 (end_recoding_case_labels): Cleanup edge_to_cases manually before
22856 destroying it.
22857 (record_switch_edge): Delete.
22858 (get_cases_for_edge): Adjust for pointer_map API, inline
22859 record_switch_edge (rewritten for new API), remove goto.
22860
22861 2006-02-06 Paolo Bonzini <bonzini@gnu.org>
22862
22863 * Makefile.in (tree-nested.o): Add pointer-set.h dependency.
22864 * tree-nested.c: Include pointer-set.h.
22865 (var_map_elt, var_map_eq, var_map_hash): Delete.
22866 (struct nesting_info): Remove GTY marker. Change the two htab_t's
22867 to pointer_map_t's.
22868 (nesting_info_bitmap_obstack): New.
22869 (lookup_field_for_decl): Adjust for pointer_map API.
22870 (lookup_tramp_for_decl): Adjust for pointer_map API.
22871 (get_nonlocal_debug_decl): Adjust for pointer_map API.
22872 (get_local_debug_decl): Adjust for pointer_map API.
22873 (convert_nl_goto_reference): Adjust for pointer_map API.
22874 (convert_nl_goto_receiver): Adjust for pointer_map API.
22875 (create_nesting_tree): Create outside GGC space. Create bitmap on
22876 the new obstack. Create field_map and var_map as pointer_maps.
22877 (free_nesting_tree): Adjust for changes to create_nesting_tree.
22878 (root): Delete.
22879 (lower_nested_functions): Move root here, no need to NULL it.
22880 Initialize and release the obstack.
22881
22882 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
22883
22884 * tree.c (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p):
22885 Remove prototypes and make them non-static.
22886 (struct tree_int_map): Remove.
22887 * tree.h (struct tree_int_map): Move here, turning TO into an
22888 unsigned int.
22889 (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p): Declare.
22890
22891 * tree.h (TREE_COMPLEXITY): Remove.
22892 (struct tree_exp): Remove complexity field.
22893 * tree.c (build1_stat): Don't set it.
22894
22895 2007-02-06 Dorit Nuzman <dorit@il.ibm.com>
22896 Victor Kaplansky <victork@il.ibm.com>
22897
22898 * tree-vectorizer.c (vect_is_simple_use): Support induction.
22899 (vect_is_simple_reduction): Support reduction with induction as
22900 one of the operands.
22901 (vect_is_simple_iv_evolution): Fix formatting.
22902 * tree-vect-analyze.c (vect_mark_stmts_to_be_vectorized): Fix
22903 formatting. Don't mark induction phis for vectorization.
22904 (vect_analyze_scalar_cycles): Analyze all inductions, then reductions.
22905 * tree-vect-transform.c (get_initial_def_for_induction): New function.
22906 (vect_get_vec_def_for_operand): Support induction.
22907 (vect_get_vec_def_for_stmt_copy): Fix formatting and add check for
22908 induction case.
22909 (vectorizable_reduction): Support reduction with induction as one of
22910 the operands.
22911 (vectorizable_type_demotion): Use def-type of stmt argument rather
22912 than dummy def-type.
22913
22914 * tree-ssa-loop.c (gate_scev_const_prop): Return the value of
22915 flag_tree_scev_cprop.
22916 * common.opt (tree-scev-cprop): New flag.
22917
22918 * tree-vect-transform.c (vect_create_destination_var): Use 'kind' in
22919 call to vect_get_new_vect_var.
22920
22921 2007-02-06 Ira Rosen <irar@il.ibm.com>
22922
22923 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that
22924 vectype is not NULL.
22925 (vect_pattern_recog_1): Likewise.
22926
22927 2007-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22928
22929 * fold-const.c (negate_expr_p): Handle CONJ_EXPR.
22930 (fold_negate_expr): Likewise.
22931
22932 2007-02-05 Alexandre Oliva <aoliva@redhat.com>
22933
22934 PR debug/30189
22935 * dwarf2out.c (modified_type_die): Follow DECL_ORIGINAL_TYPE
22936 even if cv-qualification is the same.
22937
22938 2007-02-05 Geoffrey Keating <geoffk@apple.com>
22939
22940 * config/rs6000/darwin-tramp.asm (__trampoline_setup): Call
22941 __enable_execute_stack on completion.
22942
22943 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
22944
22945 * config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
22946 athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
22947 athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
22948 athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
22949 athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
22950 athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
22951 athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
22952 athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
22953
22954 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
22955
22956 * config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
22957 cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
22958 swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
22959 fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
22960 x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
22961 floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
22962 floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
22963 mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
22964 umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
22965 umuldi3_highpart_rex64, umulsi3_highpart_insn,
22966 umulsi3_highpart_zext, smuldi3_highpart_rex64,
22967 smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
22968 x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
22969 sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
22970 sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
22971 sqrtextenddfxf2_i387): Added amdfam10_decode.
22972
22973 * config/i386/athlon.md (athlon_idirect_amdfam10,
22974 athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
22975 athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
22976 athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
22977 athlon_ivector_store_amdfam10): New define_insn_reservation.
22978 (athlon_idirect_loadmov, athlon_idirect_movstore): Added
22979 amdfam10.
22980
22981 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
22982
22983 * config/i386/athlon.md (athlon_call_amdfam10,
22984 athlon_pop_amdfam10, athlon_lea_amdfam10): New
22985 define_insn_reservation.
22986 (athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
22987 athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
22988 athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
22989
22990 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
22991
22992 * config/i386/athlon.md (athlon_sseld_amdfam10,
22993 athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
22994 athlon_mmxssest_short_amdfam10): New define_insn_reservation.
22995
22996 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
22997
22998 * config/i386/athlon.md (athlon_sseins_amdfam10): New
22999 define_insn_reservation.
23000 * config/i386/i386.md (sseins): Added sseins to define_attr type
23001 and define_attr unit.
23002 * config/i386/sse.md: Set type attribute to sseins for insertq
23003 and insertqi.
23004
23005 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
23006
23007 * config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
23008 ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
23009 ssecomi_load_amdfam10, ssecomi_amdfam10,
23010 sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
23011 define_insn_reservation.
23012 (ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
23013
23014 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
23015
23016 * config/i386/athlon.md (cvtss2sd_load_amdfam10,
23017 cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
23018 cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
23019 cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
23020 cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
23021 cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New
23022 define_insn_reservation.
23023
23024 * config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
23025 cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
23026 cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
23027 cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
23028 cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
23029
23030 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
23031
23032 * config/i386/athlon.md (athlon_ssedivvector_amdfam10,
23033 athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
23034 athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
23035 (athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
23036 athlon_ssemul_load_k8): Added amdfam10.
23037
23038 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
23039
23040 * config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
23041 (x86_sse_unaligned_move_optimal): New variable.
23042
23043 * config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for
23044 m_AMDFAM10.
23045 (ix86_expand_vector_move_misalign): Add code to generate movupd/movups
23046 for unaligned vector SSE double/single precision loads for AMDFAM10.
23047
23048 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
23049
23050 * config/i386/i386.h (TARGET_AMDFAM10): New macro.
23051 (TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
23052 Define TARGET_CPU_DEFAULT_amdfam10.
23053 (TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
23054 (processor_type): Add PROCESSOR_AMDFAM10.
23055
23056 * config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
23057 processor_type in config/i386/i386.h.
23058 Enable imul peepholes for TARGET_AMDFAM10.
23059
23060 * config.gcc: Add support for --with-cpu option for amdfam10.
23061
23062 * config/i386/i386.c (amdfam10_cost): New variable.
23063 (m_AMDFAM10): New macro.
23064 (m_ATHLON_K8_AMDFAM10): New macro.
23065 (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
23066 x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
23067 x86_promote_QImode, x86_integer_DFmode_moves,
23068 x86_partial_reg_dependency, x86_memory_mismatch_stall,
23069 x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
23070 x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
23071 x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
23072 x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
23073 Enable/disable for amdfam10.
23074 (override_options): Add amdfam10_cost to processor_target_table.
23075 Set up PROCESSOR_AMDFAM10 for amdfam10 entry in
23076 processor_alias_table.
23077 (ix86_issue_rate): Add PROCESSOR_AMDFAM10.
23078 (ix86_adjust_cost): Add code for amdfam10.
23079
23080 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
23081
23082 * config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
23083 instruction set feature flag. Add new (-mpopcnt) flag for popcnt
23084 instruction. Add new SSE4A (-msse4a) instruction set feature flag.
23085 * config/i386/i386.h: Add builtin definition for SSE4A.
23086 * config/i386/i386.md: Add support for ABM instructions
23087 (popcnt and lzcnt).
23088 * config/i386/sse.md: Add support for SSE4A instructions
23089 (movntss, movntsd, extrq, insertq).
23090 * config/i386/i386.c: Add support for ABM and SSE4A builtins.
23091 Add -march=amdfam10 flag.
23092 * config/i386/ammintrin.h: Add support for SSE4A intrinsics.
23093 * doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
23094 and amdfam10.
23095 * doc/extend.texi: Add documentation for SSE4A builtins.
23096
23097 2007-02-05 Bob Wilson <bob.wilson@acm.org>
23098
23099 * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
23100
23101 2007-02-05 Richard Guenther <rguenther@suse.de>
23102
23103 * tree-vectorizer.h (vectorizable_function): Add argument type
23104 argument, change return type.
23105 * tree-vect-patterns.c (vect_recog_pow_pattern): Adjust caller.
23106 * tree-vect-transform.c (vectorizable_function): Handle extra
23107 argument, return vectorized function decl.
23108 (build_vectorized_function_call): Remove.
23109 (vectorizable_call): Handle calls with result and argument types
23110 differing. Handle loop vectorization factor correctly.
23111 * targhooks.c (default_builtin_vectorized_function): Adjust for
23112 extra argument.
23113 * targhooks.h (default_builtin_vectorized_function): Likewise.
23114 * target.h (builtin_vectorized_function): Add argument type
23115 argument.
23116 * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
23117 extra argument, allow vectorizing of lrintf.
23118 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Adjust
23119 documentation of target hook.
23120
23121 2007-02-05 Hans-Peter Nilsson <hp@axis.com>
23122
23123 PR target/30665
23124 * config/cris/cris.md ("*andsi_movu", "*andsi_clear", "*andhi_movu")
23125 ("*andhi_clear", andu (casesi+45)): For size-changed operand where
23126 memory is allowed, require !side_effects_p, not just !MEM_VOLATILE_P.
23127
23128 2007-02-05 Roger Sayle <roger@eyesopen.com>
23129
23130 * fold-const.c (fold_unary) <REAL_PART>: Test for availability of
23131 BUILT_IN_COS before simplifying REAL_PART(CEXPI)) to COS.
23132 <IMAG_PART>: Likewise, check for availability of BUILT_IN_SIN.
23133 * builtins.c (fold_builtin_sincos): Check for TARGET_C99_FUNCTIONS
23134 before canonicalizing sincos to cexpi.
23135 (fold_builtin_cexp): Likewise, for canonicalizing cexp to cexpi.
23136
23137 2007-02-05 Roger Sayle <roger@eyesopen.com>
23138
23139 * config/alpha/alpha.c (alpha_add_builtins): New Helper function.
23140 Set TREE_READONLY and TREE_NOTHROW directly, not via attributes.
23141 (alpha_init_builtins): Use alpha_add_builtins to process tables.
23142
23143 2007-02-05 Roger Sayle <roger@eyesopen.com>
23144
23145 * mips-tfile.c (initialize_init_file): Correct endianness test.
23146
23147 2007-02-05 Kazu Hirata <kazu@codesourcery.com>
23148
23149 * config/m68k/m68k.md (pushdi-1, pushdi, movsi+1): Don't use
23150 the 'y' constraint.
23151
23152 2007-02-05 Richard Sandiford <richard@codesourcery.com>
23153
23154 * dwarf2out.c (dwarf2out_frame_debug_expr): Record the register
23155 saves in a PARALLEL before the register assignments.
23156
23157 2007-02-05 Richard Sandiford <richard@codesourcery.com>
23158
23159 * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Do not require
23160 DWARF_FRAME_RETURN_COLUMN to be a general register.
23161 * dwarf2out.c (init_return_column_size): New function, split from...
23162 (expand_builtin_init_dwarf_reg_sizes): ...here. Allow both
23163 DWARF_FRAME_RETURN_COLUMN and DWARF_ALT_FRAME_RETURN_COLUMN
23164 to be nongeneral registers.
23165 * config/m68k/m68k.h (DWARF_FRAME_REGNUM): Only map FP and
23166 integer registers.
23167 (DWARF_FRAME_REGISTERS, DWARF_FRAME_RETURN_COLUMN): Define.
23168 (DWARF_ALT_FRAME_RETURN_COLUMN): Define.
23169
23170 2007-02-04 Zdenek Dvorak <dvorakz@suse.cz>
23171
23172 * cfgcleanup.c (try_optimize_cfg): Avoid removing ENTRY_BLOCK_PTR.
23173
23174 2007-02-04 Zdenek Dvorak <dvorakz@suse.cz>
23175
23176 * cfgloopmanip.c (loop_delete_branch_edge): Removed.
23177 (remove_path): Use can_remove_branch_p and remove_branch instead
23178 of loop_delete_branch_edge.
23179 * tree-ssa-loop-manip.c (scale_dominated_blocks_in_loop): New function.
23180 (tree_transform_and_unroll_loop): Remove dead branches immediately.
23181 Update profile using scale_dominated_blocks_in_loop.
23182 * cfghooks.c (can_remove_branch_p, remove_branch): New functions.
23183 * cfghooks.h (struct cfg_hooks): Add can_remove_branch_p.
23184 (can_remove_branch_p, remove_branch): Declare.
23185 * tree-cfg.c (tree_can_remove_branch_p): New function.
23186 (tree_cfg_hooks): Add tree_can_remove_branch_p.
23187 * cfgrtl.c (rtl_can_remove_branch_p): New function.
23188 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add rtl_can_remove_branch_p.
23189
23190 2007-02-05 Jan Hubicka <jh@suse.cz>
23191
23192 PR middle-end/30696
23193 * ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed
23194 nodes in cgraph, don't remove offline copy of the function.
23195
23196 2007-02-04 Jan Hubicka <jh@suse.cz>
23197
23198 * tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
23199 vectors might cause maybe_lookup_element_for_expr to be called
23200 on non-sra-candidate.
23201
23202 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
23203
23204 * config/bfin/bfin-modes.def, config/bfin/bfin.c,
23205 config/bfin/bfin.md, config/bfin/predicates.md: Follow
23206 spelling conventions.
23207
23208 2007-02-04 Richard Guenther <rguenther@suse.de>
23209
23210 PR middle-end/30636
23211 * fold-const.c (try_move_mult_to_index): Make sure to not
23212 overflow one dimension of a multi-dimensional array access.
23213
23214 2007-02-04 Jan Hubicka <jh@suse.cz>
23215
23216 * passes.c (init_optimization_passes): Reindent.
23217
23218 2007-02-04 Jan Hubicka <jh@suse.cz>
23219 Eric Botcazou <ebotcazou@adacore.com>
23220
23221 * tree-optimize.c (has_abnormal_outgoing_edge_p): Move to...
23222 (execute_fixup_cfg): Break out the abnormal goto code.
23223 * tree-inline.c (has_abnormal_outgoing_edge_p): ...here.
23224 (make_nonlocal_label_edges): Move here from execute_fixup_cfg.
23225 (optimize_inline_calls): Call make_nonlocal_label_edges.
23226
23227 2007-02-04 Jan Hubicka <jh@suse.cz>
23228
23229 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Return
23230 true when something was changed.
23231 (rename_ssa_copies): When something was changed, do
23232 TODO_remove_unused_locals.
23233 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
23234 add TODO_remove_unused_locals when instruction was removed.
23235
23236 2007-02-04 Jan Hubicka <jh@suse.cz>
23237
23238 * ipa-inline.c (try_inline): Improve debug output; work on already
23239 inline edges too.
23240 (cgraph_decide_inlining_incrementally): Indent; improve debug output;
23241 call try_inline for already inlined edges too when flattening;
23242 inline also functions that make callee growth but overall unit size
23243 reduce.
23244
23245 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
23246
23247 * config/m32c/bitops.md, config/m32c/jump.md,
23248 config/m32c/m32c.c, config/m32c/m32c.h, config/m32r/m32r.c,
23249 config/m32r/m32r.h, config/m32r/m32r.md,
23250 config/m32r/predicates.md, config/m68hc11/larith.asm,
23251 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
23252 config/m68k/m68k.h, config/mcore/mcore.md, config/mips/4k.md,
23253 config/mips/mips-protos.h, config/mips/mips.c,
23254 config/mips/mips.h, config/mips/mips.md, config/mips/mips16.S,
23255 config/mn10300/mn10300.h, config/mn10300/predicates.md,
23256 config/mt/mt.c, config/mt/mt.h, config/mt/mt.md: Follow
23257 spelling conventions.
23258
23259 * config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
23260 Follow spelling conventions.
23261
23262 2007-02-03 Douglas Gregor <doug.gregor@gmail.com>
23263
23264 * c-opts.c (c_common_post_options): If C++0x mode is enabled, don't
23265 warn about C++0x compatibility.
23266
23267 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
23268
23269 * config/h8300/h8300.c, config/h8300/h8300.h,
23270 config/h8300/h8300.md: Follow spelling conventions.
23271
23272 2007-02-03 Uros Bizjak <ubizjak@gmail.com>
23273
23274 PR middle-end/30667
23275 * combine.c (try_combine): Do not substitute source operand
23276 with constants wider than 2 * HOST_BITS_PER_WIDE_INT.
23277
23278 2007-02-03 Jan Hubicka <jh@suse.cz>
23279
23280 PR gcov-profile/30650
23281 * value-prof.c (stringop_block_profile): Fix handling of size counter;
23282 do not divide by zero for never executed counters.
23283 (tree_find_values_to_profile): Fix counters.
23284 * gcov-ui.h (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): Fix comments.
23285
23286 2007-02-03 Ian Lance Taylor <iant@google.com>
23287
23288 * lower-subreg.c (simple_move_operand): New static function,
23289 broken out of simple_move. Reject LABEL_REF, SYMBOL_REF, and HIGH
23290 operands.
23291 (simple_move): Call simple_move_operand.
23292 (find_decomposable_subregs): Add special handling of MEMs.
23293 (can_decompose_p): Rename from cannot_decompose_p. Reverse
23294 meaning of return value. If we see a hard register, test whether
23295 it can store a word_mode value. Change all callers.
23296
23297 2007-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23298
23299 * pa.md (addvdi3, addvsi3, subvdi3, subvsi3, negvdi2, negvsi2): New
23300 ftrapv insns and expanders.
23301 (subdi3): Change define_expand operand 1 to arith11_operand, and
23302 operand 2 to reg_or_0_operand. Change constraints of 64-bit insn
23303 pattern to handle reg_or_0 operands. Revise 32-bit insn pattern to
23304 handle 11-bit constants and reg_or_0 operands in operands 1 and 2,
23305 respectively.
23306
23307 PR middle-end/30174
23308 * varasm.c (notice_global_symbol): Treat global objects as weak when
23309 flag_shlib is true.
23310
23311 2007-02-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23312
23313 * emit-rtl.c (dconstpi): Delete.
23314 (dconstsqrt2): New.
23315 (init_emit_once): Delete dconstpi and init dconstsqrt2.
23316 * real.h (dconstpi): Delete.
23317 (dconstsqrt2): New.
23318 * builtins.c (fold_builtin_cabs): Use dconstsqrt2.
23319 (fold_builtin_hypot): Likewise.
23320
23321 2007-02-03 Tom Tromey <tromey@redhat.com>
23322
23323 PR driver/30246
23324 * gcc.c (cpp_unique_options): Any of -ggdb3, -gstabs3,
23325 -gcoff3, -gxcoff3, -gvms3 implies -dD.
23326
23327 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
23328
23329 * c-decl.c, config/avr/avr.c, config/avr/avr.h,
23330 config/m68k/m68k.c, config/m68k/netbsd-elf.h,
23331 config/mn10300/mn10300.c, config/pdp11/pdp11.h,
23332 config/rs6000/cell.md, config/rs6000/darwin.h,
23333 config/sh/sh.md, config/sh/sh4-300.md, config/spu/spu.c,
23334 config/spu/spu.md, cselib.c, expr.c, haifa-sched.c, hwint.h,
23335 jump.c, reload.c, sched-deps.c, sched-int.h, tree-inline.c,
23336 tree-profile.c, tree-ssa-live.h, tree-vrp.c: Fix comment
23337 typos. Follow spelling conventions.
23338 * doc/invoke.texi: Follow spelling conventions.
23339
23340 2007-02-03 Roger Sayle <roger@eyesopen.com>
23341
23342 * simplify-rtx.c (simplify_relational_operation_1): Implement some
23343 canonicalization transformations that attempt to simplify integer
23344 constant comparisons to become comparisons against zero.
23345
23346 2007-02-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23347
23348 * builtins.c (fold_builtin_cabs): Fold cabs(x+xi) into
23349 fabs(x)*sqrt(2).
23350 * fold-const.c (fold_binary): Fix comment typos. Fold complex
23351 (x,0)-(0,y) into (x,-y). Likewise (0,y)-(x,0) into (-x,y).
23352
23353 2007-02-02 Mike Stump <mrs@apple.com>
23354
23355 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Add.
23356 * config/rs6000/rs6000.c (DARWIN_GENERATE_ISLANDS): Add.
23357 (output_call): Use DARWIN_GENERATE_ISLANDS to decide when to
23358 generate a branch island.
23359
23360 2007-02-02 Bob Wilson <bob.wilson@acm.org>
23361
23362 * config/xtensa/xtensa.c (smalloffset_mem_p): Use BASE_REG_P.
23363 (xtensa_legitimate_address_p): New.
23364 (xtensa_legitimize_address): New.
23365 (xtensa_output_addr_const_extra): New.
23366 * config/xtensa/xtensa.h (REG_OK_STRICT_FLAG): Define.
23367 (BASE_REG_P): New.
23368 (REG_OK_FOR_BASE_P): Use BASE_REG_P.
23369 (GO_IF_LEGITIMATE_ADDRESS): Move code to xtensa_legitimate_address_p.
23370 (LEGITIMIZE_ADDRESS): Move code to xtensa_legitimize_address.
23371 (OUTPUT_ADDR_CONST_EXTRA): Move code to xtensa_output_addr_const_extra.
23372 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): New.
23373 (xtensa_legitimize_address): New.
23374 (xtensa_output_addr_const_extra): New.
23375
23376 2007-02-02 Steve Ellcey <sje@cup.hp.com>
23377
23378 * config/ia64/ia64.c (ia64_print_operand): Fix compare strings.
23379
23380 2007-02-02 Ian Lance Taylor <iant@google.com>
23381
23382 * expmed.c (expand_divmod): Add comment.
23383
23384 2007-02-02 Kazu Hirata <kazu@codesourcery.com>
23385
23386 * emit-rtl.c (renumber_insns): Remove.
23387 * flags.h: Remove the extern for flag_renumber_insns.
23388 * rtl.h: Remove the prototype for renumber_insns.
23389 * toplev.c (flag_renumber_insns): Remove.
23390
23391 2007-02-02 Hui-May Chang <hm.chang@apple.com>
23392
23393 Revert for x86 darwin:
23394 2005-06-19 Uros Bizjak <uros@kss-loka.si>
23395
23396 * config/i386/i386.c (ix86_function_arg_regno_p): Put back the
23397 code before the following patch under TARGET_MACHO.
23398 (ix86_function_value_regno_p): Likewise.
23399
23400 2007-02-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23401
23402 * fold-const.c (negate_expr_p, fold_negate_expr): Handle
23403 COMPLEX_EXPR.
23404
23405 2007-02-02 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
23406
23407 PR target/29682
23408 * config/ia64/ia64.c (ia64_speculate_insn): Restrict to memory
23409 loads to general or fp registers. Add comments.
23410 * config/ia64/ia64.md (reg_pred_prefix): Add comment.
23411
23412 2007-02-02 Paolo Bonzini <bonzini@gnu.org>
23413
23414 * pointer-set.c (insert_aux): Only return insertion slot.
23415 (pointer_set_insert): Adjust.
23416 (pointer_set_traverse, struct pointer_map_t, pointer_map_create,
23417 pointer_map_destroy, pointer_map_insert, pointer_map_contains,
23418 pointer_map_traverse): New.
23419 * pointer-set.h (pointer_set_traverse, struct pointer_map_t,
23420 pointer_map_create, pointer_map_destroy, pointer_map_insert,
23421 pointer_map_contains, pointer_map_traverse): Declare.
23422
23423 2007-02-02 Jakub Jelinek <jakub@redhat.com>
23424
23425 PR middle-end/30473
23426 * builtins.c (fold_builtin_sprintf): Do not attempt to optimize
23427 sprintf (str, "%s"). Do not optimize sprintf (str, "nopercent", p++).
23428
23429 2007-02-02 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
23430
23431 * sched-int.h (ds_to_dk, dk_to_ds): Declare functions.
23432
23433 (struct _dep): New type.
23434 (dep_t): New typedef.
23435 (DEP_PRO, DEP_CON, DEP_KIND): New access macros.
23436 (DEP_STATUS): New access macro. The macro with the same name was
23437 renamed to DEP_LINK_STATUS.
23438 (dep_init): Declare function
23439
23440 (struct _dep_link): New type.
23441 (dep_link_t): New typedef.
23442 (DEP_LINK_NODE, DEP_LINK_NEXT, DEP_LINK_PREV_NEXTP): New access macros.
23443 (DEP_LINK_DEP, DEP_LINK_PRO, DEP_LINK_CON, DEP_LINK_KIND): New macros.
23444 (DEP_LINK_STATUS): New macro.
23445 (debug_dep_links): New debug function.
23446
23447 (struct _deps_list): New type.
23448 (deps_list_t): New typedef.
23449 (DEPS_LIST_FIRST): New access macro.
23450 (FOR_EACH_DEP_LINK): New cycle macro.
23451 (create_deps_list, free_deps_list, delete_deps_list): Declare
23452 functions.
23453 (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
23454 (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
23455 (copy_deps_list_change_con): Ditto.
23456
23457 (move_dep_link): Declare function.
23458
23459 (struct _dep_node): New type.
23460 (dep_node_t): New typedef.
23461 (DEP_NODE_BACK, DEP_NODE_DEP, DEP_NODE_FORW): New access macros.
23462
23463 (struct haifa_insn_data.back_deps): New field to hold backward
23464 dependencies of the insn.
23465 (struct haifa_insn_data.depend): Rename to forw_deps. Change its type
23466 to deps_list_t.
23467 (struct haifa_insn_data.resolved_deps): Rename to resolved_back_deps.
23468 Change its type to deps_list_t.
23469 (INSN_BACK_DEPS): New access macro to use instead of LOG_LINKS.
23470 (INSN_DEPEND): Rename to INSN_FORW_DEPS.
23471 (RESOLVED_DEPS): Rename to INSN_RESOLVED_BACK_DEPS.
23472
23473 (INSN_COST): Move to haifa-sched.c. Use insn_cost () instead.
23474
23475 (DEP_STATUS): Rename to DEP_LINK_STATUS. Fix typo in the comment.
23476
23477 (add_forw_dep, delete_back_forw_dep, insn_cost): Update declaration
23478 and all callers.
23479 (dep_cost): Declare.
23480
23481 * sched-deps.c (CHECK): New macro to (en/dis)able sanity checks.
23482 (ds_to_dk, dk_to_ds): New functions.
23483
23484 (init_dep_1): New static function.
23485 (init_dep): New function.
23486 (copy_dep): New static function.
23487
23488 (dep_link_consistent_p, attach_dep_link, add_to_deps_list): New static
23489 functions.
23490 (detach_dep_link): New static function.
23491 (move_dep_link): New function.
23492
23493 (dep_links_consistent_p, dump_dep_links): New static functions.
23494 (debug_dep_links): New debugging function.
23495
23496 (deps_obstack, dl_obstack, dn_obstack): New static variables.
23497
23498 (alloc_deps_list, init_deps_list): New static functions.
23499 (create_deps_list): New function.
23500 (clear_deps_list): New static function.
23501 (free_deps_list, delete_deps_list, deps_list_empty_p): New functions.
23502 (deps_list_consistent_p, dump_deps_list): New static functions.
23503 (debug_deps_list): New function.
23504 (add_back_dep_to_deps_list, find_link_by_pro_in_deps_list): New
23505 functions.
23506 (find_link_by_con_in_deps_list, copy_deps_list_change_con): Ditto.
23507
23508 (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Update to
23509 use new scheduler dependencies lists.
23510 (add_back_dep, delete_all_dependences, fixup_sched_groups): Ditto.
23511 (sched_analyze): Ditto. Initialize dependencies lists.
23512 (add_forw_dep, compute_forward_dependences): Update to use new
23513 scheduler dependencies lists.
23514
23515 (init_dependency_caches): Init deps_obstack.
23516 (free_dependency_caches): Free deps_obstack.
23517
23518 (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Update to use
23519 new scheduler dependencies lists.
23520 (delete_forw_dep, add_or_update_back_forw_dep): Ditto.
23521 (add_back_forw_dep, delete_back_forw_dep): Ditto.
23522
23523 * sched-rgn.c (set_spec_fed, find_conditional_protection, is_pfree):
23524 Update to use new scheduler dependencies lists.
23525 (is_conditionally_protected, is_prisky, add_branch_dependences): Ditto.
23526 (debug_dependencies): Ditto.
23527 (schedule_region): Update comments.
23528
23529 * sched-ebb.c (earliest_block_with_similiar_load): Update to use new
23530 scheduler dependencies lists.
23531 (schedule_ebb): Update comments.
23532
23533 * rtl.def (DEPS_LIST): Remove.
23534
23535 * lists.c (unused_deps_list): Remove.
23536 (free_list): Update assertions.
23537
23538 (alloc_DEPS_LIST, free_DEPS_LIST_list, free_DEPS_LIST_node): Remove.
23539 (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
23540
23541 * rtl.h (free_DEPS_LIST_list, alloc_DEPS_LIST): Remove declarations.
23542 (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
23543
23544 * haifa-sched.c (comments): Update.
23545 (insn_cost1): Remove. Inline the code into insn_cost ().
23546 (insn_cost): Update to use new scheduler dependencies lists. Move
23547 processing of the dependency cost to dep_cost ().
23548 (dep_cost): New function. Use it instead of insn_cost () when
23549 evaluating cost of the dependency. Use compatible interface to
23550 interact with the target.
23551 (priority): Update to use new scheduler dependencies lists.
23552 (rank_for_schedule): Ditto. Optimize heuristic that prefers the insn
23553 with greater number of insns that depend on the insn.
23554 (schedule_insn): Update to use new scheduler dependencies lists. Add
23555 code to free backward dependencies lists. Inline and optimize code
23556 from resolve_dep () - see PR28071.
23557 (ok_for_early_queue_removal): Update to use new scheduler dependencies
23558 lists. Update call to targetm.sched.is_costly_dependence hook.
23559
23560 (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
23561 scheduler dependencies lists.
23562
23563 (resolve_dep): Remove. Move the logic to schedule_insn ().
23564 (init_h_i_d): Initialize dependencies lists.
23565
23566 (process_insn_depend_be_in_spec): Rename to
23567 process_insn_forw_deps_be_in_spec. Update to use new scheduler
23568 dependencies lists.
23569 (add_to_speculative_block, create_check_block_twin, fix_recovery_deps):
23570 Update to use new scheduler dependencies lists.
23571 (clear_priorities, calc_priorities, add_jump_dependencies): Ditto.
23572
23573 * ddg.c (create_ddg_dependence, create_ddg_dep_no_link): Update to use
23574 new scheduler dependencies lists.
23575 (build_intra_loop_deps): Ditto.
23576
23577 * target.h (struct _dep): Declare to use in
23578 gcc_target.sched.is_costly_dependence.
23579 (struct gcc_target.sched.adjust_cost): Fix typo.
23580 (struct gcc_target.sched.is_costly_dependence): Change signature to
23581 use single dep_t parameter instead of an equivalent triad.
23582 (struct gcc_target.sched.adjust_cost_2): Remove.
23583
23584 * target-def.h (TARGET_SCHED_ADJUST_COST_2): Remove.
23585
23586 * reg-notes.def (DEP_TRUE, DEP_OUTPUT, DEP_ANTI): Update comments.
23587
23588 * doc/tm.texi (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Update
23589 documentation.
23590 (TARGET_SCHED_ADJUST_COST_2): Remove documentation.
23591
23592 * doc/rtl.texi (LOG_LINKS): Remove part about instruction scheduler.
23593 (REG_DEP_TRUE): Document.
23594
23595 * config/ia64/ia64.c (ia64_adjust_cost_2): Rename to ia64_adjust_cost.
23596 Change signature to correspond to the targetm.sched.adjust_cost hook.
23597 Update use in TARGET_SCHED_ADJUST_COST_2.
23598 (TARGET_SCHED_ADJUST_COST_2): Rename to TARGET_SCHED_ADJUST_COST.
23599 (ia64_dependencies_evaluation_hook, ia64_dfa_new_cycle): Update to use
23600 new scheduler dependencies lists.
23601 (ia64_gen_check): Ditto.
23602
23603 * config/mips/mips.c (vr4130_swap_insns_p): Update to use new
23604 scheduler dependencies lists.
23605
23606 * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Change
23607 signature to correspond to the targetm.sched.is_costly_dependence hook.
23608 (is_costly_group): Update to use new scheduler dependencies lists.
23609
23610 * config/spu/spu.c (spu_sched_adjust_cost): Use insn_cost () function
23611 instead of INSN_COST () macro.
23612
23613 2007-02-01 Ian Lance Taylor <iant@google.com>
23614
23615 * lower-subreg.c (resolve_clobber): Handle a subreg of a concatn.
23616
23617 2007-02-01 Guy Martin <gmsoft@gentoo.org>
23618
23619 * pa.md (tp_load): Correct mfctl instruction syntax.
23620
23621 2007-02-01 Geoffrey Keating <geoffk@apple.com>
23622
23623 * config/rs6000/rs6000.c (rs6000_stack_info): Correct
23624 altivec_padding_size calculation on AIX. Improve comment, add
23625 assert to verify that it's right.
23626
23627 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Don't define for
23628 64-bit.
23629
23630 2007-2-01 Seongbae Park <seongbae.park@gmail.com>
23631
23632 PR inline-asm/28686
23633 * global.c (global_alloc): Add mising initialization of
23634 ELIMINABLE_REGSET.
23635
23636 2007-02-01 Roger Sayle <roger@eyesopen.com>
23637
23638 * alias.c (init_alias_analysis): Correct whitespace.
23639 * bb-reorder.c (fix_edges_for_rarely_executed_code,
23640 partition_hot_cold_basic_blocks): Likewise.
23641 * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
23642 expand_builtin_sprintf, fold_builtin_carg, fold_builtin_sprintf,
23643 maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
23644 fold_builtin_snprintf_chk, fold_builtin_printf,
23645 fold_builtin_fprintf, do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_arg2,
23646 do_mpfr_arg3, do_mpfr_sincos): Likewise.
23647 * cfgcleanup.c (cleanup_cfg): Likewise.
23648 * cfgexpand.c (tree_expand_cfg): Likewise.
23649 * fold-const.c (fold_binary) <RDIV_EXPR>: Likewise.
23650 * function.c (get_next_funcdef_no): Likewise.
23651 * gengtype.c (main): Likewise.
23652 * genmodes.c (main): Likewise.
23653 * gcse.c (bypass_conditional_jumps, print_ldst_list): Likewise.
23654 * haifa-sched.c (schedule_block, extend_h_i_d): Likewise.
23655 * ifcvt.c (noce_emit_move_insn): Likewise.
23656 * modulo-sched.c (generate_prolog_epilog, sms_schedule_by_order):
23657 Likewise.
23658 * stor-layout.c (get_best_mode): Likewise.
23659 * tree-ssa-loop-niter.c (get_val_for): Likewise.
23660 * tree-ssa-structalias.c (get_varinfo, get_varinfo_fc,
23661 scc_visit, do_ds_constraint, do_complex_constraint, label_visit,
23662 perform_var_substitution, solve_graph): Likewise.
23663 * tree-vrp.c (vrp_finalize): Likewise.
23664
23665 2007-02-01 Ian Lance Taylor <iant@google.com>
23666
23667 * lower-subreg.c (simplify_gen_subreg_concatn): If we ask for the
23668 high part of a paradoxical subreg, return a constant zero.
23669
23670 2007-02-01 Zdenek Dvorak <dvorakz@suse.cz>
23671
23672 * toplev.c (lang_dependent_init): Call init_set_costs.
23673 * loop-init.c (loop_optimizer_init): Do not call init_set_costs.
23674
23675 2007-02-01 Richard Guenther <rguenther@suse.de>
23676
23677 PR middle-end/30656
23678 * fold-const.c (fold_negate_expr): Allow negating a
23679 constant if overflow does not change.
23680
23681 2007-02-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23682
23683 * doc/c-tree.texi (Expression trees): Improve markup.
23684 * doc/tm.texi (Register Classes, Addressing Modes)
23685 (Floating Point): Fix spacing after abbreviations. Fix some
23686 typos.
23687
23688 2007-02-01 Ben Elliston <bje@au.ibm.com>
23689
23690 * doc/invoke.texi: Replace "bugfix" with "bug fix" throughout.
23691 * doc/contrib.texi: Likewise.
23692 * doc/install.texi: Likewise.
23693
23694 2007-01-31 Richard Henderson <rth@redhat.com>
23695 Ian Lance Taylor <iant@google.com>
23696
23697 * lower-subreg.c: New file.
23698 * rtl.def (CONCATN): Define.
23699 * passes.c (init_optimization_passes): Add pass_lower_subreg and
23700 pass_lower_subreg2.
23701 * emit-rtl.c (update_reg_offset): New static function, broken out
23702 of gen_rtx_REG_offset.
23703 (gen_rtx_REG_offset): Call update_reg_offset.
23704 (gen_reg_rtx_offset): New function.
23705 * regclass.c: Revert patch of 2006-03-05, restoring
23706 reg_scan_update.
23707 (clear_reg_info_regno): New function.
23708 * dwarf2out.c (concatn_loc_descriptor): New static function.
23709 (loc_descriptor): Handle CONCATN.
23710 * common.opt (fsplit_wide_types): New option.
23711 * opts.c (decode_options): Set flag_split_wide_types when
23712 optimizing.
23713 * timevar.def (TV_LOWER_SUBREG): Define.
23714 * rtl.h (gen_reg_rtx_offset): Declare.
23715 (reg_scan_update): Declare.
23716 * regs.h (clear_reg_info_regno): Declare.
23717 * tree-pass.h (pass_lower_subreg): Declare.
23718 (pass_lower_subreg2): Declare.
23719 * doc/invoke.texi (Option Summary): List -fno-split-wide-types.
23720 (Optimize Options): Add -fsplit-wide-types to -O1 list. Document
23721 -fsplit-wide-types.
23722 * doc/rtl.texi (Regs and Memory): Document concat and concatn.
23723 * Makefile.in (OBJS-common): Add lower-subreg.o.
23724 (lower-subreg.o): New target.
23725
23726 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
23727
23728 * config/sh/sh.h (HAVE_SECONDARY_RELOADS): Remove.
23729
23730 2007-01-31 Anatoly Sokolov <aesok@post.ru>
23731
23732 PR target/19087
23733 * config/avr/avr.c (DWARF2_ADDR_SIZE): Define.
23734
23735 2007-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23736
23737 PR middle-end/29335
23738 * builtins.c (fold_builtin_sqrt): Use MPFR for constant args.
23739
23740 2007-01-31 Zdenek Dvorak <dvorakz@suse.cz>
23741
23742 * cfgloop.h: Include vec-prim.h.
23743 (enum li_flags): Remove LI_ONLY_OLD.
23744 (loop_iterator): Changed.
23745 (fel_next, fel_init): Iterate over loop tree.
23746 (FOR_EACH_LOOP_BREAK): New macro.
23747 * loop-unswitch.c (unswitch_loops): Do not pass LI_ONLY_OLD to
23748 FOR_EACH_LOOP.
23749 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Ditto.
23750 * modulo-sched.c (sms_schedule): Ditto.
23751 * tree-vectorizer.c (vectorize_loops): Ditto.
23752 * doc/loop.texi: Update information on loop numbering and behavior of
23753 FOR_EACH_LOOP wrto new loops.
23754 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
23755 add_to_evolution_1): Test nestedness of loops instead of comparing
23756 their numbers.
23757 * tree-chrec.c (chrec_fold_plus_poly_poly,
23758 chrec_fold_multiply_poly_poly, chrec_evaluate,
23759 hide_evolution_in_other_loops_than_loop, chrec_component_in_loop_num,
23760 reset_evolution_in_loop): Ditto.
23761 * Makefile.in (CFGLOOP_H): Add vecprim.h dependency.
23762
23763 2007-01-31 Dirk Mueller <dmueller@suse.de>
23764
23765 * c-common.c (warn_about_parentheses): Separate warning about
23766 un-parenthized sequence of comparison operators from the one
23767 which is supposed to warn about x <= y <= z.
23768
23769 2007-01-31 Uros Bizjak <ubizjak@gmail.com>
23770
23771 * optabs.h (enum optab_index): Add new OTI_isinf.
23772 (isinf_optab): Define corresponding macro.
23773 * optabs.c (init_optabs): Initialize isinf_optab.
23774 * genopinit.c (optabs): Implement isinf_optab using isinf?f2
23775 patterns.
23776 * builtins.c (mathfn_built_in): Handle BUILT_IN_ISINF{,F,L}.
23777 (expand_builtin_interclass_mathfn): Expand BUILT_IN_ISINF{,F,L}
23778 using isinf_optab.
23779 (expand_builtin): Expand BUILT_IN_ISINF{,F,L} using
23780 expand_builtin_interclass_mathfn.
23781 * reg_stack.c (subst_stack_regs_pat): Handle UNSPEC_FXAM.
23782 * config/i386/i386.md (UNSPEC_FXAM): New constant.
23783 (fxam<mode>2_i387): New insn pattern.
23784 (isinf<mode>2) New expander to implement isinf, isinff and isinfl
23785 built-in functions as x87 inline asm.
23786
23787 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
23788
23789 * config/arm/unwind-arm.h (_sleb128_t, _uleb128_t): New.
23790
23791 2007-01-30 Eric Christopher <echristo@apple.com>
23792
23793 * config.gcc: Add geode.
23794
23795 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
23796
23797 * cgraphunit.c, config/arm/arm.c, config/m68k/m68k.c,
23798 ipa-inline.c, tree-profile.c, tree-ssa-live.c,
23799 tree-ssa-math-opts.c, tree-ssanames.c, tree-vect-analyze.c,
23800 value-prof.c: Fix comment typos.
23801
23802 2007-01-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23803
23804 PR c++/24745
23805 * doc/invoke.texi (Wpointer-arith): Document warning.
23806
23807 2007-01-30 Janis Johnson <janis187@us.ibm.com>
23808
23809 * doc/extend.texi (Decimal Floating Types): Remove decfloat.h from
23810 the list of discrepancies from the draft TR.
23811
23812 2007-01-30 Dirk Mueller <dmueller@suse.de>
23813
23814 PR c++/30601
23815 * doc/invoke.texi (-Wreturn-type): Update description to
23816 match new behavior.
23817
23818 2007-01-30 Richard Sandiford <richard@codesourcery.com>
23819
23820 * cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
23821
23822 2007-01-30 Uros Bizjak <ubizjak@gmail.com>
23823
23824 * builtins.c (expand_builtin_int_interclass_roundingfn): New function
23825 to handle optabs that operate on floating point input argument and
23826 output to integer output.
23827 (expand_builtin_mathfn) [BUILT_IN_ILOGB]: Move from here ...
23828 (expand_builtin_interclass_mathfn) [BUILT_IN_ILOGB]: ... to here.
23829 (expand_builtin): Expand BUILT_IN_ILOGB{,F,L} using
23830 expand_builtin_interclass_mathfn ().
23831 * config/i386/i386.md (fxtractxf3_i387): Rename from *fxtractxf3_i387.
23832 (ilogbsi2): Remove.
23833 (ilogbxf2, ilogb<mode>2): New expanders to implement ilogb, ilogbf and
23834 ilogbl built-in functions as x87 intrinsics.
23835
23836 2007-01-30 Richard Guenther <rguenther@suse.de>
23837
23838 PR middle-end/27657
23839 * dwarf2out.c (reference_to_unused): Query varpool if the
23840 variable was output.
23841
23842 2007-01-30 Richard Guenther <rguenther@suse.de>
23843
23844 PR middle-end/30313
23845 * passes.c (execute_one_pass): Reset in_gimple_form to not
23846 confuse non-unit-at-a-time mode.
23847
23848 2007-01-29 Roger Sayle <roger@eyesopen.com>
23849 Richard Guenther <rguenther@suse.de>
23850
23851 * fold-const.c (round_up): Make HIGH an unsigned HOST_WIDE_INT to
23852 avoid undefined behaviour on overflow. Use force_fit_type_double
23853 to construct the constant with the specified TREE_OVERFLOW.
23854
23855 2007-01-29 Janis Johnson <janis187@us.ibm.com>
23856
23857 * config/dfp-bit.c: Add parameterized support for fp exceptions.
23858 * config/dfp-bit.h: Ditto.
23859
23860 2007-01-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23861
23862 * c-decl.c (pop_scope): Replace warnings with call to
23863 warn_for_unused_label.
23864 * c-common.h (warn_for_unused_label): Declare.
23865 * c-common.c (warn_for_unused_label): Define.
23866
23867 2007-01-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23868
23869 * tree-optimize.c (update_inlined_to_pointers): Delete unused
23870 function.
23871
23872 2007-01-29 Janis Johnson <janis187@us.ibm.com>
23873
23874 * Makefile.in (USER_H): Remove decfloat.h.
23875 * ginclude/decfloat.h: Delete, moving contents to ...
23876 * ginclude/float.h: Add support for decimal floating point,
23877 guarded by __STDC_WANT_DEC_FP__.
23878
23879 2007-01-29 Mike Stump <mrs@apple.com>
23880
23881 * doc/gccint.texi (Top): Rename Loop Representation to Loop
23882 Analysis and Representation to resolve case insensitive conflict.
23883 * doc/loop.texi (Loop Analysis and Representation): Likewise.
23884
23885 2007-01-28 Daniel Berlin <dberlin@dberlin.org>
23886
23887 * tree.h (struct tree_memory_tag): Add aliases member.
23888 (MTAG_ALIASES): New macro.
23889 * tree-ssa-alias.c (alias_bitmap_obstack): New variable.
23890 (add_may_alias): Remove pointer-set. Update for may_aliases being
23891 a bitmap.
23892 (mark_aliases_call_clobbered): Update for may_aliases being a
23893 bitmap.
23894 (compute_tag_properties): Ditto.
23895 (create_partition_for): Ditto.
23896 (compute_memory_partitions): Ditto.
23897 (dump_may_aliases_for): Ditto.
23898 (is_aliased_with): Ditto.
23899 (add_may_alias_for_new_tag): Ditto.
23900 (rewrite_alias_set_for): Rewrite for may_aliases being a bitmap.
23901 (compute_is_aliased): New function.
23902 (compute_may_aliases): Call compute_is_aliased).
23903 (init_alias_info): Initialize alias_bitmap_obstack.
23904 (union_alias_set_into): New function.
23905 (compute_flow_sensitive_aliasing): Use union_aliases_into.
23906 (have_common_aliases_p): Rewrite to take two bitmaps and use
23907 intersection.
23908 (compute_flow_insensitive_aliasing): Stop using pointer-sets.
23909 Update for bitmaps.
23910 (finalize_ref_all_pointers): Update for add_may_alias changes.
23911 (new_type_alias): Ditto.
23912 * tree-flow-inline.h (may_aliases): Return a bitmap.
23913 * tree-dfa.c (dump_variable): Check for MTAG_P'ness.
23914 * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
23915 may_aliases being a bitmap.
23916 * tree-flow.h (struct var_ann_d): Remove may_aliases member.
23917 may_aliases now returns a bitmap.
23918 * tree-ssa-structalias.c (merge_smts_into): Update for may_aliases
23919 being a bitmap.
23920 * tree-ssa-operands.c (add_virtual_operand): Update for
23921 may_aliases being a bitmap.
23922
23923 2007-01-29 Daniel Berlin <dberlin@dberlin.org>
23924
23925 PR tree-optimization/30630
23926 * tree-ssa-structalias.c (do_complex_constraint): Mark correct
23927 variable as changed.
23928
23929 2007-01-29 Simon Martin <simartin@users.sourceforge.net>
23930
23931 PR c++/28266
23932 * gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
23933 expanded only once even if an error occurs.
23934
23935 2007-01-29 Ben Elliston <bje@au.ibm.com>
23936
23937 * gcov-io.h (__gcov_indirect_call_profiler): Declare.
23938 (__gcov_average_profiler): Likewise.
23939 (__gcov_ior_profiler): Likewise.
23940 (__gcov_merge_ior): Likewise.
23941
23942 2007-01-28 Jan Hubicka <jh@suse.cz>
23943
23944 * builtins.c (expand_builtin_memset): Fix typo in my last patch.
23945 * value-prof.c (stringop_block_profile): Likewise.
23946
23947 2007-01-28 Jan Hubicka <jh@suse.cz>
23948
23949 * expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall):
23950 Add variant handling histograms; add wrapper.
23951 (clear_storage_via_libcall): Export.
23952 (emit_block_move_hints): Break out from ...; add histograms.
23953 (emit_block_move): ... this one.
23954 (clear_storage_hints): Break out from ...; add histograms.
23955 (clear_storage): ... this one.
23956 (set_storage_via_memset): Handle histogram.
23957 * expr.h (emit_block_move_via_libcall, emit_block_move_hints): Declare.
23958 (clear_storage_hints, clear_storage_via_libcall): Declare.
23959 (set_storage_via_setmem): Update prototype.
23960 * doc/md.texi (movmem, setmem): Document new arguments.
23961
23962 * value-prof.c (dump_histogram_value, tree_find_values_to_profile):
23963 Add new histograms.
23964 (stringop_block_profile): New global function.
23965 (tree_stringops_values_to_profile): Profile block size and alignment.
23966 * value-prof.h (enum hist_type): add HIST_TYPE_AVERAGE and
23967 HIST_TYPE_IOR.
23968 (struct profile_hooks): Add gen_average_profiler and gen_ior_profiler.
23969 (stringop_block_profile): Declare.
23970 * builtins.c: Include value-prof.h.
23971 (expand_builtin_memcpy, expand_builtin_memset): Pass block profile.
23972 * gcov-ui.h (GCOV_COUNTER_NAMES): Add new counter.
23973 (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): New constants.
23974 (GCOV_COUNTERS, GCOV_LAST_VALUE_COUNTER): Update.
23975 * profile.c (instrument_values): Add new counters.
23976 * cfgexpand.c (expand_gimple_basic_block): Propagate histograms to
23977 calls.
23978 * tree-profile.c (tree_average_profiler_fn, tree_ior_profiler_fn): New.
23979 (tree_init_edge_profiler): Build new profilers.
23980 (tree_gen_average_profiler, tree_gen_ior_profiler): New.
23981 (pass_tree_profile): Add dump.
23982 (tree_profile_hooks): Update.
23983 * Makefile.in (LIBGCOV): Add new constants.
23984 * libgcov.c (__gcov_merge_ior, __gcov_average_profiler,
23985 __gcov_ior_profiler): New.
23986 * i386.md (movmem/setmem expanders): Add new optional arguments.
23987
23988 2007-01-28 David Edelsohn <edelsohn@gnu.org>
23989
23990 * doc/md.texi (Standard Pattern Names): Document blockage pattern.
23991
23992 2007-01-28 Zdenek Dvorak <dvorakz@suse.cz>
23993
23994 * tree-ssa-loop-unswitch.c: Include tree-inline.h.
23995 (tree_unswitch_single_loop): Pass eni_size_weights to
23996 tree_num_loop_insns.
23997 * tree-ssa-loop-manip.c: Include tree-inline.h.
23998 (can_unroll_loop_p): Pass eni_size_weights to
23999 tree_num_loop_insns.
24000 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
24001 Pass eni_size_weights to estimate_num_insns.
24002 * tree.h (init_inline_once): Export.
24003 * toplev.c (backend_init): Call init_inline_once.
24004 * cgraphunit.c (cgraph_process_new_functions,
24005 cgraph_analyze_function): Pass eni_inlining_weights to
24006 estimate_num_insns.
24007 * ipa-inline.c (compute_inline_parameters): Ditto.
24008 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Pass weights
24009 to estimate_num_insns.
24010 (try_unroll_loop_completely): Pass eni_size_weights to
24011 tree_num_loop_insns.
24012 * tree-eh.c (decide_copy_try_finally): Pass eni_size_weights
24013 ot estimate_num_insns.
24014 * tree-ssa-loop-prefetch.c: Include tree-inline.h.
24015 (loop_prefetch_arrays): Pass eni_time_weights to tree_num_loop_insns.
24016 * tree-inline.c (eni_inlining_weights, eni_size_weights,
24017 eni_time_weights): New variables.
24018 (init_inline_once): Initialize them.
24019 (struct eni_data): Mew.
24020 (estimate_num_insns_1, estimate_num_insns): Use weights.
24021 * tree-inline.h (struct eni_weights_d): New.
24022 (eni_inlining_weights, eni_size_weights, eni_time_weights): Declare.
24023 (estimate_num_insns): Declaration changed.
24024 * cfgloop.h (tree_num_loop_insns): Declaration changed.
24025 * Makefile.in (tree-ssa-loop-unswitch.o, tree-ssa-loop-prefetch.o,
24026 tree-ssa-loop-manip.o): Add TREE_INLINE_H dependency.
24027
24028 2007-01-28 Zdenek Dvorak <dvorakz@suse.cz>
24029
24030 * tree-data-ref.c (conflict_fn): Assert that the number of affine
24031 relations in the conflict function is valid.
24032
24033 2007-01-27 Ian Lance Taylor <iant@google.com>
24034
24035 * common.opt: Add fstrict-overflow.
24036 * opts.c (decode_options): Set flag_strict_overflow if -O2.
24037 * flags.h (TYPE_OVERFLOW_WRAPS): Define.
24038 (TYPE_OVERFLOW_UNDEFINED): Define.
24039 (TYPE_OVERFLOW_TRAPS): Define. This replaces TYPE_TRAP_SIGNED.
24040 Replace all uses.
24041 * tree.h (TYPE_TRAP_SIGNED): Don't define.
24042 * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_UNDEFINED.
24043 (fold_negate_expr): Likewise.
24044 (make_range): Likewise.
24045 (extract_muldiv_1): Likewise.
24046 (maybe_canonicalize_comparison): Likewise.
24047 (fold_comparison): Likewise.
24048 (fold_binary): Likewise.
24049 (tree_expr_nonnegative_p): Likewise.
24050 (tree_expr_nonzero_p): Likewise.
24051 * tree-vrp.c (compare_values): Likewise.
24052 (extract_range_from_binary_expr): Likewise.
24053 (extract_range_from_unary_expr): Likewise.
24054 * tree-ssa-loop-niter.c (infer_loop_bounds_from_signedness):
24055 Likewise.
24056 (nowrap_type_p): Likewise.
24057 * tree-scalar-evolution.c (simple_iv): Likewise.
24058 * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_WRAPS.
24059 (build_range_check): Likewise.
24060 (extract_muldiv_1): Likewise.
24061 (fold_comparison): Likewise.
24062 * tree-vrp.c (vrp_int_const_binop): Likewise.
24063 (extract_range_from_unary_expr): Likewise.
24064 * convert.c (convert_to_integer): Likewise.
24065 * fold-const.c (fold_negate_expr): Use TYPE_OVERFLOW_TRAPS.
24066 (fold_comparison): Likewise.
24067 (fold_binary): Likewise.
24068 * optabs.c (optab_for_tree_code): Likewise.
24069 * tree-vectorizer.c (vect_is_simple_reduction): Likewise.
24070 * simplify-rtx.c (simplify_const_relational_operation): Check
24071 flag_strict_overflow and flag_trapv.
24072 (simplify_const_relational_operation): Likewise.
24073 * doc/invoke.texi (Option Summary): Mention -fstrict-overflow.
24074 (Optimize Options): Add -fstrict-overflow to -O2 list. Document
24075 -fstrict-overflow.
24076
24077 2007-01-27 Roger Sayle <roger@eyesopen.com>
24078
24079 * tree.c (tree_fold_gcd): Delete.
24080 * tree.h (tree_fold_gcd): Remove prototype.
24081 * tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to
24082 test whether one constant integer is a multiple of another. Instead
24083 call int_const_binop with TRUNC_MOD_EXPR and test for a zero result.
24084 * fold-const.c (multiple_of_p): We've determined both TOP and
24085 BOTTOM are integer constants so we can call int_const_binop directly
24086 instead of the more generic const_binop.
24087
24088 2007-01-27 Roger Sayle <roger@eyesopen.com>
24089
24090 * fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
24091 1*X check that the constant hasn't overflowed, to preserve the
24092 TREE_OVERFLOW bit.
24093 (round_up): Provide an efficient implementation when rouding-up an
24094 INTEGER_CST to a power-of-two.
24095
24096 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24097
24098 * doc/sourcebuild.texi: Add comma for clarity.
24099 * doc/extend.texi: Fix some typos.
24100 * doc/passes.texi: Likewise.
24101 * doc/cppinternals.texi: Likewise.
24102 * doc/c-tree.texi: Likewise.
24103 * doc/tree-ssa.texi: Likewise.
24104 * doc/install.texi: Likewise.
24105
24106 2007-01-27 Jan Hubicka <jh@suse.cz>
24107
24108 * tree-sra.c (sra_walk_function): Don't rely on aliases being build.
24109 (pass_sra): Do not require alias information.
24110 * passes.c (init_optimization_passes): Add SRA
24111
24112 2007-01-27 Steven Bosscher <steven@gcc.gnu.org>
24113
24114 * tracer.c (rest_of_handle_tracer): We already cleaned
24115 up the CFG in tracer() so don't do it here again.
24116 * cfgcleanup.c (rest_of_handle_jump2): Don't repeat
24117 cleanup_cfg here, either. And don't call renumber_insns.
24118
24119 * cfgrtl.c (rtl_verify_flow_info_1): Don't verify that BB_END
24120 and BB_HEAD are in the insn stream here. Instead make sure
24121 that BB_INSN is valid on all insns. Also, do check here that
24122 there are no pending branch predictions...
24123 (rtl_verify_flow_info): ...instead of doing it here. Checks
24124 for BB_END and BB_HEAD moved from rtl_verify_flow_info_1 to
24125 here.
24126
24127 2007-01-26 Roger Sayle <roger@eyesopen.com>
24128
24129 * config/i386/i386.c (ix86_swap_binary_operands_p): New helper
24130 function to simplify/factorize operand order canonicalization.
24131 (ix86_fixup_binary_operands): Reorganize using the above function.
24132 (ix86_binary_operator_ok): Likewise.
24133
24134 2007-01-27 Jakub Jelinek <jakub@redhat.com>
24135
24136 * genattrtab.c (struct attr_value_list, insn_code_values): Move to
24137 file scope from optimize_attrs.
24138 (simplify_test_exp): If insn_code_values is not NULL, use it to speed
24139 up search.
24140 (optimize_attrs): Clear insn_code_values after freeing it.
24141
24142 2007-01-26 Zdenek Dvorak <dvorakz@suse.cz>
24143
24144 * tree-ssa-address.c (create_mem_ref): Remove ", bsi" from
24145 a parts.base assignment.
24146
24147 2007-01-26 Zdenek Dvorak <dvorakz@suse.cz>
24148
24149 * tree-data-ref.c (dump_subscript): Use dump_conflict_function.
24150 (compute_subscript_distance, initialize_data_dependence_relation,
24151 finalize_ddr_dependent, analyze_ziv_subscript,
24152 analyze_siv_subscript_cst_affine,
24153 compute_overlap_steps_for_affine_univar,
24154 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
24155 analyze_siv_subscript, analyze_miv_subscript,
24156 analyze_overlapping_iterations, subscript_dependence_tester_1,
24157 compute_self_dependence, free_dependence_relation): Work
24158 with affine_fn instead of chrecs.
24159 (dump_affine_function, dump_conflict_function, affine_function_equal_p,
24160 common_affine_function, affine_function_base,
24161 affine_function_constant_p, affine_fn_op, affine_fn_plus,
24162 affine_fn_minus, affine_fn_free, conflict_fn_not_known,
24163 conflict_fn_no_dependence, free_conflict_function, free_subscripts,
24164 conflict_fn, affine_fn_cst, affine_fn_univar): New functions.
24165 (all_chrecs_equal_p): Removed.
24166 * tree-data-ref.h (affine_fn, conflict_function): New types.
24167 (struct subscript): Change type of conflicting_iterations_in_a
24168 and conflicting_iterations_in_b.
24169
24170 2007-01-26 Steve Ellcey <sje@cup.hp.com>
24171
24172 PR other/30182
24173 * config/pa/pa.h (TARGET_HPUX_11): New.
24174 * config/pa/pa-hpux11.h (TARGET_HPUX_11): New.
24175 * config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11.
24176
24177 2007-01-26 Daniel Berlin <dberlin@dberlin.org>
24178 Richard Guenther <rguenther@suse.de>
24179
24180 * tree-ssa-structalias.c (solve_graph): Handle case
24181 we merged the variable to another.
24182
24183 2007-01-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24184
24185 * builtins.c (fold_builtin_1): Treat ccos and ccosh as 'even'
24186 functions.
24187
24188 * fold-const.c (negate_mathfn_p): Treat casin, casinh, catan,
24189 catanh, cproj, csin, csinh, ctan and ctanh as 'odd' functions.
24190
24191 2007-01-25 DJ Delorie <dj@redhat.com>
24192
24193 * config/m32c/m32c.c (m32c_cannot_change_mode_class): We don't
24194 allow changes to modes which don't fit in those registers.
24195
24196 * reload1.c (choose_reload_regs): Check for invalid subregs before
24197 computing their locations, not after.
24198
24199 2007-01-25 Geoffrey Keating <geoffk@apple.com>
24200
24201 PR 25127
24202 * config/rs6000/rs6000.c (first_altivec_reg_to_save): On Darwin,
24203 save Altivec registers in an eh_return function.
24204 (compute_vrsave_mask): Likewise.
24205 (rs6000_stack_info): Correct AIX/Darwin stack alignment computation
24206 for saving Altivec registers.
24207 (rs6000_emit_prologue): Don't allocate stack twice in
24208 eh_return function. Correct expected value of altivec_save_offset
24209 when using save_world. Describe save of R0 to stack when using
24210 save_world. Describe stack pointer adjustment when using
24211 save_world. Remove duplicated eh_return parameter register saving.
24212 Update sp_offset variable after save_world.
24213 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA): Remove
24214 darwin-world.asm.
24215 (LIB2FUNCS_EXTRA): Add darwin-world.asm.
24216 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): -m64
24217 implies Altivec.
24218
24219 2007-01-25 Steve Ellcey <sje@cup.hp.com>
24220
24221 * config.gcc (ia64*-*-hpux*): Make posix threads the default.
24222
24223 2007-01-25 Steve Ellcey <sje@cup.hp.com>
24224
24225 PR other/30182
24226 * config/pa/pa.c (pa_init_builtins): Set asm names for finite routines.
24227 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
24228
24229 2007-01-25 Richard Guenther <rguenther@suse.de>
24230
24231 * doc/invoke.texi (-Wcoverage-mismatch): Document.
24232 * common.opt (-Wcoverage-mismatch): New warning option.
24233 * coverage.c (get_coverage_counts): Ignore coverage mismatch
24234 if -Wcoverage-mismatch is given.
24235
24236 2007-01-25 Razya Ladelsky <razya@il.ibm.com>
24237
24238 * ipa-cp.c (ipcp_insert_stage, ipcp_driver): Support for SSA.
24239 (ipcp_driver): Change to static definition.
24240 Add dumping of the ifunctions.
24241 (constant_val_insert): Remove unused parameter. Support for SSA.
24242 (ipcp_propagate_const): Support for SSA.
24243 (ipcp_profile_bb_print): Print only analyzed nodes.
24244 (ipcp_replace_map_create): Remove support for Fortran constant
24245 for now.
24246 * ipa-prop.c (ipa_method_modify_stmt,
24247 ipa_callsite_compute_param): Support for SSA.
24248 * ipa-prop.h (ipcp_driver): Remove declaration.
24249 (IS_VALID_TREE_MAP_INDEX): Add define.
24250
24251 2007-01-24 Geoffrey Keating <geoffk@apple.com>
24252
24253 * unwind-dw2.c (execute_stack_op): Handle DW_OP_swap.
24254
24255 2007-01-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24256
24257 PR middle-end/30447
24258 * builtins.c (fold_builtin_cabs): Use MPFR to evaluate a
24259 constant argument to cabs and do it without checking for
24260 -funsafe-math-optimizations.
24261
24262 2007-01-24 Douglas Gregor <dgregor@osl.iu.edu>
24263
24264 * c-common.h (RID_FIRST_CXX0X): New.
24265 (RID_LAST_CXX0X): New.
24266 * c-opts.c (c_common_handle_option): -Wc++0x-compat is triggered
24267 by -Wall.
24268 * c.opt (Wc++0x-compat): New.
24269 * doc/invoke.texi (-Wc++0x-compat): Document.
24270
24271 2007-01-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24272
24273 * builtins.c (fold_builtin_carg): New.
24274 (fold_builtin_1): Use it.
24275
24276 2007-01-24 Jan Hubicka <jh@suse.cz>
24277
24278 * ipa-inline.c (cgraph_decide_inlining): Initialize initial_insns.
24279
24280 * ipa-inline.c (initial_insns, max_insns): Delete.
24281 (compute_max_insns): New function.
24282 (cgraph_decide_inlining_of_small_function): Use it; take minimal
24283 amount of insns as base for code growth.
24284 (cgraph_decide_inlining): Make initial_insns local; do not compute
24285 max_insns.
24286 * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 60.
24287 * doc/invoke.texi (inline-unit-growth): Update docs.
24288
24289 2007-01-24 Jakub Jelinek <jakub@redhat.com>
24290
24291 * config/i386/i386.h (x86_cmpxchg16b): Remove const.
24292 (TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
24293 * config/i386/i386.c (x86_cmpxchg16b): Remove const.
24294 (override_options): Add PTA_CX16 flag. Set x86_cmpxchg16b
24295 for CPUs that have PTA_CX16 set.
24296
24297 PR middle-end/27416
24298 * gimplify.c (omp_check_private): New function.
24299 (gimplify_scan_omp_clauses): Use it for
24300 firstprivate/lastprivate/reduction.
24301
24302 PR middle-end/30494
24303 * gimplify.c (omp_add_variable): Don't call omp_notice_variable
24304 on TYPE_SIZE_UNIT for GOVD_LOCAL VLAs.
24305
24306 PR middle-end/30421
24307 * omp-low.c (lower_omp_for_lastprivate): Add dlist argument.
24308 If lower_lastprivate_clauses emits some statements, append them
24309 to dlist rather than body_p and to body_p append an initializer.
24310 (lower_omp_for): Adjust caller.
24311
24312 2007-01-24 Steve Ellcey <sje@cup.hp.com>
24313
24314 * target.h (globalize_decl_name): New.
24315 * target-def.h (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
24316 * output.h (default_globalize_decl_name): New.
24317 * varasm.c (asm_output_bss): Use globalize_decl_name instead of
24318 globalize_label.
24319 (globalize_decl): Ditto.
24320 (default_globalize_decl_name): New.
24321 * config/ia64/ia64.c (ia64_globalize_decl_name): New.
24322 (ia64_handle_version_id_attribute): New.
24323 (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
24324 (ia64_asm_output_external): Use globalize_decl_name instead
24325 of globalize_label.
24326 * doc/extend.texi (version_id): New pragma.
24327 * doc/tm.texi (ARGET_ASM_GLOBALIZE_DECL_NAME): New target hook.
24328
24329 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
24330
24331 * unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with
24332 _uleb128_t and _Unwind_SWord with _sleb128_t.
24333 * unwind-dw2.c (extract_cie_info, execute_stack_op,
24334 execute_cfa_program, uw_frame_state_for, uw_update_context_1):
24335 Likewise.
24336 * unwind-c.c (parse_lsda_header, PERSONALITY_FUNCTION): Likewise.
24337 * unwind-pe.h (read_uleb128, read_sleb128,
24338 read_encoded_value_with_base): Likewise.
24339 * unwind-generic.h: Define _sleb128_t and _uleb128_t types.
24340
24341 2007-01-24 Richard Guenther <rguenther@suse.de>
24342
24343 * builtins.c (expand_builtin_cexpi): Get the fndecl
24344 for cexp in the correct way.
24345
24346 2007-01-24 Jan Hubicka <jh@suse.cz>
24347
24348 * tree-ssa-dce.c (eliminate_unnecesary_stmts): Remove dead LHS
24349 of calls.
24350
24351 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
24352
24353 * c-cppbuiltin.c (builtin_define_type_sizeof): New function.
24354 (c_cpp_builtins): New builtin macros: __SIZEOF_INT__, __SIZEOF_LONG__,
24355 __SIZEOF_LONG_LONG__, __SIZEOF_SHORT__, __SIZEOF_POINTER__,
24356 __SIZEOF_FLOAT__, __SIZEOF_DOUBLE__, __SIZEOF_LONG_DOUBLE__,
24357 __SIZEOF_SIZE_T__, __SIZEOF_WCHAR_T__, __SIZEOF_WINT_T__ and
24358 __SIZEOF_PTRDIFF_T__.
24359 * doc/cpp.texi: Documentation for the new builtin macros added.
24360
24361 2007-01-24 Uros Bizjak <ubizjak@gmail.com>
24362
24363 * config/i386/i386.md (tanxf2, tan<mode>2, atan<mode>2, log<mode>2,
24364 log10<mode>2, log2<mode>2, expxf2, exp10xf2, exp2xf2): Use op2
24365 instead of operands[2] to avoid access past the end of array.
24366
24367 2007-01-24 Richard Sandiford <richard@codesourcery.com>
24368
24369 * reload1.c (emit_reload_insns): Pass the reload register
24370 for a non-spill output reload through forget_old_reloads_1.
24371
24372 2007-01-23 Joseph Myers <joseph@codesourcery.com>
24373
24374 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
24375 _SOFT_DOUBLE if doubles use software floating-point.
24376 * config/rs6000/libgcc-ppc-glibc.ver: Export additional long
24377 double functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
24378 * config/rs6000/darwin-ldouble.c: Also compile functions for
24379 hard-float without FPRs. Use fmsub function for all __NO_FPRS__
24380 cases. Compile extra functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
24381 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove
24382 commented-out long double override.
24383 (CPP_LONGDOUBLE_DEFAULT_SPEC): Likewise.
24384 * config/rs6000/eabispe.h: Likewise.
24385 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
24386 long double for non-SPE.
24387 (rs6000_handle_option): Likewise.
24388 (invalid_e500_subreg): Disallow more subregs involding DImode,
24389 DFmode, TImode or TFmode.
24390 (rs6000_legitimate_offset_address_p): Check TFmode offsets for
24391 E500 double.
24392 (legitimate_lo_sum_address_p): Also check for TFmode for E500
24393 double.
24394 (rs6000_legitimize_address): Also handle TFmode for E500 double.
24395 (rs6000_legitimize_reload_address): Also handle TFmode for E500
24396 double.
24397 (rs6000_legitimate_address): Also check for TFmode for E500
24398 double.
24399 (rs6000_emit_move): Use DFmode subregs of TFmode for E500 double.
24400 (spe_build_register_parallel): Handle TFmode and TCmode.
24401 (rs6000_spe_function_arg): Handle TFmode and TCmode for E500
24402 double.
24403 (function_arg): Handle TFmode and TCmode for E500 double.
24404 (rs6000_init_libfuncs): Initialize extra libfuncs for soft double
24405 in general.
24406 (print_operand): Handle TFmode and TImode for %y.
24407 (rs6000_generate_compare): Handle TFmode comparisons for E500
24408 double.
24409 (spe_func_has_64bit_regs_p): Check for TFmode for E500 double.
24410 (rs6000_function_value): Handle TFmode and TCmode for E500 double.
24411 (rs6000_libcall_value): Handle TFmode and TCmode for E500 double.
24412 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Check for
24413 TFmode for E500 double.
24414 * config/rs6000/rs6000.md (FP): Allow TF for E500 double.
24415 (floatsidf2): Enable for E500 double.
24416 (movtf_softfloat): Use rs6000_nonimmediate_operand.
24417 (extenddftf2): Change to extenddftf2_fprs.
24418 (extenddftf2): Call gen_spe_extenddftf2 or gen_extenddftf2_fprs
24419 depending on TARGET_E500_DOUBLE.
24420 (extendsftf2): Enable for E500 double.
24421 (trunctfdf2): Enable for E500 double.
24422 (trunctfsf2): Change to trunctfsf2_fprs.
24423 (trunctfsf2): Call gen_spe_trunctfsf2 or gen_trunctfsf2_fprs
24424 depending on TARGET_E500_DOUBLE.
24425 (floatsitf2): Enable for E500 double.
24426 (fix_trunctfsi2): Change to fix_trunctfsi2_fprs.
24427 (fix_trunctfsi2): Call gen_spe_fix_trunctfsi2 or
24428 gen_fix_trunctfsi2_fprs depending on TARGET_E500_DOUBLE.
24429 (negtf2): Change to negtf2_internal.
24430 (negtf2): New expander.
24431 (abstf2): Enable for E500 double. Call gen_spe_abstf2_tst,
24432 gen_spe_abstf2_cmp or gen_abstf2_internal depending on
24433 TARGET_E500_DOUBLE and flag_unsafe_math_optimizations.
24434 (movdi_internal32): Use rs6000_nonimmediate_operand.
24435 (unnamed splitter): Likewise.
24436 * config/rs6000/spe.md (CMPTFEQ_GPR, TSTTFEQ_GPR, CMPTFGT_GPR,
24437 TSTTFGT_GPR, CMPTFLT_GPR, TSTTFLT_GPR): New unspecs.
24438 (SPE64TF, DITI): New mode macros.
24439 (frob_df_di): Change to frob_<SPE64:mode>_<DITI:mode>; allow more
24440 modes.
24441 (frob_tf_ti): New.
24442 (frob_<mode>_di_2): New.
24443 (frob_tf_di_8_2): New.
24444 (frob_di_df): Change to frob_di_<mode>; allow more modes.
24445 (frob_ti_tf): New.
24446 (frob_di_df_2): Change to frob_<DITI:mode>_<SPE64:mode>_2; allow
24447 more modes.
24448 (frob_ti_<mode>_8_2): New.
24449 (frob_ti_tf_2): New.
24450 (mov_si<mode>_e500_subreg0, mov_si<mode>_e500_subreg0_2,
24451 mov_si<mode>_e500_subreg4, mov_si<mode>_e500_subreg4_2): Allow
24452 TFmode.
24453 (mov_sitf_e500_subreg8, mov_sitf_e500_subreg8_2,
24454 mov_sitf_e500_subreg12, mov_sitf_e500_subreg12_2): New.
24455 (spe_trunctfdf2_internal1, spe_trunctfsf2, spe_extenddftf2,
24456 spe_fix_trunctfsi2, spe_fix_trunctfsi2_internal,
24457 spe_negtf2_internal, spe_abstf2_cmp, spe_abstf2_tst): New.
24458 (cmptfeq_gpr, tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr,
24459 tsttflt_gp): New.
24460
24461 2007-01-23 Ian Lance Taylor <iant@google.com>
24462
24463 * Makefile.in (OBJS-common): Reformat, alphabetize, but put
24464 insn-*.o first.
24465 (OBJS-archive): Reformat, alphabetize.
24466 (OBJS): Change out_object_file to OBJS-md.
24467
24468 2007-01-23 Uros Bizjak <ubizjak@gmail.com>
24469
24470 * config/i386/i386.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
24471 JUMP_P and CALL_P predicates where applicable.
24472 * config/i386/i386.c: Ditto.
24473 * config/i386/i386.md: Ditto.
24474 * config/i386/mmx.md: Ditto.
24475 * config/i386/predicates.md: Ditto.
24476
24477 2007-01-22 Andreas Schwab <schwab@suse.de>
24478
24479 * config/m68k/m68k.h: Fix comment.
24480
24481 2007-01-22 Jan Hubicka <jh@suse.cz>
24482
24483 * passes.c (init_optimization_passes): Do not rerun
24484 pass_early_warn_uninitialized.
24485
24486 2007-01-22 Richard Guenther <rguenther@suse.de>
24487
24488 PR tree-optimization/30038
24489 * tree-ssa-math-opts.c (maybe_record_sincos): New static helper
24490 function.
24491 (execute_cse_sincos_1): Likewise.
24492 (execute_cse_sincos): Likewise.
24493 (gate_cse_sincos): Likewise.
24494 (pass_cse_sincos): New pass CSEing sin() and cos() calls using
24495 the cexpi() canonicalization of sincos().
24496 * tree-pass.h (pass_cse_sincos): Declare.
24497 * passes.c (init_optimization_passes): New pass pas_cse_sincos.
24498
24499 2007-01-21 Eric Botcazou <ebotcazou@libertysurf.fr>
24500
24501 PR rtl-optimization/29329
24502 * combine.c (replaced_rhs_insn): Rename to i2mod.
24503 (replaced_rhs_value): Rename to i2mod_new_rhs.
24504 (i2mod_old_rhs): New global variable.
24505 (combine_instructions): Adjust for above change. Save a copy of
24506 the old RHS into i2mod_old_rhs when the contents of a REG_EQUAL
24507 note are substituted in the second instruction.
24508 (distribute_notes) <REG_DEAD>: Adjust for above change. Do not
24509 ditch the note if it pertains to the second eliminated register
24510 and this register is mentioned in i2mod_old_rhs.
24511
24512 Revert:
24513 2006-09-12 Eric Botcazou <ebotcazou@libertysurf.fr>
24514
24515 * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
24516 the insn to which the note was originally attached.
24517
24518 2007-01-21 Jan Hubicka <jh@suse.cz>
24519
24520 * ipa-inline.c (inlining_mode): Comment, move up.
24521 (cgraph_decide_inlining_incrementally): Do not perform inlining
24522 itself; fix handling of flattening of self recursive functions.
24523 (cgraph_find_cycles): Remove.
24524 (cgraph_flatten_node): Remove.
24525 (cgraph_decide_inlining): Use incremental inliner to handle flattening.
24526 (try_inline): New function.
24527 (cgraph_early_inlining): Update call of
24528 cgraph_decide_inlining_incrementally. Apply inlining here.
24529 (apply_inline): Update call of cgraph_decide_inlining_incrementally.
24530
24531 2007-01-21 Dirk Mueller <dmueller@suse.de>
24532
24533 PR bootstrap/30511
24534 * tree-vrp.c (check_array_bounds): do not warn
24535 about ADDR_EXPR's of ARRAY_REF's which are immediately
24536 used in binary expressions.
24537
24538 2007-01-21 Ira Rosen <irar@il.ibm.com>
24539
24540 * tree-vectorizer.h (struct _stmt_vec_info): Add new field
24541 read_write_dep and macros for its access.
24542 * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
24543 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Remove
24544 argument, call vect_check_interleaving for every independent pair of
24545 data-refs. Mark loads that access the same memory location as a store
24546 in the loop.
24547 (vect_check_dependences): Remove.
24548 (vect_analyze_data_ref_dependences): Remove vect_check_dependences
24549 call, fix the call to vect_analyze_data_ref_dependence.
24550 (vect_analyze_data_ref_access): For statements that access the same
24551 data-ref, check that they are not stores; for loads, check that there
24552 is no store that access the same location.
24553
24554 2007-01-20 Roger Sayle <roger@eyesopen.com>
24555 Joseph Myers <joseph@codesourcery.com>
24556
24557 * doc/invoke.texi (-fdump-rtl-combine): Fix under/overfull hbox.
24558 (-fdump-rtl-stack): Likewise.
24559 (-fno-signed-zeros): Use @minus{} for a minus sign. Correct typo.
24560 (-mcheck-zero-division, -mcpu): Fix under/overfull hbox.
24561 (-mpt-fixed): Use @minus{} for minus sign.
24562 (Using Precompiled Headers): Fix under/overfull hbox.
24563
24564 2007-01-20 Jan Hubicka <jh@suse.cz>
24565
24566 * tree-flow.h (struct stmt_ann_d): Move references_memory to proper
24567 place within annotation.
24568
24569 2007-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24570
24571 * pa.c (output_move_double): Change array size of xoperands to 4.
24572
24573 2007-01-20 Jan Hubicka <jh@suse.cz>
24574
24575 * tree-tailcall.c (adjust_return_value): Do not use RESULT_DECL
24576 as temporary.
24577
24578 2007-01-19 Ian Lance Taylor <iant@google.com>
24579
24580 * expmed.c (expand_divmod) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]: Cast
24581 constant to unsigned HOST_WIDE_INT before negating.
24582
24583 2007-01-19 Ian Lance Taylor <iant@google.com>
24584
24585 * tree-ssa-operands.h (struct vuse_vec_d): Change num_vuse field
24586 to unsigned.
24587 (VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Use unsigned comparison.
24588 (VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
24589 (SET_VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Likewise.
24590 (SET_VUSE_ELEMENT_VAR) [ENABLE_CHECKING]: Likewise.
24591 (SET_VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
24592 (realloc_vdef, realloc_vuse): Change second parameter to
24593 unsigned.
24594 (ssa_operand_iterator_d): Change vuse_index and mayuse_index
24595 fields to unsigned.
24596 * tree-ssa-operands.c (realloc_vop): Change num_elem parameter to
24597 unsigned. Change x and lim locals to unsigned.
24598 (realloc_vdef, realloc_vuse): Change num_elem parameter to
24599 unsigned.
24600 (finalize_ssa_vuse_ops): Change old_i local to unsigned.
24601 (copy_virtual_operands): Change i and n locals to unsigned.
24602
24603 2007-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24604
24605 PR middle-end/29335
24606 * builtins.c (fold_builtin_1): Handle builtin fdim.
24607
24608 2007-01-20 Jan Hubicka <jh@suse.cz>
24609
24610 * tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
24611 * tree-ssa-structalias.c (compute_points_to_sets): Do call
24612 init_alias_heapvars.
24613 (init_alias_heapvars): Initialize only when not already initialized.
24614 (delete_alias_heapvars): Set heapvar_for_stmt to NULL.
24615
24616 2007-01-19 Roger Sayle <roger@eyesopen.com>
24617
24618 * common.opt (fsigned-zeros): New command line option.
24619 * flags.h (HONOR_SIGNED_ZEROS): Control via flag_signed_zeros instead
24620 of flag_unsafe_math_optimizations.
24621 * opts.c (set_fast_math_flags): The -ffast-math command line option
24622 implies -fno-signed-zeros.
24623 (fast_math_flags_set_p): Likewise.
24624
24625 * doc/invoke.texi: Document new -fno-signed-zeros option, and update
24626 the documentation of -ffast-math appropriately. Wrap long lines.
24627
24628 2007-01-19 Steve Ellcey <sje@cup.hp.com>
24629
24630 * system.h (ASM_MAKE_LABEL_LINKONCE): Poison.
24631 * varasm.c (globalize_decl): Remove ASM_MAKE_LABEL_LINKONCE ifdef.
24632
24633 2007-01-19 Tomas Bily <tbily@suse.cz>
24634
24635 * cgraphunit.c (cgraph_finalize_function): Updating of pid
24636 * tree-profile.c:
24637 (tree_init_ic_make_global_vars): New function
24638 (tree_init_edge_profiler): call of tree_init_ic_make_global_vars
24639 (tree_gen_ic_profiler): New function
24640 (tree_gen_ic_func_profiler): New function
24641 (tree_profiling): Added calling of tree_gen_ic_func_profiler
24642 (tree_profile_hooks): Added hook for indirec/virtual calls
24643 * value-prof.c (tree_find_values_to_profile): New case for
24644 indirect calls
24645 (tree_values_to_profile): Call for determining indirect/virtual
24646 counters
24647 (tree_indirect_call_to_profile): New function
24648 (tree_ic_transform): New function
24649 (tree_ic): New function
24650 (find_func_by_pid): New function
24651 (init_pid_map): New function
24652 (tree_value_profile_transformations): Added check for
24653 indirect/virtual call transformation
24654 * value-prof.h (enum hist_type): New counter type for
24655 indirect/virtual calls
24656 (profile_hooks): Added new hook for profiling indirect/virtual
24657 calls
24658 * profile.c (instrument_values): New case for indirect/virtual
24659 call added
24660 * gcov-io.h (GCOV_LAST_VALUE_COUNTER): Changed to 6
24661 (GCOV_COUNTER_V_INDIR): New counter type
24662 (GCOV_COUNTER_NAMES): New name of counter "indirect" added
24663 (GCOV_MERGE_FUNCTIONS): New merge function for indirect/virtual
24664 call added
24665 * cgraph.c: Definition of cgraph_max_pid
24666 (cgraph_create_node): Default init of pid attribute
24667 * cgraph.h: Declaration of cgraph_max_pid
24668 (struct cgraph_node): Added pid attribute
24669 * libgcov.c (__gcov_indirect_call_profiler): New function
24670 (__gcov_one_value_profiler_body): New function
24671 (__gcov_one_value_profiler): Body was moved to
24672 __gcov_one_value_profiler_body and calls it
24673
24674 2007-01-19 Basile Starynkevitch <basile@starynkevitch.net>
24675
24676 * doc/gty.texi (Options): Document the mark_hook option to GTY.
24677 * gengtype.c (write_types_data, write_func_for_structure,
24678 write_types, ggc_wtd, pch_wtd): Add skip_hooks to
24679 write_types_data, ggc_wtd, pch_wtd for processing mark_hook.
24680 (walk_type, write_func_for_structure): Generate the mark_hook if
24681 needed.
24682
24683 2007-01-19 Jan Hubicka <jh@suse.cz>
24684
24685 * ipa-inline.c (cgraph_decide_inlining_incrementally): Instead of
24686 'early' argument take inlining mode argument specifying whether to
24687 inline for size/speeed or all functions; add support for flattening;
24688 improve dumpting.
24689 (cgraph_early_inlining): Update call of decide_inlining_incrementally.
24690
24691 2007-01-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24692
24693 PR c++/17947
24694 * toplev.c (warn_deprecated_use): Use %qD instead of %qs to print
24695 the name of the declared identifier.
24696
24697 2007-01-19 Dirk Mueller <dmueller@suse.de>
24698
24699 * config/i386.h (CONDITIONAL_REGISTER_USAGE): Store
24700 result of PIC_OFFSET_TABLE_REGNUM in temporary variable to avoid
24701 duplicate evaluation.
24702
24703 2007-01-19 Uros Bizjak <ubizjak@gmail.com>
24704
24705 * config/i386/i386.md (acos<mode>2): Rename from acossf2 and acosdf2.
24706 Macroize expander using X87MODEF12 mode macro. Extend operand 1
24707 to XFMode, use acosxf2 and truncate result to requested mode.
24708 Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
24709 (asin<mode>2): Similarly, with asin expanders.
24710 (*fscalexf4_i387): Rename from *fscalexf4.
24711 (expNcorexf3): New expander.
24712 (expxf2, exp10xf2, exp2xf2): Use expNcorexf3 expander.
24713 (exp<mode>2): Rename from expsf2 and expdf2. Macroize expander using
24714 X87MODEF12 mode macro. Extend operand 1 to XFMode, use expxf2 and
24715 truncate result to requested mode. Use SSE_FLOAT_MODE_P to disable
24716 patterns for SSE math.
24717 (exp10<mode>2): Similarly, with exp10 expanders.
24718 (exp2<mode>2): Similarly, with exp2 expanders.
24719 (expm1<mode>2): Similarly, with expm1 expanders.
24720 (ldexp<mode>3): Similarly, with ldexp expanders.
24721 (log<mode>2, log10<mode>2, log2<mode>2, log1p<mode>2, logb<mode>2):
24722 Use gen_truncxf<mode>2_i387_noop to truncate result.
24723
24724 2007-01-19 Richard Sandiford <richard@codesourcery.com>
24725
24726 * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32
24727 for ColdFire targets.
24728
24729 2007-01-19 Nathan Sidwell <nathan@codesourcery.com>
24730 Richard Sandiford <richard@codesourcery.com>
24731
24732 * config/m68k/m68k.h (M68K_STATIC_CHAIN_REG_NAME): New macro.
24733 (INITIALIZE_TRAMPOLINE): Use STATIC_CHAIN_REGNUM.
24734 (__transfer_from_trampoline): Use M68K_STATIC_CHAIN_REG_NAME.
24735 * config/m68k/m68kelf.h (STATIC_CHAIN_REGNUM): Override.
24736 (M68K_STATIC_CHAIN_REG_NAME): Likewise.
24737 * config/m68k/netbsd-elf.h (M68K_STATIC_CHAIN_REG_NAME): Likewise.
24738
24739 2007-01-19 Richard Sandiford <richard@codesourcery.com>
24740
24741 * config/m68k/m68k.md (adddi_dilshr32): Rename to...
24742 (*adddi_dilshr32): ...this. Fix formatting. Remove commented-out
24743 non-canonical pattern. Restrict to !TARGET_COLDFIRE.
24744 (*adddi_dilshr32_cf): New pattern.
24745 (adddi3, subdi3): Remove first alternatives.
24746
24747 2007-01-19 Richard Sandiford <richard@codesourcery.com>
24748
24749 * config/m68k/m68k.c (notice_update_cc): If an SFmode move is
24750 implemented using move.l, do not use its cc result for floating-point
24751 comparisons.
24752
24753 2007-01-19 Richard Sandiford <richard@codesourcery.com>
24754
24755 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Stop the 'T' constraint
24756 from accepting 's' constraints if flag_pic.
24757
24758 2007-01-19 Richard Sandiford <richard@codesourcery.com>
24759
24760 * config/m68k/m68k.md (bordered, bunordered, buneq, bunge, bungt)
24761 (bunle, bunlt, bltgt, bordered_rev, bunordered_rev, buneq_rev)
24762 (bunge_rev, bungt_rev, bunle_rev, bunlt_rev, bltgt_rev): Change
24763 condition from TARGET_68881 to TARGET_HARD_FLOAT.
24764
24765 2007-01-19 Sandra Loosemore <sandra@codesourcery.com>
24766
24767 * longlong.h (count_leading_zeros, COUNT_LEADING_ZEROS_0): Add
24768 ColdFire alternatives.
24769 * config/m68k/m68k.h (CLZ_DEFINED_VALUE_AT_ZERO): New macro.
24770 * config/m68k/m68k.md (clzsi2): Define for ColdFire
24771 architectures that support ff1 instruction.
24772
24773 2007-01-19 Richard Sandiford <richard@codesourcery.com>
24774 Julian Brown <julian@codesourcery.com>
24775
24776 * config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Add an 'R' case.
24777 * config/m68k/m68k.md (*movsi_cfv4): Fold into...
24778 (*movsi_cf): ...here. Remove unnecessary 'R' from 'Rg'.
24779 Add commentary.
24780
24781 2007-01-19 Richard Sandiford <richard@codesourcery.com>
24782
24783 * config/m68k/m68k-protos.h (valid_mov3q_const): Take a HOST_WIDE_INT
24784 and return a bool.
24785 (output_move_const_into_data_reg, output_move_simode_const): Delete.
24786 * config/m68k/m68k.c (const_method, const_int_cost): Take a
24787 HOST_WIDE_INT instead of an rtx.
24788 (m68k_rtx_costs): Update call accordingly.
24789 (output_move_const_into_data_reg): Likewise. Fix formatting.
24790 (valid_mov3q_const): Take a HOST_WIDE_INT instead of an rtx.
24791 Return a bool.
24792 (output_move_simode_const): Update calls after above changes.
24793 Rework to use automatic variables and predicates like MEM_P.
24794 * config/m68k/m68k.md (pushexthisi_const): Update call to
24795 valid_mov3q_const.
24796
24797 2007-01-19 Dirk Mueller <dmueller@suse.de>
24798
24799 * tree-ssa-alias.c (perform_var_substitution): Fix typo
24800 in dump_flags test.
24801
24802 2007-01-19 Richard Guenther <rguenther@suse.de>
24803
24804 * builtins.c (expand_builtin_cexpi): Fall back to expanding
24805 via cexp in case sincos is not available.
24806
24807 2007-01-19 Richard Guenther <rguenther@suse.de>
24808
24809 * doc/tm.texi (TARGET_HAS_SINCOS): Document new target macro.
24810 * defaults.h (TARGET_HAS_SINCOS): Default to off.
24811 * config/linux.h (TARGET_HAS_SINCOS): Set to on if we have glibc.
24812 * config/alpha/linux.h (TARGET_HAS_SINCOS): Likewise.
24813 * config/sparc/linux.h (TARGET_HAS_SINCOS): Likewise.
24814 * config/sparc/linux64.h (TARGET_HAS_SINCOS): Likewise.
24815 * config/rs6000/linux.h (TARGET_HAS_SINCOS): Likewise.
24816 * config/rs6000/linux64.h (TARGET_HAS_SINCOS): Likewise.
24817
24818 2007-01-19 Uros Bizjak <ubizjak@gmail.com>
24819
24820 * config/i386/i386.md (*fpatanxf3_i387, fpatan_extend<mode>xf3_i387):
24821 New insn patterns.
24822 (atan2sf3_1, atan2df3_1, atan2xf3_1): Remove insn patterns.
24823 (atan2xf3): Directly generate RTL pattern.
24824 (atan2<mode>3): Rename from atan2sf3 and atan2df3 and macroize insn
24825 patterns using X87MODEF12 mode macro. Use fpatan_extend<mode>xf3_i387
24826 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
24827 disable patterns for SSE math.
24828 (atan<mode>2): Rename from atansf2 and atandf2 and macroize insn
24829 patterns using X87MODEF12 mode macro. Use fpatan_extend<mode>xf3_i387
24830 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
24831 disable patterns for SSE math.
24832
24833 2007-01-19 Alexandre Oliva <aoliva@redhat.com>
24834
24835 * libgcc-std.ver: Fix typo in %inherit for GCC_4.3.0.
24836
24837 2007-01-18 Roger Sayle <roger@eyesopen.com>
24838
24839 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Optimize away a
24840 VIEW_CONVERT_EXPR to the same type as it's operand.
24841
24842 2007-01-18 David Edelsohn <edelsohn@gnu.org>
24843
24844 * config/rs6000/darwin-ldouble.c: Only build _SOFT_FLOAT if
24845 configured for long double 128.
24846
24847 2007-01-18 Mike Stump <mrs@apple.com>
24848
24849 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Fix build
24850 error.
24851
24852 2007-01-18 Michael Meissner <michael.meissner@amd.com>
24853
24854 * i386.c (ix86_compute_frame_layout): Make fprintf's in #if 0 code
24855 type correct.
24856
24857 2007-01-18 Jan Hubicka <jh@suse.cz>
24858
24859 * tree-ssa-operands.c (vop_free_bucket_size): Never return value
24860 greater than NUM_VOP_FREE_BUCKETS.
24861
24862 2007-01-18 Daniel Berlin <dberlin@dberlin.org>
24863
24864 * tree-ssa-structalias.c: Update comments.
24865 (ptabitmap_obstack): Removed.
24866 (pta_obstack): New.
24867 (oldpta_obstack): Ditto.
24868 (stats): Add a few members.
24869 (struct variable_info): Remove node, complex, address_taken, and
24870 indirect_target members. Add oldsolution member.
24871 (new_var_info): Do not initialize removed members.
24872 (constraint_expr_type): Remove INCLUDES.
24873 (constraint_graph): Add size, implicit_preds, rep,
24874 indirect_cycles, eq_rep, label, direct_nodes, and complex members.
24875 (FIRST_REF_NODE): New macro.
24876 (LAST_REF_NODE): Ditto.
24877 (FIRST_ADDR_NODE): Ditto.
24878 (find): New function.
24879 (unite): Ditto.
24880 (dump_constraint): Do not handle INCLUDES.
24881 (insert_into_complex): Do not insert duplicate constraints.
24882 (condense_varmap_nodes): Renamed and rewritten into ...
24883 (merge_node_constraints): This. Also fix bug in handling of
24884 offseted copy constraints.
24885 (clear_edges_for_node): No longer need to deal with preds at all,
24886 or removing associated preds/succs.
24887 (merge_graph_nodes): Deal with indirect_cycles.
24888 Don't deal with predecessors.
24889 (add_implicit_graph_edge): New function.
24890 (add_pred_graph_edge): Ditto.
24891 (add_graph_edge): Don't deal with predecessors.
24892 (build_constraint_graph): Removed.
24893 (build_pred_graph): New function.
24894 (build_succ_graph): Ditto.
24895 (struct scc_info): Removed in_component. Added roots, dfs, and
24896 node_mapping. Remove visited_index, unification_queue.
24897 (scc_visit): Deal with union-find we do now.
24898 Deal with cycles with REF nodes.
24899 (collapse_nodes): Renamed and rewritten to ...
24900 (unify_nodes): This.
24901 (process_unification_queue): Removed.
24902 (topo_visit): Cleanup
24903 (do_da_constraint): Use find.
24904 (do_sd_constraint): Ditto.
24905 (do_ds_constraint): Ditto.
24906 (do_complex_constraint): Ditto.
24907 (init_scc_info): Update for removed and added members.
24908 (find_and_collapse_graph_cycles): Renamed and rewritten into ...
24909 (find_indirect_cycles): This.
24910 (equivalence_class): New variable.
24911 (label_visit): New function.
24912 (perform_variable_substitution): Rewritten.
24913 (free_var_substitution_info): New function.
24914 (find_equivalent_node): Ditto.
24915 (move_complex_constraints): Ditto.
24916 (eliminate_indirect_cycles): Ditto.
24917 (solve_graph): Only propagate changed bits.
24918 Use indirect cycle elimination.
24919 Use find.
24920 (tree_id_t): Rename to tree_vi_t, delete id member, add vi member.
24921 (tree_id_eq): Renamed to ...
24922 (tree_vi_eq): This. Update for member change
24923 (insert_id_for_tree): Renamed and rewritten to ...
24924 (insert_vi_for_tree): This.
24925 (lookup_id_for_tree): Renamed and rewritten to ...
24926 (lookup_vi_for_tree): This.
24927 (get_id_for_tree): Renamed and rewritten to ...
24928 (get_vi_for_tree): Ditto.
24929 (get_constraint_exp_from_ssa_var): Update to use get_vi_for_tree.
24930 (process_constraint): Don't handle INCLUDES.
24931 Remove special ADDRESSOF case.
24932 (find_func_aliases): Rewrite to use vi functions instead of id
24933 ones.
24934 (create_function_info_for): Ditto.
24935 (create_variable_info_for): Ditto.
24936 (intra_create_variable_infos): Ditto.
24937 (merge_smts_into): Ditto.
24938 (find_what_p_points_to): Ditto.
24939 (init_base_vars): Ditto.
24940 (init_alias_vars): Ditto.
24941 (remove_preds_and_fake_succs): New function.
24942 (dump_sa_points_to_info): Dump new stats.
24943 (dump_solution_for_var): Use find.
24944 (set_used_smts): Fix formatting.
24945 (compute_points_to_sets): Updated for new functions.
24946 (ipa_pta_execute): Ditto.
24947
24948 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
24949 Richard Sandiford <richard@codesourcery.com>
24950
24951 * doc/tm.texi (TARGET_FUNCTION_VALUE): Expand documentation of
24952 parallels.
24953 * calls.c (expand_call): If the return value is a PARALLEL,
24954 extract its first member.
24955 * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Remove.
24956 * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
24957 use FUNCTION_EXTRA_EPILOGUE.
24958 (m68k_function_value): Return a PARALLEL if the return value
24959 is of a pointer type.
24960 * config/m68k/netbsd-elf.h (current_function_returns_pointer)
24961 (FUNCTION_EXTRA_EPILOGUE): Remove.
24962 * config/m68k/m68k.md (D0_REG): New constant.
24963
24964 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
24965
24966 * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
24967 output a NOP for empty epilogues.
24968
24969 2007-01-18 Richard Sandiford <richard@codesourcery.com>
24970
24971 * config/m68k/m68k.c (m68k_use_return_insn): Update comments
24972 before function. Extend register save check to include all
24973 registers, not just integer ones.
24974
24975 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
24976
24977 * config/m68k/m68k-protos.h (use_return_insn): Rename to...
24978 (m68k_use_return_insn): ...this.
24979 * config/m68k/m68k.h (USE_RETURN_INSN): Delete.
24980 * config/m68k/m68k.c (use_return_insn): Rename to...
24981 (m68k_use_return_insn): ...this.
24982 * config/m68k/m68k.md (return): Use m68k_use_return_insn instead
24983 of USE_RETURN_INSN.
24984
24985 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
24986
24987 * config/m68k/fpgnulib.c (__truncdfsf2): Implement round to
24988 nearest even, fix denormal rounding overflow.
24989
24990 2007-01-18 Richard Sandiford <richard@codesourcery.com>
24991
24992 * config/m68k/m68k.md (movsf_cf_hard): Use fsmove instead of
24993 f%$smove and f%$move.
24994 (movdf_cf_hard): Use fdmove for cases 0 and 3 and fmove for case 1.
24995 (extendsfdf2_cf): Use fdmove instead of f%&move.
24996 (truncdfsf2_cf): Use fsmove instead of f%$smove.
24997 (add<mode>3_cf, sub<mode>3_cf): Use <FP:prec> instead of <FP:round>.
24998
24999 2007-01-18 Richard Sandiford <richard@codesourcery.com>
25000
25001 * config/m68k/m68k.md (movdf_cf_hard): Use output_move_double for
25002 GPR<-GPR moves.
25003
25004 2007-01-18 Richard Sandiford <richard@codesourcery.com>
25005
25006 * real.h (real_format): Add a canonical_nan_lsbs_set field.
25007 (coldfire_single_format): Declare.
25008 (coldfire_double_format): Likewise.
25009 * real.c (encode_ieee_single): Use canonical_nan_lsbs_set instead
25010 of qnan_msb_set to determine the lower bits of a canonical
25011 NaN significand.
25012 (encode_ieee_double): Likewise.
25013 (encode_ieee_quad): Likewise.
25014 (ieee_single_format): Initialize canonical_nan_lsbs_set.
25015 (mips_single_format): Likewise.
25016 (ieee_double_format): Likewise.
25017 (mips_double_format): Likewise.
25018 (ieee_extended_motorola_format): Likewise.
25019 (ieee_extended_intel_96_format): Likewise.
25020 (ieee_extended_intel_128_format): Likewise.
25021 (ieee_extended_intel_96_round_53_format): Likewise.
25022 (ibm_extended_format): Likewise.
25023 (mips_extended_format): Likewise.
25024 (ieee_quad_format): Likewise.
25025 (mips_quad_format): Likewise.
25026 (vax_f_format): Likewise.
25027 (vax_d_format): Likewise.
25028 (vax_g_format): Likewise.
25029 (i370_single_format): Likewise.
25030 (i370_double_format): Likewise.
25031 (decimal_single_format): Likewise.
25032 (decimal_double_format): Likewise.
25033 (decimal_quad_format): Likewise.
25034 (c4x_single_format): Likewise.
25035 (c4x_extended_format): Likewise.
25036 (real_internal_format): Likewise.
25037 (coldfire_single_format): New real_format.
25038 (coldfire_double_format): Likewise.
25039 * config/pdp11/pdp11.c (pdp11_f_format): Initialize
25040 canonical_nan_lsbs_set.
25041 (pdp11_d_format): Likewise.
25042 * config/m68k/m68k.c (override_options): Override REAL_FORMAT_MODE
25043 if TARGET_COLDFIRE_CPU.
25044
25045 2007-01-18 Richard Sandiford <richard@codesourcery.com>
25046
25047 * config/m68k/m68k-protos.h (m68k_output_pic_call): Delete.
25048 (output_call, m68k_legitimize_call_address): Declare.
25049 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Remove unnecessary
25050 parenthesees. Add support for a 'W' constraint.
25051 (LEGITIMATE_PIC_OPERAND_P): Remove SYMBOL_REF_FLAG handling.
25052 (PRINT_OPERAND_PUNCT_VALID_P): Remove comment about 'o'.
25053 (m68k_symbolic_call, m68k_symbolic_jump): Declare.
25054 * config/m68k/m68k.c (m68k_symbolic_call, m68k_symbolic_jump): New
25055 variables.
25056 (override_options): Initialize them. Do not set flag_no_function_cse
25057 for TARGET_ID_SHARED_LIBRARY.
25058 (m68k_output_pic_call): Delete.
25059 (m68k_legitimize_call_address): New function.
25060 (print_operand): Remove the %o prefix. Handle the %p prefix.
25061 (output_call): New function.
25062 (m68k_output_mi_thunk): Use m68k_symbolic_jump. Always load the
25063 target address from the GOT if symbolic jumps are not allowed.
25064 * config/m68k/m68k.md (call, general_operand): Do not set
25065 SYMBOL_REF_FLAG. Use m68k_legitimize_call_address instead.
25066 Merge separate flag_pic and !flag_pic define_insns into...
25067 (*call, *call_value): ...these new patterns. Match the address
25068 rather than the containing MEM and require it to be a call_operand.
25069 Use output_call to generate the asm template.
25070 * config/m68k/predicates.md (const_call_operand): New predicate.
25071 (call_operand): Likewise.
25072
25073 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
25074
25075 * config/m68k/m68k.h (REGISTER_MOVE_COST): Simplify definition.
25076 (STACK_GROWS_DOWNWARD): Define to 1.
25077 (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Equivocate
25078 comments, emphasizing that these values are only defaults.
25079 * config/m68k/linux.h (LINK_SPEC): Fix formatting in #undef.
25080 * config/m68k/m68k.c (const_method): Remove trailing whitespace.
25081
25082 2007-01-18 Richard Sandiford <richard@codesourcery.com>
25083
25084 * config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling.
25085
25086 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
25087 Richard Sandiford <richard@codesourcery.com>
25088
25089 * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P)
25090 (FP_REGNO_P): New macros.
25091 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_DATA_P)
25092 (REGNO_OK_FOR_FP_P, REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Use them.
25093 (EH_RETURN_STACKADJ_RTX): Use A0_REG.
25094 * config/m68k/m68k.c (m68k_regno_mode_ok): Use the new REGNO macros.
25095
25096 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
25097
25098 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
25099 (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-rtems*): Add t-floatlib
25100 to $tmake_file.
25101 * config/m68k/t-floatlib: New file, extracting common code from...
25102 * config/m68k/t-m68kbare, config/m68k/t-m68kelf,
25103 * config/m68k/t-uclinux: Here.
25104 * config/m68k/fpgnulib.c: Do not compile extendeed precision
25105 routines on ColdFire targets.
25106
25107 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
25108
25109 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
25110 (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*)
25111 (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-linux*)
25112 (m68k-*-rtems*): Use tm_file rather than m68k/m68k.h and
25113 explicitly set MOTOROLA to 1.
25114 * config/m68k/m68k.h (MOTOROLA): Simplify definition accordingly.
25115
25116 2007-01-18 Richard Sandiford <richard@codesourcery.com>
25117 Nathan Sidwell <nathan@codesourcery.com>
25118
25119 * config/m68k/m68k.h (PCC_STATIC_STRUCT_RETURN): Delete.
25120 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add MOTOROLA cases.
25121 * config/m68k/coff.h (REGISTER_PREFIX_MD): Delete.
25122 * config/m68k/m68020-elf.h (LIB_SPEC): Delete.
25123 * config/m68k/m68k-none.h (CC1_SPEC, CPP_SUBTARGET_SPEC): Delete.
25124 * config/m68k/m68kelf.h (IMMEDIATE_PREFIX, REGISTER_PREFIX_MD)
25125 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
25126 (NO_DOLLAR_IN_LABEL, PCC_STATIC_STRUCT_RETURN): Don't undefine.
25127 (BSS_ASM_OP, ASM_OUTPUT_SKIP, ASM_OUTPUT_ASCII): Delete.
25128 * config/m68k/m68kemb.h (PCC_STATIC_STRUCT_RETURN): Don't undefine.
25129 * config/m68k/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE)
25130 (WCHAR_TYPE_SIZE, TARGET_OBJFMT_CPP_BUILTINS): Delete.
25131 (TARGET_OS_CPP_BUILTINS): Don't define mc68000 and mc68020 here.
25132 (DBX_REGISTER_NUMBER): Delete.
25133 * config/m68k/netbsd-elf.h (IMMEDIATE_PREFIX): Delete.
25134 (PCC_STATIC_STRUCT_RETURN): Don't undefine.
25135 * config/m68k/openbsd.h (PCC_STATIC_STRUCT_RETURN): Define.
25136
25137 2007-01-18 Richard Sandiford <richard@codesourcery.com>
25138
25139 * config.gcc (m68k-*-uclinux*): Add flat.h to $tm_file.
25140 * config/flat.h: New file.
25141 * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define if
25142 OBJECT_FORMAT_FLAT.
25143 * config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Do not use
25144 indirect references for -msep-data or -mid-shared-library.
25145 Do not use PC-relative code addresses either.
25146 * config/m68k/m68k.c (override_options): Restrict -fPIC error
25147 to -mpcrel.
25148 * config/m68k/uclinux.h (STARTFILE_SPEC): Define. Use Scrt1.o
25149 for shared libraries and crt1.o for executables. Use crti.o and
25150 crtbegin.o.
25151 (ENDFILE_SPEC): Use crtend.o and crtn.o.
25152 (LIB_SPEC): Suppress -Rlibc.gdb if -static-libc is given.
25153 Do not add -elf2flt or -shared-lib-id options here.
25154 (LINK_SPEC): Define. Pass -elf2flt if no -elf2flt option is given.
25155 Pass -shared-lib-id if -mid-shared-library, taking the library
25156 identifier from -mshared-library-id if given, otherwise
25157 defaulting to 0.
25158 (EH_FRAME_IN_DATA_SECTION): Do not undefine.
25159 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Likewise.
25160 (TARGET_OS_CPP_BUILTINS): Define __GXX_MERGED_TYPEINFO_NAMES=0
25161 and __GXX_TYPEINFO_EQUALITY_INLINE=0 if -mid-shared-library.
25162 (DRIVER_SELF_SPECS): Map unadorned PIC options to -msep-data.
25163 * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Add crtbegin.o
25164 and crtend.o.
25165 * config/m68k/lb1sf68.asm (PICCALL): Use an lea and pc-relative
25166 jump sequence for ISA A and ISA A+.
25167 (PICJUMP): Likewise.
25168
25169 2007-01-18 Richard Sandiford <richard@codesourcery.com>
25170
25171 * config.gcc (m68k-*-uclinux*): Base the port on the common
25172 and m68k GNU/Linux files rather than on the generic ELF ones.
25173 * config/m68k/uclinux.h (TARGET_VERSION): Override.
25174 (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
25175
25176 2007-01-18 Julian Brown <julian@codesourcery.com>
25177 Richard Sandiford <richard@codesourcery.com>
25178
25179 * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Make 64-bit on ColdFire.
25180 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
25181 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Undefine
25182 before redefining.
25183 * config/m68k/uclinux-oldabi.h (LONG_DOUBLE_TYPE_SIZE): Redefine to
25184 80 unconditionally.
25185 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
25186
25187 2007-01-18 Richard Sandiford <richard@codesourcery.com>
25188
25189 * doc/install.texi: Document m68k-uclinuxoldabi.
25190 * config.gcc (m68k-*-uclinuxoldabi): New configuration.
25191 * config/m68k/uclinux-oldabi.h: New file, copied from
25192 config/m68k/uclinux.h.
25193
25194 2007-01-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
25195
25196 * config/m32r/m32r-protos.h (m32r_expand_epilogue): Declare it.
25197 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Use gen_frame_mem.
25198 (m32r_compute_frame_size): Use unsigned for regno.
25199 (m32r_reload_lr): Use gen_frame_mem.
25200 (pop): New.
25201 (m32r_output_function_epilogue): Don't output the function epilogue
25202 textually here.
25203 (m32r_expand_epilogue): New.
25204 (direct_return): Return false if the function has the interrupt
25205 attribute.
25206 (m32r_hard_regno_rename_ok): Remove code for the textual epilogue.
25207 * config/m32r/m32r.md (epilogue): New expander.
25208 (return_lr, return_rte): New insns.
25209 (return): Make it expander.
25210 (return_normal): New expander.
25211
25212 2007-01-18 Josh Conner <jconner@apple.com>
25213
25214 PR target/30485
25215 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Add
25216 support for UNLE, UNLT, UNGE, and UNGT.
25217
25218 2007-01-18 Jan Hubicka <jh@suse.cz>
25219
25220 * tree-vrp.c (finalize_jump_threads): Do not call cleanup_cfg by hand.
25221 * tree-tailcall (add_virtual_phis): Likewise.
25222 (optimize_tail_call): Return TODOs.
25223 (execute_tail_calls): Return TODOs.
25224 * tree-ssa-ccp (execute_fold_all_builtins): Do cleanup_cfg via TODO.
25225 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Return if something
25226 changed.
25227 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
25228 Cleanup cfg using TODO.
25229 * tree-flow.h (cleanup_tree_cfg_loop): Update prototype.
25230 * passes.c (execute_function_todo): When cleanup did something, remove
25231 unused locals.
25232 * tree-cfg.c (pass_build_cfg): Add cleanup_cfg TODO.
25233 (make_edges): Don't cleanup_cfg.
25234
25235 2007-01-18 Uros Bizjak <ubizjak@gmail.com>
25236
25237 * reg-stack.c (subst_stack_regs_pat) [UNSPEC_SINCOS_COS,
25238 UNSPEC_XTRACT_FRACT]: Use generic code for instructions that
25239 operate on the top of stack.
25240 [UNSPEC_SINCOS_SIN, UNSPEC_XTRACT_EXP, UNSPEC_TAN]: Rewrite
25241 register handling of instructions that output to the second
25242 stack slot.
25243 [UNSPEC_TAN_ONE, UNSPEC_TAN_TAN]: Remove.
25244 (move_for_stack_reg): Special-case check for dead destination
25245 stack slot for constant load of 1.0 inside UNSPEC_TAN.
25246
25247 * config/i386/i386.md (UNSPEC_TAN): New constant.
25248 (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): Remove.
25249 (fptanxf4_i387, fptan_extend<mode>xf4_i387): New patterns
25250 to correctly model move of constant 1.0 to top stack slot.
25251 (*tandf3_1, *tansf3_1, *tanxf3_1): Remove insn patterns.
25252 (unnamed peephole2 pattern): Remove corresponding peephole2
25253 pattern that optimizes tan insn and loading of constant 1.0.
25254 (tanxf2): Use fptanxf4_i387.
25255 (tan<mode>2): Rename from tansf2 and tandf2 and macroize insn
25256 patterns using X87MODEF12 mode macro. Use fptan_extend<mode>xf4_i387
25257 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
25258 disable patterns for SSE math.
25259 (sincos<mode>3): Use truncxf<mode>2_i387_noop for truncation.
25260 (fyl2x_extend<mode>xf3_i387): Use X87MODEF12 for operand 1.
25261
25262 2007-01-18 Dirk Mueller <dmueller@suse.de>
25263 Richard Guenther <rguenther@suse.de>
25264
25265 PR diagnostic/8268
25266 * doc/invoke.texi (Warray-bounds): Document -Warray-bounds.
25267 * common.opt (Warray-bounds): Add new warning option.
25268 * c-opts.c (c_common_handle_option): Define -Warray-bounds
25269 if -Wall is given.
25270 * Makefile.in: make tree-vrp.o depend on toplev.h
25271 * tree-vrp.c (vrp_finalize): Call check_array_refs if -Warray-bounds
25272 is enabled.
25273 (check_array_refs, check_array_bounds, check_array_ref): New.
25274
25275 2007-01-18 Jan Hubicka <jh@suse.cz>
25276
25277 * tree-ssa-ccp.c (ccp_finalize): Return if something changed.
25278 (execute_ssa_ccp): Return flags conditionally.
25279 * tree-ssa-propagate.c (substitue_and_fold): Return if something was
25280 changed.
25281 * tree-ssa-propagate.h (substitute_and_fold): Update prototype.
25282
25283 2007-01-18 Steven Bosscher <steven@gcc.gnu.org>
25284
25285 * cfgcleanup.c (cleanup_cfg): Detect cfglayout mode and set
25286 the CLEANUP_CFGLAYOUT flag when in cfglayout mode.
25287
25288 * Makefile.c (GTFILES): Add cfglayout.h.
25289 * gengtype.c (open_base_files): Likewise.
25290 * cfglayout.c (cfg_layout_function_footer,
25291 cfg_layout_function_header) Reindent to make gengtype happy.
25292 * cfglayout.h (cfg_layout_function_footer,
25293 cfg_layout_function_header): Add GTY(()) marker.
25294
25295 * ifcvt.c (noce_try_sign_mask): Make sure INSN_B is non-null.
25296
25297 2007-01-18 Ben Elliston <bje@au.ibm.com>
25298
25299 * genautomata.c (write_automata): Include xstrerror output in the
25300 error message if writing the DFA description file fails.
25301
25302 2007-01-17 H.J. Lu <hongjiu.lu@intel.com>
25303
25304 * config/mips/mips-protos.h (mips_output_external): Make it
25305 return void.
25306 * config/mips/iris.h (TARGET_ASM_EXTERNAL_LIBCALL): Removed.
25307 * config/mips/mips.c (irix_output_external_libcall): Likewise.
25308 (extern_list): Likewise.
25309 (extern_head): Likewise.
25310 (TARGET_ASM_FILE_END): Likewise.
25311 (mips_file_end): Likewise.
25312 (mips_output_external): Rewritten.
25313
25314 2007-01-18 Ben Elliston <bje@au.ibm.com>
25315
25316 * genpreds.c (write_insn_preds_c): Only write out the function
25317 body for regclass_for_constraint if we have register constraints.
25318
25319 2007-01-17 Tom Tromey <tromey@redhat.com>
25320
25321 * doc/sourcebuild.texi (libgcj Tests): Use sourceware.org.
25322 * doc/install.texi (Testing): Use sourceware.org.
25323 (Binaries): Likewise.
25324 (Specific): Likewise.
25325 * doc/contrib.texi (Contributors): Use sourceware.org.
25326
25327 2007-01-17 Anatoly Sokolov <aesok@post.ru>
25328
25329 * config/avr/avr.h (AVR_HAVE_LPMX): New macro.
25330 (AVR_ENHANCED): Rename to ...
25331 (AVR_HAVE_MUL): ... new.
25332 (avr_enhanced_p): Rename to ...
25333 (avr_have_mul_p): ... new.
25334 (TARGET_CPU_CPP_BUILTINS): Use 'avr_have_mul_p' instead of
25335 'avr_enhanced_p' for "__AVR_ENHANCED__". Define "__AVR_HAVE_MUL__".
25336 * config/avr/avr.c (avr_enhanced_p): Rename to ...
25337 (avr_have_mul_p): ... new.
25338 (base_arch_s): Rename 'enhanced' to 'have_mul'.
25339 (avr_override_options): Use 'avr_have_mul_p' and 'have_mul' instead of
25340 'avr_enhanced_p' and 'enhanced'.
25341 (ashlhi3_out, ashrhi3_out, lshrhi3_out, avr_rtx_costs): Use
25342 AVR_HAVE_MUL instead of AVR_ENHANCED.
25343 * avr.md (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
25344 (mulqi3, *mulqi3_enh, *mulqi3_call, mulqihi3, umulqihi3, mulhi3,
25345 *mulhi3_enh, *mulhi3_call, mulsi3, *mulsi3_call): Use AVR_HAVE_MUL
25346 instead of AVR_ENHANCED.
25347 (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
25348 * libgcc.S: Use __AVR_HAVE_MUL__ instead of __AVR_ENHANCED__.
25349 (__tablejump__): Use __AVR_HAVE_LPMX__ instead of __AVR_ENHANCED__.
25350
25351 2007-01-17 Ian Lance Taylor <iant@google.com>
25352
25353 * vec.h (VEC_reserve_exact): Define.
25354 (vec_gc_p_reserve_exact): Declare.
25355 (vec_gc_o_reserve_exact): Declare.
25356 (vec_heap_p_reserve_exact): Declare.
25357 (vec_heap_o_reserve_exact): Declare.
25358 (VEC_OP (T,A,reserve_exact)): New static inline function, three
25359 versions.
25360 (VEC_OP (T,A,reserve)) [all versions]: Remove handling of
25361 negative parameter.
25362 (VEC_OP (T,A,alloc)) [all versions]: Call ...reserve_exact.
25363 (VEC_OP (T,A,copy)) [all versions]: Likewise.
25364 (VEC_OP (T,a,safe_grow)) [all versions]: Likewise.
25365 * vec.c (calculate_allocation): Add exact parameter. Change all
25366 callers.
25367 (vec_gc_o_reserve_1): New static function, from vec_gc_o_reserve.
25368 (vec_gc_p_reserve, vec_gc_o_reserve): Call vec_gc_o_reserve_1.
25369 (vec_gc_p_reserve_exact, vec_gc_o_reserve_exact): New functions.
25370 (vec_heap_o_reserve_1): New static function, from vec_heap_o_reserve.
25371 (vec_heap_p_reserve, vec_heap_o_reserve): Call vec_heap_o_reserve_1.
25372 (vec_heap_p_reserve_exact): New function.
25373 (vec_heap_o_reserve_exact): New function.
25374
25375 2007-01-17 Jan Hubicka <jh@suse.cz>
25376
25377 * ipa-type-escape.c (look_for_casts): Revamp using handled_component_p.
25378
25379 2007-01-17 Eric Christopher <echristo@apple.com>
25380
25381 * config.gcc: Support core2 processor.
25382
25383 2007-01-16 Jan Hubicka <jh@suse.cz>
25384
25385 * tree-ssanames.c (release_dead_ssa_names): Instead of ggc_freeing
25386 the names, just unlink the chain so we don't crash on dangling
25387 pointers
25388 to dead SSA names.
25389
25390 2007-01-16 Jan Hubicka <jh@suse.cz>
25391
25392 * cgraph.h (cgraph_decide_inlining_incrementally): Kill.
25393 * tree-pass.h: Reorder to make IPA passes appear toegher.
25394 (pass_early_inline, pass_inline_parameters, pass_apply_inline):
25395 Declare.
25396 * cgraphunit.c (cgraph_finalize_function): Do not compute inling
25397 parameters, do not call early inliner.
25398 * ipa-inline.c: Update comments. Include tree-flow.h
25399 (cgraph_decide_inlining): Do not compute inlining parameters.
25400 (cgraph_decide_inlining_incrementally): Return TODOs; assume to
25401 be called with function context set up.
25402 (pass_ipa_inline): Remove unreachable functions before pass.
25403 (cgraph_early_inlining): Simplify assuming to be called from the
25404 PM as local pass.
25405 (pass_early_inline): New pass.
25406 (cgraph_gate_ipa_early_inlining): New gate.
25407 (pass_ipa_early_inline): Turn into simple wrapper.
25408 (compute_inline_parameters): New function.
25409 (gate_inline_passes): New gate.
25410 (pass_inline_parameters): New pass.
25411 (apply_inline): Move here from tree-optimize.c
25412 (pass_apply_inline): New pass.
25413 * ipa.c (cgraph_remove_unreachable_nodes): Verify cgraph after
25414 transforming.
25415 * tree-inline.c (optimize_inline_calls): Return TODOs rather than
25416 doing them by hand.
25417 (tree_function_versioning): Do not allocate dummy struct function.
25418 * tree-inline.h (optimize_inline_calls): Update prototype.
25419 * tree-optimize.c (execute_fixup_cfg): Export.
25420 (pass_fixup_cfg): Remove
25421 (tree_rest_of_compilation): Do not apply inlines.
25422 * tree-flow.h (execute_fixup_cfg): Declare.
25423 * Makefile.in (gt-passes.c): New.
25424 * passes.c: Include gt-passes.h
25425 (init_optimization_passes): New passes.
25426 (nnodes, order): New static vars.
25427 (do_per_function_toporder): New function.
25428 (execute_one_pass): Dump current pass here.
25429 (execute_ipa_pass_list): Don't dump current pass here.
25430
25431 2007-01-16 Janis Johnson <janis187@us.ibm.com>
25432
25433 * config/dfp-bit.c (dfp_compare_op): Return separate value for NaN.
25434 (DFP_NE, DFP_LE, DFP_GE): Return false for NaN.
25435
25436 2007-01-16 David Edelsohn <edelsohn@gnu.org>
25437
25438 * config/rs6000/darwin-ldouble.c: Build file for SOFT_FLOAT.
25439 (strong_alias): Define.
25440 (__gcc_qmul): Provide non-FMA for soft-float.
25441 (__gcc_qdiv): Same.
25442 (__gcc_qneg): New.
25443 (__gcc_qeq): New.
25444 (__gcc_qle): New.
25445 (__gcc_qge): New.
25446 (__gcc_qunord): New.
25447 (__gcc_stoq): New.
25448 (__gcc_dtoq): New.
25449 (__gcc_qtos): New.
25450 (__gcc_qtod): New.
25451 (__gcc_qtoi): New.
25452 (__gcc_qtou): New.
25453 (__gcc_itoq): New.
25454 (__gcc_utoq): New.
25455 (fmsub): New.
25456 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Initialize
25457 soft-float functions.
25458 * config/rs6000/libgcc-ppc-glibc.ver: Version soft-float symbols.
25459 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Do not warn
25460 about long double soft float.
25461
25462 2007-01-16 Dorit Nuzman <dorit@il.ibm.com>
25463 Tehila Meyzels <tehila@il.ibm.com>
25464
25465 * tree-vectorizer.h (is_pattern_stmt_p): New.
25466 * tree-vect-analyze.c (vect_determine_vectorization_factor): Fix
25467 formatting (tabs instead of spaces). Cleanup and clarify setting
25468 of STMT_VINFO_VECTYPE. Call is_pattern_stmt_p.
25469 * tree-vect-transform.c (vect_get_vec_def_for_operand): Fix typo.
25470 (vectorizable_type_demotion): Check that types are integral.
25471 (vectorizable_type_promotion): Likewise.
25472 (vectorizable_store): Fix typo. Eliminate new-line at end of
25473 comments.
25474
25475 2007-01-16 Jan Hubicka <jh@suse.cz>
25476
25477 * tree-ssanames.c (release_dead_ssa_names): Remove invalidated
25478 cgraph edges too.
25479
25480 2007-01-15 Eric Christopher <echristo@apple.com>
25481
25482 * ifcvt.c: Include vec.h, vecprim.h.
25483 (check_cond_move_block): New argument regs.
25484 Reorganize. Add registers used to regs.
25485 (cond_move_process_if_block): Use regs set above as
25486 loop bounds.
25487
25488 2007-01-15 Eric Christopher <echristo@apple.com>
25489
25490 * config/darwin.h: Update copyright.
25491 (TARGET_OPTION_TRANSLATE_TABLE): Add umbrella.
25492 (LINK_COMMAND_SPEC): Add -u.
25493 (LINK_SPEC): Fix umbrella for above.
25494
25495 2007-01-15 Joseph S. Myers <joseph@codesourcery.com>
25496
25497 * config/soft-fp/op-common.h, config/soft-fp/op-4.h: Update from
25498 glibc CVS.
25499
25500 2007-01-15 Tom Tromey <tromey@redhat.com>
25501
25502 * doc/sourcebuild.texi (libgcj Tests): Don't mention jacks.
25503 * doc/install.texi (Testing): Don't mention jacks.
25504 (Configuration): Document --enable-java-maintainer-mode. Move
25505 --with-java-home to libgcj-specific section. Document
25506 --with-ecj-jar.
25507 (Prerequisites): Mention --enable-java-maintainer-mode, ecj1.
25508
25509 2007-01-15 Jan Hubicka <jh@suse.cz>
25510
25511 * tree-ssa-dce.c (DCE_TODOs): New.
25512 (propagate_necessity): Return if something changed.
25513 (eliminate_unnecessary_stmts): Likewise.
25514 (perform_tree_ssa_dce): Return TODO flags when needed.
25515 (pass_dce, pass_dce_loop, pass_cd_dce): Remove TODO flags.
25516
25517 2007-01-15 Uros Bizjak <ubizjak@gmail.com>
25518
25519 * config/i386/i386.md (fyl2xxf3_i387): Rename from fyl2x_xf3.
25520 (fyl2x_extend<mode>xf3_i387): New insn pattern.
25521 (log<mode>2): Rename from logsf2 and logdf2 and macroize insn
25522 patterns using X87MODEF12 mode macro. Extend operand 1
25523 to XFmode. Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
25524 (log10<mode>2): Ditto.
25525 (log2<mode>2): Ditto.
25526 (log1p<mode>2): Ditto.
25527 (logb<mode>2): Ditto.
25528 (fyl2xp1xf3_i387): Rename from fyl2xp1_xf3.
25529 (fyl2xp1_extend<mode>xf3_i387): New insn pattern.
25530 (*fxtractxf3_i387): Rename from *fxtractxf3.
25531 (fxtract_extend<mode>xf3_i387): New insn pattern.
25532 (ilogbsi2): Use match_dup 3, not match_operand:XF 3.
25533 * config/i386/i386.c (ix86_emit_i387_log1p): Use gen_fyl2xp1xf3_i387()
25534 and gen_fyl2xxf3_i387().
25535
25536 2007-01-14 Zdenek Dvorak <dvorakz@suse.cz>
25537
25538 * loop-unswitch.c (unswitch_loop): Do not call fix_loop_placement.
25539 * cfgloopmanip.c (fix_loop_placement): Made static. Use
25540 get_loop_exit_edges. Changed return type to bool.
25541 * cfgloop.h (fix_loop_placement): Declaration removed.
25542
25543 2007-01-14 Dorit Nuzman <dorit@il.ibm.com>
25544
25545 * param.h (MIN_VECT_LOOP_BOUND): New.
25546 * params.def (MIN_VECT_LOOP_BOUND): New.
25547 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Takes another
25548 argument - minimum threshold for number of iterations.
25549 * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge): Add another
25550 argument to declaration.
25551 * tree-vect-analyze.c (vect_analyze_operations): Check value of
25552 MIN_VECT_LOOP_BOUND.
25553 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Call
25554 slpeel_tree_peel_loop_to_edge with additional argument.
25555 (vect_do_peeling_for_alignment): Likewise.
25556 * doc/invoke.texi (min-vect-loop-bound): Document new param option.
25557
25558 2007-01-14 Uros Bizjak <ubizjak@gmail.com>
25559
25560 PR target/30413
25561 * config/i386/i386.c (print_operand) ['z']: Output 'b' for
25562 operands of size 1.
25563
25564 2007-01-14 Jan Hubicka <jh@suse.cz>
25565
25566 * tree-dfa.c (remove_referenced_var): New function.
25567 * tree-ssa-live.c (remove_unused_locals): Walk referenced vars and
25568 prune referenced vars list too.
25569 * tree-flow.h (remove_referenced_var): Declare.
25570
25571 2007-01-14 Jan Hubicka <jh@suse.cz>
25572
25573 * tree-eh.c (add_stmt_to_eh_region_fn): Do not add call_exprs
25574 separately.
25575 (remove_stmt_from_eh_region_fn): Do not remove call_exprs.
25576 (verify_eh_throw_stmt_node, verify_eh_throw_table_statements): Kill.
25577 * except.h (verify_eh_throw_table_statements): Kill prototype.
25578 * cfgexpand.c (expand_gimple_basic_block): Propagate Eh regions
25579 into call exrepssions.
25580 * tree-optimize.c (execute_free_cfg_annotatiosn): Do not call
25581 eh trhow verifier.
25582 * tree-cfg.c: Include pointer-set.h.
25583 (verify_node_sharing): Work on pointer set.
25584 (verify_eh_throw_stmt_node): New.
25585 (verify_stmts): Use pointers sets, verify throw_stmt.
25586
25587 2007-01-13 Zdenek Dvorak <dvorakz@suse.cz>
25588
25589 * ipa-reference.c (analyze_function): Consider also addresses taken
25590 in phi nodes.
25591
25592 2007-01-12 Roger Sayle <roger@eyesopen.com>
25593
25594 * c-typeck.c (null_pointer_constant_p): Replace use of
25595 TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
25596 (build_c_cast): Likewise.
25597
25598 2007-01-12 Roger Sayle <roger@eyesopen.com>
25599
25600 * tree.h (force_fit_type_double): Remove unused final argument.
25601 * c-common.c (constant_expression_warning): Replace use of
25602 TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
25603 (convert_and_check): Likewise.
25604 (shorten_compare): Update call to force_fit_type_double.
25605 (c_common_truthvalue_conversion) <INTEGER_CST>: Use integer_zerop.
25606 * convert.c (convert_to_pointer): Update call to
25607 force_fit_type_double.
25608 * fold-const.c (force_fit_type_double): Remove overflowed_const
25609 argument.
25610 (int_const_binop, fold_convert_const_int_from_int,
25611 fold_convert_const_int_from_real, fold_div_compare,
25612 fold_sign_changed_comparison, fold_unary, fold_negate_const,
25613 fold_abs_const, fold_not_const): Remove the final argument from
25614 calls to force_fit_type_double.
25615
25616 2007-01-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
25617
25618 * configure.ac: Set insn to "nop" for spu-*-* also.
25619 * configure: Regenerate.
25620
25621 2007-01-12 Olga Golovanevsky <olga@il.ibm.com>
25622
25623 * builtins.def : Add BUILT_IN_FREE.
25624
25625 2007-01-12 Jan Hubicka <jh@suse.cz>
25626
25627 PR tree-optimization/30443
25628 * tree-inline.c (tree_function_versioning): Do not optimize when
25629 cloning for inlining.
25630
25631 2007-01-12 Zdenek Dvorak <dvorakz@suse.cz>
25632
25633 * doc/loop.texi: Document recording of loop exits.
25634 * cfgloopmanip.c (loopify, duplicate_loop): Use alloc_loop.
25635 (update_single_exits_after_duplication,
25636 update_single_exit_for_duplicated_loop,
25637 update_single_exit_for_duplicated_loops): Removed.
25638 (duplicate_loop_to_header_edge): Do not call
25639 update_single_exits_after_duplication and
25640 update_single_exit_for_duplicated_loops.
25641 (loop_version): Do not update single_exit information.
25642 (fix_loop_structure): Use record_loop_exits instead of
25643 mark_single_exit_loops.
25644 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update
25645 the lists of loop exits.
25646 * cfghooks.c (redirect_edge_and_branch, redirect_edge_and_branch_force,
25647 split_edge, merge_blocks): Update the lists of loop exits.
25648 * modulo-sched.c (sms_schedule): Pass LOOPS_HAVE_RECORDED_EXITS to
25649 loop_optimizer_init.
25650 * loop-init.c (loop_optimizer_init): Call record_loop_exits instead
25651 of mark_single_exit_loops.
25652 (loop_optimizer_finalize): Call release_recorded_exits.
25653 * tree-ssa-loop.c (tree_loop_optimizer_init): Pass
25654 LOOPS_HAVE_RECORDED_EXITS to loop_optimizer_init.
25655 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg): Do not
25656 update single exit information.
25657 * lambda-code.c (perfect_nestify): Ditto.
25658 * cfgloop.c (flow_loop_free): Destroy the list of exits of the loop.
25659 (mark_single_exit_loops): Removed.
25660 (alloc_loop, loop_exit_hash, loop_exit_eq, loop_exit_free,
25661 get_exit_descriptions, rescan_loop_exit, record_loop_exits,
25662 dump_recorded_exit, dump_recorded_exits, release_recorded_exits): New
25663 functions.
25664 (get_loop_exit_edges, single_exit): Use recorded exit lists.
25665 (add_bb_to_loop, remove_bb_from_loops): Update the lists of loop exits.
25666 (verify_loop_structure): Verify consistency of the exit lists.
25667 (flow_loops_find): Use alloc_loop. Initialize exits hash.
25668 (set_single_exit): Removed.
25669 * cfgloop.h (struct loop_exit): New function.
25670 (struct loop): single_exit_ field replaced by exits field.
25671 (LOOPS_HAVE_MARKED_SINGLE_EXITS): Replaced by
25672 LOOPS_HAVE_RECORDED_EXITS.
25673 (struct loops): Added exits hash.
25674 (mark_single_exit_loops, set_single_exit): Declaration removed.
25675 (release_recorded_exits, record_loop_exits, rescan_loop_exit): Declare.
25676
25677 2007-01-12 Richard Sandiford <richard@codesourcery.com>
25678
25679 * doc/invoke.texi: Avoid use of @headitem.
25680
25681 2007-01-12 Richard Sandiford <richard@codesourcery.com>
25682
25683 * cse.c (cse_insn): Move HAVE_CC0 code after declarations.
25684
25685 2007-01-12 Richard Sandiford <richard@codesourcery.com>
25686
25687 * doc/install.texi: Fix m68k-*-* anchor and add m68k-*-* to the
25688 list of targets.
25689
25690 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
25691 Richard Sandiford <richard@codesourcery.com>
25692
25693 * doc/invoke.texi: Document -mno-bitfield, -mno-rtd and -mno-short.
25694 * config/m68k/m68k.opt: Resort options.
25695 (mbitfield, mrtd, mshort): Remove RejectNegative properties.
25696
25697 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
25698 Richard Sandiford <richard@codesourcery.com>
25699
25700 * doc/invoke.texi: Document the macros that are defined by
25701 m68k's -mtune and -mhard-float options.
25702 * config/m68k/m68k-protos.h (m68k_cpp_cpu_ident) Declare.
25703 (m68k_cpp_cpu_family): Likewise.
25704 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add a full set
25705 of __ucfv*__ macros. Define __mcffpu__ if generating code for
25706 ColdFire FPUs. Define __mcf_cpu_* and __mcf_family_* macros.
25707 * config/m68k/m68k.c (m68k_cpp_cpu_ident): New function.
25708 (m68k_cpp_cpu_family): Likewise.
25709
25710 2007-01-12 Richard Sandiford <richard@codesourcery.com>
25711
25712 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Treat all mc68*
25713 macros besides mc68000 as tuning macros. Use a switch statement
25714 to set them and mcpu32.
25715
25716 2007-01-12 Julian Brown <julian@codesourcery.com>
25717
25718 * config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY.
25719 (TARGET_68040_ONLY): Rename to...
25720 (TARGET_68040): ...this.
25721 * config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY.
25722 * config/m68k/m68k.md: Likewise.
25723
25724 2007-01-12 Julian Brown <julian@codesourcery.com>
25725 Nathan Sidwell <nathan@codesourcery.com>
25726 Richard Sandiford <richard@codesourcery.com>
25727
25728 * config.gcc (m680[012]0-*-*, m68k*-*-*): Set m68k_cpu_ident to
25729 the -mcpu= argument associated with the --with-cpu setting.
25730 Define M68K_DEFAULT_TUNE to the default -mtune= option,
25731 if different from the one implied by the -mcpu setting.
25732 Accept --with-cpu=FOO if FOO is listed in m68k-devices.def,
25733 using mcpu=FOO as the default CPU option. Set target_cpu_default2.
25734 * doc/invoke.texi: Mention ColdFire in the introduction to the
25735 m68k options. Document the new -march, -mcpu, -mtune, -mdiv,
25736 -mno-div and -mhard-float options. Make -m68881 a synonym for
25737 -mhard-float. Document the previously-undocumented -m5206e,
25738 -m528x, -m5307 and -m5407 options. Tweak the existing option
25739 documentation for consistency.
25740 * doc/install.texi: Mention new --with-cpu arguments.
25741 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Only use the
25742 default CPU if neither -mcpu nor -march are specified.
25743 (ASM_CPU_SPEC): Pass down -mcpu and -march options.
25744 (TARGET_CPU_CPP_BUILTINS): Set __mcfisa*__ macros from
25745 TARGET_ISA*. Set the legacy __mcf*__ cpu macros in the same way,
25746 using m68k_tune to decide between families that implement the
25747 same ISA. Use m68k_tune to set __mcfv4e__.
25748 (FL_BITFIELD, FL_68881, FL_COLDFIRE, FL_CF_HWDIV, FL_CF_MAC)
25749 (FL_CF_EMAC, FL_CF_EMAC_B, FL_CF_USP, FL_CF_FPU, FL_ISA_68000)
25750 (FL_ISA_68010, FL_ISA_68020, FL_ISA_68040, FL_ISA_A, FL_ISA_B)
25751 (FL_ISA_C, FL_ISA_MMU): New macros.
25752 (MASK_COLDFIRE): Delete.
25753 (TARGET_68010, TARGET_68020, TARGET_68040_ONLY, TARGET_COLDFIRE)
25754 (TARGET_ISAB): Redefine in terms of m68k_cpu_flags.
25755 (TARGET_68881, TARGET_COLDFIRE_FPU): Redefine in terms of m68k_fpu.
25756 (TARGET_HARD_FLOAT): Do not define here.
25757 (TARGET_ISAAPLUS, TARGET_ISAC): New macros.
25758 (TUNE_68000): New macro.
25759 (TUNE_68000_10): Redefine in terms of TUNE_68000 and TUNE_68010.
25760 (TUNE_68010, TUNE_68030, TUNE_68040, TUNE_68060, TUNE_CPU32)
25761 (TUNE_CFV2): Redefine in terms of m68k_tune.
25762 (uarch_type, target_device, fpu_type): New enums.
25763 (m68k_cpu, m68k_tune, m68k_fpu, m68k_cpu_flags): Declare.
25764 * config/m68k/m68k.c (TARGET_DEFAULT): Remove MASK_68881.
25765 (FL_FOR_isa_00, FL_FOR_isa_10, FL_FOR_isa_20, FL_FOR_isa_40)
25766 (FL_FOR_isa_cpu32, FL_FOR_isa_a, FL_FOR_isa_aplus, FL_FOR_isa_b)
25767 (FL_FOR_isa_c): New macros.
25768 (m68k_isa): New enum.
25769 (m68k_target_selection): New structure.
25770 (all_devices, all_isas, all_microarchs): New tables.
25771 (m68k_cpu_entry, m68k_arch_entry, m68k_tune_entry, m68k_cpu)
25772 (m68k_tune, m68k_fpu, m68k_cpu_flags): New variables.
25773 (MASK_ALL_CPU_BITS): Delete.
25774 (m68k_find_selection): New function.
25775 (m68k_handle_option): Handle -mcpu=, -march= and -mtune=.
25776 Map the legacy target options to a combination of the new ones.
25777 (override_options): Set m68k_cpu, m68k_tune, m68k_fpu and
25778 m68k_cpu_flags. Handle M68K_DEFAULT_TUNE. Use m68k_cpu_flags
25779 to derive default MASK_BITFIELD, MASK_CF_HWDIV and MASK_HARD_FLOAT
25780 settings.
25781 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407, mcfv4e)
25782 (m68010, m68020, m68020-40, m68020-60, m68030, m68040): Remove Mask
25783 properties.
25784 (m68881, msoft-float): Change mask from 68881 to HARD_FLOAT.
25785 (march=, mcpu=, mdiv, mhard-float, mtune=): New options.
25786 * config/m68k/m68k-devices.def: New file.
25787
25788 2007-01-12 Richard Sandiford <richard@codesourcery.com>
25789 Nathan Sidwell <nathan@codesourcery.com>
25790
25791 * config/m68k/m68k.h (ASM_CPU_SPEC, ASM_SPEC, EXTRA_SPECS)
25792 (SUBTARGET_EXTRA_SPECS): New macros.
25793 * config/m68k/linux.h (ASM_SPEC): Remove CPU flags;
25794 use %(asm_cpu_spec) instead.
25795 * config/m68k/m68k-none.h (ASM_SPEC): Likewise.
25796 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
25797 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
25798 (EXTRA_SPECS): Rename to...
25799 (SUBTARGET_EXTRA_SPECS): ...this.
25800
25801 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
25802 Richard Sandiford <richard@codesourcery.com>
25803 Julian Brown <julian@codesourcery.com>
25804
25805 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
25806 (m68k-*-uclinux*, m68k-*-linux*, m68k-*-rtems*): Set default_m68k_cpu
25807 to the configuration's default CPU.
25808 (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*): Likewise.
25809 Remove default masks.
25810 (m680[012]0-*-*): Set the default with_cpu to the first part of
25811 the target name.
25812 (m68k*-*-*): Set the default with_cpu to m$default_m68k_cpu.
25813 (m68k*-*-linux): Extend the --with-cpu handling to...
25814 (m680[012]0-*-*, m68k*-*-*): ...these configurations. Allow m68000
25815 and m68010. Don't set target_cpu_default2.
25816 * doc/install.texi: Document --with-cpu for m68k.
25817 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Define.
25818 * config/m68k/m68k-none.h (TARGET_CPU_DEFAULT, M68K_CPU_m68k)
25819 (M68K_CPU_m68000, M68K_CPU_m68010, M68K_CPU_m68020, M68K_CPU_m68030)
25820 (M68K_CPU_m68040, M68K_CPU_m68302, M68K_CPU_m68332, TARGET_DEFAULT)
25821 (ASM_CPU_DEFAULT_SPEC, CC1_CPU_DEFAULT_SPEC): Delete.
25822 (ASM_SPEC): Remove use of %(asm_cpu_default).
25823 (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS, MULTILIB_DEFAULTS): Delete.
25824 * config/m68k/linux.h (TARGET_DEFAULT): Delete.
25825 (CPP_SPEC): Merge definitions. Do not handle __HAVE_68881__ here.
25826 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
25827 __HAVE_FPU__ if TARGET_HARD_FLOAT.
25828 (TARGET_DEFAULT): Delete.
25829 (EXTRA_SPECS): Delete cpp_cpu_default_spec, cpp_cpu_spec,
25830 cpp_fpu_spec, asm_default_spec and netbsd_cpp_spec.
25831 (CPP_CPU_SPEC): Delete.
25832 (TARGET_VERSION): Merge definitions, using TARGET_68010 to pick
25833 the appropriate string.
25834 (CPP_CPU_DEFAULT_SPEC, ASM_DEFAULT_SPEC, CPP_FPU_SPEC): Delete.
25835 (CPP_SPEC): Define to NETBSD_CPP_SPEC.
25836 (ASM_SPEC): Don't use %(asm_default_spec).
25837 * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
25838 TARGET_DEFAULT and add MASK_68881.
25839 * config/m68k/m68k.md: Remove mention of TARGET_DEFAULT from comments.
25840
25841 2007-01-12 Richard Sandiford <richard@codesourcery.com>
25842
25843 * config.gcc (m68010-*-netbsdelf*): Add MASK_68010.
25844 (m68k*-*-netbsdelf*, m68k*-*-openbsd*, m68k*-linux*): Add
25845 MASK_68010 alongside MASK_68020.
25846 * doc/invoke.texi: Document -m68010.
25847 * config/m68k/m68k.opt (m68010): New.
25848 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define mc68010
25849 if TUNE_68010.
25850 (TUNE_68010): New macro.
25851 * config/m68k/m68k-none.h (M68K_CPU_m68k, M68K_CPU_m68010)
25852 (M68K_CPU_m68020, M68K_CPU_m68030, M68K_CPU_m68040)
25853 (M68K_CPU_m68332): Add MASK_68010.
25854 * config/m68k/linux.h (TARGET_DEFAULT): Add MASK_68010 to
25855 fallback definition.
25856 * config/m68k/netbsd-elf.h (CPP_CPU_SPEC): Remove now-redundant
25857 defines.
25858 * config/m68k/m68k.c (MASK_ALL_CPU_BITS): Add MASK_68010.
25859 (m68k_handle_option): Handle OPT_m68010. Add MASK_68010
25860 to all entries that use MASK_68020.
25861 (output_move_simode_const, output_move_himode, output_move_qimode)
25862 (output_move_stricthi, output_move_strictqi): Use TARGET_68010
25863 instead of TARGET_68020 to select clr behavior. Remove comment
25864 about there being no TARGET_68010.
25865 * config/m68k/m68k.md: Likewise throughout.
25866
25867 2007-01-12 Julian Brown <julian@codesourcery.com>
25868
25869 * config/m68k/m68k.h (TARGET_ISAB): New macro.
25870 * config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
25871 * config/m68k/m68k.md: Likewise.
25872
25873 2007-01-12 Julian Brown <julian@codesourcery.com>
25874
25875 * config/m68k/m68k.h (LEGITIMATE_INDEX_P, LEGITIMIZE_ADDRESS): Use
25876 TARGET_COLDFIRE_FPU instead of TARGET_CFV4E.
25877
25878 2007-01-12 Julian Brown <julian@codesourcery.com>
25879
25880 * config/m68k/m68k.h (TUNE_68040_60): New macro.
25881 * config/m68k/m68k.c (standard_68881_constant_p): Use it.
25882 * config/m68k/m68k.md: Likewise.
25883
25884 2007-01-12 Julian Brown <julian@codesourcery.com>
25885 Richard Sandiford <richard@codesourcery.com>
25886
25887 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Use TUNE_68030
25888 instead of TARGET_68030, TUNE_68040 instead of TARGET_68040,
25889 TUNE_68060 instead of TARGET_68060 and TUNE_CPU32 instead of
25890 TARGET_CPU32.
25891 (TARGET_CPU32): Rename to...
25892 (TUNE_CPU32): ...this.
25893 (TUNE_68000_10, TUNE_68030, TUNE_68040, TUNE_68060)
25894 (TUNE_CFV2): New macros.
25895 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Simplify;
25896 remove conditions that are implied by TARGET_68020.
25897 * config/m68k/m68k.c (m68k_output_function_prologue): Use TUNE_68040
25898 instead of TARGET_68040 and TUNE_CPU32 instead of TARGET_CPU32.
25899 (m68k_output_function_epilogue): Likewise.
25900 (m68k_rtx_costs): Likewise. Use TUNE_68060 instead of TARGET_68060
25901 and TUNE_CFV2 instead of TARGET_5200. Use TUNE_68000_10 instead of
25902 "!TARGET_68020 && !TARGET_COLDFIRE" to choose between 68000 and
25903 non-68000 timings. Refactor multiplication and division costs.
25904 (output_addsi3): Use TUNE_68040 instead of TARGET_68040 and
25905 TUNE_CPU32 instead of TARGET_CPU32.
25906 (standard_68881_constant_p): Use TUNE_68040 instead of TARGET_68040
25907 and TUNE_68060 instead of TARGET_68060.
25908 * config/m68k/m68k.md: Use TUNE_68040 instead of TARGET_68040,
25909 TUNE_68060 instead of TARGET_68060, and TUNE_CPU32 instead of
25910 TARGET_CPU32.
25911 (movsi_const0): Use TUNE_68000_10 rather than "!TARGET_68020
25912 && !TARGET_COLDFIRE" to choose between moveq and clr.
25913 Likewise in the unnamed movsf pattern.
25914 (ashlsi_17_24, lshrsi_17_24): Guard with TUNE_68000_10 rather than
25915 "!TARGET_68020 && !TARGET_COLDFIRE". Likewise the unnamed
25916 ashiftrt pattern.
25917
25918 2007-01-12 Richard Sandiford <richard@codesourcery.com>
25919
25920 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Increase amount
25921 of tabbing before backslashes.
25922
25923 2007-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25924
25925 * pa-linux.h (ASM_OUTPUT_INTERNAL_LABEL): Undefine.
25926 * pa.h (ASM_OUTPUT_LABEL): Output colon when using GAS.
25927 (ASM_OUTPUT_INTERNAL_LABEL): Define.
25928
25929 2007-01-11 Zdenek Dvorak <dvorakz@suse.cz>
25930
25931 * tree-ssa-loop-ivopts.c (extract_cond_operands): Split from
25932 find_interesting_uses_cond.
25933 (find_interesting_uses_cond): Use extract_cond_operands.
25934 (rewrite_use_compare): Use extract_cond_operands and
25935 force_gimple_operand_bsi. Do not call update_stmt.
25936 (determine_use_iv_cost_condition): Use extract_cond_operands.
25937 Return cheaper of using original bound and changing the exit bound.
25938
25939 2007-01-11 Zdenek Dvorak <dvorakz@suse.cz>
25940
25941 PR tree-optimization/29516
25942 * tree-ssa-address.c (tree_mem_ref_addr, add_to_parts,
25943 most_expensive_mult_to_index, addr_to_parts,
25944 create_mem_ref, maybe_fold_tmr): Make the type of
25945 fields of TARGET_MEM_REF sizetype.
25946 (move_fixed_address_to_symbol, move_pointer_to_base):
25947 New functions.
25948 * tree.def (TARGET_MEM_REF): Add comment on types of
25949 the operands.
25950
25951 2007-01-11 Joseph Myers <joseph@codesourcery.com>
25952
25953 * c-common.c (vector_types_convertible_p): Treat opaque types as
25954 always convertible if they have the same size, but not otherwise.
25955
25956 2007-01-11 Steven Bosscher <steven@gcc.gnu.org>
25957
25958 * ifcvt.c (struct noce_if_info): Add comments to the fields.
25959 Remove the b_unconditional field.
25960 (noce_try_sign_mask): Do not look at b_unconditional.
25961 (noce_process_if_block): Do not use merge_if_blocks. Update
25962 the CFG here. Do not set b_unconditional.
25963 (cond_move_process_if_block): Likewise.
25964 (find_cond_trap): Likewise.
25965 (check_cond_move_block): Require simple jump insns at the end
25966 of the basic block.
25967
25968 2007-01-11 Jan Hubicka <jh@suse.cz>
25969
25970 PR tree-optimization/1046
25971 * tree-tailcall.c (suitable_for_tail_call_opt_p): Use TREE_ADDRESSABLE
25972 when alias info is not ready.
25973 (pass_tail_recursion): Do not require aliasing.
25974 * tree-ssa-copyrename.c (pass_rename_ssa_cop): Likewise.
25975 * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Likewise.
25976 * tree-ssa-copy.c (pass_copy_prop): Likewise.
25977 * tree-ssa-forwprop.c (pass_forwprop): Likewise.
25978 * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Likewise.
25979 * passes.c (init_optimization_passes): Execute rename_ssa_copies,
25980 ccp, forwprop, copy_prop, merge_phi, copy_prop, dce and tail recursion
25981 before inlining.
25982 * tree-ssa-operands.c (add_virtual_operand, get_indirect_ref_operand):
25983 When aliasing is not build, mark statement as volatile.
25984
25985 2007-01-11 Tom Tromey <tromey@redhat.com>
25986
25987 PR preprocessor/15185, PR preprocessor/20989:
25988 * doc/cppopts.texi <-MT>: Update description of algorithm for
25989 computing default target.
25990 <-M, -MD>: Reword "basename" text.
25991
25992 2007-01-11 Roger Sayle <roger@eyesopen.com>
25993
25994 * builtins.c (expand_builtin_pow, expand_builtin_powi,
25995 fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_trunc,
25996 fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
25997 fold_builtin_int_int_roundingfn, fold_builtin_bitop,
25998 fold_builtin_bswap, real_constp, fold_builtin_pow,
25999 fold_builtin_powi, fold_builtin_signbit, fold_builtin_copysign,
26000 do_mpfr_arg1, do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Replace
26001 uses of the macro TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
26002 * convert.c (convert_to_pointer): Likewise.
26003 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
26004 * fold-const.c (force_fit_type, fold_negate_expr, int_const_binop,
26005 const_binop, fold_convert_const_int_from_int,
26006 fold_convert_const_int_from_real,
26007 fold_convert_const_real_from_real, sign_bit_p,
26008 optimize_minmax_comparison, extract_muldiv_1, fold_div_compare,
26009 fold_sign_changed_comparison, fold_unary, fold_comparison,
26010 fold_binary, multiple_of_p, tree_Expr_non_zero_p,
26011 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
26012 * print-tree.c (print_node_brief, print_node): Likewise.
26013 * stor-layout.c (place_field, layout_type): Likewise.
26014 * tree-chrec.c (keep_cast): Likewise.
26015 * tree.c (build_vector, build_real, build_real_from_int_cst,
26016 build_complex): Likewise.
26017
26018 2007-01-11 Roger Sayle <roger@eyesopen.com>
26019
26020 * tree.h (TREE_CONSTANT_OVERFLOW): Obsolete. For the time being,
26021 treat TREE_CONSTANT_OVERFLOW as a synonym of TREE_OVERFLOW.
26022
26023 2007-01-11 Paolo Bonzini <bonzini@gnu.org>
26024
26025 * configure.ac (strict1_warn): Rename to strict_warn.
26026 (WERROR, --enable-werror, symlink hacks, stage1_cflags,
26027 cc_set_by_configure, quoted_cc_set_by_configure,
26028 stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
26029 all_boot_languages, all_stagestuff): Remove.
26030 (target_list): Remove bootstrap targets.
26031 * Makefile.in (quickstrap): Unconditionally make a synonym of all.
26032 (BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
26033 REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
26034 SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
26035 VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
26036 STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
26037 stage1_copy, stage2_build, stage2_copy, stageprofile_build,
26038 stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
26039 stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
26040 bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
26041 bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
26042 unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
26043 restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
26044 cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
26045 *compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
26046 stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
26047 stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
26048 risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
26049 (ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
26050 (STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
26051 (mostlyclean): Adjust.
26052 (clean, distclean): Don't mention bootstrap stuff.
26053 * configure: Regenerate.
26054 * ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
26055 java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
26056 treelang/config-lang.in (stagestuff): Remove.
26057 * doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
26058 stageprofile, stagefeedback, stagestuff): Remove mention.
26059
26060 2007-01-11 Nick Clifton <nickc@redhat.com>
26061
26062 * config/mcore/predicates.md (mcore_general_movesrc_operand):
26063 Accept CONSTs.
26064 (mcore_general_movdst_operand): Do not accept CONST_INTs.
26065 (mcore_arith_K_S_operand): Run the test for the S constraint not
26066 the test for the M constraint.
26067 (mcore_addsub_operand): Do not accept integer values that are
26068 larger than 32 bits.
26069 * config/mcore/mcore.md: Remove unused constraints from split.
26070 (andsi3): Use HOST_WIDE_INT instead of int to hold an INTVAL.
26071 (addsi3): Likewise.
26072 (allocate_stack): Likewise.
26073 * config/mcore/mcore.c (mcore_print_operand): Restrict output of P
26074 operands to 32 bits.
26075 (mcore_const_costs): Use HOST_WIDE_INT instead of int to hold an
26076 INTVAL.
26077 (mcore_and_cost, mcore_modify_comparison, const_ok_for_mcore,
26078 mcore_const_ok_for_inline, mcore_const_trick_uses_not,
26079 try_constant_tricks, mcore_num_ones, mcore_num_zeros,
26080 mcore_output_bclri, mcore_output_andn, output_inline_const,
26081 mcore_output_move, mcore_output_movedouble): Likewise.
26082 (mcore_output_cmov): Use CONST_OK_FOR_M and CONST_OK_FOR_N.
26083 (output_inline_const): Likewise.
26084 (output_inline_const): Fix format strings used in sprintf
26085 statements.
26086 * config/mcore/mcore-protos.h: Update prototypes for changed
26087 functions in mcore.c.
26088 * config/mcore/mcore.h (CONST_OK_FOR_I): Cast values to
26089 HOST_WIDE_INT and not int.
26090 (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M,
26091 CONST_OK_FOR_N): Likewise.
26092 (LEGITIMATE_CONSTANT_P): Also check CONSTANT_P.
26093 (GO_IF_LEGITIMATE_INDEX): Use HOST_WIDE_INT instead of int to hold
26094 an INTVAL.
26095
26096 2007-01-10 Jan Hubicka <jh@suse.cz>
26097
26098 * tree-vrp.c (remove_range_assertions): Release defs.
26099 * tree-ssa-loop-ivopts.c (rmeove_statement): Likewise.
26100 * tree-ssa-dom.c (remove_stmt_or_phi): Likewise.
26101
26102 2007-01-10 Paul Brook <paul@codesourcery.com>
26103
26104 * config/arm/arm.c (arm_rtx_costs_1): Handle mutiply-subtract.
26105 * config/arm/arm.md (mulsi3subsi): New insn.
26106
26107 2007-01-10 Zdenek Dvorak <dvorakz@suse.cz>
26108
26109 * tree-ssa-loop-manip.c (tree_unroll_loop): Make it a wrapper over ...
26110 (tree_transform_and_unroll_loop): New.
26111 * tree-flow.h (transform_callback, tree_transform_and_unroll_loop):
26112 Declare.
26113
26114 2007-01-10 Robert Kennedy <jimbob@google.com>
26115
26116 * fold-const.c (fold_comparison): Fold comparisons like (x *
26117 1000 < 0) to (x < 0).
26118
26119 2007-01-10 Ian Lance Taylor <iant@google.com>
26120
26121 * tree-pretty-print.c (dump_generic_node): Print parentheses when
26122 operands have the same priority.
26123
26124 2007-01-10 Tom Tromey <tromey@redhat.com>
26125
26126 * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
26127 (fold_binary): Likewise.
26128 * langhooks.c (lhd_can_use_bit_fields_p): Removed.
26129 * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
26130 (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
26131 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
26132 * langhooks.h (struct lang_hooks): Removed field
26133 'can_use_bit_fields_p'.
26134
26135 2007-01-10 Ralf Corsépius <ralf.corsepius@rtems.org>
26136
26137 * config/bfin/t-bfin, config/bfin/t-bfin-elf: Remove GCC_CFLAGS.
26138
26139 2007-01-10 Razya Ladelsky <razya@il.ibm.com>
26140
26141 * function.c (get_last_funcdef_no): New function.
26142 * function.h (get_last_funcdef_no): Declare.
26143 * tree-inline.c (initialize_cfun): Add initialization.
26144 (tree_function_versioning): Cleanup.
26145
26146 2007-01-10 Jan Hubicka <jh@suse.cz>
26147
26148 * tree-inline.c (setup_one_parameter): Do not propagate into abnormal
26149 PHIs.
26150
26151 2007-01-10 Sa Liu <saliu@de.ibm.com>
26152 Ben Elliston <bje@au.ibm.com>
26153
26154 * spu.h (STACK_SAVE_AREA): Use VOIDmode for SAVE_FUNCTION, SImode
26155 for SAVE_NONLOCAL and Pmode for any other save level.
26156 * spu-protos.h (spu_restore_stack_block): Declare.
26157 * spu.md (save_stack_block): Remove.
26158 (restore_stack_block): Call spu_restore_stack_block.
26159 * spu.c (spu_restore_stack_block): New function.
26160 (spu_expand_epilogue): Remove old comment.
26161
26162 2007-01-09 Zdenek Dvorak <dvorakz@suse.cz>
26163
26164 PR tree-optimization/30322
26165 * tree-ssa-loop-ivopts.c (fold_affine_expr, iv_value): Removed.
26166 (cand_value_at): Return the value as aff_tree.
26167 (may_eliminate_iv): Convert the bound from aff_tree to tree.
26168 * tree-affine.c (aff_combination_add_cst, aff_combination_add_product,
26169 aff_combination_mult): New functions.
26170 (aff_combination_add): Use aff_combination_add_cst.
26171 (aff_combination_convert): Allow conversions to a wider type.
26172 (tree_to_aff_combination): Handle BIT_NOT_EXPR.
26173 * tree-affine.h (aff_combination_mult): Declare.
26174
26175 2007-01-09 Carlos O'Donell <carlos@codesourcery.com>
26176
26177 * doc/tm.texi: Update documentation to reflect reality of exec
26178 and start file search behaviours. Update copyright year.
26179 * doc/invoke.texi: Explain how GCC_EXEC_PREFIX is used to find
26180 header file directories.
26181
26182 2007-01-09 Uros Bizjak <ubizjak@gmail.com>
26183
26184 * config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
26185 (*cosxf2): Rename to cosxf2_i387.
26186 (*sindf2, *sinsf2): Extend operand 1 to XFmode. Macroize patterns
26187 using X87MODEF12 mode macro. Rename patterns to
26188 *sin_extend<mode>xf2_i387. Use SSE_FLOAT_MODE_P to disable patterns
26189 for SSE math.
26190 (*cosdf2, *cossf2): Ditto.
26191 (sincosdf3, sincossf3): Ditto. Rewrite corresponding splitters
26192 to match extended input operands.
26193 (sincos<mode>3): New expander.
26194 (*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
26195 insn patterns and corresponding splitters.
26196
26197 2007-01-09 Kaz Kojima <kkojima@gcc.gnu.org>
26198
26199 * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Delete.
26200 (SHLIB_MAPFILES, SHLIB_LINK, SHLIB_INSTALL): Likewise.
26201
26202 2007-01-09 Nicolas Pitre <nico@cam.org>
26203
26204 PR target/30173
26205 * arm/ieee754-df.S (Lad_s): Also test the low word of X for zero.
26206
26207 2007-01-08 Geoffrey Keating <geoffk@apple.com>
26208
26209 * target.h (struct gcc_target): New field library_rtti_comdat.
26210 * target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
26211 (TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
26212 * doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
26213 * config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
26214
26215 2007-01-08 Geoffrey Keating <geoffk@apple.com>
26216
26217 * doc/invoke.texi (Optimize Options): Correct description of -O0.
26218
26219 2007-01-08 Richard Guenther <rguenther@suse.de>
26220
26221 * tree.h (force_fit_type_double): Export.
26222 (force_fit_type): Remove.
26223 * fold-const.c (force_fit_type_double): New function.
26224 (force_fit_type): Remove.
26225 (int_const_binop): Use it.
26226 (fold_convert_const_int_from_int): Likewise.
26227 (fold_convert_const_int_from_real): Likewise.
26228 (fold_div_compare): Likewise.
26229 (fold_sign_changed_comparison): Likewise.
26230 (fold_unary): Likewise.
26231 (fold_negate_const): Likewise.
26232 (fold_abs_const): Likewise.
26233 (fold_not_const): Likewise.
26234 * c-common.c (shorten_compare): Use force_fit_type_double.
26235 * convert.c (convert_to_pointer): Likewise.
26236
26237 2007-01-08 Richard Guenther <rguenther@suse.de>
26238
26239 * tree.h (build_int_cst_wide_type): Export.
26240 * tree.c (build_int_cst_wide_type): New function.
26241 (build_int_cst_wide): Fix comment.
26242 * builtins.c (fold_builtin_object_size): Use build_int_cst
26243 to build -1 or 0 of the correct type. Use fit_double_type
26244 to check for overflow.
26245 * fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
26246 to build the mask.
26247 (decode_field_reference): Likewise.
26248 (all_ones_mask_p): Likewise.
26249 (native_interpret_int): Use build_int_cst_wide_type.
26250 (fold_binary): Use build_int_cst_type to build an all-ones
26251 value.
26252 * stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
26253
26254 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
26255
26256 * config/pa/t-pa64 (libgcc_stub.a): Use $(T).
26257
26258 2007-01-09 Ben Elliston <bje@au.ibm.com>
26259
26260 * genautomata.c (STATS_OPTION): New option.
26261 (stats_flag): New flag.
26262 (gen_automata_option): Handle it.
26263 (initiate_automaton_gen): Ditto.
26264 (write_automata): Output statistics only if stats_flag is
26265 set. Likewise, output time statistics only if time_flag is set.
26266 * doc/md.texi (Processor pipeline description): Document new flag.
26267
26268 2007-01-08 Richard Guenther <rguenther@suse.de>
26269
26270 * builtins.c (fold_builtin_int_roundingfn): Use fit_double_type.
26271 * tree.c (build_int_cst_type): Likewise.
26272 (size_in_bytes): Don't call force_fit_type on the result.
26273 (int_fits_type_p): Use fit_double_type.
26274 * fold-const.c (fit_double_type): New function.
26275 (force_fit_type): Use it.
26276 * tree.h (fit_double_type): Export.
26277
26278 2007-01-08 Jan Hubicka <jh@suse.cz>
26279
26280 * tree-vectorizer.c (gate_increase_alignment): Fix return type.
26281 * ipa.c (function_and_variable_visibility): Fix return type.
26282
26283 2007-01-08 Richard Guenther <rguenther@suse.de>
26284
26285 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use type
26286 of offset to build the index.
26287 * tree-pretty-print.c (dump_generic_node): Don't build negated
26288 const just for printing.
26289 * c-pretty-print.c (pp_c_integer_constant): Likewise.
26290 * builtins.c (fold_builtin_int_roundingfn): Check if result
26291 fits the type by using force_fit_type and comparing the result.
26292 * predict.c (predict_loops): Use compare_tree_int for comparison.
26293 * tree.c (build_int_cst): Fall back to integer_type_node for
26294 NULL_TREE type.
26295 (build_int_cst_wide): Assert type is non-null.
26296
26297 2007-01-08 Roberto Costa <roberto.costa@st.com>
26298
26299 * tree-vrp.c (extract_range_from_cond_expr): New.
26300 (extract_range_from_expr): Handle COND_EXPR nodes used as expressions.
26301 * tree-ssa-ccp.c (get_maxval_strlen): Handle COND_EXPR nodes used
26302 as expressions.
26303 (fold_stmt): Bug fix, avoid infinite recursion when folding COND_EXPRs.
26304 * tree-ssa-forwprop.c (simplify_cond, forward_propagate_into_cond,
26305 tree_ssa_forward_propagate_single_use_vars): Handle COND_EXPR nodes
26306 used as expressions.
26307 * tree-object-size.c (cond_expr_object_size): New.
26308 (collect_object_sizes_for): Handle COND_EXPR nodes used as expressions.
26309
26310 2007-01-08 Jan Hubicka <jh@suse.cz>
26311
26312 * tree-ssa-forwprop.c (forward_propagate_into_cond,
26313 tree_ssa_forward_propagate_single_use_va): Release defs of propagated
26314 statement.
26315
26316 2007-01-08 Richard Guenther <rguenther@suse.de>
26317
26318 PR tree-optimization/23603
26319 * tree-vrp.c (set_value_range_to_truthvalue): New function.
26320 (extract_range_from_binary): Fall back to truthvalue instead of
26321 varying for TRUTH_*_EXPR.
26322 (extract_range_from_comparison): Fall back to truthvalue instead of
26323 varying.
26324 (vrp_visit_phi_node): Don't adjust new range bounds to +INF/-INF
26325 if all visited PHI values were constant.
26326
26327 2007-01-08 Jan Hubicka <jh@suse.cz>
26328
26329 * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
26330 (cgraph_analyze_function): break out from ...
26331 (cgraph_finalize_compilation_unit): ... here.
26332 (cgraph_expand_function): Remove forgoten commented out line.
26333 (cgraph_optimize): Analyze functions.
26334
26335 2007-01-08 Jan Hubicka <jh@suse.cz>
26336
26337 * tree-pas.h (TODO_remove_function): New flag.
26338 (TODO_update*): Renumber.
26339 (pass_ipa_increase_alignment,
26340 pass_ipa_function_and_variable_visibility): New passes.
26341 * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
26342 (cgraph_function_and_variable_visibility): Move to ipa.c
26343 (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
26344 cgraph_increase_alignment.
26345 * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
26346 (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
26347 calling tree-inline.
26348 (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
26349 (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
26350 * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
26351 (gate_increase_alignment): New function.
26352 (pass_ipa_increase_alignment): New pass.
26353 * ipa.c: Inline tree-pass.h and timevar.h
26354 (function_and_variable_visibility): Move here from cgraphunit.c
26355 * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
26356 * passes.c (init_optimization_passes): Add the two new passes.
26357 (execute_todo): Handle cgraph_remove_functions.
26358
26359 2007-01-08 Nick Clifton <nickc@redhat.com>
26360
26361 * config/frv/predicates.md (reg_or_0_operand): Accept
26362 CONST_DOUBLEs.
26363
26364 2007-01-08 Ralf Corsépius <ralf.corsepius@rtems.org>
26365
26366 * config/bfin/rtems.h, config/bfin/t-rtems: New.
26367 * config.gcc: Add bfin*-rtems*.
26368
26369 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
26370
26371 * c.opt: Add -flax-vector-conversions.
26372 * c-typeck.c (convert_for_assignment): Pass flag to
26373 vector_types_convertible_p to allow emission of note.
26374 (digest_init): Likewise.
26375 * c-opts.c: Handle -flax-vector-conversions.
26376 * c-common.c (flag_lax_vector_conversions): New.
26377 (vector_types_convertible_p): Unless -flax-vector conversions
26378 has been passed, disallow conversions between vectors with
26379 differing numbers of subparts and/or element types. If such
26380 a conversion is disallowed, possibly emit a note on the first
26381 occasion only to inform the user of -flax-vector-conversions.
26382 The new last argument specifies this.
26383 * c-common.h (flag_lax_vector_conversions): New.
26384 (vector_types_convertible_p): Add extra argument.
26385 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
26386 char_type_node for V*QI type vectors.
26387 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
26388 Update to satisfy new typechecking rules.
26389 * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
26390 C and C++ variants.
26391 * doc/invoke.texi (C Dialect Options): Document
26392 -flax-vector-conversions.
26393
26394 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
26395
26396 PR tree-optimization/29877
26397 * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
26398 a register variable on the RHS to not be replaceable.
26399
26400 2007-01-08 Chen Liqin <liqin@sunnorth.com.cn>
26401 * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
26402 * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
26403 const_simm15, const_pow2, const_npow2): Added.
26404 * config/score/misc.md (insv, extv, extzv, movmemsi,
26405 move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
26406 * config/score/score.c (score_address_cost, score_select_cc_mode):
26407 Added.
26408 Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
26409 Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
26410 Update score_print_operand.
26411 * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
26412 Adjust register allocate order and update some macro define.
26413 * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
26414 mdx_block_move_straight, mdx_block_move_loop_head,
26415 mdx_block_move_loop_body, mdx_block_move_loop_foot,
26416 mdx_block_move_loop, mdx_block_move): Added.
26417 (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
26418 mdp_limm): Updated and fix some bug and typo.
26419 * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
26420 (movsf, movdf, doloop_end): Added.
26421
26422 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
26423
26424 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
26425 config/arm/thumb2.md: Fix comment typos.
26426 * doc/extend.texi: Fix a typo.
26427
26428 2007-01-07 Eric Christopher <echristo@apple.com>
26429
26430 * configure.ac: Check for __stack_chk_fail for darwin.
26431 * configure: Regenerate.
26432
26433 2007-01-07 Richard Guenther <rguenther@suse.de>
26434
26435 * tree-vrp.c (extract_range_from_assert): CSE calls to
26436 compare_values where possible.
26437 (extract_range_from_unary_expr): Likewise.
26438
26439 2007-01-07 Anatoly Sokolov <aesok@post.ru>
26440
26441 * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
26442 * config/avr/avr.c (call_insn_operand): Delete function.
26443 * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
26444 instead of register number. Use predicates.
26445 * config/avr/predicates.md (const0_operand, reg_or_0_operand,
26446 call_insn_operand): Add.
26447
26448 2007-01-06 Jan Hubicka <jh@suse.cz>
26449
26450 * tree-pass.h (pass_build_cgraph_edges): Declare.
26451 * cgraphunit.c (record_refernece): Move to cgraphbuild.c
26452 (visited_nodes): Remove.
26453 (cgraph_create_edges): Move to cgraphbuild.c; rename to
26454 build_cgrpah_edges; make visited_nodes local.
26455 (cgraph_process_new_functions): DO not call initialize_inline_failed.
26456 (record_references_in_initializer): Move to cgraphbuild.c
26457 (initialize_inline_failed, rebuild_cgraph_edges,
26458 pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
26459 (verify_cgraph_node): Make visited_nodes local.
26460 (cgraph_analyze_function): Do not call cgraph_create_edges and
26461 initialize_inline_failed.
26462 (cgraph_expand_function): Do not call cgraph_lower_function;
26463 assert that function is already lowered.
26464 * Makefile.in (cgraphbuild.o): New.
26465 * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
26466 at the end of lowering passes.
26467
26468 2007-01-06 Steven Bosscher <steven@gcc.gnu.org>
26469
26470 * ifcvt.c (cond_move_convert_if_block): New function, code
26471 factored out from...
26472 (cond_move_process_if_block): ...here. Call the new function
26473 on the THEN and ELSE blocks.
26474 (merge_if_block): Do not copy global_live_at_end, merge_blocks
26475 already takes care of this.
26476
26477 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26478
26479 PR c/19978
26480 * tree.h (TREE_OVERFLOW_P): New.
26481 * c-typeck.c (parser_build_unary_op): Warn only if result
26482 overflowed and operands did not.
26483 (parser_build_binary_op): Likewise.
26484 (convert_for_assignment): Remove redundant overflow_warning.
26485 * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
26486
26487 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26488
26489 * c-typeck.c (store_init_value): Split over two lines to follow
26490 the GNU coding style.
26491
26492 2007-01-05 Benjamin Kosnik <bkoz@redhat.com>
26493
26494 * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
26495 __GXX_EXPERIMENTAL_CXX0X__.
26496 * doc/cpp.texi: Same.
26497
26498 2007-01-05 Richard Guenther <rguenther@suse.de>
26499
26500 PR middle-end/27826
26501 * tree.c (get_narrower): Do not construct COMPONENT_REFs
26502 with mismatched types. Instead explicitly build a
26503 conversion NOP_EXPR.
26504
26505 2007-01-05 Ian Lance Taylor <iant@google.com>
26506
26507 * c-common.c (decl_with_nonnull_addr_p): New function.
26508 (c_common_truthvalue_conversion): Call it.
26509 * c-typeck.c (build_binary_op): Likewise.
26510 * c-common.h (decl_with_nonnull_addr_p): Declare.
26511
26512 2007-01-05 Jakub Jelinek <jakub@redhat.com>
26513
26514 PR c/30360
26515 * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
26516 denom against 0.0.
26517
26518 2007-01-05 Joel Brobecker <brobecker@adacore.com>
26519
26520 * doc/install.texi (Final install): Document the fact that
26521 the GNAT runtime should not be stripped.
26522
26523 2007-01-04 Jan Hubicka <jh@suse.cz>
26524
26525 * tree-inline.c (fold_marked_statements): Update operand caches
26526 and EH after folding
26527
26528 2007-01-04 Ian Lance Taylor <iant@google.com>
26529
26530 * c-common.c (check_function_nonnull): Whitespace fix.
26531
26532 2007-01-04 Jan Hubicka <jh@suse.cz>
26533
26534 * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
26535 comitted older version of patch.
26536 (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
26537 function, celanup cfg and collect garbage.
26538
26539 2007-01-04 Mike Stump <mrs@apple.com>
26540
26541 * Makefile.in (mostlyclean): Don't remove libgcc anymore.
26542 (clean): Likewise.
26543
26544 2007-01-04 Eric Christopher <echristo@apple.com>
26545
26546 * libgcc2.c (__bswapsi2): Use SItype.
26547 (__bswapdi2): Use DItype.
26548 * libgcc2.h: Update for above.
26549
26550 2007-01-04 Paul Brook <paul@codesourcery.com>
26551
26552 * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
26553 mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
26554 mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
26555 umulsidi3, umulsidi3adddi, smulsi3_highpart,
26556 umulsi3_highpart): Make conditional on !arm_arch6.
26557 (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
26558 mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
26559 mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
26560 umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
26561 umulsi3_highpart_v6): New insns.
26562
26563 2007-01-04 Roger Sayle <roger@eyesopen.com>
26564
26565 * fold-const.c (fold_convert): When casting an expression to void,
26566 fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
26567 have a type. Instead of attempting to build a NOP_EXPR, return
26568 these "special" trees directly.
26569
26570 2007-01-04 Joseph Myers <joseph@codesourcery.com>
26571
26572 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
26573 MULT inside MINUS as either argument. Use rs6000_cost->dmul -
26574 rs6000_cost->fp not 0 as adjustment for outer NEG.
26575
26576 2007-01-04 Jan Hubicka <jh@suse.cz>
26577
26578 * cgraph.c (cgraph_release_function_body): New function.
26579 (cgraph_remove_node): Use it.
26580 * cgraph.h (cgraph_release_function_body): Declare.
26581 * cgraphunit.c (cgraph_expand_function): Use it.
26582 * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
26583 * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
26584 is initialized and while compilation of other function is running.
26585 * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
26586 statement CFG annotations from here to ...
26587 * tree-cfg.c (delete_tree_cfg_annotations): ... here.
26588
26589 2007-01-04 Zdenek Dvorak <dvorakz@suse.cz>
26590
26591 * cfgloop.h (enum li_flags): Make the constants powers of two.
26592
26593 2007-01-04 Jan Hubicka <jh@suse.cz>
26594
26595 * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
26596 set.
26597 (fold_marked_statements): New function.
26598 (optimize_inline_calls, tree_function_versioning): Fold new statements.
26599 * tree-inline.h (copy_body_data): Add statements_to_fold.
26600
26601 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
26602
26603 * config.gcc: Mention libgcc/config.host.
26604 * Makefile.in: Update comments mentioning libgcc.
26605 (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
26606 (all.cross, start.encap, rest.encap, rest.cross): Update
26607 dependencies for libgcc move.
26608 (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
26609 (clean-target, clean-target-libgcc): Delete.
26610 (srcdirify, GCC_EXTRA_PARTS): New macros.
26611 (libgcc-support, libgcc.mvars): New rules.
26612 (distclean): Remove mention of mklibgcc.
26613 (install): Don't reference INSTALL_LIBGCC.
26614 (install-common): Don't reference EXTRA_PARTS.
26615 (install-libgcc, install-multilib): Delete rules.
26616 * mklibgcc.in: Delete file.
26617 * doc/configfiles.texi: Don't mention mklibgcc.
26618
26619 * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
26620 * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
26621 * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
26622 * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
26623 (mklibgcc, ldblspecs): Likewise.
26624
26625 * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
26626 (posixpre.def): Use $(T).
26627 (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
26628 (SHLIB_SRC, SHLIB_INSTALL): Delete.
26629 (SHLIB_LINK): Make dummy.
26630 * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
26631
26632 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
26633
26634 * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
26635 * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
26636 config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
26637 config/rs6000/t-newas, config/sparc/t-elf: Likewise.
26638
26639 * configure.ac (all_outputs): Remove mklibgcc.
26640 * configure: Regenerated.
26641
26642 2007-01-03 Josh Conner <jconner@apple.com>
26643
26644 PR middle-end/29683
26645 * calls.c (compute_argument_addresses): Set stack and stack_slot
26646 for partial args, too.
26647 (store_one_arg): Use locate.size.constant for the size when
26648 generating a save_area.
26649
26650 2007-01-03 Robert Kennedy <jimbob@google.com>
26651
26652 * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
26653 whose definitions are deleted due to basic block merging.
26654
26655 2007-01-03 Paul Brook <paul@codesourcery.com>
26656
26657 PR target/16634
26658 * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
26659 functions.
26660 (use_return_insn): Return 0 for Thumb interrupt functions.
26661 (print_multi_reg): Add rfe argument for IRQ returns.
26662 (arm_output_epilogue): Pop interrupt return address directly into PC.
26663 (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
26664
26665 2007-01-03 Paul Brook <paul@codesourcery.com>
26666
26667 Merge from sourcerygxx-4_1.
26668 * config/arm/thumb2.md: New file.
26669 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
26670 Thumb-2.
26671 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
26672 * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
26673 (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
26674 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
26675 tables.
26676 (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
26677 * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
26678 comptibility.
26679 * config/arm/ieee754-sf.S: Ditto.
26680 * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
26681 (thumb1_base_register_rtx_p): ... to this.
26682 (thumb_index_register_rtx_p): Rename...
26683 (thumb1_index_register_rtx_p): ... to this.
26684 (thumb_output_function_prologue): Rename...
26685 (thumb1_output_function_prologue): ... to this.
26686 (thumb_legitimate_address_p): Rename...
26687 (thumb1_legitimate_address_p): ... to this.
26688 (thumb_rtx_costs): Rename...
26689 (thumb1_rtx_costs): ... to this.
26690 (thumb_compute_save_reg_mask): Rename...
26691 (thumb1_compute_save_reg_mask): ... to this.
26692 (thumb_final_prescan_insn): Rename...
26693 (thumb1_final_prescan_insn): ... to this.
26694 (thumb_expand_epilogue): Rename...
26695 (thumb1_expand_epilogue): ... to this.
26696 (arm_unwind_emit_stm): Rename...
26697 (arm_unwind_emit_sequence): ... to this.
26698 (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
26699 thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
26700 thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
26701 arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
26702 thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
26703 thumb2_output_casesi): New functions.
26704 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
26705 (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
26706 FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
26707 THUMB2_WORK_REGS): Define.
26708 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
26709 arm_condexec_mask, arm_condexec_masklen)): New variables.
26710 (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
26711 (arm_override_options): Check new CPU capabilities.
26712 Set new architecture flag variables.
26713 (arm_isr_value): Handle v7m interrupt functions.
26714 (user_return_insn): Return 0 for v7m interrupt functions. Handle
26715 Thumb-2.
26716 (const_ok_for_arm): Handle Thumb-2 constants.
26717 (arm_gen_constant): Ditto. Use movw when available.
26718 (arm_function_ok_for_sibcall): Return false for v7m interrupt
26719 functions.
26720 (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
26721 (thumb_find_work_register, arm_load_pic_register,
26722 legitimize_tls_address, arm_address_cost, load_multiple_sequence,
26723 emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
26724 print_multi_reg, output_mov_long_double_fpa_from_arm,
26725 output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
26726 output_mov_double_fpa_from_arm, output_move_double,
26727 arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
26728 output_return_instruction, arm_output_function_prologue,
26729 arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
26730 arm_output_mi_thunk, thumb_set_return_address): Ditto.
26731 (arm_expand_prologue): Handle Thumb-2. Use arm_save_coproc_regs.
26732 (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
26733 (arithmetic_instr, shift_op): Use arm_shift_nmem.
26734 (arm_print_operand): Use arm_print_condition. Handle '(', ')', '.',
26735 '!' and 'L'.
26736 (arm_final_prescan_insn): Use extract_constrain_insn_cached.
26737 (thumb_expand_prologue): Use thumb_set_frame_pointer.
26738 (arm_file_start): Output directive for unified syntax.
26739 (arm_unwind_emit_set): Handle stack alignment instruction.
26740 * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
26741 Add v6t2, v7, v7a, v7r and v7m.
26742 (RETLDM): Add Thumb-2 code.
26743 (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
26744 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
26745 (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
26746 TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
26747 THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
26748 ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
26749 THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
26750 CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
26751 ADJUST_INSN_LENGTH): Define.
26752 (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
26753 STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
26754 BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
26755 PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
26756 SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
26757 TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
26758 HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
26759 HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
26760 REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
26761 REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
26762 LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
26763 GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
26764 ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
26765 FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
26766 PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
26767 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
26768 * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
26769 cortex-m3.
26770 * config/arm/arm-tune.md: Regenerate.
26771 * config/arm/arm-protos.h: Update prototypes.
26772 * config/arm/vfp.md: Enable patterns for Thumb-2.
26773 (arm_movsi_vfp): Add movw alternative. Use output_move_vfp.
26774 (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
26775 (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
26776 thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
26777 * config/arm/libunwind.S: Add Thumb-2 code.
26778 * config/arm/constraints.md: Update include Thumb-2.
26779 * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
26780 * config/arm/ieee754-df.S: Ditto.
26781 * config/arm/bpabi.S: Ditto.
26782 * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
26783 * config/arm/predicates.md (low_register_operand,
26784 low_reg_or_int_operand, thumb_16bit_operator): New.
26785 (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
26786 (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
26787 * config/arm/t-arm-elf: Add armv7 multilib.
26788 * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
26789 Include thumb2.md.
26790 (UNSPEC_STACK_ALIGN, ce_count): New.
26791 (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
26792 arm_zero_extendsidi2, arm_zero_extendqidi2): New
26793 insns/expanders.
26794 * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
26795 (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
26796 thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
26797 * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
26798 (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
26799 thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
26800 insns.
26801 * doc/extend.texi: Document ARMv7-M interrupt functions.
26802 * doc/invoke.texi: Document Thumb-2 new cores+architectures.
26803
26804 2007-01-03 Jakub Jelinek <jakub@redhat.com>
26805
26806 * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
26807 (struct _Unwind_Context): Rename args_size to flags, remove
26808 signal_frame field, add a new args_size field and version field.
26809 (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
26810 _Unwind_IsExtendedContext): New inline functions.
26811 (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
26812 Assume by_value array is only present if _Unwind_IsExtendedContext.
26813 (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
26814 _Unwind_IsSignalFrame.
26815 (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
26816 (uw_update_context_1): Use _Unwind_SetSignalFrame.
26817 (uw_init_context_1): Initialize context->flags to
26818 EXTENDED_CONTEXT_BIT.
26819 * config/rs6000/linux-unwind.h (frob_update_context): Use
26820 _Unwind_SetSignalFrame.
26821
26822 2007-01-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
26823
26824 PR middle-end/30353
26825 * gimplify.c (gimplify_modify_expr_complex_part): Move below
26826 tree_to_gimple_tuple. Call tree_to_gimple_tuple when we need
26827 the value.
26828
26829 2007-01-03 Kazu Hirata <kazu@codesourcery.com>
26830
26831 * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
26832 REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
26833 RET, AT_SP): Remove.
26834 * config/i386/i386.md (*sse_prologue_save_insn): Use return
26835 instead of RET.
26836
26837 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
26838 * cfgbuild.c (find_basic_blocks): Likewise.
26839 * cfgrtl.c (rtl_create_basic_block): Likewise.
26840 * function.c (temp_slots_at_level): Likewise.
26841 * reg-stack.c (stack_regs_mentioned): Likewise.
26842 * regclass.c (allocate_reg_info): Likewise.
26843 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
26844 set_bb_for_stmt, move_block_to_fn): Likewise.
26845 * tree-complex.c (tree_lower_complex): Likewise.
26846 * vec.h (VEC_safe_grow_cleared): New.
26847
26848 * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
26849
26850 2007-01-03 Zdenek Dvorak <dvorakz@suse.cz>
26851
26852 * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
26853 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
26854 to loop_version.
26855 * cfgloopmanip.c (scale_loop_frequencies): Export.
26856 (loopify): Scale the frequencies by prescribed coefficients.
26857 (set_zero_probability): New function.
26858 (duplicate_loop_to_header_edge): Improve updating of frequencies.
26859 (lv_adjust_loop_entry_edge, loop_version): Set probabilities
26860 and frequencies according to arguments.
26861 * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
26862 correctly.
26863 * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
26864 * modulo-sched.c (sms_schedule): Set probabilities for entering
26865 versioned loop correctly.
26866 * tree-vect-transform.c (vect_transform_loop): Ditto.
26867 * cfgloop.h (loopify, loop_version): Declaration changed.
26868 (scale_loop_frequencies): Declared.
26869
26870 2007-01-02 Jan Hubicka <jh@suse.cz>
26871
26872 * cgraph.c: Include tree-flow.h
26873 (cgraph_add_new-function): Handle IPA_SSA mode; execute
26874 early_local_passes.
26875 * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
26876 * tree-pass.h (pass_all_early_optimizations): Declare.
26877 * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
26878 early_local_passes.
26879 (cgraph_analyze_function): Do early_local_passes.
26880 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
26881 Do not add referenced vars.
26882 * tree-optimize.c (gate_all_optimizations): Do not execute when not in
26883 SSA form.
26884 (gate_all_early_local_passes): New gate.
26885 (pass_early_local_passes): Use new gate.
26886 (execute_early_local_optimizations): New functions.
26887 (gate_all_early_optimizations): New gate.
26888 (pass_all_early_optimizations): New pass.
26889 (execute_free_datastructures): Free SSA only when initialized.
26890 (gate_init_datastructures): Init only when optimizing.
26891 (tree_lowering_passes): Do early local passes when called late.
26892 * tree-profile.c (do_tree_profiling): Don't profile functions added
26893 late.
26894 (do_early_tree_profiling, pass_early_tree_profile): Kill.
26895 * tree-cfg.c (update_modified_stmts): Do not update when operands are
26896 not active.
26897 * passes.c (init_optimizations_passes): Reorder so we go into SSA
26898 during early_local_passes.
26899 * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
26900
26901
26902 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
26903
26904 * Makefile.in: Update copyright year.
26905
26906 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
26907
26908 * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
26909 in $(lang_checks) and check-consistency targets.
26910
26911 2007-01-02 Jan Hubicka <jh@suse.cz>
26912
26913 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
26914 Do not add referenced vars.
26915 * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
26916 are not active.
26917 * passes.c (init_optimization_passes): Put mudflap_2 after
26918 free_datastructures.
26919
26920 2007-01-02 Jan Hubicka <jh@suse.cz>
26921
26922 * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
26923 Set NOTHROW flag on call statements proved to be nothrow.
26924 Update statement of local calls so new pure/const functions are
26925 updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
26926 goto receivers.
26927 (tree_rest_of_compilation): Register hooks and initialize bitmap
26928 early. Do not set after_inlining flag.
26929
26930 2007-01-02 Steve Ellcey <sje@cup.hp.com>
26931
26932 * sbitmap.c (HOST_BITS_PER_LONG_LONG): Change to
26933 HOST_BITS_PER_LONGLONG
26934
26935 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26936
26937 PR c/19977
26938 * c-typeck.c (store_init_value): Don't emit pedantic overflow
26939 warning for non-static initializers.
26940
26941 2007-01-02 Steven Bosscher <steven@gcc.gnu.org>
26942
26943 * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
26944 m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
26945 rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
26946 Always use set_unique_reg_note to add REG_EQUAL notes.
26947
26948 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
26949
26950 Revert:
26951 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
26952
26953 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
26954 * cfgbuild.c (find_basic_blocks): Likewise.
26955 * cfgrtl.c (rtl_create_basic_block): Likewise.
26956 * function.c (temp_slots_at_level): Likewise.
26957 * reg-stack.c (stack_regs_mentioned): Likewise.
26958 * regclass.c (allocate_reg_info): Likewise.
26959 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
26960 set_bb_for_stmt, move_block_to_fn): Likewise.
26961 * tree-complex.c (tree_lower_complex): Likewise.
26962 * vec.h (VEC_safe_grow_cleared): New.
26963
26964 2007-01-02 Ian Lance Taylor <iant@google.com>
26965
26966 * c-common.c (c_common_truthvalue_conversion): When warning about
26967 using an assignment as a truth value, set TREE_NO_WARNING.
26968
26969 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26970
26971 PR middle-end/7651
26972 * c.opt (Wold-style-declaration): New.
26973 * doc/invoke.texi (C-only Warning Options): New.
26974 (Wold-style-declaration): Document it.
26975 (Wextra): Enabled by -Wextra.
26976 * c-opts.c (c_common_post_options): Enabled by -Wextra.
26977 * c-decl.c (declspecs_add_scspec): Replace -Wextra with
26978 -Wold-style-declaration.
26979
26980 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
26981
26982 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
26983 * cfgbuild.c (find_basic_blocks): Likewise.
26984 * cfgrtl.c (rtl_create_basic_block): Likewise.
26985 * function.c (temp_slots_at_level): Likewise.
26986 * reg-stack.c (stack_regs_mentioned): Likewise.
26987 * regclass.c (allocate_reg_info): Likewise.
26988 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
26989 set_bb_for_stmt, move_block_to_fn): Likewise.
26990 * tree-complex.c (tree_lower_complex): Likewise.
26991 * vec.h (VEC_safe_grow_cleared): New.
26992
26993 2007-01-02 Douglas Gregor <doug.gregor@gmail.com>
26994
26995 * c-common.c (c_common_nodes_and_builtins): Since variants of
26996 void_type_node get built before it is given a name, we need to
26997 give those variants the name, too.
26998 (complete_array_type): We need to work with the canonical main
26999 type of the array, from which we will build the qualified version.
27000 * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
27001 * print-tree.c (print_node): Display canonical type information
27002 for each type.
27003 * stor-layout.c (layout_type): When we don't know the
27004 alignment of a type for which we're building an array, we end up
27005 guessing wrong, so make the type require structural equality.
27006 * tree.c (make_node_stat): When we build a new type, it is its
27007 own canonical type.
27008 (build_type_attribute_qual_variant): When building an attribute
27009 variant, its canonical type is the non-attribute variant. However,
27010 if the attributes are target-dependent and they differ, we need to
27011 use structural equality checks for this type.
27012 (build_qualified_type): A qualified type is not equivalent to its
27013 unqualified variant; set the canonical type appropriately.
27014 (build_distinct_type_copy): When building a distinct type from
27015 another type, the new type is its own canonical type.
27016 (build_variant_type_copy): When building a new type variant, we
27017 assume that it is equivalent to the original type.
27018 (build_pointer_type_for_mode): When building a pointer type, also
27019 build a canonical type pointer.
27020 (build_reference_type_for_mode): When building a reference type,
27021 also build a canonical type reference.
27022 (build_index_type): When we can't hash an index type (e.g.,
27023 because its maximum value is negative), the index type requires
27024 structural equality tests.
27025 (build_array_type): Build the canonical form of an array type.
27026 (build_function_type): Function types require structural equality,
27027 because they contain default arguments, attributes, etc.
27028 (build_method_type_directly): Ditto for method types.
27029 (build_offset_type): Build the canonical offset type.
27030 (build_complex_type): Build the canonical vector type.
27031 (make_vector_type): Build the canonical vector type.
27032 * tree.h (TYPE_CANONICAL): New.
27033 (TYPE_STRUCTURAL_EQUALITY_P): New.
27034 (SET_TYPE_STRUCTURAL_EQUALITY): New.
27035 (struct tree_type): Added "canonical" field.
27036 * params.h (VERIFY_CANONICAL_TYPES): New.
27037 * doc/c-tree.texi (TYPE_CANONICAL): Document.
27038 (TYPE_STRUCTURAL_EQUALITY_P): Document.
27039 (SET_TYPE_STRUCTURAL_EQUALITY): Document.
27040 * doc/invoke.texi (verify-canonical-types): Document --param
27041 parameter for verifying canonical types.
27042
27043 2007-01-02 Joseph Myers <joseph@codesourcery.com>
27044
27045 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
27046 powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
27047 powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
27048 powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
27049 tm_file.
27050 * config/rs6000/e500.h: New.
27051 * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
27052 TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
27053 Remove.
27054 * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
27055 TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
27056 TARGET_E500_DOUBLE): Remove.
27057 * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
27058 TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
27059 * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
27060 * config/rs6000/rs6000.c (rs6000_override_options): Use
27061 CHECK_E500_OPTIONS.
27062
27063 2007-01-02 Joseph Myers <joseph@codesourcery.com>
27064
27065 * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
27066 TARGET_E500_DOUBLE), not TARGET_E500, for %y.
27067 (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
27068 rs6000_emit_cmove): Don't check TARGET_E500.
27069 * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
27070 sordered): Don't check TARGET_E500.
27071
27072 2007-01-01 Eric Christopher <echristo@apple.com>
27073
27074 * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
27075 HARD_REGISTER_NUM_P.
27076
27077 2007-01-01 Roger Sayle <roger@eyesopen.com>
27078
27079 * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
27080 "X eq/ne (C1^C2)". Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
27081 has no side-effects. Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
27082 eq/ne Y".
27083
27084 2007-01-01 Mike Stump <mrs@apple.com>
27085
27086 * configure.ac: Remove support for building with Apple's gcc-3.1.
27087
27088 2007-01-02 Joseph Myers <joseph@codesourcery.com>
27089
27090 PR middle-end/30311
27091 * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
27092 REG is a hard register. Do not modify REG before calling
27093 subreg_nregs.
27094 * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
27095 multiple of the size of YMODE for certain lowpart cases.
27096
27097 2007-01-01 Andrew Pinski <pinskia@gmail.com>
27098
27099 PR middle-end/30253
27100 * gimplify (voidify_wrapper_expr): Update for
27101 GIMPLE_MODIFY_STMT.
27102
27103 2007-01-01 Andreas Schwab <schwab@suse.de>
27104
27105 PR target/29166
27106 * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
27107 save of BR0 in extra_spill_size instead of spill_size.
27108 (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
27109 area.
27110 (ia64_expand_epilogue): Restore BR0 from its new location.
27111
27112 2007-01-01 Andrew Pinski <pinskia@gmail.com>
27113
27114 * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
27115 Use a temporary variable if the left hand side is not a gimple
27116 register.
27117
27118 2007-01-01 Andrew Pinski <pinskia@gmail.com>
27119
27120 * gimplify.c (gimplify_return_expr): Make the temporary variable
27121 for the return expression, a gimple register variable.
27122
27123 2007-01-01 Jan Hubicka <jh@suse.cz>
27124
27125 * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
27126 INSN_LIST.
27127
27128 2007-01-01 Mike Stump <mrs@apple.com>
27129
27130 * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
27131 .literal16.
27132 * config/darwin.c (machopic_select_rtx_section): Use
27133 HAVE_GAS_LITERAL16.
27134 (darwin_mergeable_constant_section): Likewise.
27135 * configure: Regenerate.
27136 * config.in: Regenerate.
27137
27138 2007-01-01 Jan Hubicka <jh@suse.cz>
27139 Andrew Pinski <pinskia@gmail.com>
27140
27141 * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
27142 before starting IPA passes.