]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
Fix Thumb2 bic orn
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
a7994a57
RR
12009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2
3 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
4 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
5 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
6 with shifts for Thumb2.
7 (orsi_notsi): New for orn.
8 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
9 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
10 * config/arm/arm.c (const_ok_for_op): Split case for IOR for
11 Thumb2.
12 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add
13 comments. Don't invert remainder for IOR.
14
e36dc339
ZD
152009-05-19 Zdenek Dvorak <ook@ucw.cz>
16
17 PR tree-optimization/40087
18 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
19 number_of_iterations_ne): Rename never_infinite argument.
20 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
21 number_of_iterations_le): Handle pointer-type ivs when
22 exit_must_be_taken is false.
23 (number_of_iterations_cond): Do not always assume that
24 exit_must_be_taken if the control variable is a pointer.
25
5cfd5d9b
AP
262009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
27
28 * c-typeck.c (build_binary_op): Allow % on integal vectors.
29 * doc/extend.texi (Vector Extension): Document that % is allowed too.
30
2f1c7156
L
312009-05-19 H.J. Lu <hongjiu.lu@intel.com>
32
33 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
34 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
35
7bb27074
MLI
362009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
37
38 PR c/40172
39 * c.opt (Wlogical-op): Disabled by default.
40 * c-opt (c_common_post_options): Do not enable Wlogical-op with
41 Wextra.
42 * doc/invoke.texi (Wlogical-op): Likewise.
43
5aefc6a0
EB
442009-05-19 Eric Botcazou <ebotcazou@adacore.com>
45
46 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
47 into CASE_CONVERT.
48 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
49 Propagate the type of the first operand.
50 <ASSERT_EXPR>: Simplify.
51 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
52 Rewrite using the RHS code as discriminant.
53 <NOP_EXPR>: Turn into CASE_CONVERT.
54 <PLUS_EXPR>: Propagate the type of the first operand.
55
f3a83111
SE
562009-05-19 Steve Ellcey <sje@cup.hp.com>
57
58 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
59 (ia64_dconst_0_375): New.
60 * config/ia64/ia64.c (ia64_override_options): Remove
61 -minline-sqrt-min-latency warning.
62 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
63 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
64 * config/ia64/ia64.md (*sqrt_approx): Remove.
65 (sqrtsf2): Remove #if 0.
66 (sqrtsf2_internal_thr): Rewrite and move to div.md.
67 (sqrtdf): Remove assert.
68 (sqrtdf2_internal_thr): Rewrite and move to div.md.
69 (sqrtxf2): Remove #if 0.
70 (sqrtxf2_internal_thr): Rewrite and move to div.md.
71 * div.md (sqrt_approx_rf): New.
72 (sqrtsf2_internal_thr): New implementation.
73 (sqrtsf2_internal_lat): New.
74 (sqrtdf2_internal_thr: New implementation.
75 (sqrtxf2_internal): New implementation.
76
1ffc7157
FXC
772009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
78 Hans-Peter Nilsson <hp@axis.com>
79
80 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
81 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
82 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
83 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
84 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
85 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
86 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
87 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
88 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
89 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
90 * c-common.c: ...from here.
91
db91d9ef
MLI
922009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
93
94 * c-common.c (warn_logical_operator): Remove unnecessary
95 conditionals.
96
bbb9d91f
KG
972009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
98
99 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
100
ce883f54
BE
1012009-05-19 Ben Elliston <bje@au.ibm.com>
102
103 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
104 assignments with memcpy calls.
105 (add_fdes): Likewise.
106 (binary_search_unencoded_fdes): Likewise.
107 (linear_search_fdes): Eliminate type puns.
108
377f099a
RG
1092009-05-19 Richard Guenther <rguenther@suse.de>
110
111 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
112 not falsely claim to have propagated into all uses.
113
848bc769
BE
1142009-05-19 Ben Elliston <bje@au.ibm.com>
115
116 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
117 version to v3.0.
118
1bb99877
KK
1192009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
120
121 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
122 * config/sh/sh.c (sh_legitimate_address_p): Make static.
123 (TARGET_LEGITIMATE_ADDRESS_P): New.
124 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
125 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
126
82725547
DS
1272009-05-18 Dodji Seketeli <dodji@redhat.com>
128
129 PR debug/40109
130 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
131 child of the containing namespace's DIE.
132
f6a1e430
AN
1332009-05-18 Adam Nemet <anemet@caviumnetworks.com>
134
135 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
136 *zero_extendhi_truncqi): Move after the zero_extend patterns.
137 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
138 extend patterns.
139
6a90d232
L
1402009-05-18 H.J. Lu <hongjiu.lu@intel.com>
141
142 PR target/39942
143 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
144 gen_align with gen_pad.
145 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
146 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
147
148 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
149 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
150
151 * config/i386/i386.md (align): Renamed to ...
152 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
153 ASM_OUTPUT_MAX_SKIP_PAD.
154
c4406f74
AS
1552009-05-18 Andreas Schwab <schwab@linux-m68k.org>
156
06555043
AS
157 * config.gcc: Fix variable syntax.
158
c4406f74
AS
159 PR target/39531
160 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
161 before calling exact_log2.
162 (output_iorsi3): Likewise.
163 (output_xorsi3): Likewise.
164
99052692
KK
1652009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
166
167 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
168 for the none zero constant operand except for EQ and NE
169 comprisons even when the first operand is R0.
170
f4aa3848
AK
1712009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
172
173 * config/s390/2064.md: Remove trailing whitespaces.
174 * config/s390/2084.md: Likewise.
175 * config/s390/constraints.md: Likewise.
176 * config/s390/fixdfdi.h: Likewise.
177 * config/s390/libgcc-glibc.ver: Likewise.
178 * config/s390/s390-modes.def: Likewise.
179 * config/s390/s390-protos.h: Likewise.
180 * config/s390/s390.c: Likewise.
181 * config/s390/s390.h: Likewise.
182 * config/s390/s390.md: Likewise.
183 * config/s390/tpf-unwind.h: Likewise.
184
ab7256e4
MK
1852009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
186
187 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
188
75df395f
MK
1892009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
190
191 M68K TLS support.
192 * configure.ac (m68k-*-*): Check if binutils support TLS.
193 * configure: Regenerate.
194 * config/m68k/predicates.md (symbolic_operand): Extend comment.
195 * config/m68k/constraints.md (Cu): New constraint.
196 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
197 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
198 (movsi): Handle TLS symbols.
199 (addsi3_5200): Handle XTLS symbols, indent.
200 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
201 (m68k_tls_reference_p): Declare.
202 (m68k_legitimize_address): Declare.
203 (m68k_unwrap_symbol): Declare.
204 * config/m68k/m68k.opt (mxtls): New option.
205 * config/m68k/m68k.c (ggc.h): Include.
206 (m68k_output_dwarf_dtprel): Implement hook.
207 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
208 (m68k_expand_prologue): Load GOT pointer when function needs it.
209 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
210 (m68k_legitimate_constant_address_p): Same.
211 (m68k_decompose_address): Handle TLS references.
212 (m68k_get_gp): New static function.
213 (enum m68k_reloc): New contants.
214 (TLS_RELOC_P): New macro.
215 (m68k_wrap_symbol): New static function.
216 (m68k_unwrap_symbol): New function.
217 (m68k_final_prescan_insn_1): New static function.
218 (m68k_final_prescan_insn): New function.
219 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
220 functions.
221 (legitimize_pic_address): Handle TLS references..
222 (m68k_tls_get_addr, m68k_get_tls_get_addr)
223 (m68k_libcall_value_in_a0_p)
224 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
225 (m68k_call_m68k_read_tp): Helper variables and functions for ...
226 (m68k_legitimize_tls_address): Handle TLS references.
227 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
228 New functions.
229 (m68k_legitimize_address): Handle TLS symbols.
230 (m68k_get_reloc_decoration): New static function.
231 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
232 UNSPEC_RELOC32.
233 (m68k_output_dwarf_dtprel): Implement hook.
234 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
235 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
236 m68k_call_* routines.
237 (sched_attr_op_type): Handle TLS symbols.
238 (gt-m68k.h): Include.
239 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
240 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
241
8b75fc9b
MJ
2422009-05-18 Martin Jambor <mjambor@suse.cz>
243
244 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
245 (visit_store_addr_for_mod_analysis): New function.
246 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
247 (determine_cst_member_ptr): Use gimple_assign_single_p.
248 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
249 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
250 operands. Don't check number of operands of a NOP_EXPR.
251
f133d4a2
EF
2522009-05-18 Eric Fisher <joefoxreal@gmail.com>
253
254 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
255
ae8af500
L
2562009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
257
258 PR c/40172
259 * c-common.c (warn_logical_operator): Don't warn if one of
260 expression isn't always true or false.
261
25e8fde8
KT
2622009-05-17 Kai Tietz <kai.tietz@onevision.com>
263
ae8af500
L
264 * config/i386/biarch32.h: New file.
265 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
25e8fde8 266
ef67af22
AN
2672009-05-17 Adam Nemet <anemet@caviumnetworks.com>
268
269 * config/mips/mips.md (*zero_extend<mode>_trunchi,
270 *zero_extend<mode>_truncqi): Merge these into ...
271 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
272 Name the pattern following this as *zero_extendhi_truncqi.
273
e2d87023
BL
2742009-05-16 Brad Lucier <lucier@math.purdue.edu>
275
276 PR middle-end/39301
277 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
278 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
279 (output_info): Make field HOST_WIDEST_INT.
280 (print_statistics): Use HOST_WIDEST_INT_PRINT.
281 (dump_bitmat_statistics): Same.
282
428ddbf0
FXC
2832009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
284
285 * config.gcc (use_gcc_stdint): Set to wrap.
286 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
287 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
288 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
289 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
290 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
291 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
292 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
293 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
294
1ab8a8c2
JM
2952009-05-16 Joseph Myers <joseph@codesourcery.com>
296
297 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
298 tune_64.
299 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
300 Move definitions earlier.
301 (OPT_ARCH64, OPT_ARCH32): Define.
302 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
303 and tune_64.
304
70544f44
RE
3052009-05-16 Richard Earnshaw <rearnsha@arm.com>
306
307 PR target/40153
308 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
309 implies.
310
6241ded1
RE
3112009-05-16 Richard Earnshaw <rearnsha@arm.com>
312
313 * arm.md (movdi2): Copy non-reg values to DImode registers.
314
a99c6711
JJ
3152009-05-16 Jakub Jelinek <jakub@redhat.com>
316
40a8f07a
JJ
317 PR target/39942
318 * final.c (label_to_max_skip): New function.
319 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
320 CODE_LABEL_NUMBER <= max_labelno.
321 * output.h (label_to_max_skip): New prototype.
322 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
323 (ix86_avoid_jump_mispredicts): ... this. Don't define if
324 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
325 Handle CODE_LABELs with >= 16 byte alignment or with
326 max_skip == (1 << align) - 1.
327 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
328 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
329
a99c6711
JJ
330 PR target/39942
331 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
332 .p2align 3 if MAX_SKIP is smaller than 7.
333 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
334
7e5487a2
ILT
3352009-05-15 Ian Lance Taylor <iant@google.com>
336
337 * alias.c (struct alias_set_entry_d): Rename from struct
338 alias_set_entry. Change all uses.
339 * except.c (struct call_site_record_d): Rename from struct
340 call_site_record. Change all uses.
341 * except.h (struct eh_region_d): Rename from struct eh_region.
342 Change all uses.
343 * gcse.c (struct hash_table_d): Rename from struct hash_table.
344 Change all uses.
345 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
346 ivtype_map_elt. Change all uses.
347 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
348 Change all uses.
349 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
350 * graphite.h (struct name_tree_d): Rename from struct name_tree.
351 Change all uses.
352 (struct sese_d): Rename from struct sese. Change all uses.
353 * omega.h (struct eqn_d): Rename from struct eqn. Change all
354 uses.
355 (struct omega_pb_d): Rename from struct omega_pb. Change all
356 uses.
357 * optabs.h (struct optab_d): Rename from struct optab. Change all
358 uses.
359 (struct convert_optab_d): Rename from struct convert_optab.
360 Change all uses.
361 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
362 ipa_opt_pass. Change all uses.
363 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
364 all uses.
365
366 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
367 defined as a typedef.
368 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
369 defined as a tag.
370
a243fb4a
MLI
3712009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
372
373 PR 16302
374 * fold-const.c (make_range,build_range_check,merge_ranges): Move
375 declaration to...
376 (merge_ranges): Returns bool.
377 * tree.h (make_range): .. to here.
378 (build_range_check): Likewise.
379 (merge_ranges): Likewise. Renamed from merge_ranges.
380 * c-typeck.c (parser_build_binary_op): Update calls to
381 warn_logical_operator.
382 * c-common.c (warn_logical_operator): Add new warning.
383 * c-common.h (warn_logical_operator): Update declaration.
384
1b53c5f3
MLI
3852009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
386
387 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong
388 conditional.
389
c128599a
KG
3902009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
391
f9bab007
KG
392 * doc/install.texi: Document MPC requirements, flags etc.
393
c128599a
KG
394 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
395 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
396 Evaluate constant arguments.
397 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
398 (fold_builtin_1): Likewise, also evaluate constant arguments.
399 Remove superfluous break.
400 (do_mpc_ckconv): New.
401 * real.h: Include mpc.h.
402 * toplev.c (print_version): Output MPC version info if available.
403
d33e4b70
SL
4042009-05-15 Sandra Loosemore <sandra@codesourcery.com>
405
406 * fold-const.c (fold_convert_const_real_from_real): Check for
407 overflow.
408
a02ab464
L
4092009-05-15 H.J. Lu <hongjiu.lu@intel.com>
410
411 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
412 only once.
413
796bda22
JH
4142009-05-15 Jan Hubicka <jh@suse.cz>
415
416 * doc/invoke.texi (max-early-inliner-iterations): New flag.
417 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
418 (try_inline): Fix return value.
419 (cgraph_decide_inlining_incrementally): Honor new value.
420 (cgraph_early_inlining): Handle indirect inlining.
421 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
422
d88e5c37
JH
4232009-05-15 Jan Hubicka <jh@suse.cz>
424
425 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
426 * cgraphunit.c (cgraph_finalize_function): Set it.
427 (cgraph_expand_function): Use it.
428
ae63687c
SL
4292009-05-15 Sandra Loosemore <sandra@codesourcery.com>
430
431 * real.c (encode_ieee_half): Define.
432 (decode_ieee_half): Define.
433 (ieee_half_format): Define.
434 (arm_half_format): Define.
435 * real.h (ieee_half_format): Declare.
436 (arm_half_format): Declare.
437
1bd74ad9
SL
4382009-05-15 Sandra Loosemore <sandra@codesourcery.com>
439
440 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
441 swapped, and reversed optabs exist before trying to use them.
442
dc34db56
PB
4432009-05-15 Paul Brook <paul@codesourcery.com>
444 Sandra Loosemore <sandra@codesourcery.com>
445
dc34db56
PB
446 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
447 loads. Allow PRE_DEC.
448 (output_move_neon): Handle PRE_DEC.
449 (arm_print_operand): Add 'A' for neon structure loads.
450 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
451 * config/arm/neon.md (neon_mov): Update comment.
452 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
453 calls.
454 (Um): New constraint.
455
1d405d7b
JH
4562009-05-15 Jan Hubicka <jh@suse.cz>
457
458 Revert the following patch until testsuite fallout is fixed:
459 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
460 * cgraph.h (struct inline_summary): New filed self_wize,
461 size_inlining_benefit, self_time and time_inlining_benefit.
462 (struct cgraph_global_info): Replace insns by time ans size fields.
463 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
464 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
465 (ipcp_update_callgraph): Do not touch function bodies.
466 * ipa-inline.c: Include except.h
467 MAX_TIME: New constant.
468 (overall_insns): Remove
469 (overall_size, max_benefit): New static variables.
470 (cgraph_estimate_time_after_inlining): New function.
471 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
472 (cgraph_clone_inlined_nodes): Update size.
473 (cgraph_mark_inline_edge): Update size.
474 (cgraph_estimate_growth): Use size info.
475 (cgraph_check_inline_limits): Check size.
476 (cgraph_default_inline_p): Likewise.
477 (cgraph_edge_badness): Compute badness based on benefit and size cost.
478 (cgraph_decide_recursive_inlining): Check size.
479 (cgraph_decide_inlining_of_small_function): Update size; dump sizes and times.
480 (cgraph_decide_inlining): Likewise.
481 (cgraph_decide_inlining_incrementally): Likewise; honor PARAM_EARLY_INLINING_INSNS.
482 (likely_eliminated_by_inlining_p): New predicate.
483 (estimate_function_body_sizes): New function.
484 (compute_inline_parameters): Use it.
485 * except.c (must_not_throw_labels): New function.
486 * except.h (must_not_throw_labels): Declare.
487 * tree-inline.c (init_inline_once): Kill inlining_weigths
488 * tree-ssa-structalias.c: Avoid uninitialized warning.
489 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
490 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
491 (PARAM_INLINE_CALL_COST): Remove.
492 (PARAM_EARLY_INLINING_INSNS): New.
493
7ffa47ca
RG
4942009-05-15 Richard Guenther <rguenther@suse.de>
495
496 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
497 not TODO_update_ssa.
498
828552ed
RG
4992009-05-15 Richard Guenther <rguenther@suse.de>
500
501 PR tree-optimization/39999
502 * gimple.h (gimple_expr_type): Use the expression type looking
503 through useless conversions.
504 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
505 (vn_nary_op_insert_stmt): Likewise.
506 (simplify_binary_expression): Likewise.
507
248fc9f3
RG
5082009-05-15 Richard Guenther <rguenther@suse.de>
509
510 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
511 New options, enabled by default.
512 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
513 Document.
514 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
515 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
516 * tree-ssa-structalias.c (gate_tree_pta): New function.
517 (pass_build_alias): Use it.
518
16b29cc4
JM
5192009-05-15 Joseph Myers <joseph@codesourcery.com>
520
521 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
522 recurse on an invariant address if a conversion from a pointer
523 type to a wider integer type is involved.
524
125cae84
JH
5252009-05-15 Jan Hubicka <jh@suse.cz>
526
527 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
528 * cgraph.h (struct inline_summary): New filed self_wize,
529 size_inlining_benefit, self_time and time_inlining_benefit.
530 (struct cgraph_global_info): Replace insns by time ans size fields.
531 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
532 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
533 (ipcp_update_callgraph): Do not touch function bodies.
534 * ipa-inline.c: Include except.h
535 MAX_TIME: New constant.
536 (overall_insns): Remove
537 (overall_size, max_benefit): New static variables.
538 (cgraph_estimate_time_after_inlining): New function.
539 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
540 (cgraph_clone_inlined_nodes): Update size.
541 (cgraph_mark_inline_edge): Update size.
542 (cgraph_estimate_growth): Use size info.
543 (cgraph_check_inline_limits): Check size.
544 (cgraph_default_inline_p): Likewise.
545 (cgraph_edge_badness): Compute badness based on benefit and size cost.
546 (cgraph_decide_recursive_inlining): Check size.
547 (cgraph_decide_inlining_of_small_function): Update size; dump sizes and times.
548 (cgraph_decide_inlining): Likewise.
549 (cgraph_decide_inlining_incrementally): Likewise; honor PARAM_EARLY_INLINING_INSNS.
550 (likely_eliminated_by_inlining_p): New predicate.
551 (estimate_function_body_sizes): New function.
552 (compute_inline_parameters): Use it.
553 * except.c (must_not_throw_labels): New function.
554 * except.h (must_not_throw_labels): Declare.
555 * tree-inline.c (init_inline_once): Kill inlining_weigths
556 * tree-ssa-structalias.c: Avoid uninitialized warning.
557 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
558 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
559 (PARAM_INLINE_CALL_COST): Remove.
560 (PARAM_EARLY_INLINING_INSNS): New.
561 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
562 (inline-call-cost): Remove.
563 (early-inlining-insns): New.
564
84fb43a1
EB
5652009-05-15 Eric Botcazou <ebotcazou@adacore.com>
566
567 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
568 for bounds.
569 (print_int_cst_bounds_in_octal_p): Likewise.
570 (dbxout_type): Adjust calls to above functions. Be prepared to deal
571 with subtypes.
572 * dwarf2out.c (base_type_die): Likewise.
573 (is_subrange_type): Delete.
574 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
575 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
576 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it if
577 the destination type is boolean.
578 (build_range_check): Do not special-case subtypes.
579 (fold_sign_changed_comparison): Likewise.
580 (fold_unary): Likewise.
581 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
582 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
583 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
584 * tree.c (subrange_type_for_debug_p): New predicate based on the former
585 is_subrange_type.
586 * tree.h (subrange_type_for_debug_p): Declare.
587 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
588 (convert_affine_scev): Remove call to above function.
589 (chrec_convert_aggressive): Likewise.
590 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
591 false for conversions involving subtypes.
592 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
593 (vrp_val_min): Likewise.
594 (needs_overflow_infinity): Likewise.
595 (extract_range_from_unary_expr): Likewise.
596
331d9186
PB
5972009-05-15 Paolo Bonzini <bonzini@gnu.org>
598
e9351712
L
599 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
600 * config/frv/frv.c: Likewise.
601 * config/s390/s390.c: Likewise.
602 * config/sparc/sparc.h: Likewise.
603 * config/i386/i386.h: Likewise.
604 * config/i386/i386.c: Likewise.
605 * config/crx/crx.c: Likewise.
606 * config/m68hc11/m68hc11.h: Likewise.
607 * config/iq2000/iq2000.c: Likewise.
608 * config/mn10300/mn10300.h: Likewise.
609 * config/mn10300/mn10300.c: Likewise.
610 * config/m68k/m68k.c: Likewise.
611 * config/rs6000/rs6000.c: Likewise.
612 * config/rs6000/xcoff.h: Likewise.
613 * config/rs6000/linux64.h: Likewise.
614 * config/rs6000/sysv4.h: Likewise.
615 * config/score/score3.c: Likewise.
616 * config/score/score7.c: Likewise.
617 * config/score/score.c: Likewise.
618 * config/arm/arm.md: Likewise.
619 * config/mips/mips.c: Likewise.
620 * config/mips/mips.md: Likewise.
621 * config/bfin/bfin.h: Likewise.
622 * config/pa/pa.c: Likewise.
623 * config/pa/constraints.md: Likewise.
624
625 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
626 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
627 * config/pdp11/pdp11.h: Use memory_address_p instead.
331d9186 628
09639a83
ILT
6292009-05-14 Ian Lance Taylor <iant@google.com>
630
631 * passes.c (finish_optimization_passes): Change i to int.
632 * plugin.c (plugins_active_p): Change event to int.
633 (dump_active_plugins): Likewise.
634 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
635 Add cast.
636 * tree.c (tree_range_check_failed): Change c to unsigned int.
637 (omp_clause_range_check_failed): Likewise.
638 (build_common_builtin_nodes): Change mode to int. Add cast.
639 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
640 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
641
642 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
643 ++ or -- with a variable of enum type.
644
c04a56bf
SB
6452009-05-14 Steven Bosscher <steven@gcc.gnu.org>
646
647 PR driver/40144
648 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
649
237ee620
SB
6502009-05-14 Steven Bosscher <steven@gcc.gnu.org>
651
652 * store-motion.c: Do not include params.h
653 * Makefile.in: Fix dependencies for various files.
654
1154c4fa
SB
6552009-05-14 Steven Bosscher <steven@gcc.gnu.org>
656
657 * auto-inc-dec.c: Fix pass description, remove apparent
658 accidental duplication.
659
61c27353
L
6602009-05-14 H.J. Lu <hongjiu.lu@intel.com>
661
662 PR middle-end/40147
663 * ipa-utils.h (memory_identifier_string): Moved to ...
664 * tree.h (memory_identifier_string): Here. Add GTY(()).
665
c6c3dba9
PB
6662009-05-14 Paolo Bonzini <bonzini@gnu.org>
667
668 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
669 in the former documentation of...
670 (GO_IF_LEGITIMATE_ADDRESS): ... this.
671 * ira-conflicts.c (get_dup_num): Use address_operand.
672 * targhooks.c (default_legitimate_address_p): New.
673 * targhooks.h (default_legitimate_address_p): New.
674 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
675 Call hook.
676 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
677 * target.h (struct target): Add legitimate_address_p.
678 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
679 (TARGET_INITIALIZER): Include it.
680
681 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
682 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
683 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
684 (TARGET_LEGITIMATE_ADDRESS_P): New.
685
686 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
687 (REG_OK_STRICT_P): Delete.
688 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
689 (frv_legitimate_address_p_1): ... this.
690 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
691 (frv_legitimate_address_p_1): ... the renamed old
692 frv_legitimate_address_p.
693 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
694 (TARGET_LEGITIMATE_ADDRESS_P): New.
695
696 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
697 * config/s390/s390-protos.h (legitimate_address_p): Remove.
698 * config/s390/s390.c (legitimate_address_p): Rename to...
699 (s390_legitimate_address_p): ... this, make static.
700 (legitimize_address): Adjust call.
701 (TARGET_LEGITIMATE_ADDRESS_P): New.
702 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
703
704 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
705 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
706 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
707 (TARGET_LEGITIMATE_ADDRESS_P): New.
708
709 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
710 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
711 * config/spu/spu.c (spu_legitimate_address): Rename to...
712 (spu_legitimate_address_p): ... this, make static.
713 (TARGET_LEGITIMATE_ADDRESS_P): New.
714
715 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
716 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
717 * config/sparc/sparc.c (legitimate_address_p): Rename to...
718 (sparc_legitimate_address_p): ... this, make static and return bool.
719 (legitimize_address): Adjust call.
720 (TARGET_LEGITIMATE_ADDRESS_P): New.
721
722 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
723 * config/i386/i386-protos.h (legitimate_address_p): Remove.
724 * config/i386/i386.c (legitimate_address_p): Rename to...
725 (ix86_legitimate_address_p): ... this, make static.
726 (constant_address_p): Move after it, adjust call.
727 (TARGET_LEGITIMATE_ADDRESS_P): New.
728
729 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
730 * config/avr/avr-protos.h (legitimate_address_p): Remove.
731 * config/avr/avr.c (legitimate_address_p): Rename to...
732 (avr_legitimate_address_p): ... this, make static.
733 (legitimize_address): Adjust call.
734 (TARGET_LEGITIMATE_ADDRESS_P): New.
735
736 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
737 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
738 * config/crx/crx.c (crx_legitimate_address_p): Make static.
739 (TARGET_LEGITIMATE_ADDRESS_P): New.
740
741 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
742 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
743 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
744 (TARGET_LEGITIMATE_ADDRESS_P): New.
745
746 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
747 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
748 Remove.
749 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
750 Make static.
751 (TARGET_LEGITIMATE_ADDRESS_P): New.
752
753 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
754 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
755 Remove.
756 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
757 Rename to...
758 (m68hc11_legitimate_address_p): ... this, make static.
759 (go_if_legitimate_address_internal): Rename to...
760 (m68hc11_legitimate_address_p_1): ... this.
761 (legitimize_address): Adjust call.
762 (TARGET_LEGITIMATE_ADDRESS_P): New.
763
764 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
765 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p):
766 Remove.
767 * config/iq2000/iq2000.c (iq2000_legitimate_address_p):
768 Make static.
769 (TARGET_LEGITIMATE_ADDRESS_P): New.
770
771 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
772 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
773 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
774 (mn10300_legitimate_address_p): ... this, make static.
775 (TARGET_LEGITIMATE_ADDRESS_P): New.
776
777 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
778 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
779 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
780 (TARGET_LEGITIMATE_ADDRESS_P): New.
781
782 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
783 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
784 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
785 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
786 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
787 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
788 (rs6000_legitimate_address_p): ... this, make static.
789 (TARGET_LEGITIMATE_ADDRESS_P): New.
790 (REG_MODE_OK_FOR_BASE_P): Delete.
791 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
792
793 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
794 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
795 Delete.
796 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
797 static, adjust types.
798 (TARGET_LEGITIMATE_ADDRESS_P): New.
799
800 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
801 * config/score/score.c (score_address_p): Rename to...
802 (score_legitimate_address_p): ... this.
803 (TARGET_LEGITIMATE_ADDRESS_P): New.
804 * config/score/score3.c (score3_address_p): Rename to...
805 (score3_legitimate_address_p): ... this.
806 * config/score/score7.c (score7_address_p): Rename to...
807 (score7_legitimate_address_p): ... this.
808
809 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
810 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
811 GO_IF_LEGITIMATE_ADDRESS): Delete.
812 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
813 thumb2_legitimate_address_p): Delete.
814 (arm_legitimate_address_p): Rename to...
815 (arm_legitimate_address_outer_p): ... this.
816 * config/arm/constraints.md ("Uq"): Adjust call.
817 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
818 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one to...
819 (arm_legitimate_address_outer_p): ... this.
820 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make static.
821 (TARGET_LEGITIMATE_ADDRESS_P): New.
822
823 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
824 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
825 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
826 (TARGET_LEGITIMATE_ADDRESS_P): New.
827
828 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
829 * config/vax/vax-protos.h (legitimate_address_p): Remove.
830 * config/vax/vax.c (legitimate_address_p): Rename to...
831 (vax_legitimate_address_p): ... this, make static.
832 (TARGET_LEGITIMATE_ADDRESS_P): New.
833
834 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
835 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
836 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
837 (TARGET_LEGITIMATE_ADDRESS_P): New.
838
839 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
840 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
841 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
842 (mmix_legitimate_address_p): ... this, make static.
843 (TARGET_LEGITIMATE_ADDRESS_P): New.
844
845 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
846 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
847 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
848 (TARGET_LEGITIMATE_ADDRESS_P): New.
849
3bd0d9c8
PB
8502009-05-14 Paolo Bonzini <bonzini@gnu.org>
851
852 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
853 of MODE_COMPLEX_INT.
854
fe049033
RO
8552009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
856
857 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
858 LCT_NORMAL in function call.
859 * mips-tdump.c (print_file_desc): Add cast to enum type.
860 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
861 (mark_stabs): Add casts to enum types.
862 (parse_stabs_common): Add casts to enum types.
16f7ad42 863
b0907a6c
AN
8642009-05-13 Adam Nemet <anemet@caviumnetworks.com>
865
866 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
867 Check for invalid values of LETTER.
868
d1c8e08a
TG
8692009-05-13 Taras Glek <tglek@mozilla.com>
870
16f7ad42
TG
871 * attribs.c (register_attribute): moved out attribute registration into
872 register_attribute.
873 * doc/plugins.texi: Documented register_attribute and PLUGIN_ATTRIBUTES.
874 * gcc-plugin.h: Added forward decl for register_attribute.
875 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
876 * plugin.c (register_callback, invoke_plugin_callbacks): Added
877 PLUGIN_ATTRIBUTES boilerplate.
d1c8e08a 878
4ed7f970
DK
8792009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
880
881 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
882 values even in sentinel and empty entries.
883 (ms_printf_flag_specs): Likewise.
884 (ms_scanf_flag_specs): Likewise.
885 (ms_strftime_flag_specs): Likewise.
886 (ms_print_char_table): Likewise.
887 (ms_scan_char_table): Likewise.
888 (ms_time_char_table): Likewise.
889
3d8fa148
DK
8902009-05-13 Doug Kwan <dougkwan@google.com>
891
892 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
893
f06257d3
AN
8942009-05-13 Adam Nemet <anemet@caviumnetworks.com>
895
896 * config/mips/mips.md (store): Add attributes for QI and HI.
897 Update comment.
898 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
899 (truncdi<mode>2): ... this new pattern.
900
fb201767
BH
9012009-05-13 Brad Hards <bradh@kde.org>
902
903 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
904
c7bda60e 9052009-05-14 Jakub Jelinek <jakub@redhat.com>
efc3527a
BE
906 Ben Elliston <bje@au.ibm.com>
907
908 PR middle-end/40035
909 * dse.c (check_mem_read_rtx): Guard against width == -1.
910
ce985b43
MM
9112009-05-13 Michael Matz <matz@suse.de>
912
913 PR middle-end/39976
914 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
915 (trivially_conflicts_p): New function.
916 (insert_backedge_copies): Use it.
917
7de1d221
JJ
9182009-05-13 Janis Johnson <janis187@us.ibm.com>
919
920 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
921 (handle_stdc_pragma): Use new enum constant names.
922 (handle_pragma_float_const_decimal64): Ditto.
923
bfefafc6
ILT
9242009-05-13 Ian Lance Taylor <iant@google.com>
925
926 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
927 tree.def.
928
286c4fcb
NS
9292009-05-13 Nathan Sidwell <nathan@codesourcery.com>
930
931 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
932 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
933 multilibs.
934 * config/m68k/m68k.h (FL_UCLINUX): Define.
935
ebaa6ea7
JH
9362009-05-13 Jan Hubicka <jh@suse.cz>
937
938 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
939
2b703e1a
KK
9402009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
941
942 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
943 unless -fschedule-insns is specified.
944
c3537723
KK
9452009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
946
947 PR target/39561
948 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
949 TARGET_EXPAND_CBRANCHDI4.
950 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
951 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
952 (cmpeqdi): Fix comment.
953
cdeed45a
KK
9542009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
955
956 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
957 (sh_legitimate_address_p): Likewise.
958 * config/sh/sh.c (sh_legitimate_index_p): New.
959 (sh_legitimate_address_p): Likewise.
960 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
961 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
962 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
963 (MAYBE_BASE_REGISTER_RTX_P): New macro.
964 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
965 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
966 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
967 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
968 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
969
02f0b13a
JH
9702009-05-12 Jan Hubicka <jh@suse.cz>
971
972 * tree-inline.c (estimate_operator_cost): Add operands;
973 when division happens by constant, it is cheap.
974 (estimate_num_insns): Loads and stores are not having cost of 0;
975 EH magic stuff is cheap; when computing runtime cost of switch,
976 use log2 base of amount of its cases; builtin_expect has cost of 0;
977 compute cost for moving return value of call.
978 (init_inline_once): Initialize time_based flags.
979 * tree-inline.h (eni_weights_d): Add time_based flag.
980
ecb7f6de
PB
9812009-05-12 Paolo Bonzini <bonzini@gnu.org>
982
983 * df-core.c: Update head documentation.
984
c24151ce
MM
9852009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
986
987 PR bootstrap/40118
988 * rs6000.c (rs6000_generate_compare): Use op1b instead of
989 shadowing exisiting variable op1.
990
fbdf817d
UB
9912009-05-12 Uros Bizjak <ubizjak@gmail.com>
992
704bf7c8 993 PR target/37179
fbdf817d
UB
994 * config/i386/driver-i386.c (processor_signatures): New enum.
995 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
996 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
997 processor signature to detect geode processor.
998
5e8d1826
PB
9992009-05-12 Paolo Bonzini <bonzini@gnu.org>
1000
1001 Revert:
1002
1003 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
1004
1005 * optabs.c (prepare_cmp_insn): Temporarily disable test that
1006 causes spurious differences between trunk and cond-optab branch.
1007
f90b7a5a
PB
10082009-05-12 Paolo Bonzini <bonzini@gnu.org>
1009
fbdf817d
UB
1010 * dojump.c (compare_from_rtx): Delete.
1011 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
1012 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
f90b7a5a
PB
1013 if the comparison does not satisfy the predicate; test predicates for
1014 operands 2 and 3 of a cstore pattern. Don't try cstore optab
1015 further if one existing pattern fails.
fbdf817d 1016 * expr.h (compare_from_rtx): Delete.
f90b7a5a 1017 (prepare_operand): Declare it.
fbdf817d 1018 * optabs.c: Change "lib call" to "libcall" throughout.
f90b7a5a 1019 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
fbdf817d
UB
1020 HAVE_conditional_trap, emit_cmp_insn): Delete.
1021 (can_compare_p): Delete cmp_optab case.
f90b7a5a 1022 (prepare_float_lib_cmp): Return an rtx and a machine mode.
fbdf817d
UB
1023 Accept other parameters by value.
1024 (prepare_operand): Make non-static.
1025 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
1026 other parameters by value. Try to widen operands here based on
1027 an optab_methods argument and looking at cbranch_optab.
1028 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
1029 loop. Use cbranch_optab directly.
1030 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
1031 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
1032 assertion.
1033 (emit_conditional_move, emit_conditional_add): Inline what's needed
1034 of compare_from_rtx, using new prepare_cmp_insn for the rest.
1035 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
1036 with COMPARE. Move cmov_optab and cstore_optab above
1037 with cbranch_optab, move cmp_optab down with ucmp_optab,
1038 remove tst_otpab. Do not initialize trap_rtx.
1039 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
f90b7a5a
PB
1040 for trap code. Do not check HAVE_conditional_trap. Use
1041 prepare_cmp_insn. Accept no predicate for operand 3.
fbdf817d
UB
1042 * optabs.h (OTI_cmp): Mark as used only for libcalls.
1043 (OTI_ctrap, ctrap_optab): New.
1044 (tst_optab): Delete.
1045 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
1046 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
1047 with lookup of ctrap_optab.
1048 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn,
1049 setcc_gen_code): Delete.
1050 (ctrap_optab): New.
1051
1052 * combine.c (combine_simplify_rtx, simplify_set): Do not
1053 special case comparing against zero for cc0 machines.
f90b7a5a
PB
1054 * simplify-rtx.c (simplify_binary_operation_1): Never remove
1055 COMPARE on cc0 machines.
1056 (simplify_relational_operation): Return a new expression when
1057 a COMPARE could be removed.
fbdf817d
UB
1058 * final.c (final_scan_insn): Compare cc_status values
1059 against LHS of a (compare FOO (const_int 0)) cc0 source.
1060 Also check if cc_status.value is the full compare.
f90b7a5a 1061
fbdf817d
UB
1062 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
1063 (cstoreMM4): Document.
f90b7a5a 1064 (conditional_trap): Document ctrapMM4 instead.
fbdf817d 1065 (sync_compare_and_swapMM): Refer to cbranchcc4.
f90b7a5a
PB
1066 (Dependent Patterns): Eliminate obsolete information referring to
1067 the old jump optimization phase.
fbdf817d 1068 (Canonicalization): Include cbranchcc4 case, omit canonicalization
f90b7a5a
PB
1069 of compares with 0 on cc0 machines.
1070 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
1071 avoiding references to cc0. Remove text about storing operands
1072 in cmpMM.
1073 * doc/tm.texi (Condition Codes): Include blurb on different
1074 condition code representations, separate into subsections for
1075 CC0, MODE_CC and conditional execution.
1076
fbdf817d
UB
1077 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
1078 alpha_emit_setcc): Accept operands and a machine mode.
1079 * config/alpha/alpha.c (alpha_emit_conditional_branch):
1080 Get code/op0/op1 from operands, use machine mode argument
1081 instead of alpha_compare.fp_p. Emit the branch here.
1082 (alpha_emit_setcc): Likewise, and return boolean.
1083 (alpha_emit_conditional_move): Likewise. Assert that
1084 cmp_op_mode == cmp_mode, and simplify accordingly.
1085 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
1086 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
1087 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
1088 Delete.
1089 (stack probe test): Use cbranchdi4.
1090 * config/alpha/predicates.md (alpha_cbranch_operator): New.
1091
1092 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
1093 * config/arc/arc.h (movsicc, movsfcc): Use it.
1094 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
1095 (cbranchsi4, cstoresi4): New.
1096 (cmpsi, bCC and sCC expanders): Remove.
1097
1098 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
1099 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
1100 * config/arm/predicates.md (arm_comparison_operator): Only include
1101 floating-point operators if there is a hardware floating-point unit.
1102 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
1103 deferring to cbranch_cc and cstore_cc respectively.
1104 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
1105 cbranch_cc, cstore_cc): New.
1106 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
f90b7a5a 1107 arm_compare_op1.
fbdf817d
UB
1108 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
1109
1110 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
1111 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
1112 as an argument.
1113 (adjust_insn_length): Adjust calls.
1114 (avr_reorg): Handle (compare (foo) (const_int 0)).
1115 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
1116 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
1117 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
1118 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
1119 (bCC): Remove.
1120 (cbranchqi4, cbranchhi4, cbranchsi4): New.
f90b7a5a
PB
1121 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
1122
fbdf817d
UB
1123 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
1124 (cbranchsi4, cstorebi4, cstoresi4): New.
f90b7a5a 1125 (movbisi): This insn is duplicate, split it to zero_extend.
fbdf817d
UB
1126 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
1127 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
1128 (bfin_optimize_loop): Use cbranch expander.
1129 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
1130 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
1131 (bfin_bimode_comparison_operator): ... this.
1132 (bfin_direct_comparison_operator): New.
f90b7a5a 1133
fbdf817d
UB
1134 * config/cris/cris.c (cris_normal_notice_update_cc): Look
1135 inside (compare FOO (const_int 0)).
1136 (cris_rtx_costs): Handle ZERO_EXTRACT.
1137 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
1138 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
1139 (*tstdi_v32): Delete.
1140 (*cmpdi_non_v32): Add M alternative for operand 1.
1141 (cmpsi, cmp<mode>): Make private.
1142 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
1143 with COMPARE.
1144 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
1145
1146 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
1147 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
1148 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
f90b7a5a
PB
1149 (cc_reg_operand): New.
1150 (any_cond): Delete.
fbdf817d
UB
1151 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
1152 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
1153 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
1154 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
1155 crx_expand_scond): Delete.
1156
1157 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
1158 (cbranchsi4): New.
1159 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
1160 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
1161
1162 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
1163 cstoresi4, cstoresf4, cstoredf4): New.
1164 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
1165 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
1166 Receive the entire operands array.
1167 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
1168 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
1169 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
1170 Get test/op0/op1 from the operands array.
1171 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
1172
1173 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
1174 (h8300_expand_store): New.
1175 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
1176 (const_int 0)).
1177 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
1178 (h8300_expand_store): New.
1179 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
1180 or do not try to produce (set (cc0) REG).
1181 (peepholes): Wrap arguments with COMPARE. Add a peephole to
1182 change a compare into a move to a scratch register. Disable some
1183 peepholes when comparing with zero.
1184 (tstsi, tsthi, tstsi, cmpqi): Make private.
1185 (cmphi): Delete.
1186 (bCC, sCC): Delete.
1187 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
1188 cstoresi4): New.
f90b7a5a
PB
1189
1190 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
1191 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
1192 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
1193 (ix86_emit_i387_log1p): Use cbranchxf2.
1194 (ix86_expand_setcc): Return void.
1195 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
1196 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
1197 cmp<MODEF>, cmpcc): Remove.
fbdf817d
UB
1198 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
1199 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
1200 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
f90b7a5a
PB
1201 (sCC and bCC expanders): Remove.
1202 (stack_protect_test): Use cbranchcc4.
1203
fbdf817d
UB
1204 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
1205 Delete.
1206 (ia64_expand_compare): Accept three rtx by reference and return void.
1207 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
1208 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
1209 from *expr. Update *expr with the BImode comparison to do.
1210 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
1211 cmptf, bCC, sCC, conditional_trap): Delete.
1212 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
1213 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
1214 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
1215 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
1216 * config/ia64/predicates.md (ia64_cbranch_operator): New.
1217
1218 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
1219 type of last argument.
1220 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
1221 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
1222 use machine mode argument instead of branch_type. Remove dead
1223 code for floating-point comparisons.
1224 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
1225 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
1226 Remove.
1227 (cbranchsi4, cstoresi4): New.
1228 * config/iq2000/predicates.md (reg_or_const_operand): New.
1229
1230 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
1231 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
1232 (b<code>_op): Rewrite to...
1233 (bcc_op): ... this, using match_operator.
1234 (s<code>_op): Rewrite to...
1235 (scc_op): ... this, using match_operator.
1236 (s<code>_24_op): Rewrite to...
1237 (scc_op_24): ... this, using match_operator.
1238 (s<code>_<mode>): Rewrite to...
1239 (cstore<mode>4): ... this, using match_operator.
1240 (s<code>_<mode>_24): Rewrite to...
1241 (cstore<mode>4_24): ... this, using match_operator.
1242 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
1243 m32c_unpend_compare, m32c_expand_scc): Delete.
1244 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
1245 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
1246 (m32c_expand_movcc): Change NE to EQ if necessary.
1247 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
1248
1249 * config/m32r/m32r-protos.h (gen_cond_store): New.
1250 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
1251 (gen_cond_store): New, from sCC patterns.
1252 (m32r_expand_block_move): Use cbranchsi4.
1253 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
1254 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
1255 (cbranchsi4, cstoresi4): New.
1256
1257 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
1258 Delete.
1259 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
f90b7a5a 1260 (m68hc11_notice_update_cc): Look into a compare with 0.
fbdf817d
UB
1261 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
1262 Delete.
1263 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
1264 cmphi, cmpqi, bCC): Delete.
1265 (cbranchsi4, cbranchhi4, cbranchqi4): New.
1266 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
1267 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
1268 sets with COMPARE.
1269
1270 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
1271 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
1272 * config/m68k/constraints.md (H): New.
1273 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
1274 the define_insn below.
1275 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
1276 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
1277 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
1278 patterns): Wrap RHS with COMPARE.
1279 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
1280 (*cmpdi_internal): Name this pattern.
1281 (cmpdi): Change to define_insn.
1282 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
1283 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
1284 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
1285 predicate.
1286 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
1287 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
1288 (conditional_trap): Change to...
1289 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
1290 (*conditional_trap): Use the ordered_comparison_operator and
1291 const1_operand predicates.
1292 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
1293 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
1294 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
1295 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
1296
1297 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
1298 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
1299 (mcore_gen_compare): New.
1300 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
1301 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
1302 (mcore_gen_compare): ... this.
1303 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
1304 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
1305 (stack probe pattern): Use cbranchsi4.
1306
1307 * config/mips/predicates.md (mips_cstore_operator): New.
1308 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
1309 * config/mips/mips.md (any_cond): Delete.
1310 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
1311 always succeed.
1312 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
1313 fixuns_truncsfdi2): Use cbranch patterns.
1314 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
1315 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
1316 Adjust call to mips_expand_conditional_branch.
1317 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
1318 cstore<GPR:mode>4.
1319 * config/mips/mips-protos.h (mips_expand_conditional_branch,
1320 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
1321 * config/mips/mips.c (cmp_operands): Delete.
1322 (mips_emit_compare): Get comparison operands from *op0/*op1.
1323 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
1324 that it succeeds. Use op0/op1 instead of cmp_operands.
1325 (mips_expand_conditional_branch, mips_expand_conditional_move,
1326 mips_expand_conditional_trap): Likewise.
1327 (mips_block_move_loop): Use cbranch patterns.
1328 * config/mips/mips.h (cmp_operands): Delete.
1329
1330 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
1331 (mmix_gen_compare_reg): Just return a register in the right CC mode.
1332 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
1333 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
1334 (*cmpcc_folded): Rename to...
1335 (*cmpdi_folded): this.
1336 (*cmpcc): Rename to...
1337 (*cmps): ... this.
1338 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
1339 (bCC): Remove.
1340 (cbranchdi4): New.
1341 (cbranchdf4): New. Handle invalid comparisons here.
1342 * config/mmix/predicates.md (float_comparison_operator): New.
1343
1344 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
1345 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
1346 * config/mn10300/mn10300.md (tst): Delete.
1347 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
1348 Name these patterns and wrap RHS in a compare.
1349 (*cmpsi): Make this pattern private. Include tst.
1350 (*cmpsf): Make this pattern private.
1351 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
1352 (compare with zero peepholes): Likewise.
1353 (bCC): Remove.
1354 (cbranchsi4, cbranchsf4): New.
1355 (casesi): Use cbranchsi4.
1356
1357 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
1358 hppa_branch_type): Delete.
1359 (return_addr_rtx): Use cbranchsi4.
1360 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
1361 Emit CCFPmode comparison here.
1362 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
1363 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
1364 hppa_branch_type): Delete.
1365 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
1366 (movsicc, movdicc): Remove references to hppa_compare_op0,
1367 hppa_compare_op1 and compare_from_rtx.
1368 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
1369 (casesi): Use cbranchsi4.
1370
1371 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
1372 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
1373 * config/pdp11/pdp11.md (register_or_const0_operand): New.
1374 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
1375 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
1376 (bCC): Delete.
1377 (cbranchdf4, cbranchhi4, cbranchqi4): New.
1378 (*branch, *branch_inverted): New.
1379
1380 * config/picochip/picochip.md (cbranchhi4): Use
1381 ordered_comparison_operator.
1382 (cmphi, bCC): Remove.
1383
1384 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
1385 (trap_comparison_operator): Delete.
1386 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
1387 rs6000_emit_cbranch): Accept mode and operands.
1388 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
1389 rs6000_compare_fp_p): Delete.
1390 (rs6000_generate_compare): Accept mode and comparison. Extract code
1391 and op0/op1 from there. Replace references to rs6000_compare_op0
1392 and rs6000_compare_op1.
1393 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
1394 extract result from passed operands.
1395 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
1396 extract loc from passed operands.
1397 (rs6000_emit_cmove): Likewise.
1398 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
1399 rs6000_compare_fp_p): Delete.
1400 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
1401 (cbranch<GPR>4, cbranch<FP>4): New.
1402 (cstore<mode>4): New. Consolidate here all choices about when to use
1403 portable or specialized sCC sequences.
1404 (stack_protect_test): Use cbranchsi4.
1405 (conditional_trap): Replace with ctrap<GPR>4.
1406 (conditional trap insn): Replace trap_comparison_operator with
1407 ordered_comparison_operator.
1408
1409 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
1410 (s390_emit_prologue): Use ctrap.
1411 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
1412 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
1413 New predicates replacing...
1414 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
1415 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
1416 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
1417 (add<mode>cc): Do not use s390_compare_op0/op1.
1418 (s<code>): Change to...
1419 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
1420 (seq): Change to...
1421 (cstorecc4): ... this. Handle EQ or NE equally.
1422 (*sne): Un-privatize for use in cstorecc4.
1423 (b<code>): Change to...
1424 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
1425 (conditional_trap): Replace with...
1426 (ctrap<GPR>4, ctrap<FP>4): ... these.
1427 (stack_protect): Use cbranchcc4.
1428
1429 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
1430 * config/score/score-protos.h (score_gen_cmp): Delete.
1431 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
1432 (score_block_move-loop): Use cbranchsi4.
1433 * config/score/score.md (cbranchsi4): New.
1434 (cmpsi, bCC): Delete.
1435 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
1436 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
1437 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
1438 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
1439 * config/score/score3.h (score3_gen_cmp): Delete.
1440 * config/score/score7.h (score7_gen_cmp): Delete.
1441
1442 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
1443 (sh_emit_scc_to_t): ... this. Return void.
1444 (from_compare): Rename to...
1445 (sh_emit_compare_and_branch): ... this.
1446 (sh_emit_compare_and_set): New.
1447 (sh_expand_t_scc): Accept operands.
1448 * config/sh/predicates.md (sh_float_comparison_operator): New.
1449 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
1450 (prepare_scc_operands): Rename to...
1451 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
1452 arguments.
1453 (sh_emit_cheap_store_flag): New.
f90b7a5a 1454 (sh_emit_set_t_insn): New.
fbdf817d
UB
1455 (from_compare): Rename to...
1456 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
1457 handling of TARGET_SH2E floating point to avoid recursive call.
1458 Generate branch here.
1459 (sh_emit_compare_and_set): New.
1460 (sh_expand_t_scc): Get op0/op1 from arguments.
1461 (sh_emit_cheap_store_flag): New.
1462 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
1463 cases.
f90b7a5a 1464 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
fbdf817d
UB
1465 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
1466 (movsicc, movdicc): Do nothing when it recreated operands from
1467 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
1468 prepare_scc_operands (now sh_emit_scc_to_t).
1469 (udivdi3): Use cstoresi4.
1470 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
1471 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
1472 (cbranchint4_media, cbranchfp4_media): New.
1473 (casesi): Use cbranchdi4.
1474 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
1475 Delete.
1476 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
1477 (movnegt): Remove second operand.
1478 (cbranchsf4, cbranchdf4): New.
1479 (stack_protect): Use cbranchdi4/cbranchsi4.
1480
1481 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
1482 (gen_compare_reg): Accept comparison, extract part of it to...
1483 (gen_compare_reg_1): ... this.
1484 (gen_compare_operator): Delete.
1485 (gen_v9_scc): Accept separate destination, comparison code and arms.
1486 Do not use sparc_compare_op0/sparc_compare_op1.
1487 (emit_scc_insn, emit_conditional_branch_insn): New.
1488 (emit_v9_brxx): Make static. Remove useless assertion.
1489 (sparc_emit_float_lib_cmp): Return RTL instead of calling
1490 emit_cmp_insn.
1491 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
1492 * config/sparc/sparc-protos.h (gen_compare_reg,
f90b7a5a
PB
1493 sparc_emit_float_lib_cmp): Adjust prototype.
1494 (emit_scc_insn, emit_conditional_branch_insn): New.
1495 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
fbdf817d
UB
1496 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
1497 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
1498 iterators to the top.
1499 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
1500 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
f90b7a5a 1501 snedi_special_trunc): Delete.
fbdf817d 1502 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
f90b7a5a 1503 and snedi_special_trunc.
fbdf817d
UB
1504 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
1505 cbranchdi4, cbranch<F:mode>4): New.
1506 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
1507 here. Use gen_compare_reg instead of gen_compare_operator.
1508 (conditional_trap): Replace with...
1509 (ctrapsi4, ctrapdi4): ... this.
1510 (stack_protect_test): Use cbranchcc4.
1511
1512 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
1513 argument to rtx.
1514 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
1515 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
1516 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
1517 from operands[0] or operands[3] depending on is_set.
1518 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
1519 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
1520 cmpdf, bCC), sCC: Remove.
1521 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
1522 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
1523 cstoredf4): New.
1524 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
1525 spu_emit_branch_or_set.
1526
1527 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
1528 Add two arguments.
1529 * config/stormy16/stormy16.h (xstormy16_compare_op0,
1530 xstormy16_compare_op1): Delete.
1531 * config/stormy16/stormy16.c (xstormy16_compare_op0,
1532 xstormy16_compare_op1): Delete.
1533 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
1534 Adjust calls.
1535 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
1536 (cmphi, cmpsi, bCC): Remove.
1537
1538 * config/v850/v850.md (tstsi, cmpsi): Fold into...
1539 (*cmpsi): ... this one.
1540 (cbranchsi4, cstoresi4): New.
1541 (bCC expanders): Delete.
1542 (sCC insns): Fold into...
1543 (*setcc): ... this one.
1544 (casesi): Do not use gen_cmpsi and gen_bgtu.
f90b7a5a
PB
1545 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
1546 (movsicc): Simplify.
1547 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
1548
fbdf817d
UB
1549 * config/vax/vax-protos.h (cond_name): New.
1550 (vax_output_conditional_branch): Remove.
1551 * config/vax/vax.c (cond_name): New.
1552 (vax_output_conditional_branch): Remove.
1553 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
1554 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
1555 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
1556 (bit<VAXint>): Wrap source with (compare).
1557 (b<code> and following unnamed pattern): Rename to *branch and
1558 *branch_reversed. Change macroization to match_operator.
1559 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
1560
1561 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
1562 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
1563 Change last argument to machine_mode.
1564 (xtensa_expand_scc): Add machine_mode argument.
1565 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
1566 (gen_conditional_move, xtensa_expand_conditional_branch,
1567 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
1568 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
1569 Adjust operand numbers.
1570 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
1571 Delete.
1572 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
1573 (cmpsi, cmpsf, b<code>, s<code>): Delete.
1574 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
f90b7a5a 1575
16670495
PB
15762009-05-12 Paolo Bonzini <bonzini@gnu.org>
1577
1578 * optabs.c (prepare_cmp_insn): Temporarily disable test that
1579 causes spurious differences between trunk and cond-optab branch.
1580
4a4a4e99
AO
15812009-05-12 Alexandre Oliva <aoliva@redhat.com>
1582
1583 PR target/37137
1584 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
1585
72b9acff
AO
15862009-05-12 Alexandre Oliva <aoliva@redhat.com>
1587
1588 * tree.c (iterative_hash_pointer): Delete.
1589 (iterative_hash_expr): Short-circuit handling of NULL pointer.
1590 Hash UIDs and versions of SSA names. Don't special-case built-in
1591 function declarations.
1592
b7dd69ac
ILT
15932009-05-11 Ian Lance Taylor <iant@google.com>
1594
1595 PR bootstrap/40103
1596 * graphite.c: Force -Wc++-compat to only be a warning before
1597 #including "cloog/cloog.h".
1598
ed102b70
MJ
15992009-05-11 Martin Jambor <mjambor@suse.cz>
1600
1601 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
1602
08f1af2e
JH
16032009-05-11 Jan Hubicka <jh@suse.cz>
1604
1605 * tree-ssa-loop-ivcanon.c: Include target.h
1606 (struct loop_size): new structure.
1607 (constant_after_peeling): New predicate.
1608 (tree_estimate_loop_size): New function.
1609 (estimated_unrolled_size): Rewrite for new estimates.
1610 (try_unroll_loop_completely): Use new estimates.
1611 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
1612
a7d39bd3
AP
16132009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
1614
1615 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
1616 libcpp interface change.
1617 (spu_macro_to_expand): Likewise.
1618
f5a1f0d0
PB
16192009-05-11 Paolo Bonzini <bonzini@gnu.org>
1620
1621 PR tree-optimization/40026
1622 * gimplify.c (gimplify_init_constructor): Change initial conditional
1623 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
1624 optimize_compound_literals_in_ctor.
1625
c260f01f
NS
16262009-05-11 Nathan Sidwell <nathan@codesourcery.com>
1627
1628 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
1629 New devices.
1630 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
1631
df398a37
L
16322009-05-11 H.J. Lu <hongjiu.lu@intel.com>
1633
1634 * tree-vect-data-refs.c (vect_analyze_group_access): Use
1635 HOST_WIDE_INT for gap.
1636
4da39468
IR
16372009-05-11 Ira Rosen <irar@il.ibm.com>
1638
1639 PR tree-optimization/40074
1640 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
1641 account in group size and step comparison.
1642
4effdf02
RG
16432009-05-11 Richard Guenther <rguenther@suse.de>
1644
1645 * passes.c (init_optimization_passes): Strip now incorrect comment.
1646 (execute_function_todo): Do not set PROP_alias.
1647 * tree-pass.h (PROP_alias): Remove.
1648 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
1649 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
1650 * tree-nrv.c (pass_return_slot): Likewise.
1651 * tree-object-size.c (pass_object_sizes): Likewise.
1652 * tree-ssa-dom.c (pass_dominator): Likewise.
1653 (pass_phi_only_cprop): Likewise.
1654 * tree-ssa-dse.c (pass_dse): Likewise.
1655 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
1656 (pass_cselim): Likewise.
1657 * tree-ssa-pre.c (pass_pre): Likewise.
1658 (pass_fre): Likewise.
1659 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
1660 * tree-ssa-sink.c (pass_sink_code): Likewise.
1661 * tree-stdarg.c (pass_stdarg): Likewise.
1662 * tree-tailcall.c (pass_tail_calls): Likewise.
1663 * tree-vrp.c (pass_vrp): Likewise.
1664
24b97832
ILT
16652009-05-10 Ian Lance Taylor <iant@google.com>
1666
1667 * basic-block.h (enum profile_status): Break out of struct
1668 control_flow_graph.
1669 * cgraph.h (struct inline_summary): Break out of struct
1670 cgraph_local_info.
1671 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
1672 of struct cgraph_order_sort.
fbdf817d 1673 * combine.c (enum undo_kind): New enum, broken out of struct undo.
24b97832
ILT
1674 * cse.c (struct branch_path): Break out of struct
1675 cse_basic_block_data.
1676 * except.h (enum eh_region_type): Break out of struct eh_region.
1677 * gcc.c (enum add_del): Break out of struct modify_target.
fbdf817d 1678 * genrecog.c (enum decision_type): Break out of struct decision_test.
24b97832
ILT
1679 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
1680 ggc_pch_data.
fbdf817d
UB
1681 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
1682 * regmove.c (enum match_use): New enum, broken out of struct match.
24b97832
ILT
1683 * sched-int.h (enum post_call_group): New enum, broken out of
1684 struct deps.
1685 (struct deps_reg): Break out of struct deps.
1686 * target.h (struct asm_int_op): Break out of struct gcc_target.
1687 * tree-eh.c (struct goto_queue_node): Break out of struct
1688 leh_tf_state.
1689 * tree-inline.h (enum copy_body_cge_which): Break out of
1690 copy_body_data.
1691 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
1692
1693 * c-decl.c (in_struct, struct_types): New static variables.
1694 (pushtag): Add loc parameter. Change all callers.
1695 (lookup_tag): Add ploc parameter. Change all callers.
1696 (check_compound_literal_type): New function.
1697 (parser_xref_tag): Add loc parameter. Change all callers. If
1698 -Wc++-compat, warn about struct/union/enum types defined within a
1699 struct or union.
1700 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
1701 and loc parameters. Change all callers. Change error calls to
1702 error_at, using loc. For a redefinition, if the location of the
1703 original definition is known, report it. Set in_struct and
fbdf817d 1704 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
24b97832
ILT
1705 (finish_struct): Add new parameters enclosing_in_struct and
1706 enclosing_struct_types. Change all callers. Set
1707 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
1708 in the struct. If in a struct, add this struct to struct_types.
1709 (start_enum): Add loc parameter. Change all callers. Use
1710 error_at for errors, using loc. For a redefinition, if the
1711 location of the original definition is known, report it. If in a
1712 struct, add this enum type to struct_types. If -Wc++-compat warn
1713 if in sizeof, typeof, or alignof.
fbdf817d
UB
1714 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
1715 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
24b97832
ILT
1716 (c_parser_enum_specifier): Get enum location for start_enum.
1717 (c_parser_struct_or_union_specifier): Get struct location for
1718 start_struct. Save in_struct and struct_types status between
1719 start_struct and finish_struct.
1720 (c_parser_cast_expression): Get location of cast.
1721 (c_parser_alignof_expression): Get location of type.
1722 (c_parser_postfix_expression): Likewise.
1723 (c_parser_postfix_expression_after_paren_type): Add type_loc
fbdf817d
UB
1724 parameter. Change all callers. Call check_compound_literal_type.
1725 Use type_loc for error about variable size type.
1726 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
1727 of an enum constant from an enum type defined in a struct or union.
24b97832
ILT
1728 (c_cast_expr): Add loc parameter. Change all callers. If
1729 -Wc++-compat, warn about defining a type in a cast.
1730 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
1731 (start_enum, start_struct, finish_struct): Update declarations.
1732 (parser_xref_tag, c_cast_expr): Update declarations.
1733 (check_compound_literal_type): Declare.
1734
7a2738fa
BE
17352009-05-11 Ben Elliston <bje@au.ibm.com>
1736
1737 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
1738 for recent libcpp interface change.
1739 (rs6000_macro_to_expand): Likewise.
1740
af618949
MM
17412009-05-10 Michael Matz <matz@suse.de>
1742
1743 PR target/40031
1744 * config/arm/arm.c (require_pic_register): Emit on entry edge,
1745 not at entry of function.
1746
b7d7a473
RG
17472009-05-10 Richard Guenther <rguenther@suse.de>
1748
1749 PR tree-optimization/40081
1750 Revert
1751 * tree-sra.c (instantiate_element): Instantiate scalar replacements
1752 using the main variant of the element type. Do not fiddle with
1753 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
1754
1755 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
1756 structs with volatile fields.
1757
078c3644
JH
17582009-05-10 Jan Hubicka <jh@suse.cz>
1759
1760 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
fbdf817d
UB
1761 (estimate_move_cost): Assert that it does not get called for
1762 VOID_TYPE_P.
078c3644
JH
1763 (estimate_num_insns): Skip VOID types in argument handling.
1764 (optimize_inline_calls): Delete unreachable blocks and verify that
1765 callgraph is valid.
1766
39ff5a96
JH
17672009-05-10 Jan Hubicka <jh@suse.cz>
1768
1769 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
1770 * cgraph.c (cgraph_mark_address_taken_node): New function.
1771 (dump_cgraph_node): Dump new flag.
1772 * cgraph.h (struct cgraph_node): Add address_taken.
1773 (cgraph_mark_address_taken_node): New function.
39ff5a96
JH
1774 * ipa.c (cgraph_postorder): Prioritize functions with address taken
1775 since new direct calls can be born.
1776
9a0c6187
JM
17772009-05-10 Joseph Myers <joseph@codesourcery.com>
1778
1779 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
1780 tok->val.node.node.
1781
4b685e14
JH
17822009-05-10 Jan Hubicka <jh@suse.cz>
1783
1784 PR middle-end/40084
fb0be169
EB
1785 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
1786 argument; rewrite.
4b685e14
JH
1787 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
1788 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
1789 * tree-inline.c (copy_bb): Set frequency correctly.
fb0be169
EB
1790 (fold_marked_statements): Update call to
1791 cgraph_update_edges_for_call_stmt.
4b685e14 1792
29d08eba
JM
17932009-05-10 Joseph Myers <joseph@codesourcery.com>
1794
1795 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
1796 identifiers in diagnostics.
1797 * config/arm/arm.c (arm_handle_fndecl_attribute,
1798 arm_handle_isr_attribute): Likewise.
1799 * config/avr/avr.c (avr_handle_progmem_attribute,
1800 avr_handle_fndecl_attribute, avr_handle_fntype_attribute):
1801 Likewise.
1802 * config/bfin/bfin.c (handle_int_attribute,
1803 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
1804 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
1805 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
1806 Likewise.
1807 * config/darwin.c (darwin_handle_kext_attribute,
1808 darwin_handle_weak_import_attribute): Likewise.
1809 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
1810 h8300_handle_eightbit_data_attribute,
1811 h8300_handle_tiny_data_attribute): Likewise.
1812 * config/i386/i386.c (ix86_handle_cconv_attribute,
1813 ix86_handle_abi_attribute, ix86_handle_struct_attribute):
1814 Likewise.
1815 * config/i386/winnt.c (ix86_handle_shared_attribute,
1816 ix86_handle_selectany_attribute): Likewise.
1817 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
1818 * config/m32c/m32c.c (function_vector_handler): Likewise.
1819 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
1820 m68hc11_handle_fntype_attribute): Likewise.
1821 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
1822 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
1823 * config/mips/mips.c (mips_insert_attributes,
1824 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
1825 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
1826 rs6000_handle_struct_attribute): Likewise.
1827 * config/sh/sh.c (sh_insert_attributes,
1828 sh_handle_resbank_handler_attribute,
1829 sh_handle_interrupt_handler_attribute,
1830 sh2a_handle_function_vector_handler_attribute,
1831 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
1832 Likewise.
1833 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
1834 * config/spu/spu.c (spu_handle_fndecl_attribute,
1835 spu_handle_vector_attribute): Likewise.
1836 * config/stormy16/stormy16.c
1837 (xstormy16_handle_interrupt_attribute): Likewise.
1838 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
1839 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
1840
f41c4af3
JM
18412009-05-10 Joseph Myers <joseph@codesourcery.com>
1842
1843 * pretty-print.h (struct pretty_print_info): Add
1844 translate_identifiers.
1845 (pp_translate_identifiers): New.
1846 (pp_identifier): Only conditionally translate identifier to locale
1847 character set.
1848 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
1849 (pp_base_tree_identifier): Only conditionally translate identifier
1850 to locale character set.
1851 * c-pretty-print.c (M_): Define.
1852 (pp_c_type_specifier, pp_c_primary_expression): Mark English
1853 fragments for conditional translation with M_.
1854 * tree-pretty-print.c (maybe_init_pretty_print): Disable
1855 identifier translation.
1856
896d7dbd
RG
18572009-05-10 Richard Guenther <rguenther@suse.de>
1858
1859 PR tree-optimization/40081
1860 * tree-sra.c (instantiate_element): Instantiate scalar replacements
1861 using the main variant of the element type. Do not fiddle with
1862 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
1863
9a23acef
JH
18642009-05-09 Jan Hubicka <jh@suse.cz>
1865
1866 PR middle-end/40080
1867 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
1868 indirect calls; verify cgraph afterwards.
1869
d563610d
JH
18702009-05-09 Jan Hubicka <jh@suse.cz>
1871
1872 PR bootstrap/40082
1873 * ipa.c (update_inlined_to_pointer): New function.
1874 (cgraph_remove_unreachable_nodes): Use it.
1875
f08a18d0
JH
18762009-05-09 Jan Hubicka <jh@suse.cz>
1877
1878 * tree-eh.c (struct leh_state): Remove prev_try.
1879 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
1880 not track prev_try.
1881 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
1882 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
1883 remove_eh_handler_and_replace, foreach_reachable_handler,
1884 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
1885 * except.h (struct eh_region): Remove eh_region_u_cleanup.
1886 (gen_eh_region_cleanup): Update prototype.
1887
0afd7219
JH
18882009-05-09 Jan Hubicka <jh@suse.cz>
1889
1890 PR middle-end/40043
1891 * except.c (copy_eh_region): Always set prev_try.
1892 (redirect_eh_edge_to_label): Find outer try.
1893 (foreach_reachable_handler): When looking for prev try
1894 handle case where previous try is not going to be taken.
1895
ad6c0864
MM
18962009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
1897
1898 PR tree-optimization/40049
1899 * tree-vect-stmts.c (vectorizable_operation): If the machine has
1900 only vector/vector shifts, convert the type of the constant to the
1901 appropriate type to avoid building incorrect trees, which
1902 eventually have problems with garbage collection.
1903
c94f9067
JM
19042009-05-08 Joseph Myers <joseph@codesourcery.com>
1905
1906 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
1907 -1 for complex floating-point types if honoring signed zeros.
1908
9187e02d
JH
19092009-05-08 Jan Hubicka <jh@suse.cz>
1910
20acb8a2
EB
1911 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
1912 argument; handle correctly when profile is absent.
9187e02d
JH
1913 (build_cgraph_edges): Update.
1914 (rebuild_cgraph_edges): Update.
20acb8a2
EB
1915 * cgraph.c: Do not include varray.h.
1916 (cgraph_set_call_stmt_including_clones): New function.
1917 (cgraph_create_edge_including_clones): Likewise
1918 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
9187e02d
JH
1919 (cgraph_update_edges_for_call_stmt): Handle clones.
1920 (cgraph_remove_node): Handle clone tree.
1921 (cgraph_remove_node_and_inline_clones): New function.
1922 (dump_cgraph_node): Dump clone tree.
1923 (cgraph_clone_node): Handle clone tree.
20acb8a2 1924 (clone_function_name): Bring here from tree-inline.c.
9187e02d 1925 (cgraph_create_virtual_clone): New function.
20acb8a2
EB
1926 * cgraph.h (ipa_replace_map): Move here from ipa.h.
1927 (cgraph_clone_info): New function.
9187e02d 1928 (strut cgraph_node): Add clone_info and new clone tree pointers.
20acb8a2
EB
1929 (cgraph_remove_node_and_inline_clones,
1930 cgraph_set_call_stmt_including_clones,
1931 cgraph_create_edge_including_clones,
1932 cgraph_create_virtual_clone): Declare.
9187e02d
JH
1933 (cgraph_function_versioning): Use VEC argument.
1934 (compute_call_stmt_bb_frequency): Update prototype.
1935 (cgraph_materialize_all_clones): New function.
1936 * ipa-cp.c (ipcp_update_cloned_node): Remove.
1937 (ipcp_create_replace_map): Update to VECtors.
1938 (ipcp_update_callgraph): Use virtual clones.
1939 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
1940 (ipcp_update_profiling): Do not update local profiling.
1941 (ipcp_insert_stage): Use VECtors and virtual clones.
1942 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
1943 (clone_of_p): New function.
1944 (cgraph_preserve_function_body_p): Use clone tree.
1945 (cgraph_optimize): Materialize clones.
1946 (cgraph_function_versioning): Update for VECtors.
1947 (save_inline_function_body): Use clone tree.
20acb8a2
EB
1948 (cgraph_materialize_clone): New function.
1949 (cgraph_materialize_all_clones): Likewise.
9187e02d
JH
1950 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
1951 * ipa.c: Include gimple.h.
1952 (cgraph_remove_unreachable_nodes): Use clone tree.
20acb8a2
EB
1953 * ipa-prop.c (ipa_note_param_call): Update call to
1954 compute_call_stmt_bb_frequencycall.
9187e02d 1955 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
20acb8a2 1956 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
9187e02d
JH
1957 (copy_bb): Handle updating of clone tree; add new edge when new call
1958 appears.
1959 (expand_call_inline): Be strict about every call having edge.
1960 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
1961 (delete_unreachable_blocks_update_callgraph): New function.
20acb8a2
EB
1962 (tree_function_versioning): Use VECtors; always remove unreachable
1963 blocks and fold conditionals.
1964 * tree-inline.h: Do not include varray.h.
9187e02d
JH
1965 (tree_function_versioning): Remove.
1966 * Makefile.in (GTFILES): Remove tree-inline.c
1967 * passes.c (do_per_function): Do only functions having body.
20acb8a2
EB
1968 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
1969 tree.
9187e02d 1970
9b86d6bb
L
19712009-05-08 H.J. Lu <hongjiu.lu@intel.com>
1972 Andrew Morrow <acm@google.com>
1973
1974 PR c/36892
1975 * c-common.c (c_common_attribute_table): Permit deprecated
1976 attribute to take an optional argument.
1977 (handle_deprecated_attribute): If the optional argument to
1978 __attribute__((deprecated)) is not a string ignore the attribute
1979 and emit a warning.
1980
1981 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
1982 * c-typeck.c (build_component_ref): Likewise.
1983 (build_external_ref): Likewise.
1984
1985 * toplev.c (warn_deprecated_use): Add an attribute argument.
1986 Emit the message associated with __attribute__((deprecated)).
1987
1988 * toplev.h (warn_deprecated_use): Updated.
1989
1990 * doc/extend.texi: Document new optional parameter to
1991 __attribute__((deprecated))
1992
82ad047f
ME
19932009-05-08 Michael Eager <eager@eagercon.com>
1994
1995 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
1996 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
1997
788d3075
RG
19982009-05-08 Richard Guenther <rguenther@suse.de>
1999
2000 PR tree-optimization/40062
2001 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
2002 Avoid exponential behavior.
2003
00952e97
PB
20042009-05-08 Paolo Bonzini <bonzini@gnu.org>
2005
2006 PR rtl-optimization/33928
2007 PR 26854
2008 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
2009 process_uses, build_single_def_use_links): New.
2010 (update_df): Update use_def_ref.
2011 (forward_propagate_into): Use get_def_for_use instead of use-def
2012 chains.
2013 (fwprop_init): Call build_single_def_use_links and let it initialize
2014 dataflow.
2015 (fwprop_done): Free use_def_ref.
2016 (fwprop_addr): Eliminate duplicate call to df_set_flags.
2017 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
2018 df_rd_simulate_one_insn): New.
2019 (df_rd_bb_local_compute_process_def): Update head comment.
2020 (df_chain_create_bb): Use the new RD simulation functions.
2021 * df.h (df_rd_simulate_artificial_defs_at_top,
2022 df_rd_simulate_one_insn): New.
2023 * opts.c (decode_options): Enable fwprop at -O1.
2024 * doc/invoke.texi (-fforward-propagate): Document this.
2025
2ca862e9
JM
20262009-05-08 Joseph Myers <joseph@codesourcery.com>
2027
2028 PR c/24581
2029 * c-typeck.c (build_binary_op): Handle arithmetic between one real
2030 and one complex operand specially.
2031 * tree-complex.c (some_nonzerop): Do not identify a real value as
2032 zero if flag_signed_zeros.
2033
3e807ffc
PB
20342009-05-08 Paolo Bonzini <bonzini@gnu.org>
2035
2036 PR rtl-optimization/33928
7925c06c 2037 * loop-invariant.c (record_use): Fix && vs. || mishap.
3e807ffc 2038
1bfdbb29
PB
20392009-05-08 Paolo Bonzini <bonzini@gnu.org>
2040
2041 PR rtl-optimization/33928
e913423f
EB
2042 * loop-invariant.c (struct use): Add addr_use_p.
2043 (struct def): Add n_addr_uses.
2044 (struct invariant): Add cheap_address.
2045 (create_new_invariant): Set cheap_address.
2046 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
2047 (record_uses): Pass df_ref to record_use.
2048 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
2049 used only as such.
1bfdbb29 2050
702cb2a0
KK
20512009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
2052
2053 * config/sh/sh.c: Do not include c-pragma.h.
2054
5e8df753
AP
20552009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
2056
2057 * config/spu/spu.c: Remove include of c-common.h.
2058
6ec637a4
JJ
20592009-05-07 Janis Johnson <janis187@us.ibm.com>
2060
2061 PR c/39037
2062 * c-common.h (mark_valid_location_for_stdc_pragma,
2063 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
2064 clear_float_const_decimal64, float_const_decimal64_p): New.
2065 * c.opt (Wunsuffixed-float-constants): New.
2066 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
2067 unsuffixed float constant, handle new warning.
2068 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
2069 * c-decl.c (c_scope): New flag float_const_decimal64.
2070 (set_float_const_decimal64, clear_float_const_decimal64,
2071 float_const_decimal64_p): New.
2072 (push_scope): Set new flag.
2073 * c-parser.c (c_parser_translation_unit): Mark when it's valid
2074 to use STDC pragmas.
2075 (c_parser_external_declaration): Ditto.
2076 (c_parser_compound_statement_nostart): Ditto.
2077 * c-pragma.c (valid_location_for_stdc_pragma,
2078 mark_valid_location_for_stdc_pragma,
2079 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
2080 handle_pragma_float_const_decimal64): New.
2081 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
2082 * cp/semantics.c (valid_location_for_stdc_pragma_p,
2083 set_float_const_decimal64, clear_float_const_decimal64,
2084 float_const_decimal64_p): New dummy functions.
2085 * doc/extend.texi (Decimal Float): Remove statement that the
2086 pragma, and suffix for double constants, are not supported.
2087 * doc/invoke.texi (Warning Options): List new option.
2088 (-Wunsuffixed-float-constants): New.
2089
45b9b2e9
SB
20902009-05-08 Steven Bosscher <steven@gcc.gnu.org>
2091
2092 * config/i386/i386.c: Do not include c-common.h.
2093
e71da632
MH
20942009-05-07 Mark Heffernan <meheff@google.com>
2095
2096 * doc/invoke.texi (Debugging Options): Document change of debugging
2097 dump location.
e913423f 2098 * opts.c (decode_options): Make dump_base_name relative to
e71da632
MH
2099 aux_base_name directory.
2100
fe4c7bc6
HS
21012009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
2102
2103 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
2104 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
2105
3b3e44eb
RAE
21062009-05-07 Rafael Avila de Espindola <espindola@google.com>
2107
2108 * Makefile.in (install-plugin): Simplify a bit.
2109
fac41238
PB
21102009-05-07 Paolo Bonzini <bonzini@gnu.org>
2111
2112 * Makefile.in (OBJS-common): Add regcprop.o.
2113 (regcprop.o): New.
2114 * timevar.def (TV_CPROP_REGISTERS): New.
2115 * regrename.c (regrename_optimize): Return 0.
2116 (rest_of_handle_regrename): Delete.
2117 (pass_rename_registers): Point to regrename_optimize.
2118 (struct value_data_entry, struct value_data,
2119 kill_value_one_regno, kill_value_regno, kill_value,
2120 set_value_regno, init_value_data, kill_clobbered_value,
2121 kill_set_value, kill_autoinc_value, copy_value,
2122 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
2123 replace_oldest_value_reg, replace_oldest_value_addr,
2124 replace_oldest_value_mem, copyprop_hardreg_forward_1,
2125 debug_value_data, validate_value_data): Move...
2126 * regcprop.c: ... here.
2127 (rest_of_handle_cprop): Delete.
2128 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
2129
472e0df9
JJ
21302009-05-07 Jakub Jelinek <jakub@redhat.com>
2131
2132 PR middle-end/40057
2133 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
2134 GEN_INT for 1 << bitnum.
2135 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
2136 build_int_cst_type.
2137
0d50d55a
UB
21382009-05-07 Uros Bizjak <ubizjak@gmail.com>
2139
2140 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
7925c06c 2141 Remove wrong description of "nand" operation.
0d50d55a 2142
22f597f1
RG
21432009-05-06 Richard Guenther <rguenther@suse.de>
2144 Adam Nemet <anemet@caviumnetworks.com>
2145
2146 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
2147 comment. Add that if LHS is not a gimple register, then RHS1 has
2148 to be a single object (GIMPLE_SINGLE_RHS).
2149
641cac0b
AN
21502009-05-06 Adam Nemet <anemet@caviumnetworks.com>
2151
2152 * expr.c (get_def_for_expr): Move it up in the file.
2153 (store_field): When expanding a bit-field store, look at the
2154 defining gimple stmt for the masking conversion.
2155
5a5c6435
JJ
21562009-05-06 Janis Johnson <janis187@us.ibm.com>
2157
2158 PR middle-end/39986
2159 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
2160 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
2161 32-bit memcpy into long.
2162
96474f36
JJ
21632009-05-06 Jakub Jelinek <jakub@redhat.com>
2164
2165 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
2166 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
2167 new_reg_loc_descr.
2168 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
2169 instead of appending DW_OP_deref*.
2170
529ff441
MM
21712009-05-06 Michael Matz <matz@suse.de>
2172
2173 PR middle-end/40021
2174 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
2175 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
2176
9419a9fd
RAE
21772009-05-06 Rafael Avila de Espindola <espindola@google.com>
2178
2179 * Makefile.in (install-plugin): Fix srcdir handling.
2180
fff1894c
AB
21812009-05-06 Andrey Belevantsev <abel@ispras.ru>
2182
2183 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
2184 when processing for not_regs_needed bitmap.
2185 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
2186 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
2187 handling it for rhs.
2188
700ae70c
L
21892009-05-06 H.J. Lu <hongjiu.lu@intel.com>
2190
ab3426a7 2191 * config/i386/i386.md (unnamed inc/dec peephole): Use
aa016ff7 2192 optimize_insn_for_size_p instead of optimize_size.
700ae70c
L
2193 * config/i386/predicates.md (incdec_operand): Likewise.
2194 (aligned_operand): Likewise.
2195 * config/i386/sse.md (divv8sf3): Likewise.
2196 (sqrtv8sf2): Likewise.
2197
67341fb5
L
21982009-05-06 H.J. Lu <hongjiu.lu@intel.com>
2199
2200 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
2201
2202 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
2203
87946f42
L
22042009-05-06 H.J. Lu <hongjiu.lu@intel.com>
2205
2206 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
2207 ssemodesuffixf2c with avxmodesuffixf2c.
2208
1202aec1
JM
22092009-05-06 Joseph Myers <joseph@codesourcery.com>
2210
2211 PR c/40032
aa016ff7 2212 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
1202aec1 2213
6e57a01d
JJ
22142009-05-05 Jakub Jelinek <jakub@redhat.com>
2215
2216 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
2217 (struct tree_base): Adjust spacing for 8 bit boundaries.
2218 (struct tree_decl_common): Add decl_by_reference_flag bit.
2219 (DECL_BY_REFERENCE): Adjust.
2220 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
2221 print DECL_BY_REFERENCE bit.
2222 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
2223 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
2224 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
2225 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
2226 unconditionally.
2227
32f579f6
JJ
2228 PR middle-end/39666
2229 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
2230 range of the type, but default label is missing, add it with one
2231 of the existing labels instead of adding a new label for it.
2232
617ab743
JM
22332009-05-05 Joseph Myers <joseph@codesourcery.com>
2234
2235 * dwarf.h: Remove.
2236
bf016de8
RAE
22372009-05-05 Rafael Avila de Espindola <espindola@google.com>
2238
2239 * Makefile.in (enable_plugin, plugin_includedir): New.
2240 (install): Depend on install-plugin.
2241 (PLUGIN_HEADERS): New.
2242 (install-plugin): New.
2243 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
2244
7f8fdb9f
RG
22452009-05-05 Richard Guenther <rguenther@suse.de>
2246
2247 PR tree-optimization/40022
2248 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
2249 the only vuse.
2250 (phivn_valid_p): Fix tuplification error, simplify.
2251 (phiprop_insert_phi): Add dumps.
2252 (propagate_with_phi): Simplify.
2253
8d972839
RG
22542009-05-05 Richard Guenther <rguenther@suse.de>
2255
2256 PR middle-end/40023
aa016ff7 2257 * builtins.c (gimplify_va_arg_expr): Properly build the address.
8d972839 2258
66ba9b0b
SZ
22592009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
2260
2261 * tree.h (strip_float_extensions): Remove duplicate declaration.
aa016ff7
UB
2262 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
2263 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
2264 block_ultimate_origin): Rearrange the declarations line to match the
2265 comment that indicates the .c file which the functions are defined.
2266 (dwarf2out_*, set_decl_rtl): Add comment.
2267 (get_base_address): Adjust comment.
2268 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
2269 declarations line and add comment.
2270 (is_builtin_name): Add blank after function name, for clarity.
66ba9b0b 2271
4f1e4960
JM
22722009-05-04 Joseph Myers <joseph@codesourcery.com>
2273
2274 * attribs.c (decl_attributes): Use %qE for identifiers in
2275 diagnostics.
2276 * cgraphunit.c (verify_cgraph_node): Translate function names to
2277 locale character set in diagnostics.
2278 * coverage.c (get_coverage_counts): Use %qE for identifiers in
2279 diagnostics.
2280 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
2281 Document that functions are named in UTF-8.
2282 * expr.c (expand_expr_real_1): Translate function names to locale
2283 character set in diagnostics.
2284 * gimplify.c (omp_notice_variable, omp_is_private,
2285 gimplify_scan_omp_clauses): Use %qE for identifiers in
2286 diagnostics.
2287 * langhooks.c (lhd_print_error_function): Translate function names
2288 to locale character set.
2289 * langhooks.h (decl_printable_name): Document that return value is
2290 in internal character set.
2291 * stmt.c: Include pretty-print.h
2292 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
2293 diagnostics.
2294 (resolve_operand_name_1): Translate named operand name to locale
2295 character set.
2296 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
2297 diagnostics.
2298 * toplev.c (announce_function): Translate function names to locale
2299 character set.
2300 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
2301 (default_tree_printer): Use pp_identifier or translate identifiers
2302 to locale character set. Mark "<anonymous>" for translation.
2303 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
2304 for identifiers in diagnostics.
2305 * tree.c (handle_dll_attribute): Use %qE for identifiers in
2306 diagnostics.
2307 * varasm.c (output_constructor): Use %qE for identifiers in
2308 diagnostics.
2309
40540e68
RAE
23102009-05-04 Rafael Avila de Espindola <espindola@google.com>
2311
2312 * configure.ac: use ` ` instead of $()
2313 * configure: Regenerate.
2314
33fc884c
BE
23152009-05-05 Ben Elliston <bje@au.ibm.com>
2316
2317 * config/pa/linux-atomic.c: Eliminate conditional include of
2318 errno.h on non-LP64 systems to simplify build requirements.
2319
88388a52
JM
23202009-05-04 Joseph Myers <joseph@codesourcery.com>
2321
2322 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
2323 diagnostics.
2324 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
2325 and pass value to identifier_to_locale.
2326 (warn_variable_length_array): Make name a tree.
2327 (grokdeclarator): Separate diagnostic texts for named and unnamed
2328 declarators. Use %qE for named declarators.
2329 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
2330 diagnostics.
2331 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
2332 identifiers in diagnostics.
2333 * c-typeck.c (push_member_name, start_init): Pass identifiers to
2334 identifier_to_locale. Mark "anonymous" strings for translation.
2335
960c5c79
ME
23362009-05-04 Michael Eager <eager@eagercon.com>
2337
2338 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
aa016ff7 2339 address for DImode/DFmode only if double-precision FP regs.
960c5c79 2340
d083fbba
ME
23412009-05-04 Michael Eager <eager@eagercon.com>
2342
2343 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
2344 TARGET_SINGLE_FLOAT check.
2345
c3ba8d32
ME
23462009-05-04 Michael Eager <eager@eagercon.com>
2347
2348 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
2349
edce9f18
ME
23502009-05-04 Michael Eager <eager@eagercon.com>
2351
2352 * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
2353 * config/rs6000/t-xilinx: New
2354
506d7b68
PB
23552009-05-04 Paolo Bonzini <bonzini@gnu.org>
2356
e913423f 2357 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
506d7b68
PB
2358 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
2359 * gcc/explow.c (memory_address): Use target hook.
2360 * gcc/targhooks.c (default_legitimize_address): New.
2361 * gcc/targhooks.h (default_legitimize_address): New.
2362 * gcc/target.h (legitimize_address): New.
2363 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
2364 (TARGET_INITIALIZER): Include it.
2365 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
2366
2367 * config/bfin/bfin-protos.h (legitimize_address): Remove.
2368 * config/bfin/bfin.c (legitimize_address): Remove.
2369 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
aa016ff7
UB
2370 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
2371 Remove.
506d7b68
PB
2372 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
2373 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
2374
2375 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
2376 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
2377 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
2378 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
2379 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
2380 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
2381 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
2382 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
2383 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
2384 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
2385 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
2386 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
2387 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
2388 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
2389 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
2390 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
2391 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
2392 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
2393 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
2394 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
2395 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
2396 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
2397 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
2398
2399 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
2400 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
2401 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
2402 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
2403 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
2404 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
2405 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
2406 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
2407 (thumb_legitimize_address): Delete.
2408 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
2409 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
2410 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
2411 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
2412 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
aa016ff7
UB
2413 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
2414 Delete.
2415 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
2416 Delete.
506d7b68
PB
2417
2418 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
2419 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
2420 * config/m32r/m32r.c (m32r_legitimize_address): New.
2421 * config/m68k/m68k.c (m68k_legitimize_address): New.
2422 * config/score/score.c (score_legitimize_address): Standardize.
2423 * config/score/score3.c (score3_legitimize_address): Standardize.
2424 * config/score/score3.h (score3_legitimize_address): Adjust.
2425 * config/score/score7.c (score7_legitimize_address): Standardize.
2426 * config/score/score7.h (score7_legitimize_address): Adjust.
2427 * config/sh/sh.c (sh_legitimize_address): New.
2428 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
2429
2430 * gcc/config/s390/s390.c (legitimize_address): Rename to...
2431 (s390_legitimize_address): ... this.
2432 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
2433 (sparc_legitimize_address): ... this.
2434 * gcc/config/i386/i386.c (legitimize_address): Rename to...
2435 (ix86_legitimize_address): ... this.
2436 * gcc/config/avr/avr.c (legitimize_address): Rename to...
2437 (avr_legitimize_address): ... this.
2438 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
2439 (mn10300_legitimize_address): ... this.
2440 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
2441 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
2442 (alpha_expand_mov): Adjust call.
2443
2444 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
2445 * config/spu/spu.c (spu_legitimize_address): Likewise.
2446 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
2447 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
2448
a3af5087
JM
24492009-05-04 Joseph Myers <joseph@codesourcery.com>
2450
2451 * intl.c (locale_encoding, locale_utf8): New.
2452 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
2453 * intl.h (locale_encoding, locale_utf8): Declare.
2454 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
2455 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
2456 New.
2457 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
2458 argument.
2459 (pp_tree_identifier): Define to call pp_base_tree_identifier.
2460 (pp_base_tree_identifier): Declare as function.
2461 (identifier_to_locale): Declare.
2462 * Makefile.in (pretty-print.o): Update dependencies.
aa016ff7 2463 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
a3af5087 2464
ea5cd5f1
RG
24652009-05-04 Richard Guenther <rguenther@suse.de>
2466
2467 PR middle-end/40015
2468 * builtins.c (fold_builtin_memory_op): Do not decay to element
2469 type if the size matches the whole array.
2470
ddc2690a
KH
24712009-05-04 Kazu Hirata <kazu@codesourcery.com>
2472
2473 * expmed.c (synth_mult): When trying out a shift, pass the result
2474 of a signed shift.
2475
ef268d34
KH
24762009-05-04 Kazu Hirata <kazu@codesourcery.com>
2477
2478 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
2479 (shiftsub1_cost): New.
2480 (init_expmed): Compute shiftsub1_cost.
2481 (synth_mult): Optimize multiplications by constants of the form
2482 -(2^^m-1) for some constant positive integer m.
2483
255d3827
RG
24842009-05-03 Richard Guenther <rguenther@suse.de>
2485
2486 PR c/39983
2487 * c-typeck.c (array_to_pointer_conversion): Do not built
2488 ADDR_EXPRs of arrays of pointer-to-element type.
2489 * c-gimplify.c (c_gimplify_expr): Revert change fixing
2490 up wrong ADDR_EXPRs after-the-fact.
2491 * c-common.c (strict_aliasing_warning): Strip pointer
2492 conversions for obtaining the original type.
2493 * builtins.c (fold_builtin_memset): Handle array types.
2494 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
2495 and array types
2496
16c33770
RG
24972009-05-03 Richard Guenther <rguenther@suse.de>
2498
2499 PR middle-end/23329
2500 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
2501 Do not lose casts from array types with unknown extent to array
2502 types with known extent.
2503 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
2504 alias set compatibility.
2505
62a67c94
MLI
25062009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2507
2508 * flags.h (extra_warnings): Delete.
2509 * toplev.c (process_options): Handle Wuninitialized here.
2510 * opts.c (extra_warnings): Delete.
2511 (set_Wextra): Delete.
2512 (common_handle_option): -Wextra can be handled automatically.
2513 * c-opts.c (c_common_handle_option): Delete obsolete code.
2514 (c_common_post_options): Simplify comment.
2515 * common.opt (W): Add Var.
2516 (Wextra): Add Var.
2517 (Wuninitialized): Initialize to -1.
2518
8c7926c4
AN
25192009-05-03 Adam Nemet <anemet@caviumnetworks.com>
2520 Richard Guenther <rguenther@suse.de>
2521
2522 * expr.c (get_def_for_expr): New function.
2523 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
2524 SSA rather than trees.
2525 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
2526 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
2527
fa5da7de
JM
25282009-05-03 Joseph Myers <joseph@codesourcery.com>
2529
2530 * c-common.c (reswords): Add _Imaginary.
2531 * c-common.c (enum rid): Add RID_IMAGINARY.
2532
2ddd5020
PB
25332009-05-03 Paolo Bonzini <bonzini@gnu.org>
2534
2535 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
2536 Patch by Richard Guenther.
2537
aea88c05
AS
25382009-05-03 Anatoly Sokolov <aesok@post.ru>
2539
2540 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
2541 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
2542 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
2543 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
2544 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
2545 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
2546 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
2547 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
2548 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
2549 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
2550 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
2551 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
2552 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
2553 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
2554 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
2555 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
2556 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
2557 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
2558
85e59f3a
RG
25592009-05-02 Richard Guenther <rguenther@suse.de>
2560
2561 PR tree-optimization/39940
2562 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
2563 doing so.
2564
4636b850
RG
25652009-05-02 Richard Guenther <rguenther@suse.de>
2566
2567 PR middle-end/40001
2568 * tree-ssa.c (execute_update_addresses_taken): Properly check
2569 if we can mark a variable DECL_GIMPLE_REG_P.
2570 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
2571 back to the end of the function.
2572 (is_gimple_reg_type): Remove complex type special casing.
2573 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
2574 if not optimizing.
2575
5e10cb5a
BE
25762009-05-02 Ben Elliston <bje@au.ibm.com>
2577
2578 * doc/collect2.texi (Collect2): Document search path behaviour
2579 when configured with --with-ld.
2580
048bf48b
JH
25812009-05-02 Jan Hubicka <jh@suse.cz>
2582
2583 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
2584 parameter; update callers.
aa016ff7
UB
2585 (coalesce_cost_edge): EH edges are costier because they needs
2586 splitting even if not critical and even more costier when there are
2587 multiple EH predecestors.
048bf48b 2588
d5c5f9ab
JH
25892009-05-02 Jan Hubicka <jh@suse.cz>
2590
2591 * except.c (remove_eh_handler_and_replace): Handle updating after
2592 removing TRY blocks.
2593
2ed1959a
EB
25942009-05-02 Eric Botcazou <ebotcazou@adacore.com>
2595
2596 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
2597
d363a7e7
SB
25982009-05-02 Steven Bosscher <steven@gcc.gnu.org>
2599
2600 * varasm.c: Do not include c-pragma.h.
2601 * attribs.c: Do not incude c-common.h.
2602
9c3d55b4
MM
26032009-05-01 Michael Matz <matz@suse.de>
2604
2605 * calls.c (initialize_argument_information): Handle SSA names like
2606 decls with a non MEM_P DECL_RTL.
2607
ea264ca5
SB
26082009-05-01 Steven Bosscher <steven@gcc.gnu.org>
2609
2610 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
2611 * ipa-utils.c: Likewise.
2612 * ipa-type-escape.c: Likewise.
2613 * cgraphunit.c Do not include c-common.h.
2614 * ipa-pure-const.c: Likewise.
2615 * tree-if-conv.c: Likewise.
2616 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
2617 * ipa-struct-reorg.c: Likewise.
2618 * tree-nomudflap.c: Likewise.
2619 * tree-ssa-structalias.c: Likewise.
2620
6c5d4d1a
SB
26212009-05-01 Steven Bosscher <steven@gcc.gnu.org>
2622
2623 * store-motion.c: Many cleanups to make this pass a first-class
2624 citizen instead of an appendix to gcse load motion. Add TODO list
2625 to make this pass faster/cleaner/better.
2626
2627 (struct ls_expr): Post gcse.c-split cleanups.
2628 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
2629 "stores" field to "avail_stores".
2630 (pre_ldst_mems): Rename to store_motion_mems.
2631 (pre_ldst_table): Rename to store_motion_mems_table.
2632 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
2633 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
2634 (ldst_entry): Rename to st_expr_entry, update users.
2635 (free_ldst_entry): Rename to free_st_expr_entry, update users.
2636 (free_ldst_mems): Rename to free_store_motion_mems, update users.
aa016ff7
UB
2637 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
2638 update caller.
6c5d4d1a
SB
2639 (first_ls_expr): Rename to first_st_expr, update users.
2640 (next_ls_expr): Rename to next_st_expr, update users.
2641 (print_ldst_list): Rename to print_store_motion_mems. Print names of
2642 fields properly for store motion instead of names inherited from load
2643 motion in gcse.c.
2644 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
2645 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
2646 are done with it.
2647
2648 (ae_kill): Rename to st_kill, update users.
2649 (ae_gen): Rename to st_avloc, update users.
2650 (transp): Rename to st_transp, update users.
2651 (pre_insert_map): Rename to st_insert_map, update users.
2652 (pre_delete_map): Rename to st_delete_map, update users.
2653 (insert_store, build_store_vectors, free_store_memory,
2654 one_store_motion_pass): Update for abovementioned changes.
2655
2656 (gcse_subst_count, gcse_create_count): Remove.
2657 (one_store_motion_pass): New statistics counters "n_stores_deleted"
2658 and "n_stores_created", local variables.
2659
2660 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
2661 use for_each_rtx.
2662
2663 (regvec, compute_store_table_current_insn): Remove.
2664 (reg_set_info, reg_clear_last_set): Remove.
2665 (compute_store_table): Use DF caches instead of local dataflow
2666 solvers.
2667
b02cec6e
JM
26682009-05-01 Joseph Myers <joseph@codesourcery.com>
2669
2670 * c-objc-common.c (c_tree_printer): Print identifiers with
2671 pp_identifier, not pp_string. Mark "({anonymous})" for
2672 translation.
2673 * c-pretty-print.c (pp_c_ws_string): New.
2674 (pp_c_cv_qualifier, pp_c_type_specifier,
2675 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
2676 pp_c_storage_class_specifier, pp_c_function_specifier,
2677 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
2678 pp_c_primary_expression, pp_c_postfix_expression,
2679 pp_c_unary_expression, pp_c_shift_expression,
2680 pp_c_relational_expression, pp_c_equality_expression,
2681 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
2682 use pp_string and pp_c_ws_string in place of pp_identifier and
2683 pp_c_identifier for non-identifiers. Mark English strings for
2684 translation.
2685 * c-pretty-print.h (pp_c_ws_string): Declare.
2686
cd533689
PP
26872009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
2688 Roland McGrath <roland@redhat.com>
2689
aa016ff7 2690 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
cd533689
PP
2691 (ENABLE_LD_BUILDID): New configuration option.
2692 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
2693 (LINK_BUILDID_SPEC): New macro.
2694 (init_spec): If defined, prepend it between LINK_EH_SPEC and
2695 link_spec.
2696 * doc/install.texi: Document --enable-linker-build-id option.
2697 * configure: Rebuild.
2698 * config.in: Rebuild.
2699
ba6adec4
AN
27002009-04-30 Adam Nemet <anemet@caviumnetworks.com>
2701
2702 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
2703 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
2704 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
2705 MIPS_GP_SAVE_AREA_SIZE.
2706 * config/mips/mips.c (struct mips_frame_info): Update comment
2707 before arg_pointer_offset and hard_frame_pointer_offset.
2708 (mips_compute_frame_info): Update diagram before function: to
2709 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
2710 indicate the position of frame_pointer_rtx with -fstack-protector and
2711 to show args_size. Don't allocate cprestore area for leaf functions
2712 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
2713 cprestore_size.
2714 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
2715
48f5b722
MM
27162009-04-30 Michael Matz <matz@suse.de>
2717
ba6adec4
AN
2718 PR tree-optimization/39955
2719 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
48f5b722 2720
b65d6744
DK
27212009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
2722
2723 * ira.c (setup_cover_and_important_classes): Use safe macro
2724 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
2725 directly.
2726 * genpreds.c (write_tm_preds_h): Output suitable definition of
2727 REG_CLASS_FOR_CONSTRAINT.
2728
f136c8ae
RAE
27292009-04-30 Rafael Avila de Espindola <espindola@google.com>
2730
2731 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
2732 instead of an int.
2733 * bitmap.c (bitmap_descriptor): Likewise.
2734 * ggc-common.c (loc_descriptor): Likewise.
2735 * varray.c (varray_descriptor): Likewise.
2736 * vec.c (vec_descriptor): Likewise.
2737
43fcece8 27382009-04-30 Eric Botcazou <ebotcazou@adacore.com>
35debead
EB
2739
2740 * Makefile.in (dce.o): Add $(EXCEPT_H).
2741 * dce.c: Include except.h and delete redundant vector definitions.
2742 (deletable_insn_p): Return false for non-call insns that can throw
2743 if DF is running.
2744
df35c271
SB
27452009-04-30 Steven Bosscher <steven@gcc.gnu.org>
2746
2747 * gcse.c (ae_gen): Remove.
2748 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
2749 and make non-static function to make it available in store-motion.c.
2750 Update call sites with search-and-replace.
2751 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
2752 extract_mentioned_regs, extract_mentioned_regs_helper,
2753 find_moveable_store, compute_store_table, load_kills_store, find_loads,
2754 store_killed_in_insn, store_killed_after, store_killed_before,
2755 build_store_vectors, insert_insn_start_basic_block, insert-store,
2756 remove_reachable_equiv_notes, replace_store_insn, delete_store,
2757 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
2758 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
2759 * store-motion.c: ...new file. Also copy data structures from gcse.c
2760 and clean up to remove parts not used by store motion.
2761 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
2762 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
2763
f711a87a
RR
27642009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2765
2766 PR target/38571
2767 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
2768 when optimizing for size.
2769
fa5ed76e
HPN
27702009-04-30 Hans-Peter Nilsson <hp@axis.com>
2771
2772 * gcse.c (gcse_constant_p): Fix typo in last change.
2773
0acbbdb0
RAE
27742009-04-30 Rafael Avila de Espindola <espindola@google.com>
2775
2776 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
2777
82f5c05d
AK
27782009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
2779
2780 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
2781
6d8f135b
JW
27822009-04-29 James E. Wilson <wilson@codesourcery.com>
2783
2784 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
2785 CONST_HIGH_PART result.
2786
c21ca196
AS
27872009-04-29 Anatoly Sokolov <aesok@post.ru>
2788
2789 * config/avr/avr.c (initial_elimination_offset): Rename to
2790 avr_initial_elimination_offset.
2791 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
2792 change return type to bool.
2793 (avr_can_eliminate): New function.
2794 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
2795 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
2796 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
0d50d55a 2797 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
c21ca196
AS
2798 avr_initial_elimination_offset.
2799 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
2800 (avr_initial_elimination_offset): Define.
2801
2a34bece 28022009-04-29 Eric Botcazou <ebotcazou@adacore.com>
aa016ff7 2803 Steven Bosscher <steven@gcc.gnu.org>
2a34bece
EB
2804
2805 PR rtl-optimization/39938
2806 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
2807 * cfgrtl.c: Include insn-attr.h.
2808 (rest_of_pass_free_cfg): New function.
2809 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
2810 * resource.c (init_resource_info): Remove call to df_analyze.
2811
5dc7911e
RG
28122009-04-29 Richard Guenther <rguenther@suse.de>
2813
2814 PR target/39943
2815 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
2816 allow conversion to signed integers.
2817
1fe479fd
RG
28182009-04-29 Richard Guenther <rguenther@suse.de>
2819
2820 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
2821 shifts of floating point vectors if the shift amount is
2822 a constant multiple of the element size.
2823
8e001680
AK
28242009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
2825 Michael Matz <matz@suse.de>
2826
2827 PR middle-end/39927
2828 PR bootstrap/39929
2829 * tree-outof-ssa.c (emit_partition_copy): New function.
2830 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
2831 insert_part_to_rtx_on_edge): Perform the partition base var
2832 copy using emit_partition_copy.
2833 (insert_value_copy_on_edge): Convert constants to the right mode.
2834 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
2835 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
2836
e50e3081
BS
28372009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
2838
2839 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
2840 scan backwards to try to find a constant to initialize it.
2841
4e5d521b
BS
2842 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
2843 insn before the loop_end instruction, don't look past labels.
2844
7c90021d
RG
28452009-04-29 Richard Guenther <rguenther@suse.de>
2846
2847 PR middle-end/39937
2848 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
2849 loose type conversions.
2850 (forward_propagate_addr_expr): Fix tuplification bug. Remove
2851 stmts only if there are no uses of its definition.
2852
97a988bc
BS
28532009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
2854
2855 * config/bfin/bfin.h (splitting_loops): Declare.
2856 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
2857 Reorder bit definitions to be ascending.
2858 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
2859 * config/bfin/bfin.c (splitting_loops): New variable.
2860 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
2861 (struct loop_info): Remove members INIT and LOOP_INIT.
2862 (bfin_optimize_loop): Don't set them. Reorder the code that generates
aa016ff7
UB
2863 the LSETUP sequence. Allow LC to be loaded from any register, but
2864 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
97a988bc
BS
2865 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
2866 set to 1.
2867 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
2868 of reload_completed.
aa016ff7 2869
97a988bc
BS
2870 From Jie Zhang:
2871 * config/bfin/bfin.md (movsi_insn): Refine constraints.
2872
0c463e16
RAE
28732009-04-29 Rafael Avila de Espindola <espindola@google.com>
2874
2875 * Makefile.in (PLUGIN_VERSION_H): New.
2876 (OBJS-common): Remove plugin-version.o.
2877 (plugin.o): Depend on (PLUGIN_VERSION_H).
2878 (plugin-version.o): Remove.
2879 * configure: Regenerate
2880 * configure.ac: Create plugin-version.h.
2881 * gcc-plugin.h (plugin_gcc_version): Remove.
2882 (plugin_default_version_check): Change signature.
2883 * plugin-version.c: Remove.
2884 * plugin.c: Include plugin-version.h.
2885 (str_plugin_gcc_version_name): Remove.
2886 (try_init_one_plugin): Pass gcc version to plugin_init.
2887 (plugin_default_version_check): Both gcc and plugin versions are now
2888 arguments.
2889
307e7eab
BS
28902009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
2891
2892 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
2893 problematic last insns. Test for TYPE_CALL rather than CALL_P.
aa016ff7
UB
2894 Remove special case testing for last insn of inner loops. Don't fail
2895 if the loop ends with a jump, emit an extra nop instead.
307e7eab 2896
c5d96723
BS
2897 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
2898 DREGS rather than comparing directly. Remove code that tries to
2899 account for latencies.
2900
de0b4ad5
RG
29012009-04-29 Richard Guenther <rguenther@suse.de>
2902
2903 PR tree-optimization/39941
2904 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
2905 eliminating an indirect call.
2906
3a19701a
RG
29072009-04-29 Richard Guenther <rguenther@suse.de>
2908
2909 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
2910 parameter. Allow invariants as base if !require_lvalue.
2911 (verify_gimple_assign_single): Adjust.
2912
a0a31d1e
BS
29132009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
2914
2915 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
2916 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
aa016ff7
UB
2917 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
2918 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
a0a31d1e
BS
2919 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
2920 a VEC_SELECT.
aa016ff7
UB
2921 * config/bfin/bfin.c (bfin_expand_builtin,
2922 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
a0a31d1e 2923
795bd26a
RG
29242009-04-28 Richard Guenther <rguenther@suse.de>
2925
2926 * tree-vect-loop.c (get_initial_def_for_induction): Use
2927 correct types for pointer increment.
2928
04be270f
KG
29292009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2930
2931 * toplev.c (print_version): Update GMP version string calculation.
2932
e1a3b85c
EB
29332009-04-28 Eric Botcazou <ebotcazou@adacore.com>
2934
2935 PR rtl-optimization/39938
2936 * resource.c (init_resource_info): Add call to df_analyze.
2937
8224166e
UB
29382009-04-28 Uros Bizjak <ubizjak@gmail.com>
2939
2940 * config/alpha/alpha.md (usegp): Cast the result of
2941 alpha_find_lo_sum_using_gp to enum attr_usegp.
2942 * config/alpha/alpha.c (override_options): Remove end-of-structure
2943 marker element from cpu_table. Use array size of cpu_table to handle
2944 -mcpu and -mtune options.
2945 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
2946
c5f0fe67
JM
29472009-04-28 Joseph Myers <joseph@codesourcery.com>
2948
2949 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
2950 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
2951 tune_32 and tune_64.
2952 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
2953 support on PowerPC.
2954 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
2955 * config/rs6000/option-defaults.h: ... here. New file.
2956 (OPT_64, OPT_32): Define.
2957 (MASK_64BIT): Define to 0 if not already defined.
2958 (OPT_ARCH64, OPT_ARCH32): Define.
2959 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
2960 and tune_64.
2961
0c48a567
RR
29622009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2963
2964 * config/arm/arm.c (arm_override_options): Emit error on using
2965 fpa with AAPCS.
2966
f1028b9d
UB
29672009-04-28 Uros Bizjak <ubizjak@gmail.com>
2968
2969 PR rtl-optimization/39914
2970 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
2971 registers for allocnos created from user-defined variables only
2972 when not optimizing.
2973
e0dd989a
RG
29742009-04-28 Richard Guenther <rguenther@suse.de>
2975
2976 PR middle-end/39937
2977 * fold-const.c (fold_binary): Use distribute_real_division only
2978 on float types.
2979
9a17c91d
SE
29802009-04-28 Steve Ellcey <sje@cup.hp.com>
2981
2982 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
2983 add hpux-stdint.h to tm_file.
2984 (hppa[12]*-*-hpux11*): Ditto.
2985 (ia64*-*-hpux*): Ditto.
2986 * config/hpux-stdint.h: New.
60839f5d 2987 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
9a17c91d 2988 __STDC_EXT__ for all compiles.
60839f5d
EB
2989 * config/pa/pa-hpux.h: Ditto.
2990 * config/pa/pa-hpux10.h: Ditto.
2991 * config/pa/pa-hpux11.h: Ditto.
9a17c91d 2992
af04e659
CM
29932009-04-28 Catherine Moore <clm@codesourcery.com>
2994
2995 * debug.h (set_name): Add comment.
2996
04ef80ce
AP
29972009-04-28 Andrew Pinski <pinskia@gmail.com>
2998
2999 PR target/39929
3000 * config/darwin.c (machopic_gen_offset): Check
3001 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
3002 * config/arm/arm.c (require_pic_register): Likewise.
3003
65ad77af
PB
30042009-04-28 Paolo Bonzini <bonzini@gnu.org>
3005
8224166e
UB
3006 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
3007 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
3008 m32c_promote_prototypes): Delete.
65ad77af 3009
1b15a008
MM
30102009-04-28 Michael Matz <matz@suse.de>
3011
3012 PR middle-end/39922
3013 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
3014 constants.
3015
7569a6cc
RG
30162009-04-28 Richard Guenther <rguenther@suse.de>
3017
f1028b9d 3018 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
7569a6cc 3019
ead204d9
RR
30202009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3021
3022 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
3023 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
3024 * config/arm/arm-tune.md: Regenerate.
3025
f2c45f08 30262009-04-28 Alexander Monakov <amonakov@ispras.ru>
60839f5d 3027
f2c45f08
AM
3028 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
3029 block if there are complex incoming edges.
3030 (sel_merge_blocks): Remove useless assert.
3031 (sel_redirect_edge_and_branch): Check that edge was redirected.
3032 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
3033 (sel_find_rgns): Delete declaration.
3034 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
3035 the region when it is not a preheader.
3036
7a00d767
UB
30372009-04-28 Uros Bizjak <ubizjak@gmail.com>
3038
3039 PR c/39323
3040 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
3041
448ee662
RG
30422009-04-28 Richard Guenther <rguenther@suse.de>
3043
3044 * tree.h (SSA_NAME_VALUE): Remove.
3045 (struct tree_ssa_name): Remove value_handle member.
3046 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
3047 array for jump threading.
3048 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
3049 SSA_NAME_VALUEs.
3050 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
3051 * tree-flow.h (threadedge_initialize_values): Declare.
3052 (threadedge_finalize_values): Likewise.
3053 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
3054 (SSA_NAME_VALUE): Define.
3055 (threadedge_initialize_values): New function.
3056 (threadedge_finalize_values): Likewise.
3057 * tree-ssa-dom.c (ssa_name_values): New global variable.
3058 (SSA_NAME_VALUE): Define.
f1028b9d 3059 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
448ee662 3060
8644a673
IR
30612009-04-28 Ira Rosen <irar@il.ibm.com>
3062
3063 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
3064 Use REPORT_VECTORIZED_LOCATIONS instead
3065 REPORT_VECTORIZED_LOOPS.
3066 * tree-vectorizer.c (vect_verbosity_level): Make static.
3067 (vect_loop_location): Rename to vect_location.
3068 (vect_set_verbosity_level): Update comment.
3069 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
3070 and vect_location.
3071 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
3072 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
3073 instead REPORT_UNVECTORIZED_LOOPS.
fbdf817d
UB
3074 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
3075 and vect_loop_def to vect_external_def and vect_internal_def.
8644a673 3076 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
7a00d767 3077 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
8644a673
IR
3078 REPORT_UNVECTORIZED_LOCATIONS.
3079 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
3080 and vect_used_in_loop and to vect_unused_in_scope and
3081 vect_used_in_scope.
3082 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
3083 (vect_verbosity_level): Remove declaration.
3084 (vect_analyze_operations): Likewise.
3085 (vect_analyze_stmt): Declare.
3086 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
3087 REPORT_UNVECTORIZED_LOCATIONS.
3088 (vect_get_loop_niters): Fix indentation.
3089 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
3090 (vect_analyze_loop_operations): New function.
3091 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
3092 vect_analyze_operations.
3093 (vect_is_simple_reduction): Use new names.
3094 (vectorizable_live_operation, vect_transform_loop): Likewise.
fbdf817d
UB
3095 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
3096 to specify whether the data references can be a part of interleaving
3097 chain.
8644a673
IR
3098 (vect_analyze_data_ref_dependence): Use new names.
3099 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
3100 (vect_create_addr_base_for_vector_ref): Remove redundant code.
3101 * tree-vect-patterns.c (widened_name_p): Use new names.
3102 (vect_recog_dot_prod_pattern): Likewise.
3103 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
3104 (process_use, vect_mark_stmts_to_be_vectorized,
3105 vect_model_simple_cost, vect_model_store_cost,
3106 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
3107 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
3108 vectorizable_operation, vectorizable_type_demotion,
3109 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
3110 vectorizable_condition): Likewise.
3111 (vect_analyze_operations): Split into vect_analyze_loop_operations
3112 and ...
3113 (vect_analyze_stmt): ... new function.
3114 (new_stmt_vec_info): Use new names.
3115 (vect_is_simple_use): Use new names and fix comment.
3116 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
3117 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
3118
b91322f2
UB
31192009-04-28 Uros Bizjak <ubizjak@gmail.com>
3120
3121 PR target/39911
3122 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
3123 and integer modes for x87 operands. Do not ICE for unsupported size,
3124 generate error instead. Generate error for unsupported operand types.
3125 ['z']: Do not handle HImode memory operands specially. Warning
3126 for floating-point operands. Fallthru to 'Z' for unsupported operand
3127 types. Do not ICE for unsupported size, generate error instead.
3128 (output_387_binary_op): Use %Z to output operands.
3129 (output_fp_compare): Ditto.
3130 (output_387_reg_move): Ditto.
3131
b2ed71b6
BE
31322009-04-28 Ben Elliston <bje@au.ibm.com>
3133
3134 PR c++/35652
3135 Revert:
3136
3137 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3138
3139 * builtins.c (c_strlen): Do not warn here.
3140 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
3141 * c-common.c (pointer_int_sum): Take an explicit location.
3142 Warn about offsets out of bounds.
3143 * c-common.h (pointer_int_sum): Adjust declaration.
3144
81f40b79
ILT
31452009-04-27 Ian Lance Taylor <iant@google.com>
3146
3147 * collect2.c (is_ctor_dtor): Change type of ret field in struct
3148 names to symkind.
3149 * dce.c (run_fast_df_dce): Change type of old_flags to int.
3150 * df-core.c (df_set_flags): Change return type to int. Change
3151 type of old_flags to int.
3152 (df_clear_flags): Likewise.
3153 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
3154 (df_get_conditional_uses): Likewise.
3155 * df.h (df_set_flags, df_clear_flags): Update declarations.
3156 * dwarf2out.c (struct indirect_string_node): Change type of form
3157 field to enum dwarf_form.
3158 (AT_string_form): Change return type to enum dwarf_form.
3159 * fixed-value.c (fixed_compare): Add cast to enum type.
3160 * fwprop.c (update_df): Change 0 to VOIDmode.
3161 * gensupport.c: Change 0 to UNKNOWN.
3162 * gimple.h (gimple_cond_code): Add cast to enum type.
3163 * haifa-sched.c (reemit_notes): Add cast to enum type.
3164 * hooks.c (hook_int_void_no_regs): Remove function.
3165 * hooks.h (hook_int_void_no_regs): Remove declaration.
3166 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
7a00d767 3167 * predict.c (combine_predictions_for_insn): Add casts to enum type.
81f40b79
ILT
3168 * real.c (real_arithmetic): Add cast to enum type.
3169 (real_compare): Likewise.
3170 * target.h (struct gcc_target): Change return type of
3171 branch_target_register_class to enum reg_class.
3172 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
3173 default_branch_target_register_class.
7a00d767 3174 * targhooks.c (default_branch_target_register_class): New function.
81f40b79 3175 * targhooks.h (default_branch_target_register_class): Declare.
7a00d767 3176 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
81f40b79
ILT
3177 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
3178 cast to int.
3179 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
3180 ERROR_MARK.
3181 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
3182 vect_uninitialized_def. Change 0 to ERROR_MARK.
3183 * tree-vect-stmts.c (supportable_widening_operation): Don't
3184 initialize icode1 and icode2.
7a00d767 3185 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
81f40b79
ILT
3186 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
3187 and to STD_C89.
3188 (cmn_err_flag_specs): Change 0 to STD_C89.
3189 (cmn_err_char_table): Likewise.
3190 * config/arm/arm.c (get_arm_condition_code): Change type of code
3191 to enum arm_cond_code.
3192 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
3193 (IWMMXT_BUILTIN2): Likewise.
3194 (neon_builtin_type_bits): Don't define typedef.
3195 (neon_builtin_datum): Change type of bits field to int.
3196 (arm_expand_neon_args): Add cast to enum type.
3197 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
3198 TLS_MODEL_NONE.
3199 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
3200 casts to enum type.
3201 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
3202 MIPS_FP_COND_f.
3203 * config/mips/mips.md (jal_macro): Return enum constant.
3204 (single_insn): Likewise.
3205 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
3206 CODE_FOR_nothing.
3207 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3208 casts to enum type.
3209 * config/s390/s390.c (s390_tune_flags): Change type to int.
3210 (s390_arch_flags): Likewise.
7a00d767 3211 (s390_handle_arch_option): Change flags field of struct pta to int.
81f40b79
ILT
3212 * config/s390/s390.h (s390_tune_flags): Update declaration.
3213 (s390_arch_flags): Likewise.
3214 * config/sh/sh.c (prepare_move_operands): Compare
3215 tls_symbolic_operand result with enum constant.
3216 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
3217 (sh_expand_prologue): Add cast to enum type.
3218 (sh_expand_epilogue): Likewise.
3219 (tls_symbolic_operand): Change return type to enum tls_model.
3220 (fpscr_set_from_mem): Add cast to enum type.
3221 (legitimize_pic_address): Compare tls_symbolic_operand result with
3222 enum constant.
3223 (sh_target_reg_class): Change return type to enum reg_class.
3224 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
3225 PROCESSOR_xxx.
7a00d767
UB
3226 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
3227 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
81f40b79
ILT
3228 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
3229 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
3230 (delayed_branch, tls_call_delay): Likewise.
3231 (eligible_for_sibcall_delay): Likewise.
3232 (eligible_for_return_delay): Likewise.
3233 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
3234 (spu_expand_builtin_1): Likewise.
3235
3236 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
3237 for all types of conversions.
3238 (output_init_element): Issue -Wc++-compat warning if needed when
3239 initializing a bitfield with enum type.
3240 * c-parser.c (c_parser_expression): Set original_type to
3241 original_type of right hand operand of comman operator.
3242
e4ae5e77
RW
32432009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3244
3245 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
3246 grammar nits.
7a00d767 3247 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
e4ae5e77
RW
3248 * doc/cpp.texi (Standard Predefined Macros)
3249 (Implementation-defined behavior): Likewise.
7a00d767 3250 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
e4ae5e77
RW
3251 * doc/gimple.texi (GIMPLE Exception Handling)
3252 (@code{GIMPLE_ASSIGN}): Likewise.
7a00d767 3253 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
e4ae5e77
RW
3254 * doc/invoke.texi (Warning Options, Optimize Options)
3255 (AVR Options, Darwin Options): Likewise.
3256 (Optimize Options): Reformulate -fwhole-program description.
3257 * doc/loop.texi (Lambda): Likewise.
3258 * doc/md.texi (Output Template, Define Constraints)
3259 (Standard Names, Insn Splitting): Likewise.
3260 * doc/options.texi (Option properties): Likewise.
3261 * doc/passes.texi (Tree-SSA passes): Likewise.
3262 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
3263 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
3264 (File Names and DBX): Likewise.
3265 * doc/trouble.texi (Incompatibilities): Likewise.
3266
1883802f 32672009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
6e37f6d4
TS
3268
3269 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
3270 instruction is correct.
3271
1883802f 32722009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
5345cf68
TS
3273
3274 Allow non-constant arguments to conversion intrinsics.
3275 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
3276 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
3277 * spu.c (print_operand): Handle 'v' and 'w'.
3278 (exp2_immediate_p, spu_gen_exp2): Define.
3279 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
3280 spu_convtf_1): Update parameter descriptions.
7a00d767 3281 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
5345cf68
TS
3282 * constraints.md ('v', 'w'): New.
3283 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
3284 Remove.
3285 (i2f, I2F): New define_mode_attr.
3286 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
3287 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
3288 fixuns_truncv4sfv4si2): Update to use mode attribute.
3289 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
3290 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
3291 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
3292 patterns for combine.
3293
5f39ad47
SB
32942009-04-27 Steven Bosscher <steven@gcc.gnu.org>
3295
3296 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
3297 (cprop, hoist, pre, store_motion): New debug counters.
3298 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
3299 is not an RTL pass anymore.
3300 (pass_profiling): Remove extern decl for pass removed in 2005.
3301 (pass_gcse, pass_jump_bypass): Remove.
3302 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
3303 to 0 for clean state.
3304 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
3305 * cse.c (gate_handle_cse_after_global_opts,
3306 rest_of_handle_cse_after_global_opts): New functions.
3307 (pass_cse_after_global_opts): New pass, does local CSE.
3308 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
3309 (TV_CPROP): New timevar.
3310 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
3311 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
3312 (gcse_main, recompute_all_luids): Remove.
3313 (compute_hash_table_work): Call max_reg_num instead of reading
3314 max_gcse_regno.
3315 (cprop_jump): Don't set run_jump_opt_after_gcse.
3316 (constprop_register): Always allow to alter jumps.
3317 (cprop_insn): Likewise.
3318 (do_local_cprop): Likewise.
3319 (local_cprop_pass): Likewise. Return non-zero if something changed.
3320 (cprop): Remove function, fold interesting bits into one_cprop_pass.
3321 (find_implicit_sets): Add note about missed optimization opportunity.
3322 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
3323 pass_rtl_cprop execute function.
3324 Don't bother tracking the pass number, each pass gets its own dumpfile
3325 now anyway.
3326 Always allow to alter jumpsand bypass jumps.
3327 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
3328 will just find no suitable set.
3329 (pre_edge_insert): Fix dumping, this function is for PRE only.
3330 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
3331 pass_rtl_pre execute function.
3332 (hoist_code): Return non-zero if something changed. Keep track of
3333 substitutions and insertions for statistics gathering similar to PRE.
3334 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
3335 called from the pass_rtl_hoist execute function. Show pass statistics.
3336 (compute_store_table): Use max_reg_num directly instead of using the
3337 formerly global max_gcse_regno.
3338 (build_store_vectors): Likewise.
3339 (replace_store_insn): Fix dumping.
3340 (store_motion): Rename to ...
3341 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
3342 pass, called from the pass_rtl_store_motion execute function. Keep
3343 track of substitutions and insertions for statistics gathering similar
3344 to PRE.
3345 (bypass_jumps): Remove, fold interesting bits into ...
3346 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
3347 from the pass_rtl_cprop execute function.
3348 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
3349 pass_jump_bypass): Remove.
3350 (gate_handle_gcse, rest_of_handle_gcse): Remove.
3351 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
3352 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
3353 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
3354 (gate_rtl_store_motion, execute_rtl_store_motion,
3355 pass_rtl_store_motion): New.
3356 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
3357 make it clear that -fcse-skip-blocks is a no-op for backward compat.
3358 * passes.c (init_optimization_passes): Remove pass_gcse and
3359 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
3360 and cse_after_global_opts in place of pass_gcse. Schedule cprop
3361 instead of pass_jump_bypass.
3362
c685de4a
RG
33632009-04-27 Richard Guenther <rguenther@suse.de>
3364
3365 PR middle-end/39928
3366 * gimplify.c (gimplify_expr): If we are required to create
3367 a temporary make sure it ends up as register.
3368
72d41f29
L
33692009-04-27 H.J. Lu <hongjiu.lu@intel.com>
3370
3371 PR target/39903
3372 * config/i386/i386.c (construct_container): Don't call
3373 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
3374 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
3375
e97809c6
MM
33762009-04-27 Michael Matz <matz@suse.de>
3377
3378 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
3379 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
3380 * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
3381 (dump_replaceable_exprs): Take a bitmap.
3382 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
3383 array.
3384 (expand_gimple_basic_block): Likewise.
3385 * tree-ssa-ter.c (struct temp_expr_table_d): Make
3386 replaceable_expressions member a bitmap.
3387 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
3388 (mark_replaceable): Likewise.
3389 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
3390 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
3391
211ca15c
RG
33922009-04-27 Richard Guenther <rguenther@suse.de>
3393
3394 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
3395 (verify_stmts): Dispatch to gimple/type verification code.
3396 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
3397 issue with call argument types.
3398
fca5f3d1
MM
33992009-04-27 Michael Matz <matz@suse.de>
3400
3401 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
3402 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
3403 to above.
3404
a1fa3e79 34052009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
8224166e 3406 Eric Botcazou <ebotcazou@adacore.com>
a1fa3e79
EB
3407
3408 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
3409 a label's basic block.
3410 (mark_target_live_regs): Tidy and rework obsolete comments.
3411 Change back DF problem to LIVE. If a label starts a basic block,
3412 assume that all registers that used to be live then still are.
3413 (init_resource_info): If a label starts a basic block, set its
3414 BLOCK_FOR_INSN accordingly.
3415 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
3416
33b223c0
RG
34172009-04-27 Richard Guenther <rguenther@suse.de>
3418
3419 * tree-flow-inline.h (function_ann): Remove.
3420 (get_function_ann): Likewise.
3421 * tree-dfa.c (create_function_ann): Remove.
3422 * tree-flow.h (struct static_var_ann_d): Remove.
3423 (struct function_ann_d): Likewise.
3424 (union tree_ann_d): Remove fdecl member.
3425 (function_ann_t): Remove.
3426 (function_ann, get_function_ann, create_function_ann): Remove
3427 declarations.
3428
e3136fa2
UB
34292009-04-27 Uros Bizjak <ubizjak@gmail.com>
3430
3431 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
3432
f87c9042
JH
34332009-04-27 Jan Hubicka <jh@suse.cz>
3434
3435 * ipa-pure-const.c (struct funct_state_d): New fields
3436 state_previously_known, looping_previously_known; remove
3437 state_set_in_source.
3438 (analyze_function): Use new fields.
3439 (propagate): Avoid assumption that state_set_in_source imply
3440 nonlooping.
3441
3442 * tree-ssa-loop-niter.c (finite_loop_p): New function.
3443 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
3444 * cfgloop.h (finite_loop_p): Declare.
3445
33abd718
MM
34462009-04-26 Michael Matz <matz@suse.de>
3447
e3136fa2 3448 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
33abd718 3449
ddc34084
MM
34502009-04-26 Michael Matz <matz@suse.de>
3451
3452 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
3453 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
3454 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
3455 pass_mark_used_blocks): Remove.
3456 * tree-optimize.c (pass_free_datastructures,
3457 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
3458 * passes.c (init_optimization_passes): Don't call
3459 pass_mark_used_blocks, remove dead code.
3460
1fec7ed4
L
34612009-04-26 H.J. Lu <hongjiu.lu@intel.com>
3462
3463 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
3464 * tree-ssa-live.h (register_ssa_partition): Likewise.
3465
4e3825db
MM
34662009-04-26 Michael Matz <matz@suse.de>
3467
3468 Expand from SSA.
3469 * builtins.c (fold_builtin_next_arg): Handle SSA names.
3470 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
3471 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
3472 SSA names.
3473 (compare_pairs): Swap cost comparison.
3474 (coalesce_ssa_name): Don't use change_partition_var.
3475 * tree-nrv.c (struct nrv_data): Add modified member.
3476 (finalize_nrv_r): Set it.
3477 (tree_nrv): Use it to update statements.
3478 (pass_nrv): Require PROP_ssa.
3479 * tree-mudflap.c (mf_decl_cache_locals,
3480 mf_build_check_statement_for): Use make_rename_temp.
3481 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
3482 * alias.c (find_base_decl): Handle SSA names.
3483 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
3484 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
3485 * rtl.h (set_reg_attrs_for_parm): Declare.
3486 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
3487 to "optimized", remove unused locals at finish.
3488 (execute_free_datastructures): Make global, call
3489 delete_tree_cfg_annotations.
3490 (execute_free_cfg_annotations): Don't call
3491 delete_tree_cfg_annotations.
3492
3493 * ssaexpand.h: New file.
3494 * expr.c (toplevel): Include ssaexpand.h.
e3136fa2 3495 (expand_assignment): Handle SSA names the same as register variables.
4e3825db
MM
3496 (expand_expr_real_1): Expand SSA names.
3497 * cfgexpand.c (toplevel): Include ssaexpand.h.
3498 (SA): New global variable.
3499 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
3500 (SSAVAR): New macro.
3501 (set_rtl): New helper function.
3502 (add_stack_var): Deal with SSA names, use set_rtl.
3503 (expand_one_stack_var_at): Likewise.
3504 (expand_one_stack_var): Deal with SSA names.
3505 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
3506 before unique numbers.
3507 (expand_stack_vars): Use set_rtl.
3508 (expand_one_var): Accept SSA names, add asserts for them, feed them
3509 to above subroutines.
3510 (expand_used_vars): Expand all partitions (without default defs),
3511 then only the local decls (ignoring those expanded already).
3512 (expand_gimple_cond): Remove edges when jumpif() expands an
3513 unconditional jump.
3514 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
3515 or remove abnormal edges. Ignore insns setting the LHS of a TERed
3516 SSA name.
3517 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
3518 members of SA; deal with PARM_DECL partitions here; expand
3519 all PHI nodes, free tree datastructures and SA. Commit instructions
3520 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
3521 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
3522 info and statements at start, collect garbage at finish.
3523 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
3524 (VAR_ANN_PARTITION) Remove.
3525 (change_partition_var): Don't declare.
3526 (partition_to_var): Always return SSA names.
3527 (var_to_partition): Only accept SSA names.
3528 (register_ssa_partition): Only check argument.
3529 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
3530 member.
3531 (delete_var_map): Don't free it.
3532 (var_union): Only accept SSA names, simplify.
3533 (partition_view_init): Mark only useful SSA names as used.
3534 (partition_view_fini): Only deal with SSA names.
3535 (change_partition_var): Remove.
3536 (dump_var_map): Use ssa_name instead of partition_to_var member.
3537 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
3538 basic blocks.
3539 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
3540 (struct _elim_graph): New member const_dests; nodes member vector of
3541 ints.
3542 (set_location_for_edge): New static helper.
3543 (create_temp): Remove.
3544 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
e3136fa2 3545 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
4e3825db
MM
3546 (new_elim_graph): Allocate const_dests member.
3547 (clean_elim_graph): Truncate const_dests member.
3548 (delete_elim_graph): Free const_dests member.
3549 (elim_graph_size): Adapt to new type of nodes member.
3550 (elim_graph_add_node): Likewise.
3551 (eliminate_name): Likewise.
3552 (eliminate_build): Don't take basic block argument, deal only with
3553 partition numbers, not variables.
3554 (get_temp_reg): New static helper.
3555 (elim_create): Use it, deal with RTL temporaries instead of trees.
3556 (eliminate_phi): Adjust all calls to new signature.
3557 (assign_vars, replace_use_variable, replace_def_variable): Remove.
3558 (rewrite_trees): Only do checking.
3559 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
3560 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
3561 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
3562 contains_tree_r, MAX_STMTS_IN_LATCH,
3563 process_single_block_loop_latch, analyze_edges_for_bb,
3564 perform_edge_inserts): Remove.
3565 (expand_phi_nodes): New global function.
3566 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
3567 functions, initialize new parameter, remember partitions having a
3568 default def.
3569 (finish_out_of_ssa): New global function.
3570 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
3571 don't reset in_ssa_p here, don't disable TER when mudflap.
3572 (pass_del_ssa): Remove.
3573 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
3574 partition members.
3575 (execute_free_datastructures): Declare.
3576 * Makefile.in (SSAEXPAND_H): New variable.
3577 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
3578 * basic-block.h (commit_one_edge_insertion): Declare.
3579 * passes.c (init_optimization_passes): Move pass_nrv and
3580 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
3581 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
3582 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
3583 (redirect_branch_edge): Deal with super block when expanding, split
3584 out jump patching itself into ...
3585 (patch_jump_insn): ... here, new static helper.
3586
17c665a9
MM
35872009-04-26 Michael Matz <matz@suse.de>
3588
3589 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
3590 beyond num_ssa_names.
3591 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
3592 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
3593
92061771
JJ
35942009-04-26 Jakub Jelinek <jakub@redhat.com>
3595
ce372372
JJ
3596 PR inline-asm/39543
3597 * fwprop.c (forward_propagate_asm): New function.
3598 (forward_propagate_and_simplify): Propagate also into __asm, if it
3599 doesn't increase the number of referenced registers.
3600
92061771
JJ
3601 PR c/39889
3602 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
3603
36042009-04-26 Jakub Jelinek <jakub@redhat.com>
77f2a970
JJ
3605
3606 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
3607 note_nonlocal_vla_type for nonlocal VLAs.
3608 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
3609 contains_remapped_vars, remap_vla_decls): New functions.
3610 (convert_nonlocal_reference_stmt): If not optimizing, call
3611 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
3612 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
3613 if it wasn't found in var_map.
3614 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
3615 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
3616 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
3617 declare_vars.
3618 * gimplify.c (nonlocal_vlas): New variable.
3619 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
3620 referenced VLAs.
3621 (gimplify_body): Create and destroy nonlocal_vlas.
a9548ddf 3622
4561e242
JJ
3623 * dwarf2out.c (loc_descr_plus_const): New function.
3624 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
3625 mem_loc_descriptor, loc_descriptor_from_tree_1,
3626 descr_info_loc, gen_variable_die): Use it.
3627
a9548ddf
JJ
3628 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
3629 !TREE_STATIC VAR_DECLs.
3630 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
3631 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
3632 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
3633 DECL_BY_REFERENCE is valid.
3634 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
3635 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
3636 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
3637 Copy DECL_BY_REFERENCE.
3638 (struct nesting_copy_body_data): New type.
3639 (nesting_copy_decl): New function.
3640 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
3641 if they have variable length.
3642
10555d08
MM
36432009-04-26 Michael Matz <matz@suse.de>
3644
3645 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
3646 mark new temporaries for renaming.
3647
e11187cc
JM
36482009-04-26 Joseph Myers <joseph@codesourcery.com>
3649
3650 PR c/39581
3651 * c-decl.c (global_bindings_p): Return negative value.
3652 (c_variable_size): New. Based on variable_size from
3653 stor-layout.c.
3654 (grokdeclarator): Call c_variable_size not variable_size.
3655
f6a51d31
UB
36562009-04-26 Uros Bizjak <ubizjak@gmail.com>
3657
3658 * config/i386/i386.c (print_operand) ['z']: Fix typo.
3659
4b97723d
KT
36602009-04-26 Kai Tietz <kai.tietz@onevision.com>
3661
3662 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
3663 Redefine it to just use mingw/include.
3664 (ASM_SPEC): Rules for -m32 and -m64.
3665 (LINK_SPEC): Use Likewise.
3666 (SPEC_32): New define.
3667 (SPEC_64): Likewise.
3668 (SUB_LINK_SPEC): Likewise.
3669 (MULTILIB_DEFAULTS): New define.
3670 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
3671 Add multilib options.
3672 (MULTILIB_DIRNAMES): Likewise.
3673 (MULTILIB_OSDIRNAMES): Likewise.
3674 (LIBGCC): Likewise.
3675 (INSTALL_LIBGCC): Likewise.
3676
991d6621
JM
36772009-04-26 Joseph Myers <joseph@codesourcery.com>
3678
3679 PR c/39556
3680 * c-tree.h (enum c_inline_static_type): New.
3681 (record_inline_static): Declare.
3682 * c-decl.c (struct c_inline_static, c_inline_statics,
3683 record_inline_static, check_inline_statics): New.
3684 (pop_file_scope): Call check_inline_statics.
3685 (start_decl): Call record_inline_static instead of pedwarning
3686 directly for static in inline function.
3687 * c-typeck.c (build_external_ref): Call record_inline_static
3688 instead of pedwarning directly for static referenced in inline
3689 function.
3690
4a81774c
SB
36912009-04-26 Steven Bosscher <steven@gcc.gnu.org>
3692
3693 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
3694 not new but only being rescanned.
3695 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
3696 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
3697 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
3698 record_set_info, compute_set, grealloc): Remove.
3699 (recompute_all_luids): New function.
3700 (gcse_main): Don't compute sets, and don't do related memory
3701 allocations/free-ing. If something changed before the end of the
3702 pass, update LUIDs using recompute_all_luids.
3703 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
3704 (free_gcse_mem): Don't free it either.
3705 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
3706 Use the df insn LUIDs.
3707 (load_killed_in_block): Likewise.
3708 (compute_hash_table_work): Don't compute reg_set_in_block.
3709 (compute_transp): Use DF_REG_DEF_CHAINs.
3710 (local_cprop_pass): Don't use compute_sets and related functions.
3711 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
3712 Use get_max_uid() instead of max_cuid.
3713 (insert_insn_end_basic_block, pre_insert_copy_insn,
3714 update_ld_motion_stores): Don't try to
3715 keep reg_set tables up to date.
3716 (pre_insert_copies): Use df insn LUIDs.
3717 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
3718 (reg_set_info): Don't use extra bitmap argument.
3719 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
3720 information to compute regs_set_in_block.
3721 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
3722 (bypass_jumps): Don't use compute_sets and friends.
3723
e8f99a9d
RW
37242009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3725
3726 PR testsuite/39710
3727 * opts.c (undocumented_msg): Do not leave blank even with
3728 ENABLE_CHECKING.
3729
6895bac8
JM
37302009-04-25 Joseph Myers <joseph@codesourcery.com>
3731
3732 * c-decl.c (build_enumerator): Allow values folding to integer
3733 constants but not integer constant expressions with a pedwarn if
3734 pedantic.
3735
24070fcb
JM
37362009-04-25 Joseph Myers <joseph@codesourcery.com>
3737
3738 PR c/39582
3739 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
3740 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
3741 type is an integer constant.
3742
d6d89aa1
UB
37432009-04-25 Uros Bizjak <ubizjak@gmail.com>
3744
3745 PR target/39897
3746 * config/i386/i386.c (print_operand) ['z']: Revert handling of
3747 HImode operands.
3748
92f6fd0b
JM
37492009-04-25 Joseph Myers <joseph@codesourcery.com>
3750
3751 PR c/39564
3752 * c-decl.c (grokdeclarator): Diagnose declarations of functions
3753 with variably modified return type and no storage class
3754 specifiers, except for the case of nested functions. Distinguish
3755 extern declarations of functions with variably modified return
3756 types from those of objects with variably modified types.
3757
a3710436
JH
37582009-04-25 Jan Hubicka <jh@suse.cz>
3759
3760 * tree.c (list_equal_p): New function.
3761 * tree.h (list_equal_p): Declare.
3762 * coretypes.h (edge_def, edge, const_edge, basic_block_def
3763 basic_block_def, basic_block, const_basic_block): New.
3764 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
3765 (redirect_eh_edge): New function.
3766 (make_eh_edge_update_phi): EH edges are not abnormal.
3767 * except.c: Include tree-flow.h.
3768 (list_match): New function.
3769 (eh_region_replaceable_by_p): New function.
3770 (replace_region): New function.
3771 (hash_type_list): New function.
3772 (hash_eh_region): New function.
3773 (eh_regions_equal_p): New function.
3774 (merge_peers): New function.
3775 (remove_unreachable_regions): Verify EH tree when checking;
3776 merge peers.
3777 (copy_eh_region_1): New function.
3778 (copy_eh_region): New function.
3779 (push_reachable_handler): New function.
3780 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
3781 regions without label but with live RESX.
3782 * except.h (redirect_eh_edge_to_label): New.
3783 * tree-flow.h (redirect_eh_edge): New.
3784 * coretypes.h (edge_def, edge, const_edge, basic_block_def
3785 basic_block_def, basic_block, const_basic_block): Remove.
3786 * Makefile.in (except.o): Add dependency on tree-flow.h
3787 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
3788 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
3789 Remove.
3790
3764d512
EB
37912009-04-25 Eric Botcazou <ebotcazou@adacore.com>
3792
3793 PR bootstrap/39645
3794 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
3795 on the destination of memcpy.
3796
1c62e8f2
PB
37972009-04-25 Paolo Bonzini <bonzini@gnu.org>
3798
3799 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
3800 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
3801 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
3802
496a4ef5
JH
38032009-04-25 Jan Hubicka <jh@suse.cz>
3804
3805 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
3806 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
3807 to be reached by different label than left.
3808 (update_eh_edges): Update comment; remove edge_to_remove if possible
3809 and return true if suceeded.
3810 (cleanup_empty_eh): Accept sharing map; handle shared regions.
3811 (cleanup_eh): Compute sharing map.
3812 * except.c (remove_eh_handler_and_replace): Add argument if we should
3813 update regions.
3814 (remove_unreachable_regions): Update for label sharing.
3815 (label_to_region_map): Likewise.
3816 (get_next_region_sharing_label): New function.
3817 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
3818 prev_try pointers.
3819 (remove_eh_handler): Update.
3820 (remove_eh_region_and_replace_by_outer_of): New function.
3821 * except.h (struct eh_region): Add next_region_sharing_label.
3822 (remove_eh_region_and_replace_by_outer_of,
3823 get_next_region_sharing_label): Declare.
3824 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
3825
38262009-04-25 Jan Hubicka <jh@suse.cz>
3827
3828 * tree-cfg.c (split_critical_edges): Split also edges where we can't
3829 insert code even if they are not critical.
3830
38312009-04-25 Jan Hubicka <jh@suse.cz>
3832
3833 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
3834 (gimple_can_remove_branch_p): EH edges won't remove branch by
3835 redirection.
3836 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
3837 updating of non-abnormal EH edges.
3838 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
3839 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
3840 (split_critical_edges): Split also edges where emitting code on them
3841 will lead to splitting later.
3842
a3a5e3d1
UB
38432009-04-25 Uros Bizjak <ubizjak@gmail.com>
3844 H.J. Lu <hongjiu.lu@intel.com>
3845
3846 PR target/39590
3847 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
3848 the configured assembler supports fildq and fistpq mnemonics.
3849 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
3850 * configure: Regenerated.
3851 * config.in: Ditto.
3852
3853 * config/i386/i386.c (print_operand): Handle 'Z'.
3854 ['z']: Remove handling of special fild/fist suffixes.
3855 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
3856 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
3857 suffix of fild insn.
3858 (*floatsi<mode>2_vector_mixed): Ditto.
3859 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
3860 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
3861 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
3862 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
3863 * config/i386/gas.h (GAS_MNEMONICS): Remove.
3864
23750d7f
BE
38652009-04-25 Ben Elliston <bje@au.ibm.com>
3866
3867 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
3868 the source of a set operation.
3869
e6ff3083
AS
38702009-04-25 Anatoly Sokolov <aesok@post.ru>
3871
3872 * target.h (struct gcc_target): Add case_values_threshold field.
3873 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
3874 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
3875 * targhooks.c (default_case_values_threshold): New function.
3876 * targhooks.h (default_case_values_threshold): Declare function.
3877 * stmt.c (expand_case): Use case_values_threshold target hook.
3878 * expr.h (case_values_threshold): Remove declartation.
3879 * expr.c (case_values_threshold): Remove function.
3880 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
3881
3882 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
3883 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
3884 (avr_case_values_threshold): Declare as static.
3885 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
3886
3887 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
3888 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
3889 (mn10300_case_values_threshold): New function.
3890
569c72fc
L
38912009-04-24 H.J. Lu <hongjiu.lu@intel.com>
3892
3893 * ira.c (setup_cover_and_important_classes): Add enum cast.
3894
ff3cb468
VM
38952009-04-24 Vladimir Makarov <vmakarov@redhat.com>
3896
3897 * genpreds.c (write_enum_constraint_num): Output definition of
3898 CONSTRAINT_NUM_DEFINED_P macro.
3899 * ira.c (setup_cover_and_important_classes): Use
3900 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
3901
4f7be849
DD
39022009-04-24 DJ Delorie <dj@redhat.com>
3903
3904 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
3905 __SH2A_SINGLE_ONLY__ also.
3906
735b94a7
SE
39072009-04-24 Steve Ellcey <sje@cup.hp.com>
3908
3909 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
3910 (movdf_internal): Ditto.
3911 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
3912 SFmode and DFmode constants.
3913 (ia64_print_operand): Add 'G' format for printing
3914 floating point constants.
3915
77a30264
RG
39162009-04-24 Richard Guenther <rguenther@suse.de>
3917
3918 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
3919 from unsigned additions.
3920
2b6da65c
JM
39212009-04-24 Joseph Myers <joseph@codesourcery.com>
3922
3923 * c-typeck.c (set_init_index): Allow array designators that are
3924 not integer constant expressions with a pedwarn if pedantic.
3925
f5a17c43
BS
39262009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
3927
3928 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
3929 zero if no overlap in nonzero bits between the operands.
3930
32e8bb8e
ILT
39312009-04-24 Ian Lance Taylor <iant@google.com>
3932
3933 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
3934 (record_dead_and_set_regs): Likewise.
3935 * df.h (struct df_mw_hardreg): Change flags field to int.
3936 (struct df_base_ref): Likewise.
3937 (struct df): Change changeable_flags field to int.
3938 * df-scan.c (df_defs_record): Change clobber_flags to int.
3939 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
3940 constants rather than #define macros.
3941 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
3942 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
3943 (enum dwarf_calling_convention): Likewise.
3944 (enum dwarf_line_number_x_ops): Likewise.
3945 (enum dwarf_call_frame_info): Likewise.
3946 (enum dwarf_source_language): Likewise.
3947 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
3948 (add_calling_convention_attribute): Likewise.
a3a5e3d1
UB
3949 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
3950 (combine_comparisons): Change compcode to int. Add cast to enum type.
32e8bb8e
ILT
3951 * genrecog.c (maybe_both_true_2): Change c to int.
3952 (write_switch): Likewise. Add cast to enum type.
3953 * gimplify.c (gimplify_omp_for): Handle return values from
3954 gimplify_expr using MIN rather than bitwise or.
3955 (gimplify_expr): Add cast to enum type.
3956 * ipa-prop.c (update_jump_functions_after_inlining): Change
3957 IPA_BOTTOM to IPA_JF_UNKNOWN.
a3a5e3d1
UB
3958 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
3959 Add casts to enum type.
32e8bb8e
ILT
3960 (setup_cover_and_important_classes): Change cl to int. Add casts
3961 to enum type.
3962 (setup_class_translate): Change cl and mode to int.
3963 (ira_init_once): Change mode to int.
3964 (free_register_move_costs): Likewise.
3965 (setup_prohibited_mode_move_regs): Add casts to enum type.
3966 * langhooks.c (add_builtin_function_common): Rework assertion that
3967 value fits bitfield.
3968 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
3969 * omega.c (omega_do_elimination): Avoid math on enum types.
3970 * optabs.c (expand_vec_shift_expr): Remove casts to int.
3971 * opts.c (set_debug_level): Change 2 to enum constant. Use new
3972 int local to handle integral_argment value.
3973 * regmove.c (try_auto_increment): Change PUT_MODE to
3974 PUT_REG_NOTE_KIND.
3975 * reload.c (push_secondary_reload): Add casts to enum type.
3976 (secondary_reload_class, find_valid_class): Likewise.
3977 * reload1.c (emit_input_reload_insns): Likewise.
3978 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
3979 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
3980 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
3981 constant.
3982 * tree.c (build_common_builtin_nodes): Add casts to enum type.
3983 * tree-complex.c (complex_lattice_t): Typedef to int rather than
3984 enum type.
3985 (expand_complex_libcall): Add casts to enum type.
3986 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
3987 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
3988 with ERROR_MARK, not NUM_TREE_CODES.
3989 (vect_create_epilog_for_reduction): Likewise.
3990 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
a3a5e3d1 3991 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
32e8bb8e
ILT
3992 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
3993 enum machine_mode.
3994 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
3995 vect_unused_in_loop. Change 0 to loop_vect.
a3a5e3d1 3996 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
32e8bb8e
ILT
3997 * var-tracking.c (get_init_value): Change return type to enum
3998 var_init_status.
3999 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
4000 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
4001 arm_fp_model.
4002 (arm_override_options): Add casts to enum type.
4003 (arm_emit_tls_decoration): Likewise.
4004 * config/i386/i386.c (ix86_function_specific_restore): Add casts
4005 to enum type.
4006 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
4007 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
4008 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
4009 enum type.
4010 * config/s390/s390.c (code_for_builtin_64): Change to array of
4011 enum insn_code.
4012 (code_for_builtin_31): Likewise.
4013 (s390_expand_builtin): Change code_for_builtin to enum insn_code
4014 const *.
4015 * config/sparc/sparc.c (sparc_override_options): Change value
4016 field in struct code_model to enum cmodel. In initializer change
4017 0 to NULL and add cast to enum type.
4018
4019 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
4020 Change all callers. Issue a -Wc++-compat warning using
4021 lhs_origtype if necessary.
4022 (convert_for_assignment): Issue -Wc++-compat warnings about
4023 invalid conversions to enum type on assignment.
4024 * c-common.h (build_modify_expr): Update declaration.
4025
ac4fc08a
NC
40262009-04-24 Nick Clifton <nickc@redhat.com>
4027
4028 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
4029 (function_arg_advance): Likewise.
4030 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
4031 5th alternative.
4032
f22e891a
AK
40332009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
4034
4035 * config/s390/constraints.md ('I', 'J'): Fix condition.
4036
ad58aabe
DN
40372009-04-24 Diego Novillo <dnovillo@google.com>
4038
4039 * gengtype-parse.c (parse_error): Add newline after message.
4040
879a4a01
L
40412009-04-24 H.J. Lu <hongjiu.lu@intel.com>
4042
4043 * config/i386/sse.md (avxmodesuffixs): Removed.
4044 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
4045 (*avx_pinsr<ssevecsize>): This.
4046
f63426af
BS
40472009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
4048
4049 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
4050 follow chains of regs with a single definition, and allow expressions
4051 that are function_invariant_p.
ce72fe6c 4052 (simple_rhs_p): Allow expressions that are function_invariant_p.
f63426af 4053
30349c74
PB
40542009-04-24 Paolo Bonzini <bonzini@gnu.org>
4055
4056 PR middle-end/39867
4057 * fold-const.c (fold_cond_expr_with_comparison): When folding
4058 > and >= to MAX, make sure the MAX uses the same type as the
4059 comparison's operands.
4060
8d8256c1
NC
40612009-04-24 Nick Clifton <nickc@redhat.com>
4062
4063 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
4064 addressing for DImode accesses.
4065 (frv_print_operand_address): Handle PLUS case.
a3a5e3d1 4066 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
8d8256c1 4067
6216f94e
JJ
40682009-04-24 Jakub Jelinek <jakub@redhat.com>
4069
4070 PR rtl-optimization/39794
4071 * alias.c (canon_true_dependence): Add x_addr argument.
4072 * rtl.h (canon_true_dependence): Adjust prototype.
4073 * cse.c (check_dependence): Adjust canon_true_dependence callers.
4074 * cselib.c (cselib_invalidate_mem): Likewise.
4075 * gcse.c (compute_transp): Likewise.
4076 * dse.c (scan_reads_nospill): Likewise.
4077 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
4078 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
4079 canon_base_addr of the group, plus optional offset.
4080 (struct group_info): Rename canon_base_mem to
4081 canon_base_addr.
4082 (get_group_info): Set canon_base_addr to canon_rtx of base, not
4083 canon_rtx of base_mem.
4084
6de7a512
PB
40852009-04-23 Paolo Bonzini <bonzini@gnu.org>
4086
4087 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
4088 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
4089
4a3a2376
UW
40902009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4091
4092 * config/spu/spu-builtins.h: Delete file.
4093
4094 * config/spu/spu.h (enum spu_builtin_type): Move here from
4095 spu-builtins.h.
4096 (struct spu_builtin_description): Likewise. Add GTY marker.
4097 Do not use enum spu_function_code or enum insn_code.
4098 (spu_builtins): Add extern declaration.
4099
4100 * config/spu/spu.c: Do not include "spu-builtins.h".
4101 (enum spu_function_code, enum spu_builtin_type_index,
4102 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
4103 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
4104 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
4105 unsigned_V2DI_type_node): Move here from spu-builtins.h.
4106 (spu_builtin_types): Make static. Add GTY marker.
4107 (spu_builtins): Add extern declaration with GTY marker.
4108 Include "gt-spu.h".
4109
4110 * config/spu/spu-c.c: Do not include "spu-builtins.h".
4111 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
4112 Check programmatically whether all parameters are scalar.
4113
4114 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
4115
bbaba73f
EB
41162009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4117
4118 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
4119 assignment from the constructor either if the target is volatile.
4120
ee93c1c6
DJ
41212009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
4122
4123 * config/arm/arm.md (insv): Do not share operands[0].
4124
b2f21330
NS
41252009-04-23 Nathan Sidwell <nathan@codesourcery.com>
4126
4127 * config/vxlib-tls.c (active_tls_threads): Delete.
4128 (delete_hook_installed): New.
4129 (tls_delete_hook): Don't delete the delete hook.
4130 (tls_destructor): Delete it here.
4131 (__gthread_set_specific): Adjust installing the delete hook.
4132 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
4133 __gthread_leave_tsd_dtor_context.
4134
4782dfa7
RAE
41352009-04-23 Rafael Avila de Espindola <espindola@google.com>
4136
4137 * c-format.c (gcc_tdiag_char_table): Add support for %E.
4138
bf758008
UB
41392009-04-23 Uros Bizjak <ubizjak@gmail.com>
4140
4141 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
4142 enum type.
4143 (alpha_rtx_costs): Ditto.
4144 (emit_unlikely_jump): Use add_reg_note.
4145 (emit_frame_store_1): Ditto.
4146 (alpha_expand_prologue): Ditto.
4147 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
4148 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
4149
7323a100
NC
41502009-04-23 Nick Clifton <nickc@redhat.com>
4151
4152 * config/v850/v850.md (epilogue): Remove suppressed code.
4153 (return): Rename to return_simple and remove test of frame size.
4154 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
4155 to gen_return_simple.
4156
360032ba
JY
41572009-04-22 Jing Yu <jingyu@google.com>
4158
4159 PR testsuite/39781
4160 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
4161
53650abe
AP
41622009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
4163
4164 PR C/31499
4165 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
4166 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
4167 value is a VECTOR_CST, the element type is the element type of the
4168 vector.
4169
89043e8a
DD
41702009-04-22 DJ Delorie <dj@redhat.com>
4171
4172 * config/m32c/m32c.h: Update GTY annotations to new syntax.
4173
023f059b
JJ
41742009-04-22 Jakub Jelinek <jakub@redhat.com>
4175
4176 * alias.c (find_base_term): Move around LO_SUM case, so that
4177 CONST falls through into PLUS/MINUS handling.
4178
2c0eba5a
JJ
4179 PR c/39855
4180 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
4181 into 0, use omit_one_operand.
4182
9a461028
BE
41832009-04-23 Ben Elliston <bje@au.ibm.com>
4184
4185 * config/rs6000/linux-unwind.h (get_regs): Remove type
4186 puns. Change the type of `pc' to an array of unsigned ints and
4187 update all users. Constify frame24.
4188
653e2568
DD
41892009-04-22 DJ Delorie <dj@redhat.com>
4190
4191 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
4192 declarations before code.
4193 (current_function_special_page_vector): Likewise.
4194 (m32c_expand_insv): Silence a warning.
4195
60839f5d 41962009-04-21 Taras Glek <tglek@mozilla.com>
d1b38208
TG
4197
4198 * alias.c: Update GTY annotations to new syntax.
4199 * basic-block.h: Likewise.
4200 * bitmap.h: Likewise.
4201 * c-common.h: Likewise.
4202 * c-decl.c: Likewise.
4203 * c-parser.c: Likewise.
4204 * c-pragma.c: Likewise.
4205 * c-tree.h: Likewise.
4206 * cfgloop.h: Likewise.
4207 * cgraph.h: Likewise.
4208 * config/alpha/alpha.c: Likewise.
4209 * config/arm/arm.h: Likewise.
4210 * config/avr/avr.h: Likewise.
4211 * config/bfin/bfin.c: Likewise.
4212 * config/cris/cris.c: Likewise.
4213 * config/darwin.c: Likewise.
4214 * config/frv/frv.c: Likewise.
4215 * config/i386/i386.c: Likewise.
4216 * config/i386/i386.h: Likewise.
4217 * config/i386/winnt.c: Likewise.
4218 * config/ia64/ia64.h: Likewise.
4219 * config/iq2000/iq2000.c: Likewise.
4220 * config/mips/mips.c: Likewise.
4221 * config/mmix/mmix.h: Likewise.
4222 * config/pa/pa.c: Likewise.
4223 * config/pa/pa.h: Likewise.
4224 * config/rs6000/rs6000.c: Likewise.
4225 * config/s390/s390.c: Likewise.
4226 * config/sparc/sparc.c: Likewise.
4227 * config/xtensa/xtensa.c: Likewise.
4228 * cselib.h: Likewise.
4229 * dbxout.c: Likewise.
4230 * dwarf2out.c: Likewise.
4231 * except.c: Likewise.
4232 * except.h: Likewise.
4233 * fixed-value.h: Likewise.
4234 * function.c: Likewise.
4235 * function.h: Likewise.
4236 * gimple.h: Likewise.
4237 * integrate.c: Likewise.
4238 * optabs.c: Likewise.
4239 * output.h: Likewise.
4240 * real.h: Likewise.
4241 * rtl.h: Likewise.
4242 * stringpool.c: Likewise.
4243 * tree-data-ref.c: Likewise.
4244 * tree-flow.h: Likewise.
4245 * tree-scalar-evolution.c: Likewise.
4246 * tree-ssa-address.c: Likewise.
4247 * tree-ssa-alias.h: Likewise.
4248 * tree-ssa-operands.h: Likewise.
4249 * tree.c: Likewise.
4250 * tree.h: Likewise.
4251 * varasm.c: Likewise.
4252 * varray.h: Likewise.
4253 * vec.h: Likewise.
bf758008 4254 * coretypes.h: Do not define GTY macro if it is already defined.
d1b38208
TG
4255 * doc/gty.texi: Update GTY documentation to new syntax.
4256 * gengtype-lex.l: Enforce attribute-like syntax for GTY
4257 annotations on structs.
4258 * gengtype-parse.c: Likewise.
4259
a123d175
MH
42602009-04-22 Mark Heffernan <meheff@google.com>
4261
bf758008 4262 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
a123d175 4263
4c7c486a
KH
42642009-04-22 Kazu Hirata <kazu@codesourcery.com>
4265
4266 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
4267 where appropriate.
4268
6e782a29
KH
42692009-04-22 Kazu Hirata <kazu@codesourcery.com>
4270
4271 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
4272 the same as a PLUS without a shift. Increase the cost of a
4273 CONST_INT in MULT.
4274
38d2336a
MLI
42752009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4276
4277 * Makefile.in: Update dependencies.
bf758008 4278 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
38d2336a
MLI
4279 * errors.h: Remove bogus comment about compatibility.
4280 (warning): Update declaration.
4281 * genautomata.c: Update all calls to warning.
4282 * gimple.c: Do not include errors.h. Include toplev.h.
4283 * tree-ssa-structalias.c: Do not include errors.h.
4284 * omega.c: Likewise.
4285 * tree-ssa-reassoc.c: Likewise.
4286 * config/spu/spu-c.c: Likewise.
4287 * config/spu/t-spu-elf: Update dependencies.
4288
aea4deba
RG
42892009-04-22 Richard Guenther <rguenther@suse.de>
4290
4291 PR tree-optimization/39824
4292 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
4293 make sure the types are compatible.
4294
cfc93532
MLI
42952009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4296
4297 PR c++/14875
4298 * c-common.c (c_parse_error): Take a token_flags parameter.
4299 Use token_type for the token type instead.
4300 Pass token_flags to cpp_type2name.
4301 * c-common.h (c_parse_error): Update declaration.
4302 * c-parser.c (c_parser_error): Pass 0 as token flags.
4303
8632d02a
AB
43042009-04-22 Andrey Belevantsev <abel@ispras.ru>
4305
4306 PR rtl-optimization/39580
4307 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
4308
4c33221c
UW
43092009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4310
4311 * function.c (expand_function_end): Do not emit a jump to the "naked"
4312 return label for fall-through returns.
4313 * except.c (sjlj_emit_function_exit): Always place the call to the
4314 unregister function at the location installed by expand_function_end.
4315
9925bce0
RG
43162009-04-22 Richard Guenther <rguenther@suse.de>
4317
4318 PR tree-optimization/39845
4319 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
4320 (gen_inbound_check): Likewise.
4321
24a40b35
NS
43222009-04-22 Nathan Sidwell <nathan@codesourcery.com>
4323
4324 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
4325 padding for PPC.
4326 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
4327 * config/vxlib.c (__gthread_once): Add race guard for PPC.
4328
6c34a092
PB
43292009-04-22 Paolo Bonzini <bonzini@gnu.org>
4330
4331 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
4332 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
4333 shift counts to avoid out-of-bounds array accesses.
4334
baa48dfa
PB
43352009-04-22 Paolo Bonzini <bonzini@gnu.org>
4336
4337 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
4338 (Pmode): Move above.
4339
7d83f4f5
UB
43402009-04-22 Uros Bizjak <ubizjak@gmail.com>
4341
4342 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
4343 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
4344 GET_CODE macro. Use IN_RANGE macro where appropriate.
4345 * config/alpha/alpha.h: Ditto.
4346 * config/alpha/alpha.md: Ditto.
4347 * config/alpha/constraints.md: Ditto.
4348 * config/alpha/predicates.md: Ditto.
4349
3ad606bc
PB
43502009-04-22 Paolo Bonzini <bonzini@gnu.org>
4351
4352 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
4353 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4354 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4355 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4356 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4357 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4358 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4359 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4360 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4361 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4362 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4363 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4364 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4365 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4366 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4367 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4368 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4369 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4370 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4371 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4372 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4373 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4374 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4375 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4376 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4377 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4378 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
4379
3cabd6d1
LB
43802009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4381
4382 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
4383 references from comments.
4384 * cfgbuild.c: (count_basic_blocks): Delete.
4385 (find_basic_blocks_1): Delete.
4386 (find_basic_blocks): Delete.
4387 * except.c (finish_eh_generation): Make static. Move comment from
7d83f4f5 4388 except.h here. Remove find_basic_blocks references from comments.
3cabd6d1
LB
4389 * except.h (finish_eh_generation): Delete.
4390 * basic-block.h (find_basic_blocks): Delete.
4391 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
4392
270d1bcd
DK
43932009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
4394
4395 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
4396 (sdbout_parms): Likewise.
4397
b757d36f
KK
43982009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
4399
4400 * config/sh/sh.c (prepare_cbranch_operands): Use
4401 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
4402 (expand_cbranchdi4): Likewise.
4403 (from_compare): Add cast to enum type.
4404 (expand_cbranchsi4): Use add_reg_note.
4405 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
4406 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
4407 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
4408 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
4409 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
4410 instead of CODE_FOR_nothing.
4411 (cbranchdi4): Likewise. Fix the order of arguments for
4412 gen_rtx_fmt_ee.
4413 (push_fpscr): Use add_reg_note.
4414 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
4415 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
4416
ad41bd84
JM
44172009-04-21 Joseph Myers <joseph@codesourcery.com>
4418
4419 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
4420 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
4421 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
4422 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
4423 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
4424 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
4425 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
4426 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
4427 config/alpha/x-vms, config/arc/t-arc,
4428 config/arm/README-interworking, config/arm/arm-c.c,
4429 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
4430 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
4431 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
4432 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
4433 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
4434 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
4435 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
4436 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
4437 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
4438 config/cris/t-elfmulti, config/crx/t-crx,
4439 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
4440 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
4441 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
4442 config/h8300/t-h8300, config/i386/athlon.md,
4443 config/i386/darwin-libgcc.10.4.ver,
4444 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
4445 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
4446 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
4447 config/i386/t-linux64, config/i386/t-nwld,
4448 config/i386/t-rtems-i386, config/i386/t-sol2-10,
4449 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
4450 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
4451 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
4452 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
4453 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
4454 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
4455 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
4456 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
4457 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
4458 config/m68k/t-uclinux, config/mcore/t-mcore,
4459 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
4460 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
4461 config/mips/crtn.asm, config/mips/irix-crti.asm,
4462 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
4463 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
4464 config/mips/mips-fixed.md, config/mips/sb1.md,
4465 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
4466 config/mips/t-iris6, config/mips/t-isa3264,
4467 config/mips/t-libgcc-mips16, config/mips/t-linux64,
4468 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
4469 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
4470 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
4471 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
4472 config/mn10300/t-linux, config/mn10300/t-mn10300,
4473 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
4474 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
4475 config/picochip/libgccExtras/clzsi2.asm,
4476 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
4477 config/rs6000/darwin-libgcc.10.4.ver,
4478 config/rs6000/darwin-libgcc.10.5.ver,
4479 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
4480 config/rs6000/t-aix43, config/rs6000/t-aix52,
4481 config/rs6000/t-darwin, config/rs6000/t-fprules,
4482 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
4483 config/rs6000/t-lynx, config/rs6000/t-netbsd,
4484 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
4485 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
4486 config/rs6000/t-rtems, config/rs6000/t-spe,
4487 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
4488 config/score/t-score-elf, config/sh/divcost-analysis,
4489 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
4490 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
4491 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
4492 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
4493 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
4494 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
4495 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
4496 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
4497 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
4498 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
4499 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
4500 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
4501 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
4502 limitx.h, version.c, xcoff.h: Add copyright and license notices.
4503 * config/h8300/genmova.sh: Include copyright and license notices
4504 in generated output.
4505 * config/h8300/mova.md: Regenerate.
4506 * doc/install.texi2html: Include word "Copyright" in copyright
4507 notice and use name "Free Software Foundation, Inc.".
4508 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
4509 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
4510 ChangeLog-2007, ChangeLog-2008: Correct dates.
4511
ca80e52b
EB
45122009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4513
4514 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
4515 NE_EXPR operations as well.
4516 * c-parser.c (c_parser_condition): Do not set location information on
4517 the condition.
4518 (c_parser_conditional_expression): Likewise.
4519 (c_parser_binary_expression): Set location information on operators.
4520 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
4521 TRUTH_NOT_EXPR has been folded.
4522 * fold-const.c (fold_truth_not_expr): Copy location information from
4523 the incoming expression to the outgoing one.
4524 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
4525 recursive calls on the LHS of the operator but pass that of the
4526 operator to recursive calls on the RHS of the operator. Set it
4527 on the COND_EXPR.
4528 (shortcut_cond_expr): Set the locus of the operator on the second
4529 COND_EXPR and that of the expression on the first in degenerate cases.
4530 Pass the locus of the expression to calls to shortcut_cond_r.
4531 Set the locus of the 'then' block on the associated jump, if any.
4532 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
4533 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
4534 expression to call to gimplify_boolean_expr.
4535
35091630
KT
45362009-04-21 Kai Tietz <kai.tietz@onevision.com>
4537
4538 * config.gcc: Add additional configuration for
4539 i686-w64-mingw* and x86_64-w64-mingw* triplet.
4540 * config/i386/mingw-w64.h: New mingw-w64 specific header.
4541 (CPP_SPEC): Redefine for allowing -municode option.
4542 (STARTFILE_SPEC): Likewise.
4543 * config/i386/t-mingw-w64: New.
4544 * config/i386/mingw-w64.opt: New.
4545 (municode): Add new target option.
4546 * doc/invoke.texi (municode): Add documentation for new option.
4547
0267afc4
ILT
45482009-04-21 Ian Lance Taylor <iant@google.com>
4549
4550 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4551 Correct test for number of arguments.
4552 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
4553
2ba9daa7
AS
45542009-04-21 Andreas Schwab <schwab@linux-m68k.org>
4555
4556 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
4557 argument of emit_library_call.
4558
ad8a1ac0
RG
45592009-04-21 Richard Guenther <rguenther@suse.de>
4560
4561 PR middle-end/39829
4562 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
4563 inside VIEW_CONVERT_EXPRs.
4564
7156c8ab
MJ
45652009-04-21 Martin Jambor <mjambor@suse.cz>
4566
4567 * tree-switch-conversion.c (build_constructors): Split a long line.
4568 (constructor_contains_same_values_p): New function.
7d83f4f5
UB
4569 (build_one_array): Create assigns of constants if possible, do not
4570 call mark_sym_for_renaming, call update_stmt.
7156c8ab
MJ
4571 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
4572 make_rename_temp. Do not call mark_symbols_for_renaming, call
4573 update_stmt.
4574 (gen_def_assigns): Do not call mark_symbols_for_renaming or
4575 find_new_referenced_vars, call update_stmt.
4576 (gen_inbound_check): Use create_tmp_var and create ssa names manually
4577 instead of calling make_rename_temp. Do not call
4578 find_new_referenced_vars or mark_symbols_for_renaming, call
4579 update_stmt.
4580
2970ccb3
RG
45812009-04-21 Richard Guenther <rguenther@suse.de>
4582
4583 PR tree-optimization/39827
7d83f4f5 4584 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
2970ccb3
RG
4585 (tree_ssa_phiprop): Pass the correct array size.
4586
47f402d1
UB
45872009-04-21 Uros Bizjak <ubizjak@gmail.com>
4588
4589 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
4590
1e4ae551
MLI
45912009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4592
4593 PR 16202
4594 * c-typeck.c (lvalue_p): Move declaration ...
4595 * c-common.h (lvalue_p): ... to here.
4596 * c-common.c (candidate_equal_p): New.
4597 (add_tlist): Use it.
4598 (merge_tlist): Use it.
4599 (warn_for_collisions_1): Likewise.
4600 (warning_candidate_p): Accept more candidates.
4601 (verify_tree): A warning candidate can be an expression. Use
4602 candidate_equal_p.
4603
244609a6
BE
46042009-04-21 Ben Elliston <bje@au.ibm.com>
4605
4606 PR target/5267
4607 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
4608 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
4609 options. Remove -mcall-solaris documentation.
4610
9c650d90
MLI
46112009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4612
4613 PR c++/13358
4614 * doc/invoke.texi (-Wlong-long): Update description.
4615 * c-lex (interpret_integer): Only warn if there was no previous
4616 overflow and -Wlong-long is enabled.
4617 * c-decl.c (declspecs_add_type): Drop redundant flags.
4618 * c.opt (Wlong-long): Init to -1.
4619 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
4620 and front-end warn_long_long. Wlong-long only depends on other
4621 flags if it is uninitialized.
4622 * c-parser.c (disable_extension_diagnostics): warn_long_long is
4623 the same for CPP and FE.
4624 (restore_extension_diagnostics): Likewise.
4625
bbbbb16a
ILT
46262009-04-20 Ian Lance Taylor <iant@google.com>
4627
4628 Fix enum conversions which are invalid in C++:
47f402d1
UB
4629 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
4630 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
bbbbb16a
ILT
4631 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
4632 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
47f402d1 4633 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
bbbbb16a 4634 (dbxout_parms): Likewise.
47f402d1 4635 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
bbbbb16a
ILT
4636 (df_clear_flags): Likewise.
4637 * df-problems.c (df_rd_bb_local_compute_process_def): Change
4638 top_flag parameter to int.
4639 (df_chain_create_bb_process_use): Likewise.
47f402d1
UB
4640 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
4641 Remove cast.
bbbbb16a
ILT
4642 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
4643 (df_ref_create_structure, df_def_record_1): Likewise.
4644 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
4645 (df_notes_rescan): Change 0 to VOIDmode in function call.
4646 (df_get_call_refs, df_insn_refs_collect): Likewise.
4647 (df_bb_regs_collect): Likewise.
4648 (df_entry_block_defs_collect): Likewise.
4649 (df_exit_block_uses_collect): Likewise.
4650 * df.h: Update declarations.
4651 * double-int.c (double_int_divmod): Add cast to enum type.
4652 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
4653 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
4654 (based_loc_descr): Likewise.
4655 (loc_descriptor_from_tree_1): Change first_op and second_op to
4656 enum dwarf_location_atom. Add cast to enum type.
4657 * expmed.c (init_expmed): Change 0 to SET in function call.
47f402d1 4658 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
bbbbb16a
ILT
4659 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
4660 (do_store_flag): Likewise.
4661 * fixed-value.h (struct fixed_value): Change mode to enum
4662 machine_mode.
47f402d1 4663 * function.c (assign_parms): Change 0 to VOIDmode in function call.
bbbbb16a
ILT
4664 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
4665 function call.
4666 (insert_insn_decl, insert_decl, insert_state): Likewise.
4667 (automata_list_finish): Likewise.
4668 * genrecog.c (process_define_predicate): Add cast to enum type.
4669 * gensupport.c (init_predicate_table): Add cast to enum type.
4670 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
4671 function call.
4672 (gimple_build_call_1, gimple_build_label): Likewise.
4673 (gimple_build_goto, gimple_build_asm_1): Likewise.
4674 (gimple_build_switch_1, gimple_build_cdt): Likewise.
47f402d1 4675 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
bbbbb16a
ILT
4676 (enum fallback): Rename from enum fallback_t.
4677 (fallback_t): Typedef as int.
4678 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
4679 GSI_SAME_STMT in function call.
4680 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
4681 enum type.
4682 (setup_reg_class_relations): Likewise.
47f402d1 4683 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
bbbbb16a
ILT
4684 (setup_prohibited_class_mode_regs): Add cast to enum type.
4685 (setup_prohibited_mode_move_regs): Likewise.
47f402d1 4686 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
bbbbb16a
ILT
4687 (record_address_regs): Change i to enum reg_class.
4688 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
4689 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
4690 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
4691 (GET_MODE_2XWIDER_MODE): Likewise.
4692 (GET_CLASS_NARROWEST_MODE): Likewise.
4693 * omp-low.c (expand_omp_for): Add cast to enum type.
4694 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
4695 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
4696 * postreload.c (reload_cse_simplify_operands): Change rclass local
4697 to enum reg_class.
4698 * predict.c (combine_predictions_for_insn): Change best_predictor
4699 and predictor to enum br_predictor.
4700 (combine_predictions_for_bb): Likewise.
4701 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
4702 use SET_PREDICT_EXPR_OUTCOME.
47f402d1 4703 * real.c (real_arithmetic): Change icode to code in function call.
bbbbb16a
ILT
4704 * reginfo.c (init_move_cost): Add casts to enum type.
4705 (init_reg_sets_1, init_fake_stack_mems): Likewise.
4706 * regmove.c (regclass_compatible_p): Change class0 and class1 to
4707 enum reg_class.
4708 * reload.c (find_valid_class): Add casts to enum type.
4709 (push_reload): Change 0 to NO_REGS in function call.
4710 (find_reloads): Change this_alternative to array of enum
4711 reg_class. Remove some now-unnecessary casts.
4712 (make_memloc): Change 0 to VOIDmode in function call.
4713 * reload1.c (reload): Change 0 to VOIDmode in function call.
4714 (eliminate_regs_1, elimination_effects): Likewise.
4715 (eliminate_regs_in_insn): Likewise.
4716 (emit_input_reload_insns): Add cast to enum type.
4717 (delete_output_reload): Change 0 to VOIDmode in function call.
4718 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
4719 to enum type in function call.
4720 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
4721 (SET_PREDICT_EXPR_OUTCOME): Define.
47f402d1 4722 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
bbbbb16a
ILT
4723 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
4724 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
4725 (dump_function): Likewise.
4726 * tree-dump.h: Update declarations.
4727 * tree-pass.h: Update declarations.
4728 * varasm.c (assemble_integer): Change mclass to enum mode_class.
4729 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
4730 enum type.
4731 (arm_rtx_costs_1): Correct parenthesization.
4732 (arm_rtx_costs): Add casts to enum type.
4733 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
4734 (vfp_emit_fstmd): Use add_rg_note.
4735 (emit_multi_reg_push, emit_sfm): Likewise.
4736 (thumb_set_frame_pointer): Likewise.
4737 (arm_expand_prologue): Likewise.
4738 (arm_regno_class): Change return type to enum reg_class.
4739 (thumb1_expand_prologue): Use add_reg_note.
4740 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
4741 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
4742 in function call.
4743 * config/arm/gentune.sh: Add cast to enum type.
4744 * config/arm/arm-tune.md: Rebuild.
4745 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
4746 (ix86_split_fp_branch, predict_jump): Likewise.
4747 (ix86_expand_multi_arg_builtin): Change sub_code from enum
4748 insn_code to enum rtx_code.
4749 (ix86_builtin_vectorized_function): Add cast to enum type.
4750 * config/i386/i386.md (truncdfsf2): Change slot to enum
4751 ix86_stack_slot.
4752 (truncxf<mode>2, isinf<mode>2): Likewise.
4753 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
4754 enum type.
4755 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
4756 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
4757 (insert_bundle_state): Change 1 to INSERT in function call.
4758 (ia64_add_bundle_selector_before): Likewise.
4759 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
4760 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
4761 (restore_stack_nonlocal): Likewise.
4762 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
4763 function call.
4764 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
4765 function call.
4766 (mips_rtx_costs): Likewise.
4767 (mips_override_options): Add casts to enum type.
4768 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
4769 in function call.
4770 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
4771 (store_reg, set_reg_plus_d): Likewise.
4772 (hppa_expand_prologue, hppa_profile_hook): Likewise.
4773 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
4774 cast to enum type.
4775 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
4776 function call.
4777 (emit_unlikely_jump): Use add_reg_note.
4778 (rs6000_emit_allocate_stack): Likewise.
4779 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
4780 (output_toc): Change 1 to INSERT in function call.
4781 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
4782 (rs6000_initialize_trampoline): Likewise.
4783 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
4784 function call.
4785 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
4786 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
4787 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
4788 (save_gprs): Use add_reg_note.
4789 (s390_emit_prologue): Likewise.
47f402d1 4790 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
bbbbb16a
ILT
4791 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
4792 (sparc_fold_builtin): Add cast to enum type.
4793 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
4794 enum insn_code.
4795 (spu_expand_prologue): Use add_reg_note.
47f402d1 4796 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
bbbbb16a
ILT
4797
47982009-04-20 Ian Lance Taylor <iant@google.com>
4799
4800 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
4801 (c_parser_postfix_expression_after_primary): Get VEC for list of
4802 arguments. Get original types of arguments. Call
4803 build_function_call_vec.
4804 (cached_expr_list_1, cached_expr_list_2): New static variables.
4805 (c_parser_expr_list): Change return type to VEC *. Add
4806 p_orig_types parameter. Change all callers.
4807 (c_parser_release_expr): New static function.
4808 (c_parser_vec_to_tree_list): New static function.
4809 * c-typeck.c (build_function_call): Rewrite to build a VEC and
4810 call build_function_call_vec.
4811 (build_function_call_vec): New function, based on old
4812 build_function_call.
4813 (convert_arguments): Remove nargs and argarray parameters. Change
4814 values to a VEC. Add origtypes parameter.
47f402d1 4815 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
bbbbb16a
ILT
4816 (convert_for_assignment): Add origtype parameter. Change all
4817 callers. If warn_cxx_compat, check for conversion to an enum
4818 type when calling a function.
4819 (store_init_value): Add origtype parameter. Change all callers.
4820 (digest_init): Likewise.
4821 (struct init_node): Add origtype field.
4822 (add_pending_init): Add origtype parameter. Change all callers.
4823 (output_init_element): Likewise.
4824 (output_pending_init_elements): Pass origtype from init_node to
4825 output_init_element.
f28a61ab 4826 (process_init_element): Pass origtype from c_expr to
bbbbb16a
ILT
4827 output_init_element.
4828 (c_finish_return): Add origtype parameter. Change all callers.
4829 * c-common.c (sync_resolve_size): Change params to VEC *. Change
4830 caller.
4831 (sync_resolve_params): Likewise.
47f402d1 4832 (sync_resolve_return): Change params to first_param. Change caller.
bbbbb16a 4833 (resolve_overloaded_builtins): Change params to VEC *. Change
47f402d1 4834 callers. Save first parameter around call to build_function_call_vec.
bbbbb16a
ILT
4835 * c-decl.c (finish_decl): Add origtype parameter. Change all
4836 callers. Call build_function_call_vec rather than
4837 build_function_call for cleanup.
4838 * c-tree.h: Update declarations.
4839 * c-common.h: Update declarations.
4840 * stub-objc.c (objc_rewrite_function_call): Change parameter from
4841 params to first_param.
4842 * target.h (struct gcc_target): Change resolve_overloaded_builtin
4843 params parameter from tree to void *.
4844 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4845 Change arglist parameter to have type void *, and to be a pointer
4846 to a VEC.
4847 * config/rs6000/rs6000-protos.h
4848 (altivec_resolve_overloaded_builtin): Update declaration.
4849 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
4850 fnargs parameter to have type void *, and to be a pointer to a
4851 VEC. Call build_function_call_vec instead of
4852 build_function_call.
47f402d1 4853 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
bbbbb16a 4854
6ff078d4 48552009-04-20 Joey Ye <joey.ye@intel.com>
60839f5d 4856 Xuepeng Guo <xuepeng.guo@intel.com>
6ff078d4
JY
4857 H.J. Lu <hongjiu.lu@intel.com>
4858
4859 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
4860
4861 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
4862 (IX86_LEA_PRIORITY): Likewise.
4863 (distance_non_agu_define): New function.
4864 (distance_agu_use): Likewise.
4865 (ix86_lea_for_add_ok): Likewise.
4866 (ix86_dep_by_shift_count): Likewise.
4867
4868 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
4869 should split for LEA.
4870
4871 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
4872 function.
4873 (ix86_dep_by_shift_count): Likewise.
4874
87a5b4cc
RG
48752009-04-20 Richard Guenther <rguenther@suse.de>
4876
4877 * expr.c (handled_component_p): Move ...
4878 * tree.h (handled_component_p): ... here.
4879 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
4880 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
4881 and REALPART_EXPR to be in one group.
4882
438c239d
RG
48832009-04-20 Richard Guenther <rguenther@suse.de>
4884
4885 * basic-block.h (get_all_dominated_blocks): Declare.
4886 * dominance.c (get_all_dominated_blocks): New function.
4887 * tree-cfg.c (get_all_dominated_blocks): Remove.
4888 (remove_edge_and_dominated_blocks): Adjust.
4889 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
4890 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
4891 instead of recursing.
4892
fed5ae11
DK
48932009-04-20 Doug Kwan <dougkwan@google.com>
4894
4895 * cgraph.h (cgraph_node_ptr): New type for vector functions.
4896 (struct cgraph_node_set_def): New type.
4897 (cgraph_node_set) New type. Also declare vector functions.
4898 (struct cgraph_node_set_element_def): New type.
4899 (cgraph_node_set_element): Ditto.
4900 (cgraph_node_set_iterator): New iterator type.
4901 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
4902 cgraph_node_set_remove, dump_cgraph_node_set,
4903 debug_cgraph_node_set): New prototypes.
4904 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
4905 cgraph_node_set_size): New inlines.
4906 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
4907 including cgraph.h.
4908 (struct ipa_opt_pass): Add struct cgraph_node_set_def
4909 argument to function 'write_summary'.
4910 * ipa.c: Include ggc.h.
4911 (hash_cgraph_node_set_element,
4912 eq_cgraph_node_set_element, cgraph_node_set_new,
4913 cgraph_node_set_add, cgraph_node_set_remove,
4914 cgraph_node_set_find, dump_cgraph_node_set,
4915 debug_cgraph_node_set): New functions.
4916 * Makefile.in (ipa.o): Add dependency on GGC_H.
4917
c4551b28
IR
49182009-04-20 Ira Rosen <irar@il.ibm.com>
4919
4920 PR tree-optimization/39675
2ba9daa7 4921 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
47f402d1
UB
4922 check of the return code of vect_schedule_slp. Check that
4923 stmt_vec_info still exists for the statement, before checking its
4924 vectorization type.
c4551b28 4925
21a495fb
MM
49262009-04-20 Michael Matz <matz@suse.de>
4927
4928 * Makefile.in (generated_files): Take out $(simple_generated_c).
4929
8e208874
DK
49302009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
4931
4932 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
4933 (UINTPTR_TYPE): Likewise.
4934
a45e580b
JM
49352009-04-19 Joseph Myers <joseph@codesourcery.com>
4936
4937 PR c/37481
4938 * c-typeck.c (digest_init): Check for initializing an array with a
4939 string literal.
4940
20845d35
JM
49412009-04-19 Joseph Myers <joseph@codesourcery.com>
4942
4943 PR c/19771
4944 * c-semantics.c (pop_stmt_list): Propagate
4945 STATEMENT_LIST_HAS_LABEL to parent statement list.
4946
28143fdd
AN
49472009-04-19 Adam Nemet <anemet@caviumnetworks.com>
4948
4949 * config/mips/mips.h (mips_tune_attr): New macro.
4950 * config/mips/mips.md (cpu): Use it.
4951
da377db9
JM
49522009-04-19 Joseph Myers <joseph@codesourcery.com>
4953
4954 PR c/38243
4955 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
4956 declaring a tag.
4957
3baf459d
DN
49582009-04-19 Diego Novillo <dnovillo@google.com>
4959
4960 * toplev.c (compile_file): Move call to coverage_finish ...
4961 * cgraphunit.c (ipa_passes): ... here.
4962 Call cgraph_process_new_functions.
4963 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
4964 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
4965
b6fa5b01
JH
49662009-04-19 Jan Hubicka <jh@suse.cz>
4967
47f402d1
UB
4968 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
4969 cfun.
b6fa5b01
JH
4970 (dump_cgraph_node): Dump can throw external flag.
4971 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
4972
ca409efd
MLI
49732009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
4974
4975 PR c/32061
4976 PR c++/36954
4977 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
4978 * common.opt (Wlogical-op): Move from here...
4979 * c.opt (Wlogical-op): ... to here.
4980 * c-typeck.c (parser_build_binary_op): Update call to
4981 warn_logical_operator.
4982 * c-opts.c (c_common_post_options): Enable warn_logical_op with
4983 extra_warnings.
4984 * c-common.c (warn_logical_op): Update.
4985 * c-common.h (warn_logical_op): Update declaration.
4986
9db4cdd3
EB
49872009-04-19 Eric Botcazou <ebotcazou@adacore.com>
4988
4989 * tree.c (protected_set_expr_location): Fix formatting.
4990
f37acdf9
JM
49912009-04-18 Joseph Myers <joseph@codesourcery.com>
4992
4993 PR c/27676
4994 * c-typeck.c (readonly_warning): new.
4995 (build_unary_op, build_modify_expr): Use readonly_warning for
4996 storing into something readonly but not const-qualified.
4997
2b4b7036
JM
49982009-04-18 Joseph Myers <joseph@codesourcery.com>
4999
5000 PR c/22367
5001 * c-typeck.c (build_unary_op): Check for taking address of
5002 expression of type void.
5003
3ce62965
JM
50042009-04-18 Joseph Myers <joseph@codesourcery.com>
5005
5006 PR c/35210
5007 * c-typeck.c (build_function_call): Check for calling a function
5008 with qualified void return types. Call require_complete_type when
5009 generating a trap.
5010
2505c5ed
JH
50112009-04-18 Jan Hubicka <jh@suse.cz>
5012
5013 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
5014 Set nothrow flag.
5015 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
5016 can_throw_external flag.
5017 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
5018 * ipa-pure-const.c (ignore_edge): New function.
5019 (propagate): Compute order for NOTHROW computation; set NOTHROWs
5020 only over can_throw_external edges.
5021 (local_pure_const): Add nothrow flag.
5022 * ipa-utils.c (searchc): Add ignore_edge callback.
5023 (ipa_utils_reduced_inorder): Add ignore_edge callback.
5024 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
5025 (set_nothrow_function_flags): Update cgraph.
5026 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
5027
2586ba4b
RG
50282009-04-18 Richard Guenther <rguenther@suse.de>
5029
5030 PR middle-end/39804
5031 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
5032 (fold_stmt): ... this and ...
5033 (fold_stmt_inplace): ... this.
5034 (fold_stmt_1): Fold references in calls and asms.
5035 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
5036
1eefab17
KH
50372009-04-18 Kazu Hirata <kazu@codesourcery.com>
5038
5039 * tree-vrp.c (ssa_name_nonzero_p): Remove.
5040 * tree.h: Remove the prototype for ssa_name_nonzero_p.
5041
aa424b01
KH
50422009-04-18 Kazu Hirata <kazu@codesourcery.com>
5043
5044 * tree.c (function_args_count): Remove.
5045 * tree.h: Remove the prototype for function_args_count.
5046
613a896b
KH
50472009-04-18 Kazu Hirata <kazu@codesourcery.com>
5048
5049 * tree-iterator.c (expr_only): Remove.
5050 * tree.h: Remove the prototype for expr_only.
5051
579e694c
KH
50522009-04-18 Kazu Hirata <kazu@codesourcery.com>
5053
5054 * reginfo.c (cannot_change_mode_set_regs): Remove.
5055 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
5056
ee7e3ad3
AS
50572009-04-08 Anatoly Sokolov <aesok@post.ru>
5058
5059 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
5060 whether operands 0 and 1 overlaps.
5061
92ef7fb1
MLI
50622009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
5063
5064 PR middle-end/36902
5065 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
5066 pointer. Use warning_at instead of warning.
5067 (search_for_addr_array): Likewise.
5068 (check_array_bounds): Likewise.
5069 (check_all_array_refs): Check that the incoming edge is not in the
5070 list of edges to be removed.
5071 (check_all_array_refs): Avoid the temporal pointer.
5072 (vrp_visit_cond_stmt): Fix typo.
5073 (simplify_switch_using_ranges): Handle the case where the switch
5074 index is an integer constant.
5075
0e097268
AN
50762009-04-18 Adam Nemet <anemet@caviumnetworks.com>
5077
5078 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
5079
c782f1dd
KH
50802009-04-18 Kazu Hirata <kazu@codesourcery.com>
5081
5082 * doc/extend.texi, doc/invoke.texi: Fix typos.
5083
668fb0e8
CC
50842009-04-17 Cary Coutant <ccoutant@google.com>
5085
5086 * tree-flow-inline.h (get_lineno): Fix inverted test.
5087
4d4014c1
DN
50882009-04-17 Diego Novillo <dnovillo@google.com>
5089
5090 * tree-ssa-pre.c (create_expression_by_pieces): Remove
5091 assertion for AVAIL_OUT.
5092
2984e1b6
MF
50932009-04-17 Mike Frysinger <vapier@gentoo.org>
5094
5095 PR target/38627
5096 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
5097 * config/sh/linux-atomic.asm: Likewise.
5098
9994a182
DN
50992009-04-17 Diego Novillo <dnovillo@google.com>
5100
5101 * except.c (debug_eh_tree): New.
5102 (struct eh_region, struct eh_status): Move ...
5103 * except.h: ... here.
5104 (add_type_for_runtime): Declare extern.
5105 (lookup_type_for_runtime): Likewise.
5106 (debug_eh_tree): Declare.
5107 * Makefile.in (GTFILES): List except.h before except.c
5108
07485407
DN
51092009-04-17 Diego Novillo <dnovillo@google.com>
5110
47f402d1 5111 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
07485407
DN
5112 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
5113 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
5114 (find_vars_r): ... here.
5115 * tree-flow.h (find_referenced_vars_in): Declare.
5116 * tree-ssa-pre.c (create_expression_by_pieces): Assert
5117 that AVAIL_OUT exists for BLOCK.
5118 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
5119 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
5120 (tree-parloops.o): Likewise.
5121
4e53d196
SB
51222009-04-17 Simon Baldwin <simonb@google.com>
5123
5124 * toplev.c (default_tree_printer): Add handling for %E format.
5125
413d3aa8
DN
51262009-04-17 Diego Novillo <dnovillo@google.com>
5127
47f402d1
UB
5128 * tree-pretty-print.c (dump_generic_node): Add break after
5129 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
5130 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
5131 FUNCTION_TYPE together. Call print_struct_decl when printing
5132 structures and TDF_SLIM is not given.
413d3aa8
DN
5133 (print_struct_decl): Fix logic for detecting recursion.
5134
5a691e98
RAE
51352009-04-17 Rafael Avila de Espindola <espindola@google.com>
5136
5137 PR 31567
5138 * gcc.c (create_at_file): New.
5139 (compile_input_file_p): New.
5140 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
5141 * main.c (main): Update call to toplev_main.
5142 * toplev.c (toplev_main): Change signature. Call expandargv.
5143 * toplev.h (toplev_main): Change signature.
5144
9eacf7a6
EB
51452009-04-17 Eric Botcazou <ebotcazou@adacore.com>
5146
5147 * dwarf2out.c (field_byte_offset): Use the type size as the field size
5148 if the latter is not constant.
5149
58298177
DE
51502009-04-17 David Edelsohn <edelsohn@gnu.org>
5151
5152 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
5153
5b4c43d7
EB
51542009-04-17 Eric Botcazou <ebotcazou@adacore.com>
5155
5156 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
5157 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
5158
b51605c4
RG
51592009-04-17 Richard Guenther <rguenther@suse.de>
5160
5161 * tree-ssa-structalias.c (get_constraint_for_component_ref):
5162 Handle component references view-converting an invariant address.
5163
9e3be889
AN
51642009-04-17 Adam Nemet <anemet@caviumnetworks.com>
5165
5166 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
5167 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
5168 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
5169 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
5170 Use @deftypevr rather than @deftypevar.
5171
7c3e9dc3
RG
51722009-04-17 Richard Guenther <rguenther@suse.de>
5173
47f402d1 5174 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
7c3e9dc3
RG
5175 (get_prop_source_stmt): Likewise.
5176 (can_propagate_from): Likewise.
5177
aca600aa
AS
51782009-04-17 Andrew Stubbs <ams@codesourcery.com>
5179
5180 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
5181 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
5182 (--with-multilib-list): Add default value.
5183 * configure: Regenerate.
5184 * Makefile.in (TM_ENDIAN_CONFIG): Define.
5185 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
5186 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
5187 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
5188 Don't add default cpu to multilib list unnecessarily, but do enable
5189 the relevant compiler option..
5190 Add support for --with-multilib-list=<blank> and
5191 --with-multilib-list=!<somelib> to supress unwanted multilibs.
5192 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
5193 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
5194 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
5195 TM_MULTILIB_CONFIG.
5196 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
5197 (MULTILIB_OSDIRNAMES): New variable.
5198 * config/sh/t-1e: Delete file.
5199 * config/sh/t-mlib-sh1: Delete file.
5200 * config/sh/t-mlib-sh2: Delete file.
5201 * config/sh/t-mlib-sh2a: Delete file.
5202 * config/sh/t-mlib-sh2a-nofpu: Delete file.
5203 * config/sh/t-mlib-sh2a-single: Delete file.
5204 * config/sh/t-mlib-sh2a-single-only: Delete file.
5205 * config/sh/t-mlib-sh2e: Delete file.
5206 * config/sh/t-mlib-sh3e: Delete file.
5207 * config/sh/t-mlib-sh4: Delete file.
5208 * config/sh/t-mlib-sh4-nofpu: Delete file.
5209 * config/sh/t-mlib-sh4-single: Delete file.
5210 * config/sh/t-mlib-sh4-single-only: Delete file.
5211 * config/sh/t-mlib-sh4a: Delete file.
5212 * config/sh/t-mlib-sh4a-nofpu: Delete file.
5213 * config/sh/t-mlib-sh4a-single: Delete file.
5214 * config/sh/t-mlib-sh4a-single-only: Delete file.
5215 * config/sh/t-mlib-sh4al: Delete file.
5216 * config/sh/t-mlib-sh5-32media: Delete file.
5217 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
5218 * config/sh/t-mlib-sh5-64media: Delete file.
5219 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
5220 * config/sh/t-mlib-sh5-compact: Delete file.
5221 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
5222 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
5223 * doc/install.texi (Options specification): Add
5224 --with-multilib-list and --with-endian.
5225
cf8aba7f
RAE
52262009-04-17 Rafael Avila de Espindola <espindola@google.com>
5227
5228 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
5229 REVISION_c.
5230 (OBJS-common): Add plugin-version.o.
5231 (plugin-version.o): New.
5232 * gcc-plugin.h (plugin_gcc_version): New.
5233 (plugin_default_version_check): New.
5234 (plugin_init_func, plugin_init): Add version argument.
5235 * plugin-version.c: New.
5236 * plugin.c (str_plugin_gcc_version_name): New.
5237 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
5238 pass it to the init function.
5239 (plugin_default_version_check): New.
5240
61e20b90
RG
52412009-04-17 Richard Guenther <rguenther@suse.de>
5242
5243 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
5244 for decl-vs-decl disambiguation.
5245
90c6fd8a
AK
52462009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
5247
5248 * config/s390/s390.h (s390_tune_attr): New macro definition.
5249 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
5250
9fe9fe04
RG
52512009-04-17 Richard Guenther <rguenther@suse.de>
5252
5253 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
5254 (fold_stmt_r): Likewise.
5255 (maybe_fold_reference): New function.
5256 (fold_gimple_assign): Handle cases fold_stmt_r did.
5257 (fold_stmt): Do not use fold_stmt_r.
5258 (fold_stmt_inplace): Likewise.
5259
7e673273
RG
52602009-04-17 Richard Guenther <rguenther@suse.de>
5261
5262 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
5263 (record_equivalences_from_stmt): Remove useless checks and
5264 simplifications.
5265 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
5266 the type is already suitable.
5267
fabf2749
PB
52682009-04-17 Paolo Bonzini <bonzini@gnu.org>
5269
5270 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
5271
68f7b061
UB
52722009-04-17 Uros Bizjak <ubizjak@gmail.com>
5273
5274 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
5275 (CMPtype): Define as __gcc_CMPtype.
5276
532bfb0a
AJ
52772009-04-17 Aurelien Jarno <aurelien@aurel32.net>
5278
5279 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
5280 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
5281
e3ac77ff
RG
52822009-04-17 Richard Guenther <rguenther@suse.de>
5283
5284 PR tree-optimization/39746
5285 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
5286 special-casing for builtins and static variable use/def.
5287 (call_may_clobber_ref_p_1): Likewise.
5288
7072a650
ILT
52892009-04-16 Ian Lance Taylor <iant@google.com>
5290
5291 * df.h: Include "timevar.h".
5292 (struct df_problem): Change tv_id field to timevar_id_t.
5293 * tree-pass.h: Include "timevar.h".
5294 (struct opt_pass): Change tv_id field to timevar_id_t.
5295 * timevar.h (timevar_id_t): Define TV_NONE.
5296 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
5297 TV_NONE rather than tv_id != 0.
5298 (execute_one_pass): Likewise.
5299 * Makefile.in (DF_H): Add $(TIMEVAR_H).
5300 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
5301 dependencies to $(TREE_PASS_H).
5302 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
5303 to TV_NONE.
5304 (pass_branch_target_load_optimize2): Likewise.
5305 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
5306 (pass_outof_cfg_layout_mode): Likewise.
5307 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
5308 (pass_rebuild_cgraph_edges): Likewise.
5309 (pass_remove_cgraph_callee_edges): Likewise.
5310 * df-core.c (pass_df_initialize_opt): Likewise.
5311 (pass_df_initialize_no_opt): Likewise.
5312 (pass_df_finish): Likewise.
5313 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
5314 * except.c (pass_set_nothrow_function_flags): Likewise.
5315 (pass_convert_to_eh_region_ranges): Likewise.
5316 * final.c (pass_compute_alignments): Likewise.
5317 * function.c (pass_instantiate_virtual_regs): Likewise.
5318 (pass_init_function): Likewise.
5319 (pass_leaf_regs): Likewise.
5320 (pass_match_asm_constraints): Likewise.
5321 * gimple-low.c (pass_lower_cf): Likewise.
5322 (pass_mark_used_blocks): Likewise.
5323 * init-regs.c (pass_initialize_regs): Likewise.
5324 * integrate.c (pass_initial_value_sets): Likewise.
5325 * ira.c (pass_ira): Likewise.
5326 * jump.c (pass_cleanup_barriers): Likewise.
5327 * omp-low.c (pass_expand_omp): Likewise.
5328 (pass_lower_omp): Likewise.
5329 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
5330 * recog.c (pass_split_all_insns): Likewise.
5331 (pass_split_after_reload): Likewise.
5332 (pass_split_before_regstack): Likewise.
5333 (pass_split_before_sched2): Likewise.
5334 (pass_split_for_shorten_branches): Likewise.
5335 * reginfo.c (pass_reginfo_init): Likewise.
5336 (pass_subregs_of_mode_init): Likewise.
5337 (pass_subregs_of_mode_finish): Likewise.
5338 * passes.c (pass_postreload): Likewise.
5339 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
5340 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
5341 (pass_warn_function_return): Likewise.
5342 (pass_warn_function_noreturn): Likewise.
5343 * tree-complex.c (pass_lower_complex): Likewise.
5344 (pass_lower_complex_O0): Likewise.
5345 * tree-if-conv.c (pass_if_conversion): Likewise.
5346 * tree-into-ssa.c (pass_build_ssa): Likewise.
5347 * tree-mudflap.c (pass_mudflap_1): Likewise.
5348 (pass_mudflap_2): Likewise.
5349 * tree-nomudflap.c (pass_mudflap_1): Likewise.
5350 (pass_mudflap_2): Likewise.
5351 * tree-nrv.c (pass_return_slot): Likewise.
5352 * tree-object-size.c (pass_object_sizes): Likewise.
5353 * tree-optimize.c (pass_all_optimizations): Likewise.
5354 (pass_early_local_passes): Likewise.
5355 (pass_all_early_optimizations): Likewise.
5356 (pass_cleanup_cfg): Likewise.
5357 (pass_cleanup_cfg_post_optimizing): Likewise.
5358 (pass_free_datastructures): Likewise.
5359 (pass_free_cfg_annotations): Likewise.
5360 (pass_fixup_cfg): Likewise.
5361 (pass_init_datastructures): Likewise.
5362 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
5363 (pass_late_warn_uninitialized): Likewise.
5364 (pass_update_address_taken): Likewise.
5365 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
5366 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
5367 (pass_cse_sincos): Likewise.
5368 (pass_convert_to_rsqrt): Likewise.
5369 * tree-ssa-structalias.c (pass_build_alias): Likewise.
5370 * tree-stdarg.c (pass_stdarg): Likewise.
5371 * tree-tailcall.c (pass_tail_recursion): Likewise.
5372 (pass_tail_calls): Likewise.
5373 * tree-vect-generic.c (pass_lower_vector): Likewise.
5374 (pass_lower_vector_ssa): Likewise.
5375 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
5376
0051ef59
JM
53772009-04-16 Joseph Myers <joseph@codesourcery.com>
5378
5379 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
5380 XLR entry.
5381 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
5382 Handle -march=xlr.
5383 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
5384 logical and signext.
5385
b3f8558a
KK
53862009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
5387
5388 PR target/39767
5389 * config/sh/predicates.md (arith_operand): Check if the operand
5390 of TRUNCATE is a REG.
5391
f57597d9
KH
53922009-04-16 Kazu Hirata <kazu@codesourcery.com>
5393
5394 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
5395 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
5396
b172d063
KH
53972009-04-16 Kazu Hirata <kazu@codesourcery.com>
5398
5399 * tree-iterator.c (tsi_split_statement_list_after,
5400 tsi_split_statement_list_before): Remove.
5401 * tree-iterator.h: Remove the prototypes for
532bfb0a 5402 tsi_split_statement_list_after and tsi_split_statement_list_before.
b172d063 5403
78fe4f1f
KH
54042009-04-16 Kazu Hirata <kazu@codesourcery.com>
5405
5406 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
5407 * tree-ssa-propagate.h: Remove the prototype for
5408 stmt_makes_single_load.
5409
43dd3201
KH
54102009-04-16 Kazu Hirata <kazu@codesourcery.com>
5411
5412 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
5413 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
5414
4252a4aa
KH
54152009-04-16 Kazu Hirata <kazu@codesourcery.com>
5416
5417 * tree-iterator.c (EXPR_LAST_BODY): Remove.
5418
bfb69968
KH
54192009-04-16 Kazu Hirata <kazu@codesourcery.com>
5420
5421 * except.c (eh_region_outer_p): Remove.
5422 * except.h: Remove the prototype for eh_region_outer_p.
5423
c7db7fa5
KH
54242009-04-16 Kazu Hirata <kazu@codesourcery.com>
5425
5426 * function.c (current_function_assembler_name): Remove.
5427 * function.h: Remove the prototype for
5428 current_function_assembler_name.
5429
efc0b2bd
ILT
54302009-04-16 Ian Lance Taylor <iant@google.com>
5431
532bfb0a 5432 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
efc0b2bd
ILT
5433 (add_reg_note): Call alloc_reg_note.
5434 * rtl.h (alloc_reg_note): Declare.
5435 * combine.c (try_combine): Use alloc_reg_note.
5436 (recog_for_combine, move_deaths): Likewise.
5437 (distribute_notes): Use alloc_reg_note and add_reg_note.
5438 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
5439 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
5440 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
5441
6080348f
VM
54422009-04-16 Vladimir Makarov <vmakarov@redhat.com>
5443
5444 PR rtl-optimization/39762
5445 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
5446 ira_may_move_out_cost): Add comments about way of their usage.
532bfb0a 5447 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
2ba9daa7 5448
6080348f
VM
5449 * ira-conflicts.c (process_regs_for_copy): Use function
5450 ira_get_register_move_cost instead of global
5451 ira_register_move_cost.
5452
5453 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
5454 color_pass, move_spill_restore, update_curr_costs): Ditto.
5455
5456 * ira-lives.c (process_single_reg_class_operands): Ditto.
5457
5458 * ira-emit.c (emit_move_list): Ditto.
5459
5460 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
5461 (record_reg_classes): Ditto. Use functions
5462 ira_get_register_move_cost and ira_get_may_move_cost instead of
5463 global vars ira_register_move_cost, ira_may_move_out_cost and
5464 ira_may_move_in_cost.
5465 (record_address_regs): Don't call ira_init_register_move_cost.
5466 Use function ira_get_may_move_cost instead of global
5467 ira_may_move_in_cost.
5468 (process_bb_node_for_hard_reg_moves): Use function
532bfb0a 5469 ira_get_register_move_cost instead of global ira_register_move_cost.
6080348f 5470 (ira_costs): Don't call ira_init_register_move_cost.
2ba9daa7 5471
646bea10
RG
54722009-04-16 Richard Guenther <rguenther@suse.de>
5473
5474 * tree-cfg.c (verify_gimple_assign_binary):
5475 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
5476 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
5477 (create_general_new_stmt): Note that this function is broken.
5478
02e819ff
RAE
54792009-04-16 Rafael Avila de Espindola <espindola@google.com>
5480
5481 * common.opt (fhelp): Add Var(help_flag).
5482 * gcc-plugin.h (plugin_info): Add help.
5483 * plugin.c (plugin_name_args): Add help.
5484 (register_plugin_info): Set plugin->help.
5485 (print_help_one_plugin): New.
5486 (print_plugins_help): New.
5487 * plugin.h (print_plugins_help): New.
5488 * toplev.c (toplev_main): Call print_plugins_help if needed.
5489
ccacdf06
RG
54902009-04-16 Richard Guenther <rguenther@suse.de>
5491
5492 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
5493 (gimple_ior_addresses_taken_1): New function.
5494 (gimple_ior_addresses_taken): Likewise.
5495 * gimple.h (struct gimple_statement_with_ops_base): Remove
5496 addresses_taken member.
5497 (gimple_ior_addresses_taken): Declare.
5498 (gimple_addresses_taken, gimple_addresses_taken_ptr,
5499 gimple_set_addresses_taken): Remove.
5500 * ipa-reference.c (mark_address): New function.
5501 (scan_stmt_for_static_refs): Use it for marking addresses taken.
5502 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
5503 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
5504 (gimple_add_to_addresses_taken): Remove.
5505 (get_tmr_operands): Call mark_address_taken.
5506 (get_asm_expr_operands): Likewise.
5507 (get_expr_operands): Likewise.
5508 (build_ssa_operands): Do not clear the addresses_taken bitmap.
5509 (free_stmt_operands): Do not free it.
5510 * tree-ssa.c (delete_tree_ssa): Likewise.
5511 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
5512
346ef3fa
RG
55132009-04-16 Richard Guenther <rguenther@suse.de>
5514
5515 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
5516 (walk_stmt_load_store_ops): Likewise.
5517 * gimple.c (get_base_loadstore): New function.
5518 (walk_stmt_load_store_addr_ops): Likewise.
5519 (walk_stmt_load_store_ops): Likewise.
5520 * ipa-pure-const.c (check_op): Simplify.
5521 (check_load, check_store): New functions.
5522 (check_stmt): Use walk_stmt_load_store_ops.
5523 * ipa-reference.c (mark_load): Adjust signature.
5524 (mark_store): Likewise.
5525 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
5526
44e9f006
RAE
55272009-04-16 Rafael Avila de Espindola <espindola@google.com>
5528
5529 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
5530 (plugin_info): New.
5531 * opts.c (common_handle_option): Don't call print_version.
5532 * plugin.c (plugin_name_args): Add version.
5533 (register_plugin_info): New.
5534 (register_callback): Handle PLUGIN_INFO.
5535 (try_init_one_plugin): New.
5536 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
5537 if failed to init.
5538 (finalize_one_plugin): New.
5539 (finalize_plugins): New.
5540 (print_one_plugin): New.
5541 (print_plugins_versions): New.
5542 * plugin.h (print_plugins_versions): New.
5543 (finalize_plugins): New.
5544 * toplev.c (compile_file): Don't call initialize_plugins.
5545 (print_version): Call print_plugins_versions.
5546 (toplev_main): Call initialize_plugins. Print version if needed.
5547 Call finalize_plugins.
5548
41fd0f9b
RAE
55492009-04-16 Rafael Avila de Espindola <espindola@google.com>
5550
5551 * common.opt (fversion): New.
5552 * gcc.c (print_version): New.
5553 (process_command): Don't print the version. Just set print_version.
5554 (main): Print version. Call subprocesses if print_version and
5555 verbose_flag are set.
5556 * opts.c (common_handle_option): Handle OPT_fversion.
5557
550918ca 55582009-04-16 Richard Guenther <rguenther@suse.de>
532bfb0a 5559 Ira Rosen <irar@il.ibm.com>
550918ca
RG
5560
5561 PR tree-optimization/39698
5562 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
5563 type of the reduction variable. Only generate the def if
5564 it is needed.
5565
5566 * omp-low.c (expand_omp_for_generic): When converting to a pointer
5567 make sure to first convert to an integer of the same precision.
5568 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
5569 the type of the evolution correctly in computing the new
5570 induction variable base.
5571
54634841
RG
55722009-04-16 Richard Guenther <rguenther@suse.de>
5573
5574 PR middle-end/39625
5575 * tree-cfg.c (make_blocks): Split statements with to-be
5576 abnormal SSA names on the lhs.
5577
b6fc2cdb
PB
55782009-04-16 Paolo Bonzini <bonzini@gnu.org>
5579
5580 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
5581 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
5582 * c-typeck.c (really_start_incremental_init): Likewise.
5583 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
5584 (TARGET_INITIALIZER): Remove it.
5585 * target.h (struct target): Remove vector_opaque_p.
5586 * tree.c (build_opaque_vector_type): New.
5587 * tree.h (TYPE_VECTOR_OPAQUE): New.
5588 (build_opaque_vector_type): Declare.
5589 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
5590 * config/rs6000/rs6000.c (build_opaque_vector_type,
5591 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
5592 (rs6000_init_builtins): Use build_opaque_vector_type for
5593 opaque_V4SI_type_node.
5594
a417cdd9
CM
55952009-04-15 Catherine Moore <clm@codesourcery.com>
5596
532bfb0a
AJ
5597 * debug.h (set_name): Declare.
5598 * dwarf2out.c (dwarf2out_set_name): Declare.
5599 (dwarf2_debug_hooks): Add set_name.
5600 (find_AT_string): New.
5601 (add_AT_string): Call find_AT_string.
5602 (dwarf2out_set_name): New.
5603 * cp/decl.c (grokdeclarator): Call set_name.
5604 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
5605 * debug.c (do_nothing_debug_hooks): Likewise.
5606 * dbxout.c (dbx_debug_hooks): Likewise.
5607 * sdbout.c (sdb_debug_hooks): Likewise.
a417cdd9 5608
60839f5d 56092009-04-15 Michael Eager <eager@eagercon.com>
2c5cac98 5610
532bfb0a
AJ
5611 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
5612 reg for single-precision FPU.
5613 * config/rs6000/rs6000.md (movsi_internal1): Only for
5614 !TARGET_SINGLE_FPU.
5615 (movsi_internal1_single): New. Add pattern to move SI values to/from
2c5cac98
ME
5616 single-precision FP regs.
5617
ada39f0b
RG
56182009-04-15 Richard Guenther <rguenther@suse.de>
5619
5620 * omp-low.c (lower_rec_input_clauses): Build correct address
5621 expressions.
5622 (expand_omp_for_generic): Fix multiplication type.
532bfb0a 5623 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
ada39f0b
RG
5624 (generate_memset_zero): Fix types.
5625 * tree-profile.c (prepare_instrumented_value): Correctly
5626 widen a pointer.
5627
6866c6e8
ILT
56282009-04-15 Ian Lance Taylor <iant@google.com>
5629
5630 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
5631 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
5632 for -Wall and for -Wc++-compat.
5633 (c_common_post_options): For C++, set warn_enum_compare if not
5634 already set.
5635 * c-tree.h (struct c_expr): Add field original_type.
5636 (build_external_ref): Update declaration.
5637 * c-parser.c (c_parser_braced_init): Set original_type.
5638 (c_parser_initelt): Likewise.
5639 (c_parser_expr_no_commas): Likewise.
5640 (c_parser_conditional_expression): Likewise.
5641 (c_parser_cast_expression): Likewise.
5642 (c_parser_unary_expression): Likewise. Pull setting of
5643 original_code to top of function.
5644 (c_parser_sizeof_expression): Set original_type.
5645 (c_parser_alignof_expression): Likewise.
5646 (c_parser_postfix_expression): Likewise. Pull setting of
5647 original_code to top of function.
532bfb0a 5648 (c_parser_postfix_expression_after_paren_type): Set original_type.
6866c6e8
ILT
5649 (c_parser_postfix_expression_after_primary): Likewise.
5650 (c_parser_expression): Likewise.
5651 * c-typeck.c (build_external_ref): Add type parameter. Change all
5652 callers.
5653 (c_expr_sizeof_expr): Set original_type field.
5654 (parser_build_unary_op): Likewise.
5655 (parser_build_binary_op): Likewise. Optionally warn about
5656 comparisons of enums of different types.
5657 (digest_init): Set original_type field.
5658 (really_start_incremental_init): Likewise.
5659 (push_init_level, pop_init_level): Likewise.
5660 * doc/invoke.texi (Warning Options): -Wenum-compare now
5661 supported in C.
5662
f116fecf
RG
56632009-04-15 Richard Guenther <rguenther@suse.de>
5664
5665 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
5666 out a necessary conversion.
5667 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
5668 names we didn't value number.
5669 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
5670
25e20805
RG
56712009-04-15 Richard Guenther <rguenther@suse.de>
5672
5673 PR tree-optimization/39764
5674 * tree-ssa-ccp.c (get_value): Canonicalize value with
5675 canonicalize_float_value.
5676
90cc3676
JH
56772009-04-15 Jan Hubicka <jh@suse.cz>
5678
5679 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
5680 Wrong version of patch.
5681
6d14c006
JH
56822009-04-15 Jan Hubicka <jh@suse.cz>
5683
5684 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
5685
5afaa917
NS
56862009-04-15 Nathan Sidwell <nathan@codesourcery.com>
5687
5688 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
5689 our distinct integral and vector types.
5690
3b482fca
RAE
56912009-04-15 Rafael Avila de Espindola <espindola@google.com>
5692
5693 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
5694 * init.c (build_vtbl_address): Remove call to assemble_external.
5695
6cd1d2e2
DJ
56962009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
5697
5698 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
5699 output for other floating point modes.
5700
dab71827
DN
57012009-04-14 Diego Novillo <dnovillo@google.com>
5702
5703 * diagnostic.c (diagnostic_report_diagnostic): Do not
5704 warn about loaded plugins for DK_ERROR and DK_WARNING.
5705 * c-decl.c (declspecs_add_type): Move call to
5706 invoke_plugin_callbacks ...
5707 * c-parser.c (c_parser_declspecs): ... here.
5708 * plugin.c (dump_active_plugins): Tidy output.
5709
68a607d8
DN
57102009-04-14 Diego Novillo <dnovillo@google.com>
5711 Le-Chun Wu <lcwu@google.com>
5712
5713 * configure.ac: Add --enable-plugin support.
5714 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
5715 * Makefile.in (PLUGIN_H): Define.
5716 Export ENABLE_PLUGIN and GMPINC to site.exp.
5717 Add PLUGINLIBS to link command.
5718 Add/modify dependencies for plugin.o and files including plugin.h.
5719 (plugin.o): New.
5720 * config.in: Regenerate.
2ba9daa7 5721
68a607d8
DN
5722 * opts.c (common_handle_option): Handle OPT_fplugin_ and
5723 OPT_fplugin_arg_.
5724
57252009-04-14 Le-Chun Wu <lcwu@google.com>
5726
5727 * tree-pass.h (register_one_dump_file): Add a prototype for
5728 register_one_dump_file.
5729 * toplev.c (compile_file): Call initialize_plugins.
5730 (do_compile): Call invoke_plugin_callbacks.
5731 (toplev_main): Call invoke_plugin_callbacks.
5732 * common.opt: Add -fplugin= and -fplugin-arg-.
5733 * gcc-plugin.h: New public header file for plugins to include.
5734 * plugin.c: New source file.
5735 * plugin.h: New internal header file.
5736 * passes.c (register_one_dump_file): Make it external.
2ba9daa7 5737
68a607d8
DN
5738 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
5739
57402009-04-14 Diego Novillo <dnovillo@google.com>
5741
5742 * doc/plugins.texi: New.
5743 * doc/gccint.texi: Add reference to Plugins chapter.
5744 * doc/invoke.texi: Document -fplugin and -fplugin-arg
5745 * diagnostic.c (diagnostic_report_diagnostic): Warn about
5746 loaded plugins, if any.
5747 * timevar.def (TV_PLUGIN_INIT): Define.
5748 (TV_PLUGIN_RUN): Define.
5749 * plugin.c: Include timevar.h
5750 (plugins_active_p): New.
5751 (dump_active_plugins): New.
5752 (debug_active_plugins): New.
5753
50617257
JM
57542009-04-14 Joseph Myers <joseph@codesourcery.com>
5755
5756 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
5757 library paths.
5758 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
5759
b32f6fff
KH
57602009-04-14 Kazu Hirata <kazu@codesourcery.com>
5761
5762 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
5763 the same as a minus without a shift.
5764
85d04fa2
NC
57652009-04-14 Nick Clifton <nickc@redhat.com>
5766
5767 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
5768 comparisons with small integers will always produce a short
5769 branch.
5770
e495a0c8
RAE
57712009-04-14 Rafael Avila de Espindola <espindola@google.com>
5772
5773 Merge:
e495a0c8
RAE
5774 2008-12-19 Diego Novillo <dnovillo@google.com>
5775
532bfb0a 5776 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
e495a0c8 5777
ad41bd84 57782009-04-14 Richard Guenther <rguenther@suse.de>
587aa063
RG
5779
5780 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
5781 verification.
5782 (verify_gimple_assign_binary): Likewise. Handle shifts and
5783 rotates correctly.
5784 (verify_gimple_phi): Print the mismatched argument position.
5785 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
5786 Fix types.
5787 (vect_update_init_of_dr): Likewise.
5788 * matrix-reorg.c (transform_access_sites): Do what the
5789 comment suggests.
5790 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
5791
60839f5d 57922009-04-13 Michael Eager <eager@eagercon.com>
9eca1774
ME
5793
5794 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
5795 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
5796 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
2ba9daa7 5797 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
9eca1774
ME
5798 remove duplicate config
5799
b0e2d008
DR
58002009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5801
5802 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
5803 file_name:line_number type locator of the call site.
2ba9daa7 5804
1244a8b7
VM
58052009-04-13 Vladimir Makarov <vmakarov@redhat.com>
5806
5807 * genautomata.c: Put blank after comma.
5808 (automaton_decls): New.
5809 (struct unit_usage): Add comments to member next.
5810 (store_alt_unit_usage): Keep the list ordered.
5811 (unit_present_on_list_p, equal_alternatives_p): New.
5812 (check_regexp_units_distribution): Check units distribution
5813 correctness correctly.
5814 (main): Don't write automata if error is found. Return correct
5815 exit code.
2ba9daa7 5816
1244a8b7
VM
5817 * config/m68k/cf.md (cfv4_ds): Remove.
5818 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
5819 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
5820
5821 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
5822 power4-load-ext, power4-store, power4-store-update,
5823 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
5824 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
5825 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
5826 power4-sqrt, power4-isync): Modify reservation to make correct
5827 unit distribution to automata.
5828
5829 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
5830 power5-store-update, power5-two, power5-three, power5-lmul,
5831 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
2ba9daa7 5832
f7dd1864
AN
58332009-04-13 Adam Nemet <anemet@caviumnetworks.com>
5834
5835 * except.c (pass_set_nothrow_function_flags): Set name and add
5836 TODO_dump_func.
5837 (set_nothrow_function_flags): Mention in the dump file when
5838 changing a function to nothrow.
5839
59a1171f
OS
58402009-04-13 Ozkan Sezer <sezeroz@gmail.com>
5841
5842 PR/39066
5843 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
5844 instead of unsigned long.
5845
934c2060
RR
58462009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5847
f7dd1864
AN
5848 * config/arm/arm.c (return_used_this_function): Remove.
5849 (arm_output_function_prologue): Remove use of
934c2060 5850 return_used_this_function.
f7dd1864 5851 (output_return_instruction): Replace use of
934c2060
RR
5852 return_used_this_function
5853 by cfun->machine->return_used_this_function.
f7dd1864
AN
5854 (arm_output_epilogue): Likewise.
5855 (arm_output_function_epilogue): Likewise.
5856 (thumb_unexpanded_epilogue): Likewise.
5857 * config/arm/arm.h (struct machine_function):
934c2060 5858 New member return_used_this_function.
f7dd1864 5859
ae5cc016
MM
58602009-04-12 Mark Mitchell <mark@codesourcery.com>
5861
5862 * doc/install.texi: Correct description of default directory for
5863 --with-gxx-include-dir.
5864
a0ce68df 58652009-04-12 Eric Botcazou <ebotcazou@adacore.com>
849d624b
EB
5866
5867 * fold-const.c (build_range_check): Properly deal with enumeral and
5868 boolean base types.
5869
3906a4a1
SB
58702009-04-12 Steven Bosscher <steven@gcc.gnu.org>
5871
5872 * doc/invoke.texi (max_gcse_passes): Remove documentation.
5873 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
5874 * params.h (MAX_GCSE_PASSES): Remove.
5875 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
5876 in sequence. Remove ability to run multiple passes.
5877 (bypass_jumps): Report run as third CPROP pass.
5878
efaadb93
AN
58792009-04-12 Adam Nemet <anemet@caviumnetworks.com>
5880
5881 PR middle-end/39651
5882 * except.c (can_throw_external): Look at each insn in a SEQUENCE
5883 when deciding whether the whole SEQUENCE can throw.
5884
4c48007b
UB
58852009-04-12 Uros Bizjak <ubizjak@gmail.com>
5886
5887 PR target/39740
5888 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
5889 offseted label references.
5890
b4104018
JH
58912009-04-11 Jan Hubicka <jh@suse.cz>
5892
5893 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
5894
32848948
RG
58952009-04-11 Richard Guenther <rguenther@suse.de>
5896
5897 PR middle-end/39732
5898 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
5899 return variables as TREE_ADDRESSABLE.
5900
8810712e
RG
59012009-04-11 Richard Guenther <rguenther@suse.de>
5902
5903 PR tree-optimization/39713
5904 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
5905 reference trees have SSA_NAME operands.
5906
fa78c0c1
RG
59072009-04-11 Richard Guenther <rguenther@suse.de>
5908
5909 PR c/39712
5910 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
5911 address expressions.
5912
4d722130
DK
59132009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
5914
5915 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
5916 match changes in Cygwin 1.7
5917 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
5918 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
5919
567a90f5
PB
59202009-04-10 Paolo Bonzini <bonzini@gnu.org>
5921
5922 PR tree-optimization/39701
5923 * doc/invoke.texi (Optimization Options): Document change in
5924 meaning and initialization of -fdelete-null-pointer-checks.
5925
1ad2f450
L
59262009-04-10 H.J. Lu <hongjiu.lu@intel.com>
5927
5928 PR middle-end/39701
5929 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
5930
5931 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
5932 here.
5933
5934 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
5935
1afc5373
CF
59362009-04-10 Chao-ying Fu <fu@mips.com>
5937
5938 * doc/tm.texi (Instruction Output): Document
5939 TARGET_ASM_FINAL_POSTSCAN_INSN.
5940 * target.h (final_postscan_insn): New field in asm_out.
5941 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
5942 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
5943 * final.c (final_scan_insn): Call
5944 targetm.asm_out.final_postscan_insn after outputting
5945 an asm macro and a normal instruction.
5946
5947 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
5948 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
5949 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
5950 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
5951 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
5952
4d35e75c
PB
59532009-04-10 Paolo Bonzini <bonzini@gnu.org>
5954
5955 PR middle-end/39701
1ad2f450
L
5956 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
5957 variables as non-NULL even with -fdelete-null-pointer-checks.
4d35e75c 5958
62c49b83
L
59592009-04-10 H.J. Lu <hongjiu.lu@intel.com>
5960
5961 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
5962
80558628
L
59632009-04-09 H.J. Lu <hongjiu.lu@intel.com>
5964
5965 PR target/39678
5966 * config/i386/i386.c (classify_argument): Handle SCmode with
5967 (bit_offset % 64) != 0.
5968
8c70d28b
SL
59692009-04-09 Sandra Loosemore <sandra@codesourcery.com>
5970
5971 * doc/invoke.texi (Optimize Options): Add cross-reference to
5972 -Q --help=optimizers examples.
5973
e1ff19bf
BE
59742009-04-10 Ben Elliston <bje@au.ibm.com>
5975
5976 PR target/36800
5977 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
5978 regalign for the reg == fpr and TDmode case.
5979
52daca75
DA
59802009-04-09 David Ayers <ayers@fsfe.org>
5981
5982 PR objc/29200
5983 * objc/objc-act.c (warn_with_method): Remove helper function.
5984 (check_duplicates): Call warning and inform directly.
5985 (really_start_method): Likewise.
5986
b45f0e58
PB
59872009-04-09 Paolo Bonzini <bonzini@gnu.org>
5988
5989 * expmed.c (expand_divmod): Always use a comparison for a division
5990 by a large unsigned integer.
5991
1ad2f450
L
5992 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
5993 for things others than variables or functions as nonzero.
b45f0e58 5994
748086b7
JJ
59952009-04-09 Nick Clifton <nickc@redhat.com>
5996
5997 * unwind-compat.c: Change copyright header to refer to version
5998 3 of the GNU General Public License with version 3.1 of the
5999 GCC Runtime Library Exception and to point readers at the
7a715bba 6000 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
748086b7
JJ
6001 * config/alpha/crtfastmath.c: Likewise.
6002 * config/alpha/linux-unwind.h: Likewise.
6003 * config/alpha/qrnnd.asm: Likewise.
6004 * config/alpha/vms-crt0-64.c: Likewise.
6005 * config/alpha/vms-crt0.c: Likewise.
6006 * config/alpha/vms-dwarf2.asm: Likewise.
6007 * config/alpha/vms-dwarf2eh.asm: Likewise.
6008 * config/alpha/vms-psxcrt0-64.c: Likewise.
6009 * config/alpha/vms-psxcrt0.c: Likewise.
6010 * config/alpha/vms_tramp.asm: Likewise.
6011 * config/arc/initfini.c: Likewise.
6012 * config/arc/lib1funcs.asm: Likewise.
6013 * config/arm/bpabi-v6m.S: Likewise.
6014 * config/arm/bpabi.S: Likewise.
6015 * config/arm/bpabi.c: Likewise.
6016 * config/arm/crti.asm: Likewise.
6017 * config/arm/crtn.asm: Likewise.
6018 * config/arm/ieee754-df.S: Likewise.
6019 * config/arm/ieee754-sf.S: Likewise.
6020 * config/arm/lib1funcs.asm: Likewise.
6021 * config/arm/libunwind.S: Likewise.
6022 * config/arm/linux-atomic.c: Likewise.
6023 * config/arm/mmintrin.h: Likewise.
6024 * config/arm/pr-support.c: Likewise.
6025 * config/arm/unaligned-funcs.c: Likewise.
6026 * config/arm/unwind-arm.c: Likewise.
6027 * config/arm/unwind-arm.h: Likewise.
6028 * config/avr/libgcc.S: Likewise.
6029 * config/bfin/crti.s: Likewise.
6030 * config/bfin/crtlibid.s: Likewise.
6031 * config/bfin/crtn.s: Likewise.
6032 * config/bfin/lib1funcs.asm: Likewise.
6033 * config/bfin/linux-unwind.h: Likewise.
6034 * config/cris/arit.c: Likewise.
6035 * config/cris/cris_abi_symbol.c: Likewise.
6036 * config/darwin-64.c: Likewise.
6037 * config/darwin-crt2.c: Likewise.
6038 * config/darwin-crt3.c: Likewise.
6039 * config/darwin.h: Likewise.
6040 * config/dbxelf.h: Likewise.
6041 * config/dfp-bit.c: Likewise.
6042 * config/dfp-bit.h: Likewise.
6043 * config/elfos.h: Likewise.
6044 * config/fixed-bit.c: Likewise.
6045 * config/fixed-bit.h: Likewise.
6046 * config/fp-bit.c: Likewise.
6047 * config/fp-bit.h: Likewise.
6048 * config/fr30/crti.asm: Likewise.
6049 * config/fr30/crtn.asm: Likewise.
6050 * config/fr30/lib1funcs.asm: Likewise.
6051 * config/freebsd-spec.h: Likewise.
6052 * config/frv/cmovd.c: Likewise.
6053 * config/frv/cmovh.c: Likewise.
6054 * config/frv/cmovw.c: Likewise.
6055 * config/frv/frvbegin.c: Likewise.
6056 * config/frv/frvend.c: Likewise.
6057 * config/frv/lib1funcs.asm: Likewise.
6058 * config/glibc-stdint.h: Likewise.
6059 * config/h8300/clzhi2.c: Likewise.
6060 * config/h8300/crti.asm: Likewise.
6061 * config/h8300/crtn.asm: Likewise.
6062 * config/h8300/ctzhi2.c: Likewise.
6063 * config/h8300/fixunssfsi.c: Likewise.
6064 * config/h8300/lib1funcs.asm: Likewise.
6065 * config/h8300/parityhi2.c: Likewise.
6066 * config/h8300/popcounthi2.c: Likewise.
6067 * config/i386/ammintrin.h: Likewise.
6068 * config/i386/att.h: Likewise.
6069 * config/i386/avxintrin.h: Likewise.
6070 * config/i386/biarch64.h: Likewise.
6071 * config/i386/bmmintrin.h: Likewise.
6072 * config/i386/cpuid.h: Likewise.
6073 * config/i386/cross-stdarg.h: Likewise.
6074 * config/i386/crtfastmath.c: Likewise.
6075 * config/i386/crtprec.c: Likewise.
6076 * config/i386/cygming-crtbegin.c: Likewise.
6077 * config/i386/cygming-crtend.c: Likewise.
6078 * config/i386/cygwin.asm: Likewise.
6079 * config/i386/emmintrin.h: Likewise.
6080 * config/i386/gmm_malloc.h: Likewise.
6081 * config/i386/gthr-win32.c: Likewise.
6082 * config/i386/i386.h: Likewise.
6083 * config/i386/immintrin.h: Likewise.
6084 * config/i386/linux-unwind.h: Likewise.
6085 * config/i386/linux64.h: Likewise.
6086 * config/i386/mm3dnow.h: Likewise.
6087 * config/i386/mmintrin-common.h: Likewise.
6088 * config/i386/mmintrin.h: Likewise.
6089 * config/i386/nmmintrin.h: Likewise.
6090 * config/i386/pmm_malloc.h: Likewise.
6091 * config/i386/pmmintrin.h: Likewise.
6092 * config/i386/smmintrin.h: Likewise.
6093 * config/i386/sol2-c1.asm: Likewise.
6094 * config/i386/sol2-ci.asm: Likewise.
6095 * config/i386/sol2-cn.asm: Likewise.
6096 * config/i386/sol2-gc1.asm: Likewise.
6097 * config/i386/tmmintrin.h: Likewise.
6098 * config/i386/unix.h: Likewise.
6099 * config/i386/w32-unwind.h: Likewise.
6100 * config/i386/wmmintrin.h: Likewise.
6101 * config/i386/x86-64.h: Likewise.
6102 * config/i386/x86intrin.h: Likewise.
6103 * config/i386/xmmintrin.h: Likewise.
6104 * config/ia64/crtbegin.asm: Likewise.
6105 * config/ia64/crtend.asm: Likewise.
6106 * config/ia64/crtfastmath.c: Likewise.
6107 * config/ia64/crti.asm: Likewise.
6108 * config/ia64/crtn.asm: Likewise.
6109 * config/ia64/fde-glibc.c: Likewise.
6110 * config/ia64/lib1funcs.asm: Likewise.
6111 * config/ia64/linux-unwind.h: Likewise.
6112 * config/ia64/quadlib.c: Likewise.
6113 * config/ia64/unwind-ia64.c: Likewise.
6114 * config/linux.h: Likewise.
6115 * config/m32c/m32c-lib1.S: Likewise.
6116 * config/m32c/m32c-lib2-trapv.c: Likewise.
6117 * config/m32c/m32c-lib2.c: Likewise.
6118 * config/m32r/initfini.c: Likewise.
6119 * config/m68hc11/larith.asm: Likewise.
6120 * config/m68hc11/m68hc11-crt0.S: Likewise.
6121 * config/m68k/cf.md: Likewise.
6122 * config/m68k/crti.s: Likewise.
6123 * config/m68k/crtn.s: Likewise.
6124 * config/m68k/lb1sf68.asm: Likewise.
6125 * config/m68k/linux-unwind.h: Likewise.
6126 * config/mcore/crti.asm: Likewise.
6127 * config/mcore/crtn.asm: Likewise.
6128 * config/mcore/lib1.asm: Likewise.
6129 * config/mips/linux-unwind.h: Likewise.
6130 * config/mips/loongson.h: Likewise.
6131 * config/mips/mips16.S: Likewise.
6132 * config/mmix/crti.asm: Likewise.
6133 * config/mmix/crtn.asm: Likewise.
6134 * config/pa/fptr.c: Likewise.
6135 * config/pa/hpux-unwind.h: Likewise.
6136 * config/pa/lib2funcs.asm: Likewise.
6137 * config/pa/linux-atomic.c: Likewise.
6138 * config/pa/linux-unwind.h: Likewise.
6139 * config/pa/milli64.S: Likewise.
6140 * config/pa/quadlib.c: Likewise.
6141 * config/pa/stublib.c: Likewise.
6142 * config/picochip/libgccExtras/adddi3.asm: Likewise.
6143 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
6144 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
6145 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
6146 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
6147 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
6148 * config/picochip/libgccExtras/divmod15.asm: Likewise.
6149 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
6150 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
6151 * config/picochip/libgccExtras/longjmp.asm: Likewise.
6152 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
6153 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
6154 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
6155 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
6156 * config/picochip/libgccExtras/setjmp.asm: Likewise.
6157 * config/picochip/libgccExtras/subdi3.asm: Likewise.
6158 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
6159 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
6160 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
6161 * config/rs6000/750cl.h: Likewise.
6162 * config/rs6000/altivec.h: Likewise.
6163 * config/rs6000/biarch64.h: Likewise.
6164 * config/rs6000/crtresfpr.asm: Likewise.
6165 * config/rs6000/crtresgpr.asm: Likewise.
6166 * config/rs6000/crtresxfpr.asm: Likewise.
6167 * config/rs6000/crtresxgpr.asm: Likewise.
6168 * config/rs6000/crtsavfpr.asm: Likewise.
6169 * config/rs6000/crtsavgpr.asm: Likewise.
6170 * config/rs6000/darwin-asm.h: Likewise.
6171 * config/rs6000/darwin-fallback.c: Likewise.
6172 * config/rs6000/darwin-fpsave.asm: Likewise.
6173 * config/rs6000/darwin-ldouble.c: Likewise.
6174 * config/rs6000/darwin-tramp.asm: Likewise.
6175 * config/rs6000/darwin-unwind.h: Likewise.
6176 * config/rs6000/darwin-vecsave.asm: Likewise.
6177 * config/rs6000/darwin-world.asm: Likewise.
6178 * config/rs6000/e500crtres32gpr.asm: Likewise.
6179 * config/rs6000/e500crtres64gpr.asm: Likewise.
6180 * config/rs6000/e500crtres64gprctr.asm: Likewise.
6181 * config/rs6000/e500crtrest32gpr.asm: Likewise.
6182 * config/rs6000/e500crtrest64gpr.asm: Likewise.
6183 * config/rs6000/e500crtresx32gpr.asm: Likewise.
6184 * config/rs6000/e500crtresx64gpr.asm: Likewise.
6185 * config/rs6000/e500crtsav32gpr.asm: Likewise.
6186 * config/rs6000/e500crtsav64gpr.asm: Likewise.
6187 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
6188 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
6189 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
6190 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
6191 * config/rs6000/eabi-ci.asm: Likewise.
6192 * config/rs6000/eabi-cn.asm: Likewise.
6193 * config/rs6000/eabi.asm: Likewise.
6194 * config/rs6000/linux-unwind.h: Likewise.
6195 * config/rs6000/linux64.h: Likewise.
6196 * config/rs6000/paired.h: Likewise.
6197 * config/rs6000/paired.md: Likewise.
6198 * config/rs6000/ppc64-fp.c: Likewise.
6199 * config/rs6000/ppu_intrinsics.h: Likewise.
6200 * config/rs6000/rs6000.h: Likewise.
6201 * config/rs6000/si2vmx.h: Likewise.
6202 * config/rs6000/sol-ci.asm: Likewise.
6203 * config/rs6000/sol-cn.asm: Likewise.
6204 * config/rs6000/spe.h: Likewise.
6205 * config/rs6000/spu2vmx.h: Likewise.
6206 * config/rs6000/sysv4.h: Likewise.
6207 * config/rs6000/tramp.asm: Likewise.
6208 * config/rs6000/vec_types.h: Likewise.
6209 * config/s390/linux-unwind.h: Likewise.
6210 * config/s390/tpf-unwind.h: Likewise.
6211 * config/score/crti.asm: Likewise.
6212 * config/score/crtn.asm: Likewise.
6213 * config/sh/crt1.asm: Likewise.
6214 * config/sh/crti.asm: Likewise.
6215 * config/sh/crtn.asm: Likewise.
6216 * config/sh/divtab-sh4-300.c: Likewise.
6217 * config/sh/divtab-sh4.c: Likewise.
6218 * config/sh/divtab.c: Likewise.
6219 * config/sh/lib1funcs-4-300.asm: Likewise.
6220 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
6221 * config/sh/lib1funcs.asm: Likewise.
6222 * config/sh/lib1funcs.h: Likewise.
6223 * config/sh/linux-atomic.asm: Likewise.
6224 * config/sh/linux-unwind.h: Likewise.
6225 * config/sh/shmedia.h: Likewise.
6226 * config/sh/sshmedia.h: Likewise.
6227 * config/sh/ushmedia.h: Likewise.
6228 * config/sparc/crtfastmath.c: Likewise.
6229 * config/sparc/linux-unwind.h: Likewise.
6230 * config/sparc/sol2-c1.asm: Likewise.
6231 * config/sparc/sol2-ci.asm: Likewise.
6232 * config/sparc/sol2-cn.asm: Likewise.
6233 * config/spu/divmodti4.c: Likewise.
6234 * config/spu/divv2df3.c: Likewise.
6235 * config/spu/float_disf.c: Likewise.
6236 * config/spu/float_unsdidf.c: Likewise.
6237 * config/spu/float_unsdisf.c: Likewise.
6238 * config/spu/float_unssidf.c: Likewise.
6239 * config/spu/mfc_multi_tag_release.c: Likewise.
6240 * config/spu/mfc_multi_tag_reserve.c: Likewise.
6241 * config/spu/mfc_tag_release.c: Likewise.
6242 * config/spu/mfc_tag_reserve.c: Likewise.
6243 * config/spu/mfc_tag_table.c: Likewise.
6244 * config/spu/multi3.c: Likewise.
6245 * config/spu/spu_internals.h: Likewise.
6246 * config/spu/spu_intrinsics.h: Likewise.
6247 * config/spu/spu_mfcio.h: Likewise.
6248 * config/spu/vec_types.h: Likewise.
6249 * config/spu/vmx2spu.h: Likewise.
6250 * config/stormy16/stormy16-lib2.c: Likewise.
6251 * config/svr4.h: Likewise.
6252 * config/sync.c: Likewise.
6253 * config/v850/lib1funcs.asm: Likewise.
6254 * config/vxlib-tls.c: Likewise.
6255 * config/vxlib.c: Likewise.
6256 * config/vxworks-dummy.h: Likewise.
6257 * config/xtensa/crti.asm: Likewise.
6258 * config/xtensa/crtn.asm: Likewise.
6259 * config/xtensa/ieee754-df.S: Likewise.
6260 * config/xtensa/ieee754-sf.S: Likewise.
6261 * config/xtensa/lib1funcs.asm: Likewise.
6262 * config/xtensa/lib2funcs.S: Likewise.
6263 * config/xtensa/linux-unwind.h: Likewise.
6264 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
6265 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
6266 * coretypes.h: Likewise.
6267 * crtstuff.c: Likewise.
6268 * defaults.h: Likewise.
6269 * dwarf2.h: Likewise.
6270 * emutls.c: Likewise.
6271 * gbl-ctors.h: Likewise.
6272 * gcov-io.h: Likewise.
6273 * ginclude/float.h: Likewise.
6274 * ginclude/iso646.h: Likewise.
6275 * ginclude/stdarg.h: Likewise.
6276 * ginclude/stdbool.h: Likewise.
6277 * ginclude/stddef.h: Likewise.
6278 * ginclude/stdfix.h: Likewise.
6279 * ginclude/stdint-gcc.h: Likewise.
6280 * ginclude/tgmath.h: Likewise.
6281 * gthr-aix.h: Likewise.
6282 * gthr-dce.h: Likewise.
6283 * gthr-gnat.c: Likewise.
6284 * gthr-gnat.h: Likewise.
6285 * gthr-lynx.h: Likewise.
6286 * gthr-mipssde.h: Likewise.
6287 * gthr-nks.h: Likewise.
6288 * gthr-posix.c: Likewise.
6289 * gthr-posix.h: Likewise.
6290 * gthr-posix95.h: Likewise.
6291 * gthr-rtems.h: Likewise.
6292 * gthr-single.h: Likewise.
6293 * gthr-solaris.h: Likewise.
6294 * gthr-tpf.h: Likewise.
6295 * gthr-vxworks.h: Likewise.
6296 * gthr-win32.h: Likewise.
6297 * gthr.h: Likewise.
6298 * libgcc2.c: Likewise.
6299 * libgcc2.h: Likewise.
6300 * libgcov.c: Likewise.
6301 * tsystem.h: Likewise.
6302 * typeclass.h: Likewise.
6303 * unwind-c.c: Likewise.
6304 * unwind-compat.h: Likewise.
6305 * unwind-dw2-fde-compat.c: Likewise.
6306 * unwind-dw2-fde-darwin.c: Likewise.
6307 * unwind-dw2-fde-glibc.c: Likewise.
6308 * unwind-dw2-fde.c: Likewise.
6309 * unwind-dw2-fde.h: Likewise.
6310 * unwind-dw2.c: Likewise.
6311 * unwind-dw2.h: Likewise.
6312 * unwind-generic.h: Likewise.
6313 * unwind-pe.h: Likewise.
6314 * unwind-sjlj.c: Likewise.
6315 * unwind.inc: Likewise.
6316 * config/arm/neon-gen.ml: Change generated copyright header to
6317 refer to version 3 of the GNU General Public License with
6318 version 3.1 of the GCC Runtime Library Exception and to point
6319 readers at the COPYING3 and COPYING3.RUNTIME files and the
6320 FSF's license web page.
6321 * config/arm/arm_neon.h: Regenerate.
6322
63232009-04-09 Jakub Jelinek <jakub@redhat.com>
6324
6325 * config/cris/cris.md: Change copyright header to refer to version
6326 3 of the GNU General Public License.
6327 * doc/install.texi2html: Change copyright header to refer to version
6328 3 of the GNU General Public License and to point readers at the
6329 COPYING3 file and the FSF's license web page.
6330 * config/vax/linux.h: Likewise.
6331
4a77c72b
PB
63322009-04-09 Paolo Bonzini <bonzini@gnu.org>
6333
1ad2f450
L
6334 * config/i386/i386.md (cmpcc): New.
6335 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
6336 (sync_compare_and_swap_cc*): Delete.
6337
6338 * config/s390/s390.c (s390_compare_emitted): Remove.
6339 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
6340 s390_compare_emitted used to be handled. Assert that modes match.
6341 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
6342 refer to sync_compare_and_swap_ccsi.
6343 * config/s390/s390.h (s390_compare_emitted): Remove.
6344 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
6345 instead of s390_compare_emitted.
6346 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
6347 instead of s390_compare_emitted.
6348 * config/s390/s390.md (cmpcc): New.
6349 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
6350 CC_REGNUM, do not pretend it's set.
6351 (sync_compare_and_swap_cc*): Delete.
6352 * config/s390/predicates.md (cc_reg_operand): New.
6353
6354 * expr.c (sync_compare_and_swap_cc): Delete.
6355 * optabs.h (sync_compare_and_swap_cc): Delete.
6356 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
6357 is being used with can_compare_p.
6358 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
6359 (find_cc_set): New.
6360 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
6361 look for a MODE_CC set instead. Use emit_store_flag.
6362 (expand_compare_and_swap_loop): Likewise, with some additional
6363 complication to avoid a force_reg when useless. Use
6364 emit_cmp_and_jump_insns.
6365 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
6366 * doc/md.texi (sync_compare_and_swap_cc): Merge with
6367 sync_compare_and_swap documentation.
4a77c72b 6368
0c0efb33
JH
63692009-04-09 Jan Hubicka <jh@suse.cz>
6370
6371 * except.c (find_prev_try): Break out from ....
6372 (duplicate_eh_regions): ... here; properly update prev_try pointers
6373 when duplication part of tree.
6374 (dump_eh_tree): Improve dumping.
6375 (verify_eh_region): New.
6376 (verify_eh_tree): Use it.
6377
22a65a54
RG
63782009-04-06 Richard Guenther <rguenther@suse.de>
6379
6380 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
6381 &ARRAY addresses by adjusting their types and prepending
6382 a conversion.
6383 * tree-cfg.c (verify_gimple_assign_single): Verify that
6384 addresses are correct.
6385
f76968e6
RG
63862009-04-09 Richard Guenther <rguenther@suse.de>
6387
6388 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
6389 indices into an array reference if possible.
6390 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
6391 Fold POINTER_PLUS_EXPR statements with invariant address.
6392
c90c5fb5
AM
63932009-04-09 Alan Modra <amodra@bigpond.net.au>
6394
6395 PR target/39634
6396 * config.gcc (powerpc64-*-linux*): Always build biarch.
6397
17cede2e
JM
63982009-04-09 Joseph Myers <joseph@codesourcery.com>
6399
6400 PR c/39613
6401 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
6402 it and pedwarn if this results in an INTEGER_CST.
6403
a3337ea2
KG
64042009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6405
6406 * doc/install.texi: Update minimum GMP version. Remove obsolete
6407 text in MPFR section.
6408
ce9ba79b
JJ
64092009-04-08 Jakub Jelinek <jakub@redhat.com>
6410
6411 * dwarf2out.c (class_scope_p): New static inline.
6412 (class_or_namespace_scope_p): Use it.
6413 (gen_variable_die): Use DW_TAG_member tag for static data member
6414 declarations instead of DW_TAG_variable.
6415
4f0ae266
JJ
6416 PR middle-end/39573
6417 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
6418 variables.
6419
d27f0ddc
RG
64202009-04-08 Richard Guenther <rguenther@suse.de>
6421
6422 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
6423 valueize random data.
6424
557cc596
DE
64252009-04-08 David Edelsohn <edelsohn@gnu.org>
6426
6427 * config.gcc (aix tm_file): Add aix-stdint.h.
6428 (aix tm clause use_gcc_stdint): Set to wrap.
6429 * config/rs6000/aix-stdint.h: New file.
2ba9daa7 6430
75ccc1e7
RG
64312009-04-08 Richard Guenther <rguenther@suse.de>
6432
6433 PR middle-end/36291
6434 * tree-dfa.c (add_referenced_var): Do not recurse into
6435 global initializers.
6436 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
6437 exposed variables.
6438 (fold_const_aggregate_ref): Likewise.
6439
c6963675
PB
64402009-04-08 Paolo Bonzini <bonzini@gnu.org>
6441
6c44cf79
L
6442 * recog.c (ordered_comparison_operator): New.
6443 * gensupport.c (std_preds): Add it.
c6963675
PB
6444 * doc/md.texi (Machine-Independent Predicates): Document it.
6445
6d07ad98
JH
64462009-04-08 Jan Hubicka <jh@suse.cz>
6447
6448 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
6449 * function.h (rtl_eh): Remove exception_handler_label_map.
6450 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
6451 remove_exception_handler_label, for_each_eh_label_1): Remove.
6452 (rtl_remove_unreachable_regions): Remove.
6453 (convert_from_eh_region_ranges): Do not remove unreachable regions.
6454 (find_exception_handler_labels): Don't build the hashtable.
6455 (maybe_remove_eh_handler): Remove.
6456 (for_each_eh_label): Rewrite to walk the tree.
6457 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
6458 * except.h (maybe_remove_eh_handler): Remove.
6459 * passes.c (init_optimization_passes): Schedule second EH cleanup
6460 before out-of-ssa.
6461 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
6462 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
6463
7ddf71e3
PB
64642009-04-08 Paolo Bonzini <bonzini@gnu.org>
6465
6466 * genoutput.c (validate_optab_operands): New.
6467 (gen_insn, gen_expand): Call it.
6468
6469 * genflags.c (gen_insn): Detect misused iterators.
6470 (main): Pass line_no to gen_insn, exit with status 1 on error.
6471
6472 * genextract.c (line_no): Make global.
6473 (VEC_safe_set_locstr): Change assertion to error message.
6474 (main): Exit with status 1 on error.
6475
4d84fe7c
JM
64762009-04-08 Joseph Myers <joseph@codesourcery.com>
6477
6478 PR c/39614
6479 PR c/39673
6480 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
6481 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
6482 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
6483 * c-convert.c (convert): Do not call fold on results of conversion
6484 functions when the result is a C_MAYBE_CONST_EXPR.
6485 * c-parser.c (c_parser_postfix_expression): Do not fold condition
6486 of __builtin_choose_expr.
6487 * c-typeck.c (remove_c_maybe_const_expr): New.
6488 (build_unary_op, build_conditional_expr, build_compound_expr,
6489 build_binary_op, c_objc_common_truthvalue_conversion): Call
6490 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
6491 integer operands.
6492
60839f5d 64932009-04-08 Bingfeng Mei <bmei@broadcom.com>
d1d1c602 6494
2ba9daa7 6495 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
6c44cf79 6496 CODE to produce a new one. Add a prototype to use fold_convert_const
d1d1c602 6497
8e481a2c
DS
64982009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
6499
6500 PR bootstrap/39660
6501 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
6502 mix declarations and code.
6503
ee618c17
BE
65042009-04-08 Ben Elliston <bje@au.ibm.com>
6505
6506 * gcc.c: Replace `CC' with `GCC' throughout.
6507
f2a758a2
L
65082009-04-07 H.J. Lu <hongjiu.lu@intel.com>
6509
6510 * doc/invoke.texi: Document Atom support.
6511
6ea2bd47
JM
65122009-04-07 Jason Merrill <jason@redhat.com>
6513
6514 PR c++/25185
6515 * c-common.h, c-common.c: Add flag_pretty_templates.
6516 * c-opts.c (c_common_handle_option): Set it.
6517 * c.opt: Add -fno-pretty-templates.
6518 * doc/invoke.texi (C++ Dialect Options): Likewise.
6519
fcb82ab0
UB
65202009-04-07 Uros Bizjak <ubizjak@gmail.com>
6521
6522 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
6523 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
6524 (ia64_expand_builtin): Likewise.
6525
dc5e7298
MJ
65262009-04-07 Martin Jambor <mjambor@suse.cz>
6527
6528 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
6529 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
6530 ADDR_EXPRS are include too.
6531
0609b355
RG
65322009-04-07 Richard Guenther <rguenther@suse.de>
6533
6534 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
6535 decls are only used if passes as parameters or if they are
6536 local statics and the call is not to a builtin.
6537 (call_may_clobber_ref_p_1): Likewise.
6538
d8e535fa
PB
65392009-04-07 Paolo Bonzini <bonzini@gnu.org>
6540
6541 * expr.c (do_store_flag): Remove last argument. Simplify code
6542 to avoid duplication of tests already done by can_compare_p.
6543 (expand_expr_real_1): Adjust caller.
6544
c3c64f50
PB
65452009-04-07 Paolo Bonzini <bonzini@gnu.org>
6546
fcb82ab0
UB
6547 * optabs.c (can_compare_p): Test the predicate of a
6548 cbranch and cstore pattern.
c3c64f50 6549
9a53bc17
PB
65502009-04-07 Paolo Bonzini <bonzini@gnu.org>
6551
fcb82ab0
UB
6552 * expr.c (convert_move): Use emit_store_flag instead of
6553 "emulating" it.
9a53bc17 6554
67b8f1c1
PB
65552009-04-07 Paolo Bonzini <bonzini@gnu.org>
6556
fcb82ab0
UB
6557 * config/i386/i386.c (ix86_compare_emitted): Remove.
6558 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
6559 ix86_compare_op0 like ix86_compare_emitted used to be handled.
6560 * config/i386/i386.h (ix86_compare_emitted): Remove.
6561 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
6562 instead of ix86_compare_emitted.
6563 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
67b8f1c1 6564
44509946
AS
65652009-04-07 Andrew Stubbs <ams@codesourcery.com>
6566
6567 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
6568 Add t-sysroot-suffix to tmake_file.
6569 * config/print-sysroot-suffix.sh: New file.
6570 * config/t-sysroot-suffix: New file.
6571
ca22d882
BE
65722009-04-07 Ben Elliston <bje@au.ibm.com>
6573
6574 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
6575 as the latter produces a warning when the target does not support
6576 infinity.
6577
95aac11b
BE
65782009-04-07 Ben Elliston <bje@au.ibm.com>
6579
6580 * dfp.c: Replace type punning assignments with memcpy throughout.
6581 * Makefile.in (dfp.o-warn): Remove.
2ba9daa7 6582
633dd061
AM
65832009-04-07 Alan Modra <amodra@bigpond.net.au>
6584
6585 PR target/39634
6586 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
6587 Include soft-fp/t-softfp after rs6000/t-linux64.
6588
fe0a25ec
EB
65892009-04-06 Eric Botcazou <ebotcazou@adacore.com>
6590
6591 * stor-layout.c (set_sizetype): Use the full precision of their
6592 machine mode for bitsize types.
6593
0c011bc3
L
65942009-04-06 H.J. Lu <hongjiu.lu@intel.com>
6595
6596 * config/i386/i386.md: Revert 2 accidental checkins.
6597
b6837b94 65982009-04-06 Joey Ye <joey.ye@intel.com>
60839f5d 6599 Xuepeng Guo <xuepeng.guo@intel.com>
b6837b94
JY
6600 H.J. Lu <hongjiu.lu@intel.com>
6601
6602 Atom pipeline model, tuning and insn selection.
6603 * config.gcc (atom): Add atom config options and target.
6604
6605 * config/i386/atom.md: New.
6606
6607 * config/i386/i386.c (atom_cost): New cost.
6608 (m_ATOM): New macro flag.
6609 (initial_ix86_tune_features): Set m_ATOM.
6610 (x86_accumulate_outgoing_args): Likewise.
6611 (x86_arch_always_fancy_math_387): Likewise.
6612 (processor_target): Add Atom cost.
6613 (cpu_names): Add Atom cpu name.
6614 (override_options): Set Atom ISA.
6615 (ix86_issue_rate): New case PROCESSOR_ATOM.
6616 (ix86_adjust_cost): Likewise.
6617
6618 * config/i386/i386.h (TARGET_ATOM): New target macro.
6619 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
6620 (TARGET_OPT_AGU): New target option.
6621 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
6622 (processor_type): Add PROCESSOR_ATOM.
6623
6624 * config/i386/i386.md (cpu): Add new value "atom".
6625 (use_carry, movu): New attr.
6626 (atom.md): Include atom.md.
6627 (adddi3_carry_rex64): Set attr "use_carry".
6628 (addqi3_carry): Likewise.
6629 (addhi3_carry): Likewise.
6630 (addsi3_carry): Likewise.
6631 (*addsi3_carry_zext): Likewise.
6632 (subdi3_carry_rex64): Likewise.
6633 (subqi3_carry): Likewise.
6634 (subhi3_carry): Likewise.
6635 (subsi3_carry): Likewise.
6636 (x86_movdicc_0_m1_rex64): Likewise.
6637 (*x86_movdicc_0_m1_se): Likewise.
6638 (x86_movsicc_0_m1): Likewise.
6639 (*x86_movsicc_0_m1_se): Likewise.
6640 (*adddi_1_rex64): Emit add insn as much as possible.
6641 (*addsi_1): Likewise.
6642 (return_internal): Set atom_unit.
6643 (return_internal_long): Likewise.
6644 (return_pop_internal): Likewise.
6645 (*rcpsf2_sse): Set atom_sse_attr attr.
6646 (*qrt<mode>2_sse): Likewise.
6647 (*prefetch_sse): Likewise.
6648
6649 * config/i386/i386-c.c (ix86_target_macros_internal): New case
6650 PROCESSOR_ATOM.
6651 (ix86_target_macros_internal): Likewise.
6652
6653 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
6654 (*prefetch_sse_rex): Likewise.
6655 (sse_rcpv4sf2): Likewise.
6656 (sse_vmrcpv4sf2): Likewise.
6657 (sse_sqrtv4sf2): Likewise.
6658 (<sse>_vmsqrt<mode>2): Likewise.
6659 (sse_ldmxcsr): Likewise.
6660 (sse_stmxcsr): Likewise.
6661 (*sse_sfence): Likewise.
6662 (sse2_clflush): Likewise.
6663 (*sse2_mfence): Likewise.
6664 (*sse2_lfence): Likewise.
6665 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
6666 (<sse>_movup<ssemodesuffixf2c>): Likewise.
6667 (avx_movdqu<avxmodesuffix>): Likewise.
6668 (avx_lddqu<avxmodesuffix>): Likewise.
6669 (sse2_movntv2di): Change attr "type" to "ssemov".
6670 (sse2_movntsi): Likewise.
6671 (rsqrtv8sf2): Change attr "type" to "sseadd".
6672 (sse3_addsubv2df3): Set attr "atom_unit".
6673 (sse3_h<plusminus_insn>v4sf3): Likewise.
6674 (*sse2_pmaddwd): Likewise.
6675 (*vec_extractv2di_1_rex64): Likewise.
6676 (*vec_extractv2di_1_avx): Likewise.
6677 (sse2_psadbw): Likewise.
6678 (ssse3_phaddwv8hi3): Likewise.
6679 (ssse3_phaddwv4hi3): Likewise.
6680 (ssse3_phadddv4si3): Likewise.
6681 (ssse3_phadddv2si3): Likewise.
6682 (ssse3_phaddswv8hi3): Likewise.
6683 (ssse3_phaddswv4hi3): Likewise.
6684 (ssse3_phsubwv8hi3): Likewise.
6685 (ssse3_phsubwv4hi3): Likewise.
6686 (ssse3_phsubdv4si3): Likewise.
6687 (ssse3_phsubdv2si3): Likewise.
6688 (ssse3_phsubswv8hi3): Likewise.
6689 (ssse3_phsubswv4hi3): Likewise.
6690 (ssse3_pmaddubsw128): Likewise.
6691 (sse3_pmaddubsw: Likewise.
6692 (ssse3_palignrti): Likewise.
6693 (ssse3_palignrdi): Likewise.
6694
53e350d3
GP
66952009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
6696
6697 * doc/install.texi (Specific): Fix two cross-references to MinGW.
6698
439ef907
RG
66992009-04-06 Richard Guenther <rguenther@suse.de>
6700
6701 PR tree-optimization/28868
6702 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
6703 of which PHI results we inserted.
6704 (insert_into_preds_of_block): Record inserted PHIs.
6705 (eliminate): Eliminate redundant PHI nodes.
6706 (init_pre): Init inserted_phi_names.
6707
4bad83f5
RG
67082009-04-06 Richard Guenther <rguenther@suse.de>
6709
6710 PR tree-optimization/39643
6711 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
6712 IMAGPART_EXPRs of complex constants.
6713 (execute_fold_all_builtins): If we folded a call queue
6714 TODO_update_address_taken.
6715
570c4247
JH
67162009-04-06 Jan Hubicka <jh@suse.cz>
6717
6718 PR middle-end/39659
6719 * except.c (remove_unreachable_regions): Propagate may_contain_throw
6720 flag.
6721
a460d7a1
AS
67222009-04-06 Andrew Stubbs <ams@codesourcery.com>
6723
6724 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
6725 delay slot.
6726 (ic_invalidate_array): Likewise.
6727
60839f5d 67282009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
6bdf8c2e
HS
6729
6730 * calls.c (emit_library_call_value_1): Fix a problem with parameter
6731 alignment for library calls.
6732
7d253f6e
DS
67332009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
6734
6735 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
6736 (mingw32 tm clause use_gcc_stdint): Set to wrap.
6737 * config/i386/mingw-stdint.h: New file.
6738
941c3614
RB
67392009-04-05 Richard Guenther <rguenther@suse.de>
6740
6741 PR tree-optimization/39648
6742 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
6743 our &A vs. &A[0] IL deficiencies.
6744
12633413
JH
67452009-04-04 Jan Hubicka <jh@suse.cz>
6746
941c3614
RB
6747 * except.c (sjlj_find_directly_reachable_regions): Be ready for
6748 removed toplevel regions.
12633413
JH
6749 (sjlj_mark_call_sites): Likewise.
6750
bb2aaded
DK
67512009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
6752
6753 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
6754 (cygwin tm clause use_gcc_stdint): Set to wrap.
6755 * config/i386/cygwin-stdint.h: New file.
6756
86290011
RG
67572009-04-04 Richard Guenther <rguenther@suse.de>
6758
6759 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
6760 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
6761 single-argument PHIs if we are in loop-closed SSA form.
6762 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
6763 for the pre-condition.
6764 (slpeel_tree_peel_loop_to_edge): Likewise.
6765 (vect_build_loop_niters): Take an optional sequence to append stmts.
6766 (vect_generate_tmps_on_preheader): Likewise.
6767 (vect_do_peeling_for_loop_bound): Take extra guards for the
6768 pre-condition.
6769 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
6770 the cost model check.
6771 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
7a715bba 6772 guards if we are going to peel. Do not apply versioning in that case.
86290011
RG
6773 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
6774 (vect_do_peeling_for_loop_bound): Likewise.
6775 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
6776 loop bound only record extra pre-conditions, do not apply loop
6777 versioning.
6778
5eeeac64
RG
67792009-04-04 Richard Guenther <rguenther@suse.de>
6780
6781 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
6782 renaming code.
6783
1ff7d06b
JH
67842009-04-04 Jan Hubicka <jh@suse.cz>
6785
6786 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
6787 last_basic_block for size of bb->index indexed array.
6788 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
6789 compute_out, link_btr_uses, build_btr_def_use_webs,
6790 build_btr_def_use_webs, migrate_btr_defs): Likewise.
6791
14925fcd
JH
67922009-04-04 Jan Hubicka <jh@suse.cz>
6793
6794 * except.c (remove_eh_handler_and_replace): Break out from ...
6795 (remove_eh_handler): ... here.
6796 (bring_to_root): New function.
6797 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
6798 handled ones, bring others to root of tree.
6799
4e6d1743
JH
68002009-04-04 Jan Hubicka <jh@suse.cz>
6801
4cb735f7
JH
6802 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
6803 (all_phis_safe_to_merge): New function.
6804 (update_info): New structure.
6805 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
6806 (cleanup_empty_eh): Update SSA if possible.
4e6d1743 6807
c6803d43
RG
68082009-04-04 Richard Guenther <rguenther@suse.de>
6809
6810 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
6811 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
6812 (append_vuse): Likewise.
6813
54f5943c
JJ
68142009-04-04 Jakub Jelinek <jakub@redhat.com>
6815
6816 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
6817 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
6818 instead of REG_UNSAVED for DW_CFA_undefined.
6819 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
6820 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
6821 outermost frame.
6822
aad2bccb
RE
68232009-04-04 Richard Earnshaw <rearnsha@arm.com>
6824
6825 PR target/39501
6826 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
6827 * testsuite/gcc.c-torture/execute/pr39501.c: New file.
6828 * testsuite/gcc.c-torture/execute/pr39501.x: New file.
6829
aa7069aa
RG
68302009-04-04 Richard Guenther <rguenther@suse.de>
6831
6832 PR tree-optimization/8781
6833 PR tree-optimization/37892
6834 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
6835 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
6836 (valueize_refs): Call it for *& valueizations.
6837 (shared_reference_ops_from_ref): Rename to ...
6838 (valueize_shared_reference_ops_from_ref): ... this and valueize.
6839 (shared_reference_ops_from_call): Rename to ...
6840 (valueize_shared_reference_ops_from_call): ... this and valueize.
6841 (vn_reference_lookup): Update.
6842 (visit_reference_op_call): Likewise.
6843 * tree-ssa-pre.c (phi_translate_1): Fold *&.
6844 (eliminate): Value-replace the call address in call statements.
6845
cd15ad3e
RG
68462009-04-04 Richard Guenther <rguenther@suse.de>
6847
6848 PR tree-optimization/39636
6849 * tree-ssa-forwprop.c
6850 (forward_propagate_addr_into_variable_array_index): Check for
6851 GIMPLE_ASSIGN before accessing the rhs code.
6852
462f3262
JM
68532009-04-03 Jason Merrill <jason@redhat.com>
6854
6855 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
6856
6adb807e
SE
68572009-04-03 Steve Ellcey <sje@cup.hp.com>
6858
6859 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
6860 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
6861 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
6862 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
6863 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
6864 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
6865 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
6866 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
6867 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
6868 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
6869 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
6870 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
6871 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
6872 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
6873 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
6874 Use fr_reg_or_fp01_operand instead of fr_register_operand
6875
6876 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
6877 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
6878 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
6879
174b3107
VM
68802009-04-03 Vladimir Makarov <vmakarov@redhat.com>
6881
b844e5d8
L
6882 PR rtl-optimization/39607
6883 PR rtl-optimization/39631
7a715bba
UB
6884
6885 Revert:
2ba9daa7 6886
174b3107
VM
6887 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
6888 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
6889 instead of DF_LR_OUT.
6890 * ira-lives.c (process_bb_node_lives): Ditto.
6891 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
6892 instead of DF_LR_{OUT,IN}.
6893 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
6894 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
6895
535b544a
SB
68962009-04-03 Steven Bosscher <steven@gcc.gnu.org>
6897
6898 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
6899 (execute_lower_omp): Always run but take the short way out if -fopenmp
6900 is not given.
6901 (gate_lower_omp): Remove, forcing the pass manager to always run the
6902 pass and always set PROP_gimple_lomp.
6903 (pass_lower_omp): Remove gate function.
6904 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
6905 PROP_trees. Instead, require it.
6906 * ipa-cp.c (pass_ipa_cp): Likewise.
6907 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
6908 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
6909 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
6910 and PROP_gimple_leh.
6911
5006671f
RG
69122009-04-03 Richard Guenther <rguenther@suse.de>
6913
6914 PR middle-end/13146
6915 PR tree-optimization/23940
6916 PR tree-optimization/33237
6917 PR middle-end/33974
6918 PR middle-end/34093
6919 PR tree-optimization/36201
6920 PR tree-optimization/36230
6921 PR tree-optimization/38049
6922 PR tree-optimization/38207
6923 PR tree-optimization/38230
6924 PR tree-optimization/38301
6925 PR tree-optimization/38585
6926 PR middle-end/38895
6927 PR tree-optimization/38985
6928 PR tree-optimization/39299
6929 * tree-ssa-structalias.h: Remove.
6930 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
6931 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
6932 (struct vuse_element_d): Remove.
6933 (struct vuse_vec_d): Likewise.
6934 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
6935 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
6936 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
6937 VUSE_ELEMENT_VAR): Likewise.
6938 (struct voptype_d): Likewise.
6939 (NUM_VOP_FREE_BUCKETS): Likewise.
6940 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
6941 (struct stmt_operands_d): Remove.
6942 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
6943 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
6944 VDEF_NUM, VDEF_VECT): Likewise.
6945 (copy_virtual_operands): Remove.
6946 (operand_build_cmp): Likewise.
6947 (create_ssa_artificial_load_stmt): Likewise.
6948 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
6949 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
6950 vuse_index and mayuse_index members. Pack and move done and iter_type
6951 members to the front.
6952 (SSA_OP_VMAYUSE): Remove.
6953 (SSA_OP_VIRTUAL_USES): Adjust.
6954 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
6955 (unlink_stmt_vdef): Declare.
6956 (add_to_addressable_set): Remove.
6957 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
6958 (vrp_visit_stmt): Likewise.
6959 * doc/tree-ssa.texi (Alias analysis): Update.
6960 * doc/invoke.texi (max-aliased-vops): Remove docs.
6961 (avg-aliased-vops): Likewise.
6962 * tree-into-ssa.c (syms_to_rename): Remove.
6963 (need_to_update_vops_p): Likewise.
6964 (need_to_initialize_update_ssa_p): Rename to ...
6965 (update_ssa_initialized_fn): ... this. Track function we are
6966 initialized for.
6967 (symbol_marked_for_renaming): Simplify.
6968 (add_new_name_mapping): Do not set need_to_update_vops_p.
6969 (dump_currdefs): Use SYMS_TO_RENAME.
6970 (rewrite_update_stmt): Always walk all uses/defs.
6971 (dump_update_ssa): Adjust.
6972 (init_update_ssa): Take function argument. Track what we are
6973 initialized for.
6974 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
6975 (create_new_def_for): Initialize for cfun, assert we are initialized
6976 for cfun.
6977 (mark_sym_for_renaming): Simplify.
6978 (mark_set_for_renaming): Do not initialize update-ssa.
6979 (need_ssa_update_p): Simplify. Take function argument.
6980 (name_mappings_registered_p): Assert we ask for the correct function.
6981 (name_registered_for_update_p): Likewise.
6982 (ssa_names_to_replace): Likewise.
6983 (release_ssa_name_after_update_ssa): Likewise.
6984 (update_ssa): Likewise. Use SYMS_TO_RENAME.
6985 (dump_decl_set): Do not print a newline.
6986 (debug_decl_set): Do it here.
6987 (dump_update_ssa): And here.
6988 * tree-ssa-loop-im.c (move_computations): Adjust.
6989 (movement_possibility): Likewise.
6990 (determine_max_movement): Likewise.
6991 (gather_mem_refs_stmt): Likewise.
6992 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
6993 or NAME_MEMORY_TAG.
6994 * tree-complex.c (update_all_vops): Remove.
6995 (expand_complex_move): Adjust.
6996 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
6997 Simplify test for memory referencing statement. Exclude
6998 non-invariant ADDR_EXPRs.
6999 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
7000 * tree-loop-distribution.c (generate_memset_zero): Adjust.
7001 (rdg_flag_uses): Likewise.
7002 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
7003 related code.
7004 (tree_optimize_tail_calls_1): Also split the
7005 edge from the entry block if we have degenerate PHI nodes in
7006 the first basic block.
7007 * tree.c (init_ttree): Remove memory-tag related code.
7008 (tree_code_size): Likewise.
7009 (tree_node_structure): Likewise.
7010 (build7_stat): Re-write to be build6_stat.
7011 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
7012 (SSA_VAR_P): Adjust.
7013 (struct tree_memory_tag): Remove.
7014 (struct tree_memory_partition_tag): Likewise.
7015 (union tree_node): Adjust.
7016 (build7): Re-write to be build6.
7017 * tree-pass.h (pass_reset_cc_flags): Remove.
7018 (TODO_update_address_taken): New flag.
7019 (pass_simple_dse): Remove.
7020 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
7021 * params.h (MAX_ALIASED_VOPS): Remove.
7022 (AVG_ALIASED_VOPS): Likewise.
7023 * omp-low.c (expand_omp_taskreg): Update SSA form.
7024 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
7025 aliases the lhs in a copy stmt.
7026 * tree-ssa-dse.c (struct address_walk_data): Remove.
7027 (memory_ssa_name_same): Likewise.
7028 (memory_address_same): Likewise.
7029 (get_kill_of_stmt_lhs): Likewise.
7030 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
7031 unused stores. Look through PHI nodes into post-dominated regions.
7032 (dse_optimize_stmt): Simplify. Properly remove stores.
7033 (tree_ssa_dse): Compute dominators.
7034 (execute_simple_dse): Remove.
7035 (pass_simple_dse): Likewise.
7036 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
7037 gimple_loaded_syms and gimple_stored_syms computation.
7038 * toplev.c (dump_memory_report): Dump alias and pta stats.
7039 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
7040 (vn_reference_eq): Likewise.
7041 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
7042 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
7043 valueize_vuses): Remove.
7044 (get_def_ref_stmt_vuses): Simplify. Rename to ...
7045 (get_def_ref_stmt_vuse): ... this.
7046 (vn_reference_lookup_2): New function.
7047 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
7048 walking equivalent vuses. Simplify.
7049 (vn_reference_lookup): Likewise.
7050 (vn_reference_insert): Likewise.
7051 (vn_reference_insert_pieces): Likewise.
7052 (visit_reference_op_call): Simplify.
7053 (visit_reference_op_load): Likewise.
7054 (visit_reference_op_store): Likewise.
7055 (init_scc_vn): Remove shared_lookup_vuses initialization.
7056 (free_scc_vn): Remove shared_lookup_vuses freeing.
7057 (sort_vuses, sort_vuses_heap): Remove.
7058 (get_ref_from_reference_ops): Export.
7059 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
7060 vector with single vuse pointer.
7061 (vn_reference_lookup_pieces, vn_reference_lookup,
7062 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
7063 (shared_vuses_from_stmt): Remove.
7064 (get_ref_from_reference_ops): Declare.
7065 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
7066 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
7067 memory-tag related code.
7068 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
7069 (likely_value): Add comment, skip static-chain of call statements.
7070 (surely_varying_stmt_p): Adjust.
7071 (gimplify_and_update_call_from_tree): Likewise.
7072 (execute_fold_all_builtins): Do not rebuild alias info.
7073 (gimplify_and_update_call_from_tree): Properly update VOPs.
7074 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
7075 (copy_ref_info): Remove memory-tag related code.
7076 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
7077 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
7078 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
7079 computation.
7080 * tree-ssa-dom.c (gimple_p): Remove typedef.
7081 (eliminate_redundant_computations): Adjust.
7082 (record_equivalences_from_stmt): Likewise.
7083 (avail_expr_hash): Likewise.
7084 (avail_expr_eq): Likewise.
7a715bba 7085 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
5006671f
RG
7086 (stmt_makes_single_load): Likewise.
7087 (stmt_makes_single_store): Likewise.
7088 * tree-ssa-alias.c: Rewrite completely.
7089 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
7090 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
7091 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
7092 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
7093 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
7094 Remove public functions.
7095 (pass_reset_cc_flags): Remove.
7096 (pass_build_alias): Move ...
7097 * tree-ssa-structalias.c (pass_build_alias): ... here.
7098 * tree-ssa-alias.c (may_be_aliased): Move ...
7099 * tree-flow-inline.h (may_be_aliased): ... here.
7100 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
7101 count_uses_and_derefs): Move ...
7102 * gimple.c: ... here.
7103 * gimple.h (count_uses_and_derefs): Declare.
7104 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
7105 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
7106 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
7107 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
7108 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
7109 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
7110 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
7111 New functions.
7112 * tree-dfa.c (refs_may_alias_p): Move ...
7113 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
7114 * tree-ssa-alias.h: New file.
7115 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
7116 (statement_sink_location): Likewise.
7117 * opts.c (decode_options): Do not adjust max-aliased-vops or
7118 avg-aliased-vops values.
7119 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
7120 (TV_CALL_CLOBBER): Likewise.
7121 (TV_FLOW_SENSITIVE): Likewise.
7122 (TV_FLOW_INSENSITIVE): Likewise.
7123 (TV_MEMORY_PARTITIONING): Likewise.
7124 (TV_ALIAS_STMT_WALK): New timevar.
7125 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
7126 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
7127 (get_address_description): Remove memory-tag related code.
7128 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
7129 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
7130 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
7131 and immediate uses in statements. Document.
7132 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
7133 (dump_symbols): Remove.
7134 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
7135 * alias.c (get_deref_alias_set): New function split out from ...
7136 (get_alias_set): ... here.
7137 * alias.h (get_deref_alias_set): Declare.
7138 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
7139 type parameter. Remove restrict pointer handling. Create a
7140 ref-all pointer in case type-based alias sets do not conflict.
7141 (vect_analyze_data_refs): Remove SMT related code.
7142 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
7143 (vectorizable_load): Likewise.
7144 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
7145 (DR_SYMBOL_TAG, DR_VOPS): Remove.
7146 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
7147 Ignore vops and SMTs.
7148 (dr_analyze_alias): Likewise..
7149 (free_data_ref): Likewise.
7150 (create_data_ref): Likewise.
7151 (analyze_all_data_dependences): Likewise.
7152 (get_references_in_stmt): Adjust.
7153 * tree-flow-inline.h (gimple_aliases_computed_p,
7154 gimple_addressable_vars, gimple_call_clobbered_vars,
7155 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
7156 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
7157 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
7158 gimple_mem_ref_stats): Remove.
7159 (gimple_vop): New function.
7160 (op_iter_next_use): Remove vuses and mayuses cases.
7161 (op_iter_next_def): Remove vdefs case.
7162 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
7163 (clear_and_done_ssa_iter): Do not set removed fields.
7164 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
7165 Assert we are not iterating over vuses or vdefs if not also
7166 iterating over uses or defs.
7167 (op_iter_init_use): Likewise.
7168 (op_iter_init_def): Likewise.
7169 (op_iter_next_vdef): Remove.
7170 (op_iter_next_mustdef): Likewise.
7171 (op_iter_init_vdef): Likewise.
7172 (compare_ssa_operands_equal): Likewise.
7173 (link_use_stmts_after): Handle vuse operand.
7174 (is_call_used): Use is_call_clobbered.
7175 (is_call_clobbered): Global variables are always call clobbered,
7176 query the call-clobbers bitmap.
7177 (mark_call_clobbered): Ignore global variables.
7178 (clear_call_clobbered): Likewise.
7179 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
7180 virtual operands sanity check.
7181 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
7182 Remove.
7183 (TARGET_MEM_REF): Remove TMR_TAG operand.
7184 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
7185 Remove call-clobber related code.
7186 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
7187 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
7188 partitions or escape reason.
7189 (get_single_def_stmt, get_single_def_stmt_from_phi,
7190 get_single_def_stmt_with_phi): Remove.
7191 (dump_referenced_vars): Tidy.
7192 (get_ref_base_and_extent): Allow bare decls.
7193 (collect_dfa_stats): Adjust.
7194 * graphite.c (rename_variables_in_stmt): Adjust.
7195 (graphite_copy_stmts_from_block): Likewise.
7196 (translate_clast): Likewise.
7197 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
7198 (EXPR_DIES): New.
7199 (translate_vuse_through_block): Use the oracle.
7200 (phi_translate_1): Adjust.
7201 (value_dies_in_block_x): Use the oracle. Cache the outcome
7202 in EXPR_DIES.
7203 (valid_in_sets): Check if the VUSE for
7204 a REFERENCE is available.
7205 (eliminate): Do not remove stmts during elimination,
7206 instead queue and remove them afterwards.
7207 (do_pre): Do not rebuild alias info.
7208 (pass_pre): Run TODO_rebuild_alias before PRE.
7209 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
7210 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
7211 (mark_all_v_defs_stmt): Remove.
7212 (mark_all_v_defs_seq): Adjust.
7213 (sra_replace): Likewise.
7214 (scalarize_use): Likewise.
7215 (scalarize_copy): Likewise.
7216 (scalarize_init): Likewise.
7217 (scalarize_ldst): Likewise.
7218 (todoflags): Remove.
7219 (tree_sra): Do not rebuild alias info.
7220 (tree_sra_early): Adjust.
7221 (pass_sra): Run TODO_update_address_taken before SRA.
7222 * tree-predcom.c (set_alias_info): Remove.
7223 (prepare_initializers_chain): Do not call it.
7224 (mark_virtual_ops_for_renaming): Adjust.
7225 (mark_virtual_ops_for_renaming_list): Remove.
7226 (initialize_root_vars): Adjust.
7227 (initialize_root_vars_lm): Likewise.
7228 (prepare_initializers_chain): Likewise.
7229 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
7230 (may_propagate_copy_into_stmt): Likewise.
7231 (merge_alias_info): Do nothing for now.
7232 (propagate_tree_value_into_stmt): Adjust.
7233 (stmt_may_generate_copy): Likewise.
7234 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
7235 not mark symbols for renaming.
7236 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
7237 with the same statement, make sure to update the new pointed-to one.
7238 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
7239 call statements, do not mark symbols for renaming.
7240 (mark_operand_necessary): Dump something.
7241 (ref_may_be_aliased): New function.
7242 (mark_aliased_reaching_defs_necessary_1): New helper function.
7243 (mark_aliased_reaching_defs_necessary): Likewise.
7244 (mark_all_reaching_defs_necessary_1): Likewise.
7245 (mark_all_reaching_defs_necessary): Likewise.
7246 (propagate_necessity): Do not process virtual PHIs. For
7247 non-aliased loads mark all reaching definitions as necessary.
7248 For aliased loads and stores mark the immediate dominating
7249 aliased clobbers as necessary.
7250 (visited): New global static.
7251 (perform_tree_ssa_dce): Free visited bitmap after propagating
7252 necessity.
7253 (remove_dead_phis): Perform simple dead virtual PHI removal.
7254 (remove_dead_stmt): Properly unlink virtual operands when
7255 removing stores.
7256 (eliminate_unnecessary_stmts): Schedule PHI removal after
7257 stmt removal.
7258 * tree-ssa-ter.c (is_replaceable_p): Adjust.
7259 (process_replaceable): Likewise.
7260 (find_replaceable_in_bb): Likewise.
7261 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
7262 based on the single gimple vop.
7263 (verify_flow_insensitive_alias_info): Remove.
7264 (verify_flow_sensitive_alias_info): Likewise.
7265 (verify_call_clobbering): Likewise.
7266 (verify_memory_partitions): Likewise.
7267 (verify_alias_info): Likewise.
7268 (verify_ssa): Adjust..
7269 (execute_update_addresses_taken): Export. Update SSA
7270 manually. Optimize only when optimizing. Use a local bitmap.
7271 (pass_update_address_taken): Remove TODO_update_ssa, add
7272 TODO_dump_func.
7273 (pass_update_address_taken): Just use TODO_update_address_taken.
7274 (init_tree_ssa): Do not initialize addressable_vars.
7275 (verify_ssa): Verify new VUSE / VDEF properties.
7276 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
7277 Do not call verify_alias_info.
7278 (delete_tree_ssa): Clear the VUSE, VDEF operands.
7279 Do not free the loaded and stored syms bitmaps. Reset the escaped
7280 and callused solutions. Do not free addressable_vars.
7281 Remove memory-tag related code.
7282 (warn_uninitialized_var): Aliases are always available.
7283 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
7284 * lambda-code.c (can_put_in_inner_loop): Adjust.
7285 (can_put_after_inner_loop): Likewise.
7286 (perfect_nestify): Likewise.
7287 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
7288 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
7289 (vectorizable_conversion): Do not mark symbols for renaming.
7290 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
7291 (expand_call_inline): Unlink the calls virtual operands before
7292 replacing it.
7293 (tree_function_versioning): Do not call update_ssa if we are not
7294 updating clones. Simplify.
7295 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
7296 (propagate_with_phi): Likewise..
7297 * tree-outof-ssa.c (create_temp): Remove memory tag and call
7298 clobber code. Assert we are not aliased or global.
7299 * tree-flow.h: Include tree-ssa-alias.h
7300 (enum escape_type): Remove.
7301 (struct mem_sym_stats_d): Likewise.
7302 (struct mem_ref_stats_d): Likewise.
7303 (struct gimple_df): Add vop member. Remove global_var,
7304 call_clobbered_vars, call_used_vars, addressable_vars,
7305 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
7306 escaped and callused members.
7307 (struct ptr_info_def): Remove all members, add points-to solution
7308 member pt.
7309 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
7310 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
7311 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
7312 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
7313 (tree-ssa-alias.o): Likewise.
7314 (toplev.o): Add tree-ssa-alias.h
7315 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
7316 * gimple.c (gimple_set_bb): Fix off-by-one error.
7317 (is_gimple_reg): Do not handle memory tags.
7318 (gimple_copy): Also copy virtual operands.
7319 Delay updating the statement. Do not reset loaded and stored syms.
7320 (gimple_set_stored_syms): Remove.
7321 (gimple_set_loaded_syms): Likewise.
7322 (gimple_call_copy_skip_args): Copy the virtual operands
7323 and mark the new statement modified.
7324 * tree-ssa-structalias.c (may_alias_p): Remove.
7325 (set_uids_in_ptset): Take the alias set to prune with as
7326 parameter. Fold in the alias test of may_alias_p.
7327 (compute_points_to_sets): Compute whether a ptr is dereferenced
7328 in a local sbitmap.
7329 (process_constraint): Deal with &ANYTHING on the lhs, reject all
7330 other ADDRESSOF constraints on the lhs.
7331 (get_constraint_for_component_ref): Assert that we don't get
7332 ADDRESSOF constraints from the base of the reference.
7333 Properly generate UNKNOWN_OFFSET for DEREF if needed.
7334 (struct variable_info): Remove collapsed_to member.
7335 (get_varinfo_fc): Remove.
7336 (new_var_info): Do not set collapsed_to.
7337 (dump_constraint): Do not follow cycles.
7338 (dump_constraint_graph): Likewise.
7339 (build_pred_graph): Likewise.
7340 (build_succ_graph): Likewise.
7341 (rewrite_constraints): Likewise.
7342 (do_simple_structure_copy): Remove.
7343 (do_rhs_deref_structure_copy): Remove.
7344 (do_lhs_deref_structure_copy): Remove.
7345 (collapse_rest_of_var): Remove.
7346 (do_structure_copy): Re-implement.
7347 (pta_stats): New global variable.
7348 (dump_pta_stats): New function.
7349 (struct constraint_expr): Make offset signed.
7350 (UNKNOWN_OFFSET): Define special value.
7351 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
7352 (solution_set_expand): New helper function split out from ...
7353 (do_sd_constraint): ... here.
7354 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
7355 (do_ds_constraint): Likewise.
7356 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
7357 and CALLUSED = *CALLUSED.
7358 (set_union_with_increment): Make inc argument signed.
7359 (type_safe): Remove.
7360 (get_constraint_for_ptr_offset): Handle unknown and negative
7361 constant offsets.
7362 (first_vi_for_offset): Handle offsets before start. Bail
7363 out early for offsets beyond the variable extent.
7364 (first_or_preceding_vi_for_offset): New function.
7365 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
7366 Together with ESCAPED = *ESCAPED this properly computes reachability.
7367 (find_what_var_points_to): New function.
7368 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
7369 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
7370 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
7371 pt_solutions_intersect): New functions.
7372 (compute_call_used_vars): Remove.
7373 (compute_may_aliases): New main entry into PTA computation.
7374 * gimple.h (gimple_p): New typedef.
7375 (struct gimple_statement_base): Remove references_memory_p.
7376 (struct gimple_statement_with_memory_ops_base): Remove
7377 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
7378 members.
7379 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
7380 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
7381 gimple_set_references_memory): Remove.
7382 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
7383 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
7384 New functions.
7385 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
7386 (verify_expr): Allow RESULT_DECL.
7387 (gimple_duplicate_bb): Do not copy virtual operands.
7388 (gimple_duplicate_sese_region): Adjust.
7389 (gimple_duplicate_sese_tail): Likewise.
7390 (mark_virtual_ops_in_region): Remove.
7391 (move_sese_region_to_fn): Do not call it.
7392 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
7393 and pass_simple_dse.
7394 (execute_function_todo): Handle TODO_update_address_taken,
7395 call execute_update_addresses_taken for TODO_rebuild_alias.
7396 (execute_todo): Adjust.
7397 (execute_one_pass): Init dump files early.
7398 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
7399 call-clobbered.
7400 (create_general_new_stmt): Clear vops.
7401 * tree-ssa-reassoc.c (get_rank): Adjust.
7402 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
7403 symbols for renaming.
7404 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
7405 (PARAM_AVG_ALIASED_VOPS): Likewise.
7406 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
7407 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
7a715bba 7408 * tree-ssa-operands.c: Simplify for new virtual operand representation.
5006671f
RG
7409 (operand_build_cmp, copy_virtual_operands,
7410 create_ssa_artificial_load_stmt, add_to_addressable_set,
7411 gimple_add_to_addresses_taken): Remove public functions.
7412 (unlink_stmt_vdef): New function.
7413
457d1d00
AM
74142009-04-03 Alan Modra <amodra@bigpond.net.au>
7415
7416 * config.gcc (powerpc-*-linux*): Merge variants.
7417
e19da24c 74182009-04-02 Chao-ying Fu <fu@mips.com>
60839f5d 7419 James Grosbach <james.grosbach@microchip.com>
e19da24c
CF
7420
7421 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
7422 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
7423 cop0_sp_offset.
7424 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
7425 keep_interrupts_masked_p, use_debug_exception_return_p.
7426 (mips_attribute_table): Add interrupt, use_shadow_register_set,
7427 keep_interrupts_masked, use_debug_exception_return.
7428 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
7429 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
7430 New functions.
7431 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
7432 (mips_print_operand): Process COP0 registers to print $0 .. $31
7433 correctly for GAS to process.
7434 (mips_interrupt_extra_call_saved_reg_p): New function.
7435 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
7436 extra registers.
7437 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
7438 (mips_compute_frame_info): Add supports for interrupt context that
7439 includes doubleword accumulators and COP0 registers.
7440 (mips_for_each_saved_acc): New function.
7441 (mips_for_each_saved_gpr_and_fpr): Change the function name from
7442 mips_for_each_saved_reg.
7443 (mips_save_reg): Save accumulators.
7444 (mips_kernel_reg_p): A new for_each_rtx callback.
7445 (mips_expand_prologue): Support interrupt handlers.
7446 (mips_restore_reg): Restore accumulators.
7447 (mips_expand_epilogue): Support interrupt handlers.
7448 (mips_can_use_return_insn): Return false for interrupt handlers.
7449 (mips_epilogue_uses): New function.
7450 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
7451 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
7452 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
7453 cop0_move): New instructions.
7454 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
7455 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
7456 defines.
7457 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
7458 New defines.
7459 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
7460 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
7461 interrupt handlers, we use K0 as the temporary register.
7462 (EPILOGUE_USES): Change to a function call.
7463 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
7464 handlers, we use K0 as the temporary register.
2ba9daa7 7465
e19da24c
CF
7466 * doc/extend.texi (Function Attributes): Document interrupt,
7467 use_shadow_register_set, keep_interrupts_masked,
7468 use_debug_exception_return for MIPS attributes.
7469
aa1ca044
AM
74702009-04-03 Alan Modra <amodra@bigpond.net.au>
7471
7472 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
7473 Remove a number of t-files from tmake_file.
7474 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
7475 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
7476 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
7477 target_prototype, not TARGET_PROTOTYPE.
7478 (LINK_OS_GNU_SPEC): Define.
7479 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
7480 and darwin-ldoubdle.c.
7481
14fdc613
MM
74822009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
7483
7484 PR driver/39293
7485 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
7486 (cpp_options): Ditto.
7487 (default_compilers): Ditto.
7488 (display_help): Ditto.
7489 (process_command): Ditto.
7490 (do_spec_1): Ditto.
7491 (set_input): Use lbasename instead of duplicate code.
7492 (save_temps_prefix): New static for -save-temps=obj.
7493 (save_temps_length): Ditto.
2ba9daa7 7494
14fdc613
MM
7495 * doc/invoke.texi (-save-temps=obj): Document new variant to
7496 -save-temps switch.
7497
d3aa398e
JL
74982009-04-02 Jeff Law <law@redhat.com>
7499
7500 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
7501 variable.
7502
83f0ccb8
L
75032009-04-02 H.J. Lu <hongjiu.lu@intel.com>
7504
7505 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
7506 * configure: Regenerated.
7507
dcb6e951
RAE
75082009-04-02 Rafael Avila de Espindola <espindola@google.com>
7509
7510 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
7511 share the argument list.
7512
d85478c2
RAE
75132009-04-02 Rafael Avila de Espindola <espindola@google.com>
7514
7515 Merge
7516
7517 2009-02-12 Diego Novillo <dnovillo@google.com>
7518
83f0ccb8
L
7519 * varpool.c (debug_varpool): New.
7520 * cgraph.h (debug_varpool): Declare.
d85478c2 7521
34f42a49
JH
75222009-04-02 Jan Hubicka <jh@suse.cz>
7523
7524 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
7525 pass.
7526
a4747b4a
L
75272009-04-02 H.J. Lu <hongjiu.lu@intel.com>
7528
7529 * config/i386/i386.c (ix86_abi): Move initialization to ...
7530 (override_options): Here.
7531
63a9de54
CB
75322009-04-02 Christian Bruel <christian.bruel@st.com>
7533
7534 * config/sh/sh.c (sh_dwarf_register_span): New function.
7535 (TARGET_DWARF_REGISTER_SPAN): Define.
7536 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
2ba9daa7 7537
2f0fa28e
IR
75382009-04-02 Ira Rosen <irar@il.ibm.com>
7539
7540 PR tree-optimization/39595
2ba9daa7 7541 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
2f0fa28e
IR
7542 interleaved loads group is not greater than the SLP group size.
7543
bbf7ce11
RAE
75442009-04-02 Rafael Avila de Espindola <espindola@google.com>
7545
7546 * builtins.c (is_builtin_name): New.
7547 (called_as_built_in): Use is_builtin_name.
7548 * tree.h (is_builtin_name): New.
7549 * varasm.c (incorporeal_function_p): Use is_builtin_name
7550
47e4dfcf
AS
75512009-04-02 Andrew Stubbs <ams@codesourcery.com>
7552
7553 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
7554
d0940d56
DS
75552009-04-02 Dodji Seketeli <dodji@redhat.com>
7556
7557 PR c++/26693
532bfb0a 7558 * c-decl.c (clone_underlying_type): Move this ...
d0940d56
DS
7559 * c-common.c (set_underlying_type): ... here.
7560 Also, make sure the function properly sets TYPE_STUB_DECL() on
7561 the newly created typedef variant type.
7562 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
7a715bba
UB
7563 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
7564 points.
d0940d56 7565
bf1cbdc6
RG
75662009-04-02 Richard Guenther <rguenther@suse.de>
7567
7568 PR tree-optimization/37221
7569 * tree-flow.h (degenerate_phi_result): Declare.
7570 * tree-ssa-dom.c (degenerate_phi_result): Export.
7571 * tree-scalar-evolution.c (analyze_initial_condition): If
7572 the initial condition is defined by a degenerate PHI node
7573 use the degenerate value.
7574
87cfb32c
EB
75752009-04-01 Eric Botcazou <ebotcazou@adacore.com>
7576
7577 PR rtl-optimization/39588
7578 * combine.c (merge_outer_ops): Do not set the constant when this
7579 is not necessary.
7580 (simplify_shift_const_1): Do not modify it either in this case.
7581
bbb6eae8
SB
75822009-04-01 Steven Bosscher <steven@gcc.gnu.org>
7583
7584 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
7585 tuning is deprecated if -mtune value is set to an Itanium1 variant.
7586
839a3b8a
JJ
75872009-04-01 Janis Johnson <janis187@us.ibm.com>
7588
7589 PR c/29027
7590 * c-lex.c (interpret_float): Default (no suffix) is double.
7591
667e8acb
XDL
75922009-04-1 Xinliang David Li <davidxl@google.com>
7593
7594 * config/i386/i386.c (legitimate_constant_p): Recognize
7595 all one vector constant.
7596
60839f5d 75972009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 7598
60839f5d 7599 * config/vax/vax.c: Add #includes to silence warnings.
c4e75102
MT
7600 Change #include order to silence two warnings.
7601
60839f5d 76022009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 7603
60839f5d 7604 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
c4e75102
MT
7605 (ASM_SPEC): Pass -k to the assembler for PIC code.
7606
60839f5d 76072009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 7608
60839f5d
EB
7609 * config.gcc: Add vax-*-linux* to the switch.
7610 * config/vax/linux.h: New file. (TARGET_VERSION,
c4e75102
MT
7611 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
7612
60839f5d 76132009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 7614
60839f5d 7615 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
c4e75102 7616 Use predicate macros instead of GET_CODE() == foo.
60839f5d 7617 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
c4e75102
MT
7618 ashlsi3, rotrsi3, <unnamed>): Likewise.
7619
60839f5d 76202009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 7621
60839f5d 7622 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
c4e75102 7623 jbbccihi, jbbccisi): Remova trailing whitespace.
60839f5d
EB
7624 * config/vax/constraints.md: Likewise.
7625 * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
7626 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
7627 * config/vax/predicates.md: Likewise.
7628 * config/vax/vax.c (print_operand_address, vax_output_int_move,
c4e75102 7629 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
60839f5d
EB
7630 * config/vax/vax.h: Likewise.
7631 * config/vax/vax.md (nonlocal_goto): Likewise.
c4e75102 7632
60839f5d 76332009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 7634
60839f5d 7635 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
c4e75102
MT
7636 (indirectable_address_p, adjacent_operands_p): Add spaces around
7637 braces.
60839f5d 7638 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
c4e75102 7639
60839f5d 76402009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 7641
60839f5d 7642 * config/vax/vax.c (legitimate_constant_address_p,
c4e75102
MT
7643 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
7644 index_term_p, reg_plus_index_p, legitimate_address_p,
7645 vax_mode_dependent_address_p): Update comments to match functions
7646 modified by the recent int->bool conversion.
7647
60839f5d 76482009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 7649
60839f5d
EB
7650 * config/vax/builtins.md: Update copyright message.
7651 * config/vax/constraints.md: Likewise.
7652 * config/vax/netbsd-elf.h: Likewise.
7653 * config/vax/predicates.md: Likewise.
7654 * config/vax/vax-protos.h: Likewise.
7655 * config/vax/vax.c: Likewise.
7656 * config/vax/vax.h: Likewise.
7657 * config/vax/vax.md: Likewise.
7658 * config/vax/vax.opt: Likewise.
c4e75102 7659
60839f5d 76602009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 7661
60839f5d 7662 * config/vax/builtins.md (ffssi2, ffssi2_internal,
c4e75102 7663 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
60839f5d
EB
7664 * config/vax/constraints.md (B, R): Likewise.
7665 * config/vax/predicates.md (external_memory_operand,
c4e75102 7666 nonimmediate_addsub_di_operand): Likewise.
60839f5d
EB
7667 * config/vax/vax.c (vax_output_int_add): Likewise.
7668 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
c4e75102
MT
7669 untyped_call): Likewise.
7670
60839f5d 76712009-04-01 Matt Thomas <matt@3am-software.com>
c4e75102 7672
7a715bba
UB
7673 * config/vax/predicates.md: New file.
7674 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
c4e75102
MT
7675 external_const_operand, nonsymbolic_operand, external_memory_operand,
7676 indirect_memory_operand, indexed_memory_operand,
7677 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
7678 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
7679 predicate.
7a715bba
UB
7680 * config/vax/constraints.md: New file.
7681 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
7682 New constraint.
7683 * config/vax/builtins.md: New file.
7684 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
7685 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
7686 jbbccisi): Define.
c4e75102
MT
7687 * config/vax/vax.opt (mqmath): Add option.
7688 * config/vax/vax.md (isfx): Extend with DI.
7689 (VAXintQH, VAXintQHSD): Define.
7690 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
7691 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
7692 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
7693 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
7694 (movdi): Update constraints and use vax_output_int_move().
7695 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
7696 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
7697 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
7698 nonlocal_goto): New.
7699 (mov<mode>): Extend accepted operand types.
7700 (subdi3_old): Rename from subdi3, change update constraints and use
7701 a new implementation.
60839f5d 7702 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
c4e75102
MT
7703 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
7704 MOVE_RATIO, CLEAR_RATIO): Define.
7705 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
7706 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
7707 (PRINT_OPERAND): Redefine using a function instead of inlined code.
60839f5d 7708 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
c4e75102
MT
7709 (split_quadword_operands): Make static and really allow variable
7710 splitting.
7711 (print_operand_address): Update for PIC generation.
7712 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
7713 indexable_address_p, fixup_mathdi_operand,
7714 vax_expand_addsub_di_operands, adjacent_operands_p): New.
7715 (vax_float_literal, legitimate_constant_p,
7716 indirectable_constant_address_p, index_term_p,
7717 reg_plus_index_p): Return bool instead of int.
7718 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
7719 where needed.
7720 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
7721 generation.
7722 (vax_output_conditional_branch): Indent.
7723 (legitimate_constant_address_p, indirectable_constant_address_p,
7724 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
7725 vax_mode_dependent_address_p): Return bool instead of int, update for
7726 PIC generation.
7727 * config/vax/vax-protos.h (legitimate_constant_address_p,
7728 legitimate_constant_p, legitimate_address_p,
7729 vax_mode_dependent_address_p): Change declaration to bool.
7730 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
7731 vax_expand_addsub_di_operands, vax_output_int_subtract,
7732 vax_output_movmemsi): Declare.
7733 (split_quadword_operands, vax_float_literal): Delete declaration.
7734 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
7735 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
7736 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
7737 ASM_OUTPUT_DWARF_PCREL): Define.
7738 (ASM_SPEC): Change definition to allow PIC generation.
7739
9332c6eb
L
77402009-04-01 Steve Ellcey <sje@cup.hp.com>
7741
7742 * doc/sourcebuild.texi: Update front-end requirements.
7743
d93e052c
JJ
77442009-04-01 Jakub Jelinek <jakub@redhat.com>
7745
7746 PR target/39226
7747 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
7748 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
7749 (booldi3_internal3): Use boolean_or_operator instead of
7750 boolean_operator.
7751
6ccb2a4a
JM
77522009-04-01 Joseph Myers <joseph@codesourcery.com>
7753
7754 PR c/39605
7755 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
7756 declarator whose size is not an integer constant expression but
7757 folds to an integer constant, then treat it as a constant
7758 subsequently.
7759
299b87f8
RG
77602009-04-01 Richard Guenther <rguenther@suse.de>
7761
7762 * fold-const.c (fold_plusminus_mult_expr): Do not fold
7763 i * 4 + 2 to (i * 2 + 1) * 2.
7764
b85eb797
JJ
77652009-04-01 Jakub Jelinek <jakub@redhat.com>
7766
7767 PR c/37772
7768 * c-parser.c (c_parser_asm_statement): Skip until close paren and
7769 return if c_parser_asm_string_literal returned NULL.
7770
235e1fe8
NC
77712009-04-01 Nick Clifton <nickc@redhat.com>
7772
7773 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
7774 already defined.
7775 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
7776 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
7777 other typedefs to avoid conflicts with libgcc2.c. Define labels
7778 to gain 16-bit bit-manipulation functions from libgcc2.c and then
7779 include it.
7780 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
7781 to gain 16-bit trapping arithmetic functions from libgcc2.c and
7782 then include it.
7783
d6868399
RAE
77842009-04-01 Rafael Avila de Espindola <espindola@google.com>
7785
7a715bba
UB
7786 * varasm.c (default_function_rodata_section): Declare DOT as
7787 const char*.
d6868399 7788
73d21f56 77892009-04-01 Kai Tietz <kai.tietz@onevision.com>
60839f5d 7790 Andrey Galkin <agalkin@hypercom.com>
73d21f56
KT
7791
7792 PR/39492
7793 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
7794 Make object_name unique for each process.
7795
03742a9b
JJ
77962009-04-01 Jakub Jelinek <jakub@redhat.com>
7797
7798 PR other/39591
7799 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
7800 addressable variables in the parallel that could go out of scope while
7801 running queued tasks.
7802
4223ff5f
AS
78032009-04-01 Anatoly Sokolov <aesok@post.ru>
7804
7805 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
7806 (CASE_VALUES_THRESHOLD): Redefine.
7807 * config/avr/avr.c (avr_override_options): Remove initialization of
7808 avr_case_values_threshold variable.
7809 (avr_case_values_threshold): Remove variable. Add new function.
7810 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
7811 * config/avr/avr.opt (mno-tablejump): Remove option.
7812 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
7813
e893f6f3
DD
78142009-04-01 DJ Delorie <dj@redhat.com>
7815
7816 * varasm.c (default_function_rodata_section): Don't assume
7817 anything about where the first '.' in the section name is.
7818
b246d100
AM
78192009-04-01 Alan Modra <amodra@bigpond.net.au>
7820
7821 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
7822 rs6000_emit_stack_tie.
7823
d3e37a9e
ILT
78242009-03-31 Ian Lance Taylor <iant@google.com>
7825
7826 * tree-eh.c (tree_remove_unreachable_handlers): Compare
7827 gimple_code with GIMPLE_RESX, not RESX.
7828
c1b61fca
JM
78292009-03-31 Joseph Myers <joseph@codesourcery.com>
7830
7831 * c-common.c (c_get_ident): New.
7a715bba 7832 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
c1b61fca 7833
c2d2ad48
BE
78342009-04-01 Ben Elliston <bje@au.ibm.com>
7835
7836 * config/rs6000/sysv4.opt (msdata): Improve option description.
7837
13d1a6e7
SE
78382009-03-31 Steve Ellcey <sje@cup.hp.com>
7839
7840 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
7841 (divdf3_internal_lat): Remove.
7842 (divxf3_internal_lat): Remove.
7843 (divxf3_internal_thr): Remove.
7844 (divxf): Use divxf3_internal.
7845 * config/ia64/div.md (divsf3_internal_lat): New.
7846 (divdf3_internal_lat): New.
7847 (divxf3_internal): New.
7848
207bf79d
JM
78492009-03-31 Joseph Myers <joseph@codesourcery.com>
7850
7851 PR c/448
7852 * Makefile.in (USE_GCC_STDINT): Define.
7853 (stmp-int-hdrs): Install stdint.h if applicable.
7854 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
7855 if known.
7856 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
7857 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
7858 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
7859 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
7860 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
7861 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
7862 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
7863 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
7864 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
7865 (c_common_nodes_and_builtins): Initialize
7866 underlying_wchar_type_node. Do not initialize
7867 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
7868 nodes for new types.
7869 (c_stddef_cpp_builtins): Define macros for new types.
7870 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
7871 Remove.
7872 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
7873 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
7874 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
7875 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
7876 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
7877 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
7878 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
7879 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
7880 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
7881 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
7882 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
7883 int16_type_node, int32_type_node, int64_type_node,
7884 uint8_type_node, uint16_type_node, c_uint32_type_node,
7885 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
7886 int_least32_type_node, int_least64_type_node,
7887 uint_least8_type_node, uint_least16_type_node,
7888 uint_least32_type_node, uint_least64_type_node,
7889 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
7890 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
7891 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
7892 uintptr_type_node): Define.
7893 * c-cppbuiltin.c (builtin_define_constants,
7894 builtin_define_type_minmax): New.
7895 (builtin_define_stdint_macros): Define more macros.
7896 (c_cpp_builtins): Define more limit macros.
7897 (type_suffix): New.
7898 (builtin_define_type_max): Define in terms of
7899 builtin_define_type_minmax. Remove is_long parameter. All
7900 callers changed.
7901 * config.gcc (use_gcc_stdint): Define.
7902 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
7903 Add newlib-stdint.h for generic targets.
7904 * config/glibc-stdint.h, config/newlib-stdint.h,
7905 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
7906 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
7907 * config/score/score.h (UINTPTR_TYPE): Define.
7908 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
7909 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
7910 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
7911 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
7912 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
7913 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
7914 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
7915 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
7916 * config/spu/spu.h (STDINT_LONG32): Define.
7917 * configure.ac (use_gcc_stdint): Substitute.
7918 * configure: Regenerate.
7919 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
7920 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
7921 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
7922 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
7923 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
7924 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
7925 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
7926 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
7927 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
7928 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
7929 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
7930 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
7931 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
7932 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
7933 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
7934 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
7935 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
7936 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
7937 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
7938 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
7939 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
7940 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
7941 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
7942 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
7943 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
7944 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
7945 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
7946 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
7947 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
7948
ed853664
BS
79492009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
7950
7951 * loop-iv.c (suitable_set_for_replacement): Renamed from
7952 simplify_using_assignment; changed to return bool and to accept new
7953 args DEST and SRC. Return true iff we find a source/destination pair
7954 that can be used to make a replacement, and fill SRC and DEST if so.
7955 Remove arg ALTERED. Don't deal with altered regs here. All callers
7956 changed.
7957 (simplify_using_initial_values): Deal with altered regs here and track
7958 more precisely the effect they have on the validity of our expression.
7959
1569e190
BS
7960 * loop-iv.c (simplify_using_condition): A condition of the form
7961 (EQ REG CONST) can be used to simply make a substitution.
7962 (simplify_using_initial_values): Keep track of conditions we have seen
7963 and keep using them to simplify new expressions, while applying the
7964 same substitutions to them as to the expression.
7965
1d1eb80c
BS
7966 * simplify-rtx.c (simplify_relational_operation_1): Simplify
7967 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
7968 GEU/LTU reversed.
7969
28af33b0
BS
7970 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
7971 changed. Use this when trying to improve the upper bound.
7972 Generate the comparison by using simplify_gen_relational.
7973
b30321cd
BS
7974 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
7975
60081874
BS
7976 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
7977 functions.
2ba9daa7 7978 (simplify_using_assignment, simplify_using_initial_values): Call
60081874
BS
7979 replace_in_expr to make replacements. Call replace_single_def_regs
7980 once on the initial version of the expression.
7981
bebc6e07
RR
79822009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7983
fcb82ab0 7984 PR target/27237
bebc6e07 7985 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
2ba9daa7 7986
6b12efe9
RG
79872009-03-31 Richard Guenther <rguenther@suse.de>
7988
7989 PR middle-end/31029
7990 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
7991 equality comparisons. Fold C - X CMP X if C % 2 == 1.
7992
108f6c2f
RG
79932009-03-31 Richard Guenther <rguenther@suse.de>
7994
7995 * tree.h (div_if_zero_remainder): Declare.
7996 * fold-const.c (div_if_zero_remainder): Export.
7997 * tree-ssa-forwprop.c
7998 (forward_propagate_addr_into_variable_array_index): Handle
7999 constant array index addition outside of the variable index.
8000
8f612190
JM
80012009-03-31 Joseph Myers <joseph@codesourcery.com>
8002
8003 PR target/39592
8004 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
8005 define_splits, floatunssi<mode>2): Require x87 conversions from
8006 DImode to be permitted.
8007
47580d22
JM
80082009-03-31 Joseph Myers <joseph@codesourcery.com>
8009
8010 PR preprocessor/15638
8011 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
8012
ba4d8f9d
RG
80132009-03-31 Richard Guenther <rguenther@suse.de>
8014
8015 PR middle-end/23401
8016 PR middle-end/27810
8017 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
8018 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
8019 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
8020 a separate statement.
8021 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
8022 (lookup_tmp_var): Likewise.
8023 (is_gimple_formal_tmp_or_call_rhs): Remove.
8024 (is_gimple_reg_or_call_rhs): Rename to ...
8025 (is_gimple_reg_rhs_or_call): ... this.
8026 (is_gimple_mem_or_call_rhs): Rename to ...
8027 (is_gimple_mem_rhs_or_call): ... this.
8028 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
8029 DECL_GIMPLE_REG_P only if is_formal is true.
8030 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
8031 for non-proper post-modify expression gimplification.
8032 (gimplify_self_mod_expr): For post-modify expressions gimplify
8033 the lvalue to a minimal lvalue.
8034 (rhs_predicate_for): Remove formal temp case.
8035 (gimplify_modify_expr_rhs): Likewise.
8036 (gimplify_addr_expr): Use is_gimple_reg.
8037 (gimplify_expr): Remove formal temp cases.
8038 (gimple_regimplify_operands): Likewise.
8039 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
8040 and FILTER_EXPR like constants.
8041 * gimple.c (walk_gimple_op): Fix val_only initialization, use
8042 is_gimple_reg.
8043 (is_gimple_formal_tmp_rhs): Remove.
8044 (is_gimple_reg_rhs): Remove special casing.
8045 (is_gimple_mem_rhs): Fix.
8046 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
8047 (is_gimple_formal_tmp_var): Remove.
8048 (is_gimple_formal_tmp_reg): Likewise.
8049 (is_gimple_min_lval): Allow invariant component ref parts.
8050 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
8051 is_gimple_formal_tmp_reg): Remove declarations.
8052 * tree-cfg.c (verify_expr): Verify that variables with address
8053 taken do not have DECL_GIMPLE_REG_P set.
8054 * tree-mudflap.c (mf_build_check_statement_for): Use
8055 force_gimple_operand instead of gimplify_expr.
8056
8de9b877
AZ
80572009-03-31 Ayal Zaks <zaks@il.ibm.com>
8058
8059 * modulo-sched.c (sms_schedule_by_order): Pass the actual
8060 schedulable rows to compute_split_row.
8061
b5e3caf2
BE
80622009-03-31 Ben Elliston <bje@au.ibm.com>
8063
8064 PR target/31635
8065 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
8066 OPT_mvrsave.
8067
9752c4ad
AM
80682009-03-31 Alan Modra <amodra@bigpond.net.au>
8069
8070 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
8071 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
8072 * configure: Regenerate.
8073 * config.in: Regenerate.
8074 * config/rs6000/rs6000.opt (mtls-markers): Add.
8075 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
8076 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
8077 (tls_ld_aix, tls_ld_sysv): Likewise.
8078 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
8079 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
8080
b597d1b6
AM
80812009-03-31 Alan Modra <amodra@bigpond.net.au>
8082
8083 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
8084
a203a221
JH
80852009-03-30 Jan Hubicka <jh@suse.cz>
8086
b597d1b6
AM
8087 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
8088 out of RESX.
8089 (tree_remove_unreachable_handlers): Cleanup EH predecestor
8090 detection and label handling.
a203a221 8091
5b0c0b2c
VM
80922009-03-30 Vladimir Makarov <vmakarov@redhat.com>
8093
8094 * ira-int.h (ira_allocno): Rename left_conflicts_num to
8095 left_conflicts_size.
8096 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
8097 ALLOCNO_LEFT_CONFLICTS_SIZE.
8098
8099 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
8100 remove_allocno_from_bucket_and_push,
8101 allocno_spill_priority_compare, push_allocnos_to_stack,
8102 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
8103 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
8104 (setup_allocno_left_conflicts_num): Ditto. Rename to
8105 setup_allocno_left_conflicts_size.
8106 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
8107 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
8108 setup_allocno_left_conflicts_size instead of
8109 setup_allocno_left_conflicts_num.
8110
8111 * ira-build.c (ira_create_allocno): Use
8112 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
8113 ALLOCNO_LEFT_CONFLICTS_NUM.
2ba9daa7 8114
9a48a93f
VM
81152009-03-30 Vladimir Makarov <vmakarov@redhat.com>
8116
8117 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
8118 instead of DF_LR_OUT.
8119
8120 * ira-lives.c (process_bb_node_lives): Ditto.
8121
8122 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
8123 instead of DF_LR_{OUT,IN}.
8124
8125 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
8126
8127 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
8128
4c936d4f
JH
81292009-03-30 Jan Hubicka <jh@suse.cz>
8130
8131 * except.c (label_to_region_map): Fix thinko.
8132
f4d9f129
SE
81332009-03-30 Steve Ellcey <sje@cup.hp.com>
8134
8135 PR middle-end/38237
8136 * tree.h (tree_find_value): New declaration.
8137 * tree.c (tree_find_value): New function.
8138 * varasm.c (assemble_external): Avoid duplicate entries on lists.
8139
b3f27c15
JJ
81402009-03-30 Jakub Jelinek <jakub@redhat.com>
8141
8142 PR debug/39563
8143 * c-decl.c (struct c_binding): Add locus field.
8144 (bind): Add locus argument, set locus field from it.
8145 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
8146 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
8147 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
8148 implicitly_declare, undeclared_variable, lookup_label,
8149 declare_label, c_make_fname_decl, c_builtin_function,
8150 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
8151 bind callers.
8152
ad41bd84 81532009-03-30 H.J. Lu <hongjiu.lu@intel.com>
680e8a00
L
8154
8155 PR target/38781
8156 * config/i386/i386.c (classify_argument): Check total size of
8157 structure.
8158
133f9369
MJ
81592009-03-30 Martin Jambor <mjambor@suse.cz>
8160
8161 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
8162 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
8163 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
8164 respectively.
8165
8166 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
8167 seen_variable_array_ref while also traversing a union.
8168
8169 * tree-inline.c (optimize_inline_calls): Do not call
8170 cgraph_node_remove_callees.
8171 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
8172 (pass_remove_cgraph_callee_edges): New variable.
8173 * passes.c (init_optimization_passes): Add
8174 pass_remove_cgraph_callee_edges after early inlining and before all
8175 late intraprocedural passes.
8176
8177 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
8178
1190f2eb
PB
81792009-03-30 Paolo Bonzini <bonzini@gnu.org>
8180
8181 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
8182 Fix typos in names.
8183
fedc1775
PB
81842009-03-30 Paolo Bonzini <bonzini@gnu.org>
8185
fcb82ab0
UB
8186 * combine.c (simplify_comparison): Use have_insn_for.
8187 * dojump.c (do_jump): Likewise.
fedc1775 8188
65c5ae8b
PB
81892009-03-30 Paolo Bonzini <bonzini@gnu.org>
8190
8191 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
8192 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
8193 sparc_compare_op0 like sparc_compare_emitted used to be handled.
8194 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
8195 instead of sparc_compare_emitted.
8196 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
8197 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
8198 instead of sparc_compare_emitted.
8199
d25aa7ab
PB
82002009-03-30 Paolo Bonzini <bonzini@gnu.org>
8201
8202 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
8203 enter/exit cfglayout mode.
8204 (pass_partition_block): Require it.
8205 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
8206 (combine_instructions): Track basic blocks instead of labels.
8207 (update_cfg_for_uncondjump): New.
8208 (try_combine): Use it. Update jumps after rescanning.
8209 (pass_combine): Require PROP_cfglayout.
8210 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
8211
9c9e26f5
PB
82122009-03-30 Paolo Bonzini <bonzini@gnu.org>
8213
fcb82ab0
UB
8214 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
8215 Provide/destroy PROP_cfglayout respectively.
8216 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
8217 * tree-pass.h (PROP_cfglayout): New.
9c9e26f5 8218
28ddeea1
PB
82192009-03-30 Paolo Bonzini <bonzini@gnu.org>
8220
8221 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
8222 fold_convert_const_fixed_from_fixed,
8223 fold_convert_const_fixed_from_int,
8224 fold_convert_const_fixed_from_real, fold_negate_const): Do not
8225 set TREE_CONSTANT_OVERFLOW.
8226 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
8227 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
8228
ebfd146a
IR
82292009-03-30 Ira Rosen <irar@il.ibm.com>
8230
8231 * tree-vect-loop-manip.c: New file.
8232 * tree-vectorizer.c: Update documentation and included files.
8233 (vect_loop_location): Make extern.
8234 (rename_use_op): Move to tree-vect-loop-manip.c
2ba9daa7
AS
8235 (rename_variables_in_bb, rename_variables_in_loop,
8236 slpeel_update_phis_for_duplicate_loop,
ebfd146a
IR
8237 slpeel_update_phi_nodes_for_guard1,
8238 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
8239 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
8240 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
2ba9daa7 8241 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
ebfd146a
IR
8242 find_loop_location): Likewise.
8243 (new_stmt_vec_info): Move to tree-vect-stmts.c.
8244 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
8245 get_vectype_for_scalar_type, vect_is_simple_use,
8246 supportable_widening_operation, supportable_narrowing_operation):
8247 Likewise.
8248 (bb_in_loop_p): Move to tree-vect-loop.c.
2ba9daa7
AS
8249 (new_loop_vec_info, destroy_loop_vec_info,
8250 reduction_code_for_scalar_code, report_vect_op,
ebfd146a
IR
8251 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
8252 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
8253 (vect_supportable_dr_alignment): Likewise.
8254 * tree-vectorizer.h (tree-data-ref.h): Include.
8255 (vect_loop_location): Declare.
8256 Reorganize function declarations according to the new file structure.
8257 * tree-vect-loop.c: New file.
2ba9daa7 8258 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
ebfd146a
IR
8259 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
8260 * tree-vect-data-refs.c: New file.
8261 * tree-vect-patterns.c (timevar.h): Don't include.
8262 * tree-vect-stmts.c: New file.
2ba9daa7 8263 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
ebfd146a 8264 tree-vect-slp.c, tree-vect-loop.c.
2ba9daa7
AS
8265 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
8266 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
ebfd146a
IR
8267 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
8268 (tree-vect-analyze.o): Remove.
8269 (tree-vect-transform.o): Likewise.
8270 (tree-vect-data-refs.o): Add rule.
2ba9daa7 8271 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
ebfd146a
IR
8272 tree-vect-slp.o): Likewise.
8273 (tree-vect-patterns.o): Remove redundant dependencies.
8274 (tree-vectorizer.o): Likewise.
8275 * tree-vect-slp.c: New file.
8276
40a1cfba
RW
82772009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8278
8279 * optc-gen.awk: Warn if an option flag has multiple different
8280 help strings.
8281
a9a7a9a2
SP
82822009-03-30 Sebastian Pop <sebastian.pop@amd.com>
8283
8284 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
8285 -floop-block): Document dependences on PPL, CLooG and Graphite.
8286
8ce94e44
JM
82872009-03-30 Joseph Myers <joseph@codesourcery.com>
8288
8289 PR rtl-optimization/323
8290 * c-common.c (c_fully_fold, convert_and_check,
8291 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
8292 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
8293 * c-common.def (EXCESS_PRECISION_EXPR): New.
8294 * c-cppbuiltin.c (builtin_define_float_constants): Define
8295 constants with enough digits for long double.
8296 * c-lex.c (interpret_float): Interpret constant with excess
8297 precision where appropriate.
8298 * c-opts.c (c_common_post_options): Set
8299 flag_excess_precision_cmdline. Give an error for
8300 -fexcess-precision=standard for C++ for processors where the
8301 option is significant.
8302 * c-parser.c (c_parser_conditional_expression): Handle excess
8303 precision in condition.
8304 * c-typeck.c (convert_arguments): Handle arguments with excess
8305 precision.
8306 (build_unary_op): Move excess precision outside operation.
8307 (build_conditional_expr): Likewise.
8308 (build_compound_expr): Likewise.
8309 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
8310 (build_modify_expr): Handle excess precision in RHS.
8311 (convert_for_assignment): Handle excess precision in converted
8312 value.
8313 (digest_init, output_init_element, process_init_element): Handle
8314 excess precision in initializer.
8315 (c_finish_return): Handle excess precision in return value.
8316 (build_binary_op): Handle excess precision in operands and add
8317 excess precision as needed for operation.
8318 * common.opt (-fexcess-precision=): New option.
8319 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
8320 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8321 For standard excess precision, output explicit conversion to and
8322 truncation from XFmode.
8323 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
8324 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
8325 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
8326 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
8327 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
8328 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
8329 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
8330 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
8331 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
8332 define_splits, sqrt<mode>2): Disable where appropriate for
8333 standard excess precision.
8334 * convert.c (convert_to_real): Do not shorten arithmetic to type
8335 for which excess precision would be used.
8336 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
8337 * doc/invoke.texi (-fexcess-precision=): Document option.
8338 (-mfpmath=): Correct index entry.
8339 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
8340 flag_excess_precision): New.
8341 * langhooks.c (lhd_post_options): Set
8342 flag_excess_precision_cmdline.
8343 * opts.c (common_handle_option): Handle -fexcess-precision=.
8344 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
8345 init_excess_precision): New.
8346 (lang_dependent_init_target): Call init_excess_precision.
8347 * tree.c (excess_precision_type): New.
8348 * tree.h (excess_precision_type): Declare.
8349
1e57bf47
JM
83502009-03-30 Joseph Myers <joseph@codesourcery.com>
8351
8352 PR c/35235
8353 * c-typeck.c (build_component_ref): Do not copy qualifiers from
8354 non-lvalue to component.
8355
148e4216
JM
83562009-03-29 Joseph Myers <joseph@codesourcery.com>
8357
8358 PR preprocessor/34695
8359 * Makefile.in (c-opts.o): Depend on c-tree.h.
8360 * c-common.c: Move down include of diagnostic.h.
8361 (done_lexing, c_cpp_error): New.
8362 * c-common.h (done_lexing): Declare.
8363 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
8364 (parse_in).
8365 * c-opts.c: Include c-tree.h.
8366 (c_common_init_options): Set preprocessor error callback.
8367 (c_common_handle_option): Do not set preprocessor
8368 inhibit_warnings, warnings_are_errors, warn_system_headers,
8369 pedantic_errors or inhibit_warnings flags.
8370 (c_common_post_options): Do not check cpp_errors (parse_in).
8371 (c_common_finish): Do not output dependencies if there were
8372 errors. Do not check return value of cpp_finish.
8373 * c-ppoutput.c (pp_file_change): Set input_location.
8374 * c-tree.h (c_cpp_error): Declare.
8375 * diagnostic.c (diagnostic_set_info_translated): Also initialize
8376 override_column.
8377 (diagnostic_build_prefix): Check override_column.
8378 * diagnostic.h (diagnostic_info): Add override_column field.
8379 (diagnostic_override_column): Define.
8380
2ec5deb5
PB
83812009-03-28 Paolo Bonzini <bonzini@gnu.org>
8382
ba20e309
UB
8383 * c-common.c (c_expand_expr, c_staticp): Remove.
8384 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
8385 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
8386 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
8387 * c-gimplify.c (gimplify_compound_literal_expr,
8388 optimize_compound_literals_in_ctor): Remove.
8389 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
8390 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
8391 * c-semantics.c (emit_local_var): Remove.
8392
8393 * langhooks-def.h (lhd_expand_expr): Remove.
8394 * langhooks.c (lhd_expand_expr): Remove.
8395 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
8396
8397 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
8398 handling from c-semantics.c; don't call into langhook.
8399 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
8400 * gimplify.c (gimplify_compound_literal_expr,
8401 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
8402 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
8403 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
8404 as was done in c-gimplify.c.
8405 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
8406 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
8407 Move from c-common.h.
8408 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
2ec5deb5
PB
8409
8410 * tree.c (staticp): Do not call langhook.
8411 * langhooks.c (lhd_staticp): Delete.
8412 * langhooks-def.h (lhd_staticp): Delete prototype.
8413 (LANG_HOOKS_STATICP): Delete.
8414 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
8415
ba20e309
UB
8416 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
8417 instead of DECL_STMTs.
2ec5deb5 8418
928c19bb
JM
84192009-03-29 Joseph Myers <joseph@codesourcery.com>
8420
8421 PR c/456
8422 PR c/5675
8423 PR c/19976
8424 PR c/29116
8425 PR c/31871
8426 PR c/35198
8427 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
8428 void_type_node.
8429 (fold_call_expr): Return a NOP_EXPR from folding rather than the
8430 contained expression.
ba20e309 8431 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
928c19bb
JM
8432 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
8433 conditional expressions for C.
8434 (decl_constant_value_for_optimization): Move from
ba20e309 8435 decl_constant_value_for_broken_optimization in c-typeck.c. Check
928c19bb
JM
8436 whether optimizing and that the expression is a VAR_DECL not of
8437 array type instead of doing such checks in the caller. Do not
8438 check pedantic. Call gcc_unreachable for C++.
8439 * c-common.def (C_MAYBE_CONST_EXPR): New.
8440 * c-common.h (c_fully_fold, c_save_expr,
8441 decl_constant_value_for_optimization): New prototypes.
8442 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
8443 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
8444 EXPR_INT_CONST_OPERANDS): Define.
8445 * c-convert.c (convert): Strip nops from expression.
8446 * c-decl.c (groktypename): Take extra parameters expr and
8447 expr_const_operands. Update call to grokdeclarator.
8448 (start_decl): Update call to grokdeclarator. Add statement for
8449 expressions used in type of decl.
8450 (grokparm): Update call to grokdeclarator.
8451 (push_parm_decl): Update call to grokdeclarator.
8452 (build_compound_literal): Add parameter non_const and build a
8453 C_MAYBE_COSNT_EXPR if applicable.
8454 (grokdeclarator): Take extra parameters expr and
8455 expr_const_operands. Track expressions used in declaration
8456 specifiers and declarators. Fold array sizes and track whether
8457 they are constant expressions and whether they are integer
8458 constant expressions.
8459 (parser_xref_tag): Set expr and expr_const_operands fields in
8460 return value.
8461 (grokfield): Update call to grokdeclarator.
8462 (start_function): Update call to grokdeclarator.
8463 (build_null_declspecs): Set expr and expr_const_operands fields in
8464 return value.
8465 (declspecs_add_type): Handle expressions in typeof specifiers.
8466 * c-parser.c (c_parser_declspecs): Set expr and
8467 expr_const_operands fields for declaration specifiers.
8468 (c_parser_enum_specifier): Likewise.
8469 (c_parser_struct_or_union_specifier): Likewise.
8470 (c_parser_typeof_specifier): Likewise. Update call to
8471 groktypename. Fold expression as needed. Return expressions with
8472 type instead of adding statements.
8473 (c_parser_attributes): Update calls to c_parser_expr_list.
8474 (c_parser_statement_after_labels): Fold expression before passing
8475 to objc_build_throw_stmt.
8476 (c_parser_condition): Fold expression.
8477 (c_parser_asm_operands): Fold expression.
8478 (c_parser_conditional_expression): Use c_save_expr. Update call
8479 to build_conditional_expr.
8480 (c_parser_alignof_expression): Update call to groktypename.
8481 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
8482 original_code. Fold expression argument of va_arg. Create
8483 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
8484 argument to va_arg. Update calls to groktypename. Fold array
8485 index for offsetof. Verify that first argument to
8486 __builtin_choose_expr has integer type.
8487 (c_parser_postfix_expression_after_paren_type): Update calls to
8488 groktypename and build_compound_literal. Handle expressions with
8489 side effects in type name.
8490 (c_parser_postfix_expression_after_primary): Update call to
8491 c_parser_expr_list. Set original_code for calls to
8492 __builtin_constant_p.
8493 (c_parser_expr_list): Take extra parameter fold_p. Fold
8494 expressions if requested.
8495 (c_parser_objc_type_name): Update call to groktypename.
8496 (c_parser_objc_synchronized_statement): Fold expression.
8497 (c_parser_objc_receiver): Fold expression.
8498 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
8499 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
8500 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
8501 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
8502 (struct c_typespec): Add elements expr and expr_const_operands.
8503 (struct c_declspecs): Add elements expr and expr_const_operands.
8504 (groktypename, build_conditional_expr, build_compound_literal):
8505 Update prototypes.
8506 (in_late_binary_op): Declare.
8507 * c-typeck.c (note_integer_operands): New function.
8508 (in_late_binary_op): New variable.
8509 (decl_constant_value_for_broken_optimization): Move to c-common.c
8510 and rename to decl_constant_value_for_optimization.
8511 (default_function_array_conversion): Do not strip nops.
8512 (default_conversion): Do not call
8513 decl_constant_value_for_broken_optimization.
8514 (build_array_ref): Do not fold result.
8515 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
8516 result when operand is a VLA.
8517 (c_expr_sizeof_type): Update call to groktypename. Handle
8518 expressions included in type name. Use C_MAYBE_CONST_EXPR for
8519 result when operand names a VLA type.
8520 (build_function_call): Update call to build_compound_literal.
8521 Only fold result for calls to __builtin_* functions. Strip
8522 NOP_EXPR from INTEGER_CST returned from such functions. Fold
8523 the function designator.
8524 (convert_arguments): Fold arguments. Update call to
8525 convert_for_assignment.
8526 (build_unary_op): Handle increment and decrement of
8527 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
8528 decrement earlier. Fold operand of increment and decrement.
8529 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
8530 built for integer operand. Wrap returns that are INTEGER_CSTs
8531 without being integer constant expressions or that have integer
8532 constant operands without being INTEGER_CSTs.
8533 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
8534 (build_conditional_expr): Add operand ifexp_bcp. Track whether
8535 result is an integer constant expression or can be used in
8536 unevaluated parts of one and avoid folding and wrap as
8537 appropriate. Fold operands before possibly doing -Wsign-compare
8538 warnings.
8539 (build_compound_expr): Wrap result for C99 if operands can be used
8540 in integer constant expressions.
8541 (build_c_cast): Update call to digest_init. Do not ignore
8542 overflow from casting floating-point constants to integers. Wrap
8543 results that could be confused with integer constant expressions,
8544 null pointer constants or floating-point constants.
8545 (c_cast_expr): Update call to groktypename. Handle expressions
8546 included in type name.
8547 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
8548 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
8549 Update calls to convert_for_assignment.
8550 (convert_for_assignment): Take new parameter
8551 null_pointer_constant. Do not strip nops or call
8552 decl_constant_value_for_broken_optimization. Set
8553 in_late_binary_op for conversions to boolean.
8554 (store_init_value): Update call to digest_init.
8555 (digest_init): Take new parameter null_pointer_constant. Do not
8556 call decl_constant_value_for_broken_optimization. pedwarn for
8557 initializers not constant expressions. Update calls to
8558 convert_for_assignment.
8559 (constructor_nonconst): New.
8560 (struct constructor_stack): Add nonconst element.
8561 (really_start_incremental_init, push_init_level, pop_init_level):
8562 Handle constructor_nonconst and nonconst element.
8563 (set_init_index): Call constant_expression_warning for array
8564 designators.
8565 (output_init_element): Fold value. Set constructor_nonconst as
8566 applicable. pedwarn for initializers not constant expressions.
8567 Update call to digest_init. Call constant_expression_warning
8568 where constant initializers are required.
8569 (process_init_element): Use c_save_expr.
8570 (c_finish_goto_ptr): Fold expression.
8571 (c_finish_return): Fold return value. Update call to
8572 convert_for_assignment.
8573 (c_start_case): Fold switch expression.
8574 (c_process_expr_stmt): Fold expression.
8575 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
ba20e309 8576 ensure statement expression is not evaluated in constant expression.
928c19bb
JM
8577 (build_binary_op): Track whether results are integer constant
8578 expressions or may occur in such, disable folding and wrap results
8579 as applicable. Fold operands for -Wsign-compare warnings unless
8580 in_late_binary_op.
8581 (c_objc_common_truthvalue_conversion): Handle results folded to
8582 integer constants that are not integer constant expressions.
8583 * doc/extend.texi: Document when typeof operands are evaluated,
8584 that condition of __builtin_choose_expr is an integer constant
8585 expression, and more about use of __builtin_constant_p in
8586 initializers.
8587
5babbcc0
RG
85882009-03-29 Richard Guenther <rguenther@suse.de>
8589
8590 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
8591 propagate addresses of array references.
8592
0340f2ba
SB
85932009-03-29 Steven Bosscher <steven@gcc.gnu.org>
8594
8595 * regmove.c (perhaps_ends_bb_p): Remove.
8596 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
8597 from INSN and check that the main loop stays within that basic block.
8598 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
8599 (regmove_forward_pass): Split out from regmove_optimize. Use
8600 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
8601 (regmove_backward_pass): Split out from regmove_optimize. Use
8602 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
8603 (regmove_optimize): Simplify.
8604
eeae74a1
L
86052009-03-29 H.J. Lu <hongjiu.lu@intel.com>
8606
8607 PR target/39545
8608 * config/i386/i386.c (classify_argument): Ignore flexible array
8609 member in struct and warn ABI change.
8610
a24078b2
L
86112009-03-29 H.J. Lu <hongjiu.lu@intel.com>
8612
8613 * config/i386/i386-protos.h (ix86_agi_dependent): New.
8614
8615 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
8616 (ix86_adjust_cost): Updated.
8617
a8da523f
JH
86182009-03-29 Jan Hubicka <jh@suse.cz>
8619
8620 PR middle-end/28850
8621 * tree-pass.h (pass_cleanup_eh): New function.
8622 (remove_unreachable_regions): Break code handling RTL
8623 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
8624 that can not be reached by runtime.
8625 (can_be_reached_by_runtime): New function.
8626 (label_to_region_map): New function.
8627 (num_eh_regions): New function.
8628 (rtl_remove_unreachable_regions): New function.
8629 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
8630 (remove_eh_region): New function.
8631 * except.h: Include sbitmap and vecprim.
8632 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
8633 num_eh_regions): Declare.
8634 * passes.c (init_optimization_passes): Schedule cleanup_eh.
ba20e309 8635 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
a8da523f
JH
8636 * tree-eh.c (tree_remove_unreachable_handlers): New function.
8637 (tree_empty_eh_handler_p): New function.
8638 (cleanup_empty_eh): New function.
8639 (cleanup_eh): New function.
8640 (pass_cleanup_eh): New function.
8641
98f358e5
JH
86422009-03-29 Jan Hubicka <jh@suse.cz>
8643
8644 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
8645 for removed regions.
8646
13a9fa44
JH
86472009-03-29 Jan Hubicka <jh@suse.cz>
8648
8649 * except.c (dump_eh_tree): Dump all datastructures.
8650
e38cf733
JH
86512009-03-29 Jan Hubicka <jh@suse.cz>
8652
8653 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
8654 (duplicate_eh_regions_1): Likewise.
8655 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
8656 vector; call EH verification.
8657 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
8658 Be ready for region being removed.
8659
12802c2b
JH
86602009-03-29 Jan Hubicka <jh@suse.cz>
8661
8662 * bitmap.c (bitmap_last_set_bit): New function.
8663 * bitmap.h (bitmap_last_set_bit): Declare.
8664
4ea80a41
DA
86652009-03-29 David Ayers <ayers@fsfe.org>
8666
8667 PR objc/27377
8668 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
8669 by calling objc_compare_types and surpress warnings about
8670 incompatible C pointers that are compatible ObjC pointers.
2ba9daa7 8671
4ea80a41 86722009-03-29 Adam Nemet <anemet@caviumnetworks.com>
3dc9eaa6
AN
8673
8674 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
8675 call initialize_inline_failed.
8676 (initialize_inline_failed): Move it from here ...
8677 * cgraph.c (initialize_inline_failed): ... to here.
8678 (cgraph_create_edge): Call initialize_inline_failed rather than
8679 setting inline_failed directly.
8680
7fb0ee07
BE
86812009-03-29 Ben Elliston <bje@au.ibm.com>
8682
8683 PR target/32542
8684 * sysv4.opt (msdata): Improve comment.
8685 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
8686 * sysv4.h (SVR4_ASM_SPEC): Likewise.
8687
0be77bf2
BE
86882009-03-29 Ben Elliston <bje@au.ibm.com>
8689
8690 PR target/30451
8691 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
8692 load and store attributes.
8693
593812b6
BE
86942009-03-29 Ben Elliston <bje@au.ibm.com>
8695
8696 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
8697 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
8698 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
8699 * doc/extend.texi (X86 Built-in Functions): Add index entries for
8700 __builtin_infq and __builtin_huge_valq.
8701
8272d11d
AS
87022009-03-28 Anatoly Sokolov <aesok@post.ru>
8703
8704 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
8705 atmega8m1 devices.
8706 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
8707 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
8708
74fe548b
XDL
87092009-03-28 Xinliang David Li <davidxl@google.com>
8710
2ba9daa7 8711 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
74fe548b
XDL
8712 (do_dbg_cnt): New function.
8713
33977f81
JH
87142009-03-28 Jan Hubicka <jh@suse.cz>
8715
8716 Merge from pretty-ipa:
8717
8718 2009-03-27 Jan Hubicka <jh@suse.cz>
ba20e309 8719
33977f81
JH
8720 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
8721 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
8722 * passes.c (function_called_by_processed_nodes_p): New.
8723 * ipa-pure-const.c (check_call): Fix handling of operands.
8724 (analyze_function): Dump debug output for skipped bodies.
8725 (local_pure_const): Use function_called_by_processed_nodes_p.
8726 * dwarf2out.c (reference_to_unused): Use output.
8727 * passes.c (do_per_function_toporder): Likewise.
8728
8729 2008-11-12 Jan Hubicka <jh@suse.cz>
8730
8731 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
8732 * ipa-pure-const.c (funct_state_d): Add can throw field; make
8733 state_set_in_source enum
8734 (check_decl): Ignore memory tags; do not set fake looping flags;
8735 dump diagnostics.
8736 (check_operand, check_tree, check_rhs_var, check_lhs_var,
8737 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
8738 (check_call, analyze_function): Rewrite.
8739 (check_stmt): New.
8740 (add_new_function): Update call of analyze_function.
8741 (generate_summary): Add call of analyze_function.
8742 (propagate): Propagate can_throw; handle state_set_in_source correctly.
8743 (local_pure_const): New function.
8744 (pass_local_pure_const): New pass.
8745 * ipa-inline.c (inline_transform): Set after_inlining.
8746 * tree-eh.c (stmt_can_throw_external): New.
8747 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
8748 work with aliasing built.
8749 * tree-flow.h (stmt_can_throw_external): New.
8750 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
8751 and local pure/const pass in early and late optimization queue.
ba20e309 8752
617f3897
MJ
87532009-03-28 Martin Jambor <mjambor@suse.cz>
8754
8755 * fold-const.c (get_pointer_modulus_and_residue): New parameter
8756 allow_func_align.
8757 (fold_binary): Allow function decl aligment consideration is the
8758 second argument is integer constant one.
8759 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
8760 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
8761 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
8762
fe89fbc5
JH
87632009-03-28 Jan Hubicka <jh@suse.cz>
8764
8765 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
8766 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
8767 * function.h (rtl_data): Add nothrow flag.
8768 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
8769 set DECL_NOTHROW for AVAILABLE functions.
8770
574872ff
JJ
87712009-03-28 Jakub Jelinek <jakub@redhat.com>
8772
b3bf8855
JJ
8773 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
8774 following vector keyword has expansion starting with pixel or bool
8775 keyword, expand vector to __vector and pixel or bool to __pixel or
8776 __bool.
8777
574872ff
JJ
8778 PR c++/39554
8779 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
8780 warn_if_disallowed_function_p): Removed.
8781 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
8782 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
8783 warning_if_disallowed_function_p.
8784 * flags.h (warn_if_disallowed_function_p,
8785 warn_disallowed_functions): Removed.
8786 * common.opt (Wdisallowed-function-list=): Removed.
8787 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
8788
b005da11
RG
87892009-03-28 Richard Guenther <rguenther@suse.de>
8790
8791 PR tree-optimization/38723
8792 * tree-ssa-pre.c (compute_avail): Add all default definitions to
8793 the entry block.
8794
1de812a6
JH
87952009-03-28 Jan Hubicka <jh@suse.cz>
8796
8797 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
8798 test introduced by my previous patch.
8799
fbb789d4
RG
88002009-03-28 Richard Guenther <rguenther@suse.de>
8801
8802 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
8803 the PHIs value undefined.
8804
6f1873a1
JH
88052009-03-28 Jan Hubicka <jh@suse.cz>
8806
8807 * tree-pass.h (pass_fixup_cfg): New pass.
8808 * ipa-inline.c (inline_transform): Set
8809 always_inline_functions_inlined/after_inlining.
8810 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
8811 (pass_fixup_cfg): New pass.
8812 * passes.c (init_optimization_passes): Add fixup_cfg.
8813
17021bc8
RG
88142009-03-28 Richard Guenther <rguenther@suse.de>
8815
8816 PR tree-optimization/38458
8817 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
8818 argument use the arguments copy-of value.
8819
e8114fba
RG
88202009-03-28 Richard Guenther <rguenther@suse.de>
8821
8822 PR tree-optimization/38180
8823 * tree-ssa-ccp.c (get_default_value): Simplify.
8824 (likely_value): Likewise.
8825 (surely_varying_stmt_p): Properly handle VOP case.
8826 (ccp_initialize): Likewise.
8827 (ccp_fold): Handle propagating through *&.
8828 (fold_const_aggregate_ref): Also handle decls.
8829
257eb6e3
JH
88302009-03-28 Jan Hubicka <jh@suse.cz>
8831
8832 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
8833 * cgraph.h (cgraph_node): Likewise.
8834 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
8835 (cgraph_reset_node): Use process flag.
8836 (cgraph_mark_functions_to_output): Likewise.
8837 (cgraph_expand_function): Likewise.
8838 (cgraph_expand_all_functions): Likewise.
8839 (cgraph_output_in_order): Likewise.
8840 * dwarf2out.c (reference_to_unused): Likewise.
8841 * passes.c do_per_function_toporder): Likewise.
8842
61a05df1
JH
88432009-03-28 Jan Hubicka <jh@suse.cz>
8844
8845 Bring from lto-branch:
ba20e309 8846
61a05df1
JH
8847 2008-09-03 Doug Kwan <dougkwan@google.com>
8848
8849 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
8850 enums instead of reason strings.
8851 * cgraph.c (cgraph_create_edge): Same.
8852 (cgraph_inline_failed_string): New function.
8853 * cgraph.h (cgraph_inline_failed_t): New enum type.
8854 (cgraph_inline_failed_string): New prototype.
8855 (struct cgraph_edge): Change type of INLINED_FAILED from constant
8856 char pointer to cgraph_inline_failed_t.
8857 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
8858 (cgraph_default_inline_p): Ditto.
60839f5d 8859 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
61a05df1
JH
8860 to cgraph_inline_failed_t pointer.
8861 * cif-code.def: New file.
8862 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
8863 reason string.
8864 (cgraph_check_inline_limits): Change type of REASON to pointer to
8865 cgraph_inline_failed_t. Replace reason strings with enums.
8866 (cgraph_default_inline_p): Ditto.
8867 (cgraph_recursive_inlining_p): Ditto.
8868 (update_caller_keys): Change type of FAILED_REASON to
8869 cgraph_inline_failed_t.
8870 (cgraph_set_inline_failed): Change type of REASON to pointer to
8871 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
8872 convert enums to strings for text output.
8873 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
8874 to be of type cgraph_inline_failed_t. Replace reason strings with
8875 enums. Call cgraph_inline_failed_string to covert enums
8876 to strings for text output.
8877 (cgraph_decide_inlining): Replace reason strings with enums.
8878 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
8879 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
8880 for text output.
8881 * tree-inline.c (expand_call_inline): Change type of REASON
8882 to cgraph_inline_failed_t. Replace reason strings with enums.
8883 Call cgraph_inline_failed_string for text output.
8884 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
8885 (cgraph.o): Ditto.
8886
144e8aac
JH
88872009-03-28 Jan Hubicka <jh@suse.cz>
8888
8889 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
8890 cgraph_clone_node): Remove master clone handling.
8891 (cgraph_is_master_clone, cgraph_master_clone): Remove.
8892 * cgraph.h (master_clone): Remove.
8893 (cgraph_is_master_clone, cgraph_master_clone): Remove.
8894 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
8895 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
8896
4a371c8d
JH
88972009-03-28 Jan Hubicka <jh@suse.cz>
8898
8899 * cgraph.c (cgraph_function_body_availability): Functions declared
8900 inline are always safe to assume that it is not going to be replaced.
8901
6cdb0ee3
RG
89022009-03-28 Richard Guenther <rguenther@suse.de>
8903
8904 PR tree-optimization/38513
8905 * tree-ssa-pre.c (eliminate): Remove redundant stores.
8906 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
8907 EXC_PTR_EXPR and FILTER_EXPR.
8908 (get_ref_from_reference_ops): Likewise.
8909
8ca1fd76
RG
89102009-03-28 Richard Guenther <rguenther@suse.de>
8911
8912 PR tree-optimization/38968
8913 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
8914 Use FLOOR_MOD_EXPR to compute misalignment.
8915
a254e44d
RG
89162009-03-28 Richard Guenther <rguenther@suse.de>
8917
8918 PR tree-optimization/37795
8919 * tree.h (combine_comparisons): Declare.
8920 * fold-const.c (combine_comparisons): Export.
8921 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
8922 comparisons.
8923 (ifcombine_iforif): Use combine_comparisons.
8924
a8ee227c
JH
89252009-03-28 Jan Hubicka <jh@suse.cz>
8926
8927 * tree-eh.c (inlinable_call_p): New function.
8928 (make_eh_edges): Use it.
8929 (verify_eh_edges): Use it.
8930 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
8931 * except.c (reachable_next_level): Add inlinable_function argument
8932 (sjlj_find_directly_reachable_regions): Update.
8933 (add_reachable_handler): Do not set saw_any_handlers.
8934 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
8935 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
8936 Add new inlinable call parameter.
8937 (can_throw_internal, can_throw_external): Update.
8938 * except.h (can_throw_internal_1, can_throw_external_1,
8939 foreach_reachable_handler): Update declaration.
8940
52c0e446
JM
89412009-03-28 Joseph Myers <joseph@codesourcery.com>
8942
8943 * config/arm/t-arm-coff, config/h8300/coff.h,
8944 config/i386/i386-aout.h, config/i386/i386-coff.h,
8945 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
8946 config/pdp11/2bsd.h, config/rs6000/aix41.h,
8947 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
8948 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
8949 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
8950 sys-types.h: Remove.
8951 * Makefile.in: Remove protoize and fixproto support and references
8952 in comments.
8953 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
8954 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
8955 Remove.
8956 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
8957 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
8958 unprotoize$(exeext).
8959 (rest.encap): Don't depend on $(STMP_FIXPROTO)
8960 (.PHONY): Don't depend on proto.
8961 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
8962 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
8963 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
8964 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
8965 build/gen-protos.o, build/scan.o, xsys-protos.h,
8966 build/fix-header$(build_exeext), build/fix-header.o,
8967 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
8968 stmp-install-fixproto): Remove.
8969 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
8970 SYSCALLS.c or fixproto files.
8971 (install-common): Don't install protoize.
8972 (install-headers-tar, install-headers-cpio, install-headers-cp):
8973 Don't depend on $(STMP_FIXPROTO).
8974 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
8975 install fixproto files or write out fixproto settings.
8976 (uninstall): Don't uninstall protoize.
8977 * config.gcc (use_fixproto): Remove.
8978 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
8979 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
8980 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
8981 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
8982 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
8983 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
8984 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
8985 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
8986 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
8987 * config/t-vxworks (STMP_FIXPROTO): Remove.
8988 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
8989 STMP_FIXPROTO): Remove.
8990 * config.in, configure: Regenerate.
8991 * crtstuff.c (gid_t, uid_t): Don't undefine.
8992 * doc/install.texi: Change m68k-coff to m68k-elf in example.
8993 (arm-*-coff, arm-*-aout: Remove target entries.
8994 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
8995 Remove mention of AIX 4.1.
8996 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
8997 * doc/invoke.texi (Running Protoize): Remove.
8998 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
8999 (Protoize Caveats): Remove.
9000 * tsystem.h: Update comments on headers assumed to exist.
9001
20a07f44
VM
90022009-03-27 Vladimir Makarov <vmakarov@redhat.com>
9003
9004 * genautomata.c: Add a new year to the copyright. Add a new
9005 reference.
9006 (struct insn_reserv_decl): Add comments for member bypass_list.
9007 (find_bypass): Remove.
9008 (insert_bypass): New.
9009 (process_decls): Use insert_bypass.
9010 (output_internal_insn_latency_func): Output all bypasses with the
9011 same input insn in one switch case.
9012
9013 * rtl.def (define_bypass): Describe bypass choice.
9014 * doc/md.texi (define_bypass): Ditto.
9015
3a0d06c1
RB
90162009-03-27 Richard Guenther <rguenther@suse.de>
9017
9018 * gimplify.c (mark_addressable): Export.
9019 * tree-flow.h (mark_addressable): Declare.
9020 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
9021 * tree-ssa.c (verify_phi_args): Verify that address taken
9022 variables have TREE_ADDRESSABLE set.
9023
90242009-03-27 Richard Guenther <rguenther@suse.de>
9025
9026 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
9027 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
9028 Do not mark decls TREE_ADDRESSABLE.
9029 (build_fold_addr_expr): Adjust.
9030 (fold_addr_expr): Remove.
9031 (fold_unary): Use build_fold_addr_expr.
9032 (fold_comparison): Likewise.
9033 (split_address_to_core_and_offset): Likewise.
9034 * coverage.c (tree_coverage_counter_addr): Mark the array decl
9035 TREE_ADDRESSABLE.
9036 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
9037 (gimplify_modify_expr_to_memcpy): Mark source and destination
9038 addressable.
9039 * omp-low.c (create_omp_child_function): Mark the object decl
9040 TREE_ADDRESSABLE.
9041 (lower_rec_input_clauses): Mark the var we take the address of
9042 TREE_ADDRESSABLE.
9043 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
9044
2ac26e15
L
90452009-03-27 H.J. Lu <hongjiu.lu@intel.com>
9046
9047 PR middle-end/39315
9048 * cfgexpand.c (expand_one_stack_var_at): Change alignment
9049 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
9050
472c7fbd
RG
90512009-03-27 Richard Guenther <rguenther@suse.de>
9052
9053 PR tree-optimization/39120
9054 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
9055 constraints.
9056 (handle_lhs_call): Process return constraints. Add escape
9057 constraints if necessary.
9058 (handle_const_call): Fill out return constraints. Make nested
9059 case more precise. Avoid consttmp if possible.
9060 (handle_pure_call): Fill out return constraints. Avoid
9061 callused if possible.
9062 (find_func_aliases): Simplify call handling.
9063
90642009-03-27 Richard Guenther <rguenther@suse.de>
9065
9066 PR tree-optimization/39120
9067 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
9068 as a representative.
9069 (solve_graph): Do propagate CALLUSED.
9070 (handle_pure_call): Use a scalar constraint from CALLUSED for
9071 the return value.
9072 (find_what_p_points_to): CALLUSED shall not appear in poins-to
9073 solutions.
9074
d9223014
L
90752009-03-27 H.J. Lu <hongjiu.lu@intel.com>
9076
9077 PR c/39323
9078 * c-common.c (handle_aligned_attribute): Properly check alignment
9079 overflow. Use (1U << i) instead of (1 << i).
9080
ba20e309 9081 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
d9223014
L
9082
9083 * expr.h (get_mem_align_offset): Updated.
9084
9085 * tree.h (tree_decl_common): Change align to "unsigned int" and
9086 move it before pointer_alias_set.
9087
689b689c
L
90882009-03-27 H.J. Lu <hongjiu.lu@intel.com>
9089 Jakub Jelinek <jakub@redhat.com>
9090
9091 PR target/38034
9092 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
9093 gr_register_operand with gr_reg_or_0_operand.
9094 (cmpxchg_rel_di): Likewise.
9095 (sync_lock_test_and_set<mode>): Likewise.
9096
c619e982
L
90972009-03-27 H.J. Lu <hongjiu.lu@intel.com>
9098
9099 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
9100 (true_regnum): Likewise.
9101
9102 * rtlanal.c (subreg_info): Moved to ...
9103 * rtl.h (subreg_info): Here. New.
9104 (subreg_get_info): New.
9105
9106 * rtlanal.c (subreg_get_info): Make it extern.
9107
51212b32
L
91082009-03-27 H.J. Lu <hongjiu.lu@intel.com>
9109
9110 PR target/39472
9111 * config/i386/i386.c (ix86_abi): New.
9112 (override_options): Handle -mabi=.
ba20e309 9113 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
51212b32
L
9114 (ix86_call_abi_override): Likewise.
9115 (init_cumulative_args): Likewise.
9116 (function_arg_advance): Likewise.
9117 (function_arg_64): Likewise.
9118 (function_arg): Likewise.
9119 (ix86_pass_by_reference): Likewise.
9120 (ix86_function_value_regno_p): Likewise.
9121 (ix86_build_builtin_va_list_abi): Likewise.
9122 (setup_incoming_varargs_64): Likewise.
9123 (is_va_list_char_pointer): Likewise.
9124 (ix86_init_machine_status): Likewise.
ba20e309 9125 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
51212b32
L
9126 (ix86_function_type_abi): Return enum calling_abi. Rewrite
9127 for 64bit. Replace DEFAULT_ABI with ix86_abi.
ba20e309 9128 (ix86_function_abi): Make it static and return enum calling_abi.
51212b32
L
9129 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
9130 with ix86_abi.
9131 (ix86_fn_abi_va_list): Updated.
9132
9133 * config/i386/i386.h (ix86_abi): New.
9134 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
9135 (CONDITIONAL_REGISTER_USAGE): Likewise.
9136 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
9137 (machine_function): Likewise.
9138
9139 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
9140 with ix86_abi.
9141 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
9142 (STACK_BOUNDARY): Likewise.
9143 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
9144
9145 * config/i386/i386.opt (mabi=): New.
9146
9147 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
9148 return enum calling_abi.
9149 (ix86_function_type_abi): Likewise.
9150 (ix86_function_abi): Removed.
9151
9152 * doc/invoke.texi: Document -mabi= option for x86.
9153
7338ea63
KG
91542009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9155
9156 * builtins.c (real_dconstp): Delete.
9157 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
9158
68599f33
DS
91592009-03-27 Dodji Seketeli <dodji@redhat.com>
9160 Jakub Jelinek <jakub@redhat.com>
9161
9162 PR debug/37959
9163 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
9164 (gen_subprogram_die): When a function is explicit, generate the
9165 DW_AT_explicit attribute.
9166 * langhooks.h (struct lang_hooks_for_decls): Add
9167 function_decl_explicit_p langhook.
9168 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
9169 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
9170
9f5e9983
JJ
91712009-03-27 Jakub Jelinek <jakub@redhat.com>
9172
64d7685c
JJ
9173 * builtins.c (fold_builtin_memory_op): Optimize memmove
9174 into memcpy if we can prove source and destination don't overlap.
9175
9f5e9983
JJ
9176 * tree-inline.c: Include gt-tree-inline.h.
9177 (clone_fn_id_num): New variable.
9178 (clone_function_name): New function.
9179 (tree_function_versioning): Use it.
9180 * Makefile.in (GTFILES): Add tree-inline.c.
9181
e54d52a8
MM
91822009-03-27 Mark Mitchell <mark@codesourcery.com>
9183
9184 * BASE-VER: Change to 4.5.0.
9185
e9d51dc6
XDL
91862009-03-27 Xinliang David Li <davidxl@google.com>
9187
9188 PR tree-optimization/39557
9189 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
9190
4577cea1
XDL
91912009-03-27 Xinliang David Li <davidxl@google.com>
9192
9193 PR tree-optimization/39548
2ba9daa7 9194 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
4577cea1
XDL
9195 candidate check.
9196
0f7464f4
L
91972009-03-27 H.J. Lu <hongjiu.lu@intel.com>
9198
9199 * c-common.c (pointer_int_sum): Use %wd on return from
9200 tree_low_cst.
9201
a8847a7f
L
92022009-03-27 H.J. Lu <hongjiu.lu@intel.com>
9203
9204 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
9205 on return from tree_low_cst.
9206
b0957daf
AP
92072009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
9208
9209 PR c++/36799
ba20e309
UB
9210 * ginclude/stdarg.h (va_copy): Define also for
9211 __GXX_EXPERIMENTAL_CXX0X__.
b0957daf 9212
a5f805df
MLI
92132009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9214
9215 PR c++/35652
9216 * builtins.h (c_strlen): Do not warn here.
9217 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
9218 * c-common.c (pointer_int_sum): Take an explicit location.
9219 Warn about offsets out of bounds.
9220 * c-common.h (pointer_int_sum): Adjust declaration.
9221
6f401211
RW
92222009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9223
a5f805df
MLI
9224 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
9225 markup glitch.
6f401211 9226
5a59b39e
JJ
92272009-03-26 Jakub Jelinek <jakub@redhat.com>
9228
9229 PR c++/39554
9230 * opts.c (warn_if_disallowed_function_p): Don't assume
9231 get_callee_fndecl must return non-NULL.
9232
d5f89b53
VM
92332009-03-26 Vladimir Makarov <vmakarov@redhat.com>
9234
9235 PR rtl-optimization/39522
9236 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
9237 when reg_reloaded_valid is set.
9238
61238a79
UW
92392009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9240
9241 * config/spu/divv2df3.c: New file.
9242 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
9243 (DPBIT_FUNCS): Filter out _div_df.
9244
03f8829b
BS
92452009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
9246
9247 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
9248 a jump insn, count that jump in the distance to the loop start.
9249
9fdcdc74
KK
92502009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
9251
9252 PR target/39523
9253 * config/sh/sh.c (calc_live_regs): Fix condition for global
9254 registers except PIC_OFFSET_TABLE_REGNUM.
9255
46994828
KT
92562009-03-25 Kai Tietz <kai.tietz@onevision.com>
9257
9258 PR/39518
9259 * doc/invoke.texi (-mconsole): New.
9260 (-mcygwin): New.
9261 (-mno-cygwin): New.
9262 (-mdll): New.
9263 (-mnop-fun-dllimport): New.
9264 (-mthread): New.
9265 (-mwin32): New.
9266 (-mwindows): New.
9267 (sub section "i386 and x86-64 Windows Options"): New.
9268
60839f5d 92692009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
370017b4
RC
9270
9271 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
9272 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
9273
ae560440
RG
92742009-03-25 Richard Guenther <rguenther@suse.de>
9275
9276 PR middle-end/39497
9277 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
9278 of -Wno-error.
9279
cd510f15
AM
92802009-03-25 Andrey Belevantsev <abel@ispras.ru>
9281
9282 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
9283 neither of haifa/selective schedulers are working.
9284
44ab0f0e
RW
92852009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9286
9287 * doc/invoke.texi (Debugging Options): Fix description of
9288 -fno-merge-debug-strings.
9289
ad9646c7
HPN
92902009-03-24 Hans-Peter Nilsson <hp@axis.com>
9291
e6142656
HPN
9292 * config/cris/libgcc.ver: New version-script.
9293 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
9294
ad9646c7
HPN
9295 * configure.ac <GAS features, nop mnemonic>: Add pattern
9296 crisv32-*-* for "nop".
ba20e309 9297 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
ad9646c7
HPN
9298 * configure: Regenerate.
9299
09ac4473
IR
93002009-03-24 Ira Rosen <irar@il.ibm.com>
9301
9302 PR tree-optimization/39529
9303 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
9304 mark_sym_for_renaming for the tag copied to the new vector
9305 pointer.
9306
d94a427e
AL
93072009-03-24 Arthur Loiret <aloiret@debian.org>
9308
ba20e309 9309 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
d94a427e
AL
9310 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
9311 EXTRA_SPEC_FUNCTIONS.
9312 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
9313 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
9314 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
9315 -march and -mtune options.
9316
60839f5d 93172009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
722d07aa
RC
9318
9319 * config/m68k/t-rtems: Add m5329 multilib.
9320
603f5959
DS
93212009-03-24 Dodji Seketeli <dodji@redhat.com>
9322 Jakub Jelinek <jakub@redhat.com>
9323
9324 PR debug/39524
9325 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
9326 nodes.
9327
c5cdb03f
JJ
93282009-03-23 Jakub Jelinek <jakub@redhat.com>
9329
9330 PR c/39495
9331 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
9332 instead of c_parser_expression_conv, if original_code isn't one of the
9333 4 allowed comparison codes, fail.
9334
3691626c
RG
93352009-03-23 Richard Guenther <rguenther@suse.de>
9336
9337 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
9338 * tree.h (struct tree_type): Likewise.
9339 * reload.h (struct insn_chain): Likewise.
9340 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
9341 * function.h (struct function): Likewise.
9342 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
9343
88ccb72a
JJ
93442009-03-23 Jakub Jelinek <jakub@redhat.com>
9345
9346 PR tree-optimization/39516
9347 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
9348
60839f5d 93492009-03-23 Bingfeng Mei <bmei@broadcom.com>
a583a67e 9350
2ba9daa7 9351 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
a583a67e
BM
9352 should be set true if BITS_PER_WORD of target is bigger than 32
9353
f82162f8
HPN
93542009-03-22 Hans-Peter Nilsson <hp@axis.com>
9355
9356 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
9357 Translate -B-options to -rpath-link. Correct existing
9358 rpath-link and conditionalize on !nostdlib.
9359
048fd785
RW
93602009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9361
9362 * doc/extend.texi (Function Attributes, Variable Attributes):
9363 Fix typos.
9364 * doc/invoke.texi (Debugging Options, Optimize Options)
9365 (i386 and x86-64 Options, MCore Options): Likewise.
9366
6e75c1a9
JJ
93672009-03-20 Jakub Jelinek <jakub@redhat.com>
9368
9369 PR debug/37890
9370 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
9371 it for block local namespace aliases.
9372 (gen_decl_die): Pass context_die to gen_namespace_die.
9373
ea1199ee
JJ
93742009-03-19 Jakub Jelinek <jakub@redhat.com>
9375
9376 PR c/39495
9377 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
9378 minimum or maximum value.
9379
58929c10
AO
93802009-03-19 Alexandre Oliva <aoliva@redhat.com>
9381
9382 * reginfo.c (globalize_reg): Recompute derived reg sets.
9383
60839f5d 93842009-03-19 Ozkan Sezer <sezeroz@gmail.com>
234952b3
OS
9385
9386 PR target/39063
9387 * libgcc2.c (mprotect): Do not use signed arguments for
9388 VirtualProtect, use DWORD arguments. Also fix the 'may
9389 be used uninitialized' warning for the np variable.
9390
f57c2f04
JJ
93912009-03-19 Jakub Jelinek <jakub@redhat.com>
9392
9393 PR target/39496
9394 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
9395 functions using regparm calling conventions when not optimizing.
9396 (ix86_function_sseregparm): Similarly for sseregparm calling
9397 conventions.
9398
9e517d61
LF
93992009-03-19 Li Feng <nemokingdom@gmail.com>
9400
9401 PR middle-end/39500
9402 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
9403 dependence if the first conflict is after niter iterations.
9404
8ef20026
HPN
94052009-03-19 Hans-Peter Nilsson <hp@axis.com>
9406
9407 PR middle-end/38609
9408 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
9409 functions with dynamic stack-pointer adjustments.
9410
64e4a1a6
BE
94112009-03-19 Ben Elliston <bje@au.ibm.com>
9412
9413 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
9414 option; change to -msdata=data.
9415
9a0f3e86
RW
94162009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9417
9418 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
9419 and -fopenmp.
9420
09bc5979
EB
94212009-03-18 Eric Botcazou <ebotcazou@adacore.com>
9422
9423 PR target/35180
9424 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
9425
332459cd
SL
94262009-03-18 Sandra Loosemore <sandra@codesourcery.com>
9427
9428 * doc/invoke.texi (Code Gen Options): Expand discussion of
9429 -fno-common.
9430
8f5929e1
JJ
94312009-03-18 Jakub Jelinek <jakub@redhat.com>
9432
9433 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
9434 * matrix-reorg.c (struct matrix_info): Likewise.
9435 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
9436 * rtl.h (struct mem_attrs): Likewise.
9437 * df.h (struct df): Likewise.
9438 * tree-data-ref.h (struct data_dependence_relation): Likewise.
9439 * ira-int.h (struct ira_allocno): Likewise.
9440 * df-scan.c (struct df_collection_rec): Likewise.
9441 * ira.c (struct equivalence): Likewise.
9442 * function.c (struct temp_slot): Likewise.
9443 * cfgloop.h (struct loop): Likewise.
9444
d130d647
JJ
9445 PR debug/39485
9446 * function.c (use_register_for_decl): When not optimizing, disregard
9447 register keyword for variables with types containing methods.
9448
9968d233
SP
94492009-03-18 Sebastian Pop <sebastian.pop@amd.com>
9450
9451 PR middle-end/39447
9452 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
9453 (is_simple_operand): Call contains_component_ref_p before calling data
9454 reference analysis that would fail on COMPONENT_REFs.
9455
9456 * tree-vrp.c (search_for_addr_array): Fix formatting.
9457
69484bfd
RG
94582009-03-18 Richard Guenther <rguenther@suse.de>
9459
9460 * tree-vect-transform.c (vect_loop_versioning): Fold the
9461 generated comparisons.
9462 * tree-vectorizer.c (set_prologue_iterations): Likewise.
9463 (slpeel_tree_peel_loop_to_edge): Likewise.
9464
66811228
RW
94652009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9466
0631b69f
RW
9467 PR middle-end/37805
9468 * opts.c (print_specific_help): In addition to `undocumented',
9469 accept `separate' and `joined' flags if passed alone. Describe
9470 output by the first matched one of those.
9471 (common_handle_option): Skip over empty strings.
9472 * gcc.c (display_help): Fix help string for `--help='.
9473 * doc/invoke.texi (Option Summary, Overall Options): With
9474 `--help=', classes and qualifiers can both be repeated, but
9475 only the latter can be negated. One should not pass only
9476 negated qualifiers. Fix markup and examples.
9477
66811228
RW
9478 Revert
9479 2008-10-14 Jakub Jelinek <jakub@redhat.com>
9480 PR middle-end/37805
9481 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
9482 and -fhelp=separate.
9483
3c072c6b
JY
94842009-03-17 Jing Yu <jingyu@google.com>
9485
9486 PR middle-end/39378
80c65208
JY
9487 * function.h (struct rtl_data): Move is_thunk from here...
9488 (struct function): ...to here.
9489 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
3c072c6b
JY
9490 * varasm.c (assemble_start_function): Change is_thunk from crtl to
9491 cfun.
80c65208
JY
9492 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
9493 cfun.
9494 (alpha_does_function_need_gp, alpha_start_function): Likewise.
9495 (alpha_output_function_end_prologue): Likewise.
9496 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
9497 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
9498 (rs6000_output_function_epilogue): Likewise.
9499 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
3c072c6b 9500
9ade279b
UB
95012009-03-17 Uros Bizjak <ubizjak@gmail.com>
9502
9503 PR target/39482
9504 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
9505 from different units in a single alternative.
9506 (*truncdfsf_i387): Ditto.
9507 (*truncxfsf2_mixed): Ditto.
9508 (*truncxfdf2_mixed): Ditto.
9509
16e60c17
JJ
95102009-03-17 Jakub Jelinek <jakub@redhat.com>
9511
98381eb4
JJ
9512 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
9513 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
9514
df5deb18
JJ
9515 PR debug/39474
9516 * tree-ssa-live.c (remove_unused_locals): Don't remove local
9517 unused non-artificial variables when not optimizing.
9518
a3f596ba
JJ
9519 PR debug/39471
9520 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
9521 DW_TAG_imported_module even if decl is IMPORTED_DECL with
9522 NAMESPACE_DECL in its DECL_INITIAL.
9523
6b2b8871
JJ
9524 PR middle-end/39443
9525 * optabs.c (set_user_assembler_libfunc): New function.
9526 * expr.h (set_user_assembler_libfunc): New prototype.
9527 * c-common.c: Include libfuncs.h.
9528 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
9529 for memcmp, memset, memcpy, memmove and abort.
9530 * Makefile.in (c-common.o): Depend on libfuncs.h.
9531
16e60c17
JJ
9532 PR debug/39412
9533 * dwarf2out.c (gen_inlined_enumeration_type_die,
9534 gen_inlined_structure_type_die, gen_inlined_union_type_die,
9535 gen_tagged_type_instantiation_die): Removed.
9536 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
9537 do nothing.
9538
4d936aca
JJ
95392009-03-17 Janis Johnson <janis187@us.ibm.com>
9540
9541 PR testsuite/38526
9542 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
9543 its use.
9544 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
9545 (check-parallel-%): Ditto.
9546 (check-consistency): Ditto.
9547
4e9b2e50
KT
95482009-03-17 Kai Tietz <kai.tietz@onevision.com>
9549
9550 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
9551 local variable rhs by NULL_TREE.
9552
21440b2d
L
95532009-03-17 H.J. Lu <hongjiu.lu@intel.com>
9554
9555 PR target/39477
9ade279b 9556 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
21440b2d 9557
d8905c6a
L
95582009-03-17 H.J. Lu <hongjiu.lu@intel.com>
9559
9560 PR target/39476
9ade279b 9561 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
d8905c6a
L
9562
95632009-03-17 H.J. Lu <hongjiu.lu@intel.com>
435a61d3
L
9564
9565 PR target/39473
9566 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
9567 for ms->sysv ABI calls only in 64bit mode.
9568
9569 * config/i386/i386.md (untyped_call): Support 32bit.
9570
cdcabece
L
95712009-03-16 H.J. Lu <hongjiu.lu@intel.com>
9572
9573 * doc/extend.texi: Replace x86_65 with x86_64.
9574
97b4ba9f
JJ
95752009-03-16 Jakub Jelinek <jakub@redhat.com>
9576
9577 PR tree-optimization/39455
9578 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
9579 mismatches for POINTER_TYPE_P (type).
9580 (number_of_iterations_le): Likewise.
9581
60839f5d 95822009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
83c191e1
HS
9583
9584 * config/picochip/picochip.c: Removed profiling support.
9585 * config/picochip/picochip.md: Removed profiling instruction.
9586 * config/picochip/picochip.h: Removed profiling builtin.
9587
f38095f3
JM
95882009-03-16 Joseph Myers <joseph@codesourcery.com>
9589
9590 * doc/install.texi (--with-host-libstdcxx): Document.
9591
2cb4817b
AS
95922009-03-14 Anatoly Sokolov <aesok@post.ru>
9593
9594 PR target/34299
9595 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
9596 generate a warning if the function name does not begin with
9597 "__vector" and the function has either the 'signal' or 'interrupt'
9598 attribute, from here to ...
9599 (avr_declare_function_name): ...here. New function.
9600 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
9601 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
9602
39b2ac74
JJ
96032009-03-14 Jakub Jelinek <jakub@redhat.com>
9604
9605 PR bootstrap/39454
9606 * cse.c (fold_rtx): Don't modify original const_arg1 when
9607 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
9608 separate variable instead.
9609 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
9610 from out of range shift counts.
9611 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
9612
ad41bd84 96132009-03-13 Catherine Moore <clm@codesourcery.com>
f7a82dee 9614
60839f5d 9615 * config/i386/x-mingw32 (host-mingw32.o): Replace
f7a82dee
CM
9616 diagnostic.h with $(DIAGNOSTIC_H).
9617
ad41bd84 96182009-03-12 Jakub Jelinek <jakub@redhat.com>
03a18198
JJ
9619
9620 PR target/39431
9621 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
9622 predicate.
9623 * config/i386/sync.md (sync_compare_and_swap<mode>,
9624 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
9625 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
9626 into a register.
9627 (sync_double_compare_and_swapdi_pic,
9628 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
9629 cmpxchg8b_pic_memory_operand instead of just memory_operand.
9630
122c59c7
L
96312009-03-12 H.J. Lu <hongjiu.lu@intel.com>
9632
9633 PR target/39445
9ade279b 9634 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
122c59c7 9635
cec8874f
L
96362009-03-12 H.J. Lu <hongjiu.lu@intel.com>
9637
9638 PR target/39327
9639 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
9640 (avx_addsubv4df3): Likewise.
9641 (*avx_addsubv4sf3): Likewise.
9642 (sse3_addsubv4sf3): Likewise.
9643
bbb52802
L
96442009-03-12 H.J. Lu <hongjiu.lu@intel.com>
9645
9646 PR target/38824
9ade279b 9647 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
bbb52802 9648
a812fb07
VM
96492009-03-12 Vladimir Makarov <vmakarov@redhat.com>
9650
9651 PR debug/39432
9652 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
9653 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
9654 registers for allocnos created from user-defined variables.
9655
4caab5ba
UW
96562009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9657
9658 PR target/39181
9659 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
9660 of non-integer mode as well.
9661
498e51ca
AN
96622009-03-11 Adam Nemet <anemet@caviumnetworks.com>
9663
9664 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
9665 for functions for which the parameter types are unknown.
9666
9bfaf89d
JJ
96672009-03-11 Jakub Jelinek <jakub@redhat.com>
9668
9669 PR target/39137
9ade279b 9670 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
9bfaf89d
JJ
9671 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
9672 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
9673 * config/i386/i386.c (ix86_local_alignment): For
9674 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
9675 long long variables on the stack to avoid dynamic realignment.
9676 Allow the first argument to be a decl rather than type.
9677 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
9678
18a3bdcb
NC
96792009-03-11 Nick Clifton <nickc@redhat.com>
9680
9681 PR target/5362
40190a76
NC
9682 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
9683 options.
9684 Add description to mno-lsim option.
9685 * config/mcore/mcore.h: Remove comment about deprecated m4align
9686 option.
9687 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
9688 * doc/invoke.texi: Add description of mno-lsim and
9689 mstack-increment options.
9690
18a3bdcb
NC
9691 * config/fr30/fr30.opt: Document the -mno-lsim option.
9692 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
9693 and -mno-lsim options.
9694
dc215785
UW
96952009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9696
9697 * fold-const.c (fold_comparison): Only call fold_inf_compare
9698 if the mode supports infinities.
9699
7716876b
JM
97002009-03-11 Jason Merrill <jason@redhat.com>
9701
9702 PR debug/39086
9703 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
9704 end already did. Notice GIMPLE_CALL modifications of the result.
9705 Don't copy debug information from an ignored decl or a decl from
9706 another function.
9707
ddef83d2
RG
97082009-03-10 Richard Guenther <rguenther@suse.de>
9709 Nathan Froyd <froydnj@codesourcery.com>
9710
9711 PR middle-end/37850
9ade279b 9712 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
ddef83d2
RG
9713 (__divMODE3): Likewise.
9714
9a9ba8d9
JJ
97152009-03-09 Jakub Jelinek <jakub@redhat.com>
9716
9717 PR tree-optimization/39394
9718 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
9719 DECL_SIZE_UNIT of variable length FIELD_DECLs.
9720
929b7fc3
AK
97212009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9722
9723 * recog.c (verfiy_changes): Disallow renaming of hard regs in
9724 inline asms for register asm ("") declarations.
9725
1803581d
EB
97262009-03-09 Eric Botcazou <ebotcazou@adacore.com>
9727
9728 * fold-const.c (fold_unary): Fix comment.
9729
8454d27e
JH
97302009-03-07 Jan Hubicka <jh@suse.cz>
9731
9732 PR target/39361
969a5433
JJ
9733 * tree-inline.c (setup_one_parameter): Do replacement of const
9734 argument by constant in SSA form.
8454d27e 9735
3a695389
UW
97362009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9737
9738 PR middle-end/38028
9739 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
9740 determine alignment passed to assign_stack_local.
9741 (assign_parms_unsplit_complex): Likewise.
9742 * except.c (sjlj_build_landing_pads): Likewise.
9743
9f0e7885
JJ
97442009-03-06 Jakub Jelinek <jakub@redhat.com>
9745
65401a0b
JJ
9746 PR middle-end/39360
9747 * tree-flow.h (add_referenced_var): Return bool instead of void.
9748 * tree-dfa.c (add_referenced_var): Return result of
9749 referenced_var_check_and_insert call.
9750 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
9751 of referenced_var_check_and_insert.
9752
9f0e7885 9753 PR debug/39372
9ade279b 9754 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
9f0e7885
JJ
9755 (gen_variable_die): Emit DW_AT_location on abstract static variable's
9756 DIE, don't emit it if abstract origin already has it.
9757 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
9758 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
9759
3b664bd1
JBG
97602009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9761
ba20e309 9762 * genpreds.c (needs_variable): Fix parentheses at variable name
3b664bd1
JBG
9763 detection.
9764 (write_tm_constrs_h): Indent generated code.
9765
d8f8ca80
RR
97662009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9767
9768 * doc/extend.texi (Function Attributes): Add documentation
9769 for isr attributes.
9770
6c3d550c
JJ
97712009-03-06 Jakub Jelinek <jakub@redhat.com>
9772
9773 PR debug/39387
9774 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
9775 take locus from its DECL_SOURCE_LOCATION instead of input_location.
9776
f9e96751
BS
97772009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
9778
9779 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
9780 the loop as bad.
9781
ee0ee7e2
JJ
97822009-03-05 Jakub Jelinek <jakub@redhat.com>
9783
9784 PR debug/39379
9785 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
9786 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
9787
6c6094f1
UB
97882009-03-05 Uros Bizjak <ubizjak@gmail.com>
9789
9790 * config/i386/i386.md (R8_REG, R9_REG): New constants.
9791 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
9792 constants instead of magic numbers.
9793 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
9794 (QI_REG_P): Ditto.
9795 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
9796 (x86_64_ms_abi_int_parameter_registers): Ditto.
9797 (x86_64_int_return_registers): Ditto.
09f8a8d3 9798 (ix86_maybe_switch_abi): Ditto.
6c6094f1
UB
9799 (ix86_expand_call): Ditto for clobbered_registers array.
9800 (ix86_hard_regno_mode_ok): Ditto.
9801 (x86_extended_QIreg_mentioned_p): Ditto.
9802
b267bd41
R
98032009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
9804
6c6094f1 9805 PR tree-optimization/39349
1f3ad3f0
R
9806 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
9807
b267bd41
R
9808 * combine.c (gen_lowpart_for_combine): Use omode when generating
9809 clobber.
9810
1242bc9d
R
98112009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
9812
6c6094f1 9813 PR rtl-optimization/39235
1242bc9d
R
9814 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
9815
48f03606
ZD
98162009-03-04 Zdenek Dvorak <ook@ucw.cz>
9817
9818 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
9819
b505e785
RG
98202009-03-04 Richard Guenther <rguenther@suse.de>
9821
9822 PR tree-optimization/39362
9823 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
9824 that occur in abnormal PHIs should be varying.
9825
f017bf5e
ZD
98262009-03-04 Zdenek Dvorak <ook@ucw.cz>
9827
9828 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
9829 Extend comments.
9830 (simple_iv): Take loop as an argument instead of statement.
9831 * tree-scalar-evolution.h (simple_iv): Declaration changed.
9832 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
9833 to simple_iv.
9834 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
9835 Ditto.
9836 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
9837 * matrix-reorg.c (analyze_transpose): Ditto.
9838 * tree-data-ref.c (dr_analyze_innermost): Ditto.
9839 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
9840 * tree-predcom.c (ref_at_iteration): Ditto.
9841 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
9842
6a66f28e
RG
98432009-03-04 Richard Guenther <rguenther@suse.de>
9844
9845 PR tree-optimization/39358
9846 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
9847 escaped_id and callused_id.
9848 (solve_graph): Likewise.
9849
57e454ee
RG
98502009-03-04 Richard Guenther <rguenther@suse.de>
9851
9852 PR tree-optimization/39339
9853 * tree-sra.c (try_instantiate_multiple_fields): Make it
9854 no longer ICE on the above.
9855
a6fe9ed4
JM
98562009-03-03 Joseph Myers <joseph@codesourcery.com>
9857
9858 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
9859 that fits within Pmode.
9860
dc672951
SE
98612009-03-03 Steve Ellcey <sje@cup.hp.com>
9862
9863 PR middle-end/10109
9864 * tm.texi (LIBCALL_VALUE): Update description.
9865
8b9d598f
SE
98662009-03-03 Steve Ellcey <sje@cup.hp.com>
9867
9868 PR middle-end/34443
9869 * doc/extend.texi (section): Update description.
9870
13e4e36e
L
98712009-03-03 H.J. Lu <hongjiu.lu@intel.com>
9872
9873 PR middle-end/39345
9874 * tree-inline.c (remapped_type): New.
9875 (can_be_nonlocal): Call remapped_type instead of remap_type.
9876
067dd3c9
JJ
98772009-03-03 Jakub Jelinek <jakub@redhat.com>
9878
9879 PR fortran/39354
9880 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
9881 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
9882
9bd9f738
RG
98832009-03-03 Richard Guenther <rguenther@suse.de>
9884
9885 PR middle-end/39272
9886 * tree.c (tree_nonartificial_location): New function.
9887 * tree.h (tree_nonartificial_location): Declare.
9888 * builtins.c (expand_builtin_memory_chk): Provide location
9889 of the call location for artificial function pieces.
9890 (maybe_emit_chk_warning): Likewise.
9891 (maybe_emit_sprintf_chk_warning): Likewise.
9892 (maybe_emit_free_warning): Likewise.
9893 * expr.c (expand_expr_real_1): Likewise.
9894
f07049c8
JJ
98952009-03-03 Jakub Jelinek <jakub@redhat.com>
9896
9897 PR tree-optimization/39343
9898 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
9899 COMPONENT_REF t has ARRAY_TYPE.
9900
7d4fba4a
SP
99012009-03-02 Sebastian Pop <sebastian.pop@amd.com>
9902
9903 PR middle-end/39335
9904 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
9905 when the type precision of the induction variable should be
9906 larger than the type precision of nit.
9907 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
9908 * graphite.c (graphite_loop_normal_form): Same.
9909 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
9910
78168632
UB
99112009-03-02 Uros Bizjak <ubizjak@gmail.com>
9912
9913 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
9914 (*call_1_rex64_ms_sysv): Use named constants instead of magic
6c6094f1 9915 numbers to describe clobbered registers.
78168632 9916 (*call_value_0_rex64_ms_sysv): Ditto.
6c6094f1
UB
9917 * config/i386/mmx.md (mmx_emms): Ditto.
9918 (mmx_femms): Ditto.
78168632 9919
63553059
RS
99202009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
9921
9922 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
9923 of ABI_64.
9924
500a1f85
UW
99252009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9926
9927 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
9928 (spu_section_type_flags): New function.
9929
962aae34
UB
99302009-03-02 Uros Bizjak <ubizjak@gmail.com>
9931
9932 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
9933 reg_class_contents of FLOAT_REGS into a temporary.
9934
6dfb529c 99352009-03-02 Richard Guenther <rguenther@suse.de>
962aae34 9936 Ira Rosen <irar@il.ibm.com>
6dfb529c
RG
9937
9938 PR tree-optimization/39318
9939 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
9940 information to the vectorized statement.
9941
6b5629db
UB
99422009-03-01 Uros Bizjak <ubizjak@gmail.com>
9943
434426d2
UB
9944 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
9945 variable. Use defined names instead of magic constants for REX SSE
9946 registers.
6b5629db 9947
14e5b285
RG
99482009-03-01 Richard Guenther <rguenther@suse.de>
9949
9950 PR tree-optimization/39331
9951 * omp-low.c (lower_send_shared_vars): Do not receive new
9952 values for the reference of DECL_BY_REFERENCE parms or results.
9953
526d73ab
JH
99542009-03-01 Jan Hubicka <jh@suse.cz>
9955
9956 PR debug/39267
9957 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
9958 BLOCK_NONLOCALIZED_VAR): New macros.
9959 (tree_block): Add nonlocalized_vars.
f4ea99bd
EB
9960 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
9961 gen_decl_die): Add origin argument. Allow generation of die with
9962 origin at hand only.
526d73ab 9963 (gen_member_die, gen_type_die_with_usage, force_decl_die,
f4ea99bd
EB
9964 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
9965 of gen_*.
526d73ab
JH
9966 (gen_block_die): Fix checking for unused blocks.
9967 (process_scope_var): Break out from .... ; work with origins only.
9968 (decls_for_scope) ... here; process nonlocalized list.
9969 (dwarf2out_ignore_block): Look for nonlocalized vars.
f4ea99bd
EB
9970 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
9971 vars.
526d73ab
JH
9972 (dump_scope_block): Dump them.
9973 * tree-inline.c (remap_decls): Handle nonlocalized vars.
9974 (remap_block): Likewise.
9975 (can_be_nonlocal): New predicate.
9976 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
9977
7a9d3fe8
RW
99782009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9979
9980 * configure: Regenerate.
9981
b3cdf3cb
RW
99822009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9983
a16d1645 9984 * optc-gen.awk: No need to duplicate option flags twice.
9ade279b 9985 Reuse help texts for duplicate options which do not have any.
a16d1645 9986
1156c176
RW
9987 * gcc.c (display_help): Document --version.
9988
033505fc
RW
9989 * gcc.c (main): If print_help_list and verbose_flag, ensure
9990 driver output comes before subprocess output.
9991
4d077054
RW
9992 * optc-gen.awk: Assign all remaining fields to help string,
9993 space-separated, for multi-line help in *.opt.
9994
a072f1cf
RW
9995 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
9996 -Wno-pedantic-ms-format is for MinGW targets only.
9997
b3cdf3cb
RW
9998 * doc/options.texi (Option file format): Fix bad indentation,
9999 restoring dropped sentence.
10000
a3aadcc5
JH
100012009-02-28 Jan Hubicka <jh@suse.cz>
10002
10003 * tree-inline.c (tree_function_versioning): Output debug info.
10004
1cf5abb3
JH
100052009-02-28 Jan Hubicka <jh@suse.cz>
10006
10007 PR debug/39267
10008 * tree-inline.c (setup_one_parameter): Do not copy propagate
10009 arguments when not optimizing.
10010
c4d3f42f
L
100112009-02-28 H.J. Lu <hongjiu.lu@intel.com>
10012
10013 PR target/39327
10014 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
10015 (avx_addsubv4df3): Likewise.
10016 (*avx_addsubv4sf3): Likewise.
10017 (sse3_addsubv4sf3): Likewise.
10018 (*avx_addsubv2df3): Likewise.
10019 (sse3_addsubv2df3): Likewise.
10020 (avx_unpckhps256): Correct item selectors.
10021 (avx_unpcklps256): Likewise.
10022 (avx_unpckhpd256): Likewise.
10023 (avx_unpcklpd256): Likewise.
10024
eb50f5f4
JH
100252009-02-28 Jan Hubicka <jh@suse.cz>
10026
10027 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
10028 static vars.
10029 (copy_arguments_for_versioning): If var is declared don't declare it.
10030 (tree_function_versioning): First setup substitutions and then copy
10031 args.
10032
26140130
JH
100332009-02-27 Jan Hubicka <jh@suse.cz>
10034
10035 PR debug/39267
10036 * cgraph.h (varpool_output_debug_info): Remove.
10037 * cgraphunit.c (varpool_output_debug_info): Remove.
10038 * dwarf2out.c (deferred_locations_struct): New struct
10039 (deferred_locations): New type.
10040 (deferred_locations_list): New static var.
10041 (deffer_location): New function.
10042 (gen_variable_die): Use it.
10043 (decls_for_scope): Output info on local static vars.
10044 (dwarf2out_finish): Process deferred locations.
10045 * varpool.c (varpool_output_debug_info): Remove.
10046
cff7525f
JH
100472009-02-27 Jan Hubicka <jh@suse.cz>
10048
10049 PR debug/39267
10050 * tree.h (TREE_PROTECTED): Fix comment.
10051 (BLOCK_HANDLER_BLOCK): Remove.
10052 (struct tree_block): Remove handler_block add body_block.
10053 (inlined_function_outer_scope_p): New.
10054 (is_body_block): Remove.
10055 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
10056 * dwarf2out.c (is_inlined_entry_point): Remove.
10057 (add_high_low_attributes): Use inlined_function_outer_scope_p.
f10a1c6c
EB
10058 (gen_block_die): Use is_inlined_entry_point check. Remove body block
10059 code.
cff7525f
JH
10060 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
10061 * gimplify.c (gimplify_expr): Gimplify body blocks.
f10a1c6c
EB
10062 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
10063 block with multiple subblocks.
cff7525f
JH
10064 (dump_scope_block): Prettier output; dump more flags and info.
10065 (dump_scope_blocks): New.
10066 (remove_unused_locals): Use dump_scope_blocks.
10067 * tree-flow.h (dump_scope_blocks): Declare.
10068 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
10069 * stmt.c (is_body_block): Remove.
10070 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
10071 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
10072
c20993b9
SP
100732009-02-27 Sebastian Pop <sebastian.pop@amd.com>
10074
10075 PR middle-end/39308
2ba9daa7 10076 * graphite.c (graphite_loop_normal_form): Do not call
c20993b9
SP
10077 number_of_iterations_exit from a gcc_assert.
10078
e3cba5e5
AK
100792009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10080
60839f5d 10081 * config/s390/s390.c (s390_swap_cmp): Look for conditional
e3cba5e5
AK
10082 jumps if COND is NULL.
10083 (find_cond_jump): New function.
10084 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
60839f5d 10085 * config/s390/s390.md: Remove z10_cobra attribute value.
e3cba5e5 10086
9dadeeb8
UB
100872009-02-26 Uros Bizjak <ubizjak@gmail.com>
10088
10089 * config/alpha/alpha.h (alpha_expand_mov): Return false if
10090 force_const_mem returns NULL_RTX.
10091
625d3251
EB
100922009-02-26 Jan Hubicka <jh@suse.cz>
10093
10094 PR debug/39267
10095 * cgraph.h (varpool_output_debug_info): Remove.
10096 * cgraphunit.c (varpool_output_debug_info): Remove.
10097 * dwarf2out.c (deferred_locations_struct): New struct
10098 (deferred_locations): New type.
10099 (deferred_locations_list): New static var.
10100 (deffer_location): New function.
10101 (gen_variable_die): Use it.
10102 (decls_for_scope): Output info on local static vars.
10103 (dwarf2out_finish): Process deferred locations.
10104 * varpool.c (varpool_output_debug_info): Remove.
10105
38432148 101062009-02-25 H.J. Lu <hongjiu.lu@intel.com>
8592acaf
L
10107
10108 PR rtl-optimization/39241
10109 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
10110 to subreg_offset_representable_p.
10111
62d049cf
PB
101122009-02-25 Paolo Bonzini <bonzini@gnu.org>
10113
10114 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
10115 execute function prototype. Get f and nregs from max_reg_num
10116 and get_insns. Remove the first backward pass as it's dead,
10117 guard the forward pass by flag_expensive_optimizations.
10118 (rest_of_handle_regmove): Delete.
10119 (pass_regmove): Replace it with regmove_optimize.
10120
f618d33e
MJ
101212009-02-25 Martin Jambor <mjambor@suse.cz>
10122
10123 PR tree-optimization/39259
10124 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
6c6094f1 10125 calls_alloca function flags.
f618d33e
MJ
10126 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
10127 calls are detected.
10128
c8a05f7c
PB
101292009-02-25 Paolo Bonzini <bonzini@gnu.org>
10130
10131 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
10132 flags_set_1_rtx, flags_set_1_set): Delete.
10133 (regmove_optimize): Do not call mark_flags_life_zones.
10134
6d2538f5
JB
101352009-02-24 Julian Brown <julian@codesourcery.com>
10136
10137 PR target/35965
10138 * config/arm/arm.c (require_pic_register): Only set
10139 cfun->machine->pic_reg once per function.
10140
a2fa6772
SL
101412009-02-24 Sandra Loosemore <sandra@codesourcery.com>
10142
10143 * doc/invoke.texi (Link Options): Document an easier way to pass
9dadeeb8 10144 options that take arguments to the GNU linker using -Xlinker and -Wl.
a2fa6772 10145
5472de36
SE
101462009-02-24 Steve Ellcey <sje@cup.hp.com>
10147
10148 PR target/33785
10149 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
10150
844216f3
RG
101512009-02-24 Richard Guenther <rguenther@suse.de>
10152
10153 PR debug/39285
10154 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
10155
71adbef3 101562009-02-24 Richard Guenther <rguenther@suse.de>
8592acaf 10157 Zdenek Dvorak <ook@ucw.cz>
71adbef3
RG
10158
10159 PR tree-optimization/39233
10160 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
10161 from converting them to a generic type.
10162
f1a558e0
SP
101632009-02-23 Sebastian Pop <sebastian.pop@amd.com>
10164
10165 PR tree-optimization/39260
10166 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
10167 contains a condition with a real type.
10168 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
10169
d8028f2c
JM
101702009-02-23 Jason Merrill <jason@redhat.com>
10171
10172 PR c++/38880
10173 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
10174 narrowing_initializer_constant_valid_p.
2ba9daa7 10175 (narrowing_initializer_constant_valid_p): Don't return
d8028f2c
JM
10176 null_pointer_node for adding a pointer to itself.
10177
9283b513
JH
101782009-02-23 Jan Hubicka <jh@suse.cz>
10179
10180 PR c/12245
9dadeeb8
UB
10181 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
10182 resizing.
9283b513 10183
61e04322
JH
101842009-02-23 Jan Hubicka <jh@suse.cz>
10185
9dadeeb8
UB
10186 PR tree-optimization/37709
10187 * tree.c (block_ultimate_origin): Move here from dwarf2out.
10188 * tree.h (block_ultimate_origin): Declare.
10189 * dwarf2out.c (block_ultimate_origin): Move to tree.c
61e04322
JH
10190 * tree-ssa-live.c (remove_unused_scope_block_p):
10191 Eliminate blocks containig no instructions nor live variables nor
10192 nested blocks.
10193 (dump_scope_block): New function.
10194 (remove_unused_locals): Enable removal of dead blocks by default;
9dadeeb8 10195 enable dumping at TDF_DETAILS.
61e04322 10196
38432148 101972009-02-21 H.J. Lu <hongjiu.lu@intel.com>
5339d3ea
L
10198
10199 * config/i386/i386.c (classify_argument): Don't allow COImode
10200 and OImode.
10201 (function_arg_advance_32): Don't allow OImode.
10202 (function_arg_32): Likewise.
10203 (function_value_32): Likewise.
10204 (return_in_memory_32): Likewise.
10205 (function_arg_64): Remove OImode comment.
10206
38432148 102072009-02-21 H.J. Lu <hongjiu.lu@intel.com>
f161e158
L
10208
10209 PR target/39261
10210 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
10211 ix86_expand_vector_set for V4DImode in 64bit mode only.
10212 (ix86_expand_vector_init_one_var): Likewise.
10213
dcd739a6
SP
102142009-02-21 Sebastian Pop <sebastian.pop@amd.com>
10215
10216 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
10217
6c3b938d
RS
102182009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
10219
8e361f23 10220 PR bootstrap/39257
6c3b938d
RS
10221 * loop-iv.c: Revert last change.
10222 * emit-rtl.c: Likewise.
10223
38432148 102242009-02-21 H.J. Lu <hongjiu.lu@intel.com>
4c64d3dd
L
10225
10226 PR target/39256
10227 * config/i386/i386.c (type_natural_mode): Remove an extra
10228 space in the warning message.
10229 (function_value_32): Handle 32-byte vector modes.
10230 (return_in_memory_32): Likewise.
10231
2ec62529
RS
102322009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
10233
10234 * loop-iv.c (truncate_value): New function.
10235 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
10236 of lowpart_subreg.
10237 (lowpart_subreg): Move to...
10238 * emit-rtl.c: ...here.
10239
ecb8c3cc 102402009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
f814e489 10241
ecb8c3cc
DS
10242 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
10243 accidental and undocumented change at revision 140860.
10244
ae46a823
JM
102452009-02-21 Joseph Myers <joseph@codesourcery.com>
10246
10247 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
10248 take gimple_seq * arguments.
10249 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
10250 types_compatible_p langhook.
10251
07d8efe3 102522009-02-20 Mark Mitchell <mark@codesourcery.com>
f814e489 10253 Joseph Myers <joseph@codesourcery.com>
07d8efe3
MM
10254
10255 * config/arm/arm.c (arm_builtin_va_list): New function.
10256 (arm_expand_builtin_va_start): Likewise.
10257 (arm_gimplify_va_arg_expr): Likewise.
10258 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
10259 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
10260 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
10261 (va_list_type): New variable.
10262 (arm_mangle_type): Mangle va_list_type appropriately.
10263
b1fb9f56
JJ
102642009-02-20 Jakub Jelinek <jakub@redhat.com>
10265
10266 PR middle-end/39157
10267 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
10268 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
10269 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
10270 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
10271 parameter to 1000 for -O1 by default.
10272 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
10273 parameter.
10274 * loop-invariant.c: Include params.h.
10275 (move_loop_invariants): Don't call move_single_loop_invariants on
10276 very large loops.
10277
5bc0807c
JM
102782009-02-20 Jaka Mocnik <jaka@xlab.si>
10279
10280 * calls.c (emit_library_call_value_1): Use slot_offset instead of
10281 offset when calculating bounds for indexing stack_usage_map. Fixes
10282 a buffer overflow with certain target setups.
10283
c69cd1f5
JJ
102842009-02-20 Jakub Jelinek <jakub@redhat.com>
10285
10286 PR target/39240
10287 * calls.c (expand_call): Clear try_tail_call if caller and callee
10288 disagree in promotion of function return value.
10289
09812622
JJ
102902009-02-19 Jakub Jelinek <jakub@redhat.com>
10291
10292 PR target/39175
10293 * c-common.c (c_determine_visibility): If visibility changed and
10294 DECL_RTL has been already set, call make_decl_rtl to update symbol
10295 flags.
10296
68017cb4
L
102972009-02-19 H.J. Lu <hongjiu.lu@intel.com>
10298
10299 PR c++/39188
10300 * varasm.c (assemble_variable): Don't check DECL_NAME when
10301 globalizing a variable.
10302
ab4194da
JM
103032009-02-19 Joseph Myers <joseph@codesourcery.com>
10304
10305 PR c/38483
10306 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
10307 expression before any __builtin_trap call.
10308 * c-typeck.c (build_function_call): Convert and check function
10309 arguments before generating a call to a trap. Evaluate the
10310 function arguments before the trap.
10311
6b67572e
UB
103122009-02-19 Uros Bizjak <ubizjak@gmail.com>
10313
10314 PR target/39228
10315 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
10316 (UNSPEC_FXAM_MEM): New unspec.
10317 (fxam<mode>2_i387_with_temp): New insn and split pattern.
10318 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
10319 memory using fxam<mode>2_i387_with_temp to remove excess precision.
10320
9e39dba6
RG
103212009-02-19 Richard Guenther <rguenther@suse.de>
10322
10323 PR tree-optimization/39207
10324 PR tree-optimization/39074
10325 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
10326 storedanything_tree): New.
10327 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
6b67572e 10328 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
9e39dba6
RG
10329 (build_succ_graph): Add edges from STOREDANYTHING to all
10330 non-direct nodes.
10331 (init_base_vars): Initialize STOREDANYTHING.
10332 (compute_points_to_sets): Free substitution info after
10333 building the succ graph.
10334 (ipa_pta_execute): Likewise.
10335
10336 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
10337 field.
10338 (do_ds_constraint): Do not add to special var or non-pointer
10339 field solutions.
10340 (type_could_have_pointers): Split out from ...
10341 (could_have_pointers): ... here. For arrays use the element type.
10342 (create_variable_info_for): Initialize may_have_pointers.
10343 (new_var_info): Likewise.
10344 (handle_lhs_call): Make the HEAP variable unknown-sized.
10345 (intra_create_variable_infos): Use a type with pointers for
10346 PARM_NOALIAS, make it unknown-sized.
10347
fd7b2603
L
103482009-02-18 H.J. Lu <hongjiu.lu@intel.com>
10349
10350 PR target/39224
6b67572e 10351 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
fd7b2603 10352
98b80692
JM
103532009-02-18 Jason Merrill <jason@redhat.com>
10354
10355 PR target/39179
10356 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
10357 value if DECL_EXTERNAL.
10358 * tree-sra.c (sra_walk_gimple_assign): Likewise.
10359 * target.h (gcc_target::binds_local_p): Clarify "module".
10360 * tree.h (TREE_PUBLIC): Clarify "module".
10361
0705d3f4
L
103622009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
10363
10364 PR target/38891
10365 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
10366 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
10367
bce08d50
L
103682009-02-17 H.J. Lu <hongjiu.lu@intel.com>
10369
10370 PR target/39082
10371 * c.opt (Wabi): Support C and ObjC.
10372 (Wpsabi): New.
10373
10374 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
10375
10376 * config/i386/i386.c (classify_argument): Warn once about the ABI
10377 change when passing union with long double.
10378
10379 * doc/invoke.texi: Update -Wabi for warning psABI changes.
10380
5600f233
JM
103812009-02-18 Joseph Myers <joseph@codesourcery.com>
10382
10383 PR c/35447
10384 * c-parser.c (c_parser_compound_statement): Always enter and leave
10385 a scope.
10386
8cd01fe6
JDA
103872009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10388
10389 PR target/34587
10390 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
10391
418df9d7
JJ
103922009-02-18 Jakub Jelinek <jakub@redhat.com>
10393
10394 PR tree-optimization/36922
10395 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
10396 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
10397 Likewise.
10398
082d2ebb
RS
103992009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
10400
10401 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
10402 to 0 for EABI64.
10403
17de576c
RS
104042009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
10405
10406 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
10407
6d8d5435
RS
104082009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
10409
10410 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
10411 tree sharing.
10412
e69ff910
RB
104132009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
10414 Richard Sandiford <rdsandiford@googlemail.com>
10415
10416 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
10417 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
10418 (loongson_biadd): ...this.
10419
6b24ee26
RG
104202009-02-17 Richard Guenther <rguenther@suse.de>
10421
10422 PR tree-optimization/39202
10423 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
10424 a var make sure to follow existing collapses.
10425
91ab2c86
RG
104262009-02-17 Richard Guenther <rguenther@suse.de>
10427
10428 PR middle-end/39214
10429 * langhooks.c (lhd_print_error_function): Check for NULL block.
10430
73a63870
RG
104312009-02-17 Richard Guenther <rguenther@suse.de>
10432
10433 PR tree-optimization/39204
10434 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
10435 of the PHI arg.
10436
0e08f686
UB
104372009-02-17 Uros Bizjak <ubizjak@gmail.com>
10438
10439 * config/soft-fp/double.h: Update from glibc CVS.
10440
a60b7ddb
RG
104412009-02-17 Richard Guenther <rguenther@suse.de>
10442
10443 PR tree-optimization/39207
10444 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
10445 strict-aliasing warnings for pointers pointing to NULL.
10446
a47e20fd
JM
104472009-02-16 Joseph Myers <joseph@codesourcery.com>
10448
10449 PR c/35446
10450 * c-parser.c (c_parser_braced_init): Call pop_init_level when
10451 skipping until next close brace.
10452
50aab7dc
L
104532009-02-16 H.J. Lu <hongjiu.lu@intel.com>
10454
10455 PR target/37049
10456 * config/i386/i386.c (ix86_expand_push): Set memory alignment
10457 to function argument boundary.
10458
68e53db0
HS
104592009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
10460
10461 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
10462 in the lea_add. Reload eventually constraints it properly.
0d50d55a 10463 * config/picochip/constraints.md: Remove the target constraint
68e53db0
HS
10464 "b", since it is not needed anymore.
10465
09e361bb
JJ
104662009-02-16 Jakub Jelinek <jakub@redhat.com>
10467
10468 * gthr-dce.h: Uglify function parameter and local variable names.
10469 * gthr-gnat.h: Likewise.
10470 * gthr-mipssde.h: Likewise.
10471 * gthr-nks.h: Likewise.
10472 * gthr-posix95.h: Likewise.
10473 * gthr-posix.h: Likewise.
10474 * gthr-rtems.h: Likewise.
10475 * gthr-single.h: Likewise.
10476 * gthr-solaris.h: Likewise.
10477 * gthr-tpf.h: Likewise.
10478 * gthr-vxworks.h: Likewise.
10479 * gthr-win32.h: Likewise.
10480
47f5a48f
L
104812009-02-15 H.J. Lu <hongjiu.lu@intel.com>
10482
10483 PR target/39196
10484 * config/i386/i386.md: Restrict the new peephole2 to move
10485 between MMX/SSE registers.
10486
68c9ab45
RG
104872009-02-15 Richard Guenther <rguenther@suse.de>
10488
10489 Revert
10490 2009-02-13 Richard Guenther <rguenther@suse.de>
10491
10492 * configure.ac: Enable LFS.
10493 * configure: Re-generate.
10494 * config.in: Likewise.
10495
d7815554
UW
104962009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10497
10498 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
10499 spu_srqwbyte, spu_srqwbytebc): Define.
10500 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
10501 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
10502 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
10503 "shrqby_<mode>"): New insn-and-split patterns.
10504 * config/spu/spu.c (expand_builtin_args): Determine and return
10505 number of operands using spu_builtin_description data.
10506 (spu_expand_builtin_1): Use it.
10507
c208436c
SE
105082009-02-13 Steve Ellcey <sje@cup.hp.com>
10509
10510 PR target/38056
10511 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
10512 TARGET_CONST_GP.
10513
c2e7ba7e
L
105142009-02-13 H.J. Lu <hongjiu.lu@intel.com>
10515
10516 PR target/39149
10517 * config/i386/i386.c (override_options): Correct warning
6c6094f1 10518 messages for -malign-loops, -malign-jumps and -malign-functions.
c2e7ba7e 10519
72f4e3a7
L
105202009-02-13 H.J. Lu <hongjiu.lu@intel.com>
10521
10522 PR target/39152
10523 * config/i386/i386.md: Restrict the new peephole2 to move
10524 between the general purpose registers.
10525
53f648e2
L
105262009-02-13 H.J. Lu <hongjiu.lu@intel.com>
10527
10528 PR target/39162
10529 * config/i386/i386.c (type_natural_mode): Add a new argument.
6b67572e 10530 Return the original mode and warn ABI change if vector size is 32byte.
53f648e2
L
10531 (function_arg_advance): Updated.
10532 (function_arg): Likewise.
10533 (ix86_function_value): Likewise.
10534 (ix86_return_in_memory): Likewise.
10535 (ix86_sol10_return_in_memory): Likewise.
10536 (ix86_gimplify_va_arg): Likewise.
10537 (function_arg_32): Don't warn ABX ABI change here.
10538 (function_arg_64): Likewise.
10539
38432148 105402009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
b1c92d54
BS
10541
10542 * loop-iv.c (implies_p): In the final case, test that operands 0
10543 of the two comparisons match.
10544
dd2139e7
BS
10545 * config/bfin/bfin.c (find_prev_insn_start): New function.
10546 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
10547 (find_next_insn_start): Move.
10548
601b3e1a
RG
105492009-02-13 Richard Guenther <rguenther@suse.de>
10550
10551 * configure.ac: Enable LFS.
10552 * configure: Re-generate.
10553 * config.in: Likewise.
10554
f007042e
JM
105552009-02-13 Joseph Myers <joseph@codesourcery.com>
10556
10557 PR c/35444
10558 * c-parser.c (c_parser_parms_list_declarator): Discard pending
10559 sizes on syntax error after some arguments have been parsed.
10560
3f238e8b
JJ
105612009-02-12 Jakub Jelinek <jakub@redhat.com>
10562
10563 * doc/invoke.texi (-fira): Remove.
10564
328e13b7
L
105652009-02-12 H.J. Lu <hongjiu.lu@intel.com>
10566
10567 * caller-save.c: Replace regclass.c with reginfo.c in comments.
10568 * recog.c: Likewise.
10569 * rtl.h: Likewise.
10570
c252db20
L
105712009-02-12 Uros Bizjak <ubizjak@gmail.com>
10572
10573 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
10574 (umul_ppmm): Likewise.
10575 (count_leading_zeros): Likewise.
10576 (count_trailing_zeros): Likewise.
10577 (UMUL_TIME): Likewise.
10578
105792009-02-12 H.J. Lu <hongjiu.lu@intel.com>
10580
ba181049
UB
10581 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
10582 soft-fp/t-softfp to tmake_file.
c252db20
L
10583
10584 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
ba181049
UB
10585 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
10586 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
10587 IA64_BUILTIN_INFQ]: New.
c252db20
L
10588 (ia64_init_builtins): Initialize __builtin_infq,
10589 __builtin_fabsq and __builtin_copysignq if not HPUX.
10590 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
10591 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
10592
10593 * config/ia64/lib1funcs.asm (__divtf3): Define only if
10594 SHARED is defined.
10595 (__fixtfti): Likewise.
10596 (__fixunstfti): Likewise.
10597 (__floattitf): Likewise.
10598
10599 * config/ia64/libgcc-glibc.ver: New.
10600 * config/ia64/t-fprules-softfp: Likewise.
10601 * config/ia64/sfp-machine.h: Likewise.
10602
10603 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
10604 (LIBGCC2_TF_CEXT): Likewise.
10605 (TF_SIZE): Likewise.
10606 (TARGET_INIT_LIBFUNCS): Likewise.
10607
ba181049 10608 * config/ia64/t-glibc (SHLINB_MAPFILES):
6b67572e 10609 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
c252db20 10610
f13eae6a
L
106112009-02-12 H.J. Lu <hongjiu.lu@intel.com>
10612
10613 * config/i386/i386.c (construct_container): Rewrite processing
10614 BLKmode with X86_64_SSE_CLASS.
10615
12019aec
L
106162009-02-12 Paolo Bonzini <bonzini@gnu.org>
10617
10618 PR target/39152
10619 * config/i386/i386.md: Replace simplify_replace_rtx with
10620 replace_rtx in the new peephole2.
10621
28c11eb3
NS
106222009-02-12 Nathan Sidwell <nathan@codesourcery.com>
10623
10624 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
10625 loop unrolling do not happen at -O2.
10626
c7b94907
MM
106272009-02-12 Michael Matz <matz@suse.de>
10628
10629 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
10630
61e98967
JJ
106312009-02-12 Jakub Jelinek <jakub@redhat.com>
10632
10633 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
10634 for -g3.
10635
a2a237b5
BE
106362009-02-12 Ben Elliston <bje@au.ibm.com>
10637
10638 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
10639 patterns when updating the back chain. Missed in the 2009-02-10
10640 change.
10641
853eda8d
JJ
106422009-02-11 Janis Johnson <janis187@us.ibm.com>
10643
10644 * doc/extend.texi (Decimal Floating Types): Update identifier of
10645 draft TR and list of missing support.
10646
3ad6b266
JJ
106472009-02-11 Jakub Jelinek <jakub@redhat.com>
10648
10649 PR middle-end/39154
10650 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
10651 bit to variable length decl's flags, add it also to its
10652 pointer replacement variable.
10653
b058b753
UB
106542009-02-11 Uros Bizjak <ubizjak@gmail.com>
10655 Jakub Jelinek <jakub@redhat.com>
10656
10657 PR target/39118
10658 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
10659 (memory_blockage): New expander.
10660 (*memory_blockage): New insn pattern.
10661 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
10662 instead of general blockage at the end of function prologue when
10663 frame pointer is used to access red zone area. Do not emit blockage
10664 when profiling, it is emitted in generic code.
10665 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
10666 function epilogue when frame pointer is used to access red zone area.
10667
bab64f23
PB
106682009-02-11 Paolo Bonzini <bonzini@gnu.org>
10669
0ce6dcfa 10670 PR target/38824
bab64f23
PB
10671 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
10672 by arithmetic with memory operands.
10673 * config/i386/predicates.md (commutative_operator): New.
10674
8fd94bda
JJ
106752009-02-10 Janis Johnson <janis187@us.ibm.com>
10676
10677 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
10678 bulleted lists.
10679
794511d2
EB
106802009-02-10 Eric Botcazou <ebotcazou@adacore.com>
10681
10682 * alias.h (record_alias_subset): Declare.
10683 * alias.c (record_alias_subset): Make global.
10684
6da7fc87
NC
106852009-02-10 Nick Clifton <nickc@redhat.com>
10686
10687 * tree-parloops.c: Change license to GPLv3.
10688 * ipa-struct-reorg.c: Change license to GPLv3.
10689 * ipa-struct-reorg.h: Change license to GPLv3.
10690
a03813c8
SE
106912009-02-10 Steve Ellcey <sje@cup.hp.com>
10692
10693 PR c/39084
10694 * c-decl.c (start_struct): Return NULL on error.
10695
fc3103e7
JJ
106962009-02-10 Jakub Jelinek <jakub@redhat.com>
10697
9b43d37b
JJ
10698 PR middle-end/39124
10699 * cfgloopmanip.c (remove_path): Call remove_bbs after
10700 cancel_loop_tree, not before it.
10701
fc3103e7 10702 PR target/39139
b058b753 10703 * function.h (struct function): Add has_local_explicit_reg_vars bit.
fc3103e7
JJ
10704 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
10705 VAR_DECLs were seen.
10706 * tree-ssa-live.c (remove_unused_locals): Recompute
10707 cfun->has_local_explicit_reg_vars.
10708 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
10709 copies or clearings if cfun->has_local_explicit_reg_vars.
10710
dbf9ee15
UB
107112009-02-10 Uros Bizjak <ubizjak@gmail.com>
10712
10713 PR target/39118
10714 * config/i386/i386.c (expand_prologue): Emit blockage at the end
10715 of function prologue when frame pointer is used to access
10716 red zone area.
10717
bdec4dc7
RG
107182009-02-10 Richard Guenther <rguenther@suse.de>
10719
10720 PR middle-end/39127
10721 * gimplify.c (gimple_regimplify_operands): Always look if
10722 we need to create a temporary.
10723
7cae94fc
RG
107242009-02-10 Richard Guenther <rguenther@suse.de>
10725
10726 PR tree-optimization/39132
10727 * tree-loop-distribution.c (todo): New global var.
10728 (generate_memset_zero): Trigger TODO_rebuild_alias.
10729 (tree_loop_distribution): Return todo.
10730
a8800687
L
107312009-02-10 H.J. Lu <hongjiu.lu@intel.com>
10732
10733 PR target/39119
10734 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
10735 (x86_64_reg_class_name): Removed.
10736 (classify_argument): Return 0 if bytes > 32. Return 0 if the
10737 first one isn't X86_64_SSE_CLASS or any other ones aren't
10738 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
10739 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
10740 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
10741 and 3 X86_64_SSEUP_CLASS.
10742 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
10743 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
10744
d4bacef0
BE
107452009-02-10 Ben Elliston <bje@au.ibm.com>
10746
10747 * config/rs6000/rs6000.md (allocate_stack): Always use an update
10748 form instruction to update the stack back chain word, even if the
10749 user has disabled the generation of update instructions.
10750 (movdi_<mode>_update_stack): New.
10751 (movsi_update_stack): Likewise.
10752 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
10753 always use an update form instruction to update the stack back
10754 chain word.
10755
01d7d2f3
SP
107562009-02-09 Sebastian Pop <sebastian.pop@amd.com>
10757
10758 PR middle-end/38953
b058b753
UB
10759 * graphite.c (if_region_set_false_region): After moving a region in
10760 the false branch of a condition, remove the empty dummy basic block.
01d7d2f3
SP
10761 (gloog): Remove wrong fix for PR38953.
10762
e41e2ab4
UW
107632009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10764
10765 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
10766 generation due to implicit sign extension.
10767
4bb07c5d
EB
107682009-02-09 Eric Botcazou <ebotcazou@adacore.com>
10769
10770 PR middle-end/38981
10771 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
10772 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
10773
f060a261
RG
107742009-02-09 Richard Guenther <rguenther@suse.de>
10775
10776 PR middle-end/35202
10777 * convert.c (convert_to_real): Disable (float)fn((double)x)
10778 to fnf(x) conversion if errno differences may occur and
10779 -fmath-errno is set.
10780
5a7e237c
AS
107812009-02-07 Anatoly Sokolov <aesok@post.ru>
10782
10783 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
10784 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
10785 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
10786
feab5a67
JM
107872009-02-06 Joseph Myers <joseph@codesourcery.com>
10788
10789 PR c/35434
10790 * c-common.c (handle_alias_attribute): Disallow attribute for
10791 anything not a FUNCTION_DECL or VAR_DECL.
10792
90ef2296
JJ
107932009-02-06 Janis Johnson <janis187@us.ibm.com>
10794
10795 PR c/39035
10796 * real.c (do_compare): Special-case compare of zero against
10797 decimal float value.
10798
1de2c900
JM
107992009-02-06 Joseph Myers <joseph@codesourcery.com>
10800
10801 PR c/36432
10802 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
10803 as indicating flexible array members unless the field itself is
10804 being declarared as the incomplete array.
10805
e901811a
JH
108062009-02-06 Jan Hubicka <jh@suse.cz>
10807
10808 PR tree-optimization/38844
10809 * ipa-inline.c (try_inline): Stop inlining recursion when edge
10810 is already inlined.
10811
3cfa762b
RG
108122009-02-06 Richard Guenther <rguenther@suse.de>
10813
10814 PR middle-end/38977
10815 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
10816 fork because we may expand it as __gcov_fork.
10817
8506528c
NC
108182009-02-06 Nick Clifton <nickc@redhat.com>
10819
dbf9ee15 10820 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
8506528c 10821
85169114
PB
108222009-02-06 Paolo Bonzini <bonzini@gnu.org>
10823
10824 PR tree-optimization/35659
10825 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
10826 vn_phi_eq): Shortcut if hashcode does not match.
10827 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
10828 NULL operands.
10829 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
10830 and avoid iterative_hash_expr.
10831 (FOR_EACH_VALUE_ID_IN_SET): New.
10832 (value_id_compare): Remove.
10833 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
10834 sort expressions by value id.
10835
6d39673d
KK
108362009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
10837
10838 PR target/38991
10839 * config/sh/predicates.md (general_movsrc_operand): Don't check
10840 the subreg of system registers here.
10841
e6e1c050
JJ
108422009-02-05 Jakub Jelinek <jakub@redhat.com>
10843
10844 PR c++/39106
10845 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
10846 on the copied decl.
10847
65a74b5d
PB
108482009-02-05 Paolo Bonzini <bonzini@gnu.org>
10849
10850 PR rtl-optimization/39110
10851 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
10852 addresses, not aligned ones.
10853
08e14b2a
DB
108542009-02-05 Daniel Berlin <dberlin@dberlin.org>
10855 Richard Guenther <rguenther@suse.de>
10856
10857 PR tree-optimization/39100
10858 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
10859 comment says and add edges.
10860
5006381c
JM
108612009-02-05 Joseph Myers <joseph@codesourcery.com>
10862
10863 PR c/35435
10864 * c-common.c (handle_tls_model_attribute): Ignore attribute for
10865 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
10866
2ba9daa7 108672009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
b0789219
TG
10868
10869 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
10870 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
10871 register_bb_in_sese, new_sese, free_sese): Moved.
10872 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
10873 outermost_loop_in_scop, build_scop_iteration_domain,
10874 expand_scalar_variables_ssa_name, get_vdef_before_scop,
10875 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
10876 Use loop_in_sese_p instead of loop_in_scop_p.
10877 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
10878 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
10879 (scopdet_basic_block_info): Fix bug in scop detection.
10880 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
10881 eq_loop_to_cloog_loop): Remove.
10882 (nb_loops_around_loop_in_scop, nb_loop
10883 ref_nb_loops): Moved here...
10884 * graphite.h (ref_nb_loops): ... from here.
10885 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
10886 (loop_domain_dim, loop_iteration_vector_dim): Remove.
10887 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
10888 * testsuite/gcc.dg/graphite/scop-19.c: New
10889
48e8382e
PB
108902009-02-04 Paolo Bonzini <bonzini@gnu.org>
10891 Hans-Peter Nilsson <hp@axis.com>
10892
10893 PR rtl-optimization/37889
10894 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
10895 Move offset handling from PLUS to before the switch. Use new
10896 arguments when considering SYMBOL_REFs too.
10897 (rtx_addr_can_trap_p): Pass dummy offset and size.
10898 (enum may_trap_p_flags): Remove.
10899 (may_trap_p_1): Pass size from MEM_SIZE.
10900
10901 PR rtl-optimization/38921
10902 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
10903 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
10904 * rtlanal.c (may_trap_after_code_motion_p): Delete.
10905 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
10906
69349ea5
L
109072009-02-04 H.J. Lu <hongjiu.lu@intel.com>
10908
10909 AVX Programming Reference (January, 2009)
10910 * config/i386/sse.md (*vpclmulqdq): New.
10911
b545e411
JJ
109122009-02-04 Jakub Jelinek <jakub@redhat.com>
10913
10914 PR tree-optimization/38977
10915 PR gcov-profile/38292
bf9b2cc9 10916 * calls.c (special_function_p): Disregard __builtin_ prefix.
b545e411 10917
5b43bf05
HS
109182009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
10919
10920 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
10921 non-indexable addresses even before reload.
10922
062c4bb3
JM
109232009-02-03 Joseph Myers <joseph@codesourcery.com>
10924
10925 PR c/29129
10926 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
10927 as having variable size. Do not give an error for unnamed
10928 parameters with [*] declarators. Give a warning for type names
10929 with [*] declarators and mark them as variable size.
10930 * c-parser.c (c_parser_sizeof_expression): Do not give an error
10931 for sizeof applied to [*] type names.
10932
6175f578
AP
109332009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
10934
10935 PR C++/36607
10936 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
10937
d4f4bc84
JJ
109382009-02-03 Jakub Jelinek <jakub@redhat.com>
10939
10940 * gcc.c (process_command): Update copyright notice dates.
10941 * gcov.c (print_version): Likewise.
10942 * gcov-dump.c (print_version): Likewise.
10943 * mips-tfile.c (main): Likewise.
10944 * mips-tdump.c (main): Likewise.
10945
f6294de7
JM
109462009-02-03 Joseph Myers <joseph@codesourcery.com>
10947
10948 PR c/35433
10949 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
10950 for composite type involving a zero-length array type.
10951
754ccf7c
JJ
109522009-02-03 Jakub Jelinek <jakub@redhat.com>
10953
70f16287
JJ
10954 PR target/35318
10955 * function.c (match_asm_constraints_1): Skip over
10956 initial optional % in the constraint.
10957
754ccf7c
JJ
10958 PR inline-asm/39059
10959 * c-parser.c (c_parser_postfix_expression): If fixed point is not
10960 supported, don't accept FIXED_CSTs.
10961 * c-decl.c (finish_declspecs): Error if fixed point is not supported
10962 and _Sat is used without _Fract/_Accum. Set specs->type to
10963 integer_type_node for cts_fract/cts_accum if fixed point is not
10964 supported.
10965
965fdadf
CM
109662009-02-02 Catherine Moore <clm@codesourcery.com>
10967
dbf9ee15 10968 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
965fdadf 10969
2e8a796f
RS
109702009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
10971
10972 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
10973 (ABI_HAS_64BIT_SYMBOLS): Use it.
10974 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
10975
e0079468
PB
109762009-02-02 Paul Brook <paul@codesourcery.com>
10977
10978 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
10979
eca72963
JJ
109802009-02-02 Jakub Jelinek <jakub@redhat.com>
10981
10982 PR inline-asm/39058
10983 * recog.h (asm_operand_ok): Add constraints argument.
10984 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
10985 recurse on matching constraint.
10986 (check_asm_operands): Pass constraints as 3rd argument to
10987 asm_operand_ok. Don't look up matching constraint here.
10988 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
10989 to asm_operand_ok.
10990
b5bde9ff
BE
109912009-02-02 Ben Elliston <bje@au.ibm.com>
10992
10993 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
10994 TARGET_NARROW_VOLATILE_BITFIELD macro names.
10995
30f3e427
JDA
109962009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10997
be7659ba
JDA
10998 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
10999 information. Remove some obsolete information. Reorganize.
11000
30f3e427
JDA
11001 * config/pa/fptr.c: Revert license to GPL 2.
11002 * config/pa/milli64.S: Likewise.
11003
3cbfaf98
DK
110042009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
11005
11006 PR target/38904
11007 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
11008 LIBRARY name in, instead of hard-coding it.
11009 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
11010 extra target make frag to tmake_files according to EH model.
11011 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11012 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
11013 frags that define makefile variable EH_MODEL appropriately.
11014 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
11015 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
11016 to "-sjlj" according to type of EH configured.
11017 (LIBGCC_SONAME): Concatenate it to shared library base name.
11018 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
11019 to "_sjlj" according to type of EH configured.
11020 (LIBGCC_SONAME): Concatenate it to shared library base name.
11021 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
11022 (SHLIB_LINK): Add missing semicolon to if-else construct.
11023 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
11024 string value of "pe_dll" command-line option.
11025 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
11026 (SHLIB_SONAME): Use it when overriding t-cygming default.
11027 (SHLIB_IMPLIB): Override t-cygming default.
11028 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
11029 string value of "pe_dll" command-line option.
11030
8d0b6068
DK
110312009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
11032
11033 PR target/38952
11034 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
bf9b2cc9 11035 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
8d0b6068 11036
14c28276
RG
110372009-01-31 Richard Guenther <rguenther@suse.de>
11038
11039 PR tree-optimization/38937
11040 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
11041 computing the transitive closure.
11042
5f4d82c2
RG
110432009-01-30 Richard Guenther <rguenther@suse.de>
11044
11045 PR tree-optimization/39041
11046 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
11047 Propagate variable indices only if the types match for this stmt.
11048
d0728ae0
JJ
110492009-01-30 Jakub Jelinek <jakub@redhat.com>
11050
11051 PR target/39013
11052 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
11053 inline but never defined.
11054
6b67572e 110552009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
9fec758d
WG
11056
11057 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
11058 (*insv_h_di_reg_extimm): New insn.
11059 (*insv_l<mode>_reg_extimm): New insn.
11060
110612009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
9e8be1e4
HS
11062
11063 * config/picochip/picochip.c (flag_conserve_stack): set
11064 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
11065 fconserve-stack. Reduce call-overhead used by inliner.
11066
9fec758d 110672009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
df9198ab
HS
11068
11069 PR/38157
11070 * common.opt (flag_conserve_stack): Initialised to zero.
11071
7f1c539c
KT
110722009-01-30 Kai Tietz <kai.tietz@onevision.com>
11073
11074 PR/39002
11075 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
11076 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
11077 method.
11078
3631be48
L
110792009-01-29 H.J. Lu <hongjiu.lu@intel.com>
11080
11081 * ira-color.c (allocno_reload_assign): Update comments.
11082 * regmove.c (regmove_optimize): Likewise.
11083
11084 * ra.h: Removed.
11085
416ac4d4
RM
110862009-01-29 Robert Millan <rmh@aybabtu.com>
11087
60839f5d
EB
11088 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
11089 * config/i386/kopensolaris-gnu.h: New file. Undefine
416ac4d4 11090 `MD_UNWIND_SUPPORT'.
60839f5d 11091 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
416ac4d4 11092
d5e54bc1
KH
110932009-01-29 Kazu Hirata <kazu@codesourcery.com>
11094
11095 PR tree-optimization/39007
11096 * tree-loop-distribution.c (generate_builtin): Use
11097 recompute_dominator to compute the immediate dominator of the
11098 basic block just after the loop.
11099
38432148 111002009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
e9e077fa
RO
11101
11102 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
11103 (ASM_OUTPUT_DWARF_PCREL): Define.
11104
38432148 111052009-01-29 Vladimir Makarov <vmakarov@redhat.com>
2af2dbdc
VM
11106
11107 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
11108 * doc/passes.texi: Remove entries about regclass, local-alloc, and
11109 global. Modify entries about regmove and IRA.
11110
11111 * ra-conflict.c: Remove the file.
11112
11113 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
11114
11115 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
11116 (pass_regclass_init): Rename to pass_reginfo_init.
11117
11118 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
11119
11120 * toplev.h (flag_ira): Remove.
11121
11122 * caller-save.c (setup_save_areas): Remove flag_ira.
11123
bf9b2cc9 11124 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
2af2dbdc
VM
11125
11126 * global.c: Remove the file.
11127
ba20e309 11128 * opts.c (decode_options): Remove flag_ira.
2af2dbdc
VM
11129
11130 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
11131
11132 * regmove.c: Modify file description.
11133 (find_use_as_address, try_auto_increment): Define them only if
11134 AUTO_INC_DEC is defined.
11135 (replacement_quality, replace_in_call_usage, fixup_match_1,
11136 stable_and_no_regs_but_for_p): Remove.
11137 (reg_set_in_bb): Make it static.
11138 (regmove_optimize): Remove flag_ira and code which worked for
11139 !flag_ira.
11140
11141 * local-alloc.c: Remove the file.
11142
11143 * common.opt (fira): Remove.
11144
11145 * ira.c: Include except.h.
11146 (eliminable_regset): Move from global.c.
11147 (mark_elimination): Ditto. Remove flag_ira.
11148 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
11149 equiv_mem_modified, validate_equiv_mem_from_store,
11150 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
11151 contains_replace_regs, memref_referenced_p, memref_used_between_p,
11152 no_equiv, recorded_label_ref): Move from local-alloc.c.
11153 (update_equiv_regs): Ditto. Make it static.
11154 (print_insn_chain, print_insn_chains): Move it from global.c.
bf9b2cc9 11155 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
2af2dbdc
VM
11156 (build_insn_chain): Ditto. Make it static.
11157 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
11158 Rename to init_live_subregs.
11159 (gate_ira): Remove flag_ira.
11160
11161 * regclass.c: Rename reginfo.c. Change file description.
11162 (FORBIDDEN_INC_DEC_CLASSES): Remove.
dbf9ee15 11163 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
2af2dbdc
VM
11164 (init_reg_sets_1): Remove code for evaluation of
11165 reg_class_superclasses and losing_caller_save_reg_set.
11166 (init_regs): Remove init_reg_autoinc.
11167 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
11168 ok_for_base_p_nonstrict): Remove.
bf9b2cc9 11169 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
2af2dbdc
VM
11170 (pass_regclass_init): Rename to pass_reginfo_init. Modify
11171 corresponding entries.
11172 (dump_regclass, record_operand_costs, scan_one_insn,
11173 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
11174 record_address_regs, auto_inc_dec_reg_p): Remove.
11175 (gt-regclass.h): Rename to gt-reginfo.h.
11176
11177 * rtl.h (dump_global_regs, retry_global_alloc,
bf9b2cc9 11178 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
2af2dbdc
VM
11179
11180 * Makefile.in (RA_H): Remove.
11181 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
11182 Rename regclass.o to reginfo.o.
11183 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
11184 gt-reginfo.h.
11185 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
11186 (GTFILES): Rename regclass.c to reginfo.c.
11187
11188 * passes.c (init_optimization_passes): Remove pass_local_alloc and
bf9b2cc9 11189 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
2af2dbdc
VM
11190
11191 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
11192 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
11193 Remove flag_ira.
6b67572e 11194 (finish_spills): Ditto. Remove code for !flag_ira.
2ba9daa7 11195
c95b2534 111962009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
00b251a0
KZ
11197
11198 PR middle-end/35854
11199 * doc/invoke.texi (rtl debug options): Complete rewrite.
11200 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
11201 to auto_inc_dec".
11202 * mode-switching.c (pass_mode_switching): Rename pass from
11203 "mode-sw" to "mode_sw".
11204 * except.c (pass_convert_to_eh_ranges): Rename pass from
11205 "eh-ranges" to "eh_ranges".
11206 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
11207 to "subreg1".
2ba9daa7
AS
11208
11209
72a54528
AM
112102009-01-29 Andrey Belevantsev <abel@ispras.ru>
11211 Alexander Monakov <amonakov@ispras.ru>
11212
11213 PR middle-end/38857
11214 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
11215 register.
11216 (move_exprs_to_boundary): Change return type and pass through
11217 should_move from move_op. Relax assert. Update usage ...
11218 (schedule_expr_on_boundary): ... here. Use should_move instead of
11219 cant_move.
11220 (move_op_orig_expr_found): Indicate that insn was disconnected from
11221 stream.
11222 (code_motion_process_successors): Do not call after_merge_succs
11223 callback if original expression was not found when traversing any of
11224 the branches.
11225 (code_motion_path_driver): Change return type. Update prototype.
11226 (move_op): Update comment. Add a new parameter (should_move). Update
11227 prototype. Set *should_move based on indication provided by
11228 move_op_orig_expr_found.
11229
001b9eb6
PH
112302009-01-28 Pat Haugen <pthaugen@us.ibm.com>
11231
11232 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
11233 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
11234 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
11235 * config/rs6000/rs6000.c (rs6000_override_options): Default
11236 avoid-indexed-addresses on for Power6, off for everything else.
11237 (avoiding_indexed_address_p): New function.
11238 (rs6000_legitimize_address): Use it.
11239 (rs6000_legitimate_address): Likewise.
11240 * config/rs6000/rs6000.md (movXX_updateX): Likewise
11241
59dc4898
KH
112422009-01-28 Kazu Hirata <kazu@codesourcery.com>
11243
11244 PR tree-optimization/38997
11245 * tree-loop-distribution.c (generate_memset_zero): Use
11246 POINTER_PLUS_EXPR for a pointer addition.
11247
07da44ab
AK
112482009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
11249
11250 * config/s390/s390.md (bswap<mode>2): New pattern added.
11251
cdc15d23
WG
112522009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
11253
11254 * config/s390/s390.md (*tls_load_31): Added type attribute.
11255
d46f24b6
WG
112562009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
11257
11258 * config/s390/s390.md: Fix a few comments.
11259
729e750f
WG
112602009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
11261
11262 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
11263 (*tm<mode>_full): Fixed z10prop attribute.
11264 (*tst<mode>_extimm): Fixed z10prop attribute.
11265 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
11266 (*tstqiCCT_cconly): Fixed z10prop attribute.
11267 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
11268 (*movsi_larl): Fixed z10prop attribute.
11269 (*movsi_zarch): Fixed z10prop attribute.
11270 (*movsi_eas): Fixed z10prop attribute.
11271 (*movhi): Fixed z10prop attribute.
11272 (*movqi): Fixed z10prop attribute.
11273 (*movstrictqi): Fixed z10prop attribute.
11274 (*mov<mode>): Fixed z10prop attribute.
11275 (*movcc): Fixed z10prop attribute.
11276 (*sethighpartdi_64): Fixed z10prop attribute.
11277 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
11278 (*negdi2_sign_cc): Fixed z10prop attribute.
11279 (*negdi2_sign): Fixed z10prop attribute.
11280 (*absdi2_sign_cc): Fixed z10prop attribute.
11281 (*absdi2_sign): Fixed z10prop attribute.
11282 (*negabsdi2_sign_cc): Fixed z10prop attribute.
11283 (*negabsdi2_sign): Fixed z10prop attribute.
11284 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
11285 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
11286 (doloop_si64): Fixed z10prop attribute.
11287 (doloop_si31): Fixed z10prop attribute.
11288 (doloop_long): Fixed z10prop attribute.
11289 (indirect_jump): Fixed z10prop attribute.
11290 (nop): Fixed z10prop attribute.
11291 (main_base_64): Fixed z10prop attribute.
11292 (reload_base_64): Fixed z10prop attribute.
11293
c7789bfb
JJ
112942009-01-28 Jakub Jelinek <jakub@redhat.com>
11295
11296 PR rtl-optimization/38740
6b67572e
UB
11297 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
11298 if !optimize.
c7789bfb
JJ
11299 * config/mips/mips.c (mips_reorg): Likewise.
11300
de081cfd
RG
113012009-01-28 Richard Guenther <rguenther@suse.de>
11302
11303 PR tree-optimization/38926
11304 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
11305 with the correct value id to a value.
11306 (do_regular_insertion): Use the value number of edoubleprime
11307 for the value number of the expr.
11308
11309 Revert
11310 2008-08-21 Richard Guenther <rguenther@suse.de>
bf9b2cc9 11311
d748c406
UB
11312 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
11313 a PHI ask VN if it is already available.
11314 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
11315 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
de081cfd 11316
a9d386a1
JJ
113172009-01-28 Jakub Jelinek <jakub@redhat.com>
11318
11319 PR middle-end/38934
11320 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
11321 set to varying whenever max has TREE_OVERFLOW set, similarly
11322 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
11323
97a170cd
RG
113242009-01-28 Richard Guenther <rguenther@suse.de>
11325
11326 PR middle-end/38908
11327 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
11328 uninitialized aggregate uses in call arguments.
11329
89ebafc6
PB
113302009-01-28 Paolo Bonzini <bonzini@gnu.org>
11331
11332 PR tree-optimization/38984
11333 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
11334 the nothing_id variable if -fno-delete-null-pointer-checks.
11335
bef3c57b
UB
113362009-01-28 Uros Bizjak <ubizjak@gmail.com>
11337
11338 PR target/38988
11339 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
11340 (set_got_offset_rex64): Ditto.
11341
0c6390fa
L
113422009-01-27 H.J. Lu <hongjiu.lu@intel.com>
11343
11344 PR target/38941
11345 * doc/extend.texi: Improve local variable with asm reg.
11346
bee6fa6d
AN
113472009-01-27 Adam Nemet <anemet@caviumnetworks.com>
11348
11349 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
11350 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
11351 was not supplied then set warn_packed_bitfield_compat to the
11352 default value of 1.
11353 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
11354 against 1.
11355
b5c3dfbb
RG
113562009-01-27 Richard Guenther <rguenther@suse.de>
11357
11358 PR tree-optimization/38503
11359 * cfgexpand.c (expand_gimple_basic_block): Ignore
11360 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
11361 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
11362 variables that cannot have TBAA applied.
11363 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
11364 statements.
11365
d748c406 113662009-01-27 Uros Bizjak <ubizjak@gmail.com>
576de5cb
UB
11367
11368 PR middle-end/38969
11369 * calls.c (initialize_argument_information): Do not wrap complex
11370 arguments in SAVE_EXPR.
11371
9112bb38
AT
113722009-01-26 Andreas Tobler <a.tobler@schweiz.org>
11373
11374 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
5efb79fc 11375 (INSTALL_LIBGCC): Revert typo commit.
9112bb38 11376
4757704f
RG
113772009-01-26 Richard Guenther <rguenther@suse.de>
11378
11379 PR tree-optimization/38745
11380 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
11381 from special handling.
11382
e3e6cff4
RG
113832009-01-26 Richard Guenther <rguenther@suse.de>
11384
11385 PR tree-optimization/38745
11386 * tree-ssa.c (execute_update_addresses_taken): Do not include
11387 variables that cannot possibly be a register in not_reg_needs.
11388 Do not clear TREE_ADDRESSABLE on vars that may not become
11389 registers.
11390 * tree-ssa.c (update_alias_info_1): Include those in the set
11391 of addressable vars.
11392
dc874b53
RG
113932009-01-26 Richard Guenther <rguenther@suse.de>
11394
11395 PR middle-end/38851
11396 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
11397 * tree-ssa-dse.c: Include langhooks.h
11398 (execute_simple_dse): Remove stores with zero size.
11399
849421a3
JJ
114002009-01-24 Jakub Jelinek <jakub@redhat.com>
11401
11402 PR c/38957
11403 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
11404 as PLUS_EXPR.
11405
82f70421
JB
114062009-01-24 Julian Brown <julian@codesourcery.com>
11407
11408 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
11409 config/arm/linux-atomic.c.
11410 * config/arm/linux-atomic.c: New.
11411
863412d6
EB
114122009-01-24 Eric Botcazou <ebotcazou@adacore.com>
11413
11414 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
11415 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
11416 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
11417
8c684300
L
114182009-01-24 H.J. Lu <hongjiu.lu@intel.com>
11419
11420 PR c/38938
93f1527a 11421 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
8c684300
L
11422 properly.
11423
b840fb02
SP
114242009-01-24 Sebastian Pop <sebastian.pop@amd.com>
11425
11426 PR tree-optimization/38953
11427 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
11428 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
11429 (gloog): Split the exit of the scop when the scop exit is a loop exit.
11430 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
11431 changed the CFG.
11432
ecee559f
PB
114332009-01-24 Paul Brook <paul@codesourcery.com>
11434
11435 * config/arm/neon.md (neon_type): Move to arm.md.
11436 (neon_mov<VSTRUCT>): Add neon_type attribute.
11437 * config/arm/arm.md (neon_type): Move to here.
11438 (conds): Add "unconditioal" and use as default for NEON insns.
11439
61ad0914
BE
114402009-01-24 Ben Elliston <bje@au.ibm.com>
11441
11442 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
11443 void *' warning from -Wc++-compat.
11444 * Makefile.in (dominance.o-warn): Remove.
11445
38432148 114462009-01-23 Paolo Bonzini <bonzini@gnu.org>
9bacafeb
PB
11447
11448 PR tree-optimization/38932
11449 * fold-const.c (fold_unary_ignore_overflow): New.
11450 * tree.h (fold_unary_ignore_overflow): Declare.
11451 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
11452 * tree-ssa-sccvn.c (visit_reference_op_load,
11453 simplify_unary_expression): Likewise.
11454
2cd36c22
AN
114552009-01-22 Adam Nemet <anemet@caviumnetworks.com>
11456
11457 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
11458 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
11459 regardless of their type.
11460 * c-common.c (handle_packed_attribute): Don't ignore packed on
11461 bitfields.
11462 * c.opt (Wpacked-bitfield-compat): New warning option.
11463 * stor-layout.c (place_field): Warn if offset of a field changed.
11464 * doc/extend.texi (packed): Mention the ABI change.
11465 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
11466 (Warning Options): Add it to the list.
11467
e4e624ab
L
114682009-01-22 H.J. Lu <hongjiu.lu@intel.com>
11469
11470 * c-opts.c (c_common_post_options): Fix a typo in comments.
11471
d0ea0759
SE
114722009-01-22 Steve Ellcey <sje@cup.hp.com>
11473
11474 PR middle-end/38615
11475 * gimplify.c (gimplify_init_constructor): Fix promotion of const
11476 variables to static.
11477 * doc/invoke.texi (-fmerge-all-constants): Update description.
11478
87673f84
UB
114792009-01-22 Uros Bizjak <ubizjak@gmail.com>
11480
11481 PR target/38931
11482 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
11483 (*movdi_1_rex64): Use type "mmx" for alternative 5.
11484
96339268
RE
114852009-01-22 Richard Earnshaw <rearnsha@arm.com>
11486
11487 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
11488 a word boundary.
11489 (LOCAL_ALIGNMENT): Similarly.
11490
442dc742 114912009-01-22 Mark Shinwell <shinwell@codesourcery.com>
87673f84 11492 Joseph Myers <joseph@codesourcery.com>
442dc742
MS
11493
11494 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
11495 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
11496 * config/arm/arm-tune.md: Regenerate.
11497 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
11498 -march=iwmmxt2.
11499
9b34732e
MS
115002009-01-22 Mark Shinwell <shinwell@codesourcery.com>
11501
11502 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
11503 version number to five.
11504
03c2a308
DS
115052009-01-22 Dodji Seketeli <dodji@redhat.com>
11506
11507 PR c++/38930
ba20e309 11508 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
03c2a308
DS
11509 * c-common.c (set_underlying_type): Likewise.
11510 (is_typedef_decl ): Likewise
11511 * tree.h: Likewise
11512 (set_underlying_type): Likewise.
11513 (is_typedef_type): Likewise.
11514
1240d76e
VM
115152009-01-21 Vladimir Makarov <vmakarov@redhat.com>
11516
11517 PR middle-end/38587
11518 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
11519 crossing setjmps.
11520
b8a1087d
DK
115212009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
11522
11523 PR bootstrap/37660
11524 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
11525 (LIBGCC_SPEC): Don't define.
11526 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
11527
435da628
UB
115282009-01-21 Uros Bizjak <ubizjak@gmail.com>
11529
11530 PR rtl-optimization/38879
11531 * alias.c (base_alias_check): Unaligned access via AND address can
11532 alias all surrounding object types except those with sizes equal
11533 or wider than the size of unaligned access.
11534
d597b3ce
DS
115352009-01-21 Dodji Seketeli <dodji@redhat.com>
11536
11537 PR c++/26693
ba20e309 11538 * c-decl.c (clone_underlying_type): Move this ...
d597b3ce 11539 * c-common.c (set_underlying_type): ... here.
435da628 11540 Also, make sure the function properly sets TYPE_STUB_DECL() on
d597b3ce
DS
11541 the newly created typedef variant type.
11542 (is_typedef_decl ): New entry point.
11543 * tree.h: Added a new member member_types_needing_access_check to
11544 struct tree_decl_non_common.
11545 (set_underlying_type): New entry point.
11546 (is_typedef_type): Likewise.
11547
71a6fe66
BM
115482009-01-21 Bingfeng Mei <bmei@broadcom.com>
11549
11550 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
11551 Check whether two instructions have memory references that
11552 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
11553 are helper functions for traversing.
11554 * alias.h (insn_alias_sets_confilict_p): New prototypes.
11555 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
11556 not to draw dependency edge for instructions with non-conflicting
11557 alias sets.
11558
5a248274
JM
115592009-01-20 Joseph Myers <joseph@codesourcery.com>
11560
11561 PR other/38758
6b67572e
UB
11562 * longlong.h: Update copyright years. Use soft-fp license notice.
11563 Sync __clz_tab declaration with glibc.
5a248274 11564
4b84f3de
SE
115652009-01-20 Steve Ellcey <sje@cup.hp.com>
11566
11567 PR target/30687
11568 * doc/extend.texi (syscall_linkage): New.
11569 (version_id): Modify.
11570
37348bf1 115712009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
435da628 11572 Richard Guenther <rguenther@suse.de>
37348bf1
AP
11573
11574 PR tree-optimization/38747
11575 PR tree-optimization/38748
11576 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
11577 conversion if the base address is an indirect reference and the
11578 aliasing sets could cause issues.
11579
d0a58904
SP
115802009-01-20 Sebastian Pop <sebastian.pop@amd.com>
11581
2ba9daa7 11582 * common.opt (fgraphite, fgraphite-identity): Add comment for
d0a58904
SP
11583 explaining why these options are not documented.
11584
71e7afb2
SP
115852009-01-20 Sebastian Pop <sebastian.pop@amd.com>
11586
11587 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
11588 gimple_call_lhs is NULL.
11589
38432148 115902009-01-20 Paolo Bonzini <bonzini@gnu.org>
09efeca1
PB
11591
11592 PR target/38868
11593 * emit-rtl.c (adjust_address_1): Make sure memref is never
11594 overwritten.
11595
cbb8dee3
BE
115962009-01-20 Ben Elliston <bje@au.ibm.com>
11597
11598 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
435da628 11599 const qualifier from arg parameter. Remove unnecessary cast to char *.
cbb8dee3
BE
11600 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
11601 const qualifier from arg 2.
11602
72c66596
IS
116032009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
11604
435da628 11605 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
72c66596 11606
f68211cd
VM
116072009-01-19 Vladimir Makarov <vmakarov@redhat.com>
11608
11609 PR c/38869
11610 * rtl.h (reinit_regs): New prototype.
11611 * regclass.c: Include ira.h.
11612 (reinit_regs): New.
11613 * Makefile.in (regclass.o): Add ira.h.
11614 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
11615
6e4f1168
L
116162009-01-18 H.J. Lu <hongjiu.lu@intel.com>
11617
11618 PR target/38736
11619 * c-common.c (handle_aligned_attribute): Use
11620 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
11621 default alignment value.
11622
11623 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
11624
11625 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
11626 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
11627
11628 * doc/extend.texi: Update __attribute__ ((aligned)). Document
11629 __BIGGEST_ALIGNMENT__.
11630
11631 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
11632
890065bf
RG
116332009-01-18 Richard Guenther <rguenther@suse.de>
11634
11635 PR tree-optimization/38819
11636 * tree-flow.h (operation_could_trap_helper_p): Declare.
11637 * tree-eh.c (operation_could_trap_helper_p): Export.
11638 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
11639 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
11640 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
11641 are about to insert a possibly trapping instruction and fail
11642 in this case.
11643
a729d731
AS
116442009-01-18 Andreas Schwab <schwab@suse.de>
11645
11646 * doc/install.texi (Configuration): Remove obsolete paragraph
11647 about use of --with-gnu-ld with --with-gnu-as.
11648
a640c13b
KH
116492009-01-18 Kazu Hirata <kazu@codesourcery.com>
11650
11651 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
11652 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
11653 Follow spelling conventions.
11654
dba2cc0c
BE
116552009-01-18 Ben Elliston <bje@au.ibm.com>
11656
11657 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
11658 C++ warning about implicit conversion from void * to struct
11659 bitmap_head_def *.
11660 (bitmap_obstack_free): Likewise for bitmap_element *.
bc127c63 11661 * Makefile.in (bitmap.o-warn): Remove.
dba2cc0c 11662
2207a498
DK
116632009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
11664
11665 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
11666
8137e465
SP
116672009-01-17 Sebastian Pop <sebastian.pop@amd.com>
11668 Tobias Grosser <tobi.grosser@amd.com>
11669
11670 * graphite.c (graphite_trans_scop_block): Do not block single
11671 nested loops.
11672
5be1c58c
AO
116732009-01-16 Alexandre Oliva <aoliva@redhat.com>
11674
11675 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
11676 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
11677 test with assertion.
11678
786ce82d
RG
116792009-01-16 Richard Guenther <rguenther@suse.de>
11680
11681 PR tree-optimization/38835
11682 PR middle-end/36227
11683 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
11684 and INT + PTR -> (INT)(PTR p+ INT) folding.
11685 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
11686
c1cb09ad
AN
116872009-01-16 Adam Nemet <anemet@caviumnetworks.com>
11688
11689 PR target/38554
11690 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
11691 the subreg from a lowpart subreg if it is also casting the value.
11692
bcab4e19
SP
116932009-01-16 Sebastian Pop <sebastian.pop@amd.com>
11694 Tobias Grosser <tobi.grosser@amd.com>
11695
11696 * graphite.c (compare_prefix_loops): New.
11697 (build_scop_canonical_schedules): Rewritten.
11698 (graphite_transform_loops): Move build_scop_canonical_schedules
11699 after build_scop_iteration_domain.
11700
0b040072
SP
117012009-01-16 Sebastian Pop <sebastian.pop@amd.com>
11702 Tobias Grosser <tobi.grosser@amd.com>
11703
2ba9daa7 11704 * graphite.c (add_conditions_to_domain): Add the loops to
0b040072
SP
11705 the dimension of the iteration domain. Do copy the domain
11706 only when it exists.
11707 (build_scop_conditions_1): Do not call add_conditions_to_domain.
11708 (add_conditions_to_constraints): New.
11709 (can_generate_code_stmt, can_generate_code): Removed.
11710 (gloog): Do not call can_generate_code.
11711 (graphite_transform_loops): Call add_conditions_to_constraints
11712 after building the iteration domain.
11713
56c6a499
JJ
117142009-01-16 Jakub Jelinek <jakub@redhat.com>
11715
11716 PR tree-optimization/38789
11717 * tree-ssa-threadedge.c
11718 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
11719 __builtin_constant_p.
11720
c95b2534 117212009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
cd3f1729
KZ
11722
11723 * dce.c (delete_unmarked_insns): Reversed the order that insns are
11724 examined before deleting them.
2ba9daa7 11725
c433cb14
RE
117262009-01-16 Richard Earnshaw <rearnsha@arm.com>
11727
11728 * function.c (aggregate_value_p): Correctly extract the function
11729 type from CALL_EXPR_FN lookup.
11730
c95b2534 117312009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
27d62fa4
HS
11732
11733 * config/picochip/picochip.c (picochip_override_options): Revert
11734 CFI asm flag disable commited previously.
11735
c77bb78f
SP
117362009-01-15 Sebastian Pop <sebastian.pop@amd.com>
11737 Tobias Grosser <tobi.grosser@amd.com>
11738 Jan Sjodin <jan.sjodin@amd.com>
11739
11740 * graphite.c (scan_tree_for_params): On substractions negate
11741 all the coefficients of the term.
11742 (clast_to_gcc_expression_red): New. Handle reduction expressions
11743 of more than two operands.
11744 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
11745 (get_vdef_before_scop): Handle also the case of default definitions.
11746
574af2d6
RS
117472009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
11748
11749 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
11750 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
11751 Also use them when walking CALL_INSN_FUNCTION_USAGE.
11752
e939805b
L
117532009-01-15 H.J. Lu <hongjiu.lu@intel.com>
11754 Joey Ye <joey.ye@intel.com>
11755
11756 PR middle-end/37843
11757 * cfgexpand.c (expand_stack_alignment): Don't update stack
11758 boundary nor check incoming stack boundary here.
11759 (gimple_expand_cfg): Update stack boundary and check incoming
11760 stack boundary here.
11761
c95b2534 117622009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
750900db 11763
435da628 11764 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
2ba9daa7 11765
0196c95e
JJ
117662009-01-14 Jakub Jelinek <jakub@redhat.com>
11767
11768 PR rtl-optimization/38245
11769 * calls.c (expand_call): Add stack arguments to
11770 CALL_INSN_FUNCTION_USAGE even for pure calls (when
11771 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
11772 in regs and partially in memory or BLKmode arguments.
11773 (emit_library_call_value_1): Add stack arguments to
11774 CALL_INSN_FUNCTION_USAGE even for pure calls (when
11775 ACCUMULATE_OUTGOING_ARGS).
11776 * dce.c: Include tm_p.h.
11777 (find_call_stack_args): New function.
11778 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
11779 argument.
11780 (mark_insn): Call find_call_stack_args for CALL_Ps.
11781 (prescan_insns_for_dce): Walk insns backwards in bb rather than
11782 forwards. Allocate and free arg_stores bitmap if needed, pass it
11783 down to deletable_insn_p, don't mark stores set in arg_stores
11784 bitmap, clear the bitmap at the beginning of each bb.
11785 * Makefile.in (dce.o): Depend on $(TM_P_H).
11786
6df6bcfa
MM
117872009-01-14 Michael Meissner <gnu@the-meissners.org>
11788
11789 PR target/22599
435da628
UB
11790 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
11791 to make sure the insn is a conditional test (bug 22599). Reformat a
11792 few long lines.
6df6bcfa 11793
765ec70c
SP
117942009-01-14 Sebastian Pop <sebastian.pop@amd.com>
11795
11796 PR middle-end/38431
11797 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
11798 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
11799 (gloog): Do not call cleanup_tree_cfg.
2ba9daa7 11800 (graphite_transform_loops): Call cleanup_tree_cfg after all
765ec70c
SP
11801 scops have been code generated.
11802
7de2b688
BS
118032009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
11804 * doc/gty.texi (Invoking the garbage collector): Added new node
11805 and section documenting ggc_collect.
11806
10bd6c5c
RG
118072009-01-14 Richard Guenther <rguenther@suse.de>
11808
11809 PR tree-optimization/38826
11810 PR middle-end/38477
11811 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
11812 initialization notes only if we actually emitted a warning.
11813 (intra_create_variable_infos): Add constraints for a result decl
11814 that is passed by hidden reference.
11815 (build_pred_graph): Mark all related variables non-direct on
11816 address-taking.
11817
9c7c70ee
NC
118182009-01-14 Nick Clifton <nickc@redhat.com>
11819
11820 * ira-conflicts.c: Include addresses.h for the definition of
11821 base_reg_class.
435da628
UB
11822 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
11823 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
9c7c70ee 11824
cf0c2a60
VM
118252009-01-13 Vladimir Makarov <vmakarov@redhat.com>
11826
11827 PR target/38811
11828 * Makefile.in (ira-lives.o): Add except.h.
11829
11830 * ira-lives.c: Include except.h.
11831 (process_bb_node_lives): Process can_throw_internal.
11832
d3302fd3
JJ
118332009-01-13 Jakub Jelinek <jakub@redhat.com>
11834
11835 PR rtl-optimization/38774
11836 * combine.c (simplify_set): When undoing cc_use change, don't do
11837 PUT_CODE on the newly created comparison, but instead put back the
11838 old comparison.
11839
7ab23fd0
JM
118402009-01-13 Joseph Myers <joseph@codesourcery.com>
11841
11842 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
11843 values. Remove duplicate arm8 entry.
11844
f9344488
SP
118452009-01-13 Sebastian Pop <sebastian.pop@amd.com>
11846
11847 PR tree-optimization/38786
11848 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
11849 the SSA_NAME case of expand_scalar_variables_expr.
11850 Set the type of an expression to the type of its assign statement.
11851 (expand_scalar_variables_expr): Also gather the scalar computation
11852 used to index the memory access. Do not pass loop_p.
11853 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
11854 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
bef3c57b
UB
11855 the gimple_stmt_iterator where it inserts new code.
11856 Do not pass loop_p.
f9344488
SP
11857 (copy_bb_and_scalar_dependences): Do not pass loop_p.
11858 (translate_clast): Update call to copy_bb_and_scalar_dependences.
11859
2d8bb84d
SP
118602009-01-13 Sebastian Pop <sebastian.pop@amd.com>
11861
11862 * graphite.h (debug_value): Removed.
11863 * graphite.c (debug_value): Removed.
11864
ff128632
RE
118652009-01-13 Richard Earnshaw <rearnsha@arm.com>
11866
435da628
UB
11867 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
11868 ldrd/strd with two 32-bit instructions.
ff128632 11869
d5a0a47b
RE
118702009-01-13 Richard Earnshaw <rearnsha@arm.com>
11871
435da628
UB
11872 * config/arm/arm.c (struct processors): Pass for speed down into
11873 cost helper functions.
d5a0a47b
RE
11874 (const_ok_for_op): Handle COMPARE and inequality nodes.
11875 (arm_rtx_costs_1): Rewrite.
11876 (arm_size_rtx_costs): Update prototype.
11877 (arm_rtx_costs): Pass speed down to helper functions.
11878 (arm_slowmul_rtx_costs): Rework cost calculations.
11879 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
11880 (arm_9e_rtx_costs): Likewise.
11881
26d5bf5b
UB
118822009-01-13 Uros Bizjak <ubizjak@gmail.com>
11883
11884 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
435da628 11885 relocations of local symbols wider than UNITS_PER_WORD are not valid.
26d5bf5b
UB
11886 (alpha_legitimize_address): Do not split local symbols wider than
11887 UNITS_PER_WORD into HIGH/LO_SUM parts.
11888
5d14e3d5
DS
118892009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
11890
11891 PR bootstrap/38580
11892 * gcc.c (process_command): Replace call to execvp with calls
11893 to pex_one and exit.
11894
33faafca
AS
118952009-01-03 Anatoly Sokolov <aesok@post.ru>
11896
11897 PR target/29141
11898 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
11899 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
11900 variant for devices with 3-byte PC.
ba20e309 11901 (__tablejump_elpm__): New.
33faafca 11902
634b5df5
JJ
119032009-01-12 Jakub Jelinek <jakub@redhat.com>
11904
11905 PR c/32041
11906 * c-parser.c (c_parser_postfix_expression): Allow `->' in
11907 offsetof member-designator, handle it as `[0].'.
11908
2842bb86
JDA
119092009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11910
11911 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
11912 function when not using named sections on targets with named sections
11913 if branch distance is less than 262132.
11914
76ee70f6
RE
119152009-01-12 Richard Earnshaw <rearnsha@arm.com>
11916
11917 * combine.c (combine_instructions): Recompute
11918 optimize_this_for_speed_p for each BB in the main combine loop.
11919
f56e675d
TB
119202009-01-12 Tomas Bily <tbily@suse.cz>
11921
11922 PR middlend/38385
26d5bf5b
UB
11923 * tree-loop-distribution.c (prop_phis): New function.
11924 (generate_builtin): Call prop_phis.
11925 * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
f56e675d 11926
c2152239
JJ
119272009-01-12 Jakub Jelinek <jakub@redhat.com>
11928
11929 PR tree-optimization/38807
11930 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
11931 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
11932
0e510b3e
AN
119332009-01-11 Adam Nemet <anemet@caviumnetworks.com>
11934
11935 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
11936 subreg of op0 to the original op0.
11937
c95b2534 119382009-01-11 Laurent GUERBY <laurent@guerby.net>
10270471
LG
11939
11940 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
2ba9daa7 11941
53a7ff9a
MS
119422009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
11943
11944 PR debug/7055
60839f5d 11945 * mips-tfile.c (parse_def): Fix parsing of def strings
53a7ff9a
MS
11946 starting with digits.
11947
b3a796bc
JJ
119482009-01-10 Jakub Jelinek <jakub@redhat.com>
11949
11950 PR target/38695
11951 * config/arm/arm.c (arm_is_long_call_p): Don't call
11952 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
11953
b21b850e
SB
119542009-01-09 Steven Bosscher <steven@gcc.gnu.org>
11955
11956 * regrename.c (regrename_optimize): Fix dumping.
11957 (find_oldest_value_reg): Preserve REG_POINTER.
11958 (copy_hardreg_forward_1): Likewise.
11959
e0e10d3a
DN
119602009-01-09 Diego Novillo <dnovillo@google.com>
11961
bf9b2cc9 11962 * gimple.h (struct gimple_statement_base) <uid>: Document
e0e10d3a
DN
11963 the restrictions on its use.
11964 (gimple_uid): Tidy.
11965 (gimple_set_uid): Tidy.
11966
c9da2ae8
JJ
119672009-01-09 Jakub Jelinek <jakub@redhat.com>
11968
11969 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
11970 zero guard even if align_bytes != 0 and count is smaller than
11971 size_needed.
11972
38432148 119732009-01-09 Vladimir Makarov <vmakarov@redhat.com>
a174c19c
VM
11974
11975 PR rtl-optimization/38495
26d5bf5b 11976 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
a174c19c
VM
11977 (add_range_and_copies_from_move_list): Print all added ranges.
11978 Add ranges to memory optimized destination.
11979
260fda3d
JJ
119802009-01-09 Jakub Jelinek <jakub@redhat.com>
11981
6f6278ad
JJ
11982 PR target/38686
11983 PR target/38708
11984 * config/i386/i386.c (override_options): Reject
11985 -mstringop-strategy=rep_8byte with -m32.
11986 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
11987 to 1. Do count comparison against epilogue_size_needed at compile
11988 time even when count_exp was constant forced into register. For
11989 size_needed don't jump to epilogue, instead just avoid aligning
11990 and invoke the body algorithm. If need_zero_guard, add zero guard
11991 even if count is non-zero, but smaller than size_needed + number of
11992 bytes that could be stored for alignment.
11993 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
11994 to 1. If need_zero_guard, add zero guard even if count is non-zero,
11995 but smaller than size_needed + number of bytes that could be stored
11996 for alignment. Compare size_needed with epilogue_size_needed instead
11997 of desired_align - align, don't adjust size_needed, pass
11998 epilogue_size_needed to the epilogue expanders.
11999
260fda3d 12000 PR c/35742
26d5bf5b 12001 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
260fda3d 12002
67b846fa
JDA
120032009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12004
12005 * pa.c (last_address): Change to unsigned.
12006 (update_total_code_bytes): Change argument to unsigned. Don't
12007 check if insn addresses are set.
12008 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
12009 addresses are not set.
12010 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
12011
91c82473
NC
120122009-01-09 Nick Clifton <nickc@redhat.com>
12013
12014 * config/sh/symbian.c: Replace uses of DECL_INLINE with
12015 DECL_DECLARED_INLINE_P.
12016
4017e262
JJ
120172009-01-09 Jakub Jelinek <jakub@redhat.com>
12018
0a49e5c2
JJ
12019 PR middle-end/38347
12020 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
12021 GET_MODE (op0) in operand_subword_force calls.
12022
4017e262
JJ
12023 PR middle-end/38771
12024 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
12025 fold_convert arg0 operands to TREE_TYPE (op0) first.
12026
7cd06356
VM
120272009-01-08 Vladimir Makarov <vmakarov@redhat.com>
12028
12029 * params.def (ira-max-conflict-table-size): Decrease default value
12030 to 1000.
12031
96867bbd
JJ
120322009-01-08 Jakub Jelinek <jakub@redhat.com>
12033
12034 PR tree-optimization/37031
12035 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
12036 on parameter_set.
12037 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
12038 allocate it using gc instead of heap, use VEC_quick_push instead of
12039 VEC_safe_push.
12040 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
12041 instead of heap, use VEC_quick_push instead of VEC_safe_push.
12042 * tree-data-ref.h (struct access_matrix): Change matrix to gc
12043 allocated vector from heap allocated.
12044 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
12045 * tree-loop-linear.c (linear_transform_loops): Allocate nest
12046 vector only after perfect_loop_nest_depth call.
12047
68f61c3d
SP
120482009-01-08 Sebastian Pop <sebastian.pop@amd.com>
12049 Jan Sjodin <jan.sjodin@amd.com>
12050
12051 PR tree-optimization/38559
12052 * graphite.c (debug_value, copy_constraint,
12053 swap_constraint_variables, scale_constraint_variable, ): New.
12054 (get_lower_bound, get_upper_bound): Removed.
12055 (graphite_trans_bb_strip_mine): Clean up this code that works
12056 only for constant number of iterations. Fully copy upper and
12057 lower bound constraints, not only the constant part of them.
12058 * graphite.h (debug_value): Declared.
12059
82567e33
IR
120602009-01-08 Ira Rosen <irar@il.ibm.com>
12061
12062 PR tree-optimization/37194
12063 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
2ba9daa7 12064 Don't add the cost of cost model guard in prologue to scalar
82567e33
IR
12065 outside cost in case of known number of iterations.
12066
7da13f1d
NF
120672009-01-07 Nathan Froyd <froydnj@codesourcery.com>
12068 Alan Modra <amodra@bigpond.net.au>
12069
12070 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
12071 non-word-aligned REG+CONST addressing.
12072
c0f64575
UB
120732009-01-07 Uros Bizjak <ubizjak@gmail.com>
12074
12075 PR target/38706
12076 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
12077 free_after_compilation when outputting a thunk.
12078 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
12079 Do not call free_after_compilation here.
12080
301b6a4e
UB
120812009-01-07 Uros Bizjak <ubizjak@gmail.com>
12082
12083 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
301b6a4e
UB
12084 (ix86_valid_target_attribute_inner_p): Ditto.
12085
6a114766
JS
120862009-01-07 Jan Sjodin <jan.sjodin@amd.com>
12087
12088 PR tree-optimization/38492
12089 PR tree-optimization/38498
12090 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
12091 * tree-chrec.h (scev_is_linear_expression): Declared.
12092 * graphite.c (graphite_cannot_represent_loop_niter): New.
12093 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
12094 (graphite_loop_normal_form): Use gcc_assert.
12095 (scan_tree_for_params): Use CASE_CONVERT.
12096 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
12097 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
12098 Use gcc_assert. Discard scops that contain unhandled cases.
12099 (build_scop_conditions): Return a boolean status for unhandled cases.
12100 (strip_mine_profitable_p): Print the loop number, not its depth.
12101 (is_interchange_valid): Pass the depth of the loop nest, don't
12102 recompute it wrongly.
12103 (graphite_trans_bb_block): Same.
12104 (graphite_trans_bb_block): Print tentative of loop blocking.
12105 (graphite_trans_scop_block): Do not print that the loop has been
12106 blocked.
12107 (graphite_transform_loops): Do not handle scops that contain condition
12108 scalar phi nodes.
12109
65b82caa
L
121102009-01-07 H.J. Lu <hongjiu.lu@intel.com>
12111
12112 AVX Programming Reference (December, 2008)
12113 * config/i386/avxintrin.h (_mm256_stream_si256): New.
12114 (_mm256_stream_pd): Likewise.
12115 (_mm256_stream_ps): Likewise.
12116
12117 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
12118 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
12119 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
12120 (bdesc_special_args): Add __builtin_ia32_movntdq256,
12121 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
12122 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
12123 (ix86_expand_special_args_builtin): Likewise.
12124
12125 * config/i386/sse.md (AVXMODEDI): New.
12126 (avx_movnt<mode>): Likewise.
12127 (avx_movnt<mode>): Likewise.
12128 (<sse>_movnt<mode>): Remove AVX support.
12129 (sse2_movntv2di): Likewise.
12130
cef158f9
RG
121312009-01-07 Richard Guenther <rguenther@suse.de>
12132
12133 PR middle-end/38751
12134 * fold-const.c (extract_muldiv): Remove obsolete comment.
12135 (fold_plusminus_mult_expr): Undo MINUS_EXPR
12136 to PLUS_EXPR canonicalization for the canonicalization.
12137
246cb5be
GP
121382009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
12139
12140 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
12141 hosted cross-compilers generating less efficient code.
12142
84b9b872
RS
121432009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
12144
12145 * function.h (rtl_data): Add a dbr_scheduled_p field.
12146 * reorg.c (dbr_schedule): Set it.
12147 (gate_handle_delay_slots): Check it.
12148 * config/mips/mips.c (mips_base_delayed_branch): Delete.
12149 (mips_reorg): Check flag_delayed_branch instead of
12150 mips_base_delayed_branch.
12151 (mips_override_options): Don't set mips_base_delayed_branch
12152 or flag_delayed_branch.
12153
ace984c8
RS
121542009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
12155
12156 PR rtl-optimization/38426.
12157 * ira.c (ira): Set current_function_is_leaf earlier.
12158
7ad7809b
JJ
121592009-01-06 Jakub Jelinek <jakub@redhat.com>
12160
12161 PR rtl-optimization/38722
12162 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
12163 too early, only set a flag and modify after last possible
12164 undo_all point.
12165
c52ec948
JJ
121662009-01-06 Janis Johnson <janis187@us.ibm.com>
12167
12168 PR c/34252
12169 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
12170 * real.c (decimal_single_format): Correct values of emin and emax.
12171 (decimal_double_format): Ditto.
12172 (decimal_quad_format): Ditto.
12173 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
12174 computation of DECnn_MIN and DECnn_MAX for corrected values of
12175 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
12176 __DECnn_MIN__, and adjust its computation for the corrected value
12177 of emin.
12178
300240e1
JH
121792009-01-06 Jan Hubicka <jh@suse.cz>
12180
12181 PR target/38744
435da628 12182 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
300240e1 12183
271c069e
GP
121842009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
12185
12186 * doc/contrib.texi (Contributors): Slightly adjust the end note.
12187 Add Robert Clark to the list of testers.
12188
64e4c301 121892009-01-06 Jan Hubicka <jh@suse.cz>
c95b2534 12190 Kai Tietz <kai.tietz@onevision.com>
64e4c301 12191
435da628
UB
12192 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
12193 * config/i386/i386.c (ix86_expand_call): Add clobbers.
64e4c301 12194
7650b83e 121952009-01-06 Jan Hubicka <jh@suse.cz>
c95b2534 12196 Kai Tietz <kai.tietz@onevision.com>
7650b83e 12197
435da628
UB
12198 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
12199 for w64 ABI.
12200 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
7650b83e
JH
12201 (ix86_nsaved_regs): Count only general purpose regs.
12202 (ix86_nsaved_sseregs): New.
12203 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
12204 to 16 for w64; compute padding and size of sse reg save area.
301b6a4e
UB
12205 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
12206 general purpose regs.
7650b83e
JH
12207 (ix86_emit_save_sse_regs_using_mov): New.
12208 (ix86_expand_prologue): Save SSE regs if needed.
12209 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
12210 (ix86_emit_restore_sse_regs_using_mov): New.
12211 (ix86_expand_epilogue): Save SSE regs if needed.
12212
9aa5c1b2 122132009-01-06 Jan Hubicka <jh@suse.cz>
c95b2534 12214 Kai Tietz <kai.tietz@onevision.com>
9aa5c1b2 12215
435da628
UB
12216 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
12217 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
12218 functions when accumulate outgoing args is off.
9aa5c1b2 12219
f7556aae
L
122202009-01-06 H.J. Lu <hongjiu.lu@intel.com>
12221
12222 PR bootstrap/38742
12223 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
12224 before using pseudos_have_intersected_live_ranges_p.
12225
12226 * ira-int.h (ira_assert): Always define.
12227
e47b7d04
L
122282009-01-06 H.J. Lu <hongjiu.lu@intel.com>
12229
12230 AVX Programming Reference (December, 2008)
12231 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
12232 (_mm256_permute2_pd): Likewise.
12233 (_mm_permute2_ps): Likewise.
12234 (_mm256_permute2_ps): Likewise.
12235 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
12236 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
12237
12238 * config/i386/i386.c (ix86_builtins): Remove
12239 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
12240 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
12241 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
12242 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
12243 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
12244 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
12245 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
12246 __builtin_ia32_vpermil2ps256.
12247 (ix86_init_mmx_sse_builtins): Updated.
12248 (ix86_expand_args_builtin): Likewise.
12249
44b86471
JDA
122502009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12251
e47b7d04
L
12252 * pa.c (output_call): Relocate non-jump insns in the delay slot of
12253 long absolute calls when generating PA 2.0 code.
44b86471 12254
311aab06
VM
122552009-01-05 Vladimir Makarov <vmakarov@redhat.com>
12256
12257 PR rtl-optimization/38583
12258 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
12259
12260 * params.def (ira-max-conflict-table-size): New.
12261
12262 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
2ba9daa7 12263
311aab06 12264 * ira.h (ira_conflicts_p): New external definition.
2ba9daa7 12265
311aab06
VM
12266 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
12267 table. Report this. Return result of building.
12268 (ira_build_conflicts): Use ira_conflicts_p. Check result of
12269 building conflict table.
12270
301b6a4e 12271 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
311aab06 12272 (ira_color): Use ira_conflicts_p.
2ba9daa7 12273
311aab06
VM
12274 * global.c: Include ira.h.
12275 (pseudo_for_reload_consideration_p, build_insn_chain): Use
12276 ira_conflicts_p.
12277
12278 * Makefile.in (global.o): Add ira.h.
2ba9daa7 12279
311aab06
VM
12280 * ira-build.c (mark_all_loops_for_removal,
12281 propagate_some_info_from_allocno): New.
12282 (remove_unnecessary_allocnos): Call
12283 propagate_some_info_from_allocno.
12284 (remove_low_level_allocnos): New.
12285 (remove_unnecessary_regions): Add parameter. Call
12286 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
12287 parameter to remove_unnecessary_regions.
12288 (ira_build): Remove all regions but root if the conflict table was
12289 not built. Update conflict hard regs for allocnos crossing calls.
12290
12291 * ira.c (ira_conflicts_p): New global.
12292 (ira): Define and use ira_conflicts_p.
12293
12294 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
12295 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
301b6a4e 12296 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
2ba9daa7 12297
5641785f
BE
122982009-01-06 Ben Elliston <bje@au.ibm.com>
12299
12300 * gengtype-lex.l (YY_NO_INPUT): Define.
12301
e4e5261f
AP
123022009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
12303
12304 PR c/34911
5641785f
BE
12305 * c-common.c (handle_vector_size_attribute): Also reject
12306 BOOLEAN_TYPE types.
e4e5261f 12307
7b10257f
SP
123082009-01-05 Sebastian Pop <sebastian.pop@amd.com>
12309
12310 PR tree-optimization/38492
12311 * graphite.c (rename_map_elt, debug_rename_elt,
301b6a4e
UB
12312 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
12313 rename_map_elt_info, eq_rename_map_elts,
12314 get_new_name_from_old_name, bb_in_sese_p): Moved around.
7b10257f
SP
12315 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
12316 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
12317 (sese_build_livein_liveouts): New.
12318 (new_sese, free_sese): New.
12319 (new_scop): Call new_sese.
12320 (free_scop): Call free_sese.
12321 (rename_variables_from_edge, rename_phis_end_scop): Removed.
12322 (register_old_new_names): Renamed register_old_and_new_names.
12323 (register_scop_liveout_renames, add_loop_exit_phis,
12324 insert_loop_close_phis, struct igp,
12325 default_liveout_before_guard, add_guard_exit_phis,
12326 insert_guard_phis, copy_renames): New.
12327 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
12328 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
12329 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
12330 (scop_adjust_phis_for_liveouts): New.
12331 (gloog): Call scop_adjust_phis_for_liveouts.
12332
12333 * graphite.h (struct sese): Documented. Added fields liveout,
301b6a4e 12334 num_ver and livein.
7b10257f
SP
12335 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
12336 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
12337 (struct scop): Added field liveout_renames.
12338 (SCOP_LIVEOUT_RENAMES): New.
12339
9761fcc7
HJ
123402009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
12341
12342 PR tree-optimization/38510
12343 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
12344 (translate_clast): Call recompute_all_dominators before
12345 graphite_verify.
12346 (gloog): Call recompute_all_dominators before graphite_verify.
12347
123482009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
c95b2534 12349 Jan Sjodin <jan.sjodin@amd.com>
9761fcc7
HJ
12350
12351 PR tree-optimization/38500
12352 * graphite.c (create_sese_edges): Call fix_loop_structure after
12353 splitting blocks.
12354
c95b2534 123552009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
48a01864
JS
12356
12357 * config.gcc: Add m32r*-*-rtems*.
12358 * config/m32r/rtems.h: New file.
12359
fc0cd180
BE
123602009-01-05 Ben Elliston <bje@au.ibm.com>
12361
12362 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
12363 (.po.pox): Likewise.
12364 (po/gcc.pot): Likewise.
12365
3106d8e5
DM
123662009-01-04 David S. Miller <davem@davemloft.net>
12367
12368 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
12369 (STARTING_FRAME_OFFSET): Always set to zero.
12370
0009b473
RS
123712009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
12372
12373 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
12374 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
12375 fixed-point types, and vectors of the same.
12376
4f24c6d6
RS
123772009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
12378
12379 * config/mips/sync.md (*mb_barrier): Rename to...
12380 (*memory_barrier): ...this.
12381
1df48f5c
JW
123822009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
12383
12384 * doc/extend.texi (Function Attributes): Move @cindex after @item
eefe5da0 12385 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
1df48f5c
JW
12386 and put in alphabetical order. Fix 'target' name and put in order.
12387 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
12388 typos.
12389
1a8c13b3
UB
123902009-01-04 Uros Bizjak <ubizjak@gmail.com>
12391
12392 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
12393 (memory_barrier): Expand as unspec instead of unspec_volatile.
12394 Remove mem:BLK from insn operands. Use Pmode scratch register.
12395 (*memory_barrier): Define as unspec instead of unspec_volatile.
12396 Use (match_dup 0) as input operand.
12397
12398 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
12399 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
12400 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
12401 scratch register. Remove operand 1.
12402 (*stbar): Define as unspec instead of unspec_volatile.
12403 Use (match_dup 0) as input operand, remove (const_int 8).
12404 (*membar): Define as unspec instead of unspec_volatile.
12405 Use (match_dup 0) as input operand, remove input operand 2.
12406
12407 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
12408 (memory_barrier): Expand as unspec instead of unspec_volatile.
12409 Remove mem:BLK from insn operands. Use Pmode scratch register.
12410 (*memory_barrier): Define as unspec instead of unspec_volatile.
12411 Use (match_dup 0) as input operand.
12412
12413 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
12414 Remove mem:BLK from insn operands. Use Pmode scratch register.
12415 Set volatile flag on operand 0.
12416 (*memory_barrier): New insn pattern.
12417
12418 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
12419 insn operands.
12420 (*memory_barrier): Use (match_dup 0) as input operand.
12421
12422 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
12423 Remove mem:BLK from insn operands. Use Pmode scratch register.
12424 Set volatile flag on operand 0.
301b6a4e 12425 (*mb_internal): New insn pattern.
1a8c13b3
UB
12426
12427 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
12428
fb0703f7
SB
124292009-01-04 Steven Bosscher <steven@gcc.gnu.org>
12430
12431 PR middle-end/38586
12432 * function.c (struct temp_slot): Move to the section of the file
12433 that deals with temp slots. Remove field 'address'.
12434 (temp_slot_address_table): New hash table of address -> temp slot.
12435 (struct temp_slot_address_entry): New struct, items for the table.
12436 (temp_slot_address_compute_hash, temp_slot_address_hash,
12437 temp_slot_address_eq, insert_temp_slot_address): Support functions
12438 for the new table.
12439 (find_temp_slot_from_address): Rewrite to use the new hash table.
12440 (remove_unused_temp_slot_addresses): Remove addresses of temp
12441 slots that have been made available.
12442 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
12443 worker function for remove_unused_temp_slot_addresses.
12444 (assign_stack_temp_for_type): Don't clear the temp slot address list.
12445 Add the temp slot address to the address -> temp slot map.
12446 (update_temp_slot_address): Update via insert_temp_slot_address.
12447 (free_temp_slots): Call remove_unused_temp_slot_addresses.
12448 (pop_temp_slots): Likewise.
12449 (init_temp_slots): Allocate the address -> temp slot map, or empty
12450 the map if it is already allocated.
12451 (prepare_function_start): Initialize temp slot processing.
12452
b5a430f3
SB
124532009-01-04 Steven Bosscher <steven@gcc.gnu.org>
12454
12455 PR middle-end/38584
12456 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
12457 Calculate the size of all stack vars assuming no packing of stack
12458 vars will happen, replacing a quadratic algorithm with a linear one.
12459
5d560619
JJ
124602009-01-03 Jakub Jelinek <jakub@redhat.com>
12461
12462 PR target/38707
12463 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
12464 can't be used.
12465
953a7caa
DN
124662009-01-03 Diego Novillo <dnovillo@google.com>
12467
12468 * doc/contrib.texi: Update contributions.
12469
5f26a230
JJ
124702009-01-03 Jakub Jelinek <jakub@redhat.com>
12471
493aa551
JJ
12472 PR c++/38705
12473 * builtins.c (fold_builtin_memory_op): Give up if either operand
12474 is volatile. Set srctype or desttype to non-qualified version
12475 of the other type.
12476
5f26a230
JJ
12477 PR c/38700
12478 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
12479 and FUNCTION_DECLs.
12480
c95b2534 124812009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
fafe34f9
KZ
12482
12483 PR rtl-optimization/35805
12484 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
12485 problem if fast dce is able to remove any instructions.
12486 * dce.c (dce_process_block): Fix dump message.
2ba9daa7 12487
0b355794
MM
124882009-01-02 Mark Mitchell <mark@codesourcery.com>
12489
12490 PR 33649
12491 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
12492
0cf0d02b
JJ
124932009-01-02 Jakub Jelinek <jakub@redhat.com>
12494
12495 PR middle-end/38690
12496 * tree-flow.h (op_code_prio, op_prio): New prototypes.
12497 * tree-pretty-print.c (op_code_prio): New function.
12498 (op_prio): No longer static. Use op_code_prio.
12499 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
12500 Use op_prio and op_code_prio to determine if () should be
12501 printed around operand(s) or not.
12502
12503 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
12504 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
12505 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
12506 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
12507 pp_character instead of pp_string for single letter printing.
12508
e3606f3b
RS
125092009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
12510
12511 * doc/extend.texi: Fix '#pragma GCC option' typo.
12512
c95b2534 125132009-01-02 Richard Guenther <rguenther@suse.de>
00f39bd5 12514
a5f061dc
RG
12515 * doc/install.texi (--enable-checking): Mention different
12516 default for stage1.
12517 (--enable-stage1-checking): Document.
00f39bd5 12518
26de0bcb
AP
125192009-01-01 Andrew Pinski <pinskia@gmail.com>
12520
12521 PR middle-end/30142
12522 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
12523 case to be an error.
12524
7a7d8fab
BE
125252009-01-02 Ben Elliston <bje@au.ibm.com>
12526
12527 * config/fp-bit.h (pack_d): Constify argument.
12528 * config/fp-bit.c (makenan): Constify return type. Remove casts.
12529 (isnan): Constify argument.
12530 (isinf): Likewise.
12531 (iszero): Likewise.
12532 (pack_d): Likewise.
12533 (_fpadd_parts): Constify return type.
12534 (_fpmul_parts): Likewise.
12535 (_fpdiv_parts): Likewise.
12536
b295aee2
JJ
125372009-01-01 Jakub Jelinek <jakub@redhat.com>
12538
12539 PR c/36489
12540 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
12541 warn about overwriting initializer with side-effects or
12542 -Woverride-init if !IMPLICIT.
12543 (output_init_element): Likewise. Pass IMPLICIT down to
12544 add_pending_init.
12545 (process_init_element): Add IMPLICIT argument. Pass it down
12546 to output_init_element.
12547 (push_init_element, pop_init_level, set_designator): Adjust
12548 process_init_element callers.
12549 (set_nonincremental_init, set_nonincremental_init_from_string):
12550 Adjust add_pending_init callers.
12551 (output_pending_init_elements): Adjust output_init_element callers.
12552 * c-tree.h (process_init_element): Adjust prototype.
12553 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
12554 process_init_element callers.
ad41bd84
JM
12555
12556\f
12557Copyright (C) 2009 Free Software Foundation, Inc.
12558
12559Copying and distribution of this file, with or without modification,
12560are permitted in any medium without royalty provided the copyright
12561notice and this notice are preserved.