]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
re PR c++/33372 (segfault on incomplete code in openmp mode)
[gcc.git] / gcc / ChangeLog
CommitLineData
22a5d013
MM
12007-10-22 Michael Matz <matz@suse.de>
2
3 PR tree-optimization/33855
4 * tree-ssa-phiopt.c (cond_store_replacement): Handle COMPLEX_TYPE
5 and VECTOR_TYPE.
6
174f8765
IR
72007-10-22 Ira Rosen <irar@il.ibm.com>
8
9 PR tree-optimization/33854
10 * tree-vect-analyze.c (vect_determine_vectorization_factor): Add
11 FLOAT_EXPR to the list of promotion operations.
12
9ad5e54f
RIL
132007-10-22 Rask Ingemann Lambertsen <rask@sygehus.dk>
14
15 PR target/29473
16 PR target/29493
17 * config/i386/i386.c (output_pic_addr_const): Support Intel asm syntax.
18 (print_reg): Print register prefix only with AT&T asm syntax.
19 Support pc_rtx for RIP register.
20 (print_operand_address): Use print_reg()'s pc_rtx support for RIP
21 relative addressing. Always print segment register prefix with AT&T
22 asm syntax and never with Intel asm syntax.
23 (print_operand): Suppress 'XXX PTR' prefix for BLKmode operands.
24 Fix prefix for 16-byte XFmode operands.
25 (output_addr_const_extra): Support Intel asm syntax.
26 (x86_file_start): Don't use register prefix with Intel asm syntax.
27 * config/i386/i386.md ("*zero_extendqihi2_movzbl"): Fix typo.
28 ("return_internal_long"): Fix Intel asm syntax output.
29 ("set_got_rex64"): Support Intel asm syntax.
30 ("set_rip_rex64"): Likewise.
31 ("set_got_offset_rex64"): Likewise.
32 ("*sibcall_1_rex64_v"): Print register prefix only with AT&T asm
33 syntax.
34 ("*tls_global_dynamic_64"): Likewise.
35 ("*tls_local_dynamic_base_64"): Likewise.
36 ("*load_tp_si")("*load_tp_di"): Likewise.
37 ("*add_tp_si")("*add_tp_di"): Likewise.
38 ("*tls_dynamic_lea_64"): Likewise.
39 ("*sibcall_value_1_rex64_v"): Likewise.
40 ("stack_tls_protect_set_si"): Likewise.
41 ("stack_tls_protect_set_di"): Likewise.
42 ("stack_tls_protect_test_si"): Likewise.
43 ("stack_tls_protect_test_di"): Likewise.
44 * config/i386/mmx.md ("*mov<mode>_internal_rex64"): Fix Intel asm
45 syntax output.
46 ("*movv2sf_internal_rex64"): Likewise.
47 * config/i386/cpuid.h (__cpuid): Support Intel asm syntax.
48 (__get_cpuid_max): Likewise.
49
65239d20
RS
502007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
51
52 * config/mips/mips-protos.h (mips_regno_mode_ok_for_base_p): Give
53 the STRICT_P argument type "bool" rather than "int".
54 (mips_legitimate_address_p): Likewise.
55 (fp_register_operand, lo_operand): Delete.
56 (mips_subword): Give the HIGH_P argument type "bool" rather than "int".
57 (mips_emit_scc): Rename to...
58 (mips_expand_scc): ...this.
59 (gen_conditional_branch): Rename to...
60 (mips_expand_conditional_branch): ...this.
61 (gen_conditional_move): Rename to...
62 (mips_expand_conditional_move): ...this.
63 (mips_gen_conditional_trap): Rename to...
64 (mips_expand_conditional_trap): ...this and take an rtx code instead
65 of an operands array.
66 (mips_expand_call): Give the SIBCALL_P argument type "bool"
67 rather than "int".
68 (mips_emit_fcc_reload): Rename to...
69 (mips_expand_fcc_reload): ...this.
70 (init_cumulative_args): Rename to...
71 (mips_init_cumulative_args): ...this and remove the libname argument.
72 (function_arg_advance): Rename to...
73 (mips_function_arg_advance): ...this.
74 (function_arg): Rename to...
75 (mips_function_arg): ...this and use "rtx" instead of
76 "struct rtx_def *".
77 (function_arg_boundary): Rename to...
78 (mips_function_arg_boundary): ...this.
79 (mips_expand_unaligned_load): Rename to...
80 (mips_expand_ext_as_unaligned_load): ...this and give the WIDTH
81 and BITPOS arguments type "HOST_WIDE_INT".
82 (mips_expand_unaligned_store): Rename to...
83 (mips_expand_ins_as_unaligned_store): ...this and give the WIDTH
84 and BITPOS arguments type "HOST_WIDE_INT".
85 (override_options): Rename to...
86 (mips_override_options): ...this.
87 (print_operand): Rename to...
88 (mips_print_operand): ...this.
89 (print_operand_address): Rename to...
90 (mips_print_operand_address): ...this.
91 (mips_output_ascii): Remove the PREFIX argument.
92 (mips_expand_epilogue): Give the SIBCALL_P argument type "bool"
93 rather than "int".
94 (mips_can_use_return_insn): Return a "bool" rather than an "int".
95 (mips_function_value): Remove the FUNC argument. Use "rtx" instead
96 of "struct rtx_def *".
97 (mips_secondary_reload_class): Give the IN_P argument type "bool"
98 rather than "int".
99 (build_mips16_call_stub): Delete.
100 (mips_store_data_bypass_p): Return a "bool" rather than an "int".
101 (mips_use_ins_ext_p): Give the second and third arguments type
102 "HOST_WIDE_INT" rather than "rtx".
103 * config/mips/mips.h: Update after the above changes. Tweak comments
104 and formatting.
105 (SECONDARY_INPUT_RELOAD_CLASS): Pass a boolean IN_P argument.
106 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
107 (mips_print_operand_punct, mips_hard_regno_mode_ok): Change the
108 element type from "char" to "bool".
109 (mips_section_threshold, sym_lineno, set_noat, mips_branch_likely)
110 (mips_cpu_info_table): Delete.
111 * config/mips/mips.md: Update after the above changes. Tweak some
112 formatting.
113 * config/mips/mips-ps-3d.md: Likewise.
114 * config/mips/mips.c: Tweak comments and formatting.
115 Use NULL-like macros rather than 0 in various places.
116 (mips_section_threshold): Rename to...
117 (mips_small_data_threshold): ...this and give it an unsigned type.
118 (num_source_filenames): Remove explicit initialization.
119 (sdb_label_count): Likewise.
120 (sym_lineno): Delete.
121 (set_noat): Make static.
122 (mips_branch_likely): Likewise, and give it type "bool".
123 (mips_isa_info): Rename to...
124 (mips_isa_option_info): ...this.
125 (mips_flag_delayed_branch): Rename to...
126 (mips_base_delayed_branch): ...this.
127 (mips_split_addresses): Delete.
128 (mips_print_operand_punct, mips_hard_regno_mode_ok): Change the
129 element type from "char" to "bool".
130 (mips_regno_to_class): Add an explicit array size.
131 (mips16_flipper): Change from type "int" to type "bool".
132 (mips_comp_type_attributes): Remove redundant FUNCTION_TYPE check.
133 (mips_tls_operand_p): Rename to...
134 (mips_tls_symbol_p): ...this.
135 (mips_global_symbol_p): Remove redundant "const".
136 (mips_offset_within_alignment_p): Simplify.
137 (mips_regno_mode_ok_for_base_p): Change the name of the last argument
138 to STRICT_P and give it type bool.
139 (mips_valid_base_register_p): Likewise.
140 (mips_classify_address): Likewise.
141 (mips_legitimate_address_p): Likewise.
142 (mips16_unextended_reference_p): Take the offset as an
143 "unsigned HOST_WIDE_INT" rather than an "rtx". Simplify.
144 (mips_const_insns): Use IN_RANGE.
145 (mips_force_temporary): Remove an unnecessary copy_rtx.
146 (mips16_gp_pseudo_reg): Simplify.
147 (mips_split_symbol): Remove an unnecessary copy_rtx.
148 (mips_legitimize_tls_address): Only create registers if we need them.
149 (mips_legitimize_address): Use mips_split_plus.
150 (mips_move_integer): Swap DEST and TEMP arguments. Rename local
151 variable COST to NUM_OPS.
152 (mips_legitimize_move): Use gen_lowpart.
153 (mips_rewrite_small_data): Rename the OP parameter to PATTERN.
154 (m16_check_op): Use IN_RANGE.
155 (mips_subword): Give the HIGH_P argument type "bool" rather than "int".
156 (mips_split_doubleword_move): Pass booleans to mips_subword.
157 (mips_output_move): Store the mode in a local variable.
158 Explicitly assert that this function does not deal with
159 MFLO and MFHI. Use SMALL_OPERAND_UNSIGNED. Make order of
160 cases more consistent.
161 (mips_relational_operand_ok_p): Rename to...
162 (mips_int_order_operand_ok_p): ...this.
163 (mips_canonicalize_comparison): Rename to...
164 (mips_canonicalize_int_order_test): ...this.
165 (mips_emit_int_relational): Rename to...
166 (mips_emit_int_order_test): ...this. Store the mode in a local
167 variable.
168 (mips_reverse_fp_cond_p): Rename to...
169 (mips_reversed_fp_cond): ...this.
170 (mips_emit_compare): Make the order of the statements more consistent.
171 (mips_emit_scc): Rename to...
172 (mips_expand_scc): ...this.
173 (gen_conditional_branch): Rename to...
174 (mips_expand_conditional_branch): ...this.
175 (gen_conditional_move): Rename to...
176 (mips_expand_conditional_move): ...this. Build the condition
177 separately from the main pattern.
178 (mips_gen_conditional_trap): Rename to...
179 (mips_expand_conditional_trap): ...this and take an rtx code instead
180 of an operands array. Simplify.
181 (init_cumulative_args): Rename to...
182 (mips_init_cumulative_args): ...this. Use memset rather than a
183 copy from a zeroed static. Use prototype_p and stdarg_p.
184 (mips_arg_info): Rename to...
185 (mips_get_arg_info): ...this and put the INFO argument first.
186 (function_arg): Rename to...
187 (mips_function_arg): ...this and use "rtx" instead of
188 "struct rtx_def *". Only split structures into chunks if
189 TARGET_HARD_FLOAT, rather than checking !TARGET_SOFT_FLOAT on
190 a chunk-by-chunk basis. Use SCALAR_FLOAT_TYPE_P instead of a
191 comparison with REAL_TYPE. Rename local variable REG to REGNO
192 and make it unsigned.
193 (function_arg_advance): Rename to...
194 (mips_function_arg_advance): ...this.
195 (function_arg_boundary): Rename to...
196 (mips_function_arg_boundary): ...this.
197 (mips_pad_arg_upward): Use SCALAR_INT_MODE_P instead of a comparison
198 with MODE_INT.
199 (mips_fpr_return_fields): Use SCALAR_FLOAT_TYPE_P instead of a
200 comparison with REAL_TYPE.
201 (mips_function_value): Remove the FUNC argument. Rename local
202 variable UNSIGNEDP to UNSIGNED_P.
203 (mips_return_in_memory): Use IN_RANGE.
204 (mips_setup_incoming_varargs): Pass a boolean rather than an int
205 to FUNCTION_ARG_ADVANCE.
206 (mips_gimplify_va_arg_expr): Rename local variable INDIRECT
207 to INDIRECT_P. Remove a redundant mips_abi check. Only calculate
208 SIZE and RSIZE if needed.
209 (mips16_stub): Rename FPRET to FP_RET_P and give it type "bool"
210 rather than "int".
211 (build_mips16_function_stub): Rename to...
212 (mips16_build_function_stub): ...this.
213 (build_mips16_call_stub): Rename to...
214 (mips16_build_call_stub): ...this. Make static, and return a
215 "bool" rather than an "int". Rename the ARG_SIZE argument to
216 ARGS_SIZE. Rename the local variable FPRET to FP_RET_P and give
217 it type "bool". Use "jr" rather than "j". Use XNEW. Simplify.
218 (mips_load_call_address): Give the SIBCALL_P argument type "bool"
219 rather than "int".
220 (mips_expand_call): Likewise. Assert that MIPS16 calls via stubs
221 are not sibling ones.
222 (mips_emit_fcc_reload): Rename to...
223 (mips_expand_fcc_reload): ...this.
224 (mips_get_unaligned_mem): Give the WIDTH and BITPOS arguments type
225 "HOST_WIDE_INT".
226 (mips_expand_unaligned_load): Rename to...
227 (mips_expand_ext_as_unaligned_load): ...this and give the WIDTH
228 and BITPOS arguments type "HOST_WIDE_INT". Remove redundant
229 SUBREG_BYTE check.
230 (mips_expand_unaligned_store): Rename to...
231 (mips_expand_ins_as_unaligned_store): ...this and give the WIDTH
232 and BITPOS arguments type "HOST_WIDE_INT".
233 (mips_use_ins_ext_p): Rename second and third arguments to WIDTH
234 and BITPOS and give them type "HOST_WIDE_INT" rather than "rtx".
235 Use IN_RANGE.
236 (mips_init_split_addresses): Replace with...
237 (mips_split_addresses_p): ...this new function.
238 (mips_init_relocs): Check mips_split_addresses_p () rather than
239 mips_split_addresses. Always initialize mips_split_p with booleans.
240 (print_operand_reloc): Rename to...
241 (mips_print_operand_reloc): ...this. Use a gcc_assert rather than
242 a fatal_error.
243 (print_operand): Rename to...
244 (mips_print_operand): ...this.
245 (print_operand_address): Rename to...
246 (mips_print_operand_address): ...this. Use GP_REG_FIRST.
247 (mips_in_small_data_p): Simplify.
248 (mips_output_ascii): Remove the PREFIX argument and "register"
249 keywords. Use the STRING parameter directly and cast to
250 "unsigned char".
251 (mips16e_collect_argument_save_p): Use IN_RANGE.
252 (mips_function_has_gp_insn): Simplify.
253 (mips_set_return_address): Use BITSET_P.
254 (mips_restore_gp): Use a separate statement to pick the base
255 register.
256 (mips_output_function_prologue): Use a local FRAME variable.
257 (mips_save_reg): Pass booleans to mips_subword.
258 (mips_expand_prologue): Use a local FRAME variable. Use
259 cprestore_size to detect when .cprestore is needed.
260 (mips_restore_reg): Use GP_REG_FIRST.
261 (mips_expand_epilogue): Give the SIBCALL_P argument type "bool"
262 rather than "int". Use local FRAME and REGNO variables.
263 (mips_can_use_return_insn): Return a "bool" rather than an "int".
264 (mips_secondary_reload_class): Give the IN_P argument type "bool"
265 rather than "int".
266 (mips_linked_madd_p): Rename arguments to OUT_INSN and IN_INSN.
267 (mips_store_data_bypass_p): Return a "bool" rather than an "int".
268 (vr4130_swap_insns_p): Rename local variables to DEP1_P and DEP2_P.
269 (mips_74k_agen_init): Assume INSN satisfies USEFUL_INSN_P.
270 (mips_variable_issue): Do nothing unless INSN satisfies USEFUL_INSN_P.
271 (builtin_description): Rename to...
272 (mips_builtin_description): ...this.
273 (mips_bdesc): Rename to...
274 (mips_ps_bdesc): ...this.
275 (sb1_bdesc): Rename to...
276 (mips_sb1_bdesc): ...this.
277 (dsp_bdesc): Rename to...
278 (mips_dsp_bdesc): ...this.
279 (dsp_32only_bdesc): Rename to...
280 (mips_dsp_32only_bdesc): ...this.
281 (bdesc_map): Rename to...
282 (mips_bdesc_map): ...this.
283 (bdesc_arrays): Rename to...
284 (mips_bdesc_arrays): ...this.
285 (mips_prepare_builtin_arg): Rename OP to OPNO and ARGNUM to ARGNO.
286 Tweak error message.
287 (mips_expand_builtin_direct): Rename HAS_TARGET to HAS_TARGET_P.
288 Rename local variables I and J to OPNO and ARGNO respectively.
289 Assert that the number of arguments is no more than the number of
290 input operands.
291 (mips_expand_builtin_compare): Use an array of arguments rather
292 than an array of operands. Assert that the number of operands is
293 as expected.
294 (add_constant): Rename to...
295 (mips16_add_constant): ...this. Use XNEW.
296 (dump_constants_1): Rename to...
297 (mips16_emit_constants_1): ...this. Use ALL_SCALAR_FIXED_POINT_MODE_P.
298 (dump_constants): Rename to...
299 (mips16_emit_constants): ...this.
300 (mips_sim_wait_reg, mips_sim_record_set): Use END_REGNO.
301 (mips_set_mips16_mode): Don't call mips_init_split_addresses.
302 Assign mips16_p to was_mips16_p.
303 (mips_parse_cpu): Tweak warning message.
304 (override_options): Rename to...
305 (mips_override_options): ...this. Move the mips_cost initialization
306 out of the "shared with GAS" block. Quote option names in error
307 messages.
308 (mips_conditional_register_usage): Make local variable REGNO unsigned.
309 (mips_order_regs_for_local_alloc): Remove register keyword.
310
b5edaa2c
RS
3112007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
312
313 * system.h (IN_RANGE): Cast each argument individually.
314
d375fd5e
RS
3152007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
316
317 * config/mips/mips.c (mips_set_mips16_mode) Say sorry for hard-float
318 MIPS16 code unless using o32 or o64.
319
43029c10
RS
3202007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
321
322 * config/mips/mips.c (mips_cannot_change_mode_class): Don't check
323 for modes smaller than 4 bytes.
324 * config/mips/mips.md (*movhi_internal, *movqi_internal): Remove
325 FPR alternatives.
326
7c6794f4
RS
3272007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
328
329 * config/mips/mips-protos.h (mips_output_aligned_bss): Delete.
330 * config/mips/linux.h (BSS_SECTION_ASM_OP): Delete.
331 (ASM_OUTPUT_ALIGNED_BSS): Delete.
332 * config/mips/mips.c (mips_output_aligned_bss): Delete.
333
9be10a79
RS
3342007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
335
336 * config/mips/mips.c (mips_function_ok_for_sibcall): Only forbid
337 sibling calls to "mips16" functions if the function satisfies
338 const_call_insn_operand.
339
e0681eaa
RS
3402007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
341
342 * config/mips/mips.c (mips_va_start): Fix types in calls
343 to build_int_cst.
344
a1569a0e
RS
3452007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
346
347 * config/mips/mips.c (mips_rtx_costs): Only recognize reciprocals
348 if ISA_HAS_FP4.
349
f457938f
RS
3502007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
351
352 * config/mips/mips.h (ISA_HAS_LDC1_SDC1): New macro.
353 * config/mips/mips.c (mips_split_64bit_move_p): Use ISA_HAS_LDC1_SDC1
354 instead of checking mips_isa.
355
e5a2b69d
RS
3562007-10-21 Richard Sandiford <rsandifo@nildram.co.uk>
357
358 * doc/invoke.texi (-mpaired-single): Don't say that the option
359 requires 64-bit code.
360 * config/mips/mips-protos.h (mips_modes_tieable_p): Declare.
361 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): New macro.
362 (ISA_HAS_NMADD_NMSUB): Add a mode argument. Return true for
363 V2SF if ISA_MIPS32R2.
364 (MODES_TIEABLE_P): Use mips_modes_tieable_p.
365 * config/mips/mips.c (mips_rtx_costs): Pass a mode argument
366 to ISA_HAS_NMADD_NMSUB.
367 (mips_split_doubleword_move): Handle V2SF.
368 (mips_modes_tieable_p): New function.
369 (override_options): Report a warning rather than an error when
370 -mpaired-single is used on ISAs that don't support it; use
371 ISA_HAS_PAIRED_SINGLE to check that case.
372 * config/mips/mips.md (MOVE64): New mode iterator. Replace DI
373 and DF move splitters with a single MOVE64 splitter, thereby adding
374 a V2SF splitter too.
375 (SPLITF): Add TARGET_DOUBLE_FLOAT conditions to DI and DF.
376 Add a TARGET_FLOAT64 condition to TF. Add V2SF to the iterator.
377 (HALFMODE): Add V2SF.
378 (*nmadd<mode>, *nmadd<mode>_fastmath, *nmsub<mode>)
379 (*nmsub<mode>_fastmath): Add a mode argument to ISA_HAS_NMADD_NMSUB.
380 (movv2sf_hardfloat_64bit): Tweak ordering of conditions.
381 (movv2sf_hardfloat_32bit): New pattern.
382 (load_low<mode>, load_high<mode>, store_word<mode>): Remove
383 TARGET_DOUBLE_FLOAT conditions.
384
be1d7465
JJ
3852007-10-20 Jakub Jelinek <jakub@redhat.com>
386
387 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Point
388 saved CR2 offset to low 32 bits of regs->ccr rather than the whole
389 64-bit register in 64-bit libgcc.
390
f978d2c7
EW
3912007-10-20 Eric B. Weddington <eweddington@cso.atmel.com>
392
393 * config/avr/avr.c (avr_mcu_types): Add at90pwm2b, at90pwm3b.
394 * config/avr/avr.h (LINK_SPEC): Likewise.
395 (CRT_BINUTILS_SPECS): Likewsie.
396 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
397
2b60abb7
MLI
3982007-10-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
399
400 * doc/invoke.texi (Warning Options): Move -w, -Werror, -Werror=
401 and -Wfatal-errors together.
402
554c2941
AM
4032007-10-20 Alan Modra <amodra@bigpond.net.au>
404
405 PR target/33812
406 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Revert 2007-05-16
407 change for vrsave, ie restore after frame pop.
408
dbc18417
DM
4092007-10-19 David S. Miller <davem@davemloft.net>
410
411 * config/sparc/niagara2.md: Fix copyright notice.
412
671633e9
SP
4132007-10-19 Sebastian Pop <sebastian.pop@amd.com>
414
415 PR tree-optimization/23820
416 PR tree-optimization/24309
417 PR tree-optimization/33766
418 * testsuite/gcc.dg/tree-ssa/pr23820.c: New.
419 * testsuite/gcc.dg/tree-ssa/pr24309.c: New.
420 * testsuite/gcc.dg/tree-ssa/pr33766.c: New.
421 * testsuite/gcc.dg/tree-ssa/ltrans-3.c: XFAILed.
422 * tree-loop-linear.c (perfect_loop_nest_depth): New.
423 (linear_transform_loops): Use perfect_loop_nest_depth.
424 * lambda-code.c (perfect_nest_p): Outer loops in perfect nests
425 should have a single condition: their exit.
426
36784d0e
RG
4272007-10-19 Richard Guenther <rguenther@suse.de>
428
429 PR middle-end/33816
430 PR middle-end/32921
431 * stor-layout.c (layout_type): Assert that aggregates do not
432 have their alias sets set.
433 * alias.c (get_alias_set): Return alias set zero for incomplete
434 types, return the alias set of the element for incomplete array
435 types, but do not remember these.
436
ab58d043
RG
4372007-10-19 Richard Guenther <rguenther@suse.de>
438
439 Revert
440 2007-10-19 Richard Guenther <rguenther@suse.de>
441
442 PR middle-end/32921
443 * tree.c (build_array_type): Do not re-layout unbound array
444 types.
445
1a8076fc
RG
4462007-10-19 Richard Guenther <rguenther@suse.de>
447
448 PR middle-end/32921
449 * tree.c (build_array_type): Do not re-layout unbound array
450 types.
451
213ce6f2
RS
4522007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
453
454 * config/mips/mips.c (mips_canonicalize_comparison): Check
455 mips_relational_operand_ok_p before trying to rewrite the test.
456 Only calculate PLUS_ONE if needed.
457 (mips_emit_int_relational): Don't call mips_relational_operand_ok_p
458 here.
459
b87bc4e8
RS
4602007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
461
462 * config/mips/mips.c (mips16e_build_save_restore): Fix *OFFSET_PTR
463 calculation.
464
2ac02d08
RS
4652007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
466
467 * config/mips/mips.c (mips_call_tls_get_addr): Don't claim that
468 the call uses the incoming value of $2.
469
8d0e1e43
RS
4702007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
471
472 * config/mips/mips.c (mips_call_tls_get_addr): Use gen_const_mem
473 rather then gen_rtx_MEM.
474 (mips_setup_incoming_varargs): Use gen_frame_mem rather than
475 gen_rtx_MEM.
476 (mips_set_return_address): Likewise.
477 (mips_restore_gp): Likewise.
478
6e75e6e3
RS
4792007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
480
481 * config/mips/mips.c (gpr_mode): Delete.
482 (mips16e_build_save_restore): Use word_mode and UNITS_PER_WORD
483 instead of gpr_mode.
484 (mips_for_each_saved_reg): Likewise.
485 (mips_expand_prologue, mips_expand_epilogue): Likewise.
486 (override_options): Don't initialize gpr_mode.
487 * config/mips/mips.md (eh_return): Use word_mode instead of gpr_mode.
488
c862c910
RS
4892007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
490
491 * config/mips/mips.c (mips_hard_regno_nregs): Put the UNITS_PER_WORD
492 case last.
493 (mips_class_max_nregs): Calculate the smallest consituent register
494 size and use that to determine an upper bound on the number of
495 registers.
496
5f5fe6d9
RS
4972007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
498
499 * config/mips/mips.c (mips16_copy_fpr_return_value): New function,
500 split out from...
501 (mips_expand_epilogue): ...here.
502 (mips_mdebug_abi_name): New function, split out from...
503 (mips_file_start): ...here.
504 (mips_hard_regno_mode_ok_p): New function, split out from...
505 (override_options): ...here.
506 (mips_expand_builtin_1): New function, split out from...
507 (mips_expand_buitin): ...here. Abort if we don't recognize
508 the function.
509
6a68a258
RS
5102007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
511
512 * config/mips/mips.c (build_mips16_function_stub): Load the
513 target address into $1 before transfering the arguments.
514 Don't use ".set noreorder".
515 (build_mips16_call_stub): Likewise.
516
5b372d33
RS
5172007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
518
519 * config/mips/mips.c (mips_output_32bit_xfer): New function.
520 (mips_output_64bit_xfer): Likewise.
521 (mips16_fp_args): Rename to...
522 (mips_output_args_xfer): ...this and replace the FROM_FP_P argument
523 with a DIRECTION argument. Use mips_output_32bit_xfer and
524 mips_output_64bit_xfer.
525 (build_mips16_function_stub): Update accordingly.
526 (mips16_fpret_double): Delete.
527 (build_mips16_call_stub): Update after above changes.
528 Use mips_output_32bit_xfer. Use mips_output_64bit_xfer instead
529 of mips16_fpret_double. Use GP_REG_RETURN.
530
23fdf75c
RS
5312007-10-19 Richard Sandiford <rsandifo@nildram.co.uk>
532
533 * config/mips/mips.c (mips16_fp_args): Remove the FILE argument and
534 use asm_out_file instead.
535 (build_mips16_function_stub): Likewise.
536 (build_mips16_call_stub, mips_output_function_prologue): Update
537 accordingly.
538
9eeaed6e
DM
5392007-10-18 David S. Miller <davem@davemloft.net>
540
541 Add Niagara-2 support.
542 * doc/invoke.texi: Document -m{cpu,tune}=niagara2.
543 * config.gcc: Add niagara2 to cpu and tune lists for sparc.
544 * config/sparc/sparc.md (sparc_cpu_attr): Add niagara2.
545 (include): Add inclusion of niagara2.md
546 * config/sparc/sparc.c (niagara2_costs): New.
547 (sparc_override_options): Add niagara2 entry to cpu_default[]
548 and cpu_table[]. Set align_functions to 32 on Niagara2. Use
549 niagara2_costs when PROCESSOR_NIAGARA2. Handle Niagara2 for
550 PARAM_SIMULTANEOUS_PREFETCHES and PARAM_L1_CACHE_LINE_SIZE.
551 (sparc_initialize_trampoline): Handle niagara2 like niagara.
552 (sparc64_initialize_trampoline): Likewise.
553 (sparc_use_sched_lookahead): Likewise.
554 (sparc_issue_rate): Likewise.
555 * config/sparc/sol2-bi.h: Handle TARGET_CPU_niagara2 and
556 mcpu=niagara2
557 * config/sparc/sparc.h (TARGET_CPU_niagara2): Define.
558 ({CPP,ASM}_CPU64_DEFAULT_SPEC): Set appropriately for
559 TARGET_CPU_niagara2.
560 (PROCESSOR_NIAGARA2): New.
561 (REGISTER_MOVE_COST): Handle PROCESSOR_NIAGARA2.
562 (BRANCH_COST): Likewise.
563 * config/sparc/linux64.h: Handle TARGET_CPU_niagara2.
564 * config/sparc/sol2.h: Likewise.
565 * config/sparc/niagara2.md: New file.
566
ddc4af9c
RS
5672007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
568
569 * config/mips/mips.c (mips_frame_info): Remove gp_reg_size and
570 and fp_reg_size.
571 (mips_compute_frame_info): Remove associated code.
572 (mips16e_build_save_restore): Check num_fp instead of fp_reg_size.
573
16dc5c28
RS
5742007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
575
576 * config/mips/mips-protos.h (compute_frame_size): Delete.
577 * config/mips/mips.h: Update comments.
578 * config/mips/mips.c (mips_frame_info): Remove initialized.
579 (compute_frame_size): Rename to...
580 (mips_compute_frame_info): ...this and make static. Remove the
581 SIZE argument and return no value. Remove the setting of initialized.
582 Update rest of file accordingly.
583 (mips_set_return_address): Don't call compute_frame_size.
584 (mips_can_use_return_insn): Don't check df_regs_ever_live_p (31).
585 Don't call compute_frame_size.
586
29c4d304
RS
5872007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
588
589 * config/mips/mips-protos.h (mips_frame_pointer_required): Declare.
590 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Use
591 mips_hard_frame_pointer_required.
592 (CAN_ELIMINATE): Rely on FRAME_POINTER_REQUIRED to check for
593 large MIPS16 frames.
594 * config/mips/mips.c (mips_frame_pointer_required): New function.
595
f374e413
RS
5962007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
597
598 * config/mips/mips.c (mips_frame_info): Add arg_pointer_offset
599 and hard_frame_pointer_offset.
600 (mips_debugger_offset): Use hard_frame_pointer_offset.
601 (mips16e_collect_argument_save_p): Likewise.
602 (compute_frame_size): Initialize arg_pointer_offset and
603 hard_frame_pointer_offset.
604 (mips_initial_elimination_offset): Use them.
605 (mips_output_function_prologue): Use hard_frame_pointer_offset.
606 (mips_expand_prologue, mips_expand_epilogue): Likewise.
607
37017f4d
RS
6082007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
609
610 * config/mips/mips.h (STARTING_FRAME_OFFSET): Remove rtl
611 profiling code.
612 * config/mips/mips.c (mips_frame_info): Give num_gp and num_fp type
613 "unsigned int" rather than "int" and put them with the other
614 register-related fields. Put expanded comments above fields
615 rather than to their right.
616 (mips16e_mask_registers): Replace the GP_REG_SIZE_PTR argument
617 with a NUM_REGS_PTR argument.
618 (mips16e_save_restore_pattern_p): Update accordingly.
619 (compute_frame_size): Clarify frame diagram. Rewrite.
620
41030557
RS
6212007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
622
623 * config/mips/mips-ftypes.def: New file.
624 * config/mips/mips.c (MIPS_FTYPE_NAME1, MIPS_FTYPE_NAME2)
625 (MIPS_FTYPE_NAME3, MIPS_FTYPE_NAME4): New macros.
626 (mips_function_type): Redefine using mips-ftypes.def.
627 (dsp_bdesc): Use POINTER rather than PTR in the MIPS_*_FTYPE_* names.
628 (mips_builtin_vector_type): New function.
629 (MIPS_ATYPE_VOID, MIPS_ATYPE_INT, MIPS_ATYPE_POINTER, MIPS_ATYPE_SI)
630 (MIPS_ATYPE_USI, MIPS_ATYPE_DI, MIPS_ATYPE_SF, MIPS_ATYPE_DF)
631 (MIPS_ATYPE_V2SF, MIPS_ATYPE_V2HI, MIPS_ATYPE_V4QI, MIPS_FTYPE_ATYPES1)
632 (MIPS_FTYPE_ATYPES2, MIPS_FTYPE_ATYPES3, MIPS_FTYPE_ATYPES4): New
633 macros.
634 (mips_build_function_type): New function.
635 (mips_init_builtins): Use it to create types lazily.
636
07045266
RS
6372007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
638
639 * config/mips/mips.h (set_volatile): Delete.
640 * config/mips/mips.c (set_volatile): Delete.
641 (mips_print_operand_punctuation): New function, split out from
642 print_operand. Remove '%{', '%}', '%~', '%&' and '%!'.
643 Use the same character ordering in the code and the comments.
644 Use a recursive call to handle '*'. Abort on unknown characters.
645 (mips_init_print_operand_punct): New function, split out from
646 override_options.
647 (mips_print_int_branch_condition): New function, split out from
648 print_operand. Use GET_RTX_NAME. Use output_operand_lossage
649 to report unexpected codes.
650 (mips_print_float_branch_condition): New function, split out from
651 print_operand. Use output_operand_lossage to report unexpected codes.
652 (print_operand): Rework to use a case statement. Use the
653 same letter ordering in the code and the comments. Use
654 output_operand_lossage to report unexpected codes and
655 reverse_condition to handle inverted branch conditions.
656 (override_options): Use mips_init_print_operand_punct.
657
ab77a036
RS
6582007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
659
660 * config/mips/mips.h: Move variable declarations to end of file and
661 enclose them all in #ifndef USED_FOR_TARGET.
662 * config/mips/mips.c: Reorder functions into more logical groups,
663 and so that callees appear before callers. Put the targetm
664 initializer at the end of the file. Remove forward static
665 declarations where possible.
666 (mips_init_builtins): Add "static" to definition.
667 (mips_expand_builtin, mips_mode_rep_extended): Likewise.
668
4ec4ca36
RS
6692007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
670
671 * config/mips/mips.c (TARGET_MIN_ANCHOR_OFFSET): Delete.
672 (TARGET_MAX_ANCHOR_OFFSET): Delete.
673 (mips_cannot_force_const_mem): Don't check TARGET_HAVE_TLS.
674 (mips_set_mips16_mode): Initialize min_anchor_offset and
675 max_anchor_offset directly to constants.
676
d33289b2
RS
6772007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
678
679 * config/mips/mips.c: Delete trailing whitespace.
680
e8b7a137
RS
6812007-10-18 Richard Sandiford <rsandifo@nildram.co.uk>
682
683 * config/mips/mips.c (mips_expand_call): Use FAKE_CALL_REGNO.
684 (mips_avoid_hazard): Allow multiple sets for HAZARD_DELAY,
685 and pick the first.
686 * config/mips/mips.md (load_call<mode>): Don't make the unspec
687 depend on FAKE_CALL_REGNO. Set FAKE_CALL_REGNO.
688
25127042
DD
6892007-10-18 David Daney <ddaney@avtrex.com>
690
691 * config/mips/linux-unwind.h (mips_fallback_frame_state): Use new
692 reg_offset variable to calculate register locations.
693
e445a2ff
RG
6942007-10-18 Richard Guenther <rguenther@suse.de>
695
696 * tree-ssa.c (uid_ssaname_map_eq): New function.
697 (uid_ssaname_map_has): Likewise.
698 (init_tree_ssa): Allocate default_defs as uid_ssaname map.
699 * tree-flow.h (struct gimple_df): Make default_defs a
700 uid_ssaname map.
701 * tree-dfa.c (gimple_default_def): Deal with it.
702 (set_default_def): Likewise.
703
9fc5a389
RG
7042007-10-18 Richard Guenther <rguenther@suse.de>
705
706 * tree-flow.h (struct gimple_df): Make referenced_vars
707 a uid_decl_map.
708 (uid_decl_map_eq): Declare.
709 (uid_decl_map_hash): Likewise.
710 * tree-ssa.c (uid_decl_map_eq): New function.
711 (uid_decl_map_hash): Likewise.
712 (init_tree_ssa): Make referenced_vars a uid_decl_map.
713 * tree-flow-inline.h (first_referenced_var): Deal with
714 the referenced_vars representation change.
715 (next_referenced_var): Likewise.
716 * tree-dfa.c (referenced_var_lookup): Likewise.
717 (referenced_var_check_and_insert): Likewise.
718 (remove_referenced_var): Likewise.
719
076a5ce6
DJ
7202007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
721
722 * config/mips/mips.c (mips_dwarf_register_span): New.
723 (TARGET_DWARF_REGISTER_SPAN): Define.
724
254f5222
CL
7252007-10-18 Chen Liqin <liqin@sunnorth.com.cn>
726
727 * config.gcc : update score-*-elf(extra_objs).
728 * config/score/mac.md : Remove.
729 * config/score/misc.md : Remove.
730 * config/score/score7.md : Remove.
731 * config/score/score-mdaux.h : Remove.
732 * config/score/score-mdaux.c : Remove.
733 * config/score/score-version.h : Remove.
734 * config/score/score-generic.md : New.
735 * config/score/score3.h : New.
736 * config/score/score3.c : New.
737 * config/score/score7.h : New.
738 * config/score/score7.c : New.
739 * config/score/mul-div.S : add flush_cache score3 support.
740 * config/score/elf.h : Fix some typos.
741 * config/score/score.md : merge score3 and score7 pattern.
742 * config/score/score.c : use to seperate which target it used.
743 * config/score/score.h : use to seperate the target macro.
744 * config/score/score.opt : remove -mmac option , add -mscore3,
745 -mscore3d and -march OPTION support.
746
f8da8190
AP
7472007-10-17 Andrew Pinski <andrew_pinski@playstation.sony.com>
748
749 * cfgexpand.c (expand_stack_vars): Add checking to make sure
750 that the offset of a variable is not greater than the size
751 of the paritition.
752
fabf8971
AS
7532007-10-17 Anatoly Sokolov <aesok@post.ru>
754
755 * config/avr/avr.c (avr_mcu_types): Add support for atmega48p,
756 atmega88p, atmega168p and atmega328p devices.
757 * config/avr/avr.h (LINK_SPEC): (Ditto.).
758 (CRT_BINUTILS_SPECS): (Ditto.).
759 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
760
a750daa2
MK
7612007-10-17 Maxim Kuvyrkov <maxim@codesourcery.com>
762
763 * sched-ebb.c: Surround code with '#ifdef INSN_SCHEDULING'.
764 * ddg.c: Ditto.
765 * sched-deps.c: Ditto. Remove nested #ifdef's INSN_SCHEDULING.
766 * sched-int.h: Surround declarations with '#ifdef INSN_SCHEDULING'.
767 (print_insn): Move declaration to ...
768 * rtl.h (print_insn): ... here.
769
7702007-10-17 Maxim Kuvyrkov <maxim@codesourcery.com>
771
772 * config/m68k/m68k.h (m68k_sched_cpu, m68k_sched_attr_opx_type,
773 m68k_sched_attr_opy_type, m68k_sched_attr_size, m68k_sched_attr_op_mem,
774 m68k_sched_branch_type): Move declarations to ...
775 * config/m68/m68k-protos.h: ... here.
776
bce5fe51
MK
7772007-10-17 Maxim Kuvyrkov <maxim@codesourcery.com>
778
779 * genattrtab.c (main): Rearrange output of insn-attrtab.c headers.
780
59902acf
EW
7812007-10-17 Eric B. Weddington <eweddington@cso.atmel.com>
782
783 * config/avr/avr.c (avr_mcu_types): Add attiny48.
784 * config/avr/avr.h (LINK_SPEC): Likewise.
785 (CRT_BINUTILS_SPECS): Likewsie.
786 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
787
859bc2ff
EW
7882007-10-17 Eric B. Weddington <eweddington@cso.atmel.com>
789
790 * config/avr/avr.c (avr_mcu_types): Add attiny43u.
791 * config/avr/avr.h (CRT_BINUTILS_SPECS): Likewsie.
792 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
793
590e9a42
UB
7942007-10-17 Uros Bizjak <ubizjak@gmail.com>
795
796 PR middle-end/33794
797 * reg-stack.c (move_for_stack_reg): Swap input argument of
798 UNSPEC_TAN insn to the top of the stack.
799
2290121c
UB
8002007-10-17 Uros Bizjak <ubizjak@gmail.com>
801
802 PR target/32961
803 * config/i386/i386.c (ix86_expand_builtin) [IX86_BUILTIN_PSLLWI128,
804 IX86_BUILTIN_PSLLDI128, BUILTIN_PSLLQI128, IX86_BUILTIN_PSRAWI128,
805 IX86_BUILTIN_PSRADI128, IX86_BUILTIN_PSRLWI128,
806 IX86_BUILTIN_PSRLDI128, IX86_BUILTIN_PSRLQI128]: Do not require
807 immediate shift value.
808 config/i386/emmintrin.h (_mm_slli_epi16, _mm_slli_epi32,
809 _mm_slli_epi64, _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16,
810 _mm_srli_epi32, _mm_srli_epi64): Remove 'const' from count argument.
811 Remove macros for !__OPTIMIZE__ case.
812
aa46c8a3
DB
8132007-10-17 Daniel Berlin <dberlin@dberlin.org>
814
815 * tree-ssa-structalias.c (rewrite_constraints): Don't test for
816 directness anymore.
817 (perform_var_substitution): Only DFS from real nodes. Don't test
818 for directness.
819 (unite_pointer_equivalences): Fix broken test.
820
45b194f8
AM
8212007-10-17 Alan Modra <amodra@bigpond.net.au>
822
823 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Correct
824 altivec sp_offset. Rearrange sp_offset assignments to
825 correspond to stack adjustments. Use frame_reg_rtx for
826 SPE register restores. Correct SPE stack adjustment.
827
c5409249
MLI
8282007-10-17 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
829
830 * builtins.c (gimplify_va_arg_expr): Use inform for help message.
831 * toplev.c (check_global_declaration_1): Use appropriate warning
832 option instead of unnamed warning.
833 * stor-layout.c (layout_decl): Likewise.
834 * c-typeck.c (build_conditional_expr): Likewise.
835 (build_compound_expr): Fix wrong comment.
836 (build_binary_op): Use appropriate warning option instead of
837 unnamed warning.
838 * cfgexpand.c (tree_expand_cfg): Likewise.
839 * tree-optimize.c (tree_rest_of_compilation): Likewise.
840 * tree-cfg.c (remove_useless_stmts_warn_notreached): Likewise.
841 (execute_warn_function_return): Likewise.
842 * stmt.c (warn_if_unused_value): Likewise.
843
2bf374ab
EW
8442007-10-16 Eric B. Weddington <eweddington@cso.atmel.com>
845
846 * config/avr/avr.c (avr_mcu_types): Add at90pwm216, at90pwm316.
847 * config/avr/avr.h (LINK_SPEC): Likewise and remove regex for
848 similar devices.
849 (CRT_BINUTILS_SPECS): Likewsie.
850 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
851
9eb061d7
AL
8522007-10-16 Amruth Laxman <amruth.laxman@nsn.com>
853
854 PR target/33594
855 * config/sparc/sparc.h (LOCAL_ALIGNMENT): Define.
856
2e6be65e
EB
8572007-10-16 Eric Botcazou <ebotcazou@libertysurf.fr>
858
859 * dce.c (init_dce): Only initialize the obstacks for the fast pass.
860 (fini_dce): Only release them for the fast pass.
861 (end_ud_dce): Delete.
862 (rest_of_handle_ud_dce): Do not modify df_in_progress.
863 Call fini_dce instead of end_ud_dce.
864 (rest_of_handle_fast_dce): Do not modify df_in_progress.
865 (run_fast_df_dce): Reset df_in_progress to false on exit.
866
215b063c
PB
8672007-10-16 Paolo Bonzini <bonzini@gnu.org>
868 Maxim Kuvyrkov <maxim@codesourcery.com>
869
870 * target.h (unspec_may_trap_p): New target hook.
871 * target-def.h (TARGET_UNSPEC_MAY_TRAP_P): New macro.
872 * targhooks.c (default_unspec_may_trap_p): Default implementation of
873 the hook.
874 * targhooks.h (default_unspec_may_trap_p): Declare it.
875 * doc/tm.texi (TARGET_UNSPEC_MAY_TRAP_P): Document new hook.
876 * rtlanal.c (may_trap_p_1): Use new hook. Make global.
877 * rtl.h (may_trap_p_1): Declare.
878
879 * config/ia64/ia64.c (ia64_unspec_may_trap_p): New function to
880 override default hook implementation.
881 (TARGET_UNSPEC_MAY_TRAP_P): Override default implementation of the
882 hook.
883
e847d3bf
MLI
8842007-10-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
885
886 * doc/invoke.texi (Wextra): Move it just after Wall, list the
887 options enabled by Wextra and mention Wuninitialized.
888
adb417d7
NS
8892007-10-15 Nigel Stephens <nigel@mips.com>
890
891 * config/mips/mips.h (LOCAL_ALIGNMENT): Define.
892
93f238ce
JJ
8932007-10-15 Jakub Jelinek <jakub@redhat.com>
894
895 PR tree-optimization/33136
896 * opts.c (decode_options): Don't enable flag_ipa_type_escape.
897
1432b19f
AO
8982007-10-15 Alexandre Oliva <aoliva@redhat.com>
899
900 PR tree-optimization/33735
901 PR tree-optimization/33572
902 * tree-inline.c (update_ssa_across_abnormal_edges): Revert
903 2007-10-09's change.
904 * except.c (duplicate_eh_regions): Don't look for prev_try
905 beyond ERT_ALLOWED_EXCEPTIONS with an empty list.
906
aa792834
AO
9072007-10-15 Alexandre Oliva <aoliva@redhat.com>
908
909 PR middle-end/33706
910 * tree-inline.c (copy_bb): Use bsi_replace to replace a
911 __builtin_va_arg_pack-containing call stmt.
912
608a3be9
RL
9132007-10-15 Razya Ladelsky <razya@il.ibm.com>
914
915 * matrix-reorg.c (gate_matrix_reorg): Don't comment out whole
916 program flag.
917
e0b55676
JJ
9182007-10-15 Jakub Jelinek <jakub@redhat.com>
919
920 PR tree-optimization/33619
921 * tree-ssa-ter.c (is_replaceable_p): Return false for all
922 calls.
923
c4a79427
DE
9242007-10-15 David Edelsohn <edelsohn@gnu.org>
925
e0b55676 926 * config.gcc (powerpc-ibm-aix5*): Install altivec.h.
c4a79427 927
3e0de255
RG
9282007-10-15 Richard Guenther <rguenther@suse.de>
929
930 * fold-const.c (extract_array_ref): Remove.
931 (fold_comparison): Handle POINTER_PLUS_EXPR with the
932 generic address expression comparison folding. Remove
933 the folding that used extract_array_ref.
934
93b4b4cc
MK
9352007-10-15 Maxim Kuvyrkov <maxim@codesourcery.com>
936
937 PR target/33133
93b4b4cc
MK
938 * haifa-sched.c (process_insn_forw_deps_be_in_spec): Check if
939 speculation type of insn can be changed before trying to do that.
940
64520bdc
EB
9412007-10-15 Eric Botcazou <ebotcazou@libertysurf.fr>
942
943 * dse.c (struct insn_info): Add 'frame_read' field.
944 (scan_insn): For the call to a const function, set frame_read if
945 reload has been run.
946 If the insn reads the frame, kill the frame related stores.
947 (scan_reads_nospill): Likewise.
948
2a19b1a9
JM
9492007-10-14 Jason Merrill <jason@redhat.com>
950
951 * tree-eh.c (optimize_double_finally): Don't assume that the
952 cleanup we're duplicating is only one statement.
953
84fbffb2
KH
9542007-10-14 Kazu Hirata <kazu@codesourcery.com>
955
956 * config/fixed-bit.c, config/i386/cpuid.h, config/i386/i386.c,
957 config/i386/i386.md, config/i386/sse.md, function.c, jump.c,
958 modulo-sched.c, ra-conflict.c, toplev.c, tree-eh.c, tree-sra.c,
959 tree-ssa-dse.c, tree-vect-analyze.c, tree-vect-patterns.c,
960 tree-vect-transform.c: Fix comment typos.
961 * doc/extend.texi: Fix a typo.
962
33fb2a99
KH
963 * c-common.h: Remove the prototype for c_expand_body.
964 * c-tree.h: Remove the prototype for c_disregard_inline_limits.
965 * tree.h: Remove the prototype for fold_build_call_expr.
966
b7cc2adf
KH
967 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN):
968 Remove.
969 * c-tree.h: Remove the prototype for c_cannot_inline_tree_fn.
970
ca94e524
DE
9712007-10-13 David Edelsohn <edelsohn@gnu.org>
972
973 * config/rs6000/aix53.h: New file.
974 * config/rs6000/aix{41,43,51,52}.h (TARGET_ALTIVEC): Define to 0.
975 (TARGET_ALTIVEC_ABI): Same.
976 * config/rs6000/aix.h (TARGET_ALTIVEC): Delete.
977 (TARGET_ALTIVEC_ABI): Delete.
978 * config.gcc (powerpc-ibm-aix5*): Rename to aix5.2. Add new
979 stanza defaulting to aix5.3.
980
8ec12e35
NF
9812007-10-12 Nathan Froyd <froydnj@codesourcery.com>
982
983 * config/i386/i386.md (SI_REG, DI_REG): New constants.
984 (strmov): Use defined constants.
985 (cmpstrnsi): Likewise.
986 * config/i386/i386.c (decide_alg): Use defined constants.
987 (ix86_expand_strlen): Likewise.
988
94a7682d
RS
9892007-10-12 Richard Sandiford <rsandifo@nildram.co.uk>
990
991 * dse.c (find_shift_sequence): Reinstate "<= UNITS_PER_WORD" condition.
992 * var-tracking.c (micro_operation_def): Update comment on u.loc.
993 (mode_for_reg_attrs, var_lowpart): New functions.
994 (add_uses): Consider recording a lowpart of LOC for MO_USE.
995 (add_stores): Likewise MO_SET and MO_COPY. If the source of a set
996 or copy is known, set LOC to the SET that performs the set, instead
997 of the destination.
998 (find_src_status, find_src_set_src): Remove LOC parameter.
999 Replace INSN with the source value.
1000 (compute_bb_dataflow, emit_notes_in_bb): Check for a SET u.loc when
1001 handling MO_SET and MO_COPY. Update the calls to find_src_status
1002 and find_src_set_src.
1003
3c285765
NF
10042007-10-12 Nathan Froyd <froydnj@codesourcery.com>
1005
1006 PR 11001
1007 * config/i386/i386.md (strmov): Check for esi and edi usage.
1008 * config/i386/i386.c (decide_alg): Check whether we can use a
1009 rep prefix and adjust algorithm choice accordingly.
1010 (ix86_expand_strlen): Check for eax, ecx, and edi usage.
1011
d437e14c
KG
10122007-10-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1013
1014 * config/c4x/c4x.md (mulqi3, mulhi3): Use optab_libfunc.
1015
77555c50
KZ
10162007-10-12 Kenneth Zadeck <zadeck@naturalbridge.com>
1017
1018 * global.c (build_insn_chain): Formatting fixes.
1019
7cd13c1c
RG
10202007-10-12 Richard Guenther <rguenther@suse.de>
1021
1022 * tree-ssa-forwprop.c (forward_propagate_into_cond): For
1023 combining both operands require either both have single uses
1024 or combining to a constant.
1025
10372bd4
RG
10262007-10-12 Richard Guenther <rguenther@suse.de>
1027
1028 PR middle-end/26198
1029 * tree-ssa-forwprop.c (can_propagate_from): Do not propagate from
1030 a rhs with side-effects or which is a load.
1031 (forward_propagate_into_cond): Also try combining both operands.
1032
6d3bf849
UB
10332007-10-12 Uros Bizjak <ubizjak@gmail.com>
1034
1035 PR tree-optimization/33742
1036 * tree-vect-transform.c (vectorizable_operation): Return false
1037 if get_vectype_for_scalar_type for scalar_dest can't be determined.
1038 (vectorizable_call): Same for rhs_type and lhs_type.
1039
900461f3
JJ
10402007-10-12 Jakub Jelinek <jakub@redhat.com>
1041
1042 PR tree-optimization/33645
1043 * tree-ssa-live.c (mark_all_vars_used): Add data argument,
1044 pass it to walk_tree.
1045 (mark_all_vars_used_1): Pass data through to mark_all_vars_used.
1046 When calling set_is_used on a VAR_DECL, if data is not NULL and
1047 its DECL_UID is in the bitmap, call mark_all_vars_used on its
1048 DECL_INITIAL after clearing the bit in bitmap.
1049 (remove_unused_locals): Adjust mark_all_vars_used callers.
1050 Instead of removing unused global vars from unexpanded_var_list
1051 immediately record them in bitmap, call mark_all_vars_used on
1052 all used global vars from unexpanded_var_list and only purge
1053 global vars that weren't found used even during that step.
1054
d796bfa9
JDA
10552007-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1056
1057 * gthr-posix.h (__gthread_active_init): Create detached instead of
1058 joinable thread when testing whether threads are active on hppa-hpux.
1059 * gthr-posix95.h (__gthread_active_init): Likewise.
1060
250d125c
KZ
10612007-10-11 Kenneth Zadeck <zadeck@naturalbridge.com>
1062
1063 PR middle-end/33676
1064 * global.c (build_insn_chain): Include insn that occur between
1065 basic blocks.
1066
d1cf5fca
TT
10672007-10-11 Tom Tromey <tromey@redhat.com>
1068
1069 * gengtype-yacc.y: Delete.
1070
29b74761
UB
10712007-10-11 Uros Bizjak <ubizjak@gmail.com>
1072
9d23b02d 1073 * config/i386/i386.md (AX_REG, DX_REG, CX_REG): New constants.
29b74761
UB
1074 * config/i386/i386.c (ix86_function_arg_regno_p, function_arg_32,
1075 function_value_32, function_value_64, function_value_ms_64,
1076 setup_incoming_varargs_64, ix86_expand_prologue, ix86_expand_call,
1077 legitimize_tls_address, x86_this_parameter, x86_output_mi_thunk):
1078 Use new constants.
1079
1ef40d6b
RG
10802007-10-11 Richard Guenther <rguenther@suse.de>
1081
1082 * gcse.c (hash_scan_set): If the next nonnote insn is in
1083 a different basic block insert the set.
1084
20dcff2a
RG
10852007-10-11 Richard Guenther <rguenther@suse.de>
1086
1087 PR middle-end/33724
1088 * tree-cfg.c (one_pointer_to_useless_type_conversion_p): New function.
1089 (verify_gimple_expr): Use it to verify pointer-to types for
1090 ADDR_EXPRs.
1091
31b52b5a
RG
10922007-10-11 Richard Guenther <rguenther@suse.de>
1093
1094 PR c/33726
1095 * c-typeck.c (build_array_ref): Do not strip qualifiers from
1096 the array element type.
1097
50f0f366
EB
10982007-10-11 Eric Botcazou <ebotcazou@libertysurf.fr>
1099
1100 PR rtl-optimization/33638
1101 * dse.c (struct insn_info): Remove 'stack_read' field,
1102 add 'stack_pointer_based' field.
1103 (record_store): For a store with non-constant base, record
1104 whether it is stack pointer based.
1105 (scan_insn): For the call to a const function, remove stack
1106 pointer based stores from the list of local active stores.
1107 (scan_reads_nospill): Delete code dealing with const functions.
1108
abc8b4d9
PB
11092007-10-10 Peter Bergner <bergner@vnet.ibm.com>
1110
1111 * ra-conflict.c (partial_bitnum, max_bitnum): Change type of variables
1112 to HOST_WIDE_INT.
1113 (conflict_p, set_conflict, set_conflicts): Likewise.
1114 * global.c (global_alloc): Likewise.
1115 * ra.h: Update prototypes.
1116
14078ff6
WG
11172007-10-10 Wolfgang Gellerich <gellerich@de.ibm.com>
1118
1119 * opth-gen.awk: Fixed generation of comment stating the origin
1120 of options.h
1121
4b3d1177
KH
11222007-10-10 Kazu Hirata <kazu@codesourcery.com>
1123
1124 Revert:
1125 2007-10-09 Kazu Hirata <kazu@codesourcery.com>
1126 * longlong.h (count_leading_zeros): Replace '{' and '}' with '%{'
1127 and '%}', respectively.
1128
1129 Revert:
1130 2007-10-09 Kazu Hirata <kazu@codesourcery.com>
1131 * config/m68k/m68k.c (print_operand): Handle '{' and '}'.
1132 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Accept '{'
1133 and '}'.
1134 * config/m68k/m68k.md: Replace '{' with '%{' where '{' is
1135 meant to be output.
1136
1137 Revert:
1138 2007-10-07 Kazu Hirata <kazu@codesourcery.com>
1139 * config/m68k/m68k.c, config/m68k/m68k.md: Use the assembly
1140 syntax for ASSEMBLER_DIALECT.
1141 * config/m68k/m68k.h (ASSEMBLER_DIALECT): New.
1142
05223046
RE
11432007-10-10 Revital Eres <eres@il.ibm.com>
1144
1145 * modulo-sched.c (check_nodes_order): Dump the final order of
1146 the nodes.
1147 (get_sched_window): Add dump info.
1148 (calculate_order_params): Dump order params of the nodes.
1149
b7967742 11502007-10-09 Kenneth Zadeck <zadeck@naturalbridge.com>
341f08a3
KZ
1151
1152 PR middle-end/33669
1153 * ra-conflict.c (record_one_conflict_between_regnos,
1154 set_conflicts_for_earlyclobber, global_conflicts): Improved logging.
1155 (global_conflicts): Enhanced incorrect check.
1156
32e26ece
GK
11572007-10-09 Geoffrey Keating <geoffk@apple.com>
1158
c3b07ec2
GK
1159 * dwarf2out.c (output_call_frame_info): FDEs are always emitted
1160 if flag_exceptions is not set.
1161 * config/darwin.c (darwin_emit_unwind_label): Rewrite to use
1162 assemble_name rather than incorrectly emulating it.
1163
32e26ece
GK
1164 * doc/extend.texi (Deprecated Features): Mention that <? and >? and
1165 friends are removed from G++.
1166
384d3837
MLI
11672007-10-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1168
1169 * c-opts.c (c_common_handle_option): -Wnontemplate-friend,
1170 -Wwrite-strings and -Wmultichar are enabled by default, so Wall
1171 enabling them is redundant. Don't check two times for
1172 c_dialect_cxx.
1173
631db56b
L
11742007-10-09 H.J. Lu <hongjiu.lu@intel.com>
1175
1176 * ra-conflict.c (record_one_conflict_between_regnos): Revert
1177 the last change.
1178 (set_conflicts_for_earlyclobber): Likewise.
1179 (global_conflicts): Likewise.
1180
2d3f9198
KH
11812007-10-09 Kazu Hirata <kazu@codesourcery.com>
1182
1183 * longlong.h (count_leading_zeros): Replace '{' and '}' with '%{'
1184 and '%}', respectively.
1185
e477cbcb
KH
11862007-10-09 Kazu Hirata <kazu@codesourcery.com>
1187
1188 * config/m68k/m68k.c (print_operand): Handle '{' and '}'.
1189 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Accept '{'
1190 and '}'.
1191 * config/m68k/m68k.md: Replace '{' with '%{' where '{' is
1192 meant to be output.
1193
b26c6d55
RG
11942007-10-09 Richard Guenther <rguenther@suse.de>
1195
1196 PR middle-end/33692
1197 * gimplify.c (canonicalize_component_ref): Honor qualifiers
1198 of referenced structure and component.
1199
23e7aeea
KZ
12002007-10-09 Kenneth Zadeck <zadeck@naturalbridge.com>
1201
1202 PR middle-end/33669
1203 * ra-conflict.c (record_one_conflict_between_regnos,
1204 set_conflicts_for_earlyclobber, global_conflicts): Improved
1205 logging.
1206 (global_conflicts): Removed incorrect check.
1207
05c42b11
RS
12082007-10-09 Richard Sandiford <rsandifo@nildram.co.uk>
1209
1210 PR tree-optimization/33615
1211 * tree-ssa-pre.c (compute_avail): Don't call make_values_for_stmt
1212 if the statement might throw. Fix formatting.
1213
94172876
RS
12142007-10-09 Richard Sandiford <rsandifo@nildram.co.uk>
1215
1216 PR tree-optimization/33615
1217 * tree-ssa-loop-im.c (movement_possibility): Return MOVE_IMPOSSIBLE
1218 if the rhs might throw.
1219
edbed3d3
JH
12202007-10-09 Jan Hubicka <jh@suse.cz>
1221
1222 * invoke.texi (align-threshold, align-loop-iterations): Document.
1223 * final.c: Include cfgloop.h, params.h
1224 (compute_alignments): Dump decisions and compare them with loop
1225 structure; honor given parameters.
1226 (pass_compute_alignments): New dump file.
1227 * params.def (PARAM_ALIGN_THRESHOLD, PARAM_ALIGN_LOOP_ITERATIONS): New.
1228 * Makefile.in (final.o): Add dependency on cfgloop.h and params.h
1229
8df9c702
JW
12302007-10-09 James E. Wilson <wilson@specifix.com>
1231
1232 PR tree-optimization/33655
1233 PR middle-end/22156
1234 * tree-sra.c (bitfield_overlaps_p): When fld->element is INTEGER_CST,
1235 convert it to bitsizetype before size_binop call.
1236
1e4cc539
AO
12372007-10-09 Alexandre Oliva <aoliva@redhat.com>
1238
1239 PR tree-optimization/33572
1240 * tree-inline.c (update_ssa_across_abnormal_edges): Tolerate
1241 the absence of a corresponding edge from the exit block.
1242
088371ac
AO
12432007-10-09 Alexandre Oliva <aoliva@redhat.com>
1244
1245 PR middle-end/22156
1246 * tree-sra.c (instantiate_element): Use BYTES_BIG_ENDIAN for
1247 bit-field layout.
1248 (sra_build_assignment): Likewise. Set up mask depending on
1249 precision, not type.
1250 (sra_build_bf_assignment): Use BYTES_BIG_ENDIAN. Don't overflow
1251 computing bit masks.
1252 (sra_build_elt_assignment): Don't view-convert from signed to
1253 unsigned.
1254 (sra_explode_bitfield_assignment): Use bit-field type if
1255 possible. Use BYTES_BIG_ENDIAN.
1256
43fd2310
AO
12572007-10-08 Alexandre Oliva <aoliva@redhat.com>
1258
b6a04d96 1259 PR middle-end/22156
43fd2310
AO
1260 * tree-sra.c (scalarize_lsdt): Fix thinko in testing whether
1261 the original stmt can throw.
b6a04d96
AO
1262 (sra_build_bf_assignment): Fix type mismatch when applying negated
1263 mask.
43fd2310 1264
0dd6a144
GK
12652007-10-08 Geoffrey Keating <geoffk@apple.com>
1266
1267 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Register
1268 '#pragma mark' to be executed at preprocessing time.
1269
6524147c
OW
12702007-10-08 Ollie Wild <aaw@google.com>
1271
1272 * varasm.c (compare_constant): Removed call to
1273 lang_hooks.expand_constant.
1274 (copy_constants): Removed call to lang_hooks.expand_constant.
1275 (compute_reloc_for_constant): Removed call to
1276 lang_hooks.expand_constant.
1277 (output_addressed_constants): Removed call to
1278 lang_hooks.expand_constant.
1279 (constructor_static_from_elts_p): Removed call to
1280 lang_hooks.expand_constant.
1281 (output_constant): Removed calls to lang_hooks.expand_constant.
1282 * langhooks.h (struct lang_hooks): Removed field expand_constant.
1283 * langhooks-def.h (lhd_return_tree): Removed.
1284 (LANG_HOOKS_EXPAND_CONSTANT): Removed.
1285 (LANG_HOOKS_INITIALIZER): Removed LANG_HOOKS_EXPAND_CONSTANT.
1286 * langhooks.c (lhd_return_tree): Removed.
1287
b4d4a7d4
MS
12882007-10-08 Mark Shinwell <shinwell@codesourcery.com>
1289
1290 * combine.c (setup_incoming_promotions): Ensure that
1291 arguments that have not undergone mode promotions do not
1292 incorrectly get marked as being sign- or zero-extended.
1293
bd113227
RG
12942007-10-08 Richard Guenther <rguenther@suse.de>
1295
1296 PR middle-end/33693
1297 PR middle-end/33695
1298 PR middle-end/33697
1299 * fold-const.c (fold_binary): Use correct types in folding
1300 of a * (1 << b) to (a << b). Likewise for ~A & ~B to ~(A | B)
1301 and building of RROTATE_EXPR.
1302
8174836f
RG
13032007-10-08 Richard Guenther <rguenther@suse.de>
1304
1305 PR middle-end/33691
1306 PR middle-end/33694
1307 PR middle-end/33696
1308 * fold-const.c (fold_binary): Use the correct types when
1309 folding (A | CST1) & CST2 to (A & CST2) | (CST1 & CST2).
1310 (fold_binary): Use the correct types when folding
1311 (-A) - B to (-B) - A.
1312 (fold_unary): Use the correct types when folding ~(X).
1313
7b6cb843
MLI
13142007-10-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1315
1316 * doc/invoke.texi (Wall): fix formatting issues.
1317
cbc9503d
RS
13182007-10-07 Richard Sandiford <rsandifo@nildram.co.uk>
1319
1320 * simplify-rtx.c (simplify_binary_operation_1): Canonicalize
1321 truncated shift counts.
1322
becb103c
KH
13232007-10-07 Kazu Hirata <kazu@codesourcery.com>
1324
1325 * config/m68k/m68k.c, config/m68k/m68k.md: Use the assembly
1326 syntax for ASSEMBLER_DIALECT.
1327 * config/m68k/m68k.h (ASSEMBLER_DIALECT): New.
1328
14ecc441 13292007-10-06 Eric Botcazou <ebotcazou@adacore.com>
1d8604ec
EB
1330 Nathan Froyd <froydnj@codesourcery.com>
1331
1332 * dwarf2out.c (dwarf2out_frame_init): Check for DWARF2_FRAME_INFO
1333 when determining whether to record INCOMING_RETURN_ADDR_RTX.
1334
2f09ef38
EB
13352007-10-06 Eric Botcazou <ebotcazou@adacore.com>
1336
1337 Revert:
1338 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
1339
1340 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
1341 * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
1342 the function, temporarily point the debug interface to the null one.
1343
835b616d
AO
13442007-10-06 Alexandre Oliva <aoliva@redhat.com>
1345
1346 PR tree-optimization/33655
b6a04d96 1347 PR middle-end/22156
835b616d
AO
1348 * tree-sra.c (bitfield_overlaps_p): Handle array and complex
1349 elements.
1350
e9705dc5
AO
13512007-10-06 Alexandre Oliva <aoliva@redhat.com>
1352
1353 PR tree-optimization/33572
1354 * tree-cfg.c (verify_stmts): Check for missing PHI defs.
1355 * tree-inline.c (update_ssa_across_eh_edges): Renamed to...
1356 (update_ssa_across_abnormal_edges): ... this. Set slots in the
1357 return PHI node.
1358 (copy_edges_for_bb): Handle nonlocal label edges.
1359 (make_nonlocal_label_edges): Deleted.
1360 (optimize_inline_calls): Don't call it.
1361
3913862e
HPN
13622007-10-05 Hans-Peter Nilsson <hp@axis.com>
1363
1364 * gthr-single.h: Revert last change.
1365
1a309dfb
MM
13662007-10-05 Michael Matz <matz@suse.de>
1367
1368 PR middle-end/33667
1369 * lower-subreg.c (decompose_multiword_subregs): Use
1370 validate_unshare_change().
1371
b4da855a
PB
13722007-10-05 Peter Bergner <bergner@vnet.ibm.com>
1373
1374 * ra-conflict.c: Include "sparseset.h".
1375 (conflicts): Change to HOST_WIDEST_FAST_INT.
1376 (allocnos_live): Redefine variable as a sparseset.
1377 (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE, GET_ALLOCNO_LIVE): Delete macros.
1378 (allocno_row_words): Removed global variable.
1379 (partial_bitnum, max_bitnum, adjacency_pool, adjacency): New variables.
1380 (CONFLICT_BITNUM, CONFLICT_BITNUM_FAST): New defines.
1381 (conflict_p, set_conflict_p, set_conflicts_p): New functions.
1382 (record_one_conflict_between_regnos): Cache allocno values and reuse.
1383 Use set_conflict_p.
1384 (record_one_conflict): Update uses of allocnos_live to use
1385 the sparseset routines. Use set_conflicts_p.
1386 (mark_reg_store): Likewise.
1387 (set_reg_in_live): Likewise.
1388 (global_conflicts): Update uses of allocnos_live.
1389 Use the new adjacency list to visit an allocno's neighbors
1390 rather than iterating over all possible allocnos.
1391 Call set_conflicts_p to setup conflicts rather than adding
1392 them manually.
1393 * global.c: Comments updated.
1394 (CONFLICTP): Delete define.
1395 (regno_compare): New function. Add prototype.
1396 (global_alloc): Sort the allocno to regno mapping according to
1397 which basic blocks the regnos are referenced in. Modify the
1398 conflict bit matrix to a compressed triangular bitmatrix.
1399 Only allocate the conflict bit matrix and adjacency lists if
1400 we are actually going to allocate something.
1401 (expand_preferences): Use conflict_p. Update uses of allocnos_live.
1402 (prune_preferences): Use the FOR_EACH_CONFLICT macro to visit an
1403 allocno's neighbors rather than iterating over all possible allocnos.
1404 (mirror_conflicts): Removed function.
1405 (dump_conflicts): Iterate over regnos rather than allocnos so
1406 that all dump output will be sorted by regno number.
1407 Use the FOR_EACH_CONFLICT macro.
1408 * ra.h: Comments updated.
1409 (conflicts): Update prototype to HOST_WIDEST_FAST_INT.
1410 (partial_bitnum, max_bitnum, adjacency, adjacency_pool): Add prototypes.
1411 (ADJACENCY_VEC_LENGTH, FOR_EACH_CONFLICT): New defines.
1412 (adjacency_list_d, adjacency_iterator_d): New types.
1413 (add_neighbor, adjacency_iter_init, adjacency_iter_done,
1414 adjacency_iter_next, regno_basic_block): New static inline functions.
1415 (EXECUTE_IF_SET_IN_ALLOCNO_SET): Removed define.
1416 (conflict_p): Add function prototype.
1417 * sparseset.h, sparseset.c: New files.
1418 * Makefile.in (OBJS-common): Add sparseset.o.
1419 (sparseset.o): New rule.
1420
6aa12f4f
RG
14212007-10-05 Richard Guenther <rguenther@suse.de>
1422
1423 PR middle-end/33666
1424 * fold-const.c (fold_unary): Do not fold (long long)(int)ptr
1425 to (long long)ptr.
1426
1596d61e
MM
14272007-10-05 Michael Matz <matz@suse.de>
1428
1429 PR inline-asm/33600
1430 * function.c (match_asm_constraints_1): Check for input
1431 being used in the outputs.
1432
b691d4b0
RG
14332007-10-05 Richard Guenther <rguenther@suse.de>
1434
1435 * tree-cfg.c (verify_gimple_expr): Accept OBJ_TYPE_REF.
1436
96f38a34
RS
14372007-10-05 Richard Sandiford <rsandifo@nildram.co.uk>
1438
1439 PR target/33635
1440 * config/mips/mips.c (mips_register_move_cost): Rewrite to use
1441 subset checks. Make the cost of FPR -> FPR moves depend on
1442 mips_mode_ok_for_mov_fmt_p.
1443
afd82ef5
DK
14442007-10-04 Doug Kwan <dougkwan@google.com>
1445
1446 * gthr-posix.h (__gthread_cond_broadcast, __gthread_cond_wait,
1447 __gthread_cond_wait_recursive): Add to extend interface for POSIX
1448 conditional variables. (__GTHREAD_HAS_COND): Macro defined to signify
1449 support of conditional variables.
1450 * gthr-posix95.h (__gthread_cond_broadcast, __gthread_cond_wait,
1451 __gthread_cond_wait_recursive): Add to extend interface for POSIX
1452 conditional variables. (__GTHREAD_HAS_COND): Macro defined to signify
1453 support of conditional variables.
1454 * gthr-single.h (__gthread_cond_broadcast, __gthread_cond_wait,
1455 __gthread_cond_wait_recursive): Add to extend interface for POSIX
1456 conditional variables.
1457 * gthr.h: Update comments to document new interface.
1458
79f4ede4
GK
14592007-10-04 Geoffrey Keating <geoffk@apple.com>
1460
1461 * cgraphunit.c (cgraph_build_static_cdtor): Don't set
1462 DECL_IGNORED_P.
1463
8819eb78
AS
14642007-10-04 Anatoly Sokolov <aesok@post.ru>
1465
1466 * config/avr/avr.c (expand_epilogue): Don't set RTX_FRAME_RELATED_P.
1467
7dc83ebc
RG
14682007-10-04 Richard Guenther <rguenther@suse.de>
1469
1470 PR middle-end/33641
1471 * tree-cfg.c (verify_gimple_expr): Operand one of POINTER_PLUS_EXPR
1472 does not need to be of INTEGER_TYPE.
1473 (verify_gimple_2): New function split out from ...
1474 (verify_gimple_1): ... here. ICE if there was an error during
1475 verification.
1476
0a64eeca
MM
14772007-10-04 Michael Matz <matz@suse.de>
1478
1479 PR rtl-optimization/33653
1480 * dce.c (deletable_insn_p_1): Use volatile_refs_p().
1481 * dse.c (scan_insn): Same.
1482
cf909b0d
KH
14832007-10-04 Kazu Hirata <kazu@codesourcery.com>
1484
1485 * config.gcc: Remove USE_GAS for m68k targets.
1486
dc575233
RG
14872007-10-04 Richard Guenther <rguenther@suse.de>
1488
1489 PR tree-optimization/33627
1490 * tree-gimple.h (canonicalize_cond_expr_cond): Declare.
1491 * tree-gimple.c (canonicalize_cond_expr_cond): New function,
1492 split out from ...
1493 * tree-ssa-forwprop.c (combine_cond_expr_cond): ... here.
1494 * tree-ssa-ifcombine.c (ifcombine_iforif): Use it.
1495
40700892
AS
14962007-10-04 Anatoly Sokolov <aesok@post.ru>
1497
1498 * config/avr/avr.c (commands_in_file, commands_in_prologues,
1499 commands_in_epilogues): Remove variables.
1500 (avr_file_start): Remove unneded initializations of commands_in_file,
1501 commands_in_prologues and commands_in_epilogues variables.
1502 (avr_file_end): Remove dead code.
1503
1fae2d80
KH
15042007-10-04 Kazu Hirata <kazu@codesourcery.com>
1505
1506 * config/m68k/m68k.c (m68k_output_movem): Use the MOTOROLA if
1507 MOTOROLA is to true.
1508
0064fbe9
RS
15092007-10-03 Richard Sandiford <rsandifo@nildram.co.uk>
1510
1511 PR target/33635
1512 * config/mips/mips-protos.h (mips_split_64bit_move): Rename to...
1513 (mips_split_doubleword_move): ...this.
1514 * config/mips/mips.c (mips_subword): Extend to handle 64-bit words;
1515 use natural endianness for multi-format FPR values.
1516 (mips_split_64bit_move): Rename to...
1517 (mips_split_doubleword_move): ...this and extend to 64-bit words.
1518 Use move_doubleword_fpr* patterns for moves involving FPRs.
1519 (mips_save_reg): Update the call to mips_split_64bit_move.
1520 (mips_secondary_reload_class): Return NO_REGS for any reload of a
1521 nonzero constant into an FPR if the constant can be forced to memory.
1522 * config/mips/mips.md: Update the splitter calls to
1523 mips_split_64bit_move.
1524 (UNSPEC_LOAD_DF_LOW): Rename to...
1525 (UNSPEC_LOAD_LOW): ...this.
1526 (UNSPEC_LOAD_DF_HIGH): Rename to...
1527 (UNSPEC_LOAD_HIGH): ...this.
1528 (UNSPEC_STORE_DF_HIGH): Rename to...
1529 (UNSPEC_STORE_WORD): ...this.
1530 (SPLITF): New mode iterator.
1531 (HALFMODE): New mode attribute.
1532 (movtf): New expander.
1533 (*movtf_internal): New define_insn_and_split.
1534 (move_doubleword_fpr<mode>): New expander.
1535 (load_df_low, load_df_high, store_df_high, mthc1, mfhc1): Replace
1536 with...
1537 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
1538 (mfhc1<mode>): ...these more general patterns.
1539
92ddef69
AO
15402007-10-03 Alexandre Oliva <aoliva@redhat.com>
1541
1542 * cfgrtl.c (rtl_block_ends_with_call_p): Skip notes at the end.
1543
02a4823b
AO
15442007-10-03 Alexandre Oliva <aoliva@redhat.com>
1545
1546 * gcse.c (hash_scan_set): Insert set in insn before note at
1547 the end of basic block.
1548
05023ea4
SP
15492007-10-03 Sebastian Pop <sebastian.pop@amd.com>
1550
1551 PR tree-optimization/33576
1552 * testsuite/gcc.dg/tree-ssa/pr33576.c: New.
1553 * tree-loop-linear.c (linear_transform_loops): Call remove_iv.
1554 * lambda.h (lambda_loopnest_to_gcc_loopnest): New parameter.
1555 (remove_iv): Declared.
1556 * lambda-code.c (remove_iv): Not static.
1557 (lambda_loopnest_to_gcc_loopnest): New parameter remove_ivs.
1558 Don't remove ivs there, save ivs in the buffer.
1559
a24549d4
JM
15602007-10-03 Jason Merrill <jason@redhat.com>
1561
1562 PR c++/15764
1563 * tree-eh.c (same_handler_p): New fn.
1564 (optimize_double_finally): New fn.
1565 (refactor_eh_r): New fn.
1566 (refactor_eh): New fn.
1567 (pass_refactor_eh): New pass.
1568 * tree-pass.h: Declare it.
1569 * passes.c (init_optimization_passes): Add it.
1570
7a3c4b3e
DK
15712007-10-03 Doug Kwan <dougkwan@google.com>
1572 Richard Guenther <rguenther@suse.de>
1573
1574 PR debug/31899
1575 * dwarf2out.c (reference_to_unused): Disable sanity checking,
1576 be conservative instead.
1577
05dddae1
FXC
15782007-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1579
1580 PR fortran/26682
1581 * doc/invoke.texi (-fwhole-program): Document that Fortran
1582 doesn't support this option.
1583
16089886
RS
15842007-10-02 Richard Sandiford <rsandifo@nildram.co.uk>
1585
1586 PR middle-end/33617
1587 * expr.c (expand_expr_addr_expr_1): Pass CONSTRUCTORs to
1588 expand_expr.
1589
966b774d
DD
15902007-10-02 David Daney <ddaney@avtrex.com>
1591
1592 * config/mips/mips.md (sync_compare_and_swap<mode>): Handle compare
1593 against constant zero.
1594 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Handle constant zero
1595 operand.
1596
ba49cb7b
KZ
15972007-09-02 Kenneth Zadeck <zadeck@naturalbridge.com>
1598
1599 * ra-conflict.c: New file.
1600 * ra.h: New file.
1601 * reload.c (push_reload, find_dummy_reload): Change DF_RA_LIVE
1602 usage to DF_LIVE usage.
3cd7218d 1603 (reload): Remove reference to df_get_live_top.
ba49cb7b
KZ
1604 * rtlanal.c (subreg_nregs_with_regno): New function.
1605 * df-scan.c (df_def_record_1, df_uses_record): Add code to set
1606 DF_REF_EXTRACT, DF_REF_STRICT_LOWER_PART, and DF_REF_SUBREG flags.
1607 (df_has_eh_preds): Removed.
1608 (df_bb_refs_collect, df_bb_refs_collect, df_bb_refs_collect,
1609 df_exit_block_uses_collect): Changed call from df_has_eh_preds to
1610 bb_has_eh_pred.
1611 * global.c (allocno, max_allocno, conflicts, allocno_row_words,
1612 reg_allocno, EXECUTE_IF_SET_IN_ALLOCNO_SET): Moved to ra.h
1613 (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE): Moved to ra-conflicts.c.
1614 (regs_set, record_one_conflict, record_conflicts, mark_reg_store,
1615 mark_reg_clobber, mark_reg_conflicts, mark_reg_death): Deleted.
1616 (global_alloc): Turn off rescanning insns after call to
1617 global_conflicts and added call to set_preferences.
1618 (global_conflicts): Moved to ra-alloc.c.
1619 (set_preferences_1, set_preferences): New function.
1620 (mirror_conflicts): Changed types for various variables.
1621 (mark_elimination): Change DF_RA_LIVE
1622 usage to DF_LIVE usage.
1623 (build_insn_chain): Rewritten from scratch and made local.
1624 (print_insn_chain, print_insn_chains): New functions.
1625 (dump_conflicts): Do not print conflicts for fixed_regs.
1626 (rest_of_handle_global_alloc): Turn off insn rescanning.
1627 * hard-reg-set.h: Fixed comment.
1628 * local-alloc.c (update_equiv_regs): Change DF_RA_LIVE
1629 usage to DF_LIVE usage and delete refs to TOP sets.
1630 (block_alloc): Mark regs as live if they are in the artificial
1631 defs at top of block.
1632 (find_stack_regs): New function.
1633 (rest_of_handle_local_alloc): Changed urec problem to live
1634 problem and do not turn off df rescanning.
1635 * df.h (DF_UREC, DF_UREC_BB_INFO, DF_LIVE_TOP, DF_RA_LIVE_IN,
1636 DF_RA_LIVE_TOP, DF_RA_LIVE_OUT, df_urec_bb_info, df_urec,
1637 df_urec_add_problem, df_urec_get_bb_info, df_has_eh_preds): Removed.
1638 (DF_CHAIN, DF_NOTE, DF_CHAIN): Renumbered.
1639 (DF_REF_EXTRACT, DF_REF_STRICT_LOWER_PART, DF_REF_SUBREG): New
1640 fields in df_ref_flags. The rest have been renumbered.
1641 * init-regs.c (initialize_uninitialized_regs): Enhanced debugging
1642 at -O1.
1643 * rtl.h (subreg_nregs_with_regno): New function.
1644 * df-problems.c: (df_get_live_out, df_get_live_in,
1645 df_get_live_top): Removed reference to DF_RA_LIVE.
1646 (df_lr_reset, df_lr_transfer_function, df_live_free_bb_info,
1647 df_live_alloc, df_live_reset, df_live_local_finalize,
1648 df_live_free): Make top set only if different from in set.
1649 (df_lr_top_dump, df_live_top_dump): Only print top set if
1650 different from in set.
1651 (df_lr_bb_local_compute): Removed unnecessary check.
1652 (df_urec_problem_data, df_urec_set_bb_info, df_urec_free_bb_info,
1653 df_urec_alloc, df_urec_mark_reg_change, earlyclobber_regclass,
1654 df_urec_check_earlyclobber, df_urec_mark_reg_use_for_earlyclobber,
1655 df_urec_mark_reg_use_for_earlyclobber_1, df_urec_bb_local_compute,
1656 df_urec_local_compute, df_urec_init, df_urec_local_finalize,
1657 df_urec_confluence_n, df_urec_transfer_function, df_urec_free,
1658 df_urec_top_dump, df_urec_bottom_dump, problem_UREC,
1659 df_urec_add_problem): Removed.
1660 (df_simulate_fixup_sets): Changed call from df_has_eh_preds to
1661 bb_has_eh_pred.
1662 * Makefile.in (ra-conflict.o, ra.h): New dependencies.
1663 * basic_block.h (bb_has_abnormal_pred): New function.
1664 * reload1.c (compute_use_by_pseudos): Change DF_RA_LIVE
1665 usage to DF_LIVE usage.
1666
f5027409
RE
16672007-10-02 Revital Eres <eres@il.ibm.com>
1668
1669 * config/rs6000/predicates.md (easy_vector_constant): Return false
1670 for 750CL paired vectors.
1671 * config/rs6000/paired.md (movv2sf_paired): Fix move of easy
1672 vector constant.
1673 (vec_initv2sf): Add new description.
1674 (vconcatsf): Likewise.
1675 * config/rs6000/rs6000-protos.h: Declare paired_expand_vector_init.
746025f4 1676 * config/rs6000/rs6000.c (paired_expand_vector_init): New function.
f5027409 1677
9a287593
AO
16782007-10-01 Alexandre Oliva <aoliva@redhat.com>
1679
1680 * tree-ssa-sink.c (sink_code_in_bb): Don't stop sinking after
1681 sinking the last stmt in a BB.
1682
510335c8
AO
16832007-10-01 Alexandre Oliva <aoliva@redhat.com>
1684
1685 PR middle-end/22156
1686 * tree-sra.c (struct sra_elt): Add in_bitfld_block.
1687 (sra_hash_tree): Handle BIT_FIELD_REFs.
1688 (sra_elt_hash): Don't hash bitfld blocks.
1689 (sra_elt_eq): Skip them in parent compares as well. Handle
1690 BIT_FIELD_REFs.
1691 (build_element_name_1): Handle BIT_FIELD_REFs.
1692 (instantiate_element): Propagate nowarn from parents. Create
1693 BIT_FIELD_REF for variables that are widened by scalarization.
1694 Gimple-zero-initialize all bit-field variables that are not
1695 part of parameters that are going to be scalarized on entry.
1696 (instantiate_missing_elements_1): Return the sra_elt.
1697 (canon_type_for_field): New.
1698 (try_instantiate_multiple_fields): New. Infer widest possible
1699 access mode from decl or member type, but clip it at word
1700 size, and only widen it if a field crosses an alignment
1701 boundary.
1702 (instantiate_missing_elements): Use them.
1703 (generate_one_element_ref): Handle BIT_FIELD_REFs.
1704 (scalar_bitfield_p): New.
1705 (sra_build_assignment): Optimize assignments from scalarizable
1706 BIT_FIELD_REFs. Use BITS_BIG_ENDIAN to determine shift
1707 counts.
1708 (REPLDUP): New.
1709 (sra_build_bf_assignment): New. Optimize assignments to
1710 scalarizable BIT_FIELD_REFs.
1711 (sra_build_elt_assignment): New. Optimize BIT_FIELD_REF
1712 assignments to full variables.
1713 (generate_copy_inout): Use the new macros and functions.
1714 (generate_element_copy): Likewise. Handle bitfld differences.
1715 (generate_element_zero): Don't recurse for blocks. Use
1716 sra_build_elt_assignment.
1717 (generate_one_element_init): Take elt instead of var. Use
1718 sra_build_elt_assignment.
1719 (generate_element_init_1): Adjust.
1720 (bitfield_overlap_info): New struct.
1721 (bitfield_overlaps_p): New.
1722 (sra_explode_bitfield_assignment): New. Adjust widened
1723 variables to account for endianness.
1724 (sra_sync_for_bitfield_assignment): New.
1725 (scalarize_use): Re-expand assignment to/from scalarized
1726 BIT_FIELD_REFs. Explode or sync needed members for
1727 BIT_FIELD_REFs accesses or assignments. Use REPLDUP.
1728 (scalarize_copy): Use REPLDUP.
1729 (scalarize_ldst): Move assert before dereference. Adjust EH
1730 handling.
1731 (dump_sra_elt_name): Handle BIT_FIELD_REFs.
1732
a567207e
PB
17332007-10-01 Paolo Bonzini <bonzini@gnu.org>
1734
1735 * simplify-rtx.c (comparison_result, simplify_relational_operation_1):
1736 Rename CR_* constants to CMP_*. Fix spacing.
1737
a1e6d1ce
MLI
17382007-10-01 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1739
1740 PR other/33585
1741 * Makefile.in (build_html_dir/gccinstall): gccinstall.texi needs
1742 to be processed with the special script doc/install.texi2html.
1743
60df726b
MLI
17442007-09-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1745
1746 * doc/invoke.texi (Wall): List the options enabled by Wall.
1747 (Wstrict-aliasing): Add missing @option.
1748
3d30741b
RS
17492007-09-30 Richard Sandiford <rsandifo@nildram.co.uk>
1750
1751 * config/mips/mips.c (mips_split_64bit_move): Use gen_rtx_REG_offset
1752 rather than gen_lowpart to change a register from DImode to DFmode.
1753 (mips_cannot_change_mode_class): Only allow FPRs to change mode if
1754 both FROM and TO are integer modes that are no bigger than 4 bytes.
1755 (mips_mode_ok_for_mov_fmt_p): New function.
1756 (mips_preferred_reload_class): Use it instead of FLOAT_MODE_P.
1757 (mips_secondary_reload_class): Tweak formatting and comments.
1758 Use reg_class_subset_p instead of direct comparisons with
1759 classes. Only allow direct FPR<->FPR moves for modes that
1760 satisfy mips_mode_ok_for_mov_fmt_p. Only allow loads and stores
1761 for 4- and 8-byte types. Handle reloads in which X is an FPR.
1762 * config/mips/mips.md (*movdi_gp32_fp64): Remove f<-f alternative.
1763 (*movdi_64bit): Likewise.
1764 (*movsi_internal): Likewise.
1765 (*movhi_internal): Likewise.
1766 (*movqi_internal): Likewise.
1767
a45db20b
DN
17682007-09-30 Diego Novillo <dnovillo@google.com>
1769
1770 PR 33593
1771 * tree-ssa-ter.c (is_replaceable_p): Return false if STMT may
1772 throw an exception.
1773
94a73152
UB
17742007-09-30 Uros Bizjak <ubizjak@gmail.com>
1775
1776 PR tree-optimization/33597
1777 * tree-vect-analyze.c (vect_build_slp_tree): Check if optab handler
1778 for LSHIFT_EXPR and RSHIFT_EXPR is available for vec_mode.
1779
926f3359
UB
17802007-09-28 Uros Bizjak <ubizjak@gmail.com>
1781
1782 * config/i386/i386.c (ix86_expand_move): Use can_create_pseudo_p ()
1783 instead of variants of (!reload_in_progress && !reload_completed).
1784 (x86_expand_vector_move): Ditto.
1785
6dcee2d6
OW
17862007-09-28 Ollie Wild <aaw@google.com>
1787
1788 Revert
1789 2007-09-27 Ollie Wild <aaw@google.com>
1790
1791 * varasm.c (compare_constant): Removed call to
1792 lang_hooks.expand_constant.
1793 (copy_constants): Removed call to lang_hooks.expand_constant.
1794 (compute_reloc_for_constant): Removed call to
1795 lang_hooks.expand_constant.
1796 (output_addressed_constants): Removed call to
1797 lang_hooks.expand_constant.
1798 (constructor_static_from_elts_p): Removed call to
1799 lang_hooks.expand_constant.
1800 (output_constant): Removed calls to lang_hooks.expand_constant.
1801 * langhooks.h (struct lang_hooks): Removed field expand_constant.
1802 * langhooks-def.h (lhd_return_tree): Removed.
1803 (LANG_HOOKS_EXPAND_CONSTANT): Removed.
1804 (LANG_HOOKS_INITIALIZER): Removed LANG_HOOKS_EXPAND_CONSTANT.
1805 * langhooks.c (lhd_return_tree): Removed.
1806
9c1f1e55
AP
18072007-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
1808
1809 PR target/33347
1810 * config/spu/spu.c (spu_expand_insv): Call copy_rtx on the second
1811 argument to gen_selb.
1812
9c7e83c1
CF
18132007-09-28 Chao-ying Fu <fu@mips.com>
1814
1815 * libgcc-std.ver: Add fixed-point routines to GCC_4.3.0 section.
1816 * doc/libgcc.texi (Fixed-point fractional library routines):
1817 Fix typos for neg and cmp functions.
1818
53220215
MM
18192007-09-28 Michael Matz <matz@suse.de>
1820
1821 PR rtl-optimization/33552
1822 * function.c (match_asm_constraints_1): Check for overlap in
1823 inputs and replace all occurences.
1824
b0aa2390
RS
18252007-09-28 Richard Sandiford <rsandifo@nildram.co.uk>
1826
1827 * config/mips/mips.c (override_options): Fix comment typo.
1828
6bad46f7
JZ
18292007-09-28 Jie Zhang <jie.zhang@analog.com>
1830
1831 * config.gcc (bfin*-linux-uclibc*): Set extra_parts
1832 to "crtbegin.o crtbeginS.o crtend.o crtendS.o".
1833 * config/bfin/t-bfin-linux (crti.o): Don't build.
1834 (crtn.o): Likewise.
1835 (EXTRA_MULTILIB_PARTS): Remove crti.o and crtn.o.
1836 * config/bfin/t-bfin-uclinux (crti.o): Don't build.
1837 (crtn.o): Likewise.
1838 (EXTRA_MULTILIB_PARTS): Remove crti.o and crtn.o.
1839
12487dd0
OW
18402007-09-27 Ollie Wild <aaw@google.com>
1841
1842 * varasm.c (compare_constant): Removed call to
1843 lang_hooks.expand_constant.
1844 (copy_constants): Removed call to lang_hooks.expand_constant.
1845 (compute_reloc_for_constant): Removed call to
1846 lang_hooks.expand_constant.
1847 (output_addressed_constants): Removed call to
1848 lang_hooks.expand_constant.
1849 (constructor_static_from_elts_p): Removed call to
1850 lang_hooks.expand_constant.
1851 (output_constant): Removed calls to lang_hooks.expand_constant.
1852 * langhooks.h (struct lang_hooks): Removed field expand_constant.
1853 * langhooks-def.h (lhd_return_tree): Removed.
1854 (LANG_HOOKS_EXPAND_CONSTANT): Removed.
1855 (LANG_HOOKS_INITIALIZER): Removed LANG_HOOKS_EXPAND_CONSTANT.
1856 * langhooks.c (lhd_return_tree): Removed.
1857
7cefcade
JDA
18582007-09-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1859
1860 PR middle-end/33436
1861 * expr.c (emit_group_load_1): Split constant double when destination
1862 length is half source length.
1863
0da4c1ea
RS
18642007-09-27 Richard Sandiford <rsandifo@nildram.co.uk>
1865
1866 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): New macro.
1867 (mips_cpu_info): Add tune_flags.
1868 (GENERATE_BRANCHLIKELY): Remove TARGET_SR71K check.
1869 * config/mips/mips.c (mips_cpu_info_table): Add tune_flags fields.
1870 Remove end marker.
1871 (override_options): Remove deprecation code. Use branch-likely
1872 instructions for optimize_size or if the tuning flags do not
1873 suggest otherwise. Tweak warning.
1874 (mips_matching_cpu_name_p, mips_parse_cpu): Use ARRAY_SIZE.
1875
c1bb79f4
MK
18762007-09-27 Matthias Klose <doko@ubuntu.com>
1877
1878 * config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
1879 multilib osdirname if it exists.
1880 * config/rs6000/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
1881
e233ac97
ILT
18822007-09-27 Ian Lance Taylor <iant@google.com>
1883
1884 PR tree-optimization/33565
1885 * tree-ssa-loop-ch.c (copy_loop_headers): Set TREE_NO_WARNING on
1886 assignments of comparisons.
1887 * tree-ssa-sccvn.c (simplify_binary_expression): Add stmt
1888 parameter. Change caller. Defer overflow warnings around call to
1889 fold_binary.
1890 * fold-const.c (fold_undefer_overflow_warnings): Don't warn if
1891 TREE_NO_WARNING is set on the statement.
1892 * tree-ssa-forwprop.c
1893 (tree_ssa_forward_propagate_single_use_vars): Don't test
1894 TREE_NO_WARNING when calling fold_undefer_overflow_warnings.
1895 * tree-cfg.c (fold_cond_expr_cond): Likewise.
1896
3c1eb9eb
JM
18972007-09-27 Joseph Myers <joseph@codesourcery.com>
1898
1899 * config/rs6000/rs6000.c (rs6000_legitimize_address): Do not
1900 reduce offset by units of 0x10000 for SPE vector modes or modes
1901 used with E500 double instructions.
1902
39641489
PB
19032007-09-04 Paolo Bonzini <bonzini@gnu.org>
1904
1905 * simplify-rtx.c (comparison_result): New.
1906 (simplify_const_relational_operation): Use it instead of the five
1907 "equal|op[01]ltu?" variables; consequently remove redundant "else"s.
1908 Improve bounds-checking optimizations; remove subsumed POPCOUNT
1909 optimizations. Extract nonzero_address_p optimizations into a
1910 separate "if" together with optimizations where op1 is const0_rtx.
1911 Optimize comparing an IOR with zero. Simplify op0 RELOP op0 for
1912 floating-point arguments too when appropriate. Hoist test for ABS
1913 outside the final switch statement.
1914 * cse.c (fold_rtx): Don't look for an IOR equivalent of
1915 folded_arg0 if we found a constant equivalent. Remove
1916 transformations done in simplify-rtx.c for "op0 RELOP op0".
1917
c94ed7a1
JJ
19182007-09-27 Jakub Jelinek <jakub@redhat.com>
1919
1920 * builtins.c (expand_builtin, expand_builtin_object_size,
1921 expand_builtin_memory_chk, maybe_emit_chk_warning,
1922 maybe_emit_sprintf_chk_warning): Use new %K format string specifier
1923 for diagnostics.
1924 * expr.c (expand_expr_real_1): Likewise.
1925 * langhooks-def.h (struct diagnostic_info): Add forward decl.
1926 (lhd_print_error_function): Add third argument.
1927 * langhooks.h (struct diagnostic_info): Add forward decl.
1928 (struct lang_hooks): Add third argument to print_error_function.
1929 * diagnostic.h (diagnostic_info): Add abstract_origin field.
1930 (diagnostic_last_function_changed, diagnostic_set_last_function): Add
1931 second argument.
1932 (diagnostic_report_current_function): Likewise.
1933 * toplev.c (announce_function): Pass NULL as second argument to
1934 diagnostic_set_last_function.
1935 * diagnostic.c (diagnostic_report_current_function): Add second
1936 argument, pass it as third argument to lang_hooks.print_error_function.
1937 (default_diagnostic_starter): Pass DIAGNOSTIC as second argument
1938 to diagnostic_report_current_function.
1939 (diagnostic_report_diagnostic): Initialize diagnostic->abstract_origin
1940 and message.abstract_origin.
1941 (verbatim): Initialize abstract_origin.
1942 * pretty-print.h (text_info): Add abstract_origin field.
1943 * pretty-print.c (pp_base_format): Handle %K.
1944 * langhooks.c (lhd_print_error_function): Add third argument. If
1945 diagnostic->abstract_origin, print virtual backtrace.
1946 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1947 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Support %K.
1948 (init_dynamic_diag_info): Likewise.
1949
01fdb4cf
DD
19502007-09-26 David Daney <ddaney@avtrex.com>
1951
1952 PR target/33479
1953 * config/mips/mips.md (sync_compare_and_swap<mode>, sync_old_add<mode>,
1954 sync_new_add<mode>, sync_old_<optab><mode>, sync_new_<optab><mode>,
1955 sync_old_nand<mode>, sync_new_nand<mode>,
1956 sync_lock_test_and_set<mode>): Fix '&' constraint modifiers.
1957 Update length attributes.
1958 (sync_add<mode>, sync_sub<mode>, sync_old_sub<mode>,
1959 sync_new_sub<mode>, sync_<optab><mode>, sync_nand<mode>): Update
1960 length attributes.
1961 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP, MIPS_SYNC_OP,
1962 MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND,
1963 MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE): Add
1964 post-loop sync.
1965
e2e79a18
RG
19662007-09-26 Richard Guenther <rguenther@suse.de>
1967
1968 PR tree-optimization/33563
1969 * tree-ssa-dse.c (get_use_of_stmt_lhs): Rename to ...
1970 (get_kill_of_stmt_lhs): ... this. Re-structure. Handle
1971 aggregate stores.
1972 (dse_optimize_stmt): Call get_kill_of_stmt_lhs instead of
1973 get_use_of_stmt_lhs.
1974
7bfcb402
JM
19752007-09-26 Joseph Myers <joseph@codesourcery.com>
1976
1977 PR c/25309
1978 * c-common.c (complete_array_type): Diagnose too-large arrays and
1979 set type to error_mark_node.
1980
15caa2ab
RG
19812007-09-26 Richard Guenther <rguenther@suse.de>
1982
1983 PR tree-optimization/30375
1984 PR tree-optimization/33560
1985 * tree-ssa-dse.c (get_use_of_stmt_lhs): Give up on uses
1986 with calls.
1987
1988 Revert
1989 2006-05-22 Aldy Hernandez <aldyh@redhat.com>
1990
1991 * tree-ssa-dse.c (aggregate_vardecl_d): New.
1992 (dse_global_data): Add aggregate_vardecl field.
1993 (dse_possible_dead_store_p): New.
1994 Add prev_defvar variable.
1995 Allow immediate uses and previous immediate uses to differ
1996 if they are setting different parts of the whole.
1997 (get_aggregate_vardecl): New.
1998 (dse_record_partial_aggregate_store): New.
1999 (dse_whole_aggregate_clobbered_p): New.
2000 (dse_partial_kill_p): New.
2001 Call dse_maybe_record_aggregate_store().
2002 When checking whether a STMT and its USE_STMT refer to the
2003 same memory address, check also for partial kills that clobber
2004 the whole.
2005 Move some variable definitions to the block where they are used.
2006 (aggregate_vardecl_hash): New.
2007 (aggregate_vardecl_eq): New.
2008 (aggregate_vardecl_free): New.
2009 (aggregate_whole_store_p): New.
2010 (tree_ssa_dse): Initialize and free aggregate_vardecl.
2011 Mark which aggregate stores we care about.
2012
f9f3567e
DD
20132007-09-25 DJ Delorie <dj@redhat.com>
2014
2015 PR target/33551
2016 * config/m32c/m32c.c (m32c_immd_dbl_mov): Use INTVAL instead of
2017 XINT.
2018
53a83348
MM
20192007-09-25 Michael Meissner <michael.meissner@amd.com>
2020
5d6f4589 2021 PR target/33524
53a83348
MM
2022 * config/i386/i386.c (ix86_expand_sse5_unpack): Change to call
2023 gen_sse5_pperm_sign_v4si_v2di and gen_sse5_pperm_zero_v4si_v2di
2024 for vector int32 -> int64 conversions. Don't write beyond the end
2025 of the allocated vector for int32 -> int64 conversions.
2026
49e39588
RE
20272007-09-25 Revital Eres <eres@il.ibm.com>
2028
2029 * config/rs6000/paired.h (paired_sel): New.
2030 * config/rs6000/rs6000.c (bdesc_3arg): Add selv2sf4.
2031 (rs6000_expand_ternop_builtin): Pass zero const_double operand
2032 when expanding selv2sf.
2033 * config/rs6000/rs6000.h (rs6000_builtins): Add
2034 PAIRED_BUILTIN_SELV2SF4.
2035
808d6eaa
JM
20362007-09-25 Joseph Myers <joseph@codesourcery.com>
2037
2038 PR c/32295
2039 * c-typeck.c (default_conversion): Call require_complete_type
2040 before perform_integral_promotions.
2041 (build_unary_op): Call require_complete_type except for ADDR_EXPR.
2042 (build_c_cast): Call require_complete_type except for casts to
2043 void types.
2044 (convert_for_assignment): Call require_complete_type.
2045
ea6e0168
RE
20462007-09-25 Revital Eres <eres@il.ibm.com>
2047
2048 * config/spu/spu.md: Fix doloop pattern.
2049
bf3f9581
BS
20502007-09-25 Bernd Schmidt <bernd.schmidt@analog.com>
2051
2052 * config/bfin/bfin.c (expand_prologue_reg_save,
2053 expand_epilogue_reg_restore): Code to save and restore I/M/B/L regs and
2054 ASTAT moved here...
2055 (expand_interrupt_handler_prologue, expand_interrupt_handler_epilogue):
2056 ... from here. New argument ALL; callers changed.
2057 (n_regs_saved_by_prologue): Count ASTAT for plain saveall functions.
2058 (bfin_expand_prologue, bfin_expand_epilogue): Deal with functions that
2059 have the "saveall" attribute.
2060
ab3e1ef6
HPN
20612007-09-25 Hans-Peter Nilsson <hp@bitrange.com>
2062
60e90d09
HPN
2063 * config/mmix/mmix.h (FUNCTION_INCOMING_ARG_REGNO_P): Don't define
2064 bogus target macro.
2065 (INCOMING_REGNO, OUTGOING_REGNO): Define.
2066 * config/mmix/mmix.c (mmix_opposite_regno): New function.
2067 * config/mmix/mmix-protos.h (mmix_opposite_regno): Prototype.
2068
ab3e1ef6
HPN
2069 * config/mmix/mmix.md ("*cmpcc_folded"): In condition, gate
2070 with REG_P tests before REGNO access.
2071
8d2fd9c9
DD
20722007-09-24 DJ Delorie <dj@redhat.com>
2073
2074 PR target/31482
2075 * config/m32c/cond.md (stzx_reversed_<mode>): Add an output
2076 constraint.
2077 (movqicc_<code>_<mode>): Likewise.
2078 (movhicc_<code>_<mode>): Likewise.
2079
c6004917
RIL
20802007-09-24 Rask Ingemann Lambertsen <rask@sygehus.dk>
2081
2082 PR target/33184
2083 * config/m32c/m32c.c (m32c_eh_return_data_regno): Leave an address
2084 register for reload.
2085
18ff3013
DS
20862007-09-24 Danny Smith <dannysmith@user.sourceforge.net>
2087
2088 PR c++/14688
2089 * config/i386/i386.c (ix86_comp_type_attributes): Check
2090 METHOD_TYPE too.
2091
aaca7021
RZ
20922007-09-24 Roman Zippel <zippel@linux-m68k.org>
2093
2094 * config/m68k/m68k.h (ASM_OUTPUT_ALIGN_WITH_NOP): New, use
2095 "move.l %a4,%a4" to produce nops.
2096 * config/m68k/m68k.c (override_options): Reset align options,
2097 if neccessary align macro isn't avaible.
2098
39250081 20992007-09-24 Roman Zippel <zippel@linux-m68k.org>
bd7993c8
RZ
2100
2101 config/m68k/linux.h (PREFERRED_STACK_BOUNDARY): New.
2102
21032007-09-24 Roman Zippel <zippel@linux-m68k.org>
2104
39250081
RZ
2105 * config/m68k/m68k.c (strict_low_part_peephole_ok): Don't leave
2106 the basic block.
2107 * config/m68k/m68k.md (movsi_m68k): Allow certain constant when
2108 reload is completed.
2109 (peephole pattern): Convert most of them to RTL peephole pattern.
2110
67595cbb
RZ
21112007-09-24 Roman Zippel <zippel@linux-m68k.org>
2112
2113 * config/m68k/m68k.c (notice_update_cc): Recognize fp compare
2114 (moved from fp compare patterns).
2115 * config/m68k/m68k.md (cmp<mode>, cmp<mode>_68881, cmp<mode>_cf):
2116 Cleanup predicates to relieve reload.
2117 (conditional_trap): Reject conditional trap with fp condition.
2118 * gcc/config/m68k/predicates.md (fp_src_operand): New, reject
2119 certain constants early.
2120
d5aa0eb1
RZ
21212007-09-24 Roman Zippel <zippel@linux-m68k.org>
2122
2123 * gcc/final.c (final_scan_insn): Remove accidentally duplicated code.
2124
a951757d
AP
21252007-09-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
2126
2127 * config.gcc (powerpc*-*-*): --with-cpu=cell is a 64bit CPU.
2128 Allow --with-tune=cell and --with-cpu=cell.
2129
9c78b944
DE
21302007-09-24 David Edelsohn <edelsohn@gnu.org>
2131
2132 * config/rs6000/rs6000-protos.h (rs6000_emit_swrsqrtsf): Declare.
2133 * config/rs6000/rs6000.opt (swdiv): Change option to ...
2134 (recip): this.
2135 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): New
2136 function.
2137 (TARGET_BUILTIN_RECIPROCAL): Use it.
2138 (rs6000_builtin_expand): Expand recip, recipf, and rsqrtf.
2139 (rs6000_init_builtins): Initialize recip, recipf, and rsqrtf.
2140 (rs6000_emit_swrsqrtsf): New.
2141 * config/rs6000/rs6000.h (rs6000_builtins): Add recip, recipf, and
2142 rsqrtf.
2143 * config/rs6000/rs6000.md (UNSPEC_RSQRT): Define.
2144 (divsf3): Remove swdiv support.
2145 (recipsf3): New.
2146 (rsqrtsf2): New.
2147 (rsqrt_internal1): New.
2148 (divdf3): Remove swdiv support.
2149 (reciptdf3): New.
2150
2dff8956
JJ
21512007-09-24 Jakub Jelinek <jakub@redhat.com>
2152
2153 PR c++/33506
2154 * langhooks.h (struct lang_hooks_for_types): Add type_hash_eq
2155 field.
2156 * langhooks-def.h (LANG_HOOKS_TYPE_HASH_EQ): Define.
2157 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_TYPE_HASH_EQ.
2158 * tree.c (type_hash_eq): For FUNCTION_TYPE use
2159 lang_hooks.type.type_hash_eq in addition to generic tests.
2160
625a2efb
PB
21612007-09-24 Pranav Bhandarkar <pranav.bhandarkar@celunite.com>
2162 Ramana Radhakrishnan <ramana@hercules.pun.celunite.com>
2163
2164 * tree-inline.h (eni_weights): Add field target_builtin_cost to
2165 reflect the cost per call to a target specific builtin.
2166 * tree-inline.c (estimate_num_insns_1): If it is a CALL_EXPR for a
2167 call to a target specific builtin, then use target_builtin_call_cost.
2168 (init_inline_once): Initialize target_builtin_call_cost field.
2169
996caac6
KT
21702007-09-24 Kai Tietz <kai.tietz@onevision.com>
2171
e139c7f9
UB
2172 PR middle-end/33472
2173 * config/i386/i386.c (return_in_memory_ms_64): Handle return types for
2174 complex types.
996caac6 2175
5702b273
L
21762007-09-23 H.J. Lu <hongjiu.lu@intel.com>
2177
2178 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
2179 * configure: Regenerated.
2180
e5901cad
OW
21812007-09-23 Ollie Wild <aaw@google.com>
2182
e139c7f9
UB
2183 * fold-const.c (fold_binary): Fold BIT_AND_EXPR's with a pointer
2184 operand.
e5901cad
OW
2185 (get_pointer_modulus_and_residue): New function.
2186
50b73fcd
RS
21872007-09-23 Richard Sandiford <rsandifo@nildram.co.uk>
2188
2189 * config/mips/mips.c (build_mips16_call_stub): On 64-bit targets,
2190 combine an SC return value into a single register.
2191
e9276c30
RS
21922007-09-23 Richard Sandiford <rsandifo@nildram.co.uk>
2193
2194 * opth-gen.awk (target_flags_explicit): Declare.
2195 * toplev.h (target_flags_explicit): Delete declaration.
2196 * toplev.c (target_flags): Likewise.
2197 * config/mips/mips.h (mips_llsc_setting, mips_llsc): Delete.
2198 (GENERATE_SYNC, GENERATE_LL_SC): Redefine using target_explicit_flags.
2199 Never return true for TARGET_MIPS16.
2200 * config/mips/mips.c (mips_llsc): Delete.
2201 (mips_handle_option): Remove -mllsc handling.
2202 (mips_strip_unspec_address): Tweak comment.
2203 * config/mips/mips.opt (mllsc): Use a target mask.
2204
4923a230
RS
22052007-09-23 Richard Sandiford <rsandifo@nildram.co.uk>
2206
2207 * doc/tm.texi (POINTERS_EXTEND_UNSIGNED): Document extensions to
2208 word_mode as well as Pmode.
2209
208996c7
RS
22102007-09-23 Richard Sandiford <rsandifo@nildram.co.uk>
2211
2212 * function.c (assign_parm_setup_block): Explicitly convert BLKmode
2213 parameters from word_mode to the subword type if such a truncation
2214 is not a no-op.
2215
4c471775
JJ
22162007-09-23 Jakub Jelinek <jakub@redhat.com>
2217
2218 * configure.ac (MAKEINFO): Handle makeinfo version 4.10 and above.
2219 * configure: Regenerated.
2220
f2879759
JH
22212007-09-23 Jan Hubicka <jh@suse.cz>
2222
2223 * params.def (INLINE_CALL_COST): Set to 12.
2224 * invoke.texi (inline-call-cost): Update default value.
2225
4637cb92
EB
22262007-09-23 Eric Botcazou <ebotcazou@adacore.com>
2227
2228 * config/alpha/alpha.md (movti): Use operand_subword for the split.
2229
8eb75619
AZ
22302007-09-23 Ayal Zaks <zaks@il.ibm.com>
2231 Revital Eres <eres@il.ibm.com>
2232
2233 * modulo-sched.c (doloop_register_get): Rewrite the loop which
2234 checks whether the count_reg is found outside the control part.
2235
32eed045
JJ
22362007-09-23 Jakub Jelinek <jakub@redhat.com>
2237
d2af6a68
JJ
2238 * expr.c (expand_expr_real_1) <case CALL_EXPR>: Use get_callee_fndecl
2239 instead of checking CALL_EXPR_FN directly to test for builtins.
2240 If error or warning attributes are present, print
2241 error resp. warning.
2242 * c-common.c (handle_error_attribute): New function.
2243 (c_common_attribute_table): Add error and warning
2244 attributes.
2245 * doc/extend.texi: Document error and warning attributes.
2246
d752cfdb
JJ
2247 * tree.h (block_nonartificial_location): New prototype.
2248 * tree.c (block_nonartificial_location): New function.
2249 * dwarf2out.c (gen_subprogram_die): Add DW_AT_artificial
2250 if artificial attribute is present on abstract inline decl.
2251 * c-common.c (handle_artificial_attribute): New function.
2252 (c_common_attribute_table): Add artificial attribute.
2253 * final.c (override_filename, override_linenum): New variables.
2254 (final_scan_insn): For DBX_DEBUG or SDB_DEBUG, set override_filename
2255 and override_linenum if inside of a block inlined from
2256 __attribute__((__artificial__)) function.
2257 (notice_source_line): Honor override_filename and override_linenum.
2258 * doc/extend.texi: Document __attribute__((__artificial__)).
2259 * config/i386/emmintrin.h: Add __artificial__ attribute to
2260 all __always_inline__ functions.
2261 * config/i386/mmintrin.h: Likewise.
2262 * config/i386/tmmintrin.h: Likewise.
2263 * config/i386/mm3dnow.h: Likewise.
2264 * config/i386/pmmintrin.h: Likewise.
2265 * config/i386/ammintrin.h: Likewise.
2266 * config/i386/xmmintrin.h: Likewise.
2267 * config/i386/smmintrin.h: Likewise.
2268 * config/i386/bmmintrin.h: Likewise.
2269 * config/i386/mmintrin-common.h: Likewise.
2270
32eed045
JJ
2271 PR middle-end/28755
2272 * expr.c (expand_constructor): New function.
2273 (expand_expr_real_1) <case CONSTRUCTOR>: Call it.
2274 (expand_expr_real_1) <case ARRAY_REF>: Call it if VALUE is
2275 CONSTRUCTOR.
2276
f2531eb6
RS
22772007-09-23 Richard Sandiford <rsandifo@nildram.co.uk>
2278
2279 * config/mips/mips.c (dump_constants_1): Generalize to include
2280 fractional and accumulator modes.
2281
254d1646
RS
22822007-09-23 Richard Sandiford <rsandifo@nildram.co.uk>
2283
2284 * config/mips/mips.h (ISA_HAS_DSP, ISA_HAS_DSPR2): New macros.
2285 * config/mips/mips.c (mips_set_mips16_mode): Don't clear the DSP
2286 flags for MIPS16.
2287 (override_options): Check TARGET_HARD_FLOAT_ABI instead of
2288 TARGET_HARD_FLOAT when testing whether -mpaired-single is
2289 supported.
2290 (mips_conditional_register_usage): Check ISA_HAS_DSP instead of
2291 TARGET_DSP.
2292 * config/mips/constraints.md (ka): Check ISA_HAS_DSPR2 instead of
2293 TARGET_DSPR2.
2294 * config/mips/mips.md (ANYF): Require TARGET_HARD_FLOAT for V2SF.
2295 (mulv2sf3, movv2sf, movv2sf_hardfloat_64bit): Require
2296 TARGET_HARD_FLOAT.
2297 (<u>mulsidi3_32bit_internal, <u>msubsidi4, <u>maddsidi4): Check
2298 ISA_HAS_DSPR2 instead of TARGET_HAS_DSPR2.
2299 * config/mips/mips-dsp.md: Use ISA_HAS_DSP instead of TARGET_HAS_DSP
2300 throughout.
2301 * config/mips/mips-dspr2.md: Likewise ISA_HAS_DSPR2 and
2302 TARGET_HAS_DSPR2.
2303 * config/mips/mips-fixed.md: Use ISA_HAS_DSP and ISA_HAS_DSPR2
2304 instead of TARGET_HAS_DSP and TARGET_HAS_DSPR2.
2305 * config/mips/mips-ps-3d.md: Add TARGET_HARD_FLOAT to V2SF patterns.
2306
a7f6bc8c
JM
23072007-09-22 Jason Merrill <jason@redhat.com>
2308
2309 PR c++/19407
2310 * attribs.c (lookup_attribute_spec): Split out...
2311 (decl_attributes): From here.
2312 * tree.h: Declare it.
2313
7dded683
RS
23142007-09-22 Richard Sandiford <rsandifo@nildram.co.uk>
2315
2316 * doc/sourcebuild.texi: Document dg-add-options mips16_attribute.
2317
e1210bd0
EB
23182007-09-22 Eric Botcazou <ebotcazou@adacore.com>
2319
2320 * tree-inline.c (remap_type_1): Correctly chain variants.
2321
b9e67f8b
RG
23222007-09-22 Richard Guenther <rguenther@suse.de>
2323
2324 PR tree-optimization/33146
2325 * fold-const.c (fold_binary): Use the original tree
2326 for negating.
2327 * tree.h (STRIP_SIGN_NOPS): Converting from or to pointer
2328 also changes "sign".
2329
8deb1d31
EB
23302007-09-22 Eric Botcazou <ebotcazou@adacore.com>
2331
2332 PR target/32325
2333 * except.c (finish_eh_generation): Call commit_edge_insertions if
2334 there are insns queued on the entry edge.
2335 * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns on
2336 the entry edge.
2337
db9a0df0
RS
23382007-09-22 Richard Sandiford <rsandifo@nildram.co.uk>
2339
2340 * doc/sourcebuild.texi (dg-add-c99-runtime-options): Document.
2341
2fba4aaa
MM
23422007-09-19 Michael Meissner <michael.meissner@amd.com>
2343
2344 * gcc/config/i386/i386.c: Delete trailing whitespace.
2345 * gcc/config/i386/i386.h: Ditto.
2346 * gcc/config/i386/bmmintrin.h: Ditto.
2347 * gcc/config/i386/sync.md: Ditto.
2348 * gcc/config/i386/ppro.md: Ditto.
2349 * gcc/config/i386/mmx.md: Ditto.
2350 * gcc/config/i386/constraints.md: Ditto.
2351 * gcc/config/i386/sse.md: Ditto.
2352 * gcc/config/i386/athlon.md: Ditto.
2353 * gcc/config/i386/i386.md: Ditto.
2354
91fe0424
RG
23552007-09-21 Richard Guenther <rguenther@suse.de>
2356
2357 PR tree-optimization/33508
2358 * tree-ssa-alias.c (mark_aliases_call_clobbered): Avoid
2359 quadratic loop by keeping a bitmap of variables we have
2360 to clobber all subvariables for.
2361 (set_initial_properties): Likewise.
2362
6eed4bbf
RS
23632007-09-21 Richard Sandiford <rsandifo@nildram.co.uk>
2364
2365 * config/mips/t-sde (TARGET_LIBGCC2_CFLAGS): Delete.
2366
819fec00
NS
23672007-09-20 Nigel Stephens <nigel@mips.com>
2368 Chao-ying Fu <fu@mips.com>
2369
2370 * c-decl.c (finish_declspecs): When _Sat is used without
2371 _Fract or _Accum, set the default type to cts_fract.
2372 This avoids a warning of "type defaults to int".
2373
02668aba
JM
23742007-09-20 Joseph Myers <joseph@codesourcery.com>
2375
2376 * c-decl.c (check_bitfield_type_and_width): Don't allow _Bool
2377 bit-fields wider than one bit.
2378
786025ea
JJ
23792007-09-20 Jakub Jelinek <jakub@redhat.com>
2380
cc459ab4
JJ
2381 PR debug/33316
2382 * dwarf2out.c (modified_type_die): Handle TYPE_DECL with NULL
2383 DECL_NAME.
2384 * dbxout.c (dbxout_type): Likewise.
2385
786025ea
JJ
2386 PR c/33238
2387 PR c/27301
2388 * gimplify.c (gimplify_vla_decl): New function.
2389 (gimplify_decl_expr): Move VLA decl handling to gimplify_vla_decl.
2390 Call it.
2391 (gimplify_target_expr): Handle variable length TARGET_EXPRs.
2392
1ec3b87b
RS
23932007-09-20 Richard Sandiford <rsandifo@nildram.co.uk>
2394
2395 * doc/invoke.texi (-minterlink-mips16): Document.
2396 * config/mips/mips.opt (minterlink-mips16): New option.
2397 * config/mips/mips.c (mips_function_ok_for_sibcall): Handle
2398 -minterlink-mips16
2399
770a9950
JM
24002007-09-20 Joseph Myers <joseph@codesourcery.com>
2401
2402 * doc/extend.texi (Attribute Syntax): Remove old speculative
2403 future direction.
2404
7d4d2832
MS
24052007-09-20 Mark Shinwell <shinwell@codesourcery.com>
2406
2407 * combine.c: Include cgraph.h.
2408 (setup_incoming_promotions): Rework to allow more aggressive
2409 elimination of sign extensions when all call sites of the
2410 current function are known to lie within the current unit.
2411
c6f3019a
RS
24122007-09-20 Richard Sandiford <rsandifo@nildram.co.uk>
2413
2414 * dse.c (find_shift_sequence): No-op rework of control flow.
2415
30244df3
RS
24162007-09-19 Richard Sandiford <rsandifo@nildram.co.uk>
2417
2418 * config/mips/mips.c (build_mips16_call_stub): Tidy. Fix second
2419 GPR for DCmode on 64-bit targets. Remove redundant fallback.
2420
1c50a20a
AP
24212007-09-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
2422
2423 * cfgexpand.c (dump_stack_var_partition): Use the correct
2424 index for the offset.
2425
b486fc0a
JM
24262007-09-19 Joseph Myers <joseph@codesourcery.com>
2427
2428 * config/mips/sde.h: Switch to GPLv3.
2429
34c0750b
EB
24302007-09-19 Eric Botcazou <ebotcazou@adacore.com>
2431
2432 * tree-sra.c (decide_block_copy): Decide if there are groups.
2433
e59d83aa
RZ
24342007-09-19 Roman Zippel <zippel@linux-m68k.org>
2435
2436 * config/m68k/m68k.c (output_move_himode): Remove jump table
2437 recognition.
2438 config/m68k/m68k.md (lea): Likewise.
2439 * config/m68k/m68k.c (print_operand_address): Use simple pc
2440 relative addressing.
2441
980d8882
BS
24422007-09-19 Bernd Schmidt <bernd.schmidt@analog.com>
2443
2444 * doc/tm.texi (IS_ASM_LOGICAL_LINE_SEPARATOR): Document new argument.
e139c7f9
UB
2445 * final.c (IS_ASM_LOGICAL_LINE_SEPARATOR): Provide two-argument
2446 default definition.
980d8882
BS
2447 (asm_insn_count): Pass template as second argument to it.
2448 * config/avr/avr.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
2449 * config/pa/pa.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
2450 * config/stormy16/stormy16.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
2451 * config/cris/cris.h (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
2452 * config/sh/sh.c (IS_ASM_LOGICAL_LINE_SEPARATOR): Likewise.
2453 (sh_insn_length_adjustment): Pass template as second argument to it.
2454 * config/bfin/bfin.h (IS_ASM_LOGICAL_LINE_SEPARATOR): New macro.
2455
4ceb4242
BS
2456 * config/bfin/bfin.md (define_asm_attributes): New.
2457
ea2382be
JZ
24582007-09-19 Jie Zhang <jie.zhang@analog.com>
2459
2460 * config.gcc (bfin*-linux-uclibc*): Add ./linux-sysroot-suffix.h
2461 to tm_file.
2462 * config/bfin/print-sysroot-suffix.sh: New.
2463 * config/bfin/t-bfin-elf (EXTRA_PARTS): Remove.
2464 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, MULTILIB_MATCHES,
2465 MULTILIB_EXCEPTIONS): Redefine with new multilibs.
2466 * config/bfin/t-bfin-uclinux (EXTRA_PARTS): Remove.
2467 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, MULTILIB_MATCHES,
2468 MULTILIB_EXCEPTIONS): Redefine with new multilibs.
2469 * config/bfin/t-bfin-linux (EXTRA_PARTS): Remove.
2470 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, MULTILIB_MATCHES,
2471 MULTILIB_EXCEPTIONS): Redefine with new multilibs.
2472 (linux-sysroot-suffix.h): New target.
2473 * config/bfin/bfin.opt (mcsync-anomaly): Use Var instead of Mask.
2474 (mspecld-anomaly): Likewise.
2475 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Renamed from
2476 (enum bfin_cpu): ... this. Add BFIN_CPU_BF522, BFIN_CPU_BF525,
2477 BFIN_CPU_BF527, BFIN_CPU_BF538, BFIN_CPU_BF539, BFIN_CPU_BF542,
2478 BFIN_CPU_BF544, BFIN_CPU_BF548, and BFIN_CPU_BF549.
2479 (bfin_si_revision): Declare.
2480 (bfin_workarounds): Declare.
2481 (WA_SPECULATIVE_LOADS): Define.
2482 (ENABLE_WA_SPECULATIVE_LOADS): Define.
2483 (WA_SPECULATIVE_SYNCS): Define.
2484 (ENABLE_WA_SPECULATIVE_SYNCS): Define.
2485 * config/bfin/elf.h (STARTFILE_SPEC): Rename crt532.o to basiccrt.o.
2486 (LIB_SPEC): Add %s to the linker scripts.
2487 Use proper linker script for bf522, bf525, bf527,
2488 bf538, bf539, bf542, bf544, bf548, and bf549.
2489 * config/bfin/bfin.c (bfin_si_revision): Define.
2490 (bfin_workarounds): Define.
2491 (struct bfin_cpu): New.
2492 (bfin_cpus): New.
2493 (bfin_handle_option): Handle silicon revision part of -mcpu option.
2494 (override_options): Set bfin_workarounds.
2495 (length_for_loop): Replace TARGET_CSYNC_ANOMALY with
2496 ENABLE_WA_SPECULATIVE_SYNCS, TARGET_SPECLD_ANOMALY with
2497 ENABLE_WA_SPECULATIVE_LOADS.
2498 (bfin_reorg): Likewise.
2499 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2500 macros for bf522, bf525, bf527, bf538, bf539,
2501 bf542, bf544, bf548, and bf549.
2502 Define __SILICON_REVISION__ and __WORKAROUND_* macros if needed.
2503 Don't define __ID_SHARED_LIB__ when -msep-data.
2504 (TARGET_DEFAULT): Define as 0.
2505 (DRIVER_SELF_SPECS): Add -mcpu=bf532 if no -mcpu option.
2506 * doc/invoke.texi (Blackfin Options): Document silicon
2507 revision part of -mcpu option and it now accepts bf522, bf525,
2508 bf527, bf538, bf539, bf542, bf544, bf548, and bf549.
2509
aa317c97
KG
25102007-09-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2511
2512 * alias.c (memory_modified_1): Deconstify.
2513 (memory_modified_in_insn_p): Don't use const_note_stores.
2514 * rtl.h (const_note_stores): Delete.
2515 * rtlanal.c (const_note_stores): Likewise.
2516
bf962a2a
RS
25172007-09-18 Richard Sandiford <rsandifo@nildram.co.uk>
2518
2519 * dse.c (find_shift_sequence): Temporarily revert to forbidding
2520 word shifts.
2521
e2972de5
RIL
25222007-09-18 Rask Ingemann Lambertsen <rask@sygehus.dk>
2523
2524 PR target/33388
2525 PR target/33397
2526 * config/fr30/fr30.md (addsi3): Check REG_P() before calling REGNO().
2527 (addsi_small_int): Likewise.
2528 (addsi_big_int): Use rtx_equal_p() instead of REGNO() comparison.
2529 (one_cmplsi2): Likewise.
2530 (negsi2): Delete.
2531 (enter_func): Expand insn using hard_frame_pointer_rtx and
2532 stack_pointer_rtx.
2533 (*enter_func): New.
2534 * config/fr30/fr30.c (fr30_expand_prologue): Check for
2535 hard_frame_pointer_rtx instead of using REGNO() check.
2536 Properly sign extend GEN_INT() argument.
2537
da398bb5
RZ
25382007-09-18 Roman Zippel <zippel@linux-m68k.org>
2539
2540 * config/m68k/m68k.c (override_options): Remove USE_GAS,
2541 use %. syntax.
2542 (output_dbcc_and_branch, output_scc_di): Replace all jbcc
2543 alternatives with just jcc.
2544 * config/m68k/m68k.md (addsi_lshrsi_31, beq0_di, bne0_di,
2545 bge0_di, blt0_di, bgtu, bltu, bgeu, bleu, bgtu_rev,
2546 bltu_rev, bgeu_rev, bleu_rev, jump, dbne_hi, dbne_si,
2547 dbge_hi, dbge_si): Likewise.
2548
09e21d09
RZ
25492007-09-18 Roman Zippel <zippel@linux-m68k.org>
2550
2551 * config/m68k/m68k.md (beq, bne, bgt, blt, bge, ble, bordered,
2552 bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt, beq_rev,
2553 bne_rev, bgt_rev, blt_rev, bge_rev, ble_rev, bordered_rev,
2554 bunordered_rev, buneq_rev, bunge_rev, bungt_rev, bunle_rev,
2555 bunlt_rev, bltgt_rev): Replace all fbcc with fjcc.
2556
8c5c99dc
MK
25572007-09-18 Maxim Kuvyrkov <maxim@codesourcery.com>
2558
2559 * config/m68k/m68k-devices.def (51qe): New device.
2560 * config/m68k/m68k.c (FL_FOR_isa_c): Remove division unit. Add it
2561 to all uses of FL_FOR_isa_c for compatibility.
2562 (all_microarchs): Add cfv1 microarchitecture.
2563 (m68k_handle_option): Handle m51qe option.
2564 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Handle 51QE.
2565 (TUNE_CFV1): New macro.
2566 (enum uarch_type): Add ucfv1.
2567 * doc/invoke.texi: Document 51qe device and cfv1 microarchitecture.
2568
efe9e829
RG
25692007-09-18 Richard Guenther <rguenther@suse.de>
2570
2571 PR tree-optimization/31863
2572 * tree-ssa-structalias.c (create_variable_info_for): Always
2573 free the fieldstack.
2574
c55f4e7c
DN
25752007-09-18 Dorit Nuzman <dorit@il.ibm.com>
2576
2577 * opts.c (decode_options): Enable vectorization under -O3.
2578
fe4fefa0
RG
25792007-09-18 Richard Guenther <rguenther@suse.de>
2580
2581 PR tree-optimization/33340
2582 * tree-ssa-sccvn.c (set_ssa_val_to): Do not set values to
2583 SSA_NAMEs that occur in abnormal PHI nodes.
2584
0e014996
KG
25852007-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2586
2587 * tree-cfg.c (is_ctrl_altering_stmt, tree_block_ends_with_call_p):
2588 Don't use const_get_call_expr_in.
2589 * tree-gimple.c (const_get_call_expr_in): Delete.
2590 * tree-gimple.h (const_get_call_expr_in): Likewise.
2591
c9b69ba2
RS
25922007-09-18 Richard Sandiford <rsandifo@nildram.co.uk>
2593
2594 * df-scan.c (df_notes_rescan): Do nothing if the instruction does
2595 not yet have a basic block.
2596 * dse.c (find_shift_sequence): Don't set DF_NO_INSN_RESCAN.
2597
a765d68e
RS
25982007-09-18 Richard Sandiford <rsandifo@nildram.co.uk>
2599
2600 * config/mips/mips.c (mips_file_start): Add ".previous" directives
2601 to both ".section"s.
2602
f5678792
RS
26032007-09-17 Richard Sandiford <rsandifo@nildram.co.uk>
2604
2605 * config/mips/mips.c (mips_output_mi_thunk): Use
2606 mips_function_ok_for_sibcall and const_call_insn_operand
2607 to determine if a direct sibcall is allowed. Use
2608 mips_classify_symbol to determine a global pointer is needed.
2609
ec49e31c
RS
26102007-09-17 Richard Sandiford <rsandifo@nildram.co.uk>
2611
2612 * config/mips/mips.md (*clear_upper32): Use "W" as the memory operand.
2613
154e4a0a
CF
26142007-09-17 Chao-ying Fu <fu@mips.com>
2615 Nigel Stephens <nigel@mips.com>
2616
2617 * config/fixed-bit.h: New file.
2618 * config/fixed-bit.c: New file.
2619 * doc/libgcc.texi (Fixed-point fractional library routines): New node.
2620
abc2dd3c
JJ
26212007-09-18 Jakub Jelinek <jakub@redhat.com>
2622
9cef5f55
JJ
2623 * c-format.h (format_kind_info): Add alloc_char field.
2624 * c-format.c (scanf_flag_specs): Add 'm'.
2625 (scanf_flag_pairs): Add 'a', 'm' pair.
2626 (scan_char_table): Allow 'm' modifier for c, s, [, C and S.
2627 (format_types_orig): Add alloc_char fields.
2628 (check_format_info_main): Rename aflag to alloc_flag.
2629 Handle fki->alloc_char. modifier after width and before length
2630 modifiers. Move FMT_FLAG_SCANF_A_KLUDGE handling before
2631 length modifiers as well.
2632 * config/sol2-c.c (solaris_format_types): Add alloc_char field.
2633
abc2dd3c
JJ
2634 PR middle-end/33423
2635 * builtins.c (expand_builtin_memory_chk): Handle COMPOUND_EXPRs
2636 returned by build_call_expr.
2637
93a85f02
EB
26382007-09-17 Eric Botcazou <ebotcazou@adacore.com>
2639
2640 * tree-sra.c (maybe_lookup_element_for_expr) <COMPONENT_REF>: Return
2641 NULL for variable-sized records too.
2642 (sra_walk_expr) <COMPONENT_REF>: Stop at variable-sized records too.
2643
14f87433
TT
26442007-09-17 Tom Tromey <tromey@redhat.com>
2645
2646 * c-decl.c (pushdecl): Don't set DECL_LANG_SPECIFIC.
2647 (c_builtin_function): Likewise.
2648 (grokdeclarator): Likewise.
2649
90b1c344
ZD
26502007-09-17 Zdenek Dvorak <ook@ucw.cz>
2651
2652 PR rtl-optimization/26449
2653 * loop-invariant.c (move_invariant_reg): Do not use force_operand.
2654 (seq_insns_valid_p): Removed.
2655
6e872811
EB
26562007-09-17 Eric Botcazou <ebotcazou@adacore.com>
2657
2658 * tree-nomudflap.c (gate_mudflap): New static function.
2659 (pass_mudflap_1): Use it as gate function.
2660 (pass_mudflap_2): Likewise.
2661
346d3923
JH
26622007-09-17 Jan Hubicka <jh@suse.cz>
2663
2664 PR middle-end/33348
2665 PR target/33406
2666 * loop-invariant.c (move_invariant_reg): Unshare sequence.
2667
42cbdeac
VK
26682007-09-17 Victor Kaplansky <victork@il.ibm.com>
2669
2670 PR tree-optimization/33319
2671 * tree-vect-analyze.c (vect_same_range_drs): New.
2672 (vect_vfa_range_equal): New.
2673 (vect_is_duplicate_ddr): Removed.
2674 (vect_mark_for_runtime_alias_test): Do not perform marking when
2675 optimizing for size or max_param for alias checking is zero.
2676 Move the function before vect_analyze_data_ref_dependence.
2677 (vect_analyze_data_ref_dependence): Add call to
2678 vect_mark_for_runtime_alias_test in two cases when dependence
2679 is not clear.
2680 (vect_analyze_data_ref_dependences): Do not call to
2681 vect_mark_for_runtime_alias_test.
2682 (vect_prune_runtime_alias_test_list): New.
2683 (vect_analyze_loop): Add call to vect_prune_runtime_alias_test_list.
2684 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
2685 Update vec_outside_cost.
2686 (vect_vfa_segment_size): More compact code, use TYPE_SIZE_UNIT.
2687 (vect_create_cond_for_alias_checks): Build the base address of data
2688 reference from DR_GROUP_FIRST_DR.
2689 (vect_loop_versioning): New.
2690 (vect_transform_loop): Add a call to vect_loop_versioning.
2691 Remove factored out code.
2692
b62a2e15
JDA
26932007-09-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2694
2695 PR middle-end/33273
2696 * expr.c (store_expr): Call adjust_address to change mode of dest_mem
2697 to BLKmode.
2698
348eea5f
RS
26992007-09-16 Richard Sandiford <rsandifo@nildram.co.uk>
2700
2701 * dse.c (find_shift_sequence): Allow word as well as subword shifts.
2702 Do the tentative shift expansion with the DF_NO_INSN_RESCAN flag set.
2703 Fix the call to insn_rtx_cost. Skip access sizes that require a
2704 real truncation of the store register. Use convert_move instead
2705 of gen_lowpart when narrowing the result.
2706 (replace_read): Use convert_move instead of gen_lowpart when
2707 narrowing the store rhs.
2708
7ed67b7a
RS
27092007-09-16 Richard Sandiford <rsandifo@nildram.co.uk>
2710
2711 * config/mips/mips.md (SHORT): Fix long line.
2712 (SUBDI): New mode iterator. Extend the shift-and-truncate insns
ce616dd5 2713 to QImode and HImode.
7ed67b7a 2714
0dc31782
RS
27152007-09-16 Richard Sandiford <rsandifo@nildram.co.uk>
2716
2717 * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Define.
2718
5f40b3cb
ZD
27192007-09-15 Zdenek Dvorak <ook@ucw.cz>
2720
2721 * tree-parloops.c: New file.
2722 * tree-ssa-operands.h (free_stmt_operands): Declare.
2723 * tree-ssa-loop-manip.c (split_loop_exit_edge): Return the new basic
2724 block.
2725 * tree-pass.h (pass_parallelize_loops): Declare.
2726 * omp-low.c (expand_omp_parallel, expand_omp_for): Update SSA form for
2727 virtual operands.
2728 (build_omp_regions_1): Allow analysing just a single OMP region and
2729 its subregions.
2730 ( build_omp_regions_root, omp_expand_local): New functions.
2731 (build_omp_regions): Add argument to build_omp_regions_1 call.
2732 * builtins.def (DEF_GOMP_BUILTIN): Initialize OMP builtins when
2733 autoparallelization is run.
2734 * timevar.def (TV_TREE_PARALLELIZE_LOOPS): New.
2735 * tree-ssa-loop.c (gate_tree_parallelize_loops, tree_parallelize_loops,
2736 pass_parallelize_loops): New.
2737 * common.opt (ftree-parallelize-loops): New.
2738 * tree-flow.h (omp_expand_local, tree_duplicate_sese_tail,
2739 parallelize_loops): Declare.
2740 (add_phi_args_after_copy, split_loop_exit_edge): Declaration changed.
2741 * Makefile.in (tree-parloops.o): Added.
2742 * tree-cfg.c (add_phi_args_after_copy_edge, tree_duplicate_sese_tail):
2743 New functions.
2744 (add_phi_args_after_copy_bb): Use add_phi_args_after_copy_edge.
2745 (add_phi_args_after_copy): Call add_phi_args_after_copy_edge for
2746 one extra edge as well.
2747 (tree_duplicate_sese_region): Add argument to add_phi_args_after_copy.
2748 Use VEC_free to free doms vector.
2749 (move_block_to_fn): Update loop info. Remove phi nodes for virtual
2750 operands. Recompute operand caches in the new function.
2751 (move_sese_region_to_fn): Update loop info.
2752 * passes.c (init_optimization_passes): Add pass_parallelize_loops.
2753 * tree-ssa-operands.c (free_stmt_operands): New function.
2754
2755 * doc/passes.texi: Document autoparallelization.
2756 * doc/invoke.texi (-ftree-parallelize-loops): New option.
2757
2ae88ecd
JDA
27582007-09-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2759
2760 PR target/33062
e139c7f9
UB
2761 * pa.c (function_value): Use GET_MODE_BITSIZE instead of
2762 TYPE_PRECISION.
2ae88ecd 2763
4934454b
DN
27642007-09-15 Dorit Nuzman <dorit@il.ibm.com>
2765
2766 * tree-vect-transform.c (vect_get_vec_defs_for_stmt_copy): check if
2767 the VEC is not NULL.
2768 (vectorizable_type_demotion, vectorizable_type_promotion): Check that
2769 get_vectype_for_scalar_type succeeded.
2770 (vectorizable_conversion): Likewise.
2771
3f225aab
JH
27722007-09-14 Jan Hubicka <jh@suse.cz>
2773
2774 * config/i386/i386.md (*floatdi<mode>2_i387): Guard against
2775 TARGET_64BIT.
2776
21da84bd
UB
27772007-09-14 Uros Bizjak <ubizjak@gmail.com>
2778
2779 PR target/33438
e139c7f9
UB
2780 * config/i386/i386.md (fmodxf3): Copy operands[2] to temporary
2781 register when operands[2] equals operands[1].
21da84bd
UB
2782 (remainderxf3): Ditto.
2783
56e449d3
SL
27842007-09-14 Sandra Loosemore <sandra@codesourcery.com>
2785 Nigel Stephens <nigel@mips.com>
2786
2787 * doc/tm.texi (LIBGCC2_UNWIND_ATTRIBUTE): Document.
2788 * unwind-generic.h (LIBGCC2_UNWIND_ATTRIBUTE): Define.
2789 (_Unwind_RaiseException): Add LIBGCC2_UNWIND_ATTRIBUTE to
2790 declaration.
2791 (_Unwind_ForcedUnwind): Likewise.
2792 (_Unwind_Resume): Likewise.
2793 (_Unwind_Resume_or_Rethrow): Likewise.
2794 (_Unwind_Backtrace): Likewise.
2795 (_Unwind_SjLj_RaiseException): Likewise.
2796 (_Unwind_SjLj_ForcedUnwind): Likewise.
2797 (_Unwind_SjLj_Resume): Likewise.
2798 (_Unwind_SjLj_Resume_or_Rethrow): Likewise.
2799 * unwind.inc (_Unwind_RaiseException): Add LIBGCC2_UNWIND_ATTRIBUTE
2800 to definition.
2801 (_Unwind_ForcedUnwind): Likewise.
2802 (_Unwind_Resume): Likewise.
2803 (_Unwind_Resume_or_Rethrow): Likewise.
2804 (_Unwind_Backtrace): Likewise.
2805 * unwind-compat.c (_Unwind_Backtrace): Likewise.
2806 (_Unwind_ForcedUnwind): Likewise.
2807 (_Unwind_RaiseException): Likewise.
2808 (_Unwind_Resume): Likewise.
2809 (_Unwind_Resume_or_Rethrow): Likewise.
2810
2811 * config/mips/mips.h (LIBGCC2_UNWIND_ATTRIBUTE): Define to force
2812 nomips16 mode when IN_LIBGCC2 with hard float.
2813
5baa7f6f
RS
28142007-09-14 Richard Sandiford <rsandifo@nildram.co.uk>
2815
2816 * config/mips/sdemtk.opt: Update to GPLv3.
2817 * config/mips/sdemtk.h: Likewise.
2818
9303e5df
NS
28192007-09-14 Nigel Stephens <nigel@mips.com>
2820
2821 * config.gcc (mips*-*-linux*): Recognise mipsisa32r2 and set
2822 MIPS_ISA_DEFAULT appropriately. Don't make soft-float the default
2823 for mipsisa32-*-linux*.
2824
d9dced13
RS
28252007-09-14 Nigel Stephens <nigel@mips.com>
2826 David Ung <davidu@mips.com>
2827 Thiemo Seufer <ths@mips.com>
2828 Richard Sandiford <richard@codesourcery.com>
2829
2830 * config.gcc (mips*-sde-elf*): Add support for the SDE C libraries.
2831 * configure.ac: Add a mipssde threading type.
2832 * configure: Regenerate.
2833 * config/mips/sdemtk.h: New file.
2834 * config/mips/t-sdemtk: Likewise.
2835 * config/mips/sdemtk.opt: Likewise.
2836 * gthr-mipssde.h: Likewise.
2837 * config/mips/sde.h (FUNCTION_PROFILER): Move to config/mips/sdemtk.h.
2838 * config/mips/mips.h (MIPS_SAVE_REG_FOR_PROFILING_P): New macro.
2839 (MIPS_ICACHE_SYNC): New macro, split from ...
2840 * config/mips/mips.md (clear_cache): ...here.
2841 * config/mips/mips.c (mips_save_reg_p): Check
2842 MIPS_SAVE_REG_FOR_PROFILING_P on profiled functions.
2843 (build_mips16_function_stub): Use targetm.strip_name_encoding.
2844 (build_mips16_call_stub): Likewise.
2845
d6aec9aa
RS
28462007-09-14 Richard Sandiford <richard@codesourcery.com>
2847
2848 * Makefile.in (stmp-int-hdrs): Depend on fixinc_list.
2849
2951f79b
JJ
28502007-09-14 Jakub Jelinek <jakub@redhat.com>
2851
2852 PR target/32337
2853 * config/ia64/ia64.c (find_gr_spill): Don't decrement
2854 current_frame_info.n_local_regs. Don't return emitted local
2855 regs.
2856 (ia64_compute_frame_size): Improve unwind hack to put
2857 RP, PFS, FP in that order by allowing some of the registers
2858 been already emitted, as long as they are emitted to the
2859 desired register.
2860
d9933b9d
UW
28612007-09-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2862
2863 * config/spu/vmx2spu.h (vec_extract, vec_insert, vec_lvlx,
2864 vec_lvlxl, vec_lvrx, vec_lvrxl, vec_promote, vec_splats,
2865 vec_stvlx, vec_stvlxl, vec_stvrx, vec_stvrxl): New intrinsics.
2866
8660aaae
EC
28672007-09-13 Eric Christopher <echristo@apple.com>
2868 Kenneth Zadeck <zadeck@naturalbridge.com>
2869
2870 * dse.c (find_shift_sequence): New function.
2871 (replace_read): Add case to remove read if it requires shift.
2872 * config/i386/i386.c (ix86_expand_prologue): Fixed typo in comment.
2873
46c2514e
TT
28742007-09-13 Tom Tromey <tromey@redhat.com>
2875
2876 * c-common.c (fname_as_string): Update.
2877 * c-parser.c (c_parser) <lex_untranslated_string>: New field.
2878 (c_lex_one_token): Update. Add 'parser' argument.
2879 (c_parser_simple_asm_expr): Update.
2880 (c_parser_attributes): Update.
2881 (c_parser_asm_statement): Update.
2882 (c_parser_asm_operands): Update.
2883 (c_parser_peek_token): Update.
2884 (c_parser_peek_2nd_token): Update.
2885 * c-lex.c (c_lex_string_translate): Remove.
2886 (c_lex_return_raw_strings): Likewise.
2887 (c_lex_with_flags): Added 'lex_flags' argument.
2888 (lex_string): Added 'translate' argument.
2889 * c-pragma.h (c_lex_with_flags): Update.
2890 (c_lex_string_translate, c_lex_return_raw_strings): Remove.
2891 (C_LEX_STRING_NO_TRANSLATE): New define.
2892 (C_LEX_RAW_STRINGS): Likewise.
2893
1d7d5ac4
BS
28942007-09-13 Bernd Schmidt <bernd.schmidt@analog.com>
2895
2896 From Jie Zhang:
2897 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_ONES,
2898 BFIN_BUILTIN_CPLX_MUL_16_S40, BFIN_BUILTIN_CPLX_MAC_16_S40,
2899 BFIN_BUILTIN_CPLX_MSU_16_S40, and BFIN_BUILTIN_CPLX_SQU.
2900 (bfin_init_builtins): Initialize __builtin_bfin_ones,
2901 __builtin_bfin_min_fr1x16, __builtin_bfin_max_fr1x16,
2902 __builtin_bfin_min_fr1x32, __builtin_bfin_max_fr1x32,
2903 __builtin_bfin_cmplx_add, __builtin_bfin_cmplx_sub,
2904 __builtin_bfin_cmplx_mul_s40, __builtin_bfin_cmplx_mac_s40,
2905 __builtin_bfin_cmplx_msu_s40 and __builtin_bfin_csqu_fr16.
2906 (bdesc_1arg): Add __builtin_bfin_ones.
2907 (bfin_expand_builtin): Expand __builtin_bfin_cmplx_mul_s40,
2908 __builtin_bfin_cmplx_mac_s40, __builtin_bfin_cmplx_msu_s40,
2909 and __builtin_bfin_csqu_fr16.
2910 * config/bfin/bfin.md (UNSPEC_ONES): New constant.
2911 (ones): New define_insn.
2912 (ssaddhi3_parts): New define_insn.
2913 (sssubhi3_parts): New define_insn.
2914 (flag_mulhi_parts): New define_insn.
2915
eae8e474
SP
29162007-09-13 Seongbae Park <seongbae.park@gmail.com>
2917
2918 * common.opt (femit-class-debug-always): Turn off by default.
2919
6ed44ca1
BS
29202007-09-13 Bernd Schmidt <bernd.schmidt@analog.com>
2921
2922 * config/bfin/bfin.md (reload_outpdi, reload_inpdi): New patterns.
2923 * config/bfin/bfin.c (bfin_secondary_reload): Make sure we use them.
2924
468b40bc
JW
29252007-09-13 James E. Wilson <wilson@specifix.com>
2926
2927 PR tree-optimization/33389
2928 * tree-ssa-operands.c (append_vuse): If ann->in_vdef_list true,
2929 then set build_loads before returning.
2930
f29adf5b
SL
29312007-09-13 Sandra Loosemore <sandra@codesourcery.com>
2932 David Ung <davidu@mips.com>
2933
2934 * config/mips/mips.h (ASM_OUTPUT_REG_PUSH): Replace {d}subu with
2935 {d}addiu and a negative immediate such that it works with MIPS16
2936 instructions.
2937
1f1752ec
L
29382007-09-13 H.J. Lu <hongjiu.lu@intel.com>
2939
2940 PR bootstrap/33418
2941 * configure.ac (ld_vers): Support Linux linker.
2942 * configure: Regenerated.
2943
9a6dfb47
RS
29442007-09-13 Richard Sandiford <richard@codesourcery.com>
2945 Sandra Loosemore <sandra@codesourcery.com>
2946
2947 * config/mips/mips.h (SYMBOL_FLAG_MIPS16_FUNC): Delete.
2948 (SYMBOL_REF_MIPS16_FUNC_P): Delete.
2949 * config/mips/mips.c (mips_attribute_table): Turn mips16 and
2950 nomips16 into decl attributes.
2951 (TARGET_INSERT_ATTRIBUTES): Override.
2952 (TARGET_MERGE_DECL_ATTRIBUTES): Likewise.
2953 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Always return true.
2954 (mips_mips16_type_p, mips_nomips16_type_p): Delete in favor of...
2955 (mips_mips16_decl_p, mips_nomips16_decl_p): ...these new functions.
2956 (mips_comp_type_attributes): Remove mips16 and nomips16 handling.
2957 (mips_use_mips16_mode_p): Reimplement as a function that takes
2958 a decl and considers only decl attributes. If the decl is nested
2959 function, use its parent attributes.
2960 (mips_function_ok_for_sibcall): Use mips_use_mips16_mode_p
2961 instead of SYMBOL_REF_MIPS16_FUNC_P.
2962 (mips_set_mips16_mode): Move call to sorry here from old
2963 mips_use_mips16_mode_p.
2964 (mflip_mips16_entry): New structure.
2965 (mflip_mips16_htab): New variable.
2966 (mflip_mips16_htab_hash, mflip_mips16_htab_eq): New functions.
2967 (mflip_mips16_use_mips16_p, mips_insert_attributes): Likewise.
2968 (mips_merge_decl_attributes): New function.
2969 (mips_set_current_function): Reinstate call to mips_set_mips16_mode.
2970 Use mips_use_mips16_mode_p.
2971 (mips_output_mi_thunk): Use mips_use_mips16_mode_p instead of
2972 SYMBOL_REF_MIPS16_FUNC_P.
2973 (mips_encode_section_info): Don't set SYMBOL_FLAG_MIPS16_FUNC.
2974
0ad7e054
RS
29752007-09-13 Richard Sandiford <richard@codesourcery.com>
2976
2977 * c-parser.c (c_parser_struct_declaration): Check for a null return.
2978
e9c15f6e
FXC
29792007-09-13 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2980
2981 PR driver/33309
2982 * gcc.c (xputenv): Make argument const, and use CONST_CAST.
2983
04e1d06b
MM
29842007-09-12 Michael Meissner <michael.meissner@amd.com>
2985 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2986 Tony Linthicum <tony.linthicum@amd.com>
2987
2988 * tree.h (function_args_iterator): New type to iterate over
2989 function arguments.
2990 (FOREACH_FUNCTION_ARGS_PTR): Iterator macros for iterating over
2991 function arguments providing a pointer to the argument.
2992 (FOREACH_FUNCTION_ARGS): Iterator macros for iterating over
2993 function arguments providing the argument.
2994 (function_args_iter_init): Inline function to initialize
2995 function_args_iterator.
2996 (function_args_iter_cond_ptr): Inline function to return the next
2997 pointer to hold the argument.
2998 (function_args_iter_cond): Inline function to return the next
2999 argument.
3000 (function_args_iter_cond_next): Advance the function args
3001 iterator.
3002 (stdarg_p): New function, return true if variable argument
3003 function.
3004 (prototype_p): New function, return true if function is
3005 prototyped.
3006 (function_args_count): New function, count the number of arguments
3007 of a function.
3008
3009 * tree.c (stdarg_p): New function, return true if variable
3010 argument function.
3011 (prototype_p): New function, return true if function is
3012 prototyped.
3013
3014 * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
3015 (TARGET_ROUND): New macro for the round/ptest instructions which
3016 are shared between SSE4.1 and SSE5.
3017 (OPTION_MASK_ISA_ROUND): Ditto.
3018 (OPTION_ISA_ROUND): Ditto.
3019 (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
3020 (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
3021
3022 * config/i386/i386.opt (-msse5): New switch for SSE5 support.
3023 (-mfused-madd): New switch to give users control over whether the
3024 compiler optimizes to use the multiply/add SSE5 instructions.
3025
3026 * config/i386/i386.c (m_AMD_MULTIPLE): Rename from
3027 m_ATHLON_K8_AMDFAM10, and change all uses.
3028 (enum pta_flags): Add PTA_SSE5.
3029 (ix86_handle_option): Turn off 3dnow if -msse5.
3030 (override_options): Add SSE5 support.
3031 (print_operand): %Y prints comparison codes for SSE5 com/pcom
3032 instructions.
3033 (ix86_expand_sse_movcc): Add SSE5 support.
3034 (ix86_expand_sse5_unpack): New function to use pperm to unpack a
3035 vector type to the next largest size.
3036 (ix86_expand_sse5_pack): New function to use pperm to pack a
3037 vector type to the next smallest size.
3038 (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
3039 (IX86_BUILTIN_FMADDSD): Ditto.
3040 (IX86_BUILTIN_FMADDPS): Ditto.
3041 (IX86_BUILTIN_FMADDPD): Ditto.
3042 (IX86_BUILTIN_FMSUBSS): Ditto.
3043 (IX86_BUILTIN_FMSUBSD): Ditto.
3044 (IX86_BUILTIN_FMSUBPS): Ditto.
3045 (IX86_BUILTIN_FMSUBPD): Ditto.
3046 (IX86_BUILTIN_FNMADDSS): Ditto.
3047 (IX86_BUILTIN_FNMADDSD): Ditto.
3048 (IX86_BUILTIN_FNMADDPS): Ditto.
3049 (IX86_BUILTIN_FNMADDPD): Ditto.
3050 (IX86_BUILTIN_FNMSUBSS): Ditto.
3051 (IX86_BUILTIN_FNMSUBSD): Ditto.
3052 (IX86_BUILTIN_FNMSUBPS): Ditto.
3053 (IX86_BUILTIN_FNMSUBPD): Ditto.
3054 (IX86_BUILTIN_PCMOV_V2DI): Ditto.
3055 (IX86_BUILTIN_PCMOV_V4SI): Ditto.
3056 (IX86_BUILTIN_PCMOV_V8HI): Ditto.
3057 (IX86_BUILTIN_PCMOV_V16QI): Ditto.
3058 (IX86_BUILTIN_PCMOV_V4SF): Ditto.
3059 (IX86_BUILTIN_PCMOV_V2DF): Ditto.
3060 (IX86_BUILTIN_PPERM): Ditto.
3061 (IX86_BUILTIN_PERMPS): Ditto.
3062 (IX86_BUILTIN_PERMPD): Ditto.
3063 (IX86_BUILTIN_PMACSSWW): Ditto.
3064 (IX86_BUILTIN_PMACSWW): Ditto.
3065 (IX86_BUILTIN_PMACSSWD): Ditto.
3066 (IX86_BUILTIN_PMACSWD): Ditto.
3067 (IX86_BUILTIN_PMACSSDD): Ditto.
3068 (IX86_BUILTIN_PMACSDD): Ditto.
3069 (IX86_BUILTIN_PMACSSDQL): Ditto.
3070 (IX86_BUILTIN_PMACSSDQH): Ditto.
3071 (IX86_BUILTIN_PMACSDQL): Ditto.
3072 (IX86_BUILTIN_PMACSDQH): Ditto.
3073 (IX86_BUILTIN_PMADCSSWD): Ditto.
3074 (IX86_BUILTIN_PMADCSWD): Ditto.
3075 (IX86_BUILTIN_PHADDBW): Ditto.
3076 (IX86_BUILTIN_PHADDBD): Ditto.
3077 (IX86_BUILTIN_PHADDBQ): Ditto.
3078 (IX86_BUILTIN_PHADDWD): Ditto.
3079 (IX86_BUILTIN_PHADDWQ): Ditto.
3080 (IX86_BUILTIN_PHADDDQ): Ditto.
3081 (IX86_BUILTIN_PHADDUBW): Ditto.
3082 (IX86_BUILTIN_PHADDUBD): Ditto.
3083 (IX86_BUILTIN_PHADDUBQ): Ditto.
3084 (IX86_BUILTIN_PHADDUWD): Ditto.
3085 (IX86_BUILTIN_PHADDUWQ): Ditto.
3086 (IX86_BUILTIN_PHADDUDQ): Ditto.
3087 (IX86_BUILTIN_PHSUBBW): Ditto.
3088 (IX86_BUILTIN_PHSUBWD): Ditto.
3089 (IX86_BUILTIN_PHSUBDQ): Ditto.
3090 (IX86_BUILTIN_PROTB): Ditto.
3091 (IX86_BUILTIN_PROTW): Ditto.
3092 (IX86_BUILTIN_PROTD): Ditto.
3093 (IX86_BUILTIN_PROTQ): Ditto.
3094 (IX86_BUILTIN_PROTB_IMM): Ditto.
3095 (IX86_BUILTIN_PROTW_IMM): Ditto.
3096 (IX86_BUILTIN_PROTD_IMM): Ditto.
3097 (IX86_BUILTIN_PROTQ_IMM): Ditto.
3098 (IX86_BUILTIN_PSHLB): Ditto.
3099 (IX86_BUILTIN_PSHLW): Ditto.
3100 (IX86_BUILTIN_PSHLD): Ditto.
3101 (IX86_BUILTIN_PSHLQ): Ditto.
3102 (IX86_BUILTIN_PSHAB): Ditto.
3103 (IX86_BUILTIN_PSHAW): Ditto.
3104 (IX86_BUILTIN_PSHAD): Ditto.
3105 (IX86_BUILTIN_PSHAQ): Ditto.
3106 (IX86_BUILTIN_FRCZSS): Ditto.
3107 (IX86_BUILTIN_FRCZSD): Ditto.
3108 (IX86_BUILTIN_FRCZPS): Ditto.
3109 (IX86_BUILTIN_FRCZPD): Ditto.
3110 (IX86_BUILTIN_CVTPH2PS): Ditto.
3111 (IX86_BUILTIN_CVTPS2PH): Ditto.
3112 (IX86_BUILTIN_COMEQSS): Ditto.
3113 (IX86_BUILTIN_COMNESS): Ditto.
3114 (IX86_BUILTIN_COMLTSS): Ditto.
3115 (IX86_BUILTIN_COMLESS): Ditto.
3116 (IX86_BUILTIN_COMGTSS): Ditto.
3117 (IX86_BUILTIN_COMGESS): Ditto.
3118 (IX86_BUILTIN_COMUEQSS): Ditto.
3119 (IX86_BUILTIN_COMUNESS): Ditto.
3120 (IX86_BUILTIN_COMULTSS): Ditto.
3121 (IX86_BUILTIN_COMULESS): Ditto.
3122 (IX86_BUILTIN_COMUGTSS): Ditto.
3123 (IX86_BUILTIN_COMUGESS): Ditto.
3124 (IX86_BUILTIN_COMORDSS): Ditto.
3125 (IX86_BUILTIN_COMUNORDSS): Ditto.
3126 (IX86_BUILTIN_COMFALSESS): Ditto.
3127 (IX86_BUILTIN_COMTRUESS): Ditto.
3128 (IX86_BUILTIN_COMEQSD): Ditto.
3129 (IX86_BUILTIN_COMNESD): Ditto.
3130 (IX86_BUILTIN_COMLTSD): Ditto.
3131 (IX86_BUILTIN_COMLESD): Ditto.
3132 (IX86_BUILTIN_COMGTSD): Ditto.
3133 (IX86_BUILTIN_COMGESD): Ditto.
3134 (IX86_BUILTIN_COMUEQSD): Ditto.
3135 (IX86_BUILTIN_COMUNESD): Ditto.
3136 (IX86_BUILTIN_COMULTSD): Ditto.
3137 (IX86_BUILTIN_COMULESD): Ditto.
3138 (IX86_BUILTIN_COMUGTSD): Ditto.
3139 (IX86_BUILTIN_COMUGESD): Ditto.
3140 (IX86_BUILTIN_COMORDSD): Ditto.
3141 (IX86_BUILTIN_COMUNORDSD): Ditto.
3142 (IX86_BUILTIN_COMFALSESD): Ditto.
3143 (IX86_BUILTIN_COMTRUESD): Ditto.
3144 (IX86_BUILTIN_COMEQPS): Ditto.
3145 (IX86_BUILTIN_COMNEPS): Ditto.
3146 (IX86_BUILTIN_COMLTPS): Ditto.
3147 (IX86_BUILTIN_COMLEPS): Ditto.
3148 (IX86_BUILTIN_COMGTPS): Ditto.
3149 (IX86_BUILTIN_COMGEPS): Ditto.
3150 (IX86_BUILTIN_COMUEQPS): Ditto.
3151 (IX86_BUILTIN_COMUNEPS): Ditto.
3152 (IX86_BUILTIN_COMULTPS): Ditto.
3153 (IX86_BUILTIN_COMULEPS): Ditto.
3154 (IX86_BUILTIN_COMUGTPS): Ditto.
3155 (IX86_BUILTIN_COMUGEPS): Ditto.
3156 (IX86_BUILTIN_COMORDPS): Ditto.
3157 (IX86_BUILTIN_COMUNORDPS): Ditto.
3158 (IX86_BUILTIN_COMFALSEPS): Ditto.
3159 (IX86_BUILTIN_COMTRUEPS): Ditto.
3160 (IX86_BUILTIN_COMEQPD): Ditto.
3161 (IX86_BUILTIN_COMNEPD): Ditto.
3162 (IX86_BUILTIN_COMLTPD): Ditto.
3163 (IX86_BUILTIN_COMLEPD): Ditto.
3164 (IX86_BUILTIN_COMGTPD): Ditto.
3165 (IX86_BUILTIN_COMGEPD): Ditto.
3166 (IX86_BUILTIN_COMUEQPD): Ditto.
3167 (IX86_BUILTIN_COMUNEPD): Ditto.
3168 (IX86_BUILTIN_COMULTPD): Ditto.
3169 (IX86_BUILTIN_COMULEPD): Ditto.
3170 (IX86_BUILTIN_COMUGTPD): Ditto.
3171 (IX86_BUILTIN_COMUGEPD): Ditto.
3172 (IX86_BUILTIN_COMORDPD): Ditto.
3173 (IX86_BUILTIN_COMUNORDPD): Ditto.
3174 (IX86_BUILTIN_COMFALSEPD): Ditto.
3175 (IX86_BUILTIN_COMTRUEPD): Ditto.
3176 (IX86_BUILTIN_PCOMEQUB): Ditto.
3177 (IX86_BUILTIN_PCOMNEUB): Ditto.
3178 (IX86_BUILTIN_PCOMLTUB): Ditto.
3179 (IX86_BUILTIN_PCOMLEUB): Ditto.
3180 (IX86_BUILTIN_PCOMGTUB): Ditto.
3181 (IX86_BUILTIN_PCOMGEUB): Ditto.
3182 (IX86_BUILTIN_PCOMFALSEUB): Ditto.
3183 (IX86_BUILTIN_PCOMTRUEUB): Ditto.
3184 (IX86_BUILTIN_PCOMEQUW): Ditto.
3185 (IX86_BUILTIN_PCOMNEUW): Ditto.
3186 (IX86_BUILTIN_PCOMLTUW): Ditto.
3187 (IX86_BUILTIN_PCOMLEUW): Ditto.
3188 (IX86_BUILTIN_PCOMGTUW): Ditto.
3189 (IX86_BUILTIN_PCOMGEUW): Ditto.
3190 (IX86_BUILTIN_PCOMFALSEUW): Ditto.
3191 (IX86_BUILTIN_PCOMTRUEUW): Ditto.
3192 (IX86_BUILTIN_PCOMEQUD): Ditto.
3193 (IX86_BUILTIN_PCOMNEUD): Ditto.
3194 (IX86_BUILTIN_PCOMLTUD): Ditto.
3195 (IX86_BUILTIN_PCOMLEUD): Ditto.
3196 (IX86_BUILTIN_PCOMGTUD): Ditto.
3197 (IX86_BUILTIN_PCOMGEUD): Ditto.
3198 (IX86_BUILTIN_PCOMFALSEUD): Ditto.
3199 (IX86_BUILTIN_PCOMTRUEUD): Ditto.
3200 (IX86_BUILTIN_PCOMEQUQ): Ditto.
3201 (IX86_BUILTIN_PCOMNEUQ): Ditto.
3202 (IX86_BUILTIN_PCOMLTUQ): Ditto.
3203 (IX86_BUILTIN_PCOMLEUQ): Ditto.
3204 (IX86_BUILTIN_PCOMGTUQ): Ditto.
3205 (IX86_BUILTIN_PCOMGEUQ): Ditto.
3206 (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
3207 (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
3208 (IX86_BUILTIN_PCOMEQB): Ditto.
3209 (IX86_BUILTIN_PCOMNEB): Ditto.
3210 (IX86_BUILTIN_PCOMLTB): Ditto.
3211 (IX86_BUILTIN_PCOMLEB): Ditto.
3212 (IX86_BUILTIN_PCOMGTB): Ditto.
3213 (IX86_BUILTIN_PCOMGEB): Ditto.
3214 (IX86_BUILTIN_PCOMFALSEB): Ditto.
3215 (IX86_BUILTIN_PCOMTRUEB): Ditto.
3216 (IX86_BUILTIN_PCOMEQW): Ditto.
3217 (IX86_BUILTIN_PCOMNEW): Ditto.
3218 (IX86_BUILTIN_PCOMLTW): Ditto.
3219 (IX86_BUILTIN_PCOMLEW): Ditto.
3220 (IX86_BUILTIN_PCOMGTW): Ditto.
3221 (IX86_BUILTIN_PCOMGEW): Ditto.
3222 (IX86_BUILTIN_PCOMFALSEW): Ditto.
3223 (IX86_BUILTIN_PCOMTRUEW): Ditto.
3224 (IX86_BUILTIN_PCOMEQD): Ditto.
3225 (IX86_BUILTIN_PCOMNED): Ditto.
3226 (IX86_BUILTIN_PCOMLTD): Ditto.
3227 (IX86_BUILTIN_PCOMLED): Ditto.
3228 (IX86_BUILTIN_PCOMGTD): Ditto.
3229 (IX86_BUILTIN_PCOMGED): Ditto.
3230 (IX86_BUILTIN_PCOMFALSED): Ditto.
3231 (IX86_BUILTIN_PCOMTRUED): Ditto.
3232 (IX86_BUILTIN_PCOMEQQ): Ditto.
3233 (IX86_BUILTIN_PCOMNEQ): Ditto.
3234 (IX86_BUILTIN_PCOMLTQ): Ditto.
3235 (IX86_BUILTIN_PCOMLEQ): Ditto.
3236 (IX86_BUILTIN_PCOMGTQ): Ditto.
3237 (IX86_BUILTIN_PCOMGEQ): Ditto.
3238 (IX86_BUILTIN_PCOMFALSEQ): Ditto.
3239 (IX86_BUILTIN_PCOMTRUEQ): Ditto.
3240 (bdesc_ptest): Change OPTION_MASK_ISA_SSE4_1 to
3241 OPTION_MASK_ISA_ROUND for instructions that are shared between
3242 SSE4.1 and SSE5.
3243 (bdesc_2arg): Ditto.
3244 (bdesc_sse_3arg): Ditto.
3245 (enum multi_arg_type): New enum for describing the various SSE5
3246 intrinsic argument types.
3247 (bdesc_multi_arg): New table for SSE5 intrinsics.
3248 (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
3249 (ix86_expand_multi_arg_builtin): New function for creating SSE5
3250 intrinsics.
3251 (ix86_expand_builtin): Add SSE5 intrinsic support.
3252 (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
3253 operand instructions.
3254 (ix86_expand_sse5_multiple_memory): New function to split the
3255 second memory reference from SSE5 instructions.
3256 (type_has_variadic_args_p): Delete in favor of stdarg_p.
3257 (ix86_return_pops_args): Use stdarg_p to determine if the function
3258 has variable arguments.
3259 (ix86_setup_incoming_varargs): Ditto.
3260 (x86_this_parameter): Ditto.
3261
3262 * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
3263 declaration.
3264 (ix86_expand_sse5_pack): Ditto.
3265 (ix86_sse5_valid_op_p): Ditto.
3266 (ix86_expand_sse5_multiple_memory): Ditto.
3267
3268 * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
3269 constant for SSE5 support.
3270 (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
3271 (UNSPEC_SSE5_TRUEFALSE): Ditto.
3272 (UNSPEC_SSE5_PERMUTE): Ditto.
3273 (UNSPEC_SSE5_ASHIFT): Ditto.
3274 (UNSPEC_SSE5_LSHIFT): Ditto.
3275 (UNSPEC_FRCZ): Ditto.
3276 (UNSPEC_CVTPH2PS): Ditto.
3277 (UNSPEC_CVTPS2PH): Ditto.
3278 (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
3279 (PCOM_TRUE): Ditto.
3280 (COM_FALSE_S): Ditto.
3281 (COM_FALSE_P): Ditto.
3282 (COM_TRUE_S): Ditto.
3283 (COM_TRUE_P): Ditto.
3284 (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
3285 (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
3286 types.
3287 (memory attribute): Ditto.
3288 (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
3289 Use SSE4_1_ROUND_* constants instead of hard coded numbers.
3290 (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
3291 (floor<mode>2): Ditto.
3292 (ceil<mode>2): Ditto.
3293 (btrunc<mode>2): Ditto.
3294 (nearbyintdf2): Ditto.
3295 (nearbyintsf2): Ditto.
3296 (sse_setccsf): Disable if SSE5.
3297 (sse_setccdf): Ditto.
3298 (sse5_setcc<mode>): New support for SSE5 conditional move.
3299 (sse5_pcmov_<mode>): Ditto.
3300
3301 * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
3302 (SSEMODEF4): Ditto.
3303 (SSEMODEF2P): Ditto.
3304 (ssemodesuffixf4): New mode attribute for SSE5.
3305 (ssemodesuffixf2s): Ditto.
3306 (ssemodesuffixf2c): Ditto.
3307 (sserotatemax): Ditto.
3308 (ssescalarmode): Ditto.
3309 (sse_maskcmpv4sf3): Disable if SSE5.
3310 (sse_maskcmpv2df3): Ditto.
3311 (sse_vmmaskcmpv4sf3): Ditto.
3312 (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add
3313 instructions.
3314 (sse5_vmfmadd<mode>4): Ditto.
3315 (sse5_fmsub<mode>4): Ditto.
3316 (sse5_vmfmsub<mode>4): Ditto.
3317 (sse5_fnmadd<mode>4): Ditto.
3318 (sse5_vmfnmadd<mode>4): Ditto.
3319 (sse5_fnmsub<mode>4): Ditto.
3320 (sse5_vmfnmsub<mode>4): Ditto.
3321 (sse5i_fmadd<mode>4): Ditto.
3322 (sse5i_fmsub<mode>4): Ditto.
3323 (sse5i_fnmadd<mode>4): Ditto.
3324 (sse5i_fnmsub<mode>4): Ditto.
3325 (sse5i_vmfmadd<mode>4): Ditto.
3326 (sse5i_vmfmsub<mode>4): Ditto.
3327 (sse5i_vmfnmadd<mode>4): Ditto.
3328 (sse5i_vmfnmsub<mode>4): Ditto.
3329 (mulv16qi3): Add SSE5 support.
3330 (mulv4si3): Ditto.
3331 (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
3332 (sse2_mulv4si3): Disable if SSE5.
3333 (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
3334 (sse4_1_roundps): Ditto.
3335 (sse4_1_roundsd): Ditto.
3336 (sse4_1_roundss): Ditto.
3337 (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
3338 be generated.
3339 (sse_maskcmpsf3): Ditto.
3340 (sse_vmmaskcmpv4sf3): Ditto.
3341 (sse2_maskcmpv2df3): Ditto.
3342 (sse2_maskcmpdf3): Ditto.
3343 (sse2_vmmaskcmpv2df3): Ditto.
3344 (sse2_eq<mode>3): Ditto.
3345 (sse2_gt<mode>3): Ditto.
3346 (sse5_pcmov_<mode>): Add SSE5 support.
3347 (vec_unpacku_hi_v16qi): Ditto.
3348 (vec_unpacks_hi_v16qi): Ditto.
3349 (vec_unpacku_lo_v16qi): Ditto.
3350 (vec_unpacks_lo_v16qi): Ditto.
3351 (vec_unpacku_hi_v8hi): Ditto.
3352 (vec_unpacks_hi_v8hi): Ditto.
3353 (vec_unpacku_lo_v8hi): Ditto.
3354 (vec_unpacks_lo_v8hi): Ditto.
3355 (vec_unpacku_hi_v4si): Ditto.
3356 (vec_unpacks_hi_v4si): Ditto.
3357 (vec_unpacku_lo_v4si): Ditto.
3358 (vec_unpacks_lo_v4si): Ditto.
3359 (sse5_pmacsww): New SSE5 intrinsic insn.
3360 (sse5_pmacssww): Ditto.
3361 (sse5_pmacsdd): Ditto.
3362 (sse5_pmacssdd): Ditto.
3363 (sse5_pmacssdql): Ditto.
3364 (sse5_pmacssdqh): Ditto.
3365 (sse5_pmacsdqh): Ditto.
3366 (sse5_pmacsswd): Ditto.
3367 (sse5_pmacswd): Ditto.
3368 (sse5_pmadcsswd): Ditto.
3369 (sse5_pmadcswd): Ditto.
3370 (sse5_pcmov_<move>): Conditional move support on SSE5.
3371 (sse5_phaddbw): New SSE5 intrinsic insn.
3372 (sse5_phaddbd): Ditto.
3373 (sse5_phaddbq): Ditto.
3374 (sse5_phaddwd): Ditto.
3375 (sse5_phaddwq): Ditto.
3376 (sse5_phadddq): Ditto.
3377 (sse5_phaddubw): Ditto.
3378 (sse5_phaddubd): Ditto.
3379 (sse5_phaddubq): Ditto.
3380 (sse5_phadduwd): Ditto.
3381 (sse5_phadduwq): Ditto.
3382 (sse5_phaddudq): Ditto.
3383 (sse5_phsubbw): Ditto.
3384 (sse5_phsubwd): Ditto.
3385 (sse5_phsubdq): Ditto.
3386 (sse5_pperm): Ditto.
3387 (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
3388 (sse5_pperm_zero_v16qi_v8hi): Ditto.
3389 (sse5_pperm_sign_v8hi_v4si): Ditto.
3390 (sse5_pperm_zero_v8hi_v4si): Ditto.
3391 (sse5_pperm_sign_v4si_v2di): Ditto.
3392 (sse5_pperm_sign_v4si_v2di): Ditto.
3393 (sse5_pperm_pack_v2di_v4si): Ditto.
3394 (sse5_pperm_pack_v4si_v8hi): Ditto.
3395 (sse5_pperm_pack_v8hi_v16qi): Ditto.
3396 (sse5_perm<mode>): New SSE5 intrinsic insn.
3397 (rotl<mode>3): Ditto.
3398 (sse5_rotl<mode>3): Ditto.
3399 (sse5_ashl<mode>3): Ditto.
3400 (sse5_lshl<mode>3): Ditto.
3401 (sse5_frcz<mode>2): Ditto.
3402 (sse5s_frcz<mode>2): Ditto.
3403 (sse5_cvtph2ps): Ditto.
3404 (sse5_cvtps2ph): Ditto.
3405 (sse5_vmmaskcmp<mode>3): Ditto.
3406 (sse5_com_tf<mode>3): Ditto.
3407 (sse5_maskcmp<mode>3): Ditto.
3408 (sse5_maskcmp_uns<mode>3): Ditto.
3409 (sse5_maskcmp_uns2<mode>3): Ditto.
3410 (sse5_pcom_tf<mode>3): Ditto.
3411
3412 * config/i386/predicates.md (const_0_to_31_operand): New predicate
3413 to match 0..31.
3414 (sse5_comparison_float_operator): New predicate to match the
3415 comparison operators supported by the SSE5 com instruction.
3416 (ix86_comparison_int_operator): New predicate to match just the
3417 signed int comparisons.
3418 (ix86_comparison_uns_operator): New predicate to match just the
3419 unsigned int comparisons.
3420
3421 * doc/invoke.texi (-msse5): Add documentation.
3422 (-mfused-madd): Ditto.
3423
3424 * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
3425
3426 * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
3427 mmintrin-common.h.
3428 (x86_64-*-*): Ditto.
3429
3430 * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
3431
3432 * config/i386/bmmintrin.h: New file, provide common x86 compiler
3433 intrinisics for SSE5.
3434
3435 * config/i386/smmintrin.h: Move instructions shared with SSE5 to
3436 mmintrin-common.h.
3437
3438 * config/i386/mmintrin-common.h: New file, to contain common
3439 instructions between SSE4.1 and SSE5.
3440
3441 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
3442 FOREACH_FUNCTION_ARGS to iterate over the argument list.
3443 (gen_regparm_prefix): Ditto.
3444
3445 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
3446 FOREACH_FUNCTION_ARGS to iterate over the argument list. Use
3447 prototype_p to determine if a function is prototyped.
3448
e9c15f6e 34492007-09-12 Janis Johnson <janis187@us.ibm.com>
55035467
JJ
3450
3451 * config/dfp-bit.c (dfp_conversion_exception): New function.
3452 (DFP_TO_DFP) Add new variants to use direct conversions in decNumber.
3453 (DFP_TO_INT): Ditto.
3454 (INT_TO_DFP): Ditto.
3455 * config/dfp-bit.h (DEC_FLOAT_FROM_INT, DEC_FLOAT_TO_INT): New.
3456
c93646bd
JJ
34572007-09-12 Jakub Jelinek <jakub@redhat.com>
3458
3459 PR target/32338
3460 * config/ia64/ia64.c (ia64_expand_epilogue): Emit blockage
3461 before sp restoration even when total_size is 0, but
3462 frame_pointer_needed.
3463
0d8442b8
BW
34642007-09-12 Bob Wilson <bob.wilson@acm.org>
3465
3466 * config/xtensa/xtensa.c (machine_function): Add vararg_a7_copy.
3467 (xtensa_copy_incoming_a7): Use start_sequence instead of
3468 push_to_sequence. Stash insns in vararg_a7_copy for builtin_saveregs.
3469 (xtensa_builtin_saveregs): Place code from vararg_a7_copy at the start
3470 of the saveregs sequence.
3471
b9baeecd
RS
34722007-09-12 Richard Sandiford <richard@codesourcery.com>
3473
3474 * c-tree.h (grokfield): Add a "tree *" argument.
3475 * c-decl.c (grokdeclarator): Take a pointer to the decl's attributes.
3476 Chain nested decl attributes to it. Don't call decl_attributes here.
3477 (groktypename): Pass grokdeclarator a pointer to the attribute list.
3478 (start_decl, grokparm, push_parm_decl, start_function): Likewise.
3479 (grokfield): Take a pointer to the decl's attributes and pass
3480 it to grokdeclarator.
3481 * c-parser.c (c_parser_struct_declaration): Update the calls to
3482 grokfield. Call decl_attributes for anonymous struct and union
3483 fields.
3484
75097504
JH
34852007-09-12 Jan Hubicka <jh@suse.cz>
3486
3487 * c-objc-common.h (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
3488
f5d8ed2c
IR
34892007-09-12 Ira Rosen <irar@il.ibm.com>
3490
3491 PR tree-optimization/32377
3492 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Distinguish
3493 between positive and negative dependence distance using DDR_REVERSED_P.
3494
220e82b4
DN
34952007-09-12 Dorit Nuzman <dorit@il.ibm.com>
3496
3497 PR tree-optimization/33373
3498 * tree-vect-analyze (vect_determine_vectorization_factor): Call
3499 TREE_INT_CST_LOW when comparing TYPE_SIZE_UNIT.
3500
bf019a1f
JH
35012007-09-12 Jan Hubicka <jh@suse.cz>
3502
3503 PR target/33393
e139c7f9
UB
3504 * i386.md (floatsisf2_mixed_memory, floatsisf2_sse_memory): Disable
3505 for !SSE_MATH
bf019a1f 3506
926e663e 35072007-09-12 Christian Bruel <christian.bruel@st.com>
54a5b59b 3508
926e663e
CB
3509 * sh.h (SH_DBX_REGISTER_NUMBER): Added fpscr, fixed sr/gbr regs.
3510 * linux-unwind.h (SH_DWARF_FRAME_GBR): fixed.
3511
f8f8fee8
IR
35122007-09-12 Ira Rosen <irar@il.ibm.com>
3513
3514 * tree-vect-transform.c (vect_get_slp_defs): Don't build a vector
3515 for oprnd1 if not required.
3516 (vectorizable_operation): Use scalar operand in SLP in case of
3517 shift with scalar argument.
3518
8d888559
IR
35192007-09-12 Ira Rosen <irar@il.ibm.com>
3520
3521 * params.def (PARAM_MIN_VECT_LOOP_BOUND): Change default and minimum
3522 to 1.
3523
a480e826
JW
35242007-09-11 James E. Wilson <wilson@specifix.com>
3525
3526 * defaults.h (DWARF2_UNWIND_INFO): Don't define if
3527 TARGET_UNWIND_INFO is defined.
3528 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Delete undef
3529 after definition.
3530
6ac9cbc5
KK
35312007-09-12 Kaz Kojima <kkojima@gcc.gnu.org>
3532
3533 * config/sh/sh.c (calc_live_regs): Use
3534 current_function_saves_all_registers instead of
3535 current_function_has_nonlocal_label.
3536 (sh_allocate_initial_value): Likewise.
3537 (sh_get_pr_initial_val): Likewise.
3538 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Likewise.
3539 * config/sh/sh.md (load_ra): Likewise.
3540
31af2dca
HPN
35412007-09-12 Hans-Peter Nilsson <hp@axis.com>
3542
36798514
HPN
3543 * config/cris/t-linux (LIMITS_H_TEST): Only define if not inhibit_libc.
3544
31af2dca
HPN
3545 PR target/33360
3546 * config/cris/cris.c (cris_expand_pic_call_address): Fix typo in
3547 GET_CODE (x) == CONST_INT to CONST_INT_P (x) transformation.
3548
9943eb0b
BE
35492007-09-12 Sa Liu <saliu@de.ibm.com>
3550
3551 * config/spu/spu.c (spu_emit_branch_or_set): Handle NaN values as
3552 operands to DFmode GE or LE compares.
3553
03848bd0
BS
35542007-09-12 Bernd Schmidt <bernd.schmidt@analog.com>
3555
3556 * config/bfin/bfin.h (enum reg_class, REG_CLASS_CONTENTS,
3557 REG_CLASS_NAMES): Add P0REGS.
3558 (REGNO_REG_CLASS): Return it where appropriate.
3559 (REG_CLASS_FROM_CONSTRAINT): Add 'qA'.
3560 (CLASS_LIKELY_SPILLED_P): P0REGS is likely_spilled.
3561 * doc/md.texi (Blackfin family): Document 'q' constraints.
3562
f3195fd4 35632007-09-11 Steve Kenton <skenton@ou.edu>
d4c56bd7
SK
3564
3565 * pa/linux-unwind.h: Guard with inhibit_libc.
3566 * pa/hpux-unwind.h: Likewise.
3567
66471b47
DD
35682007-09-11 David Daney <ddaney@avtrex.com>
3569
3570 * doc/invoke.texi: Document new MIPS -mllsc and -mno-llsc options.
3571 * doc/install.texi: Document new --with-llsc and --without-llsc
3572 options.
3573 * config.gcc: Handle --with-llsc and --without-llsc configure options.
3574 * config/mips/mips.md (sync, memory_barrier): Wrap sync instrunction
3575 in %| and %- operand codes. Depend on GENERATE_SYNC instead of
3576 ISA_HAS_SYNC.
3577 (sync_compare_and_swap<mode>, sync_add<mode>, sync_sub<mode>,
3578 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
3579 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
3580 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
3581 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Depend on
3582 GENERATE_LL_SC instead of ISA_HAS_LL_SC.
3583 * config/mips/mips.opt (mllsc): New option.
3584 * config/mips/mips.c (mips_llsc): Define variable.
3585 (mips_handle_option): Handle mllsc option.
3586 (override_options): Set mips_print_operand_punct for '|' and '-'.
3587 (print_operand): Add new %| and %- operand codes.
3588 * config/mips/mips.h (mips_llsc_setting): New enum type.
3589 (mips_llsc): Declare.
3590 (OPTION_DEFAULT_SPECS): Add llsc handling.
3591 (GENERATE_SYNC): New macro.
3592 (GENERATE_LL_SC): New macro.
3593 (MIPS_COMPARE_AND_SWAP, MIPS_SYNC_OP, MIPS_SYNC_OLD_OP,
3594 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
3595 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE): Wrap instructions
3596 in %| and %- operand codes.
3597
fa89b6ec
EB
35982007-09-11 Eric Botcazou <ebotcazou@adacore.com>
3599
3600 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Deal with
3601 TYPE_NONALIASED_COMPONENT like with DECL_NONADDRESSABLE_P.
3602
7e4aeb32
JM
36032007-09-11 Jason Merrill <jason@redhat.com>
3604
3605 PR middle-end/27945
3606 * stor-layout.c (layout_decl): Do pack variable size fields.
3607
c47b0cb4
MK
36082007-09-11 Maxim Kuvyrkov <maxim@codesourcery.com>
3609
3610 * config/m68k/predicates.md (movsi_const0_operand,
3611 non_symbolic_call_operand): New predicates.
3612
e139c7f9 3613 * config/m68k/constraints.md (Cs, Ci, C0, Cj, CQ, CW, CZ, CS, Ap, Ac):
c47b0cb4
MK
3614 New constraints.
3615 * doc/md.texi (Constraints for Particular Machines: Motorola 680x0):
3616 Document constraints N, O, P, R, S, T, Q, U, W, Cs, Ci, C0, Cj, CQ,
3617 CW, CZ, CS, Ap and Ac.
3618
3619 * config/m68k/m68k.md (UNSPEC_IB): New constant.
3620 (constraints.md): New include.
3621 (cpu, type, type1, opx, opy, opx_type, opy_type, size, opx_access,
3622 opx_mem, opy_mem, op_mem, guess, split): New attributes.
3623 (movdf_internal): Name pattern. Fix to use alternatives. Add split.
3624 Specify attributes.
3625 (pushdi): Add split.
3626 (tstsi_internal): Name pattern. Fix to use alternatives. Specify
3627 attributes. Split tstsi_internal_68020_cf from it.
3628 (tstsi_internal_68020_cf): New pattern.
3629 (tsthi_internal, tstqi_internal): Name pattern. Specify attributes.
3630 (tst<mode>_cf): Specify attributea.
3631 (cmpsi_cf): Name pattern. Specify attributes.
3632 (cmp<mode>_68881, cmp<mode>_cf): Specify type attribute.
3633 (pushexthisi_const): Fix to use alternatives. Specify
3634 attributes.
3635 (movsi_const0): Split movsi_const0_68000_10 and movsi_const0_68040_60
3636 from it. Fix to use alternatives. Specify attributes.
3637 (movsi_const0_68040_10, movsi_const0_68040_60): New patterns.
3638 (movsi_cf, movstrictqi_cf): Fix to use alternatives. Specify
3639 attributes.
3640 (movsf_cf_soft): Specify attributes.
3641 (movdf_cf_soft): Add split.
3642 (pushasi, zero_extendhisi2_cf, zero_extendqisi2_cfv4,
3643 cfv4_extendhisi2, 68k_extendhisi2, extendqihi2, cfv4_extendqisi2,
3644 68k_extendqisi2, truncdfsf2_cf): Specify attributes.
3645 (truncdfsf2_68881): Name pattern. Specify attributes.
3646 (floatsi<mode>2_cf, floathi<mode>2_68881, floathi<mode>2_cf,
3647 floatqi<mode>2_68881, floatqi<mode>2_cf, ftrunc<mode>2_cf,
3648 fix<mode>qi2_cf, fix<mode>hi2_cf, fix<mode>si2_cf, adddi_dishl32):
3649 Specify attributes.
3650 (addsi3_5200): Fix to use alternatives. Specify attributes.
3651 Add splits.
3652 (add<mode>3_cf, subdi_dishl32): Specify attributes.
3653 (subsi3): Add alternative for subq.l. Specify attributes.
3654 (sub<mode>3_cf, mulhi3, mulhisi3): Specify attributes.
3655 (mulhisisi3_s, mulsi3_68020, mulsi3_cf): Name pattern. Specify
3656 attributes.
3657 (umulhisi3): Specify attributes.
3658 (mulhisisi3_z): Name pattern. Specify attributes.
3659 (fmul<mode>3_cf, div<mode>3_cf, negsi2_internal, negsi2_5200,
3660 sqrt<mode>2_68881, clzsi2, one_cmplsi2_5200, subreghi1ashrdi_const32,
3661 subregsi1ashrdi_const32, ashrsi3, subreg1lshrdi_const32, lshrsi3,
3662 bsetmemqi): Specify attributes.
3663 (bsetmemqi_ext): Name pattern. Specify attributes.
3664 (bclrmemqi): Specify attributes.
3665 (bclrmemqi_ext, scc, sls): Name pattern. Specify attributes.
3666 (beq, bne, bgt, bgtu, blt, bltu, bge, bgeu, ble, bleu): Specify
3667 attributes.
3668 (beq2, bne2, bgt2, bgtu2, blt2, bltu2, bge2, bgeu2, ble2, bleu2): Name
3669 pattern. Specify attributes.
3670 (jump): Specify attributes.
3671 (tablejump_internal): Name pattern. Specify attributes.
3672 (call_value): Split into non_symbolic_call_value,
3673 symbolic_call_value_jsr, symbolic_call_value_bsr. Fix to use
3674 alternatives. Specify attributes.
3675 (non_symbolic_call_value, symbolic_call_value_jsr,
3676 symbolic_call_value_bsr): New patterns.
3677 (nop, return, unlink, indirect_jump): Specify attributes.
3678 (trap): Fix condition. Specify attributes.
3679 (ib): New pattern.
3680
3681 * config/m68k/m68k.c (m68k_symbolic_call_var): New variable.
3682 (override_options): Initialize it. Initialize m68k_sched_cpu.
3683 (CONST_METHOD): Rename to M68K_CONST_METHOD, move to m68k.h.
3684 (const_method): Make global, rename to m68k_const_method.
3685 (const_int_cost, output_move_const_into_data_reg): Update.
3686 (output_move_double): Parametrize to emit rtl code, rename to
3687 handle_move_double.
3688 (output_reg_adjust, emit_reg_adjust, output_compadr, output_movsi,
3689 emit_movsi): New static functions.
3690 (output_move_double): New function with semantics of old
3691 output_move_double.
3692 (m68k_emit_move_double): New function.
3693 (m68k_sched_cpu): New variable.
3694 (attr_op_type): New enum.
3695 (sched_guess_p): New variable.
3696 (sched_address_type, sched_operand_type, sched_attr_op_type):
3697 New static functions.
3698 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type,
3699 m68k_sched_attr_size, m68k_sched_attr_op_mem): New functions.
3700 (sched_branch_type): New static variable.
3701 (m68k_sched_branch_type): New function.
3702 * config/m68k/m68k.h (M68K_SYMBOLIC_CALL): New enum.
3703 (m68k_symbolic_call_var): Declare.
3704 (M68K_CONST_METHOD): Rename from CONST_METHOD. Move here from m68k.c.
3705 (m68k_const_method, m68k_emit_move_double, m68k_sched_cpu,
3706 m68k_sched_attr_opx_type, m68k_sched_attr_opy_type,
3707 m68k_sched_attr_size, m68k_sched_attr_op_mem, m68k_sched_branch_type):
3708 Declare.
3709
ab0e176c
JJ
37102007-09-11 Jakub Jelinek <jakub@redhat.com>
3711
3712 * builtins.def (BUILT_IN_VA_ARG_PACK_LEN): New builtin.
3713 * builtins.c (expand_builtin) <case BUILT_IN_VA_ARG_PACK_LEN>: Issue
3714 error if __builtin_va_arg_pack_len () wasn't optimized out during
3715 inlining.
3716 * tree-inline.c (copy_bb): Replace __builtin_va_arg_pack_len ()
3717 with the number of inline's anonymous arguments.
3718 * doc/extend.texi: Document __builtin_va_arg_pack_len ().
3719
e6ebd07f
ZD
37202007-09-11 Zdenek Dvorak <ook@ucw.cz>
3721
3722 * fold-const.c (extract_muldiv_1): Do not simplify
3723 var * c * c to var.
3724
630ecd8d
JH
37252007-09-11 Jan Hubicka <jh@suse.cz>
3726
3727 * i386.h (ix86_tune_indices): Add X86_TUNE_INTER_UNIT_CONVERSIONS.
3728 (TARGET_INTER_UNIT_CONVERSIONS): New.
3729 * i386.md (floatsi expanders): Remove redundant check for SImode
3730 source; offload to memory when asked for.
3731 (floatsisf2_mixed, floatsisf2_sse, floatsidf2_mixed, floatsidf2_sse
3732 floatdisf2_mixed, floatsisf2_sse, floatsidf2_mixed, floatsidf2_sse):
3733 Update conditions;
3734 (floatsisf2_mixed_memory, floatsisf2_sse_memory,
3735 floatsidf2_mixed_memory, floatsidf2_sse_memory
3736 floatdisf2_mixed_memory, floatsisf2_sse_memory,
3737 floatsidf2_mixed_memory, floatsidf2_sse_memory): New.
3738
e89d6010
JH
37392007-09-11 Jan Hubicka <jh@suse.cz>
3740
3741 * toplev.c (process_options): all frontends now do unit-at-a-time.
3742 * cgraphunit.c: update comments.
3743 (cgraph_expand_function): call passmanager dirrectly; emit thunks.
3744 * c-decl.c (finish_function): use cgraph_add_new_function.
3745 * function.c (expand_function_end): We are always unit-at-a-time.
3746
8ce4afa3
RS
37472007-09-11 Richard Sandiford <richard@codesourcery.com>
3748
3749 * config/mips/mips.c (mips_set_mips16_mode): Use separate anchor
3750 settings for MIPS16.
3751 (mips_use_anchors_for_symbol_p): Use default_use_anchors_for_symbol_p.
3752
206c2d7a
RS
37532007-09-11 Richard Sandiford <richard@codesourcery.com>
3754
3755 * config/mips/mips.c (mips_symbol_insns_1): Allow LEAs of
3756 SYMBOL_FORCE_TO_MEM constants.
3757 (mips_rtx_costs): Give a cost of 1 to force_to_mem_operands.
3758 (mips16_rewrite_pool_refs_info): New structure.
3759 (mips16_rewrite_pool_constant): New function, split out from...
3760 (mips16_rewrite_pool_refs): ...here. Take a pointer to a
3761 mips16_rewrite_pool_refs_info structure rather than a pointer
3762 to a constant pool. Force force_to_mem_operands into memory.
3763 (mips16_lay_out_constants): Update call to mips16_rewrite_pool_refs.
3764 * config/mips/predicates.md (force_to_mem_operand): New predicate.
3765 * config/mips/constraints.md (kf): New constraint.
3766 * config/mips/mips.md (*movdi_64bit_mips16): Add a d <- kf alternative.
3767 (*movsi_mips16): Likewise.
3768
8144a1a8
RS
37692007-09-11 Richard Sandiford <richard@codesourcery.com>
3770 Nigel Stephens <nigel@mips.com>
3771 David Ung <davidu@mips.com>
3772
3773 * config/mips/mips.h (CONSTANT_POOL_COST): Move to...
3774 * config/mips/mips.c: ...here and set to 4 for TARGET_MIPS16.
3775 (mips16_constant_cost, mips_immediate_operand_p, mips_binary_cost)
3776 (mips_fp_mult_cost, mips_fp_div_cost, mips_sign_extend_cost)
3777 (mips_zero_extend_cost): New functions.
3778 (mips_rtx_costs): Treat COMPARE constants as having zero cost.
3779 Use the new functions. Tweak many cost estimates, both here
3780 and in the new subroutines. Return false when the cost of the
3781 operands has not been calculated. Check for *clear_upper32.
3782 Check for floating-point multiply-add, reciprocal and rsqrt
3783 patterns. Handle comparison and rotation codes.
3784
e599ac2b
DS
37852007-09-11 Danny Smith <dannysmith@users.sourceforge.net>
3786
3787 * config/i386/cygming.h (TARGET_STRIP_NAME_ENCODING): Don't
3788 override default.
3789 * config/i386/i386.c (get_dllimport_decl): Don't strip
3790 FASTCALL_PREFIX.
3791
f3d110ef
JJ
37922007-09-10 Janis Johnson <janis187@us.ibm.com>
3793
3794 PR c/30013
3795 * config/dfp-bit.c: Don't skip TFmode conversions; move strto*
3796 declarations to top.
3797 (DFP_TO_BFP): Use for either XFmode or TFmode.
3798 (BFP_TO_DFP): Use for either XFmode or TFmode; always use cast
3799 of BFP_VIA_TYPE.
3800 * config/dfp-bit.h: Include float.h.
3801 (LONG_DOUBLE_HAS_XF_MODE, LONG_DOUBLE_HAS_TF_MODE): Define if long
3802 double is one of these modes, rather than using LIBGCC_HAS_*F_MODE
3803 which doesn't mean the same thing.
3804 (BFP_KIND): Use 4 to mean TFmode.
3805 (BFP_FMT): Specify the number of decimal digits based on the
3806 number of mantissa digits.
3807 (BFP_VIA_TYPE): Binary float type to use as cast for sprintf.
3808 (BFP_TO_DFP, DFP_TO_BFP): Define names for TFmode variants.
3809 (STR_TO_BFP): Use strtold for XFmode or TFmode.
3810 (TFtype): Define if TFmode is supported.
3811 * doc/libgcc.texi (Decimal float library routines): Document
3812 TF conversion functions.
3813
9fc777ad
CF
38142007-09-10 Chao-ying Fu <fu@mips.com>
3815
3816 * config/mips/mips.c (mips_scalar_mode_supported_p): Declare.
3817 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
3818 (mips_emit_compare): Process fixed-point modes.
3819 (mips_pad_arg_upward): Support fixed-point types.
3820 (override_options): Allow fixed-point modes in accumulators.
3821 (mips_pass_by_reference): Pass DQ, UDQ, DA, and UDA modes in registers.
3822 (mips_vector_mode_supported_p): Support V2HQmode, V2UHQmode, V2HAmode,
3823 V2UHAmode, V4QQmode, and V4UQQmode when TARGET_DSP.
3824 (mips_scalar_mode_supported_p): New function to accept fixed-point
3825 modes if the width is not greater than two BITS_PER_WORD.
3826 * config/mips/mips.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE,
3827 LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
3828 SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
3829 LONG_LONG_ACCUM_TYPE_SIZE): Define.
3830 * config/mips/mips.md ("d"): Update mode attribute for fixed-point
3831 modes.
3832 ("IMODE"): New mode attribute.
3833 (mips-fixed.md): Include.
3834 * config/mips/mips-modes.def: Create VECTOR_MODES for FRACT, UFRACT,
3835 ACCUM, UACCUM.
3836 * config/mips/mips-fixed.md: New file.
3837
9ccaf0a6
BE
38382007-09-11 Ben Elliston <bje@au.ibm.com>
3839
3840 * config/spu/spu.md: Formatting fixes.
3841
fb27b3f6
JJ
38422007-09-10 Janis Johnson <janis187@us.ibm.com>
3843
3844 * config/dfp-bit.c (dfp_unary_func): Delete.
3845 (dfp_unary_op): Delete.
3846 (dfp_binary_op): Use decFloat functions instead of decNumber
3847 functions for binary operations.
3848 (d32_binary_op): Convert 32-bit operands to 64 bits for evaluation.
3849 (dnn_binary_op): Call dfp_binary_op with decFloat rather than
3850 DFP_C_TYPE.
3851 (dfp_compare_op): Use decFloat functions insteadof decNumber
3852 functions for comparisons.
3853 (d32_compare_op): Convert 32-bit operands to 64 bits for evaluation.
3854 (dnn_binary_op): Call dfp_compare_op with decFloat rather than
3855 DFP_C_TYPE.
3856 (DFP_ADD, DFP_SUB, DFP_MULTIPLE, DFP_DIVIDE): Use macros for
3857 call to dxx_binary_op and decFloat function.
3858 (DFP_EQ, DFP_NE, DFP_LT, DFP_GT, DFP_LE, DFP_GE): Use macros for
3859 calls to dxx_binary_op and decFloat function.
3860 * config/dfp-bit.h: Include decFloat header files.
3861 (decFloat, DFP_BINARY_OP, DFP_COMPARE_OP, DEC_FLOAT_ADD,
3862 DEC_FLOAT_SUBTRACT, DEC_FLOAT_MULTIPLY, DEC_FLOAT_DIVIDE,
3863 DEC_FLOAT_COMPARE, DEC_FLOAT_IS_ZERO, DEC_FLOAT_IS_NAN,
3864 DEC_FLOAT_IS_SIGNED: Define for each of 3 operand widths.
3865
e70444a8 38662007-09-10 Harsha Jagasia <harsha.jagasia@amd.com>
e139c7f9
UB
3867 Jan Sjodin <jan.sjodin@amd.com>
3868
e70444a8
HJ
3869 * tree-vect-analyze.c (vect_analyze_operations): Change
3870 comparison of loop iterations with threshold to less than
3871 or equal to instead of less than. Reduce
3872 min_scalar_loop_bound by one.
3873 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
3874 Change prologue and epilogue iterations estimate to vf/2,
3875 when unknown at compile-time. Change versioning guard
3876 cost to taken_branch_cost. If peeling for alignment is
3877 unknown at compile-time, change peel guard costs to one
3878 taken branch and one not-taken branch per peeled loop.
3879 If peeling for alignment is known but number of scalar loop
3880 iterations is unknown at compile-time, change peel guard
3881 costs to one taken branch per peeled loop. Change the cost
3882 model equation to consider vector iterations as the loop
3883 iterations less the prologue and epilogue iterations.
3884 Change outside vector cost check to less than or equal to
3885 zero instead of equal to zero.
3886 (vect_do_peeling_for_loop_bound): Reduce
3887 min_scalar_loop_bound by one.
3888 * tree-vectorizer.h: Add TARG_COND_TAKEN_BRANCH_COST and
3889 TARG_COND_NOT_TAKEN_BRANCH_COST.
3890 * config/i386/i386.h (processor_costs): Add
3891 scalar_stmt_cost, scalar_load_cost, scalar_store_cost,
3892 vec_stmt_cost, vec_to_scalar_cost, scalar_to_vec_cost,
3893 vec_align_load_cost, vect_unalign_load_cost,
3894 vec_store_cost, cond_taken_branch_cost,
3895 cond_not_taken_branch_cost.
3896 Define macros for x86 costs.
3897 * config/i386/i386.c:
3898 (size_cost): Set scalar_stmt_cost, scalar_load_cost,
3899 scalar_store_cost, vec_stmt_cost, vec_to_scalar_cost,
3900 scalar_to_vec_cost, vec_align_load_cost,
3901 vect_unalign_load_cost, vec_store_cost,
3902 cond_taken_branch_cost, cond_not_taken_branch_cost to one.
3903 (i386_cost, i486_cost, pentium_cost, pentiumpro_cost,
3904 geode_cost, k6_cost, athlon_cost, pentium4_cost, nocona_cost,
3905 core2_cost, generic64_cost, generic32_cost): Set to default
3906 untuned costs.
3907 (k8_cost, amdfam10_cost): Costs for vectorization tuned.
3908 (x86_builtin_vectorization_cost): New.
3909
2533577f
JJ
39102007-09-10 Janis Johnson <janis187@us.ibm.com>
3911 Ben Elliston <bje@au.ibm.com>
3912
3913 * dfp.c: Include decimal128Local.h;
3914 (dfp_byte_swap): Remove.
3915 (encode_decimal32, decode_decimal32): Don't handle endianness.
3916 (encode_decimal64, decode_decimal64): Ditto.
3917 (encode_decimal128, decode_decimal128): Ditto.
3918 * config/dfp-bit.c (host_to_ieee32, ieee_to_host_32): Ditto.
3919 (__swap64): Remove.
3920 (host_to_ieee_64, ieee_to_host_64): Don't handle endianness.
e139c7f9 3921 (__swap128): Remove
2533577f
JJ
3922 (host_to_ieee_128, ieee_to_host_128): Don't handle endianness.
3923 * Makefile.in (DECNUM_H): Add decimal128Local.h.
3924
bfd9cff5
DD
39252007-09-10 David Daney <ddaney@avtrex.com>
3926
3927 * config/mips/mips.md (UNSPEC_MEMORY_BARRIER): New entry in
3928 define_constants.
3929 (memory_barrier): Rewrote as an insn that clobbers memory.
3930
04910611
RS
39312007-09-10 Richard Sandiford <richard@codesourcery.com>
3932
3933 * config/mips/mips.c (mips_global_pointer): Check
3934 call_really_used_regs instead of call_used_regs.
3935 (mips_save_reg_p): Likewise. Save all call-saved registers
3936 if current_function_saves_all_registers. Fix indentation.
3937 No longer treat $18 as a special case.
3938 (compute_frame_size): Guard FPR loop with TARGET_HARD_FLOAT.
3939
7d8bed7b
RS
39402007-09-10 Richard Sandiford <richard@codesourcery.com>
3941
3942 * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): New macro.
3943 * config/mips/mips.c (mips_cpu_info_table): Mention it in the
3944 the introductory comment.
3945 (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Delete.
3946 (override_options): Don't test for it.
3947 * config/mips/sde.h (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Delete.
3948 (DRIVER_SELF_SPECS): Add MIPS_ARCH_FLOAT_SPEC.
3949 * config/mips/vr.h: As for config/mips/sde.h.
3950
67186a97
TS
39512007-09-10 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
3952 Revital Eres <eres@il.ibm.com>
3953
3954 * target.h (struct gcc_target.sched): New field: sms_res_mii.
3955 (struct ddg): Define.
3956 * target-def.h (TARGET_SCHED_SMS_RES_MII): Define.
3957 (TARGET_SCHED): Add TARGET_SCHED_SMS_RES_MII.
3958 * config/spu/spu.c: Include ddg.h.
3959 (TARGET_SCHED_SMS_RES_MII): Define.
3960 (spu_sms_res_mii): New function to calculate mii.
3961 * modulo-sched (res_MII): Use it.
3962 * doc/tm.texi: Document TARGET_SCHED_SMS_RES_MII.
3963
77340500
AK
39642007-09-10 Andreas Krebbel <krebbel1@de.ibm.com>
3965
3966 * config/s390/s390.c (s390_dump_pool): Create copy of constant
3967 pool entries since they might hold values that must not be shared.
3968
f8568ac0
UB
39692007-09-10 Uros Bizjak <ubizjak@gmail.com>
3970
3971 PR target/33369
3972 * gcc/config/i386/sse.md (ashr<mode>3): Change op2 mode to SImode.
3973 Use 'N' operand constraint for op2.
3974 (lshr<mode>3): Ditto.
3975 (ashl<mode>3): Ditto.
3976 (vec_shl_<mode>): Use const_0_to_255_mul_8_operand predicate for op2.
21da84bd 3977 (vec_shr_<mode>): Ditto.
f8568ac0
UB
3978 * gcc/config/i386/i386.c (ix86_expand_builtin) [IX86_BUILTIN_PSLL?128,
3979 IX86_BUILTIN_PSRA*?128, IX86_BUILTIN_PSRL?128]: Convert op1 to SImode.
3980
9e8c0677
AK
39812007-09-10 Andreas Krebbel <krebbel1@de.ibm.com>
3982
3983 * config/s390/s390.md ("fixuns_trunc<BFP:mode><GPR:mode>2"):
3984 Change mode macro in the last real_2expN parameter to uppercase.
3985
a5828d1e
MM
39862007-09-10 Michael Matz <matz@suse.de>
3987
3988 * tree-pass.h (pass_cselim): Declare new pass.
3989 * passes.c (init_optimization_passes): Link in pass_cselim.
3990 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Renamed from
3991 tree_ssa_phiopt; add do_store_elim parameter, handle it by calling
3992 cond_store_replacement.
3993 (condstoretemp): New static variable.
3994 (cond_store_replacement): New function.
3995 (tree_ssa_phiopt, tree_ssa_cs_elim): New wrappers around
3996 tree_ssa_phiopt_worker.
3997 (struct name_to_bb): New.
3998 (get_non_trapping, name_to_bb_hash, name_to_bb_eq, add_or_mark_expr,
3999 nt_init_block, nt_fini_block): New static functions.
4000 (seen_ssa_names, nontrap_set): New static variables.
4001 (gate_cselim, pass_cselim): Define new pass.
4002 * common.opt (ftree-cselim): New flag.
4003 * toplev.c (process_options): Set flag_tree_cselim if required.
4004
cf369845
HPN
40052007-09-10 Hans-Peter Nilsson <hp@axis.com>
4006
4007 * simplify-rtx.c (simplify_relational_operation_1): For recent
4008 canonicalization, don't recurse if op1 equals both PLUS arguments.
4009
3b010fe3
DD
40102007-09-09 David Daney <ddaney@avtrex.com>
4011
4012 * optabs.c (expand_sync_operation): Use plus insn if minus
4013 CONST_INT_P(val).
4014 (expand_sync_fetch_operation): Ditto.
4015
f901f85a
L
40162007-09-09 H.J. Lu <hongjiu.lu@intel.com>
4017
4018 * i386.md (*floatsisf2_mixed_vector): Use cvtdq2ps instead
4019 of cvtpq2ps.
4020 (*floatsisf2_sse_vector): Likewise.
4021
ac54f11d
KW
40222007-09-09 Krister Walfridsson <cato@df.lth.se>
4023
4024 * config/netbsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
4025
4e9d897d
L
40262007-09-09 H.J. Lu <hongjiu.lu@intel.com>
4027
4028 * config/i386/i386.h (ix86_tune_indices): Rename
4029 X86_USE_VECTOR_CONVERTS to X86_TUNE_USE_VECTOR_CONVERTS.
4030 (TARGET_USE_VECTOR_CONVERTS): Updated.
4031 * config/i386/i386.c: Likewise.
4032
dd735081 40332007-09-09 Sandra Loosemore <sandra@codesourcery.com>
4e9d897d 4034 Nigel Stephens <nigel@mips.com>
dd735081
SL
4035
4036 * doc/invoke.texi (Overall Options): Add .sx file extension
4037 as a synonym for .S.
4038 * cppspec.c (known_suffixes): Likewise.
4039 * gcc.c (default_compilers): Likewise.
4040
921c4418
RIL
40412007-09-09 Rask Ingemann Lambertsen <rask@sygehus.dk>
4042
4043 PR target/30315
4044 * config/i386/i386.h (CANONICALIZE_COMPARISON): Delete.
4045 * simplify-rtx.c (simplify_relational_operation_1): Add the
4046 canonicalization from i386.h.
4047 * doc/md.texi (Canonicalization of Instructions): Document it.
4048
4845dbb5 40492007-09-09 Jan Hubicka <jh@suse.cz>
4e9d897d 4050 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4845dbb5
JH
4051
4052 * i386.h (ix86_tune_indices): Add X86_USE_VECTOR_CONVERTS.
4053 (TARGET_USE_VECTOR_CONVERTS): New.
4054 * i386.md: New post-reload splitters for converting SF to DF and DF to
4055 SF.
4056 (floatsi* expander): Special case vector conversions.
4057 (floatsisf2_mixed_vector, floatsisf2_sse_vector_nointernunit,
4058 floatsisf2_sse_vector_internunit, floatsisf2_sse_vector,
4059 floatsidf2_mixed_vector, floatsidf2_sse_vector): New.
4060 (floatsisf2_mixed, floatsisf2_sse, floatsidf2_mixed, floatsidf2_sse):
4061 Disable when doing vector converts.
4062 (floatsi<mode>2_i387): Disable when
4063 * sse.md (vec_dupv2df): Export.
4064 * i386.c (ix86_tune_features): Enable SSE conversions.
4065
e9f91f62
RG
40662007-09-09 Richard Guenther <rguenther@suse.de>
4067
4068 * tree-ssa-operands.c (add_virtual_operand): Only mark
4069 stores as has_volatile_ops if alias information is not available.
4070
20dc9cf4
RE
40712007-09-09 Revital Eres <eres@il.ibm.com>
4072
4073 * doc/contrib.texi: Add myself.
4074
89675e73
IR
40752007-09-09 Ira Rosen <irar@il.ibm.com>
4076
4077 * tree-vectorizer.h (stmt_vinfo_set_inside_of_loop_cost,
4078 stmt_vinfo_set_outside_of_loop_cost): New functions.
4079 * tree-vect-transform.c (vect_get_cost_fields): Remove.
4080 (vect_model_simple_cost): Call
4081 stmt_vinfo_set_inside/outside_of_loop_cost to set the relevant cost
4082 field instead of calling vect_get_cost_fields.
4083 (vect_model_store_cost, vect_model_load_cost): Likewise.
4084
23a651fc
RE
40852007-09-09 Revital Eres <eres@il.ibm.com>
4086
4087 * config/rs6000/rs6000.c (paired_init_builtins): Add const
4088 declaration to bdesc_paired_preds variable.
4089 (paired_expand_builtin): Likewise.
4090
97511ad7
RE
40912007-09-09 Revital Eres <eres@il.ibm.com>
4092
4093 * dbgcnt.def (sms_sched_loop): New counter.
4094 * modulo-sched.c: Use sms_sched_loop instead of
4095 MAX_SMS_LOOP_NUMBER to determine the maximum number of loops to
4096 perform swing modulo scheduling on. Include dbgcnt.h.
4097 * Makefile.in: Add DBGCNT_H to modulo-sched.o.
4098 * params.def: Remove PARAM_MAX_SMS_LOOP_NUMBER.
4099
00188daa
UB
41002007-09-09 Uros Bizjak <ubizjak@gmail.com>
4101
4102 * config/i386/i386.md (X87MODEF12, SSEMODEF): Remove mode iterators.
4103 Substitute all uses with ...
4104 (MODEF): New mode iterator.
4105
3968877d
UB
4106 (fix_trunc<mode>_fisttp_i387_1): Remove operand constraints
4107 from pre-regalloc define_insn_and_split splitter pattern.
00188daa
UB
4108 (*fix_trunc<mode>_i387_1): Ditto.
4109 (*fistdi2_1): Ditto.
4110 (*fist<mode>2_1): Ditto.
4111 (frndintxf2_floor): Ditto.
4112 (*fist<mode>2_floor_1): Ditto.
4113 (frndintxf2_ceil): Ditto.
4114 (*fist<mode>2_ceil_1): Ditto.
4115 (frndintxf2_trunc): Ditto.
4116 (frndintxf2_mask_pm): Ditto.
4117
4118 (prologue): Use (const_int 0) as never generated filler insn.
4119 (epilogue): Ditto.
4120 (sibcall_epilogue): Ditto.
4121 (eh_return_si): Ditto.
4122 (eh_return_di): Ditto.
4123
4124 (add<mode>3): Rename from adddf3 and addsf3. Macroize expander
4125 using MODEF mode iterator.
4126 (sub<mode>3): Rename from subdf3 and subsf3. Macroize expander
4127 using MODEF mode iterator.
4128 (mul<mode>3): Rename from muldf3 and mulsf3. Macroize expander
4129 using MODEF mode iterator.
4130 (nearbyint<mode>2): Rename from nearbyintdf2 and nearbyintsf2.
4131 Macroize expander using MODEF mode iterator.
4132
4133 (zero_extendsidi2): Remove operand constraints from expander.
4134 (smuldi3_highpart): Ditto.
4135 (indirect_jump): Ditto.
4136 (tablejump): Ditto.
4137 (rsqrtsf2): Ditto.
4138 * config/i386/sse.md (storentv4sf): Ditto.
4139 (storentv2df): Ditto.
4140 (storentv2di): Ditto.
4141 (storentsi): Ditto.
4142 (sse2_cvtpd2ps): Ditto.
4143 (vec_interleave_highv16qi): Ditto.
4144 (vec_interleave_lowv16qi): Ditto.
4145 (vec_interleave_highv8hi): Ditto.
4146 (vec_interleave_lowv8hi): Ditto.
4147 (vec_interleave_highv4si): Ditto.
4148 (vec_interleave_lowv4si): Ditto.
4149 (vec_interleave_highv2di): Ditto.
4150 (vec_interleave_lowv2di): Ditto.
4151 (sse2_maskmovdqu): Ditto.
4152 * config/i386/mmx.md (mmx_maskmovq): Ditto.
4153
805e2059
IR
41542007-09-09 Ira Rosen <irar@il.ibm.com>
4155
4156 * tree-vectorizer.h (enum vect_def_type): Start enumeration from 1.
4157 (struct _slp_tree, struct _slp_instance): Define new data structures
4158 along macros for their access.
4159 (struct _loop_vec_info): Define new fields: strided_stores,
4160 slp_instances, and slp_unrolling_factor along macros for their access.
4161 (enum slp_vect_type): New.
e139c7f9
UB
4162 (struct _stmt_vec_info): Define new field, slp_type, and macros for
4163 its access.
805e2059
IR
4164 (STMT_VINFO_STRIDED_ACCESS): New macro.
4165 (vect_free_slp_tree): Declare.
4166 (vectorizable_load): Add an argument of type slp_tree.
4167 (vectorizable_store, vectorizable_operation, vectorizable_conversion,
4168 vectorizable_assignment): Likewise.
4169 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
4170 Declare (make extern).
9ccaf0a6 4171 * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
805e2059
IR
4172 (new_loop_vec_info): Likewise.
4173 (destroy_loop_vec_info): Free memory allocated for SLP structures.
4174 * tree-vect-analyze.c: Include recog.h.
4175 (vect_update_slp_costs_according_to_vf): New.
4176 (vect_analyze_operations): Add argument for calls to vectorizable_ ()
4177 functions. For not pure SLP stmts with strided access check that the
4178 group size is power of 2. Update the vectorization factor according to
4179 SLP. Call vect_update_slp_costs_according_to_vf.
4180 (vect_analyze_group_access): New.
4181 (vect_analyze_data_ref_access): Call vect_analyze_group_access.
4182 (vect_free_slp_tree): New functions.
4183 (vect_get_and_check_slp_defs, vect_build_slp_tree, vect_print_slp_tree,
4184 vect_mark_slp_stmts, vect_analyze_slp_instance, vect_analyze_slp,
4185 vect_make_slp_decision, vect_detect_hybrid_slp_stmts,
4186 vect_detect_hybrid_slp): Likewise.
4187 (vect_analyze_loop): Call vect_analyze_slp, vect_make_slp_decision
4188 and vect_detect_hybrid_slp.
4189 * tree-vect-transform.c (vect_estimate_min_profitable_iters): Take
4190 SLP costs into account.
4191 (vect_get_cost_fields): New function.
4192 (vect_model_simple_cost): Make extern, add SLP parameter and handle
4193 SLP.
4194 (vect_model_store_cost, vect_model_load_cost): Likewise.
4195 (vect_get_constant_vectors): New function.
4196 (vect_get_slp_vect_defs, vect_get_slp_defs,
4197 vect_get_vec_defs_for_stmt_copy, vect_get_vec_defs_for_stmt_copy,
4198 vect_get_vec_defs): Likewise.
4199 (vectorizable_reduction): Don't handle SLP for now.
4200 (vectorizable_call): Don't handle SLP for now. Add argument to
4201 vect_model_simple_cost.
4202 (vectorizable_conversion): Handle SLP (call vect_get_vec_defs to
4203 get SLPed and vectorized defs). Fix indentation and spacing.
4204 (vectorizable_assignment): Handle SLP.
4205 (vectorizable_induction): Don't handle SLP for now.
4206 (vectorizable_operation): Likewise.
4207 (vectorizable_type_demotion): Add argument to
4208 vect_model_simple_cost.
4209 (vectorizable_type_promotion): Likewise.
4210 (vectorizable_store, vectorizable_load): Handle SLP.
4211 (vectorizable_condition): Don't handle SLP for now.
4212 (vect_transform_stmt): Add a new argument for SLP. Check that there is
4213 no SLP transformation required for unsupported cases. Add SLP
4214 argument for supported cases.
4215 (vect_remove_stores): New function.
4216 (vect_schedule_slp_instance, vect_schedule_slp): Likewise.
4217 (vect_transform_loop): Schedule SLP instances.
4218 * Makefile.in: (tree-vect-analyze.o): Depend on recog.h.
4219
ae2bd7d2
AH
42202007-09-09 Andrew Haley <aph@redhat.com>
4221
e139c7f9
UB
4222 * optabs.c (sign_expand_binop): Set libcall_gen = NULL in the fake
4223 signed optab.
ae2bd7d2 4224
cf7c4aa6
HPN
42252007-09-09 Hans-Peter Nilsson <hp@axis.com>
4226
4227 Divide REG_LABEL notes into REG_LABEL_OPERAND and REG_LABEL_TARGET.
4228 * doc/rtl.texi (Insns): Specify when a label_ref makes a jump_insn.
4229 Similar for what label_refs can go in the JUMP_TARGET field. Split
4230 REG_LABEL documentation into REG_LABEL_TARGET and REG_LABEL_OPERAND.
4231 * reload.c (find_reloads): Generate REG_LABEL_OPERAND, not
4232 REG_LABEL when replacing an operand with a LABEL_REF for a
4233 non-jump insn.
4234 (subst_reloads): When replacing a LABEL_REG with a register,
4235 instead of generating a REG_LABEL note, assert that there already
4236 is one or that the label is a known target for the insn.
4237 * rtlanal.c (computed_jump_p): Instead of looking for a REG_LABEL
4238 note, check the JUMP_LABEL field. Remove "else" after return.
4239 * reorg.c (emit_delay_sequence): Replace case for REG_LABEL with
4240 cases for REG_LABEL_OPERAND and REG_LABEL_TARGET.
4241 (fill_slots_from_thread): Handle both REG_LABEL_OPERAND and
4242 REG_LABEL_TARGET notes, including the JUMP_TARGET field on JUMP_P
4243 insns. Iterate over all notes; don't assume there's only one.
4244 * cse.c (recorded_label_ref): Adjust comment to refer to
4245 REG_LABEL_OPERAND.
4246 (cse_extended_basic_block): Do LABEL_REF check for all INSN_P
4247 insns, not just NONJUMP_INSN_P.
4248 (check_for_label_ref): For JUMP_P insns, check that the LABEL_REF
4249 isn't a jump target.
4250 * jump.c (rebuild_jump_labels): Adjust head comment.
4251 (init_label_info): Ditto. Remove REG_LABEL_OPERAND notes only;
4252 don't reset REG_LABEL_TARGET notes, including the JUMP_LABEL field.
4253 (mark_all_labels): For JUMP_P insns without a target, check if the
4254 the target is noted on the previous nonjump insn.
4255 (mark_jump_label_1): New function, guts from mark_jump_label.
4256 <case IF_THEN_ELSE>: Handle first operand as a non-target when
4257 marking jump target labels.
4258 <case LABEL_REF>: Adjust for whether to generate a
4259 REG_LABEL_TARGET or a REG_LABEL_OPERAND note.
4260 For 'E' format rtl, iterate in descending element order.
4261 (delete_related_insns): Handle both REG_LABEL_TARGET and
4262 REG_LABEL_OPERAND notes. For JUMP_P insns with labels with zero
4263 reference count, delete and fallthrough. Move finding-next-
4264 non-deleted insn last in the function. Look at all INSN_P insns
4265 for REG_LABEL_OPERAND notes.
4266 (redirect_jump_2): Assert that OLABEL equals the old JUMP_LABEL of
4267 JUMP.
4268 * print-rtl.c (print_rtx): For JUMP_P insns and a non-NULL
4269 JUMP_LABEL, output the INSN_UID of it.
4270 * gcse.c: Adjust comments as appropriate to say REG_LABEL_OPERAND
4271 and/or REG_LABEL_TARGET.
4272 (add_label_notes): Only add REG_LABEL_OPERAND notes. Put in line
4273 with jump.c copy by only adding notes for labels actually
4274 referenced in the insn.
4275 * emit-rtl.c (try_split): Don't assume only NONJUMP_INSN_P need
4276 usage count increment; handle all INSN_P trial insns.
4277 (emit_copy_of_insn_after): Change to not copy REG_LABEL_OPERAND
4278 notes.
4279 * rtl.h (struct rtx_def) <volatil>: Adjust to mention
4280 REG_LABEL_TARGET and REG_LABEL_OPERAND.
4281 (LABEL_REF_NONLOCAL_P): Allow REG_LABEL_TARGET and
4282 REG_LABEL_OPERAND.
4283 * combine.c (distribute_notes): Adjust for REG_LABEL_TARGET on
4284 JUMP_P insns and REG_LABEL_OPERAND everywhere.
4285 * sched-rgn.c (is_cfg_nonregular): Check for REG_LABEL_OPERANDS
4286 on all INSN_P insns.
4287 * reg-notes.def (LABEL_TARGET, LABEL_OPERAND): Split from LABEL.
4288 * cfgrtl.c (delete_insn): Adjust to handle REG_LABEL_TARGET and
4289 REG_LABEL_OPERAND notes.
4290 * reload1.c (calculate_needs_all_insns): Adjust comments.
4291 (set_label_offsets): Adjust to look for REG_LABEL_OPERAND notes.
4292 * config/alpha/alpha.md (split for load of an address into a
4293 four-insn sequence on Unicos/Mk): Adjust to use
4294 REG_LABEL_OPERAND.
4295 * config/sh/sh.md (sh_reorg, final_prescan_insn): Ditto.
4296
ba4807a0
LB
42972007-09-09 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4298
4299 Revert:
4300 2007-09-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4301 * regrename.c (copyprop_hardreg_forward_1): New variable next. Use
4302 FOR_BB_INSNS_SAFE instead of for loop.
4303 * cse.c (cse_extended_basic_block): Likewise.
4304 * postreload.c (reload_cse_regs_1): New variable next. Make sure
4305 that the for loop does not invoke NEXT_INSN on a deleted insn.
4306 * function.c (instantiate_virtual_regs): Likewise.
4307 * lower-subreg.c (remove_retval_note): Likewise.
4308 (decompose_multiword_subregs): Use FOR_BB_INSNS_SAFE instead of
4309 FOR_BB_INSNS.
4310 * emit-rtl.c (remove_insn): Set NEXT_INSN and PREV_INSN to NULL on
4311 a deleted insn.
4312 * cfgrtl.c (delete_insn): Set JUMP_LABEL to NULL on a deleted
4313 insn, if it's a jump.
4314 (try_redirect_by_replacing_jump): New variable jump_p. Call
4315 tablejump_p before delete_insn_chain.
4316 * reload1.c (reload): New variable next. Make sure that the for
4317 loop does not invoke NEXT_INSN on a deleted insn.
4318 (fixup_eh_region_note): Make the loop terminate if i becomes NULL.
4319 (delete_output_reload): New variable prev. Make sure the the for
4320 loops do not invoke PREV_INSN on a deleted insn.
4321
96f52d87
JDA
43222007-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4323
4324 * pa/constraints.md: Remove 'X' from unused letters comment.
4325
83c9a0b9
RB
43262007-09-08 Richard Guenther <rguenther@suse.de>
4327
4328 * tree-tailcall.c (find_tail_calls): If we don't have aliases
4329 computed check stmt_ann->references_memory instead of counting
4330 virtual operands.
4331
43322007-09-08 Segher Boessenkool <segher@kernel.crashing.org>
b8b89e7c
SB
4333
4334 * cse.c (fold_rtx): Use validate_unshare_change() instead of
4335 validate_change() in one more case.
4336
cbc012d5
ZD
43372007-09-08 Zdenek Dvorak <ook@ucw.cz>
4338
4339 PR tree-optimization/32283
4340 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Use
4341 estimated_loop_iterations.
4342 (determine_use_iv_cost_condition): Decrease cost of expressions
4343 used in iv elimination.
4344
8fc6f12f
RG
43452007-09-08 Richard Guenther <rguenther@suse.de>
4346
4347 * tree-cfg.c (verify_gimple_expr): Avoid building new
4348 pointer types, use TYPE_POINTER_TO if available instead.
4349
e9ddec4e
UB
43502007-09-08 Uros Bizjak <ubizjak@gmail.com>
4351
4352 PR target/33329
00188daa 4353 PR rtl-optimization/26449
e9ddec4e
UB
4354 * config/i386/sse.md (mulv4si3): Do not expand sse2 sequence.
4355 (*sse2_mulv4si3): New define_insn_and_split pattern. Split insn in
4356 split1 pass.
4357 (mulv16qi3): Implement as define_insn_and_split pattern instead of
00188daa 4358 define_expand. Split insn in split1 pass.
e9ddec4e
UB
4359 (mulv2di3): Ditto.
4360
dab12601
DN
43612007-09-08 Dorit Nuzman <dorit@il.ibm.com>
4362
4363 PR tree-optimization/33301
4364 * tree-vect-analyze (analyze_operations): Look at the type of the rhs
4365 when relevant.
4366
7a9c7d01
ZD
43672007-09-07 Zdenek Dvorak <ook@ucw.cz>
4368
4369 PR tree-optimization/32183
4370 * Makefile.in (tree-ssa-reassoc.o): Also depend on $(CFGLOOP_H).
4371
4372 * tree-ssa-reassoc.c: Include cfgloop.h.
4373 (is_reassociable_op): Add a loop argument and return true only
4374 for inside loop.
4375 (linearize_expr): Updated.
4376 (should_break_up_subtract): Likewise.
4377 (linearize_expr_tree): Likewise.
4378 (init_reassoc): Call loop_optimizer_init with
4379 AVOID_CFG_MODIFICATIONS. Remove calculate_dominance_info call
4380 with CDI_DOMINATORS.
4381 (fini_reassoc): Call loop_optimizer_finalize.
4382
9502767b
SA
43832007-09-07 Sterling Augustine <sterling@tensilica.com>
4384
4385 * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Use an ISYNC even
4386 if there is no i-cache.
4387
eb2c3940
RG
43882007-09-07 Richard Guenther <rguenther@suse.de>
4389
4390 Reapply
4391 2007-09-06 Richard Guenther <rguenther@suse.de>
4392
4393 PR tree-optimization/32586
4394 * tree-ssa-sccvn.c (simplify_binary_expression): Avoid
4395 folding if nothing changed.
4396 (simplify_unary_expression): New function. Do tree combining
4397 on conversion like codes.
4398 (try_to_simplify): Call it.
4399
f74eeed4
JDA
44002007-09-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4401
4402 PR target/33286
4403 * gthr-posix.h (__gthread_active_p): Add implementation for hppa-hpux.
4404 (__gthread_active,__gthread_start, __gthread_active_init): New.
4405 * gthr-posix95.h: Likewise.
4406
215161e2
RZ
44072007-09-07 Roman Zippel <zippel@linux-m68k.org>
4408
4409 * function.h (struct function): Rename calls_unwind_init
4410 to saves_all_registers.
4411 (current_function_saves_all_registers): Renamed from
4412 current_function_calls_unwind_init.
4413 * reload1.c (reload): Set current_function_saves_all_registers.
4414 * except.c (expand_builtin_unwind_init): Likewise.
4415 * config/m68k/m68k.c (m68k_save_reg): Use
4416 current_function_saves_all_registers to save pic register.
4417
6ef9a246
JJ
44182007-09-07 Janis Johnson <janis187@us.ibm.com>
4419
4420 config/m68k/m68k.c (floating_exact_log2): Update call to real_2expN.
4421 config/s390/s390.md (fixuns_trunc<BFP:mode><GPR:mode>2): Ditto.
4422
4423 Reapply reverted changes:
4424
4425 2007-09-06 Jan Hubicka <jh@suse.cz>
4426
e139c7f9
UB
4427 * config/i386.c (ix86_expand_lround, ix86_expand_round): Update call
4428 of real_2expN.
6ef9a246
JJ
4429
4430 2007-09-06 Richard Sandiford <richard@codesourcery.com>
4431
4432 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
4433 (fixuns_truncsfsi2, fixuns_truncsfdi2): Update calls to real_2expN.
4434
4435 2007-09-05 Janis Johnson <janis187@us.ibm.com>
4436
4437 * optabs.c (expand_float): Convert unsigned integer as signed only
4438 if it provides sufficient accuracy; add mode argument to real_2expN.
4439 (expand_fix): Fix comment typos; extend binary float into mode
4440 wider than destination for converion to unsigned integer; add mode
4441 argument to real_2expN.
4442 * real.c (real_2expN): Add mode argument to special-case decimal
4443 float values.
4444 * real.h (real_2expN): Ditto.
4445 * fixed-value.c (check_real_for_fixed_mode): Add mode argument to
4446 real_2expN.
4447 (fixed_from_string): Ditto.
4448 (fixed_to_decimal): Ditto.
4449 (fixed_convert_from_real): Ditto.
4450 (real_convert_from_fixed): Ditto.
4451 * config/rs6000/rs6000.md (FP): Include DD and TD modes.
4452 * config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
4453 muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
4454 floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
4455
b48d0358
DN
44562007-09-07 Diego Novillo <dnovillo@google.com>
4457
4458 * tree-flow.h (const_block_stmt_iterator): Remove.
4459 Update all users to use block_stmt_iterator.
4460 * tree-iterator.h (const_tree_stmt_iterator): Remove.
4461 Update all users to use tree_stmt_iterator.
4462
7c45aad5
SL
44632007-09-07 Sandra Loosemore <sandra@codesourcery.com>
4464
4465 * config/mips/mips.c (mips_set_current_function): Temporarily
4466 make this a no-op to fix bootstrap errors, pending rewrite.
4467
74567c2c
JH
44682007-09-07 Jan Hubicka <jh@suse.cz>
4469
4470 * reorg.c (dbr_schedule): Move code removing placeholder USEs later
4471 in the pass.
4472
71f4a023
DN
44732007-09-07 Dorit Nuzman <dorit@il.ibm.com>
4474
4475 PR tree-optimization/33299
00188daa
UB
4476 * tree-vect-transform.c (vect_create_epilog_for_reduction): Update
4477 uses for all relevant loop-exit phis, not just the first.
71f4a023 4478
ccf64c83
RG
44792007-09-07 Richard Guenther <rguenther@suse.de>
4480
4481 PR middle-end/33330
4482 * tree-ssa-operands.c (access_can_touch_variable): An access
4483 of the form (*p)[0] can touch a variable of same size.
4484
201b2ead
JH
44852007-09-07 Jan Hubicka <jh@suse.cz>
4486
4487 * passes.c (init_optimization_passes): Add simple dce and addressable
4488 passes.
4489 * tree-ssa.c (execute_update_addresses_taken): New function.
4490 (pass_update_address_taken): New.
4491 * tree-ssa-dse.c (execute_simple_dse): New function.
4492 (pass_simple_dse): New.
4493 * tree-pass.h (pass_simple_dse, pass_update_address_taken): Declare.
4494
f85138bc
TB
44952007-09-07 Tobias Burnus <burnus@net-b.de>
4496
4497 PR middle-end/33321
4498 * doc/invoke.texi: Fix -Wstrict-overflow= table.
4499
d4ef8a0b
RG
45002007-09-07 Richard Guenther <rguenther@suse.de>
4501
4502 Revert
4503 2007-09-06 Richard Guenther <rguenther@suse.de>
4504
4505 PR tree-optimization/32586
4506 * tree-ssa-sccvn.c (simplify_binary_expression): Avoid
4507 folding if nothing changed.
4508 (simplify_unary_expression): New function. Do tree combining
4509 on conversion like codes.
4510 (try_to_simplify): Call it.
4511
b616a16e
UB
45122007-09-07 Richard Guenther <rguenther@suse.de>
4513 Uros Bizjak <ubizjak@gmail.com>
4514
4515 PR tree-optimization/32821
4516 * tree_if_conv.c (combine_blocks): Use alloc_stmt_list instead of
4517 NULL in the call to set_bb_stmt_list.
4518
7ab6a03b
RS
45192007-09-07 Richard Sandiford <richard@codesourcery.com>
4520
4521 * config/mips/mips.c (build_mips16_call_stub): Emit all direct
4522 float calls here, rather than leaving some to the caller.
4523 Use call_internal_direct and call_value_internal_direct.
4524 * config/mips/mips.md (call_internal_direct): New pattern.
4525 (call_value_internal_direct): Likewise.
4526
8d1d0dee
RS
45272007-09-07 Richard Sandiford <richard@codesourcery.com>
4528
4529 * config/mips/mips.c (mips_base_move_loop_invariants): New variable.
4530 (mips_set_mips16_mode): Restore flag_move_loop_invariants, then set
4531 to 0 for MIPS16.
4532 (override_options): Set mips_base_move_loop_invariants.
4533
704aab3e
RS
45342007-09-07 Richard Sandiford <richard@codesourcery.com>
4535
4536 * config/mips/mips.opt (mcode-readable=): Move to keep list
4537 alphabetical.
4538
a318179e
RS
45392007-09-07 Richard Sandiford <richard@codesourcery.com>
4540
4541 * doc/invoke.texi: Document the MIPS -mlocal-sdata, -mextern-sdata
4542 and -mgpopt options. Adjust the -G documentation to match.
4543 * config/mips/mips.opt (mextern-data, mgpopt, mlocal-data): New.
4544 * config/mips/mips.c (mips_rtx_constant_in_small_data_p): New
4545 function, split out from mips_classify_symbol. Return false for
4546 !TARGET_LOCAL_SDATA.
4547 (mips_classify_symbol): Call mips_rtx_constant_in_small_data_p.
4548 Only use GP-relative accesses for non-pool symbols if TARGET_GPOPT.
4549 (override_options): Check whether the -mgpopt setting is consistent
4550 with the other flags.
4551 (symbolic_expression_p): Delete.
4552 (mips_select_rtx_section): Use mips_rtx_constant_in_small_data_p
4553 and default_elf_select_rtx_section.
4554 (mips_in_small_data_p): Honor section attributes for MIPS16 too.
4555 Return false for local data unless TARGET_LOCAL_SDATA. Likewise
4556 external data and TARGET_EXTERN_SDATA.
4557
f7de3bd3
TB
45582007-09-07 Tobias Burnus <burnus@net-b.de>
4559
4560 PR fortran/33303
4561 * doc/cpp.texi (Common Predefined Macros): Add __GFORTRAN__.
4562
62a4a967
LB
45632007-09-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4564
4565 * regrename.c (copyprop_hardreg_forward_1): New variable next. Use
4566 FOR_BB_INSNS_SAFE instead of for loop.
4567 * cse.c (cse_extended_basic_block): Likewise.
4568 * postreload.c (reload_cse_regs_1): New variable next. Make sure
4569 that the for loop does not invoke NEXT_INSN on a deleted insn.
4570 * function.c (instantiate_virtual_regs): Likewise.
4571 * lower-subreg.c (remove_retval_note): Likewise.
4572 (decompose_multiword_subregs): Use FOR_BB_INSNS_SAFE instead of
4573 FOR_BB_INSNS.
4574 * emit-rtl.c (remove_insn): Set NEXT_INSN and PREV_INSN to NULL on
4575 a deleted insn.
4576 * cfgrtl.c (delete_insn): Set JUMP_LABEL to NULL on a deleted
4577 insn, if it's a jump.
4578 (try_redirect_by_replacing_jump): New variable jump_p. Call
4579 tablejump_p before delete_insn_chain.
4580 * reload1.c (reload): New variable next. Make sure that the for
4581 loop does not invoke NEXT_INSN on a deleted insn.
4582 (fixup_eh_region_note): Make the loop terminate if i becomes NULL.
4583 (delete_output_reload): New variable prev. Make sure the the for
4584 loops do not invoke PREV_INSN on a deleted insn.
4585
917948d3
ZD
45862007-09-06 Zdenek Dvorak <ook@ucw.cz>
4587
4588 * cgraphbuild.c (rebuild_cgraph_edges): Export.
4589 * cgraph.h (rebuild_cgraph_edges): Declare.
4590 * tree-pass.h (pass_expand_omp_ssa): New.
4591 * omp-low.c (find_omp_clause): Export.
4592 (copy_var_decl): Split from omp_copy_decl_2.
4593 (build_omp_barrier): Return the call to emit instead of emitting
4594 it directly.
4595 (lower_rec_input_clauses, expand_omp_single): Gimplify the result of
4596 build_omp_barrier.
4597 (extract_omp_for_data, expand_parallel_call, expand_omp_parallel,
4598 expand_omp_for_generic, expand_omp_for_static_nochunk,
4599 expand_omp_for_static_chunk, expand_omp_for, expand_omp_sections):
4600 Adapted to work on SSA form.
4601 (execute_expand_omp): Do not invalidate dominance information.
4602 (gate_expand_omp): Do not run with -fopenmp-ssa flag.
4603 (gate_expand_omp_ssa, pass_expand_omp_ssa): New.
4604 * gimplify.c (gimplify_omp_for): Ensure that the control variable is
4605 a gimple_reg.
4606 (force_gimple_operand): Allow gimplifying code expressions without
4607 value.
4608 * tree-predcom.c (mark_virtual_ops_for_renaming): Handle phi nodes.
4609 * common.opt (fopenmp-ssa): New.
4610 * tree-flow.h (find_omp_clause, copy_var_decl): Declare.
4611 * Makefile.in (tree-cfg.o): Add TREE_INLINE_H dependency.
4612 * tree-cfg.c: Include tree-inline.h.
4613 (struct move_stmt_d): Replace vars_to_remove by vars_map field.
4614 (replace_by_duplicate_decl, replace_ssa_name,
4615 mark_virtual_ops_in_region): New functions.
4616 (move_stmt_r, move_block_to_fn, move_sese_region_to_fn): Adapted
4617 to work on SSA form.
4618 * passes.c (init_optimization_passes): Add pass_expand_omp_ssa pass.
4619 * tree-ssa-operands.c (get_expr_operands): Handle operands of OMP
4620 constructs.
4621
b9dd78fa
LB
46222007-09-06 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4623
4624 * tree-loop-linear.c: Include obstack.h.
4625 (linear_transform_loops): New obstack lambda_obstack.
4626 Initialize it, pass it to gcc_loopnest_to_lambda_loopnest,
4627 lambda_loopnest_transform, lambda_loopnest_to_gcc_loopnest calls
4628 and free afterwards.
4629 * lambda.h (struct obstack): New forward declaration.
4630 (lambda_linear_expression_new): New parameter of type struct
4631 obstack *.
4632 (lambda_loopnest_new): Likewise.
4633 (lambda_loopnest_transform): Likewise.
4634 (lambda_body_vector_new): Likewise.
4635 (lambda_body_vector_compute_new): Likewise.
4636 (gcc_loopnest_to_lambda_loopnest): Likewise.
4637 (lambda_loopnest_to_gcc_loopnest): Likewise.
4638 * lambda-code.c: Include obstack.h.
4639 (lambda_lattice_new): New parameter lambda_obstack. Use it for
4640 allocation of ret.
4641 (lambda_body_vector_new): Likewise.
4642 (lambda_linear_expression_new): Likewise.
4643 (lambda_lattice_new): Likewise.
4644 (lambda_loopnest_new): Likewise. Additionally use obstack to
4645 allocate LN_LOOPS(ret).
4646 (lambda_lattice_compute_base): New parameter lambda_obstack. Pass
4647 it to lambda_lattice_new.
4648 (lambda_body_vector_compute_new): New parameter lambda_obstack.
4649 Pass it to lambda_body_vector_new.
4650 (lambda_lattice_compute_base): New paramater lambda_obstack. Pass
4651 it to lambda_lattice_new.
4652 (compute_nest_using_fourier_motzkin): New parameter lambda_obstack.
4653 Pass it to lambda_loopnest_new, lambda_linear_expression_new.
4654 (lambda_compute_target_space): Likewise.
4655 (lambda_compute_auxillary_space): New parameter lambda_obstack.
4656 Pass it to lambda_lattice_compute_base and
4657 compute_nest_using_fourieer_motzkin.
4658 (lambda_loopnest_transform): New parameter lambda_obstack. Pass
4659 it to lambda_lattice_compute_base, lambda_lattice_auxillary_space
4660 and lambda_lattice_compute_target_space.
4661 (gcc_tree_to_linear_expression): Nex parameter lambda_obstack.
4662 Pass it to lambda_linear_expression_new.
4663 (gcc_loop_to_lambda_loop): New parameter lambda_obstack. Pass it
4664 to gcc_tree_to_linear_expression.
4665 (gcc_loopnest_to_lambda_loopnest): New parameter lambda_obstack.
4666 Pass it to gcc_loop_to_lambda_loop and lambda_loopnest_new.
4667 (lambda_loopnest_to_gcc_loopnest): New parameter lambda_obstack.
4668 Pass it to lambda_body_vector_new and
4669 lambda_body_vector_compute_new.
4670 * Makefile.in (tree-loop-linear.o): Add $(OBSTACK_H) dependency.
4671 (lambda-code.o): Likewise.
4672
0f996086
CF
46732007-09-06 Chao-ying Fu <fu@mips.com>
4674
4675 * ginclude/stdfix.h: New file.
4676 * Makefile.in (USER_H): Add $(srcdir)/ginclude/stdfix.h.
4677 (convert.o): Add dependence on fixed-value.h.
4678 * c-convert.c (convert): Support FIXED_POINT_TYPE.
4679 * c-cppbuiltin.c (builtin_define_fixed_point_constants): New function
4680 to define fixed-point constants.
4681 (c_cpp_builtins): Define fixed-point constants.
4682 * convert.c (fixed-value.h): New include.
4683 (convert_to_real): Update comment to include fixed-point.
4684 Support FIXED_POINT_TYPE.
4685 (convert_to_integer): Update comment to include fixed-point.
4686 Support FIXED_POINT_TYPE.
4687 (convert_to_complex): Support FIXED_POINT_TYPE.
4688 (convert_to_fixed): New function.
4689 * convert.h (convert_to_fixed): Declare.
4690 * genopinit.c: Add comment about $Q for only fixed-point modes.
4691 (optabs): Add fract_optab, fractuns_optab, satfract_optab,
4692 satfractuns_optab, add_optab, ssadd_optab, usadd_optab, sub_optab,
4693 sssub_optab, ussub_optab, smul_optab, ssmul_optab, usmul_optab,
4694 ssmadd_widen_optab, usmadd_widen_optab, ssdiv_optab, udiv_optab,
4695 usdiv_optab, ssashl_optab, usashl_optab, neg_optab, ssneg_optab,
4696 usneg_optab for fixed-point modes.
4697 (gen_insn): Add force_fixed to track the $Q format for all fixed-point
4698 modes.
4699 * optabs.c (optab_for_tree_code): For *DIV_EXPR, LSHIFT_EXPR,
4700 PLUS_EXPR, MINUS_EXPR, MULT_EXPR, NEGATE_EXPR, return signed or
4701 unsigned saturation optabs, when type is saturating.
4702 (shift_optab_p): Return true for SS_ASHIFT or US_ASHIFT.
4703 (expand_fixed_convert): New function.
4704 (gen_fixed_libfunc, gen_signed_fixed_libfunc,
4705 gen_unsigned_fixed_libfunc, gen_int_fp_fixed_libfunc,
4706 gen_int_fp_signed_fixed_libfunc, gen_int_fixed_libfunc,
4707 gen_int_signed_fixed_libfunc, gen_int_unsigned_fixed_libfunc,
4708 gen_fract_conv_libfunc, gen_fractuns_conv_libfunc,
4709 gen_satfract_conv_libfunc, gen_satfractuns_conv_libfunc): New
4710 functions.
4711 (init_optabs): Initialize ssadd_optab, usadd_optab, sssub_optab,
4712 ussub_optab, ssmul_optab, usmul_optab, ssmadd_widen_optab,
4713 usmadd_widen_optab, ssmsub_widen_optab, usmsub_widen_optab,
4714 ssdiv_optab, usdiv_optab, ssashl_optab, usashl_optab, ssneg_optab,
4715 usneg_optab, fract_optab, fractuns_optab, satfract_optab,
4716 satfractuns_optab.
4717 Initialize fixed-point libraries, including add, ssadd, usadd, sub,
4718 sssub, ussub, mul, ssmul, usmul, div, ssdiv, udiv, usdiv, ashl,
4719 ssashl, usashl, ashr, lshr, neg, ssneg, usneg, cmp, fract, satfract,
4720 fractuns, satfractuns.
4721 * optabs.h (enum optab_index): Add OTI_ssadd, OTI_usadd, OTI_sssub,
4722 OTI_ussub, OTI_ssmul, OTI_usmul, OTI_ssdiv, OTI_usdiv, OTI_ssneg,
4723 OTI_usneg, OTI_ssashl, OTI_usashl, OTI_ssmadd_widen, OTI_usmadd_widen,
4724 OTI_ssmsub_widen, OTI_usmsub_widen.
4725 (ssadd_optab, usadd_optab, sssub_optab, ussub_optab, ssmul_optab,
4726 usmul_optab, ssdiv_optab, usdiv_optab, ssneg_optab, usneg_optab,
4727 ssashl_optab, usashl_optab, ssmadd_widen_optab, usmadd_widen_optab,
4728 umsub_widen_optab, usmsub_widen_optab): Define.
4729 (enum convert_optab_index): Add COI_fract, COI_fractuns, COI_satfract,
4730 COI_satfractuns.
4731 (fract_optab, fractuns_optab, satfract_optab, satfractuns_optab):
4732 Define.
4733 (expand_fixed_convert): Declare.
4734 * expr.c (convert_move): Support the move of fixed-point modes.
4735 (emit_move_insn_1): Handle fixed-point mode to move via integer.
4736 (categorize_ctor_elements_1): Handle FIXED_CST.
4737 (count_type_elements): Handle FIXED_POINT_TYPE.
4738 (expand_expr_real_1): For VECTOR_CST, check MODE_VECTOR_FRACT,
4739 MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
4740 Support FIXED_CST.
4741 For PLUS_EXPR and MINUS_EXPR, support saturating and non-saturating
4742 multiply and add/subtract for fixed-point types.
4743 For MULT_EXPR, *DIV_EXPR, *SHIFT_EXPR, if the mode if a fixed-point
4744 mode, we jump to binop directly.
4745 Support FIXED_CONVERT_EXPR.
4746 (do_store_flag): Check FIXED_CST to put a constant second.
4747 (vector_mode_valid_p): Handle MODE_VECTOR_FRACT,
4748 MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
4749 (const_vector_from_tree): Support FIXED_CST.
4750 * doc/extend.texi (Fixed-Point): New node.
4751 * doc/md.texi (ssadd, usadd, sssub, ussub, ssmul, usmul, ssdiv, usdiv,
4752 ssmadd, usmadd, ssmsub, usmsub, ssashl, usashl, ssneg, usneg, fract,
4753 satfract, fractuns, satfractuns): Document them.
4754
aeffb4b5
BS
47552007-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
4756
4757 * config/bfin/bfin.h (PREFERRED_RELOAD_CLASS): Don't reload autoinc
4758 addresses into I registers.
4759
bc211e05
JH
47602007-09-06 Jan Hubicka <jh@suse.cz>
4761 Andreas Tobler <a.tobler@schweiz.org>
4762
4763 * config/darwin.c (machopic_indirect_data_reference): Avoid invalid
4764 sharing.
4765 (machopic_legitimize_pic_address): Likewise.
4766
abf4ada9 47672007-09-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
e139c7f9 4768 Jan Hubicka <jh@suse.cz>
abf4ada9
AP
4769
4770 * config/spu/spu.md (floatsidf2): Use convert_optab_libfunc
4771 instead of ufloat_optab->handlers directly.
4772 (floatdidf2): Likewise.
4773
566dfd71
SL
47742007-09-06 Sandra Loosemore <sandra@codesourcery.com>
4775
4776 * config/mips/mips.c: Include diagnostic.h.
4777 (mips_set_current_function): Check errorcount and sorrycount
4778 before generating RTL.
4779
6d992de0
RS
47802007-09-06 Richard Sandiford <richard@codesourcery.com>
4781
4782 PR target/33256
4783 * config/mips/mips.c (mips_classify_symbolic_expression): New function.
4784 (mips_classify_address): Use it instead of mips_symbolic_constant_p.
4785 (print_operand_reloc): Likewise.
4786
fcde2932
JJ
47872007-09-06 Janis Johnson <janis187@us.ibm.com>
4788
4789 Revert:
4790
4791 2007-09-06 Jan Hubicka <jh@suse.cz>
4792
4793 * i386.c (ix86_expand_lround, ix86_expand_round): Update call of
4794 real_2expN.
4795
4796 2007-09-06 Richard Sandiford <richard@codesourcery.com>
4797
4798 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
4799 (fixuns_truncsfsi2, fixuns_truncsfdi2): Update calls to real_2expN.
4800
4801 2007-09-05 Janis Johnson <janis187@us.ibm.com>
4802
4803 * optabs.c (expand_float): Convert unsigned integer as signed only
4804 if it provides sufficient accuracy; add mode argument to real_2expN.
4805 (expand_fix): Fix comment typos; extend binary float into mode
4806 wider than destination for converion to unsigned integer; add mode
4807 argument to real_2expN.
4808 * real.c (real_2expN): Add mode argument to special-case decimal
4809 float values.
4810 * real.h (real_2expN): Ditto.
4811 * fixed-value.c (check_real_for_fixed_mode): Add mode argument to
4812 real_2expN.
4813 (fixed_from_string): Ditto.
4814 (fixed_to_decimal): Ditto.
4815 (fixed_convert_from_real): Ditto.
4816 (real_convert_from_fixed): Ditto.
4817 * config/rs6000/rs6000.md (FP): Include DD and TD modes.
4818 * config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
4819 muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
4820 floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
4821
5ffeb913
TT
48222007-09-06 Tom Tromey <tromey@redhat.com>
4823
4824 * tree-cfg.c (remove_bb): Only warn if line is non-zero.
4825 * c-pch.c (c_common_read_pch): Restore current location after
4826 reading PCH file.
4827 * tree.c (expand_location): Update.
4828 (expr_filename): Changed return type. Unified the two cases.
4829 (expr_lineno): Likewise.
4830 (annotate_with_file_line): Don't use EXPR_LINENO and EXPR_FILENAME
4831 as lvalues.
4832 * toplev.c (line_table): Changed type.
4833 (general_init): Update.
4834 (realloc_for_line_map): New function.
4835 (general_init): Allocate line_table using GC.
4836 * fix-header.c (line_table): Changed type.
4837 (read_scan_file): Update.
4838 (read_scan_file): Update.
4839 * c-ppoutput.c (maybe_print_line): Update.
4840 (print_line): Update.
4841 (cb_line_change): Update.
4842 (cb_define): Update.
4843 (pp_file_change): Update.
4844 * c-opts.c (c_common_init_options): Update.
4845 (finish_options): Update.
4846 (push_command_line_include): Update.
4847 * c-lex.c (cb_line_change): Update.
4848 (cb_def_pragma): Update.
4849 (cb_define): Update.
4850 (cb_undef): Update.
4851 (c_lex_with_flags): Use cpp_get_token_with_location.
4852 * input.h (line_table): Changed type.
4853 (location_from_locus): New macro.
4854 * tree.h (EXPR_FILENAME): No longer an lvalue.
4855 (EXPR_LINENO): Likewise.
4856 (expr_locus, set_expr_locus): Declare separately for
4857 USE_MAPPED_LOCATION.
4858 (expr_filename, expr_lineno): Changed return type.
4859 * gimplify.c (tree_to_gimple_tuple): Use SET_EXPR_LOCUS.
4860 * cfgexpand.c (expand_gimple_cond_expr): Use location_from_locus.
4861 (expand_gimple_basic_block): Likewise.
4862 * final.c (final_scan_insn): Use expanded_location.
4863
111f1fca
RG
48642007-09-06 Richard Guenther <rguenther@suse.de>
4865
4866 PR tree-optimization/32586
4867 * tree-ssa-sccvn.c (simplify_binary_expression): Avoid
4868 folding if nothing changed.
4869 (simplify_unary_expression): New function. Do tree combining
4870 on conversion like codes.
4871 (try_to_simplify): Call it.
4872 * builtins.c (fold_builtin_cexp): Fold the built expressions.
4873 * fold-const.c (fold_unary): Test result of get_callee_fndecl().
4874
7903b3e5
JH
48752007-09-06 Jan Hubicka <jh@suse.cz>
4876
4877 PR target/33318
4878 * cse.c (fold_rtx): Avoid invalid sharing.
4879
5ee7f306
RS
48802007-09-06 Richard Sandiford <richard@codesourcery.com>
4881
4882 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
4883 (fixuns_truncsfsi2, fixuns_truncsfdi2): Update calls to real_2expN.
4884
d42a3bae
RE
48852007-09-06 Revital Eres <eres@il.ibm.com>
4886
4887 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
4888 Fix offsettable memory reference for 750CL.
4889
bd379f73
PH
48902007-09-06 Pat Haugen <pthaugen@us.ibm.com>
4891
4892 * reload.c (find_reloads_address_1): Try to preserve original
4893 base/index regclass of operands.
4894 * regrename.c (scan_rtx_address): Likewise.
4895 (replace_oldest_value_addr): Likewise.
4896
515f36eb
RG
48972007-09-06 Richard Guenther <rguenther@suse.de>
4898
4899 PR tree-optimization/33302
4900 * domwalk.c (walk_dominator_tree): The exit block is
4901 interesting even if it is not reachable.
4902
47de45c6
RS
49032007-09-06 Richard Sandiford <richard@codesourcery.com>
4904
4905 PR middle-end/33306
4906 * optabs.c (avoid_expensive_constant): Do nothing if MODE is VOIDmode.
4907
0497c836
BS
49082007-09-06 Basile Starynkevitch <basile@starynkevitch.net>
4909
4910 * cfg.c (dump_bb_info, dump_edge_info): Added cfun test for
4911 robustness.
4912
bb0500b0
ILT
49132007-09-05 Ian Lance Taylor <iant@google.com>
4914
4915 * tree-pretty-print.c (dump_decl_name): Cast LABEL_DECL_UID to int
4916 when printing.
4917 (dump_generic_node): Likewise.
4918 * print-rtl.c (print_decl_name): Likewise.
4919 * print-tree.c (print_node_brief): Likewise.
4920 (print_node): Likewise.
4921 * Makefile.in (RTL_BASE_H): Add alias.h.
4922 (TREE_H): Likewise.
4923
9ef4a0cd
JN
49242007-09-06 Jesper Nilsson <jesper.nilsson@axis.com>
4925
4926 * longlong.h [__CRIS_arch_version >= 8] (count_trailing_zeros):
4927 Defined.
4928 * config/cris/cris.md (ctzsi2, cris_swap_bits): Implemented.
4929 * config/cris/cris.h (CTZ_DEFINED_VALUE_AT_ZERO): Defined.
4930
cfb6473a
JZ
49312007-09-06 Jie Zhang <jie.zhang@analog.com>
4932
4933 * config.gcc (tm_file): Add linux.h for bfin*-uclinux*.
4934 (tm_defines): Define UCLIBC_DEFAULT to 1.
4935 (extra_options): Add linux.opt.
4936 * config/bfin/linux.h (CPLUSPLUS_CPP_SPEC): Don't define.
4937 (CRT_CALL_STATIC_FUNCTION): Likewise.
4938 (NO_IMPLICIT_EXTERN_C): Likewise.
4939 (TARGET_OS_CPP_BUILTINS): Define as LINUX_TARGET_OS_CPP_BUILTINS.
4940 * config/bfin/elf.h (OBJECT_FORMAT_ELF): Don't define.
4941 * config/bfin/uclinux.h (CPLUSPLUS_CPP_SPEC): Don't define.
4942 (ENDFILE_SPEC): Don't define.
4943 (LIB_SPEC): Likewise.
4944 (CRT_CALL_STATIC_FUNCTION): Likewise.
4945 (NO_IMPLICIT_EXTERN_C): Likewise.
4946 (LINUX_TARGET_OS_CPP_BUILTINS): Likewise.
4947 (TARGET_OS_CPP_BUILTINS): Define as LINUX_TARGET_OS_CPP_BUILTINS.
4948
37dc4ed1
JH
49492007-09-06 Jan Hubicka <jh@suse.cz>
4950
4951 * i386.c (ix86_expand_lround, ix86_expand_round): Update call of
4952 real_2expN.
4953
6b956c95
JH
49542007-09-06 Jan Hubicka <jh@suse.cz>
4955
4956 * opts.c (common_handle_option): Enable inlining functions for
4957 -fprofile-generate.
4958
b1e3f20e
JJ
49592007-09-06 Jakub Jelinek <jakub@redhat.com>
4960
4961 * builtin-attrs.def (ATTR_NONNULL_3): New.
4962 (DEF_FORMAT_ATTRIBUTE): Use just ATTR_NONNULL_##FA instead of
4963 ATTR_NOTHROW_NONNULL_##FA.
4964 (DEF_FORMAT_ATTRIBUTE_NOTHROW, DEF_FORMAT_ATTRIBUTE_BOTH): New macros.
4965 (ATTR_FORMAT_PRINTF_NOTHROW_2_0, ATTR_PRINTF_NOTHROW_2_3,
4966 ATTR_FORMAT_PRINTF_NOTHROW_3_0, ATTR_FORMAT_PRINTF_NOTHROW_3_4,
4967 ATTR_FORMAT_PRINTF_NOTHROW_4_0, ATTR_PRINTF_NOTHROW_4_5,
4968 ATTR_FORMAT_PRINTF_NOTHROW_5_0, ATTR_FORMAT_PRINTF_NOTHROW_5_6,
4969 ATTR_FORMAT_SCANF_NOTHROW_2_0, ATTR_FORMAT_SCANF_NOTHROW_2_3,
4970 ATTR_FORMAT_STRFTIME_NOTHROW_3_0, ATTR_FORMAT_STRFMON_NOTHROW_3_4):
4971 New.
4972 (ATTR_FORMAT_PRINTF_4_0, ATTR_PRINTF_4_5, ATTR_FORMAT_PRINTF_5_0,
4973 ATTR_FORMAT_PRINTF_5_6, ATTR_FORMAT_STRFTIME_3_0,
4974 ATTR_FORMAT_NOTHROW_3_4): Remove.
4975 * builtins.def (snprintf, sprintf, sscanf, vsnprintf, vsprintf,
4976 vsscanf, strfmon, strftime, __snprintf_chk, __sprintf_chk,
4977 __vsnprintf_chk, __vsprintf_chk): Use ATTR_FORMAT_*_NOTHROW_*
4978 instead of ATTR_FORMAT_*_*.
4979
dfc0fb23
HPN
49802007-09-06 Hans-Peter Nilsson <hp@axis.com>
4981
4982 * config/cris/cris.c (cris_emit_movem_store): Call copy_rtx on
4983 parts re-used for REG_FRAME_RELATED_EXPR.
4984
be677dc1
JJ
49852007-09-05 Janis Johnson <janis187@us.ibm.com>
4986
4987 * optabs.c (expand_float): Convert unsigned integer as signed only
4988 if it provides sufficient accuracy; add mode argument to real_2expN.
4989 (expand_fix): Fix comment typos; extend binary float into mode
4990 wider than destination for converion to unsigned integer; add mode
4991 argument to real_2expN.
4992 * real.c (real_2expN): Add mode argument to special-case decimal
4993 float values.
4994 * real.h (real_2expN): Ditto.
4995 * fixed-value.c (check_real_for_fixed_mode): Add mode argument to
4996 real_2expN.
4997 (fixed_from_string): Ditto.
4998 (fixed_to_decimal): Ditto.
4999 (fixed_convert_from_real): Ditto.
5000 (real_convert_from_fixed): Ditto.
5001 * config/rs6000/rs6000.md (FP): Include DD and TD modes.
5002 * config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
5003 muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
5004 floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
5005
e2d3b294
ILT
50062007-09-05 Ian Lance Taylor <iant@google.com>
5007
5008 * init-regs.c (initialize_uninitialized_regs): Call
5009 emit_insn_before rather than add_insn_before.
5010
6ef5231b
JJ
50112007-09-05 Jakub Jelinek <jakub@redhat.com>
5012
5013 * builtins.def (BUILT_IN_VA_ARG_PACK): New built-in.
5014 * tree.h (CALL_EXPR_VA_ARG_PACK): Define.
5015 * tree-inline.h (copy_body_data): Add call_expr field.
5016 * tree-inline.c (expand_call_inline): Initialize call_expr.
5017 (copy_bb): Append anonymous inline fn arguments to arguments
5018 when inlining a CALL_EXPR_VA_ARG_PACK call.
5019 * builtins.c (expand_builtin): Issue an error if
5020 BUILT_IN_VA_ARG_PACK is seen during expand.
5021 (fold_call_expr, fold_builtin_call_array): Don't fold
5022 CALL_EXPR_VA_ARG_PACK CALL_EXPRs or calls with
5023 __builtin_va_arg_pack () call as last argument.
5024 * gimplify.c (gimplify_call_expr): If last argument to a vararg
5025 function is __builtin_va_arg_pack (), decrease number of call
5026 arguments and instead set CALL_EXPR_VA_ARG_PACK on the CALL_EXPR.
5027 * expr.c (expand_expr_real_1): Issue an error if
5028 CALL_EXPR_VA_ARG_PACK CALL_EXPR is seen during expand.
5029 * tree-pretty-print.c (dump_generic_node): Handle printing
5030 CALL_EXPR_VA_ARG_PACK bit on CALL_EXPRs.
5031 * doc/extend.texi (__builtin_va_arg_pack): Document.
5032
419ce103
AN
50332007-09-05 Adam Nemet <anemet@caviumnetworks.com>
5034
5035 PR tree-optimization/21513
5036 * builtins.c (build_builtin_expect_predicate): New function.
5037 (fold_builtin_expect): Add argument for expected value.
5038 Distribute __builtin_expect over short-circuiting operations.
5039 Fold nested builtin_expects.
5040 (fold_builtin_2): Adjust call to fold_builtin_expect.
5041
e3d66ec3
RIL
50422007-09-05 Rask Ingemann Lambertsen <rask@sygehus.dk>
5043
5044 PR web/32965
5045 PR tree-optimization/13756
5046 * doc/invoke.texi (Options That Control Optimization): Document
5047 -ftree-dse.
5048
b3172cab
UB
50492007-09-05 Uros Bizjak <ubizjak@gmail.com>
5050
5051 * gcc/config/i386/cpuid.h: New file.
5052 * gcc/config/i386/driver-i386.c: Include cpuid.h.
5053 (describe_cache): Shrink size and line strings to 100 bytes.
5054 (detect_caches_amd): Return "" for unsupported max_ext_level.
5055 Use __cpuid function.
5056 (detect_caches_intel): Return "" for unsupported max_level.
5057 Use __cpuid function.
5058 (host_detect_local_cpu): Change feature flag variables to
5059 unsigned int. Initialize only extended feature flag variables.
5060 Use __get_cpuid_max to determine max supported cpuid level.
5061 Use __cpuid function to determine supported features. Fix
5062 calculation of family id. Remove is_amd and check signature
5063 directly. Check for Geode signature. Handle family 4 id.
5064 [PROCESSOR_GENERIC32]: New default for unknown family id. Move
5065 cpu discovery code to lower part of the function.
5066 [PROCESSOR_PENTIUM, PROCESSOR_K6, PROCESSOR_ATHLON]: Do not tune
5067 for sub-architecture.
5068 [PROCESSOR_PENTIUMPRO]: Simplify cpu discovery code.
5069 [PROCESSOR_K8]: Add k8-sse3 architecture.
5070 [PROCESSOR_NOCONA]: Remove.
5071 [PROCESSOR_GENERIC64]: Ditto.
5072 * gcc/config/i386/x-i386 (driver-i386.o): Depend on cpuid.h.
5073 * gcc/config/i386/crtfastmath.c: Include cpuid.h. Use __get_cpuid
5074 to check for SSE and FXSAVE support.
5075 * gcc/config/i386/t-crtfm (crtfastmath.o): Depend on cpuid.h.
5076 Add -minline-all-stringops.
5077 * gcc/config.gcc (i[34567]86-*-*): Add cpuid.h to extra_headers.
5078 (x86_64-*-*): Ditto.
5079
50802007-09-05 Jie Zhang <jie.zhang@analog.com>
57df7359
JZ
5081
5082 * config/bfin/linux-unwind.h: New file.
5083 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Define.
5084 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Define.
5085
6ac1b3a4
LB
50862007-09-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5087
5088 * Makefile.in (stmt.o): Add alloc-pool.h dependency.
5089 * stmt.c: Include alloc-pool.h.
5090 (struct case_node): Remove GTY marker.
5091 (add_case_node): New parameter case_node_pool. Use it for
5092 allocation of r.
5093 (expand_case): New allocation pool case_node_pool. Initialize it,
5094 pass to add_case_node and free it.
5095
f9e4a411
SL
50962007-09-05 Sandra Loosemore <sandra@codesourcery.com>
5097 David Ung <davidu@mips.com>
e139c7f9 5098 Nigel Stephens <nigel@mips.com>
f9e4a411
SL
5099
5100 Add mips16/nomips16 function attributes and -mflip-mips16 option
5101 for testing mixed-mode compilation.
5102
5103 * config/mips/mips.opt (mflip-mips16): New.
5104
5105 * config/mips/mips.h (SYMBOL_FLAG_MIPS16_FUNC): Define.
5106 (SYMBOL_FLAG_MIPS16_FUNC_P): Define.
5107
5108 * config/mips/mips.c (mips_base_target_flags): New.
5109 (mips_base_mips16): New.
5110 (mips_base_schedule_insns): New.
5111 (mips_base_reorder_blocks_and_partition): New.
5112 (mips_base_align_loops): New.
5113 (mips_base_align_jumps): New.
5114 (mips_base_align_functions): New.
5115 (mips16_flipper): New.
5116 (mips_attribute_table): Add "mips16" and "nomips16" entries.
5117 (TARGET_SET_CURRENT_FUNCTION): Define.
5118 (mips_mips16_type_p, mips_nomips16_type_p): New.
5119 (mips_comp_type_attributes): Check mips16/nomips16 attributes.
5120 (mips_function_ok_for_sibcall): Make it deal with functions with
5121 mips16 attributes.
5122 (mips_init_split_addresses): New, split out from override_options.
5123 (mips_init_relocs): New, split out from override_options.
5124 (was_mips16_p): New.
5125 (mips_set_mips16_mode): New, split out from override_options.
5126 (mips_set_current_function): New.
6ef5231b 5127 (override_options): Add sorry for unsupported mips16/pic
f9e4a411
SL
5128 combination. Remove error for mips16/dsp combination. Save
5129 base option settings.
5130 (mips_file_start): Move mips16 mode setting output from here....
5131 (mips_output_function_prologue): ....to here.
5132 (mips_output_mi_thunk): Check for mips16 function.
5133 (build_mips16_function_stub): Don't set .mips16 here.
5134 (build_mips16_call_stub): Likewise.
5135 (mips_expand_builtin): Error in mips16 mode.
5136 (mips_use_mips16_mode_p): New.
5137 (mips_encode_section_info): Check for mips16 function, and set
5138 SYMBOL_REF_FLAGS accordingly.
5139
5140 * doc/extend.texi (Function Attributes): Document new
5141 mips16/nomips16 attributes.
5142 * doc/invoke.texi (Option Summary): Add -mflip-mips16.
5143 (MIPS Options): Document -mflip-mips16.
5144
edede024
SL
51452007-09-05 Sandra Loosemore <sandra@codesourcery.com>
5146
edede024
SL
5147 * config/mips/mips.c (mips_legitimize_tls_address): Call sorry
5148 if we encounter TLS address in MIPS16 mode.
6ef5231b 5149 (mips_legitimize_const_move): Check cannot_force_const_mem for
edede024
SL
5150 the (const (plus symbol offset)) case; this forces invalid TLS
5151 address in MIPS16 mode to be caught by the above call to sorry.
5152 (override_options): Don't reset targetm.have_tls in MIPS16 mode,
5153 because that now enables emutls, which is not ABI compatible
5154 with native TLS in non-MIPS16 mode.
5155
db2960f4
SL
51562007-09-05 Sandra Loosemore <sandra@codesourcery.com>
5157
5158 Add target hook invoked when cfun changes.
5159
5160 * doc/tm.texi (TARGET_SET_CURRENT_FUNCTION): Document.
5161 * target.h (struct gcc_target): Add set_current_function.
5162 * target-def.h (TARGET_SET_CURRENT_FUNCTION): Define.
5163 (TARGET_INITIALIZER): Add initializer for set_current_function.
5164 * tree.h (push_struct_function): New.
5165 * tree-inline.h (push_cfun, pop_cfun): Move declarations to...
5166 * function.h: Here.
5167 (set_cfun): Declare.
5168 * tree-inline.c (cfun_stack, push_cfun, pop_cfun): Moved to...
6ef5231b 5169 * function.c: Here.
db2960f4
SL
5170 (push_function_context_to): Use allocate_struct_function
5171 to create null context, not init_dummy_function_start. Use set_cfun.
5172 (pop_function_context_from): Use set_cfun.
5173 (in_dummy_function): New.
5174 (invoke_set_current_function_hook): New.
5175 (set_cfun): New.
5176 (push_cfun, pop_cfun): Use set_cfun.
5177 (push_struct_function): New.
5178 (allocate_struct_function): Call invoke_set_current_function_hook
5179 before returning.
5180 (prepare_function_start): Don't set cfun here. Remove unused
5181 argument; fix all callers.
5182 (init_dummy_function_start): Fiddle with in_dummy_function. Call
5183 push_struct_function.
5184 (init_function_start): Set cfun here.
5185 (expand_dummy_function_end): Fiddle with in_dummy_function. Pop cfun.
5186 * omp-low.c (create_omp_child_function): Use push_struct_function
5187 and pop_cfun to save/restore state.
5188 (expand_omp_parallel): Remove unused saved_cfun variable.
5189 * cgraphunit.c (ipa_passes): Use set_cfun.
5190 * gimple-low.c (record_vars_into): Use push_cfun/pop_cfun here.
5191 * dwarf2out.c (dwarf2out_abstract_function): Likewise.
5192 * matrix-reorg.c (transform_allocation_sites): Likewise.
5193 (matrix_reorg): Use set_cfun.
5194 * gimplify.c (gimplify_function_tree): Use push_cfun/pop_cfun here.
5195 * tree-optimize.c (tree_rest_of_compilation): Remove one redundant
5196 assignment to cfun; use set_cfun for the other.
5197 * tree-cfg.c (move_sese_region_to_fn): Use set_cfun.
5198 (dump_function_to_file): Use push_cfun/pop_cfun here.
5199 * c-decl.c (finish_function): Use set_cfun.
5200
8e4bf5c7
KZ
52012007-09-05 Kenneth Zadeck <zadeck@naturalbridge.com>
5202
6ef5231b 5203 * regrename.c (rerename_optimize): Use deferred rescanning and
8e4bf5c7
KZ
5204 insert explicit calls to rescan insns when changed.
5205
a48b501c
JH
52062007-09-05 Jan Hubicka <jh@suse.cz>
5207
5208 * optabs.c (libfunc_entry): Change optab to integer.
5209 (hash_libfunc, convert_optab_libfunc, optab_libfunc,
5210 set_optab_libfunc, set_conv_libfunc): Use optable indexes instead
5211 of pointers for hashing.
5212
a36b8a1e
JH
52132007-09-05 Jan Hubicka <jh@suse.cz>
5214
5215 * regrename.c (pass_regrename, pass_cprop_hardreg): Add RTL sharing
5216 verifier.
5217 * fwprop.c (pass_rtl_fwprop, pass_rtl_fwprop_add): Likewise.
5218 * see.c (pass_see): Likewise.
5219 * tracer.c (pass_tracer): Likewise.
5220 * postreload-gcse.c (pass_gcse2): Likewise.
5221 * postreload.c (pass_postreload_cse): Likewise.
5222 * mode-switching.c (pass_mode_switching): Likewise.
5223 * modulo-sched.c (pass_sms): Likewise.
5224 * cse.c (cse_insn): Likewise.
5225 * web.c (pass_web): Likweise.
5226 * combine-stack-adj.c (pass_stack_adjustments): Likewise.
5227 * dce.c (pass_ud_rtl_dce, pass_fast_rtl_dce): Likewise.
5228 * loop-init.c (pass_rtl_loop_init): Likewise.
5229 (pass_rtl_loop_done, pass_rtl_move_loop_, pass_rtl_unswitch,
5230 pass_rtl_unroll_and, pass_rtl_doloop): Likewise.
5231 * global.c (pass_global_alloc): Likewise.
5232 * ifcvt.c (pass_rtl_ifcvt, pass_if_after_combine,
5233 pass_if_after_reload): Likewise.
5234 * reload.c (pass_peephole2, pass_split_for_shoren_branches): Likewise.
5235 * dse.c (pass_rtl_dse1, pass_rtl_dse2): Likewise.
5236 * regmove.c (pass_regmove): Likewise.
5237 * function.c (pass_thread_prologugues_epilogues): Likewise.
5238 * gcse.c (pass_gcse): Likewise.
5239 * rtl-factoring.c (pass_rtl_seqabstr): Likewise.
5240 * lower-subreg.c (pass_lower_subreg2): Likewise.
5241 * bt-load.c (pass_branch_target_load): Likewise.
5242 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
5243 * cfgcleanup.c (pass_jump, pass_jump2): Likewise.
5244 * combine.c (pass_combine): Likewise.
5245 * bb-reorder.c (pass_duplicate_comp, pass_reorder_blocks): Likewise.
5246 (pass_partition_blocks): Likewise.
5247 * var-tracking.c (pass_variable_track): Likewise.
5248 * reg-stack.c (pass_stack_regs_run): Likewise.
5249 * sched-rgn.c (pass_sched, pass_sched2): Likewise.
5250 * passes.c (pass_postreload): Likewise.
5251 (execute_function_todo): Add TODO_verify_rtl_sharing handling code.
5252 * tree-pass.h (TODO_verify_rtl_sharing): New.
5253 (TODO_update_ssa, TODO_update_ssa_no_phi, TODO_update_ssa_full_phi,
5254 TODO_update_ssa_only_virtuals, TODO_remove_unused_locals,
5255 TODO_set_props, TODO_df_finish, TODO_df_verify,
5256 TODO_mark_first_instance, TODO_rebuild_alias): Renumber.
5257
ac545c64
KG
52582007-09-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5259
5260 * fold-const.c (all_ones_mask_p, sign_bit_p, simple_operand_p,
5261 fold_real_zero_addition_p, reorder_operands_p,
5262 div_if_zero_remainder, fold_undefer_overflow_warnings,
5263 int_binop_types_match_p, fold_convert_const_int_from_int,
5264 fold_convert_const_int_from_real,
5265 fold_convert_const_int_from_fixed,
5266 fold_convert_const_real_from_real,
5267 fold_convert_const_real_from_fixed,
5268 fold_convert_const_fixed_from_fixed,
5269 fold_convert_const_fixed_from_int,
5270 fold_convert_const_fixed_from_real, maybe_lvalue_p,
5271 fold_checksum_tree, fold_check_failed, print_fold_checksum,
5272 debug_fold_checksum, multiple_of_p): Constify.
5273 * tree-flow-inline.h (get_lineno): Likewise.
5274 * tree-flow.h (get_lineno): Likewise.
5275 * tree-object-size.c (compute_object_offset, addr_object_size,
5276 alloc_object_size, pass_through_call): Likewise.
5277 * tree-pretty-print.c (op_symbol, print_call_name,
5278 print_struct_decl, do_niy): Likewise.
5279 * tree.h (fold_undefer_overflow_warnings, multiple_of_p,
5280 debug_fold_checksum): Likewise.
5281
bda9fc39
SB
52822007-09-04 Steven Bosscher <steven@gcc.gnu.org>
5283
5284 PR middle-end/33029
5285 * lower-subreg.c (resolve_clobber): If we remove a REG_LIBCALL
5286 note, remove the associated REG_RETVAL note.
5287
437cc56a
AP
52882007-09-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
5289
5290 * config.gcc (powerpc*-*-*): Install
5291 spu2vmx.h, vec_types.h, and si2vmx.h headers.
5292 * config/rs6000/spu2vmx.h: New header.
5293 * config/rs6000/si2vmx.h: New header.
5294 * config/rs6000/vec_types.h: New header.
5295
ff539210
BE
52962007-09-05 Ben Elliston <bje@au.ibm.com>
5297
5298 * varasm.c (initializer_constant_valid_p): Fix comment typo.
5299
ff90b220
BE
53002007-09-05 Ben Elliston <bje@au.ibm.com>
5301
5302 * config/rs6000/ppu_intrinsics.h (__ldarx): Use `Z' constraint,
5303 not `m' for *ptrp.
5304 (__stdcx): Make asm volatile.
5305 (__stwcx, __stdcx): Return only 0 or 1.
5306
104fe9a7
JH
53072007-09-05 Jan Hubicka <jh@suse.cz>
5308
5309 Revert:
5310
5311 2007-09-04 Jan Hubicka <jh@suse.cz>
5312 * tree-tailcall.c (eliminate_tail_call): Expect unrenamed return value.
5313
5314 2007-09-04 Richard Guenther <rguenther@suse.de>
5315 * tree-ssa-operands.c (add_virtual_operand): Only mark
5316 stores as has_volatile_ops if alias information is not available.
5317
ce629d4d
JJ
53182007-09-05 Jakub Jelinek <jakub@redhat.com>
5319
5320 * config/rs6000/tramp.asm: Include config.h.
5321 Check __PIC__ or __pic__ macro instead of SHARED.
5322
314b621e
JJ
5323 PR rtl-optimization/32300
5324 * see.c (see_copy_insn): New function.
5325 (see_def_extension_not_merged, see_merge_one_use_extension,
5326 see_merge_one_def_extension): Use it. Avoid changing
5327 PREV_INSN/NEXT_INSN chains directly, insted emit insns
5328 into sequences. Call df_insn_delete on temporary insns
5329 that won't be emitted into the insn stream.
5330 (rest_of_handle_see): Turn off DF_DEFER_INSN_RESCAN
5331 and run df_process_deferred_rescans () before run_fast_dce.
5332
d3079c44
JJ
5333 PR tree-optimization/33017
5334 * tree-data-ref.c (split_constant_offset) <case SSA_NAME>: Don't
5335 recurse for pure or const function calls.
5336
95b2e554
LB
53372007-09-04 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5338
5339 * c-format.c: Include alloc-pool.h.
5340 (check_format_info_main): New argument fwt_alloc. Use allocation
5341 pool instead of GC. Remove GC deallocation code.
5342 (check_format_arg): Create allocation pool, pass it to
5343 check_format_info_main and free it afterwards.
5344 * Makefile.in (c-format.o): Add alloc-pool.h dependency.
5345
b2e34bc1
BE
53462007-09-05 Ben Elliston <bje@au.ibm.com>
5347
5348 * config/rs6000/ppu_intrinsics.h (__protected_stream_count):
5349 Rename count macro arugment for clarity.
5350 (__protected_unlimited_stream_set): Pass UG=1 to __dcbt_TH1000.
5351 (__protected_stream_set): Likewise, pass 0.
5352
4aeb3896
JH
53532007-09-04 Jan Hubicka <jh@suse.cz>
5354
5355 * tree-tailcall.c (eliminate_tail_call): Expect unrenamed return value.
5356
4d4b8cb9
JH
53572007-09-04 Jan Hubicka <jh@suse.cz>
5358
5359 * invoke.texi (-finline-small-functions): Document.
5360 * ipa-inline.c (cgraph_default_inline_p): Do not use DECL_INLINE
5361 when deciding what is inlinable.
5362 (cgraph_decide_recursive_inlining): Handle flag_inline_functions.
5363 (cgraph_decide_inlining_of_small_function): Handle new flags.
5364 (cgraph_decide_inlining_incrementally): Likewise.
5365 * opts.c (decode_options): Enable flag_inline_small_functions at -O2
5366 * common.opt (finline-small-functions): New.
5367 * Makefile.in (build/gengtype.o-warn): Work around PR29478
5368
16ae1645
RB
53692007-09-04 Richard Guenther <rguenther@suse.de>
5370
5371 * tree-ssa-operands.c (add_virtual_operand): Only mark
5372 stores as has_volatile_ops if alias information is not available.
5373
53742007-09-04 Andrew Haley <aph@redhat.com>
817a54f1 5375
e139c7f9 5376 * config/arm/libgcc-bpabi.ver: Add _Unwind_Backtrace as GCC_4.3.0.
817a54f1 5377
16ae1645 53782007-09-04 Andrew Haley <aph@redhat.com>
6f4176b0
AH
5379
5380 * config/arm/libunwind.S (UNWIND_WRAPPER _Unwind_Backtrace): New.
5381 * config/arm/unwind-arm.h (__gnu_Unwind_Backtrace): New.
5382 * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): New.
5383
99a8d35b
ET
53842007-09-04 Emmanuel Thome <Emmanuel.Thome@inria.fr>
5385
5386 PR c++/14178
5387 * common.opt: Mention ABI version 2 in comment.
5388
8a33f100
JH
53892007-09-04 Jan Hubicka <jh@suse.cz>
5390
5391 * optabs.c (debug_optab_libfunc): Update; make available to gdb.
5392 (libfunc_entry): New structure.
5393 (libfunc_hash): New hashtable.
5394 (hash_libfunc): New function.
5395 (eq_libfunc): New function.
5396 (convert_optab_libfunc): New function.
5397 (optab_libfunc): New function.
5398 (expand_binop, sign_expand_binop, expand_twoval_binop_libfunc,
5399 expand_unop, prepare_cmp_insn, prepare_float_insn, gen_add2_insn,
5400 expand_float, expand_fix, new_optab, new_convert_optab):
5401 Update for new libfunc API.
5402 (init_libfunc, init_integral_libfuncs,
5403 init_floating_libfuncs, init_interclass_conv_libfuncs
5404 init_intraclass_conv_libfuncs): Remove; reorganize all logic to:
5405 (gen_libfunc, gen_int_libfunc, gen_fp_libfunc, gen_int_fp_libfunc,
5406 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
5407 gen_int_to_fp_conv_libfunc, gen_ufloat_conv_libfunc,
5408 gen_int_to_fp_nondecimal_conv_libfunc, gen_fp_to_int_conv_libfunc,
5409 gen_intraclass_conv_libfunc, gen_trunc_conv_libfunc,
5410 gen_extend_conv_libfunc): New.
5411 (init_one_libfunc): Revamp for hashtables.
5412 (set_conv_libfunc): Likewise.
99a8d35b
ET
5413 (init_optabs): Initialize hashtable; use lazy initialization where
5414 possible.
8a33f100
JH
5415 * optabs.h (optab_handlers): Move out of GGC.
5416 (optab, convert_optab): Move out of GGC; add lazy gen info.
5417 (code_to_optab, convert_optab_table, optab_table): Move out of GGC.
5418 (optab_libfunc, convert_optab_libfunc): New.
5419 * builtins.c (expand_builtin_powi): Update for new API.
5420 * expr.c (convert_move): Likewise.
5421 * expmed.c (expand_divmod): Likewise.
5422
8070c91a
DJ
54232007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
5424
5425 * config/rs6000/rs6000.c (rs6000_stack_info): Allocate space for the
5426 GOT pointer only if there is a constant pool. Use the allocated space
5427 for SPE also.
5428
f1a72222
DJ
54292007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
5430
5431 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Correct
5432 typo for AltiVec.
5433
a1a82611
RE
54342007-09-04 Revital Eres <eres@il.ibm.com>
5435 Richard Guenther <rguenther@suse.de>
5436 R. Clint Whaley <whaley@cs.utsa.edu>
5437
5438 * doc/invoke.texi (-fassociative-math, -freciprocal-math):
5439 Document new flags.
5440 * tree-tailcall.c (process_assignment): Use -fassociative-math
5441 when reodering operands of floating-point type.
5442 * fold-const.c (fold_comparison, fold_binary): Use
5443 -fassociative-math and -freciprocal-math instead of
5444 -funsafe-math-optimization flag.
5445 * toplev.h (set_unsafe_math_optimizations_flags): Declare function.
5446 * tree-ssa-math-opts.c (gate_cse_reciprocals): Use
5447 -freciprocal-math instead of -funsafe-math-optimizations.
5448 * opts.c (set_fast_math_flags): Set -freciprocal-math and
5449 -fassociative-math when -ffast-math is set.
5450 (set_unsafe_math_optimizations_flags): New Function
5451 to set -freciprocal-math and -fassociative-math when
5452 -funsafe-math-optimizations is set.
5453 (common_handle_option): Call it.
5454 * tree-vectorizer.c (vect_is_simple_reduction): Use
5455 -fassociative-math when doing reduction on floats.
5456 * loop-unroll.c (analyze_insn_to_expand_var): Use
5457 -fassociative-math when expanding an accumulator of type float.
5458 * simplify-rtx.c (simplify_binary_operation_1): Use
5459 -fassociative-math and -freciprocal-math when reordeing operands
5460 of floating-point type.
5461 * combine.c (combine_simplify_rtx): Likewise.
5462 * tree-ssa-reassoc.c (break_up_subtract_bb, reassociate_bb):
5463 Likewise.
5464 * common.opt (-fassociative-math, -freciprocal-math): New flags.
5465
cea79118
PC
54662007-09-04 Paolo Carlini <pcarlini@suse.de>
5467
5468 PR c++/18608
5469 * doc/install.texi (--enable-__cxa_atexit): Fix typo.
5470
e96a54f7
JH
54712007-09-04 Jan Hubicka <jh@suse.cz>
5472
5473 * regrename.c(copyprop_hardreg_forward_1): Unshare when doing copyprop.
5474
54752007-09-04 Jan Hubicka <jh@suse.cz>
5476
5477 * regrename.c (build_def_use): Don't share RTL between MATCH_OPERATOR
5478 and corresponding MATCH_DUP.
5479
95afbcac
UB
54802007-09-04 Uros Bizjak <ubizjak@gmail.com>
5481
5482 PR middle-end/33187
5483 * combine.c (subst): Do not try to simplify X if it represents load
5484 of FP constant from the constant pool via float extension.
5485
0b2dffe1
BE
54862007-09-04 Ben Elliston <bje@au.ibm.com>
5487
5488 * c-opts.c: Include "tm_p.h".
731c68a2 5489 * Makefile.in (c-opts.o): Add $(TM_P_H) as a dependency.
0b2dffe1 5490
04d86531
RG
54912007-09-04 Richard Guenther <rguenther@suse.de>
5492
5493 PR tree-optimization/33291
5494 * tree-pretty-print.c (dump_generic_node): Dump all
5495 qualifiers for pointer types, not only first. Dump
5496 qualifiers for aggregate types as well.
5497 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Always
5498 use the canonical type for building ARRAY_REFs.
5499 * gimplify.c (canonicalize_addr_expr): Clean up. The
5500 correct validness check is compatibility of the pointer
5501 types. Always use the canonical type for building
5502 ARRAY_REFs and ADDR_EXPRs.
5503 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Revert
5504 change that disabled propagation of ADDR_EXPRs into statements
5505 with volatile ops.
5506
fc7a6a0d
ZW
55072007-09-03 Zack Weinberg <zack@codesourcery.com>
5508
5509 * config/arm/arm.md (mulsidi3, umulsidi3, mulsi3_highpart)
5510 (umulsi3_highpart): Make into expanders; existing insns are
5511 now named *[insn]_nov6. Add stars to existing [insn]_v6
5512 counterparts' names.
5513
72c65674
DJ
55142007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
5515
5516 * Makefile.in (DRIVER_DEFINES, gcc.o, gccspec.o, protoize.o)
5517 (unprotoize.o): Remove SHLIB_MULTILIB.
5518
79532d34
EW
55192007-09-03 Eric Weddington <eweddington@cso.atmel.com>
5520
5521 * doc/extend.texi: Document progmem attribute for AVR.
5522
93976860
AS
55232007-09-03 Anatoly Sokolov <aesok@post.ru>
5524
5525 PR target/28902
5526 * config/avr/avr.h (TARGET_VTABLE_ENTRY_ALIGN): Define.
5527
9cce5b20
ZW
55282007-09-03 Zack Weinberg <zack@codesourcery.com>
5529
a3324f26
ZW
5530 * optabs.c (expand_ffs): Initialize val and defined_at_zero
5531 to avoid warnings.
5532
9cce5b20
ZW
5533 * optabs.c: Remove unnecessary forward declarations.
5534 (expand_unop_direct): New, broken out of expand_unop.
5535 (expand_doubleword_clz): New.
5536 (expand_ctz): Move above expand_ffs. Use
5537 start_sequence, end_sequence, add_equal_note, and
5538 expand_unop_direct. Add more commentary.
5539 (expand_ffs): Try both ctz optab and expand_ctz.
5540 Generate a test and branch if the hardware doesn't give us
5541 a useful value for input zero. Style improvements similar to
5542 expand_ctz.
5543
5544 * config/arm/arm.md (ffssi2, ctzsi2): Delete.
5545
96a3900d
ZW
55462007-09-03 Zack Weinberg <zack@codesourcery.com>
5547
5548 * config.gcc: Delete stanza for arm-semi-aof and
5549 armel-semi-aof targets.
5550 * config/arm/arm-protos.h
5551 * config/arm/arm.c
5552 * config/arm/arm.h: Delete all #ifdef AOF_ASSEMBLER blocks;
5553 make all #ifndef AOF_ASSEMBLER blocks unconditional. Also
5554 delete aof_pic_label and remove mention of AOF in comments.
5555 * config/arm/arm.md: Delete patterns used only for AOF assembly.
5556 * config/arm/aof.h
5557 * config/arm/semiaof.h
5558 * config/arm/t-semi: Delete file.
5559
b1d5455a
KG
55602007-09-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5561
5562 * system.h (CONST_CAST2, CONST_CAST_TREE, CONST_CAST_RTX,
5563 CONST_CAST_BB): New macros for type-specific casts.
5564 (CONST_CAST): Add a TYPE parameter and define it in terms of
5565 CONST_CAST2.
5566
5567 * c-decl.c (c_make_fname_decl): Supply a TYPE for CONST_CAST.
5568 * c-lex.c (cb_ident, lex_string): Likewise,
5569 * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise,
5570 * config/i386/i386.c (ix86_function_regparm,
5571 ix86_function_sseregparm): Use CONST_CAST_TREE.
5572 * config/mmix/mmix.c (mmix_encode_section_info): Supply a TYPE for
5573 CONST_CAST.
5574 * gcc.c (set_spec, read_specs, for_each_path, execute, do_spec_1,
5575 give_switch, set_multilib_dir): Likewise,
5576 * gengtype-parse.c (string_seq, typedef_name): Likewise,
5577 * gimple-low.c (block_may_fallthru): Use CONST_CAST_TREE.
5578 * jump.c (reversed_comparison_code_parts): Use CONST_CAST_RTX.
5579 * passes.c (execute_one_pass): Supply a TYPE for CONST_CAST.
5580 * prefix.c (update_path): Likewise,
5581 * pretty-print.c (pp_base_destroy_prefix): Likewise,
5582 * rtlanal.c (keep_with_call_p): Use CONST_CAST_RTX.
5583 * tree-cfg.c (tree_can_merge_blocks_p,
5584 tree_block_ends_with_condjump_p): Use CONST_CAST_BB.
5585 * tree-eh.c (lookup_stmt_eh_region_fn): USe CONST_CAST_TREE.
5586 * tree.c (build_string): Supply a TYPE for CONST_CAST.
5587 (attribute_list_contained): Use CONST_CAST_TREE.
5588
4392a547
KW
55892007-09-03 Krister Walfridsson <cato@df.lth.se>
5590
5591 * config/netbsd-elf.h (USE_LD_AS_NEEDED): Define.
5592
c722c7da
RS
55932007-09-03 Richard Sandiford <richard@codesourcery.com>
5594
5595 PR middle-end/33290
5596 * optabs.c (avoid_expensive_constant): Canonicalize CONST_INTs
5597 before forcing them into a register.
5598
171cb699
RS
55992007-09-03 Richard Sandiford <richard@codesourcery.com>
5600
5601 * config/mips/mips.md (fetchop_bit): Use define_code_iterator
5602 rather than define_code_macro.
5603
47d33318
FXC
56042007-09-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5605
5606 * gcc.c (xputenv): New function.
5607 (putenv_from_prefixes): Use xputenv instead of putenv.
5608 (process_command): Use xputenv instead of putenv.
5609 (set_collect_gcc_options): Use xputenv instead of putenv.
5610 (main): Use xputenv instead of putenv.
5611
df638b27
JN
56122007-09-03 Jesper Nilsson <jesper.nilsson@axis.com>
5613
5614 * config/cris/cris.h (TARGET_HAS_SWAP): Defined to describe
5615 availability of swap instruction.
5616 * config/cris/cris.md (bswapsi2): Implement using swap instruction.
5617
12749440
RE
56182007-09-03 Revital Eres <eres@il.ibm.com>
5619
5620 * doc/invoke.texi (-fmodulo-sched-allow-regmoves): Update
5621 Documentation.
5622
c8943832 56232007-09-03 Vladimir Yanovsky <yanov@il.ibm.com>
e139c7f9
UB
5624 Ayal Zaks <zaks@il.ibm.com>
5625 Revital Eres <eres@il.ibm.com>
c8943832
VY
5626
5627 * modulo-sched.c (ps_insert_empty_row, verify_partial_schedule,
5628 compute_split_row): New functions.
5629 (ps_unschedule_node): Remove.
5630 (normalize_sched_times): Iterate over the already scheduled
5631 insns instead of the number of nodes.
5632 (MAX_SPLIT_NUM): New definition.
5633 (sms_schedule_by_order): Change the scheduling heuristic to
5634 avoid useless increases of initiation interval ii.
5635 (get_sched_window): Add dump printouts.
5636
8d2fc1c4
DD
56372007-09-02 David Daney <ddaney@avtrex.com>
5638
5639 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP, UNSPEC_SYNC_OLD_OP,
5640 UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE): New define_constants.
5641 (optab, insn): Add more attributes.
5642 (fetchop_bit): New code macro.
5643 (immediate_insn): New code macro attribute.
5644 (sync): Change condition to ISA_HAS_SYNC.
5645 (rdhwr): Change predicate for operand 0 to register_operand.
5646 (memory_barrier): New expand.
5647 (sync_compare_and_swap<mode>, sync_add<mode>, sync_sub<mode>,
5648 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
5649 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
5650 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
5651 sync_new_nand<mode>, sync_lock_test_and_set<mode>): New insns.
5652 * config/mips/mips.h (ISA_HAS_SYNC, ISA_HAS_LL_SC): New ISA predicates.
5653 (MIPS_COMPARE_AND_SWAP, MIPS_SYNC_OP, MIPS_SYNC_OLD_OP,
5654 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
5655 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE): New Macros.
5656
e636e508
JN
56572007-09-03 Jesper Nilsson <jesper.nilsson@axis.com>
5658 Hans-Peter Nilsson <hp@axis.com>
5659
5660 * config/cris/cris.h (TARGET_HAS_LZ, CLZ_DEFINED_VALUE_AT_ZERO):
5661 Defined to describe availability and behavior of CLZ.
5662 * config/cris/cris.md (clzsi2): Implement using lz instruction.
5663 * config/cris/cris.opt: Tweak comment for "-metrax4".
5664 * config/cris/arit.c (LZ): When defined, define as __builtin_clz.
5665 * longlong.h [__CRIS__ && __CRIS_arch_version >= 3]
5666 (count_leading_zeros): Define.
5667
ead8827d
LB
56682007-09-01 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5669
5670 * ggc-page.c (ggc_pch_read): Call validate_free_objects.
5671
b09869ff
JM
56722007-09-02 Joseph Myers <joseph@codesourcery.com>
5673
5674 PR middle-end/33272
5675 * c-decl.c (grokdeclarator): Apply qualifiers to type of parameter
5676 decayed from array.
5677
15dc95cb
KH
56782007-09-01 Kazu Hirata <kazu@codesourcery.com>
5679
5680 * config/arm/arm.c, config/rs6000/ppu_intrinsics.h,
5681 config/spu/spu.c, df-scan.c, fixed-value.c, fold-const.c,
5682 ginclude/tgmath.h, haifa-sched.c, optabs.c, recog.c,
5683 sched-deps.c, sched-int.h, system.h, target.h,
5684 tree-ssa-live.c, tree-vect-transform.c, tree-vectorizer.c,
5685 tree.def: Fix comment typos.
5686
8785d88c
KH
56872007-09-01 Kazu Hirata <kazu@codesourcery.com>
5688
5689 * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove.
5690 (override_options): Turn on -mstrict-align on non-ColdFire
5691 targets.
5692 * config/m68k/m68k.h (BIGGEST_ALIGNMENT): Update a comment.
5693
75547801
KG
56942007-09-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5695
5696 * c-common.c (const_strip_array_types): Delete.
5697 * c-common.h (const_strip_array_types): Likewise.
5698 * emit-rtl.c (const_next_insn, const_previous_insn,
5699 const_next_nonnote_insn, const_prev_nonnote_insn,
5700 const_next_real_insn, const_prev_real_insn,
5701 const_next_active_insn, const_prev_active_insn, const_next_label,
5702 const_prev_label): Delete.
5703 * gimple-low.c (block_may_fallthru): Use expr_last.
5704 * jump.c (reversed_comparison_code_parts): Use prev_nonnote_insn.
5705 * rtl.h (const_previous_insn, const_next_insn,
5706 const_prev_nonnote_insn, const_next_nonnote_insn,
5707 const_prev_real_insn, const_next_real_insn,
5708 const_prev_active_insn, const_next_active_insn, const_prev_label,
5709 const_next_label): Delete.
5710 * rtlanal.c (keep_with_call_p): Use next_nonnote_insn.
5711 * system.h (CONST_CAST): Update comment.
5712 * tree-cfg.c (tree_can_merge_blocks_p): Use last_stmt.
5713 (const_first_stmt, const_last_stmt): Delete.
5714 (tree_block_ends_with_condjump_p): Use last_stmt.
5715 * tree-flow.h (const_first_stmt, const_last_stmt): Delete.
5716 * tree-iterator.c (const_expr_first, const_expr_last,
5717 const_expr_only): Delete.
5718 * tree.c (const_lookup_attribute): Likewise.
5719 (attribute_list_contained): Use lookup_attribute.
5720 * tree.h (const_lookup_attribute, const_expr_first,
5721 const_expr_last, const_expr_only): Delete.
5722
b65e51a8
RG
57232007-09-01 Richard Guenther <rguenther@suse.de>
5724
5725 * tree-ssa-alias.c (create_name_tags): Use TYPE_VOLATILE
5726 instead of TREE_THIS_VOLATILE.
5727 * tree-ssa-operands.c (add_virtual_operand): Do not set
5728 has_volatile_ops. Do not check s_ann for NULL.
5729 (get_indirect_ref_operands): Likewise.
5730 (get_expr_operands): Likewise. For all reference trees
5731 set has_volatile_ops based on TREE_THIS_VOLATILE. Also
5732 check base of reference for TREE_THIS_VOLATILE.
5733
9822c455
RG
57342007-09-01 Richard Guenther <rguenther@suse.de>
5735
5736 * tree-cfg.c (verify_gimple_expr): Fix check for conversions
5737 between integral types. Also allow conversions between
5738 pointer types.
5739
7fecf2c7
AP
57402007-08-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
5741
5742 * optabs.c (prepare_float_lib_cmp): Use
5743 libgcc_cmp_return_mode instead of word_mode.
5744 * config/dfp-bit.h: Likewise.
5745 * config/fp-bit.h: Likewise.
5746 * config/spu/spu.c (spu_libgcc_cmp_return_mode):
5747 New function.
5748 (spu_libgcc_shift_count_mode): New function.
5749 (TARGET_LIBGCC_CMP_RETURN_MODE): Define.
5750 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Define.
5751
973bb832
JM
57522007-08-31 Joseph Myers <joseph@codesourcery.com>
5753
5754 * tree-pretty-print.c: Include output.h.
5755 (dump_decl_name, dump_generic_node): Use %wd with pp_printf, not
5756 HOST_WIDE_INT_PRINT_DEC.
5757 * Makefile.in (tree-pretty-print.o): Add dependency on output.h.
5758
75b22640
ZD
57592007-08-31 Zdenek Dvorak <ook@ucw.cz>
5760
5761 PR rtl-optimization/33224
5762 * loop-iv.c (latch_dominating_def): Check that the definition belongs
5763 to the analysed region.
5764
beb32b59
RG
57652007-08-31 Richard Guenther <rguenther@suse.de>
5766
5767 * function.c (allocate_struct_function): Do not set
5768 current_function_returns_pointer.
5769 * function.h (struct var_refs_queue): Remove.
5770 (struct simple_obstack_stack): Likewise.
5771 (struct function): Remove fixup_var_refs_queue member.
5772 Remove returns_pointer flag.
5773 (current_function_returns_pointer): Remove define.
5774
7562df81
NC
57752007-08-31 Nick Clifton <nickc@redhat.com>
5776
5777 * tree-ssa-coalesce.c (compare_pairs): Use the elements as
5778 secondary keys in order to obtain a stable sort.
5779
3681df8f
NC
57802007-08-31 Nick Clifton <nickc@redhat.com>
5781
5782 PR target/33132
5783 * config/m32r/constraints.md: Add W constraint for integer zero.
5784 * config/m32r/m32r.md (get_pc): Use W and i constraints.
5785 Fix length calculation by using alternatives.
5786
62442ab9
RS
57872007-08-31 Richard Sandiford <richard@codesourcery.com>
5788
5789 * optabs.c (shift_optab_p, commutative_optab_p): New functions,
5790 split out from expand_binop.
5791 (avoid_expensive_constant): New function.
7fecf2c7 5792 (expand_binop_directly): Remove commutative_op argument and
62442ab9
RS
5793 (expand_binop_directly): Remove commutative_op argument and
5794 call cummutative_optab_p instead. Do not change op0 or op1
5795 when swapping xop0 and xop1. Apply avoid_expensive_constant
5796 to each argument after potential swapping. Enforce the
5797 canonical order of commutative operands.
5798 (expand_binop): Use shift_optab_p and commutative_optab_p.
5799 Update the calls to expand_binop_directly. Only force constants
5800 into registers when widening an operation. Only swap operands
5801 once a direct expansion has been rejected.
5802 (expand_twoval_binop): Only force constants into registers when
5803 using a direct expansion.
5804
a34ef915
MK
58052007-08-31 Maxim Kuvyrkov <maxim@codesourcery.com>
5806
5807 * sched-deps.c (update_dep): Mark arguments with ATTRIBUTE_UNUSED.
5808 (sched_analyze_insn): Don't postprocess speculative dependencies when
5809 target has no scheduling.
5810 * tree-vect-transform.c (vect_estimate_min_profitable_iters): Fix
5811 'uninitialized' warning.
5812
05af427c
RG
58132007-08-31 Richard Guenther <rguenther@suse.de>
5814
5815 * tree.c (build_complex_type): Always set TYPE_NAME for
5816 comples types.
5817
890f9edf
OH
58182007-08-31 Olivier Hainque <hainque@adacore.com>
5819
5820 * config/rs6000/xcoff.h (XCOFF_CSECT_DEFAULT_ALIGNMENT_STR): New
5821 internal macro. Default alignment factor for csect directives, chosen
5822 to match what BIGGEST_ALIGNMENT allows.
5823 (DATA_SECTION_ASM_OP): Use it.
5824 * config/rs6000/rs6000.c
5825 (rs6000_xcoff_output_readonly_section_asm_op):
5826 Use XCOFF_CSECT_DEFAULT_ALIGNMENT_STR.
5827 (rs6000_xcoff_output_readwrite_section_asm_op): Likewise.
5828
b420396f
OH
58292007-08-31 Olivier Hainque <hainque@adacore.com>
5830
5831 * dbxout.c (dbxout_block): Move declaration within the first
5832 #if defined (DBX_DEBUGGING_INFO) block. Rearrange another such
5833 block to include the definition, together with the associated
5834 helpers.
5835
96038623 58362007-08-31 David Edelsohn <edelsohn@gnu.org>
e139c7f9
UB
5837 Revital Eres <eres@il.ibm.com>
5838
5839 * doc/invoke.texi (-mpaired): Document flag.
5840 * config.gcc: Include paired.h in powerpc extra_headers and
5841 750cl.h in powerpc-*-linux*paired*.
5842 * config/rs6000/rs6000.opt (-mpaired): New flag.
5843 * config/rs6000/rs6000.c (paired_init_builtins,
5844 paired_expand_builtin, paired_expand_lv_builtin,
5845 paired_expand_stv_builtin, paired_expand_predicate_builtin):
5846 New functions to support the paired single builtin functions.
5847 (rs6000_hard_regno_mode_ok): Handle PAIRED_VECTOR_MODE.
5848 (def_builtin, bdesc_3arg, bdesc_2arg, bdesc_1arg): Add paired
5849 single builtins.
5850 (bdesc_paired_preds): New structure for paired predicate
5851 instructions.
5852 (rs6000_expand_builtin): Expand paired single builtins.
5853 (rs6000_init_builtins): Init paired single builtins.
5854 (rs6000_common_init_builtins): Add v2sf_ftype_v2sf_v2sf_v2sf.
5855 Rename v2sf_ftype_v2sf_v2sf to v2sf_ftype_v2sf_v2sf_spe
5856 and v2sf_ftype_v2sf_spe to v2sf_ftype_v2sf. Add new types
5857 v2sf_ftype_v2sf_v2sf and v2sf_ftype_v2sf.
5858 (rs6000_vector_mode_supported_p): Support paired vector mode.
5859 * config/rs6000/rs6000.h: (UNITS_PER_PAIRED_WORD,
5860 PAIRED_VECTOR_MODE, PAIRED_SIMD_REGNO_P, TARGET_PAIRED_FLOAT):
5861 New.
5862 (LOCAL_ALIGNMENT): Handle PAIRED_VECTOR_MODE.
5863 (DATA_ALIGNMENT): Likewise.
5864 (UNITS_PER_SIMD_WORD): Handle PAIRED_VECTOR_MODE.
5865 (rs6000_builtins): Add PAIRED builtins.
5866 * config/rs6000/rs6000.md: Include paired.md.
5867 * config/rs6000/paired.h: New.
5868 * config/rs6000/paired.md: New.
5869 * config/rs6000/750cl.h: New.
5870 * config/rs6000/spe.md: Recognize movv2sf instruction for 750cl.
96038623 5871
2710d6d7
OW
58722007-08-30 Ollie Wild <aaw@google.com>
5873
5874 * c-opts.c (c_common_handle_option): Support -fno-directives-only.
5875 * gcc.c (default_compilers): Add -fno-directives-only to
5876 @assembler-with-cpp.
5877
fef511b5
SL
58782007-08-30 Sandra Loosemore <sandra@codesourcery.com>
5879
5880 PR middle-end/33211
5881
5882 * regclass.c (initial_fixed_regs): Revert previous change and make
5883 it const again.
5884 (initial_call_used_regs): Likewise.
5885 (initial_call_really_used_regs): Delete, reverting previous addition.
5886 (initial_reg_names): Likewise.
5887 (init_reg_sets): Revert previous change.
5888 (saved_fixed_regs): New.
5889 (saved_call_used_regs): New.
5890 (saved_call_really_used_regs): New.
5891 (saved_reg_names): New.
5892 (save_register_info): New.
5893 (restore_register_info): New.
5894 (init_reg_sets_1): Replace reset of register info with call to
5895 restore_register_info.
5896 * rtl.h (save_register_info): Declare.
5897 * toplev.c (backend_init): Call save_register_info.
5898
03f53266
LB
58992007-08-30 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5900
5901 * tree-ssa-propagate.c (set_rhs): Remove the copied annotation
5902 from the original statement.
5903
14c931f1
CF
59042007-08-30 Chao-ying Fu <fu@mips.com>
5905
5906 * c-lex.c (interpret_fixed): Declare.
5907 (interpret_float): Process _Fract and _Accum.
5908 (interpret_fixed): New function.
5909 * final.c (output_addr_const): Process CONST_FIXED.
5910 * simplify-rtx.c (simplify_const_unary_operation): Handle US_NEG.
5911 (simplify_binary_operation_1): Handle US_ASHIFT, SS_MULT, US_MULT,
5912 SS_DIV, US_DIV.
5913 (simplify_const_binary_operation): Handle SS_MULT, US_MULT, SS_DIV,
5914 US_DIV, US_ASHIFT.
5915 (simplify_immed_subreg): Support CONST_FIXED.
5916 Process MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
5917 (simplify_subreg): Support CONST_FIXED.
5918
0a6409d6
AP
59192007-08-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
5920
5921 * config/rs6000/ppu_intrinsics.h: New file.
5922 * config.gcc (powerpc*-*-* <extra_headers>): Install
5923 ppu_intrinsics.h.
5924
297e9b46
KZ
59252007-08-30 Kenneth Zadeck <zadeck@naturalbridge.com>
5926
5927 * cfg.c (dump_flow_info): Change to also print entry and exit
5928 block info.
5929 * print-rtl.c (print_rtl_single): Allow to print rtl with
5930 -fdump-unnumbered.
5931
ffd640ed
KZ
59322007-08-30 Kenneth Zadeck <zadeck@naturalbridge.com>
5933
5934 * df-core.h (df_dump_region): New function.
5935 * df.h (df_dump_region): New function.
5936 * loop-invariant.c (find_defs): Add call to df_dump_region.
5937 * loop-iv.c (iv_analysis_loop_init): Changed call from df_dump to
5938 df_dump_region.
5939
ca2ba153
JJ
59402007-08-30 Jakub Jelinek <jakub@redhat.com>
5941
5942 PR target/33168
5943 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Return
5944 true if any of the compare_section_name calls returned true,
5945 rather than if any returned false.
5946
af947da7
RG
59472007-08-30 Richard Guenther <rguenther@suse.de>
5948
5949 PR tree-optimization/33199
5950 * tree-ssa-structalias.c (handle_lhs_call): New function.
5951 (find_func_aliases): In non-IPA mode make sure that for
5952 calls that return a pointer we add a constraint for the
5953 result to point to anything.
5954
a5ea943c
RG
59552007-08-30 Richard Guenther <rguenther@suse.de>
5956
5957 * doc/invoke.texi (-mveclibabi): Document new target option.
5958 * config/i386/i386.opt (-mveclibabi): New target option.
5959 * config/i386/i386.c (ix86_veclib_handler): Handler for
5960 vectorization library support.
5961 (override_options): Handle the -mveclibabi option, initialize
5962 the vectorization library handler.
5963 (ix86_builtin_vectorized_function): As fallback call the
5964 vectorization library handler, if set.
5965 (ix86_veclibabi_acml): New static function for ACML ABI style
5966 vectorization support.
5967
c75c6d11
JJ
59682007-08-30 Jakub Jelinek <jakub@redhat.com>
5969
5970 * config/rs6000/rs6000.c (rs6000_emit_sync): For QI or HI mode
5971 used_m, even if it is 32-bit aligned, adjust used_m MEM to have
5972 SImode and update m. Don't run gen_lowpart_common on arbitrary
5973 memory address, force it to register first.
5974
541d3103
JJ
5975 PR middle-end/32758
5976 * dce.c (dce_process_block): Don't delete setters of
5977 artificially used registers.
5978
a996720c
UW
59792007-08-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5980
5981 * config/s390/s390.md ("*add<mode>3_alc_carry1_cc",
5982 "*add<mode>3_alc_carry1_cconly", "*add<mode>3_alc_carry2_cc",
5983 "*add<mode>3_alc_carry2_cconly"): New insn definitions.
5984
a94a76a7
UW
59852007-08-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5986
5987 * config/s390/s390.c (s390_expand_addcc): Emit canonical alc
5988 pattern.
5989 * config/s390/s390.md ("*add<mode>3_alc_cc", "*add<mode>3_alc",
5990 "addti3", "*adddi3_31z", "*scond<mode>"): Make alc pattern canonical.
5991
fe9a2598
KG
59922007-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5993
5994 * system.h: Activate -Wcast-qual as warning-only.
5995
21d9bb3f
PB
59962007-08-29 Paolo Bonzini <bonzini@gnu.org>
5997
5998 PR target/33168
5999 * config/rs6000/rs6000.c (compare_section_name): New function.
6000 (rs6000_elf_in_small_data_p): Compare section prefixes instead
6001 of full name.
6002
c9be0351
OH
60032007-08-29 Olivier Hainque <hainque@adacore.com>
6004
6005 * xcoffout.c: #include debug.h.
6006 * Makefile.in (xcoffout.o): Add debug.h dependency.
6007
3743c639
UB
60082007-08-29 Uros Bizjak <ubizjak@gmail.com>
6009
6010 * simplify-rtx.c (simplify_binary_operation_1) [VEC_SELECT]:
6011 Change CONST_VECTOR_ELT to XVECEXP in elem calculation.
6012
ea53115f
RG
60132007-08-29 Richard Guenther <rguenther@suse.de>
6014
6015 * tree-pretty-print.c (dump_generic_node): Print
6016 label DECL_UID as D.%u.
6017 * tree-dfa.c (dump_variable): Print DECL_UID as D.%u.
6018
4376b7cf
FXC
60192007-08-29 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6020
6021 * gcc/builtin-types.def (BT_FN_PTR_PTR_SIZE): New type.
6022 * gcc/builtins.def (BUILT_IN_REALLOC): New builtin.
6023
31fa4998
DG
60242007-08-29 Douglas Gregor <doug.gregor@gmail.com>
6025
6026 PR c++/33194
6027 * tree.c (build_type_attribute_qual_variant): Set canonical types
6028 on the final, unqualified attribute variant before building the
6029 qualified version.
6030
48ccf012
JZ
60312007-08-29 Jie Zhang <jie.zhang@analog.com>
6032
6033 * config/bfin/bfin.c (bfin_expand_builtin): Fix the argument
6034 order of __builtin_bfin_cmplx_mac and __builtin_bfin_cmplx_msu.
6035
cc728da9
JZ
60362007-08-29 Jie Zhang <jie.zhang@analog.com>
6037
6038 Revert
6039 2007-08-29 Jie Zhang <jie.zhang@analog.com>
6040 * config/bfin/bfin.md (composev2hi): Put operands into vector
6041 with correct order.
6042
8a84c9a7
JZ
60432007-08-29 Jie Zhang <jie.zhang@analog.com>
6044
6045 * config/bfin/bfin.md (composev2hi): Put operands into vector
6046 with correct order.
6047
4af797b5
JZ
60482007-08-29 Jie Zhang <jie.zhang@analog.com>
6049
6050 * config/bfin/bfin.c (bfin_expand_call): Inline PLT with l1_text
6051 attribute when appropriate.
6052 (bfin_handle_l1_text_attribute): New.
6053 (bfin_handle_l1_data_attribute): New.
6054 (bfin_attribute_table): Add attributes: l1_text, l1_data,
6055 l1_data_A and l1_data_B.
6056 * doc/extend.texi (node Function Attributes): Document l1_text
6057 function attribute.
6058 (Variable Attributes): Add Blackfin subsection. Document l1_data,
6059 l1_data_A and l1_data_B variable attributes.
6060
e874e49f
JZ
60612007-08-28 Jie Zhang <jie.zhang@analog.com>
6062
6063 * config/bfin/bfin.opt (minline-plt): Add.
6064 * config/bfin/bfin.c (bfin_expand_call): Inline PLT when emit
6065 call to global functions.
6066 * doc/invoke.texi (Option Summary): Mention -minline-plt.
6067 (Blackfin Options): Document -minline-plt.
6068
fa157b28
NS
60692007-08-28 Nathan Sidwell <nathan@codesourcery.com>
6070
6071 * config/m68k/m68k.c (m68k_get_function_kind): Assert we're never
6072 given a non-function.
6073 (m68k_ok_for_sibcall_p): Only sibcall functions of the same kind.
6074
bdf57c40
DD
60752007-08-28 DJ Delorie <dj@redhat.com>
6076
6077 * config/sh/sh.c (sh_gimplify_va_arg_expr): Fix sh2a support.
6078
0b51511b
KG
60792007-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6080
6081 * system.h (CONST_CAST): Avoid union for gcc-4.0.x.
6082
bb011bbc
RG
60832007-08-28 Richard Guenther <rguenther@suse.de>
6084
6085 * tree.h (struct tree_function_decl): Increase size of
6086 function_code bitfield.
6087
1c445f03
NS
60882007-08-28 Nathan Sidwell <nathan@codesourcery.com>
6089 Kazu Hirata <kazu@codesourcery.com>
6090
6091 * gcc/config/m68k/linux.h
6092 (M68K_HONOR_TARGET_STRICT_ALIGNMENT): Redefine as 0.
6093 * config/m68k/m68k.c (TARGET_RETURN_IN_MEMORY): New.
6094 (m68k_return_in_memory): New.
6095 * gcc/config/m68k/m68k.h (M68K_HONOR_TARGET_STRICT_ALIGNMENT):
6096 New.
6097
7f97f938
UB
60982007-08-28 Uros Bizjak <ubizjak@gmail.com>
6099
6100 PR target/32661
6101 * simplify-rtx.c (simplify_binary_operation_1) [VEC_SELECT]:
6102 Simplify nested VEC_SELECT (with optional VEC_CONCAT operator as
6103 operand) when top VEC_SELECT extracts scalar element.
6104 * config/i386/sse.md (*vec_extract_v4si_mem): New pattern.
6105 (*vec_extract_v4sf_mem): Ditto.
6106
a7d0852d
JJ
61072007-08-28 Jakub Jelinek <jakub@redhat.com>
6108
0b738568
JJ
6109 PR middle-end/32370
6110 * passes.c (init_optimization_passes): Move pass_df_finish
6111 after pass_postreload sublist.
6112
71cca289
JJ
6113 PR rtl-optimization/33148
6114 * simplify-rtx.c (simplify_unary_operation_1): Only optimize
6115 (neg (lt X 0)) if X has scalar int mode.
6116
a7d0852d
JJ
6117 PR debug/32914
6118 * dwarf2out.c (rtl_for_decl_init): If vector decl has CONSTRUCTOR
6119 initializer, use build_vector_from_ctor if possible to create
6120 VECTOR_CST out of it. If vector initializer is not VECTOR_CST
6121 even after this, return NULL.
6122
b29ee02b
GDR
61232007-08-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
6124
6125 * c-pretty-print.c (pp_c_constant): Handle COMPLEX_CST.
6126
c536a6a7
RG
61272007-08-28 Richard Guenther <rguenther@suse.de>
6128
6129 * tree.h (DECL_DISREGARD_INLINE_LIMITS): New.
6130 (struct tree_function_decl): Make function_code a bitfield.
6131 Add disregard_inline_limits flag.
6132 * cgraphunit.c (cgraph_process_new_functions): Check
6133 DECL_DISREGARD_INLINE_LIMITS instead of disregard_inline_limits_p.
6134 (cgraph_preserve_function_body_p): Likewise.
6135 * ipa-inline.c (compute_inline_parameters): Likewise.
6136 * c-decl.c (finish_function): Set DECL_DISREGARD_INLINE_LIMITS
6137 for GNU C extern inline functions.
6138 (merge_decls): Merge DECL_DISREGARD_INLINE_LIMITS.
6139 * tree-inline.c (disregard_inline_limits_p): Remove.
6140 * tree-inline.h (disregard_inline_limits_p): Likewise.
6141 * c-common.c (handle_always_inline_attribute): Set
6142 DECL_DISREGARD_INLINE_LIMITS.
6143 * langhooks.c (add_builtin_function): Verify the function code
6144 fits in the bitfield.
6145
46dc0789 61462007-08-28 Mircea Namolaru <namolaru@il.ibm.com>
e139c7f9
UB
6147 Vladimir Yanovsky <yanov@il.ibm.com>
6148 Revital Eres <eres@il.ibm.com>
6149 Andrey Belevantsev <abel@ispras.ru>
46dc0789
MN
6150
6151 * config/spu/spu.md: Recognize doloop pattern when -fmodulo-sched
6152 is set.
6153 * modulo-sched.c: Add documentation regarding do-loop.
6154 (doloop_register_get): Change number of arguments to support
6155 the new do-loop pattern and check whether COUNT_REG has no other
6156 occurences in the loop besides in the control part.
6157 (duplicate_insns_of_cycles): Do not duplicate the insn which
6158 changes count_reg as it is already adjusted.
6159 (generate_prolog_epilog): New argument to support the new
6160 do-loop pattern. Change the subtract instruction to use
6161 expand_simple_binop. Call duplicate_insns_of_cycles with new
6162 argument.
6163 (sms_schedule): Call doloop_register_get and
6164 generate_prolog_epilog with new argument. Do not handle loops
6165 with single sets insns with subreg in their lhs.
6166 * loop-doloop.c (doloop_optimize): Support for another do-loop
6167 pattern.
6168 (doloop_condition_get): Gets an instruction instead of a pattern
6169 and change the return condition when the do-loop pattern is
6170 not parallel.
6171 * ddg.c (create_ddg_dep_from_intra_loop_link): Handle only reg
6172 deps when considering to not create edges.
6173
3a47c4e4
AO
61742007-08-27 Alexandre Oliva <aoliva@redhat.com>
6175
6176 * doc/extend.texi (gnu_inline funtion attribute): Document C++
6177 behavior.
6178
83d7e8f0
JM
61792007-08-27 Jason Merrill <jason@redhat.com>
6180
6181 PR c++/31337
6182 * gimplify.c (gimplify_modify_expr): Discard the assignment of
6183 zero-sized types after calling gimplify_modify_expr_rhs.
6184
9da72d66
SL
61852007-08-27 Sandra Loosemore <sandra@codesourcery.com>
6186
6187 * regclass.c (init_reg_autoinc): Fix typo.
6188
11df3da3
DB
61892007-08-27 Daniel Berlin <dberlin@dberlin.org>
6190
6191 Fix PR tree-optimization/33173
6192 * tree-ssa-alias.c (find_used_portions): Fix reversed test.
6193
62d75179
L
61942007-08-27 H.J. Lu <hongjiu.lu@intel.com>
6195
6196 PR target/31385
6197 * config/i386/i386.h (VALID_DFP_MODE_P): New.
6198 * config/i386/i386.c (ix86_hard_regno_mode_ok): Allow DFP in
6199 GPR.
6200
b5deb7b6
SL
62012007-08-27 Sandra Loosemore <sandra@codesourcery.com>
6202 David Ung <davidu@mips.com>
62d75179 6203 Nigel Stephens <nigel@mips.com>
b5deb7b6
SL
6204
6205 Separate target-specific initialization from general
6206 back-end initialization.
6207
6208 * toplev.c (init_alignments): New, split out from...
6209 (process_options): ...here.
6ef5231b 6210 (backend_init_target): New, split out from...
b5deb7b6 6211 (backend_init): ...here.
6ef5231b 6212 (lang_dependent_init_target): New, split out from...
b5deb7b6
SL
6213 (lang_dependent_init): ...here.
6214 (target_reinit): New.
6215 * toplev.h (target_reinit): Declare.
6216 * expr.c (init_expr_target): Renamed from init_expr_once, since it
6217 now can be called more than once. Update comments.
6218 * expr.h (init_expr_target): Likewise.
6219 * alias.c (init_alias_target): Renamed from init_alias_once, since it
6220 now can be called more than once. Explicitly zero
6221 static_reg_base_value.
6222 * emit-rtl.c (init_emit_regs): New, split out from...
6223 (init_emit_once): Here.
6224 * regclass.c (initial_fixed_regs, initial_call_used_regs): Make
6225 non-const, so that changes from command-line arguments can overwrite
6226 values provided by the static initializers.
6227 (initial_call_really_used_regs): New, used similarly to the above.
6228 (initial_reg_names): Likewise.
6229 (last_mode_for_init_move_cost): Promoted function-local static to
6230 file-scope static to make it accessible outside init_move_cost.
6231 (init_reg_sets): Do not initialize fixed_regs and call_used_regs yet.
6232 Do not initialize inv_reg_alloc_order yet, either. Do initialize
6233 reg_names since it is needed for parsing command-line options.
6234 (init_move_cost): Use last_mode_for_init_move_cost instead of
6235 function-local static.
6236 (init_reg_sets_1): Initialize fixed_regs, call_used_regs, and
6237 call_really_used_regs now. Reinitialize reg_names. Also
6238 initialize inv_reg_alloc_order. Zero reg_class_subunion and
6239 reg_class_superunion. Clear losing_caller_save_reg_set.
6240 Preserve global registers if called more than once. Reset
6241 move cost, may_move_in_cost, may_move_out_cost, and
6242 last_mode_for_init_move_cost.
6243 (init_reg_modes_target): Renamed from init_reg_modes_once, since it
6244 can now be invoked more than once. Update comments.
6245 (init_regs): Update comments.
6246 (fix_register): Update initial_fixed_regs, initial_call_used_regs,
6247 and initial_call_really_used_regs, instead of the non-initial
e139c7f9 6248 variables. This allows us to save the command-line register settings
b5deb7b6
SL
6249 after target reinitialization.
6250 (init_reg_autoinc): Zero forbidden_inc_dec_classes.
6251 * rtl.h (init_emit_regs): Declare.
6252 (init_reg_modes_target, init_alias_target): Renamed as described
6253 above.
6254 * reload1.c (init_reload): Update comments.
6255 * optabs.c (init_optabs): Likewise.
6256 * cfgloopanal.c (init_set_costs): Explicitly zero target_avail_regs.
6257
14b4a70a
CF
62582007-08-26 Chao-ying Fu <fu@mips.com>
6259
6260 * rtl.h (XCNMPFV): Preserve const-ness of parameters through use of
6261 __typeof().
6262
9678086d
KG
62632007-08-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6264
6265 * alias.c (memory_modified_1, memory_modified_in_insn_p):
6266 Constify.
6267 * basic-block.h (tree_predicted_by_p, rtl_predicted_by_p):
6268 Likewise.
6269 * bb-reorder.c (copy_bb_p): Likewise.
6270 * cfghooks.c (can_remove_branch_p, can_merge_blocks_p,
6271 predicted_by_p, can_duplicate_block_p, block_ends_with_call_p,
6272 block_ends_with_condjump_p): Likewise.
6273 * cfghooks.h (can_remove_branch_p, can_merge_blocks_p,
6274 predicted_by_p, can_duplicate_block_p, block_ends_with_call_p,
6275 block_ends_with_condjump_p): Likewise.
6276 * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
6277 * cfgrtl.c (can_delete_note_p, can_delete_label_p,
6278 rtl_can_merge_blocks, cfg_layout_can_merge_blocks_p,
6279 rtl_block_ends_with_call_p, rtl_block_ends_with_condjump_p,
6280 need_fake_edge_p, rtl_can_remove_branch_p): Likewise.
6281 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Use
6282 debug_true_const_tree instad of debug_true_tree.
6283 * debug.c (do_nothing_debug_hooks): Likewise.
6284 * debug.h (ignore_block, debug_true_const_tree): Constify.
6285 * dwarf2out.c (stack_adjust_offset, clobbers_queued_reg_save,
6286 dwarf2out_ignore_block, is_pseudo_reg, is_tagged_type,
6287 decl_ultimate_origin, block_ultimate_origin, lookup_decl_loc,
6288 same_dw_val_p, add_ranges, is_subrange_type, type_is_enum,
6289 dbx_reg_number, is_based_loc, field_type,
6290 simple_type_align_in_bits, simple_decl_align_in_bits,
6291 simple_type_size_in_bits, field_byte_offset, insert_float,
6292 type_tag, member_declared_type, is_redundant_typedef,
6293 secname_for_decl, is_inlined_entry_point): Likewise.
6294 * emit-rtl.c (const_next_insn, const_previous_insn,
6295 const_next_nonnote_insn, const_prev_nonnote_insn,
6296 const_next_real_insn, const_prev_real_insn,
6297 const_next_active_insn, const_prev_active_insn, const_next_label,
6298 const_prev_label): Likewise.
6299 * except.h (lookup_stmt_eh_region_fn, lookup_stmt_eh_region):
6300 Likewise.
6301 * haifa-sched.c (may_trap_exp, haifa_classify_insn,
6302 find_set_reg_weight, no_real_insns_p, find_set_reg_weight,
6303 sched_insn_is_legitimate_for_speculation_p): Likewise.
6304 * jump.c (reversed_comparison_code_parts,
6305 reversed_comparison_code, reversed_comparison, condjump_label):
6306 Likewise.
6307 * predict.c (rtl_predicted_by_p, tree_predicted_by_p): Likewise.
6308 * reg-stack.c (stack_regs_mentioned_p, stack_regs_mentioned):
6309 Likewise.
6310 * rtl.h (const_previous_insn, const_next_insn,
6311 const_prev_nonnote_insn, const_next_nonnote_insn,
6312 const_prev_real_insn, const_next_real_insn,
6313 const_prev_active_insn, const_next_active_insn, const_prev_label,
6314 const_next_label, modified_between_p, modified_in_p,
6315 const_note_storeskeep_with_call_p, condjump_label,
6316 reversed_comparison, reversed_comparison_code,
6317 reversed_comparison_code_parts, memory_modified_in_insn_p,
6318 stack_regs_mentioned): Likewise.
6319 * rtlanal.c (modified_between_p, modified_in_p, const_note_stores,
6320 keep_with_call_p): Likewise.
6321 * sched-deps.c (deps_may_trap_p, sched_get_condition,
6322 conditions_mutex_p, sched_insns_conditions_mutex_psd_next_list,
6323 sd_lists_size, sd_lists_empty_p): Likewise.
6324 * sched-int.h (sched_insns_conditions_mutex_p,
6325 haifa_classify_insn, no_real_insns_p,
6326 sched_insn_is_legitimate_for_speculation_p, sd_next_list,
6327 sd_lists_size, sd_lists_empty_p): Likewise.
6328 * sdbout.c (sdb_debug_hooks): Likewise.
6329 * tree-cfg.c (tree_can_merge_blocks_p, is_ctrl_altering_stmt,
6330 stmt_ends_bb_p, tree_can_remove_branch_p, tree_can_duplicate_bb_p,
6331 -tree_block_ends_with_call_p, tree_block_ends_with_condjump_p):
6332 Likewise.
6333 * tree-eh.c (lookup_stmt_eh_region_fn, lookup_stmt_eh_region,
6334 tree_can_throw_internal): Likewise.
6335 * tree-flow-inline.h (phi_nodes): Likewise.
6336 * tree-flow.h (phi_nodesstmt_ends_bb_p, is_ctrl_altering_stmt,
6337 tree_can_throw_internal, lookup_stmt_eh_region): Likewise.
6338 * tree-gimple.c (const_get_call_expr_in): Likewise.
6339 * tree-gimple.h (const_get_call_expr_in): Likewise.
6340 * tree.c (const_lookup_attribute, attribute_list_equal,
6341 attribute_list_contained): Likewise.
6342 * tree.h (attribute_list_equal, attribute_list_contained,
6343 const_lookup_attribute): Likewise.
6344 * vmsdbgout.c (vmsdbgout_ignore_block): Likewise.
6345
070b797d
BF
63462007-08-26 Bernhard Fischer <aldot@gcc.gnu.org>
6347
6348 * tree-ssa-sccvn.c, tree-ssa-sccvn.h, tree-vn.c,
6349 tree-ssa-pre.c: Remove unnecessary trailing whitespace.
6350
0393c663
L
63512007-08-26 H.J. Lu <hongjiu.lu@intel.com>
6352
6353 PR target/32991
6354 * config/alpha/constraints.md: Delete "svn:mime-type" property
6355 with svn propdel "svn:mime-type".
6356
6d467839
L
63572007-08-26 H.J. Lu <hongjiu.lu@intel.com>
6358
6359 PR middle-end/33181
6360 * ifcvt.c (noce_get_alt_condition): Make sure that the previous
6361 non NOTE insn doesn't cross basic block.
6362 (noce_try_abs): Likewise.
6363 (noce_process_if_block): Likewise.
6364
b0d6c7d8
DE
63652007-08-26 David Edelsohn <edelsohn@gnu.org>
6366
6367 PR target/33151
6368 * config/rs6000/predicates.md (offsettable_mem_operand): Memory
6369 operand without auto-inc-dec.
6370 * config/rs6000/rs6000.md (floatsidf2_internal): Use
6371 offsettable_mem_operand.
6372 (floatunssidf2_internal): Same.
6373 (fix_truncdfsi2_internal): Same.
6374 (floatsidf_ppc64): Same.
6375 (floatunssidf_ppc64): Same.
6376 (fix_trunctfsi2_internal): Same.
6377
e9694240
BF
63782007-08-26 Bernhard Fischer <aldot@gcc.gnu.org>
6379
6380 PR bootstrap/30620
6381 * Makefile.in (libbackend.o): Add gcov-iov.h dependency and
6382 pass defines needed for version.c.
6383
303a4698
JM
63842007-08-25 Joseph Myers <joseph@codesourcery.com>
6385
6386 * configure.ac (--debug-prefix-map check): Change assembler
6387 version presumed to have feature to 2.18.
6388 * configure: Regenerate.
6389
58f9752a
KG
63902007-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6391
6392 * c-common.c (vector_types_convertible_p,
6393 decl_with_nonnull_addr_p, c_promoting_integer_type_p,
6394 self_promoting_args_p): Constify.
6395 * c-common.h (has_c_linkage, decl_with_nonnull_addr_p,
6396 c_promoting_integer_type_p, self_promoting_args_p,
6397 anon_aggr_type_p, vector_types_convertible_p): Likewise.
6398 * c-decl.c (anon_aggr_type_p): Likewise.
6399 * * c-dump.c (dump_stmt): Likewise.
6400 * c-objc-common.c (has_c_linkage): Likewise.
6401 * c-tree.h (same_translation_unit_p): Likewise.
6402 * c-typeck.c (null_pointer_constant_p,
6403 tagged_types_tu_compatible_p, function_types_compatible_p,
6404 type_lists_compatible_p, lvalue_or_else, lvalue_p,
6405 comptypes_internal, struct tagged_tu_seen_cache,
6406 same_translation_unit_p, alloc_tagged_tu_seen_cache,
6407 c_size_in_bytes): Likewise.
6408 * ggc-common.c (compare_ptr_data, hash_descriptor, eq_descriptor,
6409 hash_ptr, eq_ptr): Likewise.
6410 * langhooks-def.h (lhd_decl_ok_for_sibcall,
6411 LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE): Likewise.
6412 * langhooks.c (lhd_decl_ok_for_sibcall): Likewise.
6413 * langhooks.h (ok_for_sibcall, omp_privatize_by_reference):
6414 Likewise.
6415 * optabs.c (optab_for_tree_code): Likewise.
6416 * optabs.h (optab_for_tree_code): Likewise.
6417 * rtl.h (simplify_rtx): Likewise.
6418 * simplify-rtx.c (simplify_rtx): Likewise.
6419 * tree-dump.c (queue, queue_and_dump_index, queue_and_dump_type,
6420 dump_flag, dump_node): Likewise.
6421 * tree-dump.h (struct dump_info, dump_stmt, queue_and_dump_index,
6422 queue_and_dump_type, dump_flag): Likewise.
6423 * tree-flow.h (vect_can_force_dr_alignment_p): Likewise.
6424 * tree-pass.h (dump_node): Likewise.
6425 * tree-vectorizer.c (vect_can_force_dr_alignment_p,
6426 supportable_narrowing_operation): Likewise.
6427 * tree-vectorizer.h (vect_can_force_dr_alignment_p,
6428 supportable_narrowing_operation): Likewise.
6429 * tree-vrp.c (needs_overflow_infinity, supports_overflow_infinity,
6430 is_negative_overflow_infinity, is_positive_overflow_infinity,
6431 is_overflow_infinity, vrp_val_is_max, vrp_val_is_min,
6432 nonnull_arg_p, get_value_range, vrp_operand_equal_p,
6433 update_value_range, add_equivalence, ssa_name_nonnegative_p,
6434 ssa_name_nonzero_p, fp_predicate): Likewise.
6435 * tree.c (auto_var_in_fn_p, empty_body_p): Likewise.
6436 * tree.h (empty_body_p, auto_var_in_fn_p, ssa_name_nonzero_p,
6437 ssa_name_nonnegative_p): Likewise.
6438
a10dc289
HK
64392007-08-25 Hans Kester <hans.kester@ellips.nl>
6440
6441 * config.gcc : Add x86_64-elf target.
6442
65fedc2c
JJ
64432007-08-25 Jakub Jelinek <jakub@redhat.com>
6444
6445 * expr.c (store_expr): Fix order of store_by_pieces arguments.
6446
cfa31150 64472007-08-24 Sandra Loosemore <sandra@codesourcery.com>
e139c7f9 6448 Nigel Stephens <nigel@mips.com>
cfa31150
SL
6449
6450 PR target/11787
6451
6452 * doc/tm.texi (SET_RATIO, SET_BY_PIECES_P): Document new macros.
6453 (STORE_BY_PIECES_P): No longer applies to __builtin_memset.
6454 * expr.c (SET_BY_PIECES_P): Define.
6455 (can_store_by_pieces, store_by_pieces): Add MEMSETP argument; use
6456 it to decide whether to use SET_BY_PIECES_P or STORE_BY_PIECES_P.
65fedc2c 6457 (store_expr): Pass MEMSETP argument to can_store_by_pieces and
cfa31150
SL
6458 store_by_pieces.
6459 * expr.h (SET_RATIO): Define.
6460 (can_store_by_pieces, store_by_pieces): Update prototypes.
6461 * builtins.c (expand_builtin_memcpy): Pass MEMSETP argument to
6462 can_store_by_pieces/store_by_pieces.
6463 (expand_builtin_memcpy_args): Likewise.
6464 (expand_builtin_strncpy): Likewise.
6465 (expand_builtin_memset_args): Likewise. Also remove special case
6466 for optimize_size so that can_store_by_pieces/SET_BY_PIECES_P can
6467 decide what to do instead.
6468 * value-prof.c (tree_stringops_transform): Pass MEMSETP argument
6469 to can_store_by_pieces.
6470
6471 * config/sh/sh.h (SET_BY_PIECES_P): Clone from STORE_BY_PIECES_P.
6472 * config/s390/s390.h (SET_BY_PIECES_P): Likewise.
6473
6474 * config/mips/mips.opt (mmemcpy): Change from Var to Mask.
6475 * config/mips/mips.c (override_options): Make -Os default to -mmemcpy.
6476 * config/mips/mips.h (MIPS_CALL_RATIO): Define.
6477 (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Define.
6478 (STORE_BY_PIECES_P): Define.
6479
f9837879
TT
64802007-08-24 Tom Tromey <tromey@redhat.com>
6481
6482 * varpool.c (varpool_last_needed_node): Fix comment typo.
6483 * c-decl.c (duplicate_decls): Fix comment typo.
6484 (clone_underlying_type): Update comment.
6485
3101faab
KG
64862007-08-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6487
6488 * config/alpha/alpha.c (alpha_mangle_type, decl_has_samegp,
6489 alpha_in_small_data_p, alpha_split_complex_arg,
6490 alpha_stdarg_optimize_hook, TARGET_ASM_CAN_OUTPUT_MI_THUNK):
6491 Constify.
6492 * config/arm/arm-protos.h (arm_mangle_type): Likewise.
6493 * config/arm/arm.c (arm_comp_type_attributes, arm_mangle_type):
6494 Likewise.
6495 * config/bfin/bfin.c (funkind, bfin_comp_type_attributes,
6496 TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6497 * config/darwin-protos.h (darwin_binds_local_p): Likewise.
6498 * config/darwin.c (darwin_binds_local_p): Likewise.
6499 * config/frv/frv.c (frv_string_begins_with, frv_in_small_data_p):
6500 Likewise.
6501 * config/i386/i386-protos.h (i386_pe_binds_local_p,
6502 i386_pe_valid_dllimport_attribute_p): Likewise.
6503 * config/i386/i386.c (ix86_function_regparm,
6504 ix86_comp_type_attributes, ix86_ms_bitfield_layout_p,
6505 x86_can_output_mi_thunk, ix86_mangle_type,
6506 TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
6507 * config/i386/winnt.c (i386_pe_valid_dllimport_attribute_p,
6508 i386_pe_binds_local_p): Likewise.
6509 * config/ia64/ia64.c
6510 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec,
6511 ia64_needs_block_p, ia64_in_small_data_p, ia64_mangle_type,
6512 ia64_invalid_conversion, ia64_invalid_unary_op,
6513 ia64_invalid_binary_op, TARGET_ASM_CAN_OUTPUT_MI_THUNK):
6514 Likewise.
6515 * config/m32c/m32c.c (m32c_comp_type_attributes): Likewise.
6516 * config/m32r/m32r.c (m32r_in_small_data_p): Likewise.
6517 * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
6518 * config/mips/mips.c (mips_use_blocks_for_constant_p,
6519 mips_in_small_data_p, mips_use_anchors_for_symbol_p,
6520 mips_comp_type_attributes, TARGET_ASM_CAN_OUTPUT_MI_THUNK,
6521 mips_near_type_p, mips_far_type_p, mips_global_symbol_p,
6522 mips_symbol_binds_local_p, mips_classify_symbol): Likewise.
6523 * config/pa/pa.c (pa_commutative_p): Likewise.
6524 * config/rs6000/rs6000-protos.h (rs6000_elf_in_small_data_p):
6525 Likewise.
6526 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop,
6527 rs6000_ms_bitfield_layout_p, rs6000_mangle_type,
6528 rs6000_use_blocks_for_constant_p,
6529 rs6000_vector_alignment_reachable, rs6000_is_opaque_type,
6530 invalid_arg_for_unprototyped_fn, TARGET_ASM_CAN_OUTPUT_MI_THUNK,
6531 TARGET_SPLIT_COMPLEX_ARG, rs6000_elf_in_small_data_p): Likewise.
6532 * config/s390/s390.c (s390_mangle_type,
6533 TARGET_ASM_CAN_OUTPUT_MI_THUNK, TARGET_INVALID_WITHIN_DOLOOP):
6534 Likewise.
6535 * config/score/score.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK,
6536 th_in_small_data_p): Likewise.
6537 * config/sh/sh.c (sh_ms_bitfield_layout_p,
6538 sh_dwarf_calling_convention, TARGET_ASM_CAN_OUTPUT_MI_THUNK):
6539 Likewise.
6540 * config/sparc/sparc.c (sparc_can_output_mi_thunk,
6541 sparc_mangle_type): Likewise.
6542 * config/spu/spu.c (spu_vector_alignment_reachable): Likewise.
6543 * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): Likewise.
6544 * emit-rtl.c (const_fixed_htab_hash, const_fixed_htab_eq):
6545 Likewise.
6546 * hooks.c (hook_bool_mode_const_rtx_false,
6547 hook_bool_mode_const_rtx_true,
6548 hook_bool_const_tree_hwi_hwi_const_tree_false,
6549 hook_bool_const_tree_hwi_hwi_const_tree_true,
6550 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
6551 hook_constcharptr_const_tree_null,
6552 hook_constcharptr_const_rtx_null,
6553 hook_constcharptr_const_tree_const_tree_null,
6554 hook_constcharptr_int_const_tree_null,
6555 hook_constcharptr_int_const_tree_const_tree_null): New.
6556 (hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
6557 hook_bool_tree_hwi_hwi_tree_false,
6558 hook_bool_tree_hwi_hwi_tree_true, hook_int_tree_0,
6559 hook_int_tree_tree_1, hook_constcharptr_tree_null,
6560 hook_constcharptr_rtx_null, hook_constcharptr_tree_tree_null,
6561 hook_constcharptr_int_tree_null,
6562 hook_constcharptr_int_tree_tree_null): Delete.
6563 (default_can_output_mi_thunk_no_vcall): Constify.
6564 * hooks.h (hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
6565 hook_bool_tree_hwi_hwi_tree_false,
6566 hook_bool_tree_hwi_hwi_tree_true, hook_int_tree_0,
6567 hook_int_tree_tree_1, hook_constcharptr_tree_null,
6568 hook_constcharptr_rtx_null, hook_constcharptr_tree_tree_null,
6569 hook_constcharptr_int_tree_null,
6570 hook_constcharptr_int_tree_tree_null): Delete.
6571 (hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
6572 hook_bool_const_tree_hwi_hwi_const_tree_false,
6573 hook_bool_const_tree_hwi_hwi_const_tree_true,
6574 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
6575 hook_constcharptr_const_tree_null,
6576 hook_constcharptr_const_rtx_null,
6577 hook_constcharptr_const_tree_const_tree_null,
6578 hook_constcharptr_int_const_tree_null,
6579 hook_constcharptr_int_const_tree_const_tree_null): New.
6580 (default_can_output_mi_thunk_no_vcall): Constify.
6581 * integrate.c (function_attribute_inlinable_p): Likewise.
6582 * integrate.h (function_attribute_inlinable_p): Likewise.
6583 * jump.c (rtx_renumbered_equal_p): Likewise.
6584 * output.h (decl_readonly_section, categorize_decl_for_section,
6585 default_use_anchors_for_symbol_p, default_binds_local_p,
6586 default_binds_local_p_1): Likewise.
6587 * rtl.h (rtx_renumbered_equal_p, decl_default_tls_model):
6588 Likewise.
6589 * target-def.h (TARGET_ASM_CAN_OUTPUT_MI_THUNK,
6590 TARGET_VALID_DLLIMPORT_ATTRIBUTE_P, TARGET_VECTOR_OPAQUE_P,
6591 TARGET_COMMUTATIVE_P, TARGET_USE_BLOCKS_FOR_CONSTANT_P,
6592 TARGET_COMP_TYPE_ATTRIBUTES,
6593 TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P,
6594 TARGET_MS_BITFIELD_LAYOUT_P, TARGET_MANGLE_TYPE,
6595 TARGET_IN_SMALL_DATA_P, TARGET_INVALID_CONVERSION,
6596 TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP,
6597 TARGET_DWARF_CALLING_CONVENTION): Likewise.
6598 * target.h (can_output_mi_thunk, needs_block_p,
6599 first_cycle_multipass_dfa_lookahead_guard_spec,
6600 vector_alignment_reachable, comp_type_attributes,
6601 function_attribute_inlinable_p, ms_bitfield_layout_p, mangle_type,
6602 commutative_p, use_blocks_for_constant_p,
6603 use_anchors_for_symbol_p, in_small_data_p, binds_local_p,
6604 vector_opaque_p, dwarf_calling_convention, stdarg_optimize_hook,
6605 invalid_within_doloop, valid_dllimport_attribute_p,
6606 split_complex_arg, invalid_arg_for_unprototyped_fn,
6607 invalid_conversion, invalid_unary_op, invalid_binary_op):
6608 Likewise.
6609 * targhooks.c (default_invalid_within_doloop,
6610 hook_invalid_arg_for_unprototyped_fn,
6611 default_builtin_vector_alignment_reachable): Likewise.
6612 (hook_bool_rtx_commutative_p): Delete.
6613 (hook_bool_const_rtx_commutative_p): New.
6614 * targhooks.h (default_invalid_within_doloop,
6615 default_builtin_vector_alignment_reachable,
6616 hook_invalid_arg_for_unprototyped_fn): Constify.
6617 (hook_bool_rtx_commutative_p): Delete.
6618 (hook_bool_const_rtx_commutative_p): New.
6619 * varasm.c (bss_initializer_p, decl_default_tls_model,
6620 categorize_decl_for_section, decl_readonly_section,
6621 default_use_anchors_for_symbol_p, default_binds_local_p,
6622 default_binds_local_p_1): Constify.
6623
ae80f469
JZ
66242007-08-24 Jie Zhang <jie.zhang@analog.com>
6625
6626 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
6627 __NO_BUILTIN if -fno-builtin.
6628
b570063a
JZ
66292007-08-24 Jie Zhang <jie.zhang@analog.com>
6630
6631 * config/bfin/bfin.c (print_operand): Report error instead of
6632 ICE for wrong operand.
6633
48f9f863
MM
66342007-08-24 Michael Matz <matz@suse.de>
6635
6636 * Makefile.in (GTFILES_H): Use $(patsubst) instead of $(subst).
6637
fa2050d2
RG
66382007-08-24 Richard Guenther <rguenther@suse.de>
6639
6640 PR middle-end/33166
6641 * tree-ssa.c (useless_type_conversion_p): Split into a
6642 recursive and a non-recursive part.
6643 (useless_type_conversion_p_1): New function.
6644 * tree-ssa-ccp.c (fold_stmt_r): Make sure that the result
6645 from maybe_fold_offset_to_reference is trivially convertible
6646 to the desired type before doing the simplification.
6647
14a43348
JJ
66482007-08-24 Jakub Jelinek <jakub@redhat.com>
6649
6650 * expr.c (store_expr): Optimize initialization of an array
6651 with STRING_CST.
6652 * expr.h (builtin_strncpy_read_str): New prototype.
6653 * builtins.c (builtin_strncpy_read_str): Remove prototype.
6654 No longer static.
6655
492fc3e6
UB
66562007-08-24 Uros Bizjak <ubizjak@gmail.com>
6657
6658 PR middle-end/33157
6659 * ifcvt.c (noce_find_if_block): Do not clear if_info.cond_earliest
6660 field when initializing if_info structure.
6661
18177c7e
RG
66622007-08-24 Richard Guenther <rguenther@suse.de>
6663
6664 * Makefile.in (tree-inline.o): Add $(TARGET_H) and $(INTEGRATE_H)
6665 dependencies.
6666 * c-objc-common.c (c_cannot_inline_tree_fn): Remove.
6667 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Likewise.
6668 * tree-inline.c (inlinable_function_p): Fold in common parts of
6669 the cannot_inline_tree_fn langhook.
6670 * langhooks-def.h (lhd_tree_inlining_cannot_inline_tree_fn): Remove.
6671 (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN): Likewise.
6672 (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
6673 cannot_inline_tree_fn langhook.
6674 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
6675 cannot_inline_tree_fn member.
6676
9c219b9b
RG
66772007-08-24 Richard Guenther <rguenther@suse.de>
6678
6679 * expr.c (get_inner_reference): Do computation of bitoffset
6680 from offset in a way we can detect overflow reliably.
6681
212db394
JZ
66822007-08-24 Jie Zhang <jie.zhang@analog.com>
6683
6684 * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define for uClibc.
6685
2c117a21
JZ
66862007-08-24 Jie Zhang <jie.zhang@analog.com>
6687
6688 * config/bfin/bfin.opt (mfast-fp): Add.
6689 * config/bfin/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Let
6690 libbffastfp override libgcc if -mfast-fp.
6691 * config/bfin/bfin.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
6692 * doc/invoke.texi (Option Summary): Mention -mfast-fp.
6693 (Blackfin Options): Document -mfast-fp.
6694
2f470326
JJ
66952007-08-24 Jakub Jelinek <jakub@redhat.com>
6696
6697 PR tree-optimization/32573
6698 PR middle-end/32946
6699 * tree-data-ref.c (initialize_data_dependence_relation): Clear
6700 DDR_SUBSCRIPTS, DDR_DIR_VECTS and DDR_DIST_VECTS at the beginning.
6701 (finalize_ddr_dependent): Clear DDR_SUBSCRIPTS after freeing it.
6702 (build_classic_dist_vector): Return false rather than true if
6703 DDR_ARE_DEPENDENT is non-NULL at the beginning. Return false
6704 if either subscript_dependence_tester_1 or build_classic_dist_vector_1
6705 returned false. Don't call save_dist_v before calling
6706 build_classic_dist_vector_1.
6707 (free_dependence_relation): Don't guard freeing DDR_SUBSCRIPTS
6708 with NULL DDR_ARE_DEPENDENT. Also free DDR_DIST_VECTS and/or
6709 DDR_DIR_VECTS vectors.
6710
ddcd0f6f
BS
67112007-08-23 Brian Sidebotham <brian.sidebotham@gmail.com>
6712
7f97f938
UB
6713 * configure.ac (leb128): Modify sed statement to work with any
6714 binutils version string.
ddcd0f6f
BS
6715 * configure: Regenerate
6716
586de218
KG
67172007-08-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6718
6719 * config/arc/arc-protos.h arc_select_cc_mode, gen_compare_reg):
6720 Wrap in RTX_CODE macro guard.
6721 * config/arm/pe.c (arm_dllexport_p, arm_dllimport_p,
6722 arm_dllexport_name_p, arm_dllimport_name_p, arm_mark_dllexport,
6723 arm_mark_dllimport, arm_pe_encode_section_info,
6724 arm_pe_unique_section): Use ISO-C function declarations.
6725 * config/c4x/c4x-c.c (c4x_parse_pragma, c4x_pr_CODE_SECTION,
6726 c4x_pr_DATA_SECTION, c4x_pr_FUNC_IS_PURE,
6727 c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT, c4x_pr_ignored):
6728 Likewise.
6729 * config/iq2000/iq2000.h (ASM_OUTPUT_SKIP): Fix format warning.
6730 * config/m68hc11/m68hc11.h (ASM_OUTPUT_EXTERNAL): Undef before
6731 defining.
6732 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Fix format
6733 warnings.
6734 * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Likewise.
6735 * config/pdp11/pdp11.c (pdp11_output_function_epilogue): Likewise.
6736 (register_move_cost): Use ISO-C function declarations.
6737 * config/pdp11/pdp11.h (PRINT_OPERAND): Fix format warnings.
6738 * config/score/score-protos.h (score_declare_object): Add
6739 ATTRIBUTE_PRINTF_4.
6740 * config/score/score.h (ASM_DECLARE_OBJECT_NAME): Fix format
6741 warnings.
6742 * final.c (profile_function): Avoid empty if-bodies.
6743
6744
6745 * calls.c (must_pass_in_stack_var_size,
6746 must_pass_in_stack_var_size_or_pad): Constify.
6747 * config/alpha/alpha-protos.h (function_value): Likewise.
6748 * config/alpha/alpha.c (alpha_return_in_memory,
6749 alpha_pass_by_reference, function_value,
6750 unicosmk_must_pass_in_stack, TARGET_PROMOTE_FUNCTION_ARGS,
6751 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
6752 Likewise.
6753 * config/arc/arc.c (arc_return_in_memory, arc_pass_by_reference,
6754 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
6755 TARGET_PROMOTE_PROTOTYPES): Likewise.
6756 * config/arm/arm-protos.h (arm_return_in_memory,
6757 arm_pad_arg_upward, arm_function_value): Likewise.
6758 * config/arm/arm.c (arm_pass_by_reference,
6759 arm_promote_prototypes, arm_return_in_msb, arm_must_pass_in_stack,
6760 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
6761 arm_function_value, arm_return_in_memory, arm_pad_arg_upward):
6762 Likewise.
6763 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
6764 * config/avr/avr-protos.h (avr_function_value): Likewise.
6765 * config/avr/avr.c (avr_return_in_memory,
6766 gas_output_limited_string, gas_output_ascii, avr_function_value,
6767 avr_return_in_memory): Likewise.
6768 * config/bfin/bfin-protos.h (bfin_return_in_memory): Likewise.
6769 * config/bfin/bfin.c (bfin_pass_by_reference,
6770 bfin_return_in_memory, TARGET_PROMOTE_PROTOTYPES,
6771 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN):
6772 Likewise.
6773 * config/cris/cris.c (cris_pass_by_reference,
6774 TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
6775 * config/crx/crx.c (crx_return_in_memory): Likewise.
6776 * config/darwin.c (function_base, machopic_function_base_name):
6777 Likewise.
6778 * config/fr30/fr30.c (fr30_must_pass_in_stack,
6779 TARGET_PROMOTE_PROTOTYPES): Likewise.
6780 * config/frv/frv.c (frv_must_pass_in_stack): Likewise.
6781 * config/h8300/h8300.c (h8300_return_in_memory): Likewise.
6782 * config/i386/i386-protos.h (ix86_return_in_memory,
6783 ix86_sol10_return_in_memory): Likewise.
6784 * config/i386/i386.c (ix86_function_value,
6785 ix86_function_sseregparm, ix86_must_pass_in_stack,
6786 type_natural_mode, classify_argument, examine_argument,
6787 construct_container, ix86_pass_by_reference, function_value_32,
6788 function_value_64, ix86_function_value_1, return_in_memory_32,
6789 return_in_memory_64, return_in_memory_ms_64,
6790 ix86_return_in_memory, ix86_sol10_return_in_memory,
6791 TARGET_PROMOTE_PROTOTYPES): Likewise.
6792 * config/ia64/ia64-protos.h (ia64_function_value,
6793 ia64_hpux_function_arg_padding): Likewise.
6794 * config/ia64/ia64.c (hfa_element_mode, ia64_return_in_memory,
6795 ia64_function_value, bundle_state_hash, bundle_state_eq_p,
6796 ia64_hpux_function_arg_padding): Likewise.
6797 * config/iq2000/iq2000-protos.h (function_arg,
6798 iq2000_function_value): Likewise.
6799 * config/iq2000/iq2000.c (iq2000_return_in_memory,
6800 iq2000_pass_by_reference, TARGET_PROMOTE_FUNCTION_ARGS,
6801 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
6802 function_arg, iq2000_function_value): Likewise.
6803 * config/m32c/m32c-protos.h (m32c_function_value,
6804 m32c_promote_function_return): Likewise.
6805 * config/m32c/m32c.c (m32c_pass_by_reference,
6806 m32c_promote_prototypes, m32c_promote_function_return,
6807 m32c_function_value): Likewise.
6808 * config/m32r/m32r.c (m32r_return_in_memory,
6809 m32r_pass_by_reference, TARGET_PROMOTE_PROTOTYPES,
6810 m32r_in_small_data_p): Likewise.
6811 * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg_padding):
6812 Likewise.
6813 * config/m68hc11/m68hc11.c (m68hc11_return_in_memory,
6814 m68hc11_function_arg_padding): Likewise.
6815 * config/m68k/m68k-protos.h (m68k_function_value): Likewise.
6816 * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES,
6817 m68k_function_value): Likewise.
6818 * config/mcore/mcore-protos.h (mcore_num_arg_regs,
6819 mcore_function_value): Likewise.
6820 * config/mcore/mcore.c (handle_structs_in_regs,
6821 mcore_return_in_memory, TARGET_PROMOTE_FUNCTION_ARGS,
6822 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
6823 mcore_num_arg_regs, mcore_function_value): Likewise.
6824 * config/mips/mips-protos.h (mips_pad_arg_upward,
6825 mips_function_value): Likewise.
6826 * config/mips/mips.c (mips_fpr_return_fields, mips_return_in_msb,
6827 mips_return_in_memory, mips_pass_by_reference, mips_callee_copies,
6828 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
6829 TARGET_PROMOTE_PROTOTYPES, mips_pad_arg_upward,
6830 mips_function_value): Likewise.
6831 * config/mmix/mmix-protos.h (mmix_function_outgoing_value):
6832 Likewise.
6833 * config/mmix/mmix.c (mmix_pass_by_reference,
6834 TARGET_PROMOTE_FUNCTION_ARGS, mmix_function_outgoing_value,
6835 mmix_encode_section_info): Likewise.
6836 * config/mn10300/mn10300-protos.h (mn10300_function_value):
6837 Likewise.
6838 * config/mn10300/mn10300.c (mn10300_return_in_memory,
6839 mn10300_pass_by_reference, TARGET_PROMOTE_PROTOTYPES,
6840 mn10300_function_value): Likewise.
6841 * config/mt/mt-protos.h (mt_function_value): Likewise.
6842 * config/mt/mt.c (mt_pass_by_reference, mt_function_value,
6843 mt_pass_in_stack, TARGET_PROMOTE_PROTOTYPES): Likewise.
6844 * config/pa/pa-protos.h (function_arg_padding, function_value,
6845 pa_return_in_memory): Likewise.
6846 * config/pa/pa.c (pa_pass_by_reference,
6847 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
6848 function_arg_padding, function_value, pa_return_in_memory):
6849 Likewise.
6850 * config/pdp11/pdp11.c (pdp11_return_in_memory): Likewise.
6851 * config/rs6000/rs6000-protos.h (rs6000_function_value,
6852 function_arg_padding): Likewise.
6853 * config/rs6000/rs6000.c (rs6000_return_in_memory,
6854 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
6855 rs6000_pass_by_reference, rs6000_must_pass_in_stack,
6856 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
6857 function_arg_padding, altivec_expand_dst_builtin,
6858 altivec_expand_builtin, rs6000_expand_builtin, spe_init_builtins,
6859 altivec_init_builtins, rs6000_common_init_builtins,
6860 rs6000_function_value): Likewise.
6861 * s390/s390-protos.h (s390_function_value): Likewise.
6862 * config/s390/s390.c (s390_function_arg_size,
6863 s390_pass_by_reference, s390_return_in_memory,
6864 s390_function_value, TARGET_PROMOTE_FUNCTION_ARGS,
6865 TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
6866 * config/score/score-protos.h (score_function_value): Likewise.
6867 * config/score/score.c (score_arg_partial_bytes,
6868 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
6869 TARGET_PROMOTE_PROTOTYPES, score_return_in_memory,
6870 score_pass_by_reference, score_add_offset, score_function_value):
6871 Likewise.
6872 * config/sh/sh-protos.h (sh_attr_renesas_p,
6873 sh_promote_prototypes): Likewise.
6874 * config/sh/sh.c (sh_return_in_memory, sh_pass_by_reference,
6875 sh_callee_copies, sh_promote_prototypes, shcompact_byref,
6876 sh_attr_renesas_p): Likewise.
6877 * config/sparc/sparc-protos.h (function_value,
6878 function_arg_padding): Likewise.
6879 * config/sparc/sparc.c (sparc_promote_prototypes,
6880 sparc_return_in_memory, sparc_pass_by_reference,
6881 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
6882 function_arg_record_value_2, function_arg_record_value_1,
6883 function_arg_record_value, function_arg_record_value,
6884 function_arg_padding, function_value): Likewise.
6885 * config/spu/spu-protos.h (spu_function_value): Likewise.
6886 * config/spu/spu.c (spu_pass_by_reference, spu_return_in_memory,
6887 spu_function_value): Likewise.
6888 * config/stormy16/stormy16-protos.h (xstormy16_function_value):
6889 Likewise.
6890 * config/stormy16/stormy16.c (xstormy16_return_in_memory,
6891 xstormy16_function_value, TARGET_PROMOTE_FUNCTION_ARGS,
6892 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
6893 Likewise.
6894 * config/v850/v850.c (v850_return_in_memory,
6895 v850_pass_by_reference, TARGET_PROMOTE_PROTOTYPES): Likewise.
6896 * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): Likewise.
6897 * config/xtensa/xtensa.c (xtensa_return_in_msb,
6898 xtensa_return_in_memory, TARGET_PROMOTE_FUNCTION_ARGS,
6899 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
6900 Likewise.
6901 * explow.c (promote_mode, hard_function_value): Likewise.
6902 * expr.h (hard_function_value, promote_mode): Likewise.
6903 * function.c (aggregate_value_p): Likewise.
6904 * hooks.c (hook_bool_const_tree_true): New.
6905 * hooks.h (hook_bool_const_tree_true): New.
6906 * sdbout.c (SET_KNOWN_TYPE_TAG, plain_type_1): Constify.
6907 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
6908 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
6909 TARGET_RETURN_IN_MSB): Likewise.
6910 * target.h (promote_function_args, promote_function_return,
6911 promote_prototypes, return_in_memory, return_in_msb,
6912 pass_by_reference, must_pass_in_stack, callee_copies,
6913 function_value): Likewise.
6914 * targhooks.c (default_return_in_memory,
6915 hook_pass_by_reference_must_pass_in_stack,
6916 hook_callee_copies_named,
6917 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false,
6918 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true,
6919 default_function_value): Likewise.
6920 * targhooks.h (default_return_in_memory,
6921 hook_pass_by_reference_must_pass_in_stack,
6922 hook_callee_copies_named,
6923 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false,
6924 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true,
6925 default_function_value): Likewise.
6926 * tree-ssa-structalias.c (const_equiv_class_label_t): New.
6927 (equiv_class_label_hash, equiv_class_label_eq): Constify.
6928 * tree-vectorizer.c (bb_in_loop_p): Likewise.
6929 * tree.c (needs_to_live_in_memory): Likewise.
6930 * tree.h (struct tree_type, needs_to_live_in_memory,
6931 aggregate_value_p, must_pass_in_stack_var_size,
6932 must_pass_in_stack_var_size_or_pad): Likewise.
6933 * vmsdbgout.c (write_debug_addr, write_debug_delta4,
6934 write_debug_string, ASM_OUTPUT_DEBUG_STRING, write_rtnbeg,
6935 lookup_filename): Likewise.
6936
1406ee90
UB
69372007-08-23 Uros Bizjak <ubizjak@gmail.com>
6938
6939 PR target/17390
6940 * config/i386/i386.c (ix86_expand_fp_compare): Expand fp comparison to
6941 fake fcomi i387 instruction for !TARGET_CMOVE.
6942 (ix86_expand_branch): Expand natural sequence with one jump for
6943 all targets, not only TARGET_CMOVE.
6944 * config/i386/i386.md (*cmpfp_0_cc): New define_insn_and_split
6945 pattern to implement fake fcomi sequence. Split instruction after
6946 reload to correct compare sequences.
6947 (*cmpfp_xf_cc): Ditto.
6948 (*cmpfp_<mode>_cc): Ditto.
6949 (*cmpfp_u_cc): Ditto.
6950 (*cmpfp_<mode>_cc): Ditto.
6951
9f7b7ba4
RG
69522007-08-23 Richard Guenther <rguenther@suse.de>
6953
6954 * tree-pretty-print.c (dump_generic_node): Annotate
6955 GIMPLE_MODIFY_STMTs with volatile ops with "{v}".
6956
5799f732
RG
69572007-08-23 Richard Guenther <rguenther@suse.de>
6958
6959 * builtins.c (expand_builtin_mathfn): Wrap argument in
6960 save_expr directly instead of re-building the call.
6961 (expand_builtin_mathfn_2): Likewise.
6962 (expand_builtin_mathfn_3): Likewise.
6963 (expand_builtin_interclass_mathfn): Likewise.
6964 (expand_builtin_int_roundingfn): Set arg.
6965 (expand_builtin_int_roundingfn_2): Likewise.
6966
35f3782f
PB
69672007-08-23 Paolo Bonzini <bonzini@gnu.org>
6968
6969 * config/i386/sse.md (*sse_and<mode>3, *sse_ior<mode>3,
6970 *sse_nand<mode>3, *sse_xor<mode>3): New.
6971
c9d259cb
UB
69722007-08-23 Uros Bizjak <ubizjak@gmail.com>
6973
6974 * config/i386/i386.h (PRINT_OPERAND_PUNCT_VALID_P): Add ';' code.
6975 * config/i386/i386.c (print_operand): Handle ';' code. Output
6976 semicolon for TARGET_MACHO.
6977 * config/i386/sync.md (*sync_compare_and_swap<mode>): Use '%;' to
6978 emit semicolon after 'lock' prefix.
6979 (sync_double_compare_and_swap<mode>): Ditto.
6980 (*sync_double_compare_and_swapdi_pic): Ditto.
6981 (*sync_compare_and_swap_cc<mode>): Ditto.
6982 (sync_double_compare_and_swap_cc<mode>): Ditto.
6983 (*sync_double_compare_and_swap_ccdi_pic): Ditto.
6984 (sync_old_add<mode>): Ditto.
6985 (sync_add<mode>): Ditto.
6986 (sync_sub<mode>): Ditto.
6987 (sync_ior<mode>): Ditto.
6988 (sync_and<mode>): Ditto.
6989 (sync_xor<mode>): Ditto.
6990
091a3ac7
CF
69912007-08-22 Chao-ying Fu <fu@mips.com>
6992
6993 * rtl.c (rtx_code_size): Check CONST_FIXED to calcualte correct sizes
6994 in DEF_RTL_EXPR.
6995 (copy_rtx): Handle CONST_FIXED.
6996 (rtx_equal_p): Likewise.
6997 * rtl.h (fixed_value.h): New include.
6998 (rtx_def): Add a new field of fixed_value to u.
6999 (XCNMPFV): Define for accessing fixed_value.
7000 (CONST_FIXED_VALUE, CONST_FIXED_VALUE_HIGH, CONST_FIXED_VALUE_LOW):
7001 Define.
7002 * rtl.def (CONST_FIXED): New constant.
7003 (SS_MULT, US_MULT, SS_DIV, US_DIV, FRACT_CONVERT,
7004 UNSIGNED_FRACT_CONVERT, SAT_FRACT, UNSIGNED_SAT_FRACT, US_NEG,
7005 US_ASHIFT): New codes.
7006 * doc/rtl.texi (Expressions): Document const_fixed, us_neg, ss_mult,
7007 us_mult, ss_div, us_div, us_ashift, fract_convert, sat_fract,
7008 unsigned_fract_convert, unsigned_sat_fract): Document them.
7009 * varasm.c (assemble_integer): Extend to support fixed-point constants
7010 by using different machine classes.
7011 (decode_addr_const): Handle FIXED_CST.
7012 (const_hash_1): Likewise.
7013 (compare_constant): Likewise.
7014 (copy_constant): Likewise.
7015 (const_rtx_hash_1): Handle CONST_FIXED.
7016 (output_constant_pool_2): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
7017 MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
7018 MODE_VECTOR_UACCUM.
7019 (initializer_constant_valid_p): Handle FIXED_CST.
7020 (output_constant): Support FIXED_POINT_TYPE.
7021 * gengenrtl.c (excluded_rtx): Check CONST_FIXED to exclude.
7022 * cse.c (hash_rtx): Support CONST_FIXED.
7023 (exp_equiv_p): Likewise.
7024 (cannon_reg): Likewise.
7025 (fold_rtx): Likewise.
7026 (equiv_constant): Likewise.
7027 (cse_process_notes_1): Likewise.
7028 (count_reg_usage): Likewise.
7029 * cselib.c (entry_and_rtx_equal_p): Check CONST_FIXED.
7030 (rtx_equal_for_cselib_p): Handle CONST_FIXED.
7031 (wrap_constant): Check CONST_FIXED.
7032 (cselib_hash_rtx): Support CONST_FIXED.
7033 (cselib_subst_to_values): Likewise.
7034 * df-scan.c (df_uses_record): Likewise.
7035 * gcse.c (want_to_gcse_p): Likewise.
7036 (oprs_unchanged_p): Likewise.
7037 (oprs_not_set_p): Likewise.
7038 (compute_transp): Likewise.
7039 (extract_mentioned_regs_helper): Likewise.
7040 * genemit.c (gen_exp): Likewise.
7041 * local-alloc.c (equiv_init_varies_p): Likewise.
7042 (contains_replace_regs): Likewise.
7043 (memref_referenced_p): Likewise.
7044 * loop-invariant.c (check_maybe_invariant): Likewise.
7045 (hash_invariant_expr_1): Likewise.
7046 (invariant_expr_equal_p): Likewise.
7047 * postreload-gcse.c (oprs_unchanged_p): Likewise.
7048 * regclass.c (reg_scan_mark_refs): Likewise.
7049 * regrename.c (scan_rtx): Likewise.
7050 * resource.c (mark_referenced_resources): Likewise.
7051 (mark_set_resources): Likewise.
7052 * rtlanal.c (rtx_unstable_p): Likewise.
7053 (rtx_varies_p): Likewise.
7054 (count_occurrences): Likewise.
7055 (reg_mentioned_p): Likewise.
7056 (modified_between_p): Likewise.
7057 (modified_in_p): Likewise.
7058 (volatile_insn_p): Likewise.
7059 (volatile_refs_p): Likewise.
7060 (side_effects_p): Likewise.
7061 (may_trap_p_1): Likewise.
7062 (inequality_comparisons_p): Likewise.
7063 (computed_jump_p_1): Likewise.
7064 (commutative_operand_precedence): Likewise.
7065 * sched-deps.c (sched_analyze_2): Likewise.
7066 * sched-vis.c (print_value): Likewise.
7067 * reload.c (operands_match_p): Likewise.
7068 (subst_reg_equivs): Likewise.
7069 * reload1.c (eliminate_regs_1): Likewise.
7070 (elimination_effects): Likewise.
7071 (scan_paradoxical_subregs): Likewise.
7072 * alias.c (rtx_equal_for_memref_p): Likewise.
7073 * Makefile.in (RTL_BASE_H): Add fixed-value.h.
7074 * emit-rtl.c (const_fixed_htab): New hash table.
7075 (const_fixed_htab_hash, const_fixed_htab_eq, lookup_const_fixed):
7076 Declare.
7077 (const_fixed_htab_hash, const_fixed_htab_eq, lookup_const_fixed,
7078 const_fixed_from_fixed_value): New functions.
7079 (verify_rtx_sharing): Handle CONST_FIXED.
7080 (copy_rtx_if_shared_1): Likewise.
7081 (reset_used_flags): Likewise.
7082 (set_used_flags): Likewise.
7083 (copy_insn_1): Likewise.
7084 (init_emit_once): Create const_fixed_htab.
7085 Store fixed-point scalar and vector zero and one to const_tiny_rtx.
7086
24938ce9
ZD
70872007-08-22 Zdenek Dvorak <ook@ucw.cz>
7088
7089 PR tree-optimization/32949
7090 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Test nowrap_type_p
7091 before failing for ivs with non-constant step.
7092
3abcb3a7
HPN
70932007-08-22 Hans-Peter Nilsson <hp@axis.com>
7094
7095 * doc/md.texi (Iterators): Renamed from Macros. All contents
7096 changed to reflect rename of respectively define_code_macro and
7097 define_mode_macro to define_code_iterator and define_mode_iterator.
7098 (Mode Iterators, Code Iterators): Similar.
7099 * read-rtl.c (struct iterator_group, struct iterator_traverse_data)
7100 (uses_mode_iterator_p, apply_mode_iterator, uses_code_iterator_p)
7101 (apply_iterator_to_string, uses_iterator_p, apply_iterator_traverse)
7102 (initialize_iterators, find_iterator, check_code_iterator)
7103 (map_attr_string, apply_mode_maps, apply_iterator_to_rtx, add_mapping)
7104 (read_mapping, read_rtx_1): Similar.
7105 * config/alpha/sync.md, config/alpha/alpha.md, config/frv/frv.md,
7106 config/s390/s390.md, config/m32c/blkmov.md, config/m32c/m32c.md,
7107 config/spu/spu.md, config/sparc/sparc.md, config/sparc/sync.md,
7108 config/i386/i386.md, config/i386/mmx.md, config/i386/sse.md,
7109 config/i386/sync.md, config/crx/crx.md, config/xtensa/xtensa.md,
7110 config/cris/cris.c, config/cris/cris.md, config/ia64/sync.md,
7111 config/ia64/div.md, config/ia64/vect.md, config/ia64/ia64.md,
7112 config/m68k/m68k.md, config/rs6000/spe.md, config/rs6000/altivec.md,
7113 config/rs6000/sync.md, config/rs6000/rs6000.md,
7114 config/arm/vec-common.md, config/arm/neon.md, config/arm/iwmmxt.md,
7115 config/arm/arm.md, config/mips/mips-dsp.md, config/mips/mips.md,
7116 config/vax/vax.md, config/bfin/bfin.md: Similar.
7117
82161911
DD
71182007-08-22 David Daney <ddaney@avtrex.com>
7119
7120 * doc/install.texi (Testing): Mention testing on a simulator.
7121
e2311f7a
JJ
71222007-08-22 Janis Johnson <janis187@us.ibm.com>
7123
1840f0c2
JJ
7124 * config/dfp-bit.c (DFP_TO_DFP): Check for overflow.
7125
e2311f7a
JJ
7126 * doc/libgcc.texi (Decimal float library routines): Fix formatting
7127 and rearrange floating point conversion functions into different
7128 categories.
7129
1c3d0d93
MK
71302007-08-22 Maxim Kuvyrkov <maxim@codesourcery.com>
7131
7132 * target.h (struct gcc_target.sched: dfa_pre_advance_cycle,
7133 dfa_post_advance_cycle): New scheduler hooks.
7134 * target-def.h (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE,
7135 TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): New macros to initialize
7136 new hooks.
7137 (TARGET_SCHED): Use them.
7138 * doc/tm.texi (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE,
7139 TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Document new hooks.
7140 * haifa-sched.c (advance_one_cycle): Invoke new hooks.
7141
7142 * genautomata.c (insn_has_dfa_reservation_p): New DFA interface
7143 function to facilitate debugging.
7144 (INSN_HAS_DFA_RESERVATION_P_FUNC_NAME): New macro.
7145 (output_insn_has_dfa_reservation_p): New static function to output
7146 insn_has_dfa_reservation_p ().
7147 (write_automata): Use it.
7148 * genattr.c (main): Output declaration for
7149 insn_has_dfa_reservation_p ().
7150
f37dc597 71512007-08-22 Christian Bruel <christian.bruel@st.com>
e139c7f9 7152 Richard Guenther <rguenther@suse.de>
81d2fb02
CB
7153
7154 * fold-const.c (fold_binary): Optimize A-A if -ffinite-math-only.
7155 * simplify_rtx (simplify_binary_operation_1): Likewise.
7156
23da9ed6
RIL
71572007-08-22 Rask Ingemann Lambertsen <rask@sygehus.dk>
7158
7159 PR rtl-optimization/32557
7160 * df-problems.c (df_note_bb_compute): Use mws->start_regno instead
7161 of REGNO (mws->mw_reg).
7162
968fc3b6
RG
71632007-08-22 Richard Guenther <rguenther@suse.de>
7164
7165 PR middle-end/33007
7166 * builtins.c (expand_builtin_int_roundingfn): Replace call
7167 argument wrapped with SAVE_EXPR directly.
7168 (expand_builtin_int_roundingfn_2): Likewise.
7169
b26eca6a
RG
71702007-08-22 Richard Guenther <rguenther@suse.de>
7171
7172 * tree-inline.c (inlinable_function_p): Restore disregarding
7173 inline limits for GNU extern inline functions.
7174
ab5b8382
RG
71752007-08-22 Richard Guenther <rguenther@suse.de>
7176
7177 PR middle-end/32563
7178 * tree.c (host_integerp): Treat sizetype as signed as it is
7179 sign-extended.
7180
cdc64612
ILT
71812007-08-21 Ian Lance Taylor <iant@google.com>
7182
7183 PR tree-optimization/33134
7184 * tree-vrp.c (adjust_range_with_scev): Call
7185 set_value_range_to_value.
7186
958ea87b
AH
71872007-08-21 Aldy Hernandez <aldyh@redhat.com>
7188
7189 * value-prof.h (gimple_remove_histogram_value): Remove duplicate
7190 prototype.
7191
02014de2
AH
71922007-08-21 Aldy Hernandez <aldyh@redhat.com>
7193
7194 * tree-flow-inline.h (next_imm_use_stmt): Remove unecessary
7195 whitespace.
7196
21d818ff
NF
71972007-08-21 Nathan Froyd <froydnj@codesourcery.com>
7198
7199 * config/rs6000/rs6000.c (expand_block_clear): Add TARGET_SPE
7200 cases to set eight bytes at a time.
7201 (expand_block_move): Likewise.
7202
d6b3c797
JJ
72032007-08-21 Jakub Jelinek <jakub@redhat.com>
7204
7205 PR debug/32610
7206 * dwarf2out.c (gen_decl_die): Don't call
7207 gen_tagged_type_instantiation_die if decl doesn't have tagged type.
7208
2f41c1d6
PB
72092007-08-21 Paul Brook <paul@codesourcery.com>
7210 Nathan Sidwell <nathan@codesourcery.com>
7211 Mark Mitchell <mark@codesourcery.com>
7212 Joseph Myers <joseph@codesourcery.com>
7213
7214 * configure.ac: Add --with-pkgversion and --with-bugurl.
7215 * configure: Regenerate.
7216 * doc/install.texi: Document them.
7217 * version.c (version_string): Remove VERSUFFIX.
7218 (VERSUFFIX): Remove.
7219 (pkgversion_string): New.
7220 (bug_report_url): Do not hard-code initializer.
7221 * version.h (pkgversion_string): Declare.
7222 * Makefile.in (PKGVERSION_s, BUGURL_s, PKGVERSION, BUGURL_TEXI):
7223 Define.
7224 (version.o): Define PKGVERSION and BUGURL.
7225 (gcc-vers.texi): Define VERSION_PACKAGE and BUGURL.
7226 (%.pod): Define BUGURL.
7227 * gcc.c (process_command, main): Use pkgversion_string.
7228 * toplev.c (compile_file, print_version): Likewise.
7229 * protoize.c (main): Likewise.
7230 * gcov.c (print_version): Likewise. Update copyright date.
7231 * gcov-dump.c (print_version): Likewise. Update copyright date.
7232 * mips-tdump.c (main): Likewise. Update copyright date.
7233 * mips-tfile.c (main): Likewise. Update copyright date.
7234 * doc/include/gcc-common.texi: Include VERSION_PACKAGE as subtitle.
7235 * doc/bugreport.texi: Use BUGURL for bug-reporting instructions;
7236 shorten description.
7237 * doc/gcc.texi: Include VERSION_PACKAGE in version description.
7238 * doc/gccint.texi: Likewise.
7239 * doc/invoke.texi: Use BUGURL for bug-reporting instructions.
7240 Update copyright date.
7241
d02cb675
UB
72422007-08-21 Uros Bizjak <ubizjak@gmail.com>
7243
7244 * config/i386/i386.c (ix86_expand_clear): Use FLAGS_REG.
7245 (ix86_expand_strlensi_unroll_1): Ditto.
7246 (ix86_expand_branch): Use FLAGS_REG and FPSR_REG.
7247 (ix86_expand_carry_flag_compare): Update comment.
7248
c01ee935
JJ
72492007-08-21 Jakub Jelinek <jakub@redhat.com>
7250
7251 PR middle-end/32912
7252 * fold-const.c (fold_unary): Optimize BIT_NOT_EXPR of VECTOR_CST.
7253 (fold_binary): Handle vectors in X | ~X and X ^ ~X optimizations.
7254
f7d1e0c6
RG
72552007-08-21 Richard Guenther <rguenther@suse.de>
7256
7257 * fold-const.c (fold_binary): Revert removing of index +p PTR folding.
7258
8015455a
RG
72592007-08-21 Richard Guenther <rguenther@suse.de>
7260
7261 PR middle-end/33122
7262 * fold-const.c (fold_binary): Remove index +p PTR folding.
7263 Fix types of POINTER_PLUS_EXPR generated by folding of
7264 (PTR +p B) +p A.
7265
ab22c1fa
CF
72662007-08-20 Chao-ying Fu <fu@mips.com>
7267
7268 * c-common.h (enum rid): Add new enumeration values of RID_SAT,
7269 RID_FRACT, and RID_ACCUM. RID_SAT needs to be inserted before
7270 RID_ONEWAY, so that it can be checked in declspecs_add_type.
7271 (c_common_fixed_point_type_for_size): Declare.
7272 * c-parser.c (reswords): Add _Fract, _Accum, and _Sat.
7273 (c_token_starts_typename): Handle RID_FRACT, RID_ACCUM, and RID_SAT.
7274 (c_token_starts_declspecs): Likewise.
7275 (c_parser_declspecs): Likewise.
7276 (c_parser_attributes): Likewise.
7277 * c-tree.h (enum c_typespec_keyword): Add cts_fract and cts_accum.
7278 (c_declspecs): Add saturating_p.
7279 * c-decl.c (build_null_declspecs): Initialize saturating_p.
c9d259cb
UB
7280 (declspecs_add_type): Avoid using complex with _Fract, _Accum, or
7281 _Sat. Handle RID_SAT.
ab22c1fa
CF
7282 Avoid using void, bool, char, int, float, double, _Decimal32,
7283 _Decimal64, _Decimal128, and complex with _Sat.
7284 Handle RID_FRACT and RID_ACCUM.
7285 Make sure _Sat is used with _Fract or _Accum.
7286 (finish_declspecs): Handle cts_fract and cts_accum.
7287 * c-common.c (fixed-value.h): New include.
7288 (constant_expression_warning): Handle FIXED_CST.
7289 (overflow_warning): Likewise.
7290 (warnings_for_convert_and_check): Likewise.
7291 (c_common_fixed_point_type_for_size): New.
7292 (c_common_type_for_mode): Handle fixed-point modes to
7293 return various saturating/non-saturating, signed/unsigned types.
7294 (c_common_signed_or_unsigned_type): Support fixed-point types.
7295 (shorten_compare): Check fixed-point zero.
7296 Handle FIXED_POINT_TYPE.
7297 (c_common_truthvalue_conversion): Handle FIXED_CST.
7298 Handle FIXED_POINT_TYPE.
7299 (c_common_nodes_and_builtins): Record builtin types for fixed-point
7300 types.
7301 (handle_mode_attribute): Handle fixed-point modes. Need to check
7302 if the signness of base type and fixed-point modes are consistent.
7303 (handle_vector_size_attribute): Handle fixed-point modes.
7304 (same_scalar_type_ignoring_signedness): Handle FIXED_POINT_TYPE.
7305 (warn_for_div_by_zero): Check fixed-point zero.
7306 * c-typeck.c (c_common_type): Check FIXED_POINT_TYPE. Build
7307 a common fixed-point type based on fbit, ibit, sign, and saturation.
7308 (build_unary_op): Allow FIXED_POINT_TYPE for CONVERT_EXPR,
7309 NEGATE_EXPR, TRUTH_NOT_EXPR, PREINCREMENT_EXPR, POSTINCREMENT_EXPR,
7310 PREDECREMENT_EXPR, and POSTDECREMENT_EXPR.
7311 (convert_for_assignment): Support FIXED_POINT_TYPE.
7312 (digest_init): Handle FIXED_POINT_TYPE.
7313 (build_binary_op): Support FIXED_POINT_TYPE in *_DIV_EXPR,
7314 TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
7315 TRUTH_XOR_EXPR, RSHIFT_EXPR, LSHIFT_EXPR, EQ_EXPR, NE_EXPR, LE_EXPR,
7316 GE_EXPR, LT_EXPR, GT_EXPR.
7317 * target-def.h (TARGET_FIXED_POINT_SUPPORTED_P): New.
7318 (TARGET_INITIALIZER): Add TARGET_FIXED_POINT_SUPPORTED_P.
7319 * target.h (gcc_target): Add fixed_point_supported_p.
7320 * targhooks.c (default_scalar_mode_supported_p): Handle MODE_FRACT,
7321 MODE_UFRACT, MODE_ACCUM, and MODE_UACCUM.
7322 (default_fixed_point_supported_p): Define.
7323 * targhooks.h (default_fixed_point_supported_p): Declare.
7324 * doc/tm.texi (TARGET_FIXED_POINT_SUPPORTED_P): Add.
7325 * doc/install.texi (Configuration): Add --enable-fixed-point.
7326 * configure.ac (--enable-fixed-point): New to enable fixed-point
7327 arithmetic extension to C. For mips targets, we enable it by default.
7328 * configure, config.in: Regenerate.
7329
43f14744
PS
73302007-08-20 Pawel Sikora <pluto@pld-linux.org>
7331
e139c7f9 7332 * doc/invoke.texi (-Wnon-virtual-dtor): Update documentation.
43f14744 7333
01a2a2f5
DE
73342007-08-20 David Edelsohn <edelsohn@gnu.org>
7335
7336 * dwarf2out.c (text_section_used): Move declaration outside ifdef
7337 DWARF2_DEBUGGING_INFO.
7338 (cold_text_section_used): Same.
7339 (cold_text_section): Same.
7340
ff7637ef
RG
73412007-08-20 Richard Guenther <rguenther@suse.de>
7342
e139c7f9
UB
7343 * c-typeck.c (convert_for_assignment): Use the type of
7344 the member for the initialization.
ff7637ef 7345
1d51f406
RG
73462007-08-20 Richard Guenther <rguenther@suse.de>
7347
7348 * c-objc-common.c (c_disregard_inline_limits): Remove.
7349 * c-objc-common.h (c_disregard_inline_limits): Likewise.
7350 * cgraphunit.c (cgraph_process_new_functions): Call
7351 disregard_inline_limits_p.
7352 (cgraph_preserve_function_body_p): Likewise.
7353 * ipa-inline.c (compute_inline_parameters): Likewise.
7354 * langhooks-def.h (lhd_tree_inlining_disregard_inline_limits):
7355 Remove.
7356 (LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS): Remove.
7357 (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
7358 disregard_inline_limits langhook.
7359 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
7360 Remove.
7361 * langhooks.h (lang_hooks_for_tree_inlining): Remove
7362 disregard_inline_limits langhook.
7363 * tree-inline.c (disregard_inline_limits_p): New function.
7364 * tree-inline.h (disregard_inline_limits_p): Declare.
7365
50886bf1
RG
73662007-08-20 Richard Guenther <rguenther@suse.de>
7367
7368 * langhooks-def.h (lhd_tree_inlining_auto_var_in_fn_p): Remove.
7369 (LANG_HOOKS_TREE_INLINING_AUTO_VAR_IN_FN_P): Likewise.
7370 (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
7371 auto_var_in_fn_p langhook.
7372 * langhooks.c (lhd_tree_inlining_auto_var_in_fn_p): Rename and
7373 move ...
7374 * tree.c (auto_var_in_fn_p): ... here.
7375 (find_var_from_fn): Call auto_var_in_fn_p directly.
7376 * langhooks.h (lang_hooks_for_tree_inlining): Remove
7377 auto_var_in_fn_p langhook.
7378 * tree-inline.c (remap_decls): Call auto_var_in_fn_p directly.
7379 (copy_body_r): Likewise.
7380 (self_inlining_addr_expr): Likewise.
7381 * tree.h (auto_var_in_fn_p): Declare.
7382
14588106
RG
73832007-08-20 Richard Guenther <rguenther@suse.de>
7384
7385 * tree.c (WALK_SUBTREE): Call walk_tree_1.
7386 (walk_type_fields): Take lh parameter.
7387 (walk_tree): Rename to ...
7388 (walk_tree_1): ... this. Do not call the walk_subtrees
7389 langhook but the now passed callback. Pass lh on recursion.
7390 (walk_tree_without_duplicates): Rename to ...
7391 (walk_tree_without_duplicates_1): ... this. Take lh parameter
7392 and call walk_tree_1.
7393 * tree.h (walk_tree_lh): New typedef.
7394 (walk_tree_1): Declare.
7395 (walk_tree_without_duplicates_1): Likewise.
7396 (walk_tree): New define to walk_tree_1 with NULL lh parameter.
7397 (walk_tree_without_duplicates): New define to
7398 walk_tree_without_duplicates_1 with NULL lh parameter.
7399 * langhooks.c (lhd_tree_inlining_walk_subtrees): Remove.
7400 * langhooks.h (lang_hooks_for_tree_inlining): Remove walk_subtrees
7401 langhook.
7402 * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Remove.
7403 (LANG_HOOKS_TREE_INLINING_WALK_SUBTREES): Likewise.
7404 (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove walk_subtrees
7405 initializer.
7406
a9eafe81
AP
74072007-08-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
7408
7409 PR middle-end/30564
7410 * tree-inline.c (optimize_inline_calls): Move the cgraph checking
7411 code in front of the compacting of basic blocks.
7412 Move the folding of statements inbetween the cgraph checking
7413 and compacting of basic blocks.
7414
5a4ac684 74152007-08-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
e139c7f9 7416 Serge Belyshev <belyshev@depni.sinp.msu.ru>
5a4ac684
AP
7417
7418 PR target/32522
7419 * config/alpha/alpha.c (va_list_skip_additions): Check for
7420 POINTER_PLUS_EXPR in addition to PLUS_EXPR.
7421 (alpha_stdarg_optimize_hook): Look for POINTER_PLUS_EXPR instead of
7422 PLUS_EXPR when checking ap.__base.
7423 (alpha_va_start): Create POINTER_PLUS_EXPR instead of PLUS_EXPR
7424 when doing addition on pointer types. Use size_int instead of
7425 build_int_cst.
7426 (alpha_gimplify_va_arg_1): Likewise, but use sizetype instead of
7427 ptr_type in the second operand.
7428
0e7f6131
AP
74292007-08-19 Andrew Pinski <pinskia@gmail.com>
7430
7431 PR target/33115
7432 * config/i386/darwin.h (CC1_SPEC): Add %(cc1_cpu) in front.
7433
61021c2c
AP
74342007-08-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
7435
7436 PR middle-end/32940
7437 * cfgexpand.c (expand_one_register_var): Mark pointer
7438 DECL_ARTIFICIAL as REG_POINTER also.
7439 * stmt.c (expand_decl): Likewise.
7440
7b765bed
DB
74412007-08-19 Daniel Berlin <dberlin@dberlin.org>
7442
7443 Fix PR 32772
7444 Fix PR 32716
7445 Fix PR 32328
7446 Fix PR 32303
7447
7448 * tree-flow.h (struct stmt_ann_d): Remove makes_clobbering_call.
7449 * tree-ssa-alias.c (init_transitive_clobber_worklist): Add
7450 on_worklist argument and avoid adding things to worklist multiple
7451 times.
7452 (add_to_worklist): Ditto.
7453 (mark_aliases_call_clobbered): Mark entire structure clobbered if
7454 single SFT is clobbered.
7455 (set_initial_properties): Ditto.
7456 (compute_call_clobbered): Update for changes to function
7457 arguments.
7458 (create_overlap_variables_for): Always create SFT for offset 0.
7459 (create_structure_vars): Handle PHI's, since we are in SSA form at
7460 this point.
7461 * tree-ssa-loop-ivopts.c (get_ref_tag): Don't return subvars.
7462 * tree-ssa-operands.c (access_can_touch_variable): Don't handle
7463 TARGET_MEM_REF.
7464 (add_vars_for_offset): Figure out aliases from access + points-to.
7465 (add_virtual_operand): Use add_vars-for_offset.
7466 (get_tmr_operands): Update for NMT changes, rewrite to be correct.
7467 (add_call_clobber_ops): Remove makes_clobbering_call set.
7468 (get_expr_operands): Always pass through the INDIRECT_REF
7469 reference.
7470 * tree-ssa-structalias.c (struct constraint_graph): Remove
7471 variables member.
7472 Add pe, pe_rep, pointer_label, loc_label, pointed_by, points_to,
7473 address_taken, pt_used, number_incoming.
7474 (FIRST_ADDR_NODE): Removed.
7475 (merge_graph_nodes): Remove broken code for the moment.
7476 (init_graph): New function.
7477 (build_pred_graph): Remove code to init_graph.
7478 Add location equivalence support.
7479 (struct scc_info): Rename roots to deleted.
7480 (scc_visit): Ditto.
7481 (init_scc_info): Ditto
7482 (init_topo_info): Use graph->size.
7483 (compute_topo_order): Ditto.
7484 (do_da_constraint): Removed.
7485 (do_sd_constraint): Remove calls to find().
7486 set_union_with_increment should always get 0 as last arg here.
7487 (do_complex_constraint): Replace do_da_constraint with assert.
7488 Stop calling find.
7489 (struct equiv_class_label): New.
7490 (pointer_equiv_class_table): Ditto.
7491 (location_equiv_class_table): Ditto.
7492 (equiv_class_label_hash): Ditto.
7493 (equiv_class_label_eq): Ditto
7494 (equiv_class_lookup): Ditto.
7495 (equiv_class_ladd): Ditto.
7496 (pointer_equiv_class): Ditto.
7497 (location_equiv_class): Ditto.
7498 (condense_visit): Rename and rewrite from label_visit to do only
7499 SCC related stuff for HU.
7500 (label_visit): Do HU work for HU.
7501 (perform_var_substitution): Update to do HU and location
7502 equivalence.
7503 (free_var_substitution_info): Update to free HU and location
7504 equivalence structures. */
7505 (find_equivalent_node): Update for pointer but not location
7506 equivalence.
7507 (unite_pointer_equivalences): New function.
7508 (move_complex_constraints): Rewrite to only do moving.
7509 (rewrite_constraints): Split out of move_complex_constraints.
7510 (solve_graph): Use graph->size.
7511 (process_constraint_1): Add from_call argument, use it.
7512 Split *a = &b into two constraints.
7513 (process_constraint): Use new process_constraint_1.
7514 (get_constraint_for_component_ref): Handle bitmaxsize == -1 case.
7515 (get_constraint_for): Handle non-pointer integers properly.
7516 Remove code that used to handle structures.
7517 (handle_ptr_arith): Fix a few bugs in pointer arithmetic handling
7518 with unknown addends.
7519 (handle_rhs_call): New function.
7520 (find_func_aliases): Use handle_rhs_call.
7521 (set_uids_in_ptset): Add an assert.
7522 (set_used_smts): Fix bug in not considering unified vars.
7523 (compute_tbaa_pruning): Stop initing useless iteration_obstack.
7524 (compute_points_to_sets): Update for other function changes.
7525 (delete_points_to_sets): Ditto.
7526 (ipa_pta_execute): Ditto.
7527 (pass_ipa_pta): We need to update SSA after ipa_pta.
7528
73f48658
JH
75292007-08-19 Jan Hubicka <jh@suse.cz>
7530
7531 * i386.md: Replace "rim" and "mri" constraints by "g".
7532
9e9f8522
JM
75332007-08-19 Joseph Myers <joseph@codesourcery.com>
7534
7535 * dwarf2out.c (text_section_used, cold_text_section_used,
7536 cold_text_section, dwarf2out_note_section_used): New.
7537 (dwarf2out_init): Initialize cold_text_section.
7538 (dwarf2out_switch_text_section, dwarf2out_begin_function): Call
7539 dwarf2out_note_section_used.
7540 (size_of_aranges): Only count entry for text section if it was
7541 used. Count entry for cold text section if it was used.
7542 (output_aranges): Only output entries for text section and cold
7543 text section if they were used.
7544
434548f6
AP
75452007-08-19 Andrew Pinski <pinskia@gmail.com>
7546
7547 * tree-pretty-print.c (debug_generic_expr): Add a comment about
7548 the function.
7549 (debug_generic_stmt): Likewise.
7550 (debug_tree_chain): Likewise.
7551
468c2ac0
DN
75522007-08-19 Dorit Nuzman <dorit@il.ibm.com>
7553
7554 * tree-data-refs.c (split_constant_offset): Expose.
7555 * tree-data-refs.h (split_constant_offset): Add declaration.
7556
7557 * tree-vectorizer.h (dr_alignment_support): Renamed
7558 dr_unaligned_software_pipeline to dr_explicit_realign_optimized.
7559 Added a new value dr_explicit_realign.
7560 (_stmt_vec_info): Added new fields: dr_base_address, dr_init,
7561 dr_offset, dr_step, and dr_aligned_to, along with new access
7562 functions for these fields: STMT_VINFO_DR_BASE_ADDRESS,
7563 STMT_VINFO_DR_INIT, STMT_VINFO_DR_OFFSET, STMT_VINFO_DR_STEP, and
7564 STMT_VINFO_DR_ALIGNED_TO.
7565
7566 * tree-vectorizer.c (vect_supportable_dr_alignment): Add
7567 documentation.
7568 In case of outer-loop vectorization with non-fixed misalignment - use
7569 the dr_explicit_realign scheme instead of the optimized realignment
7570 scheme.
7571 (new_stmt_vec_info): Initialize new fields.
7572
7573 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Handle the
7574 'nested_in_vect_loop' case. Change verbosity level.
7575 (vect_analyze_data_ref_access): Handle the 'nested_in_vect_loop' case.
7576 Don't fail on zero step in the outer-loop for loads.
c9d259cb
UB
7577 (vect_analyze_data_refs): Call split_constant_offset to calculate
7578 base, offset and init relative to the outer-loop.
468c2ac0
DN
7579
7580 * tree-vect-transform.c (vect_create_data_ref_ptr): Replace the unused
7581 BSI function argument with a new function argument - at_loop.
7582 Simplify the condition that determines STEP. Takes additional argument
c9d259cb
UB
7583 INV_P. Support outer-loop vectorization (handle the
7584 nested_in_vect_loop case), including zero step in the outer-loop. Call
468c2ac0
DN
7585 vect_create_addr_base_for_vector_ref with additional argument.
7586 (vect_create_addr_base_for_vector_ref): Takes additional argument LOOP.
7587 Updated function documentation. Handle the 'nested_in_vect_loop' case.
7588 Fixed and simplified calculation of step.
7589 (vectorizable_store): Call vect_create_data_ref_ptr with loop instead
7590 of bsi, and with additional argument. Call bump_vector_ptr with
7591 additional argument. Fix typos. Handle the 'nested_in_vect_loop' case.
7592 (vect_setup_realignment): Takes additional arguments INIT_ADDR and
7593 DR_ALIGNMENT_SUPPORT. Returns another value AT_LOOP. Handle the case
c9d259cb
UB
7594 when the realignment setup needs to take place inside the loop.
7595 Support the dr_explicit_realign scheme. Allow generating the optimized
468c2ac0 7596 realignment scheme for outer-loop vectorization. Added documentation.
c9d259cb
UB
7597 (vectorizable_load): Support the dr_explicit_realign scheme. Handle
7598 the 'nested_in_vect_loop' case, including loads that are invariant in
7599 the outer-loop and the realignment schemes. Handle the case when the
468c2ac0
DN
7600 realignment setup needs to take place inside the loop. Call
7601 vect_setup_realignment with additional arguments. Call
7602 vect_create_data_ref_ptr with additional argument and with loop instead
7603 of bsi. Fix 80-column overflow. Fix typos. Rename PHI_STMT to PHI.
7604 (vect_gen_niters_for_prolog_loop): Call
7605 vect_create_addr_base_for_vector_ref with additional arguments.
7606 (vect_create_cond_for_align_checks): Likewise.
7607 (bump_vector_ptr): Updated to support the new dr_explicit_realign
7608 scheme: takes additional argument bump; argument ptr_incr is now
7609 optional; updated documentation.
7610 (vect_init_vector): Takes additional argument (bsi). Use it, if
7611 available, to insert the vector initialization.
7612 (get_initial_def_for_induction): Pass additional argument in call to
7613 vect_init_vector.
7614 (vect_get_vec_def_for_operand): Likewise.
7615 (vect_setup_realignment): Likewise.
7616 (vectorizable_load): Likewise.
7617
d29de1bf
DN
76182007-08-19 Dorit Nuzman <dorit@il.ibm.com>
7619
7620 * tree-vectorizer.h (vect_is_simple_reduction): Takes a loop_vec_info
7621 as argument instead of struct loop.
7622 (nested_in_vect_loop_p): New function.
7623 (vect_relevant): Add enum values vect_used_in_outer_by_reduction and
7624 vect_used_in_outer.
7625 (is_loop_header_bb_p): New. Used to differentiate loop-header phis
7626 from other phis in the loop.
7627 (destroy_loop_vec_info): Add additional argument to declaration.
7628
7629 * tree-vectorizer.c (supportable_widening_operation): Also check if
7630 nested_in_vect_loop_p (don't allow changing the order in this case).
7631 (vect_is_simple_reduction): Takes a loop_vec_info as argument instead
7632 of struct loop. Call nested_in_vect_loop_p and don't require
7633 flag_unsafe_math_optimizations if it returns true.
7634 (new_stmt_vec_info): When setting def_type for phis differentiate
7635 loop-header phis from other phis.
7636 (bb_in_loop_p): New function.
c9d259cb
UB
7637 (new_loop_vec_info): Inner-loop phis already have a stmt_vinfo, so
7638 just update their loop_vinfo. Order of BB traversal now matters -
7639 call dfs_enumerate_from with bb_in_loop_p.
d29de1bf
DN
7640 (destroy_loop_vec_info): Takes additional argument to control whether
7641 stmt_vinfo of the loop stmts should be destroyed as well.
7642 (vect_is_simple_reduction): Allow the "non-reduction" use of a
7643 reduction stmt to be defines by a non loop-header phi.
7644 (vectorize_loops): Call destroy_loop_vec_info with additional argument.
7645
7646 * tree-vect-transform.c (vectorizable_reduction): Call
7647 nested_in_vect_loop_p. Check for multitypes in the inner-loop.
7648 (vectorizable_call): Likewise.
7649 (vectorizable_conversion): Likewise.
7650 (vectorizable_operation): Likewise.
7651 (vectorizable_type_promotion): Likewise.
7652 (vectorizable_type_demotion): Likewise.
7653 (vectorizable_store): Likewise.
7654 (vectorizable_live_operation): Likewise.
7655 (vectorizable_reduction): Likewise. Also pass loop_info to
7656 vect_is_simple_reduction instead of loop.
7657 (vect_init_vector): Call nested_in_vect_loop_p.
7658 (get_initial_def_for_reduction): Likewise.
7659 (vect_create_epilog_for_reduction): Likewise.
7660 (vect_init_vector): Check which loop to work with, in case there's an
7661 inner-loop.
7662 (get_initial_def_for_inducion): Extend to handle outer-loop
7663 vectorization. Fix indentation.
7664 (vect_get_vec_def_for_operand): Support phis in the case vect_loop_def.
7665 In the case vect_induction_def get the vector def from the induction
7666 phi node, instead of calling get_initial_def_for_inducion.
7667 (get_initial_def_for_reduction): Extend to handle outer-loop
7668 vectorization.
7669 (vect_create_epilog_for_reduction): Extend to handle outer-loop
7670 vectorization.
7671 (vect_transform_loop): Change assert to just skip this case. Add a
7672 dump printout.
7673 (vect_finish_stmt_generation): Add a couple asserts.
7674
7675 (vect_estimate_min_profitable_iters): Multiply
7676 cost of inner-loop stmts (in outer-loop vectorization) by estimated
7677 inner-loop bound.
7678 (vect_model_reduction_cost): Don't add reduction epilogue cost in case
7679 this is an inner-loop reduction in outer-loop vectorization.
7680
7681 * tree-vect-analyze.c (vect_analyze_scalar_cycles_1): New function.
7682 Same code as what used to be vect_analyze_scalar_cycles, only with
7683 additional argument loop, and loop_info passed to
7684 vect_is_simple_reduction instead of loop.
7685 (vect_analyze_scalar_cycles): Code factored out into
7686 vect_analyze_scalar_cycles_1. Call it for each relevant loop-nest.
7687 Updated documentation.
7688 (analyze_operations): Check for inner-loop loop-closed exit-phis during
7689 outer-loop vectorization that are live or not used in the outerloop,
7690 cause this requires special handling.
7691 (vect_enhance_data_refs_alignment): Don't consider versioning for
7692 nested-loops.
7693 (vect_analyze_data_refs): Check that there are no datarefs in the
7694 inner-loop.
7695 (vect_mark_stmts_to_be_vectorized): Also consider vect_used_in_outer
7696 and vect_used_in_outer_by_reduction cases.
7697 (process_use): Also consider the case of outer-loop stmt defining an
7698 inner-loop stmt and vice versa.
7699 (vect_analyze_loop_1): New function.
7700 (vect_analyze_loop_form): Extend, to allow a restricted form of nested
7701 loops. Call vect_analyze_loop_1.
7702 (vect_analyze_loop): Skip (inner-)loops within outer-loops that have
7703 been vectorized. Call destroy_loop_vec_info with additional argument.
7704
7705 * tree-vect-patterns.c (vect_recog_widen_sum_pattern): Don't allow
7706 in the inner-loop when doing outer-loop vectorization. Add
7707 documentation and printout.
7708 (vect_recog_dot_prod_pattern): Likewise. Also add check for
7709 GIMPLE_MODIFY_STMT (in case we encounter a phi in the loop).
7710
ea336dd5
AP
77112007-08-18 Andrew Pinski <pinskia@gmail.com>
7712
7713 * tree-affine.h (print_aff): New prototype.
7714 (debug_aff): Likewise.
7715 * tree-affine.c (print_aff): New function.
7716 (debug_aff): Likewise.
7717
c8aea42c 77182007-08-18 Paul Brook <paul@codesourcery.com>
e139c7f9 7719 Joseph Myers <joseph@codesourcery.com>
c8aea42c
PB
7720
7721 * common.opt (-fdebug-prefix-map=): New option.
7722 * opts.c: Include debug.h.
7723 (common_handle_option): Handle -fdebug-prefix-map.
7724 * final.c: Include ggc.h.
7725 (struct debug_prefix_map, debug_prefix_maps, add_debug_prefix_map,
7726 remap_debug_filename): New.
7727 * Makefile.in (final.o, opts.o): Update dependencies.
7728 * debug.h (remap_debug_filename, add_debug_prefix_map): Declare.
7729 * configure.ac: Check for assembler --debug-prefix-map support.
7730 * configure, config.in: Regenerate.
7731 * gcc.c (ASM_MAP): Define conditional on HAVE_AS_DEBUG_PREFIX_MAP.
7732 (ASM_DEBUG_SPEC): Include ASM_MAP.
7733 * doc/install.texi (--with-debug-prefix-map): Document.
7734 * doc/invoke.texi (-fdebug-prefix-map): Document.
7735 * dbxout.c (dbxout_init, dbxout_start_source_file,
7736 dbxout_source_file): Call remap_debug_filename.
7737 * dwarf2out.c (add_comp_dir_attribute, maybe_emit_file,
7738 dwarf2out_start_source_file, dwarf2out_finish): Call
7739 remap_debug_filename.
7740 (file_table_relative_p): Do not check d->emitted_number.
7741 * toplev.c (output_file_directive): Call remap_debug_filename.
7742 * vmsdbgout.c (write_srccorr): Call remap_debug_filename.
7743 * xcoffout.c (xcoffout_source_file): Call remap_debug_filename.
7744
2ce6c6cb
KG
77452007-08-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7746
7747 * loop-invariant.c (find_invariants_to_move): Add missing macro
7748 argument.
7749
3d4e2766
TT
77502007-08-17 Tom Tromey <tromey@redhat.com>
7751
7752 * tree.h (struct tree_label_decl): Removed old "java" fields.
7753
4bf6c438
RS
77542007-08-17 Richard Sandiford <richard@codesourcery.com>
7755 Nigel Stephens <nigel@mips.com>
7756
7757 * config/mips/sde.h (DRIVER_SELF_SPECS): Add commas.
7758 Treat -mno-data-in-code and -mcode-xonly as aliases for
7759 -mcode-readable=no and -mcode-readable=pcrel respectively.
7760 * config/mips/t-sde (TARGET_LIBGCC2_CFLAGS): Add -mcode-xonly.
7761 (MULTILIB_OPTIONS): Add -mcode-readable=no multilibs.
7762 (MULTILIB_DIRNAMES): Update accordingly.
7763
5d39d00b
L
77642007-08-17 H.J. Lu <hongjiu.lu@intel.com>
7765
7766 * Makefile.in (version.o): Depend on $(REVISION) only if
7767 REVISION_s is defined.
7768
b79f09ac
BE
77692007-08-17 Sa Liu <saliu@de.ibm.com>
7770 Ulrich Weigand <uweigand@de.ibm.com>
7771
7772 PR middle-end/32970
7773 * tree.c (reconstruct_complex_type): For a pointer to a vector,
7774 use build_qualified_type to retain qualifiers of the base type.
7775
64276d76 77762007-08-17 Chen Liqin <liqin@sunnorth.com.cn>
b79f09ac 7777
5d39d00b
L
7778 * config/score/score.md : Update pattern tablejump.
7779 * config/score/score.c : Update score_initialize_trampoline
7780 function.
7781 * config/score/score.h (TRAMPOLINE_TEMPLATE): Added macro.
7782 (TRAMPOLINE_INSNS, TRAMPOLINE_SIZE) Update macro.
7783 * doc/contrib.texi: Add my entry.
64276d76 7784
db5b4110
L
77852007-08-16 H.J. Lu <hongjiu.lu@intel.com>
7786
7787 * Makefile.in (REVISION): New.
7788 (REVISION_c): New.
7789 (REVISION_s): New.
7790 (version.o): Also depend on $(REVISION). Add
7791 -DREVISION=$(REVISION_s).
7792
7793 * version.c (version_string): Add REVISION.
7794
d407ad67
SP
77952007-08-16 Seongbae Park <seongbae.park@gmail.com>
7796
7797 * tree-eh.c (lower_try_finally_onedest): Reset the locus
7798 of GOTO that's relocated to a different block.
7799
ac7d7749
KG
78002007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7801
7802 * c-common.c (const_strip_array_types): New.
7803 * c-common.h (lang_missing_noreturn_ok_p): Delete.
7804 (const_strip_array_types): New.
7805 * c-objc-common.c (c_disregard_inline_limits,
7806 c_warn_unused_global_decl): Constify.
7807 * c-tree.h (c_disregard_inline_limits, c_warn_unused_global_decl,
7808 c_vla_type_p, c_incomplete_type_error): Likewise.
7809 * c-typeck.c (c_incomplete_type_error, c_vla_type_p): Likewise.
7810 * hooks.c (hook_bool_const_tree_false): New.
7811 * hooks.h (hook_bool_const_tree_false): Likewise.
7812 * langhooks-def.h (lhd_warn_unused_global_decl,
7813 lhd_incomplete_type_error, lhd_expr_size,
7814 lhd_tree_inlining_disregard_inline_limits,
7815 lhd_tree_inlining_auto_var_in_fn_p, lhd_tree_dump_type_quals,
7816 LANG_HOOKS_GENERIC_TYPE_P, LANG_HOOKS_TYPE_MAX_SIZE): Constify.
7817 * langhooks.c (lhd_warn_unused_global_decl,
7818 lhd_incomplete_type_error,
7819 lhd_tree_inlining_disregard_inline_limits,
7820 lhd_tree_inlining_auto_var_in_fn_p, lhd_tree_dump_type_quals,
7821 lhd_expr_size): Likewise.
7822 * langhooks.h (lang_hooks_for_tree_inlining,
7823 lang_hooks_for_tree_dump, lang_hooks_for_types,
7824 lang_hooks_for_decls, lang_hooks): Likewise.
7825 * pointer-set.c (pointer_set_t, pointer_set_create,
7826 pointer_set_contains, insert_aux, pointer_set_insert,
7827 pointer_set_traverse, pointer_map_t, pointer_map_create,
7828 pointer_map_contains, pointer_map_insert, pointer_map_traverse):
7829 Likewise.
7830 * pointer-set.h (pointer_set_contains, pointer_set_insert,
7831 pointer_set_traverse, pointer_map_contains, pointer_map_insert,
7832 pointer_map_traverse): Likewise.
7833 * predict.c (assert_is_empty): Likewise.
7834 * tree-affine.c (free_name_expansion): Likewise.
7835 * tree-cfg.c (edge_to_cases_cleanup): Likewise.
7836 * tree.c (size_in_bytes, max_int_size_in_bytes): Likewise.
7837 * tree.h (size_in_bytes, max_int_size_in_bytes): Likewise.
7838
bc1edb77
VK
78392007-08-16 Victor Kaplansky <victork@il.ibm.com>
7840
7841 * tree-vectorizer.c (new_loop_vec_info): Initialize new
7842 field.
7843 (destroy_loop_vec_info): Add call to VEC_free.
7844 * tree-vectorizer.h (may_alias_ddrs): Define.
7845 (LOOP_VINFO_MAY_ALIAS_DDRS): Define.
7846 * tree-vect-analyze.c (vect_analyze_data_ref_dependence):
7847 Change reporting to dump.
7848 (vect_is_duplicate_ddr): New.
7849 (vect_mark_for_runtime_alias_test): New.
7850 (vect_analyze_data_ref_dependences) Add call to
7851 vect_mark_for_runtime_alias_test.
7852 (vect_enhance_data_refs_alignment): Define local variable
7853 vect_versioning_for_alias_required, don't perform
7854 peeling for alignment if versioning for alias is
7855 required.
7856 (vect_enhance_data_refs_alignment): Use
7857 PARAM_VECT_MAX_VERSION_FOR_ALIGNMENT_CHECKS instead of
7858 PARAM_VECT_MAX_VERSION_CHECKS.
7859 * tree-vect-transform.c
7860 (vect_create_cond_for_alias_checks): New.
7861 (vect_transform_loop): Add call to
7862 vect_create_cond_for_alias_checks.
7863 (vect_vfa_segment_size): New.
7864 * params.def (PARAM_VECT_MAX_VERSION_FOR_ALIGNMENT_CHECKS):
7865 Rename.
7866 (PARAM_VECT_MAX_VERSION_FOR_ALIAS_CHECKS): Define.
7867 * gcc/doc/invoke.texi
7868 (vect-max-version-for-alignment-checks): Document.
7869 (vect-max-version-for-alias-checks): Document.
7870 (vect-max-version-checks): Remove.
7871
57c2d13f
UB
78722007-08-16 Uros Bizjak <ubizjak@gmail.com>
7873
7874 * config/i386/i386.md (*rep_movdi_rex64): Emit "rep" prefix on
7875 the same line as the instruction for all asm dialects.
7876 (*rep_movsi): Ditto.
7877 (*rep_movsi_rex64): Ditto.
7878 (*rep_movqi): Ditto.
7879 (*rep_movqi_rex64): Ditto.
7880 (*rep_stosdi_rex64): Ditto.
7881 (*rep_stossi): Ditto.
7882 (*rep_stossi_rex64): Ditto.
7883 (*rep_stosqi): Ditto.
7884 (*rep_stosqi_rex64): Ditto.
7885 (*cmpstrnqi_nz_1): Ditto.
7886 (*cmpstrnqi_nz_rex_1): Ditto.
7887 (*cmpstrnqi_1): Ditto.
7888 (*cmpstrnqi_rex_1): Ditto.
7889 (*strlenqi_1): Ditto.
7890 (*strlenqi_rex_1): Ditto.
7891 * config/i386/sync.md (*sync_compare_and_swap<mode>): Emit "lock"
7892 prefix on the same line as the instruction for all asm dialects.
7893 (sync_double_compare_and_swap<mode>): Ditto.
7894 (*sync_double_compare_and_swapdi_pic): Ditto.
7895 (*sync_compare_and_swap_cc<mode>): Ditto.
7896 (sync_double_compare_and_swap_cc<mode>): Ditto.
7897 (*sync_double_compare_and_swap_ccdi_pic): Ditto.
7898 (sync_old_add<mode>): Ditto.
7899 (sync_add<mode>): Ditto.
7900 (sync_sub<mode>): Ditto.
7901 (sync_ior<mode>): Ditto.
7902 (sync_and<mode>): Ditto.
7903 (sync_xor<mode>): Ditto.
7904
c07fdd94
RS
79052007-08-16 Richard Sandiford <richard@codesourcery.com>
7906
7907 PR middle-end/32897
7908 * reload.c (find_reloads): Check that the memory returned by
7909 find_reloads_toplev was not the result of forcing a constant
7910 to memory.
7911 (find_reloads_toplev): Always use simplify_gen_subreg to get
7912 the subreg of a constant. If the result is also a constant,
7913 but not a legitimate one, force it into the constant pool
7914 and reload its address.
7915
32f56aad
DE
79162007-08-15 David Edelsohn <edelsohn@gnu.org>
7917
7918 * config/rs6000/rs6000.c (rs6000_rtx_costs): Add CLZ, CTZ, and
7919 POPCOUNT.
7920
aaa42494
DJ
79212007-08-15 Daniel Jacobowitz <dan@codesourcery.com>
7922
7923 * config/rs6000/rs6000.c (rs6000_file_start): Output a .gnu_attribute
7924 directive for the current vector ABI.
7925
f81e79b5
SE
79262007-08-15 Steve Ellcey <sje@cup.hp.com>
7927
7928 PR target/32963
7929 * caller-save.c (reg_save_code): Set invalide status on restore code.
7930
bbe984fb
DN
79312007-08-15 Diego Novillo <dnovillo@google.com>
7932
7933 * tree-ssa-alias.c (compute_memory_partitions): Use
7934 alias_bitmap_obstack to allocate bitmaps.
7935 (reset_alias_info): Factor out of init_alias_info.
7936 Mark all name tags not associated to an SSA name for renaming.
7937 (init_alias_info): Call it.
7938 (create_name_tags): Tidy. Add comments.
7939 (dump_points_to_info_for): Do not call get_mem_sym_stats_for.
7940
c675e8ad
MK
79412007-08-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7942
7943 * config/mips/mips.c (vr4130_swap_insns_p): Use new interface to
7944 scheduler dependencies.
7945
a6783d12
RIL
79462007-08-15 Rask Ingemann Lambertsen <rask@sygehus.dk>
7947
7948 * config/i386/i386.md (subsi3_carry_zext): Remove "m" constraint for
7949 "register_operand".
7950 (*iorsi_1_zext): Likewise.
7951 (*iorsi_1_zext_imm): Likewise.
7952 * config/i386/sse.md: (*sse4_1_extractps): Use "nonimmediate_operand"
7953 with "rm"/"xm" constraint.
7954 (sse2_vmsqrtv2df2): Likewise.
7955
49317655
JJ
79562007-08-15 Jakub Jelinek <jakub@redhat.com>
7957
7958 PR middle-end/33074
7959 * emit-rtl.c (try_split): Use INSN_LIST instead of EXPR_LIST for
7960 REG_LIBCALL note.
7961
7b0e48fb
DB
79622007-08-14 Daniel Berlin <dberlin@dberlin.org>
7963
7964 * tree-pass.h (PROP_pta): Removed.
7965 (TODO_rebuild_alias): New.
7966 (pass_may_alias): Removed.
7967 * tree-ssa-ccp.c (execute_fold_all_builtins): Only rebuild
7968 aliasing if we changed something.
7969 * tree-ssa-alias.c (compute_may_aliases): Make non-static. Update
7970 SSA internally.
7971 (pass_may_alias): Removed.
7972 (create_structure_vars): Return TODO_rebuild_alias.
7973 * tree-ssa-pre.c (do_pre): Return TODO_rebuild_alias.
7974 * tree-sra.c (tree_sra): Only rebuild aliasing if something
7975 changed.
7976 (tree_sra_early): We never affect aliasing right now.
7977 * tree-flow.h (compute_may_aliases): New prototype.
7978 * passes.c: Remove pass_may_alias from the passes.
7979 (execute_function_todo): Support TODO_rebuild_alias.
7980
ea2666ba
KT
79812007-08-14 Kai Tietz <kai.tietz@onevision.com>
7982
7983 * i386.c: (legitimize_address): Move dllimported variable check
7984 infront of legitimizing pic address of CONST symbols.
7985
0f547d3d
SE
79862007-08-14 Steve Ellcey <sje@cup.hp.com>
7987
7988 PR tree-optimization/32941
7989 * tree-eh.c (struct leh_tf_state): Add goto_queue_map field.
7990 (goto_queue_cmp): Remove.
7991 (find_goto_replacement): Change search method.
7992 (maybe_record_in_goto_queue): Add assert.
7993 (lower_try_finally): Remove qsort call, add pointer_map_destroy call.
7994 * Makefile.in (tree-eh.o): Add pointer-set.h dependency.
7995
22ea9ec0
KG
79962007-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7997
7998 * alias.c (component_uses_parent_alias_set): Constify.
7999 * alias.h (component_uses_parent_alias_set): Likewise.
8000 * cfgrtl.c (print_rtl_with_bb): Likewise.
8001 * double-int.c (tree_to_double_int, double_int_fits_to_tree_p,
8002 mpz_get_double_int): Likewise.
8003 * double-int.h (double_int_fits_to_tree_p, tree_to_double_int,
8004 mpz_get_double_int): Likewise.
8005 * expr.c (is_aligning_offset, undefined_operand_subword_p,
8006 mostly_zeros_p, all_zeros_p, safe_from_p, is_aligning_offset):
8007 Likewise.
8008 * expr.h (safe_from_p): Likewise.
8009 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru):
8010 Likewise.
8011 * gimplify.c (should_carry_locus_p, zero_sized_field_decl,
8012 zero_sized_type, goa_lhs_expr_p): Likewise.
8013 * omp-low.c (is_variable_sized, use_pointer_for_field): Likewise.
8014 * rtl.h (print_rtl_with_bb): Likewise.
8015 * sched-vis.c (print_exp, print_value, print_pattern): Likewise.
8016 * tree-cfg.c (const_first_stmt, const_last_stmt): New.
8017 * tree-flow-inline.h (bb_stmt_list): Constify.
8018 (cbsi_start, cbsi_last, cbsi_end_p, cbsi_next, cbsi_prev,
8019 cbsi_stmt): New.
8020 * tree-flow.h (const_block_stmt_iterator, cbsi_start, cbsi_last,
8021 const_first_stmt, const_last_stmt): New.
8022 (block_may_fallthru, empty_block_p): Constify.
8023 * tree-iterator.c (EXPR_FIRST_BODY, EXPR_LAST_BODY,
8024 EXPR_ONLY_BODY): New.
8025 (expr_first, expr_last, expr_only): Use macro for body.
8026 (const_expr_first, const_expr_last, const_expr_only): New.
8027 * tree-iterator.h (const_tree_stmt_iterator, ctsi_start,
8028 ctsi_last, ctsi_end_p, ctsi_one_before_end_p, ctsi_next,
8029 ctsi_prev, ctsi_stmt): New.
8030 * tree-scalar-evolution.c (get_loop_exit_condition): Constify.
8031 * tree-scalar-evolution.h (get_loop_exit_condition): Likewise.
8032 * tree-ssa-loop-niter.c (loop_only_exit_p,
8033 derive_constant_upper_bound): Likewise.
8034 * tree-ssa-phiopt.c (empty_block_p): Likewise.
8035 * tree-ssa-threadupdate.c (redirection_block_p): Likewise.
8036 * tree-vectorizer.c (slpeel_can_duplicate_loop_p): Likewise.
8037 * tree-vectorizer.h (slpeel_can_duplicate_loop_p): Likewise.
8038 * tree-vrp.c (vrp_bitmap_equal_p): Likewise.
8039 * tree.c (get_type_static_bounds): Likewise.
8040 * tree.h (const_expr_first, const_expr_last, const_expr_only): New.
8041 (get_type_static_bounds): Constify.
8042
d39d658d
RIL
80432007-08-14 Rask Ingemann Lambertsen <rask@sygehus.dk>
8044
8045 PR target/30315
8046 * config/i386/i386.h (CANONICALIZE_COMPARISON): New.
8047 * config/i386/i386.md (plusminus)(addsub)(SWI): New.
8048 (*<addsub><mode>3_cc_overflow): New.
8049 (*add<mode>3_cconly_overflow): New.
8050 (*sub<mode>3_cconly_overflow): New.
8051 (*<addsub>si3_zext_cc_overflow): New.
8052 * config/i386/predicates.md (fcmov_comparison_operator): Accept
8053 CCCmode for LTU, GTU, LEU and GEU.
8054 (ix86_comparison_operator): Likewise.
8055 (ix86_carry_flag_operator): Carry flag is set if LTU or GTU in CCCmode.
9bf5a5e8 8056 * config/i386/i386.c (put_condition_code): Support CCCmode.
d39d658d
RIL
8057 (ix86_cc_mode): Use CCCmode when testing for overflow of PLUS
8058 or MINUS expressions.
8059
9ef0c8d9
AP
80602007-08-14 Andrew Pinski <pinskia@gmail.com>
8061
8062 PR c/30428
8063 * c-typeck.c (build_binary_op): Disallow vector float types with
8064 BIT_IOR_EXPR, BIT_AND_EXPR, and BIT_XOR_EXPR.
8065
e2f6ff94
MK
80662007-08-14 Maxim Kuvyrkov <maxim@codesourcery.com>
8067
8068 * sched-int.h (struct _dep): Rename field 'kind' to 'type'.
8069 (DEP_KIND): Rename to DEP_TYPE. Update all uses.
8070 (dep_def): New typedef.
8071 (init_dep_1, sd_debug_dep): Declare functions.
8072 (DEP_LINK_KIND): Rename to DEP_LINK_TYPE.
8073 (debug_dep_links): Remove.
8074 (struct _deps_list): New field 'n_links'.
8075 (DEPS_LIST_N_LINKS): New macro.
8076 (FOR_EACH_DEP_LINK): Remove.
8077 (create_deps_list, free_deps_list, delete_deps_list): Remove
8078 declaration.
8079 (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
8080 (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
8081 (copy_deps_list_change_con, move_dep_link): Ditto.
8082 (struct haifa_insn_data): Split field 'back_deps' into 'hard_back_deps'
8083 and 'spec_back_deps'. New field 'resolved_forw_deps'. Remove field
8084 'dep_count'.
8085 (INSN_BACK_DEPS): Remove.
8086 (INSN_HARD_BACK_DEPS, INSN_SPEC_BACK_DEPS, INSN_RESOLVED_FORW_DEPS):
8087 New macros.
8088 (INSN_DEP_COUNT): Remove.
8089 (enum DEPS_ADJUST_RESULT): Add new constant DEP_NODEP. Fix comments.
8090 (spec_info, haifa_recovery_block_was_added_during_scheduling_p):
8091 Declare global variables.
8092 (deps_pools_are_empty_p, sched_free_deps): Declare functions.
8093 (add_forw_dep, compute_forward_dependences): Remove declarations.
8094 (add_or_update_back_dep, add_or_update_back_forw_dep): Ditto.
8095 (add_back_forw_dep, delete_back_forw_dep): Ditto.
8096 (debug_ds, sched_insn_is_legitimate_for_speculation_p): Declare
8097 functions.
c9d259cb
UB
8098 (SD_LIST_NONE, SD_LIST_HARD_BACK, SD_LIST_SPEC_BACK, SD_LIST_FORW):
8099 New constants.
e2f6ff94
MK
8100 (SD_LIST_RES_BACK, SD_LIST_RES_FORW, SD_LIST_BACK): Ditto.
8101 (sd_list_types_def): New typedef.
8102 (sd_next_list): Declare function.
8103 (struct _sd_iterator): New type.
8104 (sd_iterator_def): New typedef.
8105 (sd_iterator_start, sd_iterator_cond, sd_iterator_next): New inline
8106 functions.
8107 (FOR_EACH_DEP): New cycle wrapper.
8108 (sd_lists_size, sd_lists_empty_p, sd_init_insn, sd_finish_insn):
8109 Declare functions.
8110 (sd_find_dep_between, sd_add_dep, sd_add_or_update_dep): Ditto.
8111 (sd_resolve_dep, sd_copy_back_deps, sd_delete_dep, sd_debug_lists):
8112 Ditto.
8113
8114 * sched-deps.c (init_dep_1): Make global.
8115 (DUMP_DEP_PRO, DUMP_DEP_CON, DUMP_DEP_STATUS, DUMP_DEP_ALL): New
8116 constants.
8117 (dump_dep): New static function.
8118 (dump_dep_flags): New static variable.
8119 (sd_debug_dep): New function.
8120 (add_to_deps_list, remove_from_deps_list): Update 'n_links' field of
8121 the list.
8122 (move_dep_link): Use remove_from_deps_list (), instead of
8123 detach_dep_link ().
8124 (dep_links_consistent_p, dump_dep_links, debug_dep_links): Remove.
8125 (dep_link_is_detached_p): New static function.
8126 (deps_obstack, dl_obstack, dn_obstack): Remove. Use dn_pool, dl_pool
8127 instead.
8128 (dn_pool, dl_pool): New alloc_pools.
8129 (dn_pool_diff, dl_pool_diff): New static variables.
8130 (create_dep_node, delete_dep_node): New static function.
8131 (create_deps_list): Make it static. Use alloc_pool 'dl_pool'.
8132 (deps_list_empty_p): Make it static. Use 'n_links' field.
8133 (deps_pools_are_empty_p): New static function.
8134 (alloc_deps_list, delete_deps_list): Remove.
8135 (dump_deps_list, debug_deps_list, add_back_dep_to_deps_list): Remove.
8136 (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
8137 (copy_deps_list_change_con): Remove. Use sd_copy_back_deps () instead.
8138 (forward_dependency_cache): Remove.
8139 (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Remove
8140 'back' from the names. Change signature to use dep_t instead of
8141 equivalent quad.
8142 (add_back_dep): Ditto. Make global.
8143 (check_dep_status): Rename to check_dep ().
8144 (sd_next_list, sd_lists_size, sd_lists_empty_p, sd_init_insn):
8145 New functions.
8146 (sd_finish_insn): Ditto.
8147 (sd_find_dep_between_no_cache): New static function.
8148 (sd_find_dep_between): New function.
8149 (ask_dependency_caches, set_dependency_caches): New static functions.
8150 (update_dependency_caches, change_spec_dep_to_hard, update_dep): Ditto.
8151 (add_or_update_dep_1): Separate pieces of functionality into
8152 ask_dependency_caches (), update_dependency_caches (),
8153 change_spec_dep_to_hard (), update_dep ().
8154 (get_back_and_forw_lists): New static function.
8155 (sd_add_dep): Separate setting of dependency caches into
8156 set_dependency_caches ().
8157 (sd_add_or_update_dep, sd_resolve_dep, sd_copy_back_deps):
8158 New functions.
8159 (sd_delete_dep): Ditto.
8160 (DUMP_LISTS_SIZE, DUMP_LISTS_DEPS, DUMP_LISTS_ALL): New constants.
8161 (dump_lists): New static function.
8162 (sd_debug_lists): New debug function.
8163 (delete_all_dependences, fixup_sched_groups): Update to use
8164 sd_* infrastructure.
8165 (sched_analyze_2): Create data-speculative dependency only if
8166 data-speculation is enabled.
8167 (sched_analyze_insn): If insn cannot be speculative, make all its
8168 dependencies non-speculative.
8169 (sched_analyze): Use sd_init_insn ().
8170 (add_forw_dep, compute_forward_dependencies): Remove.
8171 (delete_dep_nodes_in_back_deps): New static function.
8172 (sched_free_deps): New function.
8173 (init_dependency_caches): Init alloc_pools.
8174 (extend_depedency_caches): Update after removing of
8175 forward_dependency_cache.
8176 (free_dependency_caches): Ditto. Free alloc_pools.
8177 (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Remove.
8178 (delete_forw_dep, add_or_update_back_dep, add_or_update_back_forw_dep):
8179 Ditto.
8180 (add_back_forw_dep, delete_back_forw_dep): Ditto.
8181 (add_dependence): Use init_dep ().
8182 (get_dep_weak_1): New static function.
8183 (get_dep_weak): Move logic to get_dep_weak_1 ().
8184 (dump_ds): New static function moved from haifa-sched.c:
8185 debug_spec_status ().
8186 (debug_ds): New debug function.
8187 (check_dep_status): Rename to check_dep (). Update to check whole
8188 dependencies.
8189
8190 * haifa-sched.c (spec_info): Make global.
8191 (added_recovery_block_p): Rename to
8192 'haifa_recovery_block_was_added_during_current_schedule_block_p'.
8193 (haifa_recovery_block_was_added_during_scheduling_p): New variable.
8194 (dep_cost, priority, rank_for_schedule, schedule_insn): Update
8195 to use new interfaces.
8196 (ok_for_early_queue_removal): Ditto.
8197 (schedule_block): Initialize logical uids of insns emitted by the
8198 target.
8199 (sched_init): Initialize new variable.
8200 (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
8201 interfaces.
8202 (extend_global): Initialize insn data.
8203 (init_h_i_d): Remove code that is now handled in sd_init_insn ().
8204 (process_insn_forw_deps_be_in_spec): Change signature. Update to use
8205 new interfaces.
8206 (add_to_speculative_block): Update to use new interfaces.
8207 (create_recovery_block): Set new variables.
8208 (create_check_block_twin, fix_recovery_deps): Update to use new
8209 interfaces.
8210 (sched_insn_is_legitimate_for_speculation_p): New function.
8211 (speculate_insn): Move checking logic to
8212 sched_insn_is_legitimate_for_speculation_p ().
8213 (sched_remove_insn): Finalize sched-deps information of instruction.
8214 (clear_priorities, add_jump_dependencies): Update to use new
8215 interfaces.
8216 (debug_spec_status): Rename to dump_ds () and move to sched-deps.c.
8217
8218 * sched-rgn.c (set_spec_fed, find_conditional_protection): Update
8219 to use new interfaces.
8220 (is_conditionally_protected, is_pfree, is_prisky) Ditto.
8221 (new_ready): Try to use control speculation only if it is available.
8222 (add_branch_dependences): Update to use new interfaces.
8223 (compute_block_backward_dependences): Rename to
8224 compute_block_dependences (). Call
8225 targetm.sched.dependencies_evaluation_hook ().
8226 (free_block_dependencies): New static function.
8227 (debug_dependencies): Update to use new interfaces.
8228 (schedule_region): Remove separate computation of forward dependencies.
8229 Move call of targetm.sched.dependencies_evaluation_hook () to
8230 compute_block_dependences (). Free dependencies at the end of
8231 scheduling the region.
8232
8233 * sched-ebb.c (earliest_block_with_similiar_load): Update to use
8234 new interfaces.
8235 (add_deps_for_risky_insns): Ditto.
8236 (schedule_ebb): Remove separate computation of forward dependencies.
8237 Free dependencies at the end of scheduling the ebb.
8238
8239 * ddg.c (create_ddg_dependence): Update to use new interfaces.
c9d259cb
UB
8240 (build_intra_loop_deps): Ditto. Remove separate computation of
8241 forward dependencies. Free sched-deps dependencies.
e2f6ff94
MK
8242
8243 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Update
8244 to use new interfaces.
8245 (ia64_dfa_new_cycle, ia64_gen_check): Ditto.
8246
8247 * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Update to use
8248 new interfaces.
8249 (is_costly_group): Ditto.
8250
ed7a4b4b
KG
82512007-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8252
8253 * alias.c (rtx_equal_for_memref_p): Constify.
8254 * basic-block.h (const_edge, const_basic_block): New.
8255 (reg_set_to_hard_reg_set, dfs_enumerate_from, single_succ_p,
8256 single_pred_p, single_succ_edge, single_pred_edge, single_succ,
8257 single_pred, maybe_hot_bb_p, probably_cold_bb_p,
8258 probably_never_executed_bb_p, edge_probability_reliable_p,
8259 br_prob_note_reliable_p, forwarder_block_p, flow_nodes_print,
8260 inside_basic_block_p, control_flow_insn_p, dominated_by_p):
8261 Likewise.
8262 * bb-reorder.c (better_edge_p, push_to_next_round_p): Likewise.
8263 * bt-load.c (basic_block_freq, insn_sets_btr_p, can_move_up):
8264 Likewise.
8265 * cfganal.c (flow_active_insn_p, forwarder_block_p,
8266 flow_nodes_print, dfs_enumerate_from): Likewise.
8267 * cfgbuild.c (count_basic_blocks, inside_basic_block_p,
8268 control_flow_insn_p, count_basic_blocks): Likewise.
8269 * cfgloop.c (flow_bb_inside_loop_p, glb_enum_p,
8270 get_loop_body_with_size, loop_exit_edge_p): Likewise.
8271 * cfgloop.h (flow_bb_inside_loop_p, num_loop_insns,
8272 average_num_loop_insns, loop_exit_edge_p,
8273 just_once_each_iteration_p, can_duplicate_loop_p): Likewise.
8274 * cfgloopanal.c (just_once_each_iteration_p, num_loop_insns,
8275 average_num_loop_insns, seq_cost): Likewise.
8276 * cfgloopmanip.c (rpe_enum_p, can_duplicate_loop_p): Likewise.
8277 * dominance.c (dominated_by_p): Likewise.
8278 * emit-rtl.c (validate_subreg): Likewise.
8279 * except.c (can_throw_internal, can_throw_external): Likewise.
8280 * except.h (can_throw_internal, can_throw_external): Likewise.
8281 * gcse.c (gcse_constant_p, oprs_unchanged_p, oprs_anticipatable_p,
8282 oprs_available_p, hash_expr, expr_equiv_p, oprs_not_set_p,
8283 compute_transp, load_killed_in_block_p, reg_killed_on_edge,
8284 simple_mem, store_ops_ok, load_kills_store, find_loads,
8285 store_killed_in_insn, store_killed_after, store_killed_before,
8286 gcse_mem_operand, implicit_set_cond_p, store_killed_in_pat):
8287 Likewise.
8288 * ifcvt.c (count_bb_insns, cheap_bb_rtx_cost_p, noce_operand_ok,
8289 noce_mem_write_may_trap_or_fault_p): Likewise.
8290 * pointer-set.c (pointer_set_contains, pointer_map_contains):
8291 Likewise.
8292 * pointer-set.h (pointer_set_contains, pointer_map_contains):
8293 Likewise.
8294 * predict.c (can_predict_insn_p, maybe_hot_bb_p,
8295 probably_cold_bb_p, probably_never_executed_bb_p,
8296 edge_probability_reliable_p, br_prob_note_reliable_p,
8297 can_predict_insn_p): Likewise.
8298 * regclass.c (reg_set_to_hard_reg_set): Likewise.
8299 * resource.c (return_insn_p): Likewise.
8300 * rtl.h (reg_set_between_p, reg_set_p, validate_subreg):
8301 Likewise.
8302 * rtlanal.c (reg_set_between_p, reg_set_p): Likewise.
8303 * tracer.c (count_insns, ignore_bb_p, better_p): Likewise.
8304 * tree-cfg.c (verify_gimple_unary_expr, verify_gimple_binary_expr,
8305 verify_gimple_modify_stmt): Likewise.
8306 * tree-chrec.c (is_not_constant_evolution,
8307 is_multivariate_chrec_rec, is_multivariate_chrec,
8308 chrec_contains_symbols, chrec_contains_undetermined,
8309 tree_contains_chrecs, evolution_function_is_affine_multivariate_p,
8310 evolution_function_is_univariate_p, avoid_arithmetics_in_type_p,
8311 eq_evolutions_p, scev_direction): Likewise.
8312 * tree-chrec.h (automatically_generated_chrec_p, tree_is_chrec,
8313 eq_evolutions_p, is_multivariate_chrec, chrec_contains_symbols,
8314 chrec_contains_symbols_defined_in_loop,
8315 chrec_contains_undetermined, tree_contains_chrecs,
8316 evolution_function_is_affine_multivariate_p,
8317 evolution_function_is_univariate_p, chrec_zerop,
8318 evolution_function_is_constant_p, evolution_function_is_affine_p,
8319 evolution_function_is_affine_or_constant_p,
8320 tree_does_not_contain_chrecs, chrec_type): Likewise.
8321 * tree-data-ref.c (tree_fold_divides_p,
8322 object_address_invariant_in_loop_p, dr_may_alias_p,
8323 ziv_subscript_p, siv_subscript_p, gcd_of_steps_may_divide_p,
8324 same_access_functions, constant_access_functions,
8325 access_functions_are_affine_or_constant_p, find_vertex_for_stmt):
8326 Likewise.
8327 * tree-flow.h (scev_direction): Likewise.
8328 * tree-gimple.c (is_gimple_stmt): Likewise.
8329 * tree-outof-ssa.c (identical_copies_p, identical_stmt_lists_p):
8330 Likewise.
8331 * tree-pretty-print.c (op_prio): Likewise.
8332 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop,
8333 analyzable_condition, backedge_phi_arg_p): Likewise.
8334 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
8335 * tree-ssa-operands.c (get_name_decl, operand_build_cmp): Likewise.
8336 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p):
8337 Likewise.
8338
d46571c8
DH
83392007-08-13 Dan Hipschman <dsh@google.com>
8340
8341 PR c/32953
8342 * c-format.c (check_format_arg): Move check for zero-length
8343 format strings below the check for unterminated strings.
8344
462643f0
AP
83452007-08-13 Andrew Pinski <pinskia@gmail.com>
8346
8347 PR C/30427
8348 * c-typeck.c (build_unary_op <case BIT_NOT_EXPR>): Reject vector float
8349 types.
8350
b21fbb68
NC
83512007-08-13 Nick Clifton <nickc@redhat.com>
8352
8353 * config/arm/arm_neon.h: Revert GPLv3 patch to this file.
8354
096f0d9d
FXC
83552007-08-12 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8356
8357 PR fortran/32860
8358 * c-format.c (gcc_gfc_length_specs): New array.
8359 (gcc_gfc_char_table): Add unsigned specifier, and references to
8360 the l length modifier.
8361 (format_types_orig): Use the new gcc_gfc_length_specs.
8362
1c7f7c66
SL
83632007-08-12 Sa Liu <saliu@de.ibm.com>
8364
8365 * emit-rtl.c (try_split): Relink the insns with REG_LIBCALL note
8366 and with REG_RETVAL note after split.
8367
5920daab
DD
83682007-08-11 David Daney <ddaney@avtrex.com>
8369
6ef5231b 8370 * config/mips/mips.c (mips_sched_reorder): Mark cycle parameter
5920daab
DD
8371 as ATTRIBUTE_UNUSED.
8372
ee7caeb3
DE
83732007-08-11 David Edelsohn <edelsohn@gnu.org>
8374 Segher Boessenkool <segher@kernel.crashing.org>
8375
8376 * config/rs6000/rs6000.h (CC1_CPU_SPEC): Define as empty string if
8377 HAVE_LOCAL_CPU_DETECT not defined.
8378
bd85fcee
JH
83792007-08-11 Jan Hubicka <jh@suse.cz>
8380
8381 * cgraphunit.c (record_cdtor_fn): Declare all cdtors always inlined.
8382 (cgraph_process_new_functions): Honor previous value of
8383 disregard_inline_limits.
8384 * ipa-inline.c (compute_inline_parameters): Likewise.
8385
4862826d
ILT
83862007-08-11 Ian Lance Taylor <iant@google.com>
8387
8388 * alias.h (alias_set_type): Define new type.
8389 (ALIAS_SET_MEMORY_BARRIER): Use it.
8390 * rtl.h: Include alias.h.
8391 (struct mem_attrs): Use alias_set_type.
8392 * tree.h: Include alias.h
8393 (struct tree_type): Use alias_set_type.
8394 (struct tree_struct_field_tag): Likewise.
8395 (struct tree_decl_common): Likewise.
8396 * alias.c (struct alias_set_entry): Use alias_set_type.
8397 (get_alias_set_entry, alias_set_subset_of): Likewise.
8398 (alias_sets_conflict_p): Likewise.
8399 (alias_sets_must_conflict_p): Likewise.
8400 (objects_must_conflict_p): Likewise.
8401 (get_alias_set, new_alias_set): Likewise.
8402 (record_alias_subset, record_component_aliases): Likewise.
8403 (varargs_set, frame_set): Change to alias_set_type.
8404 (get_varargs_alias_set): Use alias_set_type.
8405 (get_frame_alias_set): Likewise.
8406 * builtins.c (setjmp_alias_set): Change to alias_set_type.
8407 * dse.c (struct store_info): Use alias_set_type.
8408 (struct read_info, struct clear_alias_mode_holder): Likewise.
8409 (clear_alias_set_lookup, canon_address): Likewise.
8410 (record_store, check_mem_read_rtx): Likewise.
8411 (dse_record_singleton_alias_set): Likewise.
8412 (dse_invalidate_singleton_alias_set): Likewise.
8413 * emit-rtl.c (get_mem_attrs): Likewise.
8414 (set_mem_attributes_minus_bitpos): Likewise.
8415 (set_mem_alias_set): Likewise.
8416 * expr.c (store_constructor_field, store_field): Likewise.
8417 * gimplify.c (struct gimplify_init_ctor_preeval_data): Likewise.
8418 * langhooks.c (lhd_get_alias_set): Likewise.
8419 * langhooks-def.h (lhd_get_alias_set): Likewise.
8420 * reload1.c (alter_reg): Likewise.
8421 * tree-flow.h (struct fieldoff): Likewise.
8422 * tree-ssa-alias.c (struct alias_map_d): Likewise.
8423 (may_alias_p, get_smt_for, create_sft): Likewise.
8424 * tree-ssa-alias-warnings.c (nonstandard_alias_types_p): Likewise.
8425 * tree-ssa-structalias.c (set_uids_in_ptset): Likewise.
8426 (merge_smts_into): Likewise.
8427 * varasm.c (const_alias_set): Likewise.
8428 * c-common.c (strict_aliasing_warning): Likewise.
8429 (c_common_get_alias_set): Likewise.
8430 * dse.h (dse_record_singleton_alias_set): Update declaration.
8431 (dse_invalidate_singleton_alias_set): Likewise.
8432 * emit-rtl.h (set_mem_alias_set): Likewise.
8433 * c-common.h (c_common_get_alias_set): Likewise.
8434 * print-rtl.c (print_rtx): Cast MEM_ALIAS_SET when printing it.
8435 * print-tree.c (print_node): Likewise.
8436 * config/alpha/alpha.c (alpha_sr_alias_set): Change to
8437 alias_set_type.
8438 (alpha_setup_incoming_varargs): Use alias_set_type.
8439 * config/i386/i386.c (setup_incoming_varargs_64): Use
8440 alias_set_type.
8441 (setup_incoming_varargs_ms_64): Likewise.
8442 (ix86_GOT_alias_set): Likewise.
8443 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
8444 * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
8445 (set): Change to alias_set_type.
8446 (get_TOC_alias_set): Use alias_set_type.
8447 * config/rs6000/rs6000-protos.h (get_TOC_alias_set): Update
8448 declaration.
8449 * config/sh/sh.c (sh_builtin_saveregs): Use alias_set_type.
8450 * config/sparc/sparc.c (sparc_sr_alias_set): Change to
8451 alias_set_type.
8452 (struct_value_alias_set): Likewise.
8453 * Makefile.in (GTFILES): Add $(srcdir)/alias.h.
8454
a7f051fe
RS
84552007-08-11 Richard Sandiford <richard@codesourcery.com>
8456
8457 * config/vxworks-dummy.h (TARGET_VXWORKS): Define.
8458 * config/vxworks.h (TARGET_VXWORKS): Override.
8459 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define
8460 "mips" if TARGET_VXWORKS.
8461
3fb30019
RS
84622007-08-11 Richard Sandiford <richard@codesourcery.com>
8463
8464 * calls.c (avoid_likely_spilled_reg): New function.
8465 (expand_call): Use it.
8466
ea7c218e
KG
84672007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8468
8469 * c-typeck.c (build_c_cast): Add OPT_Wcast_qual to warnings.
8470
ac2610bf
AN
84712007-08-10 Adam Nemet <anemet@caviumnetworks.com>
8472
8473 * config/mips/predicates.md (const_call_insn_operand): Invoke
8474 SYMBOL_REF_LONG_CALL_P only on SYMBOL_REFs.
8475
656ca3ad
DE
84762007-08-10 David Edelsohn <edelsohn@gnu.org>
8477
8478 PR target/33042
8479 * config/rs6000/driver-rs6000.c: Include link.h.
8480 Use ElfW instead of wordsize-specif typedef.
8481
68a57691
KG
84822007-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8483
8484 * system.h (CONST_CAST): New.
8485 * c-decl.c (c_make_fname_decl): Use it.
8486 * c-lex.c (cb_ident, lex_string): Likewise.
8487 * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
8488 * gcc.c (set_spec, read_specs, for_each_path, execute, do_spec_1,
8489 give_switch, set_multilib_dir): Likewise.
8490 * gengtype-parse.c (string_seq, typedef_name): Likewise.
8491 * passes.c (execute_one_pass): Likewise.
8492 * prefix.c (update_path): Likewise.
8493 * pretty-print.c (pp_base_destroy_prefix): Likewise.
8494 * tree.c (build_string): Likewise.
8495
df54b9ab
AH
84962007-08-10 Aldy Hernandez <aldyh@redhat.com>
8497
8498 * tree-flow-inline.h (is_exec_stmt): Remove.
8499 (is_label_stmt): Remove.
8500 * tree-flow.h: Remove prototypes for is_exec_stmt, get_filename, and
8501 is_label_stmt.
8502
acbe5496
AK
85032007-08-10 Andreas Krebbel <krebbel1@de.ibm.com>
8504
8505 * lower-subreg.c (resolve_shift_zext): Don't adjust
8506 src_reg_num for wordmode operands.
8507
174bd8ca
SL
85082007-08-10 Sandra Loosemore <sandra@codesourcery.com>
8509 David Ung <davidu@mips.com>
8510
8511 * config/mips/mips.c (TARGET_SCHED_INIT): Define.
8512 (TARGET_SCHED_REORDER2): Define.
8513 (mips_maybe_swap_ready): New.
8514 (mips_last_74k_agen_insn): New.
8515 (mips_74k_agen_init): New.
8516 (mips_74k_agen_reorder): New function to group loads and stores
8517 in the ready queue.
8518 (mips_sched_init): New.
8519 (mips_sched_reorder): Don't do initialization here. Call
8520 mips_74k_agen_reorder.
8521 (mips_variable_issue): Call mips_74k_agen_init.
8522
6aab184c
AH
85232007-08-10 Aldy Hernandez <aldyh@redhat.com>
8524
8525 * tree-flow-inline.h (get_filename): Remove.
8526
5955b0a3
RS
85272007-08-10 Richard Sandiford <richard@codesourcery.com>
8528
8529 * config/mips/mips-protos.h (mips_address_insns): Add a boolean
8530 argument.
8531 (mips_fetch_insns): Delete in favor of...
8532 (mips_load_store_insns): ...this new function.
8533 * config/mips/mips.c (mips_address_insns): Add a boolean argument
8534 to say whether multiword moves _might_ be split.
8535 (mips_fetch_insns): Delete in favor of...
8536 (mips_load_store_insns): ...this new function.
8537 (mips_rtx_costs): Update the call to mips_address_insns.
8538 (mips_address_cost): Likewise.
8539 * config/mips/mips.md (length): Use mips_load_store_insns instead
8540 of mips_fetch_insns.
8541 * config/mips/constraints.md (R): Use mips_address_insns rather
8542 than mips_fetch_insns. Assume that the move never needs to be split.
8543
cc4ebe7d
SL
85442007-08-09 Sandra Loosemore <sandra@codesourcery.com>
8545
6ef5231b 8546 * config/mips/mips.opt (mhard-float, msoft-float): Make these
cc4ebe7d
SL
8547 control TARGET_HARD_FLOAT_ABI and TARGET_SOFT_FLOAT_ABI, rather
8548 than TARGET_HARD_FLOAT and TARGET_SOFT_FLOAT.
8549 * config/mips/mips.h (mips16_hard_float): Delete.
6ef5231b 8550 (TARGET_HARD_FLOAT_ABI, TARGET_SOFT_FLOAT_ABI): Delete these
cc4ebe7d
SL
8551 definitions, and replace with....
8552 (TARGET_HARD_FLOAT, TARGET_SOFT_FLOAT): Define.
8553 * config/mips/mips.c (mips16_hard_float): Delete. Replace
8554 all references with (TARGET_MIPS16 && TARGET_HARD_FLOAT_ABI).
8555 (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Update comments.
6ef5231b 8556 (override_options): Replace MASK_SOFT_FLOAT references with
cc4ebe7d
SL
8557 MASK_SOFT_FLOAT_ABI. Delete twiddling with MASK_SOFT_FLOAT
8558 and mips16_hard_float when TARGET_MIPS16.
8559
eafaa675
AP
85602007-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
8561
8562 PR c/32796
8563 * c-typeck.c (build_binary_op): Check for non pointer types before
8564 calling int_fits_type_p.
8565
e057e0cd
AP
85662007-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
8567
8568 PR middle-end/32813
8569 * fold-const.c (omit_one_operand): Return only the ommitted expression
8570 if the result is an empty statement.
8571 (pedantic_omit_one_operand): Likewise.
8572
d7705934
DB
85732007-08-09 Daniel Berlin <dberlin@dberlin.org>
8574
8575 * c-typeck.c (readonly_error): Improve error for assignment.
8576
8577 * c-pretty-print.c (pp_c_additive_expression): Handle pointer-plus
8578 expression.
8579 (pp_c_expression): Ditto.
8580
d6bc05d4
SB
85812007-08-09 Simon Baldwin <simonb@google.com>
8582
8583 * simplify-rtx.c (simplify_binary_operation_1): Removed erroneous
8584 break that was preventing simplify_associative_operation() for xor.
8585
14670a74
SL
85862007-08-09 Sandra Loosemore <sandra@codesourcery.com>
8587 Nigel Stephens <nigel@mips.com>
8588
8589 * doc/tm.texi (CLZ_DEFINED_VALUE_AT_ZERO, CTZ_DEFINED_VALUE_AT_ZERO):
8590 Document change in interpretation of value from boolean to
8591 tri-state integer.
8592 * optabs.c (expand_ffs, expand_ctz): New functions to compute
8593 ffs and ctz using clz.
6ef5231b 8594 (expand_unop): Call them.
14670a74
SL
8595 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Fix its
8596 result value.
8597 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
8598 * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Likewise, to
8599 enable the new ffs expansion on this target.
8600
166cdb08
JH
86012007-08-09 Jan Hubicka <jh@suse.cz>
8602
8603 * optabs.c (expand_widen_pattern_expr): Use optabs accestors.
8604 (expand_ternary_op): Likewise.
8605 (expand_vec_shift_expr): Likewise.
8606 (expand_binop_directly): Likewise.
8607 (expand_binop): Likewise.
8608 (sign_expand_binop): Likewise.
8609 (expand_twoval_unop): Likewise.
8610 (expand_twoval_binop): Likewise.
8611 (expand_twoval_binop_libfunc): Likewise.
8612 (widen_clz): Likewise.
8613 (widen_bswap): Likewise.
8614 (expand_parity): Likewise.
8615 (expand_unop): Likewise.
8616 (expand_abs_nojump): Likewise.
8617 (expand_copysign): Likewise.
8618 (emit_no_conflict_block): Likewise.
8619 (emit_libcall_block): Likewise.
8620 (can_compare_p): Likewise.
8621 (prepare_cmp_insn): Likewise.
8622 (emit_cmp_and_jump_insn_1): Likewise.
8623 (prepare_float_lib_cmp): Likewise.
8624 (emit_conditional_add): Likewise.
8625 (gen_add2_insn): Likewise.
8626 (have_add2_insn): Likewise.
8627 (gen_sub2_insn): Likewise.
8628 (have_sub2_insn): Likewise.
8629 (can_extend_p): Likewise.
8630 (can_fix_p): Likewise.
8631 (can_float_p): Likewise.
8632 (expand_float): Likewise.
8633 (expand_fix): Likewise.
8634 (expand_sfix_optab): Likewise.
8635 (new_optab): Likewise.
8636 (new_convert_optab): Likewise.
8637 (init_libfuncs): Likewise.
8638 (init_interclass_conv_libfuncs): Likewise.
8639 (init_intraclass_conv_libfuncs): Likewise.
8640 (set_conv_libfunc): Likewise.
8641 (init_optabs): Likewise.
8642 (debug_optab_libfuncs): Likewise.
8643 (gen_cond_trap): Likewise.
8644 * optabs.h (optab_handler, convert_optab_hanlder): New.
8645 * genopinit.c: Update optabs generation table.
8646 * reload.c (find_reloads_address_1): Use optabs accestors.
8647 * builtins.c (expand_builtin_mathfn): Likewise.
8648 (expand_builtin_mathfn_2): Likewise.
8649 (expand_builtin_mathfn_3): Likewise.
8650 (expand_builtin_interclass_mathfn): Likewise.
8651 (expand_builtin_sincos): Likewise.
8652 (expand_builtin_cexpi): Likewise.
8653 (expand_builtin_powi): Likewise.
8654 (expand_builtin_strlen): Likewise.
8655 * dojump.c (do_jump): Likewise.
8656 * expr.c (convert_move): Likewise.
8657 (move_by_pieces): Likewise.
8658 (move_by_pieces_ninsns): Likewise.
8659 (can_store_by_pieces): Likewise.
8660 (store_by_pieces_1): Likewise.
8661 (emit_move_via_integer): Likewise.
8662 (emit_move_complex): Likewise.
8663 (emit_move_ccmode): Likewise.
8664 (emit_move_insn_1): Likewise.
8665 (emit_single_push_insn): Likewise.
8666 (store_constructor): Likewise.
8667 (expand_expr_real_1): Likewise.
8668 (do_store_flag): Likewise.
8669 * ada/misc.c (gnat_compute_largest_alignment): Likewise.
8670 (enumerate_modes): Likewise.
8671 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
8672 (supportable_widening_operation): Likewise.
8673 (supportable_narrowing_operation): Likewise.
8674 * expmed.c (store_bit_field_1): Likewise.
8675 (extract_bit_field_1): Likewise.
8676 (expand_mult_highpart_optab): Likewise.
8677 (expand_smod_pow2): Likewise.
8678 (expand_divmod): Likewise.
8679 (emit_store_flag): Likewise.
8680 * tree-vect-patterns.c
8681 (vect_pattern_recog_1): Likewise.
8682 * tree-ssa-loop-prefetch.c
8683 (nontemporal_store_p): Likewise.
8684 * tree-vect-transform.c (vect_model_reduction_cost): Likewise.
8685 (vect_create_epilog_for_reduction): Likewise.
8686 (vectorizable_reduction): Likewise.
8687 (vectorizable_operation): Likewise.
8688 (vect_strided_store_supported): Likewise.
8689 (vectorizable_store): Likewise.
8690 (vect_strided_load_supported): Likewise.
8691 (vectorizable_load): Likewise.
8692 * combine.c (simplify_comparison): Likewise.
8693 * tree-vect-generic.c
8694 (type_for_widest_vector_mode): Likewise.
8695 (expand_vector_operations_1): Likewise.
8696 * config/spu/spu.c (spu_expand_mov): Likewise.
8697 (spu_emit_vector_compare): Likewise.
8698 * config/rs6000/rs6000.c
8699 (rs6000_emit_vector_compare): Likewise.
8700 * stmt.c (add_case_node): Likewise.
8701 * reload1.c (gen_reload):
8702
3eb0da77
MM
87032007-08-09 Michael Matz <matz@suse.de>
8704
8705 * tree.h (fixed_zerop): Declare as taking a const_tree.
8706 * tree.c (fixed_zerop): Take a const_tree.
8707
cd7ae74d
IR
87082007-08-09 Ira Rosen <irar@il.ibm.com>
8709
8710 * tree-vect-transform.c (vectorizable_store): Remove call to
8711 copy_virtual_operands() and call mark_symbols_for_renaming() for
8712 the created vector store.
8713 (vect_setup_realignment): Don't call copy_virtual_operands() and
8714 update_vuses_to_preheader().
8715 (vectorizable_load): Don't call copy_virtual_operands().
8716 (update_vuses_to_preheader): Remove.
8717
325217ed
CF
87182007-08-08 Chao-ying Fu <fu@mips.com>
8719
8720 * tree.def (FIXED_POINT_TYPE): New type.
8721 (FIXED_CST): New constant.
8722 (FIXED_CONVERT_EXPR): New expr.
8723 * doc/c-tree.texi (Types): Document FIXED_POINT_TYPE.
8724 (Expressions): Document FIXED_CST and FIXED_CONVERT_EXPR.
8725 * tree.h (struct tree_base): Add saturating_flag.
8726 Remove one bit of spare for saturating_flag.
8727 (NUMERICAL_TYPE_CHECK): Support FIXED_POINT_TYPE.
8728 (NON_SAT_FIXED_POINT_TYPE_P, SAT_FIXED_POINT_TYPE_P,
8729 FIXED_POINT_TYPE_P): Define.
8730 (TYPE_SATURATING): Define.
8731 (TREE_FIXED_CST_PTR, TREE_FIXED_CST): Define.
8732 (struct tree_fixed_cst): New.
8733 (TYPE_IBIT, TYPE_FBIT): Define.
8734 (tree_node): Add fixed_cst.
8735 (enum tree_index): Add new enumeration values of
8736 TI_SAT_SFRACT_TYPE, TI_SAT_FRACT_TYPE, TI_SAT_LFRACT_TYPE,
8737 TI_SAT_LLFRACT_TYPE, TI_SAT_USFRACT_TYPE, TI_SAT_UFRACT_TYPE,
8738 TI_SAT_ULFRACT_TYPE, TI_SAT_ULLFRACT_TYPE, TI_SFRACT_TYPE,
8739 TI_FRACT_TYPE, TI_LFRACT_TYPE, TI_LLFRACT_TYPE, TI_USFRACT_TYPE,
8740 TI_UFRACT_TYPE, TI_ULFRACT_TYPE, TI_ULLFRACT_TYPE,
8741 TI_SAT_SACCUM_TYPE, TI_SAT_ACCUM_TYPE, TI_SAT_LACCUM_TYPE,
8742 TI_SAT_LLACCUM_TYPE, TI_SAT_USACCUM_TYPE, TI_SAT_UACCUM_TYPE,
8743 TI_SAT_ULACCUM_TYPE, TI_SAT_ULLACCUM_TYPE, TI_SACCUM_TYPE,
8744 TI_ACCUM_TYPE, TI_LACCUM_TYPE, TI_LLACCUM_TYPE, TI_USACCUM_TYPE,
8745 TI_UACCUM_TYPE, TI_ULACCUM_TYPE, TI_ULLACCUM_TYPE,
8746 TI_QQ_TYPE, TI_HQ_TYPE,_TYPE, TI_SQ_TYPE, TI_DQ_TYPE, TI_TQ_TYPE,
8747 TI_UQQ_TYPE, TI_UHQ_TYPE, TI_USQ_TYPE, TI_UDQ_TYPE, TI_UTQ_TYPE,
8748 TI_SAT_QQ_TYPE, TI_SAT_HQ_TYPE, TI_SAT_SQ_TYPE, TI_SAT_DQ_TYPE,
8749 TI_SAT_TQ_TYPE, TI_SAT_UQQ_TYPE, TI_SAT_UHQ_TYPE, TI_SAT_USQ_TYPE,
8750 TI_SAT_UDQ_TYPE, TI_SAT_UTQ_TYPE, TI_HA_TYPE, TI_SA_TYPE, TI_DA_TYPE,
8751 TI_TA_TYPE, TI_UHA_TYPE, TI_USA_TYPE, TI_UDA_TYPE, TI_UTA_TYPE,
8752 TI_SAT_HA_TYPE, TI_SAT_SA_TYPE, TI_SAT_DA_TYPE, TI_SAT_TA_TYPE,
8753 TI_SAT_UHA_TYPE, TI_SAT_USA_TYPE, TI_SAT_UDA_TYPE, TI_SAT_UTA_TYPE.
8754 (sat_short_fract_type_node, sat_fract_type_node,
8755 sat_long_fract_type_node, sat_long_long_fract_type_node,
8756 sat_unsigned_short_fract_type_node, sat_unsigned_fract_type_node,
8757 sat_unsigned_long_fract_type_node,
8758 sat_unsigned_long_long_fract_type_node, short_fract_type_node,
8759 fract_type_node, long_fract_type_node, long_long_fract_type_node,
8760 unsigned_short_fract_type_node, unsigned_fract_type_node,
8761 unsigned_long_fract_type_node, unsigned_long_long_fract_type_node,
8762 sat_short_accum_type_node, sat_accum_type_node,
8763 sat_long_accum_type_node, sat_long_long_accum_type_node,
8764 sat_unsigned_short_accum_type_node, sat_unsigned_accum_type_node,
8765 sat_unsigned_long_accum_type_node,
8766 sat_unsigned_long_long_accum_type_node, short_accum_type_node,
8767 accum_type_node, long_accum_type_node, long_long_accum_type_node,
8768 unsigned_short_accum_type_node, unsigned_accum_type_node,
8769 unsigned_long_accum_type_node, unsigned_long_long_accum_type_node,
8770 qq_type_node, hq_type_node, sq_type_node, dq_type_node, tq_type_node,
8771 uqq_type_node, uhq_type_node, usq_type_node, udq_type_node,
8772 utq_type_node, sat_qq_type_node, sat_hq_type_node, sat_sq_type_node,
8773 sat_dq_type_node, sat_tq_type_node, sat_uqq_type_node,
8774 sat_uhq_type_node, sat_usq_type_node, sat_udq_type_node,
8775 sat_utq_type_node, ha_type_node, sa_type_node, da_type_node,
8776 ta_type_node, uha_type_node, usa_type_node, uda_type_node,
8777 uta_type_node, sat_ha_type_node, sat_sa_type_node, sat_da_type_node,
8778 sat_ta_type_node, sat_uha_type_node, sat_usa_type_node,
8779 sat_uda_type_node, sat_uta_type_node): New macro.
8780 (make_fract_type, make_accum_type): Declare.
8781 (make_signed_fract_type, make_unsigned_fract_type,
8782 make_sat_signed_fract_type, make_sat_unsigned_fract_type,
8783 make_signed_accum_type, make_unsigned_accum_type,
8784 make_sat_signed_accum_type, make_sat_unsigned_accum_type,
8785 make_or_reuse_signed_fract_type, make_or_reuse_unsigned_fract_type,
8786 make_or_reuse_sat_signed_fract_type,
8787 make_or_reuse_sat_unsigned_fract_type, make_or_reuse_signed_accum_type,
8788 make_or_reuse_unsigned_accum_type, make_or_reuse_sat_signed_accum_type,
8789 make_or_reuse_sat_unsigned_accum_type): New macro.
8790 (fixed_zerop): Declare.
8791 * defaults.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE,
8792 LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
8793 SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
8794 LONG_LONG_ACCUM_TYPE_SIZE): Define.
8795 * treestruct.def: Add TS_FIXED_CST.
8796 * Makefile.in (c-pretty-print.o): Add dependence on fixed-value.h.
8797 (tree.o): Likewise.
8798 (tree-dump.o): Likewise.
8799 (print-tree.o): Likewise.
8800 (tree-pretty-print.o): Likewise.
8801 (fold-const.o): Likewise.
8802 * tree-complex.c (some_nonzerop): Handle FIXED_CST.
8803 * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle FIXED_CST.
8804 (is_gimple_min_invariant): Handle FIXED_CST.
8805 * stor-layout.c (int_mode_for_mode): Handle MODE_FRACT, MODE_UFRACT,
8806 MODE_ACCUM, MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
8807 MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
8808 (layout_type): Handle FIXED_POINT_TYPE.
8809 (make_fract_type, make_accum_type): New functions.
8810 * tree-browser.c (browse_tree): Handle FIXED_POINT_TYPE.
8811 * tree-dump.c (fixed-value.h): New include.
8812 (dump_fixed): New function.
8813 (dequeue_and_dump): Handle FIXED_POINT_TYPE and FIXED_CST.
8814 * tree-inline.c (remap_type_1): Handle FIXED_POINT_TYPE.
8815 (estimate_num_insns_1): Handle FIXED_CST and FIXED_CONVERT_EXPR.
8816 * tree-pretty-print.c (fixed-value.h): New include.
8817 (dump_generic_node): Handle FIXED_POINT_TYPE, FIXED_CST, and
8818 FIXED_CONVERT_EXPR.
8819 * tree-scalar-evolution.c (get_scalar_evolution): Handle FIXED_CST.
8820 * tree-ssa-loop-im.c (for_each_index): Handle FIXED_CST.
8821 * tree-ssa-pre.c (poolify_tree): Handle FIXED_CST.
8822 * tree-ssa-reassoc.c (break_up_subtract_bb): We can do reassociation
8823 for non-saturating fixed-point types.
8824 (reassociate_bb): Likewise.
8825 * emit-rtl.c (fixed-value.h): New include.
8826 (fconst0, fconst1): New array.
8827 (init_emit_once): Initialize fconst0 and fconst1 for fixed-point modes.
8828 * tree-vect-generic.c expand_vector_operation): Support
8829 MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, and
8830 MODE_VECTOR_UACCUM.
8831 (type_for_widest_vector_mode): Add one parameter for the
8832 saturating flag.
8833 Check scalar FRACT, UFRACT, ACCUM, and UACCUM mode to select their
8834 vector mode.
8835 Pass the satp parameter to type_for_mode for fixed-point types.
8836 (expand_vector_operations_1): Pass the saturating flag to
8837 type_for_widest_vector_mode.
8838 Support MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
8839 and MODE_VECTOR_UACCUM.
8840 * tree-vect-transform.c (vect_is_simple_cond): Support FIXED_CST.
8841 (vectorizable_condition): Likewise.
8842 * tree.c (fixed-value.h): New include.
8843 (tree_code_size): Support FIXED_CST.
8844 (build_fixed): New function.
8845 (build_one_cst): Support FIXED_POINT_TYPE for accum types.
8846 (fixed_zerop): New function.
8847 (tree_node_structure): Support FIXED_CST.
8848 (type_contains_placeholder_1): Support FIXED_POINT_TYPE.
8849 (build_type_attribute_qual_variant): Handle FIXED_POINT_TYPE.
8850 (type_hash_eq): Handle FIXED_POINT_TYPE.
8851 (simple_cst_equal): Support FIXED_CST.
8852 (iterative_hash_expr): Handle FIXED_CST.
8853 (get_unwidened): Make sure type is not FIXED_POINT_TYPE.
8854 (get_narrower): Likewise.
8855 (variably_modified_type_p): Handle FIXED_POINT_TYPE.
8856 (make_or_reuse_fract_type, make_or_reuse_accum_type): New functions.
8857 (build_common_tree_nodes_2): Use MAKE_FIXED_TYPE_NODE_FAMILY and
8858 MAKE_FIXED_MODE_NODE macros to initialize fixed-point type
8859 nodes.
8860 (build_vector_type_for_mode): Handle MODE_VECTOR_FRACT,
8861 MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
8862 (initializer_zerop): Support FIXED_CST.
8863 (walk_tree): Handle FIXED_CST and FIXED_POINT_TYPE.
8864 * dwarf2out.c (base_type_die): Use DW_ATE_signed_fixed or
8865 DW_ATE_unsigned_fixed to describe FIXED_POINT_TYPE.
8866 (is_base_type): Handle FIXED_POINT_TYPE.
8867 (add_type_attribute): Handle FIXED_POINT_TYPE.
8868 (gen_type_die_with_usage): Handle FIXED_POINT_TYPE.
8869 * print-tree.c (fixed-value.h): New include.
8870 (print_node_brief): Support FIXED_CST.
8871 (print_node): Support FIXED_POINT_TYPE and FIXED_CST.
8872 * c-pretty-print.c (fixed-value.h): New include.
8873 (pp_c_type_specifier): Handle FIXED_POINT_TYPE. Need to pass
8874 TYPE_SATURATING to c_common_type_for_mode for fixed-point modes.
8875 (pp_c_direct_abstract_declarator): Handle FIXED_POINT_TYPE.
8876 Support fixed-point types for inner items in VECTOR_TYPE.
8877 (pp_c_direct_declarator): Likewise.
8878 (pp_c_declarator): Likewise.
8879 (pp_c_fixed_constant): New function.
8880 (pp_c_constant): Handle FIXED_CST.
8881 (pp_c_primary_expression): Likewise.
8882 (pp_c_expression): Likewise.
8883 * fold-const.c (fixed-value.h): New include.
8884 (negate_expr_p): Return true for FIXED_CST.
8885 (fold_negate_expr): Support FIXED_CST.
8886 (split_tree): Support FIXED_CST.
8887 (const_binop): Support FIXED_CST.
8888 (fold_convert_const_int_from_fixed): New function to convert from
8889 fixed to int.
8890 (fold_convert_const_real_from_fixed): New function to convert from
8891 fixed to real.
8892 (fold_convert_const_fixed_from_fixed): New function to convert from
8893 fixed to another fixed.
8894 (fold_convert_const_fixed_from_int): New function to convert from
8895 int to fixed.
8896 (fold_convert_const_fixed_from_real): New function to convert from
8897 real to fixed.
8898 (fold_convert_const): Support conversions from fixed to int, from
8899 fixed to real, from fixed to fixed, from int to fixed, and from real
8900 to fixed.
8901 (fold_convert): Support FIXED_CST and FIXED_POINT_TYPE.
8902 (operand_equal_p): Support FIXED_CST.
8903 (make_range): For fixed-point modes, we need to pass the
8904 saturating flag as the 2nd parameter.
8905 (tree_swap_operands_p): Handle FIXED_CST.
8906 (fold_plusminus_mult_expr): For fract modes, we cannot generate
8907 constant 1.
8908 (fold_unary): Support FIXED_CONVERT_EXPR.
8909 (fold_binary): Handle FIXED_CST.
8910 Make sure the type is not saturating, before associating operations.
8911 Ex: A + B + C, A * B * C, (A1 * C1) +/- (A2 * C2).
8912 (tree_expr_nonnegative_warnv_p): Handle FIXED_CST.
8913 (fold_negate_const): Support FIXED_CST.
8914 (fold_relational_const): Support FIXED_CST.
8915 * gimplify.c (omp_firstprivatize_type_sizes): Handle FIXED_POINT_TYPE.
8916 (gimplify_expr): Handle FIXED_CST.
8917 (gimplify_type_sizes): Handle FIXED_POINT_TYPE.
8918 * ipa-prop.c (ipa_callsite_compute_param): Support FIXED_CST.
8919 * ipa-type-escape.c (type_to_consider): Handle FIXED_POINT_TYPE.
8920 * doc/tm.texi (Type Layout): Document SHORT_FRACT_TYPE_SIZE,
8921 FRACT_TYPE_SIZE, LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
8922 SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
8923 LONG_LONG_ACCUM_TYPE_SIZE.
8924 * dbxout.c (dbxout_type): Handle FIXED_POINT_TYPE.
8925 * c-aux-info.c (gen_type): Handle FIXED_POINT_TYPE.
8926 * tree-sra.c (is_sra_scalar_type): Support FIXED_POINT_TYPE.
8927 * expmed.c (extract_bit_field): Support MODE_FRACT, MODE_UFRACT,
8928 MODE_ACCUM, and MODE_UACCUM.
8929 * tree-vectorizer.c (vect_is_simple_reduction): Check for saturating
8930 fixed-point types to disable reduction.
8931 * explow.c (promote_mode): Support FIXED_POINT_TYPE.
8932
0eab6840
DE
89332007-08-08 David Edelsohn <edelsohn@gnu.org>
8934
8935 * config/rs6000/x-rs6000: New file.
8936 * config/rs6000/darwin.h (CC1_SPEC): Add cc1_cpu.
8937 * config/rs6000/rs6000.h (EXTRA_SPECS): Add cc1_cpu.
8938 (EXTRA_SPEC_FUNCTIONS): Define.
8939 (HAVE_LOCAL_CPU_DETECT): Define.
8940 (CC1_CPU_SPEC): Define.
8941 * config/rs6000/driver-rs6000.c: New file.
8942 * config/rs6000/aix.h (CC1_SPEC): Define.
8943 * config/rs6000/sysv4.h (CC1_SPEC): Add cc1_cpu.
8944 * config.host: Add x-rs6000 to host_xmake_file if host and target
8945 are rs6000 or powerpc.
8946
be1767b7
PB
89472007-08-08 Paolo Bonzini <paolo.bonzini@lu.unisi.ch>
8948
8949 * config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Use +=.
8950
c93c5160
RS
89512007-08-08 Richard Sandiford <richard@codesourcery.com>
8952 Sandra Loosemore <sandra@codesourcery.com>
8953 Chao-ying Fu <fu@mips.com>
8954 Nigel Stephens <nigel@mips.com>
8955 David Ung <davidu@mips.com>
8956
8957 * doc/invoke.texi (-mcode-readable): Document.
8958 * config/mips/mips.opt (mcode-readable): New option.
8959 * config/mips/mips-protos.h (SYMBOL_32_HIGH): New symbol type.
8960 * config/mips/mips.h (mips_code_readable_setting): New enum.
8961 (mips_code_readable): Declare.
8962 (TARGET_MIPS16_TEXT_LOADS, TARGET_MIPS16_PCREL_LOADS): New macros.
8963 (TARGET_MIPS16_SHORT_JUMP_TABLES): New macro.
8964 (JUMP_TABLES_IN_TEXT_SECTION): Use it.
8965 (CASE_VECTOR_MODE, CASE_VECTOR_PC_RELATIVE): Likewise. Remove
8966 boiler-plate comments.
8967 (ASM_OUTPUT_ADDR_DIFF_ELT): Use TARGET_MIPS16_SHORT_JUMP_TABLES.
8968 * config/mips/mips.c (mips_code_readable): New variable.
8969 (mips_classify_symbol): Only return SYMBOL_PC_RELATIVE for
8970 MIPS16 labels if TARGET_MIPS16_SHORT_JUMP_TABLES. Use both the
8971 context and -mcode-readable setting to restrict the use of
8972 SYMBOL_PC_RELATIVE for MIPS16 constant pool references.
8973 Only return TARGET_FORCE_TO_MEM if PC-relative loads are allowed.
8974 (mips_symbolic_constant_p): Handle SYMBOL_32_HIGH.
8975 (mips_blocks_for_constant_p): Only return false for
8976 TARGET_MIPS16_PCREL_LOADS.
8977 (mips_symbol_insns_1): Treat HIGHs as 2 extended instructions
8978 for MIPS16. Handle SYMBOL_32_HIGH.
8979 (mips_const_insns): Allow HIGHs for MIPS16 too.
8980 (mips_unspec_address_offset): New function, split out from...
8981 (mips_unspec_address): ...here.
8982 (mips_output_move): Handle MIPS16 HIGH moves. Use "li" to load
8983 16-bit symbolic constants. Assert approropiate conditions for
8984 using the "la" and "dla" macros.
8985 (mips_handle_option): Handle -mcode-readable=.
8986 (override_options): Use %hi/%lo relocations for TARGET_MIPS16 too.
8987 Set up mips_lo_relocs[SYMBOL_32_HIGH].
8988 (mips_strip_unspec_address): New function, split out from...
8989 (print_operand_reloc): ...here.
8990 (print_operand): Pass constants through mips_strip_unspec_address.
8991 (print_operand_address): Likewise.
8992 (mips_output_mi_thunk): Remove guard of mips16_lay_out_constants.
8993 (mips_select_rtx_section): Remove MIPS16 handling.
8994 (mips16_gp_pseudo_reg): Check currently_expanding_to_rtl.
8995 (mips16_rewrite_pool_refs): Wrap the labels in an address UNSPEC.
8996 (mips16_lay_out_constants): Do nothing unless
8997 TARGET_MIPS16_PCREL_LOADS.
8998 (mips_avoid_hazards): Remove guard of mips16_lay_out_constants.
8999 * config/mips/mips.md: Split HIGHs for MIPS16.
9000 (tablejump): Use TARGET_MIPS16_SHORT_JUMP_TABLES.
9001
51e7252a
RS
90022007-08-08 Richard Sandiford <richard@codesourcery.com>
9003
9004 * config/mips/mips-protos.h (mips_emit_move): Declare.
9005 * config/mips/mips.c (mips_emit_move): New function.
9006 (mips_force_temporary): Use mips_emit_move instead of emit_move_insn.
9007 (mips_legitimize_const_move): Likewise.
9008 (mips_legitimize_move): Likewise.
9009 (mips_split_64bit_move): Likewise.
9010 (mips_restore_gp): Likewise.
9011 (mips_load_call_address): Likewise.
9012 (mips_emit_fcc_reload): Likewise.
9013 (mips_set_return_address): Likewise.
9014 (mips_block_move_straight): Likewise.
9015 (mips_block_move_loop): Likewise.
9016 (mips_setup_incoming_varargs): Likewise.
9017 (mips_save_reg): Likewise.
9018 (mips_expand_prologue): Likewise.
9019 (mips_restore_reg): Likewise.
9020 (mips_expand_epilogue): Likewise.
9021 (mips_output_mi_thunk): Likewise.
9022 (build_mips16_call_stub): Likewise.
9023 (mips_builtin_branch_and_move): Likewise.
9024 * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Likewise.
9025 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
9026 (fixuns_truncdfdi2): Likewise.
9027 (fixuns_truncsfsi2): Likewise.
9028 (fixuns_truncsfdi2): Likewise.
9029 (loadgp_absolute): Likewise.
9030 (builtin_setjmp_setup): Likewise.
9031 (builtin_longjmp): Likewise.
9032 (untyped_call): Likewise.
9033
390ea488
RS
90342007-08-08 Richard Sandiford <richard@codesourcery.com>
9035
9036 * config/mips/mips-protos.h (mips_split_symbol): Add a mode and
9037 an "rtx *" argument. Return a bool.
9038 * config/mips/mips.c (mips_split_symbol): Accept arbitrary source
9039 values and return true if they can be split. Take the same kind of
9040 mode argument as mips_symbol_insns. Add a "lo_sum_out" parameter
9041 and store the lo_sum there if nonnull. Use the symbol type to
9042 determine whether a $gp or HIGH is needed.
9043 (mips_legitimize_address): Update call to mips_split_symbol and
9044 simplify accordingly.
9045 (mips_legitimize_const_move): Likewise.
9046 * config/mips/mips.md: In the combine define_split,
9047 check mips_split_symbol instead of splittable_symbolic_operand.
9048 Update use of mips_split_symbol in the generator code.
9049 * config/mips/predicates.md (splittable_symbolic_operand): Delete.
9050
fbb96ac5
RS
90512007-08-08 Richard Sandiford <richard@codesourcery.com>
9052
9053 * config/mips/mips.c (mips_symbolic_address_p): Delete.
9054 (mips_symbol_insns_1): New function, split out from...
9055 (mips_symbol_insns): ...here. Take a mode argument. Treat loads
9056 and stores separately from load addresses.
9057 (mips_classify_address): Replace uses of mips_symbolic_address_p
9058 with uses of mips_symbol_insns.
9059 (mips_address_insns): Update calls to mips_symbol_insns.
9060 (mips_const_insns): Likewise.
9061 (mips_legitimize_address): Likewise.
9062
e06e2776
RS
90632007-08-08 Richard Sandiford <richard@codesourcery.com>
9064
9065 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): New symbol type.
9066 * config/mips/mips.c (mips_classify_symbol): Skip TARGET_ABICALLS
9067 block for locally-binding symbols if TARGET_ABSOLUTE_ABICALLS.
9068 Return SYMBOL_FORCE_TO_MEM instead of SYMBOL_ABSOLUTE for
9069 non-call contexts if TARGET_MIPS16.
9070 (mips_symbolic_constant_p): Handle SYMBOL_FORCE_TO_MEM.
9071 (mips_symbolic_address_p): Likewise. Remove special TARGET_MIPS16
9072 code for SYMBOL_ABSOLUTE.
9073 (mips_symbol_insns): Likewise.
9074
280fcbfa
RS
90752007-08-08 Richard Sandiford <richard@codesourcery.com>
9076
9077 * config/mips/mips-protos.h (mips_symbol_context): New enumeration.
9078 * config/mips/mips.c (mips_classify_symbol): Take a context argument.
9079 (mips_symbolic_constant_p): Likewise. Update the call to
9080 mips_classify_symbol.
9081 (mips_classify_address): Update the calls to mips_symbolic_constant_p.
9082 (mips_const_insns): Likewise. Update the call to mips_classify_symbol.
9083 (mips_legitimize_address): Update the call to mips_symbolic_constant_p.
9084 (print_operand_reloc): Add a context argument. Update the call to
9085 mips_symbolic_constant_p.
9086 (print_operand): Update the calls to print_operand_reloc.
9087 (print_operand_address): Use print_operand_reloc rather than
9088 print_operand.
9089 (mips_rewrite_small_data_p): Add a context argument. Update the call
9090 to mips_symbolic_constant_p.
9091 (mips_small_data_pattern_1): Make DATA the containing mem.
9092 Update the call to mips_rewrite_small_data_p.
9093 (mips_rewrite_small_data_1): Likewise.
9094 (mips_use_anchors_for_symbol_p): Update the call to
9095 mips_symbolic_constant_p.
9096 * config/mips/predicates.md (const_call_insn_operand): Likewise.
9097 (splittable_symbolic_operand): Likewise.
9098 (move_operand): Likewise.
9099 (absolute_symbolic_operand): Likewise.
9100 (got_disp_operand): Likewise.
9101 (got_page_ofst_operand): Likewise.
9102
67da85da
RS
91032007-08-08 Richard Sandiford <richard@codesourcery.com>
9104
9105 * config/mips/mips-protos.h (SYMBOL_GENERAL): Rename to...
9106 (SYMBOL_ABSOLUTE): ...this.
9107 (SYMBOL_SMALL_DATA): Rename to...
9108 (SYMBOL_GP_RELATIVE): ...this.
9109 (SYMBOL_CONSTANT_POOL): Rename to...
9110 (SYMBOL_PC_RELATIVE): ...this.
9111 * config/mips/mips.c (mips_classify_symbol, mips_symbolic_constant_p)
9112 (mips_symbolic_address_p, mips_symbol_insns, override_options)
9113 (mips_rewrite_small_data_p, mips_use_anchors_for_symbol_p): Update
9114 after above changes.
9115 * config/mips/predicates.md (const_call_insn_operand): Likewise.
9116 (general_symbolic_operand): Rename to...
9117 (absolute_symbolic_operand): ...this.
9118 * config/mips/mips.md: Update after above changes.
9119
76b4f0f7 91202007-08-08 Vladimir Yanovsky <yanov@il.ibm.com>
5d39d00b 9121 Revital Eres <eres@il.ibm.com>
76b4f0f7
VY
9122
9123 * ddg.c (print_ddg): Add dump information.
9124 * modulo-sched.c (print_node_sched_params): Add parameter and
9125 verbosity.
9126 (calculate_maxii): Remove function.
9127 (undo_generate_reg_moves): Likewise.
9128 (undo_permute_partial_schedule): Likewise.
9129 (kernel_number_of_cycles): Likewise.
9130 (MAXII_FACTOR): New definition to calculate the upper bound of II.
9131 (sms_schedule): Use it. Remove profitability checks.
9132 (sms_schedule_by_order): Fix order of nodes within the cycle.
9133
5b6693af
ST
91342007-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
9135
9bf5a5e8 9136 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt0.o in profile mode, add
5b6693af
ST
9137 -profile option, add pie support.
9138 (ENDFILE_SPEC): New spec.
9bf5a5e8 9139 * config/gnu.h (LIB_SPEC): Add -profile option.
5b6693af 9140
cf1c6ebf
ST
91412007-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
9142
9bf5a5e8
UB
9143 * config/i386/gnu.h (CPP_SPEC): Add -pthread option.
9144 * config/gnu.h (LIB_SPEC): Likewise.
cf1c6ebf 9145
8d5a7d1f
ILT
91462007-08-07 Yaz Saito <saito@google.com>
9147 Ian Lance Taylor <iant@google.com>
9148
9149 * common.opt (finstrument-functions-exclude-function-list): New
9150 option.
9151 (finstrument-functions-exclude-file-list): New option.
9152 * opts.c (char_p): Define and DEF_VEC.
9153 (flag_instrument_functions_exclude_functions): New static
9154 variable.
9155 (flag_instrument_functions_exclude_files): New static variable.
9156 (add_instrument_functions_exclude_list): New static function.
9157 (flag_instrument_functions_exclude_p): New function.
9158 (common_handle_option): Handle new options.
9159 * flags.h (flag_instrument_functions_exclude_p): Declare.
9160 * gimplify.c (gimplify_function_tree): Call
9161 flag_instrument_functions_exclude_p.
9162 * doc/invoke.texi (Option Summary): Mention new options.
9163 (Code Gen Options): Document new options.
9164
d4fd3465
ILT
91652007-08-07 Ian Lance Taylor <iant@google.com>
9166
9167 PR rtl-optimization/32776
9168 * lower-subreg.c (resolve_clobber): Call resolve_reg_notes.
9169 (resolve_use): Likewise.
9170 (decompose_multiword_subregs): Remove "changed" local variable.
9171
dc60b775
CD
91722007-08-07 Carlos O'Donell <carlos@codesourcery.com>
9173
9174 * configure.ac: Define HAVE_GNU_AS if $gas_flag is yes.
9175 * configure: Regenerate.
9176 * config.in: Regenerate.
9177 * gcc.c [HAVE_GNU_AS]: Add "%{v} %{w:-W} %{I*} " to asm_options
9178 spec string.
9179
99266904
ILT
91802007-08-07 Ian Lance Taylor <iant@google.com>
9181
9182 * lower-subreg.c (resolve_clobber): If the clobber has a LIBCALL
9183 note, just delete the insn.
9184
049e9ad9
AS
91852007-08-07 Andreas Schwab <schwab@suse.de>
9186
9187 PR bootstrap/32973
9188 * gengtype-lex.l: Ignore backslash/newline pair while scanning a
9189 struct definition.
9190
e0892570
AK
91912007-08-07 Andreas Krebbel <krebbel1@de.ibm.com>
9192
9193 * lower-subreg.c (resolve_subreg_use): Remove assertion.
9194 (find_decomposable_shift_zext, resolve_shift_zext): New functions.
9195 (decompose_multiword_subregs): Use the functions above to decompose
9196 multiword shifts and zero-extends.
9197
e492980b
RIL
91982007-08-07 Rask Ingemann Lambertsen <rask@sygehus.dk>
9199
9200 * doc/sourcebuild.texi (Test Directives): Fix "compile" and
9201 "assemble" descriptions which were swapped.
9202
1e1ba002
CF
92032007-08-06 Chao-ying Fu <fu@mips.com>
9204
9205 * fixed-value.h: New file.
9206 * fixed-value.c: New file.
9207 * Makefile.in (OBJS-common): Add fixed-value.o.
9208 (fixed-value.o): New rule.
9209 (GTFILES): Add fixed-value.h.
9210 * double-int.c (double_int_scmp): We should use unsigned HOST_WIDE_INT
9211 to compare a.low and b.low.
9212 * gengtype.c (main): Handle FIXED_VALUE_TYPE type as scalar typedef.
9213
d3ef67ea
L
92142007-08-06 H.J. Lu <hongjiu.lu@intel.com>
9215 Daniel Jacobowitz <dan@codesourcery.com>
9216
9217 PR target/31868
9218 * config.gcc (x86_64-*-freebsd*): Add i386/t-crtstuff to
9219 tmake_file.
9220 (x86_64-*-netbsd*): Likewise.
9221 (x86_64-*-linux*): Likewise.
9222 (x86_64-*-kfreebsd*-gnu): Likewise.
9223 (x86_64-*-knetbsd*-gnu): Likewise.
9224 (i[34567]86-*-solaris2.1[0-9]*): Likewise.
9225
9226 * config/i386/t-linux64 (CRTSTUFF_T_CFLAGS): Removed.
9227
9228 * config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Update comments.
9229 Add -fno-asynchronous-unwind-tables.
9230
9231 * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Add $(CRTSTUFF_T_CFLAGS).
9232 * config/t-libc-ok (CRTSTUFF_T_CFLAGS_S): Likewise.
9233 * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Likewise.
9234 * config/t-netbsd (CRTSTUFF_T_CFLAGS_S): Likewise.
9235 * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Likewise.
9236
a31fa2e0
SE
92372007-08-06 Steve Ellcey <sje@cup.hp.com>
9238
9239 * config/ia64/ia64.c (ia64_c_mode_for_suffix): New.
9240 (TARGET_C_MODE_FOR_SUFFIX): New.
9241
b441fbb0
SE
92422007-08-06 Steve Ellcey <sje@cup.hp.com>
9243
9244 * config/ia64/div.md (m2subrf4_cond): Change 'g' to 'G'.
9245
db24f669
SE
92462007-08-06 Steve Ellcey <sje@cup.hp.com>
9247
9248 * config/ia64/ia64.h (MODES_TIEABLE_P): Fix typo.
9249
d5d5d289
L
92502007-08-06 H.J. Lu <hongjiu.lu@intel.com>
9251
9252 * config/i386/i386.md: Check TARGET_ macros and optimize_size
9253 before checking function returns in conditional expressions.
9254
5958f5cb
AM
92552007-08-06 Alfred Minarik <a.minarik@aon.at>
9256
9257 PR pch/13676
9258 * doc/invoke.texi: Add .hp, .hxx, .hpp, .h, .HPP, .tcc as c++ header.
9259
49271fc0
AP
92602008-08-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
9261
9262 PR middle-end/32988
9263 * tree.c (build2_stat): Instead of checking for INTEGER_TYPE, check
9264 for INTEGRAL_TYPE_P.
9265
0d475361
PB
92662008-08-05 Paolo Bonzini <bonzini@gnu.org>
9267
d5d5d289
L
9268 * configure.ac: Remove --enable-checking=df from default settings.
9269 * tree-pass.h (TODO_df_verify): New. Shift TODO_mark_first_instance.
9270 * df-core.c (df_finish_pass) [ENABLE_CHECKING]: Schedule verification
9271 if the parameter is true.
9272 (df_analyze) [!ENABLE_DF_CHECKING]: Also do verification if the
9273 DF_VERIFY_SCHEDULED flag is true.
9274 * df.h (enum df_changeable_flags): Add DF_VERIFY_SCHEDULED.
9275 (df_finish_pass): Adjust prototype.
9276 * passes.c (execute_todo): Schedule verification if TODO_df_verify is
9277 true.
9278
9279 * see.c (pass_see): Add TODO_df_verify.
9280 * loop-init.c (pass_rtl_move_loop_invariants): Add TODO_df_verify.
9281 * global.c (rest_of_handle_global_alloc): Schedule verification
9282 after the pass.
9283 * local-alloc.c (rest_of_handle_local_alloc): Schedule verification
9284 before the pass.
9285 * function.c (pass_thread_prologue_and_epilogue): Add TODO_df_verify.
9286 * gcse.c (rest_of_handle_gcse): Adjust call to df_finish_pass.
9287 * loop-iv.c (iv_analysis_done): Schedule verification after the pass.
9288
9289 * config/sh/sh.c (sh_output_mi_thunk): Remove dead code.
9290 * config/ia64/ia64.c (ia64_reorg): Adjust call to df_finish_pass.
9291 * config/bfin/bfin.c (bfin_reorg): Adjust call to df_finish_pass.
0d475361 9292
517d76fa 92932007-08-05 Vladimir Yanovsky <yanov@il.ibm.com>
d5d5d289 9294 Revital Eres <eres@il.ibm.com>
517d76fa
VY
9295
9296 * doc/invoke.texi (-fmodulo-sched-allow-regmoves): Document new
9297 flag.
9298 * ddg.c (create_ddg_dependence): Rename to...
9299 (create_ddg_dep_from_intra_loop_link): This. Do not check
9300 for interloop edges. Do not create anti dependence edge when
9301 a true dependence edge exists in the opposite direction and
9302 -fmodulo-sched-allow-regmoves is set.
9303 (build_intra_loop_deps): Call create_ddg_dep_from_intra_loop_link.
9304 (add_cross_iteration_register_deps): Create anti dependence edge
9305 when -fno-modulo-sched-allow-regmoves is set.
9306 * common.opt (-fmodulo-sched-allow-regmoves): New flag.
9307
2c3de459
RS
93082007-08-04 Richard Sandiford <richard@codesourcery.com>
9309
9310 * config/arm/arm.md (movsi): Add braces.
9311
48075623
AP
93122007-08-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
9313
9314 PR middle-end/32780
c9d259cb
UB
9315 * fold-const.c (fold_binary <case MINUS_EXPR>): Fix the type of
9316 operands for the folding of "A - (A & B)" into "~B & A"; cast them
9317 to type.
48075623 9318
f87000d0
ZD
93192007-08-03 Zdenek Dvorak <ook@ucw.cz>
9320
c9d259cb
UB
9321 * tree-ssa-threadupdate.c (thread_through_all_blocks): Use loops'
9322 state accessor functions.
f87000d0
ZD
9323 * cfgloopmanip.c (remove_path, create_preheaders,
9324 force_single_succ_latches, fix_loop_structure): Ditto.
9325 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
9326 tree_duplicate_loop_to_header_edge): Ditto.
9327 * cfgloopanal.c (mark_irreducible_loops): Ditto.
9328 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize):
9329 Ditto.
9330 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures,
9331 cleanup_tree_cfg): Ditto.
9332 * tree-cfg.c (tree_merge_blocks): Ditto.
9333 * cfgloop.c (rescan_loop_exit, record_loop_exits,
9334 release_recorded_exits, get_loop_exit_edges, verify_loop_structure,
9335 loop_preheader_edge, single_exit): Ditto.
9336 (flow_loops_find): Do not clear loops->state.
9337 * cfgloop.h (loops_state_satisfies_p, loops_state_set,
9338 loops_state_clear): New functions.
9339
a83e7fac
AP
93402007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
9341
9342 PR middle-end/32399
9343 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
9344 when adding to the base and convert ELT to sizetype instead of type.
9345
2276d5ed
AP
93462007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
9347
9348 PR middle-end/32304
9349 * ipa-reference.c (has_proper_scope_for_analysis): Return false when
9350 the decl's type has TYPE_NEEDS_CONSTRUCTING set.
9351
f9fc0449
AP
93522007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
9353
9354 PR middle-end/32935
9355 * fold-convert.c (fold_negate_expr <NOP_EXPR>): Convert back to the
9356 correct type the negate expression.
9357
48dd736c
JH
93582007-08-03 Jan Hubicka <jh@suse.cz>
9359
9360 * i386.c (setup_incoming_varargs_64): Tolerate 64bit preferred
9361 stack boundary.
9362
5f732aba
DE
93632007-08-03 David Edelsohn <edelsohn@gnu.org>
9364
9365 * config/rs6000/rs6000.c (struct processor_cost): Change
9366 l1_cache_lines to l1_cache_size. Add l2_cache_size.
9367 (*_cost): Convert l1 cache information to kilobytes. Add l2 cache
9368 information.
9369 (rios1_costs, rios2_cost): Correct cache line size.
9370 (rs6000_override_options): Set l2-cache-size parameter.
9371
737b0891
DN
93722007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
9373 Diego Novillo <dnovillo@google.com>
9374
9375 PR 31521
9376 * tree-vrp.c (simplify_div_or_mod_using_ranges): Also simplify
9377 if the range includes 0.
9378
fea4e7a1
BE
93792007-08-03 Ben Elliston <bje@au.ibm.com>
9380
9381 * config/spu/spu.md (dftsv, dftsv_celledp): Attach the appropriate
9382 mode to unspec expressions to silence a warning from the generator
9383 programs.
9384
f29d2cff
SE
93852007-08-02 Steve Ellcey <sje@cup.hp.com>
9386
9387 * config/ia64/constraints.md ("U"): Make constraint vector only.
9388
50926624
NF
93892007-08-02 Nathan Froyd <froydnj@codesourcery.com>
9390
9391 PR middle-end/25446
9392 * c-objc-common.c (c_cannot_inline_tree_fn): Check for an
9393 always_inline attribute on the function decl.
9394
d236f595
NF
93952007-08-02 Nathan Froyd <froydnj@codesourcery.com>
9396
9397 PR middle-end/25445
9398 * varasm.c (default_binds_local_p_1): Consult flag_whole_program
9399 if we are compiling with -fPIC.
9400
44f9fcef
SL
94012007-08-02 Sandra Loosemore <sandra@codesourcery.com>
9402 Nigel Stephens <nigel@mips.com>
9403
9404 * longlong.h [__mips__] (count_leading_zeros, COUNT_LEADING_ZEROS_0):
9405 Define for MIPS32 and MIPS64.
9406
e861dea3
NC
94072007-08-02 Nick Clifton <nickc@redhat.com>
9408
9409 * config/host-hpux.c: Change copyright header to refer to version
9410 3 of the GNU General Public License and to point readers at the
9411 COPYING3 file and the FSF's license web page.
9412 * config/alpha/predicates.md, config/alpha/vms-ld.c,
9413 config/alpha/linux.h, config/alpha/alpha.opt,
9414 config/alpha/linux-elf.h, config/alpha/vms.h, config/alpha/elf.h,
9415 config/alpha/vms-unwind.h, config/alpha/ev4.md,
9416 config/alpha/ev6.md, config/alpha/alpha.c, config/alpha/vms-cc.c,
9417 config/alpha/alpha.h, config/alpha/sync.md,
9418 config/alpha/openbsd.h, config/alpha/alpha.md,
9419 config/alpha/alpha-modes.def, config/alpha/ev5.md,
9420 config/alpha/alpha-protos.h, config/alpha/freebsd.h,
9421 config/alpha/osf5.h, config/alpha/netbsd.h, config/alpha/vms64.h,
9422 config/alpha/constraints.md, config/alpha/osf.h,
9423 config/alpha/xm-vms.h, config/alpha/unicosmk.h, config/linux.h,
9424 config/frv/predicates.md, config/frv/frv.h, config/frv/linux.h,
9425 config/frv/frv.md, config/frv/frv.opt, config/frv/frv-modes.def,
9426 config/frv/frv-asm.h, config/frv/frv-protos.h,
9427 config/frv/frv-abi.h, config/frv/frv.c, config/s390/tpf.h,
9428 config/s390/s390.c, config/s390/predicates.md, config/s390/s390.h,
9429 config/s390/linux.h, config/s390/tpf.md, config/s390/tpf.opt,
9430 config/s390/2064.md, config/s390/2084.md, config/s390/s390.md,
9431 config/s390/s390.opt, config/s390/s390-modes.def,
9432 config/s390/fixdfdi.h, config/s390/constraints.md,
9433 config/s390/s390-protos.h, config/s390/s390x.h, config/elfos.h,
9434 config/dbxcoff.h, config/m32c/predicates.md, config/m32c/cond.md,
9435 config/m32c/m32c.c, config/m32c/minmax.md, config/m32c/blkmov.md,
9436 config/m32c/m32c-pragma.c, config/m32c/m32c.h,
9437 config/m32c/prologue.md, config/m32c/m32c.abi,
9438 config/m32c/muldiv.md, config/m32c/bitops.md, config/m32c/mov.md,
9439 config/m32c/addsub.md, config/m32c/m32c.md, config/m32c/m32c.opt,
9440 config/m32c/t-m32c, config/m32c/m32c-modes.def,
9441 config/m32c/jump.md, config/m32c/shift.md,
9442 config/m32c/m32c-protos.h, config/libgloss.h,
9443 config/spu/spu-protos.h, config/spu/predicates.md,
9444 config/spu/spu-builtins.h, config/spu/spu.c,
9445 config/spu/spu-builtins.def, config/spu/spu-builtins.md,
9446 config/spu/spu.h, config/spu/spu-elf.h, config/spu/constraints.md,
9447 config/spu/spu.md, config/spu/spu-c.c, config/spu/spu.opt,
9448 config/spu/spu-modes.def, config/spu/t-spu-elf, config/interix.h,
9449 config/sparc/hypersparc.md, config/sparc/predicates.md,
9450 config/sparc/linux.h, config/sparc/sp64-elf.h,
9451 config/sparc/supersparc.md, config/sparc/cypress.md,
9452 config/sparc/openbsd1-64.h, config/sparc/openbsd64.h,
9453 config/sparc/niagara.md, config/sparc/sparc.md,
9454 config/sparc/long-double-switch.opt, config/sparc/ultra3.md,
9455 config/sparc/sparc.opt, config/sparc/sync.md,
9456 config/sparc/sp-elf.h, config/sparc/sparc-protos.h,
9457 config/sparc/ultra1_2.md, config/sparc/biarch64.h,
9458 config/sparc/sparc.c, config/sparc/little-endian.opt,
9459 config/sparc/sysv4-only.h, config/sparc/sparc.h,
9460 config/sparc/linux64.h, config/sparc/freebsd.h,
9461 config/sparc/sol2.h, config/sparc/rtemself.h,
9462 config/sparc/netbsd-elf.h, config/sparc/vxworks.h,
9463 config/sparc/sparc-modes.def, config/sparc/sparclet.md,
9464 config/sparc/sysv4.h, config/vx-common.h, config/netbsd-aout.h,
9465 config/flat.h, config/m32r/m32r.md, config/m32r/predicates.md,
9466 config/m32r/little.h, config/m32r/m32r.c, config/m32r/m32r.opt,
9467 config/m32r/linux.h, config/m32r/constraints.md,
9468 config/m32r/m32r.h, config/m32r/m32r-protos.h, config/vxworks.opt,
9469 config/darwin-c.c, config/darwin.opt, config/i386/i386.h,
9470 config/i386/cygming.h, config/i386/linux.h, config/i386/cygwin.h,
9471 config/i386/i386.md, config/i386/netware-crt0.c,
9472 config/i386/sco5.h, config/i386/mmx.md, config/i386/vx-common.h,
9473 config/i386/kaos-i386.h, config/i386/winnt-stubs.c,
9474 config/i386/netbsd64.h, config/i386/djgpp.h, config/i386/gas.h,
9475 config/i386/sol2.h, config/i386/constraints.md,
9476 config/i386/netware-libgcc.c, config/i386/sysv5.h,
9477 config/i386/predicates.md, config/i386/geode.md,
9478 config/i386/x86-64.h, config/i386/kfreebsd-gnu.h,
9479 config/i386/freebsd64.h, config/i386/vxworksae.h,
9480 config/i386/pentium.md, config/i386/lynx.h, config/i386/i386elf.h,
9481 config/i386/rtemself.h, config/i386/netbsd-elf.h,
9482 config/i386/ppro.md, config/i386/k6.md, config/i386/netware.c,
9483 config/i386/netware.h, config/i386/i386-modes.def,
9484 config/i386/sysv4-cpp.h, config/i386/i386-interix.h,
9485 config/i386/cygwin1.c, config/i386/djgpp.opt, config/i386/uwin.h,
9486 config/i386/unix.h, config/i386/ptx4-i.h, config/i386/xm-djgpp.h,
9487 config/i386/att.h, config/i386/winnt.c, config/i386/beos-elf.h,
9488 config/i386/sol2-10.h, config/i386/darwin64.h, config/i386/sse.md,
9489 config/i386/i386.opt, config/i386/bsd.h, config/i386/cygming.opt,
9490 config/i386/xm-mingw32.h, config/i386/linux64.h,
9491 config/i386/openbsdelf.h, config/i386/xm-cygwin.h,
9492 config/i386/sco5.opt, config/i386/darwin.h, config/i386/mingw32.h,
9493 config/i386/winnt-cxx.c, config/i386/i386-interix3.h,
9494 config/i386/nwld.c, config/i386/nwld.h, config/i386/host-cygwin.c,
9495 config/i386/cygwin2.c, config/i386/i386-protos.h,
9496 config/i386/sync.md, config/i386/openbsd.h,
9497 config/i386/host-mingw32.c, config/i386/i386-aout.h,
9498 config/i386/nto.h, config/i386/biarch64.h,
9499 config/i386/i386-coff.h, config/i386/freebsd.h,
9500 config/i386/driver-i386.c, config/i386/knetbsd-gnu.h,
9501 config/i386/host-i386-darwin.c, config/i386/vxworks.h,
9502 config/i386/crtdll.h, config/i386/i386.c, config/i386/sysv4.h,
9503 config/darwin-protos.h, config/linux.opt, config/sol2.c,
9504 config/sol2.h, config/sh/symbian.c, config/sh/sh-protos.h,
9505 config/sh/linux.h, config/sh/elf.h, config/sh/superh.h,
9506 config/sh/sh4.md, config/sh/coff.h, config/sh/newlib.h,
9507 config/sh/embed-elf.h, config/sh/symbian-pre.h, config/sh/rtems.h,
9508 config/sh/kaos-sh.h, config/sh/sh4a.md, config/sh/constraints.md,
9509 config/sh/sh64.h, config/sh/sh.opt, config/sh/symbian-post.h,
9510 config/sh/sh-c.c, config/sh/predicates.md, config/sh/sh.c,
9511 config/sh/sh.h, config/sh/shmedia.md, config/sh/sh-modes.def,
9512 config/sh/little.h, config/sh/sh1.md, config/sh/sh4-300.md,
9513 config/sh/superh64.h, config/sh/rtemself.h,
9514 config/sh/netbsd-elf.h, config/sh/sh.md, config/sh/vxworks.h,
9515 config/usegas.h, config/svr3.h, config/pdp11/pdp11-protos.h,
9516 config/pdp11/2bsd.h, config/pdp11/pdp11.md, config/pdp11/pdp11.c,
9517 config/pdp11/pdp11.opt, config/pdp11/pdp11-modes.def,
9518 config/pdp11/pdp11.h, config/avr/rtems.h, config/avr/avr-protos.h,
9519 config/avr/predicates.md, config/avr/constraints.md,
9520 config/avr/avr.md, config/avr/avr.c, config/avr/avr.opt,
9521 config/avr/avr.h, config/sol2-protos.h, config/dbxelf.h,
9522 config/lynx.opt, config/crx/crx.h, config/crx/crx-protos.h,
9523 config/crx/crx.md, config/crx/crx.c, config/crx/crx.opt,
9524 config/c4x/c4x-c.c, config/c4x/c4x.c, config/c4x/c4x.opt,
9525 config/c4x/c4x-modes.def, config/c4x/rtems.h,
9526 config/c4x/predicates.md, config/c4x/c4x.h,
9527 config/c4x/c4x-protos.h, config/c4x/c4x.md, config/kfreebsd-gnu.h,
9528 config/xtensa/predicates.md, config/xtensa/xtensa.c,
9529 config/xtensa/linux.h, config/xtensa/xtensa.h,
9530 config/xtensa/elf.h, config/xtensa/xtensa.md,
9531 config/xtensa/xtensa.opt, config/xtensa/constraints.md,
9532 config/xtensa/xtensa-protos.h, config/dbx.h,
9533 config/stormy16/predicates.md, config/stormy16/stormy16.md,
9534 config/stormy16/stormy16.c, config/stormy16/stormy16.opt,
9535 config/stormy16/stormy16.h, config/stormy16/stormy16-protos.h,
9536 config/host-solaris.c, config/fr30/fr30.h,
9537 config/fr30/predicates.md, config/fr30/fr30-protos.h,
9538 config/fr30/fr30.md, config/fr30/fr30.c, config/fr30/fr30.opt,
9539 config/vxworksae.h, config/sol2-c.c, config/lynx.h,
9540 config/m68hc11/m68hc11-protos.h, config/m68hc11/predicates.md,
9541 config/m68hc11/m68hc11.md, config/m68hc11/m68hc11.c,
9542 config/m68hc11/m68hc11.opt, config/m68hc11/m68hc11.h,
9543 config/m68hc11/m68hc12.h, config/openbsd-oldgas.h,
9544 config/host-linux.c, config/interix3.h, config/cris/cris.c,
9545 config/cris/predicates.md, config/cris/linux.h,
9546 config/cris/cris.h, config/cris/aout.h, config/cris/cris.md,
9547 config/cris/linux.opt, config/cris/cris.opt, config/cris/elf.opt,
9548 config/cris/aout.opt, config/cris/cris-protos.h,
9549 config/vxworks-dummy.h, config/netbsd.h, config/netbsd-elf.h,
9550 config/iq2000/iq2000.h, config/iq2000/predicates.md,
9551 config/iq2000/iq2000-protos.h, config/iq2000/iq2000.md,
9552 config/iq2000/iq2000.c, config/iq2000/iq2000.opt,
9553 config/host-darwin.c, config/mt/mt.md, config/mt/mt.c,
9554 config/mt/mt.opt, config/mt/t-mt, config/mt/mt.h,
9555 config/mt/mt-protos.h, config/svr4.h, config/host-darwin.h,
9556 config/chorus.h, config/mn10300/mn10300.c,
9557 config/mn10300/mn10300.opt, config/mn10300/predicates.md,
9558 config/mn10300/mn10300.h, config/mn10300/linux.h,
9559 config/mn10300/constraints.md, config/mn10300/mn10300-protos.h,
9560 config/mn10300/mn10300.md, config/ia64/predicates.md,
9561 config/ia64/itanium1.md, config/ia64/unwind-ia64.h,
9562 config/ia64/ia64-c.c, config/ia64/sync.md, config/ia64/ia64.c,
9563 config/ia64/itanium2.md, config/ia64/ia64.h, config/ia64/vect.md,
9564 config/ia64/freebsd.h, config/ia64/ia64.md,
9565 config/ia64/ia64-modes.def, config/ia64/constraints.md,
9566 config/ia64/hpux.h, config/ia64/ia64-protos.h, config/windiss.h,
9567 config/gofast.h, config/rtems.h, config/sol2-10.h,
9568 config/m68k/predicates.md, config/m68k/m68k.md,
9569 config/m68k/linux.h, config/m68k/m68k-modes.def,
9570 config/m68k/print-sysroot-suffix.sh, config/m68k/m68k-protos.h,
9571 config/m68k/coff.h, config/m68k/m68k-none.h, config/m68k/ieee.opt,
9572 config/m68k/openbsd.h, config/m68k/m68k-aout.h,
9573 config/m68k/m68k.opt, config/m68k/m68020-elf.h,
9574 config/m68k/m68kelf.h, config/m68k/m68k-devices.def,
9575 config/m68k/uclinux-oldabi.h, config/m68k/m68k.c,
9576 config/m68k/constraints.md, config/m68k/rtemself.h,
9577 config/m68k/netbsd-elf.h, config/m68k/m68k.h,
9578 config/m68k/uclinux.h, config/rs6000/power4.md,
9579 config/rs6000/host-darwin.c, config/rs6000/6xx.md,
9580 config/rs6000/linux.h, config/rs6000/eabi.h,
9581 config/rs6000/aix41.opt, config/rs6000/xcoff.h,
9582 config/rs6000/secureplt.h, config/rs6000/linuxspe.h,
9583 config/rs6000/eabialtivec.h, config/rs6000/8540.md,
9584 config/rs6000/darwin8.h, config/rs6000/kaos-ppc.h,
9585 config/rs6000/windiss.h, config/rs6000/603.md,
9586 config/rs6000/aix41.h, config/rs6000/cell.md,
9587 config/rs6000/mpc.md, config/rs6000/aix43.h, config/rs6000/beos.h,
9588 config/rs6000/gnu.h, config/rs6000/rtems.h, config/rs6000/aix.opt,
9589 config/rs6000/darwin.md, config/rs6000/darwin64.h,
9590 config/rs6000/default64.h, config/rs6000/7xx.md,
9591 config/rs6000/darwin.opt, config/rs6000/spe.md,
9592 config/rs6000/rs6000.opt, config/rs6000/rs6000-c.c,
9593 config/rs6000/rios2.md, config/rs6000/linuxaltivec.h,
9594 config/rs6000/7450.md, config/rs6000/linux64.h,
9595 config/rs6000/constraints.md, config/rs6000/440.md,
9596 config/rs6000/darwin.h, config/rs6000/host-ppc64-darwin.c,
9597 config/rs6000/rs6000.c, config/rs6000/aix52.h,
9598 config/rs6000/rs6000.h, config/rs6000/power6.md,
9599 config/rs6000/predicates.md, config/rs6000/altivec.md,
9600 config/rs6000/aix64.opt, config/rs6000/rios1.md,
9601 config/rs6000/rs6000-modes.def, config/rs6000/rs64.md,
9602 config/rs6000/eabisim.h, config/rs6000/sysv4le.h,
9603 config/rs6000/darwin7.h, config/rs6000/dfp.md,
9604 config/rs6000/linux64.opt, config/rs6000/sync.md,
9605 config/rs6000/vxworksae.h, config/rs6000/power5.md,
9606 config/rs6000/lynx.h, config/rs6000/biarch64.h,
9607 config/rs6000/rs6000.md, config/rs6000/sysv4.opt,
9608 config/rs6000/eabispe.h, config/rs6000/e500.h,
9609 config/rs6000/freebsd.h, config/rs6000/rs6000-protos.h,
9610 config/rs6000/netbsd.h, config/rs6000/e500-double.h,
9611 config/rs6000/aix.h, config/rs6000/vxworks.h,
9612 config/rs6000/40x.md, config/rs6000/aix51.h,
9613 config/rs6000/sysv4.h, config/arc/arc-protos.h, config/arc/arc.md,
9614 config/arc/arc.c, config/arc/arc.opt, config/arc/arc-modes.def,
9615 config/arc/arc.h, config/mcore/mcore-elf.h,
9616 config/mcore/mcore-protos.h, config/mcore/predicates.md,
9617 config/mcore/mcore.md, config/mcore/mcore.c,
9618 config/mcore/mcore.opt, config/mcore/mcore.h,
9619 config/mcore/mcore-pe.h, config/darwin.c, config/freebsd-nthr.h,
9620 config/score/predicates.md, config/score/score-version.h,
9621 config/score/score-protos.h, config/score/misc.md,
9622 config/score/elf.h, config/score/score.c, config/score/mac.md,
9623 config/score/score7.md, config/score/score.h,
9624 config/score/score-conv.h, config/score/score-mdaux.c,
9625 config/score/score.md, config/score/score.opt,
9626 config/score/score-modes.def, config/score/score-mdaux.h,
9627 config/score/mul-div.S, config/arm/uclinux-elf.h,
9628 config/arm/semi.h, config/arm/ecos-elf.h, config/arm/arm1020e.md,
9629 config/arm/symbian.h, config/arm/linux-elf.h,
9630 config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
9631 config/arm/elf.h, config/arm/aout.h, config/arm/arm.c,
9632 config/arm/thumb2.md, config/arm/vec-common.md, config/arm/coff.h,
9633 config/arm/strongarm-pe.h, config/arm/arm.h,
9634 config/arm/cortex-a8-neon.md, config/arm/semiaof.h,
9635 config/arm/cortex-a8.md, config/arm/uclinux-eabi.h,
9636 config/arm/arm-modes.def, config/arm/linux-eabi.h,
9637 config/arm/rtems-elf.h, config/arm/neon-schedgen.ml,
9638 config/arm/arm-cores.def, config/arm/arm-protos.h,
9639 config/arm/vfp.md, config/arm/aof.h, config/arm/linux-gas.h,
9640 config/arm/wince-pe.h, config/arm/neon.md,
9641 config/arm/constraints.md, config/arm/neon.ml,
9642 config/arm/xscale-elf.h, config/arm/strongarm-coff.h,
9643 config/arm/arm.opt, config/arm/arm926ejs.md,
9644 config/arm/predicates.md, config/arm/iwmmxt.md,
9645 config/arm/arm_neon.h, config/arm/unknown-elf.h,
9646 config/arm/kaos-arm.h, config/arm/bpabi.h, config/arm/pe.opt,
9647 config/arm/neon-testgen.ml, config/arm/arm.md,
9648 config/arm/xscale-coff.h, config/arm/pe.c,
9649 config/arm/arm-generic.md, config/arm/pe.h,
9650 config/arm/kaos-strongarm.h, config/arm/freebsd.h,
9651 config/arm/neon-docgen.ml, config/arm/netbsd.h, config/arm/fpa.md,
9652 config/arm/strongarm-elf.h, config/arm/cirrus.md,
9653 config/arm/netbsd-elf.h, config/arm/vxworks.h,
9654 config/arm/neon-gen.ml, config/kaos.h, config/darwin-driver.c,
9655 config/pa/predicates.md, config/pa/pa64-hpux.h,
9656 config/pa/pa-hpux.opt, config/pa/som.h, config/pa/pa-hpux1010.opt,
9657 config/pa/pa-hpux1111.opt, config/pa/pa-pro-end.h,
9658 config/pa/elf.h, config/pa/fptr.c, config/pa/pa64-linux.h,
9659 config/pa/pa.md, config/pa/pa.opt, config/pa/pa-hpux.h,
9660 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
9661 config/pa/pa-hpux1010.h, config/pa/pa-protos.h,
9662 config/pa/pa-osf.h, config/pa/pa-hpux1111.h, config/pa/pa-64.h,
9663 config/pa/milli64.S, config/pa/pa.c, config/pa/pa-linux.h,
9664 config/pa/pa.h, config/pa/pa32-linux.h, config/pa/pa64-hpux.opt,
9665 config/pa/pa64-regs.h, config/pa/pa-modes.def,
9666 config/pa/constraints.md, config/darwin9.h, config/mips/4100.md,
9667 config/mips/linux.h, config/mips/elfoabi.h, config/mips/elf.h,
9668 config/mips/sdb.h, config/mips/windiss.h, config/mips/rtems.h,
9669 config/mips/3000.md, config/mips/iris5.h, config/mips/5000.md,
9670 config/mips/7000.md, config/mips/9000.md, config/mips/4600.md,
9671 config/mips/linux64.h, config/mips/elforion.h,
9672 config/mips/constraints.md, config/mips/generic.md,
9673 config/mips/predicates.md, config/mips/4300.md,
9674 config/mips/mips-ps-3d.md, config/mips/iris.h, config/mips/24k.md,
9675 config/mips/mips.md, config/mips/mips.opt, config/mips/4k.md,
9676 config/mips/5k.md, config/mips/vr4120-div.S,
9677 config/mips/openbsd.h, config/mips/iris6.h, config/mips/4000.md,
9678 config/mips/mips-protos.h, config/mips/6000.md,
9679 config/mips/mips.c, config/mips/mips.h, config/mips/r3900.h,
9680 config/mips/74k.md, config/mips/netbsd.h, config/mips/vxworks.h,
9681 config/mips/mips-modes.def, config/mips/vr.h,
9682 config/soft-fp/t-softfp, config/openbsd.h, config/ptx4.h,
9683 config/freebsd-spec.h, config/vax/vax.c, config/vax/openbsd.h,
9684 config/vax/vax.h, config/vax/elf.h, config/vax/vax.md,
9685 config/vax/bsd.h, config/vax/vax.opt, config/vax/vax-modes.def,
9686 config/vax/openbsd1.h, config/vax/netbsd.h,
9687 config/vax/vax-protos.h, config/vax/netbsd-elf.h,
9688 config/vax/vaxv.h, config/vax/ultrix.h, config/freebsd.h,
9689 config/h8300/rtems.h, config/h8300/predicates.md,
9690 config/h8300/h8300.c, config/h8300/h8300.h, config/h8300/elf.h,
9691 config/h8300/h8300.md, config/h8300/h8300.opt,
9692 config/h8300/coff.h, config/h8300/h8300-protos.h,
9693 config/v850/v850.md, config/v850/predicates.md,
9694 config/v850/v850-c.c, config/v850/v850.c, config/v850/v850.opt,
9695 config/v850/v850.h, config/v850/v850-protos.h, config/vxworks.c,
9696 config/knetbsd-gnu.h, config/sol2-6.h, config/vxworks.h,
9697 config/mmix/mmix.h, config/mmix/predicates.md,
9698 config/mmix/mmix-protos.h, config/mmix/mmix.md,
9699 config/mmix/mmix.c, config/mmix/mmix.opt,
9700 config/mmix/mmix-modes.def, config/bfin/bfin.opt,
9701 config/bfin/rtems.h, config/bfin/bfin-modes.def,
9702 config/bfin/predicates.md, config/bfin/bfin-protos.h,
9703 config/bfin/bfin.c, config/bfin/bfin.h, config/bfin/bfin.md:
9704 Likewise.
9705
5eb2a9f2
RS
97062007-08-02 Richard Sandiford <richard@codesourcery.com>
9707
9708 * emit-rtl.c (reset_used_decls): Rename to...
9709 (set_used_decls): ...this. Set the used flag rather than clearing it.
9710 (unshare_all_rtl_again): Update accordingly. Set flags on argument
9711 DECL_RTLs rather than resetting them.
9712
c7fd8cd8
AK
97132007-08-02 Andreas Krebbel <krebbel1@de.ibm.com>
9714
9715 * config/s390/s390.md ("*xordi3_cconly"): Change xr to xg.
9716
e4fd64d6
SL
97172007-08-01 Sandra Loosemore <sandra@codesourcery.com>
9718
6ef5231b 9719 * reload.c (find_reloads_address_part): Pass correct MEMREFLOC
e4fd64d6
SL
9720 argument to find_reloads_address.
9721
62b0d9ec
DJ
97222007-08-01 Daniel Jacobowitz <dan@codesourcery.com>
9723
9724 PR tree-optimization/32919
9725 * tree-ssa-sccvn.c (visit_phi): Do not visit abnormal PHIs.
9726 * tree-ssa-coalesce.c (ssa_conflicts_dump): New.
9727 (coalesce_ssa_name): Call it.
9728
45059ab1
SL
97292007-08-01 Sandra Loosemore <sandra@codesourcery.com>
9730 David Ung <davidu@mips.com>
9731
45059ab1
SL
9732 * config/mips/mips16.S (__mips16_unordsf2, __mips16_floatunsisf): New.
9733 (__mips16_unorddf2, __mips16_floatunsidf): New.
9734 * config/mips/mips.c (mips_init_libfuncs): Add optab entries for
9735 above functions.
9736 * config/mips/t-libgcc-mips16 (LIB1ASMFUNCS): Add new functions.
9737
e5c95afe
ZD
97382007-08-01 Zdenek Dvorak <ook@ucw.cz>
9739
9740 * tree-pretty-print.c (dump_generic_node): Dump OMP_SECTIONS_SWITCH.
9741 Display new operands of OMP_SECTIONS and OMP_CONTINUE.
9742 * tree.h (OMP_SECTIONS_CONTROL): New macro.
9743 (OMP_DIRECTIVE_P): Add OMP_SECTIONS_SWITCH.
9744 * omp-low.c (get_ws_args_for, determine_parallel_type,
9745 expand_omp_for_generic, expand_omp_for_static_nochunk,
9746 expand_omp_for_static_chunk, expand_omp_for, expand_omp_sections):
9747 Work with more precise CFG.
9748 (build_omp_regions_1): Handle OMP_SECTIONS_SWITCH.
9749 (lower_omp_sections): Emit OMP_SECTIONS_SWITCH. Add arguments to
9750 OMP_CONTINUE.
9751 * tree-gimple.c (is_gimple_stmt): Handle OMP_SECTIONS_SWITCH.
9752 * gimple-low.c (lower_stmt): Ditto.
9753 * tree-inline.c (estimate_num_insns_1): Ditto.
9754 * tree.def (OMP_SECTIONS, OMP_CONTINUE): Added new operands.
9755 (OMP_SECTIONS_SWITCH): New.
9756 * tree-cfgcleanup.c (cleanup_omp_return): New.
9757 (cleanup_tree_cfg_bb): Call cleanup_omp_return.
9758 * tree-cfg.c (make_edges): Create back edges for OMP_CONTINUE
9759 and exit edge for OMP_FOR. Handle OMP_SECTIONS_SWITCH.
9760 (tree_redirect_edge_and_branch): Handle omp constructs.
9761
9762 * fortran/trans-openmp.c (gfc_trans_omp_sections): Build OMP_SECTIONS
9763 with three arguments.
9764
7c8eb293
ZD
97652007-08-01 Zdenek Dvorak <ook@ucw.cz>
9766
9767 * tree-cfg.c (tree_merge_blocks): Preserve loop exit phi nodes only
9768 in loop closed ssa.
9769
592c303d
ZD
97702007-08-01 Zdenek Dvorak <ook@ucw.cz>
9771
9772 * tree-ssa-threadupdate.c (thread_through_all_blocks): Record that
9773 the loop structures may need fixing.
9774 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
9775 New functions.
9776 (cleanup_tree_cfg_loop): Removed.
9777 (cleanup_tree_cfg): If loops need fixing, call repair_loop_structures.
9778 * tree-predcom.c (tree_predictive_commoning): Return TODO_cleanup_cfg
9779 instead of running cleanup_tree_cfg_loop.
9780 * cfgloop.h (LOOPS_NEED_FIXUP): New constant.
9781 * tree-flow.h (cleanup_tree_cfg_loop): Declaration removed.
9782 (tree_predictive_commoning): Declaration changed.
9783 * passes.c (execute_function_todo): Do not use cleanup_tree_cfg_loop.
9784
46cb0441
ZD
97852007-08-01 Zdenek Dvorak <ook@ucw.cz>
9786
9787 * doc/invoke.texi (l1-cache-size): Update documentation.
9788 (l2-cache-size): Document.
9789 * params.h (L2_CACHE_SIZE): New macro.
9790 * tree-ssa-loop-prefetch.c (L1_CACHE_SIZE_BYTES): Reflect
9791 that L1_CACHE_SIZE is in kB now.
9792 (L2_CACHE_SIZE_BYTES): New macro.
9793 (tree_ssa_prefetch_arrays): Show size in kB.
9794 * config/i386/i386.h (struct processor_costs): Add l1_cache_size
9795 and l2_cache_size fields.
9796 * config/i386/driver-i386.c (describe_cache): Detect cache size
9797 in kB.
9798 * config/i386/i386.c (size_cost, i386_cost, i486_cost,pentium_cost,
9799 pentiumpro_cost, geode_cost, k6_cost, athlon_cost, k8_cost,
9800 amdfam10_cost, pentium4_cost, nocona_cost, core2_cost,
9801 generic64_cost, generic32_cost): Add l1_cache_size and l2_cache_size.
9802 (override_options): Set l1-cache-size and l2-cache-size to default
9803 values if not specified otherwise.
9804 * params.def (PARAM_L1_CACHE_SIZE): Change to set in kB.
9805 (PARAM_L2_CACHE_SIZE): New.
9806
0ea339ea
NS
98072007-08-01 Nigel Stephens <nigel@mips.com>
9808 David Ung <davidu@mips.com>
9809 Thiemo Seufer <ths@mips.com>
9810 Chris Dearman <chris@mips.com>
9811 Richard Sandiford <richard@codesourcery.com>
9812
9813 * config.gcc (mips*-sde-elf*): New stanza.
9814 (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
9815 (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
9816 (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*, mips-*-elf*)
9817 (mipsel-*-elf*, mips64-*-elf*, mips64el-*-elf*, mips64orion-*-elf*)
9818 (mips64orionel-*-elf*, mips*-*-rtems*, mips-wrs-windiss)
9819 (mipstx39-*-elf*, mipstx39el-*-elf*): Add mips/t-libgcc-mips16
9820 to tmake_file.
9821 * config/mips/sde.h: New file.
9822 * config/mips/t-libgcc-mips16: Likewise.
9823 * config/mips/t-sde: Likewise.
9824 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Remove settings
9825 of _ABIN32, _ABI64, _ABIO32, _MIPS_SIM, _MIPS_SZLONG, _MIPS_SZPTR,
9826 _MIPS_FPSET and _MIPS_SZINT.
9827 * config/mips/iris.h (TARGET_OS_CPP_BUILTINS): Likewise.
9828 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Remove separate
9829 insertion of a default -mips option. Use MIPS_32BIT_OPTION_SPEC.
9830 * config/mips/t-isa3264 (LIB1ASMSRC, LIB1ASMFUNCS): Delete.
9831 * config/mips/t-r3900 (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
9832 * config/mips/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
9833 * config/mips/mips.h (TARGET_CPU_CPP_BUITINS): Define _ABIO32,
9834 _ABIN32, _ABI64, _ABIO64, _MIPS_SIM, _MIPS_SZINT, _MIPS_SZLONG,
9835 _MIPS_SZPTR and _MIPS_FPSET.
9836 (MIPS_ISA_LEVEL_SPEC): Inject the default -mips option if no
9837 architecture is specified.
9838 (MIPS_32BIT_OPTION_SPEC): New macro.
9839
13e7cedb
DH
98402007-07-31 Dan Hipschman <dsh@google.com>
9841
9842 * gcc.c (end_going_arg): New function.
9843 (do_spec_2): Use it.
9844 (do_spec_1): Use it.
9845
e439ba28
L
98462007-07-31 H.J. Lu <hongjiu.lu@intel.com>
9847
9848 * ddg.c (add_cross_iteration_register_deps): Declare bb_info
9849 only if ENABLE_CHECKING is defined.
9850
f2ffe7a0
KZ
98512007-07-31 Kenneth Zadeck <zadeck@naturalbridge.com>
9852
9853 * df.h (DF_RU, DF_RU_BB_INFO, df_ru_bb_info, df_ru,
9854 df_ru_add_problem, df_ru_get_bb_info): Removed.
9855 (DF_RD, DF_UREC, DF_CHAIN, DF_NOTE): Renumbered.
9856 * df-problems.c (df_ru_problem_data, df_ru_set_bb_info,
9857 df_ru_free_bb_info, df_ru_alloc,
9858 df_ru_bb_local_compute_process_def,
9859 df_ru_bb_local_compute_process_use, df_ru_bb_local_compute,
9860 df_ru_local_compute, df_ru_init_solution, df_ru_confluence_n,
9861 df_ru_transfer_function, df_ru_free, df_ru_start_dump,
9862 df_ru_top_dump, df_ru_bottom_dump, df_problem problem_RU,
9863 df_ru_add_problem): Removed.
9864
68ae229a
JDA
98652007-07-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9866
9867 PR target/32847
f2ffe7a0 9868 * pa.md (casesi32): Use match_scratch. Revise insn condition.
68ae229a
JDA
9869 (casesi32p, casesi64p): Likewise.
9870 (casesi): Adjust for above.
9871
2bde7ae9
RS
98722007-07-31 Richard Sandiford <richard@codesourcery.com>
9873
9874 * mode-switching.c (create_pre_exit): Don't search past calls.
9875
221e1c3f
SL
98762007-07-31 Sandra Loosemore <sandra@codesourcery.com>
9877
6ef5231b 9878 * config/mips/mips.h (ISA_HAS_SYNCI): Add !TARGET_MIPS16 test.
221e1c3f 9879
e0ab232e
RE
98802007-07-31 Revital Eres <eres@il.ibm.com>
9881
9882 * ddg.c (add_deps_for_def): Rename to...
9883 (add_cross_iteration_register_deps): This. Change implementation
9884 to use only reaching def and def-use chains to construct the
9885 inter loop dependencies.
9886 (add_deps_for_use): Remove function.
9887 (build_inter_loop_deps): Call add_cross_iteration_register_deps
9888 function to build the inter loop dependencies.
9889 * modulo-sched.c (sms_schedule): Build only
9890 reaching def and def-use chains for the propose of the ddg
9891 construction.
9892
80b8eb11
JB
98932007-07-31 Julian Brown <julian@codesourcery.com>
9894
9895 * config/arm/neon.md (vec_set<mode>_internal, vec_setv2di_internal):
9896 New define_insns. Use correct RTL.
9897 (vec_set<mode>): Write as expander.
9898
013e9266
RL
98992007-07-31 Razya Ladelsky <razya@il.ibm.com>
9900
80b8eb11 9901 * matrix-reorg.c (analyze_matrix_allocation_site): Avoid referring
013e9266
RL
9902 to an unallocated space.
9903
06cb4f79
JS
99042007-07-30 Jan Sjodin <jan.sjodin@amd.com>
9905
9906 * tree-data-ref.c
9907 (split_constant_offset): Enable split_constant_offset to extract
9908 constants from other statements.
9909 * tree-vect-transform.c
9910 (vect_create_addr_base_for_vector_ref): Generate data_ref_base
9911 to a temp var. Force base_offset to be simple.
9912
5d545bf1
SP
99132007-07-30 Seongbae Park <seongbae.park@gmail.com>
9914
9915 * df-scan.c (df_scan_verify): Remove artificial limit on
9916 the number of blocks for verification.
9917 * df-problems.c (df_lr_bb_local_compute, df_simulate_find_defs,
9918 df_simulate_defs): Avoid unnecessary insn checking for defs.
9919
2786eb8d
MM
99202007-07-29 Mark Mitchell <mark@codesourcery.com>
9921
2786eb8d
MM
9922 * config/m68k/lb1sf68.asm (FUNC): New macro.
9923 (__mulsi3): Use it.
9924 (__udivsi3): Likewise.
9925 (__divsi3): Likewise.
9926 (__umodsi3): Likewise.
9927 (__modsi3): Likewise.
9928 (__subdf3): Likewise.
9929 (__adddf3): Likewise.
9930 (__muldf3): Likewise.
9931 (__divdf3): Likewise.
9932 (__negdf2): Likewise.
9933 (__cmpdf2): Likewise.
9934 (__subsf3): Likewise.
9935 (__addsf3): Likewise.
9936 (__mulsf3): Likewise.
9937 (__divsf3): Likewise.
9938 (__negsf2): Likewise.
9939 (__cmpsf2): Likewise.
9940 (__eqdf2): Likewise.
9941 (__nedf2): Likewise.
9942 (__gtdf2): Likewise.
9943 (__gedf2): Likewise.
9944 (__ltdf2): Likewise.
9945 (__ledf2): Likewise.
9946 (__eqsf2): Likewise.
9947 (__nesf2): Likewise.
9948 (__gtsf2): Likewise.
9949 (__gesf2): Likewise.
9950 (__ltsf2): Likewise.
9951 (__lesf2): Likewise.
9952
ccfc4c91
OW
99532007-07-30 Ollie Wild <aaw@google.com>
9954
9955 * c-ppoutput.c (print_lines_directives_only): New function.
9956 (scan_translation_unit_directives_only): New function.
9957 (preprocess_file): Add call to scan_translation_unit_directives_only.
9958 * c-opts.c (c_common_handle_option): Add OPT_fdirectives_only.
9959 (sanitize_cpp_opts): Add default flag_dump_macros setting for
9960 -fdirectives-only. Add errors for -fdirectives-only conflict with
9961 -Wunused-macros and -traditional.
9962 (finish_options): Add builtin macro initialization for
9963 -fdirectives-only + -fpreprocessed.
9964 * c.opt (fdirectives-only): New.
9965 * doc/cppopts.texi (fdirectives-only): New.
9966
7bc980e1
KG
99672007-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9968
9969 * alias.c (record_set, memory_modified_1): Constify.
9970 * bt-load.c (note_btr_set): Likewise.
9971 * caller-save.c (mark_set_regs, add_stored_regs): Likewise.
9972 * combine.c (set_nonzero_bits_and_sign_copies,
9973 expand_field_assignment, record_dead_and_set_regs_1,
9974 use_crosses_set_p, reg_dead_at_p_1, can_combine_p,
9975 likely_spilled_retval_1): Likewise.
9976 * config/frv/frv.c (frv_registers_update_1, frv_io_check_address,
9977 frv_io_handle_set): Likewise.
9978 * config/mips/mips.c (mips_sim_record_set,
9979 vr4130_true_reg_dependence_p_1): Likewise.
9980 * config/mt/mt.c (insn_dependent_p_1): Likewise.
9981 * config/s390/s390.c (s390_reg_clobbered_rtx): Likewise.
9982 * config/sh/sh.c (flow_dependent_p_1): Likewise.
9983 * cselib.c (cselib_invalidate_rtx_note_stores): Likewise.
9984 * dce.c (mark_nonreg_stores_1, mark_nonreg_stores_2): Likewise.
9985 * ddg.c (mark_mem_store): Likewise.
9986 * df-problems.c (df_urec_mark_reg_change): Likewise.
9987 * function.c (update_epilogue_consts): Likewise.
9988 * gcse.c (record_set_info, record_last_set_info,
9989 mems_conflict_for_gcse_p, canon_list_insert, reg_set_info,
9990 reg_clear_last_set): Likewise.
9991 * global.c (mark_reg_store, mark_reg_clobber, reg_becomes_live):
9992 Likewise.
9993 * jump.c (reversed_comparison_code_parts): Likewise.
9994 * local-alloc.c (validate_equiv_mem_from_store, no_equiv,
9995 reg_is_set): Likewise.
9996 * loop-iv.c (mark_altered): Likewise.
9997 * mode-switching.c (reg_becomes_live): Likewise.
9998 * optabs.c (no_conflict_move_test): Likewise.
9999 * postreload-gcse.c (record_last_set_info, find_mem_conflicts):
10000 Likewise.
10001 * postreload.c (reload_combine_note_store, move2add_note_store):
10002 Likewise.
10003 * regmove.c (flags_set_1): Likewise.
10004 * regrename.c (note_sets, kill_clobbered_value, kill_set_value):
10005 Likewise.
10006 * reload1.c (mark_not_eliminable, forget_old_reloads_1):
10007 Likewise.
10008 * resource.c (update_live_status): Likewise.
10009 * rtl.h (set_of, note_stores): Likewise.
10010 * rtlanal.c (set_of_1, parms_set, struct set_of_data, set_of,
10011 note_stores, parms_set): Likewise.
10012 * sched-rgn.c (sets_likely_spilled_1): Likewise.
10013 * stack-ptr-mod.c (notice_stack_pointer_modification_1):
10014 Likewise.
10015 * var-tracking.c (count_stores, add_stores): Likewise.
10016
4f588890
KG
100172007-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10018
10019 * alias.c (mems_in_disjoint_alias_sets_p,
10020 fixed_scalar_and_varying_struct_p, aliases_everything_p,
10021 nonoverlapping_component_refs_p, nonoverlapping_memrefs_p,
10022 write_dependence_p, mems_in_disjoint_alias_sets_p,
10023 read_dependence, true_dependence, canon_true_dependence,
10024 anti_dependence, output_dependence): Constify.
10025 * combine.c (extended_count): Likewise.
10026 * cse.c (cse_rtx_varies_p, hash_rtx, exp_equiv_p): Likewise.
10027 * cselib.c (get_value_hash, references_value_p,
10028 cselib_reg_set_mode, cselib_rtx_varies_p): Likewise.
10029 * cselib.h (cselib_reg_set_mode, references_value_p): Likewise.
10030 * emit-rtl.c (mem_expr_equal_p, active_insn_p): Likewise.
10031 * function.c (contains, prologue_epilogue_contains,
10032 sibcall_epilogue_contains): Likewise.
10033 * jump.c (simplejump_p, condjump_p, condjump_in_parallel_p,
10034 pc_set, any_uncondjump_p, any_condjump_p, onlyjump_p,
10035 only_sets_cc0_p, sets_cc0_p, rtx_renumbered_equal_p, true_regnum,
10036 reg_or_subregno): Likewise.
10037 * recog.c (asm_noperands): Likewise.
10038 * reload1.c (function_invariant_p): Likewise.
10039 * rtl.h (mem_expr_equal_p, active_insn_p, rtx_varies_p,
10040 rtx_addr_varies_p, asm_noperands, exp_equiv_p, hash_rtx,
10041 condjump_p, any_condjump_p, any_uncondjump_p, pc_set,
10042 simplejump_p, onlyjump_p, only_sets_cc0_p, sets_cc0_p,
10043 true_regnum, reg_or_subregno, condjump_in_parallel_p,
10044 extended_count, prologue_epilogue_contains,
10045 sibcall_epilogue_contains, function_invariant_p, true_dependence,
10046 canon_true_dependence, read_dependence, anti_dependence,
10047 output_dependence): Likewise.
10048 * rtlanal.c (rtx_varies_p, rtx_addr_varies_p): Likewise.
10049
89ffa8fc
JB
100502007-07-30 Julian Brown <julian@codesourcery.com>
10051
10052 * config/arm/neon.md (V_ext): New mode attribute.
10053 (neon_vget_lane<mode>): Replace with define_expand.
10054 (neon_vget_lane<mode>_sext_internal)
10055 (neon_vget_lane<mode>_zext_internal): New define_insns for double
10056 and quad precision vectors.
10057 (neon_vget_lanedi): Add bounds check. Remove dead comment.
10058 * config/arm/neon.ml (get_lane): Make 32-bit get-lane intrinsics
10059 have typeless 32-bit result.
10060
5c24ddaf
AP
100612007-07-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
10062
10063 PR tree-opt/32527
10064 * tree-affine.h (aff_tree): The type of rest is sizetype for types
10065 of pointers.
10066 * tree-affine.c (aff_combination_scale): If type is a pointer type,
10067 use sizetype for rest.
10068 (aff_combination_add_elt): Likewise. Don't specialize pointer types.
10069 (aff_combination_convert): Don't convert rest for pointer types.
10070
603802e7
DB
100712007-07-28 Daniel Berlin <dberlin@dberlin.org>
10072
10073 * Makefile.in (tree-ssa-alias.o): Add alloc-pool.h
10074
10075 * tree-ssa-alias.c: Add alloc-pool.h.
10076 (init_alias_info): Free alias_bitmap_obstack.
10077 (delete_alias_info): Call delete_mem_ref_stats.
10078 (get_mem_sym_stats_for): Use alloc_pool.
10079 (init_mem_ref_stats): Do not delete mem_ref_stats here.
10080 (delete_mem_sym_stats): Removed.
10081
b1e75954
SP
100822007-07-29 Sebastian Pop <sebpop@gmail.com>
10083
10084 * tree-data-ref.c (add_multivariate_self_dist): Parametric access
10085 functions cannot be represented as classical distance vectors.
10086
fa233e34
KG
100872007-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10088
10089 * attribs.c (hash_attr, eq_attr, init_attributes): Constify.
10090 * builtins.c (validate_arg, builtin_mathfn_code,
10091 validate_arglist): Likewise.
10092 * calls.c (call_expr_flags): Likewise.
10093 * combine.c (reg_nonzero_bits_for_combine,
10094 reg_num_sign_bit_copies_for_combine, get_last_value,
10095 reg_truncated_to_mode): Likewise.
10096 * emit-rtl.c (subreg_lowpart_p): Likewise.
10097 * expr.c (highest_pow2_factor_for_target,
10098 categorize_ctor_elements_1, categorize_ctor_elements,
10099 count_type_elements, contains_packed_reference,
10100 highest_pow2_factor, highest_pow2_factor_for_target): Likewise.
10101 * fold-const.c (may_negate_without_overflow_p, int_const_binop,
10102 fold_convertible_p, operand_equal_p, tree_swap_operands_p,
10103 native_encode_int, native_encode_real, native_encode_complex,
10104 native_encode_vector, native_encode_expr, native_interpret_int,
10105 native_interpret_real, native_interpret_complex,
10106 native_interpret_vector, native_interpret_expr): Likewise.
10107 * function.c (use_register_for_decl): Likewise.
10108 * gimplify.c (get_name): Likewise.
10109 * langhooks-def.h (lhd_return_null_const_tree): New.
10110 (LANG_HOOKS_GET_CALLEE_FNDECL): Use it.
10111 * langhooks.c (lhd_return_null_const_tree): New.
10112 * langhooks.h (lang_get_callee_fndecl): Constify.
10113 * output.h (constructor_static_from_elts_p): Likewise.
10114 * rtl-factoring.c (gen_symbol_ref_rtx_for_label): Likewise.
10115 * rtl.h (nonzero_bits, num_sign_bit_copies, truncated_to_mode,
10116 subreg_lowpart_p, noop_move_p, struct rtl_hooks): Likewise.
10117 * rtlanal.c (cached_nonzero_bits, nonzero_bits1,
10118 cached_num_sign_bit_copies, num_sign_bit_copies1, noop_move_p,
10119 nonzero_bits, num_sign_bit_copies, truncated_to_mode): Likewise.
10120 * rtlhooks-def.h (reg_nonzero_bits_general,
10121 reg_num_sign_bit_copies_general, reg_truncated_to_mode_general):
10122 Likewise.
10123 * rtlhooks.c (reg_num_sign_bit_copies_general,
10124 reg_nonzero_bits_general, reg_truncated_to_mode_general):
10125 Likewise.
10126 * stmt.c (warn_if_unused_value, is_body_block): Likewise.
10127 * stor-layout.c (mode_for_size_tree): Likewise.
10128 * tree-ssa-loop-im.c (memref_eq): Likewise.
10129 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): Likewise.
10130 * tree.c (contains_placeholder_p, type_list_equal,
10131 simple_cst_equal, get_callee_fndecl, operand_equal_for_phi_arg_p):
10132 Likewise.
10133 * tree.h (tree_int_cst_sign_bit, may_negate_without_overflow_p,
10134 mode_for_size_tree, categorize_ctor_elements, count_type_elements,
10135 contains_placeholder_p, contains_packed_reference,
10136 get_callee_fndecl, operand_equal_for_phi_arg_p,
10137 warn_if_unused_value, is_body_block, native_encode_expr,
10138 native_interpret_expr, fold_convertible_p, operand_equal_p,
10139 int_const_binop, tree_swap_operands_p, builtin_mathfn_code,
10140 validate_arglist, simple_cst_equal, type_list_equal,
10141 use_register_for_decl, call_expr_flags, get_name,
10142 highest_pow2_factor): Likewise.
10143 (const_call_expr_arg_iterator_d,
10144 init_const_call_expr_arg_iterator, next_const_call_expr_arg,
10145 first_const_call_expr_arg, more_const_call_expr_args_p,
10146 FOR_EACH_CONST_CALL_EXPR_ARG): New.
10147 * varasm.c (constructor_static_from_elts_p): Constify.
10148
cea618ac
KH
101492007-07-28 Kazu Hirata <kazu@codesourcery.com>
10150
10151 * cfglayout.c, config/arm/arm.c, config/arm/cortex-a8.md,
10152 config/arm/neon-schedgen.ml, config/arm/neon.ml,
10153 config/arm/vec-common.md, config/ia64/div.md, cselib.c,
10154 df-core.c, df.h, dominance.c, optabs.c, opts.c, reg-stack.c,
10155 regstat.c, target.h, tree-ssa-live.c, tree-ssa-pre.c,
10156 tree-vect-transform.c, tree.def: Fix comment typos. Follow
10157 spelling conventions.
10158 * doc/invoke.texi: Follow spelling conventions.
10159
9b6dd300 101602007-07-29 Vladimir Yanovsky <yanov@il.ibm.com>
d5d5d289 10161 Revital Eres <eres@il.ibm.com>
9b6dd300
VY
10162
10163 * modulo-sched.c (sms_schedule): Avoid loops which includes
10164 auto-increment instructions.
10165
539d5e79
RG
101662007-07-28 Richard Guenther <rguenther@suse.de>
10167
10168 PR middle-end/32920
10169 * fold-const.c (fold_cond_expr_with_comparison): Convert
10170 operand zero of MIN/MAX_EXPR to correct type.
10171
6ea2b70d
KG
101722007-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10173
10174 * calls.c (special_function_p, setjmp_call_p, alloca_call_p,
10175 flags_from_decl_or_type): Constify.
10176 * gcc.c (do_spec_1): Likewise.
10177 * print-tree.c (dump_addr, print_node_brief): Likewise.
10178 * tree-cfg.c (stmt_starts_bb_p, is_ctrl_stmt, computed_goto_p,
10179 simple_goto_p, tree_can_make_abnormal_goto, stmt_starts_bb_p,
10180 tree_purge_all_dead_eh_edges): Likewise.
10181 * tree-flow.h (is_ctrl_stmt, computed_goto_p, simple_goto_p,
10182 tree_can_make_abnormal_goto, tree_purge_all_dead_eh_edges):
10183 Likewise.
10184 * tree.c (expr_location, expr_has_location, expr_locus,
10185 expr_filename, expr_lineno, get_inner_array_type,
10186 fields_compatible_p): Likewise.
10187 * tree.h (get_inner_array_type, fields_compatible_p,
10188 expr_location, expr_has_location, expr_locus, expr_filename,
10189 expr_lineno, dump_addr, print_node_brief, flags_from_decl_or_type,
10190 setjmp_call_p, alloca_call_p): Likewise.
10191
758137cd
DB
101922007-07-28 Daniel Berlin <dberlin@dberlin.org>
10193
10194 * timevar.def: Add TV_CALL_CLOBBER, TV_FLOW_SENSITIVE,
10195 TV_FLOW_INSENSITIVE.
10196
10197 * tree-ssa-alias.c (compute_call_clobbered): Push/pop
10198 TV_CALL_CLOBBER.
10199 (compute_flow_sensitive_aliasing): Ditto for TV_FLOW_SENSITIVE.
10200 (compute_flow_insensitive_aliasing): Ditto for
10201 TV_FLOW_INSENSITIVE.
10202
23b43207
JH
102032007-07-27 Jan Hubicka <jh@suse.cz>
10204
c9d259cb
UB
10205 * config/i386/i386.c (register_move_cost): Remove accidentally
10206 comitted #if 0 block.
e1f4b1de 10207
23b43207
JH
10208 * attribs.c: Include hashtab.h
10209 (attribute_hash): New.
10210 (substring): New structure.
10211 (extract_attribute_substring, substring_hash, hash_attr, eq_attr):
10212 New function.
10213 (init_attributes): Initialize attribute hash.
10214 (decl_attributes): Use attribute hash.
10215 * Makefile.in (attribs.c): Depend on hashtab.h.
10216
e3d693e9
SE
102172007-07-27 Steve Ellcey <sje@cup.hp.com>
10218
10219 * config/ia64/vect.md (vec_initv2si): Remove bad BIG_ENDIAN test.
10220
da7d4908
RS
102212007-07-27 Richard Sandiford <richard@codesourcery.com>
10222
10223 * doc/invoke.texi (mdsp, mdspr2): Document the __mips_dsp,
10224 __mips_dspr2 and __mips_dsp_rev macros.
10225 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dsp_rev.
10226
3ad6a8e1
DG
102272007-07-27 Douglas Gregor <doug.gregor@gmail.com>
10228
10229 * c-common.h (enum rid): Add RID_DECLTYPE, update RID_LAST_CXX0X.
10230
e4142b7c
KZ
102312007-07-26 Kenneth Zadeck <zadeck@naturalbridge.com>
10232
10233 PR middle-end/32749
10234
10235 * df-problems.c (df_create_unused_note): Removed do_not_gen parm
10236 and the updating of the live and do_not_gen sets.
10237 (df_note_bb_compute): Added updating of live and do_not_gen sets
10238 for regular defs so that the case of clobber inside conditional
10239 call is processed correctly.
10240
8fb632eb
ZD
102412007-07-27 Zdenek Dvorak <dvorakz@suse.cz>
10242
10243 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Generate the
10244 operands with compatible type.
10245
6d7db3c5
RS
102462007-07-27 Richard Sandiford <richard@codesourcery.com>
10247
10248 * expr.h (store_bit_field): Don't return a value.
10249 * expmed.c (check_predicate_volatile_ok): New function.
10250 (store_bit_field_1): New function, extracted from store_bit_field.
10251 Take a fallback_p argument and return true if the operation succeeded.
10252 Only use store_fixed_bit_field if fallback_p. Don't recompute
10253 mode_for_extraction; use op_mode instead. Try forcing memories
10254 into registers if the insv expander fails.
10255 (store_bit_field): Use store_bit_field_1 with fallback_p true.
10256 Don't return a value.
10257 (convert_extracted_bit_field): New function, extracted from
10258 store_bit_field.
10259 (extract_bit_field_1): Likewise. Take a fallback_p argument
10260 and return NULL if the operation succeeded. Only use
10261 extract_fixed_bit_field if fallback_p. Only calculate one
10262 extraction mode. Combine code for extv and extzv. Try forcing
10263 memories into registers if the ext(z)v expander fails.
10264 (extract_bit_field): Use extract_bit_field_1 with fallback_p true.
10265
ab34041d
RS
102662007-07-27 Richard Sandiford <rsandifo@nildram.co.uk>
10267
10268 * df.h (df_mw_hardreg): Turn df_ref_type and df_ref_flags
10269 into bitfields.
10270 (df_ref): Likewise. Put regno with other integer fields.
10271
6f5c1520
RS
102722007-07-27 Richard Sandiford <rsandifo@nildram.co.uk>
10273
10274 * df.h (df_mw_hardreg): Remove "loc" field.
10275 * df-scan.c (df_ref_record): Don't set it. Remove redundant
10276 local variable.
10277 * df-problems.c (df_whole_mw_reg_unused_p): New function,
10278 split out from df_set_unused_notes_for_mw. Return false for
10279 partial references. Assert that mw_reg is a REG when returning true.
10280 (df_set_unused_notes_for_mw): Use it. Use mw_reg instead of *loc.
10281 (df_whole_mw_reg_dead_p): New function, split out from
10282 df_set_dead_notes_for_mw. Return false for partial references.
10283 Assert that mw_reg is a REG when returning true.
10284 (df_set_dead_notes_for_mw): Use it. Use mw_reg instead of *loc.
10285 Remove redundant bitmap check.
10286
23815ffe
L
102872007-07-26 H.J. Lu <hongjiu.lu@intel.com>
10288
10289 * config/ia64/t-ia64 ($(T)crtbegin.o): Removed.
10290 ($(T)crtend.o): Likwise.
10291 ($(T)crtbeginS.o): Likwise.
10292 ($(T)crtendS.o): Likwise.
10293 ($(T)crtfastmath.o): Likwise.
10294
8fee41c2
ZD
102952007-07-26 Zdenek Dvorak <dvorakz@suse.cz>
10296
10297 * dominance.c (dom_computed, n_bbs_in_dom_tree): Removed.
10298 * function.h (dom_computed, n_bbs_in_dom_tree): New macros.
10299 * basic-block.h (struct control_flow_graph): Added x_dom_computed
10300 and x_n_bbs_in_dom_tree fields.
10301
87621e5f
SE
103022007-07-26 Steve Ellcey <sje@cup.hp.com>
10303
10304 PR tree-optimization/32087
10305 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
10306 Do not call scale_bbs_frequencies_int with prob of zero.
10307
b617fc71
JB
103082007-07-26 Julian Brown <julian@codesourcery.com>
10309
10310 * config/arm/arm-protos.h (neon_lane_bounds, neon_const_bounds)
10311 (neon_element_bits): Add prototypes.
10312 * config/arm/arm.c (bounds_check, neon_lane_bounds)
10313 (neon_const_bounds, neon_element_bits): New functions.
10314 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_lanedi)
10315 (neon_vget_lanev2di, neon_vset_lane<mode>, neon_vset_lanedi)
10316 (neon_vset_lanev2di, neon_vdup_lane<mode>, neon_vdup_lanedi)
10317 (neon_vdup_lanev2di, neon_vcvt_n<mode>, neon_vmul_lane<mode>)
10318 (neon_vmull_lane<mode>, neon_vqdmull_lane<mode>)
10319 (neon_vqdmulh_lane<mode>, neon_vmla_lane<mode>)
10320 (neon_vmlal_lane<mode>, neon_vqdmlal_lane<mode>)
10321 (neon_vmls_lane<mode>, neon_vmlsl_lane<mode>)
10322 (neon_vqdmlsl_lane<mode>, neon_vext<mode>, neon_vshr_n<mode>)
10323 (neon_vshrn_n<mode>, neon_vqshrn_n<mode>, neon_vqshrun_n<mode>)
10324 (neon_vshl_n<mode>, neon_vshl_n<mode>, neon_vqshl_n<mode>)
10325 (neon_vqshlu_n<mode>, neon_vshll_n<mode>, neon_vsra_n<mode>)
10326 (neon_vsri_n<mode>, neon_vsli_n<mode>): Add bounds checks.
10327
1c387101
NF
103282007-07-26 Nathan Froyd <froydnj@codesourcery.com>
10329
10330 * config/vxworks.h (VXWORKS_LINK_SPEC): Fix typo.
10331 (HAVE_AS_GNU_ATTRIBUTE): Undefine.
10332
c956e102
MS
103332007-07-26 Mark Shinwell <shinwell@codesourcery.com>
10334 Julian Brown <julian@codesourcery.com>
10335
10336 * config/arm/arm.c (arm_mac_accumulator_is_mul_result): New.
10337 * config/arm/arm-protos.h (arm_mac_accumulator_is_mul_result): New.
10338 * config/arm/cortex-a8.md: New.
10339 * config/arm/cortex-a8-neon.md: New.
10340 * config/arm/neon-schedgen.ml: New.
10341 * config/arm/neon.md (vqh_mnem): New.
10342 (neon_type): New.
10343 (Is_float_mode): New.
10344 (Scalar_mul_8_16): New.
10345 (Is_d_reg): New.
10346 (V_mode_nunits): New.
10347 (All instruction patterns): Annotate with neon_type attribute
10348 values.
10349 * config/arm/arm.md: Include cortex-a8.md.
10350 (insn): Add smmla, umaal, smlald, smlsld, clz, mrs, msr and xtab
10351 values.
10352 Annotate instruction patterns accordingly.
10353 (generic_sched): Do not use generic scheduling for Cortex-A8.
10354 (generic_vfp): Do not use generic VFP scheduling for Cortex-A8.
10355
0c4d4efb
DJ
103562007-07-26 Daniel Jacobowitz <dan@codesourcery.com>
10357
10358 * fold-const.c (fold_read_from_constant_string): Use
10359 build_int_cst_type.
10360 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
10361
9dcd6f09
NC
103622007-07-26 Nick Clifton <nickc@redhat.com>
10363
10364 * tree-ssa-operands.h: Change copyright header to refer to version
10365 3 of the GNU General Public License and to point readers at the
10366 COPYING3 file and the FSF's license web page.
10367 * tree-vrp.c, regrename.c, attribs.c, loop-unswitch.c,
10368 sched-ebb.c, fwprop.c, tree-loop-linear.c, dwarf2asm.c,
10369 tree-into-ssa.c, dwarf2asm.h, tree-ssa-loop-im.c, sbitmap.c,
10370 targhooks.c, tree-dump.c, tree-complex.c, sbitmap.h, targhooks.h,
10371 tree-dump.h, regstat.c, see.c, machmode.h, hooks.c, cgraphbuild.c,
10372 hooks.h, genrecog.c, tree-ssa-threadupdate.c, gen-protos.c,
10373 flags.h, rtlhooks.c, gencheck.c, tree-ssa-loop-niter.c,
10374 opts-common.c, dbgcnt.def, tree-pretty-print.c, tracer.c,
10375 gengtype.c, mkconfig.sh, gengtype.h, tree-ssa-loop-unswitch.c,
10376 cgraph.c, c-lex.c, cgraph.h, libfuncs.h, cfgloopmanip.c,
10377 rtl-error.c, optabs.c, postreload-gcse.c, tree-ssa-loop-manip.c,
10378 optabs.h, genmddeps.c, defaults.h, postreload.c, value-prof.c,
10379 tree-ssa-loop-ch.c, tree-tailcall.c, gengenrtl.c, value-prof.h,
10380 genopinit.c, tree.c, tree.h, reload.c, tree-pass.h, ipa-cp.c,
10381 reload.h, bitmap.c, bitmap.h, tree-scalar-evolution.c,
10382 c-config-lang.in, tree-scalar-evolution.h, target.h, cppspec.c,
10383 rtlanal.c, ddg.c, lambda-mat.c, mips-tdump.c, ddg.h,
10384 tree-phinodes.c, mips-tfile.c, pointer-set.c, pointer-set.h,
10385 diagnostic.c, final.c, diagnostic.h, builtins.c, genoutput.c,
10386 gcc.c, lists.c, tree-ssa-alias-warnings.c, gcc.h, cfghooks.c,
10387 input.h, gensupport.c, fold-const.c, cfghooks.h, insn-notes.def,
10388 gensupport.h, builtin-attrs.def, sync-builtins.def, params.c,
10389 cfgloopanal.c, params.h, graphds.c, omp-low.c, tree-ssa-dse.c,
10390 graphds.h, gcov.c, cfg.c, genextract.c, ipa-reference.c,
10391 genautomata.c, tree-ssa-uncprop.c, auto-inc-dec.c, toplev.c,
10392 tree-gimple.c, ipa-reference.h, vmsdbgout.c, errors.c, toplev.h,
10393 reorg.c, tree-gimple.h, tree-chrec.c, pretty-print.c, errors.h,
10394 real.c, tree-chrec.h, pretty-print.h, debug.c, real.h, genemit.c,
10395 omega.c, c-cppbuiltin.c, genmultilib, debug.h, omega.h,
10396 tree-ssa-sccvn.c, genconfig.c, tree-ssa-sccvn.h, cgraphunit.c,
10397 regs.h, df-scan.c, vec.c, hosthooks-def.h, vec.h,
10398 tree-ssa-copyrename.c, scan.c, builtin-types.def, tree-ssa-ccp.c,
10399 scan.h, mode-classes.def, haifa-sched.c, dominance.c, dojump.c,
10400 double-int.c, gcov-io.c, dbxout.c, builtins.def, double-int.h,
10401 dbxout.h, tree-ssa-loop-ivopts.c, df-core.c, mode-switching.c,
10402 gengtype-lex.l, tree-nomudflap.c, modulo-sched.c, c-objc-common.c,
10403 hosthooks.h, c-objc-common.h, caller-save.c, graph.c,
10404 ipa-pure-const.c, graph.h, c-format.c, cse.c, fix-header.c,
10405 c-format.h, web.c, tree-stdarg.c, genpeep.c, tree-stdarg.h,
10406 tree-ssa-math-opts.c, xcoffout.c, tree-ssa-dom.c, tree-nrv.c,
10407 xcoffout.h, tree-ssa-propagate.c, ipa-utils.c,
10408 tree-ssa-propagate.h, tree-ssa-alias.c, loop-init.c, ipa-utils.h,
10409 gimple-low.c, rtl.def, c-tree.h, tree-ssa-sink.c, ipa-inline.c,
10410 mkmap-symver.awk, machmode.def, c-pch.c, cfganal.c, global.c,
10411 alloc-pool.c, c-semantics.c, alloc-pool.h, jump.c, ifcvt.c,
10412 dwarf2out.c, expr.c, cfgbuild.c, tree-browser.c, dwarf2out.h,
10413 expr.h, longlong.h, opts.c, gcov-iov.c, opts.h, dwarf2.h,
10414 genattrtab.c, genconditions.c, genattr.c, optc-gen.awk,
10415 timevar.def, tree-ssa-loop-ivcanon.c, hard-reg-set.h, predict.c,
10416 tree-ssa-loop.c, host-default.c, predict.h, recog.c, dbgcnt.c,
10417 recog.h, dbgcnt.h, c-aux-info.c, tree-ssa-address.c, timevar.c,
10418 dse.c, lcm.c, tree-ssa-ifcombine.c, timevar.h, dse.h,
10419 matrix-reorg.c, tree-vn.c, treestruct.def, fp-test.c, c-decl.c,
10420 tree-eh.c, c-errors.c, c-pretty-print.c, regmove.c,
10421 lambda-trans.c, c-pretty-print.h, et-forest.c, et-forest.h,
10422 ebitmap.c, configure.ac, local-alloc.c, function.c, langhooks.c,
10423 ebitmap.h, cppdefault.c, tree-vectorizer.c, function.h,
10424 langhooks.h, print-rtl.c, cppdefault.h, df.h, tree-vectorizer.h,
10425 sdbout.c, stor-layout.c, sdbout.h, rtlhooks-def.h, read-rtl.c,
10426 gcse.c, ipa-type-escape.c, vmsdbg.h, alias.c, gengtype-parse.c,
10427 ipa-type-escape.h, domwalk.c, alias.h, tree-if-conv.c, profile.c,
10428 init-regs.c, domwalk.h, ipa.c, gccbug.in, tree-data-ref.c,
10429 loop-unroll.c, tree-data-ref.h, tree-flow-inline.h, tree-affine.c,
10430 mkmap-flat.awk, tree-affine.h, tree-vect-analyze.c, c.opt, ggc.h,
10431 opt-gather.awk, c-typeck.c, gimplify.c, coretypes.h, exec-tool.in,
10432 insn-addr.h, tree-ssa-phiopt.c, c-pragma.c, c-pragma.h, calls.c,
10433 tree-ssa-coalesce.c, genmodes.c, loop-doloop.c, predict.def,
10434 dwarf.h, tree.def, rtl-factoring.c, lower-subreg.c, expmed.c,
10435 bt-load.c, ggc-common.c, genflags.c, tree-dfa.c, except.c,
10436 coverage.c, except.h, emit-rtl.c, cfgexpand.c, coverage.h,
10437 stringpool.c, cselib.c, emit-rtl.h, tree-cfgcleanup.c, c-opts.c,
10438 cselib.h, cfgcleanup.c, simplify-rtx.c, tree-ssa-pre.c, explow.c,
10439 tree-ssa-live.c, tree-sra.c, tree-ssa-live.h, tree-predcom.c,
10440 loop-invariant.c, genpreds.c, protoize.c, opth-gen.awk, c-dump.c,
10441 lambda.h, loop-iv.c, tree-mudflap.c, ipa-prop.c, print-tree.c,
10442 tree-mudflap.h, tree-ssa-copy.c, ipa-prop.h, cfglayout.c,
10443 tree-ssa-forwprop.c, c-convert.c, cfglayout.h, common.opt,
10444 ggc-zone.c, ggc-page.c, c-omp.c, tree-ssa-dce.c, gencodes.c,
10445 varasm.c, tree-vect-patterns.c, libada-mk.in, tree-ssa-ter.c,
10446 sched-deps.c, tree-nested.c, c-ppoutput.c, tree-ssa.c,
10447 target-def.h, tree-ssa-loop-prefetch.c, lambda-code.c,
10448 omp-builtins.def, rtl.c, regclass.c, stab.def, intl.c, rtl.h,
10449 intl.h, tree-inline.c, conditions.h, tree-inline.h, integrate.c,
10450 sched-int.h, tree-iterator.c, integrate.h, tree-iterator.h,
10451 genchecksum.c, tree-optimize.c, output.h, tree-vect-transform.c,
10452 tree-object-size.c, combine.c, tree-outof-ssa.c, addresses.h,
10453 bb-reorder.c, stack-ptr-mod.c, resource.c, var-tracking.c,
10454 cfgloop.c, system.h, resource.h, ggc-none.c, tree-profile.c,
10455 cfgloop.h, c-gimplify.c, c-common.c, opt-functions.awk,
10456 tree-vect-generic.c, tree-flow.h, df-problems.c, scan-decls.c,
10457 c-common.h, config.gcc, reg-stack.c, tlink.c, main.c, stub-objc.c,
10458 fixproto, config.host, Makefile.in, gccspec.c, sched-rgn.c,
10459 vecprim.h, basic-block.h, tree-ssa-structalias.c,
10460 tree-ssa-structalias.h, c-common.def, sched-vis.c, tree-cfg.c,
10461 passes.c, genconstants.c, c-incpath.c, c-incpath.h,
10462 struct-equiv.c, c-parser.c, tree-ssa-reassoc.c, varray.c, sreal.c,
10463 varray.h, dfp.c, sreal.h, combine-stack-adj.c, dfp.h,
10464 reg-notes.def, cfgrtl.c, config.build, varpool.c, gengtype-yacc.y,
10465 stmt.c, dce.c, tree-browser.def, prefix.c, statistics.h,
10466 params.def, dce.h, c-lang.c, gcov-dump.c, prefix.h,
10467 tree-ssanames.c, collect2.c, collect2.h, tree-ssa-threadedge.c,
10468 convert.c, convert.h, langhooks-def.h, reload1.c,
10469 tree-ssa-operands.c: Likewise.
10470
aee46bbd
JH
104712007-07-26 Jan Hubicka <jh@suse.cz>
10472
10473 * tree-ssa-live.c: Include debug.h and flags.h.
10474 (mark_scope_block_unused): New function.
10475 (remove_unused_scope_block_p): New function.
10476 (remove_unused_locals): Remove unused blocks too.
10477
829f8ff7
ILT
104782007-07-25 Ian Lance Taylor <iant@google.com>
10479
10480 * combine.c (combine_max_regno): Remove. Remove all uses.
10481 (struct reg_stat_struct): Rename from struct reg_stat.
10482 (reg_stat_type): Define, and declare VECs.
10483 (reg_stat): Change from pointer to VEC. Change all uses.
10484 (combine_split_insns): New static function.
10485 (try_combine, find_split_point): Call it instead of split_insns.
10486
dbdc7f97
ZD
104872007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
10488
10489 * cfghooks.c (split_block): Fix the information about loop latch.
10490
af0b10e5
ZD
104912007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
10492
10493 * cfgloopmanip.c (fix_loop_structure): Call force_single_succ_latches.
10494
aa2645a0
ZD
104952007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
10496
10497 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
10498 Scan the new edge for loop exit info.
10499
9faca04e
AT
105002007-07-25 Andreas Tobler <a.tobler@schweiz.org>
10501
10502 * config/darwin.c: Include debug.h.
10503
6887a8b9
SE
105042007-07-25 Steve Ellcey <sje@cup.hp.com>
10505
10506 PR target/32218
10507 * tree-vect-patterns.c (vect_pattern_recog_1): Check for valid type.
10508
4883241c
SE
105092007-07-25 Steve Ellcey <sje@cup.hp.com>
10510
10511 * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle RFmode.
10512 (HARD_REGNO_MODE_OK): Ditto.
10513 (MODES_TIEABLE_P): Ditto.
10514 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
10515 (CLASS_MAX_NREGS): Ditto.
10516 * config/ia64/ia64.c (ia64_print_operand_address): Add R format.
10517 * config/ia64/ia64.md (divsf3_internal_thr): Removed.
10518 (divdf3_internal_thr): Removed.
10519 * config/ia64/div.md: New file.
10520 * config/ia64/constraints.md: Add H constraint.
10521
be5b01f3
KG
105222007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10523
10524 * sbitmap.c (sbitmap_verify_popcount, sbitmap_alloc_with_popcount,
10525 sbitmap_copy, sbitmap_copy_n, sbitmap_equal, sbitmap_empty_p,
10526 sbitmap_union_of_diff_cg, sbitmap_union_of_diff, sbitmap_not,
10527 sbitmap_difference, sbitmap_any_common_bits, sbitmap_a_and_b_cg,
10528 sbitmap_a_and_b, sbitmap_a_xor_b_cg, sbitmap_a_xor_b,
10529 sbitmap_a_or_b_cg, sbitmap_a_or_b, sbitmap_a_subset_b_p,
10530 sbitmap_a_or_b_and_c_cg, sbitmap_a_or_b_and_c,
10531 sbitmap_a_and_b_or_c_cg, sbitmap_a_and_b_or_c,
10532 sbitmap_first_set_bit, sbitmap_last_set_bit, dump_sbitmap,
10533 dump_sbitmap_file, debug_sbitmap, popcount_table,
10534 sbitmap_popcount): Constify.
10535 * sbitmap.h (const_sbitmap, const_sbitmap_ptr): New.
10536 (sbitmap_iterator, sbitmap_iter_init, dump_sbitmap,
10537 dump_sbitmap_file, sbitmap_copy, sbitmap_copy_n, sbitmap_equal,
10538 sbitmap_empty_p, sbitmap_union_of_diff, sbitmap_union_of_diff_cg,
10539 sbitmap_difference, sbitmap_not, sbitmap_a_or_b_and_c,
10540 sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c,
10541 sbitmap_a_and_b_or_c_cg, sbitmap_any_common_bits, sbitmap_a_and_b,
10542 sbitmap_a_and_b_cg, sbitmap_a_or_b, sbitmap_a_or_b_cg,
10543 sbitmap_a_xor_b, sbitmap_a_xor_b_cg, sbitmap_a_subset_b_p,
10544 sbitmap_first_set_bit, sbitmap_last_set_bit, debug_sbitmap,
10545 sbitmap_popcount, sbitmap_verify_popcount): Constify.
10546
e326eeb5
KG
105472007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10548
10549 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_element_zerop,
10550 bitmap_copy, bitmap_clear_bit, popcount_table, bitmap_count_bits,
10551 bitmap_first_set_bit, bitmap_and, bitmap_and_into,
10552 bitmap_elt_copy, bitmap_and_compl, bitmap_and_compl_into,
10553 bitmap_compl_and_into, bitmap_elt_ior, bitmap_ior,
10554 bitmap_ior_into, bitmap_xor, bitmap_xor_into, bitmap_equal_p,
10555 bitmap_intersect_p, bitmap_intersect_compl_p,
10556 bitmap_ior_and_compl, bitmap_ior_and_compl_into,
10557 debug_bitmap_file, debug_bitmap, bitmap_print, bitmap_hash):
10558 Constify.
10559 * bitmap.h (bitmap_copy, bitmap_equal_p, bitmap_intersect_p,
10560 bitmap_intersect_compl_p, bitmap_count_bits, bitmap_and,
10561 bitmap_and_into, bitmap_and_compl, bitmap_and_compl_into,
10562 bitmap_compl_and_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
10563 bitmap_xor_into, bitmap_ior_and_compl, bitmap_ior_and_compl_into,
10564 debug_bitmap, debug_bitmap_file, bitmap_print,
10565 bitmap_first_set_bit, bitmap_hash, bmp_iter_set_init,
10566 bmp_iter_and_init, bmp_iter_and_compl_init): Likewise.
10567
4352ed4d
DB
105682007-07-25 Daniel Berlin <dberlin@dberlin.org>
10569
10570 * config/darwin.c (darwin_override_options): Additional fix for
10571 debug info formats that don't support var tracking.
10572
e5cfc29f
KG
105732007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10574
10575 * cselib.c (entry_and_rtx_equal_p): Constify.
10576 * gengtype.c (output_mangled_typename, write_types, write_local):
10577 Likewise.
10578 * gengtype.h (const_type_p): New.
10579 * see.c (eq_descriptor_extension, hash_descriptor_extension):
10580 Constify.
10581 * tlink.c (scan_linker_output): De-constify.
10582 * tree-ssa-loop-im.c (memref_eq): Constify.
10583 * tree-ssa-structalias.c (const_shared_bitmap_info_t): New.
10584 (shared_bitmap_hash, shared_bitmap_eq): Constify.
10585
741ac903
KG
105862007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10587
10588 * c-common.c (fname_as_string, c_type_hash): Constify.
10589 * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
10590 * cgraph.c (edge_hash, edge_eq): Likewise.
10591 * dwarf2out.c (decl_die_table_eq, decl_loc_table_eq): Likewise.
10592 * emit-rtl.c (mem_attrs_htab_eq, reg_attrs_htab_hash,
10593 reg_attrs_htab_eq): Likewise.
10594 * except.c (t2r_eq, t2r_hash, ttypes_filter_eq, ehl_hash, ehl_eq):
10595 Likewise.
10596 * genautomata.c (const_reserv_sets_t, const_unit_decl_t,
10597 const_decl_t, const_state_t, const_automata_list_el_t): New.
10598 (first_out_arc, DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL,
10599 DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV,
10600 automaton_decl_hash, automaton_decl_eq_p, insn_decl_hash,
10601 insn_decl_eq_p, decl_hash, decl_eq_p, alt_state_cmp,
10602 reserv_sets_cmp, reserv_sets_eq, state_hash, state_eq_p,
10603 automata_list_hash, automata_list_eq_p, compare_states_for_equiv,
10604 compare_max_occ_cycle_nums, out_state_arcs_num,
10605 compare_transition_els_num, units_cmp, state_reservs_cmp):
10606 Constify.
10607 * genmodes.c (cmp_modes): Likewise.
10608 * ggc-common.c (saving_htab_hash, saving_htab_eq): Likewise.
10609 * gimplify.c (compare_case_labels): Likewise.
10610 * ipa-type-escape.c (get_name_of_type, type_brand_s): Likewise.
10611 * loop-unroll.c (si_info_hash, ve_info_hash): Likewise.
10612 * matrix-reorg.c (mtt_info_hash): Likewise.
10613 * postreload-gcse.c (hash_expr_for_htab, expr_equiv_p): Likewise.
10614 * rtl-factoring.c (const_p_hash_bucket, const_p_hash_elem): New.
10615 (htab_hash_bucket, htab_hash_elem): Constify.
10616 * tree-browser.c (TB_parent_eq): Likewise.
10617 * tree-scalar-evolution.c (hash_scev_info): Likewise.
10618 * tree-ssa-alias.c (sort_tags_by_id): Likewise.
10619 * tree-ssa-coalesce.c (const_coalesce_pair_p): New.
10620 (coalesce_pair_map_hash, coalesce_pair_map_eq, compare_pairs):
10621 Constify.
10622 * tree-ssa-dom.c (avail_expr_hash, avail_expr_eq): Likewise.
10623 * tree-ssa-pre.c (const_expr_pred_trans_t): New.
10624 (expr_pred_trans_hash, expr_pred_trans_eq): Constify.
10625 * tree-ssa-sccvn.c (const_vn_binary_op_t, const_vn_unary_op_t,
10626 const_vn_phi_t, const_vn_reference_op_t, const_vn_reference_t):
10627 New.
10628 (vn_reference_op_eq, vn_reference_hash, vn_reference_eq,
10629 vn_unary_op_hash, vn_unary_op_eq, vn_binary_op_hash,
10630 vn_binary_op_eq, vn_phi_hash, vn_phi_eq): Constify.
10631 * tree-ssa-threadupdate.c (redirection_data_hash,
10632 redirection_data_eq): Likewise.
10633 * tree-ssa-uncprop.c (equiv_hash, equiv_eq): Likewise.
10634 * tree-ssa.c (var_ann_eq): Likewise.
10635 * tree-vrp.c (compare_case_labels): Likewise.
10636 * tree.c (int_cst_hash_hash, int_cst_hash_eq,
10637 tree_map_base_marked_p, type_hash_marked_p, tree_check_failed,
10638 tree_not_check_failed, tree_class_check_failed,
10639 tree_range_check_failed, tree_not_class_check_failed,
10640 omp_clause_check_failed, omp_clause_range_check_failed,
10641 tree_contains_struct_check_failed, tree_operand_check_failed):
10642 Likewise.
10643 * tree.h (tree_contains_struct_check_failed, tree_check_failed,
10644 tree_not_check_failed, tree_class_check_failed,
10645 tree_range_check_failed, tree_not_class_check_failed,
10646 tree_operand_check_failed, omp_clause_operand_check_failed,
10647 tree_operand_length): Likewise.
10648 * var-tracking.c (const_variable): New.
10649 (variable_htab_hash, variable_htab_eq): Constify.
10650 * varasm.c (const_desc_hash): Likewise.
10651
9566a759
KG
106522007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10653
10654 * expr.c (handled_component_p): Constify.
10655 * fold-const.c (fit_double_type): Likewise.
10656 * real.h (real_value_from_int_cst): Likewise.
10657 * tree-flow-inline.h (gimple_in_ssa_p,
10658 gimple_aliases_computed_p, gimple_addressable_vars,
10659 gimple_call_clobbered_vars, gimple_referenced_vars,
10660 gimple_global_var, gimple_nonlocal_all, gimple_var_anns,
10661 end_htab_p, end_referenced_vars_p, var_ann, function_ann,
10662 may_aliases, end_readonly_imm_use_p, has_zero_uses,
10663 has_single_use, single_imm_use, num_imm_uses, is_exec_stmt,
10664 is_label_stmt, is_global_var, phi_ssa_name_p,
10665 factoring_name_p, is_call_clobbered, tree_common_ann,
10666 op_iter_done, end_imm_use_stmt_p, end_imm_use_on_stmt_p,
10667 unmodifiable_var_p, array_ref_contains_indirect_ref,
10668 ref_contains_array_ref, lookup_subvars_for_var,
10669 var_can_have_subvars, overlap_subvar, gimple_ssa_operands,
10670 gimple_mem_ref_stats): Likewise.
10671 * tree-flow.h (tree_common_ann, var_ann, function_ann,
10672 may_aliases, is_exec_stmt, is_label_stmt,
10673 ref_contains_array_ref, array_ref_contains_indirect_ref,
10674 var_can_have_subvars, overlap_subvar, is_call_clobbered,
10675 unmodifiable_var_p): Likewise.
10676 * tree-gimple.c (is_gimple_min_invariant): Likewise.
10677 * tree-gimple.h (is_gimple_min_invariant): Likewise.
10678 * tree.c (type_hash_list, attribute_hash_list, tree_size,
10679 cst_and_fits_in_hwi, real_value_from_int_cst,
10680 build_real_from_int_cst, integer_zerop, integer_onep,
10681 integer_all_onesp, integer_pow2p, integer_nonzerop, tree_log2,
10682 tree_floor_log2, real_zerop, real_onep, real_twop,
10683 real_minus_onep, really_constant_p, purpose_member, chain_member,
10684 list_length, fields_length, int_size_in_bytes, bit_position,
10685 int_bit_position, byte_position, int_byte_position, expr_align,
10686 array_type_nelts, tree_node_structure,
10687 type_contains_placeholder_1, iterative_hash_pointer,
10688 is_attribute_with_length_p, is_attribute_p, check_qualified_type,
10689 tree_map_base_eq, type_hash_list, type_hash_eq,
10690 attribute_hash_list, type_num_arguments, tree_int_cst_equal,
10691 tree_int_cst_lt, tree_int_cst_compare, host_integerp,
10692 tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
10693 simple_cst_list_equal, compare_tree_int, iterative_hash_expr,
10694 int_fits_type_p, get_containing_scope, decl_function_context,
10695 decl_type_context, omp_clause_operand_check_failed,
10696 initializer_zerop, int_cst_value, num_ending_zeros): Likewise.
10697 * tree.h (omp_clause_operand_check_failed, tree_size,
10698 build_real_from_int_cst, array_type_nelts, purpose_member,
10699 tree_int_cst_equal, tree_int_cst_lt, tree_int_cst_compare,
10700 host_integerp, tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
10701 is_attribute_p, check_qualified_type, expr_align,
10702 int_size_in_bytes, bit_position, int_bit_position, byte_position,
10703 int_byte_position, list_length, fields_length, initializer_zerop,
10704 integer_zerop, integer_onep, integer_all_onesp, integer_pow2p,
10705 integer_nonzerop, cst_and_fits_in_hwi, num_ending_zeros,
10706 tree_node_structure, handled_component_p, get_containing_scope,
10707 decl_function_context, decl_type_context, real_zerop,
10708 type_num_arguments, fit_double_type, really_constant_p,
10709 int_fits_type_p, tree_log2, tree_floor_log2, iterative_hash_expr,
10710 compare_tree_int, chain_member, simple_cst_list_equal, real_onep,
10711 real_twop, real_minus_onep, int_cst_value): Likewise.
10712
f7d504c2
KG
107132007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10714
10715 * cfglayout.c (insn_scope, insn_line): Constify.
10716 * emit-rtl.c (const_int_htab_hash, const_int_htab_eq,
10717 const_double_htab_hash, const_double_htab_eq,
10718 mem_attrs_htab_hash): Likewise.
10719 * loop-iv.c (biv_eq): Likewise.
10720 * print-rtl.c (print_rtx, print_decl_name, print_mem_expr,
10721 print_inline_rtx, debug_rtx, debug_rtx_list, debug_rtx_range,
10722 debug_rtx_find, print_rtl, print_rtl_single, print_simple_rtl):
10723 Likewise.
10724 * rtl-error.c (location_for_asm, diagnostic_for_asm,
10725 error_for_asm, warning_for_asm, _fatal_insn,
10726 _fatal_insn_not_found): Likewise.
10727 * rtl.c (rtx_size, shared_const_p, shallow_copy_rtx_stat,
10728 rtx_equal_p, rtl_check_failed_bounds, rtl_check_failed_type1,
10729 rtl_check_failed_type2, rtl_check_failed_code1,
10730 rtl_check_failed_code2, rtl_check_failed_code_mode,
10731 rtvec_check_failed_bounds, rtl_check_failed_flag): Likewise.
10732 * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
10733 rtl_check_failed_type2, rtl_check_failed_code1,
10734 rtl_check_failed_code2, rtl_check_failed_code_mode,
10735 rtvec_check_failed_bounds, rtl_check_failed_flag, LABEL_KIND,
10736 SET_LABEL_KIND, rhs_regno, subreg_lsb, subreg_regno, subreg_nregs,
10737 shared_const_p, rtx_size, shallow_copy_rtx_stat, rtx_equal_p,
10738 get_pool_mode, insn_line, insn_file, simplify_replace_rtx,
10739 mode_signbit_p, rtx_addr_can_trap_p, nonzero_address_p,
10740 rtx_unstable_p, get_integer_term, get_related_value,
10741 offset_within_block_p, reg_mentioned_p, count_occurrences,
10742 reg_referenced_p, reg_used_between_p, no_labels_between_p,
10743 single_set_2, multiple_sets, set_noop_p, refers_to_regno_p,
10744 reg_overlap_mentioned_p, dead_or_set_p, dead_or_set_regno_p,
10745 find_reg_note, find_regno_note, find_reg_equal_equiv_note,
10746 find_constant_src, find_reg_fusage, find_regno_fusage,
10747 pure_call_p, remove_note, side_effects_p, volatile_refs_p,
10748 volatile_insn_p, may_trap_p, may_trap_after_code_motion_p,
10749 may_trap_or_fault_p, inequality_comparisons_p, tablejump_p,
10750 computed_jump_p, auto_inc_p, in_expr_list_p,
10751 remove_node_from_expr_list, loc_mentioned_in_p,
10752 label_is_jump_target_p, reversed_comparison_code_parts,
10753 debug_rtx, debug_rtx_list, debug_rtx_range, debug_rtx_find,
10754 print_mem_expr, print_rtl, print_simple_rtl, print_rtl_single,
10755 print_inline_rtx): Likewise.
10756 * rtlanal.c (covers_regno_p, covers_regno_no_parallel_p,
10757 computed_jump_p_1, nonzero_bits1, rtx_unstable_p,
10758 rtx_addr_can_trap_p_1, rtx_addr_can_trap_p, nonzero_address_p,
10759 get_integer_term, get_related_value, offset_within_block_p,
10760 count_occurrences, reg_mentioned_p, no_labels_between_p,
10761 reg_used_between_p, reg_referenced_p, single_set_2,
10762 multiple_sets, set_noop_p, refers_to_regno_p,
10763 reg_overlap_mentioned_p, dead_or_set_p,
10764 covers_regno_no_parallel_p, covers_regno_p,
10765 dead_or_set_regno_p, find_reg_note, find_regno_note,
10766 find_reg_equal_equiv_note, find_constant_src, find_reg_fusage,
10767 find_regno_fusage, pure_call_p, remove_note, in_expr_list_p,
10768 remove_node_from_expr_list, volatile_insn_p, volatile_refs_p,
10769 side_effects_p, may_trap_p_1, may_trap_p,
10770 may_trap_after_code_motion_p, may_trap_or_fault_p,
10771 inequality_comparisons_p, tablejump_p, computed_jump_p_1,
10772 computed_jump_p, auto_inc_p, loc_mentioned_in_p, subreg_lsb,
10773 subreg_regno, subreg_nregs, label_is_jump_target_p): Likewise.
10774 * simplify-rtx.c (neg_const_int, plus_minus_operand_p,
10775 mode_signbit_p, simplify_replace_rtx, plus_minus_operand_p):
10776 Likewise.
10777 * toplev.h (_fatal_insn_not_found, _fatal_insn, error_for_asm,
10778 warning_for_asm): Likewise.
10779 * tree.h (print_rtl): Likewise.
10780 * varasm.c (get_pool_mode): Likewise.
10781
5f754896
KG
107822007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10783
10784 * c-lex.c (c_lex_with_flags, lex_string): Constify.
10785 * c-ppoutput.c (print_line, pp_dir_change): Likewise.
10786 * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
10787 * cfg.c (bb_copy_original_hash, bb_copy_original_eq): Likewise.
10788 * cfgloop.c (loop_exit_hash, loop_exit_eq): Likewise.
10789 * ddg.c (compare_sccs): Likewise.
10790 * df-scan.c (df_ref_compare, df_mw_compare): Likewise.
10791 * dfp.c (decimal_real_from_string, decimal_to_decnumber,
10792 decimal_to_binary, decimal_do_compare, decimal_real_to_decimal,
10793 decimal_do_fix_trunc, decimal_real_to_integer,
10794 decimal_real_to_integer2, decimal_real_maxval): Likewise.
10795 * dse.c (const_group_info_t): New.
10796 (invariant_group_base_eq, invariant_group_base_hash): Constify.
10797 * dwarf2out.c (const_dw_die_ref): New.
10798 (decl_die_table_hash, decl_die_table_eq, file_info_cmp): Constify.
10799 * tree-browser.c (TB_parent_eq): Likewise.
10800 * unwind-dw2-fde.c (__register_frame_info_bases,
10801 __deregister_frame_info_bases, fde_unencoded_compare, fde_split,
10802 add_fdes, linear_search_fdes, binary_search_unencoded_fdes):
10803 Likewise.
10804 * unwind-dw2-fde.h (get_cie, next_fde): Likewise.
10805 * unwind-dw2.c (uw_frame_state_for): Likewise.
10806 * value-prof.c (histogram_hash, histogram_eq): Likewise.
10807 * value-prof.h (const_histogram_value): New.
10808
d6076cee
RS
108092007-07-25 Richard Sandiford <richard@codesourcery.com>
10810
10811 * config/mips/mips.c (machine_function): Add
10812 initialized_mips16_gp_pseudo_p.
10813 (mips16_gp_pseudo_reg): Do not emit the initialization of
10814 mips16_gp_pseudo_rtx when being called from the gimple cost-
10815 calculation routines; emit it on the first use outside those
10816 routines.
10817
a57193e8
KG
108182007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10819
10820 * coretypes.h (const_bitmap, const_rtx, const_rtvec, const_tree):
10821 New.
10822
10823 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
10824 RTVEC_ELT, XWINT, XCWINT, XCMWINT, XCNMPRV, BLOCK_SYMBOL_CHECK,
10825 RTL_FLAG_CHECK1, RTL_FLAG_CHECK2, RTL_FLAG_CHECK3,
10826 RTL_FLAG_CHECK4, RTL_FLAG_CHECK5, RTL_FLAG_CHECK6,
10827 RTL_FLAG_CHECK7, RTL_FLAG_CHECK8, LABEL_KIND, SET_LABEL_KIND):
10828 Preserve const-ness of parameters through use of __typeof(),
10829 also constify and tidy.
10830
10831 * tree.h (TREE_CHECK, TREE_NOT_CHECK, TREE_CHECK2,
10832 TREE_NOT_CHECK2, TREE_CHECK3, TREE_NOT_CHECK3, TREE_CHECK4,
10833 NON_TREE_CHECK4, TREE_CHECK5, TREE_NOT_CHECK5,
10834 CONTAINS_STRUCT_CHECK, TREE_CLASS_CHECK, TREE_RANGE_CHECK,
10835 OMP_CLAUSE_SUBCODE_CHECK, OMP_CLAUSE_RANGE_CHECK, EXPR_CHECK,
10836 GIMPLE_STMT_CHECK, NON_TYPE_CHECK, TREE_VEC_ELT_CHECK,
10837 PHI_NODE_ELT_CHECK, OMP_CLAUSE_ELT_CHECK, TREE_OPERAND_CHECK,
10838 TREE_OPERAND_CHECK_CODE, GIMPLE_STMT_OPERAND_CHECK,
10839 TREE_RTL_OPERAND_CHECK, TREE_CHAIN, TREE_TYPE): Likewise.
10840
608063c3
JB
108412007-07-25 Julian Brown <julian@codesourcery.com>
10842 Mark Shinwell <shinwell@codesourcery.com>
10843
10844 * config/alpha/alpha.c (alpha_mangle_fundamental_type): Rename to...
10845 (alpha_mangle_type): This.
10846 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
10847 (TARGET_MANGLE_TYPE): Define this instead.
10848 * config/arm/arm-protos.h (arm_mangle_type): Add prototype.
10849 * config/arm/arm.c (TARGET_MANGLE_TYPE): Define target hook.
10850 (arm_init_neon_builtins): Fix comment.
10851 (arm_mangle_map_entry): New.
10852 (arm_mangle_map): New.
10853 (arm_mangle_type): New.
10854 * config/i386/i386.c (ix86_mangle_fundamental_type): Rename to...
10855 (ix86_mangle_type): This. Use TYPE_MAIN_VARIANT and restrict
10856 mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
10857 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
10858 (TARGET_MANGLE_TYPE): Define this instead.
10859 * config/ia64/ia64.c (ia64_mangle_fundamental_type): Rename to...
10860 (ia64_mangle_type): This. Use TYPE_MAIN_VARIANT and restrict
10861 mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
10862 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
10863 (TARGET_MANGLE_TYPE): Define this instead.
10864 * config/rs6000/rs6000.c (rs6000_mangle_fundamental_type): Rename
10865 to...
10866 (rs6000_mangle_type): This. Use TYPE_MAIN_VARIANT.
10867 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
10868 (TARGET_MANGLE_TYPE): Define this instead.
10869 * config/s390/s390.c (s390_mangle_fundamental_type): Rename to...
10870 (s390_mangle_type): This.
10871 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
10872 (TARGET_MANGLE_TYPE): Define this instead.
10873 * config/sparc/sparc.c (sparc_mangle_fundamental_type): Rename to...
10874 (sparc_mangle_type): This.
10875 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
10876 (TARGET_MANGLE_TYPE): Define this instead.
10877 * cp/mangle.c (write_type): Call mangle_type target hook on all
10878 types before mangling. Use original type, not main variant, as
10879 argument.
10880 * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename hook to...
10881 (TARGET_MANGLE_TYPE): This.
10882 * target.h (gcc_target): Rename mangle_fundamental_type to
10883 mangle_type.
10884 * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename section to...
10885 (TARGET_MANGLE_TYPE): This. Note slightly different semantics.
10886
88f77cba
JB
108872007-07-25 Julian Brown <julian@codesourcery.com>
10888 Paul Brook <paul@codesourcery.com>
10889 Joseph Myers <joseph@codesourcery.com>
10890 Mark Shinwell <shinwell@codesourcery.com>
10891
10892 * Makefile.in (TEXI_GCC_FILES): Add arm-neon-intrinsics.texi.
10893 * config.gcc (arm*-*-*): Add arm_neon.h to extra headers.
10894 (with_fpu): Allow --with-fpu=neon.
10895 * config/arm/aof.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
10896 * config/arm/aout.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
10897 * config/arm/arm-modes.def (EI, OI, CI, XI): New modes.
10898 * config/arm/arm-protos.h (neon_immediate_valid_for_move)
10899 (neon_immediate_valid_for_logic, neon_output_logic_immediate)
10900 (neon_pairwise_reduce, neon_expand_vector_init, neon_reinterpret)
10901 (neon_emit_pair_result_insn, neon_disambiguate_copy)
10902 (neon_vector_mem_operand, neon_struct_mem_operand, output_move_quad)
10903 (output_move_neon): Add prototypes.
10904 * config/arm/arm.c (FL_NEON): New flag for NEON processor capability.
10905 (all_fpus): Add FPUTYPE_NEON.
10906 (fp_model_for_fpu): Add NEON field.
10907 (arm_return_in_memory): Return vectors <= 16 bytes in ARM registers.
10908 (arm_arg_partial_bytes): Allow NEON vectors to be passed partially
10909 in registers.
10910 (arm_legitimate_address_p): Don't support fancy addressing for NEON
10911 structure moves.
10912 (thumb2_legitimate_address_p): Likewise.
10913 (neon_valid_immediate): Recognize and prepare constants suitable for
10914 NEON instructions.
10915 (neon_immediate_valid_for_move): New function. Recognize and prepare
10916 immediates for NEON move instructions.
10917 (neon_immediate_valid_for_logic): New function. Recognize and
10918 prepare immediates for NEON logic instructions.
10919 (neon_output_logic_immediate): New function. Create asm string
10920 suitable for outputting immediate logic instructions.
10921 (neon_pairwise_reduce): New function. Implement reduction using
10922 pairwise operations.
10923 (neon_expand_vector_init): New function. Expand a (possibly
10924 non-constant) vector initialization.
10925 (neon_vector_mem_operand): New function. Memory operands supported
10926 for quad-word loads/stores to/from ARM or NEON registers. Don't
10927 allow base+offset addressing for core regs.
10928 (neon_struct_mem_operand): New function. Valid mems for NEON
10929 structure moves.
10930 (coproc_secondary_reload_class): Enable NEON registers to be loaded
10931 from neon_vector_mem_operand addresses without a secondary register.
10932 (add_minipool_forward_ref): Handle >8-byte minipool entries.
10933 (add_minipool_backward_ref): Likewise.
10934 (dump_minipool): Likewise.
10935 (push_minipool_fix): Likewise.
10936 (output_move_quad): New function. Output quad-word moves, loads and
10937 stores using ARM registers.
10938 (output_move_vfp): Add support for vectors in VFP (NEON) D
10939 registers.
10940 (output_move_neon): Output a NEON load/store to/from a quadword
10941 register.
10942 (arm_print_operand): Implement new codes:
10943 - 'c' for unadorned integers (without a # sign).
10944 - 'J', 'K' for reg+2/reg+3, reg+3/reg+2 in little/big-endian
10945 mode.
10946 - 'e', 'f' for the low and high D parts of a NEON Q register.
10947 - 'q' outputs a NEON Q register.
10948 - 'h' outputs ranges of D registers for VLDM/VSTM etc.
10949 - 'T' prints NEON opcode features from a coded bitmask.
10950 - 'F' is similar to T, but signed/unsigned codes both print as
10951 'i'.
10952 - 't' is similar to T, but 'u' is printed instead of 'p'.
10953 - 'O' prints 'r' if NEON instruction should perform rounding (as
10954 specified by bitmask), else prints nothing.
10955 - '#' is a punctuation character to stop operand numbers from
10956 running together with following digits in the assembler
10957 strings for instructions (when using mode attributes).
10958 (arm_assemble_integer): Handle extra NEON vector modes. Permute
10959 constant vectors in big-endian mode, where necessary.
10960 (arm_hard_regno_mode_ok): Allow vectors in VFP/NEON registers.
10961 Handle EI, OI, CI, XI modes.
10962 (ashlv4hi3, ashlv2si3, lshrv4hi3, lshrv2si3, ashrv4hi3)
10963 (ashrv2si3): Rename IWMMXT2_BUILTINs to...
10964 (ashlv4hi3_iwmmxt, ashlv2si3_iwmmxt, lshrv4hi3_iwmmxt)
10965 (lshrv2si3_iwmmxt, ashrv4hi3_iwmmxt, ashrv2si3_iwmmxt): New names.
10966 (neon_builtin_type_bits): Add enumeration, one bit for each vector
10967 type.
10968 (v8qi_UP, v4hi_UP, v2si_UP, v2sf_UP, di_UP, v16qi_UP, v8hi_UP)
10969 (v4si_UP, v4sf_UP, v2di_UP, ti_UP, ei_UP, oi_UP, UP): Define macros
10970 to turn v8qi, etc. into bits defined above.
10971 (neon_itype): New enumeration. Classifications of NEON builtins.
10972 (neon_builtin_datum): Define struct. Contains information about
10973 a single builtin (with multiple modes).
10974 (CF): Define helper macro for...
10975 (VAR1...VAR10): Define builtins with a type, name and 1-10 different
10976 modes.
10977 (neon_builtin_data): New array. Define information about builtins
10978 for use during initialization/expansion.
10979 (arm_init_neon_builtins): New function.
10980 (arm_init_builtins): Call arm_init_neon_builtins if TARGET_NEON is
10981 true.
10982 (neon_builtin_compare): New function.
10983 (locate_neon_builtin_icode): New function. Find an insn code for a
10984 builtin given a function code for that builtin. Also return type of
10985 builtin (NEON_BINOP, NEON_UNOP etc.).
10986 (builtin_arg): New enumeration. Types of arguments for builtins.
10987 (arm_expand_neon_args): New function. Expand a generic NEON builtin.
10988 Takes a variable argument list of builtin_arg types, terminated by
10989 NEON_ARG_STOP.
10990 (arm_expand_neon_builtin): New function. Expand a NEON builtin.
10991 (neon_reinterpret): New function. Expand NEON reinterpret intrinsic.
10992 (neon_emit_pair_result_insn): New function. Support returning pairs
10993 of vectors via a pointer.
10994 (neon_disambiguate_copy): New function. Set up operands for a
10995 multi-word copy such that registers do not get clobbered.
10996 (arm_expand_builtin): Call arm_expand_neon_builtin if fcode >=
10997 ARM_BUILTIN_NEON_BASE.
10998 (arm_file_start): Set float-abi attribute for NEON.
10999 (arm_vector_mode_supported_p): Enable NEON vector modes.
11000 (arm_mangle_map_entry): New.
11001 (arm_mangle_map): New.
11002 (arm_mangle_vector_type): New.
11003 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_NEON__
11004 when appropriate.
11005 (TARGET_NEON): New macro. Target supports NEON.
11006 (fputype): Add FPUTYPE_NEON.
11007 (UNITS_PER_SIMD_WORD): Define. Allow quad-word registers to be used
11008 for vectorization based on command-line arg.
11009 (NEON_REGNO_OK_FOR_NREGS): Define.
11010 (VALID_NEON_DREG_MODE, VALID_NEON_QREG_MODE)
11011 (VALID_NEON_STRUCT_MODE): Define.
11012 (PRINT_OPERAND_PUNCT_VALID_P): '#' is valid punctuation.
11013 (arm_builtins): Add ARM_BUILTIN_NEON_BASE.
11014 * config/arm/arm.md (VUNSPEC_POOL_16): Insert constant for unspec.
11015 (consttable_16): Add pattern for outputting 16-byte minipool
11016 entries.
11017 (movv2si, movv4hi, movv8qi): Remove blank expanders (redefined in
11018 vec-common.md).
11019 (vec-common.md, neon.md): Include md files.
11020 * config/arm/arm.opt (mvectorize-with-neon-quad): Add option.
11021 * config/arm/constraints.md (constraint "Dn", "Dl", "DL"): Define.
11022 (memory_constraint "Ut", "Un", "Us"): Define.
11023 * config/arm/iwmmxt.md (VMMX, VSHFT): New mode macros.
11024 (MMX_char): New mode attribute.
11025 (addv8qi3, addv4hi3, addv2si3): Remove. Replace with...
11026 (*add<mode>3_iwmmxt): New insn pattern.
11027 (subv8qi3, subv4hi3, subv2si3): Remove. Replace with...
11028 (*sub<mode>3_iwmmxt): New insn pattern.
11029 (mulv4hi3): Rename to...
11030 (*mulv4hi3_iwmmxt): This.
11031 (smaxv8qi3, smaxv4hi3, smaxv2si3, umaxv8qi3, umaxv4hi3)
11032 (umaxv2si3, sminv8qi3, sminv4hi3, sminv2si3, uminv8qi3)
11033 (uminv4hi3, uminv2si3): Remove. Replace with...
11034 (*smax<mode>3_iwmmxt, *umax<mode>3_iwmmxt, *smin<mode>3_iwmmxt)
11035 (*umin<mode>3_iwmmxt): These.
11036 (ashrv4hi3, ashrv2si3, ashrdi3_iwmmxt): Replace with...
11037 (ashr<mode>3_iwmmxt): This new pattern.
11038 (lshrv4hi3, lshrv2si3, lshrdi3_iwmmxt): Replace with...
11039 (lshr<mode>3_iwmmxt): This new pattern.
11040 (ashlv4hi3, ashlv2si3, ashldi3_iwmmxt): Replace with...
11041 (ashl<mode>3_iwmmxt): This new pattern.
11042 * config/arm/neon-docgen.ml: New file. Generate documentation for
11043 intrinsics.
11044 * config/arm/neon-gen.ml: New file. Generate arm_neon.h header.
11045 * config/arm/arm_neon.h: New (autogenerated).
11046 * config/arm/neon-testgen.ml: New file. Generate NEON tests
11047 automatically.
11048 * config/arm/neon.md: New file. Define NEON instructions.
11049 * config/arm/neon.ml: New file. Abstract description of NEON
11050 instructions, used to generate arm_neon.h header, documentation and
11051 tests.
11052 * config/arm/t-arm (MD_INCLUDES): Add vec-common.md, neon.md.
11053 * vec-common.md: New file. Shared parts for iWMMXt and NEON vector
11054 support.
11055 * doc/extend.texi (ARM Built-in Functions): Rename and remove
11056 extraneous comma.
11057 (ARM NEON Intrinsics): New subsection.
11058 * doc/arm-neon-intrinsics.texi: New (autogenerated).
11059
107f82d2
DS
110602007-07-25 Danny Smith <dannysmith@users.sourceforge.net>
11061
11062 * config/i386/i386-protos.h (i386_pe_asm_file_end): Remove
11063 prototype.
11064
779d7a1a
JH
110652007-07-24 Jan Hubicka <jh@suse.cz>
11066
11067 * regclass.c (move_table): New type.
11068 (move_cost, may_move_in_cost, may_move_out_cost): Use it.
11069 (init_move_cost): Break out from ...
11070 (init_reg_sets_1): ... here; simplify computation of
11071 have_regs-of_mode and contains_reg_of_mode.
11072 (record_reg_classes): Unswitch internal loops.
11073 (copy_cost): Trigger lazy initialization of move cost
11074 (record_address_regs): Likewise.
11075
a857cbfb
DB
110762007-07-24 Daniel Berlin <dberlin@dberlin.org>
11077
11078 * config/darwin.c (darwin_override_options): Don't force on
11079 flag_var_tracking_uninit when no debug info is requested.
11080
4ed88ee3
ZD
110812007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
11082
11083 * cfgloop.c (init_loops_structure): New function.
11084 (flow_loops_find): Create root of the loop tree unconditionally.
11085
7d0a07d0
DJ
110862007-07-24 Daniel Jacobowitz <dan@codesourcery.com>
11087
11088 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use fold_convert.
11089
78187f5a
JH
110902007-07-24 Jan Hubicka <jh@suse.cz>
11091
11092 * caller-save.c: Include ggc.h, gt-caller-save.h
11093 (reg_save_code, reg_restore_code): Rename to ...
11094 (cached_reg_save_code, cached_reg_restore_code): ... those.
11095 (savepat, restpat, test_reg, test_mem, saveinsn, restinsn): New.
11096 (reg_save_code, reg_restore_code): New functions.
11097 (init_caller_save): Do not intialize
11098 reg_save_code/reg_restore_code tables.
b1e75954 11099 * Makefile.in: (gt-caller-save.h): New.
78187f5a 11100
3886f1d0
AK
111012007-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
11102
11103 * tree-ssa-ifcombine.c (ifcombine_ifandif): Use a ONE operand
11104 with the mode of the original operand instead of
11105 integer_one_node.
11106
6232eadc
JH
111072007-07-23 Jan Hubicka <jH@suse.cz>
11108
11109 * i386.c (ix86_secondary_memory_needed): Break out to...
11110 (inline_secondary_memory_needed): ... here.
11111 (ix86_memory_move_cost): Break out to ...
11112 (inline_memory_move_cost): ... here; add support for IN value of 2 for
11113 maximum of input and output; fix handling of Q_REGS on 64bit.
11114 (ix86_secondary_memory_needed): Microoptimize.
11115
3a796c6f
SP
111162007-07-23 Sebastian Pop <sebpop@gmail.com>
11117
11118 * tree-data-ref.c (find_vertex_for_stmt, create_rdg_edge_for_ddr,
11119 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
11120 stmts_from_loop, known_dependences_p, build_rdg): New.
11121 * tree-data-ref.h: Depends on graphds.h.
11122 (rdg_vertex, RDGV_STMT, rdg_dep_type, rdg_edge, RDGE_TYPE): New.
11123 (build_rdg): Declared.
11124 * Makefile.in (TREE_DATA_REF_H): Depends on graphds.h.
11125
623b0223
DB
111262007-07-23 Daniel Berlin <dberlin@dberlin.org>
11127
11128 * tree-ssa-propagate.c (valid_gimple_expression_p): Match up with
11129 ccp_min_invariant.
11130
7e0b4eae
PB
111312007-07-23 Peter Bergner <bergner@vnet.ibm.com>
11132 Jakub Jelinek <jakub@redhat.com>
11133
11134 PR middle-end/PR28690
c9d259cb
UB
11135 * optabs.c (expand_binop): (emit_cmp_and_jump_insns): Allow
11136 EQ compares.
7e0b4eae
PB
11137 * rtlanal.c (commutative_operand_precedence): Prefer both REG_POINTER
11138 and MEM_POINTER operands over REG and MEM operands.
11139 (swap_commutative_operands_p): Change return value to bool.
11140 * rtl.h: Update the corresponding prototype.
11141 * tree-ssa-address.c (gen_addr_rtx): Use simplify_gen_binary
11142 instead of gen_rtx_PLUS.
11143 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Change return
11144 value to bool. Change function arguments to rtx's and update code
11145 to match.
11146 (simplify_plus_minus): Update the simplify_plus_minus_op_data_cmp
11147 calls to match the new declaration.
11148 * simplify-rtx.c (simplify_associative_operation): Don't
11149 reorder simplify_binary_operation arguments.
11150
a05bea76
RS
111512007-07-23 Richard Sandiford <richard@codesourcery.com>
11152
11153 * config/mips/mips.c (override_options): Use mips_costs to derive
11154 the default branch cost.
11155 * config/mips/mips.h (BRANCH_COST): Use mips_branch_cost rather
11156 than mips_costs.
11157 * config/mips/mips.opt (mbranch-cost=): New option.
376164b9 11158 * doc/invoke.texi (-mbranch-cost): Document new MIPS option.
a05bea76 11159
fe3465d1
RS
111602007-07-23 Richard Sandiford <richard@codesourcery.com>
11161
11162 * config/mips/mips.h (GR_REG_CLASS_P, COP_REG_CLASS_P): Delete.
11163 (SECONDARY_MEMORY_NEEDED): Delete commented-out definition.
fae4095f 11164 * config/mips/mips.c (mips_register_move_cost): Use reg_class_subset_p
fe3465d1
RS
11165 instead of GR_REG_CLASS_P and COP_REG_CLASS_P.
11166
f348741d
RS
111672007-07-23 Richard Sandiford <richard@codesourcery.com>
11168
11169 * config/mips/constraints.md (ks): New constraint.
11170 * config/mips/mips.md (*add<mode>3_sp1, *add<mode>3_sp2): Fold into...
2b656cfd 11171 (*add<mode>3_mips16): ...here.
f348741d 11172
d0c9d431
UB
111732007-07-21 Uros Bizjak <ubizjak@gmail.com>
11174
11175 * optabs.h (enum optab_index): Add new OTI_signbit.
11176 (signbit_optab): Define corresponding macro.
11177 (enum insn_code signbit_optab[]): Remove array.
11178 * optabs.c (init_optabs): Initialize signbit_optab using init_optab.
11179 (expand_copysign_absneg): If back end provides signbit insn, use it
11180 instead of bit operations on floating point argument.
11181 * builtins.c (enum insn_code signbit_optab[]): Remove array.
c9d259cb
UB
11182 (expand_builtin_signbit): Check signbit_optab->handlers[].insn_code
11183 for availability of signbit insn.
d0c9d431
UB
11184
11185 * config/i386/i386.md (signbit<mode>2): New insn pattern to implement
11186 signbitf, signbit and signbitl built-ins as inline x87 intrinsics when
11187 SSE mode is not active.
11188 (isinf<mode>2): Disable for mfpmath=sse,387.
11189
d3960cf4
BE
111902007-07-22 Ben Elliston <bje@au.ibm.com>
11191
11192 * regclass.c (invalid_mode_change_p): Attach ATTRIBUTE_UNUSED to
11193 `class' parameter.
11194 * struct-equiv.c (note_local_live): Likewise for `y_regno'.
11195
d40055ab
RG
111962007-07-20 Richard Guenther <rguenther@suse.de>
11197
11198 * tree-cfg.c (verify_expr): COND_EXPRs can have any
11199 integral typed condition.
11200 * tree-ssa.c (useless_type_conversion_p): Do not preserve
11201 booleanness. Only preserve conversions from a non-base
11202 type to a base type, not in general between types with
11203 different TYPE_MIN_VALUE or TYPE_MAX_VALUE.
11204 * tree.def (COND_EXPR): Document that the condition
11205 can be of any integral type.
11206
48156a39
NS
112072007-07-20 Nigel Stephens <nigel@mips.com>
11208 Richard Sandiford <richard@codesourcery.com>
11209
11210 * config/mips/mips.h (mips_dwarf_regno): Declare.
11211 (DBX_REGISTER_NUMBER): Remove redundant brackets.
11212 (HI_REGNUM, LO_REGNUM): Define in an endian-dependent way.
11213 (AC1HI_REGNUM, AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM)
11214 (AC3HI_REGNUM, AC3LO_REGNUM, ACC_HI_REG_P): Delete.
11215 (reg_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
11216 (REG_CLASS_NAMES): Update accordingly.
11217 * config/mips/mips.c (mips_dwarf_regno): New array.
11218 (mips_regno_to_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
11219 (mips_subword): Remove special handling for accumulator registers.
11220 (override_options): Initiailize mips_dwarf_regno. Remove use
11221 of ACC_HI_REG_P.
11222 (mips_swap_registers): New function.
11223 (mips_conditional_register_usage): Swap accumulator registers
11224 around if TARGET_LITTLE_ENDIAN.
11225 (mips_cannot_change_mode_class): Remove special treatment of ACC_REGS.
11226 * config/mips/constraints.md (h, l): Use the endianness to choose
11227 between MD0_REG and MD1_REG.
11228 * config/mips/mips.md (*mfhilo_<mode>_macc): Use a fixed-string,
11229 alternative-dependent template.
11230
08a576fb
RS
112312007-07-20 Richard Sandiford <richard@codesourcery.com>
11232
11233 * config/arm/arm.md (movsi): Use can_create_pseudo_p instead of
11234 no_new_pseudos.
11235
30a873c3
ZD
112362007-07-20 Zdenek Dvorak <dvorakz@suse.cz>
11237
11238 * function.c (thread_prologue_and_epilogue_insns): Fix exit
11239 predecessor fallthru flags.
11240
d24a32a1
ZD
112412007-07-20 Zdenek Dvorak <dvorakz@suse.cz>
11242
11243 * tree-ssa-loop-niter.c (assert_loop_rolls_lt): Convert the operands
11244 of compare to the same type.
11245 * cfgloopmanip.c (add_loop): Update information about loop exits.
11246 (loop_version): Remove the innermost loop requirement.
11247 * tree-ssa-loop-manip.c (determine_exit_conditions): Convert bounds
11248 to sizetype for pointers.
11249
a6c9b188
L
112502007-07-18 H.J. Lu <hongjiu.lu@intel.com>
11251
11252 * Makefile.in (D32PBIT_FUNCS): Add _sd_to_tf and _tf_to_sd.
11253 (D64PBIT_FUNCS): Add _dd_to_tf and _tf_to_dd.
11254 (D128PBIT_FUNCS): Add _td_to_tf and _tf_to_td.
11255
11256 * config/dfp-bit.c: Empty for TFmode conversions.
11257
0ef0421e
CT
112582007-07-18 Caroline Tice <ctice@apple.com>
11259
6ef5231b 11260 * var-tracking.c (find_src_status): Check for COND_EXEC insns
0ef0421e
CT
11261 and handle them correctly; check that src is not NULL before
11262 trying to use it.
11263 (find_src_set_src): Likewise.
11264
2a48b790
BW
112652007-07-18 Bob Wilson <bob.wilson@acm.org>
11266
11267 * config/xtensa/xtensa.c (xtensa_expand_mask_and_shift): New.
11268 (struct alignment_context, init_alignment_context): New.
11269 (xtensa_expand_compare_and_swap, xtensa_expand_atomic): New.
11270 * config/xtensa/xtensa.h (XCHAL_HAVE_RELEASE_SYNC): Add default.
11271 (XCHAL_HAVE_S32C1I): Likewise.
11272 (TARGET_RELEASE_SYNC, TARGET_S32C1I): New.
11273 * config/xtensa/xtensa.md (UNSPECV_MEMW): New constant.
11274 (UNSPECV_S32RI, UNSPECV_S32C1I): Likewise.
11275 (ATOMIC, HQI): New macros.
11276 (memory_barrier, *memory_barrier): New.
11277 (sync_lock_releasesi): New.
11278 (sync_compare_and_swapsi, sync_compare_and_swap<mode>): New.
11279 (sync_lock_test_and_set<mode>): New.
11280 (sync_<atomic><mode>): New.
11281 (sync_old_<atomic><mode>, sync_new_<atomic><mode>): New.
11282 * config/xtensa/xtensa-protos.h (xtensa_expand_compare_and_swap): New.
11283 (xtensa_expand_atomic): New.
11284
8a91c45b
KG
112852007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11286
11287 PR target/30652
11288
11289 * builtins.c (expand_builtin_interclass_mathfn): Provide a generic
11290 transformation for builtin ISNORMAL.
11291 (expand_builtin): Handle BUILT_IN_ISNORMAL.
11292 * builtins.def (BUILT_IN_ISNORMAL): New.
11293 * doc/extend.texi: Document isnormal.
11294
0c8d3c2b
KG
112952007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11296
11297 PR target/30652
11298
11299 * builtins.c (expand_builtin_interclass_mathfn): Allow for missing
11300 optabs infrastructure. Provide generic implementation for
11301 FINITE/ISFINITE.
11302 (expand_builtin): Handle FINITE/ISFINITE.
11303 (fold_builtin_classify): Make ISFINITE canonical instead of FINITE.
11304 (fold_builtin_1): Likewise.
11305
11306 * builtins.def (BUILT_IN_ISFINITE): New.
11307
11308 * doc/extend.texi: Document isfinite.
11309
7faa1bbb
KG
113102007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11311
11312 PR target/30652
11313 PR middle-end/20558
11314
11315 * builtins.c (expand_builtin_interclass_mathfn): Provide a
11316 generic fallback for isinf.
11317 * c-cppbuiltin.c (builtin_define_float_constants): Move FP max
11318 calculation code ...
11319 * real.c (get_max_float): ... to here.
11320 * real.h (get_max_float): New.
11321
b5d32c25
KG
113222007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11323
11324 PR middle-end/32668
11325
11326 * builtin-attrs.def (ATTR_TYPEGENERIC,
11327 ATTR_CONST_NOTHROW_TYPEGENERIC): New.
11328
11329 * builtins.def (BUILT_IN_ISINF, BUILT_IN_ISNAN,
11330 BUILT_IN_ISGREATER, BUILT_IN_ISGREATEREQUAL, BUILT_IN_ISLESS,
11331 BUILT_IN_ISLESSEQUAL, BUILT_IN_ISLESSGREATER,
11332 BUILT_IN_ISUNORDERED): Use ATTR_CONST_NOTHROW_TYPEGENERIC.
11333
11334 * c-common.c (handle_type_generic_attribute): New.
11335 (c_common_attribute_table): Add "type generic".
11336
11337 * c-typeck.c (convert_arguments): Handle "type generic" functions.
11338
c3e4e34d
DB
113392007-07-18 Daniel Berlin <dberlin@dberlin.org>
11340
11341 * tree-ssa-sccvn.c (try_to_simplify): Use valid_gimple_expression
11342 * tree-ssa-propagate (valid_gimple_expression): Handle ADDR_EXPR
11343 properly.
11344
9e19a50c
RIL
113452007-07-18 Rask Ingemann Lambertsen <rask@sygehus.dk>
11346
11347 PR target/32808
11348 * config/cris/cris.c (cris_print_index): Don't use XEXP before
11349 checking that the operand is an expression.
11350
b8a10943
CW
113512007-07-19 Christoph von Wittich <Christoph_vW@reactos.org>
11352 Danny Smith <dannysmith@users.sourceforge.net>
11353
11354 PR/other 30335
11355 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Put
11356 file mapping object in local namespace if Windows version later
11357 than NT4
11358
8426b956
RS
113592007-07-18 Richard Sandiford <richard@codesourcery.com>
11360
11361 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Declare.
11362 * config/arm/arm.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
11363 arm_cannot_force_const_mem.
11364 (arm_cannot_force_const_mem): New function.
11365 * config/arm/arm.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macro.
11366 (LEGITIMATE_CONSTANT_P): Test arm_cannot_force_const_mem instead
11367 of arm_tls_referenced_p.
11368 * config/arm/arm.md (movsi): Split out-of-section constants when
11369 ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P.
11370 * config/arm/vxworks.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
11371
12b36be2
RS
113722007-07-18 Richard Sandiford <richard@codesourcery.com>
11373
11374 * config/mips/mips.md (clear_cache): Treat the size argument as Pmode.
11375
13e77ed9
RS
113762007-07-18 Richard Sandiford <richard@codesourcery.com>
11377
11378 * config/mips/mips.md (*extendqihi2): Convert the destination
11379 to SImode.
11380
0af0580f
JDA
113812007-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11382
11383 * config/pa/fptr.c: Update license header.
11384 * config/pa/milli64.S: Likewise.
11385
4c85af60
NC
113862007-07-17 Nick Clifton <nickc@redhat.com>
11387
11388 * COPYING_v3: New file. Contains version 3 of the GNU General
11389 Public License.
11390 * COPYING.LIB_v3: New file. Contains version 3 of the GNU
11391 Lesser General Public License.
11392 * doc/include/gpl_v3.texi: New file. Contains version 3 of
11393 the GNU General Public License.
11394
9f2e9ac4
ZD
113952007-07-17 Zdenek Dvorak <dvorakz@suse.cz>
11396
11397 PR rtl-optimization/32773
11398 * cfglayout.c (force_one_exit_fallthru): New function.
11399 (cfg_layout_finalize): Use it.
11400
fd95ee7c
RG
114012007-07-16 Richard Guenther <rguenther@suse.de>
11402 Uros Bizjak <ubizjak@gmail.com>
11403
11404 * tree-if-conv.c (find_phi_replacement_condition): Unshare "*cond"
11405 before forcing it to gimple operand.
11406
d56b9f12
SL
114072007-07-16 Sandra Loosemore <sandra@codesourcery.com>
11408 David Ung <davidu@mips.com>
11409
d5d5d289 11410 * config/mips/mips.h (TUNE_24K): Define.
d56b9f12 11411 (TUNE_MACC_CHAINS): Add TUNE_24K.
d5d5d289
L
11412 * config/mips/mips.md: (*mul_acc_si, *mul_sub_si): Change type to
11413 imadd.
11414 * config/mips/74k.md (r74k_int_mult): Split madd/msub to ..
11415 (r74k_int_madd): .. this new reservation.
11416 (define_bypass): Fixed bypasses for r74k_int_madd to use
d56b9f12 11417 mips_linked_madd_p.
d5d5d289
L
11418 * config/mips/24k.md (define_bypass): Define new
11419 r24k_int_mul3->r24k_int_madd bypass using mips_linked_madd_p.
d56b9f12 11420
0015c873
SL
114212007-07-16 Sandra Loosemore <sandra@codesourcery.com>
11422 Nigel Stephens <nigel@mips.com>
11423
6ef5231b 11424 * config/mips/mips.md: Include 20kc.md.
0015c873
SL
11425 * config/mips/20kc.md: New file.
11426 * config/mips/mips.c (mips_rtx_cost_data): Fill in 20Kc costs.
11427 (mips_adjust_cost): Tweak for 20Kc.
11428 (mips_issue_rate): Likewise.
11429 * config/mips/mips.h (TUNE_20KC): Define.
11430
0b11da67
DE
114312007-07-16 David Edelsohn <edelsohn@gnu.og>
11432
11433 * config/rs6000/rs6000.c (struct processor_cost): Add
11434 cache_line_size, l1_cache_lines, and simultaneous_prefetches
11435 fields.
11436 (*_cost): Add cache information.
11437 (rs6000_override_options): Set cache parameters.
11438
40f5cc95
RO
114392007-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11440
11441 PR bootstrap/3456
11442 * config.gcc (mips-sgi-irix[56]*): Enable pthread support.
11443 * doc/install.texi (mips-sgi-irix6): pthread support works now.
11444
dab0324a
PB
114452007-07-16 Paul Brook <paul@codesourcery.com>
11446
11447 PR target/32753
dab0324a 11448 * config/arm/cirrus.md (cirrus_arm_movsi_insn): Remove dead insn.
fb028571 11449 (cirrus_thumb2_movsi_insn): Ditto.
dab0324a 11450
fb0671a8
GK
114512007-07-15 Geoffrey Keating <geoffk@apple.com>
11452
11453 * config/rs6000/darwin-fallback.c (interpret_libc): Change
11454 CR2_REGNO to R_CR2.
11455
759580ed
AH
114562007-07-15 Andrew Haley <aph@redhat.com>
11457
11458 * unwind-sjlj.c (_Unwind_GetIPInfo): Check for context->fc != NULL
11459 before looking in the context.
11460
16c16a24
JDA
114612007-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11462
11463 PR middle-end/32398
11464 PR middle-end/32769
11465 * pa-protos.h (pa_eh_return_handler_rtx): Declare.
11466 * pa.c (pa_extra_live_on_entry, rp_saved): Declare.
11467 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
c9d259cb
UB
11468 (pa_output_function_prologue): Use rp_saved and
11469 current_function_is_leaf to generate .CALLINFO statement.
16c16a24
JDA
11470 (hppa_expand_prologue): Set rp_saved.
11471 (hppa_expand_epilogue): Use rp_saved.
11472 (pa_extra_live_on_entry, pa_eh_return_handler_rtx): New functions.
11473 * pa.h (EH_RETURN_HANDLER_RTX): Use pa_eh_return_handler_rtx.
11474
639d3040
DM
114752007-07-14 Dirk Mueller <dmueller@suse.de>
11476
11477 * omega.c (coalesce): Fix memory leak on early exit.
11478 * matrix-reorg.c (check_allocation_function): Likewise.
11479 * tree-vect-transform.c (vect_get_new_vect_var): free result
11480 of concat().
11481 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
11482 pass pointer to edge vector
11483 (partition_hot_cold_basic_blocks): Fix memory leak.
11484 * collect2.c (prefix_from_string): Free temporary storage.
11485 * reload1.c (fixup_abnormal_edges): Free sbitmap.
11486
00f46785
KK
114872007-07-14 Kaz Kojima <kkojima@gcc.gnu.org>
11488
11489 * config/sh/sh.h (DO_GLOBAL_CTORS_BODY): Add void to prototype.
11490 (DO_GLOBAL_DTORS_BODY): Likewise.
11491
27e3a7bc
SL
114922007-07-14 Sandra Loosemore <sandra@codesourcery.com>
11493 Nigel Stephens <nigel@mips.com>
11494
11495 * config/mips/mips.c (mips_classify_symbol): Don't return
11496 SYMBOL_SMALL_DATA for constant pool addresses if
11497 TARGET_EMBEDDED_DATA is true.
11498
e41ef486
UB
114992007-07-14 Uros Bizjak <ubizjak@gmail.com>
11500
11501 * config/i386/i386.c (init_mmx_sse_builtins): Define all builtins
11502 except __builtin_ia32_emms, __builtin_ia32_ldmxcsr,
11503 __builtin_ia32_stmxcsr, __builtin_ia32_maskmovq, __builtin_ia32_loadups,
11504 __builtin_ia32_storeups, __builtin_ia32_loadhps, __builtin_ia32_loadlps,
11505 __builtin_ia32_storehps, __builtin_ia32_storelps,
11506 __builtin_ia32_movntps, __builtin_ia32_movntq, __builtin_ia32_sfence,
11507 __builtin_ia32_femms, __builtin_ia32_maskmovdqu, __builtin_ia32_loadupd,
11508 __builtin_ia32_storeupd, __builtin_ia32_loadhpd, __builtin_ia32_loadlpd,
11509 __builtin_ia32_movnti, __builtin_ia32_movntpd, __builtin_ia32_movntdq,
11510 __builtin_ia32_clflush, __builtin_ia32_lfence, __builtin_ia32_mfence,
11511 __builtin_ia32_loaddqu, __builtin_ia32_storedqu, __builtin_ia32_monitor,
11512 __builtin_ia32_mwait, __builtin_ia32_lddqu, __builtin_ia32_movntdqa,
11513 __builtin_ia32_movntsd and __builtin_ia32_movntss as const builtins
11514 using def_builtin_const.
11515
8d1341f7
EB
115162007-07-14 Eric Botcazou <ebotcazou@adacore.com>
11517
11518 PR tree-optimization/32705
11519 * tree-ssa-sccvn.c (set_ssa_val_to): Accept VN_TOP as value number.
11520 (simplify_binary_expression): Use SSA_VAL consistently.
11521
1de43f85
DE
115222007-07-13 David Edelsohn <edelsohn@gnu.org>
11523
11524 * config/rs6000/spe.md (SPE_ACC_REGNO): Delete definition.
11525 (SPEFSCR_REGNO): Delete definition.
11526 * config/rs6000/rs6000.c: LINK_REGISTER_REGNUM -> LR_REGNO.
11527 COUNT_REGISTER_REGNUM -> CTR_REGNO.
11528 * config/rs6000/rs6000.h: Do not define *_REGNO.
11529 LINK_REGISTER_REGNUM -> LR_REGNO.
11530 COUNT_REGISTER_REGNUM -> CTR_REGNO.
11531 * config/rs6000/predicates.md: LINK_REGISTER_REGNUM -> LR_REGNO.
11532 COUNT_REGISTER_REGNUM -> CTR_REGNO.
11533 * config/rs6000/linux-unwind.h: Define R_LR, R_CR2, R_VR0,
11534 R_VRSAVE, R_VSCR. Use them.
11535 * config/rs6000/darwin-fallback.c: Define R_LR, R_CTR, R_CR2,
11536 R_XER, R_VR0, R_VRSAVE, R_VSCR, R_SPEFSCR. Use them.
11537 * config/rs6000/rs6000.md: Define REGNO constants. Use them.
11538 * config/rs6000/aix.h: Define R_LR. Use it.
11539
62760ffd
CT
115402007-07-13 Caroline Tice <ctice@apple.com>
11541
11542 * toplev.c (process_options): Turn flag_var_tracking_uninit off when
11543 flag_var_tracking is explicitly turned off (i.e. when variable
11544 tracking is not feasible); otherwise, turn flag_var_tracking on when
11545 flag_var_tracking_uninit is on.
11546 * rtl.def (VAR_LOCATION): Add a new integer subfield to VAR_LOCATION
11547 note definitions, to allow recording of initialization status in the
11548 notes.
11549 * dwarf2out.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
11550 (add_var_loc_to_decl): Add comparison of NOTE_VAR_LOCATION_STATUS to
11551 determine if two note locations are equal.
11552 (output_loc_list): Don't output list entries whose start & end labels
11553 are the same.
11554 (reg_loc_descriptor): Add parameter for initialization status; pass it
11555 to other loc descriptor functions.
11556 (one_reg_loc_descriptor): Add parameter for initialization status;
11557 check its value and add DW_OP_GNU_uninit to returned loc descr if
11558 appropriate.
11559 (multiple_reg_loc_descriptor): Add parameter for initialization
11560 status;
11561 pass init status argument to other loc descriptor functions; check
11562 value of intialization parameter and add DW_OP_GNU_uninit to returned
11563 loc descr if appropriate.
11564 (based_loc_descr): Add parameter for initialization status; add new
11565 variable for return value; check value of initialization parameter and
11566 add DW_OP_GNU_uninit to returned loc descr if appropriate.
11567 (concatn_mem_loc_descriptor): Add parameter for initialization status;
11568 pass init status argument to other loc descriptor functions; check
11569 value of intialization parameter and add DW_OP_GNU_uninit to returned
11570 loc descr if appropriate.
11571 (mem_loc_descriptor): Likewise.
11572 (concat_loc_descriptor): Likewise.
11573 (concatn_loc_descriptor): Likewise.
11574 (loc_descriptor): Add parameter for initialization status; pass it as
11575 argument to other loc descriptor function calls.
11576 (loc_descriptor_from_tree_1): Add appropriate initialization status
11577 to loc descriptor function calls.
11578 (add_location_or_const_value_attribute): Get initialization status
11579 from VAR_LOCATION note; add initialization status to loc descriptor
11580 function calls.
11581 * dwarf2.h (enum dwarf_location_atom): New op, DW_OP_GNU_uninit.
11582 * print-rtl.c (print_rtx): When printing a VAR_LOCATION note, if
11583 status is uninitialized, add "[uninint]" to output.
11584 * common.opt (fvar-tracking-uninit): New option, similar to
11585 fvar-tracking, to turn on tracking of uninitialized variables; creates
11586 a new global flag, flag_var_tracking_uninit.
11587 * rtl.h (NOTE_VAR_LOCATION_STATUS): New macro for accessing new field.
11588 (enum var_init_status): New type, for var initialization status field.
11589 * var-tracking.c (struct location_chain_def): Two new fields, init,
11590 for initialization status, and set_src for the assignment value expr.
11591 (unshare_variable): New parameter for initialization status;
11592 initialize new init and set_src fields.
11593 (var_reg_set): New parameters for initialization status and value;
11594 pass them to set_variable_part.
11595 (var_mem_set): Likewise.
11596 (get_init_value): New function.
11597 (var_reg_delete_and_set): New initialization status & value
11598 parameters; add call to get_init_value if status is unknown; pass new
11599 parameters to clobber_variable_part and var_reg_set.
11600 (var_mem_delete_and_set): Likewise.
11601 (var_reg_delete): Pass null set_src value to clobber_variable_part.
11602 (var_mem_delete): Likewise.
11603 (variable_union): Pass status to unshare_variable; initialize new init
11604 and set_src fields. If flag_var_tracking_uninit is not set, force
11605 status to initialized.
11606 (add_stores): Store insn, rather than NEXT_INSN(insn), so it can be
11607 used later to get the set_src value.
11608 (find_src_status): New function.
11609 (find_src_set_src): New function.
11610 (compute_bb_dataflow): Pass init status to calls to var_reg_set,
11611 var_mem_set, var_reg_delete_and_set and var_mem_delete_and_set; for
11612 MO_SET, get set_src value and pass it to var_reg_delete_and_set
11613 and var_mem_delete_and_set.
11614 (dump_variable): Print out "[uninit]" if appropriate.
11615 (set_variable_part): Add new initialization and set_src parameters;
11616 pass status to unshare_variable; set node->init and node- >set_src
11617 fields and modify slot in hash table appropriately; save the init and
11618 set_src values if appropriate and assign to the new node.
11619 (clobber_variable_part): New set_src parameter; if two nodes have
11620 same variable and same location but different set_src (assignment)
11621 values, clobber old node.
11622 (delete_variable_part): Pass init status to unshare_variable.
11623 (emit_note_insn_var_location): Add initialized var; assign var's init
11624 status to new 'initialized'; pass new init status field to calls to
11625 gen_rtx_VAR_LOCATION. If flag_var_tracking_uninit is not set, force
11626 status to initialized.
11627 (emit_notes_in_bb): Pass initialization status to calls to
11628 var_reg_set, var_mem_set, var_reg_delete_and_set and
11629 var_mem_delete_and_set; for MO_SET, get set_src value and pass it to
11630 var_reg_delete_and_set and var_mem_delete_and_set; call
11631 emit_notes_for_changes on NEXT_INSN(insn) rather than on insn, to
11632 make up for change in add_stores.
11633 (vt_add_function_parameters): Add status to calls to
11634 set_variable_part.
11635 * config/darwin.c (darwin_override_options): Turn on uninitialized
11636 tracking automatically, if var_tracking is on and the system is
11637 10.5 or higher.
11638
39aeae85
SL
116392007-07-13 Sa Liu <saliu@de.ibm.com>
11640
11641 * config.gcc: Add options for arch and tune on SPU.
11642 * config/spu/predicates.md: Add constant operands 0 and 1.
11643 * config/spu/spu-builtins.def: Add builtins for double precision
11644 floating point comparison: si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt,
11645 si_dftsv, spu_cmpeq_13, spu_cmpabseq_1, spu_cmpgt_13, spu_cmpabsgt_1,
11646 spu_testsv.
11647 * config/spu/spu-c.c: Define __SPU_EDP__ when builtins invoked with
11648 a CELLEDP target.
11649 * config/spu/spu-protos.h: Add new function prototypes.
11650 * config/spu/spu.c (spu_override_options): Check options -march and
11651 -mtune.
11652 (spu_comp_icode): Add comparison code for DFmode and vector mode.
11653 (spu_emit_branch_or_set): Use the new code for DFmode and vector
11654 mode comparison.
11655 (spu_const_from_int): New. Create a vector constant from 4 ints.
11656 (get_vec_cmp_insn): New. Get insn index of vector compare instruction.
11657 (spu_emit_vector_compare): New. Emit vector compare.
11658 (spu_emit_vector_cond_expr): New. Emit vector conditional expression.
11659 * config/spu/spu.h: Add options -march and -mtune. Define processor
11660 types PROCESSOR_CELL and PROCESSOR_CELLEDP. Define macro
11661 CANONICALIZE_COMPARISON.
11662 * config/spu/spu.md: Add new insns for double precision compare
11663 and double precision vector compare. Add vcond and smax/smin patterns
11664 to enable DFmode vector conditional expression.
11665 * config/spu/spu.opt: Add options -march and -mtune.
11666 * config/spu/spu_internals.h: Add builtins for CELLEDP target:
11667 si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt, si_dftsv. Add builtin for
11668 both CELL and CELLEDP targets: spu_testsv.
11669 * config/spu/spu_intrinsics.h: Add flag mnemonics for test special
11670 values.
11671
cbf8d355
RG
116722007-07-13 Richard Guenther <rguenther@suse.de>
11673
11674 PR tree-optimization/32721
11675 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Preserve
11676 TREE_THIS_VOLATILE on the folded reference.
11677 * tree-ssa-operands.c (get_expr_operands): Set has_volatile_ops
11678 if the array reference has TREE_THIS_VOLATILE set.
11679
248f01d4
L
116802007-07-13 H.J. Lu <hongjiu.lu@intel.com>
11681
11682 PR other/32188
11683 * doc/libgcc.texi: Update DFP intrinsics for DPD and BID.
11684
36f568c3
AS
116852007-07-13 Andreas Schwab <schwab@suse.de>
11686
11687 * gengtype-lex.l: Allow declarations to be indented.
11688
1617e5ee
GK
116892007-07-12 Geoffrey Keating <geoffk@apple.com>
11690
11691 * ginclude/tgmath.h: New.
11692 * config.gcc: Use GCC's tgmath.h on non-glibc systems.
11693 * doc/sourcebuild.texi (Headers): Document use_gcc_tgmath.
11694 * configure.ac (STMP_FIXPROTO): Honor use_gcc_tgmath.
11695 * configure: Regenerate.
11696
192c543c
KK
116972007-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
11698
11699 * config/sh/linux-unwind.h (sh_fallback_frame_state): Use
11700 correct index when setting register save state for xd
11701 registers.
11702
e27a1019
KK
117032007-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
11704
11705 * config/sh/sh.c (mark_use): Remove.
11706
19e723f4
PB
117072007-07-12 Paul Brook <paul@codesourcery.com>
11708
11709 * config/arm/arm.c (thumb1_compute_save_reg_mask): Make sure scratch
11710 reg does not overlap return value.
11711
c83c4879
DB
117122007-07-12 Daniel Berlin <dberlin@dberlin.org>
11713
11714 * tree-ssa-pre.c (get_expression_vuses): Move out side-effect.
11715 (set_expression_vuses): Ditto.
11716 (init_pre): Initialize expression_vuses.
11717
019b9fdb
ZD
117182007-07-12 Zdenek Dvorak <dvorakz@suse.cz>
11719
11720 * config/i386/sse.md (storentdf, storentsf): New.
11721
d872ada0
GK
117222007-07-12 Geoffrey Keating <geoffk@apple.com>
11723
11724 * builtins.c (get_pointer_alignment): Honor DECL_ALIGN on a
11725 FUNCTION_DECL.
11726 * tree.c (build_decl_stat): Move code from here...
11727 (make_node_stat): ... to here. Don't uselessly clear DECL_USER_ALIGN.
11728 (expr_align): Honor DECL_ALIGN on a FUNCTION_DECL. Add comment
11729 about using DECL_ALIGN of LABEL_DECL and CONST_DECL.
11730 * tree.h (DECL_USER_ALIGN): Fix misplaced comment.
11731 * varasm.c (assemble_start_function): Use DECL_ALIGN instead of
11732 FUNCTION_BOUNDARY.
11733
5b900a4c
DN
117342007-07-12 Dorit Nuzman <dorit@il.ibm.com>
11735 Devang Patel <dpatel@apple.com>
11736
11737 PR tree-optimization/25413
11738 * targhooks.c (default_builtin_vector_alignment_reachable): New.
11739 * targhooks.h (default_builtin_vector_alignment_reachable): New.
11740 * tree.h (contains_packed_reference): New.
11741 * expr.c (contains_packed_reference): New.
11742 * tree-vect-analyze.c (vector_alignment_reachable_p): New.
11743 (vect_enhance_data_refs_alignment): Call
11744 vector_alignment_reachable_p.
11745 * target.h (vector_alignment_reachable): New builtin.
11746 * target-def.h (TARGET_VECTOR_ALIGNMENT_REACHABLE): New.
11747 * config/rs6000/rs6000.c (rs6000_vector_alignment_reachable): New.
11748 (TARGET_VECTOR_ALIGNMENT_REACHABLE): Define.
11749
e95b59d2
DN
117502007-07-12 Dorit Nuzman <dorit@il.ibm.com>
11751
11752 * target.h (builtin_vectorization_cost): Add new target builtin.
11753 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
11754 * tree-vectorizer.h (TARG_SCALAR_STMT_COST): New.
11755 (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST): New.
11756 * tree-vect-analyze.c (vect_analyze_slp_instance): Initisliaze
11757 uninitialized variables.
11758 * tree-vect-transform.c (cost_for_stmt): New function.
11759 (vect_estimate_min_profitable_iters): Call cost_for_stmt instead of
11760 using cost 1 for all scalar stmts. Be less conservative when
11761 estimating the number of prologue/epulogue iterations. Call
11762 targetm.vectorize.builtin_vectorization_cost. Return
11763 min_profitable_iters-1.
11764 (vect_model_reduction_cost): Use TARG_SCALAR_TO_VEC_COST for
11765 initialization cost instead of TARG_VEC_STMT_COST. Use
11766 TARG_VEC_TO_SCALAR_COST instead of TARG_VEC_STMT_COST for reduction
11767 epilogue code. Fix epilogue cost computation.
11768 * config/spu/spu.c (spu_builtin_vectorization_cost): New.
11769 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Implement.
11770 * config/spu/spu.h (TARG_COND_BRANCH_COST, TARG_SCALAR_STMT_COST):
11771 (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST, TARG_VEC_STMT_COST):
11772 (TARG_VEC_TO_SCALAR_COST, TARG_SCALAR_TO_VEC, TARG_VEC_LOAD_COST):
11773 (TARG_VEC_UNALIGNED_LOAD_COST, TARG_VEC_STORE_COST): Define.
11774
8f20c485
RG
117752007-07-12 Richard Guenther <rguenther@suse.de>
11776
11777 * gimplify.c (gimplify_conversion): Make sure that the result
11778 from maybe_fold_offset_to_reference is trivially convertible
11779 to the desired type before doing the simplification.
11780 (gimplify_expr): Likewise.
11781 * fold-const.c (fold_binary): Use the correct types for
11782 building the simplified expression.
11783
44f51d59
ZD
117842007-07-12 Zdenek Dvorak <dvorakz@suse.cz>
11785
11786 PR rtl-optimization/32729
11787 * cfghooks.c (can_duplicate_block_p): Do not forbid duplicating blocks
11788 that fallthru to exit.
11789
45312d9d
KK
117902007-07-12 Kaz Kojima <kkojima@gcc.gnu.org>
11791
11792 * config/sh/sh.md (symGOTOFF2reg): Add missing parenthesis.
11793 (symDTPOFF2reg): Likewise.
11794
c5830edf
DB
117952007-07-11 Daniel Berlin <dberlin@dberlin.org>
11796
11797 PR tree-optimization/32663
11798
11799 * tree.h (VALUE_HANDLE_VUSES): Remove.
11800 (struct tree_value_handle): Remove vuses.
11801
11802 * tree-vn.c (create_value_handle_for_expr): Don't set
11803 VALUE_HANDLE_VUSES.
11804
11805 * tree-ssa-pre.c (expression_vuses): New.
11806 (alloc_expression_id): Set up expression_vuses.
11807 (get_expression_vuses): New.
11808 (set_expression_vuses): Ditto.
11809 (clear_expression_ids): Modify for expression_vuses.
11810 (phi_translate_1): Ditto.
11811 (phi_translate_set): Ditto.
11812 (value_dies_in_block_x): Ditto
11813 (valid_in_sets): Ditto.
11814 (add_to_sets): Ditto.
11815 (find_existing_value_expr): Ditto.
11816 (create_value_handle_for_expr): Ditto.
11817 (make_values_for_stmt): Ditto.
11818 (vuse_equiv): Remove.
11819
66a82a79
AO
118202007-07-11 Alexandre Oliva <aoliva@redhat.com>
11821
11822 * Makefile.in (mostlyclean): Remove object files.
11823
ef4375b2
KZ
118242007-07-11 Kenneth Zadeck <zadeck@naturalbridge.com>
11825
11826 * toplev.c (no_new_pseudos): Deleted.
11827 * rtl.h (no_new_pseudos): Deleted.
11828 * tree-pass.h (pass_no_new_pseudos): Deleted.
11829 * passes.c (pass_no_new_pseudos): Deleted.
11830 * final.c (rest_of_clean_state): Removed no_new_pseudos.
11831 (rest_of_no_new_pseudos, pass_no_new_pseudos): Deleted.
11832 * struct-equiv.c (rtx_equiv_p): Replaced no_new_pseudos with
11833 reload_completed.
11834 * cfgcleanup.c (try_crossjump_to_edge): Ditto.
11835 * rtlhooks.c (gen_lowpart_general): Ditto.
11836 * optabs.c (prepare_operand): Ditto.
11837 * mode-switching.c (rest_of_handle_mode_switching): Deleted set of
11838 no_new_pseudos.
11839 * modulo-sched.c (rest_of_handle_sms): Ditto.
11840 * see.c (rest_of_handle_see): Ditto.
11841 * ifcvt.c (if_convert): Ditto.
11842 (gate_handle_if_after_combine): Replaced no_new_pseudos with
11843 reload_completed.
11844 * init-regs.c (gate_initialize_regs): Deleted set of
11845 no_new_pseudos.
11846 * lower-subreg.c (decompose_multiword_subregs): Ditto.
11847 * bb-reorder.c (rest_of_handle_partition_blocks): Ditto.
11848 * doc/md.texi: Changed no_new_pseudos to can_create_pseudo_p.
11849
29d27fb0
UB
118502007-07-11 Uros Bizjak <ubizjak@gmail.com>
11851
11852 PR target/32661
11853 * config/i386/sse.md (*sse2_storeq_rex64): Handle 64bit mem->reg moves.
11854 (*vec_extractv2di_1_sse2): Disable for TARGET_64BIT.
11855 (*vec_extractv2di_1_rex64): New insn pattern.
11856
aa3e18a0
DD
118572007-07-11 David Daney <ddaney@avtrex.com>
11858
11859 * config/mips/linux-unwind.h (mips_fallback_frame_state): Rewrite
11860 return address calculation. Substitute DWARF_ALT_FRAME_RETURN_COLUMN
11861 for SIGNAL_UNWIND_RETURN_COLUMN.
11862 * config/mips/mips.h (SIGNAL_UNWIND_RETURN_COLUMN): Remove.
11863 (DWARF_FRAME_REGNUM): Rewrite.
11864 (DWARF_ALT_FRAME_RETURN_COLUMN) Define.
11865
9251d664
NC
118662007-07-11 Nick Clifton <nickc@redhat.com>
11867
11868 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Revert previous
11869 delta and use gen_int_mode in place of GET_INT instead.
11870
942ca20a
UB
118712007-07-11 Uros Bizjak <ubizjak@gmail.com>
11872
11873 * reg-stack.c (struct tree_opt_pass pass_stack_regs): Nullify name
11874 and letter field.
11875
7313518b
DG
118762007-07-11 Douglas Gregor <doug.gregor@gmail.com>
11877
11878 * params.def (PARAM_VERIFY_CANONICAL_TYPES): Remove.
11879 (PARAM_USE_CANONICAL_TYPES): New; decides whether to use canonical
11880 types or not.
11881 * params.h (VERIFY_CANONICAL_TYPES): Remove.
11882 (USE_CANONICAL_TYPES): New.
11883 * doc/invoke.texi (verify-canonical-types): Remove.
11884 (use-canonical-types): Add.
942ca20a 11885
039cb258
UW
118862007-07-11 Ulrich Weigand <uweigand@de.ibm.com>
11887
11888 * config/spu/spu.c (spu_optimization_options): Remove setting of
11889 parameter PARAM_MAX_COMPLETELY_PEEL_TIMES.
11890 (spu_override_options): Move it here.
11891
9e32002f
RS
118922007-07-11 Richard Sandiford <richard@codesourcery.com>
11893
942ca20a
UB
11894 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle -m4ksc and -m4ksd.
11895 * config/mips/mips.c (mips_cpu_info_table): Mention
11896 MIPS_ISA_LEVEL_SPEC in the comment.
9e32002f 11897
26b70b9f
EB
118982007-07-11 Eric Botcazou <ebotcazou@adacore.com>
11899
11900 PR tree-optimization/32713
11901 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle REAL_CST.
11902
4ac1edaf
PC
119032007-07-11 Paolo Carlini <pcarlini@suse.de>
11904
11905 PR middle-end/30482
11906 * c-opts.c (c_common_post_options): Do not change flag_complex_method
11907 conditional to flag_isoc99.
11908 (c_common_init_options): Do it here, unconditionally.
11909
c2979eaf
EB
119102007-07-11 Eric Botcazou <ebotcazou@adacore.com>
11911
11912 PR tree-optimization/32589
11913 * doc/tree-ssa.texi (Rough GIMPLE Grammar): Add missing rule.
11914 * tree-gimple.c (is_gimple_min_invariant): Clarify head comment.
11915 * tree-ssa-propagate.c (valid_gimple_expression_p): New
11916 predicate, extracted from...
11917 (set_rhs): ...here. Call it for the expression on entry.
11918 * tree-ssa-propagate.h (valid_gimple_expression_p): Declare.
11919 * tree-ssa-sccvn.c: Include tree-ssa-propagate.h.
11920 (simplify_binary_expression): Use valid_gimple_expression_p
11921 to validate the simplification.
11922 * Makefile.in (tree-ssa-sccvn.o): Depends on tree-ssa-propagate.h.
11923
13c0a630
DS
119242007-07-11 Danny Smith <dannysmith@users.sourceforge.net>
11925
11926 * config/i386/cygming.h (PREFERRED_DEBUGGING_TYPE): Define to
11927 DWARF2_DEBUG on 32 bit target too.
11928 (DWARF2_UNWIND_INFO): Reorganize 64-bit vs 32-bit definition.
11929
0dcd2e78
NC
119302007-07-11 Nick Clifton <nickc@redhat.com>
11931
11932 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Provide alternative
11933 version for 64-bit hosts.
11934
df770e04
DD
119352007-07-10 David Daney <ddaney@avtrex.com>
11936
11937 * config/mips/mips.h (ISA_HAS_SYNCI): New target capability
11938 predicate.
11939 (INITIALIZE_TRAMPOLINE): Emit clear_cache insn instead of library
11940 call.
11941 * config/mips/mips.c (mips_expand_synci_loop): New function.
11942 * config/mips/mips.md (UNSPEC_CLEAR_HAZARD): New constant.
11943 (UNSPEC_RDHWR): Same.
11944 (UNSPEC_SYNCI): Same.
11945 (UNSPEC_SYNC): Same.
11946 (clear_cache): New expand.
11947 (sync): New insn.
11948 (synci): Same.
11949 (rdhwr): Same.
11950 (clear_hazard): Same.
11951 * config/mips/mips-protos.h (mips_expand_synci_loop): Declare
11952 function.
11953 * testsuite/gcc.target/mips/clear-cache-1.c: New test.
11954 * testsuite/gcc.target/mips/clear-cache-2.c: New test.
11955
f8335a4f
ILT
119562007-07-10 Ian Lance Taylor <iant@google.com>
11957
11958 * emit-rtl.c (gen_reg_rtx): Check can_create_pseudo_p rather than
11959 no_new_pseudos.
11960
677feb77
DD
119612007-07-10 David Daney <ddaney@avtrex.com>
11962
11963 * builtins.def (BUILT_IN_CLEAR_CACHE): New builtin.
11964 * builtins.c (expand_builtin___clear_cache): New function.
11965 (expand_builtin): Call expand_builtin___clear_cache for
11966 BUILT_IN_CLEAR_CACHE case.
11967 * doc/extend.texi (__builtin___clear_cache): Document new builtin.
11968 * doc/md.texi (clear_cache): Document new instruction pattern.
11969 * testsuite/gcc.dg/builtins-64.c: New test.
11970
3a0e695a
HPN
119712007-07-11 Hans-Peter Nilsson <hp@axis.com>
11972
11973 * config/cris/cris.md ("movsi"): Fix typo in last change.
11974
837edd5f
GK
119752007-07-09 Geoffrey Keating <geoffk@apple.com>
11976
11977 PR 32617
11978 * c-common.c (c_alignof_expr): Look at DECL_ALIGN of
11979 FUNCTION_DECLs.
11980 (handle_aligned_attribute): Allow use on FUNCTION_DECLs.
11981 * varasm.c (assemble_start_function): Honor DECL_ALIGN
11982 for FUNCTION_DECLs. Don't use align_functions_log if
11983 DECL_USER_ALIGN.
11984 * print-tree.c (print_node): Print DECL_ALIGN and DECL_USER_ALIGN
11985 even for FUNCTION_DECLs.
11986 * c-decl.c (merge_decls): Propagate DECL_ALIGN even for
11987 FUNCTION_DECLs.
11988 * tree.h (DECL_ALIGN): Update for new location of 'align'.
11989 (DECL_FUNCTION_CODE): Update for new location and name of
11990 'function_code'.
11991 (DECL_OFFSET_ALIGN): Update for new location of 'off_align'.
11992 (struct tree_decl_common): Move 'align' and 'off_align' out
11993 of union, ensure they're still on a 32-bit boundary. Remove
11994 other fields in union 'u1'.
11995 (struct tree_function_decl): Add field 'function_code' replacing
11996 'u1.f' in tree_decl_common.
11997 * tree.c (build_decl_stat): Set initial value of DECL_ALIGN.
11998 * doc/extend.texi (Function Attributes): Add 'aligned' attribute.
11999 (Variable Attributes): Cross-reference 'aligned' attribute
12000 to Function Attributes.
12001 * flags.h (force_align_functions_log): Delete.
12002 * toplev.c (force_align_functions_log): Delete.
12003
558be301
UB
120042007-07-10 Uros Bizjak <ubizjak@gmail.com>
12005
12006 PR target/32708
12007 * config/i386/sse.md (vec_concatv2di): Disable for TARGET_64BIT.
12008 (*vec_concatv2di_rex): New insn pattern.
12009
333f4a40
RO
120102007-07-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12011
12012 PR target/32538
12013 * config/mips/iris6.h (LIBGCC_SPEC): Add libm.
12014
b3a13419
ILT
120152007-07-10 Ian Lance Taylor <iant@google.com>
12016
12017 Replace no_new_pseudos in backends.
12018 * rtl.h (can_create_pseudo_p): Define.
12019 * config/darwin.c (machopic_indirect_data_reference): Use
12020 can_create_pseudo_p () instead of no_new_pseudos.
12021 (machopic_indirect_data_reference): Likewise.
12022 (machopic_legitimize_pic_address): Likewise.
12023 * config/alpha/alpha.c (alpha_legitimize_address): Likewise.
12024 (alpha_emit_set_const_1): Likewise.
12025 (alpha_emit_set_const): Likewise.
12026 (alpha_emit_conditional_move): Likewise.
12027 (alpha_split_conditional_move): Likewise.
12028 * config/alpha/alpha.md (various splitters): Likewise.
12029 (movti): Likewise.
12030 * config/arm/arm.c (legitimize_pic_address): Likewise.
12031 (arm_load_pic_register): Likewise.
12032 * config/arm/arm.md (addsi3, subsi3, andsi3, iorsi3): Likewise.
12033 (movdi, movsi, movhi, movqi, movsf, movdf): Likewise.
12034 * config/bfin/bfin.c (legitimize_pic_address): Likewise.
12035 * config/cris/cris.c (cris_expand_pic_call_address): Likewise.
12036 * config/cris/cris.md (movsi): Likewise.
12037 * config/frv/frv.md (symGOT2reg_hilo): Likewise.
12038 (symGOTOFF2reg_hilo): Likewise.
12039 (symGPREL2reg, symGPREL2reg_hilo): Likewise.
12040 * config/h8300/h8300.md (insv, extzv): Likewise.
12041 * config/i386/i386.c (ix86_expand_move): Likewise.
12042 (ix86_expand_vector_move): Likewise.
12043 (ix86_prepare_fp_compare_args): Likewise.
12044 (ix86_expand_carry_flag_compare): Likewise.
12045 * config/i386/i386.md (tls_dynamic_gnu2_32): Likewise.
12046 (tls_dynamic_gnu2_combine_32): Likewise.
12047 (tls_dynamic_gnu2_64, tls_dynamic_gnu2_combine_64): Likewise.
12048 * config/ia64/ia64.c (ia64_expand_move): Likewise.
12049 (ia64_expand_movxf_movrf): Likewise.
12050 * config/m32c/m32c.c (m32c_prepare_move): Likewise.
12051 (m32c_split_move): Likewise.
12052 (m32c_expand_insv): Likewise.
12053 * config/m68k/m68k.md (movsi): Likewise.
12054 * config/mips/mips.c (mips_force_temporary): Likewise.
12055 (mips_split_symbol): Likewise.
12056 (mips_move_integer): Likewise.
12057 (mips_legitimize_const_move): Likewise.
12058 * config/mn10300/mn10300.md (movsi): Likewise.
12059 * config/pa/pa.c (emit_move_sequence): Likewise.
12060 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
12061 (rs6000_got_register): Likewise.
12062 (create_TOC_reference): Likewise.
12063 (rs6000_machopic_legitimize_pic_address): Likewise.
12064 * config/rs6000/rs6000.md (add<mode>3): Likewise.
12065 (various splitters): Likewise.
12066 (iorsi3, xorsi3, iordi3, xordi3): Likewise.
12067 (movsi_got): Likewise.
12068 * config/s390/s390.c (emit_symbolic_move): Likewise.
12069 * config/s390/s390.md (movhi, movqi): Likewise.
12070 (load_multiple, store_multiple): Likewise.
12071 * config/score/score.c (score_force_temporary): Likewise.
12072 * config/sh/sh.c (prepare_move_operands): Likewise.
12073 (prepare_cbranch_operands): Likewise.
12074 (emit_fpu_switch): Likewise.
12075 (fpscr_set_from_mem): Likewise.
12076 * config/sh/sh.md (movdicc, movsicc, movsicc_umin): Likewise.
12077 (adddi3, subsi3): Likewise.
12078 (various splitters): Likewise.
12079 (divsi_inv_fp_combine): Likewise.
12080 (symGOT_load, symGOTOFF2reg, symDTPOFF2reg): Likewise.
12081 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu): Likewise.
12082 (sne): Likewise.
12083 * config/sh/predicates.md (xor_operand): Likewise.
12084 * config/sparc/sparc.c (legitimize_tls_address): Likewise.
12085 * config/sparc/sparc.md (movsi_pic_label_ref): Likewise.
12086 (movdi_pic_label_ref): Likewise.
12087 * config/spu/spu.c (spu_split_immediate): Likewise.
12088 * config/alpha/alpha.md (various splitters): Remove test
12089 !no_new_pseudos || reload_completed.
12090 * config/ia64/ia64.c (ia64_output_mi_thunk): Don't set
12091 no_new_pseudos.
12092 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
12093 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
12094 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
12095 * config/score/score.c (th_output_mi_thunk): Likewise.
12096 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
12097 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
12098
89ab4659
KK
120992007-07-10 Kaz Kojima <kkojima@gcc.gnu.org>
12100
12101 PR rtl-optimization/32664
12102 * mode-switching.c (create_pre_exit): Skip barrier insns.
12103
c6540bde
ZD
121042007-07-10 Zdenek Dvorak <dvorakz@suse.cz>
12105
12106 * tree-scalar-evolution.c (scev_const_prop): Add arguments to
12107 force_gimple_operand_bsi.
12108 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr,
12109 rewrite_use_compare): Ditto.
12110 * tree-ssa-address.c (gimplify_mem_ref_parts, create_mem_ref):
12111 Ditto.
12112 * tree-ssa-ifcombine.c (ifcombine_ifandif): Ditto.
12113 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
12114 * lambda-code.c (replace_uses_equiv_to_x_with_y): Ditto.
12115 * tree-profile.c (prepare_instrumented_value,
12116 tree_gen_interval_profiler, tree_gen_pow2_profiler,
12117 tree_gen_one_value_profiler, tree_gen_ic_profiler,
12118 tree_gen_ic_func_profiler, tree_gen_average_profiler,
12119 tree_gen_ior_profiler): Ditto.
12120 * tree-ssa-reassoc.c (negate_value): Ditto.
12121 * matrix-reorg.c (transform_access_sites, transform_allocation_sites):
12122 Use force_gimple_operand_bsi.
12123 * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
12124 * tree-if-conv.c (add_to_dst_predicate_list,
12125 find_phi_replacement_condition): Ditto.
12126 * gimplify.c (force_gimple_operand_bsi): Add before and m arguments.
12127 Call mark_symbols_for_renaming for new statements.
12128 * tree-flow.h (force_gimple_operand_bsi): Declaration changed.
12129
452ba14d
ZD
121302007-07-10 Zdenek Dvorak <dvorakz@suse.cz>
12131
12132 * cfghooks.c (remove_edge): New function.
12133 (redirect_edge_and_branch, remove_branch, merge_blocks): Updated
12134 loop exit rescans.
12135 * cfghooks.h (remove_edge): Declare.
12136 * cfg.c (remove_edge): Renamed to remove_edge_raw.
12137 * basic-block.h (remove_edge): Declaration changed to remove_edge_raw.
12138
0f67fa83
WG
121392007-07-09 Wolfgang Gellerich <gellerich@de.ibm.com>
12140
12141 * optabs.h: Added declaration for signbit_optab.
12142 * optabs.c: (init_optabs): Added initialization for signbit_optab.
12143 * genoptinit.c (optabs): Added entry for signbit insns.
558be301
UB
12144 * builtins.c (expand_builtin_signbit): Added code to use a signbit
12145 insn, if available.
0f67fa83
WG
12146 * config/s390/s390.h (S390_TDC_SIGNBIT_SET): New constant.
12147 * config/s390/s390.md (signbit<mode>2): New expander.
12148
b462d62d
RG
121492007-07-09 Richard Guenther <rguenther@suse.de>
12150
12151 PR middle-end/32698
12152 * fold-const.c (fold_plusminus_mult_expr): Move constant
12153 arguments second to allow decomposing.
12154
694dd537
AO
121552007-07-09 Alexandre Oliva <aoliva@oliva.athome.lsd.ic.unicamp.br>
12156
12157 Revert:
12158 2007-07-06 Alexandre Oliva <aoliva@redhat.com>
12159 PR debug/23551
12160 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12161 Disregard DECL_FROM_INLINE.
12162
13c59415
UB
121632007-07-09 Uros Bizjak <ubizjak@gmail.com>
12164
12165 PR target/27855
12166 * doc/invoke.texi: Add ftree-reassoc flag.
12167 * common.opt (ftree-reassoc): New flag.
12168 * tree-ssa-reassoc.c (gate_tree_ssa_reassoc): New static function.
12169 (struct tree_opt_pass pass_reassoc): Use gate_tree_ssa_reassoc.
12170
8b4c775b
UB
121712007-07-09 Uros Bizjak <ubizjak@gmail.com>
12172
12173 PR tree-optimization/32681
12174 * tree-if-conv.c (find_phi_replacement_condition): Use the condition
12175 saved in second_edge->aux when first_bb is a loop header.
12176
d241cd48
JH
121772007-07-09 Jan HUbicka <jh@suse.cz>
12178
12179 * cse.c (cse_insn): Avoid invalid sharing on trial replacement.
12180
f967586f
RG
121812007-07-09 Richard Guenther <rguenther@suse.de>
12182
12183 * c-decl.c (start_function): Do not promote return type.
12184
534fd534
DF
121852007-07-08 Daniel Franke <franke.daniel@gmail.com>
12186
12187 * function.c (do_warn_unused_parameter): Do not warn if
12188 TREE_NO_WARNING is set.
12189
9f06d330
AS
121902007-07-08 Andreas Schwab <schwab@suse.de>
12191
12192 * doc/invoke.texi (DEC Alpha/VMS Options): Fix typo.
12193
170ea7b9
SL
121942007-07-08 Sandra Loosemore <sandra@codesourcery.com>
12195
12196 Revert this patch:
12197 2007-07-06 Sandra Loosemore <sandra@codesourcery.com>
12198
12199 * c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
12200 apply to assembly language, too.
12201 * doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
12202
b71b4522
DB
122032007-07-07 Daniel Berlin <dberlin@dberlin.org>
12204
12205 Revert (note the sccvn portions are *not* reverted)
12206 2007-07-06 Daniel Berlin <dberlin@dberlin.org>
12207
12208 Fix PR tree-optimization/23488
12209
12210 * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
12211 handles.
12212 * tree-flow-inline.h (get_value_handle): Ditto.
12213 * tree-ssa-pre.c (decl_vh_map): New.
12214 (decl_node_pool): New.
12215 (can_value_number_operation): Support DECL_P.
12216 (can_PRE_operation): Ditto.
12217 (create_expression_by_pieces): Ditto.
12218 (find_existing_value_expr): Modify to differnetiate between
12219 addressing and top level.
12220 (create_value_handle_for_expr): Handle DECL's.
12221 (poolify_tree): Ditto.
12222 (make_values_for_phi): Don't insert into PHI_GEN during FRE.
12223 (make_values_for_stmt): Handle DECL's properly.
12224 (init_pre): Reorg to not init useless things during FRE.
12225 (fini_pre): Ditto.
12226 * tree-flow.h: Include pointer-set.h.
12227 (decl_vh_map): Declare.
12228 * Makefile.in (TREE_FLOW_H): Add pointer-set.h
12229
0e8eb4d8
EW
122302007-07-07 Eric Weddington <eweddington@cso.atmel.com>
12231
12232 * config/avr/constraints.md (define_memory_constraint "Q"): Fix
12233 the constraint description.
12234 * doc/md.texi: Update documentation of AVR constraints.
12235
6ed3da00
KH
122362007-07-07 Kazu Hirata <kazu@codesourcery.com>
12237
12238 * auto-inc-dec.c, config/arm/arm.c,
12239 config/m32r/constraints.md, config/mips/mips.md,
12240 config/rs6000/rs6000.c, cselib.c, dce.c, df-core.c,
12241 df-problems.c, df-scan.c, df.h, dse.c, gimplify.c,
12242 tree-if-conv.c, tree-ssa-sccvn.c, tree-ssa.c: Fix comment
12243 typos. Follow spelling conventions.
12244 * doc/invoke.texi, doc/rtl.texi: Fix typos.
12245
0a6b055f
KH
12246 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
12247 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
12248
f576d4f9
KH
12249 * tree-ssa-operands.c (realloc_vop, realloc_vdef,
12250 realloc_vuse): Remove.
12251 * tree-ssa-operands.h: Remove the prototype for realloc_vdef
12252 and realloc_vuse.
12253
e9bd9cf3
DB
122542007-07-06 Daniel Berlin <dberlin@dberlin.org>
12255
12256 Fix PR tree-optimization/23488
12257
12258 * tree-ssa-sccvn.c (expr_has_constants): Handle tcc_declaration.
12259 (try_to_simplify): Ditto.
12260 (visit_use): Ditto.
12261 * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
12262 handles.
12263 * tree-flow-inline.h (get_value_handle): Ditto.
12264 * tree-ssa-pre.c (decl_vh_map): New.
12265 (decl_node_pool): New.
12266 (can_value_number_operation): Support DECL_P.
12267 (can_PRE_operation): Ditto.
12268 (create_expression_by_pieces): Ditto.
12269 (find_existing_value_expr): Modify to differnetiate between
12270 addressing and top level.
12271 (create_value_handle_for_expr): Handle DECL's.
12272 (poolify_tree): Ditto.
12273 (make_values_for_phi): Don't insert into PHI_GEN during FRE.
12274 (make_values_for_stmt): Handle DECL's properly.
12275 (init_pre): Reorg to not init useless things during FRE.
12276 (fini_pre): Ditto.
12277 * tree-flow.h: Include pointer-set.h.
12278 (decl_vh_map): Declare.
12279 * Makefile.in (TREE_FLOW_H): Add pointer-set.h
12280
48468cd0
SL
122812007-07-06 Sandra Loosemore <sandra@codesourcery.com>
12282
12283 * c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
12284 apply to assembly language, too.
12285 * doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
12286
508dabda 122872007-07-06 Ian Lance Taylor <iant@google.com>
d5d5d289 12288 Zack Weinberg <zackw@panix.com>
508dabda
ILT
12289
12290 PR middle-end/32441
12291 * builtins.c (std_expand_builtin_va_start): Don't use make_tree.
12292
e0ff69ab
RS
122932007-07-06 Richard Sandiford <richard@codesourcery.com>
12294
12295 * config/sh/sh.md (*prefetch_i4): Disable for TARGET_VXWORKS_RTP.
12296 (prefetch): Likewise if "pref" would be used.
12297
d6c2c77c
JC
122982007-07-06 Josh Conner <jconner@apple.com>
12299
12300 PR middle-end/32602
12301 PR middle-end/32603
12302 * calls.c (store_one_arg): Handle arguments which are partially
12303 on the stack when detecting argument overlap.
12304
374d961c
BS
123052007-07-06 Bernd Schmidt <bernd.schmidt@analog.com>
12306
12307 * reload1.c (choose_reload_regs): Set reload_spill_index for regs
12308 chosen during find_reloads.
12309
004e2fa7
RG
123102007-07-06 Richard Guenther <rguenther@suse.de>
12311
12312 * gimplify.c (gimplify_call_expr): Prefer DECL_ARGUMENTS over
12313 TYPE_ARG_TYPES for verification of argument types. Use
12314 DECL_ARG_TYPE instead of the PARM_DECL type. Take excess
12315 parameters as variable arguments.
12316
c7ff6e7a
AK
123172007-07-06 Andreas Krebbel <krebbel1@de.ibm.com>
12318
12319 * libgcc2.h (word_type): Type definition removed.
12320 (cmp_return_type, shift_count_type): Type definitions added.
12321 (__lshrdi3, __ashldi3, __ashrdi3): word_type of second parameter
12322 replaced with shift_count_type.
12323 (__cmpdi2, __ucmpdi2): word_type of return type replaced with
12324 cmp_return_type.
12325 * libgcc2.c (__udivmoddi4, __moddi3): Type of local variable c
12326 changed from word_type to Wtype.
12327 (__lshrdi3, __ashldi3, __ashrdi3): word_type of second parameter
12328 replaced with shift_count_type.
12329 (__cmpdi2, __ucmpdi2): word_type of return type replaced with
12330 cmp_return_type.
8b4c775b
UB
12331 * c-common.c (handle_mode_attribute): Handling for libgcc_cmp_return
12332 and libgcc_shift_count attribute added.
c7ff6e7a
AK
12333 * target-def.h (TARGET_LIBGCC_CMP_RETURN_MODE,
12334 TARGET_LIBGCC_SHIFT_COUNT_MODE): New target hooks defined.
12335 (TARGET_INITIALIZER): New target hooks added.
12336 * targhooks.c (default_libgcc_cmp_return_mode,
12337 default_libgcc_shift_count_mode): Default implementations for the new
12338 target hooks added.
12339 * targhooks.h (default_libgcc_cmp_return_mode,
12340 default_libgcc_shift_count_mode): Function prototypes added.
12341 * target.h (struct gcc_target): Fields for the new target hooks added.
12342 * optabs.c (expand_binop): Use shift_count_mode when expanding shift
12343 as library call.
12344 (prepare_cmp_insn): Use cmp_return_mode when expanding comparison as
12345 library call.
12346
12347 * doc/tm.texi (TARGET_LIBGCC_CMP_RETURN_MODE,
12348 TARGET_LIBGCC_SHIFT_COUNT_MODE): Documentation added.
12349
12350 * config/s390/s390.c (s390_libgcc_cmp_return_mode,
12351 s390_libgcc_shift_count_mode): Functions added.
8b4c775b
UB
12352 (TARGET_LIBGCC_CMP_RETURN_MODE, TARGET_LIBGCC_SHIFT_COUNT_MODE):
12353 Target hooks defined.
c7ff6e7a 12354
713df810
RS
123552007-07-06 Richard Sandiford <richard@codesourcery.com>
12356
12357 * config/mips/mips.c (compute_frame_size): Restore the original
12358 gp_sp_offset for !GENERATE_MIPS16E_SAVE_RESTORE and remove the
12359 fp_size term from the GENERATE_MIPS16E_SAVE_RESTORE calculation.
12360 Document why the difference is needed.
12361
b5119fa1
RG
123622007-07-06 Richard Guenther <rguenther@suse.de>
12363
12364 * c-common.c (boolean_increment): Use correctly typed
12365 constant.
12366
106b3d40
RS
123672007-07-06 Richard Sandiford <richard@codesourcery.com>
12368
12369 * config/mips/mips.c (mips16e_save_restore_pattern_p): Check that
12370 the topmost argument register is not also included in the save mask.
12371 (mips16e_collect_argument_save_p): Take a pointer to the argument
12372 register, rather than a pointer to the number of arguments.
12373 (mips16e_collect_argument_saves): Only include argument saves
12374 that aren't in the register mask.
12375
56d17681
UB
123762007-07-06 Uros Bizjak <ubizjak@gmail.com>
12377
8b4c775b 12378 PR rtl-optimization/32450
56d17681
UB
12379 * function.c (thread_prologue_and_epilogue_insns): Emit blockage insn
12380 to ensure that instructions are not moved into the prologue when
12381 profiling is on. Remove unused prologue_end variable.
12382 (expand_function_end): Emit blockage insn instead of ASM_INPUT rtx
12383 as a scheduling barrier.
12384
042f720d
AO
123852007-07-06 Alexandre Oliva <aoliva@redhat.com>
12386
12387 PR debug/23551
12388 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12389 Disregard DECL_FROM_INLINE.
12390
22761ec3
AN
123912007-07-05 Adam Nemet <anemet@caviumnetworks.com>
12392
12393 * rtlanal.c (num_sign_bit_copies1): Improve cases of ANDing or
12394 IORing with a constant.
12395
47220f03
SP
123962007-07-05 Seongbae Park <seongbae.park@gmail.com>
12397
12398 PR rtl-optimization/32475
12399 * df-scan.c (df_def_record_1): Add a use of the stack pointer
12400 for every definition of the stack pointer.
12401
8e39e9af
RE
124022007-07-05 Richard Earnshaw <rearnsha@arm.com>
12403
12404 * arm.c (vfp3_const_double_index): Copy signed results of
12405 REAL_VALUE_TO_INT into unsigned vars.
12406
e11e491d
RG
124072007-07-05 Richard Guenther <rguenther@suse.de>
12408
12409 PR middle-end/32639
12410 * alias.c (get_alias_set): Tread METHOD_TYPE the same as
12411 FUNCTION_TYPE.
12412 * tree-ssa.c (useless_type_conversion_p): Check canonical
12413 types early.
12414
2d0c44e6
AS
124152007-07-05 Anatoly Sokolov <aesok@post.ru>
12416
12417 * config/avr/avr.md (zero_extendqihi2, zero_extendqisi2,
12418 zero_extendhisi2): Change to define_insn_and_split.
12419 (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New.
12420
d8d72314
PB
124212007-07-05 Paolo Bonzini <bonzini@gnu.org>
12422
12423 * function.c (match_asm_constraints_1, rest_of_match_asm_constraints,
12424 pass_match_asm_constraints): New.
12425 * passes.c (init_optimization_passes): Add new pass.
12426 * stmt.c (expand_asm_operands): Set cfun->has_asm_statement.
12427 * function.h (struct function): Add has_asm_statement bit.
12428 (current_function_has_asm_statement): New.
12429 * tree-pass.h (pass_match_asm_constraints): New.
12430
629c6957
RS
124312007-07-05 Richard Sandiford <rsandifo@nildram.co.uk>
12432
12433 * config/mips/mips.c (mips_file_start): Avoid declaration
12434 after code.
12435
9ee34274
SL
124362007-07-05 Sandra Loosemore <sandra@codesourcery.com>
12437
12438 * optabs.c (expand_binop_directly): Fix signed/unsigned comparison.
12439
28cc8a50
UB
124402007-07-05 Uros Bizjak <ubizjak@gmail.com>
12441
12442 * rtl.def (NOTE): Change print format string to print
12443 operand 5 as a note insn name.
12444
52bcd429
SL
124452007-07-05 Sandra Loosemore <sandra@codesourcery.com>
12446 David Ung <davidu@mips.com>
12447
52bcd429
SL
12448 * config/mips/mips.c (mips_cpu_info): Add 4ksc and 4ksd processors.
12449 * doc/invoke.texi: (MIPS Options): Document them.
12450
0aa222d1
SL
124512007-07-05 Sandra Loosemore <sandra@codesourcery.com>
12452 David Ung <davidu@mips.com>
12453
12454 Add support for SmartMIPS ASE.
12455
12456 * optabs.c (expand_binop_directly): New, broken out from...
12457 (expand_binop): Here. Make it try rotating in the other
12458 direction even when the second operand isn't constant.
12459 * config/mips/mips.md (*lwxs): New.
12460 * config/mips/mips.opt (msmartmips): New.
12461 * config/mips/mips.c (mips_lwxs_address_p): New.
12462 (mips_rtx_costs): Make it recognize scaled indexed addressing.
12463 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
12464 __mips_smartmips when compiling for TARGET_SMARTMIPS.
12465 (ISA_HAS_ROR): Define for TARGET_SMARTMIPS.
12466 (ISA_HAS_LWXS): New.
12467 (ASM_SPEC): Add -msmartmips/-mno-smartmips.
12468 * doc/invoke.texi (MIPS Options): Document -msmartmips/-mno-smartmips.
12469 * testsuite/gcc.target/mips/smartmips-lwxs.c: New test case.
12470 * testsuite/gcc.target/mips/smartmips-ror-1.c: New test case.
12471 * testsuite/gcc.target/mips/smartmips-ror-2.c: New test case.
12472 * testsuite/gcc.target/mips/smartmips-ror-3.c: New test case.
12473 * testsuite/gcc.target/mips/smartmips-ror-4.c: New test case.
12474
3a70f3ef
DN
124752007-07-05 Dorit Nuzman <dorit@il.ibm.com>
12476
12477 * tree-vectorizer.c (new_loop_vec_info): Initialize
12478 LOOP_VINFO_COST_MODEL_MIN_ITERS.
12479 * tree-vectorizer.h (_loop_vec_info): Added new filed
12480 min_profitable_iters.
12481 (LOOP_VINFO_COST_MODEL_MIN_ITERS): New access macro to above new field.
12482 (TARG_SCALAR_TO_VEC_COST): Define cost of scalar to vector operation.
12483 * tree-vect-analyze.c (vect_analyze_operations): Set
12484 LOOP_VINFO_COST_MODEL_MIN_ITERS.
12485 * tree-vect-transform.c (vect_estimate_min_profitable_iters): Use
12486 VEC_length to determine if there are any LOOP_VINFO_MAY_MISALIGN_STMTS.
12487 Fix calculation of peel_iters_prologue. Move consideration of epilogue
12488 and prologue cost to after they are computed.
12489 (vect_model_induction_cost): Use TARG_SCALAR_TO_VEC_COST instead of
12490 TARG_VEC_STMT_COST.
12491 (vect_model_simple_cost): Takes additional argument dt. Consider cost
12492 of creating vectors from scalars according to dt.
12493 (vect_model_store_cost): Likewise.
12494 (vectorizable_call): Use dt array instead of scalar dt. Call
12495 vect_model_simple_cost with additional argument dt.
12496 (vectorizable_assignment): Likewise.
12497 (vectorizable_operation): Likewise.
12498 (vectorizable_type_demotion): Likewise.
12499 (vectorizable_type_promotion): Likewise.
12500 (vectorizable_store): Use dt array instead of scalar dt. Call
12501 vect_model_store_cost with additional argument dt.
12502 (vect_do_peeling_for_loop_bound): Don't call
12503 vect_estimate_min_profitable_iters. Instead, lookup
12504 LOOP_VINFO_COST_MODEL_MIN_ITERS. Don't always print
28cc8a50 12505 "may not be profitable".
3a70f3ef 12506
4643b716
DN
125072007-07-05 Dorit Nuzman <dorit@il.ibm.com>
12508
12509 PR testsuite/32014
12510 * config/rs6000/altivec.md (UNSPEC_VUPKHS_V4SF, UNSPEC_VUPKLS_V4SF):
12511 (UNSPEC_VUPKHU_V4SF, UNSPEC_VUPKLU_V4SF): New.
12512 (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi): New patterns.
12513 (vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): New patterns.
12514
b301e9b3
ZD
125152007-07-05 Zdenek Dvorak <dvorakz@suse.cz>
12516
12517 * config/i386/i386.c (ix86_address_cost): Do not consider more complex
12518 addressing modes cheaper.
12519
0435c1d5
AO
125202007-07-05 Alexandre Oliva <aoliva@redhat.com>
12521
12522 * dwarf2out.c (dw_ranges_by_label_ref): New typedef.
12523 (dw_ranges_struct): Rename block_num to num. Adjust.
12524 (dw_ranges_by_label_struct): New.
12525 (ranges_by_label, ranges_by_label_allocated,
12526 ranges_by_label_in_use): New variables.
12527 (add_ranges_num): Factored most of the code out of...
12528 (add_ranges): ... this one. Rewrite in terms of the former.
12529 (add_ranges_by_labels): New.
12530 (output_ranges): Output by-label ranges.
12531 (dwarf2out_finish): Output range for multiple-section
12532 compile_unit. Output standard DW_AT_low_pc in addition to
12533 unexpected DW_AT_entry_pc.
12534
c1130b62
DB
125352007-07-04 Daniel Berlin <dberlin@dberlin.org>
12536
12537 PR tree-optimization/32604
12538 PR tree-optimization/32606
28cc8a50 12539
c1130b62
DB
12540 * tree-ssa-pre.c (bb_bitmap_sets): Removed antic_safe_loads.
12541 (compute_antic_safe): Removed.
12542 (ANTIC_SAFE_LOADS): Ditto.
12543 (compute_antic_aux): Don't print ANTIC_SAFE_LOADS.
12544 (execute_pre): Don't call compute_antic_safe.
12545 (vuse_equiv): New function.
12546 (make_values_for_stmt): Use it
12547 * tree-ssa-sccvn.c (set_ssa_val_to): Remove assert, since it is
12548 not always true.
12549
44190aed
AS
125502007-07-04 Anatoly Sokolov <aesok@post.ru>
12551
12552 PR target/31331
12553 * config/avr/avr.c (avr_naked_function_p): Handle receiving a type
12554 rather than a decl.
12555 (avr_attribute_table): Make "naked" attribute apply to function types
12556 rather than to decls.
12557 (avr_handle_fntype_attribute): New function.
12558
121f163f
JM
125592007-07-04 Joseph Myers <joseph@codesourcery.com>
12560
12561 * target-def.h (TARGET_INITIALIZER): Remove trailing whitespace
12562 after \.
12563
b1a14b78 125642007-07-04 David Ung <davidu@mips.com>
d5d5d289 12565 Joseph Myers <joseph@codesourcery.com>
b1a14b78
DU
12566
12567 * config/mips/mips.md (type): Add logical, signext and move.
12568 (one_cmpl<mode>2, *and<mode>3, *and<mode>3_mips16, *ior<mode>3,
12569 *ior<mode>3_mips16, two unnamed insns after *ior<mode>3_mips16,
12570 *nor<mode>3, "Combiner patterns to optimize truncate/zero_extend
12571 combinations", *zero_extend<SHORT:mode><GPR:mode>2,
12572 *zero_extendqihi2, *extend<SHORT:mode><GPR:mode>2_mips16e,
12573 *extend<SHORT:mode><GPR:mode>2_se<SHORT:size>, *movdi_64bit,
12574 *movdi_64bit_mips16, *movsi_internal, *movsi_mips16, movcc,
12575 *movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16,
12576 *movsf_hardfloat, *movsf_softfloat, *movsf_mips16,
12577 *movdf_hardfloat_64bit, *movdf_hardfloat_32bit,
12578 movv2sf_hardfloat_64bit): Use the new types.
12579 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16,
12580 *movdf_softfloat, *movdf_mips16): Use "multi".
12581 (extendqihi2): Replace with a define_expand.
12582 (*extendqihi2_mips16e, *extendqihi2, *extendqihi2_seb): New.
12583 Based on extend<SHORT:mode><GPR:mode>2 patterns.
12584 * config/mips/74k.md (r74k_int_logical): New reservation and
12585 bypasses.
12586 (r74k_int_arith): Remove "slt".
12587 * config/mips/24k.md, config/mips/4130.md, config/mips/4k.md,
12588 config/mips/5400.md, config/mips/5500.md, config/mips/5k.md,
12589 config/mips/7000.md, config/mips/9000.md, config/mips/generic.md,
12590 config/mips/sb1.md, config/mips/sr71k.md: Add new types to
12591 reservations for "arith".
12592
4fc66945
RG
125932007-07-04 Richard Guenther <rguenther@suse.de>
12594
12595 * tree-ssa.c (useless_type_conversion_p): Add handling for
12596 scalar float and vector types. Only call the types_compatible_p
12597 langhook for aggregate types as last resort. Follow the
12598 rules.
12599
5cda34b1
RG
126002007-07-04 Richard Guenther <rguenther@suse.de>
12601
12602 * tree-inline.c (estimate_num_insns_1): Treat CONVERT_EXPR
12603 the same as NOP_EXPR.
12604
67e6ba46
NC
126052007-07-04 Nick Clifton <nickc@redhat.com>
12606
12607 * target.h (struct gcc_target): Add target_help field.
12608 * target-def.h (TARGET_HELP): New.
12609 (TARGET_INITIALIZER): Use TARGET_HELP.
12610 * opts.c (command_handle_option): Invoke target_help function, if
12611 defined, when the user has specified --target-help on the command
12612 line.
12613 * doc/invoke.texi: Mention that --target-help might print
12614 additional information.
12615 * doc/tm.texi: Document TARGET_HELP hook.
12616
12617 * arm.c (TARGET_HELP): Override default definition.
12618 (arm_target_help): New - display a wrapped list of cores and
12619 architectures supported.
12620
fda41d93
RIL
126212007-07-04 Rask Ingemann Lambertsen <rask@sygehus.dk>
12622
9bf5a5e8 12623 * config/v850/v850.c (expand_prologue): Make sure
fda41d93
RIL
12624 GEN_INT() argument is sign extended rather than zero extended.
12625 (expand_epilogue): Likewise.
12626 (output_move_double): Delete.
9bf5a5e8
UB
12627 * config/v850/v850-protos.h (output_move_double): Delete.
12628 * config/v850/v850.md (movdi): Delete.
fda41d93
RIL
12629 (*movdi_internal): Delete.
12630 (movdf): Delete.
12631 (*movdf_internal): Delete.
12632
f0025c1f
RS
126332007-07-04 Richard Sandiford <richard@codesourcery.com>
12634
12635 * config/sh/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Reject -mrelax
12636 unless compiling RTP PIC.
12637
b0569227
RG
126382007-07-04 Richard Guenther <rguenther@suse.de>
12639
12640 PR tree-optimization/32482
12641 * tree-ssa-ifcombine.c (recognize_single_bit_test): Use the
12642 original ssa name if we didn't find a shift expression.
12643 Fix shift constant for bit zero test.
12644
a0aeae15
RS
126452007-07-04 Richard Sandiford <richard@codesourcery.com>
12646
12647 * config/sh/lib1funcs.asm (ic_invalidate): Align constant pool.
12648
c447f774
RS
126492007-07-04 Richard Sandiford <richard@codesourcery.com>
12650
12651 * config.gcc (arm-wrs-vxworks): Don't include svr4.h.
12652 * config/vxworks.h (PTRDIFF_TYPE, SIZE_TYPE, TARGET_POSIX_IO): Define.
12653 * config/arm/vxworks.h (ASM_SPEC): Delete.
12654 (SUBTARGET_EXTRA_ASM_SPEC): Define.
12655
71d5b5e1
SP
126562007-07-04 Sebastian Pop <sebpop@gmail.com>
12657
12658 * tree-data-ref.h (data_dependence_relation): New flag reversed_p.
12659 (DDR_REVERSED_P): New.
12660 * tree-data-ref.c (initialize_data_dependence_relation,
12661 build_classic_dist_vector): Set DDR_REVERSED_P.
12662
fd727b34
SP
126632007-07-04 Sebastian Pop <sebpop@gmail.com>
12664
12665 PR middle-end/32457
12666 * tree-data-ref.c (analyze_siv_subscript_cst_affine,
12667 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
12668 init_omega_for_ddr_1): Use non conservative number of iterations
12669 estimations.
12670 (analyze_subscript_affine_affine): Use HOST_WIDE_INT instead of int.
12671 (analyze_siv_subscript): Remove FIXME and reinitialization of
12672 last_conflicts to chrec_dont_know.
12673 * testsuite/gfortran.dg/vect/pr32457.f90: New.
12674
c92b8515
DG
126752007-07-04 Douglas Gregor <doug.gregor@gmail.com>
12676
12677 * tree.c (maybe_canonicalize_argtypes): Improve description.
12678
8de08f4c
DG
126792007-07-04 Douglas Gregor <doug.gregor@gmail.com>
12680
12681 * tree.c (maybe_canonicalize_argtypes): New.
12682 (build_function_type): Set canonical type.
12683 (build_method_type_directly): Ditto.
12684 (reconstruct_complex_type): Rebuild the METHOD_TYPE node
12685 properly.
12686
2d1a1007
AP
126872007-07-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
12688
12689 * tree-ssa-loop-ivopts.c (strip_offset_1): Treat POINTER_PLUS_EXPR
12690 like PLUS_EXPR.
12691 (rewrite_use_nonlinear_expr): Likewise.
12692
e3ceb300
SP
126932007-07-03 Seongbae Park <seongbae.park@gmail.com>
12694
12695 * rtl.def (UNSPEC, USE, CLOBBER): More comments.
12696
44082375
BE
126972007-07-04 Ben Elliston <bje@au.ibm.com>
12698
f01d40db
BE
12699 * dwarf2out.c: Move DWARF2 abbreviation glossary closer to the top
12700 of this file.
12701
d9ad7862
BE
12702 * c-objc-common.c (c_types_compatible_p): Fix indentation.
12703
44082375
BE
12704 * doc/tm.texi (Run-time Target): Capitalise "CPU".
12705 (Exception Handling): Likewise.
12706
f9faf954
JH
127072007-07-03 Jan Hubicka <jh@suse.cz>
12708
12709 * ifcvt.c (find_cond_trap): Avoid invalid RTL sharing.
12710
717c4e47
EC
127112007-07-03 Eric Christopher <echristo@apple.com>
12712
12713 * doc/cppopts.texi: Add conflicting option note to -dM.
12714 * doc/invoke.texi: Add note about possible conflicts with
12715 -E for -dCHARS and note that -dM will not produce
12716 any results if there is no machine dependent reorg.
12717
e7005ecb
GK
127182007-07-03 Geoffrey Keating <geoffk@apple.com>
12719
12720 * tree.h (DECL_ALIGN): Back out previous change.
12721
a44380d2
JM
127222007-07-03 Joseph Myers <joseph@codesourcery.com>
12723
12724 * configure.ac: Test for .dtprelword support on MIPS.
12725 * configure, config.in: Regenerate.
12726 * config/mips/mips.c (mips_output_dwarf_dtprel): New.
12727 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
12728
f1adb0a9
JB
127292007-07-03 Julian Brown <julian@codesourcery.com>
12730
12731 * config.gcc (with_fpu): Allow --with-fpu=vfp3.
12732 * config/arm/aout.h (REGISTER_NAMES): Add D16-D31.
12733 * config/arm/aof.h (REGISTER_NAMES): Add D16-D31.
12734 * config/arm/arm.c (FL_VFPV3): New flag for VFPv3 processor
12735 capability.
12736 (all_fpus): Add FPUTYPE_VFP3.
12737 (fp_model_for_fpu): Add VFPv3 field.
12738 (arm_rtx_costs_1): Give cost to VFPv3 constants.
12739 (vfp3_const_double_index): New function. Return integer index of
12740 VFPv3 constant suitable for fconst[sd] insns, or -1 if constant
12741 isn't suitable.
12742 (vfp3_const_double_rtx): New function. True if VFPv3 is enabled
12743 and argument represents a valid RTX for a VFPv3 constant.
12744 (vfp_output_fldmd): Split fldmd with > 16 registers in the list into
12745 two instructions.
12746 (vfp_emit_fstmd): Similar, for fstmd.
12747 (arm_print_operand): Implement new code 'G' for VFPv3 floating-point
12748 constants, represented as integer indices.
12749 (arm_hard_regno_mode_ok): Use VFP_REGNO_OK_FOR_SINGLE,
12750 VFP_REGNO_OK_FOR_DOUBLE macros.
12751 (arm_regno_class): Handle VFPv3 d0-d7, low, high register split.
12752 (arm_file_start): Set float-abi attribute for VFPv3, and output
12753 correct ".fpu" assembler directive.
12754 (arm_dbx_register_numbering): Add FIXME.
12755 * config/arm/arm.h (TARGET_VFP3): New macro. Target supports VFPv3.
12756 (fputype): Add FPUTYPE_VFP3.
12757 (FIXED_REGISTERS): Add 32 registers for D16-D31.
12758 (CALL_USED_REGISTERS): Likewise.
12759 (CONDITIONAL_REGISTER_USAGE): Add note about conditional definition
12760 of LAST_VFP_REGNUM. Make D16-D31 caller-saved, if present.
12761 (LAST_VFP_REGNUM): Extend available VFP registers for VFPv3.
12762 (D7_VFP_REGNUM): New.
12763 (LAST_LO_VFP_REGNUM, FIRST_HI_VFP_REGNUM, LAST_HI_VFP_REGNUM)
12764 (VFP_REGNO_OK_FOR_SINGLE, VFP_REGNO_OK_FOR_SINGLE)
12765 (VFP_REGNO_OK_FOR_DOUBLE): Define new macros.
12766 (FIRST_PSEUDO_REGISTER): Shift up to 128 to accommodate VFPv3.
12767 (REG_ALLOC_ORDER): Adjust for VFPv3.
12768 (reg_class): Add VFP_D0_D7_REGS, VFP_LO_REGS, VFP_HI_REGS.
12769 (REG_CLASS_NAMES): Add entries corresponding to VFP_D0_D7_REGS,
12770 VFP_LO_REGS, VFP_HI_REGS.
12771 (REG_CLASS_CONTENTS): Likewise. Extend contents for VFP_REGS.
12772 (IS_VFP_CLASS): Define macro.
12773 (SECONDARY_OUTPUT_RELOAD_CLASS, SECONDARY_INPUT_RELOAD_CLASS): Use
12774 IS_VFP_CLASS.
12775 (REGISTER_MOVE_COST): Likewise.
12776 * config/arm/arm-protos.h (vfp3_const_double_rtx): Add prototype.
12777 * config/arm/vfp.md (VFPCC_REGNUM): Redefine as 127.
12778 (*arm_movsi_vfp, *thumb2_movsi_vfp, *movsfcc_vfp)
12779 (*thumb2_movsfcc_vfp, *abssf2_vfp, *negsf2_vfp, *addsf3_vfp)
12780 (*subsf3_vfp, *divsf_vfp, *mulsf_vfp, *mulsf3negsf_vfp)
12781 (*mulsf3addsf_vfp, *mulsf3subsf_vfp, *mulsf3negsfaddsf_vfp)
12782 (*extendsfdf2_vfp, *truncdfsf2_vfp, *truncsisf2_vfp)
12783 (*truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2)
12784 (*floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2)
12785 (floatunssidf2, *sqrtsf2_vfp, *cmpsf_split_vfp)
12786 (*cmpsf_trap_split_vfp, *cmpsf_vfp, *cmpsf_trap_vfp): Use 't'
12787 where appropriate for single-word registers.
12788 (*movsf_vfp, *thumb2_movsf_vfp, *movdf_vfp, *thumb2_movdf_vfp):
12789 As above. Fix type attributes.
12790 * config/arm/constraints.md (register_contraint "t"): Define.
12791 (register_constraint "w"): Change to D0-D15, or D0-D31 for
12792 VFPv3/NEON.
12793 (register_constraint "x"): Define.
12794 (constraint "Dv"): Define.
12795
f972b2cb
GK
127962007-07-03 Geoffrey Keating <geoffk@apple.com>
12797
12798 * tree.h (DECL_ALIGN): Prevent use on a FUNCTION_DECL.
12799
0bacb8c7
TT
128002007-07-03 Tom Tromey <tromey@redhat.com>
12801
12802 * c-parser.c (objc_pq_context): Removed.
12803 (objc_need_raw_identifier): Likewise.
12804 (c_parser) <objc_pq_context>: New field.
12805 <objc_need_raw_identifier>: Likewise.
12806 (OBJC_NEED_RAW_IDENTIFIER): Removed.
12807 (c_lex_one_token): Update.
12808 (c_parser_objc_protocol_definition): Update.
12809 (c_parser_objc_method_definition): Update.
12810 (c_parser_objc_methodproto): Update.
12811 (c_parser_declspecs): Update.
12812
c849ec73
DU
128132007-07-03 David Ung <davidu@mips.com>
12814
12815 * config/mips/mips.c (mips_issue_rate): Return 4 for 74K processors.
12816
74d4d024
DU
128172007-07-03 David Ung <davidu@mips.com>
12818 Richard Sandiford <richard@codesourcery.com>
12819
12820 * doc/invoke.texi: Document -march=74kf3_2.
12821 * config/mips/mips.h (PROCESSOR_74KF3_2): New processor_type.
12822 (TUNE_74K): Check for it.
12823 * config/mips/mips.c (mips_cpu_info): Add 74kf3_2.
12824 (mips_rtx_cost_data): Add an entry for PROCESSOR_74KF3_2.
12825 * config/mips/mips.md (cpu): Add 74kf3_2.
12826 * config/mips/74k.md (r74k_int_logical, r74k_int_arith, r74k_int_nop)
12827 (r74k_int_cmove, r74k_int_mult, r74k_int_mul3, r74k_int_mfhilo)
12828 (r74k_int_mthilo, r74k_int_div, r74k_int_call, r74k_int_jump)
12829 (r74k_int_load, r74k_int_store, r74k_unknown, r74k_multi): Add
12830 74kf3_2 to the CPU list.
12831 (r74kf3_2_fadd, r74kf3_2_fmove, r74kf3_2_fload, r74kf3_2_fstore)
12832 (r74kf3_2_fmul_sf, r74kf3_2_fmul_df, r74kf3_2_fdiv_sf)
12833 (r74kf3_2_fdiv_df, r74kf3_2_frsqrt_sf, r74kf3_2_frsqrt_df)
12834 (r74kf3_2_fcmp, r74kf3_2_fcvt, r74kf3_2_fxfer_to_c1)
12835 (r74kf3_2_fxfer_from_c1): New insn reservations.
12836
bdd77024
RS
128372007-07-03 Richard Sandiford <richard@codesourcery.com>
12838 David Ung <davidu@mips.com>
12839
12840 * doc/invoke.texi: Replace -march=24kf with -march=24kf2_1 and
12841 -march=24kx with -march=24kf1_1. Likewise 24ke[fx], 34k[fx]
12842 and 74k[fx]. Document aliases for the new options.
12843 * config/mips/mips.h (PROCESSOR_24KF): Rename to...
12844 (PROCESSOR_24KF2_1): ...this.
12845 (PROCESSOR_24KX): Rename to...
12846 (PROCESSOR_24KF1_1): ...this.
12847 (PROCESSOR_74KF): Rename to...
12848 (PROCESSOR_74KF2_1): ...this.
12849 (PROCESSOR_74KX): Rename to...
12850 (PROCESSOR_74KF1_1): ...this.
12851 (TUNE_74K): Update PROCESSOR_* names.
12852 * config/mips/mips.c (mips_cpu_info): Add 24kf2_1 as a synonym
12853 for 24kf. Add 24kf1_1 and 24kfx as synonyms for 24kx. Likewise
12854 the 24ke*, 34k* and 74k* processors. Update PROCESSOR_* names.
12855 (mips_rtx_cost_data): Update processor names in comments.
12856 (mips_issue_rate): Update PROCESSOR_* names.
12857 * config/mips/mips.md (cpu): Rename 24kf to 24kf2_1, 24kx to
12858 24kf1_1, 74kf to 74kf2_1 and 74kx to 74kf1_1.
12859 * config/mips/24k.md: Rename FPU-related r24k_* insn reservations
12860 to r24kf2_1_*. Rename r24kx_* insn reservations to r24kf1_1_*.
12861 Update cpu attribute names.
12862 (r24k_fpu_iss): Rename this reservation to...
12863 (r24kf2_1_fpu_iss): ...this and update all uses.
12864 (r24kx_fpu_iss): Rename this reservation to...
12865 (r24kf1_1_fpu_iss): ...this and update all uses.
12866 * config/mips/74k.md: Rename FPU-related r74kf_* insn reservations
12867 to r74kf2_1_*. Rename r74kx_* insn reservations to r74kf1_1_*.
12868 Update cpu attribute names.
12869
fbaeb717
KK
128702007-07-01 Kaz Kojima <kkojima@gcc.gnu.org>
12871
12872 * config/m32r/constraints.md: New file.
12873 * config/m32r/m32r.c: Include tm-constrs.h.
12874 (small_data_operand): Use satisfies_constraint_* instead of macro.
12875 (addr24_operand, gen_compare): Likewise.
12876 * config/m32r/m32r.h (REG_CLASS_FROM_LETTER): Remove.
12877 (INT8_P, UPPER16_P, UINT32_P, UINT5_P, INVERTED_SIGNED_8BIT,
12878 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
12879 EXTRA_CONSTRAINT): Likewise.
12880 * config/m32r/m32r.md: Include constraints.md.
12881 (*movsi_insn): Use satisfies_constraint_* instead of macro.
12882 (andsi3, iorsi3, xorsi3, seq_insn+1, sne): Likewise.
12883 * config/m32r/predicates.md (conditional_move_operand): Likewise.
12884 (two_insn_const_operand, int8_operand, uint16_operand,
12885 reg_or_int16_operand, reg_or_uint16_operand,
12886 reg_or_cmp_int16_operand, cmp_int16_operand,
12887 seth_add3_operand): Likewise.
12888
66965e90
EC
128892007-07-03 Eric Christopher <echristo@gmail.com>
12890
12891 * libgcc2.h: Conditionally declare __bswapsi2 and
12892 __bswapdi2.
12893
72b31363
L
128942007-07-03 H.J. Lu <hongjiu.lu@intel.com>
12895
12896 * ddg.c (check_sccs): Define only if ENABLE_CHECKING is
12897 defined.
12898
b36e79e5
RO
128992007-07-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12900
12901 PR target/28307
12902 * gthr-posix.h [SUPPORTS_WEAK && GTHREAD_USE_WEAK]
12903 (__gthrw_pragma): Provide default definition.
12904 (__gthrw2): Use it.
12905 * gthr-posix.c (__gthrw_pragma): Define.
12906
78d3c323
DB
129072007-07-03 Daniel Berlin <dberlin@dberlin.org>
12908
12909 * tree-ssa-sccvn.c (set_ssa_val_to): Check for operand_equal_p
12910 before declaring inequality.
12911
b6bcd676
RIL
129122007-07-03 Rask Ingemann Lambertsen <rask@sygehus.dk>
12913
12914 * combine.c (recog_for_combine): Log the success or failure of
12915 matching new insn patterns against the machine description in
12916 detailed dumps.
12917
8cec1624
RE
129182007-07-03 Revital Eres <eres@il.ibm.com>
12919
12920 * ddg.c (print_sccs): New function.
12921 (check_sccs): New function.
12922 (create_ddg_all_sccs): Use it.
12923 * ddg.h (print_sccs): Declare.
12924 * modulo-sched.c (sms_order_nodes): Call print_sccs.
12925
c77cd3d1
UB
129262007-07-03 Uros Bizjak <ubizjak@gmail.com>
12927
12928 * targhooks.h (default_mode_for_suffix): New function declaration.
12929 * targhooks.c (default_mode_for_suffix): New default target hook.
12930 * target.h (struct c): New structure in the targetm struct.
12931 (mode_for_suffix): New target hook as part of struct c.
12932 target-def.h (TARGET_C_MODE_FOR_SUFFIX): Define as
12933 default_mode_for_suffix.
12934 (TARGET_C): New define.
12935 * c-lex.c: Include "target.h".
12936 (interpret_float): Use targetm.c.mode_for_suffix to determine
12937 the mode for a given non-standard suffix.
12938 Makefile.in (c-lex.o): Depend on $(TARGET_H).
12939
12940 * config/i386/i386.c (ix86_c_mode_for_suffix): New static function.
12941 (TARGET_C_MODE_FOR_SUFFIX): Define to ix86_c_mode_for_suffix.
12942
12943 * doc/extend.texi (Floating Types): New node. Document __float80 and
12944 __float128 types. Document 'w', 'W', 'q' and 'Q' suffixes.
12945
1ed50f71
KK
129462007-07-03 Kaz Kojima <kkojima@gcc.gnu.org>
12947
12948 PR target/32506
12949 * config/sh/sh.md (udivsi3_i1_media): Use target_reg_operand
12950 predicate instead of target_operand.
12951 (divsi3_i1_media, divsi3_media_2): Likewise.
12952
836f7794
EB
129532007-07-02 Eric Botcazou <ebotcazou@adacore.com>
12954
12955 * tree.h (alias_sets_might_conflict_p): Rename into
12956 alias_sets_must_conflict_p.
12957 * alias.c (alias_sets_might_conflict_p): Likewise.
12958 (alias_sets_conflict_p): Use it.
12959 (objects_must_conflict_p): Likewise.
12960 * c-common.c (strict_aliasing_warning): Adjust.
12961
e4950e42
AP
129622007-07-02 Andrew Pinski <andrew_pinski@playstation.sony.com>
12963
12964 * rtlhooks.c (gen_lowpart_if_possible): Check for
12965 invalid subreg before calling gen_lowpart_SUBREG.
12966
22f70bff
GK
129672007-07-02 Geoffrey Keating <geoffk@apple.com>
12968
12969 * config/darwin9.h: Add copyright notice.
12970 (LINK_COMMAND_SPEC): Add comment.
12971 (DARWIN_LIBSYSTEM_HAS_UNWIND): Define.
12972 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Conditionalise on
12973 DARWIN_LIBSYSTEM_HAS_UNWIND.
12974
69f1837b
JJ
129752007-07-02 Jakub Jelinek <jakub@redhat.com>
12976
12977 PR libgomp/32468
12978 * omp-low.c (check_combined_parallel): New function.
12979 (lower_omp_parallel): Call it via walk_stmts, set
12980 OMP_PARALLEL_COMBINED if appropriate.
12981 (determine_parallel_type): If OMP_FOR resp. OMP_SECTIONS
12982 isn't the only statement in WS_ENTRY_BB or OMP_RETURN
12983 the only one in PAR_EXIT_BB and not OMP_PARALLEL_COMBINED,
12984 don't consider it as combined parallel.
12985
15c723f3
RS
129862007-07-02 Richard Sandiford <richard@codesourcery.com>
12987
12988 * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
12989 (gcc_tooldir): Likewise.
12990 * configure: Regenerate.
12991 * Makefile.in (libsubdir_to_prefix): New variable, based on the
12992 old configure.ac gcc_tooldir setting.
12993 (prefix_to_exec_prefix): New variable.
12994 (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
12995 rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
12996
f8b04195
DB
129972007-07-02 Daniel Berlin <dberlin@dberlin.org>
12998
12999 Fix PR tree-optimization/32583
13000 Fix PR tree-optimization/32584
13001 * tree-ssa-pre.c (phi_translate): Always pass seen bitmap.
13002 (phi_translate_set): Use phi_translate directly now.
13003 (make_values_for_stmt): Don't value number RHS if we already know
13004 it is constant.
13005
05742530
SE
130062007-07-02 Steve Ellcey <sje@cup.hp.com>
13007 Jim Wilson <wilson@specifix.com>
13008
13009 PR target/31684
13010 * haifa-sched.c (add_to_speculative_block): Change copy_rtx to
13011 copy_insn.
13012
e1260576
RS
130132007-07-02 Sandra Loosemore <sandra@codesourcery.com>
13014 Richard Sandiford <richard@codesourcery.com>
13015 Nigel Stephens <nigel@mips.com>
13016
13017 * config/mips/mips-protos.h (mips16e_save_restore_info): New struct.
13018 (mips16e_output_save_restore): Declare.
13019 (mips16e_save_restore_pattern_p): Likewise.
13020 * config/mips/mips.h (GENERATE_MIPS16E_SAVE_RESTORE): New macro.
13021 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Return 0x7f8
13022 for GENERATE_MIPS16E_SAVE_RESTORE. Return 0x400 for TARGET_MIPS16
13023 && !GENERATE_MIPS16E_SAVE_RESTORE && !TARGET_64BIT.
13024 (BITSET_P): New global macro, extracted from...
13025 (mips_for_each_saved_reg): ...here.
13026 (mips16e_save_restore_info): New struct.
13027 (mips16e_s2_s8_regs, mips16e_a0_a3_regs): New variables.
13028 (mips16e_save_restore_regs): New variable.
13029 (mips_split_plus, mips16e_find_first_register): New functions.
13030 (mips16e_mask_registers): New function.
13031 (compute_frame_size): Expand the commentary before the function.
13032 Enforce the MIPS16e save and restore register range restrictions.
13033 Pad the general register save area at the low end.
13034 (mips16e_save_restore_reg, mips16e_build_save_restore)
13035 (mips16e_save_restore_pattern_p, mips16e_add_register_range)
13036 (mips16e_output_save_restore, mips16e_collect_propagate_value)
13037 (mips16e_collect_argument_save, mips16e_collect_argument_saves):
13038 New functions.
13039 (mips_expand_prologue, mips_expand_epilogue): Handle
13040 GENERATE_MIPS16E_SAVE_RESTORE.
13041 * config/mips/mips.md (*mips16e_save_restore): New pattern.
13042
8ad02175
UB
130432007-07-02 Uros Bizjak <ubizjak@gmail.com>
13044
13045 PR tree-optimization/31966
13046 PR tree-optimization/32533
13047 * tree-if-conv.c (add_to_dst_predicate_list): Use "edge", not
13048 "basic_block" description as its third argument. Update function
13049 calls to get destination bb from "edge" argument. Save "cond" into
13050 aux field of the edge. Update prototype for changed arguments.
312360e8
UB
13051 (if_convertible_loop_p): Clear aux field of incoming edges if bb
13052 contains phi node.
8ad02175
UB
13053 (find_phi_replacement_condition): Operate on incoming edges, not
13054 on predecessor blocks. If there is a condition saved in the
13055 incoming edge aux field, AND it with incoming bb predicate.
13056 Return source bb of the first edge.
13057 (clean_predicate_lists): Clean aux field of outgoing node edges.
13058 (tree_if_conversion): Do not initialize cond variable. Move
13059 variable declaration into the loop.
13060 (replace_phi_with_cond_gimple_modify_stmt): Remove unneded
13061 initializations of new_stmt, arg0 and arg1 variables.
13062
a2daf82c
JJ
130632007-07-02 Jakub Jelinek <jakub@redhat.com>
13064
13065 * tree-nrv.c (dest_safe_for_nrv_p): Grok any handled_component_p,
13066 SSA_NAMEs, RESULT_DECLs and PARM_DECLs.
13067
85b19f61
RG
130682007-07-02 Richard Guenther <rguenther@suse.de>
13069
13070 * tree-ssa.c (useless_type_conversion_p): Document
13071 future intent as defining the middle-end type system.
13072 Re-structure to call langhook last, group by type class,
13073 mark questionable parts.
13074
f4088621
RG
130752007-07-02 Richard Guenther <rguenther@suse.de>
13076
13077 * tree-flow.h (types_compatible_p): Declare.
13078 * tree-ssa.c (types_compatible_p): New function.
13079 * ipa-type-escape.c (discover_unique_type): Use
13080 types_compatible_p instead of lang_hooks.types_compatible_p.
13081 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
13082 * tree-vn.c (expressions_equal_p): Likewise.
13083 * tree.c (fields_compatible_p): Likewise.
13084 * tree-ssa-dom.c (avail_expr_eq): Likewise.
13085 (cprop_operand): Use useless_type_conversion_p instead of
13086 lang_hooks.types_compatible_p.
13087 * tree-inline.c (setup_one_parameter): Likewise.
13088 (declare_return_variable): Likewise.
13089 * tree-nrv.c (tree_nrv): Likewise.
13090 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
13091 (maybe_fold_offset_to_component_ref): Likewise.
13092 (maybe_fold_offset_to_reference): Likewise.
13093 * tree-ssa-copy.c (may_propagate_copy): Likewise.
13094 (merge_alias_info): Likewise.
13095 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
13096 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
13097 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
13098 * tree-tailcall.c (find_tail_calls): Likewise.
13099 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13100 * gimplify.c (canonicalize_addr_expr): Likewise.
13101 (fold_indirect_ref_rhs): Likewise.
13102 (gimplify_addr_expr): Likewise. Swap parameters to cpt_same_type.
13103 (cpt_same_type): Likewise.
13104 (check_pointer_types_r): Swap parameters to cpt_same_type
13105 where appropriate.
13106 * fold-const.c (fold_convert): Revert fix for PR15988.
13107 * tree-inline.c (setup_one_parameter): Instead fix it here by
13108 using fold_build1 instead of fold_convert and checking for
13109 error_mark_node. Convert only if the conversion is necessary.
13110
e51917ae
JM
131112007-07-02 Joseph Myers <joseph@codesourcery.com>
13112
13113 * configure.ac: Check for .gnu_attribute on Power.
13114 * configure: Regenerate.
13115 * config/rs6000/rs6000.c (rs6000_file_start): If supported, output
13116 attribute for floating-point ABI.
13117
3053ce44
IR
131182007-07-02 Ira Rosen <irar@il.ibm.com>
13119
13120 PR tree-optimization/32230
13121 PR tree-optimization/32477
13122 * tree-vect-analyze.c (vect_analyze_data_refs): Fail if base
13123 address is a constant.
13124
e2c14f5d
RS
131252007-07-02 Richard Sandiford <richard@codesourcery.com>
13126
13127 * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*)
13128 (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*)
13129 (mipsisa64-*-elf*, mipsisa64el-*-elf*): Combine top-level
13130 stanzas. Use the first part of the triplet to set MIPS_ISA_DEFAULT.
13131 Remove redundant setting of MASK_FLOAT64 and MASK_64BIT for the
13132 64-bit targets. Add support for *-elfoabi*.
13133 * config/mips/t-isa3264 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Use
13134 different settings if $(tm_defines) does not select the EABI.
13135 (MULTILIB_EXCLUSIONS): Define in those circumstances.
13136 * config/mips/mips.h (MIPS_ISA_LEVEL_OPTION_SPEC): New macro.
13137 (MIPS_ARCH_OPTION_SPEC): Likewise.
13138 (MIPS_ISA_LEVEL_SPEC): Likewise.
13139 (OPTION_DEFAULT_SPECS): Use MIPS_ARCH_OPTION_SPEC.
13140 * config/mips/elfoabi.h: New file.
13141
36618b93
RG
131422007-07-02 Richard Guenther <rguenther@suse.de>
13143
13144 * tree-flow.h (tree_ssa_useless_type_conversion_1): Rename to ...
13145 (useless_type_conversion_p): ... this.
13146 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Rename to ...
13147 (useless_type_conversion_p): ... this.
13148 * builtins.c (fold_builtin_memory_op): Rename
13149 tree_ssa_useless_type_conversion_1 to useless_type_conversion_p.
13150 * tree-cfg.c (verify_expr): Likewise.
13151 * tree-ssa-address.c (tree_ssa_useless_type_conversion_1): Likewise.
13152 * tree-ssa-ccp.c (ccp_fold): Likewise.
13153 * tree-ssa-copy.c (may_propagate_copy): Likewise.
13154 * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
13155 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
13156 * tree-ssa-loop-niter.c (refine_bounds_using_guard): Likewise.
13157 * tree-ssa-pre.c (eliminate): Likewise.
13158 * tree-ssa.c (delete_tree_ssa): Likewise.
13159 (tree_ssa_useless_type_conversion): Likewise.
13160 * tree.c (build2_stat): Likewise.
13161
8b0a5125
DB
131622007-07-01 Daniel Berlin <dberlin@dberlin.org>
13163
13164 Fix PR tree-optimization/32571
13165 * tree-ssa-sccvn.c (visit_use): Shortcut copies to avoid
13166 simplifying them.
13167
4794afa5
DB
131682007-07-01 Daniel Berlin <dberlin@dberlin.org>
13169
13170 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle constants
13171 and other expected operations explicitly, change default to
13172 gcc_unreachable.
13173
10ae7c7b
DJ
131742007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
13175
13176 * config/arm/arm.c (arm_cannot_copy_insn_p): Do not expect a
13177 PARALLEL.
13178 * config/arm/arm.md (pic_add_dot_plus_four, pic_add_dot_plus_eight)
13179 (tls_load_dot_plus_eight): Move the label number into the unspec.
13180 * config/arm/thumb2.md (pic_load_dot_plus_four): Likewise.
13181
36bd4303
AS
131822007-07-01 Andreas Schwab <schwab@suse.de>
13183
13184 * dwarf2out.c (initial_return_save): Define only if used.
13185
bc90eb85 131862007-07-01 Kenneth Zadeck <zadeck@naturalbridge.com>
d4d7f1d1
RS
13187
13188 Unreverting Richard's Revert of:
13189
13190 2007-06-27 Richard Sandiford <richard@codesourcery.com>
13191
13192 * dce.c (deletable_insn_p_1): New function, split out from...
13193 (deletable_insn_p): ...here. Only treat bare USEs and CLOBBERs
13194 specially, not those inside PARALLELs. Remove BODY argument
13195 and adjust recursive call accordingly.
13196 (prescan_insns_for_dce): Update call to delete_insn_p.
13197
7ee1ad84
VY
131982007-07-01 Vladimir Yanovsky <yanov@il.ibm.com>
13199 Revital Eres <eres@il.ibm.com>
13200
13201 * ddg.c (create_ddg_all_sccs): Fix missed
13202 initialization of scc_nodes.
13203
c22f6d33
UB
132042007-07-01 Uros Bizjak <ubizjak@gmail.com>
13205
13206 PR middle-end/32559
13207 * fold-const.c (fold-binary) [PLUS_EXPR]: Convert ~X + X to 1 or
13208 X + ~X to 1 only for INTEGRAL_TYPE_P type.
13209
dcb957d9
JM
132102007-06-30 Joseph Myers <joseph@codesourcery.com>
13211
13212 * configure.ac: Check for .gnu_attribute on MIPS.
13213 * configure, config.in: Regenerate.
13214 * config/mips/mips.c (mips_file_start): If supported, output
13215 attribute for floating-point ABI.
13216
08024fb5
UB
132172007-06-30 Uros Bizjak <ubizjak@gmail.com>
13218
13219 PR target/32433
13220 * config/i386/i386.md (ffssi2): Expand as ffs_cmove for TARGET_CMOVE.
13221 (ffs_cmove): New expander to expand using ctz pattern.
13222 (*ffs_cmove): Remove pattern.
13223 (*ffs_no_cmove): Enable only for !TARGET_CMOVE.
13224 (ffsdi2): Expand using ctz pattern.
13225 (*ffs_rex64): Remove pattern.
13226
62a53968
JDA
132272007-06-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13228
b2e83266 13229 PR rtl-optimization/32296
62a53968
JDA
13230 * pa.md (return): Delete pattern.
13231 (return_internal): Remove "(const_int 1)" from pattern.
13232 (epilogue): Use return_internal pattern for trivial returns.
13233 * pa-protos.h (hppa_can_use_return_insn_p): Delete declaration.
13234 * pa.c (hppa_can_use_return_insn_p): Delete function. Include "df.h".
13235
b941a8ae
DB
132362007-06-30 Daniel Berlin <dberlin@dberlin.org>
13237
13238 * tree-ssa-pre.c (is_exception_related): New function
13239 (can_value_number_operation): Use it.
13240
89fb70a3
DB
132412007-06-30 Daniel Berlin <dberlin@dberlin.org>
13242
13243 Fix PR tree-optimization/32540
13244 Fix PR tree-optimization/31651
13245
13246 * tree-ssa-sccvn.c: New file.
13247
13248 * tree-ssa-sccvn.h: Ditto.
13249
13250 * tree-vn.c: Include tree-ssa-sccvn.h
13251 (val_expr_paid_d): Removed.
13252 (value_table): Ditto.
13253 (vn_compute): Ditto.
13254 (val_expr_pair_hash): Ditto.
13255 (val_expr_pair_expr_eq): Ditto.
13256 (copy_vuses_from_stmt): Ditto.
13257 (vn_delete): Ditto.
13258 (vn_init): Ditto.
13259 (shared_vuses_from_stmt): Ditto.
13260 (print_creation_to_file): Moved up.
13261 (sort_vuses): Ditto.
13262 (sort_vuses_heap): Ditto.
13263 (set_value_handle): Make non-static.
13264 (make_value_handle): Ditto.
13265 (vn_add): Rewritten to use sccvn lookups.
13266 (vn_add_with_vuses): Ditto.
13267 (vn_lookup): Ditto (and second argument removed).
13268 (vn_lookup_with_vuses): Ditto.
13269 (vn_lookup_or_add): Ditto (and second argument removed);
13270 (vn_lookup_or_add_with_vuses): Ditto.
13271 (vn_lookup_with_stmt): New.
13272 (vn_lookup_or_add_with_stmt): Ditto.
13273 (create_value_handle_for_expr): Ditto.
13274
13275 * tree-ssa-pre.c: Include tree-ssa-sccvn.h.
13276 (seen_during_translate): New function.
13277 (phi_trans_lookup): Use iterative_hash_expr, not vn_compute.
13278 (phi_trans_add): Ditto.
13279 (constant_expr_p): FIELD_DECL is always constant.
13280 (phi_translate_1): Renamed from phi_translate, add seen bitmap.
13281 Use constant_expr_p.
13282 Avoid infinite recursion on mutually valued expressions.
13283 Change callers of vn_lookup_or_add.
13284 (phi_translate): New function.
13285 (compute_antic_safe): Allow phi nodes.
13286 (create_component_ref_by_pieces): Update for FIELD_DECL change.
13287 (find_or_generate_expression): Rewrite slightly.
13288 (create_expression_by_pieces): Updated for vn_lookup_or_add
13289 change.
13290 Update VN_INFO for new names.
13291 (insert_into_preds_of_block): Update for new names.
13292 (add_to_exp_gen): New function.
13293 (add_to_sets): Use vn_lookup_or_add_with_stmt.
13294 (find_existing_value_expr): Rewrite to changed vn_lookup.
13295 (create_value_expr_from): Ditto, and use add_to_exp_gen.
13296 (try_look_through_load): Removed.
13297 (try_combine_conversion): Ditto.
13298 (get_sccvn_value): New function.
13299 (make_values_for_phi): Ditto.
13300 (make_values_for_stmt): Ditto.
13301 (compute_avail): Rewritten for vn_lookup_or_add changes and to use
13302 SCCVN.
13303 (init_pre): Update for SCCVN changes.
13304 (fini_pre): Ditto.
13305 (execute_pre): Ditto.
13306
13307 * tree-flow.h (make_value_handle): Declare.
13308 (set_value_handle): Ditto.
13309 (sort_vuses_heap): Ditto.
13310 (vn_lookup_or_add_with_stmt): Ditto.
13311 (vn_lookup_with_stmt): Ditto.
13312 (vn_compute): Remove.
13313 (vn_init): Ditto.
13314 (vn_delete): Ditto.
13315 (vn_lookup): Update arguments.
13316
13317 * Makefile.in (tree-ssa-pre.o): Add tree-ssa-sccvn.h
13318 (tree-vn.o): Ditto.
13319 (tree-ssa-sccvn.o): New.
13320 (OBJS-common): Add tree-ssa-sccvn.o
13321
ad960f56
MLI
133222007-06-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13323
13324 PR c/4076
13325 * c-typeck.c (build_external_ref): Don't mark as used if called
13326 from itself.
13327 * calls.c (rtx_for_function_call): Likewise.
13328
a4fbe84b
RS
133292007-06-30 Richard Sandiford <richard@codesourcery.com>
13330
13331 Revert:
13332
13333 2007-06-27 Richard Sandiford <richard@codesourcery.com>
13334
13335 * dce.c (deletable_insn_p_1): New function, split out from...
13336 (deletable_insn_p): ...here. Only treat bare USEs and CLOBBERs
13337 specially, not those inside PARALLELs. Remove BODY argument
13338 and adjust recursive call accordingly.
13339 (prescan_insns_for_dce): Update call to delete_insn_p.
13340
9d35384d
RIL
133412007-06-30 Rask Ingemann Lambertsen <rask@sygehus.dk>
13342
13343 * combine.c (combine_validate_cost): New parameter NEWOTHERPAT.
13344 (try_combine): Move potential calls to undo_all() so they happen
13345 before we commit to using the combined insns.
13346
2ed22578
JH
133472006-06-30 Jan Hubicka <jh@suse.cz>
13348
c22f6d33 13349 * loop-unroll.c (unroll_loop_runtime_iterations): Unshare newly emit
2ed22578
JH
13350 code.
13351
c5274326
TN
133522006-06-30 Thomas Neumann <tneumann@users.sourceforge.net>
13353
13354 * ipa.c (cgraph_postorder): Cast according to the coding conventions.
13355 (cgraph_remove_unreachable_nodes): Likewise.
13356 * ipa-cp.c (ipcp_propagate_stage): Use BOTTOM instead of integer 0.
13357 * ipa-inline.c (update_caller_keys): Cast according to the coding
13358 conventions.
13359 (cgraph_decide_recursive_inlining): Likewise.
13360 (cgraph_decide_inlining_of_small_function): Likewise.
13361 (try_inline): Likewise.
13362 (cgraph_decide_inlining_incrementally): Likewise.
13363 * ipa-pure-const.c (get_function_state): Likewise.
13364 (scan_function): Likewise.
13365 (analyze_function): Likewise.
13366 (static_execute): Likewise.
9bf5a5e8 13367 * ipa-reference.c (scan_for_static_refs): Likewise.
c5274326
TN
13368 (merge_callee_local_info): Likewise.
13369 (analyze_function): Use type safe memory macros.
13370 (static_execute): Likewise. Cast according to the coding conventions.
13371 * ipa-type-escape.c (scan_for_regs): Cast according to the coding
13372 conventions.
13373 * ipa-utils.c (searchc): Likewise. Avoid using C++ keywords as variable
13374 names.
13375 (ipa_utils_reduced_inorder): Likewise. Use type safe memory macros.
13376 * ipa-utils.h (struct ipa_dfa_info): Avoid using C++ keywords as
13377 variable names.
13378
e90721b1
AP
133792007-06-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
13380
23512eb3 13381 PR middle-end/30024
e90721b1
AP
13382 * emit-rtl.c (init_emit_once): Intilize const_tiny_rtx[0]
13383 for complex modes (both int and real).
13384
133852007-06-29 Jan Hubicka <jh@suse.cz>
874d7c2f
JH
13386
13387 * cse.c: Rever accidentally comitted TODO_verify_rtl_sharing change.
13388
e90721b1 133892007-06-29 Jan Hubicka <jh@suse.cz>
acff8040
JH
13390
13391 PR middle-end/32372
13392 * cse.c (cse_insn): Avoid invalid sharing in between register note and
13393 the insn pattern.
13394
e90721b1 133952007-06-29 Anatoly Sokolov <aesok@post.ru>
4e63b362
AS
13396
13397 PR target/32335
13398 * config/avr/avr.c: Include dataflow header file.
13399 (expand_prologue): Adjust for prologue insn change.
13400 * config/avr/avr.md (call_prologue_saves): Only modify REG_SP once
13401 inside a insn.
13402
8edd82f2 134032007-06-29 Richard Guenther <rguenther@suse.de>
42f6e2ec
RG
13404
13405 PR middle-end/32493
13406 * gimplify.c (gimplify_call_expr): Ignore variable argument parts
13407 during type verification.
13408
29fbecf3
JH
134092007-06-29 Jan Hubicka <jh@suse.cz>
13410
13411 * recog.c (validate_change_rtx_1): Unshare TO argument.
13412
b40c4f68
UB
134132007-06-29 Uros Bizjak <ubizjak@gmail.com>
13414
13415 PR tree-optimization/24659
13416 * tree-vect-transform.c (vectorizable_call): Handle
13417 (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
13418
13419 * config/i386/sse.md (vec_pack_sfix_v2df): New expander.
13420 * config/i386/i386.c (enum ix86_builtins)
13421 [IX86_BUILTIN_VEC_PACK_SFIX]: New constant.
13422 (struct bdesc_2arg) [__builtin_ia32_vec_pack_sfix]: New builtin
13423 description.
13424 (ix86_init_mmx_sse_builtins): Define all builtins with 2 arguments as
13425 const using def_builtin_const.
13426 (ix86_expand_binop_builtin): Remove bogus assert() that insn wants
13427 input operands in the same modes as the result.
13428 (ix86_builtin_vectorized_function): Handle BUILT_IN_LRINT.
13429
27178277
RS
134302007-06-29 Richard Sandiford <rsandifo@nildram.co.uk>
13431
13432 * df-problems.c (df_set_unused_notes_for_mw): Fix formatting.
13433 (df_set_dead_notes_for_mw): Likewise.
13434
280f1ffa
EB
134352007-06-29 Eric Botcazou <ebotcazou@adacore.com>
13436
13437 * c-common.c (pointer_int_sum): Do the negation in sizetype.
13438
58ef0ffa
DD
134392007-06-28 DJ Delorie <dj@redhat.com>
13440
13441 * config/m32c/m32c.h (OVERRIDE_OPTIONS): Omit unneeded semicolon.
13442
ddbfd28d
GK
134432007-06-28 Geoffrey Keating <geoffk@apple.com>
13444
13445 * doc/invoke.texi (C++ Dialect Options): Document
13446 fvisibility-ms-compat.
13447 * c.opt (fvisibility-ms-compat): New.
13448
f46fe0e6
AP
134492007-06-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
13450
13451 PR tree-opt/32417
13452 * tree-affine.c (aff_combination_add_elt): Handle
13453 pointer addition specially.
13454
8aa19d95
JJ
134552007-06-28 Jakub Jelinek <jakub@redhat.com>
13456
13457 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Ensure
13458 decl is non-external for AIX ABI.
13459
134602007-06-28 David Edelsohn <edelsohn@gnu.org>
13461
13462 * config/rs6000/predicates.md (current_file_function_operand):
13463 Ensure the symbol is non-external for AIX ABI.
13464
6ae4be32
NC
134652007-06-28 Nick Clifton <nickc@redhat.com>
13466
13467 * common.opt (fipa-matrix-reorg): Add Optimization attribute.
13468 (fdce, fdse, fpredictive-commoning): Likewise.
13469
86db887a
FXC
134702007-06-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13471
13472 PR other/31400
13473 * gcc.c (process_command): Recognize the new -static-libgfortran
13474 option.
13475
99920b6f
RIL
134762007-06-27 Rask Ingemann Lambertsen <rask@sygehus.dk>
13477
13478 PR target/32418
13479 * config/m32c/m32c.c (m32c_eh_return_stackadj_rtx): Dataflow fix:
13480 Use a call clobbered hard reg instead of a pseudo reg.
13481
2c19a536
KK
134822007-06-27 Kaz Kojima <kkojima@gcc.gnu.org>
13483
13484 * config/sh/sh.md (load_gbr): Use correct operand constraint.
13485
ba56ed65
KK
134862007-06-27 Kaz Kojima <kkojima@gcc.gnu.org>
13487
13488 PR target/32479
13489 * config/sh/sh.md (udivsi3): Don't wrap the sequence with
13490 REG_LIBCALL and REG_RETVAL notes.
13491 (divsi3, mulsi3): Likewise.
13492 (mulhisi3): Likewise. Use emit_libcall_block.
13493 (umulhisi3, smulsi3_highpart, umulsi3_highpart_i): Likewise.
13494
531ba5d2
SP
134952007-06-27 Seongbae Park <seongbae.park@gmail.com>
13496
13497 PR rtl-optimization/32481
13498 * combine.c (adjust_for_new_dest): Rescan the changed insn.
13499
b40b2172
RS
135002007-06-27 Richard Sandiford <richard@codesourcery.com>
13501
13502 * dce.c (deletable_insn_p_1): New function, split out from...
13503 (deletable_insn_p): ...here. Only treat bare USEs and CLOBBERs
13504 specially, not those inside PARALLELs. Remove BODY argument
13505 and adjust recursive call accordingly.
13506 (prescan_insns_for_dce): Update call to delete_insn_p.
13507
3b357646
RG
135082007-06-27 Richard Guenther <rguenther@suse.de>
13509
13510 PR middle-end/32492
13511 * tree.h (fold_convertible_p): Declare.
13512 * fold-const.c (fold_convertible_p): New function.
13513 * gimplify.c (gimplify_call_expr): Use fold_convertible_p
13514 instead of lang_hooks.types_compatible_p.
13515
95e88efd
JH
135162007-06-26 Jan Hubicka <jh@suse.cz>
13517
13518 * fwprop.c (try_fwprop_subst): Use validate_unshare_change.
13519 * postreload.c (reload_cse_simplify_set): Instead of copying the rtx
13520 early use validate_unshare_change.
13521 (reload_combine): Likewise.
13522 * recog.c (change_t): New field unshare.
13523 (validate_change_1): Rename from validate_change; add argument unshare.
13524 (validate_change): Turn into wrapper of validate_change_1; update
13525 prototype for bools.
13526 (validate_unshare_change): New.
13527 (confirm_change_group): Unshare changes if asked for; avoid unnecesary
13528 calls of df_insn_rescan.
13529 * recog.h (validate_change): Replace ints by bools.
13530 (validate_unshare_change): Declare.
13531
201bfd14
KZ
135322007-06-26 Kenneth Zadeck <zadeck@naturalbridge.com>
13533
d5d5d289 13534 * tree.def (VEC_WIDEN_MULT_LO_EXPR): Corrected string name.
201bfd14 13535
4319e38c
SE
135362007-06-26 Steve Ellcey <sje@cup.hp.com>
13537
13538 * builtins.c (expand_builtin_next_arg): Change Pmode to ptr_mode.
13539
12c7b51e
JH
135402007-06-25 Jan Hubicka <jh@suse.cz>
13541
13542 * ipa-inline.c (cgraph_mark_inline): Assert that we never inline
13543 uninlinable call.
13544 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining,
13545 cgraph_decide_inlining_incrementally): Move uninlinability checks to
13546 places other call site specific checks are performed.
13547
2caf766b
AP
135482007-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
13549
13550 PR tree-opt/32421
13551 * tree-vect-transform.c (vectorizable_operation): Convert
13552 POINTER_PLUS_EXPR over to PLUS_EXPR.
13553
1699ec0b
CF
135542007-06-25 Chao-ying Fu <fu@mips.com>
13555
13556 * doc/rtl.texi (Machine Modes): Document QQ, HQ, SQ, DQ, TQ,
13557 UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA, USA, UDA, and UTAmodes.
13558 Document MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
13559 Document GET_MODE_IBIT, and GET_MODE_FBIT.
13560
13561 * machmode.h (VECTOR_MODE_P): Test MODE_VECTOR_FRACT,
13562 MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
13563 (SCALAR_FRACT_MODE_P, SCALAR_UFRACT_MODE_P, ALL_SCALAR_FRACT_MODE_P,
13564 SCALAR_ACCUM_MODE_P, SCALAR_UACCUM_MODE_P, ALL_SCALAR_ACCUM_MODE_P,
13565 SIGNED_SCALAR_FIXED_POINT_MODE_P, UNSIGNED_SCALAR_FIXED_POINT_MODE_P,
13566 ALL_SCALAR_FIXED_POINT_MODE_P, FRACT_MODE_P, UFRACT_MODE_P,
13567 ALL_FRACT_MODE_P, ACCUM_MODE_P, UACCUM_MODE_P, ALL_ACCUM_MODE_P,
13568 SIGNED_FIXED_POINT_MODE_P, UNSIGNED_FIXED_POINT_MODE_P,
13569 ALL_FIXED_POINT_MODE_P): New define.
13570 (CLASS_HAS_WIDER_MODES_P): Test MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
13571 MODE_UACCUM.
13572 (GET_MODE_IBIT, GET_MODE_FBIT): New define.
13573
13574 * mode-classes.def (MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM,
13575 MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
13576 MODE_VECTOR_UACCUM): New mode classes.
13577
13578 * machmode.def: Document FRACT_MODE, UFRACT_MODE, ACCUM_MODE,
13579 UACCUM_MODE, ADJUST_IBIT, and ADJUST_FBIT.
13580 Add QQ, HQ, SQ, DQ, TQ, UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA,
13581 USA, UDA, and UTA.
13582
13583 * genmodes.c (struct mode_data): Add ibit and fbit fields.
13584 (blank_mode): Initialize ibit and fbit.
13585 (adj_ibit, adj_fbit): New to adjust ibit and fbit.
7e08fa35
UB
13586 (vector_class): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
13587 MODE_UACCUM.
1699ec0b
CF
13588 (new_adjust): Change required_class to required_class_from and
13589 required_class_to for testing within a range.
13590 (complete_mode): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
13591 MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
13592 MODE_VECTOR_UACCUM.
13593 (FRACT_MODE, UFRACT_MODE, ACCUM_MODE, UACCUM_MODE): New define.
13594 (make_fixed_point_mode): New.
13595 (_ADD_ADJUST): Change C to C1 and C2.
13596 (ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FLOAT_FORMAT): Change to
13597 use a range for machine classes.
13598 (ADJUST_IBIT, ADJUST_FBIT): New.
13599 (emit_insn_modes_h): Output defines of CONST_MODE_IBIT and
13600 CONST_MODE_FBIT.
13601 (emit_mode_adjustments): Handle MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
13602 MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
13603 Emit adjustment for ibit and fbit.
13604 (emit_mode_ibit, emit_mode_fbit): New.
13605 (emit_insn_modes_c): Add emit_mode_ibit and emit_mode_fbit.
13606
a3f8aaa5
NF
136072007-06-25 Nathan Froyd <froydnj@codesourcery.com>
13608
13609 * config/rs6000/spe.md (*frob_ti_tf_2): Specify an input_operand
13610 as the source of the set.
13611
bf32249e
RZ
136122007-06-25 Roman Zippel <zippel@linux-m68k.org>
13613
13614 * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P,
13615 FP_REGNO_P): Use IN_RANGE.
13616 (REGNO_OK_FOR_DATA_P, REGNO_OK_FOR_FP_P): Remove.
13617 (REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): New.
13618 (DATA_REG_P): Use DATA_REGNO_P.
13619 (FP_REG_P): Use FP_REGNO_P.
13620 (ADDRESS_REG_P): Use ADDRESS_REGNO_P.
13621 * config/m68k/m68k.c (m68k_legitimate_base_reg_p): Use
13622 REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P.
13623
6a84c098
JH
136242007-06-24 Jan Hubicka <jh@suse.cz>
13625
13626 PR middle-end/30563
13627 * cgraphunit.c (cgraph_analyze_function): Fix ordering problem.
13628
a49c5793
SP
136292007-06-24 Sebastian Pop <sebpop@gmail.com>
13630
13631 PR middle-end/32461
13632 * fold-const.c (fold_binary): Strip nops of operand 0
13633 of BIT_NOT_EXPR before calling operand_equal_p.
13634 * testsuite/gcc.dg/tree-ssa/pr32461-1.c: New.
13635 * testsuite/gcc.dg/tree-ssa/pr32461-2.c: New.
13636
3a687f8b
MM
136372007-06-23 Mark Mitchell <mark@codesourcery.com>
13638
13639 * doc/extend.texi: Document that dllimport and dllexport imply
13640 default visibility.
13641 * tree.c (handle_dll_attribute): Set DECL_VISIBILITY on the
13642 imported or exported declaration, including type declarations.
13643 * c-common.c (handle_visibility_attribute): Check for conflicts
13644 with dllimport/dllexport.
13645 (c_determine_visibility): Handle dllimport/dllexport as an
13646 explicit visibility atttribute.
13647
e36711f3
RG
136482007-06-23 Richard Guenther <rguenther@suse.de>
13649
13650 PR tree-optimization/16876
13651 PR middle-end/29478
13652 * tree.h (CALL_CANNOT_INLINE_P): New macro to access static_flag
13653 for CALL_EXPRs.
13654 * tree-inline.c (initialize_inlined_parameters): Do not call
13655 lang_hooks.tree_inlining.convert_parm_for_inlining.
13656 * cgraphbuild.c (initialize_inline_failed): Set inline failed
13657 reason for mismatched types.
13658 * gimplify.c (gimplify_call_expr): Verify the call expression
13659 arguments match the called function type signature. Otherwise
13660 mark the call expression to be not considered for inlining
13661 using CALL_CANNOT_INLINE_P flag.
13662 * ipa-inline.c (cgraph_mark_inline): Honor CALL_CANNOT_INLINE_P on the
13663 edges call expression.
13664 (cgraph_decide_inlining_of_small_function): Likewise.
13665 (cgraph_decide_inlining): Likewise.
13666 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
13667 Remove define.
13668 * c-tree.h (c_convert_parm_for_inlining): Remove declaration.
13669 * c-typeck.c (c_convert_parm_for_inlining): Remove.
13670 * langhooks-def.h (lhd_tree_inlining_convert_parm_for_inlining):
13671 Remove declaration.
13672 (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING): Remove define.
13673 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining):
13674 Remove.
13675 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
13676 convert_parm_for_inlining member.
13677
630ef467
RE
136782007-06-23 Richard Earnshaw <rearnsha@arm.com>
13679
13680 PR target/31152
13681 * arm.md (negscc): Match the correct operand for optimized LT0 test.
13682 Remove optimization for GT.
13683
6cad9859
KZ
136842007-06-23 Kenneth Zadeck <zadeck@naturalbridge.com>
13685
13686 PR middle-end/32437
20de4d99 13687 * dce.c (deletable_insn_p): Add extra parameter and recurse if insn
6cad9859
KZ
13688 is a PARALLEL.
13689 (prescan_insns_for_dce): Add extra parameter.
13690
936d04b6
JH
136912007-06-23 Jan Hubicka <jh@suse.cz>
13692
13693 PR middle-end/31541
13694 * gimplify.c (mark_addressable): New function.
13695 (gimplify_modify_expr_rhs, gimplify_addr_expr, gimplify_expr): Use it.
13696
b40c4f68 136972007-06-22 Uros Bizjak <ubizjak@gmail.com>
58f7fcc3
UB
13698
13699 PR middle-end/32374
13700 * expr.c (store_constructor): Do not clobber non-zeroed memory.
13701
147bbdd0
UB
137022007-06-22 Uros Bizjak <ubizjak@gmail.com>
13703
13704 PR target/32413
13705 * config/i386/i386.c (ix86_register_move_cost): Rise the cost of
13706 moves between MMX/SSE registers to at least 8 units to prevent
13707 ICE caused by non-tieable SI/HI/QImodes in SSE registers.
13708
9064c533
UB
137092007-06-22 Uros Bizjak <ubizjak@gmail.com>
13710
13711 * config/i386/i386.c (override_options): Correct x86_sahf
13712 setting condition.
13713
48a8bb13
DD
137142007-06-21 David Daney <ddaney@avtrex.com>
13715
1ad91955 13716 PR target/32406
48a8bb13
DD
13717 * config/mips/mips.md (define_constants): Rename UNSPEC_EH_RECEIVER
13718 to UNSPEC_NONLOCAL_GOTO_RECEIVER globally.
13719 (exception_receiver): Renamed to ...
13720 (nonlocal_goto_receiver): ... this.
13721
7bb3ae2f
RZ
137222007-06-22 Roman Zippel <zippel@linux-m68k.org>
13723
13724 * df-scan.c (df_read_modify_subreg_p): Use REGMODE_NATURAL_SIZE.
13725 (df_def_record_1): Set (DF_REF_READ_WRITE | DF_REF_PARTIAL) for
13726 partial register accesses.
13727
f1b42630
AN
137282007-06-21 Adam Nemet <anemet@caviumnetworks.com>
13729
13730 * fold-const.c (debug_fold_checksum): Move it under
13731 ENABLE_FOLD_CHECKING.
13732
70826cbb
SP
137332007-06-21 Sebastian Pop <sebpop@gmail.com>
13734
13735 PR middle-end/20623
13736 * tree.h (debug_fold_checksum): Declared.
13737 * fold-const.c (build_fold_addr_expr_with_type_1): New.
13738 (build_fold_addr_expr_with_type, build_fold_addr_expr): Use
13739 build_fold_addr_expr_with_type_1.
13740 (fold_addr_expr, debug_fold_checksum): New.
13741 (fold_checksum_tree): Don't fold TREE_CHAIN of an SSA_NAME.
13742 (fold_unary, fold_comparison, split_address_to_core_and_offset):
13743 Use fold_addr_expr.
13744
6f1c9cd0
SP
137452007-06-21 Sebastian Pop <sebpop@gmail.com>
13746
13747 PR tree-optimization/19590
13748 * tree-vrp.c (adjust_range_with_scev): Set the range when the result
13749 of scev is a constant.
6f1c9cd0 13750
e44e043c
KZ
137512007-06-21 Kenneth Zadeck <zadeck@naturalbridge.com>
13752
d5d5d289 13753 * df-problems.c (df_note_bb_compute): Made computation of live
e44e043c
KZ
13754 info consistent with df_lr.
13755
42289977
RG
137562007-06-21 Richard Guenther <rguenther@suse.de>
13757
13758 PR tree-optimization/32453
13759 * tree-vrp.c (extract_range_from_assert): Build POINTER_PLUS_EXPR
13760 for pointer anti-range.
13761
461a73b5
L
137622007-06-21 H.J. Lu <hongjiu.lu@intel.com>
13763
13764 * config/i386/i386.c (processor_target_table): Increase maximum
13765 skip from 7 byte to 10 byte for Pentium Pro, Core 2 Duo and
13766 default 64bit.
13767
13768 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Ensure 8
13769 byte alignment if > 8 byte alignment is preferred.
13770 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
13771
64964499
JJ
137722007-06-21 Jakub Jelinek <jakub@redhat.com>
13773
3521f3cc
JJ
13774 PR tree-optimization/31866
13775 * tree-ssa-coalesce.c (create_outofssa_var_map): Do nothing
13776 if ASM_EXPR's input is not a SSA_NAME.
13777
64964499
JJ
13778 PR middle-end/32362
13779 * omp-low.c (lookup_decl_in_outer_ctx): Don't ICE if t is NULL,
13780 but decl is a global var, instead return decl.
13781 * gimplify.c (gimplify_adjust_omp_clauses_1): Add shared clauses
13782 even for is_global_var decls, if they are private in some outer
13783 context.
13784
d9eb5318
RG
137852007-06-21 Richard Guenther <rguenther@suse.de>
13786
13787 PR tree-optimization/32451
13788 * tree-ssa-threadupdate.c (thread_single_edge): Fixup edge flags.
13789
5c7cafa8
CB
137902007-06-21 Christian Bruel <christian.bruel@st.com>
13791
13792 * config/sh/sh-protos.h (sh_loads_bankedreg_p): Declare.
13793 * config/sh/sh.c (sh_loads_bankedreg_p): New function.
13794 (push_regs): Changed saving order or banked registers.
13795 (sh_expand_epilogue): Likewise.
13796 * config/sh/sh.h (BANKED_REGISTER_P): New macro.
13797 (FIRST_BANKED_REG): Likewise.
13798 (LAST_BANKED_REG): Likewise.
13799 * config/sh/sh.md (banked) New attribute.
13800 (in_delay_slot): Check banked attribute.
13801
c0aafd30
SP
138022007-06-20 Sebastian Pop <sebpop@gmail.com>
13803
13804 PR tree-optimization/32075
13805 * tree-data-ref.c (subscript_dependence_tester_1,
13806 analyze_miv_subscript, analyze_overlapping_iterations,
13807 add_distance_for_zero_overlaps, build_classic_dist_vector,
13808 subscript_dependence_tester_1, analyze_overlapping_iterations,
13809 subscript_dependence_tester, access_functions_are_affine_or_constant_p,
13810 compute_affine_dependence, compute_all_dependences): Pass loop_nest
13811 to evolution_function_is_affine_multivariate_p.
13812
7e657ec2
EB
138132007-06-20 Eric Botcazou <ebotcazou@libertysurf.fr>
13814
13815 * df-scan.c (df_get_call_refs): Be prepared for MEMs inside CLOBBERs.
13816
7a9dcd47
RIL
138172007-06-20 Rask Ingemann Lambertsen <rask@sygehus.dk>
13818
13819 PR target/32335
13820 * config/m32c/m32c.c (m32c_emit_epilogue): Use new HImode epilogue
13821 for TARGET_A16.
13822 * config/m32c/prologue.md (epilogue_exitd_16): New.
13823 (epilogue_reit_16): New.
13824 (epilogue_exitd): Rename to epilogue_exitd_24.
13825 (epilogue_reit): Rename to epilogue_reit_24.
13826
b631c5f7 138272007-06-20 Seongbae Park <seongbae.park@gmail.com>
d5d5d289 13828 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
b631c5f7
SP
13829
13830 * dbgcnt.def (global_alloc_at_func, global_alloc_at_reg):
13831 New counters.
13832 * haifa-sched.c (queue_to_ready): Don't requeue next insn
13833 if dbg_cnt (sched_insn) reaches the limit.
13834 (choose_ready): New parameter INSN_PTR and new return value.
13835 (schedule_block): Handle dbg_cnt (sched_insn). Handle
13836 the new return value from choose_ready.
13837 * global.c (global_aloc): New dbgcnt global_alloc_at_reg.
13838 (rest_of_handle_global_alloc): New global_alloc_at_func.
13839
3d9b47dc
AN
138402007-06-20 Adam Nemet <anemet@caviumnetworks.com>
13841
13842 PR tree-optimization/25737
13843 * tree.h (struct tree_struct_field_tag): Add new field alias_set.
13844 (SFT_NONADDRESSABLE_P, SFT_ALIAS_SET): New macros.
13845 * tree-flow.h (struct fieldoff): Add new field alias_set.
13846 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add new
13847 argument addressable_type. Set alias_set of fieldoff.
13848 * tree-ssa-alias.c (create_sft): Add new argument alias_set.
13849 (create_overlap_variables_for): Pass alias_set from fieldoff to
13850 create_sft.
13851 * alias.c (get_alias_set): Use alias_set from SFT if set.
13852
1c5ae962
HMC
138532007-06-20 Hui-May Chang <hm.chang@apple.com>
13854
13855 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Print the size
13856 of a variable as an unsigned HOST_WIDE_INT integer.
13857
6848da6a
ZD
138582007-06-20 Zdenek Dvorak <dvorakz@suse.cz>
13859
13860 PR rtl-optimization/32405
13861 * loop-iv.c (iv_get_reaching_def): Fail for partial defs.
13862
6a4e56a9
JJ
138632007-06-20 Jakub Jelinek <jakub@redhat.com>
13864
6330585d
JJ
13865 * Makefile.in (omega.o): Depend on $(DIAGNOSTIC_H).
13866
1d8381f1
JJ
13867 PR middle-end/31959
13868 * builtins.c: Include diagnostic.h.
13869 (expand_builtin_expect): Make gcc_assert more permissive.
13870 * Makefile.in (builtins.o): Depend on $(DIAGNOSTIC_H).
13871
f497c16c
JJ
13872 PR inline-asm/32109
13873 * gimplify.c (gimplify_asm_expr): Issue error if type is addressable
13874 and !allows_mem.
13875
6a4e56a9
JJ
13876 PR middle-end/32285
13877 * calls.c (precompute_arguments): Also precompute CALL_EXPR arguments
13878 if ACCUMULATE_OUTGOING_ARGS.
13879
c105ee09
RIL
138802007-06-19 Rask Ingemann Lambertsen <rask@sygehus.dk>
13881
13882 * config/m68hc11/m68hc11.c: Include dataflow header file.
13883 (m68hc11_reorg): Port to dataflow.
13884
4aa0f911 138852007-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
89a95777
KZ
13886
13887 * df.h (DF_FIRST_OPTIONAL_PROBLEM): Removed.
13888 (struct df_problem.free_blocks_on_set_blocks): New field.
13889 (struct dataflow.optional_p): New field.
13890 (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
13891 (df_live_set_all_dirty): New function.
13892 * df-scan.c (df_scan_alloc): Initialize optional_p.
13893 (problem_SCAN): Initialize free_blocks_on_set_blocks.
13894 * df-core.c (df_set_blocks): Removed use of
13895 DF_FIRST_OPTIONAL_PROBLEM. Now uses
13896 df_problem.free_blocks_on_set_blocks to determine which blocks are
13897 recycled.
13898 (df_remove_problem): Removed use of DF_FIRST_OPTIONAL_PROBLEM.
13899 (df_finish_pass): Removed use of DF_FIRST_OPTIONAL_PROBLEM. Now
13900 uses dataflow.optional_p to determine if problem should be
13901 deleted.
13902 (rest_of_handle_df_initialize): Only start live problem if
13903 -02 or above.
13904 (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
13905 * df-problems.c (df_ru_alloc, df_rd_alloc, df_lr_alloc,
13906 df_live_alloc, df_urec_alloc, df_note_alloc): set optional_p.
13907 (problem_RU, problem_RD, problem_LR, problem_UREC, problem_CHAIN,
6ef5231b 13908 problem_NOTE): Initialize free_blocks_on_set_blocks.
89a95777
KZ
13909 (df_lr_bb_local_compute): Recompute luids if df_live problem is
13910 not active.
13911 (df_live_set_all_dirty, df_note_alloc): New function.
13912 * regrename.c (merge_overlapping_regs): Change DF_LIVE_* to
13913 df_get_live_*.
13914 * sched_ebb.c (compute_jump_reg_dependencies): Ditto.
13915 * postreload.c (reload_combine): Ditto.
13916 * cse.c (cse_extended_basic_block): Ditto.
13917 * regmove.c (mark_flags_life_zones): Ditto.
13918 * rtlfactoring.c (split_blocks_after_seqs, split_pattern_seq,
13919 erase_matching_seqs): Ditto.
13920 * bt-load.c (compute_defs_uses_and_gen): Ditto.
13921 * integrate (allocate_initial_values): Ditto.
13922 * combine.c (reg_dead_at_p): Ditto.
13923 * resource.c (mark_target_live_regs): Ditto.
13924 * sched-rgn.c (check_live_1, update_live_1): Ditto.
13925 * config/sh/sh.c (find_r0_life_regions): Ditto.
13926 * global.c (rest_of_handle_global_alloc): Only add back df_live
13927 for -O > 1.
13928 * local-alloc.c (rest_of_handle_local_alloc): Only remove
13929 df_live for -O > 1.
13930 * ifcvt.c (dead_or_predicable): Change DF_LIVE_* to
13931 df_get_live_*.
13932 (if_convert): Make sure df_live is there at -O == 1.
13933 (pass_if_after_combine): Cleanup flags.
13934 * init-regs.c (initialize_uninitialized_regs): Make sure df_live
13935 is there at -O == 1.
13936
a3a531ec
SP
139372007-06-19 Seongbae Park <seongbae.park@gmail.com>
13938
13939 * config/arm/arm.c (arm_get_frame_offsets): Set
13940 offsets->locals_base to avoid negative stack size.
13941 (thumb1_expand_prologue): Assert on negative stack size.
13942
d0c9d431 139432007-06-19 Sebastian Pop <sebpop@gmail.com>
0f7c0775
SP
13944
13945 PR tree-optimization/32367
13946 * tree-chrec.h (build_polynomial_chrec): Verify that the left hand side
13947 of the chrec has no evolution in that loop.
13948 * testsuite/gcc.dg/tree-ssa/pr32367.c: New.
13949
e70312d4
BW
139502007-06-19 Bob Wilson <bob.wilson@acm.org>
13951
13952 * config/xtensa/xtensa.c: Include "df.h".
7e08fa35
UB
13953 (xtensa_builtin_saveregs): Use adjust_address instead of
13954 change_address.
e70312d4
BW
13955 (xtensa_va_start): Invoke make_tree with sizetype for
13956 expand_builtin_saveregs and then convert the result to a pointer.
13957 Use POINTER_PLUS_EXPR. Use size_int instead of build_int_cst.
13958 (xtensa_gimplify_va_arg_expr): Use size_int instead of build_int_cst.
13959 Subtract argument size from index value as integers and then use
13960 POINTER_PLUS_EXPR to add the result to the array address.
13961
fa9fd28a
RIL
139622007-06-19 Rask Ingemann Lambertsen <rask@sygehus.dk>
13963
13964 PR target/32335
13965 * config/m32c/m32c.c: Include dataflow header file.
13966 (m32c_emit_prologue): Adjust for prologue insn change.
13967 * config/m32c/prologue.md (prologue_enter_16): Only modify SP_REGNO
13968 once inside a PARALLEL. Assume frame size passed in operand 0
13969 includes space to save the fb register.
13970 (prologue_enter_24): Likewise.
13971 (epilogue_exitd): Only modify SP_REGNO once inside a PARALLEL.
13972
21d09454
DD
139732007-06-19 David Daney <ddaney@avtrex.com
13974
13975 PR target/32313
13976 * config/mips/mips.md (cprestore): Mark $gp as used.
13977
eedd7243
RIL
139782007-06-19 Rask Ingemann Lambertsen <rask@sygehus.dk>
13979
13980 PR target/32369
13981 * config/frv/frv.c (frv_ifcvt_modify_tests): Dataflow merge fix.
13982 (frv_ifcvt_modify_insn): Likewise.
13983
9bf448b9
RB
139842007-06-19 Richard Guenther <rguenther@suse.de>
13985
13986 * tree-ssa-structalias.c (handle_ptr_arith): Make sure to
13987 only handle positive offsets that fit in a HOST_WIDE_INT.
13988
139892007-06-19 Uros Bizjak <ubizjak@gmail.com>
258d0b9b 13990
670a8526
UB
13991 * config/i386/i386.c (ix86_emit_swsqrtsf): Filter out infinity
13992 result of rsqrt insn for zero input argument to avoid NaN.
258d0b9b 13993
7ffc27a6
RG
139942007-06-19 Richard Guenther <rguenther@suse.de>
13995
13996 PR middle-end/31950
13997 * tree-ssa-alias-warnings.c (ffan_walker): Punt on MTAGs.
13998
fda2b8e3
JJ
139992007-06-19 Jakub Jelinek <jakub@redhat.com>
14000
14001 PR tree-optimization/32353
14002 * tree-ssa-structalias.c (set_uids_in_ptset): Also handle RESULT_DECL.
14003
8dba2ded
NC
140042007-06-19 Nick Clifton <nickc@redhat.com>
14005
20de4d99 14006 * config/m32r/linux.h (LIB_SPEC): Always imply -lpthread for -pthread.
8dba2ded 14007
80dcd3aa
UB
140082007-06-18 Uros Bizjak <ubizjak@gmail.com>
14009
14010 PR target/32389
14011 * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_VIRTUAL.
14012 * config/i386/i386.c (assign_386_stack_local): Assert that
14013 SLOT_VIRTUAL is valid only before virtual regs are instantiated.
14014 (ix86_expand_builtin) [IX86_BUILTIN_LDMXCSR, IX86_BUILTIN_STMXCSR]:
14015 Use SLOT_VIRTUAL stack slot instead of SLOT_TEMP.
14016 * config/i386/i386.md (truncdfsf2, truncxf<mode>2): Ditto.
14017
d448952a
SE
140182007-06-18 Steve Ellcey <sje@cup.hp.com>
14019
14020 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): New.
14021
bfff9190
SP
140222007-06-18 Seongbae Park <seongbae.park@gmail.com>
14023
14024 PR rtl-optimization/32321
14025 * gcse.c (replace_store_insn): Update the note before
14026 calling emit_insn_after.
d4977f6c 14027
8b9d606b
KZ
140282007-06-18 Kenneth Zadeck <zadeck@naturalbridge.com>
14029
14030 PR middle-end/32355
14031 * gcse (rest_of_handle_gcse): Add call to df_finish_pass after
14032 cse_main.
14033 * df-problems.c (df_note_bb_compute): Fix dumping info.
14034
49570723
KH
140352007-06-18 Kazu Hirata <kazu@codesourcery.com>
14036
14037 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a return
14038 insn with emit_jump_insn.
14039
ac10986f
UB
140402007-06-18 Uros Bizjak <ubizjak@gmail.com>
14041
14042 PR tree-optimization/32383
14043 * targhooks.c (default_builtin_reciprocal): Add new bool argument.
14044 * targhooks.h (default_builtin_reciprocal): Update prototype.
14045 * target.h (struct gcc_target): Update builtin_reciprocal.
14046 * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Update description.
14047 * tree-ssa-math-opts (execute_cse_reciprocals): Skip statements
14048 where arg1 is not SSA_NAME. Pass true to targetm.builtin_reciprocal
14049 when fndecl is in BUILT_IN_MD class.
14050 (execute_convert_to_rsqrt): Ditto.
14051
14052 * config/i386/i386.c (ix86_builtin_reciprocal): Update for new bool
14053 argument. Convert IX86_BUILTIN_SQRTPS code only when md_fn is true.
14054 Convert BUILT_IN_SQRTF code only when md_fn is false.
14055
a8d8890a
KK
140562007-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
14057
14058 * bt-load.c (move_btr_def): Fix the order of arguments
14059 to validate_replace_rtx.
14060
a761c345
NS
140612007-06-18 Nathan Sidwell <nathan@codesourcery.com>
14062
14063 * config/m68k/m68k-devices.def: Add 54450..54455.
14064
a0c64295
UB
140652007-06-17 Uros Bizjak <ubizjak@gmail.com>
14066
14067 PR rtl-optimization/32366
14068 * simplify-rtx.c (simplify_unary_operation_1) [FLOAT_TRUNCATE,
14069 FLOAT_EXTEND]: Prevent non-scalar modes from entering
14070 significand_size.
14071
5f705558
KZ
140722007-06-17 Kenneth Zadeck <zadeck@naturalbridge.com>
14073
14074 PR middle-end/32349
14075 * modulo-sched (generate_reg_moves): Added rescan parameter and if
14076 this is true, rescan insn being modified.
14077 (sms_schedule): Added rescan parameter.
14078 (rest_of_handle_sms): Moved freeing of dominance info to before
14079 getting out of cfg_layout.
14080
59c92f76
NS
140812007-06-17 Nathan Sidwell <nathan@codesourcery.com>
14082
14083 * config/m68k/m68k.h (ISA_HAS_FF1, ISA_HAS_MVS_MVZ): New.
14084 * config/m68k/m68k.md: Use ISA_HAS_FF1 and ISA_HAS_MVS_MVZ as
14085 appropriate.
14086
fe116068
NS
14087 * config/m68k/m68k.c (all_isas): Remove FL_CF_FPU and
14088 FL_CF_EMAC from the entry for isac.
14089
4e2b26aa
NS
14090 * config/m68k/predicates.md (const_call_operand): Adjust comment.
14091 (const_sibcall_operand): New.
14092 (sibcall_operand): Use it.
14093 * config/m68k/m68k.c (FL_FOR_isa_c): Not ISA_B compatible.
14094 (m68k_isas): ISAC does not imply FPU or EMAC.
14095 (override_options): Add ISA_C logic for symbolic jump & call.
14096
724d7c55
EB
140972007-06-17 Eric Botcazou <ebotcazou@libertysurf.fr>
14098
14099 * config/sparc/sparc.c (sparc_vis_init_builtins): Retrieve the
14100 return mode from the builtin itself.
14101 (sparc_fold_builtin): Fix cast of zero constant.
14102
cc2137be
UB
141032007-06-16 Uros Bizjak <ubizjak@gmail.com>
14104
14105 * targhooks.c (default_builtin_reciprocal): New default target hook.
14106 * targhooks.h (default_builtin_reciprocal): Add prototype.
14107 * hooks.c (hook_tree_tree_bool_null): Remove hook.
14108 * hooks.h (hook_tree_tree_bool_null): Remove prototype.
14109 * target-def.h (TARGET_BUILTIN_RECIPROCAL): Define as
14110 default_builtin_reciprocal.
14111
6b889d89
UB
141122007-06-16 Uros Bizjak <ubizjak@gmail.com>
14113
14114 PR middle-end/31723
14115 * hooks.c (hook_tree_tree_bool_null): New hook.
14116 * hooks.h (hook_tree_tree_bool_null): Add prototype.
14117 * tree-pass.h (pass_convert_to_rsqrt): Declare.
14118 * passes.c (init_optimization_passes): Add pass_convert_to_rsqrt.
14119 * tree-ssa-math-opts.c (execute_cse_reciprocals): Scan for a/func(b)
14120 and convert it to reciprocal a*rfunc(b).
14121 (execute_convert_to_rsqrt): New function.
14122 (gate_convert_to_rsqrt): New function.
14123 (pass_convert_to_rsqrt): New pass definition.
14124 * target.h (struct gcc_target): Add builtin_reciprocal.
14125 * target-def.h (TARGET_BUILTIN_RECIPROCAL): New define.
14126 (TARGET_INITIALIZER): Initialize builtin_reciprocal with
14127 TARGET_BUILTIN_RECIPROCAL.
14128 * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Document.
14129
14130 * config/i386/i386.h (TARGET_RECIP): New define.
14131 * config/i386/i386.md (divsf3): Expand by calling ix86_emit_swdivsf
14132 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
14133 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
14134 and not optimizing for size.
14135 (*rcpsf2_sse): New insn pattern.
14136 (*rsqrtsf2_sse): Ditto.
14137 (rsqrtsf2): New expander. Expand by calling ix86_emit_swsqrtsf
14138 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
14139 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
14140 and not optimizing for size.
14141 (sqrt<mode>2): Expand SFmode operands by calling ix86_emit_swsqrtsf
14142 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
14143 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
14144 and not optimizing for size.
14145 * config/i386/sse.md (divv4sf): Expand by calling ix86_emit_swdivsf
14146 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
14147 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
14148 and not optimizing for size.
14149 (*sse_rsqrtv4sf2): Do not export.
14150 (sqrtv4sf2): Ditto.
14151 (sse_rsqrtv4sf2): New expander. Expand by calling ix86_emit_swsqrtsf
14152 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
14153 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
14154 and not optimizing for size.
14155 (sqrtv4sf2): Ditto.
14156 * config/i386/i386.opt (mrecip): New option.
14157 * config/i386/i386-protos.h (ix86_emit_swdivsf): Declare.
14158 (ix86_emit_swsqrtsf): Ditto.
14159 * config/i386/i386.c (IX86_BUILTIN_RSQRTF): New constant.
14160 (ix86_init_mmx_sse_builtins): __builtin_ia32_rsqrtf: New
14161 builtin definition.
14162 (ix86_expand_builtin): Expand IX86_BUILTIN_RSQRTF using
14163 ix86_expand_unop1_builtin.
14164 (ix86_emit_swdivsf): New function.
14165 (ix86_emit_swsqrtsf): Ditto.
14166 (ix86_builtin_reciprocal): New function.
14167 (TARGET_BUILTIN_RECIPROCAL): Use it.
14168 (ix86_vectorize_builtin_conversion): Rename from
14169 ix86_builtin_conversion.
14170 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Use renamed function.
14171 * doc/invoke.texi (Machine Dependent Options): Add -mrecip to
14172 "i386 and x86_64 Options" section.
14173 (Intel 386 and AMD x86_64 Options): Document -mrecip.
14174
5be014d5 141752007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
d5d5d289
L
14176 Zdenek Dvorak <dvorakz@suse.cz>
14177 Richard Guenther <rguenther@suse.de>
14178 Kaz Kojima <kkojima@gcc.gnu.org>
5be014d5
AP
14179
14180 * tree-vrp.c (compare_values_warnv): Convert val2 to
14181 the type of val1.
14182 (extract_range_from_assert): Create
14183 POINTER_PLUS_EXPR for pointer types.
14184 (extract_range_from_binary_expr): Handle
14185 only POINTER_PLUS_EXPR, MIN_EXPR, and MAX_EXPR
14186 for pointer types.
14187 * doc/c-tree.texi (POINTER_PLUS_EXPR): Document.
14188 * tree-ssa-loop-niter.c (split_to_var_and_offset): Handle
14189 POINTER_PLUS_EXPR as PLUS_EXPR.
14190 (number_of_iterations_lt_to_ne):
14191 For pointer types, use sizetype when
14192 creating MINUS_EXPR/PLUS_EXPRs.
14193 (assert_loop_rolls_lt): For pointer types, use sizetype when
14194 creating MINUS_EXPR/PLUS_EXPRs.
14195 (number_of_iterations_le): Likewise.
14196 (expand_simple_operations): POINTER_PLUS_EXPR are simple also.
14197 (derive_constant_upper_bound): Handle POINTER_PLUS_EXPR just
14198 like PLUS_EXPR and MINUS_EXPR.
14199 * tree-pretty-print.c (dump_generic_node): Handle
14200 POINTER_PLUS_EXPR.
14201 (op_prio): Likewise.
14202 (op_symbol_1): Likewise.
14203 * optabs.c (optab_for_tree_code): Likewise.
14204 * tree-ssa-loop-manip.c (create_iv): Handle pointer base
14205 specially.
14206 * tree-tailcall.c (process_assignment): Mention
14207 POINTER_PLUS_EXPR in a TODO comment.
14208 * tree.c (build2_stat): Assert when trying to use PLUS_EXPR or
14209 MINUS_EXPR with a pointer. Also assert for POINTER_PLUS_EXPR
14210 not used with a pointer and an integer type.
14211 * tree-scalar-evolution.c (add_to_evolution_1): Convert the
14212 increment using chrec_convert_rhs instead of chrec_convert.
14213 (follow_ssa_edge_in_rhs): Handle POINTER_PLUS_EXPR like
14214 PLUS_EXPR except for the right hand side's type will be
14215 sizetype.
14216 (interpret_rhs_modify_stmt): Handle POINTER_PLUS_EXPR.
14217 (fold_used_pointer_cast): Kill.
14218 (pointer_offset_p): Kill.
14219 (fold_used_pointer): Kill.
14220 (pointer_used_p): Kill.
14221 (analyze_scalar_evolution_1 <case GIMPLE_MODIFY_STMT>): Don't
14222 call fold_used_pointer.
14223 (instantiate_parameters_1): Convert the increment
14224 using chrec_convert_rhs instead of chrec_convert.
14225 Handle POINTER_PLUS_EXPR as PLUS_EXPR.
14226 * builtins.c (get_pointer_alignment): Handle POINTER_PLUS_EXPR
14227 instead of PLUS_EXPR.
14228 (expand_builtin_strcat): Create a POINTER_PLUS_EXPR instead of
14229 PLUS_EXPR for pointers.
14230 (std_gimplify_va_arg_expr): Likewise.
14231 (fold_builtin_memory_op): Likewise.
14232 (fold_builtin_strstr): Likewise.
14233 (fold_builtin_strchr): Likewise.
14234 (fold_builtin_strrchr): Likewise.
14235 (fold_builtin_strpbrk): Likewise.
14236 (expand_builtin_memory_chk): Likewise.
14237 (fold_builtin_memory_chk): Likewise.
14238 (std_expand_builtin_va_start): Use
14239 sizetype for the call to make_tree and then convert
14240 to the pointer type.
14241 (fold_builtin_memchr): Use POINTER_PLUS_EXPR
14242 instead of PLUS_EXPR for adding to a pointer.
14243 (std_gimplify_va_arg_expr): Use fold_build2 for
14244 the creating of POINTER_PLUS_EXPR. For the BIT_AND_EXPR, cast
14245 the operands to sizetype first and then cast the BIT_AND_EXPR
14246 back to the pointer type.
14247 * fold-const.c (build_range_check): Handle pointer types
14248 specially.
14249 (extract_array_ref): Look for POINTER_PLUS_EXPR instead
14250 of PLUS_EXPR's. Make sure the offset is converted to
14251 sizetype.
14252 (try_move_mult_to_index): Strip the NOPs from the offset.
14253 Remove code argument and replace all uses with PLUS_EXPR.
14254 (fold_to_nonsharp_ineq_using_bound): Handle pointer types
14255 specially. Don't use a pointer type for MINUS_EXPR.
14256 (fold_unary): Handle for (T1)(X op Y),
14257 only p+ as that is the only as that can be handled for
14258 binary operators now.
14259 (fold_binary <case POINTER_PLUS_EXPR>): Add folding of
14260 POINTER_PLUS_EXPR.
14261 <case PLUS_EXPR>: Add folding of PTR+INT into
14262 PTR p+ INT.
14263 Don't call try_move_mult_to_index.
14264 <case MINUS_EXPR>: Fold (PTR0 p+ A) - (PTR1 p+ B)
14265 into (PTR0 - PTR1) + (A - B). Fold (PTR0 p+ A) - PTR1 into
14266 (PTR0 - PTR1) + A iff (PTR0 - PTR1) simplifies.
14267 Don't call try_move_mult_to_index.
14268 (tree_expr_nonnegative_warnv_p): Handle POINTER_PLUS_EXPR.
14269 (tree_expr_nonzero_p): Likewise.
14270 (fold_indirect_ref_1): Look at POINTER_PLUS_EXPR instead
14271 of PLUS_EXPR for the complex expression folding.
14272 * tree-chrec.c (chrec_fold_plus_poly_poly): If the
14273 first chrec is a pointer type, then the second should
14274 be sizetype and not the first's type.
14275 For POINTER_PLUS_EXPR, use a different right hand side type.
14276 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
14277 (chrec_fold_plus_1): For POINTER_PLUS_EXPR, use a
14278 different right hand side type.
14279 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
14280 (chrec_fold_plus): For pointer types, use POINTER_PLUS_EXPR
14281 instead of PLUS_EXPR.
14282 When either operand is zero, convert the other operand.
14283 (chrec_apply): Use chrec_convert_rhs
14284 on the argument x instead of chrec_convert.
14285 (reset_evolution_in_loop): For pointer types, the new_evol
14286 should be sizetype.
14287 (convert_affine_scev): For POINTER_PLUS_EXPR, use a
14288 different right hand side type.
14289 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
14290 (chrec_convert_rhs): New function.
14291 (chrec_convert_aggressive): For POINTER_PLUS_EXPR, use a
14292 different right hand side type.
14293 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
14294 * tree-chrec.h (chrec_convert_rhs): New prototype.
14295 (build_polynomial_chrec): For pointer types, the right hand
14296 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Look for
14297 POINTER_PLUS_EXPR instead of PLUS_EXPR's.
14298 Remove subtraction case as it is always addition now.
14299 Make sure the offset is converted to sizetype.
14300 (fold_stmt_r): Don't handle PLUS_EXPR/MINUS_EXPR specially.
14301 Handle POINTER_PLUS_EXPR like PLUS_EXPR was handled before.
14302 * tree-ssa-loop-ivopts.c (determine_base_object): Abort for
14303 PLUS_EXPR in pointer type.
14304 Handle POINTER_PLUS_EXPR.
14305 (tree_to_aff_combination): Likewise.
14306 (force_expr_to_var_cost): Likewise.
14307 (force_expr_to_var_cost): Likewise. Create a POINTER_PLUS_EXPR
14308 instead of PLUS_EXPR for pointers.
14309 * c-format.c (check_format_arg): Handle POINTER_PLUS_EXPR
14310 instead of PLUS_EXPR of pointer types.
14311 * tree-stdarg.c (va_list_counter_bump): Handle POINTER_PLUS_EXPR
14312 as PLUS_EXPR.
14313 (check_va_list_escapes): Likewise.
14314 (check_all_va_list_escapes): Likewise.
14315 * dwarf2out.c (loc_descriptor_from_tree_1):
14316 Handle POINT_PLUS_EXPR as a PLUS_EXPR.
14317 * expr.c (expand_expr_real_1): Handle POINTER_PLUS_EXPR.
14318 (string_constant): Likewise.
14319 * tree-ssa-address.c (tree_mem_ref_addr): When adding
14320 the offset to the base, use POINTER_PLUS_EXPR.
14321 (add_to_parts): Convert the index to sizetype.
14322 (create_mem_ref): Create A POINTER_PLUS_EXPR for the one case.
14323 * matrix-reorg.c (collect_data_for_malloc_call): Stmt
14324 will now only be either INDIRECT_REF and POINTER_PLUS_EXPR.
14325 Offset only holds something for PLUS_EXPR.
14326 (ssa_accessed_in_tree): Handle POINTER_PLUS_EXPR just as
14327 a PLUS_EXPR.
14328 (analyze_transpose): POINTER_PLUS_EXPR will only show up now
14329 and not PLUS_EXPR.
14330 (analyze_accesses_for_modify_stmt): Likewise.
14331 Remove comment about the type being integral type as it is
14332 wrong now.
14333 (can_calculate_expr_before_stmt): Handle POINTER_PLUS_EXPR as
14334 PLUS_EXPR.
14335 (transform_access_sites): POINTER_PLUS_EXPR will only show up now
14336 and not PLUS_EXPR.
14337 Correct the type which the artimentic is done in (is now
14338 sizetype).
14339 Reindent one loop.
14340 * tree-data-ref.c (split_constant_offset): Handle
14341 POINTER_PLUS_EXPR
14342 * tree-affine.c (tree_to_aff_combination): Likewise.
14343 * c-typeck.c (build_unary_op): For pointers create the increment
14344 as a sizetype. Create a POINTER_PLUS_EXPR instead of PLUS_EXPR
14345 for pointers.
14346 * gimplify.c (gimplify_self_mod_expr): Create a
14347 POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
14348 (gimplify_omp_atomic_fetch_op): Handle POINTER_PLUS_EXPR.
14349 * tree.def (POINTER_PLUS_EXPR): New tree code.
14350 * tree-predcom.c (ref_at_iteration): If we have a pointer
14351 type do the multiplication in sizetype.
14352 * tree-mudflap.c (mf_xform_derefs_1): Create a
14353 POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
14354 * tree-ssa-forwprop.c
14355 (forward_propagate_addr_into_variable_array_index):
14356 Don't expect there to be a cast for the index as that
14357 does not exist anymore.
14358 (forward_propagate_addr_expr_1): Check for POINTER_PLUS_EXPR
14359 instead of PLUS_EXPR.
14360 Don't check for the first operand of the POINTER_PLUS_EXPR
14361 was the index as it cannot be.
14362 Call forward_propagate_addr_into_variable_array_index with
14363 the SSA_NAME instead of the statement.
14364 * varasm.c (const_hash_1): Handle POINTER_PLUS_EXPR.
14365 (compare_constant): Likewise.
14366 (copy_constant): Likewise.
14367 (compute_reloc_for_constant): Likewise.
14368 (output_addressed_constants): Likewise.
14369 (initializer_constant_valid_p): Likewise.
14370 * tree-ssa.c (tree_ssa_useless_type_conversion_1):
14371 Convert the MIN/MAX of the inner type to the outer
14372 type before comparing them.
6ef5231b 14373 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Handle
5be014d5
AP
14374 POINTER_PLUS_EXPR instead of PLUS_EXPR.
14375 (issue_prefetch_ref): Create a POINTER_PLUS_EXPR instead
14376 of PLUS_EXPR for pointers.
14377 * tree-inline.c (estimate_num_insns_1): Handle
14378 POINTER_PLUS_EXPR.
14379 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
14380 Create a POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
14381 (bump_vector_ptr): Create a POINTER_PLUS_EXPR
14382 instead of PLUS_EXPR for the pointer increment statement.
14383 (vect_update_ivs_after_vectorizer): For pointer types, create
14384 POINTER_PLUS_EXPR instead of PLUS_EXPR and also create
14385 MULT_EXPR in sizetype.
14386 (vect_gen_niters_for_prolog_loop): Add a cast when creating
14387 byte_misalign.
14388 * tree-object-size.c (plus_expr_object_size): Handle
14389 POINTER_PLUS_EXPR instead of PLUS_EXPR. Removing all the extra
14390 code which is trying to figure out which side is a pointer and
14391 is the index.
14392 (check_for_plus_in_loops_1): Likewise.
14393 (check_for_plus_in_loops): Likewise.
14394 * c-common.c (pointer_int_sum): Create a
14395 POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
14396 * tree-ssa-structalias.c (handle_ptr_arith): Handle
14397 only POINTER_PLUS_EXPR. Removing all the extra
14398 code which is trying to figure out which side is a pointer and
14399 is the index.
14400 * tree-cfg.c (verify_expr): Add extra checking for pointers and
14401 PLUS_EXPR and MINUS_EXPR.
14402 Also add checking to make sure the operands of POINTER_PLUS_EXPR
14403 are correct.
14404 * config/frv/frv.c (frv_expand_builtin_va_start): Use sizetype
14405 with make_tree, instead of a pointer type.
14406 * config/s390/s390.c (s390_va_start): Use POINTER_PLUS_EXPR
14407 for pointers instead of PLUS_EXPR.
14408 (s390_gimplify_va_arg): Likewise.
14409 * config/spu/spu.c (spu_va_start): Create POINTER_PLUS_EXPR
14410 instead of PLUS_EXPR when doing addition on pointer
14411 types. Use sizetype for the second operand.
14412 (spu_gimplify_va_arg_expr): Likewise.
14413 * config/sparc/sparc.c (sparc_gimplify_va_arg): Use
14414 POINTER_PLUS_EXPR instead of PLUS_EXPR when the operand was
14415 a pointer. Don't create a BIT_AND_EXPR for pointer types.
14416 * config/i386/i386.c (ix86_va_start): Use POINTER_PLUS_EXPR
14417 for the pointer addition and also use size_int/sizetype
14418 for the offset.
14419 (ix86_gimplify_va_arg): Likewise.
14420 Perform BIT_AND_EXPR on sizetype arguments.
14421 * config/sh/sh.c (sh_va_start): Call make_tree with sizetype
14422 and convert its result to a pointer type. Use POINTER_PLUS_EXPR
14423 for the pointer additions and also use size_int for the offsets.
14424 (sh_gimplify_va_arg_expr): Use POINTER_PLUS_EXPR for the pointer
14425 additions and also use size_int for the offsets. Perform
14426 BIT_AND_EXPR on sizetype arguments.
14427 * config/ia64/ia64.c (ia64_gimplify_va_arg): Use
14428 POINTER_PLUS_EXPR for pointers and create the
14429 BIT_AND_EXPR in sizetype.
14430 * config/rs6000/rs6000.c (rs6000_va_start): Use POINTER_PLUS_EXPR
14431 instead of PLUS_EXPR for pointer addition.
14432 (rs6000_va_start): Likewise.
14433 Also use sizetype for the offset.
14434 * config/pa/pa.c (reloc_needed): Handle POINTER_PLUS_EXPR
14435 as PLUS_EXPR/MINUS_EXPR.
14436 (hppa_gimplify_va_arg_expr): Don't create MINUS_EXPR or
14437 PLUS_EXPR for pointers, instead use POINTER_PLUS_EXPR.
14438 Don't use BIT_AND_EXPR on a pointer type, convert the
14439 expression to sizetype first.
14440 * config/mips/mips.c (mips_va_start): Use POINTER_PLUS_EXPR
14441 for pointers.
14442 (mips_gimplify_va_arg_expr): Likewise.
14443 Don't create BIT_AND_EXPR in a pointer type.
14444
1d2b1d91
EC
144452007-06-15 Eric Christopher <echristo@apple.com>
14446
14447 * config.gcc (i?86-*-darwin*): Add t-crtfm and t-crtpc.
14448 (x86_64-*-darwin*): Ditto.
14449 * config/i386/darwin.h (CRTEND_SPEC): New. Add support
14450 for above.
14451
e9f9692b
MW
144522007-06-15 Matthew Wilcox <matthew@wil.cx>
14453
14454 * doc/extend.texi: Document behavior of __attribute__((aligned))
14455 on typedefs.
1d2b1d91 14456
c3a1ef9d
MM
144572007-06-15 Mark Mitchell <mark@codesourcery.com>
14458
14459 * rtlanal.c (note_stores): Improve documentation.
14460
2f119dcc
BS
144612007-06-15 Bernd Schmidt <bernd.schmidt@analog.com>
14462
14463 * config/bfin/elf.h (ASM_GENERATE_INTERNAL_LABEL,
14464 LOCAL_LABEL_PREFIX): Delete.
14465 * config/bfin/bfin.c (TARGET_ASM_INTERNAL_LABEL): Delete.
14466 (bfin_internal_label): Delete.
14467
3353afbe
UB
144682007-06-15 Uros Bizjak <ubizjak@gmail.com>
14469
14470 * libgcc2.c (CEXT): When compiling L_multc3 and L_divtc3,
14471 define to "l" if LIBGCC_LONG_DOUBLE_SIZE == 128,
14472 otherwise define to LIBGCC2_TF_CEXT.
14473 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): New define.
14474 (LIBGCC_TF_CEXT): Ditto.
14475 (TF_SIZE): Ditto.
14476
203927fc
SP
144772007-06-14 Seongbae Park <seongbae.park@gmail.com>
14478
14479 PR rtl-optimization/32339
3353afbe
UB
14480 * df-scan.c (df_uses_record): Don't modify flags but just add to
14481 it for df_ref_record.
203927fc 14482
e89993b3
AP
144832007-06-14 Andrew Pinski <andrew_pinski@playstation.sony.com>
14484
14485 * tree-mudflap.c: Fix whitespace issues.
14486
83f6221b
KH
144872007-06-15 Kazu Hirata <kazu@codesourcery.com>
14488
14489 * config/m68k/m68k.c (ASM_DOT, ASM_DOTW, ASM_DOTL): Remove.
14490
5eafdd32
EC
144912007-06-14 Eric Christopher <echristo@apple.com>
14492
14493 * config/i386/sse.md (movdi_to_sse): Rewrite body.
14494 (movv4sf): Use gcc_unreachable instead of abort.
14495
4962b679
UB
144962007-06-14 Uros Bizjak <ubizjak@gmail.com>
14497
14498 PR target/32268
3353afbe 14499 * config/i386/sfp-machine.h (CMPtype): New define.
4962b679
UB
14500 (mach stubs): Use CMPtype instead of int as a return type.
14501
97943b3c
UB
145022007-06-14 Uros Bizjak <ubizjak@gmail.com>
14503
14504 * config/soft-fp/eqdf2.c, config/soft-fp/eqsf2.c,
14505 config/soft-fp/eqtf2.c, config/soft-fp/gedf2.c,
14506 config/soft-fp/gesf2.c, config/soft-fp/getf2.c,
14507 config/soft-fp/ledf2.c, config/soft-fp/lesf2.c,
14508 config/soft-fp/letf2.c, config/soft-fp/unorddf2.c,
14509 config/soft-fp/unordsf2.c, config/soft-fp/unordtf2.c,
14510 config/soft-fp/soft-fp.h: Update from glibc CVS.
14511
3fcfad76
BS
145122007-06-14 Bernd Schmidt <bernd.schmidt@analog.com>
14513
14514 * config/bfin/uclinux.h (MFWRAP_SPEC): New.
14515
90745823
RIL
145162007-06-14 Rask Ingemann Lambertsen <rask@sygehus.dk>
14517
14518 PR target/32341
14519 * config/v850/v850.c: Include dataflow header file.
14520 (substitute_ep_register): Fix typo.
14521
04c3028a 145222007-06-14 Paolo Bonzini <bonzini@gnu.org>
77a1416d 14523
04c3028a 14524 * configure.ac: Fix earlier checkin.
77a1416d
L
14525 * configure: Regenerated.
14526
3bbd5a19
PB
145272007-06-14 Paolo Bonzini <bonzini@gnu.org>
14528
14529 * acinclude.m4 (gcc_AC_CHECK_PROG_VER): Remove.
14530 * aclocal.m4: Regenerate.
14531 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS,
14532 ACX_PROG_CC_WARNINGS_ARE_ERRORS,
14533 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_CHECK_PROG_VER.
14534 * configure: Regenerate.
77a1416d 14535 * Makefile.in (LOOSE_WARN): Subst loose_warn.
3bbd5a19 14536
77a1416d 14537 * Makefile.in (quickstrap): Build libgcc too.
3bbd5a19 14538
ab28cc38
PB
145392007-06-14 Paolo Bonzini <bonzini@gnu.org>
14540
14541 * configure.ac: Add --enable-checking=df. Explicitly mention that
14542 the variables are initialized as for "release".
14543 * df-core.c: Use it.
14544 * configure: Regenerate.
14545 * config.in: Regenerate.
14546
20dca97b
BW
145472007-06-14 Bob Wilson <bob.wilson@acm.org>
14548
14549 * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use
14550 validate_replace_rtx instead of replace_rtx.
14551 (xtensa_expand_prologue): Call df_insn_rescan after replace_rtx.
14552
76f5e200
DS
145532007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
14554
14555 * config/i386/cygming.h (DWARF_FRAME_REGNUM): Define.
14556 (DWARF2_UNWIND_INFO): Override default if configured with
14557 SJLJ EH disabled.
14558 * config/i386/cygwin.h (STARTFILE_SPEC): Add crtbegin.o.
14559 (ENDFILE_SPEC): Add crtend.o.
14560 * config/i386/mingw32.h (STARTFILE_SEC): Add crtbegin.o.
14561 (ENDFILE_SPEC): Add crtend.o.
14562 (TARGET_USE_JCR_SECTION): Define.
14563 (MD_UNWIND_SUPPORT): Define for 32-bit target.
14564
14565 * config/i386/cygming-crtbegin.c: New file.
14566 * config/i386/cygming-crtend.c: New file.
14567
145682007-06-14 Pascal Obry Pascal Obry <obry@adacore.com>
14569
14570 * config/i386/w32-unwind.h: New file.
14571
ab47d43e
EC
145722007-06-13 Eric Christopher <echristo@apple.com>
14573
14574 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Don't let
14575 the user set a value below STACK_BOUNDARY.
14576
b64a6dbd
TS
145772007-06-13 Thiemo Seufer <ths@networkno.de>
14578
14579 * config/mips/linux.h, config/mips/linux64.h (LIB_SPEC): Always
14580 imply -lpthread for -pthread.
14581
efd7122b
KH
145822007-06-13 Kazu Hirata <kazu@codesourcery.com>
14583
14584 * basic-block.h: Remove the prototype for
14585 free_basic_block_vars.
14586 * cfglayout.h: Remove the prototype for
14587 insn_locators_initialize.
14588 * tree.h: Remove the prototype for emit_line_note.
14589
9c57e1e8
KH
14590 * tree-ssa-pre.c (mergephitemp): Remove.
14591 (init_pre): Don't use mergephitemp.
14592
b26f6ed7
EC
145932007-06-13 Eric Christopher <echristo@apple.com>
14594
14595 * config/i386/i386.c (override_options): If we've specified
14596 an arch then don't use TARGET_SUBTARGET_ISA_DEFAULTs.
14597
29dc9e20 145982007-06-13 Bob Wilson <bob.wilson@acm.org>
b26f6ed7 14599
29dc9e20
BW
14600 * df-scan.c (df_get_entry_block_def_set): Check if STATIC_CHAIN_REGNUM
14601 is defined.
b26f6ed7 14602
1ca950ca
BS
146032007-06-13 Bernd Schmidt <bernd.schmidt@analog.com>
14604
14605 * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Use gen_frame_mem.
14606 * config/bfin/bfin.md (UNSPEC_VOLATILE_STORE_EH_HANDLER): New constant.
14607 (eh_store_handler): New pattern.
14608 (eh_return): Emit it instead of a plain move.
14609
8d364104
UB
146102007-06-13 Uros Bizjak <ubizjak@gmail.com>
14611
14612 * config/i386/i386.c (ix86_init_mmx_sse_builtins)
14613 [__builtin_infq, __builtin_fabsq]: Define usign def_builtin.
14614 [__builtin_ia32_rsqrtps, __builtin_ia32_rsqrtss]: Define using
14615 def_builtin_const.
14616
44017a45
BS
146172007-06-13 Bernd Schmidt <bernd.schmidt@analog.com>
14618
14619 * config/bfin/bfin.c (gen_one_bundle): Delete unused local variables.
14620 (find_next_insn_start, find_load): New functions.
14621 (bfin_reorg): Use them to deal with the fact that parallel insns are
14622 no longer represented as a SEQUENCE.
14623
06063fa2
EB
146242007-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
14625
14626 * config/sparc/sparc.c (sparc_override_options): Initialize
14627 fpu mask correctly.
14628
eaf7f7e7
DK
146292007-06-13 Dave Korn <dave.korn@artimi.com>
14630
14631 * config/i386/i386.c (ix86_eax_live_at_start_p): Use
14632 df_get_live_out.
14633
0d52bcc1
KH
146342007-06-13 Kazu Hirata <kazu@codesourcery.com>
14635
14636 * auto-inc-dec.c, c-incpath.c, config/c4x/libgcc.S,
14637 config/sh/divcost-analysis, dbgcnt.def, df-core.c,
14638 df-problems.c, df-scan.c, df.h, dominance.c, dse.c, regstat.c,
14639 tree-data-ref.c, tree-ssa-loop-im.c, tree-ssa-loop-prefetch.c,
14640 tree-vect-transform.c: Fix comment typos. Follow spelling
14641 conventions.
14642
146432007-06-12 Seongbae Park <seongbae.park@gmail.com>
b718216c
SP
14644
14645 * df-scan.c (df_get_exit-block_use_set): Always add the stack pointer
14646 to the exit block use set.
89a95777 14647 (df_insn_delete, df_insn_rescan): Fixed spelling of "deferring".
b718216c
SP
14648 * gcse.c (cpro_jump): Don't emit barrier in cfglayout mode.
14649 * config/sparc/sparc.c (sparc_check_64): Check df != NULL.
14650
0a090f42
SP
146512007-06-12 Seongbae Park <seongbae.park@gmail.com>
14652
14653 * opts.c (common_handle_option): Handle new option -fdbg-cnt-list.
14654 * dbgcnt.c (dbg_cnt_set_limit_by_name): Return value
14655 to indicate an error.
7e08fa35
UB
14656 (dbg_cnt_process_single_pair, dbg_cnt_list_all_counters):
14657 New functions.
0a090f42
SP
14658 (dbg_cnt_process_opt): Print an error on a bad argument.
14659 * dbgcnt.h (dbg_cnt_list_all_counters): New function declaration.
14660 * common.opt (-fdbg-cnt-list): New.
14661 * doc/invoke.texi (-fdbg-cnt-list,-fdbg-cnt=): New.
14662
773a7861
EB
146632007-06-12 Eric Botcazou <ebotcazou@adacore.com>
14664
14665 * tree-ssa-alias.c (finalize_ref_all_pointers): Clear pt_anything
14666 flag on ref-all pointers.
14667
4543943a
AP
146682007-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
14669
14670 PR middle-end/31579
14671 * expr.c (expand_expr_addr_expr_1): Call expand_expr
14672 for the offset with the modifier as EXPAND_INITIALIZER
14673 if the modifier is EXPAND_INITIALIZER.
14674 (expand_expr_real_1 <case INTEGER_CST>): Don't force to
14675 a register if we had an overflow.
14676
4c8c70e0
KG
146772007-06-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14678
14679 * real.c (real_isfinite): New.
14680 (real_sqrt): Use it.
14681 * real.h (real_isfinite): New.
14682 * builtins.c: Use it.
14683
058dcc25
ILT
146842007-06-12 Ian Lance Taylor <iant@google.com>
14685 Daniel Berlin <dberlin@dberlin.org>
14686
14687 PR libstdc++/29286
14688 * tree.def: Add CHANGE_DYNAMIC_TYPE_EXPR.
14689 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Define.
14690 (CHANGE_DYNAMIC_TYPE_LOCATION): Define.
14691 (DECL_NO_TBAA_P): Define.
14692 (struct tree_decl_common): Add no_tbaa_flag field.
14693 * tree-ssa-structalias.c (struct variable_info): Add
14694 no_tbaa_pruning field.
14695 (new_var_info): Initialize no_tbaa_pruning field.
14696 (unify_nodes): Copy no_tbaa_pruning field.
14697 (find_func_aliases): Handle CHANGE_DYNAMIC_TYPE_EXPR.
14698 (dump_solution_for_var): Print no_tbaa_pruning flag.
14699 (set_uids_in_ptset): Add no_tbaa_pruning parameter. Change all
14700 callers.
14701 (compute_tbaa_pruning): New static function.
14702 (compute_points_to_sets): Remove CHANGE_DYNAMIC_TYPE_EXPR nodes.
14703 Call compute_tbaa_pruning.
14704 * tree-ssa-alias.c (may_alias_p): Test no_tbaa_flag for pointers.
14705 * gimplify.c (gimplify_expr): Handle CHANGE_DYNAMIC_TYPE_EXPR.
14706 * gimple-low.c (lower_stmt): Likewise.
14707 * tree-gimple.c (is_gimple_stmt): Likewise.
14708 * tree-ssa-operands.c (get_expr_operands): Likewise.
14709 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
14710 * tree-inline.c (estimate_num_insns_1): Likewise.
14711 (copy_result_decl_to_var): Likewise.
14712 * expr.c (expand_expr_real_1): Likewise.
14713 * tree-pretty-print.c (dump_generic_node): Likewise.
14714 * tree-inline.c (copy_decl_to_var): Copy DECL_NO_TBAA_P flag.
14715 * omp-low.c (omp_copy_decl_2): Likewise.
14716 * print-tree.c (print_node): Print DECL_NO_TBAA_P flag.
14717 * doc/c-tree.texi (Expression trees): Document
14718 CHANGE_DYNAMIC_TYPE_EXPR.
14719
52a39a4c
KG
147202007-06-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14721
14722 * fold-const.c (fold_binary): Guard (X-X) -> 0 transformation
14723 with !HONOR_NANS and !HONOR_INFINITIES.
14724 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
14725
1a9075e2
TG
147262007-06-12 Tristan Gingold <gingold@adacore.com>
14727
14728 * gcov.c: Comments updated.
14729 (source_info): Add file_time field.
14730 (source_index): New variable.
14731 (mutiple_files): New variable.
14732 (generate_results): New function extracted from process_file.
14733 (process_file): Save and restore chain of functions, generate
14734 results and free structures only if not merging results.
14735 (release_structures): File names are now freed in create_file_names
14736 (create_file_names): Free previous file names.
14737 (find_source): File date is now read here and modifications in
14738 source files is checked here.
14739 (read_graph_file): Only reverse order of functions for the current
14740 object file.
14741 (make_gcov_file_name): Do not generate long names if input_name is
14742 NULL.
b26f6ed7 14743 (output_lines): If merging results do not display graph, data and
1a9075e2
TG
14744 runs informations.
14745 Checking source file modification is done in find_source.
14746
14747 * doc/gcov.texi: Append an s to sourcefile.
14748
b18e284e
BS
147492007-06-12 Bernd Schmidt <bernd.schmidt@analog.com>
14750
14751 * config/bfin/bfin.md (UNSPEC_NOP): New constant.
14752 (forced_nop): New pattern.
14753 * config/bfin/bfin.c: Include "df.h".
14754 (add_to_reg): Use df_regs_ever_live_p instead of regs_ever_live.
14755 (bfin_discover_loop): Use df_get_live_in instead of
14756 global_live_at_start.
14757 (bfin_reorder_loops): Pass 0 to cfg_layout_initialize. Call
14758 df_analyze when done.
14759 (gen_one_bundle): Don't generate SEQUENCE insns, just put modes on
14760 the insns. Use QImode for the final insn in a bundle. Call
14761 df_insn_rescan on generated NOPs; use gen_forced_nop instead of
14762 gen_nop.
14763 (reorder_var_tracking_notes): New function.
14764 (bfin_reorg): Pass no argument to split_all_insns. Don't call
14765 update_life_info. Call df_analyze after scheduling and bundle
7e08fa35
UB
14766 generation. Call reorder_var_tracking_notes if generating these
14767 notes. Call df_finish_pass at the end.
b18e284e 14768
8c8fa927
DM
147692007-06-12 Dirk Mueller <dmueller@suse.de>
14770
fc78ca2b 14771 * optabs.c (debug_optab_libfuncs): fix gcc_assert to
8c8fa927
DM
14772 a comparison, not an assignment.
14773
0e1a6f29
OH
147742007-06-12 Olivier Hainque <hainque@adacore.com>
14775
14776 * tree-nested.c (convert_local_reference): Handle VIEW_CONVERT_EXPR.
14777 Request walking the subtrees only, leaving the current is_lhs/val_only
14778 untouched.
14779 (convert_non_local_reference): Likewise.
b26f6ed7 14780
beff4180
NS
147812007-06-12 Nathan Sidwell <nathan@codesourcery.com>
14782
14783 * config/m68k/m68k-devices.def (52221, 52223, 5253): New.
b26f6ed7 14784
18d08014
RG
147852007-06-12 Richard Guenther <rguenther@suse.de>
14786
14787 PR tree-optimization/15353
14788 PR tree-optimization/31657
14789 * passes.c (init_optimization_passes): Add pass_tree_ifcombine.
14790 * timevar.def: Add TV_TREE_IFCOMBINE.
14791 * tree-pass.h (pass_tree_ifcombine): Declare.
14792 * tree-ssa-ifcombine.c: New file.
14793 * tree-ssa-phiopt.c (blocks_in_phiopt_order): Export.
14794 * tree-flow.h (blocks_in_phiopt_order): Declare.
14795 * Makefile.in (OBJS-common): Add tree-ssa-ifcombine.o.
14796 (tree-ssa-ifcombine.o): New dependencies.
14797
7f482dfe
UB
147982007-06-12 Uros Bizjak <ubizjak@gmail.com>
14799
14800 PR rtl-optimization/32293
14801 * combine.c (simplify_if_then_else): Truncate return from
14802 nonzero_bits() to correct mode.
14803
9883e373
UB
148042007-06-12 Uros Bizjak <ubizjak@gmail.com>
14805
14806 * fold-const (fold_binary) [RDIV_EXPR]: Also optimize a/cbrt(b/c)
14807 into a*cbrt(c/b) if flag_unsafe_math_optimizations is set.
14808
16b4cb48
DN
148092007-06-11 Diego Novillo <dnovillo@google.com>
14810
14811 * Makefile.in (reload1.o-warn): Remove.
14812
46cc2141
SP
148132007-06-11 Seongbae Park <seongbae.park@gmail.com>
14814
14815 * combine.c (subst): Use reg_overlap_mentioned_p
14816 instead of comparing register numbers directly.
14817
b0384c54
KZ
148182007-06-11 Kenneth Zadeck <zadeck@naturalbridge.com>
14819
14820 * reload1.c (mark_home_live_1): Use the mode parameter.
14821
0a41f3b2
KZ
148222007-06-11 Kenneth Zadeck <zadeck@naturalbridge.com>
14823
14824 * df-scan.c (df_insn_delete, df_insn_rescan, df_insn_rescan_all,
14825 df_process_deferred_rescans, df_notes_rescan): Fixed spelling of
14826 word "deferred".
14827 * df-core.c: Ditto.
b26f6ed7 14828
6fb5fa3c
DB
148292007-06-11 Daniel Berlin <dberlin@dberlin.org>
14830
14831 * Merge dataflow-branch into mainline (see ChangeLog.dataflow)
14832
a91d32a4
UB
148332007-06-11 Uros Bizjak <ubizjak@gmail.com>
14834
14835 * config/i386/i386.md ("*movtf_internal): Penalize moves to and
14836 from integer registers.
14837 (FP mode splitters): Handle TFmode.
14838
73fd4ad6
EB
148392007-06-11 Eric Botcazou <ebotcazou@adacore.com>
14840
14841 * tree-ssa-structalias.c (find_what_p_points_to): Return false
14842 for ref-all pointers that point-to anything.
14843
afcc986d
JM
148442007-06-11 Joseph Myers <joseph@codesourcery.com>
14845
14846 * config/arm/arm.c (arm_output_dwarf_dtprel,
14847 TARGET_ASM_OUTPUT_DWARF_DTPREL): New.
14848
0ea80eb6
BS
148492007-06-11 Bernd Schmidt <bernd.schmidt@analog.com>
14850
14851 * config/bfin/bfin.md (movdi_insn, movsi_insn, movv2hi_insn,
14852 movhi_insn, movqi_insn, movsf_insn, movdf_insn): Don't allow constant
14853 to memory moves.
14854
b0464c88
RE
148552007-06-11 Rafael Avila de Espindola <espindola@google.com>
14856
9bf5a5e8 14857 * tree.c (signed_or_unsigned_type_for): New.
b0464c88
RE
14858 (unsigned_type_for): Use signed_or_unsigned_type_for.
14859 (signed_type_for): Use signed_or_unsigned_type_for.
9bf5a5e8 14860 * tree.h (signed_or_unsigned_type_for): New.
b0464c88 14861 (get_signed_or_unsigned_type): Remove.
9bf5a5e8 14862 * fold-const.c (fold_negate_expr): Use signed_type_for instead of
b0464c88
RE
14863 lang_hooks.types.signed_type
14864 (size_diffop): Likewise.
14865 (all_ones_mask_p): Likewise.
14866 (build_range_check): Likewise.
14867 (fold_cond_expr_with_comparison): Likewise.
14868 (fold_cond_expr_with_comparison): Likewise.
14869 (unextend): Likewise.
14870 (extract_muldiv_1): Likewise.
14871 (fold_single_bit_test_into_sign_test): Likewise.
14872 (fold_binary): Likewise.
14873 (fold_ternary): Likewise.
14874 (operand_equal_for_comparison_p): Use signed_or_unsigned_type_for
14875 instead of get_signed_or_unsigned_type.
9bf5a5e8 14876 * c-objc-common.h (LANG_HOOKS_SIGNED_TYPE): Remove.
b0464c88 14877 (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
9bf5a5e8 14878 * expr.c (signed_or_unsigned_type_for): Use
b0464c88 14879 signed_or_unsigned_type_for instead of get_signed_or_unsigned_type.
9bf5a5e8 14880 * langhooks.c (get_signed_or_unsigned_type): Remove.
b0464c88 14881 (lhd_signed_or_unsigned_type): Remove.
9bf5a5e8 14882 * langhooks.h (lang_hooks_for_types): Remove signed_type and
b0464c88
RE
14883 signed_or_unsigned_type.
14884 (lhd_signed_or_unsigned_type): Remove.
9bf5a5e8 14885 * expmed.c (make_tree): Use signed_type_for instead of
b0464c88 14886 lang_hooks.types.signed_type.
9bf5a5e8 14887 * c-common.c (same_scalar_type_ignoring_signedness): Use
b0464c88
RE
14888 c_common_signed_type instead of lang_hooks.types.signed_type.
14889 (c_common_unsigned_type): New.
14890 (c_common_signed_type): Just call c_common_signed_or_unsigned_type.
14891 (shorten_compare): Use c_common_unsigned_type instead of
14892 c_common_signed_or_unsigned_type.
14893 (c_common_nodes_and_builtins): Use c_common_unsigned_type instead of
14894 unsigned_type_for.
9bf5a5e8 14895 * convert.c (convert_to_integer): Use signed_type_for instead of
b0464c88 14896 lang_hooks.types.signed_type.
9bf5a5e8 14897 * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
b0464c88
RE
14898 (LANG_HOOK_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_SIGNED_TYPE and
14899 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE.
9bf5a5e8 14900 * c-format.c (check_format_types): Use c_common_unsigned_type
b0464c88 14901 instead of unsigned_type_for.
9bf5a5e8
UB
14902 * c-decl.c (groakdeclarator): Likewise.
14903 * c-typeck.c (convert_for_assignment): Likewise.
14904 * c-common.h (c_common_unsigned_type): New.
b0464c88 14905
69c553ef
UB
149062007-06-11 Uros Bizjak <ubizjak@gmail.com>
14907
14908 PR target/32280
14909 * config/i386/sse.md ("sse2_ashlti", "sse2_lshrti3"): Move ...
14910 * config/i386/i386.md ("sse2_ashlti", "sse2_lshrti3"): ... to here.
14911
f1da2df1
UB
149122007-06-11 Uros Bizjak <ubizjak@gmail.com>
14913
14914 PR middle-end/32279
14915 * fold-const (fold_binary) [RDIV_EXPR]: Optimize a/sqrt(b/c)
14916 into a*sqrt(c/b) if flag_unsafe_math_optimizations is set.
14917
51c0074e
JS
149182007-06-10 Jan Sjodin <jan.sjodin@amd.com>
14919 Sebastian Pop <sebpop@gmail.com>
14920
14921 * lambda-code.c (remove_iv): New.
14922 (lambda_loopnest_to_gcc_loopnest): Use remove_iv.
14923
79f5e442
ZD
149242007-06-10 Zdenek Dvorak <dvorakz@suse.cz>
14925
14926 * tree-data-ref.c (dr_analyze_alias): Handle case smt is NULL.
14927 * tree-predcom.c (mark_virtual_ops_for_renaming): Exported.
14928 * tree-ssa-loop-prefetch.c: Include optabs.h.
14929 (FENCE_FOLLOWING_MOVNT): New macro.
14930 (struct mem_ref): Add independent_p and storent_p fields.
14931 (record_ref): Initalize the new fields.
14932 (gather_memory_references_ref): Return true if the reference
14933 could be analysed.
14934 (gather_memory_references): Check whether all memory accesses
14935 in loop were recorded.
14936 (should_issue_prefetch_p): Return false for nontemporal stores.
14937 (nontemporal_store_p, mark_nontemporal_store, emit_mfence_after_loop,
14938 may_use_storent_in_loop_p, mark_nontemporal_stores): New functions.
14939 (determine_loop_nest_reuse): Detect independent memory references.
14940 (loop_prefetch_arrays): Call mark_nontemporal_stores.
14941 * tree-flow.h (mark_virtual_ops_for_renaming): Declare.
14942 * Makefile.in (tree-ssa-loop-prefetch.o): Add OPTABS_H dependency.
14943 * config/i386/i386.h (x86_mfence): Declare.
14944 (FENCE_FOLLOWING_MOVNT): Return x86_mfence.
14945 * config/i386/i386.c (x86_mfence): New variable.
14946 (ix86_init_mmx_sse_builtins): Initialize x86_mfence.
14947
14948 * tree-pretty-print.c (dump_generic_node): Mark nontemporal stores.
14949 * optabs.c (init_optabs): Initialize storent_optab.
14950 * optabs.h (enum optab_index): Add OTI_storent.
14951 (storent_optab): Declare.
14952 * genopinit.c (optabs): Add initialization for storent_optab.
14953 * tree.h (MOVE_NONTEMPORAL): New macro.
14954 * expr.c (expand_assignment, store_expr, store_constructor_field,
14955 store_constructor, store_field, expand_expr_real_1): Propagate
14956 nontemporality of the expanded store.
14957 (emit_storent_insn): New function.
14958 * expr.h (expand_assignment, store_expr): Declaration changed.
14959 * function.c (assign_parm_setup_reg): Pass false as nontemporality
14960 to expand_assignment.
14961 * stmt.c (expand_asm_expr): Ditto.
14962 * calls.c (initialize_argument_information): Pass false as
14963 nontemporality to store_expr.
14964 * config/i386/sse.md (storentv4sf, storentv2df, storentv2di,
14965 storentsi): New.
14966
6bdff197
DB
149672007-06-09 Daniel Berlin <dberlin@dberlin.org>
14968
14969 * tree-ssa-structalias.c (set_uids_in_ptset): Add is_deref'd
14970 parameter, use it.
14971 (find_what_p_points_to): Pass new parameter to set_uids_in_ptset.
14972
55edccf4
DB
149732007-06-09 Daniel Berlin <dberlin@dberlin.org>
14974
14975 * tree-data-ref.c (dr_may_alias_p): Check that decl_a != decl_b,
14976 and allow DECL_P here.
14977
9e824336
ZD
149782007-06-09 Zdenek Dvorak <dvorakz@suse.cz>
14979
14980 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs,
14981 follow_ssa_edge_in_condition_phi, follow_ssa_edge): Keep more precise
14982 track of the size of the expression.
14983 * cfghooks.c (merge_blocks): Remove block from loops structure only
14984 after call of the merge_blocks hook.
14985
0da300cd
TT
149862007-06-09 Tom Tromey <tromey@redhat.com>
14987
14988 * c-decl.c (grokdeclarator): Added 'deprecated_state' argument.
14989 (deprecated_state): Removed.
14990 (start_decl): Update.
14991 (enum deprecated_states): Moved earlier.
14992 (groktypename): Update.
14993 (push_parm_decl): Likewise.
14994 (grokfield): Likewise.
14995 (start_function): Likewise.
14996
9c4ed267
ILT
149972007-06-09 Ian Lance Taylor <iant@google.com>
14998
14999 PR tree-optimization/32169
15000 * tree-vrp.c (extract_range_from_unary_expr): For NOP_EXPR and
15001 CONVERT_EXPR, check whether min and max both converted to an
15002 overflow infinity representation.
15003
36808d08
EB
150042007-06-08 Eric Botcazou <ebotcazou@adacore.com>
15005
15006 * reload1.c (fixup_abnormal_edges): Clear bb field for insns
15007 not inserted on the edge.
15008
582711fe
BW
150092007-06-08 Bob Wilson <bob.wilson@acm.org>
15010
15011 * config/xtensa/lib1funcs.asm (__udivsi3): Use hardware divide
15012 instructions if they are supported.
15013 (__divsi3, __umodsi3, __modsi3): Likewise.
15014 (__ashldi3, __ashrdi3, __lshrdi3): New.
15015 * config/xtensa/t-xtensa (LIB1ASMFUNCS): Add DImode shift functions.
b26f6ed7 15016
792ed98b 150172007-06-08 Harsha Jagasia <harsha.jagasia@amd.com>
9510f6eb 15018 Tony Linthicum <tony.linthicum@amd.com>
792ed98b 15019
13c59415 15020 * doc/invoke.texi: Add fvect-cost-model flag.
792ed98b
HJ
15021 * common.opt (fvect-cost-model): New flag.
15022 * tree-vectorizer.c (new_stmt_vec_info): Initialize inside and outside
15023 cost fields in stmt_vec_info struct for STMT.
15024 * tree-vectorizer.h (stmt_vec_info): Define inside and outside cost
15025 fields in stmt_vec_info struct and access functions for the same.
15026 (TARG_COND_BRANCH_COST): Define cost of conditional branch.
15027 (TARG_VEC_STMT_COST): Define cost of any vector operation, excluding
15028 load, store and vector to scalar operation.
15029 (TARG_VEC_TO_SCALAR_COST): Define cost of vector to scalar operation.
15030 (TARG_VEC_LOAD_COST): Define cost of aligned vector load.
15031 (TARG_VEC_UNALIGNED_LOAD_COST): Define cost of misasligned vector load.
15032 (TARG_VEC_STORE_COST): Define cost of vector store.
15033 (vect_estimate_min_profitable_iters): Define new function.
15034 * tree-vect-analyze.c (vect_analyze_operations): Add a compile-time
15035 check to evaluate if loop iterations are less than minimum profitable
15036 iterations determined by cost model or minimum vect loop bound defined
15037 by user, whichever is more conservative.
15038 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Add a
15039 run-time check to evaluate if loop iterations are less than minimum
15040 profitable iterations determined by cost model or minimum vect loop
15041 bound defined by user, whichever is more conservative.
15042 (vect_estimate_min_profitable_iterations): New function to estimate
15043 mimimimum iterartions required for vector version of loop to be
15044 profitable over scalar version.
d5d5d289 15045 (vect_model_reduction_cost): New function.
792ed98b
HJ
15046 (vect_model_induction_cost): New function.
15047 (vect_model_simple_cost): New function.
15048 (vect_cost_strided_group_size): New function.
15049 (vect_model_store_cost): New function.
15050 (vect_model_load_cost): New function.
15051 (vectorizable_reduction): Call vect_model_reduction_cost during
15052 analysis phase.
15053 (vectorizable_induction): Call vect_model_induction_cost during
15054 analysis phase.
15055 (vectorizable_load): Call vect_model_load_cost during analysis phase.
15056 (vectorizable_store): Call vect_model_store_cost during analysis phase.
15057 (vectorizable_call, vectorizable_assignment, vectorizable_operation,
b26f6ed7 15058 vectorizable_promotion, vectorizable_demotion): Call
792ed98b
HJ
15059 vect_model_simple_cost during analysis phase.
15060
c8e2516c
SB
150612007-06-08 Simon Baldwin <simonb@google.com>
15062
15063 * reg-stack.c (get_true_reg): Readability change. Moved default case
15064 label into direct switch statement scope.
15065
2c5cfd1f
SB
150662007-06-08 Simon Baldwin <simonb@google.com>
15067
15068 * tree-flow-inline.h (var_ann): Replaced erroneous '=' assignment
15069 in gcc_assert() with '==' comparison.
15070
837a8954
UB
150712007-06-08 Uros Bizjak <ubizjak@gmail.com>
15072
15073 * config/i386/i386.c (override_options): Merge TARGET_SSE4_2 and
15074 TARGET_ABM handling of x86_popcnt variable.
15075
5513e239
UB
150762007-06-08 Uros Bizjak <ubizjak@gmail.com>
15077
15078 * doc/extend.texi (X86 Built-in Functions): Document __builtin_fabsq,
15079 __builtin_copysignq and __builtin_infq built-in functions.
15080
291d9a2d
UB
150812007-06-08 Uros Bizjak <ubizjak@gmail.com>
15082
15083 * doc/extend.texi (X86 Built-in Functions): Add missing `@item's in
15084 SSE4.2 section. Correct built-in function names in SSE4A section.
15085
459e691a
UB
150862007-06-08 Uros Bizjak <ubizjak@gmail.com>
15087
15088 PR tree-optimization/32243
15089 * tree-vect-transform.c (vectorizable_type_promotion): Move check
15090 for ncopies after ratio check between nunits_out and nunits_in.
15091 (vectorizable_type_demotion): Remove single-use variable "scalar_type".
15092
0d266580
DN
150932007-06-08 Dorit Nuzman <dorit@il.ibm.com>
15094
15095 PR tree-optimization/32224
15096 * tree-vect-analyze.c (vect_determine_vectorization_factor): Fail
15097 vectorization upon a non GIMPLE_MODIFY_STMT.
15098
4aa97413
CB
150992007-06-08 Christian Bruel <christian.bruel@st.com>
15100
15101 PR target/29953
15102 * config/sh/sh.md (doloop_end): New pattern and splitter.
15103 * loop-iv.c (simple_rhs_p): Check for hardware registers.
b26f6ed7 15104
1fc3998d
ZD
151052007-06-08 Zdenek Dvorak <dvorakz@suse.cz>
15106
15107 PR middle-end/32209
15108 * dominance.c (debug_dominance_tree, debug_dominance_tree_1): New
15109 functions.
15110 (verify_dominators): Do not change dominance tree.
15111
32a7ab3d
KK
151122007-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
15113
15114 * config/sh/constraints.md: New file.
15115 * config/sh/sh.c: Include tm-constrs.h.
15116 (reg_class_from_letter): Remove.
15117 (prepare_cbranch_operands): Use satisfies_constraint_*
15118 function instead of macro.
15119 (andcosts, broken_move, sh_secondary_reload): Likewise.
15120 * config/sh/predicates.md (trapping_target_operand): Likewise.
15121 (and_operand, arith_operand, arith_reg_or_0_operand,
15122 cmp_operand, logical_operand, target_operand,
15123 ua_address_operand, ua_offset, xor_operand): Likewise.
15124 * config/sh/sh.md: Include constraints.md.
15125 (*movsicc_t_false): Use satisfies_constraint_* function
15126 instead of macro.
15127 (*movsicc_t_true, ashlsi3_std, ashlhi3_k, lshrsi3_m,
15128 lshrsi3_k, movsi_const_16bit+2, *movhi_media+1,
15129 movdi_const_16bit+1, beq, bne, *ptb): Likewise.
15130 * config/sh/sh.h (reg_class_from_letter): Remove prototype.
15131 (OVERRIDE_OPTIONS): Don't modify reg_class_from_letter.
15132 (REG_CLASS_FROM_CONSTRAINT): Remove.
15133 (CONSTRAINT_LEN, CONST_OK_FOR_I20, CONST_OK_FOR_I,
15134 CONST_OK_FOR_J, CONST_OK_FOR_K16, CONST_OK_FOR_K,
15135 CONST_OK_FOR_P27, CONST_OK_FOR_P, CONST_OK_FOR_M,
15136 CONST_OK_FOR_N, CONST_OK_FOR_CONSTRAINT_P,
15137 CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
15138 (SECONDARY_INOUT_RELOAD_CLASS): Use satisfies_constraint_*
15139 function instead of macro.
15140 (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
15141 (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_A,
15142 EXTRA_CONSTRAINT_Bsc, EXTRA_CONSTRAINT_B,
15143 EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Remove.
15144 (IS_PC_RELATIVE_LOAD_ADDR_P): New macro.
15145 (IS_LITERAL_OR_SYMBOLIC_S16_P): Likewise.
15146 (IS_LITERAL_OR_SYMBOLIC_U16_P): Likewise.
15147 (IS_NON_EXPLICIT_CONSTANT_P): Likewise.
15148 (EXTRA_CONSTRAINT_Csy, EXTRA_CONSTRAINT_Z, EXTRA_CONSTRAINT_W,
15149 EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C,
15150 EXTRA_MEMORY_CONSTRAINT, EXTRA_CONSTRAINT_Sr0,
15151 EXTRA_CONSTRAINT_Sua, EXTRA_CONSTRAINT_S,
15152 EXTRA_CONSTRAINT_STR): Likewise.
15153 (GO_IF_LEGITIMATE_INDEX): Fix indentation.
15154
2734e1c3
GK
151552007-06-07 Geoffrey Keating <geoffk@apple.com>
15156
15157 * config/i386/darwin.h (STACK_BOUNDARY): Define.
15158
c1ae8be5
SM
151592007-06-07 Simon Martin <simartin@users.sourceforge.net>
15160
15161 PR c++/30759
15162 * c-common.h (flag_cpp0x): Replaced by...
15163 (cxx_dialect): ... this new variable specifying the C++ dialect that
15164 is used.
15165 * c-common.c (flag_cpp0x): Removed.
15166 (cxx_dialect): Defined.
15167 * c-cppbuiltin.c (c_cpp_builtins): flag_cpp0x rewritten in terms of
15168 cxx_dialect.
15169 * c-opts.c (c_common_post_options): Likewise.
15170 (set_std_cxx98): Set cxx_dialect to cxx98.
15171 (set_std_cxx0x): Set cxx_dialect to cxx0x.
15172
2734e1c3 151732007-06-07 Geoffrey Keating <geoffk@apple.com>
e46b55d0
GK
15174 Hui-May Chang <hm.chang@apple.com>
15175
15176 * doc/invoke.texi (Darwin Options): Update documentation for
15177 -mmacosx-version-min.
15178 * config.gcc (*-*-darwin*): Set extra_gcc_objs.
15179 * config/darwin-driver.c: New file.
15180 * config/darwin.h (GCC_DRIVER_HOST_INITIALIZATION): New.
15181 * config/t-darwin (darwin-driver.o): New rule.
15182
15183 * config/darwin-c.c (version_as_macro): Ignore low digit.
15184
edc5bbcd
UB
151852007-06-07 Uros Bizjak <ubizjak@gmail.com>
15186
15187 * config/i386/i386.md (standard sse constant splitter): Handle TFmode.
15188 (negtf2, abstf2, *absnegtf2_sse): New insn patterns.
15189 (CSGNMODE): New mode macro.
15190 (CSGNVMODE): New mode attribute.
15191 (copysign<mode>3): Rename from copysingsf3 and copysigndf3. Macroize
15192 expander using CSGNMODE mode macro. Handle TFmode.
15193 (copysign<mode>3_const): Rename from copysignsf3_const and
15194 copysigndf3_const. Macroize pattern using CSGNMODE mode macro.
15195 Handle TFmode.
15196 (copysign<mode>3_var): Rename from copysignsf3_var and
15197 copysigndf3_var. Macroize pattern using CSGNMODE mode macro.
15198 Handle TFmode.
15199 (copysign<mode>3_var splitter): Macroize pattern using CSGNMODE
15200 mode macro. Handle TFmode.
15201 * config/i386/sse.md (andtf3, *andtf3, *nandtf3): New insn patterns.
15202 (iortf3, *iortf3): Ditto.
15203 (xortf3, *xortf3): Ditto.
15204 * config/i386/i386.c (ix86_build_signbit_mask): Create scalar
15205 TFmode and TImode masks.
15206 (ix86_expand_copysign): Expand TFmode copysign insn.
15207 (IX86_BUILTIN_INFQ): New.
15208 (IX86_BUILTIN_FABSQ): Ditto.
15209 (IX86_BUILTIN_COPYSIGNQ): Ditto.
15210 (ix86_init_mmx_sse_builtins) [__builtin_infq]: New builtin definition.
15211 [__builtin_fabsq]: Ditto.
15212 [__builtin_copysignq]: Ditto.
15213 (ix86_expand_builtin) [IX86_BUILTIN_INFQ]: Expand builtin.
15214 [IX86_BUILTIN_FABSQ]: Expand builtin using ix86_expand_unop_builtin().
15215 [IX86_BUILTIN_COPYSIGNQ]: Expand builtin using
9510f6eb 15216 ix86_expand_binop_builtin().
edc5bbcd 15217
125253d9
BW
152182007-06-07 Bob Wilson <bob.wilson@acm.org>
15219
15220 * config/xtensa/lib1funcs.asm: Clean up whitespace.
15221
bb27eeda
SE
152222007-06-07 Steve Ellcey <sje@cup.hp.com>
15223
15224 PR target/31850
15225 * rtl.h (push_to_sequence2): New.
15226 * emit-rtl.c (push_to_sequence2): New.
15227 * function.c (assign_parm_data_all): Add new fields.
b26f6ed7 15228 (assign_parm_setup_block): Call push_to_sequence2 instead of
bb27eeda
SE
15229 push_to_sequence.
15230 (assign_parm_setup_reg): Ditto.
15231 (assign_parm_setup_stack): Ditto.
15232 (assign_parms_unsplit_complex): Ditto.
15233 (assign_parms): Change field name.
15234
1b0cfaa6
ZD
152352007-06-07 Zdenek Dvorak <dvorakz@suse.cz>
15236
15237 PR tree-optimization/32220
15238 * tree-predcom.c (eliminate_temp_copies): Handle the case that loop
15239 phi node is reached before defining statement.
15240
1344284e
AP
152412007-06-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
15242
15243 PR tree-opt/32231
15244 * tree-vect-transform.c (vectorizable_call): Call update_stmt
15245 after changing the right hand side of the assignment.
15246
7a1eca83
EC
152472007-06-06 Eric Christopher <echristo@apple.com>
15248
15249 * config.gcc (i?86-*-darwin*): Remove arch parameter.
15250 (x86_64-*-darwin*): Ditto.
15251 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Define.
15252 (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
15253
c22940cd
TN
152542007-06-06 Thomas Neumann <tneumann@users.sourceforge.net>
15255
15256 * tree-ssa-alias-warnings.c (maybe_add_match): Cast according to the
15257 coding conventions.
15258 (add_key): Likewise.
15259 * tree-ssa.c (init_tree_ssa): Use type safe memory macros.
15260 * tree-ssa-ccp.c (ccp_fold_builtin): Avoid using C++ keywords as
15261 variable names.
7e08fa35
UB
15262 * tree-ssa-coalesce.c (find_coalesce_pair): Use type safe memory
15263 macros.
c22940cd
TN
15264 (add_cost_one_coalesce): Likewise.
15265 * tree-ssa-copy.c (merge_alias_info): Avoid using C++ keywords as
15266 variable names. Rename orig to orig_name for consistency.
7e08fa35
UB
15267 * tree-ssa-dom.c (dom_thread_across_edge): Cast according to the
15268 coding conventions.
15269 (cprop_into_successor_phis): Avoid using C++ keywords as variable
15270 names.
c22940cd
TN
15271 (record_equivalences_from_stmt): Likewise.
15272 * tree-ssa-dse.c (dse_initialize_block_local_data): Cast according to
15273 the coding conventions.
15274 (memory_ssa_name_same): Likewise.
15275 (dse_optimize_stmt): Likewise.
15276 (dse_record_phis): Likewise.
15277 (dse_finalize_block): Likewise.
15278 * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Avoid using C++
15279 keywords as variable names.
15280 (may_move_till): Cast according to the coding conventions.
15281 (force_move_till_expr): Avoid using C++ keywords as variable names.
15282 (force_move_till): Cast according to the coding conventions.
15283 (memref_hash): Likewise.
15284 (memref_eq): Likewise.
15285 (gather_mem_refs_stmt): Likewise.
7e08fa35
UB
15286 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Avoid
15287 using C++ keywords as variable names.
c22940cd
TN
15288 (idx_find_step): Cast according to the coding conventions.
15289 (idx_record_use): Likewise.
15290 (find_depends): Likewise.
15291 (prepare_decl_rtl): Likewise.
15292 (mbc_entry_hash): Likewise.
15293 (mbc_entry_eq): Likewise.
15294 * tree-ssa-loop-niter.c (SWAP): Use the correct the type for tmp.
15295 (simplify_replace_tree): Avoid using C++ keywords as variable names.
15296 (idx_infer_loop_bounds): Cast according to the coding conventions.
15297 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
15298 * tree-ssa-math-opts.c (occ_new ): Likwise.
15299 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Use type safe memory
15300 macros.
7e08fa35
UB
15301 * tree-ssa-operands.c (add_def_op): Avoid using C++ keywords as
15302 variable names.
c22940cd
TN
15303 (add_use_op): Likewise.
15304 (add_vop): Likewise.
15305 (add_vuse_op): Likewise.
15306 (add_vdef_op): Likewise.
15307 (get_expr_operands): Likewise.
15308 (push_stmt_changes): Use type safe memory macros.
15309 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Avoid using C++
15310 keywords as variable names.
15311 (conditional_replacement): Likewise.
15312 (minmax_replacement): Likewise.
15313 (abs_replacement): Likewise.
15314 * tree-ssa-pre.c (create_expression_by_pieces): Cast according to the
15315 coding conventions.
15316 (insert_fake_stores): Avoid using C++ keywords as variable names.
15317 * tree-ssa-reassoc.c (add_to_ops_vec): Cast according to the coding
15318 conventions.
15319 * tree-ssa-structalias.c (heapvar_lookup): Likewise.
15320 (heapvar_insert): Use type safe memory macros.
15321 (new_var_info): Cast according to the coding conventions.
15322 (new_constraint): Likewise.
15323 (remove_preds_and_fake_succs): Use type safe memory macros.
15324 * tree-ssa-threadupdate.c (thread_block): Cast according to the coding
15325 conventions.
15326 (thread_single_edge): Likewise.
15327 (thread_through_loop_header): Likewise.
15328
d6b0b376
EC
153292007-06-06 Eric Christopher <echristo@apple.com>
15330
15331 * config/i386/i386.c (override_options): Move handling
15332 of TARGET_SUBTARGET* earlier.
15333
7258e976
PB
153342007-06-06 Paolo Bonzini <bonzini@gnu.org>
15335
15336 * genmodes.c (tagged_printf, emit_insn_modes_h): Don't
15337 use %n on printf.
15338
a7b87f73
ZD
153392007-06-06 Zdenek Dvorak <dvorakz@suse.cz>
15340
15341 * haifa-sched.c (restore_bb_notes): Clear bb field of the notes
15342 emited outside of basic block.
15343 * cfgbuild.c (find_bb_boundaries): Clear bb field for insns between
15344 the created blocks.
15345 * rtl.h (delete_insn_chain): Declaration changed.
15346 * cfgrtl.c (delete_insn_chain): Add option to clear bb field for
15347 non-removed insns.
15348 (rtl_delete_block, rtl_merge_blocks): Pass true to delete_insn_chain.
15349 (delete_insn_chain_and_edges, try_redirect_by_replacing_jump,
d6b0b376 15350 rtl_tidy_fallthru_edge, cfg_layout_merge_blocks): Pass false
a7b87f73
ZD
15351 to delete_insn_chain.
15352 (rtl_verify_flow_info_1): Verify that the insns in header and footer
15353 do not have bb field set.
15354 (rtl_verify_flow_info): Verify that insns between basic blocks do not
15355 have bb field set.
15356 * recog.c (peephole2_optimize): Add argument to delete_insn_chain call.
15357 * cfgcleanup.c (try_optimize_cfg): Ditto.
15358
45222d4a
TN
153592007-06-06 Thomas Neumann <tneumann@users.sourceforge.net>
15360
15361 * lambda-code.c (struct lambda_lattice_s): Add a name to the struct.
15362 (lambda_body_vector_new): Use type safe memory macros.
15363 (lambda_linear_expression_new): Likewise.
15364 (lambda_loopnest_new): Likewise.
15365 (lambda_lattice_new): Likewise.
15366 (replace_uses_equiv_to_x_with_y): Cast according to the coding
15367 conventions. Use type safe memory macros.
15368 * lambda.h (struct lambda_trans_matrix_s): Add a name to the struct.
15369 (lambda_body_vector_s): Likewise.
15370 * lambda-mat.c (lambda_matrix_new): Use type safe memory macros.
15371 * lambda-trans.c (lambda_trans_matrix_new): Likewise.
15372
68c834d0
RB
153732007-06-06 Richard Guenther <rguenther@suse.de>
15374
15375 * tree-ssa-forwprop.c (forward_propagate_into_cond): Return 2
15376 if we need to schedule cfg_cleanup.
15377 (tree_ssa_forward_propagate_single_use_vars): Do so.
15378
39ac2ffc
ILT
153792007-06-06 Ian Lance Taylor <iant@google.com>
15380
15381 * fold-const.c (merge_ranges): If range_successor or
15382 range_predecessor fail, just return 0.
15383
9f106823
UB
153842007-06-06 Uros Bizjak <ubizjak@gmail.com>
15385
15386 PR tree-optimization/32216
15387 * tree-vectorizer.c (supportable_widening_operation): Determine
15388 signedness of FIX_TRUNC_EXPR from output operand.
15389 (supportable_narrowing_operation): Ditto.
15390 * tree-vect-generic.c (expand_vector_operations_1): Determine
15391 signedness of VEC_UNPACK_FLOAT_HI_EXPR and VEC_UNPACK_FLOAT_LO_EXPR
15392 from input operand.
15393
9415ab7d
TN
153942007-06-06 Thomas Neumann <tneumann@users.sourceforge.net>
15395
15396 * config/i386/i386.c (enum pta_flags): Move out of struct scope...
9f106823
UB
15397 (struct pta): ...from here. Change flags to unsigned to avoid
15398 excessive casting (as it is used as a bit mask).
9415ab7d
TN
15399 (override_options): Add casts according to the coding convenventions.
15400 (x86_64_elf_unique_section): Likewise.
15401 (examine_argument): Avoid using C++ keywords as variable names.
15402 (construct_container): Likewise.
15403 (legitimize_pic_address): Likewise.
15404 (get_dllimport_decl): Cast according to the coding conventions. Use
15405 type safe memory macros.
15406 (legitimize_address): Cast according to the coding conventions.
15407 (emit_i387_cw_initialization): Corrected the type of slot to enum
15408 ix86_stack_slot.
15409 (ix86_init_machine_status): Use type safe memory macros.
15410 (bdesc_pcmpestr): Use UNKNOWN instead of integer 0.
15411 (bdesc_pcmpistr): Likewise.
15412 (bdesc_crc32): Likewise.
15413 (bdesc_sse_3arg): Likewise.
15414 (bdesc_2arg): Likewise.
15415 (bdesc_1arg): Likewise.
15416 (ix86_expand_sse_pcmpestr): Cast according to the coding conventions.
15417 (ix86_expand_sse_pcmpistr): Likewise.
15418 (ix86_expand_vec_set_builtin): Use EXPAND_NORMAL instead of integer 0.
15419 (ix86_builtin_vectorized_function): Change the type of fn to unsigned
15420 int to match the langhook definition.
15421 (ix86_builtin_conversion): Change the type of code to unsigned init to
15422 match the langhook definition.
15423 (ix86_preferred_reload_class): Avoid using C++ keywords as variable
15424 names.
15425 (ix86_preferred_output_reload_class): Likewise.
15426 (ix86_cannot_change_mode_class): Likewise.
15427 (ix86_memory_move_cost): Likewise.
15428 (ix86_rtx_costs): Cast the outer_code parameter to enum rtx_code to
15429 avoid excessive casting later on.
15430 (x86_output_mi_thunk): Avoid using C++ keywords as variable names.
15431
f28eb39c
UB
154322007-06-06 Uros Bizjak <ubizjak@gmail.com>
15433
15434 * config/i386/sse.md (sse4_2_pcmpestr_cconly): Prefer pcmpestrm
15435 as flags setting insn.
15436 (sse4_2_pcmpistr_cconly): Prefer pcmpistrm as flags setting insn.
15437
154382007-06-06 Uros Bizjak <ubizjak@gmail.com>
15439
15440 * config/i386/i386.md (UNSPEC_ROUNDP, UNSPEC_ROUNDS): Remove.
15441 (UNSPEC_ROUND): New.
15442 ("sse4_1_round<mode>2"): New insn pattern.
15443 ("rint<mode>2"): Expand using "sse4_1_round<mode>2" pattern for
15444 SSE4.1 targets.
15445 ("floor<mode>2"): Rename from floordf2 and floorsf2. Macroize
15446 expander using SSEMODEF mode macro. Expand using
15447 "sse4_1_round<mode>2" pattern for SSE4.1 targets.
15448 ("ceil<mode>2"): Rename from ceildf2 and ceilsf2. Macroize
15449 expander using SSEMODEF mode macro. Expand using
15450 "sse4_1_round<mode>2" pattern for SSE4.1 targets.
15451 ("btrunc<mode>2"): Rename from btruncdf2 and btruncsf2. Macroize
15452 expander using SSEMODEF mode macro. Expand using
15453 "sse4_1_round<mode>2" pattern for SSE4.1 targets.
15454 * config/i386/sse.md ("sse4_1_roundpd", "sse4_1_roundps"): Use
15455 UNSPEC_ROUND instead of UNSPEC_ROUNDP.
15456 ("sse4_1_roundsd", "sse4_1_roundss"): Use UNSPEC_ROUND instead of
15457 UNSPEC_ROUNDS.
15458
69f2880c
JS
154592007-06-06 Jan Sjodin <jan.sjodin@amd.com>
15460 Sebastian Pop <sebpop@gmail.com>
15461
15462 * lambda.h (build_linear_expr): New.
d6b0b376 15463 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression):
69f2880c
JS
15464 Use build_linear_expr, call fold and force_gimple_operand.
15465 (lambda_loopnest_to_gcc_loopnest): Check that there is
15466 something to insert.
15467 * testsuite/gcc.dg/tree-ssa/ltrans-6.c: New.
15468
f7fd775f
JW
154692007-06-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
15470
15471 PR preprocessor/23479
15472 * doc/extend.texi: Document the 0b-prefixed binary integer
15473 constant extension.
d6b0b376 15474
1a5f8b89
UB
154752007-06-05 Uros Bizjak <ubizjak@gmail.com>
15476
15477 PR tree-optimization/32215
15478 * tree-vectorizer.c (supportable_widening_operation): Return false
15479 for unsupported FIX_TRUNC_EXPR tree code.
15480 (supportable_narrowing_operation): Ditto for FLOAT_EXPR tree code.
15481
52ff33d0
NF
154822007-06-06 Nathan Froyd <froydnj@codesourcery.com>
15483
15484 * config/rs6000/rs6000.h (FIXED_SCRATCH): Use r0 as a scratch
15485 register on SPE targets. Change documentation to reflect
15486 reality.
15487 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
15488 Change FIXED_SCRATCH to 14 and document why we're keeping r14
15489 out of the register allocation pool.
15490 (rs6000_reg_live_or_pic_offset_p): New function.
15491 (rs6000_emit_prologue): Move the actual saving of LR up to free
15492 r0 for holding r11. Split saving of SPE 64-bit registers into
15493 its own case. Ensure that offsets will always be in-range for
15494 'evstdd' by using r11 as a scratch register to point at the start
15495 of the SPE save area. Save r11 if necessary, as it is the static
15496 chain register.
15497 (rs6000_emit_epilogue): Split restoring of SPE 64-bit registers
15498 into its own case. Ensure that offsets will always be in-range
15499 for 'evldd' by using r11 as a scratch register to point at the
15500 start of the SPE save area. Also adjust r11 when restoring
15501 the stack pointer to compensate for pre-loading r11.
15502
ae50c0cb
TN
155032007-06-05 Thomas Neumann <tneumann@users.sourceforge.net>
15504
15505 * cfg.c (init_flow): Use type safe memory macros.
15506 (alloc_block): Likewise.
15507 (unchecked_make_edge): Likewise.
15508 (dump_flow_info): Avoid using C++ keywords as variable names.
15509 (copy_original_table_clear): Cast according to the coding conventions.
15510 (copy_original_table_set): Likewise.
15511 * cfgexpand (label_rtx_for_bb): Likewise.
7fc40a9c 15512 (expand_gimple_basic_block): Likewise.
ae50c0cb 15513 * cfghooks.c (dump_bb): Likewise.
f28eb39c
UB
15514 (lv_adjust_loop_header_phi): Avoid using C++ keywords as
15515 variable names.
ae50c0cb
TN
15516 (lv_add_condition_to_bb): Likewise.
15517 * cfglayout (relink_block_chain): Cast according to the coding
15518 conventions.
15519 (fixup_reorder_chain): Likewise.
15520 (fixup_fallthru_exit_predecessor): Likewise.
15521 * cfgloop.c (glb_enum_p): Likewise.
15522 (get_exit_description): Likewise.
15523 (dump_recorded_exit): Likewise.
15524 * cfgloop.h (enum loop_estimation): Move out of struct scope...
15525 (struct loop): ... from here.
f28eb39c
UB
15526 * cfgloopmanip.c (rpe_enum_p): Cast according to the coding
15527 conventions.
ae50c0cb
TN
15528 * cfgrtl.c (rtl_create_basic_block): Likewise.
15529 (rtl_split_block): Likewise.
15530 (rtl_dump_bb): Likewise.
15531 (cfg_layout_split_block): Likewise.
15532 (init_rtl_bb_info): Use typesafe memory macros.
15533
15534 * graphds.h (struct graph_edge): Renamed edge to graph_edge.
15535 * graphds.h: Updated all usages of edge to graph_edge.
15536 * graphds.c: Likewise.
15537 * cfgloopanal.c: Likewise.
15538
3fe5bcaf
ILT
155392007-06-05 Ian Lance Taylor <iant@google.com>
15540
15541 * tree-vrp.c (compare_values_warnv): Check TREE_NO_WARNING on a
15542 PLUS_EXPR or MINUS_EXPR node before setting *strict_overflow_p.
15543 (extract_range_from_assert): Set TREE_NO_WARNING when creating an
15544 expression.
15545 (test_for_singularity): Likewise.
15546
a176d60f
L
155472007-06-05 H.J. Lu <hongjiu.lu@intel.com>
15548
15549 * config/i386/constraints.md ("Y2"): Replaced by ...
15550 ("Yt"): This.
15551 * config/i386/i386.md: Likewise.
15552 * config/i386/mmx.md: Likewise.
15553 * config/i386/sse.md: Likewise.
15554
c3b9a8d6
L
155552007-06-05 H.J. Lu <hongjiu.lu@intel.com>
15556
15557 * config/i386/constraints.md ("z"): Replaced by ...
15558 ("Y0"): This.
15559 * config/i386/sse.md (sse4_1_blendvpd): Likewise.
15560 (sse4_1_blendvps): Likewise.
15561 (sse4_1_pblendvb): Likewise.
15562 (sse4_2_pcmpestr): Likewise.
15563 (sse4_2_pcmpestrm): Likewise.
15564 (sse4_2_pcmpestr_cconly): Likewise.
15565 (sse4_2_pcmpistr): Likewise.
15566 (sse4_2_pcmpistrm): Likewise.
15567 (sse4_2_pcmpistr_cconly): Likewise.
15568
b8ff1d5b
RL
155692007-06-05 Razya Ladelsky <razya@il.ibm.com>
15570
c3b9a8d6
L
15571 * matrix-reorg.c (transform_access_sites): Fix computation.
15572 (transform_allocation_sites): Same.
b8ff1d5b 15573
cb482895
UB
155742007-06-05 Uros Bizjak <ubizjak@gmail.com>
15575
cc55c4b0
UB
15576 * config/i386/i386.c (override_options): Use
15577 TARGET_SUBTARGET32_ISA_DEFAULT to select default ix86_isa_flags.
15578
155792007-06-05 Uros Bizjak <ubizjak@gmail.com>
15580
15581 * config/i386/predicates.md (reg_not_xmm0_operand): New predicate.
cb482895
UB
15582 (nonimm_not_xmm0_operand): Ditto.
15583 * config/i386/sse.md ("sse4_1_blendvpd"): Use "reg_not_xmm0_operand"
15584 as operand[0] and operand[1] predicate. Use "nonimm_not_xmm0_operand"
15585 as operand[2] predicate. Require "z" class XMM register for
15586 operand[3]. Adjust asm template.
15587 ("sse4_1_blendvpd"): Ditto.
15588 ("sse4_1_pblendvb"): Ditto.
15589 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Do not
15590 force op2 into xmm0 register for variable blend instructions.
15591
7114359f
TT
155922007-06-04 Tom Tromey <tromey@redhat.com>
15593
15594 * c-tree.h (start_enum): Update.
15595 (build_enumerator): Likewise.
15596 * c-decl.c (enum_next_value): Removed.
15597 (enum_overflow): Likewise.
15598 (start_enum): Add c_enum_contents argument. Don't use globals.
15599 (build_enumerator): Likewise.
15600 * c-tree.h (struct c_enum_contents): New struct.
15601
762f7d9d
TT
156022007-06-04 Tom Tromey <tromey@redhat.com>
15603
15604 * c-common.c (c_common_get_alias_set): Fix indentation.
15605
9a46cc16
ILT
156062007-06-04 Ian Lance Taylor <iant@google.com>
15607
15608 * tree-vrp.c (adjust_range_with_scev): When loop is not expected
15609 to overflow, reduce overflow infinity to regular infinity.
15610 (vrp_var_may_overflow): New static function.
15611 (vrp_visit_phi_node): Check vrp_var_may_overflow.
15612
b9d49351
KH
156132007-06-04 Kazu Hirata <kazu@codesourcery.com>
15614
15615 * stor-layout.c (layout_type): Remove duplicate code.
15616
8de7ef2a
UB
156172007-06-04 Uros Bizjak <ubizjak@gmail.com>
15618
15619 PR c/32191
9bf5a5e8 15620 * c-common.c (c_define_builtins): Call targetm.init_builtins ()
8de7ef2a
UB
15621 before build_common_builtin_nodes ().
15622
15eb3a2e
SE
156232007-06-04 Steve Ellcey <sje@cup.hp.com>
15624
15625 PR target/31733
15626 * cfgrtl.c (rtl_verify_flow_info): Skip notes when looking for barrier.
15627
68c834d0 156282007-06-04 Jan Hubicka <jh@suse.cz>
c443019c
JH
15629
15630 * tree-predcom.c (replace_ref_with, initialize_root_vars_lm,
15631 reassociate_to_the_same_stmt): Call build_gimple_modify_stmt
15632 instead of _stat version.
15633
49379cb1
ZD
156342007-06-03 Zdenek Dvorak <dvorakz@suse.cz>
15635
15636 PR tree-optimization/32194
15637 * tree-predcom.c (determine_offset): Check that both references have
15638 the same type.
15639
66f97d31
ZD
156402007-06-03 Zdenek Dvorak <dvorakz@suse.cz>
15641
15642 * cfgloopmanip.c (remove_path, loopify, duplicate_loop_to_header_edge):
15643 Change dom_bbs to vector. Add argument to iterate_fix_dominators call.
15644 * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
15645 * tree-cfg.c (tree_duplicate_sese_region): Change doms to vector.
15646 Add argument to iterate_fix_dominators call.
15647 (remove_edge_and_dominated_blocks): Pass vector to bbs_to_fix_dom.
15648 * gcse.c (hoist_code): Change domby to vector.
15649 * cfghooks.c (make_forwarder_block): Change doms_to_fix to vector.
15650 Add argument to iterate_fix_dominators call.
15651 * loop-doloop.c (doloop_modify): Changed recount_dominator to
15652 recompute_dominator.
15653 * lambda-code.c (perfect_nestify): Ditto.
15654 * cfgloopanal.c: Include graphds.h.
15655 (struct edge, struct vertex, struct graph, dump_graph, new_graph,
15656 add_edge, dfs, for_each_edge, free_graph): Moved to graphds.c.
15657 (mark_irreducible_loops): Use graphds_scc. Remove argument from
15658 add_edge call.
15659 * graphds.c: New file.
15660 * graphds.h: New file.
15661 * dominance.c: Include vecprim.h, pointer-set.h and graphds.h.
15662 (get_dominated_by, get_dominated_by_region): Change return type to
15663 vector.
15664 (verify_dominators): Recompute all dominators and compare the results.
15665 (recount_dominator): Renamed to ...
15666 (recompute_dominator): ... this. Do not check that the block is
15667 dominated by entry.
15668 (iterate_fix_dominators): Reimplemented.
15669 (prune_bbs_to_update_dominators, root_of_dom_tree,
15670 determine_dominators_for_sons): New functions.
15671 * et-forest.c (et_root): New function.
15672 * et-forest.h (et_root): Declare.
15673 * Makefile.in (graphds.o): Add.
15674 (cfgloopanal.o): Add graphds.h dependency.
15675 (dominance.o): Add graphds.h, vecprim.h and pointer-set.h dependency.
15676 * basic-block.h (get_dominated_by, get_dominated_by_region,
15677 iterate_fix_dominators): Declaration changed.
15678 (recount_dominator): Renamed to ...
15679 (recompute_dominator): ... this.
15680 * tree-ssa-threadupdate.c (thread_block): Free dominance info.
15681 (thread_through_all_blocks): Do not free dominance info.
15682
b6a9c30c
AS
156832007-06-03 Andreas Schwab <schwab@suse.de>
15684
15685 * config/m68k/m68k.c (override_options): Don't override
15686 REAL_MODE_FORMAT.
15687 * config/m68k/m68k-modes.def (SF, DF): Define to use
15688 motorola_single_format and motorola_double_format, resp.
15689 * real.c (motorola_single_format): Renamed from
15690 coldfire_single_format.
15691 (motorola_double_format): Renamed from coldfire_double_format.
15692 (encode_ieee_extended): Generate a proper canonical NaN image
15693 respecting canonical_nan_lsbs_set.
15694 (ieee_extended_motorola_format): Set canonical_nan_lsbs_set to
15695 true.
15696 * real.h: Adjust declarations.
15697
439211a0
KK
156982007-06-03 Kaz Kojima <kkojima@gcc.gnu.org>
15699
15700 PR target/32163
15701 * config/sh/sh.md (symGOT_load): Don't schedule insns when
15702 the symbol is generated with the stack protector.
15703
2bccb817
KH
157042007-06-03 Kazu Hirata <kazu@codesourcery.com>
15705
15706 * config/m68k/m68k.c (m68k_attribute_table): Add "interrupt".
15707 (m68k_get_function_kind): Return m68k_fk_interrupt_handler on
15708 "interrupt".
15709 * doc/extend.texi (interrupt): Mention m68k.
15710
c7a69424
UB
157112007-06-02 Uros Bizjak <ubizjak@gmail.com>
15712
c7a69424 15713 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Call
57d47da6 15714 safe_vector_operand() if input operand is VECTOR_MODE_P operand.
c7a69424
UB
15715 (ix86_expand_sse_pcmpestr): Do not check operands for
15716 "register_operand", when insn operand predicate is "register_operand".
15717 (ix86_expand_sse_pcmpistr): Ditto.
15718
06f4e35d
L
157192007-06-02 H.J. Lu <hongjiu.lu@intel.com>
15720 Uros Bizjak <ubizjak@gmail.com>
15721
15722 * config/i386/i386.h (enum reg_class) [SSE_FIRST_REG]: New.
15723 (SSE_CLASS_P): Use reg_class_subset_p between SSE_REGS.
15724 (REG_CLASS_NAMES): Add "FIRST_SSE_REG" string.
15725 (REG_CLASS_CONTENTS): Add members of FIRST_SSE_REG class.
15726 * config/i386/constraints.md ("z"): New register constraint
15727 for members of SSE_FIRST_REG class.
15728 * config/i386/i386-modes.def (CCA, CCC, CCO, CCS): New compare modes.
15729 * config/i386/i386.c (regclass_map): Change class of %xmm0 to
15730 SSE_FIRST_REG class.
15731 (put_condition_code) [EQ, NE]: Output suffixes for new compare modes.
15732 (ix86_cc_modes_compatible): Handle CCA, CCC, CCO and CCS modes.
15733 (IX86_BUILTIN_PCMPESTRI128): New for SSE4.2.
15734 (IX86_BUILTIN_PCMPESTRM128): Likewise.
15735 (IX86_BUILTIN_PCMPESTRA128): Likewise.
15736 (IX86_BUILTIN_PCMPESTRC128): Likewise.
15737 (IX86_BUILTIN_PCMPESTRO128): Likewise.
15738 (IX86_BUILTIN_PCMPESTRS128): Likewise.
15739 (IX86_BUILTIN_PCMPESTRZ128): Likewise.
15740 (IX86_BUILTIN_PCMPISTRI128): Likewise.
15741 (IX86_BUILTIN_PCMPISTRM128): Likewise.
15742 (IX86_BUILTIN_PCMPISTRA128): Likewise.
15743 (IX86_BUILTIN_PCMPISTRC128): Likewise.
15744 (IX86_BUILTIN_PCMPISTRO128): Likewise.
15745 (IX86_BUILTIN_PCMPISTRS128): Likewise.
15746 (IX86_BUILTIN_PCMPISTRZ128): Likewise.
15747 (struct builtin_description): Change "flag" field to unsigned.
15748 (bdesc_pcmpestr): New builtin description table.
15749 (bdesc_pcmpistr): Likewise.
15750 (ix86_init_mmx_sse_builtins): Define int_ftype_v16qi_int_v16qi_int_int,
15751 v16qi_ftype_v16qi_int_v16qi_int_int and int_ftype_v16qi_v16qi_int.
15752 Initialize pcmp[ei]str[im] insns for SSE4.2.
15753 (ix86_expand_sse_pcmpestr): New subroutine of ix86_expand_builtin.
15754 (ix86_expand_sse_pcmpistr): Likewise.
15755 (ix86_expand_builtin): Expand pcmp[ei]str[im] builtins for SSE4.2.
15756 * config/i386/i386.md (UNSPEC_PCMPESTR): New for SSE4.2.
15757 (UNSPEC_PCMPISTR): Likewise.
15758 * config/i386/sse.md (sse4_2_pcmpestr): New insn patern and splitter.
15759 (sse4_2_pcmpestri):New isns pattern.
15760 (sse4_2_pcmpestrm): Likewise.
15761 (sse4_2_pcmpestr_cconly): Likewise.
15762 (sse4_2_pcmpistr): New insn patern and splitter.
15763 (sse4_2_pcmpistri):New isns pattern.
15764 (sse4_2_pcmpistrm): Likewise.
15765 (sse4_2_pcmpistr_cconly): Likewise.
15766 * config/i386/smmintrin.h: Enable pcmp[ei]str[im] intrinsics
15767 in SSE4.2.
15768
adb04511
DD
157692007-06-01 David Daney <ddaney@avtrex.com>
15770
15771 * config/mips/mips.c (mips_output_mi_thunk): Only load gp if not
15772 LOADGP_ABSOLUTE and not binds_local_p.
d6b0b376 15773
648beecd
GK
157742007-06-01 Geoffrey Keating <geoffk@apple.com>
15775
15776 * config/darwin.h (LINK_SPEC): Pass -fpie through to the linker.
15777
e07e405d
ILT
157782007-06-01 Ian Lance Taylor <iant@google.com>
15779
15780 * tree-vrp.c (compare_name_with_value): Always set
15781 used_strict_overflow if we get a result from the variable itself.
15782
03743286
ILT
157832007-06-01 Ian Lance Taylor <iant@google.com>
15784
15785 PR rtl-optimization/31455
15786 * lower-subreg.c (find_decomposable_subregs): Don't decompose
15787 subregs which have a cast between modes which are not tieable.
15788
b7e6d1da
UB
157892007-06-01 Uros Bizjak <ubizjak@gmail.com>
15790
15791 * expr.c (force_operand) [DIV, MOD, UDIV, UMOD, ASHIFTRT]: Remove
15792 breaks after return statements.
15793
5e77c6f9
KK
157942007-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
15795
15796 * config/sh/sh.c (fpscr_set_from_mem): Call get_free_reg
15797 only after no_new_pseudos.
15798
ed1223ba
EC
157992007-05-31 Eric Christopher <echristo@apple.com>
15800
15801 * expr.c (convert_move): Assert that we don't have a BLKmode
15802 operand.
15803 (store_expr): Handle BLKmode moves by calling emit_block_move.
15804
2c751309
DB
158052007-05-31 Daniel Berlin <dberlin@dberlin.org>
15806
15807 * c-typeck.c (build_indirect_ref): Include type in error message.
15808 (build_binary_op): Pass types to binary_op_error.
15809 * c-common.c (binary_op_error): Take two type arguments, print out
15810 types with error.
15811 * c-common.h (binary_op_error): Update prototype.
15812
6847c43d
L
158132007-05-31 H.J. Lu <hongjiu.lu@intel.com>
15814
15815 * config/i386/i386.c: Correct coments on -mno-sse4.
15816
3b8dd071
L
158172007-05-31 H.J. Lu <hongjiu.lu@intel.com>
15818
06f4e35d 15819 * config.gcc (i[34567]86-*-*): Add nmmintrin.h to extra_headers.
3b8dd071 15820 (x86_64-*-*): Likewise.
3b8dd071
L
15821 * config/i386/i386.c (OPTION_MASK_ISA_MMX_UNSET): New.
15822 (OPTION_MASK_ISA_3DNOW_UNSET): Likewise.
15823 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
15824 (OPTION_MASK_ISA_SSE2_UNSET): Likewise.
15825 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
15826 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
15827 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
15828 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
15829 (OPTION_MASK_ISA_SSE4): Likewise.
15830 (OPTION_MASK_ISA_SSE4_UNSET): Likewise.
15831 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
06f4e35d 15832 (ix86_handle_option): Use OPTION_MASK_ISA_*_UNSET. Handle SSE4.2.
3b8dd071
L
15833 (override_options): Support SSE4.2.
15834 (ix86_build_const_vector): Support SImode and DImode.
15835 (ix86_build_signbit_mask): Likewise.
15836 (ix86_expand_int_vcond): Support V2DImode.
15837 (IX86_BUILTIN_CRC32QI): New for SSE4.2.
15838 (IX86_BUILTIN_CRC32HI): Likewise.
15839 (IX86_BUILTIN_CRC32SI): Likewise.
15840 (IX86_BUILTIN_CRC32DI): Likewise.
15841 (IX86_BUILTIN_PCMPGTQ): Likewise.
15842 (bdesc_crc32): Likewise.
15843 (bdesc_sse_3arg): Likewise.
15844 (ix86_expand_crc32): Likewise.
15845 (ix86_init_mmx_sse_builtins): Support SSE4.2.
15846 (ix86_expand_builtin): Likewise.
3b8dd071
L
15847 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
15848 __SSE4_2__ for -msse4.2.
3b8dd071
L
15849 * config/i386/i386.md (UNSPEC_CRC32): New for SSE4.2.
15850 (CRC32MODE): Likewise.
15851 (crc32modesuffix): Likewise.
15852 (crc32modeconstraint): Likewise.
15853 (sse4_2_crc32<mode>): Likewise.
15854 (sse4_2_crc32di): Likewise.
3b8dd071
L
15855 * config/i386/i386.opt (msse4.2): New for SSE4.2.
15856 (msse4): Likewise.
06f4e35d 15857 * config/i386/nmmintrin.h: New. The dummy SSE4.2 intrinsic header file.
3b8dd071 15858 * config/i386/smmintrin.h: Add SSE4.2 intrinsics.
06f4e35d 15859 * config/i386/sse.md (sse4_2_gtv2di3): New pattern for SSE4.2.
3b8dd071
L
15860 (vcond<mode>): Use SSEMODEI instead of SSEMODE124.
15861 (vcondu<mode>): Likewise.
3b8dd071 15862 * doc/extend.texi: Document SSE4.2 built-in functions.
3b8dd071
L
15863 * doc/invoke.texi: Document -msse4.2/-msse4.
15864
2664efb6
ZD
158652007-05-31 Zdenek Dvorak <dvorakz@suse.cz>
15866
15867 PR tree-optimization/32160
15868 * tree-predcom.c (predcom_tmp_var): New function. Mark created
15869 variable as gimple reg.
15870 (initialize_root_vars, initialize_root_vars_lm): Use predcom_tmp_var.
15871
01e4dd0d
KH
158722007-05-31 Kazu Hirata <kazu@codesourcery.com>
15873
15874 * gcc.c (main): Don't consider linker options when issuing the
15875 warning about a linker input file not being used.
15876
3b7bab4d
RW
158772007-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15878
15879 * tree-vrp.c (compare_names): Initialize sop.
15880
62090afb
DM
158812007-05-30 Dirk Mueller <dmueller@suse.de>
15882
15883 * cgraphunit.c (cgraph_analyze_function): Remove
15884 computation of inline parameters.
15885
158862007-05-30 Uros Bizjak <ubizjak@gmail.com>
b42f4d62
UB
15887
15888 * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Undef before define.
15889
9403b7f7
RS
158902007-05-30 Richard Sandiford <richard@codesourcery.com>
15891
15892 * config.gcc (arm-wrs-vxworks): Remove dbxelf.h from tm_file.
15893 Add vx-common.h. Include vxworks.h between vx-common.h and
15894 arm/vxworks.h.
15895 * config/vx-common.h (DWARF2_UNWIND_INFO): Undefine before
15896 redefining.
15897 * config/vxworks.h (TARGET_ASM_CONSTRUCTOR): Likewise.
15898 (TARGET_ASM_DESTRUCTOR): Likewise.
15899 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Check arm_arch_xscale
15900 instead of arm_is_xscale. Use VXWORKS_OS_CPP_BUILTINS.
15901 (OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
15902 (CC1_SPEC): Add -tstrongarm. Line up backslashes.
15903 (VXWORKS_ENDIAN_SPEC): Define.
15904 (ASM_SPEC): Add VXWORKS_ENDIAN_SPEC.
15905 (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine to their
15906 VXWORKS_* equivalents.
15907 (LINK_SPEC): Likewise, but add VXWORKS_ENDIAN_SPEC.
15908 (ASM_FILE_START): Delete.
15909 (TARGET_VERSION): Reformat.
15910 (FPUTYPE_DEFAULT, FUNCTION_PROFILER): Define.
15911 (DEFAULT_STRUCTURE_SIZE_BOUNDARY): Define.
15912 * config/arm/t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Define.
15913 (FPBIT, DPBIT): Define.
15914 (fp-bit.c, dp-bit.c): New rules.
15915 (MULTILIB_OPTIONS): Add strongarm, -mrtp and -mrtp/-fPIC multilibs.
15916 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Define.
15917 * config/arm/arm-protos.h (arm_emit_call_insn): Declare.
15918 * config/arm/arm.h: Include vxworks-dummy.h.
15919 * config/arm/arm.c (arm_elf_asm_constructor, arm_elf_asm_destructor):
15920 Mark with ATTRIBUTE_UNUSED.
15921 (arm_override_options): Do not allow VxWorks RTP PIC to be used
15922 for Thumb. Force r9 to be the PIC register for VxWorks RTPs and
15923 make it incompatible with -msingle-pic-base.
15924 (arm_function_ok_for_sibcall): Return false for calls that might
15925 go through a VxWorks PIC PLT entry.
15926 (require_pic_register): New function, split out from...
15927 (legitimize_pic_address): ...here. Do not use GOTOFF accesses
15928 for VxWorks RTPs.
15929 (arm_load_pic_register): Handle the VxWorks RTP initialization
15930 sequence. Use pic_reg as a shorthand for cfun->machine->pic_reg.
15931 (arm_emit_call_insn): New function.
15932 (arm_assemble_integer): Do not use GOTOFF accesses for VxWorks RTP.
15933 * config/arm/arm.md (UNSPEC_PIC_OFFSET): New unspec number.
15934 (pic_offset_arm): New pattern.
15935 (call, call_value): Use arm_emit_call_insn.
15936 (call_internal, call_value_internal): New expanders.
15937 * config/arm/lib1funcs.asm (__PLT__): Define to empty for
15938 VxWorks unless __PIC__.
15939
5abc5de9
EC
159402007-05-30 Eric Christopher <echristo@gmail.com>
15941
15942 * genrecog.c: Include regs.h in generated file.
15943 * genemit.c: Ditto. Fix up formatting.
15944 * config/mn10300/constraints.md: New.
15945 * config/mn10300/mn10300.md: Include.
15946 * config/mn10300/mn10300.c(mn10300_secondary_reload_class):
15947 Fix up for removed macro.
6ef5231b 15948 * config/mn10300/predicates.md (call_address_operand): Ditto.
5abc5de9
EC
15949 * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Delete.
15950 (CONST_OK_FOR_I): Ditto.
15951 (CONST_OK_FOR_J): Ditto.
15952 (CONST_OK_FOR_K): Ditto.
15953 (CONST_OK_FOR_L): Ditto.
15954 (CONST_OK_FOR_M): Ditto.
15955 (CONST_OK_FOR_N): Ditto.
15956 (CONST_DOUBLE_OK_FOR_LETTER_P): Ditto.
15957 (OK_FOR_Q): Ditto.
15958 (OK_FOR_R): Ditto.
15959 (OK_FOR_T): Ditto.
15960 (EXTRA_CONSTRAINT): Ditto.
15961
853a33f3
UB
159622007-05-30 Uros Bizjak <ubizjak@gmail.com>
15963
15964 * config/i386/i386.h (MASK_64BIT, MASK_MMX, MASK_3DNOW*, MASK_SSE*):
15965 Remove defines.
15966 * config/i386/biarch.h (TARGET_64BIT_DEFAULT): Define to
15967 OPTION_MASK_ISA_64BIT.
15968 * config/i386/i386.c: Rename MASK_* macros to OPTION_MASK_ISA_*.
15969
fa139765
RG
159702007-05-30 Richard Guenther <rguenther@suse.de>
15971
15972 PR middle-end/32152
15973 * gimplify.c (gimplify_omp_atomic_pipeline): Use correct
15974 types for comparison.
15975 * fold-const.c (fold_comparison): Call maybe_canonicalize_comparison
15976 with original typed arguments.
15977 * config/i386/i386.c (ix86_gimplify_va_arg): Fix type mismatches.
15978
722ba5ee
JJ
159792007-05-30 Jakub Jelinek <jakub@redhat.com>
15980
15981 PR tree-optimization/31769
15982 * except.c (duplicate_eh_regions): Clear prev_try if
15983 ERT_MUST_NOT_THROW region is inside of ERT_TRY region.
15984
18965703
ZD
159852007-05-30 Zdenek Dvorak <dvorakz@suse.cz>
15986
15987 * tree-scalar-evolution.c (scev_const_prop): Do not create labels.
15988 * tree-ssa-sink.c (statement_sink_location): Return basic block and
15989 bsi of the location where statements should be inserted.
15990 (sink_code_in_bb): Take bsi from statement_sink_location.
15991 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use bsi_after_labels
15992 instead of bsi_start.
15993 * tree-profile.c (tree_gen_ic_func_profiler): Pass BSI_NEW_STMT to
15994 bsi_insert_after.
15995 * tree-cfg.c (bsi_move_after): Pass BSI_NEW_STMT to bsi_insert_after.
15996 (bsi_move_before): Document inconsistency with bsi_move_after.
15997 (tree_redirect_edge_and_branch): Do not create labels if not necessary.
15998
0a1c5e55
UB
159992007-05-30 Uros Bizjak <ubizjak@gmail.com>
16000
16001 * config/i386/i386.h (TARGET_ABM): New define.
16002 (TARGET_POPCNT): Ditto.
16003 (TARGET_64BIT, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A, TARGET_SSE*):
16004 New temporary defines to redefine from OPTION_ISA_* defines.
16005 (MASK_64BIT, MASK_MMX, MASK_3DNOW, MASK_3DNOW_A, MASK_SSE*):
16006 New temporary defines to redefine from OPTION_MASK_ISA_* defines.
16007 (ix86_isa_flags): New extern int declaration.
16008 (TARGET_SUBTARGET_DEFAULT): New define.
16009 (TARGET_SUBTARGET_ISA_DEFAULT): Ditto.
16010 (TARGET_SUBTARGET32_DEFAULT): Ditto.
16011 (TARGET_SUBTARGET32_ISA_DEFAULT): Ditto.
16012 (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
16013 * config/i386/unix.h: Undef TARGET_SUBTARGET_DEFAULT before define.
16014 * config/i386/darwin.h: Change TARGET_64BIT define to
16015 OPTION_ISA_64BIT.
16016
16017 * config/i386/i386.opt (m3dnowa): Define as undocumented option
16018 using existing "ix86_isa_flags" varible.
16019 (m32, m64): Use existing "ix86_isa_flags" variable.
16020 (mmmx, m3dnow): Ditto.
16021 (msse, msse2, msse3, mssse3, msse4.1, msse4a): Ditto.
16022 (mabm): Define as non-negative option using "x86_abm" variable.
16023 (mpopcnt): Define as non-negative option using "x86_popcnt" variable.
16024
16025 * config/i386/i386.c (ix86_arch_features) [X86_ARCH_CMOVE]:
16026 Rewrite feature test bitmap.
16027 (ix86_isa_flags): New initialized global int varible.
16028 (ix86_isa_flags_explicit): New static int variable.
16029 (ix86_handle_option): Set "ix86_isa_flags_explicit" when mmmx, m3dnow,
16030 msse, msse2, msse3, msse4.1 and msse4a option is processed. Change
16031 i86_isa_flags and ix86_isa_flags_explicit, not target_flags and
16032 target_flags_explicit.
16033 (override_options): Remove "target_enable" and "target_disable" fields
16034 from "struct ptt". Update processor_target_table accordingly. Remove
16035 PTA_PREFETCH_SSE from processor_alias_table entry if PTE_SSE is
16036 defined and rearrange PTA_* bits. Use "ix86_isa_flags" instead of
16037 "target_flags" and "ix86_isa_flags_explicit" instead of
16038 "target_flags_explicit" when masked with MASK_64BIT, MASK_MMX,
16039 MASK_3DNOW, MASK_3DNOW_A or MASK_SSE*. Set "x86_abm" to true when
16040 PTA_ABM is set in processor_alias_table flags entry. Set "x86_popcnt"
16041 to true when either of PTA_POPCNT or PTA_ABM is set in
16042 processor_alias_table flags entry. Set "x86_prefetch_sse" to true
16043 when either of PTA_PREFETCH_SSE or PTA_SSE is set in
16044 processor_alias_table flags entry. Remove handling of
16045 "target_enable" and "target_disable" fields of processor_target_table.
16046 Mask "target_flags" with TARGET_SUBTARGET32_DEFAULT for 32-bit
16047 targets or with TARGET_SUBTARGET64_DEFAULT for 64-bit targets.
16048 Mask "ix86_isa_flags" with TARGET_SUBTARGET32_ISA_DEFAULT for 32-bit
16049 targets or with TARGET_SUBTARGET64_ISA_DEFAULT for 64-bit targets.
16050 (def_builtin): Mask "mask" variable with "ix86_isa_flags", not
16051 "target_flags".
16052 (TARGET_DEFAULT_TARGET_FLAGS): Do not include TARGET_64BIT_DEFAULT.
16053
853a33f3 160542007-05-29 David Daney <ddaney@avtrex.com>
e440de0e
DD
16055
16056 PR gcc/31975
16057 * config/mips/mips.c (mips_output_mi_thunk): Emit
16058 NOTE_INSN_PROLOGUE_END at beginning of the thunk.
16059
f2f0a960 160602007-05-29 Hui-May Chang <hm.chang@apple.com>
5abc5de9 16061 * config/i386/i386.c (ix86_function_regparm): Added checking of
f2f0a960
HMC
16062 ix86_force_align_arg_pointer to determine the number of
16063 register parameters.
16064
5417e022
ZD
160652007-05-29 Zdenek Dvorak <dvorakz@suse.cz>
16066
16067 * tree-vectorizer.h (DR_MISALIGNMENT): Cast aux to integer.
16068 (SET_DR_MISALIGNMENT): New.
16069 * tree-vect-analyze.c (vect_compute_data_ref_alignment,
16070 vect_update_misalignment_for_peel, vect_enhance_data_refs_alignment):
16071 Use SET_DR_MISALIGNMENT.
16072 * tree-predcom.c (split_data_refs_to_components): Cast dr->aux from
16073 pointer.
16074 * tree-data-ref.c (create_data_ref, compute_all_dependences,
16075 find_loop_nest): Export.
16076 * tree-data-ref.h (struct data_reference): Change aux field to pointer.
16077 (create_data_ref, compute_all_dependences, find_loop_nest): Declare.
16078 * tree-ssa-loop-prefetch.c: Include tree-data-ref.h.
16079 (L1_CACHE_SIZE_BYTES, L2_CACHE_SIZE_BYTES, NONTEMPORAL_FRACTION):
16080 New macros.
16081 (struct mem_ref): Add field reuse_distance.
16082 (find_or_create_group, record_ref): Use XNEW instead of xcalloc.
16083 Initialize reuse_distance field.
16084 (issue_prefetch_ref): Select temporality of prefetch according to
16085 reuse_distance.
16086 (volume_of_references, volume_of_dist_vector, add_subscript_strides,
16087 self_reuse_distance, determine_loop_nest_reuse): New functions.
16088 (loop_prefetch_arrays): Call determine_loop_nest_reuse.
16089 (tree_ssa_prefetch_arrays): Dump L2 cache size.
16090 * Makefile.in (tree-ssa-loop-prefetch.o): Add TREE_DATA_REF_H
16091 dependency.
16092
6e2dc028
DB
160932007-05-29 Daniel Berlin <dberlin@dberlin.org>
16094
16095 * tree-ssa-alias.c: Add aliasing overview.
16096
9bd196f0 160972007-05-29 Zuxy Meng <zuxy.meng@gmail.com>
5417e022 16098 Danny Smith <dannysmith@users.sourceforge.net>
9bd196f0
ZM
16099
16100 PR target/29498
16101 * config/i386/t-crtfm: Compile crtfastmath.o with
16102 -minline-all-stringops.
16103 * config/i386/cygwin.h (ENDFILE_SPECS): Add crtfastmath.o.
16104 * config/i386/mingw32.h (ENDFILE_SPECS): Add crtfastmath.o.
16105
5b281141
JDA
161062007-05-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16107
8119b4e4
JDA
16108 * doc/md.texi: Document constraints on HP PA-RISC.
16109
5b281141
JDA
16110 * pa/constraints.md: New file.
16111 * pa.md: Include constraints.md.
16112 * pa.c (cint_ok_for_move): Avoid using CONST_OK_FOR_LETTER_P.
16113 (integer_store_memory_operand, ldil_cint_p): New functions.
16114 * pa-protos.h (integer_store_memory_operand, ldil_cint_p): Declare.
16115 * pa.h (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
16116 IS_RELOADING_PSEUDO_P, EXTRA_CONSTRAINT): Remove.
16117 * pa32-regs.h (REG_CLASS_FROM_LETTER): Remove.
16118 * pa64-regs.h (REG_CLASS_FROM_LETTER): Remove.
16119
a87db577
AP
161202007-05-28 Andrew Pinski <Andrew_pinski@playstation.sony.com>
16121
16122 PR c/31339
16123 * c-typeck.c (build_unary_op <case PREINCREMENT_EXPR,
16124 case POSTINCREMENT_EXPR, case PREDECREMENT_EXPR,
16125 case POSTDECREMENT_EXPR>): Return the error_mark_node
16126 if either the real or imaginary parts would an
16127 error_mark_node.
16128
3659e0cd
DB
161292007-05-28 Daniel Berlin <dberlin@dberlin.org>
16130
16131 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Release LHS SSA
16132 name when we remove it from a call.
16133
cf9226fb
KH
161342007-05-28 Kazu Hirata <kazu@codesourcery.com>
16135
16136 * targhooks.c (default_narrow_bitfield): Remove.
16137 * targhooks.h: Remove the prototype for
16138 default_narrow_bitfield.
16139
70ea680b
KH
16140 * langhooks-def.h: Remove the prototype for
16141 hook_get_alias_set_0.
16142 * langhooks.c (hook_get_alias_set_0): Remove.
16143
179daa15
KH
16144 * global.c (EXECUTE_IF_CONFLICT): Remove.
16145
3613c7ab
AP
161462007-05-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
16147
16148 PR tree-opt/32100
16149 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't
16150 return true when truth_value_p is true and the type
16151 is of signed:1.
16152
565f8ce5
GP
161532007-05-28 Gerald Pfeifer <gerald@pfeifer.com>
16154
16155 * doc/install.texi (Prerequisites): We no longer require Autoconf
16156 2.13 for the top-level.
16157
e9dd4c3e
UB
161582007-05-28 Uros Bizjak <ubizjak@gmail.com>
16159
16160 * target/i386/i386.c (ix86_expand_vector_move): Expand unaligned
16161 memory access via x86_expand_vector_move_misalign() only for
16162 TImode values on 32-bit targets.
5abc5de9
EC
16163
161642007-05-28 Razya Ladelsky <razya@il.ibm.com>
16165
e9dd4c3e
UB
16166 * matrix-reorg.c: New file. Implement matrix flattening and
16167 transposing optimization.
16168 * tree-pass.h: Add matrix reorg pass.
16169 * common.opt: Add fipa-mreorg flag.
16170 * Makefile.in: Add matrix-reorg.c.
16171 * passes.c: Add matrix reorg pass.
16172 * varpool.c (add_new_static_var): New function.
16173 * cgraph.h (add_new_static_var): Declare.
43d861a5 16174
bcb2d701
EC
161752007-05-27 Eric Christopher <echristo@apple.com>
16176
16177 * config/rs6000/rs6000.c (rs6000_emit_prologue): Update
16178 sp_offset depending on stack size. Save r12 depending
16179 on registers we're saving later.
16180 (rs6000_emit_epilogue): Update sp_offset depending only
16181 on stack size.
16182
d51157de
ZD
161832007-05-27 Zdenek Dvorak <dvorakz@suse.cz>
16184
16185 * tree-vrp.c (execute_vrp): Do not check whether current_loops == NULL.
16186 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
16187 * ifcvt.c (if_convert): Ditto.
16188 * tree-ssa-threadupdate.c (thread_block): Ditto.
16189 (thread_through_all_blocks): Ditto. Assert that loops were analysed.
16190 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
0a1c5e55
UB
16191 verify_loop_closed_ssa): Check number_of_loops instead of
16192 current_loops.
d51157de
ZD
16193 * predict.c (tree_estimate_probability): Ditto.
16194 * tree-if-conv.c (main_tree_if_conversion): Ditto.
16195 * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
16196 * modulo-sched.c (sms_schedule): Ditto.
16197 * tree-scalar-evolution.c (scev_const_prop): Ditto.
16198 (scev_finalize): Do not do anything if scev analysis was not
16199 initialized.
16200 * cfgloopanal.c (mark_irreducible_loops): Do not check whether
16201 current_loops == NULL.
16202 (mark_loop_exit_edges): Check number_of_loops instead of current_loops.
16203 * loop-init.c (loop_optimizer_init): Do not free current_loops when
16204 there are no loops.
16205 (loop_optimizer_finalize): Assert that loops were analyzed.
16206 (rtl_move_loop_invariants, rtl_unswitch, rtl_unroll_and_peel_loops,
16207 rtl_doloop): Check number_of_loops instead of current_loops.
16208 * tree-ssa-loop.c (tree_loop_optimizer_init): Do not check whether
16209 current_loops == NULL.
16210 (tree_ssa_loop_init, tree_ssa_loop_im, tree_ssa_loop_unswitch,
16211 gate_tree_vectorize tree_linear_transform, check_data_deps,
16212 tree_ssa_loop_ivcanon, tree_ssa_empty_loop, tree_ssa_loop_bounds,
16213 tree_complete_unroll, tree_ssa_loop_prefetch, tree_ssa_loop_ivopts):
16214 Check number_of_loops instead of current_loops.
16215 (tree_ssa_loop_done): Do not check whether current_loops == NULL.
16216 * tree-ssa-pre.c (fini_pre): Do not take do_fre argument. Always
16217 free loops if available.
16218 (execute_pre): Do not pass do_fre to fini_pre.
16219
fe67caf6
TB
162202007-05-27 Tobias Burnus <burnus@net-b.de>
16221
16222 PR middle-end/32083
16223 * real.c (mpfr_from_real): Fix sign of -Inf.
16224
8ff43db0
L
162252007-05-27 H.J. Lu <hongjiu.lu@intel.com>
16226
16227 * tree-vect-transform.c (vectorizable_conversion): Initialize
16228 tree_code variables to ERROR_MARK.
16229 (vectorizable_type_demotion): Likewise.
16230 (vectorizable_type_promotion): Likewise.
16231
72bd078f
UB
162322007-05-26 Uros Bizjak <ubizjak@gmail.com>
16233
16234 PR target/32065
16235 * config/i386/i386.md (movti): Handle push operands via
16236 ix86_expand_push().
16237
eb834193
KH
162382007-05-26 Kazu Hirata <kazu@codesourcery.com>
16239
16240 * basic-block.h: Remove the prototype for merge_seq_blocks.
16241 * cfgcleanup.c (merge_seq_blocks): Remove.
16242
5ef1348f
KH
16243 * tree-flow.h: Remove the prototype for is_aliased_with.
16244 * tree-ssa-alias.c (is_aliased_with): Remove.
16245
e5ac0b9b
L
162462007-05-26 H.J. Lu <hongjiu.lu@intel.com>
16247
16248 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): New.
16249
16250 * config/i386/i386.c (ix86_expand_sse4_unpack): New.
16251
16252 * config/i386/sse.md (vec_unpacku_hi_v16qi): Call
16253 ix86_expand_sse4_unpack if SSE4.1 is enabled.
16254 (vec_unpacks_hi_v16qi): Likewise.
16255 (vec_unpacku_lo_v16qi): Likewise.
16256 (vec_unpacks_lo_v16qi): Likewise.
16257 (vec_unpacku_hi_v8hi): Likewise.
16258 (vec_unpacks_hi_v8hi): Likewise.
16259 (vec_unpacku_lo_v8hi): Likewise.
16260 (vec_unpacks_lo_v8hi): Likewise.
16261 (vec_unpacku_hi_v4si): Likewise.
16262 (vec_unpacks_hi_v4si): Likewise.
16263 (vec_unpacku_lo_v4si): Likewise.
16264 (vec_unpacks_lo_v4si): Likewise.
16265
4dad0aca
KH
162662007-05-26 Kazu Hirata <kazu@codesourcery.com>
16267
16268 * c-typeck.c, config/arm/arm.c, config/darwin.c,
16269 config/sh/symbian.c, gcc.c, ipa-cp.c, ipa-inline.c, loop-iv.c,
16270 omega.c, tree-ssa-loop-niter.c, treestruct.def: Fix typos and
16271 follow spelling conventions in various
16272 warning/error/diagnostic messages.
16273
110abdbc
KH
16274 * config/i386/i386.c, config/pa/pa.c, config/spu/spu.c,
16275 df-problems.c, df-scan.c, domwalk.c, ebitmap.c, ebitmap.h,
16276 fold-const.c, gcc.c, ipa-type-escape.c, omega.c, omega.h,
16277 tree-ssa-coalesce.c, tree-ssa-live.c, tree-ssa-structalias.c,
16278 tree-vrp.c: Fix comment typos. Follow spelling conventions.
16279 * doc/tm.texi: Follow spelling conventions.
16280
150594ba
AP
162812007-05-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
16282
16283 PR tree-opt/32090
16284 * tree-ssa-forwprop.c
16285 (forward_propagate_addr_into_variable_array_index): Remove
16286 the lhs argument. Use the type of def_rhs instead of lhs.
16287 (forward_propagate_addr_expr_1): Update use of
16288 forward_propagate_addr_into_variable_array_index.
16289
cd3a59b3
SL
162902007-05-25 Sandra Loosemore <sandra@codesourcery.com>
16291 Nigel Stephens <nigel@mips.com>
16292
16293 * config/mips/mips.c (mips_attribute_table): Add "near" and "far"
16294 function attributes, "far" being an alias for "long_call".
16295 (TARGET_COMP_TYPE_ATTRIBUTES): Define as mips_comp_type_attributes.
16296 (mips_near_type_p, mips_far_type_p): New.
16297 (mips_comp_type_attributes): New function to check that attributes
16298 attached to a function type are compatible.
16299 (mips_output_mi_thunk): Test SYMBOL_REF_LONG_CALL_P() rather than
16300 TARGET_LONG_CALLS when deciding whether we can do a direct sibcall
16301 to the target function of the thunk.
16302 (mips_encode_section_info): Check for "near" and "far" function
16303 attributes, and always set the SYMBOL_FLAG_LONG_CALL bit explicitly.
16304
16305 * config/mips/predicates.md (const_call_insn_operand): Test only
16306 SYMBOL_REF_LONG_CALL_P() and not TARGET_LONG_CALLS.
16307
16308 * doc/extend.texi (Function Attributes): Document MIPS "near" and
16309 "far" attributes.
16310
6ef5231b
JJ
16311 * testsuite/gcc.target/mips/near-far-1.c: New test case.
16312 * testsuite/gcc.target/mips/near-far-2.c: New test case.
16313 * testsuite/gcc.target/mips/near-far-3.c: New test case.
16314 * testsuite/gcc.target/mips/near-far-4.c: New test case.
cd3a59b3 16315
8536ebb5
EC
163162007-05-25 Eric Christopher <echristo@apple.com>
16317
16318 * config.gcc: Add i386/t-fprules-softfp64 and soft-fp/t-softfp
16319 to x86-darwin configurations.
16320 * config/i386/t-darwin: Add softfp support.
16321 * config/i386/t-darwin64: Ditto.
16322 * config/i386/sfp-machine.h: If mach then don't use
16323 aliasing, emit a stub to call.
16324
c80b4100
KH
163252007-05-25 Kazu Hirata <kazu@codesourcery.com>
16326
16327 * cfglayout.c, cgraphunit.c, config/avr/avr.c, fold-const.c,
16328 haifa-sched.c, optabs.h, tree-affine.c, tree-data-ref.c,
16329 tree-predcom.c, tree-ssa-alias-warnings.c,
16330 tree-ssa-forwprop.c, tree-vect-analyze.c, tree-vrp.c: Fix
16331 comment typos. Follow spelling conventions.
16332 * doc/cpp.texi, doc/invoke.texi: Fix typos.
16333
4d2a42a1
UB
163342007-05-26 Uros Bizjak <ubizjak@gmail.com>
16335
16336 PR target/32065
16337 * target/i386/i386.c (ix86_expand_vector_move): Force SUBREGs of
16338 constants into memory. Expand unaligned memory references for
16339 SSE modes via x86_expand_vector_move_misalign() function.
16340
5b98f74d
UB
163412007-05-25 Uros Bizjak <ubizjak@gmail.com>
16342
16343 * config/i386/sse.md (*vec_extractv2di_1_sse2): Do not calculate
16344 "memory" attribute for "sseishft" type insn without operands[2].
16345
51bc54a6
DM
163462007-05-25 Dirk Mueller <dmueller@suse.de>
16347 Marcus Meissner <meissner@suse.de>
16348
16349 * doc/extend.texi (alloc_size): New attribute.
16350 * c-common.c (handle_alloc_size_attribute): New.
16351 * tree-object-size.c (alloc_object_size): Use alloc_size
16352 attribute, if available.
16353
fc6c9f75
L
163542007-05-25 H.J. Lu <hongjiu.lu@intel.com>
16355
16356 * config/i386/i386.c (__builtin_ia32_vec_ext_v2df): Mark it
16357 with MASK_SSE2.
16358 (__builtin_ia32_vec_ext_v2di): Likewise.
16359 (__builtin_ia32_vec_ext_v4si): Likewise.
16360 (__builtin_ia32_vec_ext_v8hi): Likewise.
16361 (__builtin_ia32_vec_ext_v16qi): Likewise.
16362 (__builtin_ia32_vec_set_v8hi): Likewise.
16363
77315816
L
163642007-05-25 H.J. Lu <hongjiu.lu@intel.com>
16365
16366 * config/i386/sse.md (*vec_extractv2di_1_sse2): Correct shift.
16367
25a65198
RS
163682007-05-25 Richard Sandiford <richard@codesourcery.com>
16369
16370 * config/arm/arm-protos.h (arm_encode_call_attribute): Delete.
16371 (arm_is_longcall_p): Rename to...
16372 (arm_is_long_call_p): ...this. Take a single tree argument and
16373 return a bool.
16374 * config/arm/arm.h (CALL_SHORT, CALL_LONG, CALL_NORMAL): Delete.
16375 (CUMULATIVE_ARGS): Remove call_cookie.
16376 (SHORT_CALL_FLAG_CHAR, LONG_CALL_FLAG_CHAR, ENCODED_SHORT_CALL_ATTR_P)
16377 (ENCODED_LONG_CALL_ATTR_P): Delete.
16378 (ARM_NAME_ENCODING_LENGTHS): Remove SHORT_CALL_FLAG_CHAR and
16379 LONG_CALL_FLAG_CHAR cases.
16380 (ARM_DECLARE_FUNCTION_SIZE): Delete.
16381 * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Don't use
16382 ARM_DECLARE_FUNCTION_SIZE.
16383 * config/arm/arm.c (arm_init_cumulative_args): Don't set call_cookie.
16384 (arm_function_arg): Return const0_rtx for VOIDmode arguments.
16385 (arm_encode_call_attribute, current_file_function_operand): Delete.
16386 (arm_function_in_section_p): New function.
16387 (arm_is_longcall_p): Rename to...
16388 (arm_is_long_call_p): ...this. Take the target function as a single
16389 argument and return a bool. Do not rely on call cookies. Check
16390 whether the target symbol is in the same section as the current
16391 function, not just the same compilation unit.
16392 (arm_function_ok_for_sibcall): Use arm_is_long_call_p.
16393 (arm_encode_section_info): Don't encode a call type.
16394 * config/arm/arm.md (call, call_value): Update calls to
16395 arm_is_long(_)call_p. Simplify logic.
16396 (*call_symbol, *call_value_symbol, *call_insn, *call_value_insn):
16397 Update calls to arm_is_long(_)call_p.
16398
88efe45a
RG
163992007-05-25 Richard Guenther <rguenther@suse.de>
16400
16401 PR tree-optimization/31982
16402 * tree-ssa-forwprop.c
16403 (forward_propagate_addr_into_variable_array_index): Handle arrays
16404 with element size one.
16405
03fd30b1
AP
164062007-05-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
16407
16408 * config/spu/spu.md (smulsi3_highpart): Unshare the rtl chain.
16409 (umulsi3_highpart): Likewise.
16410
88d1c2ad
ILT
164112007-05-24 Ian Lance Taylor <iant@google.com>
16412
16413 PR rtl-optimization/32069
16414 * regclass.c (regclass): Don't crash if the entry in regno_reg_rtx
16415 is NULL.
16416
a702045a
OW
164172007-05-24 Ollie Wild <aaw@google.com>
16418
16419 * doc/cpp.texi (Common Predefined Macros): Add __COUNTER__
16420 description.
16421
5da20cfe
RS
164222007-05-24 Richard Sandiford <rsandifo@nildram.co.uk>
16423
16424 * postreload-gcse.c (reg_changed_after_insn_p): New function.
16425 (oprs_unchanged_p): Use it to check all registers in a REG.
16426 (record_opr_changes): Look for clobbers in CALL_INSN_FUNCTION_USAGE.
16427 (reg_set_between_after_reload_p): Delete.
16428 (reg_used_between_after_reload_p): Likewise.
16429 (reg_set_or_used_since_bb_start): Likewise.
16430 (eliminate_partially_redundant_load): Use reg_changed_after_insn_p
16431 and reg_used_between_p instead of reg_set_or_used_since_bb_start.
16432 Use reg_set_between_p instead of reg_set_between_after_reload_p.
16433 * rtlanal.c (reg_set_p): Check whether REG overlaps
16434 regs_invalidated_by_call, rather than just checking the
16435 membership of REGNO (REG).
16436
bbc8a8dc
ZD
164372007-05-24 Zdenek Dvorak <dvorakz@suse.cz>
16438
16439 * doc/passes.texi: Document predictive commoning.
16440 * doc/invoke.texi (-fpredictive-commoning): Document.
16441 * opts.c (decode_options): Enable flag_predictive_commoning on -O3.
16442 * tree-ssa-loop-im.c (get_lsm_tmp_name): Export. Allow
16443 adding indices to the generated name.
16444 (schedule_sm): Pass 0 to get_lsm_tmp_name.
16445 * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Export.
16446 * tree-pretty-print.c (op_symbol_1): Renamed to ...
16447 (op_symbol_code): ... and exported.
16448 (dump_omp_clause, op_symbol): Use op_symbol_code
16449 instead of op_symbol_1.
16450 * tree-pass.h (pass_predcom): Declare.
16451 * timevar.def (TV_PREDCOM): New timevar.
16452 * tree-ssa-loop.c (run_tree_predictive_commoning,
16453 gate_tree_predictive_commoning, pass_predcom): New.
16454 * tree-data-ref.c (find_data_references_in_loop): Find the
16455 references in dominance order.
16456 (canonicalize_base_object_address): Ensure that the result has
16457 pointer type.
16458 (dr_analyze_innermost): Export.
16459 (create_data_ref): Code to fail for references with invariant
16460 address moved ...
16461 (find_data_references_in_stmt): ... here.
16462 * tree-data-ref.h (dr_analyze_innermost): Declare.
16463 * tree-affine.c: Include tree-gimple.h and hashtab.h.
16464 (aff_combination_find_elt, name_expansion_hash,
16465 name_expansion_eq, tree_to_aff_combination_expand,
16466 double_int_constant_multiple_p, aff_combination_constant_multiple_p):
16467 New functions.
16468 * tree-affine.h (aff_combination_constant_multiple_p,
16469 tree_to_aff_combination_expand): Declare.
16470 * tree-predcom.c: New file.
16471 * common.opt (fpredictive-commoning): New option.
16472 * tree-flow.h (op_symbol_code, tree_predictive_commoning,
16473 stmt_dominates_stmt_p, get_lsm_tmp_name): Declare.
16474 * Makefile.in (tree-predcom.o): Add.
16475 (tree-affine.o): Add TREE_GIMPLE_H dependency.
6ef5231b 16476 * passes.c (init_optimization_passes): Add dceloop after
bbc8a8dc
ZD
16477 copy propagation in loop optimizer. Add predictive commoning
16478 to loop optimizer passes.
16479
cb8b507b
L
164802007-05-24 H.J. Lu <hongjiu.lu@intel.com>
16481
16482 * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Correct
16483 default hook.
16484
9dbe7947
JH
164852007-05-24 Jan Hubicka <jh@suse.cz>
16486
956741d5
JH
16487 * gengenrtl.c (gendecl, gendef): Output the gens annotated for
16488 statistics.
16489 (genheader): Include statistics.h.
16490
9dbe7947
JH
16491 * doc/invoke.texi (-fdump-unnumbered): Update docs when line number
16492 notes are gone.
16493 * print-rtl.c (flag_dump_unnumbered): Update comments.
16494 (print_rtl): Fix my previous change.
16495 * emit-rtl.c (emit_note_before, emit_note_after): Clear out note
16496 specific data.
16497
561e8a90
ZD
164982007-05-24 Zdenek Dvorak <dvorakz@suse.cz>
16499
16500 PR middle-end/32018
16501 * tree-ssa-threadupdate.c (thread_through_loop_header): Use
16502 set_loop_copy.
16503 (thread_through_all_blocks): Call initialize_original_copy_tables
16504 and free_original_copy_tables.
16505 * cfgloopmanip.c (duplicate_loop, duplicate_loop_to_header_edge):
16506 Use set_loop_copy.
16507 * tree-cfg.c (tree_duplicate_sese_region): Ditto.
16508 * cfghooks.c (duplicate_block): Use get_loop_copy.
16509 * cfg.c: Include cfgloop.h.
16510 (loop_copy): New hash table.
16511 (initialize_original_copy_tables): Initialize loop_copy table.
16512 (free_original_copy_tables): Free loop_copy table.
16513 (copy_original_table_clear, copy_original_table_set,
16514 set_loop_copy, get_loop_copy): New functions.
16515 (set_bb_original, set_bb_copy): Use copy_original_table_set.
16516 * cfgloop.h (struct loop): Remove copy field.
16517 * Makefile.in (cfg.o): Add CFGLOOP_H dependency.
16518 * basic-block.h (set_loop_copy, get_loop_copy): Declare.
16519
66da42bc
L
165202007-05-24 H.J. Lu <hongjiu.lu@intel.com>
16521
16522 * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 for
16523 -msse/-msse2/-msse3.
16524
5691b85a
L
165252007-05-24 H.J. Lu <hongjiu.lu@intel.com>
16526
16527 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Mark
16528 __builtin_ia32_vec_set_v2di with MASK_64BIT.
16529
5234b8f5
DS
165302007-05-24 Danny Smith <dannysmith@users.sourceforge.net>
16531
16532 PR target/27067
16533 * doc/tm.texi (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Document.
16534 * targhooks.h (default_mangle_decl_assembler_name): Declare
16535 default hook.
16536 * targhooks.c (default_mangle_decl_assembler_name): Define
16537 default hook.
16538 * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) New. Set to
16539 default hook.
16540 * target.h (struct gcc_target): Add mangle_decl_assembler_name field.
16541 * langhooks.c (lhd_set_decl_assembler_name): Call
16542 targetm.mangle_decl_assembler_name for names with global scope.
16543
16544 * config/i386/cygming.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) Override
16545 default.
16546 (ASM_OUTPUT_DEF_FROM_DECLS): Simplify to use DECL_ASSEMBLER_NAME.
16547 * config/i386/i386-protos.h (i386_pe_mangle_decl_assembler_name):
16548 Declare.
16549 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
16550 New. Factored out of i386_pe_encode_section_info.
16551 (gen_stdcall_or_fastcall_suffix): Get name identifier as argument.
16552 Move check for prior decoration of stdcall
16553 symbols to i386_pe_encode_section_info.
16554 (i386_pe_encode_section_info): Adjust call to
16555 gen_stdcall_or_fastcall_suffix. Use
16556 i386_pe_maybe_mangle_decl_assembler_name, if needed.
16557 (i386_pe_mangle_decl_assembler_name): New. Wrap
16558 i386_pe_maybe_mangle_decl_assembler_name.
16559
1e204133
RAE
165602007-05-16 Rafael Avila de Espindola <espindola@google.com>
16561
16562 * c-common.c (c_common_signed_or_unsigned_type): Delay the check for
16563 INTEGRAL_TYPE_P and TYPE_UNSIGNED.
16564 * langhooks.c (get_signed_or_unsigned_type): Don't check for
16565 INTEGRAL_TYPE_P or TYPE_UNSIGNED.
16566 (lhd_signed_or_unsigned_type): Check for INTEGRAL_TYPE_P and
16567 TYPE_UNSIGNED.
16568
a38e0142
SL
165692007-05-23 Sandra Loosemore <sandra@codesourcery.com>
16570 Nigel Stephens <nigel@mips.com>
16571 Richard Sandiford <richard@codesourcery.com>
16572
16573 Fix up MIPS16 hard float and add support for complex.
16574
16575 * config/mips/mips.h (TARGET_HARD_FLOAT_ABI): New.
16576 (TARGET_SOFT_FLOAT_ABI): New.
16577 (TARGET_CPU_CPP_BUILTINS): Define __mips_hard_float and
16578 __mips_soft_float to reflect the ABI in use, not whether the
16579 FPU is directly accessible (e.g., in MIPS16 mode).
16580 (UNITS_PER_HWFPVALUE): Use TARGET_SOFT_FLOAT_ABI.
16581 (UNITS_PER_FPVALUE): Likewise.
16582
16583 * config/mips/mips.c (mips_expand_call): Remove redundant
16584 TARGET_MIPS16 check.
16585 (mips_arg_regno): New.
16586 (function_arg_advance): When setting bits in cum->fp_code for
16587 MIPS16, don't subtract 1 from cum->arg_number, since it is now
16588 zero-based.
16589 (function_arg): Use mips_arg_regno.
16590 (mips_return_mode_in_fpr_p): New.
16591 (mips16_call_stub_mode_suffix): New.
16592 (mips16_cfun_returns_in_fpr_p): New.
16593 (mips_save_reg_p): Use mips16_cfun_returns_in_fpr_p.
16594 (mips_output_function_prologue): Test mips16_hard_float, not
16595 !TARGET_SOFT_FLOAT, to decide when a function stub is required.
16596 (mips_expand_epilogue): Call MIPS16 helper routines to copy
16597 return value into a floating-point register.
16598 (mips_can_use_return_insn): Use mips16_cfun_returns_in_fpr_p.
16599 (mips_function_value): Rewrite to use mips_return_mode_in_fpr_p.
16600 (mips16_fp_args): Handle MIPS32r2 ISA which supports
16601 TARGET_FLOAT64, and use mfhc1/mthc1 to copy the most significant
16602 word of double arguments from or to the high bits of 64-bit
16603 floating point registers.
16604 (build_mips16_function_stub): Fill in DECL_RESULT for stubdecl.
16605 (mips16_fpret_double): New helper function.
16606 (build_mips16_call_stub): Use mips16_return_mode_in_fpr_p. Add
16607 support for complex modes. Fill in DECL_RESULT for stubdecl.
16608 (mips_init_libfuncs): Remove redundant TARGET_MIPS16 check.
16609
8536ebb5 16610 * config/mips/mips16.S
a38e0142
SL
16611 (RET, ARG1, ARG2): New.
16612 (MERGE_GPRf, MERGE_GPRt): New.
16613 (DELAYt, DELAYf): New.
16614 (MOVE_SF_BYTE0, MOVE_SI_BYTE0): New.
16615 (MOVE_SF_BYTE4, MOVE_SF_BYTE8): New.
16616 (MOVE_DF_BYTE0, MOVE_DF_BYTE8): New.
16617 (MOVE_SF_RET, MOVE_SC_RET, MOVE_DF_RET, MOVE_DC_RET, MOVE_SI_RET): New.
16618 (SFOP): Renamed to...
16619 (OPSF3): This, and macro-ified. Updated all uses.
16620 (SFOP2): Renamed to...
16621 (OPSF2): This, and macro-ified. Updated all uses.
16622 (SFCMP): Renamed to...
16623 (CMPSF): This, and macro-ified. Updated all uses.
16624 (SFREVCMP): Renamed to...
16625 (REVCMPSF): This, and macro-ified. Updated all uses.
16626 (__mips16_floatsisf, __mips16_fix_truncsfsi): Macro-ified.
16627 (LDDBL1, LDDBL2, RETDBL): Deleted.
16628 (DFOP): Renamed to...
16629 (OPDF3): This, and macro-ified. Updated all uses.
16630 (DFOP2): Renamed to...
16631 (OPDF2): This, and macro-ified. Updated all uses.
16632 (__mips16_extendsfdf2, __mips16_truncdfsf2): Macro-ified.
16633 (DFCMP): Renamed to...
16634 (CMPDF): This, and macro-ified. Updated all uses.
16635 (DFREVCMP): Renamed to...
16636 (REVCMPDF): This, and macro-ified. Updated all uses.
16637 (__mips16_floatsidf, __mips16_fix_truncdfsi): Macro-ified.
16638 (RET_FUNCTION): New.
16639 (__mips16_ret_sf, __mips16_ret_df): Macro-ified.
16640 (__mips16_ret_sc, __mips16_ret_dc): New.
16641 (STUB_ARGS_0, STUB_ARGS_1, STUB_ARGS_5, STUB_ARGS_9, STUB_ARGS_2,
16642 STUB_ARGS_6, STUB_ARGS_10): New.
16643 (CALL_STUB_NO_RET): New.
16644 (__mips16_call_stub_1): Macro-ified.
16645 (__mips16_call_stub_5): Macro-ified.
16646 (__mips16_call_stub_2): Macro-ified.
16647 (__mips16_call_stub_6): Macro-ified.
16648 (__mips16_call_stub_9): Macro-ified.
16649 (__mips16_call_stub_10): Macro-ified.
16650 (CALL_STUB_RET): New.
16651 (__mips16_call_stub_sf_0): Macro-ified.
16652 (__mips16_call_stub_sf_1): Macro-ified.
16653 (__mips16_call_stub_sf_5): Macro-ified.
16654 (__mips16_call_stub_sf_2): Macro-ified.
16655 (__mips16_call_stub_sf_6): Macro-ified.
16656 (__mips16_call_stub_sf_9): Macro-ified.
16657 (__mips16_call_stub_sf_10): Macro-ified.
16658 (__mips16_call_stub_df_0): Macro-ified.
16659 (__mips16_call_stub_df_1): Macro-ified.
16660 (__mips16_call_stub_df_5): Macro-ified.
16661 (__mips16_call_stub_df_2): Macro-ified.
16662 (__mips16_call_stub_df_6): Macro-ified.
16663 (__mips16_call_stub_df_9): Macro-ified.
16664 (__mips16_call_stub_df_10): Macro-ified.
16665 (__mips16_call_stub_sc_0): New.
16666 (__mips16_call_stub_sc_1): New.
16667 (__mips16_call_stub_sc_5): New.
16668 (__mips16_call_stub_sc_2): New.
16669 (__mips16_call_stub_sc_6): New.
16670 (__mips16_call_stub_sc_9): New.
16671 (__mips16_call_stub_sc_10): New.
16672 (__mips16_call_stub_dc_0): New.
16673 (__mips16_call_stub_dc_1): New.
16674 (__mips16_call_stub_dc_5): New.
16675 (__mips16_call_stub_dc_2): New.
16676 (__mips16_call_stub_dc_6): New.
16677 (__mips16_call_stub_dc_9): New.
16678 (__mips16_call_stub_dc_10): New.
8536ebb5 16679
a38e0142
SL
16680 * config/mips/t-elf (LIB1ASMFUNCS): Add MIPS16 floating-point stubs.
16681 * config/mips/t-isa3264 (LIB1ASMFUNCS): Likewise.
16682 * config/mips/t-r2900 (LIB1ASMFUNCS): Likewise.
16683
70f57af1
ILT
166842007-05-23 Ian Lance Taylor <iant@google.com>
16685
16686 * doc/invoke.texi (Invoking GCC): Document that the order of the
16687 -l option matters.
16688
6d0ceb76
CL
166892007-05-23 Chen Liqin <liqin@sunnorth.com.cn>
16690
16691 PR target/30987
dc675301
UB
16692 * config/score/misc.md (bitclr_c, bitset_c, bittgl_c): Remove.
16693 * config/score/predicate.md (const_pow2, const_npow2): Remove.
16694 * config/score/score.h (ASM_OUTPUT_EXTERNAL): Add ASM_OUTPUT_EXTERNAL
16695 undef.
16696
6d0ceb76 16697 PR target/30474
dc675301
UB
16698 * config/score/score.c (score_print_operand): Make sure that only
16699 lower bits are used.
8536ebb5 16700
b80cca7b
ILT
167012007-05-22 Ian Lance Taylor <iant@google.com>
16702
16703 * tree-vrp.c (avoid_overflow_infinity): New static function,
16704 broken out of set_value_range_to_value.
16705 (set_value_range_to_value): Call avoid_overflow_infinity.
16706 (extract_range_from_assert): Likewise.
16707
1809a520
AP
167082007-05-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
16709
16710 PR middle-end/31095
16711 * builtins.c (expand_builtin_memmove_args): Strip nops that don't
16712 change the type before looking for a COMPOUND_EXPR.
16713
1570a704
ILT
167142007-05-22 Ian Lance Taylor <iant@google.com>
16715
16716 * lower-subreg.c (decompose_multiword_subregs): If we change an
16717 insn, call remove_retval_note on it.
16718
09e18274
RS
167192007-05-22 Richard Sandiford <rsandifo@nildram.co.uk>
16720
16721 * regs.h (end_hard_regno): New function.
16722 (END_HARD_REGNO, END_REGNO): New macros.
16723 (add_to_hard_reg_set): New function.
16724 (remove_from_hard_reg_set): Likewise.
16725 (in_hard_reg_set_p): Likewise.
16726 (overlaps_hard_reg_set_p): Likewise.
16727 * bt-load.c (find_btr_reference): Use overlaps_hard_reg_set_p.
16728 (note_btr_set): Use END_HARD_REGNO.
16729 * caller-save.c (setup_save_areas): Use end_hard_regno.
16730 (mark_set_regs): Use END_HARD_REGNO.
16731 (add_stored_regs): Use end_hard_regno.
16732 (mark_referenced_regs): Use add_to_hard_reg_set.
16733 * combine.c (update_table_tick): Use END_REGNO.
16734 (record_value_for_reg): Likewise.
16735 (record_dead_and_set_regs): Likewise.
16736 (get_last_value_validate): Likewise.
16737 (use_crosses_set_p): Likewise.
16738 (reg_dead_at_p_1): Likewise.
16739 (reg_dead_at_p): Likewise.
16740 (mark_used_regs_combine): Use add_to_hard_reg_set.
16741 (move_deaths): Use END_HARD_REGNO.
16742 (reg_bitfield_target_p): Use end_hard_regno.
16743 (distribute_notes): Use END_HARD_REGNO.
16744 * cse.c (mention_regs): Use END_REGNO.
16745 (insert): Use add_to_hard_reg_set.
16746 (invalidate): Use END_HARD_REGNO.
16747 (invalidate_for_call): Likewise.
16748 (exp_equiv_p): Use END_REGNO.
16749 (cse_insn): Likewise.
16750 * cselib.c (cselib_invalidate_regno): Use end_hard_regno.
16751 * df-problems.c (df_urec_mark_reg_change): Use END_HARD_REGNO.
16752 * df-scan.c (df_ref_record): Use END_HARD_REGNO.
16753 * function.c (keep_stack_depressed): Use end_hard_regno.
16754 * global.c (global_alloc): Use end_hard_regno.
16755 (global_conflicts): Use add_to_hard_reg_set instead of
16756 mark_reg_live_nc.
16757 (find_reg): Likewise.
16758 (mark_reg_store): Likewise.
16759 (mark_reg_conflicts): Likewise.
16760 (mark_reg_death): Use remove_from_hard_reg_set.
16761 (mark_reg_live_nc): Delete.
16762 (set_preference): Use end_hard_regno.
16763 * local-alloc.c (mark_life): Use add_to_hard_reg_set and
16764 remove_from_hard_reg_set.
16765 (post_mark_life): Use add_to_hard_reg_set.
16766 * mode-switching.c (reg_dies): Use remove_from_hard_reg_set.
16767 (reg_becomes_live): Use add_to_hard_reg_set.
16768 * recog.c (reg_fits_class_p): Use in_hard_reg_set_p.
16769 (peep2_find_free_register): Use add_to_hard_reg_set.
16770 * reg-stack.c (convert_regs_exit): Use END_HARD_REGNO.
16771 * regclass.c (record_reg_classes): Use in_hard_reg_set_p.
16772 * regrename.c (note_sets): Use add_to_hard_reg_set.
16773 (clear_dead_regs): Use remove_from_hard_reg_set.
16774 (regrename_optimize): Use add_to_hard_reg_set.
16775 (find_oldest_value_reg): Use in_hard_reg_set_p.
16776 * reload.c (push_reload): Use in_hard_reg_set_p and end_hard_regno.
16777 (hard_reg_set_here_p): Use end_hard_regno.
16778 (decompose): Likewise.
16779 (reg_overlap_mentioned_for_reload_p): Use END_HARD_REGNO.
16780 (find_equiv_reg): Use in_hard_reg_set_p and end_hard_regno.
16781 * reload1.c (compute_use_by_pseudos): Use add_to_hard_reg_set.
16782 (mark_home_live): Use end_hard_regno.
16783 (spill_hard_reg): Likewise.
16784 (clear_reload_reg_in_use): Likewise.
16785 * reorg.c (delete_prior_computation): Use END_REGNO.
16786 * resource.c (update_live_status): Use END_HARD_REGNO.
16787 (mark_referenced_resources): Use add_to_hard_reg_set.
16788 (mark_set_resources): Likewise.
16789 (mark_target_live_regs): Likewise. Use remove_from_hard_reg_set.
16790 * rtlanal.c (refers_to_regno_p): Use END_REGNO.
16791 (reg_overlap_mentioned_p): Likewise.
16792 (dead_or_set_p): Likewise. Use an exclusive upper loop bound.
16793 (covers_regno_no_parallel_p): Use END_REGNO.
16794 (find_regno_note): Likewise.
16795 (find_reg_fusage): Use END_HARD_REGNO.
16796 * stmt.c (decl_overlaps_hard_reg_set_p): Use overlaps_hard_reg_set_p.
16797 * var-tracking.c (emit_note_insn_var_location): Use end_hard_regno.
16798
408bed3c
RS
167992007-05-22 Richard Sandiford <rsandifo@nildram.co.uk>
16800
16801 * mode-switching.c (reg_dies): Change type of second argument to
16802 "HARD_REG_SET *".
16803 (optimize_mode_switching): Update accordingly.
16804
56b138ae
RS
168052007-05-22 Richard Sandiford <richard@codesourcery.com>
16806
16807 * hard-reg-set.h (GO_IF_HARD_REG_SUBSET, GO_IF_HARD_REG_EQUAL): Delete
16808 in favor of...
16809 (hard_reg_subset_p, hard_reg_sets_equal_p, hard_reg_sets_intersect_p)
16810 (hard_reg_set_empty_p): ...these new functions.
16811 * bt-load.c (choose_btr): Use hard_reg_subset_p instead of
16812 GO_IF_HARD_REG_SUBSET.
16813 * cfgcleanup.c (old_insns_match_p): Use hard_reg_sets_equal_p
16814 instead of GO_IF_HARD_REG_EQUAL.
16815 * df-problems.c (df_urec_local_compute): Use hard_reg_set_empty_p
16816 instead of GO_IF_HARD_REG_EQUAL.
16817 * global.c (find_reg): Use hard_reg_set_empty_p instead of
16818 GO_IF_HARD_REG_SUBSET.
16819 (modify_reg_pav): Use hard_reg_set_empty_p instead of
16820 GO_IF_HARD_REG_EQUAL.
16821 * local-alloc.c (find_free_reg): Use hard_reg_subset_p instead
16822 of GO_IF_HARD_REG_SUBSET.
16823 * reg-stack.c (change_stack, convert_regs_1): Use hard_reg_sets_equal_p
16824 instead of GO_IF_HARD_REG_EQUAL.
16825 * regclass.c (init_reg_sets_1, reg_scan_mark_refs): Use
16826 hard_reg_subset_p instead of GO_IF_HARD_REG_SUBSET.
16827 (reg_classes_intersect_p): Use hard_reg_sets_intersect_p instead
16828 of GO_IF_HARD_REG_SUBSET,
16829 * reload1.c (finish_spills): Use hard_reg_subset_p instead of
16830 GO_IF_HARD_REG_SUBSET.
16831 * struct-equiv.c (death_notes_match_p): Use hard_reg_sets_equal_p
16832 instead of GO_IF_HARD_REG_EQUAL.
16833 * config/sh/sh.c (push_regs, calc_live_regs): Use
16834 hard_reg_sets_intersect_p instead of hard_regs_intersect_p.
16835 (hard_regs_intersect_p): Delete.
16836
ba2f32a9
JJ
168372007-05-22 Janis Johnson <janis187@us.ibm.com>
16838
16839 * doc/sourcebuild.texi (Test Directives) Add dg-message.
16840
9a5cee02
L
168412007-05-22 H.J. Lu <hongjiu.lu@intel.com>
16842 Richard Henderson <rth@redhat.com>
16843
16844 * config.gcc (i[34567]86-*-*): Add smmintrin.h to
16845 extra_headers.
16846 (x86_64-*-*): Likewise.
16847
16848 * i386/i386-modes.def (V2QI): New.
16849
16850 * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 and
16851 SSE4A.
16852 (override_options): Support SSE4.1.
16853 (IX86_BUILTIN_BLENDPD): New for SSE4.1.
16854 (IX86_BUILTIN_BLENDPS): Likewise.
16855 (IX86_BUILTIN_BLENDVPD): Likewise.
16856 (IX86_BUILTIN_BLENDVPS): Likewise.
16857 (IX86_BUILTIN_PBLENDVB128): Likewise.
16858 (IX86_BUILTIN_PBLENDW128): Likewise.
16859 (IX86_BUILTIN_DPPD): Likewise.
16860 (IX86_BUILTIN_DPPS): Likewise.
16861 (IX86_BUILTIN_INSERTPS128): Likewise.
16862 (IX86_BUILTIN_MOVNTDQA): Likewise.
16863 (IX86_BUILTIN_MPSADBW128): Likewise.
16864 (IX86_BUILTIN_PACKUSDW128): Likewise.
16865 (IX86_BUILTIN_PCMPEQQ): Likewise.
16866 (IX86_BUILTIN_PHMINPOSUW128): Likewise.
16867 (IX86_BUILTIN_PMAXSB128): Likewise.
16868 (IX86_BUILTIN_PMAXSD128): Likewise.
16869 (IX86_BUILTIN_PMAXUD128): Likewise.
16870 (IX86_BUILTIN_PMAXUW128): Likewise.
16871 (IX86_BUILTIN_PMINSB128): Likewise.
16872 (IX86_BUILTIN_PMINSD128): Likewise.
16873 (IX86_BUILTIN_PMINUD128): Likewise.
16874 (IX86_BUILTIN_PMINUW128): Likewise.
16875 (IX86_BUILTIN_PMOVSXBW128): Likewise.
16876 (IX86_BUILTIN_PMOVSXBD128): Likewise.
16877 (IX86_BUILTIN_PMOVSXBQ128): Likewise.
16878 (IX86_BUILTIN_PMOVSXWD128): Likewise.
16879 (IX86_BUILTIN_PMOVSXWQ128): Likewise.
16880 (IX86_BUILTIN_PMOVSXDQ128): Likewise.
16881 (IX86_BUILTIN_PMOVZXBW128): Likewise.
16882 (IX86_BUILTIN_PMOVZXBD128): Likewise.
16883 (IX86_BUILTIN_PMOVZXBQ128): Likewise.
16884 (IX86_BUILTIN_PMOVZXWD128): Likewise.
16885 (IX86_BUILTIN_PMOVZXWQ128): Likewise.
16886 (IX86_BUILTIN_PMOVZXDQ128): Likewise.
16887 (IX86_BUILTIN_PMULDQ128): Likewise.
16888 (IX86_BUILTIN_PMULLD128): Likewise.
16889 (IX86_BUILTIN_ROUNDPD): Likewise.
16890 (IX86_BUILTIN_ROUNDPS): Likewise.
16891 (IX86_BUILTIN_ROUNDSD): Likewise.
16892 (IX86_BUILTIN_ROUNDSS): Likewise.
16893 (IX86_BUILTIN_PTESTZ): Likewise.
16894 (IX86_BUILTIN_PTESTC): Likewise.
16895 (IX86_BUILTIN_PTESTNZC): Likewise.
16896 (IX86_BUILTIN_VEC_EXT_V16QI): Likewise.
16897 (IX86_BUILTIN_VEC_SET_V2DI): Likewise.
16898 (IX86_BUILTIN_VEC_SET_V4SF): Likewise.
16899 (IX86_BUILTIN_VEC_SET_V4SI): Likewise.
16900 (IX86_BUILTIN_VEC_SET_V16QI): Likewise.
16901 (bdesc_ptest): New.
16902 (bdesc_sse_3arg): Likewise.
16903 (bdesc_2arg): Likewise.
16904 (bdesc_1arg): Likewise.
16905 (ix86_init_mmx_sse_builtins): Support SSE4.1. Handle SSE builtins
16906 with 3 args.
16907 (ix86_expand_sse_4_operands_builtin): New.
16908 (ix86_expand_unop_builtin): Support 2 arg builtins with a constant
16909 smaller than 8 bits as the 2nd arg.
16910 (ix86_expand_sse_ptest): New.
16911 (ix86_expand_builtin): Support SSE4.1. Support 3 arg SSE builtins.
16912 (ix86_expand_vector_set): Support SSE4.1.
16913 (ix86_expand_vector_extract): Likewise.
16914
16915 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
16916 __SSE4_1__ for -msse4.1.
16917
16918 * config/i386/i386.md (UNSPEC_BLENDV): New for SSE4.1.
16919 (UNSPEC_INSERTPS): Likewise.
16920 (UNSPEC_DP): Likewise.
16921 (UNSPEC_MOVNTDQA): Likewise.
16922 (UNSPEC_MPSADBW): Likewise.
16923 (UNSPEC_PHMINPOSUW): Likewise.
16924 (UNSPEC_PTEST): Likewise.
16925 (UNSPEC_ROUNDP): Likewise.
16926 (UNSPEC_ROUNDS): Likewise.
16927
16928 * config/i386/i386.opt (msse4.1): New for SSE4.1.
16929
16930 * config/i386/predicates.md (const_pow2_1_to_2_operand): New.
16931 (const_pow2_1_to_32768_operand): Likewise.
16932
16933 * config/i386/smmintrin.h: New. The SSE4.1 intrinsic header
16934 file.
16935
16936 * config/i386/sse.md (*vec_setv4sf_sse4_1): New pattern for
16937 SSE4.1.
16938 (sse4_1_insertps): Likewise.
16939 (*sse4_1_extractps): Likewise.
16940 (sse4_1_ptest): Likewise.
16941 (sse4_1_mulv2siv2di3): Likewise.
16942 (*sse4_1_mulv4si3): Likewise.
16943 (*sse4_1_smax<mode>3): Likewise.
16944 (*sse4_1_umax<mode>3): Likewise.
16945 (*sse4_1_smin<mode>3): Likewise.
16946 (*sse4_1_umin<mode>3): Likewise.
16947 (sse4_1_eqv2di3): Likewise.
16948 (*sse4_1_pinsrb): Likewise.
16949 (*sse4_1_pinsrd): Likewise.
16950 (*sse4_1_pinsrq): Likewise.
16951 (*sse4_1_pextrb): Likewise.
16952 (*sse4_1_pextrb_memory): Likewise.
16953 (*sse4_1_pextrw_memory): Likewise.
16954 (*sse4_1_pextrq): Likewise.
16955 (sse4_1_blendpd): Likewise.
16956 (sse4_1_blendps): Likewise.
16957 (sse4_1_blendvpd): Likewise.
16958 (sse4_1_blendvps): Likewise.
16959 (sse4_1_dppd): Likewise.
16960 (sse4_1_dpps): Likewise.
16961 (sse4_1_movntdqa): Likewise.
16962 (sse4_1_mpsadbw): Likewise.
16963 (sse4_1_packusdw): Likewise.
16964 (sse4_1_pblendvb): Likewise.
16965 (sse4_1_pblendw): Likewise.
16966 (sse4_1_phminposuw): Likewise.
16967 (sse4_1_extendv8qiv8hi2): Likewise.
16968 (*sse4_1_extendv8qiv8hi2): Likewise.
16969 (sse4_1_extendv4qiv4si2): Likewise.
16970 (*sse4_1_extendv4qiv4si2): Likewise.
16971 (sse4_1_extendv2qiv2di2): Likewise.
16972 (*sse4_1_extendv2qiv2di2): Likewise.
16973 (sse4_1_extendv4hiv4si2): Likewise.
16974 (*sse4_1_extendv4hiv4si2): Likewise.
16975 (sse4_1_extendv2hiv2di2): Likewise.
16976 (*sse4_1_extendv2hiv2di2): Likewise.
16977 (sse4_1_extendv2siv2di2): Likewise.
16978 (*sse4_1_extendv2siv2di2): Likewise.
16979 (sse4_1_zero_extendv8qiv8hi2): Likewise.
16980 (*sse4_1_zero_extendv8qiv8hi2): Likewise.
16981 (sse4_1_zero_extendv4qiv4si2): Likewise.
16982 (*sse4_1_zero_extendv4qiv4si2): Likewise.
16983 (sse4_1_zero_extendv2qiv2di2): Likewise.
16984 (*sse4_1_zero_extendv2qiv2di2): Likewise.
16985 (sse4_1_zero_extendv4hiv4si2): Likewise.
16986 (*sse4_1_zero_extendv4hiv4si2): Likewise.
16987 (sse4_1_zero_extendv2hiv2di2): Likewise.
16988 (*sse4_1_zero_extendv2hiv2di2): Likewise.
16989 (sse4_1_zero_extendv2siv2di2): Likewise.
16990 (*sse4_1_zero_extendv2siv2di2): Likewise.
16991 (sse4_1_roundpd): Likewise.
16992 (sse4_1_roundps): Likewise.
16993 (sse4_1_roundsd): Likewise.
16994 (sse4_1_roundss): Likewise.
16995 (mulv4si3): Don't expand for SSE4.1.
16996 (smax<mode>3): Likewise.
16997 (umaxv4si3): Likewise.
16998 (uminv16qi3): Likewise.
16999 (umin<mode>3): Likewise.
17000 (umaxv8hi3): Rewrite. Only enabled for SSE4.1.
17001
17002 * doc/extend.texi: Document SSE4.1 built-in functions.
17003
17004 * doc/invoke.texi: Document -msse4.1.
17005
bebb3a98
NS
170062007-05-22 Nathan Sidwell <nathan@codesourcery.com>
17007
17008 * config/m68k/linux.h (ASM_SPEC): Add asm_pcrel_spec.
17009 * config/m68k/m68k-none.h (ASM_SPEC): Don't override here.
17010 * config/m68k/m68k.h (ASM_PCREL_SPEC): New.
17011 (ASM_SPEC): Add asm_pcrel_spec.
17012 (EXTRA_SPECS): Add asm_pcrel_spec.
17013
c076e75f
DD
170142007-05-21 David Daney <ddaney@avtrex.com>
17015
17016 * doc/install.texi (Building a cross compiler): Add requirements
17017 for Java cross compiler.
17018
a50411de
AP
170192007-05-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
17020
17021 PR middle-end/31995
17022 * tree-chrec.c (evolution_function_is_affine_multivariate_p):
17023 Add loopno argument. Use evolution_function_is_invariant_rec_p
17024 instead of evolution_function_is_constant_p.
17025 Update calls to evolution_function_is_affine_multivariate_p.
dc675301 17026 * tree-chrec.h (evolution_function_is_affine_multivariate_p):
a50411de
AP
17027 Add loopno argument.
17028 * tree-scalar-evolution.c (gather_chrec_stats): Call
dc675301 17029 evolution_function_is_affine_multivariate_p with a loop
a50411de
AP
17030 number of 0.
17031 * tree-data-ref.c (analyze_miv_subscript): Likewise.
17032 (analyze_overlapping_iterations): Likewise.
dc675301 17033 (access_functions_are_affine_or_constant_p): Likewise.
a50411de
AP
17034 (build_classic_dist_vector_1): If the access functions
17035 are equal, don't do anything.
17036
60c4429c 170372007-05-21 Paolo Bonzini <bonzini@gnu.org>
dc675301 17038 Paolo Carlini <pcarlini@suse.de>
60c4429c
PB
17039 Uros Bizjak <ubizjak@gmail.com>
17040
17041 * c-cppbuiltin.c (c_cpp_builtins): Define
17042 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
17043 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8,
17044 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16, if appropriate.
17045 * doc/cpp.texi ([Standard Predefined Macros]): Document.
17046
ccd3cc09
MS
170472007-05-21 Mike Stump <mrs@apple.com>
17048
0f17a91f 17049 * config/darwin.h (LINK_COMMAND_SPEC): Add .cxx/.cp for dsymutil
ccd3cc09
MS
17050 handling as well.
17051 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
17052
32fe15ec
UB
170532007-05-21 Uros Bizjak <ubizjak@gmail.com>
17054
17055 * config/i386/tmmintrin.h (_mm_alignr_epi8): Provide macro
17056 implementation if __OPTIMIZE__ is not defined.
17057 (_mm_alignr_pi8): Ditto.
17058 * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
17059 (_mm_inserti_si64): Ditto.
17060 * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
17061 (_mm_slli_epi16): Ditto.
17062 (_mm_slli_epi32): Ditto.
17063 (_mm_slli_epi64): Ditto.
17064 (_mm_srai_epi16): Ditto.
17065 (_mm_srai_epi32): Ditto.
17066 (_mm_srli_si128): Ditto.
17067 (_mm_slli_si128): Ditto.
17068 (_mm_srli_epi16): Ditto.
17069 (_mm_srli_epi32): Ditto.
17070 (_mm_srli_epi64): Ditto.
17071 (_mm_extract_epi16): Ditto.
17072 (_mm_insert_epi16): Ditto.
17073 (_mm_shufflehi_epi16): Ditto.
17074 (_mm_shufflelo_epi16): Ditto.
17075 (_mm_shuffle_epi32): Ditto.
17076 * config/i386/xmmintrin.h (_mm_extract_pi16): Ditto.
17077 (_m_pextrw): Ditto.
17078 (_mm_insert_pi16): Ditto.
17079 (_m_pinsrw): Ditto.
17080 (_mm_shuffle_pi16): Ditto.
17081 (_m_pshufw): Ditto.
17082 (_mm_shufle_ps): Ditto.
17083 (_mm_prefetch): Ditto.
17084
4d8a8a0a
AK
170852007-05-21 Andreas Krebbel <krebbel1@de.ibm.com>
17086
17087 * defaults.h (IBM_FLOAT_FORMAT): Macro definition removed.
17088 * doc/tm.texi (IBM_FLOAT_FORMAT): Documentation entry removed.
17089 * real.c (encode_i370_single, decode_i370_single,
17090 encode_i370_double, decode_i370_double): Functions removed.
17091 (i370_single_format, i370_double_format): Initializations removed.
17092 (real_maxval, round_for_format, exact_real_truncate, significand_size):
17093 Consider the log2_b field to always be one.
17094 (ieee_single_format, mips_single_format, coldfire_single_format,
17095 ieee_double_format, mips_double_format, coldfire_double_format,
17096 ieee_extended_motorola_format, ieee_extended_intel_96_format,
17097 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
17098 ibm_extended_format, mips_extended_format, ieee_quad_format,
17099 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
17100 decimal_single_format, decimal_double_format, decimal_quad_format,
17101 c4x_single_format, c4x_extended_format, real_internal_format): Remove
17102 initialization of log2_b.
7e08fa35
UB
17103 * real.h (i370_single_format, i370_double_format): Declarations
17104 removed.
4d8a8a0a
AK
17105 * c-cppbuiltin.c (builtin_define_float_constants): Consider the log2_b
17106 field to always be one.
17107
740aeb38
AS
171082007-05-21 Andreas Schwab <schwab@suse.de>
17109
17110 * config/ia64/ia64.c (emit_predicate_relation_info): Fix use of
17111 NOTE_INSN_BASIC_BLOCK_P.
17112 (process_for_unwind_directive): Likewise.
17113
ecaebb9e
NS
171142007-05-21 Nathan Sidwell <nathan@codesourcery.com>
17115
17116 * builtins.c (expand_builtin_setjmp_setup): Update comment.
17117 * function.h (struct function): Move va_list_gpr_size,
17118 va_list_fpr_size, function_frequency to front of bitfields. Add
17119 calls_unwind_init.
17120 (current_function_calls_unwind_init): New.
17121 * except.c (expand_builtin_unwind_init): Set
17122 current_function_calls_unwind_init not
17123 current_function_has_nonlocal_label.
17124 * reload1.c (has_nonexceptional_receiver): New.
17125 (reload): Use it and current_function_calls_unwind_init to
17126 determine whether call-saved regs must be saved.
17127
a38e7aa5
JH
171282007-05-20 Jan Hubicka <jh@suse.cz>
17129
17130 * gengtype.c (adjust_field_rtx_def): Use NOTE_KIND instead of
17131 NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
17132 * ddg.c (create_ddg): LIkewise.
7e08fa35 17133 * final.c (final): Remove hunk moving line number notes around since
a38e7aa5
JH
17134 they are no longer present at this stage.
17135 (final_scan_insn): Use NOTE_KIND instead of
17136 NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
17137 (output_asm_label): Likewise.
17138 * reorg.c (dbr_schedule): Likewise.
17139 * haifa-sched.c (unlink_other_notes): Likewise.
17140 * mode-switching.c (optimize_mode_switching): Likewise.
17141 * graph.c (start_bb): Likewise.
17142 * rtl.def (NOTE): Update description.
17143 * jump.c (squeeze_notes): Delete.
17144 (mark_jump_label): Use NOTE_KIND instead of NOTE_LINE_NUMBER; use
17145 NOTE_INSN_BASIC_BLOCK_P when possible.
17146 * ifcvt.c (dead_or_predicable): Remove call of squeeze_notes.
17147 * dwarf2out.c (gen_label_die): Use NOTE_KIND instead of
dc675301 17148 NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
a38e7aa5
JH
17149 (dwarf2out_var_location): Likewise.
17150 * cfgbuild.c (make_edges): Likewise.
17151 (find_basic_blocks_1): Likewise.
17152 * function.c (reorder_blocks_1): Likewise.
17153 (epilogue_done): Likewise.
17154 (reposition_prologue_and_epilogue_notes): Likewise.
7e08fa35
UB
17155 * print-rtl.c (print_rtx): Likewise; drop code for printing
17156 line number notes.
a38e7aa5
JH
17157 (print_rtl): Likewise.
17158 (print_rtl_single): Likewise.
17159 * gcse.c (insert_insn_start_bb): Likewise.
17160 * alias.c (init_alias_analysis): Likewise.
17161 * calls.c (fixup_tail_calls): Likewise.
17162 * except.c (sjlj_emit_function_enter): Likewise.
17163 * emit-rtl.c (add_insn_after): Likeiwse.
17164 (emit_label_before): Likewise.
17165 (emit_label_after): Likewise.
17166 (emit_note_before, emit_note_after, emit_note): Update
17167 parameter to be enum insn_note; do not deal with source
17168 files.
17169 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps):
17170 Use NOTE_KIND instead of NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P
17171 when possible.
17172 (merge_blocks_move_successor_nojumps): Simplify now when
17173 we don't have BLOCK notes.
17174 (try_optimize_cfg): Likewise.
17175 * cfglayout.c (skip_insns_after_block): Likewise.
17176 (record_effective_endpoints): Likewise.
17177 (duplicate_insn_chain): Likewise.
17178 * varasm.c (output_constant_pool_1): Likewise.
17179 * sched-deps.c (sched_analyze): Likewise.
17180 * rtl.c (NOTE_INSN_MAX_isnt_negative_adjust_NOTE_INSN_BIAS):
17181 Exterminate.
17182 (note_insn_name): Simplify now when NOTE_INSN_BIAS is gone.
17183 * rtl.h (NOTE_SOURCE_LOCATION, NOTE_EXPANDED_LOCATION): Exterminate.
17184 (SET_INSN_DELETED): Simplify.
17185 (NOTE_LINE_NUMBER): Exterminate.
17186 (NOTE_LINE_KIND): New.
17187 (NOTE_INSN_BASIC_BLOCK_P): Update.
17188 (enum insn_note): Simplify.
17189 (GET_NOTE_INSN_NAME) Simplify.
17190 (emit_note_before, emit_note_after, emit_note): Update prototype.
17191 (squeeze_notes): Remove.
17192 * sched-int.h (NOTE_NOT_BB_P): Update.
17193 * resource.c (mark_target_live_regs): Update.
17194 * sched-rgn.c (debug_dependencies): Update.
17195 * sched-vis.c (print_insn): Update.
17196 * config/alpha/alpha.c (alpha_handle_trap_shadows): Update.
17197 * config/i386/i386.c (ix86_output_function_epilogue): Update.
17198 * config/sh/sh.c (sh_adjust_unroll_max): Function dead since gcc 4.0.0.
17199 (TARGET_ADJUST_UNROLL_MAX): Likewise.
17200 (split_branches): Update.
17201 (sh_optimize_target_register_callee_saved): Remove hunk dead since gcc
17202 4.0.0.
17203 (sh_adjust_unroll_max): Exterminate.
17204 * config/c4x/c4x.c (c4x_reorg): Use SET_INSN_DELETED.
17205 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Likewise.
17206 (m68hc11_reorg): Likewise.
17207 * config/ia64/ia64.c (emit_insn_group_barriers): Update.
17208 (emit_predicate_relation_info): Update.
17209 (process_for_unwind_directive): Update.
17210 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update.
17211 (output_call): Update.
17212 * config/pa/pa.c (output_lbranch): Update.
17213 (output_millicode_call): Update.
17214 (output_call): Update.
17215 (pa_combine_instructions): Update.
17216 * config/mips/mips.c (mips16_gp_pseudo_reg): Update.
17217 * config/bfin/bfin.c (gen_one_bundle): Update.
17218 * cfgrtl.c (can_delete_note_p): Update.
17219 (delete_insn): Update.
17220 (rtl_merge_blocks): Update.
17221 (commit_one_edge_insertion): Update.
17222 (rtl_verify_flow_info): Update.
17223 * stmt.c (expand_case): Do not call squeeze_notes.
17224
f6aa72dd 172252007-05-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8536ebb5 17226
f6aa72dd
MLI
17227 PR middle-end/7651
17228 PR c++/11856
17229 PR c/12963
17230 PR c/23587
17231 PR other/29694
17232 * c.opt (Wtype-limits): New.
17233 * doc/invoke.texi (Wtype-limits): Document it.
17234 (Wextra): Enabled by -Wextra.
17235 * c-opts.c (c_common_post_options): Enabled by -Wextra.
17236 * c-common.c (shorten_compare): Warn with Wtype-limits.
17237
aac8bf80 172382007-05-20 Uros Bizjak <ubizjak@gmail.com>
46fb8f6b
UB
17239
17240 * config/i386/tmmintrin.h (_mm_alignr_epi32): Implement as always
17241 inlined function, not as a macro.
17242 (_mm_alignr_pi8): Ditto.
17243 * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
17244 (_mm_inserti_si64): Ditto.
17245 * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
17246 (_mm_extract_epi16): Ditto.
17247 (_mm_insert_epi16): Ditto.
17248 (_mm_shufflehi_epi16): Ditto.
17249 (_mm_shufflelo_epi16): Ditto.
17250 (_mm_shuffle_epi32): Ditto.
17251 * config/i386/xmmintrin.h (_mm_set_ss): Use 0.0f for float constant.
17252 * config/386/mm3dnow.h: Add __attribute__((__always_inline__)) to
17253 all functions.
17254 (_m_from_float): Add __extension__ to conversion. Use 0.0f for
17255 float constant.
17256 (_m_to_float): Use C89 compatible assignment.
17257
d0c9d431 172582007-05-20 Martin Michlmayr <tbm@cyrius.com>
dde27bba
MM
17259
17260 PR target/32007
17261 * config/arm/lib1funcs.asm: Define __ARM_ARCH__ on v2/v3 machines.
17262
aac8bf80 172632007-05-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
ffd5f276
MLI
17264
17265 PR middle-end/7651
17266 * doc/invoke.texi (Wreturn-type): Complete description.
17267 (Wextra): Delete item about return-type warning.
17268 * c-decl.c: Delete redundant Wextra warning.
8536ebb5 17269
aac8bf80 172702007-05-20 Uros Bizjak <ubizjak@gmail.com>
376a4c05
UB
17271
17272 PR target/31585
17273 * config/i386/pmmintrin.h: Do not include xmmintrin.h
17274 * config/i386/xmmintrin.h (_mm_extract_pi16): Implement as always
17275 inlined function, not as a macro.
17276 (_mm_prefetch): Ditto.
17277 (_m_pextrw): Ditto.
17278 (_mm_insert_pi16): Ditto.
17279 (_m_pinsrw): Ditto.
17280 (_mm_shuffle_pi16): Ditto. Add const to __N argument.
17281 (_m_pshufw): Ditto. Add const to __N argument.
17282 (_mm_shufle_ps): Ditto. Add const to __mask argument.
17283 * config/i386/emmintrin.h (_mm_slli_epi16): Add const to __B argument.
17284 (_mm_slli_epi32): Ditto.
7e08fa35
UB
17285 (_mm_srli_si128): Implement as always inlined function, not as a
17286 macro. Add __inline to function declaration.
376a4c05
UB
17287 (_mm_slli_si128): Ditto.
17288
e9d41616
UB
172892007-05-19 Uros Bizjak <ubizjak@gmail.com>
17290
17291 * config/i386/sfp-machine.h (FP_EX_INVALID, FP_EX_DENORM,
17292 FP_EXP_DIVZERO, FP_EX_OVERFLOW, FP_EX_UNDERFLOW, FP_EX_INEXACT):
17293 New constants.
17294 (struct fenv): New structure.
17295 (FP_HANDLE_EXCEPTIONS): New define.
17296 (FP_RND_NEAREST, FP_RND_ZERO, FP_RND_PINF, FP_RND_MINF): New constants.
17297 (_FP_DECL_EXP): New define.
17298 (FP_INIT_ROUNDMODE): New define.
17299 (FP_ROUNDMODE): New define.
17300
7060db96
MLI
173012007-05-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
17302
17303 * doc/invoke.texi (Warning Options): Add -Wconversion-sign.
17304 (Wconversion): Update description.
17305 (Wconversion-sign): New.
17306 * c.opt (Wconversion-sign): New.
17307 * c-opts.c (c_common_post_options): Uninitialized Wconversion-sign
17308 means disabled for C++. Otherwise, take the status of Wconversion.
17309 * c-common.c (conversion_warning): Warn with either Wconversion or
17310 Wconversion-sign.
17311 (warnings_for_convert_and_check): Conditions are already checked by
17312 conversion_warning.
17313 (convert_and_check): Don't check warnings if the conversion failed.
17314
4fc2b4ff 173152007-05-19 Andy Hutchinson <HutchinsonAndy@netscape.net>
e9d41616 17316 Anatoly Sokolov <aesok@dol.ru>
4fc2b4ff 17317
8536ebb5 17318 * config/avr/avr-protos.h (expand_prologue, expand_epilogue,
4fc2b4ff
AH
17319 avr_epilogue_uses) : Add declaration.
17320 * config/avr/predicates.md (avr_sp_immediate_operand): New predicate.
17321 * config/avr/constraints.md (R): New constraint.
8536ebb5 17322 config/avr/avr.md (SREG_ADDR, UNSPEC_SEI, UNSPEC_CLI,
4fc2b4ff
AH
17323 UNSPECV_PROLOGUE_SAVES, UNSPECV_EPILOGUE_RESTORES): New constants.
17324 (*pop1, *pop2, *pop3, *pop4, *pop5): Combine into ...
17325 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): ... these patterns.
8536ebb5 17326 (*movhi_sp, popqi, pophi, enable_interrupt, disable_interrupt,
4fc2b4ff 17327 call_prologue_saves, epilogue_restores, return_from_epilogue,
8536ebb5 17328 return_from_main_epilogue, return_from_interrupt_epilogue,
4fc2b4ff
AH
17329 return_from_naked_epilogue, prologue, epilogue): New patterns.
17330 (jump): Handle symbol reference.
8536ebb5
EC
17331 * config/avr/avr.c (out_adj_frame_ptr, out_set_stack_ptr,
17332 avr_output_function_prologue, avr_output_function_epilogue): Remove
4fc2b4ff 17333 functions.
8536ebb5
EC
17334 (avr_init_machine_status, expand_prologue, expand_epilogue,
17335 avr_asm_function_end_prologue, avr_epilogue_uses,
4fc2b4ff 17336 avr_asm_function_begin_epilogue): New functions.
8536ebb5 17337 (prologue_size, epilogue_size, jump_tables_size): Remove global
4fc2b4ff
AH
17338 variables.
17339 (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
17340 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
17341 (TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): Define.
17342 (avr_override_options): Initialise init_machine_status.
17343 (output_movhi): Handle all stack pointer loads.
17344 (out_movqi_r_mr, out_movqi_mr_r): Handle SREG_ADDR address.
17345 (avr_output_addr_vec_elt): Do not use variable jump_tables_size.
17346 * config/avr/avr.h (AVR_2_BYTE_PC, AVR_3_BYTE_PC): New.
17347 (EPILOGUE_USES) Redefine.
17348 (machine_function) Declare.
17349
6de36441
RS
173502007-05-19 Richard Sandiford <richard@codesourcery.com>
17351
17352 * config/mips/mips.c (mips_offset_within_alignment_p): Tweak comment.
17353 Use a single return statement.
17354
752b7d38
KG
173552007-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17356
17357 PR middle-end/30250
17358 * builtins.c (do_mpfr_lgamma_r): New.
17359 (fold_builtin_2): Handle builtin gamma_r/lgamma_r.
17360 * tree.h (CASE_FLT_FN_REENT): New.
17361
ca0d5e02
GK
173622007-05-18 Geoffrey Keating <geoffk@apple.com>
17363
8d5b1b67
GK
17364 * dwarf2out.c (print_die): Use '%ld' not '%lu' to print a 'long'.
17365 (output_die): Use 'unsigned long' with %x.
17366 * sched-vis.c (print_value): Use 'unsigned HOST_WIDE_INT' and
17367 HOST_WIDE_INT_PRINT_HEX to print HOST_WIDE_INT.
17368 * tree-dump.c (dump_pointer): Use 'unsigned long' for %lx.
17369
ca0d5e02
GK
17370 * unwind-dw2.c (uw_identify_context): Use the CFA, not the IP.
17371
f8024378
L
173722007-05-18 H.J. Lu <hongjiu.lu@intel.com>
17373
17374 PR target/31989
17375 PR target/31681
17376 PR target/31666
17377 * config/i386/i386.c (init_cumulative_args): Set maybe_vaarg to
17378 true if function has no argument.
17379
8b5fb3a3
DD
173802007-05-18 DJ Delorie <dj@redhat.com>
17381
17382 * config/mips/mips.c (mips_offset_within_alignment_p): New.
17383 (mips_symbolic_constant_p): Call it for TPREL and DTPREL symbols.
17384
e7e0aaec
UB
173852007-05-18 Uros Bizjak <ubizjak@gmail.com>
17386
17387 * longlong.h (__x86_64__): Add definitions for add_ssaaaa,
17388 sub_ddmmss, umul_ppmm, udiv_qrnnd, count_leading_zeros and
17389 count_trailing_zeros.
17390 (__i386__): Implement count_leading_zeros using __builtin_clz().
17391 Implement count_trailing_zeros usign __builtin_ctz().
17392
10d7f5f3
RS
173932007-05-18 Richard Sandiford <richard@codesourcery.com>
17394
17395 * config/i386/vxworks.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine.
17396
4bcc9de5
UB
173972007-05-18 Uros Bizjak <ubizjak@gmail.com>
17398
8ecaacaf 17399 PR middle-end/31344
4bcc9de5
UB
17400 * expr.c (emit_move_change_mode): Change mode of push operands here.
17401
b60b4711
ILT
174022007-05-17 Ian Lance Taylor <iant@google.com>
17403
17404 PR tree-optimization/31953
17405 * tree-vrp.c (set_value_range_to_value): Add equiv parameter.
17406 Change all callers.
17407 (set_value_range_to_null): Call set_value_range_to_value.
17408 (extract_range_from_comparison): Likewise.
17409
550b3187
KG
174102007-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17411
0968bb3d
KG
17412 * toplev.c (print_version): Output GMP/MPFR version info.
17413
bf460eec
KG
17414 * builtins.c (CASE_MATHFN_REENT): New macro.
17415 (mathfn_built_in): Use it.
17416 * builtins.def (BUILT_IN_GAMMA_R, BUILT_IN_GAMMAF_R,
17417 BUILT_IN_GAMMAL_R, BUILT_IN_LGAMMA_R, BUILT_IN_LGAMMAF_R,
17418 BUILT_IN_LGAMMAL_R): New.
17419 * doc/extend.texi: Document new builtins.
17420
ea91f957
KG
17421 PR middle-end/31796
17422 * builtins.c (do_mpfr_remquo): New.
17423 (fold_builtin_2): Handle BUILT_IN_DREM/BUILT_IN_REMAINDER.
17424 (fold_builtin_3): Handle BUILT_IN_REMQUO.
17425
fd2ef596
KG
17426 PR middle-end/30251
17427 * builtins.c (fold_builtin_1): Handle y0, y1.
17428 (fold_builtin_2): Handle yn.
17429
550b3187
KG
17430 PR middle-end/30251
17431 * builtins.c (do_mpfr_bessel_n): New.
17432 (fold_builtin_1): Handle BUILT_IN_J0 and BUILT_IN_J1.
17433 (fold_builtin_2): Handle BUILT_IN_JN.
17434
a7d0b2d8
DS
174352007-05-17 Danny Smith <dannysmith@users.sourceforge.net>
17436
17437 PR target/31965
17438 * config/i386/mingw32.h (_INTEGRAL_MAX_BITS): Define builtin as
17439 TYPE_PRECISION (intmax_type_node).
17440
0fa4cb7d
SE
174412007-05-17 Steve Ellcey <sje@cup.hp.com>
17442
17443 PR target/31850
17444 * reload.c (subst_reloads): Remove checking.
17445
4eff8045
EB
174462007-05-17 Eric Botcazou <ebotcazou@libertysurf.fr>
17447
17448 PR rtl-optimization/31691
17449 * combine.c (simplify_set): Build a new src pattern instead of
17450 substituting its operands in the COMPARE case.
17451
b02b9b53
ZD
174522007-05-17 Zdenek Dvorak <dvorakz@suse.cz>
17453
17454 * tree-vrp.c (finalize_jump_threads): Do not care about dominance info.
17455 (execute_vrp): Preserve loops through jump threading.
17456 * tree-ssa-threadupdate.c (thread_single_edge,
17457 dbds_continue_enumeration_p, determine_bb_domination_status,
17458 thread_through_loop_header): New functions.
17459 (create_edge_and_update_destination_phis,
17460 create_edge_and_update_destination_phis): Set loops for the new blocks.
17461 (prune_undesirable_thread_requests): Removed.
17462 (redirect_edges): Do not pretend that redirect_edge_and_branch can
17463 create new blocks.
17464 (thread_block): Do not call prune_undesirable_thread_requests.
17465 Update loops.
17466 (mark_threaded_blocks): Select edges to thread here.
17467 (thread_through_all_blocks): Take may_peel_loop_headers argument.
17468 Thread edges through loop headers independently.
17469 * cfgloopmanip.c (create_preheader, mfb_keep_just): Export.
17470 * tree-pass.h (TODO_mark_first_instance): New.
17471 (first_pass_instance): Declare.
17472 * cfghooks.c (duplicate_block): Put the block to the original loop
17473 if copy is not specified.
17474 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Preserve loops through
17475 jump threading. Pass may_peel_loop_headers to
17476 thread_through_all_blocks according to first_pass_instance.
17477 * cfgloop.h (create_preheader): Declare.
17478 * tree-flow.h (thread_through_all_blocks): Declaration changed.
17479 * basic-block.h (mfb_keep_just, mfb_kj_edge): Declare.
17480 * passes.c (first_pass_instance): New variable.
17481 (next_pass_1): Set TODO_mark_first_instance.
17482 (execute_todo): Set first_pass_instance.
17483
d9987fb4
UB
174842007-05-17 Uros Bizjak <ubizjak@gmail.com>
17485
17486 PR tree-optimization/24659
17487 * optabs.h (enum optab_index): Add OTI_vec_unpacks_float_hi,
17488 OTI_vec_unpacks_float_lo, OTI_vec_unpacku_float_hi,
17489 OTI_vec_unpacku_float_lo, OTI_vec_pack_sfix_trunc and
17490 OTI_vec_pack_ufix_trunc.
17491 (vec_unpacks_float_hi_optab): Define new macro.
17492 (vec_unpacks_float_lo_optab): Ditto.
17493 (vec_unpacku_float_hi_optab): Ditto.
17494 (vec_unpacku_float_lo_optab): Ditto.
17495 (vec_pack_sfix_trunc_optab): Ditto.
17496 (vec_pack_ufix_trunc_optab): Ditto.
17497 * genopinit.c (optabs): Implement vec_unpack[s|u]_[hi|lo]_optab
17498 and vec_pack_[s|u]fix_trunc_optab using
17499 vec_unpack[s|u]_[hi\lo]_* and vec_pack_[u|s]fix_trunc_* patterns
17500 * tree-vectorizer.c (supportable_widening_operation): Handle
17501 FLOAT_EXPR and CONVERT_EXPR. Update comment.
17502 (supportable_narrowing_operation): New function.
17503 * tree-vectorizer.h (supportable_narrowing_operation): Prototype.
17504 * tree-vect-transform.c (vectorizable_conversion): Handle
17505 (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
17506 (vect_gen_widened_results_half): Move before vectorizable_conversion.
17507 (vectorizable_type_demotion): Call supportable_narrowing_operation()
17508 to check for target support.
17509 * optabs.c (optab_for_tree_code) Return vec_unpack[s|u]_float_hi_optab
17510 for VEC_UNPACK_FLOAT_HI_EXPR, vec_unpack[s|u]_float_lo_optab
17511 for VEC_UNPACK_FLOAT_LO_EXPR and vec_pack_[u|s]fix_trunc_optab
17512 for VEC_PACK_FIX_TRUNC_EXPR.
17513 (expand_binop): Special case mode of the result for
17514 vec_pack_[u|s]fix_trunc_optab.
17515 (init_optabs): Initialize vec_unpack[s|u]_[hi|lo]_optab and
17516 vec_pack_[u|s]fix_trunc_optab.
17517
17518 * tree.def (VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR,
17519 VEC_PACK_FIX_TRUNC_EXPR): New tree codes.
17520 * tree-pretty-print.c (dump_generic_node): Handle
17521 VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR and
17522 VEC_PACK_FIX_TRUNC_EXPR.
17523 (op_prio): Ditto.
17524 * expr.c (expand_expr_real_1): Ditto.
17525 * tree-inline.c (estimate_num_insns_1): Ditto.
17526 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
17527
17528 * config/i386/sse.md (vec_unpacks_float_hi_v8hi): New expander.
17529 (vec_unpacks_float_lo_v8hi): Ditto.
17530 (vec_unpacku_float_hi_v8hi): Ditto.
17531 (vec_unpacku_float_lo_v8hi): Ditto.
17532 (vec_unpacks_float_hi_v4si): Ditto.
17533 (vec_unpacks_float_lo_v4si): Ditto.
17534 (vec_pack_sfix_trunc_v2df): Ditto.
17535
17536 * doc/c-tree.texi (Expression trees) [VEC_UNPACK_FLOAT_HI_EXPR]:
17537 Document.
17538 [VEC_UNPACK_FLOAT_LO_EXPR]: Ditto.
17539 [VEC_PACK_FIX_TRUNC_EXPR]: Ditto.
17540 * doc/md.texi (Standard Names) [vec_pack_sfix_trunc]: Document.
17541 [vec_pack_ufix_trunc]: Ditto.
17542 [vec_unpacks_float_hi]: Ditto.
17543 [vec_unpacks_float_lo]: Ditto.
17544 [vec_unpacku_float_hi]: Ditto.
17545 [vec_unpacku_float_lo]: Ditto.
17546
27735edb
UB
175472007-05-16 Uros Bizjak <ubizjak@gmail.com>
17548
17549 * soft-fp/README: Update for new files.
17550 * soft-fp/floattisf.c: New file.
17551 * soft-fp/floattidf.c: New file.
17552 * soft-fp/floattitf.c: New file.
17553 * soft-fp/floatuntisf.c: New file.
17554 * soft-fp/floatuntidf.c: New file.
17555 * soft-fp/floatuntitf.c: New file.
17556 * soft-fp/fixsfti.c: New file.
17557 * soft-fp/fixdfti.c: New file.
17558 * soft-fp/fixtfti.c: New file.
17559 * soft-fp/fixunssfti.c: New file.
17560 * soft-fp/fixunsdfti.c: New file.
17561 * soft-fp/fixunstfti.c: New file.
17562 * soft-fp/extendxftf.c: New file.
17563 * soft-fp/trunctfxf.c: New file.
17564
17565 * libgcc-std.ver (__extendxftf2): Added to GCC_4.3.0 section.
17566 (__trunctfxf2): Ditto.
17567
17568 * config/i386/libgcc-x86_64-glibc.ver (__addtf3, __divtf3, __eqtf2,
17569 __extenddftf2, __extendsftf2, __fixtfdi, __fixtfsi, __fixtfti,
17570 __fixunstfdi, __fixunstfsi, __fixunstfti, __floatditf, __floatsitf,
17571 __floattitf, __floatunditf, __floatunsitf, __floatuntitf, __getf2,
17572 __letf2, __multf3, __negtf2, __subtf3, __trunctfdf2, __trunctfsf2,
17573 __unordtf2): Exclude and add to GCC_4.3.0 section for x86_64 targets.
17574
17575 * config/i386/t-fprules-softfp64: New file.
17576 * config/i386/sfp-machine.h: New file.
17577 * config.gcc (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu,
17578 x86_64-*-knetbsd*-gnu): Add i386/t-fprules-softfp64
17579 and soft-fp/t-softfp to tmake_file.
17580 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
17581 i[34567]86-*-knetbsd*-gnu): Ditto for --enable-targets=all.
8536ebb5 17582
27735edb
UB
17583 * config/i386/t-linux64 (softfp_wrap_start): New.
17584 (softfp_wrap_end): New.
17585 * config/i386/i386.c (ix86_scalar_mode_supported): TFmode is
17586 supported for TARGET_64BIT.
17587
c74a03d2
RAE
175882007-05-16 Rafael Avila de Espindola <espindola@google.com>
17589
8536ebb5 17590 * c-common.c (c_common_signed_or_unsigned_type): Emulate
c74a03d2
RAE
17591 c_common_unsigned_type behavior.
17592
2d79fde8
PB
175932007-05-16 Paolo Bonzini <bonzini@gnu.org>
17594
d9987fb4
UB
17595 * config/i386/i386.c (legitimize_tls_address): Mark __tls_get_addr
17596 calls as pure.
2d79fde8 17597
2b2c2fe5
EC
175982007-05-16 Eric Christopher <echristo@apple.com>
17599
17600 * config/rs6000/rs6000.c (rs6000_emit_prologue): Move altivec register
d9987fb4
UB
17601 saving after stack push. Set sp_offset whenever we push.
17602 (rs6000_emit_epilogue): Move altivec register restore before
17603 stack push.
2b2c2fe5 17604
748670c2
RS
176052007-05-16 Richard Sandiford <richard@codesourcery.com>
17606
17607 * configure.ac: Allow sysroots to be relocated under $prefix as
17608 well as $exec_prefix.
17609 * configure: Regenerate.
17610
4ef2b6ed
RS
176112007-05-16 Richard Sandiford <richard@codesourcery.com>
17612
17613 Revert:
17614
17615 2007-05-12 Richard Sandiford <richard@codesourcery.com>
17616
17617 * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
17618 (gcc_tooldir): Likewise.
17619 * configure: Regenerate.
17620 * Makefile.in (libsubdir_to_prefix): New variable, based on the
17621 old configure.ac gcc_tooldir setting.
17622 (prefix_to_exec_prefix): New variable.
17623 (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
17624 rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
17625
3bf6bfcc
JJ
176262007-05-14 Janis Johnson <janis187@us.ibm.com>
17627
17628 * c-typeck.c (build_binary_op): Return early for error.
17629
9e2f83a5
ZD
176302007-05-15 Zdenek Dvorak <dvorakz@suse.cz>
17631
17632 * tree-ssa-loop-niter.c (record_estimate): Use GGC_NEW to allocate
17633 struct nb_iter_bound.
17634 (free_numbers_of_iterations_estimates_loop): Use ggc_free.
17635 * gengtype.c (open_base_files): Add cfhloop.h to the list of includes.
17636 * cfgloopmanip.c (place_new_loop): Vector larray is gc-allocated.
17637 * tree-scalar-evolution.c: Include gt-tree-scalar-evolution.h.
17638 (struct scev_info_str, scalar_evolution_info): Add GTY markers.
17639 (new_scev_info_str): Use GGC_NEW to allocate struct scev_info_str.
17640 (del_scev_info): Use ggc_free.
17641 (scev_initialize): Allocate scalar_evolution_info in gc memory.
17642 * loop-init.c: Include ggc.h.
17643 (loop_optimizer_init): Use GGC_CNEW to allocate struct loops.
17644 (loop_optimizer_finalize): Use ggc_free.
17645 * tree-ssa-loop.c (pass_tree_unswitch, pass_vectorize,
17646 pass_linear_transfom, pass_empty_loop, pass_complete_unroll,
17647 pass_iv_optimize): Add TODO_ggc_collect.
7e08fa35
UB
17648 * function.h (struct function): Remove skip marker from
17649 x_current_loops.
9e2f83a5
ZD
17650 * cfgloop.c: Include ggc.h.
17651 (flow_loops_free, flow_loop_free): Free the loop descriptions in gc
17652 memory.
17653 (establish_preds): Vector superloops is gc allocated.
17654 (alloc_loop): Allocate loop using GGC_CNEW. Allocate head of
17655 loop->exits list.
17656 (flow_loops_find): Vector larray is gc allocated.
17657 (loop_exit_free): Use ggc_free.
17658 (rescan_loop_exit): Use GGC_NEW to allocate struct loop_exit. Reflect
17659 that head of exits list is now not a part of struct loop.
17660 (record_loop_exits): Allocate exits table in gc memory.
7e08fa35
UB
17661 (get_loop_exit_edges, verify_loop_structure, single_exit): Reflect
17662 that head of exits list is now not a part of struct loop.
9e2f83a5
ZD
17663 * cfgloop.h (struct lpt_decision, struct nb_iter_bound,
17664 struct loop_exit): Add GTY marker.
17665 (struct loop): Add GTY marker. Make superloops vector gc allocated.
17666 Add skip marker to aux field. Make head of exits list a separate
17667 object.
17668 (struct loops): Add GTY marker. Make larray vector gc allocated.
17669 Add param marker to exits table.
17670 (get_loops): Type changed.
7e08fa35
UB
17671 * Makefile.in (tree-scalar-evolution.o): Add
17672 gt-tree-scalar-evolution.h dependency.
9e2f83a5
ZD
17673 (cfgloop.o, loop-init.o): Add ggc.h dependency.
17674 (GTFILES): Add cfgloop.h and tree-scalar-evolution.c.
17675 * basic-block.h (struct basic_block_def): Remove skip marker from
17676 loop_father field.
17677
49452c07
UB
176782007-05-14 Uros Bizjak <ubizjak@gmail.com>
17679
17680 * builtins.c (expand_builtin_mathfn): Use EXPAND_NORMAL instead
17681 of 0 in the call to expand_expr().
17682 (expand_builtin_mathfn_3): Ditto.
17683 (expand_builtin_interclass_mathfn): Ditto.
17684 (expand_builtin_cexpi): Ditto.
17685 (expand_builtin_int_roundingfn): Ditto.
17686 (expand_builtin_int_roundingfn_2): Ditto.
17687 (expand_builtin_pow): Ditto.
17688 (expand_builtin_powi): Ditto.
17689 (expand_builtin_bswap): Ditto.
17690 (expand_builtin_unop): Ditto.
17691 (expand_builtin_fabs): Ditto.
17692 (get_builtin_sync_mem): Use NULL_RTX instead of NULL in
17693 the call to expand_expr().
17694 (expand_builtin_sync_operation): Ditto.
17695 (expand_builtin_compare_and_swap): Ditto.
17696 (expand_builtin_lock_test_and_set): Ditto.
17697 * except.c (expand_builtin_eh_return_data_regno): Use EXPAND_NORMAL
17698 instead of 0 in the call to expand_expr().
17699 (expand_builtin_extract_return_addr): Ditto.
17700 (expand_builtin_eh_return): Ditto.
17701 (expand_eh_return): Ditto.
17702 * explow.c (expr_size): Ditto.
17703 * expr.c (optimize_bitfield_assignment_op): Ditto.
17704 (expand_assignement): Ditto.
17705 (store_expr): Ditto.
17706 (store_field): Ditto.
17707 (expand_expr_addr_expr_1): Use NULL_RTX instead of NULL in
17708 the call to expand_expr().
17709 (expand_expr_real_1) [COMPLEX_CST]: Use EXPAND_NORMAL instead of 0
17710 in the call to expand_expr().
17711 [CONSTRUCTOR, PLUS_EXPR, MINUS_EXPR, NEGATE_EXPR, ABS_EXPR,
17712 BIT_NOT_EXPR, LSHIFT_EXPR, LT_EXPR, TRUTH_NOT_EXPR]: Ditto.
17713 [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO]: Use expand_normal() instead
17714 of expand_expr().
17715 * optabs.c (expand_vec_shift_expr): Ditto.
17716 (expand_vec_cond_expr): Ditto.
17717 (vector_compare_rtx): Use EXPAND_STACK_PARM instead of 1 in the
17718 call to expand_expr().
17719 * stmt.c (expand_return): Use EXPAND_NORMAL instead of 0
17720 in the call to expand_expr().
17721
9c40feeb
DK
177222007-05-14 Dave Korn <dave.korn@artimi.com>
17723
6ef5231b 17724 * genautomata.c (gen_regexp_el): Allocate correct size for regexp.
9c40feeb 17725
ca5ba2a3
RAE
177262007-05-14 Rafael Avila de Espindola <espindola@google.com>
17727
17728 * c-common.c (warnings_for_convert_and_check): Use unsigned_type_for
17729 instead of c_common_unsigned_type.
17730 (c_common_unsigned_type): Remove.
17731 (shorten_compare): Use c_common_signed_or_unsigned_type instead of
17732 c_common_unsigned_type.
17733 (c_common_nodes_and_builtins): Use unsigned_type_for instead of
17734 c_common_unsigned_type.
17735 * c-common.h (c_common_unsigned_type): Remove.
17736 * c-decl.c (grokdeclarator): Use unsigned_type_for instead of
17737 c_common_unsigned_type.
17738 * c-format.c (check_format_types): Use unsigned_type_for instead of
17739 c_common_unsigned_type.
17740 * c-objc-common.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
7e08fa35
UB
17741 * c-typeck.c (convert_for_assignment): Use unsigned_type_for instead
17742 of c_common_unsigned_type.
ca5ba2a3
RAE
17743 * convert.c (convert_to_integer): Use unsigned_type_for instead of
17744 lang_hooks.types.unsigned_type.
17745 * expmed.c (make_tree): Use unsigned_type_for instead of
17746 lang_hooks.types.unsigned_type.
17747 * fold-const.c (fold_negate_expr): Use unsigned_type_for instead of
17748 lang_hooks.types.unsigned_type.
17749 (build_range_check): Likewise.
17750 (fold_unary): Likewise.
17751 (fold_binary): Likewise.
17752 (fold_ternary): Likewise.
17753 * langhooks-def.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
17754 * langhooks.h (lang_hooks_for_types): Remove unsigned_type.
17755 * tree.c (get_unsigned_type): New.
17756 (unsigned_type_for): Use get_unsigned_type instead of
17757 lang_hooks.types.unsigned_type.
17758
a4242737
KH
177592007-05-14 Kazu Hirata <kazu@codesourcery.com>
17760
17761 * config/m68k/m68k-protos.h: Rename m68k_interrupt_function_p
17762 to m68k_get_function_kind. Update its prototype.
17763 * config/m68k/m68k.c (m68k_attribute_table): Add an entry for
17764 interrupt_thread.
17765 (m68k_interrupt_function_p): Return enum m68k_function_type
17766 instead of bool. Rename to m68k_get_function_kind.
17767 (m68k_handle_fndecl_attribute): Reject interrupt_thread if the
17768 target is not fido.
17769 (m68k_compute_frame_layout): Don't mark any register for save
17770 if an interrupt_thread attribute is specified.
17771 (m68k_hard_regno_rename_ok): Update a use of
17772 m68k_interrupt_function_p.
17773 * config/m68k/m68k.h (EPILOGUE_USES): Update a use of
17774 m68k_interrupt_function_p.
17775 (m68k_function_type): New.
17776 * config/m68k/m68k.md (*return): Output a 'sleep' instruction
17777 for a function with an interrupt_thread attribute.
17778 * doc/extend.texi: Document the interrupt_thread attribute.
17779
4076455d
DB
177802007-05-13 Daniel Berlin <dberlin@dberlin.org>
17781
17782 Fix PR tree-optimization/31911
17783 * tree-ssa-pre.c (phi_translate): Make sure to cache results even
17784 if they didn't change the expression.
17785
3cb960c7
ZD
177862007-05-13 Zdenek Dvorak <dvorakz@suse.cz>
17787
17788 * tree-scalar-evolution.c (resolve_mixers): Exported.
17789 * tree-scalar-evolution.h (resolve_mixers): Declare.
17790 * tree-data-ref.c (object_analysis, ptr_decl_may_alias_p,
17791 ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
17792 record_record_differ_p, record_array_differ_p, array_ptr_differ_p,
17793 base_object_differ_p, base_addr_differ_p, analyze_array_indexes,
17794 init_array_ref, init_pointer_ref, analyze_indirect_ref,
17795 strip_conversion, analyze_offset_expr, address_analysis,
17796 object_analysis, analyze_offset): Removed.
17797 (dr_analyze_innermost, dr_analyze_indices, dr_analyze_alias,
17798 split_constant_offset, canonicalize_base_object_address,
17799 object_address_invariant_in_loop_p, disjoint_objects_p,
17800 dr_may_alias_p, dr_address_invariant_p): New functions.
17801 (create_data_ref): Use dr_analyze_innermost, dr_analyze_indices
17802 and dr_analyze_alias.
17803 (initialize_data_dependence_relation): Use dr_may_alias_p
17804 and object_address_invariant_in_loop_p.
7e08fa35
UB
17805 (compute_self_dependence): Handle the case when
17806 DDR_ARE_DEPENDENT (ddr) is chrec_dont_know.
17807 (find_data_references_in_stmt): Restrict the analysis of data
17808 references to the given loop nest.
3cb960c7
ZD
17809 (find_data_references_in_loop): Made static. Pass loop nest to
17810 find_data_references_in_stmt.
17811 (compute_data_dependences_for_loop): Use DR_VOPS.
17812 (free_data_ref): Free DR_VOPS.
17813 * tree-data-ref.h (struct first_location_in_loop): Replaced by ...
17814 (struct innermost_loop_behavior): ... new.
17815 (struct base_object_info): Replaced by ...
17816 (struct indices): ... new.
17817 (struct dr_alias): New.
17818 (enum data_ref_type): Removed.
17819 (struct data_reference): Consist of struct innermost_loop_behavior,
17820 struct indices and struct dr_alias.
17821 (DR_SET_ACCESS_FNS, DR_FREE_ACCESS_FNS): Removed.
17822 (DR_MEMTAG): Renamed to ...
17823 (DR_SYMBOL_TAG): ... this.
17824 (find_data_references_in_loop): Declaration removed.
17825 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use DR_INIT
17826 instead of DR_OFFSET_MISALIGNMENT. DR_ALIGNED_TO is never NULL.
17827 (vect_analyze_data_refs): Use DR_SYMBOL_TAG instead of DR_MEMTAG.
17828 * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
17829
8a8b05f4
RE
178302007-05-13 Revital Eres <eres@il.ibm.com>
17831
17832 * tree-ssa-dse.c (get_use_of_stmt_lhs): New function
17833 which walks virtual def-use chains to find redundant stores.
17834 (dse_optimize_stmt): Call it.
17835
bae8b6b2
SB
178362007-05-12 Steven Bosscher <steven@gcc.gnu.org>
17837
17838 * gcse.c (gcse_main): Do jump bypassing in CPROP2.
17839 * passes.c (init_optimization_passes): Move pass_jump_bypass
17840 after loop2.
17841
17842 * basic-block.h (bb_has_eh_pred): Fix style issue.
17843
7f6055d0
SB
178442007-05-12 Steven Bosscher <steven@gcc.gnu.org>
17845
17846 PR rtl-optimization/31848
17847 * loop-invariant.c (move_invariant_reg): If we move an insn
17848 with a REG_EQUAL note, and that insn is not always executed,
17849 remove the REG_EQUAL note.
17850
c4160806
RG
178512007-05-12 Richard Guenther <rguenther@suse.de>
17852
17853 PR tree-optimization/31797
17854 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
17855 propagate into a stmt that has volatile ops.
17856
a7471708
RS
178572007-05-12 Richard Sandiford <richard@codesourcery.com>
17858
17859 * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
17860 (gcc_tooldir): Likewise.
17861 * configure: Regenerate.
17862 * Makefile.in (libsubdir_to_prefix): New variable, based on the
17863 old configure.ac gcc_tooldir setting.
17864 (prefix_to_exec_prefix): New variable.
17865 (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
17866 rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
17867
79bedddc
SR
178682007-05-11 Silvius Rus <rus@google.com>
17869
17870 * Makefile.in (OBJS-common): Add tree-ssa-alias-warnings.o.
17871 * c-common.c (strict_aliasing_warning): Modify -Wstrict-aliasing logic.
17872 * c-common.h (strict_aliasing_warning): Change return type.
17873 * c-opts.c (c_common_handle_option): Add call to set_Wstrict_aliasing.
17874 * c-typeck.c (build_indirect_ref): Add call to strict_aliasing_warning.
17875 (build_c_cast): Condition call to strict_aliasing_warning.
17876 * doc/invoke.texi: Update description of -Wstrict-aliasing[=n].
17877 * flags.h (set_Wstrict_aliasing): Declare.
17878 * opts.c (set_Wstrict_alising): Define, add call to.
17879 * tree-flow.h (strict_aliasing_warning_backend): Declare.
17880 * tree-ssa-alias-warnings.c: New file.
17881 * tree-ssa-alias.c (compute_may_aliases): Add call to
2b2c2fe5 17882 strict_aliasing_warning_backend.
79bedddc 17883
9ba025a2
ZD
178842007-05-11 Zdenek Dvorak <dvorakz@suse.cz>
17885
17886 * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
17887 Use loop_depth and loop_outer accessor functions.
17888 * tree-ssa-loop-im.c (outermost_invariant_loop, set_level,
17889 determine_invariantness_stmt, move_computations_stmt): Ditto.
17890 * cfgloopmanip.c (fix_bb_placement, fix_loop_placement, remove_path,
17891 add_loop, loopify, unloop, fix_loop_structure): Ditto.
17892 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Ditto.
17893 * tree-scalar-evolution.c (interpret_loop_phi,
17894 compute_scalar_evolution_in_loop, analyze_scalar_evolution_in_loop,
17895 instantiate_parameters_1, scev_const_prop): Ditto.
17896 * cfghooks.c (make_forwarder_block): Ditto.
17897 * cfgloopanal.c (mark_irreducible_loops, mark_loop_exit_edges): Ditto.
17898 * modulo-sched.c (loop_canon_p): Ditto.
17899 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg,
17900 slpeel_can_duplicate_loop_p): Ditto.
17901 * lambda-code.c (invariant_in_loop_and_outer_loops): Ditto.
17902 * tree-cfg.c (tree_duplicate_sese_region): Ditto.
17903 * cfgloop.c (flow_loop_dump, flow_loop_nodes_find, rescan_loop_exit,
17904 cancel_loop, verify_loop_structure): Ditto.
17905 (flow_loop_nested_p, superloop_at_depth, flow_loop_free,
17906 add_bb_to_loop, remove_bb_from_loops, find_common_loop): Use the
17907 superloops vector instead of "pred" array.
17908 (establish_preds): Take father loop as an argument. Initialize the
17909 superloops vector.
7e08fa35
UB
17910 (flow_loop_tree_node_add): Pass father loop to establish_preds.
17911 Do not initialize loop->outer.
9ba025a2
ZD
17912 (flow_loop_tree_node_remove): Truncate the superloops vector.
17913 * cfgloop.h (struct loop): Removed field "outer", fields "depth" and
17914 "pred" merged to "superloops" vector.
17915 (loop_depth, loop_outer): New.
17916 (fel_init): Use loop_outer.
17917
7be82279
JH
179182007-05-11 Jan Hubicka <jh@suse.cz>
17919
17920 * cgraphunit.c: Include gt-cgraphunit.h
17921 (static_ctors, static_dtors): New static vars.
17922 (record_cdtor_fn, build_cdtor, cgraph_build_cdtor_fns): New functions,
17923 based on implementation in c-common.c
17924 (cgraph_finalize_function): Call record_cdtor_fn.
17925 (cgraph_optimize): Call cgraph_build_cdtor_fns.
17926 * decl.c (finish_function): Do not call c_record_cdtor_fn.
17927 (c_write_global_declarations): Do not call c_build_cdtor_fns.
17928 * c-common.c (static_ctors, static_dtors, c_record_cdtor_fn,
17929 build_cdtor, c_build_cdtor_fns): Remove.
17930 * c-common.h (static_ctors, static_dtors, c_record_cdtor_fn,
17931 c_build_cdtor_fns): Remove prototype.
17932
2a5fce6d
PC
179332007-05-11 Paolo Carlini <pcarlini@suse.de>
17934
17935 PR other/31852
17936 * builtin-types.def: Add BT_FN_PTR_CONST_PTR_INT_SIZE.
17937 * builtins.def: Add BUILT_IN_MEMCHR, use the latter.
17938 * builtins.c (fold_builtin_memchr): New.
17939 (expand_builtin_memchr): Call the latter.
17940 (expand_builtin, fold_builtin_3): Deal with BUILT_IN_MEMCHR.
17941 * doc/extend.texi ([Other built-in functions provided by GCC]):
17942 Document memchr.
17943
35dd9a0e
AK
179442007-05-11 Andreas Krebbel <krebbel1@de.ibm.com>
17945
17946 * config/s390/s390.md (GPR0_REGNUM, FPR0_REGNUM, FPR2_REGNUM,
17947 PFPO_CONVERT, PFPO_OP_TYPE_SF, PFPO_OP_TYPE_DF, PFPO_OP_TYPE_TF,
17948 PFPO_OP_TYPE_SD, PFPO_OP_TYPE_DD, PFPO_OP_TYPE_TD, PFPO_OP0_TYPE_SHIFT,
17949 PFPO_OP1_TYPE_SHIFT): Constants added.
17950 (DFP_ALL): Mode macro defined.
17951 ("*trunc<BFP:mode><DFP_ALL:mode>2", "*trunc<DFP_ALL:mode><BFP:mode>2",
17952 "*extend<BFP:mode><DFP_ALL:mode>2", "*extend<DFP_ALL:mode><BFP:mode>2"):
17953 Insn definitions added.
17954 ("trunc<BFP:mode><DFP_ALL:mode>2", "trunc<DFP_ALL:mode><BFP:mode>2",
17955 "extend<BFP:mode><DFP_ALL:mode>2", "extend<DFP_ALL:mode><BFP:mode>2"):
17956 Expanders added.
17957
e71d7f88
ZD
179582007-05-10 Zdenek Dvorak <dvorakz@suse.cz>
17959
17960 PR tree-optimization/31885
7e08fa35
UB
17961 * tree-chrec.c (chrec_contains_undetermined): Do not consider
17962 NULL_TREE to be undetermined.
e71d7f88
ZD
17963 (automatically_generated_chrec_p): Return false for NULL.
17964
b548a9c2
BS
179652007-05-08 Bernd Schmidt <bernd.schmidt@analog.com>
17966
17967 * config/bfin/bfin.h (MOVE_RATIO): Define.
17968
1910440e
RS
179692007-05-10 Richard Sandiford <richard@codesourcery.com>
17970
17971 * config.gcc (sparc-wrs-vxworks): New target.
17972 * config/sparc/vxworks.h, config/sparc/t-vxworks: New files.
17973 * config/sparc/sparc-protos.h (sparc_emit_call_insn): Declare.
17974 * config/sparc/sparc.h: Include vxworks-dummy.h.
17975 (PRINT_OPERAND_ADDRESS): Extend SYMBOL_REF handling to
17976 include LABEL_REFs too.
17977 * config/sparc/sparc.c (sparc_expand_move): Don't assume that
17978 _GLOBAL_OFFSET_TABLE_ - label_ref is a link-time constant on
17979 VxWorks.
17980 (legitimize_pic_address): Handle LABEL_REFs like SYMBOL_REFs
17981 on VxWorks.
17982 (load_pic_register): Use gen_vxworks_load_got for VxWorks.
17983 (sparc_emit_call_insn): New function.
17984 (sparc_function_ok_for_sibcall): Restrict sibcalls to locally-binding
17985 functions when generating VxWorks PIC.
17986 * config/sparc/sparc.md (vxworks_load_got): New pattern.
17987 (call, call_value): Use sparc_emit_call_insn instead of
17988 emit_call_insn.
17989
4575a800 179902007-05-09 Bob Wilson <bob.wilson@acm.org>
2b2c2fe5 17991
4575a800 17992 * config/xtensa/xtensa.c (xtensa_output_literal): Don't use #if.
2b2c2fe5 17993
74ed13f5
BW
179942007-05-09 Bob Wilson <bob.wilson@acm.org>
17995
17996 * config/xtensa/xtensa.c (xtensa_output_literal): Mask out high bits
7e08fa35
UB
17997 for floating-point values if HOST_BITS_PER_LONG > 32. Use
17998 split_double instead of operand_subword.
74ed13f5 17999
520c62ad
BS
180002007-05-08 Bernd Schmidt <bernd.schmidt@analog.com>
18001
18002 * config/bfin/bfin.h (LOCAL_ALIGNMENT): Define.
18003 * config/bfin/bfin.c (bfin_local_alignment): New function.
18004 * config/bfin/bfin-protos.h (bfin_local_alignment): Declare it.
18005
14661f36
CF
180062007-05-08 Chao-ying Fu <fu@mips.com>
18007
18008 * doc/md.texi (msub@var{m}@var{n}4, usub@var{m}@var{n}4): Document.
18009 * optabs.h (OTI_smsub_widen, OTI_umsub_widen): New optab_indexes.
18010 (smsub_widen_optab, umsub_widen_optab): Define.
18011 * optabs.c (init_optabs): Initialize smsub_widen_optab and
18012 umsub_widen_optab.
18013 * genopinit.c (optabs): Fill in smsub_widen_optab and
18014 umsub_widen_optab.
18015 * expr.c (expand_expr_real_1): Try to use smsub_widen_optab
18016 and umsub_widen_optab to implement multiply-subtract sequences.
18017 * config/mips/mips.md (*msac<u>_di): Rename to...
18018 (<u>msubsidi4): ...this. Extend condition to include
18019 GENERATE_MADD_MSUB and TARGET_DSPR2. Change the constraint
18020 of operand 0 to "ka" and use the three-operand form of msub<u>
18021 for TARGET_DSPR2.
18022 * config/mips/mips-dspr2.md (mips_msub, mips_msubu): Convert
18023 to define_expands.
18024
10050f74
KK
180252007-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
18026
18027 PR rtl-optimization/28011
18028 * reload.c (push_reload): Set dont_share if IN appears in OUT
18029 also when IN is a PLUS rtx.
18030 (reg_overlap_mentioned_for_reload_p): Return true if X and IN
18031 are same PLUS rtx.
18032
b4aaa77b
KH
180332007-05-08 Kazu Hirata <kazu@codesourcery.com>
18034
18035 * emit-rtl.c (unshare_all_rtl_1): Don't copy DECL_RTL. Don't
18036 call unshare_all_decls.
18037 (unshare_all_rtl): Adjust the call to unshare_all_rtl_1.
18038 (unshare_all_decls): Remove.
18039
bfa64d0e
SM
180402007-05-08 Simon Martin <simartin@users.sourceforge.net>
18041
18042 PR 31847
18043 * tree-dump.c (dump_options): Don't use TDF_DIAGNOSTIC in "*-all" tree
18044 dumps.
18045
e8ab09c1 180462007-05-08 Sandra Loosemore <sandra@codesourcery.com>
d9987fb4 18047 Nigel Stephens <nigel@mips.com>
e8ab09c1
SL
18048
18049 * config/mips/mips.h (MAX_FPRS_PER_FMT): Renamed from FP_INC.
18050 Update comments and all uses.
18051 (MIN_FPRS_PER_FMT): Define.
18052 * config/mips/mips.c (function_arg): Fix to correctly handle
18053 the -mips32r2 -mfp64 -mabi=32 case.
18054 (override_options): Enable use of odd-numbered registers for
18055 SFmode values on MIPS32.
18056 (mips_save_reg_p): Save whole floating-point register pair if
18057 either half is used.
18058 (compute_frame_size): Fix comment.
18059
1f9e4ca1
JZ
180602007-05-08 Jie Zhang <jie.zhang@analog.com>
18061
18062 * config/bfin/bfin-protos.h (bfin_expand_epilogue): Add a third
18063 argument of type bool.
18064 * config/bfin/bfin.c (add_to_reg): Add epilogue_p as a fourth
18065 argument. Safely select temporary P register according to it.
18066 (do_link): Change call site of add_to_reg accordingly.
18067 (do_unlink): Add epilogue_p as a fourth argument and pass it
18068 to add_to_reg.
18069 (expand_interrupt_handler_epilogue): Change call of do_unlink
18070 accordingly.
18071 (bfin_expand_prologue): Add a third argument sibcall_p.
18072 * config/bfin/bfin.md (epilogue): Change call of
18073 bfin_expand_epilogue accordingly.
18074 (sibcall_epilogue): Likewise.
18075 (eh_return_internal): Likewise.
2b2c2fe5 18076
28f601ff
JZ
18077 * config/bfin/bfin-protos.h (enum bfin_cpu): Add
18078 BFIN_CPU_BF534, BFIN_CPU_BF536 and BFIN_CPU_BF561.
18079 * config/bfin/bfin.c (bfin_handle_option): Handle
18080 -mcpu=bf534, -mcpu=bf536 and -mcpu=bf561.
18081 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS):
18082 Support bf534, bf536 and bf561.
18083 * doc/invoke.texi (Blackfin Options): Document -mcpu and -msim.
18084
ac97d816
UB
180852007-05-08 Uros Bizjak <ubizjak@gmail.com>
18086
18087 PR target/31854
18088 * config/i386/i386.c (ix86_function_regparm): Process local
18089 functions only when TREE_CODE (decl) equals FUNCTION_DECL.
2b2c2fe5 18090
841cc7da
MS
180912007-05-07 Mike Stump <mrs@apple.com>
18092
18093 * doc/invoke.texi (Warning Options): Document that -Wempty-body
18094 also checks for and while statements in C++.
18095
2091ff66
NF
180962007-05-07 Nathan Froyd <froydnj@codesourcery.com>
18097
18098 * gcc.c (at_file_supplied): New variable.
18099 (main): Set it if we expanded argv.
18100 (do_spec_1): Pass an @-file to the linker if we were called with
18101 an @-file argument and HAVE_GNU_LD.
18102 * collect2.c (at_file_supplied): New variable.
18103 (response_file): New variable.
18104 (collect_exit): Unlink response_file if necessary.
18105 (handler): Likewise.
18106 (do_wait): Likewise.
18107 (main): Set at_file_supplied if we expanded argv.
18108 (collect_execute): Pass an @-file to subprocesses if we were called
18109 with an @-file argument.
18110 * configure.ac: Add define for HAVE_GNU_LD.
18111 * configure: Regenerate.
18112 * config.in: Regenerate.
18113
d9987fb4 181142007-05-07 Naveen.H.S <naveen.hs@kpitcummins.com>
44cfab35
N
18115
18116 * config/m32c/muldiv.md (mulhisi3_c): Limit the mode of the 2nd
18117 operand to HI mode.
18118 (mulsi3): New.
18119 (divsi3): New.
18120 (udivsi3): New.
18121
5abd2125
JS
181222007-05-07 Jayant Sonar <jayants@kpitcummins.com>
18123
18124 * config/m32c/m32c.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
18125 (TARGET_ENCODE_SECTION_INFO): Re-define.
18126 (m32c_encode_section_info): New
18127 (function_vector_handler): New
18128 (current_function_special_page_vector): New
18129 (m32c_special_page_vector_p): New.
2b2c2fe5 18130 * config/m32c/m32c-protos.h (m32c_special_page_vector_p):
5abd2125 18131 Prototype.
2b2c2fe5 18132 * config/m32c/jump.md: Added instruction JSRS for functions
5abd2125 18133 with attribute "function_vector".
2b2c2fe5 18134 * doc/extend.texi (function_vector): Added description
5abd2125
JS
18135 for M16C, M32C targets.
18136
3eb5f26f
DD
181372007-05-07 DJ Delorie <dj@redhat.com>
18138
18139 PR 31794
18140 * config/m32c/shift.md (ashlpsi3_i, ashrpsi3_i, ashlpsi3,
18141 ashrpsi3, lshrpsi3): Update shift count constraint.
18142
b187f5cd 181432007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
2091ff66 18144 Nathan Froyd <froydnj@codesourcery.com>
b187f5cd
DS
18145
18146 PR 22133
18147 * c-incpath.c (add_path): Strip trailing path separators.
18148
8d9d6561
EB
181492007-05-07 Eric Botcazou <ebotcazou@adacore.com>
18150
18151 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered.
4be1caf9 18152 Free dominance info before purging EH edges.
8d9d6561
EB
18153 (eliminate_degenerate_phis): Likewise.
18154 (propagate_rhs_into_lhs): Set cfg_altered to true instead of 1.
18155
2cb7995f
JH
181562007-05-07 Jan Hubicka <jh@suse.cz>
18157
18158 * gimplify.c (gimplify_expr): Do not crash when folding
18159 (void *)(int)&a + 4.
18160
2f8e3bd7
FXC
181612007-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18162
18163 PR driver/31694
18164 * c-opts.c (lang_fortran): Make it non static.
18165 * c-common.h (lang_fortran): New prototype.
18166 * c-cppbuiltin.c (c_cpp_builtins): Create a __GFORTRAN__ if the
18167 -lang-fortran option was passed by the driver.
18168
982533a5
EB
181692007-05-06 Eric Botcazou <ebotcazou@adacore.com>
18170
18171 * timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead
18172 of ASSERT_CHECKING. Tweak message.
18173
181742007-05-06 Revital Eres <eres@il.ibm.com>
290358f7
RE
18175
18176 PR 30957
18177 * loop-unroll.c (insert_var_expansion_initialization):
18178 Initialize the expansions with -zero instead of +zero.
18179
a758fa89
AJ
181802007-05-05 Aurelien Jarno <aurelien@aurel32.net>
18181
18182 * config/pa/pa.md: Split tgd_load, tld_load and tie_load
2b2c2fe5
EC
18183 into pic and non-pic versions. Mark r19 as used for
18184 tgd_load_pic, tld_load_pic and tie_load_pic. Mark r27 as used
a758fa89
AJ
18185 for tgd_load, tld_load and tie_load .
18186 * config/pa/pa.c (legitimize_tls_address): Emit pic or non-pic
2b2c2fe5 18187 version of tgd_load, tld_load and tie_load depending on the
a758fa89
AJ
18188 value of flag_pic.
18189
3fc95619
UD
181902007-05-04 Ulrich Drepper <drepper@redhat.com>
18191 Jakub Jelinek <jakub@redhat.com>
18192
18193 * crtstuff.c (HIDDEN_DTOR_LIST_END): New macro.
18194 (__do_global_dtors_aux): Use more paranoid loop to run
18195 destructors if HIDDEN_DTOR_LIST_END.
18196 (__DTOR_END__): Export as a hidden symbol when HIDDEN_DTOR_LIST_END.
18197
52d53754
JJ
181982007-05-04 Jakub Jelinek <jakub@redhat.com>
18199
18200 * varasm.c (align_variable): Don't increase alignment for
18201 DECL_THREAD_LOCAL_P variables above BITS_PER_WORD through
18202 DATA_ALIGNMENT or CONSTANT_ALIGNMENT.
18203
2b28c07a
JC
182042007-05-04 Josh Conner <jconner@apple.com>
18205
18206 * basic-block.h (cdi_direction): Assign values to all enumeration
18207 constants.
18208 (dom_computed): Remove.
18209 (dom_info_state): New.
18210 (set_dom_info_availability): New.
18211 * tree-ssa-loop-im.c (determine_invariantness): Initialize
18212 walk_data.dom_direction.
18213 * cfghooks.c (delete_basic_block): Use dom_info_available_p()
18214 instead of dom_computed[].
18215 (split_edge): Likewise.
18216 (create_basic_block): Likewise.
18217 (merge_blocks): Likewise.
18218 * ifcvt.c (find_if_header): Likewise.
18219 * tree-cfgcleanup.c (cleanup_tree_cfg): Likewise.
18220 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
18221 * tree-ssa.c (verify_ssa): Likewise.
18222 * tree-cfg.c (tree_verify_flow_info): Likewise.
18223 (remove_edge_and_dominated_blocks): Likewise.
18224 * dominance.c (dom_computed): Make static.
18225 (calc_dfs_tree_nonrec): Change third param to a bool.
18226 (calc_dfs_tree): Change second param to a bool.
18227 (calc_idioms): Change second param to a bool. Use
18228 dom_convert_dir_to_idx.
18229 (init_dom_info): Validate dir before using.
18230 (dom_convert_dir_to_idx): New.
18231 (calculate_dominance_info): Use dom_convert_dir_to_idx. New
18232 variable 'reverse' used for calling calc_dfs_tree and calc_idoms.
18233 (free_dominance_info): Use dom_convert_dir_to_idx.
18234 (get_immediate_dominator): Likewise.
18235 (set_immediate_dominator): Likewise.
18236 (get_dominated_by): Likewise.
18237 (redirect_immediate_dominators): Likewise.
18238 (nearest_common_denominator): Likewise.
18239 (dominated_by_p): Likewise.
18240 (bb_dom_dfs_in): Likewise.
18241 (bb_dom_dfs_out): Likewise.
18242 (recount_dominator): Likewise.
18243 (iterate_fix_dominators): Likewise.
18244 (add_to_dominance_info): Likewise.
18245 (delete_from_dominance_info): Likewise.
18246 (first_dom_son): Likewise.
18247 (next_dom_son): Likewise.
18248 (dom_info_available_p): Likewise.
18249 (dom_info_state): New.
18250 (set_dom_info_availability): New.
18251
b60cb710
AK
182522007-05-04 Andreas Krebbel <krebbel1@de.ibm.com>
18253
18254 * config/s390/s390.md ("fix_trunc<mode>di2", "fix_trunc<mode>si2"):
18255 Expander removed.
18256 ("fix_trunc<DSF:mode><GPR:mode>2"): Expander added.
18257
b86dee19 182582007-05-04 Bob Wilson <bob.wilson@acm.org>
2b2c2fe5 18259
b86dee19
BW
18260 * config/xtensa/xtensa.md (adddi3, adddi_carry): Delete.
18261 (subdi3, subdi_carry): Delete.
2b2c2fe5 18262
06ea1b84
JH
182632007-05-04 Jan Hubicka <jh@suse.cz>
18264 Richard Guenther <rguenther@suse.de>
18265
18266 * opts.c (decode_options): Do not fiddle with inlining
18267 parameters in case of optimizing for size.
18268 * ipa-inline.c (cgraph_decide_recursive_inlining): When optimizing
18269 for size do nothing.
18270 (cgraph_decide_inlining_of_small_function): When optimizing for
18271 size never inline functions increasing caller size.
18272 (cgraph_early_inlining): Inline for size when optimizing for size.
18273
d0c9d431 182742007-05-04 Bernd Schmidt <bernd.schmidt@analog.com>
e4fae5f7
BS
18275
18276 * config/bfin/bfin.md (<optab>di3): Now a define_expand which expands
18277 logical operations piecewise.
18278 (<optab>di_zesidi_di, <optab>di_sesidi_di, negdi2, one_cmpldi2,
18279 zero_extendsidi2, subdi_di_zesidi, subdi_zesidi_di, subdi_di_sesidi,
18280 subdi_sesidi_di): Delete.
18281 (add_with_carry): Produce carry in CC instead of a DREG to shorten
18282 the generated sequence. Allow three-reg add in constraints. Rewrite
18283 the rtl expression for carry to avoid zero_extend of a constant.
18284 (sub_with_carry): New pattern.
18285 (adddi3, subdi3): Change into define_expand. For subtract, generate a
18286 different sequence not involving jumps.
18287 (notbi): Now a named pattern.
18288
80b9cbc9
BL
182892007-05-04 Bradley Lucier <lucier@math.purdue.edu>
18290
18291 * doc/invoke.texi (i386 and x86-64 Options) [-mpc32, -mpc64, -mpc80]:
18292 Add the note about a significant loss of accuracy of some
18293 mathematical routines when these options are used.
18294
916fa4f0
MK
182952007-05-04 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
18296
18297 * haifa-sched.c (rtx_vec_t): New typedef.
18298 (contributes_to_priority_p): Extract piece of priority () into new
18299 static function.
18300 (priority): Use the function. Add assertion.
18301 (rank_for_schedule, set_priorities): Add assertion to check that
18302 insn's priority is initialized.
18303 (clear_priorities, calc_priorities): Change signature. Make it update
18304 all relevant insns. Update all callers ('add_to_speculative_block ()'
18305 and 'create_block_check_twin ()').
18306 * sched-int.h (struct haifa_insn_data): Remove field 'priority_known'.
18307 Add new field 'priority_status'.
18308 (INSN_PRIORITY_STATUS): New macro.
18309 (INSN_PRIORITY_KNOWN): Change to use INSN_PRIORITY_STATUS.
18310
b640bd8f
MK
183112007-05-04 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
18312
18313 * sched-ebb.c (debug_ebb_dependencies): New static function.
18314 (init_ready_list): Use it.
18315
18316 * sched-rgn.c (debug_dependencies): Split into 'debug_dependencies ()'
18317 with changed signature and 'debug_rgn_dependencies ()'.
18318 (debug_rgn_dependencies): New static function.
18319 (init_ready_list): Use it.
2b2c2fe5 18320
b640bd8f
MK
18321 * sched-int.h (debug_dependencies): Declare.
18322
04749f41
AK
183232007-05-04 Andreas Krebbel <krebbel1@de.ibm.com>
18324
18325 * libgcc-std.ver (__ffssi2): Added to GCC_4.3.0 section.
18326
820b51ae
DM
183272007-05-04 Dirk Mueller <dmueller@suse.de>
18328
18329 * c.opt(Wmain,ffreestanding): Enable for C++,ObjC++.
18330
ac5a28a6
JH
183312007-05-03 Jan Hubicka <jh@suse.cz>
18332
7e08fa35
UB
18333 * fold-const.c (fold_unary): Convert (T1)(X op Y) into
18334 ((T1)X op (T1)Y), for pointer type in more cases than before.
ac5a28a6
JH
18335
18336 * gimplify.c (gimplify_expr): Fold (void *)&a + 4.
18337
18338 * tree-object-size.c (plus_expr_object_size): When operand size is
18339 unknown, return unknown.
18340
d347d4c7
DM
183412007-05-03 Dirk Mueller <dmueller@suse.de>
18342
18343 * doc/invoke.texi (-m386,-m486,-mpentium,-mpentiumpro): Remove.
18344
18345 * config/i386/i386.h (CC1_CPU_SPEC): Remove handling for deprecated
18346 options.
18347
18348 * config/i386/i386.opt (m386,m486,mpentium,mpentiumpro): Remove.
18349
ce396345
JJ
183502007-05-03 Janis Johnson <janis187@us.ibm.com>
18351
18352 * doc/sourcebuild.texi (Test Directives) Clarify dg-excess-errors.
18353
13cc6d1b
JM
183542007-05-03 Joseph Myers <joseph@codesourcery.com>
18355
18356 * config/soft-fp/double.h, config/soft-fp/extended.h,
18357 config/soft-fp/floatundidf.c, config/soft-fp/floatundisf.c,
18358 config/soft-fp/floatunsidf.c, config/soft-fp/floatunsisf.c,
18359 config/soft-fp/op-2.h, config/soft-fp/op-4.h,
18360 config/soft-fp/op-common.h, config/soft-fp/quad.h: Update from
18361 glibc CVS.
18362
a45bce6e
ILT
183632007-05-03 Ian Lance Taylor <iant@google.com>
18364
8fa013c3 18365 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
a45bce6e
ILT
18366 MASK_PPC_GFXOPT for 8540 or 8548.
18367
98120f62
UB
183682007-05-03 Uros Bizjak <ubizjak@gmail.com>
18369
18370 * tree-vect-transform.c (vect_update_inits_of_drs): Use
18371 vect_print_dump_info() to output debug information.
18372
f3ba4235
UB
183732007-05-03 Uros Bizjak <ubizjak@gmail.com>
18374
18375 PR target/31768
18376 * config/i386/i386.c (print_operand) ['z']: Output 'w' for
18377 operands of size 2 when operand is not MEM_P.
18378
e604f56c
ZD
183792007-05-03 Zdenek Dvorak <dvorakz@suse.cz>
18380
18381 PR tree-optimization/30565
18382 * lambda-code.c (perfect_nestify): Fix updating of dominators.
18383
314f9913
BS
183842007-05-03 Bernd Schmidt <bernd.schmidt@analog.com>
18385
18386 * config/bfin/bfin.md (addpdi3, us_truncpdisi2): New patterns.
18387 (umulsi3_highpart): Use them.
18388 * config/bfin/lib1funcs.asm (__umulsi3_highpart): Use unsigned move
18389 for final accumulator to D regisster tranfser.
18390
cb9ed5d7
DN
183912007-05-03 Dorit Nuzman <dorit@il.ibm.com>
18392
18393 PR tree-optimization/31699
7e08fa35
UB
18394 * tree-vect-analyze.c (vect_update_misalignment_for_peel): Remove
18395 wrong code.
2b2c2fe5
EC
18396 (vect_enhance_data_refs_alignment): Compute peel amount using
18397 TYPE_VECTOR_SUBPARTS instead of vf.
cb9ed5d7
DN
18398 * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Likewise.
18399
df582833
BM
184002007-05-02 Brooks Moses <brooks.moses@codesourcery.com>
18401
18402 PR bootstrap/31776
18403 * system.h: Remove inclusion of double-int.h
18404 * tree.h: Include double-int.h
18405 * gengtype.c: Likewise
18406 * cfgloop.h: Likewise
18407 * Makefile.in: Adjust dependencies on double-int.h
18408
ae077284
EC
184092007-05-02 Eric Christopher <echristo@apple.com>
18410
18411 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Translate
18412 -shared to -Zdynamiclib.
18413
ba992967
SP
184142007-05-02 Seongbae Park <seongbae.park@gmail.com>
18415
18416 PR c++/31663
18417 * c-common.c (strip_pointer_or_array_types): New function.
18418 * c-common.h (strip_pointer_or_array_types): New function declaration.
18419
e0310afb
ZD
184202007-05-03 Zdenek Dvorak <dvorakz@suse.cz>
18421
18422 PR tree-optimization/31771
18423 * tree-cfg.c (move_block_to_fn): Assign bb to the correct index.
18424
ad1ec76f
PB
184252007-05-02 Paul Brook <paul@codesourcery.com>
18426
18427 * config/arm/bpabi.S (aeabi_lcmp): Fix result on overflow.
18428
0e3aa126
AP
184292007-05-02 Andrew Pinski <andrew_pinski@playstation.sony.com>
18430
c5b75e95 18431 PR middle-end/29715
0e3aa126
AP
18432 * fold-const.c (fold_comparision): Remove the "foo++ == CONST"
18433 transformation.
18434
5271f9ba
NC
184352007-05-02 Nick Clifton <nickc@redhat.com>
18436
18437 * config/frv/predicates.md (symbolic_operand): Accept CONSTs.
18438
f6c5fefc
RG
184392007-05-02 Richard Guenther <rguenther@suse.de>
18440
18441 PR tree-optimization/31146
18442 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
18443 argument, single_use_p. If we have a single use that is
18444 a conversion to the definition rhs type, propagate that rhs.
18445 (forward_propagate_addr_expr): Pass single_use_p argument
18446 to forward_propagate_addr_expr_1.
18447
9a60b02d
L
184482007-05-01 H.J. Lu <hongjiu.lu@intel.com>
18449
18450 * config/i386/i386.c (ix86_expand_sse_comi): Remove unused
18451 variable.
18452
d8f52b02
DR
184532007-05-01 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
18454
ae077284 18455 * doc/invoke.texi: Fix typo, 'AMD Family 10h core' instead of
d8f52b02 18456 'AMD Family 10 core'.
ae077284 18457
9369ed95
DR
184582007-05-01 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
18459
ae077284
EC
18460 * config/i386/i386.c (override_options): Accept k8-sse3, opteron-sse3
18461 and athlon64-sse3 as improved versions of k8, opteron and athlon64
9369ed95
DR
18462 with SSE3 instruction set support.
18463 * doc/invoke.texi: Likewise.
ae077284 18464
2af6cb38
DR
184652007-05-01 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
18466
18467 * config/i386/i386.c (override_options): Tuning 32-byte loop
ae077284 18468 alignment for amdfam10 architecture. Increasing the max loop
2af6cb38 18469 alignment to 24 bytes.
ae077284 18470
b38bab94
KH
184712007-05-01 Kazu Hirata <kazu@codesourcery.com>
18472
18473 * config/m68k/constraints.md: New.
18474 * config/m68k/m68k.h (REG_CLASS_FROM_LETTER,
18475 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
18476 EXTRA_CONSTRAINT): Remove.
18477 * config/m68k/m68k.md: Include constraints.md.
18478 * expr.c (expand_expr_real_1): Copy DECL_RTL before using it.
18479
e1f28918
ILT
184802007-05-01 Ian Lance Taylor <iant@google.com>
18481
18482 PR tree-optimization/31739
18483 * tree-vrp.c (vrp_val_is_max): New static function.
18484 (vrp_val_is_min): New static function.
18485 (set_value_range_to_value): Use TYPE_{MAX,MIN}_VALUE rather than
18486 copying the node.
18487 (set_value_range): Use vrp_val_is_{max,min}.
18488 (extract_range_from_assert): Likewise.
18489 (extract_range_from_binary_expr): Likewise.
18490 (extract_range_from_unary_expr): Likewise.
18491 (dump_value_range, vrp_meet): Likewise.
18492 (vrp_visit_phi_node): Likewise.
18493 * tree.c (build_distinct_type_copy): Revert change of 2007-04-27.
18494
1d87d70d
MM
184952007-05-01 Mark Mitchell <mark@codesourcery.com>
18496
18497 * config/i386/gmon-sol2.c (size_t): New type.
18498 (intptr_t): Likewise.
18499 (s_textsize): Declare as size_t.
18500 (sbrk): Declare.
18501 (monstartup): Use size_t for sizes.
18502 (_mcount): Save and restore registers.
18503 (internal_mcount): Pass 0 as the first argument to monstartup
18504 in 64-bit mode.
18505 (moncontrol): Convert pointer to appropriately sized integer
18506 before passing to profil.
18507
b26941b4
JM
185082007-05-01 Joseph Myers <joseph@codesourcery.com>
18509
18510 * config/rs6000/darwin-ldouble.c (__gcc_qunord): Define if
18511 __NO_FPRS__, not just if _SOFT_DOUBLE.
18512 * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qunord): Likewise.
18513 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use __gcc_qunord
18514 also for E500 double.
18515 * config/rs6000/rs6000.md (buneq, bunge, bungt, bunle, bunlt,
18516 suneq, sunge, sungt, sunle, sunlt): Disable for (TARGET_HARD_FLOAT
18517 && !TARGET_FPRS).
18518
ae2cf11b
RG
185192007-05-01 Richard Guenther <rguenther@suse.de>
18520
18521 * tree-ssa-loop-manip.c (ip_normal_pos): Check if last stmt
18522 is NULL.
18523
037ab18d
JM
185242007-05-01 Joseph Myers <joseph@codesourcery.com>
18525
18526 * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qgt): Fix typo.
18527
617428e9
JH
185282007-05-01 Jan Hubicka <jh@suse.cz>
18529
18530 * tree-vectorize.c (vect_is_simple_use): gimple_min_invariant is
18531 invariant.
18532
fe9821b8
JH
185332007-05-01 Jan Hubicka <jh@suse.cz>
18534
18535 * tree.h (maybe_fold_offset_to_component_ref): Remove.
18536 (maybe_fold_offset_to_reference): Declare.
18537 * fold-const.c (fold_unary): Do not fold
18538 (type *)&A into &A->field_of_type_and_offset_0
18539 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): When base type
18540 size is unknown, give up.
18541 (maybe_fold_offset_to_component_ref): Ignore firelds with unknown
18542 offsets.
18543 (maybe_fold_offset_to_reference): New.
18544 (maybe_fold_stmt_indirect): Use it.
18545 (fold_stmt_r): Fold (type *)&A+offset into A->field_if_type_and_offset.
18546 * gimplify.c (gimplify_conversion): Canonicalize conversions to
18547 field references.
18548 (gimplify_expr): Likewise for plus_expr.
18549
8b11009b
ZD
185502007-05-01 Zdenek Dvorak <dvorakz@suse.cz>
18551
18552 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Use
18553 bsi_after_labels. Always insert statements before bsi.
18554 * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
18555 * predict.c (apply_return_prediction): Check for empty blocks.
18556 * cfgexpand.c (lab_rtx_for_bb): New variable.
18557 (label_rtx_for_bb): Do not create new tree labels.
18558 (expand_gimple_basic_block): Add labels recorded in lab_rtx_for_bb.
18559 (tree_expand_cfg): Initialize lab_rtx_for_bb.
18560 * tree-cfg.c (build_tree_cfg): Call cleanup_dead_labels after
18561 creating edges.
18562 (label_for_bb): Add field used.
18563 (update_eh_label, main_block_label): Mark the label used.
18564 (cleanup_dead_labels): Remove unused labels.
18565
f5052e29
RG
185662007-05-01 Richard Guenther <rguenther@suse.de>
18567
18568 * tree-vrp.c (set_value_range): Do not allocate equiv bitmap
18569 if it is not about to be set.
18570 (get_value_range): Do not pre-allocate equiv bitmap.
18571 (update_value_range): No need to clear equiv field.
18572 (add_equivalence): Change prototype to get bitmap pointer.
18573 Allocate bitmap here if it is not already.
18574 (extract_range_from_assert): Do not allocate bitmap here.
18575 Update callers to add_equivalence.
18576 (extract_range_from_ssa_name): Likewise.
18577 (get_vr_for_comparison): New static helper.
18578 (compare_name_with_value): Handle NULL equiv bitmap by
18579 peeling the first iteration of the comparison loop.
18580 Use get_vr_for_comparison.
18581 (compare_names): Handle NULL equiv bitmaps by using fake
18582 ones. Use get_vr_for_comparison.
18583
e4fd22c6
BM
185842007-04-30 Brooks Moses <brooks.moses@codesourcery.com>
18585
18586 * double-int.c (mpz_set_double_int): Moved from
18587 tree-ssa-loop-niter.c.
18588 (mpz_get_double_int): Likewise; also, add option to wrap
18589 out-of-range integers.
18590 * double-int.h: New prototypes for above.
18591 * tree.c (get_static_type_bounds): Moved from
18592 tree-ssa-loop-niter.c; now returns TYPE_MIN_VALUE and
18593 TYPE_MAX_VALUE if they exist..
18594 * tree.h: New prototype for above.
18595 * tree-ssa-loop-niter.c: Adjust mpz_to_double_int and
18596 get_type_bounds calls.
18597 (mpz_set_double_int): Move to double-int.c.
18598 (get_type_bounds): Move to tree.c, rename to
18599 get_static_type_bounds.
18600 (mpz_to_double_int): Move to double-int.c, rename to
18601 mpz_get_double_int.
18602
0a21c1d2
BW
186032007-04-30 Bob Wilson <bob.wilson@acm.org>
18604
18605 * config/xtensa/lib1funcs.asm (__umodsi3, __modsi3): Rearrange so that
18606 DIV0 exception can fall through to a normal return.
ae077284 18607
143569a8
AO
186082007-04-30 Alexandre Oliva <aoliva@redhat.com>
18609
18610 PR middle-end/22156
18611 Temporarily revert:
18612 2007-04-06 Andreas Tobler <a.tobler@schweiz.org>
d9987fb4 18613 * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
143569a8
AO
18614 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
18615 * tree-sra.c (try_instantiate_multiple_fields): Needlessly
18616 initialize align to silence bogus warning.
18617 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
18618 * tree-sra.c (struct sra_elt): Add in_bitfld_block. Remove
18619 all_no_warning.
18620 (struct sra_walk_fns): Remove use_all parameter from use.
18621 (sra_hash_tree): Handle BIT_FIELD_REFs.
18622 (sra_elt_hash): Don't hash bitfld blocks.
18623 (sra_elt_eq): Skip them in parent compares as well. Handle
18624 BIT_FIELD_REFs.
18625 (sra_walk_expr): Don't maintain or pass down use_all_p.
18626 (scan_use): Remove use_all parameter.
18627 (scalarize_use): Likewise. Re-expand assignment to
18628 BIT_FIELD_REF of gimple_reg. De-scalarize before input or
18629 output, and re-scalarize after output. Don't mark anything
18630 for no warning.
18631 (scalarize_ldst): Adjust.
18632 (scalarize_walk_gimple_modify_statement): Likewise.
18633 (build_element_name_1): Handle BIT_FIELD_REFs.
18634 (instantiate_element): Don't warn for any element whose parent
18635 is used as a whole.
18636 (instantiate_missing_elements_1): Return the sra_elt.
18637 (canon_type_for_field): New.
18638 (try_instantiate_multiple_fields): New.
18639 (instantiate_missing_elemnts): Use them.
18640 (mark_no_warning): Removed.
18641 (generate_one_element_ref): Handle BIT_FIELD_REFs.
18642 (REPLDUP, sra_build_elt_assignment): New.
18643 (generate_copy_inout): Use them.
18644 (generate_element_copy): Likewise. Handle bitfld differences.
18645 (generate_element_zero): Don't recurse for blocks. Use
18646 sra_build_elt_assignment.
18647 (generate_one_element_int): Take elt instead of var. Use
18648 sra_build_elt_assignment.
18649 (generate_element_init_1): Adjust.
18650 (scalarize_use, scalarize_copy): Use REPLDUP.
18651 (scalarize_ldst): Move assert before dereference.
18652 (dump_sra_elt_name): Handle BIT_FIELD_REFs.
18653
ab44f281
AP
186542007-04-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
18655
18656 PR C++/31721
18657 * tree.c (reconstruct_complex_type): Reconstruct a reference
18658 correctly.
18659 Also use the same mode for the pointer as the old pointer type.
18660
a19632d4
FXC
186612007-04-30 Francois-Xavier Coudert <coudert@clipper.ens.fr>
18662
18663 * doc/trouble.texi (Interoperation): Remove note about Ultrix
18664 Fortran compiler.
18665
268886f3
ZD
186662007-04-29 Zdenek Dvorak <dvorakz@suse.cz>
18667
8d6e09d9 18668 PR rtl-optimization/31676
268886f3
ZD
18669 * df-scan.c (record_nonlocal_goto_receiver_defs): New function.
18670 (df_refs_record): Call it.
18671
26c5953d
BS
186722007-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
18673
18674 * rtl.def (SS_ABS): New code.
18675 * config/bfin/bfin.c (print_operand): New modifier 'v'.
18676 (enum bfin_builtins): Add BFIN_BUILTIN_SUM_2X16, BFIN_BUILTIN_ABS_1x32,
18677 BFIN_BUILTIN_ROUND_1x32, BFIN_BUILTIN_MULT_1x32x32,
18678 BFIN_BUILTIN_MULT_1x32x32NS, BFIN_BUILTIN_SSASHIFT_1x32.
18679 (bfin_init_builtins): Define them.
18680 (bdesc_1arg, bdesc_2arg): Add some of them here, ...
18681 (bfin_expand_builtin): ... and handle the others here.
18682 * config/bfin/bfin.md (ssabssi2, ssroundsi2, ssashiftsi3,
18683 flag_mul_macv2hi_parts_acconly_andcc0): New patterns.
18684 (ss_absv2hi2): Renamed from absv2hi; use ss_abs code.
18685 (ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3): Shift count
18686 operand is only HImode.
18687
88250695
SB
186882007-04-29 Steven Bosscher <steven@gcc.gnu.org>
18689
18690 * regclass.c (scan_one_insn): Remove splitting of
18691 two address insns.
18692
64e7e238
SL
186932007-04-28 Sandra Loosemore <sandra@codesourcery.com>
18694 Nigel Stephens <nigel@mips.com>
18695
18696 * config/mips/mips.h (SLOW_BYTE_ACCESS): Turn off for MIPS16.
18697
55e092c4
JH
186982007-04-28 Jan Hubicka <jh@suse.cz>
18699
18700 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Use
18701 insn_locators_alloc instead of insn_locators_initialize;
18702 call reset_block_changes.
18703 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18704 * config/sh/sh.c (sparc_output_mi_thunk): Likewise.
18705 * config/is64/ia64.c (ia64_output_mi_thunk): Likewise.
18706 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18707 * config/score/score.c (th_output_mi_thunk): Likewise.
18708 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
18709 * cfglyaout.c (set_curr_insn_source_location, set_curr_insn_block):
18710 tolerate uninitialized locator info.
18711
18712 Re-apply:
18713 * function.c (init_function_start): Don't init line number info.
18714 (expand_function_end): Update.
18715 (reset_block_changes, record_block_change, finalize_block_changes,
18716 check_block_change, free_block_changes): Kill.
18717 * function.h (reset_block_changes, record_block_change,
7e08fa35
UB
18718 finalize_block_changes, check_block_change, free_block_changes):
18719 Remove prototypes.
55e092c4
JH
18720 (struct function): Remove ib_boundaries_block.
18721 * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
18722 Use curr_insn_locator to initialize locator.
18723 (emit_line_note): Remove.
18724 * cfgexpand.c (expand_gimple_cond_expr): Update.
18725 (construct_exit_block): Likewise.
18726 (tree_expand_cfg): Initialize/finalize locators.
18727 * expr.c (expand_expr_real): Update.
18728 * cfglayout.c (line_locators_locs, line_locators_lines,
18729 file_locators_locs, file_locators_files): Remove.
18730 (set_block_levels): Move to cfgexpand.c.
18731 (insn_locators_initialize): Remove.
18732 (pass_insn_locators_initialize): Remove.
18733 (locations_locators_locs, locations_locators_vals): New static vars.
18734 (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
18735 Likewise.
18736 (insn_locators_alloc, insn_locators_finalize,
18737 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
18738 New functions.
18739 (locator_location): New.
18740 (locator_line, locator_file): Rewrite.
18741 * rtl.h (emit_line_note): Kill.
18742 (insn_locators_alloc, insn_locators_finalize,
18743 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
18744 Declare.
18745 * tree-inline.c (initialize_cfun): Do not initialize
18746 ib_boundaries_block.
18747 * passes.c (pass_insn_locators_initialize): Remove.
18748
3722506a
ZD
187492007-04-28 Zdenek Dvorak <dvorakz@suse.cz>
18750
18751 * tree-cfg.c (move_block_to_fn): Release bb from dominance
18752 info. Update last_basic_block correctly.
18753
eb996a4a
KK
187542007-04-27 Kaz Kojima <kkojima@gcc.gnu.org>
18755
18756 PR target/31701
18757 * config/sh/sh.c (output_stack_adjust): Avoid using the frame
18758 register itself to hold the offset constant. Tell flow the use
18759 of r4 and r5 when they are used.
18760
113ab41c
RG
187612007-04-27 Richard Guenther <rguenther@suse.de>
18762
18763 * tree-ssa-forwprop.c (forward_propagate_into_cond): Keep track
18764 if we simplified anything.
18765 (tree_ssa_forward_propagate_single_use_vars): Defer overflow
18766 warnings until we did a simplification and the stmt was not
18767 marked as TREE_NO_WARNING.
18768
bfa45564
MS
187692007-04-27 Mike Stump <mrs@apple.com>
18770
18771 * config/rs6000/darwin.h (ALWAYS_PUSH_CONSTS_USING_REGS_P): Remove.
18772
093b203b
ILT
187732007-04-27 Ian Lance Taylor <iant@google.com>
18774
18775 PR middle-end/31710
18776 * tree.c (build_distinct_type_copy): If TYPE_MIN_VALUE or
18777 TYPE_MAX_VALUE exist, convert them to the new type.
18778
30251f7a
ZD
187792007-04-27 Zdenek Dvorak <dvorakz@suse.cz>
18780
18781 * tree-cfgcleanup.c (cleanup_tree_cfg): Verify dominance info
18782 if it claims to be available.
18783 * tree-ssa-dce.c (remove_dead_stmt): Mark cfg as altered when
18784 edge is redirected.
18785 (perform_tree_ssa_dce): Always free postdominators.
18786
48f46219
RH
187872007-04-27 Richard Henderson <rth@redhat.com>
18788
18789 * config/alpha/predicates.md (aligned_memory_operand): Mark
18790 as define_special_predicate.
18791 (unaligned_memory_operand, normal_memory_operand): Likewise.
18792 (reg_or_unaligned_mem_operand): Remove.
18793 (any_memory_operand): Match the documentation and check for
18794 non-renumbered pseudos during reload.
18795 * config/alpha/alpha.c (alpha_secondary_reload): Rename from
18796 alpha_secondary_reload_class, update to new interface, make static.
18797 Handle CQImode like HImode. Remove FP subreg check.
18798 (alpha_expand_mov): Use replace_equiv_address.
18799 (alpha_expand_mov_nobwx): Use any_memory_operand.
18800 (TARGET_SECONDARY_RELOAD): New.
18801 * config/alpha/alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Remove.
18802 (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
18803 * config/alpha/sync.md (I12MODE, I48MODE, modesuffix): Move ...
18804 * config/alpha/alpha.md: ... here.
18805 (RELOAD12, reloadmode): New.
18806 (movcqi): New.
18807 (reload_in<RELOAD12>): Macro-ize from reload_inqi, reload_inhi.
18808 Don't handle the aligned case here.
18809 (reload_out<RELOAD12>): Macro-ize from reload_outqi, reload_outhi.
18810 (reload_in<I12MODE>_aligned): Macro-ize from reload_inqi_help,
18811 reload_inhi_help. Don't expect a scratch register.
18812 (reload_out<I12MODE>_aligned): Macro-ize from reload_outqi_help,
18813 reload_outhi_help.
18814 * config/alpha/alpha-protos.h (alpha_secondary_reload_class): Remove.
18815
64e8a9f0
RG
188162007-04-27 Richard Guenther <rguenther@suse.de>
18817
18818 * tree-ssa-forwprop.c (get_prop_dest_stmt): Fix comment typo.
18819
3aef2dbd
RG
188202007-04-27 Richard Guenther <rguenther@suse.de>
18821
18822 PR tree-optimization/30965
18823 PR tree-optimization/30978
18824 * Makefile.in (tree-ssa-forwprop.o): Depend on $(FLAGS_H).
d9987fb4
UB
18825 * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove.
18826 (find_equivalent_equality_comparison): Likewise.
18827 (simplify_cond): Likewise.
18828 (get_prop_source_stmt): New helper.
18829 (get_prop_dest_stmt): Likewise.
3aef2dbd
RG
18830 (can_propagate_from): Likewise.
18831 (remove_prop_source_from_use): Likewise.
d9987fb4
UB
18832 (combine_cond_expr_cond): Likewise.
18833 (forward_propagate_comparison): New function.
18834 (forward_propagate_into_cond): Rewrite to use fold for
18835 tree combining.
3aef2dbd
RG
18836 (tree_ssa_forward_propagate_single_use_vars): Call
18837 forward_propagate_comparison to propagate comparisons.
18838
891fc5e9
RG
188392007-04-27 Richard Guenther <rguenther@suse.de>
18840
18841 PR tree-optimization/31715
18842 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make
18843 sure to do computation on the offset in an appropriate
18844 signed type.
18845
8c74fb06
RS
188462007-04-27 Richard Sandiford <richard@codesourcery.com>
18847
18848 * reload.h (elimination_target_reg_p): Declare.
18849 * reload.c (find_reloads): Don't apply the reg_rtx move
18850 optimization if the SET_DEST satisfies elimination_target_reg_p.
18851 * reload1.c (elimination_target_reg_p): New function.
18852 (gen_reload): In the move/add2 fallback, make sure that op0
18853 does not overlap the destination register.
18854
a9b77cd1
ZD
188552007-04-27 Zdenek Dvorak <dvorakz@suse.cz>
18856
18857 * tree-ssa-loop-im.c (determine_invariantness_stmt): Attempt to
18858 transform only GIMPLE_MODIFY_STMTs.
18859 * tree-complex.c (expand_complex_operations_1): Ditto.
18860 (expand_complex_div_wide): Do not create gotos in COND_EXPR branches.
18861 * tree-ssa-loop-manip.c (build_if_stmt): Removed.
18862 (tree_transform_and_unroll_loop): Do not create gotos in COND_EXPR
18863 branches.
18864 * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
18865 tree_mod_subtract, tree_ic, tree_stringop_fixed_value): Ditto.
18866 * omp-low.c (expand_parallel_call, expand_omp_for_generic,
18867 expand_omp_for_static_chunk, expand_omp_for_static_nochunk): Ditto.
18868 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes,
18869 slpeel_add_loop_guard): Ditto.
18870 * tree-mudflap.c (mf_build_check_statement_for): Ditto.
18871 * lambda-code.c (perfect_nestify): Ditto.
18872 * tree-iterator.c (tsi_split_statement_list_before): Fix splitting
18873 before the first statement.
18874 * tree-optimize.c (execute_free_datastructures): Fix comments.
18875 (execute_free_cfg_annotations): Do not call disband_implicit_edges.
18876 * tree-flow.h (disband_implicit_edges): Declaration removed.
18877 * tree-cfg.c (make_cond_expr_edges): Remove gotos from COND_EXPR
18878 branches.
7e08fa35
UB
18879 (cleanup_dead_labels, tree_redirect_edge_and_branch): Handle
18880 COND_EXPRs without gotos.
a9b77cd1
ZD
18881 (disband_implicit_edges, has_label_p): Removed.
18882 (tree_verify_flow_info): Verify that COND_EXPR branches are empty.
18883 (tree_lv_add_condition_to_bb): Do not create gotos in COND_EXPR
18884 branches.
18885 * tree.c (build3_stat): Mark COND_EXPRs used as statements as having
18886 side effects.
18887 * tree-pretty-print.c (dump_implicit_edges): Dump implicit edges
18888 also for COND_EXPRs.
18889 * cfgexpand.c (label_rtx_for_bb): New function.
18890 (expand_gimple_cond_expr): Do not expect gotos in COND_EXPR branches.
18891 Use label_rtx_for_bb to find the labels.
18892 (expand_gimple_basic_block): Remove RETURN_EXPR at the end of the
18893 last block. Detect fallthru edges.
18894
f5c3dc96
ILT
188952007-04-26 Ian Lance Taylor <iant@google.com>
18896
18897 PR target/28675
18898 * reload.c (find_reloads_subreg_address): If the address was valid
18899 in the original mode but not in the new mode, reload the whole
18900 address.
18901
672987e8
ZD
189022007-04-27 Zdenek Dvorak <dvorakz@suse.cz>
18903
18904 * tree-cfgcleanup.c (cfgcleanup_altered_bbs): New global variable.
18905 (remove_fallthru_edge): Use remove_edge_and_dominated_blocks.
18906 (cleanup_control_expr_graph): Do not invalidate dominance info.
18907 Record altered blocks.
18908 (cleanup_control_flow, cleanup_forwarder_blocks): Removed.
18909 (cleanup_control_flow_bb, split_bbs_on_noreturn_calls,
18910 cleanup_tree_cfg_bb): New functions.
18911 (remove_forwarder_block): Do not maintain the worklist of blocks.
18912 Record altered blocks.
18913 (cleanup_tree_cfg_1): Iterate over cfgcleanup_altered_bbs,
18914 not over whole cfg.
18915 (cleanup_tree_cfg): Do not iterate cleanup_tree_cfg_1. Only call
18916 delete_unreachable_blocks if dominators are not available.
18917 * tree-inline.c (optimize_inline_calls): Free dominance information
18918 earlier.
18919 * tree-flow.h (remove_edge_and_dominated_blocks,
18920 cfgcleanup_altered_bbs): Altered.
18921 * tree-cfg.c (replace_uses_by, tree_merge_blocks): Record altered
18922 blocks.
18923 (get_all_dominated_blocks, remove_edge_and_dominated_blocks): New
18924 functions.
18925 (tree_purge_dead_eh_edges): Use remove_edge_and_dominated_blocks,
18926 do not invalidate dominators.
18927
dd3b6c09
AS
189282007-04-26 Anatoly Sokolov <aesok@post.ru>
18929
ae077284 18930 * config/avr/avr.c (avr_mcu_types): Add support for ATmega8HVA and
dd3b6c09
AS
18931 ATmega16HVA devices. Move AT90USB82 device to 'avr5' architecture.
18932 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
18933 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
18934
6107a6ae
SE
189352007-04-26 Steve Ellcey <sje@cup.hp.com>
18936
6ef5231b 18937 * config/ia64/ia64.md (ip_value): Fix itanium_class attribute.
6107a6ae 18938
5c7ec4f0
RG
189392007-04-26 Richard Guenther <rguenther@suse.de>
18940
18941 PR tree-optimization/31703
18942 * tree-ssa-loop-im.c (rewrite_bittest): Make sure to use
18943 the right type for the target of the bittest.
18944
02cba8df
RS
189452007-04-26 Richard Sandiford <richard@codesourcery.com>
18946
18947 * config/i386/vx-common.h (RETURN_IN_MEMORY): Use
18948 ix86_sol10_return_in_memory.
18949
e797f7e1
RS
189502007-04-26 Richard Sandiford <richard@codesourcery.com>
18951
18952 * config/i386/i386.c (ix86_sol10_return_in_memory): Remove unused
18953 variables.
18954
e0eb05ea
JJ
189552007-04-26 Jakub Jelinek <jakub@redhat.com>
18956
6f719560
JJ
18957 PR c++/31598
18958 * tree-inline.c (copy_body_r): Don't touch TREE_TYPE of OMP_CLAUSE.
18959
e0eb05ea
JJ
18960 PR tree-optimization/30558
18961 * tree-eh.c (lower_eh_filter): If EH_FILTER_MUST_NOT_THROW
18962 clear this_state.prev_try.
18963
29173496
RS
189642007-04-26 Richard Sandiford <richard@codesourcery.com>
18965 Mark Mitchell <mark@codesourcery.com>
18966
18967 * config/i386/i386-protos.h (ix86_sol10_return_in_memory): Declare.
18968 * config/i386/i386.c (ix86_sol10_return_in_memory): New function.
18969 * config/i386/sol2-10.h (RETURN_IN_MEMORY): Use it.
18970
a0f87454
RS
189712007-04-26 Richard Sandiford <richard@codesourcery.com>
18972
18973 PR driver/31107
18974 * doc/invoke.texi (%:print-asm-header): Document.
18975 * gcc.c (asm_options): Use %:print-asm-header() for --target-help
18976 and -ftarget-help.
18977 (static_spec_functions): Add print-asm-header.
18978 (main): Print a banner before the --target-help linker options.
18979 (print_asm_header_spec_function): New function.
18980
6b2eeb54
KK
189812007-04-25 Kaz Kojima <kkojima@gcc.gnu.org>
18982
18983 PR target/31403
18984 * config/sh/sh.md (movsi_ie): Fix length for TARGET_SH2A.
18985 (movsf_ie): Likewise.
18986
b29441ec
PC
189872007-04-25 Paolo Carlini <pcarlini@suse.de>
18988
18989 * doc/extend.texi ([Type Traits]): Adjust per N2255.
18990
a2c2290b
BW
189912007-04-25 Bob Wilson <bob.wilson@acm.org>
18992
7e08fa35
UB
18993 * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Throw an
18994 exception for divide-by-zero.
a2c2290b
BW
18995 (__umodsi3, __modsi3): Likewise.
18996
253a697e
DM
189972007-04-25 Dirk Mueller <dmueller@suse.de>
18998
18999 * c-typeck.c (build_compound_expr): Annotate warning()
19000 call with OPT_Wunused_value.
aa86a51b
DM
19001 * tree-ssa.c (warn_uninit): Annotate warning with
19002 OPT_Wunintialized.
19003 * c-common.c (handle_sentinel_attribute): Annotate warning
19004 call with OPT_Wattributes.
253a697e 19005
500fc425
TS
190062007-04-25 Thiemo Seufer <ths@mips.com>
19007
19008 * config/mips/mips.opt (mdmx, mmt, mno-mdmx): New options.
19009 (mips16): Fix typo.
19010 * config/mips/mips.h (ASM_SPEC): Pass -mmt/-mno-mt and -mdmx/-mno-mdmx
19011 on to the assembler. Improve handling of -mno-mips16. Add handling
19012 of -mno-mips3d, -mno-dsp, -mno-dspr2.
19013 * doc/invoke.texi (MIPS Options): Whitespace cleanup. Fix wrong use
19014 of @itemx. Document -mno-dsp, -mno-dspr2, -mno-paired-single, -mdmx,
19015 -mno-mdmx, -mno-mips3d, -mmt and -mno-mt.
19016
4b07e9f7
DS
190172007-04-25 Danny Smith <dannysmith.users.sourceforge.net>
19018
19019 PR target/31680
19020 * config/i386/winnt.c (i386_pe_file_end): Strip only
19021 USER_LABEL_PREFIX when writing export name.
19022
f5c7290e
RS
190232007-04-25 Richard Sandiford <richard@codesourcery.com>
19024
19025 * config.gcc (sh-wrs-vxworks): Don't include dbxelf.h. Include
19026 sh/elf.h, vx-common.h and vxworks.h.
19027 * config/sh/sh.h: Include config/vxworks-dummy.h.
19028 (SUBTARGET_OVERRIDE_OPTIONS): Define.
19029 (OVERRIDE_OPTIONS): Use it.
19030 * config/sh/sh.md (GOTaddr2picreg): Add suport for VxWorks RTPs.
19031 (vxworks_picreg): New pattern.
19032 * config/sh/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
19033 VXWORKS_OS_CPP_BUILTINS.
19034 (LIB_SPEC, LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine
19035 to their VXWORKS_* equivalents.
19036 (SUBTARGET_OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
19037 (SUBTARGET_LINK_EMUL_SUFFIX, FUNCTION_PROFILER): Define.
19038 * config/sh/lib1funcs.asm (NO_FPSCR_VALUES): Define for VxWorks PIC.
19039 (set_fpscr, ic_invalidate): Add VxWorks PIC sequences.
19040 * config/sh/t-vxworks (MULTILIB_OPTIONS): Add m4a, -mrtp and
19041 -mrtp/-fPIC multilibs.
19042 (MULTILIB_EXCEPTIONS): Generalize globs accordingly.
19043 (MULTILIB_MATCHES, EXTRA_MULTILIB_PARTS): Define.
19044 (MULTILIB_OSDIRNAMES): Delete.
19045
5178d50a
AS
190462007-04-25 Anatoly Sokolov <aesok@post.ru>
19047
19048 PR target/18989
19049 * config/avr/avr.h (ASM_OUTPUT_ALIGN): Redefine.
19050
205a4d09
BM
190512007-04-24 Brooks Moses <brooks.moses@codesourcery.com>
19052
19053 * real.c (mpfr_from_real): Handle Inf and NaN, and allow the
19054 rounding mode to be specified by the caller.
19055 (real_to_mpfr) Likewise.
19056 * real.h: Update mpfr_from_real, mpfr_to_real prototypes to
19057 include new arguments.
19058 * builtins.c: Update mpfr_from_real, mpfr_to_real calls.
19059
8cf781f0
ILT
190602007-04-24 Ian Lance Taylor <iant@google.com>
19061
19062 PR tree-optimization/31605
19063 * tree-vrp.c (set_value_range): Check that min and max are not
19064 both overflow infinities.
19065 (set_value_range_to_value): New static function.
19066 (extract_range_from_binary_expr): Call set_value_range_to_value.
19067 (extract_range_from_cond_expr): Likewise.
19068 (extract_range_from_expr): Likewise.
19069 (extract_range_from_unary_expr): Likewise. Don't create a range
19070 which overflows on both sides.
19071 (vrp_meet): Check for a useless range.
19072 (vrp_visit_phi_node): If we see a constant which looks like an
19073 overflow infinity, turn off the TREE_OVERFLOW flag.
19074
1965dd3a
ILT
190752007-04-24 Ian Lance Taylor <iant@google.com>
19076
19077 * flow.c (elim_reg_cond): Handle a comparison of a subreg.
19078
438d798f
SM
190792007-04-24 Simon Martin <simartin@users.sourceforge.net>
19080
19081 PR diagnostic/25923
19082 * tree-pass.h (TDF_DIAGNOSTIC): New dump control to specify that a
19083 diagnostic message is being built.
1965dd3a
ILT
19084 * tree-pretty-print.c (dump_generic_node): Only write the
19085 formatted text into BUFFER's stream if we are not building a
19086 diagnostic message.
438d798f
SM
19087 * toplev.c (default_tree_printer): Pass TDF_DIAGNOSTIC to
19088 dump_generic_node.
19089 * Makefile.in (toplev.o): Depend on tree-pass.h.
19090
4df28528
ILT
190912007-04-24 Ian Lance Taylor <iant@google.com>
19092
19093 PR tree-optimization/31602
19094 * tree-ssa-loop-ch.c (copy_loop_headers): Set TREE_NO_WARNING for
19095 conditionals in the copied loop header.
19096 * tree-cfg.c (fold_cond_expr_cond): Don't issue undefined overflow
19097 warnings if TREE_NO_WARNING is set.
19098 * doc/invoke.texi (Warning Options): Clarify that
19099 -Wstrict-overflow does not warn about loops.
19100
2d83f070
JJ
191012007-04-24 Janis Johnson <janis187@us.ibm.com>
19102
19103 * config/rs6000/rs6000.c (function_arg_advance): For 32-bit ELF ABI,
19104 expand on the comment about _Decimal128 arguments and check the
19105 integer result of the modulus operation; for 64-bit ELF ABI, ensure
19106 that _Decimal128 argument uses even/odd register pair.
19107 (function_arg): Ditto.
19108
b883ab57
HMC
191092007-04-24 Hui-May Chang <hm.chang@apple.com>
19110
19111 * reload1.c (merge_assigned_reloads) : Do not merge a RELOAD_OTHER
19112 instruction with a RELOAD_FOR_OPERAND_ADDRESS instruction.
19113
81737468
OG
191142007-04-24 Richard Guenther <rguenther@suse.de>
19115 Olga Golovanevsky <olga@il.ibm.com>
19116
ae077284
EC
19117 * fold-const.c (multiple_of_p): Check for bottom
19118 to be zero.
81737468 19119
5fb54b91
RH
191202007-04-24 Richard Henderson <rth@redhat.com>
19121
ae077284 19122 * libgcc2.h (AVOID_FP_TYPE_CONVERSION): Rename from
5fb54b91
RH
19123 IS_IBM_EXTENDED. Also define in terms of WIDEST_HARDWARE_FP_SIZE.
19124 * libgcc2.c (__floatdisf): Avoid double-word arithmetic when
19125 looking for non-zero bits shifted out. Avoid a recursive call
19126 when constructing the scalar.
19127 (__floatundisf): Likewise.
19128
cd0a10dd
NF
191292007-04-24 Nathan Froyd <froydnj@codesourcery.com>
19130
19131 * dwarf2out.c (field_byte_offset): Move the existing logic
19132 under the control of PCC_BITFIELD_TYPE_MATTERS and just use
19133 the bit offset of the field if !PCC_BITFIELD_TYPE_MATTERS.
19134
c9f59991
AK
191352007-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
19136
19137 PR target/31641
7e08fa35
UB
19138 * config/s390/s390.c (s390_expand_setmem): Don't ICE for constant
19139 length argument of 0 for memset.
c9f59991
AK
19140 (s390_expand_movmem, s390_expand_setmem, s390_expand_cmpmem): Use
19141 unsigned shift instead of the signed variant.
19142
142cd70f
AK
191432007-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
19144
19145 * config/s390/s390.md ("*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs_ibm",
19146 "fix_trunc<BFP:mode><GPR:mode>2_ieee", "fix_truncdfsi2_ibm",
19147 "floatsidf2_ibm", "floatsisf2", "truncdfsf2_ieee", "truncdfsf2_ibm",
19148 "*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
19149 "*trunctfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
19150 "*extenddftf2_ieee", "*extenddftf2_ibm", "*extendsftf2_ieee",
19151 "*extendsftf2_ibm", "*add<mode>3", "*add<mode>3_ibm", "*sub<mode>3_ibm",
19152 "*mul<mode>3", "*mul<mode>3_ibm", "*div<mode>3", "*div<mode>3_ibm",
19153 "*neg<mode>2_ibm", "*abs<mode>2_ibm"): Insn definitions removed.
19154 ("fix_trunc<BFP:mode><GPR:mode>2_bfp", "floatsi<mode>2",
19155 "truncdfsf2", "trunctf<mode>2", "add<mode>3", "sub<mode>3",
19156 "mul<mode>3", "div<mode>3"): Insn definitions added.
19157 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fix_trunc<mode>di2",
19158 "fix_trunc<mode>si2"): gen_fix_trunc<BFP:mode><GPR:mode>2_ieee renamed
19159 to gen_fix_trunc<BFP:mode><GPR:mode>2_bfp.
19160 ("fix_truncdfsi2", "floatsitf2", "truncdfsf2", "trunctfdf2",
19161 "trunctfsf2", "extendsfdf2", "extenddftf2", "extendsftf2", "add<mode>3",
19162 "sub<mode>3", "mul<mode>3", "div<mode>3"): Expander removed.
19163 ("fix_trunc<mode>si2", "extend<DSF:mode><BFP:mode>2"): Expander added.
19164 * config/s390/s390.h (TARGET_IBM_FLOAT, TARGET_IEEE_FLOAT,
19165 TARGET_FLOAT_FORMAT): Macro definitions removed.
19166 (FP_REGNO_P): No special case for !TARGET_IEEE_FLOAT anymore.
19167 * config/s390/s390.c (struct processor_costs, z900_cost, z990_cost,
19168 z9_109_cost): Remove fields for hexfloat instructions: dxr, ddr and der.
19169 (s390_rtx_costs): Remove !TARGET_IEEE_FLOAT special branches.
19170 (s390_gen_rtx_const_DI): Function removed.
19171 * config/s390/s390-protos.h (s390_gen_rtx_const_DI): Prototype removed.
19172
aeed4133
RS
191732007-04-24 Richard Sandiford <richard@codesourcery.com>
19174
19175 * optabs.c (set_conv_libfunc): Prefer libgcc2's __ffsMM2 functions
19176 over an external ffs function.
19177
7f9844ca
RS
191782007-04-24 Chao-ying Fu <fu@mips.com>
19179 Richard Sandiford <richard@nildram.co.uk>
19180
19181 * doc/md.texi (madd@var{m}@var{n}4, umadd@var{m}@var{n}4): Document.
19182 * optabs.h (OTI_smadd_widen, OTI_umadd_widen): New optab_indexes.
19183 (smadd_widen_optab, umadd_widen_optab): Define.
19184 * optabs.c (init_optabs): Initialize smadd_widen_optab and
19185 umadd_widen_optab.
19186 * genopinit.c (optabs): Fill in smadd_widen_optab and
19187 umadd_widen_optab.
19188 * expr.c (expand_expr_real_1): Try to use smadd_widen_optab
19189 and umadd_widen_optab to implement multiply-add sequences.
19190 * config/mips/mips.md (*<su>mul_acc_di): Rename to...
19191 (<u>maddsidi4): ...this. Extend condition to include
19192 GENERATE_MADD_MSUB and TARGET_DSPR2. Change the constraint
19193 of operand 0 to "ka" and use the three-operand form of madd<u>
19194 for TARGET_DSPR2.
19195 * config/mips/mips-dspr2.md (mips_madd, mips_maddu): Convert
19196 to define_expands.
19197 * config/mips/constraints.md (ka): New register constraint.
19198
ec9ac2bc
JH
191992007-04-24 Jan Hubicka <j@suse.cz>
19200
19201 Revert:
19202
19203 2007-04-23 Jan Hubicka <jh@suse.cz>
19204 * function.c (init_function_start): Don't init line number info.
19205 (expand_function_end): Update.
19206 (reset_block_changes, record_block_change, finalize_block_changes,
19207 check_block_change, free_block_changes): Kill.
19208 * function.h (reset_block_changes, record_block_change,
7e08fa35
UB
19209 finalize_block_changes, check_block_change, free_block_changes):
19210 Remove prototypes.
ec9ac2bc
JH
19211 (struct function): Remove ib_boundaries_block.
19212 * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
19213 Use curr_insn_locator to initialize locator.
19214 (emit_line_note): Remove.
19215 * cfgexpand.c (expand_gimple_cond_expr): Update.
19216 (construct_exit_block): Likewise.
19217 (tree_expand_cfg): Initialize/finalize locators.
19218 * expr.c (expand_expr_real): Update.
19219 * cfglayout.c (line_locators_locs, line_locators_lines,
19220 file_locators_locs, file_locators_files): Remove.
19221 (set_block_levels): Move to cfgexpand.c.
19222 (insn_locators_initialize): Remove.
19223 (pass_insn_locators_initialize): Remove.
19224 (locations_locators_locs, locations_locators_vals): New static vars.
19225 (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
19226 Likewise.
19227 (insn_locators_alloc, insn_locators_finalize,
19228 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
19229 New functions.
19230 (locator_location): New.
19231 (locator_line, locator_file): Rewrite.
19232 * rtl.h (emit_line_note): Kill.
19233 (insn_locators_alloc, insn_locators_finalize,
19234 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
19235 Declare.
19236 * tree-inline.c (initialize_cfun): Do not initialize
19237 ib_boundaries_block.
19238 * passes.c (pass_insn_locators_initialize): Remove.
19239
edc5f63b
DF
192402007-04-24 Daniel Franke <franke.daniel@gmail.com>
19241
19242 * doc/invoke.texi: Removed leading '-' from option index entries.
19243
7506e1cb
ZD
192442007-04-23 Zdenek Dvorak <dvorakz@suse.cz>
19245
19246 * tree-phinodes.c (reserve_phi_args_for_new_edge, remove_phi_node):
19247 Use phi_nodes_ptr.
19248 (create_phi_node): Use set_phi_nodes.
19249 * omp-low.c (expand_omp_parallel): Use bb_stmt_list.
19250 * tree-if-conv.c (process_phi_nodes): Use set_phi_nodes.
6ef5231b 19251 (combine_blocks): Use bb_stmt_list and set_bb_stmt_list.
7506e1cb
ZD
19252 * tree-flow-inline.h (phi_nodes, set_phi_nodes,
19253 (bsi_start, bsi_last): Use bb_stmt_list.
19254 (phi_nodes_ptr, bb_stmt_list, set_bb_stmt_list): New functions.
19255 * cfgexpand.c (expand_gimple_basic_block): Use bb_stmt_list.
19256 Traverse the statements using tsi iterator.
19257 * basic-block.h (struct basic_block_def): Fields stmt_list
19258 and phi_nodes moved to ...
19259 (struct tree_bb_info): ... new structure.
19260 * tree-cfg.c (create_bb): Allocate il.tree. Use set_bb_stmt_list.
19261 (tree_merge_blocks): Use bb_stmt_list and set_bb_stmt_list.
19262 (remove_bb): Handle blocks with NULL stmt list. Clear il.tree field.
19263 (tree_verify_flow_info): Verify that il.tree is not set for
19264 entry and exit block.
19265 (tree_split_block): Use set_bb_stmt_list.
19266
933e4fe7
MS
192672007-04-23 Mike Stump <mrs@apple.com>
19268
19269 * config/i386/i386.c (ix86_tune_features
19270 [X86_TUNE_DEEP_BRANCH_PREDICTION]: Prefer call over thunks on
19271 nocona and core2.
19272
10e4d956
L
192732007-04-23 H.J. Lu <hongjiu.lu@intel.com>
19274
19275 * config/i386/i386.md (prefix_extra): New attribute.
19276 (length): Add prefix_extra.
19277
19278 * onfig/i386/sse.md (sse2_movdqu): Set prefix_data16.
19279 (sse2_movntv2di): Likewise.
19280 (sse2_cvtps2dq): Likewise.
19281 (sse2_cvtpd2pi): Likewise.
19282 (sse2_cvttpd2pi): Likewise.
19283 (*sse2_cvtpd2ps): Likewise.
19284 (*add<mode>3): Likewise.
19285 (sse2_ssadd<mode>3): Likewise.
19286 (sse2_usadd<mode>3): Likewise.
19287 (*sub<mode>3): Likewise.
19288 (sse2_sssub<mode>3): Likewise.
19289 (sse2_ussub<mode>3): Likewise.
19290 (*mulv8hi3): Likewise.
19291 (*smulv8hi3_highpart): Likewise.
19292 (*umulv8hi3_highpart): Likewise.
19293 (sse2_umulv2siv2di3): Likewise.
19294 (sse2_pmaddwd): Likewise.
19295 (ashr<mode>3): Likewise.
19296 (lshr<mode>3): Likewise.
19297 (ashl<mode>3): Likewise.
19298 (sse2_ashlti3): Likewise.
19299 (sse2_lshrti3): Likewise.
19300 (*umaxv16qi3): Likewise.
19301 (*smaxv8hi3): Likewise.
19302 (*uminv16qi3): Likewise.
19303 (*sminv8hi3): Likewise.
19304 (sse2_eq<mode>3): Likewise.
19305 (sse2_gt<mode>3): Likewise.
19306 (*and<mode>3): Likewise.
19307 (sse2_nand<mode>3): Likewise.
19308 (*ior<mode>3): Likewise.
19309 (*xor<mode>3): Likewise.
19310 (sse2_packsswb): Likewise.
19311 (sse2_packssdw): Likewise.
19312 (sse2_packuswb): Likewise.
19313 (sse2_punpckhbw): Likewise.
19314 (sse2_punpcklbw): Likewise.
19315 (sse2_punpckhwd): Likewise.
19316 (sse2_punpcklwd): Likewise.
19317 (sse2_punpckhdq): Likewise.
19318 (sse2_punpckldq): Likewise.
19319 (sse2_punpckhqdq): Likewise.
19320 (sse2_punpcklqdq): Likewise.
19321 (*sse2_pinsrw): Likewise.
19322 (*sse2_pextrw): Likewise.
19323 (sse2_pshufd_1): Likewise.
19324 (sse2_uavgv16qi3): Likewise.
19325 (sse2_uavgv8hi3): Likewise.
19326 (sse2_psadbw): Likewise.
19327 (sse2_pmovmskb): Likewise.
19328 (*sse2_maskmovdqu): Likewise.
19329 (*sse2_maskmovdqu_rex64): Likewise.
19330 (sse4a_extrqi): Likewise.
19331 (sse4a_extrq): Likewise.
19332 (sse3_lddqu): Set prefix_rep.
19333 (sse3_addsubv4sf3): Likewise.
19334 (sse3_haddv4sf3): Likewise.
19335 (sse3_hsubv4sf3): Likewise.
19336 (sse_cvtss2si): Likewise.
19337 (sse_cvtss2si_2): Likewise.
19338 (sse_cvtss2siq): Likewise.
19339 (sse_cvtss2siq_2): Likewise.
19340 (sse_cvttss2si): Likewise.
19341 (sse_cvttss2siq): Likewise.
19342 (sse2_cvttps2dq): Likewise.
19343 (sse3_movshdup): Likewise.
19344 (sse3_movsldup): Likewise.
19345 (sse2_cvtsd2si): Likewise.
19346 (sse2_cvtsd2si_2): Likewise.
19347 (sse2_cvtsd2siq): Likewise.
19348 (sse2_cvtsd2siq_2): Likewise.
19349 (sse2_cvttsd2si): Likewise.
19350 (sse2_cvttsd2siq): Likewise.
19351 (*sse2_cvtpd2dq): Likewise.
19352 (*sse2_cvttpd2dq): Likewise.
19353 (sse2_pshuflw_1): Likewise.
19354 (sse2_pshufhw_1): Likewise.
19355 (sse4a_insertqi): Likewise.
19356 (sse4a_insertq): Likewise.
19357 (ssse3_phaddwv8hi3): Set prefix_data16 and prefix_extra.
19358 (ssse3_phadddv4si3): Likewise.
19359 (ssse3_phaddswv8hi3): Likewise.
19360 (ssse3_phsubwv8hi3): Likewise.
19361 (ssse3_phsubdv4si3): Likewise.
19362 (ssse3_phsubswv8hi3): Likewise.
19363 (ssse3_pmaddubswv8hi3): Likewise.
19364 (ssse3_pmulhrswv8hi3): Likewise.
19365 (ssse3_pshufbv16qi3): Likewise.
19366 (ssse3_psign<mode>3): Likewise.
19367 (ssse3_palignrti): Likewise.
19368 (abs<mode>2): Likewise.
19369 (ssse3_phaddwv4hi3): Set prefix_extra.
19370 (ssse3_phadddv2si3): Likewise.
19371 (ssse3_phaddswv4hi3): Likewise.
19372 (ssse3_phsubwv4hi3): Likewise.
19373 (ssse3_phsubdv2si3): Likewise.
19374 (ssse3_phsubswv4hi3): Likewise.
19375 (ssse3_pmaddubswv4hi3): Likewise.
19376 (ssse3_pmulhrswv4hi3): Likewise.
19377 (ssse3_pshufbv8qi3): Likewise.
19378 (ssse3_psign<mode>3): Likewise.
19379 (ssse3_palignrdi): Likewise.
19380 (abs<mode>2): Likewise.
19381 (sse2_cvtdq2ps): Set mode to V4SF instead of V2DF.
19382 (*vec_dupv2df): Set mode to V2DF instead of V4SF.
19383 (sse2_pmovmskb): Set mode to SI instead of V2DF.
19384
f4b4a3e2
NC
193852007-04-23 Nick Clifton <nickc@redhat.com>
19386
19387 * params.def: Fix formatting of emacs local variables.
19388
9a072eb6
L
193892007-04-23 H.J. Lu <hongjiu.lu@intel.com>
19390
19391 * config/i386/sse.md (sse2_stored): Don't split to inter-unit
19392 move if inter-unit move isn't allowed.
19393 Don't split moving the first element of V2DI to DI to inter-unit
19394 move if inter-unit move isn't allowed.
19395
3b5ee6a4
RG
193962007-04-23 Richard Guenther <rguenther@suse.de>
19397
19398 * tree-ssa-sink.c (execute_sink_code): Calculate CDI_DOMINATORS
19399 and CDI_POST_DOMINATORS separately.
19400
6d16b6e7
NC
194012007-04-23 Nick Clifton <nickc@redhat.com>
19402
19403 * c.opt (Wformat-contains-nul): Add warning attribute.
19404
c90533c6
JH
194052007-04-23 Jan Hubicka <jh@suse.cz>
19406
19407 * function.c (init_function_start): Don't init line number info.
19408 (expand_function_end): Update.
19409 (reset_block_changes, record_block_change, finalize_block_changes,
19410 check_block_change, free_block_changes): Kill.
19411 * function.h (reset_block_changes, record_block_change,
7e08fa35
UB
19412 finalize_block_changes, check_block_change, free_block_changes):
19413 Remove prototypes.
c90533c6
JH
19414 (struct function): Remove ib_boundaries_block.
19415 * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
19416 Use curr_insn_locator to initialize locator.
19417 (emit_line_note): Remove.
19418 * cfgexpand.c (expand_gimple_cond_expr): Update.
19419 (construct_exit_block): Likewise.
19420 (tree_expand_cfg): Initialize/finalize locators.
19421 * expr.c (expand_expr_real): Update.
19422 * cfglayout.c (line_locators_locs, line_locators_lines,
19423 file_locators_locs, file_locators_files): Remove.
19424 (set_block_levels): Move to cfgexpand.c.
19425 (insn_locators_initialize): Remove.
19426 (pass_insn_locators_initialize): Remove.
19427 (locations_locators_locs, locations_locators_vals): New static vars.
19428 (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
19429 Likewise.
19430 (insn_locators_alloc, insn_locators_finalize,
19431 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
19432 New functions.
19433 (locator_location): New.
19434 (locator_line, locator_file): Rewrite.
19435 * rtl.h (emit_line_note): Kill.
19436 (insn_locators_alloc, insn_locators_finalize,
19437 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
19438 Declare.
19439 * tree-inline.c (initialize_cfun): Do not initialize
19440 ib_boundaries_block.
19441 * passes.c (pass_insn_locators_initialize): Remove.
19442
1f2ad84c
AP
194432007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
19444
19445 PR middle-end/31448
19446 * expr.c (reduce_to_bit_field_precision): Handle
19447 CONST_INT rtx's.
19448
8115817b
UB
194492007-04-22 Uros Bizjak <ubizjak@gmail.com>
19450
19451 PR tree-optimization/24659
19452 * optabs.h (enum optab_index) [OTI_vec_unpacks_hi,
19453 OTI_vec_unpacks_lo]: Update comment to mention floating point operands.
19454 (vec_pack_trunc_optab): Rename from vec_pack_mod_optab.
19455 * genopinit.c (optabs): Rename vec_pack_mod_optab
19456 to vec_pack_trunc_optab.
19457 * tree-vect-transform.c (vectorizable_type_demotion): Do not fail
19458 early for scalar floating point operands for NOP_EXPR.
19459 (vectorizable_type_promotion): Ditto.
19460 * optabs.c (optab_for_tree_code) [VEC_PACK_TRUNC_EXPR]: Return
19461 vec_pack_trunc_optab.
19462 (expand_binop): Rename vec_float_trunc_optab to vec_pack_mod_optab.
19463
19464 * tree.def (VEC_PACK_TRUNC_EXPR): Rename from VEC_PACK_MOD_EXPR.
19465 * tree-pretty-print.c (dump_generic_node) [VEC_PACK_TRUNC_EXPR]:
19466 Rename from VEC_PACK_MOD_EXPR.
19467 (op_prio) [VEC_PACK_TRUNC_EXPR]: Ditto.
19468 * expr.c (expand_expr_real_1): Ditto.
19469 * tree-inline.c (estimate_num_insns_1): Ditto.
19470 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
19471
19472 * config/i386/sse.md (vec_unpacks_hi_v4sf): New expander.
19473 (vec_unpacks_lo_v4sf): Ditto.
19474 (vec_pack_trunc_v2df): Ditto.
19475 (vec_pack_trunc_v8hi): Rename from vec_pack_mod_v8hi.
19476 (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
19477 (vec_pack_trunc_v2di): Rename from vec_pack_mod_v2di.
19478
19479 * config/rs6000/altivec.md (vec_pack_trunc_v8hi): Rename from
19480 vec_pack_mod_v8hi.
19481 (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
19482
19483 * doc/c-tree.texi (Expression trees) [VEC_PACK_TRUNC_EXPR]:
19484 Rename from VEC_PACK_MOD_EXPR. This expression also represent
19485 packing of floating point operands.
19486 [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR]: These expression also
19487 represent unpacking of floating point operands.
19488 * doc/md.texi (Standard Names) [vec_pack_trunc]: Update documentation.
19489 [vec_unpacks_hi]: Ditto.
19490 [vec_unpacks_lo]: Ditto.
19491
395a40e0
JH
194922007-04-22 Jan Hubicka <jh@suse.cz>
19493
19494 * final.c (rest_of_handle_final): Call
19495 targetm.asm_out.constructor/targetm.asm_out.destructor
19496 * cgraphunit.c (cgraph_build_static_cdtor): Don't do it here; set
19497 proper priority via decl_*_priority_insert.
19498 * c-common.c (c_expand_body): Likewise.
19499
e0a60731
RG
195002007-04-22 Richard Guenther <rguenther@suse.de>
19501
19502 PR tree-optimization/29789
19503 * tree-ssa-loop-im.c (stmt_cost): Adjust cost of shifts.
19504 (rewrite_reciprocal): New helper split out from
19505 determine_invariantness_stmt.
19506 (rewrite_bittest): Likewise.
19507 (determine_invariantness_stmt): Rewrite (A >> B) & 1 to
19508 A & (1 << B) if (1 << B) is loop invariant but (A >> B)
19509 is not.
19510
76fd2caa
RE
195112007-04-22 Revital Eres <eres@il.ibm.com>
19512
b7716a8e
ZD
19513 * loop-unroll.c (var_to_expand): New field to support also
19514 insns of the form x = something + x.
19515 (analyze_insn_to_expand_var): Use it.
19516 (expand_var_during_unrolling): Likewise.
76fd2caa 19517
f06b0a10
ZD
195182007-04-21 Zdenek Dvorak <dvorakz@suse.cz>
19519
19520 * predict.c: Include pointer-set.h.
19521 (bb_predictions): New variable.
19522 (tree_predicted_by_p, tree_predict_edge,
19523 remove_predictions_associated_with_edge): Use bb_predictions map
19524 instead of bb->predictions.
19525 (clear_bb_predictions, assert_is_empty): New functions.
19526 (combine_predictions_for_bb): Use bb_predictions map. Call
19527 clear_bb_predictions.
19528 (tree_estimate_probability): Create and free bb_predictions map.
19529 * Makefile.in (predict.o): Add pointer-set.h dependency.
19530 * basic-block.h (struct basic_block_def): Remove predictions
19531 field.
19532 * cfgrtl.c (rtl_verify_flow_info_1): Do not check bb->predictions.
19533
e919dfe2
KK
195342007-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
19535
19536 PR target/31480
19537 * config/sh/sh.md (length): Check if prev_nonnote_insn (insn)
19538 is null.
19539
7be97ac7
AP
195402007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
19541
19542 * timevar.c (timevar_print): Change reference of --disable-checking to
19543 --enable-checking=release. Also warn if assert checking is disabled.
19544
c8a0a219
AP
195452007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
19546
19547 PR C/30265
19548 * c-gimplifier.c (gimplify_compound_literal_expr): Mark the
19549 decl as addressable if the compound literal was marked as
19550 addressable.
19551 Mark the decl as a gimple register if it is a complex or
19552 vector decl and does not live in memory.
19553
3d95caa4
AP
195542007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
19555
19556 * tree.h (GIMPLE_TUPLE_P): Also true for PHI_NODEs.
19557 (GENERIC_NEXT): New function macro.
19558 (PHI_CHAIN): Use phi_node's new chain variable.
19559 (tree_phi_node): Change tree_common to tree_base
19560 and add the chain field.
19561 * tree-phinodes.c (make_phi_node): Don't set
19562 TREE_TYPE on the new node.
19563 * c-decl.c (lang_tree_node): Use GENERIC_NEXT
19564 instead of checking GIMPLE_TUPLE_P in chain_next.
19565 * tree-vect-transform.c
19566 (get_initial_def_for_induction): Look at
19567 PHI_RESULT_TREE for the type of the phi node.
19568 (update_vuses_to_preheader): Use PHI_CHAIN
19569 instead of TREE_CHAIN on the phi node.
19570 * tree-ssa-structalias.c (compute_points_to_sets):
19571 Likewise.
19572 (ipa_pta_execute): Likewise.
19573
84ece8ef
RG
195742007-04-21 Richard Guenther <rguenther@suse.de>
19575
19576 PR middle-end/31136
19577 * fold-const.c (fold_unary): Call fold_convert_const on the
19578 original tree.
19579
1071bcbd
AO
195802007-04-21 Alexandre Oliva <aoliva@redhat.com>
19581
19582 * gcse.c (store_killed_in_insn): Handle PARALLELs.
19583 (store_killed_in_pat): New.
19584
c7a2139b
RH
195852007-04-20 Richard Henderson <rth@redhat.com>
19586
19587 PR target/31628
19588 * config/i386/i386.c (type_has_variadic_args_p): Look for any
19589 TREE_LIST with a void_type_node value, not void_list_node exactly.
19590
fda0adca
DG
195912007-04-21 Douglas Gregor <doug.gregor@gmail.com>
19592
19593 * doc/standards.texi: Re-arrange into language-specific
19594 subsections. Add a C++ section, documenting which standards we
19595 support.
19596
285463b5
ZD
195972007-04-21 Zdenek Dvorak <dvorakz@suse.cz>
19598
19599 * tree-ssa-structalias.c (delete_points_to_sets): Free graph->complex.
19600 * tree-ssa-operands.c (finalize_ssa_vuse_ops): Free new_ops.
19601
860532df
DJ
196022007-04-20 Daniel Jacobowitz <dan@codesourcery.com>
19603
19604 * config/rs6000/sysv4.h (STARTFILE_DEFAULT_SPEC): Include
19605 ecrti.o and crtbegin.o.
19606 (LIB_DEFAULT_SPEC): Include -lc.
19607 (ENDFILE_DEFAULT_SPEC): Include crtend.o and ecrtn.o.
19608
60e93525
RH
196092007-04-20 Richard Henderson <rth@redhat.com>
19610
19611 PR target/28623
19612 * config/alpha/alpha.c (get_unaligned_address): Remove extra_offset
19613 argument; update all callers.
19614 (get_unaligned_offset): New.
19615 * config/alpha/alpha.md (extendqidi2, extendhidi2): Don't use
19616 get_unaligned_address, just pass on the address directly.
19617 (unaligned_extendqidi): Use gen_lowpart instead of open-coding
19618 the subreg in the helper patterns.
19619 (unaligned_extendqidi_le): Use get_unaligned_offset.
19620 (unaligned_extendqidi_be, unaligned_extendhidi_le): Likewise.
19621 (unaligned_extendhidi_be): Likewise.
19622 (unaligned_extendhidi): Tidy.
19623 * config/alpha/alpha-protos.h: Update.
19624
f326fd7a
RH
196252007-04-20 Richard Henderson <rth@redhat.com>
19626
19627 * config/alpha/alpha.h (CPP_SPEC, CPP_SUBTARGET_SPEC): Remove.
19628 (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
19629 * config/alpha/linux.h (CPP_SPEC): Undef before redefine.
19630 * config/alpha/linux-elf.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
19631 * config/alpha/freebsd.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
19632 (CPP_SPEC): Don't include %(cpp_subtarget).
19633 * config/alpha/netbsd.h (CPP_SPEC): Rename CPP_SUBTARGET_SPEC.
19634 (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
19635 * config/alpha/osf.h (CPP_SPEC, EXTRA_SPECS): Similarly.
19636
86122f72
JJ
196372007-04-20 Jakub Jelinek <jakub@redhat.com>
19638
a5b9afd1
JJ
19639 * config/i386/i386.c (bdesc_2arg): Use ORDERED rather than UNORDERED
19640 for __builtin_ia32_cmpordss.
19641
86122f72
JJ
19642 PR tree-optimization/31632
19643 * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
19644 and arg1 for optimizations of comparison against min/max values.
19645 Fold arg0 to arg1's type for optimizations of comparison against
19646 min+1 and max-1 values.
19647
c1673e1b
BS
196482007-04-19 Bernd Schmidt <bernd.schmidt@analog.com>
19649
19650 * reload.c (combine_reloads): When trying to use a dying register,
19651 check whether it's uninitialized and don't use if so.
19652
db136335
BM
196532007-04-19 Brooks Moses <brooks.moses@codesourcery.com>
19654
19655 * fold-const.c: Remove prototypes for native_encode_expr and
19656 native_interpret_expr.
19657 (native_encode_expr): Make non-static.
19658 (native_interpret_expr): Likewise.
19659 * tree.h: Add prototypes for the above.
19660
b6fda43f
JM
196612007-04-19 Joseph Myers <joseph@codesourcery.com>
19662
b6fda43f
JM
19663 * config/rs6000/spe.md (*frob_tf_ti, *frob_ti_tf, *frob_ti_tf_2,
19664 *mov_si<mode>_e500_subreg0, *mov_si<mode>_e500_subreg0_2,
19665 *mov_sitf_e500_subreg8, *mov_sitf_e500_subreg8_2, spe_extenddftf2,
19666 spe_fix_trunctfsi2_internal, spe_negtf2_internal, cmptfeq_gpr,
19667 tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr, tsttflt_gpr):
19668 Add length attributes.
19669
589dd995
JJ
196702007-04-19 Janis Johnson <janis187@us.ibm.com>
19671
93167356
JJ
19672 * ginclude/float.h: Check that __STDC_WANT_DEC_FP__ is defined,
19673 not that it is 1.
19674
589dd995
JJ
19675 * c-cppbuiltin.c (c_cpp_builtins): Remove definition of
19676 __STDC_WANT_DEC_FP__.
19677
f7cc5390
JM
196782007-04-19 Joseph Myers <joseph@codesourcery.com>
19679
19680 * configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu*
19681 for long double compatibility.
19682 * configure: Regenerate.
19683
d47a8b83
EB
196842007-04-19 Eric Botcazou <ebotcazou@libertysurf.fr>
19685
19686 PR rtl-optimization/29841
19687 * cfgbuild.c (control_flow_insn_p): Return TRUE for unconditional
19688 trap instructions.
19689 * sched-deps.c (sched_analyze_insn): Prevent all non-jump instructions
19690 that may cause control flow transfer from being moved.
19691
8d5d5865
JH
196922007-04-18 Jan Hubicka <jh@suse.cz>
19693
19694 * fold-const.c (div_if_zero_remainder): Do signed divide for pointer
19695 types.
19696
316fbf19 196972007-04-18 Eric Christopher <echristo@apple.com>
5083912d 19698
316fbf19
EC
19699 * config/rs6000/darwin.md (load_macho_picbase): Use link register
19700 only. Update operands.
19701 * config/rs6000/rs6000.c (rs6000_emit_prologue): Update caller.
19702 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Ditto. Move from
19703 link register to pic register.
5083912d 19704
05fb69e4
DM
197052007-04-18 Dirk Mueller <dmueller@suse.de>
19706
19707 PR diagnostic/31227
19708 * tree-vrp.c (search_for_addr_array): New.
19709 (check_array_bounds): Suppress warning about
19710 address taken of array refs if its not de-referenced.
19711
28e44f4f
DN
197122007-04-18 Dorit Nuzman <dorit@il.ibm.com>
19713
19714 * tree-vectorizer.c (destroy_loop_vec_info): Set loop->aux to NULL.
19715 * tree-vect-analyze.c (vect_analyze_loop_form): Set loop->aux.
19716
19717 * tree-vectorizer.h (NITERS_KNOWN_P): New.
316fbf19 19718 * tree-vect-analyze.c (vect_analyze_loop_form): Call NITERS_KNOWN_P
28e44f4f
DN
19719 instead of LOOP_VINFO_INT_NITERS to avoid having to geneate loop_info.
19720
316fbf19 19721 * tree-vect-analyze.c (vect_determine_vectorization_factor): Add
28e44f4f
DN
19722 dump print.
19723 (vect_analyze_operations): Fix indenetation. Fix a comment. Fix a
19724 print message.
19725 (vect_analyze_scalar_cycles): Fix indentation.
19726 (vect_enhance_data_refs_alignment): Fix check in case of peeling.
19727 (vect_mark_relevant): Include phis in relevance analysis.
19728
19729 * tree-vect-transform.c (vect_transform_loop): Add an assert.
19730
3639b3fa
AS
197312007-04-18 Anatoly Sokolov <aesok@post.ru>
19732
19733 * config/avr/avr.c (ptrreg_to_str): Replace error() with
19734 output_operand_lossage().
19735
f7c1d73d
DN
197362007-04-18 Dorit Nuzman <dorit@il.ibm.com>
19737
19738 * tree-vect-transform.c (get_initial_def_for_reduction): Clean away
19739 the unused code for reduction without adjust-in-epilog to simplify the
19740 function.
19741
638e37c2
WG
197422007-04-18 Wolfgang Gellerich <gellerich@de.ibm.com>
19743
19744 * config/s390/s390.h (S390_TDC_POSITIVE_ZERO): New constant.
19745 (S390_TDC_NEGATIVE_ZERO): New constant.
19746 (S390_TDC_POSITIVE_NORMALIZED_NUMBER): New constant.
19747 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): New constant.
19748 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): New constant.
19749 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): New constant.
19750 (S390_TDC_POSITIVE_INFINITY): New constant.
19751 (S390_TDC_NEGATIVE_INFINITY): New constant.
19752 (S390_TDC_POSITIVE_QUIET_NAN): New constant.
19753 (S390_TDC_NEGATIVE_QUIET_NAN): New constant.
19754 (S390_TDC_POSITIVE_SIGNALING_NAN): New constant.
19755 (S390_TDC_NEGATIVE_SIGNALING_NAN): New constant.
19756 (S390_TDC_INFINITY): New constant.
19757 * config/s390/s390.c (s390_canonicalize_comparison): Renamed
19758 UNSPEC_CMPINT to UNSPEC_CCU_TO_INT, added a UNSPEC_CCU_TO_INT-like
19759 optimization for UNSPEC_CCZ_TO_INT.
19760 * config/s390/s390.md ("*TDC_insn_<mode>"): New insn.
19761 ("*ccz_to_int"): New insn.
19762 ("isinf<mode>2"): New insn.
19763 (UNSPEC_CMPINT): Renamed to UNSPEC_CCU_TO_INT.
19764 (UNSPEC_CCU_TO_INT): New constant, replaces UNSPEC_CMPINT.
19765 (UNSPEC_CCZ_TO_INT): New constant.
19766
3b48ccbc
RG
197672007-04-18 Richard Guenther <rguenther@suse.de>
19768
19769 PR tree-optimization/19431
19770 PR tree-optimization/21463
19771 * tree-pass.h (pass_phiprop): Declare.
19772 * passes.c (init_optimization_passes): New phiprop pass.
19773 * tree-ssa-forwprop.c (struct phiprop_d): New structure.
19774 (phivn_valid_p): New helper function.
19775 (phiprop_insert_phi): Likewise.
19776 (propagate_with_phi): Likewise.
19777 (tree_ssa_phiprop): New propagator propagating loads
19778 through phi nodes if profitable.
19779
8cf81ddf
DN
197802007-04-18 Dorit Nuzman <dorit@il.ibm.com>
19781
19782 * tree-vect-analyze.c (process_use): New function.
19783 (vect_mark_stmts_to_be_vectorized): Factor out code to process_use.
19784 Check phis in all bbs.
19785 * tree-vectorizer.c (vect_is_simple_use): Remove a no longer relavant
19786 assert.
19787
7c11b28c
BS
197882007-04-18 Bernd Schmidt <bernd.schmidt@analog.com>
19789
19790 * reload1.c (eliminte_regs_in_insn): Use REG_EQUIV notes the same way
19791 we use REG_EQUAL.
19792
5594a6c8
AS
197932007-04-17 Anatoly Sokolov <aesok@post.ru>
19794
19795 PR target/30483
19796 * config/avr/avr.c (ptrreg_to_str): Replace gcc_unreachable() with
19797 error().
19798
ce217d75
L
197992007-04-17 H.J. Lu <hongjiu.lu@intel.com>
19800
19801 * config/i386/sse.md (sse_vmaddv4sf3): Use register_operand
19802 on "0".
19803 (sse_vmmulv4sf3): Likewise.
19804 (sse2_vmaddv2df3): Likewise.
19805 (sse2_vmmulv2df3): Likewise.
19806
a154b43a
ZD
198072007-04-17 Zdenek Dvorak <dvorakz@suse.cz>
19808
19809 PR rtl-optimization/31360
19810 * cfgloopanal.c (target_small_cost, target_pres_cost): Removed.
19811 (target_reg_cost): New.
19812 (init_set_costs): Initialize target_reg_cost. Add comments
19813 regarding the rationale of the costs.
19814 (global_cost_for_size): Renamed to...
19815 (estimate_reg_pressure_cost): ... and simplify. Decrease importance
19816 of register pressure.
19817 * tree-ssa-loop-ivopts.c (ivopts_global_cost_for_size): Use
19818 estimate_reg_pressure_cost. Add number of ivs.
19819 (determine_set_costs): Dump target_reg_cost.
6ef5231b 19820 * loop-invariant.c (gain_for_invariant): Use
a154b43a
ZD
19821 estimate_reg_pressure_cost. Removed n_inv_uses argument.
19822 (best_gain_for_invariant, find_invariants_to_move): Remove
19823 n_inv_uses.
19824 * cfgloop.h (target_small_cost, target_pres_cost): Removed.
19825 (target_reg_cost): Declare.
19826 (global_cost_for_size): Declaration removed.
19827 (estimate_reg_pressure_cost): Declare.
19828
c092b045
PB
198292007-04-17 Peter Bergner <bergner@vnet.ibm.com>
19830
19831 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Force TDmode
19832 regnos into even/odd register pairs.
19833 * config/rs6000/rs6000.h [SLOW_UNALIGNED_ACCESS]: Treat DDmode and
19834 TDmode similar to the other floating point modes.
19835 [SECONDARY_MEMORY_NEEDED]: Treat DDmode similar to DFmode.
19836 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): New
19837 define_expand's.
19838 (negdd2_fpr, absdd2_fpr, nabsdd2_fpr, negtd2_fpr, abstd2_fpr,
19839 nabstd2_fpr, movdd_hardfloat64_mfpgpr): New define_insn's.
19840 (movdd_hardfloat64): Use TARGET_MFPGPR.
19841
f2eb49dc
BS
198422007-04-17 Bernd Schmidt <bernd.schmidt@analog.com>
19843
19844 * reload1.c (delete_output_reload): Don't count output in n_inherited.
19845
19846 Revert
19847 2005-01-05 Richard Henderson <rth@redhat.com>
19848 PR rtl-opt/10692
19849 * reload1.c (do_input_reload): Restrict the optimization deleteing
19850 a previous output reload to RELOAD_FOR_INPUT.
19851
cd38ca7f
DN
198522007-04-17 Dorit Nuzman <dorit@il.ibm.com>
19853
19854 * tree-vectorizer.h (stmt_vec_info_type): Add enum value
19855 induc_vec_info_type.
19856 (vectorizable_induction): New function declaration.
19857 * tree-vect-transform.c (get_initial_def_for_induction): No need to
19858 check if already vectorized. Find first place in BB where new stmts
19859 can be inserted. Takes only one argument.
19860 (vectorizable_induction): New function.
19861 (vect_transform_stmt): Add case for induc_vec_info_type to call
19862 vectorizable_induction.
19863 (vect_transform_loop): Consider phis for vectorization.
19864 * tree-vect-analyze.c (vect_determine_vectorization_factor): Simplify
19865 condition.
316fbf19 19866 (analyze_operations): Call vectorizable_induction when analyzing phis.
cd38ca7f
DN
19867 Fix comment.
19868 (vect_mark_stmts_to_be_vectorized): Remove redundant checks.
19869 (vect_mark_relevant): Include phis in relevance analysis.
19870 (vect_mark_stmts_to_be_vectorize): Likewise.
19871 * tree-vect-patterns.c (widened_name_p): Remove obsolete asserts.
19872
39ef6592
LC
198732007-04-16 Lawrence Crowl <crowl@google.com>
19874
19875 * doc/invoke.texi (Debugging Options): Add documentation for the
19876 -femit-struct-debug options -femit-struct-debug-baseonly,
19877 -femit-struct-debug-reduced, and
19878 -femit-struct-debug-detailed[=...].
19879
19880 * c-opts.c (c_common_handle_option): Add
19881 OPT_femit_struct_debug_baseonly, OPT_femit_struct_debug_reduced,
19882 and OPT_femit_struct_debug_detailed_.
19883 * c.opt: Add specifications for
19884 -femit-struct-debug-baseonly, -femit-struct-debug-reduced,
19885 and -femit-struct-debug-detailed[=...].
19886 * opts.c (set_struct_debug_option): Parse the
19887 -femit-struct-debug-... options.
19888 * opts.c (matches_main_base, main_input_basename,
19889 main_input_baselength, base_of_path, matches_main_base): Add
19890 variables and functions to compare header base name to compilation
19891 unit base name.
19892 * opts.c (should_emit_struct_debug): Add to determine to emit a
19893 structure based on the option.
19894 (dump_struct_debug) Also disabled function to debug this
19895 function.
19896 * opts.c (handle_options): Save the base name of the
19897 compilation unit.
19898
19899 * langhooks-def.h (LANG_HOOKS_GENERIC_TYPE_P): Define.
c7a2139b 19900 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add.
39ef6592
LC
19901 This hook indicates if a type is generic. Set it by default
19902 to "never generic".
19903 * langhooks.h (struct lang_hooks_for_types): Add a new hook
19904 to determine if a struct type is generic or not.
19905 * cp/cp-tree.h (class_tmpl_impl_spec_p): Declare a C++ hook.
19906 * cp/tree.c (class_tmpl_impl_spec_p): Implement the C++ hook.
19907 * cp/cp-lang.c (LANG_HOOKS_GENERIC_TYPE_P): Override null C hook
19908 with live C++ hook.
19909
19910 * flags.h (enum debug_info_usage): Add an enumeration to describe
19911 a program's use of a structure type.
19912 * dwarf2out.c (gen_struct_or_union_type_die): Add a new parameter
19913 to indicate the program's usage of the type. Filter structs based
19914 on the -femit-struct-debug-... specification.
19915 (gen_type_die): Split into two routines, gen_type_die and
19916 gen_type_die_with_usage. gen_type_die is now a wrapper
19917 that assumes direct usage.
19918 (gen_type_die_with_usage): Replace calls to gen_type_die
19919 with gen_type_die_with_usage adding the program usage of
19920 the referenced type.
19921 (dwarf2out_imported_module_or_decl): Suppress struct debug
19922 information using should_emit_struct_debug when appropriate.
19923
5a0ed003
ILT
199242007-04-16 Ian Lance Taylor <iant@google.com>
19925
fc6827fe
ILT
19926 PR tree-optimization/31522
19927 * tree-vrp.c (vr_phi_edge_counts): New static variable.
19928 (vrp_initialize): Allocate vr_phi_edge_counts.
19929 (vrp_visit_phi_node): Don't push to infinity if we saw a new
19930 executable edge. Drop test for all constants.
19931 (vrp_finalize): Free vrp_phi_edge_counts.
19932
4075e231
ILT
19933 * doc/cpp.texi (Common Predefined Macros): Clarify description of
19934 __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
19935
5a0ed003
ILT
19936 * tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer
19937 predecessors at head rather than tail.
19938
bdede2ac
MK
199392007-04-16 Matthias Klose <doko@debian.org>
19940
86122f72
JJ
19941 * config/alpha/linux.h (CPP_SPEC): Define.
19942 * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Extend.
bdede2ac 19943
52d412e7
AH
199442007-04-16 Aldy Hernandez <aldyh@redhat.com>
19945
c7a2139b 19946 * function.h: Remove sequence_stack extern declaration.
52d412e7 19947
72120463
KH
199482007-04-16 Kazu Hirata <kazu@codesourcery.com>
19949
19950 * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Change to 64 on
19951 TARGET_FIDOA.
19952 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Change to 64 if __mfido__ is
19953 defined.
19954
14683174
AS
199552007-04-16 Anatoly Sokolov <aesok@post.ru>
19956
19957 * config/avr/avr.c (avr_arch_types): Rearranging array.
19958 (enum avr_arch): Add.
316fbf19 19959 (avr_mcu_types): Use avr_arch enumeration constants instead of
14683174
AS
19960 numbers.
19961 * config/avr/avr.h (LINK_SPEC): Simplify.
19962
8d989403
KH
199632007-04-16 Kazu Hirata <kazu@codesourcery.com>
19964
19965 * config/m68k/m68k.c (m68k_libcall_value,
19966 m68k_function_value): Use macros for register names more.
19967
de41203b
KH
19968 * config/m68k/m68k.h (FRAME_POINTER_REGNUM): Use A6_REG
19969 instead.
19970 (M68K_REGNAME): Use A6_REG.
19971 * config/m68k/m68k.md (FP_REG): Rename to A6_REG.
19972
bdbf40a5
MK
199732007-04-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
19974
19975 PR middle-end/28071
19976 * sched-int.h (struct deps): Split field 'pending_lists_length' into
19977 'pending_read_list_length' and 'pending_write_list_length'. Update
19978 comment.
19979 * sched-deps.c (add_insn_mem_dependence): Change signature. Update
19980 to handle two length counters instead of one. Update all uses.
19981 (flush_pending_lists, sched_analyze_1, init_deps): Update to handle
19982 two length counters instead of one.
19983 * sched-rgn.c (propagate_deps): Update to handle two length counters
19984 instead of one.
19985
7bb4a6be
L
199862007-04-16 H.J. Lu <hongjiu.lu@intel.com>
19987
19988 PR target/31582
19989 * config/i386/i386.c (ix86_expand_vec_set_builtin): Make a
19990 copy of source, pass it to ix86_expand_vector_set and return
19991 it as target.
19992
8dd58f01 199932007-04-16 David Ung <davidu@mips.com>
7bb4a6be 19994 Joseph Myers <joseph@codesourcery.com>
8dd58f01
DU
19995
19996 * config/mips/mips.h (PROCESSOR_74KC, PROCESSOR_74KF,
19997 PROCESSOR_74KX, TUNE_74K, GENERATE_MADD_MSUB): Define.
19998 * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
19999 Add 74K processor information.
20000 * config/mips/mips.md: Include 74k.md.
20001 (cpu): Add 74kc,74kf,74kx.
20002 (ISA_HAS_MADD_MSUB): Change to GENERATE_MADD_MSUB throughout.
20003 * config/mips/74k.md: New.
20004 * doc/invoke.texi (MIPS Options): Document 74K support.
20005
60555ced
DN
200062007-04-16 Dorit Nuzman <dorit@il.ibm.com>
20007
20008 * tree-vect-analyze.c (vect_analyze_operations): Reorganize calls to
20009 vectorizable_* functions.
20010 * tree-vect-transform.c (vectorizable_call): Add check for
20011 STMT_VINFO_RELEVANT_P, STMT_VINFO_DEF_TYPE and STMT_VINFO_LIVE_P.
20012 (vectorizable_store): likewise.
20013 (vectorizable_conversion): Add check for STMT_VINFO_DEF_TYPE.
20014 Add comments.
20015 (vectorizable_operation, vectorizable_type_demotion): Likewise.
20016 (vectorizable_type_promotion, vectorizable_load): Likewise.
20017 (vectorizable_live_operation, vectorizable_condition): Likewise.
20018 (vectorizable_assignment): Add check for STMT_VINFO_DEF_TYPE and
20019 STMT_VINFO_LIVE_P.
20020 (vect_transform_stmt): Reorganize calls to vectorizable_* functions.
20021
3bfe36dc
KH
200222007-04-15 Kazu Hirata <kazu@codesourcery.com>
20023
20024 * config/m68k/linux.h (FUNCTION_VALUE_REGNO_P): Use macros for
20025 register numbers more.
20026 * config/m68k/m68k.h (STACK_POINTER_REGNUM,
20027 FRAME_POINTER_REGNUM, STATIC_CHAIN_REGNUM,
20028 M68K_STRUCT_VALUE_REGNUM, FUNCTION_VALUE, LIBCALL_VALUE,
20029 FUNCTION_VALUE_REGNO_P): Likewise.
20030 * config/m68k/m68kelf.h (M68K_STRUCT_VALUE_REGNUM,
20031 STATIC_CHAIN_REGNUM): Likewise.
20032 * config/m68k/m68kemb.h (FUNCTION_VALUE_REGNO_P): Likewise.
20033 * config/m68k/netbsd-elf.h (M68K_STRUCT_VALUE_REGNUM,
20034 STATIC_CHAIN_REGNUM, FUNCTION_VALUE_REGNO_P): Likewise.
20035 * config/m68k/m68k.md (FP_REG): New.
20036
e3e093ec
KH
200372007-04-15 Kazu Hirata <kazu@codesourcery.com>
20038
20039 * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit
20040 alignment on fido.
20041
7fa7289d
KH
200422007-04-15 Kazu Hirata <kazu@codesourcery.com>
20043
20044 * config/i386/i386.c, config/s390/s390.c, config/s390/s390.md,
20045 tree-ssa-loop-niter.c, tree-ssa-structalias.c, tree-vrp.c: Fix
20046 comment typos.
20047
2732d767
ZD
200482007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
20049
20050 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore
20051 cold loops.
20052
aa24028d
AP
200532007-04-14 Andrew Pinski <andrew_pinski@playstation.sony.com>
20054
20055 PR c/31520
c7a2139b 20056 * c-decl.c (finish_decl): Grab the type of the decl after the call
aa24028d
AP
20057 to store_init_value.
20058
2ca2b607
SB
200592007-04-14 Steven Bosscher <steven@gcc.gnu.org>
20060
20061 * common.opt (fforward-propagate): Fix "Optimization" annotation.
20062
b1483e87
JJ
200632007-04-14 Jakub Jelinek <jakub@redhat.com>
20064
20065 PR c++/25874
7e08fa35
UB
20066 * omp-low.c (expand_omp_parallel): If child_cfun->cfg, free
20067 dominators, post dominators and cleanup cfg before returning.
b1483e87 20068
4d4f2837
BS
200692007-04-14 Bernd Schmidt <bernd.schmidt@analog.com>
20070
20071 * config/bfin/bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
20072 * config/bfin/bfin.md (movsi_insn): Delete two unused alternatives.
20073
7d33c31d
KH
200742007-04-14 Kazu Hirata <kazu@codesourcery.com>
20075
20076 * config.gcc: Recognize fido.
20077 * config/m68k/m68k-devices.def (fidoa): New.
20078 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define
20079 __mfido__.
20080 (FL_FIDOA, TARGET_FIDOA): New.
20081 * config/m68k/m68k.opt (mfidoa): New.
20082
2a6acff7
JDA
200832007-04-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20084
20085 PR middle-end/31322
20086 * dwarf2out.c (output_call_frame_info): Call assemble_external_libcall
20087 when a personality function is used.
20088
ec3643e8
BW
200892007-04-13 Bob Wilson <bob.wilson@acm.org>
20090
20091 * config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.
20092
c40ce8f3
MS
200932007-04-13 Mike Stump <mrs@apple.com>
20094
20095 * config/darwin-c.c (handle_c_option): Handle -fapple-kext here so
20096 we can...
20097 * config/darwin.opt (fapple-kext): Make C++ only.
20098 * config/darwin.c (darwin_override_options): Remove code to ensure
20099 -fapple-kext is given for C++ only.
20100
d1138d8e
RS
201012007-04-13 Richard Sandiford <richard@codesourcery.com>
20102
20103 * config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
20104 * config/mips/mips.c (override_options): Call
20105 SUBTARGET_OVERRIDE_OPTIONS, if defined.
20106
c33104d6
L
201072007-04-13 H.J. Lu <hongjiu.lu@intel.com>
20108
20109 * config/i386/i386.opt (msvr3-shlib): Removed.
20110
20111 * doc/invoke.texi: Remove -msvr3-shlib.
20112
b194a08c
L
201132007-04-13 H.J. Lu <hongjiu.lu@intel.com>
20114
20115 * config/i386/i386.opt (mpopcnt): Replace "popcount" instruction
20116 with "popcnt" instruction.
20117
9bb6aa43
RG
201182007-04-13 Richard Guenther <rguenther@suse.de>
20119
20120 PR tree-optimization/21258
20121 * tree-vrp.c (compare_case_labels): New helper.
20122 (find_switch_asserts): New function.
20123 (find_assert_locations): Call it for SWITCH_EXPRs.
20124
27ac40e2
UB
201252007-04-13 Uros Bizjak <ubizjak@gmail.com>
20126
20127 * config/i386/i386.h (X87_FLOAT_MODE_P): Check for TARGET_80387.
20128 * config/i386/i386.md (*cmpfp0): Remove check for TARGET_80387, this
20129 check is now implied in X87_FLOAT_MODE_P.
20130 (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
20131 (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
20132 (fix_trunc<mode>_i386_fisttp): Ditto.
20133 (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
20134 (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
20135 (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
20136 (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
20137 (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
20138 (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
20139 (unnamed_splitters): Ditto.
20140 * config/i386/i386.c (function_value_32): Generate FIRST_FLOAT_REG
20141 for X87_FLOAT_MODE_P mode. Override FIRST_FLOAT_REG with
20142 FIRST_SSE_REG for local functions when SSE math is enabled or
20143 for functions with sseregparm attribute.
20144 (standard_80387_constant_p): Return -1 if mode is not
20145 X87_FLOAT_MODE_P.
20146 (ix86_cc_mode): Assert that scalar mode is not DECIMAL_FLOAT_MODE_P.
20147 (ix86_expand_compare): Ditto.
20148 (ix86_expand_carry_flag_compare): Ditto.
20149 (ix86_expand_int_movcc): Check for SCALAR_FLOAT_MODE_P instead
20150 of FLOAT_MODE_P for cmp_mode and assert that cmp_mode is not
20151 DECIMAL_FLOAT_MODE_P.
20152 (ix86_preferred_output_reload_class): Use X87_FLOAT_MODE_P instead
20153 of SCALAR_FLOAT_MODE_P.
20154 (ix86_rtx_costs) [PLUS] Remove FLOAT_MODE_P and fall through to ...
20155 [MINUS]: ... here. Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P
20156 checks before FLOAT_MODE_P.
20157 [MULT]: Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P checks
20158 before FLOAT_MODE_P.
20159 [DIV]: Ditto.
20160 [NEG]: Ditto.
20161 [ABS]: Ditto.
20162 [SQRT]: Ditto.
20163 [FLOAT_EXTEND]: Use SSE_FLOAT_MODE_P.
20164
be0fe523 201652007-04-12 Paolo Bonzini <bonzini@gnu.org>
c7a2139b 20166 Charles Wilson <libtool@cwilson.fastmail.fm>
be0fe523
PB
20167
20168 * Makefile.in (stamp-as, stamp-collect-ld, stamp-nm): Remove.
20169 (libgcc.mvars): Don't depend on them.
20170 * configure.ac (as, collect-ld, nm): Create from exec-tool.in.
20171 * exec-tool.in: New.
20172
06a97569
BM
201732007-04-12 Brooks Moses <brooks.moses@codesourcery.com>
20174
20175 * doc/invoke.text (--help): Document --help=common.
20176
4557bf49
TN
201772007-04-12 Thomas Neumann <tneumann@users.sourceforge.net>
20178
20179 * stub-objc.c (objc_build_keyword_decl): Avoid C++ keywords.
20180
8cb6400c
RS
201812007-04-12 Richard Sandiford <richard@codesourcery.com>
20182
20183 * Makefile.in (insn-emit.o): Depend on $(INTEGRATE_H).
20184 * genemit.c (main): Emit #include "integrate.h".
20185 * config/mips/mips-protos.h (SYMBOL_HALF): New mips_symbol_type.
20186 (LOADGP_RTP): New mips_loadgp_style.
20187 * config/mips/mips.h: Include config/vxworks-dummy.h.
20188 (TARGET_RTP_PIC): New macro.
20189 (TARGET_USE_GOT): Return true for TARGET_RTP_PIC.
20190 (TARGET_USE_PIC_FN_ADDR_REG): Return true for TARGET_VXWORKS_RTP.
20191 (ASM_OUTPUT_ADDR_DIFF_ELT): Emit function-relative case tables
20192 for TARGET_RTP_PIC.
20193 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Define. Pass down
20194 -mvxworks-pic when using -mrtp and a PIC option.
20195 * config/mips/mips.c (mips_classify_symbol): Return SYMBOL_GOT_DISP
20196 for RTP PIC.
20197 (mips_symbolic_constant_p, mips_symbolic_address_p)
20198 (mips_symbol_insns): Handle SYMBOL_HALF.
20199 (override_options): Warn about -G and -mrtp being used together.
20200 Initialize mips_lo_relocs[SYMBOL_HALF].
20201 (mips_current_loadgp_style): Return LOADGP_RTP for RTP PIC.
20202 (mips_emit_loadgp): Handle LOADGP_RTP.
20203 (mips_in_small_data_p): Return false for TARGET_VXWORKS_RTP.
20204 * config/mips/mips.md (loadgp_rtp): New insn and splitter.
20205 (tablejump): Handle function-relative case table entries if
20206 TARGET_RTP_PIC.
20207 * config/mips/predicates.md (symbol_ref_operand): New predicate.
20208
f28d8062
RS
202092007-04-12 Richard Sandiford <richard@codesourcery.com>
20210
20211 * config/mips/mips.md (load_call<mode>): Allow any general register.
20212 destination.
20213 (sibcall_value_internal, sibcall_value_multiple_internal)
20214 (call_value_internal, call_value_split, call_value_multiple_internal)
20215 (call_value_multiple_split): Remove constraints from operand 0.
20216
dc7750b1
RS
202172007-04-12 Richard Sandiford <richard@codesourcery.com>
20218
20219 * config/mips/mips-protos.h: In comments, refer to loadgp_absolute
20220 rather than loadgp_noshared.
20221 * config/mips/mips.c (mips_emit_loadgp): Use gen_loadgp_absolute
20222 instead of gen_loadgp_noshared. Use gen_loadgp_newabi instead of
20223 gen_loadgp.
20224 * config/mips/mips.md (loadgp): Rename to...
20225 (loadgp_newabi): ...this.
20226 (loadgp_noshared): Rename to...
20227 (loadgp_absolute): ...this.
20228
006257dc
RS
202292007-04-12 Richard Sandiford <richard@codesourcery.com>
20230
20231 * config/mips/mips.c (mips_ok_for_lazy_binding_p): Always return
20232 false for locally-binding symbols.
20233 (mips_dangerous_for_la25_p): Check mips_global_symbol_p.
20234
08e7ceb3
RS
202352007-04-12 Richard Sandiford <richard@codesourcery.com>
20236
20237 * config/mips/mips-protos.h (SYMBOL_GOT_LOCAL): Rename to...
20238 (SYMBOL_GOT_PAGE_OFST): ...this.
20239 (SYMBOL_GOT_GLOBAL): Rename to...
20240 (SYMBOL_GOT_DISP): ...this.
20241 (SYMBOL_GOTOFF_GLOBAL): Rename to...
20242 (SYMBOL_GOTOFF_DISP): ...this. Update comments accordingly.
20243 * config/mips/mips.c (mips_global_symbol_p): New function.
20244 (mips_symbol_binds_local_p): Likewise.
20245 (mips_classify_symbol): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP
7e08fa35
UB
20246 and SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST. Use
20247 mips_global_symbol_p and mips_symbol_binds_local_p.
08e7ceb3
RS
20248 (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
20249 (override_options): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP,
20250 SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST and SYMBOL_GOTOFF_GLOBAL to
20251 SYMBOL_GOTOFF_DISP.
20252 (mips_ok_for_lazy_binding_p): New function.
20253 (mips_load_call_address, mips_expand_call): Use it.
20254 (mips_dangerous_for_la25_p): Likewise.
20255 * config/mips/mips.md (*xgot_hi<mode>, *xgot_lo<mode>)
20256 (*got_disp<mode>): Use got_disp_operand instead of
20257 global_got_operand. Use SYMBOL_GOTOFF_DISP instead of
20258 SYMBOL_GOTOFF_GLOBAL.
20259 (*got_page<mode>): Use got_page_ofst_operand instead of
20260 local_got_operand.
20261 * config/mips/predicates.md (const_call_insn_operand): Use
20262 SYMBOL_GOT_DISP instead of SYMBOL_GOT_GLOBAL.
20263 (global_got_operand): Rename to...
20264 (got_disp_operand): ...this and use SYMBOL_GOT_DISP instead of
20265 SYMBOL_GOT_GLOBAL.
20266 (local_got_operand): Rename to...
20267 (got_page_ofst_operand): ...this and use SYMBOL_GOT_PAGE_OFST instead
20268 of SYMBOL_GOT_LOCAL.
20269
14976818
RS
202702007-04-12 Richard Sandiford <richard@codesourcery.com>
20271
20272 * config/mips/mips.h (TARGET_SPLIT_CALLS): Check
20273 TARGET_CALL_CLOBBERED_GP.
20274 (TARGET_SIBCALLS): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
20275 (TARGET_USE_GOT, TARGET_CALL_CLOBBERED_GP): New macros.
20276 (TARGET_CALL_SAVED_GP, TARGET_USE_PIC_FN_ADDR_REG): Likewise.
20277 (STARTING_FRAME_OFFSET): Check TARGET_CALL_CLOBBERED_GP instead
20278 of TARGET_ABICALLS && !TARGET_NEWABI.
20279 (MIPS_CALL): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
20280 * config/mips/mips.c (mips_load_call_address): Check
20281 TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
20282 (mips_global_pointer): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
20283 Check TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
20284 (mips_save_reg_p): Check TARGET_CALL_SAVED_GP instead of
20285 TARGET_ABICALLS && TARGET_NEWABI.
20286 (mips_current_loadgp_style): Check TARGET_USE_GOT instead of
20287 TARGET_ABICALLS.
20288 (mips_expand_prologue): Check TARGET_OLDABI instead of !TARGET_NEWABI.
20289 (mips_expand_epilogue): Check TARGET_CALL_SAVED_GP instead of
20290 TARGET_ABICALLS && TARGET_NEWABI.
20291 (mips_output_mi_thunk): Check TARGET_USE_GOT instead of
20292 TARGET_ABICALLS. Check TARGET_CALL_SAVED_GP instead of
20293 TARGET_NEWABI. Use TARGET_USE_PIC_FN_ADDR_REG to decide
20294 whether indirect calls must use $25.
20295 (mips_extra_live_on_entry): Check TARGET_GOT instead of
20296 TARGET_ABICALLS.
20297 * config/mips/mips.md (jal_macro): Check flag_pic and
20298 TARGET_CALL_CLOBBERED_GP instead of TARGET_ABICALLS and TARGET_NEWABI.
20299 (builtin_setjmp_setup, builtin_longjmp): Check TARGET_USE_GOT
20300 instead of TARGET_ABICALLS.
20301 (exception_receiver): Check TARGET_CALL_CLOBBERED_GP instead of
20302 TARGET_ABICALLS && TARGET_OLDABI.
20303 (load_call<mode>): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
20304 (sibcall): In the comment above the define_insn, mention
20305 TARGET_USE_PIC_FN_ADDR_REG instead of TARGET_ABICALLS.
20306 * config/mips/constraints.md (c): Check TARGET_USE_PIC_FN_ADDR_REG
20307 instead of TARGET_ABICALLS.
20308
3efd5670
BS
203092007-04-12 Bernd Schmidt <bernd.schmidt@analog.com>
20310
20311 * doc/md.texi (Blackfin family constraints): Document PA and PB.
20312 * config/bfin/bfin.h (CONST_OK_FOR_P): Handle PA and PB.
20313 (MACFLAGS_MATCH_P): New macro.
20314 * config/bfin/bfin.c (print_operand): Handle MACFLAG_IS_M.
20315 (bfin_secondary_reload): Treat EVEN_AREGS and ODD_AREGS like AREGS.
20316 * config/bfin/bfin.md (MACFLAG_IS_M): New constant. Renumber some of
20317 the other MACFLAG constants.
20318 (sum_of_accumulators, lshrpdi3, ashrpdi3): New patterns.
20319 (flag_machi): Tighten constraints. Renumber some of the operands.
20320 (flag_machi_acconly): Tighten constraints. Correct operand numbers in
20321 output template.
20322 (flag_machi_parts_acconly): New pattern.
20323 (flag_macinithi): Tighten constraints. Allow any accumulator to be
20324 used.
20325 (flag_macinit1hi): Tighten constraints.
20326 (flag_mul_macv2hi_parts_acconly): New pattern.
20327
3fbee523
BS
20328 * config/bfin/lib1funcs.asm (___umulsi3_highpart, __smulsi3_highpart):
20329 Use a more efficient implementation.
20330 * config/bfin/bfin.md (umulsi3_highpart, smulsi3_highpart): Emit
20331 inline sequences when not optimizing for size.
20332
2d3649b2
BS
20333 * config/bfin/bfin.md (movhi_low2high, movhi_high2high, movhi_low2low,
20334 movhi_high2low): Delete, merge functionality into...
20335 (packv2hi): ... this pattern.
20336
9d3f9aa3
BS
20337 2007-02-11 Jie Zhang <jie.zhang@analog.com>
20338 * config/bfin/bfin.opt (msim): New option.
20339 (mcpu=): New option.
20340 * config/bfin/bfin-protos.h (enum bfin_cpu): New.
20341 (bfin_cpu_t): Typedef of enum bfin_cpu.
20342 (bfin_cpu_type): New declaration.
20343 * config/bfin/elf.h (STARTFILE_SPEC): Add support for
20344 -msim and -mcpu= options.
20345 (LIB_SPEC): Likewise.
20346 * config/bfin/bfin.c (bfin_cpu_type): Define.
20347 (bfin_handle_option): Handle -mcpu= option.
20348 * config/bfin/bfin.h (DEFAULT_CPU_TYPE): Define as BFIN_CPU_BF532.
20349 (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF531__, __ADSPBF532__,
20350 __ADSPBF533__ or __ADSPBF537__ according to the cpu type.
20351
f4de8ba6
RS
203522007-04-12 Richard Sandiford <richard@codesourcery.com>
20353
20354 * config.gcc (*-*-vxworks*): Don't add to tm_files in this stanza.
20355 (arm-wrs-vxworks, mips-wrs-vxworks, powerpc-wrs-vxworks)
20356 (powerpc-wrs-vxworksae): Use ${tm_file}.
20357 (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add svr4.h
20358 after elfos.h. Remove i386/sysv4.h and add i386/vx-common.h.
20359 * config/i386/vx-common.h: New file.
20360
b83b15da
RS
203612007-04-12 Richard Sandiford <richard@codesourcery.com>
20362
20363 * config/vxworks.h (VXWORKS_STARTFILE_SPEC): Use -l:crt0.o instead
20364 of crt0.o%s.
20365
bf259a77
AK
203662007-04-12 Andreas Krebbel <krebbel1@de.ibm.com>
20367
20368 * config/s390/s390.md ("trunctddd2"): Use TDmode for the target of
20369 ldxtr.
20370
95764818
DG
203712007-04-12 Douglas Gregor <doug.gregor@gmail.com>
20372
20373 PR c++/31078
20374 PR c++/31103
20375 * c-common.c (c_build_qualified_type): Set canonical type
316fbf19 20376 appropriately.
95764818 20377
a670437d
RG
203782007-04-12 Richard Guenther <rguenther@suse.de>
20379
20380 * tree-pretty-print.c (dump_generic_node): Print ARRAY_REF
20381 lower bound and element size if lower bound is not zero
20382 or either of the ARRAY_REF operands is set.
20383
5852948c
RG
203842007-04-12 Richard Guenther <rguenther@suse.de>
20385
20386 PR tree-optimization/24689
20387 PR tree-optimization/31307
20388 * fold-const.c (operand_equal_p): Compare INTEGER_CST array
20389 indices by value.
20390 * gimplify.c (canonicalize_addr_expr): To be consistent with
20391 gimplify_compound_lval only set operands two and three of
20392 ARRAY_REFs if they are not gimple_min_invariant. This makes
20393 it never at this place.
20394 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
20395
8c5e065b
JDA
203962007-04-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20397
20398 * pa.c (pa_som_asm_init_sections): Ensure that cfun->machine is not
20399 null before emitting a .nsubspa directive.
20400
0de107cf
DN
204012007-04-11 Diego Novillo <dnovillo@redhat.com>
20402
20403 * tree-ssa-alias.c (dump_mem_ref_stats): Do not call
20404 need_to_partition_p if there are no memory statements in the
20405 function.
20406
55a700ac
ZD
204072007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
20408
20409 * tree-data-ref.c (chrec_steps_divide_constant_p): Removed.
20410 (gcd_of_steps_may_divide_p): New function.
20411 (analyze_miv_subscript): Use gcd_of_steps_may_divide_p.
20412
0f4b25a3
BS
204132007-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
20414
20415 * reload.c (find_reloads_toplev, find_reloads_address,
20416 find_reloads_address_1, find_reloads_subreg_address): Use rtx_equal_p,
20417 not a pointer equality test, to decide if we need to call
20418 push_reg_equiv_alt_mem.
20419
1baf2906
SP
204202007-04-11 Sebastian Pop <sebastian.pop@inria.fr>
20421
20422 * tree-data-ref.c (affine_function_zero_p, constant_access_functions,
7e08fa35
UB
20423 insert_innermost_unit_dist_vector, add_distance_for_zero_overlaps):
20424 New.
1baf2906
SP
20425 (build_classic_dist_vector): Call add_distance_for_zero_overlaps.
20426
55a700ac 204272007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
0ca2faee
ZD
20428
20429 * tree-data-ref.c (add_multivariate_self_dist): Force the distance
20430 vector to be positive.
20431
e9e0aa2c
DN
204322007-04-11 Diego Novillo <dnovillo@redhat.com>
20433
20434 PR 30735
20435 PR 31090
20436 * doc/invoke.texi: Document --params max-aliased-vops and
20437 avg-aliased-vops.
20438 * tree-ssa-operands.h (get_mpt_for, dump_memory_partitions,
20439 debug_memory_partitions): Move to tree-flow.h
20440 * params.h (AVG_ALIASED_VOPS): Define.
20441 * tree-ssa-alias.c (struct mp_info_def): Remove. Update all
20442 users.
20443 (mp_info_t): Likewise.
20444 (get_mem_sym_stats_for): New.
20445 (set_memory_partition): Move from tree-flow-inline.h.
20446 (mark_non_addressable): Only clear the set of symbols for the
20447 partition if it exists.
20448 (dump_memory_partitions): Move from tree-ssa-operands.c
20449 (debug_memory_partitions): Likewise.
20450 (need_to_partition_p): New.
20451 (dump_mem_ref_stats): New.
20452 (debug_mem_ref_stats): New.
20453 (dump_mem_sym_stats): New.
20454 (debug_mem_sym_stats): New.
20455 (update_mem_sym_stats_from_stmt): New.
20456 (compare_mp_info_entries): New.
20457 (mp_info_cmp): Call it.
20458 (sort_mp_info): Change argument to a list of mem_sym_stats_t
20459 objects.
20460 (get_mpt_for): Move from tree-ssa-operands.c.
20461 (find_partition_for): New.
20462 (create_partition_for): Remove.
20463 (estimate_vop_reduction): New.
20464 (update_reference_counts): New.
20465 (build_mp_info): New.
20466 (compute_memory_partitions): Refactor.
20467 Document new heuristic.
20468 Call build_mp_info, update_reference_counts,
20469 find_partition_for and estimate_vop_reduction.
20470 (compute_may_aliases): Populate virtual operands before
20471 calling debugging dumps.
20472 (delete_mem_sym_stats): New.
20473 (delete_mem_ref_stats): New.
20474 (init_mem_ref_stats): New.
20475 (init_alias_info): Call it.
20476 (maybe_create_global_var): Remove alias_info argument.
20477 Get number of call sites and number of pure/const call sites
20478 from gimple_mem_ref_stats().
20479 (dump_alias_info): Call dump_memory_partitions first.
20480 (dump_points_to_info_for): Show how many times a pointer has
20481 been dereferenced.
20482 * opts.c (decode_options): For -O2 set --param
20483 max-aliased-vops to 500.
20484 For -O3 set --param max-aliased-vops to 1000 and --param
20485 avg-aliased-vops to 3.
20486 * fortran/options.c (gfc_init_options): Remove assignment to
20487 MAX_ALIASED_VOPS.
20488 * tree-flow-inline.h (gimple_mem_ref_stats): New.
20489 * tree-dfa.c (dump_variable): Dump memory reference
20490 statistics.
20491 Dump NO_ALIAS* settings.
20492 (referenced_var_lookup): Tidy.
20493 (mem_sym_stats): New.
20494 * tree-ssa-copy.c (may_propagate_copy): Return true if DEST
20495 and ORIG are different SSA names for a memory partition.
20496 * tree-ssa.c (delete_tree_ssa): Call delete_mem_ref_stats.
20497 * tree-flow.h (struct mem_sym_stats_d): Define.
20498 (mem_sym_stats_t): Define.
20499 (struct mem_ref_stats_d): Define.
20500 (struct gimple_df): Add field mem_ref_stats.
20501 (enum noalias_state): Define.
20502 (struct var_ann_d): Add bitfield noalias_state.
20503 (mem_sym_stats, delete_mem_ref_stats, dump_mem_ref_stats,
20504 debug_mem_ref_stats, debug_memory_partitions,
20505 debug_mem_sym_stats): Declare.
20506 * tree-ssa-structalias.c (update_alias_info): Update call
20507 sites, pure/const call sites and asm sites in structure
20508 returned by gimple_mem_ref_stats.
20509 Remove local variable IS_POTENTIAL_DEREF.
20510 Increase NUM_DEREFS if the memory expression is a potential
20511 dereference.
20512 Call update_mem_sym_stats_from_stmt.
20513 If the memory references memory, call
20514 update_mem_sym_stats_from_stmt for all the direct memory
20515 symbol references found.
20516 (intra_create_variable_infos): Set noalias_state field for
20517 pointer arguments according to the value of
20518 flag_argument_noalias.
20519 * tree-ssa-structalias.h (struct alias_info): Remove fields
20520 num_calls_found and num_pure_const_calls_found.
20521 (update_mem_sym_stats_from_stmt): Declare.
20522 * params.def (PARAM_MAX_ALIASED_VOPS): Change description.
20523 Set default value to 100.
20524 (PARAM_AVG_ALIASED_VOPS): Define.
20525
4bf371ea
RG
205262007-04-11 Richard Guenther <rguenther@suse.de>
20527
20528 PR middle-end/31530
20529 * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
20530 a * -b + c as c - a * b if we honor sign dependent rounding.
20531
266d11d8
BS
205322007-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
20533
20534 * config/bfin/bfin-protos.h (bfin_expand_movmem): Renamed from
20535 bfin_expand_strmov.
20536 * config/bfin/bfin.c (bfin_expand_prologue, bfin_delegitimize_address,
20537 bfin_function_ok_for_sibcall, split_load_immediate): Remove unused
20538 variables.
20539 (initialize_trampoline): Don't use old-style function definition.
20540 (bfin_secondary_reload): Mark IN_P argument as unused.
20541
e9793dae
SP
205422007-04-10 Sebastian Pop <sebastian.pop@inria.fr>
20543
20544 PR tree-optimization/31343
20545 * tree-chrec.h (chrec_zerop): Moved before build_polynomial_chrec.
20546 (build_polynomial_chrec): Return a scalar when the evolution is zero.
20547 * testsuite/gcc.dg/vect/pr31343.c: New.
20548
54a88090
EC
205492007-04-10 Eric Christopher <echristo@apple.com>
20550
20551 * config/i386/i386.h (X87_FLOAT_MODE_P): New.
20552 * config/i386/i386.md (*cmpfp0): Use.
20553 (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
20554 (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
20555 (fix_trunc<mode>_i386_fisttp): Ditto.
20556 (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
20557 (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
20558 (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
20559 (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
20560 (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
20561 (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
20562 (unnamed_splitters): Ditto.
20563 * config/i386/i386.c (output_fix_trunc): Assert that
20564 we're not being passed a TFmode operand.
20565
7c57be85
ZD
205662007-04-10 Zdenek Dvorak <dvorakz@suse.cz>
20567
20568 PR tree-optimization/31526
20569 * tree-inline.c (copy_cfg_body): Use last_basic_block instead of
20570 n_basic_blocks to find newly added blocks.
20571
0218c012
UB
205722007-04-10 Uros Bizjak <ubizjak@gmail.com>
20573
20574 * config/i386/i386.md (fix_trunc<mode>di_sse): Remove "x" from "xm"
20575 alternative.
20576 (fix_trunc<mode>si_sse): Ditto.
20577 (*floatsisf2_mixed, *floatsisf2_sse): Ditto.
20578 (*floatsidf2_mixed, *floatsidf2_sse): Ditto.
20579 (*floatdisf2_mixed, *floatdisf2_sse): Ditto.
20580 (*floatdidf2_mixed, *floatdidf2_sse): Ditto.
20581 (floathi<mode>2): Rename from floathisf2 and floathidf2. Macroize
20582 expander using SSEMODEF mode macro.
20583 (floatsi<mode>2): Rename from floatsisf2 and floashidf2. Macroize
20584 expander using SSEMODEF mode macro.
20585 (*floathi<mode>2_i387): Rename from *floathisf2_i387 and
20586 *floathidf2_i387. Macroize insn using X87MODEF12 mode macro.
20587 (*floatsi<mode>2_i387): Rename from *floatsisf2_i387 and
20588 *floatsidf2_i387. Macroize insn using X87MODEF12 mode macro.
20589 (*floatdi<mode>2_i387): Rename from *floatdisf2_i387 and
20590 *floatdidf2_i387. Macroize insn using X87MODEF12 mode macro.
20591 (float<mode>xf2): Rename from floathixf2, floatsixf2 and floatdixf2.
20592 Macroize insn using X87MODEF mode macro.
20593
3117d1b5
L
205942007-04-09 H.J. Lu <hongjiu.lu@intel.com>
20595
20596 * config/i386/sse.md (sse2_pinsrw): Removed.
20597 (sse2_pextrw): Renamed to ...
20598 (*sse2_pextrw): This.
20599
c141e499
JH
206002007-04-09 Jan Hubicka <jh@suse.cz>
20601
20602 PR target/27869
20603 * config/i386/sse.md
20604 (sse_vmaddv4sf3, sse_vmmulv4sf3): Remove '%' modifier.
20605 (sse_vmsmaxv4sf3_finite, sse_vmsminv4sf3_finite): Remove.
20606 (sse2_vmaddv2df3, sse2_vmmulv2df3): Remove '%' modifier.
20607 (sse2_vmsmaxv2df3_finite, sse2_vmsminv2df3_finite): Remove.
20608
6e6e19cb
JH
206092007-04-09 Jan Hubicka <jh@suse.cz>
20610
20611 * tree-ssa-ccp (maybe_fold_offset_to_component_ref): Recurse into
20612 multiple fields of union.
20613
c7b852c8
ZD
206142007-04-09 Zdenek Dvorak <dvorakz@suse.cz>
20615
20616 * cfgloopmanip.c (create_preheader): Do not use loop_preheader_edge.
20617 (create_preheaders): Check that loops are available.
20618 (fix_loop_structure): Clean up, improve comments.
20619 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa):
20620 Check that loops are available. Set LOOP_CLOSED_SSA to the loops
20621 state flags.
20622 * tree-scalar-evolution.c (scev_finalize): Clear scalar_evolution_info.
20623 * predict.c (tree_estimate_probability): Do not call
20624 calculate_dominance_info. Call create_preheaders.
20625 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Only call
20626 rewrite_into_loop_closed_ssa if LOOP_CLOSED_SSA is set in loops state
20627 flags.
20628 * cfgloop.c (loop_preheader_edge): Assert that loops have preheaders.
20629 * cfgloop.h (LOOP_CLOSED_SSA): New constant.
20630 * tree-cfg.c (tree_split_edge): Make an assert more precise.
20631 * tree-ssa-threadedge.c (thread_across_edge): Comment the function
20632 arguments.
20633
c586d32a
JH
206342007-04-08 Jan Hubicka <jh@suse.cz>
20635
20636 * tree.h (maybe_fold_offset_to_component_ref): Declare.
20637 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Export.
20638 * fold-const.c (fold_unary): Use it.
20639
136cdb22
AP
206402007-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
20641
20642 * varasm.c (assemble_variable): Remove call to
20643 lang_hooks.decls.prepare_assemble_variable.
20644 * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): Kill.
20645 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE.
20646 * langhooks.h (lang_hooks_for_decls): Remove
20647 prepare_assemble_variable.
20648
77c1632f
MS
206492007-04-08 Mike Stump <mrs@apple.com>
20650
20651 * config/i386/i386.c: Use inc/dec on Core2.
20652
cb9c159d
SB
206532007-04-08 Steven Bosscher <steven@gcc.gnu.org>
20654
20655 * langhooks.c (lhd_tree_inlining_add_pending_fn_decls,
20656 lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
20657 lhd_tree_inlining_end_inlining): Remove.
20658 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove then
20659 add_pending_fn_decls, anon_aggr_type_p, start_inlining, and
20660 end_inlining hooks.
20661 * langhooks-def.h (lhd_tree_inlining_add_pending_fn_decls,
20662 lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
20663 lhd_tree_inlining_end_inlining): Remove prototypes.
20664 (LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS,
20665 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
20666 LANG_HOOKS_TREE_INLINING_START_INLINING,
20667 LANG_HOOKS_TREE_INLINING_END_INLINING): Remove.
20668
20669 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Do
20670 not set it.
20671
d8a1f0fb
AS
206722007-04-08 Anatoly Sokolov <aesok@post.ru>
20673
20674 PR target/29932
20675 * config/avr/predicates.md (io_address_operand): Delete predicate.
20676 (low_io_address_operand): Don't use 'mode' argument.
20677 (higth_io_address_operand): Rename ...
20678 (high_io_address_operand): ... to this. Don't use 'mode' argument.
20679 * config/avr/avr.md (*sbix_branch_tmp, *sbix_branch_tmp_bit7): Adjust
20680 for above change.
20681
270c60bb
DB
206822007-04-07 Daniel Berlin <dberlin@dberlin.org>
20683
20684 Revert change removing staticp.
20685
ee57a661
AS
206862007-04-07 Anatoly Sokolov <aesok@post.ru>
20687
20688 PR target/30289
54a88090 20689 * config/avr/avr.md (*clrmemqi, *clrmemhi): Mark operand 4 as
ee57a661
AS
20690 earlyclobber.
20691
ca178f85
BK
206922007-04-07 Bruce Korb <bkorb@gnu.org>
20693
20694 * c.opt: Add -Wformat-contains-nul.
6ef5231b 20695 * c-format.c (set_Wformat): Set warn_format_contains_nul to the
ca178f85
BK
20696 -Wformat setting.
20697 (check_format_info_main): Check OPT_Wformat_contains_nul before emitting
20698 the NUL byte warning.
20699
594dc048
L
207002007-04-07 H.J. Lu <hongjiu.lu@intel.com>
20701
20702 * config/i386/i386.c (ix86_handle_option): Handle SSSE3.
20703
1df918ac
DB
207042007-04-06 Daniel Berlin <dberlin@dberlin.org>
20705
20706 * tree.c (staticp): No longer use staticp langhook.
20707 * langhooks.c (lhd_staticp): Removed.
20708 * langhooks.h (struct lang_hooks): Remove staticp.
20709 * c-common.c (c_staticp): Remove.
20710 * c-common.h (c_staticp): Ditto.
20711 * langhooks-defs.h (lhd_staticp): Ditto.
20712 (LHD_HOOKS_STATICP): Ditto
20713 * tree.h (gcc_assert_lowered): New macro.
20714
ac84e05e
ZD
207152007-04-06 Zdenek Dvorak <dvorakz@suse.cz>
20716
20717 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Add and use
20718 argument "reliable".
20719 (infer_loop_bounds_from_ref, infer_loop_bounds_from_array):
20720 Add argument "reliable". Propagate it through calls.
6ef5231b 20721 (infer_loop_bounds_from_undefined): Derive number of iterations
ac84e05e
ZD
20722 estimates from references in blocks that do not dominate loop latch.
20723 (gcov_type_to_double_int): New function.
20724 (estimate_numbers_of_iterations_loop): Use gcov_type_to_double_int
20725 and expected_loop_iterations_unbounded.
20726 * cfgloopanal.c (expected_loop_iterations_unbounded): New function.
20727 (expected_loop_iterations): Use expected_loop_iterations_unbounded.
20728 * tree-data-ref.c (estimated_loop_iterations): Export.
20729 (get_references_in_stmt): Fix -- do not return addresses of local
20730 objects.
20731 * cfgloop.h (expected_loop_iterations_unbounded,
20732 estimated_loop_iterations): Declare.
20733
4de5c5d3
AT
207342007-04-06 Andreas Tobler <a.tobler@schweiz.org>
20735
20736 * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
20737
a344e3cb
UB
207382007-04-06 Uros Bizjak <ubizjak@gmail.com>
20739
20740 * config/i386/i386.md (extend<mode>xf2): Rename from extendsfxf2
20741 and extenddfxf2. Macroize expander using X87MODEF12 mode macro.
20742 (*truncdfsf_mixed, *truncdfsf_i387, *truncdfsf2_i387_1):
20743 Use output_387_reg_move().
20744 (*truncxf<mode>2): Rename from *truncxfsf2 and truncxfdf2. Macroize
20745 expander using X87MODEF12 mode macro.
20746 (*truncxfsf2_mixed): Combine alternatives, ignore "r" alternative when
20747 choosing register preferences. Use output_387_reg_move().
20748 (*truncxfdf2_mixed): Combine alternatives, use "r" alternative
20749 instead of "x". Use output_387_reg_move().
20750 (*truncxf<mode>2_i387_noop): Rename from *truncxfsf2_i387_noop and
20751 *truncxfdf2_i387_noop. Macroize insn using X87MODEF12 mode macro.
20752 (*truncxf<mode>2_i387): Rename from *truncxfsf2_i387 and
20753 *truncxfdf2_i387. Macroize insn using X87MODEF12 mode macro.
20754 Use output_387_reg_move().
20755 (*truncxf?f_mixed splitter): Macroize splitter using X87MODEF12
20756 mode macro.
20757 (*truncxf?f_i387 splitter): Ditto.
20758
9c269bf8
DB
207592007-04-06 Daniel Berlin <dberlin@dberlin.org>
20760
20761 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
20762 LANG_HOOKS_SAFE_FROM_P.
20763 * expr.c (safe_from_p): Remove langhook call.
20764 * langhooks.h (lang_hooks): Remove safe_from_p.
20765 (lhd_safe_from_p): Remove prototype.
20766 * langhooks.c (lhd_safe_from_p): Remove.
54a88090 20767
b521dcbe
JH
207682007-04-06 Jan Hubicka <jh@suse.cz>
20769
20770 * cgraphunit.c (decide_is_function_needed): Do not keep always_inline
20771 functions.
20772
d869c351
UB
207732007-04-06 Uros Bizjak <ubizjak@gmail.com>
20774
20775 * config/i386/i386.c (output_387_reg_move): Handle memory operand[0].
20776 * config/i386/i386.md (*movsf_1, *movdf_nointeger,
20777 *movdf_integer_rex64, *movdf_integer, *movxf_nointeger,
20778 *movxf_integer): Use output_387_reg_move() for x87 reg->mem
20779 alternative.
20780 (*extendsfdf2_mixed, *extendsfdf2_i387, *extendsfxf2_i387,
20781 *extenddfxf2_i387, *truncdfsf_fast_mixed): Ditto.
20782
e4bec638
RH
207832007-04-05 Richard Henderson <rth@redhat.com>
20784
20785 * config/alpha/alpha.c (print_operand) [+]: Remove.
20786 (alpha_end_function): Print nop if call at end of function.
20787 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Remove +.
20788 * config/alpha/alpha.md (UNSPEC_LDGP1): New.
20789 (call_osf_1_er_noreturn, call_value_osf_1_er_noreturn): New.
20790 (call_osf_2_er_nogp, call_value_osf_2_er_nogp): New.
20791 (call_osf_2_er, call_value_osf_2_er): Merge the ldgp highpart into
20792 the call pattern. Update peepholes to match.
20793
44aea9ac
JJ
207942007-04-05 Janis Johnson <janis187@us.ibm.com>
20795
20796 * doc/extend.texi (Other Builtins): Add decimal float variants
20797 of signbit.
20798 * builtins.def: Ditto.
20799 * builtins.c (expand_builtin): Ditto.
20800
27120a59
UB
208012007-04-05 Uros Bizjak <ubizjak@gmail.com>
20802 H.J. Lu <hongjiu.lu@intel.com>
20803
20804 PR target/31478
20805 * config/i386/sse.md (sse2_umulv2siv2di3): Use V4SImode instead
20806 of V8HImode when calling ix86_binary_operator_ok.
20807 (sse2_pmaddwd): Call ix86_binary_operator_ok.
20808 (sdot_prodv8hi): Operands 1 and 2 must be register.
20809
fa574e51
AO
208102007-04-05 Alexandre Oliva <aoliva@redhat.com>
20811
20812 * tree-sra.c (try_instantiate_multiple_fields): Needlessly
20813 initialize align to silence bogus warning.
20814
dc808df6
AO
208152007-04-05 Alexandre Oliva <aoliva@redhat.com>
20816
20817 PR middle-end/22156
20818 * tree-sra.c (struct sra_elt): Add in_bitfld_block. Remove
20819 all_no_warning.
20820 (struct sra_walk_fns): Remove use_all parameter from use.
20821 (sra_hash_tree): Handle BIT_FIELD_REFs.
20822 (sra_elt_hash): Don't hash bitfld blocks.
20823 (sra_elt_eq): Skip them in parent compares as well. Handle
20824 BIT_FIELD_REFs.
20825 (sra_walk_expr): Don't maintain or pass down use_all_p.
20826 (scan_use): Remove use_all parameter.
20827 (scalarize_use): Likewise. Re-expand assignment to
20828 BIT_FIELD_REF of gimple_reg. De-scalarize before input or
20829 output, and re-scalarize after output. Don't mark anything
20830 for no warning.
20831 (scalarize_ldst): Adjust.
20832 (scalarize_walk_gimple_modify_statement): Likewise.
20833 (build_element_name_1): Handle BIT_FIELD_REFs.
20834 (instantiate_element): Don't warn for any element whose parent
20835 is used as a whole.
20836 (instantiate_missing_elements_1): Return the sra_elt.
20837 (canon_type_for_field): New.
20838 (try_instantiate_multiple_fields): New.
20839 (instantiate_missing_elemnts): Use them.
20840 (mark_no_warning): Removed.
20841 (generate_one_element_ref): Handle BIT_FIELD_REFs.
20842 (REPLDUP, sra_build_elt_assignment): New.
20843 (generate_copy_inout): Use them.
20844 (generate_element_copy): Likewise. Handle bitfld differences.
20845 (generate_element_zero): Don't recurse for blocks. Use
20846 sra_build_elt_assignment.
20847 (generate_one_element_int): Take elt instead of var. Use
20848 sra_build_elt_assignment.
20849 (generate_element_init_1): Adjust.
20850 (scalarize_use, scalarize_copy): Use REPLDUP.
20851 (scalarize_ldst): Move assert before dereference.
20852 (dump_sra_elt_name): Handle BIT_FIELD_REFs.
20853
21f7aaa4
SB
208542007-04-05 Steven Bosscher <steven@gcc.gnu.org>
20855
20856 * regmove.c: Fix unused variable warnings due to previous commit.
20857
a78f3e71
SB
208582007-04-05 Steven Bosscher <steven@gcc.gnu.org>
20859
20860 * regmove.c (STACK_GROWS_DOWNWARD): Don't boolean-ize.
20861 (regmove_bb_head): Remove.
20862 (copy_src_to_dest): Don't update regmove_bb_head and BB_HEAD.
20863 (regmove_optimize): Don't do unnecessary CFG fixes for non-existing
20864 problems with fixup_match_1.
20865 Don't initialize/free regmove_bb_head.
20866
20867 (reg_is_remote_constant_p): If an insn is in the same basic block
20868 but not before INSN, consider it remote, too.
20869
f9ca0dee
AS
208702007-04-05 Anatoly Sokolov <aesok@post.ru>
20871
20872 PR target/25448
54a88090 20873 * config/avr/avr.c (avr_handle_fndecl_attribute): Use the
f9ca0dee
AS
20874 DECL_ASSEMBLER_NAME, not the DECL_NAME.
20875
7706ca5d
L
208762007-04-05 H.J. Lu <hongjiu.lu@intel.com>
20877
20878 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Reformat.
20879 (CONDITIONAL_REGISTER_USAGE): Likewise.
20880
51a6c5b3
RH
208812007-04-04 Richard Henderson <rth@redhat.com>
20882
20883 * config/alpha/lib1funcs.asm: Remove unused file.
20884
b5456e04
BM
208852007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
20886
20887 PR other/31356
20888 * opts.c (print_specific_help): Fix --help=<language>
20889 header line.
20890 (common_handle_option): Support --help=common.
20891
2c4c82dd
BM
208922007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
20893
20894 PR other/31353
20895 * gcc.c (main): Do not run the linker if
20896 print_subprocess_help indicates that it shouldn't be
20897 run.
20898
5bb43e6d
BM
208992007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
20900
20901 PR doc/31355
20902 * doc/invoke.texi (--help=): Document <languages> value, fix
20903 formatting in tables of values.
20904
6acd8838
DS
209052007-04-04 Danny Smith <dannysmith.users.sourceforge.net>
20906
20907 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Don't ignore
20908 dllimport attribute of virtual methods.
20909
c6681463
CL
209102007-04-04 Chen Liqin <liqin@sunnorth.com.cn>
20911
c7a2139b
RH
20912 * config/score/crti.asm: Change _bss_start to __bss_start.
20913 * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Added.
20914 (OUTGOING_REG_PARM_STACK_SPACE) update.
20915 * config/score/score.opt: add options to make backend support
20916 score5, score5u, score7 and score7d.
20917 * config/score/score.md: Likewise.
20918 * config/score/misc.md: Likewise.
20919 * config/score/mac.md: Likewise.
20920 * doc/invoke.texi: Likewise.
20921 * doc/md.texi: update constraints define.
c6681463 20922
fdd84500
RH
209232007-04-03 Richard Henderson <rth@redhat.com>
20924
20925 * expr.c (store_expr): If get_signed_or_unsigned_type doesn't yield
20926 an appropriate type, use the mode instead.
20927
9200d6c8
RS
209282007-04-03 Richard Sandiford <richard@codesourcery.com>
20929
20930 * config.gcc (mips-wrs-vxworks): Add vx-common.h to tm_file.
20931 Set the default --with-arch setting to mips2.
20932 * config/mips/t-vxworks (MULTILIB_OPTIONS, MULTILIB_MATCHES)
20933 (MULTILIB_EXCEPTIONS): Redefine with new multilibs.
20934 (MULTILIB_OSDIRNAMES): Delete.
20935 (MULTILIB_DIRNAMES): Define.
20936 * config/mips/vxworks.h (LINK_SPEC): Add VXWORKS_LINK_SPEC.
20937 (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Define.
20938 (TARGET_OS_CPP_BUILTINS): Incorporate old SUBTARGET_CPP_SPEC
20939 definitions, except for _WRS_R3K_EXC_SUPPORT. Call
20940 VXWORKS_OS_CPP_BUILTINS.
20941 (SUBTARGET_CPP_SPEC): Redefine to VXWORKS_ADDITIONAL_CPP_SPEC.
20942 (MIPS_DEBUGGING_INFO): Undefine.
20943 (FUNCTION_PROFILER): Define to VXWORKS_FUNCTION_PROFILER.
20944
0a9430a8
JJ
209452007-04-03 Jakub Jelinek <jakub@redhat.com>
20946
20947 PR middle-end/30704
20948 * fold-const.c (native_encode_real): Encode real.c provided longs
20949 as a series of 32-bit native integers.
20950 (native_interpret_real): Interpret buffer as a series of 32-bit
20951 native integers.
20952
5be527d0
RG
209532007-04-03 Richard Guenther <rguenther@suse.de>
20954
20955 * genpreds.c (write_insn_constraint_len): Write function
20956 optimized for CONSTRAINT_LEN implementation.
20957 (write_tm_preds_h): Output insn_constraint_len inline and
20958 use it for CONSTRAINT_LEN.
20959 (write_insn_preds_c): Don't output insn_constraint_len.
20960 * doc/md.texi (define_register_constraint): Document multi-letter
20961 constraints shall have the same length if they start with the same
20962 letter.
20963
81e864cb
UB
209642007-04-03 Uros Bizjak <ubizjak@gmail.com>
20965
20966 PR target/31175
20967 * config/i386/i386.md (isinf<mode>2): Expand only when
20968 TARGET_C99_FUNCTIONS is set.
20969
577565f9
UB
209702007-04-03 Uros Bizjak <ubizjak@gmail.com>
20971
20972 * config.gcc (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file.
20973 (x86_64-*-linux*): Ditto.
20974 * config/i386/i386.opt (mpc): New option.
20975 * config/i386/i386.c (overrride_options): Handle
20976 ix87_precision_string.
20977 * config/i386/crtprec.c: New file.
20978 * config/i386/t-crtpc: Ditto.
20979 * config/i386/linux.h (ENDFILE_SPEC): Add handling of -mpc32, -mpc64
20980 and -mpc80 options.
20981 * config/i386/linux64.h (ENDFILE_SPEC): Ditto.
20982 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
20983 crtprec32.o, crtprec64.o and crtprec80.o.
20984
20985 * doc/invoke.texi (Machine Dependent Options): Add -mpc32, -mpc64
20986 and -mpc80 options.
20987 (i386 and x86-64 Options): Document -mpc32, -mpc64 and -mpc80 options.
20988
cb7ad97b
EC
209892007-04-02 Eric Christopher <echristo@apple.com>
20990
20991 * doc/invoke.texi (i386 and x86-64 Options): Document -m64
20992 limitations on darwin.
20993
c8bbabf2
AS
209942007-04-02 Anatoly Sokolov <aesok@post.ru>
20995
20996 PR target/31137
20997 * config/avr/avr.c (avr_rtx_costs): Add missing 'break' statements.
20998
f71e957e
DK
209992007-04-02 Dave Korn <dave.korn@artimi.com>
21000
ae65d512 21001 * doc/tm.texi (FUNCTION_MODE): Update and extend documentation.
cb7ad97b 21002
c82476bf
DK
210032007-04-02 Dave Korn <dave.korn@artimi.com>
21004
ae65d512
DK
21005 * libgcc2.h (exception_descriptor): Don't forward-declare.
21006 (__get_eh_table_language, __get_eh_table_version): Delete
c82476bf
DK
21007 prototypes of long-dead functions.
21008
53a853de
DB
210092007-04-01 Daniel Berlin <dberlin@dberlin.org>
21010
21011 * ebitmap.h: New file
21012 * ebitmap.c: New file
21013 * Makefile.in (ebitmap.o): New target.
21014
26cb3993
JH
210152007-04-01 Jan Hubicka <jh@suse.cz>
21016
21017 * emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit
21018 before very first instruction.
21019
210202007-04-01 Jan Hubicka <jh@suse.cz>
21021
21022 * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
21023 waring on 64bit hosts.
21024 * bitmap.h: Fix typo in bitmap_head_def.
21025
5b52976b
SB
210262007-04-01 Steven Bosscher <steven@gcc.gnu.org>
21027
21028 PR rtl-optimization/31391
21029 * cfgcleanup.c (try_optimize_cfg): If a removed label is turned
21030 into a DELETED_LABEL note, and the label is in an empty basic
21031 block, update BB_END as well as BB_HEAD.
21032
af33044f
RH
210332007-04-01 Richard Henderson <rth@redhat.com>
21034
21035 PR tree-optimization/31169
21036 * tree-vrp.c (extract_range_from_binary_expr) <RSHIFT_EXPR>: Drop
21037 to varying if the range is outside [0, prec-1].
21038
1732457d
RS
210392007-04-01 Richard Sandiford <richard@codesourcery.com>
21040
21041 PR target/31388
21042 * config/mips/mips.md (load_const_gp): New insn.
21043 * config/mips/mips.c (mips_split_symbol): Avoid using or creating
21044 the MIPS16 GP pseudo register if no_new_pseudos.
21045 (mips16_gp_pseudo_reg): Use gen_load_const_gp.
21046
ee05ef56
AP
210472007-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
21048
21049 PR target/31364
21050 * config/rs6000/rs6000.md (call): Convert to LR hard reg for
21051 secureplt.
21052 (call_value): Likewise.
21053
c9516c38 210542007-03-31 Wolfgang Bangerth <bangerth@dealii.org>
577565f9 21055 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
c9516c38
WB
21056
21057 PR 14737
21058 * doc/invoke.texi: (optimization options): Reword description
21059 of -ffast-math. Document its primary purpose.
cb7ad97b 21060
6be42dd4
RG
210612007-03-31 Richard Guenther <rguenther@suse.de>
21062
21063 * omp-low.c (splay-tree.h): Include.
21064 (lookup_decl): Replace splay-tree usage by pointer-map.
21065 (maybe_lookup_decl): Likewise.
21066 (new_omp_context): Likewise.
21067 (delete_omp_context): Likewise.
21068 * gimplify.c (splay-tree.h): Include.
21069 * tree-inline.c (insert_decl_map): Replace splay-tree usage by
21070 pointer-map.
21071 (remap_ssa_name): Likewise.
21072 (remap_decl): Likewise.
21073 (remap_type_1): Likewise.
21074 (remap_type): Likewise.
21075 (copy_body_r): Likewise.
21076 (expand_call_inline): Likewise.
21077 (clone_body): Likewise.
21078 (copy_tree_r): Likewise.
21079 (remap_save_expr): Likewise.
21080 (unsave_r): Likewise.
21081 (unsave_expr_now): Likewise.
21082 (tree_function_versioning): Likewise.
21083 (build_duplicate_type): Likewise.
21084 * tree-inline.h (pointer-set.h): Include instead of splay-tree.h.
21085 (struct copy_body_data): Replace splay-tree by pointer-map.
21086 * Makefile.in (TREE_INLINE_H): Depend on pointer-map.h,
21087 not $(SPLAY_TREE_H).
21088 (gimplify.o): Depend on $(SPLAY_TREE_H).
21089 (omp-low.p): Likewise.
21090
d54a92b5
AS
210912007-03-31 Anatoly Sokolov <aesok@post.ru>
21092
cb7ad97b 21093 * config/avr/predicates.md (even_register_operand,
d54a92b5
AS
21094 odd_register_operand): New predicates.
21095 * config/avr/avr.md (movw peephole2): New.
21096 (movw_r peephole2): New.
21097
47ecd38d
RAE
210982007-03-30 Rafael Avila de Espindola <espindola@google.com>
21099
21100 * tree.h (get_signed_or_unsigned_type): New.
21101 * fold-const.c (operand_equal_for_comparison_p): Use
21102 get_signed_or_unsigned_type instead of
21103 lang_hooks.types.signed_or_unsigned_type.
21104 * expr.c (store_expr): Ditto.
21105 * langhooks.c (get_signed_or_unsigned_type): New.
21106 (lhd_signed_or_unsigned_type): New.
21107 * langhooks.h (lhd_signed_or_unsigned_type): New.
21108 * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
21109
ccf8e764
RH
211102007-03-30 Richard Henderson <rth@redhat.com>
21111
21112 * tree-ssa-loop-ivopts.c: Include target.h.
21113 (produce_memory_decl_rtl): Pass the rtx through encode_section_info.
21114 (get_address_cost): Force SYMBOL_FLAG_LOCAL set.
21115 (force_expr_to_var_cost): Use produce_memory_decl_rtl.
21116 * Makefile.in (tree-ssa-loop-ivopts.o): Depend on TARGET_H.
21117
211182007-03-30 Richard Henderson <rth@redhat.com>
21119 Kai Tietz <kai.tietz@onevision.com>
21120
21121 * config/i386/cygming.h (DWARF2_DEBUGGING_INFO): Enable by
21122 default for 64-bit.
21123 (PREFERRED_DEBUGGING_TYPE): Prefer dwarf2 for 64-bit.
21124 (TARGET_64BIT_MS_ABI): New.
21125 (DBX_REGISTER_NUMBER): Handle 64-bit.
21126 (SIZE_TYPE, PTRDIFF_TYPE): Use long long for 64-bit.
21127 (LONG_TYPE_SIZE): Force to 32.
21128 (REG_PARM_STACK_SPACE): New.
21129 (OUTGOING_REG_PARM_STACK_SPACE): New.
21130 (REGPARM_MAX, SSE_REGPARM_MAX): New.
21131 (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
21132 (STACK_BOUNDARY): Use 128 for 64-bit.
21133 * config/i386/cygwin.asm: Use push/ret to preserve call stack.
21134 Add 64-bit implementation.
21135 * config/i386/gthr-win32.c (__gthr_win32_key_create): Mark dtor
21136 argument unused.
21137 * config/i386/i386.c (x86_64_ms_abi_int_parameter_registers): New.
21138 (override_options): Set ix86_cmodel for TARGET_64BIT_MS_ABI.
21139 Warn for -mregparm, -mrtd in 64-bit mode; force ix86_regparm
21140 for 64-bit; use TARGET_SUBTARGET64_DEFAULT.
21141 (ix86_handle_cconv_attribute): Don't warn when ignoring if
21142 TARGET_64BIT_MS_ABI.
21143 (ix86_function_arg_regno_p): Handle TARGET_64BIT_MS_ABI.
21144 (ix86_pass_by_reference): Likewise.
21145 (ix86_function_value_regno_p): Likewise.
21146 (ix86_build_builtin_va_list): Likewise.
21147 (ix86_va_start, ix86_gimplify_va_arg): Likewise.
21148 (function_arg_advance_ms_64): New.
21149 (function_arg_advance): Call it.
21150 (function_arg_ms_64): New.
21151 (function_arg): Call it.
21152 (function_value_ms_64): New.
21153 (ix86_function_value_1): Call it.
21154 (return_in_memory_ms_64): New.
21155 (ix86_return_in_memory): Call it.
21156 (setup_incoming_varargs_ms_64): New.
21157 (ix86_setup_incoming_varargs): Call it.
21158 (ix86_expand_prologue): Handle 64-bit stack probing.
21159 (legitimize_pic_address): Handle TARGET_64BIT_MS_ABI.
21160 (output_pic_addr_const): Likewise.
21161 (x86_this_parameter): Likewise.
21162 (x86_output_mi_thunk): Likewise.
21163 (x86_function_profiler): Likewise.
21164 (TARGET_STRICT_ARGUMENT_NAMING): New.
21165 * config/i386/i386.h (TARGET_SUBTARGET64_DEFAULT): New.
21166 (TARGET_64BIT_MS_ABI): New.
21167 (CONDITIONAL_REGISTER_USAGE): Handle TARGET_64BIT_MS_ABI.
21168 * config/i386/i386.md (allocate_stack_worker): Remove.
21169 (allocate_stack_worker_32): Rename from allocate_stack_worker_1;
21170 describe the clobber of eax without a match_scratch.
21171 (allocate_stack_worker_postreload): Remove.
21172 (allocate_stack_worker_64): Rename from allocate_stack_worker_rex64;
21173 describe the clobbers of rax, r10, r11 properly; use __chkstk symbol.
21174 (allocate_stack_worker_rex64_postreload): Remove.
21175 (allocate_stack): Handle 64-bit.
21176 * config/i386/i386elf (TARGET_SUBTARGET_DEFAULT): Remove.
21177 * config/i386/mingw32.h (TARGET_VERSION): Set correctly for 64-bit.
21178 (EXTRA_OS_CPP_BUILTINS): Handle 64-bit.
21179 (STANDARD_INCLUDE_DIR): Handle TARGET_64BIT_DEFAULT.
21180 (STANDARD_STARTFILE_PREFIX_1): Likewise.
21181 * config/i386/unix.h (TARGET_SUBTARGET64_DEFAULT): New.
21182 * config.build (x86_64-*-mingw*): New host.
21183 * config.host (x86_64-*-mingw*): New host.
21184 * config.gcc (x86_64-*-mingw*): New target.
21185 * gthr-win32.h (__gthread_key_create): Mark dtor unused.
21186
121de39f
RH
211872007-03-30 Richard Henderson <rth@redhat.com>
21188 Kai Tietz <kai.tietz@onevision.com>
21189
21190 * c-pragma.c (struct def_pragma_macro_value): New.
21191 (struct def_pragma_macro): New.
21192 (pushed_macro_table): New.
21193 (dpm_hash, dpm_eq): New.
21194 (handle_pragma_push_macro, handle_pragma_pop_macro): New.
21195 (init_pragma): Install them.
21196 * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
21197
6c7ac15d
AS
211982007-03-30 Anatoly Sokolov <aesok@post.ru>
21199
cb7ad97b 21200 * config/avr/avr.c (avr_override_options): Clear
6c7ac15d
AS
21201 'flag_delete_null_pointer_checks'.
21202
cb68ec50
PC
212032007-03-30 Paolo Carlini <pcarlini@suse.de>
21204
21205 PR c++/26099
21206 * c-common.h (enum rid): Add RID_HAS_NOTHROW_ASSIGN,
21207 RID_HAS_NOTHROW_CONSTRUCTOR, RID_HAS_NOTHROW_COPY,
21208 RID_HAS_TRIVIAL_ASSIGN, RID_HAS_TRIVIAL_CONSTRUCTOR,
21209 RID_HAS_TRIVIAL_COPY, RID_HAS_TRIVIAL_DESTRUCTOR,
21210 RID_HAS_VIRTUAL_DESTRUCTOR, RID_IS_ABSTRACT, RID_IS_BASE_OF,
21211 RID_IS_CONVERTIBLE_TO, RID_IS_CLASS, RID_IS_EMPTY, RID_IS_ENUM,
21212 RID_IS_POD, RID_IS_POLYMORPHIC, RID_IS_UNION, as
21213 C++ extensions.
21214 * doc/extend.texi (Extensions to the C++ Language): Add Type Traits.
21215
c7a0240a
SB
212162007-03-30 Steven Bosscher <steven@gcc.gnu.org>
21217
21218 * regmove.c: Move all of pass_stack_adjustments from here...
21219 * combine-stack-adj.c: ...to this new file.
21220 * Makefile.in: Add rules for combine-stack-adj.o.
21221
f86289d5
ZD
212222007-03-30 Zdenek Dvorak <dvorakz@suse.cz>
21223
21224 PR tree-optimization/31383
7e08fa35
UB
21225 * tree-data-ref.c (affine_function_equal_p): Do not require the
21226 vectors to have the same length.
f86289d5 21227
4f40bddf
JH
212282007-03-30 Jan Hubicka <jh@suse.cz>
21229
59af4391 21230 PR middle-end/30700
cb7ad97b 21231 * dwarf2out.c (reference_to_unused): Ask cgraph for functions
4f40bddf
JH
21232 availablility; add more sanity checking; ask varpool only about
21233 VAR_DECL.
21234
58c11467
RH
212352007-03-29 Richard Henderson <rth@redhat.com>
21236
21237 * unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
21238 to decide, but __SIZEOF_LONG_LONG__.
21239
5b77de89
RH
212402007-03-29 Richard Henderson <rth@redhat.com>
21241
21242 * emutls.c (struct __emutls_array): New.
21243 (emutls_destroy): Use it instead of casting element 0 from void*.
21244 (__emutls_get_address): Likewise.
21245
da489f73
RH
212462007-03-29 Richard Henderson <rth@redhat.com>
21247
21248 * varasm.c (initializer_constant_valid_p): Don't deny
21249 DECL_DLLIMPORT_P on functions.
21250
21251 * config/i386/cygming.h: Remove function declarations.
21252 (SUBTARGET_ENCODE_SECTION_INFO): Don't undef first.
21253 (ASM_OUTPUT_LABELREF): Remove.
21254 (COMMON_ASM_OP): Remove.
21255 (ASM_OUTPUT_COMMON): Remove.
21256 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
21257 (ASM_DECLARE_OBJECT_NAME): Use i386_pe_maybe_record_exported_symbol.
21258 (ASM_DECLARE_FUNCTION_NAME): Likewise.
21259 * config/i386/i386-interix.h (SUBTARGET_ENCODE_SECTION_INFO):
21260 Rename from TARGET_ENCODE_SECTION_INFO.
21261 * config/i386/netware.h: Likewise.
21262 * config/i386/i386-protos.h: Update.
21263 * config/i386/i386.c (ix86_function_ok_for_sibcall): Turn ifdef
21264 of TARGET_DLLIMPORT_DECL_ATTRIBUTES into straight if.
21265 (legitimate_constant_p): Reject dllimports.
21266 (dllimport_map, get_dllimport_decl): New.
21267 (legitimize_dllimport_symbol): New.
21268 (legitimize_address, ix86_expand_move): Use it.
21269 (TARGET_BINDS_LOCAL_P): Redefine for TARGET_DLLIMPORT_DECL_ATTRIBUTES.
21270 * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Remove.
21271 (SYMBOL_FLAG_DLLIMPORT, SYMBOL_REF_DLLIMPORT_P): New.
21272 (SYMBOL_FLAG_DLLEXPORT, SYMBOL_REF_DLLEXPORT_P): New.
21273 * config/i386/predicates.md (constant_call_address_operand): Only
21274 accept symbols; reject dllimport_p symbols.
21275 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Use
21276 i386_pe_maybe_record_exported_symbol.
21277 * config/i386/winnt.c (DLL_IMPORT_PREFIX, DLL_EXPORT_PREFIX): Remove.
21278 (i386_pe_determine_dllexport_p): Rename from i386_pe_dllexport_p.
21279 (i386_pe_determine_dllimport_p): Rename from i386_pe_dllimport_p;
21280 trust the setting of DECL_DLLIMPORT_P.
21281 (i386_pe_dllexport_name_p, i386_pe_dllimport_name_p): Remove.
21282 (i386_pe_mark_dllexport, i386_pe_mark_dllimport): Remove.
21283 (gen_stdcall_or_fastcall_suffix): Return NULL if no change required;
21284 tidy the argument scanning loop.
21285 (i386_pe_encode_section_info): Set SYMBOL_FLAG_DLLIMPORT and
21286 SYMBOL_FLAG_DLLEXPORT in SYMBOL_REF_FLAGS.
21287 (i386_pe_strip_name_encoding): Remove.
21288 (i386_pe_binds_local_p): New.
21289 (i386_pe_strip_name_encoding_full): Use default_strip_name_encoding.
21290 (i386_pe_output_labelref): Remove.
21291 (i386_pe_asm_output_aligned_decl_common): New.
21292 (i386_pe_maybe_record_exported_symbol): Rename from
21293 i386_pe_record_exported_symbol; check for dllexported symbols.
21294
311e3ff0
ZW
212952007-03-29 Zack Weinberg <zack@mrtock.ucsd.edu>
21296
21297 * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
21298 add comment explaining why vsnprintf cannot be used.
21299
e89886a0
DG
213002007-03-29 Douglas Gregor <doug.gregor@gmail.com>
21301
21302 PR tree-optimization/30666
21303 * tree.c (build_complex_type): When creating type names for DWARF2
21304 debug info, create TYPE_DECLs for TYPE_NAME instead of
21305 IDENTIFIER_NODEs.
21306 (build_common_tree_nodes_2): Use build_complex_type when building
21307 predefined complex types, to preserve canonical types.
21308
cab6e771
SB
213092007-03-29 Steven Bosscher <steven@gcc.gnu.org>
21310
21311 * ifcvt.c (struct noce_if_info): Add then_else_reversed field.
21312 (noce_get_alt_condition): Look at it to determine whether to
21313 reverse the condition or not.
21314 (noce_get_condition): Substitute the truth for lies.
21315 (noce_find_if_block): Set the then_else_reversed field.
21316
ed31d14c
LP
213172007-03-29 Lars Poeschel <larsi@wh2.tu-dresden.de>
21318
21319 * config/fr30/fr30.md (movdi): Do not accept immediates as the
21320 destination of this insn.
21321 * config/fr30/fr30.c (fr30_move_double): Use emit_move_insn rather
21322 than calling gen_rtx_SET directly. Use r0 to hold the value of
21323 'address + 4' rather than a stack based temporary which can be
21324 mis-optimized away.
cb7ad97b 21325
833cd70a
AK
213262007-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
21327
21328 * config/s390/s390.c (s390_secondary_input_reload_class,
21329 s390_secondary_output_reload_class): Functions removed.
21330 (s390_secondary_reload): New function.
21331 (TARGET_SECONDARY_RELOAD): Target macro defined.
21332 * config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS,
21333 SECONDARY_OUTPUT_RELOAD_CLASS): Macro definitions removed.
21334 * config/s390/s390.md ("reload_outti", "reload_outdi",
21335 "reload_indi", "reload_insi", "reload_out<mode>", "reload_in<mode>",
21336 "reload_out<mode>"): Expanders removed.
21337 ("reload<mode>_plus", "reload<mode>_nonoffmem_in",
21338 "reload<mode>_nonoffmem_out"): Expanders added.
21339
040f69eb
AK
213402007-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
21341
7e08fa35
UB
21342 * regmove.c (optimize_reg_copy_1): Don't perform DEST->SRC repair
21343 action if SRC->DEST replacement failed anyway.
040f69eb 21344
4beb5c4b
MS
213452007-03-28 Mike Stump <mrs@apple.com>
21346
21347 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
21348 * config/darwin.h (MAX_OFILE_ALIGNMENT): Fix.
ab1da110 21349 * config/rs6000/darwin.h (ASM_OUTPUT_ALIGNED_COMMON): Removed #undef.
4beb5c4b 21350
aafc814c
DR
213512007-03-28 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
21352
21353 * config.gcc: Accept barcelona as a variant of amdfam10.
21354 * config/i386/i386.c (override_options): Likewise.
21355 * doc/invoke.texi: Likewise.
cb7ad97b 21356
8975ae22
EB
213572007-03-28 Eric Botcazou <ebotcazou@adacore.com>
21358
21359 * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
21360 offsets for BIT_FIELD_REF and COMPONENT_REF.
21361
1c2e50d8
RG
213622007-03-28 Richard Guenther <rguenther@suse.de>
21363
21364 * tree.c (is_global_var): Move ...
21365 * tree-flow-inline.h (is_global_var): ... here.
21366 * tree.h (is_global_var): Remove declaration.
21367
a646aded
UB
213682007-03-28 Uros Bizjak <ubizjak@gmail.com>
21369
21370 * config/i386/i386.h (X86_TUNE_PROMOTE_HIMODE_IMUL): New tuning
21371 option.
21372 (TARGET_TUNE_PROMOTE_HIMODE_IMUL): New define. Use new tuning option.
21373 * config/i386/i386.c (ix86_tune_features): Initialize new
21374 tuning option.
21375 * config/i386/predicates.md (promotable_binary_operator): Use
21376 TARGET_TUNE_PROMOTE_HIMODE_IMUL.
21377
e701c05c
GZ
213782007-03-28 Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
21379
21380 PR target/31380
21381 * config/i386/sse.md (uminv16qi3): Use UMIN instead of UMAX.
21382
446347f9 213832007-03-28 Lars Poeschel <larsi@wh2.tu-dresden.de>
08937250
LP
21384
21385 * config/fr30/fr30.md (movsi_internal): Change destination
cb7ad97b 21386 constraint from m to V and add m to the end.
08937250 21387
52618376
CB
213882007-03-28 Christian Bruel <christian.bruel@st.com>
21389
21390 * config/sh/sh.md (movsi_i): Fix type attribute.
21391
446347f9 213922007-03-28 Christian Bruel <christian.bruel@st.com>
bbccf908
CB
21393
21394 * config/sh/sh.md (movsi_ie): Fix memory constraints attribute length.
21395 (movsf_ie): Likewise.
21396
27a0ce7d
CB
213972007-03-28 Christian Bruel <christian.bruel@st.com>
21398
21399 * config.gcc: Add sh4-300 to multilib.
21400 * config/sh/t-mlib-sh4-300: New file.
21401
99cd7dd0
AK
214022007-03-28 Andreas Krebbel <krebbel1@de.ibm.com>
21403
21404 * config/s390/s390.md ("fix_trunc<mode>di2"): New expander.
21405 ("fix_trunc<DFP:mode>di2_dfp"): New insn definition renamed from
21406 fix_trunc<mode>di2.
cb7ad97b 21407 ("fixuns_truncdddi2", "fixuns_trunctddi2"): Use
99cd7dd0
AK
21408 fix_trunc<DFP:mode>di2_dfp instead of fix_trunc<mode>di2.
21409 ("fix_truncdfsi2", "fix_truncsfsi2", "fixuns_truncdddi2",
21410 "fixuns_trunctddi2"): Whitespace fix.
21411
e318fc8f
KK
214122007-03-28 Kaz Kojima <kkojima@gcc.gnu.org>
21413
21414 * config/sh/sh.h (CALL_COOKIE_RET_TRAMP_SHIFT): Move after
21415 the definition of struct sh_args.
21416 (CALL_COOKIE_RET_TRAMP, CALL_COOKIE_STACKSEQ_SHIFT,
21417 CALL_COOKIE_INT_REG_GET): Likewise.
21418
96647293
SB
214192007-03-28 Steven Bosscher <steven@gcc.gnu.org>
21420
21421 * ifcvt.c (cond_exec_find_if_block): Return FALSE if no
21422 transformations are applied successfully.
21423
00ffc97c
DG
214242007-03-27 Douglas Gregor <doug.gregor@gmail.com>
21425
21426 * tree.c (tree_contains_struct): Permit 512 tree codes.
21427 * tree.h (tree_contains_struct): Ditto.
21428 (MAX_TREE_CODES): Ditto.
21429 (struct tree_base): Make CODE 16 bits, instead of 8 bits. Add
21430 SPARE member to store remaining padding bits.
21431
39418b53
AS
214322007-03-27 Anatoly Sokolov <aesok@post.ru>
21433
cb7ad97b 21434 * config/avr/avr.c (avr_mcu_types): Move at90usb82 device to 'avr4'
39418b53
AS
21435 architecture.
21436
a3bba767
JJ
214372007-03-27 Janis Johnson <janis187@us.ibm.com>
21438
0d74c0ee
JJ
21439 * configure.ac: Fix assembler test for powerpc*-linux decimal float.
21440 * configure: Regenerate.
21441
a3bba767
JJ
21442 * configure: Regenerate using the correct version of autoconf.
21443
214442007-03-27 Anatoly Sokolov <aesok@post.ru>
2cd11105
AS
21445
21446 * config/avr/avr.c (avr_hard_regno_mode_ok): Disallow QImode in stack
21447 pointer regs.
21448 * config/avr/avr.h (REGISTER_NAMES): Rename "__SPL__" and "__SPH__"
21449 regs to "__SP_L__" and "__SP_H__".
21450
c21c775a
RG
214512007-03-27 Richard Guenther <rguenther@suse.de>
21452
21453 * tree-dfa.c (get_ref_base_and_extent): Replace bit_offset and
cb7ad97b 21454 computations with it with a HOST_WIDE_INT variable.
c21c775a 21455
6b692a83
MS
214562007-03-26 Mike Stump <mrs@apple.com>
21457
21458 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Add
21459 objective-c-header, objective-c++-header and objc++-cpp-output
21460 support.
21461 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
21462
24bfafbc
RH
214632007-03-26 Richard Henderson <rth@redhat.com>
21464
a646aded
UB
21465 PR target/31361
21466 * config/i386/i386.c (IX86_BUILTIN_PSLLDQ128, IX86_BUILTIN_PSLLW128,
21467 IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128, IX86_BUILTIN_PSRAW128,
21468 IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128, IX86_BUILTIN_PSRLD128,
21469 IX86_BUILTIN_PSRLQ128): New.
21470 (ix86_init_mmx_sse_builtins): Add them.
21471 (ix86_expand_builtin): Expand them.
21472 * config/i386/sse.md (ashr<mode>3, lshr<mode>3, ashl<mode>3): Make
21473 operand 2 be TImode.
21474 * config/i386/emmintrin.h (_mm_slli_epi64, _mm_srai_epi16,
21475 _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
21476 _mm_srli_epi64): Mark __B const.
21477 (_mm_srli_si128, _mm_srli_si128): Fix disabled inline versions.
21478 (_mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64, _mm_sra_epi16,
cb7ad97b 21479 _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32, _mm_srl_epi64): Use
a646aded 21480 new two-vector shift builtins.
24bfafbc 21481
fa633851
ILT
214822007-03-26 Ian Lance Taylor <iant@google.com>
21483
21484 PR tree-optimization/31345
21485 * tree-vrp.c (extract_range_from_binary_expr): Turn ranges like
21486 [+INF, +INF(OVF)] into VARYING.
21487
cff4720f
ZW
214882007-03-26 Zack Weinberg <zackw@panix.com>
21489
01d419ae
ZW
21490 * gengtype-parse.c: New file.
21491 * gengtype-yacc.y: Delete.
21492 * gengtype-lex.l: Don't include gengtype-yacc.h.
21493 Define YY_DECL and yyterminate appropriately for recursive
21494 descent parser. yylval is now a string out-parameter to yylex.
21495 (HWS, EOID): New shorthand.
21496 (IWORD): Add a couple more types.
21497 (yylex): Add a setup stanza. Remove the complex rules for
21498 detecting GTY'ed types and typedefs; replace with simple
21499 keyword detectors. Adjust everything for the changed
21500 definition of yylval. Ignore all pp-directives, not just #define.
21501 (yyerror): Delete.
21502 (parse_file): Rename yybegin; do not call yyparse.
21503 (yyend): New.
21504 * gengtype.c (xasprintf): Export again.
21505 (this_file): New. Use everywhere __FILE__ was being used.
21506 (get_lang_bitmap): Special case types defined in gengtype.c.
21507 (do_typedef, new_structure): Suppress definition of certain types.
21508 (new_structure): Improve diagnostics of duplicate definitions.
21509 Make sure location_s is associated with input.h.
21510 (nreverse_pairs, define_location_structures): New functions.
21511 (main): Improve tagging of kludge types. Remove old kludges
21512 for input.h types; use define_location_structures.
21513 * gengtype.h: Update prototypes. Define token codes here.
21514 * Makefile.in: Remove all references to gengtype-yacc.
21515 Add rules for gengtype-parse.o. Adjust rules for gengtype-lex.o
21516 and gengtype.
21517 * bitmap.h (struct bitmap_head_def): Coalesce definitions,
21518 add GTY((skip)) to the field that's only conditionally there.
21519 * doc/install.texi: Document that Bison is no longer required
21520 unless building treelang.
21521
11a67599
ZW
21522 * gengtype.c: Don't include gtyp-gen.h.
21523 (srcdir): Declare here.
21524 (base_files, lang_dir_names): Allocate dynamically.
21525 (gt_files, num_gt_files, num_lang_dirs): New globals.
21526 (measure_input_list, read_input_line, read_input_list)
21527 (set_lang_bitmap): New functions.
21528 (get_base_file_bitmap): Rename get_lang_bitmap and drastically
21529 simplify, relying on read_input_list to set up the bitmaps.
21530 (main): Arguments are no longer unused. Check for correct number
21531 of command line arguments, set srcdir and srcdir_len, then call
21532 read_input_list, before doing anything else. No need to worry
21533 about duplicates in main loop.
21534 * configure.ac: Simplify the calculation of all_gtfiles.
21535 Put language tags in there. Don't set or substitute
21536 all_gtfiles_files_langs or all_gtfiles_files_frags.
21537 * Makefile.in: Revamp the way gengtype is invoked, now that it
21538 takes a file on its command line with a much simpler format.
21539 Remove or replace with gtyp-input.list all references to gtyp-gen.h.
21540 (GTFILES): Remove duplicates and C source files.
21541 * c-config-lang.in, cp/config-lang.in, objc/config-lang.in
21542 * objcp/config-lang.in: Add c-pragma.h to gtfiles.
21543 * configure: Regenerate.
21544
065ae611
ZW
21545 * gengtype.h: Remove all type definitions to gengtype.c; leave
21546 only definitions of options_p, type_p, and pair_p as opaque
21547 pointers. Update prototypes.
21548 * gengtype.c: Many type definitions moved here from gengtype.h.
21549 Consolidate type definitions at the top of the file.
21550 (xvasprintf): Delete.
21551 (xasprintf): Make static.
21552 (create_nested_pointer_option): Add 'next' parameter.
21553 (create_field_all, create_field_at): New functions.
21554 (create_field): Now a thin wrapper around create_field_all.
21555 (create_optional_field): Rename create_optional_field_ and add
21556 line argument. Original name is now a macro which supplies
21557 __LINE__.
21558 (oprintf): Use vsnprintf directly.
21559 (close_output_files): Use fatal rather than perror/exit.
21560 (note_def_vec, note_def_vec_alloc): Use create_field_at.
21561 (main): Set progname. Don't use exit.
21562 * gengtype-yacc.y (struct_fields): Use create_field_at.
21563 (option, optionseqopt): Delete.
21564 (optionseq): Consolidate productions from option here so we
21565 can use the first argument to create_option.
21566
17defa6a
ZW
21567 * gengtype-lex.l: Distinguish unions from structures in the
21568 token type. Don't call find_structure; return the tag as a string.
7e08fa35
UB
21569 * gengtype-yacc.y: Add new token types ENT_TYPEDEF_UNION and
21570 ENT_UNION. Type of these, ENT_TYPEDEF_STRUCT, and ENT_STRUCT is
21571 string. Reorganize typedef_struct production accordingly.
17defa6a
ZW
21572 Use create_nested_ptr_option.
21573 * gengtype.c (create_nested_ptr_option): New function.
21574 * gengtype.h: Declare it.
21575
95161faf
ZW
21576 * gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
21577 (string_type): Don't declare.
21578 (do_scalar_typedef): Declare.
21579 (create_scalar_type): Update prototype.
21580 * gengtype.c (string_type): Make static.
21581 (scalar_nonchar, scalar_char): New.
21582 (do_scalar_typedef): Export. Always use scalar_nonchar for the type.
21583 (resolve_typedef): Use scalar_nonchar for error recovery.
21584 (create_scalar_type): Remove name_len field. Return scalar_char
21585 or scalar_nonchar as appropriate.
21586 (adjust_field_type): Look at scalar_is_char boolean to decide whether
21587 to use string_type.
7e08fa35
UB
21588 (throughout): Use scalar_nonchar instead of calling
21589 create_scalar_type, whenever possible.
95161faf
ZW
21590 (main): Initialize scalar_char and scalar_nonchar before calling
21591 gen_rtx_next.
21592 * gengtype-lex.l: Adjust for removal of second argument to
21593 create_scalar_type. Use yylval.s instead of yylval.t when
21594 returning SCALAR.
21595 * gengtype-yacc.y: Type of SCALAR is string. Call
21596 create_scalar_type from type:SCALAR rule. Adjust for removal of
21597 second argument to create_scalar_type.
21598
4a399aef
ZW
21599 * vec.h: Remove all #if IN_GENGTYPE blocks.
21600 Add comment saying that changes may require adjustments to gengtype.
21601 * gengtype.c: Don't include coretypes.h or tm.h.
21602 Add comment to inclusion of errors.h.
21603 (note_def_vec, note_def_vec_alloc): New functions.
21604 * gengtype.h: Declare new functions.
21605 * gengtype-lex.l: Don't include coretypes.h.
21606 (YY_INPUT, macro_input, push_macro_expansion, mangle_macro_name):
21607 Delete.
21608 (update_lineno): Remove unnecessary prototype.
21609 (DEF_VEC_* rules): Simplify using note_def_vec / note_def_vec_alloc.
21610 (VEC rule): Just return VEC_TOKEN.
21611 * gengtype-yacc.y (VEC_TOKEN): New token type.
21612 (type): Add a production for VEC(a,b).
21613 * Makefile.in: Update dependencies.
21614
d287ace6
ZW
21615 * gengtype-lex.l: Remove rules for parsing pointer-to-function
21616 typedefs that use the old PARAMS macro.
21617
cff4720f
ZW
21618 * gengtype-lex.l: Remove all rules and states relating to yacc
21619 input files.
21620 * gengtype-yacc.y: Similarly.
21621 * gengtype.c (note_yacc_type): Delete function.
21622 * gengtype.h: Update prototypes.
21623
71175bf3
JM
216242007-03-26 Joseph Myers <joseph@codesourcery.com>
21625
21626 * tree-pretty-print.c (dump_generic_node): Report precision of
21627 unnamed integer types.
21628
93242b9c
SB
216292007-03-26 Steven Bosscher <steven@gcc.gnu.org>
21630
21631 * ifcvt.c (noce_try_store_flag_constants): Don't check
21632 no_new_pseudos here.
21633 (noce_try_store_flag_constants): Don't check no_new_pseudos.
21634 (noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove_arith,
21635 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
21636 noce_try_sign_mask): Likewise.
21637 (if_convert): Check no_new_pseudos here.
21638
21639 (cond_exec_process_if_block, noce_process_if_block, find_if_block):
21640 Remove prototypes.
21641 (struct noce_if_info): Add then_bb, else_bb, join_bb members.
21642 (noce_get_condition): Handle new then_else_reversed argument.
21643 (noce_init_if_info): Remove, fold into noce_find_if_block.
21644 (noce_process_if_block): Take a struct noce_if_info as the
21645 argument. Don't set up one based on ce_if_info. Update pointer
21646 references accordingly.
21647 (cond_move_process_if_block): Likewise.
21648 (process_if_block): Removed.
21649 (find_if_block): Removed. Move functionality two new functions,
21650 noce_find_if_block and cond_exec_find_if_block.
21651 (noce_find_if_block): New function. Be aware of IF-THEN-JOIN
21652 blocks and the symmetric IF-ELSE-JOIN case.
21653 (cond_exec_find_if_block): Also new function mostly based on old
21654 find_if_block and process_if_block.
21655 (find_if_header): Replace find_if_block call with separately
21656 guarded calls to noce_find_if_block and cond_exec_find_if_block.
21657 (find_cond_trap): Update noce_get_condition call.
21658 (dead_or_predicable): Likewise.
21659
85acef0e
JJ
216602007-03-26 Jakub Jelinek <jakub@redhat.com>
21661
21662 * config/i386/i386.c (IX86_BUILTIN_CMPNEPD, IX86_BUILTIN_CMPNESD):
21663 Remove.
21664 (IX86_BUILTIN_PSLLW128, IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128,
21665 IX86_BUILTIN_PSRAW128, IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128,
21666 IX86_BUILTIN_PSRLD128, IX86_BUILTIN_PSRLQ128): Remove.
21667 (ix86_init_mmx_sse_builtins): Remove v8hi_ftype_v8hi_v2di and
a646aded 21668 v4si_ftype_v4si_v2di. Remove __builtin_ia32_psllw128,
85acef0e
JJ
21669 __builtin_ia32_pslld128, __builtin_ia32_psllq128,
21670 __builtin_ia32_psrlw128, __builtin_ia32_psrld128,
21671 __builtin_ia32_psrlq128, __builtin_ia32_psraw128 and
21672 __builtin_ia32_psrad128 builtins.
21673
8dde5924
UB
216742007-03-26 Uros Bizjak <ubizjak@gmail.com>
21675
21676 * reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
21677 * config/i386/constraints.md
21678 (define_constraint "I"): Use IN_RANGE macro.
21679 (define_constraint "J"): Ditto.
21680 (define_constraint "K"): Ditto.
21681 (define_constraint "M"): Ditto.
21682 (define_constraint "N"): Ditto.
21683 (define_constraint "O"): Ditto.
21684 * config/i386/predicates.md
21685 (define_predicate "register_no_elim_operand"): Use IN_RANGE macro.
21686 (define_predicate "const_0_to_3_operand"): Ditto.
21687 (define_predicate "const_0_to_7_operand"): Ditto.
21688 (define_predicate "const_0_to_15_operand"): Ditto.
21689 (define_predicate "const_0_to_63_operand"): Ditto.
21690 (define_predicate "const_0_to_255_operand"): Ditto.
21691 (define_predicate "const_1_to_31_operand"): Ditto.
21692 (define_predicate "const_2_to_3_operand"): Ditto.
21693 (define_predicate "const_4_to_7_operand"): Ditto.
21694
a5ad2017
DE
216952007-03-25 David Edelsohn <edelsohn@gnu.org>
21696
21697 * config/rs6000/rs6000.c (rs6000_emit_prologue): Always clobber LR
21698 in SImode for save_world.
21699 * config/rs6000/altivec.md (save_world, restore_world): Convert to
21700 LR hard reg.
21701
5773afc5
DN
217022007-03-25 Dorit Nuzman <dorit@il.ibm.com>
21703
21704 PR tree-optimization/30784
21705 * fold-const.c (fold_ternary): Handle CONSTRUCTOR in case
21706 BIT_FIELD_REF.
21707
3ece6cc2
RE
217082007-03-25 Revital Eres <eres@il.ibm.com>
21709
cff4720f
ZW
21710 * tree-if-conv.c (if_convertible_gimple_modify_stmt_p):
21711 Fold movement_possibility function into it.
3ece6cc2 21712
e65a3857
DE
217132007-03-25 David Edelsohn <edelsohn@gnu.org>
21714
21715 * config/rs6000/darwin.md (load_macho_picbase): Ignore operand 0.
21716 (load_macho_picbase_{si,di}): Convert to LR hard reg.
21717 (call_indirect_nonlocal_darwin64): Same.
21718 (call_nonlocal_darwin64): Same.
21719 (call_value_indirect_nonlocal_darwin64): Same.
21720 (call_value_nonlocal_darwin64): Same.
21721 (sibcall_nonlocal_darwin64): Same.
21722 (sibcall_value_nonlocal_darwin64): Same.
21723 (sibcall_symbolic_64): Same.
21724 (sibcall_value_symbolic_64): Same.
21725 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
21726 LR pseudo.
21727 (rs6000_emit_load_toc_table): Same.
21728 * config/rs6000/altivec.md (restore_world): Convert to LR hard reg.
21729 * config/rs6000/rs6000.md (mulh_call): Convert to LR hard reg.
21730 (mull_call): Same.
21731 (divss_call): Same.
21732 (divus_call): Same.
21733 (quoss_call): Same.
21734 (quous_call): Same.
21735 (load_toc_v4_pic_si): Same
21736 (load_toc_v4_PIC_1): Same.
21737 (load_toc_v4_PIC_1b): Same.
21738 (call_indirect_aix{32,64}): Same.
21739 (call_value_indirect_aix{32,64}): Same.
21740 (call): Same.
21741 (call_value): Same.
21742 (call_local{32,64}): Same.
21743 (call_value_local{32,64}): Same.
21744 (call_indirect_nonlocal_aix{32,64}): Same.
21745 (call_nonlocal_aix{32,64}): Same.
21746 (call_value_indirect_nonlocal_aix{32,64}): Same.
21747 (call_value_nonlocal_aix{32,64}): Same.
21748 (call_indirect_nonlocal_sysv<mode>): Same.
21749 (call_nonlocal_sysv<mode>): Same.
21750 (call_value_indirect_nonlocal_sysv<mode>): Same.
21751 (call_value_nonlocal_sysv<mode>): Same.
21752 (sibcall): Same.
21753 (sibcall_local{32,64}): Same.
21754 (sibcall_value_local{32,64}): Same.
21755 (sibcall_nonlocal_aix{32,64}): Same.
21756 (sibcall_value_nonlocal_aix{32,64}): Same.
21757 (sibcall_nonlocal_sysv<mode>): Same.
21758 (sibcall_value): Same.
21759 (sibcall_value_nonlocal_sysv<mode>): Same.
21760
3303be15
PB
217612007-03-24 Paul Brook <paul@codesourcery.com>
21762
21763 * config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
21764 * config/arm/linux-eabi.h: Remove legacy syscall hack.
21765
13f70342
RH
217662007-03-24 Richard Henderson <rth@redhat.com>
21767
21768 * config/ia64/constraints.md: New file.
21769 * config/ia64/predicates.md: Replace CONST_OK_FOR_? with
21770 satisfies_constraint_?.
21771 * config/ia64/ia64.c (ia64_move_ok, ia64_legitimate_constant_p,
21772 ia64_reload_gp, spill_restore_mem, ia64_expand_prologue,
21773 ia64_expand_epilogue, ia64_split_return_addr_rtx, ia64_rtx_costs,
21774 ia64_output_mi_thunk): Likewise.
21775 (ia64_const_ok_for_letter_p): Remove.
21776 (ia64_const_double_ok_for_letter_p): Remove.
21777 (ia64_extra_constraint): Remove.
21778 * config/ia64/ia64.h (REG_CLASS_FROM_LETTER): Remove.
21779 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L,
21780 CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O, CONST_OK_FOR_P,
21781 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_G,
21782 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT,
21783 EXTRA_MEMORY_CONSTRAINT): Remove.
21784 * config/ia64/ia64.md: Include constriants.md. Replace
21785 CONST_OK_FOR_? with satisfies_constraint_?.
21786
79b87c74
MM
217872007-03-23 Michael Meissner <michael.meissner@amd.com>
21788 H.J. Lu <hongjiu.lu@intel.com>
21789
21790 * config/dfp-bit.h (DPD_BID_NAME): New macro to give either the
21791 DPD or BID name.
21792 (name macros): Use DPD_BID_NAME to convert names properly.
21793
21794 * optabs.c (DECIMAL_PREFIX): Prefix string to use for the current
21795 decimal floating point format.
21796 (init_floating_libfuncs): Change decimal functions so that they
21797 have a "bid_" prefix if the decimal system uses the BID format,
21798 and "dpd_" prefix if the decimal system uses the DPD format.
21799 (init_interclass_conv_libfuncs): Ditto.
21800 (init_intraclass_conv_libfuncs): Ditto.
21801
21802 * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
21803 using the BID format.
21804
21805 * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
21806 whether we are using the BID decimal format.
21807 * configure: Regenerate.
21808
21809 * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
21810 the compiler has decimal floating point enabled. Define
21811 __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
21812 instead of DPD.
21813
21814 * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
21815 using the BID format.
21816
21817 * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
21818 whether we are using the BID decimal format.
21819 * configure: Regenerate.
21820
21821 * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
21822 the compiler has decimal floating point enabled. Define
21823 __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
21824 instead of DPD.
21825
21826 * doc/install.texi (--enable-decimal-float): Document BID and DPD
21827 options, and that it is enabled for i386/x86_64 systems.
21828
21829 * Makefile.in (enable_decimal_float): New.
21830 (DECNUMFMT): New.
21831 (DECNUMINC): Add -I$(DECNUMFMT).
21832 (DECNUM_H): Mov decimal32.h, decimal64.h and decimal128.h
21833 to $(DECNUMFMT) from $(DECNUM).
21834
21835 * configure.ac: Support * --enable-decimal-float={no,yes,bid,dpd}.
21836 Substitute enable_decimal_float.
21837 * configure: Regenerated.
21838
21839 PR other/30529
21840 * config/dfp-bit.c (__dec_byte_swap): Use uint32_t instead of
21841 unsigned long.
21842
21843 * configure.ac: Enable decimal float for x86_64-*-linux*.
21844 * configure: Regenerated.
21845
21846 PR other/30530
21847 * dfp.c (decimal_real_arithmetic): Use decimal128FlipSign and
21848 decimal128ClearSign to flip and clear the sign bit in decimal128.
21849 (decimal_real_maxval): Set decimal128SetSign to set the sign
21850 bit in decimal128.
21851
f870ab63
ILT
218522007-03-23 Ian Lance Taylor <iant@google.com>
21853
21854 * fold-const.c (fold_binary): Correct warning for X - c >= X.
21855
ed3d212b
ILT
218562007-03-23 Ian Lance Taylor <iant@google.com>
21857
21858 * tree-dump.c (dump_files): Correct comment.
21859
c8539275
ILT
218602007-03-23 Ian Lance Taylor <iant@google.com>
21861
21862 * tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
21863
ad21dab7
SB
218642007-03-23 Steven Bosscher <steven@gcc.gnu.org>
21865
21866 * tracer.c (tracer): Don't take FLAGS argument. Assert we are
21867 in cfglayout mode. Don't go into and out of cfglayout mode.
21868 Link the blocks in the order of the constructed traces.
21869 (rest_of_handle_tracer): Adjust call to tracer.
21870 * loop-init.c (rtl_loop_init): Assert we are in cfglayout mode.
21871 Don't go into cfglayout mode.
21872 (rtl_loop_done): Don't go out of cfglayout mode.
21873 * cfglayout.c (relink_block_chain): New function, split out from...
21874 (fixup_reorder_chain): ...here. Remove redundant checking.
21875 (cfg_layout_finalize): Don't clear the header, footer, and aux
21876 fields here, move the code to do so to relink_block_chain. Likewise
21877 for free_original_copy_tables.
21878 * rtl.h (tracer): Update prototype.
21879 * bb-reorder.c (reorder_basic_blocks): Don't take FLAGS argument.
21880 Assert we are in cfglayout mode. Don't go into and out of cfglayout
21881 mode. Use relink_block_chain to serialize the CFG according to the
21882 new basic block order. Move targetm.cannot_modify_jumps_p check from
21883 here...
21884 (gate_handle_reorder_blocks): ...to here.
21885 (duplicate_computed_gotos): Move targetm.cannot_modify_jumps_p check
21886 from here...
21887 (gate_duplicate_computed_gotos): ...to here.
21888 (rest_of_handle_reorder_blocks): Don't see if anything has changed,
21889 something always changes when going into and out of cfglayout mode.
21890 Perform an expensive cfg cleanup while going into cfglayout mode.
21891 Always update liveness information on HAVE_conditional_execution
21892 targets. Reserialize the basic blocks and go out of cfglayout mode.
21893 * reg-stack.c: Include cfglayout.h.
21894 (rest_of_handle_stack_regs): Go into and out of cfglayout mode around
21895 the call to reorder_basic_blocks.
21896 * basic-block.h (reorder_basic_blocks): Update prototype.
21897 (relink_block_chain): New prototype.
21898 * passes.c (pass_outof_cfg_layout_mode): Move after cse2.
21899
00f9e1ca
JM
219002007-03-23 Joseph Myers <joseph@codesourcery.com>
21901
21902 * config/mips/mips.md (type, hazard, *movdi_32bit,
21903 *movdi_gp32_fp64, *movdi_64bit, *movsi_internal, movcc,
21904 *movhi_internal, *movqi_internal, *movsf_hardfloat,
21905 *movdf_hardfloat_64bit, *movdf_hardfloat_32bit, *movdf_softfloat,
21906 movv2sf_hardfloat_64bit, load_df_low, load_df_high, store_df_high,
21907 mthc1, mfhc1): Change xfer instruction type to mfc and mtc, as
21908 applicable.
21909 (movcc): Change first xfer to multi.
21910 * config/mips/24k.md, config/mips/4100.md, config/mips/4300.md,
21911 config/mips/5000.md, config/mips/5400.md, config/mips/5500.md,
21912 config/mips/5k.md, config/mips/7000.md, config/mips/9000.md,
21913 config/mips/generic.md: Change reservations using "xfer" to use
21914 "mfc,mtc".
21915 * config/mips/sb1.md (ir_sb1_mtxfer): Use "mtc" instead of
21916 using match_operand.
21917 (ir_sb1_mfxfer): Use "mfc" instead of using match_operand.
21918 * config/mips/sr71k.md (ir_sr70_xfer_from): Use "mfc" instead of
21919 examining mode.
21920 (ir_sr70_xfer_to): Use "mtc" instead of examining mode.
21921
2ed941ec
RH
219222007-03-22 Richard Henderson <rth@redhat.com>
21923
21924 * config/i386/i386.c: Remove unnecessary function declarations.
21925 Move targetm definition, and all related macros, to the end of
21926 the file. Resort some functions to put definitions before uses.
21927 (ix86_attribute_table): Make static. Move to end of file.
21928 (ix86_gimplify_va_arg): Make static.
21929
ee2f65b4
RH
219302007-03-22 Richard Henderson <rth@redhat.com>
21931
21932 * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
21933 don't increase local_regparm with force_align_arg_pointer check.
21934 (ix86_function_sseregparm): Assert 32-bit.
21935 (type_has_variadic_args_p): New.
21936 (ix86_return_pops_args): Early exit for 64-bit. Reindent; use
21937 type_has_variadic_args_p.
21938 (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
21939 (init_cumulative_args): Remove TARGET_DEBUG_ARG. Remove zero_cum;
21940 use memset instead. Do maybe_vaarg check first; skip attribute
21941 tests if true; skip attribute tests for 64-bit.
21942 (construct_container): Remove TARGET_DEBUG_ARG.
21943 (function_arg_advance_32, function_arg_advance_64): Split out ...
21944 (function_arg_advance): ... from here.
21945 (function_arg_32, function_arg_64): Split out ...
21946 (function_arg): ... from here.
21947 (ix86_pass_by_reference): Tidy.
21948 (ix86_function_value_regno_p): Rearrange w/ switch on regno.
21949 (function_value_32): New, from parts of ix86_function_value
21950 and ix86_value_regno.
21951 (function_value_64): New, from parts of ix86_function_value
21952 and ix86_libcall_value.
21953 (ix86_function_value_1): New.
21954 (ix86_function_value, ix86_libcall_value): Use it.
21955 (return_in_memory_32, return_in_memory_64): Split out ...
21956 (ix86_return_in_memory): ... from here.
21957 (ix86_struct_value_rtx): Skip for 64-bit.
21958 (ix86_libcall_value, ix86_value_regno): Remove.
21959 (setup_incoming_varargs_64): Split out ...
21960 (ix86_setup_incoming_varargs): ... from here.
21961 (ix86_va_start): Remove TARGET_DEBUG_ARG.
21962 (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
21963 * config/i386/i386-protos.h (ix86_function_value): Remove.
21964 * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.
21965
92ef5cf9
MLI
219662007-03-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21967
21968 PR other/23572
21969 * c-lex.c (interpret_float): On overflow, emit pedantic warning if
21970 infinities not supported, otherwise emit warning if -Woverflow. On
21971 underflow, emit warning if -Woverflow.
21972 * real.c (real_from_string): Return -1 if underflow, +1 if overflow
21973 and 0 otherwise.
21974 * real.h (real_from_string): Update declaration
cff4720f 21975
ac294f0b
KT
219762007-03-22 Kai Tietz <kai.tietz@onevision.com>
21977 Richard Henderson <rth@redhat.com>
21978
21979 * defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
21980 * calls.c (compute_argument_block_size, expand_call,
21981 emit_library_call_value_1): Don't ifdef OUTGOING_REG_PARM_STACK_SPACE.
21982 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
21983 * function.c (STACK_DYNAMIC_OFFSET): Likewise.
21984 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Update.
21985 * config/alpha/unicosmk.h, config/bfin/bfin.h, config/iq2000/iq2000.h,
21986 config/mips/mips.h, config/mn10300/mn10300.h, config/mt/mt.h,
21987 config/pa/pa.h, config/rs6000/rs6000.h, config/score/score.h,
21988 config/spu/spu.h, config/v850/v850.h (OUTGOING_REG_PARM_STACK_SPACE):
21989 Set to 1.
21990
9a200623
JM
219912007-03-22 Joseph Myers <joseph@codesourcery.com>
21992
21993 * c-incpath.c (add_sysroot_to_chain): New.
21994 (merge_include_chains): Add sysroot argument. Call
21995 add_sysroot_to_chain if sysrooted.
21996 (register_include_chains): Update call to merge_include_chains.
21997 * doc/cppopts.texi: Document use of '=' in include directory
21998 arguments.
21999
8766652c
UB
220002007-03-22 Uros Bizjak <ubizjak@gmail.com>
22001
22002 * config/i386/i386.md (cmp<mode>): Rename from cmpsf and cmpdf.
22003 Macroize expander using SSEMODEF mode macro. Use SSE_FLOAT_MODE_P.
22004 (*cmpfp_<mode>): Rename from *cmpfp_sf and *cmpfp_df. Macroize
22005 insn pattern using X87MODEF12 mode macro.
cff4720f 22006
1e4c6dc5
SP
220072007-03-21 Seongbae Park <seongbae.park@gmail.com>
22008
22009 * regmove.c (regmove_optimize): Use reg_mentioned_p
22010 instead of reg_overlap_mentioned_p for DST.
22011
2cbac420
MS
220122007-03-21 Mike Stump <mrs@apple.com>
22013
22014 * c.opt: Fixup for Objective-C/C++.
22015
8766652c 220162007-03-21 Steve Ellcey <sje@cup.hp.com>
17939c98
SE
22017
22018 * explow.c (convert_memory_address): Fold memory reference when
22019 POINTERS_EXTEND_UNSIGNED < 0
22020
b5cf27d7
RH
220212007-03-21 Richard Henderson <rth@redhat.com>
22022
22023 PR target/31245
22024 * config/i386/emmintrin.h (__m128i, __m128d): Mark may_alias.
22025 * config/i386/mmintrin.h (__m64): Likewise.
22026 * config/i386/xmmintrin.h (__m128): Likewise.
22027
cb717c40
RS
220282007-03-21 Richard Sandiford <richard@codesourcery.com>
22029
22030 * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
22031 (VXWORKS_OS_CPP_BUILTINS): Define.
22032 * config/i386/vxworks.h (VXWORKS_CPU_DEFINE): Fold into...
22033 (TARGET_OS_CPP_BUILTINS): ...here. Use VXWORKS_OS_CPP_BUILTINS.
22034
2a450639
RS
220352007-03-21 Richard Sandiford <richard@codesourcery.com>
22036
22037 * rtl.h (constant_pool_reference_p): Delete.
22038 (find_constant_src): Declare.
22039 * rtlanal.c (find_constant_src): New function.
22040 * simplify-rtx.c (constant_pool_reference_p): Delete.
22041 * config/i386/i386.md: Use find_constant_src instead of
22042 constant_pool_reference_p/avoid_constant_pool_reference pairs.
22043
7c0ffd09
RS
220442007-03-21 Richard Sandiford <richard@codesourcery.com>
22045
22046 * doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
22047 * c-cppbuiltin.c (c_cpp_builtins): Define them.
22048
9f296620
MM
220492007-03-20 Mark Mitchell <mark@codesourcery.com>
22050
22051 * config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
22052 * config/arm/arm.c (arm_elf_asm_cdtor): New function.
22053 (arm_elf_asm_constructor): Use it.
22054 (arm_elf_asm_destructor): New function.
22055
5dab4eb7
BS
220562007-03-20 Bernd Schmidt <bernd.schmidt@analog.com>
22057
22058 * jump.c (mark_jump_label): Treat SEQUENCE specially.
22059
caaf5345
NS
220602007-03-20 Nathan Sidwell <nathan@codesourcery.com>
22061
22062 * config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.
22063
2b312005
AH
220642007-03-19 Andrew Haley <aph@redhat.com>
22065
22066 PR tree-optimization/31264
22067 * tree-vrp.c (register_edge_assert_for_1): Don't look though
22068 VIEW_CONVERT_EXPRs.
22069
fb406162
PB
220702007-03-19 Paolo Bonzini <bonzini@gnu.org>
22071
22072 PR rtl-optimization/30907
22073 * fwprop.c (forward_propagate_into): Never propagate inside a loop.
22074 (fwprop_init): Always call loop_optimizer_initialize.
22075 (fwprop_done): Always call loop_optimizer_finalize.
22076 (fwprop): We always have loop info now.
22077 (gate_fwprop_addr): Remove.
22078 (pass_fwprop_addr): Use gate_fwprop as gate.
22079
22080 PR rtl-optimization/30841
22081 * df-problems.c (df_ru_local_compute, df_rd_local_compute,
22082 df_chain_alloc): Call df_reorganize_refs unconditionally.
22083 * df-scan.c (df_rescan_blocks, df_reorganize_refs): Change
22084 refs_organized to refs_organized_size.
22085 (df_ref_create_structure): Use refs_organized_size instead of
22086 bitmap_size if refs had been organized, and keep refs_organized_size
22087 up-to-date.
22088 * df.h (struct df_ref_info): Change refs_organized to
22089 refs_organized_size.
22090 (DF_DEFS_SIZE, DF_USES_SIZE): Use refs_organized_size instead of
22091 bitmap_size.
22092
0a85ec2e
MM
220932007-03-19 Mark Mitchell <mark@codesourcery.com>
22094
22095 * except.c (output_function_exception_table): Do not reference the
22096 EH personality routine for functions that do not require an
22097 exception table.
22098
5d8a5434
JJ
220992007-03-20 Jakub Jelinek <jakub@redhat.com>
22100
79077aea
JJ
22101 PR c/30762
22102 * c-typeck.c (convert_for_assignment): Call comptypes for
22103 RECORD_TYPE or UNION_TYPE.
22104
5d8a5434
JJ
22105 PR inline-asm/30505
22106 * reload1.c (reload): Do invalid ASM checking after
22107 cleanup_subreg_operands.
22108
1799efef
JL
221092007-03-19 Jeff Law <law@redhat.com>
22110
22111 * tree-cfg.c (find_taken_edge): Tighten conditions for
22112 optimizing computed gotos.
22113
1e395249
MM
221142007-03-19 Michael Matz <matz@suse.de>
22115
22116 * builtins.c (expand_builtin_sync_operation,
22117 expand_builtin_compare_and_swap,
22118 expand_builtin_lock_test_and_set): Care for extending CONST_INTs
22119 correctly.
22120
22121 * config/i386/sync.md (sync_double_compare_and_swapdi_pic,
22122 sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint
22123 for operand 3.
22124
17f6dbbf
AK
221252007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
22126
22127 * doc/tm.texi: Add brackets around the return type of
22128 TARGET_SECONDARY_RELOAD.
22129
60e0af94
AP
221302007-03-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
22131 Richard Guenther <rguenther@suse.de>
22132
22133 PR tree-optimization/31254
22134 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
22135 Use handled_component_p () where appropriate. Continue
22136 propagating into the rhs if we propagated into an INDIRECT_REF
22137 on the lhs.
22138
609e7e80
AK
221392007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
22140
22141 * config/s390/s390.md (op_type attribute): RRR instruction type added.
22142 (FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros.
22143 (xde, xdee): Mode attributes adjusted to support DFP modes.
22144 (RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added.
22145 ("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters,
cff4720f 22146 DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3",
609e7e80
AK
22147 "*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3",
22148 "*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3",
22149 "div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
cff4720f 22150 "*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP
609e7e80
AK
22151 numbers.
22152 ("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31",
22153 "movsf"): Insn definitions removed.
22154 ("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp",
22155 "*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2",
22156 "trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn
22157 definitions added.
22158 ("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>",
22159 "reload_in<mode>", "reload_out<mode>"): Expander added.
22160 ("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"):
22161 Expander removed.
22162
7b6baae1
AK
221632007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
22164
22165 * config/s390/s390.md: Only non-functional changes. Renamed
22166 FPR mode macro to BFP all over the file.
22167
85dae55a
AK
221682007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
22169
22170 * config/s390/s390.md (UNSPEC_COPYSIGN): New constant.
22171 (op_type attribute): RRF instruction type added.
22172 (fT0): New mode attribute.
22173 ("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
22174 "*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added.
7e08fa35
UB
22175 * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new
22176 instruction no secondary memory is needed when moving DFmode values
22177 between GPRs and FPRs.
85dae55a 22178
3443392a
AK
221792007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
22180
22181 * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
22182 inverted and documentation adjusted.
22183 ("mhard-dfp", "msoft-dfp"): New options.
22184 * config/s390/s390.c (s390_handle_arch_option): New architecture
22185 switch: z9-ec.
22186 (override_options): Sanity checks for the new options added.
22187 * config.gcc: New architecture switch: z9-ec.
22188 * config/s390/s390.h (processor_flags): PF_DFP added.
22189 (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
22190 (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
22191 when the bit is NOT set so remove it from the defaults.
22192
c413e1b5
AK
221932007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
22194
22195 * genemit.c (main): Print include statement for dfp.h.
22196 * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
22197 is not available.
22198
1375006a
HPN
221992007-03-19 Hans-Peter Nilsson <hp@axis.com>
22200
22201 * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
22202
c6ac6e82
KK
222032007-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
22204
22205 PR target/31022
22206 * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
22207 instead of PATTERN.
22208
ecc418c4
JDA
222092007-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22210
22211 * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
22212 attr_length_call, output_call, output_indirect_call): Cleanup
22213 formatting of targetm calls.
22214
c3271cd2
HPN
222152007-03-19 Hans-Peter Nilsson <hp@axis.com>
22216
22217 * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
22218
d4f2728a
JDA
222192007-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22220
22221 * pa.md: Add fpstore_load and store_fpload instruction types. Provide
7e08fa35
UB
22222 reservation, bypass and anti-bypass descriptions for these
22223 instructions. Update move patterns.
d4f2728a
JDA
22224 * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
22225 TYPE_FPSTORE.
cff4720f 22226
f58e9734
DN
222272007-03-18 Dorit Nuzman <dorit@il.ibm.com>
22228
22229 * tree-vect-transform.c (get_initial_def_for_induction): Replace
22230 GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
22231 (get_initial_def_for_reduction): Likewise.
22232
1e4816bc
DB
222332007-03-16 Daniel Berlin <dberlin@dberlin.org>
22234
22235 Fix PR tree-optimization/29922
22236 * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
22237 (get_representative): Removed.
22238 (value_dies_in_block_x): Update for rvuse removal.
22239 (valid_in_sets): Update for renaming of vuses_dies_in_block_x.
22240 (compute_antic_aux): Handle when PHI nodes appear in
cff4720f 22241 non-single-successors.
1e4816bc
DB
22242 (dump_bitmap_of_names): Removed.
22243 (compute_antic_safe): Renamed and removed rvuse calculation.
22244 Calculate only antic safe.
22245 (insert_into_preds_of_block): Remove assert.
22246 (execute_pre): Update for renamed functions.
22247 (defer_or_phi_translate_block): New function.
cff4720f 22248
44c7bd63
KH
222492007-03-17 Kazu Hirata <kazu@codesourcery.com>
22250
22251 * config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
22252 config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
22253 typos.
22254 * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
22255 Follow spelling conventions.
22256
79b8aae8
KH
22257 * tree-data-ref.h: Remove the prototype for analyze_array.
22258
c492dc9a
DN
222592007-03-17 Dorit Nuzman <dorit@il.ibm.com>
22260
22261 PR tree-optimization/31041
22262 * tree-vect-transform.c (get_initial_def_for_induction): Call
22263 force_gimple_operand.
cff4720f 22264
44d974b5 222652007-03-17 Olga Golovanevsky <olga@il.ibm.com>
cff4720f 22266
44d974b5
OG
22267 * ipa-type-escape.c (look_for_casts) : Revert code to use
22268 handled_component_p due to ada test a-numaux.adb.
22269
604e4ce3
KH
222702007-03-17 Kazu Hirata <kazu@codesourcery.com>
22271
22272 * final.c (final_scan_insn): Alter the condition of a
22273 conditional trap if we have nonstandard CC.
22274
cf0eb7a1
AO
222752007-03-16 Alexandre Oliva <aoliva@redhat.com>
22276
22277 * configure.ac: Remove excess quoting from asm line 0 test.
22278 * configure: Rebuilt.
22279
07231d4f
MLI
222802007-03-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22281
22282 * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
22283 * c-common.c (convert_and_check): Move warning logic to...
22284 (warnings_for_convert_and_check): ...here. Define.
22285 * c-common.h (warnings_for_convert_and_check): Declare.
cff4720f 22286
aefd2606
JDA
222872007-03-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22288
22289 * pa.c (attr_length_call): Partially revert change of 2007-03-09.
22290 (output_call): Likewise.
22291
ad8577fd
RS
222922007-03-16 Richard Sandiford <richard@codesourcery.com>
22293
22294 * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
22295
d95d45fd
RS
222962007-03-16 Richard Sandiford <richard@codesourcery.com>
22297
22298 * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
22299
0935e091
UB
223002007-03-16 Uros Bizjak <ubizjak@gmail.com>
22301
22302 * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
22303 opteron, athlon-64 and athlon-fx processor_alias_table entries.
22304
a9549792
SP
223052007-03-16 Sebastian Pop <sebastian.pop@inria.fr>
22306
22307 PR tree-optimization/31183
cff4720f 22308 * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
a9549792
SP
22309 Use double_int instead of unsigned int for representing access_strides.
22310 * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
22311
7b1737d0
RG
223122007-03-16 Richard Guenther <rguenther@suse.de>
22313
22314 PR tree-optimization/31146
22315 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
22316 to allow recursion of forward_propagate_addr_expr.
22317 (forward_propagate_addr_into_variable_array_index): Likewise.
22318 (forward_propagate_addr_expr): Likewise.
22319 (tree_ssa_forward_propagate_single_use_vars): Likewise.
22320 (forward_propagate_addr_expr_1): Recurse on simple copies
22321 instead of propagating into them. Do so for useless conversions
22322 as well.
22323 (forward_propagate_addr_expr): Clean up unused statements after
22324 recursion.
22325
4c8a652e
RG
223262007-03-16 Richard Guenther <rguenther@suse.de>
22327
22328 * builtins.c (expand_builtin_cexpi): Use the right argument
22329 for the expansion via cexp.
22330
43bc306a
AO
223312007-03-16 Alexandre Oliva <aoliva@redhat.com>
22332
22333 * configure.ac: Don't require ELF binutils to tolerate # 0 "".
22334 * configure: Rebuilt.
22335
8857ae1c
AO
223362007-03-16 Alexandre Oliva <aoliva@redhat.com>
22337
22338 PR debug/29906
22339 * dwarf2out.c (force_type_die): Adjust comment.
22340 (dwarf2out_imported_module_or_decl): Handle base AT_import types.
22341
ba502ad6
DD
223422007-03-15 DJ Delorie <dj@redhat.com>
22343
22344 * config/frv/predicates.md (minmax_operator): Don't check operands
22345 here.
22346
9bdb685e
ZD
223472007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
22348
22349 * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
22350 Update constant estimates of number of iterations.
22351 (record_nonwrapping_iv): Add "upper" argument. "data_size_bounds_p"
22352 argument renamed to "realistic".
22353 (compute_estimated_nb_iterations): Removed.
22354 (record_niter_bound): New function.
22355 (idx_infer_loop_bounds): For possible but unlikely tail arrays,
22356 call record_nonwrapping_iv with upper = false.
22357 (infer_loop_bounds_from_signedness): Pass upper argument to
22358 record_nonwrapping_iv.
22359 (estimate_numbers_of_iterations_loop): Do not call
22360 compute_estimated_nb_iterations. Record estimate based on profile
22361 information. Initialize the constant estimates of number of
22362 iterations.
22363 * tree-data-ref.c (estimated_loop_iterations): Return the recorded
22364 estimates.
22365 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
22366 number of iterations is too small.
22367 * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
22368 (EST_NOT_AVAILABLE): Removed.
22369 (struct loop): Replace estimated_nb_iterations by any_upper_bound,
22370 nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
22371 fields.
22372
17b236ed
ZD
223732007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
22374
22375 * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
22376 Handle NE_EXPR guards.
22377
9b439fe1
MLI
223782007-03-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22379
22380 PR c++/24924
22381 * c-opts.c (c_common_post_options): Handle C++ post-processing here.
22382 Set also -pedantic-errors by default for the preprocessor unless
22383 -fpermissive is given.
cff4720f 22384
34a24c11
RG
223852007-03-15 Richard Guenther <rguenther@suse.de>
22386
22387 PR middle-end/29719
22388 PR middle-end/31161
22389 * builtins.c (expand_builtin_cexpi): As a fallback if we
22390 don't have builtins for sincos or cexp create a function
22391 declaration for cexp and expand to a call to that.
22392 (expand_builtin_int_roundingfn): Always fall
22393 back to floor/ceil and its variants even if they may be
22394 not available.
22395
49ea3702
SB
223962007-03-15 Steven Bosscher <steven@gcc.gnu.org>
22397
22398 PR middle-end/31159
22399 * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
22400 jump tables, move the call to delete_dead_jumptables from here...
22401 (cfg_layout_finalize): ...to here. But rebuild jump labels first.
22402 * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
22403 don't allow merging of blocks that try_redirect_by_replacing_jump
22404 also does not handle when not optimizing.
22405
419452fe
UB
224062007-03-15 Uros Bizjak <ubizjak@gmail.com>
22407 Francois-Xavier Coudert <coudert@clipper.ens.fr>
22408
22409 * config/i386/i386.md (x86_sahf_1): Correctly handle
22410 HAVE_AS_IX86_SAHF.
22411
68b8830a
UB
224122007-03-15 Uros Bizjak <ubizjak@gmail.com>
22413
22414 PR target/31167
22415 * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
22416 x86_64_general_operand as operand[2] predicate. Remove "iF"
22417 from operand constraints and use "e" constraint instead.
22418 (*subti3_1, *subti3_1 splitter): Ditto.
22419 (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
22420 operand[1] predicate.
22421
c4d8f83b
SP
224222007-03-14 Sebastian Pop <sebastian.pop@inria.fr>
22423
22424 * tree-loop-linear.c (gather_interchange_stats): For multidimensional
22425 arrays, multiply the access strides by the size of the sub-array.
22426 * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
22427
38ca3765
UB
224282007-03-14 Uros Bizjak <ubizjak@gmail.com>
22429
22430 * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
22431 the configured assembler supports the sahf mnemonic.
22432 * configure: Regenerate.
22433 * config.in: Regenerate.
22434
22435 * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
22436 emit "sahf" or ".byte\t0x9e" as asm template.
22437
e9f64629
MM
224382007-03-14 Michael Meissner <michael.meissner@amd.com>
22439
22440 PR 31018
22441 * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
22442 option to replace hard coded TARGET_xxx in md file.
22443 (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
22444 (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
22445 (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
22446 (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
22447 (X86_TUNE_NOT_UNPAIRABLE): Ditto.
22448 (X86_TUNE_NOT_VECTORMODE): Ditto.
22449 (TUNE_SHORTEN_X87_SSE): Use new tuning option.
22450 (TUNE_AVOID_VECTOR_DECODE): Ditto.
22451 (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
22452 (TUNE_SLOW_IMUL_IMM8): Ditto.
22453 (TUNE_MOVE_M1_VIA_OR): Ditto.
22454 (TUNE_NOT_UNPAIRABLE): Ditto.
22455 (TUNE_NOT_VECTORMODE): Ditto.
cff4720f 22456
e9f64629
MM
22457 * config/i386/i386.c (ix86_tune_features): Fill in new tuning
22458 options.
22459
22460 * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
22461 tuning options instead of hard coded TARGET_xxx.
22462 (fix ssemode peephole2's): Ditto.
22463 (imul peephole2's): Ditto.
22464 (movsi_or): Ditto.
22465 (movdi_or_rex64): Ditto.
22466 (move peephole2): Ditto.
22467 (not peephole2's): Ditto.
22468
62e00e94
DM
224692007-03-14 Dirk Mueller <dmueller@suse.de>
22470
22471 * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
22472 * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
22473 * c-parser.c (c_parser_if_body): Always add an empty statement in case
22474 of empty body.
22475 * c-parser.c (c_parser_do_statement): Warn about empty body in
22476 do/while statement.
22477 * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
22478 * doc/invoke.texi (-Wempty-body): Update documentation.
22479
2e9cb75e
MLI
224802007-03-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22481
22482 PR c/21438
22483 * c-common.h (warn_for_div_by_zero): Declare.
22484 * c-common.c (warn_for_div_by_zero): Define.
22485 * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
22486 warning.
22487
925af765
RS
224882007-03-14 Richard Sandiford <richard@codesourcery.com>
22489
22490 * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
22491 to PREFIX and STANDARD_PREFIX.
22492
ac0d72f6
RS
224932007-03-14 Richard Sandiford <richard@codesourcery.com>
22494 Phil Edwards <phil@codesourcery.com>
22495
22496 * gthr-vxworks.h: Add an extern "C" wrapper for C++.
22497 (__gthread_once_t): Remove busy field for RTPs.
22498 (__GTHREAD_ONCE_INIT): Update accordingly.
22499
cd773ac4
RS
225002007-03-14 Richard Sandiford <richard@codesourcery.com>
22501
22502 * doc/invoke.texi: Document VxWorks options.
22503
8c5fd59f
UB
225042007-03-14 Uros Bizjak <ubizjak@gmail.com>
22505
22506 * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
22507
e31657e8
SP
225082007-03-13 Seongbae Park <seongbae.park@gmail.com>
22509
22510 PR tree-optimization/30590
22511 * tree-nrv.c (tree_nrv): Check for the partial update of the
22512 return value.
22513
403d4851
AO
225142007-03-13 Alexandre Oliva <aoliva@redhat.com>
22515
22516 * flags.h (flag_random_seed): Remove declaration, in favor of...
22517 * toplev.h (get_random_seed, set_random_seed): ... these.
22518 * tree.c (get_file_function_name): Use the former.
22519 * opts.c (common_handle_option): Use the latter.
22520 * toplev.c
22521
481e0a49
AO
225222007-03-13 Steven Bosscher <steven@gcc.gnu.org>
22523
22524 PR middle-end/31127
22525 * cse.c (cse_find_path): Do not bail out if a basic block that
22526 we already visited now becomes part of a path that starts at a
22527 different basic block. Just disallow this, to make sure we
22528 visit each basic block at most once.
22529
4cdb798f
JH
225302007-03-13 Jan Hubicka <jh@suse.cz>
22531
7e08fa35
UB
22532 * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold
22533 attributes, when profile esitmate is present, calls with very low
22534 frequency are cold.
4cdb798f 22535
b3ce5b6e
ZD
225362007-03-13 Zdenek Dvorak <dvorakz@suse.cz>
22537
22538 PR tree-optimization/30730
22539 PR tree-optimization/26900
22540 * tree-ssa-loop-niter.c: Include gmp.h.
22541 (bounds): New type.
22542 (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
22543 split_to_var_and_offset, determine_value_range,
22544 bound_difference_of_offsetted_base, refine_bounds_using_guard,
22545 bound_difference, bounds_add, bounds_negate,
22546 number_of_iterations_ne_max, dump_affine_iv): New functions.
22547 (number_of_iterations_ne, number_of_iterations_lt_to_ne,
22548 assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
22549 difference of initial and final value of control iv to validate
22550 results.
22551 (number_of_iterations_cond): Add loop parameter. Determine bounds
22552 on the difference of the extremes of the control iv. Add dumps.
22553 (expand_simple_operations): Handle phi nodes.
22554 (simplify_using_initial_conditions): Do not record used conditions.
22555 (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
22556 Do not set additional_info.
22557 (implies_nonnegative_p, implies_ge_p): Removed.
22558 (derive_constant_upper_bound): Do not use parameter `additional'.
22559 (record_estimate): Parameter `additional' removed. Parameter
22560 `i_bound' added. Do not call derive_constant_upper_bound.
22561 (record_nonwrapping_iv): Use derive_constant_upper_bound to
22562 bound the number of iterations estimate.
22563 (estimate_numbers_of_iterations_loop): Pass the estimate from
22564 the number of iterations analysis to record_estimate.
22565 * tree.h (multiple_of_p): Declare.
22566 * tree-scalar-evolution.c (expression_expensive_p): Removed.
22567 (scev_const_prop): Do not check expression_expensive_p.
22568 * fold-const.c (multiple_of_p): Exported.
22569 * double-int.c (double_int_mask): Exported.
22570 * double-int.h (double_int_mask): Declare.
22571 * tree-flow.h (struct tree_niter_desc): Removed additional_info
22572 field. Added max field.
22573
3dfe046f
DT
225742007-03-13 David Taylor <taylor@candd.org>
22575
22576 PR driver/12448:
22577 * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
22578 default -MQ.
22579
de94a581
JDA
225802007-03-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22581
dc92acbc 22582 PR target/31123
de94a581
JDA
22583 * pa.md (vdepi_ior): Don't allow zero length deposit. Likewise for
22584 two unamed patterns.
cff4720f 22585
5be6cb59
UB
225862007-03-13 Uros Bizjak <ubizjak@gmail.com>
22587
22588 * config/i386/i386.opt (mcx16, msahf): New options.
22589 * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
22590 (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
22591
22592 * config/i386/driver-i386.c (bit_LAHF_LM): New define.
22593 (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
22594 Output -mcx16 and -msahf options when corresponding bit is set.
22595
22596 * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
22597 and -msahf options.
22598
03943c05
AO
225992007-03-13 Alexandre Oliva <aoliva@redhat.com>
22600
22601 * configure.ac: Test for assembler tolerance to # 0 "".
22602 * configure, config.in: Rebuilt.
22603 * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
22604
98312a9b
GK
226052007-03-13 Geoffrey Keating <geoffk@apple.com>
22606
22607 * doc/invoke.texi (Spec Files): Update for '%{,' spec.
49522de2
GK
22608
22609 * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
22610 (handle_syscall): Handle direct system calls.
22611 * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
22612
7d07e4ea
BM
226132007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
22614
22615 * doc/invoke.texi: Fix cpp.info cross-reference.
22616 * doc/passes.texi: Fix gcc.info cross-reference.
22617
fbb0d4f8
ZD
226182007-03-12 Zdenek Dvorak <dvorakz@suse.cz>
22619
22620 PR tree-optimization/30835
22621 * lambda-code.c (can_convert_to_perfect_nest): Check whether
22622 bb_for_stmt is not NULL before accessing it.
22623
dc5bbad3
JM
226242007-03-12 Joseph Myers <joseph@codesourcery.com>
22625
22626 * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
22627 some multilibs.
22628
80ca80e9
BM
226292007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
22630
22631 PR 30635
22632 * doc/install.texi: Document --enable-stage1-languages
22633
dacb3cda
SB
226342007-03-12 Steven Bosscher <steven@gcc.gnu.org>
22635
22636 * tree-pass.h (pass_into_cfg_layout_mode,
22637 pass_outof_cfg_layout_mode): Declare.
22638 * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
22639 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
22640 * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
22641 (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
22642
50d50fc7
SP
226432007-03-12 Seongbae Park <seongbae.park@gmail.com>
22644
22645 * c-decl.c (warn_variable_length_array): New function.
22646 Refactored from grokdeclarator to handle warn_vla
22647 and handle unnamed array case.
22648 (grokdeclarator): Refactored VLA warning case.
22649 * c.opt (Wvla): New flag.
6da4bc4e 22650 * doc/invoke.texi (Wvla): New warning.
50d50fc7 22651
ae069803
RH
226522007-03-12 Richard Henderson <rth@redhat.com>
22653
22654 * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
22655 (TARGET_SECTION_TYPE_FLAGS): New.
22656
24c78b3a
RH
226572007-03-12 Richard Henderson <rth@redhat.com>
22658
fbb0d4f8
ZD
22659 * config/darwin.c (machopic_reloc_rw_mask): New.
22660 * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
22661 * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
24c78b3a 22662
6d4817e3
MM
226632007-03-12 Mark Mitchell <mark@codesourcery.com>
22664
22665 * cppdefault.c (cpp_EXEC_PREFIX): New variable.
22666 * cppdefault.h (cpp_PREFIX): Document.
22667 (cpp_PREFIX_len): Likewise.
22668 (cpp_EXEC_PREFIX): New variable.
22669 * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
22670 * c-incpath.c (add_standard_paths): Correct logic for relocating
22671 paths within prefix.
22672
d8e3118a
UB
226732007-03-12 Uros Bizjak <ubizjak@gmail.com>
22674
22675 * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
22676 fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
22677 mode macro.
22678 (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
22679 fix_truncdfdi_sse using SSEMODEF mode macro.
22680 (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
22681 fix_truncdfsi_sse using SSEMODEF mode macro.
22682 (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
22683 (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
22684
8906bbc0
RS
226852007-03-12 Richard Sandiford <richard@codesourcery.com>
22686
22687 * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
22688 elfos.h to tm_file.
22689
d4e70294 226902007-03-12 Olga Golovanevsky <olga@il.ibm.com>
cff4720f 22691
d4e70294 22692 * tree.h : Add multiple_of_p declaration.
cff4720f 22693 * fold-const.c (multiple_of_p): Make multiple_of_p public.
d4e70294
OG
22694 * ipa-type-escape.c (results_of_malloc): Redundant.
22695 (visited_stmts): New. Visited stmt for walk_use_def_chains.
22696 (cast_type): Extended with new members.
22697 (check_cast): Returns cast_type.
22698 (cast): New structure for data of walk_use_def_chains.
22699 (is_malloc_result, is_cast_from_non_pointer_1,
cff4720f 22700 is_cast_from_non_pointer,
d4e70294
OG
22701 is_array_access_through_pointer_and_index): New functions.
22702 (look_for_casts): Returns cast types.
22703 (check_call): Returns void.
22704 (okay_pointer_operation): Use support of pointer plus index,
22705 pointer plus constant and allow all multiplications.
cff4720f 22706
13338552
RG
227072007-03-11 Richard Guenther <rguenther@suse.de>
22708
22709 PR tree-optimization/31115
22710 * tree-vrp.c (extract_range_from_binary_expr): Make sure
22711 the shift count is positive and non-anti-range for RSHIFT_EXPR.
22712 A shift count of zero is not special as with *_DIV_EXPR.
22713 (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
22714 direction.
22715
d7419dec
ILT
227162007-03-11 Ian Lance Taylor <iant@google.com>
22717
22718 * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
22719 the *_DIV_EXPR codes correctly with overflow infinities.
22720
e838422b
IR
227212007-03-11 Ira Rosen <irar@il.ibm.com>
22722
cff4720f 22723 * tree-data-ref.c (analyze_offset): Add a return value (bool) to
e838422b
IR
22724 indicate success/failure of the analysis. Add negation to subtrahend
22725 in case of subtraction. Fail if both operands contain constants.
22726 (create_data_ref): Fail if analyze_offset fails.
22727
acaaf0c6
UB
227282007-03-11 Uros Bizjak <ubizjak@gmail.com>
22729
22730 * config/i386/i386.md (frndintxf2): Rename to ...
22731 (rintxf2): ... this. Remove expander having same name.
22732 (rintsf2, rintdf2): Implement using SSEMODEF macro.
22733 (roundsf2, rounddf2): Ditto.
22734 (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
22735 (lround<mode>di2, lround<mode>si2): Ditto.
22736
7984c787
SB
227372007-03-11 Steven Bosscher <steven@gcc.gnu.org>
22738
22739 * lower-subreg.c: Include except.h.
22740 (decompose_multiword_subregs): Verify that the only control flow
22741 insns we can split are loads to multi-words pseudos.
22742 Handle breaking such blocks after splitting, instead of calling
22743 find_many_sub_basic_blocks.
22744
22745 * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
22746 on the new basic block. Add a lengthy comment explaining why we
22747 thought this was necessary.
22748 * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
22749
222725d0
MM
227502007-03-10 Mark Mitchell <mark@codesourcery.com>
22751
ed574fe9 22752 PR c++/30924
222725d0
MM
22753 * tree.c (walk_type_fields): Recurse into the element type of
22754 ARRAY_TYPEs if there is a pointer set.
22755
89132ebc
DM
227562007-03-10 Dirk Mueller <dmueller@suse.de>
22757
22758 * c-common.c (warn_logical_operator): Fix condition.
22759
e4142b7c 227602007-03-10 Tobias Schl�ter <tobi@gcc.gnu.org>
4f648002
TS
22761
22762 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
22763 quotation mark.
df990293
TS
22764 * config/darwin.c (machopic_select_section): Remove superfluous
22765 argument in call to categorize_decl_for_section. Remove unused
22766 variable shlib.
4f648002 22767
c9ecbf86
JM
227682007-03-10 Joseph Myers <joseph@codesourcery.com>
22769
22770 * configure.ac (glibc_header_dir): Set using with_build_sysroot if
22771 defined.
22772 * configure: Regenerate.
22773
79cd820a
UB
227742007-03-10 Uros Bizjak <ubizjak@gmail.com>
22775
22776 PR target/31101
22777 * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
22778 (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
22779 (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
acaaf0c6 22780 Add LABEL_NUSES to emitted label.
79cd820a 22781 * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
acaaf0c6 22782 branch probability value to emitted jump insn.
79cd820a
UB
22783 * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
22784 Do not check life information and do not re-arrange input operands
22785 for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
22786
343d66ad
KK
227872007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
22788
22789 * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
22790 the change of decode_asm_operands.
22791
07288ab0
KK
227922007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
22793
22794 * mode-switching.c (create_pre_exit): Skip blockage insn.
22795
706ca88e
DN
227962007-03-09 Diego Novillo <dnovillo@redhat.com>
22797
22798 * tree-pass.h (TODO_update_smt_usage): Remove.
22799 Update all users.
22800 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
22801 argument SOME.
22802 Update all users.
22803
751d9855
JDA
228042007-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22805
7e08fa35
UB
22806 * pa.c (attr_length_call): Revise condition for long
22807 pc-relative branch.
22808 (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long
22809 local calls on the SOM target. Don't use "LONG_PIC_PCREL" call
22810 sequence on SOM target.
751d9855 22811
48137d59
GK
228122007-03-09 Geoffrey Keating <geoffk@apple.com>
22813
22814 * gcc.c: Document %{, in big comment at top.
22815 (input_suffix_matches): Remove special handling for .s and
22816 .S.
22817 (input_spec_matches): New.
22818 (handle_braces): Handle %{,.
22819 (validate_switches): ',' indicates a value which is not a switch.
22820 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
22821 to detect assembler input.
22822 * config/i386/sol2.h (CPP_SPEC): Likewise.
22823 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
22824 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
22825 * config/rs6000/lynx.h (ASM_SPEC): Likewise.
22826 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
22827 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
22828 -m64 causes deployment target to default to 10.5.
22829 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
22830
9b580a0b
RH
228312007-03-09 Richard Henderson <rth@redhat.com>
22832
22833 PR target/26090
22834 * target.h (targetm.asm.out.reloc_rw_mask): New.
22835 * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
22836 (TARGET_ASM_OUT): Use it.
22837 * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
22838 * varasm.c (categorize_decl_for_section): Remove shlib argument;
22839 use the new reloc_rw_mask target hook instead.
22840 (default_section_type_flags_1): Merge into...
22841 (default_section_type_flags): ... here.
22842 (decl_readonly_section_1): Merge into...
22843 (decl_readonly_section): ... here.
22844 (default_elf_select_section_1): Merge into...
22845 (default_elf_select_section): ... here.
22846 (default_unique_section_1): Merge into...
22847 (default_unique_section): ... here.
22848 (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
22849 (default_select_rtx_section): Use it.
22850 (default_elf_select_rtx_section): Likewise.
22851 * output.h: Update to match.
22852 * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
22853 * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
22854 (TARGET_ASM_RELOC_RW_MASK): New.
22855 * config/i386/i386.c (x86_64_elf_select_section): Adjust call
22856 to categorize_decl_for_section.
22857 (x86_64_elf_unique_section): Likewise.
22858 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
22859 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
22860 (TARGET_ASM_RELOC_RW_MASK): New.
22861 * config/ia64/ia64.c (ia64_rwreloc_select_section,
22862 ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
22863 (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
22864 (TARGET_RWRELOC): Remove.
22865 (ia64_section_type_flags): Adjust call to default_section_type_flags.
22866 * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
22867 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
22868 (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
22869 (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
22870 (rs6000_xcoff_select_section): Use decl_readonly_section.
22871 (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
22872 * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
22873 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
22874 (TARGET_SECTION_TYPE_FLAGS): Remove.
22875 * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
22876
23b9463b
RS
228772007-03-09 Roger Sayle <roger@eyesopen.com>
22878
22879 * fold-const.c (fold_comparison): Remove compile-time evaluation of
22880 complex constant equality/inequality comparisons for here.
22881 (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
22882 known at compile-time or can be simplified to a scalar comparison.
22883 (fold_relational_const): Move compile-time evaluation of complex
22884 constant equality/inequality comparisons to here.
22885
7e7e28c7
AO
228862007-03-09 Alexandre Oliva <aoliva@redhat.com>
22887
22888 PR rtl-optimization/30643
22889 * cse.c (cse_insn): Recompute dest_hash after insert_regs for
7cd4f641 22890 dest_addr_elt.
7e7e28c7
AO
22891 (fold_rtx): Recurse, like before 2006-11-03.
22892
a009aafe
DD
228932007-03-09 DJ Delorie <dj@redhat.com>
22894
23b9463b
RS
22895 * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
22896 m32c-pragma.o.
a009aafe 22897
0f84b066
AH
228982007-03-09 Aldy Hernandez <aldyh@redhat.com>
22899
acaaf0c6
UB
22900 PR tree-optimization/30375
22901 * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
22902 LHS of statements is not the same.
22903 * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
0f84b066 22904
32041385
CF
229052007-03-09 Chao-ying Fu <fu@mips.com>
22906
22907 * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
22908 REV 2.
22909 * doc/invoke.texi (-mdspr2): Document new option.
22910 * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
22911 New unspec for DSP REV 2.
22912 (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
22913 these instructions are extended in DSP REV 2.
22914 (mips-dspr2.md): Include.
22915 * config/mips/mips.opt (mdspr2): New option.
22916 * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
22917 MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
22918 MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
22919 (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
22920 (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
22921 (dsp_bdesc): Add DSP REV 2 builtins. Remove 32-bit only DSP builtins.
22922 (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
22923 and 2 builtins.
22924 (bdesc_map): Add one field of unsupported_target_flags.
6ef5231b 22925 (bdesc_arrays): Update entries to have extra fields. Add
32041385
CF
22926 dsp_32only_bdesc.
22927 (mips_init_builtins): Initialize new function types.
22928 Check unsupported_target_fileds to filter out builtins.
22929 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
22930 TARGET_DSPR2.
22931 (ASM_SPEC): Pass mdspr2 to the assembler.
22932 * config/mips/mips-dspr2.md: New file.
22933
4a71edd9
SL
229342007-03-09 Sa Liu <saliu@de.ibm.com>
22935
22936 * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
22937
4d4362c8
ILT
229382007-03-09 Ian Lance Taylor <iant@google.com>
22939
22940 * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
22941 argument) like -Wstrict-overflow=2.
22942 * doc/invoke.texi (Warning Options): Update documentation.
22943
63a08740
DM
229442007-03-09 Dirk Mueller <dmueller@suse.de>
22945
22946 PR c++/17946
22947 * doc/invoke.texi (-Wlogical-op): Document.
22948 * common.opt (-Wlogical-op): New.
22949 * c-common.h (warn_logical_operator): Declare.
22950 * c-common.c (warn_logical_operator): Define.
22951 * c-typeck.c (parser_build_binary_op): Call
22952 warn_logical_operator.
22953
0de2ae02
AO
229542007-03-09 Alexandre Oliva <aoliva@redhat.com>
22955
22956 * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
22957 * final.c (final_scan_insn): Test for non-"" file name.
22958
3d8864c0
SP
229592007-03-09 Sebastian Pop <sebastian.pop@inria.fr>
22960
22961 * doc/loop.texi: Document the Omega linear constraints solver.
22962 * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
cff4720f
ZW
22963 omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
22964 omega-hash-table-size, omega-max-keys, and
3d8864c0
SP
22965 omega-eliminate-redundant-constraints.
22966 * tree-pass.h (pass_check_data_deps): Declared.
22967 * omega.c: New.
22968 * omega.h: New.
22969 * timevar.def (TV_CHECK_DATA_DEPS): Declared.
cff4720f 22970 * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
3d8864c0
SP
22971 pass_check_data_deps): New.
22972 * tree-data-ref.c (init_data_ref): Remove declaration.
22973 (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
22974 (analyze_array): Renamed init_array_ref, move up initializations.
22975 (init_data_ref): Renamed init_pointer_ref. Moved before its call.
22976 Removed arguments that are set to NULL.
cff4720f 22977 (analyze_indirect_ref): Correct indentation, correct call to
3d8864c0
SP
22978 init_pointer_ref.
22979 (object_analysis): Call init_array_ref instead of analyze_array.
22980 (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
22981 (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
22982 of DR_ACCESS_FNS_ADDR.
cff4720f 22983 (init_omega_eq_with_af, omega_extract_distance_vectors,
3d8864c0
SP
22984 omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
22985 ddr_consistent_p): New.
cff4720f 22986 (compute_affine_dependence): Check consistency of ddrs when
3d8864c0
SP
22987 flag_check_data_deps is passed.
22988 (analyze_all_data_dependences): Uncomment.
22989 (tree_check_data_deps): New.
22990 * tree-data-ref.h: Include omega.h.
22991 (DR_ACCESS_FNS_ADDR): Removed.
22992 (data_dependence_relation): Add inner_loop.
22993 (DDR_INNER_LOOP): New.
22994 * common.opt (fcheck-data-deps): New.
22995 * tree-flow.h (tree_check_data_deps): Declare.
22996 * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
22997 (OBJS-common): Depend on omega.o.
22998 (omega.o): Define.
22999 * passes.c (pass_check_data_deps): Scheduled.
cff4720f 23000 * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
3d8864c0
SP
23001 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
23002 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
23003 PARAM_VECT_MAX_VERSION_CHECKS,
23004 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
23005
6569e716
RG
230062007-03-09 Richard Guenther <rguenther@suse.de>
23007
23008 PR tree-optimization/30904
23009 PR middle-end/31058
23010 * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
23011 the same way as *_DIV_EXPR.
23012
fb0a2460
AO
230132007-03-09 Alexandre Oliva <aoliva@redhat.com>
23014
23015 * recog.c (decode_asm_operands): No mixed declarations and code.
23016
bff4b63d
AO
230172007-03-09 Alexandre Oliva <aoliva@redhat.com>
23018
23019 * rtl.def (ASM_INPUT): Add location.
23020 * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
23021 (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
23022 (decode_asm_operands): Add loc operand.
23023 (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
23024 * stmt.c (expand_asm): Rename to...
23025 (expand_asm_loc): ... this. Add locus argument. Pass it on to
23026 gen_rtx_ASM_INPUT_loc.
23027 (expand_asm_expr): Adjust.
23028 * recog.c (decode_asm_operands): Add loc operand.
23029 (check_asm_operands, extract_insn): Adjust.
23030 * reload1.c (maybe_fix_stack_asms): Likewise.
23031 * final.c (asm_insn_count): Likewise.
23032 (final_scan_insn): Output # line before and after asm.
23033
1296c31f
DB
230342007-03-09 Daniel Berlin <dberlin@dberlin.org>
23035
23036 * tree-ssa-structalias.c (variable_info): Remove
23037 finished_solution.
23038 (new_var_info): Ditto.
23039 (shared_bitmap_info_t): New structure.
23040 (shared_bitmap_table): New variable.
23041 (shared_bitmap_hash): New function.
23042 (shared_bitmap_eq): Ditto
23043 (shared_bitmap_lookup): Ditto.
23044 (shared_bitmap_add): Ditto.
23045 (merge_smts_into): Change to take bitmap directly.
23046 (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
23047 (init_alias_vars): Init shared bitmap hashtable.
23048 (delete_points_to_sets): Delete shared bitmap hashtable.
23049 * tree-ssa-operands.c (add_virtual_operand): Partially revert the
23050 is_aliased removal as a change that was still necessary was
23051 deleted.
23052
84ac30cb
UB
230532007-03-09 Uros Bizjak <ubizjak@gmail.com>
23054
23055 * config/i386/i386.h (override_options): Conditionally disable
23056 x86_sahf for 64bit targets only.
23057
ee9f69b4
AP
230582007-03-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
23059
23060 PR C/31072
23061 * c-decl.c (merge_decls): Don't call make_var_volatile.
23062 * varasm.c (make_var_volatile): Remove.
23063 * output.h (make_var_volatile): Remove.
23064
5f787cbc
ZD
230652007-03-08 Zdenek Dvorak <dvorakz@suse.cz>
23066
23067 PR tree-optimization/31085
23068 * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
23069
aeabd15d
KG
230702007-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23071
23072 * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
23073 llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
23074 ATTR_CONST_NOTHROW_LIST.
cff4720f 23075
aeabd15d
KG
23076 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
23077 FIX_TRUNC_EXPR.
23078
e9dc9c4e
DN
230792007-03-08 Diego Novillo <dnovillo@redhat.com>
23080
23081 * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
23082
d2328a13
GK
230832007-03-08 Geoffrey Keating <geoffk@apple.com>
23084
23085 PR 31013
23086 * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
23087 is declared.
23088 * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
23089 passed, use shared libgcc.
23090
ebb07520
RS
230912007-03-08 Roger Sayle <roger@eyesopen.com>
23092
23093 * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
23094 instead of calling build2 with a GIMPLE_MODIFY_STMT.
23095 (honor_protect_cleanup_actions, lower_try_finally_switch):
23096 Likewise.
23097 * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
23098 ifc_temp_var): Likewise.
23099 * tree-inline.c (setup_one_parameter): Likewise.
23100 * tree-mudflap.c (mf_decl_cache_locals,
23101 mf_build_check_statement_for): Likewise.
23102 * tree-nested.c (init_tmp_var, save_tmp_var,
23103 finalize_nesting_tree_1): Likewise.
23104 * tree-outof-ssa.c (insert_copy_on_edge,
23105 insert_backedge_copies): Likewise.
23106 * tree-profile.c (tree_gen_edge_profiler,
23107 tree_gen_ic_profiler): Likewise.
23108 * tree-scalar-evolution.c (scev_const_prop): Likewise.
23109 * tree-sra.c (sra_build_assignment): Likewise.
23110 * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
23111 * tree-ssa-math-opts.c (insert_reciprocals,
23112 execute_cse_sincos_1): Likewise.
23113 * tree-tailcall.c (adjust_accumulator_values,
23114 adjust_return_value): Likewise.
23115 * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
23116 * tree-vect-transform.c (vect_create_data_ref_ptr,
23117 bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
23118 vect_create_epilog_for_reduction, vectorizable_reduction,
23119 vectorizable_call, vectorizable_conversion,
23120 vectorizable_assignment, vectorizable_operation,
23121 vectorizable_type_demotion, vect_gen_widened_results_half,
23122 vect_permute_store_chain, vectorizable_store,
23123 vect_setup_realignment, vect_permute_load_chain,
23124 vectorizable_load, vectorizable_condition,
23125 vect_create_cond_for_align_checks): Likewise.
23126 * tree-vrp.c (build_assert_expr_for): Likewise.
23127
0c948c27
ILT
231282007-03-08 Ian Lance Taylor <iant@google.com>
23129
23130 * tree-vrp.c: Include "intl.h".
23131 (usable_range_p): New static function.
23132 (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
23133 overflowed values, juts set *strict_overflow_p.
23134 (compare_values): Only return -2 if one of the operands is not a
23135 constant.
23136 (compare_ranges): Call usable_range_p.
23137 (compare_range_with_value): Likewise.
23138 (vrp_evaluate_conditional_warnv): Rename from
23139 vrp_evaluate_conditional. Make static. Change all callers.
23140 (vrp_evaluate_conditional): New function.
23141 (simplify_div_or_mod_using_ranges): Issue warning about reliance
23142 on signed overflow.
23143 (simplify_abs_using_ranges): Likewise.
23144 (simplify_stmt_for_jump_threading): Add within_stmt parameter.
23145 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
23146 within_stmt parameter.
23147 * tree-ssa-propagate.c (fold_predicate_in): Update call to
23148 vrp_evaluate_conditional.
23149 * tree-ssa-threadedge.c
23150 (record_temporary_equivalences_from_stmts_at_dest): Change
23151 simplify parameter to take a second tree parameter.
23152 (simplify_control_stmt_condition): Likewise.
23153 (thread_across_edge): Likewise.
23154 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
23155 (thread_across_edge): Likewise.
86122f72 23156 * Makefile.in (tree-vrp.o): Depend upon intl.h.
0c948c27 23157
3c2d980c
UB
231582007-03-08 Uros Bizjak <ubizjak@gmail.com>
23159
23160 * config/i386/i386.h (TARGET_SAHF): New define.
23161 * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
23162 Also enable for m_K8, m_AMDFAM10 and m_CORE2.
23163 (x86_sahf): New global variable.
23164 (override_options): Add PTA_NO_SAHF to pta_flags enum. Recode
23165 pta_flags masks using shifts. Add PTA_NO_SAHF to x86_64 and
23166 nocona processor flags. Set x86_sahf when PTA_NO_SAHF is not set
23167 in processor flags. Do not unconditionally disable TARGET_USE_SAHF
23168 for 64-bit.
23169 (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
23170 (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
23171 when expanding fcomi/sahf based tests.
23172 (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
23173 expanding sahf based alternative. Emit sahf based sequence when
23174 optimizing for code size.
23175 * config/i386/i386.md (x86_sahf_1): Do not disable for
cff4720f 23176 TARGET_64BIT, enable for TARGET_SAHF.
3c2d980c 23177
068c623d
MM
231782007-03-08 Martin Michlmayr <tbm@cyrius.com>
23179
23180 * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
23181 spurious whitespace from error message.
23182
1916c916
VR
231832007-03-08 Volker Reichelt <reichelt@netcologne.de>
23184
23185 PR c++/30852
23186 * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
23187
ab53bae2
AO
231882007-03-08 Alexandre Oliva <aoliva@redhat.com>
23189
23190 * c-decl.c (grokdeclarator): Disable warnings for anonymous
23191 bitfields.
23192 * tree-sra.c (instantiate_element): Propagate disabled warnings
23193 from the element itself to the created variable.
23194
7476f086
RH
231952007-03-07 Richard Henderson <rth@redhat.com>
23196
23197 PR target/30848
23198 * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
23199 silently fix up the stack in the case of a missing register.
23200
a566d050
JM
232012007-03-07 Paul Brook <paul@codesourcery.com>
23202
23203 * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
23204
232052007-03-07 Joseph Myers <joseph@codesourcery.com>
23206
23207 * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
23208 New.
23209 (phase1_vrs): Use them.
23210 (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
23211 (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
23212 __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
23213 (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
23214 __gnu_Unwind_Restore_WMMXC if required.
23215 (_Unwind_VRS_Pop): Implement iWMMXt support.
23216 * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
23217 gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
23218 gnu_Unwind_Save_WMMXC): Define.
23219
ef672755
RS
232202007-03-07 Richard Sandiford <richard@codesourcery.com>
23221
23222 * config/vxworks.h (vxworks_override_options): Declare.
23223 (VXWORKS_OVERRIDE_OPTIONS): Use it.
23224 * config/vxworks.c: Include target.h and toplev.h.
23225 (vxworks_override_options): New function.
23226 * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
23227
690e7b63
AK
232282007-03-07 Andreas Krebbel <krebbel1@de.ibm.com>
23229
23230 * config/s390/s390.c (override_options): Don't emit an error when
23231 -mstack-size is used without providing -mstack-guard.
23232 (s390_emit_prologue): Choose stack_guard value automatically if not
23233 provided via command line.
7e08fa35
UB
23234 * doc/invoke.texi: Adjust description of -mstack-guard and
23235 -mstack-size.
690e7b63 23236
170bdaba
RS
232372007-03-07 Richard Sandiford <richard@codesourcery.com>
23238
23239 * config/i386/i386.c (output_set_got): Add a GOT initialization
23240 sequence for VxWorks PIC.
23241 (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
23242 around labels as well as symbols. Use gotoff_operand instead
23243 of local_symbolic_operand.
23244 (legitimize_pic_address): Use gotoff_operand instead of
23245 local_symbolic_operand. Use @GOT accesses for labels as
23246 well as symbols.
23247 (ix86_output_addr_diff_elt): Use PC-relative rather than
23248 GP-relative offsets for VxWorks PIC.
23249 (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
23250 no_new_pseudos. Check whether the returned register is op0.
23251 * config/i386/i386.md (tablejump): Use PC-relative rather than
23252 GP-relative offsets for VxWorks PIC.
23253 * config/i386/predicates.md (gotoff_operand): New predicate.
23254
26b5109f
RS
232552007-03-06 Richard Sandiford <richard@codesourcery.com>
23256
23257 * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
23258 before defining.
23259 * config/vxworks-dummy.h: New file.
23260 * config/i386/i386.h: Include it.
23261
dfad806e
AO
232622007-03-07 Alexandre Oliva <aoliva@redhat.com>
23263
23264 * dwarf2out.c (is_inlined_entry_point): New
23265 (add_high_low_attributes): Emit DW_AT_entry_pc along with
23266 DW_AT_ranges if the first subblock is the entry point.
23267
3eb3cf05
DD
232682007-03-06 David Daney <ddaney@avtrex.com>
23269
23270 * doc/install.texi (mips-*-*): Change recommended binutils
23271 version.
23272
232732007-03-06 Anatoly Sokolov <aesok@post.ru>
205dcd71
AS
23274
23275 * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
cff4720f 23276 ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
205dcd71
AS
23277 devices.
23278 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
23279 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
23280
52bf96d2
JH
232812007-03-06 Jan Hubicka <jh@suse.cz>
23282
23283 * errors.h (warning, error, fatal, internal_error): Mark as cold.
7e08fa35
UB
23284 * predict.c (maybe_hot_bb): Cold functions are never hot; hot
23285 functions are hot.
52bf96d2
JH
23286 (probably_cold_bb_p): Cold functions are cold.
23287 (probably_never_executed_bb_p): Cold functions are cold.
23288 (tree_bb_level_predictions): Predict calls to cold functions as not
23289 taken.
23290 (compute_function_frequency): Check hot/cold attributes.
23291 * function.h (function_frequency): Update comments.
23292 * predict.def (PRED_COLD_FUNCTION): Predict cold function.
23293 * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
23294 (c_common_att): Add cold and hot.
23295
23296 * doc/extend.texi (hot,cold attributes): Document.
23297
25108646
AH
232982007-03-06 Andrew Haley <aph@redhat.com>
23299
23300 * function.c (expand_function_end): Move blockage to just after we
23301 emit the label for the naked return from the function.
23302
af17c030
RS
233032007-03-06 Richard Sandiford <richard@codesourcery.com>
23304
23305 * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
23306 before redefining.
23307
dc4d7240
JH
233082007-03-06 Jan Hubicka <jh@suse.cz>
23309
23310 * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
23311 loaded for constant large models. Non-large 64bit PIC can do.
23312 * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
23313 * cmodel.h: Add LARGE PIC.
23314 * i386.md (UNSPEC_PLTOFF): New.
7e08fa35
UB
23315 (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other
23316 unspecs as needed.
dc4d7240
JH
23317 (*call_1_rex64): Disable for large models.
23318 (*call_1_rex64_large): New.
23319 (*call_value_1_rex64): Disable for large models.
23320 (*call_value_1_rex64_large): New.
23321 (set_rip_rex4): New.
23322 (set_got_offset_rex64): New.
23323 * predicates.md (constant_call_address_operand): For large model
23324 constant calls are not possible.
23325 * i386-protos.h (construct_plt_address): Declare.
23326 * i386.c (override_options): Accept large models.
23327 (ix86_expand_prologue): Expand large PIC GOT pointer load.
23328 (legitimate_constant_p): Add new UNSPECs.
23329 (legitimate_pic_operand_p): Likewise.
23330 (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
23331 (legitimize_pic_address): Do easy RIP relative way for TLS only for
23332 non-large model.
23333 (output_pic_addr_const): Add PLTOFF.
23334 (ix86_output_addr_diff_elt): Output 64bit tables when needed.
23335 (ix86_expand_move): Legitimize pic address when in PIC mode.
23336 (construct_plt_address): New function.
7e08fa35
UB
23337 (ix86_expand_call): Offload the address to register and use GOT
23338 pointer for large model.
dc4d7240
JH
23339 * invoke.texi (mcmodel=large): Update documentation.
23340
80fd744f
RH
233412007-03-06 Richard Henderson <rth@redhat.com>
23342
23343 * config/i386/i386.c (x86_use_leave, x86_push_memory,
23344 x86_zero_extend_with_and, x86_movx, x86_double_with_add,
23345 x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
23346 x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
23347 x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
23348 x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
cff4720f 23349 x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
80fd744f
RH
23350 x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
23351 x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
cff4720f
ZW
23352 x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
23353 x86_partial_reg_dependency, x86_memory_mismatch_stall,
80fd744f 23354 x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
cff4720f 23355 x86_sse_partial_reg_dependency, x86_sse_split_regs,
80fd744f
RH
23356 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
23357 x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
23358 x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
acaaf0c6
UB
23359 x86_schedule, x86_use_bt, x86_pad_returns,
23360 x86_use_xchgb): Merge into ...
80fd744f 23361 (ix86_tune_features): ... here. New array.
acaaf0c6
UB
23362 (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
23363 x86_bswap): Merge into ...
80fd744f
RH
23364 (ix86_arch_features): ... here. New array.
23365 (x86_3dnow_a): Remove.
23366 (x86_accumulate_outgoing_args): Make static.
23367 (x86_arch_always_fancy_math_387): Make static.
23368 (ix86_tune_mask, ix86_arch_mask): Move ...
23369 (override_options): ... to local variables here. Apply the
23370 appropriate mask to each element of ix86_arch_features and
23371 ix86_tune_features. Adjust TARGET_CMOVE and TARGET_USE_SAHF
23372 as were done in the old macros.
23373 (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
23374 * config/i386/i386.h (x86_use_leave, x86_push_memory,
23375 x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
23376 x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
23377 x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
23378 x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
23379 x86_read_modify_write, x86_read_modify, x86_split_long_moves,
23380 x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
23381 x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
23382 x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
23383 x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
23384 x86_partial_reg_dependency, x86_memory_mismatch_stall,
23385 x86_accumulate_outgoing_args, x86_prologue_using_move,
23386 x86_epilogue_using_move, x86_decompose_lea,
23387 x86_arch_always_fancy_math_387, x86_shift1,
23388 x86_sse_partial_reg_dependency, x86_sse_split_regs,
cff4720f 23389 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
80fd744f
RH
23390 x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
23391 x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
23392 x86_use_incdec, x86_pad_returns, x86_bswap,
23393 x86_partial_flag_reg_stall): Remove.
23394 (enum ix86_tune_indices): New.
23395 (ix86_tune_features): New.
23396 (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
23397 TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
23398 TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
23399 TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
23400 TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
23401 TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
23402 TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
23403 TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
23404 TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
23405 TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
23406 TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
23407 TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
23408 TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
23409 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
23410 TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
23411 TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
23412 TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
23413 TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
23414 TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
23415 TARGET_EXT_80387_CONSTANTS): Use it.
23416 (enum ix86_arch_indices): New.
23417 (ix86_arch_features): New.
23418 (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
23419 TARGET_BSWAP): Use it.
23420 (ix86_tune_mask, ix86_arch_mask): Remove.
23421
14da6073
JM
234222007-03-06 Joseph Myers <joseph@codesourcery.com>
23423
23424 PR bootstrap/31020
23425 * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
23426 Define using $${sysroot_headers_suffix}.
23427 * configure: Regenerate.
23428 * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
23429 multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
23430 defined.
23431 * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
23432 * gcc.c (print_sysroot_headers_suffix): New.
23433 (option_map): Include --print-sysroot-headers-suffix.
23434 (display_help): Mention -print-sysroot-headers-suffix.
23435 (process_command): Handle -print-sysroot-headers-suffix.
23436 (do_spec_1): Append multilib directory to include-fixed path if
23437 sysroot suffixes in use.
23438 (main): Handle -print-sysroot-headers-suffix.
23439 * Makefile.in (start.encap): Don't depend on xlimits.h
23440 (xlimits.h): Remove.
23441 (stmp-int-hdrs): Don't depend on xlimits.h. Inline generation of
23442 limits.h for each multilib in fixinc_list.
23443 (fixinc_list, s-fixinc_list): New.
23444 (stmp-fixinc): Depend on fixinc_list. If not copying headers,
23445 generate them for each multilib in fixinc_list.
23446 (stmp-fixproto): Use include-fixed. Run fixproto for each
23447 multilib in fixinc_list.
23448 (mostlyclean): Don't remove xlimits.h.
23449 (clean): Remove include-fixed.
23450 (real-install-headers-tar, real-install-headers-cpio,
23451 real-install-headers-cp): Don't copy include, only include-fixed.
23452 (install-mkheaders): Depend on fixinc_list. Don't depend on
23453 xlimits.h. Save limits.h files for each multilib in fixinc_list.
23454 Always save mkinstalldirs. Preserve ${sysroot_headers_suffix} in
23455 SYSTEM_HEADER_DIR setting in mkheaders.conf.
23456
4e669430
JH
234572007-03-06 Jan Hubicka <jh@suse.cz>
23458
23459 * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
23460 NANs easilly.
23461
3ca43df7
RS
234622007-03-06 Richard Sandiford <richard@codesourcery.com>
23463
23464 * configure.ac: Allow tm_file to contain build-directory files.
23465 * configure: Regenerate.
23466 * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
23467 * config/m68k/t-uclinux (sysroot-suffix.h): New target.
23468 * config/m68k/print-sysroot-suffix.sh: New file.
23469
4ab870f5
RS
234702007-03-06 Richard Sandiford <richard@codesourcery.com>
23471
23472 * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
23473 of pic_offset_table_rtx if reload_completed.
23474 (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
23475 PIC_OFFSET_TABLE_REGNUM.
23476 * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
23477 return true.
23478 (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
23479 (m68k_output_mi_thunk): Rewrite to use RTL. Honor vcall_offset.
23480
afcb440c
RS
234812007-03-06 Richard Sandiford <richard@codesourcery.com>
23482
23483 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
23484 functions that call eh_return.
23485
6357eb0d
RS
234862007-03-06 Richard Sandiford <richard@codesourcery.com>
23487
23488 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
23489 functions that need a constant pool.
23490
ffa2596e
RS
234912007-03-06 Richard Sandiford <richard@codesourcery.com>
23492
23493 PR target/28181
23494 * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
23495 (m68k_preferred_reload_class): Likewise.
23496 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
23497 (SECONDARY_RELOAD_CLASS): Define.
23498 (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
23499 (LIMIT_RELOAD_CLASS): Delete.
23500 * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
23501 registers from storing bytes.
23502 (m68k_secondary_reload_class): New function.
23503 (m68k_preferred_reload_class): Likewise.
23504
4f44ecc0
RS
235052007-03-06 Richard Sandiford <richard@codesourcery.com>
23506
23507 * config/m68k/m68k.c (m68k_save_reg): Remove special case for
23508 leaf functions.
23509 (m68k_expand_prologue): Likewise.
23510
f7e70894
RS
235112007-03-06 Richard Sandiford <richard@codesourcery.com>
23512
23513 * config/m68k/m68k-protos.h (output_sibcall): Declare.
23514 (mips_expand_epilogue): Add a bool parameter.
23515 (m68k_legitimize_sibcall_address): Declare.
23516 * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
23517 (m68k_expand_epilogue): Add a parameter to select between sibling
23518 and normal epilogues. Only generate a return for the latter.
23519 (m68k_ok_for_sibcall_p): New function.
23520 (m68k_legitimize_sibcall_address, output_sibcall): New functions.
23521 * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
23522 (sibcall_value, *sibcall_value): Likewise.
23523 (*call, *call_value): Require !SIBLING_CALL_P.
23524 (epilogue): Update call to m68k_expand_epilogue.
23525 (sibcall_epilogue): New pattern.
23526 * config/m68k/predicates.md (const_call_operand): Say that this
23527 predicate applies to sibling calls too.
23528 (sibcall_operand): New predicate.
23529
31c5b444
RS
235302007-03-06 Richard Sandiford <richard@codesourcery.com>
23531
23532 * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
23533 alternatives as movsi_cf.
23534 (movsf_cf_hard): Add commentary.
23535
a40ed0f3
KH
235362007-03-06 Kazu Hirata <kazu@codesourcery.com>
23537 Richard Sandiford <richard@codesourcery.com>
23538
23539 * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
23540 (m68k_movem_pattern_p, m68k_output_movem): Likewise.
23541 (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
23542 * config/m68k/m68k.h (EPILOGUE_USES): Define. Treat all registers
23543 as being live on exit from an interrupt function.
23544 (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
23545 * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
23546 (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
23547 (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
23548 (m68k_interrupt_function_p): Globalize.
23549 (m68k_compute_frame_layout): Remove reverse mask code.
23550 (m68k_emit_movem, m68k_set_frame_related): New functions.
23551 (m68k_output_function_prologue): Delete in favor of...
23552 (m68k_expand_prologue): ...this new function.
23553 (m68k_output_function_epilogue): Delete in favor of...
23554 (m68k_expand_epilogue): ...this new function.
23555 (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
23556 functions.
23557 (print_operand): Handle %?.
23558 * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
23559 (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
23560 (prologue, epilogue): New patterns.
23561 (return): Turn into a define_expand.
23562 (*return): New pattern, derived from old "return" pattern. Use rte
23563 rather than rts for interrupt functions. Only use rtd if the pop
23564 count is nonzero.
23565 (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
23566 (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
23567 (link, *link, unlink, *unlink, load_got): Likewise.
23568
fc2241eb
RS
235692007-03-06 Richard Sandiford <richard@codesourcery.com>
23570
23571 PR target/23482
23572 PR target/17114
23573 * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
23574 (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
23575 (m68k_matches_q_p, m68k_matches_u_p): Likewise.
23576 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
23577 and m68k_matches_u_p.
23578 (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
23579 (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
23580 (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
23581 (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
23582 (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
23583 (REG_STRICT_P): New macro.
23584 (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
23585 PCREL_GENERAL_OPERAND_OK.
23586 (REG_OK_FOR_BASE_P): Merge definitions. Use REG_STRICT_P and
23587 m68k_legitimate_base_reg_p.
23588 (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
23589 (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
23590 (PIC_CASE_VECTOR_ADDRESS): Update comment.
23591 * config/m68k/m68k.c (m68k_address): New structure.
23592 (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
23593 (m68k_decompose_index, m68k_legitimate_constant_address_p)
23594 (m68k_jump_table_ref_p, m68k_decompose_address)
23595 (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
23596 (m68k_matches_u_p): New functions.
23597 (print_operand_address): Rewrite to use m68k_decompose_index.
23598
581f006c 235992007-03-05 David Taylor <dtaylor@emc.com>
9e8f6959
DT
23600
23601 * gcc.c: Correct copyright date in --version output.
23602
50f9c211
JDA
236032007-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23604
23605 * pa.md: In unamed move patterns, disparge copies between general
23606 and floating point registers using '?' modifier. Don't include 'f'
23607 constraint for register preferences in DImode, SImode, HImode and
23608 QImode patterns. Likewise for 'r' in DFmode and SFmode patterns.
23609 Remove constraints for copies between general and floating registers
23610 in soft-float DFmode pattern.
23611 (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
23612 floating register.
cff4720f 23613 (movsf): Likewise.
50f9c211 23614
1f1d5130
MS
236152007-03-05 Mike Stump <mrs@apple.com>
23616
acaaf0c6 23617 * c-common.c (targetcm): Add.
1f1d5130
MS
23618 * c-opts.c (c_common_handle_option): Handle language specific
23619 target options.
23620 * opts.c (handle_option): Verify language for target options, if
23621 any are given.
23622 * opth-gen.awk: Add CL_LANG_ALL.
23623 * target-def.h (TARGET_HANDLE_C_OPTION): Add.
23624 (TARGETCM_INITIALIZER): Add.
23625 * target.h (struct gcc_targetcm): Add.
23626 (targetcm): Add.
23627 * targhooks.c (default_handle_c_option): Add.
23628 * targhooks.h (default_handle_c_option): Add.
23629 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
23630
23631 * config/darwin.opt (iframework): Add.
23632 * config/darwin.h (TARGET_HAS_TARGETCM): Add.
23633 * config/darwin-c.c (handle_c_option): Add.
23634 (TARGET_HANDLE_C_OPTION): Add.
23635 (targetcm): Add.
23636 * doc/invoke.texi (Darwin Options): Add -iframework.
23637
65bda21f
KG
236382007-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23639
23640 * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
23641 conversion.
23642
da1c7394
ILT
236432007-03-05 Ian Lance Taylor <iant@google.com>
23644
23645 * c.opt (fgnu89-inline): New option.
23646 * c-opts.c (c_common_post_options): Set default value for
23647 flag_gnu89_inline.
23648 * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
23649 (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
23650 inline functions.
23651 (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
23652 (grokdeclarator, start_function): Likewise.
23653 * c-cppbuiltin.c (c_cpp_builtins): Define either
23654 __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
23655 * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
23656 (C Dialect Options): Document -fgnu89-inline.
23657 * doc/extend.texi (Function Attributes): Explain what the
23658 gnu_inline attribute does.
23659 * doc/cpp.texi (Common Predefined Macros): Document
23660 __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
23661
7343ff45
ILT
236622007-03-05 Ian Lance Taylor <iant@google.com>
23663
23664 PR tree-optimization/31034
23665 * tree-vrp.c (extract_range_from_assert): Don't try to handle a
23666 half-range if the other side is an overflow infinity.
23667
344189f9
BS
236682007-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
23669
23670 * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
23671 (bfin*-linux-uclibc*): New configuration.
23672 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
23673 defining.
23674 * config/bfin/linux.h: New file.
23675 * config/bfin/libgcc-bfin.ver: New file.
23676 * config/bfin/t-bfin-uclinux: New file.
23677 * config/bfin/t-bfin-linux: New file.
23678 * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
23679 (TARGET_OS_CPP_BUILTINS): New macro.
23680
9dc167ec
RG
236812007-03-05 Richard Guenther <rguenther@suse.de>
23682
23683 * fold-const.c (fold_binary): Remove duplicate folding
23684 of comparison of non-null ADDR_EXPR against null.
23685
f9be04cd 236862007-03-05 Richard Guenther <rguenther@suse.de>
3c2d980c 23687 Dorit Nuzman <dorit@il.ibm.com>
f9be04cd
RG
23688
23689 PR tree-optimization/26420
23690 * tree-vectorizer.c (vectorize_loops): Bail out early if there
23691 are no loops in the function. Only print the number of
23692 vectorized loops if it is greater than zero or we are supposed
23693 to print information about unvectorized loops.
23694
c1c5a431
RE
236952007-03-05 Revital Eres <eres@il.ibm.com>
23696
3c2d980c
UB
23697 * gcc.dg/var-expand1.c: New test.
23698 * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
23699 when an accumulator is expanded.
c1c5a431 23700
f73fe417
MLI
237012007-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23702
23703 PR other/30465
23704 * c-common.c (convert_and_check): Don't give warnings for
23705 conversion if 'expr' already overflowed.
cff4720f 23706
270d43bf
RS
237072007-03-04 Roger Sayle <roger@eyesopen.com>
23708
23709 PR middle-end/30744
23710 * fold-const.c (fold_comparison): Enforce type consistency when
23711 transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
23712
69bd3423
ZD
237132007-03-04 Zdenek Dvorak <dvorakz@suse.cz>
23714
23715 * tree-ssa-address.c (create_mem_ref): Do not put an expression
23716 containing a cast to the base of TARGET_MEM_REF.
23717
23204428
MM
237182007-03-04 Martin Michlmayr <tbm@cyrius.com>
23719
23720 * tree.c (tree_contains_struct_check_failed): Remove spurious
23721 whitespace from error message.
23722
7348aa7f
FXC
237232007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
23724
23725 PR target/30406
23726 * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
23727 instead of precision.
23728
594f8779 237292007-03-04 Roman Zippel <zippel@linux-m68k.org>
69bd3423 23730 Nathan Sidwell <nathan@codesourcery.com>
594f8779
RZ
23731
23732 * emit-rtl.c (find_auto_inc): New.
23733 (try_split): recreate REG_INC notes,
23734 Use regular for loops rather than whiles.
23735
695d8830
AS
237362007-03-03 Andreas Schwab <schwab@suse.de>
23737
23738 * configure.ac (HAVE_AS_REL16): Move test back to correct place.
23739 * configure: Regenerate.
23740
31ff73b5
KG
237412007-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23742
a5063932
KG
23743 * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
23744 flag_rounding_math, not flag_unsafe_math_optimizations.
23745
31ff73b5
KG
23746 * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
23747 fold_build2.
23748 * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
23749 alpha_fold_vector_minmax): Likewise.
23750 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
23751 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
23752
97002248
EB
237532007-03-02 Eric Botcazou <ebotcazou@adacore.com>
23754
23755 * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
23756 (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
23757 if the lhs has side-effects.
23758 <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
23759
e39e8c36
UB
237602007-03-02 Uros Bizjak <ubizjak@gmail.com>
23761
23762 * config/i386/i386.h (TUNEMASK): Remove define.
23763 (ARCHMASK): Remove define.
23764 (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
23765 Use ix86_arch_mask variable instead of ARCHMASK.
23766 * config/i386/i386.c (override_options): Ditto.
23767 (standard_80387_constant_p): Ditto.
23768
97002248 237692007-03-02 Ian Lance Taylor <iant@google.com>
12df8a7e
ILT
23770
23771 Used signed infinities in VRP.
23772 * tree-vrp.c (uses_overflow_infinity): New static function.
23773 (supports_overflow_infinity): New static function.
23774 (make_overflow_infinity): New static function.
23775 (negative_overflow_infinity): New static function.
23776 (positive_overflow_infinity): New static function.
23777 (is_negative_overflow_infinity): New static function.
23778 (is_positive_overflow_infinity): New static function.
23779 (is_overflow_infinity): New static function.
23780 (overflow_infinity_range_p): New static function.
23781 (compare_values_warnv): New function split out of compare_values.
23782 (compare_value): Call it.
23783 (set_value_range_to_nonnegative): Add overflow_infinity
23784 parameter. Change caller.
23785 (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
23786 Change callers.
23787 (vrp_expr_computes_nonzero): Likewise.
23788 (compare_ranges, compare_range_with_value): Likewise.
23789 (compare_name_with_value, compare_names): Likewise.
23790 (vrp_evaluate_conditional): Likewise.
23791 (set_value_range): Handle infinity
23792 (vrp_operand_equal_p, operand_less_p): Likewise.
23793 (extract_range_from_assert): Likewise.
23794 (vrp_int_const_binop): Likewise.
23795 (extract_range_from_binary_expr): Likewise.
23796 (extract_range_from_unary_expr): Likewise.
23797 (extract_range_from_comparison): Likewise.
23798 (extract_range_from_expr): Likewise.
23799 (dump_value_range): Likewise.
23800 (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
23801 (test_for_singularity): Likewise.
23802 (vrp_int_const_binop): Remove inline qualifier.
23803 (adjust_range_with_scev): Add comment.
23804 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
23805
6e7e772d
DN
238062007-03-02 Diego Novillo <dnovillo@redhat.com>
23807
23808 * tree-ssa-structalias.c (could_have_pointers): Tidy.
23809 (get_constraint_for): Likewise.
23810 (do_structure_copy): Likewise.
23811 (find_func_aliases): Fix references to MODIFY_EXPR.
23812 (intra_create_variable_infos): Tidy.
23813 * tree-ssa-operands.c (add_virtual_operand): Add argument
23814 IS_CALL_SITE.
23815 When adding members of alias sets, if IS_CALL_SITE is true and
23816 the symbol is not call-clobbered, skip it.
23817 Adjust all callers.
23818
e0759b73
EB
238192007-03-02 Eric Botcazou <ebotcazou@adacore.com>
23820
23821 * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
23822 entry by means of emit_insn_at_entry.
23823
962f3833
RH
238242007-03-02 Richard Henderson <rth@redhat.com>
23825
23826 * expr.h (promoted_input_arg): Remove decl.
23827 * function.c (promoted_input_arg): Merge into ...
23828 * combine.c (setup_incoming_promotions): ... only caller.
23829 Rearrange to avoid double loop.
23830
7393f7f8
BE
238312007-03-02 Ben Elliston <bje@au.ibm.com>
23832 Peter Bergner <bergner@vnet.ibm.com>
23833 Janis Johnson <janis187@us.ibm.com>
23834
23835 * config/rs6000/dfp.md: New file.
23836 * config/rs6000/rs6000.md: Include dfp.md.
23837 (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
23838 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
23839 and TDmode decimal float modes in FP registers.
23840 (num_insns_constant): Likewise.
23841 (rs6000_legitimate_offset_address_p): Likewise.
23842 (rs6000_legitimize_address): Likewise.
23843 (rs6000_legitimize_reload_address): Likewise.
23844 (rs6000_legitimate_address): Likewise.
23845 (rs6000_emit_move): Likewise.
23846 (function_arg_boundary): Likewise.
23847 (function_arg_advance): Likewise.
23848 (rs6000_darwin64_record_arg_recurse): Likewise.
23849 (function_arg): Likewise.
23850 (rs6000_gimplify_va_arg): Likewise.
23851 (rs6000_split_multireg_move): Likewise.
23852 (rs6000_output_function_epilogue): Likewise.
23853 (rs6000_output_function_epilogue): Likewise.
23854 (rs6000_register_move_cost): Likewise.
23855 (rs6000_function_value): Likewise.
23856 (rs6000_libcall_value): Likewise.
23857
1f24ba02
RS
238582007-03-02 Richard Sandiford <richard@codesourcery.com>
23859
23860 * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
23861
c3c9a5d2
RS
238622007-03-02 Richard Sandiford <richard@codesourcery.com>
23863
23864 * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
23865 Use $MULTIDIR to choose between the kernel and RTP headers,
23866 and use $WIND_BASE and $WIND_USR to locate them.
23867
0fa4c370
UB
238682007-03-02 Uros Bizjak <ubizjak@gmail.com>
23869
23870 * config/i386/i386.c (override_options): Put initialization of
23871 ix86_tune_mask and ix86_arch_mask to the correct place.
23872
8691cea3
UB
238732007-03-02 Uros Bizjak <ubizjak@gmail.com>
23874 Michael Meissner <michael.meissner@amd.com>
23875
23876 PR target/31019
23877 * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
23878 (ARCHMASK): Define.
23879 (TARGET_CMOVE): Use ARCHMASK.
23880 (TARGET_CMPXCHG): Ditto.
23881 (TARGET_CMPXCHG8B): Ditto.
23882 (TARGET_XADD): Ditto.
23883 (TARGET_BSWAP): Ditto.
23884 * config/i386/i386.c (ix86_tune_mask): New global variable.
23885 (ix86_arch_mask): Ditto.
23886 (override_options): Initialize ix86_tune_mask and
23887 ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
23888 target_flags.
23889
cee690f1
BE
238902007-03-02 Ben Elliston <bje@au.ibm.com>
23891
23892 PR 30992
23893 * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
23894
37ea0b7e
JM
238952007-03-02 Joseph Myers <joseph@codesourcery.com>
23896
23897 * target.h (init_dwarf_reg_sizes_extra): New target hook.
23898 * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
23899 * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
23900 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
23901 hook.
23902 * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
23903 rs6000_init_dwarf_reg_sizes_extra): New.
23904 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
23905 SPE register high parts.
23906
bcc3d150
BM
239072007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
23908
23909 * Makefile.in: Add install-pdf target as
23910 copied from automake v1.10 rules.
23911 * configure.ac: Add install-pdf to target list.
23912 * configure: Regenerate.
23913
fe2d934b
PB
239142007-03-01 Paul Brook <paul@codesourcery.com>
23915
23916 * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
23917 modes to LDRD for DImode.
23918 (output_move_double): Fixup out of range ldrd/strd.
23919 (vfp_secondary_reload_class): Rename...
23920 (coproc_secondary_reload_class): ... to this. Add wb argument.
23921 * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
23922 coproc_secondary_reload_class for CLASS_IWMMXT.
23923 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
23924 * arm-protos.h (coproc_secondary_reload_class): Update prototype.
23925
2711355f
ZD
239262007-03-01 Zdenek Dvorak <dvorakz@suse.cz>
23927
6ef5231b 23928 * tree-ssa-loop-prefetch.c (determine_unroll_factor): Bound the
7e08fa35
UB
23929 unroll factor by the estimated number of iterations.
23930 (loop_prefetch_arrays): Do not prefetch in loops that iterate less
23931 than prefetch latency.
2711355f 23932
5ca09e73
ZD
23933 * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
23934 decode_caches_intel, detect_caches_intel): New functions.
23935 (host_detect_local_cpu): Use detect_caches_amd and
23936 detect_caches_intel.
23937
ceca734e
RH
239382007-03-01 Richard Henderson <rth@redhat.com>
23939
23940 * expr.c (emit_move_complex_push): Export.
23941 (emit_move_complex_parts): Split out from ...
23942 (emit_move_complex): ... here.
23943 * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
23944 * config/i386/i386.md (movcdi): New.
23945
93de7743
UB
239462007-03-01 Uros Bizjak <ubizjak@gmail.com>
23947
23948 * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
23949 size of mode1 to check for tieable modes in MMX case.
23950
7ffb5e78
RS
239512007-03-01 Richard Sandiford <richard@codesourcery.com>
23952
23953 * Makefile.in (rtlanal.o): Depend on tree.h.
23954 * rtl.h (offset_within_section_p, split_const): Declare.
23955 * rtlanal.c: Include tree.h.
23956 (offset_within_block_p): New function, taken from
23957 mips_offset_within_object_p.
23958 (split_const): New function, taken from mips_split_const.
23959 * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
23960 Declare.
23961 * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
23962 (CONSTANT_ADDRESS_P): Only accept legitimate constants.
23963 (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
23964 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
23965 (m68k_illegitimate_symbolic_constant_p): New function.
23966 * config/m68k/m68k.md (movsi): Remove misleading predicates.
23967 If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
23968 symbolic constant that might be outside the symbol's section,
23969 move the symbol first and then add the offset.
23970 * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
23971 Override.
23972 * config/mips/mips.c (mips_split_const): Delete.
23973 (mips_offset_within_object_p): Delete.
23974 (mips_symbolic_constant_p): Use offset_within_section_p and
23975 split_const instead of mips_offset_within_object_p and
23976 mips_split_const.
23977 (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
23978 (mips_legitimize_const_move, print_operand_reloc)
23979 (mips_dangerous_for_la25_p): Use split_const instead of
23980 mips_split_const.
23981
d3dc619d
EC
239822007-02-28 Eric Christopher <echristo@apple.com>
23983
23984 * Makefile.in (install-include-dir): Don't rm -rf include.
23985
a6d5f37c
RG
239862007-02-28 Richard Guenther <rguenther@suse.de>
23987
23988 PR middle-end/30364
23989 * fold-const.c (fold_binary): Do not associate expressions
23990 with more than one variable for integer types that do not wrap.
23991
94a0dd7b
SL
239922007-02-28 Sandra Loosemore <sandra@codesourcery.com>
23993
23994 * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
23995 Delete, and replace with...
23996 (fold_builtin_call_array): This. Update callers to use it.
23997 * fold-const.c (fold_build_call_list): Delete, and replace with...
23998 (fold_build_call_array): This.
23999 (fold_build_call_list_initializer): Delete, and replace with...
24000 (fold_build_call_array_initializer): This.
24001 * tree.h: Update declarations to reflect above changes.
24002
24003 * c-typeck.c (build_function_call): Store converted arguments
24004 in a stack-allocated array instead of building a list.
24005 (convert_arguments): Store arguments in the array passed in as an
24006 argument, and return the actual number of arguments.
24007 * c-format.c: (check_function_format): Pass arguments in an
24008 array instead of a list.
24009 * c-common.c (check_function_nonnull): Likewise.
24010 (check_function_sentinel): Likewise.
24011 (check_function_arguments): Likewise.
24012 * c-common.h: Update declarations to reflect above changes.
24013
76bf4853
JH
240142007-02-28 Jan Hubicka <jh@suse.cz>
24015
24016 * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
24017 PRED_NEGATIVE_RETURN): Update outcomes.
24018
3b1bf459
BS
240192007-02-28 Bernd Schmidt <bernd.schmidt@analog.com>
24020
24021 * calls.c (emit_library_call_value_1): Handle partial registers
24022 correctly when building up CALL_INSN_FUNCTION_USAGE.
d3dc619d 24023
e214de0a
JDA
240242007-02-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24025
24026 * pa/predicates.md (move_src_operand): Allow zero for mode.
24027 * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
24028 move pattern.
24029
8ab93332
UB
240302007-02-27 Uros Bizjak <ubizjak@gmail.com>
24031
24032 PR target/30970
24033 * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
24034 *movv2df_internal): Enable pattern only for valid operand
24035 combinations.
24036 * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
24037 tie only 128bit modes. For MMX registers, tie only 64bit modes.
24038
3b414146
MS
240392007-02-27 Mike Stump <mrs@apple.com>
24040
24041 * config/darwin-crt3.c: Avoid compilation when compiling for a
24042 kext multilib.
24043
f686ec05
JM
240442007-02-27 Joseph Myers <joseph@codesourcery.com>
24045
24046 * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
24047 FIXED_INCLUDE_DIR.
24048 (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
24049 for fixed headers and limits.h.
24050 (install-include-dir, install-headers-tar, install-headers-cpio,
24051 install-headers-cp, real-install-headers-tar,
24052 real-install-headers-cpio, real-install-headers-cp): Handle
24053 include-fixed as well as include.
24054 (install-mkheaders): Don't install files that go only in include
24055 not include-fixed.
24056 * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
24057 from GCC_INCLUDE_DIR.
24058 * gcc.c (process_command): Remove special -BstageN/ handling.
24059 (do_spec_1): Add include-fixed directories.
24060
01e7cd6e
BS
240612007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
24062
24063 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
24064 _smulsi3_highpart.
24065 * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
24066 New functions.
24067 * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
24068 patterns.
24069
f6fc5c86
MM
240702007-02-27 Mark Mitchell <mark@codesourcery.com>
24071
24072 * c-common.c (get_priority): Add check for
24073 SUPPORTS_INIT_PRIORITY.
24074
9b02a95e
BS
240752007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
24076
24077 * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
24078
ce27ef3d
BS
24079 * config/bfin/bfin.c: Include "cfglayout.h".
24080 (MAX_LSETUP_DISTANCE): New macro.
24081 (struct loop_info): New members incoming, incoming_src and
24082 incoming_dest. Delete member predecessor.
24083 (length_for_loop): New function.
24084 (bfin_optimize_loop): Handle more different loop structures.
24085 (bfin_discover_loop): Rework detection of predecessor blocks by
24086 examining incoming edges.
24087 (bfin_discover_loops, bfin_free_loops): New functions, broken out of
24088 bfin_reorg_loops.
24089 (bfin_reorder_loops): New function.
24090 (bfin_reorg_loops): Use these three new functions.
24091
2889abed
BS
24092 * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
24093 REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
24094 (CONSTRAINT_LEN): Add entry for 'q'.
24095 (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
24096 Add 'q' constraints.
24097 (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
24098 (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
24099
24100 * config/bfin/bfin.md (add_with_carry): New pattern.
24101 (s_or_u, su_optab, su_modifier): New code macros/attrs.
24102 (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
24103 <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
24104 support unsigned multiplies too. Removed incorrect commutativity from
24105 operand 1 constraint where appropriate.
24106 (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
24107 patterns.
24108 (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
24109 <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
24110 New patterns.
24111 (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
24112 usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
24113 usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
24114 usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
24115 usmulhisi_hh_huh): New patterns.
24116
329437dd
BS
24117 * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
24118 lshifthi3): Fix output template to use half reg for operand 2.
24119
6ce986b9
BS
24120 * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
24121 instead of R2.
24122
97130915
BS
24123 * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
24124
3b4ed48b
AS
241252007-02-27 Andreas Schwab <schwab@suse.de>
24126
24127 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
24128
dcb995f7
JH
241292007-02-27 Jan Hubicka <jh@suse.cz>
24130
24131 * predict.c (last_basic_block_p): Remove.
24132 (tree_estimate_probability): Update return heuristic for commonized
24133 return blocks.
24134
e5fc6da8
BM
241352007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
24136
24137 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
24138
7771bb62
BM
241392007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
24140
24141 * doc/include/gcc-common.texi (versionsubtitle): New macro.
24142 * doc/cpp.texi: Standardize title page.
24143 * doc/cppinternals.texi: Likewise.
24144 * doc/gcc.texi: Standardize title page, remove version number
24145 from copyright page.
24146 * doc/gccint.texi: Likewise.
24147 * doc/install.texi: Standardize title page, add table of
24148 contents.
24149
75b6bb62
JH
241502007-02-26 Jan Hubicka <jh@suse.cz>
24151
24152 * predict.def: Set outcomes according to more recent results.
24153 (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
24154 Remove dead predictors.
24155 * predict.c (return_prediction): Fix pasto.
24156
48982394
BS
241572007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
24158
24159 * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
24160 change; avoid a memory leak when returning early.
d3dc619d 24161
b2f4bed8
MM
241622007-02-26 Mark Mitchell <mark@codesourcery.com>
24163
57a4c089
MM
24164 * c-decl.c (static_ctors): Move to c-common.c.
24165 (static_dtors): Likewise.
24166 (finish_function): Use c_record_cdtor_fn.
24167 (build_cdtor): Move to c-common.c.
24168 (c_write_global_declarations): Use c_build_cdtor_fns.
24169 * c-common.h (static_ctors): Declare.
24170 (static_dtors): Likewise.
24171 (c_record_cdtor_fn): Likewise.
24172 (c_build_cdtor_fns): Likewise.
24173 * c-common.c (static_ctors): New variable.
24174 (static_dtors): Likewise.
24175 (c_record_cdtor_fn): New function.
24176 (build_cdtor): Move from c-decl.c
24177 (c_build_cdtor_fns): New function.
24178
b2f4bed8
MM
24179 * output.h (assemble_addr_to_section): Declare.
24180 (get_cdtor_priority_section): Likewise.
24181 * varasm.c (assemble_addr_to_section): New function.
24182 (get_cdtor_priority_section): Likewise.
24183 (default_named_section_asm_out_destructor): Use them.
24184 (destor_dtor_section_asm_out_destructor): Likewise.
24185 (default_named_section_asm_out_constructor): Likewise.
24186 (default_ctor_section_asm_out_constructor): Likewise.
24187 * config.gcc (*-*-vxworks*): Include vxworks.o.
24188 * config/t-vxworks (vxworks.o): New target.
24189 * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
24190 (TARGET_ASM_CONSTRUCTOR): Define.
24191 (TARGET_ASM_DESTRUCTOR): Likewise.
24192 (vxworks_asm_out_constructor): Declare.
24193 (vxworks_asm_out_destructor): Likewise.
24194
24195 * c-common.c (get_priority): Check that we have not just an
24196 INTEGER_CST, but an integer constant with integeral type.
24197
c4a4d1a0
UB
241982007-02-25 Uros Bizjak <ubizjak@gmail.com>
24199
24200 PR tree-optimization/30938
24201 * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
24202 use &dt[nargs-1] instead of &dt[nargs] in the call to
24203 vect_is_simple_use().
24204
b098aaf2
UW
242052007-02-25 Ulrich Weigand <uweigand@de.ibm.com>
24206
24207 * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
24208 from register elimination as PRE_MODIFY / POST_MODIFY increments.
24209 Do not attempt to handle MEM inside auto-inc expressions.
24210 * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
24211 of a register modified by an auto-inc expression. However, do handle
24212 elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
24213 (elimination_effects): Prohibit elimination of a register modified
24214 by an auto-inc expression. Disable register elimination rules whose
24215 target register is modified by an auto-inc expression with variable
24216 increment.
24217
4839cb59
ZD
242182007-02-25 Zdenek Dvorak <dvorakz@suse.cz>
24219
24220 * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
24221 off-by-one error.
24222 (array_at_struct_end_p): New function.
24223 (idx_infer_loop_bounds): Use it.
24224 (estimate_numbers_of_iterations_loop): Export.
24225 * predict.c (predict_loops): Use estimated_loop_iterations_int.
24226 Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
24227 (tree_estimate_probability): Call record_loop_exits.
24228 * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
24229 (estimated_loop_iterations, estimated_loop_iterations_int,
24230 estimated_loop_iterations_tree): New functions.
24231 (analyze_siv_subscript_cst_affine,
24232 compute_overlap_steps_for_affine_1_2,
24233 analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
24234 (analyze_miv_subscript): Use estimated_loop_iterations_tree.
24235 * predict.def (PRED_LOOP_ITERATIONS): Update comment.
24236 (PRED_LOOP_ITERATIONS_GUESSED): New.
24237 * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
24238 * cfgloop.h (estimate_numbers_of_iterations_loop,
24239 estimated_loop_iterations_int): Declare.
24240
fc8600f9
MM
242412007-02-25 Mark Mitchell <mark@codesourcery.com>
24242
24243 * doc/extend.texi: Document optional priority argument to
24244 constructors and destructors.
24245 * tree.c (init_priority_for_decl): Adjust GTY markers.
24246 (init_ttree): Use priority-info hash functions for
24247 init_priority_for_decl.
24248 (tree_map_eq): Rename to ...
24249 (tree_map_base_eq): ... this.
24250 (tree_map_marked_p): Rename to ...
24251 (tree_map_base_marked_p): ... this.
24252 (tree_map_base_hash): New function.
24253 (decl_init_priority_lookup): Rework.
24254 (decl_fini_priority_lookup): New function.
24255 (decl_priority_info): New function.
24256 (decl_init_priority_insert): Use it.
24257 (decl_fini_priority_insert): Likewise.
24258 (decl_restrict_base_lookup): Adjust for refactoring of tree_map
24259 hierarchy.
24260 (decl_restrict_base_insert): Likewise.
24261 (decl_debug_expr_insert): Likewise.
24262 (decl_value_expr_lookup): Likewise.
24263 (decl_value_expr_insert): Likewise.
24264 * tree.h (priority_type): New type.
24265 (decl_init_priority_lookup): Use priority_type.
24266 (decl_fini_priority_lookup): New function.
24267 (decl_init_priority_insert): Use priority_type.
24268 (decl_fini_priority_insert): New function.
24269 (DECL_HAS_INIT_PRIORITY): Tweak comments.
24270 (DECL_INIT_PRIORITY): Likewise.
24271 (SET_DECL_INIT_PRIORITY): Add comment.
24272 (DECL_FINI_PRIORITY): New macro.
24273 (SET_DECL_FINI_PRIORITY): Likewise.
24274 (DEFAULT_INIT_PRIORITY): Document.
24275 (MAX_INIT_PRIORITY): Likewise.
24276 (MAX_RESERVED_INIT_PRIORITY): Likewise.
24277 (tree_map_base): New type.
24278 (tree_map_base_eq): New function.
24279 (tree_map_base_hash): Likewise.
24280 (tree_map_base_marked_p): Likewise.
24281 (tree_map): Inherit from tree_map_base.
24282 (tree_map_eq): Make it a macro.
24283 (tree_map_marked_p): Likewise.
24284 (tree_int_map): Inherit from tree_map_base.
24285 (tree_int_map_eq): Make it a macro.
24286 (tree_int_map_hash): Likewise.
24287 (tree_int_map_marked_p): Likewise.
24288 (tree_priority_map): New type.
24289 (tree_priority_map_eq): New macro.
24290 (tree_priority_map_hash): Likewise.
24291 (tree_priority_map_marked_p): Likewise.
24292 * varasm.c (emults_decl): Adjust for refactoring of tree_map
24293 hierarchy.
24294 (emutls_common_1): Likewise.
24295 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
24296 * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
24297 of tree_map hierarchy.
24298 * tree-cfg.c (move_stmt_r): Likewise.
24299 (new_label_mapper): Likewise.
24300 * c-tree.h (c_expand_body): Move to ...
24301 * c-common.h (c_expand_body): ... here.
24302 * c-decl.c (c_expand_body): Move to ...
24303 * c-common.c (c_expand_body): ... here.
24304 (c_common_attribute_table): Allow 1 argument for the constructor
24305 and destructor attributes.
24306 (get_priority): New function.
24307 (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
24308 (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
24309
2a025b54
JH
243102007-02-24 Jan Hubicka <jh@suse.cz>
24311
24312 PR middle-end/30509
7e08fa35
UB
24313 * tree-inline.c (copy_bb): Produce exact copy of EH info when
24314 copying for inlining.
2a025b54 24315
bd8d4d19
JH
243162007-02-24 Uros Bizjak <ubizjak@gmail.com>
24317 Jan Hubicka <jh@suse.cz>
24318
24319 PR target/30778
24320 * i386.c (counter_mode): New function.
24321 (expand_set_or_movmem_via_loop): Use it.
24322 (expand_movmem_epilogue): Likewise; fix pasto.
24323 (ix86_expand_movmem): Do emit guard even for constant counts.
24324 (ix86_expand_setmem): Likewise.
24325
e133c867
NC
243262007-02-25 Nick Clifton <nickc@redhat.com>
24327
24328 * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
24329 (JUMP_TABLES_IN_TEXT_SECTION): Define.
24330
73013054
UB
243312007-02-24 Uros Bizjak <ubizjak@gmail.com>
24332
24333 PR target/30770
24334 * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
24335 count argument with 0x10, not with 0x16.
24336 (expand_setmem_epilogue): Ditto.
24337
320ce1d3
MS
243382007-02-24 Mike Stump <mrs@apple.com>
24339
24340 * config/i386/i386.c (output_pic_addr_const): Stubify optimized
24341 symbols.
24342
a31498d2
RG
243432007-02-24 Richard Guenther <rguenther@suse.de>
24344
24345 PR middle-end/30951
24346 * fold-const.c (fold_binary): Fold x +- CST op x for
24347 EQ_EXPR and NE_EXPR.
24348
1e6e2c30
JDA
243492007-02-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24350
24351 * pa.md (muldi3): Force subregs to registers in 64-bit expander.
24352
a1d31187
JH
243532007-02-24 Jan Hubicka <jh@suse.cz>
24354
24355 * cgraphunit.c (decide_is_function_needed): Honor
24356 -fkeep-inline-functions.
24357
3d577eaf
KG
243582007-02-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24359
24360 * builtins.c (fold_builtin_modf): New.
24361 (fold_builtin_2): Use it.
24362
60683019
BS
243632007-02-24 Bernd Schmidt <bernd.schmidt@analog.com>
24364
24365 * loop-iv.c (implies_p): Detect additional cases where A implies B.
24366 (determine_max_iter): Take additional LOOP arg; all callers changed.
24367 Lose broken logic dealing with PLUS. Try to limit the upper bound by
24368 one using simplifications.
00c73ae6
BS
24369 (simplify_using_initial_values): Return if the expression becomes
24370 invalid due to altered regs.
60683019 24371
c4f46fde
DD
243722007-02-23 DJ Delorie <dj@redhat.com>
24373
24374 * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
24375
196bea21
MS
243762007-02-23 Mike Stump <mrs@apple.com>
24377
24378 * tlink.c (scan_linker_output): Parse linker messages from
24379 darwin9's linker better.
24380
a615f803
SE
243812007-02-23 Steve Ellcey <sje@cup.hp.com>
24382
24383 PR debug/29614
6ef5231b 24384 * varpool.c (varpool_assemble_pending_decls): Set
a615f803
SE
24385 varpool_last_needed_node to null.
24386
bf69f9d2
DD
243872007-02-23 DJ Delorie <dj@redhat.com>
24388
24389 * config/i386/i386.c (ix86_data_alignment): Don't specify an
24390 alignment bigger than the object file can handle.
24391
4afb7791
UB
243922007-02-23 Uros Bizjak <ubizjak@gmail.com>
24393
24394 PR target/30825
24395 * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
24396 zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
24397 (*movsf_1): Penalize MMX moves.
24398
0a8f8c45
BS
243992007-02-23 Bernd Schmidt <bernd.schmidt@analog.com>
24400
24401 * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
24402 2^32-1 or more times unless flag_unsafe_loop_optimizations.
24403
c67dc1a3
BS
24404 * loop-iv.c (determine_max_iter): Moved in front of its sole user.
24405
6351a719
KG
244062007-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24407
24408 * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
24409 (fold_builtin_1): Use them.
24410 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
24411 BUILT_IN_SIGNIFICAND.
24412
95764a8f
L
244132007-02-23 H.J. Lu <hongjiu.lu@intel.com>
24414
24415 * config/i386/i386.c (bdesc_1arg): Initialize
24416 IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
24417 "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
24418 (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
24419 and IX86_BUILTIN_MOVSLDUP.
24420
c0729306
PB
244212007-02-22 Paolo Bonzini <bonzini@gnu.org>
24422
24423 PR rtl-optimization/30841
95764a8f 24424 * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
c0729306 24425
7a2a25ab
KG
244262007-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24427
24428 * builtins.c (fold_builtin_frexp): New.
24429 (fold_builtin_2): Use it.
24430
30d8946b
MM
244312007-02-22 Mark Mitchell <mark@codesourcery.com>
24432
03d12b64
MM
24433 * doc/invoke.texi (Spec Files): Document getenv spec function.
24434
30d8946b
MM
24435 * gcc.c (getenv_spec_function): New function.
24436 (static_spec_functions): Add it.
24437 * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
24438 (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
24439 header files.
24440
a0ad3539
MM
244412007-02-22 Michael Matz <matz@suse.de
24442
24443 PR c++/29433
24444 * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
24445 (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
24446
0c5c188f
ILT
244472007-02-22 Ian Lance Taylor <iant@google.com>
24448
24449 PR debug/30898
24450 * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
24451 (mem_loc_descriptor): Call it.
24452
021a93e3 244532007-02-22 Zdenek Dvorak <dvorakz@suse.cz>
a0ad3539 24454 Ira Rosen <irar@il.ibm.com>
021a93e3
IR
24455
24456 * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
24457
8fca6de5
IR
244582007-02-22 Ira Rosen <irar@il.ibm.com>
24459
24460 PR tree-optimization/30843
d3dc619d 24461 * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
8fca6de5
IR
24462 stores only after all the group is vectorized.
24463
b3832a9f
DN
244642007-02-22 Dorit Nuzman <dorit@il.ibm.com>
24465
24466 PR tree-optimization/30858
24467 * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
24468 in the reduction cycle have a single use in the loop.
24469 * tree-vectorizer.h (relevant): Add documentation.
24470
ba7da42a
MS
244712007-02-20 Mike Stump <mrs@apple.com>
24472
24473 * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
24474 * configure: Regenerate.
24475
73701e27
TS
244762007-02-21 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
24477
24478 Change the defaults of some parameters and options.
24479 * config/spu/spu-protos.h (spu_optimization_options): Declare.
24480 * config/spu/spu.c (spu_optimization_options): Add.
24481 (spu_override_options): Change params in spu_optimization_options.
24482 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
24483
24484 Register 127 is only 16 byte aligned when used as a frame pointer.
24485 * config/spu/spu-protos.h (spu_init_expanders): Declare.
24486 * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
24487 HARD_FRAME_POINTER_REGNUM.
6ef5231b
JJ
24488 (spu_legitimate_address): Use regno_aligned_for_reload.
24489 (regno_aligned_for_load): HARD_FRAME_POINTER_REGNUM is only 16 byte
73701e27
TS
24490 aligned when frame_pointer_needed is true.
24491 (spu_init_expanders): New. Set alignment of HARD_FRAME_POINTER_REGNUM
24492 to 8 bits.
24493 * config/spu/spu.h (INIT_EXPANDERS): Define.
24494
24495 Make sure shift and rotate instructions have valid immediate operands.
24496 * config/spu/predicates.md (spu_shift_operand): Remove.
24497 * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
ba7da42a 24498 * config/spu/constraints.md (W, O): Extend range.
73701e27
TS
24499 * config/spu/spu.md (umask, nmask): Define.
24500 (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
24501 lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
24502 rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
24503 rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
24504 spu_nonmem_operand instead of spu_shift_operands. Use new modifiers.
6ef5231b 24505 (lshr<mode>3_reg): Fix rtl description.
73701e27
TS
24506
24507 Make sure mulhisi immediate operands are valid.
24508 * config/spu/predicates.md (imm_K_operand): Add.
24509 * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
24510
24511 Generate constants using fsmbi and andi.
24512 * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
24513 (print_operand, spu_split_immediate, classify_immediate,
24514 fsmbi_const_p): Handle IC_FSMBI2.
24515
24516 Correctly handle a CONST_VECTOR containing symbols.
24517 * config/spu/spu.c (print_operand): Handle HIGH correctly.
24518 (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
24519 (immediate_load_p): Allow symbols that use 2 instructions to create.
6ef5231b 24520 (classify_immediate, spu_builtin_splats): Don't accept a CONST_VECTOR
73701e27
TS
24521 with symbols when flag_pic is set.
24522 (const_vector_immediate_p): New.
24523 (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
24524 accept a CONST_VECTOR with symbols.
24525 (spu_legitimate_constant_p): Use const_vector_immediate_p. Don't
24526 accept a CONST_VECTOR with symbols when flag_pic is set. Handle HIGH
24527 correctly.
24528 * config/spu/spu.md (high, low): Delete.
24529 (low_<mode>): Define.
24530
24531 Remove INTRmode and INTR_REGNUM, which didn't work.
24532 * config/spu/spu.c (spu_conditional_register_usage): Remove reference
24533 of INTR_REGNUM.
24534 * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
24535 set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
24536 peephole2 pattern): Don't use INTR or 131.
24537 (movintrcc): Delete.
24538 * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
24539 CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
24540 * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
24541 (UNSPEC_SET_INTR): Add.
24542 * config/spu/spu-modes.def (INTR): Remove.
24543
24544 More accurate warnings about run-time relocations.
24545 * config/spu/spu.c (reloc_diagnostic): Test in_section.
24546
24547 Correctly warn about immediate arguments to specific intrinsics.
24548 * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
24549 (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
24550 the instruction predicate.
24551
24552 Fix tree check errors with latest update.
24553 * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
24554 CALL_EXPR_ARG.
24555 (spu_expand_builtin): Use CALL_EXPR_FN.
24556
24557 Add missing specific intrinsics.
24558 * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
24559 si_bislede.
24560 * config/spu/spu_internals.h: Ditto.
24561
24562 Fix incorrect operand modifiers.
6ef5231b
JJ
24563 * config/spu/spu-builtins.md (spu_mpy, spu_mpyu): Remove use of %H.
24564 * config/spu/spu.md (xor<mode>3): Change %S to %J.
73701e27
TS
24565
24566 Optimize one case of zero_extend of a vec_select.
6ef5231b 24567 * config/spu/spu.md (_vec_extractv8hi_ze): Add.
73701e27
TS
24568
24569 Accept any immediate for hbr.
6ef5231b 24570 * config/spu/spu.md (hbr): Change s constraints to i.
73701e27 24571
5b0202af
PB
245722007-02-21 Paul Brook <paul@codesourcery.com>
24573
24574 * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
24575 condexec_count when skipping USE and CLOBBER.
24576
21af5cdf
NC
245772007-02-21 Nick Clifton <nickc@redhat.com>
24578
24579 * common.opt (Warray-bounds): Add Warning attribute.
24580 (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
24581 Likewise.
24582 (fsized-zeroes): Add Optimization attribute.
24583 (fsplit-wide-types, ftree-scev-cprop): Likewise.
24584 * c.opt (Wc++0x-compat): Add Warning attribute.
24585
551d6929
UW
245862007-02-21 Ulrich Weigand <uweigand@de.ibm.com>
24587
24588 PR middle-end/30761
24589 * reload1.c (eliminate_regs_in_insn): In the single_set special
24590 case, attempt to re-recognize the insn before falling back to
24591 having reload fix it up.
24592
2396bce1
EC
245932007-02-20 Eric Christopher <echristo@gmail.com>
24594
24595 * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
24596 Rewrite accordingly.
24597 (frv_read_iacc_argument): Ditto.
24598 (frv_expand_set_builtin): Take a call instead of arglist, update for
24599 above changes.
24600 (frv_expand_unop_builtin): Ditto.
24601 (frv_expand_binop_builtin): Ditto.
24602 (frv_expand_cut_builtin): Ditto.
24603 (frv_expand_binopimm_builtin): Ditto.
24604 (frv_expand_voidbinop_builtin): Ditto.
24605 (frv_expand_int_void2arg): Ditto.
24606 (frv_expand_prefetches): Ditto.
24607 (frv_expand_voidtriop_builtin): Ditto.
24608 (frv_expand_voidaccop_builtin): Ditto.
24609 (frv_expand_load_builtin): Ditto.
24610 (frv_expand_store_builtin): Ditto.
24611 (frv_expand_mdpackh_builtin): Ditto.
24612 (frv_expand_mclracc_builtin): Ditto.
24613 (frv_expand_mrdacc_builtin): Ditto.
24614 (frv_expand_mwtacc_builtin): Ditto.
24615 (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
24616 calls for above.
24617
b639c3c2
JJ
246182007-02-20 Janis Johnson <janis187@us.ibm.com>
24619
24620 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
24621 * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
24622 cmpb instruction.
24623 (HAVE_GAS_DFP): Check for assembler support of decimal floating
24624 point instructions.
24625 * configure: Regenerate.
24626 * config.in: Regenerate.
24627 * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
24628 * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
24629 masks to power6 and power6x and to POWERPC_MASKS.
24630 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
24631 _ARCH_PWR6.
24632 * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
24633 * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
24634 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
24635 Access PROTOTYPE as variable, not mask.
24636
7cd689bc
SB
246372007-02-20 Steven Bosscher <steven@gcc.gnu.org>
24638
24639 * rtl.h (remove_reg_equal_equiv_notes): New prototype.
24640 * rtlanal.c (remove_reg_equal_equiv_notes): New function.
24641 * combine.c (adjust_for_new_dest): Use it.
24642 * postreload.c (reload_combine): Likewise.
24643
ea8f106d
SB
246442007-02-20 Steven Bosscher <steven@gcc.gnu.org>
24645
24646 * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
24647 notes on an insn with multiple sets, even if single_set returns
24648 non-NULL for that insn.
24649
8df79ac5
KG
246502007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24651
24652 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
24653 scalbn and scalbln.
24654
32ec6542
GK
246552007-02-20 Geoffrey Keating <geoffk@apple.com>
24656
24657 * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
24658 if user didn't pass it.
24659 * config/i386/darwin.h (CC1_SPEC): Likewise.
24660 * config/rs6000/darwin.h (CC1_SPEC): Likewise.
24661 (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
24662 -mmacosx-version-min.
24663
0c0d910d
KG
246642007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24665 Uros Bizjak <ubizjak@gmail.com>
24666
24667 * optabs.h (enum optab_index): Add new OTI_scalb.
24668 (scalb_optab): Define corresponding macro.
24669 * optabs.c (init_optabs): Initialize scalb_optab.
24670 * genopinit.c (optabs): Implement scalb_optab using scalb?f3
24671 patterns.
24672 * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
24673 BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
24674 (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
24675 and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
24676 flag_unsafe_math_optimizations is set.
24677
24678 * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
24679 to implement scalbf, scalb and scalbl built-ins as inline x87
24680 intrinsics.
24681
4e2bae26 246822007-02-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
ba7da42a 24683 DJ Delorie <dj@redhat.com>
4e2bae26
MLI
24684
24685 PR other/30824
24686 * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
24687 (diagnostic_report_diagnostic): ... here, and turn them into real
24688 errors. If warnings are inhibited, no need to do anything.
24689
6bdcc60c
UB
246902007-02-20 Uros Bizjak <ubizjak@gmail.com>
24691
24692 * config/i386/i386.md (expm1xf2): Reorder insn sequence for
24693 better code generation.
24694
9e4bd0ea
BE
246952007-02-20 Ben Elliston <bje@au.ibm.com>
24696
24697 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
24698
a50aa827
KH
246992007-02-20 Kazu Hirata <kazu@codesourcery.com>
24700
24701 * config/alpha/alpha.c, config/alpha/alpha.md,
24702 config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
24703 config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
24704 config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
24705 config/arm/lib1funcs.asm: Follow spelling conventions.
24706
a7b376ee
KH
24707 * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
24708 config/fr30/fr30.md, config/i386/i386.h,
24709 config/iq2000/iq2000.h, config/iq2000/predicates.md,
24710 config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
24711 config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
24712 config/pdp11/pdp11.c, config/pdp11/pdp11.h,
24713 config/rs6000/altivec.md, config/rs6000/rs6000.c,
24714 config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
24715 config/sparc/sparc.c, config/sparc/sparc.h,
24716 config/sparc/sparc.md, config/spu/constraints.md,
24717 config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
24718 conventions.
24719
10daf677
AM
247202007-02-20 Alan Modra <amodra@bigpond.net.au>
24721
24722 PR target/29943
24723 * varasm.c (use_blocks_for_decl_p): Return false for decls with
24724 alias attribute.
24725
8af63653
KH
247262007-02-19 Kazu Hirata <kazu@codesourcery.com>
24727
24728 * doc/invoke.texi (-ftree-lrs): Remove.
24729
ac02df49
DN
247302007-02-19 Diego Novillo <dnovillo@redhat.com>
24731
24732 * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
24733 NULL.
24734
767fad4c
LM
247352007-02-19 Lee Millward <lee.millward@codesourcery.com>
24736
24737 * config/ia64/ia64.c (ia64_expand_builtin): Use the
2396bce1 24738 new CALL_EXPR_FN macro for retrieving the function
767fad4c 24739 declaration of the input expression.
2396bce1 24740
c116cd05
MLI
247412007-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24742
24743 * c.opt (Waddress): New.
24744 * common.opt (Walways-true): Delete.
24745 (Wstring-literal-comparison): Delete.
24746 * doc/invoke.texi (Warning Options): Delete -Walways-true and
24747 -Wstring-literal-comparison. Add -Waddress.
24748 (Waddress): New.
24749 (Walways-true): Delete.
24750 (Wstring-literal-comparison): Delete.
24751 * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
24752 consistently instead of -Walways-true in example.
24753 * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
24754 * c-typeck.c (parser_build_binary_op): Replace
24755 -Wstring-literal-comparison and -Walways-true with -Waddress.
24756 * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
24757 with -Waddress.
2396bce1 24758
459ffad3
EB
247592007-02-19 Eric Botcazou <ebotcazou@adacore.com>
24760
24761 * tree-cfg.c (dump_function_to_file): Be prepared for functions
24762 without DECL_STRUCT_FUNCTION initialized.
24763
df10ee2a
EB
247642007-02-19 Eric Botcazou <ebotcazou@adacore.com>
24765
24766 * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
24767 due to calls to functions taking pointers as parameters.
24768
80a3af5b
RH
247692007-02-19 Richard Henderson <rth@redhat.com>
24770
6bdcc60c
UB
24771 PR debug/29558
24772 * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
24773 in memory.
80a3af5b 24774
9a6f71b4
AK
247752007-02-19 Andreas Krebbel <krebbel1@de.ibm.com>
24776
24777 * config/s390/s390.c (s390_call_saved_register_used,
24778 s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
24779 accessed to the new scheme.
24780
991c42ac
JBG
247812007-02-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24782
24783 * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
24784 (cris_print_index, cris_print_operand, cris_print_operand_address)
24785 (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
24786 (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
24787 (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
24788 GET_CODE () == xxx.
24789 * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
24790 EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
24791 GO_IF_LEGITIMATE_ADDRESS): Ditto.
24792 * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
24793 (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
24794 (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
24795 (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
24796 (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
24797 (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
24798 (uminsi3, call, call_value): Ditto.
24799 (define_split: indir_to_reg_split, unnamed): Ditto.
24800
602fea7c
DN
248012007-02-19 Dorit Nuzman <dorit@il.ibm.com>
24802
24803 PR tree-optimization/30975
24804 * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
24805 wrong assert.
24806
5646ba12
EC
248072007-02-18 Eric Christopher <echristo@gmail.com>
24808
24809 * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
24810 Remove use of arglist.
24811 (mips_expand_builtin): Remove use of arglist, pass in expr.
24812 (mips_expand_builtin_direct): Rewrite handling for arglist removal.
24813 (mips_expand_builtin_movtf): Ditto.
24814 (mips_expand_builtin_compare): Ditto.
24815
30047199
AO
248162007-02-19 Alexandre Oliva <aoliva@redhat.com>
24817
24818 * tree-sra.c (sra_build_assignment): Replace assertion
24819 checking with a comment explaining why it can't be done.
24820
3328fbb7
SL
248212007-02-18 Sandra Loosemore <sandra@codesourcery.com>
24822
24823 PR middle-end/30833
24824 * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
24825 during CALL_EXPR representation conversion.
24826 * tree-ssa-propagate.c (set_rhs): Likewise.
24827
eb441084
AO
248282007-02-19 Alexandre Oliva <aoliva@redhat.com>
24829
24830 * tree-sra.c (sra_build_assignment): Disable assertion checking
24831 for now.
24832
b56b9fe3
RS
248332007-02-18 Roger Sayle <roger@eyesopen.com>
24834
24835 * function.c (gimplify_parameters): Call build_gimple_modify_stmt
24836 instead of calling build2 with a GIMPLE_MODIFY_STMT.
24837 * gimple-low.c (lower_function_body, lower_builtin_setjmp):
24838 Likewise.
24839 * gimplify.c (build_stack_save_restore, gimplify_return_expr,
24840 gimplify_decl_expr, gimplify_self_mod_expr, gimplify_cond_expr,
24841 gimplify_init_ctor_eval_range, gimple_push_cleanup,
5646ba12 24842 gimplify_omp_for, gimplify_omp_atomic_pipeline,
b56b9fe3
RS
24843 gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
24844 force_gimple_operand): Likewise.
24845 * ipa-cp.c (constant_val_insert): Likewise.
24846 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
24847 lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
24848 perfect_nestify): Likewise.
24849 * langhooks.c (lhd_omp_assignment): Likewise.
24850 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
24851 lower_copyprivate_clauses, lower_send_clauses,
24852 lower_send_shared_vars, expand_parallel_call,
24853 expand_omp_for_generic, expand_omp_for_static_nochunk,
24854 expand_omp_for_static_chunk, expand_omp_sections,
24855 lower_omp_single_copy, lower_omp_for_lastprivate,
24856 lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
24857 * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
24858 tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
24859 Likewise.
24860
3b962ea0
KH
248612007-02-19 Kazu Hirata <kazu@codesourcery.com>
24862
24863 * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
24864 config/sh/sh.md: Follow spelling conventions.
24865
2300b9dd
KH
24866 * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
24867 config/frv/predicates.md: Follow spelling conventions.
24868
da08281c
KH
24869 * config/m68k/linux-unwind.h: Fix a comment typo.
24870 * target.h: Follow spelling conventions.
24871
49e7a9d4
RS
248722007-02-18 Roger Sayle <roger@eyesopen.com>
24873
24874 PR rtl-optimization/28173
6ef5231b 24875 * simplify-rtx.c (simplify_binary_operation_1) <IOR>: Optimize
49e7a9d4
RS
24876 (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
24877 Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
24878 Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
24879 <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
24880
2b5e5642
KG
248812007-02-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24882
24883 * builtins.c (fold_builtin_load_exponent): New.
24884 (fold_builtin_2): Use it.
24885
8800a9b3
SB
248862007-02-18 Steven Bosscher <steven@gcc.gnu.org>
24887
24888 PR rtl-optimization/30773
24889 * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
24890 if we fail to attach a REG_EQUIV note.
24891
03f79051
DE
248922007-02-18 David Edelsohn <edelsohn@gnu.org>
24893 Roger Sayle <roger@eyesopen.com>
24894
24895 * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
24896
078a18a4
SL
248972007-02-18 Sandra Loosemore <sandra@codesourcery.com>
24898
24899 * calls.c (initialize_argument_information): Pass original EXP
24900 and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments. Move
24901 code to split complex arguments here, as part of initializing the
24902 ARGS array.
24903 (expand_call): Remove code that builds a list of arguments and
24904 inserts implicit arguments into it. Instead, just count how many
24905 implicit arguments there will be so we can determine the size of
24906 the ARGS array, and let initialize_argument_information do the work.
24907 (split_complex_values): Delete unused function.
24908
483edb92
EB
249092007-02-18 Eric Botcazou <ebotcazou@adacore.com>
24910
24911 * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
24912
ae22dcff
EB
249132007-02-18 Eric Botcazou <ebotcazou@adacore.com>
24914
24915 * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
24916 for arg pointer based indexed addressing.
24917
27a9b99d
KH
249182007-02-18 Kazu Hirata <kazu@codesourcery.com>
24919
24920 * config/ia64/ia64.h, config/ia64/ia64.md,
24921 config/ia64/predicates.md, config/ia64/sysv4.h: Follow
24922 spelling conventions.
24923
01e304f8
RZ
249242007-02-18 Roman Zippel <zippel@linux-m68k.org>
24925
24926 * config/m68k/m68k.c (split_di): New.
24927 * config/m68k/m68k-protos.h: Declare split_di.
24928 * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
24929 Improve predicate handling and split constant shifts.
24930
3670ec28
RZ
249312007-02-18 Roman Zippel <zippel@linux-m68k.org>
24932
24933 * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
24934 parameter for register bitfield operations, general predicates
24935 cleanup
24936
19a95697
RZ
249372007-02-18 Roman Zippel <zippel@linux-m68k.org>
24938
24939 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
24940 * config/m68k/linux-unwind.h: New file.
24941
ea2c620c
KH
249422007-02-18 Kazu Hirata <kazu@codesourcery.com>
24943
24944 * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
24945 config/i386/athlon.md, config/ia64/ia64.md,
24946 config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
24947 df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
24948 ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
24949 tree-ssa-loop-niter.c, tree-vect-analyze.c,
24950 tree-vect-transform.c: Fix comment typos.
24951
51db94a0
KH
249522007-02-17 Kazu Hirata <kazu@codesourcery.com>
24953
24954 * sched-deps.c (find_insn_list): Remove.
24955 * sched-int.h: Remove the prototype for find_insn_list.
24956
982afe02
GK
249572007-02-16 Geoffrey Keating <geoffk@apple.com>
24958
e4cad568
GK
24959 * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
24960 to linker.
24961 (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
24962 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
24963 darwin_rs6000_override_options.
24964 (C_COMMON_OVERRIDE_OPTIONS): Expect
24965 darwin_macosx_version_min to be non-NULL always.
24966 (TARGET_C99_FUNCTIONS): Likewise.
24967 (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
24968 (DARWIN_MINVERSION_SPEC): New.
24969 * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
24970 * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
5646ba12 24971 to cc1*.
e4cad568
GK
24972 (DARWIN_MINVERSION_SPEC): New.
24973 * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
24974 value.
24975 * config/darwin-c.c (darwin_cpp_builtins): Expect
24976 darwin_macosx_version_min to be non-NULL always.
24977
982afe02
GK
24978 * config/rs6000/rs6000.c: Clean up trailing whitespace.
24979
fa681e39
UB
249802007-02-16 Uros Bizjak <ubizjak@gmail.com>
24981
24982 * config/i386/i386.h (x86_use_xchgb): New.
24983 (TARGET_USE_XCHGB): New macro.
24984 * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
24985 * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
24986 Split after reload into bswaphi for shifts of 8.
24987 (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
24988 (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
24989 or when optimizing for size.
5646ba12 24990
421076b5 249912007-02-16 Richard Guenther <rguenther@suse.de>
fa681e39 24992 Christian Bruel <christian.bruel@st.com>
421076b5
RG
24993
24994 * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
24995 DECLs but prefer SSA_NAMEs over DECLs.
24996
40b448ef
RG
249972007-02-16 Richard Guenther <rguenther@suse.de>
24998
24999 * tree-flow-inline.h (single_imm_use_p): Remove.
25000 (zero_imm_uses_p): Likewise.
25001 * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
25002 instead of single_imm_use_p.
25003 * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
25004 zero_imm_uses_p.
25005
70d0631e
RW
250062007-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25007
25008 PR other/27843
25009 * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
25010 nested double- and backquotes.
25011
939409af
RS
250122007-02-15 Roger Sayle <roger@eyesopen.com>
25013
25014 PR middle-end/30391
25015 * tree.c (expr_align): Handle MODIFY_EXPR. GIMPLE_MODIFY_STMT
25016 should be unreachable.
25017 (build2_stat): Allow construction of MODIFY_EXPR at any time.
25018 For the time being redirect GIMPLE_MODIFY_STMT to the new
25019 (renamed) build_gimple_modify_stmt_stat.
25020 (build2_gimple_stat): Rename to...
25021 (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
25022 Always build a GIMPLE_MODIFY_STMT node.
25023 * tree.h (build2_gimple, build2_gimple_stat): Delete.
25024 (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
25025 declarations.
25026
25027 * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
25028 gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
25029 * tree-complex.c (set_component_ssa_name, expand_complex_move,
25030 expand_complex_div_wide): Likewise.
25031 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
25032 * tree-ssa-loop-im.c (schedule_sm): Likewise.
25033 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
25034 * tree-ssa-loop-manip.c (create_iv): Likewise.
25035 * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
25036 abs_replacement): Likewise.
25037 * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
25038 realify_fake_stores): Likewise.
25039
25040 * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
25041 node rather than a GIMPLE_MODIFY_STMT node.
25042 (std_gimpify_va_arg_expr, expand_builtin_va_copy,
25043 fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
25044 Likewise.
25045 (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
25046 * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
25047 GIMPLE_MODIFY_STMT.
25048
3c32c87f
AP
250492007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
25050
25051 PR middle-end/30433
25052 * fold-const.c (fold_comparison): Add back the
25053 folding of constant complex comparisions.
25054
d3d6f724
AP
250552007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
25056
25057 PR middle-end/30729
25058 * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
25059 effects unknown to this function, return early.
25060
73663bb7
ILT
250612007-02-15 Ian Lance Taylor <iant@google.com>
25062
25063 * lower-subreg.c (move_eh_region_note): New static function.
25064 (resolve_simple_move): Call it.
25065 (decompose_multiword_subregs): Track blocks for which we resolve a
25066 simple move which is also a control flow insn. Pass them to
25067 find_many_sub_basic_blocks.
25068 (pass_lower_subreg): Add TODO_verify_flow.
25069 (pass_lower_subreg2): Likewise.
25070
5039610b
SL
250712007-02-15 Sandra Loosemore <sandra@codesourcery.com>
25072 Brooks Moses <brooks.moses@codesourcery.com>
25073 Lee Millward <lee.millward@codesourcery.com>
25074
25075 * tree.h (enum tree_code_class): Add tcc_vl_exp.
25076 (VL_EXP_CLASS_P): New.
25077 (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
25078 TREE_CODE_LENGTH.
25079 (TREE_OPERAND_CHECK_CODE): Likewise.
25080 (GIMPLE_STMT_OPERAND_CHECK): Likewise.
25081 (TREE_RTL_OPERAND_CHECK): Likewise.
25082 (tree_operand_check_failed): Make second parameter the whole tree
25083 instead of its code. Fixed callers.
25084 (VL_EXP_CHECK): New.
25085 (TREE_OPERAND_LENGTH): New.
25086 (VL_EXP_OPERAND_LENGTH): New.
25087 (CALL_EXPR_FN): New.
25088 (CALL_EXPR_STATIC_CHAIN): New.
25089 (CALL_EXPR_ARGS): New.
25090 (CALL_EXPR_ARG): New.
25091 (call_expr_nargs): New.
25092 (CALL_EXPR_ARGP): New.
25093 (build_nt_call_list): Declare.
25094 (build_vl_exp_stat): Declare.
25095 (build_vl_exp): New.
25096 (build_call_list): Declare.
25097 (build_call_nary): Declare.
25098 (build_call_valist): Declare.
25099 (build_call_array): Declare.
25100 (call_expr_arg): Declare.
25101 (call_expr_argp): Declare.
25102 (call_expr_arglist): Declare.
25103 (fold_build_call_list): Declare.
25104 (fold_build_call_list_initializer): Declare.
25105 (fold_call_expr): Declare to replace fold_builtin.
25106 (fold_builtin_fputs): Update to agree with modified definition.
25107 (fold_builtin_strcpy): Likewise.
25108 (fold_builtin_strncpy): Likewise.
25109 (fold_builtin_memory_chk): Likewise.
25110 (fold_builtin_stxcpy_chk): Likewise.
25111 (fold_builtin_strncpy_chk): Likewise.
25112 (fold_builtin_next_arg): Likewise.
25113 (fold_build_call_expr): Declare.
25114 (fold_builtin_call_list): Declare.
25115 (fold_builtin_call_valist): Declare.
25116 (build_call_expr): Declare.
25117 (validate_arglist): Update to agree with modified definition.
25118 (tree_operand_length): New.
25119 (call_expr_arg_iterator): New.
25120 (init_call_expr_arg_iterator): New.
25121 (next_call_expr_arg): New.
25122 (first_call_expr_arg): New.
25123 (more_call_expr_args_p): New.
25124 (FOR_EACH_CALL_EXPR_ARG): New.
25125
25126 * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
25127 and tcc_gimple_stmt.
25128 (tree_code_size): Update documentation. Use sizeof (tree) rather
25129 than sizeof (char *).
25130 (tree_size): Likewise. Add case for tcc_vl_exp.
25131 (tree_node_structure): Add case for tcc_vl_exp.
25132 (contains_placeholder_p): Likewise.
25133 (substitute_in_expr): Likewise.
25134 (substitute_placeholder_in_expr): Likewise.
25135 (stabilize_reference_1): Likewise.
25136 (build3_stat): Remove logic for CALL_EXPRs. Replace with assertion
25137 to diagnose breakage of this interface for constructing CALL_EXPRs.
25138 (build_nt): Add similar assertion here.
25139 (build_nt_call_list): New.
25140 (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
25141 (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
25142 TREE_CODE_LENGTH.
25143 (get_callee_fndecl): Use new CALL_EXPR accessors.
25144 (tree_operand_check_failed): Change parameters to pass entire node
25145 instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
25146 (process_call_operands): New.
25147 (build_vl_exp_stat): New.
25148 (build_call_list): New.
25149 (build_call_nary): New.
25150 (build_call_valist): New.
25151 (build_call_array): New.
25152 (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
25153 (call_expr_arglist): New.
25154
25155 * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
25156 tcc_vl_exp instead of a fixed-size tcc_expression.
25157
25158 * doc/c-tree.texi (CALL_EXPR): Document new representation and
25159 accessors for CALL_EXPRs.
25160 (AGGR_INIT_EXPR): Likewise.
25161
251622007-02-15 Sandra Loosemore <sandra@codesourcery.com>
25163 Brooks Moses <brooks.moses@codesourcery.com>
25164 Lee Millward <lee.millward@codesourcery.com>
25165
25166 * builtins.c (c_strlen): Return NULL_TREE instead of 0.
25167 (expand_builtin_nonlocal_goto): Change parameter to be entire
25168 CALL_EXPR instead of an arglist. Use new CALL_EXPR accessors.
25169 (expand_builtin_prefetch): Likewise.
25170 (expand_builtin_classify_type): Likewise.
25171 (mathfn_built_in): Return NULL_TREE instead of 0.
25172 (expand_errno_check): Use new CALL_EXPR accessors.
25173 (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
25174 Return NULL_RTX instead of 0.
25175 (expand_builtin_mathfn_2): Likewise.
25176 (expand_builtin_mathfn_3): Likewise.
25177 (expand_builtin_interclass_mathfn): Likewise.
25178 (expand_builtin_sincos): Likewise.
25179 (expand_builtin_cexpi): Likewise.
25180 (expand_builtin_int_roundingfn): Likewise.
25181 (expand_builtin_int_roundingfn_2): Likewise.
25182 (expand_builtin_pow): Likewise.
25183 (expand_builtin_powi): Likewise.
25184 (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
25185 of arglist, fixing callers appropriately. Use new CALL_EXPR
25186 accessors and constructors. Return NULL_RTX instead of 0.
25187 (expand_builtin_strstr): Likewise.
25188 (expand_builtin_strchr): Likewise.
25189 (expand_builtin_strrchr): Likewise.
25190 (expand_builtin_strpbrk): Likewise.
25191 (expand_builtin_memcpy): Likewise.
25192 (expand_builtin_mempcpy): Likewise.
25193 (expand_builtin_mempcpy_args): New.
25194 (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
25195 (expand_builtin_memmove_args): New.
25196 (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
25197 (expand_movstr): Likewise.
25198 (expand_builtin_strcpy): Likewise.
25199 (expand_builtin_strcpy_args): New.
25200 (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
25201 (expand_builtin_strncpy): Likewise.
25202 (expand_builtin_memset): Likewise.
25203 (expand_builtin_memset_args): New.
25204 (expand_builtin_bzero): Similarly to expand_builtin_memset.
25205 (expand_builtin_memcmp): Likewise.
25206 (expand_builtin_strcmp): Likewise.
25207 (expand_builtin_strncmp): Likewise.
25208 (expand_builtin_strcat): Likewise.
25209 (expand_builtin_strncat): Likewise.
25210 (expand_builtin_strspn): Likewise.
25211 (expand_builtin_strcspn): Likewise.
25212 (expand_builtin_args_info): Likewise.
25213 (expand_builtin_va_start): Likewise.
25214 (gimplify_va_arg_expr): Likewise.
25215 (expand_builtin_va_end): Likewise.
25216 (expand_builtin_va_copy): Likewise.
25217 (expand_builtin_frame_address): Likewise.
25218 (expand_builtin_alloca): Likewise.
25219 (expand_builtin_bswap): Likewise.
25220 (expand_builtin_unop): Likewise.
25221 (expand_builtin_fputs): Likewise.
25222 (expand_builtin_expect): Likewise.
25223 (expand_builtin_fabs): Likewise.
25224 (expand_builtin_copysign): Likewise.
25225 (expand_builtin_printf): Likewise.
25226 (expand_builtin_fprintf): Likewise.
25227 (expand_builtin_sprintf): Likewise.
25228 (expand_builtin_init_trampoline): Likewise.
25229 (expand_builtin_signbit): Likewise.
25230 (expand_builtin_fork_or_exec): Likewise.
25231 (expand_builtin_sync_operation): Likewise.
25232 (expand_builtin_compare_and_swap): Likewise.
25233 (expand_builtin_lock_test_and_set): Likewise.
25234 (expand_builtin_lock_release): Likewise.
25235 (expand_builtin): Likewise.
25236 (builtin_mathfn_code): Likewise.
25237
25238 (fold_builtin_constant_p): Pass call arguments individually instead
25239 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
25240 accessors and constructors. Return NULL_TREE instead of 0.
25241 (fold_builtin_expect): Likewise.
25242 (fold_builtin_classify_type): Likewise.
25243 (fold_builtin_strlen): Likewise.
25244 (fold_builtin_nan): Likewise.
25245 (integer_valued_real_p): Likewise.
25246 (fold_trunc_transparent_mathfn): Likewise.
25247 (fold_fixed_mathfn): Likewise.
25248 (fold_builtin_cabs): Likewise.
25249 (fold_builtin_sqrt): Likewise.
25250 (fold_builtin_cbrt): Likewise.
25251 (fold_builtin_cos): Likewise.
25252 (fold_builtin_cosh): Likewise.
25253 (fold_builtin_tan): Likewise.
25254 (fold_builtin_sincos): Likewise.
25255 (fold_builtin_cexp): Likewise.
25256 (fold_builtin_trunc): Likewise.
25257 (fold_builtin_floor): Likewise.
25258 (fold_builtin_ceil): Likewise.
25259 (fold_builtin_round): Likewise.
25260 (fold_builtin_int_roundingfn): Likewise.
25261 (fold_builtin_bitop): Likewise.
25262 (fold_builtin_bswap): Likewise.
25263 (fold_builtin_logarithm): Likewise.
25264 (fold_builtin_hypot): Likewise.
25265 (fold_builtin_pow): Likewise.
25266 (fold_builtin_powi): Likewise.
25267 (fold_builtin_exponent): Likewise.
25268 (fold_builtin_memset): Likewise.
25269 (fold_builtin_bzero): Likewise.
25270 (fold_builtin_memory_op): Likewise.
25271 (fold_builtin_bcopy): Deleted; call site changed to invoke
25272 fold_builtin_memory_op directly.
25273 (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
25274 (fold_builtin_strncpy): Likewise.
25275 (fold_builtin_memcmp): Likewise.
25276 (fold_builtin_strcmp): Likewise.
25277 (fold_builtin_strncmp): Likewise.
25278 (fold_builtin_signbit): Likewise.
25279 (fold_builtin_copysign): Likewise.
25280 (fold_builtin_isascii): Likewise.
25281 (fold_builtin_toascii): Likewise.
25282 (fold_builtin_isdigit): Likewise.
25283 (fold_builtin_fabs): Likewise.
25284 (fold_builtin_abs): Likewise.
25285 (fold_builtin_fmin_fmax): Likewise.
25286 (fold_builtin_carg): Likewise.
25287 (fold_builtin_classify): Likewise.
25288 (fold_builtin_unordered_cmp): Likewise.
25289
25290 (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
25291 New functions split out from fold_builtin_1.
25292 (fold_builtin_n): New.
25293 (fold_builtin_varargs): New.
25294 (fold_builtin): Deleted. Most callers changed to use fold_call_expr
25295 instead.
25296 (fold_call_expr): New.
25297 (build_function_call_expr): Rewrite to use new helper function.
25298 (fold_builtin_call_list): New.
25299 (build_call_expr): New.
25300 (fold_builtin_call_valist): New.
25301 (rewrite_call_expr): New.
25302 (validate_arg): New.
25303 (validate_arglist): Change parameter to be entire CALL_EXPR instead
25304 of an arglist. Change return type to bool. Use new CALL_EXPR
25305 accessors.
25306
6ef5231b 25307 (fold_builtin_strstr): Pass call arguments individually instead
5039610b
SL
25308 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
25309 accessors and constructors. Return NULL_TREE instead of 0.
25310 (fold_builtin_strchr): Likewise.
25311 (fold_builtin_strrchr): Likewise.
25312 (fold_builtin_strpbrk): Likewise.
25313 (fold_builtin_strcat): Likewise.
25314 (fold_builtin_strncat): Likewise.
25315 (fold_builtin_strspn): Likewise.
25316 (fold_builtin_strcspn): Likewise.
25317 (fold_builtin_fputs): Likewise.
25318 (fold_builtin_next_arg): Likewise.
25319 (fold_builtin_sprintf): Likewise.
25320
25321 (expand_builtin_object_size): Use new CALL_EXPR accessors. Use
25322 NULL_RTX instead of 0.
25323 (expand_builtin_memory_chk): Likewise.
25324 (maybe_emit_chk_warning): Likewise.
25325 (maybe_emit_sprintf_chk_warning): Likewise.
25326
25327 (fold_builtin_object_size): Pass call arguments individually instead
25328 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
25329 accessors and constructors. Return NULL_TREE instead of 0.
25330 (fold_builtin_memory_chk): Likewise.
25331 (fold_builtin_stxcpy_chk): Likewise.
25332 (fold_builtin_strncpy_chk): Likewise.
25333 (fold_builtin_strcat_chk): Likewise.
25334 (fold_builtin_strcat_chk): Likewise.
25335 (fold_builtin_strncat_chk): Likewise.
25336 (fold_builtin_sprintf_chk): Likewise.
25337 (fold_builtin_snprintf_chk): Likewise.
25338 (fold_builtin_printf): Likewise.
25339 (fold_builtin_vprintf): Likewise.
25340
25341 * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
25342 constructors.
25343 (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
25344 (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
25345 (extract_muldiv_1): Add VL_EXP_CLASS_P case.
25346 (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
25347 (fold_unary): Likewise.
25348 (fold_binary): Likewise.
25349 (fold_ternary): Remove CALL_EXPR case, since they are no longer
25350 ternary expressions.
25351 (fold): Add logic for tcc_vl_exp.
6ef5231b 25352 (fold_checksum_tree): Make it know about tcc_vl_exp. Use
5039610b
SL
25353 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
25354 (fold_build3_stat): Add assertion to flag broken interface for
25355 constructing CALL_EXPRs.
25356 (fold_build_call_list): New.
25357 (fold_build_call_list_initializer): New.
25358 (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
25359 constructors.
25360 (fold_strip_sign_ops): Likewise.
25361
253622007-02-15 Sandra Loosemore <sandra@codesourcery.com>
25363 Brooks Moses <brooks.moses@codesourcery.com>
25364 Lee Millward <lee.millward@codesourcery.com>
25365
25366 * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
25367 accessors and dump arguments explicitly.
25368
25369 * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
25370 TREE_CODE_LENGTH.
25371 (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
25372 explicitly.
25373 (print_call_name): Use new CALL_EXPR accessors.
25374
25375 * print-tree.c (print_node): Add case tcc_vl_exp. Print
25376 CALL_EXPR arguments explicitly instead of as a list. Use
25377 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
25378
25379 * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
25380 (vrp_visit_stmt): Likewise.
25381
6ef5231b 25382 * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Make it
5039610b
SL
25383 know about tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of
25384 TREE_CODE_LENGTH.
25385 (force_move_till_expr): Likewise.
25386
25387 * targhooks.c (default_external_stack_protect_fail): Use
25388 build_call_expr instead of build_function_call_expr.
25389 (default_hidden_stack_protect_fail): Likewise.
25390
25391 * tree-complex.c (expand_complex_libcall): Use build_call_expr to
25392 build the call.
25393
25394 * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
25395 and walk arguments explicitly.
25396
25397 * tree-ssa-loop-niter.c (simplify_replace_tree): Use
25398 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
25399 (expand_simple_operations): Likewise.
25400 (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
25401
25402 * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
25403 of TREE_CODE_LENGTH.
25404 (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
25405
25406 * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
25407 instead of TREE_CODE_LENGTH.
25408
25409 * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
25410 (tree_ic_transform): Likewise.
25411 (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
25412 parameter instead of arglist. Fix callers.
25413 (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
25414 (tree_stringops_transform): Likewise.
25415 (tree_indirect_call_to_profile): Likewise.
25416 (tree_stringops_values_to_profile): Likewise.
25417
25418 * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
25419 (eliminate_tail_call): Likewise.
25420
25421 * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
25422
25423 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25424 Use TREE_OPERAND_LENGTH and generalize to handle any number of
25425 operands.
25426 (instantiate_parameters_1): Can't handle tcc_vl_exp here.
25427
25428 * omp-low.c (build_omp_barrier): Use build_call_expr.
25429 (lower_rec_input_clauses): Likewise.
25430 (lower_reduction_clauses): Likewise.
25431 (expand_parallel_call): Likewise.
25432 (maybe_catch_exception): Likewise.
25433 (expand_omp_for_generic): Likewise.
25434 (expand_omp_for_static_nochunk): Likewise.
25435 (expand_omp_sections): Likewise.
25436 (lower_omp_single_simple): Likewise.
25437 (lower_omp_single_copy): Likewise.
25438 (lower_omp_master): Likewise.
25439 (lower_omp_ordered): Likewise.
25440 (lower_omp_critical): Likewise.
25441
25442 * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
25443 (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
25444
25445 * tree-gimple.c (is_gimple_call_addr): Fix doc.
25446 (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
25447 TREE_CODE_LENGTH. Add tcc_vl_exp case.
25448
25449 * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
25450 and generalize to handle any number of operands.
25451 (chrec_contains_undetermined): Likewise.
25452 (tree_contains_chrecs): Likewise.
25453 (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
25454
25455 * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
25456
25457 * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors. Use
25458 fold_call_expr instead of fold_builtin.
25459 (ccp_fold_builtin): Likewise. Update calls into builtins.c to
25460 match declarations there.
25461 (fold_stmt): Use new CALL_EXPR constructor and accessors. Doc
25462 updates.
25463
25464 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
25465 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
25466
25467 * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
25468 (scan_function): Add case tcc_vl_exp for CALL_EXPR.
25469
25470 * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
25471 accessors.
25472
25473 * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
25474 (execute_cse_sincos): Use new CALL_EXPR accessors.
25475
25476 * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
25477
25478 * gimple-low.c (lower_function_body): Use build_call_expr.
25479 (lower_builtin_setjmp): Likewise.
25480
25481 * expr.c (emit_block_move_via_libcall): Use build_call_expr.
25482 (set_storage_via_libcall): Likewise.
25483 (safe_from_p): Add tcc_vl_exp case. Use TREE_OPERAND_LENGTH
25484 instead of TREE_CODE_LENGTH.
25485 (expand_expr_real_1): Use new CALL_EXPR accessors.
25486
25487 * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
25488 generalize to handle any number of operands.
25489 (TB_parent_eq): Likewise.
25490
25491 * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
25492 (strip_builtin_expect): Likewise.
25493
25494 * function.c (gimplify_parameters): Use build_call_expr.
25495
7e08fa35
UB
25496 * tree-vectorizer.c (vect_is_simple_reduction): Use
25497 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
5039610b
SL
25498
25499 * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
25500 (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
25501
25502 * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
25503 iterators.
25504
25505 * gimplify.c (build_stack_save_restore): Use build_call_expr.
25506 (gimplify_decl_expr): Likewise.
25507 (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
25508 Use new CALL_EXPR iterators.
25509 (gimplify_modify_expr_to_memcpy): Use build_call_expr.
25510 (gimplify_modify_expr_to_memset): Likewise.
25511 (gimplify_variable_sized_compare): Likewise.
25512 (gimplify_omp_atomic_fetch_op): Likewise.
25513 (gimplify_omp_atomic_pipeline): Likewise.
25514 (gimplify_omp_atomic_mutex): Likewise.
25515 (gimplify_function_tree): Likewise.
25516
25517 * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
25518 (call_expr_flags): Likewise.
25519 (expand_call): Likewise.
25520
25521 * except.c (expand_builtin_eh_return_data_regno): Pass entire
5646ba12 25522 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
6bdcc60c 25523 accessors.
5039610b
SL
25524
25525 * coverage.c (create_coverage): Use build_call_expr.
25526
25527 * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
25528 (temp_call_expr_obstack): New.
25529 (pool_copy_list): Delete.
25530 (temp_copy_call_expr): New.
25531 (phi_translate): Add case tcc_vl_exp for CALL_EXPR. Use new
25532 CALL_EXPR accessors. Get rid of special goo for copying argument
25533 lists and use temp_copy_call_expr instead.
25534 (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR. Use new
25535 CALL_EXPR accessors.
25536 (create_expression_by_pieces): Likewise. Use build_call_array
25537 to construct the result instead of fold_build3.
25538 (create_value_expr_from): Add tcc_vl_exp. Delete special goo for
25539 dealing with argument lists.
25540 (init_pre): Remove references to expression_node_pool and
25541 list_node_pool. Init temp_call_expr_obstack instead.
25542 (fini_pre): Remove references to expression_node_pool and
25543 list_node_pool.
25544
25545 * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
25546 and walk arguments explicitly instead of as a list.
25547
25548 * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
25549 (mx_register_decls): Likewise.
25550 (mudflap_register_call): Likewise.
25551 (mudflap_finish_file): Likewise.
25552
25553 * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
25554 (ipa_callsite_compute_param): Likewise.
25555
25556 * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
25557 accessors and constructor.
25558
25559 * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
25560 accessors and constructor.
5646ba12 25561 (convert_tramp_reference): Likewise.
5039610b
SL
25562 (convert_call_expr): Likewise.
25563 (finalize_nesting_tree_1): Likewise.
25564
25565 * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
25566 accessors.
25567
25568 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
25569
25570 * tree-inline.c (initialize_inlined_parameters): Pass entire
25571 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
25572 accessors.
25573 (estimate_num_insns_1): Use new CALL_EXPR accessors.
25574 (expand_call_inline): Tidy up call to initialize_inlined_parameters.
25575
6ef5231b 25576 * tree-vect-transform.c (vect_create_epilog_for_reduction): Use
5039610b
SL
25577 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
25578 (vectorizable_reduction): Likewise.
25579 (vectorizable_call): Use new CALL_EXPR iterators.
25580 (vectorizable_conversion): Use build_call_expr.
25581 (vectorizable_operation): Use TREE_OPERAND_LENGTH.
25582 (vect_gen_widened_results_half): Use build_call_expr.
25583 (vect_setup_realignment): Likewise.
25584 (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
25585
25586 * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
25587 (pass_through_call): Likewise.
25588 (compute_object_sizes): Likewise. Use fold_call_expr instead of
25589 fold_builtin.
25590
25591 * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
25592 (tree_gen_pow2_profiler): Likewise.
25593 (tree_gen_one_value_profiler): Likewise.
25594 (tree_gen_ic_func_profiler): Likewise.
25595 (tree_gen_average_profiler): Likewise.
25596 (tree_gen_ior_profiler): Likewise.
25597
25598 * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
25599 (find_func_aliases): Use new CALL_EXPR accessors. Add case
25600 tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
25601
25602 * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
25603 of TREE_CODE_LENGTH.
25604
25605 * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
25606 of TREE_CODE_LENGTH.
25607
25608 * convert.c (convert_to_real): Use new CALL_EXPR accessors and
25609 constructor.
25610 (convert_to_integer): Likewise.
25611
25612 * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
25613 accessors.
25614
256152007-02-15 Sandra Loosemore <sandra@codesourcery.com>
25616 Brooks Moses <brooks.moses@codesourcery.com>
25617 Lee Millward <lee.millward@codesourcery.com>
25618
25619 * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
25620 accessors.
25621 * config/frv/frv.c (frv_expand_builtin): Likewise.
25622 * config/s390/s390.c (s390_expand_builtin): Likewise.
25623
25624 * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
25625 (sparc_expand_builtin): Use new CALL_EXPR accessors.
25626
25627 * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
25628 (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
25629 instead of arglist. Use new CALL_EXPR accessors on it. Fix callers.
25630 (ix86_expand_store_builtin): Likewise.
25631 (ix86_expand_unop_builtin): Likewise.
25632 (ix86_expand_unop1_builtin): Likewise.
25633 (ix86_expand_sse_compare): Likewise.
25634 (ix86_expand_sse_comi): Likewise.
25635 (ix86_expand_vec_init_builtin): Likewise.
25636 (ix86_expand_vec_ext_builtin): Likewise.
25637 (ix86_expand_vec_set_builtin): Likewise.
25638 (ix86_expand_builtin): Use new CALL_EXPR accessors.
25639
25640 * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
25641 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
25642
25643 * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
25644 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
25645 (iq2000_expand_builtin): Use new CALL_EXPR accessors.
25646
25647 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
25648 build_call_expr.
25649 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
25650 (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
25651 arglist. Use new CALL_EXPR accessors. Fix callers.
25652 (altivec_expand_abs_builtin): Likewise.
25653 (rs6000_expand_binop_builtin): Likewise.
25654 (altivec_expand_predicate_builtin): Likewise.
25655 (altivec_expand_lv_builtin): Likewise.
25656 (spe_expand_stv_builtin): Likewise.
25657 (altivec_expand_stv_builtin): Likewise.
25658 (rs6000_expand_ternop_builtin): Likewise.
25659 (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
25660 (altivec_expand_st_builtin): Likewise.
25661 (altivec_expand_dst_builtin): Likewise.
25662 (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
25663 arglist. Use new CALL_EXPR accessors. Fix callers.
25664 (altivec_expand_vec_set_builtin): Likewise.
25665 (altivec_expand_vec_ext_builtin): Likewise.
25666 (altivec_expand_builtin): Use new CALL_EXPR accessors.
25667 (spe_expand_builtin): Likewise.
25668 (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
25669 arglist. Use new CALL_EXPR accessors. Fix callers.
25670 (spe_expand_evsel_builtin): Likewise.
25671 (rs6000_expand_builtin): Use new CALL_EXPR accessors. VCFUX and
25672 FCFSX cases must construct whole new CALL_EXPR, not just arglist.
25673
25674 * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
25675 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
25676 (arm_expand_unop_builtin): Likewise.
25677 (arm_expand_builtin): Use new CALL_EXPR accessors.
25678
6ef5231b 25679 * config/mips/mips.c (mips_expand_builtin): Use new CALL_EXPR
5039610b
SL
25680 accessors.
25681
7e08fa35
UB
25682 * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire
25683 CALL_EXPR instead of arglist. Use new CALL_EXPR accessors.
25684 Fix callers.
5039610b
SL
25685 (bfin_expand_unop_builtin): Likewise.
25686 (bfin_expand_builtin): Use new CALL_EXPR accessors.
25687
256882007-02-15 Sandra Loosemore <sandra@codesourcery.com>
25689 Brooks Moses <brooks.moses@codesourcery.com>
25690 Lee Millward <lee.millward@codesourcery.com>
25691
25692 * c-semantics.c (build_stmt): Add internal diagnostic check.
25693
25694 * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
25695 accessors. Print arguments explicitly instead of as a list.
25696
25697 * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
25698
25699 * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
25700 (c_finish_omp_flish): Likewise.
25701
25702 * c-common.c (verify_tree): Use new CALL_EXPR accessors. Traverse
25703 arguments explicitly instead of as a list. Use TREE_OPERAND_LENGTH
25704 instead of TREE_CODE_LENGTH.
25705 (check_function_arguments_recurse): Use new CALL_EXPR accessors.
25706 (c_warn_unused_result): Likewise.
25707
dc90f45b
MLI
257082007-02-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25709
25710 PR c/26494
25711 * doc/invoke.texi (Warning Options): Remove
25712 -Werror-implicit-function-declaration.
25713 (Wimplicit-function-declaration): Update description.
25714 * opts.c (common_handle_option): Move handling of -Werror=* to...
25715 (enable_warning_as_error): ...here.
25716 * opts.h (enable_warning_as_error): Declare.
25717 * c-decl.c (implicit_decl_warning): Unless
25718 -Wno-implicit-function-declaration is given, emit a pedwarn if
25719 -std=c99 or emit a warning if -Wimplicit-function-declaration.
25720 * c.opt (Wimplicit-function-declaration): Replace
25721 mesg_implicit_function_declaration with
25722 warn_implicit_function_declaration.
25723 * c-opts.c (c_common_handle_option):
25724 -Werror-implicit-function-declaration is exactly equal as
25725 -Werror=implicit-function-declaration.
25726 (set_Wimplicit): Replace mesg_implicit_function_declaration with
25727 warn_implicit_function_declaration.
25728 (c_common_post_options): -Wimplict-function-declaration is enabled
25729 by default by -std=c99, otherwise is disabled by default.
25730 * c-objc-common.c (c_objc_common_init): Remove flawed logic.
25731
f173837a
EB
257322007-02-15 Eric Botcazou <ebotcazou@adacore.com>
25733
25734 * gimplify.c (gimplify_modify_expr): During gimplification, attach a
25735 DECL on the rhs to a DECL on the lhs for debug info purposes if the
25736 former is ignored but not the latter.
25737
befdad07
EB
257382007-02-15 Eric Botcazou <ebotcazou@adacore.com>
25739
25740 * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
25741 is made and the reference doesn't use the alias set of its type,
25742 do not create the temporary using that type.
25743
eab79d78
AH
257442007-02-15 Aldy Hernandez <aldyh@redhat.com>
25745
25746 * jump.c: Remove prototypes for delete_computation and
25747 delete_prior_computation.
25748
c47277a6
PB
257492007-02-15 Paolo Bonzini <bonzini@gnu.org>
25750
25751 * jump.c (get_label_after): Delete.
25752 (get_label_before, delete_computation, delete_jump,
25753 delete_prior_computation, follow_jumps): Move...
25754 * reorg.c (delete_computation, delete_prior_computation): ... here...
25755 (get_label_before, delete_jump): ... making these static ...
25756 (follow_jumps): ... and simplifying this since it only runs after
25757 reload.
25758 * rtl.h (get_label_after, get_label_before, delete_jump,
25759 follow_jumps): Delete prototypes.
25760
ed765125
PB
257612007-02-15 Paolo Bonzini <bonzini@gnu.org>
25762
25763 * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
5646ba12 25764
c1a1cc5f
NC
257652007-02-15 Nick Clifton <nickc@redhat.com>
25766
25767 * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
25768 order to prevent it from being munged by the target.
25769
62e4530b
UB
257702007-02-15 Uros Bizjak <ubizjak@gmail.com>
25771
25772 * config/i386/i386.md: Remove misleading comment.
25773
f4f81a66
AO
257742007-02-15 Alexandre Oliva <aoliva@redhat.com>
25775
25776 * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
25777 reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
25778 invalid patterns.
25779
45f94ec7
AO
257802007-02-15 Alexandre Oliva <aoliva@redhat.com>
25781
25782 * tree-sra.c (instantiate_missing_elements): Canonicalize
25783 bit-field types.
25784 (sra_build_assignment): New.
25785 (generate_copy_inout, generate_element_copy,
25786 generate_element_zero, generate_one_element_init): Use it.
25787
257882007-02-15 Alexandre Oliva <aoliva@redhat.com>
25789
25790 * tree-sra.c (instantiate_missing_elements): Canonicalize
25791 bit-field types.
25792 (sra_build_assignment): New.
25793 (generate_copy_inout, generate_element_copy,
25794 generate_element_zero, generate_one_element_init): Use it.
25795
db9e0d2a
AO
257962007-02-15 Alexandre Oliva <aoliva@redhat.com>
25797
25798 * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
25799 limbo die nodes.
25800
07cb6e8c
JM
258012007-02-14 Joseph Myers <joseph@codesourcery.com>
25802
25803 * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
25804 types as aggregates not scalars.
25805 * function.c (assign_stack_temp_for_type): Likewise.
25806
702f9d78
ZD
258072007-02-14 Roger Sayle <roger@eyesopen.com>
25808 Zdenek Dvorak <dvorakz@suse.cz>
25809
25810 * tree-dump.c (dump_switch_p_1): Require exact match of the option
25811 name.
25812
3d882990
ZD
258132007-02-14 Zdenek Dvorak <dvorakz@suse.cz>
25814
25815 * passes.c (next_pass_1): Clear the next field of the copied
25816 pass structure.
25817
029f45bd
RH
258182007-02-14 Richard Henderson <rth@redhat.com>
25819
25820 * tree-sra.c (early_sra): New.
25821 (decl_can_be_decomposed_p): Deny va_list if early_sra.
25822 (tree_sra_early, pass_sra_early): New.
25823 * tree-pass.h (pass_sra_early): Declare.
25824 * passes.c (init_optimization_passes): Use it.
25825
c4e74b1a
RB
258262007-02-14 Richard Guenther <rguenther@suse.de>
25827
25828 * flags.h (issue_strict_overflow_warning): Convert to a macro.
25829
258302007-02-14 Dorit Nuzman <dorit@il.ibm.com>
932eea3d
DN
25831
25832 PR tree-optimization/30771
25833 * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
25834 also phi nodes.
25835 (vect_analyze_operations): Induction phis can now be marked as
25836 used_in_loop.
25837 (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
25838 Update documentation accordingly.
25839
8225879c
NC
258402007-02-14 Nick Clifton <nickc@redhat.com>
25841
25842 * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
25843 most 3 arguments are supported.
25844 (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
25845
5ce02e40
SP
258462007-02-13 Seongbae Park <seongbae.park@gmail.com>
25847
3d882990
ZD
25848 * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
25849 Ensure dst->current is valid.
5ce02e40 25850
c147eacb
PB
258512007-02-13 Paul Brook <paul@codesourcery.com>
25852
25853 * config.gcc: Add arm*-*-uclinux-*eabi.
25854 * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
25855 (SUBTARGET_EXTRA_LINK_SPEC): Define.
25856 (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
25857 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
25858 (LINK_SPEC): Define.
25859 (LIB_SPEC): Define.
25860 * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
25861 register.
25862 * config/arm/uclinux-eabi.h: New file.
25863 * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
25864 * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
25865 based targets.
25866
6ac01510
ILT
258672007-02-13 Ian Lance Taylor <iant@google.com>
25868
25869 * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
25870 * flags.h (warn_strict_overflow): Declare.
25871 (enum warn_strict_overflow_code): Define.
25872 (issue_strict_overflow_warning): New static inline function.
25873 * opts.c (warn_strict_overflow): New variable.
25874 (common_handle_option): Handle OPT_Wstrict_overflow and
25875 OPT_Wstrict_overflow_.
25876 * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
25877 OPT_Wall.
25878 * fold-const.c: Include intl.h.
25879 (fold_deferring_overflow_warnings): New static variable.
25880 (fold_deferred_overflow_warning): New static variable.
25881 (fold_deferred_overflow_code): New static variable.
25882 (fold_defer_overflow_warnings): New function.
25883 (fold_undefer_overflow_warnings): New function.
25884 (fold_undefer_and_ignore_overflow_warnings): New function.
25885 (fold_deferring_overflow_warnings_p): New function.
25886 (fold_overflow_warning): New static function.
25887 (make_range): Add strict_overflow_p parameter. Change all
25888 callers.
25889 (extract_muldiv, extract_muldiv_1): Likewise.
25890 (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
25891 tree_expr_nonnegative_p.
25892 (fold_negate_expr): Call fold_overflow_warning.
25893 (fold_range_test): Likewise.
25894 (fold_comparison): Likewise.
25895 (fold_binary): Likewise. Call tree_expr_nonnegative_warnv_p
25896 instead of tree_expr_nonnegative_p.
25897 (tree_expr_nonnegative_warnv_p): Rename from
25898 tree_expr_nonnegative_p, add strict_overflow_p parameter.
25899 (tree_expr_nonnegative_p): New function.
25900 (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
25901 strict_overflow_p parameter.
25902 (tree_expr_nonzero_p): New function.
25903 * passes.c (verify_interpass_invariants): New static function.
25904 (execute_one_pass): Call it.
25905 * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
25906 warnings.
25907 (number_of_iterations_exit, loop_niter_by_eval): Likewise.
25908 (estimate_numbers_of_iterations): Likewise.
25909 (scev_probably_wraps_p): Likewise.
25910 * tree-ssa-ccp.c: Include "toplev.h".
25911 (evaluate_stmt): Defer fold overflow warnings until we know we are
25912 going to optimize.
25913 (struct fold_stmt_r_data): Add stmt field.
25914 (fold_stmt_r): Defer fold overflow warnings until we know we
25915 optimized.
25916 (fold_stmt): Initialize stmt field of fold_stmt_r_data.
25917 (fold_stmt_inplace): Likewise.
25918 * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
25919 (cleanup_control_expr_graph): Defer fold overflow warnings until
25920 we know we are going to optimize.
25921 * tree-cfg.c (fold_cond_expr_cond): Likewise.
25922 * tree-ssa-threadedge.c (simplify_control_stmt_condition):
25923 Likewise.
25924 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
25925 tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
25926 * tree-ssa-loop-manip.c (create_iv): Likewise.
25927 * c-typeck.c (build_conditional_expr): Likewise.
25928 (build_binary_op): Likewise.
25929 * tree-vrp.c (vrp_expr_computes_nonzero): Call
25930 tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
25931 (extract_range_from_unary_expr): Likewise.
25932 * simplify-rtx.c (simplify_const_relational_operation): Warn when
25933 assuming that signed overflow does not occur.
25934 * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
25935 * tree.h (tree_expr_nonnegative_warnv_p): Declare.
25936 (fold_defer_overflow_warnings): Declare.
25937 (fold_undefer_overflow_warnings): Declare.
25938 (fold_undefer_and_ignore_overflow_warnings): Declare.
25939 (fold_deferring_overflow_warnings_p): Declare.
25940 (tree_expr_nonzero_warnv_p): Declare.
25941 * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
25942 of warning options.
25943 (Warning Options): Document -Wstrict-overflow.
25944 * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
25945 (tree-ssa-ccp.o): Likewise.
25946 (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
25947 (fold-const.o): Depend on intl.h.
25948
30d18db4
ILT
259492007-02-13 Ian Lance Taylor <iant@google.com>
25950
25951 PR middle-end/30751
25952 * lower-subreg.c (resolve_simple_move): Decompose subregs in
25953 addresses.
25954
ce9c43a1
SH
259552007-02-13 Stuart Hastings <stuart@apple.com>
25956
86122f72 25957 * config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
ce9c43a1 25958
138ae41e
RH
259592007-02-13 Richard Henderson <rth@redhat.com>
25960
25961 * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
25962 handled_component_p before looking for the indirect_ref.
25963
2e6834d3
RH
259642007-02-13 Richard Henderson <rth@redhat.com>
25965
25966 * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
25967 remove flags clobber.
25968 (bswapsi2): New expander, emit code for !TARGET_BSWAP.
25969 (bswaphi_lowpart): New.
25970 (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
25971 remove TARGET_BSWAP test. Delete expander of the same name.
25972
25973 * optabs.c (widen_bswap, expand_doubleword_bswap): New.
25974 (expand_unop): Use them.
25975
a23132e1
UB
259762007-02-13 Uros Bizjak <ubizjak@gmail.com>
25977
25978 * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
25979 *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
25980 *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
25981 *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
25982 *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
25983 *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
25984 *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
25985 assembler dialect choice from asm templates.
25986
174c12c7
RH
259872007-02-12 Richard Henderson <rth@redhat.com>
25988
25989 * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
25990 (fixuns_trunc<SSEMODEF>si2): Use it.
25991 * config/i386/sse.md (vec_setv4sf_0): Export.
25992 * config/i386/i386.c (ix86_build_const_vector): Export.
25993 (ix86_split_convert_uns_si_sse): Rename from
25994 ix86_expand_convert_uns_si_sse and rewrite as a splitter.
25995 * config/i386/i386-protos.h: Update.
25996
2397c575
MLI
259972007-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25998
25999 PR c/29521
26000 * c-typeck.c (c_finish_return): Improve warning message.
26001
14a32e14
MLI
260022007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26003
26004 * alias.c (find_symbolic_term): Delete unused function.
5646ba12 26005
0f7b6776
UB
260062007-02-12 Uros Bizjak <ubizjak@gmail.com>
26007
26008 * config/i386/i386.md (paritydi2, paritysi2): New expanders.
26009 (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
26010 (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
26011
6170a998
EB
260122007-02-12 Eric Botcazou <ebotcazou@adacore.com>
26013
26014 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
26015 * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
26016 the function, temporarily point the debug interface to the null one.
26017
d996473d
EB
260182007-02-12 Eric Botcazou <ebotcazou@adacore.com>
26019
26020 * dwarf2out.c (round_up_to_align): New static function.
26021 (field_byte_offset): Use it to round the offset.
26022
fffef1dc
RH
260232007-02-12 Richard Henderson <rth@redhat.com>
26024
26025 * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
26026 (inswl_const): Export.
26027
7ab0aca2
RH
260282007-02-12 Richard Henderson <rth@redhat.com>
26029
26030 * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
26031 result mode of the libcall, convert back to outmode.
26032
d8d25bae
RS
260332007-02-12 Roger Sayle <roger@eyesopen.com>
26034
26035 * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
26036 (bswapdi2): New define_expand to implement 32-bit implementation.
26037
c662432e
NC
260382007-02-12 Nick Clifton <nickc@redhat.com>
26039
26040 * doc/invoke.texi (Overall Options): Document --help=.
26041 * gcc.c (target_help_flag): Rename to print_subprocess_flag.
26042 (cc1_options): Pass --help= on to cc1.
26043 (display_help): Add description of --help=.
26044 (process_command): Add code to handle --help=. Allow translated
26045 --help and --target-help switches to be passed on to compiler
26046 sub-process.
26047 (main): Remove unused if statement.
26048 * opts.c (columns): Remove.
26049 (LEFT_COLUMN): Define.
26050 (wrap_help): Add columns argument.
26051 (print_filtered_help): Change parameters to be an include bitmask,
26052 an exclude bitmask, an any bitmask and the column width. Move the
26053 code to display the params list here. Add code to display the
26054 status of options rather than their descriptions if the quiet flag
26055 is not active.
26056 (print_specific_help): Change parameters to be an include bitmask,
26057 an exclude bitmask and an any bitmask. Move code to look up the
26058 column width here. Decide upon the title for an options listing.
26059 (common_handle_options): Add code to handle --help=. Adapt code
26060 for --help and --target-help to use the revised form of the
26061 print_specific_help function.
26062 (print_help): Delete.
26063 (print_param_help): Delete.
26064 (print_switch): Delete.
26065 * opts.h (cl_lang_count): Add prototype.
26066 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
26067 CL_MAX_OPTION_CLASS): New defines.
26068 * optc-gen.awk: Add construction of cl_lang_count.
26069 * c.opt: Add Warning attribute to warning options and Optimization
26070 attribute to optimization options.
26071 * common.opt: Likewise.
26072 Add --help=.
26073 Add -fhelp and -ftarget-help as aliases for the transformed --help
26074 and --target-help options.
26075 * opt-functions.awk: Add code to handle Warning and Optimization
26076 attributes.
26077
dfcbeaa5
RH
260782007-02-12 Richard Henderson <rth@redhat.com>
26079
26080 * config/alpha/constraints.md: New file.
26081 * config/alpha/alpha.c: Include tm-constrs.h.
26082 (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
26083 alpha_extra_constraint): Remove.
26084 (alpha_emit_conditional_branch): Use satisfies_constraint_*.
26085 * config/alpha/alpha-protos.h: Update.
26086 * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
26087 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
26088 (EXTRA_CONSTRAINT): Remove.
26089 * config/alpha/alpha.md: Include constraints.md.
26090 (adddi splitter): Use satisfies_constraint_*.
26091 * config/alpha/predicates.md (add_operand): Likewise.
26092 (sext_add_operand, addition_operation): Likewise.
26093
9b3ffe5f
DN
260942007-02-12 Dorit Nuzman <dorit@il.ibm.com>
26095
26096 PR tree-optimization/29145
26097 * tree-data-ref.c (base_addr_differ_p): Make us more conservative
26098 in our handling of restrict qualified pointers.
26099
27f33b15
MLI
261002007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26101
26102 PR middle-end/7651
26103 * doc/invoke.texi (Wunused-value): Update description.
26104 (Wextra): Delete item.
26105 * opts.c (set_Wextra): Don't use the value of Wextra to set the
26106 value of Wunused-value.
26107 * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
26108 (c_finish_stmt_expr): Don't check extra_warnings.
26109 (emit_side_effect_warnings): The caller is responsible to check
26110 warn_unused_value.
5646ba12 26111
2376c58f
RS
261122007-02-11 Roger Sayle <roger@eyesopen.com>
26113 Matt Thomas <matt@3am-software.com>
26114
26115 * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
26116
69fce32f
RS
261172007-02-11 Roger Sayle <roger@eyesopen.com>
26118
26119 * simplify-rtx.c (simplify_relational_operation_1): Optimize
26120 comparisons of POPCOUNT against zero.
26121 (simplify_const_relational_operation): Likewise.
26122
10c54531
MLI
261232007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26124
26125 * doc/invoke.texi (Wextra): Delete outdated paragraph.
5646ba12 26126
b04e13e8
MLI
261272007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26128
26129 * dwarf2out.c (root_type): Delete unused function.
5646ba12 26130
80733108
MLI
261312007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26132
26133 * genattrtab.c (contained_in_p): Delete unused function.
26134 (write_expr_attr_cache): Likewise.
26135
68e2e141
JH
261362007-02-11 Jan Hubicka <jh@suse.cz>
26137
26138 * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
26139 previous patch.
26140
a31830a7
SB
261412007-02-11 Steven Bosscher <steven@gcc.gnu.org>
26142
26143 * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
26144 to add the REG_EQ* note.
26145 * see.c (see_merge_one_use_extension): Likewise.
26146 * local-alloc.c (update_equiv_regs): Likewise. Also don't
26147 turn REG_EQUAL notes into REG_EQUIV notes if the target
26148 register may have more than one set.
26149 * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
26150 * gcse.c (try_replace_reg): Likewise.
26151 * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
26152 * calls.c (fixup_tail_calls): Likewise. Abort if there is
26153 more than one REG_EQUIV note.
26154 * reload1.c (gen_reload): Use set_unique_reg_note.
26155
4c38b6d9
UB
261562007-02-11 Uros Bizjak <ubizjak@gmail.com>
26157
26158 * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
26159 (ix86_builtin_conversion): New function.
26160
56fd65c7
MM
261612007-02-06 Mark Mitchell <mark@codesourcery.com>
26162
26163 PR target/29487
26164 * tree.h (DECL_REPLACEABLE_P): New macro.
26165 * except.c (set_nothrow_function_flags): Likewise.
26166
f57d17f1
TM
261672007-02-11 Tehila Meyzels <tehila@il.ibm.com>
26168 Ira Rosen <irar@il.ibm.com>
26169 Dorit Nuzman <dorit@il.ibm.com>
26170
26171 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
26172 * targhooks.c (default_builtin_vectorized_conversion): New.
26173 * targhooks.h (default_builtin_vectorized_function): New declaration.
26174 * target.h (struct vectorize): Add builtin_conversion field.
26175 * tree-vectorizer.h (type_conversion_vec_info_type): New enum
26176 stmt_vec_info_type value.
26177 (vectorizable_conversion): New declaration.
26178 * tree-vect-analyze.c (vect_analyze_operations): Add
26179 vectorizable_conversion call.
26180 * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
26181 * tree-vect-transform.c (vectorizable_conversion): New function.
26182 (vect_transform_stmt): Add case for type_conversion_vec_info_type.
26183 * tree-vect-generic.c (expand_vector_operations_1): Consider correct
26184 mode.
26185 * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
26186 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
0f7b6776
UB
26187 (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
26188 or ALTIVEC_BUILTIN_VCFSX.
f57d17f1 26189
51823d47
JDA
261902007-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26191
26192 PR target/30634
26193 * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
26194 CONST_DOUBLE and operand 0 is a hard register.
26195 (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
26196 memory. Fail if operand 1 is a non-zero CONST_INT and operand 0
26197 is a hard floating-point register.
26198
3de8da2a
UB
261992007-02-10 Richard Henderson <rth@redhat.com>
26200 Jakub Jelinek <jakub@redhat.com>
26201 Alexandre Oliva <aoliva@redhat.com>
8893239d
RH
26202
26203 * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
26204 * builtin-types.def (BT_WORD): Make unsigned.
26205 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
26206 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
26207 (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
26208 * c-decl.c (grokdeclarator): Don't error if !have_tls.
26209 * c-parser.c (c_parser_omp_threadprivate): Likewise.
26210 * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
26211 emulated tls.
26212 * expr.c (emutls_var_address): New.
26213 (expand_expr_real_1): Expand emulated tls.
26214 (expand_expr_addr_expr_1): Likewise.
26215 * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
26216 * output.h (emutls_finish): Declare.
26217 * toplev.c (compile_file): Call it.
26218 * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
26219 address before wrapping in CONST.
26220 * varasm.c (emutls_htab, emutls_object_type): New.
26221 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
26222 (get_emutls_object_name, get_emutls_object_type): New.
26223 (get_emutls_init_templ_addr, emutls_decl): New.
26224 (emutls_common_1, emutls_finish): New.
26225 (assemble_variable): When emulating tls, swap decls; generate
26226 constructor for the emutls objects.
26227 (do_assemble_alias): When emulating tls, swap decl and target name.
26228 (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
26229 for emulated tls.
26230 * varpool.c (decide_is_variable_needed): Look at force_output.
26231 Recurse for emulated tls.
26232 (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
26233 with decide_is_variable_needed.
26234 * emutls.c: New file.
26235 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
26236 tls_object for real tls.
26237
4c9034c5
KK
262382007-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
26239
26240 PR rtl-optimization/29599
26241 * reload1.c (eliminate_regs_in_insn): Take the destination
26242 mode into account when computing the offset.
26243
ebff937c 262442007-02-09 Stuart Hastings <stuart@apple.com>
3de8da2a 26245 Richard Henderson <rth@redhat.com>
ebff937c 26246
86122f72
JJ
26247 * config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
26248 * config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
26249 * config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
ebff937c
SH
26250 fixuns_truncdfhi2): New.
26251 (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
26252 (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
26253 (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
26254 (floatunssidf2): Allow nonimmediate source.
86122f72 26255 * config/i386/sse.md (movdi_to_sse): New.
3de8da2a 26256 (vec_concatv2di): Drop '*'.
86122f72 26257 * config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
ebff937c 26258 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
3de8da2a
UB
26259 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
26260 New.
86122f72 26261 * config/i386/i386.c (ix86_expand_convert_uns_si_sse,
ebff937c
SH
26262 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
26263 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
26264 ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
3de8da2a
UB
26265 (ix86_build_signbit_mask): Fix decl of v, refactor to call
26266 ix86_build_const_vector.
ebff937c
SH
26267 (x86_emit_floatuns): Rewrite.
26268
692b647c
MLI
262692007-02-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26270
26271 * genautomata.c (longest_path_length): Delete unused function.
26272 (struct state): Delete unused longest_path_length.
26273 (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
26274 (get_free_state): Delete unused.
5646ba12 26275
45a80bb9
JH
262762007-02-09 Jan Hubicka <jh@suse.cz>
26277
d562c668
JH
26278 * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
26279 * doc/invoke.texi (inline-unit-growth): Update default value.
26280
45a80bb9
JH
26281 * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
26282 * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
26283 (rebuild_cgraph_edges): Likewise.
26284 * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
26285 (dump_cgraph_node): Dump frequencies.
26286 (cgraph_clone_edge): Add frequency scales.
26287 (cgraph_clone_node): Add freuqnecy.
26288 * cgraph.h (cgraph_edge): Add freuqnecy argument.
26289 (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
26290 (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
26291 * tree-pass.h (TODO_rebuild_frequencies): New constant.
26292 * cgraphunit.c (verify_cgraph_node): Verify frequencies.
26293 (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
26294 (save_inline_function_body): Likewise.
26295 * ipa-inline.c: inluce rtl.h
26296 (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
26297 (cgraph_edge_badness): Use frequencies.
26298 (cgraph_decide_recursive_inlining): Update clonning.
26299 (cgraph_decide_inlining_of_small_function): Dump frequency.
26300 * predict.c (estimate_bb_frequencies): Export.
26301 * predict.h (estimate_bb_frequencies): Declare.
26302 * tree-inline.c (copy_bb): Watch overflows.
26303 (expand_call_inline): Update call of cgraph_create_edge.
26304 (optimize_inline_calls): Use TODO flags to update frequnecies.
26305 * passes.h: Include predict.h
26306 (init_optimization_passes): Move profile ahead.
26307 (execute_function_todo): Handle TODO_rebuild_frequencies.
26308
f2477b06
RS
263092007-02-09 Roger Sayle <roger@eyesopen.com>
26310
26311 * config/alpha/alpha.c (emit_insxl): Force the first operand of
26312 the insbl or inswl pattern into a register.
26313
ff848f0e
RS
263142007-02-09 Roger Sayle <roger@eyesopen.com>
26315
26316 * config/ia64/ia64.md (bswapdi2): New define_insn.
26317
ed69105c
RH
263182007-02-09 Richard Henderson <rth@redhat.com>
26319
26320 * config/i386/constraints.md (Ym): New constraint.
26321 * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
26322 (movdi_1_rex64): Split sse and xmm general register moves from
26323 memory move alternatives. Use conditional register constraints.
26324 (movsf_1, movdf_integer): Likewise.
26325 (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
26326 (movdf_integer_rex64): New.
26327 (pushsf_rex64): Fix output constraints.
26328 * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
26329 (sse2_stored): Likewise.
26330 (sse2_storeq_rex64): New.
26331 * config/i386/i386.c (x86_inter_unit_moves): Enable for not
26332 amd and not generic.
26333 (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
26334 for optimize_size. Remove SF/DFmode hack.
26335
3de8da2a 263362007-02-09 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
35a63f21 26337
3de8da2a
UB
26338 * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
26339 (bit_SSE4a): New.
35a63f21 26340
10e96df4
NS
263412007-02-09 Nathan Sidwell <nathan@codesourcery.com>
26342 Richard Sandiford <richard@codesourcery.com>
26343
26344 * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
26345 (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
26346 (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
26347 m68k/t-mlib to tmake_file.
26348 (m68020-*-elf*, m68k-*-elf*): Likewise. Add t-m68kbare as well.
26349 (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
26350 (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
26351 Allow it to be cf or m68k. Set m68k_arch_family. If that
26352 variable is not empty, add t-$m68k_arch_family to tmake_file.
26353 Add t-mlibs to tmake_file.
26354 * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
26355 * config/m68k/t-cf: New file.
26356 * config/m68k/t-m68k: Likewise.
26357 * config/m68k/t-mlibs: Likewise.
26358 * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
26359 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
26360 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
26361 * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
26362 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
26363 Delete.
26364 * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
26365 (INSTALL_LIBGCC): Delete.
26366 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
26367 * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
26368 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
26369 (M68K_MLIB_CPU): Define.
26370 * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
26371 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
26372 (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
26373
b44e7f07 263742007-02-09 Zdenek Dvorak <dvorakz@suse.cz>
3de8da2a 26375 Richard Guenther <rguenther@suse.de>
b44e7f07
ZD
26376
26377 PR middle-end/23361
26378 * fold-const.c (fold_comparison): Handle obfuscated comparisons
26379 against INT_MIN/INT_MAX.
26380 * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
26381 file if a loop is removed.
26382
46bd2bee
JM
263832007-02-09 Joseph Myers <joseph@codesourcery.com>
26384
26385 * calls.c (store_one_arg): Pass correct alignment to
26386 emit_push_insn for non-BLKmode values.
26387 * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
26388 unaligned stack slot via a suitably aligned slot.
26389
67fc44cb
DD
263902007-02-08 DJ Delorie <dj@redhat.com>
26391
26392 * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
26393 warnings.
26394 (legal_subregs): Use unsigned char, make const.
26395 (m32c_illegal_subreg_p): Use ARRAY_SIZE. Delete unused variables.
26396
4531703e
PB
263972007-02-08 Paul Brook <paul@codesourcery.com>
26398
26399 * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
26400 special interworking needed.
26401
c1d91dbd
HJ
264022007-02-08 Harsha Jagasia <harsha.jagasia@amd.com>
26403
26404 * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
26405 conditional to __SSE2__.
26406 (Entries below should have been added to first ChangeLog
26407 entry for amdfam10 dated 2007-02-05)
26408 * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
26409 defined.
26410 * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
26411 defined.
26412 * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
26413 defined.
26414
f9b89438
DD
264152007-02-08 DJ Delorie <dj@redhat.com>
26416
26417 * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
26418 * config/m32c/m32c.c (legal_subregs): New.
26419 (m32c_illegal_subreg_p): New.
26420 * config/m32c/predicates.md (m32c_any_operand): Use it to reject
26421 unsupported subregs of hard regs.
26422
ff39b79b
JH
264232007-02-08 Jan Hubicka <jh@suse.cz>
26424
26425 * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
26426 the same one; always update histograms.
26427
b3f7d793
DN
264282007-02-08 Diego Novillo <dnovillo@redhat.com>
26429
26430 * passes.c (init_optimization_passes): Tidy comment.
26431
9f05adb0
RS
264322007-02-08 Roger Sayle <roger@eyesopen.com>
26433
26434 * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
26435 strip zero_extend, bswap and rotates from POCOUNT's argument.
26436 <PARITY>: Likewise, we can strip not, bswap, sign_extend,
26437 zero_extend and rotates from PARITY's argument.
26438 <BSWAP>: A byte-swap followed by a byte-swap is an identity.
26439 (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
26440 of an integer constant at compile-time.
26441
d37d06fe
DN
264422007-02-08 Diego Novillo <dnovillo@redhat.com>
26443
26444 PR 30562
26445 * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
26446 Update all users.
26447 * tree-ssa-alias.c (compute_is_aliased): Remove. Update all
26448 users.
26449 (init_alias_info):
26450 * tree-ssa-live.c (remove_unused_locals): Do not remove
26451 TREE_ADDRESSABLE variables.
26452 * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
26453 * tree-ssa-operands.c (add_virtual_operand): Remove argument
26454 FOR_CLOBBER. Update all users.
26455 If VAR has an associated alias set, add a virtual operand for
26456 it if no alias is found to conflict with the memory reference.
26457
674474a5
JH
264582007-02-07 Jan Hubicka <jh@suse.cz>
26459 Robert Kidd <rkidd@crhc.uiuc.edu>
26460
26461 * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
26462
1f64a081
ILT
264632007-02-07 Ian Lance Taylor <iant@google.com>
26464
26465 * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
26466
e42ac3de
RS
264672007-02-07 Roger Sayle <roger@eyesopen.com>
26468
26469 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
26470 parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
26471 tablejumpdi, movsi_to_cr_one): Remove constraints from
26472 define_expand's match_operands.
26473
28890c82
RS
264742007-02-07 Roger Sayle <roger@eyesopen.com>
26475
26476 * global.c (compute_regsets): Move declatation of "i" inside of
26477 #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
26478
ca6e5fe9
JJ
264792007-02-07 Jakub Jelinek <jakub@redhat.com>
26480
e02a048f
JJ
26481 PR c++/30703
26482 * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
26483 of INDIRECT_REF <RESULT_DECL>.
26484
ca6e5fe9
JJ
26485 * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
26486
6f8eec29
R
264872007-02-06 J"orn Rennecke <joern.rennecke@arc.com>
26488 Kaz Kojima <kkojima@gcc.gnu.org>
26489
26490 PR target/29746
26491 * config/sh/sh.c (expand_cbranchdi4): Use scratch register
26492 properly.
26493 (sh_initialize_trampoline): Add parentheses to avoid a warning.
26494
89f8f30f
ZD
264952007-02-06 Zdenek Dvorak <dvorakz@suse.cz>
26496
26497 * doc/loop.texi: Document possibility not to perform disambiguation
26498 of loops with multiple latches.
26499 * cfgloopmanip.c (alp_enum_p): Removed.
26500 (add_loop): Handle subloops. Use get_loop_body_with_size.
26501 (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
26502 * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
26503 the new forwarder block.
26504 (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
26505 Handle the case latch is NULL.
7e08fa35
UB
26506 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg
26507 modifications when marking loop exits.
89f8f30f
ZD
26508 * ifcvt.c (if_convert): Ditto. Mark loop exits even if cfg cannot
26509 be modified.
26510 * loop-init.c (loop_optimizer_init): Do not modify cfg. Call
26511 disambiguate_loops_with_multiple_latches.
26512 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
26513 before fix_loop_structure.
26514 * cfgloop.c: Include pointer-set.h and output.h.
26515 (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
26516 update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
26517 (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
26518 find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
26519 mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
26520 disambiguate_multiple_latches, get_loop_body_with_size,
26521 disambiguate_loops_with_multiple_latches): New functions.
26522 (flow_loop_dump): Dump multiple latch edges.
26523 (flow_loop_nodes_find): Handle loops with multiple latches.
26524 (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
26525 (glb_enum_p): Modified.
26526 (get_loop_body): Use get_loop_body_with_size.
26527 * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
26528 (AVOID_CFG_MODIFICATIONS): New constant.
26529 (disambiguate_loops_with_multiple_latches, add_loop,
26530 get_loop_body_with_size): Declare.
26531 * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
26532
ad8e8d0b
SP
265332007-02-06 Seongbae Park <seongbae.park@gmail.com>
26534
26535 PR inline-asm/28686
26536 * global.c (compute_regsets): New function.
26537 (global_alloc): Refactored ELIMINABLE_REGSET
26538 and NO_GLOBAL_ALLOC_REGS computation out.
26539 (rest_of_handle_global_alloc): Call compute_regsets()
26540 for non-optimizing case.
26541
50961141
RH
265422007-02-06 Richard Henderson <rth@redhat.com>
26543
26544 * config/i386/constraints.md (Y2): Rename from Y.
26545 (Yi): New constraint.
26546 * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
26547 pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
26548 zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
26549 (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
26550 truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
26551 fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
5646ba12 26552 floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed,
50961141
RH
26553 absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
26554 fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
26555 * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
26556 mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
26557 vec_extractv2si_1): Change Y constraints to Y2.
26558 * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
26559 vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
26560 Change Y constraints to Y2.
26561 (sse2_loadld): Change Y constraints to x.
26562
565ef4ba
RS
265632007-02-06 Roger Sayle <roger@eyesopen.com>
26564
26565 * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
26566 (parity<mode>2): New define_expand using rs6000_emit_parity.
26567 * config/rs6000/rs6000.c (rs6000_emit_popcount,
26568 rs6000_emit_parity): New functions.
26569 * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
26570 rs6000_emit_parity): Prototype here.
26571
7e0c3f57
ILT
265722007-02-06 Ian Lance Taylor <iant@google.com>
26573
26574 * lower-subreg.c (simple_move_operand): Reject CONST.
26575 (resolve_clobber): Call validate_change rather than directly
26576 assigning to XEXP (pat, 0).
26577
15814ba0
PB
265782006-02-06 Paolo Bonzini <bonzini@gnu.org>
26579
26580 * Makefile.in (tree-ssa-loop-ivopts.o): Add pointer-set.h dependency.
26581 (tree-ssa-reassoc.o): Add pointer-set.h dependency.
26582 (tree-cfg.o): Remove hashtab.h dependency.
26583
26584 * tree-ssa-loop-ivopts.c: Include pointer-set.h.
26585 (struct ivopts_data): Change niters to pointer_map_t.
26586 (struct nfe_cache_elt, nfe_hash, nfe_eq): Delete.
26587 (niter_for_exit): Create pointer_map on demand. Change for
26588 pointer_map API.
26589 (tree_ssa_iv_optimize_init): Initialize data->niters to NULL.
26590 (free_loop_data): Destroy data->niters if created and reset field.
26591 (tree_ssa_iv_optimize_finalize): Don't delete data->niters here.
26592 (tree_ssa_iv_optimize_loop): Check for presence of stale data.
26593
26594 * tree-ssa-reassoc.c: Include pointer-set.h.
26595 (bb_rank): Change to long *.
26596 (operand_rank): Change to pointer_map_t.
26597 (find_operand_rank): Return long, -1 if not found. Declare as inline.
26598 (insert_operand_rank): Accept long.
26599 (operand_entry_hash, operand_entry_eq): Remove.
26600 (get_rank): Return long. Adjust for changes above.
26601 (init_reassoc): Change rank type to long. Adjust creation of bb_rank
26602 and operand_rank.
26603 (fini_reassoc): Delete operand_rank with pointer_map_destroy.
26604
26605 * tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
26606 (struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
26607 (insert_vi_for_tree): Rewrite for pointer_map API. Assert argument
26608 is not NULL.
26609 (lookup_vi_for_tree): Rewrite for pointer_map API. Return varinfo_t
26610 directly since it cannot be NULL.
26611 (get_vi_for_tree): Rewrite for pointer_map API.
26612 (find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
26613 (init_alias_vars): Create vi_for_tree as pointer_map.
26614 (delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
26615
26616 * tree-cfg.c: Don't include hashtab.h.
26617 (edge_to_cases): Declare as pointer_map.
26618 (struct edge_to_cases_elt, edge_to_cases_hash, edge_to_cases_eq):
26619 Delete.
26620 (edge_to_cases_cleanup): Rewrite as pointer_map_traverse callback.
26621 (start_recording_case_labels): Create edge_to_cases as pointer_map.
26622 (end_recoding_case_labels): Cleanup edge_to_cases manually before
26623 destroying it.
26624 (record_switch_edge): Delete.
26625 (get_cases_for_edge): Adjust for pointer_map API, inline
26626 record_switch_edge (rewritten for new API), remove goto.
26627
266282006-02-06 Paolo Bonzini <bonzini@gnu.org>
26629
26630 * Makefile.in (tree-nested.o): Add pointer-set.h dependency.
26631 * tree-nested.c: Include pointer-set.h.
26632 (var_map_elt, var_map_eq, var_map_hash): Delete.
26633 (struct nesting_info): Remove GTY marker. Change the two htab_t's
26634 to pointer_map_t's.
26635 (nesting_info_bitmap_obstack): New.
26636 (lookup_field_for_decl): Adjust for pointer_map API.
26637 (lookup_tramp_for_decl): Adjust for pointer_map API.
26638 (get_nonlocal_debug_decl): Adjust for pointer_map API.
26639 (get_local_debug_decl): Adjust for pointer_map API.
26640 (convert_nl_goto_reference): Adjust for pointer_map API.
26641 (convert_nl_goto_receiver): Adjust for pointer_map API.
26642 (create_nesting_tree): Create outside GGC space. Create bitmap on
26643 the new obstack. Create field_map and var_map as pointer_maps.
26644 (free_nesting_tree): Adjust for changes to create_nesting_tree.
5646ba12 26645 (root): Delete.
15814ba0
PB
26646 (lower_nested_functions): Move root here, no need to NULL it.
26647 Initialize and release the obstack.
26648
0802f6a2
PB
266492007-02-06 Paolo Bonzini <bonzini@gnu.org>
26650
3de8da2a
UB
26651 * tree.c (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p):
26652 Remove prototypes and make them non-static.
26653 (struct tree_int_map): Remove.
26654 * tree.h (struct tree_int_map): Move here, turning TO into an
26655 unsigned int.
26656 (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p): Declare.
0802f6a2 26657
3de8da2a
UB
26658 * tree.h (TREE_COMPLEXITY): Remove.
26659 (struct tree_exp): Remove complexity field.
26660 * tree.c (build1_stat): Don't set it.
0802f6a2 26661
fbf798fc
DN
266622007-02-06 Dorit Nuzman <dorit@il.ibm.com>
26663 Victor Kaplansky <victork@il.ibm.com>
26664
26665 * tree-vectorizer.c (vect_is_simple_use): Support induction.
26666 (vect_is_simple_reduction): Support reduction with induction as
26667 one of the operands.
26668 (vect_is_simple_iv_evolution): Fix formatting.
5646ba12 26669 * tree-vect-analyze.c (vect_mark_stmts_to_be_vectorized): Fix
fbf798fc
DN
26670 formatting. Don't mark induction phis for vectorization.
26671 (vect_analyze_scalar_cycles): Analyze all inductions, then reductions.
26672 * tree-vect-transform.c (get_initial_def_for_induction): New function.
26673 (vect_get_vec_def_for_operand): Support induction.
26674 (vect_get_vec_def_for_stmt_copy): Fix formatting and add check for
26675 induction case.
5646ba12
EC
26676 (vectorizable_reduction): Support reduction with induction as one of
26677 the operands.
fbf798fc
DN
26678 (vectorizable_type_demotion): Use def-type of stmt argument rather
26679 than dummy def-type.
26680
26681 * tree-ssa-loop.c (gate_scev_const_prop): Return the value of
26682 flag_tree_scev_cprop.
26683 * common.opt (tree-scev-cprop): New flag.
26684
26685 * tree-vect-transform.c (vect_create_destination_var): Use 'kind' in
26686 call to vect_get_new_vect_var.
26687
03d3e953
IR
266882007-02-06 Ira Rosen <irar@il.ibm.com>
26689
5646ba12 26690 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that
03d3e953
IR
26691 vectype is not NULL.
26692 (vect_pattern_recog_1): Likewise.
26693
8fbbe90b
KG
266942007-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26695
26696 * fold-const.c (negate_expr_p): Handle CONJ_EXPR.
26697 (fold_negate_expr): Likewise.
26698
792eaee2
AO
266992007-02-05 Alexandre Oliva <aoliva@redhat.com>
26700
26701 PR debug/30189
26702 * dwarf2out.c (modified_type_die): Follow DECL_ORIGINAL_TYPE
26703 even if cv-qualification is the same.
26704
9be75e44
GK
267052007-02-05 Geoffrey Keating <geoffk@apple.com>
26706
26707 * config/rs6000/darwin-tramp.asm (__trampoline_setup): Call
26708 __enable_execute_stack on completion.
26709
3de8da2a 267102007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
21efb4d4
HJ
26711
26712 * config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
26713 athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
26714 athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
26715 athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
26716 athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
26717 athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
26718 athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
26719 athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
26720
3de8da2a 267212007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
21efb4d4
HJ
26722
26723 * config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
26724 cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
26725 swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
26726 fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
26727 x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
26728 floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
26729 floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
26730 mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
26731 umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
26732 umuldi3_highpart_rex64, umulsi3_highpart_insn,
26733 umulsi3_highpart_zext, smuldi3_highpart_rex64,
26734 smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
26735 x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
26736 sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
26737 sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
26738 sqrtextenddfxf2_i387): Added amdfam10_decode.
5646ba12 26739
21efb4d4
HJ
26740 * config/i386/athlon.md (athlon_idirect_amdfam10,
26741 athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
26742 athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
26743 athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
26744 athlon_ivector_store_amdfam10): New define_insn_reservation.
26745 (athlon_idirect_loadmov, athlon_idirect_movstore): Added
26746 amdfam10.
26747
3de8da2a 267482007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
21efb4d4
HJ
26749
26750 * config/i386/athlon.md (athlon_call_amdfam10,
26751 athlon_pop_amdfam10, athlon_lea_amdfam10): New
26752 define_insn_reservation.
26753 (athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
26754 athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
26755 athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
26756
3de8da2a 267572007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
21efb4d4
HJ
26758
26759 * config/i386/athlon.md (athlon_sseld_amdfam10,
26760 athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
26761 athlon_mmxssest_short_amdfam10): New define_insn_reservation.
26762
3de8da2a 267632007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
21efb4d4
HJ
26764
26765 * config/i386/athlon.md (athlon_sseins_amdfam10): New
26766 define_insn_reservation.
26767 * config/i386/i386.md (sseins): Added sseins to define_attr type
26768 and define_attr unit.
26769 * config/i386/sse.md: Set type attribute to sseins for insertq
26770 and insertqi.
26771
3de8da2a 267722007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
21efb4d4
HJ
26773
26774 * config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
26775 ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
26776 ssecomi_load_amdfam10, ssecomi_amdfam10,
26777 sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
26778 define_insn_reservation.
26779 (ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
26780
3de8da2a 267812007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
21efb4d4
HJ
26782
26783 * config/i386/athlon.md (cvtss2sd_load_amdfam10,
26784 cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
26785 cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
26786 cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
26787 cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
5646ba12 26788 cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New
21efb4d4
HJ
26789 define_insn_reservation.
26790
26791 * config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
26792 cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
26793 cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
26794 cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
26795 cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
26796
3de8da2a 267972007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
21efb4d4
HJ
26798
26799 * config/i386/athlon.md (athlon_ssedivvector_amdfam10,
26800 athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
26801 athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
26802 (athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
26803 athlon_ssemul_load_k8): Added amdfam10.
26804
3de8da2a 268052007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
21efb4d4
HJ
26806
26807 * config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
26808 (x86_sse_unaligned_move_optimal): New variable.
5646ba12
EC
26809
26810 * config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for
21efb4d4
HJ
26811 m_AMDFAM10.
26812 (ix86_expand_vector_move_misalign): Add code to generate movupd/movups
26813 for unaligned vector SSE double/single precision loads for AMDFAM10.
26814
3de8da2a 268152007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
21efb4d4
HJ
26816
26817 * config/i386/i386.h (TARGET_AMDFAM10): New macro.
26818 (TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
26819 Define TARGET_CPU_DEFAULT_amdfam10.
26820 (TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
5646ba12
EC
26821 (processor_type): Add PROCESSOR_AMDFAM10.
26822
21efb4d4
HJ
26823 * config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
26824 processor_type in config/i386/i386.h.
26825 Enable imul peepholes for TARGET_AMDFAM10.
5646ba12 26826
21efb4d4 26827 * config.gcc: Add support for --with-cpu option for amdfam10.
5646ba12 26828
21efb4d4
HJ
26829 * config/i386/i386.c (amdfam10_cost): New variable.
26830 (m_AMDFAM10): New macro.
26831 (m_ATHLON_K8_AMDFAM10): New macro.
26832 (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
26833 x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
26834 x86_promote_QImode, x86_integer_DFmode_moves,
5646ba12 26835 x86_partial_reg_dependency, x86_memory_mismatch_stall,
21efb4d4
HJ
26836 x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
26837 x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
26838 x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
26839 x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
26840 Enable/disable for amdfam10.
26841 (override_options): Add amdfam10_cost to processor_target_table.
5646ba12 26842 Set up PROCESSOR_AMDFAM10 for amdfam10 entry in
21efb4d4
HJ
26843 processor_alias_table.
26844 (ix86_issue_rate): Add PROCESSOR_AMDFAM10.
26845 (ix86_adjust_cost): Add code for amdfam10.
26846
3de8da2a 268472007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
5646ba12 26848
21efb4d4 26849 * config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
5646ba12 26850 instruction set feature flag. Add new (-mpopcnt) flag for popcnt
21efb4d4
HJ
26851 instruction. Add new SSE4A (-msse4a) instruction set feature flag.
26852 * config/i386/i386.h: Add builtin definition for SSE4A.
5646ba12 26853 * config/i386/i386.md: Add support for ABM instructions
21efb4d4
HJ
26854 (popcnt and lzcnt).
26855 * config/i386/sse.md: Add support for SSE4A instructions
26856 (movntss, movntsd, extrq, insertq).
26857 * config/i386/i386.c: Add support for ABM and SSE4A builtins.
26858 Add -march=amdfam10 flag.
26859 * config/i386/ammintrin.h: Add support for SSE4A intrinsics.
26860 * doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
26861 and amdfam10.
26862 * doc/extend.texi: Add documentation for SSE4A builtins.
26863
63694bdd
BW
268642007-02-05 Bob Wilson <bob.wilson@acm.org>
26865
26866 * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
26867
b95becfc
RG
268682007-02-05 Richard Guenther <rguenther@suse.de>
26869
26870 * tree-vectorizer.h (vectorizable_function): Add argument type
26871 argument, change return type.
26872 * tree-vect-patterns.c (vect_recog_pow_pattern): Adjust caller.
26873 * tree-vect-transform.c (vectorizable_function): Handle extra
26874 argument, return vectorized function decl.
26875 (build_vectorized_function_call): Remove.
26876 (vectorizable_call): Handle calls with result and argument types
26877 differing. Handle loop vectorization factor correctly.
26878 * targhooks.c (default_builtin_vectorized_function): Adjust for
26879 extra argument.
26880 * targhooks.h (default_builtin_vectorized_function): Likewise.
26881 * target.h (builtin_vectorized_function): Add argument type
3de8da2a 26882 argument.
b95becfc
RG
26883 * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
26884 extra argument, allow vectorizing of lrintf.
26885 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Adjust
26886 documentation of target hook.
26887
c3e786e7
HPN
268882007-02-05 Hans-Peter Nilsson <hp@axis.com>
26889
aa3386a5 26890 PR target/30665
c3e786e7
HPN
26891 * config/cris/cris.md ("*andsi_movu", "*andsi_clear", "*andhi_movu")
26892 ("*andhi_clear", andu (casesi+45)): For size-changed operand where
26893 memory is allowed, require !side_effects_p, not just !MEM_VOLATILE_P.
26894
2d38026b
RS
268952007-02-05 Roger Sayle <roger@eyesopen.com>
26896
26897 * fold-const.c (fold_unary) <REAL_PART>: Test for availability of
26898 BUILT_IN_COS before simplifying REAL_PART(CEXPI)) to COS.
26899 <IMAG_PART>: Likewise, check for availability of BUILT_IN_SIN.
26900 * builtins.c (fold_builtin_sincos): Check for TARGET_C99_FUNCTIONS
26901 before canonicalizing sincos to cexpi.
26902 (fold_builtin_cexp): Likewise, for canonicalizing cexp to cexpi.
26903
b6e46ca1
RS
269042007-02-05 Roger Sayle <roger@eyesopen.com>
26905
26906 * config/alpha/alpha.c (alpha_add_builtins): New Helper function.
26907 Set TREE_READONLY and TREE_NOTHROW directly, not via attributes.
26908 (alpha_init_builtins): Use alpha_add_builtins to process tables.
26909
8d0510dd
RS
269102007-02-05 Roger Sayle <roger@eyesopen.com>
26911
26912 * mips-tfile.c (initialize_init_file): Correct endianness test.
26913
d6fb69e7
KH
269142007-02-05 Kazu Hirata <kazu@codesourcery.com>
26915
26916 * config/m68k/m68k.md (pushdi-1, pushdi, movsi+1): Don't use
26917 the 'y' constraint.
26918
55d6f631
RS
269192007-02-05 Richard Sandiford <richard@codesourcery.com>
26920
26921 * dwarf2out.c (dwarf2out_frame_debug_expr): Record the register
26922 saves in a PARALLEL before the register assignments.
26923
5cd0f915
RS
269242007-02-05 Richard Sandiford <richard@codesourcery.com>
26925
26926 * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Do not require
26927 DWARF_FRAME_RETURN_COLUMN to be a general register.
26928 * dwarf2out.c (init_return_column_size): New function, split from...
26929 (expand_builtin_init_dwarf_reg_sizes): ...here. Allow both
26930 DWARF_FRAME_RETURN_COLUMN and DWARF_ALT_FRAME_RETURN_COLUMN
26931 to be nongeneral registers.
26932 * config/m68k/m68k.h (DWARF_FRAME_REGNUM): Only map FP and
26933 integer registers.
26934 (DWARF_FRAME_REGISTERS, DWARF_FRAME_RETURN_COLUMN): Define.
26935 (DWARF_ALT_FRAME_RETURN_COLUMN): Define.
26936
83bd032b
ZD
269372007-02-04 Zdenek Dvorak <dvorakz@suse.cz>
26938
26939 * cfgcleanup.c (try_optimize_cfg): Avoid removing ENTRY_BLOCK_PTR.
26940
14fa2cc0
ZD
269412007-02-04 Zdenek Dvorak <dvorakz@suse.cz>
26942
26943 * cfgloopmanip.c (loop_delete_branch_edge): Removed.
26944 (remove_path): Use can_remove_branch_p and remove_branch instead
26945 of loop_delete_branch_edge.
26946 * tree-ssa-loop-manip.c (scale_dominated_blocks_in_loop): New function.
26947 (tree_transform_and_unroll_loop): Remove dead branches immediately.
26948 Update profile using scale_dominated_blocks_in_loop.
26949 * cfghooks.c (can_remove_branch_p, remove_branch): New functions.
26950 * cfghooks.h (struct cfg_hooks): Add can_remove_branch_p.
26951 (can_remove_branch_p, remove_branch): Declare.
26952 * tree-cfg.c (tree_can_remove_branch_p): New function.
26953 (tree_cfg_hooks): Add tree_can_remove_branch_p.
26954 * cfgrtl.c (rtl_can_remove_branch_p): New function.
26955 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add rtl_can_remove_branch_p.
26956
28489334
JH
269572007-02-05 Jan Hubicka <jh@suse.cz>
26958
26959 PR middle-end/30696
26960 * ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed
26961 nodes in cgraph, don't remove offline copy of the function.
26962
bf3892af
JH
269632007-02-04 Jan Hubicka <jh@suse.cz>
26964
26965 * tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
26966 vectors might cause maybe_lookup_element_for_expr to be called
26967 on non-sra-candidate.
26968
942fd98f
KH
269692007-02-04 Kazu Hirata <kazu@codesourcery.com>
26970
26971 * config/bfin/bfin-modes.def, config/bfin/bfin.c,
26972 config/bfin/bfin.md, config/bfin/predicates.md: Follow
26973 spelling conventions.
26974
713e3ec9
RG
269752007-02-04 Richard Guenther <rguenther@suse.de>
26976
26977 PR middle-end/30636
26978 * fold-const.c (try_move_mult_to_index): Make sure to not
26979 overflow one dimension of a multi-dimensional array access.
26980
f1bd2543
JH
269812007-02-04 Jan Hubicka <jh@suse.cz>
26982
26983 * passes.c (init_optimization_passes): Reindent.
26984
1084e689 269852007-02-04 Jan Hubicka <jh@suse.cz>
83bd032b 26986 Eric Botcazou <ebotcazou@adacore.com>
1084e689 26987
f81ef9b3 26988 * tree-optimize.c (has_abnormal_outgoing_edge_p): Move to...
1084e689 26989 (execute_fixup_cfg): Break out the abnormal goto code.
f81ef9b3 26990 * tree-inline.c (has_abnormal_outgoing_edge_p): ...here.
1084e689
JH
26991 (make_nonlocal_label_edges): Move here from execute_fixup_cfg.
26992 (optimize_inline_calls): Call make_nonlocal_label_edges.
26993
facbf948
JH
269942007-02-04 Jan Hubicka <jh@suse.cz>
26995
26996 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Return
26997 true when something was changed.
26998 (rename_ssa_copies): When something was changed, do
26999 TODO_remove_unused_locals.
27000 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
27001 add TODO_remove_unused_locals when instruction was removed.
27002
22ad64b6
JH
270032007-02-04 Jan Hubicka <jh@suse.cz>
27004
27005 * ipa-inline.c (try_inline): Improve debug output; work on already
27006 inline edges too.
27007 (cgraph_decide_inlining_incrementally): Indent; improve debug output;
5646ba12 27008 call try_inline for already inlined edges too when flattening;
22ad64b6
JH
27009 inline also functions that make callee growth but overall unit size
27010 reduce.
27011
85f65093
KH
270122007-02-04 Kazu Hirata <kazu@codesourcery.com>
27013
27014 * config/m32c/bitops.md, config/m32c/jump.md,
27015 config/m32c/m32c.c, config/m32c/m32c.h, config/m32r/m32r.c,
27016 config/m32r/m32r.h, config/m32r/m32r.md,
27017 config/m32r/predicates.md, config/m68hc11/larith.asm,
27018 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
27019 config/m68k/m68k.h, config/mcore/mcore.md, config/mips/4k.md,
27020 config/mips/mips-protos.h, config/mips/mips.c,
27021 config/mips/mips.h, config/mips/mips.md, config/mips/mips16.S,
27022 config/mn10300/mn10300.h, config/mn10300/predicates.md,
27023 config/mt/mt.c, config/mt/mt.h, config/mt/mt.md: Follow
27024 spelling conventions.
27025
22f23985
KH
27026 * config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
27027 Follow spelling conventions.
27028
beeffe36
DG
270292007-02-03 Douglas Gregor <doug.gregor@gmail.com>
27030
6bdcc60c
UB
27031 * c-opts.c (c_common_post_options): If C++0x mode is enabled, don't
27032 warn about C++0x compatibility.
5646ba12 27033
da55315a
KH
270342007-02-04 Kazu Hirata <kazu@codesourcery.com>
27035
27036 * config/h8300/h8300.c, config/h8300/h8300.h,
27037 config/h8300/h8300.md: Follow spelling conventions.
27038
28b02c60
UB
270392007-02-03 Uros Bizjak <ubizjak@gmail.com>
27040
27041 PR middle-end/30667
27042 * combine.c (try_combine): Do not substitute source operand
27043 with constants wider than 2 * HOST_BITS_PER_WIDE_INT.
27044
3855c807
JH
270452007-02-03 Jan Hubicka <jh@suse.cz>
27046
27047 PR gcov-profile/30650
27048 * value-prof.c (stringop_block_profile): Fix handling of size counter;
27049 do not divide by zero for never executed counters.
27050 (tree_find_values_to_profile): Fix counters.
27051 * gcov-ui.h (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): Fix comments.
27052
2b54c30f
ILT
270532007-02-03 Ian Lance Taylor <iant@google.com>
27054
27055 * lower-subreg.c (simple_move_operand): New static function,
27056 broken out of simple_move. Reject LABEL_REF, SYMBOL_REF, and HIGH
27057 operands.
27058 (simple_move): Call simple_move_operand.
27059 (find_decomposable_subregs): Add special handling of MEMs.
27060 (can_decompose_p): Rename from cannot_decompose_p. Reverse
27061 meaning of return value. If we see a hard register, test whether
27062 it can store a word_mode value. Change all callers.
27063
2e3e8cea
JDA
270642007-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27065
7fcc8dcf
JDA
27066 * pa.md (addvdi3, addvsi3, subvdi3, subvsi3, negvdi2, negvsi2): New
27067 ftrapv insns and expanders.
27068 (subdi3): Change define_expand operand 1 to arith11_operand, and
27069 operand 2 to reg_or_0_operand. Change constraints of 64-bit insn
27070 pattern to handle reg_or_0 operands. Revise 32-bit insn pattern to
27071 handle 11-bit constants and reg_or_0 operands in operands 1 and 2,
27072 respectively.
27073
2e3e8cea
JDA
27074 PR middle-end/30174
27075 * varasm.c (notice_global_symbol): Treat global objects as weak when
27076 flag_shlib is true.
27077
b86a760a
KG
270782007-02-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27079
27080 * emit-rtl.c (dconstpi): Delete.
27081 (dconstsqrt2): New.
27082 (init_emit_once): Delete dconstpi and init dconstsqrt2.
27083 * real.h (dconstpi): Delete.
27084 (dconstsqrt2): New.
27085 * builtins.c (fold_builtin_cabs): Use dconstsqrt2.
27086 (fold_builtin_hypot): Likewise.
27087
3a610de8
TT
270882007-02-03 Tom Tromey <tromey@redhat.com>
27089
27090 PR driver/30246
27091 * gcc.c (cpp_unique_options): Any of -ggdb3, -gstabs3,
27092 -gcoff3, -gxcoff3, -gvms3 implies -dD.
27093
9f5ed61a
KH
270942007-02-03 Kazu Hirata <kazu@codesourcery.com>
27095
27096 * c-decl.c, config/avr/avr.c, config/avr/avr.h,
27097 config/m68k/m68k.c, config/m68k/netbsd-elf.h,
27098 config/mn10300/mn10300.c, config/pdp11/pdp11.h,
27099 config/rs6000/cell.md, config/rs6000/darwin.h,
27100 config/sh/sh.md, config/sh/sh4-300.md, config/spu/spu.c,
27101 config/spu/spu.md, cselib.c, expr.c, haifa-sched.c, hwint.h,
27102 jump.c, reload.c, sched-deps.c, sched-int.h, tree-inline.c,
27103 tree-profile.c, tree-ssa-live.h, tree-vrp.c: Fix comment
27104 typos. Follow spelling conventions.
27105 * doc/invoke.texi: Follow spelling conventions.
27106
3fa0cacd
RS
271072007-02-03 Roger Sayle <roger@eyesopen.com>
27108
27109 * simplify-rtx.c (simplify_relational_operation_1): Implement some
27110 canonicalization transformations that attempt to simplify integer
27111 constant comparisons to become comparisons against zero.
27112
d1ad84c2
KG
271132007-02-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27114
27115 * builtins.c (fold_builtin_cabs): Fold cabs(x+xi) into
27116 fabs(x)*sqrt(2).
27117 * fold-const.c (fold_binary): Fix comment typos. Fold complex
27118 (x,0)-(0,y) into (x,-y). Likewise (0,y)-(x,0) into (-x,y).
27119
75b1b789
MS
271202007-02-02 Mike Stump <mrs@apple.com>
27121
27122 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Add.
27123 * config/rs6000/rs6000.c (DARWIN_GENERATE_ISLANDS): Add.
27124 (output_call): Use DARWIN_GENERATE_ISLANDS to decide when to
27125 generate a branch island.
27126
da1f39e4
BW
271272007-02-02 Bob Wilson <bob.wilson@acm.org>
27128
27129 * config/xtensa/xtensa.c (smalloffset_mem_p): Use BASE_REG_P.
27130 (xtensa_legitimate_address_p): New.
27131 (xtensa_legitimize_address): New.
27132 (xtensa_output_addr_const_extra): New.
27133 * config/xtensa/xtensa.h (REG_OK_STRICT_FLAG): Define.
27134 (BASE_REG_P): New.
27135 (REG_OK_FOR_BASE_P): Use BASE_REG_P.
27136 (GO_IF_LEGITIMATE_ADDRESS): Move code to xtensa_legitimate_address_p.
27137 (LEGITIMIZE_ADDRESS): Move code to xtensa_legitimize_address.
27138 (OUTPUT_ADDR_CONST_EXTRA): Move code to xtensa_output_addr_const_extra.
27139 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): New.
27140 (xtensa_legitimize_address): New.
27141 (xtensa_output_addr_const_extra): New.
27142
86ad1da0
SE
271432007-02-02 Steve Ellcey <sje@cup.hp.com>
27144
27145 * config/ia64/ia64.c (ia64_print_operand): Fix compare strings.
27146
093253be
ILT
271472007-02-02 Ian Lance Taylor <iant@google.com>
27148
27149 * expmed.c (expand_divmod): Add comment.
27150
a638bdc2
KH
271512007-02-02 Kazu Hirata <kazu@codesourcery.com>
27152
27153 * emit-rtl.c (renumber_insns): Remove.
27154 * flags.h: Remove the extern for flag_renumber_insns.
27155 * rtl.h: Remove the prototype for renumber_insns.
27156 * toplev.c (flag_renumber_insns): Remove.
27157
88c6f101
HMC
271582007-02-02 Hui-May Chang <hm.chang@apple.com>
27159
27160 Revert for x86 darwin:
27161 2005-06-19 Uros Bizjak <uros@kss-loka.si>
5646ba12 27162
88c6f101
HMC
27163 * config/i386/i386.c (ix86_function_arg_regno_p): Put back the
27164 code before the following patch under TARGET_MACHO.
27165 (ix86_function_value_regno_p): Likewise.
27166
1aeef526
KG
271672007-02-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27168
27169 * fold-const.c (negate_expr_p, fold_negate_expr): Handle
27170 COMPLEX_EXPR.
27171
f6ec1d11
MK
271722007-02-02 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
27173
27174 PR target/29682
7e08fa35
UB
27175 * config/ia64/ia64.c (ia64_speculate_insn): Restrict to memory
27176 loads to general or fp registers. Add comments.
f6ec1d11
MK
27177 * config/ia64/ia64.md (reg_pred_prefix): Add comment.
27178
ad12460b
PB
271792007-02-02 Paolo Bonzini <bonzini@gnu.org>
27180
27181 * pointer-set.c (insert_aux): Only return insertion slot.
27182 (pointer_set_insert): Adjust.
27183 (pointer_set_traverse, struct pointer_map_t, pointer_map_create,
27184 pointer_map_destroy, pointer_map_insert, pointer_map_contains,
27185 pointer_map_traverse): New.
27186 * pointer-set.h (pointer_set_traverse, struct pointer_map_t,
27187 pointer_map_create, pointer_map_destroy, pointer_map_insert,
27188 pointer_map_contains, pointer_map_traverse): Declare.
27189
6b01cd54
JJ
271902007-02-02 Jakub Jelinek <jakub@redhat.com>
27191
27192 PR middle-end/30473
27193 * builtins.c (fold_builtin_sprintf): Do not attempt to optimize
27194 sprintf (str, "%s"). Do not optimize sprintf (str, "nopercent", p++).
27195
b198261f
MK
271962007-02-02 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
27197
27198 * sched-int.h (ds_to_dk, dk_to_ds): Declare functions.
5646ba12 27199
b198261f
MK
27200 (struct _dep): New type.
27201 (dep_t): New typedef.
27202 (DEP_PRO, DEP_CON, DEP_KIND): New access macros.
27203 (DEP_STATUS): New access macro. The macro with the same name was
27204 renamed to DEP_LINK_STATUS.
27205 (dep_init): Declare function
27206
27207 (struct _dep_link): New type.
27208 (dep_link_t): New typedef.
27209 (DEP_LINK_NODE, DEP_LINK_NEXT, DEP_LINK_PREV_NEXTP): New access macros.
27210 (DEP_LINK_DEP, DEP_LINK_PRO, DEP_LINK_CON, DEP_LINK_KIND): New macros.
27211 (DEP_LINK_STATUS): New macro.
27212 (debug_dep_links): New debug function.
27213
27214 (struct _deps_list): New type.
27215 (deps_list_t): New typedef.
27216 (DEPS_LIST_FIRST): New access macro.
27217 (FOR_EACH_DEP_LINK): New cycle macro.
27218 (create_deps_list, free_deps_list, delete_deps_list): Declare
27219 functions.
27220 (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
27221 (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
27222 (copy_deps_list_change_con): Ditto.
27223
27224 (move_dep_link): Declare function.
27225
27226 (struct _dep_node): New type.
27227 (dep_node_t): New typedef.
27228 (DEP_NODE_BACK, DEP_NODE_DEP, DEP_NODE_FORW): New access macros.
27229
27230 (struct haifa_insn_data.back_deps): New field to hold backward
27231 dependencies of the insn.
27232 (struct haifa_insn_data.depend): Rename to forw_deps. Change its type
27233 to deps_list_t.
27234 (struct haifa_insn_data.resolved_deps): Rename to resolved_back_deps.
27235 Change its type to deps_list_t.
27236 (INSN_BACK_DEPS): New access macro to use instead of LOG_LINKS.
27237 (INSN_DEPEND): Rename to INSN_FORW_DEPS.
27238 (RESOLVED_DEPS): Rename to INSN_RESOLVED_BACK_DEPS.
27239
27240 (INSN_COST): Move to haifa-sched.c. Use insn_cost () instead.
5646ba12 27241
b198261f
MK
27242 (DEP_STATUS): Rename to DEP_LINK_STATUS. Fix typo in the comment.
27243
7e08fa35
UB
27244 (add_forw_dep, delete_back_forw_dep, insn_cost): Update declaration
27245 and all callers.
b198261f 27246 (dep_cost): Declare.
5646ba12 27247
b198261f
MK
27248 * sched-deps.c (CHECK): New macro to (en/dis)able sanity checks.
27249 (ds_to_dk, dk_to_ds): New functions.
5646ba12 27250
b198261f
MK
27251 (init_dep_1): New static function.
27252 (init_dep): New function.
27253 (copy_dep): New static function.
5646ba12 27254
b198261f
MK
27255 (dep_link_consistent_p, attach_dep_link, add_to_deps_list): New static
27256 functions.
27257 (detach_dep_link): New static function.
27258 (move_dep_link): New function.
5646ba12 27259
b198261f
MK
27260 (dep_links_consistent_p, dump_dep_links): New static functions.
27261 (debug_dep_links): New debugging function.
5646ba12 27262
b198261f 27263 (deps_obstack, dl_obstack, dn_obstack): New static variables.
5646ba12 27264
b198261f
MK
27265 (alloc_deps_list, init_deps_list): New static functions.
27266 (create_deps_list): New function.
27267 (clear_deps_list): New static function.
27268 (free_deps_list, delete_deps_list, deps_list_empty_p): New functions.
27269 (deps_list_consistent_p, dump_deps_list): New static functions.
27270 (debug_deps_list): New function.
27271 (add_back_dep_to_deps_list, find_link_by_pro_in_deps_list): New
27272 functions.
27273 (find_link_by_con_in_deps_list, copy_deps_list_change_con): Ditto.
27274
27275 (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Update to
27276 use new scheduler dependencies lists.
27277 (add_back_dep, delete_all_dependences, fixup_sched_groups): Ditto.
27278 (sched_analyze): Ditto. Initialize dependencies lists.
27279 (add_forw_dep, compute_forward_dependences): Update to use new
27280 scheduler dependencies lists.
5646ba12 27281
b198261f
MK
27282 (init_dependency_caches): Init deps_obstack.
27283 (free_dependency_caches): Free deps_obstack.
5646ba12 27284
b198261f
MK
27285 (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Update to use
27286 new scheduler dependencies lists.
27287 (delete_forw_dep, add_or_update_back_forw_dep): Ditto.
27288 (add_back_forw_dep, delete_back_forw_dep): Ditto.
27289
27290 * sched-rgn.c (set_spec_fed, find_conditional_protection, is_pfree):
27291 Update to use new scheduler dependencies lists.
27292 (is_conditionally_protected, is_prisky, add_branch_dependences): Ditto.
27293 (debug_dependencies): Ditto.
27294 (schedule_region): Update comments.
5646ba12 27295
b198261f
MK
27296 * sched-ebb.c (earliest_block_with_similiar_load): Update to use new
27297 scheduler dependencies lists.
27298 (schedule_ebb): Update comments.
5646ba12 27299
b198261f 27300 * rtl.def (DEPS_LIST): Remove.
5646ba12 27301
b198261f
MK
27302 * lists.c (unused_deps_list): Remove.
27303 (free_list): Update assertions.
5646ba12 27304
b198261f
MK
27305 (alloc_DEPS_LIST, free_DEPS_LIST_list, free_DEPS_LIST_node): Remove.
27306 (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
27307
27308 * rtl.h (free_DEPS_LIST_list, alloc_DEPS_LIST): Remove declarations.
27309 (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
5646ba12 27310
b198261f
MK
27311 * haifa-sched.c (comments): Update.
27312 (insn_cost1): Remove. Inline the code into insn_cost ().
27313 (insn_cost): Update to use new scheduler dependencies lists. Move
27314 processing of the dependency cost to dep_cost ().
27315 (dep_cost): New function. Use it instead of insn_cost () when
27316 evaluating cost of the dependency. Use compatible interface to
27317 interact with the target.
27318 (priority): Update to use new scheduler dependencies lists.
27319 (rank_for_schedule): Ditto. Optimize heuristic that prefers the insn
27320 with greater number of insns that depend on the insn.
27321 (schedule_insn): Update to use new scheduler dependencies lists. Add
27322 code to free backward dependencies lists. Inline and optimize code
27323 from resolve_dep () - see PR28071.
27324 (ok_for_early_queue_removal): Update to use new scheduler dependencies
27325 lists. Update call to targetm.sched.is_costly_dependence hook.
5646ba12 27326
b198261f
MK
27327 (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
27328 scheduler dependencies lists.
5646ba12 27329
b198261f
MK
27330 (resolve_dep): Remove. Move the logic to schedule_insn ().
27331 (init_h_i_d): Initialize dependencies lists.
5646ba12 27332
b198261f
MK
27333 (process_insn_depend_be_in_spec): Rename to
27334 process_insn_forw_deps_be_in_spec. Update to use new scheduler
27335 dependencies lists.
27336 (add_to_speculative_block, create_check_block_twin, fix_recovery_deps):
27337 Update to use new scheduler dependencies lists.
27338 (clear_priorities, calc_priorities, add_jump_dependencies): Ditto.
5646ba12 27339
b198261f
MK
27340 * ddg.c (create_ddg_dependence, create_ddg_dep_no_link): Update to use
27341 new scheduler dependencies lists.
27342 (build_intra_loop_deps): Ditto.
5646ba12 27343
b198261f
MK
27344 * target.h (struct _dep): Declare to use in
27345 gcc_target.sched.is_costly_dependence.
27346 (struct gcc_target.sched.adjust_cost): Fix typo.
7e08fa35
UB
27347 (struct gcc_target.sched.is_costly_dependence): Change signature to
27348 use single dep_t parameter instead of an equivalent triad.
b198261f
MK
27349 (struct gcc_target.sched.adjust_cost_2): Remove.
27350
27351 * target-def.h (TARGET_SCHED_ADJUST_COST_2): Remove.
27352
27353 * reg-notes.def (DEP_TRUE, DEP_OUTPUT, DEP_ANTI): Update comments.
27354
27355 * doc/tm.texi (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Update
27356 documentation.
27357 (TARGET_SCHED_ADJUST_COST_2): Remove documentation.
27358
27359 * doc/rtl.texi (LOG_LINKS): Remove part about instruction scheduler.
27360 (REG_DEP_TRUE): Document.
5646ba12 27361
b198261f 27362 * config/ia64/ia64.c (ia64_adjust_cost_2): Rename to ia64_adjust_cost.
5646ba12 27363 Change signature to correspond to the targetm.sched.adjust_cost hook.
b198261f
MK
27364 Update use in TARGET_SCHED_ADJUST_COST_2.
27365 (TARGET_SCHED_ADJUST_COST_2): Rename to TARGET_SCHED_ADJUST_COST.
27366 (ia64_dependencies_evaluation_hook, ia64_dfa_new_cycle): Update to use
27367 new scheduler dependencies lists.
27368 (ia64_gen_check): Ditto.
27369
7e08fa35
UB
27370 * config/mips/mips.c (vr4130_swap_insns_p): Update to use new
27371 scheduler dependencies lists.
5646ba12 27372
b198261f
MK
27373 * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Change
27374 signature to correspond to the targetm.sched.is_costly_dependence hook.
27375 (is_costly_group): Update to use new scheduler dependencies lists.
27376
27377 * config/spu/spu.c (spu_sched_adjust_cost): Use insn_cost () function
27378 instead of INSN_COST () macro.
27379
9a5a8e58
ILT
273802007-02-01 Ian Lance Taylor <iant@google.com>
27381
27382 * lower-subreg.c (resolve_clobber): Handle a subreg of a concatn.
27383
546dcc43
GM
273842007-02-01 Guy Martin <gmsoft@gentoo.org>
27385
27386 * pa.md (tp_load): Correct mfctl instruction syntax.
27387
7c40d666
GK
273882007-02-01 Geoffrey Keating <geoffk@apple.com>
27389
9278121c
GK
27390 * config/rs6000/rs6000.c (rs6000_stack_info): Correct
27391 altivec_padding_size calculation on AIX. Improve comment, add
27392 assert to verify that it's right.
27393
7c40d666
GK
27394 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Don't define for
27395 64-bit.
27396
3de8da2a 273972007-2-01 Seongbae Park <seongbae.park@gmail.com>
9012cdf3 27398
3de8da2a 27399 PR inline-asm/28686
9012cdf3
SP
27400 * global.c (global_alloc): Add mising initialization of
27401 ELIMINABLE_REGSET.
27402
62e5bf5d
RS
274032007-02-01 Roger Sayle <roger@eyesopen.com>
27404
27405 * alias.c (init_alias_analysis): Correct whitespace.
27406 * bb-reorder.c (fix_edges_for_rarely_executed_code,
27407 partition_hot_cold_basic_blocks): Likewise.
27408 * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
27409 expand_builtin_sprintf, fold_builtin_carg, fold_builtin_sprintf,
27410 maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
27411 fold_builtin_snprintf_chk, fold_builtin_printf,
27412 fold_builtin_fprintf, do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_arg2,
27413 do_mpfr_arg3, do_mpfr_sincos): Likewise.
27414 * cfgcleanup.c (cleanup_cfg): Likewise.
27415 * cfgexpand.c (tree_expand_cfg): Likewise.
27416 * fold-const.c (fold_binary) <RDIV_EXPR>: Likewise.
27417 * function.c (get_next_funcdef_no): Likewise.
27418 * gengtype.c (main): Likewise.
27419 * genmodes.c (main): Likewise.
27420 * gcse.c (bypass_conditional_jumps, print_ldst_list): Likewise.
27421 * haifa-sched.c (schedule_block, extend_h_i_d): Likewise.
27422 * ifcvt.c (noce_emit_move_insn): Likewise.
27423 * modulo-sched.c (generate_prolog_epilog, sms_schedule_by_order):
27424 Likewise.
27425 * stor-layout.c (get_best_mode): Likewise.
27426 * tree-ssa-loop-niter.c (get_val_for): Likewise.
27427 * tree-ssa-structalias.c (get_varinfo, get_varinfo_fc,
27428 scc_visit, do_ds_constraint, do_complex_constraint, label_visit,
27429 perform_var_substitution, solve_graph): Likewise.
27430 * tree-vrp.c (vrp_finalize): Likewise.
27431
0e6c5b58
ILT
274322007-02-01 Ian Lance Taylor <iant@google.com>
27433
27434 * lower-subreg.c (simplify_gen_subreg_concatn): If we ask for the
27435 high part of a paradoxical subreg, return a constant zero.
27436
c0d919fa
ZD
274372007-02-01 Zdenek Dvorak <dvorakz@suse.cz>
27438
27439 * toplev.c (lang_dependent_init): Call init_set_costs.
27440 * loop-init.c (loop_optimizer_init): Do not call init_set_costs.
27441
ee7d8048
RG
274422007-02-01 Richard Guenther <rguenther@suse.de>
27443
27444 PR middle-end/30656
27445 * fold-const.c (fold_negate_expr): Allow negating a
27446 constant if overflow does not change.
27447
ab873839
RW
274482007-02-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27449
27450 * doc/c-tree.texi (Expression trees): Improve markup.
27451 * doc/tm.texi (Register Classes, Addressing Modes)
27452 (Floating Point): Fix spacing after abbreviations. Fix some
27453 typos.
27454
b818de22
BE
274552007-02-01 Ben Elliston <bje@au.ibm.com>
27456
27457 * doc/invoke.texi: Replace "bugfix" with "bug fix" throughout.
27458 * doc/contrib.texi: Likewise.
27459 * doc/install.texi: Likewise.
27460
e53a16e7
ILT
274612007-01-31 Richard Henderson <rth@redhat.com>
27462 Ian Lance Taylor <iant@google.com>
27463
27464 * lower-subreg.c: New file.
27465 * rtl.def (CONCATN): Define.
27466 * passes.c (init_optimization_passes): Add pass_lower_subreg and
27467 pass_lower_subreg2.
27468 * emit-rtl.c (update_reg_offset): New static function, broken out
27469 of gen_rtx_REG_offset.
27470 (gen_rtx_REG_offset): Call update_reg_offset.
27471 (gen_reg_rtx_offset): New function.
27472 * regclass.c: Revert patch of 2006-03-05, restoring
27473 reg_scan_update.
27474 (clear_reg_info_regno): New function.
27475 * dwarf2out.c (concatn_loc_descriptor): New static function.
27476 (loc_descriptor): Handle CONCATN.
27477 * common.opt (fsplit_wide_types): New option.
27478 * opts.c (decode_options): Set flag_split_wide_types when
27479 optimizing.
27480 * timevar.def (TV_LOWER_SUBREG): Define.
27481 * rtl.h (gen_reg_rtx_offset): Declare.
27482 (reg_scan_update): Declare.
27483 * regs.h (clear_reg_info_regno): Declare.
27484 * tree-pass.h (pass_lower_subreg): Declare.
27485 (pass_lower_subreg2): Declare.
27486 * doc/invoke.texi (Option Summary): List -fno-split-wide-types.
27487 (Optimize Options): Add -fsplit-wide-types to -O1 list. Document
27488 -fsplit-wide-types.
27489 * doc/rtl.texi (Regs and Memory): Document concat and concatn.
27490 * Makefile.in (OBJS-common): Add lower-subreg.o.
27491 (lower-subreg.o): New target.
27492
52f7138e
KH
274932007-01-31 Kazu Hirata <kazu@codesourcery.com>
27494
27495 * config/sh/sh.h (HAVE_SECONDARY_RELOADS): Remove.
27496
d1fc69e4
AS
274972007-01-31 Anatoly Sokolov <aesok@post.ru>
27498
27499 PR target/19087
27500 * config/avr/avr.c (DWARF2_ADDR_SIZE): Define.
27501
4fc78423
KG
275022007-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27503
27504 PR middle-end/29335
27505 * builtins.c (fold_builtin_sqrt): Use MPFR for constant args.
27506
677cc14d
ZD
275072007-01-31 Zdenek Dvorak <dvorakz@suse.cz>
27508
27509 * cfgloop.h: Include vec-prim.h.
27510 (enum li_flags): Remove LI_ONLY_OLD.
27511 (loop_iterator): Changed.
27512 (fel_next, fel_init): Iterate over loop tree.
27513 (FOR_EACH_LOOP_BREAK): New macro.
27514 * loop-unswitch.c (unswitch_loops): Do not pass LI_ONLY_OLD to
27515 FOR_EACH_LOOP.
27516 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Ditto.
27517 * modulo-sched.c (sms_schedule): Ditto.
27518 * tree-vectorizer.c (vectorize_loops): Ditto.
27519 * doc/loop.texi: Update information on loop numbering and behavior of
27520 FOR_EACH_LOOP wrto new loops.
27521 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
27522 add_to_evolution_1): Test nestedness of loops instead of comparing
27523 their numbers.
27524 * tree-chrec.c (chrec_fold_plus_poly_poly,
27525 chrec_fold_multiply_poly_poly, chrec_evaluate,
27526 hide_evolution_in_other_loops_than_loop, chrec_component_in_loop_num,
27527 reset_evolution_in_loop): Ditto.
27528 * Makefile.in (CFGLOOP_H): Add vecprim.h dependency.
27529
e7917d06
DM
275302007-01-31 Dirk Mueller <dmueller@suse.de>
27531
27532 * c-common.c (warn_about_parentheses): Separate warning about
27533 un-parenthized sequence of comparison operators from the one
27534 which is supposed to warn about x <= y <= z.
27535
9ed4207f
UB
275362007-01-31 Uros Bizjak <ubizjak@gmail.com>
27537
27538 * optabs.h (enum optab_index): Add new OTI_isinf.
27539 (isinf_optab): Define corresponding macro.
27540 * optabs.c (init_optabs): Initialize isinf_optab.
27541 * genopinit.c (optabs): Implement isinf_optab using isinf?f2
27542 patterns.
27543 * builtins.c (mathfn_built_in): Handle BUILT_IN_ISINF{,F,L}.
27544 (expand_builtin_interclass_mathfn): Expand BUILT_IN_ISINF{,F,L}
27545 using isinf_optab.
27546 (expand_builtin): Expand BUILT_IN_ISINF{,F,L} using
27547 expand_builtin_interclass_mathfn.
27548 * reg_stack.c (subst_stack_regs_pat): Handle UNSPEC_FXAM.
27549 * config/i386/i386.md (UNSPEC_FXAM): New constant.
27550 (fxam<mode>2_i387): New insn pattern.
27551 (isinf<mode>2) New expander to implement isinf, isinff and isinfl
27552 built-in functions as x87 inline asm.
27553
c9cde24c
KH
275542007-01-31 Kazu Hirata <kazu@codesourcery.com>
27555
86122f72 27556 * config/arm/unwind-arm.h (_sleb128_t, _uleb128_t): New.
c9cde24c 27557
537bbabd
EC
275582007-01-30 Eric Christopher <echristo@apple.com>
27559
27560 * config.gcc: Add geode.
27561
88512ba0
KH
275622007-01-31 Kazu Hirata <kazu@codesourcery.com>
27563
27564 * cgraphunit.c, config/arm/arm.c, config/m68k/m68k.c,
27565 ipa-inline.c, tree-profile.c, tree-ssa-live.c,
27566 tree-ssa-math-opts.c, tree-ssanames.c, tree-vect-analyze.c,
27567 value-prof.c: Fix comment typos.
27568
b9edb4b1
MLI
275692007-01-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
27570
27571 PR c++/24745
27572 * doc/invoke.texi (Wpointer-arith): Document warning.
537bbabd 27573
3de8da2a 275742007-01-30 Janis Johnson <janis187@us.ibm.com>
05f182f6
JJ
27575
27576 * doc/extend.texi (Decimal Floating Types): Remove decfloat.h from
27577 the list of discrepancies from the draft TR.
27578
01a40464
DM
275792007-01-30 Dirk Mueller <dmueller@suse.de>
27580
27581 PR c++/30601
27582 * doc/invoke.texi (-Wreturn-type): Update description to
537bbabd 27583 match new behavior.
01a40464 27584
9caea4a7
RS
275852007-01-30 Richard Sandiford <richard@codesourcery.com>
27586
27587 * cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
27588
eaee4464
UB
275892007-01-30 Uros Bizjak <ubizjak@gmail.com>
27590
27591 * builtins.c (expand_builtin_int_interclass_roundingfn): New function
27592 to handle optabs that operate on floating point input argument and
27593 output to integer output.
27594 (expand_builtin_mathfn) [BUILT_IN_ILOGB]: Move from here ...
27595 (expand_builtin_interclass_mathfn) [BUILT_IN_ILOGB]: ... to here.
27596 (expand_builtin): Expand BUILT_IN_ILOGB{,F,L} using
27597 expand_builtin_interclass_mathfn ().
27598 * config/i386/i386.md (fxtractxf3_i387): Rename from *fxtractxf3_i387.
27599 (ilogbsi2): Remove.
27600 (ilogbxf2, ilogb<mode>2): New expanders to implement ilogb, ilogbf and
27601 ilogbl built-in functions as x87 intrinsics.
27602
9b1959ff
RG
276032007-01-30 Richard Guenther <rguenther@suse.de>
27604
27605 PR middle-end/27657
27606 * dwarf2out.c (reference_to_unused): Query varpool if the
27607 variable was output.
27608
91851351
RG
276092007-01-30 Richard Guenther <rguenther@suse.de>
27610
27611 PR middle-end/30313
27612 * passes.c (execute_one_pass): Reset in_gimple_form to not
27613 confuse non-unit-at-a-time mode.
27614
bcf52d7b
RS
276152007-01-29 Roger Sayle <roger@eyesopen.com>
27616 Richard Guenther <rguenther@suse.de>
27617
27618 * fold-const.c (round_up): Make HIGH an unsigned HOST_WIDE_INT to
27619 avoid undefined behaviour on overflow. Use force_fit_type_double
27620 to construct the constant with the specified TREE_OVERFLOW.
27621
d9a66f98
JJ
276222007-01-29 Janis Johnson <janis187@us.ibm.com>
27623
27624 * config/dfp-bit.c: Add parameterized support for fp exceptions.
27625 * config/dfp-bit.h: Ditto.
27626
bcf52d7b 276272007-01-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
c616e51b
MLI
27628
27629 * c-decl.c (pop_scope): Replace warnings with call to
27630 warn_for_unused_label.
27631 * c-common.h (warn_for_unused_label): Declare.
27632 * c-common.c (warn_for_unused_label): Define.
27633
97100596
MLI
276342007-01-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
27635
27636 * tree-optimize.c (update_inlined_to_pointers): Delete unused
27637 function.
27638
b7f0fff2
JJ
276392007-01-29 Janis Johnson <janis187@us.ibm.com>
27640
27641 * Makefile.in (USER_H): Remove decfloat.h.
27642 * ginclude/decfloat.h: Delete, moving contents to ...
27643 * ginclude/float.h: Add support for decimal floating point,
27644 guarded by __STDC_WANT_DEC_FP__.
27645
821f6218
MS
276462007-01-29 Mike Stump <mrs@apple.com>
27647
27648 * doc/gccint.texi (Top): Rename Loop Representation to Loop
27649 Analysis and Representation to resolve case insensitive conflict.
27650 * doc/loop.texi (Loop Analysis and Representation): Likewise.
27651
306219a2
DB
276522007-01-28 Daniel Berlin <dberlin@dberlin.org>
27653
27654 * tree.h (struct tree_memory_tag): Add aliases member.
27655 (MTAG_ALIASES): New macro.
27656 * tree-ssa-alias.c (alias_bitmap_obstack): New variable.
27657 (add_may_alias): Remove pointer-set. Update for may_aliases being
537bbabd 27658 a bitmap.
306219a2
DB
27659 (mark_aliases_call_clobbered): Update for may_aliases being a
27660 bitmap.
27661 (compute_tag_properties): Ditto.
27662 (create_partition_for): Ditto.
27663 (compute_memory_partitions): Ditto.
27664 (dump_may_aliases_for): Ditto.
27665 (is_aliased_with): Ditto.
27666 (add_may_alias_for_new_tag): Ditto.
27667 (rewrite_alias_set_for): Rewrite for may_aliases being a bitmap.
27668 (compute_is_aliased): New function.
27669 (compute_may_aliases): Call compute_is_aliased).
27670 (init_alias_info): Initialize alias_bitmap_obstack.
27671 (union_alias_set_into): New function.
27672 (compute_flow_sensitive_aliasing): Use union_aliases_into.
27673 (have_common_aliases_p): Rewrite to take two bitmaps and use
27674 intersection.
27675 (compute_flow_insensitive_aliasing): Stop using pointer-sets.
27676 Update for bitmaps.
27677 (finalize_ref_all_pointers): Update for add_may_alias changes.
27678 (new_type_alias): Ditto.
27679 * tree-flow-inline.h (may_aliases): Return a bitmap.
27680 * tree-dfa.c (dump_variable): Check for MTAG_P'ness.
27681 * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
27682 may_aliases being a bitmap.
27683 * tree-flow.h (struct var_ann_d): Remove may_aliases member.
27684 may_aliases now returns a bitmap.
27685 * tree-ssa-structalias.c (merge_smts_into): Update for may_aliases
27686 being a bitmap.
27687 * tree-ssa-operands.c (add_virtual_operand): Update for
27688 may_aliases being a bitmap.
537bbabd 27689
48e540b0
DB
276902007-01-29 Daniel Berlin <dberlin@dberlin.org>
27691
27692 PR tree-optimization/30630
27693 * tree-ssa-structalias.c (do_complex_constraint): Mark correct
27694 variable as changed.
27695
abc67de1
SM
276962007-01-29 Simon Martin <simartin@users.sourceforge.net>
27697
27698 PR c++/28266
27699 * gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
27700 expanded only once even if an error occurs.
27701
098b68ad
BE
277022007-01-29 Ben Elliston <bje@au.ibm.com>
27703
27704 * gcov-io.h (__gcov_indirect_call_profiler): Declare.
27705 (__gcov_average_profiler): Likewise.
27706 (__gcov_ior_profiler): Likewise.
27707 (__gcov_merge_ior): Likewise.
27708
52ca6d35
JH
277092007-01-28 Jan Hubicka <jh@suse.cz>
27710
27711 * builtins.c (expand_builtin_memset): Fix typo in my last patch.
27712 * value-prof.c (stringop_block_profile): Likewise.
27713
079a182e
JH
277142007-01-28 Jan Hubicka <jh@suse.cz>
27715
7e08fa35
UB
27716 * expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall):
27717 Add variant handling histograms; add wrapper.
079a182e
JH
27718 (clear_storage_via_libcall): Export.
27719 (emit_block_move_hints): Break out from ...; add histograms.
27720 (emit_block_move): ... this one.
27721 (clear_storage_hints): Break out from ...; add histograms.
27722 (clear_storage): ... this one.
27723 (set_storage_via_memset): Handle histogram.
27724 * expr.h (emit_block_move_via_libcall, emit_block_move_hints): Declare.
27725 (clear_storage_hints, clear_storage_via_libcall): Declare.
27726 (set_storage_via_setmem): Update prototype.
27727 * doc/md.texi (movmem, setmem): Document new arguments.
27728
7e08fa35
UB
27729 * value-prof.c (dump_histogram_value, tree_find_values_to_profile):
27730 Add new histograms.
079a182e
JH
27731 (stringop_block_profile): New global function.
27732 (tree_stringops_values_to_profile): Profile block size and alignment.
27733 * value-prof.h (enum hist_type): add HIST_TYPE_AVERAGE and
27734 HIST_TYPE_IOR.
27735 (struct profile_hooks): Add gen_average_profiler and gen_ior_profiler.
27736 (stringop_block_profile): Declare.
27737 * builtins.c: Include value-prof.h.
27738 (expand_builtin_memcpy, expand_builtin_memset): Pass block profile.
27739 * gcov-ui.h (GCOV_COUNTER_NAMES): Add new counter.
27740 (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): New constants.
27741 (GCOV_COUNTERS, GCOV_LAST_VALUE_COUNTER): Update.
27742 * profile.c (instrument_values): Add new counters.
27743 * cfgexpand.c (expand_gimple_basic_block): Propagate histograms to
27744 calls.
27745 * tree-profile.c (tree_average_profiler_fn, tree_ior_profiler_fn): New.
27746 (tree_init_edge_profiler): Build new profilers.
27747 (tree_gen_average_profiler, tree_gen_ior_profiler): New.
27748 (pass_tree_profile): Add dump.
27749 (tree_profile_hooks): Update.
27750 * Makefile.in (LIBGCOV): Add new constants.
27751 * libgcov.c (__gcov_merge_ior, __gcov_average_profiler,
27752 __gcov_ior_profiler): New.
27753 * i386.md (movmem/setmem expanders): Add new optional arguments.
27754
b6bd3371
DE
277552007-01-28 David Edelsohn <edelsohn@gnu.org>
27756
27757 * doc/md.texi (Standard Pattern Names): Document blockage pattern.
27758
7f9bc51b
ZD
277592007-01-28 Zdenek Dvorak <dvorakz@suse.cz>
27760
27761 * tree-ssa-loop-unswitch.c: Include tree-inline.h.
27762 (tree_unswitch_single_loop): Pass eni_size_weights to
27763 tree_num_loop_insns.
27764 * tree-ssa-loop-manip.c: Include tree-inline.h.
27765 (can_unroll_loop_p): Pass eni_size_weights to
27766 tree_num_loop_insns.
27767 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
27768 Pass eni_size_weights to estimate_num_insns.
27769 * tree.h (init_inline_once): Export.
27770 * toplev.c (backend_init): Call init_inline_once.
27771 * cgraphunit.c (cgraph_process_new_functions,
27772 cgraph_analyze_function): Pass eni_inlining_weights to
27773 estimate_num_insns.
27774 * ipa-inline.c (compute_inline_parameters): Ditto.
27775 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Pass weights
27776 to estimate_num_insns.
27777 (try_unroll_loop_completely): Pass eni_size_weights to
27778 tree_num_loop_insns.
27779 * tree-eh.c (decide_copy_try_finally): Pass eni_size_weights
27780 ot estimate_num_insns.
27781 * tree-ssa-loop-prefetch.c: Include tree-inline.h.
27782 (loop_prefetch_arrays): Pass eni_time_weights to tree_num_loop_insns.
27783 * tree-inline.c (eni_inlining_weights, eni_size_weights,
27784 eni_time_weights): New variables.
27785 (init_inline_once): Initialize them.
27786 (struct eni_data): Mew.
27787 (estimate_num_insns_1, estimate_num_insns): Use weights.
27788 * tree-inline.h (struct eni_weights_d): New.
27789 (eni_inlining_weights, eni_size_weights, eni_time_weights): Declare.
27790 (estimate_num_insns): Declaration changed.
27791 * cfgloop.h (tree_num_loop_insns): Declaration changed.
27792 * Makefile.in (tree-ssa-loop-unswitch.o, tree-ssa-loop-prefetch.o,
27793 tree-ssa-loop-manip.o): Add TREE_INLINE_H dependency.
27794
b39c6706
ZD
277952007-01-28 Zdenek Dvorak <dvorakz@suse.cz>
27796
27797 * tree-data-ref.c (conflict_fn): Assert that the number of affine
27798 relations in the conflict function is valid.
27799
eeef0e45
ILT
278002007-01-27 Ian Lance Taylor <iant@google.com>
27801
27802 * common.opt: Add fstrict-overflow.
27803 * opts.c (decode_options): Set flag_strict_overflow if -O2.
27804 * flags.h (TYPE_OVERFLOW_WRAPS): Define.
27805 (TYPE_OVERFLOW_UNDEFINED): Define.
27806 (TYPE_OVERFLOW_TRAPS): Define. This replaces TYPE_TRAP_SIGNED.
27807 Replace all uses.
27808 * tree.h (TYPE_TRAP_SIGNED): Don't define.
27809 * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_UNDEFINED.
27810 (fold_negate_expr): Likewise.
27811 (make_range): Likewise.
27812 (extract_muldiv_1): Likewise.
27813 (maybe_canonicalize_comparison): Likewise.
27814 (fold_comparison): Likewise.
27815 (fold_binary): Likewise.
27816 (tree_expr_nonnegative_p): Likewise.
27817 (tree_expr_nonzero_p): Likewise.
27818 * tree-vrp.c (compare_values): Likewise.
27819 (extract_range_from_binary_expr): Likewise.
27820 (extract_range_from_unary_expr): Likewise.
27821 * tree-ssa-loop-niter.c (infer_loop_bounds_from_signedness):
27822 Likewise.
27823 (nowrap_type_p): Likewise.
27824 * tree-scalar-evolution.c (simple_iv): Likewise.
27825 * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_WRAPS.
27826 (build_range_check): Likewise.
27827 (extract_muldiv_1): Likewise.
27828 (fold_comparison): Likewise.
27829 * tree-vrp.c (vrp_int_const_binop): Likewise.
27830 (extract_range_from_unary_expr): Likewise.
27831 * convert.c (convert_to_integer): Likewise.
27832 * fold-const.c (fold_negate_expr): Use TYPE_OVERFLOW_TRAPS.
27833 (fold_comparison): Likewise.
27834 (fold_binary): Likewise.
27835 * optabs.c (optab_for_tree_code): Likewise.
27836 * tree-vectorizer.c (vect_is_simple_reduction): Likewise.
27837 * simplify-rtx.c (simplify_const_relational_operation): Check
27838 flag_strict_overflow and flag_trapv.
27839 (simplify_const_relational_operation): Likewise.
27840 * doc/invoke.texi (Option Summary): Mention -fstrict-overflow.
27841 (Optimize Options): Add -fstrict-overflow to -O2 list. Document
27842 -fstrict-overflow.
27843
b73a6056
RS
278442007-01-27 Roger Sayle <roger@eyesopen.com>
27845
27846 * tree.c (tree_fold_gcd): Delete.
27847 * tree.h (tree_fold_gcd): Remove prototype.
27848 * tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to
27849 test whether one constant integer is a multiple of another. Instead
27850 call int_const_binop with TRUNC_MOD_EXPR and test for a zero result.
6ef5231b 27851 * fold-const.c (multiple_of_p): We've determined both TOP and
b73a6056
RS
27852 BOTTOM are integer constants so we can call int_const_binop directly
27853 instead of the more generic const_binop.
27854
74890d7b
RS
278552007-01-27 Roger Sayle <roger@eyesopen.com>
27856
27857 * fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
27858 1*X check that the constant hasn't overflowed, to preserve the
27859 TREE_OVERFLOW bit.
27860 (round_up): Provide an efficient implementation when rouding-up an
27861 INTEGER_CST to a power-of-two.
27862
2a01aae6
RW
278632007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27864
27865 * doc/sourcebuild.texi: Add comma for clarity.
27866 * doc/extend.texi: Fix some typos.
27867 * doc/passes.texi: Likewise.
27868 * doc/cppinternals.texi: Likewise.
27869 * doc/c-tree.texi: Likewise.
27870 * doc/tree-ssa.texi: Likewise.
b9363338 27871 * doc/install.texi: Likewise.
2a01aae6 27872
7fbb9a49
JH
278732007-01-27 Jan Hubicka <jh@suse.cz>
27874
27875 * tree-sra.c (sra_walk_function): Don't rely on aliases being build.
27876 (pass_sra): Do not require alias information.
27877 * passes.c (init_optimization_passes): Add SRA
27878
9eab6785
SB
278792007-01-27 Steven Bosscher <steven@gcc.gnu.org>
27880
27881 * tracer.c (rest_of_handle_tracer): We already cleaned
27882 up the CFG in tracer() so don't do it here again.
27883 * cfgcleanup.c (rest_of_handle_jump2): Don't repeat
27884 cleanup_cfg here, either. And don't call renumber_insns.
27885
27886 * cfgrtl.c (rtl_verify_flow_info_1): Don't verify that BB_END
27887 and BB_HEAD are in the insn stream here. Instead make sure
27888 that BB_INSN is valid on all insns. Also, do check here that
27889 there are no pending branch predictions...
27890 (rtl_verify_flow_info): ...instead of doing it here. Checks
27891 for BB_END and BB_HEAD moved from rtl_verify_flow_info_1 to
27892 here.
27893
ffa1b3c6
RS
278942007-01-26 Roger Sayle <roger@eyesopen.com>
27895
27896 * config/i386/i386.c (ix86_swap_binary_operands_p): New helper
27897 function to simplify/factorize operand order canonicalization.
27898 (ix86_fixup_binary_operands): Reorganize using the above function.
27899 (ix86_binary_operator_ok): Likewise.
27900
e2e30236
JJ
279012007-01-27 Jakub Jelinek <jakub@redhat.com>
27902
27903 * genattrtab.c (struct attr_value_list, insn_code_values): Move to
27904 file scope from optimize_attrs.
27905 (simplify_test_exp): If insn_code_values is not NULL, use it to speed
27906 up search.
27907 (optimize_attrs): Clear insn_code_values after freeing it.
27908
cdd76d88
ZD
279092007-01-26 Zdenek Dvorak <dvorakz@suse.cz>
27910
27911 * tree-ssa-address.c (create_mem_ref): Remove ", bsi" from
27912 a parts.base assignment.
27913
d93817c4
ZD
279142007-01-26 Zdenek Dvorak <dvorakz@suse.cz>
27915
27916 * tree-data-ref.c (dump_subscript): Use dump_conflict_function.
27917 (compute_subscript_distance, initialize_data_dependence_relation,
27918 finalize_ddr_dependent, analyze_ziv_subscript,
27919 analyze_siv_subscript_cst_affine,
27920 compute_overlap_steps_for_affine_univar,
27921 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
27922 analyze_siv_subscript, analyze_miv_subscript,
27923 analyze_overlapping_iterations, subscript_dependence_tester_1,
27924 compute_self_dependence, free_dependence_relation): Work
27925 with affine_fn instead of chrecs.
27926 (dump_affine_function, dump_conflict_function, affine_function_equal_p,
27927 common_affine_function, affine_function_base,
27928 affine_function_constant_p, affine_fn_op, affine_fn_plus,
27929 affine_fn_minus, affine_fn_free, conflict_fn_not_known,
27930 conflict_fn_no_dependence, free_conflict_function, free_subscripts,
27931 conflict_fn, affine_fn_cst, affine_fn_univar): New functions.
27932 (all_chrecs_equal_p): Removed.
27933 * tree-data-ref.h (affine_fn, conflict_function): New types.
27934 (struct subscript): Change type of conflicting_iterations_in_a
27935 and conflicting_iterations_in_b.
27936
dfcb2b51
SE
279372007-01-26 Steve Ellcey <sje@cup.hp.com>
27938
27939 PR other/30182
27940 * config/pa/pa.h (TARGET_HPUX_11): New.
27941 * config/pa/pa-hpux11.h (TARGET_HPUX_11): New.
27942 * config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11.
27943
d3c36974
DB
279442007-01-26 Daniel Berlin <dberlin@dberlin.org>
27945 Richard Guenther <rguenther@suse.de>
27946
27947 * tree-ssa-structalias.c (solve_graph): Handle case
27948 we merged the variable to another.
27949
4b26d10b
KG
279502007-01-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27951
27952 * builtins.c (fold_builtin_1): Treat ccos and ccosh as 'even'
27953 functions.
27954
27955 * fold-const.c (negate_mathfn_p): Treat casin, casinh, catan,
27956 catanh, cproj, csin, csinh, ctan and ctanh as 'odd' functions.
27957
21f14ff9
DD
279582007-01-25 DJ Delorie <dj@redhat.com>
27959
db9c8397
DD
27960 * config/m32c/m32c.c (m32c_cannot_change_mode_class): We don't
27961 allow changes to modes which don't fit in those registers.
27962
21f14ff9
DD
27963 * reload1.c (choose_reload_regs): Check for invalid subregs before
27964 computing their locations, not after.
27965
22fa69da
GK
279662007-01-25 Geoffrey Keating <geoffk@apple.com>
27967
27968 PR 25127
27969 * config/rs6000/rs6000.c (first_altivec_reg_to_save): On Darwin,
27970 save Altivec registers in an eh_return function.
27971 (compute_vrsave_mask): Likewise.
27972 (rs6000_stack_info): Correct AIX/Darwin stack alignment computation
27973 for saving Altivec registers.
27974 (rs6000_emit_prologue): Don't allocate stack twice in
27975 eh_return function. Correct expected value of altivec_save_offset
27976 when using save_world. Describe save of R0 to stack when using
27977 save_world. Describe stack pointer adjustment when using
27978 save_world. Remove duplicated eh_return parameter register saving.
27979 Update sp_offset variable after save_world.
27980 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA): Remove
27981 darwin-world.asm.
27982 (LIB2FUNCS_EXTRA): Add darwin-world.asm.
27983 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): -m64
27984 implies Altivec.
27985
79e8b6c0
SE
279862007-01-25 Steve Ellcey <sje@cup.hp.com>
27987
27988 * config.gcc (ia64*-*-hpux*): Make posix threads the default.
27989
7d522000
SE
279902007-01-25 Steve Ellcey <sje@cup.hp.com>
27991
27992 PR other/30182
27993 * config/pa/pa.c (pa_init_builtins): Set asm names for finite routines.
6ef5231b 27994 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
7d522000 27995
16c1c158
RG
279962007-01-25 Richard Guenther <rguenther@suse.de>
27997
27998 * doc/invoke.texi (-Wcoverage-mismatch): Document.
27999 * common.opt (-Wcoverage-mismatch): New warning option.
28000 * coverage.c (get_coverage_counts): Ignore coverage mismatch
28001 if -Wcoverage-mismatch is given.
28002
b9c369e6
RL
280032007-01-25 Razya Ladelsky <razya@il.ibm.com>
28004
537bbabd
EC
28005 * ipa-cp.c (ipcp_insert_stage, ipcp_driver): Support for SSA.
28006 (ipcp_driver): Change to static definition.
22fa69da
GK
28007 Add dumping of the ifunctions.
28008 (constant_val_insert): Remove unused parameter. Support for SSA.
28009 (ipcp_propagate_const): Support for SSA.
28010 (ipcp_profile_bb_print): Print only analyzed nodes.
537bbabd 28011 (ipcp_replace_map_create): Remove support for Fortran constant
22fa69da 28012 for now.
537bbabd 28013 * ipa-prop.c (ipa_method_modify_stmt,
22fa69da
GK
28014 ipa_callsite_compute_param): Support for SSA.
28015 * ipa-prop.h (ipcp_driver): Remove declaration.
28016 (IS_VALID_TREE_MAP_INDEX): Add define.
28017
9dc5c4f5
GK
280182007-01-24 Geoffrey Keating <geoffk@apple.com>
28019
28020 * unwind-dw2.c (execute_stack_op): Handle DW_OP_swap.
28021
01ffa370
KG
280222007-01-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28023
28024 PR middle-end/30447
28025 * builtins.c (fold_builtin_cabs): Use MPFR to evaluate a
28026 constant argument to cabs and do it without checking for
28027 -funsafe-math-optimizations.
28028
e1f1ee86
DG
280292007-01-24 Douglas Gregor <dgregor@osl.iu.edu>
28030
28031 * c-common.h (RID_FIRST_CXX0X): New.
28032 (RID_LAST_CXX0X): New.
28033 * c-opts.c (c_common_handle_option): -Wc++0x-compat is triggered
28034 by -Wall.
28035 * c.opt (Wc++0x-compat): New.
28036 * doc/invoke.texi (-Wc++0x-compat): Document.
28037
527cab20
KG
280382007-01-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28039
28040 * builtins.c (fold_builtin_carg): New.
28041 (fold_builtin_1): Use it.
28042
b7c27d51
JH
280432007-01-24 Jan Hubicka <jh@suse.cz>
28044
ee411336
JH
28045 * ipa-inline.c (cgraph_decide_inlining): Initialize initial_insns.
28046
b7c27d51
JH
28047 * ipa-inline.c (initial_insns, max_insns): Delete.
28048 (compute_max_insns): New function.
7e08fa35
UB
28049 (cgraph_decide_inlining_of_small_function): Use it; take minimal
28050 amount of insns as base for code growth.
b7c27d51
JH
28051 (cgraph_decide_inlining): Make initial_insns local; do not compute
28052 max_insns.
28053 * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 60.
28054 * doc/invoke.texi (inline-unit-growth): Update docs.
28055
3d55c64b
JJ
280562007-01-24 Jakub Jelinek <jakub@redhat.com>
28057
15a26abf
JJ
28058 * config/i386/i386.h (x86_cmpxchg16b): Remove const.
28059 (TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
28060 * config/i386/i386.c (x86_cmpxchg16b): Remove const.
28061 (override_options): Add PTA_CX16 flag. Set x86_cmpxchg16b
28062 for CPUs that have PTA_CX16 set.
28063
07b7aade
JJ
28064 PR middle-end/27416
28065 * gimplify.c (omp_check_private): New function.
28066 (gimplify_scan_omp_clauses): Use it for
28067 firstprivate/lastprivate/reduction.
28068
4288fea2
JJ
28069 PR middle-end/30494
28070 * gimplify.c (omp_add_variable): Don't call omp_notice_variable
28071 on TYPE_SIZE_UNIT for GOVD_LOCAL VLAs.
28072
3d55c64b
JJ
28073 PR middle-end/30421
28074 * omp-low.c (lower_omp_for_lastprivate): Add dlist argument.
28075 If lower_lastprivate_clauses emits some statements, append them
28076 to dlist rather than body_p and to body_p append an initializer.
28077 (lower_omp_for): Adjust caller.
28078
3b313c78
SE
280792007-01-24 Steve Ellcey <sje@cup.hp.com>
28080
28081 * target.h (globalize_decl_name): New.
28082 * target-def.h (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
28083 * output.h (default_globalize_decl_name): New.
28084 * varasm.c (asm_output_bss): Use globalize_decl_name instead of
28085 globalize_label.
3de8da2a 28086 (globalize_decl): Ditto.
3b313c78
SE
28087 (default_globalize_decl_name): New.
28088 * config/ia64/ia64.c (ia64_globalize_decl_name): New.
28089 (ia64_handle_version_id_attribute): New.
28090 (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
28091 (ia64_asm_output_external): Use globalize_decl_name instead
28092 of globalize_label.
28093 * doc/extend.texi (version_id): New pragma.
28094 * doc/tm.texi (ARGET_ASM_GLOBALIZE_DECL_NAME): New target hook.
28095
f767122b
AK
280962007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
28097
537bbabd 28098 * unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with
f767122b 28099 _uleb128_t and _Unwind_SWord with _sleb128_t.
7e08fa35
UB
28100 * unwind-dw2.c (extract_cie_info, execute_stack_op,
28101 execute_cfa_program, uw_frame_state_for, uw_update_context_1):
28102 Likewise.
f767122b
AK
28103 * unwind-c.c (parse_lsda_header, PERSONALITY_FUNCTION): Likewise.
28104 * unwind-pe.h (read_uleb128, read_sleb128,
28105 read_encoded_value_with_base): Likewise.
28106 * unwind-generic.h: Define _sleb128_t and _uleb128_t types.
28107
9d972b2d
RG
281082007-01-24 Richard Guenther <rguenther@suse.de>
28109
28110 * builtins.c (expand_builtin_cexpi): Get the fndecl
28111 for cexp in the correct way.
28112
cf227303
JH
281132007-01-24 Jan Hubicka <jh@suse.cz>
28114
7e08fa35
UB
28115 * tree-ssa-dce.c (eliminate_unnecesary_stmts): Remove dead LHS
28116 of calls.
cf227303 28117
024a85ae
AK
281182007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
28119
28120 * c-cppbuiltin.c (builtin_define_type_sizeof): New function.
28121 (c_cpp_builtins): New builtin macros: __SIZEOF_INT__, __SIZEOF_LONG__,
28122 __SIZEOF_LONG_LONG__, __SIZEOF_SHORT__, __SIZEOF_POINTER__,
28123 __SIZEOF_FLOAT__, __SIZEOF_DOUBLE__, __SIZEOF_LONG_DOUBLE__,
28124 __SIZEOF_SIZE_T__, __SIZEOF_WCHAR_T__, __SIZEOF_WINT_T__ and
28125 __SIZEOF_PTRDIFF_T__.
28126 * doc/cpp.texi: Documentation for the new builtin macros added.
28127
9db27449
UB
281282007-01-24 Uros Bizjak <ubizjak@gmail.com>
28129
28130 * config/i386/i386.md (tanxf2, tan<mode>2, atan<mode>2, log<mode>2,
28131 log10<mode>2, log2<mode>2, expxf2, exp10xf2, exp2xf2): Use op2
28132 instead of operands[2] to avoid access past the end of array.
28133
92d54592
RS
281342007-01-24 Richard Sandiford <richard@codesourcery.com>
28135
28136 * reload1.c (emit_reload_insns): Pass the reload register
28137 for a non-spill output reload through forget_old_reloads_1.
28138
17caeff2
JM
281392007-01-23 Joseph Myers <joseph@codesourcery.com>
28140
28141 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
28142 _SOFT_DOUBLE if doubles use software floating-point.
28143 * config/rs6000/libgcc-ppc-glibc.ver: Export additional long
28144 double functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
28145 * config/rs6000/darwin-ldouble.c: Also compile functions for
28146 hard-float without FPRs. Use fmsub function for all __NO_FPRS__
28147 cases. Compile extra functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
28148 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove
28149 commented-out long double override.
28150 (CPP_LONGDOUBLE_DEFAULT_SPEC): Likewise.
28151 * config/rs6000/eabispe.h: Likewise.
28152 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
28153 long double for non-SPE.
28154 (rs6000_handle_option): Likewise.
28155 (invalid_e500_subreg): Disallow more subregs involding DImode,
28156 DFmode, TImode or TFmode.
28157 (rs6000_legitimate_offset_address_p): Check TFmode offsets for
28158 E500 double.
28159 (legitimate_lo_sum_address_p): Also check for TFmode for E500
28160 double.
28161 (rs6000_legitimize_address): Also handle TFmode for E500 double.
28162 (rs6000_legitimize_reload_address): Also handle TFmode for E500
28163 double.
28164 (rs6000_legitimate_address): Also check for TFmode for E500
28165 double.
28166 (rs6000_emit_move): Use DFmode subregs of TFmode for E500 double.
28167 (spe_build_register_parallel): Handle TFmode and TCmode.
28168 (rs6000_spe_function_arg): Handle TFmode and TCmode for E500
28169 double.
28170 (function_arg): Handle TFmode and TCmode for E500 double.
28171 (rs6000_init_libfuncs): Initialize extra libfuncs for soft double
28172 in general.
28173 (print_operand): Handle TFmode and TImode for %y.
28174 (rs6000_generate_compare): Handle TFmode comparisons for E500
28175 double.
28176 (spe_func_has_64bit_regs_p): Check for TFmode for E500 double.
28177 (rs6000_function_value): Handle TFmode and TCmode for E500 double.
28178 (rs6000_libcall_value): Handle TFmode and TCmode for E500 double.
28179 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Check for
28180 TFmode for E500 double.
28181 * config/rs6000/rs6000.md (FP): Allow TF for E500 double.
28182 (floatsidf2): Enable for E500 double.
28183 (movtf_softfloat): Use rs6000_nonimmediate_operand.
28184 (extenddftf2): Change to extenddftf2_fprs.
28185 (extenddftf2): Call gen_spe_extenddftf2 or gen_extenddftf2_fprs
28186 depending on TARGET_E500_DOUBLE.
28187 (extendsftf2): Enable for E500 double.
28188 (trunctfdf2): Enable for E500 double.
28189 (trunctfsf2): Change to trunctfsf2_fprs.
28190 (trunctfsf2): Call gen_spe_trunctfsf2 or gen_trunctfsf2_fprs
28191 depending on TARGET_E500_DOUBLE.
28192 (floatsitf2): Enable for E500 double.
28193 (fix_trunctfsi2): Change to fix_trunctfsi2_fprs.
28194 (fix_trunctfsi2): Call gen_spe_fix_trunctfsi2 or
28195 gen_fix_trunctfsi2_fprs depending on TARGET_E500_DOUBLE.
28196 (negtf2): Change to negtf2_internal.
28197 (negtf2): New expander.
28198 (abstf2): Enable for E500 double. Call gen_spe_abstf2_tst,
28199 gen_spe_abstf2_cmp or gen_abstf2_internal depending on
28200 TARGET_E500_DOUBLE and flag_unsafe_math_optimizations.
28201 (movdi_internal32): Use rs6000_nonimmediate_operand.
28202 (unnamed splitter): Likewise.
28203 * config/rs6000/spe.md (CMPTFEQ_GPR, TSTTFEQ_GPR, CMPTFGT_GPR,
28204 TSTTFGT_GPR, CMPTFLT_GPR, TSTTFLT_GPR): New unspecs.
28205 (SPE64TF, DITI): New mode macros.
28206 (frob_df_di): Change to frob_<SPE64:mode>_<DITI:mode>; allow more
28207 modes.
28208 (frob_tf_ti): New.
28209 (frob_<mode>_di_2): New.
28210 (frob_tf_di_8_2): New.
28211 (frob_di_df): Change to frob_di_<mode>; allow more modes.
28212 (frob_ti_tf): New.
28213 (frob_di_df_2): Change to frob_<DITI:mode>_<SPE64:mode>_2; allow
28214 more modes.
28215 (frob_ti_<mode>_8_2): New.
28216 (frob_ti_tf_2): New.
28217 (mov_si<mode>_e500_subreg0, mov_si<mode>_e500_subreg0_2,
28218 mov_si<mode>_e500_subreg4, mov_si<mode>_e500_subreg4_2): Allow
28219 TFmode.
28220 (mov_sitf_e500_subreg8, mov_sitf_e500_subreg8_2,
28221 mov_sitf_e500_subreg12, mov_sitf_e500_subreg12_2): New.
28222 (spe_trunctfdf2_internal1, spe_trunctfsf2, spe_extenddftf2,
28223 spe_fix_trunctfsi2, spe_fix_trunctfsi2_internal,
28224 spe_negtf2_internal, spe_abstf2_cmp, spe_abstf2_tst): New.
28225 (cmptfeq_gpr, tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr,
28226 tsttflt_gp): New.
28227
d5dc6bad
ILT
282282007-01-23 Ian Lance Taylor <iant@google.com>
28229
28230 * Makefile.in (OBJS-common): Reformat, alphabetize, but put
28231 insn-*.o first.
28232 (OBJS-archive): Reformat, alphabetize.
28233 (OBJS): Change out_object_file to OBJS-md.
28234
7656aee4
UB
282352007-01-23 Uros Bizjak <ubizjak@gmail.com>
28236
28237 * config/i386/i386.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
28238 JUMP_P and CALL_P predicates where applicable.
28239 * config/i386/i386.c: Ditto.
28240 * config/i386/i386.md: Ditto.
28241 * config/i386/mmx.md: Ditto.
28242 * config/i386/predicates.md: Ditto.
28243
c8832aae
AS
282442007-01-22 Andreas Schwab <schwab@suse.de>
28245
28246 * config/m68k/m68k.h: Fix comment.
28247
6ffa0491
JH
282482007-01-22 Jan Hubicka <jh@suse.cz>
28249
28250 * passes.c (init_optimization_passes): Do not rerun
28251 pass_early_warn_uninitialized.
28252
2f397a93
RG
282532007-01-22 Richard Guenther <rguenther@suse.de>
28254
28255 PR tree-optimization/30038
28256 * tree-ssa-math-opts.c (maybe_record_sincos): New static helper
28257 function.
28258 (execute_cse_sincos_1): Likewise.
28259 (execute_cse_sincos): Likewise.
28260 (gate_cse_sincos): Likewise.
28261 (pass_cse_sincos): New pass CSEing sin() and cos() calls using
28262 the cexpi() canonicalization of sincos().
28263 * tree-pass.h (pass_cse_sincos): Declare.
28264 * passes.c (init_optimization_passes): New pass pas_cse_sincos.
28265
64c91930
EB
282662007-01-21 Eric Botcazou <ebotcazou@libertysurf.fr>
28267
28268 PR rtl-optimization/29329
28269 * combine.c (replaced_rhs_insn): Rename to i2mod.
28270 (replaced_rhs_value): Rename to i2mod_new_rhs.
28271 (i2mod_old_rhs): New global variable.
28272 (combine_instructions): Adjust for above change. Save a copy of
28273 the old RHS into i2mod_old_rhs when the contents of a REG_EQUAL
28274 note are substituted in the second instruction.
28275 (distribute_notes) <REG_DEAD>: Adjust for above change. Do not
28276 ditch the note if it pertains to the second eliminated register
28277 and this register is mentioned in i2mod_old_rhs.
28278
28279 Revert:
28280 2006-09-12 Eric Botcazou <ebotcazou@libertysurf.fr>
28281
28282 * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
28283 the insn to which the note was originally attached.
28284
7fa49e7b
JH
282852007-01-21 Jan Hubicka <jh@suse.cz>
28286
28287 * ipa-inline.c (inlining_mode): Comment, move up.
7656aee4
UB
28288 (cgraph_decide_inlining_incrementally): Do not perform inlining
28289 itself; fix handling of flattening of self recursive functions.
7fa49e7b
JH
28290 (cgraph_find_cycles): Remove.
28291 (cgraph_flatten_node): Remove.
28292 (cgraph_decide_inlining): Use incremental inliner to handle flattening.
28293 (try_inline): New function.
6ffa0491
JH
28294 (cgraph_early_inlining): Update call of
28295 cgraph_decide_inlining_incrementally. Apply inlining here.
7fa49e7b
JH
28296 (apply_inline): Update call of cgraph_decide_inlining_incrementally.
28297
1eb7b049
DM
282982007-01-21 Dirk Mueller <dmueller@suse.de>
28299
28300 PR bootstrap/30511
28301 * tree-vrp.c (check_array_bounds): do not warn
28302 about ADDR_EXPR's of ARRAY_REF's which are immediately
28303 used in binary expressions.
28304
6004caaf
IR
283052007-01-21 Ira Rosen <irar@il.ibm.com>
28306
537bbabd 28307 * tree-vectorizer.h (struct _stmt_vec_info): Add new field
6004caaf
IR
28308 read_write_dep and macros for its access.
28309 * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
537bbabd 28310 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Remove
6004caaf
IR
28311 argument, call vect_check_interleaving for every independent pair of
28312 data-refs. Mark loads that access the same memory location as a store
28313 in the loop.
28314 (vect_check_dependences): Remove.
537bbabd 28315 (vect_analyze_data_ref_dependences): Remove vect_check_dependences
6004caaf 28316 call, fix the call to vect_analyze_data_ref_dependence.
537bbabd 28317 (vect_analyze_data_ref_access): For statements that access the same
6004caaf
IR
28318 data-ref, check that they are not stores; for loads, check that there
28319 is no store that access the same location.
28320
78681dbd
RS
283212007-01-20 Roger Sayle <roger@eyesopen.com>
28322 Joseph Myers <joseph@codesourcery.com>
28323
28324 * doc/invoke.texi (-fdump-rtl-combine): Fix under/overfull hbox.
28325 (-fdump-rtl-stack): Likewise.
28326 (-fno-signed-zeros): Use @minus{} for a minus sign. Correct typo.
28327 (-mcheck-zero-division, -mcpu): Fix under/overfull hbox.
28328 (-mpt-fixed): Use @minus{} for minus sign.
28329 (Using Precompiled Headers): Fix under/overfull hbox.
28330
d48a05c3
JH
283312007-01-20 Jan Hubicka <jh@suse.cz>
28332
28333 * tree-flow.h (struct stmt_ann_d): Move references_memory to proper
28334 place within annotation.
28335
4c6d8726
JDA
283362007-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28337
28338 * pa.c (output_move_double): Change array size of xoperands to 4.
28339
bbba68dd
JH
283402007-01-20 Jan Hubicka <jh@suse.cz>
28341
28342 * tree-tailcall.c (adjust_return_value): Do not use RESULT_DECL
28343 as temporary.
28344
e4c9f3c2
ILT
283452007-01-19 Ian Lance Taylor <iant@google.com>
28346
28347 * expmed.c (expand_divmod) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]: Cast
28348 constant to unsigned HOST_WIDE_INT before negating.
28349
b2bcf557
ILT
283502007-01-19 Ian Lance Taylor <iant@google.com>
28351
28352 * tree-ssa-operands.h (struct vuse_vec_d): Change num_vuse field
28353 to unsigned.
28354 (VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Use unsigned comparison.
28355 (VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
28356 (SET_VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Likewise.
28357 (SET_VUSE_ELEMENT_VAR) [ENABLE_CHECKING]: Likewise.
28358 (SET_VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
28359 (realloc_vdef, realloc_vuse): Change second parameter to
28360 unsigned.
28361 (ssa_operand_iterator_d): Change vuse_index and mayuse_index
28362 fields to unsigned.
28363 * tree-ssa-operands.c (realloc_vop): Change num_elem parameter to
28364 unsigned. Change x and lim locals to unsigned.
28365 (realloc_vdef, realloc_vuse): Change num_elem parameter to
28366 unsigned.
28367 (finalize_ssa_vuse_ops): Change old_i local to unsigned.
28368 (copy_virtual_operands): Change i and n locals to unsigned.
28369
92d96628
KG
283702007-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28371
28372 PR middle-end/29335
28373 * builtins.c (fold_builtin_1): Handle builtin fdim.
28374
c9fa8bd4
JH
283752007-01-20 Jan Hubicka <jh@suse.cz>
28376
3de8da2a
UB
28377 * tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
28378 * tree-ssa-structalias.c (compute_points_to_sets): Do call
28379 init_alias_heapvars.
28380 (init_alias_heapvars): Initialize only when not already initialized.
28381 (delete_alias_heapvars): Set heapvar_for_stmt to NULL.
c9fa8bd4 28382
db02da79
RS
283832007-01-19 Roger Sayle <roger@eyesopen.com>
28384
28385 * common.opt (fsigned-zeros): New command line option.
28386 * flags.h (HONOR_SIGNED_ZEROS): Control via flag_signed_zeros instead
28387 of flag_unsafe_math_optimizations.
28388 * opts.c (set_fast_math_flags): The -ffast-math command line option
28389 implies -fno-signed-zeros.
28390 (fast_math_flags_set_p): Likewise.
28391
28392 * doc/invoke.texi: Document new -fno-signed-zeros option, and update
28393 the documentation of -ffast-math appropriately. Wrap long lines.
28394
67e47f30
SE
283952007-01-19 Steve Ellcey <sje@cup.hp.com>
28396
28397 * system.h (ASM_MAKE_LABEL_LINKONCE): Poison.
28398 * varasm.c (globalize_decl): Remove ASM_MAKE_LABEL_LINKONCE ifdef.
28399
6bad2617
TB
284002007-01-19 Tomas Bily <tbily@suse.cz>
28401
3de8da2a
UB
28402 * cgraphunit.c (cgraph_finalize_function): Updating of pid
28403 * tree-profile.c:
28404 (tree_init_ic_make_global_vars): New function
28405 (tree_init_edge_profiler): call of tree_init_ic_make_global_vars
28406 (tree_gen_ic_profiler): New function
28407 (tree_gen_ic_func_profiler): New function
28408 (tree_profiling): Added calling of tree_gen_ic_func_profiler
28409 (tree_profile_hooks): Added hook for indirec/virtual calls
28410 * value-prof.c (tree_find_values_to_profile): New case for
28411 indirect calls
28412 (tree_values_to_profile): Call for determining indirect/virtual
28413 counters
28414 (tree_indirect_call_to_profile): New function
28415 (tree_ic_transform): New function
28416 (tree_ic): New function
28417 (find_func_by_pid): New function
28418 (init_pid_map): New function
28419 (tree_value_profile_transformations): Added check for
28420 indirect/virtual call transformation
28421 * value-prof.h (enum hist_type): New counter type for
28422 indirect/virtual calls
28423 (profile_hooks): Added new hook for profiling indirect/virtual
28424 calls
28425 * profile.c (instrument_values): New case for indirect/virtual
28426 call added
28427 * gcov-io.h (GCOV_LAST_VALUE_COUNTER): Changed to 6
28428 (GCOV_COUNTER_V_INDIR): New counter type
28429 (GCOV_COUNTER_NAMES): New name of counter "indirect" added
28430 (GCOV_MERGE_FUNCTIONS): New merge function for indirect/virtual
28431 call added
28432 * cgraph.c: Definition of cgraph_max_pid
28433 (cgraph_create_node): Default init of pid attribute
28434 * cgraph.h: Declaration of cgraph_max_pid
28435 (struct cgraph_node): Added pid attribute
28436 * libgcov.c (__gcov_indirect_call_profiler): New function
6bad2617
TB
28437 (__gcov_one_value_profiler_body): New function
28438 (__gcov_one_value_profiler): Body was moved to
28439 __gcov_one_value_profiler_body and calls it
28440
b7c75af4 284412007-01-19 Basile Starynkevitch <basile@starynkevitch.net>
537bbabd 28442
b153d3e1 28443 * doc/gty.texi (Options): Document the mark_hook option to GTY.
3de8da2a
UB
28444 * gengtype.c (write_types_data, write_func_for_structure,
28445 write_types, ggc_wtd, pch_wtd): Add skip_hooks to
28446 write_types_data, ggc_wtd, pch_wtd for processing mark_hook.
28447 (walk_type, write_func_for_structure): Generate the mark_hook if
28448 needed.
b7c75af4 28449
c3056c2d
JH
284502007-01-19 Jan Hubicka <jh@suse.cz>
28451
6ffa0491
JH
28452 * ipa-inline.c (cgraph_decide_inlining_incrementally): Instead of
28453 'early' argument take inlining mode argument specifying whether to
28454 inline for size/speeed or all functions; add support for flattening;
28455 improve dumpting.
c3056c2d
JH
28456 (cgraph_early_inlining): Update call of decide_inlining_incrementally.
28457
e65fff3c
MLI
284582007-01-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
28459
28460 PR c++/17947
28461 * toplev.c (warn_deprecated_use): Use %qD instead of %qs to print
28462 the name of the declared identifier.
537bbabd 28463
b0fede98
DM
284642007-01-19 Dirk Mueller <dmueller@suse.de>
28465
28466 * config/i386.h (CONDITIONAL_REGISTER_USAGE): Store
28467 result of PIC_OFFSET_TABLE_REGNUM in temporary variable to avoid
28468 duplicate evaluation.
28469
e2fc57a3
UB
284702007-01-19 Uros Bizjak <ubizjak@gmail.com>
28471
28472 * config/i386/i386.md (acos<mode>2): Rename from acossf2 and acosdf2.
28473 Macroize expander using X87MODEF12 mode macro. Extend operand 1
28474 to XFMode, use acosxf2 and truncate result to requested mode.
28475 Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
28476 (asin<mode>2): Similarly, with asin expanders.
28477 (*fscalexf4_i387): Rename from *fscalexf4.
28478 (expNcorexf3): New expander.
28479 (expxf2, exp10xf2, exp2xf2): Use expNcorexf3 expander.
28480 (exp<mode>2): Rename from expsf2 and expdf2. Macroize expander using
28481 X87MODEF12 mode macro. Extend operand 1 to XFMode, use expxf2 and
28482 truncate result to requested mode. Use SSE_FLOAT_MODE_P to disable
28483 patterns for SSE math.
28484 (exp10<mode>2): Similarly, with exp10 expanders.
28485 (exp2<mode>2): Similarly, with exp2 expanders.
28486 (expm1<mode>2): Similarly, with expm1 expanders.
28487 (ldexp<mode>3): Similarly, with ldexp expanders.
28488 (log<mode>2, log10<mode>2, log2<mode>2, log1p<mode>2, logb<mode>2):
28489 Use gen_truncxf<mode>2_i387_noop to truncate result.
28490
aaacff32
RS
284912007-01-19 Richard Sandiford <richard@codesourcery.com>
28492
28493 * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32
28494 for ColdFire targets.
28495
835b4008
NS
284962007-01-19 Nathan Sidwell <nathan@codesourcery.com>
28497 Richard Sandiford <richard@codesourcery.com>
28498
28499 * config/m68k/m68k.h (M68K_STATIC_CHAIN_REG_NAME): New macro.
28500 (INITIALIZE_TRAMPOLINE): Use STATIC_CHAIN_REGNUM.
28501 (__transfer_from_trampoline): Use M68K_STATIC_CHAIN_REG_NAME.
28502 * config/m68k/m68kelf.h (STATIC_CHAIN_REGNUM): Override.
28503 (M68K_STATIC_CHAIN_REG_NAME): Likewise.
28504 * config/m68k/netbsd-elf.h (M68K_STATIC_CHAIN_REG_NAME): Likewise.
28505
b6d2f42e
RS
285062007-01-19 Richard Sandiford <richard@codesourcery.com>
28507
28508 * config/m68k/m68k.md (adddi_dilshr32): Rename to...
28509 (*adddi_dilshr32): ...this. Fix formatting. Remove commented-out
28510 non-canonical pattern. Restrict to !TARGET_COLDFIRE.
28511 (*adddi_dilshr32_cf): New pattern.
28512 (adddi3, subdi3): Remove first alternatives.
28513
f6ab62e8
RS
285142007-01-19 Richard Sandiford <richard@codesourcery.com>
28515
28516 * config/m68k/m68k.c (notice_update_cc): If an SFmode move is
28517 implemented using move.l, do not use its cc result for floating-point
28518 comparisons.
28519
fe0cc776
RS
285202007-01-19 Richard Sandiford <richard@codesourcery.com>
28521
28522 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Stop the 'T' constraint
28523 from accepting 's' constraints if flag_pic.
28524
379cd895
RS
285252007-01-19 Richard Sandiford <richard@codesourcery.com>
28526
28527 * config/m68k/m68k.md (bordered, bunordered, buneq, bunge, bungt)
28528 (bunle, bunlt, bltgt, bordered_rev, bunordered_rev, buneq_rev)
28529 (bunge_rev, bungt_rev, bunle_rev, bunlt_rev, bltgt_rev): Change
28530 condition from TARGET_68881 to TARGET_HARD_FLOAT.
28531
7a6525d6
SL
285322007-01-19 Sandra Loosemore <sandra@codesourcery.com>
28533
28534 * longlong.h (count_leading_zeros, COUNT_LEADING_ZEROS_0): Add
28535 ColdFire alternatives.
28536 * config/m68k/m68k.h (CLZ_DEFINED_VALUE_AT_ZERO): New macro.
6ef5231b 28537 * config/m68k/m68k.md (clzsi2): Define for ColdFire
7a6525d6
SL
28538 architectures that support ff1 instruction.
28539
f233b84c
RS
285402007-01-19 Richard Sandiford <richard@codesourcery.com>
28541 Julian Brown <julian@codesourcery.com>
28542
28543 * config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Add an 'R' case.
28544 * config/m68k/m68k.md (*movsi_cfv4): Fold into...
28545 (*movsi_cf): ...here. Remove unnecessary 'R' from 'Rg'.
28546 Add commentary.
28547
bda2a571
RS
285482007-01-19 Richard Sandiford <richard@codesourcery.com>
28549
28550 * config/m68k/m68k-protos.h (valid_mov3q_const): Take a HOST_WIDE_INT
28551 and return a bool.
28552 (output_move_const_into_data_reg, output_move_simode_const): Delete.
28553 * config/m68k/m68k.c (const_method, const_int_cost): Take a
28554 HOST_WIDE_INT instead of an rtx.
28555 (m68k_rtx_costs): Update call accordingly.
28556 (output_move_const_into_data_reg): Likewise. Fix formatting.
28557 (valid_mov3q_const): Take a HOST_WIDE_INT instead of an rtx.
28558 Return a bool.
28559 (output_move_simode_const): Update calls after above changes.
28560 Rework to use automatic variables and predicates like MEM_P.
28561 * config/m68k/m68k.md (pushexthisi_const): Update call to
28562 valid_mov3q_const.
28563
23e73993
DM
285642007-01-19 Dirk Mueller <dmueller@suse.de>
28565
28566 * tree-ssa-alias.c (perform_var_substitution): Fix typo
28567 in dump_flags test.
28568
b54c5497
RG
285692007-01-19 Richard Guenther <rguenther@suse.de>
28570
28571 * builtins.c (expand_builtin_cexpi): Fall back to expanding
28572 via cexp in case sincos is not available.
28573
006339cd
RG
285742007-01-19 Richard Guenther <rguenther@suse.de>
28575
28576 * doc/tm.texi (TARGET_HAS_SINCOS): Document new target macro.
28577 * defaults.h (TARGET_HAS_SINCOS): Default to off.
28578 * config/linux.h (TARGET_HAS_SINCOS): Set to on if we have glibc.
28579 * config/alpha/linux.h (TARGET_HAS_SINCOS): Likewise.
28580 * config/sparc/linux.h (TARGET_HAS_SINCOS): Likewise.
28581 * config/sparc/linux64.h (TARGET_HAS_SINCOS): Likewise.
28582 * config/rs6000/linux.h (TARGET_HAS_SINCOS): Likewise.
28583 * config/rs6000/linux64.h (TARGET_HAS_SINCOS): Likewise.
28584
8ef4f42c
UB
285852007-01-19 Uros Bizjak <ubizjak@gmail.com>
28586
28587 * config/i386/i386.md (*fpatanxf3_i387, fpatan_extend<mode>xf3_i387):
28588 New insn patterns.
28589 (atan2sf3_1, atan2df3_1, atan2xf3_1): Remove insn patterns.
28590 (atan2xf3): Directly generate RTL pattern.
28591 (atan2<mode>3): Rename from atan2sf3 and atan2df3 and macroize insn
28592 patterns using X87MODEF12 mode macro. Use fpatan_extend<mode>xf3_i387
28593 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
28594 disable patterns for SSE math.
28595 (atan<mode>2): Rename from atansf2 and atandf2 and macroize insn
28596 patterns using X87MODEF12 mode macro. Use fpatan_extend<mode>xf3_i387
28597 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
28598 disable patterns for SSE math.
28599
fe30b1f3
AO
286002007-01-19 Alexandre Oliva <aoliva@redhat.com>
28601
28602 * libgcc-std.ver: Fix typo in %inherit for GCC_4.3.0.
28603
f85242f0
RS
286042007-01-18 Roger Sayle <roger@eyesopen.com>
28605
28606 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Optimize away a
28607 VIEW_CONVERT_EXPR to the same type as it's operand.
28608
7fcc054b
DE
286092007-01-18 David Edelsohn <edelsohn@gnu.org>
28610
28611 * config/rs6000/darwin-ldouble.c: Only build _SOFT_FLOAT if
28612 configured for long double 128.
28613
d1123cde
MS
286142007-01-18 Mike Stump <mrs@apple.com>
28615
28616 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Fix build
28617 error.
28618
7874f14d
MM
286192007-01-18 Michael Meissner <michael.meissner@amd.com>
28620
28621 * i386.c (ix86_compute_frame_layout): Make fprintf's in #if 0 code
28622 type correct.
28623
4cdffd96
JH
286242007-01-18 Jan Hubicka <jh@suse.cz>
28625
28626 * tree-ssa-operands.c (vop_free_bucket_size): Never return value
28627 greater than NUM_VOP_FREE_BUCKETS.
28628
3e5937d7
DB
286292007-01-18 Daniel Berlin <dberlin@dberlin.org>
28630
28631 * tree-ssa-structalias.c: Update comments.
28632 (ptabitmap_obstack): Removed.
28633 (pta_obstack): New.
28634 (oldpta_obstack): Ditto.
28635 (stats): Add a few members.
28636 (struct variable_info): Remove node, complex, address_taken, and
28637 indirect_target members. Add oldsolution member.
28638 (new_var_info): Do not initialize removed members.
28639 (constraint_expr_type): Remove INCLUDES.
28640 (constraint_graph): Add size, implicit_preds, rep,
28641 indirect_cycles, eq_rep, label, direct_nodes, and complex members.
28642 (FIRST_REF_NODE): New macro.
28643 (LAST_REF_NODE): Ditto.
28644 (FIRST_ADDR_NODE): Ditto.
28645 (find): New function.
28646 (unite): Ditto.
28647 (dump_constraint): Do not handle INCLUDES.
28648 (insert_into_complex): Do not insert duplicate constraints.
28649 (condense_varmap_nodes): Renamed and rewritten into ...
28650 (merge_node_constraints): This. Also fix bug in handling of
28651 offseted copy constraints.
28652 (clear_edges_for_node): No longer need to deal with preds at all,
537bbabd 28653 or removing associated preds/succs.
3e5937d7
DB
28654 (merge_graph_nodes): Deal with indirect_cycles.
28655 Don't deal with predecessors.
28656 (add_implicit_graph_edge): New function.
28657 (add_pred_graph_edge): Ditto.
28658 (add_graph_edge): Don't deal with predecessors.
28659 (build_constraint_graph): Removed.
28660 (build_pred_graph): New function.
28661 (build_succ_graph): Ditto.
28662 (struct scc_info): Removed in_component. Added roots, dfs, and
28663 node_mapping. Remove visited_index, unification_queue.
28664 (scc_visit): Deal with union-find we do now.
28665 Deal with cycles with REF nodes.
28666 (collapse_nodes): Renamed and rewritten to ...
28667 (unify_nodes): This.
28668 (process_unification_queue): Removed.
28669 (topo_visit): Cleanup
28670 (do_da_constraint): Use find.
28671 (do_sd_constraint): Ditto.
28672 (do_ds_constraint): Ditto.
28673 (do_complex_constraint): Ditto.
28674 (init_scc_info): Update for removed and added members.
28675 (find_and_collapse_graph_cycles): Renamed and rewritten into ...
28676 (find_indirect_cycles): This.
28677 (equivalence_class): New variable.
28678 (label_visit): New function.
28679 (perform_variable_substitution): Rewritten.
28680 (free_var_substitution_info): New function.
28681 (find_equivalent_node): Ditto.
28682 (move_complex_constraints): Ditto.
28683 (eliminate_indirect_cycles): Ditto.
28684 (solve_graph): Only propagate changed bits.
28685 Use indirect cycle elimination.
28686 Use find.
28687 (tree_id_t): Rename to tree_vi_t, delete id member, add vi member.
28688 (tree_id_eq): Renamed to ...
28689 (tree_vi_eq): This. Update for member change
28690 (insert_id_for_tree): Renamed and rewritten to ...
28691 (insert_vi_for_tree): This.
28692 (lookup_id_for_tree): Renamed and rewritten to ...
28693 (lookup_vi_for_tree): This.
28694 (get_id_for_tree): Renamed and rewritten to ...
28695 (get_vi_for_tree): Ditto.
28696 (get_constraint_exp_from_ssa_var): Update to use get_vi_for_tree.
28697 (process_constraint): Don't handle INCLUDES.
28698 Remove special ADDRESSOF case.
28699 (find_func_aliases): Rewrite to use vi functions instead of id
28700 ones.
28701 (create_function_info_for): Ditto.
28702 (create_variable_info_for): Ditto.
28703 (intra_create_variable_infos): Ditto.
28704 (merge_smts_into): Ditto.
28705 (find_what_p_points_to): Ditto.
28706 (init_base_vars): Ditto.
28707 (init_alias_vars): Ditto.
28708 (remove_preds_and_fake_succs): New function.
28709 (dump_sa_points_to_info): Dump new stats.
28710 (dump_solution_for_var): Use find.
28711 (set_used_smts): Fix formatting.
28712 (compute_points_to_sets): Updated for new functions.
28713 (ipa_pta_execute): Ditto.
28714
576c9028
KH
287152007-01-18 Kazu Hirata <kazu@codesourcery.com>
28716 Richard Sandiford <richard@codesourcery.com>
28717
28718 * doc/tm.texi (TARGET_FUNCTION_VALUE): Expand documentation of
28719 parallels.
28720 * calls.c (expand_call): If the return value is a PARALLEL,
28721 extract its first member.
28722 * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Remove.
28723 * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
28724 use FUNCTION_EXTRA_EPILOGUE.
28725 (m68k_function_value): Return a PARALLEL if the return value
28726 is of a pointer type.
28727 * config/m68k/netbsd-elf.h (current_function_returns_pointer)
28728 (FUNCTION_EXTRA_EPILOGUE): Remove.
28729 * config/m68k/m68k.md (D0_REG): New constant.
28730
dfd05074
KH
287312007-01-18 Kazu Hirata <kazu@codesourcery.com>
28732
28733 * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
28734 output a NOP for empty epilogues.
28735
413ac1b2
RS
287362007-01-18 Richard Sandiford <richard@codesourcery.com>
28737
28738 * config/m68k/m68k.c (m68k_use_return_insn): Update comments
28739 before function. Extend register save check to include all
28740 registers, not just integer ones.
28741
a2bda628
KH
287422007-01-18 Kazu Hirata <kazu@codesourcery.com>
28743
28744 * config/m68k/m68k-protos.h (use_return_insn): Rename to...
28745 (m68k_use_return_insn): ...this.
28746 * config/m68k/m68k.h (USE_RETURN_INSN): Delete.
28747 * config/m68k/m68k.c (use_return_insn): Rename to...
28748 (m68k_use_return_insn): ...this.
28749 * config/m68k/m68k.md (return): Use m68k_use_return_insn instead
28750 of USE_RETURN_INSN.
28751
e444d54e
NS
287522007-01-18 Nathan Sidwell <nathan@codesourcery.com>
28753
28754 * config/m68k/fpgnulib.c (__truncdfsf2): Implement round to
28755 nearest even, fix denormal rounding overflow.
28756
17e143a1
RS
287572007-01-18 Richard Sandiford <richard@codesourcery.com>
28758
28759 * config/m68k/m68k.md (movsf_cf_hard): Use fsmove instead of
28760 f%$smove and f%$move.
28761 (movdf_cf_hard): Use fdmove for cases 0 and 3 and fmove for case 1.
28762 (extendsfdf2_cf): Use fdmove instead of f%&move.
28763 (truncdfsf2_cf): Use fsmove instead of f%$smove.
28764 (add<mode>3_cf, sub<mode>3_cf): Use <FP:prec> instead of <FP:round>.
28765
bb017fc1
RS
287662007-01-18 Richard Sandiford <richard@codesourcery.com>
28767
28768 * config/m68k/m68k.md (movdf_cf_hard): Use output_move_double for
28769 GPR<-GPR moves.
28770
58145e4d
RS
287712007-01-18 Richard Sandiford <richard@codesourcery.com>
28772
28773 * real.h (real_format): Add a canonical_nan_lsbs_set field.
28774 (coldfire_single_format): Declare.
28775 (coldfire_double_format): Likewise.
28776 * real.c (encode_ieee_single): Use canonical_nan_lsbs_set instead
28777 of qnan_msb_set to determine the lower bits of a canonical
28778 NaN significand.
28779 (encode_ieee_double): Likewise.
28780 (encode_ieee_quad): Likewise.
28781 (ieee_single_format): Initialize canonical_nan_lsbs_set.
28782 (mips_single_format): Likewise.
28783 (ieee_double_format): Likewise.
28784 (mips_double_format): Likewise.
28785 (ieee_extended_motorola_format): Likewise.
28786 (ieee_extended_intel_96_format): Likewise.
28787 (ieee_extended_intel_128_format): Likewise.
28788 (ieee_extended_intel_96_round_53_format): Likewise.
28789 (ibm_extended_format): Likewise.
28790 (mips_extended_format): Likewise.
28791 (ieee_quad_format): Likewise.
28792 (mips_quad_format): Likewise.
28793 (vax_f_format): Likewise.
28794 (vax_d_format): Likewise.
28795 (vax_g_format): Likewise.
28796 (i370_single_format): Likewise.
28797 (i370_double_format): Likewise.
28798 (decimal_single_format): Likewise.
28799 (decimal_double_format): Likewise.
28800 (decimal_quad_format): Likewise.
28801 (c4x_single_format): Likewise.
28802 (c4x_extended_format): Likewise.
28803 (real_internal_format): Likewise.
28804 (coldfire_single_format): New real_format.
28805 (coldfire_double_format): Likewise.
28806 * config/pdp11/pdp11.c (pdp11_f_format): Initialize
28807 canonical_nan_lsbs_set.
28808 (pdp11_d_format): Likewise.
28809 * config/m68k/m68k.c (override_options): Override REAL_FORMAT_MODE
28810 if TARGET_COLDFIRE_CPU.
28811
29ca003a
RS
288122007-01-18 Richard Sandiford <richard@codesourcery.com>
28813
28814 * config/m68k/m68k-protos.h (m68k_output_pic_call): Delete.
28815 (output_call, m68k_legitimize_call_address): Declare.
28816 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Remove unnecessary
28817 parenthesees. Add support for a 'W' constraint.
28818 (LEGITIMATE_PIC_OPERAND_P): Remove SYMBOL_REF_FLAG handling.
28819 (PRINT_OPERAND_PUNCT_VALID_P): Remove comment about 'o'.
28820 (m68k_symbolic_call, m68k_symbolic_jump): Declare.
28821 * config/m68k/m68k.c (m68k_symbolic_call, m68k_symbolic_jump): New
28822 variables.
28823 (override_options): Initialize them. Do not set flag_no_function_cse
28824 for TARGET_ID_SHARED_LIBRARY.
28825 (m68k_output_pic_call): Delete.
28826 (m68k_legitimize_call_address): New function.
28827 (print_operand): Remove the %o prefix. Handle the %p prefix.
28828 (output_call): New function.
28829 (m68k_output_mi_thunk): Use m68k_symbolic_jump. Always load the
28830 target address from the GOT if symbolic jumps are not allowed.
28831 * config/m68k/m68k.md (call, general_operand): Do not set
28832 SYMBOL_REF_FLAG. Use m68k_legitimize_call_address instead.
28833 Merge separate flag_pic and !flag_pic define_insns into...
28834 (*call, *call_value): ...these new patterns. Match the address
28835 rather than the containing MEM and require it to be a call_operand.
28836 Use output_call to generate the asm template.
28837 * config/m68k/predicates.md (const_call_operand): New predicate.
28838 (call_operand): Likewise.
28839
85dbf7e2
NS
288402007-01-18 Nathan Sidwell <nathan@codesourcery.com>
28841
28842 * config/m68k/m68k.h (REGISTER_MOVE_COST): Simplify definition.
28843 (STACK_GROWS_DOWNWARD): Define to 1.
28844 (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Equivocate
28845 comments, emphasizing that these values are only defaults.
28846 * config/m68k/linux.h (LINK_SPEC): Fix formatting in #undef.
28847 * config/m68k/m68k.c (const_method): Remove trailing whitespace.
28848
565e35c9
RS
288492007-01-18 Richard Sandiford <richard@codesourcery.com>
28850
28851 * config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling.
28852
36e04090
KH
288532007-01-18 Kazu Hirata <kazu@codesourcery.com>
28854 Richard Sandiford <richard@codesourcery.com>
28855
28856 * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P)
28857 (FP_REGNO_P): New macros.
28858 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_DATA_P)
28859 (REGNO_OK_FOR_FP_P, REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Use them.
28860 (EH_RETURN_STACKADJ_RTX): Use A0_REG.
28861 * config/m68k/m68k.c (m68k_regno_mode_ok): Use the new REGNO macros.
28862
47b41fa3
NS
288632007-01-18 Nathan Sidwell <nathan@codesourcery.com>
28864
28865 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
28866 (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-rtems*): Add t-floatlib
28867 to $tmake_file.
28868 * config/m68k/t-floatlib: New file, extracting common code from...
28869 * config/m68k/t-m68kbare, config/m68k/t-m68kelf,
28870 * config/m68k/t-uclinux: Here.
28871 * config/m68k/fpgnulib.c: Do not compile extendeed precision
28872 routines on ColdFire targets.
28873
a96533d5
NS
288742007-01-18 Nathan Sidwell <nathan@codesourcery.com>
28875
28876 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
28877 (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*)
28878 (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-linux*)
28879 (m68k-*-rtems*): Use tm_file rather than m68k/m68k.h and
28880 explicitly set MOTOROLA to 1.
28881 * config/m68k/m68k.h (MOTOROLA): Simplify definition accordingly.
28882
ba5f7c88
RS
288832007-01-18 Richard Sandiford <richard@codesourcery.com>
28884 Nathan Sidwell <nathan@codesourcery.com>
28885
28886 * config/m68k/m68k.h (PCC_STATIC_STRUCT_RETURN): Delete.
28887 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add MOTOROLA cases.
28888 * config/m68k/coff.h (REGISTER_PREFIX_MD): Delete.
28889 * config/m68k/m68020-elf.h (LIB_SPEC): Delete.
28890 * config/m68k/m68k-none.h (CC1_SPEC, CPP_SUBTARGET_SPEC): Delete.
28891 * config/m68k/m68kelf.h (IMMEDIATE_PREFIX, REGISTER_PREFIX_MD)
28892 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
28893 (NO_DOLLAR_IN_LABEL, PCC_STATIC_STRUCT_RETURN): Don't undefine.
28894 (BSS_ASM_OP, ASM_OUTPUT_SKIP, ASM_OUTPUT_ASCII): Delete.
28895 * config/m68k/m68kemb.h (PCC_STATIC_STRUCT_RETURN): Don't undefine.
28896 * config/m68k/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE)
28897 (WCHAR_TYPE_SIZE, TARGET_OBJFMT_CPP_BUILTINS): Delete.
28898 (TARGET_OS_CPP_BUILTINS): Don't define mc68000 and mc68020 here.
28899 (DBX_REGISTER_NUMBER): Delete.
28900 * config/m68k/netbsd-elf.h (IMMEDIATE_PREFIX): Delete.
28901 (PCC_STATIC_STRUCT_RETURN): Don't undefine.
28902 * config/m68k/openbsd.h (PCC_STATIC_STRUCT_RETURN): Define.
28903
abe92a04
RS
289042007-01-18 Richard Sandiford <richard@codesourcery.com>
28905
28906 * config.gcc (m68k-*-uclinux*): Add flat.h to $tm_file.
28907 * config/flat.h: New file.
28908 * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define if
28909 OBJECT_FORMAT_FLAT.
28910 * config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Do not use
28911 indirect references for -msep-data or -mid-shared-library.
28912 Do not use PC-relative code addresses either.
28913 * config/m68k/m68k.c (override_options): Restrict -fPIC error
28914 to -mpcrel.
28915 * config/m68k/uclinux.h (STARTFILE_SPEC): Define. Use Scrt1.o
28916 for shared libraries and crt1.o for executables. Use crti.o and
28917 crtbegin.o.
28918 (ENDFILE_SPEC): Use crtend.o and crtn.o.
28919 (LIB_SPEC): Suppress -Rlibc.gdb if -static-libc is given.
28920 Do not add -elf2flt or -shared-lib-id options here.
28921 (LINK_SPEC): Define. Pass -elf2flt if no -elf2flt option is given.
28922 Pass -shared-lib-id if -mid-shared-library, taking the library
28923 identifier from -mshared-library-id if given, otherwise
28924 defaulting to 0.
28925 (EH_FRAME_IN_DATA_SECTION): Do not undefine.
28926 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Likewise.
28927 (TARGET_OS_CPP_BUILTINS): Define __GXX_MERGED_TYPEINFO_NAMES=0
28928 and __GXX_TYPEINFO_EQUALITY_INLINE=0 if -mid-shared-library.
28929 (DRIVER_SELF_SPECS): Map unadorned PIC options to -msep-data.
28930 * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Add crtbegin.o
28931 and crtend.o.
28932 * config/m68k/lb1sf68.asm (PICCALL): Use an lea and pc-relative
28933 jump sequence for ISA A and ISA A+.
28934 (PICJUMP): Likewise.
28935
78218d89
RS
289362007-01-18 Richard Sandiford <richard@codesourcery.com>
28937
28938 * config.gcc (m68k-*-uclinux*): Base the port on the common
28939 and m68k GNU/Linux files rather than on the generic ELF ones.
28940 * config/m68k/uclinux.h (TARGET_VERSION): Override.
28941 (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
28942
5189ab94
JB
289432007-01-18 Julian Brown <julian@codesourcery.com>
28944 Richard Sandiford <richard@codesourcery.com>
28945
28946 * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Make 64-bit on ColdFire.
28947 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
28948 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Undefine
28949 before redefining.
28950 * config/m68k/uclinux-oldabi.h (LONG_DOUBLE_TYPE_SIZE): Redefine to
28951 80 unconditionally.
28952 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
28953
4529dbf1
RS
289542007-01-18 Richard Sandiford <richard@codesourcery.com>
28955
28956 * doc/install.texi: Document m68k-uclinuxoldabi.
28957 * config.gcc (m68k-*-uclinuxoldabi): New configuration.
28958 * config/m68k/uclinux-oldabi.h: New file, copied from
28959 config/m68k/uclinux.h.
28960
e2265be0
KK
289612007-01-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
28962
28963 * config/m32r/m32r-protos.h (m32r_expand_epilogue): Declare it.
28964 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Use gen_frame_mem.
28965 (m32r_compute_frame_size): Use unsigned for regno.
28966 (m32r_reload_lr): Use gen_frame_mem.
28967 (pop): New.
28968 (m32r_output_function_epilogue): Don't output the function epilogue
28969 textually here.
28970 (m32r_expand_epilogue): New.
28971 (direct_return): Return false if the function has the interrupt
28972 attribute.
28973 (m32r_hard_regno_rename_ok): Remove code for the textual epilogue.
28974 * config/m32r/m32r.md (epilogue): New expander.
28975 (return_lr, return_rte): New insns.
28976 (return): Make it expander.
28977 (return_normal): New expander.
28978
370df7db
JC
289792007-01-18 Josh Conner <jconner@apple.com>
28980
28981 PR target/30485
28982 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Add
28983 support for UNLE, UNLT, UNGE, and UNGT.
28984
1994bfea
JH
289852007-01-18 Jan Hubicka <jh@suse.cz>
28986
28987 * tree-vrp.c (finalize_jump_threads): Do not call cleanup_cfg by hand.
28988 * tree-tailcall (add_virtual_phis): Likewise.
28989 (optimize_tail_call): Return TODOs.
28990 (execute_tail_calls): Return TODOs.
28991 * tree-ssa-ccp (execute_fold_all_builtins): Do cleanup_cfg via TODO.
28992 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Return if something
28993 changed.
28994 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
28995 Cleanup cfg using TODO.
28996 * tree-flow.h (cleanup_tree_cfg_loop): Update prototype.
28997 * passes.c (execute_function_todo): When cleanup did something, remove
28998 unused locals.
28999 * tree-cfg.c (pass_build_cfg): Add cleanup_cfg TODO.
29000 (make_edges): Don't cleanup_cfg.
29001
d85c7550
UB
290022007-01-18 Uros Bizjak <ubizjak@gmail.com>
29003
29004 * reg-stack.c (subst_stack_regs_pat) [UNSPEC_SINCOS_COS,
29005 UNSPEC_XTRACT_FRACT]: Use generic code for instructions that
29006 operate on the top of stack.
29007 [UNSPEC_SINCOS_SIN, UNSPEC_XTRACT_EXP, UNSPEC_TAN]: Rewrite
29008 register handling of instructions that output to the second
29009 stack slot.
29010 [UNSPEC_TAN_ONE, UNSPEC_TAN_TAN]: Remove.
29011 (move_for_stack_reg): Special-case check for dead destination
29012 stack slot for constant load of 1.0 inside UNSPEC_TAN.
29013
29014 * config/i386/i386.md (UNSPEC_TAN): New constant.
29015 (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): Remove.
29016 (fptanxf4_i387, fptan_extend<mode>xf4_i387): New patterns
29017 to correctly model move of constant 1.0 to top stack slot.
29018 (*tandf3_1, *tansf3_1, *tanxf3_1): Remove insn patterns.
29019 (unnamed peephole2 pattern): Remove corresponding peephole2
29020 pattern that optimizes tan insn and loading of constant 1.0.
29021 (tanxf2): Use fptanxf4_i387.
29022 (tan<mode>2): Rename from tansf2 and tandf2 and macroize insn
29023 patterns using X87MODEF12 mode macro. Use fptan_extend<mode>xf4_i387
29024 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
29025 disable patterns for SSE math.
29026 (sincos<mode>3): Use truncxf<mode>2_i387_noop for truncation.
29027 (fyl2x_extend<mode>xf3_i387): Use X87MODEF12 for operand 1.
29028
590b1f2d 290292007-01-18 Dirk Mueller <dmueller@suse.de>
d85c7550 29030 Richard Guenther <rguenther@suse.de>
590b1f2d 29031
d85c7550
UB
29032 PR diagnostic/8268
29033 * doc/invoke.texi (Warray-bounds): Document -Warray-bounds.
29034 * common.opt (Warray-bounds): Add new warning option.
29035 * c-opts.c (c_common_handle_option): Define -Warray-bounds
29036 if -Wall is given.
590b1f2d 29037 * Makefile.in: make tree-vrp.o depend on toplev.h
d85c7550
UB
29038 * tree-vrp.c (vrp_finalize): Call check_array_refs if -Warray-bounds
29039 is enabled.
29040 (check_array_refs, check_array_bounds, check_array_ref): New.
590b1f2d 29041
d85c7550 290422007-01-18 Jan Hubicka <jh@suse.cz>
3253eafb
JH
29043
29044 * tree-ssa-ccp.c (ccp_finalize): Return if something changed.
29045 (execute_ssa_ccp): Return flags conditionally.
29046 * tree-ssa-propagate.c (substitue_and_fold): Return if something was
29047 changed.
29048 * tree-ssa-propagate.h (substitute_and_fold): Update prototype.
29049
d85c7550 290502007-01-18 Steven Bosscher <steven@gcc.gnu.org>
aeceeb06
SB
29051
29052 * cfgcleanup.c (cleanup_cfg): Detect cfglayout mode and set
29053 the CLEANUP_CFGLAYOUT flag when in cfglayout mode.
29054
29055 * Makefile.c (GTFILES): Add cfglayout.h.
29056 * gengtype.c (open_base_files): Likewise.
29057 * cfglayout.c (cfg_layout_function_footer,
29058 cfg_layout_function_header) Reindent to make gengtype happy.
29059 * cfglayout.h (cfg_layout_function_footer,
29060 cfg_layout_function_header): Add GTY(()) marker.
29061
29062 * ifcvt.c (noce_try_sign_mask): Make sure INSN_B is non-null.
29063
19b8c2d9
BE
290642007-01-18 Ben Elliston <bje@au.ibm.com>
29065
29066 * genautomata.c (write_automata): Include xstrerror output in the
29067 error message if writing the DFA description file fails.
29068
f8fdb503
L
290692007-01-17 H.J. Lu <hongjiu.lu@intel.com>
29070
29071 * config/mips/mips-protos.h (mips_output_external): Make it
29072 return void.
29073 * config/mips/iris.h (TARGET_ASM_EXTERNAL_LIBCALL): Removed.
29074 * config/mips/mips.c (irix_output_external_libcall): Likewise.
29075 (extern_list): Likewise.
29076 (extern_head): Likewise.
29077 (TARGET_ASM_FILE_END): Likewise.
29078 (mips_file_end): Likewise.
29079 (mips_output_external): Rewritten.
29080
495fb8cd
BE
290812007-01-18 Ben Elliston <bje@au.ibm.com>
29082
29083 * genpreds.c (write_insn_preds_c): Only write out the function
29084 body for regclass_for_constraint if we have register constraints.
29085
4eb3e795
TT
290862007-01-17 Tom Tromey <tromey@redhat.com>
29087
29088 * doc/sourcebuild.texi (libgcj Tests): Use sourceware.org.
29089 * doc/install.texi (Testing): Use sourceware.org.
29090 (Binaries): Likewise.
29091 (Specific): Likewise.
29092 * doc/contrib.texi (Contributors): Use sourceware.org.
29093
e7fd0be4
ILT
290942007-01-17 Anatoly Sokolov <aesok@post.ru>
29095
29096 * config/avr/avr.h (AVR_HAVE_LPMX): New macro.
29097 (AVR_ENHANCED): Rename to ...
29098 (AVR_HAVE_MUL): ... new.
29099 (avr_enhanced_p): Rename to ...
29100 (avr_have_mul_p): ... new.
537bbabd 29101 (TARGET_CPU_CPP_BUILTINS): Use 'avr_have_mul_p' instead of
e7fd0be4
ILT
29102 'avr_enhanced_p' for "__AVR_ENHANCED__". Define "__AVR_HAVE_MUL__".
29103 * config/avr/avr.c (avr_enhanced_p): Rename to ...
29104 (avr_have_mul_p): ... new.
29105 (base_arch_s): Rename 'enhanced' to 'have_mul'.
29106 (avr_override_options): Use 'avr_have_mul_p' and 'have_mul' instead of
29107 'avr_enhanced_p' and 'enhanced'.
537bbabd 29108 (ashlhi3_out, ashrhi3_out, lshrhi3_out, avr_rtx_costs): Use
e7fd0be4
ILT
29109 AVR_HAVE_MUL instead of AVR_ENHANCED.
29110 * avr.md (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
537bbabd
EC
29111 (mulqi3, *mulqi3_enh, *mulqi3_call, mulqihi3, umulqihi3, mulhi3,
29112 *mulhi3_enh, *mulhi3_call, mulsi3, *mulsi3_call): Use AVR_HAVE_MUL
e7fd0be4
ILT
29113 instead of AVR_ENHANCED.
29114 (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
29115 * libgcc.S: Use __AVR_HAVE_MUL__ instead of __AVR_ENHANCED__.
29116 (__tablejump__): Use __AVR_HAVE_LPMX__ instead of __AVR_ENHANCED__.
dd6d1f8c 29117
efb7e1e0
ILT
291182007-01-17 Ian Lance Taylor <iant@google.com>
29119
29120 * vec.h (VEC_reserve_exact): Define.
29121 (vec_gc_p_reserve_exact): Declare.
29122 (vec_gc_o_reserve_exact): Declare.
29123 (vec_heap_p_reserve_exact): Declare.
29124 (vec_heap_o_reserve_exact): Declare.
29125 (VEC_OP (T,A,reserve_exact)): New static inline function, three
29126 versions.
29127 (VEC_OP (T,A,reserve)) [all versions]: Remove handling of
29128 negative parameter.
29129 (VEC_OP (T,A,alloc)) [all versions]: Call ...reserve_exact.
29130 (VEC_OP (T,A,copy)) [all versions]: Likewise.
29131 (VEC_OP (T,a,safe_grow)) [all versions]: Likewise.
29132 * vec.c (calculate_allocation): Add exact parameter. Change all
29133 callers.
29134 (vec_gc_o_reserve_1): New static function, from vec_gc_o_reserve.
29135 (vec_gc_p_reserve, vec_gc_o_reserve): Call vec_gc_o_reserve_1.
29136 (vec_gc_p_reserve_exact, vec_gc_o_reserve_exact): New functions.
29137 (vec_heap_o_reserve_1): New static function, from vec_heap_o_reserve.
29138 (vec_heap_p_reserve, vec_heap_o_reserve): Call vec_heap_o_reserve_1.
29139 (vec_heap_p_reserve_exact): New function.
29140 (vec_heap_o_reserve_exact): New function.
29141
dd82a6c6
JH
291422007-01-17 Jan Hubicka <jh@suse.cz>
29143
29144 * ipa-type-escape.c (look_for_casts): Revamp using handled_component_p.
29145
30fd45a0
EC
291462007-01-17 Eric Christopher <echristo@apple.com>
29147
29148 * config.gcc: Support core2 processor.
29149
109c8d39
JH
291502007-01-16 Jan Hubicka <jh@suse.cz>
29151
29152 * tree-ssanames.c (release_dead_ssa_names): Instead of ggc_freeing
7e08fa35
UB
29153 the names, just unlink the chain so we don't crash on dangling
29154 pointers
109c8d39
JH
29155 to dead SSA names.
29156
873aa8f5
JH
291572007-01-16 Jan Hubicka <jh@suse.cz>
29158
29159 * cgraph.h (cgraph_decide_inlining_incrementally): Kill.
29160 * tree-pass.h: Reorder to make IPA passes appear toegher.
7e08fa35
UB
29161 (pass_early_inline, pass_inline_parameters, pass_apply_inline):
29162 Declare.
873aa8f5
JH
29163 * cgraphunit.c (cgraph_finalize_function): Do not compute inling
29164 parameters, do not call early inliner.
29165 * ipa-inline.c: Update comments. Include tree-flow.h
29166 (cgraph_decide_inlining): Do not compute inlining parameters.
29167 (cgraph_decide_inlining_incrementally): Return TODOs; assume to
29168 be called with function context set up.
29169 (pass_ipa_inline): Remove unreachable functions before pass.
29170 (cgraph_early_inlining): Simplify assuming to be called from the
29171 PM as local pass.
29172 (pass_early_inline): New pass.
29173 (cgraph_gate_ipa_early_inlining): New gate.
29174 (pass_ipa_early_inline): Turn into simple wrapper.
29175 (compute_inline_parameters): New function.
29176 (gate_inline_passes): New gate.
29177 (pass_inline_parameters): New pass.
29178 (apply_inline): Move here from tree-optimize.c
29179 (pass_apply_inline): New pass.
29180 * ipa.c (cgraph_remove_unreachable_nodes): Verify cgraph after
29181 transforming.
29182 * tree-inline.c (optimize_inline_calls): Return TODOs rather than
29183 doing them by hand.
29184 (tree_function_versioning): Do not allocate dummy struct function.
29185 * tree-inline.h (optimize_inline_calls): Update prototype.
29186 * tree-optimize.c (execute_fixup_cfg): Export.
29187 (pass_fixup_cfg): Remove
29188 (tree_rest_of_compilation): Do not apply inlines.
29189 * tree-flow.h (execute_fixup_cfg): Declare.
29190 * Makefile.in (gt-passes.c): New.
29191 * passes.c: Include gt-passes.h
29192 (init_optimization_passes): New passes.
29193 (nnodes, order): New static vars.
29194 (do_per_function_toporder): New function.
29195 (execute_one_pass): Dump current pass here.
29196 (execute_ipa_pass_list): Don't dump current pass here.
29197
70b81845
JJ
291982007-01-16 Janis Johnson <janis187@us.ibm.com>
29199
29200 * config/dfp-bit.c (dfp_compare_op): Return separate value for NaN.
29201 (DFP_NE, DFP_LE, DFP_GE): Return false for NaN.
29202
d0768f19
DE
292032007-01-16 David Edelsohn <edelsohn@gnu.org>
29204
29205 * config/rs6000/darwin-ldouble.c: Build file for SOFT_FLOAT.
29206 (strong_alias): Define.
29207 (__gcc_qmul): Provide non-FMA for soft-float.
29208 (__gcc_qdiv): Same.
29209 (__gcc_qneg): New.
29210 (__gcc_qeq): New.
29211 (__gcc_qle): New.
29212 (__gcc_qge): New.
29213 (__gcc_qunord): New.
29214 (__gcc_stoq): New.
29215 (__gcc_dtoq): New.
29216 (__gcc_qtos): New.
29217 (__gcc_qtod): New.
29218 (__gcc_qtoi): New.
29219 (__gcc_qtou): New.
29220 (__gcc_itoq): New.
29221 (__gcc_utoq): New.
29222 (fmsub): New.
29223 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Initialize
29224 soft-float functions.
29225 * config/rs6000/libgcc-ppc-glibc.ver: Version soft-float symbols.
29226 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Do not warn
29227 about long double soft float.
29228
878aa817 292292007-01-16 Dorit Nuzman <dorit@il.ibm.com>
3de8da2a 29230 Tehila Meyzels <tehila@il.ibm.com>
878aa817
DN
29231
29232 * tree-vectorizer.h (is_pattern_stmt_p): New.
29233 * tree-vect-analyze.c (vect_determine_vectorization_factor): Fix
29234 formatting (tabs instead of spaces). Cleanup and clarify setting
29235 of STMT_VINFO_VECTYPE. Call is_pattern_stmt_p.
29236 * tree-vect-transform.c (vect_get_vec_def_for_operand): Fix typo.
29237 (vectorizable_type_demotion): Check that types are integral.
29238 (vectorizable_type_promotion): Likewise.
29239 (vectorizable_store): Fix typo. Eliminate new-line at end of
29240 comments.
29241
03b1d134
JH
292422007-01-16 Jan Hubicka <jh@suse.cz>
29243
29244 * tree-ssanames.c (release_dead_ssa_names): Remove invalidated
29245 cgraph edges too.
29246
632ac2b4
EC
292472007-01-15 Eric Christopher <echristo@apple.com>
29248
29249 * ifcvt.c: Include vec.h, vecprim.h.
29250 (check_cond_move_block): New argument regs.
29251 Reorganize. Add registers used to regs.
29252 (cond_move_process_if_block): Use regs set above as
29253 loop bounds.
29254
7a292b24
EC
292552007-01-15 Eric Christopher <echristo@apple.com>
29256
29257 * config/darwin.h: Update copyright.
29258 (TARGET_OPTION_TRANSLATE_TABLE): Add umbrella.
29259 (LINK_COMMAND_SPEC): Add -u.
29260 (LINK_SPEC): Fix umbrella for above.
29261
af7a7593
JM
292622007-01-15 Joseph S. Myers <joseph@codesourcery.com>
29263
29264 * config/soft-fp/op-common.h, config/soft-fp/op-4.h: Update from
29265 glibc CVS.
29266
69403237
TT
292672007-01-15 Tom Tromey <tromey@redhat.com>
29268
29269 * doc/sourcebuild.texi (libgcj Tests): Don't mention jacks.
29270 * doc/install.texi (Testing): Don't mention jacks.
29271 (Configuration): Document --enable-java-maintainer-mode. Move
29272 --with-java-home to libgcj-specific section. Document
29273 --with-ecj-jar.
29274 (Prerequisites): Mention --enable-java-maintainer-mode, ecj1.
29275
7665f023
JH
292762007-01-15 Jan Hubicka <jh@suse.cz>
29277
29278 * tree-ssa-dce.c (DCE_TODOs): New.
29279 (propagate_necessity): Return if something changed.
29280 (eliminate_unnecessary_stmts): Likewise.
29281 (perform_tree_ssa_dce): Return TODO flags when needed.
29282 (pass_dce, pass_dce_loop, pass_cd_dce): Remove TODO flags.
29283
0ac45694
UB
292842007-01-15 Uros Bizjak <ubizjak@gmail.com>
29285
29286 * config/i386/i386.md (fyl2xxf3_i387): Rename from fyl2x_xf3.
29287 (fyl2x_extend<mode>xf3_i387): New insn pattern.
29288 (log<mode>2): Rename from logsf2 and logdf2 and macroize insn
d85c7550 29289 patterns using X87MODEF12 mode macro. Extend operand 1
0ac45694
UB
29290 to XFmode. Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
29291 (log10<mode>2): Ditto.
29292 (log2<mode>2): Ditto.
29293 (log1p<mode>2): Ditto.
29294 (logb<mode>2): Ditto.
29295 (fyl2xp1xf3_i387): Rename from fyl2xp1_xf3.
29296 (fyl2xp1_extend<mode>xf3_i387): New insn pattern.
29297 (*fxtractxf3_i387): Rename from *fxtractxf3.
29298 (fxtract_extend<mode>xf3_i387): New insn pattern.
29299 (ilogbsi2): Use match_dup 3, not match_operand:XF 3.
0ac45694
UB
29300 * config/i386/i386.c (ix86_emit_i387_log1p): Use gen_fyl2xp1xf3_i387()
29301 and gen_fyl2xxf3_i387().
29302
b4c1c7e3
ZD
293032007-01-14 Zdenek Dvorak <dvorakz@suse.cz>
29304
29305 * loop-unswitch.c (unswitch_loop): Do not call fix_loop_placement.
29306 * cfgloopmanip.c (fix_loop_placement): Made static. Use
29307 get_loop_exit_edges. Changed return type to bool.
29308 * cfgloop.h (fix_loop_placement): Declaration removed.
29309
acdc40df
DN
293102007-01-14 Dorit Nuzman <dorit@il.ibm.com>
29311
29312 * param.h (MIN_VECT_LOOP_BOUND): New.
29313 * params.def (MIN_VECT_LOOP_BOUND): New.
29314 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Takes another
7a292b24 29315 argument - minimum threshold for number of iterations.
acdc40df
DN
29316 * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge): Add another
29317 argument to declaration.
7a292b24 29318 * tree-vect-analyze.c (vect_analyze_operations): Check value of
acdc40df
DN
29319 MIN_VECT_LOOP_BOUND.
29320 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Call
29321 slpeel_tree_peel_loop_to_edge with additional argument.
29322 (vect_do_peeling_for_alignment): Likewise.
29323 * doc/invoke.texi (min-vect-loop-bound): Document new param option.
29324
37fc8424
UB
293252007-01-14 Uros Bizjak <ubizjak@gmail.com>
29326
29327 PR target/30413
29328 * config/i386/i386.c (print_operand) ['z']: Output 'b' for
29329 operands of size 1.
29330
326648f1
JH
293312007-01-14 Jan Hubicka <jh@suse.cz>
29332
29333 * tree-dfa.c (remove_referenced_var): New function.
29334 * tree-ssa-live.c (remove_unused_locals): Walk referenced vars and
29335 prune referenced vars list too.
29336 * tree-flow.h (remove_referenced_var): Declare.
29337
4437b50d
JH
293382007-01-14 Jan Hubicka <jh@suse.cz>
29339
29340 * tree-eh.c (add_stmt_to_eh_region_fn): Do not add call_exprs
29341 separately.
29342 (remove_stmt_from_eh_region_fn): Do not remove call_exprs.
29343 (verify_eh_throw_stmt_node, verify_eh_throw_table_statements): Kill.
29344 * except.h (verify_eh_throw_table_statements): Kill prototype.
29345 * cfgexpand.c (expand_gimple_basic_block): Propagate Eh regions
29346 into call exrepssions.
29347 * tree-optimize.c (execute_free_cfg_annotatiosn): Do not call
29348 eh trhow verifier.
29349 * tree-cfg.c: Include pointer-set.h.
29350 (verify_node_sharing): Work on pointer set.
29351 (verify_eh_throw_stmt_node): New.
29352 (verify_stmts): Use pointers sets, verify throw_stmt.
29353
2a134b73
ZD
293542007-01-13 Zdenek Dvorak <dvorakz@suse.cz>
29355
29356 * ipa-reference.c (analyze_function): Consider also addresses taken
29357 in phi nodes.
29358
8bcd6380
RS
293592007-01-12 Roger Sayle <roger@eyesopen.com>
29360
29361 * c-typeck.c (null_pointer_constant_p): Replace use of
29362 TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
29363 (build_c_cast): Likewise.
29364
d95787e6
RS
293652007-01-12 Roger Sayle <roger@eyesopen.com>
29366
29367 * tree.h (force_fit_type_double): Remove unused final argument.
29368 * c-common.c (constant_expression_warning): Replace use of
29369 TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
29370 (convert_and_check): Likewise.
29371 (shorten_compare): Update call to force_fit_type_double.
29372 (c_common_truthvalue_conversion) <INTEGER_CST>: Use integer_zerop.
29373 * convert.c (convert_to_pointer): Update call to
29374 force_fit_type_double.
29375 * fold-const.c (force_fit_type_double): Remove overflowed_const
29376 argument.
29377 (int_const_binop, fold_convert_const_int_from_int,
29378 fold_convert_const_int_from_real, fold_div_compare,
29379 fold_sign_changed_comparison, fold_unary, fold_negate_const,
29380 fold_abs_const, fold_not_const): Remove the final argument from
29381 calls to force_fit_type_double.
29382
714f737f
AP
293832007-01-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
29384
29385 * configure.ac: Set insn to "nop" for spu-*-* also.
29386 * configure: Regenerate.
29387
db9d500a
OG
293882007-01-12 Olga Golovanevsky <olga@il.ibm.com>
29389
29390 * builtins.def : Add BUILT_IN_FREE.
7a292b24 29391
3d283195
JH
293922007-01-12 Jan Hubicka <jh@suse.cz>
29393
29394 PR tree-optimization/30443
29395 * tree-inline.c (tree_function_versioning): Do not optimize when
29396 cloning for inlining.
29397
6270df4c
ZD
293982007-01-12 Zdenek Dvorak <dvorakz@suse.cz>
29399
29400 * doc/loop.texi: Document recording of loop exits.
29401 * cfgloopmanip.c (loopify, duplicate_loop): Use alloc_loop.
29402 (update_single_exits_after_duplication,
29403 update_single_exit_for_duplicated_loop,
29404 update_single_exit_for_duplicated_loops): Removed.
29405 (duplicate_loop_to_header_edge): Do not call
29406 update_single_exits_after_duplication and
29407 update_single_exit_for_duplicated_loops.
29408 (loop_version): Do not update single_exit information.
29409 (fix_loop_structure): Use record_loop_exits instead of
29410 mark_single_exit_loops.
29411 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update
29412 the lists of loop exits.
29413 * cfghooks.c (redirect_edge_and_branch, redirect_edge_and_branch_force,
29414 split_edge, merge_blocks): Update the lists of loop exits.
29415 * modulo-sched.c (sms_schedule): Pass LOOPS_HAVE_RECORDED_EXITS to
29416 loop_optimizer_init.
29417 * loop-init.c (loop_optimizer_init): Call record_loop_exits instead
29418 of mark_single_exit_loops.
29419 (loop_optimizer_finalize): Call release_recorded_exits.
29420 * tree-ssa-loop.c (tree_loop_optimizer_init): Pass
29421 LOOPS_HAVE_RECORDED_EXITS to loop_optimizer_init.
29422 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg): Do not
29423 update single exit information.
29424 * lambda-code.c (perfect_nestify): Ditto.
29425 * cfgloop.c (flow_loop_free): Destroy the list of exits of the loop.
29426 (mark_single_exit_loops): Removed.
29427 (alloc_loop, loop_exit_hash, loop_exit_eq, loop_exit_free,
29428 get_exit_descriptions, rescan_loop_exit, record_loop_exits,
29429 dump_recorded_exit, dump_recorded_exits, release_recorded_exits): New
29430 functions.
29431 (get_loop_exit_edges, single_exit): Use recorded exit lists.
29432 (add_bb_to_loop, remove_bb_from_loops): Update the lists of loop exits.
29433 (verify_loop_structure): Verify consistency of the exit lists.
29434 (flow_loops_find): Use alloc_loop. Initialize exits hash.
29435 (set_single_exit): Removed.
29436 * cfgloop.h (struct loop_exit): New function.
29437 (struct loop): single_exit_ field replaced by exits field.
7e08fa35
UB
29438 (LOOPS_HAVE_MARKED_SINGLE_EXITS): Replaced by
29439 LOOPS_HAVE_RECORDED_EXITS.
6270df4c
ZD
29440 (struct loops): Added exits hash.
29441 (mark_single_exit_loops, set_single_exit): Declaration removed.
29442 (release_recorded_exits, record_loop_exits, rescan_loop_exit): Declare.
29443
1cbe999f
RS
294442007-01-12 Richard Sandiford <richard@codesourcery.com>
29445
29446 * doc/invoke.texi: Avoid use of @headitem.
29447
192232e2
RS
294482007-01-12 Richard Sandiford <richard@codesourcery.com>
29449
29450 * cse.c (cse_insn): Move HAVE_CC0 code after declarations.
29451
183dc04b
RS
294522007-01-12 Richard Sandiford <richard@codesourcery.com>
29453
29454 * doc/install.texi: Fix m68k-*-* anchor and add m68k-*-* to the
29455 list of targets.
29456
64826589
NS
294572007-01-12 Nathan Sidwell <nathan@codesourcery.com>
29458 Richard Sandiford <richard@codesourcery.com>
29459
29460 * doc/invoke.texi: Document -mno-bitfield, -mno-rtd and -mno-short.
29461 * config/m68k/m68k.opt: Resort options.
29462 (mbitfield, mrtd, mshort): Remove RejectNegative properties.
29463
7eb4f044
NS
294642007-01-12 Nathan Sidwell <nathan@codesourcery.com>
29465 Richard Sandiford <richard@codesourcery.com>
29466
29467 * doc/invoke.texi: Document the macros that are defined by
29468 m68k's -mtune and -mhard-float options.
29469 * config/m68k/m68k-protos.h (m68k_cpp_cpu_ident) Declare.
29470 (m68k_cpp_cpu_family): Likewise.
29471 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add a full set
29472 of __ucfv*__ macros. Define __mcffpu__ if generating code for
29473 ColdFire FPUs. Define __mcf_cpu_* and __mcf_family_* macros.
29474 * config/m68k/m68k.c (m68k_cpp_cpu_ident): New function.
29475 (m68k_cpp_cpu_family): Likewise.
29476
9321405c
RS
294772007-01-12 Richard Sandiford <richard@codesourcery.com>
29478
29479 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Treat all mc68*
29480 macros besides mc68000 as tuning macros. Use a switch statement
29481 to set them and mcpu32.
29482
b101567e
JB
294832007-01-12 Julian Brown <julian@codesourcery.com>
29484
29485 * config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY.
29486 (TARGET_68040_ONLY): Rename to...
29487 (TARGET_68040): ...this.
29488 * config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY.
29489 * config/m68k/m68k.md: Likewise.
29490
900ec02d
JB
294912007-01-12 Julian Brown <julian@codesourcery.com>
29492 Nathan Sidwell <nathan@codesourcery.com>
29493 Richard Sandiford <richard@codesourcery.com>
29494
29495 * config.gcc (m680[012]0-*-*, m68k*-*-*): Set m68k_cpu_ident to
29496 the -mcpu= argument associated with the --with-cpu setting.
29497 Define M68K_DEFAULT_TUNE to the default -mtune= option,
29498 if different from the one implied by the -mcpu setting.
29499 Accept --with-cpu=FOO if FOO is listed in m68k-devices.def,
29500 using mcpu=FOO as the default CPU option. Set target_cpu_default2.
29501 * doc/invoke.texi: Mention ColdFire in the introduction to the
29502 m68k options. Document the new -march, -mcpu, -mtune, -mdiv,
29503 -mno-div and -mhard-float options. Make -m68881 a synonym for
29504 -mhard-float. Document the previously-undocumented -m5206e,
29505 -m528x, -m5307 and -m5407 options. Tweak the existing option
29506 documentation for consistency.
29507 * doc/install.texi: Mention new --with-cpu arguments.
29508 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Only use the
29509 default CPU if neither -mcpu nor -march are specified.
29510 (ASM_CPU_SPEC): Pass down -mcpu and -march options.
29511 (TARGET_CPU_CPP_BUILTINS): Set __mcfisa*__ macros from
29512 TARGET_ISA*. Set the legacy __mcf*__ cpu macros in the same way,
29513 using m68k_tune to decide between families that implement the
29514 same ISA. Use m68k_tune to set __mcfv4e__.
29515 (FL_BITFIELD, FL_68881, FL_COLDFIRE, FL_CF_HWDIV, FL_CF_MAC)
29516 (FL_CF_EMAC, FL_CF_EMAC_B, FL_CF_USP, FL_CF_FPU, FL_ISA_68000)
29517 (FL_ISA_68010, FL_ISA_68020, FL_ISA_68040, FL_ISA_A, FL_ISA_B)
29518 (FL_ISA_C, FL_ISA_MMU): New macros.
29519 (MASK_COLDFIRE): Delete.
29520 (TARGET_68010, TARGET_68020, TARGET_68040_ONLY, TARGET_COLDFIRE)
29521 (TARGET_ISAB): Redefine in terms of m68k_cpu_flags.
29522 (TARGET_68881, TARGET_COLDFIRE_FPU): Redefine in terms of m68k_fpu.
29523 (TARGET_HARD_FLOAT): Do not define here.
29524 (TARGET_ISAAPLUS, TARGET_ISAC): New macros.
29525 (TUNE_68000): New macro.
29526 (TUNE_68000_10): Redefine in terms of TUNE_68000 and TUNE_68010.
29527 (TUNE_68010, TUNE_68030, TUNE_68040, TUNE_68060, TUNE_CPU32)
29528 (TUNE_CFV2): Redefine in terms of m68k_tune.
29529 (uarch_type, target_device, fpu_type): New enums.
29530 (m68k_cpu, m68k_tune, m68k_fpu, m68k_cpu_flags): Declare.
29531 * config/m68k/m68k.c (TARGET_DEFAULT): Remove MASK_68881.
29532 (FL_FOR_isa_00, FL_FOR_isa_10, FL_FOR_isa_20, FL_FOR_isa_40)
29533 (FL_FOR_isa_cpu32, FL_FOR_isa_a, FL_FOR_isa_aplus, FL_FOR_isa_b)
29534 (FL_FOR_isa_c): New macros.
29535 (m68k_isa): New enum.
29536 (m68k_target_selection): New structure.
29537 (all_devices, all_isas, all_microarchs): New tables.
29538 (m68k_cpu_entry, m68k_arch_entry, m68k_tune_entry, m68k_cpu)
29539 (m68k_tune, m68k_fpu, m68k_cpu_flags): New variables.
29540 (MASK_ALL_CPU_BITS): Delete.
29541 (m68k_find_selection): New function.
29542 (m68k_handle_option): Handle -mcpu=, -march= and -mtune=.
29543 Map the legacy target options to a combination of the new ones.
29544 (override_options): Set m68k_cpu, m68k_tune, m68k_fpu and
29545 m68k_cpu_flags. Handle M68K_DEFAULT_TUNE. Use m68k_cpu_flags
29546 to derive default MASK_BITFIELD, MASK_CF_HWDIV and MASK_HARD_FLOAT
29547 settings.
29548 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407, mcfv4e)
29549 (m68010, m68020, m68020-40, m68020-60, m68030, m68040): Remove Mask
29550 properties.
29551 (m68881, msoft-float): Change mask from 68881 to HARD_FLOAT.
29552 (march=, mcpu=, mdiv, mhard-float, mtune=): New options.
29553 * config/m68k/m68k-devices.def: New file.
29554
0c004537
RS
295552007-01-12 Richard Sandiford <richard@codesourcery.com>
29556 Nathan Sidwell <nathan@codesourcery.com>
29557
29558 * config/m68k/m68k.h (ASM_CPU_SPEC, ASM_SPEC, EXTRA_SPECS)
29559 (SUBTARGET_EXTRA_SPECS): New macros.
29560 * config/m68k/linux.h (ASM_SPEC): Remove CPU flags;
29561 use %(asm_cpu_spec) instead.
29562 * config/m68k/m68k-none.h (ASM_SPEC): Likewise.
29563 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
29564 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
29565 (EXTRA_SPECS): Rename to...
29566 (SUBTARGET_EXTRA_SPECS): ...this.
29567
59fbf3cb
NS
295682007-01-12 Nathan Sidwell <nathan@codesourcery.com>
29569 Richard Sandiford <richard@codesourcery.com>
29570 Julian Brown <julian@codesourcery.com>
29571
29572 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
29573 (m68k-*-uclinux*, m68k-*-linux*, m68k-*-rtems*): Set default_m68k_cpu
29574 to the configuration's default CPU.
29575 (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*): Likewise.
29576 Remove default masks.
29577 (m680[012]0-*-*): Set the default with_cpu to the first part of
29578 the target name.
29579 (m68k*-*-*): Set the default with_cpu to m$default_m68k_cpu.
29580 (m68k*-*-linux): Extend the --with-cpu handling to...
29581 (m680[012]0-*-*, m68k*-*-*): ...these configurations. Allow m68000
29582 and m68010. Don't set target_cpu_default2.
29583 * doc/install.texi: Document --with-cpu for m68k.
29584 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Define.
29585 * config/m68k/m68k-none.h (TARGET_CPU_DEFAULT, M68K_CPU_m68k)
29586 (M68K_CPU_m68000, M68K_CPU_m68010, M68K_CPU_m68020, M68K_CPU_m68030)
29587 (M68K_CPU_m68040, M68K_CPU_m68302, M68K_CPU_m68332, TARGET_DEFAULT)
29588 (ASM_CPU_DEFAULT_SPEC, CC1_CPU_DEFAULT_SPEC): Delete.
29589 (ASM_SPEC): Remove use of %(asm_cpu_default).
29590 (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS, MULTILIB_DEFAULTS): Delete.
29591 * config/m68k/linux.h (TARGET_DEFAULT): Delete.
29592 (CPP_SPEC): Merge definitions. Do not handle __HAVE_68881__ here.
29593 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
29594 __HAVE_FPU__ if TARGET_HARD_FLOAT.
29595 (TARGET_DEFAULT): Delete.
29596 (EXTRA_SPECS): Delete cpp_cpu_default_spec, cpp_cpu_spec,
29597 cpp_fpu_spec, asm_default_spec and netbsd_cpp_spec.
29598 (CPP_CPU_SPEC): Delete.
29599 (TARGET_VERSION): Merge definitions, using TARGET_68010 to pick
29600 the appropriate string.
29601 (CPP_CPU_DEFAULT_SPEC, ASM_DEFAULT_SPEC, CPP_FPU_SPEC): Delete.
29602 (CPP_SPEC): Define to NETBSD_CPP_SPEC.
29603 (ASM_SPEC): Don't use %(asm_default_spec).
29604 * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
29605 TARGET_DEFAULT and add MASK_68881.
29606 * config/m68k/m68k.md: Remove mention of TARGET_DEFAULT from comments.
29607
3197c489
RS
296082007-01-12 Richard Sandiford <richard@codesourcery.com>
29609
29610 * config.gcc (m68010-*-netbsdelf*): Add MASK_68010.
29611 (m68k*-*-netbsdelf*, m68k*-*-openbsd*, m68k*-linux*): Add
29612 MASK_68010 alongside MASK_68020.
29613 * doc/invoke.texi: Document -m68010.
29614 * config/m68k/m68k.opt (m68010): New.
29615 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define mc68010
29616 if TUNE_68010.
29617 (TUNE_68010): New macro.
29618 * config/m68k/m68k-none.h (M68K_CPU_m68k, M68K_CPU_m68010)
29619 (M68K_CPU_m68020, M68K_CPU_m68030, M68K_CPU_m68040)
29620 (M68K_CPU_m68332): Add MASK_68010.
29621 * config/m68k/linux.h (TARGET_DEFAULT): Add MASK_68010 to
29622 fallback definition.
29623 * config/m68k/netbsd-elf.h (CPP_CPU_SPEC): Remove now-redundant
29624 defines.
29625 * config/m68k/m68k.c (MASK_ALL_CPU_BITS): Add MASK_68010.
29626 (m68k_handle_option): Handle OPT_m68010. Add MASK_68010
29627 to all entries that use MASK_68020.
29628 (output_move_simode_const, output_move_himode, output_move_qimode)
29629 (output_move_stricthi, output_move_strictqi): Use TARGET_68010
29630 instead of TARGET_68020 to select clr behavior. Remove comment
29631 about there being no TARGET_68010.
29632 * config/m68k/m68k.md: Likewise throughout.
29633
986e74d5
JB
296342007-01-12 Julian Brown <julian@codesourcery.com>
29635
29636 * config/m68k/m68k.h (TARGET_ISAB): New macro.
29637 * config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
29638 * config/m68k/m68k.md: Likewise.
29639
bb5bdf70
JB
296402007-01-12 Julian Brown <julian@codesourcery.com>
29641
29642 * config/m68k/m68k.h (LEGITIMATE_INDEX_P, LEGITIMIZE_ADDRESS): Use
29643 TARGET_COLDFIRE_FPU instead of TARGET_CFV4E.
29644
9cf106c8
JB
296452007-01-12 Julian Brown <julian@codesourcery.com>
29646
29647 * config/m68k/m68k.h (TUNE_68040_60): New macro.
29648 * config/m68k/m68k.c (standard_68881_constant_p): Use it.
29649 * config/m68k/m68k.md: Likewise.
29650
fe95f2f7
JB
296512007-01-12 Julian Brown <julian@codesourcery.com>
29652 Richard Sandiford <richard@codesourcery.com>
29653
29654 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Use TUNE_68030
29655 instead of TARGET_68030, TUNE_68040 instead of TARGET_68040,
29656 TUNE_68060 instead of TARGET_68060 and TUNE_CPU32 instead of
29657 TARGET_CPU32.
29658 (TARGET_CPU32): Rename to...
29659 (TUNE_CPU32): ...this.
29660 (TUNE_68000_10, TUNE_68030, TUNE_68040, TUNE_68060)
29661 (TUNE_CFV2): New macros.
29662 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Simplify;
29663 remove conditions that are implied by TARGET_68020.
29664 * config/m68k/m68k.c (m68k_output_function_prologue): Use TUNE_68040
29665 instead of TARGET_68040 and TUNE_CPU32 instead of TARGET_CPU32.
29666 (m68k_output_function_epilogue): Likewise.
29667 (m68k_rtx_costs): Likewise. Use TUNE_68060 instead of TARGET_68060
29668 and TUNE_CFV2 instead of TARGET_5200. Use TUNE_68000_10 instead of
29669 "!TARGET_68020 && !TARGET_COLDFIRE" to choose between 68000 and
29670 non-68000 timings. Refactor multiplication and division costs.
29671 (output_addsi3): Use TUNE_68040 instead of TARGET_68040 and
29672 TUNE_CPU32 instead of TARGET_CPU32.
29673 (standard_68881_constant_p): Use TUNE_68040 instead of TARGET_68040
29674 and TUNE_68060 instead of TARGET_68060.
29675 * config/m68k/m68k.md: Use TUNE_68040 instead of TARGET_68040,
29676 TUNE_68060 instead of TARGET_68060, and TUNE_CPU32 instead of
29677 TARGET_CPU32.
29678 (movsi_const0): Use TUNE_68000_10 rather than "!TARGET_68020
29679 && !TARGET_COLDFIRE" to choose between moveq and clr.
29680 Likewise in the unnamed movsf pattern.
29681 (ashlsi_17_24, lshrsi_17_24): Guard with TUNE_68000_10 rather than
29682 "!TARGET_68020 && !TARGET_COLDFIRE". Likewise the unnamed
29683 ashiftrt pattern.
29684
9c6de4a1
RS
296852007-01-12 Richard Sandiford <richard@codesourcery.com>
29686
29687 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Increase amount
29688 of tabbing before backslashes.
29689
179cd3d3
JDA
296902007-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29691
29692 * pa-linux.h (ASM_OUTPUT_INTERNAL_LABEL): Undefine.
29693 * pa.h (ASM_OUTPUT_LABEL): Output colon when using GAS.
29694 (ASM_OUTPUT_INTERNAL_LABEL): Define.
29695
b697aed4
ZD
296962007-01-11 Zdenek Dvorak <dvorakz@suse.cz>
29697
29698 * tree-ssa-loop-ivopts.c (extract_cond_operands): Split from
29699 find_interesting_uses_cond.
29700 (find_interesting_uses_cond): Use extract_cond_operands.
29701 (rewrite_use_compare): Use extract_cond_operands and
29702 force_gimple_operand_bsi. Do not call update_stmt.
29703 (determine_use_iv_cost_condition): Use extract_cond_operands.
29704 Return cheaper of using original bound and changing the exit bound.
29705
820410e0
ZD
297062007-01-11 Zdenek Dvorak <dvorakz@suse.cz>
29707
29708 PR tree-optimization/29516
29709 * tree-ssa-address.c (tree_mem_ref_addr, add_to_parts,
29710 most_expensive_mult_to_index, addr_to_parts,
29711 create_mem_ref, maybe_fold_tmr): Make the type of
29712 fields of TARGET_MEM_REF sizetype.
29713 (move_fixed_address_to_symbol, move_pointer_to_base):
29714 New functions.
29715 * tree.def (TARGET_MEM_REF): Add comment on types of
29716 the operands.
820410e0 29717
14e765da
JM
297182007-01-11 Joseph Myers <joseph@codesourcery.com>
29719
29720 * c-common.c (vector_types_convertible_p): Treat opaque types as
29721 always convertible if they have the same size, but not otherwise.
29722
2a33a75f
SB
297232007-01-11 Steven Bosscher <steven@gcc.gnu.org>
29724
29725 * ifcvt.c (struct noce_if_info): Add comments to the fields.
29726 Remove the b_unconditional field.
29727 (noce_try_sign_mask): Do not look at b_unconditional.
29728 (noce_process_if_block): Do not use merge_if_blocks. Update
29729 the CFG here. Do not set b_unconditional.
29730 (cond_move_process_if_block): Likewise.
29731 (find_cond_trap): Likewise.
29732 (check_cond_move_block): Require simple jump insns at the end
29733 of the basic block.
29734
7faade0f
JH
297352007-01-11 Jan Hubicka <jh@suse.cz>
29736
29737 PR tree-optimization/1046
29738 * tree-tailcall.c (suitable_for_tail_call_opt_p): Use TREE_ADDRESSABLE
29739 when alias info is not ready.
29740 (pass_tail_recursion): Do not require aliasing.
29741 * tree-ssa-copyrename.c (pass_rename_ssa_cop): Likewise.
29742 * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Likewise.
29743 * tree-ssa-copy.c (pass_copy_prop): Likewise.
29744 * tree-ssa-forwprop.c (pass_forwprop): Likewise.
29745 * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Likewise.
29746 * passes.c (init_optimization_passes): Execute rename_ssa_copies,
29747 ccp, forwprop, copy_prop, merge_phi, copy_prop, dce and tail recursion
29748 before inlining.
29749 * tree-ssa-operands.c (add_virtual_operand, get_indirect_ref_operand):
29750 When aliasing is not build, mark statement as volatile.
29751
78392049
TT
297522007-01-11 Tom Tromey <tromey@redhat.com>
29753
29754 PR preprocessor/15185, PR preprocessor/20989:
29755 * doc/cppopts.texi <-MT>: Update description of algorithm for
29756 computing default target.
29757 <-M, -MD>: Reword "basename" text.
29758
455f14dd
RS
297592007-01-11 Roger Sayle <roger@eyesopen.com>
29760
29761 * builtins.c (expand_builtin_pow, expand_builtin_powi,
29762 fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_trunc,
29763 fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
29764 fold_builtin_int_int_roundingfn, fold_builtin_bitop,
29765 fold_builtin_bswap, real_constp, fold_builtin_pow,
29766 fold_builtin_powi, fold_builtin_signbit, fold_builtin_copysign,
29767 do_mpfr_arg1, do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Replace
29768 uses of the macro TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
29769 * convert.c (convert_to_pointer): Likewise.
29770 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
29771 * fold-const.c (force_fit_type, fold_negate_expr, int_const_binop,
29772 const_binop, fold_convert_const_int_from_int,
29773 fold_convert_const_int_from_real,
29774 fold_convert_const_real_from_real, sign_bit_p,
29775 optimize_minmax_comparison, extract_muldiv_1, fold_div_compare,
29776 fold_sign_changed_comparison, fold_unary, fold_comparison,
29777 fold_binary, multiple_of_p, tree_Expr_non_zero_p,
29778 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
29779 * print-tree.c (print_node_brief, print_node): Likewise.
29780 * stor-layout.c (place_field, layout_type): Likewise.
29781 * tree-chrec.c (keep_cast): Likewise.
29782 * tree.c (build_vector, build_real, build_real_from_int_cst,
29783 build_complex): Likewise.
29784
95fd24b6
RS
297852007-01-11 Roger Sayle <roger@eyesopen.com>
29786
29787 * tree.h (TREE_CONSTANT_OVERFLOW): Obsolete. For the time being,
29788 treat TREE_CONSTANT_OVERFLOW as a synonym of TREE_OVERFLOW.
29789
8b1f719a
PB
297902007-01-11 Paolo Bonzini <bonzini@gnu.org>
29791
29792 * configure.ac (strict1_warn): Rename to strict_warn.
29793 (WERROR, --enable-werror, symlink hacks, stage1_cflags,
29794 cc_set_by_configure, quoted_cc_set_by_configure,
29795 stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
29796 all_boot_languages, all_stagestuff): Remove.
29797 (target_list): Remove bootstrap targets.
29798 * Makefile.in (quickstrap): Unconditionally make a synonym of all.
29799 (BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
29800 REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
29801 SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
29802 VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
29803 STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
29804 stage1_copy, stage2_build, stage2_copy, stageprofile_build,
29805 stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
29806 stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
29807 bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
29808 bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
29809 unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
29810 restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
29811 cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
29812 *compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
29813 stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
29814 stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
29815 risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
29816 (ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
29817 (STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
29818 (mostlyclean): Adjust.
29819 (clean, distclean): Don't mention bootstrap stuff.
29820 * configure: Regenerate.
29821 * ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
29822 java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
29823 treelang/config-lang.in (stagestuff): Remove.
29824 * doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
29825 stageprofile, stagefeedback, stagestuff): Remove mention.
29826
6e3a343d
NC
298272007-01-11 Nick Clifton <nickc@redhat.com>
29828
29829 * config/mcore/predicates.md (mcore_general_movesrc_operand):
29830 Accept CONSTs.
29831 (mcore_general_movdst_operand): Do not accept CONST_INTs.
29832 (mcore_arith_K_S_operand): Run the test for the S constraint not
29833 the test for the M constraint.
29834 (mcore_addsub_operand): Do not accept integer values that are
29835 larger than 32 bits.
29836 * config/mcore/mcore.md: Remove unused constraints from split.
29837 (andsi3): Use HOST_WIDE_INT instead of int to hold an INTVAL.
29838 (addsi3): Likewise.
29839 (allocate_stack): Likewise.
29840 * config/mcore/mcore.c (mcore_print_operand): Restrict output of P
29841 operands to 32 bits.
29842 (mcore_const_costs): Use HOST_WIDE_INT instead of int to hold an
29843 INTVAL.
29844 (mcore_and_cost, mcore_modify_comparison, const_ok_for_mcore,
29845 mcore_const_ok_for_inline, mcore_const_trick_uses_not,
29846 try_constant_tricks, mcore_num_ones, mcore_num_zeros,
29847 mcore_output_bclri, mcore_output_andn, output_inline_const,
29848 mcore_output_move, mcore_output_movedouble): Likewise.
29849 (mcore_output_cmov): Use CONST_OK_FOR_M and CONST_OK_FOR_N.
29850 (output_inline_const): Likewise.
29851 (output_inline_const): Fix format strings used in sprintf
29852 statements.
29853 * config/mcore/mcore-protos.h: Update prototypes for changed
29854 functions in mcore.c.
29855 * config/mcore/mcore.h (CONST_OK_FOR_I): Cast values to
29856 HOST_WIDE_INT and not int.
29857 (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M,
29858 CONST_OK_FOR_N): Likewise.
29859 (LEGITIMATE_CONSTANT_P): Also check CONSTANT_P.
29860 (GO_IF_LEGITIMATE_INDEX): Use HOST_WIDE_INT instead of int to hold
29861 an INTVAL.
29862
ca15e365
JH
298632007-01-10 Jan Hubicka <jh@suse.cz>
29864
29865 * tree-vrp.c (remove_range_assertions): Release defs.
29866 * tree-ssa-loop-ivopts.c (rmeove_statement): Likewise.
29867 * tree-ssa-dom.c (remove_stmt_or_phi): Likewise.
29868
26b53f80
PB
298692007-01-10 Paul Brook <paul@codesourcery.com>
29870
29871 * config/arm/arm.c (arm_rtx_costs_1): Handle mutiply-subtract.
29872 * config/arm/arm.md (mulsi3subsi): New insn.
29873
567b96ed
ZD
298742007-01-10 Zdenek Dvorak <dvorakz@suse.cz>
29875
29876 * tree-ssa-loop-manip.c (tree_unroll_loop): Make it a wrapper over ...
29877 (tree_transform_and_unroll_loop): New.
29878 * tree-flow.h (transform_callback, tree_transform_and_unroll_loop):
29879 Declare.
29880
6b074ef6
RK
298812007-01-10 Robert Kennedy <jimbob@google.com>
29882
29883 * fold-const.c (fold_comparison): Fold comparisons like (x *
29884 1000 < 0) to (x < 0).
29885
ee3202e1
ILT
298862007-01-10 Ian Lance Taylor <iant@google.com>
29887
29888 * tree-pretty-print.c (dump_generic_node): Print parentheses when
29889 operands have the same priority.
29890
08f0e79e
TT
298912007-01-10 Tom Tromey <tromey@redhat.com>
29892
29893 * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
29894 (fold_binary): Likewise.
29895 * langhooks.c (lhd_can_use_bit_fields_p): Removed.
29896 * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
29897 (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
29898 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
29899 * langhooks.h (struct lang_hooks): Removed field
29900 'can_use_bit_fields_p'.
29901
5f732aba 29902