]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
re PR middle-end/42559 (ice in emit_block_move_hints with -O2)
[gcc.git] / gcc / ChangeLog
CommitLineData
a28ff68b
RG
12010-01-01 Richard Guenther <rguenther@suse.de>
2
3 PR middle-end/42559
4 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
5 for LABEL_DECLs.
6
8c7dc6eb
JJ
72009-12-31 Jakub Jelinek <jakub@redhat.com>
8
9 * tree-dump.c (dump_options): Don't set TDF_NOUID for all.
10
546831fe
DK
112009-12-31 Dave Korn <dave.korn.cygwin@gmail.com>
12 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
13
14 PR target/41605
15 * config/darwin.h (LINK_COMMAND_SPEC): Resolve fopenmp specifically
16 for target.
17 (LINK_SPEC): Replace dynamic libraries by static equivalents where
18 necessary.
19 * config/darwin9.h (LINK_COMMAND_SPEC): Resolve fopenmp specifically
20 for target.
21
8589115b
DK
222009-12-30 Dave Korn <dave.korn.cygwin@gmail.com>
23
24 PR lto/42531
25 * lto-streamer-out.c (produce_asm): Skip any leading asterisk when
26 using DECL_ASSEMBLER_NAME to generate a section name.
27 (copy_function): Likewise.
28
331fc6d8
AS
292009-12-30 Andreas Schwab <schwab@linux-m68k.org>
30
31 PR target/42516
32 * config/m68k/m68k.md (rotlsi_16): New insn.
33
d3ae6c2a
JM
342009-12-30 Joseph Myers <joseph@codesourcery.com>
35
36 PR c/42439
37 * c-decl.c (check_bitfield_type_and_width): Only pedwarn if
38 pedantic for bit-field width not an integer constant expression
39 but folding to one.
40
7417f6c0
IR
412009-12-30 Ira Rosen <irar@il.ibm.com>
42
43 PR tree-optimization/41956
331fc6d8 44 * tree-vect-slp.c (vect_supported_load_permutation_p): Add check that
7417f6c0
IR
45 the load indices differ.
46
529a66ea
UB
472009-12-30 Uros Bizjak <ubizjak@gmail.com>
48
49 PR target/42549
b8699cfb 50 * config/i386/mmx.md (*mmx_subv2sf3): Fix insn operand number for
529a66ea
UB
51 alternative 1.
52
84047858
RM
532009-12-30 Robert Millan <rmh.gcc@aybabtu.com>
54
55 PR other/42537
56 * errors.c: Fix typo in comment.
57 * graphite-sese-to-poly.c: Likewise.
58 * profile.c (is_inconsistent): Fix typo in string.
59
f6c1336c
ILT
602009-12-29 Ian Lance Taylor <iant@google.com>
61
62 PR middle-end/42099
63 * expmed.c (expand_divmod): Don't shift HOST_WIDE_INT value more
64 than HOST_BITS_PER_WIDE_INT.
65
981fb326
L
662009-12-29 H.J. Lu <hongjiu.lu@intel.com>
67
68 * config/i386/i386.c (ix86_expand_int_vcond): Reformat.
69
d8299715 702009-12-29 Dave Korn <dave.korn.cygwin@gmail.com>
529a66ea 71 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
d8299715
DK
72
73 PR objective-c++/41595
74 * config/darwin.c (darwin_label_is_anonymous_local_objc_name):
75 New function to recognize objective c/c++ internal symbols,
76 including mangled ones.
77 * config/darwin.h (ASM_OUTPUT_LABELREF): Use
78 darwin_label_is_anonymous_local_objc_name to detect both
79 mangled and clear ObjC internal symbols.
80
ca50f84a
L
812009-12-28 H.J. Lu <hongjiu.lu@intel.com>
82
83 PR middle-end/41344
84 * omp-low.c (diagnose_sb_2): Handle GIMPLE_COND.
85
17fad361
AH
862009-12-24 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
87
88 PR target/42457
89 * config/avr/avr.c (avr_extra_arch_macro): Remove static.
90 (avr_cpu_cpp_builtins): Remove.
91 * config/avr/avr.h (avr_extra_arch_macro): Add prototype.
92 * config/avr/avr-c.c: New File.
93 (avr_cpu_cpp_builtins) : Add.
94 * config/avr/t-avr: Add make information for avr-c.
84047858 95 * config.gcc (avr-*-*): Include avr-c.o as c and cpp object.
17fad361 96
846428f1
AH
972009-12-24 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
98
99 PR target/35013, 27192
100 * config/avr/avr.c (print_operand_address): Print correct program
101 memory address.
102 Add warning for large device offset addresses.
103 (avr_assemble_integer): Ditto.
104 (print_operand): Add warnings for incorrect addressing.
105 (out_movqi_r_mr): Tag assembler with new address codes.
106 (out_movhi_r_mr): Ditto.
107 (out_movsi_r_mr): Ditto.
108 (out_movqi_mr_r): Ditto.
109 (out_movhi_mr_r): Ditto.
110 (out_movsi_mr_r): Ditto.
111 * config/avr/predicates.md (text_segment_operand): New predicate.
112 * config/avr/avr.md (jump): Tag assembler with new address codes.
113 (call_insn): Ditto.
114 (call_value_insn): Ditto.
115 (*tablejump_lib): Ditto.
116 (*cbi): Ditto.
117 (*sbi): Ditto.
118 (indirect_jump): New define_expand.
119 (jcindirect_jump): New pattern for constant expression jump.
120 (njcindirect_jump): Renamed old indirect_jump.
121
b114d73a
SB
1222009-12-24 Steven Bosscher <steven@gcc.gnu.org>
123
124 * store-motion.c (build_store_vectors): Clear regs_set_in_block at
125 the start of a loop over basic blocks.
126
0986ef45 1272009-12-24 Julian Brown <julian@codesourcery.com>
ca50f84a 128 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
0986ef45 129
ca50f84a
L
130 PR target/40887
131 * config/arm/arm.c (output_call_mem): Remove armv5 support.
132 * config/arm/arm.md (*call_mem): Disable for armv5. Add note.
133 (*call_value_mem): Likewise.
0986ef45 134
7f7211fb
JJ
1352009-12-23 Jakub Jelinek <jakub@redhat.com>
136
137 PR rtl-optimization/42475
138 * combine.c (make_compound_operation) <case SUBREG>: Use mode of
139 SUBREG_REG (x) instead of tem's mode.
140
374b9cb8
JJ
1412009-12-23 Jakub Jelinek <jakub@redhat.com>
142 Cary Coutant <ccoutant@google.com>
143
144 PR debug/42454
b67d99f8
CC
145 * dwarf2out.c (add_ranges_by_labels): Conditionally Add DW_AT_ranges
146 attribute.
147 (dwarf2out_finish): Change calls to add_ranges_by_labels.
374b9cb8 148
83c3a2d8
RR
1492009-12-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
150
ca50f84a
L
151 PR target/42093
152 * config/arm/arm.h (CASE_VECTOR_PC_RELATIVE): Fix macro usage
153 to TARGET_THUMB1.
154 (CASE_VECTOR_SHORTEN_MODE): Allow signed offsets
155 only for TARGET_THUMB1.
83c3a2d8 156
07422036
RR
1572009-12-23 Ramana Radhakrishnan <ramrad01@arm.com>
158
159 PR target/40670
160 * config/arm/arm.md: Split for Thumb1 as well.
161
6e922f17
CC
1622009-12-22 Cary Coutant <ccoutant@google.com>
163
164 PR debug/42454
165 * dwarf2out.c (dwarf2out_finish): Don't output range for .text
166 section unless .text section was used. Likewise for cold.
167
56c51155
BH
1682009-12-22 Brian Hackett <bhackett1024@gmail.com>
169
170 * doc/plugins.texi: Rename pre-genericize event.
171
67018619
PC
1722009-12-22 Paolo Carlini <paolo.carlini@oracle.com>
173
174 PR driver/42463
175 * params.def ([PARAM_PREDICTABLE_BRANCH_OUTCOME]): Fix typo in
176 help string.
177
178 * doc/invoke.texi: Fix typo.
179
d17c29c3
PB
1802009-12-22 Paul Brook <paul@codesourcery.com>
181
182 * doc/tm.texi (ARG_POINTER_CFA_OFFSET): Document new default.
183 * defaults.h (ARG_POINTER_CFA_OFFSET): Add pretend_args_size.
184 * config/spu/spu.h (ARG_POINTER_CFA_OFFSET): Add pretend_args_size.
185
1c701f96
BH
1862009-12-21 Brian Hackett <bhackett1024@gmail.com>
187
188 * plugin.def: Rename pre-genericize event.
189 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
190 * c-decl.c (finish_function): Invoke callbacks on above event.
191
dcc1e1fa
JJ
1922009-12-21 Jakub Jelinek <jakub@redhat.com>
193
194 PR rtl-optimization/42429
195 * reload.c (find_reloads_subreg_address): When adjusting mode of
196 MEM, update also MEM_SIZE if it is set.
197
e0b0fd74
L
1982009-12-21 H.J. Lu <hongjiu.lu@intel.com>
199
200 PR bootstrap/42345
201 * acinclude.m4 (gcc_GAS_FLAGS): New.
202 (gcc_GAS_CHECK_FEATURE): Use gcc_GAS_FLAGS.
203 * configure: Regenerated.
204
e83f4b68
MM
2052009-12-20 Michael Matz <matz@suse.de>
206
207 PR tree-optimization/42027
208 * cfgexpand.c (expand_gimple_cond): Use jumpy sequence for &, &&, |
209 and || if jumps are cheap.
210
b0ce048a
RG
2112009-12-19 Richard Guenther <rguenther@suse.de>
212
213 PR lto/42401
529a66ea 214 * lto-streamer-out.c (tree_is_indexable): Local statics are indexable.
b0ce048a
RG
215 (lto_output_tree_ref): Adjust assert.
216
d0ca0bcb
RG
2172009-12-19 Richard Guenther <rguenther@suse.de>
218
219 PR tree-optimization/42108
220 * tree-ssa-sccvn.c (last_vuse_ptr): New variable.
221 (vn_reference_lookup_2): Update last seen VUSE.
222 (vn_reference_lookup_3): Avoid updating last seen VUSE after
223 translating.
224 (visit_reference_op_load): Use last seen VUSE from the first
225 lookup when entering into the table.
226
2a5e9d16
JR
2272009-12-19 Joern Rennecke <amylaar@spamcop.net>
228
229 * Makefile.in (PLUGIN_HEADERS): Add more headers.
230
231 * tree-pass.h (GCC_PASS_LISTS): Define.
232 (PASS_LIST_NO_all_lowering_passes): New enumeration value.
233 (PASS_LIST_NO_all_small_ipa_passes): Likewise.
234 (PASS_LIST_NO_all_regular_ipa_passes): Likewise.
235 (PASS_LIST_NO_all_lto_gen_passes): Likewise.
236 (PASS_LIST_NO_all_passes): Likewise.
237 (PASS_LIST_NUM): Likewise.
238 (gcc_pass_lists): Declare.
239 * passes.c (gcc_pass_lists): Define.
240
c82e0b3b
RG
2412009-12-18 Richard Guenther <rguenther@suse.de>
242
243 * tree-ssa-sccvn.c (copy_nary): New function.
244 (copy_phis): Likewise.
245 (copy_references): Likewise.
246 (process_scc): Avoid last iteration by copying the
247 optimistic table to the valid table.
248
1d6a3234
JJ
2492009-12-17 Jakub Jelinek <jakub@redhat.com>
250
251 * dwarf2out.c (loc_descriptor): For SYMBOL_REFs and LABEL_REFs
252 use DW_OP_addr+DW_OP_stack_value instead of DW_OP_implicit_value.
253 (add_const_value_attribute): For CONST_STRING, SYMBOL_REFs and
254 LABEL_REFs use DW_OP_addr+DW_OP_stack_value DW_AT_location instead of
255 DW_AT_const_value.
256
00ee9f44
AO
2572009-12-17 Alexandre Oliva <aoliva@redhat.com>
258
cbdd7479
AO
259 PR debug/41679
260 * var-tracking.c (count_uses): Count MO_VAL_USE of original
261 MO_VAL_SET value for COND_EXEC.
262 (add_stores): Handle conditional stores.
263
951d4497
AO
264 PR debug/41679
265 * var-tracking.c (use_type): Remove indirection from loc.
266 (count_uses): Dereference incoming loc early.
267 (add_uses): Dereference incoming loc early.
268
00ee9f44
AO
269 PR debug/41679
270 * var-tracking.c (add_stores): Avoid value mode mismatch for
271 promoted declarations.
272
3fd54fb0
JJ
2732009-12-17 Jakub Jelinek <jakub@redhat.com>
274
275 PR c++/42386
276 * ipa.c (function_and_variable_visibility): Clear same_comdat_group
277 links of DECL_EXTERNAL nodes.
278
a0274eae
SL
2792009-12-17 Sandra Loosemore <sandra@codesourcery.com>
280
281 * doc/rtl.texi (Vector Operations): Clarify vec_select result mode.
282
0c23e1be
JB
2832009-12-17 Julian Brown <julian@codesourcery.com>
284
285 * config/arm/bpabi-v6m.S (test_div_by_zero): New macro.
286 (aeabi_ldivmod, aeabi_uldivmod): Use above macro.
287 * config/arm/bpabi.S (test_div_by_zero): New macro.
288 (aeabi_ldivmod, aeabi_uldivmod): Use above macro.
289 * config/arm/lib1funcs.asm (ARM_LDIV0): Tail-call int div-by-zero
290 handler for EABI. Add signed/unsigned argument, pass correct value
291 to that handler.
292 (THUMB_LDIV0): Same, for Thumb.
293 (DIV_FUNC_END): Add signed argument.
294 (WEAK): New macro (for EABI).
295 (__udivsi3, __umodsi3): Add unsigned argument to DIV_FUNC_END. For
296 __udivsi3, add entry point which skips division-by-zero test.
297 (__divsi3, __modsi3): Add signed argument to DIV_FUNC_END.
298 (__aeabi_uidivmod, __aeabi_idivmod): Check for division by zero.
299 Call __udivsi3 or __divsi3 via entry points which skip
300 division-by-zero tests.
301 (__div0): Rename to __aeabi_idiv0, __aeabi_ldiv0 for EABI, and
302 declare those names weak.
303
e100f395
RG
3042009-12-17 Richard Guenther <rguenther@suse.de>
305
306 PR middle-end/42397
307 * builtins.c (get_object_alignment): Properly deal with
308 a CONST_DECL base.
529a66ea 309 * expr.c (emit_block_move_hints): Assert the alignment makes sense.
e100f395 310
fe6ae2da
UB
3112009-12-17 Uros Bizjak <ubizjak@gmail.com>
312
313 PR target/32280
314 * config/i386/i386-modes.def (V1TI): New vector mode.
315 * config/i386/i386.h (VALID_SSE_REG_MODE): Add V1TImode.
316 (SSE_REG_MODE_P): Ditto.
317 * config/i386/sse.md (SSEMODE16): New mode iterator.
318 (AVXMODE16): Ditto.
319 (avxvecmode): Handle V1TI mode.
320 (*avx_mov<mode>_internal): Use AVXMODE16 instead of AVXMODE.
321 (mov<mode>): Use SSEMODE16 instead of SSEMODE.
322 (*mov<mode>_internal): Ditto.
323 (push<mode>1): Ditto.
324 (movmisalign<mode>): Ditto.
325 (sse2_ashlv1ti): Rename from sse2_ashlti.
326 (sse2_lshrv1ti): Rename from sse2_lshrti.
327 (*avx_ashlv1ti): Rename from *avx_ashlti and move from i386.md.
328 (*avx_lshrv1ti): Rename from *avx_lshrti and move from i386.md.
329 (vec_shl_<mode>): Convert operands to V1TImode and use V1TI shift.
330 (vec_shr_<mode>): Ditto.
331 (*sse2_mulv4si3): Update for renamed sse2_ashlv1ti3.
332 (udot_prodv4si): Ditto.
333 * config/i386/i386.c (classify_argument): Handle V1TImode.
334 (function_arg_advance_32): Ditto.
335 (function_arg_32): Ditto.
336 (ix86_expand_sse4_unpack): Convert operands to V1TImode and update
337 for renamed gen_sse2_lshrv1ti3.
338 (ix86_expand_args_builtin) <V2DI_FTYPE_V2DI_INT_CONVERT>: Set rmode
339 to V1TImode.
340 (struct builtin_description) <__builtin_ia32_pslldqi128>: Update
341 for renamed sse2_ashlv1ti3.
342 <__builtin_ia32_psrldqi128>: Update for renamed sse2_lshrv1ti3.
529a66ea 343
fe6ae2da
UB
344 Revert:
345 2007-06-11 Uros Bizjak <ubizjak@gmail.com>
346
347 PR target/32280
348 * config/i386/sse.md ("sse2_ashlti", "sse2_lshrti3"): Move ...
349 * config/i386/i386.md ("sse2_ashlti", "sse2_lshrti3"): ... to here.
350
0f727c82
RE
3512009-12-17 Richard Earnshaw <rearnsha@arm.com>
352
353 PR target/42372
354 * arm.md (pic_add_dot_plus_eight): Change output constraint from
355 update to write.
356
4cdec952
SZ
3572009-12-17 Shujing Zhao <pearly.zhao@oracle.com>
358
359 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
529a66ea 360 Update build_indirect_ref calls.
4cdec952 361
ca43f0ef
UB
3622009-12-17 Uros Bizjak <ubizjak@gmail.com>
363
364 * config/i386/sync.md (IMODE): Remove mode iterator.
365 (modesuffix): Remove mode attribute.
366 (modeconstraint): Ditto.
367 (immconstraint): Ditto.
368 (*sync_compare_and_swap<mode>): Use SWI mode iterator instead of
369 IMODE mode iterator, imodesuffix mode attribute instead of modesuffix,
370 <r> mode attribute instead of modeconstraint and <i> mode attribute
371 instead of immconstraint.
372 (sync_double_compare_and_swap<mode>): Ditto.
373 (sync_old_add<mode>): Ditto.
374 (sync_lock_test_and_set<mode>): Ditto.
375 (sync_add<mode>): Ditto.
376 (sync_sub<mode>): Ditto.
377 (sync_and<mode>): Ditto.
378 (sync_ior<mode>): Ditto.
379 (sync_xor<mode>): Ditto.
380 (sync_<code><mode>): Macroize insn pattern from
381 sync_{and,ior,xor}<mode> using any_logic code iterator.
382
dd865ef6
SZ
3832009-12-17 Shujing Zhao <pearly.zhao@oracle.com>
384
385 PR c/40885
386 * c-common.h (ref_operator): New type.
387 (build_indirect_ref): Adjust prototype with new argument.
388 * c-typeck.c (build_indirect_ref): Accept ref_operator as argument and
389 emit the diagnostics for easy translation.
390 (build_array_ref): Update calls to build_indirect_ref.
391 * c-omp.c (c_finish_omp_atomic): Likewise.
392 * c-parser.c (c_parser_unary_expression,
393 c_parser_postfix_expression_after_primary): Likewise.
394
cb799353
RG
3952009-12-16 Richard Guenther <rguenther@suse.de>
396
397 PR lto/42392
398 * langhooks.c (lhd_begin_section): Make sure to switch back
399 to the text section, not some random one.
400
dc01fed1
JJ
4012009-12-16 Jakub Jelinek <jakub@redhat.com>
402
403 * tree-chrec.c (chrec_convert_1): Only fold (T2)(t +- x) to
404 (T2)t +- (T2)x if only integer types are involved.
405
9245e113
BE
4062009-12-16 Ben Elliston <bje@au.ibm.com>
407
408 * tree-data-ref.h (dot_rdg): Remove prototype.
409 * tree-data-ref.c (dog_rdg_1, dot_rdg): Remove.
410
a4ce9883
KH
4112009-12-16 Kazu Hirata <kazu@codesourcery.com>
412
413 * doc/invoke.texi, doc/options.texi, doc/plugins.texi,
414 doc/tm.texi: Fix typos.
415
1588fb31
RW
4162009-12-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
417
73b8bfe1
RW
418 * doc/extend.texi (Function Attributes, Extended Asm):
419 Replace TABs with spaces.
420 * doc/md.texi (Standard Names): Likewise.
421 * doc/plugins.texi (Plugins): Likewise.
422
1588fb31
RW
423 * doc/c-tree.texi (Expression trees): Use @itemx for all but
424 the first item for merged items.
425 * doc/extend.texi (Variable Attributes): Likewise.
426 * doc/install.texi (Configuration): Likewise.
427 * doc/invoke.texi (RS/6000 and PowerPC Options, RX Options):
428 Likewise.
429
2a71eb48
RG
4302009-12-15 Richard Guenther <rguenther@suse.de>
431
432 * tree.c (free_lang_data_in_binfo): Do not free BINFO_OFFSET
433 and BINFO_VPTR_FIELD.
434 (free_lang_data_in_type): Do not free TYPE_STUB_DECL if we
435 generate debug information.
436 (free_lang_data_in_decl): Do not free DECL_SIZE_UNIT,
437 DECL_SIZE, DECL_FIELD_OFFSET and DECL_FCONTEXT.
438 (free_lang_data): Do not disable debuginfo.
439 * lto-streamer-out.c (write_symbol_vec): Deal with
440 non-constant DECL_SIZE.
441 (pack_ts_base_value_fields): Write types with false
442 TREE_ASM_WRITTEN.
443 (lto_output_ts_type_tree_pointers): Stream TYPE_STUB_DECL.
444 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Stream
445 TYPE_STUB_DECL.
446 * dwarf2out.c (add_pure_or_virtual_attribute): Check for
447 DECL_CONTEXT.
448 (gen_type_die_for_member): Test for TYPE_STUB_DECL.
449 * opts.c (decode_options): Do not disable var-tracking for lto.
450 * doc/invoke.texi (-flto): Document -flto vs. -g experimental
451 status.
452 (-fwhopr): Document experimental status.
453
0596e97f
AH
4542009-12-15 Aldy Hernandez <aldyh@redhat.com>
455
456 PR graphite/42185
457 * graphite-sese-to-poly.c (is_reduction_operation_p): Assert that
458 we are a GIMPLE_ASSIGN. Do not calculate rhs code twice.
459 (follow_ssa_with_commutative_ops): Return NULL on non assignment.
460
bb194134
EB
4612009-12-15 Eric Botcazou <ebotcazou@adacore.com>
462
463 * config/rs6000/rs6000.md (probe_stack): Use an enclosing SET.
464
1e4bc4eb
RG
4652009-12-15 Richard Guenther <rguenther@suse.de>
466
467 * gimple.h (compare_field_offset): Declare.
468 * gimple.c (compare_field_offset): Export.
469 * lto-streamer-in.c (input_gimple_stmt): Use compare_field_offset.
470
ede51b1f
RG
4712009-12-15 Richard Guenther <rguenther@suse.de>
472
473 * lto-cgraph.c (lto_output_node): Also stream the alias
474 for regular aliases.
475 (input_node): Likewise.
476
6ba6f70d
PB
4772009-12-15 Paolo Bonzini <bonzini@gnu.org>
478 Shujing Zhao <pearly.zhao@oracle.com>
479
480 * intl.c (get_spaces): New.
481 * intl.h (get_spaces): New.
482
1f6a2caf
JJ
4832009-12-14 Jakub Jelinek <jakub@redhat.com>
484
c4900c10
JJ
485 PR bootstrap/42369
486 * config/i386/i386.c (ix86_expand_special_args_builtin): Avoid
487 using switch with CODE_FOR_lwp_lwp* cases.
488
1f6a2caf
JJ
489 * config/i386/i386-builtin-types.def (PVOID_FTYPE_VOID): Use
490 DEF_FUNCTION_TYPE (PVOID) instead of DEF_FUNCTION_TYPE (PVOID, VOID).
491
4e25ca6b
EB
4922009-12-14 Eric Botcazou <ebotcazou@adacore.com>
493
494 * cfgexpand.c (expand_debug_expr) <INDIRECT_REF>: Remove overzealous
495 assertion and useless code.
496 <TARGET_MEM_REF>: Likewise.
497
23198957
AO
4982009-12-14 Alexandre Oliva <aoliva@redhat.com>
499
2a7d7a8d
AO
500 PR debug/41473
501 * dwarf2out.c (AT_loc_list_ptr): New.
502 (resolve_addr): Remove unresolved attributes and loc_list entries.
503
23198957
AO
504 PR debug/41473
505 * dwarf2out.c (add_var_loc_to_decl): Don't drop initial empty
506 locations.
507 (new_loc_list): Drop gensym arg. Move generation of ll_symbol...
508 (gen_llsym): ... here. New function.
509 (add_loc_descr_to_loc_list): Removed.
510 (loc_descriptor): Infer mode from CONST_DOUBLEs and CONST_VECTORs.
511 (single_element_loc_list): Removed.
512 (dw_loc_list): Don't create entries without a location. Don't
513 special-case the first node of the list, only single nodes.
514 (single_element_loc_list_p): Simplify.
515 (loc_list_from_tree): Don't use DECL_RTL if loc_list is nonempty.
516 (add_location_or_const_value_attribute): Test var loc for NULL.
517 (convert_cfa_to_fb_loc_list): Adjust calls to new new_loc_list,
518 call gen_llsym if needed.
519
20cdc2be
JJ
5202009-12-14 Jakub Jelinek <jakub@redhat.com>
521
522 * cgraph.h (cgraph_set_nothrow_flag, cgraph_set_readonly_flag,
523 cgraph_set_pure_flag, cgraph_set_looping_const_or_pure_flag): New
524 prototypes.
525 * cgraph.c (cgraph_set_nothrow_flag, cgraph_set_readonly_flag,
526 cgraph_set_pure_flag, cgraph_set_looping_const_or_pure_flag): New
527 functions.
528 * except.h (set_nothrow_function_flags): Remove prototype.
529 * except.c (set_nothrow_function_flags): Use cgraph_set_nothrow_flag.
530 Make static.
531 * ipa-pure-const.c (propagate): Use cgraph_set_nothrow_flag,
532 cgraph_set_readonly_flag, cgraph_set_pure_flag
533 and cgraph_set_looping_const_or_pure_flag.
534 (local_pure_const): Likewise.
535
519517fd
JJ
5362009-12-14 Jakub Jelinek <jakub@redhat.com>
537 Sebastian Pop <sebastian.pop@amd.com>
538
539 * config/i386/i386-builtin-types.def (PVOID): Declared.
540 (VOID_FTYPE_PVOID): Declared.
541 (PVOID_FTYPE_VOID): Declared.
542 (UCHAR_FTYPE_USHORT_UINT_USHORT): Removed.
543 (VOID_FTYPE_USHORT_UINT_USHORT): Removed.
544 * config/i386/i386.c (IX86_BUILTIN_LLWPCB16, IX86_BUILTIN_LLWPCB32,
545 IX86_BUILTIN_LLWPCB64, IX86_BUILTIN_SLWPCB16, IX86_BUILTIN_SLWPCB32,
546 IX86_BUILTIN_SLWPCB64, IX86_BUILTIN_LWPVAL16, IX86_BUILTIN_LWPINS16):
547 Removed.
548 (IX86_BUILTIN_LLWPCB, IX86_BUILTIN_SLWPCB): New.
549 (bdesc_special_args): Adjust declaration of __builtin_ia32_llwpcb,
550 __builtin_ia32_slwpcb, __builtin_ia32_lwpval32,
551 __builtin_ia32_lwpval64, __builtin_ia32_lwpins32, and
552 __builtin_ia32_lwpins64.
553 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PVOID.
554 Do not handle VOID_FTYPE_USHORT_UINT_USHORT and
555 UCHAR_FTYPE_USHORT_UINT_USHORT. Warn when the third operand is
556 not an immediate. Also handle builtin functions with 3 arguments.
557 (ix86_expand_builtin): Handle IX86_BUILTIN_LLWPCB and
558 IX86_BUILTIN_SLWPCB.
559 * config/i386/i386.md (UNSPEC_LLWP_INTRINSIC, UNSPEC_SLWP_INTRINSIC):
560 Renamed UNSPECV_LLWP_INTRINSIC and UNSPECV_SLWP_INTRINSIC.
561 (memory attribute): Handle lwp.
562 (lwp*): Rewrite all the insn patterns for LWP.
563 * config/i386/lwpintrin.h (__llwpcb16, __llwpcb32, __llwpcb64,
564 __slwpcb16, __slwpcb32, __slwpcb64, __lwpval16, __lwpins16): Removed.
565 (__llwpcb, __slwpcb): New.
566
7031a8b9
DG
5672009-12-14 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
568
569 * dominance.c (set_immediate_dominator): Don't mark as inline.
570
507d0069
EB
5712009-12-14 Eric Botcazou <ebotcazou@adacore.com>
572
573 * doc/tm.texi (STACK_CHECK_PROTECT): Document alternate default.
574 * doc/md.texi (check_stack): Clarify.
575 (probe_stack): Likewise.
576 * config/rs6000/rs6000.md (UNSPEC_PROBE_STACK): New constant.
577 (probe_stack): New insn.
578
b6eb7438
BE
5792009-12-14 Ben Elliston <bje@au.ibm.com>
580
581 * lto-streamer-in.c (lto_get_builtin_tree): fclass can only be a
582 BUILT_IN_NORMAL or BUILT_IN_MD.
583
82b68940
EB
5842009-12-13 Eric Botcazou <ebotcazou@adacore.com>
585
586 * doc/tm.texi (STACK_CHECK_PROBE_LOAD): Delete.
587 * expr.h (STACK_CHECK_PROBE_LOAD): Likewise.
588 * explow.c (emit_stack_probe): Do not test STACK_CHECK_PROBE_LOAD.
589 * system.h (STACK_CHECK_PROBE_LOAD): Poison.
590
c3223baf
MM
5912009-12-13 Michael Matz <matz@suse.de>
592
593 PR tree-optimization/42027
594 * dojump.c (do_jump <TRUTH_AND_EXPR, TRUTH_OR_EXPR>): Go to
595 TRUTH_ANDIF_EXPR resp. TRUTH_ORIF_EXPR expander, instead of
596 falling through.
597
83613dbe
AH
5982009-12-13 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
599
600 PR target/23726
601 * config/avr/predicates.md (pseudo_register_operand): New predicate
602 for pseudos.
603 * config/avr/avr.md (divmodqi4): Replace with define_insn_and_split
604 to allow div/mod optimization.
605 (udivmodqi4): Ditto.
606 (divmodhi4): Ditto.
607 (udivmodhi4): Ditto.
608 (divmodsi4): Ditto.
2fef358e 609 (udivmodsi4): Ditto.
83613dbe 610
1bea3098
RG
6112009-12-13 Richard Guenther <rguenther@suse.de>
612
613 PR tree-optimization/42357
614 * tree-sra.c (sra_modify_assign): Do not tear apart struct copies.
615
2bcbee3a
RG
6162009-12-12 Richard Guenther <rguenther@suse.de>
617
618 * tree.c (need_assembler_name_p): Abstract decls do not need
619 an assembler name.
620 * dwarf2out.c (dwarf2out_abstract_function): Preserve
621 DECL_ABSTRACT properly.
622
7780688f
RB
6232009-12-11 Richard Guenther <rguenther@suse.de>
624
625 * lto-streamer-in.c (lto_input_tree_ref): Do not register
626 DEBUG_EXPR_DECLs with the varpool.
627
77cb9401
EB
6282009-12-11 Eric Botcazou <ebotcazou@adacore.com>
629
630 * config/sparc/linux-unwind.h (MD_FROB_UPDATE_CONTEXT, 64-bit): Define.
631 (sparc64_frob_update_context): New function.
632
ae2cac71
RG
6332009-12-11 Richard Guenther <rguenther@suse.de>
634
635 PR lto/41658
636 PR lto/41657
637 * lto-streamer-out.c (write_global_stream): Do not make decls
638 weak but resort to TREE_ASM_WRITTEN to avoid multiple definitions.
639 Make sure to mark all decls that we have written.
640
90f5494c
SAS
6412009-12-11 Sebastian Andrzej Siewior <bigeasy@linutronix.de>
642
643 PR target/36047
644
645 * config/m68k/linux.h: Remove LABELNO from the mcount statement. It is
646 not used by glibc/uclibc and does not work with large binaries.
647
dad02715
RG
6482009-12-11 Richard Guenther <rguenther@suse.de>
649
650 PR lto/41662
651 * lto-streamer-in.c (lto_init_eh): Move eh_initialized_p
652 handling here.
653 (input_eh_regions): Adjust.
654 (lto_input_ts_function_decl_tree_pointers): Initialize EH
655 if a non-NULL DECL_FUNCTION_PERSONALITY was read in.
656
63a00e0d
DS
6572009-12-11 Duncan Sands <baldrick@free.fr>
658
659 * passes.c (make_pass_instance): Allocate and copy the right amount of
660 memory for ipa passes, which are not the same size as other passes.
661
8a8d675f
JR
6622009-12-11 Joern Rennecke <amylaar@spamcop.net>
663
664 * plugin.c (get_named_event_id): Fix hash table rebuild to include
665 dynamically allocated events.
666
5d96330a
RG
6672009-12-11 Richard Guenther <rguenther@suse.de>
668
669 PR lto/42320
670 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Properly
671 detect non-prevailing decls.
672
b66887e4
JJ
6732009-12-10 Jakub Jelinek <jakub@redhat.com>
674
675 PR c++/42317
676 * cgraph.h (struct cgraph_node): Add same_comdat_group field.
677 * cgraph.c (cgraph_remove_node): Unchain node from same_comdat_group
678 circular list.
679 (cgraph_node_can_be_local_p): Return false for DECL_COMDAT with
680 node->same_comdat_group.
681 * ipa.c (cgraph_remove_unreachable_nodes): For any reachable node
682 mark all its same_comdat_group nodes as also reachable.
683 (cgraph_externally_visible_p): Return true even if any of
684 same_comdat_group nodes has address taken.
685 * lto-cgraph.c (lto_output_node): Stream out same_comdat_group.
686 (output_cgraph): Ensure other same_comdat_group nodes are also
687 included.
688 (input_node): Stream in same_comdat_group.
689 (input_cgraph_1): Fix up same_comdat_group fields from references
690 to pointers.
691 * cgraphunit.c (cgraph_analyze_functions): Mark all other
692 same_comdat_group nodes as reachable.
693 (cgraph_mark_functions_to_output): For each node->process process
694 also other same_comdat_group nodes.
695 * ipa-inline.c (cgraph_clone_inlined_nodes): Don't reuse nodes
696 with same_comdat_group non-NULL.
697 (cgraph_mark_inline_edge): Likewise.
698
47cb0d7d
JH
6992009-12-10 Jan Hubicka <jh@suse.cz>
700
701 PR middle-end/42228
702 PR middle-end/42110
7780688f
RB
703 * cgraph.c (cgraph_create_edge_including_clones): Add old_stmt
704 parameter; update edge if it already exists.
705 (cgraph_remove_node): Handle correctly cases where we are removing
706 node having clones.
47cb0d7d
JH
707 * cgraph.h (cgraph_create_edge_including_clones): Declare.
708 (verify_cgraph_node): Add missing error_found = true code.
709 (cgraph_materialize_all_clones): Remove call edges of dead nodes.
710 * ipa.c (cgraph_remove_unreachable_nodes): Correctly look for master
711 clone; fix double linked list removal.
7780688f
RB
712 * tree-inline.c (copy_bb): Update cgraph_create_edge_including_clones
713 call; fix frequency of newly created edge.
47cb0d7d 714
d435810e
BS
7152009-12-10 Bernd Schmidt <bernd.schmidt@analog.com>
716
717 PR rtl-opt/42216
718 * regrename.c: Error out if MAX_RECOG_OPERANDS is larger than
719 HOST_BITS_PER_WIDE_INT.
720 (verify_reg_in_set): New function, broken out of verify_reg_tracked.
721 (verify_reg_tracked): Use it.
722 (scan_rtx_reg): When seeing a use involving a superset of the
723 registers in an existing chain, enlarge that chain. Otherwise,
724 allow subsets and set fail_current_block for all other kinds of
725 overlap.
726 (hide_operands): New argument UNTRACKED_OPERANDS; callers changed.
727 Do not modify operands when the bit with the corresponding number
728 is set in that bitmap.
729 (build_def_use): When we see matching operands with different
730 modes, don't set fail_current_block, but keep track of such
731 operands in a bitmap if their registers aren't already tracked
732 in an open chain. Pass this bitmap to all hide_operands calls.
733
788d04b2
RG
7342009-12-10 Richard Guenther <rguenther@suse.de>
735
736 PR tree-optimization/42337
737 * tree-ssa-pre.c (seen_during_translate): Remove.
738 (phi_translate_1): Collapse into ...
739 (phi_translate): ... this. Remove seen parameter and
740 adjust recursive calls.
741
b614f27d
RG
7422009-12-10 Richard Guenther <rguenther@suse.de>
743 Allan Sandfeld Jensen <linux@carewolf.com>
744
745 * tree-vectorizer.c (vectorize_loops): Properly guard
746 vectorizer verboseness.
747
8bba68cd
BE
7482009-12-10 Ben Elliston <bje@au.ibm.com>
749
750 * fwprop.c (free_load_extend): Initialise `use'.
751
14aa6352
DE
7522009-12-09 David Edelsohn <edelsohn@gnu.org>
753
754 * builtins.c (do_mpc_ckconv): Pass the component type to
755 real_from_mpfr().
2fef358e 756
af078bb0
XDL
7572009-12-09 Xinliang David Li <davidxl@google.com>
758
759 PR tree-optimization/42337
760 * tree-ssa-pre.c (phi_translate_1): Push and Pop SEEN set.
761
ab8d2734
NF
7622009-12-09 Nathan Froyd <froydnj@codesourcery.com>
763
764 * config/rs6000/vector.md (absv2sf2, negv2sf2, addv2sf3, subv2sf3,
765 mulv2sf3, divv2sf3): New expanders.
766 * config/rs6000/spe.md (spe_evabs, spe_evand, spe_evaddw, spe_evsubfw,
767 spe_evdivws): Rename to use standard GCC names.
768 * config/rs6000/paired.md (negv2sf, absv2sf2, addv2sf3, subv2sf3,
769 mulv2sf3, divv2sf3): Rename to avoid conflict with the new expanders.
770 * config/rs6000/rs6000.c (bdesc_2arg, bdesc_1arg): Use new CODE_FOR_
771 names for renamed patterns.
772
da8a7529
AK
7732009-12-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
774
775 * config/s390/s390.md ("copysign<mode>3"): Pattern removed.
776
10ca6198
JJ
7772009-12-09 Jakub Jelinek <jakub@redhat.com>
778
779 * configure.ac: Compute ld_ver, ld_vers, ld_date, ld_vers_major,
780 ld_vers_minor and ld_vers_path always, not just when gcc_cv_ld_hidden
781 isn't cached.
782 * configure: Regenerated.
783
3a6a5afb
RH
7842009-12-08 Richard Henderson <rth@redhat.com>
785
786 * combine.c (setup_incoming_promotions): Fix sign-extend of
787 zero-extend case; tidy conditions.
788
5d7cefe5
MM
7892009-12-08 Michael Matz <matz@suse.de>
790
791 PR middle-end/38474
792 * function.c (free_temp_slots): Only walk the temp slot
793 addresses and combine slots if we actually changes something.
794 (pop_temp_slots): Ditto.
795
72d099cb
OG
7962009-12-08 Olga Golovanevsky <olga@il.ibm.com>
797
798 PR middle-end/41843
799 * ipa-struct-reorg.c (compare_fields): New function.
800 (find_field_in_struct_1): Use compare_fields function.
801 (is_equal_types): Likewise.
802
d2e1a4c2
DD
8032009-12-07 DJ Delorie <dj@redhat.com>
804
805 PR c/42312
806 * config/mep/mep.c (mep_expand_prologue): Set
807 really_need_stack_frame after frame_size is set.
808
6c0eaee7
RH
8092009-12-07 Richard Henderson <rth@redhat.com>
810
811 PR rtl-opt/42269
812 * combine.c (setup_incoming_promotions): Improve the conditions
813 under which we respect the promotions applied.
814
1141be7e
EB
8152009-12-07 Eric Botcazou <ebotcazou@adacore.com>
816
817 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch.
818 * config/sparc/linux64.h (ASM_SPEC): Likewise.
819
74e12783
RH
8202009-12-07 Richard Henderson <rth@redhat.com>
821
822 PR debug/42299
823 PR debug/42166
824 * tree-ssa.c (insert_debug_temp_for_var_def): Skip propagation
825 for ssa names already registered for update.
826
aec4e50c
JJ
8272009-12-07 Jakub Jelinek <jakub@redhat.com>
828
829 PR debug/42244
830 * ddg.c (add_inter_loop_mem_dep): Use ANTI_DEP if from or to
831 is a DEBUG_INSN.
832
8ad9d49e
SP
8332009-12-07 Sebastian Pop <sebastian.pop@amd.com>
834
835 * config/i386/driver-i386.c (host_detect_local_cpu): Add -mlwp to the
836 options when bit_LWP is set.
837
c3d34a78
SP
8382009-12-07 Sebastian Pop <sebastian.pop@amd.com>
839
840 * config/i386/cpuid.h (bit_ABM): New.
841 * config/i386/driver-i386.c (host_detect_local_cpu): Add -mabm to the
842 options when bit_ABM is set.
843
7fccdfcf
JJ
8442009-12-07 Jakub Jelinek <jakub@redhat.com>
845
846 * config/i386/i386.c (bdesc_special_args): Move __builtin_clzs from
847 this array ...
848 (bdesc_args): ... here.
849 * config.gcc (i[34567]86-*-*): Include abmintrin.h.
850 (x86_64-*-*): Likewise.
851
3bccee03
SP
8522009-12-07 Sebastian Pop <sebastian.pop@amd.com>
853
854 * config.gcc (i[34567]86-*-*, x86_64-*-*): Add popcntintrin.h.
855 * config/i386/abmintrin.h (_mm_popcnt_u32, _mm_popcnt_u64): Moved...
856 * config/i386/i386-c.c (__POPCNT__): Defined.
857 * config/i386/popcntintrin.h: ...here. New file.
858 * config/i386/smmintrin.h (_mm_popcnt_u32, _mm_popcnt_u64): Moved...
859 Include popcntintrin.h.
860 * config/i386/x86intrin.h: Include popcntintrin.h when __POPCNT__
861 is defined.
862
aedff010
SP
8632009-12-07 Sebastian Pop <sebastian.pop@amd.com>
864
865 * config/i386/i386-protos.h (ix86_expand_fma4_multiple_memory):
866 Removed.
867 * config/i386/i386.c (ix86_expand_fma4_multiple_memory): Removed.
868 * config/i386/sse.md: Remove all XOP splitters.
869 Allow the second and fourth operands of XOP multiply-add insns
870 to be nonimmediate.
871
c7b4d948
SP
8722009-12-07 Sebastian Pop <sebastian.pop@amd.com>
873
874 * config/i386/sse.md: Remove all FMA4 splitters.
875 Allow the second operand of FMA4 insns to be a nonimmediate.
876 Fix comments punctuation.
877
85f28bf1
JB
8782009-12-07 Julian Brown <julian@codesourcery.com>
879
880 * config/arm/constraints.md (Ps, Pt): New constraint letters.
881 * config/arm/thumb2.md (*thumb2_addsi_short): Tighten constraints.
882
16a19648
KG
8832009-12-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
884
b3a00b50
KG
885 PR other/40302
886 * configure.ac (HAVE_mpc): Don't define.
887 * config.in, configure: Regenerate.
888
16a19648
KG
889 PR other/40302
890 * builtins.c: Remove HAVE_mpc* checks throughout.
891 * fold-const.c: Likewise.
892 * real.h: Likewise.
893 * toplev.c: Likewise.
894
b17f98b1
EW
8952009-12-07 Edmar Wienskoski <edmar@freescale.com>
896
897 * config.gcc (cpu_is_64bit): Add new core e500mc64.
898 (powerpc*-*-*): Add new core e500mc64.
899 * config/rs6000/e500mc64.md: New file.
900 * config/rs6000/rs6000.c (processor_costs): Add new costs for
901 e500mc64.
902 (rs6000_override_options): Add e500mc64 case to
903 processor_target_table. Altivec and Spe options not allowed with
904 e500mc64. Disable string instructions for e500mc64. Enable branch
905 targets alignment for both e500mc and e500mc64. Initialize
906 rs6000_cost for e500mc64.
907 (rs6000_emit_sISEL): New function.
908 (rs6000_emit_sCOND): Call rs6000_emit_sISEL for isel targets.
909 (rs6000_emit_int_cmove): Fix mode of 64 bit isel pattern
910 generation.
911 (rs6000_issue_rate): Set issue rate for e500mc64.
912 (rs6000_rtx_costs): Set more accurate cost for mfcr instruction
913 on architectures with isel.
914 * config/rs6000/rs6000-protos.h (rs6000_emit_sISEL): Declare.
915 * config/rs6000/rs6000.h (processor_type): Add
916 PROCESSOR_PPCE500MC64.
917 (ASM_CPU_SPEC): Add e500mc64.
918 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc64.
919 Include e500mc64.md.
920 (abssi2_isel): Expand pattern to handle DImode.
921 (nabs<mode>2_isel): New pattern.
922 (absdi2): Change pattern to handle 64 bit isel targets.
923 (absdi2_internal): Exclude ISEL targets.
924 (nabsdi2): Exclude ISEL targets.
925 * doc/invoke.texi: Add e500mc64 to list of cpus.
926
c8427064
UB
9272009-12-07 Uros Bizjak <ubizjak@gmail.com>
928
929 * config/i386/i386.md (any_or): New code iterator.
930 (any_logic): Rename from plogic code iterator.
931 (logicprefix): Rename from plogicprefix code attribute.
932 (<code><mode>3): Macroize expander from {ior,xor}<mode>3 using
933 any_or code iterator.
934 (*<code><mode>_1): Macroize insn from *{ior,xor}<mode>_1 using
935 any_or code iterator.
936 (*<code><mode>_2): Ditto from *{ior,xor}<mode>_2.
937 (*<code><mode>_3): Ditto from *{ior,xor}<mode>_3.
938 (ior and xor splitters): Ditto.
939 * config/i386/mmx.md: Updated for rename.
940 * config/i386/sse.md: Ditto.
941
4afd0ef4
UB
9422009-12-07 Uros Bizjak <ubizjak@gmail.com>
943
944 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
945 Remove quotes around condition logic code.
946
6edde545
RH
9472009-12-06 Richard Henderson <rth@redhat.com>
948
949 PR debug/42234
950 * tree-ssa-dom.c (degenerate_phi_result): Check for NULL phi
951 argument earlier.
952
3a5729ea
KG
9532009-12-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
954
955 * doc/install.texi: Document MPC is required.
956
cf2b99ce
UB
9572009-12-06 Uros Bizjak <ubizjak@gmail.com>
958
c8427064 959 * config/i386/i386.md (g): Add HImode and QImode.
cf2b99ce
UB
960 (general_szext_operand): New mode attribute.
961 (*test<mode>_1): Macroize insn from *test{qi,hi,si}_1 using
962 SWI124 mode iterator.
963 (and<mode>3): Macroize expander from and{qi,hi,si,di}3 using
964 SWIM mode iterator.
965 (*and<mode>_2): Macroize insn from *and{qi,hi,si}_2 using
966 SWI124 mode iterator.
967 (ior<mode>3): Macroize expander from ior{qi,hi,si,di}3 using
968 SWIM mode iterator.
969 (*ior<mode>_1): Macroize insn from *ior{hi,si,di}_1 using
970 SWI248 mode iterator.
971 (*ior<mode>_2): Macroize insn from *ior{qi,hi,si,di}_2 using
972 SWI mode iterator.
973 (*ior<mode>_3): Macroize insn from *ior{qi,hi,si,di}_3 using
974 SWI mode iterator.
975 (xor<mode>3): Macroize expander from xor{qi,hi,si,di}3 using
976 SWIM mode iterator.
977 (*xor<mode>_1): Macroize insn from *xor{hi,si,di}_1 using
978 SWI248 mode iterator.
979 (*xor<mode>_2): Macroize insn from *xor{qi,hi,si,di}_2 using
980 SWI mode iterator.
981 (*xor<mode>_3): Macroize insn from *xor{qi,hi,si,di}_3 using
982 SWI mode iterator.
983
6a790a69
SP
9842009-12-05 Sebastian Pop <sebastian.pop@amd.com>
985
986 * config/i386/i386.c (TARGET_DEFAULT_TARGET_FLAGS): Add
987 MASK_FUSED_MADD.
988 * config/i386/i386.h (CC1_CPU_SPEC_1): Remove
989 "'-mfused-madd' was removed".
990 * config/i386/i386.opt (mfused-madd): New.
991 * config/i386/sse.md: Add TARGET_FUSED_MADD to FMA4 insns.
992 * doc/invoke.texi (-mfused-madd, -mno-fused-madd): Document.
993
263116c2
JDA
9942009-12-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
995
70d60e88
JDA
996 * pa64-hpux.h (LIB_SPEC): Handle -rdynamic.
997 * pa-hpux10.h (LIB_SPEC): Likewise.
998 * pa-hpux11.h (LIB_SPEC): Likewise.
999
263116c2
JDA
1000 PR ada/41912
1001 * pa/linux-unwind.h (pa32_fallback_frame_state): Set fs->signal_frame
1002 for signal frames.
1003 * pa/hpux-unwind.h (pa32_fallback_frame_state): Likewise.
1004
43e02a8a
RW
10052009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1006
1007 * configure: Regenerate.
1008
3fc604fc
RE
10092009-12-05 Richard Earnshaw <rearnsha@arm.com>
1010
1011 * arm/thumb2.md (thumb2_mulsi_short_compare0): Use a low-register
1012 for the scratch.
1013
d0e4968c
DD
10142009-12-04 David Daney <ddaney@caviumnetworks.com>
1015
1016 PR rtl-optimization/42164
1017 * combine.c (combine_simplify_rtx): Handle truncation of integer
1018 constants.
1019
24655197
RG
10202009-12-04 Richard Guenther <rguenther@suse.de>
1021
1022 * lto-streamer-out.c (pack_ts_decl_common_value_fields):
1023 Revert previous change.
1024 (lto_output_ts_decl_common_tree_pointers): Stream DECL_VALUE_EXPR.
1025 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
1026 Likewise.
1027
c8b3e92f
RG
10282009-12-04 Richard Guenther <rguenther@suse.de>
1029
1030 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1031 BUILT_IN_MALLOC.
1032 (call_may_clobber_ref_p_1): Likewise.
1033
a7004a7e
MK
10342009-12-04 Matthias Klose <doko@ubuntu.com>
1035 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1036
1037 PR target/40134
4afd0ef4 1038 * config.gcc (hppa*-*-linux*): Use config/t-slibgcc-libgcc.
a7004a7e
MK
1039 * config/pa/pa-linux.h (LIB_SPEC): Remove.
1040
25a31608 10412009-12-03 Sebastian Pop <sebastian.pop@amd.com>
4926bb1d
SP
1042 Richard Henderson <rth@redhat.com>
1043
25a31608
EB
1044 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Remove.
1045 * config/i386/i386.c (ix86_fma4_valid_op_p): Remove.
4926bb1d
SP
1046 * config/i386/i386.md: Do not use ix86_fma4_valid_op_p.
1047 * config/i386/sse.md (fma4_*): Remove alternative with operand 1
1048 matching a memory access. Do not use ix86_fma4_valid_op_p.
1049 (xop_*): Same.
1050 Do not use ix86_fma4_valid_op_p in FMA4 and XOP splitters.
1051
25a31608 10522009-12-03 Richard Henderson <rth@redhat.com>
aa356b75
RH
1053
1054 * config/i386/i386.c (ix86_fixup_binary_operands): For FMA4, force
1055 all operands into registers.
1056
25a31608 10572009-12-03 Sebastian Pop <sebastian.pop@amd.com>
80c0adc6
SP
1058
1059 * config/i386/i386.c (ix86_expand_fma4_multiple_memory): Remove unused
1060 parameter.
1061 * config/i386/i386-protos.h (ix86_expand_fma4_multiple_memory): Same.
1062 * config/i386/sse.md: Same.
1063
15488554
RG
10642009-12-03 Richard Guenther <rguenther@suse.de>
1065
1066 * cgraphunit.c (assemble_thunk): Use DECL_ASSEMBLER_NAME
1067 instead of DECL_NAME for the entry point.
1068
cf9eb565
RE
10692009-12-03 Richard Earnshaw <rearnsha@arm.com>
1070
1071 * arm/linux-atomic.c (SYNC_LOCK_RELEASE): Place memory barrier
1072 before the lock release.
1073
2bdbbe94
MM
10742009-12-03 Michael Matz <matz@suse.de>
1075
1076 PR middle-end/38474
1077 * cfgexpand.c (struct stack_var): Add conflicts member.
1078 (stack_vars_conflict, stack_vars_conflict_alloc,
1079 n_stack_vars_conflict): Remove.
1080 (add_stack_var): Initialize conflicts member.
1081 (triangular_index, resize_stack_vars_conflict): Remove.
1082 (add_stack_var_conflict, stack_var_conflict_p): Rewrite in
1083 terms of new member.
1084 (union_stack_vars): Only run over the conflicts.
1085 (partition_stack_vars): Remove special case.
1086 (expand_used_vars_for_block): Don't call resize_stack_vars_conflict,
1087 don't create self-conflicts.
1088 (account_used_vars_for_block): Don't create any conflicts.
1089 (fini_vars_expansion): Free bitmaps, don't free or clear removed
1090 globals.
1091
1f924675
BS
10922009-12-03 Bernd Schmidt <bernd.schmidt@analog.com>
1093
1094 PR middle-end/42202
1095 * regrename.c (live_in_chains): New variable.
1096 (verify_reg_tracked): New static function.
1097 (scan_rtx_reg): Update live_in_chains.
1098 (scan_rtx): Only promote sets in COND_EXEC to OP_INOUT if
1099 we're already tracking the reg.
1100 (build_def_use): Likewise. Initialize live_in_chains.
1101
75741fed
KW
11022009-12-03 Ken Werner <ken.werner@de.ibm.com>
1103
2bdbbe94
MM
1104 * config/spu/spu-elf.h (STARTFILE_SPEC): Add support for gprof
1105 startup files.
1106 * config/spu/spu-protos.h (spu_function_profiler): Add prototype.
1107 * config/spu/spu.c (spu_function_profiler): New function.
1108 * config/spu/spu.h (FUNCTION_PROFILER): Invoke
1109 spu_function_profiler.
1110 (NO_PROFILE_COUNTERS): Define.
1111 (PROFILE_BEFORE_PROLOGUE): Likewise.
75741fed 1112
9957322d
DK
11132009-12-03 Dave Korn <dave.korn.cygwin@gmail.com>
1114
1115 * ggc-page.c (struct free_object): Pull definition out ...
1116 (struct globals): .. from here.
1117
793e86a7
RG
11182009-12-02 Richard Guenther <rguenther@suse.de>
1119
1120 * fold-const.c (div_if_zero_remainder): Honor that sizetypes
1121 are sign-extending. Simplify.
1122
fc81a369
RH
11232009-12-02 Richard Henderson <rth@redhat.com>
1124
1125 PR tree-opt/42215
1126 * tree-loop-distribution.c (build_size_arg_loc): Tidy.
1127 (generate_memset_zero): Convert to sizetype properly. Tidy.
1128
57e37d26
RG
11292009-12-02 Richard Guenther <rguenther@suse.de>
1130
1131 * lto-streamer-out.c (pack_ts_decl_common_value_fields):
1132 Do not pretend we have value exprs.
1133
8e281a8d
RG
11342009-12-02 Richard Guenther <rguenther@suse.de>
1135
1136 PR middle-end/41491
1137 * fold-const.c (try_move_mult_to_index): Do not leak
1138 domain types into the IL.
1139
a881cad6
RG
11402009-12-02 Richard Guenther <rguenther@suse.de>
1141
1142 PR middle-end/42088
1143 * tree.c (free_lang_data): Disable if not using LTO.
1144
2f697bc4
RG
11452009-12-02 Richard Guenther <rguenther@suse.de>
1146
1147 PR middle-end/42229
4afd0ef4 1148 * cfgloopmanip.c (remove_path): Avoid cancelling loops twice.
2f697bc4 1149
368a05d5
UW
11502009-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1151
1152 PR middle-end/42224
1153 * tree.h (int_or_pointer_precision): Remove.
1154 * tree.c (int_or_pointer_precision): Remove.
1155 (integer_pow2p): Use TYPE_PRECISION instead.
1156 (tree_log2): Likewise.
1157 (tree_floor_log2): Likewise.
1158 (signed_or_unsigned_type_for): Likewise.
1159 * fold-const.c (fit_double_type): Likewise.
1160 * varasm.c (initializer_constant_valid_p): Likewise.
1161
ca0b0bf8
IR
11622009-12-02 Ira Rosen <irar@il.ibm.com>
1163
1164 * doc/invoke.texi (-fdump-tree-slp): Document.
1165 (-ftree-vectorizer-verbose): Update.
1166 (-ftree-slp-vectorize): Document.
1167
dafcb54e
NC
11682009-12-02 Nick Clifton <nickc@redhat.com>
1169
1170 * config/rx/rx.c (rx_conditional_register_usage): Do not warn if
1171 no fixed registers are available for interrupt handlers. Do not
1172 fix normal registers.
1173 (MUST_SAVE_ACC_REGISTER): New macro.
1174 (rx_get_stack_layout): Create a stack frame for fast interrupt
1175 handlers, if necessary. Push extra registers if needed in order
1176 to save the accumulator.
1177 (rx_expand_prologue): Create a stack frame for fast interrupt
1178 handlers, if necessary.
4afd0ef4 1179 (rx_expand_builtin_mvfc): Handle the case where there is no target.
dafcb54e 1180
ab0e4a35
SP
11812009-12-01 Sebastian Pop <sebastian.pop@amd.com>
1182
1183 * config/i386/abmintrin.h (__lzcnt16): New.
1184 (__lzcnt): New.
1185 (__lzcnt64): New.
1186 * config/i386/i386-builtin-types.def (UINT16_FTYPE_UINT16): New.
1187 * config/i386/i386.c (IX86_BUILTIN_CLZS): New.
1188 (bdesc_special_args): Add __builtin_clzs.
1189 (ix86_expand_args_builtin): Handle UINT16_FTYPE_UINT16.
1190
6a72cb46
SP
11912009-12-01 Sebastian Pop <sebastian.pop@amd.com>
1192
1193 * config/i386/abmintrin.h (_mm_popcnt_u32): New.
1194 (_mm_popcnt_u64): New.
1195
13c0eb43
SP
11962009-12-01 Sebastian Pop <sebastian.pop@amd.com>
1197
1198 * config/i386/abmintrin.h: New.
1199 * config/i386/i386-c.c (ix86_target_macros_internal): Defined __ABM__.
1200 * config/i386/x86intrin.h: Include abmintrin.h when __ABM__ is defined.
1201
79564f1e
UB
12022009-12-01 Uros Bizjak <ubizjak@gmail.com>
1203
1204 * config/i386/i386.md (SWI124): Rename from CRC32MODE.
1205 (crc32modesuffix): Remove.
1206 (crc32modeconstraint): Ditto.
1207 (sse4_2_crc32<mode>): Update for renamed mode iterator. Use
1208 imodesuffix instead of crc32modesuffix and <r>m instead of
1209 crc32modeconstraint.
1210
4f2eb765
JJ
12112009-12-01 Jakub Jelinek <jakub@redhat.com>
1212
1213 PR c++/42234
1214 * tree-cfgcleanup.c (cleanup_omp_return): Don't ICE if control_bb
1215 contains no statements.
1216
090fa0ab
GF
12172009-12-01 Grigori Fursin <grigori.fursin@inria.fr>
1218 Joern Rennecke <amylaar@spamcop.net>
1219
1220 * cgraphunit.c (plugin.h): Include.
1221 (ipa_passes): Invoke PLUGIN_ALL_IPA_PASSES_START /
1222 PLUGIN_ALL_IPA_PASSES_END at start / end of processing.
1223 * gcc-plugin.h (highlev-plugin-common.h, hashtab.h): Include.
1224 (enum plugin_event): Define by including plugin.def.
1225 Last enumerator is now called PLUGIN_EVENT_FIRST_DYNAMIC.
1226 (plugin_event_name): Change type to const char **.
1227 (get_event_last, get_named_event_id, unregister_callback): Declare.
1228 (register_callback): Change type of event argument to int.
1229 (highlev-plugin-common.h): New file.
1230 * Makefile.in (GCC_PLUGIN_H): Add highlev-plugin-common.h and
1231 $(HASHTAB_H)
1232 (tree-optimize.o passes.o): Depend on $(PLUGIN_H).
1233 (PLUGIN_HEADERS): Add opts.h, $(PARAMS_H) and plugin.def.
1234 (s-header-vars): New rule.
1235 (install-plugin): Depend on s-header-vars. Install b-header-vars.
1236 * params.c (get_num_compiler_params): New function.
1237 * params.h (get_num_compiler_params): Declare.
1238 * passes.c (plugin.h): Include.
1239 (make_pass_instance): Invoke PLUGIN_NEW_PASS.
1240 (do_per_function_toporder, pass_init_dump_file): No longer static.
1241 (pass_fini_dump_file): Likewise.
1242 (execute_one_pass): Likewise. Invoke PLUGIN_OVERRIDE_GATE and
1243 PLUGIN_PASS_EXECUTION.
1244 (execute_ipa_pass_list): Invoke PLUGIN_EARLY_GIMPLE_PASSES_START and
1245 PLUGIN_EARLY_GIMPLE_PASSES_END.
1246 * plugin.c (plugin_event_name_init): New array, defined by
1247 including plugin.def.
1248 (FMT_FOR_PLUGIN_EVENT): Update.
1249 (plugin_event_name): Change type to const char ** and initialize
1250 to plugin_event_name_init.
1251 (event_tab, event_last, event_horizon): New variable.
1252 (get_event_last): New function.
1253 (plugin_callbacks_init): New array.
1254 (plugin_callbacks: Change type to struct callback_info **.
1255 Initialize to plugin_callbacks_init.
1256 (htab_event_eq, get_named_event_id, unregister_callback): New function.
1257 (invoke_plugin_va_callbacks): Likewise.
1258 (register_callback): Change type of event argument to int.
1259 Handle new events. Allow dynamic events.
1260 (invoke_plugin_callbacks): Likewise. Return success status.
1261 (plugins_active_p): Allow dynamic callbacks.
1262 * plugin.def: New file.
1263 * plugin.h (invoke_plugin_callbacks): Update prototype.
1264 (invoke_plugin_va_callbacks): Declare.
1265 * tree-optimize.c (plugin.h): Include.
1266 (tree_rest_of_compilation): Invoke PLUGIN_ALL_PASSES_START and
1267 PLUGIN_ALL_PASSES_END.
1268 * tree-pass.h (execute_one_pass, pass_init_dump_file): Declare.
1269 (pass_fini_dump_file, do_per_function_toporder): Likewise.
1270 * doc/plugin.texi: Document new event types.
1271
d557591d
MJ
12722009-12-01 Martin Jambor <mjambor@suse.cz>
1273
1274 PR tree-optimization/42237
1275 * tree-sra.c (sra_ipa_modify_assign): Split gimple_reg_type assignments
1276 in between references into two.
1277
ee0192a2
RG
12782009-12-01 Richard Guenther <rguenther@suse.de>
1279
1280 * tree-inline.c (copy_tree_body_r): Do not set TREE_BLOCK
1281 to the block of the call when remapping a type.
1282
6009ee7b
MJ
12832009-12-01 Martin Jambor <mjambor@suse.cz>
1284
79564f1e 1285 * cgraph.h (struct cgraph_edge): Reorder fields. Make loop_nest
6009ee7b
MJ
1286 unsigned short int.
1287 * ipa-prop.h (struct ipa_param_call_note): Likewise.
1288 * ipa-prop.c (ipa_note_param_call): Initialize note->loop_nest.
1289
c7ba0cfb
RG
12902009-12-01 Richard Guenther <rguenther@suse.de>
1291
1292 * final.c (rest_of_clean_state): If -fcompare-debug is
1293 given dump final insns without UIDs.
1294 * tree-ssa-live.c (remove_unused_scope_block_p): Remove
1295 after_inlining checks.
1296
b5290908
CF
12972009-11-30 Chao-ying Fu <fu@mips.com>
1298
1299 * config/mips/mips-dsp.md (mips_lhx_<mode>): Use sign_extend.
1300
f7e413e2
DK
13012009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
1302
1303 * configure.ac (USE_CYGWIN_LIBSTDCXX_WRAPPERS): Define to reflect
1304 status of AC_CHECK_FUNC for Cygwin DLL libstdc++ support wrappers.
1305 * configure: Regenerate.
1306 * config.in: Regenerate.
1307
1308 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Define list of --wrap
1309 options for Cygwin DLL libstdc++ support wrappers.
1310 (CXX_WRAP_SPEC_OPT): Define spec to use wrappers or not by default
1311 according to defined value of USE_CYGWIN_LIBSTDCXX_WRAPPERS.
1312 (CXX_WRAP_SPEC): Define entire wrapper spec in or out according to
1313 whether USE_CYGWIN_LIBSTDCXX_WRAPPERS is even defined or not.
1314 (LINK_SPEC): Include CXX_WRAP_SPEC.
1315 * gcc/config/i386/winnt.c (wrapper_strcmp): New qsort helper function.
1316 (i386_find_on_wrapper_list): Check if a function is found on the list
1317 of libstdc++ wrapper options.
1318 (i386_pe_file_end): If we are importing a wrapped function, also emit
1319 an external declaration for the real version.
1320 * config/i386/cygming.opt (muse-libstdc-wrappers): New option for
1321 Cygwin targets. Update copyright year.
1322
f7ce0951
SE
13232009-11-30 Steve Ellcey <sje@cup.hp.com>
1324 Jakub Jelinek <jakub@redhat.com>
1325
1326 * function.c (instantiate_virtual_regs_in_insn): Copy to new reg
1327 before forcing mode.
1328
d64728cf
AS
13292009-11-30 Anatoly Sokolov <aesok@post.ru>
1330
1331 * config/sh/sh.c (sh_promote_prototypes): Make static.
1332 (sh_function_value, sh_libcall_value, sh_function_value_regno_p): New
1333 functions.
1334 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
4afd0ef4 1335 * config/sh/sh.h (FUNCTION_VALUE_REGNO_P): Redefine, use
d64728cf
AS
1336 sh_function_value_regno_p.
1337 (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
1338 * config/sh/sh-protos.h (sh_function_value_regno_p): Declare.
1339 (sh_promote_prototypes) : Remove.
1340
12d210d9
JB
13412009-11-30 Julian Brown <julian@codesourcery.com>
1342
1343 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Don't restrict Thumb-2
1344 reloads to LO_REGS.
1345
5e04b3b6
RH
13462009-11-30 Richard Henderson <rth@redhat.com>
1347
1348 * config/i386/i386.c (ix86_vec_interleave_v2df_operator_ok): New.
1349 (bdesc_special_args): Update insn codes.
1350 (avx_vpermilp_parallel): Correct range check.
1351 (ix86_rtx_costs): Handle vector permutation rtx codes.
1352 (struct expand_vec_perm_d): Move earlier.
1353 (get_mode_wider_vector): New.
1354 (expand_vec_perm_broadcast_1): New.
1355 (ix86_expand_vector_init_duplicate): Use it. Tidy AVX modes.
1356 (expand_vec_perm_broadcast): New.
1357 (ix86_expand_vec_perm_builtin_1): Use it.
1358 * config/i386/i386-protos.h: Update.
1359 * config/i386/predicates.md (avx_vbroadcast_operand): New.
1360 * config/i386/sse.md (AVX256MODE24P): New.
1361 (ssescalarmodesuffix2s): New.
1362 (avxhalfvecmode, avxscalarmode): Fill out to all modes.
1363 (avxmodesuffixf2c): Add V8SI, V4DI.
1364 (vec_dupv4sf): New expander.
1365 (*vec_dupv4sf_avx): Add vbroadcastss alternative.
1366 (*vec_set<mode>_0_avx, **vec_set<mode>_0_sse4_1): Macro-ize for
1367 V4SF and V4SI. Move C alternatives to front. Add insertps and
1368 pinsrd alternatives.
1369 (*vec_set<mode>_0_sse2): Split out from ...
1370 (vec_set<mode>_0): Macro-ize for V4SF and V4SI.
1371 (vec_interleave_highv2df, vec_interleave_lowv2df): Require register
1372 destination; use ix86_vec_interleave_v2df_operator_ok, instead of
1373 ix86_fixup_binary_operands.
1374 (*avx_interleave_highv2df, avx_interleave_lowv2df): Add movddup.
1375 (*sse3_interleave_highv2df, sse3_interleave_lowv2df): New.
1376 (*avx_movddup, *sse3_movddup): Remove. New splitter from
1377 vec_select form to vec_duplicate form.
1378 (*sse2_interleave_highv2df, sse2_interleave_lowv2df): Use
1379 ix86_vec_interleave_v2df_operator_ok.
79564f1e 1380 (avx_movddup256, avx_unpcklpd256): Change to expanders, merge into ...
5e04b3b6
RH
1381 (*avx_unpcklpd256): ... here.
1382 (*vec_dupv4si_avx): New.
1383 (*vec_dupv2di_avx): Add movddup alternative.
1384 (*vec_dupv2di_sse3): New.
1385 (vec_dup<AVX256MODE24P>): Replace avx_vbroadcasts<AVXMODEF4P> and
79564f1e 1386 avx_vbroadcastss256; represent with vec_duplicate instead of
5e04b3b6
RH
1387 nested vec_concat operations.
1388 (avx_vbroadcastf128_<mode>): Rename from
1389 avx_vbroadcastf128_p<avxmodesuffixf2c>256.
1390 (*avx_vperm_broadcast_v4sf): New.
1391 (*avx_vperm_broadcast_<AVX256MODEF2P>): New.
1392
9fda11a2
MJ
13932009-11-30 Martin Jambor <mjambor@suse.cz>
1394
1395 PR middle-end/42196
1396 * tree-sra.c (struct access): New field grp_different_types.
1397 (dump_access): Dump grp_different_types.
1398 (compare_access_positions): Prefer scalars and vectors over other
1399 scalar types.
1400 (sort_and_splice_var_accesses): Set grp_different_types if appropriate.
1401 (sra_modify_expr): Use the original also when dealing with a complex
1402 or vector group accessed as multiple types.
1403
ca659f6e
RH
14042009-11-30 Richard Henderson <rth@redhat.com>
1405
1406 * config/i386/i386.c (avx_vperm2f128_parallel): New.
1407 * config/i386/i386-protos.h: Declare it.
1408 * config/i386/predicates.md (avx_vperm2f128_v8sf_operand,
1409 avx_vperm2f128_v8si_operand, avx_vperm2f128_v4df_operand): New.
1410 * config/i386/sse.md (avx_vperm2f128<mode>3): Change to expander.
1411 (*avx_vperm2f128<mode>_full): Renamed from avx_vperm2f128<mode>3.
1412 (*avx_vperm2f128<mode>_nozero): New.
1413
784e5ae1
RH
14142009-11-30 Richard Henderson <rth@redhat.com>
1415
1416 * config/i386/i386-builtin-types.def (V4DF_FTYPE_V4DF_V4DF_V4DI): New.
1417 (V8SF_FTYPE_V8SF_V8SF_V8SI): New.
1418 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Support
1419 V4DF and V8SF for AVX; relax constraint on V4SF to SSE1 from SSE2.
1420 (IX86_BUILTIN_VEC_PERM_V4DF, IX86_BUILTIN_VEC_PERM_V8SF): New.
1421 (bdesc_args): Add them.
1422 (ix86_expand_builtin): Expand them.
1423 (expand_vec_perm_pshufb2): Only operate on 16-byte vectors.
1424
9dd7d977
MJ
14252009-11-30 Martin Jambor <mjambor@suse.cz>
1426
1427 PR middle-end/42206
1428 * ipa-prop.c (ipa_write_node_info): Initialize note_count to zero.
1429
40513dd3
JJ
14302009-11-30 Jakub Jelinek <jakub@redhat.com>
1431
1432 * ipa-reference.c (propagate): Only dump bitmaps if computed.
1433
0f79311b
OG
14342009-11-30 Olga Golovanevsky <olga@il.ibm.com>
1435
1436 PR middle-end/39806
1437 * ipa-struct-reorg.c (new_var_eq): Use DECL_UID to hash new variables.
1438 (new_var_hash): Likewise.
1439 (is_in_new_vars_htab): Likewise.
1440 (add_to_new_vars_htab): Likewise.
1441
f18b55bd
IR
14422009-11-30 Ira Rosen <irar@il.ibm.com>
1443
1444 * tree-vect-stmts.c (vectorizable_assignment): Support
1445 multiple types.
1446
1c6b6615
RG
14472009-11-30 Richard Guenther <rguenther@suse.de>
1448
1449 * doc/contrib.texi (Contributors): Add myself.
1450
a8fc928d
RG
14512009-11-30 Richard Guenther <rguenther@suse.de>
1452
1453 * tree.c (free_lang_data): Do not set debug_info_level to
1454 none if terse.
1455
ffab1d07
RG
14562009-11-30 Richard Guenther <rguenther@suse.de>
1457
1458 PR middle-end/42119
1459 PR fortran/38530
1460 * expr.c (expand_expr_addr_expr_1): Properly expand the initializer
1461 of CONST_DECLs.
1462
e68c7b43
RG
14632009-11-30 Richard Guenther <rguenther@suse.de>
1464
1465 * tree-into-ssa.c (insert_phi_nodes): Add PHI nodes in
1466 variable UID order.
1467
831b9ef8
RG
14682009-11-30 Richard Guenther <rguenther@suse.de>
1469
1470 * tree-dump.c (dump_option_value_in): Add TDF_NOUID.
1471 * tree-pass.h (TDF_NOUID): Likewise.
1472 * print-rtl.c: Include tree-pass.h.
1473 (print_mem_expr): Pass dump_flags.
1474 (print_rtx): Likewise.
1475 * print-tree.c: Include tree-pass.h.
1476 (print_node_brief): Handle TDF_NOUID.
1477 (print_node): Likewise.
1478 * tree-pretty-print.c (dump_decl_name): Likewise.
1479 (dump_generic_node): Likewise.
1480 * Makefile.in (print-rtl.o, print-tree.o): Add $(TREE_PASS_H)
1481 dependency.
1482
0761b460
NC
14832009-11-30 Nick Clifton <nickc@redhat.com>
1484
1485 * config/stormy16/stormy16-lib2-count-leading-zeros.c: Delete.
1486 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Remove
1487 stormy16-lib2-count-leading-zeros.c.
1488 * config/stormy16/stormy16-lib2.c (__clzhi2): Move code from
1489 __stormy16_count_leading_zeros() into this function.
1490 (__ctzhi2): Use __builtin_clz.
1491 (__ffshi2): Likewise.
1492
948bf106
EB
14932009-11-30 Eric Botcazou <ebotcazou@adacore.com>
1494
1495 * config/sparc/sparc.c (DF_MODES): Simplify.
1496 (TF_ONLY_MODES, OF_ONLY_MODES): Delete.
1497 (TF_MODES, OF_MODES): Adjust for above change.
1498 (TF_MODES_NO_S, OF_MODES_NO_S): Likewise.
1499 * config/sparc/sparc.h (REGNO_REG_CLASS): Move around.
1500
f8682ff6
PB
15012009-11-30 Paolo Bonzini <bonzini@gnu.org>
1502
1503 PR rtl-optimization/41812
1504 * fwprop.c (local_md, local_lr): New globals.
1505 (process_defs, process_uses): Remove local_md argument. Never
1506 consider dead pseudos to have singleton def-use chains.
1507 (single_def_use_enter_block): Perform LR simulation.
1508 (build_single_def_use_links): Remove local_md local variable.
1509 Add DF_NOTE. Allocate local_lr.
1510 (fwprop_done): Do not remove DF_CHAIN, we do not use it anymore.
1511 * df-problems.c (df_md_scratch): New.
1512 (df_md_alloc, df_md_free): Allocate/free it.
1513 (df_md_local_compute): Only include live registers in init.
1514 (df_md_transfer_function): Prune the in-set computed by
1515 the confluence function, and the gen-set too.
f8682ff6 1516
da55c6da
HPN
15172009-11-30 Hans-Peter Nilsson <hp@axis.com>
1518
1519 PR rtl-optimization/40086
1520 * reorg.c (relax_delay_slots): When looking for redundant insn at
1521 the branch target, use next_real_insn, not next_active_insn.
1522
360d4522
KG
15232009-11-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1524
1525 * doc/install.texi: Update minimum MPC version to 0.8.
1526
41557b08
SB
15272009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
1528
1529 * config/rs6000/rs6000.md (fnmaddsf4_powerpc_1): Remove
1530 HONOR_SIGNED_ZEROS final condition.
1531 (fnmsubsf4_powerpc_1): Same.
1532 (fnmadddf4_fpr_1): Same.
1533 (fnmsubdf4_fpr_1): Same.
1534
3533e503
IR
15352009-11-29 Ira Rosen <irar@il.ibm.com>
1536
1537 PR tree-optimization/42193
1538 * tree-vect-stmts.c (vectorizable_operation): Set vectorization factor
1539 to 1 in case of basic block SLP.
1540 (vectorizable_load): Likewise.
1541
6744a6ab
JH
15422009-11-28 Jan Hubicka <jh@suse.cz>
1543
1544 * cgraph.c (same_body_alias_1): Break out of
1545 (same_body_alias): ... here; remove comdat check; it is handled
1546 in cp already.
1547 (cgraph_add_thunk): New.
1548 (dump_cgraph_node): Dump aliases and thunks.
1549 * cgraph.h (cgraph_thunk_info): New structure.
1550 (struct cgraph_node): Add thunk info.
1551 (cgraph_add_thunk): New.
1552 * cgraphunit.c (cgraph_emit_thunks): Remove.
1553 (cgraph_finalize_compilation_unit): Do not call cgraph_emit_thunks.
1554 (assemble_thunk): New function.
1555 (cgraph_expand_function): Handle thunks.
1556 (thunk_adjust): New.
1557 (init_lowered_empty_function): New.
79564f1e
UB
1558 * cp-objcp-common.h (LANG_HOOKS_CALLGRAPH_EMIT_ASSOCIATED_THUNKS):
1559 Remove.
6744a6ab
JH
1560 * lto-cgraph.c (lto_output_node): Stream thunk info.
1561 (input_node): Likewise.
1562 * langhooks.h (lang_hooks_for_callgraph): Remove emit_associated_thunks.
1563 * langhooks-def.h (LANG_HOOKS_CALLGRAPH_EMIT_ASSOCIATED_THUNKS): Remove.
1564 (LANG_HOOKS_CALLGRAPH_INITIALIZER): Update.
1565 * i386.c (x86_output_mi_thunk): Make output prettier.
1566
f1c19648
RG
15672009-11-28 Richard Guenther <rguenther@suse.de>
1568
1569 PR tree-optimization/42183
1570 * tree-nrv.c (tree_nrv): Bail out if the RESULT_DECL has its
1571 address taken. Merge the addressable state of the NRV
1572 variable and the result instead of copying it.
1573
0f900dfa
JJ
15742009-11-28 Jakub Jelinek <jakub@redhat.com>
1575
1576 * matrix-reorg.c (analyze_matrix_allocation_site): Remove unused
1577 malloc_fname variable.
1578 (check_allocation_function): Remove unused gsi and bb_level_0
1579 variables.
1580 (transform_access_sites): Remove unused d_type_size and d_type_size_k
1581 variables.
1582 * omega.c (resurrect_subs): Remove unused n variable.
1583 (omega_solve_geq): Remove unused neweqns variable.
1584 * lto-streamer-in.c (lto_read_tree): Remove unused end_marker variable.
1585 * tree-inline.c (declare_return_variable): Remove USE_P argument,
1586 return use instead of var.
1587 (remap_decl, remap_block): Remove unused fn variable.
1588 (expand_call_inline): Remove unused retvar variable, adjust
1589 declare_return_variable caller.
1590 (optimize_inline_calls): Remove unused prev_fn variable.
1591 * tree-vect-slp.c (vect_analyze_slp_instance): Remove unused ncopies
1592 variable.
1593 (vect_create_mask_and_perm): Remove unused group_size and dr_chain_size
1594 variables.
1595 * tree-ssa-loop-niter.c (split_to_var_and_offset): Handle MINUS_EXPR
1596 properly.
1597 * tree-vect-loop.c (vect_analyze_loop_form): Remove unused backedge
1598 variable.
1599 (vect_create_epilog_for_reduction): Remove unused bytesize variable.
1600 * omp-low.c (workshare_safe_to_combine_p): Remove par_entry_bb
1601 parameter. Remove unused par_stmt variable.
1602 (determine_parallel_type): Adjust workshare_safe_to_combine_p caller.
1603 (expand_omp_sections): Remove unused l1 variable.
1604 (lower_omp_for): Remove unused ilist variable.
1605 * tree-loop-distribution.c (mark_nodes_having_upstream_mem_writes):
1606 Remove unused has_upstream_mem_write_p variable.
1607 * recog.c (decode_asm_operands): Remove unused noperands variable.
1608 * tree-ssa-alias.c (refs_may_alias_p_1): Remove unused size1 and
1609 size2 variable.
1610 * libgcov.c (__gcov_merge_delta): Remove unused last variable.
1611 * tree-call-cdce.c (gen_conditions_for_pow_int_base): Remove unused
1612 base_nm variable.
1613 (gen_conditions_for_pow): Remove unused ec variable.
1614 * tree-ssa-sccvn.c (vn_reference_lookup_3): Remove unused size
1615 variable.
1616 * ipa-struct-reorg.c (program_redefines_malloc_p): Remove unused
1617 fndecl variable.
1618 * tree-ssa-sink.c (statement_sink_location): Remove unused code
1619 variable.
1620 * regmove.c (copy_src_to_dest): Remove unused insn_uid and move_uid
1621 variables.
1622 * tree-complex.c (create_one_component_var): Remove unused inner_type
1623 variable.
1624 * calls.c (emit_call_1): Don't GEN_INT (struct_value_size)
1625 unnecessarily when GEN_*CALL omits that argument.
1626 * regrename.c (regrename_optimize): Remove unused regs_seen variable.
1627 (build_def_use): Remove unused icode variable.
1628 * ipa-pure-const.c (check_call): Remove unused callee and avail
1629 variables.
1630 * tree-dfa.c (add_referenced_var): Remove unused v_ann variable.
1631 * tree-vect-patterns.c (vect_recog_pow_pattern): Remove unused type
1632 variable.
1633 (vect_pattern_recog): Remove unused stmt variable.
1634 * sel-sched-ir.c (make_regions_from_the_rest): Remove unused
1635 new_regions variable.
1636 * postreload.c (reload_cse_simplify_operands): Remove unused mode
1637 variable.
1638 * tree-parloops.c (create_call_for_reduction_1): Remove unused
1639 addr_type variable.
1640 (create_parallel_loop): Remove unused res variable.
1641 (gen_parallel_loop): Remove unused nloop variable.
1642 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
1643 * value-prof.c (gimple_mod_subtract_transform,
1644 gimple_stringops_transform): Remove unused value variable.
1645 (gimple_stringops_values_to_profile): Remove unused fcode variable.
1646 * tree-vrp.c (register_new_assert_for): Remove unused found variable.
1647 (vrp_visit_switch_stmt): Remove unused n variable.
1648 * tree-vect-stmts.c (vectorizable_conversion): Remove unused expr
1649 variable.
1650 (vectorizable_operation): Remove unused shift_p variable.
1651 (vectorizable_store): Remove unused first_stmt_vinfo variable.
1652 * tree-ssa-operands.c (add_stmt_operand): Remove unused v_ann variable.
1653 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove unused bb
1654 variable.
1655 (vect_permute_store_chain): Remove unused scalar_dest variable.
1656 (vect_supportable_dr_alignment): Remove unused invariant_in_outerloop
1657 variable.
1658 * tree-ssa-threadupdate.c (thread_single_edge): Remove unused
1659 local_info variable.
1660 * tree-optimize.c (tree_rest_of_compilation): Remove unused node
1661 variable.
1662 * optabs.c (expand_binop): Remove unused equiv_value variable.
1663 (emit_libcall_block): Remove unused prev variable.
1664 (init_optabs): Remove unused int_mode variable.
1665 * tree-ssa-structalias.c (scc_visit): Remove unused have_ref_node
1666 variable.
1667 (do_structure_copy): Remove unused lhsbase and rhsbase variables.
1668 (find_func_aliases): Remove unused rhstype variable.
1669 (ipa_pta_execute): Remove unused varid variable.
1670
e86b4c03
AH
16712009-11-28 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
1672
79564f1e 1673 * config/avr/avr.h (ASM_OUTPUT_EXTERNAL): Add.
e86b4c03 1674
11895e28
DB
16752009-11-28 David Binderman <dcb314@hotmail.com>
1676
1677 * ira-color.c (put_allocno_into_bucket): Remove set but not used
1678 local variable hard_regs_num.
1679 * ira-lives.c (process_single_reg_class_operands): Remove cover_class.
1680 * loop-unswitch.c (unswitch_loop): Remove zero_bitmap.
1681 * lower-subreg.c (decompose_multiword_subregs): Remove next.
1682
c4ea5200
MJ
16832009-11-27 Martin Jambor <mjambor@suse.cz>
1684
1685 PR middle-end/42006
1686 * tree-sra.c (get_replaced_param_substitute): Call create_tmp_var
1687 instead of create_tmp_var. Set DECL_GIMPLE_REG_P to one manually
1688 for vector and complex types.
1689 (get_adjustment_for_base): Describe return value in the comment.
1690
ba964383
NC
16912009-11-27 Nick Clifton <nickc@redhat.com>
1692
79564f1e
UB
1693 * longlong.h (count_leading_zeros): Define macro for stormy16 target.
1694 (COUNT_LEADING_ZEROS_0): Likewise.
ba964383
NC
1695 * config/stormy16/stormy16-lib2.c: Arrange for separate
1696 compilation of each function.
1697 (__ffshi2): New function.
1698 (__stormy16_count_leading_zeros): New function.
1699 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Use stub files to
1700 compile each function into its own object file.
1701 (stormy16-lib2-ashlsi3.c): New stub file.
1702 (stormy16-lib2-ashrsi3.c): New stub file.
1703 (stormy16-lib2-clzhi2.c): New stub file.
1704 (stormy16-lib2-count-leading-zeros.c): New stub file.
1705 (stormy16-lib2-ctzhi2.c): New stub file.
1706 (stormy16-lib2-divsi3.c): New stub file.
1707 (stormy16-lib2-ffshi2.c): New stub file.
1708 (stormy16-lib2-lshrsi3.c): New stub file.
1709 (stormy16-lib2-modsi3.c): New stub file.
1710 (stormy16-lib2-parityhi2.c): New stub file.
1711 (stormy16-lib2-popcounthi2.c): New stub file.
1712 (stormy16-lib2-udivmodsi4.c): New stub file.
1713 (stormy16-lib2-udivsi3.c): New stub file.
1714 (stormy16-lib2-umodsi3.c): New stub file.
1715
b0d49a6e
RH
17162009-11-27 Richard Henderson <rth@redhat.com>
1717
1718 * config/i386/sse.md (vec_interleave_highv16qi,
1719 vec_interleave_lowv16qi, vec_interleave_highv8hi,
1720 vec_interleave_lowv8hi, vec_interleave_highv4si,
1721 vec_interleave_lowv4si, vec_interleave_highv2di,
1722 vec_interleave_lowv2di, vec_interleave_highv4sf,
1723 vec_interleave_lowv4sf, vec_interleave_highv2df,
1724 vec_interleave_lowv2df): Remove expanders.
1725 (sse_unpcklps, sse_unpckhps, sse2_unpckhpd_exp, sse2_unpcklpd_exp,
1726 sse2_punpckhqdq, sse2_punpcklqdq, sse2_punpckhbw, sse2_punpcklbw,
1727 sse2_punpckhwd, sse2_punpcklwd, sse2_punpckhdq, sse2_punpckldq):
1728 Rename to their proper vec_interleave equivalent. Update all users
1729 to the new name.
1730 * config/i386/i386.c, config/i386/i386.md: Update all users.
1731
315adeda
MM
17322009-11-27 Michael Matz <matz@suse.de>
1733
1734 PR rtl-optimization/42084
1735 * cfgexpand.c (maybe_cleanup_end_of_block): Add new parameter,
1736 use it to stop walking.
1737 (expand_gimple_cond): Adjust call to above.
1738
67c330ae
RO
17392009-11-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1740
1741 PR target/41810
1742 * gthr-solaris.h (__gthread_mutex_destroy): Remove UNUSED.
1743 [SUPPORTS_WEAK && GTHREAD_USE_WEAK] (__gthread_active_p): Use
1744 __extension__ to allow cast from function pointer to object
1745 pointer in C++.
79564f1e 1746 * doc/install.texi (--enable-threads): Clarify use of Solaris threads.
67c330ae 1747
7400e46b
SB
17482009-11-27 Steven Bosscher <steven@gcc.gnu.org>
1749
1750 * config/ia64/itanium1.md: Remove.
1751 * config/ia64/ia64.md: Do not include it.
1752 * config/ia64/ia64.c (ia64_handle_option): Remove "itanium",
1753 "itanium1", and "merced" from the processor alias table.
1754 (clocks, add_cycles): Remove global variables.
1755 (ia64_sched_reorder2): Don't set/use them.
1756 (ia64_dfa_new_cycle, ia64_h_i_d_extended, ia64_reorg): Likewise.
1757 (bundling): Likewise. Remove extra pass for MMMUL/MMSHF.
1758
3a892e44
AK
17592009-11-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1760
1761 * config/s390/s390.c (last_scheduled_insn): New variable.
1762 (s390_fpload_toreg, s390_z10_prevent_earlyload_conflicts): New
1763 functions.
1764 (s390_sched_reorder, s390_sched_variable_issue): New functions.
1765 (TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_REORDER): Target hooks
1766 defined.
1767
d815d34e
MM
17682009-11-27 Michael Matz <matz@suse.de>
1769
1770 PR c++/41906
1771 * tree-eh.c (lower_catch): Stop after expanding a catch-all.
1772
b56ae8c7
RG
17732009-11-27 Richard Guenther <rguenther@suse.de>
1774
1775 * timevar.def (TV_LOOP_MOVE_INVARIANTS, TV_LOOP_UNSWITCH,
1776 TV_LOOP_UNROLL, TV_LOOP_DOLOOP): New timevars.
1777 * loop-init.c (pass_rtl_move_loop_invariants): Use
1778 TV_LOOP_MOVE_INVARIANTS.
1779 (pass_rtl_unswitch): Use TV_LOOP_UNSWITCH.
1780 (pass_rtl_unroll_and_peel): Use TV_LOOP_UNROLL.
1781 (pass_rtl_doloop): Use TV_LOOP_DOLOOP.
1782
9c517bf3
AK
17832009-11-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1784
79564f1e 1785 * emit-rtl.c (next_active_insn, prev_active_insn): Correct comment.
9c517bf3 1786
e96fee3e
JJ
17872009-11-27 Jakub Jelinek <jakub@redhat.com>
1788
f1ed99cd
JJ
1789 * config/i386/i386.c (ix86_emit_restore_sse_regs_using_mov): Remove
1790 unused insn variable.
1791 * genemit.c (output_peephole2_scratches): Only declare and initialize
1792 _regs_allocated if it will be ever used.
1793 * cfgloopmanip.c (create_empty_if_region_on_edge): Remove unused
1794 succ_bb variable.
1795 (create_empty_loop_on_edge): Remove unused freq and cnt variables.
1796 * unwind-c.c (PERSONALITY_FUNCTION): Remove unused action_record
1797 variable.
1798
e96fee3e
JJ
1799 * opts.c (decode_options): If optimize is bigger than 255,
1800 set it to 255.
1801
08f3084b
RH
18022009-11-26 Richard Henderson <rth@redhat.com>
1803
1804 * config/i386/sse.md (mulv16qi3): Change back from an expander
1805 to an insn-and-split.
1806 (mulv4si): Mention AVX not XOP for AVX exception.
1807 (*sse2_mulv4si3): Likewise.
1808 (mulv2di3): Use vmulld not vpmacsdd for XOP expansion. Tidy.
1809
6bda9bdf
BS
18102009-11-26 Bernd Schmidt <bernd.schmidt@analog.com>
1811
15b83b0f
BS
1812 * cfgexpand (n_stack_vars_conflict): New static variable.
1813 (triangular_index): Reduce likelyhood of overflow by performing
1814 the division before the multiplication.
1815 (resize_stack_vars_conflict): Call fatal_error if overflow
1816 occurred in triangular_index. Update n_stack_vars_conflict.
1817
6bda9bdf
BS
1818 PR rtl-opt/38582
1819 * regrename.c (struct du_chain): Remove member earlyclobber.
1820 (scan_rtx_reg): Don't set it. Remove argument earlyclobber,
1821 all callers changed.
1822 (scan_rtx): Remove argument earlyclobber, all callers changed.
1823 (hide_operands, restore_operands, record_out_operands): New functions,
1824 broken out of build_def_use.
1825 (build_def_use): Call them as necessary.
1826
a96caf80
BS
1827 * regrename.c (struct du_head): New members id, conflicts,
1828 hard_conflicts and cannot_rename.
1829 (enum scan_actions): Remove terminate_all_read and
1830 terminate_overlapping_read; add mark_all_read.
1831 (scan_actions_name): Likewise.
1832 (du_head_p): New typedef. Define a vector type for it.
1833 (id_to_chain): New static variable.
1834 (note_sets, clear_dead_regs): Delete functions.
1835 (free_chain_data): New function.
1836 (merge_overlapping_regs): Simply walk the conflicts bitmap.
1837 Remove argument B, all callers changed.
1838 (regrename_optimize): Allocate id_to_chain. Ignore chains that have
1839 the cannot_rename bit set. Update regno and nregs of a renamed chain.
1840 Call free_chain_data when done.
1841 (do_replace): Remove death notes when the renamed reg is set in the
1842 last insn; add them if not.
1843 (mark_conflict, note_sets_clobbers): New static function.
1844 (fail_current_block, current_id, open_chains_set, live_hard_regs): New
1845 static variables.
1846 (scan_rtx_reg): Keep track of conflicts between chains, and between
1847 chains and hard regs. Don't terminate chains when we find a read we
1848 can't handle, mark it unrenameable instead. For terminate_write,
1849 terminate chains that are written with an exact match or a superset
1850 of registers. Set fail_current_block if multi-word lifetimes are too
1851 complex to handle.
1852 (scan_rtx_address): Use mark_all_read instead of terminate_all_read.
1853 (build_def_use): Initialize current_id, live_chains and live_hard_regs;
1854 free memory for them when done.
1855 Rearrange the steps so that earlyclobbers are noted before reads
1856 are processed. Add new steps to keep track of hard register lifetimes
1857 outside insn operands.
1858
a61f9cc0
RG
18592009-11-26 Richard Guenther <rguenther@suse.de>
1860
1861 * tree-ssa-dce.c (nr_walks): New variable.
1862 (mark_aliased_reaching_defs_necessary): Adjust oracle cut-off.
1863 (perform_tree_ssa_dce): Init nr_walks.
1864
87cd4259
MM
18652009-11-26 Michael Matz <matz@suse.de>
1866
1867 PR tree-optimization/41905
1868 * tree-eh.c (lower_eh_constructs_2): Don't add assignments
1869 below statements that can't fall thru.
1870
6dc3bf56
MM
18712009-11-26 Michael Matz <matz@suse.de>
1872
1873 * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
1874 expand_builtin_sprintf): Remove.
1875 (expand_builtin): Don't call them.
1876
d9b99b4c
RG
18772009-11-26 Richard Guenther <rguenther@suse.de>
1878
1879 * tree-ssa-dce.c (perform_tree_ssa_dce): Allocate visited bitmap.
1880
0d8f38d3
NC
18812009-11-26 Nick Clifton <nickc@redhat.com>
1882
1883 * config/rx/rx.c (rx_expand_epilogue): Add checks for sibcalls
1884 being used incorrectly.
1885 (rx_function_ok_for_sibcall): New function. Do not allow indirect
1886 sibcalls, or sibcalls from interrupt functions.
1887 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
1888 * config/rx/rx.md (sibcall): Convert to a define_expand. Check
1889 for a MEM inside a MEM.
1890 (sibcall_value): Likewise.
1891 (sibcall_internal): New pattern containing old sibcall pattern.
1892 (sibcall_value_internal): Likewise.
1893
0fac5151
RH
18942009-11-25 Richard Henderson <rth@redhat.com>
1895
1896 * config/i386/i386-builtin-types.awk (DEF_VECTOR_TYPE): Allow an
1897 optional 3rd argument to define the mode.
1898 * config/i386/i386-builtin-types.def (UQI, UHI, USI, UDI): New.
1899 (V2UDI, V4USI, V8UHI, V16UQI): New.
1900 (V4SF_FTYPE_V4SF_V4SF_V4SI, V2UDI_FTYPE_V2UDI_V2UDI_V2UDI,
1901 V4USI_FTYPE_V4USI_V4USI_V4USI, V8UHI_FTYPE_V8UHI_V8UHI_V8UHI,
1902 V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): New.
1903 * config/i386/i386-modes.def: Rearrange for double-wide AVX.
1904 * config/i386/i386-protos.h (ix86_expand_vec_extract_even_odd): New.
1905 * config/i386/i386.c (IX86_BUILTIN_VEC_PERM_*): New.
1906 (bdesc_args): Add the builtin definitions to match.
1907 (ix86_expand_builtin): Expand them.
1908 (ix86_builtin_vectorization_cost): Rename from
1909 x86_builtin_vectorization_cost.
1910 (ix86_vectorize_builtin_vec_perm, struct expand_vec_perm_d,
1911 doublesize_vector_mode, expand_vselect, expand_vselect_vconcat,
1912 expand_vec_perm_blend, expand_vec_perm_vpermil,
1913 expand_vec_perm_pshufb, expand_vec_perm_1,
1914 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
1915 expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
1916 expand_vec_perm_even_odd_1, expand_vec_perm_even_odd,
1917 ix86_expand_vec_perm_builtin_1, extract_vec_perm_cst,
1918 ix86_expand_vec_perm_builtin, ix86_vectorize_builtin_vec_perm_ok,
1919 ix86_expand_vec_extract_even_odd, TARGET_VECTORIZE_BUILTIN_VEC_PERM,
1920 TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): New.
1921 * sse.md (SSEMODE_EO): New.
1922 (vec_extract_even<mode>): Use SSEMODE_EO and
1923 ix86_expand_vec_extract_even_odd.
1924 (vec_extract_odd<mode>): Likewise.
1925 (mulv16qi3, vec_pack_trunc_v8hi, vec_pack_trunc_v4si,
1926 vec_pack_trunc_v2di): Use ix86_expand_vec_extract_even_odd.
1927
faf63e39
RH
19282009-11-25 Richard Henderson <rth@redhat.com>
1929
1930 * target.h (targetm.vectorize.builtin_vec_perm_ok): New.
1931 * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): New.
1932 * hooks.h, hooks.c (hook_bool_tree_tree_true): New.
1933 * tree-vect-slp.c (vect_create_mask_and_perm): Don't create
1934 the vector constant here...
1935 (vect_transform_slp_perm_load): ... do it here instead. Validate
1936 that the permutation vector is implementable by the target.
1937
8a2bbeef
JJ
19382009-11-25 Jakub Jelinek <jakub@redhat.com>
1939
fc07d9e3
JJ
1940 * config/rs6000/sysv4.opt (mregnames): Change Var to rs6000_regnames.
1941 * config/rs6000/sysv4.h (TARGET_REGNAMES): Define.
1942
8a2bbeef
JJ
1943 * print-rtl.c (print_rtx): When printing newline, append
1944 print_rtx_head and indentation after the newline.
1945
72b2bc46
JJ
1946 PR target/42165
1947 * config/i386/i386.c (print_operand): For 32-byte memory use
1948 YMMWORD in -masm=intel mode. Use TBYTE instead of XWORD.
1949 * config/i386/i386.md (crc32modesuffix): Expand to nothing
1950 in -masm=intel mode.
1951 (sse4_2_crc32di): Print just crc32 instead of crc32q in
1952 -masm=intel mode.
1953 * config/i386/mmx.md (*mmx_pinsrw): Print correct size of
1954 memory operand in -masm=intel mode.
1955 * config/i386/sse.md (*avx_pinsr<ssevecsize>, *sse4_1_pinsrb,
1956 *sse2_pinsrw): Likewise.
1957 (sse_cvtss2siq, sse_cvtss2siq_2, sse_cvttss2siq): Don't print
1958 q suffix in -masm=intel mode.
1959
42da303a
EB
19602009-11-25 Eric Botcazou <ebotcazou@adacore.com>
1961
1962 PR target/10127
1963 PR ada/20548
1964 PR middle-end/42004
1965 * dwarf2out.c (dwarf2out_args_size_adjust): Rename to...
1966 (dwarf2out_stack_adjust): ...this. Do not adjust the arg size for
1967 ACCUMULATE_OUTGOING_ARGS targets. Rename former version to...
1968 (dwarf2out_notice_stack_adjust): ...this. Adjust for above renaming.
1969 (dwarf2out_frame_debug_expr): Revert previous change and adjust for
1970 above renaming.
1971 (dwarf2out_frame_debug): Add ??? comment. Adjust for above renaming.
1972
85b1d1bd
UB
19732009-11-25 Uros Bizjak <ubizjak@gmail.com>
1974
1975 * config/i386/predicates.md (emms_operation): New predicate.
1976 (vzeroupper_operation): Ditto.
1977 (vzeroall_operation): Improve pattern recognition.
1978 * config/i386/sse.md (avx_vzeroupper_rex64): Remove insn pattern.
1979 (avx_vzeroupper): Change insn pattern to expander.
1980 (*avx_vzeroupper): New insn pattern. Use vzeroupper_operation
1981 predicate.
1982 (*avx_vzeroall): Remove operands 1 and 2.
1983 * config/i386/mmx.md (mmx_emms): Change insn pattern to expander.
1984 (mmx_femms): Ditto.
1985 (*mmx_emms): New insn pattern. Use emms_operation predicate.
1986 (*mmx_femms): Ditto.
1987 * config/i386/i386.c (enum ix86_builtins)
1988 <IX86_BUILTIN_VZEROUPPER_REX64>: Remove.
1989 (struct builtin_description) <CODE_FOR_avx_vzeroupper_rex64>:
1990 Remove initailization.
1991 <CODE_FOR_avx_vzeroupper>: Unconditionally initialize here.
79564f1e 1992
5115f061
PB
19932009-11-25 Paul Brook <paul@codesourcery.com>
1994
1995 * config/arm/arm.md (consttable_4): Handle (high ...).
1996
70dd156a
RN
19972009-11-25 Robert Nelson <robert.nelson@digikey.com>
1998 Richard Earnshaw <rearnsha@arm.com>
1999
2000 * arm.h (enum vfp_reg_type): Add VFP_NONE.
2001 * arm.c (all_fpus): Use it for floating point units that aren't based
2002 on the VFP architecture.
2003 (aapcs_vfp_is_call_or_return_candidate): Make base_mode a pointer to
2004 enum machine_mode.
2005
b8698a0f
L
20062009-11-25 H.J. Lu <hongjiu.lu@intel.com>
2007
2008 * alias.c: Remove trailing white spaces.
2009 * alloc-pool.c: Likewise.
2010 * alloc-pool.h: Likewise.
2011 * attribs.c: Likewise.
2012 * auto-inc-dec.c: Likewise.
2013 * basic-block.h: Likewise.
2014 * bb-reorder.c: Likewise.
2015 * bt-load.c: Likewise.
2016 * builtins.c: Likewise.
2017 * builtins.def: Likewise.
2018 * c-common.c: Likewise.
2019 * c-common.h: Likewise.
2020 * c-cppbuiltin.c: Likewise.
2021 * c-decl.c: Likewise.
2022 * c-format.c: Likewise.
2023 * c-lex.c: Likewise.
2024 * c-omp.c: Likewise.
2025 * c-opts.c: Likewise.
2026 * c-parser.c: Likewise.
2027 * c-pretty-print.c: Likewise.
2028 * c-tree.h: Likewise.
2029 * c-typeck.c: Likewise.
2030 * caller-save.c: Likewise.
2031 * calls.c: Likewise.
2032 * cfg.c: Likewise.
2033 * cfganal.c: Likewise.
2034 * cfgexpand.c: Likewise.
2035 * cfghooks.c: Likewise.
2036 * cfghooks.h: Likewise.
2037 * cfglayout.c: Likewise.
2038 * cfgloop.c: Likewise.
2039 * cfgloop.h: Likewise.
2040 * cfgloopmanip.c: Likewise.
2041 * cfgrtl.c: Likewise.
2042 * cgraph.c: Likewise.
2043 * cgraph.h: Likewise.
2044 * cgraphbuild.c: Likewise.
2045 * cgraphunit.c: Likewise.
2046 * cif-code.def: Likewise.
2047 * collect2.c: Likewise.
2048 * combine.c: Likewise.
2049 * convert.c: Likewise.
2050 * coverage.c: Likewise.
2051 * crtstuff.c: Likewise.
2052 * cse.c: Likewise.
2053 * cselib.c: Likewise.
2054 * dbgcnt.c: Likewise.
2055 * dbgcnt.def: Likewise.
2056 * dbgcnt.h: Likewise.
2057 * dbxout.c: Likewise.
2058 * dce.c: Likewise.
2059 * ddg.c: Likewise.
2060 * ddg.h: Likewise.
2061 * defaults.h: Likewise.
2062 * df-byte-scan.c: Likewise.
2063 * df-core.c: Likewise.
2064 * df-problems.c: Likewise.
2065 * df-scan.c: Likewise.
2066 * df.h: Likewise.
2067 * dfp.c: Likewise.
2068 * diagnostic.c: Likewise.
2069 * diagnostic.h: Likewise.
2070 * dominance.c: Likewise.
2071 * domwalk.c: Likewise.
2072 * double-int.c: Likewise.
2073 * double-int.h: Likewise.
2074 * dse.c: Likewise.
2075 * dwarf2asm.c: Likewise.
2076 * dwarf2asm.h: Likewise.
2077 * dwarf2out.c: Likewise.
2078 * ebitmap.c: Likewise.
2079 * ebitmap.h: Likewise.
2080 * emit-rtl.c: Likewise.
2081 * et-forest.c: Likewise.
2082 * except.c: Likewise.
2083 * except.h: Likewise.
2084 * expmed.c: Likewise.
2085 * expr.c: Likewise.
2086 * expr.h: Likewise.
2087 * final.c: Likewise.
2088 * flags.h: Likewise.
2089 * fold-const.c: Likewise.
2090 * function.c: Likewise.
2091 * function.h: Likewise.
2092 * fwprop.c: Likewise.
2093 * gcc.c: Likewise.
2094 * gcov-dump.c: Likewise.
2095 * gcov-io.c: Likewise.
2096 * gcov-io.h: Likewise.
2097 * gcov.c: Likewise.
2098 * gcse.c: Likewise.
2099 * genattr.c: Likewise.
2100 * genattrtab.c: Likewise.
2101 * genautomata.c: Likewise.
2102 * genchecksum.c: Likewise.
2103 * genconfig.c: Likewise.
2104 * genflags.c: Likewise.
2105 * gengtype-parse.c: Likewise.
2106 * gengtype.c: Likewise.
2107 * gengtype.h: Likewise.
2108 * genmddeps.c: Likewise.
2109 * genmodes.c: Likewise.
2110 * genopinit.c: Likewise.
2111 * genpreds.c: Likewise.
2112 * gensupport.c: Likewise.
2113 * ggc-common.c: Likewise.
2114 * ggc-page.c: Likewise.
2115 * ggc-zone.c: Likewise.
2116 * ggc.h: Likewise.
2117 * gimple-iterator.c: Likewise.
2118 * gimple-low.c: Likewise.
2119 * gimple-pretty-print.c: Likewise.
2120 * gimple.c: Likewise.
2121 * gimple.def: Likewise.
2122 * gimple.h: Likewise.
2123 * gimplify.c: Likewise.
2124 * graphds.c: Likewise.
2125 * graphite-clast-to-gimple.c: Likewise.
2126 * gthr-nks.h: Likewise.
2127 * gthr-posix.c: Likewise.
2128 * gthr-posix.h: Likewise.
2129 * gthr-posix95.h: Likewise.
2130 * gthr-single.h: Likewise.
2131 * gthr-tpf.h: Likewise.
2132 * gthr-vxworks.h: Likewise.
2133 * gthr.h: Likewise.
2134 * haifa-sched.c: Likewise.
2135 * hard-reg-set.h: Likewise.
2136 * hooks.c: Likewise.
2137 * hooks.h: Likewise.
2138 * hosthooks.h: Likewise.
2139 * hwint.h: Likewise.
2140 * ifcvt.c: Likewise.
2141 * incpath.c: Likewise.
2142 * init-regs.c: Likewise.
2143 * integrate.c: Likewise.
2144 * ipa-cp.c: Likewise.
2145 * ipa-inline.c: Likewise.
2146 * ipa-prop.c: Likewise.
2147 * ipa-pure-const.c: Likewise.
2148 * ipa-reference.c: Likewise.
2149 * ipa-struct-reorg.c: Likewise.
2150 * ipa-struct-reorg.h: Likewise.
2151 * ipa-type-escape.c: Likewise.
2152 * ipa-type-escape.h: Likewise.
2153 * ipa-utils.c: Likewise.
2154 * ipa-utils.h: Likewise.
2155 * ipa.c: Likewise.
2156 * ira-build.c: Likewise.
2157 * ira-color.c: Likewise.
2158 * ira-conflicts.c: Likewise.
2159 * ira-costs.c: Likewise.
2160 * ira-emit.c: Likewise.
2161 * ira-int.h: Likewise.
2162 * ira-lives.c: Likewise.
2163 * ira.c: Likewise.
2164 * jump.c: Likewise.
2165 * lambda-code.c: Likewise.
2166 * lambda-mat.c: Likewise.
2167 * lambda-trans.c: Likewise.
2168 * lambda.h: Likewise.
2169 * langhooks.c: Likewise.
2170 * lcm.c: Likewise.
2171 * libgcov.c: Likewise.
2172 * lists.c: Likewise.
2173 * loop-doloop.c: Likewise.
2174 * loop-init.c: Likewise.
2175 * loop-invariant.c: Likewise.
2176 * loop-iv.c: Likewise.
2177 * loop-unroll.c: Likewise.
2178 * lower-subreg.c: Likewise.
2179 * lto-cgraph.c: Likewise.
2180 * lto-compress.c: Likewise.
2181 * lto-opts.c: Likewise.
2182 * lto-section-in.c: Likewise.
2183 * lto-section-out.c: Likewise.
2184 * lto-streamer-in.c: Likewise.
2185 * lto-streamer-out.c: Likewise.
2186 * lto-streamer.c: Likewise.
2187 * lto-streamer.h: Likewise.
2188 * lto-symtab.c: Likewise.
2189 * lto-wpa-fixup.c: Likewise.
2190 * matrix-reorg.c: Likewise.
2191 * mcf.c: Likewise.
2192 * mode-switching.c: Likewise.
2193 * modulo-sched.c: Likewise.
2194 * omega.c: Likewise.
2195 * omega.h: Likewise.
2196 * omp-low.c: Likewise.
2197 * optabs.c: Likewise.
2198 * optabs.h: Likewise.
2199 * opts-common.c: Likewise.
2200 * opts.c: Likewise.
2201 * params.def: Likewise.
2202 * params.h: Likewise.
2203 * passes.c: Likewise.
2204 * plugin.c: Likewise.
2205 * postreload-gcse.c: Likewise.
2206 * postreload.c: Likewise.
2207 * predict.c: Likewise.
2208 * predict.def: Likewise.
2209 * pretty-print.c: Likewise.
2210 * pretty-print.h: Likewise.
2211 * print-rtl.c: Likewise.
2212 * print-tree.c: Likewise.
2213 * profile.c: Likewise.
2214 * read-rtl.c: Likewise.
2215 * real.c: Likewise.
2216 * recog.c: Likewise.
2217 * reg-stack.c: Likewise.
2218 * regcprop.c: Likewise.
2219 * reginfo.c: Likewise.
2220 * regmove.c: Likewise.
2221 * regrename.c: Likewise.
2222 * regs.h: Likewise.
2223 * regstat.c: Likewise.
2224 * reload.c: Likewise.
2225 * reload1.c: Likewise.
2226 * resource.c: Likewise.
2227 * rtl.c: Likewise.
2228 * rtl.def: Likewise.
2229 * rtl.h: Likewise.
2230 * rtlanal.c: Likewise.
2231 * sbitmap.c: Likewise.
2232 * sched-deps.c: Likewise.
2233 * sched-ebb.c: Likewise.
2234 * sched-int.h: Likewise.
2235 * sched-rgn.c: Likewise.
2236 * sched-vis.c: Likewise.
2237 * sdbout.c: Likewise.
2238 * sel-sched-dump.c: Likewise.
2239 * sel-sched-dump.h: Likewise.
2240 * sel-sched-ir.c: Likewise.
2241 * sel-sched-ir.h: Likewise.
2242 * sel-sched.c: Likewise.
2243 * sel-sched.h: Likewise.
2244 * sese.c: Likewise.
2245 * sese.h: Likewise.
2246 * simplify-rtx.c: Likewise.
2247 * stack-ptr-mod.c: Likewise.
2248 * stmt.c: Likewise.
2249 * stor-layout.c: Likewise.
2250 * store-motion.c: Likewise.
2251 * stringpool.c: Likewise.
2252 * stub-objc.c: Likewise.
2253 * sync-builtins.def: Likewise.
2254 * target-def.h: Likewise.
2255 * target.h: Likewise.
2256 * targhooks.c: Likewise.
2257 * targhooks.h: Likewise.
2258 * timevar.c: Likewise.
2259 * tlink.c: Likewise.
2260 * toplev.c: Likewise.
2261 * toplev.h: Likewise.
2262 * tracer.c: Likewise.
2263 * tree-affine.c: Likewise.
2264 * tree-affine.h: Likewise.
2265 * tree-browser.def: Likewise.
2266 * tree-call-cdce.c: Likewise.
2267 * tree-cfg.c: Likewise.
2268 * tree-cfgcleanup.c: Likewise.
2269 * tree-chrec.c: Likewise.
2270 * tree-chrec.h: Likewise.
2271 * tree-complex.c: Likewise.
2272 * tree-data-ref.c: Likewise.
2273 * tree-data-ref.h: Likewise.
2274 * tree-dfa.c: Likewise.
2275 * tree-dump.c: Likewise.
2276 * tree-dump.h: Likewise.
2277 * tree-eh.c: Likewise.
2278 * tree-flow-inline.h: Likewise.
2279 * tree-flow.h: Likewise.
2280 * tree-if-conv.c: Likewise.
2281 * tree-inline.c: Likewise.
2282 * tree-into-ssa.c: Likewise.
2283 * tree-loop-distribution.c: Likewise.
2284 * tree-loop-linear.c: Likewise.
2285 * tree-mudflap.c: Likewise.
2286 * tree-nested.c: Likewise.
2287 * tree-nomudflap.c: Likewise.
2288 * tree-nrv.c: Likewise.
2289 * tree-object-size.c: Likewise.
2290 * tree-optimize.c: Likewise.
2291 * tree-outof-ssa.c: Likewise.
2292 * tree-parloops.c: Likewise.
2293 * tree-pass.h: Likewise.
2294 * tree-phinodes.c: Likewise.
2295 * tree-predcom.c: Likewise.
2296 * tree-pretty-print.c: Likewise.
2297 * tree-profile.c: Likewise.
2298 * tree-scalar-evolution.c: Likewise.
2299 * tree-ssa-address.c: Likewise.
2300 * tree-ssa-alias.c: Likewise.
2301 * tree-ssa-ccp.c: Likewise.
2302 * tree-ssa-coalesce.c: Likewise.
2303 * tree-ssa-copy.c: Likewise.
2304 * tree-ssa-copyrename.c: Likewise.
2305 * tree-ssa-dce.c: Likewise.
2306 * tree-ssa-dom.c: Likewise.
2307 * tree-ssa-dse.c: Likewise.
2308 * tree-ssa-forwprop.c: Likewise.
2309 * tree-ssa-ifcombine.c: Likewise.
2310 * tree-ssa-live.c: Likewise.
2311 * tree-ssa-live.h: Likewise.
2312 * tree-ssa-loop-ch.c: Likewise.
2313 * tree-ssa-loop-im.c: Likewise.
2314 * tree-ssa-loop-ivcanon.c: Likewise.
2315 * tree-ssa-loop-ivopts.c: Likewise.
2316 * tree-ssa-loop-manip.c: Likewise.
2317 * tree-ssa-loop-niter.c: Likewise.
2318 * tree-ssa-loop-prefetch.c: Likewise.
2319 * tree-ssa-loop-unswitch.c: Likewise.
2320 * tree-ssa-loop.c: Likewise.
2321 * tree-ssa-math-opts.c: Likewise.
2322 * tree-ssa-operands.c: Likewise.
2323 * tree-ssa-operands.h: Likewise.
2324 * tree-ssa-phiopt.c: Likewise.
2325 * tree-ssa-phiprop.c: Likewise.
2326 * tree-ssa-pre.c: Likewise.
2327 * tree-ssa-propagate.c: Likewise.
2328 * tree-ssa-reassoc.c: Likewise.
2329 * tree-ssa-sccvn.c: Likewise.
2330 * tree-ssa-sink.c: Likewise.
2331 * tree-ssa-structalias.c: Likewise.
2332 * tree-ssa-ter.c: Likewise.
2333 * tree-ssa-threadedge.c: Likewise.
2334 * tree-ssa-threadupdate.c: Likewise.
2335 * tree-ssa-uncprop.c: Likewise.
2336 * tree-ssa.c: Likewise.
2337 * tree-ssanames.c: Likewise.
2338 * tree-switch-conversion.c: Likewise.
2339 * tree-tailcall.c: Likewise.
2340 * tree-vect-data-refs.c: Likewise.
2341 * tree-vect-generic.c: Likewise.
2342 * tree-vect-loop-manip.c: Likewise.
2343 * tree-vect-loop.c: Likewise.
2344 * tree-vect-patterns.c: Likewise.
2345 * tree-vect-slp.c: Likewise.
2346 * tree-vect-stmts.c: Likewise.
2347 * tree-vectorizer.c: Likewise.
2348 * tree-vectorizer.h: Likewise.
2349 * tree-vrp.c: Likewise.
2350 * tree.c: Likewise.
2351 * tree.def: Likewise.
2352 * tree.h: Likewise.
2353 * treestruct.def: Likewise.
2354 * unwind-compat.c: Likewise.
2355 * unwind-dw2-fde-glibc.c: Likewise.
2356 * unwind-dw2.c: Likewise.
2357 * value-prof.c: Likewise.
2358 * value-prof.h: Likewise.
2359 * var-tracking.c: Likewise.
2360 * varasm.c: Likewise.
2361 * varpool.c: Likewise.
2362 * vec.c: Likewise.
2363 * vec.h: Likewise.
2364 * vmsdbgout.c: Likewise.
2365 * web.c: Likewise.
2366 * xcoffout.c: Likewise.
2367
0831e1d1
JDA
23682009-11-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2369
2370 * pa.c (output_call): Only use sr4 for long interspace calls if
2371 call binds local and generating non PIC code.
2372 (attr_length_call): Adjust length calculation for above.
2373
14c27152
UB
23742009-11-25 Uros Bizjak <ubizjak@gmail.com>
2375
2376 * config/i386/i386.md (plusminus_carry_mnemonic): New code attribute.
2377 (add<mode>3_carry): Change operand order of plus RTX.
2378 (*add<mode>3_carry): Ditto.
2379 (*addsi3_carry_zext): Ditto.
2380 (*add<dwi>3_doubleword): Update for changed operand order.
2381 (*negti2_1 splitter): Ditto.
2382 (*negdi2_1 splitter): Ditto.
2383 (<plusminus_insn><mode>3_carry): Macroize expander from
2384 {add,sub}<mode>3_carry patterns using plusminus code iterator.
2385 (*<plusminus_insn><mode>3_carry): Macroize insn from
2386 *{add,sub}<mode>3_carry patetrns using plusminus code iterator.
2387 (neg<mode>2): Macroize expander from neg{qi,hi,si,di,ti}2
2388 patterns using SDWIM mode iterator.
2389 (*neg<dwi>2_doubleword): New insn_and_split pattern. Macroize
2390 pattern from *neg{di,ti}2_1 patterns and corresponding splitters
2391 using DWIH mode iterator.
2392 (*neg<mode>2_1): Macroize insn from neg{qi,hi,si,di}2_1 patterns
2393 using SWI mode iterator.
2394 (*neg<mode>2_cmpz): Ditto from neg{qi,hi,si,di}2_cmpz patterns.
2395 (one_cmpl<mode>2): Macroize expander from one_cmpl{qi,hi,si,di}2
2396 patterns using SWIM mode iterator.
2397 (*one_cmpl<mode>2_1): Macroize insn from one_cmpl{hi,si,di}2_1
2398 patterns using SWI248 mode iterator.
2399 (*one_cmpl<mode>2_2): Macroize insn from one_cmpl{qi,hi,si,di}2_2
2400 patterns using SWI mode iterator.
2401 (*one_cmpl<mode>2_2 splitter): Macroize splitter from
2402 one_cmpl{qi,hi,si,di}2_2 splitter patterns using SWI mode iterator.
2403
038dc49a
PC
24042009-11-24 Michael Matz <matz@suse.de>
2405
2406 * expr.c (set_storage_via_libcall): Fix build_call_expr call.
2407
24082009-11-24 David Binderman <dcb314@hotmail.com>
2409
2410 * expr.c (store_field): Remove set but not used local variable
2411 width_mask.
2412 (expand_expr_real_2): Remove treeop2.
2413 * gcse.c (update_ld_motion_stores): Remove new_rtx.
2414 * haifa-sched.c (max_issue): Remove points.
2415 (sched_create_recovery_edges): Remove e.
2416 * ira-costs.c (setup_allocno_cover_class_and_costs): Remove mode.
2417
356aaf8b
NC
24182009-11-24 Nick Clifton <nickc@redhat.com>
2419
2420 * config/v850/v850.c (function_arg): Fix handling of zero-length
2421 function arguments.
2422
a5883ba0
MM
24232009-11-24 Michael Matz <matz@suse.de>
2424
2425 * tree.h (union tree_ann_d): Don't declare.
2426 (tree_base): Remove ann field.
2427 (struct var_ann_d): Declare forward.
2428 (tree_result_decl, tree_parm_decl, tree_var_decl): Add ann field.
2429 (DECL_VAR_ANN_PTR): New macro.
2430 * tree-dfa.c (create_var_ann): Rewrite in terms of above macro,
2431 accept only VAR, PARM or RESULT decls.
2432 (create_tree_common_ann): Remove.
2433 (remove_referenced_var): Use DECL_VAR_ANN_PTR.
2434 * tree-eh.c (lookup_expr_eh_lp): Remove.
2435 * tree-flow-inline.h (var_ann, get_var_ann): Rewrite in terms of
2436 DECL_VAR_ANN_PTR.
2437 (ann_type, tree_common_ann, get_tree_common_ann): Remove.
2438 * tree-flow.h (enum tree_ann_type): Remove.
2439 (struct tree_ann_common_d): Remove.
2440 (struct var_ann_d): Remove common field.
2441 (union tree_ann_d): Remove.
2442 (tree_ann_t, tree_ann_common_t): Remove typedefs.
2443 (tree_common_ann, get_tree_common_ann, ann_type,
2444 create_tree_common_ann, lookup_expr_eh_lp): Don't declare.
2445 * tree-ssa.c (delete_tree_ssa): Use DECL_VAR_ANN_PTR.
2446 * tree.c (copy_node_stat): Use DECL_VAR_ANN_PTR.
2447 * builtins.c (expand_builtin_memcpy): Use
2448 currently_expanding_gimple_stmt instead of tree annotation.
2449 (expand_builtin_memset_args): Ditto.
2450 * cfgexpand.c (currently_expanding_gimple_stmt): Add global variable.
2451 (expand_call_stmt): Don't set tree annotation.
2452 (expand_gimple_basic_block): Set currently_expanding_gimple_stmt.
2453 * expr.c (expand_expr_real): Don't call lookup_expr_eh_lp.
2454 * gimple.h (currently_expanding_gimple_stmt): Declare.
2455
6e0b03f5
PC
24562009-11-24 Paolo Carlini <paolo.carlini@oracle.com>
2457
2458 * dwarf2out.c (add_location_or_const_value_attribute): Remove
2459 useless NOTE_VAR_LOCATION_STATUS call.
2460 * cfgrtl.c (commit_one_edge_insertion): Remove useless loop, tidy.
2461
8aea79e6
RAE
24622009-11-24 Rafael Avila de Espindola <espindola@google.com>
2463
2464 * lto-wrapper.c (lto_wrapper_exit): Don't try to delete files if
2465 being called recursively.
2466
33887751
BS
24672009-11-24 Basile Starynkevitch <basile@starynkevitch.net>
2468
a5883ba0 2469 * Makefile.in (PLUGIN_HEADERS): Added files: cppdefault.h flags.h
33887751
BS
2470 $(MD5_H) params.def params.h prefix.h tree-inline.h.
2471
3ed04dbd
PB
24722009-11-24 Paul Brook <paul@codesourcery.com>
2473
3ed04dbd
PB
2474 * gcc/config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Fix comment
2475 typo.
2476
854b8a40
JB
24772009-11-24 Julian Brown <julian@codesourcery.com>
2478 Paul Brook <paul@codesourcery.com>
2479
2480 * config/arm/arm.c (TARGET_DWARF_REGISTER_SPAN): Define.
2481 (arm_dwarf_register_span): New function.
2482 (arm_dbx_register_number): Add VFPv3 dwarf numbering.
2483
6e0b03f5 24842009-11-24 David Binderman <dcb314@hotmail.com>
2d888286
DB
2485
2486 * cfgrtl.c (commit_one_edge_insertion): Remove set but not used
2487 local variable bb_note.
a5883ba0
MM
2488 * dominance.c (get_dominated_by): Likewise local var n.
2489 (output_file_names): Likewise local var idx.
2490 (add_location_or_const_value_attribute): Likewise local var status.
2491 * dwarf2out.c (gen_variable_die): Likewise local var field.
2492 * emit-rtl.c (no_line_numbers): Remove.
2d888286 2493 (init_emit_once): Remove line_numbers parameter.
a5883ba0
MM
2494 * rtl.h (init_emit_once): Adjust prototype.
2495 * toplev.c (backend_init): Adjust init_emit_once call.
2d888286 2496
1415abc0
RG
24972009-11-24 Richard Guenther <rguenther@suse.de>
2498
2499 PR tree-optimization/42142
2500 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
2501 Handle iv-dependent (non-)kills properly.
2502 (mark_aliased_reaching_defs_necessary): Pass the basic-block
2503 of the reference statement to mark_aliased_reaching_defs_necessary_1.
2504
09f0dc45
MJ
25052009-11-24 Martin Jambor <mjambor@suse.cz>
2506
2507 PR tree-optimization/42154
2508 * tree-sra.c (struct access): Added comments.
2509 (sra_modify_expr): Build references to the old aggregate with
2510 build_ref_for_offset instead of reusing access->expr.
2511 (load_assign_lhs_subreplacements): Likewise.
2512
c84f4042
UB
25132009-11-24 Uros Bizjak <ubizjak@gmail.com>
2514
2515 * config/i386/i386.md (add<mode>3_carry): Change insn pattern
2516 to expander.
2517 (sub<mode>3_carry): Ditto.
2518 (x86_mov<mode>cc_0_m1): Ditto.
2519 (*add<mode>3_carry): New insn pattern. Use VOIDmode match_operator
2520 for ix86_carry_flag_operator operator predicate.
2521 (*sub<mode>3_carry): Ditto.
2522 (*x86_mov<mode>cc_0_m1): Ditto.
2523 (*addsi3_carry_zext): Use VOIDmode match_operator for
2524 ix86_carry_flag_operator operator predicate.
2525 (*subsi3_carry_zext): Ditto.
2526 (*x86_mov<mode>cc_0_m1_s): Ditto.
2527 (*x86_mov<mode>cc_0_m1_neg): Ditto.
2528 * config/i386/predocates.md (ix86_carry_flag_operator): Do not
2529 check operator sub-expressions for FLAGS_REG and const0_rtx.
2530 * config/i386/i386.c (*ix86_gen_sub3_carry): Update prototype.
2531 (ix86_expand_int_movcc): Update calls to gen_x86_mov{si,di}cc_0_m1.
2532 (ix86_expand_int_addcc): Update calls to
2533 gen_{add,sub}{qi,hi,si,di}3_carry. Do not set mode of compare_op.
2534 (ix86_expand_strlensi_unroll_1): Update calls to ix86_gen_sub3_carry.
2535 Do not set mode of compare operation.
2536
cefdbe2f
JH
25372009-11-23 Jan Hubicka <jh@suse.cz>
2538
2539 PR middle-end/42151
2540 * ipa-inline.c (inline_transform): Avoid ICE when transform is called
2541 twice.
2542
43558bcc
JH
25432009-11-23 Jan Hubicka <jh@suse.cz>
2544
2545 * ipa-cp.c (ipcp_compute_node_scale): Work around completely
2546 wrong profile updates.
2547 * predict.c (counts_to_freqs): Be expected for ENTRY/EXIT block
2548 having largest frequency.
2549 * ira-live.c (ira_implicitly_set_insn_hard_regs): Silecne
2550 used uninitalized warning.
2551 * tree-optimize.c (execute_fixup_cfg): Rescale entry and exit block
2552 frequencies.
2553
e0d909db
UB
25542009-11-23 Uros Bizjak <ubizjak@gmail.com>
2555
2556 * config/alpha/alpha.md (*cmp_sadd_sidi): Use gen_lowpart instead
2557 of gen_rtx_REG to generate operand 5.
2558 (*cmp_ssub_sidi): Ditto.
2559
2f951ef4
RH
25602009-11-23 Richard Henderson <rth@redhat.com>
2561
2562 * config/i386/i386.c (avx_vpermilp_parallel): Fix sign compare
2563 mismatch.
2564
1586899e
PB
25652009-11-23 Paul Brook <paul@codesourcery.com>
2566
2567 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Add special
2568 case for noreturn functions.
2569 (arm_compute_save_reg_mask): Remove special noreturn handling.
2570
0230277c
RG
25712009-11-23 Richard Guenther <rguenther@suse.de>
2572
2573 * tree-dfa.c (get_ref_base_and_extent): Adjust maximum access
2574 size for DECL bases.
2575
8a67ca92
RH
25762009-11-22 Richard Henderson <rth@redhat.com>
2577
2578 * i386.c (avx_vpermilp_parallel): New function.
2579 * i386-protos.h: Declare it.
2580 * predicates.md (avx_vpermilp_v8sf_operand, avx_vpermilp_v4df_operand,
2581 avx_vpermilp_v4sf_operand, avx_vpermilp_v2df_operand): New.
2582 * sse.md (AVXMODEFDP, AVXMODEFSP): New iterators.
2583 (ssescalarnum, ssedoublesizemode): Add AVX modes.
2584 (vpermilbits): Remove.
2585 (avx_vpermil<mode>): Change insns to expanders.
2586 (*avx_vpermil<mode>): New. Use vec_select.
2587
4de29d8f
RE
25882009-11-22 Richard Earnshaw <rearnsha@arm.com>
2589
e0d909db 2590 * opts.c (decode_options): Don't enable flag_schedule_insns
4de29d8f
RE
2591 when optimizing for size.
2592 * doc/invoke.texi: Document change.
2593
7e82354a
UB
25942009-11-22 Uros Bizjak <ubizjak@gmail.com>
2595
2596 PR target/42113
2597 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
2598 of scratch register to SImode.
2599 (*cmp_sadd_sidi): Ditto.
2600 (*cmp_ssub_si): Ditto.
2601 (*cmp_ssub_sidi): Ditto.
2602
ed2eaa9f
ILT
26032009-11-21 Ian Lance Taylor <iant@google.com>
2604
2605 * Makefile.in (HOST_LIBS): Move higher in file.
2606 (LINKER, LINKER_FLAGS): If ENABLE_BUILD_WITH_CXX, but $(HOST_LIBS)
2607 is not empty, set to $(CC) and $(CFLAGS).
2608
cc12e760
MJ
26092009-11-22 Martin Jambor <mjambor@suse.cz>
2610
2611 * tree-cfg.c (verify_types_in_gimple_reference): Error out on
2612 V_C_E of an SSA_NAME or an invariant if lvalue is required.
2613 (verify_gimple_call): Verify LHS also with with
2614 verify_types_in_gimple_reference.
2615
c6a2c25d
MJ
26162009-11-21 Martin Jambor <mjambor@suse.cz>
2617
2618 PR middle-end/42025
2619 * tree-sra.c (access_precludes_ipa_sra_p): New function.
2620 (splice_param_accesses): Check all accesses by calling
2621 access_precludes_ipa_sra_p.
2622 (sra_ipa_modify_expr): Rename argument erite to dont_convert and do
2623 not convert types if it is true.
2624 (sra_ipa_modify_assign): Convert types in case of mismatch.
2625
bcd9e00d
KP
26262009-11-21 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2627
2628 * config/sh/sh.md (cmpeqsi_t-1): Use logical_operand predicate
2629 for operand 1.
2630
a3c7bb26
AN
26312009-11-21 Adam Nemet <adambnemet@gmail.com>
2632
2633 * config/mips/mips-protos.h (mulsidi3_gen_fn): New typedef.
2634 (mips_mulsidi3_gen_fn): Declare new function.
2635 * config/mips/mips.c (mips_mulsidi3_gen_fn): New function.
2636 * config/mips/mips.md (<u>mulsidi3): Change condition to use
c84f4042 2637 mips_mulsidi3_gen_fn. Use mips_mulsidi3_gen_fn to generate the insn.
a3c7bb26
AN
2638 (<u>mulsidi3_64bit): Don't match for ISA_HAS_DMUL3.
2639 (mulsidi3_64bit_dmul): New define_insn.
2640
e81f2ecf
BE
26412009-11-21 Ben Elliston <bje@au.ibm.com>
2642
2643 * gengtype-lex.l: Enable noinput flex option.
2644 (YY_NO_INPUT): Remove define.
2645
42a06e46
AO
26462009-11-21 Alexandre Oliva <aoliva@redhat.com>
2647
2648 * tree-ssa.c (find_released_ssa_name): Handle NULL wi.
2649 (insert_debug_temp_for_var_def): Handle degenerate PHI nodes.
2650 (insert_debug_temps_for_defs): Handle PHI nodes.
2651 * tree-ssa-dom.c (degenerate_phi_result): Don't crash on released
2652 SSA names.
2653
b70fdfe4
AO
26542009-11-21 Alexandre Oliva <aoliva@redhat.com>
2655
2656 * tree-ssa-pre.c (remove_dead_inserted_code): Don't release_defs
2657 after remove_phi_node.
2658
21cf7180
AO
26592009-11-21 Alexandre Oliva <aoliva@redhat.com>
2660
2661 PR tree-optimization/42078
2662 * gimple.h (gimple_replace_lhs): New declaration.
2663 * gimple.c (gimple_replace_lhs): New function.
2664 * tree-ssa-math-opts.c (execute_cse_reciprocals): Call it before
2665 modifying the call.
2666
04482dd1
SP
26672009-11-20 Sebastian Pop <sebastian.pop@amd.com>
2668
2669 * config/i386/sse.md (*xop_pmacsdql_mem): Don't call reg_mentioned_p.
2670 (xop_mulv2div2di3_low): Same.
2671 (*xop_pmacsdqh_mem): Same.
2672
fe40daa0
RH
26732009-11-20 Richard Henderson <rth@redhat.com>
2674
2675 * config/i386/i386-builtin-types.awk: New file.
2676 * config/i386/i386-builtin-types.def: New file.
2677 * config/i386/t-i386: Use them to build i386-builtin-types.inc.
2678 * config/i386/i386.c: Include it.
2679 (ix86_builtin_type_tab, ix86_get_builtin_type): New.
2680 (ix86_builtin_func_type_tab, ix86_get_builtin_func_type): New.
2681 (struct builtin_isa): Remove GTY marker. Replace tree type with
2682 ix86_builtin_func_type; add set_and_not_built_p.
2683 (def_builtin): Change type parameter to tcode; use
2684 ix86_get_builtin_func_type; update all callers. Accept zero mask
2685 to mean the builtin is unconditionally available.
2686 (ix86_add_new_builtins): Use set_and_not_built_p instead of type
2687 being set to NULL.
2688 (enum ix86_special_builtin_type, enum ix86_builtin_type): Remove.
2689 Update some users to rationalized enumeration codes from new include.
2690 (enum multi_arg_type): Remove. Replace all enumeration values
2691 with defines to new ix86_builtin_func_type.
2692 (ix86_init_mmx_sse_builtins): Don't build any types here. Defer
2693 all type resolution to def_builtin.
2694 (ix86_init_builtin_types): Split out from ...
2695 (ix86_init_builtins): ... here. Use ix86_get_builtin_func_type.
2696
497d3834
MM
26972009-11-20 Michael Meissner <meissner@linux.vnet.ibm.com>
2698
2699 PR target/41787
2700 * config/rs6000/rs6000.c (struct machine_function): Revert
2701 2009-10-23 change to set VRSAVE to non-0 if we use VSX.
2702 (rs6000_expand_to_rtl_hook): Ditto.
2703 (rs6000_check_vector_mode): Ditto.
2704 (compute_vrsave_mask): Ditto.
2705
d5473643
PB
27062009-11-20 Paul Brook <paul@codesourcery.com>
2707
2708 * doc/invoke.texi: Document ARM -mcpu=cortex-a5.
2709 * config/arm/arm-cores.def: Add cortex-a5.
2710 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a5.
2711 * config/arm/arm-tune.md: Regenerate.
2712
eed8fcad
OG
27132009-11-20 Olga Golovanevsky <olga@il.ibm.com>
2714
2715 PR middle-end/39960
2716 * ipa-struct-reorg.c (find_pos_in_stmt): New parameter.
2717 (ref_pos): New field in structure.
2718 (insert_new_var_in_stmt): New function.
2719
2720
25bcd7ea
RO
27212009-11-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2722
2723 * config.gcc (alpha*-dec-osf[45]*): Set use_gcc_stdint.
2724 * config/alpha/osf.h (SIG_ATOMIC_TYPE): Define.
2725 (INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE): Define.
2726 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
2727 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
c84f4042 2728 INT_LEAST64_TYPE): Define.
25bcd7ea
RO
2729 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
2730 UINT_LEAST64_TYPE): Define.
2731 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
2732 INT_FAST64_TYPE): Define.
2733 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
2734 UINT_FAST64_TYPE): Define.
2735 (INTPTR_TYPE, UINTPTR_TYPE): Define.
2736
2ee67fbb
JB
27372009-11-20 Julian Brown <julian@codesourcery.com>
2738
2739 * config/arm/arm.h (ASM_OUTPUT_REG_PUSH): Handle STATIC_CHAIN_REGNUM
2740 specially for Thumb-1.
2741 (ASM_OUTPUT_REG_POP): Likewise.
2742
98fba7f7
JM
27432009-11-19 Jason Merrill <jason@redhat.com>
2744
2745 * dwarf2out.c (get_context_die): Take TYPE_MAIN_VARIANT.
2746
e4d5031c 27472009-11-19 Basile Starynkevitch <basile@starynkevitch.net>
c84f4042 2748 Rafael Avila de Espindola <espindola@google.com>
e4d5031c
RE
2749
2750 * doc/plugins.texi (Plugin initialization): Added advices for
c84f4042 2751 retrieving the version of GCC at plugin compilation and loading times.
e4d5031c 2752
fdabb520
BS
27532009-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2754
2755 * plugin.c (FMT_FOR_PLUGIN_EVENT): added definition.
2756 (dump_active_plugins): output to file everything. Use
2757 internationalized dump & FMT_FOR_PLUGIN_EVENT.
2758
b66a1bac
RG
27592009-11-19 Richard Guenther <rguenther@suse.de>
2760
2761 * gimple.c (canonicalize_cond_expr_cond): Strip conversions
2762 around truth-valued expressions.
2763 * tree.c (free_lang_data): Untangle check for LTO frontend.
2764
986ad133
JJ
27652009-11-19 Jakub Jelinek <jakub@redhat.com>
2766
2767 * tree.c (need_assembler_name_p): Use cgraph_get_node instead
2768 of cgraph_node_for_decl.
2769 * cgraph.h (cgraph_node_for_decl): Remove prototype.
2770 * cgraph.c (cgraph_node_for_decl): Remove.
2771 (cgraph_get_node): Just return NULL if !cgraph_hash.
2772
1abed66b
PB
27732009-11-19 Paul Brook <paul@codesourcery.com>
2774
2775 * config.gcc: Add new ARM --with-fpu options.
2776 * doc/invoke.texi: Docuent ARM -mfpu=fpv4-sp-d16.
2777 * config/arm/arm.c (all_fpus): Add fpv4-sp-d16.
2778
bb4efb4d
RG
27792009-11-18 Richard Guenther <rguenther@suse.de>
2780
2781 * gimple.h (union gimple_statement_d): Add gsmembase member.
2782 (gimple_vuse_op): Use gsmembase for access.
2783 (gimple_vdef_op): Likewise.
2784 (gimple_vuse): Likewise.
2785 (gimple_vdef): Likewise.
2786 (gimple_vuse_ptr): Likewise.
2787 (gimple_vdef_ptr): Likewise.
2788 (gimple_set_vuse): Likewise.
2789 (gimple_set_vdef): Likewise.
2790 * gsstruct.def (GSS_WITH_MEM_OPS_BASE): Add.
2791
573282f8
DJ
27922009-11-18 Daniel Jacobowitz <dan@codesourcery.com>
2793
2794 * doc/arm-neon-intrinsics.texi: Regenerated.
2795
31d1afde
DJ
27962009-11-18 Daniel Jacobowitz <dan@codesourcery.com>
2797
c84f4042 2798 * config/arm/neon-docgen.ml (analyze_shape_elt): Handle alternatives.
31d1afde 2799
60bd3528 28002009-11-18 Paul Brook <paul@codesourcery.com>
c84f4042 2801 Daniel Jacobowitz <dan@codesourcery.com>
60bd3528
PB
2802
2803 * config/arm/arm.c (FL_ARCH7EM, FL_FOR_ARCH7EM): Define.
2804 (arm_arch7em): New variable.
2805 (all_architectures): Add armv7e-m.
2806 (arm_override_options): Set arm_arch7em.
2807 * config/arm/arm.h (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD):
2808 Include arm_arch7em.
2809 (arm_arch7em): Declare.
2810
7caa21fc
RG
28112009-11-18 Richard Guenther <rguenther@suse.de>
2812
2813 * lto-streamer-in.c (input_gimple_stmt): Assert that we find
2814 a valid field decl if checking is enabled.
2815
661e7330
MJ
28162009-11-18 Martin Jambor <mjambor@suse.cz>
2817
2818 * ipa-prop.h (struct ipa_param_call_note): New field lto_stmt_uid.
2819 (lto_ipa_fixup_call_notes): Declare.
2820 * ipa-prop.c (ipa_note_param_call): Store gimple uid.
2821 (update_call_notes_after_inlining): Copy call stmt uid to the new
2822 edge.
2823 (ipa_write_param_call_note): New function.
2824 (ipa_read_param_call_note): New function
2825 (ipa_write_node_info): Write also param call notes. Removed a bogus
2826 comment, reformatted to fit 80 columns.
2827 (ipa_read_node_info): Read also param call notes. Removed a bogus
2828 comment. Remove ipa_edge_args_vector growth.
2829 (lto_ipa_fixup_call_notes): New function.
2830 * ipa-cp.c (pass_ipa_cp): Add stmt_fixup hook.
2831 * ipa-inline.c (cgraph_mark_inline_edge): Perform indirect
2832 inlining regardless of flag_wpa.
2833 (cgraph_decide_inlining_of_small_functions): Likewise.
2834 (cgraph_decide_inlining): Likewise.
2835 (inline_read_summary): Likewise.
2836
965b98d0
JH
28372009-11-18 Jan Hubicka <jh@suse.cz>
2838
2839 * predict.c (compute_function_frequency): Export.
2840 * predict.h (compute_function_frequency): Declare.
2841 * tree-optimize.c (execute_fixup_cfg): Rescale frequencies.
2842
8b220502
MJ
28432009-11-18 Martin Jambor <mjambor@suse.cz>
2844
2845 * passes.c (ipa_write_summaries): Call renumber_gimple_stmt_uids
2846 on all nodes we write summaries for.
2847
7b98c16f 28482009-11-18 Shujing Zhao <pearly.zhao@oracle.com>
14c27152 2849
7b98c16f 2850 PR middle-end/22201
c84f4042 2851 * params.def (PARAM_INLINE_UNIT_GROWTH, PARAM_IPCP_UNIT_GROWTH)
7b98c16f
SZ
2852 (PARAM_EARLY_INLINING_INSNS, PARAM_IRA_MAX_LOOPS_NUM)
2853 (PARAM_IRA_MAX_CONFLICT_TABLE_SIZE)
2854 (PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP)
2855 (PARAM_MIN_INSN_TO_PREFETCH_RATIO)
2856 (PARAM_PREFETCH_MIN_INSN_TO_MEM_RATIO)
c84f4042 2857 (PARAM_IPA_SRA_PTR_GROWTH_FACTOR): Uppercase the first letter of the
7b98c16f
SZ
2858 description string.
2859
b2583345
JJ
28602009-11-18 Jakub Jelinek <jakub@redhat.com>
2861
4f517dce
JJ
2862 * dwarf2out.c (loc_list_from_tree): Don't call rtl_for_decl_location
2863 unnecessarily.
2864 (rtl_for_decl_location): Try harder to get a rtl for TREE_STATIC vars.
2865
b2583345
JJ
2866 PR c++/3187
2867 * cgraph.h (struct cgraph_node): Add same_body and same_body_alias
2868 fields.
2869 (cgraph_same_body_alias, cgraph_remove_same_body_alias): New
2870 prototypes.
2871 * cgraphunit.c (cgraph_expand_function, cgraph_emit_thunks,
2872 cgraph_materialize_all_clones): Handle same_body aliases.
2873 * cgraph.c (cgraph_allocate_node): New function.
2874 (cgraph_create_node): Use it.
2875 (cgraph_node_for_decl, cgraph_node, cgraph_get_node,
2876 cgraph_node_for_asm, cgraph_remove_node): Handle same_body aliases.
2877 (cgraph_same_body_alias, cgraph_remove_same_body_alias): New
2878 functions.
2879 * lto-cgraph.c (lto_output_node): Stream out same_body aliases.
2880 (input_node): Stream in same_body aliases.
2881 * lto-symtab.c (lto_cgraph_replace_node): Clear node pointers
2882 for same_body aliases.
2883 (lto_symtab_merge_cgraph_nodes_1): Handle same_body aliases.
2884
a64333b7
IS
28852009-11-18 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2886
2887 PR other/39888
2888 * config/darwin.h: Use the extension stub libraries to access
2889 current libgcc_s features.
2890
a83452e9
AO
28912009-11-18 Alexandre Oliva <aoliva@redhat.com>
2892
2893 PR debug/41926
2894 * tree-vect-loop.c (vect_loop_kill_debug_uses): New.
2895 (vect_transform_loop): Call it.
2896
462b701b
AO
28972009-11-18 Alexandre Oliva <aoliva@redhat.com>
2898
2899 * tree-ssa.c (insert_debug_temp_for_var_def): Fix handling of
2900 released SSA names.
2901
a3201927
AO
29022009-11-18 Alexandre Oliva <aoliva@redhat.com>
2903
2904 PR debug/41888
2905 PR debug/41886
2906 * graphite-scop-detection.c (stmt_simple_for_scop_p): Debug stmts
2907 are ok.
2908 * graphite-sese-to-poly.c (graphite_stmt_p): Likewise.
2909 (try_generate_gimple_bb): Skip debug stmts when finding data refs.
2910 * sese.c (sese_build_liveouts_bb): Skip debug stmts.
2911 (sese_bad_liveouts_use): New.
2912 (sese_reset_debug_liveouts_bb): New.
2913 (sese_build_liveouts): Use it.
2914 (rename_variables_in_stmt): Reset debug stmts rather than creating
2915 new vars for them.
2916 (expand_scalar_variable_stmt): Likewise.
2917
d785e46f
AO
29182009-11-18 Alexandre Oliva <aoliva@redhat.com>
2919
2920 * df-scan.c (df_ref_create): Don't mark BB as dirty on debug insns.
2921 (df_ref_remove): Likewise.
2922
d1725344
JH
29232009-11-17 Jan Hubicka <jh@suse.cz>
2924
2925 * ipa-struct-reorg.c (update_cgraph_with_malloc_call): Fix profile
2926 info.
2927
37740cd3
EB
29282009-11-17 Eric Botcazou <ebotcazou@adacore.com>
2929
2930 * toplev.c (process_options): Remove dead code.
2931 * doc/invoke.texi (-frename-registers): Mention -fpeel-loops.
2932
a5ac2cdf
RAE
29332009-11-17 Rafael Avila de Espindola <espindola@google.com>
2934
2935 * lto-symtab.c (lto_symtab_resolve_symbols): Always initialize the
2936 nodes.
2937
5456cefc
UW
29382009-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2939
2940 PR tree-optimization/41857
2941 * tree-ssa-address.c (move_hint_to_base): Use void pointer to
2942 TYPE's address space instead of pointer to TYPE.
2943
263839d3
UW
29442009-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2945
2946 * reload.c (find_reloads_address): Fix typo.
2947
6ca19a97
UW
29482009-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2949
2950 * config/spu/spu.c (get_pic_reg): Use LAST_ARG_REGNUM as PIC
2951 registers in leaf functions if possible.
2952
73d2e138
MK
29532009-11-17 Maxim Kuvyrkov <maxim@codesourcery.com>
2954
2955 * config/m68k/m68k-devices.def: Add MCF5441x family.
2956
f8754107
JH
29572009-11-17 Jan Hubicka <jh@suse.cz>
2958
2959 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not access
2960 removed node.
2961 * cgraphunit.c (verify_cgraph_node): Verify frequencies for match.
2962
aaf5d6c0
UB
29632009-11-17 Uros Bizjak <ubizjak@gmail.com>
2964
2965 * config/i386/predicates.md (x86_64_szext_general_operand): Do not
2966 nest ior expressions.
2967 (x86_64_szext_nonmemory_operand): Ditto.
2968 (call_insn_operand): Ditto.
2969
efd0b0d3
AO
29702009-11-16 Alexandre Oliva <aoliva@redhat.com>
2971
2972 * stmt.c (expand_asm_stmt): Get locus from stmt.
2973
f8981d1c
AO
29742009-11-16 Alexandre Oliva <aoliva@redhat.com>
2975
2976 * tree-cfg.c (gimple_redirect_edge_and_branch) <case GIMPLE_ASM>:
2977 Create the decl label for the new dest block on demand. Require
2978 a fallthrough edge if no asm labels were redirected.
2979
a81f2330
UB
29802009-11-16 Uros Bizjak <ubizjak@gmail.com>
2981
2982 * config/i386/i386.md (cbranchsi4): Use nonimmediate_operand for
2983 operand 1 predicate.
2984 (cstoresi4): Ditto for operand 2.
2985 (cbranch<mode>4): Macroize expander from cbranch{qi,hi,si,di,ti}4
2986 patterns using SDWIM mode iterator.
2987 (cstore<mode>4): Macroize expander from cstore{qi,hi,si,di}4 patterns
2988 using SWIM mode iterator.
2989 (cmpdi_1): Rename from cmpdi_1_rex64.
2990 (cmp<mode>_1): Macroize expander from cmp{si,di}_1 patterns using
2991 SWI48 mode iterator.
14c27152
UB
2992 (*cmp<mode>_1): Macroize insn from *cmp{qi,hi,si,di}_1_insn patterns
2993 using SWI mode iterator.
a81f2330
UB
2994 (*cmp<mode>_ccno_1): Ditto from *cmp{qi,hi,si,di}_ccno_1.
2995 (*cmp<mode>_minus_1): Ditto from *cmp{qi,hi,si,di}_minus_1.
2996 (*cmpqi_ext_3_insn): Make private.
2997 (*cmpqi_ext_3_insn_rex64): Make private.
2998 (cmpstrnsi): Update for renamed cmpdi_1_rex64.
2999 * config/i386/predicates.md (cmpsi_operand): Remove.
3000
6ed126e6
PB
30012009-11-16 Paul Brook <paul@codesourcery.com>
3002
3003 * doc/invoke.texi: Document ARM VFPv4 based FPUs.
3004 * config/arm/arm.c (all_fpus): Add VFPv4 entries.
3005
0d63a740
JH
30062009-11-14 Jan Hubicka <jh@suse.cz>
3007
a81f2330
UB
3008 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use proper
3009 ENTRY_BLOCK_PTR.
3010 * cgraph.c (cgraph_clone_edge): Avoid freq_scale 0 to completely
3011 zero out all callees.
3012 * cgraphunit.c (verify_cgraph_node): Verify cgraph nodes for
3013 frequency and count match.
0d63a740
JH
3014 * ipa-inline.c (update_noncloned_frequencies): New function.
3015 (cgraph_clone_inlined_nodes): Use it.
3016 * tree-inline.c (copy_bb): Fix frequency scaling; output
3017 diagnostic on frequency mismatches to dump file.
3018 (initialize_cfun): Do not scale frequency; fix count scaling;
a81f2330
UB
3019 initialize entry and exit block frequencies; copy profile info.
3020 (copy_cfg_body): Use frequency_scale as argument; fix count scaling.
0d63a740
JH
3021 (copy_body): Use frequency_scale as argument.
3022 (expand_call_inline): Compute frequency scale and output diagnostic
3023 to dump file.
3024 (delete_unreachable_blocks_update_callgrah): Remove checking that
3025 has to be done after edge redirection.
3026 (tree_function_versioning): Update initialize_cfun and copy_body call.
3027
0e3776db
JH
30282009-11-14 Jan Hubicka <jh@suse.cz>
3029
3030 * cgraph.c (cgraph_release_function_body): Update use of
3031 ipa_transforms_to_apply.
3032 (cgraph_remove_node): Remove ipa_transforms_to_apply.
3033 * cgraph.h (struct cgraph_node): Add ipa_transforms_to_apply.
3034 * cgraphunit.c (save_inline_function_body): Clear ipa_transforms for
3035 copied body.
3036 (cgraph_materialize_clone): Remove original if dead.
3037 * lto-streamer-in.c (lto_read_body): Remove FIXME and
3038 ipa_transforms_to_apply hack.
3039 * function.h (struct function): Add ipa_transforms_to_apply.
3040 * ipa.c (cgraph_remove_unreachable_nodes): Handle dead clone originals.
3041 * tree-inline.c (copy_bb): Update sanity check.
3042 (initialize_cfun): Do not copy ipa_transforms_to_apply.
3043 (expand_call_inline): remove dead clone originals.
3044 (tree_function_versioning): Merge transformation queues.
3045 * passes.c (add_ipa_transform_pass): Remove.
3046 (execute_one_ipa_transform_pass): Update ipa_transforms_to_apply
3047 tracking.
3048 (execute_all_ipa_transforms): Update.
3049 (execute_one_pass): Update.
3050
aaf5d6c0 30512009-11-14 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
a212a5d4
AH
3052
3053 PR target/21078, 21080
3054 * config/avr/avr.c (avr_return_addr_rtx): New function for
3055 builtin_return_address.
3056 (expand_prologue): Calculate stack usage.
3057 (avr_asm_function_end_prologue): Output stack size and offset label.
3058 * config/avr/avr.h (RETURN_ADDR_RTX): Replace.
3059 (machine_function): Add stack_usage.
3060 * config/avr/avr-protos.h (avr_return_addr_rtx): New function.
3061
7ae62237
AS
30622009-11-14 Anatoly Sokolov <aesok@post.ru>
3063
3064 * config/iq2000/iq2000.c (iq2000_function_value): Make static, add
3065 new 'outgoing' argument.
3066 (iq2000_libcall_value, iq2000_function_value_regno_p): New functions.
3067 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
a81f2330 3068 * config/iq2000/iq2000.h (FUNCTION_VALUE_REGNO_P): Redefine, use
7ae62237
AS
3069 iq2000_function_value_regno_p.
3070 (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
3071 * config/iq2000/iq2000-protos.h (iq2000_function_value_regno_p):
3072 Declare.
3073
cfc25c74
RE
30742009-11-14 Richard Earnshaw <rearnsha@arm.com>
3075
282cac16 3076 PR target/42031
cfc25c74
RE
3077 * arm.md (adddi_sesidi_di): Place tied contraint first.
3078 (adddi_zesidi_di, subdi_di_zesidi, subdi_di_sesidi): Likewise
3079 (subdi_zesidi_di, subdi_sesidi_di): Likewise.
3080 (mulsi3_compare0, mulsi_compare0_scratch): Likewise.
3081 (mulsi3addsi, mulsi3addsi_compare0): Likewise.
3082 (mulsi3addsi_compare0_scratch, smulsi3_highpart_nov6): Likewise.
3083 (umulsi3_highpart_nov6, anddi_zesidi_di, anddi_sesdi_di): Likewise.
3084 (anddi_notdi_di, iordi_sesidi_di, xordi_sesidi_di): Likewise.
3085 (andsi_iorsi3_notsi, arm_ashldi3_1bit, arm_ashrdi3_1_bit): Likewise.
3086 (arm_lshrdi3_1bit, one_cmpldi2): Likewise.
3087
618cc62e
UB
30882009-11-14 Uros Bizjak <ubizjak@gmail.com>
3089
3090 * config/i386/predicates.md (call_register_no_elim_operand):
3091 New predicate. Reject stack register as valid call operand
3092 for 32bit targets.
3093 (call_insn_operand): Use call_register_no_elim_operand.
3094
08d4cc33
RH
30952009-11-13 Richard Henderson <rth@redhat.com>
3096
3097 * function.c (stack_protect_prologue): Don't bypass expand_expr
3098 for stack_protect_guard and guard_decl.
3099 (stack_protect_epilogue): Likewise.
3100
589520b6
JH
31012009-11-13 Jan Hubicka <jh@suse.cz>
3102
3103 * ipa.c (function_and_variable_visibility): Clear COMDAT on functions
3104 when to PUBLIC is set.
3105
2b32c27d
JJ
31062009-11-13 Jakub Jelinek <jakub@redhat.com>
3107
3108 PR middle-end/42029
3109 * gimplify.c (gimplify_omp_atomic): Set DECL_GIMPLE_REG_P on
3110 tmp_load if needed.
3111
8410737a
UB
31122009-11-13 Uros Bizjak <ubizjak@gmail.com>
3113
3114 PR target/41900
2b32c27d
JJ
3115 * config/i386/i386.md (*call_pop_1, *call_1, *call_value_pop_1,
3116 *call_value_1): Use "lsm" as operand 1 constraint.
8410737a
UB
3117 * config/i386/predicates.md (call_insn_operand): Depend on
3118 index_register_operand to avoid %esp register.
3119
31202009-11-13 Uros Bizjak <ubizjak@gmail.com>
3121
3122 Revert:
3123 2009-11-03 Uros Bizjak <ubizjak@gmail.com>
3124
3125 PR target/41900
3126 * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
3127 (TARGET_CALL_ESP): New define.
3128 * config/i386/i386.c (initial_ix86_tune_features): Initialize
3129 X86_ARCH_CALL_ESP.
3130 * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
3131 *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
3132 *call_1, *call_value_pop_1 and *call_value_1. Depend on
3133 TARGET_CALL_ESP.
3134 (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
3135 New patterns, use "lsm" as operand 1 constraint.
3136 * config/i386/predicates.md (call_insn_operand): Depend on
3137 index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
3138
d7f1df66
JM
31392009-11-13 Jason Merrill <jason@redhat.com>
3140
3141 PR debug/26965
3142 * dwarf2out.c (gen_variable_die): Don't worry about DECL_COMDAT.
3143 Don't emit a second declaration at any scope.
3144
268bab85
AB
31452009-11-13 Andrey Belevantsev <abel@ispras.ru>
3146
8410737a
UB
3147 PR rtl-optimization/41697
3148 * sel-sched-ir.c (fallthru_bb_of_jump): Bail out when a block with
3149 a conditional jump has a single successor.
268bab85 3150
bcf33775
AB
31512009-11-13 Andrey Belevantsev <abel@ispras.ru>
3152
3153 * sched-deps.c (init_deps): New parameter lazy_reg_last. Don't
3154 allocate reg_last when in case lazy_reg_last is true.
3155 (init_deps_reg_last): New.
3156 (free_deps): When max_reg is 0, this context is already freed.
3157 * sched-int.h (init_deps_reg_last): Export.
3158 (init_deps): Update prototype.
3159 * sched-ebb.c (schedule_ebb): Update the call to init_deps.
3160 * sched-rgn.c (sched_rgn_compute_dependencies): Likewise.
3161 * ddg.c (build_intra_loop_deps): Likewise.
3162 * sel-sched-ir.c (copy_deps_context, create_deps_context,
3163 reset_deps_context, deps_init_id): Likewise.
3164 (init_first_time_insn_data): Lazy allocate INSN_DEPS_CONTEXT.
3165 (free_data_for_scheduled_insn): New, break down from ...
3166 (free_first_time_insn_data): ... here.
3167 (has_dependence_p): Allocate reg_last now, when it is needed.
3168 (extend_insn_data): When maximal LUID is big enough, allocate
3169 per-insn data in smaller chunks.
3170 * sel-sched-ir.h (free_data_for_scheduled_insn): Export.
3171 * sel-sched.c (update_seqnos_and_stage): Free INSN_DEPS_CONTEXT
8410737a
UB
3172 in scheduled insn.
3173
0f032845
UB
31742009-11-13 Uros Bizjak <ubizjak@gmail.com>
3175
3176 * config/i386/i386.md (call_value): Fix comment.
3177 (sibcall_value): Ditto.
3178
eca9d807
EB
31792009-11-13 Eric Botcazou <ebotcazou@adacore.com>
3180
3181 * config/i386/linux-unwind.h (x86_frob_update_context): New function.
3182 (MD_FROB_UPDATE_CONTEXT): Define.
3183
3a2f6fac 31842009-11-12 Eric Botcazou <ebotcazou@adacore.com>
0f032845 3185 Laurent GUERBY <laurent@guerby.net>
3a2f6fac
EB
3186
3187 * config/sparc/linux-unwind.h (sparc64_fallback_frame_state): Tidy.
3188 Do not schedule an %sp restore. Compensate for RETURN_ADDR_OFFSET.
3189 (sparc_fallback_frame_state): Tidy. Compensate for RETURN_ADDR_OFFSET.
3190
c8f59bc8
JH
31912009-11-12 Jan Hubicka <jh@suse.cz>
3192
3a2f6fac
EB
3193 * ipa.c (function_and_variable_visibility): Fix my accidentail commit
3194 and clear DECL_COMMON on localized declarations.
c8f59bc8 3195
9d324dde
BS
31962009-11-12 Bernd Schmidt <bernd.schmidt@analog.com>
3197
3198 PR rtl-opt/38582
3199 * regrename.c (struct du_head): New structure; some elements moved
3200 from...
3201 (struct du_chain): ... this one.
3202 (open_chains, closed_chains): Now of type struct du_head *.
3203 (do_replace): Accept du_head argument, not du_chain. All callers
3204 changed. Modified code to match new data structures.
3205 (build_def_use): Return a list of du_head structures. Modified code
3206 to match new data structures.
3207 (dump_def_use_chain): Accept du_head argument, not du_chain. All
3208 callers changed. Modified code to match new data structures.
3209 (merge_overlapping_regs): Accept du_head argument, not du_chain. All
3210 callers changed. Modified code to match new data structures.
3211 (scan_rtx_reg): Change type of this_regno and this_nregs to unsigned.
3212 Allocate a du_head structure as well as a du_chain when creating a
3213 new chain. Modified other code to match new data structures.
3214
9feed216 32152009-11-12 Jan Hubicka <jh@suse.cz>
a8289259
JH
3216
3217 * cgraph.h (varpool_node_name): Declare.
9feed216
EB
3218 * cgraphunit.c (process_function_and_variable_attributes): Set
3219 force_output flag on used variables.
0f032845
UB
3220 * ipa.c (function_and_variable_visibility): Dump externally visible
3221 and needed variables.
a8289259
JH
3222 * varpool.c (varpool_node_name): Export.
3223 (decide_is_variable_needed): Check COMDAT for externally visible vars;
3224 ignore needed flag.
3225
9feed216 32262009-11-12 Uros Bizjak <ubizjak@gmail.com>
8a1eb57b
UB
3227
3228 PR middle-end/41930
3229 * simplify-rtx.c (simplify_replace_fn_rtx) <case 'e'>: Skip
3230 processing if XEXP (x, i) is NULL.
3231
fcc993f6
JH
32322009-11-12 Jan Hubicka <jh@suse.cz>
3233
3234 * ipa.c (function_and_variable_visibility): Verify that WEAK || COMMON
3235 imply PUBLIC || EXTERNAL.
3236
ae761c45
AH
32372009-11-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
3238
3239 PR middle-end/41440
3240 * cfgexpand.c (expand_gimple_basic_block): Append NOP to a fallthru,
3241 single successor block, ending with jump created by RTL expander.
8410737a 3242
62a0a52e
JH
32432009-11-11 Jan Hubicka <jh@suse.cz>
3244
3245 PR middle-end/41729
3246 * ipa.c (function_and_variable_visibility): Do not privatize COMDAT
3247 and WEAK variables at -fwhole-program.
3248
3249 PR middle-end/41735
3250 * ipa.c (whole_program_function_and_variable_visility): COMDAT
3251 functions/variables are not needed even if they are externally visible.
3252
811232fe
JH
32532009-11-11 Jan Hubicka <jh@suse.cz>
3254
3255 (patch by Richard Guenther)
3256 * lto-streamer-out.c (output_function): Output head of argument list
3257 earlier.
3258 * lto-streamer-in.c (input_function): Re-map arguments into merged
3259 declaration.
3260
0bc1b77f
JH
32612009-11-11 Jan Hubicka <jh@suse.cz>
3262
3263 * lto-cgraph.c: Include gcov-io.h
3264 (output_profile_summary): New function.
3265 (output_cgraph): Use it.
3266 (input_profile_summary): New function.
3267 (input_cgraph): Use it.
3268 * coverage.c (build_ctr_info_value): Use varpool; initalize
3269 DECL_ASSEMBLER_NAME.
3270 (create_coverage): Likewise.
3271 * tree-profile.c (tree_init_ic_make_global_vars): Likewise.
3272 (tree_init_edge_profiler): Likewise.
3273 * Makefile.in (lto-cgraph.o): Add dependency on gcov-io.h.
3274
17e7cb85
KT
32752009-11-11 Kai Tietz <kai.tietz@onevision.com>
3276
8a1eb57b 3277 * config/i386/cygming.h (HANDLE_PRAGMA_PUSH_POP_MACRO): Removed.
17e7cb85
KT
3278 * c-pragma.c (def_pragma_macro_value): Likewise.
3279 (def_pragma_macro): Likewise.
3280 (pushed_macro_table): Likewise.
8a1eb57b
UB
3281 (HANDLE_PRAGMA_PUSH_POP_MACRO): Remove guarded code.
3282 * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): Removed.
17e7cb85 3283
110532c8 32842009-11-11 Basile Starynkevitch <basile@starynkevitch.net>
8a1eb57b 3285
110532c8
BS
3286 * doc/plugins.texi (Registering custom attributes): section
3287 renamed as (Registering custom attributes or pragmas).
3288 Mentions custom attributes & pragmas, and c_register_pragma, with
3289 a small example.
3290 * doc/cpp.texi (Pragmas): Mentions that plugins can provide their
3291 pragmas.
3292 * doc/extend.texi (Function Attributes): Mentions that plugin can
3293 provide their attributes.
3294
9feed216 32952009-11-11 Jon Beniston <jon@beniston.com>
aa4945c1 3296
8a1eb57b
UB
3297 * config.gcc: Add lm32 elf and uclinux targets.
3298 * config/lm32: New directory.
3299 * config/lm32/lm32.c: New file.
3300 * config/lm32/lm32.h: New file.
3301 * config/lm32/lm32.md: New file.
3302 * config/lm32/lm32.opt: New file.
3303 * config/lm32/lm32-protos.h: New file.
3304 * config/lm32/constraints.md: New file.
3305 * config/lm32/predicates.md: New file.
3306 * config/lm32/sfp-machine.h: New file.
3307 * config/lm32/t-fprules-softfp: New file.
3308 * config/lm32/uclinux-elf.h: New file.
3309 * doc/invoke.texi: Document lm32 options.
3310 * doc/contrib.texi: Document lm32 porter.
3311 * doc/install.texi: Document lm32 targets.
aa4945c1 3312
05d3aa37
MJ
33132009-11-11 Martin Jambor <mjambor@suse.cz>
3314
3315 PR lto/41932
3316 * ipa-prop.c (ipa_update_after_lto_read): Call
3317 ipa_check_create_node_params and ipa_check_create_edge_args. Also
3318 call ipa_initialize_node_params instead of ipa_populate_param_decls.
3319
814a4c3b
DJ
33202009-11-11 Daniel Jacobowitz <dan@codesourcery.com>
3321
3322 * config/arm/arm.c (neon_vdup_constant, neon_make_constant): New.
3323 (neon_expand_vector_init): Use them. Also handle non-constant
3324 vectors with identical elements and vectors with only one
3325 non-constant element.
3326 (arm_print_operand): Handle 'y' modifier.
3327 * config/arm/arm-protos.h (neon_make_constant): Declare.
3328 * config/arm/neon.md (neon_vdup_n<mode>): Split into two
3329 patterns. Use VX instead of VDQW for the first one. Allow
3330 a VFP alternative and V32 modes for the second one.
3331 * config/arm/neon.ml (shape_elt): Add Alternatives.
3332 (ops): Use Alternatives for vdup lane instructions.
3333 * config/arm/neon-testgen.ml (analyze_shape): Handle Alternatives.
3334 * config/arm/vec-common.md (mov<mode>): Use neon_make_constant.
3335
40f73786
DJ
33362009-11-11 Daniel Jacobowitz <dan@codesourcery.com>
3337
3338 * config/arm/neon.md (*neon_mov<mode>): Reject two non-register
3339 operands.
3340 (movti, mov<mode>): Call force_reg on one operand if required.
3341 * config/arm/vec-common.md (mov<mode>): Likewise.
3342
4aef21c8
DJ
33432009-11-11 Daniel Jacobowitz <dan@codesourcery.com>
3344
3345 * config/arm/arm.c (arm_override_options): Enable scheduling for
3346 Thumb-2.
3347
c35af30f
EB
33482009-11-10 Eric Botcazou <ebotcazou@adacore.com>
3349
3350 PR target/10127
3351 PR ada/20548
3352 * expr.h (anti_adjust_stack_and_probe): Declare.
3353 * explow.c (anti_adjust_stack_and_probe): Make global, add ADJUST_BACK
3354 parameter and rewrite head comment.
3355 (allocate_dynamic_stack_space): Adjust call to above function.
3356 * function.c (expand_function_end): Handle STACK_CHECK_MOVING_SP.
3357
3358 * tree.h (dwarf2out_args_size): Delete.
3359 * dwarf2out.c (dwarf2out_args_size): Make static and move around.
3360 (dwarf2out_args_size_adjust): Delete prototype and move around.
3361 (dwarf2out_frame_debug_expr): Do not record arg size adjustments for
3362 ACCUMULATE_OUTGOING_ARGS targets.
3363
66695571
EB
33642009-11-10 Eric Botcazou <ebotcazou@adacore.com>
3365
3366 * config/sparc/sparc.c (print_operand) <')'>: Test for a non-null
3367 DECL_SIZE of DECL_RESULT before evaluating it.
3368
08d19889
KG
33692009-11-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3370
3371 PR tree-optimization/41987
3372 * fold-const.c (const_binop): Avoid using fold_buildN().
3373
2c5721d9
MJ
33742009-11-10 Martin Jambor <mjambor@suse.cz>
3375
3376 * tree-pass.h (struct ipa_opt_pass_d): Added stmt_fixup field.
3377 (execute_all_ipa_stmt_fixups): Declare.
3378 * ipa-cp.c (pass_ipa_cp): Added stmt_fixup value.
3379 * ipa-inline.c (pass_ipa_inline): Likewise.
3380 * ipa-pure-const.c (pass_ipa_pure_cons): Likewise.
3381 * ipa-reference.c (pass_ipa_reference): Likewise.
3382 * ipa.c (pass_ipa_whole_program_visibility): Likewise.
3383 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Likewise.
3384 (pass_ipa_lto_finish_out): Likewise.
3385 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Likewise.
3386 * passes.c (execute_ipa_stmt_fixups): New function.
3387 (execute_all_ipa_stmt_fixups): New function.
3388 * lto-streamer-in.c (input_function): Call execute_all_ipa_stmt_fixups.
3389
949fa04c
EB
33902009-11-10 Eric Botcazou <ebotcazou@adacore.com>
3391
3392 PR ada/20548
3393 * explow.c (probe_stack_range): Fix typo.
3394 * config/sparc/sparc.md (probe_stack): New expander.
3395
633f54d0
DK
33962009-11-09 Dave Korn <dave.korn.cygwin@gmail.com>
3397
3398 * config/i386/cygwin.h (LINK_SPEC): Add -tsaware flag if !mno-cygwin.
3399
6e7e763e
JM
34002009-11-09 Jason Merrill <jason@redhat.com>
3401
3402 * gdbinit.in (pgq): New function for printing gimple sequence.
3403
e0dc3601 34042009-11-09 Paul Brook <paul@codesourcery.com>
8a1eb57b
UB
3405 Daniel Jacobowitz <dan@codesourcery.com>
3406 Sandra Loosemore <sandra@codesourcery.com>
e0dc3601
PB
3407
3408 * doc/extend.texi (Half-Precision): Update wording to reflect
3409 that there are now multiple -mfpu options that enable fp16
3410 hardware support.
3411 * doc/invoke.texi: Update list of ARM -mfpu= options.
3412 * config.gcc: Update ARM --with-fpu option list.
3413 * config/arm/arm.c (all_fpus): Add vfpv3-fp16, vfpv3-d16-fp16,
3414 vfpv3xd and vfpv3xd-fp16.
3415 (use_vfp_abi): New function.
3416 (aapcs_vfp_is_call_or_return_candidate): Avoid double precision regs
3417 when undesirable.
3418 (aapcs_vfp_is_return_candidate, aapcs_vfp_is_call_candidate,
3419 aapcs_vfp_allocate_return_reg): Use use_vfp_abi.
8a1eb57b
UB
3420 (arm_rtx_costs_1, arm_size_rtx_costs, arm_fastmul_rtx_costs,
3421 arm_9e_rtx_costs): Only expect double-precision operations if the FPU
3422 provides them.
e0dc3601
PB
3423 (coproc_secondary_reload_class): Reload HFmode via GENERAL_REGS if no
3424 NEON.
3425 (arm_print_operand): Handle 'p' modifier.
3426 (arm_hard_regno_mode_ok): : Allow HFmode in VFP registers if
3427 TARGET_FP16.
3428 * config/arm/arm.h (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Define.
3429 (TARGET_FP16): Define.
3430 * config/arm/vfp.md: Disable double-precision patterns if the FPU
3431 does not provide them.
3432 (arm_movdi_vfp, thumb2_movdi_vfp): Use fcpys to move
3433 double-precision values on a single-precision FPU.
8a1eb57b
UB
3434 (movdf_vfp, thumb2_movdf_vfp): Likewise. Use "Dy" for
3435 double-precision constants.
e0dc3601
PB
3436 (movhf_vfp_neon): New pattern (was movhf_vfp).
3437 (movhf_vfp): Remove NEON instructions.
3438 * config/arm/constraints.md: Add new "Dy" constraint for
3439 double-precision constants. Update description of "Dv".
3440 * config/arm/arm.md: Disable double-precision patterns if the FPU
3441 does not provide them
3442
2bf17308
JJ
34432009-11-09 Jakub Jelinek <jakub@redhat.com>
3444
3445 * config/i386/i386.c (print_operand) <case 'D'>: Fix formatting.
3446 (print_operand) <case 'Y'>: Likewise. Fix a pasto in operand lossage
3447 diagnostics.
3448
5938f74d
L
34492009-11-08 H.J. Lu <hongjiu.lu@intel.com>
3450
3451 * collect2.c (main): Search PLUGIN_LD for plugin linker.
3452
3453 * configure.ac (--with-plugin-ld): New. Default to ld.
3454 * configure: Regenerated.
3455 * config.in: Likewise.
3456
3457 * exec-tool.in (ORIGINAL_PLUGIN_LD_FOR_TARGET): New.
3458 (collect-ld): Use ORIGINAL_PLUGIN_LD_FOR_TARGET for -plugin.
3459
9feed216 34602009-11-08 Jonathan Gray <jsg@openbsd.org>
f8535154
JG
3461
3462 * config/openbsd-stdint.h: Change to reflect what
3463 c_common_nodes_and_builtins expects.
3464
3ab084fa
PC
34652009-11-08 Paolo Carlini <paolo.carlini@oracle.com>
3466
3467 * builtins.c (apply_args_reg_offset): Remove commented out delaration.
3468
2eea716d
JJ
34692009-11-08 Jakub Jelinek <jakub@redhat.com>
3470
3471 PR target/41985
3472 * config/i386/i386.c (get_some_local_dynamic_name): Don't assert
3473 function contains at least one local dynamic name.
3474 (print_operand) <case '&'>: Instead output operand lossage diagnostics
3475 here if that happens.
3476
e0a42b0f
ZC
34772009-11-08 Zbigniew Chamski <zbigniew.chamski@gmail.com>
3478 Joern Rennecke <amylaar@spamcop.net>
3479
3480 * cfgrtl.c (pass_free_cfg): Add pass name.
3481 * cgraphbuild.c (pass_build_cgraph_edges): Likewise.
3482 (pass_rebuild_cgraph_edges, pass_remove_cgraph_callee_edges): Likewise.
3483 * dce.c (pass_ud_rtl_dce, pass_fast_rtl_dce): Change pass name.
3484 * df-core.c (pass_df_initialize_no_opt): Likewise.
3485 * except.c (pass_rtl_eh): Likewise.
3486 * function.c (pass_init_function, pass_leaf_regs): Likewise.
3487 * gcse.c (pass_rtl_pre): Change pass name.
3488 * passes.c (pass_postreload): Add pass name.
3489 (make_pass_instance): Don't use duplicate-tracking logic for
3490 names starting with '*'.
3491 (next_pass_1): Assert that pass has a name.
3492 (register_one_dump_file): If there is an space in the name,
3493 skip past it.
3494 * predict.c (pass_strip_predict_hints): Add pass name.
3495 * reg-stack.c (pass_stack_regs): Likewise.
3496 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
3497 * tree-cfg.c (pass_warn_function_return,
3498 pass_warn_function_noreturn): Add pass name.
3499 * tree-dfa.c (pass_referenced_vars): Likewise.
3500 * tree-optimize.c (pass_cleanup_cfg_post_optimizing):
3501 Fix whitespace before comment.
3502 (pass_fixup_cfg): Add pass name, fix whitespace before comment.
3503 (pass_init_datastructures): Add pass name.
3504 * tree-ssa-loop.c (pass_record_bounds): Likewise.
3505 * tree-ssa.c (pass_early_warn_uninitialized,
3506 pass_late_warn_uninitialized): Likewise.
3507 * tree.c (pass_ipa_free_lang_data): Likewise.
3508 * doc/passes.texi (pass manager): Document how to disambiguate
3509 pass names.
3510
64274683
PB
35112009-11-08 Paolo Bonzini <bonzini@gnu.org>
3512
3513 * df-problems.c: Fix documentation for forward simulation of LR.
3514 (df_simulate_one_insn_forwards): Use df_simulate_find_defs.
3515 (df_simulate_finalize_forwards): Remove.
3516 * df.h (df_simulate_finalize_forwards): Remove.
3517
379c6f48
RG
35182009-11-08 Richard Guenther <rguenther@suse.de>
3519
3520 * tree-ssa-structalias.c (build_succ_graph): Properly make
3521 variables escape if they are stored to anything.
3522
eb149440
RG
35232009-11-08 Richard Guenther <rguenther@suse.de>
3524
3525 PR rtl-optimization/41928
3526 * loop-invariant.c (free_loop_data): If we didn't allocate
3527 loop data do not try to free it.
3528
b5fcfe89
JM
35292009-11-07 Jason Merrill <jason@redhat.com>
3530
3531 * tree.c (reconstruct_complex_type): Preserve attributes.
3532
de925a03
RG
35332009-11-07 Richard Guenther <rguenther@suse.de>
3534
3535 * tree-ssa-structalias.c (build_succ_graph): Feed stores
3536 to anything only to variables that can take pointers.
3537 (get_constraint_for_ssa_var): Properly exclude full
3538 variables from expanding.
3539 (first_vi_for_offset): Avoid overflow in arithmetic.
3540 (first_or_preceding_vi_for_offset): Likewise.
3541 (count_num_arguments): Fix implementation.
3542 (gate_ipa_pta): Do not run when not optimizing.
3543
451409e4
DB
35442009-11-07 David Binderman <dcb314@hotmail.com>
3545
3546 * builtins.c (apply_args_size, expand_builtin_mathfn, expand_powi,
3547 expand_builtin_expect, maybe_emit_sprintf_chk_warning): Remove some
3548 set but not used variables.
3ab084fa 3549 (apply_args_reg_offset): Comment out as unused.
451409e4
DB
3550 * calls.c (flags_from_decl_or_type): Likewise.
3551 * genautomata.c (check_regexp_units_distribution): Likewise.
3552
1a62cb3b
UB
35532009-11-07 Uros Bizjak <ubizjak@gmail.com>
3554
3555 * config/i386/sse.md (xop_pmacsww, xop_pmacssww, xop_pmacsdd,
3556 xop_pmacssdd, xop_pmacssdql, xop_pmacssdqh, xop_pmacsdql,
3557 *xop_pmacsdql_mem, xop_pmacsdqh, *xop_pmacsdqh_mem, xop_pmacsswd,
3558 xop_pmacswd, xop_pmadcsswd, xop_pmadcswd, xop_pcmov_<mode>,
3559 xop_pcmov_<mode>256, xop_pperm, xop_pperm_pack_v2di_v4si,
3560 xop_pperm_pack_v4si_v8hi, xop_pperm_pack_v8hi_v16qi): Compress
3561 operand alternatives.
3562
79af7c1f
MM
35632009-11-06 Michael Matz <matz@suse.de>
3564
3565 PR middle-end/41963
3566 * tree-ssa-math-opts.c (execute_cse_reciprocals): Check all uses
3567 of a potential reciprocal to really be reciprocals.
3568
d32599a6
JJ
35692009-11-06 Jakub Jelinek <jakub@redhat.com>
3570
b169fe9d
JJ
3571 * config/i386/x86intrin.h: Include fma4intrin.h, xopintrin.h and
3572 lwpintrin.h after immintrin.h.
3573 * config/i386/fma4intrin.h (__v8sf, __v4df, __m256, __m256d): Remove
3574 typedefs.
3575
d32599a6
JJ
3576 PR middle-end/41935
3577 * c-common.c (fold_offsetof_1) <case ARRAY_REF>: Don't crash for VLAs
3578 or non-constant index, allow index one past the last element and
3579 allow exceeding array bound in arrays that might be used as flexible
3580 array members.
3581
7a14a9da
RH
35822009-11-05 Richard Henderson <rth@redhat.com>
3583
3584 * config/i386/ia32intrin.h: Protect CRC32 builtins with __SSE4_2__.
3585
d79f3032
PB
35862009-11-05 Paul Brook <paul@codesourcery.com>
3587
3588 * config/arm/arm.c (arm_fp_model, arm_fpu_arch, arm_fpu_tune): Remove.
3589 (arm_fpu_desc): New.
3590 (all_fpus): Add FPU details.
3591 (fp_model_for_fpu): Remove.
3592 (arm_override_options): Set and use arm_fpu_desc and arm_fpu_attr.
3593 (arm_output_epilogue, arm_save_coproc_regs): Use TARGET_FPA_EMU2.
3594 (arm_file_start): Use arm_fpu_desc.
3595 * config/arm/arm.h (TARGET_FPA, TARGET_MAVERICK, TARGET_VFP,
3596 TARGET_VFPD32, TARGET_VFP3, TARGET_NEON_FP16, TARGET_NEON): Use
3597 arm_fpu_desc.
3598 (TARGET_FPA_EMU2): Define.
3599 (arm_fp_model, fputype, arm_fpu_tune): Remove.
3600 (vfp_reg_type, arm_fpu_desc): New.
3601 * config/arm/arm.md (attr fpu): Simplify.
3602 * config/arm/fpa.md (movxf_fpa): Use TARGET_FPA_EMU2.
3603 * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Use string value.
3604 * config/arm/bpabi.h (FPUTYPE_DEFAULT): Use string value.
3605 * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Use string value.
3606 * config/arm/vxworks.h (FPUTYPE_DEFAULT): Use string value.
3607
79e22ff8
MM
36082009-11-05 Michael Matz <matz@suse.de>
3609
3610 * config/i386/i386.c (ix86_builtin_reciprocal): Remove dependency
3611 on TARGET_RECIP.
3612 * doc/invoke.texi (-mrecip): Clarify that we don't need -mrecip
3613 for 1/sqrtf.
3614
5ab8b6b5
JM
36152009-11-04 Jason Merrill <jason@redhat.com>
3616
3617 PR c++/36912
3618 * varasm.c (initializer_constant_valid_p): A PLUS_EXPR
3619 or MINUS_EXPR of REAL_TYPE is not a valid constant initializer.
3620 (output_constant): Avoid crash after error.
3621
30a20e97
MJ
36222009-11-05 Martin Jambor <mjambor@suse.cz>
3623
3624 * tree-sra.c (struct access): Changed comment of next_sibling field.
3625 (analyze_modified_params): Loop over accesses of a group rather than
3626 over all with the ame base, pass a common bitmap to
3627 walk_aliased_vdefs.
3628 (unmodified_by_ref_scalar_representative): Build link lists of
3629 accesses of a group.
3630 (splice_param_accesses): Likewise.
3631
4f2da32b
KZ
36322009-11-04 Kenneth Zadeck <zadeck@naturalbridge.com>
3633
3634 * df-scan.c (df-uses-record): Add case zero_extract of mem.
8a1eb57b 3635
35a07c37
EB
36362009-11-04 Eric Botcazou <ebotcazou@adacore.com>
3637
3638 PR target/10127
3639 PR ada/20548
f96b1895 3640 * config/i386/i386.md (probe_stack): New expander.
35a07c37
EB
3641 (logical operation peepholes): Do not split stack checking probes.
3642
3e901069
HJ
36432009-11-04 Harsha Jagasia <harsha.jagasia@amd.com>
3644 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3645
3646 * doc/invoke.texi (-mlwp): Add documentation.
3647 * doc/extend.texi (x86 intrinsics): Add LWP intrinsics.
3648 * config.gcc (i[34567]86-*-*): Include lwpintrin.h.
3649 (x86_64-*-*): Ditto.
3650 * config/i386/lwpintrin.h: New file, provide x86 compiler
3651 intrinisics for LWP.
3652 * config/i386/cpuid.h (bit_LWP): Define LWP bit.
3653 * config/i386/x86intrin.h: Add LWP check and lwpintrin.h.
3654 * config/i386/i386-c.c (ix86_target_macros_internal): Check
8a1eb57b 3655 ISA_FLAG for LWP.
3e901069
HJ
3656 * config/i386/i386.h (TARGET_LWP): New macro for LWP.
3657 * config/i386/i386.opt (-mlwp): New switch for LWP support.
3658 * config/i386/i386.c (OPTION_MASK_ISA_LWP_SET): New.
8a1eb57b 3659 (OPTION_MASK_ISA_LWP_UNSET): New.
3e901069
HJ
3660 (ix86_handle_option): Handle -mlwp.
3661 (isa_opts): Handle -mlwp.
3662 (enum pta_flags): Add PTA_LWP.
3663 (override_options): Add LWP support.
3664 (IX86_BUILTIN_LLWPCB16): New for LWP intrinsic.
3665 (IX86_BUILTIN_LLWPCB32): Ditto.
3666 (IX86_BUILTIN_LLWPCB64): Ditto.
3667 (IX86_BUILTIN_SLWPCB16): Ditto.
3668 (IX86_BUILTIN_SLWPCB32): Ditto.
3669 (IX86_BUILTIN_SLWPCB64): Ditto.
3670 (IX86_BUILTIN_LWPVAL16): Ditto.
3671 (IX86_BUILTIN_LWPVAL32): Ditto.
3672 (IX86_BUILTIN_LWPVAL64): Ditto.
3673 (IX86_BUILTIN_LWPINS16): Ditto.
3674 (IX86_BUILTIN_LWPINS32): Ditto.
3675 (IX86_BUILTIN_LWPINS64): Ditto.
3676 (enum ix86_special_builtin_type): Add LWP intrinsic support.
3677 (builtin_description): Ditto.
3678 (ix86_init_mmx_sse_builtins): Ditto.
3679 (ix86_expand_special_args_builtin): Ditto.
8a1eb57b 3680 * config/i386/i386.md (UNSPEC_LLWP_INTRINSIC): Add new UNSPEC for
3e901069
HJ
3681 LWP support.
3682 (UNSPEC_SLWP_INTRINSIC): Ditto.
3683 (UNSPECV_LWPVAL_INTRINSIC): Ditto.
3684 (UNSPECV_LWPINS_INTRINSIC): Ditto.
3685 (lwp_llwpcbhi1): New lwp pattern.
3686 (lwp_llwpcbsi1): Ditto.
3687 (lwp_llwpcbdi1): Ditto.
3688 (lwp_slwpcbhi1): Ditto.
3689 (lwp_slwpcbsi1): Ditto.
3690 (lwp_slwpcbdi1): Ditto.
3691 (lwp_lwpvalhi3): Ditto.
3692 (lwp_lwpvalsi3): Ditto.
3693 (lwp_lwpvaldi3): Ditto.
3694 (lwp_lwpinshi3): Ditto.
3695 (lwp_lwpinssi3): Ditto.
3696 (lwp_lwpinsdi3): Ditto.
8a1eb57b 3697
0e159e0f 36982009-11-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
8a1eb57b 3699 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
0e159e0f
AP
3700
3701 PR rtl-opt/41833
3702 * simplify-rtx.c (simplify_binary_operation_1): Simplify vec_select of
3703 a vec_duplicate.
3704
7e9dc421 37052009-11-04 Richard Guenther <rguenther@suse.de>
8a1eb57b
UB
3706 Rafael Avila de Espindola <espindola@google.com>
3707
7e9dc421 3708 * gcc.c (process_command): Handle arguments name@offset.
0e159e0f 3709
43a8b705
HJ
37102009-11-04 Harsha Jagasia <harsha.jagasia@amd.com>
3711 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
8a1eb57b 3712
43a8b705
HJ
3713 * config.gcc (i[34567]86-*-*): Include xopintrin.h.
3714 (x86_64-*-*): Ditto.
3715 * config/i386/xopintrin.h: New file, provide common x86 compiler
3716 intrinisics for XOP.
3717 * config/i386/cpuid.h (bit_XOP): Define XOP bit.
3718 * config/i386/x86intrin.h: Add XOP check and xopintrin.h.
3719 * config/i386/i386-c.c(ix86_target_macros_internal): Check
8a1eb57b 3720 ISA_FLAG for XOP.
43a8b705
HJ
3721 * config/i386/i386.h(TARGET_XOP): New macro for XOP.
3722 * config/i386/i386.opt (-mxop): New switch for XOP support.
3723 * config/i386/i386.md (UNSPEC_XOP_UNSIGNED_CMP)
3724 (UNSPEC_XOP_TRUEFALSE)
3725 (UNSPEC_XOP_PERMUTE)
3726 (UNSPEC_FRCZ): Add new UNSPEC for XOP support.
3727 (PPERM_*): New constants for vpperm instruction.
3728 (xop_pcmov_<mode>): Add XOP conditional mov instructions.
3729 * config/i386/i386.c (OPTION_MASK_ISA_XOP_SET): New.
8a1eb57b 3730 (OPTION_MASK_ISA_XOP_UNSET): New.
1a62cb3b 3731 (OPTION_MASK_ISA_XOP_UNSET): Change definition to depend on XOP.
43a8b705
HJ
3732 (ix86_handle_option): Handle -mxop.
3733 (isa_opts): Handle -mxop.
3734 (enum pta_flags): Add PTA_XOP.
3735 (override_options): Add XOP support.
3736 (print_operand): Add code for XOP compare instructions.
3737 (ix86_expand_sse_movcc): Extend for XOP conditional move instruction.
3738 (ix86_expand_int_vcond): Extend for XOP compare instruction.
3739
3740 (IX86_BUILTIN_VPCMOV): New for XOP intrinsic.
3741 (IX86_BUILTIN_VPCMOV_V2DI): Ditto.
3742 (IX86_BUILTIN_VPCMOV_V4SI): Ditto.
3743 (IX86_BUILTIN_VPCMOV_V8HI): Ditto.
3744 (IX86_BUILTIN_VPCMOV_V16QI): Ditto.
3745 (IX86_BUILTIN_VPCMOV_V4SF): Ditto.
3746 (IX86_BUILTIN_VPCMOV_V2DF): Ditto.
3747
3748 (IX86_BUILTIN_VPCMOV256): Ditto.
3749 (IX86_BUILTIN_VPCMOV_V4DI256): Ditto.
3750 (IX86_BUILTIN_VPCMOV_V8SI256): Ditto.
3751 (IX86_BUILTIN_VPCMOV_V16HI256): Ditto.
3752 (IX86_BUILTIN_VPCMOV_V32QI256): Ditto.
3753 (IX86_BUILTIN_VPCMOV_V8SF256): Ditto.
3754 (IX86_BUILTIN_VPCMOV_V4DF256): Ditto.
3755
3756 (IX86_BUILTIN_VPPERM): Ditto.
3757
3758 (IX86_BUILTIN_VPMACSSWW): Ditto.
3759 (IX86_BUILTIN_VPMACSWW): Ditto.
3760 (IX86_BUILTIN_VPMACSSWD): Ditto.
3761 (IX86_BUILTIN_VPMACSWD): Ditto.
3762 (IX86_BUILTIN_VPMACSSDD): Ditto.
3763 (IX86_BUILTIN_VPMACSDD): Ditto.
3764 (IX86_BUILTIN_VPMACSSDQL): Ditto.
3765 (IX86_BUILTIN_VPMACSSDQH): Ditto.
3766 (IX86_BUILTIN_VPMACSDQL): Ditto.
3767 (IX86_BUILTIN_VPMACSDQH): Ditto.
3768 (IX86_BUILTIN_VPMADCSSWD): Ditto.
3769 (IX86_BUILTIN_VPMADCSWD): Ditto.
3770
3771 (IX86_BUILTIN_VPHADDBW): Ditto.
3772 (IX86_BUILTIN_VPHADDBD): Ditto.
3773 (IX86_BUILTIN_VPHADDBQ): Ditto.
3774 (IX86_BUILTIN_VPHADDWD): Ditto.
3775 (IX86_BUILTIN_VPHADDWQ): Ditto.
3776 (IX86_BUILTIN_VPHADDDQ): Ditto.
3777 (IX86_BUILTIN_VPHADDUBW): Ditto.
3778 (IX86_BUILTIN_VPHADDUBD): Ditto.
3779 (IX86_BUILTIN_VPHADDUBQ): Ditto.
3780 (IX86_BUILTIN_VPHADDUWD): Ditto.
3781 (IX86_BUILTIN_VPHADDUWQ): Ditto.
3782 (IX86_BUILTIN_VPHADDUDQ): Ditto.
3783 (IX86_BUILTIN_VPHSUBBW): Ditto.
3784 (IX86_BUILTIN_VPHSUBWD): Ditto.
3785 (IX86_BUILTIN_VPHSUBDQ): Ditto.
3786
3787 (IX86_BUILTIN_VPROTB): Ditto.
3788 (IX86_BUILTIN_VPROTW): Ditto.
3789 (IX86_BUILTIN_VPROTD): Ditto.
3790 (IX86_BUILTIN_VPROTQ): Ditto.
3791 (IX86_BUILTIN_VPROTB_IMM): Ditto.
3792 (IX86_BUILTIN_VPROTW_IMM): Ditto.
3793 (IX86_BUILTIN_VPROTD_IMM): Ditto.
3794 (IX86_BUILTIN_VPROTQ_IMM): Ditto.
3795
3796 (IX86_BUILTIN_VPSHLB): Ditto.
3797 (IX86_BUILTIN_VPSHLW): Ditto.
3798 (IX86_BUILTIN_VPSHLD): Ditto.
3799 (IX86_BUILTIN_VPSHLQ): Ditto.
3800 (IX86_BUILTIN_VPSHAB): Ditto.
3801 (IX86_BUILTIN_VPSHAW): Ditto.
3802 (IX86_BUILTIN_VPSHAD): Ditto.
3803 (IX86_BUILTIN_VPSHAQ): Ditto.
3804
3805 (IX86_BUILTIN_VFRCZSS): Ditto.
3806 (IX86_BUILTIN_VFRCZSD): Ditto.
3807 (IX86_BUILTIN_VFRCZPS): Ditto.
3808 (IX86_BUILTIN_VFRCZPD): Ditto.
3809 (IX86_BUILTIN_VFRCZPS256): Ditto.
3810 (IX86_BUILTIN_VFRCZPD256): Ditto.
3811
3812 (IX86_BUILTIN_VPCOMEQUB): Ditto.
3813 (IX86_BUILTIN_VPCOMNEUB): Ditto.
3814 (IX86_BUILTIN_VPCOMLTUB): Ditto.
3815 (IX86_BUILTIN_VPCOMLEUB): Ditto.
3816 (IX86_BUILTIN_VPCOMGTUB): Ditto.
3817 (IX86_BUILTIN_VPCOMGEUB): Ditto.
3818 (IX86_BUILTIN_VPCOMFALSEUB): Ditto.
3819 (IX86_BUILTIN_VPCOMTRUEUB): Ditto.
3820
3821 (IX86_BUILTIN_VPCOMEQUW): Ditto.
3822 (IX86_BUILTIN_VPCOMNEUW): Ditto.
3823 (IX86_BUILTIN_VPCOMLTUW): Ditto.
3824 (IX86_BUILTIN_VPCOMLEUW): Ditto.
3825 (IX86_BUILTIN_VPCOMGTUW): Ditto.
3826 (IX86_BUILTIN_VPCOMGEUW): Ditto.
3827 (IX86_BUILTIN_VPCOMFALSEUW): Ditto.
3828 (IX86_BUILTIN_VPCOMTRUEUW): Ditto.
3829
3830 (IX86_BUILTIN_VPCOMEQUD): Ditto.
3831 (IX86_BUILTIN_VPCOMNEUD): Ditto.
3832 (IX86_BUILTIN_VPCOMLTUD): Ditto.
3833 (IX86_BUILTIN_VPCOMLEUD): Ditto.
3834 (IX86_BUILTIN_VPCOMGTUD): Ditto.
3835 (IX86_BUILTIN_VPCOMGEUD): Ditto.
3836 (IX86_BUILTIN_VPCOMFALSEUD): Ditto.
3837 (IX86_BUILTIN_VPCOMTRUEUD): Ditto.
3838
3839 (IX86_BUILTIN_VPCOMEQUQ): Ditto.
3840 (IX86_BUILTIN_VPCOMNEUQ): Ditto.
3841 (IX86_BUILTIN_VPCOMLTUQ): Ditto.
3842 (IX86_BUILTIN_VPCOMLEUQ): Ditto.
3843 (IX86_BUILTIN_VPCOMGTUQ): Ditto.
3844 (IX86_BUILTIN_VPCOMGEUQ): Ditto.
3845 (IX86_BUILTIN_VPCOMFALSEUQ): Ditto.
3846 (IX86_BUILTIN_VPCOMTRUEUQ): Ditto.
3847
3848 (IX86_BUILTIN_VPCOMEQB): Ditto.
3849 (IX86_BUILTIN_VPCOMNEB): Ditto.
3850 (IX86_BUILTIN_VPCOMLTB): Ditto.
3851 (IX86_BUILTIN_VPCOMLEB): Ditto.
3852 (IX86_BUILTIN_VPCOMGTB): Ditto.
3853 (IX86_BUILTIN_VPCOMGEB): Ditto.
3854 (IX86_BUILTIN_VPCOMFALSEB): Ditto.
3855 (IX86_BUILTIN_VPCOMTRUEB): Ditto.
3856
3857 (IX86_BUILTIN_VPCOMEQW): Ditto.
3858 (IX86_BUILTIN_VPCOMNEW): Ditto.
3859 (IX86_BUILTIN_VPCOMLTW): Ditto.
3860 (IX86_BUILTIN_VPCOMLEW): Ditto.
3861 (IX86_BUILTIN_VPCOMGTW): Ditto.
3862 (IX86_BUILTIN_VPCOMGEW): Ditto.
3863 (IX86_BUILTIN_VPCOMFALSEW): Ditto.
3864 (IX86_BUILTIN_VPCOMTRUEW): Ditto.
3865
3866 (IX86_BUILTIN_VPCOMEQD): Ditto.
3867 (IX86_BUILTIN_VPCOMNED): Ditto.
3868 (IX86_BUILTIN_VPCOMLTD): Ditto.
3869 (IX86_BUILTIN_VPCOMLED): Ditto.
3870 (IX86_BUILTIN_VPCOMGTD): Ditto.
3871 (IX86_BUILTIN_VPCOMGED): Ditto.
3872 (IX86_BUILTIN_VPCOMFALSED): Ditto.
3873 (IX86_BUILTIN_VPCOMTRUED): Ditto.
3874
3875 (IX86_BUILTIN_VPCOMEQQ): Ditto.
3876 (IX86_BUILTIN_VPCOMNEQ): Ditto.
3877 (IX86_BUILTIN_VPCOMLTQ): Ditto.
3878 (IX86_BUILTIN_VPCOMLEQ): Ditto.
3879 (IX86_BUILTIN_VPCOMGTQ): Ditto.
3880 (IX86_BUILTIN_VPCOMGEQ): Ditto.
3881 (IX86_BUILTIN_VPCOMFALSEQ): Ditto.
3882 (IX86_BUILTIN_VPCOMTRUEQ): Ditto.
3883
3884 (enum multi_arg_type): New enum for describing the various XOP
3885 intrinsic argument types.
3886 (bdesc_multi_arg): New table for XOP intrinsics.
3887 (ix86_init_mmx_sse_builtins): Add XOP intrinsic support.
3888 (ix86_expand_multi_arg_builtin): New function for creating XOP
3889 intrinsics.
3890
3891 * config/i386/sse.md (sserotatemax): New mode attribute for XOP.
3892 (xop_pmacsww): Ditto.
3893 (xop_pmacssww): Ditto.
3894 (xop_pmacsdd): Ditto.
3895 (xop_pmacssdd): Ditto.
3896 (xop_pmacssdql): Ditto.
3897 (xop_pmacssdqh): Ditto.
3898 (xop_pmacsdql): Ditto.
3899 (xop_pmacsdql_mem): Ditto.
3900 (xop_mulv2div2di3_low): Ditto.
3901 (xop_pmacsdqh): Ditto.
3902 (xop_pmacsdqh_mem): Ditto.
3903 (xop_mulv2div2di3_high): Ditto.
3904 (xop_pmacsswd): Ditto.
3905 (xop_pmacswd): Ditto.
3906 (xop_pmadcsswd): Ditto.
3907 (xop_pmadcswd): Ditto.
3908 (xop_pcmov_<mode>): Ditto.
8a1eb57b 3909 (xop_pcmov_<mode>256): Ditto.
43a8b705
HJ
3910 (xop_phaddbw): Ditto.
3911 (xop_phaddbd): Ditto.
3912 (xop_phaddbq): Ditto.
3913 (xop_phaddwd): Ditto.
3914 (xop_phaddwq): Ditto.
3915 (xop_phadddq): Ditto.
3916 (xop_phaddubw): Ditto.
3917 (xop_phaddubd): Ditto.
3918 (xop_phaddubq): Ditto.
3919 (xop_phadduwd): Ditto.
3920 (xop_phadduwq): Ditto.
3921 (xop_phaddudq): Ditto.
3922 (xop_phsubbw): Ditto.
3923 (xop_phsubwd): Ditto.
3924 (xop_phsubdq): Ditto.
3925 (xop_pperm): Ditto.
3926 (rotl<mode>3): Ditto.
3927 (rotr<mode>3): Ditto.
3928 (xop_rotl<mode>3): Ditto.
3929 (xop_rotr<mode>3): Ditto.
3930 (vrotr<mode>3): Ditto.
3931 (vrotl<mode>3): Ditto.
3932 (xop_vrotl<mode>3): Ditto.
3933 (vlshr<mode>3): Ditto.
3934 (vashr<mode>3): Ditto.
3935 (vashl<mode>3
3936 (xop_ashl<mode>3): Ditto.
3937 (xop_lshl<mode>3): Ditto.
3938 (ashlv16qi3): Ditto.
3939 (lshlv16qi3): Ditto.
3940 (ashrv16qi3): Ditto.
3941 (ashrv2di3): Ditto.
3942 (xop_frcz<mode>2): Ditto.
3943 (xop_vmfrcz<mode>2): Ditto.
8a1eb57b 3944 (xop_frcz<mode>2256): Ditto.
43a8b705
HJ
3945 (xop_maskcmp<mode>3): Ditto.
3946 (xop_maskcmp_uns<mode>3): Ditto.
3947 (xop_maskcmp_uns2<mode>3): Ditto.
3948 (xop_pcom_tf<mode>3): Ditto.
3949
3950 * doc/invoke.texi (-mxop): Add documentation.
3951 * doc/extend.texi (x86 intrinsics): Add XOP intrinsics.
8a1eb57b 3952
7d6ce94a
MM
39532009-11-03 Mark Mitchell <mark@codesourcery.com>
3954
3955 PR driver/11810
3956 * gcc.c (SWITCHES_NEED_SPACES): Define to "o".
3957 * config/alpha/osf.h (SWITCHES_NEED_SPACES): Remove here.
3958 * config/mips/iris.h (SWITCHES_NEED_SPACES): Remove here.
3959
57f5eef0
RE
39602009-11-04 Richard Earnshaw <rearnsha@arm.com>
3961
3962 PR target/40835
3963 * arm.md (peephole2 patterns for move and compare): New.
3964
4003023f
NC
39652009-11-04 Nick Clifton <nickc@redhat.com>
3966
3967 * defaults.h (CONSTANT_ADDRESS_P): Provide a default definition.
3968 Make sure that it does not allow CONST_DOUBLEs.
3969 * doc/tm.texi (CONSTANT_ADDRESS_P): Update description.
3970 * config/avr/avr.h (CONSTANT_ADDRESS_P): Delete.
3971 * config/bfin/bfin.h (CONSTANT_ADDRESS_P): Delete.
3972 * config/cris/cris.h (CONSTANT_ADDRESS_P): Delete.
3973 * config/fr30/fr30.h (CONSTANT_ADDRESS_P): Delete.
3974 * config/frv/frv.h (CONSTANT_ADDRESS_P): Delete.
3975 * config/m32c/m32c.h (CONSTANT_ADDRESS_P): Delete.
3976 * config/m68hc11/m68hc11.h (CONSTANT_ADDRESS_P): Delete.
3977 * config/mep/mep.h (CONSTANT_ADDRESS_P): Delete.
3978 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Delete.
3979 * config/moxie/moxie.h (CONSTANT_ADDRESS_P): Delete.
3980 * config/pdp11/pdp11.h (CONSTANT_ADDRESS_P): Delete.
3981 * config/picochip/picochip.h (CONSTANT_ADDRESS_P): Delete.
3982 * config/score/score.h (CONSTANT_ADDRESS_P): Delete.
3983 * config/stormy16/stormy16.h (CONSTANT_ADDRESS_P): Delete.
3984
92fcbf95
RB
39852009-11-04 Richard Guenther <rguenther@suse.de>
3986
3987 PR tree-optimization/41919
3988 * tree-vrp.c (test_for_singularity): Properly compare values.
3989
0cf7986c
RE
39902009-11-04 Revital Eres <eres@il.ibm.com>
3991
3992 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3993 Consider peeling for alignment only for stores and remove
3994 redundant assignment.
3995
db5e2d51
MK
39962009-11-04 Maxim Kuvyrkov <maxim@codesourcery.com>
3997
3998 PR target/41302
3999 * config/m68k/m68k.c (m68k_reg_present_p): New static function.
4000 (m68k_ok_for_sibcall_p): Handle different result return locations.
4001
e3b8749b
RG
40022009-11-04 Richard Guenther <rguenther@suse.de>
4003
4004 * c-opts.c (c_common_post_options): Move LTO option processing
4005 code ...
4006 * opts.c (decode_options): ... here.
4007
00ffc97d
JJ
40082009-11-04 Jakub Jelinek <jakub@redhat.com>
4009
4010 * c-common.c (fold_offsetof_1): Use %wd instead of
4011 HOST_WIDE_INT_PRINT_DEC.
4012
bfd47963
MR
40132009-11-04 Maciej W. Rozycki <macro@linux-mips.org>
4014
4015 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Don't define
4016 __pic__ or __PIC__.
4017
45f68150
MR
40182009-11-04 Maciej W. Rozycki <macro@linux-mips.org>
4019
4020 * config.gcc (vax-*-linux*): Keep the original contents of
4021 tmake_file while adding vax/t-linux.
4022
d809253a
EB
40232009-11-03 Eric Botcazou <ebotcazou@adacore.com>
4024
4025 PR target/10127
4026 PR ada/20548
4027 * expr.h (STACK_CHECK_PROBE_INTERVAL): Delete.
4028 (STACK_CHECK_PROBE_INTERVAL_EXP): New macro.
4029 (STACK_CHECK_MOVING_SP): Likewise.
4030 * system.h (STACK_CHECK_PROBE_INTERVAL): Poison it.
4031 * doc/tm.texi (Stack Checking): Delete STACK_CHECK_PROBE_INTERVAL.
4032 Document STACK_CHECK_PROBE_INTERVAL_EXP and STACK_CHECK_MOVING_SP.
4033 * doc/md.texi (Standard Pattern Names): Tweak entry of CHECK_STACK.
4034 Document PROBE_STACK.
4035 * explow.c (anti_adjust_stack_and_probe): New function.
4036 (allocate_dynamic_stack_space): Do not directly allocate space if
4037 STACK_CHECK_MOVING_SP, instead invoke above function.
4038 (emit_stack_probe): Handle probe_stack insn.
4039 (PROBE_INTERVAL): New macro.
4040 (STACK_GROW_OPTAB): Likewise.
4041 (STACK_GROW_OFF): Likewise.
4042 (probe_stack_range): Use Pmode and memory_address consistently. Fix
4043 loop condition in the small constant case. Rewrite in the general
4044 case to be immune to wraparounds. Make sure the address of probes
4045 is valid. Try to use [base + disp] addressing mode if possible.
4046 * ira.c (setup_eliminable_regset): Set frame_pointer_needed if stack
4047 checking is enabled and STACK_CHECK_MOVING_SP.
4048 * rtlanal.c (may_trap_p_1) <MEM>: If stack checking is enabled,
4049 return 1 for volatile references to the stack pointer.
4050 * tree.c (build_common_builtin_nodes): Do not set ECF_NOTHROW on
4051 __builtin_alloca if stack checking is enabled.
4052 * unwind-dw2.c (uw_identify_context): Take into account whether the
4053 context is that of a signal frame or not.
4054 * config/i386/linux.h (STACK_CHECK_MOVING_SP): Define to 1.
4055 * config/i386/linux64.h (STACK_CHECK_MOVING_SP): Likewise.
4056
24d179b4
JJ
40572009-11-03 Jakub Jelinek <jakub@redhat.com>
4058
4059 PR rtl-optimization/41917
4060 * rtlanal.c (num_sign_bit_copies1) <case UMOD>: If sign bit of second
4061 operand isn't known to be 0, return 1.
4062
791c344b
RS
40632009-11-03 Richard Sandiford <rdsandiford@googlemail.com>
4064
4065 * config/mips/mips.md: Fix typos.
4066
8d023933
RS
40672009-11-03 Richard Sandiford <rdsandiford@googlemail.com>
4068
4069 * doc/invoke.texi: Fix typo.
4070
156e4236
PB
40712009-11-03 Paul Brook <paul@codesourcery.com>
4072
4073 * config/arm/neon.ml (vectype): Add T_floatSF.
4074 (string_of_vectype): Ditto.
4075 * config/arm/neon-gen.ml (signed_ctype): Add T_floatSF.
4076 (deftypes): Use float for float32_t.
4077 * config/arm/arm_neon.h: Regenerate.
4078
9595a419
NC
40792009-11-03 Nick Clifton <nickc@redhat.com>
4080 Kevin Buettner <kevinb@redhat.com>
4081
4082 * config/rx/predicates.md (rx_store_multiple_vector): Reverse
4083 order of expected registers.
4084 (rx_load_multiple_vector): Likewise.
4085 (rx_rtsd_vector): Likewise.
4086 * config/rx/rx.c (rx_cpu_type): New variable.
4087 (rx_print_operand): Fix bug printing 64-bit constant values.
4088 (rx_emit_stack_pushm): Reverse order of pushed registers.
4089 (gen_rx_store_vector): Likewise.
4090 (is_fast_interrupt_func): Only accept "fast_interrupt" as the
4091 attribute name.
4092 (is_exception_func): Rename to is_interrupt_func and only accept
4093 "interrupt" as the attribute name.
4094 (rx_get_stack_layout): Use new function name.
4095 (rx_func_attr_inlinable): Likewise.
4096 (rx_attribute_table): Remove "exception".
4097 (rx_expand_prologue): If necessary push the accumulator register
4098 in the prologue of interrupt functions.
4099 (rx_expand_epilogue): If necessary pop the accumulator.
4100 (rx_builtins): Add RX_BUILTIN_MVTIPL.
4101 (rx_expand_builtin_stz): Remove.
4102 (rx_expand_builtin_mvtipl): New function.
4103 (rx_init_builtins): Handle RX_BUILTIN_MVTIPL.
4104 (rx_expand_builtin): Likewise.
4105 (rx_enable_fpu): New variable.
4106 (rx_handle_option): Handle -fpu, -nofpu, -mcpu and -patch.
4107 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Assert machine based
4108 on rx_cpu_type. Define __RX_FPU_INSNS__ if FPU insns are allowed.
4109 (enum rx_cpu_types): Define.
4110 (ASM_SPEC): Pass -m32bit-doubles on to assembler.
4111 (INCOMING_FRAME_SP_OFFSET): Define.
4112 (ARG_POINTER_CFA_OFFSET): Define.
4113 (FRAME_POINTER_CFA_OFFSET): Define.
4114 (OVERRIDE_OPTIONS): Enable fast math if RX FPU insns are enabled.
4115 (ALLOW_RX_FPU_INSNS): Define.
4116 * config/rx/rx.md: Test ALLOW_RX_FPU_INSNS instead of
4117 fast_math_flags_set_p.
4118 (UNSPEC_BUILTIN_MVTIPL): Define.
4119 (revl): Rename to bswapsi2.
4120 (bswaphi2): New pattern.
0b94d8b2 4121 (mvtachi): Mark as volatile because it uses a register unknown to GCC.
9595a419
NC
4122 (mvtaclo): Likewise.
4123 (racw): Likewise.
4124 (mvtc): Remove clobber of cc0.
4125 (mvtcp): Delete.
4126 (opecp): Delete.
4127 * config/rx/rx.opt (mieee): Remove.
4128 (fpu): Add.
4129 (nofpu): Add.
4130 (mcpu=): Add.
4131 (patch=): Add.
4132 (msave-acc-in-interrupts): Add.
0b94d8b2 4133 * config/rx/t-rx (MULTILIB_OPTIONS): Change default to 64bit doubles.
9595a419
NC
4134 (MULTILIB_DIRS): Likewise.
4135 (MULTILIB_MATCHES): Treat -fpu as an alias for -m32bit-doubles.
4136 * doc/extend.texi: Remove description of "exception" function
4137 attribute.
4138 * doc/invoke.texi: Document -fpu, -nofpu, -mcpu=, -patch= and
4139 -msave-acc-in-interrupts options.
4140
b56973d1
RG
41412009-11-03 Richard Guenther <rguenther@suse.de>
4142
4143 * c-common.c (fold_offsetof_1): Use HOST_WIDE_INT_PRINT_DEC.
4144
61c3c490
DS
41452009-11-03 Dodji Seketeli <dodji@redhat.com>
4146
4147 PR c++/38699
1a62cb3b
UB
4148 * c-common.c (fold_offsetof_1): Issue errors when the member
4149 designator of the offsetof expression is not legitimate.
61c3c490 4150
9d1a9845
UB
41512009-11-03 Uros Bizjak <ubizjak@gmail.com>
4152
4153 * config/i386/i386.md (*call_value_1_rex64_ms_sysv): Use register
4154 names instead of numerical constants.
4155 (sse_prologue_save): Ditto.
4156 (*sse_prologue_save_insn): Ditto.
4157
55a19d49
UB
41582009-11-03 Uros Bizjak <ubizjak@gmail.com>
4159
4160 PR target/41900
4161 * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
4162 (TARGET_CALL_ESP): New define.
4163 * config/i386/i386.c (initial_ix86_tune_features): Initialize
4164 X86_ARCH_CALL_ESP.
9d1a9845
UB
4165 * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
4166 *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
4167 *call_1, *call_value_pop_1 and *call_value_1. Depend on
4168 TARGET_CALL_ESP.
55a19d49
UB
4169 (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
4170 New patterns, use "lsm" as operand 1 constraint.
0b94d8b2 4171 * config/i386/predicates.md (call_insn_operand): Depend on
55a19d49
UB
4172 index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
4173
d7c0c068
UW
41742009-11-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4175
4176 PR tree-optimization/41857
4177 * tree-flow.h (rewrite_use_address): Add BASE_HINT argument.
4178 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass base hint
4179 to create_mem_ref.
4180 * tree-ssa-address.c (move_hint_to_base): New function.
4181 (most_expensive_mult_to_index): Add TYPE argument. Use mode and
4182 address space associated with TYPE.
4183 (addr_to_parts): Add TYPE and BASE_HINT arguments. Pass TYPE to
4184 most_expensive_mult_to_index. Call move_hint_to_base.
4185 (create_mem_ref): Add BASE_HINT argument. Pass BASE_HINT and
4186 TYPE to addr_to_parts.
4187
2b93f88d
MJ
41882009-11-02 Martin Jambor <mjambor@suse.cz>
4189
4190 PR tree-optimization/41750
4191 * tree-sra.c (analyze_modified_params): Loop over all
4192 representatives of components of a parameter.
4193
9789ba46
JJ
41942009-11-02 Jakub Jelinek <jakub@redhat.com>
4195
68052d59
JJ
4196 PR tree-optimization/41841
4197 * ipa-struct-reorg.c (build_data_structure): Don't attempt to look at
4198 local variables of not yet materialized clones.
4199
0fba566c
JJ
4200 PR debug/41893
4201 * cfgexpand.c (expand_debug_expr): Don't attempt to create DECL_RTL
4202 for a VOIDmode variable.
4203
9789ba46
JJ
4204 PR c++/41774
4205 * c-pragma.c (visstack): Change into vector of ints rather than
4206 enum symbol_visibility.
4207 (push_visibility): Add kind argument, push default_visibility together
4208 with kind.
4209 (pop_visibility): Add kind argument, return true if successful, fail
4210 if visibility stack is empty or if stack top is of different kind.
4211 (handle_pragma_visibility): Don't check length of visstack, instead
4212 call pop_visibility and issue diagnostics if it failed. Pass 0
4213 as last argument to push_visibility and pop_visibility.
4214 * c-pragma.h (push_visibility): Add kind argument.
4215 (pop_visibility): Likewise. Return bool instead of void.
4216
ebcc3d93
EB
42172009-11-01 Eric Botcazou <ebotcazou@adacore.com>
4218
4219 * tree.def (TARGET_MEM_REF): Update comment.
4220 * alias.c (get_alias_set): Retrieve the original memory reference for
4221 a TARGET_MEM_REF before proceeding.
4222
219d92a4
AS
42232009-10-31 Anatoly Sokolov <aesok@post.ru>
4224
4225 * config/frv/frv.c (frv_function_value, frv_libcall_value,
4226 frv_function_value_regno_p): New functions.
4227 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
8a1eb57b 4228 * config/frv/frv.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
219d92a4
AS
4229 (FUNCTION_VALUE_REGNO_P): Redefine, use frv_function_value_regno_p.
4230 * config/frv/frv-protos.h (frv_function_value_regno_p): Declare.
4231
34732b0a
AS
42322009-10-31 Anatoly Sokolov <aesok@post.ru>
4233
4234 * config/mn10300/mn10300.c (mn10300_function_value): Make static, add
4235 new 'outgoing' argument.
0b94d8b2 4236 (mn10300_libcall_value, mn10300_function_value_regno_p): New functions.
34732b0a 4237 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
8a1eb57b 4238 * config/mn10300/mn10300.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
34732b0a
AS
4239 LIBCALL_VALUE): Remove.
4240 (FUNCTION_VALUE_REGNO_P): Redefine, use mn10300_function_value_regno_p.
4241 * config/mn10300/mn10300-protos.h (mn10300_function_value): Remove.
4242 (mh10300_function_value_regno_p): Declare.
4243
46527cc8
RR
42442009-10-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4245
8a1eb57b 4246 * config/arm/cortex-a9.md: New - integer pipeline description.
46527cc8 4247
03472fdd
EB
42482009-10-31 Eric Botcazou <ebotcazou@adacore.com>
4249
4250 * tree-ssa-sccvn.c (vn_reference_lookup_3): Bail out instead of
4251 aborting if the sizes of the two references don't match.
4252
2e57e853
TM
42532009-10-31 Toon Moene <toon@moene.org>
4254
4255 * ipa-inline.c (cgraph_decide_inlining):
4256 Include reason for not inlining called-once functions in dump file.
4257
7664c548
DG
42582009-10-30 Daniel Gutson <dgutson@codesourcery.com>
4259
4260 * config/arm/linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added.
4261 * config/arm/bpapi.h (BE8_LINK_SPEC): New define.
4262 (LINK_SPEC): BE_LINK_SPEC added.
4263
b207f900
RG
42642009-10-30 Richard Guenther <rguenther@suse.de>
4265
4266 PR lto/41858
4267 * lto-streamer.h (struct lto_file_decl_data): Remove fd member.
4268
8c686cf5
NS
42692009-10-30 Nathan Sidwell <nathan@codesourcery.com>
4270
4271 * target-def.h (TARGET_ASM_TTYPE): Correct typo of TARGET_ARM_TTYPE.
4272 * config/arm/unwind-arm.c (__gnu_Unwind_Backtrace): Remove unused
4273 label.
4274
3d158124
MJ
42752009-10-30 Martin Jambor <mjambor@suse.cz>
4276
4277 * tree-sra.c (build_ref_for_offset_1): Remove a comment.
4278
890b9b96
L
42792009-10-30 H.J. Lu <hongjiu.lu@intel.com>
4280
e15f1ff6 4281 PR target/40838
890b9b96
L
4282 * cfgexpand.c (expand_stack_alignment): Call update_stack_boundary
4283 first. Move assert on stack_alignment_estimated just before
4284 setting stack_realign_needed.
4285 (gimple_expand_cfg): Initialize stack_alignment_estimated to 0.
4286 Don't call update_stack_boundary.
4287
4288 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): New.
4289 (verride_options): Don't check ix86_force_align_arg_pointer here.
4290 (ix86_function_ok_for_sibcall): Use it.
4291 (ix86_update_stack_boundary): Likewise.
4292
4293 * config/i386/i386.h (STACK_REALIGN_DEFAULT): Update comments.
4294
953a18fb
RE
42952009-10-30 Richard Earnshaw <rearnsha@arm.com>
4296
4297 * arm.md (QHSI): New mode iterator.
4298 (movqi): If generating for thumb, then truncate any immediate to
4299 8 bits.
4300 * thumb2.md (thumb2_movsi_shortim and peephole2 generator): Replace
4301 with...
4302 (thumb2_mov<mode>_shortim and peephole2 generator): ... iterator based
4303 version.
4304
d0539838
CC
43052009-10-29 Cary Coutant <ccoutant@google.com>
4306
4307 PR debug/41700
4308 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hook (two
4309 locations in the source).
890b9b96
L
4310 (store_vcall_insn): New function.
4311 (lookup_vcall_insn): New function.
4312 (dwarf2out_virtual_call_token): Use store_vcall_insn.
d0539838
CC
4313 (dwarf2out_copy_call_info): New function.
4314 (dwarf2out_virtual_call): Use lookup_vcall_insn.
4315 * emit-rtl.c (try_split): Call copy_call_info debug hook.
4316 * debug.h (struct gcc_debug_hooks): Add copy_call_info hook.
4317 * debug.c (do_nothing_debug_hooks): Add dummy entry for new hook.
4318 (debug_nothing_rtx_rtx): New dummy hook.
4319 * dbxout.c (dbx_debug_hooks): Add dummy entry for new hook.
4320 (xcoff_debug_hooks): Likewise.
4321 * sdbout.c (sdb_debug_hooks): Likewise.
4322 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
4323
c376dbfb
DD
43242009-10-29 David Daney <ddaney@caviumnetworks.com>
4325
4326 * doc/invoke.texi (mmcount-ra-address): Document new command line
4327 option.
4328 * config/mips/mips.opt (mmcount-ra-address): New option.
4329 * config/mips/mips-protos.h (mips_function_profiler): Declare new
4330 function.
4331 * config/mips/mips.c (struct mips_frame_info): Add ra_fp_offset
4332 member.
4333 (mips_for_each_saved_gpr_and_fpr): Set ra_fp_offset.
4334 (mips_function_profiler): Moved from FUNCTION_PROFILER, and
4335 rewritten.
4336 * config/mips/mips.h (FUNCTION_PROFILER): Body of macro moved to
4337 mips_function_profiler.
4338
2b7e2984
SE
43392009-10-29 Steve Ellcey <sje@cup.hp.com>
4340
4341 PR middle-end/37565
4342 PR target/38018
4343 * doc/tm.texi (OVERRIDE_OPTIONS): Update.
4344 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
0b94d8b2 4345 * optc-gen.awk (cl_target_option_restore): Include call to
2b7e2984
SE
4346 targetm.override_options_after_change.
4347 * target-def.h (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
4348 * target.h (override_options_after_change): New.
4349 * c-common.c (parse_optimize_options): Call
4350 targetm.override_options_after_change.
4351 * config/ia64/ia64.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
4352 (ia64_override_options_after_change): New.
4353 (ia64_override_options) Add call to above.
4354
44e82499
MM
43552009-10-29 Michael Matz <matz@suse.de>
4356
4357 * tree-ssa-math-opts.c (execute_convert_to_rsqrt): Remove.
4358 (gate_convert_to_rsqrt): Ditto.
4359 (pass_convert_to_rsqrt): Ditto.
4360 * tree-pass.h (pass_convert_to_rsqrt): Don't declare.
4361 * passes.c (init_optimization_passes): Don't add pass_convert_to_rsqrt
4362 to pass list.
4363
4364 * config/i386/i386.c (ix86_emit_swdivsf): Change evaluation order.
4365
90e77553
RR
43662009-10-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4367
4368 * config/arm/arm.c (find_best_start): Fix type of remainder to be
0b94d8b2 4369 unsigned.
90e77553 4370
8a1326b3
MJ
43712009-10-29 Martin Jambor <mjambor@suse.cz>
4372
4373 PR tree-optimization/41775
4374 * tree-sra.c (build_ref_for_offset): Unshare *expr if not NULL.
4375 (generate_subtree_copies): Do not unshare agg.
4376 (load_assign_lhs_subreplacements): Do not unshare rhs.
4377 (sra_modify_assign): Do not unshare exprs.
4378 (propagate_subacesses_accross_link): Renamed to
4379 propagate_subaccesses_across_link.
4380
162e4591
RE
43812009-10-29 Richard Earnshaw <rearnsha@arm.com>
4382
4383 * arm.c (count_insns_for_constant): Rework to support counting for
4384 thumb2 immediates as well.
4385 (find_best_start): Split out from arm_gen_constant.
4386 (arm_gen_constant): Rework to support XOR with immediate.
4387
d48a3196
CF
43882009-10-29 Chao-ying Fu <fu@mips.com>
4389
4390 * config/mips/mips.c (mips_emit_unary, mips_force_unary): New
4391 functions.
4392 (mips_expand_synci_loop): Use the length rtx to control the
4393 synci loop from the begin rtx that points to the first byte of
4394 the cache line.
4395
180a2539
RAE
43962009-10-28 Rafael Avila de Espindola <espindola@google.com>
4397
4398 * doc/invoke.texi: Rename -use-linker-plugin -fuse-linker-plugin.
55a19d49 4399
4d62b56a
RAE
44002009-10-28 Rafael Avila de Espindola <espindola@google.com>
4401
4402 * dbxout.c (dbxout_common_check): Accept non public trees.
4403 * dwarf2out.c (fortran_common): Accept non public trees.
4404
da18ea94
RAE
44052009-10-28 Rafael Avila de Espindola <espindola@google.com>
4406
4407 * common.opt (fuse-linker-plugin): New option.
4408 * gcc.c (LINK_COMMAND_SPEC, main): Rename use-linker-plugin to
4409 fuse-linker-plugin.
4410 * opts.c (common_handle_option): Ignore OPT_fuse_linker_plugin.
4411
c4bb78e9
PB
44122009-10-28 Paolo Bonzini <bonzini@gnu.org>
4413
4414 PR rtl-optimization/39715
4415 * config/arm/arm.md (cstoresi4): Use gen_cstoresi_ltu_thumb1.
4416 (gen_cstoresi_ltu_thumb1): New splitter.
4417
cfee9aa4
RG
44182009-10-28 Richard Guenther <rguenther@suse.de>
4419
4420 PR lto/41808
4421 PR lto/41839
4422 * tree-ssa.c (useless_type_conversion_p): Do not treat
4423 conversions to pointers to incomplete types as useless.
4424 * gimple.c (gimple_types_compatible_p): Compare struct tags,
4425 not typedef names.
4426
7cf72011
JJ
44272009-10-28 Jakub Jelinek <jakub@redhat.com>
4428
4429 * var-tracking.c (emit_note_insn_var_location): Don't call the second
4430 vt_expand_loc unnecessarily when location is not a register nor
4431 memory.
4432
a1c65695
JJ
4433 PR middle-end/41837
4434 * ipa-struct-reorg.c (find_field_in_struct_1): Return NULL if
4435 fields don't have DECL_NAME.
4436
f46835f5
JJ
4437 PR debug/41801
4438 * builtins.c (get_builtin_sync_mem): Expand loc in ptr_mode,
4439 call convert_memory_address on addr.
4440
6ac719d3
JJ
4441 PR target/41762
4442 * config/i386/i386.c (ix86_pic_register_p): Don't call
4443 rtx_equal_for_cselib_p for VALUEs discarded as useless.
4444
e70545b0
RS
44452009-10-28 Richard Sandiford <rdsandiford@googlemail.com>
4446
4447 * var-tracking.c (emit_note_insn_var_location): Get the mode of
4448 a variable part from its REG, MEM or VALUE.
4449
f883d997
RG
44502009-10-28 Richard Guenther <rguenther@suse.de>
4451
4452 * gimple.c (gimple_get_alias_set): Fix comment typo.
4453
14cf68d9
RG
44542009-10-28 Richard Guenther <rguenther@suse.de>
4455
4456 * tree.c (free_lang_data_in_type): Do not call get_alias_set.
4457 (free_lang_data): Unconditionally compute alias sets for all
4458 standard integer types. Bail out if gate bailed out previously.
4459 Do not reset the types_compatible_p langhook.
4460 (gate_free_lang_data): Remove.
4461 (struct pass_ipa_free_lang_data): Enable unconditionally.
4462 * gimple.c (gimple_get_alias_set): Use the same alias-set for
4463 all pointer types.
4464
1307c758
RG
44652009-10-28 Richard Guenther <rguenther@suse.de>
4466
4467 PR middle-end/41855
4468 * tree-ssa-alias.c (refs_may_alias_p_1): Deal with CONST_DECLs
4469 (ref_maybe_used_by_call_p_1): Fix bcopy handling.
4470 (call_may_clobber_ref_p_1): Likewise.
4471 * tree-ssa-structalias.c (find_func_aliases): Likewise.
4472 * alias.c (nonoverlapping_memrefs_p): Deal with CONST_DECLs.
4473
e5bb5009
PB
44742009-10-28 Paolo Bonzini <bonzini@gnu.org>
4475
4476 PR rtl-optimization/41812
4477
4478 Revert:
4479 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
4480
4481 * df-problems.c (df_md_scratch): New.
4482 (df_md_alloc, df_md_free): Allocate/free it.
4483 (df_md_local_compute): Only include live registers in init.
4484 (df_md_transfer_function): Prune the in-set computed by
4485 the confluence function, and the gen-set too.
4486
5d49d0ea
PB
44872009-10-28 Paolo Bonzini <bonzini@gnu.org>
4488
4489 PR rtl-optimization/39715
4490 * combine.c (simplify_comparison): Use extensions to
4491 widen comparisons. Try an ANDing first.
4492
582021ba
PB
44932009-10-28 Paolo Bonzini <bonzini@gnu.org>
4494
4495 PR rtl-optimization/40741
4496 * config/arm/arm.c (thumb1_rtx_costs): IOR or XOR with
4497 a small constant is cheap.
4498 * config/arm/arm.md (andsi3, iorsi3): Try to place the result of
4499 force_reg on the LHS.
4500 (xorsi3): Likewise, and split the XOR if the constant is complex
4501 and not in Thumb mode.
4502
533d4b99
PB
45032009-10-28 Paolo Bonzini <bonzini@gnu.org>
4504
4505 * expmed.c (emit_store_flag): Check costs before
4506 transforming to the opposite representation.
4507
42663bf1
PB
45082009-10-28 Paolo Bonzini <bonzini@gnu.org>
4509
4510 * config/sh/sh.md (cbranchfp4_media): Remove hack extending
4511 cstore result to DImode.
4512
f60e5a20
KK
45132009-10-28 Kaz Kojima <kkojima@gcc.gnu.org>
4514
4515 * config/sh/sh.md (stuff_delay_slot): Move const_int pattern
4516 inside the unspec vector.
4517
9ba0399e
RH
45182009-10-27 Richard Henderson <rth@redhat.com>
4519
4520 * cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.
4521
b7da9fd4
RH
45222009-10-27 Richard Henderson <rth@redhat.com>
4523
4524 PR c++/41819
4525 * tree-eh.c (eh_region_may_contain_throw_map): Rename from
4526 eh_region_may_contain_throw; update users.
4527 (eh_region_may_contain_throw): New function.
4528 (lower_catch): Check flag_exceptions before creating exception region.
4529 (lower_eh_filter, lower_eh_must_not_throw): Likewise.
4530 (lower_cleanup): Tidy existing flag_exceptions check to match.
4531
41ca8d08
KT
45322009-10-27 Kai Tietz <kai.tietz@onevision.com>
4533
4534 PR/41799
4535 * config/i386/mingw32.h (CHECK_EXECUTE_STACK_ENABLED): New macro.
4536 * config/i386/mingw.opt: Add fset-stack-executable.
4537 * config/i386/i386.c (ix86_trampoline_init): Make call to
4538 emit_library_call conditional, if CHECK_EXECUTE_STACK_ENABLED is
4539 defined and its value is not zero.
4540 * doc/invoke.texi
4541
5c245b95
RG
45422009-10-27 Richard Guenther <rguenther@suse.de>
4543
4544 * tree-ssa-structalias.c (find_func_aliases): In IPA mode
4545 handle calls to externally visible functions like in regular mode.
4546 (create_variable_info_for): Do not create function infos here.
4547 (have_alias_info): Remove write-only variable.
4548 (solve_constraints): New function split out from common code
4549 in compute_points_to_sets and ipa_pta_execute.
4550 (compute_points_to_sets): Adjust.
4551 (ipa_pta_execute): Likewise. Handle clones and externally visible
4552 functions like in non-IPA mode.
4553
06302a02
JJ
45542009-10-27 Jakub Jelinek <jakub@redhat.com>
4555
4556 PR c/41842
4557 * c-typeck.c (convert_arguments): Return -1 if any of the arguments is
4558 error_mark_node.
4559
b57d8e6f
RG
45602009-10-27 Richard Guenther <rguenther@suse.de>
4561
4562 * tree-complex.c (expand_complex_div_wide): Check for
4563 INTEGER_CST, not TREE_CONSTANT on comparison folding result.
4564
673beced
RE
45652009-10-27 Revital Eres <eres@il.ibm.com>
4566
4567 PR tree-optimization/40648
4568 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4569 Change decision of when to peel for alignment.
4570
b23dc2c0
RG
45712009-10-27 Richard Guenther <rguenther@suse.de>
4572
4573 PR lto/41821
4574 * gimple.c (gimple_types_compatible_p): Handle OFFSET_TYPE.
4575
b8b39401
AH
45762009-10-27 Aldy Hernandez <aldyh@redhat.com>
4577
4578 PR bootstrap/41451
4579 * fold-const.c (fold_binary_loc): Do not call
4580 protected_set_expr_location.
4581
2929029c
WG
45822009-10-27 Wei Guozhi <carrot@google.com>
4583
4584 PR target/41705
2c9062e2
UB
4585 * target.h (have_conditional_execution): Add a new target hook
4586 function.
2929029c
WG
4587 * target-def.h (TARGET_HAVE_CONDITIONAL_EXECUTION): Likewise.
4588 * targhooks.h (default_have_conditional_execution): Likewise.
4589 * targhooks.c (default_have_conditional_execution): Likewise.
4590 * doc/tm.texi (TARGET_HAVE_CONDITIONAL_EXECUTION): Document it.
4591 * config/arm/arm.c (TARGET_HAVE_CONDITIONAL_EXECUTION): Define it.
4592 (arm_have_conditional_execution): New function.
4593 * ifcvt.c (noce_process_if_block, find_if_header,
2c9062e2
UB
4594 cond_exec_find_if_block, dead_or_predicable): Change the usage of
4595 macro HAVE_conditional_execution to a target hook call.
2929029c
WG
4596 * recog.c (peephole2_optimize): Likewise.
4597 * sched-rgn.c (add_branch_dependences): Likewise.
4598 * final.c (asm_insn_count, final_scan_insn): Likewise.
4599 * bb-reorder.c (HAVE_conditional_execution): Remove it.
4600
299456f3
BE
46012009-10-26 Ben Elliston <bje@au.ibm.com>
4602 Michael Meissner <meissner@linux.vnet.ibm.com>
4603 Ulrich Weigand <uweigand@de.ibm.com>
4604
4605 * config.gcc (spu-*-elf*): Add spu_cache.h to extra_headers.
4606 * config/spu/spu_cache.h: New file.
4607
4608 * config/spu/cachemgr.c: New file.
4609 * config/spu/cache.S: New file.
4610
4611 * config/spu/spu.h (ASM_OUTPUT_SYMBOL_REF): Define.
4612 (ADDR_SPACE_EA): Define.
4613 (TARGET_ADDR_SPACE_KEYWORDS): Define.
4614 * config/spu/spu.c (EAmode): New macro.
4615 (TARGET_ADDR_SPACE_POINTER_MODE): Define.
4616 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
4617 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
4618 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
4619 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
4620 (TARGET_ADDR_SPACE_CONVERT): Likewise.
4621 (TARGET_ASM_SELECT_SECTION): Likewise.
4622 (TARGET_ASM_UNIQUE_SECTION): Likewise.
4623 (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
4624 (TARGET_ASM_ALIGNED_DI_OP): Likewise.
4625 (ea_symbol_ref): New function.
4626 (spu_legitimate_constant_p): Handle __ea qualified addresses.
4627 (spu_addr_space_legitimate_address_p): New function.
4628 (spu_addr_space_legitimize_address): Likewise.
4629 (cache_fetch): New global.
4630 (cache_fetch_dirty): Likewise.
4631 (ea_alias_set): Likewise.
4632 (ea_load_store): New function.
4633 (ea_load_store_inline): Likewise.
4634 (expand_ea_mem): Likewise.
4635 (spu_expand_mov): Handle __ea qualified memory references.
4636 (spu_addr_space_pointer_mode): New function.
4637 (spu_addr_space_address_mode): Likewise.
4638 (spu_addr_space_subset_p): Likewise.
4639 (spu_addr_space_convert): Likewise.
4640 (spu_section_type_flags): Handle "._ea" section.
4641 (spu_select_section): New function.
4642 (spu_unique_section): Likewise.
4643 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Support __EA32__
4644 and __EA64__ predefined macros.
4645 * config/spu/spu-elf.h (LIB_SPEC): Handle -mcache-size= and
4646 -matomic-updates switches.
4647
4648 * config/spu/t-spu-elf (MULTILIB_OPTIONS): Define.
4649 (EXTRA_MULTILIB_PARTS): Add libgcc_cachemgr.a,
4650 libgcc_cachemgr_nonatomic.a, libgcc_cache8k.a, libgcc_cache16k.a,
4651 libgcc_cache32k.a, libgcc_cache64k.a, libgcc_cache128k.a.
4652 ($(T)cachemgr.o, $(T)cachemgr_nonatomic.o): New target.
4653 ($(T)cache8k.o, $(T)cache16k.o, $(T)cache32k.o, $(T)cache64k.o,
4654 $(T)cache128k.o): Likewise.
4655 ($(T)libgcc_%.a): Likewise.
4656
4657 * config/spu/spu.h (TARGET_DEFAULT): Add MASK_ADDRESS_SPACE_CONVERSION.
4658 * config/spu/spu.opt (-mea32/-mea64): Add switches.
4659 (-maddress-space-conversion): Likewise.
4660 (-mcache-size=): Likewise.
4661 (-matomic-updates): Likewise.
4662 * doc/invoke.texi (-mea32/-mea64): Document.
4663 (-maddress-space-conversion): Likewise.
4664 (-mcache-size=): Likewise.
4665 (-matomic-updates): Likewise.
4666
36c5e70a
BE
46672009-10-26 Ben Elliston <bje@au.ibm.com>
4668 Michael Meissner <meissner@linux.vnet.ibm.com>
4669 Ulrich Weigand <uweigand@de.ibm.com>
4670
4671 * doc/tm.texi (TARGET_ADDR_SPACE_KEYWORDS): Document.
4672
4673 * c-common.c (c_common_reswords): If TARGET_ADDR_SPACE_KEYWORDS is
4674 defined, add the named address space keywords.
4675 (c_addr_space_name): New function.
4676 (complete_array_type): Preserve named address space.
4677 (handle_mode_attribute): Use targetm.addr_space.valid_pointer_mode
4678 instead of targetm.valid_pointer_mode.
4679
4680 * c-common.h (enum rid): Add RID_ADDR_SPACE_0 .. RID_ADDR_SPACE_15,
4681 RID_FIRST_ADDR_SPACE and RID_LAST_ADDR_SPACE.
4682 (ADDR_SPACE_KEYWORD): New macro.
4683 (c_addr_space_name): Add prototype.
4684
4685 * c-tree.h (struct c_declspecs): Add address_space member.
4686 (declspecs_add_addrspace): Add prototype.
4687
4688 * c-pretty-print.c (pp_c_type_qualifier_list): Handle address spaces.
4689
4690 * c-parser.c (c_parse_init): Add assertion.
4691 (typedef enum c_id_kind): Add C_ID_ADDRSPACE.
4692 (c_lex_one_token): Handle address space keywords.
4693 (c_token_starts_typename): Likewise.
4694 (c_token_starts_declspecs): Likewise.
4695 (c_parser_declspecs): Likewise.
4696 (c_parser_postfix_expression_after_paren_type): Diagnose compound
4697 literal within function qualified with named address space.
4698
4699 * c-decl.c (diagnose_mismatched_decls): Diagnose conflicting named
4700 address space qualifiers.
4701 (shadow_tag_warned): Warn about useless address space qualifiers.
4702 (quals_from_declspecs): Handle address space qualifiers.
4703 (grokdeclarator): Likewise.
4704 (build_null_declspecs): Likewise.
4705 (declspecs_add_addrspace): New function.
4706
4707 * c-typeck.c (addr_space_superset): New function.
4708 (qualify_type): Handle named address spaces.
4709 (composite_type): Likewise.
4710 (common_pointer_type): Likewise.
4711 (comp_target_types): Likewise.
4712 (build_conditional_expr): Likewise.
4713 (handle_warn_cast_qual): Likewise.
4714 (build_c_cast): Likewise.
4715 (convert_for_assignment): Likewise.
4716 (build_binary_op): Likewise.
4717 (pointer_diff): Handle named address spaces. Use intermediate
4718 integer type of sufficient size if required.
4719
d4ebfa65
BE
47202009-10-26 Ben Elliston <bje@au.ibm.com>
4721 Michael Meissner <meissner@linux.vnet.ibm.com>
4722 Ulrich Weigand <uweigand@de.ibm.com>
4723
4724 * doc/tm.texi (TARGET_ADDR_SPACE_POINTER_MODE): Document.
4725 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
4726 (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
4727
4728 * target.h (struct target_def): Add pointer_mode, address_mode,
4729 and valid_pointer_mode to addr_space substructure.
4730 * target-def.h (TARGET_ADDR_SPACE_POINTER_MODE): Define.
4731 (TARGET_ADDR_SPACE_ADDRESS_MODE): Likewise.
4732 (TARGET_ADDR_SPACE_VALID_POINTER_MODE): Likewise.
4733 (TARGET_ADDR_SPACE_HOOKS): Add them.
4734 * targhooks.c (target_default_pointer_address_modes_p): New function.
4735 * target.h (target_default_pointer_address_modes_p): Add prototype.
4736 * targhooks.c (default_addr_space_pointer_mode): New function.
4737 (default_addr_space_address_mode): Likewise.
4738 (default_addr_space_valid_pointer_mode): Likewise.
4739 * targhooks.h (default_addr_space_pointer_mode): Add prototype.
4740 (default_addr_space_address_mode): Likewise.
4741 (default_addr_space_valid_pointer_mode): Likewise.
4742 * output.h (default_valid_pointer_mode): Move to ...
4743 * targhooks.h (default_valid_pointer_mode): ... here.
4744 * varasm.c (default_valid_pointer_mode): Move to ...
4745 * targhooks.c (default_valid_pointer_mode): ... here.
4746
4747 * varasm.c (output_constant): Use targetm.addr_space.valid_pointer_mode
4748 instead of targetm.valid_pointer_mode.
4749
4750 * fold-const.c (fit_double_type): Use int_or_pointer_precision.
4751 * tree.c (integer_pow2p): Likewise.
4752 (tree_log2): Likewise.
4753 (tree_floor_log2): Likewise.
4754 (signed_or_unsigned_type_for): Support pointer type of different size.
4755 (int_or_pointer_precision): New function.
4756 * tree.h (int_or_pointer_precision): Add prototype.
4757 * stor-layout.c (layout_type): Set TYPE_PRECISION for offset types.
4758 * varasm.c (initializer_constant_valid_p): Use TYPE_PRECISION of
4759 incoming pointer type instead of POINTER_SIZE.
4760
4761 * tree.c (build_pointer_type): Use appropriate pointer mode
4762 instead of ptr_mode.
4763 (build_reference_type): Likewise.
4764 * expr.c (store_expr): Likewise.
4765 (expand_expr_addr_expr): Likewise.
4766 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
4767 * cfgexpand.c (expand_debug_expr): Likewise.
2c9062e2 4768
d4ebfa65
BE
4769 * auto-inc-dec.c: Include "target.h".
4770 (try_merge): Use appropriate address mode instead of Pmode.
4771 (find_inc): Likewise.
4772 * combine.c (find_split_point): Likewise.
4773 * cselib.c (cselib_record_sets): Likewise.
4774 * dse.c (replace_inc_dec): Likewise.
4775 (canon_address): Likewise.
4776 * var-tracking.c (replace_expr_with_values): Likewise.
4777 (count_uses): Likewise.
4778 (add_uses): Likewise.
4779 (add_stores): Likewise.
4780 * emit-rtl.c: Include "target.h".
4781 (adjust_address_1): Use appropriate address mode instead of Pmode.
4782 (offset_address): Likewise.
4783 * explow.c (break_out_memory_refs): Likewise.
4784 (memory_address_addr_space): Likewise.
4785 (promote_mode): Likewise.
4786 * expr.c (move_by_pieces): Likewise.
4787 (emit_block_move_via_loop): Likewise.
4788 (store_by_pieces): Likewise.
4789 (store_by_pieces_1): Likewise.
4790 (expand_assignment): Likewise.
4791 (store_constructor): Likewise.
4792 (expand_expr_addr_expr): Likewise.
4793 (expand_expr_real_1): Likewise.
4794 * cfgexpand.c (expand_debug_expr): Likewise.
4795 * ifcvt.c (noce_try_cmove_arith): Likewise.
4796 * regcprop.c (kill_autoinc_value): Likewise.
4797 * regmove.c (try_auto_increment): Likewise.
4798 * reload.c (find_reloads): Likewise.
4799 (find_reloads_address): Likewise.
4800 (find_reloads_address_1): Likewise.
4801 * sched-deps.c: Include "target.h".
4802 (sched_analyze_1): Use appropriate address mode instead of Pmode.
4803 (sched_analyze_2): Likewise.
4804 * sel-sched-dump.c: Include "target.h".
4805 (debug_mem_addr_value): Use appropriate address mode instead of Pmode.
4806 * stor-layout.c (layout_type): Likewise.
4807 * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
4808 (multiplier_allowed_in_address_p): Likewise.
4809 (get_address_cost): Likewise.
4810 * varasm.c (make_decl_rtl): Likewise.
2c9062e2 4811
d4ebfa65
BE
4812 * expr.c (expand_assignment): Always convert offsets to appropriate
4813 address mode.
4814 (store_expr): Likewise.
4815 (store_constructor): Likewise.
4816 (expand_expr_real_1): Likewise.
4817
4818 * reload.h (form_sum): Add MODE argument.
4819 * reload.c (form_sum): Add MODE argument, use it instead of Pmode.
4820 Update recursive calls.
4821 (subst_indexed_address): Update calls to form_sum.
2c9062e2 4822
d4ebfa65
BE
4823 * tree-flow.h (addr_for_mem_ref): Add ADDRSPACE argument.
4824 * tree-ssa-address.c: Include "target.h".
4825 (templates): Replace by ...
4826 (mem_addr_template_list): ... this new vector.
4827 (TEMPL_IDX): Handle address space numbers.
4828 (gen_addr_rtx): Add address mode argument, use it instead of Pmode.
4829 (addr_for_mem_ref): Add ADDRSPACE argument. Use per-address-space
4830 instead of global cache. Update call to gen_addr_rtx.
4831 (valid_mem_ref_p): Update call to addr_for_mem_ref.
4832 * expr.c (expand_expr_real_1): Update call to addr_for_mem_ref.
2c9062e2 4833
d4ebfa65
BE
4834 * rtl.h (convert_memory_address_addr_space): Add prototype.
4835 (convert_memory_address): Define as macro.
4836 * explow.c (convert_memory_address): Rename to ...
4837 (convert_memory_address_addr_space): ... this. Add ADDRSPACE argument.
4838 Use appropriate pointer and address modes instead of ptr_mode / Pmode.
4839 Update recursive calls.
4840 (memory_address_addr_space): Call convert_memory_address_addr_space.
4841 * expmed.c (make_tree): Likewise.
4842 * expr.c (expand_assignment): Likewise.
4843 (expand_expr_addr_expr_1): Likewise. Also, add ADDRSPACE argument.
4844 (expand_expr_addr_expr): Likewise. Also, update call.
4845
4846 * alias.c (find_base_value): Guard pointer size optimizations.
4847 (find_base_term): Likewise.
4848 * rtlanal.c (nonzero_bits1): Likewise.
4849 (num_sign_bit_copies1): Likewise.
4850 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
4851
4852 * Makefile.in (tree-ssa-address.o): Add $(TARGET_H) dependency.
4853 (emit-rtl.o): Likewise.
4854 (auto-inc-dec.o): Likewise.
4855 (sched-deps.o): Likewise.
4856
09e881c9
BE
48572009-10-26 Ben Elliston <bje@au.ibm.com>
4858 Michael Meissner <meissner@linux.vnet.ibm.com>
4859 Ulrich Weigand <uweigand@de.ibm.com>
4860
4861 * doc/extend.texi (Named Address Spaces): New section.
4862 * coretypes.h (addr_space_t): New type.
4863 (ADDR_SPACE_GENERIC): New define.
4864 (ADDR_SPACE_GENERIC_P): New macro.
4865
4866 * doc/tm.texi (Named Address Spaces): New section.
4867 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Document.
4868 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Document.
4869 (TARGET_ADDR_SPACE_SUBSET_P): Document.
4870 (TARGET_ADDR_SPACE_CONVERT): Document.
4871 * target.h (struct gcc_target): Add addr_space substructure.
4872 * target-def.h (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
4873 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Likewise.
4874 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
4875 (TARGET_ADDR_SPACE_CONVERT): Likewise.
4876 (TARGET_ADDR_SPACE_HOOKS): Likewise.
4877 (TARGET_INITIALIZER): Initialize addr_space hooks.
4878 * targhooks.c (default_addr_space_legitimate_address_p): New function.
4879 (default_addr_space_legitimize_address): Likewise.
4880 (default_addr_space_subset_p): Likewise.
4881 (default_addr_space_convert): Likewise.
4882 * targhooks.h (default_addr_space_legitimate_address_p): Add prototype.
4883 (default_addr_space_legitimize_address): Likewise.
4884 (default_addr_space_subset_p): Likewise.
4885 (default_addr_space_convert): Likewise.
4886
4887 * doc/rtl.texi (MEM_ADDR_SPACE): Document.
4888 * rtl.h (mem_attrs): Add ADDRSPACE memory attribute.
4889 (MEM_ADDR_SPACE): New macro.
4890 * emit-rtl.c (get_mem_attrs): Add ADDRSPACE argument and set
4891 address space memory attribute.
4892 (mem_attrs_htab_hash): Handle address space memory attribute.
4893 (mem_attrs_htab_eq): Likewise.
4894 (set_mem_attributes_minus_bitpos): Likewise.
4895 (set_mem_alias_set): Likewise.
4896 (set_mem_align): Likewise.
4897 (set_mem_expr): Likewise.
4898 (set_mem_offset): Likewise.
4899 (set_mem_size): Likewise.
4900 (adjust_address_1): Likewise.
4901 (offset_address): Likewise.
4902 (widen_memoy_address): Likewise.
4903 (get_spill_slot_decl): Likewise.
4904 (set_mem_attrs_for_spill): Likewise.
4905 (set_mem_addr_space): New function.
4906 * emit-rtl.h (set_mem_addr_space): Add prototype.
4907 * print-rtl.c (print_rtx): Print address space memory attribute.
4908 * expr.c (expand_assignment): Set address space memory attribute
4909 of generated MEM RTXes as appropriate.
4910 (expand_expr_real_1): Likewise.
4911 * cfgexpand.c (expand_debug_expr): Likewise.
4912 * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
4913
4914 * tree.h (struct tree_base): Add address_space bitfield. Reduce
4915 size of "spare" bitfield.
4916 (TYPE_ADDR_SPACE): New macro.
4917 (ENCODE_QUAL_ADDR_SPACE): Likewise.
4918 (DECODE_QUAL_ADDR_SPACE): Likewise.
4919 (CLEAR_QUAL_ADDR_SPACE): Likewise.
4920 (KEEP_QUAL_ADDR_SPACE): Likewise.
4921 (TYPE_QUALS): Encode type address space.
4922 (TYPE_QUALS_NO_ADDR_SPACE): New macro.
4923 * tree.c (set_type_quals): Set type address space.
4924 (build_array_type): Inherit array address space from element type.
4925 * print-tree.c (print_node_brief): Print type address space.
4926 (print_node): Likewise.
4927 * tree-pretty-print.c (dump_generic_node): Likewise.
4928
4929 * explow.c (memory_address): Rename to ...
4930 (memory_address_addr_space): ... this. Add ADDRSPACE argument.
4931 Use address-space aware variants of memory address routines.
4932 * recog.c (memory_address_p): Rename to ...
4933 (memory_address_addr_space_p): ... this. Add ADDSPACE argument.
4934 Use address-space aware variants of memory address routines.
4935 (offsettable_address_p): Rename to ...
4936 (offsettable_address_addr_space_p): ... this. Add ADDRSPACE argument.
4937 Use address-space aware variants of memory address routines.
4938 * reload.c (strict_memory_address_p): Rename to ...
4939 (strict_memory_address_addr_space_p): ... this. Add ADDSPACE argument.
4940 Use address-space aware variants of memory address routines.
4941 (maybe_memory_address_p): Rename to ...
4942 (maybe_memory_address_addr_space_p): ... this. Add ADDSPACE argument.
4943 Use address-space aware variants of memory address routines.
4944 * expr.h (memory_address_addr_space): Add prototype.
4945 (memory_address): Define as macro.
4946 * recog.h (memory_address_addr_space_p): Add prototype.
4947 (memory_address_p): Define as macro.
4948 (offsettable_address_addr_space_p): Add prototype.
4949 (offsettable_address_p): Define as macro.
4950 (strict_memory_address_addr_space_p): Add prototype.
4951 (strict_memory_address_p): Define as macro.
4952
4953 * combine.c (find_split_point): Use address-space aware variants
4954 of memory address routines.
4955 * emit-rtl.c (operand_subword): Likewise.
4956 (change_address_1): Likewise.
4957 (adjust_address_1): Likewise.
4958 (offset_address): Likewise.
4959 * expr.c (emit_move_insn): Likewise.
4960 (expand_assignment): Likewise.
4961 (expand_expr_real_1): Likewise.
4962 * recog.c (verify_changes): Likewise.
4963 (general_operand): Likewise.
4964 (offsettable_memref_p): Likewise.
4965 (offsettable_nonstrict_memref_p): Likewise.
4966 (constrain_operands): Likewise.
4967 * reload.c (get_secondary_mem): Likewise.
4968 (find_reloads_toplev): Likewise.
4969 (find_reloads_address): Likewise.
4970 (find_reloads_subreg_address): Likewise.
4971 * reload1.c (reload): Likewise.
4972 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
4973 * rtl.h (address_cost): Add ADDRSPACE argument.
4974 * rtlanal.c (address_cost): Add ADDRSPACE argument. Use address-space
4975 aware variant of memory address routines.
4976 * loop-invariant.c (create_new_invariant): Update address_cost call.
4977 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4978 * fwprop.c (should_replace_address): Add ADDRSPACE argument.
4979 Use address-space aware variant of memory address routines.
4980 (propagate_rtx_1): Update call to should_replace_address.
4981 * tree-flow.h (multiplier_allowed_in_address_p): Add ADDRSPACE
4982 argument.
4983 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Add
4984 ADDRSPACE argument. Use per-address-space instead of global cache.
4985 Use address-space aware variant of memory address routines.
4986 (get_address_cost): Likewise.
4987 (get_computation_cost_at): Update calls.
4988 * tree-ssa-address.c (valid_mem_ref_p): Add ADDRSPACE argument.
4989 Use address-space aware variant of memory address routines.
4990 (create_mem_ref_raw): Update call to valid_mem_ref_p.
4991 (most_expensive_mult_to_index): Update call to
4992 multiplier_allowed_in_address_p.
4993
4994 * dwarf2out.c (modified_type_die): Output DW_AT_address_class
4995 attribute to indicate named address spaces.
4996
4997 * varasm.c (get_variable_section): DECLs in named address spaces
4998 cannot be "common".
4999
5000 * reload.c (find_reloads_address): Do not use LEGITIMIZE_RELOAD_ADDRESS
5001 for addresses in a non-generic address space.
5002
5003 * expr.c (emit_block_move_hints): Do not use libcalls for
5004 memory in non-generic address spaces.
5005 (clear_storage_hints): Likewise.
5006 (expand_assignment): Likewise.
5007
5008 * fold-const.c (operand_equal_p): Expressions refering to different
5009 address spaces are not equivalent.
5010
5011 * rtl.c (rtx_equal_p_cb): MEMs refering to different address
5012 spaces are not equivalent.
5013 (rtx_equal_p): Likewise.
5014 * cse.c (exp_equiv_p): Likewise.
5015 * jump.c (rtx_renumbered_equal_p): Likewise.
5016 * reload.c (operands_match_p): Likewise.
5017
5018 * alias.c (nonoverlapping_memrefs_p): MEMs refering to different
5019 address spaces may alias.
5020 (true_dependence): Likewise.
5021 (canon_true_dependence): Likewise.
5022 (write_dependence_p): Likewise.
5023
5024 * dse.c (canon_address): Handle named address spaces.
5025 * ifcvt.c (noce_try_cmove_arith): Likewise.
5026
5027 * tree.def (ADDR_SPACE_CONVERT_EXPR): New tree code.
5028 * expr.c (expand_expr_real_2): Expand ADDR_SPACE_CONVERT_EXPR.
5029 * convert.c (convert_to_pointer): Generate ADDR_SPACE_CONVERT_EXPR
5030 to handle conversions between different address spaces.
5031 * fold-const.c (fold_convert_loc): Likewise.
5032 (fold_unary_loc): Handle ADDR_SPACE_CONVERT_EXPR.
5033 * tree-pretty-print.c (dump_generic_node): Likewise.
5034 * gimple-pretty-print.c (dump_unary_rhs): Likewise.
5035 * tree-cfg.c (verify_gimple_assign_unary): Likewise.
5036 * tree-inline.c (estimate_operator_cost): Likewise.
5037 * tree-ssa.c (useless_type_conversion_p): Conversions between pointers
5038 to different address spaces are not useless.
5039
bde2d108
JJ
50402009-10-26 Jakub Jelinek <jakub@redhat.com>
5041
7752e522
JJ
5042 PR bootstrap/41345
5043 * cfgcleanup.c (trivially_empty_bb_p): New function.
5044 (try_optimize_bb): Use it instead of checking BB_HEAD == BB_END.
5045
bde2d108
JJ
5046 PR debug/41828
5047 * dwarf2out.c (add_pubname, add_pubtype, generic_parameter_die,
5048 add_name_and_src_coords_attributes, gen_namespace_die,
5049 dwarf2out_set_name): Handle dwarf2_name returning NULL.
5050
65a324b4
NC
50512009-10-26 Nick Clifton <nickc@redhat.com>
5052
5053 * config.gcc: Add support for RX target.
5054 * config/rx: New directory.
5055 * config/rx/constraints.md: New file.
5056 * config/rx/predicates.md: New file.
5057 * config/rx/rx.c: New file.
5058 * config/rx/rx.h: New file.
5059 * config/rx/rx.md: New file.
5060 * config/rx/rx.opt: New file.
5061 * config/rx/rx-protos.h: New file.
5062 * config/rx/t-rx: New file.
5063 * doc/extend.texi: Document RX function attributes.
5064 * doc/invoke.texi: Document RX specific command line options.
5065 * doc/contrib.texi: Document RX contribution.
5066 * doc/md.texi: Document RX constraints.
5067 * doc/install.texi: Document RX support.
5068
84280917
MM
50692009-10-26 Michael Matz <matz@suse.de>
5070
5071 PR tree-optimization/41783
5072 * tree-ssa-alias.c (get_continuation_for_phi): Export, add a special
5073 case for simple diamonds.
5074 * tree-ssa-alias.h (get_continuation_for_phi): Declare.
5075 * tree-ssa-pre.c (translate_vuse_through_block): Add same_valid
5076 argument, use alias oracle to skip some vdefs.
5077 (phi_translate_1): Change call to above, don't allocate new
5078 value ids if they can stay the same.
5079 (compute_avail): Allow vuse walking when looking up references.
5080
bd02b3a0
RG
50812009-10-26 Richard Guenther <rguenther@suse.de>
5082
5083 PR tree-optimization/41826
5084 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Avoid
5085 access to re-allocated vector fields.
5086
b77a0698
RG
50872009-10-26 Richard Guenther <rguenther@suse.de>
5088
5089 * graphite-sese-to-poly.c (check_poly_representation): Fix
5090 compile without checking.
5091
60f5ed26
JW
50922009-10-26 Janus Weil <janus@gcc.gnu.org>
5093
5094 PR fortran/41714
5095 * gimple.h (tree_annotate_all_with_location): Remove prototype.
5096 * gimplify.c (tree_should_carry_location_p,
5097 tree_annotate_one_with_location,tree_annotate_all_with_location):
5098 Remove obsolete functions.
5099
38d547aa
KK
51002009-10-25 Kaz Kojima <kkojima@gcc.gnu.org>
5101
5102 PR target/41813
5103 * config/sh/sh.md (stuff_delay_slot): Don't set T_REG in pattern.
5104
a1d9c4fb
RG
51052009-10-25 Richard Guenther <rguenther@suse.de>
5106
5107 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
5108 Stream DECL_RESTRICTED_P.
5109 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
5110
c870c233
RS
51112009-10-25 Richard Sandiford <rdsandiford@googlemail.com>
5112
5113 * config/mips/mips.c (mips_restore_gp_from_cprestore_slot): Emit
5114 a note when expanding to nothing.
5115
22dfb60e
RG
51162009-10-25 Richard Guenther <rguenther@suse.de>
5117
5118 PR middle-end/41814
5119 * tree.c (find_decls_types_r): Deal with Java overloading
5120 BINFO_VIRTUALS for its own purpose.
5121
8af9d17f
AN
51222009-10-24 Adam Nemet <anemet@caviumnetworks.com>
5123
5124 * config/mips/predicates.md (hilo_operand): New predicate.
5125 * config/mips/mips.md (<u>mulsidi3_64bit): Change it to a
5126 define_insn. Correct !ISA_HAS_EXT_INS length from 24 to 28. Move
5127 splitter part from here ...:
5128 (<u>mulsidi3_64bit splitter for !ISA_HAS_EXT_INS): ... to here. Swap
5129 op0 and op4 to match the DINS case.
5130 (<u>mulsidi3_64bit splitter for ISA_HAS_EXT_INS): New splitter.
5131
51322009-10-24 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
e1a84153
AH
5133
5134 PR middle-end/19154
5135 * avr.md (QIDI): Add new mode iterator.
5136 (sbrx_branch<mode>): Create new zero extract bit, test and jump
5137 patterns for all QI thru DI modes combinations.
5138 (sbrx_and_branch<mode>): Create new and based bit test and jump
5139 patterns for QI thru SI modes.
5140 avr.c (avr_out_sbxx_branch): Use only bit number.
5141
8b583a06
JH
51422009-10-24 Jan Hubicka <jh@suse.cz>
5143
5144 * ipa-reference.c (check_call): Noreturn notrhow calls do not write
5145 to memory.
7e06c3d6
EB
5146 (analyze_function): When analyzing noreturn nothrow call, do not
5147 compute written stats; free bitmaps of vars early if possible.
8b583a06
JH
5148 (generate_summary): Only update bitmaps if computed.
5149 (propagate): Only dump bitmaps if computed.
5150 (ipa_reference_read_summary): Fix pasto.
5151
72580319
EB
51522009-10-24 Eric Botcazou <ebotcazou@adacore.com>
5153
5154 * tree-ssa-alias.c (nonaliasing_component_refs_p): Rename into...
5155 (aliasing_component_refs_p): ...this. Return true if there is no
5156 common base and the base access types have the same alias set.
5157 (indirect_ref_may_alias_decl_p): Adjust for above renaming.
5158 (indirect_refs_may_alias_p): Likewise.
5159
26d8af35
JM
51602009-10-23 Joseph Myers <joseph@codesourcery.com>
5161
5162 PR c/40033
5163 * c-typeck.c (c_finish_stmt_expr): Do not wrap error_mark_node in
5164 a C_MAYBE_CONST_EXPR.
5165
3fc841c8
MM
51662009-10-23 Michael Meissner <meissner@linux.vnet.ibm.com>
5167
5168 PR target/41787
5169 * config/rs6000/rs6000.c (struct machine_function): Add
5170 vsx_or_altivec_used_p to record if vector types are used.
5171 (rs6000_expand_to_rtl_hook): Rename from
5172 rs6000_alloc_sdmode_stack_slot. If VSX, check to see if there are
5173 any vector operations, so if there are, we can set VRSAVE to
5174 non-zero when only floating point vector registers are used.
5175 (TARGET_EXPAND_TO_RTL_HOOK): Use rs6000_expand_to_rtl_hook.
5176 (rs6000_check_vector_mode): Inner function to check if vector
5177 types are used in the code.
5178 (compute_vrsave_mask): If VSX, make sure VRSAVE is non-zero if
5179 vector instructions are used.
5180
5181 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED):
5182 Indicate that VSX registers which overlap floating point
5183 registers, can't be used across a call, since the ABI only states
5184 the scalar part of the register will be saved and restored.
5185
cb9c2485
JM
51862009-10-23 Joseph Myers <joseph@codesourcery.com>
5187
5188 PR c/41673
5189 * alias.c (get_alias_set): Call langhook before returning 0 for
5190 types with structural equality.
5191 * c-common.c (c_common_get_alias_set): Use alias set of element
5192 type for arrays with structural comparison.
5193
93f28ca7
RG
51942009-10-23 Richard Guenther <rguenther@suse.de>
5195
5196 PR middle-end/41805
5197 * cfgexpand.c (expand_call_stmt): Use gimple_has_side_effects and
5198 gimple_call_nothrow_p.
5199
5813994e
RG
52002009-10-23 Richard Guenther <rguenther@suse.de>
5201
5202 PR tree-optimization/41778
5203 * tree-ssa-pre.c (do_regular_insertion): Only insert if a
5204 redundancy along a path in the CFG we want to optimize for speed
5205 is going to be removed.
5206 (execute_pre): Do partial-PRE only if the function is to be
5207 optimized for speed.
5208 (gate_pre): Do not turn off all of PRE when not optimizing a
5209 function for speed.
5210
376da68e
KG
52112009-10-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5212
5213 * builtins.c (fold_builtin_cabs): Use validate_arg().
5214 (fold_builtin_cexp): Fix if-logic.
5215 (fold_builtin_1): Check subtype for BUILT_IN_CIMAG.
5216
d5b5b6bc
JL
52172009-10-22 Jeff Law <law@redhat.com>
5218
7da77407 5219 * ira-lives.c (process_single_reg_class_operands): Update the
d5b5b6bc
JL
5220 hard reg costs for all the hard registers desired by the
5221 single reg class operand.
5222
4fb296d9
RS
52232009-10-22 Richard Sandiford <rdsandiford@googlemail.com>
5224
5225 * simplify-rtx.c (simplify_replace_fn_rtx): Add a fallback case
5226 for rtxes that aren't handled specially.
5227
bd7960b1
RS
52282009-10-22 Richard Sandiford <rdsandiford@googlemail.com>
5229
5230 * rtl.h (shallow_copy_rtvec): Declare.
5231 * rtl.c (shallow_copy_rtvec): New function.
5232 * cselib.c (cselib_subst_to_values): Use it. Only modify an
5233 rtx field if the subrtx has changed.
5234
2a31793e
AS
52352009-10-22 Anatoly Sokolov <aesok@post.ru>
5236
5237 * config/m32c/m32c.c (m32c_function_value_regno_p): New function.
5238 (m32c_function_value): Make static, add new 'outgoing' argument.
5239 (m32c_libcall_value): Make static, add new 'fun' argument.
5240 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
2c9062e2 5241 * config/m32c/m32c.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
2a31793e
AS
5242 (FUNCTION_VALUE_REGNO_P): Redefine, use m32c_function_value_regno_p.
5243 * config/m32c/m32c-protos.h (m32c_function_value_regno_p): Declare.
5244 (m32c_function_value, m32c_libcall_value): Delete declaration.
5245
062eee1e
DN
52462009-10-22 Diego Novillo <dnovillo@google.com>
5247
7da77407 5248 * Makefile.in (PLUGIN_HEADERS): Add output.h and IPA_UTILS_H.
062eee1e 5249
6d8752c4 52502009-10-22 Razya Ladelsky <razya@il.ibm.com>
7e06c3d6 5251
7da77407
EB
5252 * tree-cfg.c (gimple_duplicate_sese_tail): Fix typos/indentation/white
5253 space.
6d8752c4 5254
2c928155
RG
52552009-10-22 Richard Guenther <rguenther@suse.de>
5256
5257 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Declare.
5258 * lto-symtab.c (struct lto_symtab_entry_def): Add node member.
5259 (lto_symtab_merge): Do not merge cgraph nodes here.
5260 (lto_symtab_resolve_can_prevail_p): Simplify.
5261 (lto_symtab_resolve_symbols): Store cgraph node.
5262 (lto_symtab_merge_decls_1): Simplify. Do not drop non-prevailing
5263 functions from the symtab.
5264 (lto_symtab_merge_cgraph_nodes_1): New function.
5265 (lto_symtab_merge_cgraph_nodes): Likewise.
5266
ea989a1f
RG
52672009-10-22 Richard Guenther <rguenther@suse.de>
5268
5269 PR lto/41791
5270 * lto-streamer-out.c (lto_output_location): Stream the
5271 system header flag.
5272 * lto-streamer-in.c (lto_input_location): Likewise.
5273
48710229 52742009-10-22 Razya Ladelsky <razya@il.ibm.com>
2c9062e2
UB
5275
5276 * cfgloopmanip.c (duplicate_subloops): Export.
48710229 5277 * tree-parloops.c (loop_parallel_p): Dump if loop is innermost.
2c9062e2 5278 (transform_to_exit_first_loop): Duplicate bbs starting from
48710229
RL
5279 header up to loop->latch instead of exit->src.
5280 Initialize control variable to the correct number of iterations.
5281 (gather_scalar_reductions): Do not register double reductions.
2c9062e2
UB
5282 (parallelize_loops): Dump which loop is tested.
5283 Indicate whether the parallelized loop is inner or not.
48710229 5284 Remove the innermost-loop requirement.
2c9062e2 5285 * cfgloop.h (duplicate_subloops): Export.
48710229
RL
5286 * tree-cfg.c (add_phi_args_after_redirect): New function.
5287 (gimple_duplicate_sese_tail): Remove the no-subloops constraint.
5288 Call duplicate_subloops.
5289 Update number of iterations at the exit condition.
5290 Don't redirect nexits always to the loop exit.
5291 Redirect copied edges from latch to the loop exit.
48710229 5292
0d4958d0
JH
52932009-10-22 Jan Hubicka <jh@suse.cz>
5294
5295 * ipa-cp.c (ipcp_read_summary): Remove now invalid FIXME and
5296 flag_ltrans check.
5297 * ipa-inline.c (cgraph_mark_inline_edge,
5298 cgraph_decide_inlining_of_small_function,
2c9062e2
UB
5299 cgraph_decide_inlining, inline_read_summary): Disable indirect
5300 inlining for WPA for time being.
0d4958d0 5301
7e06c3d6 5302 PR tree-optimize/40556
0d4958d0
JH
5303 * ipa-inline.c (cgraph_early_inlining): Fix iterations condition.
5304
f9c91f8a
RB
53052009-10-22 Richard Guenther <rguenther@suse.de>
5306
5307 * lto-streamer.h (lto_symtab_clear_resolution): Remove.
5308 * lto-symtab.c (lto_symtab_clear_resolution): Likewise.
5309
c59f5d1b
JH
53102009-10-22 Jan Hubicka <jh@suse.cz>
5311
0d4958d0 5312 PR lto/41730
f9c91f8a
RB
5313 * ipa-reference.c (has_proper_scope_for_analysis): Add fixme about
5314 global vars.
5315 (check_call): Handle only indirect calls.
5316 (propagate_bits): Update comment.
5317 (write_node_summary_p): Turn bogus check to assert.
5318 (ipa_reference_write_summary): Stream calls_read_all properly.
5319 (ipa_reference_read_summary): Stream in calls_read_all properly.
5320 (read_write_all_from_decl): New function.
5321 (propagate): Handle OVERWRITABLE nodes and external calls here.
2c9062e2
UB
5322 * ipa-pre-const.c (check_call): In IPA mode handle indirect
5323 calls only.
f9c91f8a
RB
5324 (analyze_function): Do not check visibility here.
5325 (add_new_function): We summary OVERWRITABLE too.
5326 (generate_summary): Stream OVERWRITABLE nodes too.
5327 (propagate): Handle external calls and OVERWRITABLE nodes here.
5328 (local_pure_const): Check visibility here.
c59f5d1b 5329
fb3f88cc
JH
53302009-10-22 Jan Hubicka <jh@suse.cz>
5331
5332 * ipa-cp.c (ipcp_write_summary, ipcp_read_summary): New functions.
5333 (pass_ipa_cp): Register them.
5334 (ipcp_init_stage): Analyze all functions for whopr/lto.
5335 (ipcp_propagate_stage): Skip external calls.
5336 (ipcp_iterate_stage): Call ipa_update_after_lto_read if needed.
2c9062e2
UB
5337 * ipa-reference.c (write_node_summary_p): Fix thinko about
5338 availability.
fb3f88cc 5339 * cgraphunit.c (ipa_passes): When in lto, ne er produce new summaries;
2c9062e2
UB
5340 when in ltrans, skip executing of ipa passes since everything
5341 should've been done.
fb3f88cc
JH
5342 * ipa-inline.c (cgraph_decide_inlining): Remove FIXMEs.
5343 (inline_generate_summary): Likewise.
5344 (inline_read_summary): New function.
5345 (inline_write_summary): New function.
5346 (pass_ipa_inline): Register new hooks.
5347 * ipa-prop.c: Inlcude lto-streamer.h
5348 (ipa_edge_args_vector): Update declaration.
5349 (ipa_count_arguments, ipa_compute_jump_functions,
5350 ipa_free_edge_args_substructures): Move ipa_edge_args_vector into ggc.
5351 (ipa_write_jump_function, ipa_read_jump_function, ipa_write_node_info,
5352 ipa_read_node_info): New static functions.
5353 (ipa_prop_write_jump_functions, ipa_prop_read_jump_functions): Update.
5354 (duplicate_array): Use xmalloc.
5355 (duplicate_ggc_array): New.
5356 (ipa_edge_duplication_hook): Use it.
5357 (ipa_update_after_lto_read): New function.
5358 * ipa-prop.h (ipa_prop_write_jump_functions,
5359 ipa_prop_read_jump_functions): Declare.
5360 (ipa_pass_through_data, ipa_ancestor_jf_data, ipa_member_ptr_cst,
5361 jump_func_value, ipa_member_ptr_cst, ipa_edge_args): Add GTY markers.
5362 (ipa_edge_args_vector): Move into GGC.
5363 (ipa_check_create_edge_args): Update.
5364 (ipa_update_after_lto_read): New.
2c9062e2
UB
5365 * passes.c (ipa_write_summaries_1): When in wpa, do not write
5366 summaries.
fb3f88cc 5367 (ipa_read_summaries): When in ltrans, so not read summaries.
2c9062e2
UB
5368 * lto-streamer.c (lto_get_section_name): Add
5369 LTO_section_jump_functions.
fb3f88cc
JH
5370 * lto-streamer.h (LTO_section_jump_functions): New section.
5371 (produce_asm): Declare.
5372 * lto-cgraph.c (output_cgraph): Output edges in reverse order.
5373 * lto-streamer-out.c (produce_asm): Export.
5374 * lto-streamer-in.c: Include tree-pass.h
5375 (input_function): Free dominance info when done.
5376 (lto_read_body): Push ipa_inline in ltrans stage.
5377 * gengtype.c (open_base_files): Add ipa-prop.h into includes.
5378 * Makefile.in (GTFILES): Add ipa-prop.h
5379
34677bae
MK
53802009-10-22 Matthias Klose <doko@ubuntu.com>
5381
5382 * doc/install.texi: Document --enable-browser-plugin.
5383
7e1e7d4c
VM
53842009-10-21 Vladimir Makarov <vmakarov@redhat.com>
5385
5386 * doc/invoke.texi (fira-loop-pressure): Update default value.
5387 * opts.c (decode_options): Remove default value setting for
5388 flag_ira_loop_pressure.
5389 * config/ia64/ia64.c (ia64_override_options): Set
5390 flag_ira_loop_pressure up for -O3.
5391 * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
2c9062e2 5392
f29deac9
SP
53932009-10-21 Sebastian Pop <sebastian.pop@amd.com>
5394
5395 PR tree-optimization/41497
5396 * tree-scalar-evolution.c (analyze_evolution_in_loop): Return
5397 chrec_dont_know if the evolution function returned by follow_ssa_edge
5398 is constant in the analyzed loop and is not compatible with the
5399 initial value before the loop.
5400 * tree-chrec.h (no_evolution_in_loop_p): Call STRIP_NOPS.
5401
58f451f0
JM
54022009-10-21 Joseph Myers <joseph@codesourcery.com>
5403
5404 * config/sh/sh.c (nonpic_symbol_mentioned_p): Allow UNSPEC_TPOFF.
5405
de55f03a
JJ
54062009-10-21 Jakub Jelinek <jakub@redhat.com>
5407
5408 PR other/25507
5409 * doc/invoke.texi: Document -print-multi-os-directory.
5410
47f447b1
JH
54112009-10-21 Jack Howarth <howarth@bromo.med.uc.edu>
5412
5413 PR c++/41313
5414 * gcc/config/darwin10.h: Use default_emit_unwind_label.
5415 * gcc/config/darwin.c: Disable -freorder-blocks-and-partition
5416 when darwin_emit_unwind_label is used.
5417
59a05b0c
EB
54182009-10-21 Eric Botcazou <ebotcazou@adacore.com>
5419
5420 * tree-vect-stmts.c (exist_non_indexing_operands_for_use_p): Tweak
5421 order of checks.
5422
288f5b2e
RH
54232009-10-20 Richard Henderson <rth@redhat.com>
5424
5425 * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1
5426 before emit_post_landing_pad.
5427
53d66977
AN
54282009-10-20 Adam Nemet <anemet@caviumnetworks.com>
5429
5430 * config/mips/mips.c (mips_binary_cost): Add new argument speed.
5431 Use when calling rtx_costs.
5432 (mips_rtx_costs): Fix formatting. Use argument speed rather than the
5433 global optimize_size. Pass speed to mips_binary_cost.
5434
ddd0c781
JJ
54352009-10-20 Jakub Jelinek <jakub@redhat.com>
5436
5437 * config/rs6000/rs6000.c (def_builtin): Set TREE_READONLY instead
5438 of TREE_CONSTANT.
5439
3af4ba41
RS
54402009-10-20 Richard Sandiford <rdsandiford@googlemail.com>
5441
5442 * rtl.h (simplify_replace_fn_rtx): Declare.
5443 (wrap_constant, unwrap_constant): Delete.
5444 * cfgexpand.c (unwrap_constant, wrap_constant): Delete.
5445 (expand_debug_expr): Don't call wrap_constant.
5446 * combine.c (rtx_subst_pair): Only define for AUTO_INC_DEC.
5447 (auto_adjust_pair): Fold into...
5448 (propagate_for_debug_subst): ...here. Only define for AUTO_INC_DEC.
5449 Just return a new value.
5450 (propagate_for_debug): Use simplify_replace_fn_rtx for AUTO_INC_DEC,
5451 otherwise use simplify_replace_rtx.
5452 * cselib.c (wrap_constant): Reinstate old definition.
5453 (cselib_expand_value_rtx_1): Don't wrap constants.
5454 * gcse.c (try_replace_reg): Don't use copy_rtx in the call to
5455 simplify_replace_rtx.
5456 (bypass_block): Fix formatting in calls to simplify_replace_rtx.
5457 * reload1.c (reload): Skip all uses for an insn before adjusting it.
5458 Use simplify_replace_rtx.
5459 * simplify-rtx.c (simplify_replace_fn_rtx): New function,
5460 adapted from...
5461 (simplify_replace_rtx): ...here. Turn into a wrapper for
5462 simplify_replace_fn_rtx.
5463 (simplify_unary_operation): Don't unwrap CONSTs.
5464 * var-tracking.c (check_wrap_constant): Delete.
5465 (vt_expand_loc_callback): Don't call it.
5466 (vt_expand_loc): Likewise.
5467
5c9ffc86
PO
54682009-10-20 Pascal Obry <obry@adacore.com>
5469 Eric Botcazou <ebotcazou@adacore.com>
5470
5471 * config/i386/cygming.h (DWARF_FRAME_REGNUM): Add enclosing parens.
5472
1578e910
MM
54732009-10-20 Michael Matz <matz@suse.de>
5474
5475 * loop-invariant.c (create_new_invariant): Use different magic number.
5476
70041f8a
RE
54772009-10-20 Richard Earnshaw <rearnsha@arm.com>
5478
5479 PR target/39247
5480 * arm.c (arm_override_options): Forcibly disable hot/cold block
5481 partitioning.
5482
8ee2bec9
AO
54832009-10-20 Alexandre Oliva <aoliva@redhat.com>
5484
5485 PR debug/41739
5486 * haifa-sched.c (try_ready): Skip debug deps updating speculation
5487 status.
5488
b78cd885
RG
54892009-10-20 Richard Guenther <rguenther@suse.de>
5490
5491 * ggc-page.c: Include cfgloop.h.
5492 (struct max_alignment): Drop long double, add void *.
5493 (extra_order_size_table): Add low non-power-of-two multiples
5494 of MAX_ALIGNMENT. Drop small type-based entries, add
5495 tree_type, cgraph_node and loop.
5496 * alloc-pool.c (struct allocation_object_def): Drop long double
5497 aligning element.
5498
dd8c071d
JJ
54992009-10-20 Jakub Jelinek <jakub@redhat.com>
5500
5501 PR debug/41340
5502 * loop-invariant.c (calculate_loop_reg_pressure): Don't count regs
5503 referenced just in DEBUG_INSNs.
5504
20d36f0e
RG
55052009-10-20 Richard Guenther <rguenther@suse.de>
5506
5507 PR lto/41761
5508 * gimple.c (gimple_register_type): Make sure we register
5509 the types main variant first.
5510
b0cc341f
RG
55112009-10-20 Richard Guenther <rguenther@suse.de>
5512
5513 * gimple.c (gimple_types_compatible_p): Simplify. Move
5514 cheap checks before hashtable queries. Add checks for
5515 TYPE_NONALIASED_COMPONENT and DECL_NONADDRESSABLE_P.
5516
a1aa1701
EB
55172009-10-20 Eric Botcazou <ebotcazou@adacore.com>
5518
5519 * tree-sra.c (build_ref_for_offset_1) <RECORD_TYPE>: Skip fields
5520 without size or with size that can't be represented as a host integer.
5521
717f4048
AO
55222009-10-20 Alexandre Oliva <aoliva@redhat.com>
5523
5524 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't regard
5525 the removal of a debug stmt as a significant change.
5526
421b1e6b
WG
55272009-10-20 Wolfgang Gellerich <gellerich@de.ibm.com>
5528
5529 * config/s390/s390.md: Added agen condition to operand
2c9062e2
UB
5530 forwarding bypasses. Added bypass for early address generation
5531 use of int results. Updated comments.
421b1e6b 5532
bd62d832
SD
55332009-10-20 Stefan Dösinger <stefan@codeweavers.com>
5534
5535 * config/i386/i386.c: Remove signal.h #include.
5536
91c29f68
JZ
55372009-10-20 Jie Zhang <jie.zhang@analog.com>
5538
bd62d832 5539 * simplify-rtx.c (simplify_const_unary_operation): Handle SS_ABS.
91c29f68
JZ
5540 * doc/rtl.texi: Document ss_abs.
5541
2c6e3f55
JJ
55422009-10-19 Jakub Jelinek <jakub@redhat.com>
5543
5544 * c-common.c (c_parse_error): Handle CPP_UTF8STRING.
5545 * c-lex.c (c_lex_with_flags): Likewise. Test C_LEX_STRING_NO_JOIN
5546 instead of C_LEX_RAW_STRINGS.
5547 (lex_string): Handle CPP_UTF8STRING.
5548 * c-parser.c (c_parser_postfix_expression): Likewise.
5549 * c-pragma.h (C_LEX_RAW_STRINGS): Rename to ...
5550 (C_LEX_STRING_NO_JOIN): ... this.
5551
4d696ad0
AS
55522009-10-19 Anatoly Sokolov <aesok@post.ru>
5553
5554 * config/cris/cris.c (cris_function_value, cris_libcall_value,
5555 cris_function_value_regno_p): New functions.
5556 (cris_promote_function_mode): Update comment.
5557 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
bd62d832 5558 * config/cris/cris.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
4d696ad0
AS
5559 (FUNCTION_VALUE_REGNO_P): Redefine, use cris_function_value_regno_p.
5560 * config/cris/cris-protos.h (cris_function_value_regno_p): Declare.
5561
4793ad6b
JJ
55622009-10-19 Jakub Jelinek <jakub@redhat.com>
5563
5564 * unwind-dw2.c (execute_stack_op): Fix operand order for
5565 DW_OP_le, DW_OP_ge, DW_OP_lt and DW_OP_gt.
5566
a141816c
EB
55672009-10-19 Eric Botcazou <ebotcazou@adacore.com>
5568
5569 * gimple-low.c (struct lower_data): Add cannot_fallthru field.
5570 (lower_stmt) <GIMPLE_BIND>: Add comment.
5571 <GIMPLE_COND, GIMPLE_GOTO, GIMPLE_SWITCH>: Set cannot_fallthru to true
5572 and return.
5573 <GIMPLE_RETURN>: Remove the statement if cannot_fallthru is set.
5574 Otherwise lower it and set cannot_fallthru to true.
5575 <GIMPLE_TRY>: Update cannot_fallthru for GIMPLE_TRY_FINALLY and return.
bd62d832 5576 <GIMPLE_CATCH, GIMPLE_EH_FILTER>: Set cannot_fallthru to false.
a141816c
EB
5577 <GIMPLE_CALL>: Set cannot_fallthru to false for BUILT_IN_SETJMP and
5578 to true for a noreturn call. Do not remove statements.
5579 <GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TASK>: Set cannot_fallthru to false.
5580 Set cannot_fallthru to false on function exit.
5581 (gimple_stmt_may_fallthru) <GIMPLE_SWITCH>: Really return false.
5582 <GIMPLE_ASSIGN>: Remove.
5583
2dfdbf2b
AK
55842009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5585
5586 * config/s390/s390.c (s390_z10_optimize_cmp): Don't touch FP compares.
5587
33ab2bd4
AK
55882009-10-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5589
5590 * config/s390/s390.c (s390_z10_optimize_cmp): Use
5591 next/prev_active_insn to skip DEBUG_INSNs as well.
5592
5728868b
JM
55932009-10-19 Joseph Myers <joseph@codesourcery.com>
5594
5595 * config/arm/arm.c (output_move_neon): Use DImode in call to
5596 adjust_address.
5597
d23a7734
MK
55982009-10-19 Matthias Klose <doko@ubuntu.com>
5599
5600 PR target/40134
5601 * config.gcc (arm*-*-linux-*eabi): Use config/t-slibgcc-libgcc.
5602
2d3fc6aa
JJ
56032009-10-19 Jakub Jelinek <jakub@redhat.com>
5604
bd62d832 5605 * cfgexpand.c (expand_debug_expr): Fail if bitpos < 0 for non-MEM op0.
2d3fc6aa
JJ
5606
56072009-10-17 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
db826dae
AH
5608
5609 PR middle-end/41738
5610 * optabs.c (expand_binop): Make mode of shift count expression mode
5611 of shift count not target.
5612 Remove indent nit.
5613
d79c2936
EB
56142009-10-17 Eric Botcazou <ebotcazou@adacore.com>
5615
5616 * tree-nested.c (convert_nonlocal_reference_stmt) <GIMPLE_COND>: New
5617 case. Force using values to replace references within the statement.
5618 (convert_local_reference_stmt): Likewise.
5619
79ddec02
EB
56202009-10-17 Eric Botcazou <ebotcazou@adacore.com>
5621
5622 * gimple-low.c (lower_stmt) <GIMPLE_CALL>: If the call is noreturn,
5623 remove a subsequent GOTO or RETURN statement.
5624
7e90b362
AH
56252009-10-17 Andy Hutchinson <hutchinsonandy@aim.com>
5626
5627 * config/avr.md (*movqi): Add zero as equally preferable constraint
5628 as general register.
79ddec02 5629 (*movhi): Ditto.
7e90b362 5630
79ddec02 56312009-10-17 Eric Botcazou <ebotcazou@adacore.com>
1ee41d43
EB
5632
5633 * print-tree.c (print_node): Fix string for DECL_STRUCT_FUNCTION.
5634
b7dae211
RG
56352009-10-17 Richard Guenther <rguenther@suse.de>
5636
bd62d832 5637 * lto-streamer-in.c (lto_input_location): Try to reuse previous maps.
b7dae211 5638
57e4ba84
RG
56392009-10-17 Richard Guenther <rguenther@suse.de>
5640
5641 * lto-streamer-in.c (input_gimple_stmt): Fixup FIELD_DECL
5642 operands in COMPONENT_REFs.
5643
7fc6a96b
AS
56442009-10-17 Anatoly Sokolov <aesok@post.ru>
5645
5646 * targhooks.c (default_libcall_value): Don't use LIBCALL_VALUE macro
5647 if not defined. Change type of second argument to const_rtx.
5648 (default_function_value): Call gcc_unreachable if FUNCTION_VALUE
5649 macro not defined.
5650 * targhooks.h (default_libcall_value): Update prototype.
5651 * target.h (struct gcc_target): Change type of second argument of
5652 libcall_value to const_rtx.
5653 * config/arm/arm.c (arm_libcall_value): Change type of second argument
5654 to const_rtx.
5655 (arm_libcall_uses_aapcs_base): Change type of argument to const_rtx.
5656 * doc/tm.texi (TARGET_LIBCALL_VALUE): Revise documentation.
5657
3df9609a
JJ
56582009-10-17 Jakub Jelinek <jakub@redhat.com>
5659
5660 PR debug/40521
5661 * debug.h (struct gcc_debug_hooks): Add assembly_start hook.
5662 * cgraphunit.c (cgraph_optimize): Call it.
5663 * dwarf2out.c (dwarf2out_init): Move .cfi_sections printing into...
5664 (dwarf2out_assembly_start): ... here. New hook.
5665 (dwarf2out_debug_hooks): Add dwarf2out_assembly_start.
5666 * debug.c (do_nothing_debug_hooks): Do nothing for assembly_start
5667 hook.
5668 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
5669 * sdbout.c (sdb_debug_hooks): Likewise.
5670 * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_assembly_start.
5671 (vmsdbgout_assembly_start): New hook.
5672
15f01e4a
AO
56732009-10-17 Alexandre Oliva <aoliva@redhat.com>
5674
5675 * rtl.h (RTL_LOCATION): Fix typo.
5676
da1e1503
AO
56772009-10-17 Alexandre Oliva <aoliva@redhat.com>
5678
5679 * print-rtl.c (print_rtx): Print locators in asm_operands
5680 and asm_input.
5681
f49b295a
AO
56822009-10-17 Alexandre Oliva <aoliva@redhat.com>
5683
5684 PR debug/41535
5685 * sched-deps.c (depl_on_debug_p): New.
5686 (attach_dep_link): Reject debug deps before nondebug deps.
5687 (add_to_deps_list): Insert debug deps after nondebug deps.
5688 (sd_lists_empty_p): Stop at first nonempty list. Disregard debug
5689 deps.
5690 (sd_add_dep): Do not reject debug deps.
5691 (add_insn_mem_dependence): Don't count debug deps.
5692 (remove_from_deps): Likewise.
5693 (sched_analyze_2): Set up mem deps on debug insns.
5694 (sched_analyze_insn): Record reg uses for deps on debug insns.
5695 * haifa-sched.c (schedule_insn): Reset deferred debug insn. Don't
5696 try_ready nondebug insn after debug insn.
5697 * ddg.c (create_ddg_dep_from_intra_loop_link,
5698 create_ddg_dep_no_link): Don't reject debug deps.
5699
e575382e
RG
57002009-10-16 Richard Guenther <rguenther@suse.de>
5701
5702 * lto-symtab.c (merge_incomplete_and_complete_type): Remove.
5703 (maybe_merge_incomplete_and_complete_type): Likewise.
5704 (lto_symtab_merge): Do not call them. Do not warn for
5705 complete vs. incomplete compatible types.
5706 (lto_symtab_merge_decls_2): Simplify.
5707 * gimple.c (gimple_force_type_merge): Remove.
5708 (gimple_types_compatible_p): Make it static.
5709 * gimple.h (gimple_force_type_merge): Remove.
5710 (gimple_types_compatible_p): Likewise.
5711
3b24c708
JJ
57122009-10-16 Jakub Jelinek <jakub@redhat.com>
5713
5714 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Cast
5715 DWARF2_ADDR_SIZE to int to avoid signed vs. unsigned warnings.
5716
076ba157
RG
57172009-10-16 Richard Guenther <rguenther@suse.de>
5718
5719 PR tree-optimization/41728
5720 * tree-ssa-dom.c (optimize_stmt): Mark the stmt modified
5721 if fold_stmt did anything.
5722
35f1e9f4
RG
57232009-10-16 Richard Guenther <rguenther@suse.de>
5724
5725 PR lto/41715
5726 * lto-streamer-in.c (lto_input_tree_ref): Revert last change.
5727 (maybe_fixup_handled_component): New function.
5728 (input_gimple_stmt): Fixup mismatched decl replacements.
5729
775dc670
RG
57302009-10-16 Richard Guenther <rguenther@suse.de>
5731
5732 PR lto/41713
5733 * lto-streamer-out.c (lto_output_tree_ref): Handle DEBUG_EXPR_DECL
5734 the same as VAR_DECL.
5735
f798226d
RG
57362009-10-16 Richard Guenther <rguenther@suse.de>
5737
5738 * gimple.c (iterative_hash_gimple_type): For integer types
5739 also hash their minimum and maximum values and the string flag.
5740 For array types hash their domain and the string flag.
5741
021ed367
RG
57422009-10-16 Richard Guenther <rguenther@suse.de>
5743
5744 * gimple.c (gimple_types_compatible_p): Restrict completing
5745 types to record or unions. Simplify completion.
5746 Do not merge records or unions with different
5747 TYPE_STRUCTURAL_EQUALITY_P tag.
5748 (iterative_hash_gimple_type): Restrict non-recursing into
5749 pointer targets for records and unions.
5750
d02a5a4b
JJ
57512009-10-15 Jakub Jelinek <jakub@redhat.com>
5752
5753 PR debug/41717
5754 * cfgexpand.c (expand_debug_expr): Handle CONJ_EXPR.
5755 * dwarf2out.c (mem_loc_descriptor): Don't handle
5756 POST_INT/POST_DEC/POST_MODIFY like SUBREG. For SUBREG
5757 punt if it is not lowpart subreg or if inner mode isn't
5758 MODE_INT.
5759
200ab6fd
AK
57602009-10-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5761
5762 * config/s390/s390.c (s390_z10_optimize_cmp): Skip notes when
5763 investigating previous or next insns.
5764
d7c79c4d
EB
57652009-10-16 Eric Botcazou <ebotcazou@adacore.com>
5766
5767 * tree-sra.c (build_ref_for_offset_1): Update comment.
5768
c68e7b86
WG
57692009-10-16 Wolfgang Gellerich <gellerich@de.ibm.com>
5770
5771 * config/s390/s390.md (atype): Added missing values.
5772
b1978a90
JDA
57732009-10-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5774
5775 PR target/41702
bd62d832 5776 * pa.md (casesi): Use sign extended index in call to gen_casesi64p.
b1978a90
JDA
5777 (casesi64p): Update pattern to reflect above.
5778
4b2e464e
SE
57792009-10-15 Steve Ellcey <sje@cup.hp.com>
5780
5781 PR rtl-optimization/41697
5782 * sel-sched-ir.h (_eligible_successor_edge_p): Check successor count.
5783
1c9df37c
MM
57842009-10-15 Michael Meissner <meissner@linux.vnet.ibm.com>
5785
5786 PR target/23983
5787 * config/rs6000/predicates.md: Update copyright year.
5788 * config/rs6000/altivec.md: Ditto.
2c9062e2 5789
1c9df37c
MM
5790 * config/rs6000/t-rs6000 (TM_H): Add rs6000-builtin.def.
5791 (MD_INCLUDES): Add a2.md.
2c9062e2 5792
1c9df37c
MM
5793 * config/rs6000/rs6000.c (rs6000_builtin_decls): Change
5794 RS6000_BUILTIN_COUNT to MAX_RS6000_BUILTINS.
5795 (builtin_classify): New static vector to classify various builtins
5796 to get the tree attributes correct.
5797 (def_builtin): Set the attributes of builtins based on what the
5798 builtin does (i.e. memory operation, floating point, saturation
5799 need special attributes, others are pure functions).
5800
5801 * config/rs6000/rs6000.h (enum rs6000_btc): New enum to classify
5802 the builtins.
5803 (enum rs6000_builtins): Include rs6000-builtin.def to define the
5804 builtins. Change the end marker to MAX_RS6000_BUILTINS from
5805 RS6000_BUILTIN_COUNT.
5806 (rs6000_builtin_decls): Change RS6000_BUILTIN_COUNT to
5807 MAX_RS6000_BUILTINS.
5808
5809 * config/rs6000/rs6000-builtin.def: New file that combines the
5810 builtin enumeration name and attributes.
5811
9017096f
L
58122009-10-15 H.J. Lu <hongjiu.lu@intel.com>
5813
5814 * config/i386/linux.h (ASM_SPEC): Add --32.
5815
7613143b
JJ
58162009-10-15 Jakub Jelinek <jakub@redhat.com>
5817
5818 * dwarf2out.c (dwarf_tag_name): Handle DW_TAG_rvalue_reference_type
5819 and DW_TAG_template_alias.
5820 (dwarf_attr_name): Handle DW_AT_main_subprogram,
5821 DW_AT_data_bit_offset, DW_AT_const_expr, DW_AT_enum_class,
5822 DW_AT_linkage_name, DW_AT_GNU_guarded_by, DW_AT_GNU_pt_guarded_by,
5823 DW_AT_GNU_guarded, DW_AT_GNU_pt_guarded, DW_AT_GNU_locks_excluded,
5824 DW_AT_GNU_exclusive_locks_required, DW_AT_GNU_shared_locks_required
5825 and DW_AT_GNU_odr_signature.
5826 (dwarf_form_name): Handle DW_FORM_sec_offset, DW_FORM_exprloc,
5827 DW_FORM_flag_present and DW_FORM_ref_sig8.
5828 (output_signature): Only print name on the first byte.
5829 (output_die): Likewise for dw_val_class_data8.
5830
83bb5ce3
AM
58312009-10-15 Alexander Monakov <amonakov@ispras.ru>
5832
5833 * doc/invoke.texi: Clarify that most optimizations are not enabled
5834 without -O.
5835
77785f4f
RG
58362009-10-15 Richard Guenther <rguenther@suse.de>
5837
5838 PR lto/41668
5839 * gimple.c (compare_type_names_p): Handle anonymous names
5840 differently based on new mode argument.
5841 (gimple_types_compatible_p): For structs also compare the tags.
5842 (iterative_hash_type_name): Rename to ...
5843 (iterative_hash_name): ... this. Hash all names.
5844 (iterative_hash_gimple_type): Fix hashing the struct tag of
5845 pointer targets. Hash field decl names.
5846
4c8160e7
RG
58472009-10-15 Richard Guenther <rguenther@suse.de>
5848
5849 PR lto/41669
5850 * gimple.c (gimple_get_alias_set): Avoid recursing on
5851 invalid type topology.
5852
3f254607
AP
58532009-10-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
5854
5855 * config/spu/spu.c (get_branch_target): Use extract_asm_operands.
5856
23503efc
RG
58572009-10-15 Richard Guenther <rguenther@suse.de>
5858
5859 * tree.c (free_lang_data_in_decl): Free DECL_FCONTEXT.
5860
b44dd043
JJ
58612009-10-15 Jakub Jelinek <jakub@redhat.com>
5862
5863 * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Don't
5864 add --with-tune{,-32,-64} configured default for -mtune if explicit
5865 -mcpu is used.
5866
f67c7a8f
DG
58672009-10-14 Daniel Gutson <dgutson@codesourcery.com>
5868
bd62d832 5869 * config/arm/neon.md (neon_vshll_n<mode>): Checking Bounds fixed.
f67c7a8f 5870
18674659 58712009-10-14 DJ Delorie <dj@redhat.com>
2c9062e2 5872
18674659
DD
5873 * config/h8300/h8300.c (F): New.
5874 (Fpa): New.
5875 (h8300_emit_stack_adjustment): Call them.
5876 (push): Likewise.
5877 (h8300_push_pop): Likewise.
5878 (h8300_expand_prologue): Likewise.
5879 * config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
5880 (MUST_USE_SJLJ_EXCEPTIONS): Define.
5881 (INCOMING_RETURN_ADDR_RTX): Define.
5882 (INCOMING_FRAME_SP_OFFSET): Define.
5883 (DWARF_CIE_DATA_ALIGNMENT): Define.
5884
4c0a0455
JJ
58852009-10-14 Jakub Jelinek <jakub@redhat.com>
5886
5887 * stor-layout.c (place_field): Don't emit -Wpadded warnings for
5888 fields in builtin structs.
5889 (finalize_record_size): Likewise.
5890
88ca1146
RG
58912009-10-14 Richard Guenther <rguenther@suse.de>
5892
5893 * gimple.c (gtc_ob): New global.
5894 (struct type_pair_d): Replace pointers with type UIDs.
5895 (type_pair_hash): Adjust.
5896 (type_pair_eq): Likewise.
5897 (lookup_type_pair): Likewise. Allocate from an obstack.
5898 (gimple_force_type_merge): Adjust.
5899 (gimple_types_compatible_p): Likewise.
5900 (free_gimple_type_tables): Free the obstack.
5901
4f2a9af8
JJ
59022009-10-14 Jakub Jelinek <jakub@redhat.com>
5903
5904 * tree-parloops.c (separate_decls_in_region_debug_bind): Drop debug
5905 stmts setting DEBUG_EXPR_DECLs.
5906
5907 * cfgexpand.c (expand_debug_expr): Ignore zero-length bitfields.
5908 Don't crash if mode1 is VOIDmode.
5909
1833192f
VM
59102009-09-26 Vladimir Makarov <vmakarov@redhat.com>
5911
5912 * params.def (PARAM_IRA_LOOP_RESERVED_REGS): New.
bd62d832 5913 * params.h (IRA_LOOP_RESERVED_REGS): New.
1833192f
VM
5914 * tree-pass.h (pass_subregs_of_mode_init,
5915 pass_subregs_of_mode_finish): Remove.
5916 * passes.c (pass_subregs_of_mode_init,
5917 pass_subregs_of_mode_finish): Remove.
5918 (pass_reginfo_init): Move before loop optimizations.
5919 * config/i386/i386.h (STACK_REG_COVER_CLASS): Define.
5920 * common.opt (fira-loop-pressure): New.
5921 * toplev.h (flag_ira_loop_pressure): New.
bd62d832 5922 * rtl.h (init_subregs_of_mode, finish_subregs_of_mode): New externals.
1833192f
VM
5923 * reginfo.c (init_subregs_of_mode, finish_subregs_of_mode):
5924 Make external and void type functions.
5925 (gate_subregs_of_mode_init, pass_subregs_of_mode_init,
5926 pass_subregs_of_mode_finish): Remove.
5927 * ira-costs.c (init_costs): Call init_subregs_of_mode.
5928 * regmove.c: Include ira.h.
5929 (regmove_optimize): Call ira_set_pseudo_classes after IRA based
5930 register pressure calculation in loops.
5931 * loop-invariant.c: Include REGS_H and ira.h.
5932 (struct loop_data): New members max_reg_pressure, regs_ref, and
5933 regs_live.
5934 (struct invariant): New member orig_regno.
5935 (curr_loop): New variable.
5936 (find_exits): Initialize regs_ref and regs_live.
5937 (create_new_invariant): Initialize orig_regno.
5938 (get_cover_class_and_nregs): New.
5939 (get_inv_cost): Make aregs_needed an array. Use regs_needed as an
5940 array. Add code for flag_ira_loop_pressure.
5941 (gain_for_invariant): Make new_regs an array. Add code for
5942 flag_ira_loop_pressure.
5943 (best_gain_for_invariant): Ditto.
5944 (set_move_mark): New parameter gain. Use it for debugging output.
5945 (find_invariants_to_move): Make regs_needed and new_regs an array.
5946 Add code for flag_ira_loop_pressure.
5947 (move_invariant_reg): Set up orig_regno.
5948 (move_invariants): Set up reg classes for pseudos for
5949 flag_ira_loop_pressure.
5950 (free_loop_data): Clear regs_ref and regs_live.
5951 (curr_regs_live, curr_reg_pressure, regs_set, n_regs_set,
5952 get_regno_cover_class, change_pressure, mark_regno_live,
5953 mark_regno_death, mark_reg_store, mark_reg_clobber,
5954 mark_reg_death, mark_ref_regs, calculate_loop_reg_pressure): New.
5955 (move_loop_invariants): Calculate pressure. Initialize curr_loop.
5956 * ira.c (ira): Call ira_set_pseudo_classes after IRA based
5957 register pressure calculation in loops if new regs were added.
5958 Call finish_subregs_of_mode.
5959 * opts.c (decode_options): Set up flag_ira_loop_pressure.
5960 * Makefile.in (loop-invariant.o): Add ira.h.
5961 (regmove.o): Ditto.
5962 * doc/invoke.texi (-fira-loop-pressure, ira-loop-reserved-regs):
5963 Describe.
5964 * doc/tm.texi (STACK_REG_COVER_CLASS): Describe.
2c9062e2 5965
200c8750
RG
59662009-10-14 Richard Guenther <rguenther@suse.de>
5967
5968 * lto-symtab.c (lto_symtab_compatible): Fold in ...
5969 (lto_symtab_merge): ... here. Rewrite both to take the
bd62d832 5970 prevailing and a to-be-merged entry and to queue diagnostics properly.
200c8750
RG
5971 (lto_symtab_resolve_replaceable_p): New predicate for
5972 symbol resolution.
5973 (lto_symtab_resolve_can_prevail_p): Likewise.
5974 (lto_symtab_resolve_symbols): Rewrite. Fold in code that
5975 handles merging commons by choosing the largest decl. Fold
5976 in code that gives ODR errors.
5977 (lto_symtab_merge_decls_2): Simplify a lot. Emit queued
5978 diagnostics here.
5979 (lto_symtab_merge_decls_1): Re-structure. Deal with the
5980 case of no prevailing decl here. Diagnose mismatches
5981 in object types here. Drop all but the prevailing decls.
5982 (lto_symtab_prevailing_decl): Return the single prevailing decl.
5983 * lto-streamer-in.c (lto_input_tree_ref): Deal with
5984 VIEW_CONVERT_EXPRs in decl slots. Unshare the tree in this case.
5985
77ce724c
RG
59862009-10-14 Richard Guenther <rguenther@suse.de>
5987
5988 PR lto/41521
5989 * lto-streamer-in.c (input_bb): Replace debug stmts with
5990 nops instead of dropping them.
5991
8ad1dde7
NC
59922009-10-14 Nick Clifton <nickc@redhat.com>
5993
bd62d832
SD
5994 * gcc/doc/extended.texi: Replace the dash character with @minus{}
5995 in situations where it is being used as a minus symbol.
8ad1dde7
NC
5996 * gcc/doc/tm.texi: Likewise.
5997 * gcc/doc/md.texi: Likewise.
5998
b29ee46c
JJ
59992009-10-14 Jakub Jelinek <jakub@redhat.com>
6000
96c169e1
JJ
6001 PR preprocessor/41543
6002 * input.h (BUILTINS_LOCATION): Change to 1 from 2.
6003 Assert BUILTINS_LOCATION < RESERVED_LOCATION_COUNT.
6004 * tree.c: Include intl.h.
6005 (expand_location): Handle BUILTINS_LOCATION.
6006 * Makefile.in (tree.o): Depend on intl.h.
6007
b29ee46c
JJ
6008 PR debug/41695
6009 * dwarf2out.c (dwarf2out_var_location): Always clear
6010 last_postcall_label when changing last_label.
6011
1b5bc8e9
PO
60122009-10-14 Pascal Obry <obry@adacore.com>
6013
6014 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Add -E.
6015 (process_command): Handle -E as done with -c and -S. Do not add
6016 the target executable suffix to the output file when -E is used.
6017 (main): Adjust error message accordingly.
6018
a83f5409
AO
60192009-10-14 Alexandre Oliva <aoliva@redhat.com>
6020
6021 PR debug/41343
6022 PR debug/41447
6023 PR debug/41264
6024 PR debug/41338
6025 * tree.c (tree_node_structure_for_code): DEBUG_EXPR_DECL uses
6026 decl with rtl.
6027 (tree_code_size): Likewise.
6028
7610abd8
KG
60292009-10-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6030
6031 * builtins.c (fold_builtin_1): Support complex "arc" functions.
6032 * real.h (HAVE_mpc_arc): Define.
6033
1cc24576
KK
60342009-10-14 Kaz Kojima <kkojima@gcc.gnu.org>
6035
6036 * config/sh/sh.c (TARGET_BUILTIN_DECL): Define.
6037 (struct builtin_description): Add fndecl field.
6038 (bdesc): Remove const qualifier. Update initializer.
6039 (sh_media_init_builtins): Remove const qualifier for d. Record
6040 the result of add_builtin_function to the fndecl field.
6041 (sh_builtin_decl): New.
6042 (sh_media_builtin_decl): New.
6043
83907fdd
HPN
60442009-10-14 Hans-Peter Nilsson <hp@axis.com>
6045
6046 PR target/38948
6047 * config/cris/cris.h (SECONDARY_RELOAD_CLASS): Handle reload
6048 requests between special registers.
6049
0e081833
EB
60502009-10-13 Eric Botcazou <ebotcazou@adacore.com>
6051
6052 * dwarf2out.c (mem_loc_descriptor): Accept UNGT as well.
6053
d6063d7f
RH
60542009-10-13 Richard Henderson <rth@redhat.com>
6055
6056 PR tree-optimization/41377
6057 * tree-eh.c (unsplit_eh): Propagate degenerate PHIs.
6058 (cleanup_empty_eh_merge_phis): New change_region parameter;
6059 pass it on to redirect_eh_edge_1. Update callers.
6060 (cleanup_empty_eh_unsplit): Don't require an existing EH label
6061 at the destination block.
b9e467a2
BS
6062
60632009-10-13 Basile Starynkevitch <basile@starynkevitch.net>
d6063d7f
RH
6064
6065 * passes.c (register_pass): Replaced gcc_unreachable by
6066 fatal_error on failure. Mentions plugins in comments & messages.
b9e467a2 6067
e4fb38bd
JJ
60682009-10-13 Jakub Jelinek <jakub@redhat.com>
6069
6070 PR target/41693
6071 * rtl.h (DEBUG_EXPR_TREE_DECL): Define.
6072 * sched-vis.c (print_value): Use it.
6073 * cselib.c (cselib_hash_rtx): Likewise.
6074 * print-rtl.c (print_rtx): Likewise.
6075 * cfgexpand.c (expand_debug_rtx): Likewise.
6076 * var-tracking.c (vt_expand_loc_callback): Likewise.
6077
ab6218f1
RG
60782009-10-13 Richard Guenther <rguenther@suse.de>
6079
6080 PR lto/41565
6081 * opts.c (handle_option): Split out code to handle setting
6082 the options flag var ...
6083 (set_option): ... here.
6084 * opts.h (set_option): Declare.
6085 * lto-opts.c (register_user_option_p): Include -fexceptions
6086 and all position independent code variants.
6087 (handle_common_option): Remove.
6088 (lto_reissue_options): Use set_option.
6089
c4e5fe4b
MJ
60902009-10-13 Martin Jambor <mjambor@suse.cz>
6091
6092 PR tree-optimization/41661
6093 * ipa-prop.c (compute_complex_pass_through): Allow only operations
6094 that are tcc_comparisons or do not change the type in any
6095 un-usleless way.
6096 * ipa-cp.c (ipcp_lattice_from_jfunc): Request boolean type when
6097 folding tcc_comparison operations.
6098
35fcb6ba
AK
60992009-10-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6100
6101 * config/s390/s390.c (s390_encode_section_info): Handle BLKmode
6102 properly.
6103
0ca5af51
AO
61042009-10-12 Alexandre Oliva <aoliva@redhat.com>
6105
6106 PR debug/41343
6107 PR debug/41447
6108 PR debug/41264
6109 PR debug/41338
6110 * tree.def (DEBUG_EXPR_DECL): New.
6111 * rtl.def (DEBUG_EXPR): New.
6112 * gengtype.c (adjust_field_rtx_def): Handle it.
6113 * tree-ssa.c (propagate_var_def_into_debug_stmts): Rename to...
6114 (insert_debug_temp_for_var_def): ... this. Drop support for
6115 moving. Take iterator for def stmt; insert debug stmt before it.
6116 Scan early for use count and kind in debug stmts.
6117 (propagate_defs_into_debug_stmts): Rename to...
6118 (insert_debug_temps_for_defs): ... this. Likewise.
6119 * tree.h (DEBUG_TEMP_UID): New.
6120 * tree.c (next_debug_decl_uid): New.
6121 (make_node_stat): Count debug decls separately.
6122 (copy_node_stat): Likewise.
6123 * cfgexpand.c (expand_debug_expr): Handle DEBUG_EXPR_DECL.
6124 * var-tracking.c (dv_is_decl_p): Recognize it.
6125 (VALUE_RECURSED_INTO): Apply to DEBUG_EXPRs too.
6126 (track_expr_p): Track expanded DEBUG_EXPR_DECLs.
6127 (vt_expand_loc_callback): Expand DEBUG_EXPRs.
6128 (emit_note_insn_var_location): Don't emit notes for DEBUG_EXPR_DECLs.
6129 * cselib.c (rtx_equal_for_cselib_p): Handle DEBUG_EXPR.
6130 (cselib_hash_rtx): Likewise.
6131 (cselib_expand_value_rtx_1): Use callback for DEBUG_EXPR.
6132 * tree-ssa-operands.c (get_expr_operands): Skip DEBUG_EXPR_DECLs in
6133 debug bind stmts.
6134 * emit-rtl.c (verify_rtx_sharing): Handle DEBUG_EXPR and VALUE.
6135 (copy_rtx_if_shared_1, reset_used_flags, set_used_flags): Likewise.
6136 * rtl.c (copy_rtx): Likewise.
6137 (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_EXPR.
6138 * print-rtl.c (print_rtx): Likewise.
6139 * sched-vis.c (print_value): Likewise.
6140 (print_insn): Handle DEBUG_EXPR_DECL.
6141 * tree-dump.c (dequeue_and_dump): Likewise.
6142 * tree-pretty-print.c (dump_decl_name, dump_generic_node): Likewise.
6143 * gimple-iterator (gsi_replace): Check for same lhs.
6144 (gsi_remove): Insert debug temps.
6145 * tree-ssa-loop-im.c (rewrite_reciprocal): Replace with same lhs.
6146 (move_computations_stmt): Drop explicit propagation into debug stmts.
6147 (rewrite_bittest): Likewise. Use gsi_remove for propagation.
6148 * tree-ssa-reassoc.c (rewrite_expr_tree, linearize_expr): Likewise.
6149 * tree-ssa-sink.c (statement_sink_location): Likewise.
6150 * tree-ssa-forwprop (forward_propagate_addr_expr): Likewise.
6151 * tree-ssanames.c (release_ssa_name): Adjust for rename.
6152 * tree-flow.h: Likewise.
6153 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Don't mark
6154 debug temps without values.
6155 (eliminate_unnecessary_stmts): Don't discard just-inserted
6156 debug stmts.
6157
365cacbf
HPN
61582009-10-12 Hans-Peter Nilsson <hp@axis.com>
6159
6160 PR target/26515
6161 * config/cris/cris.md (andu): Check that operand 1 is one of the
6162 general registers. Fix typo in head comment.
6163
afd2c302 61642009-10-12 Stefan Dösinger <stefan@codeweavers.com>
4c769036 6165
afd2c302
SD
6166 * config/i386/i386.md (vswapmov): New.
6167 * config/i386/i386.c (ix86_handle_fndecl_attribute): New.
6168 (ix86_function_ms_hook_prologue): New.
6169 (ix86_expand_prologue): Handle ms_hook_prologue attribute.
6170 * configure.ac: Test for swap suffix support in as.
6171 * configure: Rebuild.
6172
821bdb23
JJ
61732009-10-12 Jakub Jelinek <jakub@redhat.com>
6174
6175 PR target/41680
6176 * config/i386/i386.md (split after *testqi_ext_3_rex64): Only narrow
6177 paradoxical subregs to prevent partial register stalls if the inner
6178 mode is integer mode.
6179
aeaf114b
UB
61802009-10-12 Uros Bizjak <ubizjak@gmail.com>
6181
4c769036 6182 * config/i386/i386.md (*setcc_<mode>_2): Remove insn pattern.
aeaf114b 6183
9ef3dbcd
DS
61842009-10-12 Dodji Seketeli <dodji@redhat.com>
6185
6186 PR c++/41570
6187 * gcc/dwarf2out.c (template_parameter_pack_die,
6188 gen_formal_parameter_pack_die): Use add_name_and_src_coords_attributes.
6189
3a56edc7
AO
61902009-10-12 Alexandre Oliva <aoliva@redhat.com>
6191
6192 PR debug/41616
6193 * tree-into-ssa.c (insert_phi_nodes_for): Build debug bind stmts
6194 on updates too.
6195 (maybe_register_def): Likewise. Take stmt iterator.
6196 (rewrite_update_stmt): Take stmt iterator and pass it on.
6197 (rewrite_update_enter_block): Pass stmt iterator.
6198
2c93399f
AP
61992009-10-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
6200
6201 * config/spu/spu.c (TARGET_BUILTIN_DECL): Define.
6202 (spu_builtin_decl): New function.
6203
bfb59746
UB
62042009-10-12 Uros Bizjak <ubizjak@gmail.com>
6205
6206 * config/i386/i386.md (SWIM): New mode iterator.
6207 (mov<mode>cc): Macroize expander from mov{qi,hi,si,di}cc patterns
6208 using SWIM mode iterator.
6209 (x86_mov<mode>cc_0_m1): Macroize insn from x86_mov{si,di}cc_0_m1
6210 patterns using SWI48 mode iterator.
6211 (*x86_mov<mode>cc_0_m1_se): Macroize insn from
6212 *x86_mov{si,di}cc_0_m1_se patterns using SWI48 mode iterator.
6213 (*x86_mov<mode>cc_0_m1_neg): New insn pattern.
6214 (*mov<mode>cc_noc): Macroize insn from *mov{hi,si,di}cc_noc
6215 patterns using SWI248 mode iterator.
6216 * config/i386/i386.c (ix86_expand_int_movcc): Update the call to
6217 gen_x86_movdicc_0_m1_rex64 for renamed function
6218
cb7d60a6 62192009-10-11 Jose Ruiz <ruiz@adacore.com>
aeaf114b 6220 Eric Botcazou <ebotcazou@adacore.com>
cb7d60a6
JR
6221
6222 PR target/33743
6223 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
6224 * config/sparc/sol2-unwind.h: New file.
6225
8d232178 62262009-10-11 Olivier Hainque <hainque@adacore.com>
aeaf114b 6227 Eric Botcazou <ebotcazou@adacore.com>
8d232178
OH
6228
6229 PR target/33743
6230 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
6231 * config/i386/sol2-unwind.h: New file.
6232
e1d4f419
L
62332009-10-11 H.J. Lu <hongjiu.lu@intel.com>
6234
6235 PR target/41665
6236 * config/i386/i386.md (addsi_1_zext): Get the proper second
6237 operand for lea.
6238
c47d1dba
RS
62392009-10-11 Richard Sandiford <rdsandiford@googlemail.com>
6240
6241 * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
6242 all OLD_RTXes, not just REGs. Use copy_rtx to create the
6243 replacement value.
6244
652a8c1c
RG
62452009-10-11 Richard Guenther <rguenther@suse.de>
6246
6247 * gimple.c (iterative_hash_type_name): Do not handle special
6248 anonymous names.
6249
b09ee6aa
UB
62502009-10-11 Uros Bizjak <ubizjak@gmail.com>
6251
6252 * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
6253 (*setcc_si_1_and): Ditto.
6254 (*setcc_si_1_movzbl): Ditto.
6255 (*setcc_<mode>_2): Ditto.
6256 (*setcc_qi): Rename from *setcc_1.
6257 (*setcc_qi_slp): Rename from *setcc_2.
6258
6259 (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
6260 (*zero_extendqisi2_movzbw_and splitter): Ditto.
6261
6262 * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
6263 "if" condition, there is already assert with reload_completed present.
6264
57703d27
GP
62652009-10-11 Gerald Pfeifer <gerald@pfeifer.com>
6266
b09ee6aa 6267 * plugin.c (try_init_one_plugin): Improve constness of variable err.
c08766bc 6268
57703d27 62692009-10-10 Gerald Pfeifer <gerald@pfeifer.com>
b09ee6aa 6270
c08766bc
GP
6271 * doc/install.texi (Final install): Refer to
6272 http://gcc.gnu.org/bugs/ for bug reporting.
6273
47f67e51
PB
62742009-10-10 Peter Bergner <bergner@vnet.ibm.com>
6275
6276 * configure.ac: Add test for dci instruction.
6277 * configure: Regenerate.
6278 * config.in: Likewise.
6279 * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
6280 * doc/invoke.texi: Add cpu_type 476 and 476fp.
6281 (-mmulhw): Add 476 to description.
6282 (-mdlmzb): Likewise.
6283 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
6284 * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
6285 (processor_target_table): Add 476 and 476fp entries.
6286 (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
6287 (rs6000_issue_rate): Add CPU_PPC476.
6288 * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
6289 (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
6290 (processor_type): Add PROCESSOR_PPC476.
6291 (EXTRA_SPECS): Add asm_cpu_476 string.
bd62d832 6292 * config/rs6000/rs6000.md (define_attr "type"): Add isel attribute.
47f67e51
PB
6293 (define_attr "cpu"): Add ppc476.
6294 Include 476.md.
6295 Update comments for 476.
6296 (isel_signed, isel_unsigned): Change to use "isel" type attribute.
6297 * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
6298 Update copyright year.
6299 * config/rs6000/476.md: New file.
6300 * config/rs6000/40x.md: Add description for "isel" attribute.
6301 Update copyright year.
6302 * config/rs6000/440.md: Likewise.
6303 * config/rs6000/603.md: Likewise.
6304 * config/rs6000/6xx.md: Likewise.
6305 * config/rs6000/7450.md: Likewise.
6306 * config/rs6000/7xx.md: Likewise.
6307 * config/rs6000/8540.md: Likewise.
6308 * config/rs6000/cell.md: Likewise.
6309 * config/rs6000/e300c2c3.md: Likewise.
6310 * config/rs6000/e500mc.md: Likewise.
6311 * config/rs6000/mpc.md: Likewise.
6312 * config/rs6000/power4.md: Likewise.
6313 * config/rs6000/power5.md: Likewise.
6314 * config/rs6000/power6.md: Likewise.
6315 * config/rs6000/power7.md: Likewise.
6316 * config/rs6000/rios1.md: Likewise.
6317 * config/rs6000/rios2.md: Likewise.
6318 * config/rs6000/rs64.md: Likewise.
6319
740bb6ad
RG
63202009-10-10 Richard Guenther <rguenther@suse.de>
6321
6322 PR tree-optimization/41654
6323 * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
6324 a cond expr before calling gimple_cond_set_condition_from_tree.
6325 (ifcombine_iforif): Likewise.
6326
0c2edd9f
ILT
63272009-10-09 Ian Lance Taylor <iant@google.com>
6328
6329 * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
6330 * configure: Rebuild.
6331
2214382c
NV
63322009-10-09 Neil Vachharajani <nvachhar@google.com>
6333
6334 * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
6335 deprecated.
6336
e9e4b3a8
RG
63372009-10-09 Richard Guenther <rguenther@suse.de>
6338
6339 PR lto/41638
6340 * target-def.h (TARGET_BUILTIN_DECL): Define.
6341 (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
6342 * target.h (struct gcc_target): Add builtin_decl target hook.
6343 * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
6344 * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
6345 target builtins.
6346 * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
6347 not gcc_unreachable.
6348 (lto_output_builtin_tree): Sorry if the target does not support
6349 streaming target builtins.
6350 * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
6351 (rs6000_builtin_decl): New function.
6352 * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
6353 (ix86_builtin_decl): New function.
6354
78441afb
JJ
63552009-10-09 Jakub Jelinek <jakub@redhat.com>
6356
21ece9b2
JJ
6357 PR preprocessor/41445
6358 * c-ppoutput.c (do_line_change): New function.
6359 (cb_line_change): Use it.
6360 (scan_translation_unit): Call do_line_change if
6361 avoid_paste or PREV_WHITE and token location is on a different line
6362 than print.src_line.
6363
9c1e641a
JJ
6364 PR debug/40521
6365 * dwarf2out.c (dwarf2out_init): Test whether
6366 HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
6367 it is defined.
6368
78441afb
JJ
6369 PR rtl-optimization/41646
6370 * calls.c (expand_call): For BLKmode types returned in registers
6371 avoid likely spilled hard regs in copy_blkmode_from_reg generated
6372 insns.
6373
aabf6a03
RG
63742009-10-09 Richard Guenther <rguenther@suse.de>
6375
6376 PR tree-optimization/41634
6377 * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
6378 we remove the correct elements.
6379 (optimize_stmt): Make sure to update stmt operands before
6380 optimizing redundancies.
6381
22d72dbc
AK
63822009-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6383
6384 * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
6385
b1b07c92
RG
63862009-10-09 Richard Guenther <rguenther@suse.de>
6387
6388 PR driver/41637
6389 * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
6390 globals.
6391 (lto_wrapper_exit): New function.
6392 (fatal): Use it.
6393 (fatal_perror): Likewise.
6394 (fork_execute): Use global args_name, do not free it.
6395 (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
6396 * lto-streamer.h: Remove duplicate prototypes.
6397
9f3f7d13
RG
63982009-10-09 Richard Guenther <rguenther@suse.de>
6399
6400 * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
6401 before calling stmt_can_throw_external.
6402
3f49ba3f
EB
64032009-10-09 Eric Botcazou <ebotcazou@adacore.com>
6404
6405 PR tree-optimization/40071
6406 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
6407 pointer if the original data reference doesn't conflict with the
6408 created vector data reference. Fix long line.
6409
85760734
UB
64102009-10-09 Uros Bizjak <ubizjak@gmail.com>
6411
6412 * config/i386/i386.md (any_div): New code iterator.
6413 (u): Handle div and udiv.
6414 (sgnprefix): Ditto.
af2efb2b 6415 (<u>divqi3): Macroize insn from {,u}divqi3 using any_div
85760734
UB
6416 code iterator.
6417 (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
6418 lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
6419 (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
6420 lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
6421
23cd46a1
JM
64222009-10-08 Joseph Myers <joseph@codesourcery.com>
6423
6424 * gcc.c (main): Remove trailing "." from diagnostics.
6425
77831620
CC
64262009-10-08 Cary Coutant <ccoutant@google.com>
6427
6428 Add support for debugging with ICF (Identical Code Folding).
6429 * calls.c (debug.h): New #include.
6430 (emit_call_1): Call virtual_call_token debug hook.
6431 * common.opt (-fenable-icf-debug): New option.
6432 * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
6433 locations in the source).
6434 (poc_label_num): New variable.
6435 (dcall_entry, vcall_entry): New typedefs.
6436 (dcall_table, vcall_table): New variables.
6437 (struct vcall_insn): New type.
6438 (vcall_insn_table): New variable.
6439 (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
6440 (size_of_dcall_table): New function.
6441 (output_dcall_table): New function.
6442 (size_of_vcall_table): New function.
6443 (output_vcall_table): New function.
6444 (dwarf2out_direct_call): New function.
6445 (vcall_insn_table_hash): New function.
6446 (vcall_insn_table_eq): New function.
6447 (dwarf2out_virtual_call_token): New function.
6448 (dwarf2out_virtual_call): New function.
6449 (dwarf2out_init): Allocate new tables and sections.
6450 (prune_unused_types): Mark DIEs referenced from direct call table.
6451 (dwarf2out_finish): Output direct and virtual call tables.
6452 * final.c (final_scan_insn): Call direct_call and virtual_call
6453 debug hooks.
6454 * debug.h (struct gcc_debug_hooks): Add direct_call,
6455 virtual_call_token, virtual_call hooks.
6456 (debug_nothing_uid): New function.
6457 * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
6458 (debug_nothing_uid): New function.
6459 * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
38265b74 6460 (xcoff_debug_hooks): Likewise.
77831620
CC
6461 * sdbout.c (sdb_debug_hooks): Likewise.
6462 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6463 * doc/invoke.texi (-fenable-icf-debug): New option.
6464
968e5728
AO
64652009-10-08 Alexandre Oliva <aoliva@redhat.com>
6466
6467 PR debug/41353
6468 * regmove.c (regmove_backward_pass): Replace src with dst in the
6469 debug insn, and check for dst before rather than after.
6470
42ccb890
JJ
64712009-10-08 Janis Johnson <janis187@us.ibm.com>
6472
6473 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
6474 (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
6475
625f802c
JH
64762009-10-08 Jan Hubicka <jh@suse.cz>
6477
6478 PR middle-end/41626
6479 * cgraphbuild.c (record_reference): When parameter DATA is NULL,
6480 do not mark cgraph nodes as needed.
6481 (record_references_in_initializer): Add new only_vars parameter.
6482 * cgraph.h (record_references_in_initializer): New parameter.
6483 * varasm.c (assemble_variable): Update call.
6484 * varpool.c (varpool_analyze_pending_decls): Always look for
6485 referenced vars.
6486
007a178c
AS
64872009-10-08 Anatoly Sokolov <aesok@post.ru>
6488
6489 * config/avr/avr.c (last_insn_address) Remove variable.
6490 (expand_prologue): Don't initialise last_insn_address variable.
6491 (final_prescan_insn): Don't output insn size.
6492 * config/avr/avr.opt (msize): Remove switch.
6493 * doc/invoke.texi (AVR Options): Remove documentation of -msize
6494 switch.
6495
e3104f55
AN
64962009-10-08 Adam Nemet <anemet@caviumnetworks.com>
6497
6498 * combine.c (label_tick_ebb_start): Fix comment.
6499 (combine_instructions): Set label_tick and label_tick_ebb_start before
6500 calling setup_incoming_promotions. Start them from 1. Increment
6501 label_tick instead of deriving it from the BB index. Rather than
6502 comparing ticks use the block from the previous iteration to decide
6503 whether to start a new EBB. Remove empty lines before function.
6504
6728ee79
MM
65052009-10-08 Michael Matz <matz@suse.de>
6506
6507 PR middle-end/41573
6508 * builtins.c (fold_builtin_isascii): Use fold_build2.
6509 (fold_builtin_isdigit): Ditto.
6510 * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
6511 * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
6512 remove_useless_stmts_cond, remove_useless_stmts_tf,
6513 remove_useless_stmts_tc, remove_useless_stmts_bind,
6514 remove_useless_stmts_goto, remove_useless_stmts_label,
6515 remove_useless_stmts_1, remove_useless_stmts,
6516 pass_remove_useless_stmts): Remove.
6517 * tree-pass.h (pass_remove_useless_stmts): Don't declare.
6518 * passes.c (init_optimization_passes): Don't add
6519 pass_remove_useless_stmts.
6520 * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
6521 * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
6522 static constants.
6523 * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
6524 for static constants.
6525 * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
6526 * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
6527
0d0bfe17
RG
65282009-10-08 Richard Guenther <rguenther@suse.de>
6529
6530 * gimple.c (free_gimple_type_tables): New function.
6531 * gimple.h (free_gimple_type_tables): Declare.
6532
90e1a349
MH
65332009-10-07 Mark Heffernan <meheff@google.com>
6534
6535 * ipa-prop.c (ipa_print_node_params) Only print
6536 names of named arguments.
6537
d520c7fb
RAE
65382009-10-08 Rafael Avila de Espindola <espindola@google.com>
6539
6540 * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
6541 being statically linked.
6542
d72ff618
RO
65432009-10-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6544
6545 * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
6546
b820a2f9
JH
65472009-10-08 Jan Hubicka <jh@suse.cz>
6548
6549 PR bootstrap/41620
6550 * ipa.c (cgraph_externally_visible_p,
6551 function_and_variable_visibility,
6552 whole_program_function_and_variable_visibility): Skip non-finalized
6553 nodes.
6554
611b7b5a
NC
65552009-10-08 Nick Clifton <nickc@redhat.com>
6556
6557 * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
6558 CONST_DOUBLEs.
6559
4c93ed23
AT
65602009-10-08 Andreas Tobler <a.tobler@schweiz.org>
6561
6562 PR bootstrap/37739
6563 * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
6564
e5a94231
JM
65652009-10-07 Joseph Myers <joseph@codesourcery.com>
6566
6567 PR c/41182
6568 * c-common.c (c_fully_fold_internal): Strip nops from the result
6569 of recursive calls to c_fully_fold_internal.
6570 (c_wrap_maybe_const): New.
6571 (c_save_expr): Use c_wrap_maybe_const.
6572 * c-common.h (c_wrap_maybe_const): Declare.
6573 * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
6574 build_binary_op): Use c_wrap_maybe_const.
6575
7190c775
KG
65762009-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6577
6578 * real.c: Fix comment to reflect actual exponent size.
6579
033016fa
BE
65802009-10-08 Ben Elliston <bje@au.ibm.com>
6581
6582 * config/rs6000/a2.md: Add FSF comment header.
6583
68bc0874
UB
65842009-10-07 Uros Bizjak <ubizjak@gmail.com>
6585
6586 * config/i386/i386.md (any_extend): New code iterator.
6587 (u, s): New code attributes.
6588 (sgnprefix): Ditto.
6589 (DWIH): Rewrite as code iterator for SI and DI modes.
6590 (DWI): Rewrite as mode attribute.
6591 (dwi): New mode attribute.
6592 (di): Depend on SI mode and DI mode.
6593 (doubleint_general_operand): Remove mode attribute.
6594
6595 (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
6596 DWIH mode iterator.
6597
6598 (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
6599 (*sub<mode>3_doubleword): Ditto.
6600
6601 (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
6602 using SWIM248 mode iterator.
6603 (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
6604 using SWI48 mode iterator.
6605 (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
6606 patterns using DWIH mode iterator and any_extend code iterator.
6607 (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
6608 using any_extend code iterator.
6609 (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
6610 patterns using DWIH mode iterator and any_extend code iterator.
6611 (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
6612 using any_extend code iterator.
6613 (<s>mul<mode>3_highpart): Macroize expander from
6614 {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
6615 and any_extend code iterator.
6616 (*<s>muldi3_highpart_1): Macroize insn from
6617 *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
6618 (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
6619 patterns using any_extend code iterator.
6620 (*<s>mulsi3_highpart_zext): Macroize insn from
6621 *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
6622
95a28767
JJ
66232009-10-07 Jakub Jelinek <jakub@redhat.com>
6624
6625 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
6626 DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
6627 refering to a DIE with DW_AT_const_value.
6628
7ba06dee
VM
66292009-10-07 Vladimir Makarov <vmakarov@redhat.com>
6630
6631 PR middle-end/22072
6632 * ira-lives.c (check_and_make_def_conflict): Process all operands.
6633
3621d5ec
JH
66342009-10-06 Jan Hubicka <jh@suse.cz>
6635
6636 * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
6637 correctly.
6638
f8921d7d
UB
66392009-10-06 Uros Bizjak <ubizjak@gmail.com>
6640
6641 * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
6642 *lea_2_rex64): Move before *add<mode>_1 pattern.
6643
13291c16
JH
66442009-10-07 Jan Hubicka <jh@suse.cz>
6645
6646 * collect2.c (main): Add -fno-whole-program.
6647 * gcc.c (set_collect_gcc_options): Do not remove whole program here.
6648
b20996ff
JH
66492009-10-07 Jan Hubicka <jh@suse.cz>
6650
85760734
UB
6651 * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
6652 has no address taken.
b20996ff
JH
6653 * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
6654 never needed.
6655 (cgraph_clone_node): Clear externally_visible flag for clones.
6656 * cgraph.h (cgraph_only_called_directly_p,
6657 cgraph_can_remove_if_no_direct_calls_p): New predicates.
6658 * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
6659 * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
6660 (ipcp_initialize_node_lattices, ipcp_estimate_growth,
6661 ipcp_insert_stage): Likwise.
6662 * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
6663 externally_visible flag.
6664 (verify_cgraph_node): Verify that inline clones look right.
6665 (process_function_and_variable_attributes): Do not set
6666 externally_visible flags.
6667 (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
6668 been already run.
6669 * lto-cgraph.c (lto_output_node): Assert that inline clones are not
6670 boundaries.
6671 * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
6672 clear externally_visible when turning into inline clones
6673 (cgraph_mark_inline_edge): Use new predicates.
6674 (cgraph_estimate_growth): Likewise.
6675 (cgraph_decide_inlining): Likewise.
6676 * ipa.c (cgraph_postorder): Likewise.
6677 (cgraph_remove_unreachable_nodes): Likewise; sanity check
6678 that inline clones are not needed.
6679 (cgraph_externally_visible_p): New predicate.
6680 (function_and_variable_visibility): Add whole_program parameter;
6681 always set externally_visible flag; handle COMDAT function
6682 privatization.
6683 (local_function_and_variable_visibility): New function.
6684 (gate_whole_program_function_and_variable_visibility): New function.
6685 (whole_program_function_and_variable_visibility): New function.
6686 (pass_ipa_whole_program_visibility): New function.
6687 * passes.c (init_optimization_passes): Add whole program visibility
6688 pass.
6689 (do_per_function_toporder, function_called_by_processed_nodes_p): Do
6690 not care about needed/reachable flags.
6691 * varpool.c: Include flags.h
6692 (decide_is_variable_needed): When doing LTO assume whole-program mode.
6693 (varpool_finalize_decl): When we are in LTO read-back, all variables
6694 are analyzed.
6695 (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
6696
4e7d730d
AK
66972009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6698
6699 * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
6700 add MASK_HARD_DFP.
6701
81dd9fd7
AK
67022009-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6703
6704 * config.gcc: Don't include the makefile fragments intended for
6705 libgcc.
6706 * config/s390/fixdfdi.h: File removed.
6707 * config/s390/libgcc-glibc.ver: File removed.
6708 * config/s390/s390.h: Remove the fixdfdi.h hack.
6709 * config/s390/t-crtstuff: File moved to libgcc dir.
6710 * config/s390/t-linux: Likewise.
6711 * config/s390/t-tpf: libgcc specific parts removed.
6712 * config/s390/t-linux64: Likewise.
6713
66af4187
JQ
67142009-10-06 Jerry Quinn <jlquinn@optonline.net>
6715
6716 * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
6717 (lto-compress.o): Likewise.
09a6b8a4
DS
6718
67192009-10-07 Danny Smith <dannysmith@users.sourceforge.net>
6720
6721 PR target/41512
6722 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
6723 dllexport to class members here.
6724 (i386_pe_determine_dllimport_p): Only check static class data for
6725 definition.
6726 (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
6727 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
6728 functions for vague linkage.
6729 (i386_pe_type_dllexport_p): Fix formatting.
6730 (maybe_add_dllexport) New function.
6731 (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
6732 to class members.
f8921d7d 6733
0b9036f4 67342009-10-07 Ben Elliston <bje@au.ibm.com>
a5617632
BE
6735
6736 * config/rs6000/a2.md: Remove duplicated lines.
6737
ebde32fd
BE
67382009-10-07 Ben Elliston <bje@au.ibm.com>
6739
6740 * config.gcc (powerpc*-*-*): Handle a2.
6741 * config/rs6000/rs6000.md (cpu): Add ppca2. Include "a2.md".
6742 * config/rs6000/a2.md: New file.
6743 * config/rs6000/rs6000.opt (mno-update): New.
6744 (mupdate): Return to using a mask, not a var.
6745 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
6746 (enum processor_type): Add PROCESSOR_PPCA2.
6747 * config/rs6000/rs6000.c (ppca2_cost): New costs.
6748 (rs6000_override_options): Add "a2" to processor_target_table.
68bc0874
UB
6749 Update rs6000_always_hint logic. Correctly set rs6000_cost for a2.
6750 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
ebde32fd 6751
d2407a7a
UB
67522009-10-06 Uros Bizjak <ubizjak@gmail.com>
6753
458c00ff
UB
6754 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
6755 Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
6756 reference to nonexistent gen_truncxfxf2 function.
6757
67582009-10-06 Uros Bizjak <ubizjak@gmail.com>
6759
6760 * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
d2407a7a
UB
6761 (DWIH, g, di, doubleint_general_operand): New mode attributes.
6762 (general_operand): Handle TI mode.
6763 (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
458c00ff 6764 using SDWIM mode iterator.
d2407a7a
UB
6765 (*add<mode>3_doubleword): New insn_and_split pattern. Macroize
6766 pattern from *add{di,ti}3_1 patterns and corresponding splitters
458c00ff 6767 using DWI mode iterator.
d2407a7a
UB
6768 (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
6769 patterns using SWI mode iterator.
6770 (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
6771 using SWI48 mode iterator.
6772 (*add<mode>_1): Ditto from add{si,di}_1 patterns.
6773 (*add<mode>_2): Ditto from add{si,di}_2 patterns.
6774 (*add<mode>_3): Ditto from add{si,di}_3 patterns.
6775 (*add<mode>_5): Ditto from add{si,di}_5 patterns.
6776 (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
458c00ff 6777 using SDWIM mode iterator.
d2407a7a
UB
6778 (*sub<mode>3_doubleword): New insn_and_split pattern. Macroize
6779 pattern from *sub{di,ti}3_1 patterns and corresponding splitters
458c00ff 6780 using DWI mode iterator.
d2407a7a
UB
6781 (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
6782 patterns using SWI mode iterator.
6783 (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
6784 (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
6785 (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
6786 (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
6787 patterns using plusminus code iterator.
6788 (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
6789 sub<mode>3 patterns using plusminus code iterator.
bfb59746 6790 * config/i386/i386.c (override_options): Update the call to
d2407a7a
UB
6791 gen_subdi_carry_rex64 for renamed function.
6792 (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
6793 and gen_adddi3_carry_rex64 for renamed functions. Use indirect
6794 calls to instruction expanders.
6795
7b7c01e7
MJ
67962009-10-06 Martin Jambor <mjambor@suse.cz>
6797
6798 PR bootstrap/41395
6799 * opts.c (decode_options): Run IPA-SRA at -O2.
6800
66cc270e
RG
68012009-10-06 Richard Guenther <rguenther@suse.de>
6802
6803 * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
6804
05927e0d
TB
68052009-10-06 Tobias Burnus <burnus@net-b.de>
6806
6807 PR lto/41591
6808 * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
6809 -flto and -fwhole-program flags can be combined.
6810
9ef3b476
RM
68112009-10-06 Ryan Mansfield <rmansfield@qnx.com>
6812
6813 PR driver/41217
6814 * gcc.c (process_command): Check that -o argument was specified.
6815
ddd4d0e1
JQ
68162009-10-06 Jerry Quinn <jlquinn@optonline.net>
6817
85760734 6818 * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
ddd4d0e1 6819
da667743
RW
68202009-10-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6821
6822 * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
6823 * doc/invoke.texi (Warning Options): Annotate allowed languages
6824 for -Wunsuffixed-float-constants.
6825
7555009a
JJ
68262009-10-05 Jakub Jelinek <jakub@redhat.com>
6827
4a24ddb9
JJ
6828 * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
6829 DW_TAG_{const,volatile}_type if its DW_AT_type already has the
6830 same name and isn't the main variant.
6831
7555009a
JJ
6832 PR debug/41558
6833 * dwarf2out.c (loc_by_reference): Removed.
6834 (dw_loc_list_1): New function.
6835 (dw_loc_list): Remove toplev argument, add want_address argument.
6836 Don't look at decl_by_reference_p at all. Use dw_loc_list_1.
6837 (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
6838 want_address == 2 to dw_loc_list. For successful dw_loc_list
6839 set have_address to 1 only if want_address is not 0.
6840
c640a3bd
RS
68412009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
6842
6843 * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
6844 * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
6845 a code block followed by two pointers.
6846 (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
6847 * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
6848 (MIPS_MOVE): Likewise.
6849 (MIPS_LUI): Likewise.
6850 (MIPS_JR): Likewise.
6851 (MIPS_BAL): Likewise.
6852 (MIPS_NOP): Likewise.
6853 (mips_asm_trampoline_template): Delete.
6854 (mips_trampoline_code_size): New function.
6855 (mips_trampoline_init): Add shorter sequences for all cases
6856 except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
6857 Calculate the opcodes directly, rather than copying from a template.
6858 Only flush the code part of the trampoline.
6859 (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
6860
293593b1
RS
68612009-10-05 Richard Sandiford <rdsandiford@googlemail.com>
6862
6863 * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
6864 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
6865 (INCOMING_RETURN_ADDR_RTX): Likewise.
6866 (FUNCTION_PROFILER): Likewise. Replace GP_REG_FIRST + 1
6867 with AT_REGNUM.
6868 * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
6869 with RETURN_ADDR_REGNUM.
6870 (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
6871 * config/mips/mips.c (mips16_build_call_stub): Replace
6872 GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
6873 with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
6874 (mips_print_operand_punctuation): Likewise.
6875 (mips_frame_set): Likewise.
6876 (mips16e_output_save_restore): Likewise.
6877 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
6878 (mips_save_reg_p): Likewise.
6879 (mips_return_addr): Likewise.
6880 (mips_set_return_address): Likewise.
6881 (mips_direct_save_slot_move_p): Likewise.
6882 (mips_output_function_prologue): Likewise.
6883 (mips_restore_reg): Likewise.
6884 (mips_expand_epilogue): Likewise.
6885 (mips_epilogue_uses): Likewise.
6886 * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
6887 (*mov<mode>_ra): Use it instead of a hard-coded 31.
6888 (clear_hazard_<mode>): Likewise.
6889 (call_internal): Likewise.
6890 (call_internal_direct): Likewise.
6891 (call_direct_split): Likewise.
6892 (call_value_internal): Likewise.
6893 (call_value_split): Likewise.
6894 (call_value_internal_direct): Likewise.
6895 (call_value_direct_split): Likewise.
6896 (call_value_multiple_internal): Likewise.
6897 (call_value_multiple_split): Likewise.
6898
9baea66c
EB
68992009-10-05 Eric Botcazou <ebotcazou@adacore.com>
6900 Jakub Jelinek <jakub@redhat.com>
6901
6902 PR rtl-optimization/41511
6903 * combine.c (record_value_for_reg): Pass explicit values as argument
6904 to get_last_value_validate.
6905 (get_last_value_validate): Document INSN parameter.
6906 For non-readonly MEMs, assume they might have been modified if INSN
6907 was in another basic block.
6908 (get_last_value): Minor reformatting.
6909
2bd1d2c8
AP
69102009-10-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
6911
6912 PR tree-opt/40992
6913 * final.c (asm_str_count): Split out from asm_insn_count.
6914 * rtl.h (asm_str_count): New prototype.
6915 * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
6916 asm_str_count.
6917
8fc7e474
ST
69182009-10-05 Sriraman Tallam <tmsriram@google.com>
6919
6920 * doc/plugins.texi: Change plugin_pass to register_pass_info.
c802b1cf
BS
6921
69222009-10-05 Basile Starynkevitch <basile@starynkevitch.net>
6923 Rafael Espindola <espindola@google.com>
6924
6925 * gengtype.c (write_types): Moved call to write_func_for_structure
6926 into seperate loops.
6927
a9cc4458
RG
69282009-10-05 Richard Guenther <rguenther@suse.de>
6929
6930 PR lto/41281
6931 * lto-cgraph.c (output_cgraph): Output toplevel asms.
6932 (input_cgraph_1): Input toplevel asms.
6933
fd7588bc
RG
69342009-10-05 Richard Guenther <rguenther@suse.de>
6935
6936 PR lto/40902
6937 * lto-symtab.c (lto_compatible_attributes_p): Remove.
6938 (external_aggregate_decl_p): Likewise.
6939 (lto_symtab_compatible): Re-structure. Remove dead code.
6940 For variables ignore toplevel qualifiers when comparing types.
6941 Issue warnings, not errors for mismatched user-alignment.
6942
1a735925
RG
69432009-10-05 Richard Guenther <rguenther@suse.de>
6944
6945 PR lto/41552
6946 PR lto/41487
6947 * lto-symtab.c (struct lto_symtab_base_def): Remove.
6948 (struct lto_symtab_identifier_def): Likewise.
6949 (struct lto_symtab_decl_def): Likewise.
6950 (struct lto_symtab_entry_def): New.
6951 (lto_symtab_identifier_t): Rename to ...
6952 (lto_symtab_entry_t): ... this.
6953 (lto_symtab_decls): Remove.
6954 (lto_symtab_base_hash): Rename to ...
6955 (lto_symtab_entry_hash): ... this.
6956 (lto_symtab_base_eq): Rename to ...
6957 (lto_symtab_entry_eq): ... this.
6958 (lto_symtab_base_marked_p): Rename to ...
6959 (lto_symtab_entry_marked_p): ... this.
6960 (lto_symtab_identifier_marked_p): Remove.
6961 (lto_symtab_decl_marked_p): Likewise.
6962 (lto_symtab_maybe_init_hash_tables): Rename to ...
6963 (lto_symtab_maybe_init_hash_table): ... this.
6964 (lto_symtab_set_resolution_and_file_data): Remove.
6965 (lto_symtab_register_decl): New function.
6966 (lto_symtab_get_identifier): Remove.
6967 (lto_symtab_get): New function.
6968 (lto_symtab_get_resolution): Adjust.
6969 (lto_symtab_get_identifier_decl): Remove.
6970 (lto_symtab_set_identifier_decl): Likewise.
6971 (lto_symtab_merge_decl): Rename to ...
6972 (lto_symtab_merge): ... this. Rewrite.
6973 (lto_symtab_merge_var): Remove.
6974 (lto_symtab_merge_fn): Likewise.
6975 (lto_symtab_prevailing_decl): Adjust.
6976 (lto_cgraph_replace_node): New function.
6977 (lto_symtab_merge_decls_2): Likewise.
6978 (lto_symtab_merge_decls_1): Likewise.
6979 (lto_symtab_fixup_var_decls): Likewise.
6980 (lto_symtab_resolve_symbols): Likewise.
6981 (lto_symtab_merge_decls): Likewise.
6982 (lto_symtab_prevailing_decl): Adjust.
6983 (lto_symtab_get_symtab_def): Remove.
6984 (lto_symtab_get_file_data): Likewise.
6985 (lto_symtab_clear_resolution): Adjust.
6986 (lto_symtab_clear_resolution): Likewise.
6987 * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
6988 (input_cgraph_1): Likewise.
6989 * lto-streamer-in.c (get_resolution): Do not provide fake
6990 symbol resolutions here.
6991 (deferred_global_decls): Remove.
6992 (lto_register_deferred_decls_in_symtab): Likewise.
6993 (lto_register_var_decl_in_symtab): Change signature, register
6994 variable via lto_symtab_register_decl.
6995 (lto_register_function_decl_in_symtab): Likewise.
6996 (lto_read_tree): Adjust.
6997 * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
6998 (lto_symtab_merge_var): Likewise.
6999 (lto_symtab_merge_fn): Likewise.
7000 (lto_symtab_register_decl): Declare.
7001 (lto_symtab_merge_decls): Likewise.
7002
e9d85fa6
RG
70032009-10-05 Richard Guenther <rguenther@suse.de>
7004
7005 PR tree-optimization/23821
7006 * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
7007 * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
7008 simple IV increments.
7009
114bbac6
RR
70102009-10-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7011
d2407a7a
UB
7012 * config/arm/arm.c (arm_override_options): Really initialize
7013 flag_dwarf2_cfi_asm to 0.
114bbac6 7014
56fe3eff
DK
70152009-10-05 Doug Kwan <dougkwan@google.com>
7016
7017 PR rtl-optimization/41574
114bbac6 7018 * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
56fe3eff
DK
7019 floating point and we are not doing unsafe math optimizations.
7020
d7f09764
DN
70212009-10-03 Simon Baldwin <simonb@google.com>
7022 Cary Coutant <ccoutant@google.com>
7023 Rafael Espindola <espindola@google.com>
7024 Richard Guenther <rguenther@suse.de>
7025 Jan Hubicka <jh@suse.cz>
7026 Doug Kwan <dougkwan@google.com>
458c00ff 7027 H.J. Lu <hongjiu.lu@intel.com>
d7f09764
DN
7028 Bill Maddox <maddox@google.com>
7029 Ryan Mansfield <rmansfield@qnx.com>
7030 Diego Novillo <dnovillo@google.com>
7031 Ollie Wild <aaw@google.com>
7032 Kenneth Zadeck <zadeck@naturalbridge.com>
7033
7034 * lto-cgraph.c: New file.
7035 * lto-compress.c: New file.
7036 * lto-compress.h: New file.
7037 * lto-opts.c: New file.
7038 * lto-section-in.c: New file.
7039 * lto-section-out.c: New file.
7040 * lto-streamer-in.c: New file.
7041 * lto-streamer-out.c: New file.
7042 * lto-streamer.c: New file.
7043 * lto-streamer.h: New file.
7044 * lto-symtab.c: New file.
7045 * lto-wpa-fixup.c: New file.
7046 * lto-wrapper.c: New file.
7047
70482009-10-03 Simon Baldwin <baldwin@google.com>
7049 Ben Elliston <bje@au.ibm.com>
7050 Rafael Espindola <espindola@google.com>
7051 Nathan Froyd <froydnj@codesourcery.com>
7052 Jan Hubicka <jh@suse.cz>
7053 Doug Kwan <dougkwan@google.com>
7054 Diego Novillo <dnovillo@google.com>
7055 Kenneth Zadeck <zadeck@naturalbridge.com>
7056
7057 * Makefile.in (enable_lto): New.
85760734 7058 (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
d7f09764
DN
7059 (LINKER_PLUGIN_API_H): Define.
7060 (LTO_SYMTAB_H): Define.
7061 (LTO_STREAMER_H): Define.
7062 (TREE_VECTORIZER_H): Define.
7063 (INCLUDES): Add LIBELFINC.
7064 (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
85760734
UB
7065 lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
7066 lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
d7f09764
DN
7067 (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
7068 (native): Add lto-wrapper$(exeext)
7069 (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
7070 lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
85760734
UB
7071 lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
7072 (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
d7f09764
DN
7073 (varasm.o): Add dependency on tree-iterator.h.
7074 (cgraph.o): Add dependency on cif-code.def.
7075 (ipa-reference.o): Add dependency on LTO_STREAMER_H.
7076 (ipa-pure-const.o): Likewise.
7077 (GTFILES): Add lto-symtab.c.
7078 (install-lto-wrapper): New.
85760734
UB
7079 * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
7080 and enable_lto. If LIBELFLIBS is set, define HAVE_libelf.
d7f09764
DN
7081 * config.in: Regenerate.
7082
70832009-10-03 Rafael Espindola <espindola@google.com>
7084 Diego Novillo <dnovillo@google.com>
7085
7086 * cgraphunit.c (ipa_passes): Prevent lto1 from calling
7087 ipa_write_summaries.
7088 Call execute_ipa_summary_passes for all_regular_ipa_passes and
7089 all_lto_gen_passes.
7090 (cgraph_optimize): Make extern.
7091
70922009-10-03 Nathan Froyd <froydnj@codesourcery.com>
7093 Kenneth Zadeck <zadeck@naturalbridge.com>
7094
7095 * toplev.c (in_lto_p): Declare.
7096 * collect2.c (scan_prog_file): Read all the output when reading
7097 information for LTO.
7098 (enum lto_mode_d): Declare.
7099
71002009-10-03 Richard Guenther <rguenther@suse.de>
7101 Diego Novillo <dnovillo@google.com>
7102
7103 * gimple.c: Include target.h and alias.h.
7104 (gimple_types): Declare.
7105 (type_hash_cache): Declare.
7106 (gimple_alloc_stat): Make extern.
7107 (gimple_build_eh_must_not_throw): Call
7108 gimple_eh_must_not_throw_set_fndecl.
7109 (struct type_pair_d): Declare.
7110 (type_pair_t): Declare.
7111 (type_pair_hash): New.
7112 (type_pair_eq): New.
7113 (lookup_type_pair): New.
7114 (gimple_force_type_merge): New.
7115 (compare_type_names_p): New.
7116 (compare_field_offset): New.
7117 (gimple_types_compatible_p): New.
7118 (struct sccs): Declare.
7119 (next_dfs_num): Declare.
7120 (iterative_hash_gimple_type): New.
7121 (visit): New.
7122 (iterative_hash_type_name): New.
7123 (iterative_hash_gimple_type): New.
7124 (gimple_type_hash): New.
7125 (gimple_type_eq): New.
7126 (gimple_register_type): New.
7127 (print_gimple_types_stats): New.
7128 (gimple_signed_or_unsigned_type): New.
7129 (gimple_unsigned_type): New.
7130 (gimple_signed_type): New.
7131 (gimple_get_alias_set): New.
7132 (gimple_decl_printable_name): Do not use DMGL_TYPES.
7133 * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
7134 (gimple_force_type_merge): Declare.
7135 (gimple_types_compatible_p): Declare.
7136 (gimple_register_type): Declare.
7137 (print_gimple_types_stats): Declare.
7138 (gimple_unsigned_type): Declare.
7139 (gimple_signed_type): Declare.
7140 (gimple_get_alias_set): Declare.
7141 (gimple_eh_must_not_throw_set_fndecl): New.
7142
71432009-10-03 Jan Hubicka <jh@suse.cz>
7144 Kenneth Zadeck <zadeck@naturalbridge.com>
7145
7146 * ipa-pure-const.c: Include lto-streamer.h.
7147 (register_hooks): Factor out of ...
7148 (generate_summary): ... here.
7149 (pure_const_write_summary): New.
7150 (pure_const_read_summary): New.
7151 (pass_ipa_pure_const): Add pure_const_write_summary and
7152 pure_const_read_summary.
7153 * ipa-reference.c: Include lto-streamer.h.
7154 (add_new_function): New.
7155 (remove_node_data): New.
7156 (duplicate_node_data): New.
7157 (ipa_init): Guard against multiple calls.
7158 Move hook setup from analyze_function.
7159 (write_node_summary_p): New.
7160 (ipa_reference_write_summary): New.
7161 (ipa_reference_read_summary): New.
7162 (pass_ipa_reference): Add ipa_reference_write_summary and
7163 ipa_reference_read_summary.
7164 * cgraph.h (cgraph_local_info): Add field lto_file_data.
7165 (struct cgraph_edge): Add fields lto_stmt_uid and
7166 call_stmt_cannot_inline_p.
7167 (cgraph_optimize): Declare.
7168 (cgraph_decide_is_function_needed): Declare.
7169 (reset_inline_failed): Declare.
7170 (enum LTO_cgraph_tags): Declare.
7171 (LTO_cgraph_tag_names): Declare.
7172 (LCC_NOT_FOUND): Define.
7173
71742009-10-03 Doug Kwan <dougkwan@google.com>
7175 Rafael Espindola <espindola@google.com>
7176 Jan Hubicka <jh@suse.cz>
7177 Diego Novillo <dnovillo@google.com>
7178 Kenneth Zadeck <zadeck@naturalbridge.com>
7179
7180 * passes.c (all_regular_ipa_passes): New.
7181 (all_ipa_passes): Rename to all_small_ipa_passes.
7182 (init_optimization_passes): Init all_regular_ipa_passes.
7183 * tree-pass.h (all_regular_ipa_passes): New.
7184 (all_ipa_passes): Rename to all_small_ipa_passes.
7185 * passes.c (all_lto_gen_passes): New.
7186 (init_optimization_passes): Initialize all_lto_gen_passes.
7187 (execute_ipa_summary_passes): Make non-static.
7188 (ipa_write_summaries_1): New.
7189 (ipa_write_summaries_2): New.
7190 (ipa_write_summaries): New.
7191 (ipa_write_summaries_of_cgraph_node_set): New.
7192 (ipa_read_summaries_1): New.
7193 (ipa_read_summaries): New.
7194 (execute_ipa_pass_list): Call cgraph_process_new_functions.
7195 (execute_regular_ipa_pass_list): Remove.
7196 (init_optimization_passes): Schedule
7197 pass_rebuild_cgraph_edges and pass_early_inline outside
7198 of pass_all_early_optimizations. Document reason.
7199 (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
7200 pass_ipa_lto_finish_out): New pass.
85760734 7201 (pass_ipa_summary_passes): Start and stop timers if the pass has them.
d7f09764
DN
7202 (execute_all_ipa_transforms): New.
7203 (execute_one_pass): Don't call execute_one_ipa_transform_pass.
7204 (dump_properties, debug_properties): New.
7205 * tree-optimize.c (gate_all_early_local_passes): Return
7206 false if we are in lto1.
7207 (tree_rest_of_compilation): Call execute_all_ipa_transforms.
7208 * tree-pass.h (execute_all_ipa_transforms): Declare.
7209 (pass_ipa_function_and_variable_visibility): Declare.
7210 (pass_ipa_early_inline): Declare.
7211 (pass_ipa_lto_gimple_out): Declare.
7212 (pass_ipa_lto_wpa_fixup): Declare.
7213 (pass_ipa_lto_finish_out): Declare.
7214 (all_small_ipa_passes, all_regular_ipa_passes,
7215 all_lto_gen_passes): Declare.
7216 (execute_ipa_summary_passes): Declare.
7217 (execute_all_ipa_transforms): Declare.
7218 (ipa_write_summaries): Declare
7219 (ipa_write_summaries_of_cgraph_node_set): Declare.
7220 (ipa_read_summaries): Declare.
7221
72222009-10-03 Doug Kwan <dougkwan@google.com>
7223 Ollie Wild <aaw@google.com>
7224
85760734 7225 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
d7f09764
DN
7226
7227 * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
7228 (lto_mode): New variable.
7229 (maybe_run_lto_and_relink): Handle the -fwpa option.
7230 (main): Handle the -fwpa option.
7231 (maybe_unlink_list): New function.
7232 * gcc.c (link_lto_options): Replace -flto with -fwpa.
7233 * common.opt (flto): New flag.
7234 * toplev.c (flag_generate_lto): Declare.
7235
72362009-10-03 Simon Baldwin <simonb@google.com>
7237
7238 * common.opt (flto-compression-level): New flag.
7239
7240 * opts.c: Include lto-opts.h.
7241 (handle_option): Call lto_register_user_option for each
7242 valid option handled.
85760734 7243 (decode_options): Clear registered options before the options
d7f09764
DN
7244 handling loop.
7245
72462009-10-03 Cary Coutant <ccoutant@google.com>
7247
7248 * collect2.c (is_elf): New function.
7249 (scan_prog_file): Require LTO object to be in ELF format.
7250
72512009-10-03 Rafael Espindola <espindola@google.com>
7252
7253 * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
7254 libgcc to the linker.
7255
85760734 7256 * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
d7f09764
DN
7257
7258 * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
7259 (collect_execute): Add flags argument. Pass flags to pex_run. Update
7260 all callers.
7261 * collect2.h (collect_execute): Add flags argument.
7262 * tlink.c (tlink_execute): Update call to collect_execute.
7263 * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
7264 (use_linker_plugin): New.
7265 (use_linker_plugin_spec_function): New.
7266 (LINK_COMMAND_SPEC): Pass plugin options to the linker.
7267 (linker_plugin_file_spec): New.
7268 (lto_wrapper_spec): New.
7269 (lto_gcc_spec): New.
7270 (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
7271 (static_spec_functions): Add use-linker-plugin.
7272 (process_command): Handle -use-linker-plugin.
7273 (main): Use lto_wrapper_spec instead of lto_wrapper. Set
7274 linker_plugin_file_spec and lto_gcc_spec.
7275 (use_linker_plugin_spec_function): New.
7276
72772009-10-03 Richard Guenther <rguenther@suse.de>
7278
7279 PR lto/41547
7280 PR lto/41548
7281 * tree.h (is_lang_specific): Include LANG_TYPE.
7282 * tree.c (find_decls_types_r): Manually add interesting parts
7283 of TYPE_FIELDS. Walk BINFO_VIRTUALS. Do not walk TYPE_METHODS.
7284
7285 * gimple.c (type_pair_hash): Make symmetric.
7286 (type_pair_eq): Likewise.
7287 (lookup_type_pair): Increase initial hashtable size.
7288 (gimple_force_type_merge): Rely on type-pair symmetry.
7289 (visit): Remove excessive checking code.
85760734 7290 (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
d7f09764
DN
7291 (gimple_register_type): Remove getenv calls, shrink initial
7292 hashtable size.
7293
7294 PR middle-end/41502
7295 * cgraphunit.c (ipa_passes): Do not remove bodies of extern
7296 inline functions if not generating lto output.
7297
7298 PR lto/41379
7299 * toplev.c (finalize): In WPA mode remove the asm file.
7300
73012009-10-03 Doug Kwan <dougkwan@google.com>
7302
7303 * ipa-inline.c (cgraph_mark_inline): Check
7304 edge->call_stmt_cannot_inline_p instead of calling
7305 gimple_call_cannot_inline_p.
7306 (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
85760734 7307 (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
d7f09764 7308 (inline_generate_summary): Do nothing in LTRANS.
85760734
UB
7309 * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
7310 exists before calling gimple_call_cannot_inline_p.
d7f09764 7311 (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
85760734 7312 (cgraph_clone_edge): Add argument STMT_UID. Modify all callers.
d7f09764
DN
7313 Update new_edge->lto_stmt_uid.
7314 * cgraphbuild.c (reset_inline_failed): New.
7315
7316 * common.opt (fwpa): New flag.
7317 (fltrans): New option.
7318 * gcc.c (gcc_lto_option_t): New type.
7319 (current_lto_option): New variable.
7320 (lto_single_spec_function): Remove and is replaced by ..
7321 (lto_option_spec_function): New function.
7322 (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
7323 passing the -flto flag.
7324 (cc1_options): Separate non-LTO related parts into ..
7325 (cc1_non_lto_options): Non-LTO related options shared by all FEs.
7326 (lto1_options): New spec for lto FE.
7327 (link_lto_options): New spec for handling LTO flags in linker.
7328 (invoke_lto_single): Re-format to fit in 80 column. Replace
7329 lto-single with lto-option.
7330 (static_specs): Add cc1_non_lto_options, lto1_options and
7331 link_lto_options.
7332 (static_spec_function): Replace lto-single with lto-option.
85760734
UB
7333 (process_command): Handle -flto, -fwpa and -fltran by setting
7334 current_lto_option and not passing it to subprocess unconditionally.
d7f09764
DN
7335
73362009-10-03 Bill Maddox <maddox@google.com>
7337
7338 Add `gcc' driver support for link-time code generation (LTO).
7339
7340 * collect2.c (enum pass): Add new literal PASS_LTOINFO.
7341 (lto_flag, lto_objects, lto_o_file): New variables.
7342 (struct lto_object, struct lto_object_list): New structures.
7343 (collect_exit, handler): Remove LTO temporary output file on exit.
7344 (add_lto_object): New function.
7345 (maybe_run_lto_and_relink): New function. Perform link time code
7346 generation and relinking for object files containing LTO information.
7347 (main): Invoke maybe_run_lto_and_relink().
7348 (dump_argv): New function. For debugging, currently disabled.
7349 (scan_prog_file): Add LTO information pass.
7350 * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
7351 collect2.
7352 * toplev.c (compile_file): Emit assembler directive to create
7353 the `gnu_lto_v1' marker symbol when compiling with `-flto'.
7354
73552009-10-03 Diego Novillo <dnovillo@google.com>
7356
7357 * c.opt: Add LTO to warn_abi and warn_psabi.
7358
85760734
UB
7359 * tree.c (fld_worklist_push): Rename from PUSH. Convert to static
7360 inline function. Ignore language-specific nodes. Update all users.
d7f09764 7361 (find_decls_types_r): Do not traverse the subtrees of
85760734 7362 language-specific nodes. Do not traverse DECL_INITIAL for TYPE_DECLs.
d7f09764
DN
7363 * tree.h (is_lang_specific): New.
7364 * langhooks.h (struct lang_hooks_for_decls): Remove
7365 may_need_assembler_name_p. Update all users.
7366
7367 * c-common.c (set_builtin_user_assembler_name): Move ...
7368 * builtins.c (set_builtin_user_assembler_name): ... here.
7369 (is_builtin_name): Add comment
7370 (is_builtin_fn): New.
7371 * except.c (output_ttype): Only call
7372 lookup_type_for_runtime if TYPE is not a runtime type.
7373
7374 * passes.c (register_pass): Call position_pass on
85760734 7375 all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
d7f09764
DN
7376 * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
7377 (TV_IPA_LTO_DECL_IO): Define.
7378 (TV_IPA_LTO_CGRAPH_IO): Define.
7379 (TV_LTO): Define.
7380 (TV_WHOPR_WPA): Define.
7381 (TV_WHOPR_WPA_IO): Define.
7382 (TV_WHOPR_LTRANS): Define.
7383 (TV_WHOPR_WPA_FIXUP): Define.
7384 (TV_WHOPR_WPA_LTRANS_EXEC): Define.
7385 * tree-cfg.c (tree_node_can_be_shared): Make extern.
7386 * tree-flow.h (tree_node_can_be_shared): Declare.
7387 * tree-inline.c (tree_can_inline_p): Check that E has a
7388 statement associated with it.
7389 * tree.c (free_lang_data_in_binf): Factor out of ...
7390 (free_lang_data_in_type): ... here.
7391 Call RECORD_OR_UNION_TYPE_P.
85760734
UB
7392 (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
7393 set. Call lang_hooks.decls.may_need_assembler_name_p if set.
7394 (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
7395 (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE. Set
7396 write_symbols to NO_DEBUG. Set debug_hooks to do_nothing_debug_hooks.
7397 (gate_free_lang_data): Return true if flag_generate_lto is set.
d7f09764
DN
7398 (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
7399 * c-common.h (set_builtin_user_assembler_name): Move ...
7400 * tree.h (set_builtin_user_assembler_name): ... here.
7401
7402 * common.opt (flto-report): New flag.
85760734 7403 * opts.c (complain_wrong_lang): Do not complain if running lto1.
d7f09764
DN
7404 * collect2.c (scan_prog_file): Send the error output of
7405 'nm' to HOST_BIT_BUCKET.
7406
74072009-10-03 Ollie Wild <aaw@google.com>
7408
7409 * langhooks-def.h (lhd_begin_section): New function declaration.
7410 (lhd_write_section): New function declaration.
7411 (lhd_end_section): New function declaration.
7412 (LANG_HOOKS_BEGIN_SECTION): New macro.
7413 (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
7414 (LANG_HOOKS_END_SECTION): New macro.
7415 (LANG_HOOKS_LTO): New macro.
7416 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
7417 * langhooks.c (output.h): Add include.
7418 (saved_section): New static variable.
7419 (lhd_begin_section): New function.
7420 (lhd_write_section_data): New function.
7421 (lhd_end_section): New function.
7422 * langhooks.h (struct lang_hooks_for_lto): New structure.
7423 (struct lang_hooks): Add member lto.
7424 * Makefile.in (langhooks.o): Add dependency on output.h.
7425
7426 * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
7427
74282009-10-03 Richard Guenther <rguenther@suse.de>
7429
7430 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
7431 Handle LTO.
7432
74332009-10-03 Simon Baldwin <simonb@google.com>
7434 Richard Guenther <rguenther@suse.de>
7435 Janis Johnson <janis187@us.ibm.com>
7436 Doug Kwan <dougkwan@google.com>
7437 Diego Novillo <dnovillo@google.com>
7438 Ramana Radhakrishnan <ramana.r@gmail.com>
7439 Ollie Wild <aaw@google.com>
7440
7441 * doc/install.texi: Add documentation for libelf and --enable-lto.
85760734
UB
7442 * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
7443 -flto-report, -flto-compression-level and -use-linker-plugin.
7444 * doc/sourcebuild.texi: Document use of zlib. Document lto-plugin.
d7f09764
DN
7445 Add section for LTO Testing.
7446
15b3fbeb
CC
74472009-10-02 Cary Coutant <ccoutant@google.com>
7448
85760734
UB
7449 Add support for comdat type sections for DWARF v4.
7450 Merge from dwarf4 branch.
7451
15b3fbeb
CC
7452 * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
7453 (dw_die_ref): Define vector type.
7454 (enum dw_val_class): Add dw_val_class_data8.
7455 (struct dw_val_struct): Add v.val_data8.
7456 (comdat_type_node_ref): New type.
7457 (struct die_struct): Move die_symbol into a union; add new field
7458 die_type_node. Change all uses.
7459 (comdat_type_node): New type.
7460 (skeleton_chain_node): New type.
7461 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
7462 (comdat_type_list): New variable.
7463 (dwarf_tag_name): Add DW_TAG_type_unit.
7464 (dwarf_attr_name): Add DW_AT_signature.
7465 (add_AT_data8): New function.
7466 (replace_child): New function.
7467 (move_all_children): New function.
7468 (print_signature): New function.
7469 (print_die): Print signature information; add dw_val_class_data8.
7470 (attr_checksum): Support dw_val_class_data8.
85760734 7471 (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
15b3fbeb
CC
7472 (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
7473 (checksum_sleb128, checksum_uleb128): New functions.
7474 (checksum_die_context): New function.
7475 (loc_checksum_ordered): New function.
7476 (attr_checksum_ordered): New function.
7477 (struct checksum_attributes): New structure.
7478 (collect_checksum_attributes): New function.
7479 (die_checksum_ordered): New function.
7480 (generate_type_signature): New function.
7481 (same_dw_val_p): Add dw_val_class_data8.
7482 (is_symbol_die): Use new is_declaration_die function.
7483 (is_declaration_die): New function.
7484 (should_move_die_to_comdat): New function.
7485 (clone_die): New function.
7486 (clone_tree): New function.
7487 (clone_as_declaration): New function.
7488 (copy_declaration_context): New function.
7489 (generate_skeleton_ancestor_tree): New function.
7490 (generate_skeleton_bottom_up): New function.
7491 (generate_skeleton): New function.
7492 (remove_child_or_replace_with_skeleton): New function.
7493 (break_out_comdat_types): New function.
7494 (struct decl_table_entry): New type.
7495 (htab_decl_hash): New function.
7496 (htab_decl_eq): New function.
7497 (htab_decl_del): New function.
7498 (copy_ancestor_tree): New function.
7499 (copy_decls_walk): New function.
7500 (copy_decls_for_unworthy_types): New function.
7501 (build_abbrev_table): Don't assert on missing die_symbol when doing
7502 comdat type sections.
85760734 7503 (size_of_die): Use DW_FORM_sig8 for external references. Add
15b3fbeb
CC
7504 dw_val_class_data8.
7505 (unmark_dies): Don't assert for unmarked dies when doing comdat
7506 type sections.
7507 (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
7508 (output_signature): New function.
7509 (output_die): Likewise.
7510 (output_compilation_unit_header): Mark output as DWARF version 3
7511 even if generating DWARF 4.
7512 (output_comdat_type_unit): New function.
7513 (output_line_info): Mark output as DWARF version 3 even if generating
7514 DWARF 4.
7515 (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
7516 DWARF-4.
7517 (dwarf2out_end_source_file): Likewise.
7518 (prune_unused_types_walk_attribs): Don't follow references into
7519 comdat type sections.
7520 (prune_unused_types_mark): When generating type units, do not mark
7521 children of non-defining declarations of types; do mark children of
7522 type entries.
7523 (prune_unused_types): Process comdat type sections.
7524 (htab_ct_hash): New function.
7525 (htab_ct_eq): New function.
7526 (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
7527 Add a pointer to the line table from type unit entries so
7528 DW_AT_decl_file has meaning.
7529 * varasm.c (default_elf_asm_named_section): Use identifier name as
7530 comdat key instead of lang hook.
7531
ad467730
NV
75322009-10-02 Neil Vachharajani <nvachhar@google.com>
7533
85760734 7534 * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
ad467730 7535
9e51149d
UB
75362009-10-02 Uros Bizjak <ubizjak@gmail.com>
7537
458c00ff
UB
7538 * config/i386/i386.md (SWIM248): New mode iterator.
7539 (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
7540 divmodhi4 patterns using SWIM248 macro.
9e51149d
UB
7541 (*divmod<mode>4): Macroize insn_and_split pattern from
7542 *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
458c00ff 7543 and their corresponding splitters usign SWIM248 macro. Split SImode
9e51149d
UB
7544 insn to generate cltd and DImode insn to generate cqto instead of
7545 move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
7546 (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
7547 (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
458c00ff 7548 *divmodsi_noext patterns using SWIM248 macro.
9e51149d 7549 (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
458c00ff 7550 udivmodhi4 patterns using SWIM248 macro.
9e51149d
UB
7551 (*udivmod<mode>4): Macroize insn_and_split pattern from
7552 *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
458c00ff 7553 corresponding splitters using SWIM248 macro.
9e51149d 7554 (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
458c00ff 7555 *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
9e51149d 7556
c2ce8cdc
EB
75572009-10-02 Eric Botcazou <ebotcazou@adacore.com>
7558
7559 * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
7560 of zero-sized element is zero-sized regardless of its extent.
7561
e1b243a8
JJ
75622009-10-02 Jakub Jelinek <jakub@redhat.com>
7563
7d45fb94
JJ
7564 PR debug/40521
7565 * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
7566 * configure: Regenerated.
7567 * config.in: Regenerated.
7568 * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
7569 !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
7570 (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
7571 not emitting .eh_frame, emit .cfi_sections .debug_frame
7572 directive.
7573
e1b243a8
JJ
7574 PR debug/41404
7575 PR debug/41353
7576 * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
85760734
UB
7577 CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
7578 with '\0'.
e1b243a8
JJ
7579 (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
7580 vars use DECL_RTL with resetting it back to NULL afterwards.
7581 * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
7582 rtx_equal_p instead of asserting it is a SYMBOL_REF.
7583 (value_format): For dw_val_class_addr only use DW_FORM_addr if
7584 the attribute type allows it, otherwise use DW_FORM_dataN.
7585 (mem_loc_descriptor): Handle CONST_STRING.
7586 (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
7587 Handle MEM with CONST_STRING address using add_AT_string.
7588 (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
7589 CONST_STRING for const arrays initialized with a string literal.
7590 (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
7591 (dwarf2out_finish): Call resolve_addr.
7592
74d174c6
AS
75932009-10-02 Andreas Schwab <schwab@linux-m68k.org>
7594 Maxim Kuvyrkov <maxim@codesourcery.com>
9e51149d 7595
74d174c6
AS
7596 * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
7597
33561817
NC
75982009-10-02 Nick Clifton <nickc@redhat.com>
7599
7600 * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
7601 (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
7602
03ec7d01
JH
76032009-10-01 Jan Hubicka <jh@suse.cz>
7604
7605 * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
7606 (cgraph_create_virtual_clone): Just pass redirect_callers
7607 around.
7608 * cgraph.h (cgraph_clone_node): Update prototype.
7609 * ipa-pure-const.c (self_recursive_p): New function.
7610 (propagate): Use it.
7611 * ipa-inline.c (cgraph_clone_inlined_nodes,
7612 cgraph_decide_recursive_inlining): Update.
7613
916e9b31
DD
76142009-10-01 David Daney <ddaney@caviumnetworks.com>
7615
7616 * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
7617 instructions for TARGET_OCTEON.
7618
3a303360
RR
76192009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7620
7621 * config/arm/arm.c (arm_override_options): Turn off
7622 flag_dwarf2_cfi_asm for AAPCS variants.
7623
6096017e
MJ
76242009-10-01 Martin Jambor <mjambor@suse.cz>
7625
7626 PR middle-end/12392
7627 * tree-sra.c (convert_callers): Do not call
7628 compute_inline_parameters on one caller more than once.
7629
34f9cdb5
NC
76302009-10-01 Nick Clifton <nickc@redhat.com>
7631
7632 * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
7633 an empty string if not already defined.
7634
1e9fb3de
MJ
76352009-10-01 Martin Jambor <mjambor@suse.cz>
7636
7637 PR bootstrap/41395
7638 * tree-sra.c (is_va_list_type): New function.
7639 (find_var_candidates): Call is_va_list_type.
7640 (find_param_candidates): Check that the type or the type pointed
7641 to are not va_list types.
7642
ed9fa133
MJ
76432009-10-01 Martin Jambor <mjambor@suse.cz>
7644
7645 PR c++/41503
7646 * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
7647 DECL_ARTIFICIAL (param_decl) is true.
9e51149d 7648
7ecbca9d
GDR
76492009-09-30 Gabriel Dos Reis <gdr@cs.tamu.edu>
7650
7651 * tree.h (tree_decl_common::lang_flag_8): New.
7652 * c-common.c (c_common_reswords): Include "constexpr" as C++0x
9e51149d 7653 keyword.
7ecbca9d
GDR
7654 * c-common.h (RID_CONSTEXPR): New.
7655
1f063d10
UB
76562009-09-30 Uros Bizjak <ubizjak@gmail.com>
7657
7658 * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
7659 Use ref-all pointers.
7660 (alpha_gimplify_va_arg): Ditto.
7661
53a51cef
JJ
76622009-09-30 Jakub Jelinek <jakub@redhat.com>
7663
7664 PR target/41279
7665 * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
7666 before insn counting loop now that BB_END (bb) is counted. Ensure
7667 the return value isn't zero.
7668
3c8348d3
NC
76692009-09-30 Nick Clifton <nickc@redhat.com>
7670
7671 * config.gcc (sh-symbianelf): Replace definition of extra_objs
7672 with separate definitions of c_target_objs and cxx_target_objs.
7673 * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
7674 and symbian-base.o.
7675 * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
7676 sh_symbian_import_export_class.
7677 * config/sh/sh-protos.h: Fix names of exported symbian functions.
7678 * config/sh/symbian.c: Delete, moving code into...
7679 * config/sh/symbian-base.c: ... here
7680 * config/sh/symbian-c.c: ... and here
7681 * config/sh/symbian-cxx.c: ... and here.
7682
08a4a761
UB
76832009-09-30 Uros Bizjak <ubizjak@gmail.com>
7684
7685 PR target/22093
7686 * config/alpha/alpha.md (unaligned_storehi_be): Force operand
7687 of plus RTX into register.
7688
0b70519f
RW
76892009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7690
7691 * doc/install.texi: Linguistic and markup fixes.
7692 (Configuration) <--disable-cpp>: Remove description.
7693 <--enable-maintainer-mode>: Autotools files are affected, too.
7694 <--with-sysroot>: Improve description.
7695 (Building): Bump required GNU make version.
7696
cbf2e4d4
HJ
76972009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
7698
7699 * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
7700 (x86_64-*-*): Ditto.
1f063d10 7701
cbf2e4d4
HJ
7702 * config/i386/fma4intrin.h: New file, provide common x86 compiler
7703 intrinisics for FMA4.
7704 * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
7705 * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
7706 Add FMA4 check and fma4intrin.h.
7707 * config/i386/i386-c.c(ix86_target_macros_internal): Check
1f063d10 7708 ISA_FLAG for FMA4.
cbf2e4d4
HJ
7709 * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
7710 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
7711 constant for FMA4 support.
7712 (UNSPEC_FMA4_FMADDSUB): Ditto.
7713 (UNSPEC_FMA4_FMSUBADD): Ditto.
7714 * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
1f063d10 7715 * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
cbf2e4d4
HJ
7716 (ix86_expand_fma4_multiple_memory): Ditto.
7717 * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
1f063d10
UB
7718 (OPTION_MASK_ISA_FMA4_UNSET): New.
7719 (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
7720 (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
cbf2e4d4
HJ
7721 (ix86_handle_option): Handle -mfma4.
7722 (isa_opts): Handle -mfma4.
7723 (enum pta_flags): Add PTA_FMA4.
1f063d10 7724 (override_options): Add FMA4 support.
cbf2e4d4
HJ
7725 (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
7726 (IX86_BUILTIN_VFMADDSD): Ditto.
7727 (IX86_BUILTIN_VFMADDPS): Ditto.
7728 (IX86_BUILTIN_VFMADDPD): Ditto.
7729 (IX86_BUILTIN_VFMSUBSS): Ditto.
7730 (IX86_BUILTIN_VFMSUBSD): Ditto.
7731 (IX86_BUILTIN_VFMSUBPS): Ditto.
7732 (IX86_BUILTIN_VFMSUBPD): Ditto.
7733 (IX86_BUILTIN_VFMADDSUBPS): Ditto.
7734 (IX86_BUILTIN_VFMADDSUBPD): Ditto.
7735 (IX86_BUILTIN_VFMSUBADDPS): Ditto.
7736 (IX86_BUILTIN_VFMSUBADDPD): Ditto.
7737 (IX86_BUILTIN_VFNMADDSS): Ditto.
7738 (IX86_BUILTIN_VFNMADDSD): Ditto.
7739 (IX86_BUILTIN_VFNMADDPS): Ditto.
7740 (IX86_BUILTIN_VFNMADDPD): Ditto.
7741 (IX86_BUILTIN_VFNMSUBSS): Ditto.
7742 (IX86_BUILTIN_VFNMSUBSD): Ditto.
7743 (IX86_BUILTIN_VFNMSUBPS): Ditto.
7744 (IX86_BUILTIN_VFNMSUBPD): Ditto.
7745 (IX86_BUILTIN_VFMADDPS256): Ditto.
7746 (IX86_BUILTIN_VFMADDPD256): Ditto.
7747 (IX86_BUILTIN_VFMSUBPS256): Ditto.
7748 (IX86_BUILTIN_VFMSUBPD256): Ditto.
7749 (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
7750 (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
7751 (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
7752 (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
7753 (IX86_BUILTIN_VFNMADDPS256): Ditto.
7754 (IX86_BUILTIN_VFNMADDPD256): Ditto.
7755 (IX86_BUILTIN_VFNMSUBPS256): Ditto.
7756 (IX86_BUILTIN_VFNMSUBPD256): Ditto.
7757 (enum multi_arg_type): New enum for describing the various FMA4
7758 intrinsic argument types.
7759 (bdesc_multi_arg): New table for FMA4 intrinsics.
7760 (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
7761 (ix86_expand_multi_arg_builtin): New function for creating FMA4
7762 intrinsics.
7763 (ix86_expand_builtin): Add FMA4 intrinsic support.
7764 (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
7765 operand instructions.
7766 (ix86_expand_fma4_multiple_memory): New function to split the
7767 second memory reference from FMA4 instructions.
7768 * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
7769 (ssemodesuffixf2s): Ditto.
7770 (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
7771 instructions.
7772 (fma4_fmsub<mode>4): Ditto.
7773 (fma4_fnmadd<mode>4): Ditto.
7774 (fma4_fnmsub<mode>4): Ditto.
7775 (fma4_vmfmadd<mode>4): Ditto.
7776 (fma4_vmfmsub<mode>4): Ditto.
7777 (fma4_vmfnmadd<mode>4): Ditto.
7778 (fma4_vmfnmsub<mode>4): Ditto.
7779 (fma4_fmadd<mode>4256): Ditto.
7780 (fma4_fmsub<mode>4256): Ditto.
7781 (fma4_fnmadd<mode>4256): Ditto.
7782 (fma4_fnmsub<mode>4256): Ditto.
7783 (fma4_fmaddsubv8sf4): Ditto.
7784 (fma4_fmaddsubv4sf4): Ditto.
7785 (fma4_fmaddsubv4df4): Ditto.
7786 (fma4_fmaddsubv2df4): Ditto.
7787 (fma4_fmsubaddv8sf4): Ditto.
7788 (fma4_fmsubaddv4sf4): Ditto.
7789 (fma4_fmsubaddv4df4): Ditto.
7790 (fma4_fmsubaddv2df4): Ditto.
7791 (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
7792 instructions for intrinsics.
7793 (fma4i_fmsub<mode>4): Ditto.
7794 (fma4i_fnmadd<mode>4): Ditto.
7795 (fma4i_fnmsub<mode>4): Ditto.
7796 (fma4i_vmfmadd<mode>4): Ditto.
7797 (fma4i_vmfmsub<mode>4): Ditto.
7798 (fma4i_vmfnmadd<mode>4): Ditto.
7799 (fma4i_vmfnmsub<mode>4): Ditto.
7800 (fma4i_fmadd<mode>4256): Ditto.
7801 (fma4i_fmsub<mode>4256): Ditto.
7802 (fma4i_fnmadd<mode>4256): Ditto.
7803 (fma4i_fnmsub<mode>4256): Ditto.
7804 (fma4i_fmaddsubv8sf4): Ditto.
7805 (fma4i_fmaddsubv4sf4): Ditto.
7806 (fma4i_fmaddsubv4df4): Ditto.
7807 (fma4i_fmaddsubv2df4): Ditto.
7808 (fma4i_fmsubaddv8sf4): Ditto.
7809 (fma4i_fmsubaddv4sf4): Ditto.
7810 (fma4i_fmsubaddv4df4): Ditto.
7811 (fma4i_fmsubaddv2df4): Ditto.
7812
7813 * doc/invoke.texi (-mfma4): Add documentation.
7814 * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
7815
f8fd49b5
RH
78162009-09-29 Richard Henderson <rth@redhat.com>
7817
7818 * tree-eh.c (unsplit_eh): Do not unsplit if there's already
7819 an edge to the new destination block.
7820
062a5fd1
JDA
78212009-09-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7822
7823 PR target/41393
7824 * pa.c (hppa_profile_hook): Use
7825 make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
7826
cd17b213
SE
78272009-09-29 Steve Ellcey <sje@cup.hp.com>
7828 Alexander Monakov <amonakov@ispras.ru>
7829
1f063d10 7830 PR target/41365
cd17b213
SE
7831 * config/ia64/predicates.md (not_postinc_destination_operand): New.
7832 (not_postinc_memory_operand): New.
7833 (not_postinc_move_operand): New.
7834 * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
7835 (*cmovsi_internal): Ditto.
7836
e7ada00d
PH
78372009-09-29 Pat Haugen <pthaugen@us.ibm.com>
7838
7839 * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
7840 restrict issue_rate in first pass when scheduling for register
7841 pressure.
7842
9b39cba9 78432009-09-29 Basile Starynkevitch <basile@starynkevitch.net>
aeaf114b 7844 Rafael Avila de Espindola <espindola@google.com>
9b39cba9
BS
7845
7846 * gengtype.c (plugin_output): New.
7847 (get_output_file_with_visibility): Return plugin_output for plugins.
7848 (main): Parse and use the -P option.
7849 * gty.texi: Update the command line format.
7850
08cc1e7f
JJ
78512009-09-29 Jakub Jelinek <jakub@redhat.com>
7852
7853 PR debug/41438
7854 * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
7855 functions.
7856 (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
7857 out if !const_ok_for_output.
7858
7859 PR debug/41474
7860 * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
7861 case VAR_LOCATION>: Remove gcc_unreachable ().
7862
a795ca6e
HJ
78632009-09-29 Harsha Jagasia <harsha.jagasia@amd.com>
7864
7865 * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
1f063d10 7866 (x86_64-*-*): Ditto.
a795ca6e
HJ
7867 * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
7868 back to smmintrin.h.
bd62d832 7869 * config/i386/cpuid.h (bit_SSE5): Remove SSE5 bit.
a795ca6e 7870 * config/i386/x86intrin.h: Remove SSE5.
1f063d10
UB
7871 * config/i386/mmintrin-common.h: Delete file.
7872 * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
a795ca6e 7873
b0e96404
RG
78742009-09-29 Richard Guenther <rguenther@suse.de>
7875
7876 * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
7877 resulting from stack temporaries on STRICT_ALIGNMENT targets.
7878
c7ac4fb5
NC
78792009-09-29 Nick Clifton <nickc@redhat.com>
7880
7881 * function.c (current_function_name): If there is no current
7882 function just return "<none>".
7883
b80b0fd9
ST
78842009-09-28 Sriraman Tallam <tmsriram@google.com>
7885
1f063d10 7886 * tree-pass.h (register_pass_info): New structure.
b80b0fd9
ST
7887 (pass_positioning_ops): Move enum from gcc-plugin.h.
7888 (register_pass): New function.
7889 * gcc-plugin.h (plugin_pass): Delete structure.
7890 (pass_positioning_ops): Delete enum.
7891 * plugin.c (regsiter_pass): Delete function.
7892 (position_pass): Delete function.
7893 (added_pass_nodes): Delete variable.
7894 (prev_added_pass_nodes): Delete variable.
7895 (pass_list_node): Delete structure.
7896 * passes.c (make_pass_instance): New function.
7897 (next_pass_1): Change to call make_pass_instance.
7898 (pass_list_node): Move structure from gcc-plugin.h.
7899 (added_pass_nodes): Move variable from plugin.c.
7900 (prev_added_pass_nodes): Move variable from plugin.c.
7901 (position_pass): New function.
7902 (register_pass): New function.
7903
65026047
ER
79042009-09-28 Easwaran Raman <eraman@google.com>
7905
7906 * ifcvt.c (noce_try_abs): Recognize pattern and call
7907 expand_one_cmpl_abs_nojump.
7908 * optabs.c (expand_one_cmpl_abs_nojump): New function.
7909 * optabs.h (expand_one_cmpl_abs_nojump): Declare.
7910
13ebf17b
ILT
79112009-09-28 Ian Lance Taylor <iant@google.com>
7912
7913 PR middle-end/40500
7914 * c-opts.c (c_common_handle_option): Don't set
7915 warn_jump_misses_init for -Wall.
7916 * doc/invoke.texi (Warning Options): Update documentation.
7917
2bc98066
RW
79182009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7919
7920 * Makefile.in ($(out_object_file)): Depend on
7921 gt-$(basename $(notdir $(out_file))).h.
7922
384c400a
RH
79232009-09-28 Richard Henderson <rth@redhat.com>
7924
7925 * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
7926 * except.c (gen_eh_region): Set it.
7927 (duplicate_eh_regions_1): Copy it.
7928 * tree-eh.c (lower_resx): Use it to determine which function
7929 to call to resume.
7930
7931 * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
7932 * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
7933 * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
7934 * tree.c (build_common_builtin_nodes): Remove parameter. Build
7935 BUILT_IN_CXA_END_CLEANUP if necessary.
7936
7937 * c-common.c (c_define_builtins): Update call to
7938 build_common_builtin_nodes.
7939
aa633255
AP
79402009-09-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
7941
7942 * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
7943
44e10129
MM
79442009-09-28 Michael Matz <matz@suse.de>
7945
7946 * builtins.c (interclass_mathfn_icode): New helper.
7947 (expand_builtin_interclass_mathfn): Use it here, and split folding
7948 into ...
7949 (fold_builtin_interclass_mathfn): ... this new folder.
7950 (build_call_nofold_loc): New static helper.
7951 (build_call_nofold): New wrapper macro for above.
7952 (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
7953 (expand_builtin_pow): Ditto.
7954 (expand_builtin_memset_args): Ditto.
7955 (expand_builtin_printf): Ditto.
7956 (expand_builtin_fprintf): Ditto.
7957 (expand_builtin_sprintf): Ditto.
7958 (expand_builtin_memory_chk): Ditto.
7959 (expand_builtin_mempcpy_args): Ditto and don't call folders.
7960 (expand_builtin_stpcpy): Ditto.
7961 (expand_builtin_strcmp): Ditto.
7962 (expand_builtin_strncmp): Ditto.
7963 (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
7964 (expand_builtin_strcpy_args): Don't call folders.
7965 (expand_builtin_memcmp): Ditto.
7966 (expand_builtin_strncpy): Ditto, and use target.
7967 (expand_builtin_memcpy): Ditto.
7968 (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
7969 expand_builtin_strpbrk, expand_builtin_memmove,
7970 expand_builtin_memmove_args, expand_builtin_bcopy,
7971 expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
7972 expand_builtin_strspn, expand_builtin_strcspn,
7973 expand_builtin_fputs): Remove these.
7974 (expand_builtin): Don't call the above, change calls to other
7975 expanders that changed prototype.
7976 (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
7977 (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
7978 fold_builtin_interclass_mathfn.
7979 (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
7980 (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
7981
7982 * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
7983 * passes.c (init_optimization_passes): Move pass_fold_builtins
7984 after last phiopt pass.
7985 * tree-inline.c (fold_marked_statements): When folding builtins
7986 iterate over all instruction potentially generated.
7987 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
7988 earlier.
7989 (fold_gimple_call): Use it to always fold calls (into potentially
7990 multiple instructions).
7991 * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
7992 calls into zero at this time.
1f063d10 7993 * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
44e10129
MM
7994 statements generated by builtin folding.
7995
d813aaba
NC
79962009-09-28 Nick Clifton <nickc@redhat.com>
7997
85760734 7998 * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
d813aaba 7999
1d7d659d 80002009-09-28 Duncan Sands <baldrick@free.fr>
32c9b4e9
DS
8001
8002 * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
8003 * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
8004 (register_callback): Dispatch it.
8005 (invoke_plugin_callbacks): Incorporate in sanity check.
8006 * ggc.h (ggc_register_cache_tab): Add declaration.
8007 * ggc-common.c (ggc_register_root_tab): Simplify.
8008 (const_ggc_cache_tab_t): New typedef.
8009 (extra_cache_vec): New vector of dynamically added cache tables.
8010 (ggc_register_cache_tab): New function.
8011 (ggc_scan_cache_tab): New function.
8012 (ggc_mark_roots): Simplify dynamic roots. Handle dynamic caches.
8013 * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
8014
ff9d1adc
RH
80152009-09-27 Richard Henderson <rth@redhat.com>
8016
8017 * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
8018 which we remove __builtin_stack_restore.
8019
cdf1bf8b
BS
80202009-09-27 Bernd Schmidt <bernd.schmidt@analog.com>
8021
8022 * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
8023 to test for GRD_INVARIANT.
8024 (simple_rhs_p): Anything that's function_invariant_p is fine.
8025
ea2ca633
RE
80262009-09-27 Rafael Avila de Espindola <espindola@google.com>
8027
8028 * gengtype.c (main): Use plunge_files instead of plugin_output.
8029
99be7084
BS
80302009-09-27 Basile Starynkevitch <basile@starynkevitch.net>
8031 Rafael Avila de Espindola <espindola@google.com>
8032
8033 * gengtype.c (write_root, write_roots): Add a emit_pch argument.
8034 Don't print pch related info if it is false.
8035 (main): Don't print pch info in plugin mode.
8036
4c0ce3c9 80372009-09-27 Eric Botcazou <ebotcazou@adacore.com>
afbd0665 8038
4c0ce3c9
EB
8039 * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
8040 with dw_val_class_const_double.
8041 (struct dw_val_struct): Replace val_long_long with val_double and
8042 adjust for above change.
8043 (output_loc_operands): Likewise.
8044 (add_AT_long_long): Rename into...
8045 (add_AT_double): ...this.
8046 (print_die): Replace dw_val_class_long_long with
8047 dw_val_class_const_double and adjust.
8048 (attr_checksum): Likewise.
8049 (same_dw_val_p): Likewise.
8050 (size_of_die): Likewise.
8051 (value_format): Likewise.
8052 (output_die): Likewise.
8053 (loc_descriptor) <CONST_DOUBLE>: Likewise.
8054 (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
8055 instead of add_AT_long_long.
8056 (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
8057 value with the precision of its type.
8058
80592009-09-27 Andreas Schwab <schwab@linux-m68k.org>
8060
8061 PR c/41476
afbd0665
AS
8062 * c-typeck.c (build_conditional_expr): Use the readonly and
8063 volatile flags of the operand types, not of the operands itself.
8064
4c0ce3c9 80652009-09-27 Peter O'Gorman <pogma@thewrittenword.com>
88febe35 8066
85760734 8067 * collect2.c (main): Look for -brtl before adding libraries.
88febe35 8068
4c0ce3c9 80692009-09-27 Jonathan Gray <jsg@openbsd.org>
aa58f943
JG
8070
8071 * config.gcc: Update OpenBSD targets.
8072 * config/openbsd-stdint.h: New file.
8073 * config/openbsd-libpthread.h: New file.
8074 * config/openbsd.h: Update and break out LIB_SPEC definition.
8075 * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
8076 * config/i386/openbsdelf.h: Correct types.
8077 * config/m68k/openbsd.h: Likewise.
8078 * config/mips/openbsd.h: Likewise.
8079 * config/vax/openbsd.h: Likewise.
8080
ffaf6f25
EB
80812009-09-27 Eric Botcazou <ebotcazou@adacore.com>
8082
8083 * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
8084 (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
8085 * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
8086 of the length and zero.
8087
c829a888
RW
80882009-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8089
464778c0
RW
8090 * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
8091 (FLAGS_H): Add options.h $(REAL_H).
8092 (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
8093 (TREE_VECTORIZER_H): New.
8094 (EBITMAP_H): Renamed from EBIMAP_H.
8095 (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
8096 (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
8097 (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
8098 (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
8099 (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
8100 (graphite-clast-to-gimple.o, graphite-dependences.o)
8101 (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
8102 (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
8103 (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
8104 (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
8105 (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
8106 (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
8107 (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
8108 (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
8109 (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
8110 updated and fixed as per above changes and per
8111 check_makefile_deps.sh output.
8112
c829a888
RW
8113 PR bootstrap/40928
8114 * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
8115 * configure: Regenerate.
8116
3e661154
KG
81172009-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8118
8119 * doc/install.texi: Update minimum MPC version to 0.7.
8120
39088c66
GP
81212009-09-26 Gerald Pfeifer <gerald@pfeifer.com>
8122
8123 * doc/install.texi (Binaries): Remove reference to the binary
8124 distribution CD-ROM from the FSF.
8125
0ffd2048
MM
81262009-09-26 Michael Matz <matz@suse.de>
8127
8128 PR lto/40758
8129 PR middle-end/41470
8130 * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
8131 that are mentioned in the body.
8132
87c93592
MM
81332009-09-26 Michael Matz <matz@suse.de>
8134
8135 PR tree-optimization/41454
8136 * tree-ssa-dom (stmts_to_rescan): Remove variable.
8137 (tree_ssa_dominator_optimize): Don't allocate and free it.
8138 (dom_opt_leave_block): Don't iterate over it.
8139 (eliminate_redundant_computations): Don't return a value.
8140 (cprop_operand, cprop_into_stmt): Ditto.
8141 (optimize_stmt): Don't defer updating stmts.
8142
7653f273 81432009-09-25 Dodji Seketeli <dodji@redhat.com>
072c87d1 8144
7653f273
DS
8145 * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
8146 generic_parameter_die, template_parameter_pack_die,
85760734
UB
8147 gen_formal_parameter_die, gen_subprogram_die): Adjust after
8148 renaming DW_TAG_formal_parameter_pack and
8149 DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
8150 and DW_TAG_GNU_template_parameter_pack.
072c87d1 8151
14a878f3
AS
81522009-09-25 Anatoly Sokolov <aesok@post.ru>
8153
8154 * config/v850/v850.h (FUNCTION_VALUE): Remove.
8155 * config/v850/v850.c (v850_function_value): New function.
8156 (TARGET_FUNCTION_VALUE): Define.
8157
94c08201
JJ
81582009-09-25 Jakub Jelinek <jakub@redhat.com>
8159
7411b8f0
JJ
8160 * tree-vect-stmts.c (vectorizable_call): Call
8161 mark_symbols_for_renaming after vect_finish_stmt_generation.
8162
94c08201
JJ
8163 * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
8164 to loc_descriptor_from_tree.
8165 (add_location_or_const_value_attribute): Pass 0 instead of 2
8166 for decl_by_reference_p decls.
8167
79441eca
RG
81682009-09-25 Richard Guenther <rguenther@suse.de>
8169
8170 PR middle-end/41463
8171 * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
8172 arrays again.
8173
7930dab0
BE
81742009-09-25 Ben Elliston <bje@au.ibm.com>
8175
8176 * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
8177 after `power7'.
8178
3025dff8
AM
81792009-09-25 Alan Modra <amodra@bigpond.net.au>
8180
8181 * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
8182 form of instruction.
8183
e3d5405d
KG
81842009-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8185
8186 PR middle-end/41435
8187 * fold-const.c (const_binop): Handle complex int division.
8188 * tree-complex.c (expand_complex_div_straight,
8189 expand_complex_div_wide): Update comments.
8190
18b80268
DD
81912009-09-24 DJ Delorie <dj@redhat.com>
8192
8193 PR target/41456
8194 * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
8195 (reg_class): Likewise.
8196 (REG_CLASS_NAMES): Likewise.
8197 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
85760734 8198 (m32c_override_options): Disable -fivopts for M32C.
18b80268 8199
368908d8
MM
82002009-09-24 Michael Meissner <meissner@linux.vnet.ibm.com>
8201
8202 * config/rs6000/predicates.md (indexed_or_indirect_operand):
8203 Delete VSX load/store with update support.
8204 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
8205 * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
8206 (vsx_movti): Ditto.
8207 (VSX_U): Delete.
8208 (VSbit): Ditto.
8209 (VStype_load_update): Ditto.
8210 (VStype_store_update): Ditto.
8211 (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
8212 (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
8213
8214 * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
8215 load/store with update builtins.
8216
0a38153f
KT
82172009-09-24 Kai Tietz <kai.tietz@onevision.com>
8218
8219 * libgcc2.c (L_trampoline): Prototype for getpagesize
8220 and mprotect in WINNT case.
8221
3faa6313
AS
82222009-09-24 Anatoly Sokolov <aesok@post.ru>
8223
8224 * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
8225 * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
8226 * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
8227 'outgoing' argument.
8228 (TARGET_FUNCTION_VALUE): Define.
8229
2d84a337
IS
82302009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8231
8232 * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
8233
047a3193
IS
82342009-09-24 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8235
8236 PR bootstrap/41405
afbd0665 8237 * common.opt: Initialize dwarf_strict to -1.
047a3193
IS
8238 * toplev.c (process_options): Catch unset dwarf_strict
8239 and set to 0 for all targets not overriding.
8240 * config/darwin.c (darwin_override_options): Catch unset
8241 dwarf_strict and override to 1.
8242
b5dcb2b9
JL
82432009-09-24 Jeff Law <law@redhat.com>
8244
afbd0665 8245 * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
b5dcb2b9 8246
824ff0cd
RG
82472009-09-24 Richard Guenther <rguenther@suse.de>
8248
8249 PR tree-optimization/36143
8250 PR tree-optimization/38747
8251 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
8252 create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
8253
22a3138f
JJ
82542009-09-24 Jakub Jelinek <jakub@redhat.com>
8255
8256 PR bootstrap/41457
8257 * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
8258 return false instead of gcc_unreachable (). For CONST return the
8259 value returned by recursive call instead of always returning true.
8260 (tree_add_const_value_attribute): Return the value returned by
8261 add_const_value_attribute instead of always returning true if rtl
8262 is non-NULL.
8263
82642009-09-23 Justin Seyster <jrseys@gmail.com>
6209e51c
JS
8265
8266 * Makefile.in (PLUGIN_HEADERS): Include real.h.
8267
9f62cb92
JJ
82682009-09-24 Jakub Jelinek <jakub@redhat.com>
8269
8270 * cgraphunit.c (cgraph_lower_function): Revert last change.
8271 * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
8272 instead of DECL_NO_STATIC_CHAIN.
8273 * tree-cfg.c (verify_gimple_call): Likewise.
8274 * tree-nested.c (get_chain_decl, get_chain_field,
8275 convert_tramp_reference_op, convert_gimple_call): Likewise.
8276 (convert_all_function_calls): Likewise. Always set or clear
8277 DECL_STATIC_CHAIN initially, for !n->outer clear it.
8278 (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
8279 * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
8280 if nested.
8281 * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
8282 DECL_NO_STATIC_CHAIN.
8283 * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
8284 instead of DECL_NO_STATIC_CHAIN.
8285 (ix86_function_regparm, find_drap_reg): Likewise. Don't test
8286 decl_function_context.
8287 * varasm.c (initializer_constant_valid_p): Likewise.
8288 * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
8289 (DECL_STATIC_CHAIN): ... this.
8290 * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
8291 instead of DECL_NO_STATIC_CHAIN.
8292
9f78bf05 82932009-09-23 Basile Starynkevitch <basile@starynkevitch.net>
6209e51c 8294 Rafael Avila de Espindola <espindola@google.com>
9f78bf05
BS
8295
8296 * gengtype.c (nb_plugin_files): Make it unsigned to match
8297 num_gt_files. Adjust other variables to avoid warnings.
8298 (main): Allocate an all zero lang_bitmap before each plugin file name
8299 to match regular file names.
8300
2b4fa409
RH
83012009-09-23 Richard Henderson <rth@redhat.com>
8302
8303 * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
8304 (TARGET_STATIC_CHAIN): Mention that this hook must be used for
8305 static chain passed in memory.
8306 * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
8307 * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
8308 STATIC_CHAIN_INCOMING. Issue a sorry if there's no
8309 STATIC_CHAIN_REGNUM defined.
8310
8311 * config/picochip/picochip-protos.h: s/class/klass/.
8312 * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
8313 (picochip_static_chain): New.
8314 * config/picochip/picochip.h (STATIC_CHAIN): Remove.
8315 (STATIC_CHAIN_INCOMING): Remove.
8316
8317 * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
8318 (xtensa_static_chain): New.
85760734
UB
8319 * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
8320 (STATIC_CHAIN_INCOMING): Remove.
2b4fa409 8321
9193312a
AS
83222009-09-23 Anatoly Sokolov <aesok@post.ru>
8323
8324 * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
8325 * config/pa/pa-protos.h (function_value): Remove.
8326 * config/pa/pa.c (pa_function_value): Rename from function_value.
8327 Make static, add 'outgoing' argument.
8328 (TARGET_FUNCTION_VALUE): Define.
8329
9ed74235
AS
83302009-09-23 Anatoly Sokolov <aesok@post.ru>
8331
8332 * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
8333 instead of cfun->machine->is_leaf.
8334 * config/avr/avr.h (machine_function): Remove is_leaf field.
8335
abab57ef
JJ
83362009-09-23 Jakub Jelinek <jakub@redhat.com>
8337
8338 PR debug/41439
8339 * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
8340 DW_OP_piece after DW_OP_stack_value, adjust size calculations
8341 for it, when DW_OP_stack_value and DW_OP_implicit_value has
8342 the same size, prefer DW_OP_stack_value.
8343 (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
8344 loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
8345
7168dc47
AO
83462009-09-23 Alexandre Oliva <aoliva@redhat.com>
8347
8348 PR debug/41353
8349 * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
8350
dda2da58
AO
83512009-09-23 Alexandre Oliva <aoliva@redhat.com>
8352
8353 PR debug/41248
8354 * cfgexpand.c (convert_debug_memory_address): New.
8355 (expand_debug_expr): Convert base address and offset to the same
8356 mode. Use it to convert addresses to other modes. Accept
8357 ptr_mode addresses.
8358
a3119b91
DS
83592009-09-23 Dodji Seketeli <dodji@redhat.com>
8360
8361 PR debug/41065
8362 * function.h (types_used_by_vars_hash): Declare new hash table.
8363 (types_used_by_vars_eq, types_used_by_var_decl_insert): Declare
8364 equality and hash function for the hash table.
8365 (types_used_by_cur_var_decl): Declare a new global chained list.
8366 (types_used_by_var_decl_insert): Declare new function.
8367 * function.c (types_used_by_vars_hash): Define the hashtable ...
8368 (types_used_by_vars_eq, types_used_by_vars_do_hash): ... as well as
8369 its equality and hash functions.
8370 (hash_types_used_by_vars_entry): New hash helper.
8371 (types_used_by_cur_var_decl): Define the global chained list.
8372 (used_types_insert): Update the list of types used by the global
8373 variable being parsed.
8374 (types_used_by_var_decl_insert): Define new function.
8375 * c-common.h (record_types_used_by_current_var_decl): Declare ...
8376 * c-common.c (record_types_used_by_current_var_decl): ... new
8377 function.
8378 * c-decl.c (finish_decl): Record the types used by the global
8379 variable declaration we've just parsed.
8380 * dwarf2out.c (premark_used_types): Insert a new line between
8381 comment and function.
8382 (premark_used_types_helper): Fix comment.
8383 (premark_types_used_by_global_vars_helper,
8384 premark_types_used_by_global_vars): New functions.
8385 (prune_unused_types): Do not prune types used by global variables.
8386
4c685825
RG
83872009-09-23 Richard Guenther <rguenther@suse.de>
8388
8389 * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
8390 produced for bigendian targets with promoted subregs.
8391
659ad88e
RG
83922009-09-23 Richard Guenther <rguenther@suse.de>
8393
8394 * value-prof.c (gimple_ic): Purge old EH edges only after building
8395 the new ones.
8396
b3901be5
NC
83972009-09-23 Nick Clifton <nickc@redhat.com>
8398
8399 * config/arc/arc.c (arc_trampoline_init): Fix typo.
8400
66f0e027
JJ
84012009-09-23 Jakub Jelinek <jakub@redhat.com>
8402
dc67413d
JJ
8403 PR bootstrap/41405
8404 * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
8405
66f0e027
JJ
8406 PR bootstrap/41436
8407 * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
8408 on non-nested functions.
8409
457ff6a1
JJ
84102009-09-23 Jakub Jelinek <jakub@redhat.com>
8411 Jan Hubicka <jh@suse.cz>
8412
8413 * dwarf2out.c (loc_list_plus_const): Only define if
8414 DWARF2_DEBUGGING_INFO.
8415 (address_of_int_loc_descriptor): Likewise.
8416
8417 PR debug/41411
8418 * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
8419
84202009-09-23 Uros Bizjak <ubizjak@gmail.com>
be123439
UB
8421
8422 PR c/39779
8423 * c-typeck.c (build_binary_op) <short_shift>: Check that integer
8424 constant is more than zero.
8425
d57c0139
AM
84262009-09-23 Alan Modra <amodra@bigpond.net.au>
8427
8428 PR target/40473
8429 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
8430 call final to emit non-scheduled prologue, instead insert at entry.
8431
f2431d5d
LR
84322009-09-22 Loren J. Rittle <ljrittle@acm.org>
8433 Joseph S. Myers <joseph@codesourcery.com>
8434
8435 * doc/install.texi (*-*-freebsd*): Add proper format codes.
8436
41e7ac51 84372009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
be123439 8438 Rafael Avila de Espindola <espindola@google.com>
41e7ac51
BS
8439
8440 * gengtype.c (is_file_equal): New function.
8441 (close_output_files): Use is_file_equal. Free of->buf.
8442
0182d016 84432009-09-22 Basile Starynkevitch <basile@starynkevitch.net>
be123439 8444 Rafael Avila de Espindola <espindola@google.com>
0182d016
BS
8445
8446 * gengtype.c (write_types, write_local): Add the output_header
8447 argument. Update all callers.
8448
d40a19da
DS
84492009-09-22 Dodji Seketeli <dodji@redhat.com>
8450
8451 * dwarf2out.c (template_parameter_pack_die,
8452 gen_formal_parameter_pack_die ): New functions.
8453 (make_ith_pack_parameter_name): Remove this function.
8454 (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
8455 DW_TAG_formal_parameter_pack.
8456 (gen_generic_params_dies): Represent each template parameter pack
8457 by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
8458 represented by usual DW_TAG_template_*_parameter DIEs that are
8459 children of the DW_TAG_template_parameter_pack element DIE.
8460 (generic_parameter_die): This doesn't deal with parameter pack
be123439
UB
8461 names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
8462 of parameter pack DIEs.
d40a19da
DS
8463 (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
8464 in certain cases, e.g. for pack elements.
8465 (gen_formal_types_die, gen_decl_die): Adjust usage of
8466 gen_formal_parameter_die.
8467 (gen_subprogram_die): Represent each function parameter pack by a
8468 DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
8469 represented by usual DW_TAG_formal_parameter DIEs that are children
8470 of the DW_TAG_formal_parameter_pack DIE. Remove references to
8471 ____builtin_va_alist decls as no part of the compiler uses those
8472 anymore.
8473 * langhooks.h (struct lang_hooks_for_decls): Add
8474 function_parm_expanded_from_pack_p, get_generic_function_decl
8475 and function_parameter_pack_p hooks. Fix comment for
8476 get_innermost_generic_parms hook.
8477 * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
8478 LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
8479 macros and use them to initialize lang_hook.
8480
82497700
RH
84812009-09-22 Richard Henderson <rth@redhat.com>
8482
8483 * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
8484 (TRAMPOLINE_ADJUST_ADDRESS): Poison.
8485 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
8486 on TRAMPOLINE_TEMPLATE.
8487 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
8488 TRAMPOLINE_ADJUST_ADDRESS.
8489 * targhooks.c (default_asm_trampoline_template): Remove.
8490 (default_trampoline_adjust_address): Remove.
8491 (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
8492 * targhooks.h: Update decls.
8493
6a92b6c7
DK
84942009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
8495
8496 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
8497 * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
8498 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
8499
502a1e45
AO
85002009-09-22 Alexandre Oliva <aoliva@redhat.com>
8501
8502 PR debug/41295
8503 * reload1.c (reload): Reset debug insns with pseudos without
8504 equivalences.
8505
a9ab39d3
JJ
85062009-09-22 Janis Johnson <janis187@us.ibm.com>
8507
8508 * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
8509 unconditional true for decimal float modes.
8510 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
8511 * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
8512
2208d2ac
LR
85132009-09-22 Loren J. Rittle <ljrittle@acm.org>
8514
8515 * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
8516 Enable a new case for __FreeBSD__ >= 7.
8517 * crtstuff.c: Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
8518 * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
8519 * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
8520 and USE_LD_AS_NEEDED.
8521
27ed7478
LR
8522 * doc/install.texi (*-*-freebsd*): Update target information.
8523
6eee506e
RH
85242009-09-22 Richard Guenther <rguenther@suse.de>
8525
8526 PR middle-end/41395
8527 * tree-dfa.c (get_ref_base_and_extent): Handle trailing
8528 arrays really properly.
8529
531ca746
RH
85302009-09-22 Richard Henderson <rth@redhat.com>
8531
8532 PR target/41246
8533 * target.h (struct gcc_target): Add asm_out.trampoline_template,
8534 calls.static_chain, calls.trampoline_init,
8535 calls.trampoline_adjust_address.
8536 * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8537 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
8538 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
8539 * builtins.c (expand_builtin_setjmp_receiver): Use
8540 targetm.calls.static_chain; only clobber registers.
8541 (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
8542 set up memory attributes properly for the trampoline block.
8543 (expand_builtin_adjust_trampoline): Use
8544 targetm.calls.trampoline_adjust_address.
8545 * calls.c (prepare_call_address): Add fndecl argument. Use
8546 targetm.calls.static_chain.
8547 * df-scan.c (df_need_static_chain_reg): Remove.
8548 (df_get_entry_block_def_set): Use targetm.calls.static_chain;
8549 consolodate static chain handling.
8550 * doc/tm.texi: Document new hooks.
8551 * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
8552 (init_emit_regs): Don't initialize them.
8553 * expr.h (prepare_call_address): Update decl.
8554 * final.c (profile_function): Use targetm.calls.static_chain.
8555 * function.c (expand_function_start): Likewise.
8556 * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
8557 * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
8558 only clobber registers.
8559 * targhooks.c (default_static_chain): New.
8560 (default_asm_trampoline_template, default_trampoline_init): New.
8561 (default_trampoline_adjust_address): New.
8562 * targhooks.h: Declare them.
8563 * varasm.c (assemble_trampoline_template): Use
8564 targetm.asm_out.trampoline_template. Make the memory block const
8565 and set its size.
8566
672f0baa
RH
8567 * config/alpha/alpha.c (alpha_trampoline_init): Rename from
8568 alpha_initialize_trampoline. Make static. Merge VMS parameter
8569 differences into the TARGET_ABI_OPEN_VMS code block.
8570 (TARGET_TRAMPOLINE_INIT): New.
8571 * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
8572 (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
8573 * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
8574 (INITIALIZE_TRAMPOLINE): Remove.
8575
8576 * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
8577 (TRAMPOLINE_TEMPLATE): Merge with ...
8578 (INITIALIZE_TRAMPOLINE): ... this and move ...
8579 * config/arc/arc.c (arc_trampoline_init): ... here.
2d7b663a 8580 (TARGET_TRAMPOLINE_INIT): New.
2d7b663a 8581
0ef9304b
RH
8582 * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8583 (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
8584 (arm_asm_trampoline_template): New.
8585 (arm_trampoline_init, arm_trampoline_adjust_address): New.
8586 * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
8587 THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
8588 code to arm_asm_trampoline_template.
8589 (TRAMPOLINE_ADJUST_ADDRESS): Move code to
8590 arm_trampoline_adjust_address.
8591 (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
8592 adjust for target hook parameters.
8593
be123439
UB
8594 * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
8595 Remove.
2df373c2 8596
92910d77
RH
8597 * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
8598 * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
8599 (bfin_trampoline_init): Rename from initialize_trampoline;
8600 make static; update for target hook parameters.
8601 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
8602 * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
8603 bfin_asm_trampoline_template.
8604 (INITIALIZE_TRAMPOLINE): Remove.
8605
3e322b77
RH
8606 * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
8607 TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
8608 cris_trampoline_init): New.
8609 * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
8610 cris_asm_trampoline_template.
8611 (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
8612 adjust for target hook parameters.
8613
956c97fc
RH
8614 * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
8615
98689f5e
RH
8616 * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
8617 TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
8618 fr30_trampoline_init): New.
8619 * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
8620 fr30_asm_trampoline_template.
8621 (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
8622 adjust for target hook parameters.
8623
e9d5fdb2
RH
8624 * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
8625 (frv_trampoline_init): Rename from frv_initialize_trampoline;
8626 make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
8627 * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
8628 * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
8629
9f6ef043
RH
8630 * config/h8300/h8300.c (h8300_trampoline_init): New.
8631 (TARGET_TRAMPOLINE_INIT): New.
8632 * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
8633 to h8300_trampoline_init and adjust for hook parameters.
8634
2a1211e5
RH
8635 * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
8636 * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
8637 (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
8638 make static; adjust for hook parameters.
8639 * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
8640
f4a33d37
RH
8641 * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8642 (TARGET_TRAMPOLINE_INIT): New.
8643 (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
8644 * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
8645 iq2000_asm_trampoline_template.
8646 (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
8647 (TRAMPOLINE_CODE_SIZE): New.
8648 (TRAMPOLINE_SIZE): Use it.
8649 (TRAMPOLINE_ALIGNMENT): Follow Pmode.
8650
229fbccb
RH
8651 * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
8652 * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
8653 (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
8654 adjust for hook parameters.
8655 * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
8656
1548bf05
RH
8657 * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
8658 (m32r_trampoline_init): New.
8659 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
8660 m32r_trampoline_init.
8661
0d7e5af1
RH
8662 * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
8663 (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
8664 make static; update for hook parameters.
8665 * config/m68hc11/m68hc11-protos.h: Update.
8666 * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
8667
71e0af3c
RH
8668 * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8669 (TARGET_TRAMPOLINE_INIT): New.
8670 (mcore_function_value): Fix typo.
8671 (mcore_asm_trampoline_template, mcore_trampoline_init): New.
afbd0665 8672 * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
71e0af3c
RH
8673 to mcore_asm_trampoline_template.
8674 (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
8675
87138d8d
RH
8676 * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
8677 * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
8678 (mep_trampoline_init): Rename from mep_init_trampoline; make static;
8679 update for hook parameters.
8680 * config/mep/mep-protos.h (mep_init_trampoline): Remove.
8681
a1d29c8c
RH
8682 * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
8683 mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
8684 mips_trampoline_init): New.
8685 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
8686 mips_asm_trampoline_template.
8687 (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
8688 update for hook parameters.
8689
dbbdb385
RH
8690 * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8691 (TARGET_TRAMPOLINE_INIT): New.
8692 (mmix_trampoline_size): Remove.
8693 (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
8694 make static. Remove out-of-date tetra vs octa comment.
8695 (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
8696 make static; update for hook parameters.
8697 * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
8698 (INITIALIZE_TRAMPOLINE): Remove.
8699 (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
8700 (TRAMPOLINE_ALIGNMENT): New.
8701 * gcc/config/mmix/mmix-protos.h: Update.
8702
bdeb5f0c
RH
8703 * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
8704 mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
8705 mn10300_trampoline_init): New.
8706 * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
8707 mn10300_asm_trampoline_template.
8708 (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
8709
4601494d
RH
8710 * config/moxie/moxie.c (moxie_static_chain,
8711 moxie_asm_trampoline_template, moxie_trampoline_init,
8712 TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
8713 TARGET_TRAMPOLINE_INIT): New.
8714 * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
8715 moxie_trampoline_init.
8716 (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
8717 (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
8718
859c146c
RH
8719 * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
8720 pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
8721 pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
8722 pa_trampoline_adjust_address): New.
8723 * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
8724 pa_asm_trampoline_template.
8725 (TRAMPOLINE_ALIGNMENT): New.
8726 (TRAMPOLINE_CODE_SIZE): Move to pa.c.
8727 (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
8728 adjust for hook parameters.
8729 (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
8730
8dd65c37
RH
8731 * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
8732 (TARGET_TRAMPOLINE_INIT): New.
8733 * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
8734 (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
8735
454da451
RH
8736 * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
8737
44d43e53
RH
8738 * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
8739 * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
8740 (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
8741 make static; adjust parameters for the hook.
8742 * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
8743
b81ecf6f
RH
8744 * config/s390/s390.c (s390_asm_trampoline_template): Rename from
8745 s390_trampoline_template; make static.
8746 (s390_trampoline_init): Rename from s390_initialize_trampoline;
8747 make static; adjust for target hook.
8748 (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
8749 * config/s390/s390-protos.h: Remove trampoline decls.
8750 * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
8751 (TRAMPOLINE_TEMPLATE): Remove.
8752 (TRAMPOLINE_ALIGNMENT): New.
8753
2f5bb28c
RH
8754 * config/score/score-protos.h (score_initialize_trampoline): Remove.
8755 * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8756 (TARGET_TRAMPOLINE_INIT): New.
8757 (score_asm_trampoline_template): New.
8758 (score_trampoline_init): Rename from score_initialize_trampoline;
8759 make static; adjust for hook parameters.
8760 * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
8761 score[37]_asm_trampoline_template.
8762 (INITIALIZE_TRAMPOLINE): Remove.
8763 * config/score/score3.c (score3_asm_trampoline_template): New.
8764 (score3_trampoline_init): Rename from score3_initialize_trampoline;
8765 adjust for target hook.
8766 * config/score/score7.c (score7_asm_trampoline_template): New.
8767 (score7_trampoline_init): Rename from score7_initialize_trampoline;
8768 adjust for target hook.
8769 * config/score/score3.h, config/score/score7.h: Update.
8770
994322ef
RH
8771 * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
8772 * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
8773 (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
8774 (sh_trampoline_init): Rename from sh_initialize_trampoline;
8775 make static; adjust for target hook parameters.
8776 (sh_trampoline_adjust_address): New.
8777 * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
8778 (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
8779
809e78cc
RH
8780 * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
8781 (sparc32_initialize_trampoline): Rename from
8782 sparc_initialize_trampoline; make static; replace tramp parameter
8783 with m_tramp and update memory accesses.
8784 (sparc64_initialize_trampoline): Similarly.
8785 (sparc_trampoline_init): New.
8786 * config/sparc/sparc-protos.h: Remove trampoline decls.
8787 * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
8788 * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
8789
a85b4c91
RH
8790 * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
8791 (array_to_constant): Make ARR parameter const.
8792 (spu_trampoline_init): Rename from spu_initialize_trampoline;
8793 make static; update for hook parameters.
8794 * config/spu/spu-protos.h: Update decls.
8795 * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
8796
fb8d0fac
RH
8797 * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
8798 from xstormy16_initialize_trampoline; make static; update for
8799 hook parameters.
8800 (TARGET_TRAMPOLINE_INIT): New.
8801 * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
8802
e0c6c273
RH
8803 * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8804 (TARGET_TRAMPOLINE_INIT): New.
8805 (v850_can_eliminate): Make static.
8806 (v850_asm_trampoline_template, v850_trampoline_init): New.
8807 * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
8808 v850_asm_trampoline_template.
8809 (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
8810 and adjust for target hook parameters.
8811
3814318d
RH
8812 * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8813 (TARGET_TRAMPOLINE_INIT): New.
8814 (vax_asm_trampoline_template, vax_trampoline_init): New.
8815 * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
8816 vax_asm_trampoline_template.
8817 (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
8818
3c1229cb
RH
8819 * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
8820 (TARGET_TRAMPOLINE_INIT): New.
8821 (xtensa_asm_trampoline_template): Rename from
8822 xtensa_trampoline_template; make static.
8823 (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
8824 make static; update for hook parameters.
8825 * config/xtensa/xtensa-protos.h: Remove trampoline decls.
8826 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
8827 (INITIALIZE_TRAMPOLINE): Remove.
8828
3452586b
RH
8829 * config/i386/i386.c (ix86_function_regparm): Do not issue an
8830 error for nested functions with regparm=3.
8831 (ix86_compute_frame_layout): Adjust frame pointer offset for
8832 ix86_static_chain_on_stack.
8833 (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
8834 (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
8835 don't reset to UNITS_PER_WORD.
8836 (ix86_emit_leave): Adjust ix86_cfa_state.
8837 (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
8838 (ix86_static_chain): New.
8839 (ix86_trampoline_init): Rename from x86_initialize_trampoline;
8840 make static; update for target hook parameters; use ix86_static_chain.
8841 (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
8842 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
8843 (INITIALIZE_TRAMPOLINE): Remove.
8844 (TRAMPOLINE_SIZE): Use 24 for 64-bit.
8845 (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
8846 to the end. Add static_chain_on_stack.
8847 (ix86_static_chain_on_stack): New.
8848
e0601576
RH
8849 * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
8850 (m68k_output_mi_thunk): Don't use static_chain_rtx.
8851 (m68k_trampoline_init): New.
8852 * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
8853 m68k_trampoline_init and adjust for hook parameters.
8854 * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
8855 (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
8856
39dbcfc3
JJ
88572009-09-22 Jakub Jelinek <jakub@redhat.com>
8858
9190e0a9
JJ
8859 * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
8860 for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
8861
39dbcfc3
JJ
8862 * reload1.c (reload): Call wrap_constant when substituting
8863 reg for equiv inside of DEBUG_INSNs.
8864
65f753a0
JJ
8865 PR bootstrap/41405
8866 * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
8867 add_call_src_coords_attributes, add_high_low_attributes,
8868 gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
8869 gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
8870 dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
8871 when -gdwarf-2 -gstrict-dwarf.
8872 (loc_list_from_tree): Likewise. Avoid using DWARF4 additions when
8873 -gdwarf-[23] -gstrict-dwarf.
8874 (address_of_int_loc_descriptor, loc_descriptor,
8875 loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
8876 DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
8877 * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
8878
f61e18ec
RG
88792009-09-22 Richard Guenther <rguenther@suse.de>
8880
8881 PR tree-optimization/41428
8882 * tree-ssa-ccp.c (ccp_fold_stmt): New function.
8883 (ccp_finalize): Pass it to substitute_and_fold.
8884
ff7ffb8f
RG
88852009-09-22 Richard Guenther <rguenther@suse.de>
8886
8887 * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
8888 (substitute_and_fold): Adjust prototype.
8889 * tree-vrp.c (vrp_evaluate_conditional): Make static.
8890 (simplify_stmt_using_ranges): Likewise.
8891 (fold_predicate_in): Move here from tree-ssa-propagate.c.
8892 (vrp_fold_stmt): New function.
8893 (vrp_finalize): Pass it to substitute_and_fold.
8894 * tree-flow.h (vrp_evaluate_conditional): Remove.
8895 (simplify_stmt_using_ranges): Likewise.
8896 * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
8897 * tree-ssa-copy.c (fini_copy_prop): Likewise.
8898 * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
8899 member.
8900 (fold_predicate_in): Move to tree-vrp.c.
8901 (substitute_and_fold): Use the callback instead of calling into
8902 tree-vrp.c functions directly.
8903
40742b42
JJ
89042009-09-22 Jakub Jelinek <jakub@redhat.com>
8905
8b659ecb
JJ
8906 * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
8907 comparison warning on rs6000.
8908
40742b42
JJ
8909 PR middle-end/41429
8910 * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
8911 GIMPLE_EH_MUST_NOT_THROW cleanup.
8912 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
8913
c9c80434
JH
89142009-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
8915
8916 PR middle-end/41260
8917 * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
8918 * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
8919 LIB_SPEC for darwin10 and later since it always uses the unwinder in
8920 libSystem which is derived from the gcc 4.2.1 unwinder.
8921
e0fd7469
DK
89222009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
8923
8924 PR middle-end/41357
8925 * varasm.c (default_encode_section_info): Copy TLS model into
8926 sym_ref flags regardless of backend support for TLS, for all
8927 model types except TLS_MODEL_EMULATED.
8928
cf09842e
DK
89292009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
8930
8931 PR bootstrap/41404
8932 * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
8933 we can handle it correctly.
8934
c1493544
GP
89352009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
8936
8937 * doc/install.texi (os2): Remove section.
8938
2f55829e
GP
89392009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
8940
8941 * doc/standards.texi (Objective-C): Adjust two URLs.
8942
d9334061
GS
89432009-09-21 Giuseppe Scrivano <gscrivano@gnu.org>
8944
be123439
UB
8945 * tree-tailcall.c (process_assignment): Don't check if a
8946 multiplication or an addition are already present.
d9334061
GS
8947 (find_tail_calls): Combine multiple additions and multiplications.
8948 (adjust_accumulator_values): Emit accumulators.
8949
4b51caf2
KT
89502009-09-21 Kai Tietz <kai.tietz@onevision.com>
8951
8952 * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
8953 xmm register restore.
8954
5b5fba56
JH
89552009-09-21 Jan Hubicka <jh@suse.cz>
8956
8957 * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
8958 (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
8959 restore at the end.
8960
473ebbc5
EB
89612009-09-21 Eric Botcazou <ebotcazou@adacore.com>
8962
8963 * stor-layout.c (layout_type): Remove obsolete code.
8964
1dbb24a3
L
89652009-09-20 H.J. Lu <hongjiu.lu@intel.com>
8966
8967 PR middle-end/41395
8968 * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
8969
ca75b926
KG
89702009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8971
8972 PR middle-end/30789
8973 * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
8974 (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
8975 (fold_builtin_2, do_mpc_arg1): Update accordingly.
8976 * fold-const.c (const_binop): Likewise.
8977 * real.h (do_mpc_arg2): Update prototype.
8978
c4a80a2d
JH
89792009-09-20 Jan Hubicka <jh@suse.cz>
8980
8981 * dwarf2out.c (add_const_value_attribute): Return true if successful.
be123439
UB
8982 (add_location_or_const_value_attribute): Rewrite using
8983 loc_list_from_tree.
c4a80a2d
JH
8984 (tree_add_const_value_attribute): Return true if successful.
8985 (tree_add_const_value_attribute_for_decl): Likewise.
8986
8987 * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
8988 (loc_descriptor): ... here;
8989 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
8990 (cst_pool_loc_descr): Break out from ...; do not reffer constant
8991 pool items that was not marked for output.
8992 (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
8993 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
8994 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
8995 handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
8996 IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
8997 CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
8998 DW_OP_stack_value to get address of items that are not available
8999 as addresses.
9000 (dw_loc_list): Handle single element lists correctly.
9001
0b1d7060
KT
90022009-09-20 Kai Tietz <kai.tietz@onevision.com>
9003 Pascal Obry <obry@adacore.com>
9004
9005 * unwind-dw2-fde.c (classify_object_over_fdes):
9006 Cast the constant 1 to _Unwind_Ptr.
9007 (add_fdes): Likewise.
9008 (linear_search_fdes): Likewise.
9009
d0566a63
EB
90102009-09-20 Eric Botcazou <ebotcazou@adacore.com>
9011
9012 * stor-layout.c (set_sizetype): Avoid useless type copy.
9013
49576e25
RS
90142009-09-20 Richard Sandiford <rdsandiford@googlemail.com>
9015
9016 * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
9017 feature check.
9018 (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
9019 * configure, config.in: Regenerate.
9020 * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
9021 DW_EH_PE_absptr.
9022 * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
9023 (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT
9024 for global data if the output could be used in a shared library.
9025 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
9026 to 0 if TARGET_WRITABLE_EH_FRAME.
9027
63c6c7e0
KT
90282009-09-20 Paolo Bonzini <bonzini@gnu.org>
9029
f8e25a2a 9030 PR rtl-optimization/39886
63c6c7e0
KT
9031 * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
9032 just when insn is equal to BB_END (bb).
9033
b53da244
AN
90342009-09-19 Adam Nemet <anemet@caviumnetworks.com>
9035
9036 * config/mips/mips.opt (mrelax-pic-calls): New option.
9037 * config/mips/mips.c (mips_strip_unspec_address): Move it up in
9038 the file.
9039 (mips_unspec_call): Change "unspec_call" expander into this.
9040 (mips_strip_unspec_call): New function.
9041 (mips_got_load): Call mips_unspec_call instead of
9042 gen_unspec_call<mode>.
9043 (mips16_build_call_stub): Fix comment for fp_code. Adjust call to
9044 MIPS_CALL.
9045 (mips_cfg_in_reorg): New function.
9046 (mips16_lay_out_constants): Use it to decide whether to call
9047 CFG-aware insn splitting.
9048 (r10k_insert_cache_barriers): Move CFG set-up code from here to
9049 mips_reorg. Move DF set-up code from here ...
9050 (mips_df_reorg): ... to here. Call r10k_insert_cache_barriers
9051 from here.
9052 (mips_reorg): Call mips_df_reorg instead of
9053 r10k_insert_cache_barriers. Move CFG set-up code here from
9054 r10k_insert_cache_barriers.
9055 (mips_call_expr_from_insn): New function.
9056 (mips_pic_call_symbol_from_set): Likewise.
9057 (mips_find_pic_call_symbol): Likewise.
9058 (mips_annotate_pic_call_expr): Likewise.
9059 (mips_get_pic_call_symbol): Likewise.
9060 (mips_annotate_pic_calls): Likewise.
9061 (mips_override_options): Disable -mrelax-pic-calls unless PIC
9062 calls are used.
9063 (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
9064 * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
9065 * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
9066 directive.
9067 * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
9068 (unspec_call<mode>): Remove it.
9069 (sibcall_internal, sibcall_value_internal,
9070 sibcall_value_multiple_internal, call_internal, call_split,
9071 call_value_internal, call_value_split,
9072 call_value_multiple_internal, call_value_multiple_split): Pass
9073 SIZE_OPNO to MIPS_CALL.
9074 (call_internal_direct, call_direct_split,
9075 call_value_internal_direct, call_value_direct_split): Pass -1 as
9076 SIZE_OPNO to MIPS_CALL.
9077 * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
9078 * configure: Regenerate.
9079 * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
9080 and -mno-relax-pic-calls.
be123439 9081 (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
b53da244 9082
1d93c860
RW
90832009-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9084
9085 PR bootstrap/35619
9086 * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
9087 in the directory this rule is called from, rather than the
9088 toplevel 'gcc' directory, to fix in-tree build.
9089
74dc6a11
CD
90902009-09-19 Chris Demetriou <cgd@google.com>
9091
9092 PR preprocessor/28435:
9093 * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
9094 to cpplib that the preprocessor output is needed.
9095
bc8b6c98
JJ
90962009-09-19 Jakub Jelinek <jakub@redhat.com>
9097
e0f3e75b
JJ
9098 * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
9099 *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
9100 *return_and_restore_fpregs_<mode>,
9101 *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
9102
bc8b6c98
JJ
9103 PR bootstrap/41397
9104 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
9105 instead of assuming it has always a REG inside of it.
9106
ca94da48
GP
91072009-09-18 Gerald Pfeifer <gerald@pfeifer.com>
9108
9109 * config/freebsd.h: Update comment on types.
9110 (WINT_TYPE): Define.
9111
5f5babf1
JM
91122009-09-18 Jason Merrill <jason@redhat.com>
9113
9114 * c.opt: Add -fno-deduce-init-list.
9115
eb99f777
NV
91162009-09-18 Neil Vachharajani <nvachhar@google.com>
9117
9118 * value-prof.c (interesting_stringop_to_profile_p): Added output
9119 argument to indicate which parameter is the size parameter.
9120 * value-prof.c (gimple_stringop_fixed_value): Use
9121 INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
9122 * value-prof.c (gimple_stringops_transform): Update call sites to
9123 INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
eb99f777 9124
2a79f8e4
UB
91252009-09-18 Uros Bizjak <ubizjak@gmail.com>
9126
9127 PR target/38288
9128 From David Binderman <dcb314@hotmail.com>:
9129 * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
9130 local variable f. Remove stale comments.
9131 (ix86_compute_frame_layout): Remove useless local variable total_size.
9132 Remove #if 0'd code.
9133 (legitimate_address_p): Remove useless local variables
9134 reason_rtx and reason.
9135 (ix86_split_copysign_const): Remove useless local variable op1.
9136 (scale_counter): Remove useless local variable piece_size_mask.
9137
2b5bcdee
JJ
91382009-09-18 Jakub Jelinek <jakub@redhat.com>
9139
9140 * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
9141 output decl.
9142
43eb8947
MH
91432009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at>
9144
9145 PR target/40913
9146 * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
9147
591a8495
JJ
91482009-09-17 Jakub Jelinek <jakub@redhat.com>
9149
9150 * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
9151 TYPE_STUB_DECL.
9152
417b3023
AO
91532009-09-17 Alexandre Oliva <aoliva@redhat.com>
9154
9155 * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
9156 DW_OP_implicit_value even without dwarf_version 4.
9157
e7f373fa
JH
91582009-09-17 Jan Hubicka <jh@suse.cz>
9159
9160 * dwarf2out.c: Include tree-pass.h and gimple.h.
9161 (loc_list_plus_const): New function.
9162 (loc_descriptor_from_tree_1): Rename to ...
9163 (loc_descriptor_from_tree): ... remove original.
9164 (loc_list_from_tree): New function.
9165 (add_AT_location_description): Accept location list.
9166 (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
9167 (concatn_mem_loc_descriptor): Remove.
9168 (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
9169 returning NULL.
9170 (secname_for_decl): Move up.
9171 (hidden_reference_p): New function; break out from ...
9172 (loc_by_refernece): ... here; move up.
9173 (dw_loc_list): New function.
9174 (single_element_loc_list): New function.
9175 (single_element_loc_list_p): New function.
9176 (add_loc_descr_to_each): New function.
9177 (add_loc_list): New function.
9178 (loc_descr_from_tree): Make wraper of loc_list_from_tree.
9179 (loc_list_from_tree): Reroganized from loc_descr_from_tree;
9180 add diagnostics why expansion failed.
9181 (add_location_or_const_value_attribute): Support location lists.
9182 (add_bound_info): Likewise.
9183 (descr_info_loc): Update call of loc_descriptor_from_tree.
9184 (gen_variable_die): Work on location lists.
9185 * final.c (pass_final): Add dump file.
9186 * Makefile.in (dwarf2out.o): Add new dependencies.
9187
d2da4af2
JJ
91882009-09-17 Janis Johnson <janis187@us.ibm.com>
9189
9190 PR c/41049
9191 * real.c decimal_from_integer, decimal_integer_string): New.
9192 (real_from_integer): Use them as special case for decimal float.
9193 * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
9194 (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
9195 Do not append zero after the decimal point in string to convert.
9196
98f3eb1f
AM
91972009-09-17 Alexander Monakov <amonakov@ispras.ru>
9198
9199 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
9200 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
9201
07ffa034
MJ
92022009-09-17 Martin Jambor <mjambor@suse.cz>
9203
9204 * common.opt (fipa-sra): New switch.
9205 * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
9206 * timevar.def (TV_IPA_SRA): New timevar.
9207 * params.def (ipa-sra-ptr-growth-factor): New parameter.
9208 * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
9209 * tree-sra.c: Include cgraph.c.
9210 (enum sra_mode): Added SRA_MODE_EARLY_IPA.
9211 (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
9212 and grp_not_necessarilly_dereferenced.
9213 (func_param_count): New variable.
9214 (encountered_apply_args): New variable.
9215 (bb_dereferences): New variable.
9216 (final_bbs): New variable.
9217 (no_accesses_representant): New variable.
9218 (no_accesses_p): New function.
9219 (dump_access): Dump the new fields.
9220 (sra_initialize): Set encountered_apply_args to false.
9221 (get_ssa_base_param): New function.
9222 (mark_parm_dereference): New function.
9223 (create_access): Caring for INIDRECT_REFs and different handling of
9224 varialble length accesses in early IPA SRA. Store the stmt - a new
9225 parameter - to the new access.
9226 (build_access_from_expr_1): New parameter stmt, passed to
9227 create_access. Handle INDIRECT_REFs.
9228 (build_access_from_expr): Pass the current statement to
9229 build_access_from_expr_1.
9230 (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
9231 passes.
9232 (build_accesses_from_assign): Pass the current statement to
9233 build_access_from_expr_1. Do not create assign links in IPA-SRA.
9234 (scan_function): Call handle_ssa_defs on phi nodes. Set bits in
9235 final_bbs when necessary. Check for calls to __builtin_apply_args.
9236 Fixup EH info if anythng was changed.
9237 (is_unused_scalar_param): New function.
9238 (ptr_parm_has_direct_uses): New function.
9239 (find_param_candidates): New function.
9240 (mark_maybe_modified): New function.
9241 (analyze_modified_params): New function.
9242 (propagate_dereference_distances): New function.
9243 (dump_dereferences_table): New function.
9244 (analyze_caller_dereference_legality): New function.
9245 (unmodified_by_ref_scalar_representative): New function.
9246 (splice_param_accesses): New function.
9247 (decide_one_param_reduction): New function.
9248 (enum ipa_splicing_result): New type.
9249 (splice_all_param_accesses): New function.
9250 (get_param_index): New function.
9251 (turn_representatives_into_adjustments): New function.
9252 (analyze_all_param_acesses): New function.
9253 (get_replaced_param_substitute): New function.
9254 (get_adjustment_for_base): New function.
9255 (replace_removed_params_ssa_names): New function.
9256 (sra_ipa_reset_debug_stmts): New function.
9257 (sra_ipa_modify_expr): New function.
9258 (sra_ipa_modify_assign): New function.
9259 (convert_callers): New function.
9260 (modify_function): New function.
9261 (ipa_sra_preliminary_function_checks): New function.
9262 (ipa_early_sra): New function.
9263 (ipa_early_sra_gate): New function.
9264 (pass_early_ipa_sra): New variable.
9265 * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
2a79f8e4 9266
040c6d51
MM
92672009-09-17 Michael Matz <matz@suse.de>
9268
9269 PR middle-end/41347
9270 * tree.c (build_type_attribute_qual_variant): Export.
9271 * tree.h (build_type_attribute_qual_variant): Declare.
9272 * tree-inline.c (remap_type_1): Use it to build variants with
9273 the original qualifiers and attributes.
9274
10e154df
AK
92752009-09-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9276
9277 * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
9278 without a fallthrough edge.
9279
402f2db8
DD
92802009-09-16 DJ Delorie <dj@redhat.com>
9281
9282 * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
9283 chip and ignore the "fast_interrupt" attribute if so.
9284
27b4689f
RH
92852009-09-16 Richard Henderson <rth@redhat.com>
9286
9287 PR middle-end/41360
9288 * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
9289 barrier fix.
9290
fe663f4e
RH
92912009-09-16 Richard Henderson <rth@redhat.com>
9292
9293 PR target/41246
9294 * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
9295 is set only if DECL_NO_STATIC_CHAIN is unset.
9296 * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
9297 (FOR_EACH_NEST_INFO): New.
9298 (walk_all_functions): Use it.
9299 (finalize_nesting_tree): Likewise.
9300 (unnest_nesting_tree): Likewise.
9301 (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
9302 (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
9303 (convert_gimple_call): Early out if gimple_call_chain already set.
9304 (convert_all_function_calls): Iterate until no new functions
9305 require a static chain.
9306 (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
9307 when building a trampoline. Use dump_function_to_file instead
9308 of dump_function.
9309 (lower_nested_functions): Open dump_file. Validate that decls
9310 that have DECL_NO_STATIC_CHAIN from the front end don't have that
9311 bit reset by this pass.
9312
9b87db3c
MM
93132009-09-16 Michael Matz <matz@suse.de>
9314
9315 PR fortran/41212
9316 * tree.h (struct tree_decl_common): Add decl_restricted_flag,
9317 shorten decl_common_unused.
9318 (DECL_RESTRICTED_P): New accessor.
9319 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
9320 to disambiguate marked decls and restrict pointers.
9321
79876307
RH
93222009-09-16 Richard Henderson <rth@redhat.com>
9323
9324 PR middle-end/41360
9325 * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
9326
e038c37b
JJ
93272009-09-16 Jakub Jelinek <jakub@redhat.com>
9328
9329 * integrate.c (set_block_abstract_flags): Call
9330 set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
9331
4075e7e8
RG
93322009-09-16 Richard Guenther <rguenther@suse.de>
9333
9334 PR middle-end/34011
9335 * tree-flow-inline.h (may_be_aliased): Compute readonly variables
9336 as non-aliased.
9337
21d05694
DD
93382009-09-16 DJ Delorie <dj@redhat.com>
9339 Kaz Kojima <kkojima@gcc.gnu.org>
9340
9341 * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
9342 (sh_expand_prologue): Update calls to output_stack_adjust.
2a79f8e4 9343 (sh_expand_epilogue): Likewise.
21d05694 9344
e484d1f0
AN
93452009-09-15 Adam Nemet <anemet@caviumnetworks.com>
9346
9347 PR bootstrap/41349
9348 * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
9349 trying to limit the extent of searches in the insn stream.
9350
d7a9e7c5
NF
93512009-09-15 Nathan Froyd <froydnj@codesourcery.com>
9352 Jakub Jelinek <jakub@redhat.com>
9353
9354 PR target/41175
9355 PR target/40677
9356 * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
9357 problem.
9358 (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
9359 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
9360 (rs6000_savres_strategy): Always save FP registers inline if the
9361 target doesn't support hardware double-precision. Set the above
9362 bits in return value when needed.
9363 (rs6000_savres_routine_sym): Fix computation for cache selector.
9364 Mark the generated symbol as a function. Rename exitp argument to
9365 lr. Move code for determining the name of the symbol...
9366 (rs6000_savres_routine_name): ...here. New function. Add cases for
9367 getting the names right on AIX and 64-bit Linux.
9368 (savres_routine_name): New variable.
9369 (rs6000_make_savres_rtx): Rename exitp argument to lr. Don't assert
9370 lr isn't set when savep. Use r12 resp. r1 instead of r11 depending
9371 on what the target routine uses as a base register. If savep && lr
9372 describe saving of r0 into memory slot.
9373 (rs6000_emit_prologue): Correct use of call_used_regs. Fix out of
9374 line calls for AIX ABI.
9375 (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
9376 determine FP save/restore functions.
9377 (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
9378 frame_reg_rtx != sp_reg_rtx. Use gen_add3_insn instead of
9379 gen_addsi3.
9380 (rs6000_emit_epilogue): Adjust computation of restore_lr.
9381 Duplicate restoration of LR and execute the appropriate one
9382 depending on whether GPRs are being restored inline. Set r11 from
9383 offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
9384 r11, adjust sp_offset. Use gen_add3_insn instead of gen_addsi3.
9385 Fix out of line calls for AIX ABI.
9386 * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
9387 New insn.
9388 * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
9389 register 11.
9390 (*restore_gpregs_spe): Likewise.
9391 (*return_and_restore_gpregs_spe): Likewise.
9392 * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
9393 Define to empty string unconditionally.
9394 * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
9395 Define to empty string unconditionally.
9396 (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
9397 !TARGET_64BIT.
9398
c7d68c96
JH
93992009-09-15 Jan Hubicka <jh@suse.cz>
9400
9401 * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
9402 * params.def (inline-insns-auto): Likewise.
9403
aa9dc284
MJ
94042009-09-15 Martin Jambor <mjambor@suse.cz>
9405
9406 * ipa-inline.c (estimate_function_body_sizes): Dump info about
9407 individual statements only at TDF_DETAILS dump level. Format
9408 source for 80 characters per line.
9409
94102009-09-15 Christian Bruel <christian.bruel@st.com>
56550f23 9411
2a79f8e4
UB
9412 * regrename.c (do_replace): Update REG_DEAD notes.
9413
0601d0cf
RE
94142009-09-15 Revital Eres <eres@il.ibm.com>
9415
9416 * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
9417 * targhooks.c (default_builtin_support_vector_misalignment):
9418 New builtin function.
9419 * targhooks.h (default_builtin_support_vector_misalignment):
9420 Declare.
9421 * target.h (builtin_support_vector_misalignment):
9422 New field in struct gcc_target.
9423 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
9424 new builtin function.
9425 * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
9426 Define.
9427 * config/rs6000/rs6000.c
9428 (rs6000_builtin_support_vector_misalignment): New function.
9429 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
9430
e5e44796
JZ
94312009-09-15 Jie Zhang <jie.zhang@analog.com>
9432
9433 * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
9434 instead of INSN_P.
9435 (bfin_optimize_loop): Likewise.
9436 (bfin_gen_bundles): Likewise.
9437 (workaround_speculation): Likewise.
9438 (find_load): Return NULL_RTX for debug_insn.
9439
6dac2e8e
UB
94402009-09-15 Uros Bizjak <ubizjak@gmail.com>
9441
9442 * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
9443 (sminsf3): Ditto.
9444
d839f1eb
DD
94452009-09-14 DJ Delorie <dj@redhat.com>
9446
9447 * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
6dac2e8e
UB
9448 * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
9449 VLIW mode.
d839f1eb 9450
1c384bf1 94512009-09-14 Richard Henderson <rth@redhat.com>
6dac2e8e 9452 Jakub Jelinek <jakub@redhat.com>
1c384bf1
RH
9453
9454 * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
9455 * cfgbuild.c (make_edges): Handle asm goto.
9456 * cfglayout.c (fixup_reorder_chain): Likewise.
9457 * cfgrtl.c (patch_jump_insn): Likewise.
9458 * gimple-pretty-print.c (dump_gimple_asm): Likewise.
9459 * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
9460 (gimple_build_asm_vec): Add and use labels parameter.
9461 (gimple_build_asm): Remove.
9462 (walk_gimple_asm): Walk labels too.
9463 * gimple.def (GIMPLE_ASM): Update docs.
9464 * gimple.h: Update decls.
9465 (struct gimple_statement_asm): Change nc to use unsigned char;
9466 add nl member.
9467 (gimple_asm_nlabels): New.
9468 (gimple_asm_label_op, gimple_asm_set_label_op): New.
9469 * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
9470 into gimple_build_asm_vec.
9471 * jump.c (mark_jump_label_asm): New.
9472 (mark_jump_label): Use it.
9473 (redirect_jump_1): Handle asm goto.
9474 (invert_jump_1): Soft fail if X is null.
9475 * recog.c (extract_asm_operands): New.
9476 (asm_noperands): Use it; handle asm labels.
9477 (decode_asm_operands): Use extract_asm_operands.
9478 (asm_operand_ok): Properly handle empty string.
9479 * reg-stack.c (get_asm_operands_in_out): Rename from
9480 get_asm_operand_n_inputs; use extract_asm_operands; return both
9481 inputs and outputs by reference; update all callers.
9482 * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
9483 * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
9484 (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
9485 (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
9486 (extract_asm_operands): Declare.
9487 * stmt.c (expand_asm_operands): Add and use labels parameter.
9488 (check_unique_operand_names): Likewise.
9489 (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
9490 (expand_asm_stmt): Handle asm labels.
9491 * tree-cfg.c (make_gimple_asm_edges): New.
9492 (make_edges): Use it.
9493 (cleanup_dead_labels): Handle asm labels.
9494 (is_ctrl_altering_stmt): Likewise.
9495 (gimple_redirect_edge_and_branch): Likewise.
9496 * tree.def (ASM_EXPR): Add 5th operand.
9497 * tree.h (ASM_LABELS): New.
9498 (resolve_asm_operand_names): Update decl.
9499
9500 * c-parser.c (c_parser_asm_statement): Parse asm goto.
9501 (c_parser_asm_goto_operands): New.
9502 * c-tree.h (build_asm_expr): Update decl.
9503 * c-typeck.c (build_asm_expr): Add and use labels parameter.
9504 * doc/extend.texi: Document asm goto.
9505
1d65f45c
RH
95062009-09-14 Richard Henderson <rth@redhat.com>
9507
9508 * except.h: Update declarations.
9509 (struct pointer_map_t): Forward declare.
9510 (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
9511 (struct eh_landing_pad_d, eh_landing_pad): New.
9512 (struct eh_catch_d, eh_catch): New.
9513 (struct eh_region_d): Remove next_region_sharing_label, aka,
9514 label, tree_label, landing_pad, post_landing_pad, resume,
9515 may_contain_throw. Rename region_number to index. Remove
9516 u.eh_catch, u.eh_throw. Rename u.eh_try.eh_catch to first_catch.
9517 Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
9518 (VEC(eh_landing_pad,gc)): New.
9519 (struct eh_status): Remove last_region_number. Add lp_array,
9520 throw_stmt_table, ttype_data, ehspec_data.
9521 (ehr_next, FOR_ALL_EH_REGION_AT): New.
9522 (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
9523 * except.c (lang_protect_cleanup_actions): Return tree.
9524 (struct ehl_map_entry): Remove.
9525 (init_eh_for_function): Push zero entries for region and lp_array.
9526 (gen_eh_region): Add to region_array immediately.
9527 (gen_eh_region_catch): Operate on eh_catch objects.
9528 (gen_eh_landing_pad): New.
9529 (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
9530 (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
9531 (get_eh_region_from_number, get_eh_region_from_number_fn): New.
9532 (get_eh_landing_pad_from_number_fn): New.
9533 (get_eh_landing_pad_from_number): New.
9534 (get_eh_region_from_lp_number_fn): New.
9535 (get_eh_region_from_lp_number): New.
9536 (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
9537 (get_exception_pointer, get_exception_filter): Remove.
9538 (collect_eh_region_array, can_be_reached_by_runtime): Remove.
9539 (current_function_has_exception_handlers): Simplify.
9540 (bring_to_root, eh_region_replaceable_by_p): Remove.
9541 (replace_region, hash_type_list, hash_eh_region): Remove.
9542 (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
9543 (label_to_region_map, num_eh_regions): Remove.
9544 (get_next_region_sharing_label, must_not_throw_labels): Remove.
9545 (find_exception_handler_labels): Remove.
9546 (duplicate_eh_regions_0, find_prev_try): Remove.
9547 (struct duplicate_eh_regions_data): New.
9548 (duplicate_eh_regions_1): Rewrite.
9549 (duplicate_eh_regions): Return a pointer map instead of an
9550 integer offset.
9551 (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
9552 (redirect_eh_edge_to_label): Remove.
9553 (eh_region_outermost): Rewrite using eh_region pointers
9554 instead of integers.
9555 (add_ttypes_entry): Update for ttype_data move to eh_status.
9556 (add_ehspec_entry): Rewrite with VEC instead of varray.
9557 (assign_filter_values): Likewise. Export.
9558 (build_post_landing_pads, connect_post_landing_pads): Remove.
9559 (dw2_build_landing_pads): Rewrite to use lp_array.
9560 (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
9561 (sjlj_assign_call_site_values): Rewrite to use lp_array.
9562 (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
9563 (sjlj_mark_call_sites): Update for landing pad numbers.
9564 (finish_eh_generation): Rewrite.
9565 (gate_handle_eh): Do nothing for no eh tree.
9566 (pass_rtl_eh): Move up near finish_eh_generation.
9567 (remove_eh_landing_pad): New.
9568 (remove_eh_handler): Export.
9569 (remove_eh_region, remove_eh_handler_and_replace): Remove.
9570 (for_each_eh_label): Rewrite to use lp_array.
9571 (make_reg_eh_region_note): New.
9572 (make_reg_eh_region_note_nothrow_nononlocal): New.
9573 (insn_could_throw_p): New.
9574 (copy_reg_eh_region_note_forward): New.
9575 (copy_reg_eh_region_note_backward): New.
9576 (check_handled, add_reachable_handler): Remove.
9577 (reachable_next_level, foreach_reachable_handler): Remove.
9578 (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
9579 (get_eh_region_and_lp_from_rtx): New.
9580 (get_eh_region_from_rtx): New.
9581 (can_throw_internal_1, can_throw_external_1): Remove.
9582 (can_throw_internal): Use get_eh_region_from_rtx.
9583 (can_throw_external): Use get_eh_region_and_lp_from_rtx.
9584 (insn_nothrow_p, can_nonlocal_goto): New.
9585 (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
9586 (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
9587 (add_action_record): Use VEC not varray.
9588 (collect_one_action_chain): Update for eh_region changes.
9589 (convert_to_eh_region_ranges): Make static. Use VEC not varray.
9590 Use get_eh_region_and_lp_from_rtx.
9591 (gate_convert_to_eh_region_ranges): New.
9592 (pass_convert_to_eh_region_ranges): Use it.
9593 (push_uleb128, push_sleb128): Use VEC not varray.
9594 (output_one_function_exception_table): Likewise.
9595 (dump_eh_tree): Update for eh_region changes.
9596 (verify_eh_tree): Likewise.
9597 (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
9598 * tree-eh.c: Include target.h.
9599 (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
9600 Don't disallow GIMPLE_RESX; adjust argument check.
9601 (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
9602 (record_stmt_eh_region): Update for landing pad numbers;
9603 generate a landing pad if necessary.
9604 (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
9605 (remove_stmt_from_eh_lp_fn): Similarly.
9606 (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
9607 Update for lp numbers; don't special case missing throw_stmt_table.
9608 (lookup_expr_eh_lp): Similarly.
9609 (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
9610 (eh_seq, eh_region_may_contain_throw): New.
9611 (struct leh_state): Add ehp_region.
9612 (struct leh_tf_state): Remove eh_label.
9613 (emit_post_landing_pad): New.
9614 (emit_resx, emit_eh_dispatch): New.
9615 (note_eh_region_may_contain_throw): New.
9616 (frob_into_branch_around): Take eh_region not eh label;
9617 emit eh code into eh_seq.
9618 (honor_protect_cleanup_actions): Early exit for no actions. Don't
9619 handle EXC_PTR_EXPR, FILTER_EXPR. Use gimple_build_eh_must_not_throw,
9620 lower_eh_must_not_throw. Emit code to eh_seq.
9621 (lower_try_finally_nofallthru): Emit eh code to eh_seq.
9622 (lower_try_finally_onedest): Likewise.
9623 (lower_try_finally_copy): Likewise.
9624 (lower_try_finally_switch): Likewise.
9625 (lower_try_finally): Initialize ehp_region.
9626 (lower_catch): Update for eh_catch objects.
9627 (lower_eh_filter): Don't handle must_not_throw.
9628 (lower_eh_must_not_throw): New.
9629 (lower_cleanup): Don't set eh_label.
9630 (lower_eh_constructs_2): Resolve eh builtins.
9631 Handle GIMPLE_EH_MUST_NOT_THROW.
9632 (lower_eh_constructs): Initialize eh_region_may_contain_throw.
9633 Add eh_seq to the end of the function body.
9634 (make_eh_dispatch_edges): New.
9635 (make_eh_edge): Remove.
9636 (make_eh_edges): Simplify for landing pads.
9637 (redirect_eh_edge_1): New.
9638 (redirect_eh_edge): Use it.
9639 (redirect_eh_dispatch_edge): New.
9640 (stmt_could_throw_p): Use a switch. Allow RESX.
9641 (stmt_can_throw_external): Use lookup_stmt_eh_lp.
9642 (stmt_can_throw_internal): Likewise.
9643 (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
9644 (maybe_clean_or_replace_eh_stmt): Update for landing pads.
9645 (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
9646 (gate_refactor_eh): New.
9647 (pass_refactor_eh): Use it.
9648 (lower_resx, execute_lower_resx, pass_lower_resx): New.
9649 (lower_eh_dispatch, execute_lower_eh_dispatch): New.
9650 (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
9651 (remove_unreachable_handlers): Rename from
9652 tree_remove_unreachable_handlers; rewrite for landing pads;
9653 call remove_eh_handler directly.
9654 (remove_unreachable_handlers_no_lp): New.
9655 (unsplit_eh, unsplit_all_eh): New.
9656 (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
9657 (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
9658 (cleanup_empty_eh_unsplit): New.
9659 (cleanup_empty_eh): Rewrite.
9660 (cleanup_all_empty_eh): New.
9661 (execute_cleanup_eh): Rename from cleanup_eh. Remove unreachable
9662 handlers first. Use unsplit_all_eh, cleanup_all_empty_eh.
9663 (gate_cleanup_eh): New.
9664 (pass_cleanup_eh): Use it.
9665 (verify_eh_edges): Move later in file. Expect one EH edge.
9666 (verify_eh_dispatch_edge): New.
9667
9668 * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
9669 (gtype-desc.o): Add TARGET_H.
9670 (tree.o): Use EXCEPT_H, not except.h.
9671 (cfgbuild.o): Add EXPR_H.
9672 (GTFILES): Add vecprim.h.
9673 * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
9674 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
9675 * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
9676 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
9677 * calls.c (emit_call_1): Use make_reg_eh_region_note.
9678 * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
9679 calls to can_throw_internal.
9680 (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
9681 (make_edges): Don't handle RESX; use can_nonlocal_goto.
9682 * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
9683 (expand_gimple_stmt): Use make_reg_eh_region_note.
9684 (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
9685 (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
9686 or find_exception_handler_labels.
9687 * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX. Assert
9688 there is exacly one EH edge. Use can_nonlocal_goto and
9689 can_throw_internal.
9690 * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
9691 (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
9692 * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
9693 * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
9694 * dce.c (deletable_insn_p_1): Don't test may_trap_p.
9695 (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
9696 * dse.c (scan_insn): Use insn_could_throw_p.
9697 * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
9698 * expr.c (expand_expr_real): Use make_reg_eh_region_note.
9699 (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
9700 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
9701 EXC_PTR_EXPR or FILTER_EXPR.
9702 (tree_expr_nonzero_warnv_p): Likewise.
9703 * function.h: Include vecprim.h, not varray.h
9704 (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
9705 move ttype_data and ehspec_data members to struct eh_status; change
9706 action_record_data member to a VEC.
9707 * gcse.c (hash_scan_set): Use can_throw_internal.
9708 * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
9709 * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
9710 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
9711 (block_may_fallthru): Don't handle RESX_EXPR.
9712 * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
9713 (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
9714 (dump_gimple_stmt): Dump landing pad information with TDF_EH;
9715 handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
9716 * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
9717 GIMPLE_EH_DISPATCH, GIMPLE_RESX.
9718 (gimple_size): Likewise.
9719 (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
9720 (gimple_build_resx): Use gimple_build_with_ops.
9721 (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
9722 (is_gimple_val): Likewise.
9723 (is_gimple_stmt): Remove RESX_EXPR.
9724 * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
9725 (GIMPLE_RESX): Reorder with other EH constructs.
9726 * gimple.h (struct gimple_statement_eh_mnt): New.
9727 (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
9728 (gimple_eh_filter_must_not_throw): Remove.
9729 (gimple_eh_filter_set_must_not_throw): Remove.
9730 (gimple_eh_must_not_throw_fndecl): New.
9731 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
9732 (is_gimple_resx): New.
9733 * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
9734 Don't copy EH_FILTER_MUST_NOT_THROW.
9735 * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
9736 * ipa-inline.c (estimate_function_body_sizes): Don't try to
9737 handle must_not_throw_labels specially.
9738 * ipa-pure-const.c (check_call): Update debug statement for LP.
9739 * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
9740 * ipa-utils.c (get_base_var): Likewise.
9741 * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
9742 * lower-subreg.c (move_eh_region_note): Remove.
9743 (resolve_simple_move): Use copy_reg_eh_region_note_forward.
9744 * omp-low.c (new_omp_context): Update for eh_lp_nr.
9745 (create_task_copyfn): Likewise.
9746 (maybe_catch_exception): Use gimple_build_eh_filter.
9747 * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
9748 REG_EH_REGION. Use make_reg_eh_region_note_nothrow_nononlocal.
9749 * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
9750 and pass_lower_resx.
9751 * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
9752 * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
9753 can_throw_internal, can_nonlocal_goto.
9754 * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
9755 copy_reg_eh_region_note_forward.
9756 (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
9757 (emit_output_reload_insns): Likewise.
9758 (copy_eh_notes): Remove.
9759 * rtl.def (RESX): Remove.
9760 * rtl.h: Update declarations.
9761 * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
9762 * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
9763 (update_eh_label): Remove.
9764 (cleanup_dead_labels_eh): New.
9765 (cleanup_deal_labels): Use it instead of update_eh_label.
9766 (gimple_merge_blocks): Update landing pad data structure when
9767 removing a landing pad label.
9768 (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
9769 test; handle GIMPLE_EH_MUST_NOT_THROW.
9770 (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
9771 (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
9772 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
9773 (verify_stmt): Likewise. Verify landing pads.
9774 (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
9775 (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
9776 (struct move_stmt_d): Add eh_map.
9777 (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
9778 (move_stmt_r): Remap eh region numbers in builtin calls,
9779 resx and eh_dispatch.
9780 (move_block_to_fn): Remove eh_offset parameter. Use
9781 maybe_duplicate_eh_stmt_fn.
9782 (find_outermost_region_in_block): Operate on eh_region pointers
9783 instead of region numbers.
9784 (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
9785 duplicate_eh_regions.
9786 * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
9787 test earlier. Disallow EH landing pads.
9788 * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
9789 * tree-flow.h: Update declarations.
9790 (struct tree_ann_common_d): Replace rn with lp_nr.
9791 * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
9792 (remap_eh_region_nr, remap_eh_region_tree_nr): New.
9793 (remap_gimple_stmt): Remap eh region numbers in builtin calls,
9794 resx and eh_dispatch.
9795 (copy_bb): Use maybe_duplicate_eh_stmt_fn.
9796 (copy_edges_for_bb): Use make_eh_dispatch_edges.
9797 (copy_cfg_body): Expect eh_map instead of eh_region_offset
9798 from duplicate_eh_regions.
9799 (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
9800 update RESX; handle EH_DISPATCH.
9801 (expand_call_inline): Set eh_lp_nr, not eh_region.
9802 (maybe_inline_call_in_expr): Likewise.
9803 * tree-inline.h (struct copy_body_data): Replace eh_region with
9804 eh_lp_nr, eh_region_offset with eh_map.
9805 * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
9806 * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
9807 * tree-pretty-print.c (dump_generic_node): Don't handle
9808 EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
9809 * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
9810 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
9811 EXC_PTR_EXPR, FILTER_EXPR.
9812 * tree-ssa-operands.c (get_expr_operands): Likewise.
9813 * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
9814 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9815 (ao_ref_init_from_vn_reference): Likewise.
9816 * tree-ssa-sink.c (statement_sink_location): Likewise.
9817 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
9818 (mark_virtual_phi_result_for_renaming): Export. Tidy.
9819 * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
9820 EXC_PTR_EXPR, FILTER_EXPR.
9821 (is_exception_related): Remove.
9822 (compute_avail): Don't call it.
9823 * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
9824 * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
9825 (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
9826 (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
9827 Build EH builtins.
9828 (build_resx): Remove.
9829 * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
9830 * tree.h: Update declarations.
9831 (EH_FILTER_MUST_NOT_THROW): Remove.
9832 (struct tree_label_decl): Add eh_landing_pad_nr.
9833 (EH_LANDING_PAD_NR): New.
9834 * value-prof.c (gimple_ic): Tidy variable names. Update for
9835 landing pad numbers.
9836 (gimple_stringop_fixed_value): Tidy variable names. Assert
9837 that neither call stmt can throw.
9838 * vecprim.h (uchar): New.
9839 (VEC(uchar,heap), VEC(uchar,gc)): New.
9840
9841 * c-common.c (c_define_builtins): Update call to
9842 build_common_builtin_nodes.
9843 * c-parser.c (c_parse_file): Don't call
9844 default_init_unwind_resume_libfunc.
9845
0c433c31
RS
98462009-09-14 Richard Sandiford <rdsandiford@googlemail.com>
9847
9848 * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
9849 (mips_cprestore_address_p): Likewise.
9850 (mips_save_gp_to_cprestore_slot): Likewise.
9851 (mips_restore_gp): Rename to...
9852 (mips_restore_gp_from_cprestore_slot): ...this.
9853 (mips_must_initialize_gp_p): Declare.
9854 (mips_emit_save_slot_move): Likewise.
9855 (mips_output_load_label): Return nothing.
9856 (mips_eh_uses): Declare.
9857 * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
9858 (TARGET_CPRESTORE_DIRECTIVE): New macro.
9859 (TARGET_ABSOLUTE_JUMPS): Likewise.
9860 (EH_USES): Likewise.
9861 (FIRST_PSEUDO_REGISTER): Update comment.
9862 (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
9863 (MIPS_CALL): ...here.
9864 (REGISTER_NAMES): Add $cprestore.
9865 * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
9866 Add load_label_length, has_inflexible_gp_insn_p,
9867 has_flexible_gp_insn_p, must_initialize_gp_p and
9868 must_restore_gp_when_clobbered_p.
9869 (mips_expand_call): Don't generate split instructions here.
9870 (mips_split_call): Update the call to mips_restore_gp after
9871 the above name change.
9872 (mips16_cfun_returns_in_fpr_p): Move earlier in file.
9873 (mips_find_gp_ref): New function.
9874 (mips_insn_has_inflexible_gp_ref_p): Likewise.
9875 (mips_cfun_has_inflexible_gp_ref_p): Likewise.
9876 (mips_insn_has_flexible_gp_ref_p): Likewise.
9877 (mips_cfun_has_flexible_gp_ref_p): Likewise.
9878 (mips_function_has_gp_insn): Delete.
9879 (mips_global_pointer): Drop the df_regs_ever_live_p check.
9880 Use the new functions above. Only return INVALID_REGNUM
9881 for TARGET_ABSOLUTE_JUMPS.
9882 (mips_must_initialize_gp_p): New function.
9883 (mips_get_cprestore_base_and_offset): New function, extracted from...
9884 (mips_cprestore_slot): ...here. Take a bool parameter.
9885 (mips_cfun_has_cprestore_slot_p): New function.
9886 (mips_cprestore_address_p): Likewise.
9887 (mips_save_gp_to_cprestore_slot): Likewise.
9888 (mips_restore_gp): Rename to...
9889 (mips_restore_gp_from_cprestore_slot): ...this. Assert
9890 epilogue_completed. Update the call to mips_cprestore_slot.
9891 Test cfun->machine->must_restore_gp_when_clobbered_p.
9892 (mips_direct_save_slot_move_p): New function.
9893 (mips_emit_save_slot_move): Likewise.
9894 (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
9895 of cfun->machine->global_pointer.
9896 (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
9897 (mips_save_reg): Use mips_emit_save_slot_move.
9898 (mips_expand_prologue): Set must_initialize_gp_p.
9899 Use mips_cfun_has_cprestore_slot_p. Use gen_potential_cprestore
9900 for all cprestore saves. Emit a use_cprestore instruction after
9901 setting up the cprestore slot.
9902 (mips_restore_reg): Use mips_emit_save_slot_move.
9903 (mips_process_load_label): New function.
9904 (mips_load_label_length): Likewise.
9905 (mips_output_load_label): Don't return asm: output it here instead.
9906 Use mips_process_load_label.
9907 (mips_adjust_insn_length): Adjust the length of branch instructions
9908 that have length MAX_PIC_BRANCH_LENGTH.
9909 (mips_output_conditional_branch): Update the call to
9910 mips_output_load_label. Assume the branch target is OPERANDS[0]
9911 rather than OPERANDS[1]. Use MIPS_ABSOLUTE_JUMP for absolute jumps.
9912 (mips_output_order_conditional_branch): Swap the meaning of
9913 OPERANDS[0] and OPERANDS[1].
9914 (mips_variable_issue): Don't count ghost instructions.
9915 (mips_expand_ghost_gp_insns): New function.
9916 (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
9917 (mips_output_mi_thunk): Set must_initialize_gp_p.
9918 (mips_eh_uses): New function.
9919 * config/mips/predicates.md (cprestore_save_slot_operand)
9920 (cprestore_load_slot_operand): New predicates.
9921 * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
9922 (UNSPEC_MOVE_GP): Likewise.
9923 (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
9924 (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
9925 (CPRESTORE_SLOT_REGNUM): New register.
9926 (MAX_PIC_BRANCH_LENGTH): New constant.
9927 (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
9928 (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
9929 branches. Fix commentary.
9930 (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
9931 Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
9932 Change type to "ghost".
9933 (loadgp_absolute_<mode>): Likewise.
9934 (loadgp_rtp_<mode>): Likewise.
9935 (copygp_mips16): Likewise.
9936 (loadgp_blockage): Remove redundant mode attribute.
9937 (potential_cprestore): New instruction.
9938 (cprestore): Turn into an unspec set.
9939 (use_cprestore): New instruction.
9940 (*branch_fp): Swap operands 0 and 1. Remove redundant mode attribute.
9941 (*branch_fp_inverted): Likewise.
9942 (*branch_order<mode>): Likewise.
9943 (*branch_order<mode>_inverted): Likewise.
9944 (*branch_equality<mode>): Likewise.
9945 (*branch_equality<mode>_inverted): Likewise.
9946 (*branch_bit<bbv><mode>): Likewise.
9947 (*branch_bit<bbv><mode>_inverted): Likewise.
9948 (*branch_equality<mode>_mips16): Remove redundant mode.
9949 (jump): Turn into a define_expand.
9950 (*jump_absolute): New instruction.
9951 (*jump_pic): Likewise.
9952 (*jump_mips16): Rename previously-unnamed pattern. Remove
9953 redundant mode attribute.
9954 (restore_gp): Split on epilogue_completed rather than
9955 reload_completed. Change type to "ghost".
9956 (move_gp<mode>): New instruction.
9957 * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
9958 Remove redundant mode attribute.
9959 * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
9960 (bc1any4f, bc1any2t, bc1any2f): Likewise.
9961 (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
9962
5910fb59
MM
99632009-09-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9964
9965 PR target/41210
9966 * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
9967 are returned in the same register (vs34 or v2) that Altivec vector
9968 types are returned in.
9969 (rs6000_libcall_value): Ditto.
9970
9971 PR target/41331
9972 * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
9973 instead of explicit addsi3/adddi3 calls.
9974 (rs6000_split_multireg_move): Ditto.
9975 (rs6000_emit_allocate_stack): Ditto.
9976 (rs6000_emit_prologue): Ditto.
9977 (rs6000_output_mi_thunk): Ditto.
9978
9979 * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
9980 size is 64 bits if we can use 64-bit registers.
9981
49caeea1
BS
99822009-09-14 Bernd Schmidt <bernd.schmidt@analog.com>
9983
9984 * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
9985 symbols.
9986
8be6ada8
BS
9987 From Jie Zhang <jie.zhang@analog.com>:
9988 * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
9989 save FP and RETS with saveall attribute.
9990 (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
9991 with saveall attribute.
9992
6c1c1dfa
BS
9993 * config/bfin/bfin.c (bfin_expand_builtin,
9994 case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
9995 operands.
6dac2e8e 9996
6c1c1dfa
BS
9997 From Jie Zhang <jie.zhang@analog.com>:
9998 * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
9999 before use in two places.
10000 * config/bfin/bfin.md (AREG): Define mode iterator.
10001 (reload_in, reload_out): Use mode iterator AREG.
10002
cdb4dde5
RG
100032009-09-14 Richard Guenther <rguenther@suse.de>
10004
10005 PR middle-end/41350
10006 * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
10007 EH personality path.
10008
f9417da1 100092009-09-13 Richard Guenther <rguenther@suse.de>
6dac2e8e 10010 Rafael Avila de Espindola <espindola@google.com>
f9417da1
RG
10011
10012 * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
10013 (LANG_HOOKS_EH_PERSONALITY): Likewise.
10014 (LANG_HOOKS_INITIALIZER): Adjust.
10015 (lhd_pass_through_t): Declare.
10016 * langhooks.h (struct lang_hooks): Add eh_runtime_type and
10017 eh_personality.
10018 * langhooks.c (lhd_pass_through_t): New function.
6dac2e8e 10019 * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
f9417da1 10020 dwarf2out_begin_prologue): Use personality from current_function_decl.
6dac2e8e 10021 * expr.h (get_personality_function): Declare.
f9417da1
RG
10022 * expr.c (get_personality_function): New function.
10023 (build_personality_function): Likewise.
6dac2e8e
UB
10024 * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
10025 (eh_personality_libfunc): Remove.
10026 * optabs.c (build_libfunc_function): New function split out from ...
f9417da1 10027 (init_one_libfunc): ... here.
6dac2e8e
UB
10028 * tree.h (DECL_FUNCTION_PERSONALITY): New.
10029 (tree_function_decl): Add personality.
f9417da1
RG
10030 (lhd_gcc_personality): Declare.
10031 (build_personality_function): Likewise.
10032 * tree.c (gcc_eh_personality_decl): New.
10033 (lhd_gcc_personality): New function.
10034 * except.h (lang_eh_runtime_type): Remove.
10035 (enum eh_personality_kind): New.
10036 (build_personality_function): Declare.
10037 (function_needs_eh_personality): Declare.
6dac2e8e 10038 * except.c (lang_eh_runtime_type): Remove.
f9417da1
RG
10039 (function_needs_eh_personality): New function.
10040 (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
6dac2e8e
UB
10041 (sjlj_emit_function_enter, output_function_exception_table):
10042 Use personality from current_function_decl.
f9417da1
RG
10043 * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
10044 * tree-inline.c (tree_can_inline_p): Do not inline across different
10045 EH personalities.
10046 (expand_call_inline): Likewise. Adjust the callers EH personality.
10047 (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
10048 * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
10049 * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
10050 (c-parser.o): Likewise
10051 * c-tree.h (c_eh_initialized_p): Remove.
10052 (c_maybe_initialize_eh): Likewise.
10053 * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
10054 (finish_decl): Don't call c_maybe_initialize_eh.
10055 (c_eh_initialized_p): Remove.
10056 (c_maybe_initialize_eh): Likewise.
6dac2e8e 10057 * c-parser.c (c_parser_omp_construct): Likewise.
f9417da1
RG
10058 (c_parse_file): Initialize exception handling.
10059
933608b7
KT
100602009-09-13 Kai Tietz <kai.tietz@onevision.com>
10061
10062 * config.gcc (tm_file): Remove i386/biarch32.h
10063 for i?86-w64-mingw* case.
10064 (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
10065 support.
22f34504
KT
10066 * config.host: Set for x64 mingw the option
10067 use_long_long_for_widest_fast_int to yes.
933608b7 10068
725730f2
EB
100692009-09-13 Eric Botcazou <ebotcazou@adacore.com>
10070
10071 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
10072 * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
10073 (dbxout_begin_function): Likewise.
10074 * final.c (dwarf2_debug_info_emitted_p): New predicate.
10075 (final_start_function): Do not emit debug info if DECL_IGNORED_P is
10076 set on the function.
10077 (final_end_function): Likewise.
10078 (final_scan_insn): Likewise.
10079 (rest_of_handle_final): Likewise.
10080 * varasm.c (assemble_start_function): Likewise.
10081 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10082
100832009-09-12 Jason Merrill <jason@redhat.com>
86373e7e
JM
10084
10085 * dbgcnt.c (dbg_cnt_process_single_pair): constify.
10086 * opts.c (common_handle_option): constify.
10087
8ff51917
GP
100882009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
10089
beb1adc1
GP
10090 * doc/install.texi (avr): Remove obsolete reference site.
10091
100922009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
afbd0665 10093
8ff51917
GP
10094 * doc/install.texi (Binaries): Adjust AIX link.
10095
460ba396
AD
100962009-09-12 Akim Demaille <demaille@gostai.com>
10097
10098 * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
10099 Use an imperative sentence.
10100
f2c4a81c
RH
101012009-09-11 Richard Henderson <rth@redhat.com>
10102
10103 * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
10104 structure-name and has-tree-operands arguments; update all entries.
10105 * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
10106 update all entries.
10107 * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
10108 (gsstruct_code_size): New.
10109 (gss_for_code_): New.
10110 (gss_for_code): Remove.
10111 (gimple_size): Rewrite using gsstruct_code_size.
10112 (gimple_statement_structure): Move to gimple.h.
10113 * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
10114 (gss_for_code, gimple_statement_structure): New.
10115 (gimple_ops): Use new arrays; tidy.
10116
85ed9a33
JDA
101172009-09-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10118
10119 * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
10120 operand to be a PLUS expression.
10121 * config/pa/pa.c (pa_secondary_reload): Likewise.
10122
137a05d3
JJ
101232009-09-11 Jakub Jelinek <jakub@redhat.com>
10124
9258b4c1
JJ
10125 * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
10126
137a05d3
JJ
10127 * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
10128 XEXP (in_rtx, 8).
10129
603bb63e
BS
101302009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
10131
10132 From Jie Zhang <jie.zhang@analog.com>:
10133 * doc/extend.texi (node Function Attributes): Document l2
10134 function attribute.
10135 (node Blackfin Variable Attributes): Document l2 variable attributes.
10136
8a47c6c4
LR
101372009-09-11 Loren J. Rittle <ljrittle@acm.org>
10138
10139 * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
10140 to match the system compiler's configuration at inflection point.
10141 Add comment to remark a remaining difference with system compiler.
10142
61e1d511
LR
10143 * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
10144 * configure: Regenerate.
10145
db689ed6
BS
101462009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
10147
10148 From Jie Zhang <jie.zhang@analog.com>:
10149 * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
10150 (bfin_handle_l2_attribute): New.
10151 (bfin_attribute_table): Add l2 attribute.
10152
5c3ec539
MM
101532009-09-11 Michael Matz <matz@suse.de>
10154
10155 PR middle-end/41275
10156 * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
10157 on the local_decls list.
10158
0b7e34d7
AO
101592009-09-11 Alexandre Oliva <aoliva@redhat.com>
10160
10161 PR debug/41276
10162 PR debug/41307
10163 * cselib.c (cselib_expand_value_rtx_cb): Document callback
10164 interface.
10165 (cselib_expand_value_rtx_1): Use callback for SUBREGs. Adjust
10166 for VALUEs, to implement the documented interface.
10167 * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
10168 Adjust for VALUEs and anything else, to implement the
10169 documented interface.
10170
b851135c
NF
101712009-09-10 Nathan Froyd <froydnj@codesourcery.com>
10172
10173 * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
10174 with actual SPE/paired vector modes before using 64-bit alignment.
10175 Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
10176
5ba863d7
DD
101772009-09-10 DJ Delorie <dj@redhat.com>
10178
10179 * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
10180 emitted.
10181
10182 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
10183 * config/mep/mep.c (mep_legitimate_constant_p): New.
10184 * config/mep/mep-protos.h: Prototype it.
10185
68bcdeed
RH
101862009-09-10 Richard Henderson <rth@redhat.com>
10187
10188 * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
10189
ad42ff1e
JM
101902009-09-10 Jason Merrill <jason@redhat.com>
10191
10192 * tree.c (chain_index): New fn.
10193 * tree.h: Declare it.
10194
0e6748ab
RO
101952009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10196
10197 * config/sol2-c.c (cmn_err_length_specs): Initialize
10198 scalar_identity_flag.
10199
671f9f30
RH
102002009-09-10 Richard Henderson <rth@redhat.com>
10201
b6777fea
RH
10202 * tree.h (struct tree_decl_common): Move align member earlier;
10203 move label_decl_uid member ...
10204 (struct tree_label_decl): ... here.
10205 (LABEL_DECL_UID): Update to match.
10206
feb4e5ba
RH
10207 * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
10208 not TDF_DETAILS.
10209
1c061be5
RH
10210 * tree-cfg.c (gimple_redirect_edge_and_branch): Do
10211 gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
10212
88e24a5a
RH
10213 * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
10214 dest_prev if the edge is complex.
10215
40a32862
RH
10216 * tree-cfg.c (is_ctrl_stmt): Use a switch.
10217
8e7c5fdd
RH
10218 * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
10219 loop latch tests earlier.
10220
07c358c6
RH
10221 * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
10222 before GIMPLE_RETURN, not after its predecessor; insert
10223 before GIMPLE_RESX.
10224
671f9f30
RH
10225 * gimple-iterator.c (gimple_find_edge_insert_loc): Use
10226 gimple_seq_empty_p to test for no PHI nodes.
10227 * tree-cfg.c (split_critical_edges): Likewise.
10228
15a15e8d
RH
10229 * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
10230
f90f4827
HS
102312009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
10232
10233 * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
6dac2e8e 10234 introduced by the VTA branch merge.
f90f4827 10235
edb30094
UB
102362009-09-10 Uros Bizjak <ubizjak@gmail.com>
10237
10238 * ira-conflicts.c: Use fputs or putc instead of fprintf
10239 where appropriate.
10240 * cfg.c: Ditto.
10241 * toplev.c: Ditto.
10242 * tree-switch-conversion.c: Ditto.
10243
102442009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
f3d9e91b
HS
10245
10246 * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
6dac2e8e 10247 introduced by the VTA branch merge.
f3d9e91b 10248
edb30094 102492009-09-10 Uros Bizjak <ubizjak@gmail.com>
3a3d54f2
UB
10250
10251 Revert:
10252 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
10253
10254 PR rtl-optimization/39779
10255 * expr.c (convert_modes): Return when mode == oldmode after
10256 CONST_INTs are processed.
10257
1c6679e2
NC
102582009-09-10 Nick Clifton <nickc@redhat.com>
10259
10260 * config/mep/mep.c (mep_encode_section_info): Copy weakness
10261 attribute and referring decl when creating renamed symbol.
10262
90097c67
RG
102632009-09-10 Richard Guenther <rguenther@suse.de>
10264
10265 PR middle-end/41257
10266 * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
10267 reachable nodes.
10268 (cgraph_finalize_compilation_unit): Compute reachability
10269 before emitting thunks. Properly process aliases before
10270 possibly removing unreachable nodes.
10271
c7a3980a
RG
102722009-09-10 Richard Guenther <rguenther@suse.de>
10273
10274 PR middle-end/41254
10275 * tree.c (struct free_lang_data_d): Add worklist member.
10276 (find_decls_types_r): Push onto the worklist instead of recursing.
10277 Handle TREE_BINFOs properly.
10278 (find_decls_types): New function wrapped around find_decls_types_r
10279 to process the worklist.
10280 (find_decls_types_in_eh_region): Use it.
10281 (find_decls_types_in_node): Likewise.
10282 (find_decls_types_in_var): Likewise.
10283 (free_lang_data_in_cgraph): Likewise. Free the worklist.
10284 * tree.h (RECORD_OR_UNION_TYPE_P): New.
10285 (AGGREGATE_TYPE_P): Adjust.
10286
e00ded68
JM
102872009-09-09 Jason Merrill <jason@redhat.com>
10288
10289 * configure.ac: Check glibc version even if we have an in-tree
10290 assembler.
10291
75cd1c8f
AG
102922009-09-09 Anthony Green <green@moxielogic.com>
10293
10294 * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
10295 the constant 0 when appropriate.
10296 * config/moxie/constraints.md: Add constraint O.
10297
10298 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
10299 to pass up to 6 32-bit argument values in registers.
10300 (moxie_function_arg): Ditto.
10301 (moxie_arg_partial_bytes): Ditto.
10302 * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
10303 (REG_PARM_STACK_SPACE): Ditto.
10304 (FUNCTION_ARG_REGNO_P): Ditto.
10305
10306 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
10307 instruction to allocate stack space.
10308
93fbf857
SB
103092009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
10310
10311 * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
10312 unnecessarily stringent constraints. Fix address
10313 calculation in the splitters.
10314
ed9d5a4a
UB
103152009-09-09 Uros Bizjak <ubizjak@gmail.com>
10316
10317 PR rtl-optimization/39779
10318 * expr.c (convert_modes): Return when mode == oldmode after
10319 CONST_INTs are processed.
10320
3d887721
KT
103212009-09-09 Kai Tietz <kai.tietz@onevision.com>
10322
10323 PR/41315
ed9d5a4a 10324 * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
3d887721
KT
10325 (ix86_expand_prologue): Take frame.padding0 into logic of
10326 to_allocate checks.
10327 (ix86_expand_epilogue): Likewise.
10328
80a76d1d
JJ
103292009-09-09 Jakub Jelinek <jakub@redhat.com>
10330
10331 * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
10332 New variables.
10333 (SHLIB_LINK, SHLIB_INSTALL): Use them.
10334 * config/t-slibgcc-libgcc: New file.
10335 * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
10336
ca1bb752
MJ
103372009-09-09 Martin Jambor <mjambor@suse.cz>
10338
10339 PR tree-optimization/41089
10340 * tree-sra.c (find_var_candidates): Do not consider va_lists in
10341 early SRA.
10342
8b9db065
RH
103432009-09-09 Richard Henderson <rth@redhat.com>
10344
10345 * gimple.h (CASE_GIMPLE_OMP): New.
10346 (is_gimple_omp): Use it.
10347 * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
10348 (verify_gimple_debug): Likewise.
10349
70a6b17e
RG
103502009-09-09 Richard Guenther <rguenther@suse.de>
10351
10352 PR tree-optimization/41101
10353 * tree-ssa-pre.c (maximal_set): Remove.
10354 (compute_antic_aux): Treat the maximal set as implicitly all ones.
10355 Defer all blocks we didn't visit at least one successor.
10356 (add_to_exp_gen): Do not add to the maximal set.
10357 (make_values_for_phi): Likewise.
10358 (compute_avail): Likewise.
10359 (init_pre): Do not allocate the maximal set.
10360 (execute_pre): Do not dump it.
10361
7648edc4
MJ
103622009-09-09 Martin Jambor <mjambor@suse.cz>
10363
10364 * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
10365 an SSA_NAME rather than a is_gimple_variable.
10366
5a4b005f
RG
103672009-09-09 Richard Guenther <rguenther@suse.de>
10368
10369 PR middle-end/41317
10370 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
10371 code dealing with plain pointer bases.
10372 (maybe_fold_offset_to_reference): Likewise.
10373 (maybe_fold_stmt_addition): Adjust.
10374
ccffb755
RG
103752009-09-09 Richard Guenther <rguenther@suse.de>
10376
10377 * tree.c (free_lang_data_in_type): Do not free the type variant
10378 chains.
10379 (free_lang_data): Merge char_type_node with its properly signed
10380 variant.
10381 (pass_ipa_free): Collect after freeing language specific data.
10382
4e18a7d4
MM
103832009-09-09 Michael Matz <matz@suse.de>
10384
10385 PR middle-end/41268
10386 * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
10387 SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
10388 * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
10389 to reflect reality.
10390
5fb455bc
DD
103912009-09-08 DJ Delorie <dj@redhat.com>
10392
10393 * config/mep/mep.c (conversions[]): Add "ml" pattern.
10394
d5df7223
JM
103952009-09-04 Jason Merrill <jason@redhat.com>
10396
10397 * tree.c (tree_find_value): Remove.
10398 * tree.h: Remove prototype.
10399 * varasm.c (assemble_external): Use value_member instead.
10400
6a57e634
AO
104012009-09-08 Alexandre Oliva <aoliva@redhat.com>
10402
10403 * toplev.c (process_options): Choose default debugging type when
10404 gtoggle enables debug info and type is unset.
10405
da4a9479
AO
104062009-09-08 Alexandre Oliva <aoliva@redhat.com>
10407
10408 PR debug/41276
10409 PR debug/41307
10410 * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
10411 invalid subreg.
10412
713e2ea6
AO
104132009-09-08 Alexandre Oliva <aoliva@redhat.com>
10414
10415 * configure: Rebuilt with modified libtool.m4.
10416
91642126
AO
104172009-09-08 Alexandre Oliva <aoliva@redhat.com>
10418
10419 PR debug/41229
10420 PR debug/41291
10421 PR debug/41300
10422 * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
10423
ae0a4449
AO
104242009-09-08 Alexandre Oliva <aoliva@redhat.com>
10425
10426 * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
10427 (remove_statement): Likewise.
10428 (rewrite_use_nonlinear_expr): Adjust.
10429 (remove_unused_ivs): Collect SSA NAMEs to remove and call...
10430 * tree-ssa.c (release_defs_bitset): ... this. New.
10431 * tree-flow.h (release_defs_bitset): Declare.
10432
21719cea
AO
104332009-09-08 Alexandre Oliva <aoliva@redhat.com>
10434
10435 PR debug/41232
10436 * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
10437 in the middle block.
10438
7c2a2dbf
KT
104392009-09-08 Kai Tietz <kai.tietz@onevision.com>
10440
34c6743c
KT
10441 * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
10442 via intptr_t to long type.
10443 (insert_operand_rank): Cast long type via intptr_t to
10444 pointer type.
10445 * genattrtab.c (RTL_HASH): Use intptr_t to cast from
10446 pointer to scalar.
10447 * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
10448 from pointer to unsigned via uintptr_t.
10449
7c2a2dbf
KT
10450 * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
10451 uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
10452 and HAVE_INTPTR_T.
10453 * configure: Regenerated.
10454 * config.in: Regenerated
10455 * system.h (stdint.h): Add include.
10456 (inttypes.h): Likewise.
10457 * Makefile.in (aclocal): Add config/stdint.m4.
10458 * aclocal.m4: Regenerated.
10459
8472b255
BS
104602009-09-08 Bernd Schmidt <bernd.schmidt@analog.com>
10461
10462 * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
10463 variables.
10464 (note_np_check_stores): New function.
10465 (harmless_null_pointer_p): New function.
10466 (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH. Callers
10467 changed. Take into account whether we're in the shadow of a condjump
10468 that tested NP_REG for NULL.
10469 Lose all code that tested for SEQUENCEs.
10470 (workaround_speculation): Avoid inserting NOPs for loads that are
10471 either always executed or a NULL pointer.
10472
ac875c2e
JH
104732009-09-08 Jan Hubicka <jh@suse.cz>
10474
10475 * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
10476 * params.def (early-inlining-insns): Likewise.
10477
1098d3a5
JJ
104782009-09-08 Jakub Jelinek <jakub@redhat.com>
10479
10480 PR rtl-optimization/41239
10481 * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
10482 * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
10483 lists.
10484 * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
10485 across calls, as the calls might not always return normally.
10486 (call_may_noreturn_p): New function.
10487 (deps_analyze_insn): Update last_function_call_may_noreturn list.
10488 (init_deps): Initialize it.
10489 (remove_from_deps): Also remove calls from
10490 last_function_call_may_noreturn list.
10491
35ecd408
RH
104922009-09-07 Richard Henderson <rth@redhat.com>
10493
10494 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
10495 more VR->OPERANDS than LHS operands. Free LHS before returning.
10496
c7cb1555
BS
104972009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
10498
10499 * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
10500 (attr "addrtype"): New member "spreg".
10501 Use it if mem_spfp_address_operand is true for the address.
10502 (attr "type"): New entry "stall".
10503 (cpu_unit "load"): New.
10504 (insn_reservations "load32", "loadp", "loadi"): Add reservation of
10505 "load".
10506 (insn_reservation "loadsp"): New.
10507 (insn_reservation "load_stall1"): New.
10508 (insn_reservation "load_stall3"): New.
ed9d5a4a 10509 (stall): New insn.
c7cb1555
BS
10510 * config/bfin/predicates.md (const1_operand, const3_operand): New.
10511 (mem_p_address_operand): Exclude stack and frame pointer based
10512 addresses.
10513 (mem_spfp_address_operand): New; match them here.
10514 * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
10515 (bfin_reorg): Call it if scheduling insns.
10516 (bfin_gen_bundles): Remove dummy insns created by
10517 add_sched_insns_for_speculation.
10518
4dce27df
BS
10519 From Jie Zhang <jie.zhang@analog.com>:
10520 * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
10521 bfin_si_revision, bfin_workarounds): Move these ...
10522 * config/bfin/bfin.h: ... here.
10523
5254cd50
BS
10524 From Mike Frysinger <michael.frysinger@analog.com>
10525 * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
10526 BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
ed9d5a4a
UB
10527 * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
10528 bf547m, bf548m, and bf549m.
5254cd50 10529 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
ed9d5a4a
UB
10530 for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
10531 __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
10532 BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
5254cd50
BS
10533 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
10534 bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
10535 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
10536 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
10537 * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
10538 bf542m, bf544m, bf547m, bf548m, and bf549m.
10539
b3187e24 10540 From Jie Zhang <jie.zhang@analog.com>:
ed9d5a4a 10541 * config/bfin/predicates.md (p_register_operand): New predicate.
b3187e24
BS
10542 (dp_register_operand): New predicate.
10543 * config/bfin/bfin-protos.h (WA_05000074): Define.
10544 (ENABLE_WA_05000074): Define.
ed9d5a4a 10545 * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
b3187e24
BS
10546 (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
10547 * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
ed9d5a4a 10548 (define_attr addrtype): Allow load/store register to be P register.
b3187e24
BS
10549 (define_attr storereg): New.
10550 (define_cpu_unit anomaly_05000074): New.
10551 (define_insn_reservation dsp32shiftimm): New.
10552 (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
10553 (define_insn_reservation loadp): Cannot use slot2.
10554 (define_insn_reservation loadsp): Cannot use slot2.
10555 (define_insn_reservation storep): Cannot use slot2. Does not
10556 apply when working around 05000074.
10557 (define_insn_reservation storep_anomaly_05000074): New.
10558 (define_insn_reservation storei): Does not apply when working
10559 around 05000074.
10560 (define_insn_reservation storei_anomaly_05000074): New.
10561 (define_attr length): Add dsp32shiftimm case.
10562 (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
10563 ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
10564 movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
10565 ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
10566 Set type as dsp32shiftimm for dsp32shiftimm alternatives.
10567
4a50e99c
MJ
105682009-09-07 Martin Jambor <mjambor@suse.cz>
10569
10570 PR middle-end/41282
10571 * tree-sra.c (create_artificial_child_access): Return NULL if
10572 build_ref_for_offset fails.
10573 (propagate_subacesses_accross_link): Allow build_ref_for_offset
10574 and create_artificial_child_access to fail.
10575
e5b258a4
DG
105762009-09-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
10577
10578 PR c++/41214
6dac2e8e 10579 * unwind-dw2.c (uw_init_context_1): Mark noinline.
e5b258a4
DG
10580 * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
10581 * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
10582
8ff7f824
BS
105832009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
10584
10585 * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
10586 block, ensure it has an exit edge. Emit a barrier after a jump.
10587
3beb864c
NC
105882009-09-07 Nick Clifton <nickc@redhat.com>
10589
10590 * gcc.c (this_is_linker_script): New variable. Like
10591 this_is_library_file but for the %T constructor.
10592 (end_going_arg): If this_is_linker_script is set then locate the
10593 script and insert a --script switch before it
6dac2e8e
UB
10594 (do_spec_2): Initialise this_is_linker_script.
10595 (do_spec_1): Likewise. Handle %T construct.
10596 (eval_spec_function): Preserve this_is_linker_script.
3beb864c
NC
10597 * doc/invoke.texi: Document %T construct in spec files.
10598 * config/m32c/m32c.h (LIB_SPEC): Use it.
10599
3fce100b
AK
106002009-09-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10601
ed9d5a4a 10602 * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
3fce100b
AK
10603 * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
10604 when volatile flag is set.
10605 * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
10606
1362aa31
EB
106072009-09-06 Eric Botcazou <ebotcazou@adacore.com>
10608
10609 PR bootstrap/41241
10610 * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
10611 (combine_stack_adjustments_for_block): Allow insns between stack
7717df30
EB
10612 adjustments and stores with corresponding pre-(dec|inc)rement or
10613 pre-modify operation.
1362aa31 10614
90588a10
JJ
106152009-09-06 Jakub Jelinek <jakub@redhat.com>
10616
10617 PR bootstrap/41241
10618 * combine-stack-adj.c (struct csa_memlist): Rename to...
10619 (struct csa_reflist): ... this. Rename mem field to ref.
10620 (free_csa_memlist): Rename to...
10621 (free_csa_reflist): ... this.
10622 (record_one_stack_memref): Rename to...
10623 (record_one_stack_ref): ... this. Handle also REG_P.
10624 (try_apply_stack_adjustment): Handle also REG_P.
10625 (struct record_stack_memrefs_data): Rename to...
10626 (struct record_stack_refs_data): ... this. Rename memlist field to
10627 reflist.
10628 (record_stack_memrefs): Rename to...
10629 (record_stack_refs): ... this. For DEBUG_INSNs keep traversing
10630 subexpressions instead of failing when a MEM contains SP references.
10631 For SP itself in DEBUG_INSNs queue it also onto reflist chain.
10632 (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
10633
3797a0ff
RG
106342009-09-06 Richard Guenther <rguenther@suse.de>
10635
10636 PR middle-end/41144
10637 * tree.c (build_array_type): Do not record types marked
10638 with structural equality in the canonical type hashtable.
10639
3c45b96b
RG
106402009-09-06 Richard Guenther <rguenther@suse.de>
10641
10642 PR middle-end/41261
10643 * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
10644
6a129567
RG
106452009-09-05 Richard Guenther <rguenther@suse.de>
10646
10647 PR middle-end/41181
10648 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
10649
432b4b31
RG
106502009-09-05 Richard Guenther <rguenther@suse.de>
10651
10652 PR debug/41273
10653 * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
10654
575140c2
RG
106552009-09-05 Richard Guenther <rguenther@suse.de>
10656
10657 PR middle-end/41271
10658 * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
10659 before comparing function argument types.
10660
896237cd
FXC
106612009-09-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10662
10663 PR target/41024
10664 * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
10665 the assembler.
10666
e139ab34
UB
106672009-09-04 Uros Bizjak <ubizjak@gmail.com>
10668
10669 Revert:
10670 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
10671
10672 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
10673 locators before emit_insn is called.
10674
1fe28116
VM
106752009-09-04 Vladimir Makarov <vmakarov@redhat.com>
10676
10677 PR bootstrap/41241
10678 * ira.c (update_equiv_reg): Revert my previous patch for the PR.
10679 * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
10680 (reginfo_init): Don't call allocate_reg_info.
10681
14e58be0
UB
106822009-09-04 Uros Bizjak <ubizjak@gmail.com>
10683
10684 PR target/41262
10685 * config/alpha/alpha.c (alpha_does_function_need_gp): Use
10686 NONDEBUG_INSN_P instead of INSN_P.
10687
3157b0c2
AO
106882009-09-04 Alexandre Oliva <aoliva@redhat.com>
10689
10690 PR debug/41225
10691 * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
10692
510bc854
AO
106932009-09-04 Alexandre Oliva <aoliva@redhat.com>
10694
10695 PR target/41252
10696 * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
10697 pattern of the split.
10698
6751b6f6
AO
106992009-09-04 Alexandre Oliva <aoliva@redhat.com>
10700
10701 * toplev.c (process_options): Move setter of flag_var_tracking
10702 before other tests that depend on it. Move down setter of
10703 flag_rename_registers. Don't enable var-tracking-assignments
10704 by default if selective scheduling is enabled. Warn if both
10705 are enabled.
10706
24277d34
AO
107072009-09-04 Alexandre Oliva <aoliva@redhat.com>
10708
10709 * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
10710 comment. Use switch statement to catch overlaps between rtx
10711 and tree codes. Accept FUNCTION_DECLs in addition to those in...
10712 (IS_DECL_CODE): ... here. Remove.
10713 (check_value_is_not_decl): Remove.
10714 (dv_from_decl, dv_from_value): Check after conversion.
10715
5f1a9ebb
RG
107162009-09-04 Richard Guenther <rguenther@suse.de>
10717
10718 PR middle-end/41257
10719 * (cgraph_finalize_compilation_unit): Move finalizing aliases
10720 after emitting tunks. Move emitting thunks and ctors from ...
10721 (cgraph_optimize): ... here. Remove redundant
10722 cgraph_analyze_functions.
10723 * varasm.c (find_decl_and_mark_needed): Remove no longer
10724 necessary check.
10725 (finish_aliases_1): Adjust check for thunk aliases.
10726
8d142c15
DG
107272009-09-04 Daniel Gutson <dgutson@codesourcery.com>
10728
10729 * config/arm/arm.md (ctzsi2): Added braces
10730 to avoid warning that broke booststrap.
10731
22fc64b4
MJ
107322009-09-04 Martin Jambor <mjambor@suse.cz>
10733
10734 PR tree-optimization/41112
10735 * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
10736 handle variable-bounded arrays.
10737 (expr_with_var_bounded_array_refs_p): New function.
10738 (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
10739
2cdece44
WG
107402009-09-04 Wolfgang Gellerich <gellerich@de.ibm.com>
10741
10742 * config/s390/2097.md: Removed two incorrect bypasses.
10743 (z10_fsimpdf): Fixed latency.
10744 (z10_fhex): New insn_reservation.
10745 (z10_floaddf): Fixed latency.
10746 (z10_floadsf): Fixed latency.
10747 (z10_ftrunctf): Fixed latency.
10748 (z10_ftruncdf): Fixed latency.
10749 * config/s390/s390.c (z10_cost): Fixed values.
10750 (s390_adjust_priority): Added z10 path.
10751 * config/s390/s390.md (type): Added fhex.
10752 (*mov<mode>_64dfp): Updated type attribute.
10753 (*mov<mode>_64): Updated type attribute.
10754 (*mov<mode>_31): Updated type attribute.
10755 (*mov<mode>"): Likewise.
10756 * config/s390/2084.md (x_fsimpdf): Updated condition.
10757
b09062ee
AK
107582009-09-04 Andreas Krebbel <krebbel1@de.ibm.com>
10759
10760 * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
10761 RTXs in the predicate for operand 1.
10762
ca96ed43
DG
107632009-09-03 Daniel Gutson <dgutson@codesourcery.com>
10764
10765 * config/arm/arm.md (UNSPEC_RBIT): New constant.
10766 (rbitsi2): New insn.
10767 (ctzsi2): New expand.
10768 * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
10769
687b5078
MJ
107702009-09-03 Martin Jambor <mjambor@suse.cz>
10771
10772 * tree-sra.c (duplicate_expr_for_different_base): Removed.
10773 (create_artificial_child_access): Use build_ref_for_offset instead
10774 of duplicate_expr_for_different_base.
10775 (propagate_subacesses_accross_link): Likewise.
14e58be0 10776
006b29ab
RS
107772009-09-03 Richard Sandiford <rdsandiford@googlemail.com>
10778
10779 * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
10780 of INSN_P.
10781 (mips16e_collect_argument_saves): Skip debug instructions.
10782 (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
10783 (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
10784 (r10k_insert_cache_barriers): Likewise.
10785 (mips_reorg_process_insns): Likewise.
10786
691571d2
VM
107872009-09-03 Vladimir Makarov <vmakarov@redhat.com>
10788
10789 PR bootstrap/41241
10790 * ira.c (update_equiv_reg): Remove check on class likely spill.
10791
08ab0acf
JJ
107922009-09-03 Jakub Jelinek <jakub@redhat.com>
10793
7d4507cb
JJ
10794 PR debug/41236
10795 * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
10796 SIGN_EXTEND or ZERO_EXTEND. Don't assume there is a REG inside of
10797 it or SUBREG.
10798
08ab0acf
JJ
10799 PR debug/41238
10800 * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
10801 the stack slot if it is passed by invisible reference.
755d55bb
EB
10802 * var-tracking.c (vt_add_function_parameters): Handle arguments passed
10803 by invisible reference.
08ab0acf 10804
9840d30a
BS
108052009-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
10806
10807 * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
10808 * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
10809 * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
10810 0.
10811 * config/bfin/sync.md: New file.
10812 * config/bfin/bfin.md: Include it.
10813 (UNSPEC_ATOMIC): New.
10814 (UNSPEC_ONES): Provide a unique number.
10815
10816 From Jie Zhang <jie.zhang@analog.com>:
10817 * config/bfin/bfin.c (ret_regs): New.
10818 (must_save_fp_p): Don't return true because of frame_pointer_needed.
10819 (must_save_rets_p): New.
10820 (n_regs_saved_by_prologue): Use must_save_rets_p instead of
10821 current_function_is_leaf.
10822 (do_link): Likewise.
10823 (do_unlink): Likewise.
10824 (expand_interrupt_handler_prologue): Use ret_regs array.
10825 (expand_interrupt_handler_epilogue): Use ret_regs array and
10826 pass return register to gen_return_internal.
10827 (bfin_expand_epilogue): Pass return register to
10828 gen_return_internal.
10829 (bfin_expand_call): Explicitly clobber RETS.
10830 * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
10831 * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
10832 call_insn_fdpic, call_value_insn_fdpic, call_symbol,
10833 call_value_symbol, call_insn, call_value_insn): Explicitly clobber
10834 RETS.
10835 (return_internal): Take a reg rtx rather than the register number.
10836
8e094aa2
L
108372009-09-03 H.J. Lu <hongjiu.lu@intel.com>
10838
10839 * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
10840 when comparing against estimated_loop_iterations_int return.
10841
e20c9328
RG
108422009-09-03 Richard Guenther <rguenther@suse.de>
10843
10844 * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
10845 eh_personality_libfunc.
10846
c9630c40
RL
108472009-09-03 Razya Ladelsky <razya@il.ibm.com>
10848
10849 * tree-parloops.c (separate_decls_in_region): Add space.
14e58be0 10850
e7df16a5
RL
108512009-09-03 Razya Ladelsky <razya@il.ibm.com>
10852
14e58be0 10853 * tree-parloops.c (separate_decls_in_region): Change the condition
e7df16a5
RL
10854 checking if there are reductions in the loop.
10855
785aa2a7
RL
108562009-09-03 Razya Ladelsky <razya@il.ibm.com>
10857
10858 PR tree-optimization/38275
14e58be0 10859 * tree-parloops.c (parallelize_loops): Replace profitability condition
785aa2a7
RL
10860 for expected number of iterations.
10861
e12c4094
AO
108622009-09-03 Alexandre Oliva <aoliva@redhat.com>
10863
10864 * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
10865 (bootstrap-debug): Explain conditions in which it becomes default.
10866 (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
10867 make it add to it.
10868
95da10ea
NK
108692009-09-03 Namhyung Kim <namhyung@gmail.com>
10870
10871 * doc/invoke.texi (Optimize Options): Move
10872 -finline-small-functions to the -O2 list.
10873
73d598d5
AO
108742009-09-03 Alexandre Oliva <aoliva@redhat.com>
10875
10876 * toplev.c (process_options): Enable var-tracking-assignments
10877 by default if var-tracking is enabled.
10878
896aa4ea
DD
108792009-09-02 David Daney <ddaney@caviumnetworks.com>
10880
10881 * cfgbuild.c (find_bb_boundaries): Split blocks containing a
10882 barrier.
10883 * emit-rtl.c (prev_nonnote_insn_bb): New function.
10884 * rtl.h (prev_nonnote_insn_bb): Declare it.
10885
4537ec0c
DN
108862009-09-03 Diego Novillo <dnovillo@google.com>
10887
10888 * cgraph.c (cgraph_node_for_decl): New.
10889 * cgraph.h (cgraph_node_for_decl): Declare.
10890 * tree.c (host_integerp): Return 0 if T is NULL.
10891
108922009-09-03 Diego Novillo <dnovillo@google.com>
10893
10894 * tree.h (struct alias_pair): Move from varasm.c.
10895 (alias_pairs): Likewise.
10896 (TYPE_MAXVAL): Define.
10897 (TYPE_MINVAL): Define.
10898 (iterative_hash_host_wide_int): Declare.
10899 (remove_unreachable_alias_pairs): Declare.
10900 * tree-pass.h (pass_ipa_free_lang_data): Declare.
10901 * diagnostic.c (default_diagnostic_starter): Make extern.
10902 (default_diagnostic_finalizer): Make extern.
10903 * diagnostic.h (default_diagnostic_starter): Declare.
10904 (default_diagnostic_finalizer): Declare.
10905 (default_tree_printer): Declare.
10906 * toplev.c (default_tree_printer): Make extern.
10907
109082009-09-03 Richard Guenther <rguenther@suse.de>
10909 Diego Novillo <dnovillo@google.com>
10910
10911 * cgraph.c (cgraph_add_new_function): Remove gimplification.
10912 * cgraphunit.c (cgraph_expand_function): Do not emit
10913 associated thunks from here.
10914 (cgraph_emit_thunks): New.
10915 (cgraph_optimize): Call it.
10916 Return if any IPA pass finds an error.
10917 * varasm.c (finish_aliases_1): Ignore errorneous aliases used
10918 by thunks.
10919
109202009-09-03 Simon Baldwin <simonb@google.com>
10921 Rafael Espindola <espindola@google.com>
10922 Richard Guenther <rguenther@suse.de>
10923 Doug Kwan <dougkwan@google.com>
10924 Diego Novillo <dnovillo@google.com>
10925
10926 * tree.c: Include tree-pass.h, langhooks-def.h,
10927 diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
10928 (free_lang_data_in_type): New.
10929 (need_assembler_name_p): New.
10930 (free_lang_data_in_block): New.
10931 (free_lang_data_in_decl): New.
10932 (struct free_lang_data_d): New.
10933 (add_tree_to_fld_list): New.
10934 (find_decls_types_r): New.
10935 (get_eh_types_for_runtime): New.
10936 (find_decls_types_in_eh_region): New.
10937 (find_decls_types_in_node): New.
10938 (find_decls_types_in_var): New.
10939 (free_lang_data_in_cgraph): New.
10940 (free_lang_data): New.
10941 (gate_free_lang_data): New.
10942 (pass_ipa_free_lang_data): New.
10943
109442009-09-03 Diego Novillo <dnovillo@google.com>
10945
10946 * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
10947 * langhooks.h (struct lang_hooks): Add field free_lang_data.
10948 (lang_hooks): Remove const qualifier.
10949 * ipa.c (cgraph_remove_unreachable_nodes): Call
10950 remove_unreachable_alias_pairs.
10951 * except.c (add_type_for_runtime): Check if TYPE has
10952 already been converted.
10953 (lookup_type_for_runtime): Likewise.
10954 (check_handled): Handle converted types.
10955 * varasm.c (remove_unreachable_alias_pairs): New.
10956 * gimple.c: Include demangle.h.
10957 (gimple_decl_printable_name): New.
10958 (gimple_fold_obj_type_ref): New.
10959 * gimple.h (gimple_decl_printable_name): Declare.
10960 (gimple_fold_obj_type_ref): Declare.
10961 * passes.c (init_optimization_passes): Add pass
10962 pass_ipa_free_lang_data.
10963 * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
10964 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
10965
109662009-09-03 Diego Novillo <dnovillo@google.com>
10967
10968 * c-lang.c (lang_hooks): Remove const qualifier.
10969
02c8b4f8
LR
109702009-09-02 Loren James Rittle <ljrittle@acm.org>
10971
10972 * doc/install.texi (*-*-freebsd*): Update target information.
10973
adee59ae
AS
109742009-09-02 Anatoly Sokolov <aesok@post.ru>
10975
10976 * hard-reg-set.h (call_fixed_regs): Remove.
10977 * reginfo.c (call_fixed_regs): Remove.
10978 (init_reg_sets_1): Remove initialization of call_fixed_regs.
10979 (globalize_reg): Don't use call_fixed_regs.
10980 * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
10981 call_fixed_regs.
10982
28ed065e
MM
109832009-09-01 Michael Matz <matz@suse.de>
10984
10985 * expr.h (emit_storent_insn, expand_expr_real_1,
10986 expand_expr_real_2): Declare.
10987 * expr.c (emit_storent_insn, expand_expr_real_1,
10988 expand_expr_real_2): Export.
ed9d5a4a 10989 (store_expr): Setting and evaluating dont_return_target is useless.
28ed065e
MM
10990 (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
10991 LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
10992 * except.c (expand_resx_expr): Rename to ...
10993 (expand_resx_stmt): ... this. Rewrite to take gimple statement.
10994 * except.h (expand_resx_stmt): Declare.
10995 * stmt.c: Add include gimple.h
10996 (expand_asm_expr): Rename to ...
10997 (expand_asm_stmt): ... this. Rewrite to take gimple statement.
10998 (expand_case): Rewrite to take gimple statement.
10999 * tree.h (expand_asm_stmt): Declare.
11000 (expand_case): Change prototype.
11001 * Makefile.in (stmt.o): Depend on gimple.h.
11002 * builtins.c (expand_builtin_synchronize): Build gimple asm
11003 statement, not an ASM_EXPR.
11004 * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
11005 gimple_to_tree, release_stmt_tree): Remove.
11006 (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
11007 ggc_free, but hold comparison code and operands separately.
11008 Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
11009 (expand_call_stmt, expand_gimple_stmt_1,
11010 expand_gimple_stmt): New helpers.
11011 (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
11012 release_stmt_tree. Call expand_gimple_stmt instead.
11013 (expand_gimple_basic_block): Ditto.
11014
11015 * calls.c (emit_call_1): Don't look at EH regions here, make
11016 fntree parameter useless.
11017 (expand_call): New local rettype for TREE_TYPE(exp), use it
11018 throughout. Remove local p, use addr instead.
11019 Don't look at EH regions here.
11020
ce18efcb
VM
110212009-09-02 Vladimir Makarov <vmakarov@redhat.com>
11022
11023 * doc/invoke.texi (-fsched-pressure): Document it.
11024 (-fsched-reg-pressure-heuristic): Remove it.
14e58be0 11025
ce18efcb
VM
11026 * reload.c (ira.h): Include.
11027 (find_reloads): Add choosing reload on number of small spilled
11028 classes.
14e58be0 11029
ce18efcb
VM
11030 * haifa-sched.c (ira.h): Include.
11031 (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
11032 saved_reg_pressure, curr_reg_live, saved_reg_live,
11033 region_ref_regs): New variables.
11034 (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
11035 initiate_reg_pressure_info, setup_ref_regs,
11036 initiate_bb_reg_pressure_info, save_reg_pressure,
11037 restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
11038 functions.
11039 (setup_insn_reg_pressure_info): New function.
11040 (rank_for_schedule): Add pressure checking and insn issue time.
11041 Remove comparison of insn reg weights.
11042 (ready_sort): Set insn reg pressure info.
11043 (update_register_pressure, setup_insn_max_reg_pressure,
11044 update_reg_and_insn_max_reg_pressure,
11045 sched_setup_bb_reg_pressure_info): New functions.
ed9d5a4a 11046 (schedule_insn): Add code for printing and updating reg pressure info.
ce18efcb
VM
11047 (find_set_reg_weight, find_insn_reg_weight): Remove.
11048 (ok_for_early_queue_removal): Do nothing if pressure_only_p.
11049 (debug_ready_list): Print reg pressure info.
11050 (schedule_block): Ditto. Check insn issue time.
11051 (sched_init): Set up sched_pressure_p. Allocate and set up some
11052 reg pressure related info.
11053 (sched_finish): Free some reg pressure related info.
11054 (fix_tick_ready): Make insn always ready if pressure_p.
11055 (init_h_i_d): Don't call find_insn_reg_weight.
11056 (haifa_finish_h_i_d): Free insn reg pressure info.
14e58be0 11057
ce18efcb
VM
11058 * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
11059 ira_memory_move_cost, ira_class_hard_regs,
11060 ira_class_hard_regs_num, ira_no_alloc_regs,
11061 ira_available_class_regs, ira_reg_class_cover_size,
11062 ira_reg_class_cover, ira_class_translate): Move to ira.h.
11063
11064 * ira-lives.c (single_reg_class): Check mode to find how many
11065 registers are necessary for operand.
11066 (ira_implicitly_set_insn_hard_regs): New.
11067
11068 * common.opt (fsched-pressure): New options.
11069 (fsched-reg-pressure-heuristic): Remove.
11070
11071 * ira.c (setup_eliminable_regset): Rename to
11072 ira_setup_eliminable_regset. Make it external.
11073 (expand_reg_info): Pass cover class to setup_reg_classes.
11074 (ira): Call resize_reg_info instead of allocate_reg_info.
11075
11076 * sched-deps.c: Include ira.h.
11077 (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
11078 (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
11079 reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
11080 mark_insn_hard_regno_birth, mark_insn_reg_birth,
11081 mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
11082 mark_insn_reg_store, mark_insn_reg_clobber,
11083 setup_insn_reg_pressure_info): New.
11084 (sched_analyze_1): Update implicit_reg_pending_uses.
11085 (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
11086 Use them to create dependencies. Set insn reg uses and pressure
11087 info. Process reg_pending_uses in one place.
11088 (free_deps): Free implicit sets.
11089 (remove_from_deps): Remove implicit sets if necessary. Check
11090 implicit sets when clearing reg_last_in_use.
11091 (init_deps_global): Clear implicit_reg_pending_clobbers and
11092 implicit_reg_pending_uses.
14e58be0 11093
ce18efcb
VM
11094 * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
11095 ira_memory_move_cost, ira_class_hard_regs,
11096 ira_class_hard_regs_num, ira_no_alloc_regs,
11097 ira_available_class_regs, ira_reg_class_cover_size,
11098 ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
11099 (ira_setup_eliminable_regset, ira_set_pseudo_classes,
11100 ira_implicitly_set_insn_hard_regs): New prototypes.
14e58be0 11101
ce18efcb
VM
11102 * ira-costs.c (pseudo_classes_defined_p, allocno_p,
11103 cost_elements_num): New variables.
11104 (allocno_costs, total_costs): Rename to costs and
11105 total_allocno_costs.
11106 (COSTS_OF_ALLOCNO): Rename to COSTS.
11107 (allocno_pref): Rename to pref.
11108 (allocno_pref_buffer): Rename to pref_buffer.
11109 (common_classes): Rename to regno_cover_class.
11110 (COST_INDEX): New.
11111 (record_reg_classes): Set allocno attributes only if allocno_p.
ed9d5a4a 11112 (record_address_regs): Ditto. Use COST_INDEX instead of ALLOCNO_NUM.
ce18efcb
VM
11113 (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
11114 and COSTS_OF_ALLOCNO.
11115 (print_costs): Rename to print_allocno_costs.
11116 (print_pseudo_costs): New.
11117 (process_bb_node_for_costs): Split into 2 functions with new
11118 function process_bb_for_costs. Pass BB to process_bb_for_costs.
11119 (find_allocno_class_costs): Rename to find_costs_and_classes. Add
11120 new parameter dump_file. Use cost_elements_num instead of
11121 ira_allocnos_num. Make one iteration if preferred classes were
11122 already calculated for scheduler. Make 2 versions of code
11123 depending on allocno_p.
11124 (setup_allocno_cover_class_and_costs): Check allocno_p. Use
11125 regno_cover_class and COSTS instead of common_classes and
11126 COSTS_OF_ALLOCNO.
11127 (init_costs, finish_costs): New.
11128 (ira_costs): Set up allocno_p and cost_elements_num. Call
11129 init_costs and finish_costs.
11130 (ira_set_pseudo_classes): New.
11131
11132 * rtl.h (allocate_reg_info): Remove.
11133 (resize_reg_info): Change return type.
11134 (reg_cover_class): New.
11135 (setup_reg_classes): Add new parameter.
14e58be0 11136
ce18efcb 11137 * sched-int.h (struct deps_reg): New member implicit_sets.
ed9d5a4a 11138 (sched_pressure_p, sched_regno_cover_class): New external definitions.
ce18efcb
VM
11139 (INCREASE_BITS): New macro.
11140 (struct reg_pressure_data, struct reg_use_data): New.
11141 (struct _haifa_insn_data): Remove reg_weight. Add members
11142 reg_pressure, reg_use_list, reg_set_list, and
11143 reg_pressure_excess_cost_change.
11144 (struct deps): New member implicit_sets.
11145 (pressure_p): New variable.
11146 (COVER_CLASS_BITS, INCREASE_BITS): New macros.
11147 (struct reg_pressure_data, struct reg_use_data): New.
11148 (INSN_REG_WEIGHT): Remove.
11149 (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
ed9d5a4a 11150 INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
ce18efcb
VM
11151 (sched_init_region_reg_pressure_info,
11152 sched_setup_bb_reg_pressure_info): New prototypes.
14e58be0
UB
11153
11154 * reginfo.c (struct reg_pref): New member coverclass.
ce18efcb
VM
11155 (reg_cover_class): New function.
11156 (reginfo_init, pass_reginfo_init): Move after free_reg_info.
11157 (reg_info_size): New variable.
11158 (allocate_reg_info): Make static. Setup reg_info_size.
11159 (resize_reg_info): Use reg_info_size. Return flag of resizing.
11160 (setup_reg_classes): Add a new parameter. Setup cover class too.
11161
ed9d5a4a
UB
11162 * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
11163 the dependencies.
ce18efcb
VM
11164
11165 * sched-rgn.c (deps_join): Set up implicit_sets.
11166 (schedule_region): Set up region and basic blocks pressure
11167 relative info.
14e58be0 11168
ce18efcb
VM
11169 * passes.c (init_optimization_passes): Move
11170 pass_subregs_of_mode_init before pass_sched.
14e58be0 11171
fef94f76
MJ
111722009-09-02 Martin Jambor <mjambor@suse.cz>
11173
11174 * tree-sra.c (struct access): New field grp_hint.
11175 (dump_access): Dump grp_hint.
11176 (sort_and_splice_var_accesses): Set grp_hint if a group is read
11177 multiple times.
11178 (analyze_access_subtree): Only scalarize accesses with grp_hint set or
11179 those which have been specifically read and somehow written to.
11180 (propagate_subacesses_accross_link): Set grp_hint of right child and
11181 also possibly of the left child.
11182
ded97380
JJ
111832009-09-02 Jakub Jelinek <jakub@redhat.com>
11184
11185 * tree-object-size.c (addr_object_size): Always use object_size_type
11186 0 or 2 when determining the pointer pointed object size.
11187
63838157
RG
111882009-09-02 Richard Guenther <rguenther@suse.de>
11189
11190 Revert
11191 2009-08-31 Richard Guenther <rguenther@suse.de>
11192
11193 * builtins.c (fold_builtin_memory_op): Use the alias oracle
11194 to query if the memory regions for memmove overlap.
11195 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
11196 asserts on pointers, instead deal with odd trees.
11197 (ptr_derefs_may_alias_p): Likewise.
11198 (refs_may_alias_p_1): Constructor bases also never alias.
11199
c68e4eed
CB
112002009-08-01 Christian Bruel <christian.bruel@st.com>
11201
11202 Revert:
11203 2009-07-31 Christian Bruel <christian.bruel@st.com>
11204 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
14e58be0 11205
8fc68cba
AO
112062009-09-01 Alexandre Oliva <aoliva@redhat.com>
11207
11208 * doc/invoke.texi (-fvar-tracking-assignments): New.
11209 (-fvar-tracking-assignments-toggle): New.
11210 (-fdump-final-insns=file): Mark filename as optional.
11211 (--param min-nondebug-insn-uid): New.
11212 (-gdwarf-@{version}): Mention version 4.
11213 * opts.c (common_handle_option): Accept it.
11214 * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
11215 * regrename.c (regrename_optimize): Drop last. Don't count debug
11216 insns as uses. Don't reject change because of debug insn.
11217 (do_replace): Reject DEBUG_INSN as chain starter. Take base_regno
ed9d5a4a 11218 from the chain starter, and check for inexact matches in DEBUG_INSNS.
8fc68cba
AO
11219 (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
11220 (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
11221 * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
11222 * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
11223 * doc/gimple.texi (is_gimple_debug): New.
11224 (gimple_debug_bind_p): New.
11225 (is_gimple_call, gimple_assign_cast_p): End sentence with period.
11226 * doc/install.texi (bootstrap-debug): More details.
11227 (bootstrap-debug-big, bootstrap-debug-lean): Document.
11228 (bootstrap-debug-lib): More details.
11229 (bootstrap-debug-ckovw): Update.
11230 (bootstrap-time): New.
11231 * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
11232 (insert_phi_nodes_for): Insert debug stmts.
11233 (rewrite_stmt): Take iterator. Insert debug stmts.
11234 (rewrite_enter_block): Adjust.
11235 (maybe_replace_use_in_debug_stmt): New.
11236 (rewrite_update_stmt): Use it.
11237 (mark_use_interesting): Return early for debug stmts.
11238 * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
11239 stmts before replacing stmt.
11240 (move_computations_stmt): Likewise.
11241 * ira-conflicts.c (add_copies): Skip debug insns.
11242 * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
11243 (regstat_bb_compute_ri): Skip debug insns.
11244 * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
11245 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
11246 check_loop_closed_ssa_stmt): Skip debug stmts.
11247 * tree-tailcall.c (find_tail_calls): Likewise.
11248 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
11249 * tree.h (MAY_HAVE_DEBUG_STMTS): New.
11250 (build_var_debug_value_stat): Declare.
11251 (build_var_debug_value): Define.
11252 (target_for_debug_bind): Declare.
11253 * reload.c (find_equiv_reg): Skip debug insns.
11254 * rtlanal.c (reg_used_between_p): Skip debug insns.
11255 (side_effects_p): Likewise.
11256 (canonicalize_condition): Likewise.
14e58be0 11257 * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
8fc68cba
AO
11258 insns never depend on debug insns.
11259 (create_ddg_dep_no_link): Likewise.
11260 (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
11261 Don't add inter-loop dependencies for debug insns.
11262 (build_intra_loop_deps): Likewise.
11263 (create_ddg): Count debug insns.
11264 * ddg.h (struct ddg::num_debug): New.
11265 (num_backargs): Pair up with previous int field.
11266 * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
11267 -fcompare-debug-second.
11268 * final.c (get_attr_length_1): Skip debug insns.
11269 (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
11270 * gcc.c (invoke_as): Call compare-debug-dump-opt.
11271 (driver_self_specs): Map -fdump-final-insns to
11272 -fdump-final-insns=..
11273 (get_local_tick): New.
11274 (compare_debug_dump_opt_spec_function): Test for . argument and
11275 compute output name. Compute temp output spec without flag name.
11276 Compute -frandom-seed.
11277 (OPT): Undef after use.
11278 * cfgloopanal.c (num_loop_insns): Skip debug insns.
11279 (average_num_loop_insns): Likewise.
11280 * params.h (MIN_NONDEBUG_INSN_UID): New.
11281 * gimple.def (GIMPLE_DEBUG): New.
11282 * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
11283 * auto-inc-dec.c (merge_in_block): Skip debug insns.
11284 (merge_in_block): Fix whitespace.
11285 * toplev.c (flag_var_tracking): Update comment.
11286 (flag_var_tracking_assignments): New.
11287 (flag_var_tracking_assignments_toggle): New.
11288 (process_options): Don't open final insns dump file if we're not
11289 going to write to it. Compute defaults for var_tracking.
11290 * df-scan.c (df_insn_rescan_debug_internal): New.
11291 (df_uses_record): Handle debug insns.
11292 * haifa-sched.c (ready): Initialize n_debug.
11293 (contributes_to_priority): Skip debug insns.
11294 (dep_list_size): New.
11295 (priority): Use it.
14e58be0 11296 (rank_for_schedule): Likewise. Schedule debug insns as soon as
8fc68cba
AO
11297 they're ready. Disregard previous debug insns to make decisions.
11298 (queue_insn): Never queue debug insns.
11299 (ready_add, ready_remove_first, ready_remove): Count debug insns.
11300 (schedule_insn): Don't reject debug insns because of issue rate.
11301 (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
11302 (queue_to_ready): Skip and discount debug insns.
11303 (choose_ready): Let debug insns through.
11304 (schedule_block): Check boundary debug insns. Discount debug
11305 insns, schedule them early. Adjust whitespace.
11306 (set_priorities): Check for boundary debug insns.
11307 (add_jump_dependencies): Use dep_list_size.
11308 (prev_non_location_insn): New.
11309 (check_cfg): Use it.
11310 * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
11311 stmts.
11312 (remove_unused_ivs): Reset debug stmts.
11313 * modulo-sched.c (const_iteration_count): Skip debug insns.
11314 (res_MII): Discount debug insns.
11315 (loop_single_full_bb_p): Skip debug insns.
11316 (sms_schedule): Likewise.
11317 (sms_schedule_by_order): Likewise.
11318 (ps_has_conflicts): Likewise.
11319 * caller-save.c (refmarker_fn): New.
11320 (save_call_clobbered_regs): Replace regs with saved mem in
11321 debug insns.
11322 (mark_referenced_regs): Take pointer, mark and arg. Adjust.
11323 Call refmarker_fn mark for hardregnos.
11324 (mark_reg_as_referenced): New.
11325 (replace_reg_with_saved_mem): New.
11326 * ipa-pure-const.c (check_stmt): Skip debug stmts.
11327 * cse.c (cse_insn): Canonicalize debug insns. Skip them when
11328 searching back.
11329 (cse_extended_basic_block): Skip debug insns.
11330 (count_reg_usage): Likewise.
11331 (is_dead_reg): New, split out of...
11332 (set_live_p): ... here.
11333 (insn_live_p): Use it for debug insns.
11334 * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
11335 (execute_optimize_stdarg): Likewise.
11336 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
11337 * tree-ssa-propagate.c (substitute_and_fold): Don't regard
11338 changes in debug stmts as changes.
11339 * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
11340 (moveup_expr): Don't move across debug insns. Don't move
11341 debug insn if it would create a bookkeeping block.
11342 (moveup_expr_cached): Don't use cache for debug insns that
11343 are heads of blocks.
11344 (compute_av_set_inside_bb): Skip debug insns.
11345 (sel_rank_for_schedule): Schedule debug insns first. Remove
11346 dead code.
11347 (block_valid_for_bookkeeping_p); Support lax searches.
11348 (create_block_for_bookkeeping): Adjust block numbers when
11349 encountering debug-only blocks.
11350 (find_place_for_bookkeeping): Deal with debug-only blocks.
11351 (generate_bookkeeping_insn): Accept no place to insert.
11352 (remove_temp_moveop_nops): New argument full_tidying.
11353 (prepare_place_to_insert): Deal with debug insns.
11354 (advance_state_on_fence): Debug insns don't start cycles.
11355 (update_boundaries): Take fence as argument. Deal with
11356 debug insns.
11357 (schedule_expr_on_boundary): No full_tidying on debug insns.
11358 (fill_insns): Deal with debug insns.
11359 (track_scheduled_insns_and_blocks): Don't count debug insns.
11360 (need_nop_to_preserve_insn_bb): New, split out of...
11361 (remove_insn_from_stream): ... this.
11362 (fur_orig_expr_not_found): Skip debug insns.
11363 * rtl.def (VALUE): Move up.
11364 (DEBUG_INSN): New.
ed9d5a4a 11365 * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
8fc68cba
AO
11366 (nearest_common_dominator_of_uses): Take debug_stmts argument.
11367 Set it if debug stmts are found.
11368 (statement_sink_location): Skip debug stmts. Propagate
11369 moving defs into debug stmts.
11370 * ifcvt.c (first_active_insn): Skip debug insns.
11371 (last_active_insns): Likewise.
11372 (cond_exec_process_insns): Likewise.
11373 (noce_process_if_block): Likewise.
11374 (check_cond_move_block): Likewise.
11375 (cond_move_convert_if_block): Likewise.
11376 (block_jumps_and_fallthru_p): Likewise.
11377 (dead_or_predicable): Likewise.
11378 * dwarf2out.c (debug_str_hash_forced): New.
11379 (find_AT_string): Add comment.
11380 (gen_label_for_indirect_string): New.
11381 (get_debug_string_label): New.
11382 (AT_string_form): Use it.
11383 (mem_loc_descriptor): Handle non-TLS symbols. Handle MINUS , DIV,
11384 MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING. Accept but
11385 discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
11386 several operations that cannot be represented with DWARF opcodes.
11387 (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND. Require
11388 dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
11389 (dwarf2out_var_location): Take during-call mark into account.
11390 (output_indirect_string): Update comment. Output if there are
11391 label and references.
11392 (prune_indirect_string): New.
11393 (prune_unused_types): Call it if debug_str_hash_forced.
11394 More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
11395 (dw_long_long_const): Remove.
11396 (struct dw_val_struct): Change val_long_long type to rtx.
11397 (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
11398 val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
11399 (output_die): Likewise. Use HOST_BITS_PER_WIDE_INT size of each
11400 component instead of HOST_BITS_PER_LONG.
14e58be0 11401 (output_loc_operands): Likewise. For const8* assert
8fc68cba
AO
11402 HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
11403 (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
11404 rather than HOST_BITS_PER_LONG is >= 64.
11405 (add_AT_long_long): Remove val_hi and val_lo arguments, add
11406 val_const_double.
11407 (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
11408 HOST_BITS_PER_LONG for dw_val_class_long_long.
11409 (add_const_value_attribute): Adjust add_AT_long_long caller. Don't
11410 handle TLS SYMBOL_REFs. If CONST wraps a constant, tail recurse.
11411 (dwarf_stack_op_name): Handle DW_OP_implicit_value and
11412 DW_OP_stack_value.
11413 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
11414 Handle DW_OP_implicit_value.
11415 (extract_int): Move prototype earlier.
11416 (mem_loc_descriptor): For SUBREG punt if inner
11417 mode size is wider than DWARF2_ADDR_SIZE. Handle SIGN_EXTEND
11418 and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}. Handle
11419 EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
11420 UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
11421 (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
11422 instead of Pmode size.
11423 (loc_descriptor): Add MODE argument. Handle CONST_INT, CONST_DOUBLE,
11424 CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
11425 attempt to handle other expressions. Don't handle TLS SYMBOL_REFs.
11426 (concat_loc_descriptor, concatn_loc_descriptor,
11427 loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
11428 (add_location_or_const_value_attribute): Likewise. For single
11429 location loc_lists attempt to use add_const_value_attribute
11430 for constant decls. Add DW_AT_const_value even if
11431 NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
11432 in its expression.
11433 * cfgbuild.c (inside_basic_block_p): Handle debug insns.
11434 (control_flow_insn_p): Likewise.
ed9d5a4a 11435 * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
8fc68cba
AO
11436 (separate_decls_in_region_debug_bind): New.
11437 (separate_decls_in_region): Process debug bind stmts afterwards.
11438 * recog.c (verify_changes): Handle debug insns.
11439 (extract_insn): Likewise.
11440 (peephole2_optimize): Skip debug insns.
11441 * dse.c (scan_insn): Skip debug insns.
11442 * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
11443 Pass it on.
11444 (setup_id_for_insn): Handle debug insns.
11445 (maybe_tidy_empty_bb): Adjust whitespace.
11446 (tidy_control_flow): Skip debug insns.
11447 (sel_remove_insn): Adjust for debug insns.
11448 (sel_estimate_number_of_insns): Skip debug insns.
11449 (create_insn_rtx_from_pattern): Handle debug insns.
11450 (create_copy_of_insn_rtx): Likewise.
11451 * sel-sched-.h (sel_bb_end): Declare.
11452 (sel_bb_empty_or_nop_p): New.
11453 (get_all_loop_exits): Use it.
11454 (_eligible_successor_edge_p): Likewise.
11455 (return_nop_to_pool): Adjust.
11456 * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
11457 * ira-lives.c (process_bb_node_lives): Skip debug insns.
11458 * gimple-pretty-print.c (dump_gimple_debug): New.
11459 (dump_gimple_stmt): Use it.
11460 (dump_bb_header): Skip gimple debug stmts.
11461 * regmove.c (optimize_reg_copy_1): Discount debug insns.
11462 (fixup_match_2): Likewise.
11463 (regmove_backward_pass): Likewise. Simplify combined
11464 replacement. Handle debug insns.
11465 * function.c (instantiate_virtual_regs): Handle debug insns.
11466 * function.h (struct emit_status): Add x_cur_debug_insn_uid.
11467 * print-rtl.h: Include cselib.h.
ed9d5a4a 11468 (print_rtx): Print VALUEs. Split out and recurse for VAR_LOCATIONs.
8fc68cba
AO
11469 * df.h (df_inns_rescan_debug_internal): Declare.
11470 * gcse.c (alloc_hash_table): Estimate n_insns.
11471 (cprop_insn): Don't regard debug insns as changes.
11472 (bypass_conditional_jumps): Skip debug insns.
11473 (one_pre_gcse_pass): Adjust.
11474 (one_code_hoisting_pass): Likewise.
11475 (compute_ld_motion_mems): Skip debug insns.
11476 (one_cprop_pass): Adjust.
11477 * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
11478 (if_convertible_stmt_p): Handle debug stmts.
11479 * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
11480 * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
11481 * ira-build.c (create_bb_allocnos): Skip debug insns.
11482 * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
11483 (has_single_use): Likewise.
11484 (single_imm_use): Likewise.
11485 (num_imm_uses): Likewise.
11486 * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
11487 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
11488 (create_outofssa_var_map): Likewise.
11489 * lower-subreg.c (adjust_decomposed_uses): New.
11490 (resolve_debug): New.
11491 (decompose_multiword_subregs): Use it.
11492 * tree-dfa.c (find_referenced_vars): Skip debug stmts.
11493 * emit-rtl.c: Include params.h.
11494 (cur_debug_insn_uid): Define.
11495 (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
11496 (copy_rtx_if_shared_1): Handle debug insns.
11497 (reset_used_flags): Likewise.
11498 (set_used_flags): LIkewise.
11499 (get_max_insn_count): New.
11500 (next_nondebug_insn): New.
11501 (prev_nondebug_insn): New.
11502 (make_debug_insn_raw): New.
11503 (emit_insn_before_noloc): Handle debug insns.
11504 (emit_jump_insn_before_noloc): Likewise.
11505 (emit_call_insn_before_noloc): Likewise.
11506 (emit_debug_insn_before_noloc): New.
11507 (emit_insn_after_noloc): Handle debug insns.
11508 (emit_jump_insn_after_noloc): Likewise.
11509 (emit_call_insn_after_noloc): Likewise.
11510 (emit_debug_insn_after_noloc): Likewise.
11511 (emit_insn_after): Take loc from earlier non-debug insn.
11512 (emit_jump_insn_after): Likewise.
11513 (emit_call_insn_after): Likewise.
11514 (emit_debug_insn_after_setloc): New.
11515 (emit_debug_insn_after): New.
11516 (emit_insn_before): Take loc from later non-debug insn.
11517 (emit_jump_insn_before): Likewise.
11518 (emit_call_insn_before): Likewise.
11519 (emit_debug_insn_before_setloc): New.
11520 (emit_debug_insn_before): New.
11521 (emit_insn): Handle debug insns.
11522 (emit_debug_insn): New.
11523 (emit_jump_insn): Handle debug insns.
11524 (emit_call_insn): Likewise.
11525 (emit): Likewise.
11526 (init_emit): Take min-nondebug-insn-uid into account.
11527 Initialize cur_debug_insn_uid.
11528 (emit_copy_of_insn_after): Handle debug insns.
11529 * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
11530 location of single rhs in place.
11531 (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
11532 (floor_sdiv_adjust): New.
11533 (cell_sdiv_adjust): New.
11534 (cell_udiv_adjust): New.
11535 (round_sdiv_adjust): New.
11536 (round_udiv_adjust): New.
11537 (wrap_constant): Moved from cselib.
11538 (unwrap_constant): New.
11539 (expand_debug_expr): New.
11540 (expand_debug_locations): New.
11541 (expand_gimple_basic_block): Drop hiding redeclaration. Expand
11542 debug bind stmts.
11543 (gimple_expand_cfg): Expand debug locations.
11544 * cselib.c: Include tree-pass.h.
11545 (struct expand_value_data): New.
11546 (cselib_record_sets_hook): New.
11547 (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
11548 (cselib_clear_table): Move, and implemnet in terms of...
11549 (cselib_reset_table_with_next_value): ... this.
11550 (cselib_get_next_unknown_value): New.
11551 (discard_useless_locs): Don't discard preserved values.
11552 (cselib_preserve_value): New.
11553 (cselib_preserved_value_p): New.
11554 (cselib_preserve_definitely): New.
11555 (cselib_clear_preserve): New.
11556 (cselib_preserve_only_values): New.
11557 (new_cselib_val): Take rtx argument. Dump it in details.
11558 (cselib_lookup_mem): Adjust.
11559 (expand_loc): Take regs_active in struct. Adjust. Silence
11560 dumps unless details are requested.
11561 (cselib_expand_value_rtx_cb): New.
11562 (cselib_expand_value_rtx): Rename and reimplment in terms of...
11563 (cselib_expand_value_rtx_1): ... this. Adjust. Silence dumps
11564 without details. Copy more subregs. Try to resolve values
11565 using a callback. Wrap constants.
11566 (cselib_subst_to_values): Adjust.
11567 (cselib_log_lookup): New.
11568 (cselib_lookup): Call it.
ed9d5a4a 11569 (cselib_invalidate_regno): Don't count preserved values as useless.
8fc68cba
AO
11570 (cselib_invalidate_mem): Likewise.
11571 (cselib_record_set): Likewise.
11572 (struct set): Renamed to cselib_set, moved to cselib.h.
11573 (cselib_record_sets): Adjust. Call hook.
11574 (cselib_process_insn): Reset table when it would be cleared.
11575 (dump_cselib_val): New.
11576 (dump_cselib_table): New.
11577 * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
11578 (remove_forwarder_block): Support moving debug stmts.
11579 * cselib.h (cselib_record_sets_hook): Declare.
11580 (cselib_expand_callback): New type.
11581 (cselib_expand_value_rtx_cb): Declare.
11582 (cselib_reset_table_with_next_value): Declare.
11583 (cselib_get_next_unknown_value): Declare.
11584 (cselib_preserve_value): Declare.
11585 (cselib_preserved_value_p): Declare.
11586 (cselib_preserve_only_values): Declare.
11587 (dump_cselib_table): Declare.
11588 * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
11589 (try_crossjump_to_edge): Likewise.
11590 (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
11591 dominated blocks when debug stmts are present.
11592 * simplify-rtx.c (delegitimize_mem_from_attrs): New.
11593 * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
11594 (set_var_live_on_entry): Likewise.
11595 * loop-invariant.c (find_invariants_bb): Skip debug insns.
11596 * cfglayout.c (curr_location, last_location): Make static.
11597 (set_curr_insn_source_location): Don't avoid bouncing.
11598 (get_curr_insn_source_location): New.
11599 (get_curr_insn_block): New.
11600 (duplicate_insn_chain): Handle debug insns.
11601 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
11602 into debug stmts.
11603 * common.opt (fcompare-debug): Move to sort order.
11604 (fdump-unnumbered-links): Likewise.
11605 (fvar-tracking-assignments): New.
11606 (fvar-tracking-assignments-toggle): New.
11607 * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
11608 because of debug stmts.
11609 (mark_stmt_if_obviously_necessary): Mark debug stmts.
11610 (eliminate_unnecessary_stmts): Walk dominated blocks before
11611 dominators.
11612 * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
11613 * ira.c (memref_used_between_p): Skip debug insns.
11614 (update_equiv_regs): Likewise.
11615 * sched-deps.c (sd_lists_size): Accept empty list.
11616 (sd_init_insn): Mark debug insns.
11617 (sd_finish_insn): Unmark them.
11618 (sd_add_dep): Reject non-debug deps on debug insns.
11619 (fixup_sched_groups): Give debug insns group treatment.
11620 Skip debug insns.
11621 (sched_analyze_reg): Don't mark debug insns for sched before call.
11622 (sched_analyze_2): Handle debug insns.
11623 (sched_analyze_insn): Compute next non-debug insn. Handle debug
11624 insns.
11625 (deps_analyze_insn): Handle debug insns.
11626 (deps_start_bb): Skip debug insns.
11627 (init_deps): Initialize last_debug_insn.
11628 * tree-ssa.c (target_for_debug_bind): New.
11629 (find_released_ssa_name): New.
11630 (propagate_var_def_into_debug_stmts): New.
11631 (propagate_defs_into_debug_stmts): New.
11632 (verify_ssa): Skip debug bind stmts without values.
11633 (warn_uninialized_vars): Skip debug stmts.
11634 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
11635 * rtl.c (rtx_equal_p_cb): Handle VALUEs.
11636 (rtx_equal_p): Likewise.
11637 * ira-costs.c (scan_one_insn): Skip debug insns.
11638 (process_bb_node_for_hard_reg_moves): Likewise.
11639 * rtl.h (DEBUG_INSN_P): New.
11640 (NONDEBUG_INSN_P): New.
11641 (MAY_HAVE_DEBUG_INSNS): New.
11642 (INSN_P): Accept debug insns.
11643 (RTX_FRAME_RELATED_P): Likewise.
11644 (INSN_DELETED_P): Likewise
11645 (PAT_VAR_LOCATION_DECL): New.
11646 (PAT_VAR_LOCATION_LOC): New.
11647 (PAT_VAR_OCATION_STATUS): New.
11648 (NOTE_VAR_LOCATION_DECL): Reimplement.
11649 (NOTE_VAR_LOCATION_LOC): Likewise.
11650 (NOTE_VAR_LOCATION_STATUS): Likewise.
11651 (INSN_VAR_LOCATION): New.
11652 (INSN_VAR_LOCATION_DECL): New.
11653 (INSN_VAR_LOCATION_LOC): New.
11654 (INSN_VAR_LOCATION_STATUS): New.
11655 (gen_rtx_UNKNOWN_VAR_LOC): New.
11656 (VAR_LOC_UNKNOWN_P): New.
11657 (NOTE_DURING_CALL_P): New.
11658 (SCHED_GROUP_P): Accept debug insns.
11659 (emit_debug_insn_before): Declare.
11660 (emit_debug_insn_before_noloc): Declare.
11661 (emit_debug_insn_beore_setloc): Declare.
11662 (emit_debug_insn_after): Declare.
11663 (emit_debug_insn_after_noloc): Declare.
11664 (emit_debug_insn_after_setloc): Declare.
11665 (emit_debug_insn): Declare.
11666 (make_debug_insn_raw): Declare.
11667 (prev_nondebug_insn): Declare.
11668 (next_nondebug_insn): Declare.
11669 (delegitimize_mem_from_attrs): Declare.
11670 (get_max_insn_count): Declare.
11671 (wrap_constant): Declare.
11672 (unwrap_constant): Declare.
11673 (get_curr_insn_source_location): Declare.
11674 (get_curr_insn_block): Declare.
11675 * tree-inline.c (insert_debug_decl_map): New.
11676 (processing_debug_stmt): New.
11677 (remap_decl): Don't create new mappings in debug stmts.
11678 (remap_gimple_op_r): Don't add references in debug stmts.
11679 (copy_tree_body_r): Likewise.
11680 (remap_gimple_stmt): Handle debug bind stmts.
11681 (copy_bb): Skip debug stmts.
11682 (copy_edges_for_bb): Likewise.
11683 (copy_debug_stmt): New.
11684 (copy_debug_stmts): New.
11685 (copy_body): Copy debug stmts at the end.
11686 (insert_init_debug_bind): New.
11687 (insert_init_stmt): Take id. Skip and emit debug stmts.
ed9d5a4a 11688 (setup_one_parameter): Remap variable earlier, register debug mapping.
8fc68cba
AO
11689 (estimate_num_insns): Skip debug stmts.
11690 (expand_call_inline): Preserve debug_map.
11691 (optimize_inline_calls): Check for no debug_stmts left-overs.
11692 (unsave_expr_now): Preserve debug_map.
11693 (copy_gimple_seq_and_replace_locals): Likewise.
11694 (tree_function_versioning): Check for no debug_stmts left-overs.
11695 Init and destroy debug_map as needed. Split edges unconditionally.
11696 (build_duplicate_type): Init and destroy debug_map as needed.
11697 * tree-inline.h: Include gimple.h instead of pointer-set.h.
11698 (struct copy_body_data): Add debug_stmts and debug_map.
11699 * sched-int.h (struct ready_list): Add n_debug.
11700 (struct deps): Add last_debug_insn.
11701 (DEBUG_INSN_SCHED_P): New.
11702 (BOUNDARY_DEBUG_INSN_P): New.
11703 (SCHEDULE_DEBUG_INSN_P): New.
11704 (sd_iterator_cond): Accept empty list.
11705 * combine.c (create_log_links): Skip debug insns.
11706 (combine_instructions): Likewise.
11707 (cleanup_auto_inc_dec): New. From Jakub Jelinek: Make sure the
11708 return value is always unshared.
11709 (struct rtx_subst_pair): New.
11710 (auto_adjust_pair): New.
11711 (propagate_for_debug_subst): New.
11712 (propagate_for_debug): New.
11713 (try_combine): Skip debug insns. Propagate removed defs into
11714 debug insns.
11715 (next_nonnote_nondebug_insn): New.
11716 (distribute_notes): Use it. Skip debug insns.
11717 (distribute_links): Skip debug insns.
11718 * tree-outof-ssa.c (set_location_for_edge): Likewise.
11719 * resource.c (mark_target_live_regs): Likewise.
11720 * var-tracking.c: Include cselib.h and target.h.
11721 (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
11722 MO_VAL_SET.
11723 (micro_operation_type_name): New.
11724 (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
11725 (struct micro_operation_def): Update comments.
11726 (decl_or_value): New type. Use instead of decls.
11727 (struct emit_note_data_def): Add vars.
11728 (struct attrs_def): Use decl_or_value.
11729 (struct variable_tracking_info_def): Add permp, flooded.
11730 (struct location_chain_def): Update comment.
11731 (struct variable_part_def): Use decl_or_value.
11732 (struct variable_def): Make var_part a variable length array.
11733 (valvar_pool): New.
11734 (scratch_regs): New.
11735 (cselib_hook_called): New.
11736 (dv_is_decl_p): New.
11737 (dv_is_value_p): New.
11738 (dv_as_decl): New.
11739 (dv_as_value): New.
11740 (dv_as_opaque): New.
11741 (dv_onepart_p): New.
11742 (dv_pool): New.
11743 (IS_DECL_CODE): New.
11744 (check_value_is_not_decl): New.
11745 (dv_from_decl): New.
11746 (dv_from_value): New.
11747 (dv_htab_hash): New.
11748 (variable_htab_hash): Use it.
11749 (variable_htab_eq): Support values.
11750 (variable_htab_free): Free from the right pool.
11751 (attrs_list_member, attrs_list_insert): Use decl_or_value.
11752 (attrs_list_union): Adjust.
11753 (attrs_list_mpdv_union): New.
11754 (tie_break_pointers): New.
11755 (canon_value_cmp): New.
11756 (unshare_variable): Return possibly-modified slot.
11757 (vars_copy_1): Adjust.
11758 (var_reg_decl_set): Adjust. Split out of...
11759 (var_reg_set): ... this.
11760 (get_init_value): Adjust.
11761 (var_reg_delete_and_set): Adjust.
11762 (var_reg_delete): Adjust.
11763 (var_regno_delete): Adjust.
11764 (var_mem_decl_set): Split out of...
11765 (var_mem_set): ... this.
11766 (var_mem_delete_and_set): Adjust.
11767 (var_mem_delete): Adjust.
11768 (val_store): New.
11769 (val_reset): New.
11770 (val_resolve): New.
11771 (variable_union): Adjust. Speed up merge of 1-part vars.
11772 (variable_canonicalize): Use unshared slot.
11773 (VALUED_RECURSED_INTO): New.
11774 (find_loc_in_1pdv): New.
11775 (struct dfset_merge): New.
11776 (insert_into_intersection): New.
11777 (intersect_loc_chains): New.
11778 (loc_cmp): New.
11779 (canonicalize_loc_order_check): New.
11780 (canonicalize_values_mark): New.
11781 (canonicalize_values_star): New.
11782 (variable_merge_over_cur): New.
11783 (variable_merge_over_src): New.
11784 (dataflow_set_merge): New.
11785 (dataflow_set_equiv_regs): New.
11786 (remove_duplicate_values): New.
11787 (struct dfset_post_merge): New.
11788 (variable_post_merge_new_vals): New.
11789 (variable_post_merge_perm_vals): New.
11790 (dataflow_post_merge_adjust): New.
11791 (find_mem_expr_in_1pdv): New.
11792 (dataflow_set_preserve_mem_locs): New.
11793 (dataflow_set_remove_mem_locs): New.
11794 (dataflow_set_clear_at_call): New.
11795 (onepart_variable_different_p): New.
11796 (variable_different_p): Use it.
ed9d5a4a 11797 (dataflow_set_different_1): Adjust. Make detailed dump more verbose.
8fc68cba
AO
11798 (track_expr_p): Add need_rtl parameter. Don't generate rtl
11799 if not needed.
11800 (track_loc_p): Pass it true.
11801 (struct count_use_info): New.
11802 (find_use_val): New.
11803 (replace_expr_with_values): New.
11804 (log_op_type): New.
11805 (use_type): New, partially split out of...
11806 (count_uses): ... this. Count new micro-ops.
11807 (count_uses_1): Adjust.
11808 (count_stores): Adjust.
11809 (count_with_sets): New.
11810 (VAL_NEEDS_RESOLUTION): New.
11811 (VAL_HOLDS_TRACK_EXPR): New.
11812 (VAL_EXPR_IS_COPIED): New.
11813 (VAL_EXPR_IS_CLOBBERED): New.
11814 (add_uses): Adjust. Generate new micro-ops.
11815 (add_uses_1): Adjust.
11816 (add_stores): Generate new micro-ops.
11817 (add_with_sets): New.
11818 (find_src_status): Adjust.
11819 (find_src_set_src): Adjust.
11820 (compute_bb_dataflow): Use dataflow_set_clear_at_call.
11821 Handle new micro-ops. Canonicalize value equivalances.
11822 (vt_find_locations): Compute total size of hash tables for
11823 dumping. Perform merge for var-tracking-assignments. Don't
11824 disregard single-block loops.
11825 (dump_attrs_list): Handle decl_or_value.
11826 (dump_variable): Take variable. Deal with decl_or_value.
11827 (dump_variable_slot): New.
11828 (dump_vars): Use it.
11829 (dump_dataflow_sets): Adjust.
11830 (set_slot_part): New, extended to support one-part variables
11831 after splitting out of...
11832 (set_variable_part): ... this.
11833 (clobber_slot_part): New, split out of...
11834 (clobber_variable_part): ... this.
11835 (delete_slot_part): New, split out of...
11836 (delete_variable_part): .... this.
11837 (check_wrap_constant): New.
11838 (vt_expand_loc_callback): New.
11839 (vt_expand_loc): New.
11840 (emit_note_insn_var_location): Adjust. Handle values. Handle
11841 EMIT_NOTE_AFTER_CALL_INSN.
11842 (emit_notes_for_differences_1): Adjust. Handle values.
11843 (emit_notes_for_differences_2): Likewise.
11844 (emit_notes_for_differences): Adjust.
ed9d5a4a
UB
11845 (emit_notes_in_bb): Take pointer to set. Emit AFTER_CALL_INSN notes.
11846 Adjust. Handle new micro-ops.
8fc68cba
AO
11847 (vt_add_function_parameters): Adjust. Create and bind values.
11848 (vt_initialize): Adjust. Initialize scratch_regs and
11849 valvar_pool, flooded and perm.. Initialize and use cselib. Log
11850 operations. Move some code to count_with_sets and add_with_sets.
11851 (delete_debug_insns): New.
11852 (vt_debug_insns_local): New.
11853 (vt_finalize): Release permp, valvar_pool, scratch_regs. Finish
11854 cselib.
11855 (var_tracking_main): If var-tracking-assignments is enabled
11856 but var-tracking isn't, delete debug insns and leave. Likewise
11857 if we exceed limits or fail the stack adjustments tests, and
11858 after all var-tracking processing.
11859 More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
11860 (dataflow_set): Add traversed_vars.
11861 (value_chain, const_value_chain): New typedefs.
11862 (value_chain_pool, value_chains): New variables.
11863 (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
11864 add_value_chains, add_cselib_value_chains, remove_value_chain,
11865 remove_value_chains, remove_cselib_value_chains): New functions.
11866 (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
11867 shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
11868 static inlines.
11869 (shared_hash_find_slot_unshare, shared_hash_find_slot,
11870 shared_hash_find_slot_noinsert, shared_hash_find): Update.
11871 (dst_can_be_shared): New variable.
11872 (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
11873 Clear dst_can_be_shared. If set->traversed_vars is non-NULL and
11874 different from set->vars, look up slot again instead of using the
11875 passed in slot.
11876 (dataflow_set_init): Initialize traversed_vars.
11877 (variable_union): Use shared_hash_*. Use initially NO_INSERT
11878 lookup if set->vars is shared. Don't keep slot cleared before
11879 calling unshare_variable. Unshare set->vars if needed. Adjust
11880 unshare_variable callers. Clear dst_can_be_shared if needed.
11881 Even ->refcount == 1 vars must be unshared if set->vars is shared
11882 and var needs to be modified.
11883 (dataflow_set_union): Set traversed_vars during canonicalization.
11884 (VALUE_CHANGED, DECL_CHANGED): Define.
14e58be0 11885 (set_dv_changed, dv_changed_p): New static inlines.
8fc68cba
AO
11886 (track_expr_p): Clear DECL_CHANGED.
11887 (dump_dataflow_sets): Set it.
11888 (variable_was_changed): Call set_dv_changed.
11889 (emit_note_insn_var_location): Likewise.
11890 (changed_variables_stack): New variable.
11891 (check_changed_vars_1, check_changed_vars_2): New functions.
11892 (emit_notes_for_changes): Do nothing if changed_variables is
11893 empty. Traverse changed_variables with check_changed_vars_1,
11894 call check_changed_vars_2 on each changed_variables_stack entry.
11895 (emit_notes_in_bb): Add SET argument. Just clear it at the
ed9d5a4a 11896 beginning, use it instead of local &set, don't destroy it at the end.
8fc68cba
AO
11897 (vt_emit_notes): Call dataflow_set_clear early on all
11898 VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
11899 computed set, dataflow_set_clear also VTI(bb)->in when we are
11900 done with the basic block. Initialize changed_variables_stack,
11901 free it afterwards. If ENABLE_CHECKING verify that after noting
11902 differences to an empty set value_chains hash table is empty.
11903 (vt_initialize): Initialize value_chains and value_chain_pool.
11904 (vt_finalize): Delete value_chains htab, free value_chain_pool.
11905 (variable_tracking_main): Call dump_dataflow_sets before calling
11906 vt_emit_notes, not after it.
11907 * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
11908 (propagate_var_def_into_debug_stmts): Declare.
11909 * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
11910 (df_set_note): Reject debug insns.
11911 (df_whole_mw_reg_dead_p): Take added_notes_p argument. Don't
11912 add notes to debug insns.
11913 (df_note_bb_compute): Adjust. Likewise.
11914 (df_simulate_uses): Skip debug insns.
11915 (df_simulate_initialize_backwards): Likewise.
11916 * reg-stack.c (subst_stack_regs_in_debug_insn): New.
11917 (subst_stack_regs_pat): Reject debug insns.
11918 (convert_regs_1): Handle debug insns.
11919 * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
11920 (print-rtl.o): Depend on cselib.h.
11921 (cselib.o): Depend on TREE_PASS_H.
11922 (var-tracking.o): Depend on cselib.h and TARGET_H.
ed9d5a4a 11923 * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
8fc68cba
AO
11924 (init_ready_list): Skip boundary debug insns.
11925 (add_branch_dependences): Skip debug insns.
ed9d5a4a 11926 (free_block_dependencies): Check for blocks with only debug insns.
8fc68cba
AO
11927 (compute_priorities): Likewise.
11928 * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
11929 (gimple_build_with_ops_stat): Take subcode as unsigned. Adjust
11930 all callers.
11931 (gimple_build_debug_bind_stat): New.
11932 (empty_body_p): Skip debug stmts.
11933 (gimple_has_side_effects): Likewise.
11934 (gimple_rhs_has_side_effects): Likewise.
11935 * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
11936 (gimple_build_debug_bind_stat): Declare.
11937 (gimple_build_debug_bind): Define.
11938 (is_gimple_debug): New.
11939 (gimple_debug_bind_p): New.
11940 (gimple_debug_bind_get_var): New.
11941 (gimple_debug_bind_get_value): New.
11942 (gimple_debug_bind_get_value_ptr): New.
11943 (gimple_debug_bind_set_var): New.
11944 (gimple_debug_bind_set_value): New.
11945 (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
11946 (gimple_debug_bind_reset_value): New.
11947 (gimple_debug_bind_has_value_p): New.
11948 (gsi_next_nondebug): New.
11949 (gsi_prev_nondebug): New.
11950 (gsi_start_nondebug_bb): New.
11951 (gsi_last_nondebug_bb): New.
11952 * sched-vis.c (print_pattern): Handle VAR_LOCATION.
11953 (print_insn): Handle DEBUG_INSN.
11954 * tree-cfg.c (remove_bb): Walk stmts backwards. Let loc
11955 of first insn prevail.
11956 (first_stmt): Skip debug stmts.
11957 (first_non_label_stmt): Likewise.
11958 (last_stmt): Likewise.
11959 (has_zero_uses_1): New.
11960 (single_imm_use_1): New.
11961 (verify_gimple_debug): New.
11962 (verify_types_in_gimple_stmt): Handle debug stmts.
11963 (verify_stmt): Likewise.
11964 (debug_loop_num): Skip debug stmts.
11965 (remove_edge_and_dominated_blocks): Remove dominators last.
ed9d5a4a 11966 * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
8fc68cba
AO
11967 (linearize_expr): Likewise.
11968 * config/i386/i386.c (ix86_delegitimize_address): Call
11969 default implementation.
ed9d5a4a 11970 * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
8fc68cba
AO
11971 (group_barrier_needed): Skip debug insns.
11972 (emit_insn_group_barriers): Likewise.
11973 (emit_all_insn_group_barriers): Likewise.
11974 (ia64_variable_issue): Handle debug insns.
11975 (ia64_dfa_new_cycle): Likewise.
11976 (final_emit_insn_group_barriers): Skip debug insns.
11977 (ia64_dwarf2out_def_steady_cfa): Take frame argument. Don't
11978 def cfa without frame.
11979 (process_set): Likewise.
11980 (process_for_unwind_directive): Pass frame on.
11981 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
11982 (rs6000_delegitimize_address): New.
11983 (rs6000_debug_adjust_cost): Handle debug insns.
11984 (is_microcoded_insn): Likewise.
11985 (is_cracked_insn): Likewise.
11986 (is_nonpipeline_insn): Likewise.
11987 (insn_must_be_first_in_group): Likewise.
11988 (insn_must_be_last_in_group): Likewise.
11989 (force_new_group): Likewise.
11990 * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
11991 contains only debug insns.
11992 (rtl_merge_blocks): Skip debug insns.
11993 (purge_dead_edges): Likewise.
11994 (rtl_block_ends_with_call_p): Skip debug insns.
11995 * dce.c (deletable_insn_p): Handle VAR_LOCATION.
11996 (mark_reg_dependencies): Skip debug insns.
11997 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
ed9d5a4a 11998 * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
8fc68cba
AO
11999 * tree-ssa-threadedge.c
12000 (record_temporary_equivalences_from_stmts): Skip debug stmts.
12001 * regcprop.c (replace_oldest_value_addr): Skip debug insns.
12002 (replace_oldest_value_mem): Use ALL_REGS for debug insns.
12003 (copyprop_hardreg_forward_1): Handle debug insns.
12004 * reload1.c (reload): Skip debug insns. Replace unassigned
12005 pseudos in debug insns with their equivalences.
12006 (eliminate_regs_in_insn): Skip debug insns.
12007 (emit_input_reload_insns): Skip debug insns at first, adjust
12008 them later.
12009 * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
12010 (get_indirect_ref_operands): Pass opf_no_vops on.
12011 (get_expr_operands): Likewise. Skip debug stmts.
12012 (parse_ssa_operands): Scan debug insns with opf_no_vops.
12013
cd6ea7a2
RH
120142009-09-01 Richard Henderson <rth@redhat.com>
12015
14e58be0 12016 * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
cd6ea7a2
RH
12017 stmt_ends_pp_p statements at least once.
12018 * tree-vrp.c (vrp_initialize): Likewise.
12019 (vrp_visit_stmt): Be prepared for non-interesting stmts.
12020
d3bc57f2
DS
120212009-09-01 Dodji Seketeli <dodji@redhat.com>
12022
12023 PR bootstrap/41205
12024 Fix AIX bootstrap after PR debug/30161
12025 * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
12026 that is a GNU extension.
12027 (tmpl_value_parm_die_table): Move the definition of this global
12028 outside #ifdef DWARF2_DEBUGGING_INFO region.
12029
71c00b5c
RG
120302009-09-01 Richard Guenther <rguenther@suse.de>
12031
12032 * tree.c (tree_expr_size): New function.
12033 * tree.h (tree_expr_size): Declare.
12034 * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
12035 * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
12036 * langhooks.c (lhd_expr_size): Remove.
12037 * langhooks.h (struct lang_hooks): Remove expr_size.
12038 * explow.c (expr_size): Use tree_expr_size.
12039 (int_expr_size): Likewise.
12040 * langhooks-def.h (lhd_expr_size): Remove.
12041 (LANG_HOOKS_EXPR_SIZE): Likewise.
12042 (LANG_HOOKS_INITIALIZER): Adjust.
12043
58f986ca
RG
120442009-09-01 Richard Guenther <rguenther@suse.de>
12045
12046 * tree-flow.h (mark_addressable): Move declaration ...
12047 * tree.h (mark_addressable): ... here.
12048 * stmt.c (expand_asm_operands): Use mark_addressable, not
12049 lang_hooks.mark_addressable.
12050 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
12051 LANG_HOOKS_MARK_ADDRESSABLE.
12052 * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
12053 * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
12054
5fa162c0
CD
120552009-08-31 Chris Demetriou <cgd@google.com>
12056
12057 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
12058 vectorize if not TARGET_SSE2.
12059
453503d6
DD
120602009-08-31 DJ Delorie <dj@redhat.com>
12061
12062 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
12063 registers if no coprocessor is enabled.
12064
f9329c35
DS
120652009-08-31 Dodji Seketeli <dodji@redhat.com>
12066
12067 PR debug/30161
12068 * cgraph.h (cgraph_get_node): Declare ...
12069 * cgraph.c (cgraph_get_node): ... new function.
12070 * dwarf2out.c (gen_generic_params_dies,
12071 generic_parameter_die, tree_add_const_value_attribute_for_decl,
12072 make_ith_pack_parameter_name,
12073 append_entry_to_tmpl_value_parm_die_table,
12074 gen_remaining_tmpl_value_param_die_attribute): New functions.
12075 (gen_subprogram_die): Generate debug info for template parameters
12076 if debug info level is higher than DINFO_LEVEL_TERSE.
12077 Use tree_add_const_value_attribute_for_decl instead of
12078 tree_add_const_value_attribute.
12079 (gen_const_die): Use tree_add_const_value_attribute_for_decl
12080 instead of tree_add_const_value_attribute.
12081 (gen_struct_or_union_type_die): Generate debug
12082 info for template parameters if debug info level is higher than
12083 DINFO_LEVEL_TERSE.
12084 (tree_add_const_value_attribute): Handle integral and pointer
12085 constants. Update comment.
12086 (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
12087 (dwarf_attr_name): Support DW_AT_GNU_template_name.
12088 (reference_to_unused): Fix thinko. Remove redundant predicates from
12089 tests.
12090 (tree_add_const_value_attribute): Make this work for constant
12091 expressions only.
12092 tree_add_const_value_attribute_for_decl is to be used for variable
12093 DECLs now.
12094 (add_location_or_const_value_attribute): Use
12095 tree_add_const_value_attribute_for_decl now.
12096 (dwarf2out_finish): Emit the DW_AT_const_value attribute of
12097 DW_TAG_template_value_param DIEs after function DIEs have been
12098 emitted.
12099 * langhooks.h (lang_hooks_for_types): Add
12100 get_argument_pack_elems.
12101 (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
12102 (lang_hooks): Added get_innermost_generic_parms,
12103 get_innermost_generic_args.
12104 * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
12105 LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
12106 LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
12107 LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
12108
e756464b
DD
121092009-08-31 DJ Delorie <dj@redhat.com>
12110
12111 * config/mep/mep.c (machine_function): Add frame_locked flag. Set
12112 it once we start generating the prologue or epilogue.
5fa162c0
CD
12113 (mep_call_saves_register): If the frame is locked, re-use
12114 cached values.
e756464b
DD
12115 (mep_assign_save_slots): New, broken out from mep_expand_prologue.
12116 (mep_expand_prologue): Call it.
12117 (mep_expand_epilogue): Likewise.
12118 (mep_start_function): Use the same logic as mep_expand_prologue.
12119 (mep_pass_by_reference): Make logic more readable.
12120 (mep_return_in_memory): Zero-sized objects are passed in memory.
12121 (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
12122
e2abde5f
RG
121232009-08-31 Richard Guenther <rguenther@suse.de>
12124
12125 * builtins.c (fold_builtin_memory_op): Use the alias oracle
12126 to query if the memory regions for memmove overlap.
12127 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
12128 asserts on pointers, instead deal with odd trees.
12129 (ptr_derefs_may_alias_p): Likewise.
12130 (refs_may_alias_p_1): Constructor bases also never alias.
12131
c4331d93
GP
121322009-08-31 Gerald Pfeifer <gerald@pfeifer.com>
12133
12134 * doc/install.texi (Final install): Adjust reference on where to
12135 order printed manuals.
12136
40a99889
OH
121372009-08-30 Olivier Hainque <hainque@adacore.com>
12138
12139 * dwarf2out.c (switch_to_frame_table_section): Move
12140 definition prior to first use.
12141
a778c4e7
RG
121422009-08-30 Richard Guenther <rguenther@suse.de>
12143
12144 PR tree-optimization/41186
12145 * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
12146 (ao_ref_init_from_ptr_and_size): New function.
12147 (ref_maybe_used_by_call_p_1): Be more precise tracking
12148 used ranges for builtin functions.
12149 (ref_maybe_used_by_call_p): Adjust.
12150 (call_may_clobber_ref_p_1): Be more precise tracking clobbered
12151 ranges for builtin functions.
12152 * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
12153
e85122be
AM
121542009-08-30 Alan Modra <amodra@bigpond.net.au>
12155
12156 PR target/41081
12157 * fwprop.c (get_reg_use_in): Delete.
12158 (free_load_extend): New function.
12159 (forward_propagate_subreg): Use it.
12160
2d606e03
KK
121612009-08-29 Kaz Kojima <kkojima@gcc.gnu.org>
12162
12163 * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
12164
ce557b74
KT
121652009-08-29 Kai Tietz<kai.tietz@onevision.com>
12166
d1eda136
L
12167 PR/41184
12168 * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
12169 padding.
ce557b74 12170
6d83cb32
DR
121712009-08-29 Douglas B Rupp <rupp@gnat.com>
12172
12173 * crtstuff.c (__do_global_dtors_aux): Use atexit if no
12174 fini or fini_array section.
12175
211694b6
SP
121762009-08-28 Sebastian Pop <sebastian.pop@amd.com>
12177
12178 * graphite-dependences.c (graphite_legal_transform_bb): Call
12179 pbb_remove_duplicate_pdrs.
12180 * graphite-poly.c (can_collapse_pdr): Removed.
12181 (pdr_find_duplicate): Removed.
12182 (can_collapse_pdrs): New.
12183 (pbb_remove_duplicate_pdrs): New.
12184 (new_poly_dr): Do not look for duplicates.
12185 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
12186 (PBB_PDR_DUPLICATES_REMOVED): New.
12187 (pbb_remove_duplicate_pdrs): Declared.
12188
7bd2a8a7
SP
121892009-08-28 Sebastian Pop <sebastian.pop@amd.com>
12190
12191 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
12192 the strides by multiplying by PDR_NB_REFS.
12193 * graphite-poly.c (can_collapse_pdr): New.
12194 (pdr_find_duplicate): New.
12195 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
12196 Initialize PDR_NB_REFS.
12197 * graphite-poly.h (struct poly_dr): Add field nb_refs.
12198 (PDR_NB_REFS): New.
12199 (new_poly_dr): Number of subscripts is a graphite_dim_t.
12200
93b2db87
SP
122012009-08-28 Sebastian Pop <sebastian.pop@amd.com>
12202
12203 PR middle-end/40965
12204 * graphite-poly.c (apply_poly_transforms): Remove legality test before
12205 any transform.
12206
d8eeb078
SP
122072009-08-28 Sebastian Pop <sebastian.pop@amd.com>
12208
12209 * graphite-dependences.c (pddr_original_scattering): Return NULL
12210 for read-read dependence relations.
12211 * graphite-poly.h (enum poly_dr_type): Fix comment.
12212 (pdr_read_p): New.
12213 (pdr_write_p): New.
12214 (pdr_may_write_p): New.
12215
e6dec0fb
SP
122162009-08-28 Sebastian Pop <sebastian.pop@amd.com>
12217
12218 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
12219 (struct poly_dr): Same.
12220 (new_poly_dr): Same.
12221 * graphite-poly.c (new_poly_dr): Same.
12222 * graphite-dependences.c (dot_deps): Disable call to system.
12223
3ff4c25d
CC
122242009-08-28 Cary Coutant <ccoutant@google.com>
12225
12226 PR debug/41063
12227 * dwarf2out.c (gen_type_die_with_usage): Use proper context for
12228 struct/union/enum types local to a function.
12229
baf4b881
KT
122302009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
12231 Sebastian Pop <sebastian.pop@amd.com>
12232
12233 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
12234 pbb_strip_mine_time_depth. Changed the implementation so that
12235 transformation is expressed as a transformation on
12236 time (scatttering) dimensions. Also, ensures that the 2d+1
12237 scheduling format is preserved.
12238 (pbb_strip_mine_profitable_p): Profitability is based on the
12239 iteration number of a given time (scattering) dimension,
12240 and not on a original loop depth dimension.
12241 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
12242 (pbb_do_strip_mine): Call psct_dynamic_dim.
12243 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
12244 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
12245 (pbb_nb_dynamic_scattering_transform): New.
12246 (psct_dynamic_dim): New.
12247
059a5f9f
KT
122482009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
12249
12250 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
12251 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
12252 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
12253 * graphite-interchange.c (build_linearized_memory_access): Same.
12254 (memory_stride_in_loop): Same.
12255
afae0207
SP
122562009-08-28 Sebastian Pop <sebastian.pop@amd.com>
12257
12258 * graphite-dependences.c (pddr_original_scattering): New.
12259 (graphite_legal_transform_dr): Call pddr_original_scattering.
12260 (dot_deps_1): New.
12261 (dot_deps): New.
12262 * graphite-dependences.h (dot_deps): Declared.
12263 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
12264 (print_pdr): Print PDR_ID.
12265 * graphite-poly.h (struct poly_dr): Add field id.
12266 (PDR_ID): New.
12267 (pbb_index): New.
12268 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
12269
f8e0bb8b
SP
122702009-08-28 Sebastian Pop <sebastian.pop@amd.com>
12271
12272 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
12273 not delete the original dependence relation.
12274
e37f165f
SP
122752009-08-28 Sebastian Pop <sebastian.pop@amd.com>
12276
12277 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
12278 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
12279 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
12280 (free_poly_ddr): New.
12281 (pddr_is_empty): New.
12282 (dependence_polyhedron_1): Now returns a poly_ddr_p.
12283 (dependence_polyhedron): Same. Remove useless gcc_assert.
12284 Remove fprintfs.
12285 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
12286 (graphite_carried_dependence_level_k): Call pddr_is_empty.
12287 * graphite-dependences.h (enum poly_dependence_kind): New.
12288 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
12289 (PDRP_SOURCE): Renamed PDDR_SOURCE.
12290 (PDRP_SINK): Renamed PDDR_SINK.
12291 (PDRP_DDP): Renamed PDDR_DDP.
12292 (PDDR_KIND): New.
12293 (free_poly_ddr): Declared.
12294 * graphite-poly.c (new_scop): Use the new hash function names.
12295 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
12296 into original_pddrs.
12297 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
12298
45e76e9f
SP
122992009-08-28 Sebastian Pop <sebastian.pop@amd.com>
12300
12301 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
12302 bounds with LT_EXPR to make niter analysis more precise on code
12303 generated by Graphite.
12304
66b466c3
SP
123052009-08-28 Sebastian Pop <sebastian.pop@amd.com>
12306
12307 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
12308 (graphite_legal_transform_bb): Same.
12309 (poly_drs_may_alias_p): Same.
12310
81fa17da
RG
123112009-08-28 Richard Guenther <rguenther@suse.de>
12312
12313 * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
12314
a858e912
JB
123152009-08-28 Jan Beulich <jbeulich@novell.com>
12316
12317 * config/i386/netware.c: Include langhooks.h.
12318 (i386_nlm_encode_section_info): Simplify.
12319 (netware_override_options): Delete.
12320 * config/i386/netware.h (netware_override_options): Delete
12321 declaration.
12322 (OVERRIDE_OPTIONS): Delete definition.
12323 (SUBTARGET_OVERRIDE_OPTIONS): Define.
12324 (ASM_COMMENT_START): Define.
12325 * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
12326
39ba7b7d
JB
123272009-08-28 Jan Beulich <jbeulich@novell.com>
12328
12329 * configure.ac: For in-tree ld, do a plain version check to
12330 determine whether comdat groups are supported.
12331 * configure: Regenerate.
12332
7e49a4b3
OH
123332009-08-28 Olivier Hainque <hainque@adacore.com>
12334
12335 * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
12336 always defined. Reflect definition or absence of such for
12337 COLLECT_EXPORT_LIST. Readability helper.
12338 (scanfilter): New enum, to help control what symbols
12339 are to be considered or ignored by scan_prog_file.
12340 (enum pass): Rename as "scanpass", moved together with scanfilter
12341 prior to scan_prog_file's prototype.
12342 (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
12343 Group prototype with the scanpass/scanfilter definitions, factorize
12344 head comments for the several implementations at the prototype.
12345 (main): Reorganize the first pass link control to let AIX
12346 drag only the needed frame tables in executables. Prevent
12347 frame tables collection during the scan aimed at static ctors.
12348 Pre-link and scan for frame tables later to compensate.
12349 * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
12350 A C statement to issue assembly directives that create a reference
12351 to the given DWARF table identifier label from the current function
12352 section.
12353 * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
12354 to differentiate first time section entry. Only emit a .data
12355 tables start identifier label the first time around.
12356 (switch_to_frame_table_section): New function. Helper for
12357 output_call_frame_info to switch possibly BACK into the eh_frame
12358 or the debug_frame section depending on FOR_EH.
12359 (output_call_frame_info): Use helper to first enter the proper
12360 frame section.
12361 (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
12362 emit a link to the frame table start label from each function
12363 section.
12364 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
12365 New function. Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
12366 * config/rs6000/rs6000-protos.h: Declare it.
12367 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
12368
a7d6f306
KK
123692009-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
12370
12371 * config/sh/sh.c (split_branches): Check the result of
12372 next_active_insn.
12373
715fda99
SE
123742009-08-27 Steve Ellcey <sje@cup.hp.com>
12375
12376 * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
12377 using -pthread -fopenmp
12378
2711df18
GP
123792009-08-27 Gerald Pfeifer <gerald@pfeifer.com>
12380
12381 * doc/service.texi (service directory): Update URL.
12382
2b3b22d3
UB
123832009-08-27 Uros Bizjak <ubizjak@gmail.com>
12384
12385 PR rtl-optimization/40861
12386 * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
12387 extract word from a multi-word subreg for negative byte positions.
12388
30ed9d3d
TG
123892009-08-27 Tristan Gingold <gingold@adacore.com>
12390 Douglas B Rupp <rupp@gnat.com>
12391
2b3b22d3 12392 * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
30ed9d3d
TG
12393 (SECTION_VMS_OVERLAY): Define.
12394 (ia64_vms_common_object_attribute): Added. Handle the "common_object"
12395 attribute.
12396 (ia64_vms_elf_asm_named_section): Added. Generate .section pseudo-op
12397 for common_object.
12398 (ia64_vms_output_aligned_decl_common): Added. Generate pseudo-op for
12399 common_object declarations.
12400 (ia64_section_type_flags): Set section flag for common_object.
12401 * config/ia64/ia64-protos.h
12402 (ia64_vms_output_aligned_decl_common): Declare.
12403 (ia64_vms_elf_asm_named_section): Declare.
12404
f994f296
MM
124052009-08-27 Michael Matz <matz@suse.de>
12406
12407 * expr.c (expand_expr_real_2): New function taking exploded
12408 unary or binary expression, split out from ...
12409 (expand_expr_real_1): ... here. Move over all unary/binary
12410 switch parts to above function, in particular these codes:
12411 PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
12412 MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
12413 ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
12414 FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
12415 FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
12416 BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
12417 BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
12418 LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
12419 NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
12420 UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
12421 WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
12422 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
12423 VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
12424 VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
12425 VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
12426 VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
12427 VEC_PACK_FIX_TRUNC_EXPR.
12428 (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
12429 full expression.
12430
c6a21142
RG
124312009-08-27 Richard Guenther <rguenther@suse.de>
12432
12433 * gengtype.c (main): Handle uint64_t.
12434 * ipa-utils.c (get_base_var): Indent properly.
12435 * tree-ssa-live.c (debug_scope_block): New function.
12436 * tree-flow.h (debug_scope_block): Declare.
12437 * tree-ssa-copy.c (replace_exp_1): Add vertical space.
12438 * basic-block.h (enum profile_status): Rename to
12439 enum profile_status_d.
12440 (x_profile_status): Adjust type.
12441
7842a9db
DS
124422009-08-27 Dodji Seketeli <dodji@redhat.com>
12443
d1eda136 12444 PR debug/41170
7842a9db
DS
12445 * dwarf2out.c (get_context_die): Declare this static function.
12446 (gen_type_die_with_usage): Make sure a DIE is a generated for
12447 the context of a typedef.
12448
98f6d48a
AS
124492009-08-26 Anatoly Sokolov <aesok@post.ru>
12450
12451 * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
12452 switch.
12453
6f5a62e9
RS
124542009-08-26 Richard Sandiford <rdsandiford@googlemail.com>
12455
12456 * config/mips/mips-protos.h (mips_output_sync): Declare.
12457 (mips_sync_loop_insns): Likewise.
12458 (mips_output_sync_loop): Replace first two parameters with an rtx.
12459 * config/mips/mips.c (mips_multi_member): New structure.
12460 (mips_multi_members): New variable.
12461 (mips_multi_start): New function.
12462 (mips_multi_add): Likewise.
12463 (mips_multi_add_insn): Likewise.
12464 (mips_multi_add_label): Likewise.
12465 (mips_multi_last_index): Likewise.
12466 (mips_multi_copy_insn): Likewise.
12467 (mips_multi_set_operand): Likewise.
12468 (mips_multi_write): Likewise.
12469 (mips_print_operand_punctuation): Remove '%|' and '%-'.
12470 (mips_init_print_operand_punct): Update accordingly.
12471 (mips_start_ll_sc_sync_block): New function.
12472 (mips_end_ll_sc_sync_block): Likewise.
12473 (mips_output_sync): Likewise.
12474 (mips_sync_insn1_template): Likewise.
12475 (mips_sync_insn2_template): Likewise.
12476 (mips_get_sync_operand): Likewise.
12477 (mips_process_sync_loop): Likewise.
12478 (mips_output_sync_loop): Use mips_process_sync_loop.
12479 (mips_sync_loop_insns): New function.
12480 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
12481 (MIPS_COMPARE_AND_SWAP_12): Likewise.
12482 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
12483 (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
12484 (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
12485 (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
12486 (MIPS_SYNC_OLD_OP_12): Likewise.
12487 (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
12488 (MIPS_SYNC_NEW_OP_12): Likewise.
12489 (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
12490 (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
12491 (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
12492 (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
12493 (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
12494 (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
12495 * config/mips/mips.md (sync_mem): New attribute.
12496 (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
12497 (sync_exclusive_mask, sync_required_oldval): Likewise.
12498 (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
12499 (sync_release_barrier): Likewise.
12500 (length): Handle sync loops.
12501 (sync): Use mips_output_sync.
12502 * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
12503 (sync_compare_and_swap<mode>): Set the new sync_* attributes
12504 and use mips_output_sync_loop.
12505 (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
12506 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
12507 (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
12508 (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
12509 (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
12510 (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
12511 (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
12512 (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
12513 (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
12514
6b8b9e42
RG
125152009-08-26 Richard Guenther <rguenther@suse.de>
12516
12517 PR middle-end/41163
12518 * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
12519 the types to not match.
12520 * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
12521 verification.
12522 * tree-ssa.c (useless_type_conversion_p): Conversions to
12523 pointers to unprototyped functions are useless.
12524
bacd3fb6
RG
125252009-08-26 Richard Guenther <rguenther@suse.de>
12526
5fa162c0
CD
12527 * tree-ssa-structalias.c (create_variable_info_for): Remove strange
12528 whole-program condition, prepare to be called for non-globals.
bacd3fb6
RG
12529 (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
12530 params build a representative with known type and track its fields.
12531
7b3d1847
UB
125322009-08-26 Uros Bizjak <ubizjak@gmail.com>
12533
12534 * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
12535 clearing by a taken branch.
12536 (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
12537 effectively after bbro pass.
12538 (sync_nand<mode>): Ditto.
12539 (sync_old_<fetchop_name><mode>): Ditto.
12540 (sync_old_nand<mode>): Ditto.
12541 (sync_new_<fetchop_name><mode>): Dito.
12542 (sync_new_nand<mode>): Ditto.
12543 (sync_compare_and_swap<mode>_1): Ditto.
12544 (*sync_compare_and_swap<mode>): Ditto.
12545 (sync_lock_test_and_set<mode>_1): Ditto.
12546 ("sync_lock_test_and_set<mode>): Ditto.
12547
edb89024
DR
125482009-08-25 Douglas B Rupp <rupp@gnat.com>
12549
12550 * hwint.h (HOST_LONG_FORMAT): New macro
12551 * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
12552 Use HOST_PTR_PRINTF.
12553 * system.h (HOST_PTR_PRINTF): Resurrect old macro
12554 * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
12555 (HOST_PTR_PRINTF): Document.
12556
5c1a2bb1
JH
125572009-08-25 Jan Hubicka <jh@suse.cz>
12558
12559 * config/i386/bmmintrin.h: Replace by #error.
12560
12561 Revert:
12562 Michael Meissner <michael.meissner@amd.com>
12563 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
12564 Tony Linthicum <tony.linthicum@amd.com>
12565
12566 * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
12567 (TARGET_ROUND): New macro for the round/ptest instructions which
12568 are shared between SSE4.1 and SSE5.
12569 (OPTION_MASK_ISA_ROUND): Ditto.
12570 (OPTION_ISA_ROUND): Ditto.
12571 (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
12572 (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
12573
12574 * config/i386/i386.opt (-msse5): New switch for SSE5 support.
12575 (-mfused-madd): New switch to give users control over whether the
12576 compiler optimizes to use the multiply/add SSE5 instructions.
12577
12578 * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
12579 (ix86_handle_option): Turn off 3dnow if -msse5.
12580 (override_options): Add SSE5 support.
12581 (print_operand): %Y prints comparison codes for SSE5 com/pcom
12582 instructions.
12583 (ix86_expand_sse_movcc): Add SSE5 support.
12584 (ix86_expand_sse5_unpack): New function to use pperm to unpack a
12585 vector type to the next largest size.
12586 (ix86_expand_sse5_pack): New function to use pperm to pack a
12587 vector type to the next smallest size.
12588 (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
12589 (IX86_BUILTIN_FMADDSD): Ditto.
12590 (IX86_BUILTIN_FMADDPS): Ditto.
12591 (IX86_BUILTIN_FMADDPD): Ditto.
12592 (IX86_BUILTIN_FMSUBSS): Ditto.
12593 (IX86_BUILTIN_FMSUBSD): Ditto.
12594 (IX86_BUILTIN_FMSUBPS): Ditto.
12595 (IX86_BUILTIN_FMSUBPD): Ditto.
12596 (IX86_BUILTIN_FNMADDSS): Ditto.
12597 (IX86_BUILTIN_FNMADDSD): Ditto.
12598 (IX86_BUILTIN_FNMADDPS): Ditto.
12599 (IX86_BUILTIN_FNMADDPD): Ditto.
12600 (IX86_BUILTIN_FNMSUBSS): Ditto.
12601 (IX86_BUILTIN_FNMSUBSD): Ditto.
12602 (IX86_BUILTIN_FNMSUBPS): Ditto.
12603 (IX86_BUILTIN_FNMSUBPD): Ditto.
12604 (IX86_BUILTIN_PCMOV_V2DI): Ditto.
12605 (IX86_BUILTIN_PCMOV_V4SI): Ditto.
12606 (IX86_BUILTIN_PCMOV_V8HI): Ditto.
12607 (IX86_BUILTIN_PCMOV_V16QI): Ditto.
12608 (IX86_BUILTIN_PCMOV_V4SF): Ditto.
12609 (IX86_BUILTIN_PCMOV_V2DF): Ditto.
12610 (IX86_BUILTIN_PPERM): Ditto.
12611 (IX86_BUILTIN_PERMPS): Ditto.
12612 (IX86_BUILTIN_PERMPD): Ditto.
12613 (IX86_BUILTIN_PMACSSWW): Ditto.
12614 (IX86_BUILTIN_PMACSWW): Ditto.
12615 (IX86_BUILTIN_PMACSSWD): Ditto.
12616 (IX86_BUILTIN_PMACSWD): Ditto.
12617 (IX86_BUILTIN_PMACSSDD): Ditto.
12618 (IX86_BUILTIN_PMACSDD): Ditto.
12619 (IX86_BUILTIN_PMACSSDQL): Ditto.
12620 (IX86_BUILTIN_PMACSSDQH): Ditto.
12621 (IX86_BUILTIN_PMACSDQL): Ditto.
12622 (IX86_BUILTIN_PMACSDQH): Ditto.
12623 (IX86_BUILTIN_PMADCSSWD): Ditto.
12624 (IX86_BUILTIN_PMADCSWD): Ditto.
12625 (IX86_BUILTIN_PHADDBW): Ditto.
12626 (IX86_BUILTIN_PHADDBD): Ditto.
12627 (IX86_BUILTIN_PHADDBQ): Ditto.
12628 (IX86_BUILTIN_PHADDWD): Ditto.
12629 (IX86_BUILTIN_PHADDWQ): Ditto.
12630 (IX86_BUILTIN_PHADDDQ): Ditto.
12631 (IX86_BUILTIN_PHADDUBW): Ditto.
12632 (IX86_BUILTIN_PHADDUBD): Ditto.
12633 (IX86_BUILTIN_PHADDUBQ): Ditto.
12634 (IX86_BUILTIN_PHADDUWD): Ditto.
12635 (IX86_BUILTIN_PHADDUWQ): Ditto.
12636 (IX86_BUILTIN_PHADDUDQ): Ditto.
12637 (IX86_BUILTIN_PHSUBBW): Ditto.
12638 (IX86_BUILTIN_PHSUBWD): Ditto.
12639 (IX86_BUILTIN_PHSUBDQ): Ditto.
12640 (IX86_BUILTIN_PROTB): Ditto.
12641 (IX86_BUILTIN_PROTW): Ditto.
12642 (IX86_BUILTIN_PROTD): Ditto.
12643 (IX86_BUILTIN_PROTQ): Ditto.
12644 (IX86_BUILTIN_PROTB_IMM): Ditto.
12645 (IX86_BUILTIN_PROTW_IMM): Ditto.
12646 (IX86_BUILTIN_PROTD_IMM): Ditto.
12647 (IX86_BUILTIN_PROTQ_IMM): Ditto.
12648 (IX86_BUILTIN_PSHLB): Ditto.
12649 (IX86_BUILTIN_PSHLW): Ditto.
12650 (IX86_BUILTIN_PSHLD): Ditto.
12651 (IX86_BUILTIN_PSHLQ): Ditto.
12652 (IX86_BUILTIN_PSHAB): Ditto.
12653 (IX86_BUILTIN_PSHAW): Ditto.
12654 (IX86_BUILTIN_PSHAD): Ditto.
12655 (IX86_BUILTIN_PSHAQ): Ditto.
12656 (IX86_BUILTIN_FRCZSS): Ditto.
12657 (IX86_BUILTIN_FRCZSD): Ditto.
12658 (IX86_BUILTIN_FRCZPS): Ditto.
12659 (IX86_BUILTIN_FRCZPD): Ditto.
12660 (IX86_BUILTIN_CVTPH2PS): Ditto.
12661 (IX86_BUILTIN_CVTPS2PH): Ditto.
12662 (IX86_BUILTIN_COMEQSS): Ditto.
12663 (IX86_BUILTIN_COMNESS): Ditto.
12664 (IX86_BUILTIN_COMLTSS): Ditto.
12665 (IX86_BUILTIN_COMLESS): Ditto.
12666 (IX86_BUILTIN_COMGTSS): Ditto.
12667 (IX86_BUILTIN_COMGESS): Ditto.
12668 (IX86_BUILTIN_COMUEQSS): Ditto.
12669 (IX86_BUILTIN_COMUNESS): Ditto.
12670 (IX86_BUILTIN_COMULTSS): Ditto.
12671 (IX86_BUILTIN_COMULESS): Ditto.
12672 (IX86_BUILTIN_COMUGTSS): Ditto.
12673 (IX86_BUILTIN_COMUGESS): Ditto.
12674 (IX86_BUILTIN_COMORDSS): Ditto.
12675 (IX86_BUILTIN_COMUNORDSS): Ditto.
12676 (IX86_BUILTIN_COMFALSESS): Ditto.
12677 (IX86_BUILTIN_COMTRUESS): Ditto.
12678 (IX86_BUILTIN_COMEQSD): Ditto.
12679 (IX86_BUILTIN_COMNESD): Ditto.
12680 (IX86_BUILTIN_COMLTSD): Ditto.
12681 (IX86_BUILTIN_COMLESD): Ditto.
12682 (IX86_BUILTIN_COMGTSD): Ditto.
12683 (IX86_BUILTIN_COMGESD): Ditto.
12684 (IX86_BUILTIN_COMUEQSD): Ditto.
12685 (IX86_BUILTIN_COMUNESD): Ditto.
12686 (IX86_BUILTIN_COMULTSD): Ditto.
12687 (IX86_BUILTIN_COMULESD): Ditto.
12688 (IX86_BUILTIN_COMUGTSD): Ditto.
12689 (IX86_BUILTIN_COMUGESD): Ditto.
12690 (IX86_BUILTIN_COMORDSD): Ditto.
12691 (IX86_BUILTIN_COMUNORDSD): Ditto.
12692 (IX86_BUILTIN_COMFALSESD): Ditto.
12693 (IX86_BUILTIN_COMTRUESD): Ditto.
12694 (IX86_BUILTIN_COMEQPS): Ditto.
12695 (IX86_BUILTIN_COMNEPS): Ditto.
12696 (IX86_BUILTIN_COMLTPS): Ditto.
12697 (IX86_BUILTIN_COMLEPS): Ditto.
12698 (IX86_BUILTIN_COMGTPS): Ditto.
12699 (IX86_BUILTIN_COMGEPS): Ditto.
12700 (IX86_BUILTIN_COMUEQPS): Ditto.
12701 (IX86_BUILTIN_COMUNEPS): Ditto.
12702 (IX86_BUILTIN_COMULTPS): Ditto.
12703 (IX86_BUILTIN_COMULEPS): Ditto.
12704 (IX86_BUILTIN_COMUGTPS): Ditto.
12705 (IX86_BUILTIN_COMUGEPS): Ditto.
12706 (IX86_BUILTIN_COMORDPS): Ditto.
12707 (IX86_BUILTIN_COMUNORDPS): Ditto.
12708 (IX86_BUILTIN_COMFALSEPS): Ditto.
12709 (IX86_BUILTIN_COMTRUEPS): Ditto.
12710 (IX86_BUILTIN_COMEQPD): Ditto.
12711 (IX86_BUILTIN_COMNEPD): Ditto.
12712 (IX86_BUILTIN_COMLTPD): Ditto.
12713 (IX86_BUILTIN_COMLEPD): Ditto.
12714 (IX86_BUILTIN_COMGTPD): Ditto.
12715 (IX86_BUILTIN_COMGEPD): Ditto.
12716 (IX86_BUILTIN_COMUEQPD): Ditto.
12717 (IX86_BUILTIN_COMUNEPD): Ditto.
12718 (IX86_BUILTIN_COMULTPD): Ditto.
12719 (IX86_BUILTIN_COMULEPD): Ditto.
12720 (IX86_BUILTIN_COMUGTPD): Ditto.
12721 (IX86_BUILTIN_COMUGEPD): Ditto.
12722 (IX86_BUILTIN_COMORDPD): Ditto.
12723 (IX86_BUILTIN_COMUNORDPD): Ditto.
12724 (IX86_BUILTIN_COMFALSEPD): Ditto.
12725 (IX86_BUILTIN_COMTRUEPD): Ditto.
12726 (IX86_BUILTIN_PCOMEQUB): Ditto.
12727 (IX86_BUILTIN_PCOMNEUB): Ditto.
12728 (IX86_BUILTIN_PCOMLTUB): Ditto.
12729 (IX86_BUILTIN_PCOMLEUB): Ditto.
12730 (IX86_BUILTIN_PCOMGTUB): Ditto.
12731 (IX86_BUILTIN_PCOMGEUB): Ditto.
12732 (IX86_BUILTIN_PCOMFALSEUB): Ditto.
12733 (IX86_BUILTIN_PCOMTRUEUB): Ditto.
12734 (IX86_BUILTIN_PCOMEQUW): Ditto.
12735 (IX86_BUILTIN_PCOMNEUW): Ditto.
12736 (IX86_BUILTIN_PCOMLTUW): Ditto.
12737 (IX86_BUILTIN_PCOMLEUW): Ditto.
12738 (IX86_BUILTIN_PCOMGTUW): Ditto.
12739 (IX86_BUILTIN_PCOMGEUW): Ditto.
12740 (IX86_BUILTIN_PCOMFALSEUW): Ditto.
12741 (IX86_BUILTIN_PCOMTRUEUW): Ditto.
12742 (IX86_BUILTIN_PCOMEQUD): Ditto.
12743 (IX86_BUILTIN_PCOMNEUD): Ditto.
12744 (IX86_BUILTIN_PCOMLTUD): Ditto.
12745 (IX86_BUILTIN_PCOMLEUD): Ditto.
12746 (IX86_BUILTIN_PCOMGTUD): Ditto.
12747 (IX86_BUILTIN_PCOMGEUD): Ditto.
12748 (IX86_BUILTIN_PCOMFALSEUD): Ditto.
12749 (IX86_BUILTIN_PCOMTRUEUD): Ditto.
12750 (IX86_BUILTIN_PCOMEQUQ): Ditto.
12751 (IX86_BUILTIN_PCOMNEUQ): Ditto.
12752 (IX86_BUILTIN_PCOMLTUQ): Ditto.
12753 (IX86_BUILTIN_PCOMLEUQ): Ditto.
12754 (IX86_BUILTIN_PCOMGTUQ): Ditto.
12755 (IX86_BUILTIN_PCOMGEUQ): Ditto.
12756 (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
12757 (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
12758 (IX86_BUILTIN_PCOMEQB): Ditto.
12759 (IX86_BUILTIN_PCOMNEB): Ditto.
12760 (IX86_BUILTIN_PCOMLTB): Ditto.
12761 (IX86_BUILTIN_PCOMLEB): Ditto.
12762 (IX86_BUILTIN_PCOMGTB): Ditto.
12763 (IX86_BUILTIN_PCOMGEB): Ditto.
12764 (IX86_BUILTIN_PCOMFALSEB): Ditto.
12765 (IX86_BUILTIN_PCOMTRUEB): Ditto.
12766 (IX86_BUILTIN_PCOMEQW): Ditto.
12767 (IX86_BUILTIN_PCOMNEW): Ditto.
12768 (IX86_BUILTIN_PCOMLTW): Ditto.
12769 (IX86_BUILTIN_PCOMLEW): Ditto.
12770 (IX86_BUILTIN_PCOMGTW): Ditto.
12771 (IX86_BUILTIN_PCOMGEW): Ditto.
12772 (IX86_BUILTIN_PCOMFALSEW): Ditto.
12773 (IX86_BUILTIN_PCOMTRUEW): Ditto.
12774 (IX86_BUILTIN_PCOMEQD): Ditto.
12775 (IX86_BUILTIN_PCOMNED): Ditto.
12776 (IX86_BUILTIN_PCOMLTD): Ditto.
12777 (IX86_BUILTIN_PCOMLED): Ditto.
12778 (IX86_BUILTIN_PCOMGTD): Ditto.
12779 (IX86_BUILTIN_PCOMGED): Ditto.
12780 (IX86_BUILTIN_PCOMFALSED): Ditto.
12781 (IX86_BUILTIN_PCOMTRUED): Ditto.
12782 (IX86_BUILTIN_PCOMEQQ): Ditto.
12783 (IX86_BUILTIN_PCOMNEQ): Ditto.
12784 (IX86_BUILTIN_PCOMLTQ): Ditto.
12785 (IX86_BUILTIN_PCOMLEQ): Ditto.
12786 (IX86_BUILTIN_PCOMGTQ): Ditto.
12787 (IX86_BUILTIN_PCOMGEQ): Ditto.
12788 (IX86_BUILTIN_PCOMFALSEQ): Ditto.
12789 (IX86_BUILTIN_PCOMTRUEQ): Ditto.
12790 (enum multi_arg_type): New enum for describing the various SSE5
12791 intrinsic argument types.
12792 (bdesc_multi_arg): New table for SSE5 intrinsics.
12793 (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
12794 (ix86_expand_multi_arg_builtin): New function for creating SSE5
12795 intrinsics.
12796 (ix86_expand_builtin): Add SSE5 intrinsic support.
12797 (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
12798 operand instructions.
12799 (ix86_expand_sse5_multiple_memory): New function to split the
12800 second memory reference from SSE5 instructions.
12801 (type_has_variadic_args_p): Delete in favor of stdarg_p.
12802 (ix86_return_pops_args): Use stdarg_p to determine if the function
12803 has variable arguments.
12804 (ix86_setup_incoming_varargs): Ditto.
12805 (x86_this_parameter): Ditto.
12806
12807 * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
12808 declaration.
12809 (ix86_expand_sse5_pack): Ditto.
12810 (ix86_sse5_valid_op_p): Ditto.
12811 (ix86_expand_sse5_multiple_memory): Ditto.
12812
12813 * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
12814 constant for SSE5 support.
12815 (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
12816 (UNSPEC_SSE5_TRUEFALSE): Ditto.
12817 (UNSPEC_SSE5_PERMUTE): Ditto.
12818 (UNSPEC_SSE5_ASHIFT): Ditto.
12819 (UNSPEC_SSE5_LSHIFT): Ditto.
12820 (UNSPEC_FRCZ): Ditto.
12821 (UNSPEC_CVTPH2PS): Ditto.
12822 (UNSPEC_CVTPS2PH): Ditto.
12823 (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
12824 (PCOM_TRUE): Ditto.
12825 (COM_FALSE_S): Ditto.
12826 (COM_FALSE_P): Ditto.
12827 (COM_TRUE_S): Ditto.
12828 (COM_TRUE_P): Ditto.
12829 (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
12830 (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
12831 types.
12832 (memory attribute): Ditto.
12833 (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
12834 Use SSE4_1_ROUND_* constants instead of hard coded numbers.
12835 (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
12836 (floor<mode>2): Ditto.
12837 (ceil<mode>2): Ditto.
12838 (btrunc<mode>2): Ditto.
12839 (nearbyintdf2): Ditto.
12840 (nearbyintsf2): Ditto.
12841 (sse_setccsf): Disable if SSE5.
12842 (sse_setccdf): Ditto.
12843 (sse5_setcc<mode>): New support for SSE5 conditional move.
12844 (sse5_pcmov_<mode>): Ditto.
12845
12846 * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
12847 (SSEMODEF4): Ditto.
12848 (SSEMODEF2P): Ditto.
12849 (ssemodesuffixf4): New mode attribute for SSE5.
12850 (ssemodesuffixf2s): Ditto.
12851 (ssemodesuffixf2c): Ditto.
12852 (sserotatemax): Ditto.
12853 (ssescalarmode): Ditto.
12854 (sse_maskcmpv4sf3): Disable if SSE5.
12855 (sse_maskcmpv2df3): Ditto.
12856 (sse_vmmaskcmpv4sf3): Ditto.
2b3b22d3 12857 (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
5c1a2bb1
JH
12858 (sse5_vmfmadd<mode>4): Ditto.
12859 (sse5_fmsub<mode>4): Ditto.
12860 (sse5_vmfmsub<mode>4): Ditto.
12861 (sse5_fnmadd<mode>4): Ditto.
12862 (sse5_vmfnmadd<mode>4): Ditto.
12863 (sse5_fnmsub<mode>4): Ditto.
12864 (sse5_vmfnmsub<mode>4): Ditto.
12865 (sse5i_fmadd<mode>4): Ditto.
12866 (sse5i_fmsub<mode>4): Ditto.
12867 (sse5i_fnmadd<mode>4): Ditto.
12868 (sse5i_fnmsub<mode>4): Ditto.
12869 (sse5i_vmfmadd<mode>4): Ditto.
12870 (sse5i_vmfmsub<mode>4): Ditto.
12871 (sse5i_vmfnmadd<mode>4): Ditto.
12872 (sse5i_vmfnmsub<mode>4): Ditto.
12873 (mulv16qi3): Add SSE5 support.
12874 (mulv4si3): Ditto.
12875 (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
12876 (sse2_mulv4si3): Disable if SSE5.
12877 (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
12878 (sse4_1_roundps): Ditto.
12879 (sse4_1_roundsd): Ditto.
12880 (sse4_1_roundss): Ditto.
12881 (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
12882 be generated.
12883 (sse_maskcmpsf3): Ditto.
12884 (sse_vmmaskcmpv4sf3): Ditto.
12885 (sse2_maskcmpv2df3): Ditto.
12886 (sse2_maskcmpdf3): Ditto.
12887 (sse2_vmmaskcmpv2df3): Ditto.
12888 (sse2_eq<mode>3): Ditto.
12889 (sse2_gt<mode>3): Ditto.
12890 (sse5_pcmov_<mode>): Add SSE5 support.
12891 (vec_unpacku_hi_v16qi): Ditto.
12892 (vec_unpacks_hi_v16qi): Ditto.
12893 (vec_unpacku_lo_v16qi): Ditto.
12894 (vec_unpacks_lo_v16qi): Ditto.
12895 (vec_unpacku_hi_v8hi): Ditto.
12896 (vec_unpacks_hi_v8hi): Ditto.
12897 (vec_unpacku_lo_v8hi): Ditto.
12898 (vec_unpacks_lo_v8hi): Ditto.
12899 (vec_unpacku_hi_v4si): Ditto.
12900 (vec_unpacks_hi_v4si): Ditto.
12901 (vec_unpacku_lo_v4si): Ditto.
12902 (vec_unpacks_lo_v4si): Ditto.
12903 (sse5_pmacsww): New SSE5 intrinsic insn.
12904 (sse5_pmacssww): Ditto.
12905 (sse5_pmacsdd): Ditto.
12906 (sse5_pmacssdd): Ditto.
12907 (sse5_pmacssdql): Ditto.
12908 (sse5_pmacssdqh): Ditto.
12909 (sse5_pmacsdqh): Ditto.
12910 (sse5_pmacsswd): Ditto.
12911 (sse5_pmacswd): Ditto.
12912 (sse5_pmadcsswd): Ditto.
12913 (sse5_pmadcswd): Ditto.
12914 (sse5_pcmov_<move>): Conditional move support on SSE5.
12915 (sse5_phaddbw): New SSE5 intrinsic insn.
12916 (sse5_phaddbd): Ditto.
12917 (sse5_phaddbq): Ditto.
12918 (sse5_phaddwd): Ditto.
12919 (sse5_phaddwq): Ditto.
12920 (sse5_phadddq): Ditto.
12921 (sse5_phaddubw): Ditto.
12922 (sse5_phaddubd): Ditto.
12923 (sse5_phaddubq): Ditto.
12924 (sse5_phadduwd): Ditto.
12925 (sse5_phadduwq): Ditto.
12926 (sse5_phaddudq): Ditto.
12927 (sse5_phsubbw): Ditto.
12928 (sse5_phsubwd): Ditto.
12929 (sse5_phsubdq): Ditto.
12930 (sse5_pperm): Ditto.
12931 (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
12932 (sse5_pperm_zero_v16qi_v8hi): Ditto.
12933 (sse5_pperm_sign_v8hi_v4si): Ditto.
12934 (sse5_pperm_zero_v8hi_v4si): Ditto.
12935 (sse5_pperm_sign_v4si_v2di): Ditto.
12936 (sse5_pperm_sign_v4si_v2di): Ditto.
12937 (sse5_pperm_pack_v2di_v4si): Ditto.
12938 (sse5_pperm_pack_v4si_v8hi): Ditto.
12939 (sse5_pperm_pack_v8hi_v16qi): Ditto.
12940 (sse5_perm<mode>): New SSE5 intrinsic insn.
12941 (rotl<mode>3): Ditto.
12942 (sse5_rotl<mode>3): Ditto.
12943 (sse5_ashl<mode>3): Ditto.
12944 (sse5_lshl<mode>3): Ditto.
12945 (sse5_frcz<mode>2): Ditto.
12946 (sse5s_frcz<mode>2): Ditto.
12947 (sse5_cvtph2ps): Ditto.
12948 (sse5_cvtps2ph): Ditto.
12949 (sse5_vmmaskcmp<mode>3): Ditto.
12950 (sse5_com_tf<mode>3): Ditto.
12951 (sse5_maskcmp<mode>3): Ditto.
12952 (sse5_maskcmp_uns<mode>3): Ditto.
12953 (sse5_maskcmp_uns2<mode>3): Ditto.
12954 (sse5_pcom_tf<mode>3): Ditto.
7b3d1847
UB
12955
12956 * config/i386/predicates.md (sse5_comparison_float_operator):
12957 New predicate to match the comparison operators supported by
12958 the SSE5 com instruction.
5c1a2bb1
JH
12959 (ix86_comparison_int_operator): New predicate to match just the
12960 signed int comparisons.
12961 (ix86_comparison_uns_operator): New predicate to match just the
12962 unsigned int comparisons.
12963
12964 * doc/invoke.texi (-msse5): Add documentation.
12965 (-mfused-madd): Ditto.
12966
12967 * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
12968
12969 * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
12970 mmintrin-common.h.
12971 (x86_64-*-*): Ditto.
12972
12973 * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
12974
12975 * config/i386/bmmintrin.h: New file, provide common x86 compiler
12976 intrinisics for SSE5.
12977
12978 * config/i386/smmintrin.h: Move instructions shared with SSE5 to
12979 mmintrin-common.h.
12980
12981 * config/i386/mmintrin-common.h: New file, to contain common
12982 instructions between SSE4.1 and SSE5.
12983
12984 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
12985 FOREACH_FUNCTION_ARGS to iterate over the argument list.
12986 (gen_regparm_prefix): Ditto.
12987
12988 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
12989 FOREACH_FUNCTION_ARGS to iterate over the argument list. Use
12990 prototype_p to determine if a function is prototyped.
12991
f4e8a943
VV
129922009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
12993
12994 * c-common.c (c_common_reswords) add the alignof keyword,
12995 with same RID as __alignof and __alignof__
12996
7b5cbb57
AS
129972009-08-25 Anatoly Sokolov <aesok@post.ru>
12998
12999 * hooks.h (hook_bool_const_int_const_int_true): Declare.
13000 * hooks.c (hook_bool_const_int_const_int_true): New function.
13001 * target.h (struct gcc_target): Add can_eliminate field.
13002 * target-def.h (TARGET_CAN_ELIMINATE): Define.
13003 (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
13004 * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
13005 * reload1.c (update_eliminables, init_elim_table): (Ditto.).
13006 (elim_table): Revise comment.
13007 * system.h (CAN_ELIMINATE): Poison.
13008 * defaults.h (CAN_ELIMINATE): Remove.
13009 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
13010
13011 * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
13012 * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
13013 Define macro.
13014 (alpha_vms_can_eliminate): Declare as static, change return type to
13015 bool.
13016 * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
13017
13018 * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
13019 * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
13020 (arm_can_eliminate): New function.
13021
13022 * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
13023 * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
13024 (avr_can_eliminate): Declare as static.
13025 * config/avr/avr-protos.h (avr_can_eliminate): Remove.
13026
13027 * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
13028 * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
13029 (bfin_can_eliminate): New function.
13030
13031 * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
13032 * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
13033 (crx_can_eliminate): New function.
7b3d1847 13034
7b5cbb57
AS
13035 * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
13036 * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
13037 (fr30_can_eliminate): New function.
13038
13039 * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
13040 * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
13041 (frv_can_eliminate): New function.
13042
13043 * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
13044 * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
13045 (h8300_can_eliminate): New function.
13046
13047 * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
13048 * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
13049 (i386_can_eliminate): Declare as static, change return type to bool.
13050 * config/i386/i386-protos.h (i386_can_eliminate): Remove.
13051
13052 * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
13053 * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
13054 (ia64_can_eliminate): New function.
13055
13056 * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
13057 * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
13058 (iq2000_can_eliminate): New function.
13059
13060 * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
13061 * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
13062 (m32r_can_eliminate): New function.
13063
13064 * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
13065 * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
13066 (m68hc11_can_eliminate): New function.
13067
13068 * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
13069 * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
13070 (m68k_can_eliminate): New function.
13071
13072 * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
13073 * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
13074 (mep_can_eliminate): New function.
13075
13076 * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
13077 * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
13078 (mips_can_eliminate): New function.
13079
13080 * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
13081 * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
13082 (rs6000_can_eliminate): New function.
13083
13084 * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
13085 * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
13086 (s390_can_eliminate): Declare as static.
13087 * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
13088
13089 * config/score/score.h (CAN_ELIMINATE): Remove macro.
13090 * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
13091 (score_can_eliminate): New function.
13092
13093 * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
13094 * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
13095 (sparc_can_eliminate): Declare as static.
13096 * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
13097
13098 * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
13099 * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
13100 (xstormy16_can_eliminate): New function.
13101
13102 * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
13103 * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
13104 (v850_can_eliminate): New function.
13105
e7f8fba9
UB
131062009-08-25 Uros Bizjak <ubizjak@gmail.com>
13107
13108 * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
13109 (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
13110 (*movdfcc_ext[1234]): Disable for IEEE mode.
13111
f76d6e6f
EB
131122009-08-25 Eric Botcazou <ebotcazou@adacore.com>
13113
13114 * gimplify.c (prepare_gimple_addressable): New static function.
13115 (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
13116 it addressable.
13117 (gimplify_addr_expr): Invoke it similarly on the operand instead of
13118 manually fiddling with it.
13119
4df62c77
MM
131202009-08-25 Michael Matz <matz@suse.de>
13121
13122 * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
13123 * dojump.c (do_jump_by_parts_greater): Take two operands instead of
13124 full expression.
13125 (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
13126 (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
13127 (do_jump): Split out code for simple binary comparisons into ...
13128 (do_jump_1): ... this, taking the individual operands and code.
13129 Change callers to helper function above accordingly.
13130 * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
13131 comparisons.
13132
8e7aa1f9
MM
131332009-08-25 Michael Matz <matz@suse.de>
13134
13135 * expr.h (struct separate_ops, sepops): New type for passing
13136 around an exploded simple expression.
13137 * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
13138 Use this structure instead of expression tree.
13139 (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
13140 expression, only its type.
13141 (expand_vec_cond_expr): Take type and individual operands instead
13142 of full expression.
13143 * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
13144 expand_vec_shift_expr): Change prototype accordingly.
13145 * tree-vect-stmts.c (vectorizable_condition): Change call of
13146 expand_vec_cond_expr_p to pass only type.
13147 * expr.c (do_store_flags): Change prototype and implementation
13148 to take an exploded expression.
13149 (expand_expr_real_1): New local ops initialized with details
13150 of the full expression. Use it instead of full
13151 expression in calls to do_store_flags, expand_vec_cond_expr,
13152 expand_widen_pattern_expr and expand_vec_shift_expr.
13153
b32e7cdb
MM
131542009-08-25 Michael Matz <matz@suse.de>
13155
13156 * expr.c (expand_expr_real_1): New local treeop0, treeop1,
13157 treeop2 initialized with first three operands of the full expression.
13158 Substitute all TREE_OPERAND (exp, [012]) calls with them.
13159
ce4a9de3
KT
131602009-08-25 Kai Tietz <kai.tietz@onevision.com>
13161
13162 * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
13163 (__gthread_objc_condition_allocate): Mark arguments as unused.
13164 (__gthread_objc_condition_deallocate): Likewise.
13165 (__gthread_objc_condition_wait): Likewise.
13166 (__gthread_objc_condition_broadcast): Likewise.
13167 (__gthread_objc_condition_signal): Likewise.
13168 (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
13169 (__gthread_objc_thread_id): Likewise.
13170
d69b8a03
JW
131712009-08-25 Janus Weil <janus@gcc.gnu.org>
13172
13173 PR middle-end/41149
13174 * tree-pretty-print.c (print_call_name): Print the correct call name
13175 for procedure pointer components.
13176
c3313412
SE
131772009-08-24 Steve Ellcey <sje@cup.hp.com>
13178
13179 * config/ia64/ia64.c (ia64_promote_function_mode): Call
13180 default_promote_function_mode when not VMS.
13181
c767899e
OH
131822009-08-24 Olivier Hainque <hainque@adacore.com>
13183
13184 * convert.c (convert_to_integer): Don't assume an input pointer is
13185 POINTER_SIZE wide. Fetch from the type instead.
13186
df58e648
RW
131872009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13188
13189 * configure.ac (AC_PREREQ): Bump to 2.64.
13190
2ef4a8e1
RAE
131912009-08-24 Rafael Avila de Espindola <espindola@google.com>
13192
13193 * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
13194 (process_command): Don't search standard_exec_prefix_1 and
13195 standard_exec_prefix_2.
13196
c7e9ab97
RR
131972009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13198
7b3d1847
UB
13199 * config/arm/arm.c (output_return_instruction): Handle for
13200 unified syntax.
c7e9ab97 13201
3e2d9dcf
RR
132022009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13203
7b3d1847 13204 * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
3e2d9dcf 13205
54f52b81
RR
132062009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13207
7b3d1847
UB
13208 * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
13209 (*arm_movdf_vfp): Likewise.
54f52b81 13210
d44463a9
RR
132112009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13212
7b3d1847
UB
13213 * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
13214 (vashr<mode>3): Rename from ashr<mode>3.
13215 (vlshr<mode>3): Rename from lshr<mode>3.
d44463a9 13216
b241b475
KT
132172009-08-24 Kai Tietz <kai.tietz@onevision.com>
13218
13219 PR/40786
5fa162c0 13220 * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
b241b475
KT
13221 (check_format_info_main): Use scalar_identify_flag.
13222 (check_format_types): Check for scalar size identity if
13223 scalar_identify_flag is set.
13224 (printf_length_specs): Extend by new field.
13225 (asm_fprintf_length_specs): Likewise.
13226 (gcc_diag_length_specs): Likewise.
13227 (scanf_length_specs): Likewise.
13228 (strfmon_length_specs): Likewise.
13229 (gcc_gfc_length_specs): Likewise.
13230 * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
13231 (ms_printf_flag_specs): Likewise.
13232 * c-format.h (format_length_info): Add new member scalar_identity_flag.
13233
8c40d061
UB
132342009-08-23 Uros Bizjak <ubizjak@gmail.com>
13235
13236 PR target/40718
13237 * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
fe62197b 13238 (*call_value_pop_1): Ditto.
8c40d061 13239 (*sibcall_pop_1): New insn pattern.
fe62197b 13240 (*sibcall_value_pop_1): Ditto.
8c40d061 13241
0aa580f4
AM
132422009-08-23 Alan Modra <amodra@bigpond.net.au>
13243
13244 PR target/41081
13245 * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
13246 ashrsi3_64): New.
13247
e25b7843
AM
132482009-08-23 Alan Modra <amodra@bigpond.net.au>
13249
13250 PR target/41081
13251 * fwprop.c (try_fwprop_subst): Allow multiple sets.
13252 (get_reg_use_in): New function.
13253 (forward_propagate_subreg): Propagate through subreg of zero_extend
13254 or sign_extend.
13255
79052be3
KK
132562009-08-22 Kaz Kojima <kkojima@gcc.gnu.org>
13257
13258 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
13259 * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
13260
5213506e
RW
132612009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13262
70fa0efa
RW
13263 * configure.ac: Remove --with-datarootdir, --with-docdir,
13264 --with-htmldir switches. No need to call AC_SUBST for
13265 datarootdir, docdir, htmldir any more.
13266 * configure: Regenerate.
13267 * doc/install.texi (Configuration): Document --datarootdir,
13268 --docdir, --htmldir, --pdfdir; update documentation for
13269 --infodir, --mandir.
e7f8fba9
UB
13270 (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
13271 M4 to 1.4.6.
70fa0efa 13272
5213506e
RW
13273 * aclocal.m4: Regenerate.
13274 * config.in: Regenerate.
13275 * configure: Regenerate.
13276
f2972bf8
DR
132772009-08-21 Douglas B Rupp <rupp@gnat.com>
13278 Olivier Hainque <hainque@adacore.com>
13279
13280 * config/ia64/ia64.c: Include libfuncs.h.
13281 (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
13282 (ia64_expand_call): Use reg 25 on VMS.
13283 (ia64_initialize_trampoline): Fix for VMS ABI.
13284 (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
13285 (ia64_function_arg): Initialize reg 25 on VMS.
13286 Fix OpenVMS ABI issues for varargs.
13287 For OpenVMS, emit the Argument Information register set in the
13288 incoming/sibcall case as well.
13289 (ia64_arg_type): New function.
13290 (ia64_function_arg_advance): Keep track of cum->words.
13291 Fix OpenVMS ABI issues for varargs.
13292 (ia64_function_value): On VMS, promote mode of non-aggregate types.
13293 (ia64_override_options): Set flag_no_common on VMS.
13294 (ia64_init_builtins): Disable FWRITE builtin.
13295 (ia64_asm_output_external): Call DO_CRTL_NAMES.
13296 (ia64_vms_init_libfuncs): Add decc$ routines.
13297 (ia64_vms_valid_pointer_mode): New function.
13298 (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
13299 (ia64_promote_function_mode): New function
13300 * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
13301 (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
13302 (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
13303 (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
13304 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
13305 (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
13306 Suppress trailing '#' if VALUE is numeric.
13307 * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
13308 ia64_promote_function_mode.
13309 (TARGET_VALID_POINTER_MODE): Define.
13310
30402573
MM
133112009-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13312
13313 PR target/40671
13314 * config/rs6000/rs6000.c (rs6000_override_options): Use
8c40d061 13315 TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
30402573
MM
13316
13317 PR target/41145
13318 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
c89f5009 13319 reporting of vector + decimal/boolean/complex error.
30402573 13320
08ffd640
JJ
133212009-08-21 Jakub Jelinek <jakub@redhat.com>
13322
13323 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
13324 __vector double TYPE_DECL.
13325
46107b99
RE
133262009-08-21 Richard Earnshaw <rearnsha@arm.com>
13327
13328 * arm.h (MACHMODE): New define. Include insn-modes.h if available.
13329 (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
13330 * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
13331 to pointer to enum machine_mode. Update all callers as needed.
13332
0f032845 133332009-08-21 Uros Bizjak <ubizjak@gmail.com>
7450a081
UB
13334
13335 * config/alpha/alpha.md (exception_receiver): Emit alternative
13336 GP load sequence if flag_reorder_blocks_and_partition is set.
13337 (*exception_receiver_2): Also enable when
13338 flag_reorder_blocks_and_partition is set.
13339
6d383c5e
MR
133402009-08-20 Matt Rice <ratmice@gmail.com>
13341 Diego Novillo <dnovillo@google.com>
13342
13343 * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
13344 tree-ssa-sccvn.h.
13345
29cc57cf
RG
133462009-08-20 Richard Guenther <rguenther@suse.de>
13347
8c40d061 13348 * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
29cc57cf
RG
13349 * c-tree.h (c_dup_lang_specific_decl): Remove.
13350 (struct lang_decl, struct lang_type): Move definitions ...
13351 * c-lang.h: ... here. New file.
13352 * c-decl.c: Include c-lang.h.
13353 (c_dup_lang_specific_decl): Remove.
13354 * c-typeck.c: Include c-lang.h.
13355 * Makefile.in (c-decl.o): Add c-lang.h dependency.
13356 (c-typeck.o): Likewise.
13357 * c-config-lang.in (gtfiles): Add c-lang.h.
13358 * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
13359 like c-tree.h.
13360
7e9f2c0f
UB
133612009-08-20 Uros Bizjak <ubizjak@gmail.com>
13362
13363 * config/alpha/alpha.c (alpha_end_function): Do not clear
13364 crtl->emit structure and free insn locators if cfun->is_thunk is true,
13365 this is now handled in generic code.
13366
b0f86a7e
AK
133672009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
13368
13369 * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
13370 (s390_z10_fix_long_loop_prediction): New function.
13371 (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
13372 (s390_reorg): Walk over the INSNs and invoke
13373 s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
13374
f1149235
AK
133752009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
13376
13377 * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
13378 "*brx_64bit", "*brx_31bit"): New patterns.
13379 * config/s390/s390.c ('E'): New output modifier.
13380
a552b644 133812009-08-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7e9f2c0f 13382 Richard Earnshaw <richard.earnshaw@arm.com>
a552b644 13383
7e9f2c0f
UB
13384 * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
13385 * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
a552b644 13386
2fd74bff
JDA
133872009-08-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13388
13389 * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
13390 patterns.
13391 * pa.c (emit_move_sequence): Check if address of operand1 is valid
13392 for mode mode of operand0 when doing secondary reload for SAR.
13393
b8e444f4
JJ
133942009-08-19 Jakub Jelinek <jakub@redhat.com>
13395
13396 PR middle-end/41123
13397 * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
13398 of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
13399
6c879482
JM
134002009-08-19 Jason Merrill <jason@redhat.com>
13401
13402 * doc/invoke.texi (C++ Dialect Options): Note change of minimum
13403 supported template depth in C++0x.
13404
dc0c6451
JJ
134052009-08-19 Jakub Jelinek <jakub@redhat.com>
13406
13407 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
13408 free_after_compilation.
13409 * config/score/score7.c (score7_output_mi_thunk): Likewise.
13410 * config/score/score3.c (score3_output_mi_thunk): Likewise.
13411 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
13412 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
13413 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
13414 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
13415 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
13416
9302a061
ILT
134172009-08-19 Ian Lance Taylor <iant@google.com>
13418
13419 * doc/md.texi (Insn Canonicalizations): Correct canonicalization
13420 of (plus (mult (neg B) C) A).
13421
9600efe1
MM
134222009-08-18 Michael Matz <matz@suse.de>
13423
13424 * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
13425 instead of comparing TYPE_MAIN_VARIANT for equality.
13426 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
13427 vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
13428 * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
13429 * gimplify.c (goa_lhs_expr_p): Ditto and use
13430 STRIP_USELESS_TYPE_CONVERSION.
13431
10174ddf
MM
134322009-08-18 Michael Matz <matz@suse.de>
13433
13434 * tree-ssa-structalias.c (create_variable_info_for): Also mark
13435 first field in a struct.
13436 (intra_create_variable_infos): Don't deal with flag_argument_noalias.
13437
e72cee90
UB
134382009-08-18 Uros Bizjak <ubizjak@gmail.com>
13439
13440 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
13441 locators before emit_insn is called. Remove assert that
13442 cfun->is_thunk.
13443 (alpha_end_function): Clear crtl->emit structure and free insn
13444 locators if cfun->is_thunk is true.
13445
e31bcd1b
JM
134462009-08-18 Jason Merrill <jason@redhat.com>
13447
13448 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
13449 type if available.
13450 * configure.ac: Test for it.
13451 * configure, config.in: Regenerate.
13452 * doc/install.texi: Document --enable-gnu-unique-object.
13453
776e7174
RG
134542009-08-18 Richard Guenther <rguenther@suse.de>
13455
13456 PR middle-end/41094
13457 * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
13458 pow(x,y*z) only if x is nonnegative.
13459
68a31530
JJ
134602009-08-18 Jakub Jelinek <jakub@redhat.com>
13461
13462 * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
13463 on jumps.
13464
f3252b3c
JJ
13465 PR target/40971
13466 * config/rs6000/rs6000.c (rs6000_legitimize_address): For
13467 [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
13468
65655f79
DD
134692009-08-17 DJ Delorie <dj@redhat.com>
13470
13471 * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
13472 * config/m32c/prologue.md (epilogue_freit): New.
13473 (fset_b): New.
13474 * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
13475 (bank_switch_p): Likewise.
13476 (fast_interrupt_p): Likewise.
13477 (interrupt_p): Likewise.
13478 (m32c_conditional_register_usage): Round memregs size up.
13479 (need_to_save): We only need to save $a0 when we use ENTER.
13480 (interrupt_p): Check for fast_interrupt too.
13481 (bank_switch_p): New.
13482 (fast_interrupt_p): New.
13483 (m32c_attribute_table): Add bank_switch and fast_interrupt.
13484 (m32c_emit_prolog): Support bank switching and fast interrupts.
13485 * doc/extend.texi (Function Attributes): Add bank_switch and
13486 fast_interrupt.
13487
dfe6ba6d
DR
134882009-08-17 Douglas B Rupp <rupp@gnat.com>
13489
13490 * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
13491 * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
13492
dcad28fd
DR
134932009-08-16 Douglas B Rupp <rupp@gnat.com>
13494
8c40d061 13495 * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
dcad28fd
DR
13496 (menu): Add IA-64/VMS Options.
13497 (IA-64/VMS Options): Likewise.
13498
30fff3d8
RS
134992009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
13500
13501 PR target/38599
13502 * config/mips/mips.md (*lwxs): Use :P for pointer values.
13503
cf5fb4b0
RS
135042009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
13505
13506 * config/mips/mips-protos.h (mips_push_asm_switch): New function.
13507 (mips_pop_asm_switch): Likewise.
13508 * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
13509 with...
13510 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
13511 (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
13512 (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
13513 (mips_print_operand_punctuation): Use them. Check mips_noreorder
13514 instead of set_noreorder.
13515 (mips_output_function_prologue): Use the new functions.
13516 (mips_output_function_epilogue): Likewise.
13517 (mips_need_noat_wrapper_p): New function, split out from...
13518 (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
13519 Use mips_push_asm_switch and mips_pop_asm_switch.
13520 * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
13521 and mips_pop_asm_switch.
13522 (ASM_OUTPUT_REG_POP): Likewise.
13523 (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
13524 Use mips_pop_asm_switch.
13525 (mips_asm_switch): New structure.
13526 (set_noreorder, set_nomacro): Replace with...
13527 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
13528 * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
13529 instead of set_nomacro.
13530 (fix_truncsfsi2_macro): Likewise.
13531 (cprestore): Likewise.
13532 (hazard): Use mips_noreorder instead of set_noreorder.
13533 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
13534
3eb96d01
UB
135352009-08-16 Uros Bizjak <ubizjak@gmail.com>
13536
8a067ce4 13537 * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
3eb96d01
UB
13538 from prev_active_insn.
13539
164709cf
AS
135402009-08-16 Anatoly Sokolov <aesok@post.ru>
13541
13542 * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
13543 * config/avr/avr.c (avr_override_options): Initialize
13544 avr_current_arch variable.
13545 (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
13546 __AVR_HAVE_16BIT_SP__ according to the device type.
13547 (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
13548 TARGET_TINY_STACK.
13549 (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
13550 Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
13551
5782bb7a
DS
135522009-08-16 Dodji Seketeli <dodji@redhat.com>
13553
52ac997d 13554 PR debug/37801
5782bb7a
DS
13555 * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
13556 generating inlined subroutine die only. We shouldn't be
13557 called for anything else.
13558 (gen_block_die): Don't generate inline subroutine debug info for
13559 abstract blocks.
13560
07636543
SP
135612009-08-15 Sebastian Pop <sebastian.pop@amd.com>
13562
13563 * graphite-poly.c (print_pbb): Print PBB index.
13564
f263917c
SP
135652009-08-15 Sebastian Pop <sebastian.pop@amd.com>
13566
13567 PR middle-end/40981
13568 * graphite-interchange.c (ppl_max_for_le): Moved...
13569 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
13570 * graphite-ppl.c (ppl_max_for_le): ... here. Correct the use of
13571 ppl_Pointset_Powerset_C_Polyhedron_maximize.
13572 * graphite-ppl.h (ppl_max_for_le): Declared.
13573
c54d7dc9
OR
135742009-08-14 Olatunji Ruwase <tjruwase@google.com>
13575
13576 * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
13577 supported on all platforms.
8c40d061
UB
13578 * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
13579 * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
c54d7dc9
OR
13580 * c-pragma.c: Likewise.
13581 * target-def.h (TARGET_INITIALIZER): Remove
13582 TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
8c40d061 13583 * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
c54d7dc9 13584
b874a90d
DR
135852009-08-14 Douglas B Rupp <rupp@gnat.com>
13586
13587 * config/ia64/fde-vms.c: New file.
13588 * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
13589 * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
13590 (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
13591 (uw_frame_state_for): Only register a personality routine if it is
13592 known to be compatible with our expectations.
13593 (_Unwind_FindEnclosingFunction, uw_frame_state_for):
13594 Declare unw_table_entry stack variable and
13595 mod all calls to _Unwind_FindTableEntry to add arg.
13596 * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
13597 (_Unwind_FindTableEntry): Add arg to prototype.
13598
ac77b88e
EB
135992009-08-14 Eric Botcazou <ebotcazou@adacore.com>
13600
13601 * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
13602 field 'signal_pfs_loc'.
13603 (uw_frame_state_for): Remove duplicate code dealing with leaf
13604 procedures without unwind info.
13605 If in the frame after unwinding through a signal handler, restore
13606 the AR.PFS register instead of the CFM if AR.PFS has not been saved.
13607 * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
13608 'pfs_loc' to the AR.PFS location in the signal context; instead
13609 set 'signal_pfs_loc'.
13610 Manually generate the unwind info for the AR.PFS register.
13611 (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
13612 ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
13613 (ia64_handle_unwabi): Test 'fs->unwabi' against them.
13614 Do not set 'pfs_loc' to the AR.PFS location in the signal context;
13615 instead set 'signal_pfs_loc'.
13616 Remove code preventing the AR.PFS register from being restored
13617 from the signal context.
13618
c24db304
DR
136192009-08-14 Douglas B Rupp <rupp@gnat.com>
13620 Tristan Gingold <gingold@adacore.com>
13621
13622 * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
13623 * config/ia64/t-vms: New file.
13624 * config/ia64/vms64.h: New file.
13625 * config/ia64/vms.h: New file.
13626 * config/ia64/vms-crtinit.asm: New file.
13627 * config/ia64/vms_symvec_libgcc_s.opt: New file.
13628 * config/ia64/vms-unwind.h: New file.
13629
387c39e1
UB
136302009-08-14 Uros Bizjak <ubizjak@gmail.com>
13631
13632 * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
13633 TFmode compares.
13634
2f440f6a
KG
136352009-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13636
13637 PR middle-end/30789
8c40d061
UB
13638 * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
13639 Move declaration...
2f440f6a
KG
13640 * real.h (do_mpc_arg2): ... here.
13641 * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
13642 and RDIV_EXPR.
13643
fe83055d
RAE
136442009-08-14 Rafael Avila de Espindola <espindola@google.com>
13645
c54d7dc9
OR
13646 * final.c (add_debug_prefix_map): Don't use GC memory for
13647 old_prefix and new_prefix.
fe83055d 13648
1a15bfdc
RG
136492009-08-14 Richard Guenther <rguenther@suse.de>
13650
13651 * ipa-prop.c (compute_complex_pass_through): If we cannot
13652 compute a non-varying offset for IPA_JF_ANCESTOR punt.
13653
065312cf
UW
136542009-08-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13655
13656 * c-lex.c (c_lex_with_flags): Increase size of local variable
13657 to avoid memory clobber.
13658
371015a8
PB
136592009-08-14 Paolo Bonzini <bonzini@gnu.org>
13660
13661 PR target/40934
13662 * config/i386/i386.c (ix86_fp_comparison_strategy):
387c39e1 13663 Only enable/disable sahf at function granularity.
371015a8 13664
94aca67a
HPN
136652009-08-14 Hans-Peter Nilsson <hp@axis.com>
13666
13667 PR rtl-optimization/41064
13668 * reload1.c (reload_as_needed): Don't call extract_insn
13669 for known invalid replacements after calling
13670 validate_replace_rtx_group and verify_changes.
13671
1262fd02
UB
136722009-08-14 Uros Bizjak <ubizjak@gmail.com>
13673
13674 PR target/41019
13675 * config/i386/sse.md (SSEMODE124C8): New mode iterator.
13676 (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
13677 ix86_expand_fp_vcond.
13678 (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
13679 Assert that operation is supported by ix86_expand_int_vcond.
13680 (vcondu<SSEMODE124C8:mode>): Ditto.
13681
3e3877f8
DD
136822009-08-13 DJ Delorie <dj@redhat.com>
13683
13684 * config/i386/djgpp-stdint.h: New.
13685 * config.gcc (djgpp): Use it.
13686
91d1d521
KK
136872009-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
13688
13689 * config/sh/sh.c (sh_override_options): When flag_exceptions or
1262fd02 13690 flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
91d1d521 13691
2c6dd136
GS
136922009-08-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
13693
387c39e1
UB
13694 * tree-ssa-loop-prefetch.c
13695 (prune_ref_by_group_reuse): Enhance probabilistic analysis
2c6dd136
GS
13696 for long-stride pruning.
13697 (compute_miss_rate): New function to compute the probability
387c39e1 13698 that two memory references access different cache lines.
2c6dd136 13699
241547bb
DK
137002009-08-13 Dave Korn <dave.korn.cygwin@gmail.com>
13701
13702 * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
13703
e5fdcd8c
RG
137042009-08-13 Richard Guenther <rguenther@suse.de>
13705
13706 PR middle-end/41047
13707 * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
13708 use the constant pointer type.
13709 * gimplify.c (canonicalize_addr_expr): Canonicalize independent
13710 of CV qualifiers on the target pointer type.
13711 * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
13712 conversion check before restrict check.
13713
d5652a5a
KK
137142009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
13715
13716 PR target/41029
13717 * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
13718
d8158ff1
KK
137192009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
13720
13721 * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
13722
88ccda10
RG
137232009-08-12 Richard Guenther <rguenther@suse.de>
13724
13725 PR tree-optimization/41011
13726 * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
13727 and reference constructing.
13728
6eb29714
XDL
137292009-08-12 Xinliang David Li <davidxl@google.com>
13730
13731 PR tree-optimization/41012
13732 * tree-flow.h : New external interface.
13733 * gimple-low.c (check_call_arg): Change to public function.
13734 Remove argument mismatch check in lowering.
13735 * tree-inline.h (tree_can_inline_p): Interface change.
13736 * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
13737 into this function.
f100a4a8 13738 * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
6eb29714
XDL
13739 Call change to tree_can_inline_p function.
13740 (cgraph_decide_inlining_incrementally): Ditto.
13741
b2a58473
RS
137422009-08-12 Richard Sandiford <rdsandiford@googlemail.com>
13743
13744 PR tree-optimization/41031
13745 * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
13746 on the partition variable rather than promote_mode on the source
13747 type. Assert that the partition variable's type has the same
13748 mode as the source value's.
13749
666e3ceb
PB
137502009-08-12 Paolo Bonzini <bonzini@gnu.org>
13751
13752 * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
13753 for for_return == 2.
13754 * function.c (assign_parm_setup_reg): Use for_return == 2, improve
13755 comments.
13756 * calls.c (expand_call): Fix typo.
13757 * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
13758 and PARM_DECL.
13759 * stmt.c (expand_value_return): Use promote_function_mode to copy out
13760 of pseudo.
13761 * targhooks.c (default_promote_function_mode): Handle for_return == 2.
13762 * config/cris/cris.c (cris_promote_function_mode): Likewise.
13763 * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
13764 * config/pa/pa.c (pa_promote_function_mode): Likewise.
13765
46107b99 137662009-08-12 Andrew Haley <aph@redhat.com>
353a58f7
AH
13767
13768 * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
13769
4654745d
SP
137702009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13771
13772 PR bootstrap/40103
13773 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
13774
daad0278
RG
137752009-08-12 Richard Guenther <rguenther@suse.de>
13776
13777 * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
13778 * gimplify.c (gimplify_modify_expr): Do not use
13779 lang_hooks.types_compatible_p.
13780 * tree-ssa.c (useless_type_conversion_p): For aggregates
13781 just return false if the canonical types differ.
13782
30de1632
SP
137832009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13784
13785 PR middle-end/40980
13786 * sese.c (convert_for_phi_arg): New.
13787 (add_guard_exit_phis): Use convert_for_phi_arg.
13788
8c31ebfa
SP
137892009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13790
13791 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
13792 unknown subscript upper bounds.
13793
fb9fb290
SP
137942009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13795 Pranav Garg <pranav.garg2107@gmail.com>
13796
13797 * graphite-interchange.c (gather_access_strides): Removed.
13798 (ppl_max_for_le): New.
13799 (build_linearized_memory_access): New.
13800 (memory_stride_in_loop): New.
13801 (pbb_interchange_profitable_p): Reimplemented.
13802 * graphite-ppl.h (ppl_new_id_map): New.
13803 (ppl_interchange): New.
13804
312aea7f
SP
138052009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13806
13807 * graphite-interchange.c (compute_subscript): Removed.
13808 (compute_array_size_cstr): Removed.
13809 (compute_array_size_poly): Removed.
13810 (compute_array_size): Removed.
13811 (gather_access_strides_poly): Removed.
13812 (gather_access_strides): Empty.
13813
25d7cc15
SP
138142009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13815
13816 * graphite-dependences.c (dependence_polyhedron_1): Replace
13817 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
13818 (graphite_legal_transform_dr): Same.
13819 (graphite_carried_dependence_level_k): Same.
13820 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
13821 Initialize PDR_NB_SUBSCRIPTS.
13822 (print_pdr_access_layout): Replace pdr_nb_subscripts with
13823 PDR_NB_SUBSCRIPTS.
13824 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
13825 (PDR_NB_SUBSCRIPTS): New.
13826 (pdr_nb_subscripts): Removed.
13827 (pdr_dim): Simplified.
13828 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
13829 with PDR_NB_SUBSCRIPTS.
13830
66096911
SP
138312009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13832
13833 * graphite-interchange.c (compute_array_size): Remove use of
13834 PDR_DATA_CONTAINER.
13835 * graphite-poly.c (new_poly_dr): Remove argument data_container.
13836 Do not initialize PDR_DATA_CONTAINER.
13837 (print_pdr): Do not print PDR_DATA_CONTAINER.
13838 * graphite-poly.h (struct poly_dr): Remove data_container field.
13839 (PDR_DATA_CONTAINER): Removed.
13840 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
13841 PDR_DATA_CONTAINER.
13842 (build_poly_dr): Same.
13843
7491e5f0
KT
138442009-08-12 Konrad Trifunovic <konrad.trifunovic@gmail.com>
13845 Sebastian Pop <sebastian.pop@amd.com>
13846
13847 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
13848 copy of the dependence polyhedron. Free the temporary objects.
13849 (graphite_carried_dependence_level_k): Free unused objects before
13850 returning.
13851
f4648ed1
SP
138522009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13853
13854 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
13855 Early return without analyzing the data dependences if no
13856 transform has been done. Call restore_scattering if the transform
13857 is not legal.
13858 (graphite-interchange.c): Same.
1262fd02
UB
13859 * graphite-poly.c (print_scattering_function): Test for
13860 PBB_TRANSFORMED.
f4648ed1
SP
13861 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
13862 (apply_poly_transforms): Do not gcc_assert that
13863 the transform is legal.
1262fd02 13864 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
f4648ed1
SP
13865 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
13866 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
13867 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
13868 * graphite-poly.h (struct poly_scattering): New.
13869 (struct poly_bb): Add original, transformed, and saved fields.
1262fd02
UB
13870 Remove transformed_scattering, original_scattering,
13871 nb_local_variables and nb_scattering_transform fields.
f4648ed1
SP
13872 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
13873 (poly_scattering_new): New.
13874 (poly_scattering_free): New.
13875 (poly_scattering_copy): New.
13876 (store_scattering_pbb): New.
13877 (store_scattering): New.
13878 (restore_scattering_pbb): New.
13879 (restore_scattering): New.
13880 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
13881 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
13882
e31a5bd4
SP
138832009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13884
13885 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
13886 (print_scop): Same.
13887
8e88f9fd
SP
138882009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13889
13890 * Makefile.in (graphite.o): Depends on PREDICT_H.
13891 * graphite.c: Include predict.h.
13892 (graphite_finalize): Call tree_estimate_probability.
13893 * predict.c (predict_loops): Do not call scev_initialize and
13894 scev_finalize.
13895 (tree_estimate_probability_bb): New.
13896 (tree_estimate_probability): Do not initialize loops: move that
13897 code to the driver. Call tree_estimate_probability_bb.
13898 (tree_estimate_probability_driver): New.
13899 (pass_profile): Use tree_estimate_probability_driver.
13900 * predict.h (tree_estimate_probability): Declared.
13901
87d4d0ee
SP
139022009-08-12 Sebastian Pop <sebastian.pop@amd.com>
13903
13904 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
13905 * graphite-dependences.c (graphite_legal_transform): Add time to
13906 TV_GRAPHITE_DATA_DEPS.
13907 (dependency_between_pbbs_p): Same.
13908 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
13909
4c7af939
AB
139102009-08-12 Andrey Belevantsev <abel@ispras.ru>
13911
13912 PR rtl-optimization/41033
f100a4a8 13913 * alias.c (nonoverlapping_component_refs_p): Punt when strict
4c7af939
AB
13914 aliasing is disabled.
13915
b2c9d70f
AN
139162009-08-11 Adam Nemet <anemet@caviumnetworks.com>
13917
13918 * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
13919 si_mask_operand, and_load_operand, low_bitmask_operand,
13920 and_reg_operand, and_operand): New predicates.
13921 * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
13922 * config/mips/mips.c (and_operands_ok): New function.
13923 * config/mips/mips-protos.h (and_operands_ok): Declare it.
13924 * config/mips/mips.md (move_type): Add ext_ins and logical.
13925 (type): Handle them.
1262fd02 13926 (and<mode>3): Use and_reg_operand as the second operand's predicate.
b2c9d70f
AN
13927 (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
13928 shift_shift. Remove commutative constraint modifier.
13929 (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
13930 shift_shift.
13931 (*clear_upper32_dext): Remove define_insn_and_split.
13932 (*clear_upper32): Turn this define_insn_and_split ...
13933 (splitter for ANDing register with 0xffff_ffff): .. into this.
13934
842e098c
AN
139352009-08-11 Adam Nemet <anemet@caviumnetworks.com>
13936
13937 * combine.c (try_widen_shift_mode): Factor out code to check if an
f100a4a8 13938 integer constant is a low-order bitmask from here ...
842e098c
AN
13939 * rtlanal.c (low_bitmask_len): ... to here.
13940 * rtl.h (low_bitmask_len): Declare.
13941
c53c2591
UB
139422009-08-11 Uros Bizjak <ubizjak@gmail.com>
13943
13944 PR target/8603
13945 * config/alpha/alpha.md (addsi3): Remove expander.
13946 (addsi3): Rename from *addsi3_internal insn pattern.
13947 (subsi3): Remove expander.
13948 (subsi3): Rename from *subsi3_internal insn pattern.
13949
b0d0a8a7
DR
139502009-08-11 Douglas B Rupp <rupp@gnat.com>
13951
13952 * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
13953 FWRITE_UNLOCKED.
13954
050d3f9d 139552009-08-11 Vasiliy Fofanov <fofanov@adacore.com>
c53c2591
UB
13956 Eric Botcazou <botcazou@adacore.com>
13957 Douglas B Rupp <rupp@gnat.com>
050d3f9d
VF
13958
13959 * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
13960 that records that fit in 64 bits are returned by immediate value,
13961 as required by OpenVMS Calling Standard.
13962 (function_value): Adjust for above modification.
13963 (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
13964 virtual_incoming_args_rtx as base object, not next_arg.
bd62d832 13965 * config/alpha/vms.h (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
050d3f9d 13966
2fa8205d
UW
139672009-08-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13968
13969 * reload.c (find_reloads_subreg_address): Check the original
13970 req_equiv_mem address to detect the case where an address is
13971 not valid in the outer mode.
13972
ac8f7e42 139732009-08-11 Richard Guenther <rguenther@suse.de>
f100a4a8 13974
c53c2591
UB
13975 PR bootstrap/40788
13976 * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
ac8f7e42 13977
fddeba6d
DR
139782009-08-10 Douglas B Rupp <rupp@gnat.com>
13979
13980 * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
13981 (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
13982
1d3499d8 139832009-08-10 Olivier Hainque <hainqueu@adacore.com>
c53c2591 13984 Douglas B Rupp <rupp@gnat.com>
1d3499d8
OH
13985
13986 * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
13987 PT_STACK when frame_pointer_needed on OpenVMS.
13988 (alpha_pv_save_size, alpha_using_fp): Remove.
13989 (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
13990 with proper processing for PT_NULL.
13991 (alpha_vms_initial_elimination_offset): New function. Support for
13992 INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
13993 (alpha_sa_size): Force procedure type to PT_STACK when
13994 frame_pointer_needed on OpenVMS.
13995 * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
13996 (alpha_using_fp): Likewise.
13997 (alpha_vms_can_eliminate): Add prototype.
13998 (alpha_vms_initial_elimination_offset): Likewise.
13999 * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
14000 Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
14001
18fd5621 140022009-08-10 Eric Botcazou <botcazou@adacore.com>
c53c2591 14003 Douglas B Rupp <rupp@gnat.com>
18fd5621
EB
14004
14005 * config/alpha/alpha.c (common_object_handler): New function.
14006 (vms_attribute_table): Declare a single attribute "common_object".
14007 (vms_output_aligned_decl_common): New global function.
14008 (SECTION_VMS_OVERLAY): Delete.
14009 (SECTION_VMS_GLOBAL): Likewise.
14010 (SECTION_VMS_INITIALIZE): Likewise.
14011 (vms_asm_named_section): Remove support for above flags.
14012 (vms_section_type_flags): Delete.
14013 (TARGET_SECTION_TYPE_FLAGS): Likewise.
14014 * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
14015 * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
14016 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
14017
092f3f97
ST
140182009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
14019
14020 PR target/41015
14021 * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
14022 (sub_ddmmss): Likewise.
14023
35076532
AT
140242009-08-10 Andreas Tobler <a.tobler@schweiz.org>
14025
14026 PR bootstrap/41018
14027 * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
14028 year.
14029
0159ec79
UW
140302009-08-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14031
14032 PR target/37053
14033 * reload1.c (reload_as_needed): Use cancel_changes to completely
14034 undo a failed replacement attempt.
14035
4f4e722e
RG
140362009-08-10 Richard Guenther <rguenther@suse.de>
14037
14038 PR middle-end/41006
14039 * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
14040 (useless_type_conversion_p): ... here. Require pointer targets
14041 to be compatible.
14042
b1d82db0
DS
140432009-08-10 Dodji Seketeli <dodji@redhat.com>
14044
14045 PR c++/40866
14046 * tree-inline.c (copy_statement_list): The resulting copy shouldn't
14047 loose the original type of the statement list.
14048
5e3fef6c
DR
140492009-08-09 Douglas B Rupp <rupp@gnat.com>
14050
14051 * config/alpha/alpha.c: Include libfuncs.h
14052 (avms_asm_output_extern): New function.
14053 (alpha_init_libfuncs): Init some decc libfuncs.
14054 * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
14055 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
14056 (DO_CRTL_NAMES): Define.
14057 (LIB_SPEC): Remove.
bd62d832 14058 * config/alpha/vms64.h (POINTERS_EXTEND_UNSIGNED): Remove undef.
5e3fef6c
DR
14059 (LONG_TYPE_SIZE): Define.
14060 (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
14061 (SUBTARGET_SWITCHES): Define malloc64 switch.
14062 (TARGET_DEFAULT): Default MASK_MALLOC64 set.
14063 (MASK_RETURN_ADDR): Define.
14064 doc/invoke.texi (mmalloc64): Document switch.
14065
221cf9ab 140662009-08-09 Olivier Hainque <hainque@adacore.com>
c53c2591 14067 Douglas B Rupp <rupp@gnat.com>
221cf9ab
OH
14068
14069 * config/alpha/alpha.c (struct machine_function): New flag for VMS,
14070 uses_condition_handler.
14071 (alpha_expand_builtin_establish_vms_condition_handler): New expander.
14072 (alpha_expand_builtin_revert_vms_condition_handler): New expander.
14073 (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
14074 and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
14075 (code_for_builtin): New insn codes for the new alpha_builtins.
14076 (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
14077 (alpha_sa_size): Account for uses_condition_handler.
14078 (alpha_expand_prologue): Likewise.
14079 (alpha_start_function): Likewise.
14080 (alpha_expand_epilogue): Likewise.
14081 * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
14082 establish/revert expanders.
14083 * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
14084 * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
14085 New expander, resorting to the alpha.c associated function.
14086 (builtin_revert_vms_condition_handler): Likewise.
14087 * config/alpha/vms-gcc_shell_handler.c: New file. Implements
14088 __gcc_shell_handler, the static VMS condition handler used as
14089 an indirection wrapper to the current dynamically established
14090 handler.
14091 * config/alpha/vms-unwind.h: Complete rewrite.
14092 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
14093 * config/alpha/vms.h (MD_UNWIND_SUPPORT):
f100a4a8 14094
b714133e 140952009-08-09 Eric Botcazou <botcazou@adacore.com>
c53c2591 14096 Douglas B Rupp <rupp@gnat.com>
b714133e
EB
14097
14098 * config/alpha/alpha.c (alpha_links): Add 'target' field.
14099 (alpha_need_linkage): Handle aliases. Return function symbol.
14100 (alpha_use_linkage): Rename 'linkage' argument to 'func'.
14101 Use ultimate alias target for the linkage name.
14102 * config/alpha/alpha.md (movmemdi): Use the symbol returned
14103 by alpha_need_linkage for the function symbol.
14104 (setmemdi): Likewise.
14105
3bd1b109
DR
141062009-08-09 Douglas B Rupp <rupp@gnat.com>
14107
14108 * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
14109 * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
14110 (ASM_WEAKEN_LABEL): Define.
14111 (CRT_CALL_STATIC_FUNCTION): Define.
14112 (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
14113 (ENDFILE_SPEC): Define.
14114 (INIT_SECTION_ASM_OP): Define.
14115 * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
14116 * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
14117 crtend.o crtendS.o.
14118 (MULTILIB_OSDIRNAMES): Define.
14119 (shlib_version): Define.
14120 (SHLIB_EXT): Define.
14121 (SHLIB_OBJS): Define.
14122 (SHLIB_NAME): Define.
14123 (SHLIB_MULTILIB): Define.
14124 (SHLIB_INSTALL): Define.
14125 (SHLIB_SYMVEC): Define.
14126 (SHLIB_SYMVECX2): Define.
14127 (SHLIB_LINK): Define.
14128
fe2786f5
DR
141292009-08-09 Douglas B Rupp <rupp@gnat.com>
14130
14131 * config/alpha/alpha.c (alpha_initialize_trampoline):
14132 Initialize VMS trampoline IAW ABI for bounded procedure calls.
14133 (alpha_start_function): Emit transfer address on nested functions
14134 for VMS trampoline call.
14135 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
14136 since no longer used.
14137 * config/alpha/vms-tramp.asm: Remove.
14138 * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
14139 since now only data initialized at runtime.
14140
c889a16f
DR
141412009-08-09 Douglas B Rupp <rupp@gnat.com>
14142
14143 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
14144 (LINK_GCC_C_SEQUENCE_SPEC): Define.
14145 (MD_EXEC_PREFIX): Remove, no longer used.
14146 (MD_STARTFILE_PREFIX): Likewise.
14147 (INCLUDE_DEFAULTS): Likewise.
14148 * config/alpha/t-vms:
14149 (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
14150
a6450905
RG
141512009-08-09 Richard Guenther <rguenther@suse.de>
14152
14153 PR tree-optimization/41016
c53c2591 14154 * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
a6450905
RG
14155 (operand_precision): Remove.
14156 (integral_operand_p): Likewise.
14157 (recognize_single_bit_test): Adjust.
14158
f5178456
RS
141592009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
14160
14161 * c-common.c (c_fully_fold_internal): Issue a warning if a binary
14162 operation overflows. Likewise non-cast unary arithmetic.
14163 If one arm of a conditional expression is always taken,
14164 inhibit evaluation warnings for the other arm. Likewise inhibit
14165 evaluation warnings for the second && or || operand if the first
14166 operand is enough to determine the result.
14167 * c-typeck.c (build_conditional_expr): Apply the same inhibition
14168 rules here.
14169 (build_binary_op): Prevent duplicate evaluation warnings.
14170
8f048d2f
RS
141712009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
14172
14173 * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
14174 and destination have different modes, Use promote_mode to
14175 determine the signedness of the conversion. Assert that the
14176 promoted source mode matches the destination mode. Don't pass
14177 the destination and destination mode to expand_expr if the source
14178 mode is different. Simplify conversion logic.
14179
6f4454fc
IR
141802009-08-09 Ira Rosen <irar@il.ibm.com>
14181
14182 PR tree-optimization/41008
14183 * tree-vect-loop.c (vect_is_simple_reduction): Get operands
f100a4a8 14184 from condition only in case it's a comparison. Adjust checks.
6f4454fc 14185
2c08497a
BS
141862009-08-09 Bernd Schmidt <bernd.schmidt@analog.com>
14187
14188 * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
14189 * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
14190 * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
14191 (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
14192 (dump_cand): Handle them.
14193 (struct iv_cand): New members COST_STEP and AINC_USE.
14194 (stmt_after_increment): Likewise.
14195 (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos. All
14196 callers changed. Use gimple_uid comparison instead of scanning.
14197 (add_candidate_1): When looking for identical candidates, take
14198 AINC_USE into account. Set it for new candidates.
14199 (force_expr_to_var_cost): Cast target_spill_cost to int.
14200 (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
14201 All callers changed. Check for availability of autoinc addressing
c53c2591 14202 modes, both in general for a given mode, and in the specific use case.
2c08497a
BS
14203 (get_computation_cost_at): New argument CAN_AUTOINC. All callers
14204 changed.
14205 (get_computation_cost): Likewise.
14206 (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
14207 add_autoinc_candidates): New static functions.
14208 (add_candidate): Call add_autoinc_candidates for candidates based on
14209 a USE_ADDRESS use.
14210 (find_iv_candidates): Call set_autoinc_for_original_candidates.
14211 (determine_use_iv_cost_address): If we have an autoinc candidate at
14212 the matching use, verify autoinc is possible and subtract the cost
14213 of the candidate's step from the cost.
14214 (determine_iv_cost): Record the cost of the increment in the COST_STEP
14215 member of the candidate.
14216 (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
14217 determine_use_iv_costs. Call renumber_gimple_stmt_uids_in_blocks.
14218
a9a25daa
DR
142192009-08-09 Douglas B Rupp <rupp@gnat.com>
14220
14221 * config.build (ia64-hp-*vms*): New target.
14222 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
14223 with ia64-hp-*vms*.
14224 * config.gcc (ia64-hp-*vms*): New target.
14225 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
14226 with ia64-hp-*vms*.
14227 * config.host (ia64-hp-*vms*): New target.
14228 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
14229 with ia64-hp-*vms*.
14230
55194b0b
RG
142312009-08-08 Richard Guenther <rguenther@suse.de>
14232
14233 PR tree-optimization/40991
14234 * tree-ssa-pre.c (eliminate): Delay purging EH edges.
14235
d686d892
RS
142362009-08-08 Richard Sandiford <rdsandiford@googlemail.com>
14237
14238 * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
14239 mode check. Do truncations in an integer mode.
14240 (force_to_mode): Handle subregs for all mode types. Only do
14241 arithmetic simplifications on integer modes.
14242
0adef8e9
RG
142432009-08-07 Richard Guenther <rguenther@suse.de>
14244
14245 PR tree-optimization/40999
14246 * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
14247 (maybe_fold_reference): Lookup constant initializers.
14248 (fold_gimple_assign): Likewise.
14249
60419cc8
RG
142502009-08-07 Richard Guenther <rguenther@suse.de>
14251
14252 * tree-ssa.c (useless_type_conversion_p_1): Only for types
14253 that require structural equality defer to the langhook.
14254
685b0d13
MJ
142552009-08-07 Martin Jambor <mjambor@suse.cz>
14256
14257 * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
14258 comments.
14259 (struct ipa_pass_through_data): New type.
14260 (struct ipa_ancestor_jf_data): New type.
14261 (union jump_func_value): Removed field formal_id, added fields
14262 pass_through and ancestor.
14263 (struct ipa_param_call_note): Changed type of formal_id to int from
14264 unsigned.
14265 * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
14266 operations jump functions and ancestor jump functions.
14267 (compute_complex_pass_through): New function.
14268 (compute_scalar_jump_functions): Call compute_complex_pass_through,
14269 reflect changes in the jump function strucutre.
14270 (update_jump_functions_after_inlining): Ignore complex pass-through
14271 and ancestor jump functions.
14272 * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
14273 polynomial pass-through with operation jump functions.
14274
17f6e37d
JJ
142752009-08-07 Jakub Jelinek <jakub@redhat.com>
14276
14277 * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
14278 fde->dw_fde_begin as begin label instead of hot/cold label.
14279 Use LLSDAC label instead of LLSDA for second section lsda.
14280 (dwarf2out_do_cfi_startproc): Add SECOND argument. Use LLSDAC
14281 label instead of LLSDA if it is true.
14282 (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
14283 callers.
14284 * except.c (add_call_site, dw2_size_of_call_site_table): Add
14285 SECTION argument. Use it as index into crtl->eh.call_site_record
14286 array.
14287 (dw2_output_call_site_table): Likewise. Add CS_FORMAT argument,
14288 use it to determine how to print table entries instead of using
14289 #ifdef HAVE_AS_LEB128. For SECTION > 0 use hot resp. cold
14290 label instead of normal begin label as base.
14291 (sjlj_assign_call_site_values): Adjust add_call_site caller.
14292 (convert_to_eh_region_ranges): When doing hot/cold partitioning,
14293 ensure no EH range spans between sections and that landing pads
14294 are always in the corresponding section.
14295 (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
14296 for crtl->eh.call_site_record being an array rather than scalar.
14297 (output_one_function_exception_table): New function, copied
14298 from output_function_exception_table. Adjust
14299 dw2_size_of_call_site_table, dw2_output_call_site_table
14300 callers. For SECOND section use *C suffixed labels.
14301 (output_function_exception_table): Call
14302 output_one_function_exception_table and, when doing hot/cold
14303 partitioning, also another time for the second section.
14304 * opts.c: Include except.h.
14305 (decode_options): Allow -freorder-blocks-and-partition with
14306 exceptions, unless SJLJ or TARGET_UNWIND_INFO.
14307 * Makefile.in (opts.o): Depend on $(EXCEPT_H).
14308 * function.h (struct rtl_eh): Change call_site_record from
14309 scalar into array of 2 elements.
14310
3f84bf08
MJ
143112009-08-07 Martin Jambor <mjambor@suse.cz>
14312
14313 * ipa-prop.c (count_formal_params_1): New function.
14314 (ipa_get_vector_of_formal_parms): New function.
14315 (get_vector_of_formal_parm_types): New function.
14316 (ipa_modify_formal_parameters): New function.
14317 (ipa_modify_call_arguments): New function.
14318 (index_in_adjustments_multiple_times_p): New function.
14319 (ipa_combine_adjustments): New function.
14320 (ipa_dump_param_adjustments): New function.
14321 * ipa-prop.h (struct ipa_parm_adjustment): New type.
14322 (ipa_get_vector_of_formal_parms): Declare.
14323 (ipa_modify_formal_parameters): Declare.
14324 (ipa_modify_call_arguments): Declare.
14325 (ipa_combine_adjustments): Declare.
14326 (ipa_dump_param_adjustments): Declare.
14327 (build_ref_for_offset): Declare.
14328 * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
14329 * tree-sra.c: Include ipa-prop.c.
f100a4a8 14330 (build_ref_for_offset): Make public.
3f84bf08 14331
ee26a76d
NV
143322009-08-06 Neil Vachharajani <nvachhar@gmail.com>
14333
14334 * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
f100a4a8 14335
48c4de16
TS
143362009-08-06 Thomas Schwinge <tschwinge@gnu.org>
14337
14338 * gcc/doc/extend.texi (__builtin_extract_return_address)
14339 (__builtin_frob_return_address): Document.
14340
f36d140e
PB
143412009-08-06 Paul Brook <paul@codesourcery.com>
14342
14343 * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
14344 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
14345 implementation on ARMv6-M.
14346
14a782c8
RE
143472009-08-06 Richard Earnshaw <rearnsha@arm.com>
14348
14349 * doc/extend.texi (pcs): Document new attribute for ARM.
14350
0f1a24df
RE
143512009-08-06 Richard Earnshaw <rearnsha@arm.com>
14352
14353 * arm.c (pcs_attribute_args): Comment out unsupported attribute
14354 variants.
14355
a9717079
RE
143562009-08-06 Richard Earnshaw <rearnsha@arm.com>
14357
14358 * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
14359 warning ().
14360
d8e6aede
RE
143612009-08-06 Richard Earnshaw <rearnsha@arm.com>
14362
14363 * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
14364
390b17c2
RE
143652009-08-06 Richard Earnshaw <rearnsha@arm.com>
14366
14367 Merge ARM/hard_vfp_branch to trunk.
14368
14369 2009-08-04 Richard Earnshaw <rearnsha@arm.com>
14370
14371 * arm.c (libcall_eq): New function.
14372 (libcall_hash): New function.
14373 (add_libcall): New function.
14374 (arm_libcall_uses_aapcs_base): New function.
14375 (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
14376 libcalls using the base PCS.
14377 (arm_init_cumulative_args): Likewise.
14378
14379 2009-07-20 Joseph Myers <joseph@codesourcery.com>
14380
14381 * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
14382 Use base ABI for conversion libfuncs between HFmode and SFmode.
14383
14384 2009-05-12 Joseph Myers <joseph@codesourcery.com>
14385
14386 * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
14387 V4SImode as representatives of all 64-bit and 128-bit vector
14388 types. Allow vector types without vector modes.
14389 (aapcs_vfp_is_call_or_return_candidate): Handle vector types
14390 without vector modes like BLKmode.
14391 (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
14392 BLKmode. Avoid unsupported vector modes or TImode moves for
14393 non-TARGET_NEON.
14394 (aapcs_vfp_allocate_return_reg): Likewise.
14395 (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
14396 V8QImode if TARGET_NEON || TARGET_IWMMXT.
14397
14398 2009-05-12 Joseph Myers <joseph@codesourcery.com>
14399
14400 * config/arm/arm.c (arm_handle_pcs_attribute): New.
14401 (arm_get_pcs_model): Pass attribute arguments to
14402 arm_pcs_from_attribute.
14403 (arm_init_cumulative_args): Use base AAPCS for conversions from
14404 floating-point types to DImode.
14405 (arm_attribute_table): Add pcs attribute.
14406 (arm_handle_pcs_attribute): New.
14407 * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
14408 conversions from floating-point types to DImode, also declare them
14409 to use base AAPCS and declare functions they call to use base
14410 AAPCS and their RTABI names.
14411
14412 2009-05-12 Joseph Myers <joseph@codesourcery.com>
14413
14414 * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
14415 -mfloat-abi=hard not being supported for VFP.
14416
14417 2009-05-11 Kazu Hirata <kazu@codesourcery.com>
14418
14419 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
14420 SYMBOL_REF to hard_libcall_value.
14421
14422 2009-03-05 Joseph Myers <joseph@codesourcery.com>
14423 Richard Earnshaw <rearnsha@arm.com>
14424
14425 * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
14426 has been put on the stack, all remaining co-processory arguments for
14427 that co-processor also go on the stack.
14428
14429 2009-03-05 Joseph Myers <joseph@codesourcery.com>
14430
14431 * config/arm/arm.c (arm_return_in_memory): Handle returning
14432 vectors of suitable size in registers also for AAPCS case.
14433
14434 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
14435
14436 * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
14437
14438 2008-12-09 Richard Earnshaw <rearnsha@arm.com>
14439
14440 ARM Hard-VFP calling convention
14441 * target-def.h (TARGET_LIBCALL_VALUE): New hook.
14442 * target.h (gcc_target): Add libcall_value to table of call hooks.
14443 * targhooks.h (default_libcall_value): Default implementation.
14444 * targhooks.c (default_libcall_value): Likewise.
14445 * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
14446 * optabs.c (expand_unop): Use it.
14447 * expr.h (hard_libcall_value): Pass the function RTX through.
f100a4a8 14448 * calls.c (emit_library_call_value_1): Update call to
390b17c2
RE
14449 hard_libcall_value.
14450 * explow.c (hard_libcall_value): Use new target hook.
390b17c2
RE
14451 * config/arm/arm.c: Include cgraph.h
14452 (TARGET_FUNCTION_VALUE): Override default hook.
14453 (arm_pcs_default): New variable.
14454 (arm_override_options): Don't fault hard calling convention with VFP.
14455 Add support for AAPCS variants.
14456 (arm_function_value): Make static. Handle AAPCS variants.
14457 (arm_libcall_value): New function.
14458 (arm_apply_result_size): Handle VFP registers in results.
14459 (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
14460 conventions.
14461 (pcs_attribute_args): New variable.
14462 (arm_pcs_from_attribute): New function.
14463 (arm_get_pcs_model): New function.
14464 (aapcs_vfp_cum_init): New function.
14465 (aapcs_vfp_sub_candidate): New function.
14466 (aapcs_vfp_is_return_candidate): New function.
14467 (aapcs_vfp_is_call_candidate): New function.
14468 (aapcs_vfp_allocate): New function.
14469 (aapcs_vfp_allocate_return_reg): New function.
14470 (aapcs_vfp_advance): New function.
14471 (aapcs_cp_arg_layout): New variable.
14472 (aapcs_select_call_coproc): New function.
14473 (aapcs_select_return_coproc): New function.
14474 (aapcs_allocate_return_reg): New function.
14475 (aapcs_libcall_value): New function.
14476 (aapcs_layout_arg): New function.
14477 (arm_init_cumulative_args): Initialize AAPCS args data.
14478 (arm_function_arg): Handle AAPCS variants using new interface.
14479 (arm_arg_parital_bytes): Likewise.
14480 (arm_function_arg_advance): New function.
14481 (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
14482 calling conventions.
14483 (arm_setup_incoming_varargs): Handle new AAPCS args data.
14484 * arm.h (NUM_VFP_ARG_REGS): Define.
14485 (LIBCALL_VALUE): Update.
14486 (FUNCTION_VALUE): Delete.
14487 (FUNCTION_VALUE_REGNO_P): Add VFP regs.
14488 (arm_pcs): New enum.
14489 (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
14490 (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
14491 (FUNCTION_ARG_REGNO_P): Add VFP regs.
14492 * arm-protos.h (arm_function_arg_advance): Add.
14493 (aapcs_libcall_value): Add.
14494 (arm_function_value): Delete.
14495
4dbf26d5
UB
144962009-08-06 Uros Bizjak <ubizjak@gmail.com>
14497 H.J. Lu <hongjiu.lu@intel.com>
14498
14499 PR target/40957
14500 * config/i386/i386.c (standard_sse_mode_p): Remove.
14501 (standard_sse_constant_p): Return 2 for integer mode
14502 vector_all_ones_operand when SSE2 is enabled.
14503 (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
14504 (ix86_expand_vector_move): Do not check for negative values from
14505 standard_sse_constant_p.
14506
e52201b6
RG
145072009-08-06 Richard Guenther <rguenther@suse.de>
14508
14509 * tree-ssa.c (useless_type_conversion_p_1): Make function and
14510 array type comparisons frontend independent.
14511 * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
14512 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
14513 out array reference lower bound and element size operands.
14514 (ao_ref_init_from_vn_reference): Properly compute the offset
14515 for ARRAY_RANGE_REF.
14516 (vn_reference_fold_indirect): Fill out array reference lower
14517 bound and element size operands.
14518 * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
14519 a non gimple valued reference operand which can happen for
14520 array reference lower bound or element size.
14521 (create_component_ref_by_pieces_1): Properly generate the
14522 element size operand for array references.
14523
b92fbdd7
RB
145242009-08-06 Richard Guenther <rguenther@suse.de>
14525
14526 PR tree-optimization/40964
14527 * tree.c (iterative_hash_host_wide_int): Export.
14528 * tree.h (iterative_hash_host_wide_int): Declare.
14529 * tree-ssa-structalias.c (heapvar_map): New struct.
14530 (heapvar_map_eq): New function.
14531 (heapvar_map_hash): Likewise.
14532 (heapvar_lookup): Adjust.
14533 (heapvar_insert): Likewise.
14534 (make_constraint_from_heapvar): Allow multiple heap variables
14535 per decl at different offsets.
14536 (init_alias_heapvars): Adjust.
14537
068ca03a
DD
145382009-08-04 David Daney <ddaney@caviumnetworks.com>
14539
14540 * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
14541 * mips_output_sync_loop (mips_output_sync_loop): Only emit
14542 trailing sync if TARGET_SYNC_AFTER_SC.
14543
40a4a37b
DD
145442009-08-05 David Daney <ddaney@caviumnetworks.com>
14545
14546 * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
14547 compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
14548 sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
14549 sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
14550 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
14551 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
14552 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
14553 sync_new_nand<mode>, sync_lock_test_and_set<mode>,
14554 test_and_set_12): Rewrite calls to mips_output_sync_loop.
14555 * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
14556 the prototype declaration match the definition.
14557 * gcc/config/mips/mips.c (mips_output_sync_loop): Emit sync
14558 instructions explicitly. Add barrier_before and operands
14559 parameters.
14560 * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
14561 MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
14562 MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
14563 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
14564 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
14565 MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
14566
dcbd7063
AP
145672009-08-05 Andrew Pinski <pinskia@gmail.com>
14568
14569 * tree-ssa-alias.c: Fix intervals to use [) syntax.
14570
2c4389d8
UB
145712009-08-05 Uros Bizjak <ubizjak@gmail.com>
14572 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
14573
14574 PR target/40906
14575 * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
14576 source operand.
14577
403c7520
JJ
145782009-08-05 Jakub Jelinek <jakub@redhat.com>
14579
14580 PR rtl-optimization/40924
14581 * dse.c (canon_address): Before calling cselib_expand_value_rtx
14582 make sure canon_rtx (mem_address) isn't simpler than
14583 canon_rtx (expanded_mem_address).
14584
64393e40
LF
145852009-08-05 Li Feng <nemokingdom@gmail.com>
14586
14587 * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
14588 for each poly_bb_p.
14589 (build_scop_drs): Build alias set for each SCoP.
14590
5dce6dbd
SL
145912009-08-04 Sandra Loosemore <sandra@codesourcery.com>
14592
14593 * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
14594 * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
14595 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
14596 (MIPS_ARCH_FLOAT_SPEC): Likewise.
14597 (BASE_DRIVER_SELF_SPECS): Likewise.
14598
f9fc1a02
AP
145992009-08-04 Andrew Pinski <pinskia@gmail.com>
14600
14601 * tree-ssa-alias.c: Fix some comment typos.
14602
09a7d0af
KK
146032009-08-04 Kaz Kojima <kkojima@gcc.gnu.org>
14604
14605 * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
14606 ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
14607
50cd60be
JJ
146082009-08-03 Janis Johnson <janis187@us.ibm.com>
14609
14610 PR c/39902
14611 * simplify-rtx.c (simplify_binary_operation_1): Disable
14612 simplifications for decimal float operations.
14613
1768a052
JJ
146142009-08-03 Jakub Jelinek <jakub@redhat.com>
14615
14616 PR middle-end/40943
14617 * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
14618 operand of INDIRECT_REF.
14619
42a9ba1d
UB
146202009-08-03 Uros Bizjak <ubizjak@gmail.com>
14621
14622 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
14623 constants referencing TLS symbols.
14624
9f774cb0
ST
146252009-08-03 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
14626
14627 * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
14628 __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
14629
907dd6ae
RG
146302009-08-03 Richard Guenther <rguenther@suse.de>
14631
14632 * tree.c (make_vector_type): Build a main variant first,
14633 get the canonical one and then build the variant.
14634 * tree-ssa.c (useless_type_conversion_p_1): Handle
14635 fixed-point types.
14636 (useless_type_conversion_p): Conversions to pointers to
14637 incomplete record types are useless.
14638
2329c6f5
RG
146392009-08-03 Richard Guenther <rguenther@suse.de>
14640
14641 * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
14642 file will be created.
14643 * omp-low.c (pass_diagnose_omp_blocks): Likewise.
14644 * toplev.c (compile_file): Adjust comment.
14645
d055ce45
KK
146462009-08-03 Kaz Kojima <kkojima@gcc.gnu.org>
14647
14648 * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
14649 * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
14650 (TARGET_PROMOTE_FUNCTION_MODE): Define.
14651 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
14652 (sh_promote_function_mode): Fix typo.
14653
b1680483
AK
146542009-08-03 Andreas Krebbel <krebbel1@de.ibm.com>
14655
42a9ba1d 14656 * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
b1680483 14657
4ce3042d
JDA
146582009-08-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14659
14660 * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
14661 declaration arguments.
14662
0589e07d
UB
146632009-08-02 Uros Bizjak <ubizjak@gmail.com>
14664
14665 * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
14666 of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
14667 (ix86_split_ashl): Ditto.
14668 (ix86_expand_vector_init_one_nonzero): Ditto.
14669 (ix86_expand_vector_set): Ditto.
14670 (ix86_expand_reduc_v4sf): Ditto.
14671
146722009-08-02 Paolo Bonzini <bonzini@gnu.org>
6e957ac8
PB
14673
14674 * explow.c (promote_function_mode): Remove assert.
14675 * config/sh/sh.c (sh_promote_function_mode): Declare.
14676
be3e4ef6
JDA
146772009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14678
6e957ac8
PB
14679 * config/pa/pa.c (pa_promote_function_mode): Declare.
14680 Change to static. Fix promote_mode call.
02095c50 14681
1f7ec57e
JDA
14682 * gthr-dce.h (CONST_CAST2): Define if not defined.
14683 (__gthread_setspecific): Use CONST_CAST2 to fix warning.
14684
be3e4ef6
JDA
14685 * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
14686
6e957ac8 146872009-08-01 Paolo Bonzini <bonzini@gnu.org>
cde0f3fd
PB
14688
14689 * expr.c (store_constructor): Use promote_decl_mode. Remove
14690 now write-only variable unsignedp.
14691 (expand_expr_real_1): Use promote_decl_mode.
14692 * expr.h (promote_function_mode, promote_decl_mode): New.
14693 (promote_mode): Remove last argument.
14694 * function.c (assign_temp): Drop last argument of promote_mode.
14695 (assign_parm_find_data_types): Use promote_function_mode.
14696 (assign_parm_setup_reg): Likewise.
14697 (expand_function_end): Use promote_function_mode.
14698 * calls.c (initialize_argument_information): Use promote_function_mode.
14699 (precompute_arguments): Use promote_mode instead of checking if
14700 only PROMOTE_FUNCTION_MODE is defined.
14701 (expand_call): When making sibcall decisions, use promote_function_mode.
14702 Below, remove an if for targetm.calls.promote_function_return and
14703 and use promote_function_mode.
14704 (emit_library_call_value_1): Use promote_function_mode, fix bug
14705 where promote_mode was passed FOR_CALL == 0 for a return value in an
14706 assertion.
14707 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
14708 * explow.c (promote_function_mode, promote_decl_mode): New.
14709 (promote_mode): Keep only the FOR_CALL == 0 case.
14710 * combine.c (setup_incoming_promotion): Remove test of
14711 promote_function_args. Use promote_function_mode.
14712 * stmt.c (expand_value_return): Use promote_decl_mode.
14713 (expand_decl): Use promote_decl_mode.
14714
14715 * expr.c (store_constructor): Use promote_decl_mode. Remove
14716 now write-only variable unsignedp.
14717 (expand_expr_real_1): Use promote_decl_mode.
14718 * expr.h (promote_function_mode, promote_decl_mode): New.
14719 (promote_mode): Remove last argument.
14720 * function.c (assign_temp): Drop last argument of promote_mode.
14721 (assign_parm_find_data_types): Use promote_function_mode.
14722 (assign_parm_setup_reg): Likewise.
14723 (expand_function_end): Use promote_function_mode.
14724 * calls.c (initialize_argument_information): Use promote_function_mode.
14725 (precompute_arguments): Use promote_mode instead of checking if
14726 only PROMOTE_FUNCTION_MODE is defined.
14727 (expand_call): When making sibcall decisions, use promote_function_mode.
14728 Below, remove an if for targetm.calls.promote_function_return and
14729 and use promote_function_mode.
14730 (emit_library_call_value_1): Use promote_function_mode, fix bug
14731 where promote_mode was passed FOR_CALL == 0 for a return value in an
14732 assertion.
14733 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
14734 * explow.c (promote_function_mode, promote_decl_mode): New.
14735 (promote_mode): Keep only the FOR_CALL == 0 case.
14736 * combine.c (setup_incoming_promotion): Remove test of
14737 promote_function_args. Use promote_function_mode.
14738 * stmt.c (expand_value_return): Use promote_decl_mode.
14739 (expand_decl): Use promote_decl_mode.
14740
14741 * explow.c (promote_function_mode): Just call the target hook.
14742 * targhooks.c (default_promote_function_mode,
14743 default_promote_function_mode_always_promote): New.
14744 * targhooks.h (default_promote_function_mode,
14745 default_promote_function_mode_always_promote): Declare.
14746 * target.h (promote_function_args, promote_function_return): Remove.
14747 (promote_function_mode): New.
14748 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
14749 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14750 (TARGET_PROMOTE_FUNCTION_MODE): New.
14751 (TARGET_CALLS): Adjust.
14752 * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
14753 TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
14754
14755 * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
14756 * config/s390/s390.c (s390_promote_function_mode): ... here,
14757 with pointer handling.
14758 (TARGET_PROMOTE_FUNCTION_MODE): Define.
14759 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14760
14761 * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
14762 * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
14763 with pointer handling.
14764 (TARGET_PROMOTE_FUNCTION_MODE): Define.
14765 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
f100a4a8 14766
cde0f3fd
PB
14767 * config/sh/sh-protos.h (sh_promote_function_mode): New.
14768 * config/sh/sh.c (sh_promote_function_mode): New.
14769 (TARGET_PROMOTE_FUNCTION_MODE): Define.
14770 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14771
14772 * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
14773 * config/cris/cris.c (cris_promote_function_mode): ... here.
14774 (TARGET_PROMOTE_FUNCTION_MODE): Define.
14775 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
14776
14777 * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
14778 * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
14779 (TARGET_PROMOTE_FUNCTION_MODE): Define.
14780 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
14781
14782 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
0589e07d
UB
14783 * config/arm/arm.c (arm_promote_function_mode): ... here, without
14784 complex type handling.
cde0f3fd
PB
14785 (TARGET_PROMOTE_FUNCTION_MODE): Define.
14786 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14787
14788 * config/pa/pa.c (pa_promote_function_mode): New.
14789 (TARGET_PROMOTE_FUNCTION_MODE): Define.
14790 (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14791
14792 * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
14793 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
14794 (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
14795 * config/xtensa/xtensa.c: Likewise.
14796 * config/stormy16/stormy16.c: Likewise.
14797 * config/iq2000/iq2000.c: Likewise.
14798 * config/rs6000/rs6000.c: Likewise.
14799 * config/picochip/picochip.c: Likewise.
14800 * config/arc/arc.c: Likewise.
14801 * config/mcore/mcore.c: Likewise.
14802 * config/score/score.c: Likewise.
14803 * config/mips/mips.c: Likewise.
14804 * config/bfin/bfin.c: Likewise.
14805 * config/ia64/ia64.c: Likewise (disabled though).
14806
14807 * config/frv/frv.h: Remove pointless remark.
14808
14809 * doc/tm.texi (PROMOTE_FUNCTION_MODE,
14810 TARGET_PROMOTE_FUNCTION_ARGS,
14811 TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
14812 (TARGET_PROMOTE_FUNCTION_MODE): ... this.
14813
3cf0e270
SP
148142009-08-01 Sebastian Pop <sebastian.pop@amd.com>
14815
14816 * doc/invoke.texi (-fgraphite-force-parallel): Renamed
14817 -floop-parallelize-all.
14818 * toplev.c (process_options): Rename flag_graphite_force_parallel to
14819 flag_loop_parallelize_all.
14820 * tree-ssa-loop.c (gate_graphite_transforms): Same.
14821 * graphite.c (graphite_transform_loops): Same.
14822 * common.opt: Same.
14823 * graphite-poly.c (apply_poly_transforms): Same.
14824
6f7b8b70
RE
148252009-07-31 Richard Earnshaw <rearnsha@arm.com>
14826
14827 PR tree-optimization/40914
14828 * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
14829 if set, then check the delta field of the PMF record.
14830 (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
14831 (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
14832 call is stored in the delta.
14833
17320477
AN
148342009-07-31 Adam Nemet <anemet@caviumnetworks.com>
14835
14836 * config/mips/mips.md (*clear_upper32_dext): New pattern.
14837
e61c6562
UB
148382009-07-31 Uros Bizjak <ubizjak@gmail.com>
14839
14840 * config/i386/bsd.h (ASM_BYTE): New define.
14841 * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
14842 * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
14843 .byte. Use fputs or putc instead of fprintf where appropriate.
14844 * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte. Use
14845 fputs or putc instead of fprintf where appropriate.
14846 * config/i386/i386elf.h: Ditto.
14847 * config/i386/sysv4.h: Ditto.
f100a4a8 14848
e61c6562
UB
14849 * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
14850 * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
14851 (*tls_global_dynamic_64): Ditto.
14852
f100a4a8 148532009-07-31 Christian Bruel <christian.bruel@st.com>
ea2002ba
CB
14854
14855 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
f100a4a8 14856
17eb4921
RR
148572009-07-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14858
f100a4a8 14859 * config/arm/arm.c (arm_arm_address_cost): Fix typo.
17eb4921
RR
14860 Remove dead code for MINUS.
14861
23865616
AG
148622009-07-31 Anthony Green <green@moxielogic.com>
14863
14864 * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
14865 $r12 in prologue.
14866 (moxie_expand_epilogue): Ditto for epilogue.
14867 (moxie_setup_incoming_varargs): ABI change. Use 5 registers for
14868 incoming arguments.
14869 (moxie_function_arg): Ditto.
14870 (moxie_pass_by_reference): Ditto.
14871 (moxie_arg_partial_bytes): Ditto.
14872 * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
14873 (FUNCTION_ARG_ADVANCE) Ditto.
14874 (REG_PARM_STACK_SPACE) Ditto.
14875 (FUNCTION_ARG_REGNO_P) Dito.
14876
14877 * config.gcc: Add moxie linux config support.
14878 * gcc/config/moxie/uclinux.h: New file.
14879
20e19db4
DD
148802009-07-31 DJ Delorie <dj@redhat.com>
14881
14882 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
14883 (UNSPECV_SP_SWITCH_E): New.
14884 (sp_switch_1): Change to an unspec.
14885 (sp_switch_2): Change to an unspec. Don't use post-inc when we
14886 replace $r15.
14887 * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
14888 reference the new stack's address
14889
204b560f
SP
148902009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14891
14892 * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
14893 graphite-clast-to-gimple.o, graphite-dependences.o,
14894 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
14895 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
14896 (graphite-blocking.o,
14897 graphite-clast-to-gimple.o, graphite-dependences.o,
14898 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
14899 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
14900 * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
14901 * cfgloop.h (struct loop): Add can_be_parallel field.
14902 * common.opt (fgraphite-identity): Moved up.
14903 (fgraphite-force-parallel): New flag.
14904 * graphite.c: Rewrite.
14905 * graphite.h: Rewrite.
14906 * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
14907 after Graphite.
14908 * toplev.c (graphite_out_file): New file descriptor.
14909 (graphite_in_file): New.
14910 (process_options): flag_graphite_force_parallel cannot be used without
14911 Graphite.
14912 * tree-ssa-loop.c: Include toplev.h.
14913 (gate_graphite_transforms): Enable flag_graphite for
14914 flag_graphite_force_parallel.
14915
2abae5f1
SP
149162009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14917
14918 * ChangeLog.graphite: New.
14919 * graphite-blocking.c: New.
14920 * graphite-clast-to-gimple.c: New.
14921 * graphite-clast-to-gimple.h: New.
14922 * graphite-dependences.c: New.
14923 * graphite-dependences.h: New.
14924 * graphite-interchange.c: New.
14925 * graphite-poly.c: New.
14926 * graphite-poly.h: New.
14927 * graphite-ppl.c: New.
14928 * graphite-ppl.h: New.
14929 * graphite-scop-detection.c: New.
14930 * graphite-scop-detection.h: New.
14931 * graphite-sese-to-poly.c: New.
14932 * graphite-sese-to-poly.h: New.
14933 * sese.c: New.
14934 * sese.h: New.
14935
e7c705bb
SP
149362009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14937
14938 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
14939 * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
14940
765deab7
SP
149412009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14942
14943 * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
14944 (scev_is_linear_expression): Return false if the evolution is not
14945 affine multivariate.
14946
ed91d661
SP
149472009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14948
14949 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
14950 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
14951
a37d995a
SP
149522009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14953
14954 * tree-data-ref.c (debug_data_references): New.
14955 (debug_data_reference): New.
14956 * tree-data-ref.h (debug_data_references): Declared.
14957 (debug_data_reference): Declared.
14958
ae5b9860
SP
149592009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14960
14961 * tree-data-ref.c (stmt_simple_memref_p: Removed.
14962 * tree-data-ref.h (scop_p): Removed.
14963 (struct data_reference): Remove field scop.
14964 (DR_SCOP): Removed.
14965 (stmt_simple_memref_p): Removed.
14966
8e74b397
SP
149672009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14968
14969 * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
14970 * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
14971 basic block empty.
14972
109e0d57
SP
149732009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14974
14975 * doc/invoke.texi (-fgraphite-force-parallel): Documented.
14976
66a7961b
SP
149772009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14978
14979 * doc/invoke.texi (-fgraphite-identity): Documented.
14980
52bdd655
SP
149812009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14982
14983 * tree-scalar-evolution.c: Fix comment.
14984 (instantiate_scev_1): Return unknow from scev instantiation if the
14985 result is not above instantiate_below.
14986
42e6eec5
SP
149872009-07-30 Sebastian Pop <sebastian.pop@amd.com>
14988
14989 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
14990 static anymore. Instantiate the symbols that may have been introduced
14991 by chrec_apply.
14992 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
14993 Declared.
14994
77806925
DD
149952009-07-30 DJ Delorie <dj@redhat.com>
14996
14997 * config/mep/mep.c (mep_asm_init_sections): Add section flags and
14998 .vliw directive to VLIW sections.
14999
6efbd53f
RW
150002009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15001
15002 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
15003 New variables.
15004 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
15005 (AUTOHEADER): New variable.
15006 ($(srcdir)/cstamp-h.in): Use it.
15007
29e6733c
MM
150082009-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
15009 Pat Haugen <pthaugen@us.ibm.com>
15010 Revital Eres <ERES@il.ibm.com>
15011
15012 * config/rs6000/vector.md (VEC_F): Add VSX support.
15013 (VEC_A): Ditto.
15014 (VEC_N): Ditto.
15015 (mov<mode>): Ditto.
15016 (vector_load_<mode>): Ditto.
15017 (vector_store_<mode>): Ditto.
15018 (vector GPR move split): Ditto.
15019 (vec_reload_and_plus_<mptrsize>): Ditto.
15020 (vec_reload_and_reg_<mptrsize>): Ditto.
15021 (add<mode>3): Ditto.
15022 (sub<mode>3): Ditto.
15023 (mul<mode>3): Ditto.
15024 (neg<mode>2): Ditto.
15025 (abs<mode>2): Ditto.
15026 (smin<mode>3): Ditto.
15027 (smax<mode>3): Ditto.
15028 (vector_eq<mode>): Ditto.
15029 (vector_gt<mode>): Ditto.
15030 (vector_ge<mode>): Ditto.
15031 (vector_gtu<mode>): Ditto.
15032 (vector_select_<mode>_uns): Ditto.
15033 (vector_eq_<mode>_p): Ditto.
15034 (vector_gt_<mode>_p): Ditto.
15035 (vector_ge_<mode>_p): Ditto.
15036 (vector_gtu_<mode>_p): Ditto.
15037 (cr6_test_for_zero): Ditto.
15038 (cr6_test_for_zero_reverse): Ditto.
15039 (cr6_test_for_lt): Ditto.
15040 (cr6_test_for_lt_reverse): Ditto.
15041 (xor<mode>3): Ditto.
15042 (ior<mode>3): Ditto.
15043 (and<mode>3): Ditto.
15044 (one_cmpl<mode>2): Ditto.
15045 (nor<mode>2): Ditto.
15046 (andc<mode>2): Ditto.
15047 (float<VEC_int<mode>2): Ditto.
15048 (unsigned_float<VEC_int><mode>2): Ditto.
15049 (fix_trunc<mode><VEC_int>2): Ditto.
15050 (fixuns_trunc<mode><VEC_int>2): Ditto.
15051 (vec_init<mode>):
15052 (vec_set<mode>): Ditto.
15053 (vec_extract<mode>): Ditto.
15054 (vec_interleave_highv4sf): Ditto.
15055 (vec_interleave_lowv4sf): Ditto.
15056 (vec_realign_load_<mode>): Ditto.
15057 (vec_shl_<mode>): Ditto.
15058 (vec_shr_<mode>): Ditto.
15059 (div<mode>3): New patterns for VSX.
15060 (vec_interleave_highv2df): Ditto.
15061 (vec_interleave_lowv2df): Ditto.
15062 (vec_pack_trunc_v2df): Ditto.
15063 (vec_pack_sfix_trunc_v2df): Ditto.
15064 (vec_pack_ufix_trunc_v2df): Ditto.
15065 (vec_unpacks_hi_v4sf): Ditto.
15066 (vec_unpacks_lo_v4sf): Ditto.
15067 (vec_unpacks_float_hi_v4si): Ditto.
29e6733c 15068 (vec_unpacks_float_lo_v4si): Ditto.
1262fd02
UB
15069 (vec_unpacku_float_hi_v4si): Ditto.
15070 (vec_unpacku_float_lo_v4si): Ditto.
29e6733c
MM
15071 (movmisalign<mode>): Ditto.
15072 (vector_ceil<mode>2): New patterns for vectorizing math library.
15073 (vector_floor<mode>2): Ditto.
15074 (vector_btrunc<mode>2): Ditto.
15075 (vector_copysign<mode>3): Ditto.
15076
15077 * config/rs6000/predicates.md (easy_vector_constant_msb): New
e61c6562 15078 predicate for setting the high bit in each word, used for copysign.
29e6733c
MM
15079
15080 * config/rs6000/ppc-asm.h (f19): Whitespace.
15081 (f32-f63): Define if VSX.
15082 (v0-v31): Define if Altivec.
15083 (vs0-vs63): Define if VSX.
15084
15085 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
15086
15087 * config/rs6000/power7.md: New file, provide tuning parameters for
15088 -mcpu=power7.
15089
e61c6562 15090 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
29e6733c
MM
15091 (rs6000_cpu_cpp_builtins): Ditto.
15092 (altivec_overloaded_builtins): Ditto.
15093 (altivec_resolve_overloaded_builtin): Ditto.
15094
15095 * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
15096 debug switch to disable vectorizing simple math builtin
15097 functions.
15098
15099 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
15100 Vectorize simple math builtin functions.
15101 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
15102 hook to vectorize math builtins.
15103 (rs6000_override_options): Enable -mvsx on -mcpu=power7.
15104 (rs6000_builtin_conversion): Add VSX/power7 support.
15105 (rs6000_builtin_vec_perm): Ditto.
15106 (vsplits_constant): Add support for loading up a vector constant
15107 with just the high bit set in each part.
15108 (rs6000_expand_vector_init): Add VSX/power7 support.
15109 (rs6000_expand_vector_set): Ditto.
15110 (rs6000_expand_vector_extract): Ditto.
15111 (rs6000_emit_move): Ditto.
15112 (bdesc_3arg): Ditto.
15113 (bdesc_2arg): Ditto.
15114 (bdesc_1arg): Ditto.
15115 (rs6000_expand_ternop_builtin): Ditto.
15116 (altivec_expand_builtin): Ditto.
15117 (rs6000_expand_unop_builtin): Ditto.
15118 (rs6000_init_builtins): Ditto.
15119 (altivec_init_builtins): Ditto.
15120 (builtin_function_type): Ditto.
15121 (rs6000_common_init_builtins): Ditto.
15122 (rs6000_handle_altivec_attribute); Ditto.
15123 (rs6000_mangle_type): Ditto.
15124 (rs6000_vector_mode_supported_p): Ditto.
15125 (rs6000_mode_dependent_address): Altivec addresses with AND -16
15126 are mode dependent.
15127
15128 * config/rs6000/vsx.md: New file for VSX support.
15129
15130 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
15131 identifing values with just the most significant bit set.
15132 (enum rs6000_builtins): Add builtins for VSX. Add simple math
15133 vectorized builtins.
15134
15135 * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
15136 (UNSPEC_VRFIM): Delete.
15137 (splitter for loading up vector with most significant bit): New
15138 splitter for vectorizing copysign.
15139 (altivec_vrfiz): Rename from altivec_fturncv4sf2. Add support for
15140 vectorizing simple math functions.
e61c6562 15141 (altivec_vrfip): Add support for vectorizing simple math functions.
29e6733c
MM
15142 (altivec_vrfim): Ditto.
15143 (altivec_copysign_v4sf3): New insn for Altivec copysign support.
15144
15145 * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
15146 (power7.md, vsx.md): Include for power7 support.
15147 (copysigndf3): Use VSX instructions if -mvsx.
15148 (negdf2_fpr): Ditto.
15149 (absdf2_fpr): Ditto.
15150 (nabsdf2_fpr): Ditto.
15151 (adddf3_fpr): Ditto.
15152 (subdf3_fpr): Ditto.
15153 (muldf3_fpr): Ditto.
15154 (divdf3_fpr): Ditto.
15155 (fix_truncdfdi2_fpr): Ditto.
15156 (cmpdf_internal1): Ditto.
15157 (fred, fred_fpr): Convert into expander/insn to add VSX support.
15158 (btruncdf2, btruncdf2_fpr): Ditto.
15159 (ceildf2, ceildf2_fpr): Ditto.
15160 (floordf2, floordf2_fpr): Ditto.
15161 (floatdidf2, floatdidf2_fpr): Ditto.
15162 (fmadddf4_fpr): Name insn. Use VSX instructions if -mvsx.
15163 (fmsubdf4_fpr): Ditto.
15164 (fnmadddf4_fpr_1): Ditto.
15165 (fnmadddf4_fpr_2): Ditto.
15166 (fnmsubdf4_fpr_1): Ditto.
15167 (fnmsubdf4_fpr_2): Ditto.
15168 (fixuns_truncdfdi2): Add expander for VSX support.
15169 (fix_truncdfdi2): Ditto.
15170 (fix_truncdfsi2): Ditto.
15171 (ftruncdf2): Ditto.
15172 (btruncsf2): Whitespace.
15173 (movdf_hardfloat32): Add support for VSX registers.
15174 (movdf_softfloat32): Ditto.
15175 (movdf_hardfloat64): Ditto.
15176 (movdf_hardfloat64_mfpgpr): Ditto.
15177 (movdf_softfloat64): Ditto.
15178 (movti splitters): Add check for vector registers supporting
15179 TImode in the future.
15180 (bpermd): Add power7 bpermd instruction.
15181
15182 * config/rs6000/altivec.h (vec_div): Define if VSX.
15183 (vec_mul): Ditto.
15184 (vec_msub): Ditto.
15185 (vec_nmadd): Ditto.
15186 (vec_nearbyint): Ditto.
15187 (vec_rint): Ditto.
15188 (vec_sqrt): Ditto.
e61c6562
UB
15189 (all predicates): Use the generic builtin function, and not the V4SF
15190 specific function so that the predicates will work with VSX's V2DF.
29e6733c
MM
15191 (vec_all_*): Ditto.
15192 (vec_any_*): Ditto.
15193
15194 * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
15195 Document new VSX functions and types.
15196
15197 * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
15198 switches.
15199
15200 * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
15201 "wa", and "j" constraints. Modify "v" to talk about Altivec
15202 instead of just vector.
15203
f5045c96
AM
152042009-07-30 Andrew MacLeod <amacleod@redhat.com>
15205
15206 PR debug/26475
15207 * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
15208 location for phi arguments.
15209 (rewrite_update_phi_arguments): Find locations for reaching defs.
15210 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
15211 Add location to add_phi_arg calls.
15212 * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
15213 * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
15214 split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
15215 * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
15216 create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
15217 * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
15218 * tree-phinodes.c (make_phi_node): Initialize location.
15219 (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
15220 (add_phi_arg): Add location parameter.
15221 (remove_phi_arg_num): Move location when moving phi argument.
f100a4a8 15222 * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
f5045c96
AM
15223 location.
15224 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
15225 slpeel_update_phi_nodes_for_guard1,
15226 slpeel_update_phi_nodes_for_guard2,
15227 slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
15228 vect_loop_versioning): Set locations.
15229 * tree-parloops.c (create_phi_for_local_result,
15230 transform_to_exit_first_loop, create_parallel_loop): Add locations.
15231 * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
15232 * tree-vect-loop.c (get_initial_def_for_induction,
15233 vect_create_epilog_for_reduction, vect_finalize_reduction): Add
15234 locations.
15235 * tree-flow-inline.h (gimple_phi_arg_location): New. Return locus.
15236 (gimple_phi_arg_location_from_edge): New. Return locus from an edge.
15237 (gimple_phi_arg_set_location): New. Set locus.
15238 (gimple_phi_arg_has_location): New. Check for locus.
15239 (redirect_edge_var_map_location): New. Return locus from var_map.
15240 * tree-vect-data-refs.c (vect_setup_realignment): Set location.
15241 * tree-ssa-phiopt.c (conditional_replacement): Set locus when
15242 combining PHI arguments.
15243 (cond_store_replacement): Set location.
15244 * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
15245 * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
15246 scop_add_exit_phis_edge): Add locations.
15247 * tree-cfgcleanup.c (remove_forwarder_block,
15248 remove_forwarder_block_with_phi): Add locations.
15249 * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
15250 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
15251 locations.
15252 * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
15253 * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
15254 flush_pending_stmts): Add source location.
15255 * lambda-code.c (perfect_nestify): Maintain location stack with argument
15256 stack to preserve locations.
15257 * tree-vect-stmts.c (vectorizable_load): Add location.
15258 * tree-inline.c (copy_phis_for_bb): Copy locus.
15259 (setup_one_parameter): Add call locus to inlined parameter stmts.
15260 (initialize_inlined_parameters): Pass in call location as parameter
15261 assignment locus.
15262 (tree_function_versioning): Pass location to setup_one_parameter.
15263 * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
15264 * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
15265 copy and edge lists.
15266 (insert_partition_copy_on_edge, insert_value_copy_on_edge,
f100a4a8 15267 insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
f5045c96
AM
15268 locus parameter and override the stmt default if provided.
15269 (new_elim_graph, clear_elim_graph, delete_elim_graph,
15270 elim_graph_add_edge, elim_graph_remove_succ_edge,
15271 FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
15272 elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
15273 eliminate_phi): Add locus info in elimination graph for each edge and
15274 value copy.
15275 (insert_backedge_copies): Copy locus if present.
15276 * tree-flow.h (struct _edge_var_map): Add locus field.
15277 * tree-switch_conversions.c (fix_phi_nodes): Add locations.
15278 * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
f100a4a8 15279 add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
f5045c96
AM
15280 locations.
15281 * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
f100a4a8 15282
2d4b90b1
MJ
152832009-07-30 Martin Jambor <mjambor@suse.cz>
15284
15285 PR tree-optimization/40570
15286 * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
15287 use inlining loops.
15288
08dab97a
RL
152892009-07-30 Razya Ladelsky <razya@il.ibm.com>
15290
15291 * ssa-loop-manip.c: Include langhooks.h.
15292 (rewrite_phi_with_iv): New.
15293 (rewrite_all_phi_nodes_with_iv): New.
15294 (canonicalize_loop_ivs): Move here from tree-parloops.c.
15295 Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
15296 * tree-parloops.c (loop_parallel_p): Move out all conditions
15297 except dependency check.
15298 (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
15299 (gen_parallel_loop): Call canonicalize_loop_ivs without
15300 reduction_list argument.
15301 (build_new_reduction): New.
15302 (gather_scalar_reductions): New.
15303 (try_get_loop_niter): New.
15304 (try_create_reduction_list): New.
15305 (parallleize_loops): Change the parallel conditions check.
15306 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
15307 * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
15308
88c2fd3d
DK
153092009-07-30 Dave Korn <dave.korn.cygwin@gmail.com>
15310
15311 * opt-functions.awk (opt_args): Allow argument to be enclosed in
15312 curly braces.
15313 * doc/options.texi (Option properties): Mention new quoting syntax.
15314
5ea8f977
DR
153152009-07-29 Douglas B Rupp <rupp@gnat.com>
15316
15317 * config/alpha/alpha.c (alpha_start_function):
15318 Handle VMS_DEBUG_MAIN_POINTER
15319 * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
15320 * doc/invoke.texi: Document -mdebug-main switch.
15321
9b2a5ef7
RH
153222009-07-29 Richard Henderson <rth@redhat.com>
15323
15324 * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
15325 (cgraph_create_edge_including_clones): Likewise.
15326 * tree-inline.c (copy_bb): Operate on the correct edges
15327 when updating the callgraph.
15328
71cd2220
DR
153292009-07-29 Douglas B Rupp <rupp@gnat.com>
15330
15331 * config/alpha/vms-cc.c: Deleted.
15332 * config/alpha/vms-ld.c: Deleted.
15333 * config/alpha/t-vms64: Moved to config/vms
15334 * config/alpha/vms-crt0-64.c: Moved to config/vms
15335 * config/alpha/vms-crt0.c: Moved to config/vms
15336 * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
15337 * config/alpha/vms-psxcrt0.c: Moved to config/vms
15338 * config/alpha/xm-vms.h: Moved to config/vms
15339 * config/alpha/x-vms: Moved to config/vms
15340 * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
15341 config/vms/t-vms.
15342 * config/vms/t-vms: Moved here from config/alpha. Alpha specific
15343 parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
15344 (version): Set.
15345 * config/vms/t-vms64: Moved here from config/alpha
15346 * config/vms/vms-crt0-64.c: Moved here from config/alpha.
15347 (argc,argv,envp): Enforce 32bit malloc'ing.
15348 * config/vms/vms-psxcrt0-64.c: Likewise.
15349 * config/vms/vms-crt0.c: Moved here from config/alpha.
15350 * config/vms/vms-psxcrt0.c: Likewise.
15351 * config/vms/vms-crtl-64.h: New file.
15352 * config/vms/vms-crtl.h: New file.
15353 * config/vms/vms.opt: New file.
15354 * config/vms/xm-vms64.h: New file.
15355 * config/vms/xm-vms.h: Moved here from config/alpha.
15356 (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
15357 Set.
15358 * config/vms/x-vms: Moved here from config/alpha.
15359 (version, VMS_EXTRA_PARTS): Moved to t-vms.
15360 (vms-ld.o, vms-cc.o): Removed.
15361 (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
15362
82b75b46
DR
153632009-07-29 Douglas B Rupp <rupp@gnat.com>
15364
15365 * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
15366 correct stack (obvious VMS fix).
15367
c2cffdc8
DR
153682009-07-29 Douglas B Rupp <rupp@gnat.com>
15369
15370 * dwarf2out.c (output_file_names): Output VMS style file name, size,
15371 date, version info if VMS_DEBUGGING_INFO defined.
15372 * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
15373 size, date calculating code moved here.
15374
0244b03f
PB
153752009-07-29 Paul Brook <paul@codesourcery.com>
15376
15377 * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
15378 do_push/do_pop.
15379
bc4eac6d
UB
153802009-07-29 Uros Bizjak <ubizjak@gmail.com>
15381
15382 PR target/40577
15383 * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
15384 to DImode when generating insq_le insn.
15385
6f1595d3
DR
153862009-07-28 Douglas B Rupp <rupp@gnat.com>
15387
15388 * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
15389 New macro set for VMS_DEBUGGGING_INFO.
15390 (AT_string_form): Use it.
15391
820ca276
DD
153922009-07-28 DJ Delorie <dj@redhat.com>
15393
15394 * config/mep/mep.c (vtext_section): New.
15395 (vftext_section): New.
15396 (ftext_section): New.
15397 (mep_select_section): Add support for functions.
15398 (mep_unique_section): Likewise.
15399 (mep_asm_init_sections): Likewise.
3fb0a660 15400 (mep_encode_section_info): Remove it from here.
820ca276
DD
15401
15402 * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
15403
e2121f17
PB
154042009-07-28 Paolo Bonzini <bonzinI@gnu.org>
15405
15406 * tree.h (TREE_DEPRECATED): Document it is used for types too.
15407 (TYPE_VECTOR_OPAQUE): Use default_def_flag
15408
dde08f9b
DR
154092009-07-28 Douglas B Rupp <rupp@gnat.com>
15410
15411 * dwarf2out.c (output_file_names): Test new macro
15412 DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
15413 (add_comp_dir_attribute): Likewise.
15414
032502c2
KT
154152009-07-28 Kai Tietz <kai.tietz@onevision.com>
15416
15417 * config/i386/mingw-w64.h (LINK_SPEC): Add
15418 separating space between commands.
15419
b29c2ffd
JH
154202009-07-28 Jan Hubicka <jh@suse.cz>
15421
15422 PR tree-optimization/40759
15423 * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
15424 for renaming.
15425
683a1be6
DD
154262009-07-27 DJ Delorie <dj@redhat.com>
15427
15428 * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
15429 types are dword-aligned.
15430 (mep_expand_va_start): Likewise.
15431
cf157324 154322009-07-27 Olivier Hainque <hainque@adacore.com>
bc4eac6d 15433 Douglas B Rupp <rupp@gnat.com>
cf157324
OH
15434
15435 * convert.c (convert_to_pointer): Don't assume the target
15436 pointer type is POINTER_SIZE long. Fetch its precision instead.
15437
d4d798a3
DR
154382009-07-27 Douglas B Rupp <rupp@gnat.com>
15439
15440 * system.h (fopen): Undefine if macro.
15441
5823ade1
JJ
154422009-07-27 Jakub Jelinek <jakub@redhat.com>
15443
15444 * dwarf2out.c (output_cfi_p): Removed.
15445 (output_cfis): New function.
15446 (output_fde): New function, split from output_call_frame_info.
15447 (output_call_frame_info): Use it.
15448 (dwarf2out_switch_text_section): Use output_cfis.
15449
648abd76
KT
154502009-07-24 Kai Tietz <kai.tietz@onevision.com>
15451
15452 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
15453 TARGET_BI_ARCH is specified without enabling SJLJ.
15454 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
15455 if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
15456
4b89636e
MP
154572009-07-26 Mikael Pettersson <mikpe@it.uu.se>
15458
15459 * arm.md (negdi2): Use DImode if forcing a value into a register.
15460
63827fb8
IR
154612009-07-26 Ira Rosen <irar@il.ibm.com>
15462
15463 PR tree-optimization/40801
15464 * tree-vect-stmts.c (vectorizable_call): Get previous copy
15465 of vector operand from the previous copy of vector statement.
15466 Pass the correct definition type value to
15467 vect_get_vec_def_for_stmt_copy().
15468
db9369bb
JDA
154692009-07-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15470
15471 * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
15472 const char ** conversion.
15473
2df77822
DD
154742009-07-25 David Daney <ddaney@caviumnetworks.com>
15475
15476 * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
15477 fancy_abort() if !ENABLE_ASSERT_CHECKING.
15478 (gcc_unreachable): Invoke __builtin_unreachable() if
15479 !ENABLE_ASSERT_CHECKING.
15480
1e211590
DD
154812009-07-25 David Daney <ddaney@caviumnetworks.com>
15482
15483 PR rtl-optimization/40445
15484 * emit-rtl.c (next_nonnote_insn_bb): New function.
15485 * rtl.h (next_nonnote_insn_bb): Declare new function.
15486 * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
15487 with no successors that is the successor of the ENTRY_BLOCK.
15488 Continue from the top after removing an empty fallthrough block.
15489 * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
15490 of next_nonnote_insn.
15491
ba21aba3
DD
154922009-07-25 David Daney <ddaney@caviumnetworks.com>
15493
bc4eac6d 15494 * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
f100a4a8 15495
86631ea3
MJ
154962009-07-25 Martin Jambor <mjambor@suse.cz>
15497
15498 * c-common.c (c_common_attribute_table): New element for noclone.
15499 (handle_noclone_attribute): New function. Forward-declare.
15500 * tree-inline.c (tree_versionable_function_p): Check for noclone
15501 attribute.
15502 * doc/extend.texi (Labels as Values): Document need for noclone.
15503 (Function Attributes): Document noclone attribute.
15504
0cf856b7
JJ
155052009-07-25 Jakub Jelinek <jakub@redhat.com>
15506
15507 PR rtl-optimization/34999
15508 * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
15509 and dw_fde_switched_cold_to_hot fields.
15510 (output_cfi_p): New function.
15511 (output_call_frame_info): If fde->dw_fde_switched_sections,
15512 output 2 FDEs instead of one with corrupted header.
15513 (dwarf2out_do_cfi_startproc): New function.
15514 (dwarf2out_begin_prologue): Use it. Initialize fde->dw_fde_switch_cfi
15515 and fde->dw_fde_switched_cold_to_hot.
15516 (dwarf2out_switch_text_section): Compute
15517 fde->dw_fde_switched_cold_to_hot. Switch to new text section here.
15518 If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
15519 dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
15520 Otherwise, compute fde->dw_fde_switch_cfi.
15521
2a2869d6
CC
155222009-07-24 Cary Coutant <ccoutant@google.com>
15523
15524 * tree-cfg.c (assign_discriminator): Add explicit parentheses.
15525
cbea518e
CC
155262009-07-24 Cary Coutant <ccoutant@google.com>
15527
15528 * cfghooks.c (split_block): Copy discriminator to new block.
15529 * tree-cfg.c (assign_discriminator): Check location of last
15530 instruction in block as well as first.
15531
87da3843
UB
155322009-07-24 Uros Bizjak <ubizjak@gmail.com>
15533
15534 * config/i386/linux.c: Use fputs or putc instead of fprintf
15535 where appropriate.
15536 * config/i386/gas.h: Ditto.
15537 * config/i386/x86-64.h: Ditto.
15538 * config/i386/att.h: Ditto.
15539
a22fb74c
AK
155402009-07-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15541
15542 * expmed.c (emit_store_flag): Use a recursive call to optimize the
15543 xor case.
15544
5b9633c8
MJ
155452009-07-24 Martin Jambor <mjambor@suse.cz>
15546
15547 * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
15548 (ipa_push_func_to_list_1): Declare.
15549 (ipa_push_func_to_list): New function.
15550
15551 * ipa-prop.c (ipa_push_func_to_list_1): New function.
15552 (ipa_init_func_list): Call ipa_push_func_to_list_1.
15553 (ipa_push_func_to_list): Removed.
15554 (ipa_pop_func_from_list): Clear node_enqueued flag.
15555
ff5b964d 155562009-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
f100a4a8 15557
ff5b964d
AK
15558 * config/s390/s390.c (override_options): Default
15559 max-unrolled-insns to 100 for z10 tuning.
15560
223cf84d
TG
155612009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
15562
15563 * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
15564 tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
15565 tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
15566 tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
15567 tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
15568 tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
15569 lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
15570
3a802a9e
KT
155712009-07-24 Kai Tietz <kai.tietz@onevision.com>
15572
15573 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
15574 use default set in mingw32.h header.
15575 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
15576 64-bit /mingw/include path.
15577 (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
15578 path.
15579
c580edc8
NV
155802009-07-23 Neil Vachharajani <nvachhar@google.com>
15581
15582 PR rtl-optimization/40209
15583 * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
15584
0d42d490
UB
155852009-07-23 Uros Bizjak <ubizjak@gmail.com>
15586
15587 * config/i386/i386.c: Use ASM_LONG instead of .long. Concatenate
15588 ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
15589 with the rest of string where appropriate. Use fputs or putc
15590 instead of fprintf where appropriate.
15591
a72c65c7
MM
155922009-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
15593 Pat Haugen <pthaugen@us.ibm.com>
15594 Revital Eres <ERES@il.ibm.com>
15595
15596 * config/rs6000/vector.md: New file. Move most of the vector
15597 expander support here from altivec.md to allow for the VSX vector
15598 unit in the future. Add support for secondary_reload patterns.
15599 Rewrite the patterns for vector comparison, and vector comparison
15600 predicate instructions so that the RTL expresses the desired
15601 behavior, instead of using unspec.
15602
15603 * config/rs6000/constraints.md ("f" constraint): Use
15604 rs6000_constraints to hold the precalculated register class.
15605 ("d" constraint): Ditto.
15606 ("wd" constraint): New constraint for VSX.
15607 ("wf" constraint): Ditto.
15608 ("ws" constraint): Ditto.
15609 ("wa" constraint): Ditto.
15610 ("wZ" constraint): Ditto.
15611 ("j" constraint): Ditto.
15612
15613 * config/rs6000/predicates.md (vsx_register_operand): New
15614 predicate for VSX.
15615 (vfloat_operand): New predicate for vector.md.
15616 (vint_operand): Ditto.
15617 (vlogical_operand): Ditto.
15618 (easy_fp_constant): If VSX, 0.0 is an easy constant.
15619 (easy_vector_constant): Add VSX support.
15620 (altivec_indexed_or_indirect_operand): New predicate for
15621 recognizing Altivec style memory references with AND -16.
15622
15623 * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
15624 for vector secondary reload support.
87da3843
UB
15625 (rs6000_vector_reg_class): Delete, replacing it with
15626 rs6000_constraints.
a72c65c7
MM
15627 (rs6000_vsx_reg_class): Ditto.
15628 (rs6000_constraints): New array to hold the register classes of
15629 each of the register constraints that can vary at runtime.
15630 (builtin_mode_to_type): New static array for builtin function type
15631 creation.
15632 (builtin_hash_table): New static hash table for builtin function
15633 type creation.
15634 (TARGET_SECONDARY_RELOAD): Define target hook.
15635 (TARGET_IRA_COVER_CLASSES): Ditto.
15636 (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
0d42d490 15637 registers are 128 bits if VSX memory reference instructions are used.
a72c65c7
MM
15638 (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
15639 unit is being used.
15640 (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
15641 (rs6000_debug_reg_global): Move -mdebug=reg statements here.
15642 Print several of the scheduling related parameters.
15643 (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
15644 rs6000_constraints instead of rs6000_vector_reg_class. Move
15645 -mdebug=reg code to rs6000_debug_reg_global. Add support for
15646 -mvsx-align-128 debug switch. Drop testing float_p if VSX or
15647 Altivec. Add VSX support. Setup for secondary reload support on
15648 Altivec/VSX registers.
15649 (rs6000_override_options): Make power7 set the scheduling groups
15650 like the power5. Add support for new debug switches to override
15651 the scheduling defaults. Temporarily disable -mcpu=power7 from
15652 setting -mvsx. Add support for debug switches -malways-hint,
15653 -msched-groups, and -malign-branch-targets.
15654 (rs6000_buitlin_conversion): Add support for returning unsigned
15655 vector conversion functions to fix regressions due to stricter
15656 type checking.
15657 (rs6000_builtin_mul_widen_even): Ditto.
15658 (rs6000_builtin_mul_widen_odd): Ditto.
15659 (rs6000_builtin_vec_perm): Ditto.
15660 (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
15661 (rs6000_expand_vector_init): Initial VSX support for using xxlxor
15662 to zero a register.
15663 (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
15664 generated upstream.
15665 (bdesc_3arg): Add builtins for unsigned types. Add builtins for
15666 VSX types for bit operations. Changes to accomidate vector.md.
15667 (bdesc_2arg): Ditto.
15668 (bdesc_1arg): Ditto.
15669 (struct builtin_description_predicates): Rewrite predicate
15670 handling so that RTL describes the operation, instead of passing
15671 the instruction to be used as a string argument.
15672 (bdesc_altivec_preds): Ditto.
15673 (altivec_expand_predicate_builtin): Ditto.
15674 (altivec_expand_builtin): Ditto.
15675 (rs6000_expand_ternop_builtin): Use a switch instead of an if
15676 statement for vsldoi support.
0d42d490 15677 (altivec_expand_ld_builtin): Change to use new names from vector.md.
a72c65c7
MM
15678 (altivec_expand_st_builtin): Ditto.
15679 (paired_expand_builtin): Whitespace changes.
15680 (rs6000_init_builtins): Add V2DF/V2DI types. Initialize the
15681 builtin_mode_to_type table for secondary reload. Call
15682 builtin_function_type to build random builtin functions.
15683 (altivec_init_builtins): Change to use builtin_function_type to
15684 create builtin function types dynamically as we need them.
15685 (builtin_hash_function): New support for hashing the tree types
15686 for builtin function as we need it, rather than trying to build
0d42d490 15687 all of the trees that we need. Add initial preliminary VSX support.
a72c65c7
MM
15688 (builtin_function_type): Ditto.
15689 (builtin_function_eq): Ditto.
15690 (builtin_hash_struct): Ditto.
15691 (rs6000_init_builtins): Ditto.
15692 (rs6000_common_init_builtins): Ditto.
15693 (altivec_init_builtins): Ditto.
15694 (rs6000_common_init_builtins): Ditto.
15695 (enum reload_reg_type): New enum for simplifing reg classes.
15696 (rs6000_reload_register_type): Simplify register classes into GPR,
0d42d490 15697 Vector, and other registers. Altivec and VSX addresses in reload.
a72c65c7
MM
15698 (rs6000_secondary_reload_inner): Ditto.
15699 (rs6000_ira_cover_classes): New target hook, that returns the
15700 appropriate cover classes, based on -mvsx being used or not.
15701 (rs6000_secondary_reload_class): Add VSX support.
15702 (get_vec_cmp_insn): Delete, rewrite vector conditionals.
15703 (get_vsel_insn): Ditto.
15704 (rs6000_emit_vector_compare): Rewrite vector conditional support
15705 so that where we can, we use RTL operators, instead of blindly use
15706 UNSPEC.
15707 (rs6000_emit_vector_select): Ditto.
15708 (rs6000_emit_vector_cond_expr): Ditto.
0d42d490 15709 (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
a72c65c7 15710 (create_TOC_reference): Add -mdebug=addr support.
0d42d490 15711 (emit_frame_save): VSX loads/stores need register indexed addressing.
a72c65c7
MM
15712
15713 * config/rs6000/rs6000.md: Include vector.md.
15714
15715 * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
15716
15717 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15718 support for V2DI, V2DF in logical, permute, select operations.
15719
15720 * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
15721 switch for vsx/power7.
15722 (-mvsx-scalar-memory): Ditto.
15723 (-mvsx-align-128): Ditto.
15724 (-mallow-movmisalign): Ditto.
15725 (-mallow-df-permute): Ditto.
15726 (-msched-groups): Ditto.
15727 (-malways-hint): Ditto.
15728 (-malign-branch-targets): Ditto.
f100a4a8 15729
a72c65c7
MM
15730 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
15731 hook instead.
15732 (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
15733 (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
15734 (rs6000_vector_reg_class): Delete.
15735 (rs6000_vsx_reg_class): Ditto.
15736 (enum rs6000_reg_class_enum): New enum for the constraints that
15737 vary based on target switches.
15738 (rs6000_constraints): New array to hold the register class for all
15739 of the register constraints that vary based on the switches used.
15740 (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
15741 (enum rs6000_builtins): Add unsigned varients for the builtin
15742 declarations returned by target hooks for expanding multiplies,
15743 select, and permute operations. Add VSX builtins.
15744 (enum rs6000_builtin_type_index): Add entries for VSX.
15745 (V2DI_type_node): Ditto.
15746 (V2DF_type_node): Ditto.
15747 (unsigned_V2DI_type_node): Ditto.
15748 (bool_long_type_node): Ditto.
15749 (intDI_type_internal_node): Ditto.
15750 (uintDI_type_internal_node): Ditto.
15751 (double_type_internal_node): Ditto.
15752
15753 * config/rs6000/altivec.md (whole file): Move all expanders to
15754 vector.md from altivec.md. Rename insn matching functions to be
15755 altivec_foo.
15756 (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
15757 (altivec_vcmp*): Ditto.
15758 (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
15759 (VM): New iterator for moves that includes the VSX types.
15760 (altivec_vperm_<mode>): Add VSX types. Add unsigned types.
15761 (altivec_vperm_<mode>_uns): New, for unsigned types.
0d42d490 15762 (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
a72c65c7
MM
15763 (altivec_eq<mode>): Ditto.
15764 (altivec_gt<mode>): Ditto.
15765 (altivec_gtu<mode>): Ditto.
15766 (altivec_eqv4sf): Ditto.
15767 (altivec_gev4sf): Ditto.
15768 (altivec_gtv4sf): Ditto.
15769 (altivec_vcmpbfp_p): Ditto.
15770
6d53a79f
RE
157712009-07-23 Richard Earnshaw <rearnsha@arm.com>
15772
f100a4a8 15773 * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
6d53a79f
RE
15774 unsigned HWI.
15775
33ecc126
UB
157762009-07-23 Uros Bizjak <ubizjak@gmail.com>
15777
15778 PR target/40832
011a3198 15779 * config/i386/i386.c (output_387_ffreep): Rewrite to use
33ecc126
UB
15780 ASM_SHORT instead of .word.
15781 * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
15782 instead of .word in asm template.
15783
db1a8d98
VM
157842009-07-22 Vladimir Makarov <vmakarov@redhat.com>
15785
15786 PR target/37488
15787 * ira-lives.c (bb_has_abnormal_call_pred): New function.
15788 (process_bb_node_lives): Use it.
15789
15790 * ira.c (setup_cover_and_important_classes): Don't setup
15791 ira_important_class_nums. Add cover classes to the end of
15792 important classes.
011a3198
UB
15793 (cover_class_order, comp_reg_classes_func, reorder_important_classes):
15794 New.
db1a8d98
VM
15795 (find_reg_class_closure): Use reorder_important_classes.
15796
15797 * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
15798
15799 * config/i386/i386.c (i386_ira_cover_classes): New function.
15800 (TARGET_IRA_COVER_CLASSES): Redefine.
15801
15802 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
15803 importance of order of cover classes in the array.
f100a4a8 15804
cae63f88
DN
158052009-07-22 Diego Novillo <dnovillo@google.com>
15806
15807 * tree-pass.h (TDF_EH): Define.
15808 * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
15809 contains TDF_EH, print the EH region number holding GS.
15810 * tree-dump.c (dump_options): Add "eh".
15811 * doc/invoke.texi: Document it.
15812
61ed6392
DK
158132009-07-22 Doug Kwan <dougkwan@google.com>
15814
15815 * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
15816
a8338640
MM
158172009-07-22 Michael Matz <matz@suse.de>
15818
15819 PR tree-optimization/35229
15820 PR tree-optimization/39300
15821
15822 * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
15823 (inhibit_phi_insertion): New function.
15824 (insert_into_preds_of_block): Call it for REFERENCEs.
15825 (init_pre): Initialize and finalize scalar evolutions.
15826 * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
15827
1a66936f
UB
158282009-07-22 Uros Bizjak <ubizjak@gmail.com>
15829
15830 * config/i386/predicates.md (zero_extended_scalar_load_operand):
15831 Use CONST_VECTOR_NUNITS to determine number of elements.
15832
4fe6dea8
AK
158332009-07-22 Andreas Krebbel <krebbel1@de.ibm.com>
15834
15835 * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
15836 (U, W): Constraints are now deprecated and will be removed if we
f100a4a8 15837 run out of letters.
4fe6dea8
AK
15838 * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
15839 the file.
15840 ("prefetch"): Add the stcmh instruction for prefetching.
15841 * config/s390/s390.c (s390_symref_operand_p): Function moved. No
15842 changes.
15843 (s390_short_displacement): Return always true if compiling for
15844 machines not providing the long displacement facility.
15845 (s390_mem_constraint): Support the new constraint letter Z.
15846 (s390_check_qrst_address): New function.
15847
072ebd49
DD
158482009-07-21 DJ Delorie <dj@redhat.com>
15849
15850 * config/mep/mep.c (mep_legitimize_arg): Leave control registers
15851 alone too.
15852
4afe7ad7
JM
158532009-07-21 Jason Merrill <jason@redhat.com>
15854
15855 * c-common.c (max_tinst_depth): Increase default to 1024.
15856
848e6317
UB
158572009-07-21 Uros Bizjak <ubizjak@gmail.com>
15858
15859 * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
15860 (vec_unpacku_float_lo_v4si): Ditto.
15861
54e86f6b
UB
158622009-07-21 Uros Bizjak <ubizjak@gmail.com>
15863
15864 PR target/40811
15865 * config/i386/sse.md (sse2_cvtudq2ps): New expander.
15866 (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
15867 (builtin_description): Add __builtin_ia32_cvtudq2ps.
15868 (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
15869
4a2b7f24
JJ
158702009-07-21 Jakub Jelinek <jakub@redhat.com>
15871
15872 PR tree-optimization/40813
15873 * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
15874 it.
15875
a1516d08
KK
158762009-07-21 Kaz Kojima <kkojima@gcc.gnu.org>
15877
15878 * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
15879 with a NOP_EXPR if needed.
15880
cba146eb
PB
158812009-07-21 Paul Brook <paul@codesourcery.com>
15882
15883 * tree-vectorizer.c (increase_alignment): Handle nested arrays.
15884 Terminate debug dump with newline.
15885
ef8d9a0e
JDA
158862009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15887
15888 * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
15889 Cast "1" to unsigned HOST_WIDE_INT.
15890 (compute_zdepdi_operands): Limit maximum length to 64 bits. Limit
15891 deposit length to the maximum length - lsb. Extend length if
15892 HOST_BITS_PER_WIDE_INT is 32.
15893
d48e9cea
OR
158942009-07-20 Olatunji Ruwase <tjruwase@google.com>
15895
15896 * cgraph.h (constant_pool_htab): New function.
15897 (constant_descriptor_tree): Move from varasm.c.
15898 * varasm.c (constant_pool_htab): New function.
15899 (constant_descriptor_tree): Move to cgraph.h.
15900
9c8e65c3
OR
159012009-07-20 Olatunji Ruwase <tjruwase@google.com>
15902
848e6317 15903 * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
9c8e65c3 15904
3e014341
SZ
159052009-07-20 Shujing Zhao <pearly.zhao@oracle.com>
15906
15907 * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
15908 $(VARRAY_H).
15909
d0763469
XDL
159102009-07-20 Xinliang David Li <davidxl@google.com>
15911
15912 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
15913
752fd2a8
AN
159142009-07-20 Adam Nemet <anemet@caviumnetworks.com>
15915
15916 * config/mips/mips.md (move_type): Add arith.
15917 (type): Handle arith.
15918 (zero_extendsidi2): Rename this into ...
15919 (*zero_extendsidi2): ... this. Don't match if ISA_HAS_EXT_INS.
15920 (zero_extendsidi2): New expander.
15921 (*zero_extendsidi2_dext): New pattern.
15922
621114bc
NC
159232009-07-20 Nick Clifton <nickc@redhat.com>
15924
15925 * config.gcc (mips64-*-*): Add definition of tm_defines in order
15926 to set MIPS_ABI_DEFAULT.
15927 * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
15928
e338758d
JJ
159292009-07-20 Jakub Jelinek <jakub@redhat.com>
15930
38027156
JJ
15931 * tree-object-size.c (addr_object_size): Handle unions with
15932 array in it as last field of structs in __bos (, 1) as __bos (, 0).
15933
e338758d
JJ
15934 PR tree-optimization/40792
15935 * tree.c (build_function_type_skip_args): Remove bogus assert.
15936
08ad1d6d 159372009-07-20 Jan Hubicka <jh@suse.cz>
848e6317 15938 Martin Jambor <mjambor@suse.cz>
08ad1d6d
JH
15939
15940 * cgraph.h (combined_args_to_skip): New field.
15941 * cgraph.c (cgraph_create_virtual_clone): Properly handle
15942 combined_args_to_skip and args_to_skip.
15943 * tree-inline.c (update_clone_info): New function.
15944 (tree_function_versioning): Call update_clone_info.
bd62d832 15945 * cgraphunit.c (cgraph_materialize_clone): Dump materialized
1a66936f 15946 functions.
08ad1d6d
JH
15947 (cgraph_materialize_all_clones): More extensive dumping, working
15948 with combined_args_to_skip rather than args_to_skip.
15949
4bbe8262
IR
159502009-07-20 Ira Rosen <irar@il.ibm.com>
15951
15952 * tree-vectorizer.h (vectorizable_condition): Add parameters.
15953 * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
15954 (get_initial_def_for_reduction): Likewise.
15955 (vectorizable_reduction): Skip the check of first operand in case
15956 of COND_EXPR. Add check that it is outer loop vectorization if
f100a4a8 15957 nested cycle was detected. Call vectorizable_condition() for
4bbe8262
IR
15958 COND_EXPR. If reduction epilogue cannot be created do not fail for
15959 nested cycles (if it is not double reduction). Assert that there
15960 is only one type in the loop in case of COND_EXPR. Call
15961 vectorizable_condition() to vectorize COND_EXPR.
15962 * tree-vect-stmts.c (vectorizable_condition): Update comment.
f100a4a8 15963 Add parameters. Allow nested cycles if called from
4bbe8262
IR
15964 vectorizable_reduction(). Use reduction vector variable if provided.
15965 (vect_analyze_stmt): Call vectorizable_reduction() before
15966 vectorizable_condition().
15967 (vect_transform_stmt): Update call to vectorizable_condition().
15968
6a799f6e 159692009-07-20 Christian Bruel <christian.bruel@st.com>
f100a4a8 15970
6a799f6e
CB
15971 * config/sh/sh.opt (-mfmovd): Resurrect and document.
15972 * doc/invoke.texi (-mfmovd): Likewise.
15973 * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
f100a4a8 15974
eab09a51
JH
159752009-07-20 Jan Hubicka <jh@suse.cz>
15976
15977 * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
15978 when handling SSA name.
15979
a915ab00
JH
159802009-07-19 Jan Hubicka <jh@suse.cz>
15981
15982 PR tree-optimization/40676
15983 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
15984 virtual PHIs in empty BBs.
15985
827f4079
AN
159862009-07-18 Adam Nemet <anemet@caviumnetworks.com>
15987
15988 * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
15989 re-expanded the compound use gen_lowpart instead to convert to the
15990 desired mode.
15991
f3ce1088
AN
159922009-07-18 Adam Nemet <anemet@caviumnetworks.com>
15993
15994 * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
15995 OUTER_CONST arguments.
15996 <LSHIFTRT>: Use them to allow widening if the bits shifted in from
15997 the new wider mode will be masked off.
15998 (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
15999
3e63dd3a
AN
160002009-07-18 Adam Nemet <anemet@caviumnetworks.com>
16001
16002 * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
16003 high-order bits are zero.
16004
b641d7fc
AN
160052009-07-18 Adam Nemet <anemet@caviumnetworks.com>
16006
16007 * combine.c (simplify_shift_const_1): Split code to determine
16008 shift_mode into ...
16009 (try_widen_shift_mode): ... here. Allow widening for ASHIFTRT if the
16010 new bits shifted in are identical to the old sign bit.
16011
33922890
RG
160122009-07-18 Richard Guenther <rguenther@suse.de>
16013
16014 PR c/40787
16015 * gimplify.c (gimplify_call_expr): Reject code using results from
16016 functions returning void.
16017
1d447995
RS
160182009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
16019
16020 * doc/md.texi: Document the new PowerPC "es" constraint.
16021 Document that "m" can include automodified addresses on this target,
16022 and explain how %U must be used. Extend the "Q" and "Z" documentation
16023 to suggest "es" as well as "m".
16024 * config/rs6000/constraints.md (es): New memory constraint.
16025 (Q, Z): Update strings to match new documentation.
16026
406d1650
RS
160272009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
16028
16029 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
16030 offset from virtual_stack_vars_rtx and arg_pointer_rtx.
16031 * config/rs6000/predicates.md (volatile_mem_operand): Use
16032 offsettable_nonstrict_memref_p.
16033 * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
16034 (*floatunssidf2_internal): Likewise.
16035 (*fix_truncdfsi2_internal): Likewise.
16036 (*fix_trunctfsi2_internal): Likewise.
16037
a0ce0e6e
AS
160382009-07-17 Anatoly Sokolov <aesok@post.ru>
16039
16040 * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
16041 atmega32u2 devices.
16042 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
16043
a406865a
RG
160442009-07-17 Richard Guenther <rguenther@suse.de>
16045
16046 PR c/40401
16047 * tree-pass.h (pass_diagnose_omp_blocks): Declare.
16048 (pass_warn_unused_result): Likewise.
16049 (TODO_set_props): Remove.
16050 * omp-low.c (diagnose_omp_structured_block_errors): Change to
16051 run as a pass.
16052 (pass_diagnose_omp_blocks): Define.
16053 * c-decl.c (pop_file_scope): Do not finalize the CU here.
16054 (c_gimple_diagnostics_recursively): Remove.
16055 (finish_function): Do not call it.
16056 (c_write_global_declarations): Continue after errors.
16057 Finalize the CU here.
16058 * c-gimplify.c (c_genericize): Do not gimplify here.
16059 * c-common.c (c_warn_unused_result): Move ...
16060 * tree-cfg.c (do_warn_unused_result): ... here.
16061 (run_warn_unused_result): New function.
16062 (gate_warn_unused_result): New function.
16063 (pass_warn_unused_result): New pass.
16064 * c-common.h (c_warn_unused_result): Remove.
16065 * flags.h (flag_warn_unused_result): Declare.
16066 * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
16067 * opts.c (flag_warn_unused_result): Initialize to false.
16068 * toplev.c (compile_file): Add comment.
16069 * omp-low.c (create_omp_child_function): Do not register
16070 the function with the frontend.
16071 (diagnose_omp_structured_block_errors): Prepare to be
16072 called as optimization pass.
16073 (gate_diagnose_omp_blocks): New function.
16074 (pass_diagnose_omp_blocks): New pass.
16075 * cgraph.h (cgraph_optimize): Remove.
16076 (cgraph_analyze_function): Likewise.
16077 * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
16078 * cgraphunit.c (cgraph_lower_function): Lower nested functions
16079 before their parents here.
16080 (cgraph_finalize_function): Not here.
16081 (cgraph_analyze_function): Gimplify functions here.
16082 (cgraph_finalize_compilation_unit): Continue after errors.
16083 Optimize the callgraph from here.
16084 (cgraph_optimize): Make static.
16085 * langhooks.c (write_global_declarations): Finalize the CU.
16086 * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
16087 (gimplify_function_tree): Assert we gimplify only once.
16088 Set PROP_gimple_any property.
16089 * tree-nested.c (gimplify_all_functions): New function.
16090 (lower_nested_functions): Gimplify all nested functions.
16091 * gimple.h (diagnose_omp_structured_block_errors): Remove.
16092 * passes.c (init_optimization_passes): Add pass_warn_unused_result
16093 and pass_diagnose_omp_blocks after gimplification. Do not
16094 set TODO_set_props on all_lowering_passes.
16095 (execute_one_pass): Do not handle TODO_set_props.
16096 * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
16097 (gimplify.o): Add tree-pass.h dependency.
16098 * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
16099 (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
16100 (unsave_r): Likewise.
16101 * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
16102 temporary variable.
16103
2e687c2c
SL
161042009-07-17 Sandra Loosemore <sandra@codesourcery.com>
16105
16106 * doc/service.texi (Service): Restore previously removed link,
16107 which isn't broken after all.
16108
7763473e
RG
161092009-07-17 Richard Guenther <rguenther@suse.de>
16110
16111 PR tree-optimization/40321
16112 * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
16113 PHI nodes to the maximal set.
16114 (make_values_for_phi): Add PHI arguments to the maximal set.
16115 (execute_pre): Dump PHI_GEN and the maximal set.
16116
4f934809
JJ
161172009-07-17 Jakub Jelinek <jakub@redhat.com>
16118
16119 PR c++/40780
16120 * gimplify.c (gimplify_conversion): Don't change non-conversions into
16121 VIEW_CONVERT_EXPR.
16122
63a26b78
SL
161232009-07-16 Sandra Loosemore <sandra@codesourcery.com>
16124
16125 * doc/extend.texi (Nested Functions): Replace broken link with
16126 textual reference.
16127 * doc/service.texi (Service): Remove broken link.
16128
3ac337c3
L
161292009-07-16 H.J. Lu <hongjiu.lu@intel.com>
16130
16131 PR bootstrap/40781
16132 * builtins.c (expand_builtin_memcmp): Use loc instead of
16133 EXPR_LOCATION (exp).
16134 (expand_builtin_strncmp): Likewise.
16135
db3927fb
AH
161362009-07-17 Aldy Hernandez <aldyh@redhat.com>
16137 Manuel López-Ibáñez <manu@gcc.gnu.org>
16138
f100a4a8 16139 PR 40435
db3927fb
AH
16140 * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
16141 builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
16142 tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
16143 c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
16144 calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
16145 tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
16146 tree-inline.c, c-common.c, c-common.h, gimple.c,
16147 tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
16148 convert.c: Add location argument to fold_{unary,binary,ternary},
16149 fold_build[123], build_call_expr, build_size_arg,
16150 build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
16151 fold_build1_initializer, fold_build2_initializer,
16152 fold_build3_initializer, fold_build_call_array,
16153 fold_build_call_array_initializer, fold_single_bit_test,
16154 omit_one_operand, omit_two_operands, invert_truthvalue,
16155 fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
16156 combine_comparisons, fold_builtin_*, fold_call_expr,
16157 build_range_check, maybe_fold_offset_to_address, round_up,
16158 round_down.
16159
c32097d8
JM
161602009-07-16 Jason Merrill <jason@redhat.com>
16161
16162 PR libstdc++/37907
16163 * c-common.c (c_common_reswords): Add __is_standard_layout
16164 and __is_trivial.
16165 * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
16166 * doc/implement-cxx.texi: New.
16167 * doc/gcc.texi: Include it.
16168
b3c5a409
DD
161692009-07-16 DJ Delorie <dj@redhat.com>
16170
16171 * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
16172 compares that may be indirectly affected by previous instructions.
16173
a41d064d
KG
161742009-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16175
16176 * builtins.c (do_mpc_arg2): New.
16177 (fold_builtin_2): Fold builtin cpow.
16178 * real.h (HAVE_mpc_pow): New.
16179
db87b56d
BM
161802009-07-16 Bingfeng Mei <bmei@broadcom.com>
16181
9e7c935a
UB
16182 * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
16183 comparison to skip unprofitable schedule
16184
ba0c638e
SB
161852009-07-16 Simon Baldwin <simonb@google.com>
16186
16187 * gcc.c (option_map): New flag -no-canonical-prefixes.
16188 * (display_help): Print help text for new flag.
16189 * (process_command): Move options translation and language specifics
16190 and handle new flag early. Use it to set a function pointer to a
16191 prefix builder. Replace make_relative_prefix calls with calls to
16192 the function pointed to. Ignore new flag in regular options handling.
16193 * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
16194
11af2d7b
DD
161952009-07-15 DJ Delorie <dj@redhat.com>
16196
16197 * config/mep/mep.md (sibcall_internal): Change register to avoid
16198 argument registers.
16199 (sibcall_value_internal): Likewise.
16200
9d2bb902
EB
162012009-07-15 Eric Botcazou <ebotcazou@adacore.com>
16202
16203 PR rtl-optimization/40710
16204 * resource.c (mark_target_live_regs): Reset DF problem to LR.
16205
da45599c
AN
162062009-07-15 Adam Nemet <anemet@caviumnetworks.com>
16207
16208 * config/mips/mips.md (*extenddi_truncate<mode>,
16209 *extendsi_truncate<mode>): Change type attribute to move_type
16210 with shift_shift. Split out code handling exts from here ...
16211 (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
16212 pattern.
16213 (*extendhi_truncateqi): Change type attribute to move_type with
16214 shift_shift. Split out code handling exts from here ...
16215 (*extendhi_truncateqi_exts): ... to this new pattern.
16216
31f44cd0 162172009-07-15 Uros Bizjak <ubizjak@gmail.com>
1fba7394 16218
31f44cd0
UB
16219 * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
16220 instead of "and" with inverted sign bit mask value. Use
16221 "nonimmediate_operand" for operand 1 and operand 2 predicate.
16222 Allocate registers only for operand 4 and operand 5.
1fba7394 16223
b4e4232d
JJ
162242009-07-15 Jakub Jelinek <jakub@redhat.com>
16225
16226 PR middle-end/40747
16227 * fold-const.c (fold_cond_expr_with_comparison): When folding
16228 < and <= to MIN, make sure the MIN uses the same type as the
16229 comparison's operands.
16230
fa01135d
RE
162312009-07-15 Richard Earnshaw <rearnsha@arm.com>
16232
16233 * arm.md (ior_xor): New code iterator.
16234 (split for ior/xor with shift and zero-extend): New split pattern.
16235 * arm/predicates.md (subreg_lowpart_operator): New special predicate.
16236
b41e33fe
RG
162372009-07-15 Richard Guenther <rguenther@suse.de>
16238
16239 * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
16240 offset member.
16241
c9b2f286
RG
162422009-07-15 Richard Guenther <rguenther@suse.de>
16243
16244 PR middle-end/40753
1fba7394 16245 * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
c9b2f286 16246
31d29c40
MK
162472009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com>
16248
16249 * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
16250 handle 2.6.30 kernel.
16251
18e67adf
DD
162522009-07-15 DJ Delorie <dj@redhat.com>
16253
16254 * config/mep/mep.md (sibcall_internal): Change register to allow
16255 for 24-bit addresses.
16256 (sibcall_value_internal): Likewise.
16257
96809b41 162582009-07-14 Ghassan Shobaki <ghassan.shobaki@amd.com>
f100a4a8 16259
1fba7394
UB
16260 * doc/invoke.texi: Added descriptions of the scheduling heuristics
16261 that are enabled/disabled by the flags introduced by a previous patch.
f100a4a8 16262
54a1e1d0
DD
162632009-07-14 DJ Delorie <dj@redhat.com>
16264
16265 * config/mep/mep.md (sibcall_internal): Include non-toggling
16266 non-jmp case.
16267 (sibcall_value_internal): Likewise.
16268
2a4c0366
TG
162692009-07-14 Taras Glek <tglek@mozilla.com>
16270 Rafael Espindola <espindola@google.com>
16271
16272 * doc/sourcebuild.texi: Document install-plugin target.
16273 * configure.ac: Added install-plugin target to language makefiles.
16274 * configure: Regenerate.
bd62d832 16275 * Makefile.in (install-plugin): Install more headers,
2a4c0366
TG
16276 depend on lang.install-plugin.
16277
2349c14b
MLI
162782009-07-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
16279
16280 * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
16281 translation.
f100a4a8 16282
a9d1723f
DD
162832009-07-14 DJ Delorie <dj@redhat.com>
16284
16285 * config/mep/mep.c (mep_vliw_jmp_match): New function.
16286 * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
16287 * config/mep/mep.md (sibcall_internal): Change test from
16288 mep_vliw_mode_match to mep_vliw_jmp_match.
16289 (sibcall_value_internal): Likewise.
16290
af766f2d
UB
162912009-07-14 Uros Bizjak <ubizjak@gmail.com>
16292
16293 * config/i386/sse.md (copysign<mode>3): New expander.
16294 * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
16295 * config/i386/i386.c (ix86_build_signbit_mask): Make public.
16296 Use ix86_build_const_vector.
16297 (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
16298 IX86_BUILTIN_CPYSGNPD.
16299 (builtin_description): Add __builtin_ia32_copysignps and
16300 __builtin_ia32_copysignpd.
16301 (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
16302 and BUILT_IN_COPYSIGNF.
16303
b35c8160
JM
163042009-07-13 Jason Merrill <jason@redhat.com>
16305
16306 * builtins.c (can_trust_pointer_alignment): New fn.
16307 (get_pointer_alignment): Factor it out from here.
16308 * tree.h: Declare it.
16309
e02e8e58
DE
163102009-07-14 David Edelsohn <edelsohn@gnu.org>
16311
16312 * config/rs6000/predicates.md (offsettable_mem_operand): Test
16313 RTX_AUTOINC class.
16314
4fdaccea
DS
163152009-07-14 Dodji Seketeli <dodji@redhat.com>
16316
16317 PR debug/40705
16318 PR c++/403057
16319 * dwarf2.out.c (gen_type_die_with_usage): Added comment.
16320
0b200b80 163212009-07-14 Richard Guenther <rguenther@suse.de>
af766f2d 16322 Andrey Belevantsev <abel@ispras.ru>
0b200b80
RG
16323
16324 PR middle-end/40745
16325 * cfgexpand.c (partition_stack_vars): Do not bother to update
16326 alias information when not optimizing.
16327
55b34b5f 163282009-07-14 Richard Guenther <rguenther@suse.de>
848e6317 16329 Andrey Belevantsev <abel@ispras.ru>
55b34b5f
RG
16330
16331 * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
16332 (pt_solution_set): Likewise.
16333 * tree-ssa-alias.c (refs_may_alias_p_1): Export.
16334 * tree-ssa-structalias.c (pt_solution_set): New function.
16335 * final.c (rest_of_clean_state): Free SSA data structures.
16336 * print-rtl.c (print_decl_name): Remove.
16337 (print_mem_expr): Implement in terms of print_generic_expr.
16338 * alias.c (ao_ref_from_mem): New function.
16339 (rtx_refs_may_alias_p): Likewise.
16340 (true_dependence): Query alias-export info.
16341 (canon_true_dependence): Likewise.
16342 (write_dependence_p): Likewise.
16343 * tree-dfa.c (get_ref_base_and_extent): For void types leave
16344 size unknown.
16345 * emit-rtl.c (component_ref_for_mem_expr): Remove.
16346 (mem_expr_equal_p): Use operand_equal_p.
16347 (set_mem_attributes_minus_bitpos): Do not use
16348 component_ref_for_mem_expr.
16349 * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
16350 (update_alias_info_with_stack_vars): Likewise.
16351 (partition_stack_vars): Call update_alias_info_with_stack_vars.
16352 * tree-ssa.c (delete_tree_ssa): Do not release SSA names
16353 explicitly nor clear stmt operands.
16354 Free the decl-to-pointer map.
16355 * tree-optimize.c (execute_free_datastructures): Do not free
16356 SSA data structures here.
16357 * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
16358 * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
16359 (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
16360 dependencies.
16361 (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
16362
a46f0964
DD
163632009-07-13 DJ Delorie <dj@redhat.com>
16364
1700c2e7
DD
16365 * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
16366 unrolling at the right iteration count.
16367
a46f0964
DD
16368 * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
16369 calculations.
16370
ee4764a8 163712009-07-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
f100a4a8 16372
af766f2d
UB
16373 * haifa-sched.c (rank_for_schedule): Introduced flags to
16374 enable/disable individual scheduling heuristics.
16375 * common.opt: Introduced flags to enable/disable individual
f100a4a8 16376 heuristics in the scheduler.
af766f2d
UB
16377 * doc/invoke.texi: Introduced flags to enable/disable individual
16378 heuristics in the scheduler.
f100a4a8 16379
9122666c
KT
163802009-07-13 Kai Tietz <kai.tietz@onevision.com>
16381
16382 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
16383 config/i386/mingw-tls.c.
16384 * config/i386/mingw-tls.c: Removed.
16385
2f3e235b
IR
163862009-07-13 Ira Rosen <irar@il.ibm.com>
16387
f100a4a8 16388 * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
2f3e235b
IR
16389 checks access only relevant statements.
16390 (vectorizable_reduction): Likewise.
16391
f345f84a
KT
163922009-07-12 Kai Tietz <kai.tietz@onevision.com>
16393
16394 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
16395 just for 32-bit case.
16396
f645e9a2
JH
163972009-07-12 Jan Hubicka <jh@suse.cz>
16398
16399 PR tree-optimization/40585
16400 * except.c (expand_resx_expr): When there already is resume
16401 instruction, produce linked list.
16402 (build_post_landing_pads): Assert that resume is empty.
16403 (connect_post_landing_pads): Handle resume lists.
16404 (dump_eh_tree): Dump resume list.
16405
06066f92
IR
164062009-07-12 Ira Rosen <irar@il.ibm.com>
16407
16408 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
16409 with additional argument.
7c8b1a77 16410 * tree-vectorizer.h (enum vect_def_type): Add
06066f92
IR
16411 vect_double_reduction_def.
16412 (vect_is_simple_reduction): Add argument.
7c8b1a77 16413 * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
06066f92
IR
16414 indentation.
16415 (vect_analyze_scalar_cycles_1): Detect double reduction. Call
16416 vect_is_simple_reduction with additional argument.
16417 (vect_analyze_loop_operations): Handle exit phi nodes in case of
16418 double reduction.
16419 (reduction_code_for_scalar_code): Handle additional codes by
16420 returning ERROR_MARK for them. Fix comment and indentation.
16421 (vect_is_simple_reduction): Fix comment, add argument to specify
16422 double reduction. Detect double reduction.
16423 (get_initial_def_for_induction): Fix indentation.
16424 (get_initial_def_for_reduction): Fix comment and indentation.
16425 Handle double reduction. Create initial definitions that do not
16426 require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
16427 (vect_create_epilog_for_reduction): Fix comment, add argument to
16428 handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
16429 epilogue result extraction. Create double reduction phi node and
16430 replace relevant uses.
16431 (vectorizable_reduction): Call vect_is_simple_reduction with
16432 additional argument. Fix indentation. Update epilogue code treatment
7c8b1a77 16433 according to the changes in reduction_code_for_scalar_code. Check
06066f92
IR
16434 for double reduction. Call vect_create_epilog_for_reduction with
16435 additional argument.
16436 * tree-vect-stmts.c (process_use): Handle double reduction, update
16437 documentation.
16438 (vect_mark_stmts_to_be_vectorized): Handle double reduction.
16439 (vect_get_vec_def_for_operand): Likewise.
16440
b20231fe
DS
164412009-07-12 Danny Smith <dansmister@gmail.com>
16442
16443 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
16444 dllexport if !TREE_PUBLIC.
16445 (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
16446
97c281da
AS
164472009-07-11 Anatoly Sokolov <aesok@post.ru>
16448
16449 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
16450 (avr_extra_arch_macro) Remove declatation.
16451 * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
16452 (avr_extra_arch_macro) Declare as static.
16453 * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
16454
6b45de00
JH
164552009-07-11 Jan Hubicka <jh@suse.cz>
16456
16457 PR middle-end/48388
16458 * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
16459
dd67163f
JJ
164602009-07-11 Jakub Jelinek <jakub@redhat.com>
16461
3e3a9a6a
JJ
16462 PR debug/40713
16463 * dwarf2out.c (dw_fde_struct): Add in_std_section and
16464 cold_in_std_section bits.
16465 (dwarf2out_begin_prologue): Initialize them.
16466 (dwarf2out_finish): Don't emit FDE range into .debug_ranges
16467 if already covered by text_section or cold_text_section range.
16468
ae58e548
JJ
16469 PR rtl-optimization/40667
16470 * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
16471 * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
16472 * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
16473 * config/i386/i386.c (ix86_minimum_alignment): New function.
16474 * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
16475 * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
16476 * emit-rtl.c (gen_reg_rtx): Likewise.
16477 * function.c (assign_parms): Likewise. If nominal_type needs
16478 bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
16479 rather than passed_type's alignment.
16480
dd67163f
JJ
16481 PR target/40668
16482 * function.c (assign_parm_setup_stack): Adjust
16483 MEM_OFFSET (data->stack_parm) if promoted_mode is different
16484 from nominal_mode on big endian.
16485
e9edda23
PB
164862009-07-11 Paolo Bonzini <bonzini@gnu.org>
16487
16488 * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
16489
82e45095
DD
164902009-07-10 DJ Delorie <dj@redhat.com>
16491
16492 * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
16493
98ac6510
MM
164942009-07-10 Mark Mitchell <mark@codesourcery.com>
16495
16496 * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
16497 attribute.
16498 (thumb2_cbnz): Likewise.
16499
b96c5923
DD
165002009-07-10 David Daney <ddaney@caviumnetworks.com>
16501
16502 PR target/39079
16503 * config.gcc (supported_defaults): Add synci.
16504 (with_synci): Add validation.
16505 (all_defaults): Add synci.
16506 * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
16507 ISA_HAS_SYNCI.
16508 (synci): Same.
16509 * config/mips/mips.opt (msynci): New option.
16510 * config/mips/mips.c (mips_override_options): Warn on use of
16511 -msynci for targets that do now support it.
16512 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
16513 msynci.
16514 * gcc/doc/invoke.texi (-msynci): Document the new option.
16515 * doc/install.texi (--with-synci): Document the new option.
16516
182e00b1
RG
165172009-07-10 Richard Guenther <rguenther@suse.de>
16518
16519 PR tree-optimization/40496
16520 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
16521 the PHI result with a compatible type.
16522
156f545a
MLI
165232009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
16524
16525 PR 25509
16526 PR 40614
16527 * c.opt (Wunused-result): New.
16528 * doc/invoke.texi: Document it.
16529 * c-common.c (c_warn_unused_result): Use it.
16530
06c43499
DD
165312009-07-09 DJ Delorie <dj@redhat.com>
16532
5cec9f59
DD
16533 * targhooks.c (default_target_can_inline_p): Rename from
16534 default_target_option_can_inline_p.
16535 * targhooks.h (default_target_can_inline_p): Likewise.
16536 * target-def.h (TARGET_CAN_INLINE_P): Rename from
16537 TARGET_OPTION_CAN_INLINE_P.
16538 * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
16539 * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
16540 (mep_target_can_inline_p): Rename from
16541 mep_target_option_can_inline_p.
16542
16543 PR target/40626
b9263ae5
DD
16544 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
16545 registers used to pass vectors.
16546
06c43499
DD
16547 * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
16548
a80b0574
TT
165492009-07-09 Tom Tromey <tromey@redhat.com>
16550
16551 * unwind-dw2-fde-darwin.c: Include dwarf2.h.
16552 * config/mmix/mmix.c: Include dwarf2.h.
16553 * config/rs6000/darwin-fallback.c: Include dwarf2.h.
16554 * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
16555 * config/sh/sh.c: Include dwarf2.h.
16556 * config/i386/i386.c: Include dwarf2.h.
16557 * Makefile.in (DWARF2_H): Remove 'elf'.
16558 * except.c: Include dwarf2.h.
16559 * unwind-dw2.c: Include dwarf2.h.
16560 * dwarf2out.c: Include dwarf2.h.
16561 * unwind-dw2-fde-glibc.c: Include dwarf2.h.
16562 * unwind-dw2-fde.c: Include dwarf2.h.
16563 * dwarf2asm.c: Include dwarf2.h.
16564
356c23b3 165652009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
7c8b1a77 16566
356c23b3 16567 * haifa-sched.c (insn_finishes_cycle_p): New static function.
7c8b1a77
UB
16568 (max_issue): Use it.
16569 * sched-int.h (struct sched_info: insn_finishes_block_p): New
16570 scheduler hook.
16571 * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
16572 (region_sched_info): Update.
16573 * sched-ebb.c (ebb_sched_info): Update.
16574 * modulo-sched.c (sms_sched_info): Update.
356c23b3
MK
16575 * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
16576
5223c588
MK
165772009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
16578
16579 * varasm.c (build_constant_desc): Don't share RTL in pool entries.
8d4cf6d7
BS
16580
165812009-07-09 Basile Starynkevitch <basile@starynkevitch.net>
16582
f100a4a8 16583 * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
8d4cf6d7 16584
b9da76de
JJ
165852009-07-09 Jakub Jelinek <jakub@redhat.com>
16586
16587 PR middle-end/40692
16588 * fold-const.c (fold_cond_expr_with_comparison): Don't replace
16589 arg1 with arg01 if arg1 is already INTEGER_CST.
16590
fcaf7e12
AN
165912009-07-08 Adam Nemet <anemet@caviumnetworks.com>
16592
7c8b1a77
UB
16593 * simplify-rtx.c (simplify_binary_operation_1) <AND>:
16594 Transform (and (truncate)) into (truncate (and)).
fcaf7e12 16595
3f36bac2
AN
165962009-07-08 Adam Nemet <anemet@caviumnetworks.com>
16597
16598 * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
16599 creating LHS paradoxical subregs. Fix surrounding returns to
16600 use NULL_RTX rather than 0.
16601
ae30c1fa
DD
166022009-07-08 DJ Delorie <dj@redhat.com>
16603
bd62d832 16604 * config/mep/mep.c (mep_option_can_inline_p): New.
ae30c1fa
DD
16605 (TARGET_OPTION_CAN_INLINE_P): Define.
16606
3d78d293
MW
166072009-07-08 Mark Wielaard <mjw@redhat.com>
16608
16609 PR debug/40659
16610 * dwarf2out.c (add_data_member_location_attribute): When we have
16611 only a constant offset don't emit a new location description using
16612 DW_OP_plus_uconst, but just add the constant with add_AT_int, when
16613 dwarf_version > 2.
16614
ac2e563f
RH
166152009-07-08 Richard Henderson <rth@redhat.com>
16616
16617 PR target/38900
16618 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
16619 (enum reg_class): Add CLOBBERED_REGS.
16620 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
16621 * config/i386/i386.c (ix86_conditional_register_usage): Moved
16622 from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
16623 (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls.
16624 (ix86_expand_call): Use sibcall_insn_operand when needed. Don't
16625 force 64-bit sibcalls into R11.
16626 * config/i386/constraints.md (U): New constraint.
16627 * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
16628 (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
16629 (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
16630
8ed77e22
SZ
166312009-07-08 Shujing Zhao <pearly.zhao@oracle.com>
16632
16633 * basic-block.h (dump_regset, debug_regset): Remove duplicate
16634 prototypes.
16635 * c-objc-common.h (c_initialize_diagnostics): Ditto.
16636 * ebitmap.h (dump_ebitmap): Ditto.
16637 * optabs.h (optab_libfunc): Ditto.
16638 * tree.h (tree_expr_nonzero_warnv_p): Ditto.
16639 * tree-flow.h (vect_can_force_dr_alignment_p,
3f36bac2 16640 get_vectype_for_scalar_type): Ditto.
8ed77e22 16641 (vectorize_loops): Move prototype to ...
3f36bac2 16642 * tree-vectorizer.h: ... here. Also, adjust comment.
8ed77e22
SZ
16643 (vect_set_verbosity_level): Remove duplicate prototype.
16644 * tree-ssa-loop.c: Include tree-vectorizer.h.
16645 * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
16646
c6075b13
NC
166472009-07-08 Nick Clifton <nickc@redhat.com>
16648
16649 * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
16650 forward slash.
16651
d1b5afd5
DD
166522009-07-08 DJ Delorie <dj@redhat.com>
16653
16654 * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
16655 cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
16656 cpmovtocc_P0S_P1): Mark volatile. Note which registers are
16657 written to.
16658 * config/mep/intrinsics.md: Regenerated.
16659 * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
16660 registers when asm() or calls are detected.
3f36bac2 16661
d665b6e5
MLI
166622009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16663
16664 PR c++/31246
16665 * gimplify.c (gimplify_expr): Propagate no_warning flag when
16666 gimplifying.
16667 * gimple (gimple_build_call_from_tree): Likewise.
16668 * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
16669 no_warning flag before warning.
3f36bac2 16670
5e278028
MLI
166712009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
16672
16673 * tree.c (set_expr_locus): Remove.
16674 * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
16675 * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by
16676 EXPR_LOCATION.
16677 * gimplify.c (internal_get_tmp_var): Likewise.
16678 (gimplify_call_expr): Likewise.
16679 (gimplify_one_sizepos): Likewise.
16680
ed3346c2
EB
166812009-07-07 Eric Botcazou <ebotcazou@adacore.com>
16682
16683 PR debug/40666
16684 * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
16685 to variables for debugging purposes.
16686
4db19cc7
ML
166872009-06-23 Mark Loeser <mark@halcy0n.com>
16688
16689 PR build/40010
16690 * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
16691
72f90fde
MLI
166922009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
16693
16694 * pretty-print.c (pp_base_format): Remove %J.
16695 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
16696 gcc_cxxdiag_char_table): Likewise.
16697 (init_dynamic_diag_info): Likewise.
4db19cc7 16698
dcb91ebe
MLI
166992009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
16700
16701 * pretty-print.c (pp_base_format): Remove %H.
16702 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
16703 gcc_cxxdiag_char_table): Likewise.
16704 (init_dynamic_diag_info): Likewise.
16705 * config/mep/mep.c (mep_select_section): Likewise.
16706
cf400ddb
DS
167072009-07-07 Duncan Sands <baldrick@free.fr>
16708
7c8b1a77
UB
16709 * final.c (pass_clean_state): Give the pass a name.
16710 * passes.c (pass_rest_of_compilation): Likewise.
16711 * tree-optimize.c (pass_all_optimizations): Likewise.
cf400ddb 16712
d575725b
L
167132009-07-07 H.J. Lu <hongjiu.lu@intel.com>
16714
16715 * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
16716 an extra 'decl' for error_at.
16717
535536b4
JJ
167182009-07-07 Jakub Jelinek <jakub@redhat.com>
16719
16720 PR middle-end/40669
16721 * tree-tailcall.c (adjust_return_value_with_ops,
16722 create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
16723 if it has complex or vector type.
16724
f062f8f2
OH
167252009-07-07 Olivier Hainque <hainque@adacore.com>
16726
d575725b
L
16727 * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
16728 pthread symbols.
f062f8f2 16729
cac1b0ee
BS
167302009-07-07 Basile Starynkevitch <basile@starynkevitch.net>
16731
16732 * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
16733
c5d75364
MLI
167342009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
16735
7c8b1a77 16736 * cgraphunit.c: Replace %J by an explicit location. Update all calls.
c5d75364
MLI
16737 * c-decl.c: Likewise.
16738 * function.c: Likewise.
16739 * varasm.c: Likewise.
16740 * tree-ssa.c: Likewise.
16741 * c-common.c: Likewise.
16742 * tree-cfg.c: Likewise.
16743 * config/spu/spu.c: Likewise.
16744 * config/ia64/ia64.c: Likewise.
16745 * config/v850/v850.c: Likewise.
16746
b932c20b
DD
167472009-07-06 DJ Delorie <dj@redhat.com>
16748
16749 * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
16750 * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
16751 unspecified accesses to control registers.
16752 * config/mep/intrinsics.md: Regenerate.
16753 * config/mep/intrinsics.h: Regenerate.
16754 * config/mep/mep-intrin.h: Regenerate.
3f36bac2 16755
fab922b1
MLI
167562009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
16757
16758 * c-lex.c: Replace %H by an explicit location. Update all calls.
16759 * c-common.c: Likewise.
16760 * c-decl.c: Likewise.
16761 * c-typeck.c: Likewise.
16762 * fold-const.c: Likewise.
16763 * gimplify.c: Likewise.
16764 * stmt.c: Likewise.
16765 * tree-cfg.c: Likewise.
16766 * tree-ssa-loop-niter.c: Likewise.
16767 * tree-vrp.c: Likewise.
16768 * value-prof.c: Likewise.
16769
66350781
DN
167702009-07-06 Diego Novillo <dnovillo@google.com>
16771
16772 * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
16773 if it has one. Handle cases where VAR does not have an
16774 annotation or cfun is NULL.
16775
d251bfca
DN
167762009-07-06 Diego Novillo <dnovillo@google.com>
16777
16778 * tree.c: Include debug.h.
16779 (initialize_tree_contains_struct): New.
16780 (init_ttree): Call it.
16781 (tree_node_structure_for_code): Factor out of ...
16782 (tree_node_structure): ... here.
16783 * treestruct.def (TS_PHI_NODE): Remove.
16784 (TS_GIMPLE_STATEMENT): Remove.
16785
e923c8ea
DN
167862009-07-06 Diego Novillo <dnovillo@google.com>
16787
7c8b1a77 16788 * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
e923c8ea
DN
16789 (debug_tree_chain): Handle cycles.
16790
7a61cf6f
NC
167912009-07-06 Nick Clifton <nickc@redhat.com>
16792 DJ Delorie <dj@redhat.com>
16793
16794 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
16795 __FMOVD_ENABLED__ is defined.
16796 * config/sh/sh.h
16797 (TARGET_FMOVD): Provide a default definition.
16798 (MASK_FMOVD): Likewise.
16799 (TARGET_CPU_CPP_BUILTINS): Define
16800 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
16801 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
7c8b1a77 16802 two fmov instructions depending upon whether TARGET_FMOVD is enabled.
7a61cf6f
NC
16803 (split for DF load from memory into register): Also handle
16804 MEMs which consist of REG+DISP addressing.
16805 (split for DF store from register to memory): Likewise.
16806 (movsf_ie): Always use single fp_mode.
16807 * config/sh/sh.c (sh_override_options): Do not automatically
16808 enable TARGET_MOVD for the SH2A when supporting doubles - leave
16809 that to the -mfmovd command line switch.
16810 (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
16811 (fldi_ok): Always allow.
16812 * config/sh/sh.opt (mfmovd): Remove this switch.
16813 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
16814
83f63251
R
168152009-07-06 J"orn Rennecke <joern.rennecke@arc.com>
16816 Kaz Kojima <kkojima@gcc.gnu.org>
16817
16818 PR rtl-optimization/30807
16819 * postreload.c (reload_combine): For every new use of REG_SUM,
16820 record the use of BASE.
16821
172d54e0
JH
168222009-07-06 Jan Hubicka <jh@suse.cz>
16823
16824 * params.def: Revert my accidental commit at 2009-06-30.
16825
34097e36
ILT
168262009-07-04 Ian Lance Taylor <iant@google.com>
16827
16828 PR target/40636
16829 * config/i386/msformat-c.c (mingw_format_attributes): Declare as
16830 EXPORTED_CONST.
16831 (mingw_format_attribute_overrides): Likewise.
16832
bd5b2c2d
JJ
168332009-07-04 Jakub Jelinek <jakub@redhat.com>
16834
16835 PR debug/40596
16836 * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
16837 don't check cfa.reg. Instead of cfa.indirect use
16838 fde && fde->drap_reg != INVALID_REGNUM test.
16839
39ba6ab7
EB
168402009-07-04 Eric Botcazou <ebotcazou@adacore.com>
16841
16842 * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
16843
54a0ac2d
VM
168442009-07-03 Vladimir Makarov <vmakarov@redhat.com>
16845
16846 PR target/40587
7c8b1a77 16847 * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
3f36bac2 16848
fae1034e
RG
168492009-07-03 Richard Guenther <rguenther@suse.de>
16850
16851 PR tree-optimization/40640
16852 * tree-switch-conversion.c (build_arrays): Perform arithmetic
16853 in original type.
16854
ba8978d0
JH
168552009-07-03 Jan Hubicka <jh@suse.cz>
16856
16857 * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
16858 for size, reduce amount of inlining.
16859
d73fb533
RG
168602009-07-03 Richard Guenther <rguenther@suse.de>
16861
16862 PR middle-end/34163
7c8b1a77
UB
16863 * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
16864 if t +- x is known to not overflow and the conversion widens the
16865 operation.
d73fb533
RG
16866 * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
16867
7351bcaa
JH
168682009-07-03 Jan Hubicka <jh@suse.cz>
16869
16870 * ipa-pure-const.c (analyze): Update loop optimizer init.
16871 * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
16872 try_remove_empty_loop, remove_empty_loops): Remove.
16873 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
16874 * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
16875 to mark regular loops as neccesary.
16876 (degenerate_phi_p): New function.
16877 (propagate_necessity, remove_dead_phis): Use it.
16878 (forward_edge_to_pdom): Likewise.
16879 (eliminate_unnecessary_stmts): Take care to remove uses of results of
16880 virtual PHI nodes that became unreachable.
16881 (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
16882 * tree-flow.h (remove_empty_loops): Remove.
16883 * passes.c (init_optimization_passes): Remove.
16884
5071eab7
UB
168852009-07-03 Uros Bizjak <ubizjak@gmail.com>
16886
16887 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
16888 can_create_pseudo_p.
16889 (*fix_trunc<mode>_i387_1): Ditto.
16890 (*floathi<mode>2_1): Ditto.
16891 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
16892 (*fistdi2_1): Ditto.
16893 (*fist<mode>2_1): Ditto.
16894 (frndintxf2_floor): Ditto.
16895 (*fist<mode>2_floor_1): Ditto.
16896 (frndintxf2_ceil): Ditto.
16897 (*fist<mode>2_ceil_1): Ditto.
16898 (frndintxf2_trunc): Ditto.
16899 (frndintxf2_mask_pm): Ditto.
16900 (fxam<mode>2_i387_with_temp): Ditto.
16901 * config/i386/sse.md (mulv16qi3): Ditto.
16902 (*sse2_mulv4si3): Ditto.
16903 (mulv2di3): Ditto.
16904 (sse4_2_pcmpestr): Ditto.
16905 (sse4_2_pcmpistr): Ditto.
16906
1fc41282
JH
169072009-07-03 Jan Hubicka <jh@suse.cz>
16908
16909 * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
16910 (mark_stmt_necessary): Set it.
16911 (mark_operand_necessary): Set it.
16912 (mark_control_dependent_edges_necessary): Set it.
16913 (mark_virtual_phi_result_for_renaming): New function.
16914 (get_live_post_dom): New function.
16915 (forward_edge_to_pdom): New function.
16916 (remove_dead_stmt): Fix handling of control dependences.
16917 (tree_dce_init): Init new bitmap.
16918 (tree_dce_done): Free it.
16919
02583d3c
RG
169202009-07-02 Richard Guenther <rguenther@suse.de>
16921
16922 PR bootstrap/40617
16923 * tree-ssa-structalias.c (new_var_info): Initialize
16924 is_restrict_var.
16925
3c1832c3
JH
169262009-07-02 Jan Hubicka <jh@suse.cz>
16927
16928 * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
16929 local.
16930
92355a9c
PB
169312009-07-02 Paolo Bonzini <bonzini@gnu.org>
16932
16933 * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
16934 instead of recomputing it. Adjust calls.
16935 (emit_store_flag): Adjust recursive calls.
16936
91deb937
RG
169372009-07-02 Richard Guenther <rguenther@suse.de>
16938
16939 * tree-ssa-live.c (remove_unused_locals): Do not remove
16940 heap variables.
16941 * tree-ssa-structalias.c (handle_lhs_call): Delay setting
16942 of DECL_EXTERNAL for HEAP variables.
16943 (compute_points_to_sets): Set DECL_EXTERNAL for escaped
16944 HEAP variables. Do not adjust RESTRICT vars.
16945 (find_what_var_points_to): Nobody cares if something
16946 points to READONLY.
16947
2011dbb0
BE
169482009-07-02 Ben Elliston <bje@au.ibm.com>
16949
16950 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
16951 pc_low and pc_high declarations to the top of the function.
16952
f2082f90
DD
169532009-07-01 DJ Delorie <dj@redhat.com>
16954
16955 * config/mep/mep.c (mep_handle_option): Leave IVC2 control
16956 registers as fixed.
5071eab7 16957 (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
f2082f90
DD
16958 * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
16959 unspecified accesses to control registers.
16960 * config/mep/intrinsics.md: Regenerate.
16961 * config/mep/intrinsics.h: Regenerate.
16962 * config/mep/mep-intrin.h: Regenerate.
3f36bac2 16963
9df748c0
AG
169642009-07-01 Anthony Green <green@moxielogic.com>
16965
16966 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
16967 instruction when possible.
16968 (moxie_expand_prologue): Ditto. Also, save an instruction and
3f36bac2 16969 some complexity by popping off of $r12 instead of $sp.
9df748c0
AG
16970 * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two
16971 operands.
3f36bac2 16972
997704f1
RH
169732009-07-01 Richard Henderson <rth@redhat.com>
16974
16975 PR bootstrap/40347
16976 * function.c (reposition_prologue_and_epilogue_notes): If epilogue
16977 contained no insns, reposition note before last insn.
16978
9f2af3ce
RH
169792009-07-01 Richard Henderson <rth@redhat.com>
16980
16981 PR debug/40431
16982 * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
16983 DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
16984
d66a97e2
MM
169852009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
16986
16987 PR bootstrap/40558
16988 * config/rs6000/rs6000.c (print_operand): Undo change that breaks
16989 darwin9 for printing reg addresses with %y.
16990
479b1013
AN
169912009-07-01 Adam Nemet <anemet@caviumnetworks.com>
16992
16993 * combine.c (force_to_mode): Handle TRUNCATE. Factor out
16994 truncation from operands in binary operations.
16995
c600a155
AN
169962009-07-01 Adam Nemet <anemet@caviumnetworks.com>
16997
16998 Revert:
16999 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
17000 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
17001 subreg of op0 to the original op0.
17002
17003 * expmed.c (store_bit_field_1): Use a temporary as the destination
17004 instead of a paradoxical subreg when we need to truncate the result.
17005
a12e9a5f
DD
170062009-07-01 DJ Delorie <dj@redhat.com>
17007
5071eab7
UB
17008 * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
17009 names to VLIW variants.
a12e9a5f
DD
17010 (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
17011 * config/mep/intrinsics.md: Regenerate.
17012 * config/mep/intrinsics.h: Regenerate.
17013 * config/mep/mep-intrin.h: Regenerate.
17014
2a5bd62a
JJ
170152009-07-01 Jakub Jelinek <jakub@redhat.com>
17016
17017 PR debug/40462
17018 * jump.c (returnjump_p): Revert last patch.
17019 * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
17020
3232e9d8
JDA
170212009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17022
4aa7f896
JDA
17023 PR target/40575
17024 * pa.md (casesi32p): Use jump table label to determine the offset
17025 of the jump table.
17026 (casesi64p): Likewise.
17027
5071eab7
UB
17028 * pa.c (forward_branch_p): Return bool type. Use instruction
17029 addresses when available. Assert that INSN has a jump label.
3232e9d8
JDA
17030 (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
17031 have a jump label.
17032
14c41b9b
RG
170332009-07-01 Richard Guenther <rguenther@suse.de>
17034
17035 PR tree-optimization/19831
17036 * tree-ssa-dce.c (propagate_necessity): Calls to functions
5071eab7 17037 that only act as barriers do not make any previous stores necessary.
14c41b9b
RG
17038 * tree-ssa-structalias.c (handle_lhs_call): Delay making
17039 HEAP variables global, do not add a constraint from nonlocal.
17040 (find_func_aliases): Handle escapes through return statements.
17041 (compute_points_to_sets): Make escaped HEAP variables global.
17042
1ed20a40
PB
170432009-07-01 Paolo Bonzini <bonzini@gnu.org>
17044
17045 PR bootstrap/40597
17046 * expmed.c (emit_store_flag): Perform a conversion if necessary,
17047 after reducing a DImode cstore to SImode.
17048
ce3aea35
PB
170492009-07-01 Paolo Bonzini <bonzini@gnu.org>
17050
17051 * expr.c (expand_expr_real_1): Reinstate fallthrough to
17052 TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
17053
1df34d4d
MR
170542009-07-01 Maciej W. Rozycki <macro@linux-mips.org>
17055
17056 * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1.
17057 * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the
17058 to 0.
17059 * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
17060 and umod_optab if TARGET_BSD_DIVMOD.
17061 * config/vax/lib1funcs.asm: New file.
17062 * config/vax/t-linux: New file.
17063 * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
17064
085e05ac
JJ
170652009-06-30 Jakub Jelinek <jakub@redhat.com>
17066
5ccde5a0
JJ
17067 PR c++/40566
17068 * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
17069 to type arguments that have void type.
17070
085e05ac
JJ
17071 PR debug/40573
17072 * dwarf2out.c (gen_formal_parameter_die): Call
17073 equate_decl_number_to_die if node is different from origin.
17074
9fb374d6
AG
170752009-06-30 Anthony Green <green@moxielogic.com>
17076
17077 Clean up moxie port for --enable-build-with-cxx.
17078 * config/moxie/moxie.c (moxie_function_value): First two
17079 parameters are const_tree, not tree.
17080 * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
17081 (REG_CLASS_NAMES): Ditto.
17082 (REGNO_REG_CLASS): Ditto.
17083 * config/moxie/moxie-protos.h (moxie_override_options): Declare.
17084 (moxie_function_value): Fix constyness of arguments.
17085
f82a627c
EB
170862009-06-30 Eric Botcazou <ebotcazou@adacore.com>
17087
17088 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
17089 finalize_size_functions before further processing.
17090 * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
17091 (variable_size): Call self_referential_size on size expressions
17092 that contain a PLACEHOLDER_EXPR.
17093 (size_functions): New static variable.
17094 (copy_self_referential_tree_r): New static function.
17095 (self_referential_size): Likewise.
17096 (finalize_size_functions): New global function.
17097 * tree.c: Include tree-inline.h.
17098 (push_without_duplicates): New static function.
17099 (find_placeholder_in_expr): New global function.
17100 (substitute_in_expr) <tcc_declaration>: Return the replacement object
17101 on equality.
17102 <tcc_expression>: Likewise.
17103 <tcc_vl_exp>: If the replacement object is a constant, try to inline
17104 the call in the expression.
17105 * tree.h (finalize_size_functions): Declare.
17106 (find_placeholder_in_expr): Likewise.
17107 (FIND_PLACEHOLDER_IN_EXPR): New macro.
17108 (substitute_placeholder_in_expr): Update comment.
17109 * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
17110 is true.
17111 (copy_tree_body_r): Likewise.
17112 (copy_tree_body): New static function.
17113 (maybe_inline_call_in_expr): New global function.
17114 * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
17115 (maybe_inline_call_in_expr): Declare.
17116 * Makefile.in (tree.o): Depend on TREE_INLINE_H.
17117 (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
17118 GIMPLE_H.
17119
67635176
RG
171202009-06-30 Richard Guenther <rguenther@suse.de>
17121
17122 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
17123 continue walking.
17124 (propagate_necessity): Do not mark reaching defs of stores
17125 as necessary.
17126
2de58650
JH
171272009-06-30 Jan Hubicka <jh@suse.cz>
17128
17129 * cfgloopanal.c (check_irred): Move into ...
17130 (mark_irreducible_loops): ... here; return true if ireducible
17131 loops was found.
17132 * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
17133 (analyze_function): Try to prove loop finiteness.
17134 * cfgloop.h (mark_irreducible_loops): Update prototype.
17135 * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
17136
46db44cc
BS
171372009-06-30 Basile Starynkevitch <basile@starynkevitch.net>
17138
17139 * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
17140
1825a1f3
IR
171412009-06-30 Ira Rosen <irar@il.ibm.com>
17142
17143 PR tree-optimization/40542
f100a4a8 17144 * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
1825a1f3
IR
17145 types.
17146
71d4d3eb
MJ
171472009-06-30 Martin Jambor <mjambor@suse.cz>
17148
17149 PR tree-optimization/40582
17150 * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
17151 than useless_type_conversion_p.
17152 (generate_subtree_copies): Increment sra_stats.subtree_copies at a
17153 proper place.
17154
f57017cd
MJ
171552009-06-30 Martin Jambor <mjambor@suse.cz>
17156
17157 PR middle-end/40554
17158 * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
17159
42bc61e0
RG
171602009-06-30 Richard Guenther <rguenther@suse.de>
17161
17162 * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
17163 use ao_ref references.
17164 (walk_aliased_vdefs): Likewise.
17165 * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
17166 * tree-ssa-dce.c (struct ref_data): Remove.
17167 (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
17168 (mark_aliased_reaching_defs_necessary): Adjust.
17169 (mark_all_reaching_defs_necessary_1): Likewise.
17170
ef12ae45
PB
171712009-06-30 Paolo Bonzini <bonzini@gnu.org>
17172
17173 PR boostrap/40597
17174 * expmed.c (emit_cstore): New name of emit_store_flag_1.
17175 (emit_store_flag_1): Extract from emit_store_flag, adjust
17176 calls to (what now is) emit_cstore.
17177 (emit_store_flag): Call emit_store_flag_1 and also use it
17178 for what used to be recursive calls.
17179
791b59e3
WG
171802009-06-30 Wei Guozhi <carrot@google.com>
17181
17182 PR/40416
17183 * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
17184 if the target bb post dominates from bb.
17185 * config/i386/i386.c (memory_address_length): Check existence of base
17186 register before using it.
17187
7a61cf6f
NC
171882009-06-30 Nick Clifton <nickc@redhat.com>
17189 DJ Delorie <dj@redhat.com>
17190
17191 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
17192 __FMOVD_ENABLED__ is defined.
17193 * config/sh/sh.h
17194 (TARGET_FMOVD): Provide a default definition.
17195 (MASK_FMOVD): Likewise.
17196 (TARGET_CPU_CPP_BUILTINS): Define
17197 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
17198 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
17199 two fmov instructions depending upon whether TARGET_FMOVD is
17200 enabled.
17201 (split for DF load from memory into register): Also handle
17202 MEMs which consist of REG+DISP addressing.
17203 (split for DF store from register to memory): Likewise.
17204 * config/sh/sh.opt (mfmovd): Remove this switch.
17205 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
17206 * config/sh/sh.c (sh_override_options): Do not automatically
17207 enable TARGET_MOVD for the SH2A when supporting doubles - leave
17208 that to the -mfmovd command line switch.
17209
17210 * config/sh/sh.c (broken_move): Do not restrict fldi test to only
17211 the SH4 and SH4A.
17212 (fldi_ok): Always allow.
17213 * config/sh/sh.md (movsf_ie): Always use single fp_mode.
17214
5a99fe3e
DD
172152009-06-29 DJ Delorie <dj@redhat.com>
17216
17217 * doc/install.texi (mep-x-elf): Correct chip's full name.
17218
ddaa3488
L
172192009-06-29 H.J. Lu <hongjiu.lu@intel.com>
17220
17221 * doc/extend.texi: Fix typo.
17222
bbf531f0
TT
172232009-06-29 Tom Tromey <tromey@redhat.com>
17224
17225 * dwarf2.h: Remove.
17226 * Makefile.in (DWARF2_H): New variable.
17227 (except.o): Use it.
17228 (dwarf2out.o): Likewise.
17229 (dwarf2asm.o): Likewise.
17230 * config/i386/t-i386: Use DWARF2_H.
17231 * except.c: Include elf/dwarf2.h.
17232 * unwind-dw2.c: Include elf/dwarf2.h.
17233 * dwarf2out.c: Include elf/dwarf2.h.
17234 (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
17235 <dtprel>: New field.
17236 (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
17237 (size_of_loc_descr): Likewise.
17238 (output_loc_operands_raw): Likewise.
17239 (output_loc_operands): Handle new dtprel field.
17240 (loc_checksum): Update.
17241 (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
17242 * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
17243 * unwind-dw2-fde.c: Include elf/dwarf2.h.
17244 * dwarf2asm.c: Include elf/dwarf2.h.
17245 * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
17246 * config/mmix/mmix.c: Include elf/dwarf2.h.
17247 * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
17248 * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
17249 * config/sh/sh.c: Include elf/dwarf2.h.
17250 * config/i386/i386.c: Include elf/dwarf2.h.
17251
e2491744
DD
172522009-06-29 DJ Delorie <dj@redhat.com>
17253
bae38135
DD
17254 * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
17255
e2491744
DD
17256 * doc/extend.texi: Add MeP attributes and pragmas.
17257 * doc/invoke.text: Add MeP Options.
17258 * doc/contrib.texi: Add MeP contribution.
17259 * doc/md.texi: Add MeP constraints.
17260 * doc/install.texi: Add MeP target.
17261
b52b1749
AS
172622009-06-30 Anatoly Sokolov <aesok@post.ru>
17263
17264 * target.h (struct gcc_target): Add frame_pointer_required field.
17265 * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
17266 (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
17267 * ira.c (setup_eliminable_regset): Use frame_pointer_required target
17268 hook.
17269 * reload1.c (update_eliminables): (Ditto.).
17270 * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
17271 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
17272 (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
17273
17274 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
17275
17276 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
17277 * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
17278 (arm_frame_pointer_required): New function.
17279
17280 * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
17281 * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17282 (avr_frame_pointer_required_p): Declare as static.
17283 * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
17284
17285 * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
17286 * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
17287 (bfin_frame_pointer_required): Make as static, change return type
17288 to bool.
17289 * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
17290
17291 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
17292 * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17293 (cris_frame_pointer_required): New function.
f100a4a8 17294
b52b1749
AS
17295 * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
17296
17297 * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
17298 * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17299 (fr30_frame_pointer_required): New function.
f100a4a8 17300
b52b1749
AS
17301 * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
17302 * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
17303 (frv_frame_pointer_required): Make as static, change return type
17304 to bool.
17305 * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
17306
17307 * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
17308 * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17309 (ix86_frame_pointer_required): Make as static, change return type to
17310 bool.
17311 * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
17312
17313 * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
17314 * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17315
17316 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
17317
17318 * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
f100a4a8 17319
b52b1749
AS
17320 * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
17321
17322 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
17323 * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17324 (mips_frame_pointer_required): Make as static.
17325 * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
f100a4a8 17326
b52b1749
AS
17327 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
17328 * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17329 (mmix_frame_pointer_required): Mew function.
17330
17331 * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
17332 * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17333
17334 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
17335
17336 * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
17337
17338 * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
17339
17340 * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
17341 (CAN_ELIMINATE): Redefine.
17342 * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
17343 (sparc_frame_pointer_required): New function.
17344 (sparc_can_eliminate): New function.
17345 * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
17346
17347 * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
17348 * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
17349
17350 * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
17351 * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
17352 (xtensa_frame_pointer_required): Make as static, change return type
17353 to bool.
17354 * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
17355 Remove.
17356
5071eab7 173572009-06-29 Olatunji Ruwase <tjruwase@google.com>
78bf7bd0
OR
17358
17359 * doc/plugins.texi: Document PLUGIN_START_UNIT.
17360 * toplev.c (compile_file): Call PLUGIN_START_UNIT.
17361 * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
17362 * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
17363 (register_callback): Handle PLUGIN_START_UNIT.
17364 (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
17365
96da8066
EB
173662009-06-29 Eric Botcazou <ebotcazou@adacore.com>
17367
17368 * tree.c (process_call_operands): Propagate TREE_READONLY from the
17369 operands.
17370 (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
17371 (build3_stat): Propagate TREE_READONLY for COND_EXPR.
17372
356ecb15
DJ
173732009-06-29 Daniel Jacobowitz <dan@codesourcery.com>
17374
17375 * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
17376 move cost.
17377
897eef7b
UB
173782009-06-29 Uros Bizjak <ubizjak@gmail.com>
17379
17380 * doc/extend.texi (Additional Floating Types): __float128 is also
17381 supported on i386 targets.
17382
74d27244
RG
173832009-06-29 Richard Guenther <rguenther@suse.de>
17384
17385 PR middle-end/14187
17386 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
17387 flag.
17388 (pt_solutions_same_restrict_base): Declare.
17389 * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
17390 flag.
17391 (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
17392 (make_constraint_from, make_copy_constraint): Move earlier.
17393 (make_constraint_from_heapvar): New function.
17394 (make_constraint_from_restrict): Likewise.
17395 (handle_lhs_call): Use it.
17396 (find_func_aliases): Use it to track conversions to restrict
17397 qualified pointers.
17398 (struct fieldoff): Add only_restrict_pointers flag.
17399 (push_fields_onto_fieldstack): Initialize it.
17400 (create_variable_info_for): Track global restrict qualified pointers.
17401 (intra_create_variable_infos): Use make_constraint_from_heapvar.
17402 Track restrict qualified pointer arguments.
17403 (set_uids_in_ptset): Use varinfo is_global_var flag.
17404 (find_what_var_points_to): Set the vars_contains_restrict flag.
17405 Always create the points-to solution for sets including restrict tags.
17406 (pt_solutions_same_restrict_base): New function.
17407 * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
17408 qualified pointers use pt_solutions_same_restrict_base as
17409 additional source for disambiguation.
17410
5b21f0f3
RG
174112009-06-29 Richard Guenther <rguenther@suse.de>
17412
17413 PR middle-end/38212
17414 * alias.c (find_base_decl): Remove.
17415 (get_deref_alias_set_1): Remove restrict handling.
17416 * c-common.c (c_apply_type_quals_to_decl): Do not set
17417 DECL_POINTER_ALIAS_SET.
17418 * gimplify.c (find_single_pointer_decl_1): Remove.
17419 (find_single_pointer_decl): Likewise.
17420 (internal_get_tmp_var): Remove restrict handling.
17421 (gimple_regimplify_operands): Likewise.
17422 * omp-low.c (expand_omp_atomic_pipeline): Do not set
17423 DECL_POINTER_ALIAS_SET. Use ref-all pointers.
17424 * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
17425 * tree.c (restrict_base_for_decl): Remove.
17426 (init_ttree): Do not allocate it.
17427 (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set
17428 LABEL_DECL_UID for label decls.
17429 (copy_node_stat): Do not copy restrict information.
17430 (decl_restrict_base_lookup): Remove.
17431 (decl_restrict_base_insert): Likewise.
17432 (print_restrict_base_statistics): Likewise.
17433 (dump_tree_statistics): Do not call print_restrict_base_statistics.
17434 * tree.h (DECL_POINTER_ALIAS_SET): Remove.
17435 (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
17436 (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
17437 (LABEL_DECL_UID): Adjust.
17438 (DECL_BASED_ON_RESTRICT_P): Remove.
17439 (DECL_GET_RESTRICT_BASE): Likewise.
17440 (SET_DECL_RESTRICT_BASE): Likewise.
17441 (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
17442
17443 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
17444 instead of DECL_POINTER_ALIAS_SET.
17445 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
17446 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
17447 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
17448
09a782eb
RG
174492009-06-29 Richard Guenther <rguenther@suse.de>
17450
17451 PR tree-optimization/40579
17452 * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
17453 the IL to simplify has constants that overflowed.
17454
1e9ae5ab
UB
174552009-06-28 Uros Bizjak <ubizjak@gmail.com>
17456
17457 PR tree-optimization/40550
17458 * tree-vect-generic.c (expand_vector_operations_1): Compute in
17459 vector_compute_type only when the size of vector_compute_type is
17460 less than the size of type.
17461
c703e618
EB
174622009-06-28 Eric Botcazou <ebotcazou@adacore.com>
17463
17464 * fold-const.c (contains_label_1): Fix comments.
17465 (contains_label_p): Do not walk trees multiple time.
17466
0948ccb2
PB
174672009-06-28 Paolo Bonzini <bonzini@gnu.org>
17468
897eef7b
UB
17469 * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
17470 * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
17471 cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
17472 ix86_fp_comparison_operator.
17473 (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
17474 *fp_jcc_2_sse, *fp_jcc_2_387): Delete
17475 (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
17476 *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
17477 !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
17478 to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
17479 (related splits): Change predicate to ix86_fp_comparison_operator.
17480 * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
17481 instead of ix86_fp_comparison_codes.
17482 (ix86_trivial_fp_comparison_operator,
17483 ix86_fp_comparison_operator): New.
17484 * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
17485 (ix86_expand_compare): Eliminate last two parameters.
17486 (ix86_fp_jump_nontrivial_p): Kill.
17487 * config/i386/i386.c (put_condition_code): Eliminate call to
17488 ix86_fp_comparison_codes and subsequent assertion.
17489 (ix86_fp_comparison_codes): Eliminate.
17490 (ix86_fp_swap_condition): New.
17491 (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
17492 ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
17493 into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
17494 (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
17495 and ix86_fp_swap_condition.
17496 (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
17497 Use ix86_fp_comparison_strategy.
17498 (ix86_expand_compare): Likewise. Eliminate last two arguments.
17499 (ix86_fp_jump_nontrivial_p): Eliminate.
17500 (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust
17501 call to ix86_expand_compare.
17502 (ix86_split_fp_branch, ix86_expand_setcc,
17503 ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
17504 ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
0948ccb2 17505
accbd151
PB
175062009-06-28 Paolo Bonzini <bonzini@gnu.org>
17507
897eef7b
UB
17508 * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
17509 related to jump_clobbers.
17510 * config/arm/arm.md (conds): Remove jump_clob case.
17511 (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
17512 splits): Change comparison_operator to arm_comparison_operator.
17513 (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
17514 Eliminate.
accbd151 17515
45475a3f
PB
175162009-06-28 Paolo Bonzini <bonzini@gnu.org>
17517
897eef7b
UB
17518 * dojump.c (do_compare_rtx_and_jump): Try swapping the
17519 condition for floating point modes.
17520 * expmed.c (emit_store_flag_1): Move here a bigger part
17521 of emit_store_flag.
17522 (emit_store_flag): Try swapping the condition for floating point
17523 modes.
17524 * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
45475a3f 17525
495499da
PB
175262009-06-28 Paolo Bonzini <bonzini@gnu.org>
17527
897eef7b
UB
17528 * expr.c (expand_expr_real_1): Just use do_store_flag.
17529 (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use
17530 emit_store_flag_force.
17531 * expmed.c (emit_store_flag_force): Copy here trick
17532 previously in expand_expr_real_1. Try reversing the comparison.
17533 (emit_store_flag_1): Work if target is NULL.
17534 (emit_store_flag): Work if target is NULL, using the result mode
17535 from the comparison. Use split_comparison, restructure final part
17536 to simplify conditionals.
495499da 17537
337e5d98
PB
175382009-06-28 Paolo Bonzini <bonzini@gnu.org>
17539
897eef7b
UB
17540 * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
17541 * dojump.c (do_jump): Change handling of floating-point
17542 ops to use just do_compare_and_jump.
17543 (split_comparison): New.
17544 (do_compare_rtx_and_jump): Add here logic coming previously
17545 in do_jump, using split_comparison.
337e5d98 17546
2ca57608
L
175472009-06-27 H.J. Lu <hongjiu.lu@intel.com>
17548
17549 PR target/40489
17550 * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
17551
8122ccf1
PB
175522009-06-27 Paolo Bonzini <bonzini@gnu.org>
17553
17554 * tree-ssa-alias.c: Fix unintentional commit.
17555
b9cafe60
PB
175562009-06-27 Paolo Bonzini <bonzini@gnu.org>
17557
17558 * passes.c (execute_one_pass): Fix unintentional commit.
17559
4c78c26b
PB
175602009-06-27 Paolo Bonzini <bonzini@gnu.org>
17561
2ca57608
L
17562 * df-problems.c (df_set_seen, df_unset_seen): Delete.
17563 (df_rd_local_compute, df_md_local_compute): Inline them.
4c78c26b 17564
2ca57608
L
17565 (df_md_scratch): New.
17566 (df_md_alloc, df_md_free): Allocate/free it.
17567 (df_md_local_compute): Only include live registers in init.
17568 (df_md_transfer_function): Prune the in-set computed by
17569 the confluence function, and the gen-set too.
4c78c26b
PB
17570
175712009-06-27 Paolo Bonzini <bonzini@gnu.org>
c6741572
PB
17572
17573 PR rtl-optimization/26854
2ca57608
L
17574 * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
17575 * df-problems.c (df_rd_add_problem): Fix comment.
17576 (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
17577 df_md_simulate_artificial_defs_at_top,
17578 df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
17579 df_md_bb_local_compute, df_md_local_compute, df_md_reset,
17580 df_md_transfer_function, df_md_init, df_md_confluence_0,
17581 df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
17582 problem_MD, df_md_add_problem): New.
17583 * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
17584 df_md_get_bb_info): New.
1e9ae5ab 17585 (DF_LAST_PROBLEM_PLUS1): Adjust.
2ca57608
L
17586
17587 * Makefile.in (fwprop.o): Include domwalk.h.
17588 * fwprop.c: Include domwalk.h.
17589 (reg_defs, reg_defs_stack): New.
17590 (bitmap_only_bit_between): Remove.
17591 (process_defs): New.
17592 (process_uses): Use reg_defs and local_md instead of
17593 bitmap_only_bit_between and local_rd.
17594 (single_def_use_enter_block): New, from build_single_def_use_links.
17595 (single_def_use_leave_block): New.
17596 (build_single_def_use_links): Remove code moved to
17597 single_def_use_enter_block, invoke domwalk.
17598 (use_killed_between): Adjust comment.
c6741572 17599
7ff23740
PB
176002009-06-27 Paolo Bonzini <bonzini@gnu.org>
17601
17602 * bitmap.h (bitmap_ior_and_into): New.
17603 * bitmap.c (bitmap_ior_and_into): New.
17604
ccf5c864
PB
176052009-06-27 Paolo Bonzini <bonzini@gnu.org>
17606
2ca57608
L
17607 * domwalk.h (struct dom_walk_data): Remove all callbacks except
17608 before_dom_children_before_stmts and after_dom_children_after_stmts.
f100a4a8 17609 Rename the two remaining callbacks to just before_dom_children and
2ca57608
L
17610 after_dom_children. Remove other GIMPLE statement walking bits.
17611 * domwalk.c (walk_dominator_tree): Remove now unsupported features.
17612 * graphite.c: Do not include domwalk.h.
17613 * tree-into-ssa.c (interesting_blocks): New global.
17614 (struct mark_def_sites_global_data): Remove it and names_to_rename.
17615 (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
17616 rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
17617 now that they're not domwalk callbacks.
17618 (rewrite_initialize_block): Rename to...
17619 (rewrite_enter_block): ... this, place after called functions. Test
17620 interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
17621 (rewrite_finalize_block): Rename to...
17622 (rewrite_leave_block): ... this, place after called functions.
17623 (rewrite_update_init_block): Rename to...
17624 (rewrite_update_enter_block): ... this, place after called functions.
f100a4a8 17625 Test interesting_blocks, call rewrite_update_stmt and
2ca57608
L
17626 rewrite_update_phi_arguments.
17627 (rewrite_update_fini_block): Rename to...
17628 (rewrite_leave_block): ... this, place after called functions.
17629 (rewrite_blocks): Remove last argument, simplify initialization of
17630 walk_data.
17631 (mark_def_sites_initialize_block): Rename to...
17632 (mark_def_sites_block): ... this, call mark_def_sites.
17633 (mark_def_sites_blocks): Remove argument, simplify initialization of
17634 walk_data.
17635 (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
17636 (update_ssa): Likewise.
17637 * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
17638 callback.
17639 (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
17640 (dom_opt_initialize_block): Rename to...
17641 (dom_opt_enter_block): ... this, place after called functions. Walk
17642 statements here, inline propagate_to_outgoing_edges.
17643 (dom_opt_finalize_block): Rename to...
17644 (dom_opt_leave_block): ... this, place after called functions.
17645 * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
17646 domwalk callback.
17647 (dse_enter_block, dse_record_phi): New.
17648 (dse_record_phis): Delete.
17649 (dse_finalize_block): Rename to...
17650 (dse_leave_block): ... this.
17651 (tree_ssa_dse): Simplify initialization of walk_data.
17652 * tree-ssa-loop-im.c (determine_invariantness, move_computations):
17653 Adjust initialization of walk_data.
17654 * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
17655 * tree-ssa-loop-phiopt.c (get_non_trapping):
17656 Adjust initialization of walk_data.
17657 * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
17658 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
17659 it's not a domwalk callback.
17660 (uncprop_initialize_block): Rename to...
17661 (dse_enter_block): ... this, call uncprop_into_successor_phis.
17662 (dse_finalize_block): Rename to...
17663 (dse_leave_block): ... this.
17664 (tree_ssa_uncprop): Simplify initialization of walk_data.
17665 * Makefile.in: Adjust dependencies.
ccf5c864 17666
75d28030
RE
176672009-06-27 Richard Earnshaw <rearnsha@arm.com>
17668
17669 * arm.md (casesi): Fix test for Thumb1.
17670 (thumb1_casesi_internal_pic): Likewise.
17671 (thumb1_casesi_dispatch): Likewise.
17672
9833720d
DG
176732009-06-26 Daniel Gutson <dgutson@codesourcery.com>
17674
17675 * config/arm/arm-cores.def: Added core cortex-m0.
17676 * config/arm/arm-tune.md: Regenerated.
17677 * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
17678
bb7681bf
DD
176792009-06-26 DJ Delorie <dj@redhat.com>
17680
17681 * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
17682
17683 * config/mep/mep.c (mep_bundle_insns): Account for the fact that
17684 the scheduler doesn't tag jump insns.
17685
a35120a3
L
176862009-06-26 H.J. Lu <hongjiu.lu@intel.com>
17687
17688 * c-decl.c (merge_decls): Re-indent.
17689
4b6e55df
JJ
176902009-06-26 Janis Johnson <janis187@us.ibm.com>
17691
17692 PR c/39902
17693 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
17694 Special-case decimal float constants.
17695
27dbd3ac
RH
176962009-06-26 Richard Henderson <rth@redhat.com>
17697
17698 * function.h (struct function): Add cannot_be_copied_reason,
17699 and cannot_be_copied_set.
17700 * tree-inline.c (has_label_address_in_static_1): Rename from
17701 inline_forbidden_p_2; don't set inline_forbidden_reason here.
17702 (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
17703 don't set inline_forbidden_reason.
17704 (copy_forbidden): New function, split out of inline_forbidden_p.
17705 (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
17706 (inline_forbidden_p): Use copy_forbidden.
17707 (tree_versionable_function_p): Likewise.
17708 (inlinable_function_p): Merge into tree_inlinable_function_p.
17709 (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
17710 * ipa-cp.c (ipcp_versionable_function_p): New function.
17711 (ipcp_cloning_candidate_p): Use it.
17712 (ipcp_node_modifiable_p): Likewise.
17713
efb303b1
OR
177142009-06-26 Olatunji Ruwase <tjruwase@google.com>
17715
17716 * builtins.c (expand_builtin_alloca): Handle builtin alloca
17717 that is marked not to be inlined. Remove flag_mudflap use.
17718 * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
17719 (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
17720
947e21c1
SE
177212009-06-26 Steve Ellcey <sje@cup.hp.com>
17722
17723 PR bootstrap/40338
17724 * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
17725 * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
17726
bae4cf87
KT
177272009-06-26 Kai Tietz <kai.tietz@onevision.com>
17728
17729 * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
17730 shared libgcc.
17731 (__mingwthr_remove_key_dtor): Likewise.
17732
46aaa417
RG
177332009-06-26 Richard Guenther <rguenther@suse.de>
17734
1e9ae5ab 17735 * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
46aaa417 17736
b3c54c8f
SB
177372009-06-26 Steven Bosscher <steven@gcc.gnu.org>
17738
17739 PR middle-end/40525
17740 * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
17741 try the non-cond_exec path also.
17742
f5e66865
JDA
177432009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17744
17745 PR target/40468
17746 * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
17747 (output_cbranch): Use new functions.
17748 (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
17749 Likewise.
17750
8beb65e3
MM
177512009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
17752 Pat Haugen <pthaugen@us.ibm.com>
17753 Revital Eres <ERES@il.ibm.com>
17754
d66a97e2
MM
17755 * config/rs6000/rs6000.c (print_operand): Correct lossage message
17756 for %c error. Add %x support to print VSX registers as a unified
17757 register set, instead of separate float and altivec registers.
17758 Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
17759 %y case, and add support for VSX pre-modify addresses.
17760 (output_toc): Add assert for CONST containing an integer constant
17761 in the PLUS case.
17762 (rs6000_adjust_cost): Add POWER7 support.
17763 (insn_must_be_first_in_group): Ditto.
17764 (insn_must_be_last_in_group): Ditto.
17765 (rs6000_emit_popcount): Ditto.
17766 (rs6000_vector_mode_supported_p): Ditto.
17767
8beb65e3
MM
17768 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
17769 Change some of the functions called by macros to being called
17770 through a pointer, so debug functions can be inserted if
f100a4a8 17771 -mdebug=addr or -mdebug=cost.
8beb65e3
MM
17772 (rs6000_preferred_reload_class_ptr): Ditto.
17773 (rs6000_secondary_reload_class_ptr): Ditto.
17774 (rs6000_secondary_memory_needed_ptr): Ditto.
17775 (rs6000_cannot_change_mode_class_ptr): Ditto.
17776 (rs6000_secondary_reload_inner): Ditto.
17777 (rs6000_legitimize_reload_address): Ditto.
17778 (rs6000_legitimize_reload_address_ptr): Ditto.
17779 (rs6000_mode_dependent_address): Ditto.
17780 (rs6000_mode_dependent_address_ptr): Ditto.
17781
17782 * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
17783 function to return true if the mode allows reg + integer
17784 addresses.
17785 (virtual_stack_registers_memory_p): New function to return true if
17786 the address refers to a virtual stack register.
17787 (rs6000_legitimate_offset_address_p): Move code to say whether a
17788 mode supports reg+int addressing to reg_offset_addressing_ok_p and
17789 call it.
17790 (rs6000_legitimate_address_p): Add checks for modes that only can
17791 do reg+reg addressing. Start adding VSX support.
17792 (rs6000_legitimize_reload_address): Ditto.
17793 (rs6000_legitimize_address): Ditto.
17794 (rs6000_debug_legitimate_address_p): New debug functions for
17795 -mdebug=addr and -mdebug=cost.
17796 (rs6000_debug_rtx_costs): Ditto.
17797 (rs6000_debug_address_costs): Ditto.
17798 (rs6000_debug_adjust_cost): Ditto.
17799 (rs6000_debug_legitimize_address): Ditto.
17800 (rs6000_legitimize_reload_address_ptr): Point to call normal
17801 function or debug function. Make functions called via pointer
17802 static.
17803 (rs6000_mode_dependent_address_ptr): Ditto.
17804 (rs6000_secondary_reload_class_ptr): Ditto.
17805 (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
17806 (rs6000_emit_move): Add -mdebug=addr support. Change an abort
17807 into a friendlier error.
17808 (rs6000_init_builtins): Add initial VSX support.
17809 (rs6000_adjust_cost): Fix some spacing issues.
17810
17811 * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
17812 (REG_CLASS_NAMES): Ditto.
17813 (REG_CLASS_CONTENTS): Ditto.
17814 (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
17815 pointer, to add -mdebug=addr support.
17816 (CANNOT_CHANGE_MODE_CLASS): Ditto.
17817 (SECONDARY_RELOAD_CLASS): Call through a pointer to add
17818 -mdebug=addr support.
17819 (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
17820 (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
17821 (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
17822
17823 * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
17824 16-bit values.
17825 (bswapsi*): Set attribute types for load/store. Add combiner
17826 patterns to eliminate zero extend on 64-bit.
17827 (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
17828 stdbrx if the hardware supports those instructions.
17829
96be7a11
ILT
178302009-06-25 Ian Lance Taylor <iant@google.com>
17831
17832 * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
17833 (Link Options): Document -static-libstdc++.
17834
777a3a6a
AP
178352009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
17836
17837 PR target/38731
17838 * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
17839 DATA_ALIGNMENT instead.
17840
1cb367ae
RG
178412009-06-25 Richard Guenther <rguenther@suse.de>
17842
17843 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
17844 indirect references against the callused/escaped solutions.
17845 (call_may_clobber_ref_p_1): Likewise.
17846
fac52fdd
MJ
178472009-06-25 Martin Jambor <mjambor@suse.cz>
17848
17849 PR tree-optimization/40493
17850 * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
17851 (enum unscalarized_data_handling): New type.
17852 (handle_unscalarized_data_in_subtree): Return what has been done.
17853 (load_assign_lhs_subreplacements): Handle left flushes differently.
17854 (sra_modify_assign): Use unscalarized_data_handling, simplified
17855 condition determining whether to remove the statement.
17856
3cb71167 178572009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
c8aca64f
EB
17858
17859 * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
17860 excerpt - @ should be doubled for texinfo.
3cb71167 17861
5a82ecd9
ILT
178622009-06-24 Ian Lance Taylor <iant@google.com>
17863
17864 * config/arc/arc.c: Include "df.h".
17865 (arc_attribute_table): Make static. Move higher in file.
17866 (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
17867 (output_shift): Initialize n later to avoid warning.
17868 * config/arm/arm.c (arm_attribute_table): Make static. Move
17869 higher in file.
17870 * config/avr/avr.c (avr_attribute_table): Make static. Move
17871 higher in file.
17872 (reg_class_tab): Change array type from int to enum reg_class.
17873 (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
17874 LABEL_REF.
17875 (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
17876 (lshrhi3_out): Likewise.
17877 (class_likely_spilled_p): Change return type to bool.
17878 (avr_rtx_costs): Use local code variable with enum type.
17879 * config/avr/avr.md (movmemhi): Use add_reg_note.
17880 (andhi3, andsi3): Don't use AS2 with "and".
17881 (iorhi3, iorsi3): Don't use AS2 with "or".
1e9ae5ab 17882 * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
5a82ecd9
ILT
17883 * config/crx/crx.c: Include "df.h".
17884 (crx_attribute_table): Make static.
17885 * config/m32r/m32r.c: Include "df.h".
17886 (m32r_attribute_table): Make static. Move higher in file.
17887 (pop): Use add_reg_note.
17888 (block_move_call): Change 0 to LCT_NORMAL in function call.
17889 * config/m32r/m32r.md (movsi_insn): Remove unused local value.
17890 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
17891 * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
17892 declare, not just when TREE_CODE is defined.
17893 * config/m68hc11/m68hc11.c: Include "expr.h".
17894 (m68hc11_attribute_table): Make static. Move higher in file.
17895 (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
17896 function call.
17897 (m68hc11_register_indirect_p): Likewise.
17898 (m68hc11_function_arg_padding): Change return type to enum
17899 direction.
17900 (emit_move_after_reload): Use add_reg_note.
17901 (m68hc11_emit_logical): Change code parameter to enum rtx_code.
17902 (m68hc11_split_logical): Likewise.
17903 (m68hc11_rtx_costs): Add local code_and outer_code variables with
17904 enum type.
17905 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
17906 to VOIDmode in function call.
17907 * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
17908 tree is defined.
17909 (m68hc11_split_logical): Update declaration.
17910 (m68hc11_function_arg_padding): Update declaration.
17911 * config/mcore/mcore.c (regno_reg_class): Change form array of int
17912 to array of enum reg_class.
17913 (mcore_attribute_table): Make static. Move higher in file.
17914 (mcore_rtx_costs): Add cast to enum type.
17915 * config/mcore/mcore.h (regno_reg_class): Update declaration.
17916 (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
17917 * config/sh/sh.c (sh_attribute_table): Make static. Move higher
17918 in file.
17919 * config/sh/predicates.md (trapping_target_operand): Rename and to
17920 and_expr.
17921 * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
17922 higher in file.
17923 * config/spu/spu.c (spu_attribute_table): Make static. Move
17924 higher in file.
17925 * config/v850/v850.c (v850_attribute_table): Make static. Move
17926 higher in file.
17927 (v850_rtx_costs): Use local code with enum type.
17928 (expand_epilogue): Add cast.
17929 * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
17930
b4589acc
TY
179312009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
17932
17933 PR target/40515
17934 * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
17935 -m2a-single-only and -m2a-nofpu.
f100a4a8 17936 * config/sh/sh.opt: Document m2a generates FPU code.
b4589acc 17937
3be639f7
AS
179382009-06-24 Anatoly Sokolov <aesok@post.ru>
17939
17940 * defaults.h (CAN_ELIMINATE): Provide default.
17941 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
17942 * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
17943 * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
17944 * config/spu/spu.h (CAN_ELIMINATE): Delete.
17945 * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
17946 * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
17947 * config/cris/cris.h (CAN_ELIMINATE): Delete.
17948 * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
17949 * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
17950 * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
17951
b6402fc3
DD
179522009-06-24 DJ Delorie <dj@redhat.com>
17953
17954 * mep-ext-cop.cpu: Fix copyright notice.
17955 * mep-default: Fix copyright notice.
17956 * mep-core: Fix copyright notice.
17957 * mep: Fix copyright notice.
17958 * mep-ivc2: Fix copyright notice.
17959 * mep-c5: Fix copyright notice.
17960
ead1eb1d
DC
179612009-06-24 Denis Chertykov <chertykov@gmail.com>
17962
f100a4a8 17963 * doc/contrib.texi (Contributors):
ead1eb1d 17964
fb6234e0 179652009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
f100a4a8 17966
fb6234e0
AK
17967 PR middle-end/40501
17968 * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
17969 src and dst operands if necessary.
17970
7acf4da6
DD
179712009-06-23 DJ Delorie <dj@redhat.com>
17972
17973 Add MeP port.
17974 * config.gcc: Add mep support.
17975 * recog.c: Resurrect validate_replace_rtx_subexp().
17976 * recog.h: Likewise.
17977 * config/mep/: Add new port:
17978 * config/mep/constraints.md: New file.
17979 * config/mep/default.h: New file.
17980 * config/mep/intrinsics.h: New file.
17981 * config/mep/intrinsics.md: New file.
17982 * config/mep/ivc2-template.h: New file.
17983 * config/mep/mep-c5.cpu: New file.
17984 * config/mep/mep-core.cpu: New file.
17985 * config/mep/mep-default.cpu: New file.
17986 * config/mep/mep-ext-cop.cpu: New file.
17987 * config/mep/mep-intrin.h: New file.
17988 * config/mep/mep-ivc2.cpu: New file.
17989 * config/mep/mep-lib1.asm: New file.
17990 * config/mep/mep-lib2.c: New file.
17991 * config/mep/mep-pragma.c: New file.
17992 * config/mep/mep-protos.h: New file.
17993 * config/mep/mep-tramp.c: New file.
17994 * config/mep/mep.c: New file.
17995 * config/mep/mep.cpu: New file.
17996 * config/mep/mep.h: New file.
17997 * config/mep/mep.md: New file.
17998 * config/mep/mep.opt: New file.
17999 * config/mep/predicates.md: New file.
18000 * config/mep/t-mep: New file.
18001
00020c16
ILT
180022009-06-23 Ian Lance Taylor <iant@google.com>
18003
18004 * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
18005 from loose_warn into c_loose_warn and from strict_warn into
18006 c_strict_warn. Set and substitute warn_cxxflags. Check for
18007 --enable-build-with-cxx. Set and substitute
18008 ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
18009 * Makefile.in (CXXFLAGS): New variable.
18010 (C_LOOSE_WARN, C_STRICT_WARN): New variables.
18011 (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
18012 the default is the same as $(STRICT_WARN).
18013 (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
18014 (CXX): New variable.
18015 (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
18016 (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
18017 (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
18018 (HOST_LIBS): New variable.
18019 (GCC_CFLAGS): Add $(C_LOOSE_WARN).
18020 (ALL_CXXFLAGS): New variable.
18021 (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
18022 * doc/install.texi (Configuration): Document
18023 --enable-build-with-cxx, --with-stage1-ldflags,
18024 --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
18025 * configure: Rebuild.
18026
2d8b752f 180272009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9df5bfe4 18028
2d8b752f
EB
18029 * config/arm/arm.c (arm_override_options): Fix braces and formatting
18030 from previous commit.
9df5bfe4 18031
73267076
ILT
180322009-06-23 Ian Lance Taylor <iant@google.com>
18033
18034 * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
18035
9a476c9c
ILT
180362009-06-23 Ian Lance Taylor <iant@google.com>
18037
18038 * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
18039 with ATTRIBUTE_UNUSED.
18040
cacf1ca8
MM
180412009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
18042 Pat Haugen <pthaugen@us.ibm.com>
2d8b752f 18043 Revital Eres <eres@il.ibm.com>
cacf1ca8
MM
18044
18045 * config.in (HAVE_AS_POPCNTD): Add default definition.
18046 (HAVE_AS_LWSYNC): Ditto.
18047
18048 * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
18049 release number.
18050 (gcc_cv_as_powerpc_cmpb): Ditto.
18051 (gcc_cv_as_powerpc_dfp): Ditto.
18052 (gcc_cv_as_powerpc_vsx): Ditto.
18053 (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
18054 supporting the popcntd/lwsync instructions.
18055 (gcc_cv_as_powerpc_lwsync): Ditto.
18056 * configure: Regenerate.
18057
18058 * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
18059 -mcpu=native and -mcpu=power7.
18060 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
18061
18062 * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
18063 a variable instead of a mask to reduce the number of mask bits.
18064 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
18065 (-mbit-word): Ditto.
18066 (-mregnames): Ditto.
18067 * config/rs6000/rs6000.opt (-mupdate): Ditto.
18068 (-mfused-madd): Ditto.
18069
18070 * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
18071 2.06 instructions.
18072 (-mvsx): New switch for VSX instructions.
18073 (-misel): Move from a variable to a mask to allow it to be set by
18074 -mcpu=.
18075
18076 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
18077 function declaration to an array declaration.
18078 (rs6000_hard_regno_nregs): New external array declaration.
18079
18080 * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
18081 files included by rs6000.md.
18082
18083 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
18084 SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
18085
18086 * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
18087 a target mask.
18088 (rs6000_debug_reg): New -mdebug= variables.
18089 (rs6000_debug_addr): Ditto.
18090 (rs6000_debug_cost): Ditto.
18091 (rs6000_pmode): New variable to hold Pmode.
18092 (rs6000_pointer_size): New variable to hold POINTER_SIZE.
18093 (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
18094 calculated at compiler start.
18095 (rs6000_hard_regno_nregs): Change function to an array which holds
18096 HARD_REGNO_NREGS calculated at compiler start.
18097 (rs6000_explicit_options): Delete isel field.
18098 (rs6000_vector_unit): New array to hold which vector unit
18099 supports arithmetic options for a given type.
18100 (rs6000_vector_mem): New array to hold which vector unit supports
18101 memory reference operations for a given type.
18102 (rs6000_vector_align): New array to given the alignment of each
18103 vector type.
18104 (power7_cost): New basic costs for power7.
18105 (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
18106 (rs6000_hard_regno_nregs_internal): New function, moved from
18107 HARD_REGNO_NREGS, to calculate the number of registers each hard
18108 register takes for each type.
18109 (rs6000_debug_reg_print): New function for -mdebug=reg support.
1e9ae5ab 18110 (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
cacf1ca8
MM
18111 (+rs6000_init_hard_regno_mode_ok): New function, move calculation
18112 of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
18113 unit information here so it is calculated once at compiler startup
18114 time.
18115 (rs6000_override_options): Make -misel a target mask. Add more
18116 power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
18117 VSX support. Add support for -mdebug=reg, -mdebug=addr, and
18118 -mdebug=cost.
18119 (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
18120 (rs6000_handle_option): Move -misel from variable to target mask.
18121 (rs6000_builtin_mask_for_load): Add VSX support.
18122 (rs6000_conditional_register_usage): Ditto.
18123 (USE_ALTIVEC_FOR_ARG_P): Ditto.
18124 (function_arg_boundary): Ditto.
18125 (rs6000_expand_builtin): Ditto.
18126 (def_builtin): Make abort message a little friendlier.
18127 (rs6000_emit_int_cmove): Add support for 64-bit isel.
18128
18129 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
18130 assembler support the popcntd instruction instead of a vsx
18131 instruction to enable power7 support.
18132 (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
18133 (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
18134 option to the assembler if -mcpu=native.
18135 (ASM_CPU_NATIVE_SPEC): Ditto.
18136 (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
18137 ISA 2.06 features.
18138 (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
18139 the lwsync instruction.
18140 (enum processor_type): Add PROCESSOR_POWER7.
18141 (rs6000_debug_reg): New -mdebug= options.
18142 (rs6000_debug_addr): Ditto.
18143 (rs6000_debug_cost): Ditto.
18144 (rs6000_isel): Delete.
18145 (enum rs6000_vector): New enum to say what vector unit we have.
18146 (VECTOR_UNIT_*): New macros to say which vector unit has
18147 arithmetic operations for a given type.
18148 (VECTOR_MEM_*): New macros to say which vector unit has memory
18149 operations for a given type.
18150 (TARGET_LDBRX): Whether the machine supports the ldbrx
18151 instruction.
18152 (TARGET_ISEL): Delete, -misel moved to be a mask.
18153 (TARGET_ISEL64): New macro for 64-bit isel support.
18154 (UNITS_PER_VSX_WORD): New macro.
18155 (POINTER_SIZE): Move to be an external variable, rather than
18156 calculating whether we are generating 32 ot 64-bit code.
18157 (Pmode): Ditto.
18158 (STACK_BOUNDARY): Add VSX support.
18159 (LOCAL_ALIGNMENT): Ditto.
18160 (SLOW_UNALIGNED_ACCESS): Ditto.
18161 (VSX_REGNO_P): New macro for VSX support.
18162 (VFLOAT_REGNO_P): Ditto.
18163 (VINT_REGNO_P): Ditto.
18164 (VLOGICAL_REGNO_P): Ditto.
18165 (VSX_VECTOR_MODE): Ditto.
18166 (VSX_SCALAR_MODE): Ditto.
18167 (VSX_MODE): Ditto.
18168 (VSX_MOVE_MODE): Ditto.
18169 (VSX_REG_CLASS_P): Ditto.
18170 (HARD_REGNO_NREGS): Instead of calling a function, use an array
18171 lookup.
18172 (UNITS_PER_SIMD_WORD): Add VSX support.
18173 (MODES_TIEABLE_P): Ditto.
18174 (STARTING_FRAME_OFFSET): Ditto.
18175 (STACK_DYNAMIC_OFFSET): Ditto.
18176 (EPILOGUE_USES): Ditto.
18177 (REGNO_REG_CLASS): Move to array lookup.
18178 (CLASS_MAX_NREGS): Ditto.
18179 (rs6000_vector_reg_class): Add declaration.
18180 (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
18181 overlap with the floating point and Altivec registers.
18182
18183 * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
18184
18185 * config/rs6000/driver-rs6000.c (asm_names): New static array to
18186 give the appropriate asm switches if -mcpu=native.
18187 (host_detect_local_cpu): Add support for "asm".
18188 (host_detect_local_cpu): Follow GNU code guidelines for name.
18189
18190 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
18191 -mbit-word to a variable instead of being a target mask.
18192
18193 * config/rs6000/sync.md (lwsync): If the assembler supports it,
18194 emit the lwsync instruction instead of emitting the instruction as
18195 an integer constant.
18196
18197 * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
18198 fixuns_trundfsi2, move expander into rs6000.md.
18199
18200 * config/rs6000/rs6000.md (cpu): Add power7.
18201 (sel, *ptrsize): New mode attributes for 32/64-bit isel.
18202 (logical predicate patterns): Change the single instruction
18203 primitives that set CR0 to be fast_compare instead of compare.
18204 (norsi*): Ditto.
18205 (popcntwsi2): Add support for ISA 2.06 popcount instructions.
18206 (popcntddi2): Ditto.
18207 (popcount<mode>): Ditto.
18208 (floating multiply/add insns): Name the floating point
18209 multiply/add insns.
18210 (isel_signed_<mode>): Add support for -misel on 64-bit systems.
18211 (isel_unsigned_<mode>): Ditto.
18212 (fixuns_trundfsi2): Move expander here from spe.md.
18213 (smindi3): Define if we have -misel on 64-bit systems.
18214 (smaxdi3): Ditto.
18215 (umindi3): Ditto.
18216 (umaxdi3): Ditto.
18217
59ab92d2
AS
182182009-06-23 Anatoly Sokolov <aesok@post.ru>
18219
18220 * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
18221 extra_objs.
18222 * config/avr/avr.c (avr_current_device): New variable.
18223 (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
18224 (avr_arch, mcu_type_s): Move to avr.h.
18225 * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
18226 default_data_section_start fields.
18227 (avr_arch): Moved from avr.c.
18228 (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
18229 library_name fields.
18230 (avr_current_device, avr_mcu_types, avr_arch_types,
18231 avr_device_to_arch, avr_device_to_data_start,
18232 avr_device_to_startfiles, avr_device_to_devicelib): Declare.
18233 (EXTRA_SPEC_FUNCTIONS): Define.
18234 (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
18235 options mapping. Use device_to_arch and device_to_data_start insted.
18236 (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
18237 (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
18238 * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
18239 * config/avr/driver-avr.c: New file.
18240 * config/avr/avr-devices.c: New file.
18241
8593e0b6
JJ
182422009-06-23 Jakub Jelinek <jakub@redhat.com>
18243
7eb3f1f7
JJ
18244 * var-tracking.c (unshare_variable): Force initialized to
18245 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
18246 (set_variable_part): Likewise.
18247 (struct variable_union_info): Remove pos_src field.
18248 (vui_vec, vui_allocated): New variables.
18249 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
18250 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
18251 == 1 use a simpler sorting algorithm. Compute pos field right
18252 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
18253 Avoid quadratic comparison if !flag_var_tracking_uninit.
18254 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
f100a4a8 18255 unshare_variable unconditionally.
7eb3f1f7
JJ
18256 (dataflow_set_different_2): Removed.
18257 (dataflow_set_different): Don't traverse second hash table.
18258 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
18259 unconditionally to var_reg_set or var_mem_set.
18260 (emit_notes_in_bb): Likewise.
18261 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
18262 unshare_variable.
18263 (emit_note_insn_var_location): Don't set initialized to
18264 VAR_INIT_STATUS_INITIALIZED early.
18265 (vt_finalize): Free vui_vec if needed, clear vui_vec and
18266 vui_allocated.
18267 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
18268
8593e0b6
JJ
18269 * tree-object-size.c (addr_object_size): Instead of checking
18270 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
18271 are no FIELD_DECLs following it.
18272
fef015a8
AK
182732009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
18274
18275 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
18276 order to match bswaps with signed source operands.
18277
b6d83244
RO
182782009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18279
18280 * sdbout.c (sdbout_one_type): Fix braces in switch.
18281
0bbf2ffa
RG
182822009-06-23 Richard Guenther <rguenther@suse.de>
18283
18284 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
18285 member.
18286 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
18287 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
18288 var_callused, callused_tree, var_storedanything, storedanything_tree,
18289 var_integer, integer_tree): Remove global variables.
18290 (new_var_info): Do not pass new id, append the new var to the
18291 global variable vector.
18292 (do_ds_constraint): Use is_global_var member of the variable-info.
18293 (new_scalar_tmp_constraint_exp): Adjust.
18294 (create_function_info_for): Likewise.
18295 (create_variable_info_for): Likewise.
18296 (find_what_var_points_to): Remove dead code.
18297 (init_base_vars): Simplify.
18298 (compute_points_to_sets): Adjust.
18299
28a5fb2e
AN
183002009-06-22 Adam Nemet <anemet@caviumnetworks.com>
18301
18302 * combine.c (try_combine): Dump information about the insns we're
18303 combining.
18304
cfb8805e
AN
183052009-06-22 Adam Nemet <anemet@caviumnetworks.com>
18306
18307 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
18308 check when calling force_to_mode on TRUNCATE's operand.
18309
df4ba119
ILT
183102009-06-22 Ian Lance Taylor <iant@google.com>
18311
897eef7b 18312 * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
df4ba119 18313
c986683b
SB
183142009-06-22 Steven Bosscher <steven@gcc.gnu.org>
18315
18316 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
18317
5c6927bd
RW
183182009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18319
18320 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
18321 override library linkage flags such as -static-libgcc or
18322 -shared-libgcc.
18323
19973be2
MK
183242009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
18325
18326 * config/m68k/m68k-devices.def: Add line for MCF5221x.
18327
7a5d2eb8
ILT
183282009-06-22 Ian Lance Taylor <iant@google.com>
18329
18330 * config/linux.opt: Put mglibc ahead of muclibc.
18331
18332 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
18333 for duplicate decls.
18334
86e3c83a
MK
183352009-06-22 Matthias Klose <doko@ubuntu.com>
18336
18337 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
18338
0a7d7dea
MK
183392009-06-22 Steven Bosscher <steven@gcc.gnu.org>
18340
18341 PR objc/28050
18342 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
18343 instead of NULL if a parser error occurs.
18344
a77264d5
RO
183452009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18346
18347 * dwarf2out.c (dwarf2_debug_hooks): Initialize
18348 non-DWARF2_DEBUGGING_INFO version.
18349
54f549af
KT
183502009-06-22 Kai Tietz <kai.tietz@onevision.com>
18351
34481f28
UB
18352 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
18353 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
18354
18355 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
54f549af
KT
18356 (LIBGCC2_TF_CEXT): Define.
18357 (TF_SIZE): Define.
18358
7cea01df
RR
183592009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18360
18361 PR target/40463
18362 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
18363
3ce14752
RR
183642009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18365
34481f28
UB
18366 * config/arm/arm.c (arm_override_options): Disable
18367 -mcaller-super-interworking and -mcallee-super-interworking.
18368 * doc/invoke.texi (ARM Options): Document this.
3ce14752 18369
d58bc084
NS
183702009-06-22 Nathan Sidwell <nathan@codesourcery.com>
18371
18372 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
18373 * config/arm/constraints.md (j): New constraint for movw operands.
18374 (N): Remove thumb2 meaning.
18375 * config/arm/arm.md (*arm_movw): Delete.
18376 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
18377 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
18378 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
18379
ac6cb60c
MJ
183802009-06-22 Martin Jambor <mjambor@suse.cz>
18381
18382 PR tree-optimization/40492
18383 * tree-sra.c (sra_modify_assign): Pass zero offsets to
18384 build_ref_for_offset.
18385
481683e1
SZ
183862009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
18387
18388 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
18389 JUMP_TABLE_DATA_P predicates where applicable.
18390 * auto-inc-dec.c: Ditto.
18391 * builtins.c: Ditto.
18392 * caller-save.c: Ditto.
18393 * calls.c: Ditto.
18394 * cfgcleanup.c: Ditto.
18395 * cfglayout.c: Ditto.
18396 * cfgrtl.c: Ditto.
18397 * combine.c: Ditto.
18398 * combine-stack-adj.c: Ditto.
18399 * cse.c: Ditto.
18400 * cselib.c: Ditto.
18401 * dbxout.c: Ditto.
18402 * df-scan.c: Ditto.
18403 * dse.c: Ditto.
18404 * dwarf2asm.c: Ditto.
18405 * dwarf2out.c: Ditto.
18406 * emit-rtl.c: Ditto.
18407 * except.c: Ditto.
18408 * explow.c: Ditto.
18409 * expmed.c: Ditto.
18410 * expr.c: Ditto.
18411 * final.c: Ditto.
18412 * function.c: Ditto.
18413 * fwprop.c: Ditto.
18414 * gcse.c: Ditto.
18415 * genpreds.c: Ditto.
18416 * genrecog.c: Ditto.
18417 * ifcvt.c: Ditto.
18418 * ira-costs.c: Ditto.
18419 * ira-lives.c: Ditto.
18420 * jump.c: Ditto.
18421 * loop-iv.c: Ditto.
18422 * lower-subreg.c: Ditto.
18423 * modulo-sched.c: Ditto.
18424 * optabs.c: Ditto.
18425 * postreload.c: Ditto.
18426 * print-rtl.c: Ditto.
18427 * recog.c: Ditto.
18428 * reginfo.c: Ditto.
18429 * regmove.c: Ditto.
18430 * reload1.c: Ditto.
18431 * reload.c: Ditto.
18432 * reorg.c: Ditto.
18433 * rtlanal.c: Ditto.
18434 * rtl.c: Ditto.
18435 * sched-vis.c: Ditto.
18436 * sdbout.c: Ditto.
18437 * sel-sched-ir.c: Ditto.
18438 * simplify-rtx.c: Ditto.
18439 * targhooks.c: Ditto.
18440 * var-tracking.c: Ditto.
18441 * vmsdbgout.c: Ditto.
18442
1407d6cf
MK
184432009-06-22 Matthias Klose <doko@ubuntu.com>
18444
18445 * Makefile.in (install-plugin): Always use DESTDIR.
18446
28326880 184472009-06-22 Olivier Hainque <hainque@adacore.com>
f100a4a8 18448
28326880
OH
18449 * config/pa/pa.c (output_call): Don't optimize post call jumps
18450 into return address adjustments if the call may throw.
18451
907dd0c7
RE
184522009-06-21 Richard Earnshaw <rearnsha@arm.com>
18453
18454 * arm.c (thumb1_output_casesi): New function.
18455 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
18456 optimizing for size or PIC.
18457 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
18458 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
18459 (casesi): Handle Thumb-1 when optimizing for size or PIC.
18460 (thumb1_casesi_internal_pic): New expand rule.
18461 (thumb1_casesi_dispatch): New pattern.
18462 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
18463 thumb-1 mode.
18464 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
18465 in the text seciton when PIC or optimizing for size.
18466 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
18467 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
18468 preservation properties of code.
18469 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
18470 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
18471 (__gnu_thumb1_case_si): New function.
18472 * t-arm (LIB1ASMSRC): Define here.
18473 (LIB1ASMFUNCS): Add some common functions.
18474 * t-arm-elf (LIB1ASMSRC): Delete.
18475 (LIB1ASMFUNCS): Append to existing set.
18476 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
18477 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
18478 * t-symbian (LIB1ASMFUNCS): Likewise.
18479 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
18480 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
18481
2cee1509
RG
184822009-06-21 Richard Guenther <rguenther@suse.de>
18483
18484 PR tree-optimization/38729
18485 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
18486 to loops with a single exit if -fno-expensive-optimizations.
18487
d24686d7
JJ
184882009-06-21 Jakub Jelinek <jakub@redhat.com>
18489
18490 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
18491 (dataflow_set): Change vars type from htab_t to shared_hash.
18492 (shared_hash_pool, empty_shared_hash): New variables.
18493 (vars_clear): Removed.
18494 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
18495 shared_hash_find_slot_unshare, shared_hash_find_slot,
18496 shared_hash_find_slot_noinsert, shared_hash_find): New
18497 static inlines.
18498 (shared_hash_unshare, shared_hash_destroy): New functions.
18499 (unshare_variable): Unshare set->vars if shared, use
18500 shared_hash_htab.
18501 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
18502 (get_init_value, find_src_set_src, dump_dataflow_set,
18503 clobber_variable_part, emit_notes_for_differences): Use
18504 shared_hash_htab.
18505 (dataflow_set_init): Remove second argument, set vars to
18506 empty_shared_hash instead of creating a new htab.
18507 (dataflow_set_clear): Call shared_hash_destroy and set vars
18508 to empty_shared_hash instead of calling vars_clear.
18509 (dataflow_set_copy): Don't call vars_copy, instead just share
18510 the src htab with dst.
18511 (variable_union): Use shared_hash_*, use initially NO_INSERT
18512 lookup if set->vars is shared. Don't keep slot cleared before
18513 calling unshare_variable. Unshare set->vars if needed.
18514 Even ->refcount == 1 vars must be unshared if set->vars is shared
18515 and var needs to be modified.
18516 (variable_canonicalize): New function.
18517 (dataflow_set_union): If dst->vars is empty, just share src->vars
18518 with dst->vars and traverse with variable_canonicalize to canonicalize
18519 and unshare what is needed.
18520 (dataflow_set_different): If old_set and new_set use the same shared
18521 htab, they aren't different. If number of htab elements is different,
18522 htabs are different. Use shared_hash_*.
18523 (dataflow_set_destroy): Call shared_hash_destroy instead of
18524 htab_delete.
18525 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
18526 second argument to dataflow_set_init.
18527 (vt_initialize): Likewise. Initialize shared_hash_pool and
18528 empty_shared_hash, move bb in/out initialization afterwards.
18529 Use variable_htab_free instead of NULL as changed_variables del hook.
18530 (variable_was_changed): Change type of second argument to pointer to
18531 dataflow_set. When inserting var into changed_variables, bump
18532 refcount. Unshare set->vars if set is shared htab and slot needs to
18533 be cleared.
18534 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
18535 lookup if set->vars is shared. Unshare set->vars if needed.
18536 Even ->refcount == 1 vars must be unshared if set->vars is shared
18537 and var needs to be modified. Adjust variable_was_changed caller.
18538 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
18539 vars must be unshared if set->vars is shared and var needs to be
18540 modified. Adjust variable_was_changed caller.
18541 (emit_note_insn_var_location): Don't pool_free var.
18542 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
18543 instead of 1.
18544 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
18545 free_alloc_pool on shared_hash_pool.
18546
525b459f
AG
185472009-06-20 Anthony Green <green@moxielogic.com>
18548
18549 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
18550 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
18551
825be69e
RG
185522009-06-20 Richard Guenther <rguenther@suse.de>
18553
18554 * tree-ssa-structalias.c (find_func_aliases): For memset use
18555 a constraint from NULL if we memset to zero.
18556 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
18557 we explicitly handle that do not read from memory.
18558 (call_may_clobber_ref_p_1): Properly handle builtins that may
18559 set errno.
18560
b14e9388
RG
185612009-06-20 Richard Guenther <rguenther@suse.de>
18562
18563 PR tree-optimization/40495
18564 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
18565 (new_scalar_tmp_constraint_exp): New function.
18566 (process_constraint): Do not create temporary decls.
18567 (process_all_all_constraints): Likewise.
18568 (handle_const_call): Likewise.
18569 (create_function_info_for): Do not set decl.
18570
c885ca89
ILT
185712009-06-19 Ian Lance Taylor <iant@google.com>
18572
18573 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
18574 (rs6000_attribute_table): Make static; move before use.
18575
6569d386
EB
185762009-06-19 Eric Botcazou <ebotcazou@adacore.com>
18577
18578 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
18579 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
18580 Propagate the TREE_READONLY flag without overwriting it.
18581 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
18582 Propagate the TREE_READONLY flag onto the result.
18583 (process_call_operands): Move around. Use correct constant value.
18584
ce41c38b
RR
185852009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18586
18587 PR target/40482
897eef7b 18588 * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
ce41c38b
RR
18589 * config/arm/arm.md: Likewise.
18590
96be7a11 185912009-06-19 Ian Lance Taylor <iant@google.com>
d130ae11
ILT
18592
18593 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
18594 to GIMPLE_ERROR_MARK.
18595
18596 * c-typeck.c (build_conditional_expr): Add op1_original_type and
897eef7b 18597 op2_original_type parameters. Warn about using different enum types.
d130ae11
ILT
18598 * c-parser.c (c_parser_conditional_expression): Pass original
18599 types to build_conditional_expr.
18600 * c-tree.h (build_conditional_expr): Update declaration.
18601
d4aa4f4b
ILT
186022009-06-19 Ian Lance Taylor <iant@google.com>
18603
18604 * config/i386/i386.c (ix86_function_specific_save): Test that
18605 fields match values, rather than testing the values are in a
18606 certain range.
18607
779704e7
RG
186082009-06-19 Richard Guenther <rguenther@suse.de>
18609
18610 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
18611 ADDR_EXPR pointers.
18612 (ptr_derefs_may_alias_p): Likewise.
18613 (ptr_deref_may_alias_ref_p_1): New function.
18614 (ptr_deref_may_alias_ref_p): Likewise.
18615 (ref_maybe_used_by_call_p_1): Handle builtins that are not
18616 covered by looking at the ESCAPED solution.
18617 (call_may_clobber_ref_p_1): Likewise.
18618 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
18619 Handle NULL_TREE offset. Do not produce redundant constraints.
18620 (process_all_all_constraints): New helper function.
18621 (do_structure_copy): Use it.
18622 (handle_lhs_call): Likewise.
18623 (find_func_aliases): Handle some builtins with pointer arguments
18624 and/or return values explicitly.
18625
217655da
ILT
186262009-06-19 Ian Lance Taylor <iant@google.com>
18627
18628 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
18629
50ae5fea
ILT
186302009-06-19 Ian Lance Taylor <iant@google.com>
18631
18632 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
18633
642324bb
ILT
186342009-06-19 Ian Lance Taylor <iant@google.com>
18635
18636 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
18637 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
18638 version.
18639
18640 * c-decl.c (finish_decl): If -Wc++-compat, warn about
18641 uninitialized const.
18642
dc491a25
ILT
186432009-06-19 Ian Lance Taylor <iant@google.com>
18644
18645 * dse.c (struct store_info): Rename bitmap field to bmap. Change
18646 all uses.
18647
18648 * c-decl.c (in_struct, struct_types): Remove.
18649 (struct c_binding): Add in_struct field.
18650 (c_binding_ptr): Define type, along with VEC.
18651 (struct c_struct_parse_info): Define.
18652 (struct_parse_info): New static variable.
18653 (bind): Initialize in_struct field.
18654 (start_struct): Remove enclosing_in_struct and
18655 enclosing_struct_types parameters. Add
18656 enclosing_struct_parse_info parameter. Change all callers. Set
18657 struct_parse_info rather than in_struct and struct_types.
18658 (grokfield): If -Wc++-compat and there is a symbol binding for the
18659 field name, set the in_struct flag and push it on the
18660 struct_parse_info->fields vector.
18661 (warn_cxx_compat_finish_struct): New static function.
18662 (finish_struct): Remove enclosing_in_struct and
18663 enclosing_struct_types parameters. Add
18664 enclosing_struct_parse_info parameter. Change all callers. Don't
18665 set C_TYPE_DEFINED_IN_STRUCT here. Call
18666 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
18667 parameter. Only push on struct_types if warn_cxx_compat.
18668 (finish_enum): Only push on struct_types if warn_cxx_compat.
18669 (declspecs_add_type): Add loc parameter. Change all callers.
18670 Change all error calls to error_at. Pass loc, not input_location,
18671 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
18672 defined in a struct. If -Wc++-compat and parsing a struct, record
18673 that a typedef name was used.
18674 * c-parser.c (c_parser_declspecs): Get location to pass to
18675 declspecs_add_type.
18676 (c_parser_struct_or_union_specifier): Update calls to start_struct
18677 and finish_struct.
18678 * c-tree.h (struct c_struct_parse_info): Declare.
18679 (finish_struct, start_struct): Update declarations.
18680 (declspecs_add_type): Update declaration.
18681
88eeff6f
ILT
186822009-06-19 Ian Lance Taylor <iant@google.com>
18683
18684 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
18685 variable with an anonymous type.
18686
28a876a4
UB
186872009-06-19 Uros Bizjak <ubizjak@gmail.com>
18688
18689 * see.c: Remove for real.
18690
dc6707b8
UB
186912009-06-19 Uros Bizjak <ubizjak@gmail.com>
18692
18693 * optabs.h (enum optab_index): Add new OTI_significand.
18694 (significand_optab): Define corresponding macro.
18695 * optabs.c (init_optabs): Initialize significand_optab.
18696 * genopinit.c (optabs): Implement significand_optab using
18697 significand?f2 patterns.
18698 * builtins.c (expand_builtin_mathfn): Handle
18699 BUILT_IN_SIGNIFICAND{,F,L}.
18700 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
18701 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
18702
18703 * config/i386/i386.md (significandxf2, significand<mode>2): New
18704 expanders to implement significandf, significand and significandl
18705 built-ins as inline x87 intrinsics.
18706
dd26af70
AS
187072009-06-18 Anatoly Sokolov <aesok@post.ru>
18708
18709 * config/avr/avr.c (avr_override_options): Remove setting value of
18710 PARAM_INLINE_CALL_COST.
18711
394bd84d
RH
187122009-06-18 Richard Henderson <rth@redhat.com>
18713
18714 PR 40488
18715 * tree-pass.h (TDF_ASMNAME): New.
18716 * tree-dump.c (dump_options): Add asmname.
18717 * doc/invoke.texi: Document it.
18718
18719 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
18720 (dump_decl_name): ...here.
18721 (dump_function_name): New flags arg; mind TDF_ASMNAME.
18722 (dump_generic_node): Update dump_function_name calls.
18723 (print_call_name): New flags arg; update all dump calls.
18724 * diagnostic.h (print_call_name): Update.
18725 * gimple-pretty-print.c (dump_gimple_call): Update.
18726
2a457a9b
L
187272009-06-18 H.J. Lu <hongjiu.lu@intel.com>
18728
18729 PR target/40470
18730 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
18731
fca5bb5c
DN
187322009-06-18 Diego Novillo <dnovillo@google.com>
18733
18734 * doc/plugins.texi: Document plugin_is_GPL_compatible.
18735 * plugin.c (str_license): Declare.
18736 (try_init_one_plugin): Assert that the symbol
18737 'plugin_is_GPL_compatible' exists.
18738
b6680d72
SD
187392009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
18740
18741 * see.c: Remove.
18742 * Makefile.in (OBJS-common): Remove see.o.
18743 (see.o): Remove.
18744 * common.opt (fsee): Mark as preserved for backward compatibility.
f100a4a8 18745 * opts.c (common_handle_option): Add OPT_fsee to the backward
b6680d72
SD
18746 compatibility section.
18747 * passes.c (init_optimization_passes, pass_see): Remove pass.
18748 * timevar.def (TV_SEE): Remove.
18749 * tree-pass.h (pass_see): Remove declaration.
18750 * doc/invoke.texi (-fsee): Remove documentation.
f100a4a8 18751
2a45675f
MJ
187522009-06-18 Martin Jambor <mjambor@suse.cz>
18753
18754 * tree-sra.c: Include statistics.h
18755 (sra_stats): New variable.
18756 (sra_initialize): Clear sra_stats.
18757 (create_access_replacement): Increment sra_stats.replacements.
18758 (get_access_replacement): Do not return twice.
18759 (analyze_all_variable_accesses): Increment statistics counter by the
18760 number of scalarized aggregates.
18761 (generate_subtree_copies): Increment sra_stats.subtree_copies.
18762 (sra_modify_expr): Increment sra_stats.exprs.
18763 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
18764 (sra_modify_assign): Increment sra_stats.exprs,
18765 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
18766 (perform_intra_sra): Update statistics counters.
18767 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
18768
bdc4827b
SL
187692009-06-18 Sandra Loosemore <sandra@codesourcery.com>
18770
18771 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
18772 (arm_scalar_mode_supported_p): New function.
18773
d9dd51dc
PB
187742009-06-18 Paul Brook <paul@codesourcery.com>
18775 Sandra Loosemore <sandra@codesourcery.com>
18776
18777 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
18778 (__extendhfsf2, __truncsfhf2): Define.
18779 * config/arm/fp16.c: New file.
18780 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
18781 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
18782
0fd8c3ad
SL
187832009-06-18 Sandra Loosemore <sandra@codesourcery.com>
18784
18785 * doc/extend.texi (Half-Precision): New section.
18786 * doc/invoke.texi (Option Summary): List -mfp16-format.
18787 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
18788 * config/arm/arm.opt (mfp16-format=): New.
18789 * config/arm/arm.c: Include intl.h.
18790 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
18791 (TARGET_INVALID_RETURN_TYPE): Redefine.
18792 (TARGET_PROMOTED_TYPE): Redefine.
18793 (TARGET_CONVERT_TO_TYPE): Redefine.
18794 (arm_fp16_format): Define.
18795 (all_fpus): Add entry for neon-fp16.
18796 (fp_model_for_fpu): Likewise.
18797 (struct fp16_format): Declare.
18798 (all_fp16_formats): Define.
18799 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
18800 functions.
18801 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
18802 and no ldrh.
18803 (arm_legitimate_index_p): Treat HFmode like HImode.
18804 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
18805 (coproc_secondary_reload_class): Special-case HFmode.
18806 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
18807 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
18808 (arm_init_fp16_builtins): New.
18809 (arm_init_builtins): Call it.
18810 (arm_invalid_parameter_type): New.
18811 (arm_invalid_return_type): New.
18812 (arm_promoted_type): New.
18813 (arm_convert_to_type).
18814 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
18815 format.
18816 (arm_emit_fp16_const): New function.
18817 (arm_mangle_type): Mangle __fp16 as "Dh".
18818 * config/arm/arm.h (TARGET_VFPD32): Make it know about
18819 FPUTYPE_NEON_FP16.
18820 (TARGET_NEON_FP16): New.
18821 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
18822 (enum fputype): Add FPUTYPE_NEON_FP16.
18823 (enum arm_fp16_format_type): Declare.
18824 (arm_fp16_format): Declare.
18825 (LARGEST_EXPONENT_IS_NORMAL): Define.
18826 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
18827 * config/arm/arm-modes.def (HFmode): Define.
bd62d832 18828 * config/arm/vfp.md (*movhf_vfp): New.
0fd8c3ad
SL
18829 (extendhfsf2): New.
18830 (truncsfhf2): New.
bd62d832 18831 * config/arm/arm.md (fpu): Add neon_fp16.
0fd8c3ad
SL
18832 (floatsihf2, floatdihf2): New.
18833 (fix_trunchfsi2, fix_trunchfdi2): New.
18834 (truncdfhf2): New.
18835 (extendhfdf2): New.
18836 (movhf): New.
18837 (*arm32_movhf): New.
18838 (*thumb1_movhf): New.
18839 (consttable_2): Add check for HFmode constants.
18840 (consttable_4): Handle HFmode constants.
18841
2c2f70e1
UB
188422009-06-18 Uros Bizjak <ubizjak@gmail.com>
18843
18844 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
18845
db4fa1c1
OH
188462009-06-17 Olivier Hainque <hainque@adacore.com>
18847
18848 * collect2.c (main): Use CONST_CAST2 to perform char ** to
18849 const char ** conversion in AIX specific section.
f100a4a8 18850
6bec4135
L
188512009-06-17 H.J. Lu <hongjiu.lu@intel.com>
18852
18853 * config/i386/i386.c (ix86_special_builtin_type): Remove
18854 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
18855 (bdesc_special_args): Updated.
18856 (ix86_init_mmx_sse_builtins): Likewise.
18857 (ix86_expand_special_args_builtin): Likewise.
18858
958d6d58
RH
188592009-06-17 Richard Henderson <rth@redhat.com>
18860
18861 * tree-pretty-print.c (maybe_dump_asm_name): New.
18862 (dump_decl_name): Use it.
18863 (PRINT_FUNCTION_NAME): Merge into...
18864 (dump_function_name): ... here. Use maybe_dump_asm_name.
18865
ed5ef2e4
CC
188662009-06-17 Cary Coutant <ccoutant@google.com>
18867
18868 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
18869 Change caller.
18870 * debug.c (struct gcc_debug_hooks): Change placeholder for
18871 source_line hook.
18872 (debug_nothing_int_charstar_int): Replaced by...
18873 (debug_nothing_int_charstar_int_bool): ...this.
18874 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
18875 source_line prototype.
18876 (debug_nothing_int_charstar_int): Replaced by...
18877 (debug_nothing_int_charstar_int_bool): ...this.
18878 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
18879 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
18880 Output is_stmt operand when necessary.
01a0acb7 18881 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
ed5ef2e4
CC
18882 (notice_source_line): Add is_stmt parameter.
18883 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
18884 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
18885 Change callers.
18886 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
18887 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
18888
b0f43ca0
ILT
188892009-06-17 Ian Lance Taylor <iant@google.com>
18890
18891 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
18892 Change all uses.
18893 (struct store_by_pieces_d): Rename from store_by_pieces. Change
18894 call uses.
18895
23314e77
AN
188962009-06-17 Adam Nemet <anemet@caviumnetworks.com>
18897
18898 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
18899 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
18900 tree_strip_sign_nop_conversions and
18901 tree_ssa_strip_useless_type_conversions rather than stripping
18902 the operations here.
18903 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
18904 Declare them.
18905 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
18906 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
18907 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
18908 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
18909 functions.
18910
799dbb0f
ME
189112009-06-17 Michael Eager <eager@eagercon.com>
18912
c637b0fa
UB
18913 * config/rs6000/constraints.md (register_constraint "d"): New.
18914 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
18915 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
18916 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
18917 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
18918 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
18919 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
18920 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
18921 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
799dbb0f
ME
18922 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
18923 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
c637b0fa
UB
18924 __fctiwz): Same.
18925 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
799dbb0f
ME
18926 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
18927 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
18928 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
c637b0fa
UB
18929 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
18930 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
18931 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
18932 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
18933 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
18934 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
18935 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
18936 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
18937 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
799dbb0f
ME
18938 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
18939
1469de3c
ILT
189402009-06-16 Ian Lance Taylor <iant@google.com>
18941
18942 * profile.c (total_num_never_executed): Don't define.
18943 (compute_branch_probabilities): Don't count or print
18944 num_never_executed.
18945 (init_branch_prob): Don't set total_num_never_executed.
18946 (end_branch_prob): Don't print total_num_never_executed.
18947
2cb0a60d
DD
189482009-06-17 David Daney <ddaney@caviumnetworks.com>
18949
c637b0fa 18950 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
2cb0a60d 18951
82882240
DE
189522009-06-17 David Edelsohn <edelsohn@gnu.org>
18953
18954 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
18955 (nabstd2_fpr): Same.
18956
a1a65f89
SE
189572009-06-17 Steve Ellcey <sje@cup.hp.com>
18958
18959 * expr.c (expand_assignment): Change complex type check.
18960
07ae5620
BS
189612009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
18962
f100a4a8 18963 * doc/plugins.texi (Building GCC plugins): Added new section.
07ae5620 18964
5eb4df45
ILT
189652009-06-17 Ian Lance Taylor <iant@google.com>
18966
18967 * c-pch.c (get_ident): Don't set size of templ array.
18968 (pch_init): Don't set size of partial_pch array.
18969
18970 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
18971 string constant to intialize an array whose size is the length of
18972 the string.
18973
4d61856d
RG
189742009-06-17 Richard Guenther <rguenther@suse.de>
18975
18976 PR tree-optimization/40389
18977 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
18978 to addressable types.
18979 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
18980
3cb8677c
RG
189812009-06-17 Richard Guenther <rguenther@suse.de>
18982
18983 PR middle-end/40460
18984 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
18985 if there is no evolution of left in the loop bail out.
18986 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
18987 chrec_fold_multiply.
18988
a4d99c86
R
189892009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
18990 Janis Johnson <janis187@us.ibm.com>
18991
18992 PR target/39254
18993 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
18994 for the symbol ref of a constant that is the source of a move
18995 - nor for any other not-obvious-label-ref constants.
18996
8dd1bca0
OR
189972009-06-16 Olatunji Ruwase <tjruwase@google.com>
18998
1469de3c 18999 * plugin.c (position_pass): Skip newly inserted pass during list
8dd1bca0
OR
19000 traversal to avoid repeated insertion.
19001
8019538f
ILT
190022009-06-16 Ian Lance Taylor <iant@google.com>
19003
19004 * vec.h (VEC_stack_alloc): Define different version if
19005 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
19006 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
19007 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
19008 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
19009
7c45393e
L
190102009-06-16 H.J. Lu <hongjiu.lu@intel.com>
19011
19012 * config.gcc (extra_headers): Add ia32intrin.h for x86.
19013
19014 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
19015 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
19016 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
19017 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
19018 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
19019 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
c637b0fa 19020 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
7c45393e
L
19021 (bdesc_special_args): Add __builtin_ia32_rdtsc and
19022 __builtin_ia32_rdtscp.
19023 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
19024 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
c637b0fa 19025 and __builtin_ia32_rorhi.
7c45393e
L
19026 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
19027 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
c637b0fa 19028 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
7c45393e
L
19029 (ix86_expand_args_builtin): Likewise.
19030 (ix86_expand_special_args_builtin): Likewise.
19031
19032 * config/i386/i386.md (UNSPECV_RDTSCP): New.
19033 (UNSPECV_RDTSC): Likewise.
19034 (UNSPECV_RDPMC): Likewise.
c637b0fa 19035 (*bsr): Renamed to ...
7c45393e 19036 (bsr): This
c637b0fa 19037 (*bsr_rex64): Renamed to ...
7c45393e
L
19038 (bsr_rex64): This.
19039 (rdpmc): New.
19040 (*rdpmc): Likewise.
19041 (*rdpmc_rex64): Likewise.
19042 (rdtsc): Likewise.
19043 (*rdtsc): Likewise.
19044 (*rdtsc_rex64): Likewise.
19045 (rdtscp): Likewise.
19046 (*rdtscp): Likewise.
19047 (*rdtscp_rex64): Likewise.
19048
19049 * config/i386/ia32intrin.h: New.
19050
19051 * config/i386/x86intrin.h: Include <ia32intrin.h>.
19052
504b33d8
ILT
190532009-06-16 Ian Lance Taylor <iant@google.com>
19054
19055 * ira-build.c (copy_info_to_removed_store_destinations):
19056 Initialize parent_a.
19057
f9551830
ILT
190582009-06-16 Ian Lance Taylor <iant@google.com>
19059
19060 * c-decl.c (grokdeclarator): Change size_varies to bool.
19061
c32e2175
ILT
190622009-06-16 Ian Lance Taylor <iant@google.com>
19063
19064 * sel-sched.c: Make forward declarations of move_op_hooks and
19065 fur_hooks explicitly extern.
19066
415a06c2
ILT
190672009-06-16 Ian Lance Taylor <iant@google.com>
19068
c637b0fa 19069 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
415a06c2
ILT
19070 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
19071
675f99c9
ILT
190722009-06-16 Ian Lance Taylor <iant@google.com>
19073
19074 * resource.c (mark_referenced_resources): Change
19075 include_delayed_effects parameter to bool. Change all callers.
19076 (mark_end_of_function_resources): Likewise.
19077 * reorg.c (insn_references_resource_p): Likewise.
19078 (insn_sets_resource_p): Likewise.
19079 * resource.h (mark_referenced_resources): Update declaration.
19080 (mark_end_of_function_resources): Update declaration.
19081
a322799d
DE
190822009-06-16 David Edelsohn <edelsohn@gnu.org>
19083
19084 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
19085
c58c92f5
DE
190862009-06-16 David Edelsohn <edelsohn@gnu.org>
19087
19088 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
19089 GCC can bootstrap on AIX with GNU Binutils 2.20.
19090
95228603
ILT
190912009-06-16 Ian Lance Taylor <iant@google.com>
19092
19093 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
19094
9c727c9a
ILT
190952009-06-16 Ian Lance Taylor <iant@google.com>
19096
19097 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
19098 inline, not extern inline.
19099 (exact_log2): Likewise.
19100 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
19101 test CLZ_HWI.
19102 (exact_log2): Likewise, but don't test CTZ_HWI.
19103
5fd8300b
ILT
191042009-06-16 Ian Lance Taylor <iant@google.com>
19105
19106 * bitmap.c (bitmap_clear): Don't declare as inline.
19107 * gimple.c (gimplify_assign): Likewise.
19108 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
19109 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
19110 (sched_scan_info): Remove duplicate definition.
19111
7d882b83
ILT
191122009-06-16 Ian Lance Taylor <iant@google.com>
19113
19114 * c-common.c (skip_evaluation): Don't define.
19115 (c_inhibit_evaluation_warnings): Define global variable.
19116 (overflow_warning): Check c_inhibit_evaluation_warnings rather
19117 than skip_evaluation.
19118 (convert_and_check, warn_for_div_by_zero): Likewise.
19119 * c-common.h (skip_evaluation): Don't declare.
19120 (c_inhibit_evaluation_warnings): Declare.
19121 * c-parser.c (c_parser_typeof_specifier): Set
19122 c_inhibit_evaluation_warnings rather than skip_evaluation.
19123 (c_parser_conditional_expression): Likewise.
19124 (c_parser_binary_expression): Likewise.
19125 (c_parser_sizeof_expression): Likewise.
19126 (c_parser_alignof_expression): Likewise.
19127 * c-typeck.c (build_indirect_ref): Check
19128 c_inhibit_evaluation_warnings rather than skip_evaluation.
19129 (build_conditional_expr, build_binary_op): Likewise.
19130
2e407842
RG
191312009-06-16 Richard Guenther <rguenther@suse.de>
19132
19133 * tree-ssa-alias.c (is_escape_site): Remove.
19134 * tree-ssa-alias.h (enum escape_type): Remove.
19135 (is_escape_site): Likewise.
19136 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
19137 via casts and asms without deferring to is_escape_site.
19138
f2ff8872
JJ
191392009-06-16 Jakub Jelinek <jakub@redhat.com>
19140
19141 PR middle-end/40446
19142 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
19143 use gen_lowpart if op0 has complex mode.
19144
de70bb20
RG
191452009-06-16 Richard Guenther <rguenther@suse.de>
19146
19147 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
19148 variables add them to ESCAPED.
c637b0fa 19149 (find_func_aliases): Do not make all indirectly stored values escaped.
de70bb20 19150
daa0eeb8
RAE
191512009-06-16 Rafael Avila de Espindola <espindola@google.com>
19152
19153 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
19154 make_decl_one_only.
19155
0ec19b8c
MJ
191562009-06-16 Martin Jambor <mjambor@suse.cz>
19157
19158 PR tree-optimization/40432
19159 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
19160 check whether we need to force gimple register operand.
19161
2b26b801
MJ
191622009-06-16 Martin Jambor <mjambor@suse.cz>
19163
19164 PR tree-optimization/40413
19165 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
19166 build_ref_for_offset.
19167 (propagate_subacesses_accross_link): Fix a typo in a comment.
19168
7c5222ff
IR
191692009-06-16 Ira Rosen <irar@il.ibm.com>
19170
19171 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
19172 with additional parameter.
c637b0fa 19173 * tree-vectorizer.h (enum vect_def_type): Add new value
7c5222ff
IR
19174 vect_nested_cycle.
19175 (enum vect_relevant): Add comments.
19176 (vect_is_simple_reduction): Add new argument.
19177 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
19178 Detect nested cycles.
19179 (vect_is_simple_reduction): Update documentation, add an argument to
19180 distinguish inner-loop reduction from nested cycle, detect nested
19181 cycles, fix printings and indentation, don't swap operands in case
19182 of nested cycle.
19183 (get_initial_def_for_reduction): Handle subtraction.
19184 (vect_create_epilog_for_reduction): Add new argument to specify
19185 reduction variable.
19186 (vect_finalize_reduction): Handle subtraction, fix comments.
c637b0fa 19187 (vectorizable_reduction): Handle nested cycles. In case of nested
f100a4a8 19188 cycle keep track of the reduction variable position. Call
7c8b1a77 19189 vect_is_simple_reduction with additional parameter. Use original
7c5222ff
IR
19190 statement code in reduction epilogue for nested cycle. Call
19191 vect_create_epilog_for_reduction with additional parameter.
c637b0fa
UB
19192 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
19193 inner-loop vectorization.
7c5222ff
IR
19194 (vect_recog_widen_sum_pattern): Likewise.
19195 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
19196 and reductions.
19197 (vect_mark_stmts_to_be_vectorized): Likewise.
19198 (vect_get_vec_def_for_operand): Handle nested cycles.
19199
d376d545
RW
192002009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19201
19202 * doc/invoke.texi (Debugging Options): Fix option index entries
19203 for -fdump-statistics, -frandom-seed add entries for
19204 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
19205 (FRV Options): Fix entries for -mTLS, -mtls.
19206 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
19207 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
19208 (M68hc1x Options): Fix @itemx for -mnominmax.
19209 (MCore Options): Fix entry for -mno-lsim.
19210 (MMIX Options): Fix entry for -mabi=mmixware.
19211 (PDP-11 Options): Fix entry for -mbcopy-builtin.
19212
bd117bb6
BS
192132009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
19214
19215 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
19216 Mention the plugin mode of gengtype.
c637b0fa 19217 * doc/gty.texi (Source Files Containing Type Information): Likewise.
bd117bb6
BS
19218 * gengtype.c: Updated copyright.
19219 (plugin_files, nb_plugin_files) Added new static variables.
19220 (measure_input_list) Care about plugin_files.
19221 (write_rtx_next): Added early return in plugin mode.
19222 (create_file): Updated copyright year in generated file. Added
19223 asserts.
19224 (oprintf): Added early return if NULL outf.
19225 (get_output_file_with_visibility): Care of plugin_files.
19226 (get_output_file_name): May return null.
19227 (write_local): Added early return.
19228 (put_mangled_filename): Ditto.
19229 (finish_root_table): Added check for base_files.
19230 (write_roots): Care about null when plugins.
19231 (main): Added plugin mode.
19232
e1b7793c
ILT
192332009-06-15 Ian Lance Taylor <iant@google.com>
19234
c637b0fa 19235 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
e1b7793c
ILT
19236 * gcov.c (read_count_file): Add braces around variables declared
19237 before label.
19238
19239 * c.opt (Wjump-misses-init): New warning.
19240 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
19241 -Wall and -Wc++-compat if not already set.
19242 (c_common_post_options): Clear warn_jump_misses_init if it was not
19243 set.
19244 * c-decl.c (struct c_binding): Change type field to a union with
19245 new label field. Make it the first field in the struct. Update
19246 references to type to use u.type instead.
19247 (struct c_spot_bindings): Define.
19248 (struct c_goto_bindings): Define.
19249 (c_goto_bindings_p): Define, along with VECs.
19250 (struct c_label_vars): Define.
19251 (struct c_scope): Add has_label_bindings field.
19252 (bind_label, set_spot_bindings): New static functions.
19253 (decl_jump_unsafe, update_spot_bindings): New static functions.
19254 (update_label_decls): New static function.
19255 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
19256 Update binding u.label field to shadowed field.
19257 (c_binding_start_stmt_expr): New function.
19258 (c_binding_end_stmt_expr): New function.
19259 (pushdecl): Don't call c_begin_vm_scope.
19260 (make_label): Add defining and p_label_vars parameters. Change
19261 all callers.
19262 (lookup_label): Correct test for whether a label has not yet been
19263 defined. Call bind_label rather than bind.
19264 (warn_about_goto): New static function.
19265 (lookup_label_for_goto): New function.
19266 (declare_label): Call bind_label rather than bind.
19267 (check_earlier_gotos): New static function.
19268 (define_label): Don't give errors about jumping into statement
19269 expressions or scopes of variably modified types. Call
19270 set_spot_bindings and check_earlier_gotos. Call bind_label
19271 instead of bind. Don't set label_context_stack_se or
19272 label_context_stack_vm.
19273 (c_get_switch_bindings): New function.
19274 (c_release_switch_bindings): New function.
19275 (c_check_switch_jump_warnings): New function.
19276 (start_function): Don't set label_context_stack_se or
19277 label_context_stack_vm.
19278 (finish_function): Likewise.
19279 * c-typeck.c (label_context_stack_se): Don't define.
19280 (label_context_stack_vm): Don't define.
19281 (c_finish_goto_label): Call lookup_label_for_goto rather than
19282 lookup_label. Don't give errors about jumping into a statement
19283 expression or the scope of a variably modified type. Don't set
19284 label_context_stack_se or label_context_stack_vm.
19285 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
19286 fields. Add bindings field.
19287 (c_start_case): Don't set deleted fields. Set bindings field.
19288 (do_case): Rework order of tests. Don't check blocked_stmt_expr
19289 or blocked_vm. Call c_check_switch_jump_warnings.
19290 (c_finish_case): Don't test blocked_stmt_expr field. Call
19291 c_release_switch_bindings.
19292 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
19293 c_switch_stack. Don't walk label_context_stack_se labels. Don't
19294 set label_context_stack_se. Call c_bindings_start_stmt_expr.
19295 (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
19296 c_switch_stack. Don't walk label_context_stack_se labels. Don't
19297 set label_context_stack_se. Call c_bindings_end_stmt_expr.
19298 (c_begin_vm_scope, c_end_vm_scope): Don't define.
19299 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
19300 (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
19301 (C_DECL_UNJUMPABLE_VM): Don't define.
19302 (C_DECL_UNDEFINABLE_VM): Don't define.
19303 (struct c_label_list): Don't define.
19304 (struct c_label_context_se): Don't define.
19305 (struct c_label_context_vm): Don't define.
19306 (struct c_spot_bindings): Declare.
19307 (c_bindings_start_stmt_expr): Declare.
19308 (c_bindings_end_stmt_expr): Declare.
19309 (lookup_label_for_goto): Declare.
19310 (c_get_switch_bindings, c_release_switch_bindings): Declare.
19311 (c_check_switch_jump_warnings): Declare.
19312 (label_context_stack_se, label_context_stack_vm): Don't declare.
19313 (c_finish_goto_label): Update declaration.
19314 (c_begin_vm_scope, c_end_vm_scope): Don't declare.
19315 * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
19316 (Warning Options): Document -Wjump-misses-init.
19317
98a129b9
JJ
193182009-06-15 Jakub Jelinek <jakub@redhat.com>
19319
19320 * tree-object-size.c (addr_object_size): Fix a pasto in the last
19321 change.
19322
19751f1f
RAE
193232009-06-15 Rafael Avila de Espindola <espindola@google.com>
19324
19325 * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
19326
d40eb158
AH
193272009-06-15 Aldy Hernandez <aldyh@redhat.com>
19328
19329 * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
19330
193312009-06-15 Aldy Hernandez <aldyh@redhat.com>
19332
19333 * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
19334
fc26fae3
RAE
193352009-06-15 Rafael Avila de Espindola <espindola@google.com>
19336
19337 * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
19338 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
19339 * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
19340 * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
c637b0fa
UB
19341 * dwarf2asm.c (dw2_force_const_mem): Update call to
19342 make_decl_one_only.
fc26fae3
RAE
19343 * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
19344 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
19345 * langhooks.c (lhd_comdat_group): Remove.
19346 * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
19347 * tree.h (DECL_COMDAT_GROUP): New.
19348 (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
19349 (tree_decl_with_vis): Add comdat_group. Remove one_only.
19350 (make_decl_one_only): Change signature.
19351 * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
19352 make_decl_one_only.
19353 (make_decl_one_only): Change signature.
19354 (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
19355
0eb92735
RG
193562009-06-15 Richard Guenther <rguenther@suse.de>
19357
19358 PR middle-end/40439
19359 * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
19360
0ab352d5
AK
193612009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19362
19363 * tree-ssa-math-opts.c: Remove extra divide.
19364
677fbff4
AK
193652009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19366
19367 * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
19368
03bd2f1a
AK
193692009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19370
19371 * passes.c: Add bswap pass.
19372 * tree-pass.h: Add pass_optimize_bswap declaration.
19373 * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
19374 Include rtl.h, expr.h and optabs.h for optab_handler check.
19375 (struct symbolic_number, pass_optimize_bswap): New definition.
19376 (do_shift_rotate, verify_symbolic_number_p): New functions.
19377 (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
19378 (gate_optimize_bswap): New function.
19379 * tree.c (widest_int_cst_value): New function.
19380 * tree.h (widest_int_cst_value): Prototype added.
19381
fb4c4640
SB
193822009-06-14 Steven Bosscher <steven@gcc.gnu.org>
19383
19384 * cfgcleanup.c (old_insns_match_p): Remove code to substitute
19385 REG_EQUAL/REG_EQUIV notes.
19386
1d24fdd9
RG
193872009-06-14 Richard Guenther <rguenther@suse.de>
19388
19389 PR middle-end/40389
19390 * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
19391 has its address taken if NRV was applied and it is addressable.
19392 * tree-ssa-structalias.c (get_constraint_for_address_of): New
19393 function split out from ...
19394 (get_constraint_for_1): ... here.
19395 (handle_rhs_call): Use it to mark the return slot escaped if
19396 it is addressable and NRV was applied.
19397
4b29c5e5
AH
193982009-06-13 Aldy Hernandez <aldyh@redhat.com>
19399
19400 * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
19401 Change first argument type to location_t.
19402 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
19403 Do not set input_location.
19404 Use loc instead of input_location throughout.
19405
e1e6dc73
RG
194062009-06-13 Richard Guenther <rguenther@suse.de>
19407
1d24fdd9 19408 PR tree-optimization/40421
e1e6dc73
RG
19409 * tree-predcom.c (should_unroll_loop_p): Remove.
19410 (tree_predictive_commoning_loop): Use can_unroll_loop_p.
19411
8012b923
MM
194122009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
19413
19414 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19415 Add location argument.
19416
4c4bde29
AH
194172009-06-13 Aldy Hernandez <aldyh@redhat.com>
19418
19419 * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
19420 build_decl.
19421 * config/s390/s390.c (s390_build_builtin_va_list): Same.
19422 (s390_gimplify_va_arg): Pass location to create_artificial_label.
19423 * config/spu/spu-protos.h: Add location to
19424 spu_resolve_overloaded_builtin.
19425 * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
19426 spu_build_builtin_va_list.
19427 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
19428 argument. Pass location to build_function_call_vec.
19429 * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
19430 build_decl.
19431 (emit_fpu_switch): Same.
19432 (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
19433 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
19434 to build_decl and create_artificial_label.
19435 (xtensa_gimplify_va_arg_expr): Same.
19436 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
19437 (xstormy16_gimplify_va_arg_expr): Same.
19438 * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
19439 * config/arm/arm.c (arm_build_builtin_va_list): Same.
19440 * config/mips/mips.c (mips_build_builtin_va_list): Same.
19441 (mips16_build_function_stub): Same.
19442 (mips16_build_call_stub): Same.
19443
81beb031
RE
194442009-06-13 Richard Earnshaw <rearnsha@arm.com>
19445
19446 PR target/40327
19447 * arm/constraints.md (Pa, Pb): New constraints.
f100a4a8 19448 * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
81beb031
RE
19449 split pattern to deal with them.
19450
98f6c600
JS
194512009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
19452
19453 * doc/invoke.texi: Add missing option -Wp,OPTION in list,
19454 fix index entry for -Xpreprocessor.
19455
71856685
AH
194562009-06-12 Aldy Hernandez <aldyh@redhat.com>
19457
19458 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19459 Add location argument to build_decl call.
19460 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
19461 (rs6000_init_builtins): Same.
19462 (spe_init_builtins): Same.
19463 (rs6000_gimplify_va_arg): Add location argument to
19464 create_artificial_label call.
19465
756b65f5
SB
194662009-06-12 Steven Bosscher <steven@gcc.gnu.org>
19467
19468 * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
19469 * combine-stack-adj.c (pass_stack_adjustments): Use it.
19470 * Makefile.in: Fix GGC dependency for gcse.o.
19471
c2255bc4
AH
194722009-06-12 Aldy Hernandez <aldyh@redhat.com>
19473
19474 * tree-pretty-print.c (dump_generic_node): Dump column numbers.
19475 * gimple-pretty-print.c (dump_gimple_stmt): Same.
19476 * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
19477 created.
19478 * c-parser.c (c_parser_binary_expression): Use current column while
19479 building binary operations.
19480 * common.opt (fshow-column): Enable by default.
19481 * tree-vrp.c (check_array_ref): Use warning_at.
19482 (check_array_bounds): Use location from call back if expr has no
19483 location.
19484 * tree.h: Add location argument to maybe_fold_*.
19485 * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
19486 (maybe_fold_offset_to_array_ref): Add location argument and use it.
19487 (maybe_fold_offset_to_component_ref): Same.
19488 (maybe_fold_offset_to_reference): Same.
19489 (maybe_fold_offset_to_address): Same.
19490 (maybe_fold_stmt_indirect): Same.
19491 (maybe_fold_stmt_addition): Same.
19492 (fold_stmt_r): Pass location to maybe_fold_*.
19493 (fold_gimple_assign): Same.
19494 * c-tree.h: Add location argument to finish_decl,
19495 default_function_array_conversion, store_init_value.
19496 * c-decl.c (define_label): Use error_at.
19497 (c_make_fname_decl): Pass location to finish_decl.
19498 (finish_decl): New location argument.
19499 (build_compound_literal): Pass location to store_init_value.
19500 (grokdeclarator): Pass location to finish_decl.
19501 (grokfield): Same.
19502 * c-typeck.c (array_to_pointer_conversion): New location argument.
19503 (function_to_pointer_conversion): Same.
19504 (default_function_array_conversion): Same.
19505 (parser_build_unary_op): Pass location to overflow_warning.
19506 (parser_build_binary_op): Same. Use warning_at.
19507 (build_unary_op): Pass location to array_to_pointer_conversion.
19508 (build_c_cast): Pass location to digest_init.
19509 (build_modify_expr): New location argument.
19510 (convert_for_assignment): Same.
19511 (store_init_value): Same.
19512 (digest_init): Same.
19513 (output_init_element): Pass location to digest_init and
19514 array_to_pointer_conversion.
19515 (c_finish_return): Pass location to convert_for_assignment.
19516 * gimplify.c (gimplify_conversion): Pass location to
19517 maybe_fold_offset_to_address.
19518 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
19519 to maybe_fold_stmt_addition.
19520 * c-omp.c (c_finish_omp_atomic): Pass new location to
19521 build_modify_expr.
19522 (c_finish_omp_for): Same.
19523 * c-common.c (overflow_warning): New argument.
19524 * c-common.h: New argument to build_modify_expr, overflow_warning.
19525 * c-parser.c (c_parser_declaration_or_fndef): Pass location to
19526 finish_decl.
19527 (c_parser_initializer): Pass location to
19528 default_function_array_conversion.
19529 (c_parser_initelt): Same.
19530 (c_parser_initval): Same.
19531 (c_parser_asm_operands): Same.
19532 (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
19533 (c_parser_conditional_expression): Same.
19534 (c_parser_binary_expression): Add location info to stack. Use it.
19535 (c_parser_unary_expression): Pass location to
19536 default_function_array_conversion, parser_build_unary_op,
19537 build_indirect_ref, c_parser_postfix_expression_after_primary.
19538 (c_parser_postfix_expression_after_primary): New location argument.
19539 Use it.
19540 (c_parser_expression_conv): Pass location to
19541 default_function_array_conversion.
19542 (c_parser_expr_list): Same.
19543 (c_parser_omp_atomic): Same.
19544 (c_parser_omp_for_loop): Same.
bd62d832 19545 * c-tree.h (struct c_declarator): Add comment to id_loc.
c2255bc4
AH
19546 (build_array_declarator): New argument.
19547 * c-decl.c (build_array_declarator): Add location argument.
19548 (grokdeclarator): Set id_loc for cdk_array.
19549 * c-parser.c (c_parser_direct_declarator_inner): Pass location to
19550 build_array_declarator.
19551 * tree.c (build_omp_clause): Add location argument.
19552 * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
19553 (OMP_CLAUSE_LOCATION): New macro.
19554 (struct tree_omp_clause): Add location field.
19555 (build_omp_clause): Add argument.
c2255bc4
AH
19556 * cp/pt.c (tsubst_omp_for_iterator): Pass location to
19557 build_omp_clause.
19558 * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
19559 (cp_parser_omp_clause_collapse): Same.
19560 (cp_parser_omp_clause_default): Same.
19561 (cp_parser_omp_clause_if): Same.
19562 (cp_parser_omp_clause_nowait): Same.
19563 (cp_parser_omp_clause_num_threads): Same.
19564 (cp_parser_omp_clause_ordered): Same.
19565 (cp_parser_omp_clause_schedule): Same.
19566 (cp_parser_omp_clause_untied): Same.
19567 (cp_parser_omp_for_loop): Same.
19568 (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
19569 * c-tree.h (c_start_case): Add location argument.
19570 (c_process_expr_stmt): Same.
19571 (c_finish_goto_*): Same.
19572 * tree-parloops.c (initialize_reductions): Pass location to
19573 build_omp_clause.
19574 (create_parallel_loop): Same.
19575 * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
19576 (gfc_trans_omp_reduction_list): Same.
19577 (gfc_trans_omp_clauses): Same.
19578 (gfc_trans_omp_do): Same.
19579 * c-typeck.c (c_finish_goto_label): Same.
19580 (c_finish_goto_ptr): New location argument.
19581 (c_start_case): Same.
19582 (emit_side_effect_warnings): Same.
19583 (c_process_expr_stmt): Same.
19584 (c_finish_stmt_expr): Same.
19585 (c_finish_omp_clauses): Use error_at instead of error.
19586 * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
19587 build_omp_clause.
19588 * c-omp.c (c_split_parallel_clauses): New location argument.
19589 * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
19590 to build_omp_clause.
19591 (convert_local_reference_stmt): Same.
19592 (convert_gimple_call): Same.
19593 * c-common.h (c_split_parallel_clauses): New argument.
19594 * c-parser.c (c_parser_statement_after_labels): Pass location to
19595 c_finish_goto_label.
19596 (c_parser_switch_statement): Pass location to c_start_case.
19597 (c_parser_for_statement): Pass location to c_finish_expr_stmt,
19598 and c_process_expr_stmt.
19599 (c_parser_omp_variable_list): Add location argument.
c637b0fa 19600 (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
c2255bc4
AH
19601 (c_parser_omp_clause_default): Same.
19602 (c_parser_omp_clause_if): Same.
19603 (c_parser_omp_clause_num_threads): Same.
19604 (-c_parser_omp_clause_ordered): Same.
19605 (c_parser_omp_clause_reduction): Pass location to
19606 c_parser_omp_variable_list.
19607 (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
19608 (c_parser_omp_clause_untied): Same.
19609 (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
c637b0fa 19610 (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
c2255bc4
AH
19611
19612 * c-tree.h (check_for_loop_decls, undeclared_variable,
19613 build_component_ref, build_array_ref, build_external_ref,
19614 c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
19615 build_conditional_expr, build_compound_expr, c_cast_expr,
19616 build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
19617 c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
19618 argument.
19619 * c-semantics.c (build_stmt): Same.
19620 (build_case_label): Same.
19621 * c-decl.c (c_finish_incomplete_decl): Pass location on down.
19622 (undeclared_variable): New argument.
19623 (make_label): Same.
19624 (lookup_label): Pass location on down.
19625 (define_label): Same.
19626 (finish_decl): Same.
19627 (build_compound_literal): Same.
19628 (finish_struct): Same.
19629 (finish_function): Do not set location here.
19630 (check_for_loop_decls): New argument.
19631 * tree.c (save_expr): Set location.
19632 (build_empty_stmt): New argument.
19633 * tree.h (build_empty_stmt): New argument to build_empty_stmt.
19634 (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
19635 * builtins.c (gimplify_va_arg_expr): Use locations.
19636 (expand_builtin_sync_operation): Same.
19637 * c-typeck.c (build_component_ref): New argument.
19638 (build_array_ref): Same.
19639 (build_external_ref): Same.
19640 (c_expr_sizeof_expr): Same.
19641 (c_expr_sizeof_type): Same.
19642 (parser_build_unary_op): Same.
19643 (build_conditional_expr): Same.
19644 (build_compound_expr): Pass location on down.
19645 (build_compound_expr): New argument.
19646 (build_c_cast): Same.
19647 (c_cast_expr): Same.
19648 (build_asm_expr): Same.
19649 (c_finish_return): Same.
19650 (c_process_expr_stmt): Pass location on down.
19651 (c_finish_stmt_expr): New argument.
19652 (push_clenaup): Same.
19653 (c_finish_omp_parallel): Same.
19654 (c_finish_omp_task): Same.
19655 * gimplify.c (gimplify_call_expr): Pass location on down.
19656 * c-omp.c (c_finish_omp_master): New argument.
19657 (c_finish_omp_critical): Same.
19658 (c_finish_omp_ordered): Same.
19659 (c_finish_omp_barrier): Same.
19660 (-c_finish_omp_taskwait): Same.
19661 (c_finish_omp_atomic): Same.
19662 (c_finish_omp_flush): Same.
19663 * tree-inline.c (copy_tree_body_r): Pass location on down.
19664 (inline_forbidden_p): Remove use of input_location.
19665 * c-gimplify.c (c_build_bind_expr): New argument.
19666 * c-common.c (c_common_truthvalue_conversion): Pass location on down.
19667 (c_sizeof_or_alignof_type): New argument.
19668 (c_alignof_expr): Same.
19669 (build_va_arg): Same.
19670 (c_add_case_label): Same.
19671 * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
19672 c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
19673 c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
19674 c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
19675 c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
19676 c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
19677 New argument.
19678 * stub-objc.c (objc_build_selector_expr): Same.
19679 (objc_build_throw_stmt): Same.
19680 * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
19681 (c_parser_initelt): Same.
19682 (c_parser_compound_statement): Same.
19683 (c_parser_compound_statement_nostart): Same.
19684 (c_parser_label): Same.
19685 (c_parser_statement_after_labels): Same.
19686 (c_parser_if_body): Same.
19687 (c_parser_else_body): Same.
19688 (c_parser_if_statement): Same.
19689 (c_parser_switch_statement): Same.
19690 (c_parser_while_statement): Same.
19691 (c_parser_do_statement): Same.
19692 (c_parser_for_statement): Same.
19693 (c_parser_asm_statement): Same.
19694 (c_parser_conditional_expression): Same.
19695 (c_parser_binary_expression): Same.
19696 (c_parser_cast_expression): Same.
19697 (c_parser_unary_expression): Same.
19698 (c_parser_sizeof_expression): Same.
19699 (c_parser_alignof_expression): Same.
19700 (c_parser_postfix_expression): Same.
19701 (c_parser_expression): Same.
19702 (c_parser_objc_receiver): Same.
19703 (c_parser_omp_variable_list): Same.
19704 (c_parser_omp_structured_block): Same.
19705 (c_parser_omp_atomic): New argument.
19706 (c_parser_omp_barrier): Same.
19707 (c_parser_omp_critical): Same.
19708 (c_parser_omp_flush): Pass location on down.
19709 (c_parser_omp_for_loop): New argument.
19710 (c_parser_omp_for): Same.
19711 (c_parser_omp_master): Same.
19712 (c_parser_omp_ordered): Same.
19713 (c_parser_omp_sections_scope): Same.
19714 (c_parser_omp_sections): Same.
19715 (c_parser_omp_parallel): Same.
19716 (c_parser_omp_single): Same.
19717 (c_parser_omp_task): Same.
19718 (c_parser_omp_taskwait): Pass location on down.
19719 (c_parser_omp_construct): Same.
19720 (c_parser_omp_threadprivate): Same.
19721 * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
19722 builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
19723 tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
19724 c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
19725 c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
19726 emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
19727 rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
19728 tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
19729 config/i386/i386.c, stmt.c:
19730 Add location argument to the following function definitions and/or
19731 function calls: build_decl, objcp_start_struct, objcp_finish_struct,
19732 start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
19733 cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
19734 build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
19735 do_case, c_finish_bc_stmt, build_compound_literal,
19736 build_function_call.
19737 * c-decl.c (build_compound_literal): Add location argument.
19738 Make all diagnostic calls use location.
19739 (start_struct): Same.
19740 (finish_struct): Same.
19741 (start_enum): Same.
19742 (build_enumerator): Same.
19743 (start_function): Same.
19744 (grokdeclarator): Make all diagnostic calls use location.
19745 (store_parm_decls_oldstyle): Same.
19746 * c-typeck.c (build_function_call): Add location argument.
19747 Make all diagnostic calls use location.
19748 (do_case): Same.
19749 (c_finish_bc_stmt): Same.
19750 * tree-nested.c (get_trampoline_type): Add argument.
19751 Pass location to build_decl.
19752 (lookup_tramp_for_decl): Pass location to get_trampoline_type.
19753 * rtl.h (RTL_LOCATION): New.
19754 * c-common.c (c_add_case_label): Add location argument.
19755 Make all diagnostic calls use location.
19756 * c-common.h: Add location argument to make_fname_decl, do_case,
19757 c_add_case_label, build_function_call, resolve_overloaded_builtin.
19758 * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
19759 Set it appropriately for every case. Pass enum_loc to start_enum
19760 call. Pass value_loc first to build_enumerator. Pass enum_loc to
19761 parser_xref_tag.
19762 (c_parser_struct_or_union_specifier): Save location. Use it for
19763 start_struct, finish_struct, and parser_xref_tag.
19764
3d8b2a98
ILT
197652009-06-12 Ian Lance Taylor <iant@google.com>
19766
c637b0fa 19767 * fold-const.c (fold_unary): Rename local variable and to and_expr.
3d8b2a98
ILT
19768
19769 * c-opts.c (c_common_handle_option): For -Wc++-compat set
19770 cpp_opts->warn_cxx_operator_names.
19771
737142ce
AP
197722009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
19773
19774 PR tree-opt/38865
19775 * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
19776 is returns NULL and OP is a VCE, look through the VCE.
19777
d3a0d55d
ILT
197782009-06-12 Ian Lance Taylor <iant@google.com>
19779
19780 PR bootstrap/40430
19781 * collect2.c (main): Use CONST_CAST2 in code inside #if
19782 LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
19783
f85882d8
JY
197842009-06-12 Joey Ye <joey.ye@intel.com>
19785
19786 PR middle-end/39146
19787 * cfgexpand.c (get_decl_align_unit): Update
19788 max_used_stack_slot_alignment with align instead of
19789 stack_alignment_needed.
19790
19791 * function.c (assign_stack_local_1): Update
19792 max_used_stack_slot_alignment with alignment_in_bits instead
19793 of stack_alignment_needed.
19794 (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
19795 here.
19796
fc9f468b
JJ
197972009-06-12 Jakub Jelinek <jakub@redhat.com>
19798
19799 * dwarf2out.c (last_var_location_insn): New variable.
19800 (dwarf2out_end_epilogue): Clear last_var_location_insn.
19801 (dwarf2out_var_location): Don't record anything after last real
19802 insn. Only change labels if there were any real instructions
19803 in between last note and this one, or if changed sections.
19804
7c1db202
RH
198052009-06-11 Richard Henderson <rth@redhat.com>
19806
f85882d8 19807 * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
15cb981a
RH
19808 note when storing the frame pointer in a register.
19809 (FRP): Don't redefine to nothing for epilogue.
19810 (alpha_expand_epilogue): Mark register and sp restores.
19811 (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
19812
7c1db202
RH
19813 * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
19814 when gen_lowpart is needed.
19815
f2ae7631
RH
198162009-06-11 Richard Henderson <rth@redhat.com>
19817
42755c21
RH
19818 * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
19819
f2ae7631
RH
19820 * dwarf2out.c (need_data_align_sf_opcode): New.
19821 (div_data_align): Move earlier.
19822 (def_cfa_1, reg_save): Use it.
19823
8ed0ce99
L
198242009-06-11 H.J. Lu <hongjiu.lu@intel.com>
19825
19826 * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
19827 (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
19828 (ix86_handle_option): Handle OPT_mcrc32.
19829 (ix86_target_string): Add -mcrc32.
19830 (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
19831
19832 * config/i386/i386.h (TARGET_CRC32): New.
19833
c637b0fa 19834 * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
8ed0ce99
L
19835 (sse4_2_crc32di): Likewise.
19836
c637b0fa 19837 * config/i386/i386.opt (mcrc32): New.
8ed0ce99
L
19838
19839 * doc/invoke.texi: Document -mcrc32.
19840
9fd68a1f
RH
198412009-06-11 Richard Henderson <rth@redhat.com>
19842
8ed0ce99 19843 * common.opt (gdwarf-): Accept a version number.
9fd68a1f
RH
19844 * doc/invoke.texi (gdwarf-): Update docs.
19845 * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
19846 * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
19847 version level, and record it.
19848
19849 * dwarf2.h (DW_CIE_VERSION): Remove.
19850 * dwarf2out.c (DWARF_VERSION): Remove.
19851 (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
19852 (output_call_frame_info): Use CIE version 3 for dwarf3,
19853 or if the return register column is out of range for version 1.
19854 (dwarf_stack_op_name): Add all dwarf3 values.
19855 (DEBUG_PUBTYPES_SECTION): New.
19856 (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
19857 encoding change for dwarf3.
19858 (output_die) [dw_val_class_die_ref]: Likewise.
19859 (output_compilation_unit_header): Emit correct version for dwarf3.
19860 (output_line_info): Likewise.
19861 (output_pubnames): Update for DWARF_VERSION removal.
19862 (output_aranges): Likewise.
19863 (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
19864 (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
19865 (dwarf2out_finish): Likewise.
19866
4de8ce3b
DD
198672009-06-11 David Daney <ddaney@caviumnetworks.com>
19868
19869 * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
19870 in r148403.
19871
468059bc
DD
198722009-06-11 David Daney <ddaney@caviumnetworks.com>
19873
19874 PR c/39252
19875 * doc/extend.texi ( __builtin_unreachable): Document new builtin.
19876 * builtins.c (expand_builtin_unreachable): New function.
19877 (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
19878 * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
19879 * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
19880 successors.
19881 * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
19882 searching for missing barriers.
19883
b5a6e96f
FXC
198842009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
19885
19886 * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
19887 when -fprofile-generate* was passed.
19888 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
19889
6be6462e
AG
198902009-06-11 Anthony Green <green@moxielogic.com>
19891
c637b0fa 19892 * config/moxie/moxie.md: Define length attribute for all instructions.
6be6462e
AG
19893 (rCC): Define.
19894 (*b<cond:code>): Support limited branch ranges for new PC-relative
19895 branch instructions.
19896 * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
19897
caaabe0a
JJ
198982009-06-11 Jakub Jelinek <jakub@redhat.com>
19899
e5219642
JJ
19900 * config/i386/i386.c (min_insn_size): Use get_attr_length
19901 for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
19902 For __asm return 0.
19903
caaabe0a
JJ
19904 * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
19905 instead of emit_insn_before.
19906
a567fa6a
ILT
199072009-06-10 Ian Lance Taylor <iant@google.com>
19908
19909 PR bootstrap/40408
19910 * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
19911 GIMPLE_SWITCH.
19912
6a753d5f
RE
199132009-06-10 Revital Eres <eres@il.ibm.com>
19914
19915 * passes.c (init_optimization_passes): Reschedule
19916 predictive-commoning pass before complete unroll pass.
19917
a550d677
MJ
199182009-06-10 Martin Jambor <mjambor@suse.cz>
19919
19920 * cgraph.c (cgraph_node_can_be_local_p): New function.
19921 (cgraph_make_node_local): New function.
19922 * cgraph.h (cgraph_node_can_be_local_p): Declare.
19923 (cgraph_make_node_local): Declare.
19924
d8259b07
NF
199252009-06-10 Nathan Froyd <froydnj@codesourcery.com>
19926
19927 * tree.h (tree_base): Add packed_flag and user_align fields.
19928 Decrease size of spare field.
19929 (TYPE_USER_ALIGN): Use user_align from tree_base.
19930 (DECL_USER_ALIGN): Likewise.
19931 (TYPE_PACKED): Use packed_flag from tree_base.
19932 (DECL_PACKED): Likewise.
19933 (tree_type): Delete packed_flag and user_align fields. Widen
19934 precision field. Widen mode field and shuffle fields to align
19935 mode on an 8-bit boundary.
19936 (tree_decl_common): Delete decl_flag_1 and user_align fields.
19937 Renumber decl_flag_* fields. Fix comments. Widen
19938 decl_common_unused field.
c637b0fa 19939 (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
d8259b07
NF
19940 (DECL_EXTERNAL): Likewise.
19941 (DECL_BIT_FIELD): Likewise.
19942 (DECL_NONADDRESSABLE_P): Likewise.
19943 (TYPE_DECL_SUPRESS_DEBUG): Likewise.
19944 * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
19945
c2569604
ILT
199462009-06-10 Ian Lance Taylor <iant@google.com>
19947
19948 * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
19949 (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
19950 (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
19951 (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
19952 (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
19953 DEF_VEC_ALLOC_FUNC_P.
19954 (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
19955 (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
19956 DEF_VEC_ALLOC_FUNC_O.
19957 (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
19958 (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
19959 DEF_VEC_ALLOC_FUNC_I.
19960 (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
19961 (vec_stack_p_reserve_exact_1): Declare.
19962 (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
19963 (vec_stack_free): Declare.
19964 (VEC_stack_alloc): Define.
19965 (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
19966 (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
19967 (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
19968 * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P
19969 for void_p.
19970 (stack_vecs): New static variable.
19971 (vec_stack_p_reserve_exact_1): New function.
19972 (vec_stack_o_reserve_1): New static function.
19973 (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
19974 (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
19975 (vec_stack_free): New function.
19976 * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
19977 (VEC_df_ref_stack_alloc): Define.
19978 (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and
19979 DEF_VEC_ALLOC_P_STACK.
19980 (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
19981 (struct df_collection_rec): Change _vec fields to VEC. Remove
19982 _use fields.
19983 (df_free_collection_rec): Adjust for new fields.
19984 (df_insn_rescan): Use new df_collection_rec fields.
19985 (df_notes_rescan, df_canonize_collection_rec): Likewise.
19986 (df_ref_create_structure, df_ref_record): Likewise.
19987 (df_get_conditional_uses, df_get_call_refs): Likewise.
19988 (df_insn_refs_collect, df_bb_refs_collect): Likewise.
19989 (df_bb_refs_record, df_record_entry_block_defs): Likewise.
19990 (df_record_exit_block_uses, df_bb_verify): Likewise.
c637b0fa 19991 (df_swap_refs): Change ref_vec parameter to VEC. Change all callers.
c2569604
ILT
19992 (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
19993 Remove count parameter. Change return type to void. Change all
19994 callers.
19995 (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
19996 Remove count parameter. Change return type to void. Change all
19997 callers.
19998 (df_install_refs): Change old_vec parameter to VEC. Remove count
19999 parameter. Change all callers.
20000 (df_install_mws): Change old_vec parameter to VEC. Remove count
20001 parameter. Change all callers.
20002 (df_refs_verify): Change new_rec parameter to VEC. Change call
20003 callers.
20004 (df_mws_verify): Likewise.
20005
e7aae3e8
AO
200062009-06-10 Alexandre Oliva <aoliva@redhat.com>
20007
20008 * gcc.c (compare_files): Cast munmap argumento to caddr_t.
20009
412ac8d5
L
200102009-06-10 H.J. Lu <hongjiu.lu@intel.com>
20011
20012 * doc/extend.texi: Add description for __builtin_ia32_crc32di.
20013
cceb575c
AG
200142009-06-10 Anthony Green <green@moxielogic.com>
20015
20016 * config/moxie/crti.asm: New file.
20017 * config/moxie/crtn.asm: New file.
20018 * config/moxie/moxie.c: New file.
20019 * config/moxie/moxie.h: New file.
20020 * config/moxie/sfp-machine.h: New file.
20021 * config/moxie/moxie-protos.h: New file.
20022 * config/moxie/t-moxie: Created.
20023 * config/moxie/t-moxie-softfp: Created.
20024 * config/moxie/moxie.md: Created.
20025 * config/moxie/constraints.md: Created.
20026 * config.gcc: Add moxie support.
20027 * doc/md.texi (Machine Constraints): Add moxie constraints.
20028 * doc/contrib.texi (Contributors): Mention moxie port.
20029 * doc/install.texi (Specific): Mention the moxie port.
20030
bf406687
ILT
200312009-06-09 Ian Lance Taylor <iant@google.com>
20032
20033 * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
20034 compiling with C++.
20035 * optabs.c (optab_table): Only use designated initializers if
20036 HAVE_DESIGNATED_INITIALIZERS is defined.
20037 (convert_optab_table): Likewise.
20038 (init_optabs): Always call init_insn_codes if
20039 HAVE_DESIGNATED_INITIALIZERS is not defined.
20040
744aa42f
ILT
200412009-06-09 Ian Lance Taylor <iant@google.com>
20042
20043 * targhooks.c (default_builtin_vectorized_function): Change fn
20044 parameter to unsigned int.
20045 (default_builtin_vectorized_conversion): Change code parameter to
20046 unsigned int.
20047 (default_builtin_reciprocal): Change fn parameter to unsigned int.
20048 * targhooks.h: Update declarations.
20049 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
20050 parameter to unsigned int.
20051
20052 * c-typeck.c (comptypes_check_enum_int): New static function.
20053 (comptypes_internal): Add enum_and_int_p parameter. Change all
20054 callers.
20055 (comp_target_types): Add location parameter. Change all callers.
20056 (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
20057 Change all callers.
20058 (function_types_compatible_p, type_lists_compatible_p): Likewise.
20059 (build_conditional_expr): Add colon_loc parameter. Change all
20060 callers.
c637b0fa 20061 (convert_for_assignment): Add location parameter. Change all callers.
744aa42f
ILT
20062 * c-parser.c (c_parser_conditional_expression): Pass location of
20063 colon to build_conditional_expr.
20064 * c-tree.h (build_conditional_expr): Update declaration.
20065
bcbe3b25
SP
200662009-06-09 Sebastian Pop <sebastian.pop@amd.com>
20067
20068 * graphite.c: Revert previous patch.
20069
dc2a6925
SP
200702009-06-09 Sebastian Pop <sebastian.pop@amd.com>
20071
20072 PR bootstrap/40103
20073 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
20074
d81f5387
GS
200752009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com>
20076
8ed0ce99
L
20077 * tree-ssa-loop-prefetch.c
20078 (loop_prefetch_arrays): Fixed a portability problem in printf format
20079 string.
d81f5387 20080
8056eb4f
MJ
200812009-06-09 Martin Jambor <mjambor@suse.cz>
20082
20083 PR tree-optimization/40351
c637b0fa
UB
20084 * tree-sra.c (propagate_subacesses_accross_link): Check that a
20085 refrence to a potential artifical subaccess can be constructed.
8056eb4f 20086
bd9a3465
KK
200872009-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
20088
20089 * config/sh/sh-protos.h (sh_optimization_options): Declare.
20090 (sh_override_options): Likewise.
20091 * config/sh/sh.c: Include params.h.
20092 (sh_optimization_options): New.
20093 (sh_override_options): Likewise.
20094 * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
20095 (OVERRIDE_OPTIONS): Use sh_override_options.
20096
8845deab
JJ
200972009-06-08 Jakub Jelinek <jakub@redhat.com>
20098
20099 * dwarf2out.c (emit_cfa_remember): New variable.
20100 (add_fde_cfi): If emit_cfa_remember, recurse to add
20101 DW_CFA_remember_state first.
20102 (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
20103 instead just set emit_cfa_remember.
20104
9ea81b0c
JH
201052009-06-08 Jan Hubicka <jh@suse.cz>
20106
20107 PR debug/40126
20108 * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
20109
21ecdec5
JH
201102009-06-08 Jan Hubicka <jh@suse.cz>
20111
20112 PR middle-end/39834
c637b0fa
UB
20113 * cgraphunit.c (save_inline_function_body): Do not copy transform
20114 hooks for saved inline bodies.
21ecdec5
JH
20115 * ipa-passes.c (do_per_function): Do not add the hoks multiple times
20116 for given function.
20117
72e48218
AN
201182009-06-08 Adam Nemet <anemet@caviumnetworks.com>
20119
20120 * jump.c (returnjump_p): Handle delayed branches. Add missing
20121 function comment.
20122
6ce2002b
JH
201232009-06-08 Jan Hubicka <jh@suse.cz>
20124
20125 PR middle-end/40102
20126 * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
20127 original node might've been modified.
20128 * tree-inline.c (copy_bb): Do not assume that all clones are the same.
20129
eb9ed98a
JJ
201302009-06-08 Jakub Jelinek <jakub@redhat.com>
20131
20132 * tree-object-size.c (addr_object_size): Add OSI argument.
20133 Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
20134 (compute_builtin_object_size, expr_object_size): Adjust callers.
20135 (plus_stmt_object_size): Call addr_object_size instead of
20136 compute_builtin_object_size.
20137
db34470d 201382009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
8ed0ce99 20139 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
f100a4a8
UB
20140
20141 * tree-ssa-loop-prefetch.c
20142 (gather_memory_references): Introduced a counter for the number of
db34470d 20143 memory references.
f100a4a8 20144 (anything_to_prefetch_p): Introduced a counter for the number of
db34470d 20145 prefetches.
f100a4a8 20146 (is_loop_prefetching_profitable): New function with a cost model
db34470d 20147 for prefetching.
f100a4a8 20148 (loop_prefetch_arrays): Use the new cost model to determine if
db34470d 20149 prefetching is profitable.
f100a4a8 20150 * params.def (MIN_INSN_TO_PREFETCH_RATIO,
db34470d 20151 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
f100a4a8 20152 * params.h (MIN_INSN_TO_PREFETCH_RATIO,
db34470d 20153 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
f100a4a8 20154 * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
db34470d 20155 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
f100a4a8 20156
eb7adebc
MM
201572009-06-08 Michael Matz <matz@suse.de>
20158
20159 PR debug/40012
eb7adebc
MM
20160 * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
20161 partitions use the same.
20162 (expand_one_var): Deal with DECL_RTL sometimes begin set also
20163 for basevars of SSA_NAMEs.
20164 (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
20165 to not expand them twice.
20166 (gimple_expand_cfg): Clear DECL_RTL for those decls that have
20167 multiple places.
20168
2153915d
AO
201692009-06-08 Alexandre Oliva <aoliva@redhat.com>
20170
20171 * common.opt (fcompare-debug=, fcompare-debug-second): New.
20172 (fdump-final-insns=, gtoggle): New.
20173 * doc/invoke.texi: Document them.
20174 * final.c (rest_of_clean_state): Dump final insn stream.
20175 * gcc.c (invoke_as): Hook in -fcompare-debug.
20176 (static_spec_functions): Add compare-debug-dump-opt,
20177 compare-debug-self-opt and compare-debug-auxbase-opt.
20178 (compare_debug, compare_debug_second, compare_debug_opt): New.
20179 (switches_debug_check, n_switches_debug_check): New.
20180 (debug_auxbase_opt, debug_check_temp_file): New.
20181 (process_command): Handle -fno-compare-debug, -fcompare-debug and
20182 -fcompare-debug=*.
20183 (do_self_spec): Handle arguments after switches.
20184 (do_spec_1): Add .gk extension to temp file basenames for compare.
20185 (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
20186 (cc1_options): Use it instead of normal auxbase computation for
20187 the second compare-debug compilation.
20188 (compare_files): New.
20189 (main): Set up and implement compare debug mode.
20190 (compare_debug_dump_opt_spec_function): New.
20191 (compare_debug_self_opt_spec_function): New.
20192 (compare_debug_auxbase_opt_spec_function): New.
20193 * toplev.c (process_options): Handle flag_gtoggle,
20194 flag_dump_final_insns.
20195 * coverage.c (coverage_begin_output): Don't overwrite .gcno file
20196 during -fcompare-debug-second compilation.
20197
cdb88468
ILT
201982009-06-07 Ian Lance Taylor <iant@google.com>
20199
c637b0fa 20200 * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
cdb88468
ILT
20201 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
20202
20203 * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
20204 with no default node. Change warning with %H to warning_at.
20205 Don't clear warn_switch around case checking.
20206 * doc/invoke.texi (Warning Options): Clarify distinction between
20207 -Wswitch and -Wswitch-enum.
20208
4fe8e1a2
BRF
202092009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20210
20211 * tree-pass.h (TODO_update_ssa_any): Document internal use only.
20212
69952c1d
BRF
202132009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20214
20215 * gbl-ctors.h: Add header guard.
20216
b2ad0284
BRF
202172009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20218
20219 * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
20220 sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
20221 vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
20222 vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
20223 prototypes for removed functions.
20224 (expressions_equal_p): Move to ...
20225 * tree-ssa-sccvn.h: ... here and ...
20226 * matrix-reorg.c: ... adjust includes.
20227
c3df55f9
BRF
202282009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20229
20230 * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
20231
b5a7159f
BRF
202322009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20233
20234 * c-decl.c (finish_decl): Use bool for variable was_incomplete.
20235 (finish_function): Remove erroneous whitespace.
20236
95bca6b0
BRF
202372009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20238
2cd713a0
BRF
20239 * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
20240 (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
249eb506
BRF
20241
202422009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20243
20244 * errors.c (internal_error): Commentary typo fix.
20245 * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
20246 * tree-ssa-pre.c: Ditto.
95bca6b0 20247
2cd713a0
BRF
202482009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20249
20250 * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
20251 them is supposed to hold actual statements.
20252
5bca4e80
ILT
202532009-06-06 Ian Lance Taylor <iant@google.com>
20254
20255 * doc/extend.texi (Attribute Syntax): Document that C++ labels on
20256 empty statements can now have attributes.
20257
47ac44d6
SZ
202582009-06-05 Shujing Zhao <pearly.zhao@oracle.com>
20259
20260 * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
20261 * config/mips/mips.md: Ditto.
20262
19b905ce
NF
202632009-06-05 Nathan Froyd <froydnj@codesourcery.com>
20264
20265 * config/rs6000/eabi.asm (__eabi_convert): Don't define if
20266 _RELOCATABLE.
20267 (__eabi_uconvert): Likewise.
20268
16702e19
NF
202692009-06-05 Nathan Froyd <froydnj@codesourcery.com>
20270
20271 * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
20272 CFI_* definitions with IN_GCC.
20273
a735afd1
DE
202742009-06-05 David Edelsohn <edelsohn@gnu.org>
20275
20276 * xcoffout.h (xcoffout_source_line): Update prototype.
20277
26a347c5
KG
202782009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20279
20280 * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
20281 mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
20282
9f706f23
JJ
202832009-06-05 Jakub Jelinek <jakub@redhat.com>
20284
20285 PR middle-end/40340
20286 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
20287 inlined_function_outer_scope_p blocks for artificial inlines
20288 even at -g0/-g1.
20289 * tree.c (tree_nonartificial_location): Rewrite using
20290 block_nonartificial_location.
20291
8f439681
RE
202922009-06-05 Revital Eres <eres@il.ibm.com>
20293 Leehod Baruch <leehod@il.ibm.com>
20294
20295 * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
20296 (expand_expr_real_1): Remove comment.
20297 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
20298 Vectorize misaligned access when the target supports it.
c637b0fa 20299 (vect_supportable_dr_alignment): Check for unaligned access support.
8f439681
RE
20300 * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
20301 and remove asset.
20302
b89f8e3c
JB
203032009-06-05 Julian Brown <julian@codesourcery.com>
20304
20305 * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
20306 * config/arm/ieee754-sf.S (cmpsf2): Likewise.
20307
47d1f191
RG
203082009-06-05 Richard Guenther <rguenther@suse.de>
20309
20310 PR bootstrap/40350
20311 * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
20312 as possibly unused.
20313
9f706f23 203142009-06-05 Jakub Jelinek <jakub@redhat.com>
75707b28
JJ
20315
20316 * config/s390/s390.c (global_not_special_regno_p): New static inline.
20317 (save_gprs): Don't tell unwinder when a global register is saved.
20318 (s390_emit_epilogue): Emit needed epilogue unwind info.
20319
90f06248
AO
203202009-06-05 Alexandre Oliva <aoliva@redhat.com>
20321
20322 * dwarf2out.c (deferred_asm_name): New.
20323 (add_name_and_src_coords_attributes): Defer creation of
20324 DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
20325 computed yet.
20326 (move_linkage_attr): New.
20327 (dwarf2out_finish): Revisit deferrals and emit attributes at the
20328 right place.
20329
c10348e5
AO
203302009-06-05 Alexandre Oliva <aoliva@redhat.com>
20331
20332 * tree-nested.c (finalize_nesting_tree_1): Declare the
20333 frame_decl in the binding tree.
20334
6c52e687
CC
203352009-06-04 Cary Coutant <ccoutant@google.com>
20336
20337 * basic-block.h (struct basic_block_def): Add discriminator field.
20338 * dbxout.c (dbxout_source_line): Add new parameter. Change all
20339 callers.
20340 * debug.c (do_nothing_debug_hooks): Add additional entry.
20341 (debug_nothing_int_charstar_int): New function.
c637b0fa 20342 * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
6c52e687
CC
20343 (debug_nothing_int_charstar_int): New declaration.
20344 * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
20345 discriminator value in .loc directive.
20346 * final.c (last_discriminator): New variable.
20347 (discriminator): New variable.
20348 (final_start_function): Initialize above variables, pass current
20349 discriminator to debug hook.
20350 (notice_source_line): Check for discriminator change.
20351 * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
20352 * sdbout.c (sdbout_source_line): New parameter.
20353 * tree-cfg.c (struct locus_discrim_map): New structure type.
20354 (discriminator_per_locus): New hash table.
20355 (build_gimple_cfg): Allocate and free discriminator hash table.
20356 (make_edges): Call assign_discriminator.
20357 (locus_map_hash): New function.
20358 (locus_map_eq): New function.
20359 (next_discriminator_for_locus): New function.
20360 (same_line_p): New function.
20361 (assign_discriminator): New function.
20362 (make_cond_expr_edges): Call assign_discriminator.
20363 (make_gimple_switch_edges): Likewise.
20364 (first_non_label_stmt): New function.
20365 * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
20366 all callers.
20367 * xcoffout.c (xcoffout_source_line): Add new parameter.
20368
20369 * configure.ac (gcc_cv_as_discriminator): New configury check for
20370 gas support for discriminator.
20371 * configure: Regenerate.
20372 * config.in: Regenerate.
20373
e07e020b
RR
203742009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20375
20376 * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
20377 val after checking for integers.
20378
72fa3605
UB
203792009-06-04 Uros Bizjak <ubizjak@gmail.com>
20380
20381 * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
20382 X64_REGPARM_MAX.
20383 (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
20384 (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
20385 (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
20386 * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
20387 X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
20388 X64_SSE_REGPARM_MAX.
20389 * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
20390 X64_SSE_REGPARM_MAX.
20391
bdde878c
AO
203922009-06-04 Alexandre Oliva <aoliva@redhat.com>
20393
20394 * gcc.c (report_times_to_file): New.
20395 (execute): Implement it.
20396 (process_command): Support -time=.
20397 * doc/invoke.texi: Document it.
20398
2ce59df7
AO
203992009-06-04 Alexandre Oliva <aoliva@redhat.com>
20400
20401 * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
20402 that have value exprs.
20403
78bd9046
AO
204042009-06-04 Alexandre Oliva <aoliva@redhat.com>
20405
20406 * dwarf2asm.c (dw2_force_const_mem): Defer creation of
20407 declarations for constants until...
20408 (dw2_output_indirect_constant_1): ... this point.
20409
e63d4106
RE
204102009-06-04 Richard Earnshaw <rearnsha@arm.com>
20411
20412 PR target/10242
20413 * arm.md (arm_addsi3): Don't try to split an add with an
20414 eliminable register until after reload has completed.
20415
6bc7bc14
ILT
204162009-06-03 Ian Lance Taylor <iant@google.com>
20417
20418 * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
20419 * genattrtab.c (write_length_unit_log): Likewise.
20420 * genchecksum.c (dosum): Likewise.
20421 * gengtype.c (write_rtx_next): Likewise.
20422 (finish_root_table, write_roots): Likewise.
20423 * gimple.c (gimple_ops_offset_): Likewise.
20424 * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
20425 * config/arc/arc.c (arc_attribute_table): Likewise.
20426 * config/arm/arm.c (arm_attribute_table): Likewise.
20427 * config/avr/avr.c (avr_attribute_table): Likewise.
20428 * config/crx/crx.c (crx_attribute_table): Likewise.
20429 * config/m32r/m32r.c (m32r_attribute_table): Likewise.
20430 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
20431 * config/mcore/mcore.c (mcore_attribute_table): Likewise.
20432 * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
20433 * config/sh/sh.c (sh_attribute_table): Likewise.
20434 * config/sparc/sparc.c (sparc_attribute_table): Likewise.
20435 * config/spu/spu.c (spu_attribute_table): Likewise.
20436 * config/v850/v850.c (v850_attribute_table): Likewise.
20437
20438 * config/alpha/alpha.c (vms_attribute_table): Make static.
20439 * config/bfin/bfin.c (bfin_attribute_table): Likewise.
20440 * config/h8300/h8300.c (h8300_attribute_table): Likewise.
20441 * config/mips/mips.c (mips_attribute_table): Likewise.
20442
20443 * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
20444 $(SYSTEM_H).
20445 (cc1-checksum.o): Likewise.
20446
19d892fd
SE
204472009-06-03 Steve Ellcey <sje@cup.hp.com>
20448
20449 * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
20450
679f3354
JJ
204512009-06-03 Jakub Jelinek <jakub@redhat.com>
20452
ff35822b
JJ
20453 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
20454 insn if it is changing sp. Use gen_add3_insn instead of
20455 conditionally gen_addsi3 and gen_adddi3.
20456 (offset_below_red_zone_p): New static inline function.
20457 (rs6000_emit_epilogue): Emit needed epilogue unwind info.
20458 Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
20459 * config/rs6000/ppc-asm.h: Include auto-host.h.
20460 (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
20461 CFI_RESTORE): Define.
20462 * config/rs6000/crtresxgpr.asm: Add unwind info.
20463 * config/rs6000/crtresxfpr.asm: Likewise.
20464 * config/rs6000/crtresgpr.asm: Likewise.
20465 * config/rs6000/crtresfpr.asm: Likewise.
20466 * config/rs6000/crtsavgpr.asm: Likewise.
20467 * config/rs6000/crtsavfpr.asm: Likewise.
20468
dc6707b8
UB
20469 * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
20470 argument of DWARF2_FRAME_REG_OUT macros.
679f3354 20471
2e94c12d
JB
204722009-06-03 Julian Brown <julian@codesourcery.com>
20473
20474 * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
20475 words or less (including TImode) in core registers.
20476
3111cce0
RG
204772009-06-03 Richard Guenther <rguenther@suse.de>
20478
20479 PR middle-end/40328
20480 * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
20481
5e1b50f6
AB
204822009-06-03 Andrey Belevantsev <abel@ispras.ru>
20483
f100a4a8 20484 * statistics.c (statistics_counter_event): Do not record event
5e1b50f6 20485 in pass dump if its number == -1.
f100a4a8 20486 (curr_statistics_hash): Add assert that we never get passes
5e1b50f6
AB
20487 with static number == -1.
20488
6f11d690
RG
204892009-06-03 Richard Guenther <rguenther@suse.de>
20490 Andrey Belevantsev <abel@ispras.ru>
20491
f100a4a8 20492 * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
6f11d690
RG
20493 non-BLKmode arrays addressable.
20494
88961471
MK
204952009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
20496
20497 * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
20498 * config/m68k/m68k.h: ... here.
88961471 20499
9961eb45
MJ
205002009-06-03 Martin Jambor <mjambor@suse.cz>
20501
20502 PR tree-optimization/40323
20503 * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
20504 assignment.
20505
2f2c62a0
RG
205062009-06-03 Richard Guenther <rguenther@suse.de>
20507
20508 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
20509 consistently.
20510
d6ced3b7
SZ
205112009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
20512
20513 * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
20514 JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
20515 JUMP_TABLE_DATA_P where applicable.
20516 * config/sh/sh.c: Ditto.
20517 * config/sh/sh.h: Ditto.
20518 * config/sh/sh.md: Ditto.
20519 * config/sh/symbian.c: Ditto.
20520
f3afc8a7
UB
205212009-06-03 Uros Bizjak <ubizjak@gmail.com>
20522
20523 * config/i386/driver-i386.c (describe_cache): Optimize
20524 concatenation of strings. Use snprintf instead of sprintf.
20525 (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
20526 target when not compiling with GCC.
20527
1964788a
KK
205282009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
20529
20530 * config/sh/sh.c: Revert last change.
20531 (sh_expand_epilogue): Emit a blockage insn before the frame
20532 pointer adjustment unconditionally.
20533
8633c315
RS
205342009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
20535
20536 * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
20537 * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
20538 * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
20539 * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
20540 to COLLECT_GCC_OPTIONS.
20541
781a1758
RS
205422009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
20543
20544 * collect2.c (target_system_root): New variable.
20545 (main): Handle --sysroot=.
20546 (ignore_library): Strip the sysroot from the library path.
20547
dfb636dc
RS
205482009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
20549
20550 * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
20551 (collect2.o): Depend on collect2-aix.h.
20552 (collect2-aix.o): New rule.
20553 * collect2-aix.h: New file.
20554 * collect2-aix.c: Likewise.
20555 * collect2.c: Include collect2-aix.h. Don't undefine
20556 OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
20557 Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
20558 Use TARGET_AIX_VERSION instead of _AIX51.
20559 * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
20560 * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
20561 * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
20562 * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
20563 * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
20564
51136ae8
RS
205652009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
20566
20567 * collect2.c (ignore_library): Avoid premature post-increment
20568 and null deference.
20569
7f142d33
RS
205702009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
20571
20572 * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
20573 * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
20574 !CROSS_DIRECTORY_STRUCTURE alternative and use it for
20575 CROSS_DIRECTORY_STRUCTURE too.
20576 (LINK_LIBG_SPEC): Likewise.
20577 (LIB_SPEC): Add %R to sysroot paths.
20578 * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
20579 (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
20580 * config/rs6000/aix51.h: As for aix43.h.
20581 * config/rs6000/aix52.h: Likewise.
20582 * config/rs6000/aix53.h: Likewise.
20583 * config/rs6000/aix61.h: Likewise.
20584 * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
20585 to the beginning of sysroot paths.
20586
9e74b7d2
AO
205872009-06-02 Alexandre Oliva <aoliva@redhat.com>
20588
20589 * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
20590 INSN_LISTs that are out of the REG_NOTE range.
20591
a9f6ecee
AO
205922009-06-02 Alexandre Oliva <aoliva@redhat.com>
20593
20594 * loop-unroll.c (struct iv_to_split): Add pointer to next.
20595 (struct var_to_expand): Likewise.
20596 (struct opt_info): Add head and tail for linked lists of the above.
20597 (analyze_insn_to_expand_var): Initialize next.
20598 (analyze_iv_to_split_insn): Likewise.
20599 (analyze_insns_in_loop): Create linked lists.
20600 (allocate_basic_variable): Simplify for use without hash table.
20601 (insert_var_expansion_initialization): Likewise, make it type-safer.
20602 (combine_var_copies_in_loop_exit): Likewise.
20603 (apply_opt_in_copies): Walk lists rather than hash tables.
20604 (release_var_copies): Simplified and inlined by hand into...
20605 (free_opt_info): ... this function.
20606
69596c69
RG
206072009-06-02 Richard Guenther <rguenther@suse.de>
20608
20609 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
20610 for field decls.
20611
fe8a7779
AO
206122009-06-02 Alexandre Oliva <aoliva@redhat.com>
20613
20614 * cfgexpand.c (gimple_expand_cfg): Discard the source location
20615 only for builtins that are not overridden.
20616
1bcca2c5
AO
206172009-06-02 Alexandre Oliva <aoliva@redhat.com>
20618
20619 * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
20620 label string.
20621
8588f797
AO
206222009-06-02 Alexandre Oliva <aoliva@redhat.com>
20623
20624 * df-core.c (df_ref_debug): Honor -fdump-noaddr.
20625
45f39d78
AO
206262009-06-02 Alexandre Oliva <aoliva@redhat.com>
20627
20628 * combine.c (move_deaths): Compare LUIDs within the same BB only.
20629
2aa7c49b
AO
206302009-06-02 Alexandre Oliva <aoliva@redhat.com>
20631
20632 * common.opt (fdump-unnumbered-links): New.
20633 * doc/invoke.texi (-fdump-unnumbered-links): Document it.
20634 * print-rtl.c (flag_dump_unnumbered_links): New.
20635 (print_rtx): Test it.
20636
55b2829b
RE
206372009-06-02 Richard Earnshaw <rearnsha@arm.com>
20638
20639 * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
20640 push/pop multiple to 8-byte alignment.
e63d4106 20641
6c0d7021
JJ
206422009-06-01 Jakub Jelinek <jakub@redhat.com>
20643
0aa34d44
JJ
20644 * config/i386/i386.c (queued_cfa_restores): New static variable.
20645 (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
20646 functions.
20647 (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
20648 (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
20649 Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
20650 Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
20651 note unconditionally.
20652 (ix86_emit_restore_regs_using_mov): Likewise.
20653 (ix86_emit_restore_sse_regs_using_mov): Likewise.
20654 (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
20655 it through to ix86_emit_restore_reg_using_pop.
20656 (ix86_emit_leave): Add RED_OFFSET argument. Call
20657 ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
20658 instead of adding REG_CFA_OFFSET note unconditionally.
20659 (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
20660 the above functions. Call ix86_add_queued_cfa_restore_notes when
20661 needed.
20662
20663 * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
20664 force output of the label even for dwarf2out_do_cfi_asm.
20665 (add_fde_cfi): If -g2 and above and cfi might change CFA,
20666 force creation of CFI label and chain DW_CFA_set_loc jumping to it
20667 for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
20668 caller.
20669 (dwarf2out_stack_adjust, dwarf2out_frame_debug,
20670 dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
20671 dwarf2out_cfi_label callers.
20672 * tree.h (dwarf2out_cfi_label): Adjust prototype.
20673 * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
20674 Adjust dwarf2out_cfi_label callers.
20675 * config/vax/vax.c (vax_output_function_prologue): Likewise.
20676
604a6be9
JJ
20677 * config/i386/i386.h (struct machine_cfa_state,
20678 struct machine_function): Guard with ifndef USED_FOR_TARGET
20679 instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
20680
df0026a7
JJ
20681 PR other/40024
20682 * emutls.c (__emutls_get_address): Change arr->size to mean number
20683 of allocated arr->data entries instead of # of slots + 1.
20684
6c0d7021
JJ
20685 PR middle-end/40316
20686 * recog.c (peep2_reinit_state): New function.
20687 (peephole2_init_state): Use it at the end of a basic block and also
20688 when seeing a RTX_FRAME_RELATED_P insn.
20689
49df2fb8
SE
206902009-06-01 Steve Ellcey <sje@cup.hp.com>
20691
20692 * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
20693 fixuns_truncrfdi2): New.
20694 (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
20695 *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
20696 *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
20697 *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
20698 *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
20699 *recip_approx): Remove.
20700 (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
20701 moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
20702 divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
20703 move to div.md.
20704 * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
20705 setf_exp_rf): New.
20706
67165eb3
ILT
207072009-06-01 Ian Lance Taylor <iant@google.com>
20708
20709 * attribs.c (register_attribute): Use CONST_CAST.
20710 * collect2.c (main): Use CONST_CAST2.
20711 (scan_prog_file): Likewise.
20712 * gcc.c (process_command, main): Likewise.
20713 * toplev.c (toplev_main): Likewise.
20714
20715 * c-typeck.c (handle_warn_cast_qual): New static function,
20716 partially broken out of build_c_cast.
20717 (build_c_cast): Call handle_warn_cast_qual.
20718 * doc/invoke.texi (Warning Options): Document new effect of
20719 -Wcast-qual.
20720
e74fe492
AH
207212009-06-01 Aldy Hernandez <aldyh@redhat.com>
20722
20723 * diagnostic.c (diagnostic_build_prefix): Always print columns.
20724 (diagnostic_report_current_module): Print columns.
20725 * common.opt (flag_show_column): Enable by default.
20726
7eba2d1f
LM
207272009-06-01 Luis Machado <luisgpm@br.ibm.com>
20728
20729 * alias.c (find_base_term): Check for NULL term before returning.
20730
ee88d9aa
MK
207312009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
20732
20733 Revert due to PR40320:
ee88d9aa
MK
20734 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
20735 * calls.c (emit_library_call_value_1): Don't force_operand for move
20736 and push insns.
20737
324c9b02 207382009-06-01 Olivier Hainque <hainque@adacore.com>
40d0d9e4 20739 Eric Botcazou <ebotcazou@adacore.com>
324c9b02
OH
20740
20741 * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
20742 to be processed as a bitfield for constructor output purposes.
20743 * output.h (initializer_constant_valid_for_bitfield_p): Declare
20744 new function.
20745 * varasm.c (oc_local_state): New type, output_constructor
20746 local state to support communication with helpers.
20747 (oc_outer_state): New type, output_constructor outer state of
20748 relevance in recursive calls.
20749 (output_constructor_array_range): New output_constructor helper,
20750 extracted code for an array range element.
20751 (output_constructor_regular_field): New output_constructor helper,
20752 extracted code for an element that is not a bitfield.
20753 (output_constructor_bitfield): New output_constructor helper,
20754 extracted code for a bitfield element. Accept an OUTER state
20755 argument for recursive processing. Recurse on record or array
20756 CONSTRUCTOR values, possibly past noop conversions.
62295314 20757 (initializer_constant_valid_for_bitfield_p): New predicate. Whether
324c9b02
OH
20758 VALUE is a valid constant-valued expression for use in a static
20759 bit-field initializer.
62295314
OH
20760 (output_constructor): Rework to use helpers. Accept and honor an
20761 OUTER state argument for recursive calls. Return total size. Be
324c9b02
OH
20762 prepared for nested constructors initializing bitfields.
20763 (output_constant): Feed OUTER in calls to output_constructor.
20764
0980d7fe
MK
207652009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
20766
20767 * calls.c (emit_library_call_value_1): Don't force_operand for move
20768 and push insns.
20769
29661412
NC
207702009-06-01 Nick Clifton <nickc@redhat.com>
20771
20772 * doc/invoke.texi (IA-64 Options): Fix typo.
20773
e9dbe7bb
IR
207742009-06-01 Ira Rosen <irar@il.ibm.com>
20775
20776 PR tree-optimization/39129
7c8b1a77 20777 * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
e9dbe7bb 20778 printed message.
7c8b1a77 20779 (vect_do_peeling_for_loop_bound): Use
e9dbe7bb
IR
20780 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
20781 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
20782 (vect_loop_versioning): Likewise.
20783 (vect_create_cond_for_alias_checks): Fix indentation.
7c8b1a77 20784 * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
e9dbe7bb
IR
20785 macros.
20786 (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
20787 (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
7c8b1a77 20788 * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
e9dbe7bb 20789 "control flow in loop".
7c8b1a77 20790 (vect_estimate_min_profitable_iters): Use
e9dbe7bb
IR
20791 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
20792 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
20793 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
20794 (vect_create_data_ref_ptr): Don't mention array dimension in printing.
7c8b1a77
UB
20795 * tree-vect-stmts.c (vectorizable_store): Replace the check that the
20796 statement belongs to a group of strided accesses with the exact code
e9dbe7bb
IR
20797 check.
20798 (vectorizable_load): Likewise.
20799 * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
20800 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
20801
5ac69a80
GP
208022009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
20803
20804 * config/freebsd-stdint.h: New file.
20805 * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
20806 Add freebsd-stdint.h to tm_file.
20807
54b2b460
RE
208082009-06-01 Richard Earnshaw <rearnsha@arm.com>
20809
20810 * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
20811 (thumb2_extendhidi2): Likewise.
20812
a7ca77cf
ILT
208132009-05-31 Ian Lance Taylor <iant@google.com>
20814
f3afc8a7 20815 * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
c50d84e3
ILT
20816
208172009-05-31 Ian Lance Taylor <iant@google.com>
20818
f3afc8a7 20819 * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
a7ca77cf
ILT
20820 (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
20821 (ipa-reference.o): Depend upon gt-ipa-reference.h.
20822
1aec401e
JM
208232009-05-31 Jason Merrill <jason@redhat.com>
20824
20825 * tree-pretty-print.c (print_call_name): Take the callee, not the
f3afc8a7 20826 call itself. Make non-static. Use dump_function_name for functions.
1aec401e
JM
20827 (dump_generic_node): Adjust.
20828 * diagnostic.h: Declare print_call_name.
20829 * gimple-pretty-print.c (dump_gimple_call): Use it.
20830
ed7910bb
KK
208312009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
20832
20833 * config/sh/sh.md (ashldi3_std): New define_expand.
20834 (ashldi3): Use it.
20835
47ea8d4e
KK
208362009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
20837
20838 PR target/40313
20839 * config/sh/sh.c: Include debug.h.
20840 (sh_expand_epilogue): Emit a blockage insn before the frame
20841 pointer adjustment also when dwarf2out_do_frame returns true.
20842
405e8b49
RE
208432009-05-31 Richard Earnshaw <rearnsha@arm.com>
20844
20845 * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
20846 (thumb2_extendqidi2): New pattern.
20847
71ece343
IR
208482009-05-31 Ira Rosen <irar@il.ibm.com>
20849
20850 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
20851 mark phis for renaming.
20852 * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
20853 (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
20854 Call mark_sym_for_renaming.
20855 * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
f3afc8a7
UB
20856 * tree-vect-loop.c (vect_transform_loop): Remove
20857 vect_memsyms_to_rename initialization and a call to
20858 mark_set_for_renaming.
71ece343 20859
b3041944
JJ
208602009-05-31 Jakub Jelinek <jakub@redhat.com>
20861
20862 PR middle-end/40304
20863 * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
20864 frame related even if !set_cfa && style < 0.
20865
a1bda0d7
KT
208662009-05-30 Kai Tietz <kai.tietz@onevision.com>
20867
20868 * config/i386/mingw-tls.c: New file.
f3afc8a7
UB
20869 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
20870 * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
20871 defining _WIN32 but not __CYGWIN__.
a1bda0d7 20872
acd26225
KG
208732009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20874
20875 * configure.ac: Add MPC support.
f100a4a8
UB
20876
20877 * config.in, configure: Regenerate.
acd26225 20878
cd9c1ca8
RH
208792009-05-29 Richard Henderson <rth@redhat.com>
20880
20881 * cfgcleanup.c (try_crossjump_to_edge): Only skip past
20882 NOTE_INSN_BASIC_BLOCK.
20883 * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
20884 Duplicate NOTE_INSN_EPILOGUE_BEG notes.
20885 * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
20886 to be deleted.
20887 * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
20888 add in_use field.
20889 (add_cfi): Disable check redefining cfa away from drap.
20890 (lookup_cfa_1): Add remember argument; handle remember/restore.
20891 (lookup_cfa): Pass remember argument.
20892 (cfa_remember): New.
20893 (compute_barrier_args_size_1): Remove sibcall check.
20894 (dwarf2out_frame_debug_def_cfa): New.
20895 (dwarf2out_frame_debug_adjust_cfa): New.
20896 (dwarf2out_frame_debug_cfa_offset): New.
20897 (dwarf2out_frame_debug_cfa_register): New.
20898 (dwarf2out_frame_debug_cfa_restore): New.
20899 (dwarf2out_frame_debug): Handle REG_CFA_* notes.
20900 (dwarf2out_begin_epilogue): New.
20901 (dwarf2out_frame_debug_restore_state): New.
20902 (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
20903 DW_CFA_restore_state.
20904 (output_cfi_directive): Likewise.
20905 (convert_cfa_to_fb_loc_list): Likewise.
20906 (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
20907 * dwarf2out.h: Update.
20908 * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
20909 (copy_insn_1): Early out for null.
20910 * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
20911 and dwarf2out_frame_debug_restore_state.
20912 * function.c (prologue, epilogue, sibcall_epilogue): Remove.
20913 (prologue_insn_hash, epilogue_insn_hash): New.
20914 (free_after_compilation): Adjust freeing accordingly.
20915 (record_insns): Create hash table if needed; push insns into
20916 hash instead of array.
20917 (maybe_copy_epilogue_insn): New.
20918 (contains): Search hash table instead of array.
20919 (sibcall_epilogue_contains): Remove.
20920 (thread_prologue_and_epilogue_insns): Split eh_return insns
20921 and mark them as epilogues.
20922 (reposition_prologue_and_epilogue_notes): Rewrite epilogue
20923 scanning in terms of basic blocks.
20924 * insn-notes.def (CFA_RESTORE_STATE): New.
20925 * jump.c (returnjump_p_1): Accept EH_RETURN.
20926 (eh_returnjump_p_1, eh_returnjump_p): New.
20927 * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
20928 CFA_REGISTER, CFA_RESTORE): New.
20929 * rtl.def (EH_RETURN): New.
20930 * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
20931
20932 * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
20933 (eh_return_internal): Use eh_return rtx; split w/ epilogue.
20934
20935 * config/i386/i386.c (gen_push): Update cfa state.
20936 (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
20937 add a CFA_ADJUST_CFA note.
20938 (ix86_dwarf_handle_frame_unspec): Remove.
20939 (ix86_expand_prologue): Update cfa state.
20940 (ix86_emit_restore_reg_using_pop): New.
20941 (ix86_emit_restore_regs_using_pop): New.
20942 (ix86_emit_leave): New.
20943 (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
20944 (ix86_expand_epilogue): Add notes for unwinding the epilogue.
20945 * config/i386/i386.h (struct machine_cfa_state): New.
20946 (ix86_cfa_state): New.
20947 * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
20948 (eh_return_internal): Merge from eh_return_<mode>,
20949 use eh_return rtx, split w/ epilogue.
20950
72b5577d
ILT
209512009-05-29 Ian Lance Taylor <iant@google.com>
20952
20953 * builtins.c (validate_gimple_arglist): Don't use va_arg with
20954 enum type.
20955 * calls.c (emit_library_call_value_1): Likewise.
20956
20957 * c-typeck.c (c_build_va_arg): New function.
20958 * c-tree.h (c_build_va_arg): Declare.
20959 * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
20960 instead of build_va_arg.
20961
7a2faca1
EB
209622009-05-29 Eric Botcazou <ebotcazou@adacore.com>
20963
20964 * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
20965 (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
20966 (ptr_difference_cost): Use affine combinations to compute it.
20967 (difference_cost): Likewise.
20968 (get_computation_cost_at): Compute more accurate cost for addresses
20969 if the ratio is a multiplier allowed in addresses.
20970 For non-addresses, consider that an additional offset or symbol is
20971 added only once.
20972
725fd454
JJ
209732009-05-29 Jakub Jelinek <jakub@redhat.com>
20974
a0987204
JJ
20975 * config/i386/i386.c (ix86_decompose_address): Avoid useless
20976 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
20977
725fd454
JJ
20978 * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
20979 TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
20980 (prefix_rex): For UNIT_MMX don't imply the prefix by default
20981 if MODE_DI.
20982 (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
20983 to 1 for TYPE_SSE{IADD1,CVT1}.
20984 (prefix_vex_imm8): Removed.
20985 (length_vex): Only pass 1 as second argument to
20986 ix86_attr_length_vex_default if prefix_extra is 0.
20987 (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
20988 (length): For prefix vex computation use length_immediate
20989 attribute instead of prefix_vex_imm8.
20990 (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
20991 addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
20992 *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
20993 *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
20994 (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
20995 *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
20996 a space in between the operands.
20997 (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
20998 if one operand is 0xff and the other one si, di, bp or sp.
20999 (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
21000 other one si, di, bp or sp.
21001 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
21002 (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
21003 type and mode attributes.
21004 (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
21005 (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
21006 prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
21007 (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
21008 prefix_data16 attribute iff MODE_DF.
21009 (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
21010 (fix_trunc<mode>di_sse): Set prefix_rex attribute.
21011 (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
21012 constm128_operand in length_immediate computation.
21013 (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
21014 (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
21015 (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
21016 length_immediate attribute to 1.
21017 (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
21018 (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
21019 for certain alternatives.
21020 (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
21021 prefix_data16 attribute if MODE_V1DF.
21022 (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
21023 length_immediate to 1.
21024 (set_got_rex64, set_rip_rex64): Remove length attribute, set
21025 length_address to 4, set mode attribute to MODE_DI.
21026 (set_got_offset_rex64): Likewise. Set length_immediate to 0.
21027 (fxam<mode>2_i387): Set length attribute to 4.
21028 (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
21029 *prefetch_3dnow_rex): Override length_address attribute.
21030 (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
21031 attributes.
21032 * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
21033 (constm128_operand): Removed.
21034 * config/i386/i386.c (memory_address_length): For
21035 disp && !index && !base in 64-bit mode account for SIB byte if
21036 print_operand_address can't optimize disp32 into disp32(%rip)
21037 and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
21038 for fs: or gs: segment.
21039 (ix86_attr_length_immediate_default): When checking if shortform
21040 is possible, truncate immediate to the length of the non-shortened
21041 immediate.
21042 (ix86_attr_length_address_default): Ignore MEM_P operands
21043 with X constraint.
21044 (ix86_attr_length_vex_default): Only check for DImode on
21045 GENERAL_REG_P operands.
21046 * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
21047 prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
21048 (sse_cvttps2pi): Clear prefix_rep attribute.
21049 (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
21050 attribute.
21051 (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
21052 (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
21053 *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
21054 iff operand 2 is const_int_operand.
21055 (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
21056 sse2_shufpd_<mode>): Set length_immediate attribute to 1.
21057 (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
21058 instead of vex.
21059 (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
21060 prefix_data16.
21061 (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
21062 prefix_data16 attribute for movlpd and movhpd instructions.
21063 (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
21064 length_immediate for shufpd instruction.
21065 (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
21066 (avx_cmpp<avxmodesuffixf2c><mode>3,
21067 avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
21068 <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
21069 avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
f3afc8a7 21070 *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
725fd454
JJ
21071 (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
21072 (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
21073 (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
21074 prefix_data16 attribute for the first alternative to 1.
21075 (*avx_loadlps): Override length_immediate for the first alternative.
21076 (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
21077 attributes for second alternative.
21078 (*vec_concatv2sf_sse4_1): Override length_immediate and
21079 prefix_data16 attributes for second alternative.
21080 (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
21081 vec_extract_hi_<mode>, vec_extract_lo_v16hi,
21082 vec_extract_hi_v16hi, vec_extract_lo_v32qi,
21083 vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
21084 (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
21085 prefix_data16 and length_immediate to 1.
21086 (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
21087 to 1.
21088 (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
f3afc8a7 21089 prefix_extra attribute for variants that don't have 0f prefix alone.
725fd454
JJ
21090 (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
21091 (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
21092 *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
21093 *sse4_1_pextrd): Set length_immediate to 1.
21094 (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
21095 (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
21096 to 1.
21097 (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
21098 *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
21099 length_immediate to 1 for second alternative.
21100 (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
21101 prefix_extra and length_immediate attributes for the first
21102 alternative.
21103 (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
21104 first alternative.
21105 (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
21106 to 1 for the first and third alternative.
21107 (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
21108 alternative.
21109 (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
21110 attribute.
21111 (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
21112 attribute to 0.
21113 (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
21114 *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
21115 *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
21116 *avx_psign<mode>3): Set prefix_extra attribute to 1.
21117 (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
21118 ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
21119 ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
21120 ssse3_psign<mode>3): Override prefix_rex attribute.
f3afc8a7 21121 (*avx_palignrti): Override prefix_extra and length_immediate to 1.
725fd454
JJ
21122 (ssse3_palignrti): Override length_immediate to 1.
21123 (ssse3_palignrdi): Override length_immediate to 1, override
21124 prefix_rex attribute.
f3afc8a7 21125 (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
725fd454
JJ
21126 (sse4a_extrqi): Override length_immediate to 2.
21127 (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
21128 (sse4a_insertq): Override prefix_data16 to 0.
21129 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
21130 avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
21131 avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
21132 *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
21133 avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
21134 and length_immediate to 1.
21135 (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
21136 sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
21137 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
21138 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
21139 and length_immediate to 1.
21140 (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
21141 (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
21142 (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
21143 avx_ptest256): Override prefix_extra to 1.
21144 (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
21145 Override prefix_data16 and length_immediate to 1.
21146 (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
21147 sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
21148 sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
21149 sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
21150 prefix_data16 to 0 and prefix_extra to 2.
21151 (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
21152 (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
21153 attribute.
21154 (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
21155 sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
21156 Override prefix_data16 and prefix_rep to 0, length_immediate to 1
21157 and prefix_extra to 2.
21158 (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
21159 prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
21160 (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
21161 avx_vpermilvar<mode>3,
21162 avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
21163 avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
21164 avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
21165 avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
21166 Override prefix_extra to 1.
21167 (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
21168 (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
21169 vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
21170 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
21171 prefix_extra and length_immediate to 1.
21172 (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
21173 modrm to 0.
21174 (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
21175 to 1 for the first alternative.
21176 * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
21177 prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
21178 cases.
21179 (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
21180 *movv2sf_internal_avx, *movv2sf_internal): Override
21181 prefix_rep attribute for certain alternatives.
21182 (*mov<mode>_internal): Override prefix_rep or prefix_data16
21183 attributes for certain alternatives.
21184 (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
21185 attributes for certain alternatives.
21186 (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
21187 *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
21188 mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
21189 mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
21190 *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
21191 mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
21192 mmx_pswapdv2si2): Set prefix_extra attribute to 1.
21193 (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
21194 length_immediate to 1 if operand 2 is const_int_operand.
21195 (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
f3afc8a7 21196 *vec_extractv2si_1): Set length_immediate attribute to 1.
725fd454
JJ
21197 (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
21198 using old 3DNOW insn rather than SSE/3DNOW_A.
21199 (mmx_emms, mmx_femms): Clear modrm attribute.
21200
0674b9d0
MJ
212012009-05-29 Martin Jambor <mjambor@suse.cz>
21202
21203 * tree-sra.c: New implementation of SRA.
21204
21205 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
21206 (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
21207 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
21208 * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
21209 (SRA_MAX_STRUCTURE_COUNT): Removed.
21210 (SRA_FIELD_STRUCTURE_RATIO): Removed.
21211 * doc/invoke.texi (sra-max-structure-size): Removed.
21212 (sra-field-structure-ratio): Removed.
21213
616f21df
JJ
212142009-05-29 Jakub Jelinek <jakub@redhat.com>
21215
21216 PR middle-end/40291
21217 * builtins.c (expand_builtin_memcmp): Convert len to sizetype
21218 before expansion.
21219
da7ba240
AB
212202009-05-29 Andrey Belevantsev <abel@ispras.ru>
21221
21222 PR rtl-optimization/40101
21223 * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
21224 seqno. Adjust comment.
f100a4a8 21225 * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
da7ba240
AB
21226 inserting bookkeeping before a jump, the jump is not scheduled.
21227 When no positive seqno found, provide a value. Add comment.
21228
71dcd609
RG
212292009-05-29 Richard Guenther <rguenther@suse.de>
21230
21231 * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
21232 short-cutting on the first component.
21233
a900ae6b
JJ
212342009-05-29 Jakub Jelinek <jakub@redhat.com>
21235
21236 PR middle-end/39958
21237 * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
21238 for trees other than decls/types.
21239
821bb7f8
RG
212402009-05-29 Richard Guenther <rguenther@suse.de>
21241
21242 * tree-ssa-operands.c (get_expr_operands): Do not handle
21243 INDIRECT_REFs in the handled-component case. Remove
21244 unused get_ref_base_and_extent case.
21245 * tree-dfa.c (get_ref_base_and_extent): Avoid calling
21246 tree_low_cst and host_integerp where possible.
21247 * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
21248 codes for equivalence.
21249 * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
21250
e997fb9c
DB
212512009-05-29 David Billinghurst <billingd@gcc.gnu.org>
21252
21253 * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
f100a4a8 21254 to tmake_file for i[34567]86-*-cygwin*.
e997fb9c 21255
58195b74
JJ
212562009-05-29 Jakub Jelinek <jakub@redhat.com>
21257
21258 PR target/40017
21259 * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
21260 (altivec_categorize_keyword, init_vector_keywords,
21261 rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
21262 similar to bool.
21263
055df276
KT
212642009-05-29 Kai Tietz <kai.tietz@onevision.com>
21265
21266 * tree.c (handle_dll_attribute): Check if node is
21267 of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
21268
f5939ef3
RE
212692009-05-29 Richard Earnshaw <rearnsha@arm.com>
21270
21271 * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
21272 component.
21273 (thumb2_zero_extendqidi2): Likewise.
21274
c185de40
KK
212752009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
21276
21277 * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
21278 instead of gen_movrt.
21279 * config/sh/sh.md (movrt): Remove.
21280
bf3c6caf
SE
212812009-05-28 Steve Ellcey <sje@cup.hp.com>
21282
f3afc8a7 21283 * doc/invoke.texi (IA-64 Options):
f100a4a8 21284 Add -msdata, -mfused-madd, -mno-inline-float-divide,
bf3c6caf
SE
21285 -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
21286 -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
21287 -msched-prefer-non-control-spec-insns,
21288 -msched-stop-bits-after-every-cycle,
21289 -msched-count-spec-in-critical-path,
21290 -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
f3afc8a7 21291 -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
bf3c6caf
SE
21292 Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
21293 and -msched-spec-verbose.
21294
8a66e987
JM
212952009-05-28 Joseph Myers <joseph@codesourcery.com>
21296
f3afc8a7 21297 * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
8a66e987
JM
21298 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
21299 error if used.
21300 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
21301
b45d2719
RG
213022009-05-28 Richard Guenther <rguenther@suse.de>
21303
21304 * tree-ssa-alias.c (ao_ref_init): New function.
21305 (ao_ref_base): Likewise.
21306 (ao_ref_base_alias_set): Likewise.
21307 (ao_ref_alias_set): Likewise.
21308 (refs_may_alias_p_1): Change signature.
21309 (refs_may_alias_p): Adjust.
21310 (refs_anti_dependent_p): Likewise.
21311 (refs_output_dependent_p): Likewise.
21312 (call_may_clobber_ref_p_1): Change signature.
21313 (call_may_clobber_ref_p): Adjust.
21314 (stmt_may_clobber_ref_p_1): New function split out from ...
21315 (stmt_may_clobber_ref_p): ... here.
21316 (maybe_skip_until): Adjust signature.
21317 (get_continuation_for_phi): Likewise.
21318 (walk_non_aliased_vuses): Likewise.
21319 * tree-ssa-alias.h (struct ao_ref_s): New structure type.
21320 (ao_ref_init): Declare.
21321 (ao_ref_base): Likewise.
21322 (ao_ref_alias_set): Likewise.
21323 (stmt_may_clobber_ref_p_1): Likewise.
21324 (walk_non_aliased_vuses): Adjust.
21325 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
21326 (get_ref_from_reference_ops): remove.
21327 (vn_reference_lookup_2): Adjust signature.
21328 (vn_reference_lookup_3): Do not re-build trees. Handle unions.
f3afc8a7 21329 (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
b45d2719
RG
21330 (vn_reference_lookup): Adjust.
21331 (vn_reference_insert): Likewise.
21332 (vn_reference_insert_pieces): Adjust signature.
21333 (visit_reference_op_call): Adjust.
21334 * tree-ssa-pre.c (get_expr_type): Simplify.
21335 (phi_translate_1): Adjust.
21336 (compute_avail): Likewise.
21337 (translate_vuse_through_block): Do not re-build trees.
21338 (value_dies_in_block_x): Likewise.
21339 * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
21340 fields.
21341 (vn_reference_lookup_pieces): Adjust declaration.
21342 (vn_reference_insert_pieces): Likewise.
21343
554223b6
BK
213442009-05-28 Benjamin Kosnik <bkoz@redhat.com>
21345
21346 * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
21347 with checking disabled.
21348
233215fe
DK
213492009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
21350
21351 PR target/37216
21352
21353 * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
21354 macro definition for support of three-operand format aligned
21355 .comm directive in assembler on cygwin/pe/mingw target OS.
21356 * configure: Regenerate.
21357 * config.h: Regenerate.
21358
21359 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
21360 aligned form of .comm directive if -mpe-aligned-commons is in effect.
21361 * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
21362
21363 * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
21364 * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
21365
24adb18f
IR
213662009-05-28 Ira Rosen <irar@il.ibm.com>
21367
21368 PR tree-optimization/40254
21369 * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
21370 in analysis of basic blocks.
21371
2c5bfdf7
AN
213722009-05-28 Adam Nemet <anemet@caviumnetworks.com>
21373
21374 PR middle-end/33699
f3afc8a7 21375 * target.h (struct gcc_target): Fix indentation. Add const_anchor.
2c5bfdf7
AN
21376 * target-def.h (TARGET_CONST_ANCHOR): New macro.
21377 (TARGET_INITIALIZER): Use it.
21378 * cse.c (CHEAPER): Move it up to the other macros.
21379 (insert): Rename this ...
21380 (insert_with_costs): ... to this. Add cost parameters. Update
21381 function comment.
21382 (insert): New function. Call insert_with_costs.
21383 (compute_const_anchors, insert_const_anchor, insert_const_anchors,
21384 find_reg_offset_for_const, try_const_anchors): New functions.
21385 (cse_insn): Call try_const_anchors. Adjust cost of src_related
21386 when using a const-anchor. Call insert_const_anchors.
f3afc8a7 21387 * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
2c5bfdf7
AN
21388 * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
21389
9e6aced0
AO
213902009-05-28 Alexandre Oliva <aoliva@redhat.com>
21391
21392 * tree-inline.c (remap_decls): Enable nonlocalized variables
21393 when not optimizing.
21394
89fbbe4e
AO
213952009-05-28 Alexandre Oliva <aoliva@redhat.com>
21396
21397 * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
21398 Simplify other tests involving optimize.
21399
e455776a
TT
214002009-05-27 Tom Tromey <tromey@redhat.com>
21401
21402 * unwind-dw2.c (_Unwind_DebugHook): New function.
21403 (uw_install_context): Call _Unwind_DebugHook.
21404
cea32bca
TT
214052009-05-27 Tom Tromey <tromey@redhat.com>
21406
21407 * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
21408
c607156f
ILT
214092009-05-27 Ian Lance Taylor <iant@google.com>
21410
21411 * Makefile.in (LINKER, LINKER_FLAGS): Define.
21412 (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
21413 (ALL_LINKERFLAGS): Define.
21414 (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
21415 (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
21416 (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
21417 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
21418 (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
21419 $(LINKER_FOR_BUILD).
21420 (build/gcov-iov$(build_exeext)): Likewise.
21421
ec0a1343
JB
214222009-05-27 Julian Brown <julian@codesourcery.com>
21423
21424 * gcse.c (target.h): Include.
21425 (can_assign_to_reg_without_clobbers_p): Check that the target allows
21426 copy of argument to a pseudo register.
21427
ac80ba07
DN
214282009-05-27 Diego Novillo <dnovillo@google.com>
21429
21430 * tree-ssa-live.c (dump_scope_block): Document arguments.
21431 (dump_scope_blocks): Document.
21432 (debug_scope_blocks): New.
21433 * tree-flow.h (debug_scope_blocks): Declare.
21434
d1803a17
DC
214352009-05-21 Denis Chertykov <denisc@overta.ru>
21436
f3afc8a7 21437 * doc/contrib.texi (Contributors): Add myself to the list.
d1803a17 21438
51fb7760 214392009-05-27 Olivier Hainque <hainque@adacore.com>
ceadb728
OH
21440
21441 * expr.c (target_align): New function. Alignment the TARGET of an
21442 assignment may be assume to have.
21443 (highest_pow2_factor_for_target): Use it instead of relying on
21444 immediate tree attributes of TARGET, not necessarily honored when
21445 intermediate bitfields are involved.
f100a4a8 21446
634fa334
L
214472009-05-27 H.J. Lu <hongjiu.lu@intel.com>
21448
21449 PR target/40266
21450 * config/i386/driver-i386.c (host_detect_local_cpu): Support
21451 AVX, SSE4, AES, PCLMUL and POPCNT.
21452
65332587
DN
214532009-05-27 Diego Novillo <dnovillo@google.com>
21454
21455 * tree-pretty-print.c (dump_location): New.
21456 (dump_generic_node): Call it.
21457 Factor code to handle BLOCK nodes ...
21458 (dump_block_node): ... here.
21459
3e17e31d
RAE
214602009-05-27 Rafael Avila de Espindola <espindola@google.com>
21461
f3afc8a7
UB
21462 * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
21463 with it.
3e17e31d
RAE
21464 * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
21465 included.
21466 * gcc-plugin.h: Include config.h and system.h.
21467 (IN_GCC): Define if not defined.
21468
5e370570
HPN
214692009-05-27 Hans-Peter Nilsson <hp@axis.com>
21470
21471 PR middle-end/40249
21472 * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
21473 with -fno-inline.
21474
d000f0d9
SZ
214752009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
21476
21477 * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
21478 applicable.
21479 * config/m32r/m32r.h: Ditto.
21480 * config/m32r/m32r.md: Ditto.
21481 * config/m32r/predicates.md: Ditto.
21482
82f331ff
AO
214832009-05-27 Alexandre Oliva <aoliva@redhat.com>
21484
21485 * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
21486
ae2392a9
BS
214872009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
21488
21489 * doc/plugins.texi
21490 (Loading plugins): typo.
21491 (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
21492 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
21493 (Interacting with the GCC Garbage Collector): Added new section.
21494 (Giving information about a plugin): Added new section for
21495 PLUGIN_INFO.
ae2392a9
BS
21496 * ggc.h (ggc_register_root_tab): Added declaration.
21497 * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
21498 (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
21499 (register_callback): Improved comment in declaration.
f3afc8a7
UB
21500 * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
21501 (extra_root_vec) Added static variable for dynamic roots registration.
ae2392a9
BS
21502 (ggc_register_root_tab) Added new routine.
21503 (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
21504 PLUGIN_GGC_MARKING event.
21505 * ggc-zone.c: Include plugin.h.
21506 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
21507 * ggc-page.c: Include plugin.h.
21508 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
21509 * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
21510 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
21511 (register_callback): check lack of callbacks for
21512 pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
21513 PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
21514 (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
21515 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
21516 * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
21517 dependency on plugin.h.
21518 (plugin.o): Added dependency on ggc.h...
21519
f0cfd3a8
RG
215202009-05-26 Richard Guenther <rguenther@suse.de>
21521
21522 PR middle-end/40248
21523 Revert
21524 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
21525 with mismatched comparison modes.
21526
21527 * expr.c (expand_expr_real_1): Expand the operand of a
21528 VIEW_CONVERT_EXPR in its natural mode.
21529
7980bfb8
ILT
215302009-05-26 Ian Lance Taylor <iant@google.com>
21531
21532 * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
21533 (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
21534 (ALL_COMPILERFLAGS): Define.
21535 (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
21536 (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
21537 (collect2$(exeext), collect2.o): Likewise.
21538 (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
21539 (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
21540 ($(out_object_file), mips-tfile, mips-tdump): Likewise.
21541 (libbackend.o, intl.o, cppdefault.o): Likewise.
21542 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
21543 (build/%.o): Use $(COMPILER_FOR_BUILD).
21544 (build/gen%$(build_exeext)): Likewise.
21545 (build/gcov-iov$(build_exeext)): LIkewise.
21546 * config/t-darwin (darwin.o): Use $(COMPILER).
21547 (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
21548 * config/t-sol2 (sol2-c.o): Likewise.
21549 (sol2.o): Likewise.
21550 * config/t-vxworks (vxworks.o): Likewise.
21551 * config/x-darwin (host-darwin.o): Likewise.
21552 * config/x-hpux (host-hpux.o): Likewise.
21553 * config/x-linux (host-linux.o): Likewise.
21554 * config/x-solaris (host-solaris.o): Likewise.
21555 * config/alpha/x-alpha (driver-alpha.o): Likewise.
21556 * config/arm/t-arm (arm-c.o): Likewise.
21557 * config/arm/t-pe (pe.o): Likewise.
21558 * config/arm/t-wince-pe (pe.o): Likewise.
21559 * config/i386/t-cygming (winnt.o): Likewise.
21560 (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
21561 * config/i386/t-cygwin (cygwin1.o): Likewise.
21562 (cygwin2.o): Likewise.
21563 * config/i386/t-i386 (i386-c.o): Likewise.
21564 * config/i386/t-interix (winnt.o): Likewise.
21565 * config/i386/t-netware (netware.o): Likewise.
21566 * config/i386/t-nwld (nwld.o): Likewise.
21567 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
21568 * config/i386/x-i386 (driver-i386.o): Likewise.
21569 * config/i386/x-cygwin (host-cygwin.o): Likewise.
21570 * config/i386/x-mingw32 (host-mingw32.o): Likewise.
21571 * config/ia64/t-ia64 (ia64-c.o): Likewise.
21572 * config/m32c/t-m32c (m32c-pragma.o): Likewise.
21573 * config/mips/x-native (driver-native.o): Likewise.
21574 * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
21575 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
21576 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
21577 * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
21578 * config/score/t-score-elf (score7.o): Likewise.
21579 (score3.o): Likewise.
21580 * config/sh/t-sh (sh-c.o): Likewise.
21581 * config/sh/t-symbian (sh-c.o): Likewise.
21582 (symbian.o): Likewise.
21583 * config/spu/t-spu-elf (spu-c.o): Likewise.
21584 * config/v850/t-v850 (v850-c.o): Likewise.
21585 * config/v850/t-v850e (v850-c.o): Likewise.
21586
23977d3c
RG
215872009-05-26 Richard Guenther <rguenther@suse.de>
21588
21589 PR tree-optimization/40122
21590 * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
21591 VECTOR_CSTs if possible.
21592 (fold_gimple_assign): Likewise.
21593
3d62b895
RG
215942009-05-26 Richard Guenther <rguenther@suse.de>
21595
21596 PR middle-end/40252
21597 * fold-const.c (fold_binary): Use the correct types for building
21598 rotates.
21599
12346147
RG
216002009-05-26 Richard Guenther <rguenther@suse.de>
21601
21602 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
21603 redundant calls to merge_alias_info.
21604 (bump_vector_ptr): Likewise.
21605 * tree-ssa-copy.c (merge_alias_info): Remove.
21606 (replace_exp_1): Remove call to merge_alias_info.
21607 (propagate_tree_value): Likewise.
21608 (fini_copy_prop): Propagate points-to info.
21609 * tree-flow.h (merge_alias_info): Remove.
21610
807d5e6f
HS
216112009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
21612
21613 * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
21614
85057983
JH
216152009-05-25 Jan Hubicka <jh@suse.cz>
21616
21617 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
21618 * cgraph.h (struct inline_summary): New filed self_wize,
21619 size_inlining_benefit, self_time and time_inlining_benefit.
21620 (struct cgraph_global_info): Replace insns by time ans size fields.
21621 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
21622 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
21623 (ipcp_update_callgraph): Do not touch function bodies.
21624 * ipa-inline.c: Include except.h
21625 (MAX_TIME): New constant.
21626 (overall_insns): Remove.
21627 (leaf_node_p): New.
21628 (overall_size, max_benefit): New static variables.
21629 (cgraph_estimate_time_after_inlining): New function.
21630 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
21631 (cgraph_clone_inlined_nodes): Update size.
21632 (cgraph_mark_inline_edge): Update size.
21633 (cgraph_estimate_growth): Use size info.
21634 (cgraph_check_inline_limits): Check size.
21635 (cgraph_default_inline_p): Likewise.
21636 (cgraph_edge_badness): Compute badness based on benefit and size cost.
21637 (cgraph_decide_recursive_inlining): Check size.
f3afc8a7
UB
21638 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
21639 and times.
85057983
JH
21640 (cgraph_decide_inlining): Likewise.
21641 (cgraph_decide_inlining_incrementally): Likewise; honor
21642 PARAM_EARLY_INLINING_INSNS.
21643 (likely_eliminated_by_inlining_p): New predicate.
21644 (estimate_function_body_sizes): New function.
21645 (compute_inline_parameters): Use it.
21646 * except.c (must_not_throw_labels): New function.
21647 * except.h (must_not_throw_labels): Declare.
21648 * tree-inline.c (init_inline_once): Kill inlining_weigths
21649 * tree-ssa-structalias.c: Avoid uninitialized warning.
21650 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
21651 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
21652 (PARAM_INLINE_CALL_COST): Remove.
21653 (PARAM_EARLY_INLINING_INSNS): New.
21654
01df5c8a
RG
216552009-05-25 Richard Guenther <rguenther@suse.de>
21656
21657 PR tree-optimization/36327
21658 * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
f3afc8a7 21659 callback for reference translation or lookup at the point of may-defs.
01df5c8a
RG
21660 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
21661 * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
21662 for union COMPONENT_REFs.
21663 (vn_reference_lookup_3): New callback. Lookup from memset
21664 and CONSTRUCTOR assignment, translate through struct copies.
21665 (vn_reference_lookup_pieces): Make sure to not free the
21666 passed operands array. Adjust walk_non_aliased_vuses call.
21667 (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
21668 make sure we do not leak memory.
21669
6b8ed145
RG
216702009-05-25 Richard Guenther <rguenther@suse.de>
21671
21672 * tree-ssa-alias.h (dump_points_to_solution): Declare.
21673 * tree-inline.c (expand_call_inline): Reset the escaped and
21674 callused solutions.
21675 * tree-ssa-structalias.c (pass_build_ealias): New.
21676 * tree-pass.h (pass_build_ealias): Declare.
f100a4a8 21677 * passes.c (init_optimization_passes): Add PTA during
6b8ed145
RG
21678 early optimizations.
21679 * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
21680 and CALLUSED solutions.
21681 (dump_points_to_solution): New function, split out from ...
21682 (dump_points_to_info_for): ... here.
21683 * tree-parloops.c (parallelize_loops): Reset the escaped and
21684 callused solutions.
21685
0adcf178
RO
216862009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21687
21688 PR bootstrap/40027
21689 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
21690 * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
21691
12aaf609
IR
216922009-05-25 Ira Rosen <irar@il.ibm.com>
21693
21694 PR tree-optimization/40238
21695 * tree-vect-stmts.c (vect_init_vector): Insert initialization
21696 statements after basic block's labels.
f100a4a8 21697 * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
12aaf609
IR
21698 to free the allocated memory.
21699
7f9a14e3
KK
217002009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
21701
21702 * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
21703 return address with a USE.
21704
b842d478
RG
217052009-05-24 Richard Guenther <rguenther@suse.de>
21706
21707 PR middle-end/40233
21708 * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
21709 array type from the main variant of the inner type.
21710
8db7b33f
JBG
217112009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21712
21713 * config/vax/vax-protos.h (legitimate_constant_address_p): Change
21714 definition to bool (from int) to un-break build.
21715 (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
21716
cff4e50d
PB
217172009-05-24 Paolo Bonzini <bonzini@gnu.org>
21718
21719 * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
21720 discard_stmt_changes): Delete.
21721 * tree-ssa-operands.c (scb_stack): Delete.
21722 (init_ssa_operands): Do not initialize it.
21723 (fini_ssa_operands): Do not free it.
21724 (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
21725
f100a4a8 21726 * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
cff4e50d
PB
21727 update_stmt, remove the others. Fix comments.
21728 * tree-dfa.c (optimize_stack_restore): Likewise.
21729 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
21730 * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
21731 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
21732 * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
21733 Likewise.
21734 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
21735 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
f3afc8a7
UB
21736 (dom_opt_finalize_block): Likewise, adjusting access to
21737 stmts_to_rescan.
cff4e50d
PB
21738 (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
21739 (stmts_to_rescan): Change item type to gimple.
21740 (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
21741
a70d6342
IR
217422009-05-24 Ira Rosen <irar@il.ibm.com>
21743
21744 * doc/passes.texi (Tree-SSA passes): Document SLP pass.
21745 * tree-pass.h (pass_slp_vectorize): New pass.
21746 * params.h (SLP_MAX_INSNS_IN_BB): Define.
21747 * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
21748 * tree-vectorizer.c (timevar.h): Include.
21749 (user_vect_verbosity_level): Declare.
21750 (vect_location): Fix comment.
21751 (vect_set_verbosity_level): Update user_vect_verbosity_level
21752 instead of vect_verbosity_level.
21753 (vect_set_dump_settings): Add an argument. Ignore user defined
21754 verbosity if dump flags require higher level of verbosity. Print to
21755 stderr only for loop vectorization.
21756 (vectorize_loops): Update call to vect_set_dump_settings.
21757 (execute_vect_slp): New function.
21758 (gate_vect_slp): Likewise.
21759 (struct gimple_opt_pass pass_slp_vectorize): New.
21760 * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
21761 access its members.
21762 (vec_info_for_bb): New function.
21763 (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
21764 (VECTORIZATION_ENABLED): New macro.
21765 (SLP_ENABLED, SLP_DISABLED): Likewise.
21766 (vect_is_simple_use): Add bb_vec_info argument.
21767 (new_stmt_vec_info, vect_analyze_data_ref_dependences,
21768 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
21769 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
21770 vect_schedule_slp, vect_analyze_slp): Likewise.
21771 (vect_analyze_stmt): Add slp_tree argument.
21772 (find_bb_location): Declare.
21773 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
21774 * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
21775 (vect_analyze_loop_operations, vect_analyze_loop,
21776 get_initial_def_for_induction, vect_create_epilog_for_reduction,
21777 vect_finalize_reduction, vectorizable_reduction,
21778 vectorizable_live_operation, vect_transform_loop): Likewise.
21779 * tree-data-ref.c (dr_analyze_innermost): Update comment,
21780 skip evolution analysis if analyzing a basic block.
21781 (dr_analyze_indices): Likewise.
21782 (initialize_data_dependence_relation): Skip the test whether the
21783 object is invariant for basic blocks.
21784 (compute_all_dependences): Skip dependence analysis for data
21785 references in basic blocks.
21786 (find_data_references_in_stmt): Don't fail in case of invariant
21787 access in basic block.
21788 (find_data_references_in_bb): New function.
21789 (find_data_references_in_loop): Move code to
782dc37a 21790 find_data_references_in_bb and add a call to it.
a70d6342
IR
21791 (compute_data_dependences_for_bb): New function.
21792 * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
21793 * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
21794 that STEP is 0.
21795 (vect_analyze_data_ref_dependence): Check for interleaving in case of
21796 unknown dependence in basic block and fail in case of dependence in
21797 basic block.
21798 (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
21799 dependence instances from either loop or basic block vectorization
21800 info.
21801 (vect_compute_data_ref_alignment): Check if it is loop vectorization
21802 before calling nested_in_vect_loop_p.
21803 (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
21804 dependence instances from either loop or basic block vectorization
21805 info.
21806 (vect_verify_datarefs_alignment): Likewise.
21807 (vect_enhance_data_refs_alignment): Adjust function calls.
21808 (vect_analyze_data_refs_alignment): Likewise.
21809 (vect_analyze_group_access): Fix printing. Skip different checks if
21810 DR_STEP is 0. Keep strided stores either in loop or basic block
21811 vectorization data structure. Fix indentation.
21812 (vect_analyze_data_ref_access): Fix comments, allow zero step in
21813 basic blocks.
21814 (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
21815 dependence instances from either loop or basic block vectorization
21816 info.
21817 (vect_analyze_data_refs): Update comment. Call
21818 compute_data_dependences_for_bb to analyze basic blocks.
21819 (vect_create_addr_base_for_vector_ref): Check for outer loop only in
21820 case of loop vectorization. In case of basic block vectorization use
782dc37a 21821 data-ref itself as a base.
a70d6342
IR
21822 (vect_create_data_ref_ptr): In case of basic block vectorization:
21823 don't advance the pointer, add new statements before the current
21824 statement. Adjust function calls.
21825 (vect_supportable_dr_alignment): Support only aligned accesses in
21826 basic block vectorization.
21827 * common.opt (ftree-slp-vectorize): New flag.
21828 * tree-vect-patterns.c (widened_name_p): Adjust function calls.
21829 (vect_pattern_recog_1): Likewise.
21830 * tree-vect-stmts.c (process_use): Likewise.
21831 (vect_init_vector): Add new statements in the beginning of the basic
21832 block in case of basic block SLP.
21833 (vect_get_vec_def_for_operand): Adjust function calls.
21834 (vect_finish_stmt_generation): Likewise.
21835 (vectorizable_call): Add assert that it is loop vectorization, adjust
21836 function calls.
21837 (vectorizable_conversion, vectorizable_assignment): Likewise.
21838 (vectorizable_operation): In case of basic block SLP, take
21839 vectorization factor from statement's type and skip the relevance
21840 check. Adjust function calls.
21841 (vectorizable_type_demotion): Add assert that it is loop
21842 vectorization, adjust function calls.
21843 (vectorizable_type_promotion): Likewise.
21844 (vectorizable_store): Check for outer loop only in case of loop
21845 vectorization. Adjust function calls. For basic blocks, skip the
21846 relevance check and don't advance pointers.
21847 (vectorizable_load): Likewise.
21848 (vectorizable_condition): Add assert that it is loop vectorization,
21849 adjust function calls.
21850 (vect_analyze_stmt): Add argument. In case of basic block SLP, check
21851 that it is not reduction, get vector type, call only supported
782dc37a 21852 functions, skip loop specific parts.
a70d6342
IR
21853 (vect_transform_stmt): Check for outer loop only in case of loop
21854 vectorization.
21855 (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
21856 (vect_is_simple_use): Fix comment, add new argument, fix conditions
21857 for external definition.
21858 * passes.c (pass_slp_vectorize): New pass.
21859 * tree-vect-slp.c (find_bb_location): New function.
21860 (vect_get_and_check_slp_defs): Add argument, adjust function calls,
21861 check for patterns only in loops.
21862 (vect_build_slp_tree): Add argument, adjust function calls, fail in
21863 case of multiple types in basic block SLP.
21864 (vect_mark_slp_stmts_relevant): New function.
21865 (vect_supported_load_permutation_p): Fix comment.
21866 (vect_analyze_slp_instance): Add argument. In case of basic block
21867 SLP, take vectorization factor from statement's type, check that
21868 unrolling factor is 1. Adjust function call. Save SLP instance in
21869 either loop or basic block vectorization structure. Return FALSE,
21870 if SLP failed.
21871 (vect_analyze_slp): Add argument. Get strided stores groups from
21872 either loop or basic block vectorization structure. Return FALSE
21873 if basic block SLP failed.
21874 (new_bb_vec_info): New function.
21875 (destroy_bb_vec_info, vect_slp_analyze_node_operations,
21876 vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
21877 (vect_schedule_slp): Add argument. Get SLP instances from either
21878 loop or basic block vectorization structure. Set vectorization factor
21879 to be 1 for basic block SLP.
21880 (vect_slp_transform_bb): New function.
21881 * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
21882
0676c393
MM
218832009-05-23 Mark Mitchell <mark@codesourcery.com>
21884
21885 * final.c (shorten_branches): Do not align labels for jump tables.
21886 (final_scan_insn): Use JUMP_TABLE_DATA_P.
21887
94324dae
EB
218882009-05-23 Eric Botcazou <ebotcazou@adacore.com>
21889
21890 * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
21891 Remove outdated reference to flow.c and fix nits.
21892 * doc/gccint.texi: Tweak RTL description.
21893 * doc/rtl.texi: Likewise.
21894
92bffc14
DC
218952009-05-23 Denis Chertykov <chertykov@gmail.com>
21896
21897 * config/avr/avr.c: Change my email address.
21898 * config/avr/avr.h: Likewise.
21899 * config/avr/avr.md: Likewise.
21900 * config/avr/avr-protos.h: Likewise.
21901 * config/avr/libgcc.S: Likewise.
21902
eec9405e
TS
219032009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
21904
21905 * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
21906 (spu_split_load, spu_split_store): Change return type to int.
21907 (spu_split_convert): Declare.
21908 * config/spu/predicates.md (spu_mem_operand): Remove.
21909 (spu_mov_operand): Update.
21910 (spu_dest_operand, shiftrt_operator, extend_operator): Define.
21911 * config/spu/spu.c (regno_aligned_for_load): Remove.
21912 (reg_aligned_for_addr, spu_expand_load): Define.
21913 (spu_expand_extv): Reimplement and handle MEM.
21914 (spu_expand_insv): Handle MEM.
21915 (spu_sched_reorder): Handle insn's with length 0.
21916 (spu_legitimate_address_p): Reimplement.
21917 (store_with_one_insn_p): Return TRUE for any mode with size
21918 larger than 16 bytes.
21919 (address_needs_split): Define.
21920 (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
21921 operands.
21922 (spu_convert_move): Define.
782dc37a 21923 (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
eec9405e
TS
21924 (spu_split_store): Change all MEM's to TImode.
21925 (spu_init_expanders): Preallocate registers that correspond to
21926 LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
21927 mark_reg_pointer.
21928 (spu_split_convert): Define.
21929 * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
21930 (_move<mode>, _movdi, _movti): Update predicate and condition.
21931 (load, store): Change to define_split.
21932 (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
21933 extend<mode>ti2.
21934 (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
21935 (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
21936 define_insn_and_split of lshr<mode>3.
21937 (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
21938 (<v>ashr<mode>3_imm): Define.
21939 (extv, extzv, insv): Allow MEM operands.
21940 (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
21941 shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
21942 sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
21943 (_spu_convert2): Change to define_insn_and_split and remove the
21944 corresponding define_peephole2.
21945 (stack_protect_set, stack_protect_test, stack_protect_test_si):
21946 Change predicates to memory_operand.
21947
7d31a807
MM
219482009-05-22 Mark Mitchell <mark@codesourcery.com>
21949
21950 * config/arm/thumb2.md: Add 16-bit multiply instructions.
7d31a807 21951
d021d274
MM
219522009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
21953
21954 PR tree-optimization/40219
21955 * tree.c (iterative_hash_expr): Make sure the builtin function is
21956 a normal builtin function and not a front end or back end builtin
21957 before indexing into the built_in_decls array.
21958
4d7a65ea
RG
219592009-05-22 Richard Guenther <rguenther@suse.de>
21960
21961 PR middle-end/38964
21962 * alias.c (write_dependence_p): Do not use TBAA for answering
21963 anti-dependence or output-dependence.
782dc37a 21964 * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
4d7a65ea
RG
21965 (emit_pointer_definition): Remove.
21966 (emit_alias_warning): Likewise.
21967 (find_what_var_points_to): Remove TBAA pruning code.
21968 (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
21969 violations.
21970 (compute_points_to_sets): Remove code computing the set of
21971 dereferenced pointers.
21972 * tree-data-ref.c (dr_may_alias_p): Properly use the split
21973 oracle for querying anti and output dependencies.
21974 * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
21975 if TBAA may be applied.
21976 (refs_anti_dependent_p): New function.
21977 (refs_output_dependent_p): Likewise.
21978 * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
21979 (refs_output_dependent_p): Likewise.
21980 * doc/tree-ssa.texi (Memory model): New section.
21981 * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
21982 * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
21983 * cfgexpand.c (expand_gimple_basic_block): Do not handle
21984 GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
21985 * expr.c (expand_expr_real_1): Likewise.
21986 * gimple-low.c (lower_stmt): Likewise.
21987 * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
21988 (dump_gimple_cdt): Remove.
21989 * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
21990 (gimple_size): Likewise.
21991 (walk_gimple_op): Likewise.
21992 (is_gimple_stmt): Likewise.
21993 (walk_stmt_load_store_addr_ops): Likewise.
21994 (gimple_build_cdt): Remove.
21995 * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
21996 * gimple.h (gimple_cdt_new_type): Remove.
21997 (gimple_cdt_new_type_ptr): Likewise.
21998 (gimple_cdt_set_new_type): Likewise.
21999 (gimple_cdt_location): Likewise.
22000 (gimple_cdt_location_ptr): Likewise.
22001 (gimple_cdt_set_location): Likewise.
22002 * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
22003 * tree-cfg.c (remove_useless_stmts_1): Do not handle
22004 GIMPLE_CHANGE_DYNAMIC_TYPE.
22005 (verify_types_in_gimple_stmt): Likewise.
22006 * tree-inline.c (estimate_num_insns): Likewise.
22007 (expand_call_inline): Do not copy DECL_NO_TBAA_P.
22008 (copy_decl_to_var): Likewise.
22009 (copy_result_decl_to_var): Likewise.
22010 * tree-pretty-print.c (dump_generic_node): Do not handle
22011 CHANGE_DYNAMIC_TYPE_EXPR.
22012 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
22013 * tree-ssa-operands.c (get_expr_operands): Likewise.
22014 * tree-ssa-structalias.c (struct variable_info): Remove
22015 no_tbaa_pruning member.
22016 (new_var_info): Do not set it based on DECL_NO_TBAA_P.
22017 (unify_nodes): Do not copy it.
22018 (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
22019 (dump_solution_for_var): Do not dump no_tbaa_pruning state.
22020 (set_uids_in_ptset): Do not check it.
22021 (find_what_var_points_to): Likewise.
22022 (compute_tbaa_pruning): Remove.
22023 (compute_points_to_sets): Do not call it.
22024 * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
22025 * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
22026 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
22027 (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
22028 (DECL_NO_TBAA_P): Likewise.
22029 (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
22030 * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
22031 (expand_omp_atomic_pipeline): Do not set it.
22032 * print-tree.c (print_node): Do not dump it.
22033 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
22034 redundant check.
22035
83a6ac60
VM
220362009-05-22 Vladimir Makarov <vmakarov@redhat.com>
22037
22038 PR target/39856
22039 * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
22040 for clobber.
22041
fe2978fb
MM
220422009-05-22 Mark Mitchell <mark@codesourcery.com>
22043
22044 * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
22045 non-external.
22046
134ef638
BE
220472009-05-22 Ben Elliston <bje@au.ibm.com>
22048
22049 * Makefile.in (bversion.h, s-bversion): New targets.
22050 (TOPLEV_H): Add bversion.h.
22051 * toplev.h: Include "bversion.h".
22052 (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
22053 the __format__ attribute only if compiling with the same version
22054 of GCC as the sources (the "build version").
22055
52fc669d
BE
220562009-05-22 Ben Elliston <bje@au.ibm.com>
22057
22058 * c-format.c (handle_format_attribute): Fix comment typo.
22059
583ca921
SE
220602009-05-21 Steve Ellcey <sje@cup.hp.com>
22061
22062 PR target/37846
22063 * config/ia64/ia64.opt (mfused-madd): New.
22064 * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
22065 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
22066 * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
22067 madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
22068 nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
22069 msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
22070 nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
f100a4a8 22071 * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
583ca921
SE
22072 instruction if !TARGET_FUSED_MADD.
22073 (fpma, fpms): Remove colon from name.
22074
150e3929
RG
220752009-05-22 Richard Guenther <rguenther@suse.de>
22076
22077 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
22078 TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
22079 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
22080 TARGET_MEM_REF.
22081 (create_expression_by_pieces): Only convert if necessary.
22082 * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
22083 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
22084
9a2b090c
AN
220852009-05-21 Adam Nemet <anemet@caviumnetworks.com>
22086
22087 * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
22088 regular pattern from a template and rename it ...
22089 (*extzv_truncsi_exts): ... to this.
22090
33b92c9d
RG
220912009-05-21 Richard Guenther <rguenther@suse.de>
22092
22093 * cgraph.h (struct cgraph_node): Remove inline_decl member.
22094 * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
22095 (cgraph_default_inline_p): Likewise.
22096 (cgraph_decide_inlining_incrementally): Likewise.
22097
cabf85c3
L
220982009-05-21 H.J. Lu <hongjiu.lu@intel.com>
22099 Uros Bizjak <ubizjak@gmail.com>
22100
22101 * config/i386/cpuid.h (bit_MOVBE): New.
22102
22103 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
22104
22105 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
22106 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
22107 (ix86_handle_option): Handle OPT_mmovbe.
22108 (ix86_target_string): Add -mmovbe.
22109 (pta_flags): Add PTA_MOVBE.
22110 (processor_alias_table): Add PTA_MOVBE to "atom".
22111 (override_options): Handle PTA_MOVBE.
22112
22113 * config/i386/i386.h (TARGET_MOVBE): New.
22114
22115 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
22116 (*bswapsi_movbe): New.
22117 (*bswapdi_movbe): Likewise.
22118 (bswapdi2): Renamed to ...
22119 (*bswapdi_1): This.
22120 (bswapdi2): New expander.
22121
22122 * config/i386/i386.opt (mmovbe): New.
22123
22124 * doc/invoke.texi: Document -mmovbe.
22125
9fefa0aa
TG
221262009-05-21 Taras Glek <tglek@mozilla.com>
22127
22128 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
22129 * gcc-plugin.h (plugin_init): Updated signature.
22130 * gcc-plugin.h (plugin_name_args): Moved to this header.
cabf85c3
L
22131 * doc/plugins.texi (plugin_init): Updated documention to reflect
22132 API change.
9fefa0aa
TG
22133 * doc/plugins.texi (plugin_name_args): Added to documention.
22134
1ea9fe56
MM
221352009-05-21 Mark Mitchell <mark@codesourcery.com>
22136
22137 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
22138 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
22139
52f84254
SZ
221402009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
22141
22142 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
22143 JUMP_TABLE_DATA_P predicates where applicable.
22144 * config/i386/predicates.md: Ditto.
22145 * config/i386/sse.md: Ditto.
22146
a952487c
JJ
221472009-05-21 Jakub Jelinek <jakub@redhat.com>
22148
93cac287
JJ
22149 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
22150 operand2 -128 override length_immediate attribute to 1.
22151 * config/i386/predicates.md (constm128_operand): New predicate.
22152
a952487c
JJ
22153 * config/i386/i386.c (memory_address_length): Handle %r12
22154 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
22155 also check REGNO.
22156 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
22157 mode look through optional ZERO_EXTEND and SUBREG.
22158 * config/i386/i386.md (R12_REG): New define_constant.
22159 (prefix_data16): For sse unit set also for MODE_TI insns.
22160 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
22161 insns set if operand 1 is ext_QIreg_operand.
22162 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
22163 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
22164 immediate.
22165 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
22166 mode from MODE_DI to MODE_SI.
22167 (movdi_1_rex64): Override modrm and length_immediate attributes
22168 only for movabs (TYPE_IMOV, alternative 2).
22169 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
22170 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
22171 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
22172 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
22173 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
22174 prefix_rex attribute if DImode.
22175 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
22176 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
22177 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
22178 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
22179 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
22180 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
22181 Likewise. For TYPE_IMOV clear length_immediate attribute.
22182 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
22183 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
22184 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
22185 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
22186 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
22187 or one operand TYPE_ISHIFT.
22188 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
22189 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
22190 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
22191 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
22192 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
22193 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
22194 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
22195 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
22196 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
22197 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
22198 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
22199 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
22200 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
22201 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
22202 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
22203 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
22204 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
22205 set mode attribute, don't override length attribute.
22206 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
22207 to 1.
22208 (return_internal_long): Set length attribute to 2 instead of 1.
22209 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
22210 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
22211 prefix_rex attribute.
782dc37a
UB
22212 * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
22213 New predicates.
22214 (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
a952487c 22215
64af62c2
RR
222162009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22217
22218 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
22219
c166b898
ILT
222202009-05-20 Ian Lance Taylor <iant@google.com>
22221
22222 * tree.c (build_tree_list_vec_stat): New function.
22223 (ctor_to_vec): New function.
22224 (build_nt_call_vec): New function.
22225 (build_call_array): Change args to be a const pointer.
22226 (build_call_vec): New function.
22227 * tree.h (build_nt_call_vec): Declare.
22228 (build_tree_list_vec_stat): Declare.
22229 (build_tree_list_vec): Define.
22230 (build_call_array): Update declaration.
22231 (build_call_vec): Declare.
22232 (ctor_to_vec): Declare.
22233 * c-common.c (tree_vector_cache): New static variable.
22234 (make_tree_vector): New function.
22235 (release_tree_vector): New function.
22236 (make_tree_vector_single): New function.
22237 (make_tree_vector_copy): New function.
22238 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
22239 (make_tree_vector_single, make_tree_vector_copy): Declare.
22240 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
22241 (c_parser_expr_list): Don't manage cache here, instead call
22242 make_tree_vector.
22243 (c_parser_release_expr_list): Remove static function.
22244 (c_parser_vec_to_tree_list): Remove static function.
22245 (c_parser_attributes): Call build_tree_list_vec instead of
22246 c_parser_vec_to_tree_list. Call release_tree_vector instead of
22247 c_parser_release_expr_list.
22248 (c_parser_postfix_expression_after_primary): Likewise.
22249 (c_parser_objc_keywordexpr): Likewise.
22250
40449a90
SL
222512009-05-20 Sandra Loosemore <sandra@codesourcery.com>
22252
22253 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
22254 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
22255 TARGET_CONVERT_TO_TYPE.
22256 * hooks.c (hook_tree_const_tree_null): Define.
22257 * hooks.h (hook_tree_const_tree_null): Declare.
22258 * target.h (struct gcc_target): Add invalid_parameter_type,
22259 invalid_return_type, promoted_type, and convert_to_type fields.
bd62d832 22260 * target-def.h (TARGET_INVALID_PARAMETER_TYPE): Define.
40449a90
SL
22261 (TARGET_INVALID_RETURN_TYPE): Define.
22262 (TARGET_PROMOTED_TYPE): Define.
22263 (TARGET_CONVERT_TO_TYPE): Define.
22264 (TARGET_INITIALIZER): Update for new fields.
22265 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
22266 (grokparms): Check targetm.invalid_parameter_type.
22267 * c-typeck.c (default_conversion): Check targetm.promoted_type.
22268 * c-convert.c (convert): Check targetm.convert_to_type.
22269
642d97ff
AN
222702009-05-20 Adam Nemet <anemet@caviumnetworks.com>
22271
22272 * config/mips/mips.md (*extenddi_truncate<mode>,
22273 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
22274 defintions.
22275 (*extendhi_truncateqi): New define_insn_and_sptit.
22276
776248b8
JJ
222772009-05-20 Jakub Jelinek <jakub@redhat.com>
22278
22279 PR middle-end/40204
22280 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
782dc37a 22281 recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
776248b8 22282
d98e8686
EB
222832009-05-20 Eric Botcazou <ebotcazou@adacore.com>
22284
22285 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
22286 the operand of VIEW_CONVERT_EXPR.
22287
37c50435
L
222882009-05-20 H.J. Lu <hongjiu.lu@intel.com>
22289
22290 * config/i386/driver-i386.c (host_detect_local_cpu): Check
f3afc8a7 22291 extended family and model for Intel processors. Support Intel Atom.
37c50435 22292
dbb6088f
OH
222932009-05-20 Olivier Hainque <hainque@adacore.com>
22294
22295 * gstab.h (stab_code_type): Define, to be used instead of the
22296 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
22297 notice.
22298 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
22299 occurrences by stab_code_type.
22300 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
22301
7ec49257
MJ
223022009-05-20 Martin Jambor <mjambor@suse.cz>
22303
22304 * tree-flow.h (insert_edge_copies_seq): Undeclare.
22305 (sra_insert_before): Likewise.
22306 (sra_insert_after): Likewise.
22307 (sra_init_cache): Likewise.
22308 (sra_type_can_be_decomposed_p): Likewise.
22309 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
22310 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
22311 (sra_insert_before): Likewise.
22312 (sra_insert_after): Likewise.
22313 (sra_init_cache): Likewise.
22314 (insert_edge_copies_seq): Made static and moved upwards.
22315
22316 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
22317 case.
22318
22319 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
22320
22321 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
22322 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
22323 simple copies.
22324
0328ae4d
RG
223252009-05-20 Richard Guenther <rguenther@suse.de>
22326
22327 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
22328 with mismatched comparison modes.
22329
a7994a57 223302009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
782dc37a 22331
a7994a57 22332 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
782dc37a
UB
22333 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
22334 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
22335 with shifts for Thumb2.
22336 (orsi_notsi): New for orn.
22337 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
22338 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
22339 * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
22340 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
22341 Don't invert remainder for IOR.
f100a4a8 22342
e36dc339
ZD
223432009-05-19 Zdenek Dvorak <ook@ucw.cz>
22344
22345 PR tree-optimization/40087
22346 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
22347 number_of_iterations_ne): Rename never_infinite argument.
22348 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
22349 number_of_iterations_le): Handle pointer-type ivs when
22350 exit_must_be_taken is false.
22351 (number_of_iterations_cond): Do not always assume that
22352 exit_must_be_taken if the control variable is a pointer.
22353
5cfd5d9b
AP
223542009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
22355
22356 * c-typeck.c (build_binary_op): Allow % on integal vectors.
22357 * doc/extend.texi (Vector Extension): Document that % is allowed too.
22358
2f1c7156
L
223592009-05-19 H.J. Lu <hongjiu.lu@intel.com>
22360
22361 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
22362 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
22363
7bb27074
MLI
223642009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
22365
22366 PR c/40172
22367 * c.opt (Wlogical-op): Disabled by default.
22368 * c-opt (c_common_post_options): Do not enable Wlogical-op with
22369 Wextra.
22370 * doc/invoke.texi (Wlogical-op): Likewise.
f100a4a8 22371
5aefc6a0
EB
223722009-05-19 Eric Botcazou <ebotcazou@adacore.com>
22373
22374 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
22375 into CASE_CONVERT.
22376 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
22377 Propagate the type of the first operand.
22378 <ASSERT_EXPR>: Simplify.
22379 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
22380 Rewrite using the RHS code as discriminant.
22381 <NOP_EXPR>: Turn into CASE_CONVERT.
22382 <PLUS_EXPR>: Propagate the type of the first operand.
22383
f3a83111
SE
223842009-05-19 Steve Ellcey <sje@cup.hp.com>
22385
22386 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
22387 (ia64_dconst_0_375): New.
22388 * config/ia64/ia64.c (ia64_override_options): Remove
22389 -minline-sqrt-min-latency warning.
22390 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
22391 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
22392 * config/ia64/ia64.md (*sqrt_approx): Remove.
22393 (sqrtsf2): Remove #if 0.
22394 (sqrtsf2_internal_thr): Rewrite and move to div.md.
22395 (sqrtdf): Remove assert.
22396 (sqrtdf2_internal_thr): Rewrite and move to div.md.
22397 (sqrtxf2): Remove #if 0.
22398 (sqrtxf2_internal_thr): Rewrite and move to div.md.
22399 * div.md (sqrt_approx_rf): New.
22400 (sqrtsf2_internal_thr): New implementation.
22401 (sqrtsf2_internal_lat): New.
22402 (sqrtdf2_internal_thr: New implementation.
22403 (sqrtxf2_internal): New implementation.
22404
1ffc7157
FXC
224052009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
22406 Hans-Peter Nilsson <hp@axis.com>
22407
22408 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
22409 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
22410 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
22411 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
22412 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
22413 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
22414 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
22415 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
22416 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
22417 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
22418 * c-common.c: ...from here.
22419
db91d9ef
MLI
224202009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
22421
f3afc8a7 22422 * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
db91d9ef 22423
bbb9d91f
KG
224242009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22425
22426 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
22427
ce883f54
BE
224282009-05-19 Ben Elliston <bje@au.ibm.com>
22429
22430 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
22431 assignments with memcpy calls.
22432 (add_fdes): Likewise.
22433 (binary_search_unencoded_fdes): Likewise.
22434 (linear_search_fdes): Eliminate type puns.
f100a4a8 22435
377f099a
RG
224362009-05-19 Richard Guenther <rguenther@suse.de>
22437
22438 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
22439 not falsely claim to have propagated into all uses.
22440
848bc769
BE
224412009-05-19 Ben Elliston <bje@au.ibm.com>
22442
22443 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
22444 version to v3.0.
22445
1bb99877
KK
224462009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
22447
22448 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
22449 * config/sh/sh.c (sh_legitimate_address_p): Make static.
22450 (TARGET_LEGITIMATE_ADDRESS_P): New.
22451 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
22452 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
f100a4a8 22453
82725547
DS
224542009-05-18 Dodji Seketeli <dodji@redhat.com>
22455
22456 PR debug/40109
22457 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
22458 child of the containing namespace's DIE.
22459
f6a1e430
AN
224602009-05-18 Adam Nemet <anemet@caviumnetworks.com>
22461
22462 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
22463 *zero_extendhi_truncqi): Move after the zero_extend patterns.
22464 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
22465 extend patterns.
22466
6a90d232
L
224672009-05-18 H.J. Lu <hongjiu.lu@intel.com>
22468
22469 PR target/39942
22470 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
22471 gen_align with gen_pad.
22472 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
22473 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
22474
22475 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
22476 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
22477
22478 * config/i386/i386.md (align): Renamed to ...
22479 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
22480 ASM_OUTPUT_MAX_SKIP_PAD.
22481
c4406f74
AS
224822009-05-18 Andreas Schwab <schwab@linux-m68k.org>
22483
06555043
AS
22484 * config.gcc: Fix variable syntax.
22485
c4406f74
AS
22486 PR target/39531
22487 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
22488 before calling exact_log2.
22489 (output_iorsi3): Likewise.
22490 (output_xorsi3): Likewise.
22491
99052692
KK
224922009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
22493
22494 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
22495 for the none zero constant operand except for EQ and NE
22496 comprisons even when the first operand is R0.
22497
f4aa3848
AK
224982009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
22499
22500 * config/s390/2064.md: Remove trailing whitespaces.
22501 * config/s390/2084.md: Likewise.
22502 * config/s390/constraints.md: Likewise.
22503 * config/s390/fixdfdi.h: Likewise.
22504 * config/s390/libgcc-glibc.ver: Likewise.
22505 * config/s390/s390-modes.def: Likewise.
22506 * config/s390/s390-protos.h: Likewise.
22507 * config/s390/s390.c: Likewise.
22508 * config/s390/s390.h: Likewise.
22509 * config/s390/s390.md: Likewise.
22510 * config/s390/tpf-unwind.h: Likewise.
22511
ab7256e4
MK
225122009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
22513
22514 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
22515
75df395f
MK
225162009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
22517
22518 M68K TLS support.
22519 * configure.ac (m68k-*-*): Check if binutils support TLS.
22520 * configure: Regenerate.
22521 * config/m68k/predicates.md (symbolic_operand): Extend comment.
22522 * config/m68k/constraints.md (Cu): New constraint.
22523 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
22524 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
22525 (movsi): Handle TLS symbols.
22526 (addsi3_5200): Handle XTLS symbols, indent.
22527 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
22528 (m68k_tls_reference_p): Declare.
22529 (m68k_legitimize_address): Declare.
22530 (m68k_unwrap_symbol): Declare.
22531 * config/m68k/m68k.opt (mxtls): New option.
22532 * config/m68k/m68k.c (ggc.h): Include.
22533 (m68k_output_dwarf_dtprel): Implement hook.
22534 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
22535 (m68k_expand_prologue): Load GOT pointer when function needs it.
22536 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
22537 (m68k_legitimate_constant_address_p): Same.
22538 (m68k_decompose_address): Handle TLS references.
22539 (m68k_get_gp): New static function.
22540 (enum m68k_reloc): New contants.
22541 (TLS_RELOC_P): New macro.
22542 (m68k_wrap_symbol): New static function.
22543 (m68k_unwrap_symbol): New function.
22544 (m68k_final_prescan_insn_1): New static function.
22545 (m68k_final_prescan_insn): New function.
22546 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
22547 functions.
22548 (legitimize_pic_address): Handle TLS references..
22549 (m68k_tls_get_addr, m68k_get_tls_get_addr)
22550 (m68k_libcall_value_in_a0_p)
22551 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
22552 (m68k_call_m68k_read_tp): Helper variables and functions for ...
22553 (m68k_legitimize_tls_address): Handle TLS references.
22554 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
22555 New functions.
22556 (m68k_legitimize_address): Handle TLS symbols.
22557 (m68k_get_reloc_decoration): New static function.
22558 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
22559 UNSPEC_RELOC32.
22560 (m68k_output_dwarf_dtprel): Implement hook.
22561 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
22562 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
22563 m68k_call_* routines.
22564 (sched_attr_op_type): Handle TLS symbols.
22565 (gt-m68k.h): Include.
22566 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
22567 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
22568
8b75fc9b
MJ
225692009-05-18 Martin Jambor <mjambor@suse.cz>
22570
22571 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
22572 (visit_store_addr_for_mod_analysis): New function.
22573 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
22574 (determine_cst_member_ptr): Use gimple_assign_single_p.
22575 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
22576 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
22577 operands. Don't check number of operands of a NOP_EXPR.
22578
f133d4a2
EF
225792009-05-18 Eric Fisher <joefoxreal@gmail.com>
22580
22581 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
22582
ae8af500
L
225832009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
22584
22585 PR c/40172
22586 * c-common.c (warn_logical_operator): Don't warn if one of
22587 expression isn't always true or false.
22588
25e8fde8
KT
225892009-05-17 Kai Tietz <kai.tietz@onevision.com>
22590
ae8af500
L
22591 * config/i386/biarch32.h: New file.
22592 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
25e8fde8 22593
ef67af22
AN
225942009-05-17 Adam Nemet <anemet@caviumnetworks.com>
22595
22596 * config/mips/mips.md (*zero_extend<mode>_trunchi,
22597 *zero_extend<mode>_truncqi): Merge these into ...
22598 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
22599 Name the pattern following this as *zero_extendhi_truncqi.
22600
e2d87023
BL
226012009-05-16 Brad Lucier <lucier@math.purdue.edu>
22602
22603 PR middle-end/39301
22604 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
22605 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
22606 (output_info): Make field HOST_WIDEST_INT.
22607 (print_statistics): Use HOST_WIDEST_INT_PRINT.
22608 (dump_bitmat_statistics): Same.
22609
428ddbf0
FXC
226102009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
22611
22612 * config.gcc (use_gcc_stdint): Set to wrap.
22613 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
22614 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
22615 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
22616 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
22617 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
22618 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
22619 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
22620 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
22621
1ab8a8c2
JM
226222009-05-16 Joseph Myers <joseph@codesourcery.com>
22623
22624 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
22625 tune_64.
22626 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
22627 Move definitions earlier.
22628 (OPT_ARCH64, OPT_ARCH32): Define.
22629 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
22630 and tune_64.
22631
70544f44
RE
226322009-05-16 Richard Earnshaw <rearnsha@arm.com>
22633
22634 PR target/40153
22635 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
22636 implies.
22637
6241ded1
RE
226382009-05-16 Richard Earnshaw <rearnsha@arm.com>
22639
22640 * arm.md (movdi2): Copy non-reg values to DImode registers.
22641
a99c6711
JJ
226422009-05-16 Jakub Jelinek <jakub@redhat.com>
22643
40a8f07a
JJ
22644 PR target/39942
22645 * final.c (label_to_max_skip): New function.
22646 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
22647 CODE_LABEL_NUMBER <= max_labelno.
22648 * output.h (label_to_max_skip): New prototype.
22649 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
22650 (ix86_avoid_jump_mispredicts): ... this. Don't define if
22651 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
22652 Handle CODE_LABELs with >= 16 byte alignment or with
22653 max_skip == (1 << align) - 1.
22654 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
22655 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
22656
a99c6711
JJ
22657 PR target/39942
22658 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
22659 .p2align 3 if MAX_SKIP is smaller than 7.
22660 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
22661
7e5487a2
ILT
226622009-05-15 Ian Lance Taylor <iant@google.com>
22663
22664 * alias.c (struct alias_set_entry_d): Rename from struct
22665 alias_set_entry. Change all uses.
22666 * except.c (struct call_site_record_d): Rename from struct
22667 call_site_record. Change all uses.
22668 * except.h (struct eh_region_d): Rename from struct eh_region.
22669 Change all uses.
22670 * gcse.c (struct hash_table_d): Rename from struct hash_table.
22671 Change all uses.
22672 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
22673 ivtype_map_elt. Change all uses.
22674 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
22675 Change all uses.
22676 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
22677 * graphite.h (struct name_tree_d): Rename from struct name_tree.
22678 Change all uses.
22679 (struct sese_d): Rename from struct sese. Change all uses.
782dc37a
UB
22680 * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
22681 (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
7e5487a2
ILT
22682 * optabs.h (struct optab_d): Rename from struct optab. Change all
22683 uses.
22684 (struct convert_optab_d): Rename from struct convert_optab.
22685 Change all uses.
22686 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
22687 ipa_opt_pass. Change all uses.
22688 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
22689 all uses.
22690
22691 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
22692 defined as a typedef.
22693 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
22694 defined as a tag.
22695
a243fb4a
MLI
226962009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
22697
22698 PR 16302
22699 * fold-const.c (make_range,build_range_check,merge_ranges): Move
22700 declaration to...
f100a4a8 22701 (merge_ranges): Returns bool.
a243fb4a
MLI
22702 * tree.h (make_range): .. to here.
22703 (build_range_check): Likewise.
22704 (merge_ranges): Likewise. Renamed from merge_ranges.
22705 * c-typeck.c (parser_build_binary_op): Update calls to
22706 warn_logical_operator.
22707 * c-common.c (warn_logical_operator): Add new warning.
22708 * c-common.h (warn_logical_operator): Update declaration.
f100a4a8 22709
1b53c5f3
MLI
227102009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
22711
782dc37a 22712 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
f100a4a8 22713
c128599a
KG
227142009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22715
f9bab007
KG
22716 * doc/install.texi: Document MPC requirements, flags etc.
22717
c128599a
KG
22718 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
22719 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
22720 Evaluate constant arguments.
22721 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
22722 (fold_builtin_1): Likewise, also evaluate constant arguments.
22723 Remove superfluous break.
22724 (do_mpc_ckconv): New.
22725 * real.h: Include mpc.h.
22726 * toplev.c (print_version): Output MPC version info if available.
22727
d33e4b70
SL
227282009-05-15 Sandra Loosemore <sandra@codesourcery.com>
22729
782dc37a 22730 * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
d33e4b70 22731
a02ab464
L
227322009-05-15 H.J. Lu <hongjiu.lu@intel.com>
22733
22734 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
22735 only once.
22736
796bda22
JH
227372009-05-15 Jan Hubicka <jh@suse.cz>
22738
22739 * doc/invoke.texi (max-early-inliner-iterations): New flag.
22740 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
22741 (try_inline): Fix return value.
22742 (cgraph_decide_inlining_incrementally): Honor new value.
22743 (cgraph_early_inlining): Handle indirect inlining.
22744 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
22745
d88e5c37
JH
227462009-05-15 Jan Hubicka <jh@suse.cz>
22747
22748 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
22749 * cgraphunit.c (cgraph_finalize_function): Set it.
22750 (cgraph_expand_function): Use it.
22751
ae63687c
SL
227522009-05-15 Sandra Loosemore <sandra@codesourcery.com>
22753
22754 * real.c (encode_ieee_half): Define.
22755 (decode_ieee_half): Define.
22756 (ieee_half_format): Define.
22757 (arm_half_format): Define.
22758 * real.h (ieee_half_format): Declare.
22759 (arm_half_format): Declare.
22760
1bd74ad9
SL
227612009-05-15 Sandra Loosemore <sandra@codesourcery.com>
22762
22763 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
22764 swapped, and reversed optabs exist before trying to use them.
22765
dc34db56
PB
227662009-05-15 Paul Brook <paul@codesourcery.com>
22767 Sandra Loosemore <sandra@codesourcery.com>
22768
dc34db56
PB
22769 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
22770 loads. Allow PRE_DEC.
22771 (output_move_neon): Handle PRE_DEC.
22772 (arm_print_operand): Add 'A' for neon structure loads.
22773 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
22774 * config/arm/neon.md (neon_mov): Update comment.
22775 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
22776 calls.
22777 (Um): New constraint.
22778
1d405d7b
JH
227792009-05-15 Jan Hubicka <jh@suse.cz>
22780
22781 Revert the following patch until testsuite fallout is fixed:
22782 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
22783 * cgraph.h (struct inline_summary): New filed self_wize,
22784 size_inlining_benefit, self_time and time_inlining_benefit.
22785 (struct cgraph_global_info): Replace insns by time ans size fields.
22786 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
22787 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
22788 (ipcp_update_callgraph): Do not touch function bodies.
22789 * ipa-inline.c: Include except.h
782dc37a 22790 (MAX_TIME): New constant.
1d405d7b
JH
22791 (overall_insns): Remove
22792 (overall_size, max_benefit): New static variables.
22793 (cgraph_estimate_time_after_inlining): New function.
22794 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
22795 (cgraph_clone_inlined_nodes): Update size.
22796 (cgraph_mark_inline_edge): Update size.
22797 (cgraph_estimate_growth): Use size info.
22798 (cgraph_check_inline_limits): Check size.
22799 (cgraph_default_inline_p): Likewise.
22800 (cgraph_edge_badness): Compute badness based on benefit and size cost.
22801 (cgraph_decide_recursive_inlining): Check size.
f3afc8a7
UB
22802 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
22803 and times.
1d405d7b 22804 (cgraph_decide_inlining): Likewise.
00c5fa1b
EB
22805 (cgraph_decide_inlining_incrementally): Likewise; honor
22806 PARAM_EARLY_INLINING_INSNS.
1d405d7b
JH
22807 (likely_eliminated_by_inlining_p): New predicate.
22808 (estimate_function_body_sizes): New function.
22809 (compute_inline_parameters): Use it.
22810 * except.c (must_not_throw_labels): New function.
22811 * except.h (must_not_throw_labels): Declare.
22812 * tree-inline.c (init_inline_once): Kill inlining_weigths
22813 * tree-ssa-structalias.c: Avoid uninitialized warning.
22814 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
22815 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
22816 (PARAM_INLINE_CALL_COST): Remove.
22817 (PARAM_EARLY_INLINING_INSNS): New.
22818
7ffa47ca
RG
228192009-05-15 Richard Guenther <rguenther@suse.de>
22820
22821 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
22822 not TODO_update_ssa.
22823
828552ed
RG
228242009-05-15 Richard Guenther <rguenther@suse.de>
22825
22826 PR tree-optimization/39999
22827 * gimple.h (gimple_expr_type): Use the expression type looking
22828 through useless conversions.
22829 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
22830 (vn_nary_op_insert_stmt): Likewise.
22831 (simplify_binary_expression): Likewise.
22832
248fc9f3
RG
228332009-05-15 Richard Guenther <rguenther@suse.de>
22834
22835 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
22836 New options, enabled by default.
22837 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
22838 Document.
22839 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
22840 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
22841 * tree-ssa-structalias.c (gate_tree_pta): New function.
22842 (pass_build_alias): Use it.
22843
16b29cc4
JM
228442009-05-15 Joseph Myers <joseph@codesourcery.com>
22845
22846 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
22847 recurse on an invariant address if a conversion from a pointer
22848 type to a wider integer type is involved.
22849
125cae84
JH
228502009-05-15 Jan Hubicka <jh@suse.cz>
22851
22852 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
22853 * cgraph.h (struct inline_summary): New filed self_wize,
22854 size_inlining_benefit, self_time and time_inlining_benefit.
22855 (struct cgraph_global_info): Replace insns by time ans size fields.
22856 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
22857 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
22858 (ipcp_update_callgraph): Do not touch function bodies.
22859 * ipa-inline.c: Include except.h
782dc37a 22860 (MAX_TIME): New constant.
125cae84
JH
22861 (overall_insns): Remove
22862 (overall_size, max_benefit): New static variables.
22863 (cgraph_estimate_time_after_inlining): New function.
22864 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
22865 (cgraph_clone_inlined_nodes): Update size.
22866 (cgraph_mark_inline_edge): Update size.
22867 (cgraph_estimate_growth): Use size info.
22868 (cgraph_check_inline_limits): Check size.
22869 (cgraph_default_inline_p): Likewise.
22870 (cgraph_edge_badness): Compute badness based on benefit and size cost.
22871 (cgraph_decide_recursive_inlining): Check size.
f3afc8a7
UB
22872 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
22873 and times.
125cae84 22874 (cgraph_decide_inlining): Likewise.
00c5fa1b
EB
22875 (cgraph_decide_inlining_incrementally): Likewise; honor
22876 PARAM_EARLY_INLINING_INSNS.
125cae84
JH
22877 (likely_eliminated_by_inlining_p): New predicate.
22878 (estimate_function_body_sizes): New function.
22879 (compute_inline_parameters): Use it.
22880 * except.c (must_not_throw_labels): New function.
22881 * except.h (must_not_throw_labels): Declare.
22882 * tree-inline.c (init_inline_once): Kill inlining_weigths
22883 * tree-ssa-structalias.c: Avoid uninitialized warning.
22884 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
22885 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
22886 (PARAM_INLINE_CALL_COST): Remove.
22887 (PARAM_EARLY_INLINING_INSNS): New.
22888 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
22889 (inline-call-cost): Remove.
22890 (early-inlining-insns): New.
22891
84fb43a1
EB
228922009-05-15 Eric Botcazou <ebotcazou@adacore.com>
22893
22894 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
22895 for bounds.
22896 (print_int_cst_bounds_in_octal_p): Likewise.
22897 (dbxout_type): Adjust calls to above functions. Be prepared to deal
22898 with subtypes.
22899 * dwarf2out.c (base_type_die): Likewise.
22900 (is_subrange_type): Delete.
22901 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
22902 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
f3afc8a7
UB
22903 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
22904 if the destination type is boolean.
84fb43a1
EB
22905 (build_range_check): Do not special-case subtypes.
22906 (fold_sign_changed_comparison): Likewise.
22907 (fold_unary): Likewise.
22908 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
22909 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
22910 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
f3afc8a7
UB
22911 * tree.c (subrange_type_for_debug_p): New predicate based on the
22912 former is_subrange_type.
84fb43a1
EB
22913 * tree.h (subrange_type_for_debug_p): Declare.
22914 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
22915 (convert_affine_scev): Remove call to above function.
22916 (chrec_convert_aggressive): Likewise.
22917 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
22918 false for conversions involving subtypes.
22919 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
22920 (vrp_val_min): Likewise.
22921 (needs_overflow_infinity): Likewise.
22922 (extract_range_from_unary_expr): Likewise.
22923
331d9186
PB
229242009-05-15 Paolo Bonzini <bonzini@gnu.org>
22925
e9351712
L
22926 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
22927 * config/frv/frv.c: Likewise.
22928 * config/s390/s390.c: Likewise.
22929 * config/sparc/sparc.h: Likewise.
22930 * config/i386/i386.h: Likewise.
22931 * config/i386/i386.c: Likewise.
22932 * config/crx/crx.c: Likewise.
22933 * config/m68hc11/m68hc11.h: Likewise.
22934 * config/iq2000/iq2000.c: Likewise.
22935 * config/mn10300/mn10300.h: Likewise.
22936 * config/mn10300/mn10300.c: Likewise.
22937 * config/m68k/m68k.c: Likewise.
22938 * config/rs6000/rs6000.c: Likewise.
22939 * config/rs6000/xcoff.h: Likewise.
22940 * config/rs6000/linux64.h: Likewise.
22941 * config/rs6000/sysv4.h: Likewise.
22942 * config/score/score3.c: Likewise.
22943 * config/score/score7.c: Likewise.
22944 * config/score/score.c: Likewise.
22945 * config/arm/arm.md: Likewise.
22946 * config/mips/mips.c: Likewise.
22947 * config/mips/mips.md: Likewise.
22948 * config/bfin/bfin.h: Likewise.
22949 * config/pa/pa.c: Likewise.
22950 * config/pa/constraints.md: Likewise.
22951
22952 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
22953 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
22954 * config/pdp11/pdp11.h: Use memory_address_p instead.
331d9186 22955
09639a83
ILT
229562009-05-14 Ian Lance Taylor <iant@google.com>
22957
22958 * passes.c (finish_optimization_passes): Change i to int.
22959 * plugin.c (plugins_active_p): Change event to int.
22960 (dump_active_plugins): Likewise.
22961 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
22962 Add cast.
22963 * tree.c (tree_range_check_failed): Change c to unsigned int.
22964 (omp_clause_range_check_failed): Likewise.
22965 (build_common_builtin_nodes): Change mode to int. Add cast.
22966 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
22967 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
22968
22969 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
22970 ++ or -- with a variable of enum type.
22971
c04a56bf
SB
229722009-05-14 Steven Bosscher <steven@gcc.gnu.org>
22973
22974 PR driver/40144
22975 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
22976
237ee620
SB
229772009-05-14 Steven Bosscher <steven@gcc.gnu.org>
22978
22979 * store-motion.c: Do not include params.h
22980 * Makefile.in: Fix dependencies for various files.
22981
1154c4fa
SB
229822009-05-14 Steven Bosscher <steven@gcc.gnu.org>
22983
22984 * auto-inc-dec.c: Fix pass description, remove apparent
22985 accidental duplication.
22986
61c27353
L
229872009-05-14 H.J. Lu <hongjiu.lu@intel.com>
22988
22989 PR middle-end/40147
22990 * ipa-utils.h (memory_identifier_string): Moved to ...
22991 * tree.h (memory_identifier_string): Here. Add GTY(()).
22992
c6c3dba9
PB
229932009-05-14 Paolo Bonzini <bonzini@gnu.org>
22994
22995 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
22996 in the former documentation of...
22997 (GO_IF_LEGITIMATE_ADDRESS): ... this.
22998 * ira-conflicts.c (get_dup_num): Use address_operand.
22999 * targhooks.c (default_legitimate_address_p): New.
23000 * targhooks.h (default_legitimate_address_p): New.
23001 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
23002 Call hook.
23003 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
23004 * target.h (struct target): Add legitimate_address_p.
23005 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
23006 (TARGET_INITIALIZER): Include it.
23007
23008 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23009 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
23010 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
23011 (TARGET_LEGITIMATE_ADDRESS_P): New.
23012
23013 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23014 (REG_OK_STRICT_P): Delete.
23015 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
23016 (frv_legitimate_address_p_1): ... this.
23017 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
23018 (frv_legitimate_address_p_1): ... the renamed old
23019 frv_legitimate_address_p.
23020 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
23021 (TARGET_LEGITIMATE_ADDRESS_P): New.
23022
23023 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23024 * config/s390/s390-protos.h (legitimate_address_p): Remove.
23025 * config/s390/s390.c (legitimate_address_p): Rename to...
23026 (s390_legitimate_address_p): ... this, make static.
23027 (legitimize_address): Adjust call.
23028 (TARGET_LEGITIMATE_ADDRESS_P): New.
23029 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
23030
23031 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23032 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
23033 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
23034 (TARGET_LEGITIMATE_ADDRESS_P): New.
23035
23036 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23037 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
23038 * config/spu/spu.c (spu_legitimate_address): Rename to...
23039 (spu_legitimate_address_p): ... this, make static.
23040 (TARGET_LEGITIMATE_ADDRESS_P): New.
23041
23042 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23043 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
23044 * config/sparc/sparc.c (legitimate_address_p): Rename to...
23045 (sparc_legitimate_address_p): ... this, make static and return bool.
23046 (legitimize_address): Adjust call.
23047 (TARGET_LEGITIMATE_ADDRESS_P): New.
23048
23049 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23050 * config/i386/i386-protos.h (legitimate_address_p): Remove.
23051 * config/i386/i386.c (legitimate_address_p): Rename to...
23052 (ix86_legitimate_address_p): ... this, make static.
23053 (constant_address_p): Move after it, adjust call.
23054 (TARGET_LEGITIMATE_ADDRESS_P): New.
23055
23056 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23057 * config/avr/avr-protos.h (legitimate_address_p): Remove.
23058 * config/avr/avr.c (legitimate_address_p): Rename to...
23059 (avr_legitimate_address_p): ... this, make static.
23060 (legitimize_address): Adjust call.
23061 (TARGET_LEGITIMATE_ADDRESS_P): New.
23062
23063 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23064 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
23065 * config/crx/crx.c (crx_legitimate_address_p): Make static.
23066 (TARGET_LEGITIMATE_ADDRESS_P): New.
23067
23068 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23069 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
23070 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
23071 (TARGET_LEGITIMATE_ADDRESS_P): New.
23072
23073 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23074 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
23075 Remove.
23076 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
23077 Make static.
23078 (TARGET_LEGITIMATE_ADDRESS_P): New.
23079
23080 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23081 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
23082 Remove.
23083 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
23084 Rename to...
23085 (m68hc11_legitimate_address_p): ... this, make static.
23086 (go_if_legitimate_address_internal): Rename to...
23087 (m68hc11_legitimate_address_p_1): ... this.
23088 (legitimize_address): Adjust call.
23089 (TARGET_LEGITIMATE_ADDRESS_P): New.
23090
23091 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
782dc37a
UB
23092 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
23093 * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
c6c3dba9
PB
23094 (TARGET_LEGITIMATE_ADDRESS_P): New.
23095
23096 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23097 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
23098 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
23099 (mn10300_legitimate_address_p): ... this, make static.
23100 (TARGET_LEGITIMATE_ADDRESS_P): New.
23101
23102 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23103 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
23104 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
23105 (TARGET_LEGITIMATE_ADDRESS_P): New.
23106
23107 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23108 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
23109 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
23110 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23111 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
23112 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
23113 (rs6000_legitimate_address_p): ... this, make static.
23114 (TARGET_LEGITIMATE_ADDRESS_P): New.
23115 (REG_MODE_OK_FOR_BASE_P): Delete.
23116 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
23117
23118 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23119 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
23120 Delete.
23121 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
23122 static, adjust types.
23123 (TARGET_LEGITIMATE_ADDRESS_P): New.
23124
23125 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23126 * config/score/score.c (score_address_p): Rename to...
23127 (score_legitimate_address_p): ... this.
23128 (TARGET_LEGITIMATE_ADDRESS_P): New.
23129 * config/score/score3.c (score3_address_p): Rename to...
23130 (score3_legitimate_address_p): ... this.
23131 * config/score/score7.c (score7_address_p): Rename to...
23132 (score7_legitimate_address_p): ... this.
23133
23134 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
23135 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
23136 GO_IF_LEGITIMATE_ADDRESS): Delete.
23137 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
23138 thumb2_legitimate_address_p): Delete.
23139 (arm_legitimate_address_p): Rename to...
23140 (arm_legitimate_address_outer_p): ... this.
23141 * config/arm/constraints.md ("Uq"): Adjust call.
23142 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
f3afc8a7
UB
23143 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
23144 to...
c6c3dba9 23145 (arm_legitimate_address_outer_p): ... this.
f3afc8a7
UB
23146 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
23147 static.
c6c3dba9
PB
23148 (TARGET_LEGITIMATE_ADDRESS_P): New.
23149
23150 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23151 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
23152 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
23153 (TARGET_LEGITIMATE_ADDRESS_P): New.
23154
23155 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23156 * config/vax/vax-protos.h (legitimate_address_p): Remove.
23157 * config/vax/vax.c (legitimate_address_p): Rename to...
23158 (vax_legitimate_address_p): ... this, make static.
23159 (TARGET_LEGITIMATE_ADDRESS_P): New.
23160
23161 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23162 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
23163 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
23164 (TARGET_LEGITIMATE_ADDRESS_P): New.
23165
23166 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23167 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
23168 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
23169 (mmix_legitimate_address_p): ... this, make static.
23170 (TARGET_LEGITIMATE_ADDRESS_P): New.
23171
23172 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
23173 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
23174 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
23175 (TARGET_LEGITIMATE_ADDRESS_P): New.
23176
3bd0d9c8
PB
231772009-05-14 Paolo Bonzini <bonzini@gnu.org>
23178
23179 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
23180 of MODE_COMPLEX_INT.
23181
fe049033
RO
231822009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
23183
23184 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
23185 LCT_NORMAL in function call.
23186 * mips-tdump.c (print_file_desc): Add cast to enum type.
23187 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
23188 (mark_stabs): Add casts to enum types.
23189 (parse_stabs_common): Add casts to enum types.
16f7ad42 23190
b0907a6c
AN
231912009-05-13 Adam Nemet <anemet@caviumnetworks.com>
23192
23193 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
23194 Check for invalid values of LETTER.
23195
d1c8e08a
TG
231962009-05-13 Taras Glek <tglek@mozilla.com>
23197
f3afc8a7
UB
23198 * attribs.c (register_attribute): moved out attribute registration
23199 into register_attribute.
23200 * doc/plugins.texi: Documented register_attribute and
23201 PLUGIN_ATTRIBUTES.
16f7ad42
TG
23202 * gcc-plugin.h: Added forward decl for register_attribute.
23203 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
23204 * plugin.c (register_callback, invoke_plugin_callbacks): Added
23205 PLUGIN_ATTRIBUTES boilerplate.
d1c8e08a 23206
4ed7f970
DK
232072009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
23208
23209 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
23210 values even in sentinel and empty entries.
23211 (ms_printf_flag_specs): Likewise.
23212 (ms_scanf_flag_specs): Likewise.
23213 (ms_strftime_flag_specs): Likewise.
23214 (ms_print_char_table): Likewise.
23215 (ms_scan_char_table): Likewise.
23216 (ms_time_char_table): Likewise.
23217
3d8fa148
DK
232182009-05-13 Doug Kwan <dougkwan@google.com>
23219
23220 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
23221
f06257d3
AN
232222009-05-13 Adam Nemet <anemet@caviumnetworks.com>
23223
23224 * config/mips/mips.md (store): Add attributes for QI and HI.
23225 Update comment.
23226 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
23227 (truncdi<mode>2): ... this new pattern.
23228
fb201767
BH
232292009-05-13 Brad Hards <bradh@kde.org>
23230
23231 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
23232
c7bda60e 232332009-05-14 Jakub Jelinek <jakub@redhat.com>
efc3527a
BE
23234 Ben Elliston <bje@au.ibm.com>
23235
23236 PR middle-end/40035
23237 * dse.c (check_mem_read_rtx): Guard against width == -1.
23238
ce985b43
MM
232392009-05-13 Michael Matz <matz@suse.de>
23240
23241 PR middle-end/39976
23242 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
23243 (trivially_conflicts_p): New function.
23244 (insert_backedge_copies): Use it.
23245
7de1d221
JJ
232462009-05-13 Janis Johnson <janis187@us.ibm.com>
23247
23248 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
23249 (handle_stdc_pragma): Use new enum constant names.
23250 (handle_pragma_float_const_decimal64): Ditto.
23251
bfefafc6
ILT
232522009-05-13 Ian Lance Taylor <iant@google.com>
23253
23254 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
23255 tree.def.
23256
286c4fcb
NS
232572009-05-13 Nathan Sidwell <nathan@codesourcery.com>
23258
23259 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
23260 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
23261 multilibs.
23262 * config/m68k/m68k.h (FL_UCLINUX): Define.
23263
ebaa6ea7
JH
232642009-05-13 Jan Hubicka <jh@suse.cz>
23265
23266 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
23267
2b703e1a
KK
232682009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
23269
23270 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
23271 unless -fschedule-insns is specified.
23272
c3537723
KK
232732009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
23274
23275 PR target/39561
23276 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
23277 TARGET_EXPAND_CBRANCHDI4.
23278 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
23279 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
23280 (cmpeqdi): Fix comment.
23281
cdeed45a
KK
232822009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
23283
23284 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
23285 (sh_legitimate_address_p): Likewise.
23286 * config/sh/sh.c (sh_legitimate_index_p): New.
23287 (sh_legitimate_address_p): Likewise.
23288 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
23289 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
23290 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
23291 (MAYBE_BASE_REGISTER_RTX_P): New macro.
23292 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
23293 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
23294 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
23295 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
23296 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
23297
02f0b13a
JH
232982009-05-12 Jan Hubicka <jh@suse.cz>
23299
23300 * tree-inline.c (estimate_operator_cost): Add operands;
23301 when division happens by constant, it is cheap.
23302 (estimate_num_insns): Loads and stores are not having cost of 0;
23303 EH magic stuff is cheap; when computing runtime cost of switch,
23304 use log2 base of amount of its cases; builtin_expect has cost of 0;
23305 compute cost for moving return value of call.
23306 (init_inline_once): Initialize time_based flags.
23307 * tree-inline.h (eni_weights_d): Add time_based flag.
23308
ecb7f6de
PB
233092009-05-12 Paolo Bonzini <bonzini@gnu.org>
23310
23311 * df-core.c: Update head documentation.
23312
c24151ce
MM
233132009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
23314
23315 PR bootstrap/40118
23316 * rs6000.c (rs6000_generate_compare): Use op1b instead of
23317 shadowing exisiting variable op1.
23318
fbdf817d
UB
233192009-05-12 Uros Bizjak <ubizjak@gmail.com>
23320
704bf7c8 23321 PR target/37179
fbdf817d
UB
23322 * config/i386/driver-i386.c (processor_signatures): New enum.
23323 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
23324 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
23325 processor signature to detect geode processor.
23326
5e8d1826
PB
233272009-05-12 Paolo Bonzini <bonzini@gnu.org>
23328
23329 Revert:
23330
23331 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
23332
23333 * optabs.c (prepare_cmp_insn): Temporarily disable test that
23334 causes spurious differences between trunk and cond-optab branch.
23335
f90b7a5a
PB
233362009-05-12 Paolo Bonzini <bonzini@gnu.org>
23337
fbdf817d
UB
23338 * dojump.c (compare_from_rtx): Delete.
23339 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
23340 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
f90b7a5a
PB
23341 if the comparison does not satisfy the predicate; test predicates for
23342 operands 2 and 3 of a cstore pattern. Don't try cstore optab
23343 further if one existing pattern fails.
fbdf817d 23344 * expr.h (compare_from_rtx): Delete.
f90b7a5a 23345 (prepare_operand): Declare it.
fbdf817d 23346 * optabs.c: Change "lib call" to "libcall" throughout.
f90b7a5a 23347 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
fbdf817d
UB
23348 HAVE_conditional_trap, emit_cmp_insn): Delete.
23349 (can_compare_p): Delete cmp_optab case.
f90b7a5a 23350 (prepare_float_lib_cmp): Return an rtx and a machine mode.
fbdf817d
UB
23351 Accept other parameters by value.
23352 (prepare_operand): Make non-static.
23353 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
23354 other parameters by value. Try to widen operands here based on
23355 an optab_methods argument and looking at cbranch_optab.
23356 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
23357 loop. Use cbranch_optab directly.
23358 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
23359 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
23360 assertion.
23361 (emit_conditional_move, emit_conditional_add): Inline what's needed
23362 of compare_from_rtx, using new prepare_cmp_insn for the rest.
23363 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
23364 with COMPARE. Move cmov_optab and cstore_optab above
23365 with cbranch_optab, move cmp_optab down with ucmp_optab,
23366 remove tst_otpab. Do not initialize trap_rtx.
23367 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
f90b7a5a
PB
23368 for trap code. Do not check HAVE_conditional_trap. Use
23369 prepare_cmp_insn. Accept no predicate for operand 3.
fbdf817d
UB
23370 * optabs.h (OTI_cmp): Mark as used only for libcalls.
23371 (OTI_ctrap, ctrap_optab): New.
23372 (tst_optab): Delete.
23373 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
23374 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
23375 with lookup of ctrap_optab.
f3afc8a7
UB
23376 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
23377 Delete.
fbdf817d
UB
23378 (ctrap_optab): New.
23379
23380 * combine.c (combine_simplify_rtx, simplify_set): Do not
23381 special case comparing against zero for cc0 machines.
f90b7a5a
PB
23382 * simplify-rtx.c (simplify_binary_operation_1): Never remove
23383 COMPARE on cc0 machines.
23384 (simplify_relational_operation): Return a new expression when
23385 a COMPARE could be removed.
fbdf817d
UB
23386 * final.c (final_scan_insn): Compare cc_status values
23387 against LHS of a (compare FOO (const_int 0)) cc0 source.
23388 Also check if cc_status.value is the full compare.
f90b7a5a 23389
fbdf817d
UB
23390 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
23391 (cstoreMM4): Document.
f90b7a5a 23392 (conditional_trap): Document ctrapMM4 instead.
fbdf817d 23393 (sync_compare_and_swapMM): Refer to cbranchcc4.
f90b7a5a
PB
23394 (Dependent Patterns): Eliminate obsolete information referring to
23395 the old jump optimization phase.
fbdf817d 23396 (Canonicalization): Include cbranchcc4 case, omit canonicalization
f90b7a5a
PB
23397 of compares with 0 on cc0 machines.
23398 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
23399 avoiding references to cc0. Remove text about storing operands
23400 in cmpMM.
23401 * doc/tm.texi (Condition Codes): Include blurb on different
23402 condition code representations, separate into subsections for
23403 CC0, MODE_CC and conditional execution.
23404
fbdf817d
UB
23405 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
23406 alpha_emit_setcc): Accept operands and a machine mode.
23407 * config/alpha/alpha.c (alpha_emit_conditional_branch):
23408 Get code/op0/op1 from operands, use machine mode argument
23409 instead of alpha_compare.fp_p. Emit the branch here.
23410 (alpha_emit_setcc): Likewise, and return boolean.
23411 (alpha_emit_conditional_move): Likewise. Assert that
23412 cmp_op_mode == cmp_mode, and simplify accordingly.
23413 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
23414 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
23415 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
23416 Delete.
23417 (stack probe test): Use cbranchdi4.
23418 * config/alpha/predicates.md (alpha_cbranch_operator): New.
23419
f100a4a8 23420 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
fbdf817d
UB
23421 * config/arc/arc.h (movsicc, movsfcc): Use it.
23422 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
23423 (cbranchsi4, cstoresi4): New.
f100a4a8 23424 (cmpsi, bCC and sCC expanders): Remove.
fbdf817d
UB
23425
23426 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
23427 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
23428 * config/arm/predicates.md (arm_comparison_operator): Only include
23429 floating-point operators if there is a hardware floating-point unit.
23430 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
23431 deferring to cbranch_cc and cstore_cc respectively.
23432 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
23433 cbranch_cc, cstore_cc): New.
23434 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
f90b7a5a 23435 arm_compare_op1.
fbdf817d
UB
23436 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
23437
23438 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
23439 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
23440 as an argument.
23441 (adjust_insn_length): Adjust calls.
23442 (avr_reorg): Handle (compare (foo) (const_int 0)).
23443 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
23444 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
23445 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
23446 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
23447 (bCC): Remove.
23448 (cbranchqi4, cbranchhi4, cbranchsi4): New.
f90b7a5a
PB
23449 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
23450
fbdf817d
UB
23451 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
23452 (cbranchsi4, cstorebi4, cstoresi4): New.
f90b7a5a 23453 (movbisi): This insn is duplicate, split it to zero_extend.
fbdf817d
UB
23454 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
23455 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
23456 (bfin_optimize_loop): Use cbranch expander.
23457 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
23458 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
23459 (bfin_bimode_comparison_operator): ... this.
23460 (bfin_direct_comparison_operator): New.
f100a4a8 23461
fbdf817d
UB
23462 * config/cris/cris.c (cris_normal_notice_update_cc): Look
23463 inside (compare FOO (const_int 0)).
23464 (cris_rtx_costs): Handle ZERO_EXTRACT.
23465 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
23466 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
23467 (*tstdi_v32): Delete.
23468 (*cmpdi_non_v32): Add M alternative for operand 1.
23469 (cmpsi, cmp<mode>): Make private.
23470 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
23471 with COMPARE.
23472 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
23473
23474 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
23475 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
23476 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
f90b7a5a
PB
23477 (cc_reg_operand): New.
23478 (any_cond): Delete.
fbdf817d
UB
23479 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
23480 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
23481 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
23482 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
23483 crx_expand_scond): Delete.
23484
23485 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
23486 (cbranchsi4): New.
23487 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
23488 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
23489
23490 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
23491 cstoresi4, cstoresf4, cstoredf4): New.
23492 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
23493 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
23494 Receive the entire operands array.
23495 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
23496 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
23497 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
23498 Get test/op0/op1 from the operands array.
23499 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
23500
23501 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
23502 (h8300_expand_store): New.
23503 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
23504 (const_int 0)).
23505 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
23506 (h8300_expand_store): New.
23507 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
23508 or do not try to produce (set (cc0) REG).
23509 (peepholes): Wrap arguments with COMPARE. Add a peephole to
23510 change a compare into a move to a scratch register. Disable some
23511 peepholes when comparing with zero.
23512 (tstsi, tsthi, tstsi, cmpqi): Make private.
23513 (cmphi): Delete.
23514 (bCC, sCC): Delete.
23515 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
23516 cstoresi4): New.
f90b7a5a
PB
23517
23518 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
23519 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
23520 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
23521 (ix86_emit_i387_log1p): Use cbranchxf2.
23522 (ix86_expand_setcc): Return void.
23523 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
23524 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
23525 cmp<MODEF>, cmpcc): Remove.
fbdf817d
UB
23526 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
23527 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
23528 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
f90b7a5a
PB
23529 (sCC and bCC expanders): Remove.
23530 (stack_protect_test): Use cbranchcc4.
23531
fbdf817d
UB
23532 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
23533 Delete.
23534 (ia64_expand_compare): Accept three rtx by reference and return void.
23535 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
23536 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
23537 from *expr. Update *expr with the BImode comparison to do.
23538 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
23539 cmptf, bCC, sCC, conditional_trap): Delete.
f100a4a8 23540 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
fbdf817d
UB
23541 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
23542 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
23543 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
23544 * config/ia64/predicates.md (ia64_cbranch_operator): New.
23545
23546 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
23547 type of last argument.
23548 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
23549 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
23550 use machine mode argument instead of branch_type. Remove dead
23551 code for floating-point comparisons.
23552 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
23553 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
23554 Remove.
23555 (cbranchsi4, cstoresi4): New.
23556 * config/iq2000/predicates.md (reg_or_const_operand): New.
23557
23558 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
23559 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
23560 (b<code>_op): Rewrite to...
23561 (bcc_op): ... this, using match_operator.
23562 (s<code>_op): Rewrite to...
23563 (scc_op): ... this, using match_operator.
23564 (s<code>_24_op): Rewrite to...
23565 (scc_op_24): ... this, using match_operator.
23566 (s<code>_<mode>): Rewrite to...
23567 (cstore<mode>4): ... this, using match_operator.
23568 (s<code>_<mode>_24): Rewrite to...
23569 (cstore<mode>4_24): ... this, using match_operator.
23570 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
23571 m32c_unpend_compare, m32c_expand_scc): Delete.
23572 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
23573 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
23574 (m32c_expand_movcc): Change NE to EQ if necessary.
23575 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
23576
23577 * config/m32r/m32r-protos.h (gen_cond_store): New.
23578 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
23579 (gen_cond_store): New, from sCC patterns.
23580 (m32r_expand_block_move): Use cbranchsi4.
23581 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
23582 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
23583 (cbranchsi4, cstoresi4): New.
f100a4a8 23584
fbdf817d
UB
23585 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
23586 Delete.
23587 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
f90b7a5a 23588 (m68hc11_notice_update_cc): Look into a compare with 0.
fbdf817d
UB
23589 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
23590 Delete.
23591 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
23592 cmphi, cmpqi, bCC): Delete.
23593 (cbranchsi4, cbranchhi4, cbranchqi4): New.
23594 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
23595 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
23596 sets with COMPARE.
23597
23598 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
23599 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
23600 * config/m68k/constraints.md (H): New.
23601 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
23602 the define_insn below.
23603 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
23604 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
23605 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
23606 patterns): Wrap RHS with COMPARE.
23607 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
23608 (*cmpdi_internal): Name this pattern.
23609 (cmpdi): Change to define_insn.
23610 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
23611 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
23612 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
23613 predicate.
23614 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
23615 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
23616 (conditional_trap): Change to...
23617 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
23618 (*conditional_trap): Use the ordered_comparison_operator and
23619 const1_operand predicates.
23620 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
23621 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
23622 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
23623 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
23624
23625 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
23626 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
f100a4a8 23627 (mcore_gen_compare): New.
fbdf817d
UB
23628 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
23629 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
23630 (mcore_gen_compare): ... this.
23631 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
23632 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
23633 (stack probe pattern): Use cbranchsi4.
23634
23635 * config/mips/predicates.md (mips_cstore_operator): New.
23636 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
23637 * config/mips/mips.md (any_cond): Delete.
23638 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
23639 always succeed.
23640 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
23641 fixuns_truncsfdi2): Use cbranch patterns.
f100a4a8 23642 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
fbdf817d
UB
23643 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
23644 Adjust call to mips_expand_conditional_branch.
23645 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
23646 cstore<GPR:mode>4.
23647 * config/mips/mips-protos.h (mips_expand_conditional_branch,
23648 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
23649 * config/mips/mips.c (cmp_operands): Delete.
23650 (mips_emit_compare): Get comparison operands from *op0/*op1.
23651 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
23652 that it succeeds. Use op0/op1 instead of cmp_operands.
23653 (mips_expand_conditional_branch, mips_expand_conditional_move,
23654 mips_expand_conditional_trap): Likewise.
f100a4a8 23655 (mips_block_move_loop): Use cbranch patterns.
fbdf817d
UB
23656 * config/mips/mips.h (cmp_operands): Delete.
23657
23658 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
23659 (mmix_gen_compare_reg): Just return a register in the right CC mode.
23660 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
23661 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
23662 (*cmpcc_folded): Rename to...
23663 (*cmpdi_folded): this.
23664 (*cmpcc): Rename to...
23665 (*cmps): ... this.
23666 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
23667 (bCC): Remove.
23668 (cbranchdi4): New.
23669 (cbranchdf4): New. Handle invalid comparisons here.
23670 * config/mmix/predicates.md (float_comparison_operator): New.
23671
23672 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
23673 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
23674 * config/mn10300/mn10300.md (tst): Delete.
23675 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
23676 Name these patterns and wrap RHS in a compare.
23677 (*cmpsi): Make this pattern private. Include tst.
23678 (*cmpsf): Make this pattern private.
23679 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
23680 (compare with zero peepholes): Likewise.
23681 (bCC): Remove.
23682 (cbranchsi4, cbranchsf4): New.
23683 (casesi): Use cbranchsi4.
23684
23685 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
23686 hppa_branch_type): Delete.
23687 (return_addr_rtx): Use cbranchsi4.
23688 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
23689 Emit CCFPmode comparison here.
23690 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
23691 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
23692 hppa_branch_type): Delete.
23693 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
23694 (movsicc, movdicc): Remove references to hppa_compare_op0,
23695 hppa_compare_op1 and compare_from_rtx.
23696 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
23697 (casesi): Use cbranchsi4.
23698
23699 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
23700 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
23701 * config/pdp11/pdp11.md (register_or_const0_operand): New.
23702 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
23703 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
23704 (bCC): Delete.
23705 (cbranchdf4, cbranchhi4, cbranchqi4): New.
23706 (*branch, *branch_inverted): New.
23707
23708 * config/picochip/picochip.md (cbranchhi4): Use
23709 ordered_comparison_operator.
23710 (cmphi, bCC): Remove.
23711
23712 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
23713 (trap_comparison_operator): Delete.
23714 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
23715 rs6000_emit_cbranch): Accept mode and operands.
23716 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
f100a4a8 23717 rs6000_compare_fp_p): Delete.
fbdf817d
UB
23718 (rs6000_generate_compare): Accept mode and comparison. Extract code
23719 and op0/op1 from there. Replace references to rs6000_compare_op0
23720 and rs6000_compare_op1.
23721 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
23722 extract result from passed operands.
23723 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
23724 extract loc from passed operands.
23725 (rs6000_emit_cmove): Likewise.
23726 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
23727 rs6000_compare_fp_p): Delete.
23728 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
23729 (cbranch<GPR>4, cbranch<FP>4): New.
23730 (cstore<mode>4): New. Consolidate here all choices about when to use
23731 portable or specialized sCC sequences.
23732 (stack_protect_test): Use cbranchsi4.
23733 (conditional_trap): Replace with ctrap<GPR>4.
23734 (conditional trap insn): Replace trap_comparison_operator with
f100a4a8 23735 ordered_comparison_operator.
fbdf817d
UB
23736
23737 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
23738 (s390_emit_prologue): Use ctrap.
23739 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
23740 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
23741 New predicates replacing...
23742 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
23743 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
23744 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
23745 (add<mode>cc): Do not use s390_compare_op0/op1.
23746 (s<code>): Change to...
23747 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
23748 (seq): Change to...
23749 (cstorecc4): ... this. Handle EQ or NE equally.
23750 (*sne): Un-privatize for use in cstorecc4.
23751 (b<code>): Change to...
23752 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
23753 (conditional_trap): Replace with...
23754 (ctrap<GPR>4, ctrap<FP>4): ... these.
23755 (stack_protect): Use cbranchcc4.
23756
23757 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
23758 * config/score/score-protos.h (score_gen_cmp): Delete.
23759 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
23760 (score_block_move-loop): Use cbranchsi4.
23761 * config/score/score.md (cbranchsi4): New.
23762 (cmpsi, bCC): Delete.
23763 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
23764 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
23765 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
23766 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
23767 * config/score/score3.h (score3_gen_cmp): Delete.
23768 * config/score/score7.h (score7_gen_cmp): Delete.
23769
23770 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
23771 (sh_emit_scc_to_t): ... this. Return void.
23772 (from_compare): Rename to...
23773 (sh_emit_compare_and_branch): ... this.
23774 (sh_emit_compare_and_set): New.
23775 (sh_expand_t_scc): Accept operands.
23776 * config/sh/predicates.md (sh_float_comparison_operator): New.
23777 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
23778 (prepare_scc_operands): Rename to...
23779 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
23780 arguments.
23781 (sh_emit_cheap_store_flag): New.
f90b7a5a 23782 (sh_emit_set_t_insn): New.
fbdf817d
UB
23783 (from_compare): Rename to...
23784 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
23785 handling of TARGET_SH2E floating point to avoid recursive call.
23786 Generate branch here.
23787 (sh_emit_compare_and_set): New.
23788 (sh_expand_t_scc): Get op0/op1 from arguments.
23789 (sh_emit_cheap_store_flag): New.
23790 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
23791 cases.
f90b7a5a 23792 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
fbdf817d
UB
23793 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
23794 (movsicc, movdicc): Do nothing when it recreated operands from
23795 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
23796 prepare_scc_operands (now sh_emit_scc_to_t).
23797 (udivdi3): Use cstoresi4.
23798 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
23799 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
23800 (cbranchint4_media, cbranchfp4_media): New.
23801 (casesi): Use cbranchdi4.
23802 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
23803 Delete.
23804 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
23805 (movnegt): Remove second operand.
23806 (cbranchsf4, cbranchdf4): New.
23807 (stack_protect): Use cbranchdi4/cbranchsi4.
23808
23809 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
23810 (gen_compare_reg): Accept comparison, extract part of it to...
f100a4a8 23811 (gen_compare_reg_1): ... this.
fbdf817d
UB
23812 (gen_compare_operator): Delete.
23813 (gen_v9_scc): Accept separate destination, comparison code and arms.
23814 Do not use sparc_compare_op0/sparc_compare_op1.
23815 (emit_scc_insn, emit_conditional_branch_insn): New.
23816 (emit_v9_brxx): Make static. Remove useless assertion.
23817 (sparc_emit_float_lib_cmp): Return RTL instead of calling
23818 emit_cmp_insn.
23819 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
23820 * config/sparc/sparc-protos.h (gen_compare_reg,
f90b7a5a
PB
23821 sparc_emit_float_lib_cmp): Adjust prototype.
23822 (emit_scc_insn, emit_conditional_branch_insn): New.
23823 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
fbdf817d
UB
23824 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
23825 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
23826 iterators to the top.
23827 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
23828 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
f90b7a5a 23829 snedi_special_trunc): Delete.
fbdf817d 23830 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
f90b7a5a 23831 and snedi_special_trunc.
fbdf817d
UB
23832 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
23833 cbranchdi4, cbranch<F:mode>4): New.
23834 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
23835 here. Use gen_compare_reg instead of gen_compare_operator.
23836 (conditional_trap): Replace with...
23837 (ctrapsi4, ctrapdi4): ... this.
23838 (stack_protect_test): Use cbranchcc4.
23839
23840 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
23841 argument to rtx.
f100a4a8 23842 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
fbdf817d
UB
23843 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
23844 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
23845 from operands[0] or operands[3] depending on is_set.
23846 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
23847 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
23848 cmpdf, bCC), sCC: Remove.
f100a4a8 23849 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
fbdf817d
UB
23850 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
23851 cstoredf4): New.
23852 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
23853 spu_emit_branch_or_set.
23854
23855 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
23856 Add two arguments.
23857 * config/stormy16/stormy16.h (xstormy16_compare_op0,
23858 xstormy16_compare_op1): Delete.
23859 * config/stormy16/stormy16.c (xstormy16_compare_op0,
f100a4a8 23860 xstormy16_compare_op1): Delete.
fbdf817d
UB
23861 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
23862 Adjust calls.
23863 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
23864 (cmphi, cmpsi, bCC): Remove.
23865
23866 * config/v850/v850.md (tstsi, cmpsi): Fold into...
23867 (*cmpsi): ... this one.
23868 (cbranchsi4, cstoresi4): New.
23869 (bCC expanders): Delete.
23870 (sCC insns): Fold into...
23871 (*setcc): ... this one.
f100a4a8 23872 (casesi): Do not use gen_cmpsi and gen_bgtu.
f90b7a5a
PB
23873 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
23874 (movsicc): Simplify.
23875 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
23876
fbdf817d
UB
23877 * config/vax/vax-protos.h (cond_name): New.
23878 (vax_output_conditional_branch): Remove.
23879 * config/vax/vax.c (cond_name): New.
23880 (vax_output_conditional_branch): Remove.
23881 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
23882 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
23883 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
23884 (bit<VAXint>): Wrap source with (compare).
23885 (b<code> and following unnamed pattern): Rename to *branch and
23886 *branch_reversed. Change macroization to match_operator.
23887 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
23888
23889 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
23890 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
23891 Change last argument to machine_mode.
23892 (xtensa_expand_scc): Add machine_mode argument.
23893 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
23894 (gen_conditional_move, xtensa_expand_conditional_branch,
23895 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
23896 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
23897 Adjust operand numbers.
23898 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
23899 Delete.
23900 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
23901 (cmpsi, cmpsf, b<code>, s<code>): Delete.
23902 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
f90b7a5a 23903
16670495
PB
239042009-05-12 Paolo Bonzini <bonzini@gnu.org>
23905
23906 * optabs.c (prepare_cmp_insn): Temporarily disable test that
23907 causes spurious differences between trunk and cond-optab branch.
23908
4a4a4e99
AO
239092009-05-12 Alexandre Oliva <aoliva@redhat.com>
23910
23911 PR target/37137
23912 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
23913
72b9acff
AO
239142009-05-12 Alexandre Oliva <aoliva@redhat.com>
23915
23916 * tree.c (iterative_hash_pointer): Delete.
23917 (iterative_hash_expr): Short-circuit handling of NULL pointer.
23918 Hash UIDs and versions of SSA names. Don't special-case built-in
23919 function declarations.
23920
b7dd69ac
ILT
239212009-05-11 Ian Lance Taylor <iant@google.com>
23922
23923 PR bootstrap/40103
23924 * graphite.c: Force -Wc++-compat to only be a warning before
23925 #including "cloog/cloog.h".
23926
ed102b70
MJ
239272009-05-11 Martin Jambor <mjambor@suse.cz>
23928
23929 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
f100a4a8 23930
08f1af2e
JH
239312009-05-11 Jan Hubicka <jh@suse.cz>
23932
23933 * tree-ssa-loop-ivcanon.c: Include target.h
23934 (struct loop_size): new structure.
23935 (constant_after_peeling): New predicate.
23936 (tree_estimate_loop_size): New function.
23937 (estimated_unrolled_size): Rewrite for new estimates.
23938 (try_unroll_loop_completely): Use new estimates.
23939 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
23940
a7d39bd3
AP
239412009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
23942
23943 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
23944 libcpp interface change.
23945 (spu_macro_to_expand): Likewise.
23946
f5a1f0d0
PB
239472009-05-11 Paolo Bonzini <bonzini@gnu.org>
23948
23949 PR tree-optimization/40026
23950 * gimplify.c (gimplify_init_constructor): Change initial conditional
23951 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
23952 optimize_compound_literals_in_ctor.
23953
c260f01f
NS
239542009-05-11 Nathan Sidwell <nathan@codesourcery.com>
23955
23956 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
23957 New devices.
23958 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
23959
df398a37
L
239602009-05-11 H.J. Lu <hongjiu.lu@intel.com>
23961
23962 * tree-vect-data-refs.c (vect_analyze_group_access): Use
23963 HOST_WIDE_INT for gap.
23964
4da39468
IR
239652009-05-11 Ira Rosen <irar@il.ibm.com>
23966
23967 PR tree-optimization/40074
23968 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
23969 account in group size and step comparison.
23970
4effdf02
RG
239712009-05-11 Richard Guenther <rguenther@suse.de>
23972
23973 * passes.c (init_optimization_passes): Strip now incorrect comment.
23974 (execute_function_todo): Do not set PROP_alias.
23975 * tree-pass.h (PROP_alias): Remove.
23976 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
23977 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
23978 * tree-nrv.c (pass_return_slot): Likewise.
23979 * tree-object-size.c (pass_object_sizes): Likewise.
23980 * tree-ssa-dom.c (pass_dominator): Likewise.
23981 (pass_phi_only_cprop): Likewise.
23982 * tree-ssa-dse.c (pass_dse): Likewise.
23983 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
23984 (pass_cselim): Likewise.
23985 * tree-ssa-pre.c (pass_pre): Likewise.
23986 (pass_fre): Likewise.
23987 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
23988 * tree-ssa-sink.c (pass_sink_code): Likewise.
23989 * tree-stdarg.c (pass_stdarg): Likewise.
23990 * tree-tailcall.c (pass_tail_calls): Likewise.
23991 * tree-vrp.c (pass_vrp): Likewise.
23992
24b97832
ILT
239932009-05-10 Ian Lance Taylor <iant@google.com>
23994
23995 * basic-block.h (enum profile_status): Break out of struct
23996 control_flow_graph.
23997 * cgraph.h (struct inline_summary): Break out of struct
23998 cgraph_local_info.
23999 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
24000 of struct cgraph_order_sort.
fbdf817d 24001 * combine.c (enum undo_kind): New enum, broken out of struct undo.
24b97832
ILT
24002 * cse.c (struct branch_path): Break out of struct
24003 cse_basic_block_data.
24004 * except.h (enum eh_region_type): Break out of struct eh_region.
24005 * gcc.c (enum add_del): Break out of struct modify_target.
fbdf817d 24006 * genrecog.c (enum decision_type): Break out of struct decision_test.
24b97832
ILT
24007 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
24008 ggc_pch_data.
fbdf817d
UB
24009 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
24010 * regmove.c (enum match_use): New enum, broken out of struct match.
24b97832
ILT
24011 * sched-int.h (enum post_call_group): New enum, broken out of
24012 struct deps.
24013 (struct deps_reg): Break out of struct deps.
24014 * target.h (struct asm_int_op): Break out of struct gcc_target.
24015 * tree-eh.c (struct goto_queue_node): Break out of struct
24016 leh_tf_state.
24017 * tree-inline.h (enum copy_body_cge_which): Break out of
24018 copy_body_data.
24019 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
24020
24021 * c-decl.c (in_struct, struct_types): New static variables.
24022 (pushtag): Add loc parameter. Change all callers.
24023 (lookup_tag): Add ploc parameter. Change all callers.
24024 (check_compound_literal_type): New function.
24025 (parser_xref_tag): Add loc parameter. Change all callers. If
24026 -Wc++-compat, warn about struct/union/enum types defined within a
24027 struct or union.
24028 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
24029 and loc parameters. Change all callers. Change error calls to
24030 error_at, using loc. For a redefinition, if the location of the
24031 original definition is known, report it. Set in_struct and
fbdf817d 24032 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
24b97832
ILT
24033 (finish_struct): Add new parameters enclosing_in_struct and
24034 enclosing_struct_types. Change all callers. Set
24035 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
24036 in the struct. If in a struct, add this struct to struct_types.
24037 (start_enum): Add loc parameter. Change all callers. Use
24038 error_at for errors, using loc. For a redefinition, if the
24039 location of the original definition is known, report it. If in a
24040 struct, add this enum type to struct_types. If -Wc++-compat warn
24041 if in sizeof, typeof, or alignof.
fbdf817d
UB
24042 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
24043 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
24b97832
ILT
24044 (c_parser_enum_specifier): Get enum location for start_enum.
24045 (c_parser_struct_or_union_specifier): Get struct location for
24046 start_struct. Save in_struct and struct_types status between
24047 start_struct and finish_struct.
24048 (c_parser_cast_expression): Get location of cast.
24049 (c_parser_alignof_expression): Get location of type.
24050 (c_parser_postfix_expression): Likewise.
24051 (c_parser_postfix_expression_after_paren_type): Add type_loc
fbdf817d
UB
24052 parameter. Change all callers. Call check_compound_literal_type.
24053 Use type_loc for error about variable size type.
24054 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
24055 of an enum constant from an enum type defined in a struct or union.
24b97832
ILT
24056 (c_cast_expr): Add loc parameter. Change all callers. If
24057 -Wc++-compat, warn about defining a type in a cast.
24058 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
24059 (start_enum, start_struct, finish_struct): Update declarations.
24060 (parser_xref_tag, c_cast_expr): Update declarations.
24061 (check_compound_literal_type): Declare.
24062
7a2738fa
BE
240632009-05-11 Ben Elliston <bje@au.ibm.com>
24064
24065 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
24066 for recent libcpp interface change.
24067 (rs6000_macro_to_expand): Likewise.
24068
af618949
MM
240692009-05-10 Michael Matz <matz@suse.de>
24070
24071 PR target/40031
24072 * config/arm/arm.c (require_pic_register): Emit on entry edge,
24073 not at entry of function.
24074
b7d7a473
RG
240752009-05-10 Richard Guenther <rguenther@suse.de>
24076
24077 PR tree-optimization/40081
24078 Revert
24079 * tree-sra.c (instantiate_element): Instantiate scalar replacements
24080 using the main variant of the element type. Do not fiddle with
24081 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
24082
24083 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
24084 structs with volatile fields.
24085
078c3644
JH
240862009-05-10 Jan Hubicka <jh@suse.cz>
24087
24088 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
fbdf817d
UB
24089 (estimate_move_cost): Assert that it does not get called for
24090 VOID_TYPE_P.
078c3644
JH
24091 (estimate_num_insns): Skip VOID types in argument handling.
24092 (optimize_inline_calls): Delete unreachable blocks and verify that
24093 callgraph is valid.
24094
39ff5a96
JH
240952009-05-10 Jan Hubicka <jh@suse.cz>
24096
24097 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
24098 * cgraph.c (cgraph_mark_address_taken_node): New function.
24099 (dump_cgraph_node): Dump new flag.
24100 * cgraph.h (struct cgraph_node): Add address_taken.
24101 (cgraph_mark_address_taken_node): New function.
39ff5a96
JH
24102 * ipa.c (cgraph_postorder): Prioritize functions with address taken
24103 since new direct calls can be born.
24104
9a0c6187
JM
241052009-05-10 Joseph Myers <joseph@codesourcery.com>
24106
24107 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
24108 tok->val.node.node.
24109
4b685e14
JH
241102009-05-10 Jan Hubicka <jh@suse.cz>
24111
24112 PR middle-end/40084
fb0be169
EB
24113 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
24114 argument; rewrite.
4b685e14
JH
24115 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
24116 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
24117 * tree-inline.c (copy_bb): Set frequency correctly.
fb0be169
EB
24118 (fold_marked_statements): Update call to
24119 cgraph_update_edges_for_call_stmt.
4b685e14 24120
29d08eba
JM
241212009-05-10 Joseph Myers <joseph@codesourcery.com>
24122
24123 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
24124 identifiers in diagnostics.
24125 * config/arm/arm.c (arm_handle_fndecl_attribute,
24126 arm_handle_isr_attribute): Likewise.
24127 * config/avr/avr.c (avr_handle_progmem_attribute,
782dc37a 24128 avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
29d08eba
JM
24129 * config/bfin/bfin.c (handle_int_attribute,
24130 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
24131 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
24132 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
24133 Likewise.
24134 * config/darwin.c (darwin_handle_kext_attribute,
24135 darwin_handle_weak_import_attribute): Likewise.
24136 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
24137 h8300_handle_eightbit_data_attribute,
24138 h8300_handle_tiny_data_attribute): Likewise.
24139 * config/i386/i386.c (ix86_handle_cconv_attribute,
782dc37a 24140 ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
29d08eba
JM
24141 * config/i386/winnt.c (ix86_handle_shared_attribute,
24142 ix86_handle_selectany_attribute): Likewise.
24143 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
24144 * config/m32c/m32c.c (function_vector_handler): Likewise.
24145 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
24146 m68hc11_handle_fntype_attribute): Likewise.
24147 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
24148 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
24149 * config/mips/mips.c (mips_insert_attributes,
24150 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
24151 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
24152 rs6000_handle_struct_attribute): Likewise.
24153 * config/sh/sh.c (sh_insert_attributes,
24154 sh_handle_resbank_handler_attribute,
24155 sh_handle_interrupt_handler_attribute,
24156 sh2a_handle_function_vector_handler_attribute,
24157 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
24158 Likewise.
24159 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
24160 * config/spu/spu.c (spu_handle_fndecl_attribute,
24161 spu_handle_vector_attribute): Likewise.
24162 * config/stormy16/stormy16.c
24163 (xstormy16_handle_interrupt_attribute): Likewise.
24164 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
24165 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
24166
f41c4af3
JM
241672009-05-10 Joseph Myers <joseph@codesourcery.com>
24168
782dc37a 24169 * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
f41c4af3
JM
24170 (pp_translate_identifiers): New.
24171 (pp_identifier): Only conditionally translate identifier to locale
24172 character set.
24173 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
24174 (pp_base_tree_identifier): Only conditionally translate identifier
24175 to locale character set.
24176 * c-pretty-print.c (M_): Define.
24177 (pp_c_type_specifier, pp_c_primary_expression): Mark English
24178 fragments for conditional translation with M_.
24179 * tree-pretty-print.c (maybe_init_pretty_print): Disable
24180 identifier translation.
24181
896d7dbd
RG
241822009-05-10 Richard Guenther <rguenther@suse.de>
24183
24184 PR tree-optimization/40081
24185 * tree-sra.c (instantiate_element): Instantiate scalar replacements
24186 using the main variant of the element type. Do not fiddle with
24187 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
24188
9a23acef
JH
241892009-05-09 Jan Hubicka <jh@suse.cz>
24190
24191 PR middle-end/40080
24192 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
24193 indirect calls; verify cgraph afterwards.
24194
d563610d
JH
241952009-05-09 Jan Hubicka <jh@suse.cz>
24196
24197 PR bootstrap/40082
24198 * ipa.c (update_inlined_to_pointer): New function.
24199 (cgraph_remove_unreachable_nodes): Use it.
24200
f08a18d0
JH
242012009-05-09 Jan Hubicka <jh@suse.cz>
24202
24203 * tree-eh.c (struct leh_state): Remove prev_try.
24204 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
24205 not track prev_try.
f100a4a8 24206 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
f08a18d0
JH
24207 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
24208 remove_eh_handler_and_replace, foreach_reachable_handler,
24209 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
24210 * except.h (struct eh_region): Remove eh_region_u_cleanup.
24211 (gen_eh_region_cleanup): Update prototype.
24212
0afd7219
JH
242132009-05-09 Jan Hubicka <jh@suse.cz>
24214
24215 PR middle-end/40043
24216 * except.c (copy_eh_region): Always set prev_try.
24217 (redirect_eh_edge_to_label): Find outer try.
24218 (foreach_reachable_handler): When looking for prev try
24219 handle case where previous try is not going to be taken.
24220
ad6c0864
MM
242212009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
24222
24223 PR tree-optimization/40049
24224 * tree-vect-stmts.c (vectorizable_operation): If the machine has
24225 only vector/vector shifts, convert the type of the constant to the
24226 appropriate type to avoid building incorrect trees, which
24227 eventually have problems with garbage collection.
24228
c94f9067
JM
242292009-05-08 Joseph Myers <joseph@codesourcery.com>
24230
24231 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
24232 -1 for complex floating-point types if honoring signed zeros.
24233
9187e02d
JH
242342009-05-08 Jan Hubicka <jh@suse.cz>
24235
20acb8a2
EB
24236 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
24237 argument; handle correctly when profile is absent.
9187e02d
JH
24238 (build_cgraph_edges): Update.
24239 (rebuild_cgraph_edges): Update.
20acb8a2
EB
24240 * cgraph.c: Do not include varray.h.
24241 (cgraph_set_call_stmt_including_clones): New function.
24242 (cgraph_create_edge_including_clones): Likewise
24243 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
9187e02d
JH
24244 (cgraph_update_edges_for_call_stmt): Handle clones.
24245 (cgraph_remove_node): Handle clone tree.
24246 (cgraph_remove_node_and_inline_clones): New function.
24247 (dump_cgraph_node): Dump clone tree.
24248 (cgraph_clone_node): Handle clone tree.
20acb8a2 24249 (clone_function_name): Bring here from tree-inline.c.
9187e02d 24250 (cgraph_create_virtual_clone): New function.
20acb8a2
EB
24251 * cgraph.h (ipa_replace_map): Move here from ipa.h.
24252 (cgraph_clone_info): New function.
9187e02d 24253 (strut cgraph_node): Add clone_info and new clone tree pointers.
20acb8a2
EB
24254 (cgraph_remove_node_and_inline_clones,
24255 cgraph_set_call_stmt_including_clones,
24256 cgraph_create_edge_including_clones,
24257 cgraph_create_virtual_clone): Declare.
9187e02d
JH
24258 (cgraph_function_versioning): Use VEC argument.
24259 (compute_call_stmt_bb_frequency): Update prototype.
24260 (cgraph_materialize_all_clones): New function.
24261 * ipa-cp.c (ipcp_update_cloned_node): Remove.
24262 (ipcp_create_replace_map): Update to VECtors.
24263 (ipcp_update_callgraph): Use virtual clones.
24264 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
24265 (ipcp_update_profiling): Do not update local profiling.
24266 (ipcp_insert_stage): Use VECtors and virtual clones.
24267 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
24268 (clone_of_p): New function.
24269 (cgraph_preserve_function_body_p): Use clone tree.
24270 (cgraph_optimize): Materialize clones.
24271 (cgraph_function_versioning): Update for VECtors.
24272 (save_inline_function_body): Use clone tree.
20acb8a2
EB
24273 (cgraph_materialize_clone): New function.
24274 (cgraph_materialize_all_clones): Likewise.
9187e02d
JH
24275 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
24276 * ipa.c: Include gimple.h.
24277 (cgraph_remove_unreachable_nodes): Use clone tree.
20acb8a2
EB
24278 * ipa-prop.c (ipa_note_param_call): Update call to
24279 compute_call_stmt_bb_frequencycall.
9187e02d 24280 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
20acb8a2 24281 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
9187e02d
JH
24282 (copy_bb): Handle updating of clone tree; add new edge when new call
24283 appears.
24284 (expand_call_inline): Be strict about every call having edge.
24285 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
24286 (delete_unreachable_blocks_update_callgraph): New function.
20acb8a2
EB
24287 (tree_function_versioning): Use VECtors; always remove unreachable
24288 blocks and fold conditionals.
24289 * tree-inline.h: Do not include varray.h.
9187e02d
JH
24290 (tree_function_versioning): Remove.
24291 * Makefile.in (GTFILES): Remove tree-inline.c
24292 * passes.c (do_per_function): Do only functions having body.
20acb8a2
EB
24293 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
24294 tree.
9187e02d 24295
9b86d6bb
L
242962009-05-08 H.J. Lu <hongjiu.lu@intel.com>
24297 Andrew Morrow <acm@google.com>
24298
24299 PR c/36892
24300 * c-common.c (c_common_attribute_table): Permit deprecated
24301 attribute to take an optional argument.
24302 (handle_deprecated_attribute): If the optional argument to
24303 __attribute__((deprecated)) is not a string ignore the attribute
24304 and emit a warning.
24305
24306 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
24307 * c-typeck.c (build_component_ref): Likewise.
24308 (build_external_ref): Likewise.
24309
24310 * toplev.c (warn_deprecated_use): Add an attribute argument.
24311 Emit the message associated with __attribute__((deprecated)).
24312
24313 * toplev.h (warn_deprecated_use): Updated.
24314
24315 * doc/extend.texi: Document new optional parameter to
24316 __attribute__((deprecated))
24317
82ad047f
ME
243182009-05-08 Michael Eager <eager@eagercon.com>
24319
24320 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
24321 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
24322
788d3075
RG
243232009-05-08 Richard Guenther <rguenther@suse.de>
24324
24325 PR tree-optimization/40062
24326 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
24327 Avoid exponential behavior.
24328
00952e97
PB
243292009-05-08 Paolo Bonzini <bonzini@gnu.org>
24330
24331 PR rtl-optimization/33928
24332 PR 26854
24333 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
24334 process_uses, build_single_def_use_links): New.
24335 (update_df): Update use_def_ref.
24336 (forward_propagate_into): Use get_def_for_use instead of use-def
24337 chains.
24338 (fwprop_init): Call build_single_def_use_links and let it initialize
24339 dataflow.
24340 (fwprop_done): Free use_def_ref.
24341 (fwprop_addr): Eliminate duplicate call to df_set_flags.
f100a4a8 24342 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
00952e97
PB
24343 df_rd_simulate_one_insn): New.
24344 (df_rd_bb_local_compute_process_def): Update head comment.
24345 (df_chain_create_bb): Use the new RD simulation functions.
f100a4a8 24346 * df.h (df_rd_simulate_artificial_defs_at_top,
00952e97
PB
24347 df_rd_simulate_one_insn): New.
24348 * opts.c (decode_options): Enable fwprop at -O1.
24349 * doc/invoke.texi (-fforward-propagate): Document this.
24350
2ca862e9
JM
243512009-05-08 Joseph Myers <joseph@codesourcery.com>
24352
24353 PR c/24581
24354 * c-typeck.c (build_binary_op): Handle arithmetic between one real
24355 and one complex operand specially.
24356 * tree-complex.c (some_nonzerop): Do not identify a real value as
24357 zero if flag_signed_zeros.
24358
3e807ffc
PB
243592009-05-08 Paolo Bonzini <bonzini@gnu.org>
24360
24361 PR rtl-optimization/33928
7925c06c 24362 * loop-invariant.c (record_use): Fix && vs. || mishap.
3e807ffc 24363
1bfdbb29
PB
243642009-05-08 Paolo Bonzini <bonzini@gnu.org>
24365
24366 PR rtl-optimization/33928
e913423f
EB
24367 * loop-invariant.c (struct use): Add addr_use_p.
24368 (struct def): Add n_addr_uses.
24369 (struct invariant): Add cheap_address.
24370 (create_new_invariant): Set cheap_address.
24371 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
24372 (record_uses): Pass df_ref to record_use.
24373 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
24374 used only as such.
1bfdbb29 24375
702cb2a0
KK
243762009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
24377
24378 * config/sh/sh.c: Do not include c-pragma.h.
24379
5e8df753
AP
243802009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
24381
24382 * config/spu/spu.c: Remove include of c-common.h.
24383
6ec637a4
JJ
243842009-05-07 Janis Johnson <janis187@us.ibm.com>
24385
24386 PR c/39037
24387 * c-common.h (mark_valid_location_for_stdc_pragma,
24388 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
24389 clear_float_const_decimal64, float_const_decimal64_p): New.
24390 * c.opt (Wunsuffixed-float-constants): New.
24391 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
24392 unsuffixed float constant, handle new warning.
24393 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
24394 * c-decl.c (c_scope): New flag float_const_decimal64.
24395 (set_float_const_decimal64, clear_float_const_decimal64,
24396 float_const_decimal64_p): New.
24397 (push_scope): Set new flag.
24398 * c-parser.c (c_parser_translation_unit): Mark when it's valid
24399 to use STDC pragmas.
24400 (c_parser_external_declaration): Ditto.
24401 (c_parser_compound_statement_nostart): Ditto.
24402 * c-pragma.c (valid_location_for_stdc_pragma,
24403 mark_valid_location_for_stdc_pragma,
24404 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
24405 handle_pragma_float_const_decimal64): New.
24406 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
24407 * cp/semantics.c (valid_location_for_stdc_pragma_p,
24408 set_float_const_decimal64, clear_float_const_decimal64,
24409 float_const_decimal64_p): New dummy functions.
24410 * doc/extend.texi (Decimal Float): Remove statement that the
24411 pragma, and suffix for double constants, are not supported.
24412 * doc/invoke.texi (Warning Options): List new option.
24413 (-Wunsuffixed-float-constants): New.
24414
45b9b2e9
SB
244152009-05-08 Steven Bosscher <steven@gcc.gnu.org>
24416
24417 * config/i386/i386.c: Do not include c-common.h.
24418
e71da632
MH
244192009-05-07 Mark Heffernan <meheff@google.com>
24420
24421 * doc/invoke.texi (Debugging Options): Document change of debugging
24422 dump location.
e913423f 24423 * opts.c (decode_options): Make dump_base_name relative to
e71da632
MH
24424 aux_base_name directory.
24425
fe4c7bc6
HS
244262009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
24427
24428 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
24429 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
24430
3b3e44eb
RAE
244312009-05-07 Rafael Avila de Espindola <espindola@google.com>
24432
24433 * Makefile.in (install-plugin): Simplify a bit.
24434
fac41238
PB
244352009-05-07 Paolo Bonzini <bonzini@gnu.org>
24436
24437 * Makefile.in (OBJS-common): Add regcprop.o.
24438 (regcprop.o): New.
24439 * timevar.def (TV_CPROP_REGISTERS): New.
24440 * regrename.c (regrename_optimize): Return 0.
24441 (rest_of_handle_regrename): Delete.
24442 (pass_rename_registers): Point to regrename_optimize.
f100a4a8 24443 (struct value_data_entry, struct value_data,
fac41238
PB
24444 kill_value_one_regno, kill_value_regno, kill_value,
24445 set_value_regno, init_value_data, kill_clobbered_value,
24446 kill_set_value, kill_autoinc_value, copy_value,
24447 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
24448 replace_oldest_value_reg, replace_oldest_value_addr,
24449 replace_oldest_value_mem, copyprop_hardreg_forward_1,
24450 debug_value_data, validate_value_data): Move...
24451 * regcprop.c: ... here.
24452 (rest_of_handle_cprop): Delete.
24453 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
24454
472e0df9
JJ
244552009-05-07 Jakub Jelinek <jakub@redhat.com>
24456
24457 PR middle-end/40057
24458 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
24459 GEN_INT for 1 << bitnum.
24460 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
24461 build_int_cst_type.
24462
0d50d55a
UB
244632009-05-07 Uros Bizjak <ubizjak@gmail.com>
24464
24465 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
7925c06c 24466 Remove wrong description of "nand" operation.
0d50d55a 24467
22f597f1
RG
244682009-05-06 Richard Guenther <rguenther@suse.de>
24469 Adam Nemet <anemet@caviumnetworks.com>
24470
24471 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
24472 comment. Add that if LHS is not a gimple register, then RHS1 has
24473 to be a single object (GIMPLE_SINGLE_RHS).
24474
641cac0b
AN
244752009-05-06 Adam Nemet <anemet@caviumnetworks.com>
24476
24477 * expr.c (get_def_for_expr): Move it up in the file.
24478 (store_field): When expanding a bit-field store, look at the
24479 defining gimple stmt for the masking conversion.
24480
5a5c6435
JJ
244812009-05-06 Janis Johnson <janis187@us.ibm.com>
24482
24483 PR middle-end/39986
24484 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
24485 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
24486 32-bit memcpy into long.
24487
96474f36
JJ
244882009-05-06 Jakub Jelinek <jakub@redhat.com>
24489
24490 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
24491 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
24492 new_reg_loc_descr.
24493 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
24494 instead of appending DW_OP_deref*.
24495
529ff441
MM
244962009-05-06 Michael Matz <matz@suse.de>
24497
24498 PR middle-end/40021
24499 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
24500 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
24501
9419a9fd
RAE
245022009-05-06 Rafael Avila de Espindola <espindola@google.com>
24503
24504 * Makefile.in (install-plugin): Fix srcdir handling.
24505
fff1894c
AB
245062009-05-06 Andrey Belevantsev <abel@ispras.ru>
24507
24508 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
24509 when processing for not_regs_needed bitmap.
24510 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
f100a4a8
UB
24511 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
24512 handling it for rhs.
fff1894c 24513
700ae70c
L
245142009-05-06 H.J. Lu <hongjiu.lu@intel.com>
24515
ab3426a7 24516 * config/i386/i386.md (unnamed inc/dec peephole): Use
aa016ff7 24517 optimize_insn_for_size_p instead of optimize_size.
700ae70c
L
24518 * config/i386/predicates.md (incdec_operand): Likewise.
24519 (aligned_operand): Likewise.
24520 * config/i386/sse.md (divv8sf3): Likewise.
24521 (sqrtv8sf2): Likewise.
24522
67341fb5
L
245232009-05-06 H.J. Lu <hongjiu.lu@intel.com>
24524
24525 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
24526
24527 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
24528
87946f42
L
245292009-05-06 H.J. Lu <hongjiu.lu@intel.com>
24530
24531 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
24532 ssemodesuffixf2c with avxmodesuffixf2c.
24533
1202aec1
JM
245342009-05-06 Joseph Myers <joseph@codesourcery.com>
24535
24536 PR c/40032
aa016ff7 24537 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
1202aec1 24538
6e57a01d
JJ
245392009-05-05 Jakub Jelinek <jakub@redhat.com>
24540
24541 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
24542 (struct tree_base): Adjust spacing for 8 bit boundaries.
24543 (struct tree_decl_common): Add decl_by_reference_flag bit.
24544 (DECL_BY_REFERENCE): Adjust.
24545 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
24546 print DECL_BY_REFERENCE bit.
24547 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
24548 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
24549 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
24550 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
24551 unconditionally.
24552
32f579f6
JJ
24553 PR middle-end/39666
24554 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
24555 range of the type, but default label is missing, add it with one
24556 of the existing labels instead of adding a new label for it.
24557
617ab743
JM
245582009-05-05 Joseph Myers <joseph@codesourcery.com>
24559
24560 * dwarf.h: Remove.
24561
bf016de8
RAE
245622009-05-05 Rafael Avila de Espindola <espindola@google.com>
24563
24564 * Makefile.in (enable_plugin, plugin_includedir): New.
24565 (install): Depend on install-plugin.
24566 (PLUGIN_HEADERS): New.
24567 (install-plugin): New.
24568 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
24569
7f8fdb9f
RG
245702009-05-05 Richard Guenther <rguenther@suse.de>
24571
24572 PR tree-optimization/40022
24573 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
24574 the only vuse.
24575 (phivn_valid_p): Fix tuplification error, simplify.
24576 (phiprop_insert_phi): Add dumps.
24577 (propagate_with_phi): Simplify.
24578
8d972839
RG
245792009-05-05 Richard Guenther <rguenther@suse.de>
24580
24581 PR middle-end/40023
aa016ff7 24582 * builtins.c (gimplify_va_arg_expr): Properly build the address.
8d972839 24583
66ba9b0b
SZ
245842009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
24585
24586 * tree.h (strip_float_extensions): Remove duplicate declaration.
aa016ff7
UB
24587 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
24588 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
24589 block_ultimate_origin): Rearrange the declarations line to match the
24590 comment that indicates the .c file which the functions are defined.
24591 (dwarf2out_*, set_decl_rtl): Add comment.
24592 (get_base_address): Adjust comment.
24593 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
24594 declarations line and add comment.
24595 (is_builtin_name): Add blank after function name, for clarity.
66ba9b0b 24596
4f1e4960
JM
245972009-05-04 Joseph Myers <joseph@codesourcery.com>
24598
24599 * attribs.c (decl_attributes): Use %qE for identifiers in
24600 diagnostics.
24601 * cgraphunit.c (verify_cgraph_node): Translate function names to
24602 locale character set in diagnostics.
24603 * coverage.c (get_coverage_counts): Use %qE for identifiers in
24604 diagnostics.
24605 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
24606 Document that functions are named in UTF-8.
24607 * expr.c (expand_expr_real_1): Translate function names to locale
24608 character set in diagnostics.
24609 * gimplify.c (omp_notice_variable, omp_is_private,
24610 gimplify_scan_omp_clauses): Use %qE for identifiers in
24611 diagnostics.
24612 * langhooks.c (lhd_print_error_function): Translate function names
24613 to locale character set.
24614 * langhooks.h (decl_printable_name): Document that return value is
24615 in internal character set.
24616 * stmt.c: Include pretty-print.h
24617 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
24618 diagnostics.
24619 (resolve_operand_name_1): Translate named operand name to locale
24620 character set.
24621 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
24622 diagnostics.
24623 * toplev.c (announce_function): Translate function names to locale
24624 character set.
24625 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
24626 (default_tree_printer): Use pp_identifier or translate identifiers
24627 to locale character set. Mark "<anonymous>" for translation.
24628 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
24629 for identifiers in diagnostics.
24630 * tree.c (handle_dll_attribute): Use %qE for identifiers in
24631 diagnostics.
24632 * varasm.c (output_constructor): Use %qE for identifiers in
24633 diagnostics.
24634
40540e68
RAE
246352009-05-04 Rafael Avila de Espindola <espindola@google.com>
24636
24637 * configure.ac: use ` ` instead of $()
24638 * configure: Regenerate.
24639
33fc884c
BE
246402009-05-05 Ben Elliston <bje@au.ibm.com>
24641
24642 * config/pa/linux-atomic.c: Eliminate conditional include of
24643 errno.h on non-LP64 systems to simplify build requirements.
24644
88388a52
JM
246452009-05-04 Joseph Myers <joseph@codesourcery.com>
24646
24647 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
24648 diagnostics.
24649 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
24650 and pass value to identifier_to_locale.
24651 (warn_variable_length_array): Make name a tree.
24652 (grokdeclarator): Separate diagnostic texts for named and unnamed
24653 declarators. Use %qE for named declarators.
24654 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
24655 diagnostics.
24656 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
24657 identifiers in diagnostics.
24658 * c-typeck.c (push_member_name, start_init): Pass identifiers to
24659 identifier_to_locale. Mark "anonymous" strings for translation.
24660
960c5c79
ME
246612009-05-04 Michael Eager <eager@eagercon.com>
24662
24663 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
aa016ff7 24664 address for DImode/DFmode only if double-precision FP regs.
960c5c79 24665
d083fbba
ME
246662009-05-04 Michael Eager <eager@eagercon.com>
24667
24668 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
24669 TARGET_SINGLE_FLOAT check.
24670
c3ba8d32
ME
246712009-05-04 Michael Eager <eager@eagercon.com>
24672
24673 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
24674
edce9f18
ME
246752009-05-04 Michael Eager <eager@eagercon.com>
24676
bd62d832 24677 * gcc/config.gcc (powerpc-xilinx-eabi*): Add tm t-xilinx
edce9f18
ME
24678 * config/rs6000/t-xilinx: New
24679
506d7b68
PB
246802009-05-04 Paolo Bonzini <bonzini@gnu.org>
24681
e913423f 24682 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
506d7b68
PB
24683 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
24684 * gcc/explow.c (memory_address): Use target hook.
24685 * gcc/targhooks.c (default_legitimize_address): New.
24686 * gcc/targhooks.h (default_legitimize_address): New.
24687 * gcc/target.h (legitimize_address): New.
24688 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
24689 (TARGET_INITIALIZER): Include it.
24690 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
24691
24692 * config/bfin/bfin-protos.h (legitimize_address): Remove.
24693 * config/bfin/bfin.c (legitimize_address): Remove.
24694 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
aa016ff7
UB
24695 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
24696 Remove.
506d7b68
PB
24697 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
24698 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
24699
24700 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
24701 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
24702 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
24703 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
24704 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
24705 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
24706 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
24707 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
24708 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
24709 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
24710 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
24711 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
24712 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
24713 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
24714 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
24715 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
24716 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
24717 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
24718 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
24719 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
24720 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
24721 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
24722 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
24723
24724 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
24725 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
24726 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
24727 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
24728 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
24729 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
24730 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
24731 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
24732 (thumb_legitimize_address): Delete.
24733 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
24734 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
24735 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
24736 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
24737 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
aa016ff7
UB
24738 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
24739 Delete.
24740 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
24741 Delete.
506d7b68
PB
24742
24743 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
24744 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
24745 * config/m32r/m32r.c (m32r_legitimize_address): New.
24746 * config/m68k/m68k.c (m68k_legitimize_address): New.
24747 * config/score/score.c (score_legitimize_address): Standardize.
24748 * config/score/score3.c (score3_legitimize_address): Standardize.
24749 * config/score/score3.h (score3_legitimize_address): Adjust.
24750 * config/score/score7.c (score7_legitimize_address): Standardize.
24751 * config/score/score7.h (score7_legitimize_address): Adjust.
24752 * config/sh/sh.c (sh_legitimize_address): New.
24753 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
24754
24755 * gcc/config/s390/s390.c (legitimize_address): Rename to...
24756 (s390_legitimize_address): ... this.
24757 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
24758 (sparc_legitimize_address): ... this.
24759 * gcc/config/i386/i386.c (legitimize_address): Rename to...
24760 (ix86_legitimize_address): ... this.
24761 * gcc/config/avr/avr.c (legitimize_address): Rename to...
24762 (avr_legitimize_address): ... this.
24763 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
24764 (mn10300_legitimize_address): ... this.
24765 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
24766 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
24767 (alpha_expand_mov): Adjust call.
24768
24769 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
24770 * config/spu/spu.c (spu_legitimize_address): Likewise.
24771 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
24772 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
24773
a3af5087
JM
247742009-05-04 Joseph Myers <joseph@codesourcery.com>
24775
24776 * intl.c (locale_encoding, locale_utf8): New.
24777 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
24778 * intl.h (locale_encoding, locale_utf8): Declare.
24779 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
24780 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
24781 New.
24782 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
24783 argument.
24784 (pp_tree_identifier): Define to call pp_base_tree_identifier.
24785 (pp_base_tree_identifier): Declare as function.
24786 (identifier_to_locale): Declare.
24787 * Makefile.in (pretty-print.o): Update dependencies.
aa016ff7 24788 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
a3af5087 24789
ea5cd5f1
RG
247902009-05-04 Richard Guenther <rguenther@suse.de>
24791
24792 PR middle-end/40015
24793 * builtins.c (fold_builtin_memory_op): Do not decay to element
24794 type if the size matches the whole array.
24795
ddc2690a
KH
247962009-05-04 Kazu Hirata <kazu@codesourcery.com>
24797
24798 * expmed.c (synth_mult): When trying out a shift, pass the result
24799 of a signed shift.
24800
ef268d34
KH
248012009-05-04 Kazu Hirata <kazu@codesourcery.com>
24802
24803 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
24804 (shiftsub1_cost): New.
24805 (init_expmed): Compute shiftsub1_cost.
24806 (synth_mult): Optimize multiplications by constants of the form
24807 -(2^^m-1) for some constant positive integer m.
24808
255d3827
RG
248092009-05-03 Richard Guenther <rguenther@suse.de>
24810
24811 PR c/39983
24812 * c-typeck.c (array_to_pointer_conversion): Do not built
24813 ADDR_EXPRs of arrays of pointer-to-element type.
24814 * c-gimplify.c (c_gimplify_expr): Revert change fixing
24815 up wrong ADDR_EXPRs after-the-fact.
24816 * c-common.c (strict_aliasing_warning): Strip pointer
24817 conversions for obtaining the original type.
24818 * builtins.c (fold_builtin_memset): Handle array types.
24819 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
24820 and array types
24821
16c33770
RG
248222009-05-03 Richard Guenther <rguenther@suse.de>
24823
24824 PR middle-end/23329
24825 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
24826 Do not lose casts from array types with unknown extent to array
24827 types with known extent.
24828 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
24829 alias set compatibility.
24830
62a67c94
MLI
248312009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
24832
24833 * flags.h (extra_warnings): Delete.
24834 * toplev.c (process_options): Handle Wuninitialized here.
24835 * opts.c (extra_warnings): Delete.
24836 (set_Wextra): Delete.
24837 (common_handle_option): -Wextra can be handled automatically.
24838 * c-opts.c (c_common_handle_option): Delete obsolete code.
24839 (c_common_post_options): Simplify comment.
24840 * common.opt (W): Add Var.
24841 (Wextra): Add Var.
24842 (Wuninitialized): Initialize to -1.
24843
8c7926c4
AN
248442009-05-03 Adam Nemet <anemet@caviumnetworks.com>
24845 Richard Guenther <rguenther@suse.de>
24846
24847 * expr.c (get_def_for_expr): New function.
24848 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
24849 SSA rather than trees.
24850 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
24851 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
f100a4a8 24852
fa5da7de
JM
248532009-05-03 Joseph Myers <joseph@codesourcery.com>
24854
24855 * c-common.c (reswords): Add _Imaginary.
24856 * c-common.c (enum rid): Add RID_IMAGINARY.
24857
2ddd5020
PB
248582009-05-03 Paolo Bonzini <bonzini@gnu.org>
24859
24860 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
24861 Patch by Richard Guenther.
24862
aea88c05
AS
248632009-05-03 Anatoly Sokolov <aesok@post.ru>
24864
24865 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
24866 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
24867 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
24868 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
24869 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
24870 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
24871 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
24872 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
24873 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
24874 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
24875 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
24876 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
24877 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
24878 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
24879 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
24880 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
24881 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
24882 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
24883
85e59f3a
RG
248842009-05-02 Richard Guenther <rguenther@suse.de>
24885
24886 PR tree-optimization/39940
24887 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
24888 doing so.
24889
4636b850
RG
248902009-05-02 Richard Guenther <rguenther@suse.de>
24891
24892 PR middle-end/40001
24893 * tree-ssa.c (execute_update_addresses_taken): Properly check
24894 if we can mark a variable DECL_GIMPLE_REG_P.
24895 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
24896 back to the end of the function.
24897 (is_gimple_reg_type): Remove complex type special casing.
24898 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
24899 if not optimizing.
24900
5e10cb5a
BE
249012009-05-02 Ben Elliston <bje@au.ibm.com>
24902
24903 * doc/collect2.texi (Collect2): Document search path behaviour
24904 when configured with --with-ld.
24905
048bf48b
JH
249062009-05-02 Jan Hubicka <jh@suse.cz>
24907
24908 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
24909 parameter; update callers.
aa016ff7
UB
24910 (coalesce_cost_edge): EH edges are costier because they needs
24911 splitting even if not critical and even more costier when there are
24912 multiple EH predecestors.
048bf48b 24913
d5c5f9ab
JH
249142009-05-02 Jan Hubicka <jh@suse.cz>
24915
24916 * except.c (remove_eh_handler_and_replace): Handle updating after
24917 removing TRY blocks.
24918
2ed1959a
EB
249192009-05-02 Eric Botcazou <ebotcazou@adacore.com>
24920
24921 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
24922
d363a7e7
SB
249232009-05-02 Steven Bosscher <steven@gcc.gnu.org>
24924
24925 * varasm.c: Do not include c-pragma.h.
24926 * attribs.c: Do not incude c-common.h.
24927
9c3d55b4
MM
249282009-05-01 Michael Matz <matz@suse.de>
24929
24930 * calls.c (initialize_argument_information): Handle SSA names like
24931 decls with a non MEM_P DECL_RTL.
24932
ea264ca5
SB
249332009-05-01 Steven Bosscher <steven@gcc.gnu.org>
24934
24935 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
24936 * ipa-utils.c: Likewise.
24937 * ipa-type-escape.c: Likewise.
24938 * cgraphunit.c Do not include c-common.h.
24939 * ipa-pure-const.c: Likewise.
24940 * tree-if-conv.c: Likewise.
24941 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
24942 * ipa-struct-reorg.c: Likewise.
24943 * tree-nomudflap.c: Likewise.
24944 * tree-ssa-structalias.c: Likewise.
24945
6c5d4d1a
SB
249462009-05-01 Steven Bosscher <steven@gcc.gnu.org>
24947
24948 * store-motion.c: Many cleanups to make this pass a first-class
24949 citizen instead of an appendix to gcse load motion. Add TODO list
24950 to make this pass faster/cleaner/better.
24951
24952 (struct ls_expr): Post gcse.c-split cleanups.
24953 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
24954 "stores" field to "avail_stores".
24955 (pre_ldst_mems): Rename to store_motion_mems.
24956 (pre_ldst_table): Rename to store_motion_mems_table.
24957 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
24958 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
24959 (ldst_entry): Rename to st_expr_entry, update users.
24960 (free_ldst_entry): Rename to free_st_expr_entry, update users.
24961 (free_ldst_mems): Rename to free_store_motion_mems, update users.
aa016ff7
UB
24962 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
24963 update caller.
6c5d4d1a
SB
24964 (first_ls_expr): Rename to first_st_expr, update users.
24965 (next_ls_expr): Rename to next_st_expr, update users.
24966 (print_ldst_list): Rename to print_store_motion_mems. Print names of
24967 fields properly for store motion instead of names inherited from load
24968 motion in gcse.c.
24969 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
24970 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
24971 are done with it.
24972
24973 (ae_kill): Rename to st_kill, update users.
24974 (ae_gen): Rename to st_avloc, update users.
24975 (transp): Rename to st_transp, update users.
24976 (pre_insert_map): Rename to st_insert_map, update users.
24977 (pre_delete_map): Rename to st_delete_map, update users.
24978 (insert_store, build_store_vectors, free_store_memory,
24979 one_store_motion_pass): Update for abovementioned changes.
24980
24981 (gcse_subst_count, gcse_create_count): Remove.
24982 (one_store_motion_pass): New statistics counters "n_stores_deleted"
24983 and "n_stores_created", local variables.
24984
24985 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
24986 use for_each_rtx.
24987
24988 (regvec, compute_store_table_current_insn): Remove.
24989 (reg_set_info, reg_clear_last_set): Remove.
24990 (compute_store_table): Use DF caches instead of local dataflow
24991 solvers.
24992
b02cec6e
JM
249932009-05-01 Joseph Myers <joseph@codesourcery.com>
24994
24995 * c-objc-common.c (c_tree_printer): Print identifiers with
24996 pp_identifier, not pp_string. Mark "({anonymous})" for
24997 translation.
24998 * c-pretty-print.c (pp_c_ws_string): New.
24999 (pp_c_cv_qualifier, pp_c_type_specifier,
25000 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
25001 pp_c_storage_class_specifier, pp_c_function_specifier,
25002 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
25003 pp_c_primary_expression, pp_c_postfix_expression,
25004 pp_c_unary_expression, pp_c_shift_expression,
25005 pp_c_relational_expression, pp_c_equality_expression,
25006 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
25007 use pp_string and pp_c_ws_string in place of pp_identifier and
25008 pp_c_identifier for non-identifiers. Mark English strings for
25009 translation.
25010 * c-pretty-print.h (pp_c_ws_string): Declare.
25011
cd533689
PP
250122009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
25013 Roland McGrath <roland@redhat.com>
25014
aa016ff7 25015 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
cd533689
PP
25016 (ENABLE_LD_BUILDID): New configuration option.
25017 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
25018 (LINK_BUILDID_SPEC): New macro.
25019 (init_spec): If defined, prepend it between LINK_EH_SPEC and
25020 link_spec.
25021 * doc/install.texi: Document --enable-linker-build-id option.
25022 * configure: Rebuild.
25023 * config.in: Rebuild.
25024
ba6adec4
AN
250252009-04-30 Adam Nemet <anemet@caviumnetworks.com>
25026
25027 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
25028 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
25029 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
25030 MIPS_GP_SAVE_AREA_SIZE.
25031 * config/mips/mips.c (struct mips_frame_info): Update comment
25032 before arg_pointer_offset and hard_frame_pointer_offset.
25033 (mips_compute_frame_info): Update diagram before function: to
25034 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
25035 indicate the position of frame_pointer_rtx with -fstack-protector and
25036 to show args_size. Don't allocate cprestore area for leaf functions
25037 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
25038 cprestore_size.
25039 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
25040
48f5b722
MM
250412009-04-30 Michael Matz <matz@suse.de>
25042
ba6adec4
AN
25043 PR tree-optimization/39955
25044 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
48f5b722 25045
b65d6744
DK
250462009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
25047
25048 * ira.c (setup_cover_and_important_classes): Use safe macro
25049 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
25050 directly.
25051 * genpreds.c (write_tm_preds_h): Output suitable definition of
25052 REG_CLASS_FOR_CONSTRAINT.
25053
f136c8ae
RAE
250542009-04-30 Rafael Avila de Espindola <espindola@google.com>
25055
25056 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
25057 instead of an int.
25058 * bitmap.c (bitmap_descriptor): Likewise.
25059 * ggc-common.c (loc_descriptor): Likewise.
25060 * varray.c (varray_descriptor): Likewise.
25061 * vec.c (vec_descriptor): Likewise.
25062
43fcece8 250632009-04-30 Eric Botcazou <ebotcazou@adacore.com>
35debead
EB
25064
25065 * Makefile.in (dce.o): Add $(EXCEPT_H).
25066 * dce.c: Include except.h and delete redundant vector definitions.
25067 (deletable_insn_p): Return false for non-call insns that can throw
25068 if DF is running.
25069
df35c271
SB
250702009-04-30 Steven Bosscher <steven@gcc.gnu.org>
25071
25072 * gcse.c (ae_gen): Remove.
25073 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
25074 and make non-static function to make it available in store-motion.c.
25075 Update call sites with search-and-replace.
25076 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
25077 extract_mentioned_regs, extract_mentioned_regs_helper,
25078 find_moveable_store, compute_store_table, load_kills_store, find_loads,
25079 store_killed_in_insn, store_killed_after, store_killed_before,
25080 build_store_vectors, insert_insn_start_basic_block, insert-store,
25081 remove_reachable_equiv_notes, replace_store_insn, delete_store,
25082 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
25083 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
25084 * store-motion.c: ...new file. Also copy data structures from gcse.c
25085 and clean up to remove parts not used by store motion.
25086 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
25087 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
25088
f711a87a
RR
250892009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25090
25091 PR target/38571
25092 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
25093 when optimizing for size.
25094
fa5ed76e
HPN
250952009-04-30 Hans-Peter Nilsson <hp@axis.com>
25096
25097 * gcse.c (gcse_constant_p): Fix typo in last change.
25098
0acbbdb0
RAE
250992009-04-30 Rafael Avila de Espindola <espindola@google.com>
25100
25101 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
25102
82f5c05d
AK
251032009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
25104
25105 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
25106
6d8f135b
JW
251072009-04-29 James E. Wilson <wilson@codesourcery.com>
25108
25109 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
25110 CONST_HIGH_PART result.
25111
c21ca196
AS
251122009-04-29 Anatoly Sokolov <aesok@post.ru>
25113
25114 * config/avr/avr.c (initial_elimination_offset): Rename to
25115 avr_initial_elimination_offset.
25116 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
25117 change return type to bool.
25118 (avr_can_eliminate): New function.
25119 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
25120 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
25121 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
0d50d55a 25122 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
c21ca196
AS
25123 avr_initial_elimination_offset.
25124 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
25125 (avr_initial_elimination_offset): Define.
25126
2a34bece 251272009-04-29 Eric Botcazou <ebotcazou@adacore.com>
aa016ff7 25128 Steven Bosscher <steven@gcc.gnu.org>
2a34bece
EB
25129
25130 PR rtl-optimization/39938
25131 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
25132 * cfgrtl.c: Include insn-attr.h.
25133 (rest_of_pass_free_cfg): New function.
25134 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
25135 * resource.c (init_resource_info): Remove call to df_analyze.
25136
5dc7911e
RG
251372009-04-29 Richard Guenther <rguenther@suse.de>
25138
25139 PR target/39943
25140 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
25141 allow conversion to signed integers.
25142
1fe479fd
RG
251432009-04-29 Richard Guenther <rguenther@suse.de>
25144
25145 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
25146 shifts of floating point vectors if the shift amount is
25147 a constant multiple of the element size.
25148
8e001680
AK
251492009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
25150 Michael Matz <matz@suse.de>
25151
25152 PR middle-end/39927
25153 PR bootstrap/39929
25154 * tree-outof-ssa.c (emit_partition_copy): New function.
25155 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
25156 insert_part_to_rtx_on_edge): Perform the partition base var
25157 copy using emit_partition_copy.
25158 (insert_value_copy_on_edge): Convert constants to the right mode.
25159 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
25160 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
25161
e50e3081
BS
251622009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
25163
25164 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
25165 scan backwards to try to find a constant to initialize it.
25166
4e5d521b
BS
25167 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
25168 insn before the loop_end instruction, don't look past labels.
25169
7c90021d
RG
251702009-04-29 Richard Guenther <rguenther@suse.de>
25171
25172 PR middle-end/39937
25173 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
25174 loose type conversions.
25175 (forward_propagate_addr_expr): Fix tuplification bug. Remove
25176 stmts only if there are no uses of its definition.
25177
97a988bc
BS
251782009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
25179
25180 * config/bfin/bfin.h (splitting_loops): Declare.
25181 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
25182 Reorder bit definitions to be ascending.
25183 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
25184 * config/bfin/bfin.c (splitting_loops): New variable.
25185 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
25186 (struct loop_info): Remove members INIT and LOOP_INIT.
25187 (bfin_optimize_loop): Don't set them. Reorder the code that generates
aa016ff7
UB
25188 the LSETUP sequence. Allow LC to be loaded from any register, but
25189 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
97a988bc
BS
25190 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
25191 set to 1.
25192 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
25193 of reload_completed.
aa016ff7 25194
97a988bc
BS
25195 From Jie Zhang:
25196 * config/bfin/bfin.md (movsi_insn): Refine constraints.
25197
0c463e16
RAE
251982009-04-29 Rafael Avila de Espindola <espindola@google.com>
25199
25200 * Makefile.in (PLUGIN_VERSION_H): New.
25201 (OBJS-common): Remove plugin-version.o.
25202 (plugin.o): Depend on (PLUGIN_VERSION_H).
25203 (plugin-version.o): Remove.
25204 * configure: Regenerate
25205 * configure.ac: Create plugin-version.h.
25206 * gcc-plugin.h (plugin_gcc_version): Remove.
25207 (plugin_default_version_check): Change signature.
25208 * plugin-version.c: Remove.
25209 * plugin.c: Include plugin-version.h.
25210 (str_plugin_gcc_version_name): Remove.
25211 (try_init_one_plugin): Pass gcc version to plugin_init.
25212 (plugin_default_version_check): Both gcc and plugin versions are now
25213 arguments.
25214
307e7eab 252152009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
f100a4a8 25216
307e7eab
BS
25217 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
25218 problematic last insns. Test for TYPE_CALL rather than CALL_P.
aa016ff7
UB
25219 Remove special case testing for last insn of inner loops. Don't fail
25220 if the loop ends with a jump, emit an extra nop instead.
307e7eab 25221
c5d96723
BS
25222 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
25223 DREGS rather than comparing directly. Remove code that tries to
25224 account for latencies.
25225
de0b4ad5
RG
252262009-04-29 Richard Guenther <rguenther@suse.de>
25227
25228 PR tree-optimization/39941
25229 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
25230 eliminating an indirect call.
25231
3a19701a
RG
252322009-04-29 Richard Guenther <rguenther@suse.de>
25233
25234 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
25235 parameter. Allow invariants as base if !require_lvalue.
25236 (verify_gimple_assign_single): Adjust.
25237
a0a31d1e
BS
252382009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
25239
25240 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
25241 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
aa016ff7
UB
25242 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
25243 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
a0a31d1e
BS
25244 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
25245 a VEC_SELECT.
aa016ff7
UB
25246 * config/bfin/bfin.c (bfin_expand_builtin,
25247 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
a0a31d1e 25248
795bd26a
RG
252492009-04-28 Richard Guenther <rguenther@suse.de>
25250
25251 * tree-vect-loop.c (get_initial_def_for_induction): Use
25252 correct types for pointer increment.
25253
04be270f
KG
252542009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25255
25256 * toplev.c (print_version): Update GMP version string calculation.
25257
e1a3b85c
EB
252582009-04-28 Eric Botcazou <ebotcazou@adacore.com>
25259
25260 PR rtl-optimization/39938
25261 * resource.c (init_resource_info): Add call to df_analyze.
25262
8224166e
UB
252632009-04-28 Uros Bizjak <ubizjak@gmail.com>
25264
25265 * config/alpha/alpha.md (usegp): Cast the result of
25266 alpha_find_lo_sum_using_gp to enum attr_usegp.
25267 * config/alpha/alpha.c (override_options): Remove end-of-structure
25268 marker element from cpu_table. Use array size of cpu_table to handle
25269 -mcpu and -mtune options.
25270 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
25271
c5f0fe67
JM
252722009-04-28 Joseph Myers <joseph@codesourcery.com>
25273
25274 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
25275 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
25276 tune_32 and tune_64.
25277 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
25278 support on PowerPC.
25279 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
25280 * config/rs6000/option-defaults.h: ... here. New file.
25281 (OPT_64, OPT_32): Define.
25282 (MASK_64BIT): Define to 0 if not already defined.
25283 (OPT_ARCH64, OPT_ARCH32): Define.
25284 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
25285 and tune_64.
25286
0c48a567
RR
252872009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25288
25289 * config/arm/arm.c (arm_override_options): Emit error on using
25290 fpa with AAPCS.
25291
f1028b9d
UB
252922009-04-28 Uros Bizjak <ubizjak@gmail.com>
25293
25294 PR rtl-optimization/39914
25295 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
25296 registers for allocnos created from user-defined variables only
25297 when not optimizing.
25298
e0dd989a
RG
252992009-04-28 Richard Guenther <rguenther@suse.de>
25300
25301 PR middle-end/39937
25302 * fold-const.c (fold_binary): Use distribute_real_division only
25303 on float types.
25304
9a17c91d
SE
253052009-04-28 Steve Ellcey <sje@cup.hp.com>
25306
25307 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
25308 add hpux-stdint.h to tm_file.
25309 (hppa[12]*-*-hpux11*): Ditto.
25310 (ia64*-*-hpux*): Ditto.
25311 * config/hpux-stdint.h: New.
60839f5d 25312 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
9a17c91d 25313 __STDC_EXT__ for all compiles.
60839f5d
EB
25314 * config/pa/pa-hpux.h: Ditto.
25315 * config/pa/pa-hpux10.h: Ditto.
25316 * config/pa/pa-hpux11.h: Ditto.
9a17c91d 25317
af04e659
CM
253182009-04-28 Catherine Moore <clm@codesourcery.com>
25319
25320 * debug.h (set_name): Add comment.
25321
04ef80ce
AP
253222009-04-28 Andrew Pinski <pinskia@gmail.com>
25323
25324 PR target/39929
25325 * config/darwin.c (machopic_gen_offset): Check
25326 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
25327 * config/arm/arm.c (require_pic_register): Likewise.
25328
65ad77af
PB
253292009-04-28 Paolo Bonzini <bonzini@gnu.org>
25330
8224166e
UB
25331 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
25332 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
25333 m32c_promote_prototypes): Delete.
65ad77af 25334
1b15a008
MM
253352009-04-28 Michael Matz <matz@suse.de>
25336
25337 PR middle-end/39922
25338 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
25339 constants.
25340
7569a6cc
RG
253412009-04-28 Richard Guenther <rguenther@suse.de>
25342
f1028b9d 25343 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
7569a6cc 25344
ead204d9
RR
253452009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25346
25347 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
25348 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
25349 * config/arm/arm-tune.md: Regenerate.
25350
f2c45f08 253512009-04-28 Alexander Monakov <amonakov@ispras.ru>
60839f5d 25352
f2c45f08
AM
25353 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
25354 block if there are complex incoming edges.
25355 (sel_merge_blocks): Remove useless assert.
25356 (sel_redirect_edge_and_branch): Check that edge was redirected.
25357 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
25358 (sel_find_rgns): Delete declaration.
25359 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
25360 the region when it is not a preheader.
25361
7a00d767
UB
253622009-04-28 Uros Bizjak <ubizjak@gmail.com>
25363
25364 PR c/39323
25365 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
25366
448ee662
RG
253672009-04-28 Richard Guenther <rguenther@suse.de>
25368
25369 * tree.h (SSA_NAME_VALUE): Remove.
25370 (struct tree_ssa_name): Remove value_handle member.
25371 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
25372 array for jump threading.
25373 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
25374 SSA_NAME_VALUEs.
25375 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
25376 * tree-flow.h (threadedge_initialize_values): Declare.
25377 (threadedge_finalize_values): Likewise.
25378 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
25379 (SSA_NAME_VALUE): Define.
25380 (threadedge_initialize_values): New function.
25381 (threadedge_finalize_values): Likewise.
25382 * tree-ssa-dom.c (ssa_name_values): New global variable.
25383 (SSA_NAME_VALUE): Define.
f1028b9d 25384 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
448ee662 25385
8644a673
IR
253862009-04-28 Ira Rosen <irar@il.ibm.com>
25387
25388 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
f100a4a8 25389 Use REPORT_VECTORIZED_LOCATIONS instead
8644a673
IR
25390 REPORT_VECTORIZED_LOOPS.
25391 * tree-vectorizer.c (vect_verbosity_level): Make static.
25392 (vect_loop_location): Rename to vect_location.
25393 (vect_set_verbosity_level): Update comment.
25394 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
25395 and vect_location.
25396 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
25397 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
25398 instead REPORT_UNVECTORIZED_LOOPS.
fbdf817d
UB
25399 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
25400 and vect_loop_def to vect_external_def and vect_internal_def.
8644a673 25401 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
f100a4a8 25402 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
8644a673
IR
25403 REPORT_UNVECTORIZED_LOCATIONS.
25404 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
f100a4a8 25405 and vect_used_in_loop and to vect_unused_in_scope and
8644a673
IR
25406 vect_used_in_scope.
25407 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
25408 (vect_verbosity_level): Remove declaration.
25409 (vect_analyze_operations): Likewise.
25410 (vect_analyze_stmt): Declare.
25411 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
25412 REPORT_UNVECTORIZED_LOCATIONS.
25413 (vect_get_loop_niters): Fix indentation.
25414 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
25415 (vect_analyze_loop_operations): New function.
25416 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
25417 vect_analyze_operations.
25418 (vect_is_simple_reduction): Use new names.
25419 (vectorizable_live_operation, vect_transform_loop): Likewise.
fbdf817d
UB
25420 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
25421 to specify whether the data references can be a part of interleaving
25422 chain.
8644a673
IR
25423 (vect_analyze_data_ref_dependence): Use new names.
25424 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
25425 (vect_create_addr_base_for_vector_ref): Remove redundant code.
25426 * tree-vect-patterns.c (widened_name_p): Use new names.
25427 (vect_recog_dot_prod_pattern): Likewise.
25428 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
f100a4a8 25429 (process_use, vect_mark_stmts_to_be_vectorized,
8644a673
IR
25430 vect_model_simple_cost, vect_model_store_cost,
25431 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
25432 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
25433 vectorizable_operation, vectorizable_type_demotion,
25434 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
25435 vectorizable_condition): Likewise.
25436 (vect_analyze_operations): Split into vect_analyze_loop_operations
25437 and ...
25438 (vect_analyze_stmt): ... new function.
25439 (new_stmt_vec_info): Use new names.
25440 (vect_is_simple_use): Use new names and fix comment.
25441 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
25442 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
25443
b91322f2
UB
254442009-04-28 Uros Bizjak <ubizjak@gmail.com>
25445
25446 PR target/39911
25447 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
25448 and integer modes for x87 operands. Do not ICE for unsupported size,
25449 generate error instead. Generate error for unsupported operand types.
25450 ['z']: Do not handle HImode memory operands specially. Warning
25451 for floating-point operands. Fallthru to 'Z' for unsupported operand
25452 types. Do not ICE for unsupported size, generate error instead.
25453 (output_387_binary_op): Use %Z to output operands.
25454 (output_fp_compare): Ditto.
25455 (output_387_reg_move): Ditto.
25456
b2ed71b6
BE
254572009-04-28 Ben Elliston <bje@au.ibm.com>
25458
25459 PR c++/35652
25460 Revert:
25461
25462 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
25463
25464 * builtins.c (c_strlen): Do not warn here.
25465 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
25466 * c-common.c (pointer_int_sum): Take an explicit location.
25467 Warn about offsets out of bounds.
25468 * c-common.h (pointer_int_sum): Adjust declaration.
25469
81f40b79
ILT
254702009-04-27 Ian Lance Taylor <iant@google.com>
25471
25472 * collect2.c (is_ctor_dtor): Change type of ret field in struct
25473 names to symkind.
25474 * dce.c (run_fast_df_dce): Change type of old_flags to int.
25475 * df-core.c (df_set_flags): Change return type to int. Change
25476 type of old_flags to int.
25477 (df_clear_flags): Likewise.
25478 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
25479 (df_get_conditional_uses): Likewise.
25480 * df.h (df_set_flags, df_clear_flags): Update declarations.
25481 * dwarf2out.c (struct indirect_string_node): Change type of form
25482 field to enum dwarf_form.
25483 (AT_string_form): Change return type to enum dwarf_form.
25484 * fixed-value.c (fixed_compare): Add cast to enum type.
25485 * fwprop.c (update_df): Change 0 to VOIDmode.
25486 * gensupport.c: Change 0 to UNKNOWN.
25487 * gimple.h (gimple_cond_code): Add cast to enum type.
25488 * haifa-sched.c (reemit_notes): Add cast to enum type.
25489 * hooks.c (hook_int_void_no_regs): Remove function.
25490 * hooks.h (hook_int_void_no_regs): Remove declaration.
25491 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
7a00d767 25492 * predict.c (combine_predictions_for_insn): Add casts to enum type.
81f40b79
ILT
25493 * real.c (real_arithmetic): Add cast to enum type.
25494 (real_compare): Likewise.
25495 * target.h (struct gcc_target): Change return type of
25496 branch_target_register_class to enum reg_class.
25497 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
25498 default_branch_target_register_class.
7a00d767 25499 * targhooks.c (default_branch_target_register_class): New function.
81f40b79 25500 * targhooks.h (default_branch_target_register_class): Declare.
7a00d767 25501 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
81f40b79
ILT
25502 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
25503 cast to int.
25504 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
25505 ERROR_MARK.
25506 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
25507 vect_uninitialized_def. Change 0 to ERROR_MARK.
25508 * tree-vect-stmts.c (supportable_widening_operation): Don't
25509 initialize icode1 and icode2.
7a00d767 25510 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
81f40b79
ILT
25511 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
25512 and to STD_C89.
25513 (cmn_err_flag_specs): Change 0 to STD_C89.
25514 (cmn_err_char_table): Likewise.
25515 * config/arm/arm.c (get_arm_condition_code): Change type of code
25516 to enum arm_cond_code.
25517 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
25518 (IWMMXT_BUILTIN2): Likewise.
25519 (neon_builtin_type_bits): Don't define typedef.
25520 (neon_builtin_datum): Change type of bits field to int.
25521 (arm_expand_neon_args): Add cast to enum type.
25522 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
25523 TLS_MODEL_NONE.
25524 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
25525 casts to enum type.
25526 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
25527 MIPS_FP_COND_f.
25528 * config/mips/mips.md (jal_macro): Return enum constant.
25529 (single_insn): Likewise.
25530 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
25531 CODE_FOR_nothing.
25532 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25533 casts to enum type.
25534 * config/s390/s390.c (s390_tune_flags): Change type to int.
25535 (s390_arch_flags): Likewise.
7a00d767 25536 (s390_handle_arch_option): Change flags field of struct pta to int.
81f40b79
ILT
25537 * config/s390/s390.h (s390_tune_flags): Update declaration.
25538 (s390_arch_flags): Likewise.
25539 * config/sh/sh.c (prepare_move_operands): Compare
25540 tls_symbolic_operand result with enum constant.
25541 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
25542 (sh_expand_prologue): Add cast to enum type.
25543 (sh_expand_epilogue): Likewise.
25544 (tls_symbolic_operand): Change return type to enum tls_model.
25545 (fpscr_set_from_mem): Add cast to enum type.
25546 (legitimize_pic_address): Compare tls_symbolic_operand result with
25547 enum constant.
25548 (sh_target_reg_class): Change return type to enum reg_class.
25549 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
25550 PROCESSOR_xxx.
7a00d767
UB
25551 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
25552 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
81f40b79
ILT
25553 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
25554 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
25555 (delayed_branch, tls_call_delay): Likewise.
25556 (eligible_for_sibcall_delay): Likewise.
f100a4a8 25557 (eligible_for_return_delay): Likewise.
81f40b79
ILT
25558 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
25559 (spu_expand_builtin_1): Likewise.
25560
25561 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
25562 for all types of conversions.
25563 (output_init_element): Issue -Wc++-compat warning if needed when
25564 initializing a bitfield with enum type.
25565 * c-parser.c (c_parser_expression): Set original_type to
9302a061 25566 original_type of right hand operand of comma operator.
81f40b79 25567
e4ae5e77
RW
255682009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25569
25570 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
25571 grammar nits.
7a00d767 25572 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
e4ae5e77
RW
25573 * doc/cpp.texi (Standard Predefined Macros)
25574 (Implementation-defined behavior): Likewise.
7a00d767 25575 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
e4ae5e77
RW
25576 * doc/gimple.texi (GIMPLE Exception Handling)
25577 (@code{GIMPLE_ASSIGN}): Likewise.
7a00d767 25578 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
e4ae5e77
RW
25579 * doc/invoke.texi (Warning Options, Optimize Options)
25580 (AVR Options, Darwin Options): Likewise.
25581 (Optimize Options): Reformulate -fwhole-program description.
25582 * doc/loop.texi (Lambda): Likewise.
25583 * doc/md.texi (Output Template, Define Constraints)
25584 (Standard Names, Insn Splitting): Likewise.
25585 * doc/options.texi (Option properties): Likewise.
25586 * doc/passes.texi (Tree-SSA passes): Likewise.
25587 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
25588 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
25589 (File Names and DBX): Likewise.
25590 * doc/trouble.texi (Incompatibilities): Likewise.
25591
1883802f 255922009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
6e37f6d4
TS
25593
25594 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
25595 instruction is correct.
25596
1883802f 255972009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
5345cf68
TS
25598
25599 Allow non-constant arguments to conversion intrinsics.
25600 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
25601 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
25602 * spu.c (print_operand): Handle 'v' and 'w'.
25603 (exp2_immediate_p, spu_gen_exp2): Define.
25604 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
25605 spu_convtf_1): Update parameter descriptions.
7a00d767 25606 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
5345cf68
TS
25607 * constraints.md ('v', 'w'): New.
25608 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
25609 Remove.
25610 (i2f, I2F): New define_mode_attr.
25611 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
25612 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
25613 fixuns_truncv4sfv4si2): Update to use mode attribute.
25614 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
25615 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
25616 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
25617 patterns for combine.
25618
5f39ad47
SB
256192009-04-27 Steven Bosscher <steven@gcc.gnu.org>
25620
25621 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
25622 (cprop, hoist, pre, store_motion): New debug counters.
25623 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
25624 is not an RTL pass anymore.
25625 (pass_profiling): Remove extern decl for pass removed in 2005.
25626 (pass_gcse, pass_jump_bypass): Remove.
25627 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
25628 to 0 for clean state.
25629 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
25630 * cse.c (gate_handle_cse_after_global_opts,
25631 rest_of_handle_cse_after_global_opts): New functions.
25632 (pass_cse_after_global_opts): New pass, does local CSE.
25633 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
25634 (TV_CPROP): New timevar.
25635 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
25636 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
25637 (gcse_main, recompute_all_luids): Remove.
25638 (compute_hash_table_work): Call max_reg_num instead of reading
25639 max_gcse_regno.
25640 (cprop_jump): Don't set run_jump_opt_after_gcse.
25641 (constprop_register): Always allow to alter jumps.
25642 (cprop_insn): Likewise.
25643 (do_local_cprop): Likewise.
25644 (local_cprop_pass): Likewise. Return non-zero if something changed.
25645 (cprop): Remove function, fold interesting bits into one_cprop_pass.
25646 (find_implicit_sets): Add note about missed optimization opportunity.
25647 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
25648 pass_rtl_cprop execute function.
25649 Don't bother tracking the pass number, each pass gets its own dumpfile
25650 now anyway.
25651 Always allow to alter jumpsand bypass jumps.
25652 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
25653 will just find no suitable set.
25654 (pre_edge_insert): Fix dumping, this function is for PRE only.
25655 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
25656 pass_rtl_pre execute function.
25657 (hoist_code): Return non-zero if something changed. Keep track of
25658 substitutions and insertions for statistics gathering similar to PRE.
25659 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
25660 called from the pass_rtl_hoist execute function. Show pass statistics.
25661 (compute_store_table): Use max_reg_num directly instead of using the
25662 formerly global max_gcse_regno.
25663 (build_store_vectors): Likewise.
25664 (replace_store_insn): Fix dumping.
25665 (store_motion): Rename to ...
25666 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
25667 pass, called from the pass_rtl_store_motion execute function. Keep
25668 track of substitutions and insertions for statistics gathering similar
25669 to PRE.
25670 (bypass_jumps): Remove, fold interesting bits into ...
25671 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
25672 from the pass_rtl_cprop execute function.
25673 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
25674 pass_jump_bypass): Remove.
25675 (gate_handle_gcse, rest_of_handle_gcse): Remove.
25676 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
25677 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
25678 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
25679 (gate_rtl_store_motion, execute_rtl_store_motion,
25680 pass_rtl_store_motion): New.
25681 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
25682 make it clear that -fcse-skip-blocks is a no-op for backward compat.
25683 * passes.c (init_optimization_passes): Remove pass_gcse and
25684 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
25685 and cse_after_global_opts in place of pass_gcse. Schedule cprop
25686 instead of pass_jump_bypass.
25687
c685de4a
RG
256882009-04-27 Richard Guenther <rguenther@suse.de>
25689
25690 PR middle-end/39928
25691 * gimplify.c (gimplify_expr): If we are required to create
25692 a temporary make sure it ends up as register.
25693
72d41f29
L
256942009-04-27 H.J. Lu <hongjiu.lu@intel.com>
25695
25696 PR target/39903
25697 * config/i386/i386.c (construct_container): Don't call
25698 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
25699 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
25700
e97809c6
MM
257012009-04-27 Michael Matz <matz@suse.de>
25702
25703 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
25704 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
bd62d832 25705 * tree-ssa-live.h (find_replaceable_exprs): Return a bitmap.
e97809c6
MM
25706 (dump_replaceable_exprs): Take a bitmap.
25707 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
25708 array.
25709 (expand_gimple_basic_block): Likewise.
25710 * tree-ssa-ter.c (struct temp_expr_table_d): Make
25711 replaceable_expressions member a bitmap.
25712 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
25713 (mark_replaceable): Likewise.
25714 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
25715 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
25716
211ca15c
RG
257172009-04-27 Richard Guenther <rguenther@suse.de>
25718
25719 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
25720 (verify_stmts): Dispatch to gimple/type verification code.
25721 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
25722 issue with call argument types.
25723
fca5f3d1
MM
257242009-04-27 Michael Matz <matz@suse.de>
25725
25726 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
25727 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
25728 to above.
25729
a1fa3e79 257302009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
8224166e 25731 Eric Botcazou <ebotcazou@adacore.com>
a1fa3e79
EB
25732
25733 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
25734 a label's basic block.
25735 (mark_target_live_regs): Tidy and rework obsolete comments.
25736 Change back DF problem to LIVE. If a label starts a basic block,
25737 assume that all registers that used to be live then still are.
25738 (init_resource_info): If a label starts a basic block, set its
25739 BLOCK_FOR_INSN accordingly.
25740 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
25741
33b223c0
RG
257422009-04-27 Richard Guenther <rguenther@suse.de>
25743
25744 * tree-flow-inline.h (function_ann): Remove.
25745 (get_function_ann): Likewise.
25746 * tree-dfa.c (create_function_ann): Remove.
25747 * tree-flow.h (struct static_var_ann_d): Remove.
25748 (struct function_ann_d): Likewise.
25749 (union tree_ann_d): Remove fdecl member.
25750 (function_ann_t): Remove.
25751 (function_ann, get_function_ann, create_function_ann): Remove
25752 declarations.
25753
e3136fa2
UB
257542009-04-27 Uros Bizjak <ubizjak@gmail.com>
25755
25756 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
25757
f87c9042
JH
257582009-04-27 Jan Hubicka <jh@suse.cz>
25759
25760 * ipa-pure-const.c (struct funct_state_d): New fields
25761 state_previously_known, looping_previously_known; remove
25762 state_set_in_source.
25763 (analyze_function): Use new fields.
25764 (propagate): Avoid assumption that state_set_in_source imply
25765 nonlooping.
25766
25767 * tree-ssa-loop-niter.c (finite_loop_p): New function.
25768 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
25769 * cfgloop.h (finite_loop_p): Declare.
25770
33abd718
MM
257712009-04-26 Michael Matz <matz@suse.de>
25772
e3136fa2 25773 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
33abd718 25774
ddc34084
MM
257752009-04-26 Michael Matz <matz@suse.de>
25776
25777 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
25778 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
25779 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
25780 pass_mark_used_blocks): Remove.
25781 * tree-optimize.c (pass_free_datastructures,
25782 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
25783 * passes.c (init_optimization_passes): Don't call
25784 pass_mark_used_blocks, remove dead code.
25785
1fec7ed4
L
257862009-04-26 H.J. Lu <hongjiu.lu@intel.com>
25787
25788 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
25789 * tree-ssa-live.h (register_ssa_partition): Likewise.
25790
4e3825db
MM
257912009-04-26 Michael Matz <matz@suse.de>
25792
25793 Expand from SSA.
25794 * builtins.c (fold_builtin_next_arg): Handle SSA names.
25795 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
25796 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
f100a4a8 25797 SSA names.
4e3825db
MM
25798 (compare_pairs): Swap cost comparison.
25799 (coalesce_ssa_name): Don't use change_partition_var.
25800 * tree-nrv.c (struct nrv_data): Add modified member.
25801 (finalize_nrv_r): Set it.
25802 (tree_nrv): Use it to update statements.
25803 (pass_nrv): Require PROP_ssa.
25804 * tree-mudflap.c (mf_decl_cache_locals,
25805 mf_build_check_statement_for): Use make_rename_temp.
25806 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
25807 * alias.c (find_base_decl): Handle SSA names.
25808 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
25809 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
25810 * rtl.h (set_reg_attrs_for_parm): Declare.
25811 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
25812 to "optimized", remove unused locals at finish.
25813 (execute_free_datastructures): Make global, call
25814 delete_tree_cfg_annotations.
25815 (execute_free_cfg_annotations): Don't call
25816 delete_tree_cfg_annotations.
25817
25818 * ssaexpand.h: New file.
25819 * expr.c (toplevel): Include ssaexpand.h.
e3136fa2 25820 (expand_assignment): Handle SSA names the same as register variables.
4e3825db
MM
25821 (expand_expr_real_1): Expand SSA names.
25822 * cfgexpand.c (toplevel): Include ssaexpand.h.
25823 (SA): New global variable.
25824 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
25825 (SSAVAR): New macro.
25826 (set_rtl): New helper function.
25827 (add_stack_var): Deal with SSA names, use set_rtl.
25828 (expand_one_stack_var_at): Likewise.
25829 (expand_one_stack_var): Deal with SSA names.
25830 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
25831 before unique numbers.
25832 (expand_stack_vars): Use set_rtl.
25833 (expand_one_var): Accept SSA names, add asserts for them, feed them
25834 to above subroutines.
25835 (expand_used_vars): Expand all partitions (without default defs),
25836 then only the local decls (ignoring those expanded already).
25837 (expand_gimple_cond): Remove edges when jumpif() expands an
25838 unconditional jump.
25839 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
25840 or remove abnormal edges. Ignore insns setting the LHS of a TERed
25841 SSA name.
25842 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
25843 members of SA; deal with PARM_DECL partitions here; expand
25844 all PHI nodes, free tree datastructures and SA. Commit instructions
25845 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
25846 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
25847 info and statements at start, collect garbage at finish.
25848 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
25849 (VAR_ANN_PARTITION) Remove.
25850 (change_partition_var): Don't declare.
25851 (partition_to_var): Always return SSA names.
25852 (var_to_partition): Only accept SSA names.
25853 (register_ssa_partition): Only check argument.
25854 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
25855 member.
25856 (delete_var_map): Don't free it.
25857 (var_union): Only accept SSA names, simplify.
25858 (partition_view_init): Mark only useful SSA names as used.
25859 (partition_view_fini): Only deal with SSA names.
25860 (change_partition_var): Remove.
25861 (dump_var_map): Use ssa_name instead of partition_to_var member.
25862 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
25863 basic blocks.
25864 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
25865 (struct _elim_graph): New member const_dests; nodes member vector of
25866 ints.
25867 (set_location_for_edge): New static helper.
25868 (create_temp): Remove.
25869 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
e3136fa2 25870 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
4e3825db
MM
25871 (new_elim_graph): Allocate const_dests member.
25872 (clean_elim_graph): Truncate const_dests member.
25873 (delete_elim_graph): Free const_dests member.
25874 (elim_graph_size): Adapt to new type of nodes member.
25875 (elim_graph_add_node): Likewise.
25876 (eliminate_name): Likewise.
25877 (eliminate_build): Don't take basic block argument, deal only with
25878 partition numbers, not variables.
25879 (get_temp_reg): New static helper.
25880 (elim_create): Use it, deal with RTL temporaries instead of trees.
25881 (eliminate_phi): Adjust all calls to new signature.
25882 (assign_vars, replace_use_variable, replace_def_variable): Remove.
25883 (rewrite_trees): Only do checking.
25884 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
25885 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
25886 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
25887 contains_tree_r, MAX_STMTS_IN_LATCH,
25888 process_single_block_loop_latch, analyze_edges_for_bb,
25889 perform_edge_inserts): Remove.
25890 (expand_phi_nodes): New global function.
25891 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
25892 functions, initialize new parameter, remember partitions having a
25893 default def.
25894 (finish_out_of_ssa): New global function.
25895 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
25896 don't reset in_ssa_p here, don't disable TER when mudflap.
25897 (pass_del_ssa): Remove.
25898 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
25899 partition members.
25900 (execute_free_datastructures): Declare.
25901 * Makefile.in (SSAEXPAND_H): New variable.
25902 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
25903 * basic-block.h (commit_one_edge_insertion): Declare.
25904 * passes.c (init_optimization_passes): Move pass_nrv and
25905 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
25906 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
25907 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
25908 (redirect_branch_edge): Deal with super block when expanding, split
25909 out jump patching itself into ...
25910 (patch_jump_insn): ... here, new static helper.
25911
17c665a9
MM
259122009-04-26 Michael Matz <matz@suse.de>
25913
25914 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
25915 beyond num_ssa_names.
25916 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
25917 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
25918
92061771
JJ
259192009-04-26 Jakub Jelinek <jakub@redhat.com>
25920
ce372372
JJ
25921 PR inline-asm/39543
25922 * fwprop.c (forward_propagate_asm): New function.
25923 (forward_propagate_and_simplify): Propagate also into __asm, if it
25924 doesn't increase the number of referenced registers.
25925
92061771
JJ
25926 PR c/39889
25927 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
25928
259292009-04-26 Jakub Jelinek <jakub@redhat.com>
77f2a970
JJ
25930
25931 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
25932 note_nonlocal_vla_type for nonlocal VLAs.
25933 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
25934 contains_remapped_vars, remap_vla_decls): New functions.
25935 (convert_nonlocal_reference_stmt): If not optimizing, call
25936 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
25937 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
25938 if it wasn't found in var_map.
25939 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
25940 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
25941 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
25942 declare_vars.
25943 * gimplify.c (nonlocal_vlas): New variable.
25944 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
25945 referenced VLAs.
25946 (gimplify_body): Create and destroy nonlocal_vlas.
a9548ddf 25947
4561e242
JJ
25948 * dwarf2out.c (loc_descr_plus_const): New function.
25949 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
25950 mem_loc_descriptor, loc_descriptor_from_tree_1,
25951 descr_info_loc, gen_variable_die): Use it.
25952
a9548ddf
JJ
25953 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
25954 !TREE_STATIC VAR_DECLs.
25955 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
25956 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
25957 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
25958 DECL_BY_REFERENCE is valid.
25959 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
25960 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
25961 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
25962 Copy DECL_BY_REFERENCE.
25963 (struct nesting_copy_body_data): New type.
25964 (nesting_copy_decl): New function.
25965 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
25966 if they have variable length.
25967
10555d08
MM
259682009-04-26 Michael Matz <matz@suse.de>
25969
25970 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
25971 mark new temporaries for renaming.
25972
e11187cc
JM
259732009-04-26 Joseph Myers <joseph@codesourcery.com>
25974
25975 PR c/39581
25976 * c-decl.c (global_bindings_p): Return negative value.
25977 (c_variable_size): New. Based on variable_size from
25978 stor-layout.c.
25979 (grokdeclarator): Call c_variable_size not variable_size.
25980
f6a51d31
UB
259812009-04-26 Uros Bizjak <ubizjak@gmail.com>
25982
25983 * config/i386/i386.c (print_operand) ['z']: Fix typo.
25984
4b97723d
KT
259852009-04-26 Kai Tietz <kai.tietz@onevision.com>
25986
25987 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
25988 Redefine it to just use mingw/include.
25989 (ASM_SPEC): Rules for -m32 and -m64.
25990 (LINK_SPEC): Use Likewise.
25991 (SPEC_32): New define.
25992 (SPEC_64): Likewise.
25993 (SUB_LINK_SPEC): Likewise.
25994 (MULTILIB_DEFAULTS): New define.
25995 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
25996 Add multilib options.
25997 (MULTILIB_DIRNAMES): Likewise.
25998 (MULTILIB_OSDIRNAMES): Likewise.
25999 (LIBGCC): Likewise.
26000 (INSTALL_LIBGCC): Likewise.
26001
991d6621
JM
260022009-04-26 Joseph Myers <joseph@codesourcery.com>
26003
26004 PR c/39556
26005 * c-tree.h (enum c_inline_static_type): New.
26006 (record_inline_static): Declare.
26007 * c-decl.c (struct c_inline_static, c_inline_statics,
26008 record_inline_static, check_inline_statics): New.
26009 (pop_file_scope): Call check_inline_statics.
26010 (start_decl): Call record_inline_static instead of pedwarning
26011 directly for static in inline function.
26012 * c-typeck.c (build_external_ref): Call record_inline_static
26013 instead of pedwarning directly for static referenced in inline
26014 function.
26015
4a81774c
SB
260162009-04-26 Steven Bosscher <steven@gcc.gnu.org>
26017
26018 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
26019 not new but only being rescanned.
26020 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
26021 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
26022 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
26023 record_set_info, compute_set, grealloc): Remove.
26024 (recompute_all_luids): New function.
26025 (gcse_main): Don't compute sets, and don't do related memory
26026 allocations/free-ing. If something changed before the end of the
26027 pass, update LUIDs using recompute_all_luids.
26028 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
26029 (free_gcse_mem): Don't free it either.
26030 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
26031 Use the df insn LUIDs.
26032 (load_killed_in_block): Likewise.
26033 (compute_hash_table_work): Don't compute reg_set_in_block.
26034 (compute_transp): Use DF_REG_DEF_CHAINs.
26035 (local_cprop_pass): Don't use compute_sets and related functions.
26036 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
26037 Use get_max_uid() instead of max_cuid.
26038 (insert_insn_end_basic_block, pre_insert_copy_insn,
26039 update_ld_motion_stores): Don't try to
26040 keep reg_set tables up to date.
26041 (pre_insert_copies): Use df insn LUIDs.
26042 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
26043 (reg_set_info): Don't use extra bitmap argument.
26044 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
26045 information to compute regs_set_in_block.
26046 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
26047 (bypass_jumps): Don't use compute_sets and friends.
26048
e8f99a9d
RW
260492009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26050
26051 PR testsuite/39710
26052 * opts.c (undocumented_msg): Do not leave blank even with
26053 ENABLE_CHECKING.
26054
6895bac8
JM
260552009-04-25 Joseph Myers <joseph@codesourcery.com>
26056
26057 * c-decl.c (build_enumerator): Allow values folding to integer
26058 constants but not integer constant expressions with a pedwarn if
26059 pedantic.
26060
24070fcb
JM
260612009-04-25 Joseph Myers <joseph@codesourcery.com>
26062
26063 PR c/39582
26064 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
26065 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
26066 type is an integer constant.
26067
d6d89aa1
UB
260682009-04-25 Uros Bizjak <ubizjak@gmail.com>
26069
26070 PR target/39897
26071 * config/i386/i386.c (print_operand) ['z']: Revert handling of
26072 HImode operands.
26073
92f6fd0b
JM
260742009-04-25 Joseph Myers <joseph@codesourcery.com>
26075
26076 PR c/39564
26077 * c-decl.c (grokdeclarator): Diagnose declarations of functions
26078 with variably modified return type and no storage class
26079 specifiers, except for the case of nested functions. Distinguish
26080 extern declarations of functions with variably modified return
26081 types from those of objects with variably modified types.
26082
a3710436
JH
260832009-04-25 Jan Hubicka <jh@suse.cz>
26084
26085 * tree.c (list_equal_p): New function.
26086 * tree.h (list_equal_p): Declare.
26087 * coretypes.h (edge_def, edge, const_edge, basic_block_def
26088 basic_block_def, basic_block, const_basic_block): New.
26089 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
26090 (redirect_eh_edge): New function.
26091 (make_eh_edge_update_phi): EH edges are not abnormal.
26092 * except.c: Include tree-flow.h.
26093 (list_match): New function.
26094 (eh_region_replaceable_by_p): New function.
26095 (replace_region): New function.
26096 (hash_type_list): New function.
26097 (hash_eh_region): New function.
26098 (eh_regions_equal_p): New function.
26099 (merge_peers): New function.
26100 (remove_unreachable_regions): Verify EH tree when checking;
26101 merge peers.
26102 (copy_eh_region_1): New function.
26103 (copy_eh_region): New function.
26104 (push_reachable_handler): New function.
26105 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
26106 regions without label but with live RESX.
26107 * except.h (redirect_eh_edge_to_label): New.
26108 * tree-flow.h (redirect_eh_edge): New.
26109 * coretypes.h (edge_def, edge, const_edge, basic_block_def
26110 basic_block_def, basic_block, const_basic_block): Remove.
26111 * Makefile.in (except.o): Add dependency on tree-flow.h
26112 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
26113 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
26114 Remove.
26115
3764d512
EB
261162009-04-25 Eric Botcazou <ebotcazou@adacore.com>
26117
26118 PR bootstrap/39645
26119 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
26120 on the destination of memcpy.
26121
1c62e8f2
PB
261222009-04-25 Paolo Bonzini <bonzini@gnu.org>
26123
26124 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
26125 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
26126 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
26127
496a4ef5
JH
261282009-04-25 Jan Hubicka <jh@suse.cz>
26129
26130 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
26131 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
26132 to be reached by different label than left.
26133 (update_eh_edges): Update comment; remove edge_to_remove if possible
26134 and return true if suceeded.
26135 (cleanup_empty_eh): Accept sharing map; handle shared regions.
26136 (cleanup_eh): Compute sharing map.
26137 * except.c (remove_eh_handler_and_replace): Add argument if we should
26138 update regions.
26139 (remove_unreachable_regions): Update for label sharing.
26140 (label_to_region_map): Likewise.
26141 (get_next_region_sharing_label): New function.
26142 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
26143 prev_try pointers.
26144 (remove_eh_handler): Update.
26145 (remove_eh_region_and_replace_by_outer_of): New function.
26146 * except.h (struct eh_region): Add next_region_sharing_label.
26147 (remove_eh_region_and_replace_by_outer_of,
26148 get_next_region_sharing_label): Declare.
26149 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
26150
261512009-04-25 Jan Hubicka <jh@suse.cz>
26152
26153 * tree-cfg.c (split_critical_edges): Split also edges where we can't
26154 insert code even if they are not critical.
26155
261562009-04-25 Jan Hubicka <jh@suse.cz>
26157
26158 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
26159 (gimple_can_remove_branch_p): EH edges won't remove branch by
26160 redirection.
26161 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
26162 updating of non-abnormal EH edges.
26163 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
26164 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
26165 (split_critical_edges): Split also edges where emitting code on them
26166 will lead to splitting later.
26167
a3a5e3d1
UB
261682009-04-25 Uros Bizjak <ubizjak@gmail.com>
26169 H.J. Lu <hongjiu.lu@intel.com>
26170
26171 PR target/39590
26172 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
26173 the configured assembler supports fildq and fistpq mnemonics.
26174 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
26175 * configure: Regenerated.
26176 * config.in: Ditto.
26177
26178 * config/i386/i386.c (print_operand): Handle 'Z'.
26179 ['z']: Remove handling of special fild/fist suffixes.
26180 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
26181 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
26182 suffix of fild insn.
26183 (*floatsi<mode>2_vector_mixed): Ditto.
26184 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
26185 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
26186 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
26187 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
26188 * config/i386/gas.h (GAS_MNEMONICS): Remove.
26189
23750d7f 261902009-04-25 Ben Elliston <bje@au.ibm.com>
f100a4a8 26191
23750d7f
BE
26192 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
26193 the source of a set operation.
26194
e6ff3083
AS
261952009-04-25 Anatoly Sokolov <aesok@post.ru>
26196
26197 * target.h (struct gcc_target): Add case_values_threshold field.
26198 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
26199 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
26200 * targhooks.c (default_case_values_threshold): New function.
26201 * targhooks.h (default_case_values_threshold): Declare function.
26202 * stmt.c (expand_case): Use case_values_threshold target hook.
26203 * expr.h (case_values_threshold): Remove declartation.
26204 * expr.c (case_values_threshold): Remove function.
26205 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
26206
26207 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
26208 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
26209 (avr_case_values_threshold): Declare as static.
26210 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
26211
26212 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
26213 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
26214 (mn10300_case_values_threshold): New function.
26215
569c72fc
L
262162009-04-24 H.J. Lu <hongjiu.lu@intel.com>
26217
26218 * ira.c (setup_cover_and_important_classes): Add enum cast.
26219
ff3cb468
VM
262202009-04-24 Vladimir Makarov <vmakarov@redhat.com>
26221
26222 * genpreds.c (write_enum_constraint_num): Output definition of
26223 CONSTRAINT_NUM_DEFINED_P macro.
26224 * ira.c (setup_cover_and_important_classes): Use
26225 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
f100a4a8 26226
4f7be849
DD
262272009-04-24 DJ Delorie <dj@redhat.com>
26228
26229 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
26230 __SH2A_SINGLE_ONLY__ also.
26231
735b94a7
SE
262322009-04-24 Steve Ellcey <sje@cup.hp.com>
26233
26234 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
26235 (movdf_internal): Ditto.
26236 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
26237 SFmode and DFmode constants.
26238 (ia64_print_operand): Add 'G' format for printing
26239 floating point constants.
26240
77a30264
RG
262412009-04-24 Richard Guenther <rguenther@suse.de>
26242
26243 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
26244 from unsigned additions.
26245
2b6da65c
JM
262462009-04-24 Joseph Myers <joseph@codesourcery.com>
26247
26248 * c-typeck.c (set_init_index): Allow array designators that are
26249 not integer constant expressions with a pedwarn if pedantic.
26250
f5a17c43
BS
262512009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
26252
26253 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
26254 zero if no overlap in nonzero bits between the operands.
26255
32e8bb8e
ILT
262562009-04-24 Ian Lance Taylor <iant@google.com>
26257
26258 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
26259 (record_dead_and_set_regs): Likewise.
26260 * df.h (struct df_mw_hardreg): Change flags field to int.
26261 (struct df_base_ref): Likewise.
26262 (struct df): Change changeable_flags field to int.
26263 * df-scan.c (df_defs_record): Change clobber_flags to int.
26264 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
26265 constants rather than #define macros.
26266 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
26267 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
26268 (enum dwarf_calling_convention): Likewise.
26269 (enum dwarf_line_number_x_ops): Likewise.
26270 (enum dwarf_call_frame_info): Likewise.
26271 (enum dwarf_source_language): Likewise.
26272 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
26273 (add_calling_convention_attribute): Likewise.
a3a5e3d1
UB
26274 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
26275 (combine_comparisons): Change compcode to int. Add cast to enum type.
32e8bb8e
ILT
26276 * genrecog.c (maybe_both_true_2): Change c to int.
26277 (write_switch): Likewise. Add cast to enum type.
26278 * gimplify.c (gimplify_omp_for): Handle return values from
26279 gimplify_expr using MIN rather than bitwise or.
26280 (gimplify_expr): Add cast to enum type.
26281 * ipa-prop.c (update_jump_functions_after_inlining): Change
26282 IPA_BOTTOM to IPA_JF_UNKNOWN.
a3a5e3d1
UB
26283 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
26284 Add casts to enum type.
32e8bb8e
ILT
26285 (setup_cover_and_important_classes): Change cl to int. Add casts
26286 to enum type.
26287 (setup_class_translate): Change cl and mode to int.
26288 (ira_init_once): Change mode to int.
26289 (free_register_move_costs): Likewise.
26290 (setup_prohibited_mode_move_regs): Add casts to enum type.
26291 * langhooks.c (add_builtin_function_common): Rework assertion that
26292 value fits bitfield.
26293 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
26294 * omega.c (omega_do_elimination): Avoid math on enum types.
26295 * optabs.c (expand_vec_shift_expr): Remove casts to int.
26296 * opts.c (set_debug_level): Change 2 to enum constant. Use new
26297 int local to handle integral_argment value.
26298 * regmove.c (try_auto_increment): Change PUT_MODE to
26299 PUT_REG_NOTE_KIND.
26300 * reload.c (push_secondary_reload): Add casts to enum type.
26301 (secondary_reload_class, find_valid_class): Likewise.
26302 * reload1.c (emit_input_reload_insns): Likewise.
26303 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
26304 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
26305 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
26306 constant.
26307 * tree.c (build_common_builtin_nodes): Add casts to enum type.
26308 * tree-complex.c (complex_lattice_t): Typedef to int rather than
26309 enum type.
26310 (expand_complex_libcall): Add casts to enum type.
26311 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
26312 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
26313 with ERROR_MARK, not NUM_TREE_CODES.
26314 (vect_create_epilog_for_reduction): Likewise.
26315 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
a3a5e3d1 26316 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
32e8bb8e
ILT
26317 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
26318 enum machine_mode.
26319 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
26320 vect_unused_in_loop. Change 0 to loop_vect.
a3a5e3d1 26321 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
32e8bb8e
ILT
26322 * var-tracking.c (get_init_value): Change return type to enum
26323 var_init_status.
26324 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
26325 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
26326 arm_fp_model.
26327 (arm_override_options): Add casts to enum type.
26328 (arm_emit_tls_decoration): Likewise.
26329 * config/i386/i386.c (ix86_function_specific_restore): Add casts
26330 to enum type.
26331 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
26332 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
26333 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
26334 enum type.
26335 * config/s390/s390.c (code_for_builtin_64): Change to array of
26336 enum insn_code.
26337 (code_for_builtin_31): Likewise.
26338 (s390_expand_builtin): Change code_for_builtin to enum insn_code
26339 const *.
26340 * config/sparc/sparc.c (sparc_override_options): Change value
26341 field in struct code_model to enum cmodel. In initializer change
26342 0 to NULL and add cast to enum type.
26343
26344 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
26345 Change all callers. Issue a -Wc++-compat warning using
26346 lhs_origtype if necessary.
26347 (convert_for_assignment): Issue -Wc++-compat warnings about
26348 invalid conversions to enum type on assignment.
26349 * c-common.h (build_modify_expr): Update declaration.
26350
ac4fc08a
NC
263512009-04-24 Nick Clifton <nickc@redhat.com>
26352
26353 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
26354 (function_arg_advance): Likewise.
26355 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
26356 5th alternative.
26357
f22e891a
AK
263582009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
26359
26360 * config/s390/constraints.md ('I', 'J'): Fix condition.
26361
ad58aabe
DN
263622009-04-24 Diego Novillo <dnovillo@google.com>
26363
26364 * gengtype-parse.c (parse_error): Add newline after message.
26365
879a4a01
L
263662009-04-24 H.J. Lu <hongjiu.lu@intel.com>
26367
26368 * config/i386/sse.md (avxmodesuffixs): Removed.
26369 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
26370 (*avx_pinsr<ssevecsize>): This.
26371
f63426af
BS
263722009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
26373
26374 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
26375 follow chains of regs with a single definition, and allow expressions
26376 that are function_invariant_p.
ce72fe6c 26377 (simple_rhs_p): Allow expressions that are function_invariant_p.
f63426af 26378
30349c74
PB
263792009-04-24 Paolo Bonzini <bonzini@gnu.org>
26380
26381 PR middle-end/39867
26382 * fold-const.c (fold_cond_expr_with_comparison): When folding
26383 > and >= to MAX, make sure the MAX uses the same type as the
26384 comparison's operands.
26385
8d8256c1
NC
263862009-04-24 Nick Clifton <nickc@redhat.com>
26387
26388 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
26389 addressing for DImode accesses.
26390 (frv_print_operand_address): Handle PLUS case.
a3a5e3d1 26391 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
8d8256c1 26392
6216f94e
JJ
263932009-04-24 Jakub Jelinek <jakub@redhat.com>
26394
26395 PR rtl-optimization/39794
26396 * alias.c (canon_true_dependence): Add x_addr argument.
26397 * rtl.h (canon_true_dependence): Adjust prototype.
26398 * cse.c (check_dependence): Adjust canon_true_dependence callers.
26399 * cselib.c (cselib_invalidate_mem): Likewise.
26400 * gcse.c (compute_transp): Likewise.
26401 * dse.c (scan_reads_nospill): Likewise.
26402 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
26403 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
26404 canon_base_addr of the group, plus optional offset.
26405 (struct group_info): Rename canon_base_mem to
26406 canon_base_addr.
26407 (get_group_info): Set canon_base_addr to canon_rtx of base, not
26408 canon_rtx of base_mem.
26409
6de7a512
PB
264102009-04-23 Paolo Bonzini <bonzini@gnu.org>
26411
26412 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
26413 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
26414
4a3a2376
UW
264152009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26416
26417 * config/spu/spu-builtins.h: Delete file.
26418
26419 * config/spu/spu.h (enum spu_builtin_type): Move here from
26420 spu-builtins.h.
26421 (struct spu_builtin_description): Likewise. Add GTY marker.
26422 Do not use enum spu_function_code or enum insn_code.
26423 (spu_builtins): Add extern declaration.
26424
26425 * config/spu/spu.c: Do not include "spu-builtins.h".
26426 (enum spu_function_code, enum spu_builtin_type_index,
26427 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
26428 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
26429 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
26430 unsigned_V2DI_type_node): Move here from spu-builtins.h.
26431 (spu_builtin_types): Make static. Add GTY marker.
26432 (spu_builtins): Add extern declaration with GTY marker.
26433 Include "gt-spu.h".
26434
26435 * config/spu/spu-c.c: Do not include "spu-builtins.h".
26436 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
26437 Check programmatically whether all parameters are scalar.
26438
26439 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
26440
bbaba73f
EB
264412009-04-23 Eric Botcazou <ebotcazou@adacore.com>
26442
26443 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
26444 assignment from the constructor either if the target is volatile.
26445
ee93c1c6
DJ
264462009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
26447
26448 * config/arm/arm.md (insv): Do not share operands[0].
26449
b2f21330
NS
264502009-04-23 Nathan Sidwell <nathan@codesourcery.com>
26451
26452 * config/vxlib-tls.c (active_tls_threads): Delete.
26453 (delete_hook_installed): New.
26454 (tls_delete_hook): Don't delete the delete hook.
26455 (tls_destructor): Delete it here.
26456 (__gthread_set_specific): Adjust installing the delete hook.
26457 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
26458 __gthread_leave_tsd_dtor_context.
26459
4782dfa7
RAE
264602009-04-23 Rafael Avila de Espindola <espindola@google.com>
26461
26462 * c-format.c (gcc_tdiag_char_table): Add support for %E.
26463
bf758008
UB
264642009-04-23 Uros Bizjak <ubizjak@gmail.com>
26465
26466 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
26467 enum type.
26468 (alpha_rtx_costs): Ditto.
26469 (emit_unlikely_jump): Use add_reg_note.
26470 (emit_frame_store_1): Ditto.
26471 (alpha_expand_prologue): Ditto.
26472 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
26473 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
26474
7323a100
NC
264752009-04-23 Nick Clifton <nickc@redhat.com>
26476
26477 * config/v850/v850.md (epilogue): Remove suppressed code.
26478 (return): Rename to return_simple and remove test of frame size.
26479 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
26480 to gen_return_simple.
26481
360032ba
JY
264822009-04-22 Jing Yu <jingyu@google.com>
26483
26484 PR testsuite/39781
26485 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
26486
53650abe
AP
264872009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
26488
26489 PR C/31499
26490 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
26491 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
26492 value is a VECTOR_CST, the element type is the element type of the
26493 vector.
26494
89043e8a
DD
264952009-04-22 DJ Delorie <dj@redhat.com>
26496
26497 * config/m32c/m32c.h: Update GTY annotations to new syntax.
26498
023f059b
JJ
264992009-04-22 Jakub Jelinek <jakub@redhat.com>
26500
26501 * alias.c (find_base_term): Move around LO_SUM case, so that
26502 CONST falls through into PLUS/MINUS handling.
26503
2c0eba5a
JJ
26504 PR c/39855
26505 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
26506 into 0, use omit_one_operand.
26507
9a461028
BE
265082009-04-23 Ben Elliston <bje@au.ibm.com>
26509
26510 * config/rs6000/linux-unwind.h (get_regs): Remove type
26511 puns. Change the type of `pc' to an array of unsigned ints and
26512 update all users. Constify frame24.
26513
653e2568
DD
265142009-04-22 DJ Delorie <dj@redhat.com>
26515
26516 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
26517 declarations before code.
26518 (current_function_special_page_vector): Likewise.
26519 (m32c_expand_insv): Silence a warning.
26520
60839f5d 265212009-04-21 Taras Glek <tglek@mozilla.com>
d1b38208
TG
26522
26523 * alias.c: Update GTY annotations to new syntax.
26524 * basic-block.h: Likewise.
26525 * bitmap.h: Likewise.
26526 * c-common.h: Likewise.
26527 * c-decl.c: Likewise.
26528 * c-parser.c: Likewise.
26529 * c-pragma.c: Likewise.
26530 * c-tree.h: Likewise.
26531 * cfgloop.h: Likewise.
26532 * cgraph.h: Likewise.
26533 * config/alpha/alpha.c: Likewise.
26534 * config/arm/arm.h: Likewise.
26535 * config/avr/avr.h: Likewise.
26536 * config/bfin/bfin.c: Likewise.
26537 * config/cris/cris.c: Likewise.
26538 * config/darwin.c: Likewise.
26539 * config/frv/frv.c: Likewise.
26540 * config/i386/i386.c: Likewise.
26541 * config/i386/i386.h: Likewise.
26542 * config/i386/winnt.c: Likewise.
26543 * config/ia64/ia64.h: Likewise.
26544 * config/iq2000/iq2000.c: Likewise.
26545 * config/mips/mips.c: Likewise.
26546 * config/mmix/mmix.h: Likewise.
26547 * config/pa/pa.c: Likewise.
26548 * config/pa/pa.h: Likewise.
26549 * config/rs6000/rs6000.c: Likewise.
26550 * config/s390/s390.c: Likewise.
26551 * config/sparc/sparc.c: Likewise.
26552 * config/xtensa/xtensa.c: Likewise.
26553 * cselib.h: Likewise.
26554 * dbxout.c: Likewise.
26555 * dwarf2out.c: Likewise.
26556 * except.c: Likewise.
26557 * except.h: Likewise.
26558 * fixed-value.h: Likewise.
26559 * function.c: Likewise.
26560 * function.h: Likewise.
26561 * gimple.h: Likewise.
26562 * integrate.c: Likewise.
26563 * optabs.c: Likewise.
26564 * output.h: Likewise.
26565 * real.h: Likewise.
26566 * rtl.h: Likewise.
26567 * stringpool.c: Likewise.
26568 * tree-data-ref.c: Likewise.
26569 * tree-flow.h: Likewise.
26570 * tree-scalar-evolution.c: Likewise.
26571 * tree-ssa-address.c: Likewise.
26572 * tree-ssa-alias.h: Likewise.
26573 * tree-ssa-operands.h: Likewise.
26574 * tree.c: Likewise.
26575 * tree.h: Likewise.
26576 * varasm.c: Likewise.
26577 * varray.h: Likewise.
26578 * vec.h: Likewise.
bf758008 26579 * coretypes.h: Do not define GTY macro if it is already defined.
d1b38208
TG
26580 * doc/gty.texi: Update GTY documentation to new syntax.
26581 * gengtype-lex.l: Enforce attribute-like syntax for GTY
26582 annotations on structs.
26583 * gengtype-parse.c: Likewise.
26584
a123d175
MH
265852009-04-22 Mark Heffernan <meheff@google.com>
26586
bf758008 26587 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
a123d175 26588
4c7c486a
KH
265892009-04-22 Kazu Hirata <kazu@codesourcery.com>
26590
26591 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
26592 where appropriate.
26593
6e782a29
KH
265942009-04-22 Kazu Hirata <kazu@codesourcery.com>
26595
26596 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
26597 the same as a PLUS without a shift. Increase the cost of a
26598 CONST_INT in MULT.
26599
38d2336a
MLI
266002009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26601
26602 * Makefile.in: Update dependencies.
bf758008 26603 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
38d2336a
MLI
26604 * errors.h: Remove bogus comment about compatibility.
26605 (warning): Update declaration.
26606 * genautomata.c: Update all calls to warning.
26607 * gimple.c: Do not include errors.h. Include toplev.h.
26608 * tree-ssa-structalias.c: Do not include errors.h.
26609 * omega.c: Likewise.
26610 * tree-ssa-reassoc.c: Likewise.
26611 * config/spu/spu-c.c: Likewise.
26612 * config/spu/t-spu-elf: Update dependencies.
26613
aea4deba
RG
266142009-04-22 Richard Guenther <rguenther@suse.de>
26615
26616 PR tree-optimization/39824
26617 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
26618 make sure the types are compatible.
26619
cfc93532
MLI
266202009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26621
26622 PR c++/14875
26623 * c-common.c (c_parse_error): Take a token_flags parameter.
26624 Use token_type for the token type instead.
26625 Pass token_flags to cpp_type2name.
26626 * c-common.h (c_parse_error): Update declaration.
26627 * c-parser.c (c_parser_error): Pass 0 as token flags.
26628
8632d02a
AB
266292009-04-22 Andrey Belevantsev <abel@ispras.ru>
26630
26631 PR rtl-optimization/39580
f100a4a8
UB
26632 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
26633
4c33221c
UW
266342009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26635
26636 * function.c (expand_function_end): Do not emit a jump to the "naked"
26637 return label for fall-through returns.
26638 * except.c (sjlj_emit_function_exit): Always place the call to the
26639 unregister function at the location installed by expand_function_end.
26640
9925bce0
RG
266412009-04-22 Richard Guenther <rguenther@suse.de>
26642
26643 PR tree-optimization/39845
26644 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
26645 (gen_inbound_check): Likewise.
26646
24a40b35
NS
266472009-04-22 Nathan Sidwell <nathan@codesourcery.com>
26648
26649 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
26650 padding for PPC.
26651 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
26652 * config/vxlib.c (__gthread_once): Add race guard for PPC.
26653
6c34a092
PB
266542009-04-22 Paolo Bonzini <bonzini@gnu.org>
26655
26656 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
26657 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
26658 shift counts to avoid out-of-bounds array accesses.
26659
baa48dfa
PB
266602009-04-22 Paolo Bonzini <bonzini@gnu.org>
26661
26662 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
26663 (Pmode): Move above.
26664
7d83f4f5
UB
266652009-04-22 Uros Bizjak <ubizjak@gmail.com>
26666
26667 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
26668 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
26669 GET_CODE macro. Use IN_RANGE macro where appropriate.
26670 * config/alpha/alpha.h: Ditto.
26671 * config/alpha/alpha.md: Ditto.
26672 * config/alpha/constraints.md: Ditto.
26673 * config/alpha/predicates.md: Ditto.
f100a4a8 26674
3ad606bc
PB
266752009-04-22 Paolo Bonzini <bonzini@gnu.org>
26676
26677 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
26678 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26679 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26680 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26681 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26682 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26683 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26684 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26685 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26686 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26687 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26688 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26689 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26690 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26691 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26692 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26693 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26694 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26695 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26696 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26697 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26698 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26699 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26700 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26701 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26702 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26703 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
26704
3cabd6d1
LB
267052009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26706
26707 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
26708 references from comments.
bd62d832 26709 * cfgbuild.c (count_basic_blocks): Delete.
3cabd6d1
LB
26710 (find_basic_blocks_1): Delete.
26711 (find_basic_blocks): Delete.
26712 * except.c (finish_eh_generation): Make static. Move comment from
7d83f4f5 26713 except.h here. Remove find_basic_blocks references from comments.
3cabd6d1
LB
26714 * except.h (finish_eh_generation): Delete.
26715 * basic-block.h (find_basic_blocks): Delete.
26716 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
26717
270d1bcd
DK
267182009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
26719
26720 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
26721 (sdbout_parms): Likewise.
26722
b757d36f
KK
267232009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
26724
26725 * config/sh/sh.c (prepare_cbranch_operands): Use
26726 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
26727 (expand_cbranchdi4): Likewise.
26728 (from_compare): Add cast to enum type.
26729 (expand_cbranchsi4): Use add_reg_note.
26730 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
26731 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
26732 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
26733 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
26734 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
26735 instead of CODE_FOR_nothing.
26736 (cbranchdi4): Likewise. Fix the order of arguments for
26737 gen_rtx_fmt_ee.
26738 (push_fpscr): Use add_reg_note.
26739 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
26740 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
f100a4a8 26741
ad41bd84
JM
267422009-04-21 Joseph Myers <joseph@codesourcery.com>
26743
26744 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
26745 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
26746 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
26747 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
26748 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
26749 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
26750 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
26751 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
26752 config/alpha/x-vms, config/arc/t-arc,
26753 config/arm/README-interworking, config/arm/arm-c.c,
26754 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
26755 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
26756 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
26757 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
26758 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
26759 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
26760 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
26761 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
26762 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
26763 config/cris/t-elfmulti, config/crx/t-crx,
26764 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
26765 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
26766 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
26767 config/h8300/t-h8300, config/i386/athlon.md,
26768 config/i386/darwin-libgcc.10.4.ver,
26769 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
26770 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
26771 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
26772 config/i386/t-linux64, config/i386/t-nwld,
26773 config/i386/t-rtems-i386, config/i386/t-sol2-10,
26774 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
26775 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
26776 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
26777 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
26778 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
26779 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
26780 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
26781 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
26782 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
26783 config/m68k/t-uclinux, config/mcore/t-mcore,
26784 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
26785 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
26786 config/mips/crtn.asm, config/mips/irix-crti.asm,
26787 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
26788 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
26789 config/mips/mips-fixed.md, config/mips/sb1.md,
26790 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
26791 config/mips/t-iris6, config/mips/t-isa3264,
26792 config/mips/t-libgcc-mips16, config/mips/t-linux64,
26793 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
26794 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
26795 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
26796 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
26797 config/mn10300/t-linux, config/mn10300/t-mn10300,
26798 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
26799 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
26800 config/picochip/libgccExtras/clzsi2.asm,
26801 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
26802 config/rs6000/darwin-libgcc.10.4.ver,
26803 config/rs6000/darwin-libgcc.10.5.ver,
26804 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
26805 config/rs6000/t-aix43, config/rs6000/t-aix52,
26806 config/rs6000/t-darwin, config/rs6000/t-fprules,
26807 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
26808 config/rs6000/t-lynx, config/rs6000/t-netbsd,
26809 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
26810 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
26811 config/rs6000/t-rtems, config/rs6000/t-spe,
26812 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
26813 config/score/t-score-elf, config/sh/divcost-analysis,
26814 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
26815 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
26816 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
26817 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
26818 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
26819 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
26820 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
26821 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
26822 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
26823 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
26824 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
26825 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
26826 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
26827 limitx.h, version.c, xcoff.h: Add copyright and license notices.
26828 * config/h8300/genmova.sh: Include copyright and license notices
26829 in generated output.
26830 * config/h8300/mova.md: Regenerate.
26831 * doc/install.texi2html: Include word "Copyright" in copyright
26832 notice and use name "Free Software Foundation, Inc.".
26833 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
26834 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
26835 ChangeLog-2007, ChangeLog-2008: Correct dates.
26836
ca80e52b
EB
268372009-04-21 Eric Botcazou <ebotcazou@adacore.com>
26838
26839 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
26840 NE_EXPR operations as well.
26841 * c-parser.c (c_parser_condition): Do not set location information on
26842 the condition.
26843 (c_parser_conditional_expression): Likewise.
26844 (c_parser_binary_expression): Set location information on operators.
26845 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
26846 TRUTH_NOT_EXPR has been folded.
26847 * fold-const.c (fold_truth_not_expr): Copy location information from
26848 the incoming expression to the outgoing one.
26849 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
26850 recursive calls on the LHS of the operator but pass that of the
26851 operator to recursive calls on the RHS of the operator. Set it
26852 on the COND_EXPR.
26853 (shortcut_cond_expr): Set the locus of the operator on the second
26854 COND_EXPR and that of the expression on the first in degenerate cases.
26855 Pass the locus of the expression to calls to shortcut_cond_r.
26856 Set the locus of the 'then' block on the associated jump, if any.
26857 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
26858 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
26859 expression to call to gimplify_boolean_expr.
26860
35091630
KT
268612009-04-21 Kai Tietz <kai.tietz@onevision.com>
26862
26863 * config.gcc: Add additional configuration for
26864 i686-w64-mingw* and x86_64-w64-mingw* triplet.
26865 * config/i386/mingw-w64.h: New mingw-w64 specific header.
26866 (CPP_SPEC): Redefine for allowing -municode option.
26867 (STARTFILE_SPEC): Likewise.
26868 * config/i386/t-mingw-w64: New.
26869 * config/i386/mingw-w64.opt: New.
26870 (municode): Add new target option.
26871 * doc/invoke.texi (municode): Add documentation for new option.
26872
0267afc4
ILT
268732009-04-21 Ian Lance Taylor <iant@google.com>
26874
26875 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26876 Correct test for number of arguments.
26877 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
26878
2ba9daa7
AS
268792009-04-21 Andreas Schwab <schwab@linux-m68k.org>
26880
26881 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
26882 argument of emit_library_call.
26883
ad8a1ac0
RG
268842009-04-21 Richard Guenther <rguenther@suse.de>
26885
26886 PR middle-end/39829
26887 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
26888 inside VIEW_CONVERT_EXPRs.
26889
7156c8ab
MJ
268902009-04-21 Martin Jambor <mjambor@suse.cz>
26891
26892 * tree-switch-conversion.c (build_constructors): Split a long line.
26893 (constructor_contains_same_values_p): New function.
7d83f4f5
UB
26894 (build_one_array): Create assigns of constants if possible, do not
26895 call mark_sym_for_renaming, call update_stmt.
7156c8ab
MJ
26896 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
26897 make_rename_temp. Do not call mark_symbols_for_renaming, call
26898 update_stmt.
26899 (gen_def_assigns): Do not call mark_symbols_for_renaming or
26900 find_new_referenced_vars, call update_stmt.
26901 (gen_inbound_check): Use create_tmp_var and create ssa names manually
26902 instead of calling make_rename_temp. Do not call
26903 find_new_referenced_vars or mark_symbols_for_renaming, call
26904 update_stmt.
26905
2970ccb3
RG
269062009-04-21 Richard Guenther <rguenther@suse.de>
26907
26908 PR tree-optimization/39827
7d83f4f5 26909 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
2970ccb3
RG
26910 (tree_ssa_phiprop): Pass the correct array size.
26911
47f402d1
UB
269122009-04-21 Uros Bizjak <ubizjak@gmail.com>
26913
26914 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
26915
1e4ae551
MLI
269162009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
26917
26918 PR 16202
26919 * c-typeck.c (lvalue_p): Move declaration ...
26920 * c-common.h (lvalue_p): ... to here.
26921 * c-common.c (candidate_equal_p): New.
26922 (add_tlist): Use it.
26923 (merge_tlist): Use it.
26924 (warn_for_collisions_1): Likewise.
26925 (warning_candidate_p): Accept more candidates.
26926 (verify_tree): A warning candidate can be an expression. Use
26927 candidate_equal_p.
26928
244609a6
BE
269292009-04-21 Ben Elliston <bje@au.ibm.com>
26930
26931 PR target/5267
26932 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
26933 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
26934 options. Remove -mcall-solaris documentation.
26935
9c650d90
MLI
269362009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
26937
26938 PR c++/13358
26939 * doc/invoke.texi (-Wlong-long): Update description.
26940 * c-lex (interpret_integer): Only warn if there was no previous
26941 overflow and -Wlong-long is enabled.
26942 * c-decl.c (declspecs_add_type): Drop redundant flags.
26943 * c.opt (Wlong-long): Init to -1.
26944 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
26945 and front-end warn_long_long. Wlong-long only depends on other
26946 flags if it is uninitialized.
26947 * c-parser.c (disable_extension_diagnostics): warn_long_long is
26948 the same for CPP and FE.
26949 (restore_extension_diagnostics): Likewise.
26950
bbbbb16a
ILT
269512009-04-20 Ian Lance Taylor <iant@google.com>
26952
26953 Fix enum conversions which are invalid in C++:
47f402d1
UB
26954 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
26955 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
bbbbb16a
ILT
26956 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
26957 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
47f402d1 26958 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
bbbbb16a 26959 (dbxout_parms): Likewise.
47f402d1 26960 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
bbbbb16a
ILT
26961 (df_clear_flags): Likewise.
26962 * df-problems.c (df_rd_bb_local_compute_process_def): Change
26963 top_flag parameter to int.
26964 (df_chain_create_bb_process_use): Likewise.
47f402d1
UB
26965 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
26966 Remove cast.
bbbbb16a
ILT
26967 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
26968 (df_ref_create_structure, df_def_record_1): Likewise.
26969 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
26970 (df_notes_rescan): Change 0 to VOIDmode in function call.
26971 (df_get_call_refs, df_insn_refs_collect): Likewise.
26972 (df_bb_regs_collect): Likewise.
26973 (df_entry_block_defs_collect): Likewise.
26974 (df_exit_block_uses_collect): Likewise.
26975 * df.h: Update declarations.
26976 * double-int.c (double_int_divmod): Add cast to enum type.
26977 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
26978 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
26979 (based_loc_descr): Likewise.
26980 (loc_descriptor_from_tree_1): Change first_op and second_op to
26981 enum dwarf_location_atom. Add cast to enum type.
26982 * expmed.c (init_expmed): Change 0 to SET in function call.
47f402d1 26983 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
bbbbb16a
ILT
26984 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
26985 (do_store_flag): Likewise.
26986 * fixed-value.h (struct fixed_value): Change mode to enum
26987 machine_mode.
47f402d1 26988 * function.c (assign_parms): Change 0 to VOIDmode in function call.
bbbbb16a
ILT
26989 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
26990 function call.
26991 (insert_insn_decl, insert_decl, insert_state): Likewise.
26992 (automata_list_finish): Likewise.
26993 * genrecog.c (process_define_predicate): Add cast to enum type.
26994 * gensupport.c (init_predicate_table): Add cast to enum type.
26995 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
26996 function call.
26997 (gimple_build_call_1, gimple_build_label): Likewise.
26998 (gimple_build_goto, gimple_build_asm_1): Likewise.
26999 (gimple_build_switch_1, gimple_build_cdt): Likewise.
47f402d1 27000 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
bbbbb16a
ILT
27001 (enum fallback): Rename from enum fallback_t.
27002 (fallback_t): Typedef as int.
27003 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
27004 GSI_SAME_STMT in function call.
27005 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
27006 enum type.
27007 (setup_reg_class_relations): Likewise.
47f402d1 27008 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
bbbbb16a
ILT
27009 (setup_prohibited_class_mode_regs): Add cast to enum type.
27010 (setup_prohibited_mode_move_regs): Likewise.
47f402d1 27011 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
bbbbb16a
ILT
27012 (record_address_regs): Change i to enum reg_class.
27013 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
27014 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
27015 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
27016 (GET_MODE_2XWIDER_MODE): Likewise.
27017 (GET_CLASS_NARROWEST_MODE): Likewise.
27018 * omp-low.c (expand_omp_for): Add cast to enum type.
27019 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
27020 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
27021 * postreload.c (reload_cse_simplify_operands): Change rclass local
27022 to enum reg_class.
27023 * predict.c (combine_predictions_for_insn): Change best_predictor
27024 and predictor to enum br_predictor.
27025 (combine_predictions_for_bb): Likewise.
27026 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
27027 use SET_PREDICT_EXPR_OUTCOME.
47f402d1 27028 * real.c (real_arithmetic): Change icode to code in function call.
bbbbb16a
ILT
27029 * reginfo.c (init_move_cost): Add casts to enum type.
27030 (init_reg_sets_1, init_fake_stack_mems): Likewise.
27031 * regmove.c (regclass_compatible_p): Change class0 and class1 to
27032 enum reg_class.
27033 * reload.c (find_valid_class): Add casts to enum type.
27034 (push_reload): Change 0 to NO_REGS in function call.
27035 (find_reloads): Change this_alternative to array of enum
27036 reg_class. Remove some now-unnecessary casts.
27037 (make_memloc): Change 0 to VOIDmode in function call.
27038 * reload1.c (reload): Change 0 to VOIDmode in function call.
27039 (eliminate_regs_1, elimination_effects): Likewise.
27040 (eliminate_regs_in_insn): Likewise.
27041 (emit_input_reload_insns): Add cast to enum type.
27042 (delete_output_reload): Change 0 to VOIDmode in function call.
27043 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
27044 to enum type in function call.
27045 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
27046 (SET_PREDICT_EXPR_OUTCOME): Define.
47f402d1 27047 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
bbbbb16a
ILT
27048 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
27049 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
27050 (dump_function): Likewise.
27051 * tree-dump.h: Update declarations.
27052 * tree-pass.h: Update declarations.
27053 * varasm.c (assemble_integer): Change mclass to enum mode_class.
27054 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
27055 enum type.
27056 (arm_rtx_costs_1): Correct parenthesization.
27057 (arm_rtx_costs): Add casts to enum type.
27058 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
27059 (vfp_emit_fstmd): Use add_rg_note.
27060 (emit_multi_reg_push, emit_sfm): Likewise.
27061 (thumb_set_frame_pointer): Likewise.
27062 (arm_expand_prologue): Likewise.
27063 (arm_regno_class): Change return type to enum reg_class.
27064 (thumb1_expand_prologue): Use add_reg_note.
27065 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
27066 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
27067 in function call.
27068 * config/arm/gentune.sh: Add cast to enum type.
27069 * config/arm/arm-tune.md: Rebuild.
27070 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
27071 (ix86_split_fp_branch, predict_jump): Likewise.
27072 (ix86_expand_multi_arg_builtin): Change sub_code from enum
27073 insn_code to enum rtx_code.
27074 (ix86_builtin_vectorized_function): Add cast to enum type.
27075 * config/i386/i386.md (truncdfsf2): Change slot to enum
27076 ix86_stack_slot.
27077 (truncxf<mode>2, isinf<mode>2): Likewise.
27078 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
27079 enum type.
27080 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
27081 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
27082 (insert_bundle_state): Change 1 to INSERT in function call.
27083 (ia64_add_bundle_selector_before): Likewise.
27084 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
27085 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
27086 (restore_stack_nonlocal): Likewise.
27087 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
27088 function call.
27089 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
27090 function call.
27091 (mips_rtx_costs): Likewise.
27092 (mips_override_options): Add casts to enum type.
27093 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
27094 in function call.
27095 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
27096 (store_reg, set_reg_plus_d): Likewise.
27097 (hppa_expand_prologue, hppa_profile_hook): Likewise.
27098 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
27099 cast to enum type.
27100 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
27101 function call.
27102 (emit_unlikely_jump): Use add_reg_note.
27103 (rs6000_emit_allocate_stack): Likewise.
27104 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
27105 (output_toc): Change 1 to INSERT in function call.
27106 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
27107 (rs6000_initialize_trampoline): Likewise.
27108 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
27109 function call.
27110 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
27111 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
27112 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
27113 (save_gprs): Use add_reg_note.
27114 (s390_emit_prologue): Likewise.
47f402d1 27115 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
bbbbb16a
ILT
27116 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
27117 (sparc_fold_builtin): Add cast to enum type.
27118 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
27119 enum insn_code.
27120 (spu_expand_prologue): Use add_reg_note.
47f402d1 27121 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
bbbbb16a
ILT
27122
271232009-04-20 Ian Lance Taylor <iant@google.com>
27124
27125 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
27126 (c_parser_postfix_expression_after_primary): Get VEC for list of
27127 arguments. Get original types of arguments. Call
27128 build_function_call_vec.
27129 (cached_expr_list_1, cached_expr_list_2): New static variables.
27130 (c_parser_expr_list): Change return type to VEC *. Add
27131 p_orig_types parameter. Change all callers.
27132 (c_parser_release_expr): New static function.
27133 (c_parser_vec_to_tree_list): New static function.
27134 * c-typeck.c (build_function_call): Rewrite to build a VEC and
27135 call build_function_call_vec.
27136 (build_function_call_vec): New function, based on old
27137 build_function_call.
27138 (convert_arguments): Remove nargs and argarray parameters. Change
27139 values to a VEC. Add origtypes parameter.
47f402d1 27140 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
bbbbb16a
ILT
27141 (convert_for_assignment): Add origtype parameter. Change all
27142 callers. If warn_cxx_compat, check for conversion to an enum
27143 type when calling a function.
27144 (store_init_value): Add origtype parameter. Change all callers.
27145 (digest_init): Likewise.
27146 (struct init_node): Add origtype field.
27147 (add_pending_init): Add origtype parameter. Change all callers.
27148 (output_init_element): Likewise.
27149 (output_pending_init_elements): Pass origtype from init_node to
27150 output_init_element.
f28a61ab 27151 (process_init_element): Pass origtype from c_expr to
bbbbb16a
ILT
27152 output_init_element.
27153 (c_finish_return): Add origtype parameter. Change all callers.
27154 * c-common.c (sync_resolve_size): Change params to VEC *. Change
27155 caller.
27156 (sync_resolve_params): Likewise.
47f402d1 27157 (sync_resolve_return): Change params to first_param. Change caller.
bbbbb16a 27158 (resolve_overloaded_builtins): Change params to VEC *. Change
47f402d1 27159 callers. Save first parameter around call to build_function_call_vec.
bbbbb16a
ILT
27160 * c-decl.c (finish_decl): Add origtype parameter. Change all
27161 callers. Call build_function_call_vec rather than
27162 build_function_call for cleanup.
27163 * c-tree.h: Update declarations.
27164 * c-common.h: Update declarations.
27165 * stub-objc.c (objc_rewrite_function_call): Change parameter from
27166 params to first_param.
27167 * target.h (struct gcc_target): Change resolve_overloaded_builtin
27168 params parameter from tree to void *.
27169 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27170 Change arglist parameter to have type void *, and to be a pointer
27171 to a VEC.
27172 * config/rs6000/rs6000-protos.h
27173 (altivec_resolve_overloaded_builtin): Update declaration.
27174 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
27175 fnargs parameter to have type void *, and to be a pointer to a
27176 VEC. Call build_function_call_vec instead of
27177 build_function_call.
47f402d1 27178 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
bbbbb16a 27179
6ff078d4 271802009-04-20 Joey Ye <joey.ye@intel.com>
60839f5d 27181 Xuepeng Guo <xuepeng.guo@intel.com>
6ff078d4
JY
27182 H.J. Lu <hongjiu.lu@intel.com>
27183
27184 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
27185
27186 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
27187 (IX86_LEA_PRIORITY): Likewise.
27188 (distance_non_agu_define): New function.
27189 (distance_agu_use): Likewise.
27190 (ix86_lea_for_add_ok): Likewise.
27191 (ix86_dep_by_shift_count): Likewise.
27192
27193 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
27194 should split for LEA.
27195
27196 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
27197 function.
27198 (ix86_dep_by_shift_count): Likewise.
27199
87a5b4cc
RG
272002009-04-20 Richard Guenther <rguenther@suse.de>
27201
27202 * expr.c (handled_component_p): Move ...
27203 * tree.h (handled_component_p): ... here.
27204 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
27205 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
27206 and REALPART_EXPR to be in one group.
27207
438c239d
RG
272082009-04-20 Richard Guenther <rguenther@suse.de>
27209
27210 * basic-block.h (get_all_dominated_blocks): Declare.
27211 * dominance.c (get_all_dominated_blocks): New function.
27212 * tree-cfg.c (get_all_dominated_blocks): Remove.
27213 (remove_edge_and_dominated_blocks): Adjust.
27214 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
27215 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
27216 instead of recursing.
27217
fed5ae11
DK
272182009-04-20 Doug Kwan <dougkwan@google.com>
27219
27220 * cgraph.h (cgraph_node_ptr): New type for vector functions.
27221 (struct cgraph_node_set_def): New type.
27222 (cgraph_node_set) New type. Also declare vector functions.
27223 (struct cgraph_node_set_element_def): New type.
27224 (cgraph_node_set_element): Ditto.
27225 (cgraph_node_set_iterator): New iterator type.
27226 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
27227 cgraph_node_set_remove, dump_cgraph_node_set,
27228 debug_cgraph_node_set): New prototypes.
27229 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
27230 cgraph_node_set_size): New inlines.
27231 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
27232 including cgraph.h.
27233 (struct ipa_opt_pass): Add struct cgraph_node_set_def
27234 argument to function 'write_summary'.
27235 * ipa.c: Include ggc.h.
27236 (hash_cgraph_node_set_element,
27237 eq_cgraph_node_set_element, cgraph_node_set_new,
27238 cgraph_node_set_add, cgraph_node_set_remove,
27239 cgraph_node_set_find, dump_cgraph_node_set,
27240 debug_cgraph_node_set): New functions.
27241 * Makefile.in (ipa.o): Add dependency on GGC_H.
27242
c4551b28
IR
272432009-04-20 Ira Rosen <irar@il.ibm.com>
27244
27245 PR tree-optimization/39675
2ba9daa7 27246 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
47f402d1
UB
27247 check of the return code of vect_schedule_slp. Check that
27248 stmt_vec_info still exists for the statement, before checking its
27249 vectorization type.
c4551b28 27250
21a495fb
MM
272512009-04-20 Michael Matz <matz@suse.de>
27252
27253 * Makefile.in (generated_files): Take out $(simple_generated_c).
27254
8e208874
DK
272552009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
27256
27257 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
27258 (UINTPTR_TYPE): Likewise.
27259
a45e580b
JM
272602009-04-19 Joseph Myers <joseph@codesourcery.com>
27261
27262 PR c/37481
27263 * c-typeck.c (digest_init): Check for initializing an array with a
27264 string literal.
27265
20845d35
JM
272662009-04-19 Joseph Myers <joseph@codesourcery.com>
27267
27268 PR c/19771
27269 * c-semantics.c (pop_stmt_list): Propagate
27270 STATEMENT_LIST_HAS_LABEL to parent statement list.
27271
28143fdd
AN
272722009-04-19 Adam Nemet <anemet@caviumnetworks.com>
27273
27274 * config/mips/mips.h (mips_tune_attr): New macro.
27275 * config/mips/mips.md (cpu): Use it.
27276
da377db9
JM
272772009-04-19 Joseph Myers <joseph@codesourcery.com>
27278
27279 PR c/38243
27280 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
27281 declaring a tag.
27282
3baf459d
DN
272832009-04-19 Diego Novillo <dnovillo@google.com>
27284
27285 * toplev.c (compile_file): Move call to coverage_finish ...
27286 * cgraphunit.c (ipa_passes): ... here.
27287 Call cgraph_process_new_functions.
27288 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
27289 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
27290
b6fa5b01
JH
272912009-04-19 Jan Hubicka <jh@suse.cz>
27292
47f402d1
UB
27293 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
27294 cfun.
b6fa5b01
JH
27295 (dump_cgraph_node): Dump can throw external flag.
27296 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
27297
ca409efd
MLI
272982009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
27299
27300 PR c/32061
27301 PR c++/36954
27302 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
27303 * common.opt (Wlogical-op): Move from here...
27304 * c.opt (Wlogical-op): ... to here.
27305 * c-typeck.c (parser_build_binary_op): Update call to
27306 warn_logical_operator.
27307 * c-opts.c (c_common_post_options): Enable warn_logical_op with
27308 extra_warnings.
27309 * c-common.c (warn_logical_op): Update.
27310 * c-common.h (warn_logical_op): Update declaration.
27311
9db4cdd3
EB
273122009-04-19 Eric Botcazou <ebotcazou@adacore.com>
27313
27314 * tree.c (protected_set_expr_location): Fix formatting.
27315
f37acdf9
JM
273162009-04-18 Joseph Myers <joseph@codesourcery.com>
27317
27318 PR c/27676
27319 * c-typeck.c (readonly_warning): new.
27320 (build_unary_op, build_modify_expr): Use readonly_warning for
27321 storing into something readonly but not const-qualified.
27322
2b4b7036
JM
273232009-04-18 Joseph Myers <joseph@codesourcery.com>
27324
27325 PR c/22367
27326 * c-typeck.c (build_unary_op): Check for taking address of
27327 expression of type void.
27328
3ce62965
JM
273292009-04-18 Joseph Myers <joseph@codesourcery.com>
27330
27331 PR c/35210
27332 * c-typeck.c (build_function_call): Check for calling a function
27333 with qualified void return types. Call require_complete_type when
27334 generating a trap.
27335
2505c5ed
JH
273362009-04-18 Jan Hubicka <jh@suse.cz>
27337
27338 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
27339 Set nothrow flag.
27340 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
27341 can_throw_external flag.
27342 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
27343 * ipa-pure-const.c (ignore_edge): New function.
27344 (propagate): Compute order for NOTHROW computation; set NOTHROWs
27345 only over can_throw_external edges.
27346 (local_pure_const): Add nothrow flag.
27347 * ipa-utils.c (searchc): Add ignore_edge callback.
27348 (ipa_utils_reduced_inorder): Add ignore_edge callback.
27349 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
27350 (set_nothrow_function_flags): Update cgraph.
27351 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
27352
2586ba4b
RG
273532009-04-18 Richard Guenther <rguenther@suse.de>
27354
27355 PR middle-end/39804
27356 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
27357 (fold_stmt): ... this and ...
27358 (fold_stmt_inplace): ... this.
27359 (fold_stmt_1): Fold references in calls and asms.
27360 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
27361
1eefab17
KH
273622009-04-18 Kazu Hirata <kazu@codesourcery.com>
27363
27364 * tree-vrp.c (ssa_name_nonzero_p): Remove.
27365 * tree.h: Remove the prototype for ssa_name_nonzero_p.
27366
aa424b01
KH
273672009-04-18 Kazu Hirata <kazu@codesourcery.com>
27368
27369 * tree.c (function_args_count): Remove.
27370 * tree.h: Remove the prototype for function_args_count.
27371
613a896b
KH
273722009-04-18 Kazu Hirata <kazu@codesourcery.com>
27373
27374 * tree-iterator.c (expr_only): Remove.
27375 * tree.h: Remove the prototype for expr_only.
27376
579e694c
KH
273772009-04-18 Kazu Hirata <kazu@codesourcery.com>
27378
27379 * reginfo.c (cannot_change_mode_set_regs): Remove.
27380 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
27381
ee7e3ad3
AS
273822009-04-08 Anatoly Sokolov <aesok@post.ru>
27383
27384 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
27385 whether operands 0 and 1 overlaps.
27386
92ef7fb1
MLI
273872009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
27388
27389 PR middle-end/36902
27390 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
27391 pointer. Use warning_at instead of warning.
27392 (search_for_addr_array): Likewise.
27393 (check_array_bounds): Likewise.
27394 (check_all_array_refs): Check that the incoming edge is not in the
27395 list of edges to be removed.
27396 (check_all_array_refs): Avoid the temporal pointer.
27397 (vrp_visit_cond_stmt): Fix typo.
27398 (simplify_switch_using_ranges): Handle the case where the switch
27399 index is an integer constant.
27400
0e097268
AN
274012009-04-18 Adam Nemet <anemet@caviumnetworks.com>
27402
27403 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
27404
c782f1dd
KH
274052009-04-18 Kazu Hirata <kazu@codesourcery.com>
27406
27407 * doc/extend.texi, doc/invoke.texi: Fix typos.
27408
668fb0e8
CC
274092009-04-17 Cary Coutant <ccoutant@google.com>
27410
27411 * tree-flow-inline.h (get_lineno): Fix inverted test.
27412
4d4014c1
DN
274132009-04-17 Diego Novillo <dnovillo@google.com>
27414
27415 * tree-ssa-pre.c (create_expression_by_pieces): Remove
27416 assertion for AVAIL_OUT.
27417
2984e1b6
MF
274182009-04-17 Mike Frysinger <vapier@gentoo.org>
27419
27420 PR target/38627
27421 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
27422 * config/sh/linux-atomic.asm: Likewise.
27423
9994a182
DN
274242009-04-17 Diego Novillo <dnovillo@google.com>
27425
27426 * except.c (debug_eh_tree): New.
27427 (struct eh_region, struct eh_status): Move ...
27428 * except.h: ... here.
27429 (add_type_for_runtime): Declare extern.
27430 (lookup_type_for_runtime): Likewise.
27431 (debug_eh_tree): Declare.
27432 * Makefile.in (GTFILES): List except.h before except.c
27433
07485407
DN
274342009-04-17 Diego Novillo <dnovillo@google.com>
27435
47f402d1 27436 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
07485407
DN
27437 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
27438 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
27439 (find_vars_r): ... here.
27440 * tree-flow.h (find_referenced_vars_in): Declare.
27441 * tree-ssa-pre.c (create_expression_by_pieces): Assert
27442 that AVAIL_OUT exists for BLOCK.
27443 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
27444 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
27445 (tree-parloops.o): Likewise.
27446
4e53d196
SB
274472009-04-17 Simon Baldwin <simonb@google.com>
27448
27449 * toplev.c (default_tree_printer): Add handling for %E format.
27450
413d3aa8
DN
274512009-04-17 Diego Novillo <dnovillo@google.com>
27452
47f402d1
UB
27453 * tree-pretty-print.c (dump_generic_node): Add break after
27454 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
27455 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
27456 FUNCTION_TYPE together. Call print_struct_decl when printing
27457 structures and TDF_SLIM is not given.
413d3aa8
DN
27458 (print_struct_decl): Fix logic for detecting recursion.
27459
5a691e98
RAE
274602009-04-17 Rafael Avila de Espindola <espindola@google.com>
27461
27462 PR 31567
27463 * gcc.c (create_at_file): New.
27464 (compile_input_file_p): New.
27465 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
27466 * main.c (main): Update call to toplev_main.
27467 * toplev.c (toplev_main): Change signature. Call expandargv.
27468 * toplev.h (toplev_main): Change signature.
27469
9eacf7a6
EB
274702009-04-17 Eric Botcazou <ebotcazou@adacore.com>
27471
27472 * dwarf2out.c (field_byte_offset): Use the type size as the field size
27473 if the latter is not constant.
27474
58298177
DE
274752009-04-17 David Edelsohn <edelsohn@gnu.org>
27476
27477 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
27478
5b4c43d7
EB
274792009-04-17 Eric Botcazou <ebotcazou@adacore.com>
27480
27481 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
27482 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
27483
b51605c4
RG
274842009-04-17 Richard Guenther <rguenther@suse.de>
27485
27486 * tree-ssa-structalias.c (get_constraint_for_component_ref):
27487 Handle component references view-converting an invariant address.
27488
9e3be889
AN
274892009-04-17 Adam Nemet <anemet@caviumnetworks.com>
27490
27491 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
27492 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
27493 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
27494 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
27495 Use @deftypevr rather than @deftypevar.
27496
7c3e9dc3
RG
274972009-04-17 Richard Guenther <rguenther@suse.de>
27498
47f402d1 27499 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
7c3e9dc3
RG
27500 (get_prop_source_stmt): Likewise.
27501 (can_propagate_from): Likewise.
27502
aca600aa
AS
275032009-04-17 Andrew Stubbs <ams@codesourcery.com>
27504
27505 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
27506 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
27507 (--with-multilib-list): Add default value.
27508 * configure: Regenerate.
27509 * Makefile.in (TM_ENDIAN_CONFIG): Define.
27510 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
27511 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
27512 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
27513 Don't add default cpu to multilib list unnecessarily, but do enable
27514 the relevant compiler option..
27515 Add support for --with-multilib-list=<blank> and
27516 --with-multilib-list=!<somelib> to supress unwanted multilibs.
27517 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
27518 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
27519 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
27520 TM_MULTILIB_CONFIG.
27521 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
27522 (MULTILIB_OSDIRNAMES): New variable.
27523 * config/sh/t-1e: Delete file.
27524 * config/sh/t-mlib-sh1: Delete file.
27525 * config/sh/t-mlib-sh2: Delete file.
27526 * config/sh/t-mlib-sh2a: Delete file.
27527 * config/sh/t-mlib-sh2a-nofpu: Delete file.
27528 * config/sh/t-mlib-sh2a-single: Delete file.
27529 * config/sh/t-mlib-sh2a-single-only: Delete file.
27530 * config/sh/t-mlib-sh2e: Delete file.
27531 * config/sh/t-mlib-sh3e: Delete file.
27532 * config/sh/t-mlib-sh4: Delete file.
27533 * config/sh/t-mlib-sh4-nofpu: Delete file.
27534 * config/sh/t-mlib-sh4-single: Delete file.
27535 * config/sh/t-mlib-sh4-single-only: Delete file.
27536 * config/sh/t-mlib-sh4a: Delete file.
27537 * config/sh/t-mlib-sh4a-nofpu: Delete file.
27538 * config/sh/t-mlib-sh4a-single: Delete file.
27539 * config/sh/t-mlib-sh4a-single-only: Delete file.
27540 * config/sh/t-mlib-sh4al: Delete file.
27541 * config/sh/t-mlib-sh5-32media: Delete file.
27542 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
27543 * config/sh/t-mlib-sh5-64media: Delete file.
27544 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
27545 * config/sh/t-mlib-sh5-compact: Delete file.
27546 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
27547 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
27548 * doc/install.texi (Options specification): Add
27549 --with-multilib-list and --with-endian.
27550
cf8aba7f
RAE
275512009-04-17 Rafael Avila de Espindola <espindola@google.com>
27552
27553 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
27554 REVISION_c.
27555 (OBJS-common): Add plugin-version.o.
27556 (plugin-version.o): New.
27557 * gcc-plugin.h (plugin_gcc_version): New.
27558 (plugin_default_version_check): New.
27559 (plugin_init_func, plugin_init): Add version argument.
27560 * plugin-version.c: New.
27561 * plugin.c (str_plugin_gcc_version_name): New.
27562 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
27563 pass it to the init function.
27564 (plugin_default_version_check): New.
27565
61e20b90
RG
275662009-04-17 Richard Guenther <rguenther@suse.de>
27567
27568 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
27569 for decl-vs-decl disambiguation.
27570
90c6fd8a
AK
275712009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
27572
27573 * config/s390/s390.h (s390_tune_attr): New macro definition.
27574 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
27575
9fe9fe04
RG
275762009-04-17 Richard Guenther <rguenther@suse.de>
27577
27578 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
27579 (fold_stmt_r): Likewise.
27580 (maybe_fold_reference): New function.
27581 (fold_gimple_assign): Handle cases fold_stmt_r did.
27582 (fold_stmt): Do not use fold_stmt_r.
27583 (fold_stmt_inplace): Likewise.
27584
7e673273
RG
275852009-04-17 Richard Guenther <rguenther@suse.de>
27586
27587 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
27588 (record_equivalences_from_stmt): Remove useless checks and
27589 simplifications.
27590 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
27591 the type is already suitable.
27592
fabf2749
PB
275932009-04-17 Paolo Bonzini <bonzini@gnu.org>
27594
27595 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
27596
68f7b061
UB
275972009-04-17 Uros Bizjak <ubizjak@gmail.com>
27598
27599 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
27600 (CMPtype): Define as __gcc_CMPtype.
27601
532bfb0a
AJ
276022009-04-17 Aurelien Jarno <aurelien@aurel32.net>
27603
27604 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
27605 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
27606
e3ac77ff
RG
276072009-04-17 Richard Guenther <rguenther@suse.de>
27608
27609 PR tree-optimization/39746
27610 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
27611 special-casing for builtins and static variable use/def.
27612 (call_may_clobber_ref_p_1): Likewise.
27613
7072a650
ILT
276142009-04-16 Ian Lance Taylor <iant@google.com>
27615
27616 * df.h: Include "timevar.h".
27617 (struct df_problem): Change tv_id field to timevar_id_t.
27618 * tree-pass.h: Include "timevar.h".
27619 (struct opt_pass): Change tv_id field to timevar_id_t.
27620 * timevar.h (timevar_id_t): Define TV_NONE.
27621 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
27622 TV_NONE rather than tv_id != 0.
27623 (execute_one_pass): Likewise.
27624 * Makefile.in (DF_H): Add $(TIMEVAR_H).
27625 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
27626 dependencies to $(TREE_PASS_H).
27627 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
27628 to TV_NONE.
27629 (pass_branch_target_load_optimize2): Likewise.
27630 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
27631 (pass_outof_cfg_layout_mode): Likewise.
27632 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
27633 (pass_rebuild_cgraph_edges): Likewise.
27634 (pass_remove_cgraph_callee_edges): Likewise.
27635 * df-core.c (pass_df_initialize_opt): Likewise.
27636 (pass_df_initialize_no_opt): Likewise.
27637 (pass_df_finish): Likewise.
27638 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
27639 * except.c (pass_set_nothrow_function_flags): Likewise.
27640 (pass_convert_to_eh_region_ranges): Likewise.
27641 * final.c (pass_compute_alignments): Likewise.
27642 * function.c (pass_instantiate_virtual_regs): Likewise.
27643 (pass_init_function): Likewise.
27644 (pass_leaf_regs): Likewise.
27645 (pass_match_asm_constraints): Likewise.
27646 * gimple-low.c (pass_lower_cf): Likewise.
27647 (pass_mark_used_blocks): Likewise.
27648 * init-regs.c (pass_initialize_regs): Likewise.
27649 * integrate.c (pass_initial_value_sets): Likewise.
27650 * ira.c (pass_ira): Likewise.
27651 * jump.c (pass_cleanup_barriers): Likewise.
27652 * omp-low.c (pass_expand_omp): Likewise.
27653 (pass_lower_omp): Likewise.
27654 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
27655 * recog.c (pass_split_all_insns): Likewise.
27656 (pass_split_after_reload): Likewise.
27657 (pass_split_before_regstack): Likewise.
27658 (pass_split_before_sched2): Likewise.
27659 (pass_split_for_shorten_branches): Likewise.
27660 * reginfo.c (pass_reginfo_init): Likewise.
27661 (pass_subregs_of_mode_init): Likewise.
27662 (pass_subregs_of_mode_finish): Likewise.
27663 * passes.c (pass_postreload): Likewise.
27664 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
27665 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
27666 (pass_warn_function_return): Likewise.
27667 (pass_warn_function_noreturn): Likewise.
27668 * tree-complex.c (pass_lower_complex): Likewise.
27669 (pass_lower_complex_O0): Likewise.
27670 * tree-if-conv.c (pass_if_conversion): Likewise.
27671 * tree-into-ssa.c (pass_build_ssa): Likewise.
27672 * tree-mudflap.c (pass_mudflap_1): Likewise.
27673 (pass_mudflap_2): Likewise.
27674 * tree-nomudflap.c (pass_mudflap_1): Likewise.
27675 (pass_mudflap_2): Likewise.
27676 * tree-nrv.c (pass_return_slot): Likewise.
27677 * tree-object-size.c (pass_object_sizes): Likewise.
27678 * tree-optimize.c (pass_all_optimizations): Likewise.
27679 (pass_early_local_passes): Likewise.
27680 (pass_all_early_optimizations): Likewise.
27681 (pass_cleanup_cfg): Likewise.
27682 (pass_cleanup_cfg_post_optimizing): Likewise.
27683 (pass_free_datastructures): Likewise.
27684 (pass_free_cfg_annotations): Likewise.
27685 (pass_fixup_cfg): Likewise.
27686 (pass_init_datastructures): Likewise.
27687 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
27688 (pass_late_warn_uninitialized): Likewise.
27689 (pass_update_address_taken): Likewise.
27690 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
27691 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
27692 (pass_cse_sincos): Likewise.
27693 (pass_convert_to_rsqrt): Likewise.
27694 * tree-ssa-structalias.c (pass_build_alias): Likewise.
27695 * tree-stdarg.c (pass_stdarg): Likewise.
27696 * tree-tailcall.c (pass_tail_recursion): Likewise.
27697 (pass_tail_calls): Likewise.
27698 * tree-vect-generic.c (pass_lower_vector): Likewise.
27699 (pass_lower_vector_ssa): Likewise.
27700 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
27701
0051ef59
JM
277022009-04-16 Joseph Myers <joseph@codesourcery.com>
27703
27704 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
27705 XLR entry.
27706 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
27707 Handle -march=xlr.
27708 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
27709 logical and signext.
27710
b3f8558a
KK
277112009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
27712
27713 PR target/39767
27714 * config/sh/predicates.md (arith_operand): Check if the operand
27715 of TRUNCATE is a REG.
27716
f57597d9
KH
277172009-04-16 Kazu Hirata <kazu@codesourcery.com>
27718
27719 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
27720 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
27721
b172d063
KH
277222009-04-16 Kazu Hirata <kazu@codesourcery.com>
27723
27724 * tree-iterator.c (tsi_split_statement_list_after,
27725 tsi_split_statement_list_before): Remove.
27726 * tree-iterator.h: Remove the prototypes for
532bfb0a 27727 tsi_split_statement_list_after and tsi_split_statement_list_before.
b172d063 27728
78fe4f1f
KH
277292009-04-16 Kazu Hirata <kazu@codesourcery.com>
27730
27731 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
27732 * tree-ssa-propagate.h: Remove the prototype for
27733 stmt_makes_single_load.
27734
43dd3201
KH
277352009-04-16 Kazu Hirata <kazu@codesourcery.com>
27736
27737 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
27738 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
27739
4252a4aa
KH
277402009-04-16 Kazu Hirata <kazu@codesourcery.com>
27741
27742 * tree-iterator.c (EXPR_LAST_BODY): Remove.
27743
bfb69968
KH
277442009-04-16 Kazu Hirata <kazu@codesourcery.com>
27745
27746 * except.c (eh_region_outer_p): Remove.
27747 * except.h: Remove the prototype for eh_region_outer_p.
27748
c7db7fa5
KH
277492009-04-16 Kazu Hirata <kazu@codesourcery.com>
27750
27751 * function.c (current_function_assembler_name): Remove.
27752 * function.h: Remove the prototype for
27753 current_function_assembler_name.
27754
efc0b2bd
ILT
277552009-04-16 Ian Lance Taylor <iant@google.com>
27756
532bfb0a 27757 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
efc0b2bd
ILT
27758 (add_reg_note): Call alloc_reg_note.
27759 * rtl.h (alloc_reg_note): Declare.
27760 * combine.c (try_combine): Use alloc_reg_note.
27761 (recog_for_combine, move_deaths): Likewise.
27762 (distribute_notes): Use alloc_reg_note and add_reg_note.
27763 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
27764 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
27765 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
27766
6080348f
VM
277672009-04-16 Vladimir Makarov <vmakarov@redhat.com>
27768
27769 PR rtl-optimization/39762
27770 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
27771 ira_may_move_out_cost): Add comments about way of their usage.
532bfb0a 27772 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
2ba9daa7 27773
6080348f
VM
27774 * ira-conflicts.c (process_regs_for_copy): Use function
27775 ira_get_register_move_cost instead of global
27776 ira_register_move_cost.
27777
27778 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
27779 color_pass, move_spill_restore, update_curr_costs): Ditto.
27780
27781 * ira-lives.c (process_single_reg_class_operands): Ditto.
27782
27783 * ira-emit.c (emit_move_list): Ditto.
27784
27785 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
27786 (record_reg_classes): Ditto. Use functions
27787 ira_get_register_move_cost and ira_get_may_move_cost instead of
27788 global vars ira_register_move_cost, ira_may_move_out_cost and
27789 ira_may_move_in_cost.
27790 (record_address_regs): Don't call ira_init_register_move_cost.
27791 Use function ira_get_may_move_cost instead of global
27792 ira_may_move_in_cost.
27793 (process_bb_node_for_hard_reg_moves): Use function
532bfb0a 27794 ira_get_register_move_cost instead of global ira_register_move_cost.
6080348f 27795 (ira_costs): Don't call ira_init_register_move_cost.
2ba9daa7 27796
646bea10
RG
277972009-04-16 Richard Guenther <rguenther@suse.de>
27798
27799 * tree-cfg.c (verify_gimple_assign_binary):
27800 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
27801 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
27802 (create_general_new_stmt): Note that this function is broken.
27803
02e819ff
RAE
278042009-04-16 Rafael Avila de Espindola <espindola@google.com>
27805
27806 * common.opt (fhelp): Add Var(help_flag).
27807 * gcc-plugin.h (plugin_info): Add help.
27808 * plugin.c (plugin_name_args): Add help.
27809 (register_plugin_info): Set plugin->help.
27810 (print_help_one_plugin): New.
27811 (print_plugins_help): New.
27812 * plugin.h (print_plugins_help): New.
27813 * toplev.c (toplev_main): Call print_plugins_help if needed.
27814
ccacdf06
RG
278152009-04-16 Richard Guenther <rguenther@suse.de>
27816
27817 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
27818 (gimple_ior_addresses_taken_1): New function.
27819 (gimple_ior_addresses_taken): Likewise.
27820 * gimple.h (struct gimple_statement_with_ops_base): Remove
27821 addresses_taken member.
27822 (gimple_ior_addresses_taken): Declare.
27823 (gimple_addresses_taken, gimple_addresses_taken_ptr,
27824 gimple_set_addresses_taken): Remove.
27825 * ipa-reference.c (mark_address): New function.
27826 (scan_stmt_for_static_refs): Use it for marking addresses taken.
27827 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
27828 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
27829 (gimple_add_to_addresses_taken): Remove.
27830 (get_tmr_operands): Call mark_address_taken.
27831 (get_asm_expr_operands): Likewise.
27832 (get_expr_operands): Likewise.
27833 (build_ssa_operands): Do not clear the addresses_taken bitmap.
27834 (free_stmt_operands): Do not free it.
27835 * tree-ssa.c (delete_tree_ssa): Likewise.
27836 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
27837
346ef3fa
RG
278382009-04-16 Richard Guenther <rguenther@suse.de>
27839
27840 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
27841 (walk_stmt_load_store_ops): Likewise.
27842 * gimple.c (get_base_loadstore): New function.
27843 (walk_stmt_load_store_addr_ops): Likewise.
27844 (walk_stmt_load_store_ops): Likewise.
27845 * ipa-pure-const.c (check_op): Simplify.
27846 (check_load, check_store): New functions.
27847 (check_stmt): Use walk_stmt_load_store_ops.
27848 * ipa-reference.c (mark_load): Adjust signature.
27849 (mark_store): Likewise.
27850 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
27851
44e9f006
RAE
278522009-04-16 Rafael Avila de Espindola <espindola@google.com>
27853
27854 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
27855 (plugin_info): New.
27856 * opts.c (common_handle_option): Don't call print_version.
27857 * plugin.c (plugin_name_args): Add version.
27858 (register_plugin_info): New.
27859 (register_callback): Handle PLUGIN_INFO.
27860 (try_init_one_plugin): New.
27861 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
27862 if failed to init.
27863 (finalize_one_plugin): New.
27864 (finalize_plugins): New.
27865 (print_one_plugin): New.
27866 (print_plugins_versions): New.
27867 * plugin.h (print_plugins_versions): New.
27868 (finalize_plugins): New.
27869 * toplev.c (compile_file): Don't call initialize_plugins.
27870 (print_version): Call print_plugins_versions.
27871 (toplev_main): Call initialize_plugins. Print version if needed.
27872 Call finalize_plugins.
27873
41fd0f9b
RAE
278742009-04-16 Rafael Avila de Espindola <espindola@google.com>
27875
27876 * common.opt (fversion): New.
27877 * gcc.c (print_version): New.
27878 (process_command): Don't print the version. Just set print_version.
27879 (main): Print version. Call subprocesses if print_version and
27880 verbose_flag are set.
27881 * opts.c (common_handle_option): Handle OPT_fversion.
27882
550918ca 278832009-04-16 Richard Guenther <rguenther@suse.de>
532bfb0a 27884 Ira Rosen <irar@il.ibm.com>
550918ca
RG
27885
27886 PR tree-optimization/39698
27887 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
27888 type of the reduction variable. Only generate the def if
27889 it is needed.
27890
27891 * omp-low.c (expand_omp_for_generic): When converting to a pointer
27892 make sure to first convert to an integer of the same precision.
27893 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
27894 the type of the evolution correctly in computing the new
27895 induction variable base.
27896
54634841
RG
278972009-04-16 Richard Guenther <rguenther@suse.de>
27898
27899 PR middle-end/39625
27900 * tree-cfg.c (make_blocks): Split statements with to-be
27901 abnormal SSA names on the lhs.
27902
b6fc2cdb
PB
279032009-04-16 Paolo Bonzini <bonzini@gnu.org>
27904
27905 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
27906 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
27907 * c-typeck.c (really_start_incremental_init): Likewise.
27908 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
27909 (TARGET_INITIALIZER): Remove it.
27910 * target.h (struct target): Remove vector_opaque_p.
27911 * tree.c (build_opaque_vector_type): New.
27912 * tree.h (TYPE_VECTOR_OPAQUE): New.
27913 (build_opaque_vector_type): Declare.
27914 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
27915 * config/rs6000/rs6000.c (build_opaque_vector_type,
27916 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
27917 (rs6000_init_builtins): Use build_opaque_vector_type for
27918 opaque_V4SI_type_node.
27919
a417cdd9
CM
279202009-04-15 Catherine Moore <clm@codesourcery.com>
27921
532bfb0a
AJ
27922 * debug.h (set_name): Declare.
27923 * dwarf2out.c (dwarf2out_set_name): Declare.
27924 (dwarf2_debug_hooks): Add set_name.
27925 (find_AT_string): New.
27926 (add_AT_string): Call find_AT_string.
27927 (dwarf2out_set_name): New.
27928 * cp/decl.c (grokdeclarator): Call set_name.
27929 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
27930 * debug.c (do_nothing_debug_hooks): Likewise.
27931 * dbxout.c (dbx_debug_hooks): Likewise.
27932 * sdbout.c (sdb_debug_hooks): Likewise.
a417cdd9 27933
60839f5d 279342009-04-15 Michael Eager <eager@eagercon.com>
2c5cac98 27935
532bfb0a
AJ
27936 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
27937 reg for single-precision FPU.
27938 * config/rs6000/rs6000.md (movsi_internal1): Only for
27939 !TARGET_SINGLE_FPU.
27940 (movsi_internal1_single): New. Add pattern to move SI values to/from
2c5cac98
ME
27941 single-precision FP regs.
27942
ada39f0b
RG
279432009-04-15 Richard Guenther <rguenther@suse.de>
27944
27945 * omp-low.c (lower_rec_input_clauses): Build correct address
27946 expressions.
27947 (expand_omp_for_generic): Fix multiplication type.
532bfb0a 27948 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
ada39f0b
RG
27949 (generate_memset_zero): Fix types.
27950 * tree-profile.c (prepare_instrumented_value): Correctly
27951 widen a pointer.
27952
6866c6e8
ILT
279532009-04-15 Ian Lance Taylor <iant@google.com>
27954
27955 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
27956 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
27957 for -Wall and for -Wc++-compat.
27958 (c_common_post_options): For C++, set warn_enum_compare if not
27959 already set.
27960 * c-tree.h (struct c_expr): Add field original_type.
27961 (build_external_ref): Update declaration.
27962 * c-parser.c (c_parser_braced_init): Set original_type.
27963 (c_parser_initelt): Likewise.
27964 (c_parser_expr_no_commas): Likewise.
27965 (c_parser_conditional_expression): Likewise.
27966 (c_parser_cast_expression): Likewise.
27967 (c_parser_unary_expression): Likewise. Pull setting of
27968 original_code to top of function.
27969 (c_parser_sizeof_expression): Set original_type.
27970 (c_parser_alignof_expression): Likewise.
27971 (c_parser_postfix_expression): Likewise. Pull setting of
27972 original_code to top of function.
532bfb0a 27973 (c_parser_postfix_expression_after_paren_type): Set original_type.
6866c6e8
ILT
27974 (c_parser_postfix_expression_after_primary): Likewise.
27975 (c_parser_expression): Likewise.
27976 * c-typeck.c (build_external_ref): Add type parameter. Change all
27977 callers.
27978 (c_expr_sizeof_expr): Set original_type field.
27979 (parser_build_unary_op): Likewise.
27980 (parser_build_binary_op): Likewise. Optionally warn about
27981 comparisons of enums of different types.
27982 (digest_init): Set original_type field.
27983 (really_start_incremental_init): Likewise.
27984 (push_init_level, pop_init_level): Likewise.
27985 * doc/invoke.texi (Warning Options): -Wenum-compare now
27986 supported in C.
27987
f116fecf
RG
279882009-04-15 Richard Guenther <rguenther@suse.de>
27989
27990 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
27991 out a necessary conversion.
27992 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
27993 names we didn't value number.
27994 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
27995
25e20805
RG
279962009-04-15 Richard Guenther <rguenther@suse.de>
27997
27998 PR tree-optimization/39764
27999 * tree-ssa-ccp.c (get_value): Canonicalize value with
28000 canonicalize_float_value.
28001
90cc3676
JH
280022009-04-15 Jan Hubicka <jh@suse.cz>
28003
28004 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
28005 Wrong version of patch.
28006
6d14c006
JH
280072009-04-15 Jan Hubicka <jh@suse.cz>
28008
28009 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
28010
5afaa917
NS
280112009-04-15 Nathan Sidwell <nathan@codesourcery.com>
28012
28013 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
28014 our distinct integral and vector types.
28015
3b482fca
RAE
280162009-04-15 Rafael Avila de Espindola <espindola@google.com>
28017
28018 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
28019 * init.c (build_vtbl_address): Remove call to assemble_external.
28020
6cd1d2e2
DJ
280212009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
28022
28023 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
28024 output for other floating point modes.
28025
dab71827
DN
280262009-04-14 Diego Novillo <dnovillo@google.com>
28027
28028 * diagnostic.c (diagnostic_report_diagnostic): Do not
28029 warn about loaded plugins for DK_ERROR and DK_WARNING.
28030 * c-decl.c (declspecs_add_type): Move call to
28031 invoke_plugin_callbacks ...
28032 * c-parser.c (c_parser_declspecs): ... here.
28033 * plugin.c (dump_active_plugins): Tidy output.
28034
68a607d8
DN
280352009-04-14 Diego Novillo <dnovillo@google.com>
28036 Le-Chun Wu <lcwu@google.com>
28037
28038 * configure.ac: Add --enable-plugin support.
28039 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
28040 * Makefile.in (PLUGIN_H): Define.
28041 Export ENABLE_PLUGIN and GMPINC to site.exp.
28042 Add PLUGINLIBS to link command.
28043 Add/modify dependencies for plugin.o and files including plugin.h.
28044 (plugin.o): New.
28045 * config.in: Regenerate.
2ba9daa7 28046
68a607d8
DN
28047 * opts.c (common_handle_option): Handle OPT_fplugin_ and
28048 OPT_fplugin_arg_.
28049
280502009-04-14 Le-Chun Wu <lcwu@google.com>
28051
28052 * tree-pass.h (register_one_dump_file): Add a prototype for
28053 register_one_dump_file.
28054 * toplev.c (compile_file): Call initialize_plugins.
28055 (do_compile): Call invoke_plugin_callbacks.
28056 (toplev_main): Call invoke_plugin_callbacks.
28057 * common.opt: Add -fplugin= and -fplugin-arg-.
28058 * gcc-plugin.h: New public header file for plugins to include.
28059 * plugin.c: New source file.
28060 * plugin.h: New internal header file.
28061 * passes.c (register_one_dump_file): Make it external.
2ba9daa7 28062
68a607d8
DN
28063 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
28064
280652009-04-14 Diego Novillo <dnovillo@google.com>
28066
28067 * doc/plugins.texi: New.
28068 * doc/gccint.texi: Add reference to Plugins chapter.
28069 * doc/invoke.texi: Document -fplugin and -fplugin-arg
28070 * diagnostic.c (diagnostic_report_diagnostic): Warn about
28071 loaded plugins, if any.
28072 * timevar.def (TV_PLUGIN_INIT): Define.
28073 (TV_PLUGIN_RUN): Define.
28074 * plugin.c: Include timevar.h
28075 (plugins_active_p): New.
28076 (dump_active_plugins): New.
28077 (debug_active_plugins): New.
28078
50617257
JM
280792009-04-14 Joseph Myers <joseph@codesourcery.com>
28080
28081 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
28082 library paths.
28083 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
28084
b32f6fff
KH
280852009-04-14 Kazu Hirata <kazu@codesourcery.com>
28086
28087 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
28088 the same as a minus without a shift.
28089
85d04fa2
NC
280902009-04-14 Nick Clifton <nickc@redhat.com>
28091
28092 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
28093 comparisons with small integers will always produce a short
28094 branch.
28095
e495a0c8
RAE
280962009-04-14 Rafael Avila de Espindola <espindola@google.com>
28097
28098 Merge:
e495a0c8
RAE
28099 2008-12-19 Diego Novillo <dnovillo@google.com>
28100
532bfb0a 28101 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
e495a0c8 28102
ad41bd84 281032009-04-14 Richard Guenther <rguenther@suse.de>
587aa063
RG
28104
28105 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
28106 verification.
28107 (verify_gimple_assign_binary): Likewise. Handle shifts and
28108 rotates correctly.
28109 (verify_gimple_phi): Print the mismatched argument position.
28110 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
28111 Fix types.
28112 (vect_update_init_of_dr): Likewise.
28113 * matrix-reorg.c (transform_access_sites): Do what the
28114 comment suggests.
28115 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
28116
60839f5d 281172009-04-13 Michael Eager <eager@eagercon.com>
9eca1774
ME
28118
28119 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
28120 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
28121 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
2ba9daa7 28122 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
9eca1774
ME
28123 remove duplicate config
28124
b0e2d008
DR
281252009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
28126
28127 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
28128 file_name:line_number type locator of the call site.
2ba9daa7 28129
1244a8b7
VM
281302009-04-13 Vladimir Makarov <vmakarov@redhat.com>
28131
28132 * genautomata.c: Put blank after comma.
28133 (automaton_decls): New.
28134 (struct unit_usage): Add comments to member next.
28135 (store_alt_unit_usage): Keep the list ordered.
28136 (unit_present_on_list_p, equal_alternatives_p): New.
28137 (check_regexp_units_distribution): Check units distribution
28138 correctness correctly.
28139 (main): Don't write automata if error is found. Return correct
28140 exit code.
2ba9daa7 28141
1244a8b7
VM
28142 * config/m68k/cf.md (cfv4_ds): Remove.
28143 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
28144 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
28145
28146 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
28147 power4-load-ext, power4-store, power4-store-update,
28148 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
28149 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
28150 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
28151 power4-sqrt, power4-isync): Modify reservation to make correct
28152 unit distribution to automata.
28153
28154 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
28155 power5-store-update, power5-two, power5-three, power5-lmul,
28156 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
2ba9daa7 28157
f7dd1864
AN
281582009-04-13 Adam Nemet <anemet@caviumnetworks.com>
28159
28160 * except.c (pass_set_nothrow_function_flags): Set name and add
28161 TODO_dump_func.
28162 (set_nothrow_function_flags): Mention in the dump file when
28163 changing a function to nothrow.
28164
59a1171f
OS
281652009-04-13 Ozkan Sezer <sezeroz@gmail.com>
28166
28167 PR/39066
28168 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
28169 instead of unsigned long.
28170
934c2060
RR
281712009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28172
f7dd1864
AN
28173 * config/arm/arm.c (return_used_this_function): Remove.
28174 (arm_output_function_prologue): Remove use of
934c2060 28175 return_used_this_function.
f7dd1864 28176 (output_return_instruction): Replace use of
934c2060
RR
28177 return_used_this_function
28178 by cfun->machine->return_used_this_function.
f7dd1864
AN
28179 (arm_output_epilogue): Likewise.
28180 (arm_output_function_epilogue): Likewise.
28181 (thumb_unexpanded_epilogue): Likewise.
28182 * config/arm/arm.h (struct machine_function):
934c2060 28183 New member return_used_this_function.
f7dd1864 28184
ae5cc016
MM
281852009-04-12 Mark Mitchell <mark@codesourcery.com>
28186
28187 * doc/install.texi: Correct description of default directory for
28188 --with-gxx-include-dir.
28189
a0ce68df 281902009-04-12 Eric Botcazou <ebotcazou@adacore.com>
849d624b
EB
28191
28192 * fold-const.c (build_range_check): Properly deal with enumeral and
28193 boolean base types.
28194
3906a4a1
SB
281952009-04-12 Steven Bosscher <steven@gcc.gnu.org>
28196
28197 * doc/invoke.texi (max_gcse_passes): Remove documentation.
28198 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
28199 * params.h (MAX_GCSE_PASSES): Remove.
28200 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
28201 in sequence. Remove ability to run multiple passes.
28202 (bypass_jumps): Report run as third CPROP pass.
28203
efaadb93
AN
282042009-04-12 Adam Nemet <anemet@caviumnetworks.com>
28205
28206 PR middle-end/39651
28207 * except.c (can_throw_external): Look at each insn in a SEQUENCE
28208 when deciding whether the whole SEQUENCE can throw.
28209
4c48007b
UB
282102009-04-12 Uros Bizjak <ubizjak@gmail.com>
28211
28212 PR target/39740
28213 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
28214 offseted label references.
28215
b4104018
JH
282162009-04-11 Jan Hubicka <jh@suse.cz>
28217
28218 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
28219
32848948
RG
282202009-04-11 Richard Guenther <rguenther@suse.de>
28221
28222 PR middle-end/39732
28223 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
28224 return variables as TREE_ADDRESSABLE.
28225
8810712e
RG
282262009-04-11 Richard Guenther <rguenther@suse.de>
28227
28228 PR tree-optimization/39713
28229 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
28230 reference trees have SSA_NAME operands.
28231
fa78c0c1
RG
282322009-04-11 Richard Guenther <rguenther@suse.de>
28233
28234 PR c/39712
28235 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
28236 address expressions.
28237
4d722130
DK
282382009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
28239
28240 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
28241 match changes in Cygwin 1.7
28242 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
28243 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
28244
567a90f5
PB
282452009-04-10 Paolo Bonzini <bonzini@gnu.org>
28246
28247 PR tree-optimization/39701
28248 * doc/invoke.texi (Optimization Options): Document change in
28249 meaning and initialization of -fdelete-null-pointer-checks.
28250
1ad2f450
L
282512009-04-10 H.J. Lu <hongjiu.lu@intel.com>
28252
28253 PR middle-end/39701
28254 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
28255
28256 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
28257 here.
28258
28259 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
28260
1afc5373
CF
282612009-04-10 Chao-ying Fu <fu@mips.com>
28262
28263 * doc/tm.texi (Instruction Output): Document
28264 TARGET_ASM_FINAL_POSTSCAN_INSN.
28265 * target.h (final_postscan_insn): New field in asm_out.
28266 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
28267 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
28268 * final.c (final_scan_insn): Call
28269 targetm.asm_out.final_postscan_insn after outputting
28270 an asm macro and a normal instruction.
28271
28272 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
28273 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
28274 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
28275 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
28276 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
28277
4d35e75c
PB
282782009-04-10 Paolo Bonzini <bonzini@gnu.org>
28279
28280 PR middle-end/39701
1ad2f450
L
28281 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
28282 variables as non-NULL even with -fdelete-null-pointer-checks.
4d35e75c 28283
62c49b83
L
282842009-04-10 H.J. Lu <hongjiu.lu@intel.com>
28285
28286 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
28287
80558628
L
282882009-04-09 H.J. Lu <hongjiu.lu@intel.com>
28289
28290 PR target/39678
28291 * config/i386/i386.c (classify_argument): Handle SCmode with
28292 (bit_offset % 64) != 0.
28293
8c70d28b
SL
282942009-04-09 Sandra Loosemore <sandra@codesourcery.com>
28295
28296 * doc/invoke.texi (Optimize Options): Add cross-reference to
28297 -Q --help=optimizers examples.
28298
e1ff19bf
BE
282992009-04-10 Ben Elliston <bje@au.ibm.com>
28300
28301 PR target/36800
28302 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
28303 regalign for the reg == fpr and TDmode case.
28304
52daca75
DA
283052009-04-09 David Ayers <ayers@fsfe.org>
28306
28307 PR objc/29200
28308 * objc/objc-act.c (warn_with_method): Remove helper function.
28309 (check_duplicates): Call warning and inform directly.
28310 (really_start_method): Likewise.
28311
b45f0e58
PB
283122009-04-09 Paolo Bonzini <bonzini@gnu.org>
28313
28314 * expmed.c (expand_divmod): Always use a comparison for a division
28315 by a large unsigned integer.
28316
1ad2f450
L
28317 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
28318 for things others than variables or functions as nonzero.
b45f0e58 28319
748086b7
JJ
283202009-04-09 Nick Clifton <nickc@redhat.com>
28321
28322 * unwind-compat.c: Change copyright header to refer to version
28323 3 of the GNU General Public License with version 3.1 of the
28324 GCC Runtime Library Exception and to point readers at the
7a715bba 28325 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
748086b7
JJ
28326 * config/alpha/crtfastmath.c: Likewise.
28327 * config/alpha/linux-unwind.h: Likewise.
28328 * config/alpha/qrnnd.asm: Likewise.
28329 * config/alpha/vms-crt0-64.c: Likewise.
28330 * config/alpha/vms-crt0.c: Likewise.
28331 * config/alpha/vms-dwarf2.asm: Likewise.
28332 * config/alpha/vms-dwarf2eh.asm: Likewise.
28333 * config/alpha/vms-psxcrt0-64.c: Likewise.
28334 * config/alpha/vms-psxcrt0.c: Likewise.
28335 * config/alpha/vms_tramp.asm: Likewise.
28336 * config/arc/initfini.c: Likewise.
28337 * config/arc/lib1funcs.asm: Likewise.
28338 * config/arm/bpabi-v6m.S: Likewise.
28339 * config/arm/bpabi.S: Likewise.
28340 * config/arm/bpabi.c: Likewise.
28341 * config/arm/crti.asm: Likewise.
28342 * config/arm/crtn.asm: Likewise.
28343 * config/arm/ieee754-df.S: Likewise.
28344 * config/arm/ieee754-sf.S: Likewise.
28345 * config/arm/lib1funcs.asm: Likewise.
28346 * config/arm/libunwind.S: Likewise.
28347 * config/arm/linux-atomic.c: Likewise.
28348 * config/arm/mmintrin.h: Likewise.
28349 * config/arm/pr-support.c: Likewise.
28350 * config/arm/unaligned-funcs.c: Likewise.
28351 * config/arm/unwind-arm.c: Likewise.
28352 * config/arm/unwind-arm.h: Likewise.
28353 * config/avr/libgcc.S: Likewise.
28354 * config/bfin/crti.s: Likewise.
28355 * config/bfin/crtlibid.s: Likewise.
28356 * config/bfin/crtn.s: Likewise.
28357 * config/bfin/lib1funcs.asm: Likewise.
28358 * config/bfin/linux-unwind.h: Likewise.
28359 * config/cris/arit.c: Likewise.
28360 * config/cris/cris_abi_symbol.c: Likewise.
28361 * config/darwin-64.c: Likewise.
28362 * config/darwin-crt2.c: Likewise.
28363 * config/darwin-crt3.c: Likewise.
28364 * config/darwin.h: Likewise.
28365 * config/dbxelf.h: Likewise.
28366 * config/dfp-bit.c: Likewise.
28367 * config/dfp-bit.h: Likewise.
28368 * config/elfos.h: Likewise.
28369 * config/fixed-bit.c: Likewise.
28370 * config/fixed-bit.h: Likewise.
28371 * config/fp-bit.c: Likewise.
28372 * config/fp-bit.h: Likewise.
28373 * config/fr30/crti.asm: Likewise.
28374 * config/fr30/crtn.asm: Likewise.
28375 * config/fr30/lib1funcs.asm: Likewise.
28376 * config/freebsd-spec.h: Likewise.
28377 * config/frv/cmovd.c: Likewise.
28378 * config/frv/cmovh.c: Likewise.
28379 * config/frv/cmovw.c: Likewise.
28380 * config/frv/frvbegin.c: Likewise.
28381 * config/frv/frvend.c: Likewise.
28382 * config/frv/lib1funcs.asm: Likewise.
28383 * config/glibc-stdint.h: Likewise.
28384 * config/h8300/clzhi2.c: Likewise.
28385 * config/h8300/crti.asm: Likewise.
28386 * config/h8300/crtn.asm: Likewise.
28387 * config/h8300/ctzhi2.c: Likewise.
28388 * config/h8300/fixunssfsi.c: Likewise.
28389 * config/h8300/lib1funcs.asm: Likewise.
28390 * config/h8300/parityhi2.c: Likewise.
28391 * config/h8300/popcounthi2.c: Likewise.
28392 * config/i386/ammintrin.h: Likewise.
28393 * config/i386/att.h: Likewise.
28394 * config/i386/avxintrin.h: Likewise.
28395 * config/i386/biarch64.h: Likewise.
28396 * config/i386/bmmintrin.h: Likewise.
28397 * config/i386/cpuid.h: Likewise.
28398 * config/i386/cross-stdarg.h: Likewise.
28399 * config/i386/crtfastmath.c: Likewise.
28400 * config/i386/crtprec.c: Likewise.
28401 * config/i386/cygming-crtbegin.c: Likewise.
28402 * config/i386/cygming-crtend.c: Likewise.
28403 * config/i386/cygwin.asm: Likewise.
28404 * config/i386/emmintrin.h: Likewise.
28405 * config/i386/gmm_malloc.h: Likewise.
28406 * config/i386/gthr-win32.c: Likewise.
28407 * config/i386/i386.h: Likewise.
28408 * config/i386/immintrin.h: Likewise.
28409 * config/i386/linux-unwind.h: Likewise.
28410 * config/i386/linux64.h: Likewise.
28411 * config/i386/mm3dnow.h: Likewise.
28412 * config/i386/mmintrin-common.h: Likewise.
28413 * config/i386/mmintrin.h: Likewise.
28414 * config/i386/nmmintrin.h: Likewise.
28415 * config/i386/pmm_malloc.h: Likewise.
28416 * config/i386/pmmintrin.h: Likewise.
28417 * config/i386/smmintrin.h: Likewise.
28418 * config/i386/sol2-c1.asm: Likewise.
28419 * config/i386/sol2-ci.asm: Likewise.
28420 * config/i386/sol2-cn.asm: Likewise.
28421 * config/i386/sol2-gc1.asm: Likewise.
28422 * config/i386/tmmintrin.h: Likewise.
28423 * config/i386/unix.h: Likewise.
28424 * config/i386/w32-unwind.h: Likewise.
28425 * config/i386/wmmintrin.h: Likewise.
28426 * config/i386/x86-64.h: Likewise.
28427 * config/i386/x86intrin.h: Likewise.
28428 * config/i386/xmmintrin.h: Likewise.
28429 * config/ia64/crtbegin.asm: Likewise.
28430 * config/ia64/crtend.asm: Likewise.
28431 * config/ia64/crtfastmath.c: Likewise.
28432 * config/ia64/crti.asm: Likewise.
28433 * config/ia64/crtn.asm: Likewise.
28434 * config/ia64/fde-glibc.c: Likewise.
28435 * config/ia64/lib1funcs.asm: Likewise.
28436 * config/ia64/linux-unwind.h: Likewise.
28437 * config/ia64/quadlib.c: Likewise.
28438 * config/ia64/unwind-ia64.c: Likewise.
28439 * config/linux.h: Likewise.
28440 * config/m32c/m32c-lib1.S: Likewise.
28441 * config/m32c/m32c-lib2-trapv.c: Likewise.
28442 * config/m32c/m32c-lib2.c: Likewise.
28443 * config/m32r/initfini.c: Likewise.
28444 * config/m68hc11/larith.asm: Likewise.
28445 * config/m68hc11/m68hc11-crt0.S: Likewise.
28446 * config/m68k/cf.md: Likewise.
28447 * config/m68k/crti.s: Likewise.
28448 * config/m68k/crtn.s: Likewise.
28449 * config/m68k/lb1sf68.asm: Likewise.
28450 * config/m68k/linux-unwind.h: Likewise.
28451 * config/mcore/crti.asm: Likewise.
28452 * config/mcore/crtn.asm: Likewise.
28453 * config/mcore/lib1.asm: Likewise.
28454 * config/mips/linux-unwind.h: Likewise.
28455 * config/mips/loongson.h: Likewise.
28456 * config/mips/mips16.S: Likewise.
28457 * config/mmix/crti.asm: Likewise.
28458 * config/mmix/crtn.asm: Likewise.
28459 * config/pa/fptr.c: Likewise.
28460 * config/pa/hpux-unwind.h: Likewise.
28461 * config/pa/lib2funcs.asm: Likewise.
28462 * config/pa/linux-atomic.c: Likewise.
28463 * config/pa/linux-unwind.h: Likewise.
28464 * config/pa/milli64.S: Likewise.
28465 * config/pa/quadlib.c: Likewise.
28466 * config/pa/stublib.c: Likewise.
28467 * config/picochip/libgccExtras/adddi3.asm: Likewise.
28468 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
28469 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
28470 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
28471 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
28472 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
28473 * config/picochip/libgccExtras/divmod15.asm: Likewise.
28474 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
28475 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
28476 * config/picochip/libgccExtras/longjmp.asm: Likewise.
28477 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
28478 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
28479 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
28480 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
28481 * config/picochip/libgccExtras/setjmp.asm: Likewise.
28482 * config/picochip/libgccExtras/subdi3.asm: Likewise.
28483 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
28484 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
28485 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
28486 * config/rs6000/750cl.h: Likewise.
28487 * config/rs6000/altivec.h: Likewise.
28488 * config/rs6000/biarch64.h: Likewise.
28489 * config/rs6000/crtresfpr.asm: Likewise.
28490 * config/rs6000/crtresgpr.asm: Likewise.
28491 * config/rs6000/crtresxfpr.asm: Likewise.
28492 * config/rs6000/crtresxgpr.asm: Likewise.
28493 * config/rs6000/crtsavfpr.asm: Likewise.
28494 * config/rs6000/crtsavgpr.asm: Likewise.
28495 * config/rs6000/darwin-asm.h: Likewise.
28496 * config/rs6000/darwin-fallback.c: Likewise.
28497 * config/rs6000/darwin-fpsave.asm: Likewise.
28498 * config/rs6000/darwin-ldouble.c: Likewise.
28499 * config/rs6000/darwin-tramp.asm: Likewise.
28500 * config/rs6000/darwin-unwind.h: Likewise.
28501 * config/rs6000/darwin-vecsave.asm: Likewise.
28502 * config/rs6000/darwin-world.asm: Likewise.
28503 * config/rs6000/e500crtres32gpr.asm: Likewise.
28504 * config/rs6000/e500crtres64gpr.asm: Likewise.
28505 * config/rs6000/e500crtres64gprctr.asm: Likewise.
28506 * config/rs6000/e500crtrest32gpr.asm: Likewise.
28507 * config/rs6000/e500crtrest64gpr.asm: Likewise.
28508 * config/rs6000/e500crtresx32gpr.asm: Likewise.
28509 * config/rs6000/e500crtresx64gpr.asm: Likewise.
28510 * config/rs6000/e500crtsav32gpr.asm: Likewise.
28511 * config/rs6000/e500crtsav64gpr.asm: Likewise.
28512 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
28513 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
28514 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
28515 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
28516 * config/rs6000/eabi-ci.asm: Likewise.
28517 * config/rs6000/eabi-cn.asm: Likewise.
28518 * config/rs6000/eabi.asm: Likewise.
28519 * config/rs6000/linux-unwind.h: Likewise.
28520 * config/rs6000/linux64.h: Likewise.
28521 * config/rs6000/paired.h: Likewise.
28522 * config/rs6000/paired.md: Likewise.
28523 * config/rs6000/ppc64-fp.c: Likewise.
28524 * config/rs6000/ppu_intrinsics.h: Likewise.
28525 * config/rs6000/rs6000.h: Likewise.
28526 * config/rs6000/si2vmx.h: Likewise.
28527 * config/rs6000/sol-ci.asm: Likewise.
28528 * config/rs6000/sol-cn.asm: Likewise.
28529 * config/rs6000/spe.h: Likewise.
28530 * config/rs6000/spu2vmx.h: Likewise.
28531 * config/rs6000/sysv4.h: Likewise.
28532 * config/rs6000/tramp.asm: Likewise.
28533 * config/rs6000/vec_types.h: Likewise.
28534 * config/s390/linux-unwind.h: Likewise.
28535 * config/s390/tpf-unwind.h: Likewise.
28536 * config/score/crti.asm: Likewise.
28537 * config/score/crtn.asm: Likewise.
28538 * config/sh/crt1.asm: Likewise.
28539 * config/sh/crti.asm: Likewise.
28540 * config/sh/crtn.asm: Likewise.
28541 * config/sh/divtab-sh4-300.c: Likewise.
28542 * config/sh/divtab-sh4.c: Likewise.
28543 * config/sh/divtab.c: Likewise.
28544 * config/sh/lib1funcs-4-300.asm: Likewise.
28545 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
28546 * config/sh/lib1funcs.asm: Likewise.
28547 * config/sh/lib1funcs.h: Likewise.
28548 * config/sh/linux-atomic.asm: Likewise.
28549 * config/sh/linux-unwind.h: Likewise.
28550 * config/sh/shmedia.h: Likewise.
28551 * config/sh/sshmedia.h: Likewise.
28552 * config/sh/ushmedia.h: Likewise.
28553 * config/sparc/crtfastmath.c: Likewise.
28554 * config/sparc/linux-unwind.h: Likewise.
28555 * config/sparc/sol2-c1.asm: Likewise.
28556 * config/sparc/sol2-ci.asm: Likewise.
28557 * config/sparc/sol2-cn.asm: Likewise.
28558 * config/spu/divmodti4.c: Likewise.
28559 * config/spu/divv2df3.c: Likewise.
28560 * config/spu/float_disf.c: Likewise.
28561 * config/spu/float_unsdidf.c: Likewise.
28562 * config/spu/float_unsdisf.c: Likewise.
28563 * config/spu/float_unssidf.c: Likewise.
28564 * config/spu/mfc_multi_tag_release.c: Likewise.
28565 * config/spu/mfc_multi_tag_reserve.c: Likewise.
28566 * config/spu/mfc_tag_release.c: Likewise.
28567 * config/spu/mfc_tag_reserve.c: Likewise.
28568 * config/spu/mfc_tag_table.c: Likewise.
28569 * config/spu/multi3.c: Likewise.
28570 * config/spu/spu_internals.h: Likewise.
28571 * config/spu/spu_intrinsics.h: Likewise.
28572 * config/spu/spu_mfcio.h: Likewise.
28573 * config/spu/vec_types.h: Likewise.
28574 * config/spu/vmx2spu.h: Likewise.
28575 * config/stormy16/stormy16-lib2.c: Likewise.
28576 * config/svr4.h: Likewise.
28577 * config/sync.c: Likewise.
28578 * config/v850/lib1funcs.asm: Likewise.
28579 * config/vxlib-tls.c: Likewise.
28580 * config/vxlib.c: Likewise.
28581 * config/vxworks-dummy.h: Likewise.
28582 * config/xtensa/crti.asm: Likewise.
28583 * config/xtensa/crtn.asm: Likewise.
28584 * config/xtensa/ieee754-df.S: Likewise.
28585 * config/xtensa/ieee754-sf.S: Likewise.
28586 * config/xtensa/lib1funcs.asm: Likewise.
28587 * config/xtensa/lib2funcs.S: Likewise.
28588 * config/xtensa/linux-unwind.h: Likewise.
28589 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
28590 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
28591 * coretypes.h: Likewise.
28592 * crtstuff.c: Likewise.
28593 * defaults.h: Likewise.
28594 * dwarf2.h: Likewise.
28595 * emutls.c: Likewise.
28596 * gbl-ctors.h: Likewise.
28597 * gcov-io.h: Likewise.
28598 * ginclude/float.h: Likewise.
28599 * ginclude/iso646.h: Likewise.
28600 * ginclude/stdarg.h: Likewise.
28601 * ginclude/stdbool.h: Likewise.
28602 * ginclude/stddef.h: Likewise.
28603 * ginclude/stdfix.h: Likewise.
28604 * ginclude/stdint-gcc.h: Likewise.
28605 * ginclude/tgmath.h: Likewise.
28606 * gthr-aix.h: Likewise.
28607 * gthr-dce.h: Likewise.
28608 * gthr-gnat.c: Likewise.
28609 * gthr-gnat.h: Likewise.
28610 * gthr-lynx.h: Likewise.
28611 * gthr-mipssde.h: Likewise.
28612 * gthr-nks.h: Likewise.
28613 * gthr-posix.c: Likewise.
28614 * gthr-posix.h: Likewise.
28615 * gthr-posix95.h: Likewise.
28616 * gthr-rtems.h: Likewise.
28617 * gthr-single.h: Likewise.
28618 * gthr-solaris.h: Likewise.
28619 * gthr-tpf.h: Likewise.
28620 * gthr-vxworks.h: Likewise.
28621 * gthr-win32.h: Likewise.
28622 * gthr.h: Likewise.
28623 * libgcc2.c: Likewise.
28624 * libgcc2.h: Likewise.
28625 * libgcov.c: Likewise.
28626 * tsystem.h: Likewise.
28627 * typeclass.h: Likewise.
28628 * unwind-c.c: Likewise.
28629 * unwind-compat.h: Likewise.
28630 * unwind-dw2-fde-compat.c: Likewise.
28631 * unwind-dw2-fde-darwin.c: Likewise.
28632 * unwind-dw2-fde-glibc.c: Likewise.
28633 * unwind-dw2-fde.c: Likewise.
28634 * unwind-dw2-fde.h: Likewise.
28635 * unwind-dw2.c: Likewise.
28636 * unwind-dw2.h: Likewise.
28637 * unwind-generic.h: Likewise.
28638 * unwind-pe.h: Likewise.
28639 * unwind-sjlj.c: Likewise.
28640 * unwind.inc: Likewise.
28641 * config/arm/neon-gen.ml: Change generated copyright header to
28642 refer to version 3 of the GNU General Public License with
28643 version 3.1 of the GCC Runtime Library Exception and to point
28644 readers at the COPYING3 and COPYING3.RUNTIME files and the
28645 FSF's license web page.
28646 * config/arm/arm_neon.h: Regenerate.
28647
286482009-04-09 Jakub Jelinek <jakub@redhat.com>
28649
28650 * config/cris/cris.md: Change copyright header to refer to version
28651 3 of the GNU General Public License.
28652 * doc/install.texi2html: Change copyright header to refer to version
28653 3 of the GNU General Public License and to point readers at the
28654 COPYING3 file and the FSF's license web page.
28655 * config/vax/linux.h: Likewise.
28656
4a77c72b
PB
286572009-04-09 Paolo Bonzini <bonzini@gnu.org>
28658
1ad2f450
L
28659 * config/i386/i386.md (cmpcc): New.
28660 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
28661 (sync_compare_and_swap_cc*): Delete.
28662
28663 * config/s390/s390.c (s390_compare_emitted): Remove.
28664 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
28665 s390_compare_emitted used to be handled. Assert that modes match.
28666 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
28667 refer to sync_compare_and_swap_ccsi.
28668 * config/s390/s390.h (s390_compare_emitted): Remove.
28669 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
28670 instead of s390_compare_emitted.
28671 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
28672 instead of s390_compare_emitted.
28673 * config/s390/s390.md (cmpcc): New.
28674 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
28675 CC_REGNUM, do not pretend it's set.
28676 (sync_compare_and_swap_cc*): Delete.
28677 * config/s390/predicates.md (cc_reg_operand): New.
28678
28679 * expr.c (sync_compare_and_swap_cc): Delete.
28680 * optabs.h (sync_compare_and_swap_cc): Delete.
28681 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
28682 is being used with can_compare_p.
28683 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
28684 (find_cc_set): New.
28685 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
28686 look for a MODE_CC set instead. Use emit_store_flag.
28687 (expand_compare_and_swap_loop): Likewise, with some additional
28688 complication to avoid a force_reg when useless. Use
28689 emit_cmp_and_jump_insns.
28690 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
28691 * doc/md.texi (sync_compare_and_swap_cc): Merge with
28692 sync_compare_and_swap documentation.
4a77c72b 28693
0c0efb33
JH
286942009-04-09 Jan Hubicka <jh@suse.cz>
28695
28696 * except.c (find_prev_try): Break out from ....
28697 (duplicate_eh_regions): ... here; properly update prev_try pointers
28698 when duplication part of tree.
28699 (dump_eh_tree): Improve dumping.
28700 (verify_eh_region): New.
28701 (verify_eh_tree): Use it.
28702
22a65a54
RG
287032009-04-06 Richard Guenther <rguenther@suse.de>
28704
28705 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
28706 &ARRAY addresses by adjusting their types and prepending
28707 a conversion.
28708 * tree-cfg.c (verify_gimple_assign_single): Verify that
28709 addresses are correct.
28710
f76968e6
RG
287112009-04-09 Richard Guenther <rguenther@suse.de>
28712
28713 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
28714 indices into an array reference if possible.
28715 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
28716 Fold POINTER_PLUS_EXPR statements with invariant address.
28717
c90c5fb5
AM
287182009-04-09 Alan Modra <amodra@bigpond.net.au>
28719
28720 PR target/39634
28721 * config.gcc (powerpc64-*-linux*): Always build biarch.
28722
17cede2e
JM
287232009-04-09 Joseph Myers <joseph@codesourcery.com>
28724
28725 PR c/39613
28726 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
28727 it and pedwarn if this results in an INTEGER_CST.
28728
a3337ea2
KG
287292009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28730
28731 * doc/install.texi: Update minimum GMP version. Remove obsolete
28732 text in MPFR section.
28733
ce9ba79b
JJ
287342009-04-08 Jakub Jelinek <jakub@redhat.com>
28735
28736 * dwarf2out.c (class_scope_p): New static inline.
28737 (class_or_namespace_scope_p): Use it.
28738 (gen_variable_die): Use DW_TAG_member tag for static data member
28739 declarations instead of DW_TAG_variable.
28740
4f0ae266
JJ
28741 PR middle-end/39573
28742 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
28743 variables.
28744
d27f0ddc
RG
287452009-04-08 Richard Guenther <rguenther@suse.de>
28746
28747 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
28748 valueize random data.
28749
557cc596
DE
287502009-04-08 David Edelsohn <edelsohn@gnu.org>
28751
28752 * config.gcc (aix tm_file): Add aix-stdint.h.
28753 (aix tm clause use_gcc_stdint): Set to wrap.
28754 * config/rs6000/aix-stdint.h: New file.
2ba9daa7 28755
75ccc1e7
RG
287562009-04-08 Richard Guenther <rguenther@suse.de>
28757
28758 PR middle-end/36291
28759 * tree-dfa.c (add_referenced_var): Do not recurse into
28760 global initializers.
28761 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
28762 exposed variables.
28763 (fold_const_aggregate_ref): Likewise.
28764
c6963675
PB
287652009-04-08 Paolo Bonzini <bonzini@gnu.org>
28766
6c44cf79
L
28767 * recog.c (ordered_comparison_operator): New.
28768 * gensupport.c (std_preds): Add it.
c6963675
PB
28769 * doc/md.texi (Machine-Independent Predicates): Document it.
28770
6d07ad98
JH
287712009-04-08 Jan Hubicka <jh@suse.cz>
28772
28773 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
28774 * function.h (rtl_eh): Remove exception_handler_label_map.
28775 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
28776 remove_exception_handler_label, for_each_eh_label_1): Remove.
28777 (rtl_remove_unreachable_regions): Remove.
28778 (convert_from_eh_region_ranges): Do not remove unreachable regions.
28779 (find_exception_handler_labels): Don't build the hashtable.
28780 (maybe_remove_eh_handler): Remove.
28781 (for_each_eh_label): Rewrite to walk the tree.
28782 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
28783 * except.h (maybe_remove_eh_handler): Remove.
28784 * passes.c (init_optimization_passes): Schedule second EH cleanup
28785 before out-of-ssa.
28786 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
28787 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
28788
7ddf71e3
PB
287892009-04-08 Paolo Bonzini <bonzini@gnu.org>
28790
28791 * genoutput.c (validate_optab_operands): New.
28792 (gen_insn, gen_expand): Call it.
28793
28794 * genflags.c (gen_insn): Detect misused iterators.
28795 (main): Pass line_no to gen_insn, exit with status 1 on error.
28796
28797 * genextract.c (line_no): Make global.
28798 (VEC_safe_set_locstr): Change assertion to error message.
28799 (main): Exit with status 1 on error.
28800
4d84fe7c
JM
288012009-04-08 Joseph Myers <joseph@codesourcery.com>
28802
28803 PR c/39614
28804 PR c/39673
28805 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
28806 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
28807 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
28808 * c-convert.c (convert): Do not call fold on results of conversion
28809 functions when the result is a C_MAYBE_CONST_EXPR.
28810 * c-parser.c (c_parser_postfix_expression): Do not fold condition
28811 of __builtin_choose_expr.
28812 * c-typeck.c (remove_c_maybe_const_expr): New.
28813 (build_unary_op, build_conditional_expr, build_compound_expr,
28814 build_binary_op, c_objc_common_truthvalue_conversion): Call
28815 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
28816 integer operands.
28817
60839f5d 288182009-04-08 Bingfeng Mei <bmei@broadcom.com>
d1d1c602 28819
2ba9daa7 28820 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
6c44cf79 28821 CODE to produce a new one. Add a prototype to use fold_convert_const
d1d1c602 28822
8e481a2c
DS
288232009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
28824
28825 PR bootstrap/39660
28826 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
28827 mix declarations and code.
28828
ee618c17
BE
288292009-04-08 Ben Elliston <bje@au.ibm.com>
28830
28831 * gcc.c: Replace `CC' with `GCC' throughout.
28832
f2a758a2
L
288332009-04-07 H.J. Lu <hongjiu.lu@intel.com>
28834
28835 * doc/invoke.texi: Document Atom support.
28836
6ea2bd47
JM
288372009-04-07 Jason Merrill <jason@redhat.com>
28838
28839 PR c++/25185
28840 * c-common.h, c-common.c: Add flag_pretty_templates.
28841 * c-opts.c (c_common_handle_option): Set it.
28842 * c.opt: Add -fno-pretty-templates.
28843 * doc/invoke.texi (C++ Dialect Options): Likewise.
28844
fcb82ab0
UB
288452009-04-07 Uros Bizjak <ubizjak@gmail.com>
28846
28847 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
28848 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
28849 (ia64_expand_builtin): Likewise.
28850
dc5e7298
MJ
288512009-04-07 Martin Jambor <mjambor@suse.cz>
28852
28853 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
28854 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
28855 ADDR_EXPRS are include too.
28856
0609b355
RG
288572009-04-07 Richard Guenther <rguenther@suse.de>
28858
28859 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
28860 decls are only used if passes as parameters or if they are
28861 local statics and the call is not to a builtin.
28862 (call_may_clobber_ref_p_1): Likewise.
28863
d8e535fa
PB
288642009-04-07 Paolo Bonzini <bonzini@gnu.org>
28865
28866 * expr.c (do_store_flag): Remove last argument. Simplify code
28867 to avoid duplication of tests already done by can_compare_p.
28868 (expand_expr_real_1): Adjust caller.
28869
c3c64f50
PB
288702009-04-07 Paolo Bonzini <bonzini@gnu.org>
28871
fcb82ab0
UB
28872 * optabs.c (can_compare_p): Test the predicate of a
28873 cbranch and cstore pattern.
c3c64f50 28874
9a53bc17
PB
288752009-04-07 Paolo Bonzini <bonzini@gnu.org>
28876
fcb82ab0
UB
28877 * expr.c (convert_move): Use emit_store_flag instead of
28878 "emulating" it.
9a53bc17 28879
67b8f1c1
PB
288802009-04-07 Paolo Bonzini <bonzini@gnu.org>
28881
fcb82ab0
UB
28882 * config/i386/i386.c (ix86_compare_emitted): Remove.
28883 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
28884 ix86_compare_op0 like ix86_compare_emitted used to be handled.
28885 * config/i386/i386.h (ix86_compare_emitted): Remove.
28886 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
28887 instead of ix86_compare_emitted.
28888 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
67b8f1c1 28889
44509946
AS
288902009-04-07 Andrew Stubbs <ams@codesourcery.com>
28891
28892 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
28893 Add t-sysroot-suffix to tmake_file.
28894 * config/print-sysroot-suffix.sh: New file.
28895 * config/t-sysroot-suffix: New file.
28896
ca22d882
BE
288972009-04-07 Ben Elliston <bje@au.ibm.com>
28898
28899 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
28900 as the latter produces a warning when the target does not support
28901 infinity.
28902
95aac11b
BE
289032009-04-07 Ben Elliston <bje@au.ibm.com>
28904
28905 * dfp.c: Replace type punning assignments with memcpy throughout.
28906 * Makefile.in (dfp.o-warn): Remove.
2ba9daa7 28907
633dd061
AM
289082009-04-07 Alan Modra <amodra@bigpond.net.au>
28909
28910 PR target/39634
28911 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
28912 Include soft-fp/t-softfp after rs6000/t-linux64.
28913
fe0a25ec
EB
289142009-04-06 Eric Botcazou <ebotcazou@adacore.com>
28915
28916 * stor-layout.c (set_sizetype): Use the full precision of their
28917 machine mode for bitsize types.
28918
0c011bc3
L
289192009-04-06 H.J. Lu <hongjiu.lu@intel.com>
28920
28921 * config/i386/i386.md: Revert 2 accidental checkins.
28922
b6837b94 289232009-04-06 Joey Ye <joey.ye@intel.com>
60839f5d 28924 Xuepeng Guo <xuepeng.guo@intel.com>
b6837b94
JY
28925 H.J. Lu <hongjiu.lu@intel.com>
28926
28927 Atom pipeline model, tuning and insn selection.
28928 * config.gcc (atom): Add atom config options and target.
28929
28930 * config/i386/atom.md: New.
28931
28932 * config/i386/i386.c (atom_cost): New cost.
28933 (m_ATOM): New macro flag.
28934 (initial_ix86_tune_features): Set m_ATOM.
28935 (x86_accumulate_outgoing_args): Likewise.
28936 (x86_arch_always_fancy_math_387): Likewise.
28937 (processor_target): Add Atom cost.
28938 (cpu_names): Add Atom cpu name.
28939 (override_options): Set Atom ISA.
28940 (ix86_issue_rate): New case PROCESSOR_ATOM.
28941 (ix86_adjust_cost): Likewise.
28942
28943 * config/i386/i386.h (TARGET_ATOM): New target macro.
28944 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
28945 (TARGET_OPT_AGU): New target option.
28946 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
28947 (processor_type): Add PROCESSOR_ATOM.
28948
28949 * config/i386/i386.md (cpu): Add new value "atom".
28950 (use_carry, movu): New attr.
28951 (atom.md): Include atom.md.
28952 (adddi3_carry_rex64): Set attr "use_carry".
28953 (addqi3_carry): Likewise.
28954 (addhi3_carry): Likewise.
28955 (addsi3_carry): Likewise.
28956 (*addsi3_carry_zext): Likewise.
28957 (subdi3_carry_rex64): Likewise.
28958 (subqi3_carry): Likewise.
28959 (subhi3_carry): Likewise.
28960 (subsi3_carry): Likewise.
28961 (x86_movdicc_0_m1_rex64): Likewise.
28962 (*x86_movdicc_0_m1_se): Likewise.
28963 (x86_movsicc_0_m1): Likewise.
28964 (*x86_movsicc_0_m1_se): Likewise.
28965 (*adddi_1_rex64): Emit add insn as much as possible.
28966 (*addsi_1): Likewise.
28967 (return_internal): Set atom_unit.
28968 (return_internal_long): Likewise.
28969 (return_pop_internal): Likewise.
28970 (*rcpsf2_sse): Set atom_sse_attr attr.
28971 (*qrt<mode>2_sse): Likewise.
28972 (*prefetch_sse): Likewise.
28973
28974 * config/i386/i386-c.c (ix86_target_macros_internal): New case
28975 PROCESSOR_ATOM.
28976 (ix86_target_macros_internal): Likewise.
28977
28978 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
28979 (*prefetch_sse_rex): Likewise.
28980 (sse_rcpv4sf2): Likewise.
28981 (sse_vmrcpv4sf2): Likewise.
28982 (sse_sqrtv4sf2): Likewise.
28983 (<sse>_vmsqrt<mode>2): Likewise.
28984 (sse_ldmxcsr): Likewise.
28985 (sse_stmxcsr): Likewise.
28986 (*sse_sfence): Likewise.
28987 (sse2_clflush): Likewise.
28988 (*sse2_mfence): Likewise.
28989 (*sse2_lfence): Likewise.
28990 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
28991 (<sse>_movup<ssemodesuffixf2c>): Likewise.
28992 (avx_movdqu<avxmodesuffix>): Likewise.
28993 (avx_lddqu<avxmodesuffix>): Likewise.
28994 (sse2_movntv2di): Change attr "type" to "ssemov".
28995 (sse2_movntsi): Likewise.
28996 (rsqrtv8sf2): Change attr "type" to "sseadd".
28997 (sse3_addsubv2df3): Set attr "atom_unit".
28998 (sse3_h<plusminus_insn>v4sf3): Likewise.
28999 (*sse2_pmaddwd): Likewise.
29000 (*vec_extractv2di_1_rex64): Likewise.
29001 (*vec_extractv2di_1_avx): Likewise.
29002 (sse2_psadbw): Likewise.
29003 (ssse3_phaddwv8hi3): Likewise.
29004 (ssse3_phaddwv4hi3): Likewise.
29005 (ssse3_phadddv4si3): Likewise.
29006 (ssse3_phadddv2si3): Likewise.
29007 (ssse3_phaddswv8hi3): Likewise.
29008 (ssse3_phaddswv4hi3): Likewise.
29009 (ssse3_phsubwv8hi3): Likewise.
29010 (ssse3_phsubwv4hi3): Likewise.
29011 (ssse3_phsubdv4si3): Likewise.
29012 (ssse3_phsubdv2si3): Likewise.
29013 (ssse3_phsubswv8hi3): Likewise.
29014 (ssse3_phsubswv4hi3): Likewise.
29015 (ssse3_pmaddubsw128): Likewise.
29016 (sse3_pmaddubsw: Likewise.
29017 (ssse3_palignrti): Likewise.
29018 (ssse3_palignrdi): Likewise.
29019
53e350d3
GP
290202009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
29021
29022 * doc/install.texi (Specific): Fix two cross-references to MinGW.
29023
439ef907
RG
290242009-04-06 Richard Guenther <rguenther@suse.de>
29025
29026 PR tree-optimization/28868
29027 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
29028 of which PHI results we inserted.
29029 (insert_into_preds_of_block): Record inserted PHIs.
29030 (eliminate): Eliminate redundant PHI nodes.
29031 (init_pre): Init inserted_phi_names.
29032
4bad83f5
RG
290332009-04-06 Richard Guenther <rguenther@suse.de>
29034
29035 PR tree-optimization/39643
29036 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
29037 IMAGPART_EXPRs of complex constants.
29038 (execute_fold_all_builtins): If we folded a call queue
29039 TODO_update_address_taken.
29040
570c4247
JH
290412009-04-06 Jan Hubicka <jh@suse.cz>
29042
29043 PR middle-end/39659
29044 * except.c (remove_unreachable_regions): Propagate may_contain_throw
29045 flag.
29046
a460d7a1
AS
290472009-04-06 Andrew Stubbs <ams@codesourcery.com>
29048
29049 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
29050 delay slot.
29051 (ic_invalidate_array): Likewise.
29052
60839f5d 290532009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
6bdf8c2e
HS
29054
29055 * calls.c (emit_library_call_value_1): Fix a problem with parameter
29056 alignment for library calls.
29057
7d253f6e
DS
290582009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
29059
29060 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
29061 (mingw32 tm clause use_gcc_stdint): Set to wrap.
29062 * config/i386/mingw-stdint.h: New file.
29063
941c3614
RB
290642009-04-05 Richard Guenther <rguenther@suse.de>
29065
29066 PR tree-optimization/39648
29067 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
29068 our &A vs. &A[0] IL deficiencies.
29069
12633413
JH
290702009-04-04 Jan Hubicka <jh@suse.cz>
29071
941c3614
RB
29072 * except.c (sjlj_find_directly_reachable_regions): Be ready for
29073 removed toplevel regions.
12633413
JH
29074 (sjlj_mark_call_sites): Likewise.
29075
bb2aaded
DK
290762009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
29077
29078 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
29079 (cygwin tm clause use_gcc_stdint): Set to wrap.
29080 * config/i386/cygwin-stdint.h: New file.
29081
86290011
RG
290822009-04-04 Richard Guenther <rguenther@suse.de>
29083
29084 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
29085 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
29086 single-argument PHIs if we are in loop-closed SSA form.
29087 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
29088 for the pre-condition.
29089 (slpeel_tree_peel_loop_to_edge): Likewise.
29090 (vect_build_loop_niters): Take an optional sequence to append stmts.
29091 (vect_generate_tmps_on_preheader): Likewise.
29092 (vect_do_peeling_for_loop_bound): Take extra guards for the
29093 pre-condition.
29094 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
29095 the cost model check.
29096 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
7a715bba 29097 guards if we are going to peel. Do not apply versioning in that case.
86290011
RG
29098 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
29099 (vect_do_peeling_for_loop_bound): Likewise.
29100 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
29101 loop bound only record extra pre-conditions, do not apply loop
29102 versioning.
29103
5eeeac64
RG
291042009-04-04 Richard Guenther <rguenther@suse.de>
29105
29106 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
29107 renaming code.
29108
1ff7d06b
JH
291092009-04-04 Jan Hubicka <jh@suse.cz>
29110
29111 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
29112 last_basic_block for size of bb->index indexed array.
29113 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
29114 compute_out, link_btr_uses, build_btr_def_use_webs,
29115 build_btr_def_use_webs, migrate_btr_defs): Likewise.
29116
14925fcd
JH
291172009-04-04 Jan Hubicka <jh@suse.cz>
29118
29119 * except.c (remove_eh_handler_and_replace): Break out from ...
29120 (remove_eh_handler): ... here.
29121 (bring_to_root): New function.
29122 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
29123 handled ones, bring others to root of tree.
29124
4e6d1743
JH
291252009-04-04 Jan Hubicka <jh@suse.cz>
29126
4cb735f7
JH
29127 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
29128 (all_phis_safe_to_merge): New function.
29129 (update_info): New structure.
29130 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
29131 (cleanup_empty_eh): Update SSA if possible.
4e6d1743 29132
c6803d43
RG
291332009-04-04 Richard Guenther <rguenther@suse.de>
29134
29135 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
29136 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
29137 (append_vuse): Likewise.
29138
54f5943c
JJ
291392009-04-04 Jakub Jelinek <jakub@redhat.com>
29140
29141 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
29142 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
29143 instead of REG_UNSAVED for DW_CFA_undefined.
29144 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
29145 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
29146 outermost frame.
29147
aad2bccb
RE
291482009-04-04 Richard Earnshaw <rearnsha@arm.com>
29149
29150 PR target/39501
29151 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
aad2bccb 29152
aa7069aa
RG
291532009-04-04 Richard Guenther <rguenther@suse.de>
29154
29155 PR tree-optimization/8781
29156 PR tree-optimization/37892
29157 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
29158 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
29159 (valueize_refs): Call it for *& valueizations.
29160 (shared_reference_ops_from_ref): Rename to ...
29161 (valueize_shared_reference_ops_from_ref): ... this and valueize.
29162 (shared_reference_ops_from_call): Rename to ...
29163 (valueize_shared_reference_ops_from_call): ... this and valueize.
29164 (vn_reference_lookup): Update.
29165 (visit_reference_op_call): Likewise.
29166 * tree-ssa-pre.c (phi_translate_1): Fold *&.
29167 (eliminate): Value-replace the call address in call statements.
29168
cd15ad3e
RG
291692009-04-04 Richard Guenther <rguenther@suse.de>
29170
29171 PR tree-optimization/39636
29172 * tree-ssa-forwprop.c
29173 (forward_propagate_addr_into_variable_array_index): Check for
29174 GIMPLE_ASSIGN before accessing the rhs code.
29175
462f3262
JM
291762009-04-03 Jason Merrill <jason@redhat.com>
29177
29178 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
29179
6adb807e
SE
291802009-04-03 Steve Ellcey <sje@cup.hp.com>
29181
29182 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
29183 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
29184 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
29185 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
29186 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
29187 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
29188 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
29189 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
29190 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
29191 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
29192 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
29193 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
29194 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
29195 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
29196 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
29197 Use fr_reg_or_fp01_operand instead of fr_register_operand
29198
29199 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
29200 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
29201 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
29202
174b3107
VM
292032009-04-03 Vladimir Makarov <vmakarov@redhat.com>
29204
b844e5d8
L
29205 PR rtl-optimization/39607
29206 PR rtl-optimization/39631
7a715bba
UB
29207
29208 Revert:
2ba9daa7 29209
174b3107
VM
29210 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
29211 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
29212 instead of DF_LR_OUT.
29213 * ira-lives.c (process_bb_node_lives): Ditto.
29214 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
29215 instead of DF_LR_{OUT,IN}.
29216 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
29217 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
29218
535b544a
SB
292192009-04-03 Steven Bosscher <steven@gcc.gnu.org>
29220
29221 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
29222 (execute_lower_omp): Always run but take the short way out if -fopenmp
29223 is not given.
29224 (gate_lower_omp): Remove, forcing the pass manager to always run the
29225 pass and always set PROP_gimple_lomp.
29226 (pass_lower_omp): Remove gate function.
29227 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
29228 PROP_trees. Instead, require it.
29229 * ipa-cp.c (pass_ipa_cp): Likewise.
29230 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
29231 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
29232 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
29233 and PROP_gimple_leh.
29234
5006671f
RG
292352009-04-03 Richard Guenther <rguenther@suse.de>
29236
29237 PR middle-end/13146
29238 PR tree-optimization/23940
29239 PR tree-optimization/33237
29240 PR middle-end/33974
29241 PR middle-end/34093
29242 PR tree-optimization/36201
29243 PR tree-optimization/36230
29244 PR tree-optimization/38049
29245 PR tree-optimization/38207
29246 PR tree-optimization/38230
29247 PR tree-optimization/38301
29248 PR tree-optimization/38585
29249 PR middle-end/38895
29250 PR tree-optimization/38985
29251 PR tree-optimization/39299
29252 * tree-ssa-structalias.h: Remove.
29253 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
29254 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
29255 (struct vuse_element_d): Remove.
29256 (struct vuse_vec_d): Likewise.
29257 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
29258 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
29259 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
29260 VUSE_ELEMENT_VAR): Likewise.
29261 (struct voptype_d): Likewise.
29262 (NUM_VOP_FREE_BUCKETS): Likewise.
29263 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
29264 (struct stmt_operands_d): Remove.
29265 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
29266 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
29267 VDEF_NUM, VDEF_VECT): Likewise.
29268 (copy_virtual_operands): Remove.
29269 (operand_build_cmp): Likewise.
29270 (create_ssa_artificial_load_stmt): Likewise.
29271 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
29272 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
29273 vuse_index and mayuse_index members. Pack and move done and iter_type
29274 members to the front.
29275 (SSA_OP_VMAYUSE): Remove.
29276 (SSA_OP_VIRTUAL_USES): Adjust.
29277 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
29278 (unlink_stmt_vdef): Declare.
29279 (add_to_addressable_set): Remove.
29280 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
29281 (vrp_visit_stmt): Likewise.
29282 * doc/tree-ssa.texi (Alias analysis): Update.
29283 * doc/invoke.texi (max-aliased-vops): Remove docs.
29284 (avg-aliased-vops): Likewise.
29285 * tree-into-ssa.c (syms_to_rename): Remove.
29286 (need_to_update_vops_p): Likewise.
29287 (need_to_initialize_update_ssa_p): Rename to ...
29288 (update_ssa_initialized_fn): ... this. Track function we are
29289 initialized for.
29290 (symbol_marked_for_renaming): Simplify.
29291 (add_new_name_mapping): Do not set need_to_update_vops_p.
29292 (dump_currdefs): Use SYMS_TO_RENAME.
29293 (rewrite_update_stmt): Always walk all uses/defs.
29294 (dump_update_ssa): Adjust.
29295 (init_update_ssa): Take function argument. Track what we are
29296 initialized for.
29297 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
29298 (create_new_def_for): Initialize for cfun, assert we are initialized
29299 for cfun.
29300 (mark_sym_for_renaming): Simplify.
29301 (mark_set_for_renaming): Do not initialize update-ssa.
29302 (need_ssa_update_p): Simplify. Take function argument.
29303 (name_mappings_registered_p): Assert we ask for the correct function.
29304 (name_registered_for_update_p): Likewise.
29305 (ssa_names_to_replace): Likewise.
29306 (release_ssa_name_after_update_ssa): Likewise.
29307 (update_ssa): Likewise. Use SYMS_TO_RENAME.
29308 (dump_decl_set): Do not print a newline.
29309 (debug_decl_set): Do it here.
29310 (dump_update_ssa): And here.
29311 * tree-ssa-loop-im.c (move_computations): Adjust.
29312 (movement_possibility): Likewise.
29313 (determine_max_movement): Likewise.
29314 (gather_mem_refs_stmt): Likewise.
29315 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
29316 or NAME_MEMORY_TAG.
29317 * tree-complex.c (update_all_vops): Remove.
29318 (expand_complex_move): Adjust.
29319 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
29320 Simplify test for memory referencing statement. Exclude
29321 non-invariant ADDR_EXPRs.
29322 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
29323 * tree-loop-distribution.c (generate_memset_zero): Adjust.
29324 (rdg_flag_uses): Likewise.
29325 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
29326 related code.
29327 (tree_optimize_tail_calls_1): Also split the
29328 edge from the entry block if we have degenerate PHI nodes in
29329 the first basic block.
29330 * tree.c (init_ttree): Remove memory-tag related code.
29331 (tree_code_size): Likewise.
29332 (tree_node_structure): Likewise.
29333 (build7_stat): Re-write to be build6_stat.
29334 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
29335 (SSA_VAR_P): Adjust.
29336 (struct tree_memory_tag): Remove.
29337 (struct tree_memory_partition_tag): Likewise.
29338 (union tree_node): Adjust.
29339 (build7): Re-write to be build6.
29340 * tree-pass.h (pass_reset_cc_flags): Remove.
29341 (TODO_update_address_taken): New flag.
29342 (pass_simple_dse): Remove.
29343 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
29344 * params.h (MAX_ALIASED_VOPS): Remove.
29345 (AVG_ALIASED_VOPS): Likewise.
29346 * omp-low.c (expand_omp_taskreg): Update SSA form.
29347 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
29348 aliases the lhs in a copy stmt.
29349 * tree-ssa-dse.c (struct address_walk_data): Remove.
29350 (memory_ssa_name_same): Likewise.
29351 (memory_address_same): Likewise.
29352 (get_kill_of_stmt_lhs): Likewise.
29353 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
29354 unused stores. Look through PHI nodes into post-dominated regions.
29355 (dse_optimize_stmt): Simplify. Properly remove stores.
29356 (tree_ssa_dse): Compute dominators.
29357 (execute_simple_dse): Remove.
29358 (pass_simple_dse): Likewise.
29359 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
29360 gimple_loaded_syms and gimple_stored_syms computation.
29361 * toplev.c (dump_memory_report): Dump alias and pta stats.
29362 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
29363 (vn_reference_eq): Likewise.
29364 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
29365 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
29366 valueize_vuses): Remove.
29367 (get_def_ref_stmt_vuses): Simplify. Rename to ...
29368 (get_def_ref_stmt_vuse): ... this.
29369 (vn_reference_lookup_2): New function.
29370 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
29371 walking equivalent vuses. Simplify.
29372 (vn_reference_lookup): Likewise.
29373 (vn_reference_insert): Likewise.
29374 (vn_reference_insert_pieces): Likewise.
29375 (visit_reference_op_call): Simplify.
29376 (visit_reference_op_load): Likewise.
29377 (visit_reference_op_store): Likewise.
29378 (init_scc_vn): Remove shared_lookup_vuses initialization.
29379 (free_scc_vn): Remove shared_lookup_vuses freeing.
29380 (sort_vuses, sort_vuses_heap): Remove.
29381 (get_ref_from_reference_ops): Export.
29382 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
29383 vector with single vuse pointer.
29384 (vn_reference_lookup_pieces, vn_reference_lookup,
29385 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
29386 (shared_vuses_from_stmt): Remove.
29387 (get_ref_from_reference_ops): Declare.
29388 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
29389 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
29390 memory-tag related code.
29391 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
29392 (likely_value): Add comment, skip static-chain of call statements.
29393 (surely_varying_stmt_p): Adjust.
29394 (gimplify_and_update_call_from_tree): Likewise.
29395 (execute_fold_all_builtins): Do not rebuild alias info.
29396 (gimplify_and_update_call_from_tree): Properly update VOPs.
29397 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
29398 (copy_ref_info): Remove memory-tag related code.
29399 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
29400 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
29401 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
29402 computation.
29403 * tree-ssa-dom.c (gimple_p): Remove typedef.
29404 (eliminate_redundant_computations): Adjust.
29405 (record_equivalences_from_stmt): Likewise.
29406 (avail_expr_hash): Likewise.
29407 (avail_expr_eq): Likewise.
7a715bba 29408 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
5006671f
RG
29409 (stmt_makes_single_load): Likewise.
29410 (stmt_makes_single_store): Likewise.
29411 * tree-ssa-alias.c: Rewrite completely.
29412 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
29413 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
29414 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
29415 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
29416 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
29417 Remove public functions.
29418 (pass_reset_cc_flags): Remove.
29419 (pass_build_alias): Move ...
29420 * tree-ssa-structalias.c (pass_build_alias): ... here.
29421 * tree-ssa-alias.c (may_be_aliased): Move ...
29422 * tree-flow-inline.h (may_be_aliased): ... here.
29423 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
29424 count_uses_and_derefs): Move ...
29425 * gimple.c: ... here.
29426 * gimple.h (count_uses_and_derefs): Declare.
29427 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
29428 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
29429 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
29430 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
29431 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
29432 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
29433 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
29434 New functions.
29435 * tree-dfa.c (refs_may_alias_p): Move ...
29436 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
29437 * tree-ssa-alias.h: New file.
29438 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
29439 (statement_sink_location): Likewise.
29440 * opts.c (decode_options): Do not adjust max-aliased-vops or
29441 avg-aliased-vops values.
29442 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
29443 (TV_CALL_CLOBBER): Likewise.
29444 (TV_FLOW_SENSITIVE): Likewise.
29445 (TV_FLOW_INSENSITIVE): Likewise.
29446 (TV_MEMORY_PARTITIONING): Likewise.
29447 (TV_ALIAS_STMT_WALK): New timevar.
29448 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
29449 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
29450 (get_address_description): Remove memory-tag related code.
29451 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
29452 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
29453 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
29454 and immediate uses in statements. Document.
29455 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
29456 (dump_symbols): Remove.
29457 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
29458 * alias.c (get_deref_alias_set): New function split out from ...
29459 (get_alias_set): ... here.
29460 * alias.h (get_deref_alias_set): Declare.
29461 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
29462 type parameter. Remove restrict pointer handling. Create a
29463 ref-all pointer in case type-based alias sets do not conflict.
29464 (vect_analyze_data_refs): Remove SMT related code.
29465 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
29466 (vectorizable_load): Likewise.
29467 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
29468 (DR_SYMBOL_TAG, DR_VOPS): Remove.
29469 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
29470 Ignore vops and SMTs.
29471 (dr_analyze_alias): Likewise..
29472 (free_data_ref): Likewise.
29473 (create_data_ref): Likewise.
29474 (analyze_all_data_dependences): Likewise.
29475 (get_references_in_stmt): Adjust.
29476 * tree-flow-inline.h (gimple_aliases_computed_p,
29477 gimple_addressable_vars, gimple_call_clobbered_vars,
29478 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
29479 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
29480 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
29481 gimple_mem_ref_stats): Remove.
29482 (gimple_vop): New function.
29483 (op_iter_next_use): Remove vuses and mayuses cases.
29484 (op_iter_next_def): Remove vdefs case.
29485 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
29486 (clear_and_done_ssa_iter): Do not set removed fields.
29487 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
29488 Assert we are not iterating over vuses or vdefs if not also
29489 iterating over uses or defs.
29490 (op_iter_init_use): Likewise.
29491 (op_iter_init_def): Likewise.
29492 (op_iter_next_vdef): Remove.
29493 (op_iter_next_mustdef): Likewise.
29494 (op_iter_init_vdef): Likewise.
29495 (compare_ssa_operands_equal): Likewise.
29496 (link_use_stmts_after): Handle vuse operand.
29497 (is_call_used): Use is_call_clobbered.
29498 (is_call_clobbered): Global variables are always call clobbered,
29499 query the call-clobbers bitmap.
29500 (mark_call_clobbered): Ignore global variables.
29501 (clear_call_clobbered): Likewise.
29502 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
29503 virtual operands sanity check.
29504 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
29505 Remove.
29506 (TARGET_MEM_REF): Remove TMR_TAG operand.
29507 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
29508 Remove call-clobber related code.
29509 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
29510 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
29511 partitions or escape reason.
29512 (get_single_def_stmt, get_single_def_stmt_from_phi,
29513 get_single_def_stmt_with_phi): Remove.
29514 (dump_referenced_vars): Tidy.
29515 (get_ref_base_and_extent): Allow bare decls.
29516 (collect_dfa_stats): Adjust.
29517 * graphite.c (rename_variables_in_stmt): Adjust.
29518 (graphite_copy_stmts_from_block): Likewise.
29519 (translate_clast): Likewise.
29520 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
29521 (EXPR_DIES): New.
29522 (translate_vuse_through_block): Use the oracle.
29523 (phi_translate_1): Adjust.
29524 (value_dies_in_block_x): Use the oracle. Cache the outcome
29525 in EXPR_DIES.
29526 (valid_in_sets): Check if the VUSE for
29527 a REFERENCE is available.
29528 (eliminate): Do not remove stmts during elimination,
29529 instead queue and remove them afterwards.
29530 (do_pre): Do not rebuild alias info.
29531 (pass_pre): Run TODO_rebuild_alias before PRE.
29532 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
29533 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
29534 (mark_all_v_defs_stmt): Remove.
29535 (mark_all_v_defs_seq): Adjust.
29536 (sra_replace): Likewise.
29537 (scalarize_use): Likewise.
29538 (scalarize_copy): Likewise.
29539 (scalarize_init): Likewise.
29540 (scalarize_ldst): Likewise.
29541 (todoflags): Remove.
29542 (tree_sra): Do not rebuild alias info.
29543 (tree_sra_early): Adjust.
29544 (pass_sra): Run TODO_update_address_taken before SRA.
29545 * tree-predcom.c (set_alias_info): Remove.
29546 (prepare_initializers_chain): Do not call it.
29547 (mark_virtual_ops_for_renaming): Adjust.
29548 (mark_virtual_ops_for_renaming_list): Remove.
29549 (initialize_root_vars): Adjust.
29550 (initialize_root_vars_lm): Likewise.
29551 (prepare_initializers_chain): Likewise.
29552 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
29553 (may_propagate_copy_into_stmt): Likewise.
29554 (merge_alias_info): Do nothing for now.
29555 (propagate_tree_value_into_stmt): Adjust.
29556 (stmt_may_generate_copy): Likewise.
29557 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
29558 not mark symbols for renaming.
29559 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
29560 with the same statement, make sure to update the new pointed-to one.
29561 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
29562 call statements, do not mark symbols for renaming.
29563 (mark_operand_necessary): Dump something.
29564 (ref_may_be_aliased): New function.
29565 (mark_aliased_reaching_defs_necessary_1): New helper function.
29566 (mark_aliased_reaching_defs_necessary): Likewise.
29567 (mark_all_reaching_defs_necessary_1): Likewise.
29568 (mark_all_reaching_defs_necessary): Likewise.
29569 (propagate_necessity): Do not process virtual PHIs. For
29570 non-aliased loads mark all reaching definitions as necessary.
29571 For aliased loads and stores mark the immediate dominating
29572 aliased clobbers as necessary.
29573 (visited): New global static.
29574 (perform_tree_ssa_dce): Free visited bitmap after propagating
29575 necessity.
29576 (remove_dead_phis): Perform simple dead virtual PHI removal.
29577 (remove_dead_stmt): Properly unlink virtual operands when
29578 removing stores.
29579 (eliminate_unnecessary_stmts): Schedule PHI removal after
29580 stmt removal.
29581 * tree-ssa-ter.c (is_replaceable_p): Adjust.
29582 (process_replaceable): Likewise.
29583 (find_replaceable_in_bb): Likewise.
29584 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
29585 based on the single gimple vop.
29586 (verify_flow_insensitive_alias_info): Remove.
29587 (verify_flow_sensitive_alias_info): Likewise.
29588 (verify_call_clobbering): Likewise.
29589 (verify_memory_partitions): Likewise.
29590 (verify_alias_info): Likewise.
29591 (verify_ssa): Adjust..
29592 (execute_update_addresses_taken): Export. Update SSA
29593 manually. Optimize only when optimizing. Use a local bitmap.
29594 (pass_update_address_taken): Remove TODO_update_ssa, add
29595 TODO_dump_func.
29596 (pass_update_address_taken): Just use TODO_update_address_taken.
29597 (init_tree_ssa): Do not initialize addressable_vars.
29598 (verify_ssa): Verify new VUSE / VDEF properties.
29599 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
29600 Do not call verify_alias_info.
29601 (delete_tree_ssa): Clear the VUSE, VDEF operands.
29602 Do not free the loaded and stored syms bitmaps. Reset the escaped
29603 and callused solutions. Do not free addressable_vars.
29604 Remove memory-tag related code.
29605 (warn_uninitialized_var): Aliases are always available.
29606 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
29607 * lambda-code.c (can_put_in_inner_loop): Adjust.
29608 (can_put_after_inner_loop): Likewise.
29609 (perfect_nestify): Likewise.
29610 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
29611 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
29612 (vectorizable_conversion): Do not mark symbols for renaming.
29613 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
29614 (expand_call_inline): Unlink the calls virtual operands before
29615 replacing it.
29616 (tree_function_versioning): Do not call update_ssa if we are not
29617 updating clones. Simplify.
29618 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
29619 (propagate_with_phi): Likewise..
29620 * tree-outof-ssa.c (create_temp): Remove memory tag and call
29621 clobber code. Assert we are not aliased or global.
29622 * tree-flow.h: Include tree-ssa-alias.h
29623 (enum escape_type): Remove.
29624 (struct mem_sym_stats_d): Likewise.
29625 (struct mem_ref_stats_d): Likewise.
29626 (struct gimple_df): Add vop member. Remove global_var,
29627 call_clobbered_vars, call_used_vars, addressable_vars,
29628 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
29629 escaped and callused members.
29630 (struct ptr_info_def): Remove all members, add points-to solution
29631 member pt.
29632 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
29633 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
29634 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
29635 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
29636 (tree-ssa-alias.o): Likewise.
29637 (toplev.o): Add tree-ssa-alias.h
29638 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
29639 * gimple.c (gimple_set_bb): Fix off-by-one error.
29640 (is_gimple_reg): Do not handle memory tags.
29641 (gimple_copy): Also copy virtual operands.
29642 Delay updating the statement. Do not reset loaded and stored syms.
29643 (gimple_set_stored_syms): Remove.
29644 (gimple_set_loaded_syms): Likewise.
29645 (gimple_call_copy_skip_args): Copy the virtual operands
29646 and mark the new statement modified.
29647 * tree-ssa-structalias.c (may_alias_p): Remove.
29648 (set_uids_in_ptset): Take the alias set to prune with as
29649 parameter. Fold in the alias test of may_alias_p.
29650 (compute_points_to_sets): Compute whether a ptr is dereferenced
29651 in a local sbitmap.
29652 (process_constraint): Deal with &ANYTHING on the lhs, reject all
29653 other ADDRESSOF constraints on the lhs.
29654 (get_constraint_for_component_ref): Assert that we don't get
29655 ADDRESSOF constraints from the base of the reference.
29656 Properly generate UNKNOWN_OFFSET for DEREF if needed.
29657 (struct variable_info): Remove collapsed_to member.
29658 (get_varinfo_fc): Remove.
29659 (new_var_info): Do not set collapsed_to.
29660 (dump_constraint): Do not follow cycles.
29661 (dump_constraint_graph): Likewise.
29662 (build_pred_graph): Likewise.
29663 (build_succ_graph): Likewise.
29664 (rewrite_constraints): Likewise.
29665 (do_simple_structure_copy): Remove.
29666 (do_rhs_deref_structure_copy): Remove.
29667 (do_lhs_deref_structure_copy): Remove.
29668 (collapse_rest_of_var): Remove.
29669 (do_structure_copy): Re-implement.
29670 (pta_stats): New global variable.
29671 (dump_pta_stats): New function.
29672 (struct constraint_expr): Make offset signed.
29673 (UNKNOWN_OFFSET): Define special value.
29674 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
29675 (solution_set_expand): New helper function split out from ...
29676 (do_sd_constraint): ... here.
29677 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
29678 (do_ds_constraint): Likewise.
29679 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
29680 and CALLUSED = *CALLUSED.
29681 (set_union_with_increment): Make inc argument signed.
29682 (type_safe): Remove.
29683 (get_constraint_for_ptr_offset): Handle unknown and negative
29684 constant offsets.
29685 (first_vi_for_offset): Handle offsets before start. Bail
29686 out early for offsets beyond the variable extent.
29687 (first_or_preceding_vi_for_offset): New function.
29688 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
29689 Together with ESCAPED = *ESCAPED this properly computes reachability.
29690 (find_what_var_points_to): New function.
29691 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
29692 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
29693 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
29694 pt_solutions_intersect): New functions.
29695 (compute_call_used_vars): Remove.
29696 (compute_may_aliases): New main entry into PTA computation.
29697 * gimple.h (gimple_p): New typedef.
29698 (struct gimple_statement_base): Remove references_memory_p.
29699 (struct gimple_statement_with_memory_ops_base): Remove
29700 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
29701 members.
29702 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
29703 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
29704 gimple_set_references_memory): Remove.
29705 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
29706 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
29707 New functions.
29708 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
29709 (verify_expr): Allow RESULT_DECL.
29710 (gimple_duplicate_bb): Do not copy virtual operands.
29711 (gimple_duplicate_sese_region): Adjust.
29712 (gimple_duplicate_sese_tail): Likewise.
29713 (mark_virtual_ops_in_region): Remove.
29714 (move_sese_region_to_fn): Do not call it.
29715 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
29716 and pass_simple_dse.
29717 (execute_function_todo): Handle TODO_update_address_taken,
29718 call execute_update_addresses_taken for TODO_rebuild_alias.
29719 (execute_todo): Adjust.
29720 (execute_one_pass): Init dump files early.
29721 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
29722 call-clobbered.
29723 (create_general_new_stmt): Clear vops.
29724 * tree-ssa-reassoc.c (get_rank): Adjust.
29725 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
29726 symbols for renaming.
29727 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
29728 (PARAM_AVG_ALIASED_VOPS): Likewise.
29729 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
29730 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
7a715bba 29731 * tree-ssa-operands.c: Simplify for new virtual operand representation.
5006671f
RG
29732 (operand_build_cmp, copy_virtual_operands,
29733 create_ssa_artificial_load_stmt, add_to_addressable_set,
29734 gimple_add_to_addresses_taken): Remove public functions.
29735 (unlink_stmt_vdef): New function.
29736
457d1d00
AM
297372009-04-03 Alan Modra <amodra@bigpond.net.au>
29738
29739 * config.gcc (powerpc-*-linux*): Merge variants.
29740
e19da24c 297412009-04-02 Chao-ying Fu <fu@mips.com>
60839f5d 29742 James Grosbach <james.grosbach@microchip.com>
e19da24c
CF
29743
29744 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
29745 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
29746 cop0_sp_offset.
29747 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
29748 keep_interrupts_masked_p, use_debug_exception_return_p.
29749 (mips_attribute_table): Add interrupt, use_shadow_register_set,
29750 keep_interrupts_masked, use_debug_exception_return.
29751 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
29752 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
29753 New functions.
29754 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
29755 (mips_print_operand): Process COP0 registers to print $0 .. $31
29756 correctly for GAS to process.
29757 (mips_interrupt_extra_call_saved_reg_p): New function.
29758 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
29759 extra registers.
29760 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
29761 (mips_compute_frame_info): Add supports for interrupt context that
29762 includes doubleword accumulators and COP0 registers.
29763 (mips_for_each_saved_acc): New function.
29764 (mips_for_each_saved_gpr_and_fpr): Change the function name from
29765 mips_for_each_saved_reg.
29766 (mips_save_reg): Save accumulators.
29767 (mips_kernel_reg_p): A new for_each_rtx callback.
29768 (mips_expand_prologue): Support interrupt handlers.
29769 (mips_restore_reg): Restore accumulators.
29770 (mips_expand_epilogue): Support interrupt handlers.
29771 (mips_can_use_return_insn): Return false for interrupt handlers.
29772 (mips_epilogue_uses): New function.
29773 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
29774 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
29775 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
29776 cop0_move): New instructions.
29777 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
29778 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
29779 defines.
29780 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
29781 New defines.
29782 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
29783 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
29784 interrupt handlers, we use K0 as the temporary register.
29785 (EPILOGUE_USES): Change to a function call.
29786 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
29787 handlers, we use K0 as the temporary register.
2ba9daa7 29788
e19da24c
CF
29789 * doc/extend.texi (Function Attributes): Document interrupt,
29790 use_shadow_register_set, keep_interrupts_masked,
29791 use_debug_exception_return for MIPS attributes.
29792
aa1ca044
AM
297932009-04-03 Alan Modra <amodra@bigpond.net.au>
29794
29795 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
29796 Remove a number of t-files from tmake_file.
29797 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
29798 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
29799 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
29800 target_prototype, not TARGET_PROTOTYPE.
29801 (LINK_OS_GNU_SPEC): Define.
29802 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
29803 and darwin-ldoubdle.c.
29804
14fdc613
MM
298052009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29806
29807 PR driver/39293
29808 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
29809 (cpp_options): Ditto.
29810 (default_compilers): Ditto.
29811 (display_help): Ditto.
29812 (process_command): Ditto.
29813 (do_spec_1): Ditto.
29814 (set_input): Use lbasename instead of duplicate code.
29815 (save_temps_prefix): New static for -save-temps=obj.
29816 (save_temps_length): Ditto.
2ba9daa7 29817
14fdc613
MM
29818 * doc/invoke.texi (-save-temps=obj): Document new variant to
29819 -save-temps switch.
29820
d3aa398e
JL
298212009-04-02 Jeff Law <law@redhat.com>
29822
29823 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
29824 variable.
29825
83f0ccb8
L
298262009-04-02 H.J. Lu <hongjiu.lu@intel.com>
29827
29828 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
29829 * configure: Regenerated.
29830
dcb6e951
RAE
298312009-04-02 Rafael Avila de Espindola <espindola@google.com>
29832
29833 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
29834 share the argument list.
29835
d85478c2
RAE
298362009-04-02 Rafael Avila de Espindola <espindola@google.com>
29837
29838 Merge
29839
29840 2009-02-12 Diego Novillo <dnovillo@google.com>
29841
83f0ccb8
L
29842 * varpool.c (debug_varpool): New.
29843 * cgraph.h (debug_varpool): Declare.
d85478c2 29844
34f42a49
JH
298452009-04-02 Jan Hubicka <jh@suse.cz>
29846
29847 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
29848 pass.
29849
a4747b4a
L
298502009-04-02 H.J. Lu <hongjiu.lu@intel.com>
29851
29852 * config/i386/i386.c (ix86_abi): Move initialization to ...
29853 (override_options): Here.
29854
63a9de54
CB
298552009-04-02 Christian Bruel <christian.bruel@st.com>
29856
29857 * config/sh/sh.c (sh_dwarf_register_span): New function.
29858 (TARGET_DWARF_REGISTER_SPAN): Define.
29859 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
2ba9daa7 29860
2f0fa28e
IR
298612009-04-02 Ira Rosen <irar@il.ibm.com>
29862
29863 PR tree-optimization/39595
2ba9daa7 29864 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
2f0fa28e
IR
29865 interleaved loads group is not greater than the SLP group size.
29866
bbf7ce11
RAE
298672009-04-02 Rafael Avila de Espindola <espindola@google.com>
29868
29869 * builtins.c (is_builtin_name): New.
29870 (called_as_built_in): Use is_builtin_name.
29871 * tree.h (is_builtin_name): New.
29872 * varasm.c (incorporeal_function_p): Use is_builtin_name
29873
47e4dfcf
AS
298742009-04-02 Andrew Stubbs <ams@codesourcery.com>
29875
29876 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
29877
d0940d56
DS
298782009-04-02 Dodji Seketeli <dodji@redhat.com>
29879
29880 PR c++/26693
532bfb0a 29881 * c-decl.c (clone_underlying_type): Move this ...
d0940d56
DS
29882 * c-common.c (set_underlying_type): ... here.
29883 Also, make sure the function properly sets TYPE_STUB_DECL() on
29884 the newly created typedef variant type.
29885 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
7a715bba
UB
29886 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
29887 points.
d0940d56 29888
bf1cbdc6
RG
298892009-04-02 Richard Guenther <rguenther@suse.de>
29890
29891 PR tree-optimization/37221
29892 * tree-flow.h (degenerate_phi_result): Declare.
29893 * tree-ssa-dom.c (degenerate_phi_result): Export.
29894 * tree-scalar-evolution.c (analyze_initial_condition): If
29895 the initial condition is defined by a degenerate PHI node
29896 use the degenerate value.
29897
87cfb32c
EB
298982009-04-01 Eric Botcazou <ebotcazou@adacore.com>
29899
29900 PR rtl-optimization/39588
29901 * combine.c (merge_outer_ops): Do not set the constant when this
29902 is not necessary.
29903 (simplify_shift_const_1): Do not modify it either in this case.
29904
bbb6eae8
SB
299052009-04-01 Steven Bosscher <steven@gcc.gnu.org>
29906
29907 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
29908 tuning is deprecated if -mtune value is set to an Itanium1 variant.
29909
839a3b8a
JJ
299102009-04-01 Janis Johnson <janis187@us.ibm.com>
29911
29912 PR c/29027
29913 * c-lex.c (interpret_float): Default (no suffix) is double.
29914
667e8acb
XDL
299152009-04-1 Xinliang David Li <davidxl@google.com>
29916
29917 * config/i386/i386.c (legitimate_constant_p): Recognize
29918 all one vector constant.
29919
60839f5d 299202009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 29921
60839f5d 29922 * config/vax/vax.c: Add #includes to silence warnings.
c4e75102
MT
29923 Change #include order to silence two warnings.
29924
60839f5d 299252009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 29926
60839f5d 29927 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
c4e75102
MT
29928 (ASM_SPEC): Pass -k to the assembler for PIC code.
29929
60839f5d 299302009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 29931
60839f5d
EB
29932 * config.gcc: Add vax-*-linux* to the switch.
29933 * config/vax/linux.h: New file. (TARGET_VERSION,
c4e75102
MT
29934 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
29935
60839f5d 299362009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 29937
60839f5d 29938 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
c4e75102 29939 Use predicate macros instead of GET_CODE() == foo.
60839f5d 29940 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
c4e75102
MT
29941 ashlsi3, rotrsi3, <unnamed>): Likewise.
29942
60839f5d 299432009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 29944
60839f5d 29945 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
c4e75102 29946 jbbccihi, jbbccisi): Remova trailing whitespace.
60839f5d 29947 * config/vax/constraints.md: Likewise.
bd62d832 29948 * config/vax/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
60839f5d
EB
29949 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
29950 * config/vax/predicates.md: Likewise.
29951 * config/vax/vax.c (print_operand_address, vax_output_int_move,
c4e75102 29952 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
60839f5d
EB
29953 * config/vax/vax.h: Likewise.
29954 * config/vax/vax.md (nonlocal_goto): Likewise.
c4e75102 29955
60839f5d 299562009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 29957
60839f5d 29958 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
c4e75102
MT
29959 (indirectable_address_p, adjacent_operands_p): Add spaces around
29960 braces.
60839f5d 29961 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
c4e75102 29962
60839f5d 299632009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 29964
60839f5d 29965 * config/vax/vax.c (legitimate_constant_address_p,
c4e75102
MT
29966 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
29967 index_term_p, reg_plus_index_p, legitimate_address_p,
29968 vax_mode_dependent_address_p): Update comments to match functions
29969 modified by the recent int->bool conversion.
29970
60839f5d 299712009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 29972
60839f5d
EB
29973 * config/vax/builtins.md: Update copyright message.
29974 * config/vax/constraints.md: Likewise.
29975 * config/vax/netbsd-elf.h: Likewise.
29976 * config/vax/predicates.md: Likewise.
29977 * config/vax/vax-protos.h: Likewise.
29978 * config/vax/vax.c: Likewise.
29979 * config/vax/vax.h: Likewise.
29980 * config/vax/vax.md: Likewise.
29981 * config/vax/vax.opt: Likewise.
c4e75102 29982
60839f5d 299832009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 29984
60839f5d 29985 * config/vax/builtins.md (ffssi2, ffssi2_internal,
c4e75102 29986 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
60839f5d
EB
29987 * config/vax/constraints.md (B, R): Likewise.
29988 * config/vax/predicates.md (external_memory_operand,
c4e75102 29989 nonimmediate_addsub_di_operand): Likewise.
60839f5d
EB
29990 * config/vax/vax.c (vax_output_int_add): Likewise.
29991 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
c4e75102
MT
29992 untyped_call): Likewise.
29993
60839f5d 299942009-04-01 Matt Thomas <matt@3am-software.com>
c4e75102 29995
7a715bba
UB
29996 * config/vax/predicates.md: New file.
29997 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
c4e75102
MT
29998 external_const_operand, nonsymbolic_operand, external_memory_operand,
29999 indirect_memory_operand, indexed_memory_operand,
30000 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
30001 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
30002 predicate.
7a715bba
UB
30003 * config/vax/constraints.md: New file.
30004 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
30005 New constraint.
30006 * config/vax/builtins.md: New file.
30007 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
30008 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
30009 jbbccisi): Define.
c4e75102
MT
30010 * config/vax/vax.opt (mqmath): Add option.
30011 * config/vax/vax.md (isfx): Extend with DI.
30012 (VAXintQH, VAXintQHSD): Define.
30013 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
30014 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
30015 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
30016 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
30017 (movdi): Update constraints and use vax_output_int_move().
30018 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
30019 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
30020 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
30021 nonlocal_goto): New.
30022 (mov<mode>): Extend accepted operand types.
30023 (subdi3_old): Rename from subdi3, change update constraints and use
30024 a new implementation.
60839f5d 30025 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
c4e75102
MT
30026 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
30027 MOVE_RATIO, CLEAR_RATIO): Define.
30028 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
30029 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
30030 (PRINT_OPERAND): Redefine using a function instead of inlined code.
60839f5d 30031 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
c4e75102
MT
30032 (split_quadword_operands): Make static and really allow variable
30033 splitting.
30034 (print_operand_address): Update for PIC generation.
30035 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
30036 indexable_address_p, fixup_mathdi_operand,
30037 vax_expand_addsub_di_operands, adjacent_operands_p): New.
30038 (vax_float_literal, legitimate_constant_p,
30039 indirectable_constant_address_p, index_term_p,
30040 reg_plus_index_p): Return bool instead of int.
30041 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
30042 where needed.
30043 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
30044 generation.
30045 (vax_output_conditional_branch): Indent.
30046 (legitimate_constant_address_p, indirectable_constant_address_p,
30047 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
30048 vax_mode_dependent_address_p): Return bool instead of int, update for
30049 PIC generation.
30050 * config/vax/vax-protos.h (legitimate_constant_address_p,
30051 legitimate_constant_p, legitimate_address_p,
30052 vax_mode_dependent_address_p): Change declaration to bool.
30053 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
30054 vax_expand_addsub_di_operands, vax_output_int_subtract,
30055 vax_output_movmemsi): Declare.
30056 (split_quadword_operands, vax_float_literal): Delete declaration.
30057 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
30058 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
30059 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
30060 ASM_OUTPUT_DWARF_PCREL): Define.
30061 (ASM_SPEC): Change definition to allow PIC generation.
30062
9332c6eb
L
300632009-04-01 Steve Ellcey <sje@cup.hp.com>
30064
30065 * doc/sourcebuild.texi: Update front-end requirements.
30066
d93e052c
JJ
300672009-04-01 Jakub Jelinek <jakub@redhat.com>
30068
30069 PR target/39226
30070 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
30071 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
30072 (booldi3_internal3): Use boolean_or_operator instead of
30073 boolean_operator.
30074
6ccb2a4a
JM
300752009-04-01 Joseph Myers <joseph@codesourcery.com>
30076
30077 PR c/39605
30078 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
30079 declarator whose size is not an integer constant expression but
30080 folds to an integer constant, then treat it as a constant
30081 subsequently.
30082
299b87f8
RG
300832009-04-01 Richard Guenther <rguenther@suse.de>
30084
30085 * fold-const.c (fold_plusminus_mult_expr): Do not fold
30086 i * 4 + 2 to (i * 2 + 1) * 2.
30087
b85eb797
JJ
300882009-04-01 Jakub Jelinek <jakub@redhat.com>
30089
30090 PR c/37772
30091 * c-parser.c (c_parser_asm_statement): Skip until close paren and
30092 return if c_parser_asm_string_literal returned NULL.
30093
235e1fe8
NC
300942009-04-01 Nick Clifton <nickc@redhat.com>
30095
30096 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
30097 already defined.
30098 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
30099 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
30100 other typedefs to avoid conflicts with libgcc2.c. Define labels
30101 to gain 16-bit bit-manipulation functions from libgcc2.c and then
30102 include it.
30103 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
30104 to gain 16-bit trapping arithmetic functions from libgcc2.c and
30105 then include it.
30106
d6868399
RAE
301072009-04-01 Rafael Avila de Espindola <espindola@google.com>
30108
7a715bba
UB
30109 * varasm.c (default_function_rodata_section): Declare DOT as
30110 const char*.
d6868399 30111
73d21f56 301122009-04-01 Kai Tietz <kai.tietz@onevision.com>
60839f5d 30113 Andrey Galkin <agalkin@hypercom.com>
73d21f56
KT
30114
30115 PR/39492
30116 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
30117 Make object_name unique for each process.
30118
03742a9b
JJ
301192009-04-01 Jakub Jelinek <jakub@redhat.com>
30120
30121 PR other/39591
30122 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
30123 addressable variables in the parallel that could go out of scope while
30124 running queued tasks.
30125
4223ff5f
AS
301262009-04-01 Anatoly Sokolov <aesok@post.ru>
30127
30128 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
30129 (CASE_VALUES_THRESHOLD): Redefine.
30130 * config/avr/avr.c (avr_override_options): Remove initialization of
30131 avr_case_values_threshold variable.
30132 (avr_case_values_threshold): Remove variable. Add new function.
30133 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
30134 * config/avr/avr.opt (mno-tablejump): Remove option.
30135 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
30136
e893f6f3
DD
301372009-04-01 DJ Delorie <dj@redhat.com>
30138
30139 * varasm.c (default_function_rodata_section): Don't assume
30140 anything about where the first '.' in the section name is.
30141
b246d100
AM
301422009-04-01 Alan Modra <amodra@bigpond.net.au>
30143
30144 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
30145 rs6000_emit_stack_tie.
30146
d3e37a9e
ILT
301472009-03-31 Ian Lance Taylor <iant@google.com>
30148
30149 * tree-eh.c (tree_remove_unreachable_handlers): Compare
30150 gimple_code with GIMPLE_RESX, not RESX.
30151
c1b61fca
JM
301522009-03-31 Joseph Myers <joseph@codesourcery.com>
30153
30154 * c-common.c (c_get_ident): New.
7a715bba 30155 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
c1b61fca 30156
c2d2ad48
BE
301572009-04-01 Ben Elliston <bje@au.ibm.com>
30158
30159 * config/rs6000/sysv4.opt (msdata): Improve option description.
30160
13d1a6e7
SE
301612009-03-31 Steve Ellcey <sje@cup.hp.com>
30162
30163 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
30164 (divdf3_internal_lat): Remove.
30165 (divxf3_internal_lat): Remove.
30166 (divxf3_internal_thr): Remove.
30167 (divxf): Use divxf3_internal.
30168 * config/ia64/div.md (divsf3_internal_lat): New.
30169 (divdf3_internal_lat): New.
30170 (divxf3_internal): New.
30171
207bf79d
JM
301722009-03-31 Joseph Myers <joseph@codesourcery.com>
30173
30174 PR c/448
30175 * Makefile.in (USE_GCC_STDINT): Define.
30176 (stmp-int-hdrs): Install stdint.h if applicable.
30177 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
30178 if known.
30179 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
30180 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
30181 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
30182 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
30183 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
30184 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
30185 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
30186 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
30187 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
30188 (c_common_nodes_and_builtins): Initialize
30189 underlying_wchar_type_node. Do not initialize
30190 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
30191 nodes for new types.
30192 (c_stddef_cpp_builtins): Define macros for new types.
30193 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
30194 Remove.
30195 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
30196 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
30197 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
30198 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
30199 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
30200 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
30201 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
30202 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
30203 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
30204 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
30205 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
30206 int16_type_node, int32_type_node, int64_type_node,
30207 uint8_type_node, uint16_type_node, c_uint32_type_node,
30208 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
30209 int_least32_type_node, int_least64_type_node,
30210 uint_least8_type_node, uint_least16_type_node,
30211 uint_least32_type_node, uint_least64_type_node,
30212 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
30213 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
30214 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
30215 uintptr_type_node): Define.
30216 * c-cppbuiltin.c (builtin_define_constants,
30217 builtin_define_type_minmax): New.
30218 (builtin_define_stdint_macros): Define more macros.
30219 (c_cpp_builtins): Define more limit macros.
30220 (type_suffix): New.
30221 (builtin_define_type_max): Define in terms of
30222 builtin_define_type_minmax. Remove is_long parameter. All
30223 callers changed.
30224 * config.gcc (use_gcc_stdint): Define.
30225 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
30226 Add newlib-stdint.h for generic targets.
30227 * config/glibc-stdint.h, config/newlib-stdint.h,
30228 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
30229 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
30230 * config/score/score.h (UINTPTR_TYPE): Define.
30231 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
30232 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
30233 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
30234 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
30235 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
30236 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
30237 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
30238 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
30239 * config/spu/spu.h (STDINT_LONG32): Define.
30240 * configure.ac (use_gcc_stdint): Substitute.
30241 * configure: Regenerate.
30242 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
30243 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
30244 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
30245 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
30246 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
30247 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
30248 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
30249 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
30250 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
30251 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
30252 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
30253 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
30254 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
30255 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
30256 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
30257 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
30258 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
30259 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
30260 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
30261 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
30262 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
30263 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
30264 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
30265 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
30266 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
30267 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
30268 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
30269 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
30270 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
30271
ed853664
BS
302722009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
30273
30274 * loop-iv.c (suitable_set_for_replacement): Renamed from
30275 simplify_using_assignment; changed to return bool and to accept new
30276 args DEST and SRC. Return true iff we find a source/destination pair
30277 that can be used to make a replacement, and fill SRC and DEST if so.
30278 Remove arg ALTERED. Don't deal with altered regs here. All callers
30279 changed.
30280 (simplify_using_initial_values): Deal with altered regs here and track
30281 more precisely the effect they have on the validity of our expression.
30282
1569e190
BS
30283 * loop-iv.c (simplify_using_condition): A condition of the form
30284 (EQ REG CONST) can be used to simply make a substitution.
30285 (simplify_using_initial_values): Keep track of conditions we have seen
30286 and keep using them to simplify new expressions, while applying the
30287 same substitutions to them as to the expression.
30288
1d1eb80c
BS
30289 * simplify-rtx.c (simplify_relational_operation_1): Simplify
30290 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
30291 GEU/LTU reversed.
30292
28af33b0
BS
30293 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
30294 changed. Use this when trying to improve the upper bound.
30295 Generate the comparison by using simplify_gen_relational.
30296
b30321cd
BS
30297 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
30298
60081874
BS
30299 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
30300 functions.
2ba9daa7 30301 (simplify_using_assignment, simplify_using_initial_values): Call
60081874
BS
30302 replace_in_expr to make replacements. Call replace_single_def_regs
30303 once on the initial version of the expression.
30304
bebc6e07
RR
303052009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30306
fcb82ab0 30307 PR target/27237
bebc6e07 30308 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
2ba9daa7 30309
6b12efe9
RG
303102009-03-31 Richard Guenther <rguenther@suse.de>
30311
30312 PR middle-end/31029
30313 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
30314 equality comparisons. Fold C - X CMP X if C % 2 == 1.
30315
108f6c2f
RG
303162009-03-31 Richard Guenther <rguenther@suse.de>
30317
30318 * tree.h (div_if_zero_remainder): Declare.
30319 * fold-const.c (div_if_zero_remainder): Export.
30320 * tree-ssa-forwprop.c
30321 (forward_propagate_addr_into_variable_array_index): Handle
30322 constant array index addition outside of the variable index.
30323
8f612190
JM
303242009-03-31 Joseph Myers <joseph@codesourcery.com>
30325
30326 PR target/39592
30327 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
30328 define_splits, floatunssi<mode>2): Require x87 conversions from
30329 DImode to be permitted.
30330
47580d22
JM
303312009-03-31 Joseph Myers <joseph@codesourcery.com>
30332
30333 PR preprocessor/15638
30334 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
30335
ba4d8f9d
RG
303362009-03-31 Richard Guenther <rguenther@suse.de>
30337
30338 PR middle-end/23401
30339 PR middle-end/27810
30340 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
30341 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
30342 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
30343 a separate statement.
30344 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
30345 (lookup_tmp_var): Likewise.
30346 (is_gimple_formal_tmp_or_call_rhs): Remove.
30347 (is_gimple_reg_or_call_rhs): Rename to ...
30348 (is_gimple_reg_rhs_or_call): ... this.
30349 (is_gimple_mem_or_call_rhs): Rename to ...
30350 (is_gimple_mem_rhs_or_call): ... this.
30351 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
30352 DECL_GIMPLE_REG_P only if is_formal is true.
30353 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
30354 for non-proper post-modify expression gimplification.
30355 (gimplify_self_mod_expr): For post-modify expressions gimplify
30356 the lvalue to a minimal lvalue.
30357 (rhs_predicate_for): Remove formal temp case.
30358 (gimplify_modify_expr_rhs): Likewise.
30359 (gimplify_addr_expr): Use is_gimple_reg.
30360 (gimplify_expr): Remove formal temp cases.
30361 (gimple_regimplify_operands): Likewise.
30362 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
30363 and FILTER_EXPR like constants.
30364 * gimple.c (walk_gimple_op): Fix val_only initialization, use
30365 is_gimple_reg.
30366 (is_gimple_formal_tmp_rhs): Remove.
30367 (is_gimple_reg_rhs): Remove special casing.
30368 (is_gimple_mem_rhs): Fix.
30369 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
30370 (is_gimple_formal_tmp_var): Remove.
30371 (is_gimple_formal_tmp_reg): Likewise.
30372 (is_gimple_min_lval): Allow invariant component ref parts.
30373 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
30374 is_gimple_formal_tmp_reg): Remove declarations.
30375 * tree-cfg.c (verify_expr): Verify that variables with address
30376 taken do not have DECL_GIMPLE_REG_P set.
30377 * tree-mudflap.c (mf_build_check_statement_for): Use
30378 force_gimple_operand instead of gimplify_expr.
30379
8de9b877
AZ
303802009-03-31 Ayal Zaks <zaks@il.ibm.com>
30381
30382 * modulo-sched.c (sms_schedule_by_order): Pass the actual
30383 schedulable rows to compute_split_row.
30384
b5e3caf2
BE
303852009-03-31 Ben Elliston <bje@au.ibm.com>
30386
30387 PR target/31635
30388 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
30389 OPT_mvrsave.
30390
9752c4ad
AM
303912009-03-31 Alan Modra <amodra@bigpond.net.au>
30392
30393 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
30394 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
30395 * configure: Regenerate.
30396 * config.in: Regenerate.
30397 * config/rs6000/rs6000.opt (mtls-markers): Add.
30398 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
30399 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
30400 (tls_ld_aix, tls_ld_sysv): Likewise.
30401 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
30402 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
30403
b597d1b6
AM
304042009-03-31 Alan Modra <amodra@bigpond.net.au>
30405
30406 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
30407
a203a221
JH
304082009-03-30 Jan Hubicka <jh@suse.cz>
30409
b597d1b6
AM
30410 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
30411 out of RESX.
30412 (tree_remove_unreachable_handlers): Cleanup EH predecestor
30413 detection and label handling.
a203a221 30414
5b0c0b2c
VM
304152009-03-30 Vladimir Makarov <vmakarov@redhat.com>
30416
30417 * ira-int.h (ira_allocno): Rename left_conflicts_num to
30418 left_conflicts_size.
30419 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
30420 ALLOCNO_LEFT_CONFLICTS_SIZE.
30421
30422 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
30423 remove_allocno_from_bucket_and_push,
30424 allocno_spill_priority_compare, push_allocnos_to_stack,
30425 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
30426 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
30427 (setup_allocno_left_conflicts_num): Ditto. Rename to
30428 setup_allocno_left_conflicts_size.
30429 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
30430 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
30431 setup_allocno_left_conflicts_size instead of
30432 setup_allocno_left_conflicts_num.
30433
30434 * ira-build.c (ira_create_allocno): Use
30435 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
30436 ALLOCNO_LEFT_CONFLICTS_NUM.
2ba9daa7 30437
9a48a93f
VM
304382009-03-30 Vladimir Makarov <vmakarov@redhat.com>
30439
30440 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
30441 instead of DF_LR_OUT.
30442
30443 * ira-lives.c (process_bb_node_lives): Ditto.
30444
30445 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
30446 instead of DF_LR_{OUT,IN}.
30447
30448 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
30449
30450 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
30451
4c936d4f
JH
304522009-03-30 Jan Hubicka <jh@suse.cz>
30453
30454 * except.c (label_to_region_map): Fix thinko.
30455
f4d9f129
SE
304562009-03-30 Steve Ellcey <sje@cup.hp.com>
30457
30458 PR middle-end/38237
30459 * tree.h (tree_find_value): New declaration.
30460 * tree.c (tree_find_value): New function.
30461 * varasm.c (assemble_external): Avoid duplicate entries on lists.
30462
b3f27c15
JJ
304632009-03-30 Jakub Jelinek <jakub@redhat.com>
30464
30465 PR debug/39563
30466 * c-decl.c (struct c_binding): Add locus field.
30467 (bind): Add locus argument, set locus field from it.
30468 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
30469 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
30470 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
30471 implicitly_declare, undeclared_variable, lookup_label,
30472 declare_label, c_make_fname_decl, c_builtin_function,
30473 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
30474 bind callers.
30475
ad41bd84 304762009-03-30 H.J. Lu <hongjiu.lu@intel.com>
680e8a00
L
30477
30478 PR target/38781
30479 * config/i386/i386.c (classify_argument): Check total size of
30480 structure.
30481
133f9369
MJ
304822009-03-30 Martin Jambor <mjambor@suse.cz>
30483
30484 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
30485 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
30486 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
30487 respectively.
30488
30489 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
30490 seen_variable_array_ref while also traversing a union.
30491
30492 * tree-inline.c (optimize_inline_calls): Do not call
30493 cgraph_node_remove_callees.
30494 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
30495 (pass_remove_cgraph_callee_edges): New variable.
30496 * passes.c (init_optimization_passes): Add
30497 pass_remove_cgraph_callee_edges after early inlining and before all
30498 late intraprocedural passes.
30499
30500 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
30501
1190f2eb
PB
305022009-03-30 Paolo Bonzini <bonzini@gnu.org>
30503
30504 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
30505 Fix typos in names.
30506
fedc1775
PB
305072009-03-30 Paolo Bonzini <bonzini@gnu.org>
30508
fcb82ab0
UB
30509 * combine.c (simplify_comparison): Use have_insn_for.
30510 * dojump.c (do_jump): Likewise.
fedc1775 30511
65c5ae8b
PB
305122009-03-30 Paolo Bonzini <bonzini@gnu.org>
30513
30514 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
30515 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
30516 sparc_compare_op0 like sparc_compare_emitted used to be handled.
30517 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
30518 instead of sparc_compare_emitted.
30519 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
30520 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
30521 instead of sparc_compare_emitted.
30522
d25aa7ab
PB
305232009-03-30 Paolo Bonzini <bonzini@gnu.org>
30524
30525 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
30526 enter/exit cfglayout mode.
30527 (pass_partition_block): Require it.
30528 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
30529 (combine_instructions): Track basic blocks instead of labels.
30530 (update_cfg_for_uncondjump): New.
30531 (try_combine): Use it. Update jumps after rescanning.
30532 (pass_combine): Require PROP_cfglayout.
30533 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
30534
9c9e26f5
PB
305352009-03-30 Paolo Bonzini <bonzini@gnu.org>
30536
fcb82ab0
UB
30537 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
30538 Provide/destroy PROP_cfglayout respectively.
30539 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
30540 * tree-pass.h (PROP_cfglayout): New.
9c9e26f5 30541
28ddeea1
PB
305422009-03-30 Paolo Bonzini <bonzini@gnu.org>
30543
30544 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
30545 fold_convert_const_fixed_from_fixed,
30546 fold_convert_const_fixed_from_int,
30547 fold_convert_const_fixed_from_real, fold_negate_const): Do not
30548 set TREE_CONSTANT_OVERFLOW.
30549 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
30550 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
30551
ebfd146a
IR
305522009-03-30 Ira Rosen <irar@il.ibm.com>
30553
30554 * tree-vect-loop-manip.c: New file.
30555 * tree-vectorizer.c: Update documentation and included files.
30556 (vect_loop_location): Make extern.
30557 (rename_use_op): Move to tree-vect-loop-manip.c
2ba9daa7
AS
30558 (rename_variables_in_bb, rename_variables_in_loop,
30559 slpeel_update_phis_for_duplicate_loop,
ebfd146a
IR
30560 slpeel_update_phi_nodes_for_guard1,
30561 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
30562 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
30563 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
2ba9daa7 30564 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
ebfd146a
IR
30565 find_loop_location): Likewise.
30566 (new_stmt_vec_info): Move to tree-vect-stmts.c.
30567 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
30568 get_vectype_for_scalar_type, vect_is_simple_use,
30569 supportable_widening_operation, supportable_narrowing_operation):
30570 Likewise.
30571 (bb_in_loop_p): Move to tree-vect-loop.c.
2ba9daa7
AS
30572 (new_loop_vec_info, destroy_loop_vec_info,
30573 reduction_code_for_scalar_code, report_vect_op,
ebfd146a
IR
30574 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
30575 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
30576 (vect_supportable_dr_alignment): Likewise.
30577 * tree-vectorizer.h (tree-data-ref.h): Include.
30578 (vect_loop_location): Declare.
30579 Reorganize function declarations according to the new file structure.
30580 * tree-vect-loop.c: New file.
2ba9daa7 30581 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
ebfd146a
IR
30582 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
30583 * tree-vect-data-refs.c: New file.
30584 * tree-vect-patterns.c (timevar.h): Don't include.
30585 * tree-vect-stmts.c: New file.
2ba9daa7 30586 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
ebfd146a 30587 tree-vect-slp.c, tree-vect-loop.c.
2ba9daa7
AS
30588 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
30589 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
ebfd146a
IR
30590 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
30591 (tree-vect-analyze.o): Remove.
30592 (tree-vect-transform.o): Likewise.
30593 (tree-vect-data-refs.o): Add rule.
2ba9daa7 30594 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
ebfd146a
IR
30595 tree-vect-slp.o): Likewise.
30596 (tree-vect-patterns.o): Remove redundant dependencies.
30597 (tree-vectorizer.o): Likewise.
30598 * tree-vect-slp.c: New file.
30599
40a1cfba
RW
306002009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30601
30602 * optc-gen.awk: Warn if an option flag has multiple different
30603 help strings.
30604
a9a7a9a2
SP
306052009-03-30 Sebastian Pop <sebastian.pop@amd.com>
30606
30607 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
30608 -floop-block): Document dependences on PPL, CLooG and Graphite.
30609
8ce94e44
JM
306102009-03-30 Joseph Myers <joseph@codesourcery.com>
30611
30612 PR rtl-optimization/323
30613 * c-common.c (c_fully_fold, convert_and_check,
30614 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
30615 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
30616 * c-common.def (EXCESS_PRECISION_EXPR): New.
30617 * c-cppbuiltin.c (builtin_define_float_constants): Define
30618 constants with enough digits for long double.
30619 * c-lex.c (interpret_float): Interpret constant with excess
30620 precision where appropriate.
30621 * c-opts.c (c_common_post_options): Set
30622 flag_excess_precision_cmdline. Give an error for
30623 -fexcess-precision=standard for C++ for processors where the
30624 option is significant.
30625 * c-parser.c (c_parser_conditional_expression): Handle excess
30626 precision in condition.
30627 * c-typeck.c (convert_arguments): Handle arguments with excess
30628 precision.
30629 (build_unary_op): Move excess precision outside operation.
30630 (build_conditional_expr): Likewise.
30631 (build_compound_expr): Likewise.
30632 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
30633 (build_modify_expr): Handle excess precision in RHS.
30634 (convert_for_assignment): Handle excess precision in converted
30635 value.
30636 (digest_init, output_init_element, process_init_element): Handle
30637 excess precision in initializer.
30638 (c_finish_return): Handle excess precision in return value.
30639 (build_binary_op): Handle excess precision in operands and add
30640 excess precision as needed for operation.
30641 * common.opt (-fexcess-precision=): New option.
30642 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
30643 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
30644 For standard excess precision, output explicit conversion to and
30645 truncation from XFmode.
30646 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
30647 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
30648 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
30649 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
30650 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
30651 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
30652 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
30653 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
30654 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
30655 define_splits, sqrt<mode>2): Disable where appropriate for
30656 standard excess precision.
30657 * convert.c (convert_to_real): Do not shorten arithmetic to type
30658 for which excess precision would be used.
30659 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
30660 * doc/invoke.texi (-fexcess-precision=): Document option.
30661 (-mfpmath=): Correct index entry.
30662 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
30663 flag_excess_precision): New.
30664 * langhooks.c (lhd_post_options): Set
30665 flag_excess_precision_cmdline.
30666 * opts.c (common_handle_option): Handle -fexcess-precision=.
30667 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
30668 init_excess_precision): New.
30669 (lang_dependent_init_target): Call init_excess_precision.
30670 * tree.c (excess_precision_type): New.
30671 * tree.h (excess_precision_type): Declare.
30672
1e57bf47
JM
306732009-03-30 Joseph Myers <joseph@codesourcery.com>
30674
30675 PR c/35235
30676 * c-typeck.c (build_component_ref): Do not copy qualifiers from
30677 non-lvalue to component.
30678
148e4216
JM
306792009-03-29 Joseph Myers <joseph@codesourcery.com>
30680
30681 PR preprocessor/34695
30682 * Makefile.in (c-opts.o): Depend on c-tree.h.
30683 * c-common.c: Move down include of diagnostic.h.
30684 (done_lexing, c_cpp_error): New.
30685 * c-common.h (done_lexing): Declare.
30686 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
30687 (parse_in).
30688 * c-opts.c: Include c-tree.h.
30689 (c_common_init_options): Set preprocessor error callback.
30690 (c_common_handle_option): Do not set preprocessor
30691 inhibit_warnings, warnings_are_errors, warn_system_headers,
30692 pedantic_errors or inhibit_warnings flags.
30693 (c_common_post_options): Do not check cpp_errors (parse_in).
30694 (c_common_finish): Do not output dependencies if there were
30695 errors. Do not check return value of cpp_finish.
30696 * c-ppoutput.c (pp_file_change): Set input_location.
30697 * c-tree.h (c_cpp_error): Declare.
30698 * diagnostic.c (diagnostic_set_info_translated): Also initialize
30699 override_column.
30700 (diagnostic_build_prefix): Check override_column.
30701 * diagnostic.h (diagnostic_info): Add override_column field.
30702 (diagnostic_override_column): Define.
30703
2ec5deb5
PB
307042009-03-28 Paolo Bonzini <bonzini@gnu.org>
30705
ba20e309
UB
30706 * c-common.c (c_expand_expr, c_staticp): Remove.
30707 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
30708 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
30709 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
30710 * c-gimplify.c (gimplify_compound_literal_expr,
30711 optimize_compound_literals_in_ctor): Remove.
30712 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
30713 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
30714 * c-semantics.c (emit_local_var): Remove.
30715
30716 * langhooks-def.h (lhd_expand_expr): Remove.
30717 * langhooks.c (lhd_expand_expr): Remove.
30718 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
30719
30720 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
30721 handling from c-semantics.c; don't call into langhook.
30722 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
30723 * gimplify.c (gimplify_compound_literal_expr,
30724 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
30725 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
30726 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
30727 as was done in c-gimplify.c.
30728 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
30729 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
30730 Move from c-common.h.
30731 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
2ec5deb5
PB
30732
30733 * tree.c (staticp): Do not call langhook.
30734 * langhooks.c (lhd_staticp): Delete.
30735 * langhooks-def.h (lhd_staticp): Delete prototype.
30736 (LANG_HOOKS_STATICP): Delete.
30737 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
30738
ba20e309
UB
30739 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
30740 instead of DECL_STMTs.
2ec5deb5 30741
928c19bb
JM
307422009-03-29 Joseph Myers <joseph@codesourcery.com>
30743
30744 PR c/456
30745 PR c/5675
30746 PR c/19976
30747 PR c/29116
30748 PR c/31871
30749 PR c/35198
30750 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
30751 void_type_node.
30752 (fold_call_expr): Return a NOP_EXPR from folding rather than the
30753 contained expression.
ba20e309 30754 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
928c19bb
JM
30755 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
30756 conditional expressions for C.
30757 (decl_constant_value_for_optimization): Move from
ba20e309 30758 decl_constant_value_for_broken_optimization in c-typeck.c. Check
928c19bb
JM
30759 whether optimizing and that the expression is a VAR_DECL not of
30760 array type instead of doing such checks in the caller. Do not
30761 check pedantic. Call gcc_unreachable for C++.
30762 * c-common.def (C_MAYBE_CONST_EXPR): New.
30763 * c-common.h (c_fully_fold, c_save_expr,
30764 decl_constant_value_for_optimization): New prototypes.
30765 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
30766 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
30767 EXPR_INT_CONST_OPERANDS): Define.
30768 * c-convert.c (convert): Strip nops from expression.
30769 * c-decl.c (groktypename): Take extra parameters expr and
30770 expr_const_operands. Update call to grokdeclarator.
30771 (start_decl): Update call to grokdeclarator. Add statement for
30772 expressions used in type of decl.
30773 (grokparm): Update call to grokdeclarator.
30774 (push_parm_decl): Update call to grokdeclarator.
30775 (build_compound_literal): Add parameter non_const and build a
30776 C_MAYBE_COSNT_EXPR if applicable.
30777 (grokdeclarator): Take extra parameters expr and
30778 expr_const_operands. Track expressions used in declaration
30779 specifiers and declarators. Fold array sizes and track whether
30780 they are constant expressions and whether they are integer
30781 constant expressions.
30782 (parser_xref_tag): Set expr and expr_const_operands fields in
30783 return value.
30784 (grokfield): Update call to grokdeclarator.
30785 (start_function): Update call to grokdeclarator.
30786 (build_null_declspecs): Set expr and expr_const_operands fields in
30787 return value.
30788 (declspecs_add_type): Handle expressions in typeof specifiers.
30789 * c-parser.c (c_parser_declspecs): Set expr and
30790 expr_const_operands fields for declaration specifiers.
30791 (c_parser_enum_specifier): Likewise.
30792 (c_parser_struct_or_union_specifier): Likewise.
30793 (c_parser_typeof_specifier): Likewise. Update call to
30794 groktypename. Fold expression as needed. Return expressions with
30795 type instead of adding statements.
30796 (c_parser_attributes): Update calls to c_parser_expr_list.
30797 (c_parser_statement_after_labels): Fold expression before passing
30798 to objc_build_throw_stmt.
30799 (c_parser_condition): Fold expression.
30800 (c_parser_asm_operands): Fold expression.
30801 (c_parser_conditional_expression): Use c_save_expr. Update call
30802 to build_conditional_expr.
30803 (c_parser_alignof_expression): Update call to groktypename.
30804 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
30805 original_code. Fold expression argument of va_arg. Create
30806 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
30807 argument to va_arg. Update calls to groktypename. Fold array
30808 index for offsetof. Verify that first argument to
30809 __builtin_choose_expr has integer type.
30810 (c_parser_postfix_expression_after_paren_type): Update calls to
30811 groktypename and build_compound_literal. Handle expressions with
30812 side effects in type name.
30813 (c_parser_postfix_expression_after_primary): Update call to
30814 c_parser_expr_list. Set original_code for calls to
30815 __builtin_constant_p.
30816 (c_parser_expr_list): Take extra parameter fold_p. Fold
30817 expressions if requested.
30818 (c_parser_objc_type_name): Update call to groktypename.
30819 (c_parser_objc_synchronized_statement): Fold expression.
30820 (c_parser_objc_receiver): Fold expression.
30821 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
30822 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
30823 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
30824 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
30825 (struct c_typespec): Add elements expr and expr_const_operands.
30826 (struct c_declspecs): Add elements expr and expr_const_operands.
30827 (groktypename, build_conditional_expr, build_compound_literal):
30828 Update prototypes.
30829 (in_late_binary_op): Declare.
30830 * c-typeck.c (note_integer_operands): New function.
30831 (in_late_binary_op): New variable.
30832 (decl_constant_value_for_broken_optimization): Move to c-common.c
30833 and rename to decl_constant_value_for_optimization.
30834 (default_function_array_conversion): Do not strip nops.
30835 (default_conversion): Do not call
30836 decl_constant_value_for_broken_optimization.
30837 (build_array_ref): Do not fold result.
30838 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
30839 result when operand is a VLA.
30840 (c_expr_sizeof_type): Update call to groktypename. Handle
30841 expressions included in type name. Use C_MAYBE_CONST_EXPR for
30842 result when operand names a VLA type.
30843 (build_function_call): Update call to build_compound_literal.
30844 Only fold result for calls to __builtin_* functions. Strip
30845 NOP_EXPR from INTEGER_CST returned from such functions. Fold
30846 the function designator.
30847 (convert_arguments): Fold arguments. Update call to
30848 convert_for_assignment.
30849 (build_unary_op): Handle increment and decrement of
30850 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
30851 decrement earlier. Fold operand of increment and decrement.
30852 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
30853 built for integer operand. Wrap returns that are INTEGER_CSTs
30854 without being integer constant expressions or that have integer
30855 constant operands without being INTEGER_CSTs.
30856 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
30857 (build_conditional_expr): Add operand ifexp_bcp. Track whether
30858 result is an integer constant expression or can be used in
30859 unevaluated parts of one and avoid folding and wrap as
30860 appropriate. Fold operands before possibly doing -Wsign-compare
30861 warnings.
30862 (build_compound_expr): Wrap result for C99 if operands can be used
30863 in integer constant expressions.
30864 (build_c_cast): Update call to digest_init. Do not ignore
30865 overflow from casting floating-point constants to integers. Wrap
30866 results that could be confused with integer constant expressions,
30867 null pointer constants or floating-point constants.
30868 (c_cast_expr): Update call to groktypename. Handle expressions
30869 included in type name.
30870 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
30871 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
30872 Update calls to convert_for_assignment.
30873 (convert_for_assignment): Take new parameter
30874 null_pointer_constant. Do not strip nops or call
30875 decl_constant_value_for_broken_optimization. Set
30876 in_late_binary_op for conversions to boolean.
30877 (store_init_value): Update call to digest_init.
30878 (digest_init): Take new parameter null_pointer_constant. Do not
30879 call decl_constant_value_for_broken_optimization. pedwarn for
30880 initializers not constant expressions. Update calls to
30881 convert_for_assignment.
30882 (constructor_nonconst): New.
30883 (struct constructor_stack): Add nonconst element.
30884 (really_start_incremental_init, push_init_level, pop_init_level):
30885 Handle constructor_nonconst and nonconst element.
30886 (set_init_index): Call constant_expression_warning for array
30887 designators.
30888 (output_init_element): Fold value. Set constructor_nonconst as
30889 applicable. pedwarn for initializers not constant expressions.
30890 Update call to digest_init. Call constant_expression_warning
30891 where constant initializers are required.
30892 (process_init_element): Use c_save_expr.
30893 (c_finish_goto_ptr): Fold expression.
30894 (c_finish_return): Fold return value. Update call to
30895 convert_for_assignment.
30896 (c_start_case): Fold switch expression.
30897 (c_process_expr_stmt): Fold expression.
30898 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
ba20e309 30899 ensure statement expression is not evaluated in constant expression.
928c19bb
JM
30900 (build_binary_op): Track whether results are integer constant
30901 expressions or may occur in such, disable folding and wrap results
30902 as applicable. Fold operands for -Wsign-compare warnings unless
30903 in_late_binary_op.
30904 (c_objc_common_truthvalue_conversion): Handle results folded to
30905 integer constants that are not integer constant expressions.
30906 * doc/extend.texi: Document when typeof operands are evaluated,
30907 that condition of __builtin_choose_expr is an integer constant
30908 expression, and more about use of __builtin_constant_p in
30909 initializers.
30910
5babbcc0
RG
309112009-03-29 Richard Guenther <rguenther@suse.de>
30912
30913 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
30914 propagate addresses of array references.
30915
0340f2ba
SB
309162009-03-29 Steven Bosscher <steven@gcc.gnu.org>
30917
30918 * regmove.c (perhaps_ends_bb_p): Remove.
30919 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
30920 from INSN and check that the main loop stays within that basic block.
30921 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
30922 (regmove_forward_pass): Split out from regmove_optimize. Use
30923 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
30924 (regmove_backward_pass): Split out from regmove_optimize. Use
30925 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
30926 (regmove_optimize): Simplify.
30927
eeae74a1
L
309282009-03-29 H.J. Lu <hongjiu.lu@intel.com>
30929
30930 PR target/39545
30931 * config/i386/i386.c (classify_argument): Ignore flexible array
30932 member in struct and warn ABI change.
30933
a24078b2
L
309342009-03-29 H.J. Lu <hongjiu.lu@intel.com>
30935
30936 * config/i386/i386-protos.h (ix86_agi_dependent): New.
30937
30938 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
30939 (ix86_adjust_cost): Updated.
30940
a8da523f
JH
309412009-03-29 Jan Hubicka <jh@suse.cz>
30942
30943 PR middle-end/28850
30944 * tree-pass.h (pass_cleanup_eh): New function.
30945 (remove_unreachable_regions): Break code handling RTL
30946 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
30947 that can not be reached by runtime.
30948 (can_be_reached_by_runtime): New function.
30949 (label_to_region_map): New function.
30950 (num_eh_regions): New function.
30951 (rtl_remove_unreachable_regions): New function.
30952 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
30953 (remove_eh_region): New function.
30954 * except.h: Include sbitmap and vecprim.
30955 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
30956 num_eh_regions): Declare.
30957 * passes.c (init_optimization_passes): Schedule cleanup_eh.
ba20e309 30958 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
a8da523f
JH
30959 * tree-eh.c (tree_remove_unreachable_handlers): New function.
30960 (tree_empty_eh_handler_p): New function.
30961 (cleanup_empty_eh): New function.
30962 (cleanup_eh): New function.
30963 (pass_cleanup_eh): New function.
30964
98f358e5
JH
309652009-03-29 Jan Hubicka <jh@suse.cz>
30966
30967 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
30968 for removed regions.
30969
13a9fa44
JH
309702009-03-29 Jan Hubicka <jh@suse.cz>
30971
30972 * except.c (dump_eh_tree): Dump all datastructures.
30973
e38cf733
JH
309742009-03-29 Jan Hubicka <jh@suse.cz>
30975
30976 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
30977 (duplicate_eh_regions_1): Likewise.
30978 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
30979 vector; call EH verification.
30980 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
30981 Be ready for region being removed.
30982
12802c2b
JH
309832009-03-29 Jan Hubicka <jh@suse.cz>
30984
30985 * bitmap.c (bitmap_last_set_bit): New function.
30986 * bitmap.h (bitmap_last_set_bit): Declare.
30987
4ea80a41
DA
309882009-03-29 David Ayers <ayers@fsfe.org>
30989
30990 PR objc/27377
30991 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
30992 by calling objc_compare_types and surpress warnings about
30993 incompatible C pointers that are compatible ObjC pointers.
2ba9daa7 30994
4ea80a41 309952009-03-29 Adam Nemet <anemet@caviumnetworks.com>
3dc9eaa6
AN
30996
30997 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
30998 call initialize_inline_failed.
30999 (initialize_inline_failed): Move it from here ...
31000 * cgraph.c (initialize_inline_failed): ... to here.
31001 (cgraph_create_edge): Call initialize_inline_failed rather than
31002 setting inline_failed directly.
31003
7fb0ee07
BE
310042009-03-29 Ben Elliston <bje@au.ibm.com>
31005
31006 PR target/32542
31007 * sysv4.opt (msdata): Improve comment.
31008 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
31009 * sysv4.h (SVR4_ASM_SPEC): Likewise.
31010
0be77bf2
BE
310112009-03-29 Ben Elliston <bje@au.ibm.com>
31012
31013 PR target/30451
31014 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
31015 load and store attributes.
31016
593812b6
BE
310172009-03-29 Ben Elliston <bje@au.ibm.com>
31018
31019 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
31020 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
31021 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
31022 * doc/extend.texi (X86 Built-in Functions): Add index entries for
31023 __builtin_infq and __builtin_huge_valq.
31024
8272d11d
AS
310252009-03-28 Anatoly Sokolov <aesok@post.ru>
31026
31027 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
31028 atmega8m1 devices.
31029 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
31030 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
31031
74fe548b
XDL
310322009-03-28 Xinliang David Li <davidxl@google.com>
31033
2ba9daa7 31034 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
74fe548b
XDL
31035 (do_dbg_cnt): New function.
31036
33977f81
JH
310372009-03-28 Jan Hubicka <jh@suse.cz>
31038
31039 Merge from pretty-ipa:
31040
31041 2009-03-27 Jan Hubicka <jh@suse.cz>
ba20e309 31042
33977f81
JH
31043 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
31044 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
31045 * passes.c (function_called_by_processed_nodes_p): New.
31046 * ipa-pure-const.c (check_call): Fix handling of operands.
31047 (analyze_function): Dump debug output for skipped bodies.
31048 (local_pure_const): Use function_called_by_processed_nodes_p.
31049 * dwarf2out.c (reference_to_unused): Use output.
31050 * passes.c (do_per_function_toporder): Likewise.
31051
31052 2008-11-12 Jan Hubicka <jh@suse.cz>
31053
31054 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
31055 * ipa-pure-const.c (funct_state_d): Add can throw field; make
31056 state_set_in_source enum
31057 (check_decl): Ignore memory tags; do not set fake looping flags;
31058 dump diagnostics.
31059 (check_operand, check_tree, check_rhs_var, check_lhs_var,
31060 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
31061 (check_call, analyze_function): Rewrite.
31062 (check_stmt): New.
31063 (add_new_function): Update call of analyze_function.
31064 (generate_summary): Add call of analyze_function.
31065 (propagate): Propagate can_throw; handle state_set_in_source correctly.
31066 (local_pure_const): New function.
31067 (pass_local_pure_const): New pass.
31068 * ipa-inline.c (inline_transform): Set after_inlining.
31069 * tree-eh.c (stmt_can_throw_external): New.
31070 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
31071 work with aliasing built.
31072 * tree-flow.h (stmt_can_throw_external): New.
31073 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
31074 and local pure/const pass in early and late optimization queue.
ba20e309 31075
617f3897
MJ
310762009-03-28 Martin Jambor <mjambor@suse.cz>
31077
31078 * fold-const.c (get_pointer_modulus_and_residue): New parameter
31079 allow_func_align.
31080 (fold_binary): Allow function decl aligment consideration is the
31081 second argument is integer constant one.
31082 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
31083 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
31084 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
31085
fe89fbc5
JH
310862009-03-28 Jan Hubicka <jh@suse.cz>
31087
31088 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
31089 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
31090 * function.h (rtl_data): Add nothrow flag.
31091 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
31092 set DECL_NOTHROW for AVAILABLE functions.
31093
574872ff
JJ
310942009-03-28 Jakub Jelinek <jakub@redhat.com>
31095
b3bf8855
JJ
31096 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
31097 following vector keyword has expansion starting with pixel or bool
31098 keyword, expand vector to __vector and pixel or bool to __pixel or
31099 __bool.
31100
574872ff
JJ
31101 PR c++/39554
31102 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
31103 warn_if_disallowed_function_p): Removed.
31104 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
31105 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
31106 warning_if_disallowed_function_p.
31107 * flags.h (warn_if_disallowed_function_p,
31108 warn_disallowed_functions): Removed.
31109 * common.opt (Wdisallowed-function-list=): Removed.
31110 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
31111
b005da11
RG
311122009-03-28 Richard Guenther <rguenther@suse.de>
31113
31114 PR tree-optimization/38723
31115 * tree-ssa-pre.c (compute_avail): Add all default definitions to
31116 the entry block.
31117
1de812a6
JH
311182009-03-28 Jan Hubicka <jh@suse.cz>
31119
31120 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
31121 test introduced by my previous patch.
31122
fbb789d4
RG
311232009-03-28 Richard Guenther <rguenther@suse.de>
31124
31125 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
31126 the PHIs value undefined.
31127
6f1873a1
JH
311282009-03-28 Jan Hubicka <jh@suse.cz>
31129
31130 * tree-pass.h (pass_fixup_cfg): New pass.
31131 * ipa-inline.c (inline_transform): Set
31132 always_inline_functions_inlined/after_inlining.
31133 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
31134 (pass_fixup_cfg): New pass.
31135 * passes.c (init_optimization_passes): Add fixup_cfg.
31136
17021bc8
RG
311372009-03-28 Richard Guenther <rguenther@suse.de>
31138
31139 PR tree-optimization/38458
31140 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
31141 argument use the arguments copy-of value.
31142
e8114fba
RG
311432009-03-28 Richard Guenther <rguenther@suse.de>
31144
31145 PR tree-optimization/38180
31146 * tree-ssa-ccp.c (get_default_value): Simplify.
31147 (likely_value): Likewise.
31148 (surely_varying_stmt_p): Properly handle VOP case.
31149 (ccp_initialize): Likewise.
31150 (ccp_fold): Handle propagating through *&.
31151 (fold_const_aggregate_ref): Also handle decls.
31152
257eb6e3
JH
311532009-03-28 Jan Hubicka <jh@suse.cz>
31154
31155 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
31156 * cgraph.h (cgraph_node): Likewise.
31157 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
31158 (cgraph_reset_node): Use process flag.
31159 (cgraph_mark_functions_to_output): Likewise.
31160 (cgraph_expand_function): Likewise.
31161 (cgraph_expand_all_functions): Likewise.
31162 (cgraph_output_in_order): Likewise.
31163 * dwarf2out.c (reference_to_unused): Likewise.
31164 * passes.c do_per_function_toporder): Likewise.
31165
61a05df1
JH
311662009-03-28 Jan Hubicka <jh@suse.cz>
31167
31168 Bring from lto-branch:
ba20e309 31169
61a05df1
JH
31170 2008-09-03 Doug Kwan <dougkwan@google.com>
31171
31172 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
31173 enums instead of reason strings.
31174 * cgraph.c (cgraph_create_edge): Same.
31175 (cgraph_inline_failed_string): New function.
31176 * cgraph.h (cgraph_inline_failed_t): New enum type.
31177 (cgraph_inline_failed_string): New prototype.
31178 (struct cgraph_edge): Change type of INLINED_FAILED from constant
31179 char pointer to cgraph_inline_failed_t.
31180 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
31181 (cgraph_default_inline_p): Ditto.
60839f5d 31182 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
61a05df1
JH
31183 to cgraph_inline_failed_t pointer.
31184 * cif-code.def: New file.
31185 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
31186 reason string.
31187 (cgraph_check_inline_limits): Change type of REASON to pointer to
31188 cgraph_inline_failed_t. Replace reason strings with enums.
31189 (cgraph_default_inline_p): Ditto.
31190 (cgraph_recursive_inlining_p): Ditto.
31191 (update_caller_keys): Change type of FAILED_REASON to
31192 cgraph_inline_failed_t.
31193 (cgraph_set_inline_failed): Change type of REASON to pointer to
31194 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
31195 convert enums to strings for text output.
31196 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
31197 to be of type cgraph_inline_failed_t. Replace reason strings with
31198 enums. Call cgraph_inline_failed_string to covert enums
31199 to strings for text output.
31200 (cgraph_decide_inlining): Replace reason strings with enums.
31201 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
31202 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
31203 for text output.
31204 * tree-inline.c (expand_call_inline): Change type of REASON
31205 to cgraph_inline_failed_t. Replace reason strings with enums.
31206 Call cgraph_inline_failed_string for text output.
31207 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
31208 (cgraph.o): Ditto.
31209
144e8aac
JH
312102009-03-28 Jan Hubicka <jh@suse.cz>
31211
31212 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
31213 cgraph_clone_node): Remove master clone handling.
31214 (cgraph_is_master_clone, cgraph_master_clone): Remove.
31215 * cgraph.h (master_clone): Remove.
31216 (cgraph_is_master_clone, cgraph_master_clone): Remove.
31217 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
31218 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
31219
4a371c8d
JH
312202009-03-28 Jan Hubicka <jh@suse.cz>
31221
31222 * cgraph.c (cgraph_function_body_availability): Functions declared
31223 inline are always safe to assume that it is not going to be replaced.
31224
6cdb0ee3
RG
312252009-03-28 Richard Guenther <rguenther@suse.de>
31226
31227 PR tree-optimization/38513
31228 * tree-ssa-pre.c (eliminate): Remove redundant stores.
31229 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
31230 EXC_PTR_EXPR and FILTER_EXPR.
31231 (get_ref_from_reference_ops): Likewise.
31232
8ca1fd76
RG
312332009-03-28 Richard Guenther <rguenther@suse.de>
31234
31235 PR tree-optimization/38968
31236 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
31237 Use FLOOR_MOD_EXPR to compute misalignment.
31238
a254e44d
RG
312392009-03-28 Richard Guenther <rguenther@suse.de>
31240
31241 PR tree-optimization/37795
31242 * tree.h (combine_comparisons): Declare.
31243 * fold-const.c (combine_comparisons): Export.
31244 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
31245 comparisons.
31246 (ifcombine_iforif): Use combine_comparisons.
31247
a8ee227c
JH
312482009-03-28 Jan Hubicka <jh@suse.cz>
31249
31250 * tree-eh.c (inlinable_call_p): New function.
31251 (make_eh_edges): Use it.
31252 (verify_eh_edges): Use it.
31253 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
31254 * except.c (reachable_next_level): Add inlinable_function argument
31255 (sjlj_find_directly_reachable_regions): Update.
31256 (add_reachable_handler): Do not set saw_any_handlers.
31257 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
31258 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
31259 Add new inlinable call parameter.
31260 (can_throw_internal, can_throw_external): Update.
31261 * except.h (can_throw_internal_1, can_throw_external_1,
31262 foreach_reachable_handler): Update declaration.
31263
52c0e446
JM
312642009-03-28 Joseph Myers <joseph@codesourcery.com>
31265
31266 * config/arm/t-arm-coff, config/h8300/coff.h,
31267 config/i386/i386-aout.h, config/i386/i386-coff.h,
31268 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
31269 config/pdp11/2bsd.h, config/rs6000/aix41.h,
31270 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
31271 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
31272 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
31273 sys-types.h: Remove.
31274 * Makefile.in: Remove protoize and fixproto support and references
31275 in comments.
31276 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
31277 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
31278 Remove.
31279 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
31280 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
31281 unprotoize$(exeext).
31282 (rest.encap): Don't depend on $(STMP_FIXPROTO)
31283 (.PHONY): Don't depend on proto.
31284 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
31285 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
31286 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
31287 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
31288 build/gen-protos.o, build/scan.o, xsys-protos.h,
31289 build/fix-header$(build_exeext), build/fix-header.o,
31290 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
31291 stmp-install-fixproto): Remove.
31292 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
31293 SYSCALLS.c or fixproto files.
31294 (install-common): Don't install protoize.
31295 (install-headers-tar, install-headers-cpio, install-headers-cp):
31296 Don't depend on $(STMP_FIXPROTO).
31297 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
31298 install fixproto files or write out fixproto settings.
31299 (uninstall): Don't uninstall protoize.
31300 * config.gcc (use_fixproto): Remove.
31301 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
31302 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
31303 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
31304 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
31305 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
31306 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
31307 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
31308 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
31309 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
31310 * config/t-vxworks (STMP_FIXPROTO): Remove.
31311 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
31312 STMP_FIXPROTO): Remove.
31313 * config.in, configure: Regenerate.
31314 * crtstuff.c (gid_t, uid_t): Don't undefine.
31315 * doc/install.texi: Change m68k-coff to m68k-elf in example.
31316 (arm-*-coff, arm-*-aout: Remove target entries.
31317 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
31318 Remove mention of AIX 4.1.
31319 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
31320 * doc/invoke.texi (Running Protoize): Remove.
31321 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
31322 (Protoize Caveats): Remove.
31323 * tsystem.h: Update comments on headers assumed to exist.
31324
20a07f44
VM
313252009-03-27 Vladimir Makarov <vmakarov@redhat.com>
31326
31327 * genautomata.c: Add a new year to the copyright. Add a new
31328 reference.
31329 (struct insn_reserv_decl): Add comments for member bypass_list.
31330 (find_bypass): Remove.
31331 (insert_bypass): New.
31332 (process_decls): Use insert_bypass.
31333 (output_internal_insn_latency_func): Output all bypasses with the
31334 same input insn in one switch case.
31335
31336 * rtl.def (define_bypass): Describe bypass choice.
31337 * doc/md.texi (define_bypass): Ditto.
31338
3a0d06c1
RB
313392009-03-27 Richard Guenther <rguenther@suse.de>
31340
31341 * gimplify.c (mark_addressable): Export.
31342 * tree-flow.h (mark_addressable): Declare.
31343 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
31344 * tree-ssa.c (verify_phi_args): Verify that address taken
31345 variables have TREE_ADDRESSABLE set.
31346
313472009-03-27 Richard Guenther <rguenther@suse.de>
31348
31349 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
31350 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
31351 Do not mark decls TREE_ADDRESSABLE.
31352 (build_fold_addr_expr): Adjust.
31353 (fold_addr_expr): Remove.
31354 (fold_unary): Use build_fold_addr_expr.
31355 (fold_comparison): Likewise.
31356 (split_address_to_core_and_offset): Likewise.
31357 * coverage.c (tree_coverage_counter_addr): Mark the array decl
31358 TREE_ADDRESSABLE.
31359 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
31360 (gimplify_modify_expr_to_memcpy): Mark source and destination
31361 addressable.
31362 * omp-low.c (create_omp_child_function): Mark the object decl
31363 TREE_ADDRESSABLE.
31364 (lower_rec_input_clauses): Mark the var we take the address of
31365 TREE_ADDRESSABLE.
31366 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
31367
2ac26e15
L
313682009-03-27 H.J. Lu <hongjiu.lu@intel.com>
31369
31370 PR middle-end/39315
31371 * cfgexpand.c (expand_one_stack_var_at): Change alignment
31372 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
31373
472c7fbd
RG
313742009-03-27 Richard Guenther <rguenther@suse.de>
31375
31376 PR tree-optimization/39120
31377 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
31378 constraints.
31379 (handle_lhs_call): Process return constraints. Add escape
31380 constraints if necessary.
31381 (handle_const_call): Fill out return constraints. Make nested
31382 case more precise. Avoid consttmp if possible.
31383 (handle_pure_call): Fill out return constraints. Avoid
31384 callused if possible.
31385 (find_func_aliases): Simplify call handling.
31386
313872009-03-27 Richard Guenther <rguenther@suse.de>
31388
31389 PR tree-optimization/39120
31390 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
31391 as a representative.
31392 (solve_graph): Do propagate CALLUSED.
31393 (handle_pure_call): Use a scalar constraint from CALLUSED for
31394 the return value.
31395 (find_what_p_points_to): CALLUSED shall not appear in poins-to
31396 solutions.
31397
d9223014
L
313982009-03-27 H.J. Lu <hongjiu.lu@intel.com>
31399
31400 PR c/39323
31401 * c-common.c (handle_aligned_attribute): Properly check alignment
31402 overflow. Use (1U << i) instead of (1 << i).
31403
ba20e309 31404 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
d9223014
L
31405
31406 * expr.h (get_mem_align_offset): Updated.
31407
31408 * tree.h (tree_decl_common): Change align to "unsigned int" and
31409 move it before pointer_alias_set.
31410
689b689c
L
314112009-03-27 H.J. Lu <hongjiu.lu@intel.com>
31412 Jakub Jelinek <jakub@redhat.com>
31413
31414 PR target/38034
31415 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
31416 gr_register_operand with gr_reg_or_0_operand.
31417 (cmpxchg_rel_di): Likewise.
31418 (sync_lock_test_and_set<mode>): Likewise.
31419
c619e982
L
314202009-03-27 H.J. Lu <hongjiu.lu@intel.com>
31421
31422 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
31423 (true_regnum): Likewise.
31424
31425 * rtlanal.c (subreg_info): Moved to ...
31426 * rtl.h (subreg_info): Here. New.
31427 (subreg_get_info): New.
31428
31429 * rtlanal.c (subreg_get_info): Make it extern.
31430
51212b32
L
314312009-03-27 H.J. Lu <hongjiu.lu@intel.com>
31432
31433 PR target/39472
31434 * config/i386/i386.c (ix86_abi): New.
31435 (override_options): Handle -mabi=.
ba20e309 31436 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
51212b32
L
31437 (ix86_call_abi_override): Likewise.
31438 (init_cumulative_args): Likewise.
31439 (function_arg_advance): Likewise.
31440 (function_arg_64): Likewise.
31441 (function_arg): Likewise.
31442 (ix86_pass_by_reference): Likewise.
31443 (ix86_function_value_regno_p): Likewise.
31444 (ix86_build_builtin_va_list_abi): Likewise.
31445 (setup_incoming_varargs_64): Likewise.
31446 (is_va_list_char_pointer): Likewise.
31447 (ix86_init_machine_status): Likewise.
ba20e309 31448 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
51212b32
L
31449 (ix86_function_type_abi): Return enum calling_abi. Rewrite
31450 for 64bit. Replace DEFAULT_ABI with ix86_abi.
ba20e309 31451 (ix86_function_abi): Make it static and return enum calling_abi.
51212b32
L
31452 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
31453 with ix86_abi.
31454 (ix86_fn_abi_va_list): Updated.
31455
31456 * config/i386/i386.h (ix86_abi): New.
31457 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
31458 (CONDITIONAL_REGISTER_USAGE): Likewise.
31459 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
31460 (machine_function): Likewise.
31461
31462 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
31463 with ix86_abi.
31464 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
31465 (STACK_BOUNDARY): Likewise.
31466 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
31467
31468 * config/i386/i386.opt (mabi=): New.
31469
31470 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
31471 return enum calling_abi.
31472 (ix86_function_type_abi): Likewise.
31473 (ix86_function_abi): Removed.
31474
31475 * doc/invoke.texi: Document -mabi= option for x86.
31476
7338ea63
KG
314772009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31478
31479 * builtins.c (real_dconstp): Delete.
31480 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
31481
68599f33
DS
314822009-03-27 Dodji Seketeli <dodji@redhat.com>
31483 Jakub Jelinek <jakub@redhat.com>
31484
31485 PR debug/37959
31486 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
31487 (gen_subprogram_die): When a function is explicit, generate the
31488 DW_AT_explicit attribute.
31489 * langhooks.h (struct lang_hooks_for_decls): Add
31490 function_decl_explicit_p langhook.
31491 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
31492 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
31493
9f5e9983
JJ
314942009-03-27 Jakub Jelinek <jakub@redhat.com>
31495
64d7685c
JJ
31496 * builtins.c (fold_builtin_memory_op): Optimize memmove
31497 into memcpy if we can prove source and destination don't overlap.
31498
9f5e9983
JJ
31499 * tree-inline.c: Include gt-tree-inline.h.
31500 (clone_fn_id_num): New variable.
31501 (clone_function_name): New function.
31502 (tree_function_versioning): Use it.
31503 * Makefile.in (GTFILES): Add tree-inline.c.
31504
e54d52a8
MM
315052009-03-27 Mark Mitchell <mark@codesourcery.com>
31506
31507 * BASE-VER: Change to 4.5.0.
31508
e9d51dc6
XDL
315092009-03-27 Xinliang David Li <davidxl@google.com>
31510
31511 PR tree-optimization/39557
31512 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
31513
4577cea1
XDL
315142009-03-27 Xinliang David Li <davidxl@google.com>
31515
31516 PR tree-optimization/39548
2ba9daa7 31517 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
4577cea1
XDL
31518 candidate check.
31519
0f7464f4
L
315202009-03-27 H.J. Lu <hongjiu.lu@intel.com>
31521
31522 * c-common.c (pointer_int_sum): Use %wd on return from
31523 tree_low_cst.
31524
a8847a7f
L
315252009-03-27 H.J. Lu <hongjiu.lu@intel.com>
31526
31527 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
31528 on return from tree_low_cst.
31529
b0957daf
AP
315302009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
31531
31532 PR c++/36799
ba20e309
UB
31533 * ginclude/stdarg.h (va_copy): Define also for
31534 __GXX_EXPERIMENTAL_CXX0X__.
b0957daf 31535
a5f805df
MLI
315362009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
31537
31538 PR c++/35652
31539 * builtins.h (c_strlen): Do not warn here.
31540 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
31541 * c-common.c (pointer_int_sum): Take an explicit location.
31542 Warn about offsets out of bounds.
31543 * c-common.h (pointer_int_sum): Adjust declaration.
31544
6f401211
RW
315452009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31546
a5f805df
MLI
31547 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
31548 markup glitch.
6f401211 31549
5a59b39e
JJ
315502009-03-26 Jakub Jelinek <jakub@redhat.com>
31551
31552 PR c++/39554
31553 * opts.c (warn_if_disallowed_function_p): Don't assume
31554 get_callee_fndecl must return non-NULL.
31555
d5f89b53
VM
315562009-03-26 Vladimir Makarov <vmakarov@redhat.com>
31557
31558 PR rtl-optimization/39522
31559 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
31560 when reg_reloaded_valid is set.
31561
61238a79
UW
315622009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31563
31564 * config/spu/divv2df3.c: New file.
31565 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
31566 (DPBIT_FUNCS): Filter out _div_df.
31567
03f8829b
BS
315682009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
31569
31570 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
31571 a jump insn, count that jump in the distance to the loop start.
31572
9fdcdc74
KK
315732009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
31574
31575 PR target/39523
31576 * config/sh/sh.c (calc_live_regs): Fix condition for global
31577 registers except PIC_OFFSET_TABLE_REGNUM.
31578
46994828
KT
315792009-03-25 Kai Tietz <kai.tietz@onevision.com>
31580
31581 PR/39518
31582 * doc/invoke.texi (-mconsole): New.
31583 (-mcygwin): New.
31584 (-mno-cygwin): New.
31585 (-mdll): New.
31586 (-mnop-fun-dllimport): New.
31587 (-mthread): New.
31588 (-mwin32): New.
31589 (-mwindows): New.
31590 (sub section "i386 and x86-64 Windows Options"): New.
31591
60839f5d 315922009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
370017b4
RC
31593
31594 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
31595 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
31596
ae560440
RG
315972009-03-25 Richard Guenther <rguenther@suse.de>
31598
31599 PR middle-end/39497
31600 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
31601 of -Wno-error.
31602
cd510f15
AM
316032009-03-25 Andrey Belevantsev <abel@ispras.ru>
31604
31605 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
31606 neither of haifa/selective schedulers are working.
31607
44ab0f0e
RW
316082009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31609
31610 * doc/invoke.texi (Debugging Options): Fix description of
31611 -fno-merge-debug-strings.
31612
ad9646c7
HPN
316132009-03-24 Hans-Peter Nilsson <hp@axis.com>
31614
e6142656
HPN
31615 * config/cris/libgcc.ver: New version-script.
31616 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
31617
ad9646c7
HPN
31618 * configure.ac <GAS features, nop mnemonic>: Add pattern
31619 crisv32-*-* for "nop".
ba20e309 31620 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
ad9646c7
HPN
31621 * configure: Regenerate.
31622
09ac4473
IR
316232009-03-24 Ira Rosen <irar@il.ibm.com>
31624
31625 PR tree-optimization/39529
31626 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
31627 mark_sym_for_renaming for the tag copied to the new vector
31628 pointer.
31629
d94a427e
AL
316302009-03-24 Arthur Loiret <aloiret@debian.org>
31631
ba20e309 31632 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
d94a427e
AL
31633 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
31634 EXTRA_SPEC_FUNCTIONS.
31635 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
31636 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
31637 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
31638 -march and -mtune options.
31639
60839f5d 316402009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
722d07aa
RC
31641
31642 * config/m68k/t-rtems: Add m5329 multilib.
31643
603f5959
DS
316442009-03-24 Dodji Seketeli <dodji@redhat.com>
31645 Jakub Jelinek <jakub@redhat.com>
31646
31647 PR debug/39524
31648 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
31649 nodes.
31650
c5cdb03f
JJ
316512009-03-23 Jakub Jelinek <jakub@redhat.com>
31652
31653 PR c/39495
31654 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
31655 instead of c_parser_expression_conv, if original_code isn't one of the
31656 4 allowed comparison codes, fail.
31657
3691626c
RG
316582009-03-23 Richard Guenther <rguenther@suse.de>
31659
31660 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
31661 * tree.h (struct tree_type): Likewise.
31662 * reload.h (struct insn_chain): Likewise.
31663 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
31664 * function.h (struct function): Likewise.
31665 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
31666
88ccb72a
JJ
316672009-03-23 Jakub Jelinek <jakub@redhat.com>
31668
31669 PR tree-optimization/39516
31670 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
31671
60839f5d 316722009-03-23 Bingfeng Mei <bmei@broadcom.com>
a583a67e 31673
2ba9daa7 31674 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
a583a67e
BM
31675 should be set true if BITS_PER_WORD of target is bigger than 32
31676
f82162f8
HPN
316772009-03-22 Hans-Peter Nilsson <hp@axis.com>
31678
31679 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
31680 Translate -B-options to -rpath-link. Correct existing
31681 rpath-link and conditionalize on !nostdlib.
31682
048fd785
RW
316832009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31684
31685 * doc/extend.texi (Function Attributes, Variable Attributes):
31686 Fix typos.
31687 * doc/invoke.texi (Debugging Options, Optimize Options)
31688 (i386 and x86-64 Options, MCore Options): Likewise.
31689
6e75c1a9
JJ
316902009-03-20 Jakub Jelinek <jakub@redhat.com>
31691
31692 PR debug/37890
31693 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
31694 it for block local namespace aliases.
31695 (gen_decl_die): Pass context_die to gen_namespace_die.
31696
ea1199ee
JJ
316972009-03-19 Jakub Jelinek <jakub@redhat.com>
31698
31699 PR c/39495
31700 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
31701 minimum or maximum value.
31702
58929c10
AO
317032009-03-19 Alexandre Oliva <aoliva@redhat.com>
31704
31705 * reginfo.c (globalize_reg): Recompute derived reg sets.
31706
60839f5d 317072009-03-19 Ozkan Sezer <sezeroz@gmail.com>
234952b3
OS
31708
31709 PR target/39063
31710 * libgcc2.c (mprotect): Do not use signed arguments for
31711 VirtualProtect, use DWORD arguments. Also fix the 'may
31712 be used uninitialized' warning for the np variable.
31713
f57c2f04
JJ
317142009-03-19 Jakub Jelinek <jakub@redhat.com>
31715
31716 PR target/39496
31717 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
31718 functions using regparm calling conventions when not optimizing.
31719 (ix86_function_sseregparm): Similarly for sseregparm calling
31720 conventions.
31721
9e517d61
LF
317222009-03-19 Li Feng <nemokingdom@gmail.com>
31723
31724 PR middle-end/39500
31725 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
31726 dependence if the first conflict is after niter iterations.
31727
8ef20026
HPN
317282009-03-19 Hans-Peter Nilsson <hp@axis.com>
31729
31730 PR middle-end/38609
31731 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
31732 functions with dynamic stack-pointer adjustments.
31733
64e4a1a6
BE
317342009-03-19 Ben Elliston <bje@au.ibm.com>
31735
31736 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
31737 option; change to -msdata=data.
31738
9a0f3e86
RW
317392009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31740
31741 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
31742 and -fopenmp.
31743
09bc5979
EB
317442009-03-18 Eric Botcazou <ebotcazou@adacore.com>
31745
31746 PR target/35180
31747 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
31748
332459cd
SL
317492009-03-18 Sandra Loosemore <sandra@codesourcery.com>
31750
31751 * doc/invoke.texi (Code Gen Options): Expand discussion of
31752 -fno-common.
31753
8f5929e1
JJ
317542009-03-18 Jakub Jelinek <jakub@redhat.com>
31755
31756 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
31757 * matrix-reorg.c (struct matrix_info): Likewise.
31758 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
31759 * rtl.h (struct mem_attrs): Likewise.
31760 * df.h (struct df): Likewise.
31761 * tree-data-ref.h (struct data_dependence_relation): Likewise.
31762 * ira-int.h (struct ira_allocno): Likewise.
31763 * df-scan.c (struct df_collection_rec): Likewise.
31764 * ira.c (struct equivalence): Likewise.
31765 * function.c (struct temp_slot): Likewise.
31766 * cfgloop.h (struct loop): Likewise.
31767
d130d647
JJ
31768 PR debug/39485
31769 * function.c (use_register_for_decl): When not optimizing, disregard
31770 register keyword for variables with types containing methods.
31771
9968d233
SP
317722009-03-18 Sebastian Pop <sebastian.pop@amd.com>
31773
31774 PR middle-end/39447
31775 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
31776 (is_simple_operand): Call contains_component_ref_p before calling data
31777 reference analysis that would fail on COMPONENT_REFs.
31778
31779 * tree-vrp.c (search_for_addr_array): Fix formatting.
31780
69484bfd
RG
317812009-03-18 Richard Guenther <rguenther@suse.de>
31782
31783 * tree-vect-transform.c (vect_loop_versioning): Fold the
31784 generated comparisons.
31785 * tree-vectorizer.c (set_prologue_iterations): Likewise.
31786 (slpeel_tree_peel_loop_to_edge): Likewise.
31787
66811228
RW
317882009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31789
0631b69f
RW
31790 PR middle-end/37805
31791 * opts.c (print_specific_help): In addition to `undocumented',
31792 accept `separate' and `joined' flags if passed alone. Describe
31793 output by the first matched one of those.
31794 (common_handle_option): Skip over empty strings.
31795 * gcc.c (display_help): Fix help string for `--help='.
31796 * doc/invoke.texi (Option Summary, Overall Options): With
31797 `--help=', classes and qualifiers can both be repeated, but
31798 only the latter can be negated. One should not pass only
31799 negated qualifiers. Fix markup and examples.
31800
66811228
RW
31801 Revert
31802 2008-10-14 Jakub Jelinek <jakub@redhat.com>
31803 PR middle-end/37805
31804 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
31805 and -fhelp=separate.
31806
3c072c6b
JY
318072009-03-17 Jing Yu <jingyu@google.com>
31808
31809 PR middle-end/39378
80c65208
JY
31810 * function.h (struct rtl_data): Move is_thunk from here...
31811 (struct function): ...to here.
31812 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
3c072c6b
JY
31813 * varasm.c (assemble_start_function): Change is_thunk from crtl to
31814 cfun.
80c65208
JY
31815 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
31816 cfun.
31817 (alpha_does_function_need_gp, alpha_start_function): Likewise.
31818 (alpha_output_function_end_prologue): Likewise.
31819 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
31820 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
31821 (rs6000_output_function_epilogue): Likewise.
31822 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
3c072c6b 31823
9ade279b
UB
318242009-03-17 Uros Bizjak <ubizjak@gmail.com>
31825
31826 PR target/39482
31827 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
31828 from different units in a single alternative.
31829 (*truncdfsf_i387): Ditto.
31830 (*truncxfsf2_mixed): Ditto.
31831 (*truncxfdf2_mixed): Ditto.
31832
16e60c17
JJ
318332009-03-17 Jakub Jelinek <jakub@redhat.com>
31834
98381eb4
JJ
31835 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
31836 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
31837
df5deb18
JJ
31838 PR debug/39474
31839 * tree-ssa-live.c (remove_unused_locals): Don't remove local
31840 unused non-artificial variables when not optimizing.
31841
a3f596ba
JJ
31842 PR debug/39471
31843 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
31844 DW_TAG_imported_module even if decl is IMPORTED_DECL with
31845 NAMESPACE_DECL in its DECL_INITIAL.
31846
6b2b8871
JJ
31847 PR middle-end/39443
31848 * optabs.c (set_user_assembler_libfunc): New function.
31849 * expr.h (set_user_assembler_libfunc): New prototype.
31850 * c-common.c: Include libfuncs.h.
31851 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
31852 for memcmp, memset, memcpy, memmove and abort.
31853 * Makefile.in (c-common.o): Depend on libfuncs.h.
31854
16e60c17
JJ
31855 PR debug/39412
31856 * dwarf2out.c (gen_inlined_enumeration_type_die,
31857 gen_inlined_structure_type_die, gen_inlined_union_type_die,
31858 gen_tagged_type_instantiation_die): Removed.
31859 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
31860 do nothing.
31861
4d936aca
JJ
318622009-03-17 Janis Johnson <janis187@us.ibm.com>
31863
31864 PR testsuite/38526
31865 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
31866 its use.
31867 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
31868 (check-parallel-%): Ditto.
31869 (check-consistency): Ditto.
31870
4e9b2e50
KT
318712009-03-17 Kai Tietz <kai.tietz@onevision.com>
31872
31873 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
31874 local variable rhs by NULL_TREE.
31875
21440b2d
L
318762009-03-17 H.J. Lu <hongjiu.lu@intel.com>
31877
31878 PR target/39477
9ade279b 31879 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
21440b2d 31880
d8905c6a
L
318812009-03-17 H.J. Lu <hongjiu.lu@intel.com>
31882
31883 PR target/39476
9ade279b 31884 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
d8905c6a
L
31885
318862009-03-17 H.J. Lu <hongjiu.lu@intel.com>
435a61d3
L
31887
31888 PR target/39473
31889 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
31890 for ms->sysv ABI calls only in 64bit mode.
31891
31892 * config/i386/i386.md (untyped_call): Support 32bit.
31893
cdcabece
L
318942009-03-16 H.J. Lu <hongjiu.lu@intel.com>
31895
31896 * doc/extend.texi: Replace x86_65 with x86_64.
31897
97b4ba9f
JJ
318982009-03-16 Jakub Jelinek <jakub@redhat.com>
31899
31900 PR tree-optimization/39455
31901 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
31902 mismatches for POINTER_TYPE_P (type).
31903 (number_of_iterations_le): Likewise.
31904
60839f5d 319052009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
83c191e1
HS
31906
31907 * config/picochip/picochip.c: Removed profiling support.
31908 * config/picochip/picochip.md: Removed profiling instruction.
31909 * config/picochip/picochip.h: Removed profiling builtin.
31910
f38095f3
JM
319112009-03-16 Joseph Myers <joseph@codesourcery.com>
31912
31913 * doc/install.texi (--with-host-libstdcxx): Document.
31914
2cb4817b
AS
319152009-03-14 Anatoly Sokolov <aesok@post.ru>
31916
31917 PR target/34299
31918 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
31919 generate a warning if the function name does not begin with
31920 "__vector" and the function has either the 'signal' or 'interrupt'
31921 attribute, from here to ...
31922 (avr_declare_function_name): ...here. New function.
31923 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
31924 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
31925
39b2ac74
JJ
319262009-03-14 Jakub Jelinek <jakub@redhat.com>
31927
31928 PR bootstrap/39454
31929 * cse.c (fold_rtx): Don't modify original const_arg1 when
31930 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
31931 separate variable instead.
31932 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
31933 from out of range shift counts.
31934 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
31935
ad41bd84 319362009-03-13 Catherine Moore <clm@codesourcery.com>
f7a82dee 31937
60839f5d 31938 * config/i386/x-mingw32 (host-mingw32.o): Replace
f7a82dee
CM
31939 diagnostic.h with $(DIAGNOSTIC_H).
31940
ad41bd84 319412009-03-12 Jakub Jelinek <jakub@redhat.com>
03a18198
JJ
31942
31943 PR target/39431
31944 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
31945 predicate.
31946 * config/i386/sync.md (sync_compare_and_swap<mode>,
31947 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
31948 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
31949 into a register.
31950 (sync_double_compare_and_swapdi_pic,
31951 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
31952 cmpxchg8b_pic_memory_operand instead of just memory_operand.
31953
122c59c7
L
319542009-03-12 H.J. Lu <hongjiu.lu@intel.com>
31955
31956 PR target/39445
9ade279b 31957 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
122c59c7 31958
cec8874f
L
319592009-03-12 H.J. Lu <hongjiu.lu@intel.com>
31960
31961 PR target/39327
31962 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
31963 (avx_addsubv4df3): Likewise.
31964 (*avx_addsubv4sf3): Likewise.
31965 (sse3_addsubv4sf3): Likewise.
31966
bbb52802
L
319672009-03-12 H.J. Lu <hongjiu.lu@intel.com>
31968
31969 PR target/38824
9ade279b 31970 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
bbb52802 31971
a812fb07
VM
319722009-03-12 Vladimir Makarov <vmakarov@redhat.com>
31973
31974 PR debug/39432
31975 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
31976 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
31977 registers for allocnos created from user-defined variables.
31978
4caab5ba
UW
319792009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31980
31981 PR target/39181
31982 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
31983 of non-integer mode as well.
31984
498e51ca
AN
319852009-03-11 Adam Nemet <anemet@caviumnetworks.com>
31986
31987 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
31988 for functions for which the parameter types are unknown.
31989
9bfaf89d
JJ
319902009-03-11 Jakub Jelinek <jakub@redhat.com>
31991
31992 PR target/39137
9ade279b 31993 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
9bfaf89d
JJ
31994 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
31995 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
31996 * config/i386/i386.c (ix86_local_alignment): For
31997 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
31998 long long variables on the stack to avoid dynamic realignment.
31999 Allow the first argument to be a decl rather than type.
32000 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
32001
18a3bdcb
NC
320022009-03-11 Nick Clifton <nickc@redhat.com>
32003
32004 PR target/5362
40190a76
NC
32005 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
32006 options.
32007 Add description to mno-lsim option.
32008 * config/mcore/mcore.h: Remove comment about deprecated m4align
32009 option.
32010 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
32011 * doc/invoke.texi: Add description of mno-lsim and
32012 mstack-increment options.
32013
18a3bdcb
NC
32014 * config/fr30/fr30.opt: Document the -mno-lsim option.
32015 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
32016 and -mno-lsim options.
32017
dc215785
UW
320182009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32019
32020 * fold-const.c (fold_comparison): Only call fold_inf_compare
32021 if the mode supports infinities.
32022
7716876b
JM
320232009-03-11 Jason Merrill <jason@redhat.com>
32024
32025 PR debug/39086
32026 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
32027 end already did. Notice GIMPLE_CALL modifications of the result.
32028 Don't copy debug information from an ignored decl or a decl from
32029 another function.
32030
ddef83d2
RG
320312009-03-10 Richard Guenther <rguenther@suse.de>
32032 Nathan Froyd <froydnj@codesourcery.com>
32033
32034 PR middle-end/37850
9ade279b 32035 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
ddef83d2
RG
32036 (__divMODE3): Likewise.
32037
9a9ba8d9
JJ
320382009-03-09 Jakub Jelinek <jakub@redhat.com>
32039
32040 PR tree-optimization/39394
32041 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
32042 DECL_SIZE_UNIT of variable length FIELD_DECLs.
32043
929b7fc3
AK
320442009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32045
32046 * recog.c (verfiy_changes): Disallow renaming of hard regs in
32047 inline asms for register asm ("") declarations.
32048
1803581d
EB
320492009-03-09 Eric Botcazou <ebotcazou@adacore.com>
32050
32051 * fold-const.c (fold_unary): Fix comment.
32052
8454d27e
JH
320532009-03-07 Jan Hubicka <jh@suse.cz>
32054
32055 PR target/39361
969a5433
JJ
32056 * tree-inline.c (setup_one_parameter): Do replacement of const
32057 argument by constant in SSA form.
8454d27e 32058
3a695389
UW
320592009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32060
32061 PR middle-end/38028
32062 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
32063 determine alignment passed to assign_stack_local.
32064 (assign_parms_unsplit_complex): Likewise.
32065 * except.c (sjlj_build_landing_pads): Likewise.
32066
9f0e7885
JJ
320672009-03-06 Jakub Jelinek <jakub@redhat.com>
32068
65401a0b
JJ
32069 PR middle-end/39360
32070 * tree-flow.h (add_referenced_var): Return bool instead of void.
32071 * tree-dfa.c (add_referenced_var): Return result of
32072 referenced_var_check_and_insert call.
32073 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
32074 of referenced_var_check_and_insert.
32075
9f0e7885 32076 PR debug/39372
9ade279b 32077 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
9f0e7885
JJ
32078 (gen_variable_die): Emit DW_AT_location on abstract static variable's
32079 DIE, don't emit it if abstract origin already has it.
32080 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
32081 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
32082
3b664bd1
JBG
320832009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
32084
ba20e309 32085 * genpreds.c (needs_variable): Fix parentheses at variable name
3b664bd1
JBG
32086 detection.
32087 (write_tm_constrs_h): Indent generated code.
32088
d8f8ca80
RR
320892009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32090
32091 * doc/extend.texi (Function Attributes): Add documentation
32092 for isr attributes.
32093
6c3d550c
JJ
320942009-03-06 Jakub Jelinek <jakub@redhat.com>
32095
32096 PR debug/39387
32097 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
32098 take locus from its DECL_SOURCE_LOCATION instead of input_location.
32099
f9e96751
BS
321002009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
32101
32102 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
32103 the loop as bad.
32104
ee0ee7e2
JJ
321052009-03-05 Jakub Jelinek <jakub@redhat.com>
32106
32107 PR debug/39379
32108 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
32109 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
32110
6c6094f1
UB
321112009-03-05 Uros Bizjak <ubizjak@gmail.com>
32112
32113 * config/i386/i386.md (R8_REG, R9_REG): New constants.
32114 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
32115 constants instead of magic numbers.
32116 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
32117 (QI_REG_P): Ditto.
32118 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
32119 (x86_64_ms_abi_int_parameter_registers): Ditto.
32120 (x86_64_int_return_registers): Ditto.
09f8a8d3 32121 (ix86_maybe_switch_abi): Ditto.
6c6094f1
UB
32122 (ix86_expand_call): Ditto for clobbered_registers array.
32123 (ix86_hard_regno_mode_ok): Ditto.
32124 (x86_extended_QIreg_mentioned_p): Ditto.
32125
b267bd41
R
321262009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
32127
6c6094f1 32128 PR tree-optimization/39349
1f3ad3f0
R
32129 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
32130
b267bd41
R
32131 * combine.c (gen_lowpart_for_combine): Use omode when generating
32132 clobber.
32133
1242bc9d
R
321342009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
32135
6c6094f1 32136 PR rtl-optimization/39235
1242bc9d
R
32137 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
32138
48f03606
ZD
321392009-03-04 Zdenek Dvorak <ook@ucw.cz>
32140
32141 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
32142
b505e785
RG
321432009-03-04 Richard Guenther <rguenther@suse.de>
32144
32145 PR tree-optimization/39362
32146 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
32147 that occur in abnormal PHIs should be varying.
32148
f017bf5e
ZD
321492009-03-04 Zdenek Dvorak <ook@ucw.cz>
32150
32151 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
32152 Extend comments.
32153 (simple_iv): Take loop as an argument instead of statement.
32154 * tree-scalar-evolution.h (simple_iv): Declaration changed.
32155 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
32156 to simple_iv.
32157 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
32158 Ditto.
32159 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
32160 * matrix-reorg.c (analyze_transpose): Ditto.
32161 * tree-data-ref.c (dr_analyze_innermost): Ditto.
32162 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
32163 * tree-predcom.c (ref_at_iteration): Ditto.
32164 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
32165
6a66f28e
RG
321662009-03-04 Richard Guenther <rguenther@suse.de>
32167
32168 PR tree-optimization/39358
32169 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
32170 escaped_id and callused_id.
32171 (solve_graph): Likewise.
32172
57e454ee
RG
321732009-03-04 Richard Guenther <rguenther@suse.de>
32174
32175 PR tree-optimization/39339
32176 * tree-sra.c (try_instantiate_multiple_fields): Make it
32177 no longer ICE on the above.
32178
a6fe9ed4
JM
321792009-03-03 Joseph Myers <joseph@codesourcery.com>
32180
32181 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
32182 that fits within Pmode.
32183
dc672951
SE
321842009-03-03 Steve Ellcey <sje@cup.hp.com>
32185
32186 PR middle-end/10109
32187 * tm.texi (LIBCALL_VALUE): Update description.
32188
8b9d598f
SE
321892009-03-03 Steve Ellcey <sje@cup.hp.com>
32190
32191 PR middle-end/34443
32192 * doc/extend.texi (section): Update description.
32193
13e4e36e
L
321942009-03-03 H.J. Lu <hongjiu.lu@intel.com>
32195
32196 PR middle-end/39345
32197 * tree-inline.c (remapped_type): New.
32198 (can_be_nonlocal): Call remapped_type instead of remap_type.
32199
067dd3c9
JJ
322002009-03-03 Jakub Jelinek <jakub@redhat.com>
32201
32202 PR fortran/39354
32203 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
32204 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
32205
9bd9f738
RG
322062009-03-03 Richard Guenther <rguenther@suse.de>
32207
32208 PR middle-end/39272
32209 * tree.c (tree_nonartificial_location): New function.
32210 * tree.h (tree_nonartificial_location): Declare.
32211 * builtins.c (expand_builtin_memory_chk): Provide location
32212 of the call location for artificial function pieces.
32213 (maybe_emit_chk_warning): Likewise.
32214 (maybe_emit_sprintf_chk_warning): Likewise.
32215 (maybe_emit_free_warning): Likewise.
32216 * expr.c (expand_expr_real_1): Likewise.
32217
f07049c8
JJ
322182009-03-03 Jakub Jelinek <jakub@redhat.com>
32219
32220 PR tree-optimization/39343
32221 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
32222 COMPONENT_REF t has ARRAY_TYPE.
32223
7d4fba4a
SP
322242009-03-02 Sebastian Pop <sebastian.pop@amd.com>
32225
32226 PR middle-end/39335
32227 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
32228 when the type precision of the induction variable should be
32229 larger than the type precision of nit.
32230 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
32231 * graphite.c (graphite_loop_normal_form): Same.
32232 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
32233
78168632
UB
322342009-03-02 Uros Bizjak <ubizjak@gmail.com>
32235
32236 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
32237 (*call_1_rex64_ms_sysv): Use named constants instead of magic
6c6094f1 32238 numbers to describe clobbered registers.
78168632 32239 (*call_value_0_rex64_ms_sysv): Ditto.
6c6094f1
UB
32240 * config/i386/mmx.md (mmx_emms): Ditto.
32241 (mmx_femms): Ditto.
78168632 32242
63553059
RS
322432009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
32244
32245 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
32246 of ABI_64.
32247
500a1f85
UW
322482009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32249
32250 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
32251 (spu_section_type_flags): New function.
32252
962aae34
UB
322532009-03-02 Uros Bizjak <ubizjak@gmail.com>
32254
32255 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
32256 reg_class_contents of FLOAT_REGS into a temporary.
32257
6dfb529c 322582009-03-02 Richard Guenther <rguenther@suse.de>
962aae34 32259 Ira Rosen <irar@il.ibm.com>
6dfb529c
RG
32260
32261 PR tree-optimization/39318
32262 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
32263 information to the vectorized statement.
32264
6b5629db
UB
322652009-03-01 Uros Bizjak <ubizjak@gmail.com>
32266
434426d2
UB
32267 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
32268 variable. Use defined names instead of magic constants for REX SSE
32269 registers.
6b5629db 32270
14e5b285
RG
322712009-03-01 Richard Guenther <rguenther@suse.de>
32272
32273 PR tree-optimization/39331
32274 * omp-low.c (lower_send_shared_vars): Do not receive new
32275 values for the reference of DECL_BY_REFERENCE parms or results.
32276
526d73ab
JH
322772009-03-01 Jan Hubicka <jh@suse.cz>
32278
32279 PR debug/39267
32280 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
32281 BLOCK_NONLOCALIZED_VAR): New macros.
32282 (tree_block): Add nonlocalized_vars.
f4ea99bd
EB
32283 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
32284 gen_decl_die): Add origin argument. Allow generation of die with
32285 origin at hand only.
526d73ab 32286 (gen_member_die, gen_type_die_with_usage, force_decl_die,
f4ea99bd
EB
32287 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
32288 of gen_*.
526d73ab
JH
32289 (gen_block_die): Fix checking for unused blocks.
32290 (process_scope_var): Break out from .... ; work with origins only.
32291 (decls_for_scope) ... here; process nonlocalized list.
32292 (dwarf2out_ignore_block): Look for nonlocalized vars.
f4ea99bd
EB
32293 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
32294 vars.
526d73ab
JH
32295 (dump_scope_block): Dump them.
32296 * tree-inline.c (remap_decls): Handle nonlocalized vars.
32297 (remap_block): Likewise.
32298 (can_be_nonlocal): New predicate.
32299 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
32300
7a9d3fe8
RW
323012009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32302
32303 * configure: Regenerate.
32304
b3cdf3cb
RW
323052009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32306
a16d1645 32307 * optc-gen.awk: No need to duplicate option flags twice.
9ade279b 32308 Reuse help texts for duplicate options which do not have any.
a16d1645 32309
1156c176
RW
32310 * gcc.c (display_help): Document --version.
32311
033505fc
RW
32312 * gcc.c (main): If print_help_list and verbose_flag, ensure
32313 driver output comes before subprocess output.
32314
4d077054
RW
32315 * optc-gen.awk: Assign all remaining fields to help string,
32316 space-separated, for multi-line help in *.opt.
32317
a072f1cf
RW
32318 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
32319 -Wno-pedantic-ms-format is for MinGW targets only.
32320
b3cdf3cb
RW
32321 * doc/options.texi (Option file format): Fix bad indentation,
32322 restoring dropped sentence.
32323
a3aadcc5
JH
323242009-02-28 Jan Hubicka <jh@suse.cz>
32325
32326 * tree-inline.c (tree_function_versioning): Output debug info.
32327
1cf5abb3
JH
323282009-02-28 Jan Hubicka <jh@suse.cz>
32329
32330 PR debug/39267
32331 * tree-inline.c (setup_one_parameter): Do not copy propagate
32332 arguments when not optimizing.
32333
c4d3f42f
L
323342009-02-28 H.J. Lu <hongjiu.lu@intel.com>
32335
32336 PR target/39327
32337 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
32338 (avx_addsubv4df3): Likewise.
32339 (*avx_addsubv4sf3): Likewise.
32340 (sse3_addsubv4sf3): Likewise.
32341 (*avx_addsubv2df3): Likewise.
32342 (sse3_addsubv2df3): Likewise.
32343 (avx_unpckhps256): Correct item selectors.
32344 (avx_unpcklps256): Likewise.
32345 (avx_unpckhpd256): Likewise.
32346 (avx_unpcklpd256): Likewise.
32347
eb50f5f4
JH
323482009-02-28 Jan Hubicka <jh@suse.cz>
32349
32350 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
32351 static vars.
32352 (copy_arguments_for_versioning): If var is declared don't declare it.
32353 (tree_function_versioning): First setup substitutions and then copy
32354 args.
32355
26140130
JH
323562009-02-27 Jan Hubicka <jh@suse.cz>
32357
32358 PR debug/39267
32359 * cgraph.h (varpool_output_debug_info): Remove.
32360 * cgraphunit.c (varpool_output_debug_info): Remove.
32361 * dwarf2out.c (deferred_locations_struct): New struct
32362 (deferred_locations): New type.
32363 (deferred_locations_list): New static var.
32364 (deffer_location): New function.
32365 (gen_variable_die): Use it.
32366 (decls_for_scope): Output info on local static vars.
32367 (dwarf2out_finish): Process deferred locations.
32368 * varpool.c (varpool_output_debug_info): Remove.
32369
cff7525f
JH
323702009-02-27 Jan Hubicka <jh@suse.cz>
32371
32372 PR debug/39267
32373 * tree.h (TREE_PROTECTED): Fix comment.
32374 (BLOCK_HANDLER_BLOCK): Remove.
32375 (struct tree_block): Remove handler_block add body_block.
32376 (inlined_function_outer_scope_p): New.
32377 (is_body_block): Remove.
32378 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
32379 * dwarf2out.c (is_inlined_entry_point): Remove.
32380 (add_high_low_attributes): Use inlined_function_outer_scope_p.
f10a1c6c
EB
32381 (gen_block_die): Use is_inlined_entry_point check. Remove body block
32382 code.
cff7525f
JH
32383 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
32384 * gimplify.c (gimplify_expr): Gimplify body blocks.
f10a1c6c
EB
32385 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
32386 block with multiple subblocks.
cff7525f
JH
32387 (dump_scope_block): Prettier output; dump more flags and info.
32388 (dump_scope_blocks): New.
32389 (remove_unused_locals): Use dump_scope_blocks.
32390 * tree-flow.h (dump_scope_blocks): Declare.
32391 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
32392 * stmt.c (is_body_block): Remove.
32393 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
32394 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
32395
c20993b9
SP
323962009-02-27 Sebastian Pop <sebastian.pop@amd.com>
32397
32398 PR middle-end/39308
2ba9daa7 32399 * graphite.c (graphite_loop_normal_form): Do not call
c20993b9
SP
32400 number_of_iterations_exit from a gcc_assert.
32401
e3cba5e5
AK
324022009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32403
60839f5d 32404 * config/s390/s390.c (s390_swap_cmp): Look for conditional
e3cba5e5
AK
32405 jumps if COND is NULL.
32406 (find_cond_jump): New function.
32407 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
60839f5d 32408 * config/s390/s390.md: Remove z10_cobra attribute value.
e3cba5e5 32409
9dadeeb8
UB
324102009-02-26 Uros Bizjak <ubizjak@gmail.com>
32411
32412 * config/alpha/alpha.h (alpha_expand_mov): Return false if
32413 force_const_mem returns NULL_RTX.
32414
625d3251
EB
324152009-02-26 Jan Hubicka <jh@suse.cz>
32416
32417 PR debug/39267
32418 * cgraph.h (varpool_output_debug_info): Remove.
32419 * cgraphunit.c (varpool_output_debug_info): Remove.
32420 * dwarf2out.c (deferred_locations_struct): New struct
32421 (deferred_locations): New type.
32422 (deferred_locations_list): New static var.
32423 (deffer_location): New function.
32424 (gen_variable_die): Use it.
32425 (decls_for_scope): Output info on local static vars.
32426 (dwarf2out_finish): Process deferred locations.
32427 * varpool.c (varpool_output_debug_info): Remove.
32428
38432148 324292009-02-25 H.J. Lu <hongjiu.lu@intel.com>
8592acaf
L
32430
32431 PR rtl-optimization/39241
32432 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
32433 to subreg_offset_representable_p.
32434
62d049cf
PB
324352009-02-25 Paolo Bonzini <bonzini@gnu.org>
32436
32437 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
32438 execute function prototype. Get f and nregs from max_reg_num
32439 and get_insns. Remove the first backward pass as it's dead,
32440 guard the forward pass by flag_expensive_optimizations.
32441 (rest_of_handle_regmove): Delete.
32442 (pass_regmove): Replace it with regmove_optimize.
32443
f618d33e
MJ
324442009-02-25 Martin Jambor <mjambor@suse.cz>
32445
32446 PR tree-optimization/39259
32447 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
6c6094f1 32448 calls_alloca function flags.
f618d33e
MJ
32449 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
32450 calls are detected.
32451
c8a05f7c
PB
324522009-02-25 Paolo Bonzini <bonzini@gnu.org>
32453
32454 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
32455 flags_set_1_rtx, flags_set_1_set): Delete.
32456 (regmove_optimize): Do not call mark_flags_life_zones.
32457
6d2538f5
JB
324582009-02-24 Julian Brown <julian@codesourcery.com>
32459
32460 PR target/35965
32461 * config/arm/arm.c (require_pic_register): Only set
32462 cfun->machine->pic_reg once per function.
32463
a2fa6772
SL
324642009-02-24 Sandra Loosemore <sandra@codesourcery.com>
32465
32466 * doc/invoke.texi (Link Options): Document an easier way to pass
9dadeeb8 32467 options that take arguments to the GNU linker using -Xlinker and -Wl.
a2fa6772 32468
5472de36
SE
324692009-02-24 Steve Ellcey <sje@cup.hp.com>
32470
32471 PR target/33785
32472 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
32473
844216f3
RG
324742009-02-24 Richard Guenther <rguenther@suse.de>
32475
32476 PR debug/39285
32477 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
32478
71adbef3 324792009-02-24 Richard Guenther <rguenther@suse.de>
8592acaf 32480 Zdenek Dvorak <ook@ucw.cz>
71adbef3
RG
32481
32482 PR tree-optimization/39233
32483 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
32484 from converting them to a generic type.
32485
f1a558e0
SP
324862009-02-23 Sebastian Pop <sebastian.pop@amd.com>
32487
32488 PR tree-optimization/39260
32489 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
32490 contains a condition with a real type.
32491 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
32492
d8028f2c
JM
324932009-02-23 Jason Merrill <jason@redhat.com>
32494
32495 PR c++/38880
32496 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
32497 narrowing_initializer_constant_valid_p.
2ba9daa7 32498 (narrowing_initializer_constant_valid_p): Don't return
d8028f2c
JM
32499 null_pointer_node for adding a pointer to itself.
32500
9283b513
JH
325012009-02-23 Jan Hubicka <jh@suse.cz>
32502
32503 PR c/12245
9dadeeb8
UB
32504 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
32505 resizing.
9283b513 32506
61e04322
JH
325072009-02-23 Jan Hubicka <jh@suse.cz>
32508
9dadeeb8
UB
32509 PR tree-optimization/37709
32510 * tree.c (block_ultimate_origin): Move here from dwarf2out.
32511 * tree.h (block_ultimate_origin): Declare.
32512 * dwarf2out.c (block_ultimate_origin): Move to tree.c
61e04322
JH
32513 * tree-ssa-live.c (remove_unused_scope_block_p):
32514 Eliminate blocks containig no instructions nor live variables nor
32515 nested blocks.
32516 (dump_scope_block): New function.
32517 (remove_unused_locals): Enable removal of dead blocks by default;
9dadeeb8 32518 enable dumping at TDF_DETAILS.
61e04322 32519
38432148 325202009-02-21 H.J. Lu <hongjiu.lu@intel.com>
5339d3ea
L
32521
32522 * config/i386/i386.c (classify_argument): Don't allow COImode
32523 and OImode.
32524 (function_arg_advance_32): Don't allow OImode.
32525 (function_arg_32): Likewise.
32526 (function_value_32): Likewise.
32527 (return_in_memory_32): Likewise.
32528 (function_arg_64): Remove OImode comment.
32529
38432148 325302009-02-21 H.J. Lu <hongjiu.lu@intel.com>
f161e158
L
32531
32532 PR target/39261
32533 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
32534 ix86_expand_vector_set for V4DImode in 64bit mode only.
32535 (ix86_expand_vector_init_one_var): Likewise.
32536
dcd739a6
SP
325372009-02-21 Sebastian Pop <sebastian.pop@amd.com>
32538
32539 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
32540
6c3b938d
RS
325412009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
32542
8e361f23 32543 PR bootstrap/39257
6c3b938d
RS
32544 * loop-iv.c: Revert last change.
32545 * emit-rtl.c: Likewise.
32546
38432148 325472009-02-21 H.J. Lu <hongjiu.lu@intel.com>
4c64d3dd
L
32548
32549 PR target/39256
32550 * config/i386/i386.c (type_natural_mode): Remove an extra
32551 space in the warning message.
32552 (function_value_32): Handle 32-byte vector modes.
32553 (return_in_memory_32): Likewise.
32554
2ec62529
RS
325552009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
32556
32557 * loop-iv.c (truncate_value): New function.
32558 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
32559 of lowpart_subreg.
32560 (lowpart_subreg): Move to...
32561 * emit-rtl.c: ...here.
32562
ecb8c3cc 325632009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
f814e489 32564
ecb8c3cc
DS
32565 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
32566 accidental and undocumented change at revision 140860.
32567
ae46a823
JM
325682009-02-21 Joseph Myers <joseph@codesourcery.com>
32569
32570 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
32571 take gimple_seq * arguments.
32572 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
32573 types_compatible_p langhook.
32574
07d8efe3 325752009-02-20 Mark Mitchell <mark@codesourcery.com>
f814e489 32576 Joseph Myers <joseph@codesourcery.com>
07d8efe3
MM
32577
32578 * config/arm/arm.c (arm_builtin_va_list): New function.
32579 (arm_expand_builtin_va_start): Likewise.
32580 (arm_gimplify_va_arg_expr): Likewise.
32581 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
32582 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
32583 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
32584 (va_list_type): New variable.
32585 (arm_mangle_type): Mangle va_list_type appropriately.
32586
b1fb9f56
JJ
325872009-02-20 Jakub Jelinek <jakub@redhat.com>
32588
32589 PR middle-end/39157
32590 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
32591 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
32592 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
32593 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
32594 parameter to 1000 for -O1 by default.
32595 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
32596 parameter.
32597 * loop-invariant.c: Include params.h.
32598 (move_loop_invariants): Don't call move_single_loop_invariants on
32599 very large loops.
32600
5bc0807c
JM
326012009-02-20 Jaka Mocnik <jaka@xlab.si>
32602
32603 * calls.c (emit_library_call_value_1): Use slot_offset instead of
32604 offset when calculating bounds for indexing stack_usage_map. Fixes
32605 a buffer overflow with certain target setups.
32606
c69cd1f5
JJ
326072009-02-20 Jakub Jelinek <jakub@redhat.com>
32608
32609 PR target/39240
32610 * calls.c (expand_call): Clear try_tail_call if caller and callee
32611 disagree in promotion of function return value.
32612
09812622
JJ
326132009-02-19 Jakub Jelinek <jakub@redhat.com>
32614
32615 PR target/39175
32616 * c-common.c (c_determine_visibility): If visibility changed and
32617 DECL_RTL has been already set, call make_decl_rtl to update symbol
32618 flags.
32619
68017cb4
L
326202009-02-19 H.J. Lu <hongjiu.lu@intel.com>
32621
32622 PR c++/39188
32623 * varasm.c (assemble_variable): Don't check DECL_NAME when
32624 globalizing a variable.
32625
ab4194da
JM
326262009-02-19 Joseph Myers <joseph@codesourcery.com>
32627
32628 PR c/38483
32629 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
32630 expression before any __builtin_trap call.
32631 * c-typeck.c (build_function_call): Convert and check function
32632 arguments before generating a call to a trap. Evaluate the
32633 function arguments before the trap.
32634
6b67572e
UB
326352009-02-19 Uros Bizjak <ubizjak@gmail.com>
32636
32637 PR target/39228
32638 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
32639 (UNSPEC_FXAM_MEM): New unspec.
32640 (fxam<mode>2_i387_with_temp): New insn and split pattern.
32641 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
32642 memory using fxam<mode>2_i387_with_temp to remove excess precision.
32643
9e39dba6
RG
326442009-02-19 Richard Guenther <rguenther@suse.de>
32645
32646 PR tree-optimization/39207
32647 PR tree-optimization/39074
32648 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
32649 storedanything_tree): New.
32650 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
6b67572e 32651 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
9e39dba6
RG
32652 (build_succ_graph): Add edges from STOREDANYTHING to all
32653 non-direct nodes.
32654 (init_base_vars): Initialize STOREDANYTHING.
32655 (compute_points_to_sets): Free substitution info after
32656 building the succ graph.
32657 (ipa_pta_execute): Likewise.
32658
32659 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
32660 field.
32661 (do_ds_constraint): Do not add to special var or non-pointer
32662 field solutions.
32663 (type_could_have_pointers): Split out from ...
32664 (could_have_pointers): ... here. For arrays use the element type.
32665 (create_variable_info_for): Initialize may_have_pointers.
32666 (new_var_info): Likewise.
32667 (handle_lhs_call): Make the HEAP variable unknown-sized.
32668 (intra_create_variable_infos): Use a type with pointers for
32669 PARM_NOALIAS, make it unknown-sized.
32670
fd7b2603
L
326712009-02-18 H.J. Lu <hongjiu.lu@intel.com>
32672
32673 PR target/39224
6b67572e 32674 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
fd7b2603 32675
98b80692
JM
326762009-02-18 Jason Merrill <jason@redhat.com>
32677
32678 PR target/39179
32679 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
32680 value if DECL_EXTERNAL.
32681 * tree-sra.c (sra_walk_gimple_assign): Likewise.
32682 * target.h (gcc_target::binds_local_p): Clarify "module".
32683 * tree.h (TREE_PUBLIC): Clarify "module".
32684
0705d3f4
L
326852009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
32686
32687 PR target/38891
32688 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
32689 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
32690
bce08d50
L
326912009-02-17 H.J. Lu <hongjiu.lu@intel.com>
32692
32693 PR target/39082
32694 * c.opt (Wabi): Support C and ObjC.
32695 (Wpsabi): New.
32696
32697 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
32698
32699 * config/i386/i386.c (classify_argument): Warn once about the ABI
32700 change when passing union with long double.
32701
32702 * doc/invoke.texi: Update -Wabi for warning psABI changes.
32703
5600f233
JM
327042009-02-18 Joseph Myers <joseph@codesourcery.com>
32705
32706 PR c/35447
32707 * c-parser.c (c_parser_compound_statement): Always enter and leave
32708 a scope.
32709
8cd01fe6
JDA
327102009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32711
32712 PR target/34587
32713 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
32714
418df9d7
JJ
327152009-02-18 Jakub Jelinek <jakub@redhat.com>
32716
32717 PR tree-optimization/36922
32718 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
32719 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
32720 Likewise.
32721
082d2ebb
RS
327222009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
32723
32724 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
32725 to 0 for EABI64.
32726
17de576c
RS
327272009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
32728
32729 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
32730
6d8d5435
RS
327312009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
32732
32733 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
32734 tree sharing.
32735
e69ff910
RB
327362009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
32737 Richard Sandiford <rdsandiford@googlemail.com>
32738
32739 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
32740 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
32741 (loongson_biadd): ...this.
32742
6b24ee26
RG
327432009-02-17 Richard Guenther <rguenther@suse.de>
32744
32745 PR tree-optimization/39202
32746 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
32747 a var make sure to follow existing collapses.
32748
91ab2c86
RG
327492009-02-17 Richard Guenther <rguenther@suse.de>
32750
32751 PR middle-end/39214
32752 * langhooks.c (lhd_print_error_function): Check for NULL block.
32753
73a63870
RG
327542009-02-17 Richard Guenther <rguenther@suse.de>
32755
32756 PR tree-optimization/39204
32757 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
32758 of the PHI arg.
32759
0e08f686
UB
327602009-02-17 Uros Bizjak <ubizjak@gmail.com>
32761
32762 * config/soft-fp/double.h: Update from glibc CVS.
32763
a60b7ddb
RG
327642009-02-17 Richard Guenther <rguenther@suse.de>
32765
32766 PR tree-optimization/39207
32767 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
32768 strict-aliasing warnings for pointers pointing to NULL.
32769
a47e20fd
JM
327702009-02-16 Joseph Myers <joseph@codesourcery.com>
32771
32772 PR c/35446
32773 * c-parser.c (c_parser_braced_init): Call pop_init_level when
32774 skipping until next close brace.
32775
50aab7dc
L
327762009-02-16 H.J. Lu <hongjiu.lu@intel.com>
32777
32778 PR target/37049
32779 * config/i386/i386.c (ix86_expand_push): Set memory alignment
32780 to function argument boundary.
32781
68e53db0
HS
327822009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
32783
32784 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
32785 in the lea_add. Reload eventually constraints it properly.
0d50d55a 32786 * config/picochip/constraints.md: Remove the target constraint
68e53db0
HS
32787 "b", since it is not needed anymore.
32788
09e361bb
JJ
327892009-02-16 Jakub Jelinek <jakub@redhat.com>
32790
32791 * gthr-dce.h: Uglify function parameter and local variable names.
32792 * gthr-gnat.h: Likewise.
32793 * gthr-mipssde.h: Likewise.
32794 * gthr-nks.h: Likewise.
32795 * gthr-posix95.h: Likewise.
32796 * gthr-posix.h: Likewise.
32797 * gthr-rtems.h: Likewise.
32798 * gthr-single.h: Likewise.
32799 * gthr-solaris.h: Likewise.
32800 * gthr-tpf.h: Likewise.
32801 * gthr-vxworks.h: Likewise.
32802 * gthr-win32.h: Likewise.
32803
47f5a48f
L
328042009-02-15 H.J. Lu <hongjiu.lu@intel.com>
32805
32806 PR target/39196
32807 * config/i386/i386.md: Restrict the new peephole2 to move
32808 between MMX/SSE registers.
32809
68c9ab45
RG
328102009-02-15 Richard Guenther <rguenther@suse.de>
32811
32812 Revert
32813 2009-02-13 Richard Guenther <rguenther@suse.de>
32814
32815 * configure.ac: Enable LFS.
32816 * configure: Re-generate.
32817 * config.in: Likewise.
32818
d7815554
UW
328192009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32820
32821 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
32822 spu_srqwbyte, spu_srqwbytebc): Define.
32823 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
32824 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
32825 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
32826 "shrqby_<mode>"): New insn-and-split patterns.
32827 * config/spu/spu.c (expand_builtin_args): Determine and return
32828 number of operands using spu_builtin_description data.
32829 (spu_expand_builtin_1): Use it.
32830
c208436c
SE
328312009-02-13 Steve Ellcey <sje@cup.hp.com>
32832
32833 PR target/38056
32834 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
32835 TARGET_CONST_GP.
32836
c2e7ba7e
L
328372009-02-13 H.J. Lu <hongjiu.lu@intel.com>
32838
32839 PR target/39149
32840 * config/i386/i386.c (override_options): Correct warning
6c6094f1 32841 messages for -malign-loops, -malign-jumps and -malign-functions.
c2e7ba7e 32842
72f4e3a7
L
328432009-02-13 H.J. Lu <hongjiu.lu@intel.com>
32844
32845 PR target/39152
32846 * config/i386/i386.md: Restrict the new peephole2 to move
32847 between the general purpose registers.
32848
53f648e2
L
328492009-02-13 H.J. Lu <hongjiu.lu@intel.com>
32850
32851 PR target/39162
32852 * config/i386/i386.c (type_natural_mode): Add a new argument.
6b67572e 32853 Return the original mode and warn ABI change if vector size is 32byte.
53f648e2
L
32854 (function_arg_advance): Updated.
32855 (function_arg): Likewise.
32856 (ix86_function_value): Likewise.
32857 (ix86_return_in_memory): Likewise.
32858 (ix86_sol10_return_in_memory): Likewise.
32859 (ix86_gimplify_va_arg): Likewise.
32860 (function_arg_32): Don't warn ABX ABI change here.
32861 (function_arg_64): Likewise.
32862
38432148 328632009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
b1c92d54
BS
32864
32865 * loop-iv.c (implies_p): In the final case, test that operands 0
32866 of the two comparisons match.
32867
dd2139e7
BS
32868 * config/bfin/bfin.c (find_prev_insn_start): New function.
32869 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
32870 (find_next_insn_start): Move.
32871
601b3e1a
RG
328722009-02-13 Richard Guenther <rguenther@suse.de>
32873
32874 * configure.ac: Enable LFS.
32875 * configure: Re-generate.
32876 * config.in: Likewise.
32877
f007042e
JM
328782009-02-13 Joseph Myers <joseph@codesourcery.com>
32879
32880 PR c/35444
32881 * c-parser.c (c_parser_parms_list_declarator): Discard pending
32882 sizes on syntax error after some arguments have been parsed.
32883
3f238e8b
JJ
328842009-02-12 Jakub Jelinek <jakub@redhat.com>
32885
32886 * doc/invoke.texi (-fira): Remove.
32887
328e13b7
L
328882009-02-12 H.J. Lu <hongjiu.lu@intel.com>
32889
32890 * caller-save.c: Replace regclass.c with reginfo.c in comments.
32891 * recog.c: Likewise.
32892 * rtl.h: Likewise.
32893
c252db20
L
328942009-02-12 Uros Bizjak <ubizjak@gmail.com>
32895
32896 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
32897 (umul_ppmm): Likewise.
32898 (count_leading_zeros): Likewise.
32899 (count_trailing_zeros): Likewise.
32900 (UMUL_TIME): Likewise.
32901
329022009-02-12 H.J. Lu <hongjiu.lu@intel.com>
32903
ba181049
UB
32904 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
32905 soft-fp/t-softfp to tmake_file.
c252db20
L
32906
32907 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
ba181049
UB
32908 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
32909 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
32910 IA64_BUILTIN_INFQ]: New.
c252db20
L
32911 (ia64_init_builtins): Initialize __builtin_infq,
32912 __builtin_fabsq and __builtin_copysignq if not HPUX.
32913 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
32914 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
32915
32916 * config/ia64/lib1funcs.asm (__divtf3): Define only if
32917 SHARED is defined.
32918 (__fixtfti): Likewise.
32919 (__fixunstfti): Likewise.
32920 (__floattitf): Likewise.
32921
32922 * config/ia64/libgcc-glibc.ver: New.
32923 * config/ia64/t-fprules-softfp: Likewise.
32924 * config/ia64/sfp-machine.h: Likewise.
32925
32926 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
32927 (LIBGCC2_TF_CEXT): Likewise.
32928 (TF_SIZE): Likewise.
32929 (TARGET_INIT_LIBFUNCS): Likewise.
32930
ba181049 32931 * config/ia64/t-glibc (SHLINB_MAPFILES):
6b67572e 32932 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
c252db20 32933
f13eae6a
L
329342009-02-12 H.J. Lu <hongjiu.lu@intel.com>
32935
32936 * config/i386/i386.c (construct_container): Rewrite processing
32937 BLKmode with X86_64_SSE_CLASS.
32938
12019aec
L
329392009-02-12 Paolo Bonzini <bonzini@gnu.org>
32940
32941 PR target/39152
32942 * config/i386/i386.md: Replace simplify_replace_rtx with
32943 replace_rtx in the new peephole2.
32944
28c11eb3
NS
329452009-02-12 Nathan Sidwell <nathan@codesourcery.com>
32946
32947 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
32948 loop unrolling do not happen at -O2.
32949
c7b94907
MM
329502009-02-12 Michael Matz <matz@suse.de>
32951
32952 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
32953
61e98967
JJ
329542009-02-12 Jakub Jelinek <jakub@redhat.com>
32955
32956 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
32957 for -g3.
32958
a2a237b5
BE
329592009-02-12 Ben Elliston <bje@au.ibm.com>
32960
32961 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
32962 patterns when updating the back chain. Missed in the 2009-02-10
32963 change.
32964
853eda8d
JJ
329652009-02-11 Janis Johnson <janis187@us.ibm.com>
32966
32967 * doc/extend.texi (Decimal Floating Types): Update identifier of
32968 draft TR and list of missing support.
32969
3ad6b266
JJ
329702009-02-11 Jakub Jelinek <jakub@redhat.com>
32971
32972 PR middle-end/39154
32973 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
32974 bit to variable length decl's flags, add it also to its
32975 pointer replacement variable.
32976
b058b753
UB
329772009-02-11 Uros Bizjak <ubizjak@gmail.com>
32978 Jakub Jelinek <jakub@redhat.com>
32979
32980 PR target/39118
32981 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
32982 (memory_blockage): New expander.
32983 (*memory_blockage): New insn pattern.
32984 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
32985 instead of general blockage at the end of function prologue when
32986 frame pointer is used to access red zone area. Do not emit blockage
32987 when profiling, it is emitted in generic code.
32988 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
32989 function epilogue when frame pointer is used to access red zone area.
32990
bab64f23
PB
329912009-02-11 Paolo Bonzini <bonzini@gnu.org>
32992
0ce6dcfa 32993 PR target/38824
bab64f23
PB
32994 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
32995 by arithmetic with memory operands.
32996 * config/i386/predicates.md (commutative_operator): New.
32997
8fd94bda
JJ
329982009-02-10 Janis Johnson <janis187@us.ibm.com>
32999
33000 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
33001 bulleted lists.
33002
794511d2
EB
330032009-02-10 Eric Botcazou <ebotcazou@adacore.com>
33004
33005 * alias.h (record_alias_subset): Declare.
33006 * alias.c (record_alias_subset): Make global.
33007
6da7fc87
NC
330082009-02-10 Nick Clifton <nickc@redhat.com>
33009
33010 * tree-parloops.c: Change license to GPLv3.
33011 * ipa-struct-reorg.c: Change license to GPLv3.
33012 * ipa-struct-reorg.h: Change license to GPLv3.
33013
a03813c8
SE
330142009-02-10 Steve Ellcey <sje@cup.hp.com>
33015
33016 PR c/39084
33017 * c-decl.c (start_struct): Return NULL on error.
33018
fc3103e7
JJ
330192009-02-10 Jakub Jelinek <jakub@redhat.com>
33020
9b43d37b
JJ
33021 PR middle-end/39124
33022 * cfgloopmanip.c (remove_path): Call remove_bbs after
33023 cancel_loop_tree, not before it.
33024
fc3103e7 33025 PR target/39139
b058b753 33026 * function.h (struct function): Add has_local_explicit_reg_vars bit.
fc3103e7
JJ
33027 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
33028 VAR_DECLs were seen.
33029 * tree-ssa-live.c (remove_unused_locals): Recompute
33030 cfun->has_local_explicit_reg_vars.
33031 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
33032 copies or clearings if cfun->has_local_explicit_reg_vars.
33033
dbf9ee15
UB
330342009-02-10 Uros Bizjak <ubizjak@gmail.com>
33035
33036 PR target/39118
33037 * config/i386/i386.c (expand_prologue): Emit blockage at the end
33038 of function prologue when frame pointer is used to access
33039 red zone area.
33040
bdec4dc7
RG
330412009-02-10 Richard Guenther <rguenther@suse.de>
33042
33043 PR middle-end/39127
33044 * gimplify.c (gimple_regimplify_operands): Always look if
33045 we need to create a temporary.
33046
7cae94fc
RG
330472009-02-10 Richard Guenther <rguenther@suse.de>
33048
33049 PR tree-optimization/39132
33050 * tree-loop-distribution.c (todo): New global var.
33051 (generate_memset_zero): Trigger TODO_rebuild_alias.
33052 (tree_loop_distribution): Return todo.
33053
a8800687
L
330542009-02-10 H.J. Lu <hongjiu.lu@intel.com>
33055
33056 PR target/39119
33057 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
33058 (x86_64_reg_class_name): Removed.
33059 (classify_argument): Return 0 if bytes > 32. Return 0 if the
33060 first one isn't X86_64_SSE_CLASS or any other ones aren't
33061 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
33062 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
33063 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
33064 and 3 X86_64_SSEUP_CLASS.
33065 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
33066 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
33067
d4bacef0
BE
330682009-02-10 Ben Elliston <bje@au.ibm.com>
33069
33070 * config/rs6000/rs6000.md (allocate_stack): Always use an update
33071 form instruction to update the stack back chain word, even if the
33072 user has disabled the generation of update instructions.
33073 (movdi_<mode>_update_stack): New.
33074 (movsi_update_stack): Likewise.
33075 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
33076 always use an update form instruction to update the stack back
33077 chain word.
33078
01d7d2f3
SP
330792009-02-09 Sebastian Pop <sebastian.pop@amd.com>
33080
33081 PR middle-end/38953
b058b753
UB
33082 * graphite.c (if_region_set_false_region): After moving a region in
33083 the false branch of a condition, remove the empty dummy basic block.
01d7d2f3
SP
33084 (gloog): Remove wrong fix for PR38953.
33085
e41e2ab4
UW
330862009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33087
33088 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
33089 generation due to implicit sign extension.
33090
4bb07c5d
EB
330912009-02-09 Eric Botcazou <ebotcazou@adacore.com>
33092
33093 PR middle-end/38981
33094 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
33095 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
33096
f060a261
RG
330972009-02-09 Richard Guenther <rguenther@suse.de>
33098
33099 PR middle-end/35202
33100 * convert.c (convert_to_real): Disable (float)fn((double)x)
33101 to fnf(x) conversion if errno differences may occur and
33102 -fmath-errno is set.
33103
5a7e237c
AS
331042009-02-07 Anatoly Sokolov <aesok@post.ru>
33105
33106 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
33107 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
33108 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
33109
feab5a67
JM
331102009-02-06 Joseph Myers <joseph@codesourcery.com>
33111
33112 PR c/35434
33113 * c-common.c (handle_alias_attribute): Disallow attribute for
33114 anything not a FUNCTION_DECL or VAR_DECL.
33115
90ef2296
JJ
331162009-02-06 Janis Johnson <janis187@us.ibm.com>
33117
33118 PR c/39035
33119 * real.c (do_compare): Special-case compare of zero against
33120 decimal float value.
33121
1de2c900
JM
331222009-02-06 Joseph Myers <joseph@codesourcery.com>
33123
33124 PR c/36432
33125 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
33126 as indicating flexible array members unless the field itself is
33127 being declarared as the incomplete array.
33128
e901811a
JH
331292009-02-06 Jan Hubicka <jh@suse.cz>
33130
33131 PR tree-optimization/38844
33132 * ipa-inline.c (try_inline): Stop inlining recursion when edge
33133 is already inlined.
33134
3cfa762b
RG
331352009-02-06 Richard Guenther <rguenther@suse.de>
33136
33137 PR middle-end/38977
33138 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
33139 fork because we may expand it as __gcov_fork.
33140
8506528c
NC
331412009-02-06 Nick Clifton <nickc@redhat.com>
33142
dbf9ee15 33143 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
8506528c 33144
85169114
PB
331452009-02-06 Paolo Bonzini <bonzini@gnu.org>
33146
33147 PR tree-optimization/35659
33148 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
33149 vn_phi_eq): Shortcut if hashcode does not match.
33150 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
33151 NULL operands.
33152 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
33153 and avoid iterative_hash_expr.
33154 (FOR_EACH_VALUE_ID_IN_SET): New.
33155 (value_id_compare): Remove.
33156 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
33157 sort expressions by value id.
33158
6d39673d
KK
331592009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
33160
33161 PR target/38991
33162 * config/sh/predicates.md (general_movsrc_operand): Don't check
33163 the subreg of system registers here.
33164
e6e1c050
JJ
331652009-02-05 Jakub Jelinek <jakub@redhat.com>
33166
33167 PR c++/39106
33168 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
33169 on the copied decl.
33170
65a74b5d
PB
331712009-02-05 Paolo Bonzini <bonzini@gnu.org>
33172
33173 PR rtl-optimization/39110
33174 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
33175 addresses, not aligned ones.
33176
08e14b2a
DB
331772009-02-05 Daniel Berlin <dberlin@dberlin.org>
33178 Richard Guenther <rguenther@suse.de>
33179
33180 PR tree-optimization/39100
33181 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
33182 comment says and add edges.
33183
5006381c
JM
331842009-02-05 Joseph Myers <joseph@codesourcery.com>
33185
33186 PR c/35435
33187 * c-common.c (handle_tls_model_attribute): Ignore attribute for
33188 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
33189
2ba9daa7 331902009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
b0789219
TG
33191
33192 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
33193 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
33194 register_bb_in_sese, new_sese, free_sese): Moved.
33195 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
33196 outermost_loop_in_scop, build_scop_iteration_domain,
33197 expand_scalar_variables_ssa_name, get_vdef_before_scop,
33198 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
33199 Use loop_in_sese_p instead of loop_in_scop_p.
33200 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
33201 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
33202 (scopdet_basic_block_info): Fix bug in scop detection.
33203 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
33204 eq_loop_to_cloog_loop): Remove.
33205 (nb_loops_around_loop_in_scop, nb_loop
33206 ref_nb_loops): Moved here...
33207 * graphite.h (ref_nb_loops): ... from here.
33208 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
33209 (loop_domain_dim, loop_iteration_vector_dim): Remove.
33210 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
b0789219 33211
48e8382e
PB
332122009-02-04 Paolo Bonzini <bonzini@gnu.org>
33213 Hans-Peter Nilsson <hp@axis.com>
33214
33215 PR rtl-optimization/37889
33216 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
33217 Move offset handling from PLUS to before the switch. Use new
33218 arguments when considering SYMBOL_REFs too.
33219 (rtx_addr_can_trap_p): Pass dummy offset and size.
33220 (enum may_trap_p_flags): Remove.
33221 (may_trap_p_1): Pass size from MEM_SIZE.
33222
33223 PR rtl-optimization/38921
33224 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
33225 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
33226 * rtlanal.c (may_trap_after_code_motion_p): Delete.
33227 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
33228
69349ea5
L
332292009-02-04 H.J. Lu <hongjiu.lu@intel.com>
33230
33231 AVX Programming Reference (January, 2009)
33232 * config/i386/sse.md (*vpclmulqdq): New.
33233
b545e411
JJ
332342009-02-04 Jakub Jelinek <jakub@redhat.com>
33235
33236 PR tree-optimization/38977
33237 PR gcov-profile/38292
bf9b2cc9 33238 * calls.c (special_function_p): Disregard __builtin_ prefix.
b545e411 33239
5b43bf05
HS
332402009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
33241
33242 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
33243 non-indexable addresses even before reload.
33244
062c4bb3
JM
332452009-02-03 Joseph Myers <joseph@codesourcery.com>
33246
33247 PR c/29129
33248 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
33249 as having variable size. Do not give an error for unnamed
33250 parameters with [*] declarators. Give a warning for type names
33251 with [*] declarators and mark them as variable size.
33252 * c-parser.c (c_parser_sizeof_expression): Do not give an error
33253 for sizeof applied to [*] type names.
33254
6175f578
AP
332552009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
33256
33257 PR C++/36607
33258 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
33259
d4f4bc84
JJ
332602009-02-03 Jakub Jelinek <jakub@redhat.com>
33261
33262 * gcc.c (process_command): Update copyright notice dates.
33263 * gcov.c (print_version): Likewise.
33264 * gcov-dump.c (print_version): Likewise.
33265 * mips-tfile.c (main): Likewise.
33266 * mips-tdump.c (main): Likewise.
33267
f6294de7
JM
332682009-02-03 Joseph Myers <joseph@codesourcery.com>
33269
33270 PR c/35433
33271 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
33272 for composite type involving a zero-length array type.
33273
754ccf7c
JJ
332742009-02-03 Jakub Jelinek <jakub@redhat.com>
33275
70f16287
JJ
33276 PR target/35318
33277 * function.c (match_asm_constraints_1): Skip over
33278 initial optional % in the constraint.
33279
754ccf7c
JJ
33280 PR inline-asm/39059
33281 * c-parser.c (c_parser_postfix_expression): If fixed point is not
33282 supported, don't accept FIXED_CSTs.
33283 * c-decl.c (finish_declspecs): Error if fixed point is not supported
33284 and _Sat is used without _Fract/_Accum. Set specs->type to
33285 integer_type_node for cts_fract/cts_accum if fixed point is not
33286 supported.
33287
965fdadf
CM
332882009-02-02 Catherine Moore <clm@codesourcery.com>
33289
dbf9ee15 33290 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
965fdadf 33291
2e8a796f
RS
332922009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33293
33294 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
33295 (ABI_HAS_64BIT_SYMBOLS): Use it.
33296 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
33297
e0079468
PB
332982009-02-02 Paul Brook <paul@codesourcery.com>
33299
33300 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
33301
eca72963
JJ
333022009-02-02 Jakub Jelinek <jakub@redhat.com>
33303
33304 PR inline-asm/39058
33305 * recog.h (asm_operand_ok): Add constraints argument.
33306 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
33307 recurse on matching constraint.
33308 (check_asm_operands): Pass constraints as 3rd argument to
33309 asm_operand_ok. Don't look up matching constraint here.
33310 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
33311 to asm_operand_ok.
33312
b5bde9ff
BE
333132009-02-02 Ben Elliston <bje@au.ibm.com>
33314
33315 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
33316 TARGET_NARROW_VOLATILE_BITFIELD macro names.
33317
30f3e427
JDA
333182009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33319
be7659ba
JDA
33320 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
33321 information. Remove some obsolete information. Reorganize.
33322
30f3e427
JDA
33323 * config/pa/fptr.c: Revert license to GPL 2.
33324 * config/pa/milli64.S: Likewise.
33325
3cbfaf98
DK
333262009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
33327
33328 PR target/38904
33329 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
33330 LIBRARY name in, instead of hard-coding it.
33331 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
33332 extra target make frag to tmake_files according to EH model.
33333 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
33334 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
33335 frags that define makefile variable EH_MODEL appropriately.
33336 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
33337 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
33338 to "-sjlj" according to type of EH configured.
33339 (LIBGCC_SONAME): Concatenate it to shared library base name.
33340 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
33341 to "_sjlj" according to type of EH configured.
33342 (LIBGCC_SONAME): Concatenate it to shared library base name.
33343 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
33344 (SHLIB_LINK): Add missing semicolon to if-else construct.
33345 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
33346 string value of "pe_dll" command-line option.
33347 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
33348 (SHLIB_SONAME): Use it when overriding t-cygming default.
33349 (SHLIB_IMPLIB): Override t-cygming default.
33350 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
33351 string value of "pe_dll" command-line option.
33352
8d0b6068
DK
333532009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
33354
33355 PR target/38952
33356 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
bf9b2cc9 33357 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
8d0b6068 33358
14c28276
RG
333592009-01-31 Richard Guenther <rguenther@suse.de>
33360
33361 PR tree-optimization/38937
33362 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
33363 computing the transitive closure.
33364
5f4d82c2
RG
333652009-01-30 Richard Guenther <rguenther@suse.de>
33366
33367 PR tree-optimization/39041
33368 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
33369 Propagate variable indices only if the types match for this stmt.
33370
d0728ae0
JJ
333712009-01-30 Jakub Jelinek <jakub@redhat.com>
33372
33373 PR target/39013
33374 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
33375 inline but never defined.
33376
6b67572e 333772009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
9fec758d
WG
33378
33379 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
33380 (*insv_h_di_reg_extimm): New insn.
33381 (*insv_l<mode>_reg_extimm): New insn.
33382
333832009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
9e8be1e4
HS
33384
33385 * config/picochip/picochip.c (flag_conserve_stack): set
33386 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
33387 fconserve-stack. Reduce call-overhead used by inliner.
33388
9fec758d 333892009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
df9198ab
HS
33390
33391 PR/38157
33392 * common.opt (flag_conserve_stack): Initialised to zero.
33393
7f1c539c
KT
333942009-01-30 Kai Tietz <kai.tietz@onevision.com>
33395
33396 PR/39002
33397 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
33398 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
33399 method.
33400
3631be48
L
334012009-01-29 H.J. Lu <hongjiu.lu@intel.com>
33402
33403 * ira-color.c (allocno_reload_assign): Update comments.
33404 * regmove.c (regmove_optimize): Likewise.
33405
33406 * ra.h: Removed.
33407
416ac4d4
RM
334082009-01-29 Robert Millan <rmh@aybabtu.com>
33409
60839f5d
EB
33410 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
33411 * config/i386/kopensolaris-gnu.h: New file. Undefine
416ac4d4 33412 `MD_UNWIND_SUPPORT'.
60839f5d 33413 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
416ac4d4 33414
d5e54bc1
KH
334152009-01-29 Kazu Hirata <kazu@codesourcery.com>
33416
33417 PR tree-optimization/39007
33418 * tree-loop-distribution.c (generate_builtin): Use
33419 recompute_dominator to compute the immediate dominator of the
33420 basic block just after the loop.
33421
38432148 334222009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
e9e077fa
RO
33423
33424 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
33425 (ASM_OUTPUT_DWARF_PCREL): Define.
33426
38432148 334272009-01-29 Vladimir Makarov <vmakarov@redhat.com>
2af2dbdc
VM
33428
33429 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
33430 * doc/passes.texi: Remove entries about regclass, local-alloc, and
33431 global. Modify entries about regmove and IRA.
33432
33433 * ra-conflict.c: Remove the file.
33434
33435 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
33436
33437 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
33438 (pass_regclass_init): Rename to pass_reginfo_init.
33439
33440 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
33441
33442 * toplev.h (flag_ira): Remove.
33443
33444 * caller-save.c (setup_save_areas): Remove flag_ira.
33445
bf9b2cc9 33446 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
2af2dbdc
VM
33447
33448 * global.c: Remove the file.
33449
ba20e309 33450 * opts.c (decode_options): Remove flag_ira.
2af2dbdc
VM
33451
33452 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
33453
33454 * regmove.c: Modify file description.
33455 (find_use_as_address, try_auto_increment): Define them only if
33456 AUTO_INC_DEC is defined.
33457 (replacement_quality, replace_in_call_usage, fixup_match_1,
33458 stable_and_no_regs_but_for_p): Remove.
33459 (reg_set_in_bb): Make it static.
33460 (regmove_optimize): Remove flag_ira and code which worked for
33461 !flag_ira.
33462
33463 * local-alloc.c: Remove the file.
33464
33465 * common.opt (fira): Remove.
33466
33467 * ira.c: Include except.h.
33468 (eliminable_regset): Move from global.c.
33469 (mark_elimination): Ditto. Remove flag_ira.
33470 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
33471 equiv_mem_modified, validate_equiv_mem_from_store,
33472 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
33473 contains_replace_regs, memref_referenced_p, memref_used_between_p,
33474 no_equiv, recorded_label_ref): Move from local-alloc.c.
33475 (update_equiv_regs): Ditto. Make it static.
33476 (print_insn_chain, print_insn_chains): Move it from global.c.
bf9b2cc9 33477 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
2af2dbdc
VM
33478 (build_insn_chain): Ditto. Make it static.
33479 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
33480 Rename to init_live_subregs.
33481 (gate_ira): Remove flag_ira.
33482
33483 * regclass.c: Rename reginfo.c. Change file description.
33484 (FORBIDDEN_INC_DEC_CLASSES): Remove.
dbf9ee15 33485 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
2af2dbdc
VM
33486 (init_reg_sets_1): Remove code for evaluation of
33487 reg_class_superclasses and losing_caller_save_reg_set.
33488 (init_regs): Remove init_reg_autoinc.
33489 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
33490 ok_for_base_p_nonstrict): Remove.
bf9b2cc9 33491 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
2af2dbdc
VM
33492 (pass_regclass_init): Rename to pass_reginfo_init. Modify
33493 corresponding entries.
33494 (dump_regclass, record_operand_costs, scan_one_insn,
33495 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
33496 record_address_regs, auto_inc_dec_reg_p): Remove.
33497 (gt-regclass.h): Rename to gt-reginfo.h.
33498
33499 * rtl.h (dump_global_regs, retry_global_alloc,
bf9b2cc9 33500 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
2af2dbdc
VM
33501
33502 * Makefile.in (RA_H): Remove.
33503 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
33504 Rename regclass.o to reginfo.o.
33505 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
33506 gt-reginfo.h.
33507 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
33508 (GTFILES): Rename regclass.c to reginfo.c.
33509
33510 * passes.c (init_optimization_passes): Remove pass_local_alloc and
bf9b2cc9 33511 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
2af2dbdc
VM
33512
33513 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
33514 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
33515 Remove flag_ira.
6b67572e 33516 (finish_spills): Ditto. Remove code for !flag_ira.
2ba9daa7 33517
c95b2534 335182009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
00b251a0
KZ
33519
33520 PR middle-end/35854
33521 * doc/invoke.texi (rtl debug options): Complete rewrite.
33522 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
33523 to auto_inc_dec".
33524 * mode-switching.c (pass_mode_switching): Rename pass from
33525 "mode-sw" to "mode_sw".
33526 * except.c (pass_convert_to_eh_ranges): Rename pass from
33527 "eh-ranges" to "eh_ranges".
33528 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
33529 to "subreg1".
2ba9daa7
AS
33530
33531
72a54528
AM
335322009-01-29 Andrey Belevantsev <abel@ispras.ru>
33533 Alexander Monakov <amonakov@ispras.ru>
33534
33535 PR middle-end/38857
33536 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
33537 register.
33538 (move_exprs_to_boundary): Change return type and pass through
33539 should_move from move_op. Relax assert. Update usage ...
33540 (schedule_expr_on_boundary): ... here. Use should_move instead of
33541 cant_move.
33542 (move_op_orig_expr_found): Indicate that insn was disconnected from
33543 stream.
33544 (code_motion_process_successors): Do not call after_merge_succs
33545 callback if original expression was not found when traversing any of
33546 the branches.
33547 (code_motion_path_driver): Change return type. Update prototype.
33548 (move_op): Update comment. Add a new parameter (should_move). Update
33549 prototype. Set *should_move based on indication provided by
33550 move_op_orig_expr_found.
33551
001b9eb6
PH
335522009-01-28 Pat Haugen <pthaugen@us.ibm.com>
33553
33554 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
33555 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
33556 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
33557 * config/rs6000/rs6000.c (rs6000_override_options): Default
33558 avoid-indexed-addresses on for Power6, off for everything else.
33559 (avoiding_indexed_address_p): New function.
33560 (rs6000_legitimize_address): Use it.
33561 (rs6000_legitimate_address): Likewise.
33562 * config/rs6000/rs6000.md (movXX_updateX): Likewise
33563
59dc4898
KH
335642009-01-28 Kazu Hirata <kazu@codesourcery.com>
33565
33566 PR tree-optimization/38997
33567 * tree-loop-distribution.c (generate_memset_zero): Use
33568 POINTER_PLUS_EXPR for a pointer addition.
33569
07da44ab
AK
335702009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
33571
33572 * config/s390/s390.md (bswap<mode>2): New pattern added.
33573
cdc15d23
WG
335742009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
33575
33576 * config/s390/s390.md (*tls_load_31): Added type attribute.
33577
d46f24b6
WG
335782009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
33579
33580 * config/s390/s390.md: Fix a few comments.
33581
729e750f
WG
335822009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
33583
33584 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
33585 (*tm<mode>_full): Fixed z10prop attribute.
33586 (*tst<mode>_extimm): Fixed z10prop attribute.
33587 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
33588 (*tstqiCCT_cconly): Fixed z10prop attribute.
33589 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
33590 (*movsi_larl): Fixed z10prop attribute.
33591 (*movsi_zarch): Fixed z10prop attribute.
33592 (*movsi_eas): Fixed z10prop attribute.
33593 (*movhi): Fixed z10prop attribute.
33594 (*movqi): Fixed z10prop attribute.
33595 (*movstrictqi): Fixed z10prop attribute.
33596 (*mov<mode>): Fixed z10prop attribute.
33597 (*movcc): Fixed z10prop attribute.
33598 (*sethighpartdi_64): Fixed z10prop attribute.
33599 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
33600 (*negdi2_sign_cc): Fixed z10prop attribute.
33601 (*negdi2_sign): Fixed z10prop attribute.
33602 (*absdi2_sign_cc): Fixed z10prop attribute.
33603 (*absdi2_sign): Fixed z10prop attribute.
33604 (*negabsdi2_sign_cc): Fixed z10prop attribute.
33605 (*negabsdi2_sign): Fixed z10prop attribute.
33606 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
33607 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
33608 (doloop_si64): Fixed z10prop attribute.
33609 (doloop_si31): Fixed z10prop attribute.
33610 (doloop_long): Fixed z10prop attribute.
33611 (indirect_jump): Fixed z10prop attribute.
33612 (nop): Fixed z10prop attribute.
33613 (main_base_64): Fixed z10prop attribute.
33614 (reload_base_64): Fixed z10prop attribute.
33615
c7789bfb
JJ
336162009-01-28 Jakub Jelinek <jakub@redhat.com>
33617
33618 PR rtl-optimization/38740
6b67572e
UB
33619 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
33620 if !optimize.
c7789bfb
JJ
33621 * config/mips/mips.c (mips_reorg): Likewise.
33622
de081cfd
RG
336232009-01-28 Richard Guenther <rguenther@suse.de>
33624
33625 PR tree-optimization/38926
33626 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
33627 with the correct value id to a value.
33628 (do_regular_insertion): Use the value number of edoubleprime
33629 for the value number of the expr.
33630
33631 Revert
33632 2008-08-21 Richard Guenther <rguenther@suse.de>
bf9b2cc9 33633
d748c406
UB
33634 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
33635 a PHI ask VN if it is already available.
33636 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
33637 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
de081cfd 33638
a9d386a1
JJ
336392009-01-28 Jakub Jelinek <jakub@redhat.com>
33640
33641 PR middle-end/38934
33642 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
33643 set to varying whenever max has TREE_OVERFLOW set, similarly
33644 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
33645
97a170cd
RG
336462009-01-28 Richard Guenther <rguenther@suse.de>
33647
33648 PR middle-end/38908
33649 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
33650 uninitialized aggregate uses in call arguments.
33651
89ebafc6
PB
336522009-01-28 Paolo Bonzini <bonzini@gnu.org>
33653
33654 PR tree-optimization/38984
33655 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
33656 the nothing_id variable if -fno-delete-null-pointer-checks.
33657
bef3c57b
UB
336582009-01-28 Uros Bizjak <ubizjak@gmail.com>
33659
33660 PR target/38988
33661 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
33662 (set_got_offset_rex64): Ditto.
33663
0c6390fa
L
336642009-01-27 H.J. Lu <hongjiu.lu@intel.com>
33665
33666 PR target/38941
33667 * doc/extend.texi: Improve local variable with asm reg.
33668
bee6fa6d
AN
336692009-01-27 Adam Nemet <anemet@caviumnetworks.com>
33670
33671 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
33672 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
33673 was not supplied then set warn_packed_bitfield_compat to the
33674 default value of 1.
33675 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
33676 against 1.
33677
b5c3dfbb
RG
336782009-01-27 Richard Guenther <rguenther@suse.de>
33679
33680 PR tree-optimization/38503
33681 * cfgexpand.c (expand_gimple_basic_block): Ignore
33682 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
33683 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
33684 variables that cannot have TBAA applied.
33685 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
33686 statements.
33687
d748c406 336882009-01-27 Uros Bizjak <ubizjak@gmail.com>
576de5cb
UB
33689
33690 PR middle-end/38969
33691 * calls.c (initialize_argument_information): Do not wrap complex
33692 arguments in SAVE_EXPR.
33693
9112bb38
AT
336942009-01-26 Andreas Tobler <a.tobler@schweiz.org>
33695
33696 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
5efb79fc 33697 (INSTALL_LIBGCC): Revert typo commit.
9112bb38 33698
4757704f
RG
336992009-01-26 Richard Guenther <rguenther@suse.de>
33700
33701 PR tree-optimization/38745
33702 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
33703 from special handling.
33704
e3e6cff4
RG
337052009-01-26 Richard Guenther <rguenther@suse.de>
33706
33707 PR tree-optimization/38745
33708 * tree-ssa.c (execute_update_addresses_taken): Do not include
33709 variables that cannot possibly be a register in not_reg_needs.
33710 Do not clear TREE_ADDRESSABLE on vars that may not become
33711 registers.
33712 * tree-ssa.c (update_alias_info_1): Include those in the set
33713 of addressable vars.
33714
dc874b53
RG
337152009-01-26 Richard Guenther <rguenther@suse.de>
33716
33717 PR middle-end/38851
33718 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
33719 * tree-ssa-dse.c: Include langhooks.h
33720 (execute_simple_dse): Remove stores with zero size.
33721
849421a3
JJ
337222009-01-24 Jakub Jelinek <jakub@redhat.com>
33723
33724 PR c/38957
33725 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
33726 as PLUS_EXPR.
33727
82f70421
JB
337282009-01-24 Julian Brown <julian@codesourcery.com>
33729
33730 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
33731 config/arm/linux-atomic.c.
33732 * config/arm/linux-atomic.c: New.
33733
863412d6
EB
337342009-01-24 Eric Botcazou <ebotcazou@adacore.com>
33735
33736 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
33737 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
33738 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
33739
8c684300
L
337402009-01-24 H.J. Lu <hongjiu.lu@intel.com>
33741
33742 PR c/38938
93f1527a 33743 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
8c684300
L
33744 properly.
33745
b840fb02
SP
337462009-01-24 Sebastian Pop <sebastian.pop@amd.com>
33747
33748 PR tree-optimization/38953
33749 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
33750 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
33751 (gloog): Split the exit of the scop when the scop exit is a loop exit.
33752 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
33753 changed the CFG.
33754
ecee559f
PB
337552009-01-24 Paul Brook <paul@codesourcery.com>
33756
33757 * config/arm/neon.md (neon_type): Move to arm.md.
33758 (neon_mov<VSTRUCT>): Add neon_type attribute.
33759 * config/arm/arm.md (neon_type): Move to here.
33760 (conds): Add "unconditioal" and use as default for NEON insns.
33761
61ad0914
BE
337622009-01-24 Ben Elliston <bje@au.ibm.com>
33763
33764 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
33765 void *' warning from -Wc++-compat.
33766 * Makefile.in (dominance.o-warn): Remove.
33767
38432148 337682009-01-23 Paolo Bonzini <bonzini@gnu.org>
9bacafeb
PB
33769
33770 PR tree-optimization/38932
33771 * fold-const.c (fold_unary_ignore_overflow): New.
33772 * tree.h (fold_unary_ignore_overflow): Declare.
33773 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
33774 * tree-ssa-sccvn.c (visit_reference_op_load,
33775 simplify_unary_expression): Likewise.
33776
2cd36c22
AN
337772009-01-22 Adam Nemet <anemet@caviumnetworks.com>
33778
33779 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
33780 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
33781 regardless of their type.
33782 * c-common.c (handle_packed_attribute): Don't ignore packed on
33783 bitfields.
33784 * c.opt (Wpacked-bitfield-compat): New warning option.
33785 * stor-layout.c (place_field): Warn if offset of a field changed.
33786 * doc/extend.texi (packed): Mention the ABI change.
33787 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
33788 (Warning Options): Add it to the list.
33789
e4e624ab
L
337902009-01-22 H.J. Lu <hongjiu.lu@intel.com>
33791
33792 * c-opts.c (c_common_post_options): Fix a typo in comments.
33793
d0ea0759
SE
337942009-01-22 Steve Ellcey <sje@cup.hp.com>
33795
33796 PR middle-end/38615
33797 * gimplify.c (gimplify_init_constructor): Fix promotion of const
33798 variables to static.
33799 * doc/invoke.texi (-fmerge-all-constants): Update description.
33800
87673f84
UB
338012009-01-22 Uros Bizjak <ubizjak@gmail.com>
33802
33803 PR target/38931
33804 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
33805 (*movdi_1_rex64): Use type "mmx" for alternative 5.
33806
96339268
RE
338072009-01-22 Richard Earnshaw <rearnsha@arm.com>
33808
33809 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
33810 a word boundary.
33811 (LOCAL_ALIGNMENT): Similarly.
33812
442dc742 338132009-01-22 Mark Shinwell <shinwell@codesourcery.com>
87673f84 33814 Joseph Myers <joseph@codesourcery.com>
442dc742
MS
33815
33816 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
33817 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
33818 * config/arm/arm-tune.md: Regenerate.
33819 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
33820 -march=iwmmxt2.
33821
9b34732e
MS
338222009-01-22 Mark Shinwell <shinwell@codesourcery.com>
33823
33824 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
33825 version number to five.
33826
03c2a308
DS
338272009-01-22 Dodji Seketeli <dodji@redhat.com>
33828
33829 PR c++/38930
ba20e309 33830 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
03c2a308
DS
33831 * c-common.c (set_underlying_type): Likewise.
33832 (is_typedef_decl ): Likewise
33833 * tree.h: Likewise
33834 (set_underlying_type): Likewise.
33835 (is_typedef_type): Likewise.
33836
1240d76e
VM
338372009-01-21 Vladimir Makarov <vmakarov@redhat.com>
33838
33839 PR middle-end/38587
33840 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
33841 crossing setjmps.
33842
b8a1087d
DK
338432009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
33844
33845 PR bootstrap/37660
33846 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
33847 (LIBGCC_SPEC): Don't define.
33848 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
33849
435da628
UB
338502009-01-21 Uros Bizjak <ubizjak@gmail.com>
33851
33852 PR rtl-optimization/38879
33853 * alias.c (base_alias_check): Unaligned access via AND address can
33854 alias all surrounding object types except those with sizes equal
33855 or wider than the size of unaligned access.
33856
d597b3ce
DS
338572009-01-21 Dodji Seketeli <dodji@redhat.com>
33858
33859 PR c++/26693
ba20e309 33860 * c-decl.c (clone_underlying_type): Move this ...
d597b3ce 33861 * c-common.c (set_underlying_type): ... here.
435da628 33862 Also, make sure the function properly sets TYPE_STUB_DECL() on
d597b3ce
DS
33863 the newly created typedef variant type.
33864 (is_typedef_decl ): New entry point.
33865 * tree.h: Added a new member member_types_needing_access_check to
33866 struct tree_decl_non_common.
33867 (set_underlying_type): New entry point.
33868 (is_typedef_type): Likewise.
33869
71a6fe66
BM
338702009-01-21 Bingfeng Mei <bmei@broadcom.com>
33871
33872 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
33873 Check whether two instructions have memory references that
33874 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
33875 are helper functions for traversing.
33876 * alias.h (insn_alias_sets_confilict_p): New prototypes.
33877 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
33878 not to draw dependency edge for instructions with non-conflicting
33879 alias sets.
33880
5a248274
JM
338812009-01-20 Joseph Myers <joseph@codesourcery.com>
33882
33883 PR other/38758
6b67572e
UB
33884 * longlong.h: Update copyright years. Use soft-fp license notice.
33885 Sync __clz_tab declaration with glibc.
5a248274 33886
4b84f3de
SE
338872009-01-20 Steve Ellcey <sje@cup.hp.com>
33888
33889 PR target/30687
33890 * doc/extend.texi (syscall_linkage): New.
33891 (version_id): Modify.
33892
37348bf1 338932009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
435da628 33894 Richard Guenther <rguenther@suse.de>
37348bf1
AP
33895
33896 PR tree-optimization/38747
33897 PR tree-optimization/38748
33898 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
33899 conversion if the base address is an indirect reference and the
33900 aliasing sets could cause issues.
33901
d0a58904
SP
339022009-01-20 Sebastian Pop <sebastian.pop@amd.com>
33903
2ba9daa7 33904 * common.opt (fgraphite, fgraphite-identity): Add comment for
d0a58904
SP
33905 explaining why these options are not documented.
33906
71e7afb2
SP
339072009-01-20 Sebastian Pop <sebastian.pop@amd.com>
33908
33909 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
33910 gimple_call_lhs is NULL.
33911
38432148 339122009-01-20 Paolo Bonzini <bonzini@gnu.org>
09efeca1
PB
33913
33914 PR target/38868
33915 * emit-rtl.c (adjust_address_1): Make sure memref is never
33916 overwritten.
33917
cbb8dee3
BE
339182009-01-20 Ben Elliston <bje@au.ibm.com>
33919
33920 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
435da628 33921 const qualifier from arg parameter. Remove unnecessary cast to char *.
cbb8dee3
BE
33922 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
33923 const qualifier from arg 2.
33924
72c66596
IS
339252009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
33926
435da628 33927 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
72c66596 33928
f68211cd
VM
339292009-01-19 Vladimir Makarov <vmakarov@redhat.com>
33930
33931 PR c/38869
33932 * rtl.h (reinit_regs): New prototype.
33933 * regclass.c: Include ira.h.
33934 (reinit_regs): New.
33935 * Makefile.in (regclass.o): Add ira.h.
33936 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
33937
6e4f1168
L
339382009-01-18 H.J. Lu <hongjiu.lu@intel.com>
33939
33940 PR target/38736
33941 * c-common.c (handle_aligned_attribute): Use
33942 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
33943 default alignment value.
33944
33945 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
33946
33947 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
33948 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
33949
33950 * doc/extend.texi: Update __attribute__ ((aligned)). Document
33951 __BIGGEST_ALIGNMENT__.
33952
33953 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
33954
890065bf
RG
339552009-01-18 Richard Guenther <rguenther@suse.de>
33956
33957 PR tree-optimization/38819
33958 * tree-flow.h (operation_could_trap_helper_p): Declare.
33959 * tree-eh.c (operation_could_trap_helper_p): Export.
33960 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
33961 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
33962 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
33963 are about to insert a possibly trapping instruction and fail
33964 in this case.
33965
a729d731
AS
339662009-01-18 Andreas Schwab <schwab@suse.de>
33967
33968 * doc/install.texi (Configuration): Remove obsolete paragraph
33969 about use of --with-gnu-ld with --with-gnu-as.
33970
a640c13b
KH
339712009-01-18 Kazu Hirata <kazu@codesourcery.com>
33972
33973 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
33974 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
33975 Follow spelling conventions.
33976
dba2cc0c
BE
339772009-01-18 Ben Elliston <bje@au.ibm.com>
33978
33979 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
33980 C++ warning about implicit conversion from void * to struct
33981 bitmap_head_def *.
33982 (bitmap_obstack_free): Likewise for bitmap_element *.
bc127c63 33983 * Makefile.in (bitmap.o-warn): Remove.
dba2cc0c 33984
2207a498
DK
339852009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
33986
33987 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
33988
8137e465
SP
339892009-01-17 Sebastian Pop <sebastian.pop@amd.com>
33990 Tobias Grosser <tobi.grosser@amd.com>
33991
33992 * graphite.c (graphite_trans_scop_block): Do not block single
33993 nested loops.
33994
5be1c58c
AO
339952009-01-16 Alexandre Oliva <aoliva@redhat.com>
33996
33997 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
33998 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
33999 test with assertion.
34000
786ce82d
RG
340012009-01-16 Richard Guenther <rguenther@suse.de>
34002
34003 PR tree-optimization/38835
34004 PR middle-end/36227
34005 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
34006 and INT + PTR -> (INT)(PTR p+ INT) folding.
34007 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
34008
c1cb09ad
AN
340092009-01-16 Adam Nemet <anemet@caviumnetworks.com>
34010
34011 PR target/38554
34012 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
34013 the subreg from a lowpart subreg if it is also casting the value.
34014
bcab4e19
SP
340152009-01-16 Sebastian Pop <sebastian.pop@amd.com>
34016 Tobias Grosser <tobi.grosser@amd.com>
34017
34018 * graphite.c (compare_prefix_loops): New.
34019 (build_scop_canonical_schedules): Rewritten.
34020 (graphite_transform_loops): Move build_scop_canonical_schedules
34021 after build_scop_iteration_domain.
34022
0b040072
SP
340232009-01-16 Sebastian Pop <sebastian.pop@amd.com>
34024 Tobias Grosser <tobi.grosser@amd.com>
34025
2ba9daa7 34026 * graphite.c (add_conditions_to_domain): Add the loops to
0b040072
SP
34027 the dimension of the iteration domain. Do copy the domain
34028 only when it exists.
34029 (build_scop_conditions_1): Do not call add_conditions_to_domain.
34030 (add_conditions_to_constraints): New.
34031 (can_generate_code_stmt, can_generate_code): Removed.
34032 (gloog): Do not call can_generate_code.
34033 (graphite_transform_loops): Call add_conditions_to_constraints
34034 after building the iteration domain.
34035
56c6a499
JJ
340362009-01-16 Jakub Jelinek <jakub@redhat.com>
34037
34038 PR tree-optimization/38789
34039 * tree-ssa-threadedge.c
34040 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
34041 __builtin_constant_p.
34042
c95b2534 340432009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
cd3f1729
KZ
34044
34045 * dce.c (delete_unmarked_insns): Reversed the order that insns are
34046 examined before deleting them.
2ba9daa7 34047
c433cb14
RE
340482009-01-16 Richard Earnshaw <rearnsha@arm.com>
34049
34050 * function.c (aggregate_value_p): Correctly extract the function
34051 type from CALL_EXPR_FN lookup.
34052
c95b2534 340532009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
27d62fa4
HS
34054
34055 * config/picochip/picochip.c (picochip_override_options): Revert
34056 CFI asm flag disable commited previously.
34057
c77bb78f
SP
340582009-01-15 Sebastian Pop <sebastian.pop@amd.com>
34059 Tobias Grosser <tobi.grosser@amd.com>
34060 Jan Sjodin <jan.sjodin@amd.com>
34061
34062 * graphite.c (scan_tree_for_params): On substractions negate
34063 all the coefficients of the term.
34064 (clast_to_gcc_expression_red): New. Handle reduction expressions
34065 of more than two operands.
34066 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
34067 (get_vdef_before_scop): Handle also the case of default definitions.
34068
574af2d6
RS
340692009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
34070
34071 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
34072 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
34073 Also use them when walking CALL_INSN_FUNCTION_USAGE.
34074
e939805b
L
340752009-01-15 H.J. Lu <hongjiu.lu@intel.com>
34076 Joey Ye <joey.ye@intel.com>
34077
34078 PR middle-end/37843
34079 * cfgexpand.c (expand_stack_alignment): Don't update stack
34080 boundary nor check incoming stack boundary here.
34081 (gimple_expand_cfg): Update stack boundary and check incoming
34082 stack boundary here.
34083
c95b2534 340842009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
750900db 34085
435da628 34086 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
2ba9daa7 34087
0196c95e
JJ
340882009-01-14 Jakub Jelinek <jakub@redhat.com>
34089
34090 PR rtl-optimization/38245
34091 * calls.c (expand_call): Add stack arguments to
34092 CALL_INSN_FUNCTION_USAGE even for pure calls (when
34093 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
34094 in regs and partially in memory or BLKmode arguments.
34095 (emit_library_call_value_1): Add stack arguments to
34096 CALL_INSN_FUNCTION_USAGE even for pure calls (when
34097 ACCUMULATE_OUTGOING_ARGS).
34098 * dce.c: Include tm_p.h.
34099 (find_call_stack_args): New function.
34100 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
34101 argument.
34102 (mark_insn): Call find_call_stack_args for CALL_Ps.
34103 (prescan_insns_for_dce): Walk insns backwards in bb rather than
34104 forwards. Allocate and free arg_stores bitmap if needed, pass it
34105 down to deletable_insn_p, don't mark stores set in arg_stores
34106 bitmap, clear the bitmap at the beginning of each bb.
34107 * Makefile.in (dce.o): Depend on $(TM_P_H).
34108
6df6bcfa
MM
341092009-01-14 Michael Meissner <gnu@the-meissners.org>
34110
34111 PR target/22599
435da628
UB
34112 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
34113 to make sure the insn is a conditional test (bug 22599). Reformat a
34114 few long lines.
6df6bcfa 34115
765ec70c
SP
341162009-01-14 Sebastian Pop <sebastian.pop@amd.com>
34117
34118 PR middle-end/38431
34119 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
34120 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
34121 (gloog): Do not call cleanup_tree_cfg.
2ba9daa7 34122 (graphite_transform_loops): Call cleanup_tree_cfg after all
765ec70c
SP
34123 scops have been code generated.
34124
7de2b688
BS
341252009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
34126 * doc/gty.texi (Invoking the garbage collector): Added new node
34127 and section documenting ggc_collect.
34128
10bd6c5c
RG
341292009-01-14 Richard Guenther <rguenther@suse.de>
34130
34131 PR tree-optimization/38826
34132 PR middle-end/38477
34133 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
34134 initialization notes only if we actually emitted a warning.
34135 (intra_create_variable_infos): Add constraints for a result decl
34136 that is passed by hidden reference.
34137 (build_pred_graph): Mark all related variables non-direct on
34138 address-taking.
34139
9c7c70ee
NC
341402009-01-14 Nick Clifton <nickc@redhat.com>
34141
34142 * ira-conflicts.c: Include addresses.h for the definition of
34143 base_reg_class.
435da628
UB
34144 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
34145 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
9c7c70ee 34146
cf0c2a60
VM
341472009-01-13 Vladimir Makarov <vmakarov@redhat.com>
34148
34149 PR target/38811
34150 * Makefile.in (ira-lives.o): Add except.h.
34151
34152 * ira-lives.c: Include except.h.
34153 (process_bb_node_lives): Process can_throw_internal.
34154
d3302fd3
JJ
341552009-01-13 Jakub Jelinek <jakub@redhat.com>
34156
34157 PR rtl-optimization/38774
34158 * combine.c (simplify_set): When undoing cc_use change, don't do
34159 PUT_CODE on the newly created comparison, but instead put back the
34160 old comparison.
34161
7ab23fd0
JM
341622009-01-13 Joseph Myers <joseph@codesourcery.com>
34163
34164 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
34165 values. Remove duplicate arm8 entry.
34166
f9344488
SP
341672009-01-13 Sebastian Pop <sebastian.pop@amd.com>
34168
34169 PR tree-optimization/38786
34170 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
34171 the SSA_NAME case of expand_scalar_variables_expr.
34172 Set the type of an expression to the type of its assign statement.
34173 (expand_scalar_variables_expr): Also gather the scalar computation
34174 used to index the memory access. Do not pass loop_p.
34175 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
34176 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
bef3c57b
UB
34177 the gimple_stmt_iterator where it inserts new code.
34178 Do not pass loop_p.
f9344488
SP
34179 (copy_bb_and_scalar_dependences): Do not pass loop_p.
34180 (translate_clast): Update call to copy_bb_and_scalar_dependences.
34181
2d8bb84d
SP
341822009-01-13 Sebastian Pop <sebastian.pop@amd.com>
34183
34184 * graphite.h (debug_value): Removed.
34185 * graphite.c (debug_value): Removed.
34186
ff128632
RE
341872009-01-13 Richard Earnshaw <rearnsha@arm.com>
34188
435da628
UB
34189 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
34190 ldrd/strd with two 32-bit instructions.
ff128632 34191
d5a0a47b
RE
341922009-01-13 Richard Earnshaw <rearnsha@arm.com>
34193
435da628
UB
34194 * config/arm/arm.c (struct processors): Pass for speed down into
34195 cost helper functions.
d5a0a47b
RE
34196 (const_ok_for_op): Handle COMPARE and inequality nodes.
34197 (arm_rtx_costs_1): Rewrite.
34198 (arm_size_rtx_costs): Update prototype.
34199 (arm_rtx_costs): Pass speed down to helper functions.
34200 (arm_slowmul_rtx_costs): Rework cost calculations.
34201 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
34202 (arm_9e_rtx_costs): Likewise.
34203
26d5bf5b
UB
342042009-01-13 Uros Bizjak <ubizjak@gmail.com>
34205
34206 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
435da628 34207 relocations of local symbols wider than UNITS_PER_WORD are not valid.
26d5bf5b
UB
34208 (alpha_legitimize_address): Do not split local symbols wider than
34209 UNITS_PER_WORD into HIGH/LO_SUM parts.
34210
5d14e3d5
DS
342112009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
34212
34213 PR bootstrap/38580
34214 * gcc.c (process_command): Replace call to execvp with calls
34215 to pex_one and exit.
34216
33faafca
AS
342172009-01-03 Anatoly Sokolov <aesok@post.ru>
34218
34219 PR target/29141
34220 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
34221 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
34222 variant for devices with 3-byte PC.
ba20e309 34223 (__tablejump_elpm__): New.
33faafca 34224
634b5df5
JJ
342252009-01-12 Jakub Jelinek <jakub@redhat.com>
34226
34227 PR c/32041
34228 * c-parser.c (c_parser_postfix_expression): Allow `->' in
34229 offsetof member-designator, handle it as `[0].'.
34230
2842bb86
JDA
342312009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34232
34233 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
34234 function when not using named sections on targets with named sections
34235 if branch distance is less than 262132.
34236
76ee70f6
RE
342372009-01-12 Richard Earnshaw <rearnsha@arm.com>
34238
34239 * combine.c (combine_instructions): Recompute
34240 optimize_this_for_speed_p for each BB in the main combine loop.
34241
f56e675d
TB
342422009-01-12 Tomas Bily <tbily@suse.cz>
34243
34244 PR middlend/38385
26d5bf5b
UB
34245 * tree-loop-distribution.c (prop_phis): New function.
34246 (generate_builtin): Call prop_phis.
f56e675d 34247
c2152239
JJ
342482009-01-12 Jakub Jelinek <jakub@redhat.com>
34249
34250 PR tree-optimization/38807
34251 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
34252 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
34253
0e510b3e
AN
342542009-01-11 Adam Nemet <anemet@caviumnetworks.com>
34255
34256 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
34257 subreg of op0 to the original op0.
34258
c95b2534 342592009-01-11 Laurent GUERBY <laurent@guerby.net>
10270471
LG
34260
34261 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
2ba9daa7 34262
53a7ff9a
MS
342632009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
34264
34265 PR debug/7055
60839f5d 34266 * mips-tfile.c (parse_def): Fix parsing of def strings
53a7ff9a
MS
34267 starting with digits.
34268
b3a796bc
JJ
342692009-01-10 Jakub Jelinek <jakub@redhat.com>
34270
34271 PR target/38695
34272 * config/arm/arm.c (arm_is_long_call_p): Don't call
34273 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
34274
b21b850e
SB
342752009-01-09 Steven Bosscher <steven@gcc.gnu.org>
34276
34277 * regrename.c (regrename_optimize): Fix dumping.
34278 (find_oldest_value_reg): Preserve REG_POINTER.
34279 (copy_hardreg_forward_1): Likewise.
34280
e0e10d3a
DN
342812009-01-09 Diego Novillo <dnovillo@google.com>
34282
bf9b2cc9 34283 * gimple.h (struct gimple_statement_base) <uid>: Document
e0e10d3a
DN
34284 the restrictions on its use.
34285 (gimple_uid): Tidy.
34286 (gimple_set_uid): Tidy.
34287
c9da2ae8
JJ
342882009-01-09 Jakub Jelinek <jakub@redhat.com>
34289
34290 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
34291 zero guard even if align_bytes != 0 and count is smaller than
34292 size_needed.
34293
38432148 342942009-01-09 Vladimir Makarov <vmakarov@redhat.com>
a174c19c
VM
34295
34296 PR rtl-optimization/38495
26d5bf5b 34297 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
a174c19c
VM
34298 (add_range_and_copies_from_move_list): Print all added ranges.
34299 Add ranges to memory optimized destination.
34300
260fda3d
JJ
343012009-01-09 Jakub Jelinek <jakub@redhat.com>
34302
6f6278ad
JJ
34303 PR target/38686
34304 PR target/38708
34305 * config/i386/i386.c (override_options): Reject
34306 -mstringop-strategy=rep_8byte with -m32.
34307 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
34308 to 1. Do count comparison against epilogue_size_needed at compile
34309 time even when count_exp was constant forced into register. For
34310 size_needed don't jump to epilogue, instead just avoid aligning
34311 and invoke the body algorithm. If need_zero_guard, add zero guard
34312 even if count is non-zero, but smaller than size_needed + number of
34313 bytes that could be stored for alignment.
34314 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
34315 to 1. If need_zero_guard, add zero guard even if count is non-zero,
34316 but smaller than size_needed + number of bytes that could be stored
34317 for alignment. Compare size_needed with epilogue_size_needed instead
34318 of desired_align - align, don't adjust size_needed, pass
34319 epilogue_size_needed to the epilogue expanders.
34320
260fda3d 34321 PR c/35742
26d5bf5b 34322 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
260fda3d 34323
67b846fa
JDA
343242009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34325
34326 * pa.c (last_address): Change to unsigned.
34327 (update_total_code_bytes): Change argument to unsigned. Don't
34328 check if insn addresses are set.
34329 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
34330 addresses are not set.
34331 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
34332
91c82473
NC
343332009-01-09 Nick Clifton <nickc@redhat.com>
34334
34335 * config/sh/symbian.c: Replace uses of DECL_INLINE with
34336 DECL_DECLARED_INLINE_P.
34337
4017e262
JJ
343382009-01-09 Jakub Jelinek <jakub@redhat.com>
34339
0a49e5c2
JJ
34340 PR middle-end/38347
34341 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
34342 GET_MODE (op0) in operand_subword_force calls.
34343
4017e262
JJ
34344 PR middle-end/38771
34345 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
34346 fold_convert arg0 operands to TREE_TYPE (op0) first.
34347
7cd06356
VM
343482009-01-08 Vladimir Makarov <vmakarov@redhat.com>
34349
34350 * params.def (ira-max-conflict-table-size): Decrease default value
34351 to 1000.
34352
96867bbd
JJ
343532009-01-08 Jakub Jelinek <jakub@redhat.com>
34354
34355 PR tree-optimization/37031
34356 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
34357 on parameter_set.
34358 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
34359 allocate it using gc instead of heap, use VEC_quick_push instead of
34360 VEC_safe_push.
34361 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
34362 instead of heap, use VEC_quick_push instead of VEC_safe_push.
34363 * tree-data-ref.h (struct access_matrix): Change matrix to gc
34364 allocated vector from heap allocated.
34365 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
34366 * tree-loop-linear.c (linear_transform_loops): Allocate nest
34367 vector only after perfect_loop_nest_depth call.
34368
68f61c3d
SP
343692009-01-08 Sebastian Pop <sebastian.pop@amd.com>
34370 Jan Sjodin <jan.sjodin@amd.com>
34371
34372 PR tree-optimization/38559
34373 * graphite.c (debug_value, copy_constraint,
34374 swap_constraint_variables, scale_constraint_variable, ): New.
34375 (get_lower_bound, get_upper_bound): Removed.
34376 (graphite_trans_bb_strip_mine): Clean up this code that works
34377 only for constant number of iterations. Fully copy upper and
34378 lower bound constraints, not only the constant part of them.
34379 * graphite.h (debug_value): Declared.
34380
82567e33
IR
343812009-01-08 Ira Rosen <irar@il.ibm.com>
34382
34383 PR tree-optimization/37194
34384 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
2ba9daa7 34385 Don't add the cost of cost model guard in prologue to scalar
82567e33
IR
34386 outside cost in case of known number of iterations.
34387
7da13f1d
NF
343882009-01-07 Nathan Froyd <froydnj@codesourcery.com>
34389 Alan Modra <amodra@bigpond.net.au>
34390
34391 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
34392 non-word-aligned REG+CONST addressing.
34393
c0f64575
UB
343942009-01-07 Uros Bizjak <ubizjak@gmail.com>
34395
34396 PR target/38706
34397 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
34398 free_after_compilation when outputting a thunk.
34399 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
34400 Do not call free_after_compilation here.
34401
301b6a4e
UB
344022009-01-07 Uros Bizjak <ubizjak@gmail.com>
34403
34404 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
301b6a4e
UB
34405 (ix86_valid_target_attribute_inner_p): Ditto.
34406
6a114766
JS
344072009-01-07 Jan Sjodin <jan.sjodin@amd.com>
34408
34409 PR tree-optimization/38492
34410 PR tree-optimization/38498
34411 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
34412 * tree-chrec.h (scev_is_linear_expression): Declared.
34413 * graphite.c (graphite_cannot_represent_loop_niter): New.
34414 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
34415 (graphite_loop_normal_form): Use gcc_assert.
34416 (scan_tree_for_params): Use CASE_CONVERT.
34417 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
34418 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
34419 Use gcc_assert. Discard scops that contain unhandled cases.
34420 (build_scop_conditions): Return a boolean status for unhandled cases.
34421 (strip_mine_profitable_p): Print the loop number, not its depth.
34422 (is_interchange_valid): Pass the depth of the loop nest, don't
34423 recompute it wrongly.
34424 (graphite_trans_bb_block): Same.
34425 (graphite_trans_bb_block): Print tentative of loop blocking.
34426 (graphite_trans_scop_block): Do not print that the loop has been
34427 blocked.
34428 (graphite_transform_loops): Do not handle scops that contain condition
34429 scalar phi nodes.
34430
65b82caa
L
344312009-01-07 H.J. Lu <hongjiu.lu@intel.com>
34432
34433 AVX Programming Reference (December, 2008)
34434 * config/i386/avxintrin.h (_mm256_stream_si256): New.
34435 (_mm256_stream_pd): Likewise.
34436 (_mm256_stream_ps): Likewise.
34437
34438 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
34439 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
34440 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
34441 (bdesc_special_args): Add __builtin_ia32_movntdq256,
34442 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
34443 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
34444 (ix86_expand_special_args_builtin): Likewise.
34445
34446 * config/i386/sse.md (AVXMODEDI): New.
34447 (avx_movnt<mode>): Likewise.
34448 (avx_movnt<mode>): Likewise.
34449 (<sse>_movnt<mode>): Remove AVX support.
34450 (sse2_movntv2di): Likewise.
34451
cef158f9
RG
344522009-01-07 Richard Guenther <rguenther@suse.de>
34453
34454 PR middle-end/38751
34455 * fold-const.c (extract_muldiv): Remove obsolete comment.
34456 (fold_plusminus_mult_expr): Undo MINUS_EXPR
34457 to PLUS_EXPR canonicalization for the canonicalization.
34458
246cb5be
GP
344592009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
34460
34461 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
34462 hosted cross-compilers generating less efficient code.
34463
84b9b872
RS
344642009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
34465
34466 * function.h (rtl_data): Add a dbr_scheduled_p field.
34467 * reorg.c (dbr_schedule): Set it.
34468 (gate_handle_delay_slots): Check it.
34469 * config/mips/mips.c (mips_base_delayed_branch): Delete.
34470 (mips_reorg): Check flag_delayed_branch instead of
34471 mips_base_delayed_branch.
34472 (mips_override_options): Don't set mips_base_delayed_branch
34473 or flag_delayed_branch.
34474
ace984c8
RS
344752009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
34476
34477 PR rtl-optimization/38426.
34478 * ira.c (ira): Set current_function_is_leaf earlier.
34479
7ad7809b
JJ
344802009-01-06 Jakub Jelinek <jakub@redhat.com>
34481
34482 PR rtl-optimization/38722
34483 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
34484 too early, only set a flag and modify after last possible
34485 undo_all point.
34486
c52ec948
JJ
344872009-01-06 Janis Johnson <janis187@us.ibm.com>
34488
34489 PR c/34252
34490 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
34491 * real.c (decimal_single_format): Correct values of emin and emax.
34492 (decimal_double_format): Ditto.
34493 (decimal_quad_format): Ditto.
34494 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
34495 computation of DECnn_MIN and DECnn_MAX for corrected values of
34496 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
34497 __DECnn_MIN__, and adjust its computation for the corrected value
34498 of emin.
34499
300240e1
JH
345002009-01-06 Jan Hubicka <jh@suse.cz>
34501
34502 PR target/38744
435da628 34503 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
300240e1 34504
271c069e
GP
345052009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
34506
34507 * doc/contrib.texi (Contributors): Slightly adjust the end note.
34508 Add Robert Clark to the list of testers.
34509
64e4c301 345102009-01-06 Jan Hubicka <jh@suse.cz>
c95b2534 34511 Kai Tietz <kai.tietz@onevision.com>
64e4c301 34512
435da628
UB
34513 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
34514 * config/i386/i386.c (ix86_expand_call): Add clobbers.
64e4c301 34515
7650b83e 345162009-01-06 Jan Hubicka <jh@suse.cz>
c95b2534 34517 Kai Tietz <kai.tietz@onevision.com>
7650b83e 34518
435da628
UB
34519 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
34520 for w64 ABI.
34521 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
7650b83e
JH
34522 (ix86_nsaved_regs): Count only general purpose regs.
34523 (ix86_nsaved_sseregs): New.
34524 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
34525 to 16 for w64; compute padding and size of sse reg save area.
301b6a4e
UB
34526 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
34527 general purpose regs.
7650b83e
JH
34528 (ix86_emit_save_sse_regs_using_mov): New.
34529 (ix86_expand_prologue): Save SSE regs if needed.
34530 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
34531 (ix86_emit_restore_sse_regs_using_mov): New.
34532 (ix86_expand_epilogue): Save SSE regs if needed.
34533
9aa5c1b2 345342009-01-06 Jan Hubicka <jh@suse.cz>
c95b2534 34535 Kai Tietz <kai.tietz@onevision.com>
9aa5c1b2 34536
435da628
UB
34537 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
34538 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
34539 functions when accumulate outgoing args is off.
9aa5c1b2 34540
f7556aae
L
345412009-01-06 H.J. Lu <hongjiu.lu@intel.com>
34542
34543 PR bootstrap/38742
34544 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
34545 before using pseudos_have_intersected_live_ranges_p.
34546
34547 * ira-int.h (ira_assert): Always define.
34548
e47b7d04
L
345492009-01-06 H.J. Lu <hongjiu.lu@intel.com>
34550
34551 AVX Programming Reference (December, 2008)
34552 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
34553 (_mm256_permute2_pd): Likewise.
34554 (_mm_permute2_ps): Likewise.
34555 (_mm256_permute2_ps): Likewise.
34556 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
34557 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
34558
34559 * config/i386/i386.c (ix86_builtins): Remove
34560 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
34561 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
34562 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
34563 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
34564 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
34565 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
34566 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
34567 __builtin_ia32_vpermil2ps256.
34568 (ix86_init_mmx_sse_builtins): Updated.
34569 (ix86_expand_args_builtin): Likewise.
34570
44b86471
JDA
345712009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34572
e47b7d04
L
34573 * pa.c (output_call): Relocate non-jump insns in the delay slot of
34574 long absolute calls when generating PA 2.0 code.
44b86471 34575
311aab06
VM
345762009-01-05 Vladimir Makarov <vmakarov@redhat.com>
34577
34578 PR rtl-optimization/38583
34579 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
34580
34581 * params.def (ira-max-conflict-table-size): New.
34582
34583 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
2ba9daa7 34584
311aab06 34585 * ira.h (ira_conflicts_p): New external definition.
2ba9daa7 34586
311aab06
VM
34587 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
34588 table. Report this. Return result of building.
34589 (ira_build_conflicts): Use ira_conflicts_p. Check result of
34590 building conflict table.
34591
301b6a4e 34592 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
311aab06 34593 (ira_color): Use ira_conflicts_p.
2ba9daa7 34594
311aab06
VM
34595 * global.c: Include ira.h.
34596 (pseudo_for_reload_consideration_p, build_insn_chain): Use
34597 ira_conflicts_p.
34598
34599 * Makefile.in (global.o): Add ira.h.
2ba9daa7 34600
311aab06
VM
34601 * ira-build.c (mark_all_loops_for_removal,
34602 propagate_some_info_from_allocno): New.
34603 (remove_unnecessary_allocnos): Call
34604 propagate_some_info_from_allocno.
34605 (remove_low_level_allocnos): New.
34606 (remove_unnecessary_regions): Add parameter. Call
34607 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
34608 parameter to remove_unnecessary_regions.
34609 (ira_build): Remove all regions but root if the conflict table was
34610 not built. Update conflict hard regs for allocnos crossing calls.
34611
34612 * ira.c (ira_conflicts_p): New global.
34613 (ira): Define and use ira_conflicts_p.
34614
34615 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
34616 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
301b6a4e 34617 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
2ba9daa7 34618
5641785f
BE
346192009-01-06 Ben Elliston <bje@au.ibm.com>
34620
34621 * gengtype-lex.l (YY_NO_INPUT): Define.
34622
e4e5261f
AP
346232009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
34624
34625 PR c/34911
5641785f
BE
34626 * c-common.c (handle_vector_size_attribute): Also reject
34627 BOOLEAN_TYPE types.
e4e5261f 34628
7b10257f
SP
346292009-01-05 Sebastian Pop <sebastian.pop@amd.com>
34630
34631 PR tree-optimization/38492
34632 * graphite.c (rename_map_elt, debug_rename_elt,
301b6a4e
UB
34633 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
34634 rename_map_elt_info, eq_rename_map_elts,
34635 get_new_name_from_old_name, bb_in_sese_p): Moved around.
7b10257f
SP
34636 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
34637 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
34638 (sese_build_livein_liveouts): New.
34639 (new_sese, free_sese): New.
34640 (new_scop): Call new_sese.
34641 (free_scop): Call free_sese.
34642 (rename_variables_from_edge, rename_phis_end_scop): Removed.
34643 (register_old_new_names): Renamed register_old_and_new_names.
34644 (register_scop_liveout_renames, add_loop_exit_phis,
34645 insert_loop_close_phis, struct igp,
34646 default_liveout_before_guard, add_guard_exit_phis,
34647 insert_guard_phis, copy_renames): New.
34648 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
34649 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
34650 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
34651 (scop_adjust_phis_for_liveouts): New.
34652 (gloog): Call scop_adjust_phis_for_liveouts.
34653
34654 * graphite.h (struct sese): Documented. Added fields liveout,
301b6a4e 34655 num_ver and livein.
7b10257f
SP
34656 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
34657 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
34658 (struct scop): Added field liveout_renames.
34659 (SCOP_LIVEOUT_RENAMES): New.
34660
9761fcc7
HJ
346612009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
34662
34663 PR tree-optimization/38510
34664 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
34665 (translate_clast): Call recompute_all_dominators before
34666 graphite_verify.
34667 (gloog): Call recompute_all_dominators before graphite_verify.
34668
346692009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
c95b2534 34670 Jan Sjodin <jan.sjodin@amd.com>
9761fcc7
HJ
34671
34672 PR tree-optimization/38500
34673 * graphite.c (create_sese_edges): Call fix_loop_structure after
34674 splitting blocks.
34675
c95b2534 346762009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
48a01864
JS
34677
34678 * config.gcc: Add m32r*-*-rtems*.
34679 * config/m32r/rtems.h: New file.
34680
fc0cd180
BE
346812009-01-05 Ben Elliston <bje@au.ibm.com>
34682
34683 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
34684 (.po.pox): Likewise.
34685 (po/gcc.pot): Likewise.
34686
3106d8e5
DM
346872009-01-04 David S. Miller <davem@davemloft.net>
34688
34689 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
34690 (STARTING_FRAME_OFFSET): Always set to zero.
34691
0009b473
RS
346922009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
34693
34694 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
34695 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
34696 fixed-point types, and vectors of the same.
34697
4f24c6d6
RS
346982009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
34699
34700 * config/mips/sync.md (*mb_barrier): Rename to...
34701 (*memory_barrier): ...this.
34702
1df48f5c
JW
347032009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
34704
34705 * doc/extend.texi (Function Attributes): Move @cindex after @item
eefe5da0 34706 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
1df48f5c
JW
34707 and put in alphabetical order. Fix 'target' name and put in order.
34708 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
34709 typos.
34710
1a8c13b3
UB
347112009-01-04 Uros Bizjak <ubizjak@gmail.com>
34712
34713 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
34714 (memory_barrier): Expand as unspec instead of unspec_volatile.
34715 Remove mem:BLK from insn operands. Use Pmode scratch register.
34716 (*memory_barrier): Define as unspec instead of unspec_volatile.
34717 Use (match_dup 0) as input operand.
34718
34719 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
34720 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
34721 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
34722 scratch register. Remove operand 1.
34723 (*stbar): Define as unspec instead of unspec_volatile.
34724 Use (match_dup 0) as input operand, remove (const_int 8).
34725 (*membar): Define as unspec instead of unspec_volatile.
34726 Use (match_dup 0) as input operand, remove input operand 2.
34727
34728 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
34729 (memory_barrier): Expand as unspec instead of unspec_volatile.
34730 Remove mem:BLK from insn operands. Use Pmode scratch register.
34731 (*memory_barrier): Define as unspec instead of unspec_volatile.
34732 Use (match_dup 0) as input operand.
34733
34734 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
34735 Remove mem:BLK from insn operands. Use Pmode scratch register.
34736 Set volatile flag on operand 0.
34737 (*memory_barrier): New insn pattern.
34738
34739 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
34740 insn operands.
34741 (*memory_barrier): Use (match_dup 0) as input operand.
34742
34743 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
34744 Remove mem:BLK from insn operands. Use Pmode scratch register.
34745 Set volatile flag on operand 0.
301b6a4e 34746 (*mb_internal): New insn pattern.
1a8c13b3
UB
34747
34748 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
34749
fb0703f7
SB
347502009-01-04 Steven Bosscher <steven@gcc.gnu.org>
34751
34752 PR middle-end/38586
34753 * function.c (struct temp_slot): Move to the section of the file
34754 that deals with temp slots. Remove field 'address'.
34755 (temp_slot_address_table): New hash table of address -> temp slot.
34756 (struct temp_slot_address_entry): New struct, items for the table.
34757 (temp_slot_address_compute_hash, temp_slot_address_hash,
34758 temp_slot_address_eq, insert_temp_slot_address): Support functions
34759 for the new table.
34760 (find_temp_slot_from_address): Rewrite to use the new hash table.
34761 (remove_unused_temp_slot_addresses): Remove addresses of temp
34762 slots that have been made available.
34763 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
34764 worker function for remove_unused_temp_slot_addresses.
34765 (assign_stack_temp_for_type): Don't clear the temp slot address list.
34766 Add the temp slot address to the address -> temp slot map.
34767 (update_temp_slot_address): Update via insert_temp_slot_address.
34768 (free_temp_slots): Call remove_unused_temp_slot_addresses.
34769 (pop_temp_slots): Likewise.
34770 (init_temp_slots): Allocate the address -> temp slot map, or empty
34771 the map if it is already allocated.
34772 (prepare_function_start): Initialize temp slot processing.
34773
b5a430f3
SB
347742009-01-04 Steven Bosscher <steven@gcc.gnu.org>
34775
34776 PR middle-end/38584
34777 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
34778 Calculate the size of all stack vars assuming no packing of stack
34779 vars will happen, replacing a quadratic algorithm with a linear one.
34780
5d560619
JJ
347812009-01-03 Jakub Jelinek <jakub@redhat.com>
34782
34783 PR target/38707
34784 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
34785 can't be used.
34786
953a7caa
DN
347872009-01-03 Diego Novillo <dnovillo@google.com>
34788
34789 * doc/contrib.texi: Update contributions.
34790
5f26a230
JJ
347912009-01-03 Jakub Jelinek <jakub@redhat.com>
34792
493aa551
JJ
34793 PR c++/38705
34794 * builtins.c (fold_builtin_memory_op): Give up if either operand
34795 is volatile. Set srctype or desttype to non-qualified version
34796 of the other type.
34797
5f26a230
JJ
34798 PR c/38700
34799 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
34800 and FUNCTION_DECLs.
34801
c95b2534 348022009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
fafe34f9
KZ
34803
34804 PR rtl-optimization/35805
34805 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
34806 problem if fast dce is able to remove any instructions.
34807 * dce.c (dce_process_block): Fix dump message.
2ba9daa7 34808
0b355794
MM
348092009-01-02 Mark Mitchell <mark@codesourcery.com>
34810
34811 PR 33649
34812 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
34813
0cf0d02b
JJ
348142009-01-02 Jakub Jelinek <jakub@redhat.com>
34815
34816 PR middle-end/38690
34817 * tree-flow.h (op_code_prio, op_prio): New prototypes.
34818 * tree-pretty-print.c (op_code_prio): New function.
34819 (op_prio): No longer static. Use op_code_prio.
34820 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
34821 Use op_prio and op_code_prio to determine if () should be
34822 printed around operand(s) or not.
34823
34824 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
34825 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
34826 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
34827 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
34828 pp_character instead of pp_string for single letter printing.
34829
e3606f3b
RS
348302009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
34831
34832 * doc/extend.texi: Fix '#pragma GCC option' typo.
34833
c95b2534 348342009-01-02 Richard Guenther <rguenther@suse.de>
00f39bd5 34835
a5f061dc
RG
34836 * doc/install.texi (--enable-checking): Mention different
34837 default for stage1.
34838 (--enable-stage1-checking): Document.
00f39bd5 34839
26de0bcb
AP
348402009-01-01 Andrew Pinski <pinskia@gmail.com>
34841
34842 PR middle-end/30142
34843 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
34844 case to be an error.
34845
7a7d8fab
BE
348462009-01-02 Ben Elliston <bje@au.ibm.com>
34847
34848 * config/fp-bit.h (pack_d): Constify argument.
34849 * config/fp-bit.c (makenan): Constify return type. Remove casts.
34850 (isnan): Constify argument.
34851 (isinf): Likewise.
34852 (iszero): Likewise.
34853 (pack_d): Likewise.
34854 (_fpadd_parts): Constify return type.
34855 (_fpmul_parts): Likewise.
34856 (_fpdiv_parts): Likewise.
34857
b295aee2
JJ
348582009-01-01 Jakub Jelinek <jakub@redhat.com>
34859
34860 PR c/36489
34861 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
34862 warn about overwriting initializer with side-effects or
34863 -Woverride-init if !IMPLICIT.
34864 (output_init_element): Likewise. Pass IMPLICIT down to
34865 add_pending_init.
34866 (process_init_element): Add IMPLICIT argument. Pass it down
34867 to output_init_element.
34868 (push_init_element, pop_init_level, set_designator): Adjust
34869 process_init_element callers.
34870 (set_nonincremental_init, set_nonincremental_init_from_string):
34871 Adjust add_pending_init callers.
34872 (output_pending_init_elements): Adjust output_init_element callers.
34873 * c-tree.h (process_init_element): Adjust prototype.
34874 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
34875 process_init_element callers.
ad41bd84
JM
34876
34877\f
34878Copyright (C) 2009 Free Software Foundation, Inc.
34879
34880Copying and distribution of this file, with or without modification,
34881are permitted in any medium without royalty provided the copyright
34882notice and this notice are preserved.
This page took 4.666161 seconds and 5 git commands to generate.