]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
tree-nested.c (finalize_nesting_tree_1): Declare the frame_decl in the binding tree.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
c10348e5
AO
12009-06-05 Alexandre Oliva <aoliva@redhat.com>
2
3 * tree-nested.c (finalize_nesting_tree_1): Declare the
4 frame_decl in the binding tree.
5
6c52e687
CC
62009-06-04 Cary Coutant <ccoutant@google.com>
7
8 * basic-block.h (struct basic_block_def): Add discriminator field.
9 * dbxout.c (dbxout_source_line): Add new parameter. Change all
10 callers.
11 * debug.c (do_nothing_debug_hooks): Add additional entry.
12 (debug_nothing_int_charstar_int): New function.
13 * debug.h (struct gcc_debug_hooks): Add parameter to source_line
14 hook.
15 (debug_nothing_int_charstar_int): New declaration.
16 * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
17 discriminator value in .loc directive.
18 * final.c (last_discriminator): New variable.
19 (discriminator): New variable.
20 (final_start_function): Initialize above variables, pass current
21 discriminator to debug hook.
22 (notice_source_line): Check for discriminator change.
23 * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
24 * sdbout.c (sdbout_source_line): New parameter.
25 * tree-cfg.c (struct locus_discrim_map): New structure type.
26 (discriminator_per_locus): New hash table.
27 (build_gimple_cfg): Allocate and free discriminator hash table.
28 (make_edges): Call assign_discriminator.
29 (locus_map_hash): New function.
30 (locus_map_eq): New function.
31 (next_discriminator_for_locus): New function.
32 (same_line_p): New function.
33 (assign_discriminator): New function.
34 (make_cond_expr_edges): Call assign_discriminator.
35 (make_gimple_switch_edges): Likewise.
36 (first_non_label_stmt): New function.
37 * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
38 all callers.
39 * xcoffout.c (xcoffout_source_line): Add new parameter.
40
41 * configure.ac (gcc_cv_as_discriminator): New configury check for
42 gas support for discriminator.
43 * configure: Regenerate.
44 * config.in: Regenerate.
45
e07e020b
RR
462009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
47
48 * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
49 val after checking for integers.
50
72fa3605
UB
512009-06-04 Uros Bizjak <ubizjak@gmail.com>
52
53 * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
54 X64_REGPARM_MAX.
55 (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
56 (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
57 (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
58 * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
59 X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
60 X64_SSE_REGPARM_MAX.
61 * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
62 X64_SSE_REGPARM_MAX.
63
bdde878c
AO
642009-06-04 Alexandre Oliva <aoliva@redhat.com>
65
66 * gcc.c (report_times_to_file): New.
67 (execute): Implement it.
68 (process_command): Support -time=.
69 * doc/invoke.texi: Document it.
70
2ce59df7
AO
712009-06-04 Alexandre Oliva <aoliva@redhat.com>
72
73 * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
74 that have value exprs.
75
78bd9046
AO
762009-06-04 Alexandre Oliva <aoliva@redhat.com>
77
78 * dwarf2asm.c (dw2_force_const_mem): Defer creation of
79 declarations for constants until...
80 (dw2_output_indirect_constant_1): ... this point.
81
e63d4106
RE
822009-06-04 Richard Earnshaw <rearnsha@arm.com>
83
84 PR target/10242
85 * arm.md (arm_addsi3): Don't try to split an add with an
86 eliminable register until after reload has completed.
87
6bc7bc14
ILT
882009-06-03 Ian Lance Taylor <iant@google.com>
89
90 * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
91 * genattrtab.c (write_length_unit_log): Likewise.
92 * genchecksum.c (dosum): Likewise.
93 * gengtype.c (write_rtx_next): Likewise.
94 (finish_root_table, write_roots): Likewise.
95 * gimple.c (gimple_ops_offset_): Likewise.
96 * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
97 * config/arc/arc.c (arc_attribute_table): Likewise.
98 * config/arm/arm.c (arm_attribute_table): Likewise.
99 * config/avr/avr.c (avr_attribute_table): Likewise.
100 * config/crx/crx.c (crx_attribute_table): Likewise.
101 * config/m32r/m32r.c (m32r_attribute_table): Likewise.
102 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
103 * config/mcore/mcore.c (mcore_attribute_table): Likewise.
104 * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
105 * config/sh/sh.c (sh_attribute_table): Likewise.
106 * config/sparc/sparc.c (sparc_attribute_table): Likewise.
107 * config/spu/spu.c (spu_attribute_table): Likewise.
108 * config/v850/v850.c (v850_attribute_table): Likewise.
109
110 * config/alpha/alpha.c (vms_attribute_table): Make static.
111 * config/bfin/bfin.c (bfin_attribute_table): Likewise.
112 * config/h8300/h8300.c (h8300_attribute_table): Likewise.
113 * config/mips/mips.c (mips_attribute_table): Likewise.
114
115 * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
116 $(SYSTEM_H).
117 (cc1-checksum.o): Likewise.
118
19d892fd
SE
1192009-06-03 Steve Ellcey <sje@cup.hp.com>
120
121 * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
122
679f3354
JJ
1232009-06-03 Jakub Jelinek <jakub@redhat.com>
124
ff35822b
JJ
125 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
126 insn if it is changing sp. Use gen_add3_insn instead of
127 conditionally gen_addsi3 and gen_adddi3.
128 (offset_below_red_zone_p): New static inline function.
129 (rs6000_emit_epilogue): Emit needed epilogue unwind info.
130 Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
131 * config/rs6000/ppc-asm.h: Include auto-host.h.
132 (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
133 CFI_RESTORE): Define.
134 * config/rs6000/crtresxgpr.asm: Add unwind info.
135 * config/rs6000/crtresxfpr.asm: Likewise.
136 * config/rs6000/crtresgpr.asm: Likewise.
137 * config/rs6000/crtresfpr.asm: Likewise.
138 * config/rs6000/crtsavgpr.asm: Likewise.
139 * config/rs6000/crtsavfpr.asm: Likewise.
140
679f3354
JJ
141 * dwarf2out.c (output_cfi_directive): Pass 1 instead of
142 0 to second argument of DWARF2_FRAME_REG_OUT macros.
143
2e94c12d
JB
1442009-06-03 Julian Brown <julian@codesourcery.com>
145
146 * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
147 words or less (including TImode) in core registers.
148
3111cce0
RG
1492009-06-03 Richard Guenther <rguenther@suse.de>
150
151 PR middle-end/40328
152 * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
153
5e1b50f6
AB
1542009-06-03 Andrey Belevantsev <abel@ispras.ru>
155
156 * statistics.c (statistics_counter_event): Do not record event
157 in pass dump if its number == -1.
158 (curr_statistics_hash): Add assert that we never get passes
159 with static number == -1.
160
6f11d690
RG
1612009-06-03 Richard Guenther <rguenther@suse.de>
162 Andrey Belevantsev <abel@ispras.ru>
163
164 * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
165 non-BLKmode arrays addressable.
166
88961471
MK
1672009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
168
169 * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
170 * config/m68k/m68k.h: ... here.
171 * testsuite/gcc.dg/falign-labels.c (dg-options): Don't restrict for
172 m68k and fido.
173
9961eb45
MJ
1742009-06-03 Martin Jambor <mjambor@suse.cz>
175
176 PR tree-optimization/40323
177 * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
178 assignment.
179
2f2c62a0
RG
1802009-06-03 Richard Guenther <rguenther@suse.de>
181
182 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
183 consistently.
184
d6ced3b7
SZ
1852009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
186
187 * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
188 JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
189 JUMP_TABLE_DATA_P where applicable.
190 * config/sh/sh.c: Ditto.
191 * config/sh/sh.h: Ditto.
192 * config/sh/sh.md: Ditto.
193 * config/sh/symbian.c: Ditto.
194
f3afc8a7
UB
1952009-06-03 Uros Bizjak <ubizjak@gmail.com>
196
197 * config/i386/driver-i386.c (describe_cache): Optimize
198 concatenation of strings. Use snprintf instead of sprintf.
199 (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
200 target when not compiling with GCC.
201
1964788a
KK
2022009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
203
204 * config/sh/sh.c: Revert last change.
205 (sh_expand_epilogue): Emit a blockage insn before the frame
206 pointer adjustment unconditionally.
207
8633c315
RS
2082009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
209
210 * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
211 * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
212 * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
213 * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
214 to COLLECT_GCC_OPTIONS.
215
781a1758
RS
2162009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
217
218 * collect2.c (target_system_root): New variable.
219 (main): Handle --sysroot=.
220 (ignore_library): Strip the sysroot from the library path.
221
dfb636dc
RS
2222009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
223
224 * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
225 (collect2.o): Depend on collect2-aix.h.
226 (collect2-aix.o): New rule.
227 * collect2-aix.h: New file.
228 * collect2-aix.c: Likewise.
229 * collect2.c: Include collect2-aix.h. Don't undefine
230 OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
231 Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
232 Use TARGET_AIX_VERSION instead of _AIX51.
233 * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
234 * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
235 * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
236 * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
237 * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
238
51136ae8
RS
2392009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
240
241 * collect2.c (ignore_library): Avoid premature post-increment
242 and null deference.
243
7f142d33
RS
2442009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
245
246 * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
247 * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
248 !CROSS_DIRECTORY_STRUCTURE alternative and use it for
249 CROSS_DIRECTORY_STRUCTURE too.
250 (LINK_LIBG_SPEC): Likewise.
251 (LIB_SPEC): Add %R to sysroot paths.
252 * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
253 (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
254 * config/rs6000/aix51.h: As for aix43.h.
255 * config/rs6000/aix52.h: Likewise.
256 * config/rs6000/aix53.h: Likewise.
257 * config/rs6000/aix61.h: Likewise.
258 * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
259 to the beginning of sysroot paths.
260
9e74b7d2
AO
2612009-06-02 Alexandre Oliva <aoliva@redhat.com>
262
263 * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
264 INSN_LISTs that are out of the REG_NOTE range.
265
a9f6ecee
AO
2662009-06-02 Alexandre Oliva <aoliva@redhat.com>
267
268 * loop-unroll.c (struct iv_to_split): Add pointer to next.
269 (struct var_to_expand): Likewise.
270 (struct opt_info): Add head and tail for linked lists of the above.
271 (analyze_insn_to_expand_var): Initialize next.
272 (analyze_iv_to_split_insn): Likewise.
273 (analyze_insns_in_loop): Create linked lists.
274 (allocate_basic_variable): Simplify for use without hash table.
275 (insert_var_expansion_initialization): Likewise, make it type-safer.
276 (combine_var_copies_in_loop_exit): Likewise.
277 (apply_opt_in_copies): Walk lists rather than hash tables.
278 (release_var_copies): Simplified and inlined by hand into...
279 (free_opt_info): ... this function.
280
69596c69
RG
2812009-06-02 Richard Guenther <rguenther@suse.de>
282
283 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
284 for field decls.
285
fe8a7779
AO
2862009-06-02 Alexandre Oliva <aoliva@redhat.com>
287
288 * cfgexpand.c (gimple_expand_cfg): Discard the source location
289 only for builtins that are not overridden.
290
1bcca2c5
AO
2912009-06-02 Alexandre Oliva <aoliva@redhat.com>
292
293 * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
294 label string.
295
8588f797
AO
2962009-06-02 Alexandre Oliva <aoliva@redhat.com>
297
298 * df-core.c (df_ref_debug): Honor -fdump-noaddr.
299
45f39d78
AO
3002009-06-02 Alexandre Oliva <aoliva@redhat.com>
301
302 * combine.c (move_deaths): Compare LUIDs within the same BB only.
303
2aa7c49b
AO
3042009-06-02 Alexandre Oliva <aoliva@redhat.com>
305
306 * common.opt (fdump-unnumbered-links): New.
307 * doc/invoke.texi (-fdump-unnumbered-links): Document it.
308 * print-rtl.c (flag_dump_unnumbered_links): New.
309 (print_rtx): Test it.
310
55b2829b
RE
3112009-06-02 Richard Earnshaw <rearnsha@arm.com>
312
313 * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
314 push/pop multiple to 8-byte alignment.
e63d4106 315
6c0d7021
JJ
3162009-06-01 Jakub Jelinek <jakub@redhat.com>
317
0aa34d44
JJ
318 * config/i386/i386.c (queued_cfa_restores): New static variable.
319 (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
320 functions.
321 (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
322 (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
323 Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
324 Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
325 note unconditionally.
326 (ix86_emit_restore_regs_using_mov): Likewise.
327 (ix86_emit_restore_sse_regs_using_mov): Likewise.
328 (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
329 it through to ix86_emit_restore_reg_using_pop.
330 (ix86_emit_leave): Add RED_OFFSET argument. Call
331 ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
332 instead of adding REG_CFA_OFFSET note unconditionally.
333 (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
334 the above functions. Call ix86_add_queued_cfa_restore_notes when
335 needed.
336
337 * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
338 force output of the label even for dwarf2out_do_cfi_asm.
339 (add_fde_cfi): If -g2 and above and cfi might change CFA,
340 force creation of CFI label and chain DW_CFA_set_loc jumping to it
341 for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
342 caller.
343 (dwarf2out_stack_adjust, dwarf2out_frame_debug,
344 dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
345 dwarf2out_cfi_label callers.
346 * tree.h (dwarf2out_cfi_label): Adjust prototype.
347 * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
348 Adjust dwarf2out_cfi_label callers.
349 * config/vax/vax.c (vax_output_function_prologue): Likewise.
350
604a6be9
JJ
351 * config/i386/i386.h (struct machine_cfa_state,
352 struct machine_function): Guard with ifndef USED_FOR_TARGET
353 instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
354
df0026a7
JJ
355 PR other/40024
356 * emutls.c (__emutls_get_address): Change arr->size to mean number
357 of allocated arr->data entries instead of # of slots + 1.
358
6c0d7021
JJ
359 PR middle-end/40316
360 * recog.c (peep2_reinit_state): New function.
361 (peephole2_init_state): Use it at the end of a basic block and also
362 when seeing a RTX_FRAME_RELATED_P insn.
363
49df2fb8
SE
3642009-06-01 Steve Ellcey <sje@cup.hp.com>
365
366 * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
367 fixuns_truncrfdi2): New.
368 (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
369 *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
370 *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
371 *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
372 *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
373 *recip_approx): Remove.
374 (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
375 moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
376 divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
377 move to div.md.
378 * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
379 setf_exp_rf): New.
380
67165eb3
ILT
3812009-06-01 Ian Lance Taylor <iant@google.com>
382
383 * attribs.c (register_attribute): Use CONST_CAST.
384 * collect2.c (main): Use CONST_CAST2.
385 (scan_prog_file): Likewise.
386 * gcc.c (process_command, main): Likewise.
387 * toplev.c (toplev_main): Likewise.
388
389 * c-typeck.c (handle_warn_cast_qual): New static function,
390 partially broken out of build_c_cast.
391 (build_c_cast): Call handle_warn_cast_qual.
392 * doc/invoke.texi (Warning Options): Document new effect of
393 -Wcast-qual.
394
e74fe492
AH
3952009-06-01 Aldy Hernandez <aldyh@redhat.com>
396
397 * diagnostic.c (diagnostic_build_prefix): Always print columns.
398 (diagnostic_report_current_module): Print columns.
399 * common.opt (flag_show_column): Enable by default.
400
7eba2d1f
LM
4012009-06-01 Luis Machado <luisgpm@br.ibm.com>
402
403 * alias.c (find_base_term): Check for NULL term before returning.
404
ee88d9aa
MK
4052009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
406
407 Revert due to PR40320:
ee88d9aa
MK
408 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
409 * calls.c (emit_library_call_value_1): Don't force_operand for move
410 and push insns.
411
324c9b02 4122009-06-01 Olivier Hainque <hainque@adacore.com>
40d0d9e4 413 Eric Botcazou <ebotcazou@adacore.com>
324c9b02
OH
414
415 * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
416 to be processed as a bitfield for constructor output purposes.
417 * output.h (initializer_constant_valid_for_bitfield_p): Declare
418 new function.
419 * varasm.c (oc_local_state): New type, output_constructor
420 local state to support communication with helpers.
421 (oc_outer_state): New type, output_constructor outer state of
422 relevance in recursive calls.
423 (output_constructor_array_range): New output_constructor helper,
424 extracted code for an array range element.
425 (output_constructor_regular_field): New output_constructor helper,
426 extracted code for an element that is not a bitfield.
427 (output_constructor_bitfield): New output_constructor helper,
428 extracted code for a bitfield element. Accept an OUTER state
429 argument for recursive processing. Recurse on record or array
430 CONSTRUCTOR values, possibly past noop conversions.
62295314 431 (initializer_constant_valid_for_bitfield_p): New predicate. Whether
324c9b02
OH
432 VALUE is a valid constant-valued expression for use in a static
433 bit-field initializer.
62295314
OH
434 (output_constructor): Rework to use helpers. Accept and honor an
435 OUTER state argument for recursive calls. Return total size. Be
324c9b02
OH
436 prepared for nested constructors initializing bitfields.
437 (output_constant): Feed OUTER in calls to output_constructor.
438
0980d7fe
MK
4392009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
440
441 * calls.c (emit_library_call_value_1): Don't force_operand for move
442 and push insns.
443
29661412
NC
4442009-06-01 Nick Clifton <nickc@redhat.com>
445
446 * doc/invoke.texi (IA-64 Options): Fix typo.
447
e9dbe7bb
IR
4482009-06-01 Ira Rosen <irar@il.ibm.com>
449
450 PR tree-optimization/39129
451 * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
452 printed message.
453 (vect_do_peeling_for_loop_bound): Use
454 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
455 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
456 (vect_loop_versioning): Likewise.
457 (vect_create_cond_for_alias_checks): Fix indentation.
458 * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
459 macros.
460 (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
461 (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
462 * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
463 "control flow in loop".
464 (vect_estimate_min_profitable_iters): Use
465 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
466 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
467 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
468 (vect_create_data_ref_ptr): Don't mention array dimension in printing.
469 * tree-vect-stmts.c (vectorizable_store): Replace the check that the
470 statement belongs to a group of strided accesses with the exact code
471 check.
472 (vectorizable_load): Likewise.
473 * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
474 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
475
5ac69a80
GP
4762009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
477
478 * config/freebsd-stdint.h: New file.
479 * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
480 Add freebsd-stdint.h to tm_file.
481
54b2b460
RE
4822009-06-01 Richard Earnshaw <rearnsha@arm.com>
483
484 * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
485 (thumb2_extendhidi2): Likewise.
486
a7ca77cf
ILT
4872009-05-31 Ian Lance Taylor <iant@google.com>
488
f3afc8a7 489 * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
c50d84e3
ILT
490
4912009-05-31 Ian Lance Taylor <iant@google.com>
492
f3afc8a7 493 * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
a7ca77cf
ILT
494 (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
495 (ipa-reference.o): Depend upon gt-ipa-reference.h.
496
1aec401e
JM
4972009-05-31 Jason Merrill <jason@redhat.com>
498
499 * tree-pretty-print.c (print_call_name): Take the callee, not the
f3afc8a7 500 call itself. Make non-static. Use dump_function_name for functions.
1aec401e
JM
501 (dump_generic_node): Adjust.
502 * diagnostic.h: Declare print_call_name.
503 * gimple-pretty-print.c (dump_gimple_call): Use it.
504
ed7910bb
KK
5052009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
506
507 * config/sh/sh.md (ashldi3_std): New define_expand.
508 (ashldi3): Use it.
509
47ea8d4e
KK
5102009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
511
512 PR target/40313
513 * config/sh/sh.c: Include debug.h.
514 (sh_expand_epilogue): Emit a blockage insn before the frame
515 pointer adjustment also when dwarf2out_do_frame returns true.
516
405e8b49
RE
5172009-05-31 Richard Earnshaw <rearnsha@arm.com>
518
519 * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
520 (thumb2_extendqidi2): New pattern.
521
71ece343
IR
5222009-05-31 Ira Rosen <irar@il.ibm.com>
523
524 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
525 mark phis for renaming.
526 * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
527 (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
528 Call mark_sym_for_renaming.
529 * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
f3afc8a7
UB
530 * tree-vect-loop.c (vect_transform_loop): Remove
531 vect_memsyms_to_rename initialization and a call to
532 mark_set_for_renaming.
71ece343 533
b3041944
JJ
5342009-05-31 Jakub Jelinek <jakub@redhat.com>
535
536 PR middle-end/40304
537 * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
538 frame related even if !set_cfa && style < 0.
539
a1bda0d7
KT
5402009-05-30 Kai Tietz <kai.tietz@onevision.com>
541
542 * config/i386/mingw-tls.c: New file.
f3afc8a7
UB
543 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
544 * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
545 defining _WIN32 but not __CYGWIN__.
a1bda0d7 546
acd26225
KG
5472009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
548
549 * configure.ac: Add MPC support.
550
551 * config.in, configure: Regenerate.
552
cd9c1ca8
RH
5532009-05-29 Richard Henderson <rth@redhat.com>
554
555 * cfgcleanup.c (try_crossjump_to_edge): Only skip past
556 NOTE_INSN_BASIC_BLOCK.
557 * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
558 Duplicate NOTE_INSN_EPILOGUE_BEG notes.
559 * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
560 to be deleted.
561 * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
562 add in_use field.
563 (add_cfi): Disable check redefining cfa away from drap.
564 (lookup_cfa_1): Add remember argument; handle remember/restore.
565 (lookup_cfa): Pass remember argument.
566 (cfa_remember): New.
567 (compute_barrier_args_size_1): Remove sibcall check.
568 (dwarf2out_frame_debug_def_cfa): New.
569 (dwarf2out_frame_debug_adjust_cfa): New.
570 (dwarf2out_frame_debug_cfa_offset): New.
571 (dwarf2out_frame_debug_cfa_register): New.
572 (dwarf2out_frame_debug_cfa_restore): New.
573 (dwarf2out_frame_debug): Handle REG_CFA_* notes.
574 (dwarf2out_begin_epilogue): New.
575 (dwarf2out_frame_debug_restore_state): New.
576 (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
577 DW_CFA_restore_state.
578 (output_cfi_directive): Likewise.
579 (convert_cfa_to_fb_loc_list): Likewise.
580 (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
581 * dwarf2out.h: Update.
582 * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
583 (copy_insn_1): Early out for null.
584 * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
585 and dwarf2out_frame_debug_restore_state.
586 * function.c (prologue, epilogue, sibcall_epilogue): Remove.
587 (prologue_insn_hash, epilogue_insn_hash): New.
588 (free_after_compilation): Adjust freeing accordingly.
589 (record_insns): Create hash table if needed; push insns into
590 hash instead of array.
591 (maybe_copy_epilogue_insn): New.
592 (contains): Search hash table instead of array.
593 (sibcall_epilogue_contains): Remove.
594 (thread_prologue_and_epilogue_insns): Split eh_return insns
595 and mark them as epilogues.
596 (reposition_prologue_and_epilogue_notes): Rewrite epilogue
597 scanning in terms of basic blocks.
598 * insn-notes.def (CFA_RESTORE_STATE): New.
599 * jump.c (returnjump_p_1): Accept EH_RETURN.
600 (eh_returnjump_p_1, eh_returnjump_p): New.
601 * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
602 CFA_REGISTER, CFA_RESTORE): New.
603 * rtl.def (EH_RETURN): New.
604 * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
605
606 * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
607 (eh_return_internal): Use eh_return rtx; split w/ epilogue.
608
609 * config/i386/i386.c (gen_push): Update cfa state.
610 (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
611 add a CFA_ADJUST_CFA note.
612 (ix86_dwarf_handle_frame_unspec): Remove.
613 (ix86_expand_prologue): Update cfa state.
614 (ix86_emit_restore_reg_using_pop): New.
615 (ix86_emit_restore_regs_using_pop): New.
616 (ix86_emit_leave): New.
617 (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
618 (ix86_expand_epilogue): Add notes for unwinding the epilogue.
619 * config/i386/i386.h (struct machine_cfa_state): New.
620 (ix86_cfa_state): New.
621 * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
622 (eh_return_internal): Merge from eh_return_<mode>,
623 use eh_return rtx, split w/ epilogue.
624
72b5577d
ILT
6252009-05-29 Ian Lance Taylor <iant@google.com>
626
627 * builtins.c (validate_gimple_arglist): Don't use va_arg with
628 enum type.
629 * calls.c (emit_library_call_value_1): Likewise.
630
631 * c-typeck.c (c_build_va_arg): New function.
632 * c-tree.h (c_build_va_arg): Declare.
633 * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
634 instead of build_va_arg.
635
7a2faca1
EB
6362009-05-29 Eric Botcazou <ebotcazou@adacore.com>
637
638 * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
639 (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
640 (ptr_difference_cost): Use affine combinations to compute it.
641 (difference_cost): Likewise.
642 (get_computation_cost_at): Compute more accurate cost for addresses
643 if the ratio is a multiplier allowed in addresses.
644 For non-addresses, consider that an additional offset or symbol is
645 added only once.
646
725fd454
JJ
6472009-05-29 Jakub Jelinek <jakub@redhat.com>
648
a0987204
JJ
649 * config/i386/i386.c (ix86_decompose_address): Avoid useless
650 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
651
725fd454
JJ
652 * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
653 TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
654 (prefix_rex): For UNIT_MMX don't imply the prefix by default
655 if MODE_DI.
656 (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
657 to 1 for TYPE_SSE{IADD1,CVT1}.
658 (prefix_vex_imm8): Removed.
659 (length_vex): Only pass 1 as second argument to
660 ix86_attr_length_vex_default if prefix_extra is 0.
661 (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
662 (length): For prefix vex computation use length_immediate
663 attribute instead of prefix_vex_imm8.
664 (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
665 addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
666 *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
667 *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
668 (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
669 *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
670 a space in between the operands.
671 (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
672 if one operand is 0xff and the other one si, di, bp or sp.
673 (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
674 other one si, di, bp or sp.
675 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
676 (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
677 type and mode attributes.
678 (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
679 (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
680 prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
681 (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
682 prefix_data16 attribute iff MODE_DF.
683 (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
684 (fix_trunc<mode>di_sse): Set prefix_rex attribute.
685 (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
686 constm128_operand in length_immediate computation.
687 (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
688 (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
689 (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
690 length_immediate attribute to 1.
691 (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
692 (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
693 for certain alternatives.
694 (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
695 prefix_data16 attribute if MODE_V1DF.
696 (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
697 length_immediate to 1.
698 (set_got_rex64, set_rip_rex64): Remove length attribute, set
699 length_address to 4, set mode attribute to MODE_DI.
700 (set_got_offset_rex64): Likewise. Set length_immediate to 0.
701 (fxam<mode>2_i387): Set length attribute to 4.
702 (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
703 *prefetch_3dnow_rex): Override length_address attribute.
704 (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
705 attributes.
706 * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
707 (constm128_operand): Removed.
708 * config/i386/i386.c (memory_address_length): For
709 disp && !index && !base in 64-bit mode account for SIB byte if
710 print_operand_address can't optimize disp32 into disp32(%rip)
711 and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
712 for fs: or gs: segment.
713 (ix86_attr_length_immediate_default): When checking if shortform
714 is possible, truncate immediate to the length of the non-shortened
715 immediate.
716 (ix86_attr_length_address_default): Ignore MEM_P operands
717 with X constraint.
718 (ix86_attr_length_vex_default): Only check for DImode on
719 GENERAL_REG_P operands.
720 * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
721 prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
722 (sse_cvttps2pi): Clear prefix_rep attribute.
723 (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
724 attribute.
725 (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
726 (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
727 *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
728 iff operand 2 is const_int_operand.
729 (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
730 sse2_shufpd_<mode>): Set length_immediate attribute to 1.
731 (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
732 instead of vex.
733 (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
734 prefix_data16.
735 (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
736 prefix_data16 attribute for movlpd and movhpd instructions.
737 (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
738 length_immediate for shufpd instruction.
739 (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
740 (avx_cmpp<avxmodesuffixf2c><mode>3,
741 avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
742 <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
743 avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
f3afc8a7 744 *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
725fd454
JJ
745 (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
746 (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
747 (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
748 prefix_data16 attribute for the first alternative to 1.
749 (*avx_loadlps): Override length_immediate for the first alternative.
750 (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
751 attributes for second alternative.
752 (*vec_concatv2sf_sse4_1): Override length_immediate and
753 prefix_data16 attributes for second alternative.
754 (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
755 vec_extract_hi_<mode>, vec_extract_lo_v16hi,
756 vec_extract_hi_v16hi, vec_extract_lo_v32qi,
757 vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
758 (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
759 prefix_data16 and length_immediate to 1.
760 (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
761 to 1.
762 (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
f3afc8a7 763 prefix_extra attribute for variants that don't have 0f prefix alone.
725fd454
JJ
764 (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
765 (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
766 *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
767 *sse4_1_pextrd): Set length_immediate to 1.
768 (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
769 (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
770 to 1.
771 (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
772 *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
773 length_immediate to 1 for second alternative.
774 (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
775 prefix_extra and length_immediate attributes for the first
776 alternative.
777 (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
778 first alternative.
779 (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
780 to 1 for the first and third alternative.
781 (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
782 alternative.
783 (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
784 attribute.
785 (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
786 attribute to 0.
787 (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
788 *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
789 *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
790 *avx_psign<mode>3): Set prefix_extra attribute to 1.
791 (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
792 ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
793 ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
794 ssse3_psign<mode>3): Override prefix_rex attribute.
f3afc8a7 795 (*avx_palignrti): Override prefix_extra and length_immediate to 1.
725fd454
JJ
796 (ssse3_palignrti): Override length_immediate to 1.
797 (ssse3_palignrdi): Override length_immediate to 1, override
798 prefix_rex attribute.
f3afc8a7 799 (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
725fd454
JJ
800 (sse4a_extrqi): Override length_immediate to 2.
801 (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
802 (sse4a_insertq): Override prefix_data16 to 0.
803 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
804 avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
805 avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
806 *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
807 avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
808 and length_immediate to 1.
809 (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
810 sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
811 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
812 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
813 and length_immediate to 1.
814 (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
815 (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
816 (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
817 avx_ptest256): Override prefix_extra to 1.
818 (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
819 Override prefix_data16 and length_immediate to 1.
820 (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
821 sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
822 sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
823 sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
824 prefix_data16 to 0 and prefix_extra to 2.
825 (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
826 (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
827 attribute.
828 (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
829 sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
830 Override prefix_data16 and prefix_rep to 0, length_immediate to 1
831 and prefix_extra to 2.
832 (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
833 prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
834 (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
835 avx_vpermilvar<mode>3,
836 avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
837 avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
838 avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
839 avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
840 Override prefix_extra to 1.
841 (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
842 (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
843 vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
844 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
845 prefix_extra and length_immediate to 1.
846 (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
847 modrm to 0.
848 (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
849 to 1 for the first alternative.
850 * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
851 prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
852 cases.
853 (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
854 *movv2sf_internal_avx, *movv2sf_internal): Override
855 prefix_rep attribute for certain alternatives.
856 (*mov<mode>_internal): Override prefix_rep or prefix_data16
857 attributes for certain alternatives.
858 (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
859 attributes for certain alternatives.
860 (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
861 *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
862 mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
863 mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
864 *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
865 mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
866 mmx_pswapdv2si2): Set prefix_extra attribute to 1.
867 (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
868 length_immediate to 1 if operand 2 is const_int_operand.
869 (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
f3afc8a7 870 *vec_extractv2si_1): Set length_immediate attribute to 1.
725fd454
JJ
871 (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
872 using old 3DNOW insn rather than SSE/3DNOW_A.
873 (mmx_emms, mmx_femms): Clear modrm attribute.
874
0674b9d0
MJ
8752009-05-29 Martin Jambor <mjambor@suse.cz>
876
877 * tree-sra.c: New implementation of SRA.
878
879 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
880 (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
881 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
882 * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
883 (SRA_MAX_STRUCTURE_COUNT): Removed.
884 (SRA_FIELD_STRUCTURE_RATIO): Removed.
885 * doc/invoke.texi (sra-max-structure-size): Removed.
886 (sra-field-structure-ratio): Removed.
887
616f21df
JJ
8882009-05-29 Jakub Jelinek <jakub@redhat.com>
889
890 PR middle-end/40291
891 * builtins.c (expand_builtin_memcmp): Convert len to sizetype
892 before expansion.
893
da7ba240
AB
8942009-05-29 Andrey Belevantsev <abel@ispras.ru>
895
896 PR rtl-optimization/40101
897 * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
898 seqno. Adjust comment.
899 * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
900 inserting bookkeeping before a jump, the jump is not scheduled.
901 When no positive seqno found, provide a value. Add comment.
902
71dcd609
RG
9032009-05-29 Richard Guenther <rguenther@suse.de>
904
905 * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
906 short-cutting on the first component.
907
a900ae6b
JJ
9082009-05-29 Jakub Jelinek <jakub@redhat.com>
909
910 PR middle-end/39958
911 * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
912 for trees other than decls/types.
913
821bb7f8
RG
9142009-05-29 Richard Guenther <rguenther@suse.de>
915
916 * tree-ssa-operands.c (get_expr_operands): Do not handle
917 INDIRECT_REFs in the handled-component case. Remove
918 unused get_ref_base_and_extent case.
919 * tree-dfa.c (get_ref_base_and_extent): Avoid calling
920 tree_low_cst and host_integerp where possible.
921 * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
922 codes for equivalence.
923 * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
924
e997fb9c
DB
9252009-05-29 David Billinghurst <billingd@gcc.gnu.org>
926
927 * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
928 to tmake_file for i[34567]86-*-cygwin*.
929
58195b74
JJ
9302009-05-29 Jakub Jelinek <jakub@redhat.com>
931
932 PR target/40017
933 * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
934 (altivec_categorize_keyword, init_vector_keywords,
935 rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
936 similar to bool.
937
055df276
KT
9382009-05-29 Kai Tietz <kai.tietz@onevision.com>
939
940 * tree.c (handle_dll_attribute): Check if node is
941 of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
942
f5939ef3
RE
9432009-05-29 Richard Earnshaw <rearnsha@arm.com>
944
945 * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
946 component.
947 (thumb2_zero_extendqidi2): Likewise.
948
c185de40
KK
9492009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
950
951 * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
952 instead of gen_movrt.
953 * config/sh/sh.md (movrt): Remove.
954
bf3c6caf
SE
9552009-05-28 Steve Ellcey <sje@cup.hp.com>
956
f3afc8a7 957 * doc/invoke.texi (IA-64 Options):
bf3c6caf
SE
958 Add -msdata, -mfused-madd, -mno-inline-float-divide,
959 -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
960 -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
961 -msched-prefer-non-control-spec-insns,
962 -msched-stop-bits-after-every-cycle,
963 -msched-count-spec-in-critical-path,
964 -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
f3afc8a7 965 -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
bf3c6caf
SE
966 Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
967 and -msched-spec-verbose.
968
8a66e987
JM
9692009-05-28 Joseph Myers <joseph@codesourcery.com>
970
f3afc8a7 971 * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
8a66e987
JM
972 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
973 error if used.
974 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
975
b45d2719
RG
9762009-05-28 Richard Guenther <rguenther@suse.de>
977
978 * tree-ssa-alias.c (ao_ref_init): New function.
979 (ao_ref_base): Likewise.
980 (ao_ref_base_alias_set): Likewise.
981 (ao_ref_alias_set): Likewise.
982 (refs_may_alias_p_1): Change signature.
983 (refs_may_alias_p): Adjust.
984 (refs_anti_dependent_p): Likewise.
985 (refs_output_dependent_p): Likewise.
986 (call_may_clobber_ref_p_1): Change signature.
987 (call_may_clobber_ref_p): Adjust.
988 (stmt_may_clobber_ref_p_1): New function split out from ...
989 (stmt_may_clobber_ref_p): ... here.
990 (maybe_skip_until): Adjust signature.
991 (get_continuation_for_phi): Likewise.
992 (walk_non_aliased_vuses): Likewise.
993 * tree-ssa-alias.h (struct ao_ref_s): New structure type.
994 (ao_ref_init): Declare.
995 (ao_ref_base): Likewise.
996 (ao_ref_alias_set): Likewise.
997 (stmt_may_clobber_ref_p_1): Likewise.
998 (walk_non_aliased_vuses): Adjust.
999 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
1000 (get_ref_from_reference_ops): remove.
1001 (vn_reference_lookup_2): Adjust signature.
1002 (vn_reference_lookup_3): Do not re-build trees. Handle unions.
f3afc8a7 1003 (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
b45d2719
RG
1004 (vn_reference_lookup): Adjust.
1005 (vn_reference_insert): Likewise.
1006 (vn_reference_insert_pieces): Adjust signature.
1007 (visit_reference_op_call): Adjust.
1008 * tree-ssa-pre.c (get_expr_type): Simplify.
1009 (phi_translate_1): Adjust.
1010 (compute_avail): Likewise.
1011 (translate_vuse_through_block): Do not re-build trees.
1012 (value_dies_in_block_x): Likewise.
1013 * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
1014 fields.
1015 (vn_reference_lookup_pieces): Adjust declaration.
1016 (vn_reference_insert_pieces): Likewise.
1017
554223b6
BK
10182009-05-28 Benjamin Kosnik <bkoz@redhat.com>
1019
1020 * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
1021 with checking disabled.
1022
233215fe
DK
10232009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
1024
1025 PR target/37216
1026
1027 * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
1028 macro definition for support of three-operand format aligned
1029 .comm directive in assembler on cygwin/pe/mingw target OS.
1030 * configure: Regenerate.
1031 * config.h: Regenerate.
1032
1033 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
1034 aligned form of .comm directive if -mpe-aligned-commons is in effect.
1035 * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
1036
1037 * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
1038 * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
1039
24adb18f
IR
10402009-05-28 Ira Rosen <irar@il.ibm.com>
1041
1042 PR tree-optimization/40254
1043 * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
1044 in analysis of basic blocks.
1045
2c5bfdf7
AN
10462009-05-28 Adam Nemet <anemet@caviumnetworks.com>
1047
1048 PR middle-end/33699
f3afc8a7 1049 * target.h (struct gcc_target): Fix indentation. Add const_anchor.
2c5bfdf7
AN
1050 * target-def.h (TARGET_CONST_ANCHOR): New macro.
1051 (TARGET_INITIALIZER): Use it.
1052 * cse.c (CHEAPER): Move it up to the other macros.
1053 (insert): Rename this ...
1054 (insert_with_costs): ... to this. Add cost parameters. Update
1055 function comment.
1056 (insert): New function. Call insert_with_costs.
1057 (compute_const_anchors, insert_const_anchor, insert_const_anchors,
1058 find_reg_offset_for_const, try_const_anchors): New functions.
1059 (cse_insn): Call try_const_anchors. Adjust cost of src_related
1060 when using a const-anchor. Call insert_const_anchors.
f3afc8a7 1061 * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
2c5bfdf7
AN
1062 * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
1063
9e6aced0
AO
10642009-05-28 Alexandre Oliva <aoliva@redhat.com>
1065
1066 * tree-inline.c (remap_decls): Enable nonlocalized variables
1067 when not optimizing.
1068
89fbbe4e
AO
10692009-05-28 Alexandre Oliva <aoliva@redhat.com>
1070
1071 * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
1072 Simplify other tests involving optimize.
1073
e455776a
TT
10742009-05-27 Tom Tromey <tromey@redhat.com>
1075
1076 * unwind-dw2.c (_Unwind_DebugHook): New function.
1077 (uw_install_context): Call _Unwind_DebugHook.
1078
cea32bca
TT
10792009-05-27 Tom Tromey <tromey@redhat.com>
1080
1081 * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
1082
c607156f
ILT
10832009-05-27 Ian Lance Taylor <iant@google.com>
1084
1085 * Makefile.in (LINKER, LINKER_FLAGS): Define.
1086 (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
1087 (ALL_LINKERFLAGS): Define.
1088 (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
1089 (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
1090 (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
1091 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
1092 (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
1093 $(LINKER_FOR_BUILD).
1094 (build/gcov-iov$(build_exeext)): Likewise.
1095
ec0a1343
JB
10962009-05-27 Julian Brown <julian@codesourcery.com>
1097
1098 * gcse.c (target.h): Include.
1099 (can_assign_to_reg_without_clobbers_p): Check that the target allows
1100 copy of argument to a pseudo register.
1101
ac80ba07
DN
11022009-05-27 Diego Novillo <dnovillo@google.com>
1103
1104 * tree-ssa-live.c (dump_scope_block): Document arguments.
1105 (dump_scope_blocks): Document.
1106 (debug_scope_blocks): New.
1107 * tree-flow.h (debug_scope_blocks): Declare.
1108
d1803a17
DC
11092009-05-21 Denis Chertykov <denisc@overta.ru>
1110
f3afc8a7 1111 * doc/contrib.texi (Contributors): Add myself to the list.
d1803a17 1112
51fb7760 11132009-05-27 Olivier Hainque <hainque@adacore.com>
ceadb728
OH
1114
1115 * expr.c (target_align): New function. Alignment the TARGET of an
1116 assignment may be assume to have.
1117 (highest_pow2_factor_for_target): Use it instead of relying on
1118 immediate tree attributes of TARGET, not necessarily honored when
1119 intermediate bitfields are involved.
1120
634fa334
L
11212009-05-27 H.J. Lu <hongjiu.lu@intel.com>
1122
1123 PR target/40266
1124 * config/i386/driver-i386.c (host_detect_local_cpu): Support
1125 AVX, SSE4, AES, PCLMUL and POPCNT.
1126
65332587
DN
11272009-05-27 Diego Novillo <dnovillo@google.com>
1128
1129 * tree-pretty-print.c (dump_location): New.
1130 (dump_generic_node): Call it.
1131 Factor code to handle BLOCK nodes ...
1132 (dump_block_node): ... here.
1133
3e17e31d
RAE
11342009-05-27 Rafael Avila de Espindola <espindola@google.com>
1135
f3afc8a7
UB
1136 * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
1137 with it.
3e17e31d
RAE
1138 * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
1139 included.
1140 * gcc-plugin.h: Include config.h and system.h.
1141 (IN_GCC): Define if not defined.
1142
5e370570
HPN
11432009-05-27 Hans-Peter Nilsson <hp@axis.com>
1144
1145 PR middle-end/40249
1146 * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
1147 with -fno-inline.
1148
d000f0d9
SZ
11492009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
1150
1151 * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
1152 applicable.
1153 * config/m32r/m32r.h: Ditto.
1154 * config/m32r/m32r.md: Ditto.
1155 * config/m32r/predicates.md: Ditto.
1156
82f331ff
AO
11572009-05-27 Alexandre Oliva <aoliva@redhat.com>
1158
1159 * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
1160
ae2392a9
BS
11612009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
1162
1163 * doc/plugins.texi
1164 (Loading plugins): typo.
1165 (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
1166 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
1167 (Interacting with the GCC Garbage Collector): Added new section.
1168 (Giving information about a plugin): Added new section for
1169 PLUGIN_INFO.
ae2392a9
BS
1170 * ggc.h (ggc_register_root_tab): Added declaration.
1171 * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
1172 (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
1173 (register_callback): Improved comment in declaration.
f3afc8a7
UB
1174 * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
1175 (extra_root_vec) Added static variable for dynamic roots registration.
ae2392a9
BS
1176 (ggc_register_root_tab) Added new routine.
1177 (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
1178 PLUGIN_GGC_MARKING event.
1179 * ggc-zone.c: Include plugin.h.
1180 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
1181 * ggc-page.c: Include plugin.h.
1182 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
1183 * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
1184 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
1185 (register_callback): check lack of callbacks for
1186 pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
1187 PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
1188 (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
1189 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
1190 * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
1191 dependency on plugin.h.
1192 (plugin.o): Added dependency on ggc.h...
1193
f0cfd3a8
RG
11942009-05-26 Richard Guenther <rguenther@suse.de>
1195
1196 PR middle-end/40248
1197 Revert
1198 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
1199 with mismatched comparison modes.
1200
1201 * expr.c (expand_expr_real_1): Expand the operand of a
1202 VIEW_CONVERT_EXPR in its natural mode.
1203
7980bfb8
ILT
12042009-05-26 Ian Lance Taylor <iant@google.com>
1205
1206 * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
1207 (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
1208 (ALL_COMPILERFLAGS): Define.
1209 (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
1210 (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
1211 (collect2$(exeext), collect2.o): Likewise.
1212 (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
1213 (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
1214 ($(out_object_file), mips-tfile, mips-tdump): Likewise.
1215 (libbackend.o, intl.o, cppdefault.o): Likewise.
1216 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
1217 (build/%.o): Use $(COMPILER_FOR_BUILD).
1218 (build/gen%$(build_exeext)): Likewise.
1219 (build/gcov-iov$(build_exeext)): LIkewise.
1220 * config/t-darwin (darwin.o): Use $(COMPILER).
1221 (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
1222 * config/t-sol2 (sol2-c.o): Likewise.
1223 (sol2.o): Likewise.
1224 * config/t-vxworks (vxworks.o): Likewise.
1225 * config/x-darwin (host-darwin.o): Likewise.
1226 * config/x-hpux (host-hpux.o): Likewise.
1227 * config/x-linux (host-linux.o): Likewise.
1228 * config/x-solaris (host-solaris.o): Likewise.
1229 * config/alpha/x-alpha (driver-alpha.o): Likewise.
1230 * config/arm/t-arm (arm-c.o): Likewise.
1231 * config/arm/t-pe (pe.o): Likewise.
1232 * config/arm/t-wince-pe (pe.o): Likewise.
1233 * config/i386/t-cygming (winnt.o): Likewise.
1234 (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
1235 * config/i386/t-cygwin (cygwin1.o): Likewise.
1236 (cygwin2.o): Likewise.
1237 * config/i386/t-i386 (i386-c.o): Likewise.
1238 * config/i386/t-interix (winnt.o): Likewise.
1239 * config/i386/t-netware (netware.o): Likewise.
1240 * config/i386/t-nwld (nwld.o): Likewise.
1241 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
1242 * config/i386/x-i386 (driver-i386.o): Likewise.
1243 * config/i386/x-cygwin (host-cygwin.o): Likewise.
1244 * config/i386/x-mingw32 (host-mingw32.o): Likewise.
1245 * config/ia64/t-ia64 (ia64-c.o): Likewise.
1246 * config/m32c/t-m32c (m32c-pragma.o): Likewise.
1247 * config/mips/x-native (driver-native.o): Likewise.
1248 * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
1249 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
1250 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
1251 * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
1252 * config/score/t-score-elf (score7.o): Likewise.
1253 (score3.o): Likewise.
1254 * config/sh/t-sh (sh-c.o): Likewise.
1255 * config/sh/t-symbian (sh-c.o): Likewise.
1256 (symbian.o): Likewise.
1257 * config/spu/t-spu-elf (spu-c.o): Likewise.
1258 * config/v850/t-v850 (v850-c.o): Likewise.
1259 * config/v850/t-v850e (v850-c.o): Likewise.
1260
23977d3c
RG
12612009-05-26 Richard Guenther <rguenther@suse.de>
1262
1263 PR tree-optimization/40122
1264 * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
1265 VECTOR_CSTs if possible.
1266 (fold_gimple_assign): Likewise.
1267
3d62b895
RG
12682009-05-26 Richard Guenther <rguenther@suse.de>
1269
1270 PR middle-end/40252
1271 * fold-const.c (fold_binary): Use the correct types for building
1272 rotates.
1273
12346147
RG
12742009-05-26 Richard Guenther <rguenther@suse.de>
1275
1276 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
1277 redundant calls to merge_alias_info.
1278 (bump_vector_ptr): Likewise.
1279 * tree-ssa-copy.c (merge_alias_info): Remove.
1280 (replace_exp_1): Remove call to merge_alias_info.
1281 (propagate_tree_value): Likewise.
1282 (fini_copy_prop): Propagate points-to info.
1283 * tree-flow.h (merge_alias_info): Remove.
1284
807d5e6f
HS
12852009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
1286
1287 * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
1288
85057983
JH
12892009-05-25 Jan Hubicka <jh@suse.cz>
1290
1291 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
1292 * cgraph.h (struct inline_summary): New filed self_wize,
1293 size_inlining_benefit, self_time and time_inlining_benefit.
1294 (struct cgraph_global_info): Replace insns by time ans size fields.
1295 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
1296 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
1297 (ipcp_update_callgraph): Do not touch function bodies.
1298 * ipa-inline.c: Include except.h
1299 (MAX_TIME): New constant.
1300 (overall_insns): Remove.
1301 (leaf_node_p): New.
1302 (overall_size, max_benefit): New static variables.
1303 (cgraph_estimate_time_after_inlining): New function.
1304 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
1305 (cgraph_clone_inlined_nodes): Update size.
1306 (cgraph_mark_inline_edge): Update size.
1307 (cgraph_estimate_growth): Use size info.
1308 (cgraph_check_inline_limits): Check size.
1309 (cgraph_default_inline_p): Likewise.
1310 (cgraph_edge_badness): Compute badness based on benefit and size cost.
1311 (cgraph_decide_recursive_inlining): Check size.
f3afc8a7
UB
1312 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
1313 and times.
85057983
JH
1314 (cgraph_decide_inlining): Likewise.
1315 (cgraph_decide_inlining_incrementally): Likewise; honor
1316 PARAM_EARLY_INLINING_INSNS.
1317 (likely_eliminated_by_inlining_p): New predicate.
1318 (estimate_function_body_sizes): New function.
1319 (compute_inline_parameters): Use it.
1320 * except.c (must_not_throw_labels): New function.
1321 * except.h (must_not_throw_labels): Declare.
1322 * tree-inline.c (init_inline_once): Kill inlining_weigths
1323 * tree-ssa-structalias.c: Avoid uninitialized warning.
1324 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
1325 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
1326 (PARAM_INLINE_CALL_COST): Remove.
1327 (PARAM_EARLY_INLINING_INSNS): New.
1328
01df5c8a
RG
13292009-05-25 Richard Guenther <rguenther@suse.de>
1330
1331 PR tree-optimization/36327
1332 * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
f3afc8a7 1333 callback for reference translation or lookup at the point of may-defs.
01df5c8a
RG
1334 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
1335 * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
1336 for union COMPONENT_REFs.
1337 (vn_reference_lookup_3): New callback. Lookup from memset
1338 and CONSTRUCTOR assignment, translate through struct copies.
1339 (vn_reference_lookup_pieces): Make sure to not free the
1340 passed operands array. Adjust walk_non_aliased_vuses call.
1341 (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
1342 make sure we do not leak memory.
1343
6b8ed145
RG
13442009-05-25 Richard Guenther <rguenther@suse.de>
1345
1346 * tree-ssa-alias.h (dump_points_to_solution): Declare.
1347 * tree-inline.c (expand_call_inline): Reset the escaped and
1348 callused solutions.
1349 * tree-ssa-structalias.c (pass_build_ealias): New.
1350 * tree-pass.h (pass_build_ealias): Declare.
1351 * passes.c (init_optimization_passes): Add PTA during
1352 early optimizations.
1353 * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
1354 and CALLUSED solutions.
1355 (dump_points_to_solution): New function, split out from ...
1356 (dump_points_to_info_for): ... here.
1357 * tree-parloops.c (parallelize_loops): Reset the escaped and
1358 callused solutions.
1359
0adcf178
RO
13602009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1361
1362 PR bootstrap/40027
1363 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
1364 * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
1365
12aaf609
IR
13662009-05-25 Ira Rosen <irar@il.ibm.com>
1367
1368 PR tree-optimization/40238
1369 * tree-vect-stmts.c (vect_init_vector): Insert initialization
1370 statements after basic block's labels.
1371 * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
1372 to free the allocated memory.
1373
7f9a14e3
KK
13742009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
1375
1376 * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
1377 return address with a USE.
1378
b842d478
RG
13792009-05-24 Richard Guenther <rguenther@suse.de>
1380
1381 PR middle-end/40233
1382 * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
1383 array type from the main variant of the inner type.
1384
8db7b33f
JBG
13852009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1386
1387 * config/vax/vax-protos.h (legitimate_constant_address_p): Change
1388 definition to bool (from int) to un-break build.
1389 (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
1390
cff4e50d
PB
13912009-05-24 Paolo Bonzini <bonzini@gnu.org>
1392
1393 * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
1394 discard_stmt_changes): Delete.
1395 * tree-ssa-operands.c (scb_stack): Delete.
1396 (init_ssa_operands): Do not initialize it.
1397 (fini_ssa_operands): Do not free it.
1398 (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
1399
1400 * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
1401 update_stmt, remove the others. Fix comments.
1402 * tree-dfa.c (optimize_stack_restore): Likewise.
1403 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
1404 * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
1405 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
1406 * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
1407 Likewise.
1408 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
1409 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
f3afc8a7
UB
1410 (dom_opt_finalize_block): Likewise, adjusting access to
1411 stmts_to_rescan.
cff4e50d
PB
1412 (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
1413 (stmts_to_rescan): Change item type to gimple.
1414 (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
1415
a70d6342
IR
14162009-05-24 Ira Rosen <irar@il.ibm.com>
1417
1418 * doc/passes.texi (Tree-SSA passes): Document SLP pass.
1419 * tree-pass.h (pass_slp_vectorize): New pass.
1420 * params.h (SLP_MAX_INSNS_IN_BB): Define.
1421 * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
1422 * tree-vectorizer.c (timevar.h): Include.
1423 (user_vect_verbosity_level): Declare.
1424 (vect_location): Fix comment.
1425 (vect_set_verbosity_level): Update user_vect_verbosity_level
1426 instead of vect_verbosity_level.
1427 (vect_set_dump_settings): Add an argument. Ignore user defined
1428 verbosity if dump flags require higher level of verbosity. Print to
1429 stderr only for loop vectorization.
1430 (vectorize_loops): Update call to vect_set_dump_settings.
1431 (execute_vect_slp): New function.
1432 (gate_vect_slp): Likewise.
1433 (struct gimple_opt_pass pass_slp_vectorize): New.
1434 * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
1435 access its members.
1436 (vec_info_for_bb): New function.
1437 (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
1438 (VECTORIZATION_ENABLED): New macro.
1439 (SLP_ENABLED, SLP_DISABLED): Likewise.
1440 (vect_is_simple_use): Add bb_vec_info argument.
1441 (new_stmt_vec_info, vect_analyze_data_ref_dependences,
1442 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
1443 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
1444 vect_schedule_slp, vect_analyze_slp): Likewise.
1445 (vect_analyze_stmt): Add slp_tree argument.
1446 (find_bb_location): Declare.
1447 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
1448 * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
1449 (vect_analyze_loop_operations, vect_analyze_loop,
1450 get_initial_def_for_induction, vect_create_epilog_for_reduction,
1451 vect_finalize_reduction, vectorizable_reduction,
1452 vectorizable_live_operation, vect_transform_loop): Likewise.
1453 * tree-data-ref.c (dr_analyze_innermost): Update comment,
1454 skip evolution analysis if analyzing a basic block.
1455 (dr_analyze_indices): Likewise.
1456 (initialize_data_dependence_relation): Skip the test whether the
1457 object is invariant for basic blocks.
1458 (compute_all_dependences): Skip dependence analysis for data
1459 references in basic blocks.
1460 (find_data_references_in_stmt): Don't fail in case of invariant
1461 access in basic block.
1462 (find_data_references_in_bb): New function.
1463 (find_data_references_in_loop): Move code to
782dc37a 1464 find_data_references_in_bb and add a call to it.
a70d6342
IR
1465 (compute_data_dependences_for_bb): New function.
1466 * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
1467 * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
1468 that STEP is 0.
1469 (vect_analyze_data_ref_dependence): Check for interleaving in case of
1470 unknown dependence in basic block and fail in case of dependence in
1471 basic block.
1472 (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
1473 dependence instances from either loop or basic block vectorization
1474 info.
1475 (vect_compute_data_ref_alignment): Check if it is loop vectorization
1476 before calling nested_in_vect_loop_p.
1477 (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
1478 dependence instances from either loop or basic block vectorization
1479 info.
1480 (vect_verify_datarefs_alignment): Likewise.
1481 (vect_enhance_data_refs_alignment): Adjust function calls.
1482 (vect_analyze_data_refs_alignment): Likewise.
1483 (vect_analyze_group_access): Fix printing. Skip different checks if
1484 DR_STEP is 0. Keep strided stores either in loop or basic block
1485 vectorization data structure. Fix indentation.
1486 (vect_analyze_data_ref_access): Fix comments, allow zero step in
1487 basic blocks.
1488 (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
1489 dependence instances from either loop or basic block vectorization
1490 info.
1491 (vect_analyze_data_refs): Update comment. Call
1492 compute_data_dependences_for_bb to analyze basic blocks.
1493 (vect_create_addr_base_for_vector_ref): Check for outer loop only in
1494 case of loop vectorization. In case of basic block vectorization use
782dc37a 1495 data-ref itself as a base.
a70d6342
IR
1496 (vect_create_data_ref_ptr): In case of basic block vectorization:
1497 don't advance the pointer, add new statements before the current
1498 statement. Adjust function calls.
1499 (vect_supportable_dr_alignment): Support only aligned accesses in
1500 basic block vectorization.
1501 * common.opt (ftree-slp-vectorize): New flag.
1502 * tree-vect-patterns.c (widened_name_p): Adjust function calls.
1503 (vect_pattern_recog_1): Likewise.
1504 * tree-vect-stmts.c (process_use): Likewise.
1505 (vect_init_vector): Add new statements in the beginning of the basic
1506 block in case of basic block SLP.
1507 (vect_get_vec_def_for_operand): Adjust function calls.
1508 (vect_finish_stmt_generation): Likewise.
1509 (vectorizable_call): Add assert that it is loop vectorization, adjust
1510 function calls.
1511 (vectorizable_conversion, vectorizable_assignment): Likewise.
1512 (vectorizable_operation): In case of basic block SLP, take
1513 vectorization factor from statement's type and skip the relevance
1514 check. Adjust function calls.
1515 (vectorizable_type_demotion): Add assert that it is loop
1516 vectorization, adjust function calls.
1517 (vectorizable_type_promotion): Likewise.
1518 (vectorizable_store): Check for outer loop only in case of loop
1519 vectorization. Adjust function calls. For basic blocks, skip the
1520 relevance check and don't advance pointers.
1521 (vectorizable_load): Likewise.
1522 (vectorizable_condition): Add assert that it is loop vectorization,
1523 adjust function calls.
1524 (vect_analyze_stmt): Add argument. In case of basic block SLP, check
1525 that it is not reduction, get vector type, call only supported
782dc37a 1526 functions, skip loop specific parts.
a70d6342
IR
1527 (vect_transform_stmt): Check for outer loop only in case of loop
1528 vectorization.
1529 (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
1530 (vect_is_simple_use): Fix comment, add new argument, fix conditions
1531 for external definition.
1532 * passes.c (pass_slp_vectorize): New pass.
1533 * tree-vect-slp.c (find_bb_location): New function.
1534 (vect_get_and_check_slp_defs): Add argument, adjust function calls,
1535 check for patterns only in loops.
1536 (vect_build_slp_tree): Add argument, adjust function calls, fail in
1537 case of multiple types in basic block SLP.
1538 (vect_mark_slp_stmts_relevant): New function.
1539 (vect_supported_load_permutation_p): Fix comment.
1540 (vect_analyze_slp_instance): Add argument. In case of basic block
1541 SLP, take vectorization factor from statement's type, check that
1542 unrolling factor is 1. Adjust function call. Save SLP instance in
1543 either loop or basic block vectorization structure. Return FALSE,
1544 if SLP failed.
1545 (vect_analyze_slp): Add argument. Get strided stores groups from
1546 either loop or basic block vectorization structure. Return FALSE
1547 if basic block SLP failed.
1548 (new_bb_vec_info): New function.
1549 (destroy_bb_vec_info, vect_slp_analyze_node_operations,
1550 vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
1551 (vect_schedule_slp): Add argument. Get SLP instances from either
1552 loop or basic block vectorization structure. Set vectorization factor
1553 to be 1 for basic block SLP.
1554 (vect_slp_transform_bb): New function.
1555 * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
1556
0676c393
MM
15572009-05-23 Mark Mitchell <mark@codesourcery.com>
1558
1559 * final.c (shorten_branches): Do not align labels for jump tables.
1560 (final_scan_insn): Use JUMP_TABLE_DATA_P.
1561
94324dae
EB
15622009-05-23 Eric Botcazou <ebotcazou@adacore.com>
1563
1564 * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
1565 Remove outdated reference to flow.c and fix nits.
1566 * doc/gccint.texi: Tweak RTL description.
1567 * doc/rtl.texi: Likewise.
1568
92bffc14
DC
15692009-05-23 Denis Chertykov <chertykov@gmail.com>
1570
1571 * config/avr/avr.c: Change my email address.
1572 * config/avr/avr.h: Likewise.
1573 * config/avr/avr.md: Likewise.
1574 * config/avr/avr-protos.h: Likewise.
1575 * config/avr/libgcc.S: Likewise.
1576
eec9405e
TS
15772009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
1578
1579 * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
1580 (spu_split_load, spu_split_store): Change return type to int.
1581 (spu_split_convert): Declare.
1582 * config/spu/predicates.md (spu_mem_operand): Remove.
1583 (spu_mov_operand): Update.
1584 (spu_dest_operand, shiftrt_operator, extend_operator): Define.
1585 * config/spu/spu.c (regno_aligned_for_load): Remove.
1586 (reg_aligned_for_addr, spu_expand_load): Define.
1587 (spu_expand_extv): Reimplement and handle MEM.
1588 (spu_expand_insv): Handle MEM.
1589 (spu_sched_reorder): Handle insn's with length 0.
1590 (spu_legitimate_address_p): Reimplement.
1591 (store_with_one_insn_p): Return TRUE for any mode with size
1592 larger than 16 bytes.
1593 (address_needs_split): Define.
1594 (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
1595 operands.
1596 (spu_convert_move): Define.
782dc37a 1597 (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
eec9405e
TS
1598 (spu_split_store): Change all MEM's to TImode.
1599 (spu_init_expanders): Preallocate registers that correspond to
1600 LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
1601 mark_reg_pointer.
1602 (spu_split_convert): Define.
1603 * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
1604 (_move<mode>, _movdi, _movti): Update predicate and condition.
1605 (load, store): Change to define_split.
1606 (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
1607 extend<mode>ti2.
1608 (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
1609 (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
1610 define_insn_and_split of lshr<mode>3.
1611 (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
1612 (<v>ashr<mode>3_imm): Define.
1613 (extv, extzv, insv): Allow MEM operands.
1614 (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
1615 shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
1616 sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
1617 (_spu_convert2): Change to define_insn_and_split and remove the
1618 corresponding define_peephole2.
1619 (stack_protect_set, stack_protect_test, stack_protect_test_si):
1620 Change predicates to memory_operand.
1621
7d31a807
MM
16222009-05-22 Mark Mitchell <mark@codesourcery.com>
1623
1624 * config/arm/thumb2.md: Add 16-bit multiply instructions.
7d31a807 1625
d021d274
MM
16262009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
1627
1628 PR tree-optimization/40219
1629 * tree.c (iterative_hash_expr): Make sure the builtin function is
1630 a normal builtin function and not a front end or back end builtin
1631 before indexing into the built_in_decls array.
1632
4d7a65ea
RG
16332009-05-22 Richard Guenther <rguenther@suse.de>
1634
1635 PR middle-end/38964
1636 * alias.c (write_dependence_p): Do not use TBAA for answering
1637 anti-dependence or output-dependence.
782dc37a 1638 * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
4d7a65ea
RG
1639 (emit_pointer_definition): Remove.
1640 (emit_alias_warning): Likewise.
1641 (find_what_var_points_to): Remove TBAA pruning code.
1642 (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
1643 violations.
1644 (compute_points_to_sets): Remove code computing the set of
1645 dereferenced pointers.
1646 * tree-data-ref.c (dr_may_alias_p): Properly use the split
1647 oracle for querying anti and output dependencies.
1648 * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
1649 if TBAA may be applied.
1650 (refs_anti_dependent_p): New function.
1651 (refs_output_dependent_p): Likewise.
1652 * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
1653 (refs_output_dependent_p): Likewise.
1654 * doc/tree-ssa.texi (Memory model): New section.
1655 * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
1656 * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
1657 * cfgexpand.c (expand_gimple_basic_block): Do not handle
1658 GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
1659 * expr.c (expand_expr_real_1): Likewise.
1660 * gimple-low.c (lower_stmt): Likewise.
1661 * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
1662 (dump_gimple_cdt): Remove.
1663 * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
1664 (gimple_size): Likewise.
1665 (walk_gimple_op): Likewise.
1666 (is_gimple_stmt): Likewise.
1667 (walk_stmt_load_store_addr_ops): Likewise.
1668 (gimple_build_cdt): Remove.
1669 * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
1670 * gimple.h (gimple_cdt_new_type): Remove.
1671 (gimple_cdt_new_type_ptr): Likewise.
1672 (gimple_cdt_set_new_type): Likewise.
1673 (gimple_cdt_location): Likewise.
1674 (gimple_cdt_location_ptr): Likewise.
1675 (gimple_cdt_set_location): Likewise.
1676 * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
1677 * tree-cfg.c (remove_useless_stmts_1): Do not handle
1678 GIMPLE_CHANGE_DYNAMIC_TYPE.
1679 (verify_types_in_gimple_stmt): Likewise.
1680 * tree-inline.c (estimate_num_insns): Likewise.
1681 (expand_call_inline): Do not copy DECL_NO_TBAA_P.
1682 (copy_decl_to_var): Likewise.
1683 (copy_result_decl_to_var): Likewise.
1684 * tree-pretty-print.c (dump_generic_node): Do not handle
1685 CHANGE_DYNAMIC_TYPE_EXPR.
1686 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1687 * tree-ssa-operands.c (get_expr_operands): Likewise.
1688 * tree-ssa-structalias.c (struct variable_info): Remove
1689 no_tbaa_pruning member.
1690 (new_var_info): Do not set it based on DECL_NO_TBAA_P.
1691 (unify_nodes): Do not copy it.
1692 (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
1693 (dump_solution_for_var): Do not dump no_tbaa_pruning state.
1694 (set_uids_in_ptset): Do not check it.
1695 (find_what_var_points_to): Likewise.
1696 (compute_tbaa_pruning): Remove.
1697 (compute_points_to_sets): Do not call it.
1698 * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
1699 * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
1700 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
1701 (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
1702 (DECL_NO_TBAA_P): Likewise.
1703 (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
1704 * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
1705 (expand_omp_atomic_pipeline): Do not set it.
1706 * print-tree.c (print_node): Do not dump it.
1707 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
1708 redundant check.
1709
83a6ac60
VM
17102009-05-22 Vladimir Makarov <vmakarov@redhat.com>
1711
1712 PR target/39856
1713 * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
1714 for clobber.
1715
fe2978fb
MM
17162009-05-22 Mark Mitchell <mark@codesourcery.com>
1717
1718 * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
1719 non-external.
1720
134ef638
BE
17212009-05-22 Ben Elliston <bje@au.ibm.com>
1722
1723 * Makefile.in (bversion.h, s-bversion): New targets.
1724 (TOPLEV_H): Add bversion.h.
1725 * toplev.h: Include "bversion.h".
1726 (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
1727 the __format__ attribute only if compiling with the same version
1728 of GCC as the sources (the "build version").
1729
52fc669d
BE
17302009-05-22 Ben Elliston <bje@au.ibm.com>
1731
1732 * c-format.c (handle_format_attribute): Fix comment typo.
1733
583ca921
SE
17342009-05-21 Steve Ellcey <sje@cup.hp.com>
1735
1736 PR target/37846
1737 * config/ia64/ia64.opt (mfused-madd): New.
1738 * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
1739 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
1740 * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
1741 madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
1742 nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
1743 msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
1744 nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
1745 * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
1746 instruction if !TARGET_FUSED_MADD.
1747 (fpma, fpms): Remove colon from name.
1748
150e3929
RG
17492009-05-22 Richard Guenther <rguenther@suse.de>
1750
1751 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
1752 TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
1753 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
1754 TARGET_MEM_REF.
1755 (create_expression_by_pieces): Only convert if necessary.
1756 * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
1757 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
1758
9a2b090c
AN
17592009-05-21 Adam Nemet <anemet@caviumnetworks.com>
1760
1761 * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
1762 regular pattern from a template and rename it ...
1763 (*extzv_truncsi_exts): ... to this.
1764
33b92c9d
RG
17652009-05-21 Richard Guenther <rguenther@suse.de>
1766
1767 * cgraph.h (struct cgraph_node): Remove inline_decl member.
1768 * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
1769 (cgraph_default_inline_p): Likewise.
1770 (cgraph_decide_inlining_incrementally): Likewise.
1771
cabf85c3
L
17722009-05-21 H.J. Lu <hongjiu.lu@intel.com>
1773 Uros Bizjak <ubizjak@gmail.com>
1774
1775 * config/i386/cpuid.h (bit_MOVBE): New.
1776
1777 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
1778
1779 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
1780 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
1781 (ix86_handle_option): Handle OPT_mmovbe.
1782 (ix86_target_string): Add -mmovbe.
1783 (pta_flags): Add PTA_MOVBE.
1784 (processor_alias_table): Add PTA_MOVBE to "atom".
1785 (override_options): Handle PTA_MOVBE.
1786
1787 * config/i386/i386.h (TARGET_MOVBE): New.
1788
1789 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
1790 (*bswapsi_movbe): New.
1791 (*bswapdi_movbe): Likewise.
1792 (bswapdi2): Renamed to ...
1793 (*bswapdi_1): This.
1794 (bswapdi2): New expander.
1795
1796 * config/i386/i386.opt (mmovbe): New.
1797
1798 * doc/invoke.texi: Document -mmovbe.
1799
9fefa0aa
TG
18002009-05-21 Taras Glek <tglek@mozilla.com>
1801
1802 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
1803 * gcc-plugin.h (plugin_init): Updated signature.
1804 * gcc-plugin.h (plugin_name_args): Moved to this header.
cabf85c3
L
1805 * doc/plugins.texi (plugin_init): Updated documention to reflect
1806 API change.
9fefa0aa
TG
1807 * doc/plugins.texi (plugin_name_args): Added to documention.
1808
1ea9fe56
MM
18092009-05-21 Mark Mitchell <mark@codesourcery.com>
1810
1811 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
1812 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
1813
52f84254
SZ
18142009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
1815
1816 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
1817 JUMP_TABLE_DATA_P predicates where applicable.
1818 * config/i386/predicates.md: Ditto.
1819 * config/i386/sse.md: Ditto.
1820
a952487c
JJ
18212009-05-21 Jakub Jelinek <jakub@redhat.com>
1822
93cac287
JJ
1823 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
1824 operand2 -128 override length_immediate attribute to 1.
1825 * config/i386/predicates.md (constm128_operand): New predicate.
1826
a952487c
JJ
1827 * config/i386/i386.c (memory_address_length): Handle %r12
1828 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
1829 also check REGNO.
1830 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
1831 mode look through optional ZERO_EXTEND and SUBREG.
1832 * config/i386/i386.md (R12_REG): New define_constant.
1833 (prefix_data16): For sse unit set also for MODE_TI insns.
1834 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
1835 insns set if operand 1 is ext_QIreg_operand.
1836 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
1837 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
1838 immediate.
1839 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
1840 mode from MODE_DI to MODE_SI.
1841 (movdi_1_rex64): Override modrm and length_immediate attributes
1842 only for movabs (TYPE_IMOV, alternative 2).
1843 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
1844 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1845 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1846 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1847 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
1848 prefix_rex attribute if DImode.
1849 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
1850 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
1851 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
1852 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
1853 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
1854 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
1855 Likewise. For TYPE_IMOV clear length_immediate attribute.
1856 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
1857 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
1858 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
1859 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
1860 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
1861 or one operand TYPE_ISHIFT.
1862 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
1863 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
1864 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
1865 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
1866 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
1867 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
1868 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
1869 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
1870 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
1871 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
1872 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
1873 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
1874 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
1875 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
1876 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
1877 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
1878 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
1879 set mode attribute, don't override length attribute.
1880 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
1881 to 1.
1882 (return_internal_long): Set length attribute to 2 instead of 1.
1883 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
1884 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
1885 prefix_rex attribute.
782dc37a
UB
1886 * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
1887 New predicates.
1888 (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
a952487c 1889
64af62c2
RR
18902009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1891
1892 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
1893
c166b898
ILT
18942009-05-20 Ian Lance Taylor <iant@google.com>
1895
1896 * tree.c (build_tree_list_vec_stat): New function.
1897 (ctor_to_vec): New function.
1898 (build_nt_call_vec): New function.
1899 (build_call_array): Change args to be a const pointer.
1900 (build_call_vec): New function.
1901 * tree.h (build_nt_call_vec): Declare.
1902 (build_tree_list_vec_stat): Declare.
1903 (build_tree_list_vec): Define.
1904 (build_call_array): Update declaration.
1905 (build_call_vec): Declare.
1906 (ctor_to_vec): Declare.
1907 * c-common.c (tree_vector_cache): New static variable.
1908 (make_tree_vector): New function.
1909 (release_tree_vector): New function.
1910 (make_tree_vector_single): New function.
1911 (make_tree_vector_copy): New function.
1912 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
1913 (make_tree_vector_single, make_tree_vector_copy): Declare.
1914 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
1915 (c_parser_expr_list): Don't manage cache here, instead call
1916 make_tree_vector.
1917 (c_parser_release_expr_list): Remove static function.
1918 (c_parser_vec_to_tree_list): Remove static function.
1919 (c_parser_attributes): Call build_tree_list_vec instead of
1920 c_parser_vec_to_tree_list. Call release_tree_vector instead of
1921 c_parser_release_expr_list.
1922 (c_parser_postfix_expression_after_primary): Likewise.
1923 (c_parser_objc_keywordexpr): Likewise.
1924
40449a90
SL
19252009-05-20 Sandra Loosemore <sandra@codesourcery.com>
1926
1927 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
1928 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
1929 TARGET_CONVERT_TO_TYPE.
1930 * hooks.c (hook_tree_const_tree_null): Define.
1931 * hooks.h (hook_tree_const_tree_null): Declare.
1932 * target.h (struct gcc_target): Add invalid_parameter_type,
1933 invalid_return_type, promoted_type, and convert_to_type fields.
1934 * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
1935 (TARGET_INVALID_RETURN_TYPE): Define.
1936 (TARGET_PROMOTED_TYPE): Define.
1937 (TARGET_CONVERT_TO_TYPE): Define.
1938 (TARGET_INITIALIZER): Update for new fields.
1939 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
1940 (grokparms): Check targetm.invalid_parameter_type.
1941 * c-typeck.c (default_conversion): Check targetm.promoted_type.
1942 * c-convert.c (convert): Check targetm.convert_to_type.
1943
642d97ff
AN
19442009-05-20 Adam Nemet <anemet@caviumnetworks.com>
1945
1946 * config/mips/mips.md (*extenddi_truncate<mode>,
1947 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
1948 defintions.
1949 (*extendhi_truncateqi): New define_insn_and_sptit.
1950
776248b8
JJ
19512009-05-20 Jakub Jelinek <jakub@redhat.com>
1952
1953 PR middle-end/40204
1954 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
782dc37a 1955 recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
776248b8 1956
d98e8686
EB
19572009-05-20 Eric Botcazou <ebotcazou@adacore.com>
1958
1959 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
1960 the operand of VIEW_CONVERT_EXPR.
1961
37c50435
L
19622009-05-20 H.J. Lu <hongjiu.lu@intel.com>
1963
1964 * config/i386/driver-i386.c (host_detect_local_cpu): Check
f3afc8a7 1965 extended family and model for Intel processors. Support Intel Atom.
37c50435 1966
dbb6088f
OH
19672009-05-20 Olivier Hainque <hainque@adacore.com>
1968
1969 * gstab.h (stab_code_type): Define, to be used instead of the
1970 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
1971 notice.
1972 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
1973 occurrences by stab_code_type.
1974 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
1975
7ec49257
MJ
19762009-05-20 Martin Jambor <mjambor@suse.cz>
1977
1978 * tree-flow.h (insert_edge_copies_seq): Undeclare.
1979 (sra_insert_before): Likewise.
1980 (sra_insert_after): Likewise.
1981 (sra_init_cache): Likewise.
1982 (sra_type_can_be_decomposed_p): Likewise.
1983 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
1984 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
1985 (sra_insert_before): Likewise.
1986 (sra_insert_after): Likewise.
1987 (sra_init_cache): Likewise.
1988 (insert_edge_copies_seq): Made static and moved upwards.
1989
1990 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
1991 case.
1992
1993 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
1994
1995 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
1996 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
1997 simple copies.
1998
0328ae4d
RG
19992009-05-20 Richard Guenther <rguenther@suse.de>
2000
2001 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
2002 with mismatched comparison modes.
2003
a7994a57 20042009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
782dc37a 2005
a7994a57 2006 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
782dc37a
UB
2007 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
2008 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
2009 with shifts for Thumb2.
2010 (orsi_notsi): New for orn.
2011 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
2012 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
2013 * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
2014 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
2015 Don't invert remainder for IOR.
a7994a57 2016
e36dc339
ZD
20172009-05-19 Zdenek Dvorak <ook@ucw.cz>
2018
2019 PR tree-optimization/40087
2020 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
2021 number_of_iterations_ne): Rename never_infinite argument.
2022 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
2023 number_of_iterations_le): Handle pointer-type ivs when
2024 exit_must_be_taken is false.
2025 (number_of_iterations_cond): Do not always assume that
2026 exit_must_be_taken if the control variable is a pointer.
2027
5cfd5d9b
AP
20282009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
2029
2030 * c-typeck.c (build_binary_op): Allow % on integal vectors.
2031 * doc/extend.texi (Vector Extension): Document that % is allowed too.
2032
2f1c7156
L
20332009-05-19 H.J. Lu <hongjiu.lu@intel.com>
2034
2035 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
2036 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
2037
7bb27074
MLI
20382009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
2039
2040 PR c/40172
2041 * c.opt (Wlogical-op): Disabled by default.
2042 * c-opt (c_common_post_options): Do not enable Wlogical-op with
2043 Wextra.
2044 * doc/invoke.texi (Wlogical-op): Likewise.
2045
5aefc6a0
EB
20462009-05-19 Eric Botcazou <ebotcazou@adacore.com>
2047
2048 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
2049 into CASE_CONVERT.
2050 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
2051 Propagate the type of the first operand.
2052 <ASSERT_EXPR>: Simplify.
2053 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
2054 Rewrite using the RHS code as discriminant.
2055 <NOP_EXPR>: Turn into CASE_CONVERT.
2056 <PLUS_EXPR>: Propagate the type of the first operand.
2057
f3a83111
SE
20582009-05-19 Steve Ellcey <sje@cup.hp.com>
2059
2060 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
2061 (ia64_dconst_0_375): New.
2062 * config/ia64/ia64.c (ia64_override_options): Remove
2063 -minline-sqrt-min-latency warning.
2064 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
2065 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
2066 * config/ia64/ia64.md (*sqrt_approx): Remove.
2067 (sqrtsf2): Remove #if 0.
2068 (sqrtsf2_internal_thr): Rewrite and move to div.md.
2069 (sqrtdf): Remove assert.
2070 (sqrtdf2_internal_thr): Rewrite and move to div.md.
2071 (sqrtxf2): Remove #if 0.
2072 (sqrtxf2_internal_thr): Rewrite and move to div.md.
2073 * div.md (sqrt_approx_rf): New.
2074 (sqrtsf2_internal_thr): New implementation.
2075 (sqrtsf2_internal_lat): New.
2076 (sqrtdf2_internal_thr: New implementation.
2077 (sqrtxf2_internal): New implementation.
2078
1ffc7157
FXC
20792009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
2080 Hans-Peter Nilsson <hp@axis.com>
2081
2082 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
2083 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
2084 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
2085 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
2086 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
2087 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
2088 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
2089 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
2090 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
2091 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
2092 * c-common.c: ...from here.
2093
db91d9ef
MLI
20942009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
2095
f3afc8a7 2096 * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
db91d9ef 2097
bbb9d91f
KG
20982009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2099
2100 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
2101
ce883f54
BE
21022009-05-19 Ben Elliston <bje@au.ibm.com>
2103
2104 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
2105 assignments with memcpy calls.
2106 (add_fdes): Likewise.
2107 (binary_search_unencoded_fdes): Likewise.
2108 (linear_search_fdes): Eliminate type puns.
2109
377f099a
RG
21102009-05-19 Richard Guenther <rguenther@suse.de>
2111
2112 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
2113 not falsely claim to have propagated into all uses.
2114
848bc769
BE
21152009-05-19 Ben Elliston <bje@au.ibm.com>
2116
2117 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
2118 version to v3.0.
2119
1bb99877
KK
21202009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
2121
2122 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
2123 * config/sh/sh.c (sh_legitimate_address_p): Make static.
2124 (TARGET_LEGITIMATE_ADDRESS_P): New.
2125 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2126 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
2127
82725547
DS
21282009-05-18 Dodji Seketeli <dodji@redhat.com>
2129
2130 PR debug/40109
2131 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
2132 child of the containing namespace's DIE.
2133
f6a1e430
AN
21342009-05-18 Adam Nemet <anemet@caviumnetworks.com>
2135
2136 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
2137 *zero_extendhi_truncqi): Move after the zero_extend patterns.
2138 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
2139 extend patterns.
2140
6a90d232
L
21412009-05-18 H.J. Lu <hongjiu.lu@intel.com>
2142
2143 PR target/39942
2144 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
2145 gen_align with gen_pad.
2146 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
2147 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
2148
2149 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
2150 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
2151
2152 * config/i386/i386.md (align): Renamed to ...
2153 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
2154 ASM_OUTPUT_MAX_SKIP_PAD.
2155
c4406f74
AS
21562009-05-18 Andreas Schwab <schwab@linux-m68k.org>
2157
06555043
AS
2158 * config.gcc: Fix variable syntax.
2159
c4406f74
AS
2160 PR target/39531
2161 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
2162 before calling exact_log2.
2163 (output_iorsi3): Likewise.
2164 (output_xorsi3): Likewise.
2165
99052692
KK
21662009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
2167
2168 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
2169 for the none zero constant operand except for EQ and NE
2170 comprisons even when the first operand is R0.
2171
f4aa3848
AK
21722009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
2173
2174 * config/s390/2064.md: Remove trailing whitespaces.
2175 * config/s390/2084.md: Likewise.
2176 * config/s390/constraints.md: Likewise.
2177 * config/s390/fixdfdi.h: Likewise.
2178 * config/s390/libgcc-glibc.ver: Likewise.
2179 * config/s390/s390-modes.def: Likewise.
2180 * config/s390/s390-protos.h: Likewise.
2181 * config/s390/s390.c: Likewise.
2182 * config/s390/s390.h: Likewise.
2183 * config/s390/s390.md: Likewise.
2184 * config/s390/tpf-unwind.h: Likewise.
2185
ab7256e4
MK
21862009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
2187
2188 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
2189
75df395f
MK
21902009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
2191
2192 M68K TLS support.
2193 * configure.ac (m68k-*-*): Check if binutils support TLS.
2194 * configure: Regenerate.
2195 * config/m68k/predicates.md (symbolic_operand): Extend comment.
2196 * config/m68k/constraints.md (Cu): New constraint.
2197 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
2198 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
2199 (movsi): Handle TLS symbols.
2200 (addsi3_5200): Handle XTLS symbols, indent.
2201 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
2202 (m68k_tls_reference_p): Declare.
2203 (m68k_legitimize_address): Declare.
2204 (m68k_unwrap_symbol): Declare.
2205 * config/m68k/m68k.opt (mxtls): New option.
2206 * config/m68k/m68k.c (ggc.h): Include.
2207 (m68k_output_dwarf_dtprel): Implement hook.
2208 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
2209 (m68k_expand_prologue): Load GOT pointer when function needs it.
2210 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
2211 (m68k_legitimate_constant_address_p): Same.
2212 (m68k_decompose_address): Handle TLS references.
2213 (m68k_get_gp): New static function.
2214 (enum m68k_reloc): New contants.
2215 (TLS_RELOC_P): New macro.
2216 (m68k_wrap_symbol): New static function.
2217 (m68k_unwrap_symbol): New function.
2218 (m68k_final_prescan_insn_1): New static function.
2219 (m68k_final_prescan_insn): New function.
2220 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
2221 functions.
2222 (legitimize_pic_address): Handle TLS references..
2223 (m68k_tls_get_addr, m68k_get_tls_get_addr)
2224 (m68k_libcall_value_in_a0_p)
2225 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
2226 (m68k_call_m68k_read_tp): Helper variables and functions for ...
2227 (m68k_legitimize_tls_address): Handle TLS references.
2228 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
2229 New functions.
2230 (m68k_legitimize_address): Handle TLS symbols.
2231 (m68k_get_reloc_decoration): New static function.
2232 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
2233 UNSPEC_RELOC32.
2234 (m68k_output_dwarf_dtprel): Implement hook.
2235 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
2236 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
2237 m68k_call_* routines.
2238 (sched_attr_op_type): Handle TLS symbols.
2239 (gt-m68k.h): Include.
2240 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
2241 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
2242
8b75fc9b
MJ
22432009-05-18 Martin Jambor <mjambor@suse.cz>
2244
2245 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
2246 (visit_store_addr_for_mod_analysis): New function.
2247 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
2248 (determine_cst_member_ptr): Use gimple_assign_single_p.
2249 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
2250 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
2251 operands. Don't check number of operands of a NOP_EXPR.
2252
f133d4a2
EF
22532009-05-18 Eric Fisher <joefoxreal@gmail.com>
2254
2255 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
2256
ae8af500
L
22572009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2258
2259 PR c/40172
2260 * c-common.c (warn_logical_operator): Don't warn if one of
2261 expression isn't always true or false.
2262
25e8fde8
KT
22632009-05-17 Kai Tietz <kai.tietz@onevision.com>
2264
ae8af500
L
2265 * config/i386/biarch32.h: New file.
2266 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
25e8fde8 2267
ef67af22
AN
22682009-05-17 Adam Nemet <anemet@caviumnetworks.com>
2269
2270 * config/mips/mips.md (*zero_extend<mode>_trunchi,
2271 *zero_extend<mode>_truncqi): Merge these into ...
2272 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
2273 Name the pattern following this as *zero_extendhi_truncqi.
2274
e2d87023
BL
22752009-05-16 Brad Lucier <lucier@math.purdue.edu>
2276
2277 PR middle-end/39301
2278 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
2279 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
2280 (output_info): Make field HOST_WIDEST_INT.
2281 (print_statistics): Use HOST_WIDEST_INT_PRINT.
2282 (dump_bitmat_statistics): Same.
2283
428ddbf0
FXC
22842009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
2285
2286 * config.gcc (use_gcc_stdint): Set to wrap.
2287 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
2288 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
2289 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
2290 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
2291 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
2292 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
2293 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
2294 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
2295
1ab8a8c2
JM
22962009-05-16 Joseph Myers <joseph@codesourcery.com>
2297
2298 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
2299 tune_64.
2300 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
2301 Move definitions earlier.
2302 (OPT_ARCH64, OPT_ARCH32): Define.
2303 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
2304 and tune_64.
2305
70544f44
RE
23062009-05-16 Richard Earnshaw <rearnsha@arm.com>
2307
2308 PR target/40153
2309 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
2310 implies.
2311
6241ded1
RE
23122009-05-16 Richard Earnshaw <rearnsha@arm.com>
2313
2314 * arm.md (movdi2): Copy non-reg values to DImode registers.
2315
a99c6711
JJ
23162009-05-16 Jakub Jelinek <jakub@redhat.com>
2317
40a8f07a
JJ
2318 PR target/39942
2319 * final.c (label_to_max_skip): New function.
2320 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
2321 CODE_LABEL_NUMBER <= max_labelno.
2322 * output.h (label_to_max_skip): New prototype.
2323 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
2324 (ix86_avoid_jump_mispredicts): ... this. Don't define if
2325 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
2326 Handle CODE_LABELs with >= 16 byte alignment or with
2327 max_skip == (1 << align) - 1.
2328 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
2329 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
2330
a99c6711
JJ
2331 PR target/39942
2332 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
2333 .p2align 3 if MAX_SKIP is smaller than 7.
2334 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
2335
7e5487a2
ILT
23362009-05-15 Ian Lance Taylor <iant@google.com>
2337
2338 * alias.c (struct alias_set_entry_d): Rename from struct
2339 alias_set_entry. Change all uses.
2340 * except.c (struct call_site_record_d): Rename from struct
2341 call_site_record. Change all uses.
2342 * except.h (struct eh_region_d): Rename from struct eh_region.
2343 Change all uses.
2344 * gcse.c (struct hash_table_d): Rename from struct hash_table.
2345 Change all uses.
2346 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
2347 ivtype_map_elt. Change all uses.
2348 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
2349 Change all uses.
2350 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
2351 * graphite.h (struct name_tree_d): Rename from struct name_tree.
2352 Change all uses.
2353 (struct sese_d): Rename from struct sese. Change all uses.
782dc37a
UB
2354 * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
2355 (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
7e5487a2
ILT
2356 * optabs.h (struct optab_d): Rename from struct optab. Change all
2357 uses.
2358 (struct convert_optab_d): Rename from struct convert_optab.
2359 Change all uses.
2360 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
2361 ipa_opt_pass. Change all uses.
2362 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
2363 all uses.
2364
2365 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
2366 defined as a typedef.
2367 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
2368 defined as a tag.
2369
a243fb4a
MLI
23702009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2371
2372 PR 16302
2373 * fold-const.c (make_range,build_range_check,merge_ranges): Move
2374 declaration to...
2375 (merge_ranges): Returns bool.
2376 * tree.h (make_range): .. to here.
2377 (build_range_check): Likewise.
2378 (merge_ranges): Likewise. Renamed from merge_ranges.
2379 * c-typeck.c (parser_build_binary_op): Update calls to
2380 warn_logical_operator.
2381 * c-common.c (warn_logical_operator): Add new warning.
2382 * c-common.h (warn_logical_operator): Update declaration.
2383
1b53c5f3
MLI
23842009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2385
782dc37a 2386 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
1b53c5f3 2387
c128599a
KG
23882009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2389
f9bab007
KG
2390 * doc/install.texi: Document MPC requirements, flags etc.
2391
c128599a
KG
2392 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
2393 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
2394 Evaluate constant arguments.
2395 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
2396 (fold_builtin_1): Likewise, also evaluate constant arguments.
2397 Remove superfluous break.
2398 (do_mpc_ckconv): New.
2399 * real.h: Include mpc.h.
2400 * toplev.c (print_version): Output MPC version info if available.
2401
d33e4b70
SL
24022009-05-15 Sandra Loosemore <sandra@codesourcery.com>
2403
782dc37a 2404 * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
d33e4b70 2405
a02ab464
L
24062009-05-15 H.J. Lu <hongjiu.lu@intel.com>
2407
2408 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
2409 only once.
2410
796bda22
JH
24112009-05-15 Jan Hubicka <jh@suse.cz>
2412
2413 * doc/invoke.texi (max-early-inliner-iterations): New flag.
2414 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
2415 (try_inline): Fix return value.
2416 (cgraph_decide_inlining_incrementally): Honor new value.
2417 (cgraph_early_inlining): Handle indirect inlining.
2418 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
2419
d88e5c37
JH
24202009-05-15 Jan Hubicka <jh@suse.cz>
2421
2422 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
2423 * cgraphunit.c (cgraph_finalize_function): Set it.
2424 (cgraph_expand_function): Use it.
2425
ae63687c
SL
24262009-05-15 Sandra Loosemore <sandra@codesourcery.com>
2427
2428 * real.c (encode_ieee_half): Define.
2429 (decode_ieee_half): Define.
2430 (ieee_half_format): Define.
2431 (arm_half_format): Define.
2432 * real.h (ieee_half_format): Declare.
2433 (arm_half_format): Declare.
2434
1bd74ad9
SL
24352009-05-15 Sandra Loosemore <sandra@codesourcery.com>
2436
2437 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
2438 swapped, and reversed optabs exist before trying to use them.
2439
dc34db56
PB
24402009-05-15 Paul Brook <paul@codesourcery.com>
2441 Sandra Loosemore <sandra@codesourcery.com>
2442
dc34db56
PB
2443 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
2444 loads. Allow PRE_DEC.
2445 (output_move_neon): Handle PRE_DEC.
2446 (arm_print_operand): Add 'A' for neon structure loads.
2447 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
2448 * config/arm/neon.md (neon_mov): Update comment.
2449 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
2450 calls.
2451 (Um): New constraint.
2452
1d405d7b
JH
24532009-05-15 Jan Hubicka <jh@suse.cz>
2454
2455 Revert the following patch until testsuite fallout is fixed:
2456 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
2457 * cgraph.h (struct inline_summary): New filed self_wize,
2458 size_inlining_benefit, self_time and time_inlining_benefit.
2459 (struct cgraph_global_info): Replace insns by time ans size fields.
2460 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
2461 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
2462 (ipcp_update_callgraph): Do not touch function bodies.
2463 * ipa-inline.c: Include except.h
782dc37a 2464 (MAX_TIME): New constant.
1d405d7b
JH
2465 (overall_insns): Remove
2466 (overall_size, max_benefit): New static variables.
2467 (cgraph_estimate_time_after_inlining): New function.
2468 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
2469 (cgraph_clone_inlined_nodes): Update size.
2470 (cgraph_mark_inline_edge): Update size.
2471 (cgraph_estimate_growth): Use size info.
2472 (cgraph_check_inline_limits): Check size.
2473 (cgraph_default_inline_p): Likewise.
2474 (cgraph_edge_badness): Compute badness based on benefit and size cost.
2475 (cgraph_decide_recursive_inlining): Check size.
f3afc8a7
UB
2476 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
2477 and times.
1d405d7b 2478 (cgraph_decide_inlining): Likewise.
00c5fa1b
EB
2479 (cgraph_decide_inlining_incrementally): Likewise; honor
2480 PARAM_EARLY_INLINING_INSNS.
1d405d7b
JH
2481 (likely_eliminated_by_inlining_p): New predicate.
2482 (estimate_function_body_sizes): New function.
2483 (compute_inline_parameters): Use it.
2484 * except.c (must_not_throw_labels): New function.
2485 * except.h (must_not_throw_labels): Declare.
2486 * tree-inline.c (init_inline_once): Kill inlining_weigths
2487 * tree-ssa-structalias.c: Avoid uninitialized warning.
2488 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
2489 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
2490 (PARAM_INLINE_CALL_COST): Remove.
2491 (PARAM_EARLY_INLINING_INSNS): New.
2492
7ffa47ca
RG
24932009-05-15 Richard Guenther <rguenther@suse.de>
2494
2495 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
2496 not TODO_update_ssa.
2497
828552ed
RG
24982009-05-15 Richard Guenther <rguenther@suse.de>
2499
2500 PR tree-optimization/39999
2501 * gimple.h (gimple_expr_type): Use the expression type looking
2502 through useless conversions.
2503 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
2504 (vn_nary_op_insert_stmt): Likewise.
2505 (simplify_binary_expression): Likewise.
2506
248fc9f3
RG
25072009-05-15 Richard Guenther <rguenther@suse.de>
2508
2509 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
2510 New options, enabled by default.
2511 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
2512 Document.
2513 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
2514 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
2515 * tree-ssa-structalias.c (gate_tree_pta): New function.
2516 (pass_build_alias): Use it.
2517
16b29cc4
JM
25182009-05-15 Joseph Myers <joseph@codesourcery.com>
2519
2520 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
2521 recurse on an invariant address if a conversion from a pointer
2522 type to a wider integer type is involved.
2523
125cae84
JH
25242009-05-15 Jan Hubicka <jh@suse.cz>
2525
2526 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
2527 * cgraph.h (struct inline_summary): New filed self_wize,
2528 size_inlining_benefit, self_time and time_inlining_benefit.
2529 (struct cgraph_global_info): Replace insns by time ans size fields.
2530 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
2531 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
2532 (ipcp_update_callgraph): Do not touch function bodies.
2533 * ipa-inline.c: Include except.h
782dc37a 2534 (MAX_TIME): New constant.
125cae84
JH
2535 (overall_insns): Remove
2536 (overall_size, max_benefit): New static variables.
2537 (cgraph_estimate_time_after_inlining): New function.
2538 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
2539 (cgraph_clone_inlined_nodes): Update size.
2540 (cgraph_mark_inline_edge): Update size.
2541 (cgraph_estimate_growth): Use size info.
2542 (cgraph_check_inline_limits): Check size.
2543 (cgraph_default_inline_p): Likewise.
2544 (cgraph_edge_badness): Compute badness based on benefit and size cost.
2545 (cgraph_decide_recursive_inlining): Check size.
f3afc8a7
UB
2546 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
2547 and times.
125cae84 2548 (cgraph_decide_inlining): Likewise.
00c5fa1b
EB
2549 (cgraph_decide_inlining_incrementally): Likewise; honor
2550 PARAM_EARLY_INLINING_INSNS.
125cae84
JH
2551 (likely_eliminated_by_inlining_p): New predicate.
2552 (estimate_function_body_sizes): New function.
2553 (compute_inline_parameters): Use it.
2554 * except.c (must_not_throw_labels): New function.
2555 * except.h (must_not_throw_labels): Declare.
2556 * tree-inline.c (init_inline_once): Kill inlining_weigths
2557 * tree-ssa-structalias.c: Avoid uninitialized warning.
2558 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
2559 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
2560 (PARAM_INLINE_CALL_COST): Remove.
2561 (PARAM_EARLY_INLINING_INSNS): New.
2562 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
2563 (inline-call-cost): Remove.
2564 (early-inlining-insns): New.
2565
84fb43a1
EB
25662009-05-15 Eric Botcazou <ebotcazou@adacore.com>
2567
2568 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
2569 for bounds.
2570 (print_int_cst_bounds_in_octal_p): Likewise.
2571 (dbxout_type): Adjust calls to above functions. Be prepared to deal
2572 with subtypes.
2573 * dwarf2out.c (base_type_die): Likewise.
2574 (is_subrange_type): Delete.
2575 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
2576 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
f3afc8a7
UB
2577 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
2578 if the destination type is boolean.
84fb43a1
EB
2579 (build_range_check): Do not special-case subtypes.
2580 (fold_sign_changed_comparison): Likewise.
2581 (fold_unary): Likewise.
2582 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
2583 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
2584 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
f3afc8a7
UB
2585 * tree.c (subrange_type_for_debug_p): New predicate based on the
2586 former is_subrange_type.
84fb43a1
EB
2587 * tree.h (subrange_type_for_debug_p): Declare.
2588 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
2589 (convert_affine_scev): Remove call to above function.
2590 (chrec_convert_aggressive): Likewise.
2591 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
2592 false for conversions involving subtypes.
2593 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
2594 (vrp_val_min): Likewise.
2595 (needs_overflow_infinity): Likewise.
2596 (extract_range_from_unary_expr): Likewise.
2597
331d9186
PB
25982009-05-15 Paolo Bonzini <bonzini@gnu.org>
2599
e9351712
L
2600 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
2601 * config/frv/frv.c: Likewise.
2602 * config/s390/s390.c: Likewise.
2603 * config/sparc/sparc.h: Likewise.
2604 * config/i386/i386.h: Likewise.
2605 * config/i386/i386.c: Likewise.
2606 * config/crx/crx.c: Likewise.
2607 * config/m68hc11/m68hc11.h: Likewise.
2608 * config/iq2000/iq2000.c: Likewise.
2609 * config/mn10300/mn10300.h: Likewise.
2610 * config/mn10300/mn10300.c: Likewise.
2611 * config/m68k/m68k.c: Likewise.
2612 * config/rs6000/rs6000.c: Likewise.
2613 * config/rs6000/xcoff.h: Likewise.
2614 * config/rs6000/linux64.h: Likewise.
2615 * config/rs6000/sysv4.h: Likewise.
2616 * config/score/score3.c: Likewise.
2617 * config/score/score7.c: Likewise.
2618 * config/score/score.c: Likewise.
2619 * config/arm/arm.md: Likewise.
2620 * config/mips/mips.c: Likewise.
2621 * config/mips/mips.md: Likewise.
2622 * config/bfin/bfin.h: Likewise.
2623 * config/pa/pa.c: Likewise.
2624 * config/pa/constraints.md: Likewise.
2625
2626 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
2627 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
2628 * config/pdp11/pdp11.h: Use memory_address_p instead.
331d9186 2629
09639a83
ILT
26302009-05-14 Ian Lance Taylor <iant@google.com>
2631
2632 * passes.c (finish_optimization_passes): Change i to int.
2633 * plugin.c (plugins_active_p): Change event to int.
2634 (dump_active_plugins): Likewise.
2635 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
2636 Add cast.
2637 * tree.c (tree_range_check_failed): Change c to unsigned int.
2638 (omp_clause_range_check_failed): Likewise.
2639 (build_common_builtin_nodes): Change mode to int. Add cast.
2640 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
2641 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
2642
2643 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
2644 ++ or -- with a variable of enum type.
2645
c04a56bf
SB
26462009-05-14 Steven Bosscher <steven@gcc.gnu.org>
2647
2648 PR driver/40144
2649 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
2650
237ee620
SB
26512009-05-14 Steven Bosscher <steven@gcc.gnu.org>
2652
2653 * store-motion.c: Do not include params.h
2654 * Makefile.in: Fix dependencies for various files.
2655
1154c4fa
SB
26562009-05-14 Steven Bosscher <steven@gcc.gnu.org>
2657
2658 * auto-inc-dec.c: Fix pass description, remove apparent
2659 accidental duplication.
2660
61c27353
L
26612009-05-14 H.J. Lu <hongjiu.lu@intel.com>
2662
2663 PR middle-end/40147
2664 * ipa-utils.h (memory_identifier_string): Moved to ...
2665 * tree.h (memory_identifier_string): Here. Add GTY(()).
2666
c6c3dba9
PB
26672009-05-14 Paolo Bonzini <bonzini@gnu.org>
2668
2669 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
2670 in the former documentation of...
2671 (GO_IF_LEGITIMATE_ADDRESS): ... this.
2672 * ira-conflicts.c (get_dup_num): Use address_operand.
2673 * targhooks.c (default_legitimate_address_p): New.
2674 * targhooks.h (default_legitimate_address_p): New.
2675 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
2676 Call hook.
2677 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
2678 * target.h (struct target): Add legitimate_address_p.
2679 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
2680 (TARGET_INITIALIZER): Include it.
2681
2682 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2683 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
2684 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
2685 (TARGET_LEGITIMATE_ADDRESS_P): New.
2686
2687 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2688 (REG_OK_STRICT_P): Delete.
2689 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
2690 (frv_legitimate_address_p_1): ... this.
2691 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
2692 (frv_legitimate_address_p_1): ... the renamed old
2693 frv_legitimate_address_p.
2694 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
2695 (TARGET_LEGITIMATE_ADDRESS_P): New.
2696
2697 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2698 * config/s390/s390-protos.h (legitimate_address_p): Remove.
2699 * config/s390/s390.c (legitimate_address_p): Rename to...
2700 (s390_legitimate_address_p): ... this, make static.
2701 (legitimize_address): Adjust call.
2702 (TARGET_LEGITIMATE_ADDRESS_P): New.
2703 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
2704
2705 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2706 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
2707 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
2708 (TARGET_LEGITIMATE_ADDRESS_P): New.
2709
2710 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2711 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
2712 * config/spu/spu.c (spu_legitimate_address): Rename to...
2713 (spu_legitimate_address_p): ... this, make static.
2714 (TARGET_LEGITIMATE_ADDRESS_P): New.
2715
2716 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2717 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
2718 * config/sparc/sparc.c (legitimate_address_p): Rename to...
2719 (sparc_legitimate_address_p): ... this, make static and return bool.
2720 (legitimize_address): Adjust call.
2721 (TARGET_LEGITIMATE_ADDRESS_P): New.
2722
2723 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2724 * config/i386/i386-protos.h (legitimate_address_p): Remove.
2725 * config/i386/i386.c (legitimate_address_p): Rename to...
2726 (ix86_legitimate_address_p): ... this, make static.
2727 (constant_address_p): Move after it, adjust call.
2728 (TARGET_LEGITIMATE_ADDRESS_P): New.
2729
2730 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2731 * config/avr/avr-protos.h (legitimate_address_p): Remove.
2732 * config/avr/avr.c (legitimate_address_p): Rename to...
2733 (avr_legitimate_address_p): ... this, make static.
2734 (legitimize_address): Adjust call.
2735 (TARGET_LEGITIMATE_ADDRESS_P): New.
2736
2737 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2738 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
2739 * config/crx/crx.c (crx_legitimate_address_p): Make static.
2740 (TARGET_LEGITIMATE_ADDRESS_P): New.
2741
2742 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2743 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
2744 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
2745 (TARGET_LEGITIMATE_ADDRESS_P): New.
2746
2747 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2748 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
2749 Remove.
2750 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
2751 Make static.
2752 (TARGET_LEGITIMATE_ADDRESS_P): New.
2753
2754 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2755 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
2756 Remove.
2757 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
2758 Rename to...
2759 (m68hc11_legitimate_address_p): ... this, make static.
2760 (go_if_legitimate_address_internal): Rename to...
2761 (m68hc11_legitimate_address_p_1): ... this.
2762 (legitimize_address): Adjust call.
2763 (TARGET_LEGITIMATE_ADDRESS_P): New.
2764
2765 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
782dc37a
UB
2766 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
2767 * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
c6c3dba9
PB
2768 (TARGET_LEGITIMATE_ADDRESS_P): New.
2769
2770 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2771 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
2772 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
2773 (mn10300_legitimate_address_p): ... this, make static.
2774 (TARGET_LEGITIMATE_ADDRESS_P): New.
2775
2776 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2777 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
2778 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
2779 (TARGET_LEGITIMATE_ADDRESS_P): New.
2780
2781 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2782 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
2783 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
2784 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2785 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
2786 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
2787 (rs6000_legitimate_address_p): ... this, make static.
2788 (TARGET_LEGITIMATE_ADDRESS_P): New.
2789 (REG_MODE_OK_FOR_BASE_P): Delete.
2790 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
2791
2792 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2793 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
2794 Delete.
2795 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
2796 static, adjust types.
2797 (TARGET_LEGITIMATE_ADDRESS_P): New.
2798
2799 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2800 * config/score/score.c (score_address_p): Rename to...
2801 (score_legitimate_address_p): ... this.
2802 (TARGET_LEGITIMATE_ADDRESS_P): New.
2803 * config/score/score3.c (score3_address_p): Rename to...
2804 (score3_legitimate_address_p): ... this.
2805 * config/score/score7.c (score7_address_p): Rename to...
2806 (score7_legitimate_address_p): ... this.
2807
2808 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
2809 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
2810 GO_IF_LEGITIMATE_ADDRESS): Delete.
2811 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
2812 thumb2_legitimate_address_p): Delete.
2813 (arm_legitimate_address_p): Rename to...
2814 (arm_legitimate_address_outer_p): ... this.
2815 * config/arm/constraints.md ("Uq"): Adjust call.
2816 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
f3afc8a7
UB
2817 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
2818 to...
c6c3dba9 2819 (arm_legitimate_address_outer_p): ... this.
f3afc8a7
UB
2820 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
2821 static.
c6c3dba9
PB
2822 (TARGET_LEGITIMATE_ADDRESS_P): New.
2823
2824 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2825 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
2826 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
2827 (TARGET_LEGITIMATE_ADDRESS_P): New.
2828
2829 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2830 * config/vax/vax-protos.h (legitimate_address_p): Remove.
2831 * config/vax/vax.c (legitimate_address_p): Rename to...
2832 (vax_legitimate_address_p): ... this, make static.
2833 (TARGET_LEGITIMATE_ADDRESS_P): New.
2834
2835 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2836 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
2837 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
2838 (TARGET_LEGITIMATE_ADDRESS_P): New.
2839
2840 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2841 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
2842 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
2843 (mmix_legitimate_address_p): ... this, make static.
2844 (TARGET_LEGITIMATE_ADDRESS_P): New.
2845
2846 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2847 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
2848 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
2849 (TARGET_LEGITIMATE_ADDRESS_P): New.
2850
3bd0d9c8
PB
28512009-05-14 Paolo Bonzini <bonzini@gnu.org>
2852
2853 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
2854 of MODE_COMPLEX_INT.
2855
fe049033
RO
28562009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2857
2858 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
2859 LCT_NORMAL in function call.
2860 * mips-tdump.c (print_file_desc): Add cast to enum type.
2861 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
2862 (mark_stabs): Add casts to enum types.
2863 (parse_stabs_common): Add casts to enum types.
16f7ad42 2864
b0907a6c
AN
28652009-05-13 Adam Nemet <anemet@caviumnetworks.com>
2866
2867 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
2868 Check for invalid values of LETTER.
2869
d1c8e08a
TG
28702009-05-13 Taras Glek <tglek@mozilla.com>
2871
f3afc8a7
UB
2872 * attribs.c (register_attribute): moved out attribute registration
2873 into register_attribute.
2874 * doc/plugins.texi: Documented register_attribute and
2875 PLUGIN_ATTRIBUTES.
16f7ad42
TG
2876 * gcc-plugin.h: Added forward decl for register_attribute.
2877 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
2878 * plugin.c (register_callback, invoke_plugin_callbacks): Added
2879 PLUGIN_ATTRIBUTES boilerplate.
d1c8e08a 2880
4ed7f970
DK
28812009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
2882
2883 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
2884 values even in sentinel and empty entries.
2885 (ms_printf_flag_specs): Likewise.
2886 (ms_scanf_flag_specs): Likewise.
2887 (ms_strftime_flag_specs): Likewise.
2888 (ms_print_char_table): Likewise.
2889 (ms_scan_char_table): Likewise.
2890 (ms_time_char_table): Likewise.
2891
3d8fa148
DK
28922009-05-13 Doug Kwan <dougkwan@google.com>
2893
2894 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
2895
f06257d3
AN
28962009-05-13 Adam Nemet <anemet@caviumnetworks.com>
2897
2898 * config/mips/mips.md (store): Add attributes for QI and HI.
2899 Update comment.
2900 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
2901 (truncdi<mode>2): ... this new pattern.
2902
fb201767
BH
29032009-05-13 Brad Hards <bradh@kde.org>
2904
2905 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
2906
c7bda60e 29072009-05-14 Jakub Jelinek <jakub@redhat.com>
efc3527a
BE
2908 Ben Elliston <bje@au.ibm.com>
2909
2910 PR middle-end/40035
2911 * dse.c (check_mem_read_rtx): Guard against width == -1.
2912
ce985b43
MM
29132009-05-13 Michael Matz <matz@suse.de>
2914
2915 PR middle-end/39976
2916 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
2917 (trivially_conflicts_p): New function.
2918 (insert_backedge_copies): Use it.
2919
7de1d221
JJ
29202009-05-13 Janis Johnson <janis187@us.ibm.com>
2921
2922 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
2923 (handle_stdc_pragma): Use new enum constant names.
2924 (handle_pragma_float_const_decimal64): Ditto.
2925
bfefafc6
ILT
29262009-05-13 Ian Lance Taylor <iant@google.com>
2927
2928 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
2929 tree.def.
2930
286c4fcb
NS
29312009-05-13 Nathan Sidwell <nathan@codesourcery.com>
2932
2933 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
2934 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
2935 multilibs.
2936 * config/m68k/m68k.h (FL_UCLINUX): Define.
2937
ebaa6ea7
JH
29382009-05-13 Jan Hubicka <jh@suse.cz>
2939
2940 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
2941
2b703e1a
KK
29422009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
2943
2944 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
2945 unless -fschedule-insns is specified.
2946
c3537723
KK
29472009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
2948
2949 PR target/39561
2950 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
2951 TARGET_EXPAND_CBRANCHDI4.
2952 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
2953 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
2954 (cmpeqdi): Fix comment.
2955
cdeed45a
KK
29562009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
2957
2958 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
2959 (sh_legitimate_address_p): Likewise.
2960 * config/sh/sh.c (sh_legitimate_index_p): New.
2961 (sh_legitimate_address_p): Likewise.
2962 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
2963 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
2964 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
2965 (MAYBE_BASE_REGISTER_RTX_P): New macro.
2966 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
2967 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
2968 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
2969 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
2970 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
2971
02f0b13a
JH
29722009-05-12 Jan Hubicka <jh@suse.cz>
2973
2974 * tree-inline.c (estimate_operator_cost): Add operands;
2975 when division happens by constant, it is cheap.
2976 (estimate_num_insns): Loads and stores are not having cost of 0;
2977 EH magic stuff is cheap; when computing runtime cost of switch,
2978 use log2 base of amount of its cases; builtin_expect has cost of 0;
2979 compute cost for moving return value of call.
2980 (init_inline_once): Initialize time_based flags.
2981 * tree-inline.h (eni_weights_d): Add time_based flag.
2982
ecb7f6de
PB
29832009-05-12 Paolo Bonzini <bonzini@gnu.org>
2984
2985 * df-core.c: Update head documentation.
2986
c24151ce
MM
29872009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
2988
2989 PR bootstrap/40118
2990 * rs6000.c (rs6000_generate_compare): Use op1b instead of
2991 shadowing exisiting variable op1.
2992
fbdf817d
UB
29932009-05-12 Uros Bizjak <ubizjak@gmail.com>
2994
704bf7c8 2995 PR target/37179
fbdf817d
UB
2996 * config/i386/driver-i386.c (processor_signatures): New enum.
2997 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
2998 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
2999 processor signature to detect geode processor.
3000
5e8d1826
PB
30012009-05-12 Paolo Bonzini <bonzini@gnu.org>
3002
3003 Revert:
3004
3005 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
3006
3007 * optabs.c (prepare_cmp_insn): Temporarily disable test that
3008 causes spurious differences between trunk and cond-optab branch.
3009
f90b7a5a
PB
30102009-05-12 Paolo Bonzini <bonzini@gnu.org>
3011
fbdf817d
UB
3012 * dojump.c (compare_from_rtx): Delete.
3013 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
3014 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
f90b7a5a
PB
3015 if the comparison does not satisfy the predicate; test predicates for
3016 operands 2 and 3 of a cstore pattern. Don't try cstore optab
3017 further if one existing pattern fails.
fbdf817d 3018 * expr.h (compare_from_rtx): Delete.
f90b7a5a 3019 (prepare_operand): Declare it.
fbdf817d 3020 * optabs.c: Change "lib call" to "libcall" throughout.
f90b7a5a 3021 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
fbdf817d
UB
3022 HAVE_conditional_trap, emit_cmp_insn): Delete.
3023 (can_compare_p): Delete cmp_optab case.
f90b7a5a 3024 (prepare_float_lib_cmp): Return an rtx and a machine mode.
fbdf817d
UB
3025 Accept other parameters by value.
3026 (prepare_operand): Make non-static.
3027 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
3028 other parameters by value. Try to widen operands here based on
3029 an optab_methods argument and looking at cbranch_optab.
3030 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
3031 loop. Use cbranch_optab directly.
3032 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
3033 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
3034 assertion.
3035 (emit_conditional_move, emit_conditional_add): Inline what's needed
3036 of compare_from_rtx, using new prepare_cmp_insn for the rest.
3037 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
3038 with COMPARE. Move cmov_optab and cstore_optab above
3039 with cbranch_optab, move cmp_optab down with ucmp_optab,
3040 remove tst_otpab. Do not initialize trap_rtx.
3041 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
f90b7a5a
PB
3042 for trap code. Do not check HAVE_conditional_trap. Use
3043 prepare_cmp_insn. Accept no predicate for operand 3.
fbdf817d
UB
3044 * optabs.h (OTI_cmp): Mark as used only for libcalls.
3045 (OTI_ctrap, ctrap_optab): New.
3046 (tst_optab): Delete.
3047 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
3048 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
3049 with lookup of ctrap_optab.
f3afc8a7
UB
3050 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
3051 Delete.
fbdf817d
UB
3052 (ctrap_optab): New.
3053
3054 * combine.c (combine_simplify_rtx, simplify_set): Do not
3055 special case comparing against zero for cc0 machines.
f90b7a5a
PB
3056 * simplify-rtx.c (simplify_binary_operation_1): Never remove
3057 COMPARE on cc0 machines.
3058 (simplify_relational_operation): Return a new expression when
3059 a COMPARE could be removed.
fbdf817d
UB
3060 * final.c (final_scan_insn): Compare cc_status values
3061 against LHS of a (compare FOO (const_int 0)) cc0 source.
3062 Also check if cc_status.value is the full compare.
f90b7a5a 3063
fbdf817d
UB
3064 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
3065 (cstoreMM4): Document.
f90b7a5a 3066 (conditional_trap): Document ctrapMM4 instead.
fbdf817d 3067 (sync_compare_and_swapMM): Refer to cbranchcc4.
f90b7a5a
PB
3068 (Dependent Patterns): Eliminate obsolete information referring to
3069 the old jump optimization phase.
fbdf817d 3070 (Canonicalization): Include cbranchcc4 case, omit canonicalization
f90b7a5a
PB
3071 of compares with 0 on cc0 machines.
3072 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
3073 avoiding references to cc0. Remove text about storing operands
3074 in cmpMM.
3075 * doc/tm.texi (Condition Codes): Include blurb on different
3076 condition code representations, separate into subsections for
3077 CC0, MODE_CC and conditional execution.
3078
fbdf817d
UB
3079 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
3080 alpha_emit_setcc): Accept operands and a machine mode.
3081 * config/alpha/alpha.c (alpha_emit_conditional_branch):
3082 Get code/op0/op1 from operands, use machine mode argument
3083 instead of alpha_compare.fp_p. Emit the branch here.
3084 (alpha_emit_setcc): Likewise, and return boolean.
3085 (alpha_emit_conditional_move): Likewise. Assert that
3086 cmp_op_mode == cmp_mode, and simplify accordingly.
3087 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
3088 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
3089 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
3090 Delete.
3091 (stack probe test): Use cbranchdi4.
3092 * config/alpha/predicates.md (alpha_cbranch_operator): New.
3093
3094 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
3095 * config/arc/arc.h (movsicc, movsfcc): Use it.
3096 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
3097 (cbranchsi4, cstoresi4): New.
3098 (cmpsi, bCC and sCC expanders): Remove.
3099
3100 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
3101 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
3102 * config/arm/predicates.md (arm_comparison_operator): Only include
3103 floating-point operators if there is a hardware floating-point unit.
3104 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
3105 deferring to cbranch_cc and cstore_cc respectively.
3106 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
3107 cbranch_cc, cstore_cc): New.
3108 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
f90b7a5a 3109 arm_compare_op1.
fbdf817d
UB
3110 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
3111
3112 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
3113 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
3114 as an argument.
3115 (adjust_insn_length): Adjust calls.
3116 (avr_reorg): Handle (compare (foo) (const_int 0)).
3117 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
3118 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
3119 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
3120 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
3121 (bCC): Remove.
3122 (cbranchqi4, cbranchhi4, cbranchsi4): New.
f90b7a5a
PB
3123 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
3124
fbdf817d
UB
3125 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
3126 (cbranchsi4, cstorebi4, cstoresi4): New.
f90b7a5a 3127 (movbisi): This insn is duplicate, split it to zero_extend.
fbdf817d
UB
3128 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
3129 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
3130 (bfin_optimize_loop): Use cbranch expander.
3131 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
3132 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
3133 (bfin_bimode_comparison_operator): ... this.
3134 (bfin_direct_comparison_operator): New.
f90b7a5a 3135
fbdf817d
UB
3136 * config/cris/cris.c (cris_normal_notice_update_cc): Look
3137 inside (compare FOO (const_int 0)).
3138 (cris_rtx_costs): Handle ZERO_EXTRACT.
3139 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
3140 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
3141 (*tstdi_v32): Delete.
3142 (*cmpdi_non_v32): Add M alternative for operand 1.
3143 (cmpsi, cmp<mode>): Make private.
3144 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
3145 with COMPARE.
3146 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
3147
3148 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
3149 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
3150 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
f90b7a5a
PB
3151 (cc_reg_operand): New.
3152 (any_cond): Delete.
fbdf817d
UB
3153 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
3154 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
3155 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
3156 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
3157 crx_expand_scond): Delete.
3158
3159 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
3160 (cbranchsi4): New.
3161 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
3162 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
3163
3164 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
3165 cstoresi4, cstoresf4, cstoredf4): New.
3166 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
3167 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
3168 Receive the entire operands array.
3169 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
3170 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
3171 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
3172 Get test/op0/op1 from the operands array.
3173 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
3174
3175 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
3176 (h8300_expand_store): New.
3177 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
3178 (const_int 0)).
3179 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
3180 (h8300_expand_store): New.
3181 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
3182 or do not try to produce (set (cc0) REG).
3183 (peepholes): Wrap arguments with COMPARE. Add a peephole to
3184 change a compare into a move to a scratch register. Disable some
3185 peepholes when comparing with zero.
3186 (tstsi, tsthi, tstsi, cmpqi): Make private.
3187 (cmphi): Delete.
3188 (bCC, sCC): Delete.
3189 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
3190 cstoresi4): New.
f90b7a5a
PB
3191
3192 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
3193 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
3194 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
3195 (ix86_emit_i387_log1p): Use cbranchxf2.
3196 (ix86_expand_setcc): Return void.
3197 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
3198 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
3199 cmp<MODEF>, cmpcc): Remove.
fbdf817d
UB
3200 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
3201 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
3202 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
f90b7a5a
PB
3203 (sCC and bCC expanders): Remove.
3204 (stack_protect_test): Use cbranchcc4.
3205
fbdf817d
UB
3206 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
3207 Delete.
3208 (ia64_expand_compare): Accept three rtx by reference and return void.
3209 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
3210 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
3211 from *expr. Update *expr with the BImode comparison to do.
3212 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
3213 cmptf, bCC, sCC, conditional_trap): Delete.
3214 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
3215 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
3216 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
3217 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
3218 * config/ia64/predicates.md (ia64_cbranch_operator): New.
3219
3220 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
3221 type of last argument.
3222 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
3223 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
3224 use machine mode argument instead of branch_type. Remove dead
3225 code for floating-point comparisons.
3226 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
3227 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
3228 Remove.
3229 (cbranchsi4, cstoresi4): New.
3230 * config/iq2000/predicates.md (reg_or_const_operand): New.
3231
3232 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
3233 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
3234 (b<code>_op): Rewrite to...
3235 (bcc_op): ... this, using match_operator.
3236 (s<code>_op): Rewrite to...
3237 (scc_op): ... this, using match_operator.
3238 (s<code>_24_op): Rewrite to...
3239 (scc_op_24): ... this, using match_operator.
3240 (s<code>_<mode>): Rewrite to...
3241 (cstore<mode>4): ... this, using match_operator.
3242 (s<code>_<mode>_24): Rewrite to...
3243 (cstore<mode>4_24): ... this, using match_operator.
3244 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
3245 m32c_unpend_compare, m32c_expand_scc): Delete.
3246 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
3247 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
3248 (m32c_expand_movcc): Change NE to EQ if necessary.
3249 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
3250
3251 * config/m32r/m32r-protos.h (gen_cond_store): New.
3252 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
3253 (gen_cond_store): New, from sCC patterns.
3254 (m32r_expand_block_move): Use cbranchsi4.
3255 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
3256 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
3257 (cbranchsi4, cstoresi4): New.
3258
3259 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
3260 Delete.
3261 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
f90b7a5a 3262 (m68hc11_notice_update_cc): Look into a compare with 0.
fbdf817d
UB
3263 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
3264 Delete.
3265 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
3266 cmphi, cmpqi, bCC): Delete.
3267 (cbranchsi4, cbranchhi4, cbranchqi4): New.
3268 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
3269 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
3270 sets with COMPARE.
3271
3272 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
3273 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
3274 * config/m68k/constraints.md (H): New.
3275 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
3276 the define_insn below.
3277 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
3278 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
3279 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
3280 patterns): Wrap RHS with COMPARE.
3281 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
3282 (*cmpdi_internal): Name this pattern.
3283 (cmpdi): Change to define_insn.
3284 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
3285 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
3286 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
3287 predicate.
3288 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
3289 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
3290 (conditional_trap): Change to...
3291 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
3292 (*conditional_trap): Use the ordered_comparison_operator and
3293 const1_operand predicates.
3294 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
3295 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
3296 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
3297 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
3298
3299 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
3300 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
3301 (mcore_gen_compare): New.
3302 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
3303 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
3304 (mcore_gen_compare): ... this.
3305 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
3306 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
3307 (stack probe pattern): Use cbranchsi4.
3308
3309 * config/mips/predicates.md (mips_cstore_operator): New.
3310 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
3311 * config/mips/mips.md (any_cond): Delete.
3312 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
3313 always succeed.
3314 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
3315 fixuns_truncsfdi2): Use cbranch patterns.
3316 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
3317 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
3318 Adjust call to mips_expand_conditional_branch.
3319 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
3320 cstore<GPR:mode>4.
3321 * config/mips/mips-protos.h (mips_expand_conditional_branch,
3322 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
3323 * config/mips/mips.c (cmp_operands): Delete.
3324 (mips_emit_compare): Get comparison operands from *op0/*op1.
3325 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
3326 that it succeeds. Use op0/op1 instead of cmp_operands.
3327 (mips_expand_conditional_branch, mips_expand_conditional_move,
3328 mips_expand_conditional_trap): Likewise.
3329 (mips_block_move_loop): Use cbranch patterns.
3330 * config/mips/mips.h (cmp_operands): Delete.
3331
3332 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
3333 (mmix_gen_compare_reg): Just return a register in the right CC mode.
3334 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
3335 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
3336 (*cmpcc_folded): Rename to...
3337 (*cmpdi_folded): this.
3338 (*cmpcc): Rename to...
3339 (*cmps): ... this.
3340 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
3341 (bCC): Remove.
3342 (cbranchdi4): New.
3343 (cbranchdf4): New. Handle invalid comparisons here.
3344 * config/mmix/predicates.md (float_comparison_operator): New.
3345
3346 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
3347 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
3348 * config/mn10300/mn10300.md (tst): Delete.
3349 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
3350 Name these patterns and wrap RHS in a compare.
3351 (*cmpsi): Make this pattern private. Include tst.
3352 (*cmpsf): Make this pattern private.
3353 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
3354 (compare with zero peepholes): Likewise.
3355 (bCC): Remove.
3356 (cbranchsi4, cbranchsf4): New.
3357 (casesi): Use cbranchsi4.
3358
3359 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
3360 hppa_branch_type): Delete.
3361 (return_addr_rtx): Use cbranchsi4.
3362 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
3363 Emit CCFPmode comparison here.
3364 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
3365 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
3366 hppa_branch_type): Delete.
3367 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
3368 (movsicc, movdicc): Remove references to hppa_compare_op0,
3369 hppa_compare_op1 and compare_from_rtx.
3370 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
3371 (casesi): Use cbranchsi4.
3372
3373 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
3374 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
3375 * config/pdp11/pdp11.md (register_or_const0_operand): New.
3376 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
3377 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
3378 (bCC): Delete.
3379 (cbranchdf4, cbranchhi4, cbranchqi4): New.
3380 (*branch, *branch_inverted): New.
3381
3382 * config/picochip/picochip.md (cbranchhi4): Use
3383 ordered_comparison_operator.
3384 (cmphi, bCC): Remove.
3385
3386 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
3387 (trap_comparison_operator): Delete.
3388 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
3389 rs6000_emit_cbranch): Accept mode and operands.
3390 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
3391 rs6000_compare_fp_p): Delete.
3392 (rs6000_generate_compare): Accept mode and comparison. Extract code
3393 and op0/op1 from there. Replace references to rs6000_compare_op0
3394 and rs6000_compare_op1.
3395 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
3396 extract result from passed operands.
3397 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
3398 extract loc from passed operands.
3399 (rs6000_emit_cmove): Likewise.
3400 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
3401 rs6000_compare_fp_p): Delete.
3402 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
3403 (cbranch<GPR>4, cbranch<FP>4): New.
3404 (cstore<mode>4): New. Consolidate here all choices about when to use
3405 portable or specialized sCC sequences.
3406 (stack_protect_test): Use cbranchsi4.
3407 (conditional_trap): Replace with ctrap<GPR>4.
3408 (conditional trap insn): Replace trap_comparison_operator with
3409 ordered_comparison_operator.
3410
3411 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
3412 (s390_emit_prologue): Use ctrap.
3413 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
3414 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
3415 New predicates replacing...
3416 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
3417 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
3418 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
3419 (add<mode>cc): Do not use s390_compare_op0/op1.
3420 (s<code>): Change to...
3421 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
3422 (seq): Change to...
3423 (cstorecc4): ... this. Handle EQ or NE equally.
3424 (*sne): Un-privatize for use in cstorecc4.
3425 (b<code>): Change to...
3426 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
3427 (conditional_trap): Replace with...
3428 (ctrap<GPR>4, ctrap<FP>4): ... these.
3429 (stack_protect): Use cbranchcc4.
3430
3431 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
3432 * config/score/score-protos.h (score_gen_cmp): Delete.
3433 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
3434 (score_block_move-loop): Use cbranchsi4.
3435 * config/score/score.md (cbranchsi4): New.
3436 (cmpsi, bCC): Delete.
3437 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
3438 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
3439 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
3440 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
3441 * config/score/score3.h (score3_gen_cmp): Delete.
3442 * config/score/score7.h (score7_gen_cmp): Delete.
3443
3444 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
3445 (sh_emit_scc_to_t): ... this. Return void.
3446 (from_compare): Rename to...
3447 (sh_emit_compare_and_branch): ... this.
3448 (sh_emit_compare_and_set): New.
3449 (sh_expand_t_scc): Accept operands.
3450 * config/sh/predicates.md (sh_float_comparison_operator): New.
3451 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
3452 (prepare_scc_operands): Rename to...
3453 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
3454 arguments.
3455 (sh_emit_cheap_store_flag): New.
f90b7a5a 3456 (sh_emit_set_t_insn): New.
fbdf817d
UB
3457 (from_compare): Rename to...
3458 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
3459 handling of TARGET_SH2E floating point to avoid recursive call.
3460 Generate branch here.
3461 (sh_emit_compare_and_set): New.
3462 (sh_expand_t_scc): Get op0/op1 from arguments.
3463 (sh_emit_cheap_store_flag): New.
3464 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
3465 cases.
f90b7a5a 3466 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
fbdf817d
UB
3467 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
3468 (movsicc, movdicc): Do nothing when it recreated operands from
3469 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
3470 prepare_scc_operands (now sh_emit_scc_to_t).
3471 (udivdi3): Use cstoresi4.
3472 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
3473 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
3474 (cbranchint4_media, cbranchfp4_media): New.
3475 (casesi): Use cbranchdi4.
3476 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
3477 Delete.
3478 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
3479 (movnegt): Remove second operand.
3480 (cbranchsf4, cbranchdf4): New.
3481 (stack_protect): Use cbranchdi4/cbranchsi4.
3482
3483 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
3484 (gen_compare_reg): Accept comparison, extract part of it to...
3485 (gen_compare_reg_1): ... this.
3486 (gen_compare_operator): Delete.
3487 (gen_v9_scc): Accept separate destination, comparison code and arms.
3488 Do not use sparc_compare_op0/sparc_compare_op1.
3489 (emit_scc_insn, emit_conditional_branch_insn): New.
3490 (emit_v9_brxx): Make static. Remove useless assertion.
3491 (sparc_emit_float_lib_cmp): Return RTL instead of calling
3492 emit_cmp_insn.
3493 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
3494 * config/sparc/sparc-protos.h (gen_compare_reg,
f90b7a5a
PB
3495 sparc_emit_float_lib_cmp): Adjust prototype.
3496 (emit_scc_insn, emit_conditional_branch_insn): New.
3497 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
fbdf817d
UB
3498 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
3499 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
3500 iterators to the top.
3501 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
3502 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
f90b7a5a 3503 snedi_special_trunc): Delete.
fbdf817d 3504 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
f90b7a5a 3505 and snedi_special_trunc.
fbdf817d
UB
3506 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
3507 cbranchdi4, cbranch<F:mode>4): New.
3508 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
3509 here. Use gen_compare_reg instead of gen_compare_operator.
3510 (conditional_trap): Replace with...
3511 (ctrapsi4, ctrapdi4): ... this.
3512 (stack_protect_test): Use cbranchcc4.
3513
3514 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
3515 argument to rtx.
3516 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
3517 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
3518 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
3519 from operands[0] or operands[3] depending on is_set.
3520 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
3521 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
3522 cmpdf, bCC), sCC: Remove.
3523 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
3524 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
3525 cstoredf4): New.
3526 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
3527 spu_emit_branch_or_set.
3528
3529 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
3530 Add two arguments.
3531 * config/stormy16/stormy16.h (xstormy16_compare_op0,
3532 xstormy16_compare_op1): Delete.
3533 * config/stormy16/stormy16.c (xstormy16_compare_op0,
3534 xstormy16_compare_op1): Delete.
3535 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
3536 Adjust calls.
3537 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
3538 (cmphi, cmpsi, bCC): Remove.
3539
3540 * config/v850/v850.md (tstsi, cmpsi): Fold into...
3541 (*cmpsi): ... this one.
3542 (cbranchsi4, cstoresi4): New.
3543 (bCC expanders): Delete.
3544 (sCC insns): Fold into...
3545 (*setcc): ... this one.
3546 (casesi): Do not use gen_cmpsi and gen_bgtu.
f90b7a5a
PB
3547 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
3548 (movsicc): Simplify.
3549 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
3550
fbdf817d
UB
3551 * config/vax/vax-protos.h (cond_name): New.
3552 (vax_output_conditional_branch): Remove.
3553 * config/vax/vax.c (cond_name): New.
3554 (vax_output_conditional_branch): Remove.
3555 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
3556 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
3557 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
3558 (bit<VAXint>): Wrap source with (compare).
3559 (b<code> and following unnamed pattern): Rename to *branch and
3560 *branch_reversed. Change macroization to match_operator.
3561 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
3562
3563 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
3564 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
3565 Change last argument to machine_mode.
3566 (xtensa_expand_scc): Add machine_mode argument.
3567 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
3568 (gen_conditional_move, xtensa_expand_conditional_branch,
3569 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
3570 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
3571 Adjust operand numbers.
3572 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
3573 Delete.
3574 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
3575 (cmpsi, cmpsf, b<code>, s<code>): Delete.
3576 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
f90b7a5a 3577
16670495
PB
35782009-05-12 Paolo Bonzini <bonzini@gnu.org>
3579
3580 * optabs.c (prepare_cmp_insn): Temporarily disable test that
3581 causes spurious differences between trunk and cond-optab branch.
3582
4a4a4e99
AO
35832009-05-12 Alexandre Oliva <aoliva@redhat.com>
3584
3585 PR target/37137
3586 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
3587
72b9acff
AO
35882009-05-12 Alexandre Oliva <aoliva@redhat.com>
3589
3590 * tree.c (iterative_hash_pointer): Delete.
3591 (iterative_hash_expr): Short-circuit handling of NULL pointer.
3592 Hash UIDs and versions of SSA names. Don't special-case built-in
3593 function declarations.
3594
b7dd69ac
ILT
35952009-05-11 Ian Lance Taylor <iant@google.com>
3596
3597 PR bootstrap/40103
3598 * graphite.c: Force -Wc++-compat to only be a warning before
3599 #including "cloog/cloog.h".
3600
ed102b70
MJ
36012009-05-11 Martin Jambor <mjambor@suse.cz>
3602
3603 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
3604
08f1af2e
JH
36052009-05-11 Jan Hubicka <jh@suse.cz>
3606
3607 * tree-ssa-loop-ivcanon.c: Include target.h
3608 (struct loop_size): new structure.
3609 (constant_after_peeling): New predicate.
3610 (tree_estimate_loop_size): New function.
3611 (estimated_unrolled_size): Rewrite for new estimates.
3612 (try_unroll_loop_completely): Use new estimates.
3613 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
3614
a7d39bd3
AP
36152009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
3616
3617 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
3618 libcpp interface change.
3619 (spu_macro_to_expand): Likewise.
3620
f5a1f0d0
PB
36212009-05-11 Paolo Bonzini <bonzini@gnu.org>
3622
3623 PR tree-optimization/40026
3624 * gimplify.c (gimplify_init_constructor): Change initial conditional
3625 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
3626 optimize_compound_literals_in_ctor.
3627
c260f01f
NS
36282009-05-11 Nathan Sidwell <nathan@codesourcery.com>
3629
3630 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
3631 New devices.
3632 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
3633
df398a37
L
36342009-05-11 H.J. Lu <hongjiu.lu@intel.com>
3635
3636 * tree-vect-data-refs.c (vect_analyze_group_access): Use
3637 HOST_WIDE_INT for gap.
3638
4da39468
IR
36392009-05-11 Ira Rosen <irar@il.ibm.com>
3640
3641 PR tree-optimization/40074
3642 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
3643 account in group size and step comparison.
3644
4effdf02
RG
36452009-05-11 Richard Guenther <rguenther@suse.de>
3646
3647 * passes.c (init_optimization_passes): Strip now incorrect comment.
3648 (execute_function_todo): Do not set PROP_alias.
3649 * tree-pass.h (PROP_alias): Remove.
3650 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
3651 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
3652 * tree-nrv.c (pass_return_slot): Likewise.
3653 * tree-object-size.c (pass_object_sizes): Likewise.
3654 * tree-ssa-dom.c (pass_dominator): Likewise.
3655 (pass_phi_only_cprop): Likewise.
3656 * tree-ssa-dse.c (pass_dse): Likewise.
3657 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
3658 (pass_cselim): Likewise.
3659 * tree-ssa-pre.c (pass_pre): Likewise.
3660 (pass_fre): Likewise.
3661 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
3662 * tree-ssa-sink.c (pass_sink_code): Likewise.
3663 * tree-stdarg.c (pass_stdarg): Likewise.
3664 * tree-tailcall.c (pass_tail_calls): Likewise.
3665 * tree-vrp.c (pass_vrp): Likewise.
3666
24b97832
ILT
36672009-05-10 Ian Lance Taylor <iant@google.com>
3668
3669 * basic-block.h (enum profile_status): Break out of struct
3670 control_flow_graph.
3671 * cgraph.h (struct inline_summary): Break out of struct
3672 cgraph_local_info.
3673 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
3674 of struct cgraph_order_sort.
fbdf817d 3675 * combine.c (enum undo_kind): New enum, broken out of struct undo.
24b97832
ILT
3676 * cse.c (struct branch_path): Break out of struct
3677 cse_basic_block_data.
3678 * except.h (enum eh_region_type): Break out of struct eh_region.
3679 * gcc.c (enum add_del): Break out of struct modify_target.
fbdf817d 3680 * genrecog.c (enum decision_type): Break out of struct decision_test.
24b97832
ILT
3681 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
3682 ggc_pch_data.
fbdf817d
UB
3683 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
3684 * regmove.c (enum match_use): New enum, broken out of struct match.
24b97832
ILT
3685 * sched-int.h (enum post_call_group): New enum, broken out of
3686 struct deps.
3687 (struct deps_reg): Break out of struct deps.
3688 * target.h (struct asm_int_op): Break out of struct gcc_target.
3689 * tree-eh.c (struct goto_queue_node): Break out of struct
3690 leh_tf_state.
3691 * tree-inline.h (enum copy_body_cge_which): Break out of
3692 copy_body_data.
3693 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
3694
3695 * c-decl.c (in_struct, struct_types): New static variables.
3696 (pushtag): Add loc parameter. Change all callers.
3697 (lookup_tag): Add ploc parameter. Change all callers.
3698 (check_compound_literal_type): New function.
3699 (parser_xref_tag): Add loc parameter. Change all callers. If
3700 -Wc++-compat, warn about struct/union/enum types defined within a
3701 struct or union.
3702 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
3703 and loc parameters. Change all callers. Change error calls to
3704 error_at, using loc. For a redefinition, if the location of the
3705 original definition is known, report it. Set in_struct and
fbdf817d 3706 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
24b97832
ILT
3707 (finish_struct): Add new parameters enclosing_in_struct and
3708 enclosing_struct_types. Change all callers. Set
3709 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
3710 in the struct. If in a struct, add this struct to struct_types.
3711 (start_enum): Add loc parameter. Change all callers. Use
3712 error_at for errors, using loc. For a redefinition, if the
3713 location of the original definition is known, report it. If in a
3714 struct, add this enum type to struct_types. If -Wc++-compat warn
3715 if in sizeof, typeof, or alignof.
fbdf817d
UB
3716 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
3717 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
24b97832
ILT
3718 (c_parser_enum_specifier): Get enum location for start_enum.
3719 (c_parser_struct_or_union_specifier): Get struct location for
3720 start_struct. Save in_struct and struct_types status between
3721 start_struct and finish_struct.
3722 (c_parser_cast_expression): Get location of cast.
3723 (c_parser_alignof_expression): Get location of type.
3724 (c_parser_postfix_expression): Likewise.
3725 (c_parser_postfix_expression_after_paren_type): Add type_loc
fbdf817d
UB
3726 parameter. Change all callers. Call check_compound_literal_type.
3727 Use type_loc for error about variable size type.
3728 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
3729 of an enum constant from an enum type defined in a struct or union.
24b97832
ILT
3730 (c_cast_expr): Add loc parameter. Change all callers. If
3731 -Wc++-compat, warn about defining a type in a cast.
3732 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
3733 (start_enum, start_struct, finish_struct): Update declarations.
3734 (parser_xref_tag, c_cast_expr): Update declarations.
3735 (check_compound_literal_type): Declare.
3736
7a2738fa
BE
37372009-05-11 Ben Elliston <bje@au.ibm.com>
3738
3739 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
3740 for recent libcpp interface change.
3741 (rs6000_macro_to_expand): Likewise.
3742
af618949
MM
37432009-05-10 Michael Matz <matz@suse.de>
3744
3745 PR target/40031
3746 * config/arm/arm.c (require_pic_register): Emit on entry edge,
3747 not at entry of function.
3748
b7d7a473
RG
37492009-05-10 Richard Guenther <rguenther@suse.de>
3750
3751 PR tree-optimization/40081
3752 Revert
3753 * tree-sra.c (instantiate_element): Instantiate scalar replacements
3754 using the main variant of the element type. Do not fiddle with
3755 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
3756
3757 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
3758 structs with volatile fields.
3759
078c3644
JH
37602009-05-10 Jan Hubicka <jh@suse.cz>
3761
3762 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
fbdf817d
UB
3763 (estimate_move_cost): Assert that it does not get called for
3764 VOID_TYPE_P.
078c3644
JH
3765 (estimate_num_insns): Skip VOID types in argument handling.
3766 (optimize_inline_calls): Delete unreachable blocks and verify that
3767 callgraph is valid.
3768
39ff5a96
JH
37692009-05-10 Jan Hubicka <jh@suse.cz>
3770
3771 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
3772 * cgraph.c (cgraph_mark_address_taken_node): New function.
3773 (dump_cgraph_node): Dump new flag.
3774 * cgraph.h (struct cgraph_node): Add address_taken.
3775 (cgraph_mark_address_taken_node): New function.
39ff5a96
JH
3776 * ipa.c (cgraph_postorder): Prioritize functions with address taken
3777 since new direct calls can be born.
3778
9a0c6187
JM
37792009-05-10 Joseph Myers <joseph@codesourcery.com>
3780
3781 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
3782 tok->val.node.node.
3783
4b685e14
JH
37842009-05-10 Jan Hubicka <jh@suse.cz>
3785
3786 PR middle-end/40084
fb0be169
EB
3787 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
3788 argument; rewrite.
4b685e14
JH
3789 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
3790 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
3791 * tree-inline.c (copy_bb): Set frequency correctly.
fb0be169
EB
3792 (fold_marked_statements): Update call to
3793 cgraph_update_edges_for_call_stmt.
4b685e14 3794
29d08eba
JM
37952009-05-10 Joseph Myers <joseph@codesourcery.com>
3796
3797 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
3798 identifiers in diagnostics.
3799 * config/arm/arm.c (arm_handle_fndecl_attribute,
3800 arm_handle_isr_attribute): Likewise.
3801 * config/avr/avr.c (avr_handle_progmem_attribute,
782dc37a 3802 avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
29d08eba
JM
3803 * config/bfin/bfin.c (handle_int_attribute,
3804 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
3805 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
3806 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
3807 Likewise.
3808 * config/darwin.c (darwin_handle_kext_attribute,
3809 darwin_handle_weak_import_attribute): Likewise.
3810 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
3811 h8300_handle_eightbit_data_attribute,
3812 h8300_handle_tiny_data_attribute): Likewise.
3813 * config/i386/i386.c (ix86_handle_cconv_attribute,
782dc37a 3814 ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
29d08eba
JM
3815 * config/i386/winnt.c (ix86_handle_shared_attribute,
3816 ix86_handle_selectany_attribute): Likewise.
3817 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
3818 * config/m32c/m32c.c (function_vector_handler): Likewise.
3819 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
3820 m68hc11_handle_fntype_attribute): Likewise.
3821 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
3822 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
3823 * config/mips/mips.c (mips_insert_attributes,
3824 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
3825 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
3826 rs6000_handle_struct_attribute): Likewise.
3827 * config/sh/sh.c (sh_insert_attributes,
3828 sh_handle_resbank_handler_attribute,
3829 sh_handle_interrupt_handler_attribute,
3830 sh2a_handle_function_vector_handler_attribute,
3831 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
3832 Likewise.
3833 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
3834 * config/spu/spu.c (spu_handle_fndecl_attribute,
3835 spu_handle_vector_attribute): Likewise.
3836 * config/stormy16/stormy16.c
3837 (xstormy16_handle_interrupt_attribute): Likewise.
3838 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
3839 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
3840
f41c4af3
JM
38412009-05-10 Joseph Myers <joseph@codesourcery.com>
3842
782dc37a 3843 * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
f41c4af3
JM
3844 (pp_translate_identifiers): New.
3845 (pp_identifier): Only conditionally translate identifier to locale
3846 character set.
3847 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
3848 (pp_base_tree_identifier): Only conditionally translate identifier
3849 to locale character set.
3850 * c-pretty-print.c (M_): Define.
3851 (pp_c_type_specifier, pp_c_primary_expression): Mark English
3852 fragments for conditional translation with M_.
3853 * tree-pretty-print.c (maybe_init_pretty_print): Disable
3854 identifier translation.
3855
896d7dbd
RG
38562009-05-10 Richard Guenther <rguenther@suse.de>
3857
3858 PR tree-optimization/40081
3859 * tree-sra.c (instantiate_element): Instantiate scalar replacements
3860 using the main variant of the element type. Do not fiddle with
3861 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
3862
9a23acef
JH
38632009-05-09 Jan Hubicka <jh@suse.cz>
3864
3865 PR middle-end/40080
3866 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
3867 indirect calls; verify cgraph afterwards.
3868
d563610d
JH
38692009-05-09 Jan Hubicka <jh@suse.cz>
3870
3871 PR bootstrap/40082
3872 * ipa.c (update_inlined_to_pointer): New function.
3873 (cgraph_remove_unreachable_nodes): Use it.
3874
f08a18d0
JH
38752009-05-09 Jan Hubicka <jh@suse.cz>
3876
3877 * tree-eh.c (struct leh_state): Remove prev_try.
3878 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
3879 not track prev_try.
3880 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
3881 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
3882 remove_eh_handler_and_replace, foreach_reachable_handler,
3883 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
3884 * except.h (struct eh_region): Remove eh_region_u_cleanup.
3885 (gen_eh_region_cleanup): Update prototype.
3886
0afd7219
JH
38872009-05-09 Jan Hubicka <jh@suse.cz>
3888
3889 PR middle-end/40043
3890 * except.c (copy_eh_region): Always set prev_try.
3891 (redirect_eh_edge_to_label): Find outer try.
3892 (foreach_reachable_handler): When looking for prev try
3893 handle case where previous try is not going to be taken.
3894
ad6c0864
MM
38952009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
3896
3897 PR tree-optimization/40049
3898 * tree-vect-stmts.c (vectorizable_operation): If the machine has
3899 only vector/vector shifts, convert the type of the constant to the
3900 appropriate type to avoid building incorrect trees, which
3901 eventually have problems with garbage collection.
3902
c94f9067
JM
39032009-05-08 Joseph Myers <joseph@codesourcery.com>
3904
3905 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
3906 -1 for complex floating-point types if honoring signed zeros.
3907
9187e02d
JH
39082009-05-08 Jan Hubicka <jh@suse.cz>
3909
20acb8a2
EB
3910 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
3911 argument; handle correctly when profile is absent.
9187e02d
JH
3912 (build_cgraph_edges): Update.
3913 (rebuild_cgraph_edges): Update.
20acb8a2
EB
3914 * cgraph.c: Do not include varray.h.
3915 (cgraph_set_call_stmt_including_clones): New function.
3916 (cgraph_create_edge_including_clones): Likewise
3917 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
9187e02d
JH
3918 (cgraph_update_edges_for_call_stmt): Handle clones.
3919 (cgraph_remove_node): Handle clone tree.
3920 (cgraph_remove_node_and_inline_clones): New function.
3921 (dump_cgraph_node): Dump clone tree.
3922 (cgraph_clone_node): Handle clone tree.
20acb8a2 3923 (clone_function_name): Bring here from tree-inline.c.
9187e02d 3924 (cgraph_create_virtual_clone): New function.
20acb8a2
EB
3925 * cgraph.h (ipa_replace_map): Move here from ipa.h.
3926 (cgraph_clone_info): New function.
9187e02d 3927 (strut cgraph_node): Add clone_info and new clone tree pointers.
20acb8a2
EB
3928 (cgraph_remove_node_and_inline_clones,
3929 cgraph_set_call_stmt_including_clones,
3930 cgraph_create_edge_including_clones,
3931 cgraph_create_virtual_clone): Declare.
9187e02d
JH
3932 (cgraph_function_versioning): Use VEC argument.
3933 (compute_call_stmt_bb_frequency): Update prototype.
3934 (cgraph_materialize_all_clones): New function.
3935 * ipa-cp.c (ipcp_update_cloned_node): Remove.
3936 (ipcp_create_replace_map): Update to VECtors.
3937 (ipcp_update_callgraph): Use virtual clones.
3938 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
3939 (ipcp_update_profiling): Do not update local profiling.
3940 (ipcp_insert_stage): Use VECtors and virtual clones.
3941 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
3942 (clone_of_p): New function.
3943 (cgraph_preserve_function_body_p): Use clone tree.
3944 (cgraph_optimize): Materialize clones.
3945 (cgraph_function_versioning): Update for VECtors.
3946 (save_inline_function_body): Use clone tree.
20acb8a2
EB
3947 (cgraph_materialize_clone): New function.
3948 (cgraph_materialize_all_clones): Likewise.
9187e02d
JH
3949 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
3950 * ipa.c: Include gimple.h.
3951 (cgraph_remove_unreachable_nodes): Use clone tree.
20acb8a2
EB
3952 * ipa-prop.c (ipa_note_param_call): Update call to
3953 compute_call_stmt_bb_frequencycall.
9187e02d 3954 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
20acb8a2 3955 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
9187e02d
JH
3956 (copy_bb): Handle updating of clone tree; add new edge when new call
3957 appears.
3958 (expand_call_inline): Be strict about every call having edge.
3959 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
3960 (delete_unreachable_blocks_update_callgraph): New function.
20acb8a2
EB
3961 (tree_function_versioning): Use VECtors; always remove unreachable
3962 blocks and fold conditionals.
3963 * tree-inline.h: Do not include varray.h.
9187e02d
JH
3964 (tree_function_versioning): Remove.
3965 * Makefile.in (GTFILES): Remove tree-inline.c
3966 * passes.c (do_per_function): Do only functions having body.
20acb8a2
EB
3967 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
3968 tree.
9187e02d 3969
9b86d6bb
L
39702009-05-08 H.J. Lu <hongjiu.lu@intel.com>
3971 Andrew Morrow <acm@google.com>
3972
3973 PR c/36892
3974 * c-common.c (c_common_attribute_table): Permit deprecated
3975 attribute to take an optional argument.
3976 (handle_deprecated_attribute): If the optional argument to
3977 __attribute__((deprecated)) is not a string ignore the attribute
3978 and emit a warning.
3979
3980 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
3981 * c-typeck.c (build_component_ref): Likewise.
3982 (build_external_ref): Likewise.
3983
3984 * toplev.c (warn_deprecated_use): Add an attribute argument.
3985 Emit the message associated with __attribute__((deprecated)).
3986
3987 * toplev.h (warn_deprecated_use): Updated.
3988
3989 * doc/extend.texi: Document new optional parameter to
3990 __attribute__((deprecated))
3991
82ad047f
ME
39922009-05-08 Michael Eager <eager@eagercon.com>
3993
3994 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
3995 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
3996
788d3075
RG
39972009-05-08 Richard Guenther <rguenther@suse.de>
3998
3999 PR tree-optimization/40062
4000 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
4001 Avoid exponential behavior.
4002
00952e97
PB
40032009-05-08 Paolo Bonzini <bonzini@gnu.org>
4004
4005 PR rtl-optimization/33928
4006 PR 26854
4007 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
4008 process_uses, build_single_def_use_links): New.
4009 (update_df): Update use_def_ref.
4010 (forward_propagate_into): Use get_def_for_use instead of use-def
4011 chains.
4012 (fwprop_init): Call build_single_def_use_links and let it initialize
4013 dataflow.
4014 (fwprop_done): Free use_def_ref.
4015 (fwprop_addr): Eliminate duplicate call to df_set_flags.
4016 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
4017 df_rd_simulate_one_insn): New.
4018 (df_rd_bb_local_compute_process_def): Update head comment.
4019 (df_chain_create_bb): Use the new RD simulation functions.
4020 * df.h (df_rd_simulate_artificial_defs_at_top,
4021 df_rd_simulate_one_insn): New.
4022 * opts.c (decode_options): Enable fwprop at -O1.
4023 * doc/invoke.texi (-fforward-propagate): Document this.
4024
2ca862e9
JM
40252009-05-08 Joseph Myers <joseph@codesourcery.com>
4026
4027 PR c/24581
4028 * c-typeck.c (build_binary_op): Handle arithmetic between one real
4029 and one complex operand specially.
4030 * tree-complex.c (some_nonzerop): Do not identify a real value as
4031 zero if flag_signed_zeros.
4032
3e807ffc
PB
40332009-05-08 Paolo Bonzini <bonzini@gnu.org>
4034
4035 PR rtl-optimization/33928
7925c06c 4036 * loop-invariant.c (record_use): Fix && vs. || mishap.
3e807ffc 4037
1bfdbb29
PB
40382009-05-08 Paolo Bonzini <bonzini@gnu.org>
4039
4040 PR rtl-optimization/33928
e913423f
EB
4041 * loop-invariant.c (struct use): Add addr_use_p.
4042 (struct def): Add n_addr_uses.
4043 (struct invariant): Add cheap_address.
4044 (create_new_invariant): Set cheap_address.
4045 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
4046 (record_uses): Pass df_ref to record_use.
4047 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
4048 used only as such.
1bfdbb29 4049
702cb2a0
KK
40502009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
4051
4052 * config/sh/sh.c: Do not include c-pragma.h.
4053
5e8df753
AP
40542009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
4055
4056 * config/spu/spu.c: Remove include of c-common.h.
4057
6ec637a4
JJ
40582009-05-07 Janis Johnson <janis187@us.ibm.com>
4059
4060 PR c/39037
4061 * c-common.h (mark_valid_location_for_stdc_pragma,
4062 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
4063 clear_float_const_decimal64, float_const_decimal64_p): New.
4064 * c.opt (Wunsuffixed-float-constants): New.
4065 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
4066 unsuffixed float constant, handle new warning.
4067 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
4068 * c-decl.c (c_scope): New flag float_const_decimal64.
4069 (set_float_const_decimal64, clear_float_const_decimal64,
4070 float_const_decimal64_p): New.
4071 (push_scope): Set new flag.
4072 * c-parser.c (c_parser_translation_unit): Mark when it's valid
4073 to use STDC pragmas.
4074 (c_parser_external_declaration): Ditto.
4075 (c_parser_compound_statement_nostart): Ditto.
4076 * c-pragma.c (valid_location_for_stdc_pragma,
4077 mark_valid_location_for_stdc_pragma,
4078 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
4079 handle_pragma_float_const_decimal64): New.
4080 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
4081 * cp/semantics.c (valid_location_for_stdc_pragma_p,
4082 set_float_const_decimal64, clear_float_const_decimal64,
4083 float_const_decimal64_p): New dummy functions.
4084 * doc/extend.texi (Decimal Float): Remove statement that the
4085 pragma, and suffix for double constants, are not supported.
4086 * doc/invoke.texi (Warning Options): List new option.
4087 (-Wunsuffixed-float-constants): New.
4088
45b9b2e9
SB
40892009-05-08 Steven Bosscher <steven@gcc.gnu.org>
4090
4091 * config/i386/i386.c: Do not include c-common.h.
4092
e71da632
MH
40932009-05-07 Mark Heffernan <meheff@google.com>
4094
4095 * doc/invoke.texi (Debugging Options): Document change of debugging
4096 dump location.
e913423f 4097 * opts.c (decode_options): Make dump_base_name relative to
e71da632
MH
4098 aux_base_name directory.
4099
fe4c7bc6
HS
41002009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
4101
4102 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
4103 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
4104
3b3e44eb
RAE
41052009-05-07 Rafael Avila de Espindola <espindola@google.com>
4106
4107 * Makefile.in (install-plugin): Simplify a bit.
4108
fac41238
PB
41092009-05-07 Paolo Bonzini <bonzini@gnu.org>
4110
4111 * Makefile.in (OBJS-common): Add regcprop.o.
4112 (regcprop.o): New.
4113 * timevar.def (TV_CPROP_REGISTERS): New.
4114 * regrename.c (regrename_optimize): Return 0.
4115 (rest_of_handle_regrename): Delete.
4116 (pass_rename_registers): Point to regrename_optimize.
4117 (struct value_data_entry, struct value_data,
4118 kill_value_one_regno, kill_value_regno, kill_value,
4119 set_value_regno, init_value_data, kill_clobbered_value,
4120 kill_set_value, kill_autoinc_value, copy_value,
4121 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
4122 replace_oldest_value_reg, replace_oldest_value_addr,
4123 replace_oldest_value_mem, copyprop_hardreg_forward_1,
4124 debug_value_data, validate_value_data): Move...
4125 * regcprop.c: ... here.
4126 (rest_of_handle_cprop): Delete.
4127 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
4128
472e0df9
JJ
41292009-05-07 Jakub Jelinek <jakub@redhat.com>
4130
4131 PR middle-end/40057
4132 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
4133 GEN_INT for 1 << bitnum.
4134 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
4135 build_int_cst_type.
4136
0d50d55a
UB
41372009-05-07 Uros Bizjak <ubizjak@gmail.com>
4138
4139 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
7925c06c 4140 Remove wrong description of "nand" operation.
0d50d55a 4141
22f597f1
RG
41422009-05-06 Richard Guenther <rguenther@suse.de>
4143 Adam Nemet <anemet@caviumnetworks.com>
4144
4145 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
4146 comment. Add that if LHS is not a gimple register, then RHS1 has
4147 to be a single object (GIMPLE_SINGLE_RHS).
4148
641cac0b
AN
41492009-05-06 Adam Nemet <anemet@caviumnetworks.com>
4150
4151 * expr.c (get_def_for_expr): Move it up in the file.
4152 (store_field): When expanding a bit-field store, look at the
4153 defining gimple stmt for the masking conversion.
4154
5a5c6435
JJ
41552009-05-06 Janis Johnson <janis187@us.ibm.com>
4156
4157 PR middle-end/39986
4158 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
4159 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
4160 32-bit memcpy into long.
4161
96474f36
JJ
41622009-05-06 Jakub Jelinek <jakub@redhat.com>
4163
4164 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
4165 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
4166 new_reg_loc_descr.
4167 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
4168 instead of appending DW_OP_deref*.
4169
529ff441
MM
41702009-05-06 Michael Matz <matz@suse.de>
4171
4172 PR middle-end/40021
4173 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
4174 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
4175
9419a9fd
RAE
41762009-05-06 Rafael Avila de Espindola <espindola@google.com>
4177
4178 * Makefile.in (install-plugin): Fix srcdir handling.
4179
fff1894c
AB
41802009-05-06 Andrey Belevantsev <abel@ispras.ru>
4181
4182 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
4183 when processing for not_regs_needed bitmap.
4184 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
4185 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
4186 handling it for rhs.
4187
700ae70c
L
41882009-05-06 H.J. Lu <hongjiu.lu@intel.com>
4189
ab3426a7 4190 * config/i386/i386.md (unnamed inc/dec peephole): Use
aa016ff7 4191 optimize_insn_for_size_p instead of optimize_size.
700ae70c
L
4192 * config/i386/predicates.md (incdec_operand): Likewise.
4193 (aligned_operand): Likewise.
4194 * config/i386/sse.md (divv8sf3): Likewise.
4195 (sqrtv8sf2): Likewise.
4196
67341fb5
L
41972009-05-06 H.J. Lu <hongjiu.lu@intel.com>
4198
4199 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
4200
4201 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
4202
87946f42
L
42032009-05-06 H.J. Lu <hongjiu.lu@intel.com>
4204
4205 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
4206 ssemodesuffixf2c with avxmodesuffixf2c.
4207
1202aec1
JM
42082009-05-06 Joseph Myers <joseph@codesourcery.com>
4209
4210 PR c/40032
aa016ff7 4211 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
1202aec1 4212
6e57a01d
JJ
42132009-05-05 Jakub Jelinek <jakub@redhat.com>
4214
4215 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
4216 (struct tree_base): Adjust spacing for 8 bit boundaries.
4217 (struct tree_decl_common): Add decl_by_reference_flag bit.
4218 (DECL_BY_REFERENCE): Adjust.
4219 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
4220 print DECL_BY_REFERENCE bit.
4221 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
4222 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
4223 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
4224 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
4225 unconditionally.
4226
32f579f6
JJ
4227 PR middle-end/39666
4228 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
4229 range of the type, but default label is missing, add it with one
4230 of the existing labels instead of adding a new label for it.
4231
617ab743
JM
42322009-05-05 Joseph Myers <joseph@codesourcery.com>
4233
4234 * dwarf.h: Remove.
4235
bf016de8
RAE
42362009-05-05 Rafael Avila de Espindola <espindola@google.com>
4237
4238 * Makefile.in (enable_plugin, plugin_includedir): New.
4239 (install): Depend on install-plugin.
4240 (PLUGIN_HEADERS): New.
4241 (install-plugin): New.
4242 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
4243
7f8fdb9f
RG
42442009-05-05 Richard Guenther <rguenther@suse.de>
4245
4246 PR tree-optimization/40022
4247 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
4248 the only vuse.
4249 (phivn_valid_p): Fix tuplification error, simplify.
4250 (phiprop_insert_phi): Add dumps.
4251 (propagate_with_phi): Simplify.
4252
8d972839
RG
42532009-05-05 Richard Guenther <rguenther@suse.de>
4254
4255 PR middle-end/40023
aa016ff7 4256 * builtins.c (gimplify_va_arg_expr): Properly build the address.
8d972839 4257
66ba9b0b
SZ
42582009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
4259
4260 * tree.h (strip_float_extensions): Remove duplicate declaration.
aa016ff7
UB
4261 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
4262 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
4263 block_ultimate_origin): Rearrange the declarations line to match the
4264 comment that indicates the .c file which the functions are defined.
4265 (dwarf2out_*, set_decl_rtl): Add comment.
4266 (get_base_address): Adjust comment.
4267 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
4268 declarations line and add comment.
4269 (is_builtin_name): Add blank after function name, for clarity.
66ba9b0b 4270
4f1e4960
JM
42712009-05-04 Joseph Myers <joseph@codesourcery.com>
4272
4273 * attribs.c (decl_attributes): Use %qE for identifiers in
4274 diagnostics.
4275 * cgraphunit.c (verify_cgraph_node): Translate function names to
4276 locale character set in diagnostics.
4277 * coverage.c (get_coverage_counts): Use %qE for identifiers in
4278 diagnostics.
4279 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
4280 Document that functions are named in UTF-8.
4281 * expr.c (expand_expr_real_1): Translate function names to locale
4282 character set in diagnostics.
4283 * gimplify.c (omp_notice_variable, omp_is_private,
4284 gimplify_scan_omp_clauses): Use %qE for identifiers in
4285 diagnostics.
4286 * langhooks.c (lhd_print_error_function): Translate function names
4287 to locale character set.
4288 * langhooks.h (decl_printable_name): Document that return value is
4289 in internal character set.
4290 * stmt.c: Include pretty-print.h
4291 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
4292 diagnostics.
4293 (resolve_operand_name_1): Translate named operand name to locale
4294 character set.
4295 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
4296 diagnostics.
4297 * toplev.c (announce_function): Translate function names to locale
4298 character set.
4299 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
4300 (default_tree_printer): Use pp_identifier or translate identifiers
4301 to locale character set. Mark "<anonymous>" for translation.
4302 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
4303 for identifiers in diagnostics.
4304 * tree.c (handle_dll_attribute): Use %qE for identifiers in
4305 diagnostics.
4306 * varasm.c (output_constructor): Use %qE for identifiers in
4307 diagnostics.
4308
40540e68
RAE
43092009-05-04 Rafael Avila de Espindola <espindola@google.com>
4310
4311 * configure.ac: use ` ` instead of $()
4312 * configure: Regenerate.
4313
33fc884c
BE
43142009-05-05 Ben Elliston <bje@au.ibm.com>
4315
4316 * config/pa/linux-atomic.c: Eliminate conditional include of
4317 errno.h on non-LP64 systems to simplify build requirements.
4318
88388a52
JM
43192009-05-04 Joseph Myers <joseph@codesourcery.com>
4320
4321 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
4322 diagnostics.
4323 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
4324 and pass value to identifier_to_locale.
4325 (warn_variable_length_array): Make name a tree.
4326 (grokdeclarator): Separate diagnostic texts for named and unnamed
4327 declarators. Use %qE for named declarators.
4328 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
4329 diagnostics.
4330 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
4331 identifiers in diagnostics.
4332 * c-typeck.c (push_member_name, start_init): Pass identifiers to
4333 identifier_to_locale. Mark "anonymous" strings for translation.
4334
960c5c79
ME
43352009-05-04 Michael Eager <eager@eagercon.com>
4336
4337 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
aa016ff7 4338 address for DImode/DFmode only if double-precision FP regs.
960c5c79 4339
d083fbba
ME
43402009-05-04 Michael Eager <eager@eagercon.com>
4341
4342 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
4343 TARGET_SINGLE_FLOAT check.
4344
c3ba8d32
ME
43452009-05-04 Michael Eager <eager@eagercon.com>
4346
4347 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
4348
edce9f18
ME
43492009-05-04 Michael Eager <eager@eagercon.com>
4350
4351 * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
4352 * config/rs6000/t-xilinx: New
4353
506d7b68
PB
43542009-05-04 Paolo Bonzini <bonzini@gnu.org>
4355
e913423f 4356 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
506d7b68
PB
4357 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
4358 * gcc/explow.c (memory_address): Use target hook.
4359 * gcc/targhooks.c (default_legitimize_address): New.
4360 * gcc/targhooks.h (default_legitimize_address): New.
4361 * gcc/target.h (legitimize_address): New.
4362 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
4363 (TARGET_INITIALIZER): Include it.
4364 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
4365
4366 * config/bfin/bfin-protos.h (legitimize_address): Remove.
4367 * config/bfin/bfin.c (legitimize_address): Remove.
4368 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
aa016ff7
UB
4369 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
4370 Remove.
506d7b68
PB
4371 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
4372 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
4373
4374 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
4375 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
4376 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
4377 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
4378 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
4379 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
4380 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
4381 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
4382 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
4383 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
4384 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
4385 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
4386 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
4387 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
4388 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
4389 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
4390 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
4391 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
4392 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
4393 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
4394 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
4395 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
4396 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
4397
4398 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
4399 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
4400 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
4401 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
4402 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
4403 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
4404 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
4405 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
4406 (thumb_legitimize_address): Delete.
4407 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
4408 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
4409 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
4410 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
4411 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
aa016ff7
UB
4412 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
4413 Delete.
4414 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
4415 Delete.
506d7b68
PB
4416
4417 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
4418 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
4419 * config/m32r/m32r.c (m32r_legitimize_address): New.
4420 * config/m68k/m68k.c (m68k_legitimize_address): New.
4421 * config/score/score.c (score_legitimize_address): Standardize.
4422 * config/score/score3.c (score3_legitimize_address): Standardize.
4423 * config/score/score3.h (score3_legitimize_address): Adjust.
4424 * config/score/score7.c (score7_legitimize_address): Standardize.
4425 * config/score/score7.h (score7_legitimize_address): Adjust.
4426 * config/sh/sh.c (sh_legitimize_address): New.
4427 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
4428
4429 * gcc/config/s390/s390.c (legitimize_address): Rename to...
4430 (s390_legitimize_address): ... this.
4431 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
4432 (sparc_legitimize_address): ... this.
4433 * gcc/config/i386/i386.c (legitimize_address): Rename to...
4434 (ix86_legitimize_address): ... this.
4435 * gcc/config/avr/avr.c (legitimize_address): Rename to...
4436 (avr_legitimize_address): ... this.
4437 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
4438 (mn10300_legitimize_address): ... this.
4439 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
4440 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
4441 (alpha_expand_mov): Adjust call.
4442
4443 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
4444 * config/spu/spu.c (spu_legitimize_address): Likewise.
4445 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
4446 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
4447
a3af5087
JM
44482009-05-04 Joseph Myers <joseph@codesourcery.com>
4449
4450 * intl.c (locale_encoding, locale_utf8): New.
4451 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
4452 * intl.h (locale_encoding, locale_utf8): Declare.
4453 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
4454 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
4455 New.
4456 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
4457 argument.
4458 (pp_tree_identifier): Define to call pp_base_tree_identifier.
4459 (pp_base_tree_identifier): Declare as function.
4460 (identifier_to_locale): Declare.
4461 * Makefile.in (pretty-print.o): Update dependencies.
aa016ff7 4462 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
a3af5087 4463
ea5cd5f1
RG
44642009-05-04 Richard Guenther <rguenther@suse.de>
4465
4466 PR middle-end/40015
4467 * builtins.c (fold_builtin_memory_op): Do not decay to element
4468 type if the size matches the whole array.
4469
ddc2690a
KH
44702009-05-04 Kazu Hirata <kazu@codesourcery.com>
4471
4472 * expmed.c (synth_mult): When trying out a shift, pass the result
4473 of a signed shift.
4474
ef268d34
KH
44752009-05-04 Kazu Hirata <kazu@codesourcery.com>
4476
4477 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
4478 (shiftsub1_cost): New.
4479 (init_expmed): Compute shiftsub1_cost.
4480 (synth_mult): Optimize multiplications by constants of the form
4481 -(2^^m-1) for some constant positive integer m.
4482
255d3827
RG
44832009-05-03 Richard Guenther <rguenther@suse.de>
4484
4485 PR c/39983
4486 * c-typeck.c (array_to_pointer_conversion): Do not built
4487 ADDR_EXPRs of arrays of pointer-to-element type.
4488 * c-gimplify.c (c_gimplify_expr): Revert change fixing
4489 up wrong ADDR_EXPRs after-the-fact.
4490 * c-common.c (strict_aliasing_warning): Strip pointer
4491 conversions for obtaining the original type.
4492 * builtins.c (fold_builtin_memset): Handle array types.
4493 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
4494 and array types
4495
16c33770
RG
44962009-05-03 Richard Guenther <rguenther@suse.de>
4497
4498 PR middle-end/23329
4499 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
4500 Do not lose casts from array types with unknown extent to array
4501 types with known extent.
4502 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
4503 alias set compatibility.
4504
62a67c94
MLI
45052009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4506
4507 * flags.h (extra_warnings): Delete.
4508 * toplev.c (process_options): Handle Wuninitialized here.
4509 * opts.c (extra_warnings): Delete.
4510 (set_Wextra): Delete.
4511 (common_handle_option): -Wextra can be handled automatically.
4512 * c-opts.c (c_common_handle_option): Delete obsolete code.
4513 (c_common_post_options): Simplify comment.
4514 * common.opt (W): Add Var.
4515 (Wextra): Add Var.
4516 (Wuninitialized): Initialize to -1.
4517
8c7926c4
AN
45182009-05-03 Adam Nemet <anemet@caviumnetworks.com>
4519 Richard Guenther <rguenther@suse.de>
4520
4521 * expr.c (get_def_for_expr): New function.
4522 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
4523 SSA rather than trees.
4524 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
4525 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
4526
fa5da7de
JM
45272009-05-03 Joseph Myers <joseph@codesourcery.com>
4528
4529 * c-common.c (reswords): Add _Imaginary.
4530 * c-common.c (enum rid): Add RID_IMAGINARY.
4531
2ddd5020
PB
45322009-05-03 Paolo Bonzini <bonzini@gnu.org>
4533
4534 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
4535 Patch by Richard Guenther.
4536
aea88c05
AS
45372009-05-03 Anatoly Sokolov <aesok@post.ru>
4538
4539 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
4540 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
4541 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
4542 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
4543 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
4544 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
4545 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
4546 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
4547 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
4548 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
4549 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
4550 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
4551 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
4552 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
4553 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
4554 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
4555 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
4556 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
4557
85e59f3a
RG
45582009-05-02 Richard Guenther <rguenther@suse.de>
4559
4560 PR tree-optimization/39940
4561 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
4562 doing so.
4563
4636b850
RG
45642009-05-02 Richard Guenther <rguenther@suse.de>
4565
4566 PR middle-end/40001
4567 * tree-ssa.c (execute_update_addresses_taken): Properly check
4568 if we can mark a variable DECL_GIMPLE_REG_P.
4569 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
4570 back to the end of the function.
4571 (is_gimple_reg_type): Remove complex type special casing.
4572 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
4573 if not optimizing.
4574
5e10cb5a
BE
45752009-05-02 Ben Elliston <bje@au.ibm.com>
4576
4577 * doc/collect2.texi (Collect2): Document search path behaviour
4578 when configured with --with-ld.
4579
048bf48b
JH
45802009-05-02 Jan Hubicka <jh@suse.cz>
4581
4582 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
4583 parameter; update callers.
aa016ff7
UB
4584 (coalesce_cost_edge): EH edges are costier because they needs
4585 splitting even if not critical and even more costier when there are
4586 multiple EH predecestors.
048bf48b 4587
d5c5f9ab
JH
45882009-05-02 Jan Hubicka <jh@suse.cz>
4589
4590 * except.c (remove_eh_handler_and_replace): Handle updating after
4591 removing TRY blocks.
4592
2ed1959a
EB
45932009-05-02 Eric Botcazou <ebotcazou@adacore.com>
4594
4595 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
4596
d363a7e7
SB
45972009-05-02 Steven Bosscher <steven@gcc.gnu.org>
4598
4599 * varasm.c: Do not include c-pragma.h.
4600 * attribs.c: Do not incude c-common.h.
4601
9c3d55b4
MM
46022009-05-01 Michael Matz <matz@suse.de>
4603
4604 * calls.c (initialize_argument_information): Handle SSA names like
4605 decls with a non MEM_P DECL_RTL.
4606
ea264ca5
SB
46072009-05-01 Steven Bosscher <steven@gcc.gnu.org>
4608
4609 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
4610 * ipa-utils.c: Likewise.
4611 * ipa-type-escape.c: Likewise.
4612 * cgraphunit.c Do not include c-common.h.
4613 * ipa-pure-const.c: Likewise.
4614 * tree-if-conv.c: Likewise.
4615 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
4616 * ipa-struct-reorg.c: Likewise.
4617 * tree-nomudflap.c: Likewise.
4618 * tree-ssa-structalias.c: Likewise.
4619
6c5d4d1a
SB
46202009-05-01 Steven Bosscher <steven@gcc.gnu.org>
4621
4622 * store-motion.c: Many cleanups to make this pass a first-class
4623 citizen instead of an appendix to gcse load motion. Add TODO list
4624 to make this pass faster/cleaner/better.
4625
4626 (struct ls_expr): Post gcse.c-split cleanups.
4627 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
4628 "stores" field to "avail_stores".
4629 (pre_ldst_mems): Rename to store_motion_mems.
4630 (pre_ldst_table): Rename to store_motion_mems_table.
4631 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
4632 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
4633 (ldst_entry): Rename to st_expr_entry, update users.
4634 (free_ldst_entry): Rename to free_st_expr_entry, update users.
4635 (free_ldst_mems): Rename to free_store_motion_mems, update users.
aa016ff7
UB
4636 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
4637 update caller.
6c5d4d1a
SB
4638 (first_ls_expr): Rename to first_st_expr, update users.
4639 (next_ls_expr): Rename to next_st_expr, update users.
4640 (print_ldst_list): Rename to print_store_motion_mems. Print names of
4641 fields properly for store motion instead of names inherited from load
4642 motion in gcse.c.
4643 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
4644 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
4645 are done with it.
4646
4647 (ae_kill): Rename to st_kill, update users.
4648 (ae_gen): Rename to st_avloc, update users.
4649 (transp): Rename to st_transp, update users.
4650 (pre_insert_map): Rename to st_insert_map, update users.
4651 (pre_delete_map): Rename to st_delete_map, update users.
4652 (insert_store, build_store_vectors, free_store_memory,
4653 one_store_motion_pass): Update for abovementioned changes.
4654
4655 (gcse_subst_count, gcse_create_count): Remove.
4656 (one_store_motion_pass): New statistics counters "n_stores_deleted"
4657 and "n_stores_created", local variables.
4658
4659 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
4660 use for_each_rtx.
4661
4662 (regvec, compute_store_table_current_insn): Remove.
4663 (reg_set_info, reg_clear_last_set): Remove.
4664 (compute_store_table): Use DF caches instead of local dataflow
4665 solvers.
4666
b02cec6e
JM
46672009-05-01 Joseph Myers <joseph@codesourcery.com>
4668
4669 * c-objc-common.c (c_tree_printer): Print identifiers with
4670 pp_identifier, not pp_string. Mark "({anonymous})" for
4671 translation.
4672 * c-pretty-print.c (pp_c_ws_string): New.
4673 (pp_c_cv_qualifier, pp_c_type_specifier,
4674 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
4675 pp_c_storage_class_specifier, pp_c_function_specifier,
4676 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
4677 pp_c_primary_expression, pp_c_postfix_expression,
4678 pp_c_unary_expression, pp_c_shift_expression,
4679 pp_c_relational_expression, pp_c_equality_expression,
4680 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
4681 use pp_string and pp_c_ws_string in place of pp_identifier and
4682 pp_c_identifier for non-identifiers. Mark English strings for
4683 translation.
4684 * c-pretty-print.h (pp_c_ws_string): Declare.
4685
cd533689
PP
46862009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
4687 Roland McGrath <roland@redhat.com>
4688
aa016ff7 4689 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
cd533689
PP
4690 (ENABLE_LD_BUILDID): New configuration option.
4691 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
4692 (LINK_BUILDID_SPEC): New macro.
4693 (init_spec): If defined, prepend it between LINK_EH_SPEC and
4694 link_spec.
4695 * doc/install.texi: Document --enable-linker-build-id option.
4696 * configure: Rebuild.
4697 * config.in: Rebuild.
4698
ba6adec4
AN
46992009-04-30 Adam Nemet <anemet@caviumnetworks.com>
4700
4701 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
4702 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
4703 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
4704 MIPS_GP_SAVE_AREA_SIZE.
4705 * config/mips/mips.c (struct mips_frame_info): Update comment
4706 before arg_pointer_offset and hard_frame_pointer_offset.
4707 (mips_compute_frame_info): Update diagram before function: to
4708 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
4709 indicate the position of frame_pointer_rtx with -fstack-protector and
4710 to show args_size. Don't allocate cprestore area for leaf functions
4711 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
4712 cprestore_size.
4713 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
4714
48f5b722
MM
47152009-04-30 Michael Matz <matz@suse.de>
4716
ba6adec4
AN
4717 PR tree-optimization/39955
4718 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
48f5b722 4719
b65d6744
DK
47202009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
4721
4722 * ira.c (setup_cover_and_important_classes): Use safe macro
4723 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
4724 directly.
4725 * genpreds.c (write_tm_preds_h): Output suitable definition of
4726 REG_CLASS_FOR_CONSTRAINT.
4727
f136c8ae
RAE
47282009-04-30 Rafael Avila de Espindola <espindola@google.com>
4729
4730 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
4731 instead of an int.
4732 * bitmap.c (bitmap_descriptor): Likewise.
4733 * ggc-common.c (loc_descriptor): Likewise.
4734 * varray.c (varray_descriptor): Likewise.
4735 * vec.c (vec_descriptor): Likewise.
4736
43fcece8 47372009-04-30 Eric Botcazou <ebotcazou@adacore.com>
35debead
EB
4738
4739 * Makefile.in (dce.o): Add $(EXCEPT_H).
4740 * dce.c: Include except.h and delete redundant vector definitions.
4741 (deletable_insn_p): Return false for non-call insns that can throw
4742 if DF is running.
4743
df35c271
SB
47442009-04-30 Steven Bosscher <steven@gcc.gnu.org>
4745
4746 * gcse.c (ae_gen): Remove.
4747 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
4748 and make non-static function to make it available in store-motion.c.
4749 Update call sites with search-and-replace.
4750 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
4751 extract_mentioned_regs, extract_mentioned_regs_helper,
4752 find_moveable_store, compute_store_table, load_kills_store, find_loads,
4753 store_killed_in_insn, store_killed_after, store_killed_before,
4754 build_store_vectors, insert_insn_start_basic_block, insert-store,
4755 remove_reachable_equiv_notes, replace_store_insn, delete_store,
4756 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
4757 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
4758 * store-motion.c: ...new file. Also copy data structures from gcse.c
4759 and clean up to remove parts not used by store motion.
4760 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
4761 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
4762
f711a87a
RR
47632009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4764
4765 PR target/38571
4766 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
4767 when optimizing for size.
4768
fa5ed76e
HPN
47692009-04-30 Hans-Peter Nilsson <hp@axis.com>
4770
4771 * gcse.c (gcse_constant_p): Fix typo in last change.
4772
0acbbdb0
RAE
47732009-04-30 Rafael Avila de Espindola <espindola@google.com>
4774
4775 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
4776
82f5c05d
AK
47772009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
4778
4779 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
4780
6d8f135b
JW
47812009-04-29 James E. Wilson <wilson@codesourcery.com>
4782
4783 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
4784 CONST_HIGH_PART result.
4785
c21ca196
AS
47862009-04-29 Anatoly Sokolov <aesok@post.ru>
4787
4788 * config/avr/avr.c (initial_elimination_offset): Rename to
4789 avr_initial_elimination_offset.
4790 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
4791 change return type to bool.
4792 (avr_can_eliminate): New function.
4793 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
4794 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
4795 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
0d50d55a 4796 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
c21ca196
AS
4797 avr_initial_elimination_offset.
4798 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
4799 (avr_initial_elimination_offset): Define.
4800
2a34bece 48012009-04-29 Eric Botcazou <ebotcazou@adacore.com>
aa016ff7 4802 Steven Bosscher <steven@gcc.gnu.org>
2a34bece
EB
4803
4804 PR rtl-optimization/39938
4805 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
4806 * cfgrtl.c: Include insn-attr.h.
4807 (rest_of_pass_free_cfg): New function.
4808 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
4809 * resource.c (init_resource_info): Remove call to df_analyze.
4810
5dc7911e
RG
48112009-04-29 Richard Guenther <rguenther@suse.de>
4812
4813 PR target/39943
4814 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
4815 allow conversion to signed integers.
4816
1fe479fd
RG
48172009-04-29 Richard Guenther <rguenther@suse.de>
4818
4819 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
4820 shifts of floating point vectors if the shift amount is
4821 a constant multiple of the element size.
4822
8e001680
AK
48232009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
4824 Michael Matz <matz@suse.de>
4825
4826 PR middle-end/39927
4827 PR bootstrap/39929
4828 * tree-outof-ssa.c (emit_partition_copy): New function.
4829 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
4830 insert_part_to_rtx_on_edge): Perform the partition base var
4831 copy using emit_partition_copy.
4832 (insert_value_copy_on_edge): Convert constants to the right mode.
4833 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
4834 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
4835
e50e3081
BS
48362009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
4837
4838 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
4839 scan backwards to try to find a constant to initialize it.
4840
4e5d521b
BS
4841 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
4842 insn before the loop_end instruction, don't look past labels.
4843
7c90021d
RG
48442009-04-29 Richard Guenther <rguenther@suse.de>
4845
4846 PR middle-end/39937
4847 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
4848 loose type conversions.
4849 (forward_propagate_addr_expr): Fix tuplification bug. Remove
4850 stmts only if there are no uses of its definition.
4851
97a988bc
BS
48522009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
4853
4854 * config/bfin/bfin.h (splitting_loops): Declare.
4855 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
4856 Reorder bit definitions to be ascending.
4857 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
4858 * config/bfin/bfin.c (splitting_loops): New variable.
4859 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
4860 (struct loop_info): Remove members INIT and LOOP_INIT.
4861 (bfin_optimize_loop): Don't set them. Reorder the code that generates
aa016ff7
UB
4862 the LSETUP sequence. Allow LC to be loaded from any register, but
4863 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
97a988bc
BS
4864 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
4865 set to 1.
4866 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
4867 of reload_completed.
aa016ff7 4868
97a988bc
BS
4869 From Jie Zhang:
4870 * config/bfin/bfin.md (movsi_insn): Refine constraints.
4871
0c463e16
RAE
48722009-04-29 Rafael Avila de Espindola <espindola@google.com>
4873
4874 * Makefile.in (PLUGIN_VERSION_H): New.
4875 (OBJS-common): Remove plugin-version.o.
4876 (plugin.o): Depend on (PLUGIN_VERSION_H).
4877 (plugin-version.o): Remove.
4878 * configure: Regenerate
4879 * configure.ac: Create plugin-version.h.
4880 * gcc-plugin.h (plugin_gcc_version): Remove.
4881 (plugin_default_version_check): Change signature.
4882 * plugin-version.c: Remove.
4883 * plugin.c: Include plugin-version.h.
4884 (str_plugin_gcc_version_name): Remove.
4885 (try_init_one_plugin): Pass gcc version to plugin_init.
4886 (plugin_default_version_check): Both gcc and plugin versions are now
4887 arguments.
4888
307e7eab
BS
48892009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
4890
4891 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
4892 problematic last insns. Test for TYPE_CALL rather than CALL_P.
aa016ff7
UB
4893 Remove special case testing for last insn of inner loops. Don't fail
4894 if the loop ends with a jump, emit an extra nop instead.
307e7eab 4895
c5d96723
BS
4896 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
4897 DREGS rather than comparing directly. Remove code that tries to
4898 account for latencies.
4899
de0b4ad5
RG
49002009-04-29 Richard Guenther <rguenther@suse.de>
4901
4902 PR tree-optimization/39941
4903 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
4904 eliminating an indirect call.
4905
3a19701a
RG
49062009-04-29 Richard Guenther <rguenther@suse.de>
4907
4908 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
4909 parameter. Allow invariants as base if !require_lvalue.
4910 (verify_gimple_assign_single): Adjust.
4911
a0a31d1e
BS
49122009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
4913
4914 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
4915 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
aa016ff7
UB
4916 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
4917 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
a0a31d1e
BS
4918 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
4919 a VEC_SELECT.
aa016ff7
UB
4920 * config/bfin/bfin.c (bfin_expand_builtin,
4921 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
a0a31d1e 4922
795bd26a
RG
49232009-04-28 Richard Guenther <rguenther@suse.de>
4924
4925 * tree-vect-loop.c (get_initial_def_for_induction): Use
4926 correct types for pointer increment.
4927
04be270f
KG
49282009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4929
4930 * toplev.c (print_version): Update GMP version string calculation.
4931
e1a3b85c
EB
49322009-04-28 Eric Botcazou <ebotcazou@adacore.com>
4933
4934 PR rtl-optimization/39938
4935 * resource.c (init_resource_info): Add call to df_analyze.
4936
8224166e
UB
49372009-04-28 Uros Bizjak <ubizjak@gmail.com>
4938
4939 * config/alpha/alpha.md (usegp): Cast the result of
4940 alpha_find_lo_sum_using_gp to enum attr_usegp.
4941 * config/alpha/alpha.c (override_options): Remove end-of-structure
4942 marker element from cpu_table. Use array size of cpu_table to handle
4943 -mcpu and -mtune options.
4944 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
4945
c5f0fe67
JM
49462009-04-28 Joseph Myers <joseph@codesourcery.com>
4947
4948 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
4949 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
4950 tune_32 and tune_64.
4951 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
4952 support on PowerPC.
4953 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
4954 * config/rs6000/option-defaults.h: ... here. New file.
4955 (OPT_64, OPT_32): Define.
4956 (MASK_64BIT): Define to 0 if not already defined.
4957 (OPT_ARCH64, OPT_ARCH32): Define.
4958 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
4959 and tune_64.
4960
0c48a567
RR
49612009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4962
4963 * config/arm/arm.c (arm_override_options): Emit error on using
4964 fpa with AAPCS.
4965
f1028b9d
UB
49662009-04-28 Uros Bizjak <ubizjak@gmail.com>
4967
4968 PR rtl-optimization/39914
4969 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
4970 registers for allocnos created from user-defined variables only
4971 when not optimizing.
4972
e0dd989a
RG
49732009-04-28 Richard Guenther <rguenther@suse.de>
4974
4975 PR middle-end/39937
4976 * fold-const.c (fold_binary): Use distribute_real_division only
4977 on float types.
4978
9a17c91d
SE
49792009-04-28 Steve Ellcey <sje@cup.hp.com>
4980
4981 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
4982 add hpux-stdint.h to tm_file.
4983 (hppa[12]*-*-hpux11*): Ditto.
4984 (ia64*-*-hpux*): Ditto.
4985 * config/hpux-stdint.h: New.
60839f5d 4986 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
9a17c91d 4987 __STDC_EXT__ for all compiles.
60839f5d
EB
4988 * config/pa/pa-hpux.h: Ditto.
4989 * config/pa/pa-hpux10.h: Ditto.
4990 * config/pa/pa-hpux11.h: Ditto.
9a17c91d 4991
af04e659
CM
49922009-04-28 Catherine Moore <clm@codesourcery.com>
4993
4994 * debug.h (set_name): Add comment.
4995
04ef80ce
AP
49962009-04-28 Andrew Pinski <pinskia@gmail.com>
4997
4998 PR target/39929
4999 * config/darwin.c (machopic_gen_offset): Check
5000 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
5001 * config/arm/arm.c (require_pic_register): Likewise.
5002
65ad77af
PB
50032009-04-28 Paolo Bonzini <bonzini@gnu.org>
5004
8224166e
UB
5005 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
5006 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
5007 m32c_promote_prototypes): Delete.
65ad77af 5008
1b15a008
MM
50092009-04-28 Michael Matz <matz@suse.de>
5010
5011 PR middle-end/39922
5012 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
5013 constants.
5014
7569a6cc
RG
50152009-04-28 Richard Guenther <rguenther@suse.de>
5016
f1028b9d 5017 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
7569a6cc 5018
ead204d9
RR
50192009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5020
5021 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
5022 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
5023 * config/arm/arm-tune.md: Regenerate.
5024
f2c45f08 50252009-04-28 Alexander Monakov <amonakov@ispras.ru>
60839f5d 5026
f2c45f08
AM
5027 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
5028 block if there are complex incoming edges.
5029 (sel_merge_blocks): Remove useless assert.
5030 (sel_redirect_edge_and_branch): Check that edge was redirected.
5031 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
5032 (sel_find_rgns): Delete declaration.
5033 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
5034 the region when it is not a preheader.
5035
7a00d767
UB
50362009-04-28 Uros Bizjak <ubizjak@gmail.com>
5037
5038 PR c/39323
5039 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
5040
448ee662
RG
50412009-04-28 Richard Guenther <rguenther@suse.de>
5042
5043 * tree.h (SSA_NAME_VALUE): Remove.
5044 (struct tree_ssa_name): Remove value_handle member.
5045 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
5046 array for jump threading.
5047 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
5048 SSA_NAME_VALUEs.
5049 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
5050 * tree-flow.h (threadedge_initialize_values): Declare.
5051 (threadedge_finalize_values): Likewise.
5052 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
5053 (SSA_NAME_VALUE): Define.
5054 (threadedge_initialize_values): New function.
5055 (threadedge_finalize_values): Likewise.
5056 * tree-ssa-dom.c (ssa_name_values): New global variable.
5057 (SSA_NAME_VALUE): Define.
f1028b9d 5058 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
448ee662 5059
8644a673
IR
50602009-04-28 Ira Rosen <irar@il.ibm.com>
5061
5062 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
5063 Use REPORT_VECTORIZED_LOCATIONS instead
5064 REPORT_VECTORIZED_LOOPS.
5065 * tree-vectorizer.c (vect_verbosity_level): Make static.
5066 (vect_loop_location): Rename to vect_location.
5067 (vect_set_verbosity_level): Update comment.
5068 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
5069 and vect_location.
5070 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
5071 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
5072 instead REPORT_UNVECTORIZED_LOOPS.
fbdf817d
UB
5073 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
5074 and vect_loop_def to vect_external_def and vect_internal_def.
8644a673 5075 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
7a00d767 5076 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
8644a673
IR
5077 REPORT_UNVECTORIZED_LOCATIONS.
5078 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
5079 and vect_used_in_loop and to vect_unused_in_scope and
5080 vect_used_in_scope.
5081 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
5082 (vect_verbosity_level): Remove declaration.
5083 (vect_analyze_operations): Likewise.
5084 (vect_analyze_stmt): Declare.
5085 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
5086 REPORT_UNVECTORIZED_LOCATIONS.
5087 (vect_get_loop_niters): Fix indentation.
5088 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
5089 (vect_analyze_loop_operations): New function.
5090 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
5091 vect_analyze_operations.
5092 (vect_is_simple_reduction): Use new names.
5093 (vectorizable_live_operation, vect_transform_loop): Likewise.
fbdf817d
UB
5094 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
5095 to specify whether the data references can be a part of interleaving
5096 chain.
8644a673
IR
5097 (vect_analyze_data_ref_dependence): Use new names.
5098 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
5099 (vect_create_addr_base_for_vector_ref): Remove redundant code.
5100 * tree-vect-patterns.c (widened_name_p): Use new names.
5101 (vect_recog_dot_prod_pattern): Likewise.
5102 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
5103 (process_use, vect_mark_stmts_to_be_vectorized,
5104 vect_model_simple_cost, vect_model_store_cost,
5105 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
5106 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
5107 vectorizable_operation, vectorizable_type_demotion,
5108 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
5109 vectorizable_condition): Likewise.
5110 (vect_analyze_operations): Split into vect_analyze_loop_operations
5111 and ...
5112 (vect_analyze_stmt): ... new function.
5113 (new_stmt_vec_info): Use new names.
5114 (vect_is_simple_use): Use new names and fix comment.
5115 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
5116 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
5117
b91322f2
UB
51182009-04-28 Uros Bizjak <ubizjak@gmail.com>
5119
5120 PR target/39911
5121 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
5122 and integer modes for x87 operands. Do not ICE for unsupported size,
5123 generate error instead. Generate error for unsupported operand types.
5124 ['z']: Do not handle HImode memory operands specially. Warning
5125 for floating-point operands. Fallthru to 'Z' for unsupported operand
5126 types. Do not ICE for unsupported size, generate error instead.
5127 (output_387_binary_op): Use %Z to output operands.
5128 (output_fp_compare): Ditto.
5129 (output_387_reg_move): Ditto.
5130
b2ed71b6
BE
51312009-04-28 Ben Elliston <bje@au.ibm.com>
5132
5133 PR c++/35652
5134 Revert:
5135
5136 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5137
5138 * builtins.c (c_strlen): Do not warn here.
5139 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
5140 * c-common.c (pointer_int_sum): Take an explicit location.
5141 Warn about offsets out of bounds.
5142 * c-common.h (pointer_int_sum): Adjust declaration.
5143
81f40b79
ILT
51442009-04-27 Ian Lance Taylor <iant@google.com>
5145
5146 * collect2.c (is_ctor_dtor): Change type of ret field in struct
5147 names to symkind.
5148 * dce.c (run_fast_df_dce): Change type of old_flags to int.
5149 * df-core.c (df_set_flags): Change return type to int. Change
5150 type of old_flags to int.
5151 (df_clear_flags): Likewise.
5152 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
5153 (df_get_conditional_uses): Likewise.
5154 * df.h (df_set_flags, df_clear_flags): Update declarations.
5155 * dwarf2out.c (struct indirect_string_node): Change type of form
5156 field to enum dwarf_form.
5157 (AT_string_form): Change return type to enum dwarf_form.
5158 * fixed-value.c (fixed_compare): Add cast to enum type.
5159 * fwprop.c (update_df): Change 0 to VOIDmode.
5160 * gensupport.c: Change 0 to UNKNOWN.
5161 * gimple.h (gimple_cond_code): Add cast to enum type.
5162 * haifa-sched.c (reemit_notes): Add cast to enum type.
5163 * hooks.c (hook_int_void_no_regs): Remove function.
5164 * hooks.h (hook_int_void_no_regs): Remove declaration.
5165 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
7a00d767 5166 * predict.c (combine_predictions_for_insn): Add casts to enum type.
81f40b79
ILT
5167 * real.c (real_arithmetic): Add cast to enum type.
5168 (real_compare): Likewise.
5169 * target.h (struct gcc_target): Change return type of
5170 branch_target_register_class to enum reg_class.
5171 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
5172 default_branch_target_register_class.
7a00d767 5173 * targhooks.c (default_branch_target_register_class): New function.
81f40b79 5174 * targhooks.h (default_branch_target_register_class): Declare.
7a00d767 5175 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
81f40b79
ILT
5176 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
5177 cast to int.
5178 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
5179 ERROR_MARK.
5180 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
5181 vect_uninitialized_def. Change 0 to ERROR_MARK.
5182 * tree-vect-stmts.c (supportable_widening_operation): Don't
5183 initialize icode1 and icode2.
7a00d767 5184 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
81f40b79
ILT
5185 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
5186 and to STD_C89.
5187 (cmn_err_flag_specs): Change 0 to STD_C89.
5188 (cmn_err_char_table): Likewise.
5189 * config/arm/arm.c (get_arm_condition_code): Change type of code
5190 to enum arm_cond_code.
5191 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
5192 (IWMMXT_BUILTIN2): Likewise.
5193 (neon_builtin_type_bits): Don't define typedef.
5194 (neon_builtin_datum): Change type of bits field to int.
5195 (arm_expand_neon_args): Add cast to enum type.
5196 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
5197 TLS_MODEL_NONE.
5198 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
5199 casts to enum type.
5200 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
5201 MIPS_FP_COND_f.
5202 * config/mips/mips.md (jal_macro): Return enum constant.
5203 (single_insn): Likewise.
5204 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
5205 CODE_FOR_nothing.
5206 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5207 casts to enum type.
5208 * config/s390/s390.c (s390_tune_flags): Change type to int.
5209 (s390_arch_flags): Likewise.
7a00d767 5210 (s390_handle_arch_option): Change flags field of struct pta to int.
81f40b79
ILT
5211 * config/s390/s390.h (s390_tune_flags): Update declaration.
5212 (s390_arch_flags): Likewise.
5213 * config/sh/sh.c (prepare_move_operands): Compare
5214 tls_symbolic_operand result with enum constant.
5215 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
5216 (sh_expand_prologue): Add cast to enum type.
5217 (sh_expand_epilogue): Likewise.
5218 (tls_symbolic_operand): Change return type to enum tls_model.
5219 (fpscr_set_from_mem): Add cast to enum type.
5220 (legitimize_pic_address): Compare tls_symbolic_operand result with
5221 enum constant.
5222 (sh_target_reg_class): Change return type to enum reg_class.
5223 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
5224 PROCESSOR_xxx.
7a00d767
UB
5225 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
5226 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
81f40b79
ILT
5227 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
5228 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
5229 (delayed_branch, tls_call_delay): Likewise.
5230 (eligible_for_sibcall_delay): Likewise.
5231 (eligible_for_return_delay): Likewise.
5232 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
5233 (spu_expand_builtin_1): Likewise.
5234
5235 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
5236 for all types of conversions.
5237 (output_init_element): Issue -Wc++-compat warning if needed when
5238 initializing a bitfield with enum type.
5239 * c-parser.c (c_parser_expression): Set original_type to
5240 original_type of right hand operand of comman operator.
5241
e4ae5e77
RW
52422009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5243
5244 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
5245 grammar nits.
7a00d767 5246 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
e4ae5e77
RW
5247 * doc/cpp.texi (Standard Predefined Macros)
5248 (Implementation-defined behavior): Likewise.
7a00d767 5249 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
e4ae5e77
RW
5250 * doc/gimple.texi (GIMPLE Exception Handling)
5251 (@code{GIMPLE_ASSIGN}): Likewise.
7a00d767 5252 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
e4ae5e77
RW
5253 * doc/invoke.texi (Warning Options, Optimize Options)
5254 (AVR Options, Darwin Options): Likewise.
5255 (Optimize Options): Reformulate -fwhole-program description.
5256 * doc/loop.texi (Lambda): Likewise.
5257 * doc/md.texi (Output Template, Define Constraints)
5258 (Standard Names, Insn Splitting): Likewise.
5259 * doc/options.texi (Option properties): Likewise.
5260 * doc/passes.texi (Tree-SSA passes): Likewise.
5261 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
5262 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
5263 (File Names and DBX): Likewise.
5264 * doc/trouble.texi (Incompatibilities): Likewise.
5265
1883802f 52662009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
6e37f6d4
TS
5267
5268 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
5269 instruction is correct.
5270
1883802f 52712009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
5345cf68
TS
5272
5273 Allow non-constant arguments to conversion intrinsics.
5274 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
5275 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
5276 * spu.c (print_operand): Handle 'v' and 'w'.
5277 (exp2_immediate_p, spu_gen_exp2): Define.
5278 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
5279 spu_convtf_1): Update parameter descriptions.
7a00d767 5280 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
5345cf68
TS
5281 * constraints.md ('v', 'w'): New.
5282 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
5283 Remove.
5284 (i2f, I2F): New define_mode_attr.
5285 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
5286 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
5287 fixuns_truncv4sfv4si2): Update to use mode attribute.
5288 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
5289 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
5290 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
5291 patterns for combine.
5292
5f39ad47
SB
52932009-04-27 Steven Bosscher <steven@gcc.gnu.org>
5294
5295 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
5296 (cprop, hoist, pre, store_motion): New debug counters.
5297 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
5298 is not an RTL pass anymore.
5299 (pass_profiling): Remove extern decl for pass removed in 2005.
5300 (pass_gcse, pass_jump_bypass): Remove.
5301 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
5302 to 0 for clean state.
5303 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
5304 * cse.c (gate_handle_cse_after_global_opts,
5305 rest_of_handle_cse_after_global_opts): New functions.
5306 (pass_cse_after_global_opts): New pass, does local CSE.
5307 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
5308 (TV_CPROP): New timevar.
5309 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
5310 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
5311 (gcse_main, recompute_all_luids): Remove.
5312 (compute_hash_table_work): Call max_reg_num instead of reading
5313 max_gcse_regno.
5314 (cprop_jump): Don't set run_jump_opt_after_gcse.
5315 (constprop_register): Always allow to alter jumps.
5316 (cprop_insn): Likewise.
5317 (do_local_cprop): Likewise.
5318 (local_cprop_pass): Likewise. Return non-zero if something changed.
5319 (cprop): Remove function, fold interesting bits into one_cprop_pass.
5320 (find_implicit_sets): Add note about missed optimization opportunity.
5321 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
5322 pass_rtl_cprop execute function.
5323 Don't bother tracking the pass number, each pass gets its own dumpfile
5324 now anyway.
5325 Always allow to alter jumpsand bypass jumps.
5326 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
5327 will just find no suitable set.
5328 (pre_edge_insert): Fix dumping, this function is for PRE only.
5329 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
5330 pass_rtl_pre execute function.
5331 (hoist_code): Return non-zero if something changed. Keep track of
5332 substitutions and insertions for statistics gathering similar to PRE.
5333 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
5334 called from the pass_rtl_hoist execute function. Show pass statistics.
5335 (compute_store_table): Use max_reg_num directly instead of using the
5336 formerly global max_gcse_regno.
5337 (build_store_vectors): Likewise.
5338 (replace_store_insn): Fix dumping.
5339 (store_motion): Rename to ...
5340 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
5341 pass, called from the pass_rtl_store_motion execute function. Keep
5342 track of substitutions and insertions for statistics gathering similar
5343 to PRE.
5344 (bypass_jumps): Remove, fold interesting bits into ...
5345 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
5346 from the pass_rtl_cprop execute function.
5347 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
5348 pass_jump_bypass): Remove.
5349 (gate_handle_gcse, rest_of_handle_gcse): Remove.
5350 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
5351 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
5352 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
5353 (gate_rtl_store_motion, execute_rtl_store_motion,
5354 pass_rtl_store_motion): New.
5355 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
5356 make it clear that -fcse-skip-blocks is a no-op for backward compat.
5357 * passes.c (init_optimization_passes): Remove pass_gcse and
5358 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
5359 and cse_after_global_opts in place of pass_gcse. Schedule cprop
5360 instead of pass_jump_bypass.
5361
c685de4a
RG
53622009-04-27 Richard Guenther <rguenther@suse.de>
5363
5364 PR middle-end/39928
5365 * gimplify.c (gimplify_expr): If we are required to create
5366 a temporary make sure it ends up as register.
5367
72d41f29
L
53682009-04-27 H.J. Lu <hongjiu.lu@intel.com>
5369
5370 PR target/39903
5371 * config/i386/i386.c (construct_container): Don't call
5372 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
5373 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
5374
e97809c6
MM
53752009-04-27 Michael Matz <matz@suse.de>
5376
5377 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
5378 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
5379 * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
5380 (dump_replaceable_exprs): Take a bitmap.
5381 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
5382 array.
5383 (expand_gimple_basic_block): Likewise.
5384 * tree-ssa-ter.c (struct temp_expr_table_d): Make
5385 replaceable_expressions member a bitmap.
5386 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
5387 (mark_replaceable): Likewise.
5388 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
5389 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
5390
211ca15c
RG
53912009-04-27 Richard Guenther <rguenther@suse.de>
5392
5393 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
5394 (verify_stmts): Dispatch to gimple/type verification code.
5395 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
5396 issue with call argument types.
5397
fca5f3d1
MM
53982009-04-27 Michael Matz <matz@suse.de>
5399
5400 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
5401 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
5402 to above.
5403
a1fa3e79 54042009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
8224166e 5405 Eric Botcazou <ebotcazou@adacore.com>
a1fa3e79
EB
5406
5407 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
5408 a label's basic block.
5409 (mark_target_live_regs): Tidy and rework obsolete comments.
5410 Change back DF problem to LIVE. If a label starts a basic block,
5411 assume that all registers that used to be live then still are.
5412 (init_resource_info): If a label starts a basic block, set its
5413 BLOCK_FOR_INSN accordingly.
5414 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
5415
33b223c0
RG
54162009-04-27 Richard Guenther <rguenther@suse.de>
5417
5418 * tree-flow-inline.h (function_ann): Remove.
5419 (get_function_ann): Likewise.
5420 * tree-dfa.c (create_function_ann): Remove.
5421 * tree-flow.h (struct static_var_ann_d): Remove.
5422 (struct function_ann_d): Likewise.
5423 (union tree_ann_d): Remove fdecl member.
5424 (function_ann_t): Remove.
5425 (function_ann, get_function_ann, create_function_ann): Remove
5426 declarations.
5427
e3136fa2
UB
54282009-04-27 Uros Bizjak <ubizjak@gmail.com>
5429
5430 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
5431
f87c9042
JH
54322009-04-27 Jan Hubicka <jh@suse.cz>
5433
5434 * ipa-pure-const.c (struct funct_state_d): New fields
5435 state_previously_known, looping_previously_known; remove
5436 state_set_in_source.
5437 (analyze_function): Use new fields.
5438 (propagate): Avoid assumption that state_set_in_source imply
5439 nonlooping.
5440
5441 * tree-ssa-loop-niter.c (finite_loop_p): New function.
5442 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
5443 * cfgloop.h (finite_loop_p): Declare.
5444
33abd718
MM
54452009-04-26 Michael Matz <matz@suse.de>
5446
e3136fa2 5447 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
33abd718 5448
ddc34084
MM
54492009-04-26 Michael Matz <matz@suse.de>
5450
5451 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
5452 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
5453 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
5454 pass_mark_used_blocks): Remove.
5455 * tree-optimize.c (pass_free_datastructures,
5456 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
5457 * passes.c (init_optimization_passes): Don't call
5458 pass_mark_used_blocks, remove dead code.
5459
1fec7ed4
L
54602009-04-26 H.J. Lu <hongjiu.lu@intel.com>
5461
5462 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
5463 * tree-ssa-live.h (register_ssa_partition): Likewise.
5464
4e3825db
MM
54652009-04-26 Michael Matz <matz@suse.de>
5466
5467 Expand from SSA.
5468 * builtins.c (fold_builtin_next_arg): Handle SSA names.
5469 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
5470 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
5471 SSA names.
5472 (compare_pairs): Swap cost comparison.
5473 (coalesce_ssa_name): Don't use change_partition_var.
5474 * tree-nrv.c (struct nrv_data): Add modified member.
5475 (finalize_nrv_r): Set it.
5476 (tree_nrv): Use it to update statements.
5477 (pass_nrv): Require PROP_ssa.
5478 * tree-mudflap.c (mf_decl_cache_locals,
5479 mf_build_check_statement_for): Use make_rename_temp.
5480 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
5481 * alias.c (find_base_decl): Handle SSA names.
5482 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
5483 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
5484 * rtl.h (set_reg_attrs_for_parm): Declare.
5485 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
5486 to "optimized", remove unused locals at finish.
5487 (execute_free_datastructures): Make global, call
5488 delete_tree_cfg_annotations.
5489 (execute_free_cfg_annotations): Don't call
5490 delete_tree_cfg_annotations.
5491
5492 * ssaexpand.h: New file.
5493 * expr.c (toplevel): Include ssaexpand.h.
e3136fa2 5494 (expand_assignment): Handle SSA names the same as register variables.
4e3825db
MM
5495 (expand_expr_real_1): Expand SSA names.
5496 * cfgexpand.c (toplevel): Include ssaexpand.h.
5497 (SA): New global variable.
5498 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
5499 (SSAVAR): New macro.
5500 (set_rtl): New helper function.
5501 (add_stack_var): Deal with SSA names, use set_rtl.
5502 (expand_one_stack_var_at): Likewise.
5503 (expand_one_stack_var): Deal with SSA names.
5504 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
5505 before unique numbers.
5506 (expand_stack_vars): Use set_rtl.
5507 (expand_one_var): Accept SSA names, add asserts for them, feed them
5508 to above subroutines.
5509 (expand_used_vars): Expand all partitions (without default defs),
5510 then only the local decls (ignoring those expanded already).
5511 (expand_gimple_cond): Remove edges when jumpif() expands an
5512 unconditional jump.
5513 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
5514 or remove abnormal edges. Ignore insns setting the LHS of a TERed
5515 SSA name.
5516 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
5517 members of SA; deal with PARM_DECL partitions here; expand
5518 all PHI nodes, free tree datastructures and SA. Commit instructions
5519 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
5520 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
5521 info and statements at start, collect garbage at finish.
5522 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
5523 (VAR_ANN_PARTITION) Remove.
5524 (change_partition_var): Don't declare.
5525 (partition_to_var): Always return SSA names.
5526 (var_to_partition): Only accept SSA names.
5527 (register_ssa_partition): Only check argument.
5528 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
5529 member.
5530 (delete_var_map): Don't free it.
5531 (var_union): Only accept SSA names, simplify.
5532 (partition_view_init): Mark only useful SSA names as used.
5533 (partition_view_fini): Only deal with SSA names.
5534 (change_partition_var): Remove.
5535 (dump_var_map): Use ssa_name instead of partition_to_var member.
5536 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
5537 basic blocks.
5538 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
5539 (struct _elim_graph): New member const_dests; nodes member vector of
5540 ints.
5541 (set_location_for_edge): New static helper.
5542 (create_temp): Remove.
5543 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
e3136fa2 5544 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
4e3825db
MM
5545 (new_elim_graph): Allocate const_dests member.
5546 (clean_elim_graph): Truncate const_dests member.
5547 (delete_elim_graph): Free const_dests member.
5548 (elim_graph_size): Adapt to new type of nodes member.
5549 (elim_graph_add_node): Likewise.
5550 (eliminate_name): Likewise.
5551 (eliminate_build): Don't take basic block argument, deal only with
5552 partition numbers, not variables.
5553 (get_temp_reg): New static helper.
5554 (elim_create): Use it, deal with RTL temporaries instead of trees.
5555 (eliminate_phi): Adjust all calls to new signature.
5556 (assign_vars, replace_use_variable, replace_def_variable): Remove.
5557 (rewrite_trees): Only do checking.
5558 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
5559 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
5560 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
5561 contains_tree_r, MAX_STMTS_IN_LATCH,
5562 process_single_block_loop_latch, analyze_edges_for_bb,
5563 perform_edge_inserts): Remove.
5564 (expand_phi_nodes): New global function.
5565 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
5566 functions, initialize new parameter, remember partitions having a
5567 default def.
5568 (finish_out_of_ssa): New global function.
5569 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
5570 don't reset in_ssa_p here, don't disable TER when mudflap.
5571 (pass_del_ssa): Remove.
5572 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
5573 partition members.
5574 (execute_free_datastructures): Declare.
5575 * Makefile.in (SSAEXPAND_H): New variable.
5576 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
5577 * basic-block.h (commit_one_edge_insertion): Declare.
5578 * passes.c (init_optimization_passes): Move pass_nrv and
5579 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
5580 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
5581 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
5582 (redirect_branch_edge): Deal with super block when expanding, split
5583 out jump patching itself into ...
5584 (patch_jump_insn): ... here, new static helper.
5585
17c665a9
MM
55862009-04-26 Michael Matz <matz@suse.de>
5587
5588 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
5589 beyond num_ssa_names.
5590 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
5591 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
5592
92061771
JJ
55932009-04-26 Jakub Jelinek <jakub@redhat.com>
5594
ce372372
JJ
5595 PR inline-asm/39543
5596 * fwprop.c (forward_propagate_asm): New function.
5597 (forward_propagate_and_simplify): Propagate also into __asm, if it
5598 doesn't increase the number of referenced registers.
5599
92061771
JJ
5600 PR c/39889
5601 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
5602
56032009-04-26 Jakub Jelinek <jakub@redhat.com>
77f2a970
JJ
5604
5605 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
5606 note_nonlocal_vla_type for nonlocal VLAs.
5607 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
5608 contains_remapped_vars, remap_vla_decls): New functions.
5609 (convert_nonlocal_reference_stmt): If not optimizing, call
5610 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
5611 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
5612 if it wasn't found in var_map.
5613 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
5614 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
5615 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
5616 declare_vars.
5617 * gimplify.c (nonlocal_vlas): New variable.
5618 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
5619 referenced VLAs.
5620 (gimplify_body): Create and destroy nonlocal_vlas.
a9548ddf 5621
4561e242
JJ
5622 * dwarf2out.c (loc_descr_plus_const): New function.
5623 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
5624 mem_loc_descriptor, loc_descriptor_from_tree_1,
5625 descr_info_loc, gen_variable_die): Use it.
5626
a9548ddf
JJ
5627 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
5628 !TREE_STATIC VAR_DECLs.
5629 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
5630 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
5631 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
5632 DECL_BY_REFERENCE is valid.
5633 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
5634 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
5635 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
5636 Copy DECL_BY_REFERENCE.
5637 (struct nesting_copy_body_data): New type.
5638 (nesting_copy_decl): New function.
5639 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
5640 if they have variable length.
5641
10555d08
MM
56422009-04-26 Michael Matz <matz@suse.de>
5643
5644 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
5645 mark new temporaries for renaming.
5646
e11187cc
JM
56472009-04-26 Joseph Myers <joseph@codesourcery.com>
5648
5649 PR c/39581
5650 * c-decl.c (global_bindings_p): Return negative value.
5651 (c_variable_size): New. Based on variable_size from
5652 stor-layout.c.
5653 (grokdeclarator): Call c_variable_size not variable_size.
5654
f6a51d31
UB
56552009-04-26 Uros Bizjak <ubizjak@gmail.com>
5656
5657 * config/i386/i386.c (print_operand) ['z']: Fix typo.
5658
4b97723d
KT
56592009-04-26 Kai Tietz <kai.tietz@onevision.com>
5660
5661 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
5662 Redefine it to just use mingw/include.
5663 (ASM_SPEC): Rules for -m32 and -m64.
5664 (LINK_SPEC): Use Likewise.
5665 (SPEC_32): New define.
5666 (SPEC_64): Likewise.
5667 (SUB_LINK_SPEC): Likewise.
5668 (MULTILIB_DEFAULTS): New define.
5669 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
5670 Add multilib options.
5671 (MULTILIB_DIRNAMES): Likewise.
5672 (MULTILIB_OSDIRNAMES): Likewise.
5673 (LIBGCC): Likewise.
5674 (INSTALL_LIBGCC): Likewise.
5675
991d6621
JM
56762009-04-26 Joseph Myers <joseph@codesourcery.com>
5677
5678 PR c/39556
5679 * c-tree.h (enum c_inline_static_type): New.
5680 (record_inline_static): Declare.
5681 * c-decl.c (struct c_inline_static, c_inline_statics,
5682 record_inline_static, check_inline_statics): New.
5683 (pop_file_scope): Call check_inline_statics.
5684 (start_decl): Call record_inline_static instead of pedwarning
5685 directly for static in inline function.
5686 * c-typeck.c (build_external_ref): Call record_inline_static
5687 instead of pedwarning directly for static referenced in inline
5688 function.
5689
4a81774c
SB
56902009-04-26 Steven Bosscher <steven@gcc.gnu.org>
5691
5692 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
5693 not new but only being rescanned.
5694 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
5695 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
5696 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
5697 record_set_info, compute_set, grealloc): Remove.
5698 (recompute_all_luids): New function.
5699 (gcse_main): Don't compute sets, and don't do related memory
5700 allocations/free-ing. If something changed before the end of the
5701 pass, update LUIDs using recompute_all_luids.
5702 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
5703 (free_gcse_mem): Don't free it either.
5704 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
5705 Use the df insn LUIDs.
5706 (load_killed_in_block): Likewise.
5707 (compute_hash_table_work): Don't compute reg_set_in_block.
5708 (compute_transp): Use DF_REG_DEF_CHAINs.
5709 (local_cprop_pass): Don't use compute_sets and related functions.
5710 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
5711 Use get_max_uid() instead of max_cuid.
5712 (insert_insn_end_basic_block, pre_insert_copy_insn,
5713 update_ld_motion_stores): Don't try to
5714 keep reg_set tables up to date.
5715 (pre_insert_copies): Use df insn LUIDs.
5716 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
5717 (reg_set_info): Don't use extra bitmap argument.
5718 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
5719 information to compute regs_set_in_block.
5720 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
5721 (bypass_jumps): Don't use compute_sets and friends.
5722
e8f99a9d
RW
57232009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5724
5725 PR testsuite/39710
5726 * opts.c (undocumented_msg): Do not leave blank even with
5727 ENABLE_CHECKING.
5728
6895bac8
JM
57292009-04-25 Joseph Myers <joseph@codesourcery.com>
5730
5731 * c-decl.c (build_enumerator): Allow values folding to integer
5732 constants but not integer constant expressions with a pedwarn if
5733 pedantic.
5734
24070fcb
JM
57352009-04-25 Joseph Myers <joseph@codesourcery.com>
5736
5737 PR c/39582
5738 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
5739 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
5740 type is an integer constant.
5741
d6d89aa1
UB
57422009-04-25 Uros Bizjak <ubizjak@gmail.com>
5743
5744 PR target/39897
5745 * config/i386/i386.c (print_operand) ['z']: Revert handling of
5746 HImode operands.
5747
92f6fd0b
JM
57482009-04-25 Joseph Myers <joseph@codesourcery.com>
5749
5750 PR c/39564
5751 * c-decl.c (grokdeclarator): Diagnose declarations of functions
5752 with variably modified return type and no storage class
5753 specifiers, except for the case of nested functions. Distinguish
5754 extern declarations of functions with variably modified return
5755 types from those of objects with variably modified types.
5756
a3710436
JH
57572009-04-25 Jan Hubicka <jh@suse.cz>
5758
5759 * tree.c (list_equal_p): New function.
5760 * tree.h (list_equal_p): Declare.
5761 * coretypes.h (edge_def, edge, const_edge, basic_block_def
5762 basic_block_def, basic_block, const_basic_block): New.
5763 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
5764 (redirect_eh_edge): New function.
5765 (make_eh_edge_update_phi): EH edges are not abnormal.
5766 * except.c: Include tree-flow.h.
5767 (list_match): New function.
5768 (eh_region_replaceable_by_p): New function.
5769 (replace_region): New function.
5770 (hash_type_list): New function.
5771 (hash_eh_region): New function.
5772 (eh_regions_equal_p): New function.
5773 (merge_peers): New function.
5774 (remove_unreachable_regions): Verify EH tree when checking;
5775 merge peers.
5776 (copy_eh_region_1): New function.
5777 (copy_eh_region): New function.
5778 (push_reachable_handler): New function.
5779 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
5780 regions without label but with live RESX.
5781 * except.h (redirect_eh_edge_to_label): New.
5782 * tree-flow.h (redirect_eh_edge): New.
5783 * coretypes.h (edge_def, edge, const_edge, basic_block_def
5784 basic_block_def, basic_block, const_basic_block): Remove.
5785 * Makefile.in (except.o): Add dependency on tree-flow.h
5786 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
5787 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
5788 Remove.
5789
3764d512
EB
57902009-04-25 Eric Botcazou <ebotcazou@adacore.com>
5791
5792 PR bootstrap/39645
5793 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
5794 on the destination of memcpy.
5795
1c62e8f2
PB
57962009-04-25 Paolo Bonzini <bonzini@gnu.org>
5797
5798 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
5799 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
5800 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
5801
496a4ef5
JH
58022009-04-25 Jan Hubicka <jh@suse.cz>
5803
5804 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
5805 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
5806 to be reached by different label than left.
5807 (update_eh_edges): Update comment; remove edge_to_remove if possible
5808 and return true if suceeded.
5809 (cleanup_empty_eh): Accept sharing map; handle shared regions.
5810 (cleanup_eh): Compute sharing map.
5811 * except.c (remove_eh_handler_and_replace): Add argument if we should
5812 update regions.
5813 (remove_unreachable_regions): Update for label sharing.
5814 (label_to_region_map): Likewise.
5815 (get_next_region_sharing_label): New function.
5816 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
5817 prev_try pointers.
5818 (remove_eh_handler): Update.
5819 (remove_eh_region_and_replace_by_outer_of): New function.
5820 * except.h (struct eh_region): Add next_region_sharing_label.
5821 (remove_eh_region_and_replace_by_outer_of,
5822 get_next_region_sharing_label): Declare.
5823 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
5824
58252009-04-25 Jan Hubicka <jh@suse.cz>
5826
5827 * tree-cfg.c (split_critical_edges): Split also edges where we can't
5828 insert code even if they are not critical.
5829
58302009-04-25 Jan Hubicka <jh@suse.cz>
5831
5832 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
5833 (gimple_can_remove_branch_p): EH edges won't remove branch by
5834 redirection.
5835 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
5836 updating of non-abnormal EH edges.
5837 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
5838 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
5839 (split_critical_edges): Split also edges where emitting code on them
5840 will lead to splitting later.
5841
a3a5e3d1
UB
58422009-04-25 Uros Bizjak <ubizjak@gmail.com>
5843 H.J. Lu <hongjiu.lu@intel.com>
5844
5845 PR target/39590
5846 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
5847 the configured assembler supports fildq and fistpq mnemonics.
5848 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
5849 * configure: Regenerated.
5850 * config.in: Ditto.
5851
5852 * config/i386/i386.c (print_operand): Handle 'Z'.
5853 ['z']: Remove handling of special fild/fist suffixes.
5854 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
5855 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
5856 suffix of fild insn.
5857 (*floatsi<mode>2_vector_mixed): Ditto.
5858 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
5859 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
5860 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
5861 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
5862 * config/i386/gas.h (GAS_MNEMONICS): Remove.
5863
23750d7f
BE
58642009-04-25 Ben Elliston <bje@au.ibm.com>
5865
5866 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
5867 the source of a set operation.
5868
e6ff3083
AS
58692009-04-25 Anatoly Sokolov <aesok@post.ru>
5870
5871 * target.h (struct gcc_target): Add case_values_threshold field.
5872 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
5873 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
5874 * targhooks.c (default_case_values_threshold): New function.
5875 * targhooks.h (default_case_values_threshold): Declare function.
5876 * stmt.c (expand_case): Use case_values_threshold target hook.
5877 * expr.h (case_values_threshold): Remove declartation.
5878 * expr.c (case_values_threshold): Remove function.
5879 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
5880
5881 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
5882 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
5883 (avr_case_values_threshold): Declare as static.
5884 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
5885
5886 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
5887 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
5888 (mn10300_case_values_threshold): New function.
5889
569c72fc
L
58902009-04-24 H.J. Lu <hongjiu.lu@intel.com>
5891
5892 * ira.c (setup_cover_and_important_classes): Add enum cast.
5893
ff3cb468
VM
58942009-04-24 Vladimir Makarov <vmakarov@redhat.com>
5895
5896 * genpreds.c (write_enum_constraint_num): Output definition of
5897 CONSTRAINT_NUM_DEFINED_P macro.
5898 * ira.c (setup_cover_and_important_classes): Use
5899 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
5900
4f7be849
DD
59012009-04-24 DJ Delorie <dj@redhat.com>
5902
5903 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
5904 __SH2A_SINGLE_ONLY__ also.
5905
735b94a7
SE
59062009-04-24 Steve Ellcey <sje@cup.hp.com>
5907
5908 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
5909 (movdf_internal): Ditto.
5910 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
5911 SFmode and DFmode constants.
5912 (ia64_print_operand): Add 'G' format for printing
5913 floating point constants.
5914
77a30264
RG
59152009-04-24 Richard Guenther <rguenther@suse.de>
5916
5917 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
5918 from unsigned additions.
5919
2b6da65c
JM
59202009-04-24 Joseph Myers <joseph@codesourcery.com>
5921
5922 * c-typeck.c (set_init_index): Allow array designators that are
5923 not integer constant expressions with a pedwarn if pedantic.
5924
f5a17c43
BS
59252009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
5926
5927 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
5928 zero if no overlap in nonzero bits between the operands.
5929
32e8bb8e
ILT
59302009-04-24 Ian Lance Taylor <iant@google.com>
5931
5932 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
5933 (record_dead_and_set_regs): Likewise.
5934 * df.h (struct df_mw_hardreg): Change flags field to int.
5935 (struct df_base_ref): Likewise.
5936 (struct df): Change changeable_flags field to int.
5937 * df-scan.c (df_defs_record): Change clobber_flags to int.
5938 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
5939 constants rather than #define macros.
5940 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
5941 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
5942 (enum dwarf_calling_convention): Likewise.
5943 (enum dwarf_line_number_x_ops): Likewise.
5944 (enum dwarf_call_frame_info): Likewise.
5945 (enum dwarf_source_language): Likewise.
5946 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
5947 (add_calling_convention_attribute): Likewise.
a3a5e3d1
UB
5948 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
5949 (combine_comparisons): Change compcode to int. Add cast to enum type.
32e8bb8e
ILT
5950 * genrecog.c (maybe_both_true_2): Change c to int.
5951 (write_switch): Likewise. Add cast to enum type.
5952 * gimplify.c (gimplify_omp_for): Handle return values from
5953 gimplify_expr using MIN rather than bitwise or.
5954 (gimplify_expr): Add cast to enum type.
5955 * ipa-prop.c (update_jump_functions_after_inlining): Change
5956 IPA_BOTTOM to IPA_JF_UNKNOWN.
a3a5e3d1
UB
5957 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
5958 Add casts to enum type.
32e8bb8e
ILT
5959 (setup_cover_and_important_classes): Change cl to int. Add casts
5960 to enum type.
5961 (setup_class_translate): Change cl and mode to int.
5962 (ira_init_once): Change mode to int.
5963 (free_register_move_costs): Likewise.
5964 (setup_prohibited_mode_move_regs): Add casts to enum type.
5965 * langhooks.c (add_builtin_function_common): Rework assertion that
5966 value fits bitfield.
5967 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
5968 * omega.c (omega_do_elimination): Avoid math on enum types.
5969 * optabs.c (expand_vec_shift_expr): Remove casts to int.
5970 * opts.c (set_debug_level): Change 2 to enum constant. Use new
5971 int local to handle integral_argment value.
5972 * regmove.c (try_auto_increment): Change PUT_MODE to
5973 PUT_REG_NOTE_KIND.
5974 * reload.c (push_secondary_reload): Add casts to enum type.
5975 (secondary_reload_class, find_valid_class): Likewise.
5976 * reload1.c (emit_input_reload_insns): Likewise.
5977 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
5978 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
5979 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
5980 constant.
5981 * tree.c (build_common_builtin_nodes): Add casts to enum type.
5982 * tree-complex.c (complex_lattice_t): Typedef to int rather than
5983 enum type.
5984 (expand_complex_libcall): Add casts to enum type.
5985 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
5986 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
5987 with ERROR_MARK, not NUM_TREE_CODES.
5988 (vect_create_epilog_for_reduction): Likewise.
5989 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
a3a5e3d1 5990 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
32e8bb8e
ILT
5991 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
5992 enum machine_mode.
5993 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
5994 vect_unused_in_loop. Change 0 to loop_vect.
a3a5e3d1 5995 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
32e8bb8e
ILT
5996 * var-tracking.c (get_init_value): Change return type to enum
5997 var_init_status.
5998 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
5999 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
6000 arm_fp_model.
6001 (arm_override_options): Add casts to enum type.
6002 (arm_emit_tls_decoration): Likewise.
6003 * config/i386/i386.c (ix86_function_specific_restore): Add casts
6004 to enum type.
6005 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
6006 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
6007 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
6008 enum type.
6009 * config/s390/s390.c (code_for_builtin_64): Change to array of
6010 enum insn_code.
6011 (code_for_builtin_31): Likewise.
6012 (s390_expand_builtin): Change code_for_builtin to enum insn_code
6013 const *.
6014 * config/sparc/sparc.c (sparc_override_options): Change value
6015 field in struct code_model to enum cmodel. In initializer change
6016 0 to NULL and add cast to enum type.
6017
6018 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
6019 Change all callers. Issue a -Wc++-compat warning using
6020 lhs_origtype if necessary.
6021 (convert_for_assignment): Issue -Wc++-compat warnings about
6022 invalid conversions to enum type on assignment.
6023 * c-common.h (build_modify_expr): Update declaration.
6024
ac4fc08a
NC
60252009-04-24 Nick Clifton <nickc@redhat.com>
6026
6027 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
6028 (function_arg_advance): Likewise.
6029 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
6030 5th alternative.
6031
f22e891a
AK
60322009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
6033
6034 * config/s390/constraints.md ('I', 'J'): Fix condition.
6035
ad58aabe
DN
60362009-04-24 Diego Novillo <dnovillo@google.com>
6037
6038 * gengtype-parse.c (parse_error): Add newline after message.
6039
879a4a01
L
60402009-04-24 H.J. Lu <hongjiu.lu@intel.com>
6041
6042 * config/i386/sse.md (avxmodesuffixs): Removed.
6043 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
6044 (*avx_pinsr<ssevecsize>): This.
6045
f63426af
BS
60462009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
6047
6048 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
6049 follow chains of regs with a single definition, and allow expressions
6050 that are function_invariant_p.
ce72fe6c 6051 (simple_rhs_p): Allow expressions that are function_invariant_p.
f63426af 6052
30349c74
PB
60532009-04-24 Paolo Bonzini <bonzini@gnu.org>
6054
6055 PR middle-end/39867
6056 * fold-const.c (fold_cond_expr_with_comparison): When folding
6057 > and >= to MAX, make sure the MAX uses the same type as the
6058 comparison's operands.
6059
8d8256c1
NC
60602009-04-24 Nick Clifton <nickc@redhat.com>
6061
6062 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
6063 addressing for DImode accesses.
6064 (frv_print_operand_address): Handle PLUS case.
a3a5e3d1 6065 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
8d8256c1 6066
6216f94e
JJ
60672009-04-24 Jakub Jelinek <jakub@redhat.com>
6068
6069 PR rtl-optimization/39794
6070 * alias.c (canon_true_dependence): Add x_addr argument.
6071 * rtl.h (canon_true_dependence): Adjust prototype.
6072 * cse.c (check_dependence): Adjust canon_true_dependence callers.
6073 * cselib.c (cselib_invalidate_mem): Likewise.
6074 * gcse.c (compute_transp): Likewise.
6075 * dse.c (scan_reads_nospill): Likewise.
6076 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
6077 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
6078 canon_base_addr of the group, plus optional offset.
6079 (struct group_info): Rename canon_base_mem to
6080 canon_base_addr.
6081 (get_group_info): Set canon_base_addr to canon_rtx of base, not
6082 canon_rtx of base_mem.
6083
6de7a512
PB
60842009-04-23 Paolo Bonzini <bonzini@gnu.org>
6085
6086 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
6087 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
6088
4a3a2376
UW
60892009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6090
6091 * config/spu/spu-builtins.h: Delete file.
6092
6093 * config/spu/spu.h (enum spu_builtin_type): Move here from
6094 spu-builtins.h.
6095 (struct spu_builtin_description): Likewise. Add GTY marker.
6096 Do not use enum spu_function_code or enum insn_code.
6097 (spu_builtins): Add extern declaration.
6098
6099 * config/spu/spu.c: Do not include "spu-builtins.h".
6100 (enum spu_function_code, enum spu_builtin_type_index,
6101 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
6102 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
6103 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
6104 unsigned_V2DI_type_node): Move here from spu-builtins.h.
6105 (spu_builtin_types): Make static. Add GTY marker.
6106 (spu_builtins): Add extern declaration with GTY marker.
6107 Include "gt-spu.h".
6108
6109 * config/spu/spu-c.c: Do not include "spu-builtins.h".
6110 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
6111 Check programmatically whether all parameters are scalar.
6112
6113 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
6114
bbaba73f
EB
61152009-04-23 Eric Botcazou <ebotcazou@adacore.com>
6116
6117 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
6118 assignment from the constructor either if the target is volatile.
6119
ee93c1c6
DJ
61202009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
6121
6122 * config/arm/arm.md (insv): Do not share operands[0].
6123
b2f21330
NS
61242009-04-23 Nathan Sidwell <nathan@codesourcery.com>
6125
6126 * config/vxlib-tls.c (active_tls_threads): Delete.
6127 (delete_hook_installed): New.
6128 (tls_delete_hook): Don't delete the delete hook.
6129 (tls_destructor): Delete it here.
6130 (__gthread_set_specific): Adjust installing the delete hook.
6131 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
6132 __gthread_leave_tsd_dtor_context.
6133
4782dfa7
RAE
61342009-04-23 Rafael Avila de Espindola <espindola@google.com>
6135
6136 * c-format.c (gcc_tdiag_char_table): Add support for %E.
6137
bf758008
UB
61382009-04-23 Uros Bizjak <ubizjak@gmail.com>
6139
6140 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
6141 enum type.
6142 (alpha_rtx_costs): Ditto.
6143 (emit_unlikely_jump): Use add_reg_note.
6144 (emit_frame_store_1): Ditto.
6145 (alpha_expand_prologue): Ditto.
6146 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
6147 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
6148
7323a100
NC
61492009-04-23 Nick Clifton <nickc@redhat.com>
6150
6151 * config/v850/v850.md (epilogue): Remove suppressed code.
6152 (return): Rename to return_simple and remove test of frame size.
6153 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
6154 to gen_return_simple.
6155
360032ba
JY
61562009-04-22 Jing Yu <jingyu@google.com>
6157
6158 PR testsuite/39781
6159 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
6160
53650abe
AP
61612009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
6162
6163 PR C/31499
6164 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
6165 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
6166 value is a VECTOR_CST, the element type is the element type of the
6167 vector.
6168
89043e8a
DD
61692009-04-22 DJ Delorie <dj@redhat.com>
6170
6171 * config/m32c/m32c.h: Update GTY annotations to new syntax.
6172
023f059b
JJ
61732009-04-22 Jakub Jelinek <jakub@redhat.com>
6174
6175 * alias.c (find_base_term): Move around LO_SUM case, so that
6176 CONST falls through into PLUS/MINUS handling.
6177
2c0eba5a
JJ
6178 PR c/39855
6179 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
6180 into 0, use omit_one_operand.
6181
9a461028
BE
61822009-04-23 Ben Elliston <bje@au.ibm.com>
6183
6184 * config/rs6000/linux-unwind.h (get_regs): Remove type
6185 puns. Change the type of `pc' to an array of unsigned ints and
6186 update all users. Constify frame24.
6187
653e2568
DD
61882009-04-22 DJ Delorie <dj@redhat.com>
6189
6190 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
6191 declarations before code.
6192 (current_function_special_page_vector): Likewise.
6193 (m32c_expand_insv): Silence a warning.
6194
60839f5d 61952009-04-21 Taras Glek <tglek@mozilla.com>
d1b38208
TG
6196
6197 * alias.c: Update GTY annotations to new syntax.
6198 * basic-block.h: Likewise.
6199 * bitmap.h: Likewise.
6200 * c-common.h: Likewise.
6201 * c-decl.c: Likewise.
6202 * c-parser.c: Likewise.
6203 * c-pragma.c: Likewise.
6204 * c-tree.h: Likewise.
6205 * cfgloop.h: Likewise.
6206 * cgraph.h: Likewise.
6207 * config/alpha/alpha.c: Likewise.
6208 * config/arm/arm.h: Likewise.
6209 * config/avr/avr.h: Likewise.
6210 * config/bfin/bfin.c: Likewise.
6211 * config/cris/cris.c: Likewise.
6212 * config/darwin.c: Likewise.
6213 * config/frv/frv.c: Likewise.
6214 * config/i386/i386.c: Likewise.
6215 * config/i386/i386.h: Likewise.
6216 * config/i386/winnt.c: Likewise.
6217 * config/ia64/ia64.h: Likewise.
6218 * config/iq2000/iq2000.c: Likewise.
6219 * config/mips/mips.c: Likewise.
6220 * config/mmix/mmix.h: Likewise.
6221 * config/pa/pa.c: Likewise.
6222 * config/pa/pa.h: Likewise.
6223 * config/rs6000/rs6000.c: Likewise.
6224 * config/s390/s390.c: Likewise.
6225 * config/sparc/sparc.c: Likewise.
6226 * config/xtensa/xtensa.c: Likewise.
6227 * cselib.h: Likewise.
6228 * dbxout.c: Likewise.
6229 * dwarf2out.c: Likewise.
6230 * except.c: Likewise.
6231 * except.h: Likewise.
6232 * fixed-value.h: Likewise.
6233 * function.c: Likewise.
6234 * function.h: Likewise.
6235 * gimple.h: Likewise.
6236 * integrate.c: Likewise.
6237 * optabs.c: Likewise.
6238 * output.h: Likewise.
6239 * real.h: Likewise.
6240 * rtl.h: Likewise.
6241 * stringpool.c: Likewise.
6242 * tree-data-ref.c: Likewise.
6243 * tree-flow.h: Likewise.
6244 * tree-scalar-evolution.c: Likewise.
6245 * tree-ssa-address.c: Likewise.
6246 * tree-ssa-alias.h: Likewise.
6247 * tree-ssa-operands.h: Likewise.
6248 * tree.c: Likewise.
6249 * tree.h: Likewise.
6250 * varasm.c: Likewise.
6251 * varray.h: Likewise.
6252 * vec.h: Likewise.
bf758008 6253 * coretypes.h: Do not define GTY macro if it is already defined.
d1b38208
TG
6254 * doc/gty.texi: Update GTY documentation to new syntax.
6255 * gengtype-lex.l: Enforce attribute-like syntax for GTY
6256 annotations on structs.
6257 * gengtype-parse.c: Likewise.
6258
a123d175
MH
62592009-04-22 Mark Heffernan <meheff@google.com>
6260
bf758008 6261 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
a123d175 6262
4c7c486a
KH
62632009-04-22 Kazu Hirata <kazu@codesourcery.com>
6264
6265 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
6266 where appropriate.
6267
6e782a29
KH
62682009-04-22 Kazu Hirata <kazu@codesourcery.com>
6269
6270 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
6271 the same as a PLUS without a shift. Increase the cost of a
6272 CONST_INT in MULT.
6273
38d2336a
MLI
62742009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6275
6276 * Makefile.in: Update dependencies.
bf758008 6277 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
38d2336a
MLI
6278 * errors.h: Remove bogus comment about compatibility.
6279 (warning): Update declaration.
6280 * genautomata.c: Update all calls to warning.
6281 * gimple.c: Do not include errors.h. Include toplev.h.
6282 * tree-ssa-structalias.c: Do not include errors.h.
6283 * omega.c: Likewise.
6284 * tree-ssa-reassoc.c: Likewise.
6285 * config/spu/spu-c.c: Likewise.
6286 * config/spu/t-spu-elf: Update dependencies.
6287
aea4deba
RG
62882009-04-22 Richard Guenther <rguenther@suse.de>
6289
6290 PR tree-optimization/39824
6291 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
6292 make sure the types are compatible.
6293
cfc93532
MLI
62942009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6295
6296 PR c++/14875
6297 * c-common.c (c_parse_error): Take a token_flags parameter.
6298 Use token_type for the token type instead.
6299 Pass token_flags to cpp_type2name.
6300 * c-common.h (c_parse_error): Update declaration.
6301 * c-parser.c (c_parser_error): Pass 0 as token flags.
6302
8632d02a
AB
63032009-04-22 Andrey Belevantsev <abel@ispras.ru>
6304
6305 PR rtl-optimization/39580
6306 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
6307
4c33221c
UW
63082009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6309
6310 * function.c (expand_function_end): Do not emit a jump to the "naked"
6311 return label for fall-through returns.
6312 * except.c (sjlj_emit_function_exit): Always place the call to the
6313 unregister function at the location installed by expand_function_end.
6314
9925bce0
RG
63152009-04-22 Richard Guenther <rguenther@suse.de>
6316
6317 PR tree-optimization/39845
6318 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
6319 (gen_inbound_check): Likewise.
6320
24a40b35
NS
63212009-04-22 Nathan Sidwell <nathan@codesourcery.com>
6322
6323 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
6324 padding for PPC.
6325 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
6326 * config/vxlib.c (__gthread_once): Add race guard for PPC.
6327
6c34a092
PB
63282009-04-22 Paolo Bonzini <bonzini@gnu.org>
6329
6330 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
6331 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
6332 shift counts to avoid out-of-bounds array accesses.
6333
baa48dfa
PB
63342009-04-22 Paolo Bonzini <bonzini@gnu.org>
6335
6336 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
6337 (Pmode): Move above.
6338
7d83f4f5
UB
63392009-04-22 Uros Bizjak <ubizjak@gmail.com>
6340
6341 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
6342 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
6343 GET_CODE macro. Use IN_RANGE macro where appropriate.
6344 * config/alpha/alpha.h: Ditto.
6345 * config/alpha/alpha.md: Ditto.
6346 * config/alpha/constraints.md: Ditto.
6347 * config/alpha/predicates.md: Ditto.
6348
3ad606bc
PB
63492009-04-22 Paolo Bonzini <bonzini@gnu.org>
6350
6351 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
6352 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6353 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6354 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6355 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6356 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6357 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6358 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6359 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6360 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6361 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6362 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6363 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6364 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6365 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6366 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6367 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6368 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6369 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6370 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6371 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6372 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6373 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6374 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6375 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6376 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6377 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
6378
3cabd6d1
LB
63792009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6380
6381 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
6382 references from comments.
6383 * cfgbuild.c: (count_basic_blocks): Delete.
6384 (find_basic_blocks_1): Delete.
6385 (find_basic_blocks): Delete.
6386 * except.c (finish_eh_generation): Make static. Move comment from
7d83f4f5 6387 except.h here. Remove find_basic_blocks references from comments.
3cabd6d1
LB
6388 * except.h (finish_eh_generation): Delete.
6389 * basic-block.h (find_basic_blocks): Delete.
6390 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
6391
270d1bcd
DK
63922009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
6393
6394 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
6395 (sdbout_parms): Likewise.
6396
b757d36f
KK
63972009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
6398
6399 * config/sh/sh.c (prepare_cbranch_operands): Use
6400 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
6401 (expand_cbranchdi4): Likewise.
6402 (from_compare): Add cast to enum type.
6403 (expand_cbranchsi4): Use add_reg_note.
6404 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
6405 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
6406 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
6407 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
6408 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
6409 instead of CODE_FOR_nothing.
6410 (cbranchdi4): Likewise. Fix the order of arguments for
6411 gen_rtx_fmt_ee.
6412 (push_fpscr): Use add_reg_note.
6413 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
6414 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
6415
ad41bd84
JM
64162009-04-21 Joseph Myers <joseph@codesourcery.com>
6417
6418 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
6419 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
6420 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
6421 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
6422 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
6423 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
6424 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
6425 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
6426 config/alpha/x-vms, config/arc/t-arc,
6427 config/arm/README-interworking, config/arm/arm-c.c,
6428 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
6429 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
6430 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
6431 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
6432 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
6433 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
6434 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
6435 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
6436 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
6437 config/cris/t-elfmulti, config/crx/t-crx,
6438 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
6439 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
6440 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
6441 config/h8300/t-h8300, config/i386/athlon.md,
6442 config/i386/darwin-libgcc.10.4.ver,
6443 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
6444 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
6445 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
6446 config/i386/t-linux64, config/i386/t-nwld,
6447 config/i386/t-rtems-i386, config/i386/t-sol2-10,
6448 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
6449 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
6450 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
6451 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
6452 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
6453 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
6454 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
6455 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
6456 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
6457 config/m68k/t-uclinux, config/mcore/t-mcore,
6458 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
6459 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
6460 config/mips/crtn.asm, config/mips/irix-crti.asm,
6461 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
6462 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
6463 config/mips/mips-fixed.md, config/mips/sb1.md,
6464 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
6465 config/mips/t-iris6, config/mips/t-isa3264,
6466 config/mips/t-libgcc-mips16, config/mips/t-linux64,
6467 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
6468 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
6469 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
6470 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
6471 config/mn10300/t-linux, config/mn10300/t-mn10300,
6472 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
6473 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
6474 config/picochip/libgccExtras/clzsi2.asm,
6475 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
6476 config/rs6000/darwin-libgcc.10.4.ver,
6477 config/rs6000/darwin-libgcc.10.5.ver,
6478 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
6479 config/rs6000/t-aix43, config/rs6000/t-aix52,
6480 config/rs6000/t-darwin, config/rs6000/t-fprules,
6481 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
6482 config/rs6000/t-lynx, config/rs6000/t-netbsd,
6483 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
6484 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
6485 config/rs6000/t-rtems, config/rs6000/t-spe,
6486 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
6487 config/score/t-score-elf, config/sh/divcost-analysis,
6488 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
6489 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
6490 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
6491 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
6492 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
6493 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
6494 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
6495 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
6496 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
6497 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
6498 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
6499 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
6500 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
6501 limitx.h, version.c, xcoff.h: Add copyright and license notices.
6502 * config/h8300/genmova.sh: Include copyright and license notices
6503 in generated output.
6504 * config/h8300/mova.md: Regenerate.
6505 * doc/install.texi2html: Include word "Copyright" in copyright
6506 notice and use name "Free Software Foundation, Inc.".
6507 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
6508 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
6509 ChangeLog-2007, ChangeLog-2008: Correct dates.
6510
ca80e52b
EB
65112009-04-21 Eric Botcazou <ebotcazou@adacore.com>
6512
6513 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
6514 NE_EXPR operations as well.
6515 * c-parser.c (c_parser_condition): Do not set location information on
6516 the condition.
6517 (c_parser_conditional_expression): Likewise.
6518 (c_parser_binary_expression): Set location information on operators.
6519 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
6520 TRUTH_NOT_EXPR has been folded.
6521 * fold-const.c (fold_truth_not_expr): Copy location information from
6522 the incoming expression to the outgoing one.
6523 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
6524 recursive calls on the LHS of the operator but pass that of the
6525 operator to recursive calls on the RHS of the operator. Set it
6526 on the COND_EXPR.
6527 (shortcut_cond_expr): Set the locus of the operator on the second
6528 COND_EXPR and that of the expression on the first in degenerate cases.
6529 Pass the locus of the expression to calls to shortcut_cond_r.
6530 Set the locus of the 'then' block on the associated jump, if any.
6531 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
6532 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
6533 expression to call to gimplify_boolean_expr.
6534
35091630
KT
65352009-04-21 Kai Tietz <kai.tietz@onevision.com>
6536
6537 * config.gcc: Add additional configuration for
6538 i686-w64-mingw* and x86_64-w64-mingw* triplet.
6539 * config/i386/mingw-w64.h: New mingw-w64 specific header.
6540 (CPP_SPEC): Redefine for allowing -municode option.
6541 (STARTFILE_SPEC): Likewise.
6542 * config/i386/t-mingw-w64: New.
6543 * config/i386/mingw-w64.opt: New.
6544 (municode): Add new target option.
6545 * doc/invoke.texi (municode): Add documentation for new option.
6546
0267afc4
ILT
65472009-04-21 Ian Lance Taylor <iant@google.com>
6548
6549 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6550 Correct test for number of arguments.
6551 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
6552
2ba9daa7
AS
65532009-04-21 Andreas Schwab <schwab@linux-m68k.org>
6554
6555 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
6556 argument of emit_library_call.
6557
ad8a1ac0
RG
65582009-04-21 Richard Guenther <rguenther@suse.de>
6559
6560 PR middle-end/39829
6561 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
6562 inside VIEW_CONVERT_EXPRs.
6563
7156c8ab
MJ
65642009-04-21 Martin Jambor <mjambor@suse.cz>
6565
6566 * tree-switch-conversion.c (build_constructors): Split a long line.
6567 (constructor_contains_same_values_p): New function.
7d83f4f5
UB
6568 (build_one_array): Create assigns of constants if possible, do not
6569 call mark_sym_for_renaming, call update_stmt.
7156c8ab
MJ
6570 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
6571 make_rename_temp. Do not call mark_symbols_for_renaming, call
6572 update_stmt.
6573 (gen_def_assigns): Do not call mark_symbols_for_renaming or
6574 find_new_referenced_vars, call update_stmt.
6575 (gen_inbound_check): Use create_tmp_var and create ssa names manually
6576 instead of calling make_rename_temp. Do not call
6577 find_new_referenced_vars or mark_symbols_for_renaming, call
6578 update_stmt.
6579
2970ccb3
RG
65802009-04-21 Richard Guenther <rguenther@suse.de>
6581
6582 PR tree-optimization/39827
7d83f4f5 6583 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
2970ccb3
RG
6584 (tree_ssa_phiprop): Pass the correct array size.
6585
47f402d1
UB
65862009-04-21 Uros Bizjak <ubizjak@gmail.com>
6587
6588 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
6589
1e4ae551
MLI
65902009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
6591
6592 PR 16202
6593 * c-typeck.c (lvalue_p): Move declaration ...
6594 * c-common.h (lvalue_p): ... to here.
6595 * c-common.c (candidate_equal_p): New.
6596 (add_tlist): Use it.
6597 (merge_tlist): Use it.
6598 (warn_for_collisions_1): Likewise.
6599 (warning_candidate_p): Accept more candidates.
6600 (verify_tree): A warning candidate can be an expression. Use
6601 candidate_equal_p.
6602
244609a6
BE
66032009-04-21 Ben Elliston <bje@au.ibm.com>
6604
6605 PR target/5267
6606 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
6607 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
6608 options. Remove -mcall-solaris documentation.
6609
9c650d90
MLI
66102009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6611
6612 PR c++/13358
6613 * doc/invoke.texi (-Wlong-long): Update description.
6614 * c-lex (interpret_integer): Only warn if there was no previous
6615 overflow and -Wlong-long is enabled.
6616 * c-decl.c (declspecs_add_type): Drop redundant flags.
6617 * c.opt (Wlong-long): Init to -1.
6618 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
6619 and front-end warn_long_long. Wlong-long only depends on other
6620 flags if it is uninitialized.
6621 * c-parser.c (disable_extension_diagnostics): warn_long_long is
6622 the same for CPP and FE.
6623 (restore_extension_diagnostics): Likewise.
6624
bbbbb16a
ILT
66252009-04-20 Ian Lance Taylor <iant@google.com>
6626
6627 Fix enum conversions which are invalid in C++:
47f402d1
UB
6628 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
6629 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
bbbbb16a
ILT
6630 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
6631 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
47f402d1 6632 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
bbbbb16a 6633 (dbxout_parms): Likewise.
47f402d1 6634 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
bbbbb16a
ILT
6635 (df_clear_flags): Likewise.
6636 * df-problems.c (df_rd_bb_local_compute_process_def): Change
6637 top_flag parameter to int.
6638 (df_chain_create_bb_process_use): Likewise.
47f402d1
UB
6639 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
6640 Remove cast.
bbbbb16a
ILT
6641 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
6642 (df_ref_create_structure, df_def_record_1): Likewise.
6643 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
6644 (df_notes_rescan): Change 0 to VOIDmode in function call.
6645 (df_get_call_refs, df_insn_refs_collect): Likewise.
6646 (df_bb_regs_collect): Likewise.
6647 (df_entry_block_defs_collect): Likewise.
6648 (df_exit_block_uses_collect): Likewise.
6649 * df.h: Update declarations.
6650 * double-int.c (double_int_divmod): Add cast to enum type.
6651 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
6652 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
6653 (based_loc_descr): Likewise.
6654 (loc_descriptor_from_tree_1): Change first_op and second_op to
6655 enum dwarf_location_atom. Add cast to enum type.
6656 * expmed.c (init_expmed): Change 0 to SET in function call.
47f402d1 6657 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
bbbbb16a
ILT
6658 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
6659 (do_store_flag): Likewise.
6660 * fixed-value.h (struct fixed_value): Change mode to enum
6661 machine_mode.
47f402d1 6662 * function.c (assign_parms): Change 0 to VOIDmode in function call.
bbbbb16a
ILT
6663 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
6664 function call.
6665 (insert_insn_decl, insert_decl, insert_state): Likewise.
6666 (automata_list_finish): Likewise.
6667 * genrecog.c (process_define_predicate): Add cast to enum type.
6668 * gensupport.c (init_predicate_table): Add cast to enum type.
6669 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
6670 function call.
6671 (gimple_build_call_1, gimple_build_label): Likewise.
6672 (gimple_build_goto, gimple_build_asm_1): Likewise.
6673 (gimple_build_switch_1, gimple_build_cdt): Likewise.
47f402d1 6674 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
bbbbb16a
ILT
6675 (enum fallback): Rename from enum fallback_t.
6676 (fallback_t): Typedef as int.
6677 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
6678 GSI_SAME_STMT in function call.
6679 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
6680 enum type.
6681 (setup_reg_class_relations): Likewise.
47f402d1 6682 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
bbbbb16a
ILT
6683 (setup_prohibited_class_mode_regs): Add cast to enum type.
6684 (setup_prohibited_mode_move_regs): Likewise.
47f402d1 6685 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
bbbbb16a
ILT
6686 (record_address_regs): Change i to enum reg_class.
6687 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
6688 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
6689 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
6690 (GET_MODE_2XWIDER_MODE): Likewise.
6691 (GET_CLASS_NARROWEST_MODE): Likewise.
6692 * omp-low.c (expand_omp_for): Add cast to enum type.
6693 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
6694 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
6695 * postreload.c (reload_cse_simplify_operands): Change rclass local
6696 to enum reg_class.
6697 * predict.c (combine_predictions_for_insn): Change best_predictor
6698 and predictor to enum br_predictor.
6699 (combine_predictions_for_bb): Likewise.
6700 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
6701 use SET_PREDICT_EXPR_OUTCOME.
47f402d1 6702 * real.c (real_arithmetic): Change icode to code in function call.
bbbbb16a
ILT
6703 * reginfo.c (init_move_cost): Add casts to enum type.
6704 (init_reg_sets_1, init_fake_stack_mems): Likewise.
6705 * regmove.c (regclass_compatible_p): Change class0 and class1 to
6706 enum reg_class.
6707 * reload.c (find_valid_class): Add casts to enum type.
6708 (push_reload): Change 0 to NO_REGS in function call.
6709 (find_reloads): Change this_alternative to array of enum
6710 reg_class. Remove some now-unnecessary casts.
6711 (make_memloc): Change 0 to VOIDmode in function call.
6712 * reload1.c (reload): Change 0 to VOIDmode in function call.
6713 (eliminate_regs_1, elimination_effects): Likewise.
6714 (eliminate_regs_in_insn): Likewise.
6715 (emit_input_reload_insns): Add cast to enum type.
6716 (delete_output_reload): Change 0 to VOIDmode in function call.
6717 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
6718 to enum type in function call.
6719 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
6720 (SET_PREDICT_EXPR_OUTCOME): Define.
47f402d1 6721 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
bbbbb16a
ILT
6722 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
6723 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
6724 (dump_function): Likewise.
6725 * tree-dump.h: Update declarations.
6726 * tree-pass.h: Update declarations.
6727 * varasm.c (assemble_integer): Change mclass to enum mode_class.
6728 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
6729 enum type.
6730 (arm_rtx_costs_1): Correct parenthesization.
6731 (arm_rtx_costs): Add casts to enum type.
6732 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
6733 (vfp_emit_fstmd): Use add_rg_note.
6734 (emit_multi_reg_push, emit_sfm): Likewise.
6735 (thumb_set_frame_pointer): Likewise.
6736 (arm_expand_prologue): Likewise.
6737 (arm_regno_class): Change return type to enum reg_class.
6738 (thumb1_expand_prologue): Use add_reg_note.
6739 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
6740 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
6741 in function call.
6742 * config/arm/gentune.sh: Add cast to enum type.
6743 * config/arm/arm-tune.md: Rebuild.
6744 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
6745 (ix86_split_fp_branch, predict_jump): Likewise.
6746 (ix86_expand_multi_arg_builtin): Change sub_code from enum
6747 insn_code to enum rtx_code.
6748 (ix86_builtin_vectorized_function): Add cast to enum type.
6749 * config/i386/i386.md (truncdfsf2): Change slot to enum
6750 ix86_stack_slot.
6751 (truncxf<mode>2, isinf<mode>2): Likewise.
6752 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
6753 enum type.
6754 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
6755 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
6756 (insert_bundle_state): Change 1 to INSERT in function call.
6757 (ia64_add_bundle_selector_before): Likewise.
6758 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
6759 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
6760 (restore_stack_nonlocal): Likewise.
6761 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
6762 function call.
6763 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
6764 function call.
6765 (mips_rtx_costs): Likewise.
6766 (mips_override_options): Add casts to enum type.
6767 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
6768 in function call.
6769 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
6770 (store_reg, set_reg_plus_d): Likewise.
6771 (hppa_expand_prologue, hppa_profile_hook): Likewise.
6772 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
6773 cast to enum type.
6774 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
6775 function call.
6776 (emit_unlikely_jump): Use add_reg_note.
6777 (rs6000_emit_allocate_stack): Likewise.
6778 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
6779 (output_toc): Change 1 to INSERT in function call.
6780 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
6781 (rs6000_initialize_trampoline): Likewise.
6782 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
6783 function call.
6784 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
6785 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
6786 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
6787 (save_gprs): Use add_reg_note.
6788 (s390_emit_prologue): Likewise.
47f402d1 6789 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
bbbbb16a
ILT
6790 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
6791 (sparc_fold_builtin): Add cast to enum type.
6792 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
6793 enum insn_code.
6794 (spu_expand_prologue): Use add_reg_note.
47f402d1 6795 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
bbbbb16a
ILT
6796
67972009-04-20 Ian Lance Taylor <iant@google.com>
6798
6799 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
6800 (c_parser_postfix_expression_after_primary): Get VEC for list of
6801 arguments. Get original types of arguments. Call
6802 build_function_call_vec.
6803 (cached_expr_list_1, cached_expr_list_2): New static variables.
6804 (c_parser_expr_list): Change return type to VEC *. Add
6805 p_orig_types parameter. Change all callers.
6806 (c_parser_release_expr): New static function.
6807 (c_parser_vec_to_tree_list): New static function.
6808 * c-typeck.c (build_function_call): Rewrite to build a VEC and
6809 call build_function_call_vec.
6810 (build_function_call_vec): New function, based on old
6811 build_function_call.
6812 (convert_arguments): Remove nargs and argarray parameters. Change
6813 values to a VEC. Add origtypes parameter.
47f402d1 6814 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
bbbbb16a
ILT
6815 (convert_for_assignment): Add origtype parameter. Change all
6816 callers. If warn_cxx_compat, check for conversion to an enum
6817 type when calling a function.
6818 (store_init_value): Add origtype parameter. Change all callers.
6819 (digest_init): Likewise.
6820 (struct init_node): Add origtype field.
6821 (add_pending_init): Add origtype parameter. Change all callers.
6822 (output_init_element): Likewise.
6823 (output_pending_init_elements): Pass origtype from init_node to
6824 output_init_element.
f28a61ab 6825 (process_init_element): Pass origtype from c_expr to
bbbbb16a
ILT
6826 output_init_element.
6827 (c_finish_return): Add origtype parameter. Change all callers.
6828 * c-common.c (sync_resolve_size): Change params to VEC *. Change
6829 caller.
6830 (sync_resolve_params): Likewise.
47f402d1 6831 (sync_resolve_return): Change params to first_param. Change caller.
bbbbb16a 6832 (resolve_overloaded_builtins): Change params to VEC *. Change
47f402d1 6833 callers. Save first parameter around call to build_function_call_vec.
bbbbb16a
ILT
6834 * c-decl.c (finish_decl): Add origtype parameter. Change all
6835 callers. Call build_function_call_vec rather than
6836 build_function_call for cleanup.
6837 * c-tree.h: Update declarations.
6838 * c-common.h: Update declarations.
6839 * stub-objc.c (objc_rewrite_function_call): Change parameter from
6840 params to first_param.
6841 * target.h (struct gcc_target): Change resolve_overloaded_builtin
6842 params parameter from tree to void *.
6843 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6844 Change arglist parameter to have type void *, and to be a pointer
6845 to a VEC.
6846 * config/rs6000/rs6000-protos.h
6847 (altivec_resolve_overloaded_builtin): Update declaration.
6848 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
6849 fnargs parameter to have type void *, and to be a pointer to a
6850 VEC. Call build_function_call_vec instead of
6851 build_function_call.
47f402d1 6852 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
bbbbb16a 6853
6ff078d4 68542009-04-20 Joey Ye <joey.ye@intel.com>
60839f5d 6855 Xuepeng Guo <xuepeng.guo@intel.com>
6ff078d4
JY
6856 H.J. Lu <hongjiu.lu@intel.com>
6857
6858 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
6859
6860 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
6861 (IX86_LEA_PRIORITY): Likewise.
6862 (distance_non_agu_define): New function.
6863 (distance_agu_use): Likewise.
6864 (ix86_lea_for_add_ok): Likewise.
6865 (ix86_dep_by_shift_count): Likewise.
6866
6867 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
6868 should split for LEA.
6869
6870 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
6871 function.
6872 (ix86_dep_by_shift_count): Likewise.
6873
87a5b4cc
RG
68742009-04-20 Richard Guenther <rguenther@suse.de>
6875
6876 * expr.c (handled_component_p): Move ...
6877 * tree.h (handled_component_p): ... here.
6878 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
6879 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
6880 and REALPART_EXPR to be in one group.
6881
438c239d
RG
68822009-04-20 Richard Guenther <rguenther@suse.de>
6883
6884 * basic-block.h (get_all_dominated_blocks): Declare.
6885 * dominance.c (get_all_dominated_blocks): New function.
6886 * tree-cfg.c (get_all_dominated_blocks): Remove.
6887 (remove_edge_and_dominated_blocks): Adjust.
6888 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
6889 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
6890 instead of recursing.
6891
fed5ae11
DK
68922009-04-20 Doug Kwan <dougkwan@google.com>
6893
6894 * cgraph.h (cgraph_node_ptr): New type for vector functions.
6895 (struct cgraph_node_set_def): New type.
6896 (cgraph_node_set) New type. Also declare vector functions.
6897 (struct cgraph_node_set_element_def): New type.
6898 (cgraph_node_set_element): Ditto.
6899 (cgraph_node_set_iterator): New iterator type.
6900 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
6901 cgraph_node_set_remove, dump_cgraph_node_set,
6902 debug_cgraph_node_set): New prototypes.
6903 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
6904 cgraph_node_set_size): New inlines.
6905 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
6906 including cgraph.h.
6907 (struct ipa_opt_pass): Add struct cgraph_node_set_def
6908 argument to function 'write_summary'.
6909 * ipa.c: Include ggc.h.
6910 (hash_cgraph_node_set_element,
6911 eq_cgraph_node_set_element, cgraph_node_set_new,
6912 cgraph_node_set_add, cgraph_node_set_remove,
6913 cgraph_node_set_find, dump_cgraph_node_set,
6914 debug_cgraph_node_set): New functions.
6915 * Makefile.in (ipa.o): Add dependency on GGC_H.
6916
c4551b28
IR
69172009-04-20 Ira Rosen <irar@il.ibm.com>
6918
6919 PR tree-optimization/39675
2ba9daa7 6920 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
47f402d1
UB
6921 check of the return code of vect_schedule_slp. Check that
6922 stmt_vec_info still exists for the statement, before checking its
6923 vectorization type.
c4551b28 6924
21a495fb
MM
69252009-04-20 Michael Matz <matz@suse.de>
6926
6927 * Makefile.in (generated_files): Take out $(simple_generated_c).
6928
8e208874
DK
69292009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
6930
6931 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
6932 (UINTPTR_TYPE): Likewise.
6933
a45e580b
JM
69342009-04-19 Joseph Myers <joseph@codesourcery.com>
6935
6936 PR c/37481
6937 * c-typeck.c (digest_init): Check for initializing an array with a
6938 string literal.
6939
20845d35
JM
69402009-04-19 Joseph Myers <joseph@codesourcery.com>
6941
6942 PR c/19771
6943 * c-semantics.c (pop_stmt_list): Propagate
6944 STATEMENT_LIST_HAS_LABEL to parent statement list.
6945
28143fdd
AN
69462009-04-19 Adam Nemet <anemet@caviumnetworks.com>
6947
6948 * config/mips/mips.h (mips_tune_attr): New macro.
6949 * config/mips/mips.md (cpu): Use it.
6950
da377db9
JM
69512009-04-19 Joseph Myers <joseph@codesourcery.com>
6952
6953 PR c/38243
6954 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
6955 declaring a tag.
6956
3baf459d
DN
69572009-04-19 Diego Novillo <dnovillo@google.com>
6958
6959 * toplev.c (compile_file): Move call to coverage_finish ...
6960 * cgraphunit.c (ipa_passes): ... here.
6961 Call cgraph_process_new_functions.
6962 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
6963 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
6964
b6fa5b01
JH
69652009-04-19 Jan Hubicka <jh@suse.cz>
6966
47f402d1
UB
6967 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
6968 cfun.
b6fa5b01
JH
6969 (dump_cgraph_node): Dump can throw external flag.
6970 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
6971
ca409efd
MLI
69722009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
6973
6974 PR c/32061
6975 PR c++/36954
6976 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
6977 * common.opt (Wlogical-op): Move from here...
6978 * c.opt (Wlogical-op): ... to here.
6979 * c-typeck.c (parser_build_binary_op): Update call to
6980 warn_logical_operator.
6981 * c-opts.c (c_common_post_options): Enable warn_logical_op with
6982 extra_warnings.
6983 * c-common.c (warn_logical_op): Update.
6984 * c-common.h (warn_logical_op): Update declaration.
6985
9db4cdd3
EB
69862009-04-19 Eric Botcazou <ebotcazou@adacore.com>
6987
6988 * tree.c (protected_set_expr_location): Fix formatting.
6989
f37acdf9
JM
69902009-04-18 Joseph Myers <joseph@codesourcery.com>
6991
6992 PR c/27676
6993 * c-typeck.c (readonly_warning): new.
6994 (build_unary_op, build_modify_expr): Use readonly_warning for
6995 storing into something readonly but not const-qualified.
6996
2b4b7036
JM
69972009-04-18 Joseph Myers <joseph@codesourcery.com>
6998
6999 PR c/22367
7000 * c-typeck.c (build_unary_op): Check for taking address of
7001 expression of type void.
7002
3ce62965
JM
70032009-04-18 Joseph Myers <joseph@codesourcery.com>
7004
7005 PR c/35210
7006 * c-typeck.c (build_function_call): Check for calling a function
7007 with qualified void return types. Call require_complete_type when
7008 generating a trap.
7009
2505c5ed
JH
70102009-04-18 Jan Hubicka <jh@suse.cz>
7011
7012 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
7013 Set nothrow flag.
7014 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
7015 can_throw_external flag.
7016 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
7017 * ipa-pure-const.c (ignore_edge): New function.
7018 (propagate): Compute order for NOTHROW computation; set NOTHROWs
7019 only over can_throw_external edges.
7020 (local_pure_const): Add nothrow flag.
7021 * ipa-utils.c (searchc): Add ignore_edge callback.
7022 (ipa_utils_reduced_inorder): Add ignore_edge callback.
7023 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
7024 (set_nothrow_function_flags): Update cgraph.
7025 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
7026
2586ba4b
RG
70272009-04-18 Richard Guenther <rguenther@suse.de>
7028
7029 PR middle-end/39804
7030 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
7031 (fold_stmt): ... this and ...
7032 (fold_stmt_inplace): ... this.
7033 (fold_stmt_1): Fold references in calls and asms.
7034 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
7035
1eefab17
KH
70362009-04-18 Kazu Hirata <kazu@codesourcery.com>
7037
7038 * tree-vrp.c (ssa_name_nonzero_p): Remove.
7039 * tree.h: Remove the prototype for ssa_name_nonzero_p.
7040
aa424b01
KH
70412009-04-18 Kazu Hirata <kazu@codesourcery.com>
7042
7043 * tree.c (function_args_count): Remove.
7044 * tree.h: Remove the prototype for function_args_count.
7045
613a896b
KH
70462009-04-18 Kazu Hirata <kazu@codesourcery.com>
7047
7048 * tree-iterator.c (expr_only): Remove.
7049 * tree.h: Remove the prototype for expr_only.
7050
579e694c
KH
70512009-04-18 Kazu Hirata <kazu@codesourcery.com>
7052
7053 * reginfo.c (cannot_change_mode_set_regs): Remove.
7054 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
7055
ee7e3ad3
AS
70562009-04-08 Anatoly Sokolov <aesok@post.ru>
7057
7058 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
7059 whether operands 0 and 1 overlaps.
7060
92ef7fb1
MLI
70612009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
7062
7063 PR middle-end/36902
7064 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
7065 pointer. Use warning_at instead of warning.
7066 (search_for_addr_array): Likewise.
7067 (check_array_bounds): Likewise.
7068 (check_all_array_refs): Check that the incoming edge is not in the
7069 list of edges to be removed.
7070 (check_all_array_refs): Avoid the temporal pointer.
7071 (vrp_visit_cond_stmt): Fix typo.
7072 (simplify_switch_using_ranges): Handle the case where the switch
7073 index is an integer constant.
7074
0e097268
AN
70752009-04-18 Adam Nemet <anemet@caviumnetworks.com>
7076
7077 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
7078
c782f1dd
KH
70792009-04-18 Kazu Hirata <kazu@codesourcery.com>
7080
7081 * doc/extend.texi, doc/invoke.texi: Fix typos.
7082
668fb0e8
CC
70832009-04-17 Cary Coutant <ccoutant@google.com>
7084
7085 * tree-flow-inline.h (get_lineno): Fix inverted test.
7086
4d4014c1
DN
70872009-04-17 Diego Novillo <dnovillo@google.com>
7088
7089 * tree-ssa-pre.c (create_expression_by_pieces): Remove
7090 assertion for AVAIL_OUT.
7091
2984e1b6
MF
70922009-04-17 Mike Frysinger <vapier@gentoo.org>
7093
7094 PR target/38627
7095 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
7096 * config/sh/linux-atomic.asm: Likewise.
7097
9994a182
DN
70982009-04-17 Diego Novillo <dnovillo@google.com>
7099
7100 * except.c (debug_eh_tree): New.
7101 (struct eh_region, struct eh_status): Move ...
7102 * except.h: ... here.
7103 (add_type_for_runtime): Declare extern.
7104 (lookup_type_for_runtime): Likewise.
7105 (debug_eh_tree): Declare.
7106 * Makefile.in (GTFILES): List except.h before except.c
7107
07485407
DN
71082009-04-17 Diego Novillo <dnovillo@google.com>
7109
47f402d1 7110 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
07485407
DN
7111 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
7112 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
7113 (find_vars_r): ... here.
7114 * tree-flow.h (find_referenced_vars_in): Declare.
7115 * tree-ssa-pre.c (create_expression_by_pieces): Assert
7116 that AVAIL_OUT exists for BLOCK.
7117 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
7118 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
7119 (tree-parloops.o): Likewise.
7120
4e53d196
SB
71212009-04-17 Simon Baldwin <simonb@google.com>
7122
7123 * toplev.c (default_tree_printer): Add handling for %E format.
7124
413d3aa8
DN
71252009-04-17 Diego Novillo <dnovillo@google.com>
7126
47f402d1
UB
7127 * tree-pretty-print.c (dump_generic_node): Add break after
7128 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
7129 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
7130 FUNCTION_TYPE together. Call print_struct_decl when printing
7131 structures and TDF_SLIM is not given.
413d3aa8
DN
7132 (print_struct_decl): Fix logic for detecting recursion.
7133
5a691e98
RAE
71342009-04-17 Rafael Avila de Espindola <espindola@google.com>
7135
7136 PR 31567
7137 * gcc.c (create_at_file): New.
7138 (compile_input_file_p): New.
7139 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
7140 * main.c (main): Update call to toplev_main.
7141 * toplev.c (toplev_main): Change signature. Call expandargv.
7142 * toplev.h (toplev_main): Change signature.
7143
9eacf7a6
EB
71442009-04-17 Eric Botcazou <ebotcazou@adacore.com>
7145
7146 * dwarf2out.c (field_byte_offset): Use the type size as the field size
7147 if the latter is not constant.
7148
58298177
DE
71492009-04-17 David Edelsohn <edelsohn@gnu.org>
7150
7151 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
7152
5b4c43d7
EB
71532009-04-17 Eric Botcazou <ebotcazou@adacore.com>
7154
7155 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
7156 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
7157
b51605c4
RG
71582009-04-17 Richard Guenther <rguenther@suse.de>
7159
7160 * tree-ssa-structalias.c (get_constraint_for_component_ref):
7161 Handle component references view-converting an invariant address.
7162
9e3be889
AN
71632009-04-17 Adam Nemet <anemet@caviumnetworks.com>
7164
7165 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
7166 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
7167 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
7168 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
7169 Use @deftypevr rather than @deftypevar.
7170
7c3e9dc3
RG
71712009-04-17 Richard Guenther <rguenther@suse.de>
7172
47f402d1 7173 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
7c3e9dc3
RG
7174 (get_prop_source_stmt): Likewise.
7175 (can_propagate_from): Likewise.
7176
aca600aa
AS
71772009-04-17 Andrew Stubbs <ams@codesourcery.com>
7178
7179 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
7180 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
7181 (--with-multilib-list): Add default value.
7182 * configure: Regenerate.
7183 * Makefile.in (TM_ENDIAN_CONFIG): Define.
7184 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
7185 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
7186 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
7187 Don't add default cpu to multilib list unnecessarily, but do enable
7188 the relevant compiler option..
7189 Add support for --with-multilib-list=<blank> and
7190 --with-multilib-list=!<somelib> to supress unwanted multilibs.
7191 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
7192 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
7193 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
7194 TM_MULTILIB_CONFIG.
7195 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
7196 (MULTILIB_OSDIRNAMES): New variable.
7197 * config/sh/t-1e: Delete file.
7198 * config/sh/t-mlib-sh1: Delete file.
7199 * config/sh/t-mlib-sh2: Delete file.
7200 * config/sh/t-mlib-sh2a: Delete file.
7201 * config/sh/t-mlib-sh2a-nofpu: Delete file.
7202 * config/sh/t-mlib-sh2a-single: Delete file.
7203 * config/sh/t-mlib-sh2a-single-only: Delete file.
7204 * config/sh/t-mlib-sh2e: Delete file.
7205 * config/sh/t-mlib-sh3e: Delete file.
7206 * config/sh/t-mlib-sh4: Delete file.
7207 * config/sh/t-mlib-sh4-nofpu: Delete file.
7208 * config/sh/t-mlib-sh4-single: Delete file.
7209 * config/sh/t-mlib-sh4-single-only: Delete file.
7210 * config/sh/t-mlib-sh4a: Delete file.
7211 * config/sh/t-mlib-sh4a-nofpu: Delete file.
7212 * config/sh/t-mlib-sh4a-single: Delete file.
7213 * config/sh/t-mlib-sh4a-single-only: Delete file.
7214 * config/sh/t-mlib-sh4al: Delete file.
7215 * config/sh/t-mlib-sh5-32media: Delete file.
7216 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
7217 * config/sh/t-mlib-sh5-64media: Delete file.
7218 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
7219 * config/sh/t-mlib-sh5-compact: Delete file.
7220 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
7221 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
7222 * doc/install.texi (Options specification): Add
7223 --with-multilib-list and --with-endian.
7224
cf8aba7f
RAE
72252009-04-17 Rafael Avila de Espindola <espindola@google.com>
7226
7227 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
7228 REVISION_c.
7229 (OBJS-common): Add plugin-version.o.
7230 (plugin-version.o): New.
7231 * gcc-plugin.h (plugin_gcc_version): New.
7232 (plugin_default_version_check): New.
7233 (plugin_init_func, plugin_init): Add version argument.
7234 * plugin-version.c: New.
7235 * plugin.c (str_plugin_gcc_version_name): New.
7236 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
7237 pass it to the init function.
7238 (plugin_default_version_check): New.
7239
61e20b90
RG
72402009-04-17 Richard Guenther <rguenther@suse.de>
7241
7242 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
7243 for decl-vs-decl disambiguation.
7244
90c6fd8a
AK
72452009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
7246
7247 * config/s390/s390.h (s390_tune_attr): New macro definition.
7248 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
7249
9fe9fe04
RG
72502009-04-17 Richard Guenther <rguenther@suse.de>
7251
7252 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
7253 (fold_stmt_r): Likewise.
7254 (maybe_fold_reference): New function.
7255 (fold_gimple_assign): Handle cases fold_stmt_r did.
7256 (fold_stmt): Do not use fold_stmt_r.
7257 (fold_stmt_inplace): Likewise.
7258
7e673273
RG
72592009-04-17 Richard Guenther <rguenther@suse.de>
7260
7261 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
7262 (record_equivalences_from_stmt): Remove useless checks and
7263 simplifications.
7264 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
7265 the type is already suitable.
7266
fabf2749
PB
72672009-04-17 Paolo Bonzini <bonzini@gnu.org>
7268
7269 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
7270
68f7b061
UB
72712009-04-17 Uros Bizjak <ubizjak@gmail.com>
7272
7273 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
7274 (CMPtype): Define as __gcc_CMPtype.
7275
532bfb0a
AJ
72762009-04-17 Aurelien Jarno <aurelien@aurel32.net>
7277
7278 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
7279 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
7280
e3ac77ff
RG
72812009-04-17 Richard Guenther <rguenther@suse.de>
7282
7283 PR tree-optimization/39746
7284 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
7285 special-casing for builtins and static variable use/def.
7286 (call_may_clobber_ref_p_1): Likewise.
7287
7072a650
ILT
72882009-04-16 Ian Lance Taylor <iant@google.com>
7289
7290 * df.h: Include "timevar.h".
7291 (struct df_problem): Change tv_id field to timevar_id_t.
7292 * tree-pass.h: Include "timevar.h".
7293 (struct opt_pass): Change tv_id field to timevar_id_t.
7294 * timevar.h (timevar_id_t): Define TV_NONE.
7295 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
7296 TV_NONE rather than tv_id != 0.
7297 (execute_one_pass): Likewise.
7298 * Makefile.in (DF_H): Add $(TIMEVAR_H).
7299 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
7300 dependencies to $(TREE_PASS_H).
7301 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
7302 to TV_NONE.
7303 (pass_branch_target_load_optimize2): Likewise.
7304 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
7305 (pass_outof_cfg_layout_mode): Likewise.
7306 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
7307 (pass_rebuild_cgraph_edges): Likewise.
7308 (pass_remove_cgraph_callee_edges): Likewise.
7309 * df-core.c (pass_df_initialize_opt): Likewise.
7310 (pass_df_initialize_no_opt): Likewise.
7311 (pass_df_finish): Likewise.
7312 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
7313 * except.c (pass_set_nothrow_function_flags): Likewise.
7314 (pass_convert_to_eh_region_ranges): Likewise.
7315 * final.c (pass_compute_alignments): Likewise.
7316 * function.c (pass_instantiate_virtual_regs): Likewise.
7317 (pass_init_function): Likewise.
7318 (pass_leaf_regs): Likewise.
7319 (pass_match_asm_constraints): Likewise.
7320 * gimple-low.c (pass_lower_cf): Likewise.
7321 (pass_mark_used_blocks): Likewise.
7322 * init-regs.c (pass_initialize_regs): Likewise.
7323 * integrate.c (pass_initial_value_sets): Likewise.
7324 * ira.c (pass_ira): Likewise.
7325 * jump.c (pass_cleanup_barriers): Likewise.
7326 * omp-low.c (pass_expand_omp): Likewise.
7327 (pass_lower_omp): Likewise.
7328 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
7329 * recog.c (pass_split_all_insns): Likewise.
7330 (pass_split_after_reload): Likewise.
7331 (pass_split_before_regstack): Likewise.
7332 (pass_split_before_sched2): Likewise.
7333 (pass_split_for_shorten_branches): Likewise.
7334 * reginfo.c (pass_reginfo_init): Likewise.
7335 (pass_subregs_of_mode_init): Likewise.
7336 (pass_subregs_of_mode_finish): Likewise.
7337 * passes.c (pass_postreload): Likewise.
7338 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
7339 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
7340 (pass_warn_function_return): Likewise.
7341 (pass_warn_function_noreturn): Likewise.
7342 * tree-complex.c (pass_lower_complex): Likewise.
7343 (pass_lower_complex_O0): Likewise.
7344 * tree-if-conv.c (pass_if_conversion): Likewise.
7345 * tree-into-ssa.c (pass_build_ssa): Likewise.
7346 * tree-mudflap.c (pass_mudflap_1): Likewise.
7347 (pass_mudflap_2): Likewise.
7348 * tree-nomudflap.c (pass_mudflap_1): Likewise.
7349 (pass_mudflap_2): Likewise.
7350 * tree-nrv.c (pass_return_slot): Likewise.
7351 * tree-object-size.c (pass_object_sizes): Likewise.
7352 * tree-optimize.c (pass_all_optimizations): Likewise.
7353 (pass_early_local_passes): Likewise.
7354 (pass_all_early_optimizations): Likewise.
7355 (pass_cleanup_cfg): Likewise.
7356 (pass_cleanup_cfg_post_optimizing): Likewise.
7357 (pass_free_datastructures): Likewise.
7358 (pass_free_cfg_annotations): Likewise.
7359 (pass_fixup_cfg): Likewise.
7360 (pass_init_datastructures): Likewise.
7361 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
7362 (pass_late_warn_uninitialized): Likewise.
7363 (pass_update_address_taken): Likewise.
7364 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
7365 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
7366 (pass_cse_sincos): Likewise.
7367 (pass_convert_to_rsqrt): Likewise.
7368 * tree-ssa-structalias.c (pass_build_alias): Likewise.
7369 * tree-stdarg.c (pass_stdarg): Likewise.
7370 * tree-tailcall.c (pass_tail_recursion): Likewise.
7371 (pass_tail_calls): Likewise.
7372 * tree-vect-generic.c (pass_lower_vector): Likewise.
7373 (pass_lower_vector_ssa): Likewise.
7374 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
7375
0051ef59
JM
73762009-04-16 Joseph Myers <joseph@codesourcery.com>
7377
7378 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
7379 XLR entry.
7380 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
7381 Handle -march=xlr.
7382 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
7383 logical and signext.
7384
b3f8558a
KK
73852009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
7386
7387 PR target/39767
7388 * config/sh/predicates.md (arith_operand): Check if the operand
7389 of TRUNCATE is a REG.
7390
f57597d9
KH
73912009-04-16 Kazu Hirata <kazu@codesourcery.com>
7392
7393 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
7394 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
7395
b172d063
KH
73962009-04-16 Kazu Hirata <kazu@codesourcery.com>
7397
7398 * tree-iterator.c (tsi_split_statement_list_after,
7399 tsi_split_statement_list_before): Remove.
7400 * tree-iterator.h: Remove the prototypes for
532bfb0a 7401 tsi_split_statement_list_after and tsi_split_statement_list_before.
b172d063 7402
78fe4f1f
KH
74032009-04-16 Kazu Hirata <kazu@codesourcery.com>
7404
7405 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
7406 * tree-ssa-propagate.h: Remove the prototype for
7407 stmt_makes_single_load.
7408
43dd3201
KH
74092009-04-16 Kazu Hirata <kazu@codesourcery.com>
7410
7411 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
7412 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
7413
4252a4aa
KH
74142009-04-16 Kazu Hirata <kazu@codesourcery.com>
7415
7416 * tree-iterator.c (EXPR_LAST_BODY): Remove.
7417
bfb69968
KH
74182009-04-16 Kazu Hirata <kazu@codesourcery.com>
7419
7420 * except.c (eh_region_outer_p): Remove.
7421 * except.h: Remove the prototype for eh_region_outer_p.
7422
c7db7fa5
KH
74232009-04-16 Kazu Hirata <kazu@codesourcery.com>
7424
7425 * function.c (current_function_assembler_name): Remove.
7426 * function.h: Remove the prototype for
7427 current_function_assembler_name.
7428
efc0b2bd
ILT
74292009-04-16 Ian Lance Taylor <iant@google.com>
7430
532bfb0a 7431 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
efc0b2bd
ILT
7432 (add_reg_note): Call alloc_reg_note.
7433 * rtl.h (alloc_reg_note): Declare.
7434 * combine.c (try_combine): Use alloc_reg_note.
7435 (recog_for_combine, move_deaths): Likewise.
7436 (distribute_notes): Use alloc_reg_note and add_reg_note.
7437 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
7438 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
7439 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
7440
6080348f
VM
74412009-04-16 Vladimir Makarov <vmakarov@redhat.com>
7442
7443 PR rtl-optimization/39762
7444 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
7445 ira_may_move_out_cost): Add comments about way of their usage.
532bfb0a 7446 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
2ba9daa7 7447
6080348f
VM
7448 * ira-conflicts.c (process_regs_for_copy): Use function
7449 ira_get_register_move_cost instead of global
7450 ira_register_move_cost.
7451
7452 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
7453 color_pass, move_spill_restore, update_curr_costs): Ditto.
7454
7455 * ira-lives.c (process_single_reg_class_operands): Ditto.
7456
7457 * ira-emit.c (emit_move_list): Ditto.
7458
7459 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
7460 (record_reg_classes): Ditto. Use functions
7461 ira_get_register_move_cost and ira_get_may_move_cost instead of
7462 global vars ira_register_move_cost, ira_may_move_out_cost and
7463 ira_may_move_in_cost.
7464 (record_address_regs): Don't call ira_init_register_move_cost.
7465 Use function ira_get_may_move_cost instead of global
7466 ira_may_move_in_cost.
7467 (process_bb_node_for_hard_reg_moves): Use function
532bfb0a 7468 ira_get_register_move_cost instead of global ira_register_move_cost.
6080348f 7469 (ira_costs): Don't call ira_init_register_move_cost.
2ba9daa7 7470
646bea10
RG
74712009-04-16 Richard Guenther <rguenther@suse.de>
7472
7473 * tree-cfg.c (verify_gimple_assign_binary):
7474 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
7475 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
7476 (create_general_new_stmt): Note that this function is broken.
7477
02e819ff
RAE
74782009-04-16 Rafael Avila de Espindola <espindola@google.com>
7479
7480 * common.opt (fhelp): Add Var(help_flag).
7481 * gcc-plugin.h (plugin_info): Add help.
7482 * plugin.c (plugin_name_args): Add help.
7483 (register_plugin_info): Set plugin->help.
7484 (print_help_one_plugin): New.
7485 (print_plugins_help): New.
7486 * plugin.h (print_plugins_help): New.
7487 * toplev.c (toplev_main): Call print_plugins_help if needed.
7488
ccacdf06
RG
74892009-04-16 Richard Guenther <rguenther@suse.de>
7490
7491 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
7492 (gimple_ior_addresses_taken_1): New function.
7493 (gimple_ior_addresses_taken): Likewise.
7494 * gimple.h (struct gimple_statement_with_ops_base): Remove
7495 addresses_taken member.
7496 (gimple_ior_addresses_taken): Declare.
7497 (gimple_addresses_taken, gimple_addresses_taken_ptr,
7498 gimple_set_addresses_taken): Remove.
7499 * ipa-reference.c (mark_address): New function.
7500 (scan_stmt_for_static_refs): Use it for marking addresses taken.
7501 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
7502 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
7503 (gimple_add_to_addresses_taken): Remove.
7504 (get_tmr_operands): Call mark_address_taken.
7505 (get_asm_expr_operands): Likewise.
7506 (get_expr_operands): Likewise.
7507 (build_ssa_operands): Do not clear the addresses_taken bitmap.
7508 (free_stmt_operands): Do not free it.
7509 * tree-ssa.c (delete_tree_ssa): Likewise.
7510 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
7511
346ef3fa
RG
75122009-04-16 Richard Guenther <rguenther@suse.de>
7513
7514 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
7515 (walk_stmt_load_store_ops): Likewise.
7516 * gimple.c (get_base_loadstore): New function.
7517 (walk_stmt_load_store_addr_ops): Likewise.
7518 (walk_stmt_load_store_ops): Likewise.
7519 * ipa-pure-const.c (check_op): Simplify.
7520 (check_load, check_store): New functions.
7521 (check_stmt): Use walk_stmt_load_store_ops.
7522 * ipa-reference.c (mark_load): Adjust signature.
7523 (mark_store): Likewise.
7524 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
7525
44e9f006
RAE
75262009-04-16 Rafael Avila de Espindola <espindola@google.com>
7527
7528 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
7529 (plugin_info): New.
7530 * opts.c (common_handle_option): Don't call print_version.
7531 * plugin.c (plugin_name_args): Add version.
7532 (register_plugin_info): New.
7533 (register_callback): Handle PLUGIN_INFO.
7534 (try_init_one_plugin): New.
7535 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
7536 if failed to init.
7537 (finalize_one_plugin): New.
7538 (finalize_plugins): New.
7539 (print_one_plugin): New.
7540 (print_plugins_versions): New.
7541 * plugin.h (print_plugins_versions): New.
7542 (finalize_plugins): New.
7543 * toplev.c (compile_file): Don't call initialize_plugins.
7544 (print_version): Call print_plugins_versions.
7545 (toplev_main): Call initialize_plugins. Print version if needed.
7546 Call finalize_plugins.
7547
41fd0f9b
RAE
75482009-04-16 Rafael Avila de Espindola <espindola@google.com>
7549
7550 * common.opt (fversion): New.
7551 * gcc.c (print_version): New.
7552 (process_command): Don't print the version. Just set print_version.
7553 (main): Print version. Call subprocesses if print_version and
7554 verbose_flag are set.
7555 * opts.c (common_handle_option): Handle OPT_fversion.
7556
550918ca 75572009-04-16 Richard Guenther <rguenther@suse.de>
532bfb0a 7558 Ira Rosen <irar@il.ibm.com>
550918ca
RG
7559
7560 PR tree-optimization/39698
7561 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
7562 type of the reduction variable. Only generate the def if
7563 it is needed.
7564
7565 * omp-low.c (expand_omp_for_generic): When converting to a pointer
7566 make sure to first convert to an integer of the same precision.
7567 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
7568 the type of the evolution correctly in computing the new
7569 induction variable base.
7570
54634841
RG
75712009-04-16 Richard Guenther <rguenther@suse.de>
7572
7573 PR middle-end/39625
7574 * tree-cfg.c (make_blocks): Split statements with to-be
7575 abnormal SSA names on the lhs.
7576
b6fc2cdb
PB
75772009-04-16 Paolo Bonzini <bonzini@gnu.org>
7578
7579 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
7580 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
7581 * c-typeck.c (really_start_incremental_init): Likewise.
7582 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
7583 (TARGET_INITIALIZER): Remove it.
7584 * target.h (struct target): Remove vector_opaque_p.
7585 * tree.c (build_opaque_vector_type): New.
7586 * tree.h (TYPE_VECTOR_OPAQUE): New.
7587 (build_opaque_vector_type): Declare.
7588 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
7589 * config/rs6000/rs6000.c (build_opaque_vector_type,
7590 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
7591 (rs6000_init_builtins): Use build_opaque_vector_type for
7592 opaque_V4SI_type_node.
7593
a417cdd9
CM
75942009-04-15 Catherine Moore <clm@codesourcery.com>
7595
532bfb0a
AJ
7596 * debug.h (set_name): Declare.
7597 * dwarf2out.c (dwarf2out_set_name): Declare.
7598 (dwarf2_debug_hooks): Add set_name.
7599 (find_AT_string): New.
7600 (add_AT_string): Call find_AT_string.
7601 (dwarf2out_set_name): New.
7602 * cp/decl.c (grokdeclarator): Call set_name.
7603 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
7604 * debug.c (do_nothing_debug_hooks): Likewise.
7605 * dbxout.c (dbx_debug_hooks): Likewise.
7606 * sdbout.c (sdb_debug_hooks): Likewise.
a417cdd9 7607
60839f5d 76082009-04-15 Michael Eager <eager@eagercon.com>
2c5cac98 7609
532bfb0a
AJ
7610 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
7611 reg for single-precision FPU.
7612 * config/rs6000/rs6000.md (movsi_internal1): Only for
7613 !TARGET_SINGLE_FPU.
7614 (movsi_internal1_single): New. Add pattern to move SI values to/from
2c5cac98
ME
7615 single-precision FP regs.
7616
ada39f0b
RG
76172009-04-15 Richard Guenther <rguenther@suse.de>
7618
7619 * omp-low.c (lower_rec_input_clauses): Build correct address
7620 expressions.
7621 (expand_omp_for_generic): Fix multiplication type.
532bfb0a 7622 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
ada39f0b
RG
7623 (generate_memset_zero): Fix types.
7624 * tree-profile.c (prepare_instrumented_value): Correctly
7625 widen a pointer.
7626
6866c6e8
ILT
76272009-04-15 Ian Lance Taylor <iant@google.com>
7628
7629 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
7630 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
7631 for -Wall and for -Wc++-compat.
7632 (c_common_post_options): For C++, set warn_enum_compare if not
7633 already set.
7634 * c-tree.h (struct c_expr): Add field original_type.
7635 (build_external_ref): Update declaration.
7636 * c-parser.c (c_parser_braced_init): Set original_type.
7637 (c_parser_initelt): Likewise.
7638 (c_parser_expr_no_commas): Likewise.
7639 (c_parser_conditional_expression): Likewise.
7640 (c_parser_cast_expression): Likewise.
7641 (c_parser_unary_expression): Likewise. Pull setting of
7642 original_code to top of function.
7643 (c_parser_sizeof_expression): Set original_type.
7644 (c_parser_alignof_expression): Likewise.
7645 (c_parser_postfix_expression): Likewise. Pull setting of
7646 original_code to top of function.
532bfb0a 7647 (c_parser_postfix_expression_after_paren_type): Set original_type.
6866c6e8
ILT
7648 (c_parser_postfix_expression_after_primary): Likewise.
7649 (c_parser_expression): Likewise.
7650 * c-typeck.c (build_external_ref): Add type parameter. Change all
7651 callers.
7652 (c_expr_sizeof_expr): Set original_type field.
7653 (parser_build_unary_op): Likewise.
7654 (parser_build_binary_op): Likewise. Optionally warn about
7655 comparisons of enums of different types.
7656 (digest_init): Set original_type field.
7657 (really_start_incremental_init): Likewise.
7658 (push_init_level, pop_init_level): Likewise.
7659 * doc/invoke.texi (Warning Options): -Wenum-compare now
7660 supported in C.
7661
f116fecf
RG
76622009-04-15 Richard Guenther <rguenther@suse.de>
7663
7664 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
7665 out a necessary conversion.
7666 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
7667 names we didn't value number.
7668 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
7669
25e20805
RG
76702009-04-15 Richard Guenther <rguenther@suse.de>
7671
7672 PR tree-optimization/39764
7673 * tree-ssa-ccp.c (get_value): Canonicalize value with
7674 canonicalize_float_value.
7675
90cc3676
JH
76762009-04-15 Jan Hubicka <jh@suse.cz>
7677
7678 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
7679 Wrong version of patch.
7680
6d14c006
JH
76812009-04-15 Jan Hubicka <jh@suse.cz>
7682
7683 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
7684
5afaa917
NS
76852009-04-15 Nathan Sidwell <nathan@codesourcery.com>
7686
7687 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
7688 our distinct integral and vector types.
7689
3b482fca
RAE
76902009-04-15 Rafael Avila de Espindola <espindola@google.com>
7691
7692 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
7693 * init.c (build_vtbl_address): Remove call to assemble_external.
7694
6cd1d2e2
DJ
76952009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
7696
7697 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
7698 output for other floating point modes.
7699
dab71827
DN
77002009-04-14 Diego Novillo <dnovillo@google.com>
7701
7702 * diagnostic.c (diagnostic_report_diagnostic): Do not
7703 warn about loaded plugins for DK_ERROR and DK_WARNING.
7704 * c-decl.c (declspecs_add_type): Move call to
7705 invoke_plugin_callbacks ...
7706 * c-parser.c (c_parser_declspecs): ... here.
7707 * plugin.c (dump_active_plugins): Tidy output.
7708
68a607d8
DN
77092009-04-14 Diego Novillo <dnovillo@google.com>
7710 Le-Chun Wu <lcwu@google.com>
7711
7712 * configure.ac: Add --enable-plugin support.
7713 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
7714 * Makefile.in (PLUGIN_H): Define.
7715 Export ENABLE_PLUGIN and GMPINC to site.exp.
7716 Add PLUGINLIBS to link command.
7717 Add/modify dependencies for plugin.o and files including plugin.h.
7718 (plugin.o): New.
7719 * config.in: Regenerate.
2ba9daa7 7720
68a607d8
DN
7721 * opts.c (common_handle_option): Handle OPT_fplugin_ and
7722 OPT_fplugin_arg_.
7723
77242009-04-14 Le-Chun Wu <lcwu@google.com>
7725
7726 * tree-pass.h (register_one_dump_file): Add a prototype for
7727 register_one_dump_file.
7728 * toplev.c (compile_file): Call initialize_plugins.
7729 (do_compile): Call invoke_plugin_callbacks.
7730 (toplev_main): Call invoke_plugin_callbacks.
7731 * common.opt: Add -fplugin= and -fplugin-arg-.
7732 * gcc-plugin.h: New public header file for plugins to include.
7733 * plugin.c: New source file.
7734 * plugin.h: New internal header file.
7735 * passes.c (register_one_dump_file): Make it external.
2ba9daa7 7736
68a607d8
DN
7737 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
7738
77392009-04-14 Diego Novillo <dnovillo@google.com>
7740
7741 * doc/plugins.texi: New.
7742 * doc/gccint.texi: Add reference to Plugins chapter.
7743 * doc/invoke.texi: Document -fplugin and -fplugin-arg
7744 * diagnostic.c (diagnostic_report_diagnostic): Warn about
7745 loaded plugins, if any.
7746 * timevar.def (TV_PLUGIN_INIT): Define.
7747 (TV_PLUGIN_RUN): Define.
7748 * plugin.c: Include timevar.h
7749 (plugins_active_p): New.
7750 (dump_active_plugins): New.
7751 (debug_active_plugins): New.
7752
50617257
JM
77532009-04-14 Joseph Myers <joseph@codesourcery.com>
7754
7755 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
7756 library paths.
7757 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
7758
b32f6fff
KH
77592009-04-14 Kazu Hirata <kazu@codesourcery.com>
7760
7761 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
7762 the same as a minus without a shift.
7763
85d04fa2
NC
77642009-04-14 Nick Clifton <nickc@redhat.com>
7765
7766 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
7767 comparisons with small integers will always produce a short
7768 branch.
7769
e495a0c8
RAE
77702009-04-14 Rafael Avila de Espindola <espindola@google.com>
7771
7772 Merge:
e495a0c8
RAE
7773 2008-12-19 Diego Novillo <dnovillo@google.com>
7774
532bfb0a 7775 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
e495a0c8 7776
ad41bd84 77772009-04-14 Richard Guenther <rguenther@suse.de>
587aa063
RG
7778
7779 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
7780 verification.
7781 (verify_gimple_assign_binary): Likewise. Handle shifts and
7782 rotates correctly.
7783 (verify_gimple_phi): Print the mismatched argument position.
7784 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
7785 Fix types.
7786 (vect_update_init_of_dr): Likewise.
7787 * matrix-reorg.c (transform_access_sites): Do what the
7788 comment suggests.
7789 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
7790
60839f5d 77912009-04-13 Michael Eager <eager@eagercon.com>
9eca1774
ME
7792
7793 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
7794 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
7795 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
2ba9daa7 7796 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
9eca1774
ME
7797 remove duplicate config
7798
b0e2d008
DR
77992009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7800
7801 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
7802 file_name:line_number type locator of the call site.
2ba9daa7 7803
1244a8b7
VM
78042009-04-13 Vladimir Makarov <vmakarov@redhat.com>
7805
7806 * genautomata.c: Put blank after comma.
7807 (automaton_decls): New.
7808 (struct unit_usage): Add comments to member next.
7809 (store_alt_unit_usage): Keep the list ordered.
7810 (unit_present_on_list_p, equal_alternatives_p): New.
7811 (check_regexp_units_distribution): Check units distribution
7812 correctness correctly.
7813 (main): Don't write automata if error is found. Return correct
7814 exit code.
2ba9daa7 7815
1244a8b7
VM
7816 * config/m68k/cf.md (cfv4_ds): Remove.
7817 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
7818 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
7819
7820 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
7821 power4-load-ext, power4-store, power4-store-update,
7822 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
7823 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
7824 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
7825 power4-sqrt, power4-isync): Modify reservation to make correct
7826 unit distribution to automata.
7827
7828 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
7829 power5-store-update, power5-two, power5-three, power5-lmul,
7830 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
2ba9daa7 7831
f7dd1864
AN
78322009-04-13 Adam Nemet <anemet@caviumnetworks.com>
7833
7834 * except.c (pass_set_nothrow_function_flags): Set name and add
7835 TODO_dump_func.
7836 (set_nothrow_function_flags): Mention in the dump file when
7837 changing a function to nothrow.
7838
59a1171f
OS
78392009-04-13 Ozkan Sezer <sezeroz@gmail.com>
7840
7841 PR/39066
7842 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
7843 instead of unsigned long.
7844
934c2060
RR
78452009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7846
f7dd1864
AN
7847 * config/arm/arm.c (return_used_this_function): Remove.
7848 (arm_output_function_prologue): Remove use of
934c2060 7849 return_used_this_function.
f7dd1864 7850 (output_return_instruction): Replace use of
934c2060
RR
7851 return_used_this_function
7852 by cfun->machine->return_used_this_function.
f7dd1864
AN
7853 (arm_output_epilogue): Likewise.
7854 (arm_output_function_epilogue): Likewise.
7855 (thumb_unexpanded_epilogue): Likewise.
7856 * config/arm/arm.h (struct machine_function):
934c2060 7857 New member return_used_this_function.
f7dd1864 7858
ae5cc016
MM
78592009-04-12 Mark Mitchell <mark@codesourcery.com>
7860
7861 * doc/install.texi: Correct description of default directory for
7862 --with-gxx-include-dir.
7863
a0ce68df 78642009-04-12 Eric Botcazou <ebotcazou@adacore.com>
849d624b
EB
7865
7866 * fold-const.c (build_range_check): Properly deal with enumeral and
7867 boolean base types.
7868
3906a4a1
SB
78692009-04-12 Steven Bosscher <steven@gcc.gnu.org>
7870
7871 * doc/invoke.texi (max_gcse_passes): Remove documentation.
7872 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
7873 * params.h (MAX_GCSE_PASSES): Remove.
7874 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
7875 in sequence. Remove ability to run multiple passes.
7876 (bypass_jumps): Report run as third CPROP pass.
7877
efaadb93
AN
78782009-04-12 Adam Nemet <anemet@caviumnetworks.com>
7879
7880 PR middle-end/39651
7881 * except.c (can_throw_external): Look at each insn in a SEQUENCE
7882 when deciding whether the whole SEQUENCE can throw.
7883
4c48007b
UB
78842009-04-12 Uros Bizjak <ubizjak@gmail.com>
7885
7886 PR target/39740
7887 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
7888 offseted label references.
7889
b4104018
JH
78902009-04-11 Jan Hubicka <jh@suse.cz>
7891
7892 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
7893
32848948
RG
78942009-04-11 Richard Guenther <rguenther@suse.de>
7895
7896 PR middle-end/39732
7897 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
7898 return variables as TREE_ADDRESSABLE.
7899
8810712e
RG
79002009-04-11 Richard Guenther <rguenther@suse.de>
7901
7902 PR tree-optimization/39713
7903 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
7904 reference trees have SSA_NAME operands.
7905
fa78c0c1
RG
79062009-04-11 Richard Guenther <rguenther@suse.de>
7907
7908 PR c/39712
7909 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
7910 address expressions.
7911
4d722130
DK
79122009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
7913
7914 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
7915 match changes in Cygwin 1.7
7916 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
7917 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
7918
567a90f5
PB
79192009-04-10 Paolo Bonzini <bonzini@gnu.org>
7920
7921 PR tree-optimization/39701
7922 * doc/invoke.texi (Optimization Options): Document change in
7923 meaning and initialization of -fdelete-null-pointer-checks.
7924
1ad2f450
L
79252009-04-10 H.J. Lu <hongjiu.lu@intel.com>
7926
7927 PR middle-end/39701
7928 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
7929
7930 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
7931 here.
7932
7933 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
7934
1afc5373
CF
79352009-04-10 Chao-ying Fu <fu@mips.com>
7936
7937 * doc/tm.texi (Instruction Output): Document
7938 TARGET_ASM_FINAL_POSTSCAN_INSN.
7939 * target.h (final_postscan_insn): New field in asm_out.
7940 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
7941 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
7942 * final.c (final_scan_insn): Call
7943 targetm.asm_out.final_postscan_insn after outputting
7944 an asm macro and a normal instruction.
7945
7946 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
7947 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
7948 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
7949 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
7950 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
7951
4d35e75c
PB
79522009-04-10 Paolo Bonzini <bonzini@gnu.org>
7953
7954 PR middle-end/39701
1ad2f450
L
7955 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
7956 variables as non-NULL even with -fdelete-null-pointer-checks.
4d35e75c 7957
62c49b83
L
79582009-04-10 H.J. Lu <hongjiu.lu@intel.com>
7959
7960 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
7961
80558628
L
79622009-04-09 H.J. Lu <hongjiu.lu@intel.com>
7963
7964 PR target/39678
7965 * config/i386/i386.c (classify_argument): Handle SCmode with
7966 (bit_offset % 64) != 0.
7967
8c70d28b
SL
79682009-04-09 Sandra Loosemore <sandra@codesourcery.com>
7969
7970 * doc/invoke.texi (Optimize Options): Add cross-reference to
7971 -Q --help=optimizers examples.
7972
e1ff19bf
BE
79732009-04-10 Ben Elliston <bje@au.ibm.com>
7974
7975 PR target/36800
7976 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
7977 regalign for the reg == fpr and TDmode case.
7978
52daca75
DA
79792009-04-09 David Ayers <ayers@fsfe.org>
7980
7981 PR objc/29200
7982 * objc/objc-act.c (warn_with_method): Remove helper function.
7983 (check_duplicates): Call warning and inform directly.
7984 (really_start_method): Likewise.
7985
b45f0e58
PB
79862009-04-09 Paolo Bonzini <bonzini@gnu.org>
7987
7988 * expmed.c (expand_divmod): Always use a comparison for a division
7989 by a large unsigned integer.
7990
1ad2f450
L
7991 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
7992 for things others than variables or functions as nonzero.
b45f0e58 7993
748086b7
JJ
79942009-04-09 Nick Clifton <nickc@redhat.com>
7995
7996 * unwind-compat.c: Change copyright header to refer to version
7997 3 of the GNU General Public License with version 3.1 of the
7998 GCC Runtime Library Exception and to point readers at the
7a715bba 7999 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
748086b7
JJ
8000 * config/alpha/crtfastmath.c: Likewise.
8001 * config/alpha/linux-unwind.h: Likewise.
8002 * config/alpha/qrnnd.asm: Likewise.
8003 * config/alpha/vms-crt0-64.c: Likewise.
8004 * config/alpha/vms-crt0.c: Likewise.
8005 * config/alpha/vms-dwarf2.asm: Likewise.
8006 * config/alpha/vms-dwarf2eh.asm: Likewise.
8007 * config/alpha/vms-psxcrt0-64.c: Likewise.
8008 * config/alpha/vms-psxcrt0.c: Likewise.
8009 * config/alpha/vms_tramp.asm: Likewise.
8010 * config/arc/initfini.c: Likewise.
8011 * config/arc/lib1funcs.asm: Likewise.
8012 * config/arm/bpabi-v6m.S: Likewise.
8013 * config/arm/bpabi.S: Likewise.
8014 * config/arm/bpabi.c: Likewise.
8015 * config/arm/crti.asm: Likewise.
8016 * config/arm/crtn.asm: Likewise.
8017 * config/arm/ieee754-df.S: Likewise.
8018 * config/arm/ieee754-sf.S: Likewise.
8019 * config/arm/lib1funcs.asm: Likewise.
8020 * config/arm/libunwind.S: Likewise.
8021 * config/arm/linux-atomic.c: Likewise.
8022 * config/arm/mmintrin.h: Likewise.
8023 * config/arm/pr-support.c: Likewise.
8024 * config/arm/unaligned-funcs.c: Likewise.
8025 * config/arm/unwind-arm.c: Likewise.
8026 * config/arm/unwind-arm.h: Likewise.
8027 * config/avr/libgcc.S: Likewise.
8028 * config/bfin/crti.s: Likewise.
8029 * config/bfin/crtlibid.s: Likewise.
8030 * config/bfin/crtn.s: Likewise.
8031 * config/bfin/lib1funcs.asm: Likewise.
8032 * config/bfin/linux-unwind.h: Likewise.
8033 * config/cris/arit.c: Likewise.
8034 * config/cris/cris_abi_symbol.c: Likewise.
8035 * config/darwin-64.c: Likewise.
8036 * config/darwin-crt2.c: Likewise.
8037 * config/darwin-crt3.c: Likewise.
8038 * config/darwin.h: Likewise.
8039 * config/dbxelf.h: Likewise.
8040 * config/dfp-bit.c: Likewise.
8041 * config/dfp-bit.h: Likewise.
8042 * config/elfos.h: Likewise.
8043 * config/fixed-bit.c: Likewise.
8044 * config/fixed-bit.h: Likewise.
8045 * config/fp-bit.c: Likewise.
8046 * config/fp-bit.h: Likewise.
8047 * config/fr30/crti.asm: Likewise.
8048 * config/fr30/crtn.asm: Likewise.
8049 * config/fr30/lib1funcs.asm: Likewise.
8050 * config/freebsd-spec.h: Likewise.
8051 * config/frv/cmovd.c: Likewise.
8052 * config/frv/cmovh.c: Likewise.
8053 * config/frv/cmovw.c: Likewise.
8054 * config/frv/frvbegin.c: Likewise.
8055 * config/frv/frvend.c: Likewise.
8056 * config/frv/lib1funcs.asm: Likewise.
8057 * config/glibc-stdint.h: Likewise.
8058 * config/h8300/clzhi2.c: Likewise.
8059 * config/h8300/crti.asm: Likewise.
8060 * config/h8300/crtn.asm: Likewise.
8061 * config/h8300/ctzhi2.c: Likewise.
8062 * config/h8300/fixunssfsi.c: Likewise.
8063 * config/h8300/lib1funcs.asm: Likewise.
8064 * config/h8300/parityhi2.c: Likewise.
8065 * config/h8300/popcounthi2.c: Likewise.
8066 * config/i386/ammintrin.h: Likewise.
8067 * config/i386/att.h: Likewise.
8068 * config/i386/avxintrin.h: Likewise.
8069 * config/i386/biarch64.h: Likewise.
8070 * config/i386/bmmintrin.h: Likewise.
8071 * config/i386/cpuid.h: Likewise.
8072 * config/i386/cross-stdarg.h: Likewise.
8073 * config/i386/crtfastmath.c: Likewise.
8074 * config/i386/crtprec.c: Likewise.
8075 * config/i386/cygming-crtbegin.c: Likewise.
8076 * config/i386/cygming-crtend.c: Likewise.
8077 * config/i386/cygwin.asm: Likewise.
8078 * config/i386/emmintrin.h: Likewise.
8079 * config/i386/gmm_malloc.h: Likewise.
8080 * config/i386/gthr-win32.c: Likewise.
8081 * config/i386/i386.h: Likewise.
8082 * config/i386/immintrin.h: Likewise.
8083 * config/i386/linux-unwind.h: Likewise.
8084 * config/i386/linux64.h: Likewise.
8085 * config/i386/mm3dnow.h: Likewise.
8086 * config/i386/mmintrin-common.h: Likewise.
8087 * config/i386/mmintrin.h: Likewise.
8088 * config/i386/nmmintrin.h: Likewise.
8089 * config/i386/pmm_malloc.h: Likewise.
8090 * config/i386/pmmintrin.h: Likewise.
8091 * config/i386/smmintrin.h: Likewise.
8092 * config/i386/sol2-c1.asm: Likewise.
8093 * config/i386/sol2-ci.asm: Likewise.
8094 * config/i386/sol2-cn.asm: Likewise.
8095 * config/i386/sol2-gc1.asm: Likewise.
8096 * config/i386/tmmintrin.h: Likewise.
8097 * config/i386/unix.h: Likewise.
8098 * config/i386/w32-unwind.h: Likewise.
8099 * config/i386/wmmintrin.h: Likewise.
8100 * config/i386/x86-64.h: Likewise.
8101 * config/i386/x86intrin.h: Likewise.
8102 * config/i386/xmmintrin.h: Likewise.
8103 * config/ia64/crtbegin.asm: Likewise.
8104 * config/ia64/crtend.asm: Likewise.
8105 * config/ia64/crtfastmath.c: Likewise.
8106 * config/ia64/crti.asm: Likewise.
8107 * config/ia64/crtn.asm: Likewise.
8108 * config/ia64/fde-glibc.c: Likewise.
8109 * config/ia64/lib1funcs.asm: Likewise.
8110 * config/ia64/linux-unwind.h: Likewise.
8111 * config/ia64/quadlib.c: Likewise.
8112 * config/ia64/unwind-ia64.c: Likewise.
8113 * config/linux.h: Likewise.
8114 * config/m32c/m32c-lib1.S: Likewise.
8115 * config/m32c/m32c-lib2-trapv.c: Likewise.
8116 * config/m32c/m32c-lib2.c: Likewise.
8117 * config/m32r/initfini.c: Likewise.
8118 * config/m68hc11/larith.asm: Likewise.
8119 * config/m68hc11/m68hc11-crt0.S: Likewise.
8120 * config/m68k/cf.md: Likewise.
8121 * config/m68k/crti.s: Likewise.
8122 * config/m68k/crtn.s: Likewise.
8123 * config/m68k/lb1sf68.asm: Likewise.
8124 * config/m68k/linux-unwind.h: Likewise.
8125 * config/mcore/crti.asm: Likewise.
8126 * config/mcore/crtn.asm: Likewise.
8127 * config/mcore/lib1.asm: Likewise.
8128 * config/mips/linux-unwind.h: Likewise.
8129 * config/mips/loongson.h: Likewise.
8130 * config/mips/mips16.S: Likewise.
8131 * config/mmix/crti.asm: Likewise.
8132 * config/mmix/crtn.asm: Likewise.
8133 * config/pa/fptr.c: Likewise.
8134 * config/pa/hpux-unwind.h: Likewise.
8135 * config/pa/lib2funcs.asm: Likewise.
8136 * config/pa/linux-atomic.c: Likewise.
8137 * config/pa/linux-unwind.h: Likewise.
8138 * config/pa/milli64.S: Likewise.
8139 * config/pa/quadlib.c: Likewise.
8140 * config/pa/stublib.c: Likewise.
8141 * config/picochip/libgccExtras/adddi3.asm: Likewise.
8142 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
8143 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
8144 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
8145 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
8146 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
8147 * config/picochip/libgccExtras/divmod15.asm: Likewise.
8148 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
8149 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
8150 * config/picochip/libgccExtras/longjmp.asm: Likewise.
8151 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
8152 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
8153 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
8154 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
8155 * config/picochip/libgccExtras/setjmp.asm: Likewise.
8156 * config/picochip/libgccExtras/subdi3.asm: Likewise.
8157 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
8158 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
8159 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
8160 * config/rs6000/750cl.h: Likewise.
8161 * config/rs6000/altivec.h: Likewise.
8162 * config/rs6000/biarch64.h: Likewise.
8163 * config/rs6000/crtresfpr.asm: Likewise.
8164 * config/rs6000/crtresgpr.asm: Likewise.
8165 * config/rs6000/crtresxfpr.asm: Likewise.
8166 * config/rs6000/crtresxgpr.asm: Likewise.
8167 * config/rs6000/crtsavfpr.asm: Likewise.
8168 * config/rs6000/crtsavgpr.asm: Likewise.
8169 * config/rs6000/darwin-asm.h: Likewise.
8170 * config/rs6000/darwin-fallback.c: Likewise.
8171 * config/rs6000/darwin-fpsave.asm: Likewise.
8172 * config/rs6000/darwin-ldouble.c: Likewise.
8173 * config/rs6000/darwin-tramp.asm: Likewise.
8174 * config/rs6000/darwin-unwind.h: Likewise.
8175 * config/rs6000/darwin-vecsave.asm: Likewise.
8176 * config/rs6000/darwin-world.asm: Likewise.
8177 * config/rs6000/e500crtres32gpr.asm: Likewise.
8178 * config/rs6000/e500crtres64gpr.asm: Likewise.
8179 * config/rs6000/e500crtres64gprctr.asm: Likewise.
8180 * config/rs6000/e500crtrest32gpr.asm: Likewise.
8181 * config/rs6000/e500crtrest64gpr.asm: Likewise.
8182 * config/rs6000/e500crtresx32gpr.asm: Likewise.
8183 * config/rs6000/e500crtresx64gpr.asm: Likewise.
8184 * config/rs6000/e500crtsav32gpr.asm: Likewise.
8185 * config/rs6000/e500crtsav64gpr.asm: Likewise.
8186 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
8187 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
8188 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
8189 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
8190 * config/rs6000/eabi-ci.asm: Likewise.
8191 * config/rs6000/eabi-cn.asm: Likewise.
8192 * config/rs6000/eabi.asm: Likewise.
8193 * config/rs6000/linux-unwind.h: Likewise.
8194 * config/rs6000/linux64.h: Likewise.
8195 * config/rs6000/paired.h: Likewise.
8196 * config/rs6000/paired.md: Likewise.
8197 * config/rs6000/ppc64-fp.c: Likewise.
8198 * config/rs6000/ppu_intrinsics.h: Likewise.
8199 * config/rs6000/rs6000.h: Likewise.
8200 * config/rs6000/si2vmx.h: Likewise.
8201 * config/rs6000/sol-ci.asm: Likewise.
8202 * config/rs6000/sol-cn.asm: Likewise.
8203 * config/rs6000/spe.h: Likewise.
8204 * config/rs6000/spu2vmx.h: Likewise.
8205 * config/rs6000/sysv4.h: Likewise.
8206 * config/rs6000/tramp.asm: Likewise.
8207 * config/rs6000/vec_types.h: Likewise.
8208 * config/s390/linux-unwind.h: Likewise.
8209 * config/s390/tpf-unwind.h: Likewise.
8210 * config/score/crti.asm: Likewise.
8211 * config/score/crtn.asm: Likewise.
8212 * config/sh/crt1.asm: Likewise.
8213 * config/sh/crti.asm: Likewise.
8214 * config/sh/crtn.asm: Likewise.
8215 * config/sh/divtab-sh4-300.c: Likewise.
8216 * config/sh/divtab-sh4.c: Likewise.
8217 * config/sh/divtab.c: Likewise.
8218 * config/sh/lib1funcs-4-300.asm: Likewise.
8219 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
8220 * config/sh/lib1funcs.asm: Likewise.
8221 * config/sh/lib1funcs.h: Likewise.
8222 * config/sh/linux-atomic.asm: Likewise.
8223 * config/sh/linux-unwind.h: Likewise.
8224 * config/sh/shmedia.h: Likewise.
8225 * config/sh/sshmedia.h: Likewise.
8226 * config/sh/ushmedia.h: Likewise.
8227 * config/sparc/crtfastmath.c: Likewise.
8228 * config/sparc/linux-unwind.h: Likewise.
8229 * config/sparc/sol2-c1.asm: Likewise.
8230 * config/sparc/sol2-ci.asm: Likewise.
8231 * config/sparc/sol2-cn.asm: Likewise.
8232 * config/spu/divmodti4.c: Likewise.
8233 * config/spu/divv2df3.c: Likewise.
8234 * config/spu/float_disf.c: Likewise.
8235 * config/spu/float_unsdidf.c: Likewise.
8236 * config/spu/float_unsdisf.c: Likewise.
8237 * config/spu/float_unssidf.c: Likewise.
8238 * config/spu/mfc_multi_tag_release.c: Likewise.
8239 * config/spu/mfc_multi_tag_reserve.c: Likewise.
8240 * config/spu/mfc_tag_release.c: Likewise.
8241 * config/spu/mfc_tag_reserve.c: Likewise.
8242 * config/spu/mfc_tag_table.c: Likewise.
8243 * config/spu/multi3.c: Likewise.
8244 * config/spu/spu_internals.h: Likewise.
8245 * config/spu/spu_intrinsics.h: Likewise.
8246 * config/spu/spu_mfcio.h: Likewise.
8247 * config/spu/vec_types.h: Likewise.
8248 * config/spu/vmx2spu.h: Likewise.
8249 * config/stormy16/stormy16-lib2.c: Likewise.
8250 * config/svr4.h: Likewise.
8251 * config/sync.c: Likewise.
8252 * config/v850/lib1funcs.asm: Likewise.
8253 * config/vxlib-tls.c: Likewise.
8254 * config/vxlib.c: Likewise.
8255 * config/vxworks-dummy.h: Likewise.
8256 * config/xtensa/crti.asm: Likewise.
8257 * config/xtensa/crtn.asm: Likewise.
8258 * config/xtensa/ieee754-df.S: Likewise.
8259 * config/xtensa/ieee754-sf.S: Likewise.
8260 * config/xtensa/lib1funcs.asm: Likewise.
8261 * config/xtensa/lib2funcs.S: Likewise.
8262 * config/xtensa/linux-unwind.h: Likewise.
8263 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
8264 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
8265 * coretypes.h: Likewise.
8266 * crtstuff.c: Likewise.
8267 * defaults.h: Likewise.
8268 * dwarf2.h: Likewise.
8269 * emutls.c: Likewise.
8270 * gbl-ctors.h: Likewise.
8271 * gcov-io.h: Likewise.
8272 * ginclude/float.h: Likewise.
8273 * ginclude/iso646.h: Likewise.
8274 * ginclude/stdarg.h: Likewise.
8275 * ginclude/stdbool.h: Likewise.
8276 * ginclude/stddef.h: Likewise.
8277 * ginclude/stdfix.h: Likewise.
8278 * ginclude/stdint-gcc.h: Likewise.
8279 * ginclude/tgmath.h: Likewise.
8280 * gthr-aix.h: Likewise.
8281 * gthr-dce.h: Likewise.
8282 * gthr-gnat.c: Likewise.
8283 * gthr-gnat.h: Likewise.
8284 * gthr-lynx.h: Likewise.
8285 * gthr-mipssde.h: Likewise.
8286 * gthr-nks.h: Likewise.
8287 * gthr-posix.c: Likewise.
8288 * gthr-posix.h: Likewise.
8289 * gthr-posix95.h: Likewise.
8290 * gthr-rtems.h: Likewise.
8291 * gthr-single.h: Likewise.
8292 * gthr-solaris.h: Likewise.
8293 * gthr-tpf.h: Likewise.
8294 * gthr-vxworks.h: Likewise.
8295 * gthr-win32.h: Likewise.
8296 * gthr.h: Likewise.
8297 * libgcc2.c: Likewise.
8298 * libgcc2.h: Likewise.
8299 * libgcov.c: Likewise.
8300 * tsystem.h: Likewise.
8301 * typeclass.h: Likewise.
8302 * unwind-c.c: Likewise.
8303 * unwind-compat.h: Likewise.
8304 * unwind-dw2-fde-compat.c: Likewise.
8305 * unwind-dw2-fde-darwin.c: Likewise.
8306 * unwind-dw2-fde-glibc.c: Likewise.
8307 * unwind-dw2-fde.c: Likewise.
8308 * unwind-dw2-fde.h: Likewise.
8309 * unwind-dw2.c: Likewise.
8310 * unwind-dw2.h: Likewise.
8311 * unwind-generic.h: Likewise.
8312 * unwind-pe.h: Likewise.
8313 * unwind-sjlj.c: Likewise.
8314 * unwind.inc: Likewise.
8315 * config/arm/neon-gen.ml: Change generated copyright header to
8316 refer to version 3 of the GNU General Public License with
8317 version 3.1 of the GCC Runtime Library Exception and to point
8318 readers at the COPYING3 and COPYING3.RUNTIME files and the
8319 FSF's license web page.
8320 * config/arm/arm_neon.h: Regenerate.
8321
83222009-04-09 Jakub Jelinek <jakub@redhat.com>
8323
8324 * config/cris/cris.md: Change copyright header to refer to version
8325 3 of the GNU General Public License.
8326 * doc/install.texi2html: Change copyright header to refer to version
8327 3 of the GNU General Public License and to point readers at the
8328 COPYING3 file and the FSF's license web page.
8329 * config/vax/linux.h: Likewise.
8330
4a77c72b
PB
83312009-04-09 Paolo Bonzini <bonzini@gnu.org>
8332
1ad2f450
L
8333 * config/i386/i386.md (cmpcc): New.
8334 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
8335 (sync_compare_and_swap_cc*): Delete.
8336
8337 * config/s390/s390.c (s390_compare_emitted): Remove.
8338 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
8339 s390_compare_emitted used to be handled. Assert that modes match.
8340 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
8341 refer to sync_compare_and_swap_ccsi.
8342 * config/s390/s390.h (s390_compare_emitted): Remove.
8343 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
8344 instead of s390_compare_emitted.
8345 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
8346 instead of s390_compare_emitted.
8347 * config/s390/s390.md (cmpcc): New.
8348 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
8349 CC_REGNUM, do not pretend it's set.
8350 (sync_compare_and_swap_cc*): Delete.
8351 * config/s390/predicates.md (cc_reg_operand): New.
8352
8353 * expr.c (sync_compare_and_swap_cc): Delete.
8354 * optabs.h (sync_compare_and_swap_cc): Delete.
8355 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
8356 is being used with can_compare_p.
8357 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
8358 (find_cc_set): New.
8359 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
8360 look for a MODE_CC set instead. Use emit_store_flag.
8361 (expand_compare_and_swap_loop): Likewise, with some additional
8362 complication to avoid a force_reg when useless. Use
8363 emit_cmp_and_jump_insns.
8364 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
8365 * doc/md.texi (sync_compare_and_swap_cc): Merge with
8366 sync_compare_and_swap documentation.
4a77c72b 8367
0c0efb33
JH
83682009-04-09 Jan Hubicka <jh@suse.cz>
8369
8370 * except.c (find_prev_try): Break out from ....
8371 (duplicate_eh_regions): ... here; properly update prev_try pointers
8372 when duplication part of tree.
8373 (dump_eh_tree): Improve dumping.
8374 (verify_eh_region): New.
8375 (verify_eh_tree): Use it.
8376
22a65a54
RG
83772009-04-06 Richard Guenther <rguenther@suse.de>
8378
8379 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
8380 &ARRAY addresses by adjusting their types and prepending
8381 a conversion.
8382 * tree-cfg.c (verify_gimple_assign_single): Verify that
8383 addresses are correct.
8384
f76968e6
RG
83852009-04-09 Richard Guenther <rguenther@suse.de>
8386
8387 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
8388 indices into an array reference if possible.
8389 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
8390 Fold POINTER_PLUS_EXPR statements with invariant address.
8391
c90c5fb5
AM
83922009-04-09 Alan Modra <amodra@bigpond.net.au>
8393
8394 PR target/39634
8395 * config.gcc (powerpc64-*-linux*): Always build biarch.
8396
17cede2e
JM
83972009-04-09 Joseph Myers <joseph@codesourcery.com>
8398
8399 PR c/39613
8400 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
8401 it and pedwarn if this results in an INTEGER_CST.
8402
a3337ea2
KG
84032009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8404
8405 * doc/install.texi: Update minimum GMP version. Remove obsolete
8406 text in MPFR section.
8407
ce9ba79b
JJ
84082009-04-08 Jakub Jelinek <jakub@redhat.com>
8409
8410 * dwarf2out.c (class_scope_p): New static inline.
8411 (class_or_namespace_scope_p): Use it.
8412 (gen_variable_die): Use DW_TAG_member tag for static data member
8413 declarations instead of DW_TAG_variable.
8414
4f0ae266
JJ
8415 PR middle-end/39573
8416 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
8417 variables.
8418
d27f0ddc
RG
84192009-04-08 Richard Guenther <rguenther@suse.de>
8420
8421 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
8422 valueize random data.
8423
557cc596
DE
84242009-04-08 David Edelsohn <edelsohn@gnu.org>
8425
8426 * config.gcc (aix tm_file): Add aix-stdint.h.
8427 (aix tm clause use_gcc_stdint): Set to wrap.
8428 * config/rs6000/aix-stdint.h: New file.
2ba9daa7 8429
75ccc1e7
RG
84302009-04-08 Richard Guenther <rguenther@suse.de>
8431
8432 PR middle-end/36291
8433 * tree-dfa.c (add_referenced_var): Do not recurse into
8434 global initializers.
8435 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
8436 exposed variables.
8437 (fold_const_aggregate_ref): Likewise.
8438
c6963675
PB
84392009-04-08 Paolo Bonzini <bonzini@gnu.org>
8440
6c44cf79
L
8441 * recog.c (ordered_comparison_operator): New.
8442 * gensupport.c (std_preds): Add it.
c6963675
PB
8443 * doc/md.texi (Machine-Independent Predicates): Document it.
8444
6d07ad98
JH
84452009-04-08 Jan Hubicka <jh@suse.cz>
8446
8447 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
8448 * function.h (rtl_eh): Remove exception_handler_label_map.
8449 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
8450 remove_exception_handler_label, for_each_eh_label_1): Remove.
8451 (rtl_remove_unreachable_regions): Remove.
8452 (convert_from_eh_region_ranges): Do not remove unreachable regions.
8453 (find_exception_handler_labels): Don't build the hashtable.
8454 (maybe_remove_eh_handler): Remove.
8455 (for_each_eh_label): Rewrite to walk the tree.
8456 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
8457 * except.h (maybe_remove_eh_handler): Remove.
8458 * passes.c (init_optimization_passes): Schedule second EH cleanup
8459 before out-of-ssa.
8460 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
8461 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
8462
7ddf71e3
PB
84632009-04-08 Paolo Bonzini <bonzini@gnu.org>
8464
8465 * genoutput.c (validate_optab_operands): New.
8466 (gen_insn, gen_expand): Call it.
8467
8468 * genflags.c (gen_insn): Detect misused iterators.
8469 (main): Pass line_no to gen_insn, exit with status 1 on error.
8470
8471 * genextract.c (line_no): Make global.
8472 (VEC_safe_set_locstr): Change assertion to error message.
8473 (main): Exit with status 1 on error.
8474
4d84fe7c
JM
84752009-04-08 Joseph Myers <joseph@codesourcery.com>
8476
8477 PR c/39614
8478 PR c/39673
8479 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
8480 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
8481 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
8482 * c-convert.c (convert): Do not call fold on results of conversion
8483 functions when the result is a C_MAYBE_CONST_EXPR.
8484 * c-parser.c (c_parser_postfix_expression): Do not fold condition
8485 of __builtin_choose_expr.
8486 * c-typeck.c (remove_c_maybe_const_expr): New.
8487 (build_unary_op, build_conditional_expr, build_compound_expr,
8488 build_binary_op, c_objc_common_truthvalue_conversion): Call
8489 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
8490 integer operands.
8491
60839f5d 84922009-04-08 Bingfeng Mei <bmei@broadcom.com>
d1d1c602 8493
2ba9daa7 8494 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
6c44cf79 8495 CODE to produce a new one. Add a prototype to use fold_convert_const
d1d1c602 8496
8e481a2c
DS
84972009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
8498
8499 PR bootstrap/39660
8500 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
8501 mix declarations and code.
8502
ee618c17
BE
85032009-04-08 Ben Elliston <bje@au.ibm.com>
8504
8505 * gcc.c: Replace `CC' with `GCC' throughout.
8506
f2a758a2
L
85072009-04-07 H.J. Lu <hongjiu.lu@intel.com>
8508
8509 * doc/invoke.texi: Document Atom support.
8510
6ea2bd47
JM
85112009-04-07 Jason Merrill <jason@redhat.com>
8512
8513 PR c++/25185
8514 * c-common.h, c-common.c: Add flag_pretty_templates.
8515 * c-opts.c (c_common_handle_option): Set it.
8516 * c.opt: Add -fno-pretty-templates.
8517 * doc/invoke.texi (C++ Dialect Options): Likewise.
8518
fcb82ab0
UB
85192009-04-07 Uros Bizjak <ubizjak@gmail.com>
8520
8521 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
8522 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
8523 (ia64_expand_builtin): Likewise.
8524
dc5e7298
MJ
85252009-04-07 Martin Jambor <mjambor@suse.cz>
8526
8527 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
8528 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
8529 ADDR_EXPRS are include too.
8530
0609b355
RG
85312009-04-07 Richard Guenther <rguenther@suse.de>
8532
8533 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
8534 decls are only used if passes as parameters or if they are
8535 local statics and the call is not to a builtin.
8536 (call_may_clobber_ref_p_1): Likewise.
8537
d8e535fa
PB
85382009-04-07 Paolo Bonzini <bonzini@gnu.org>
8539
8540 * expr.c (do_store_flag): Remove last argument. Simplify code
8541 to avoid duplication of tests already done by can_compare_p.
8542 (expand_expr_real_1): Adjust caller.
8543
c3c64f50
PB
85442009-04-07 Paolo Bonzini <bonzini@gnu.org>
8545
fcb82ab0
UB
8546 * optabs.c (can_compare_p): Test the predicate of a
8547 cbranch and cstore pattern.
c3c64f50 8548
9a53bc17
PB
85492009-04-07 Paolo Bonzini <bonzini@gnu.org>
8550
fcb82ab0
UB
8551 * expr.c (convert_move): Use emit_store_flag instead of
8552 "emulating" it.
9a53bc17 8553
67b8f1c1
PB
85542009-04-07 Paolo Bonzini <bonzini@gnu.org>
8555
fcb82ab0
UB
8556 * config/i386/i386.c (ix86_compare_emitted): Remove.
8557 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
8558 ix86_compare_op0 like ix86_compare_emitted used to be handled.
8559 * config/i386/i386.h (ix86_compare_emitted): Remove.
8560 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
8561 instead of ix86_compare_emitted.
8562 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
67b8f1c1 8563
44509946
AS
85642009-04-07 Andrew Stubbs <ams@codesourcery.com>
8565
8566 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
8567 Add t-sysroot-suffix to tmake_file.
8568 * config/print-sysroot-suffix.sh: New file.
8569 * config/t-sysroot-suffix: New file.
8570
ca22d882
BE
85712009-04-07 Ben Elliston <bje@au.ibm.com>
8572
8573 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
8574 as the latter produces a warning when the target does not support
8575 infinity.
8576
95aac11b
BE
85772009-04-07 Ben Elliston <bje@au.ibm.com>
8578
8579 * dfp.c: Replace type punning assignments with memcpy throughout.
8580 * Makefile.in (dfp.o-warn): Remove.
2ba9daa7 8581
633dd061
AM
85822009-04-07 Alan Modra <amodra@bigpond.net.au>
8583
8584 PR target/39634
8585 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
8586 Include soft-fp/t-softfp after rs6000/t-linux64.
8587
fe0a25ec
EB
85882009-04-06 Eric Botcazou <ebotcazou@adacore.com>
8589
8590 * stor-layout.c (set_sizetype): Use the full precision of their
8591 machine mode for bitsize types.
8592
0c011bc3
L
85932009-04-06 H.J. Lu <hongjiu.lu@intel.com>
8594
8595 * config/i386/i386.md: Revert 2 accidental checkins.
8596
b6837b94 85972009-04-06 Joey Ye <joey.ye@intel.com>
60839f5d 8598 Xuepeng Guo <xuepeng.guo@intel.com>
b6837b94
JY
8599 H.J. Lu <hongjiu.lu@intel.com>
8600
8601 Atom pipeline model, tuning and insn selection.
8602 * config.gcc (atom): Add atom config options and target.
8603
8604 * config/i386/atom.md: New.
8605
8606 * config/i386/i386.c (atom_cost): New cost.
8607 (m_ATOM): New macro flag.
8608 (initial_ix86_tune_features): Set m_ATOM.
8609 (x86_accumulate_outgoing_args): Likewise.
8610 (x86_arch_always_fancy_math_387): Likewise.
8611 (processor_target): Add Atom cost.
8612 (cpu_names): Add Atom cpu name.
8613 (override_options): Set Atom ISA.
8614 (ix86_issue_rate): New case PROCESSOR_ATOM.
8615 (ix86_adjust_cost): Likewise.
8616
8617 * config/i386/i386.h (TARGET_ATOM): New target macro.
8618 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
8619 (TARGET_OPT_AGU): New target option.
8620 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
8621 (processor_type): Add PROCESSOR_ATOM.
8622
8623 * config/i386/i386.md (cpu): Add new value "atom".
8624 (use_carry, movu): New attr.
8625 (atom.md): Include atom.md.
8626 (adddi3_carry_rex64): Set attr "use_carry".
8627 (addqi3_carry): Likewise.
8628 (addhi3_carry): Likewise.
8629 (addsi3_carry): Likewise.
8630 (*addsi3_carry_zext): Likewise.
8631 (subdi3_carry_rex64): Likewise.
8632 (subqi3_carry): Likewise.
8633 (subhi3_carry): Likewise.
8634 (subsi3_carry): Likewise.
8635 (x86_movdicc_0_m1_rex64): Likewise.
8636 (*x86_movdicc_0_m1_se): Likewise.
8637 (x86_movsicc_0_m1): Likewise.
8638 (*x86_movsicc_0_m1_se): Likewise.
8639 (*adddi_1_rex64): Emit add insn as much as possible.
8640 (*addsi_1): Likewise.
8641 (return_internal): Set atom_unit.
8642 (return_internal_long): Likewise.
8643 (return_pop_internal): Likewise.
8644 (*rcpsf2_sse): Set atom_sse_attr attr.
8645 (*qrt<mode>2_sse): Likewise.
8646 (*prefetch_sse): Likewise.
8647
8648 * config/i386/i386-c.c (ix86_target_macros_internal): New case
8649 PROCESSOR_ATOM.
8650 (ix86_target_macros_internal): Likewise.
8651
8652 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
8653 (*prefetch_sse_rex): Likewise.
8654 (sse_rcpv4sf2): Likewise.
8655 (sse_vmrcpv4sf2): Likewise.
8656 (sse_sqrtv4sf2): Likewise.
8657 (<sse>_vmsqrt<mode>2): Likewise.
8658 (sse_ldmxcsr): Likewise.
8659 (sse_stmxcsr): Likewise.
8660 (*sse_sfence): Likewise.
8661 (sse2_clflush): Likewise.
8662 (*sse2_mfence): Likewise.
8663 (*sse2_lfence): Likewise.
8664 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
8665 (<sse>_movup<ssemodesuffixf2c>): Likewise.
8666 (avx_movdqu<avxmodesuffix>): Likewise.
8667 (avx_lddqu<avxmodesuffix>): Likewise.
8668 (sse2_movntv2di): Change attr "type" to "ssemov".
8669 (sse2_movntsi): Likewise.
8670 (rsqrtv8sf2): Change attr "type" to "sseadd".
8671 (sse3_addsubv2df3): Set attr "atom_unit".
8672 (sse3_h<plusminus_insn>v4sf3): Likewise.
8673 (*sse2_pmaddwd): Likewise.
8674 (*vec_extractv2di_1_rex64): Likewise.
8675 (*vec_extractv2di_1_avx): Likewise.
8676 (sse2_psadbw): Likewise.
8677 (ssse3_phaddwv8hi3): Likewise.
8678 (ssse3_phaddwv4hi3): Likewise.
8679 (ssse3_phadddv4si3): Likewise.
8680 (ssse3_phadddv2si3): Likewise.
8681 (ssse3_phaddswv8hi3): Likewise.
8682 (ssse3_phaddswv4hi3): Likewise.
8683 (ssse3_phsubwv8hi3): Likewise.
8684 (ssse3_phsubwv4hi3): Likewise.
8685 (ssse3_phsubdv4si3): Likewise.
8686 (ssse3_phsubdv2si3): Likewise.
8687 (ssse3_phsubswv8hi3): Likewise.
8688 (ssse3_phsubswv4hi3): Likewise.
8689 (ssse3_pmaddubsw128): Likewise.
8690 (sse3_pmaddubsw: Likewise.
8691 (ssse3_palignrti): Likewise.
8692 (ssse3_palignrdi): Likewise.
8693
53e350d3
GP
86942009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
8695
8696 * doc/install.texi (Specific): Fix two cross-references to MinGW.
8697
439ef907
RG
86982009-04-06 Richard Guenther <rguenther@suse.de>
8699
8700 PR tree-optimization/28868
8701 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
8702 of which PHI results we inserted.
8703 (insert_into_preds_of_block): Record inserted PHIs.
8704 (eliminate): Eliminate redundant PHI nodes.
8705 (init_pre): Init inserted_phi_names.
8706
4bad83f5
RG
87072009-04-06 Richard Guenther <rguenther@suse.de>
8708
8709 PR tree-optimization/39643
8710 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
8711 IMAGPART_EXPRs of complex constants.
8712 (execute_fold_all_builtins): If we folded a call queue
8713 TODO_update_address_taken.
8714
570c4247
JH
87152009-04-06 Jan Hubicka <jh@suse.cz>
8716
8717 PR middle-end/39659
8718 * except.c (remove_unreachable_regions): Propagate may_contain_throw
8719 flag.
8720
a460d7a1
AS
87212009-04-06 Andrew Stubbs <ams@codesourcery.com>
8722
8723 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
8724 delay slot.
8725 (ic_invalidate_array): Likewise.
8726
60839f5d 87272009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
6bdf8c2e
HS
8728
8729 * calls.c (emit_library_call_value_1): Fix a problem with parameter
8730 alignment for library calls.
8731
7d253f6e
DS
87322009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
8733
8734 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
8735 (mingw32 tm clause use_gcc_stdint): Set to wrap.
8736 * config/i386/mingw-stdint.h: New file.
8737
941c3614
RB
87382009-04-05 Richard Guenther <rguenther@suse.de>
8739
8740 PR tree-optimization/39648
8741 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
8742 our &A vs. &A[0] IL deficiencies.
8743
12633413
JH
87442009-04-04 Jan Hubicka <jh@suse.cz>
8745
941c3614
RB
8746 * except.c (sjlj_find_directly_reachable_regions): Be ready for
8747 removed toplevel regions.
12633413
JH
8748 (sjlj_mark_call_sites): Likewise.
8749
bb2aaded
DK
87502009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
8751
8752 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
8753 (cygwin tm clause use_gcc_stdint): Set to wrap.
8754 * config/i386/cygwin-stdint.h: New file.
8755
86290011
RG
87562009-04-04 Richard Guenther <rguenther@suse.de>
8757
8758 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
8759 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
8760 single-argument PHIs if we are in loop-closed SSA form.
8761 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
8762 for the pre-condition.
8763 (slpeel_tree_peel_loop_to_edge): Likewise.
8764 (vect_build_loop_niters): Take an optional sequence to append stmts.
8765 (vect_generate_tmps_on_preheader): Likewise.
8766 (vect_do_peeling_for_loop_bound): Take extra guards for the
8767 pre-condition.
8768 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
8769 the cost model check.
8770 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
7a715bba 8771 guards if we are going to peel. Do not apply versioning in that case.
86290011
RG
8772 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
8773 (vect_do_peeling_for_loop_bound): Likewise.
8774 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
8775 loop bound only record extra pre-conditions, do not apply loop
8776 versioning.
8777
5eeeac64
RG
87782009-04-04 Richard Guenther <rguenther@suse.de>
8779
8780 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
8781 renaming code.
8782
1ff7d06b
JH
87832009-04-04 Jan Hubicka <jh@suse.cz>
8784
8785 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
8786 last_basic_block for size of bb->index indexed array.
8787 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
8788 compute_out, link_btr_uses, build_btr_def_use_webs,
8789 build_btr_def_use_webs, migrate_btr_defs): Likewise.
8790
14925fcd
JH
87912009-04-04 Jan Hubicka <jh@suse.cz>
8792
8793 * except.c (remove_eh_handler_and_replace): Break out from ...
8794 (remove_eh_handler): ... here.
8795 (bring_to_root): New function.
8796 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
8797 handled ones, bring others to root of tree.
8798
4e6d1743
JH
87992009-04-04 Jan Hubicka <jh@suse.cz>
8800
4cb735f7
JH
8801 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
8802 (all_phis_safe_to_merge): New function.
8803 (update_info): New structure.
8804 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
8805 (cleanup_empty_eh): Update SSA if possible.
4e6d1743 8806
c6803d43
RG
88072009-04-04 Richard Guenther <rguenther@suse.de>
8808
8809 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
8810 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
8811 (append_vuse): Likewise.
8812
54f5943c
JJ
88132009-04-04 Jakub Jelinek <jakub@redhat.com>
8814
8815 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
8816 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
8817 instead of REG_UNSAVED for DW_CFA_undefined.
8818 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
8819 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
8820 outermost frame.
8821
aad2bccb
RE
88222009-04-04 Richard Earnshaw <rearnsha@arm.com>
8823
8824 PR target/39501
8825 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
8826 * testsuite/gcc.c-torture/execute/pr39501.c: New file.
8827 * testsuite/gcc.c-torture/execute/pr39501.x: New file.
8828
aa7069aa
RG
88292009-04-04 Richard Guenther <rguenther@suse.de>
8830
8831 PR tree-optimization/8781
8832 PR tree-optimization/37892
8833 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
8834 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
8835 (valueize_refs): Call it for *& valueizations.
8836 (shared_reference_ops_from_ref): Rename to ...
8837 (valueize_shared_reference_ops_from_ref): ... this and valueize.
8838 (shared_reference_ops_from_call): Rename to ...
8839 (valueize_shared_reference_ops_from_call): ... this and valueize.
8840 (vn_reference_lookup): Update.
8841 (visit_reference_op_call): Likewise.
8842 * tree-ssa-pre.c (phi_translate_1): Fold *&.
8843 (eliminate): Value-replace the call address in call statements.
8844
cd15ad3e
RG
88452009-04-04 Richard Guenther <rguenther@suse.de>
8846
8847 PR tree-optimization/39636
8848 * tree-ssa-forwprop.c
8849 (forward_propagate_addr_into_variable_array_index): Check for
8850 GIMPLE_ASSIGN before accessing the rhs code.
8851
462f3262
JM
88522009-04-03 Jason Merrill <jason@redhat.com>
8853
8854 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
8855
6adb807e
SE
88562009-04-03 Steve Ellcey <sje@cup.hp.com>
8857
8858 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
8859 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
8860 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
8861 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
8862 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
8863 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
8864 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
8865 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
8866 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
8867 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
8868 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
8869 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
8870 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
8871 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
8872 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
8873 Use fr_reg_or_fp01_operand instead of fr_register_operand
8874
8875 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
8876 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
8877 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
8878
174b3107
VM
88792009-04-03 Vladimir Makarov <vmakarov@redhat.com>
8880
b844e5d8
L
8881 PR rtl-optimization/39607
8882 PR rtl-optimization/39631
7a715bba
UB
8883
8884 Revert:
2ba9daa7 8885
174b3107
VM
8886 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
8887 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
8888 instead of DF_LR_OUT.
8889 * ira-lives.c (process_bb_node_lives): Ditto.
8890 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
8891 instead of DF_LR_{OUT,IN}.
8892 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
8893 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
8894
535b544a
SB
88952009-04-03 Steven Bosscher <steven@gcc.gnu.org>
8896
8897 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
8898 (execute_lower_omp): Always run but take the short way out if -fopenmp
8899 is not given.
8900 (gate_lower_omp): Remove, forcing the pass manager to always run the
8901 pass and always set PROP_gimple_lomp.
8902 (pass_lower_omp): Remove gate function.
8903 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
8904 PROP_trees. Instead, require it.
8905 * ipa-cp.c (pass_ipa_cp): Likewise.
8906 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
8907 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
8908 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
8909 and PROP_gimple_leh.
8910
5006671f
RG
89112009-04-03 Richard Guenther <rguenther@suse.de>
8912
8913 PR middle-end/13146
8914 PR tree-optimization/23940
8915 PR tree-optimization/33237
8916 PR middle-end/33974
8917 PR middle-end/34093
8918 PR tree-optimization/36201
8919 PR tree-optimization/36230
8920 PR tree-optimization/38049
8921 PR tree-optimization/38207
8922 PR tree-optimization/38230
8923 PR tree-optimization/38301
8924 PR tree-optimization/38585
8925 PR middle-end/38895
8926 PR tree-optimization/38985
8927 PR tree-optimization/39299
8928 * tree-ssa-structalias.h: Remove.
8929 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
8930 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
8931 (struct vuse_element_d): Remove.
8932 (struct vuse_vec_d): Likewise.
8933 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
8934 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
8935 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
8936 VUSE_ELEMENT_VAR): Likewise.
8937 (struct voptype_d): Likewise.
8938 (NUM_VOP_FREE_BUCKETS): Likewise.
8939 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
8940 (struct stmt_operands_d): Remove.
8941 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
8942 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
8943 VDEF_NUM, VDEF_VECT): Likewise.
8944 (copy_virtual_operands): Remove.
8945 (operand_build_cmp): Likewise.
8946 (create_ssa_artificial_load_stmt): Likewise.
8947 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
8948 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
8949 vuse_index and mayuse_index members. Pack and move done and iter_type
8950 members to the front.
8951 (SSA_OP_VMAYUSE): Remove.
8952 (SSA_OP_VIRTUAL_USES): Adjust.
8953 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
8954 (unlink_stmt_vdef): Declare.
8955 (add_to_addressable_set): Remove.
8956 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
8957 (vrp_visit_stmt): Likewise.
8958 * doc/tree-ssa.texi (Alias analysis): Update.
8959 * doc/invoke.texi (max-aliased-vops): Remove docs.
8960 (avg-aliased-vops): Likewise.
8961 * tree-into-ssa.c (syms_to_rename): Remove.
8962 (need_to_update_vops_p): Likewise.
8963 (need_to_initialize_update_ssa_p): Rename to ...
8964 (update_ssa_initialized_fn): ... this. Track function we are
8965 initialized for.
8966 (symbol_marked_for_renaming): Simplify.
8967 (add_new_name_mapping): Do not set need_to_update_vops_p.
8968 (dump_currdefs): Use SYMS_TO_RENAME.
8969 (rewrite_update_stmt): Always walk all uses/defs.
8970 (dump_update_ssa): Adjust.
8971 (init_update_ssa): Take function argument. Track what we are
8972 initialized for.
8973 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
8974 (create_new_def_for): Initialize for cfun, assert we are initialized
8975 for cfun.
8976 (mark_sym_for_renaming): Simplify.
8977 (mark_set_for_renaming): Do not initialize update-ssa.
8978 (need_ssa_update_p): Simplify. Take function argument.
8979 (name_mappings_registered_p): Assert we ask for the correct function.
8980 (name_registered_for_update_p): Likewise.
8981 (ssa_names_to_replace): Likewise.
8982 (release_ssa_name_after_update_ssa): Likewise.
8983 (update_ssa): Likewise. Use SYMS_TO_RENAME.
8984 (dump_decl_set): Do not print a newline.
8985 (debug_decl_set): Do it here.
8986 (dump_update_ssa): And here.
8987 * tree-ssa-loop-im.c (move_computations): Adjust.
8988 (movement_possibility): Likewise.
8989 (determine_max_movement): Likewise.
8990 (gather_mem_refs_stmt): Likewise.
8991 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
8992 or NAME_MEMORY_TAG.
8993 * tree-complex.c (update_all_vops): Remove.
8994 (expand_complex_move): Adjust.
8995 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
8996 Simplify test for memory referencing statement. Exclude
8997 non-invariant ADDR_EXPRs.
8998 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
8999 * tree-loop-distribution.c (generate_memset_zero): Adjust.
9000 (rdg_flag_uses): Likewise.
9001 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
9002 related code.
9003 (tree_optimize_tail_calls_1): Also split the
9004 edge from the entry block if we have degenerate PHI nodes in
9005 the first basic block.
9006 * tree.c (init_ttree): Remove memory-tag related code.
9007 (tree_code_size): Likewise.
9008 (tree_node_structure): Likewise.
9009 (build7_stat): Re-write to be build6_stat.
9010 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
9011 (SSA_VAR_P): Adjust.
9012 (struct tree_memory_tag): Remove.
9013 (struct tree_memory_partition_tag): Likewise.
9014 (union tree_node): Adjust.
9015 (build7): Re-write to be build6.
9016 * tree-pass.h (pass_reset_cc_flags): Remove.
9017 (TODO_update_address_taken): New flag.
9018 (pass_simple_dse): Remove.
9019 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
9020 * params.h (MAX_ALIASED_VOPS): Remove.
9021 (AVG_ALIASED_VOPS): Likewise.
9022 * omp-low.c (expand_omp_taskreg): Update SSA form.
9023 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
9024 aliases the lhs in a copy stmt.
9025 * tree-ssa-dse.c (struct address_walk_data): Remove.
9026 (memory_ssa_name_same): Likewise.
9027 (memory_address_same): Likewise.
9028 (get_kill_of_stmt_lhs): Likewise.
9029 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
9030 unused stores. Look through PHI nodes into post-dominated regions.
9031 (dse_optimize_stmt): Simplify. Properly remove stores.
9032 (tree_ssa_dse): Compute dominators.
9033 (execute_simple_dse): Remove.
9034 (pass_simple_dse): Likewise.
9035 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
9036 gimple_loaded_syms and gimple_stored_syms computation.
9037 * toplev.c (dump_memory_report): Dump alias and pta stats.
9038 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
9039 (vn_reference_eq): Likewise.
9040 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
9041 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
9042 valueize_vuses): Remove.
9043 (get_def_ref_stmt_vuses): Simplify. Rename to ...
9044 (get_def_ref_stmt_vuse): ... this.
9045 (vn_reference_lookup_2): New function.
9046 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
9047 walking equivalent vuses. Simplify.
9048 (vn_reference_lookup): Likewise.
9049 (vn_reference_insert): Likewise.
9050 (vn_reference_insert_pieces): Likewise.
9051 (visit_reference_op_call): Simplify.
9052 (visit_reference_op_load): Likewise.
9053 (visit_reference_op_store): Likewise.
9054 (init_scc_vn): Remove shared_lookup_vuses initialization.
9055 (free_scc_vn): Remove shared_lookup_vuses freeing.
9056 (sort_vuses, sort_vuses_heap): Remove.
9057 (get_ref_from_reference_ops): Export.
9058 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
9059 vector with single vuse pointer.
9060 (vn_reference_lookup_pieces, vn_reference_lookup,
9061 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
9062 (shared_vuses_from_stmt): Remove.
9063 (get_ref_from_reference_ops): Declare.
9064 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
9065 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
9066 memory-tag related code.
9067 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
9068 (likely_value): Add comment, skip static-chain of call statements.
9069 (surely_varying_stmt_p): Adjust.
9070 (gimplify_and_update_call_from_tree): Likewise.
9071 (execute_fold_all_builtins): Do not rebuild alias info.
9072 (gimplify_and_update_call_from_tree): Properly update VOPs.
9073 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
9074 (copy_ref_info): Remove memory-tag related code.
9075 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
9076 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
9077 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
9078 computation.
9079 * tree-ssa-dom.c (gimple_p): Remove typedef.
9080 (eliminate_redundant_computations): Adjust.
9081 (record_equivalences_from_stmt): Likewise.
9082 (avail_expr_hash): Likewise.
9083 (avail_expr_eq): Likewise.
7a715bba 9084 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
5006671f
RG
9085 (stmt_makes_single_load): Likewise.
9086 (stmt_makes_single_store): Likewise.
9087 * tree-ssa-alias.c: Rewrite completely.
9088 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
9089 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
9090 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
9091 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
9092 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
9093 Remove public functions.
9094 (pass_reset_cc_flags): Remove.
9095 (pass_build_alias): Move ...
9096 * tree-ssa-structalias.c (pass_build_alias): ... here.
9097 * tree-ssa-alias.c (may_be_aliased): Move ...
9098 * tree-flow-inline.h (may_be_aliased): ... here.
9099 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
9100 count_uses_and_derefs): Move ...
9101 * gimple.c: ... here.
9102 * gimple.h (count_uses_and_derefs): Declare.
9103 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
9104 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
9105 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
9106 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
9107 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
9108 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
9109 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
9110 New functions.
9111 * tree-dfa.c (refs_may_alias_p): Move ...
9112 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
9113 * tree-ssa-alias.h: New file.
9114 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
9115 (statement_sink_location): Likewise.
9116 * opts.c (decode_options): Do not adjust max-aliased-vops or
9117 avg-aliased-vops values.
9118 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
9119 (TV_CALL_CLOBBER): Likewise.
9120 (TV_FLOW_SENSITIVE): Likewise.
9121 (TV_FLOW_INSENSITIVE): Likewise.
9122 (TV_MEMORY_PARTITIONING): Likewise.
9123 (TV_ALIAS_STMT_WALK): New timevar.
9124 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
9125 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
9126 (get_address_description): Remove memory-tag related code.
9127 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
9128 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
9129 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
9130 and immediate uses in statements. Document.
9131 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
9132 (dump_symbols): Remove.
9133 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
9134 * alias.c (get_deref_alias_set): New function split out from ...
9135 (get_alias_set): ... here.
9136 * alias.h (get_deref_alias_set): Declare.
9137 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
9138 type parameter. Remove restrict pointer handling. Create a
9139 ref-all pointer in case type-based alias sets do not conflict.
9140 (vect_analyze_data_refs): Remove SMT related code.
9141 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
9142 (vectorizable_load): Likewise.
9143 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
9144 (DR_SYMBOL_TAG, DR_VOPS): Remove.
9145 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
9146 Ignore vops and SMTs.
9147 (dr_analyze_alias): Likewise..
9148 (free_data_ref): Likewise.
9149 (create_data_ref): Likewise.
9150 (analyze_all_data_dependences): Likewise.
9151 (get_references_in_stmt): Adjust.
9152 * tree-flow-inline.h (gimple_aliases_computed_p,
9153 gimple_addressable_vars, gimple_call_clobbered_vars,
9154 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
9155 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
9156 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
9157 gimple_mem_ref_stats): Remove.
9158 (gimple_vop): New function.
9159 (op_iter_next_use): Remove vuses and mayuses cases.
9160 (op_iter_next_def): Remove vdefs case.
9161 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
9162 (clear_and_done_ssa_iter): Do not set removed fields.
9163 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
9164 Assert we are not iterating over vuses or vdefs if not also
9165 iterating over uses or defs.
9166 (op_iter_init_use): Likewise.
9167 (op_iter_init_def): Likewise.
9168 (op_iter_next_vdef): Remove.
9169 (op_iter_next_mustdef): Likewise.
9170 (op_iter_init_vdef): Likewise.
9171 (compare_ssa_operands_equal): Likewise.
9172 (link_use_stmts_after): Handle vuse operand.
9173 (is_call_used): Use is_call_clobbered.
9174 (is_call_clobbered): Global variables are always call clobbered,
9175 query the call-clobbers bitmap.
9176 (mark_call_clobbered): Ignore global variables.
9177 (clear_call_clobbered): Likewise.
9178 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
9179 virtual operands sanity check.
9180 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
9181 Remove.
9182 (TARGET_MEM_REF): Remove TMR_TAG operand.
9183 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
9184 Remove call-clobber related code.
9185 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
9186 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
9187 partitions or escape reason.
9188 (get_single_def_stmt, get_single_def_stmt_from_phi,
9189 get_single_def_stmt_with_phi): Remove.
9190 (dump_referenced_vars): Tidy.
9191 (get_ref_base_and_extent): Allow bare decls.
9192 (collect_dfa_stats): Adjust.
9193 * graphite.c (rename_variables_in_stmt): Adjust.
9194 (graphite_copy_stmts_from_block): Likewise.
9195 (translate_clast): Likewise.
9196 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
9197 (EXPR_DIES): New.
9198 (translate_vuse_through_block): Use the oracle.
9199 (phi_translate_1): Adjust.
9200 (value_dies_in_block_x): Use the oracle. Cache the outcome
9201 in EXPR_DIES.
9202 (valid_in_sets): Check if the VUSE for
9203 a REFERENCE is available.
9204 (eliminate): Do not remove stmts during elimination,
9205 instead queue and remove them afterwards.
9206 (do_pre): Do not rebuild alias info.
9207 (pass_pre): Run TODO_rebuild_alias before PRE.
9208 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
9209 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
9210 (mark_all_v_defs_stmt): Remove.
9211 (mark_all_v_defs_seq): Adjust.
9212 (sra_replace): Likewise.
9213 (scalarize_use): Likewise.
9214 (scalarize_copy): Likewise.
9215 (scalarize_init): Likewise.
9216 (scalarize_ldst): Likewise.
9217 (todoflags): Remove.
9218 (tree_sra): Do not rebuild alias info.
9219 (tree_sra_early): Adjust.
9220 (pass_sra): Run TODO_update_address_taken before SRA.
9221 * tree-predcom.c (set_alias_info): Remove.
9222 (prepare_initializers_chain): Do not call it.
9223 (mark_virtual_ops_for_renaming): Adjust.
9224 (mark_virtual_ops_for_renaming_list): Remove.
9225 (initialize_root_vars): Adjust.
9226 (initialize_root_vars_lm): Likewise.
9227 (prepare_initializers_chain): Likewise.
9228 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
9229 (may_propagate_copy_into_stmt): Likewise.
9230 (merge_alias_info): Do nothing for now.
9231 (propagate_tree_value_into_stmt): Adjust.
9232 (stmt_may_generate_copy): Likewise.
9233 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
9234 not mark symbols for renaming.
9235 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
9236 with the same statement, make sure to update the new pointed-to one.
9237 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
9238 call statements, do not mark symbols for renaming.
9239 (mark_operand_necessary): Dump something.
9240 (ref_may_be_aliased): New function.
9241 (mark_aliased_reaching_defs_necessary_1): New helper function.
9242 (mark_aliased_reaching_defs_necessary): Likewise.
9243 (mark_all_reaching_defs_necessary_1): Likewise.
9244 (mark_all_reaching_defs_necessary): Likewise.
9245 (propagate_necessity): Do not process virtual PHIs. For
9246 non-aliased loads mark all reaching definitions as necessary.
9247 For aliased loads and stores mark the immediate dominating
9248 aliased clobbers as necessary.
9249 (visited): New global static.
9250 (perform_tree_ssa_dce): Free visited bitmap after propagating
9251 necessity.
9252 (remove_dead_phis): Perform simple dead virtual PHI removal.
9253 (remove_dead_stmt): Properly unlink virtual operands when
9254 removing stores.
9255 (eliminate_unnecessary_stmts): Schedule PHI removal after
9256 stmt removal.
9257 * tree-ssa-ter.c (is_replaceable_p): Adjust.
9258 (process_replaceable): Likewise.
9259 (find_replaceable_in_bb): Likewise.
9260 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
9261 based on the single gimple vop.
9262 (verify_flow_insensitive_alias_info): Remove.
9263 (verify_flow_sensitive_alias_info): Likewise.
9264 (verify_call_clobbering): Likewise.
9265 (verify_memory_partitions): Likewise.
9266 (verify_alias_info): Likewise.
9267 (verify_ssa): Adjust..
9268 (execute_update_addresses_taken): Export. Update SSA
9269 manually. Optimize only when optimizing. Use a local bitmap.
9270 (pass_update_address_taken): Remove TODO_update_ssa, add
9271 TODO_dump_func.
9272 (pass_update_address_taken): Just use TODO_update_address_taken.
9273 (init_tree_ssa): Do not initialize addressable_vars.
9274 (verify_ssa): Verify new VUSE / VDEF properties.
9275 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
9276 Do not call verify_alias_info.
9277 (delete_tree_ssa): Clear the VUSE, VDEF operands.
9278 Do not free the loaded and stored syms bitmaps. Reset the escaped
9279 and callused solutions. Do not free addressable_vars.
9280 Remove memory-tag related code.
9281 (warn_uninitialized_var): Aliases are always available.
9282 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
9283 * lambda-code.c (can_put_in_inner_loop): Adjust.
9284 (can_put_after_inner_loop): Likewise.
9285 (perfect_nestify): Likewise.
9286 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
9287 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
9288 (vectorizable_conversion): Do not mark symbols for renaming.
9289 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
9290 (expand_call_inline): Unlink the calls virtual operands before
9291 replacing it.
9292 (tree_function_versioning): Do not call update_ssa if we are not
9293 updating clones. Simplify.
9294 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
9295 (propagate_with_phi): Likewise..
9296 * tree-outof-ssa.c (create_temp): Remove memory tag and call
9297 clobber code. Assert we are not aliased or global.
9298 * tree-flow.h: Include tree-ssa-alias.h
9299 (enum escape_type): Remove.
9300 (struct mem_sym_stats_d): Likewise.
9301 (struct mem_ref_stats_d): Likewise.
9302 (struct gimple_df): Add vop member. Remove global_var,
9303 call_clobbered_vars, call_used_vars, addressable_vars,
9304 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
9305 escaped and callused members.
9306 (struct ptr_info_def): Remove all members, add points-to solution
9307 member pt.
9308 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
9309 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
9310 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
9311 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
9312 (tree-ssa-alias.o): Likewise.
9313 (toplev.o): Add tree-ssa-alias.h
9314 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
9315 * gimple.c (gimple_set_bb): Fix off-by-one error.
9316 (is_gimple_reg): Do not handle memory tags.
9317 (gimple_copy): Also copy virtual operands.
9318 Delay updating the statement. Do not reset loaded and stored syms.
9319 (gimple_set_stored_syms): Remove.
9320 (gimple_set_loaded_syms): Likewise.
9321 (gimple_call_copy_skip_args): Copy the virtual operands
9322 and mark the new statement modified.
9323 * tree-ssa-structalias.c (may_alias_p): Remove.
9324 (set_uids_in_ptset): Take the alias set to prune with as
9325 parameter. Fold in the alias test of may_alias_p.
9326 (compute_points_to_sets): Compute whether a ptr is dereferenced
9327 in a local sbitmap.
9328 (process_constraint): Deal with &ANYTHING on the lhs, reject all
9329 other ADDRESSOF constraints on the lhs.
9330 (get_constraint_for_component_ref): Assert that we don't get
9331 ADDRESSOF constraints from the base of the reference.
9332 Properly generate UNKNOWN_OFFSET for DEREF if needed.
9333 (struct variable_info): Remove collapsed_to member.
9334 (get_varinfo_fc): Remove.
9335 (new_var_info): Do not set collapsed_to.
9336 (dump_constraint): Do not follow cycles.
9337 (dump_constraint_graph): Likewise.
9338 (build_pred_graph): Likewise.
9339 (build_succ_graph): Likewise.
9340 (rewrite_constraints): Likewise.
9341 (do_simple_structure_copy): Remove.
9342 (do_rhs_deref_structure_copy): Remove.
9343 (do_lhs_deref_structure_copy): Remove.
9344 (collapse_rest_of_var): Remove.
9345 (do_structure_copy): Re-implement.
9346 (pta_stats): New global variable.
9347 (dump_pta_stats): New function.
9348 (struct constraint_expr): Make offset signed.
9349 (UNKNOWN_OFFSET): Define special value.
9350 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
9351 (solution_set_expand): New helper function split out from ...
9352 (do_sd_constraint): ... here.
9353 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
9354 (do_ds_constraint): Likewise.
9355 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
9356 and CALLUSED = *CALLUSED.
9357 (set_union_with_increment): Make inc argument signed.
9358 (type_safe): Remove.
9359 (get_constraint_for_ptr_offset): Handle unknown and negative
9360 constant offsets.
9361 (first_vi_for_offset): Handle offsets before start. Bail
9362 out early for offsets beyond the variable extent.
9363 (first_or_preceding_vi_for_offset): New function.
9364 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
9365 Together with ESCAPED = *ESCAPED this properly computes reachability.
9366 (find_what_var_points_to): New function.
9367 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
9368 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
9369 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
9370 pt_solutions_intersect): New functions.
9371 (compute_call_used_vars): Remove.
9372 (compute_may_aliases): New main entry into PTA computation.
9373 * gimple.h (gimple_p): New typedef.
9374 (struct gimple_statement_base): Remove references_memory_p.
9375 (struct gimple_statement_with_memory_ops_base): Remove
9376 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
9377 members.
9378 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
9379 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
9380 gimple_set_references_memory): Remove.
9381 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
9382 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
9383 New functions.
9384 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
9385 (verify_expr): Allow RESULT_DECL.
9386 (gimple_duplicate_bb): Do not copy virtual operands.
9387 (gimple_duplicate_sese_region): Adjust.
9388 (gimple_duplicate_sese_tail): Likewise.
9389 (mark_virtual_ops_in_region): Remove.
9390 (move_sese_region_to_fn): Do not call it.
9391 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
9392 and pass_simple_dse.
9393 (execute_function_todo): Handle TODO_update_address_taken,
9394 call execute_update_addresses_taken for TODO_rebuild_alias.
9395 (execute_todo): Adjust.
9396 (execute_one_pass): Init dump files early.
9397 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
9398 call-clobbered.
9399 (create_general_new_stmt): Clear vops.
9400 * tree-ssa-reassoc.c (get_rank): Adjust.
9401 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
9402 symbols for renaming.
9403 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
9404 (PARAM_AVG_ALIASED_VOPS): Likewise.
9405 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
9406 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
7a715bba 9407 * tree-ssa-operands.c: Simplify for new virtual operand representation.
5006671f
RG
9408 (operand_build_cmp, copy_virtual_operands,
9409 create_ssa_artificial_load_stmt, add_to_addressable_set,
9410 gimple_add_to_addresses_taken): Remove public functions.
9411 (unlink_stmt_vdef): New function.
9412
457d1d00
AM
94132009-04-03 Alan Modra <amodra@bigpond.net.au>
9414
9415 * config.gcc (powerpc-*-linux*): Merge variants.
9416
e19da24c 94172009-04-02 Chao-ying Fu <fu@mips.com>
60839f5d 9418 James Grosbach <james.grosbach@microchip.com>
e19da24c
CF
9419
9420 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
9421 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
9422 cop0_sp_offset.
9423 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
9424 keep_interrupts_masked_p, use_debug_exception_return_p.
9425 (mips_attribute_table): Add interrupt, use_shadow_register_set,
9426 keep_interrupts_masked, use_debug_exception_return.
9427 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
9428 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
9429 New functions.
9430 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
9431 (mips_print_operand): Process COP0 registers to print $0 .. $31
9432 correctly for GAS to process.
9433 (mips_interrupt_extra_call_saved_reg_p): New function.
9434 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
9435 extra registers.
9436 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
9437 (mips_compute_frame_info): Add supports for interrupt context that
9438 includes doubleword accumulators and COP0 registers.
9439 (mips_for_each_saved_acc): New function.
9440 (mips_for_each_saved_gpr_and_fpr): Change the function name from
9441 mips_for_each_saved_reg.
9442 (mips_save_reg): Save accumulators.
9443 (mips_kernel_reg_p): A new for_each_rtx callback.
9444 (mips_expand_prologue): Support interrupt handlers.
9445 (mips_restore_reg): Restore accumulators.
9446 (mips_expand_epilogue): Support interrupt handlers.
9447 (mips_can_use_return_insn): Return false for interrupt handlers.
9448 (mips_epilogue_uses): New function.
9449 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
9450 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
9451 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
9452 cop0_move): New instructions.
9453 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
9454 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
9455 defines.
9456 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
9457 New defines.
9458 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
9459 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
9460 interrupt handlers, we use K0 as the temporary register.
9461 (EPILOGUE_USES): Change to a function call.
9462 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
9463 handlers, we use K0 as the temporary register.
2ba9daa7 9464
e19da24c
CF
9465 * doc/extend.texi (Function Attributes): Document interrupt,
9466 use_shadow_register_set, keep_interrupts_masked,
9467 use_debug_exception_return for MIPS attributes.
9468
aa1ca044
AM
94692009-04-03 Alan Modra <amodra@bigpond.net.au>
9470
9471 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
9472 Remove a number of t-files from tmake_file.
9473 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
9474 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
9475 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
9476 target_prototype, not TARGET_PROTOTYPE.
9477 (LINK_OS_GNU_SPEC): Define.
9478 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
9479 and darwin-ldoubdle.c.
9480
14fdc613
MM
94812009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
9482
9483 PR driver/39293
9484 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
9485 (cpp_options): Ditto.
9486 (default_compilers): Ditto.
9487 (display_help): Ditto.
9488 (process_command): Ditto.
9489 (do_spec_1): Ditto.
9490 (set_input): Use lbasename instead of duplicate code.
9491 (save_temps_prefix): New static for -save-temps=obj.
9492 (save_temps_length): Ditto.
2ba9daa7 9493
14fdc613
MM
9494 * doc/invoke.texi (-save-temps=obj): Document new variant to
9495 -save-temps switch.
9496
d3aa398e
JL
94972009-04-02 Jeff Law <law@redhat.com>
9498
9499 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
9500 variable.
9501
83f0ccb8
L
95022009-04-02 H.J. Lu <hongjiu.lu@intel.com>
9503
9504 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
9505 * configure: Regenerated.
9506
dcb6e951
RAE
95072009-04-02 Rafael Avila de Espindola <espindola@google.com>
9508
9509 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
9510 share the argument list.
9511
d85478c2
RAE
95122009-04-02 Rafael Avila de Espindola <espindola@google.com>
9513
9514 Merge
9515
9516 2009-02-12 Diego Novillo <dnovillo@google.com>
9517
83f0ccb8
L
9518 * varpool.c (debug_varpool): New.
9519 * cgraph.h (debug_varpool): Declare.
d85478c2 9520
34f42a49
JH
95212009-04-02 Jan Hubicka <jh@suse.cz>
9522
9523 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
9524 pass.
9525
a4747b4a
L
95262009-04-02 H.J. Lu <hongjiu.lu@intel.com>
9527
9528 * config/i386/i386.c (ix86_abi): Move initialization to ...
9529 (override_options): Here.
9530
63a9de54
CB
95312009-04-02 Christian Bruel <christian.bruel@st.com>
9532
9533 * config/sh/sh.c (sh_dwarf_register_span): New function.
9534 (TARGET_DWARF_REGISTER_SPAN): Define.
9535 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
2ba9daa7 9536
2f0fa28e
IR
95372009-04-02 Ira Rosen <irar@il.ibm.com>
9538
9539 PR tree-optimization/39595
2ba9daa7 9540 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
2f0fa28e
IR
9541 interleaved loads group is not greater than the SLP group size.
9542
bbf7ce11
RAE
95432009-04-02 Rafael Avila de Espindola <espindola@google.com>
9544
9545 * builtins.c (is_builtin_name): New.
9546 (called_as_built_in): Use is_builtin_name.
9547 * tree.h (is_builtin_name): New.
9548 * varasm.c (incorporeal_function_p): Use is_builtin_name
9549
47e4dfcf
AS
95502009-04-02 Andrew Stubbs <ams@codesourcery.com>
9551
9552 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
9553
d0940d56
DS
95542009-04-02 Dodji Seketeli <dodji@redhat.com>
9555
9556 PR c++/26693
532bfb0a 9557 * c-decl.c (clone_underlying_type): Move this ...
d0940d56
DS
9558 * c-common.c (set_underlying_type): ... here.
9559 Also, make sure the function properly sets TYPE_STUB_DECL() on
9560 the newly created typedef variant type.
9561 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
7a715bba
UB
9562 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
9563 points.
d0940d56 9564
bf1cbdc6
RG
95652009-04-02 Richard Guenther <rguenther@suse.de>
9566
9567 PR tree-optimization/37221
9568 * tree-flow.h (degenerate_phi_result): Declare.
9569 * tree-ssa-dom.c (degenerate_phi_result): Export.
9570 * tree-scalar-evolution.c (analyze_initial_condition): If
9571 the initial condition is defined by a degenerate PHI node
9572 use the degenerate value.
9573
87cfb32c
EB
95742009-04-01 Eric Botcazou <ebotcazou@adacore.com>
9575
9576 PR rtl-optimization/39588
9577 * combine.c (merge_outer_ops): Do not set the constant when this
9578 is not necessary.
9579 (simplify_shift_const_1): Do not modify it either in this case.
9580
bbb6eae8
SB
95812009-04-01 Steven Bosscher <steven@gcc.gnu.org>
9582
9583 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
9584 tuning is deprecated if -mtune value is set to an Itanium1 variant.
9585
839a3b8a
JJ
95862009-04-01 Janis Johnson <janis187@us.ibm.com>
9587
9588 PR c/29027
9589 * c-lex.c (interpret_float): Default (no suffix) is double.
9590
667e8acb
XDL
95912009-04-1 Xinliang David Li <davidxl@google.com>
9592
9593 * config/i386/i386.c (legitimate_constant_p): Recognize
9594 all one vector constant.
9595
60839f5d 95962009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 9597
60839f5d 9598 * config/vax/vax.c: Add #includes to silence warnings.
c4e75102
MT
9599 Change #include order to silence two warnings.
9600
60839f5d 96012009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 9602
60839f5d 9603 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
c4e75102
MT
9604 (ASM_SPEC): Pass -k to the assembler for PIC code.
9605
60839f5d 96062009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 9607
60839f5d
EB
9608 * config.gcc: Add vax-*-linux* to the switch.
9609 * config/vax/linux.h: New file. (TARGET_VERSION,
c4e75102
MT
9610 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
9611
60839f5d 96122009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 9613
60839f5d 9614 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
c4e75102 9615 Use predicate macros instead of GET_CODE() == foo.
60839f5d 9616 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
c4e75102
MT
9617 ashlsi3, rotrsi3, <unnamed>): Likewise.
9618
60839f5d 96192009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 9620
60839f5d 9621 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
c4e75102 9622 jbbccihi, jbbccisi): Remova trailing whitespace.
60839f5d
EB
9623 * config/vax/constraints.md: Likewise.
9624 * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
9625 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
9626 * config/vax/predicates.md: Likewise.
9627 * config/vax/vax.c (print_operand_address, vax_output_int_move,
c4e75102 9628 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
60839f5d
EB
9629 * config/vax/vax.h: Likewise.
9630 * config/vax/vax.md (nonlocal_goto): Likewise.
c4e75102 9631
60839f5d 96322009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 9633
60839f5d 9634 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
c4e75102
MT
9635 (indirectable_address_p, adjacent_operands_p): Add spaces around
9636 braces.
60839f5d 9637 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
c4e75102 9638
60839f5d 96392009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 9640
60839f5d 9641 * config/vax/vax.c (legitimate_constant_address_p,
c4e75102
MT
9642 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
9643 index_term_p, reg_plus_index_p, legitimate_address_p,
9644 vax_mode_dependent_address_p): Update comments to match functions
9645 modified by the recent int->bool conversion.
9646
60839f5d 96472009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 9648
60839f5d
EB
9649 * config/vax/builtins.md: Update copyright message.
9650 * config/vax/constraints.md: Likewise.
9651 * config/vax/netbsd-elf.h: Likewise.
9652 * config/vax/predicates.md: Likewise.
9653 * config/vax/vax-protos.h: Likewise.
9654 * config/vax/vax.c: Likewise.
9655 * config/vax/vax.h: Likewise.
9656 * config/vax/vax.md: Likewise.
9657 * config/vax/vax.opt: Likewise.
c4e75102 9658
60839f5d 96592009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 9660
60839f5d 9661 * config/vax/builtins.md (ffssi2, ffssi2_internal,
c4e75102 9662 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
60839f5d
EB
9663 * config/vax/constraints.md (B, R): Likewise.
9664 * config/vax/predicates.md (external_memory_operand,
c4e75102 9665 nonimmediate_addsub_di_operand): Likewise.
60839f5d
EB
9666 * config/vax/vax.c (vax_output_int_add): Likewise.
9667 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
c4e75102
MT
9668 untyped_call): Likewise.
9669
60839f5d 96702009-04-01 Matt Thomas <matt@3am-software.com>
c4e75102 9671
7a715bba
UB
9672 * config/vax/predicates.md: New file.
9673 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
c4e75102
MT
9674 external_const_operand, nonsymbolic_operand, external_memory_operand,
9675 indirect_memory_operand, indexed_memory_operand,
9676 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
9677 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
9678 predicate.
7a715bba
UB
9679 * config/vax/constraints.md: New file.
9680 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
9681 New constraint.
9682 * config/vax/builtins.md: New file.
9683 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
9684 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
9685 jbbccisi): Define.
c4e75102
MT
9686 * config/vax/vax.opt (mqmath): Add option.
9687 * config/vax/vax.md (isfx): Extend with DI.
9688 (VAXintQH, VAXintQHSD): Define.
9689 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
9690 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
9691 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
9692 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
9693 (movdi): Update constraints and use vax_output_int_move().
9694 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
9695 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
9696 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
9697 nonlocal_goto): New.
9698 (mov<mode>): Extend accepted operand types.
9699 (subdi3_old): Rename from subdi3, change update constraints and use
9700 a new implementation.
60839f5d 9701 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
c4e75102
MT
9702 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
9703 MOVE_RATIO, CLEAR_RATIO): Define.
9704 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
9705 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
9706 (PRINT_OPERAND): Redefine using a function instead of inlined code.
60839f5d 9707 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
c4e75102
MT
9708 (split_quadword_operands): Make static and really allow variable
9709 splitting.
9710 (print_operand_address): Update for PIC generation.
9711 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
9712 indexable_address_p, fixup_mathdi_operand,
9713 vax_expand_addsub_di_operands, adjacent_operands_p): New.
9714 (vax_float_literal, legitimate_constant_p,
9715 indirectable_constant_address_p, index_term_p,
9716 reg_plus_index_p): Return bool instead of int.
9717 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
9718 where needed.
9719 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
9720 generation.
9721 (vax_output_conditional_branch): Indent.
9722 (legitimate_constant_address_p, indirectable_constant_address_p,
9723 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
9724 vax_mode_dependent_address_p): Return bool instead of int, update for
9725 PIC generation.
9726 * config/vax/vax-protos.h (legitimate_constant_address_p,
9727 legitimate_constant_p, legitimate_address_p,
9728 vax_mode_dependent_address_p): Change declaration to bool.
9729 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
9730 vax_expand_addsub_di_operands, vax_output_int_subtract,
9731 vax_output_movmemsi): Declare.
9732 (split_quadword_operands, vax_float_literal): Delete declaration.
9733 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
9734 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
9735 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
9736 ASM_OUTPUT_DWARF_PCREL): Define.
9737 (ASM_SPEC): Change definition to allow PIC generation.
9738
9332c6eb
L
97392009-04-01 Steve Ellcey <sje@cup.hp.com>
9740
9741 * doc/sourcebuild.texi: Update front-end requirements.
9742
d93e052c
JJ
97432009-04-01 Jakub Jelinek <jakub@redhat.com>
9744
9745 PR target/39226
9746 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
9747 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
9748 (booldi3_internal3): Use boolean_or_operator instead of
9749 boolean_operator.
9750
6ccb2a4a
JM
97512009-04-01 Joseph Myers <joseph@codesourcery.com>
9752
9753 PR c/39605
9754 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
9755 declarator whose size is not an integer constant expression but
9756 folds to an integer constant, then treat it as a constant
9757 subsequently.
9758
299b87f8
RG
97592009-04-01 Richard Guenther <rguenther@suse.de>
9760
9761 * fold-const.c (fold_plusminus_mult_expr): Do not fold
9762 i * 4 + 2 to (i * 2 + 1) * 2.
9763
b85eb797
JJ
97642009-04-01 Jakub Jelinek <jakub@redhat.com>
9765
9766 PR c/37772
9767 * c-parser.c (c_parser_asm_statement): Skip until close paren and
9768 return if c_parser_asm_string_literal returned NULL.
9769
235e1fe8
NC
97702009-04-01 Nick Clifton <nickc@redhat.com>
9771
9772 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
9773 already defined.
9774 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
9775 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
9776 other typedefs to avoid conflicts with libgcc2.c. Define labels
9777 to gain 16-bit bit-manipulation functions from libgcc2.c and then
9778 include it.
9779 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
9780 to gain 16-bit trapping arithmetic functions from libgcc2.c and
9781 then include it.
9782
d6868399
RAE
97832009-04-01 Rafael Avila de Espindola <espindola@google.com>
9784
7a715bba
UB
9785 * varasm.c (default_function_rodata_section): Declare DOT as
9786 const char*.
d6868399 9787
73d21f56 97882009-04-01 Kai Tietz <kai.tietz@onevision.com>
60839f5d 9789 Andrey Galkin <agalkin@hypercom.com>
73d21f56
KT
9790
9791 PR/39492
9792 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
9793 Make object_name unique for each process.
9794
03742a9b
JJ
97952009-04-01 Jakub Jelinek <jakub@redhat.com>
9796
9797 PR other/39591
9798 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
9799 addressable variables in the parallel that could go out of scope while
9800 running queued tasks.
9801
4223ff5f
AS
98022009-04-01 Anatoly Sokolov <aesok@post.ru>
9803
9804 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
9805 (CASE_VALUES_THRESHOLD): Redefine.
9806 * config/avr/avr.c (avr_override_options): Remove initialization of
9807 avr_case_values_threshold variable.
9808 (avr_case_values_threshold): Remove variable. Add new function.
9809 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
9810 * config/avr/avr.opt (mno-tablejump): Remove option.
9811 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
9812
e893f6f3
DD
98132009-04-01 DJ Delorie <dj@redhat.com>
9814
9815 * varasm.c (default_function_rodata_section): Don't assume
9816 anything about where the first '.' in the section name is.
9817
b246d100
AM
98182009-04-01 Alan Modra <amodra@bigpond.net.au>
9819
9820 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
9821 rs6000_emit_stack_tie.
9822
d3e37a9e
ILT
98232009-03-31 Ian Lance Taylor <iant@google.com>
9824
9825 * tree-eh.c (tree_remove_unreachable_handlers): Compare
9826 gimple_code with GIMPLE_RESX, not RESX.
9827
c1b61fca
JM
98282009-03-31 Joseph Myers <joseph@codesourcery.com>
9829
9830 * c-common.c (c_get_ident): New.
7a715bba 9831 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
c1b61fca 9832
c2d2ad48
BE
98332009-04-01 Ben Elliston <bje@au.ibm.com>
9834
9835 * config/rs6000/sysv4.opt (msdata): Improve option description.
9836
13d1a6e7
SE
98372009-03-31 Steve Ellcey <sje@cup.hp.com>
9838
9839 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
9840 (divdf3_internal_lat): Remove.
9841 (divxf3_internal_lat): Remove.
9842 (divxf3_internal_thr): Remove.
9843 (divxf): Use divxf3_internal.
9844 * config/ia64/div.md (divsf3_internal_lat): New.
9845 (divdf3_internal_lat): New.
9846 (divxf3_internal): New.
9847
207bf79d
JM
98482009-03-31 Joseph Myers <joseph@codesourcery.com>
9849
9850 PR c/448
9851 * Makefile.in (USE_GCC_STDINT): Define.
9852 (stmp-int-hdrs): Install stdint.h if applicable.
9853 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
9854 if known.
9855 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
9856 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
9857 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
9858 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
9859 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
9860 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
9861 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
9862 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
9863 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
9864 (c_common_nodes_and_builtins): Initialize
9865 underlying_wchar_type_node. Do not initialize
9866 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
9867 nodes for new types.
9868 (c_stddef_cpp_builtins): Define macros for new types.
9869 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
9870 Remove.
9871 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
9872 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
9873 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
9874 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
9875 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
9876 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
9877 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
9878 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
9879 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
9880 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
9881 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
9882 int16_type_node, int32_type_node, int64_type_node,
9883 uint8_type_node, uint16_type_node, c_uint32_type_node,
9884 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
9885 int_least32_type_node, int_least64_type_node,
9886 uint_least8_type_node, uint_least16_type_node,
9887 uint_least32_type_node, uint_least64_type_node,
9888 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
9889 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
9890 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
9891 uintptr_type_node): Define.
9892 * c-cppbuiltin.c (builtin_define_constants,
9893 builtin_define_type_minmax): New.
9894 (builtin_define_stdint_macros): Define more macros.
9895 (c_cpp_builtins): Define more limit macros.
9896 (type_suffix): New.
9897 (builtin_define_type_max): Define in terms of
9898 builtin_define_type_minmax. Remove is_long parameter. All
9899 callers changed.
9900 * config.gcc (use_gcc_stdint): Define.
9901 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
9902 Add newlib-stdint.h for generic targets.
9903 * config/glibc-stdint.h, config/newlib-stdint.h,
9904 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
9905 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
9906 * config/score/score.h (UINTPTR_TYPE): Define.
9907 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
9908 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
9909 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
9910 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
9911 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
9912 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
9913 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
9914 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
9915 * config/spu/spu.h (STDINT_LONG32): Define.
9916 * configure.ac (use_gcc_stdint): Substitute.
9917 * configure: Regenerate.
9918 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
9919 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
9920 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
9921 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
9922 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
9923 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
9924 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
9925 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
9926 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
9927 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
9928 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
9929 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
9930 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
9931 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
9932 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
9933 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
9934 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
9935 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
9936 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
9937 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
9938 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
9939 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
9940 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
9941 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
9942 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
9943 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
9944 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
9945 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
9946 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
9947
ed853664
BS
99482009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
9949
9950 * loop-iv.c (suitable_set_for_replacement): Renamed from
9951 simplify_using_assignment; changed to return bool and to accept new
9952 args DEST and SRC. Return true iff we find a source/destination pair
9953 that can be used to make a replacement, and fill SRC and DEST if so.
9954 Remove arg ALTERED. Don't deal with altered regs here. All callers
9955 changed.
9956 (simplify_using_initial_values): Deal with altered regs here and track
9957 more precisely the effect they have on the validity of our expression.
9958
1569e190
BS
9959 * loop-iv.c (simplify_using_condition): A condition of the form
9960 (EQ REG CONST) can be used to simply make a substitution.
9961 (simplify_using_initial_values): Keep track of conditions we have seen
9962 and keep using them to simplify new expressions, while applying the
9963 same substitutions to them as to the expression.
9964
1d1eb80c
BS
9965 * simplify-rtx.c (simplify_relational_operation_1): Simplify
9966 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
9967 GEU/LTU reversed.
9968
28af33b0
BS
9969 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
9970 changed. Use this when trying to improve the upper bound.
9971 Generate the comparison by using simplify_gen_relational.
9972
b30321cd
BS
9973 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
9974
60081874
BS
9975 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
9976 functions.
2ba9daa7 9977 (simplify_using_assignment, simplify_using_initial_values): Call
60081874
BS
9978 replace_in_expr to make replacements. Call replace_single_def_regs
9979 once on the initial version of the expression.
9980
bebc6e07
RR
99812009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9982
fcb82ab0 9983 PR target/27237
bebc6e07 9984 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
2ba9daa7 9985
6b12efe9
RG
99862009-03-31 Richard Guenther <rguenther@suse.de>
9987
9988 PR middle-end/31029
9989 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
9990 equality comparisons. Fold C - X CMP X if C % 2 == 1.
9991
108f6c2f
RG
99922009-03-31 Richard Guenther <rguenther@suse.de>
9993
9994 * tree.h (div_if_zero_remainder): Declare.
9995 * fold-const.c (div_if_zero_remainder): Export.
9996 * tree-ssa-forwprop.c
9997 (forward_propagate_addr_into_variable_array_index): Handle
9998 constant array index addition outside of the variable index.
9999
8f612190
JM
100002009-03-31 Joseph Myers <joseph@codesourcery.com>
10001
10002 PR target/39592
10003 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
10004 define_splits, floatunssi<mode>2): Require x87 conversions from
10005 DImode to be permitted.
10006
47580d22
JM
100072009-03-31 Joseph Myers <joseph@codesourcery.com>
10008
10009 PR preprocessor/15638
10010 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
10011
ba4d8f9d
RG
100122009-03-31 Richard Guenther <rguenther@suse.de>
10013
10014 PR middle-end/23401
10015 PR middle-end/27810
10016 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
10017 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
10018 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
10019 a separate statement.
10020 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
10021 (lookup_tmp_var): Likewise.
10022 (is_gimple_formal_tmp_or_call_rhs): Remove.
10023 (is_gimple_reg_or_call_rhs): Rename to ...
10024 (is_gimple_reg_rhs_or_call): ... this.
10025 (is_gimple_mem_or_call_rhs): Rename to ...
10026 (is_gimple_mem_rhs_or_call): ... this.
10027 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
10028 DECL_GIMPLE_REG_P only if is_formal is true.
10029 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
10030 for non-proper post-modify expression gimplification.
10031 (gimplify_self_mod_expr): For post-modify expressions gimplify
10032 the lvalue to a minimal lvalue.
10033 (rhs_predicate_for): Remove formal temp case.
10034 (gimplify_modify_expr_rhs): Likewise.
10035 (gimplify_addr_expr): Use is_gimple_reg.
10036 (gimplify_expr): Remove formal temp cases.
10037 (gimple_regimplify_operands): Likewise.
10038 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
10039 and FILTER_EXPR like constants.
10040 * gimple.c (walk_gimple_op): Fix val_only initialization, use
10041 is_gimple_reg.
10042 (is_gimple_formal_tmp_rhs): Remove.
10043 (is_gimple_reg_rhs): Remove special casing.
10044 (is_gimple_mem_rhs): Fix.
10045 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
10046 (is_gimple_formal_tmp_var): Remove.
10047 (is_gimple_formal_tmp_reg): Likewise.
10048 (is_gimple_min_lval): Allow invariant component ref parts.
10049 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
10050 is_gimple_formal_tmp_reg): Remove declarations.
10051 * tree-cfg.c (verify_expr): Verify that variables with address
10052 taken do not have DECL_GIMPLE_REG_P set.
10053 * tree-mudflap.c (mf_build_check_statement_for): Use
10054 force_gimple_operand instead of gimplify_expr.
10055
8de9b877
AZ
100562009-03-31 Ayal Zaks <zaks@il.ibm.com>
10057
10058 * modulo-sched.c (sms_schedule_by_order): Pass the actual
10059 schedulable rows to compute_split_row.
10060
b5e3caf2
BE
100612009-03-31 Ben Elliston <bje@au.ibm.com>
10062
10063 PR target/31635
10064 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
10065 OPT_mvrsave.
10066
9752c4ad
AM
100672009-03-31 Alan Modra <amodra@bigpond.net.au>
10068
10069 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
10070 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
10071 * configure: Regenerate.
10072 * config.in: Regenerate.
10073 * config/rs6000/rs6000.opt (mtls-markers): Add.
10074 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
10075 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
10076 (tls_ld_aix, tls_ld_sysv): Likewise.
10077 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
10078 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
10079
b597d1b6
AM
100802009-03-31 Alan Modra <amodra@bigpond.net.au>
10081
10082 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
10083
a203a221
JH
100842009-03-30 Jan Hubicka <jh@suse.cz>
10085
b597d1b6
AM
10086 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
10087 out of RESX.
10088 (tree_remove_unreachable_handlers): Cleanup EH predecestor
10089 detection and label handling.
a203a221 10090
5b0c0b2c
VM
100912009-03-30 Vladimir Makarov <vmakarov@redhat.com>
10092
10093 * ira-int.h (ira_allocno): Rename left_conflicts_num to
10094 left_conflicts_size.
10095 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
10096 ALLOCNO_LEFT_CONFLICTS_SIZE.
10097
10098 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
10099 remove_allocno_from_bucket_and_push,
10100 allocno_spill_priority_compare, push_allocnos_to_stack,
10101 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
10102 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
10103 (setup_allocno_left_conflicts_num): Ditto. Rename to
10104 setup_allocno_left_conflicts_size.
10105 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
10106 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
10107 setup_allocno_left_conflicts_size instead of
10108 setup_allocno_left_conflicts_num.
10109
10110 * ira-build.c (ira_create_allocno): Use
10111 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
10112 ALLOCNO_LEFT_CONFLICTS_NUM.
2ba9daa7 10113
9a48a93f
VM
101142009-03-30 Vladimir Makarov <vmakarov@redhat.com>
10115
10116 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
10117 instead of DF_LR_OUT.
10118
10119 * ira-lives.c (process_bb_node_lives): Ditto.
10120
10121 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
10122 instead of DF_LR_{OUT,IN}.
10123
10124 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
10125
10126 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
10127
4c936d4f
JH
101282009-03-30 Jan Hubicka <jh@suse.cz>
10129
10130 * except.c (label_to_region_map): Fix thinko.
10131
f4d9f129
SE
101322009-03-30 Steve Ellcey <sje@cup.hp.com>
10133
10134 PR middle-end/38237
10135 * tree.h (tree_find_value): New declaration.
10136 * tree.c (tree_find_value): New function.
10137 * varasm.c (assemble_external): Avoid duplicate entries on lists.
10138
b3f27c15
JJ
101392009-03-30 Jakub Jelinek <jakub@redhat.com>
10140
10141 PR debug/39563
10142 * c-decl.c (struct c_binding): Add locus field.
10143 (bind): Add locus argument, set locus field from it.
10144 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
10145 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
10146 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
10147 implicitly_declare, undeclared_variable, lookup_label,
10148 declare_label, c_make_fname_decl, c_builtin_function,
10149 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
10150 bind callers.
10151
ad41bd84 101522009-03-30 H.J. Lu <hongjiu.lu@intel.com>
680e8a00
L
10153
10154 PR target/38781
10155 * config/i386/i386.c (classify_argument): Check total size of
10156 structure.
10157
133f9369
MJ
101582009-03-30 Martin Jambor <mjambor@suse.cz>
10159
10160 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
10161 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
10162 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
10163 respectively.
10164
10165 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
10166 seen_variable_array_ref while also traversing a union.
10167
10168 * tree-inline.c (optimize_inline_calls): Do not call
10169 cgraph_node_remove_callees.
10170 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
10171 (pass_remove_cgraph_callee_edges): New variable.
10172 * passes.c (init_optimization_passes): Add
10173 pass_remove_cgraph_callee_edges after early inlining and before all
10174 late intraprocedural passes.
10175
10176 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
10177
1190f2eb
PB
101782009-03-30 Paolo Bonzini <bonzini@gnu.org>
10179
10180 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
10181 Fix typos in names.
10182
fedc1775
PB
101832009-03-30 Paolo Bonzini <bonzini@gnu.org>
10184
fcb82ab0
UB
10185 * combine.c (simplify_comparison): Use have_insn_for.
10186 * dojump.c (do_jump): Likewise.
fedc1775 10187
65c5ae8b
PB
101882009-03-30 Paolo Bonzini <bonzini@gnu.org>
10189
10190 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
10191 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
10192 sparc_compare_op0 like sparc_compare_emitted used to be handled.
10193 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
10194 instead of sparc_compare_emitted.
10195 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
10196 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
10197 instead of sparc_compare_emitted.
10198
d25aa7ab
PB
101992009-03-30 Paolo Bonzini <bonzini@gnu.org>
10200
10201 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
10202 enter/exit cfglayout mode.
10203 (pass_partition_block): Require it.
10204 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
10205 (combine_instructions): Track basic blocks instead of labels.
10206 (update_cfg_for_uncondjump): New.
10207 (try_combine): Use it. Update jumps after rescanning.
10208 (pass_combine): Require PROP_cfglayout.
10209 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
10210
9c9e26f5
PB
102112009-03-30 Paolo Bonzini <bonzini@gnu.org>
10212
fcb82ab0
UB
10213 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
10214 Provide/destroy PROP_cfglayout respectively.
10215 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
10216 * tree-pass.h (PROP_cfglayout): New.
9c9e26f5 10217
28ddeea1
PB
102182009-03-30 Paolo Bonzini <bonzini@gnu.org>
10219
10220 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
10221 fold_convert_const_fixed_from_fixed,
10222 fold_convert_const_fixed_from_int,
10223 fold_convert_const_fixed_from_real, fold_negate_const): Do not
10224 set TREE_CONSTANT_OVERFLOW.
10225 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
10226 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
10227
ebfd146a
IR
102282009-03-30 Ira Rosen <irar@il.ibm.com>
10229
10230 * tree-vect-loop-manip.c: New file.
10231 * tree-vectorizer.c: Update documentation and included files.
10232 (vect_loop_location): Make extern.
10233 (rename_use_op): Move to tree-vect-loop-manip.c
2ba9daa7
AS
10234 (rename_variables_in_bb, rename_variables_in_loop,
10235 slpeel_update_phis_for_duplicate_loop,
ebfd146a
IR
10236 slpeel_update_phi_nodes_for_guard1,
10237 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
10238 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
10239 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
2ba9daa7 10240 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
ebfd146a
IR
10241 find_loop_location): Likewise.
10242 (new_stmt_vec_info): Move to tree-vect-stmts.c.
10243 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
10244 get_vectype_for_scalar_type, vect_is_simple_use,
10245 supportable_widening_operation, supportable_narrowing_operation):
10246 Likewise.
10247 (bb_in_loop_p): Move to tree-vect-loop.c.
2ba9daa7
AS
10248 (new_loop_vec_info, destroy_loop_vec_info,
10249 reduction_code_for_scalar_code, report_vect_op,
ebfd146a
IR
10250 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
10251 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
10252 (vect_supportable_dr_alignment): Likewise.
10253 * tree-vectorizer.h (tree-data-ref.h): Include.
10254 (vect_loop_location): Declare.
10255 Reorganize function declarations according to the new file structure.
10256 * tree-vect-loop.c: New file.
2ba9daa7 10257 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
ebfd146a
IR
10258 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
10259 * tree-vect-data-refs.c: New file.
10260 * tree-vect-patterns.c (timevar.h): Don't include.
10261 * tree-vect-stmts.c: New file.
2ba9daa7 10262 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
ebfd146a 10263 tree-vect-slp.c, tree-vect-loop.c.
2ba9daa7
AS
10264 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
10265 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
ebfd146a
IR
10266 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
10267 (tree-vect-analyze.o): Remove.
10268 (tree-vect-transform.o): Likewise.
10269 (tree-vect-data-refs.o): Add rule.
2ba9daa7 10270 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
ebfd146a
IR
10271 tree-vect-slp.o): Likewise.
10272 (tree-vect-patterns.o): Remove redundant dependencies.
10273 (tree-vectorizer.o): Likewise.
10274 * tree-vect-slp.c: New file.
10275
40a1cfba
RW
102762009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10277
10278 * optc-gen.awk: Warn if an option flag has multiple different
10279 help strings.
10280
a9a7a9a2
SP
102812009-03-30 Sebastian Pop <sebastian.pop@amd.com>
10282
10283 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
10284 -floop-block): Document dependences on PPL, CLooG and Graphite.
10285
8ce94e44
JM
102862009-03-30 Joseph Myers <joseph@codesourcery.com>
10287
10288 PR rtl-optimization/323
10289 * c-common.c (c_fully_fold, convert_and_check,
10290 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
10291 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
10292 * c-common.def (EXCESS_PRECISION_EXPR): New.
10293 * c-cppbuiltin.c (builtin_define_float_constants): Define
10294 constants with enough digits for long double.
10295 * c-lex.c (interpret_float): Interpret constant with excess
10296 precision where appropriate.
10297 * c-opts.c (c_common_post_options): Set
10298 flag_excess_precision_cmdline. Give an error for
10299 -fexcess-precision=standard for C++ for processors where the
10300 option is significant.
10301 * c-parser.c (c_parser_conditional_expression): Handle excess
10302 precision in condition.
10303 * c-typeck.c (convert_arguments): Handle arguments with excess
10304 precision.
10305 (build_unary_op): Move excess precision outside operation.
10306 (build_conditional_expr): Likewise.
10307 (build_compound_expr): Likewise.
10308 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
10309 (build_modify_expr): Handle excess precision in RHS.
10310 (convert_for_assignment): Handle excess precision in converted
10311 value.
10312 (digest_init, output_init_element, process_init_element): Handle
10313 excess precision in initializer.
10314 (c_finish_return): Handle excess precision in return value.
10315 (build_binary_op): Handle excess precision in operands and add
10316 excess precision as needed for operation.
10317 * common.opt (-fexcess-precision=): New option.
10318 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
10319 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10320 For standard excess precision, output explicit conversion to and
10321 truncation from XFmode.
10322 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
10323 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
10324 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
10325 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
10326 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
10327 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
10328 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
10329 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
10330 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
10331 define_splits, sqrt<mode>2): Disable where appropriate for
10332 standard excess precision.
10333 * convert.c (convert_to_real): Do not shorten arithmetic to type
10334 for which excess precision would be used.
10335 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
10336 * doc/invoke.texi (-fexcess-precision=): Document option.
10337 (-mfpmath=): Correct index entry.
10338 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
10339 flag_excess_precision): New.
10340 * langhooks.c (lhd_post_options): Set
10341 flag_excess_precision_cmdline.
10342 * opts.c (common_handle_option): Handle -fexcess-precision=.
10343 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
10344 init_excess_precision): New.
10345 (lang_dependent_init_target): Call init_excess_precision.
10346 * tree.c (excess_precision_type): New.
10347 * tree.h (excess_precision_type): Declare.
10348
1e57bf47
JM
103492009-03-30 Joseph Myers <joseph@codesourcery.com>
10350
10351 PR c/35235
10352 * c-typeck.c (build_component_ref): Do not copy qualifiers from
10353 non-lvalue to component.
10354
148e4216
JM
103552009-03-29 Joseph Myers <joseph@codesourcery.com>
10356
10357 PR preprocessor/34695
10358 * Makefile.in (c-opts.o): Depend on c-tree.h.
10359 * c-common.c: Move down include of diagnostic.h.
10360 (done_lexing, c_cpp_error): New.
10361 * c-common.h (done_lexing): Declare.
10362 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
10363 (parse_in).
10364 * c-opts.c: Include c-tree.h.
10365 (c_common_init_options): Set preprocessor error callback.
10366 (c_common_handle_option): Do not set preprocessor
10367 inhibit_warnings, warnings_are_errors, warn_system_headers,
10368 pedantic_errors or inhibit_warnings flags.
10369 (c_common_post_options): Do not check cpp_errors (parse_in).
10370 (c_common_finish): Do not output dependencies if there were
10371 errors. Do not check return value of cpp_finish.
10372 * c-ppoutput.c (pp_file_change): Set input_location.
10373 * c-tree.h (c_cpp_error): Declare.
10374 * diagnostic.c (diagnostic_set_info_translated): Also initialize
10375 override_column.
10376 (diagnostic_build_prefix): Check override_column.
10377 * diagnostic.h (diagnostic_info): Add override_column field.
10378 (diagnostic_override_column): Define.
10379
2ec5deb5
PB
103802009-03-28 Paolo Bonzini <bonzini@gnu.org>
10381
ba20e309
UB
10382 * c-common.c (c_expand_expr, c_staticp): Remove.
10383 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
10384 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
10385 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
10386 * c-gimplify.c (gimplify_compound_literal_expr,
10387 optimize_compound_literals_in_ctor): Remove.
10388 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
10389 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
10390 * c-semantics.c (emit_local_var): Remove.
10391
10392 * langhooks-def.h (lhd_expand_expr): Remove.
10393 * langhooks.c (lhd_expand_expr): Remove.
10394 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
10395
10396 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
10397 handling from c-semantics.c; don't call into langhook.
10398 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
10399 * gimplify.c (gimplify_compound_literal_expr,
10400 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
10401 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
10402 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
10403 as was done in c-gimplify.c.
10404 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
10405 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
10406 Move from c-common.h.
10407 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
2ec5deb5
PB
10408
10409 * tree.c (staticp): Do not call langhook.
10410 * langhooks.c (lhd_staticp): Delete.
10411 * langhooks-def.h (lhd_staticp): Delete prototype.
10412 (LANG_HOOKS_STATICP): Delete.
10413 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
10414
ba20e309
UB
10415 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
10416 instead of DECL_STMTs.
2ec5deb5 10417
928c19bb
JM
104182009-03-29 Joseph Myers <joseph@codesourcery.com>
10419
10420 PR c/456
10421 PR c/5675
10422 PR c/19976
10423 PR c/29116
10424 PR c/31871
10425 PR c/35198
10426 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
10427 void_type_node.
10428 (fold_call_expr): Return a NOP_EXPR from folding rather than the
10429 contained expression.
ba20e309 10430 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
928c19bb
JM
10431 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
10432 conditional expressions for C.
10433 (decl_constant_value_for_optimization): Move from
ba20e309 10434 decl_constant_value_for_broken_optimization in c-typeck.c. Check
928c19bb
JM
10435 whether optimizing and that the expression is a VAR_DECL not of
10436 array type instead of doing such checks in the caller. Do not
10437 check pedantic. Call gcc_unreachable for C++.
10438 * c-common.def (C_MAYBE_CONST_EXPR): New.
10439 * c-common.h (c_fully_fold, c_save_expr,
10440 decl_constant_value_for_optimization): New prototypes.
10441 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
10442 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
10443 EXPR_INT_CONST_OPERANDS): Define.
10444 * c-convert.c (convert): Strip nops from expression.
10445 * c-decl.c (groktypename): Take extra parameters expr and
10446 expr_const_operands. Update call to grokdeclarator.
10447 (start_decl): Update call to grokdeclarator. Add statement for
10448 expressions used in type of decl.
10449 (grokparm): Update call to grokdeclarator.
10450 (push_parm_decl): Update call to grokdeclarator.
10451 (build_compound_literal): Add parameter non_const and build a
10452 C_MAYBE_COSNT_EXPR if applicable.
10453 (grokdeclarator): Take extra parameters expr and
10454 expr_const_operands. Track expressions used in declaration
10455 specifiers and declarators. Fold array sizes and track whether
10456 they are constant expressions and whether they are integer
10457 constant expressions.
10458 (parser_xref_tag): Set expr and expr_const_operands fields in
10459 return value.
10460 (grokfield): Update call to grokdeclarator.
10461 (start_function): Update call to grokdeclarator.
10462 (build_null_declspecs): Set expr and expr_const_operands fields in
10463 return value.
10464 (declspecs_add_type): Handle expressions in typeof specifiers.
10465 * c-parser.c (c_parser_declspecs): Set expr and
10466 expr_const_operands fields for declaration specifiers.
10467 (c_parser_enum_specifier): Likewise.
10468 (c_parser_struct_or_union_specifier): Likewise.
10469 (c_parser_typeof_specifier): Likewise. Update call to
10470 groktypename. Fold expression as needed. Return expressions with
10471 type instead of adding statements.
10472 (c_parser_attributes): Update calls to c_parser_expr_list.
10473 (c_parser_statement_after_labels): Fold expression before passing
10474 to objc_build_throw_stmt.
10475 (c_parser_condition): Fold expression.
10476 (c_parser_asm_operands): Fold expression.
10477 (c_parser_conditional_expression): Use c_save_expr. Update call
10478 to build_conditional_expr.
10479 (c_parser_alignof_expression): Update call to groktypename.
10480 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
10481 original_code. Fold expression argument of va_arg. Create
10482 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
10483 argument to va_arg. Update calls to groktypename. Fold array
10484 index for offsetof. Verify that first argument to
10485 __builtin_choose_expr has integer type.
10486 (c_parser_postfix_expression_after_paren_type): Update calls to
10487 groktypename and build_compound_literal. Handle expressions with
10488 side effects in type name.
10489 (c_parser_postfix_expression_after_primary): Update call to
10490 c_parser_expr_list. Set original_code for calls to
10491 __builtin_constant_p.
10492 (c_parser_expr_list): Take extra parameter fold_p. Fold
10493 expressions if requested.
10494 (c_parser_objc_type_name): Update call to groktypename.
10495 (c_parser_objc_synchronized_statement): Fold expression.
10496 (c_parser_objc_receiver): Fold expression.
10497 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
10498 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
10499 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
10500 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
10501 (struct c_typespec): Add elements expr and expr_const_operands.
10502 (struct c_declspecs): Add elements expr and expr_const_operands.
10503 (groktypename, build_conditional_expr, build_compound_literal):
10504 Update prototypes.
10505 (in_late_binary_op): Declare.
10506 * c-typeck.c (note_integer_operands): New function.
10507 (in_late_binary_op): New variable.
10508 (decl_constant_value_for_broken_optimization): Move to c-common.c
10509 and rename to decl_constant_value_for_optimization.
10510 (default_function_array_conversion): Do not strip nops.
10511 (default_conversion): Do not call
10512 decl_constant_value_for_broken_optimization.
10513 (build_array_ref): Do not fold result.
10514 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
10515 result when operand is a VLA.
10516 (c_expr_sizeof_type): Update call to groktypename. Handle
10517 expressions included in type name. Use C_MAYBE_CONST_EXPR for
10518 result when operand names a VLA type.
10519 (build_function_call): Update call to build_compound_literal.
10520 Only fold result for calls to __builtin_* functions. Strip
10521 NOP_EXPR from INTEGER_CST returned from such functions. Fold
10522 the function designator.
10523 (convert_arguments): Fold arguments. Update call to
10524 convert_for_assignment.
10525 (build_unary_op): Handle increment and decrement of
10526 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
10527 decrement earlier. Fold operand of increment and decrement.
10528 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
10529 built for integer operand. Wrap returns that are INTEGER_CSTs
10530 without being integer constant expressions or that have integer
10531 constant operands without being INTEGER_CSTs.
10532 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
10533 (build_conditional_expr): Add operand ifexp_bcp. Track whether
10534 result is an integer constant expression or can be used in
10535 unevaluated parts of one and avoid folding and wrap as
10536 appropriate. Fold operands before possibly doing -Wsign-compare
10537 warnings.
10538 (build_compound_expr): Wrap result for C99 if operands can be used
10539 in integer constant expressions.
10540 (build_c_cast): Update call to digest_init. Do not ignore
10541 overflow from casting floating-point constants to integers. Wrap
10542 results that could be confused with integer constant expressions,
10543 null pointer constants or floating-point constants.
10544 (c_cast_expr): Update call to groktypename. Handle expressions
10545 included in type name.
10546 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
10547 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
10548 Update calls to convert_for_assignment.
10549 (convert_for_assignment): Take new parameter
10550 null_pointer_constant. Do not strip nops or call
10551 decl_constant_value_for_broken_optimization. Set
10552 in_late_binary_op for conversions to boolean.
10553 (store_init_value): Update call to digest_init.
10554 (digest_init): Take new parameter null_pointer_constant. Do not
10555 call decl_constant_value_for_broken_optimization. pedwarn for
10556 initializers not constant expressions. Update calls to
10557 convert_for_assignment.
10558 (constructor_nonconst): New.
10559 (struct constructor_stack): Add nonconst element.
10560 (really_start_incremental_init, push_init_level, pop_init_level):
10561 Handle constructor_nonconst and nonconst element.
10562 (set_init_index): Call constant_expression_warning for array
10563 designators.
10564 (output_init_element): Fold value. Set constructor_nonconst as
10565 applicable. pedwarn for initializers not constant expressions.
10566 Update call to digest_init. Call constant_expression_warning
10567 where constant initializers are required.
10568 (process_init_element): Use c_save_expr.
10569 (c_finish_goto_ptr): Fold expression.
10570 (c_finish_return): Fold return value. Update call to
10571 convert_for_assignment.
10572 (c_start_case): Fold switch expression.
10573 (c_process_expr_stmt): Fold expression.
10574 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
ba20e309 10575 ensure statement expression is not evaluated in constant expression.
928c19bb
JM
10576 (build_binary_op): Track whether results are integer constant
10577 expressions or may occur in such, disable folding and wrap results
10578 as applicable. Fold operands for -Wsign-compare warnings unless
10579 in_late_binary_op.
10580 (c_objc_common_truthvalue_conversion): Handle results folded to
10581 integer constants that are not integer constant expressions.
10582 * doc/extend.texi: Document when typeof operands are evaluated,
10583 that condition of __builtin_choose_expr is an integer constant
10584 expression, and more about use of __builtin_constant_p in
10585 initializers.
10586
5babbcc0
RG
105872009-03-29 Richard Guenther <rguenther@suse.de>
10588
10589 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
10590 propagate addresses of array references.
10591
0340f2ba
SB
105922009-03-29 Steven Bosscher <steven@gcc.gnu.org>
10593
10594 * regmove.c (perhaps_ends_bb_p): Remove.
10595 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
10596 from INSN and check that the main loop stays within that basic block.
10597 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
10598 (regmove_forward_pass): Split out from regmove_optimize. Use
10599 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
10600 (regmove_backward_pass): Split out from regmove_optimize. Use
10601 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
10602 (regmove_optimize): Simplify.
10603
eeae74a1
L
106042009-03-29 H.J. Lu <hongjiu.lu@intel.com>
10605
10606 PR target/39545
10607 * config/i386/i386.c (classify_argument): Ignore flexible array
10608 member in struct and warn ABI change.
10609
a24078b2
L
106102009-03-29 H.J. Lu <hongjiu.lu@intel.com>
10611
10612 * config/i386/i386-protos.h (ix86_agi_dependent): New.
10613
10614 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
10615 (ix86_adjust_cost): Updated.
10616
a8da523f
JH
106172009-03-29 Jan Hubicka <jh@suse.cz>
10618
10619 PR middle-end/28850
10620 * tree-pass.h (pass_cleanup_eh): New function.
10621 (remove_unreachable_regions): Break code handling RTL
10622 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
10623 that can not be reached by runtime.
10624 (can_be_reached_by_runtime): New function.
10625 (label_to_region_map): New function.
10626 (num_eh_regions): New function.
10627 (rtl_remove_unreachable_regions): New function.
10628 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
10629 (remove_eh_region): New function.
10630 * except.h: Include sbitmap and vecprim.
10631 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
10632 num_eh_regions): Declare.
10633 * passes.c (init_optimization_passes): Schedule cleanup_eh.
ba20e309 10634 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
a8da523f
JH
10635 * tree-eh.c (tree_remove_unreachable_handlers): New function.
10636 (tree_empty_eh_handler_p): New function.
10637 (cleanup_empty_eh): New function.
10638 (cleanup_eh): New function.
10639 (pass_cleanup_eh): New function.
10640
98f358e5
JH
106412009-03-29 Jan Hubicka <jh@suse.cz>
10642
10643 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
10644 for removed regions.
10645
13a9fa44
JH
106462009-03-29 Jan Hubicka <jh@suse.cz>
10647
10648 * except.c (dump_eh_tree): Dump all datastructures.
10649
e38cf733
JH
106502009-03-29 Jan Hubicka <jh@suse.cz>
10651
10652 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
10653 (duplicate_eh_regions_1): Likewise.
10654 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
10655 vector; call EH verification.
10656 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
10657 Be ready for region being removed.
10658
12802c2b
JH
106592009-03-29 Jan Hubicka <jh@suse.cz>
10660
10661 * bitmap.c (bitmap_last_set_bit): New function.
10662 * bitmap.h (bitmap_last_set_bit): Declare.
10663
4ea80a41
DA
106642009-03-29 David Ayers <ayers@fsfe.org>
10665
10666 PR objc/27377
10667 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
10668 by calling objc_compare_types and surpress warnings about
10669 incompatible C pointers that are compatible ObjC pointers.
2ba9daa7 10670
4ea80a41 106712009-03-29 Adam Nemet <anemet@caviumnetworks.com>
3dc9eaa6
AN
10672
10673 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
10674 call initialize_inline_failed.
10675 (initialize_inline_failed): Move it from here ...
10676 * cgraph.c (initialize_inline_failed): ... to here.
10677 (cgraph_create_edge): Call initialize_inline_failed rather than
10678 setting inline_failed directly.
10679
7fb0ee07
BE
106802009-03-29 Ben Elliston <bje@au.ibm.com>
10681
10682 PR target/32542
10683 * sysv4.opt (msdata): Improve comment.
10684 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
10685 * sysv4.h (SVR4_ASM_SPEC): Likewise.
10686
0be77bf2
BE
106872009-03-29 Ben Elliston <bje@au.ibm.com>
10688
10689 PR target/30451
10690 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
10691 load and store attributes.
10692
593812b6
BE
106932009-03-29 Ben Elliston <bje@au.ibm.com>
10694
10695 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
10696 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
10697 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
10698 * doc/extend.texi (X86 Built-in Functions): Add index entries for
10699 __builtin_infq and __builtin_huge_valq.
10700
8272d11d
AS
107012009-03-28 Anatoly Sokolov <aesok@post.ru>
10702
10703 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
10704 atmega8m1 devices.
10705 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
10706 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
10707
74fe548b
XDL
107082009-03-28 Xinliang David Li <davidxl@google.com>
10709
2ba9daa7 10710 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
74fe548b
XDL
10711 (do_dbg_cnt): New function.
10712
33977f81
JH
107132009-03-28 Jan Hubicka <jh@suse.cz>
10714
10715 Merge from pretty-ipa:
10716
10717 2009-03-27 Jan Hubicka <jh@suse.cz>
ba20e309 10718
33977f81
JH
10719 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
10720 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
10721 * passes.c (function_called_by_processed_nodes_p): New.
10722 * ipa-pure-const.c (check_call): Fix handling of operands.
10723 (analyze_function): Dump debug output for skipped bodies.
10724 (local_pure_const): Use function_called_by_processed_nodes_p.
10725 * dwarf2out.c (reference_to_unused): Use output.
10726 * passes.c (do_per_function_toporder): Likewise.
10727
10728 2008-11-12 Jan Hubicka <jh@suse.cz>
10729
10730 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
10731 * ipa-pure-const.c (funct_state_d): Add can throw field; make
10732 state_set_in_source enum
10733 (check_decl): Ignore memory tags; do not set fake looping flags;
10734 dump diagnostics.
10735 (check_operand, check_tree, check_rhs_var, check_lhs_var,
10736 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
10737 (check_call, analyze_function): Rewrite.
10738 (check_stmt): New.
10739 (add_new_function): Update call of analyze_function.
10740 (generate_summary): Add call of analyze_function.
10741 (propagate): Propagate can_throw; handle state_set_in_source correctly.
10742 (local_pure_const): New function.
10743 (pass_local_pure_const): New pass.
10744 * ipa-inline.c (inline_transform): Set after_inlining.
10745 * tree-eh.c (stmt_can_throw_external): New.
10746 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
10747 work with aliasing built.
10748 * tree-flow.h (stmt_can_throw_external): New.
10749 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
10750 and local pure/const pass in early and late optimization queue.
ba20e309 10751
617f3897
MJ
107522009-03-28 Martin Jambor <mjambor@suse.cz>
10753
10754 * fold-const.c (get_pointer_modulus_and_residue): New parameter
10755 allow_func_align.
10756 (fold_binary): Allow function decl aligment consideration is the
10757 second argument is integer constant one.
10758 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
10759 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
10760 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
10761
fe89fbc5
JH
107622009-03-28 Jan Hubicka <jh@suse.cz>
10763
10764 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
10765 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
10766 * function.h (rtl_data): Add nothrow flag.
10767 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
10768 set DECL_NOTHROW for AVAILABLE functions.
10769
574872ff
JJ
107702009-03-28 Jakub Jelinek <jakub@redhat.com>
10771
b3bf8855
JJ
10772 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
10773 following vector keyword has expansion starting with pixel or bool
10774 keyword, expand vector to __vector and pixel or bool to __pixel or
10775 __bool.
10776
574872ff
JJ
10777 PR c++/39554
10778 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
10779 warn_if_disallowed_function_p): Removed.
10780 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
10781 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
10782 warning_if_disallowed_function_p.
10783 * flags.h (warn_if_disallowed_function_p,
10784 warn_disallowed_functions): Removed.
10785 * common.opt (Wdisallowed-function-list=): Removed.
10786 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
10787
b005da11
RG
107882009-03-28 Richard Guenther <rguenther@suse.de>
10789
10790 PR tree-optimization/38723
10791 * tree-ssa-pre.c (compute_avail): Add all default definitions to
10792 the entry block.
10793
1de812a6
JH
107942009-03-28 Jan Hubicka <jh@suse.cz>
10795
10796 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
10797 test introduced by my previous patch.
10798
fbb789d4
RG
107992009-03-28 Richard Guenther <rguenther@suse.de>
10800
10801 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
10802 the PHIs value undefined.
10803
6f1873a1
JH
108042009-03-28 Jan Hubicka <jh@suse.cz>
10805
10806 * tree-pass.h (pass_fixup_cfg): New pass.
10807 * ipa-inline.c (inline_transform): Set
10808 always_inline_functions_inlined/after_inlining.
10809 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
10810 (pass_fixup_cfg): New pass.
10811 * passes.c (init_optimization_passes): Add fixup_cfg.
10812
17021bc8
RG
108132009-03-28 Richard Guenther <rguenther@suse.de>
10814
10815 PR tree-optimization/38458
10816 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
10817 argument use the arguments copy-of value.
10818
e8114fba
RG
108192009-03-28 Richard Guenther <rguenther@suse.de>
10820
10821 PR tree-optimization/38180
10822 * tree-ssa-ccp.c (get_default_value): Simplify.
10823 (likely_value): Likewise.
10824 (surely_varying_stmt_p): Properly handle VOP case.
10825 (ccp_initialize): Likewise.
10826 (ccp_fold): Handle propagating through *&.
10827 (fold_const_aggregate_ref): Also handle decls.
10828
257eb6e3
JH
108292009-03-28 Jan Hubicka <jh@suse.cz>
10830
10831 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
10832 * cgraph.h (cgraph_node): Likewise.
10833 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
10834 (cgraph_reset_node): Use process flag.
10835 (cgraph_mark_functions_to_output): Likewise.
10836 (cgraph_expand_function): Likewise.
10837 (cgraph_expand_all_functions): Likewise.
10838 (cgraph_output_in_order): Likewise.
10839 * dwarf2out.c (reference_to_unused): Likewise.
10840 * passes.c do_per_function_toporder): Likewise.
10841
61a05df1
JH
108422009-03-28 Jan Hubicka <jh@suse.cz>
10843
10844 Bring from lto-branch:
ba20e309 10845
61a05df1
JH
10846 2008-09-03 Doug Kwan <dougkwan@google.com>
10847
10848 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
10849 enums instead of reason strings.
10850 * cgraph.c (cgraph_create_edge): Same.
10851 (cgraph_inline_failed_string): New function.
10852 * cgraph.h (cgraph_inline_failed_t): New enum type.
10853 (cgraph_inline_failed_string): New prototype.
10854 (struct cgraph_edge): Change type of INLINED_FAILED from constant
10855 char pointer to cgraph_inline_failed_t.
10856 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
10857 (cgraph_default_inline_p): Ditto.
60839f5d 10858 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
61a05df1
JH
10859 to cgraph_inline_failed_t pointer.
10860 * cif-code.def: New file.
10861 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
10862 reason string.
10863 (cgraph_check_inline_limits): Change type of REASON to pointer to
10864 cgraph_inline_failed_t. Replace reason strings with enums.
10865 (cgraph_default_inline_p): Ditto.
10866 (cgraph_recursive_inlining_p): Ditto.
10867 (update_caller_keys): Change type of FAILED_REASON to
10868 cgraph_inline_failed_t.
10869 (cgraph_set_inline_failed): Change type of REASON to pointer to
10870 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
10871 convert enums to strings for text output.
10872 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
10873 to be of type cgraph_inline_failed_t. Replace reason strings with
10874 enums. Call cgraph_inline_failed_string to covert enums
10875 to strings for text output.
10876 (cgraph_decide_inlining): Replace reason strings with enums.
10877 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
10878 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
10879 for text output.
10880 * tree-inline.c (expand_call_inline): Change type of REASON
10881 to cgraph_inline_failed_t. Replace reason strings with enums.
10882 Call cgraph_inline_failed_string for text output.
10883 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
10884 (cgraph.o): Ditto.
10885
144e8aac
JH
108862009-03-28 Jan Hubicka <jh@suse.cz>
10887
10888 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
10889 cgraph_clone_node): Remove master clone handling.
10890 (cgraph_is_master_clone, cgraph_master_clone): Remove.
10891 * cgraph.h (master_clone): Remove.
10892 (cgraph_is_master_clone, cgraph_master_clone): Remove.
10893 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
10894 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
10895
4a371c8d
JH
108962009-03-28 Jan Hubicka <jh@suse.cz>
10897
10898 * cgraph.c (cgraph_function_body_availability): Functions declared
10899 inline are always safe to assume that it is not going to be replaced.
10900
6cdb0ee3
RG
109012009-03-28 Richard Guenther <rguenther@suse.de>
10902
10903 PR tree-optimization/38513
10904 * tree-ssa-pre.c (eliminate): Remove redundant stores.
10905 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
10906 EXC_PTR_EXPR and FILTER_EXPR.
10907 (get_ref_from_reference_ops): Likewise.
10908
8ca1fd76
RG
109092009-03-28 Richard Guenther <rguenther@suse.de>
10910
10911 PR tree-optimization/38968
10912 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
10913 Use FLOOR_MOD_EXPR to compute misalignment.
10914
a254e44d
RG
109152009-03-28 Richard Guenther <rguenther@suse.de>
10916
10917 PR tree-optimization/37795
10918 * tree.h (combine_comparisons): Declare.
10919 * fold-const.c (combine_comparisons): Export.
10920 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
10921 comparisons.
10922 (ifcombine_iforif): Use combine_comparisons.
10923
a8ee227c
JH
109242009-03-28 Jan Hubicka <jh@suse.cz>
10925
10926 * tree-eh.c (inlinable_call_p): New function.
10927 (make_eh_edges): Use it.
10928 (verify_eh_edges): Use it.
10929 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
10930 * except.c (reachable_next_level): Add inlinable_function argument
10931 (sjlj_find_directly_reachable_regions): Update.
10932 (add_reachable_handler): Do not set saw_any_handlers.
10933 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
10934 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
10935 Add new inlinable call parameter.
10936 (can_throw_internal, can_throw_external): Update.
10937 * except.h (can_throw_internal_1, can_throw_external_1,
10938 foreach_reachable_handler): Update declaration.
10939
52c0e446
JM
109402009-03-28 Joseph Myers <joseph@codesourcery.com>
10941
10942 * config/arm/t-arm-coff, config/h8300/coff.h,
10943 config/i386/i386-aout.h, config/i386/i386-coff.h,
10944 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
10945 config/pdp11/2bsd.h, config/rs6000/aix41.h,
10946 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
10947 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
10948 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
10949 sys-types.h: Remove.
10950 * Makefile.in: Remove protoize and fixproto support and references
10951 in comments.
10952 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
10953 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
10954 Remove.
10955 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
10956 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
10957 unprotoize$(exeext).
10958 (rest.encap): Don't depend on $(STMP_FIXPROTO)
10959 (.PHONY): Don't depend on proto.
10960 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
10961 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
10962 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
10963 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
10964 build/gen-protos.o, build/scan.o, xsys-protos.h,
10965 build/fix-header$(build_exeext), build/fix-header.o,
10966 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
10967 stmp-install-fixproto): Remove.
10968 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
10969 SYSCALLS.c or fixproto files.
10970 (install-common): Don't install protoize.
10971 (install-headers-tar, install-headers-cpio, install-headers-cp):
10972 Don't depend on $(STMP_FIXPROTO).
10973 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
10974 install fixproto files or write out fixproto settings.
10975 (uninstall): Don't uninstall protoize.
10976 * config.gcc (use_fixproto): Remove.
10977 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
10978 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
10979 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
10980 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
10981 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
10982 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
10983 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
10984 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
10985 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
10986 * config/t-vxworks (STMP_FIXPROTO): Remove.
10987 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
10988 STMP_FIXPROTO): Remove.
10989 * config.in, configure: Regenerate.
10990 * crtstuff.c (gid_t, uid_t): Don't undefine.
10991 * doc/install.texi: Change m68k-coff to m68k-elf in example.
10992 (arm-*-coff, arm-*-aout: Remove target entries.
10993 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
10994 Remove mention of AIX 4.1.
10995 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
10996 * doc/invoke.texi (Running Protoize): Remove.
10997 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
10998 (Protoize Caveats): Remove.
10999 * tsystem.h: Update comments on headers assumed to exist.
11000
20a07f44
VM
110012009-03-27 Vladimir Makarov <vmakarov@redhat.com>
11002
11003 * genautomata.c: Add a new year to the copyright. Add a new
11004 reference.
11005 (struct insn_reserv_decl): Add comments for member bypass_list.
11006 (find_bypass): Remove.
11007 (insert_bypass): New.
11008 (process_decls): Use insert_bypass.
11009 (output_internal_insn_latency_func): Output all bypasses with the
11010 same input insn in one switch case.
11011
11012 * rtl.def (define_bypass): Describe bypass choice.
11013 * doc/md.texi (define_bypass): Ditto.
11014
3a0d06c1
RB
110152009-03-27 Richard Guenther <rguenther@suse.de>
11016
11017 * gimplify.c (mark_addressable): Export.
11018 * tree-flow.h (mark_addressable): Declare.
11019 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
11020 * tree-ssa.c (verify_phi_args): Verify that address taken
11021 variables have TREE_ADDRESSABLE set.
11022
110232009-03-27 Richard Guenther <rguenther@suse.de>
11024
11025 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
11026 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
11027 Do not mark decls TREE_ADDRESSABLE.
11028 (build_fold_addr_expr): Adjust.
11029 (fold_addr_expr): Remove.
11030 (fold_unary): Use build_fold_addr_expr.
11031 (fold_comparison): Likewise.
11032 (split_address_to_core_and_offset): Likewise.
11033 * coverage.c (tree_coverage_counter_addr): Mark the array decl
11034 TREE_ADDRESSABLE.
11035 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
11036 (gimplify_modify_expr_to_memcpy): Mark source and destination
11037 addressable.
11038 * omp-low.c (create_omp_child_function): Mark the object decl
11039 TREE_ADDRESSABLE.
11040 (lower_rec_input_clauses): Mark the var we take the address of
11041 TREE_ADDRESSABLE.
11042 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
11043
2ac26e15
L
110442009-03-27 H.J. Lu <hongjiu.lu@intel.com>
11045
11046 PR middle-end/39315
11047 * cfgexpand.c (expand_one_stack_var_at): Change alignment
11048 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
11049
472c7fbd
RG
110502009-03-27 Richard Guenther <rguenther@suse.de>
11051
11052 PR tree-optimization/39120
11053 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
11054 constraints.
11055 (handle_lhs_call): Process return constraints. Add escape
11056 constraints if necessary.
11057 (handle_const_call): Fill out return constraints. Make nested
11058 case more precise. Avoid consttmp if possible.
11059 (handle_pure_call): Fill out return constraints. Avoid
11060 callused if possible.
11061 (find_func_aliases): Simplify call handling.
11062
110632009-03-27 Richard Guenther <rguenther@suse.de>
11064
11065 PR tree-optimization/39120
11066 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
11067 as a representative.
11068 (solve_graph): Do propagate CALLUSED.
11069 (handle_pure_call): Use a scalar constraint from CALLUSED for
11070 the return value.
11071 (find_what_p_points_to): CALLUSED shall not appear in poins-to
11072 solutions.
11073
d9223014
L
110742009-03-27 H.J. Lu <hongjiu.lu@intel.com>
11075
11076 PR c/39323
11077 * c-common.c (handle_aligned_attribute): Properly check alignment
11078 overflow. Use (1U << i) instead of (1 << i).
11079
ba20e309 11080 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
d9223014
L
11081
11082 * expr.h (get_mem_align_offset): Updated.
11083
11084 * tree.h (tree_decl_common): Change align to "unsigned int" and
11085 move it before pointer_alias_set.
11086
689b689c
L
110872009-03-27 H.J. Lu <hongjiu.lu@intel.com>
11088 Jakub Jelinek <jakub@redhat.com>
11089
11090 PR target/38034
11091 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
11092 gr_register_operand with gr_reg_or_0_operand.
11093 (cmpxchg_rel_di): Likewise.
11094 (sync_lock_test_and_set<mode>): Likewise.
11095
c619e982
L
110962009-03-27 H.J. Lu <hongjiu.lu@intel.com>
11097
11098 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
11099 (true_regnum): Likewise.
11100
11101 * rtlanal.c (subreg_info): Moved to ...
11102 * rtl.h (subreg_info): Here. New.
11103 (subreg_get_info): New.
11104
11105 * rtlanal.c (subreg_get_info): Make it extern.
11106
51212b32
L
111072009-03-27 H.J. Lu <hongjiu.lu@intel.com>
11108
11109 PR target/39472
11110 * config/i386/i386.c (ix86_abi): New.
11111 (override_options): Handle -mabi=.
ba20e309 11112 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
51212b32
L
11113 (ix86_call_abi_override): Likewise.
11114 (init_cumulative_args): Likewise.
11115 (function_arg_advance): Likewise.
11116 (function_arg_64): Likewise.
11117 (function_arg): Likewise.
11118 (ix86_pass_by_reference): Likewise.
11119 (ix86_function_value_regno_p): Likewise.
11120 (ix86_build_builtin_va_list_abi): Likewise.
11121 (setup_incoming_varargs_64): Likewise.
11122 (is_va_list_char_pointer): Likewise.
11123 (ix86_init_machine_status): Likewise.
ba20e309 11124 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
51212b32
L
11125 (ix86_function_type_abi): Return enum calling_abi. Rewrite
11126 for 64bit. Replace DEFAULT_ABI with ix86_abi.
ba20e309 11127 (ix86_function_abi): Make it static and return enum calling_abi.
51212b32
L
11128 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
11129 with ix86_abi.
11130 (ix86_fn_abi_va_list): Updated.
11131
11132 * config/i386/i386.h (ix86_abi): New.
11133 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
11134 (CONDITIONAL_REGISTER_USAGE): Likewise.
11135 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
11136 (machine_function): Likewise.
11137
11138 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
11139 with ix86_abi.
11140 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
11141 (STACK_BOUNDARY): Likewise.
11142 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
11143
11144 * config/i386/i386.opt (mabi=): New.
11145
11146 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
11147 return enum calling_abi.
11148 (ix86_function_type_abi): Likewise.
11149 (ix86_function_abi): Removed.
11150
11151 * doc/invoke.texi: Document -mabi= option for x86.
11152
7338ea63
KG
111532009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11154
11155 * builtins.c (real_dconstp): Delete.
11156 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
11157
68599f33
DS
111582009-03-27 Dodji Seketeli <dodji@redhat.com>
11159 Jakub Jelinek <jakub@redhat.com>
11160
11161 PR debug/37959
11162 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
11163 (gen_subprogram_die): When a function is explicit, generate the
11164 DW_AT_explicit attribute.
11165 * langhooks.h (struct lang_hooks_for_decls): Add
11166 function_decl_explicit_p langhook.
11167 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
11168 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
11169
9f5e9983
JJ
111702009-03-27 Jakub Jelinek <jakub@redhat.com>
11171
64d7685c
JJ
11172 * builtins.c (fold_builtin_memory_op): Optimize memmove
11173 into memcpy if we can prove source and destination don't overlap.
11174
9f5e9983
JJ
11175 * tree-inline.c: Include gt-tree-inline.h.
11176 (clone_fn_id_num): New variable.
11177 (clone_function_name): New function.
11178 (tree_function_versioning): Use it.
11179 * Makefile.in (GTFILES): Add tree-inline.c.
11180
e54d52a8
MM
111812009-03-27 Mark Mitchell <mark@codesourcery.com>
11182
11183 * BASE-VER: Change to 4.5.0.
11184
e9d51dc6
XDL
111852009-03-27 Xinliang David Li <davidxl@google.com>
11186
11187 PR tree-optimization/39557
11188 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
11189
4577cea1
XDL
111902009-03-27 Xinliang David Li <davidxl@google.com>
11191
11192 PR tree-optimization/39548
2ba9daa7 11193 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
4577cea1
XDL
11194 candidate check.
11195
0f7464f4
L
111962009-03-27 H.J. Lu <hongjiu.lu@intel.com>
11197
11198 * c-common.c (pointer_int_sum): Use %wd on return from
11199 tree_low_cst.
11200
a8847a7f
L
112012009-03-27 H.J. Lu <hongjiu.lu@intel.com>
11202
11203 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
11204 on return from tree_low_cst.
11205
b0957daf
AP
112062009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
11207
11208 PR c++/36799
ba20e309
UB
11209 * ginclude/stdarg.h (va_copy): Define also for
11210 __GXX_EXPERIMENTAL_CXX0X__.
b0957daf 11211
a5f805df
MLI
112122009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11213
11214 PR c++/35652
11215 * builtins.h (c_strlen): Do not warn here.
11216 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
11217 * c-common.c (pointer_int_sum): Take an explicit location.
11218 Warn about offsets out of bounds.
11219 * c-common.h (pointer_int_sum): Adjust declaration.
11220
6f401211
RW
112212009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11222
a5f805df
MLI
11223 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
11224 markup glitch.
6f401211 11225
5a59b39e
JJ
112262009-03-26 Jakub Jelinek <jakub@redhat.com>
11227
11228 PR c++/39554
11229 * opts.c (warn_if_disallowed_function_p): Don't assume
11230 get_callee_fndecl must return non-NULL.
11231
d5f89b53
VM
112322009-03-26 Vladimir Makarov <vmakarov@redhat.com>
11233
11234 PR rtl-optimization/39522
11235 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
11236 when reg_reloaded_valid is set.
11237
61238a79
UW
112382009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11239
11240 * config/spu/divv2df3.c: New file.
11241 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
11242 (DPBIT_FUNCS): Filter out _div_df.
11243
03f8829b
BS
112442009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
11245
11246 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
11247 a jump insn, count that jump in the distance to the loop start.
11248
9fdcdc74
KK
112492009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
11250
11251 PR target/39523
11252 * config/sh/sh.c (calc_live_regs): Fix condition for global
11253 registers except PIC_OFFSET_TABLE_REGNUM.
11254
46994828
KT
112552009-03-25 Kai Tietz <kai.tietz@onevision.com>
11256
11257 PR/39518
11258 * doc/invoke.texi (-mconsole): New.
11259 (-mcygwin): New.
11260 (-mno-cygwin): New.
11261 (-mdll): New.
11262 (-mnop-fun-dllimport): New.
11263 (-mthread): New.
11264 (-mwin32): New.
11265 (-mwindows): New.
11266 (sub section "i386 and x86-64 Windows Options"): New.
11267
60839f5d 112682009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
370017b4
RC
11269
11270 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
11271 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
11272
ae560440
RG
112732009-03-25 Richard Guenther <rguenther@suse.de>
11274
11275 PR middle-end/39497
11276 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
11277 of -Wno-error.
11278
cd510f15
AM
112792009-03-25 Andrey Belevantsev <abel@ispras.ru>
11280
11281 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
11282 neither of haifa/selective schedulers are working.
11283
44ab0f0e
RW
112842009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11285
11286 * doc/invoke.texi (Debugging Options): Fix description of
11287 -fno-merge-debug-strings.
11288
ad9646c7
HPN
112892009-03-24 Hans-Peter Nilsson <hp@axis.com>
11290
e6142656
HPN
11291 * config/cris/libgcc.ver: New version-script.
11292 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
11293
ad9646c7
HPN
11294 * configure.ac <GAS features, nop mnemonic>: Add pattern
11295 crisv32-*-* for "nop".
ba20e309 11296 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
ad9646c7
HPN
11297 * configure: Regenerate.
11298
09ac4473
IR
112992009-03-24 Ira Rosen <irar@il.ibm.com>
11300
11301 PR tree-optimization/39529
11302 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
11303 mark_sym_for_renaming for the tag copied to the new vector
11304 pointer.
11305
d94a427e
AL
113062009-03-24 Arthur Loiret <aloiret@debian.org>
11307
ba20e309 11308 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
d94a427e
AL
11309 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
11310 EXTRA_SPEC_FUNCTIONS.
11311 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
11312 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
11313 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
11314 -march and -mtune options.
11315
60839f5d 113162009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
722d07aa
RC
11317
11318 * config/m68k/t-rtems: Add m5329 multilib.
11319
603f5959
DS
113202009-03-24 Dodji Seketeli <dodji@redhat.com>
11321 Jakub Jelinek <jakub@redhat.com>
11322
11323 PR debug/39524
11324 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
11325 nodes.
11326
c5cdb03f
JJ
113272009-03-23 Jakub Jelinek <jakub@redhat.com>
11328
11329 PR c/39495
11330 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
11331 instead of c_parser_expression_conv, if original_code isn't one of the
11332 4 allowed comparison codes, fail.
11333
3691626c
RG
113342009-03-23 Richard Guenther <rguenther@suse.de>
11335
11336 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
11337 * tree.h (struct tree_type): Likewise.
11338 * reload.h (struct insn_chain): Likewise.
11339 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
11340 * function.h (struct function): Likewise.
11341 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
11342
88ccb72a
JJ
113432009-03-23 Jakub Jelinek <jakub@redhat.com>
11344
11345 PR tree-optimization/39516
11346 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
11347
60839f5d 113482009-03-23 Bingfeng Mei <bmei@broadcom.com>
a583a67e 11349
2ba9daa7 11350 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
a583a67e
BM
11351 should be set true if BITS_PER_WORD of target is bigger than 32
11352
f82162f8
HPN
113532009-03-22 Hans-Peter Nilsson <hp@axis.com>
11354
11355 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
11356 Translate -B-options to -rpath-link. Correct existing
11357 rpath-link and conditionalize on !nostdlib.
11358
048fd785
RW
113592009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11360
11361 * doc/extend.texi (Function Attributes, Variable Attributes):
11362 Fix typos.
11363 * doc/invoke.texi (Debugging Options, Optimize Options)
11364 (i386 and x86-64 Options, MCore Options): Likewise.
11365
6e75c1a9
JJ
113662009-03-20 Jakub Jelinek <jakub@redhat.com>
11367
11368 PR debug/37890
11369 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
11370 it for block local namespace aliases.
11371 (gen_decl_die): Pass context_die to gen_namespace_die.
11372
ea1199ee
JJ
113732009-03-19 Jakub Jelinek <jakub@redhat.com>
11374
11375 PR c/39495
11376 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
11377 minimum or maximum value.
11378
58929c10
AO
113792009-03-19 Alexandre Oliva <aoliva@redhat.com>
11380
11381 * reginfo.c (globalize_reg): Recompute derived reg sets.
11382
60839f5d 113832009-03-19 Ozkan Sezer <sezeroz@gmail.com>
234952b3
OS
11384
11385 PR target/39063
11386 * libgcc2.c (mprotect): Do not use signed arguments for
11387 VirtualProtect, use DWORD arguments. Also fix the 'may
11388 be used uninitialized' warning for the np variable.
11389
f57c2f04
JJ
113902009-03-19 Jakub Jelinek <jakub@redhat.com>
11391
11392 PR target/39496
11393 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
11394 functions using regparm calling conventions when not optimizing.
11395 (ix86_function_sseregparm): Similarly for sseregparm calling
11396 conventions.
11397
9e517d61
LF
113982009-03-19 Li Feng <nemokingdom@gmail.com>
11399
11400 PR middle-end/39500
11401 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
11402 dependence if the first conflict is after niter iterations.
11403
8ef20026
HPN
114042009-03-19 Hans-Peter Nilsson <hp@axis.com>
11405
11406 PR middle-end/38609
11407 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
11408 functions with dynamic stack-pointer adjustments.
11409
64e4a1a6
BE
114102009-03-19 Ben Elliston <bje@au.ibm.com>
11411
11412 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
11413 option; change to -msdata=data.
11414
9a0f3e86
RW
114152009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11416
11417 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
11418 and -fopenmp.
11419
09bc5979
EB
114202009-03-18 Eric Botcazou <ebotcazou@adacore.com>
11421
11422 PR target/35180
11423 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
11424
332459cd
SL
114252009-03-18 Sandra Loosemore <sandra@codesourcery.com>
11426
11427 * doc/invoke.texi (Code Gen Options): Expand discussion of
11428 -fno-common.
11429
8f5929e1
JJ
114302009-03-18 Jakub Jelinek <jakub@redhat.com>
11431
11432 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
11433 * matrix-reorg.c (struct matrix_info): Likewise.
11434 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
11435 * rtl.h (struct mem_attrs): Likewise.
11436 * df.h (struct df): Likewise.
11437 * tree-data-ref.h (struct data_dependence_relation): Likewise.
11438 * ira-int.h (struct ira_allocno): Likewise.
11439 * df-scan.c (struct df_collection_rec): Likewise.
11440 * ira.c (struct equivalence): Likewise.
11441 * function.c (struct temp_slot): Likewise.
11442 * cfgloop.h (struct loop): Likewise.
11443
d130d647
JJ
11444 PR debug/39485
11445 * function.c (use_register_for_decl): When not optimizing, disregard
11446 register keyword for variables with types containing methods.
11447
9968d233
SP
114482009-03-18 Sebastian Pop <sebastian.pop@amd.com>
11449
11450 PR middle-end/39447
11451 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
11452 (is_simple_operand): Call contains_component_ref_p before calling data
11453 reference analysis that would fail on COMPONENT_REFs.
11454
11455 * tree-vrp.c (search_for_addr_array): Fix formatting.
11456
69484bfd
RG
114572009-03-18 Richard Guenther <rguenther@suse.de>
11458
11459 * tree-vect-transform.c (vect_loop_versioning): Fold the
11460 generated comparisons.
11461 * tree-vectorizer.c (set_prologue_iterations): Likewise.
11462 (slpeel_tree_peel_loop_to_edge): Likewise.
11463
66811228
RW
114642009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11465
0631b69f
RW
11466 PR middle-end/37805
11467 * opts.c (print_specific_help): In addition to `undocumented',
11468 accept `separate' and `joined' flags if passed alone. Describe
11469 output by the first matched one of those.
11470 (common_handle_option): Skip over empty strings.
11471 * gcc.c (display_help): Fix help string for `--help='.
11472 * doc/invoke.texi (Option Summary, Overall Options): With
11473 `--help=', classes and qualifiers can both be repeated, but
11474 only the latter can be negated. One should not pass only
11475 negated qualifiers. Fix markup and examples.
11476
66811228
RW
11477 Revert
11478 2008-10-14 Jakub Jelinek <jakub@redhat.com>
11479 PR middle-end/37805
11480 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
11481 and -fhelp=separate.
11482
3c072c6b
JY
114832009-03-17 Jing Yu <jingyu@google.com>
11484
11485 PR middle-end/39378
80c65208
JY
11486 * function.h (struct rtl_data): Move is_thunk from here...
11487 (struct function): ...to here.
11488 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
3c072c6b
JY
11489 * varasm.c (assemble_start_function): Change is_thunk from crtl to
11490 cfun.
80c65208
JY
11491 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
11492 cfun.
11493 (alpha_does_function_need_gp, alpha_start_function): Likewise.
11494 (alpha_output_function_end_prologue): Likewise.
11495 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
11496 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
11497 (rs6000_output_function_epilogue): Likewise.
11498 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
3c072c6b 11499
9ade279b
UB
115002009-03-17 Uros Bizjak <ubizjak@gmail.com>
11501
11502 PR target/39482
11503 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
11504 from different units in a single alternative.
11505 (*truncdfsf_i387): Ditto.
11506 (*truncxfsf2_mixed): Ditto.
11507 (*truncxfdf2_mixed): Ditto.
11508
16e60c17
JJ
115092009-03-17 Jakub Jelinek <jakub@redhat.com>
11510
98381eb4
JJ
11511 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
11512 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
11513
df5deb18
JJ
11514 PR debug/39474
11515 * tree-ssa-live.c (remove_unused_locals): Don't remove local
11516 unused non-artificial variables when not optimizing.
11517
a3f596ba
JJ
11518 PR debug/39471
11519 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
11520 DW_TAG_imported_module even if decl is IMPORTED_DECL with
11521 NAMESPACE_DECL in its DECL_INITIAL.
11522
6b2b8871
JJ
11523 PR middle-end/39443
11524 * optabs.c (set_user_assembler_libfunc): New function.
11525 * expr.h (set_user_assembler_libfunc): New prototype.
11526 * c-common.c: Include libfuncs.h.
11527 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
11528 for memcmp, memset, memcpy, memmove and abort.
11529 * Makefile.in (c-common.o): Depend on libfuncs.h.
11530
16e60c17
JJ
11531 PR debug/39412
11532 * dwarf2out.c (gen_inlined_enumeration_type_die,
11533 gen_inlined_structure_type_die, gen_inlined_union_type_die,
11534 gen_tagged_type_instantiation_die): Removed.
11535 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
11536 do nothing.
11537
4d936aca
JJ
115382009-03-17 Janis Johnson <janis187@us.ibm.com>
11539
11540 PR testsuite/38526
11541 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
11542 its use.
11543 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
11544 (check-parallel-%): Ditto.
11545 (check-consistency): Ditto.
11546
4e9b2e50
KT
115472009-03-17 Kai Tietz <kai.tietz@onevision.com>
11548
11549 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
11550 local variable rhs by NULL_TREE.
11551
21440b2d
L
115522009-03-17 H.J. Lu <hongjiu.lu@intel.com>
11553
11554 PR target/39477
9ade279b 11555 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
21440b2d 11556
d8905c6a
L
115572009-03-17 H.J. Lu <hongjiu.lu@intel.com>
11558
11559 PR target/39476
9ade279b 11560 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
d8905c6a
L
11561
115622009-03-17 H.J. Lu <hongjiu.lu@intel.com>
435a61d3
L
11563
11564 PR target/39473
11565 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
11566 for ms->sysv ABI calls only in 64bit mode.
11567
11568 * config/i386/i386.md (untyped_call): Support 32bit.
11569
cdcabece
L
115702009-03-16 H.J. Lu <hongjiu.lu@intel.com>
11571
11572 * doc/extend.texi: Replace x86_65 with x86_64.
11573
97b4ba9f
JJ
115742009-03-16 Jakub Jelinek <jakub@redhat.com>
11575
11576 PR tree-optimization/39455
11577 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
11578 mismatches for POINTER_TYPE_P (type).
11579 (number_of_iterations_le): Likewise.
11580
60839f5d 115812009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
83c191e1
HS
11582
11583 * config/picochip/picochip.c: Removed profiling support.
11584 * config/picochip/picochip.md: Removed profiling instruction.
11585 * config/picochip/picochip.h: Removed profiling builtin.
11586
f38095f3
JM
115872009-03-16 Joseph Myers <joseph@codesourcery.com>
11588
11589 * doc/install.texi (--with-host-libstdcxx): Document.
11590
2cb4817b
AS
115912009-03-14 Anatoly Sokolov <aesok@post.ru>
11592
11593 PR target/34299
11594 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
11595 generate a warning if the function name does not begin with
11596 "__vector" and the function has either the 'signal' or 'interrupt'
11597 attribute, from here to ...
11598 (avr_declare_function_name): ...here. New function.
11599 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
11600 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
11601
39b2ac74
JJ
116022009-03-14 Jakub Jelinek <jakub@redhat.com>
11603
11604 PR bootstrap/39454
11605 * cse.c (fold_rtx): Don't modify original const_arg1 when
11606 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
11607 separate variable instead.
11608 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
11609 from out of range shift counts.
11610 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
11611
ad41bd84 116122009-03-13 Catherine Moore <clm@codesourcery.com>
f7a82dee 11613
60839f5d 11614 * config/i386/x-mingw32 (host-mingw32.o): Replace
f7a82dee
CM
11615 diagnostic.h with $(DIAGNOSTIC_H).
11616
ad41bd84 116172009-03-12 Jakub Jelinek <jakub@redhat.com>
03a18198
JJ
11618
11619 PR target/39431
11620 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
11621 predicate.
11622 * config/i386/sync.md (sync_compare_and_swap<mode>,
11623 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
11624 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
11625 into a register.
11626 (sync_double_compare_and_swapdi_pic,
11627 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
11628 cmpxchg8b_pic_memory_operand instead of just memory_operand.
11629
122c59c7
L
116302009-03-12 H.J. Lu <hongjiu.lu@intel.com>
11631
11632 PR target/39445
9ade279b 11633 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
122c59c7 11634
cec8874f
L
116352009-03-12 H.J. Lu <hongjiu.lu@intel.com>
11636
11637 PR target/39327
11638 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
11639 (avx_addsubv4df3): Likewise.
11640 (*avx_addsubv4sf3): Likewise.
11641 (sse3_addsubv4sf3): Likewise.
11642
bbb52802
L
116432009-03-12 H.J. Lu <hongjiu.lu@intel.com>
11644
11645 PR target/38824
9ade279b 11646 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
bbb52802 11647
a812fb07
VM
116482009-03-12 Vladimir Makarov <vmakarov@redhat.com>
11649
11650 PR debug/39432
11651 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
11652 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
11653 registers for allocnos created from user-defined variables.
11654
4caab5ba
UW
116552009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11656
11657 PR target/39181
11658 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
11659 of non-integer mode as well.
11660
498e51ca
AN
116612009-03-11 Adam Nemet <anemet@caviumnetworks.com>
11662
11663 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
11664 for functions for which the parameter types are unknown.
11665
9bfaf89d
JJ
116662009-03-11 Jakub Jelinek <jakub@redhat.com>
11667
11668 PR target/39137
9ade279b 11669 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
9bfaf89d
JJ
11670 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
11671 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
11672 * config/i386/i386.c (ix86_local_alignment): For
11673 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
11674 long long variables on the stack to avoid dynamic realignment.
11675 Allow the first argument to be a decl rather than type.
11676 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
11677
18a3bdcb
NC
116782009-03-11 Nick Clifton <nickc@redhat.com>
11679
11680 PR target/5362
40190a76
NC
11681 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
11682 options.
11683 Add description to mno-lsim option.
11684 * config/mcore/mcore.h: Remove comment about deprecated m4align
11685 option.
11686 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
11687 * doc/invoke.texi: Add description of mno-lsim and
11688 mstack-increment options.
11689
18a3bdcb
NC
11690 * config/fr30/fr30.opt: Document the -mno-lsim option.
11691 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
11692 and -mno-lsim options.
11693
dc215785
UW
116942009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11695
11696 * fold-const.c (fold_comparison): Only call fold_inf_compare
11697 if the mode supports infinities.
11698
7716876b
JM
116992009-03-11 Jason Merrill <jason@redhat.com>
11700
11701 PR debug/39086
11702 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
11703 end already did. Notice GIMPLE_CALL modifications of the result.
11704 Don't copy debug information from an ignored decl or a decl from
11705 another function.
11706
ddef83d2
RG
117072009-03-10 Richard Guenther <rguenther@suse.de>
11708 Nathan Froyd <froydnj@codesourcery.com>
11709
11710 PR middle-end/37850
9ade279b 11711 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
ddef83d2
RG
11712 (__divMODE3): Likewise.
11713
9a9ba8d9
JJ
117142009-03-09 Jakub Jelinek <jakub@redhat.com>
11715
11716 PR tree-optimization/39394
11717 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
11718 DECL_SIZE_UNIT of variable length FIELD_DECLs.
11719
929b7fc3
AK
117202009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11721
11722 * recog.c (verfiy_changes): Disallow renaming of hard regs in
11723 inline asms for register asm ("") declarations.
11724
1803581d
EB
117252009-03-09 Eric Botcazou <ebotcazou@adacore.com>
11726
11727 * fold-const.c (fold_unary): Fix comment.
11728
8454d27e
JH
117292009-03-07 Jan Hubicka <jh@suse.cz>
11730
11731 PR target/39361
969a5433
JJ
11732 * tree-inline.c (setup_one_parameter): Do replacement of const
11733 argument by constant in SSA form.
8454d27e 11734
3a695389
UW
117352009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11736
11737 PR middle-end/38028
11738 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
11739 determine alignment passed to assign_stack_local.
11740 (assign_parms_unsplit_complex): Likewise.
11741 * except.c (sjlj_build_landing_pads): Likewise.
11742
9f0e7885
JJ
117432009-03-06 Jakub Jelinek <jakub@redhat.com>
11744
65401a0b
JJ
11745 PR middle-end/39360
11746 * tree-flow.h (add_referenced_var): Return bool instead of void.
11747 * tree-dfa.c (add_referenced_var): Return result of
11748 referenced_var_check_and_insert call.
11749 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
11750 of referenced_var_check_and_insert.
11751
9f0e7885 11752 PR debug/39372
9ade279b 11753 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
9f0e7885
JJ
11754 (gen_variable_die): Emit DW_AT_location on abstract static variable's
11755 DIE, don't emit it if abstract origin already has it.
11756 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
11757 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
11758
3b664bd1
JBG
117592009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11760
ba20e309 11761 * genpreds.c (needs_variable): Fix parentheses at variable name
3b664bd1
JBG
11762 detection.
11763 (write_tm_constrs_h): Indent generated code.
11764
d8f8ca80
RR
117652009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11766
11767 * doc/extend.texi (Function Attributes): Add documentation
11768 for isr attributes.
11769
6c3d550c
JJ
117702009-03-06 Jakub Jelinek <jakub@redhat.com>
11771
11772 PR debug/39387
11773 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
11774 take locus from its DECL_SOURCE_LOCATION instead of input_location.
11775
f9e96751
BS
117762009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
11777
11778 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
11779 the loop as bad.
11780
ee0ee7e2
JJ
117812009-03-05 Jakub Jelinek <jakub@redhat.com>
11782
11783 PR debug/39379
11784 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
11785 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
11786
6c6094f1
UB
117872009-03-05 Uros Bizjak <ubizjak@gmail.com>
11788
11789 * config/i386/i386.md (R8_REG, R9_REG): New constants.
11790 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
11791 constants instead of magic numbers.
11792 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
11793 (QI_REG_P): Ditto.
11794 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
11795 (x86_64_ms_abi_int_parameter_registers): Ditto.
11796 (x86_64_int_return_registers): Ditto.
09f8a8d3 11797 (ix86_maybe_switch_abi): Ditto.
6c6094f1
UB
11798 (ix86_expand_call): Ditto for clobbered_registers array.
11799 (ix86_hard_regno_mode_ok): Ditto.
11800 (x86_extended_QIreg_mentioned_p): Ditto.
11801
b267bd41
R
118022009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
11803
6c6094f1 11804 PR tree-optimization/39349
1f3ad3f0
R
11805 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
11806
b267bd41
R
11807 * combine.c (gen_lowpart_for_combine): Use omode when generating
11808 clobber.
11809
1242bc9d
R
118102009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
11811
6c6094f1 11812 PR rtl-optimization/39235
1242bc9d
R
11813 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
11814
48f03606
ZD
118152009-03-04 Zdenek Dvorak <ook@ucw.cz>
11816
11817 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
11818
b505e785
RG
118192009-03-04 Richard Guenther <rguenther@suse.de>
11820
11821 PR tree-optimization/39362
11822 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
11823 that occur in abnormal PHIs should be varying.
11824
f017bf5e
ZD
118252009-03-04 Zdenek Dvorak <ook@ucw.cz>
11826
11827 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
11828 Extend comments.
11829 (simple_iv): Take loop as an argument instead of statement.
11830 * tree-scalar-evolution.h (simple_iv): Declaration changed.
11831 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
11832 to simple_iv.
11833 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
11834 Ditto.
11835 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
11836 * matrix-reorg.c (analyze_transpose): Ditto.
11837 * tree-data-ref.c (dr_analyze_innermost): Ditto.
11838 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
11839 * tree-predcom.c (ref_at_iteration): Ditto.
11840 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
11841
6a66f28e
RG
118422009-03-04 Richard Guenther <rguenther@suse.de>
11843
11844 PR tree-optimization/39358
11845 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
11846 escaped_id and callused_id.
11847 (solve_graph): Likewise.
11848
57e454ee
RG
118492009-03-04 Richard Guenther <rguenther@suse.de>
11850
11851 PR tree-optimization/39339
11852 * tree-sra.c (try_instantiate_multiple_fields): Make it
11853 no longer ICE on the above.
11854
a6fe9ed4
JM
118552009-03-03 Joseph Myers <joseph@codesourcery.com>
11856
11857 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
11858 that fits within Pmode.
11859
dc672951
SE
118602009-03-03 Steve Ellcey <sje@cup.hp.com>
11861
11862 PR middle-end/10109
11863 * tm.texi (LIBCALL_VALUE): Update description.
11864
8b9d598f
SE
118652009-03-03 Steve Ellcey <sje@cup.hp.com>
11866
11867 PR middle-end/34443
11868 * doc/extend.texi (section): Update description.
11869
13e4e36e
L
118702009-03-03 H.J. Lu <hongjiu.lu@intel.com>
11871
11872 PR middle-end/39345
11873 * tree-inline.c (remapped_type): New.
11874 (can_be_nonlocal): Call remapped_type instead of remap_type.
11875
067dd3c9
JJ
118762009-03-03 Jakub Jelinek <jakub@redhat.com>
11877
11878 PR fortran/39354
11879 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
11880 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
11881
9bd9f738
RG
118822009-03-03 Richard Guenther <rguenther@suse.de>
11883
11884 PR middle-end/39272
11885 * tree.c (tree_nonartificial_location): New function.
11886 * tree.h (tree_nonartificial_location): Declare.
11887 * builtins.c (expand_builtin_memory_chk): Provide location
11888 of the call location for artificial function pieces.
11889 (maybe_emit_chk_warning): Likewise.
11890 (maybe_emit_sprintf_chk_warning): Likewise.
11891 (maybe_emit_free_warning): Likewise.
11892 * expr.c (expand_expr_real_1): Likewise.
11893
f07049c8
JJ
118942009-03-03 Jakub Jelinek <jakub@redhat.com>
11895
11896 PR tree-optimization/39343
11897 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
11898 COMPONENT_REF t has ARRAY_TYPE.
11899
7d4fba4a
SP
119002009-03-02 Sebastian Pop <sebastian.pop@amd.com>
11901
11902 PR middle-end/39335
11903 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
11904 when the type precision of the induction variable should be
11905 larger than the type precision of nit.
11906 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
11907 * graphite.c (graphite_loop_normal_form): Same.
11908 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
11909
78168632
UB
119102009-03-02 Uros Bizjak <ubizjak@gmail.com>
11911
11912 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
11913 (*call_1_rex64_ms_sysv): Use named constants instead of magic
6c6094f1 11914 numbers to describe clobbered registers.
78168632 11915 (*call_value_0_rex64_ms_sysv): Ditto.
6c6094f1
UB
11916 * config/i386/mmx.md (mmx_emms): Ditto.
11917 (mmx_femms): Ditto.
78168632 11918
63553059
RS
119192009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
11920
11921 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
11922 of ABI_64.
11923
500a1f85
UW
119242009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11925
11926 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
11927 (spu_section_type_flags): New function.
11928
962aae34
UB
119292009-03-02 Uros Bizjak <ubizjak@gmail.com>
11930
11931 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
11932 reg_class_contents of FLOAT_REGS into a temporary.
11933
6dfb529c 119342009-03-02 Richard Guenther <rguenther@suse.de>
962aae34 11935 Ira Rosen <irar@il.ibm.com>
6dfb529c
RG
11936
11937 PR tree-optimization/39318
11938 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
11939 information to the vectorized statement.
11940
6b5629db
UB
119412009-03-01 Uros Bizjak <ubizjak@gmail.com>
11942
434426d2
UB
11943 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
11944 variable. Use defined names instead of magic constants for REX SSE
11945 registers.
6b5629db 11946
14e5b285
RG
119472009-03-01 Richard Guenther <rguenther@suse.de>
11948
11949 PR tree-optimization/39331
11950 * omp-low.c (lower_send_shared_vars): Do not receive new
11951 values for the reference of DECL_BY_REFERENCE parms or results.
11952
526d73ab
JH
119532009-03-01 Jan Hubicka <jh@suse.cz>
11954
11955 PR debug/39267
11956 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
11957 BLOCK_NONLOCALIZED_VAR): New macros.
11958 (tree_block): Add nonlocalized_vars.
f4ea99bd
EB
11959 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
11960 gen_decl_die): Add origin argument. Allow generation of die with
11961 origin at hand only.
526d73ab 11962 (gen_member_die, gen_type_die_with_usage, force_decl_die,
f4ea99bd
EB
11963 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
11964 of gen_*.
526d73ab
JH
11965 (gen_block_die): Fix checking for unused blocks.
11966 (process_scope_var): Break out from .... ; work with origins only.
11967 (decls_for_scope) ... here; process nonlocalized list.
11968 (dwarf2out_ignore_block): Look for nonlocalized vars.
f4ea99bd
EB
11969 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
11970 vars.
526d73ab
JH
11971 (dump_scope_block): Dump them.
11972 * tree-inline.c (remap_decls): Handle nonlocalized vars.
11973 (remap_block): Likewise.
11974 (can_be_nonlocal): New predicate.
11975 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
11976
7a9d3fe8
RW
119772009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11978
11979 * configure: Regenerate.
11980
b3cdf3cb
RW
119812009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11982
a16d1645 11983 * optc-gen.awk: No need to duplicate option flags twice.
9ade279b 11984 Reuse help texts for duplicate options which do not have any.
a16d1645 11985
1156c176
RW
11986 * gcc.c (display_help): Document --version.
11987
033505fc
RW
11988 * gcc.c (main): If print_help_list and verbose_flag, ensure
11989 driver output comes before subprocess output.
11990
4d077054
RW
11991 * optc-gen.awk: Assign all remaining fields to help string,
11992 space-separated, for multi-line help in *.opt.
11993
a072f1cf
RW
11994 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
11995 -Wno-pedantic-ms-format is for MinGW targets only.
11996
b3cdf3cb
RW
11997 * doc/options.texi (Option file format): Fix bad indentation,
11998 restoring dropped sentence.
11999
a3aadcc5
JH
120002009-02-28 Jan Hubicka <jh@suse.cz>
12001
12002 * tree-inline.c (tree_function_versioning): Output debug info.
12003
1cf5abb3
JH
120042009-02-28 Jan Hubicka <jh@suse.cz>
12005
12006 PR debug/39267
12007 * tree-inline.c (setup_one_parameter): Do not copy propagate
12008 arguments when not optimizing.
12009
c4d3f42f
L
120102009-02-28 H.J. Lu <hongjiu.lu@intel.com>
12011
12012 PR target/39327
12013 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
12014 (avx_addsubv4df3): Likewise.
12015 (*avx_addsubv4sf3): Likewise.
12016 (sse3_addsubv4sf3): Likewise.
12017 (*avx_addsubv2df3): Likewise.
12018 (sse3_addsubv2df3): Likewise.
12019 (avx_unpckhps256): Correct item selectors.
12020 (avx_unpcklps256): Likewise.
12021 (avx_unpckhpd256): Likewise.
12022 (avx_unpcklpd256): Likewise.
12023
eb50f5f4
JH
120242009-02-28 Jan Hubicka <jh@suse.cz>
12025
12026 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
12027 static vars.
12028 (copy_arguments_for_versioning): If var is declared don't declare it.
12029 (tree_function_versioning): First setup substitutions and then copy
12030 args.
12031
26140130
JH
120322009-02-27 Jan Hubicka <jh@suse.cz>
12033
12034 PR debug/39267
12035 * cgraph.h (varpool_output_debug_info): Remove.
12036 * cgraphunit.c (varpool_output_debug_info): Remove.
12037 * dwarf2out.c (deferred_locations_struct): New struct
12038 (deferred_locations): New type.
12039 (deferred_locations_list): New static var.
12040 (deffer_location): New function.
12041 (gen_variable_die): Use it.
12042 (decls_for_scope): Output info on local static vars.
12043 (dwarf2out_finish): Process deferred locations.
12044 * varpool.c (varpool_output_debug_info): Remove.
12045
cff7525f
JH
120462009-02-27 Jan Hubicka <jh@suse.cz>
12047
12048 PR debug/39267
12049 * tree.h (TREE_PROTECTED): Fix comment.
12050 (BLOCK_HANDLER_BLOCK): Remove.
12051 (struct tree_block): Remove handler_block add body_block.
12052 (inlined_function_outer_scope_p): New.
12053 (is_body_block): Remove.
12054 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
12055 * dwarf2out.c (is_inlined_entry_point): Remove.
12056 (add_high_low_attributes): Use inlined_function_outer_scope_p.
f10a1c6c
EB
12057 (gen_block_die): Use is_inlined_entry_point check. Remove body block
12058 code.
cff7525f
JH
12059 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
12060 * gimplify.c (gimplify_expr): Gimplify body blocks.
f10a1c6c
EB
12061 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
12062 block with multiple subblocks.
cff7525f
JH
12063 (dump_scope_block): Prettier output; dump more flags and info.
12064 (dump_scope_blocks): New.
12065 (remove_unused_locals): Use dump_scope_blocks.
12066 * tree-flow.h (dump_scope_blocks): Declare.
12067 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
12068 * stmt.c (is_body_block): Remove.
12069 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
12070 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
12071
c20993b9
SP
120722009-02-27 Sebastian Pop <sebastian.pop@amd.com>
12073
12074 PR middle-end/39308
2ba9daa7 12075 * graphite.c (graphite_loop_normal_form): Do not call
c20993b9
SP
12076 number_of_iterations_exit from a gcc_assert.
12077
e3cba5e5
AK
120782009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12079
60839f5d 12080 * config/s390/s390.c (s390_swap_cmp): Look for conditional
e3cba5e5
AK
12081 jumps if COND is NULL.
12082 (find_cond_jump): New function.
12083 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
60839f5d 12084 * config/s390/s390.md: Remove z10_cobra attribute value.
e3cba5e5 12085
9dadeeb8
UB
120862009-02-26 Uros Bizjak <ubizjak@gmail.com>
12087
12088 * config/alpha/alpha.h (alpha_expand_mov): Return false if
12089 force_const_mem returns NULL_RTX.
12090
625d3251
EB
120912009-02-26 Jan Hubicka <jh@suse.cz>
12092
12093 PR debug/39267
12094 * cgraph.h (varpool_output_debug_info): Remove.
12095 * cgraphunit.c (varpool_output_debug_info): Remove.
12096 * dwarf2out.c (deferred_locations_struct): New struct
12097 (deferred_locations): New type.
12098 (deferred_locations_list): New static var.
12099 (deffer_location): New function.
12100 (gen_variable_die): Use it.
12101 (decls_for_scope): Output info on local static vars.
12102 (dwarf2out_finish): Process deferred locations.
12103 * varpool.c (varpool_output_debug_info): Remove.
12104
38432148 121052009-02-25 H.J. Lu <hongjiu.lu@intel.com>
8592acaf
L
12106
12107 PR rtl-optimization/39241
12108 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
12109 to subreg_offset_representable_p.
12110
62d049cf
PB
121112009-02-25 Paolo Bonzini <bonzini@gnu.org>
12112
12113 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
12114 execute function prototype. Get f and nregs from max_reg_num
12115 and get_insns. Remove the first backward pass as it's dead,
12116 guard the forward pass by flag_expensive_optimizations.
12117 (rest_of_handle_regmove): Delete.
12118 (pass_regmove): Replace it with regmove_optimize.
12119
f618d33e
MJ
121202009-02-25 Martin Jambor <mjambor@suse.cz>
12121
12122 PR tree-optimization/39259
12123 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
6c6094f1 12124 calls_alloca function flags.
f618d33e
MJ
12125 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
12126 calls are detected.
12127
c8a05f7c
PB
121282009-02-25 Paolo Bonzini <bonzini@gnu.org>
12129
12130 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
12131 flags_set_1_rtx, flags_set_1_set): Delete.
12132 (regmove_optimize): Do not call mark_flags_life_zones.
12133
6d2538f5
JB
121342009-02-24 Julian Brown <julian@codesourcery.com>
12135
12136 PR target/35965
12137 * config/arm/arm.c (require_pic_register): Only set
12138 cfun->machine->pic_reg once per function.
12139
a2fa6772
SL
121402009-02-24 Sandra Loosemore <sandra@codesourcery.com>
12141
12142 * doc/invoke.texi (Link Options): Document an easier way to pass
9dadeeb8 12143 options that take arguments to the GNU linker using -Xlinker and -Wl.
a2fa6772 12144
5472de36
SE
121452009-02-24 Steve Ellcey <sje@cup.hp.com>
12146
12147 PR target/33785
12148 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
12149
844216f3
RG
121502009-02-24 Richard Guenther <rguenther@suse.de>
12151
12152 PR debug/39285
12153 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
12154
71adbef3 121552009-02-24 Richard Guenther <rguenther@suse.de>
8592acaf 12156 Zdenek Dvorak <ook@ucw.cz>
71adbef3
RG
12157
12158 PR tree-optimization/39233
12159 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
12160 from converting them to a generic type.
12161
f1a558e0
SP
121622009-02-23 Sebastian Pop <sebastian.pop@amd.com>
12163
12164 PR tree-optimization/39260
12165 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
12166 contains a condition with a real type.
12167 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
12168
d8028f2c
JM
121692009-02-23 Jason Merrill <jason@redhat.com>
12170
12171 PR c++/38880
12172 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
12173 narrowing_initializer_constant_valid_p.
2ba9daa7 12174 (narrowing_initializer_constant_valid_p): Don't return
d8028f2c
JM
12175 null_pointer_node for adding a pointer to itself.
12176
9283b513
JH
121772009-02-23 Jan Hubicka <jh@suse.cz>
12178
12179 PR c/12245
9dadeeb8
UB
12180 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
12181 resizing.
9283b513 12182
61e04322
JH
121832009-02-23 Jan Hubicka <jh@suse.cz>
12184
9dadeeb8
UB
12185 PR tree-optimization/37709
12186 * tree.c (block_ultimate_origin): Move here from dwarf2out.
12187 * tree.h (block_ultimate_origin): Declare.
12188 * dwarf2out.c (block_ultimate_origin): Move to tree.c
61e04322
JH
12189 * tree-ssa-live.c (remove_unused_scope_block_p):
12190 Eliminate blocks containig no instructions nor live variables nor
12191 nested blocks.
12192 (dump_scope_block): New function.
12193 (remove_unused_locals): Enable removal of dead blocks by default;
9dadeeb8 12194 enable dumping at TDF_DETAILS.
61e04322 12195
38432148 121962009-02-21 H.J. Lu <hongjiu.lu@intel.com>
5339d3ea
L
12197
12198 * config/i386/i386.c (classify_argument): Don't allow COImode
12199 and OImode.
12200 (function_arg_advance_32): Don't allow OImode.
12201 (function_arg_32): Likewise.
12202 (function_value_32): Likewise.
12203 (return_in_memory_32): Likewise.
12204 (function_arg_64): Remove OImode comment.
12205
38432148 122062009-02-21 H.J. Lu <hongjiu.lu@intel.com>
f161e158
L
12207
12208 PR target/39261
12209 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
12210 ix86_expand_vector_set for V4DImode in 64bit mode only.
12211 (ix86_expand_vector_init_one_var): Likewise.
12212
dcd739a6
SP
122132009-02-21 Sebastian Pop <sebastian.pop@amd.com>
12214
12215 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
12216
6c3b938d
RS
122172009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
12218
8e361f23 12219 PR bootstrap/39257
6c3b938d
RS
12220 * loop-iv.c: Revert last change.
12221 * emit-rtl.c: Likewise.
12222
38432148 122232009-02-21 H.J. Lu <hongjiu.lu@intel.com>
4c64d3dd
L
12224
12225 PR target/39256
12226 * config/i386/i386.c (type_natural_mode): Remove an extra
12227 space in the warning message.
12228 (function_value_32): Handle 32-byte vector modes.
12229 (return_in_memory_32): Likewise.
12230
2ec62529
RS
122312009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
12232
12233 * loop-iv.c (truncate_value): New function.
12234 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
12235 of lowpart_subreg.
12236 (lowpart_subreg): Move to...
12237 * emit-rtl.c: ...here.
12238
ecb8c3cc 122392009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
f814e489 12240
ecb8c3cc
DS
12241 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
12242 accidental and undocumented change at revision 140860.
12243
ae46a823
JM
122442009-02-21 Joseph Myers <joseph@codesourcery.com>
12245
12246 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
12247 take gimple_seq * arguments.
12248 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
12249 types_compatible_p langhook.
12250
07d8efe3 122512009-02-20 Mark Mitchell <mark@codesourcery.com>
f814e489 12252 Joseph Myers <joseph@codesourcery.com>
07d8efe3
MM
12253
12254 * config/arm/arm.c (arm_builtin_va_list): New function.
12255 (arm_expand_builtin_va_start): Likewise.
12256 (arm_gimplify_va_arg_expr): Likewise.
12257 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
12258 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
12259 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
12260 (va_list_type): New variable.
12261 (arm_mangle_type): Mangle va_list_type appropriately.
12262
b1fb9f56
JJ
122632009-02-20 Jakub Jelinek <jakub@redhat.com>
12264
12265 PR middle-end/39157
12266 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
12267 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
12268 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
12269 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
12270 parameter to 1000 for -O1 by default.
12271 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
12272 parameter.
12273 * loop-invariant.c: Include params.h.
12274 (move_loop_invariants): Don't call move_single_loop_invariants on
12275 very large loops.
12276
5bc0807c
JM
122772009-02-20 Jaka Mocnik <jaka@xlab.si>
12278
12279 * calls.c (emit_library_call_value_1): Use slot_offset instead of
12280 offset when calculating bounds for indexing stack_usage_map. Fixes
12281 a buffer overflow with certain target setups.
12282
c69cd1f5
JJ
122832009-02-20 Jakub Jelinek <jakub@redhat.com>
12284
12285 PR target/39240
12286 * calls.c (expand_call): Clear try_tail_call if caller and callee
12287 disagree in promotion of function return value.
12288
09812622
JJ
122892009-02-19 Jakub Jelinek <jakub@redhat.com>
12290
12291 PR target/39175
12292 * c-common.c (c_determine_visibility): If visibility changed and
12293 DECL_RTL has been already set, call make_decl_rtl to update symbol
12294 flags.
12295
68017cb4
L
122962009-02-19 H.J. Lu <hongjiu.lu@intel.com>
12297
12298 PR c++/39188
12299 * varasm.c (assemble_variable): Don't check DECL_NAME when
12300 globalizing a variable.
12301
ab4194da
JM
123022009-02-19 Joseph Myers <joseph@codesourcery.com>
12303
12304 PR c/38483
12305 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
12306 expression before any __builtin_trap call.
12307 * c-typeck.c (build_function_call): Convert and check function
12308 arguments before generating a call to a trap. Evaluate the
12309 function arguments before the trap.
12310
6b67572e
UB
123112009-02-19 Uros Bizjak <ubizjak@gmail.com>
12312
12313 PR target/39228
12314 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
12315 (UNSPEC_FXAM_MEM): New unspec.
12316 (fxam<mode>2_i387_with_temp): New insn and split pattern.
12317 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
12318 memory using fxam<mode>2_i387_with_temp to remove excess precision.
12319
9e39dba6
RG
123202009-02-19 Richard Guenther <rguenther@suse.de>
12321
12322 PR tree-optimization/39207
12323 PR tree-optimization/39074
12324 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
12325 storedanything_tree): New.
12326 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
6b67572e 12327 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
9e39dba6
RG
12328 (build_succ_graph): Add edges from STOREDANYTHING to all
12329 non-direct nodes.
12330 (init_base_vars): Initialize STOREDANYTHING.
12331 (compute_points_to_sets): Free substitution info after
12332 building the succ graph.
12333 (ipa_pta_execute): Likewise.
12334
12335 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
12336 field.
12337 (do_ds_constraint): Do not add to special var or non-pointer
12338 field solutions.
12339 (type_could_have_pointers): Split out from ...
12340 (could_have_pointers): ... here. For arrays use the element type.
12341 (create_variable_info_for): Initialize may_have_pointers.
12342 (new_var_info): Likewise.
12343 (handle_lhs_call): Make the HEAP variable unknown-sized.
12344 (intra_create_variable_infos): Use a type with pointers for
12345 PARM_NOALIAS, make it unknown-sized.
12346
fd7b2603
L
123472009-02-18 H.J. Lu <hongjiu.lu@intel.com>
12348
12349 PR target/39224
6b67572e 12350 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
fd7b2603 12351
98b80692
JM
123522009-02-18 Jason Merrill <jason@redhat.com>
12353
12354 PR target/39179
12355 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
12356 value if DECL_EXTERNAL.
12357 * tree-sra.c (sra_walk_gimple_assign): Likewise.
12358 * target.h (gcc_target::binds_local_p): Clarify "module".
12359 * tree.h (TREE_PUBLIC): Clarify "module".
12360
0705d3f4
L
123612009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
12362
12363 PR target/38891
12364 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
12365 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
12366
bce08d50
L
123672009-02-17 H.J. Lu <hongjiu.lu@intel.com>
12368
12369 PR target/39082
12370 * c.opt (Wabi): Support C and ObjC.
12371 (Wpsabi): New.
12372
12373 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
12374
12375 * config/i386/i386.c (classify_argument): Warn once about the ABI
12376 change when passing union with long double.
12377
12378 * doc/invoke.texi: Update -Wabi for warning psABI changes.
12379
5600f233
JM
123802009-02-18 Joseph Myers <joseph@codesourcery.com>
12381
12382 PR c/35447
12383 * c-parser.c (c_parser_compound_statement): Always enter and leave
12384 a scope.
12385
8cd01fe6
JDA
123862009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12387
12388 PR target/34587
12389 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
12390
418df9d7
JJ
123912009-02-18 Jakub Jelinek <jakub@redhat.com>
12392
12393 PR tree-optimization/36922
12394 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
12395 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
12396 Likewise.
12397
082d2ebb
RS
123982009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
12399
12400 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
12401 to 0 for EABI64.
12402
17de576c
RS
124032009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
12404
12405 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
12406
6d8d5435
RS
124072009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
12408
12409 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
12410 tree sharing.
12411
e69ff910
RB
124122009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
12413 Richard Sandiford <rdsandiford@googlemail.com>
12414
12415 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
12416 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
12417 (loongson_biadd): ...this.
12418
6b24ee26
RG
124192009-02-17 Richard Guenther <rguenther@suse.de>
12420
12421 PR tree-optimization/39202
12422 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
12423 a var make sure to follow existing collapses.
12424
91ab2c86
RG
124252009-02-17 Richard Guenther <rguenther@suse.de>
12426
12427 PR middle-end/39214
12428 * langhooks.c (lhd_print_error_function): Check for NULL block.
12429
73a63870
RG
124302009-02-17 Richard Guenther <rguenther@suse.de>
12431
12432 PR tree-optimization/39204
12433 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
12434 of the PHI arg.
12435
0e08f686
UB
124362009-02-17 Uros Bizjak <ubizjak@gmail.com>
12437
12438 * config/soft-fp/double.h: Update from glibc CVS.
12439
a60b7ddb
RG
124402009-02-17 Richard Guenther <rguenther@suse.de>
12441
12442 PR tree-optimization/39207
12443 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
12444 strict-aliasing warnings for pointers pointing to NULL.
12445
a47e20fd
JM
124462009-02-16 Joseph Myers <joseph@codesourcery.com>
12447
12448 PR c/35446
12449 * c-parser.c (c_parser_braced_init): Call pop_init_level when
12450 skipping until next close brace.
12451
50aab7dc
L
124522009-02-16 H.J. Lu <hongjiu.lu@intel.com>
12453
12454 PR target/37049
12455 * config/i386/i386.c (ix86_expand_push): Set memory alignment
12456 to function argument boundary.
12457
68e53db0
HS
124582009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
12459
12460 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
12461 in the lea_add. Reload eventually constraints it properly.
0d50d55a 12462 * config/picochip/constraints.md: Remove the target constraint
68e53db0
HS
12463 "b", since it is not needed anymore.
12464
09e361bb
JJ
124652009-02-16 Jakub Jelinek <jakub@redhat.com>
12466
12467 * gthr-dce.h: Uglify function parameter and local variable names.
12468 * gthr-gnat.h: Likewise.
12469 * gthr-mipssde.h: Likewise.
12470 * gthr-nks.h: Likewise.
12471 * gthr-posix95.h: Likewise.
12472 * gthr-posix.h: Likewise.
12473 * gthr-rtems.h: Likewise.
12474 * gthr-single.h: Likewise.
12475 * gthr-solaris.h: Likewise.
12476 * gthr-tpf.h: Likewise.
12477 * gthr-vxworks.h: Likewise.
12478 * gthr-win32.h: Likewise.
12479
47f5a48f
L
124802009-02-15 H.J. Lu <hongjiu.lu@intel.com>
12481
12482 PR target/39196
12483 * config/i386/i386.md: Restrict the new peephole2 to move
12484 between MMX/SSE registers.
12485
68c9ab45
RG
124862009-02-15 Richard Guenther <rguenther@suse.de>
12487
12488 Revert
12489 2009-02-13 Richard Guenther <rguenther@suse.de>
12490
12491 * configure.ac: Enable LFS.
12492 * configure: Re-generate.
12493 * config.in: Likewise.
12494
d7815554
UW
124952009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12496
12497 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
12498 spu_srqwbyte, spu_srqwbytebc): Define.
12499 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
12500 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
12501 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
12502 "shrqby_<mode>"): New insn-and-split patterns.
12503 * config/spu/spu.c (expand_builtin_args): Determine and return
12504 number of operands using spu_builtin_description data.
12505 (spu_expand_builtin_1): Use it.
12506
c208436c
SE
125072009-02-13 Steve Ellcey <sje@cup.hp.com>
12508
12509 PR target/38056
12510 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
12511 TARGET_CONST_GP.
12512
c2e7ba7e
L
125132009-02-13 H.J. Lu <hongjiu.lu@intel.com>
12514
12515 PR target/39149
12516 * config/i386/i386.c (override_options): Correct warning
6c6094f1 12517 messages for -malign-loops, -malign-jumps and -malign-functions.
c2e7ba7e 12518
72f4e3a7
L
125192009-02-13 H.J. Lu <hongjiu.lu@intel.com>
12520
12521 PR target/39152
12522 * config/i386/i386.md: Restrict the new peephole2 to move
12523 between the general purpose registers.
12524
53f648e2
L
125252009-02-13 H.J. Lu <hongjiu.lu@intel.com>
12526
12527 PR target/39162
12528 * config/i386/i386.c (type_natural_mode): Add a new argument.
6b67572e 12529 Return the original mode and warn ABI change if vector size is 32byte.
53f648e2
L
12530 (function_arg_advance): Updated.
12531 (function_arg): Likewise.
12532 (ix86_function_value): Likewise.
12533 (ix86_return_in_memory): Likewise.
12534 (ix86_sol10_return_in_memory): Likewise.
12535 (ix86_gimplify_va_arg): Likewise.
12536 (function_arg_32): Don't warn ABX ABI change here.
12537 (function_arg_64): Likewise.
12538
38432148 125392009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
b1c92d54
BS
12540
12541 * loop-iv.c (implies_p): In the final case, test that operands 0
12542 of the two comparisons match.
12543
dd2139e7
BS
12544 * config/bfin/bfin.c (find_prev_insn_start): New function.
12545 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
12546 (find_next_insn_start): Move.
12547
601b3e1a
RG
125482009-02-13 Richard Guenther <rguenther@suse.de>
12549
12550 * configure.ac: Enable LFS.
12551 * configure: Re-generate.
12552 * config.in: Likewise.
12553
f007042e
JM
125542009-02-13 Joseph Myers <joseph@codesourcery.com>
12555
12556 PR c/35444
12557 * c-parser.c (c_parser_parms_list_declarator): Discard pending
12558 sizes on syntax error after some arguments have been parsed.
12559
3f238e8b
JJ
125602009-02-12 Jakub Jelinek <jakub@redhat.com>
12561
12562 * doc/invoke.texi (-fira): Remove.
12563
328e13b7
L
125642009-02-12 H.J. Lu <hongjiu.lu@intel.com>
12565
12566 * caller-save.c: Replace regclass.c with reginfo.c in comments.
12567 * recog.c: Likewise.
12568 * rtl.h: Likewise.
12569
c252db20
L
125702009-02-12 Uros Bizjak <ubizjak@gmail.com>
12571
12572 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
12573 (umul_ppmm): Likewise.
12574 (count_leading_zeros): Likewise.
12575 (count_trailing_zeros): Likewise.
12576 (UMUL_TIME): Likewise.
12577
125782009-02-12 H.J. Lu <hongjiu.lu@intel.com>
12579
ba181049
UB
12580 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
12581 soft-fp/t-softfp to tmake_file.
c252db20
L
12582
12583 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
ba181049
UB
12584 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
12585 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
12586 IA64_BUILTIN_INFQ]: New.
c252db20
L
12587 (ia64_init_builtins): Initialize __builtin_infq,
12588 __builtin_fabsq and __builtin_copysignq if not HPUX.
12589 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
12590 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
12591
12592 * config/ia64/lib1funcs.asm (__divtf3): Define only if
12593 SHARED is defined.
12594 (__fixtfti): Likewise.
12595 (__fixunstfti): Likewise.
12596 (__floattitf): Likewise.
12597
12598 * config/ia64/libgcc-glibc.ver: New.
12599 * config/ia64/t-fprules-softfp: Likewise.
12600 * config/ia64/sfp-machine.h: Likewise.
12601
12602 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
12603 (LIBGCC2_TF_CEXT): Likewise.
12604 (TF_SIZE): Likewise.
12605 (TARGET_INIT_LIBFUNCS): Likewise.
12606
ba181049 12607 * config/ia64/t-glibc (SHLINB_MAPFILES):
6b67572e 12608 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
c252db20 12609
f13eae6a
L
126102009-02-12 H.J. Lu <hongjiu.lu@intel.com>
12611
12612 * config/i386/i386.c (construct_container): Rewrite processing
12613 BLKmode with X86_64_SSE_CLASS.
12614
12019aec
L
126152009-02-12 Paolo Bonzini <bonzini@gnu.org>
12616
12617 PR target/39152
12618 * config/i386/i386.md: Replace simplify_replace_rtx with
12619 replace_rtx in the new peephole2.
12620
28c11eb3
NS
126212009-02-12 Nathan Sidwell <nathan@codesourcery.com>
12622
12623 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
12624 loop unrolling do not happen at -O2.
12625
c7b94907
MM
126262009-02-12 Michael Matz <matz@suse.de>
12627
12628 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
12629
61e98967
JJ
126302009-02-12 Jakub Jelinek <jakub@redhat.com>
12631
12632 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
12633 for -g3.
12634
a2a237b5
BE
126352009-02-12 Ben Elliston <bje@au.ibm.com>
12636
12637 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
12638 patterns when updating the back chain. Missed in the 2009-02-10
12639 change.
12640
853eda8d
JJ
126412009-02-11 Janis Johnson <janis187@us.ibm.com>
12642
12643 * doc/extend.texi (Decimal Floating Types): Update identifier of
12644 draft TR and list of missing support.
12645
3ad6b266
JJ
126462009-02-11 Jakub Jelinek <jakub@redhat.com>
12647
12648 PR middle-end/39154
12649 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
12650 bit to variable length decl's flags, add it also to its
12651 pointer replacement variable.
12652
b058b753
UB
126532009-02-11 Uros Bizjak <ubizjak@gmail.com>
12654 Jakub Jelinek <jakub@redhat.com>
12655
12656 PR target/39118
12657 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
12658 (memory_blockage): New expander.
12659 (*memory_blockage): New insn pattern.
12660 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
12661 instead of general blockage at the end of function prologue when
12662 frame pointer is used to access red zone area. Do not emit blockage
12663 when profiling, it is emitted in generic code.
12664 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
12665 function epilogue when frame pointer is used to access red zone area.
12666
bab64f23
PB
126672009-02-11 Paolo Bonzini <bonzini@gnu.org>
12668
0ce6dcfa 12669 PR target/38824
bab64f23
PB
12670 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
12671 by arithmetic with memory operands.
12672 * config/i386/predicates.md (commutative_operator): New.
12673
8fd94bda
JJ
126742009-02-10 Janis Johnson <janis187@us.ibm.com>
12675
12676 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
12677 bulleted lists.
12678
794511d2
EB
126792009-02-10 Eric Botcazou <ebotcazou@adacore.com>
12680
12681 * alias.h (record_alias_subset): Declare.
12682 * alias.c (record_alias_subset): Make global.
12683
6da7fc87
NC
126842009-02-10 Nick Clifton <nickc@redhat.com>
12685
12686 * tree-parloops.c: Change license to GPLv3.
12687 * ipa-struct-reorg.c: Change license to GPLv3.
12688 * ipa-struct-reorg.h: Change license to GPLv3.
12689
a03813c8
SE
126902009-02-10 Steve Ellcey <sje@cup.hp.com>
12691
12692 PR c/39084
12693 * c-decl.c (start_struct): Return NULL on error.
12694
fc3103e7
JJ
126952009-02-10 Jakub Jelinek <jakub@redhat.com>
12696
9b43d37b
JJ
12697 PR middle-end/39124
12698 * cfgloopmanip.c (remove_path): Call remove_bbs after
12699 cancel_loop_tree, not before it.
12700
fc3103e7 12701 PR target/39139
b058b753 12702 * function.h (struct function): Add has_local_explicit_reg_vars bit.
fc3103e7
JJ
12703 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
12704 VAR_DECLs were seen.
12705 * tree-ssa-live.c (remove_unused_locals): Recompute
12706 cfun->has_local_explicit_reg_vars.
12707 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
12708 copies or clearings if cfun->has_local_explicit_reg_vars.
12709
dbf9ee15
UB
127102009-02-10 Uros Bizjak <ubizjak@gmail.com>
12711
12712 PR target/39118
12713 * config/i386/i386.c (expand_prologue): Emit blockage at the end
12714 of function prologue when frame pointer is used to access
12715 red zone area.
12716
bdec4dc7
RG
127172009-02-10 Richard Guenther <rguenther@suse.de>
12718
12719 PR middle-end/39127
12720 * gimplify.c (gimple_regimplify_operands): Always look if
12721 we need to create a temporary.
12722
7cae94fc
RG
127232009-02-10 Richard Guenther <rguenther@suse.de>
12724
12725 PR tree-optimization/39132
12726 * tree-loop-distribution.c (todo): New global var.
12727 (generate_memset_zero): Trigger TODO_rebuild_alias.
12728 (tree_loop_distribution): Return todo.
12729
a8800687
L
127302009-02-10 H.J. Lu <hongjiu.lu@intel.com>
12731
12732 PR target/39119
12733 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
12734 (x86_64_reg_class_name): Removed.
12735 (classify_argument): Return 0 if bytes > 32. Return 0 if the
12736 first one isn't X86_64_SSE_CLASS or any other ones aren't
12737 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
12738 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
12739 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
12740 and 3 X86_64_SSEUP_CLASS.
12741 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
12742 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
12743
d4bacef0
BE
127442009-02-10 Ben Elliston <bje@au.ibm.com>
12745
12746 * config/rs6000/rs6000.md (allocate_stack): Always use an update
12747 form instruction to update the stack back chain word, even if the
12748 user has disabled the generation of update instructions.
12749 (movdi_<mode>_update_stack): New.
12750 (movsi_update_stack): Likewise.
12751 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
12752 always use an update form instruction to update the stack back
12753 chain word.
12754
01d7d2f3
SP
127552009-02-09 Sebastian Pop <sebastian.pop@amd.com>
12756
12757 PR middle-end/38953
b058b753
UB
12758 * graphite.c (if_region_set_false_region): After moving a region in
12759 the false branch of a condition, remove the empty dummy basic block.
01d7d2f3
SP
12760 (gloog): Remove wrong fix for PR38953.
12761
e41e2ab4
UW
127622009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12763
12764 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
12765 generation due to implicit sign extension.
12766
4bb07c5d
EB
127672009-02-09 Eric Botcazou <ebotcazou@adacore.com>
12768
12769 PR middle-end/38981
12770 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
12771 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
12772
f060a261
RG
127732009-02-09 Richard Guenther <rguenther@suse.de>
12774
12775 PR middle-end/35202
12776 * convert.c (convert_to_real): Disable (float)fn((double)x)
12777 to fnf(x) conversion if errno differences may occur and
12778 -fmath-errno is set.
12779
5a7e237c
AS
127802009-02-07 Anatoly Sokolov <aesok@post.ru>
12781
12782 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
12783 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
12784 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
12785
feab5a67
JM
127862009-02-06 Joseph Myers <joseph@codesourcery.com>
12787
12788 PR c/35434
12789 * c-common.c (handle_alias_attribute): Disallow attribute for
12790 anything not a FUNCTION_DECL or VAR_DECL.
12791
90ef2296
JJ
127922009-02-06 Janis Johnson <janis187@us.ibm.com>
12793
12794 PR c/39035
12795 * real.c (do_compare): Special-case compare of zero against
12796 decimal float value.
12797
1de2c900
JM
127982009-02-06 Joseph Myers <joseph@codesourcery.com>
12799
12800 PR c/36432
12801 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
12802 as indicating flexible array members unless the field itself is
12803 being declarared as the incomplete array.
12804
e901811a
JH
128052009-02-06 Jan Hubicka <jh@suse.cz>
12806
12807 PR tree-optimization/38844
12808 * ipa-inline.c (try_inline): Stop inlining recursion when edge
12809 is already inlined.
12810
3cfa762b
RG
128112009-02-06 Richard Guenther <rguenther@suse.de>
12812
12813 PR middle-end/38977
12814 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
12815 fork because we may expand it as __gcov_fork.
12816
8506528c
NC
128172009-02-06 Nick Clifton <nickc@redhat.com>
12818
dbf9ee15 12819 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
8506528c 12820
85169114
PB
128212009-02-06 Paolo Bonzini <bonzini@gnu.org>
12822
12823 PR tree-optimization/35659
12824 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
12825 vn_phi_eq): Shortcut if hashcode does not match.
12826 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
12827 NULL operands.
12828 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
12829 and avoid iterative_hash_expr.
12830 (FOR_EACH_VALUE_ID_IN_SET): New.
12831 (value_id_compare): Remove.
12832 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
12833 sort expressions by value id.
12834
6d39673d
KK
128352009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
12836
12837 PR target/38991
12838 * config/sh/predicates.md (general_movsrc_operand): Don't check
12839 the subreg of system registers here.
12840
e6e1c050
JJ
128412009-02-05 Jakub Jelinek <jakub@redhat.com>
12842
12843 PR c++/39106
12844 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
12845 on the copied decl.
12846
65a74b5d
PB
128472009-02-05 Paolo Bonzini <bonzini@gnu.org>
12848
12849 PR rtl-optimization/39110
12850 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
12851 addresses, not aligned ones.
12852
08e14b2a
DB
128532009-02-05 Daniel Berlin <dberlin@dberlin.org>
12854 Richard Guenther <rguenther@suse.de>
12855
12856 PR tree-optimization/39100
12857 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
12858 comment says and add edges.
12859
5006381c
JM
128602009-02-05 Joseph Myers <joseph@codesourcery.com>
12861
12862 PR c/35435
12863 * c-common.c (handle_tls_model_attribute): Ignore attribute for
12864 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
12865
2ba9daa7 128662009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
b0789219
TG
12867
12868 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
12869 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
12870 register_bb_in_sese, new_sese, free_sese): Moved.
12871 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
12872 outermost_loop_in_scop, build_scop_iteration_domain,
12873 expand_scalar_variables_ssa_name, get_vdef_before_scop,
12874 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
12875 Use loop_in_sese_p instead of loop_in_scop_p.
12876 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
12877 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
12878 (scopdet_basic_block_info): Fix bug in scop detection.
12879 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
12880 eq_loop_to_cloog_loop): Remove.
12881 (nb_loops_around_loop_in_scop, nb_loop
12882 ref_nb_loops): Moved here...
12883 * graphite.h (ref_nb_loops): ... from here.
12884 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
12885 (loop_domain_dim, loop_iteration_vector_dim): Remove.
12886 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
12887 * testsuite/gcc.dg/graphite/scop-19.c: New
12888
48e8382e
PB
128892009-02-04 Paolo Bonzini <bonzini@gnu.org>
12890 Hans-Peter Nilsson <hp@axis.com>
12891
12892 PR rtl-optimization/37889
12893 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
12894 Move offset handling from PLUS to before the switch. Use new
12895 arguments when considering SYMBOL_REFs too.
12896 (rtx_addr_can_trap_p): Pass dummy offset and size.
12897 (enum may_trap_p_flags): Remove.
12898 (may_trap_p_1): Pass size from MEM_SIZE.
12899
12900 PR rtl-optimization/38921
12901 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
12902 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
12903 * rtlanal.c (may_trap_after_code_motion_p): Delete.
12904 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
12905
69349ea5
L
129062009-02-04 H.J. Lu <hongjiu.lu@intel.com>
12907
12908 AVX Programming Reference (January, 2009)
12909 * config/i386/sse.md (*vpclmulqdq): New.
12910
b545e411
JJ
129112009-02-04 Jakub Jelinek <jakub@redhat.com>
12912
12913 PR tree-optimization/38977
12914 PR gcov-profile/38292
bf9b2cc9 12915 * calls.c (special_function_p): Disregard __builtin_ prefix.
b545e411 12916
5b43bf05
HS
129172009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
12918
12919 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
12920 non-indexable addresses even before reload.
12921
062c4bb3
JM
129222009-02-03 Joseph Myers <joseph@codesourcery.com>
12923
12924 PR c/29129
12925 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
12926 as having variable size. Do not give an error for unnamed
12927 parameters with [*] declarators. Give a warning for type names
12928 with [*] declarators and mark them as variable size.
12929 * c-parser.c (c_parser_sizeof_expression): Do not give an error
12930 for sizeof applied to [*] type names.
12931
6175f578
AP
129322009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
12933
12934 PR C++/36607
12935 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
12936
d4f4bc84
JJ
129372009-02-03 Jakub Jelinek <jakub@redhat.com>
12938
12939 * gcc.c (process_command): Update copyright notice dates.
12940 * gcov.c (print_version): Likewise.
12941 * gcov-dump.c (print_version): Likewise.
12942 * mips-tfile.c (main): Likewise.
12943 * mips-tdump.c (main): Likewise.
12944
f6294de7
JM
129452009-02-03 Joseph Myers <joseph@codesourcery.com>
12946
12947 PR c/35433
12948 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
12949 for composite type involving a zero-length array type.
12950
754ccf7c
JJ
129512009-02-03 Jakub Jelinek <jakub@redhat.com>
12952
70f16287
JJ
12953 PR target/35318
12954 * function.c (match_asm_constraints_1): Skip over
12955 initial optional % in the constraint.
12956
754ccf7c
JJ
12957 PR inline-asm/39059
12958 * c-parser.c (c_parser_postfix_expression): If fixed point is not
12959 supported, don't accept FIXED_CSTs.
12960 * c-decl.c (finish_declspecs): Error if fixed point is not supported
12961 and _Sat is used without _Fract/_Accum. Set specs->type to
12962 integer_type_node for cts_fract/cts_accum if fixed point is not
12963 supported.
12964
965fdadf
CM
129652009-02-02 Catherine Moore <clm@codesourcery.com>
12966
dbf9ee15 12967 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
965fdadf 12968
2e8a796f
RS
129692009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
12970
12971 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
12972 (ABI_HAS_64BIT_SYMBOLS): Use it.
12973 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
12974
e0079468
PB
129752009-02-02 Paul Brook <paul@codesourcery.com>
12976
12977 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
12978
eca72963
JJ
129792009-02-02 Jakub Jelinek <jakub@redhat.com>
12980
12981 PR inline-asm/39058
12982 * recog.h (asm_operand_ok): Add constraints argument.
12983 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
12984 recurse on matching constraint.
12985 (check_asm_operands): Pass constraints as 3rd argument to
12986 asm_operand_ok. Don't look up matching constraint here.
12987 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
12988 to asm_operand_ok.
12989
b5bde9ff
BE
129902009-02-02 Ben Elliston <bje@au.ibm.com>
12991
12992 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
12993 TARGET_NARROW_VOLATILE_BITFIELD macro names.
12994
30f3e427
JDA
129952009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12996
be7659ba
JDA
12997 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
12998 information. Remove some obsolete information. Reorganize.
12999
30f3e427
JDA
13000 * config/pa/fptr.c: Revert license to GPL 2.
13001 * config/pa/milli64.S: Likewise.
13002
3cbfaf98
DK
130032009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
13004
13005 PR target/38904
13006 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
13007 LIBRARY name in, instead of hard-coding it.
13008 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
13009 extra target make frag to tmake_files according to EH model.
13010 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13011 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
13012 frags that define makefile variable EH_MODEL appropriately.
13013 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
13014 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
13015 to "-sjlj" according to type of EH configured.
13016 (LIBGCC_SONAME): Concatenate it to shared library base name.
13017 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
13018 to "_sjlj" according to type of EH configured.
13019 (LIBGCC_SONAME): Concatenate it to shared library base name.
13020 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
13021 (SHLIB_LINK): Add missing semicolon to if-else construct.
13022 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
13023 string value of "pe_dll" command-line option.
13024 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
13025 (SHLIB_SONAME): Use it when overriding t-cygming default.
13026 (SHLIB_IMPLIB): Override t-cygming default.
13027 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
13028 string value of "pe_dll" command-line option.
13029
8d0b6068
DK
130302009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
13031
13032 PR target/38952
13033 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
bf9b2cc9 13034 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
8d0b6068 13035
14c28276
RG
130362009-01-31 Richard Guenther <rguenther@suse.de>
13037
13038 PR tree-optimization/38937
13039 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
13040 computing the transitive closure.
13041
5f4d82c2
RG
130422009-01-30 Richard Guenther <rguenther@suse.de>
13043
13044 PR tree-optimization/39041
13045 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
13046 Propagate variable indices only if the types match for this stmt.
13047
d0728ae0
JJ
130482009-01-30 Jakub Jelinek <jakub@redhat.com>
13049
13050 PR target/39013
13051 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
13052 inline but never defined.
13053
6b67572e 130542009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
9fec758d
WG
13055
13056 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
13057 (*insv_h_di_reg_extimm): New insn.
13058 (*insv_l<mode>_reg_extimm): New insn.
13059
130602009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
9e8be1e4
HS
13061
13062 * config/picochip/picochip.c (flag_conserve_stack): set
13063 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
13064 fconserve-stack. Reduce call-overhead used by inliner.
13065
9fec758d 130662009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
df9198ab
HS
13067
13068 PR/38157
13069 * common.opt (flag_conserve_stack): Initialised to zero.
13070
7f1c539c
KT
130712009-01-30 Kai Tietz <kai.tietz@onevision.com>
13072
13073 PR/39002
13074 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
13075 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
13076 method.
13077
3631be48
L
130782009-01-29 H.J. Lu <hongjiu.lu@intel.com>
13079
13080 * ira-color.c (allocno_reload_assign): Update comments.
13081 * regmove.c (regmove_optimize): Likewise.
13082
13083 * ra.h: Removed.
13084
416ac4d4
RM
130852009-01-29 Robert Millan <rmh@aybabtu.com>
13086
60839f5d
EB
13087 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
13088 * config/i386/kopensolaris-gnu.h: New file. Undefine
416ac4d4 13089 `MD_UNWIND_SUPPORT'.
60839f5d 13090 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
416ac4d4 13091
d5e54bc1
KH
130922009-01-29 Kazu Hirata <kazu@codesourcery.com>
13093
13094 PR tree-optimization/39007
13095 * tree-loop-distribution.c (generate_builtin): Use
13096 recompute_dominator to compute the immediate dominator of the
13097 basic block just after the loop.
13098
38432148 130992009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
e9e077fa
RO
13100
13101 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
13102 (ASM_OUTPUT_DWARF_PCREL): Define.
13103
38432148 131042009-01-29 Vladimir Makarov <vmakarov@redhat.com>
2af2dbdc
VM
13105
13106 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
13107 * doc/passes.texi: Remove entries about regclass, local-alloc, and
13108 global. Modify entries about regmove and IRA.
13109
13110 * ra-conflict.c: Remove the file.
13111
13112 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
13113
13114 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
13115 (pass_regclass_init): Rename to pass_reginfo_init.
13116
13117 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
13118
13119 * toplev.h (flag_ira): Remove.
13120
13121 * caller-save.c (setup_save_areas): Remove flag_ira.
13122
bf9b2cc9 13123 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
2af2dbdc
VM
13124
13125 * global.c: Remove the file.
13126
ba20e309 13127 * opts.c (decode_options): Remove flag_ira.
2af2dbdc
VM
13128
13129 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
13130
13131 * regmove.c: Modify file description.
13132 (find_use_as_address, try_auto_increment): Define them only if
13133 AUTO_INC_DEC is defined.
13134 (replacement_quality, replace_in_call_usage, fixup_match_1,
13135 stable_and_no_regs_but_for_p): Remove.
13136 (reg_set_in_bb): Make it static.
13137 (regmove_optimize): Remove flag_ira and code which worked for
13138 !flag_ira.
13139
13140 * local-alloc.c: Remove the file.
13141
13142 * common.opt (fira): Remove.
13143
13144 * ira.c: Include except.h.
13145 (eliminable_regset): Move from global.c.
13146 (mark_elimination): Ditto. Remove flag_ira.
13147 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
13148 equiv_mem_modified, validate_equiv_mem_from_store,
13149 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
13150 contains_replace_regs, memref_referenced_p, memref_used_between_p,
13151 no_equiv, recorded_label_ref): Move from local-alloc.c.
13152 (update_equiv_regs): Ditto. Make it static.
13153 (print_insn_chain, print_insn_chains): Move it from global.c.
bf9b2cc9 13154 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
2af2dbdc
VM
13155 (build_insn_chain): Ditto. Make it static.
13156 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
13157 Rename to init_live_subregs.
13158 (gate_ira): Remove flag_ira.
13159
13160 * regclass.c: Rename reginfo.c. Change file description.
13161 (FORBIDDEN_INC_DEC_CLASSES): Remove.
dbf9ee15 13162 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
2af2dbdc
VM
13163 (init_reg_sets_1): Remove code for evaluation of
13164 reg_class_superclasses and losing_caller_save_reg_set.
13165 (init_regs): Remove init_reg_autoinc.
13166 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
13167 ok_for_base_p_nonstrict): Remove.
bf9b2cc9 13168 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
2af2dbdc
VM
13169 (pass_regclass_init): Rename to pass_reginfo_init. Modify
13170 corresponding entries.
13171 (dump_regclass, record_operand_costs, scan_one_insn,
13172 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
13173 record_address_regs, auto_inc_dec_reg_p): Remove.
13174 (gt-regclass.h): Rename to gt-reginfo.h.
13175
13176 * rtl.h (dump_global_regs, retry_global_alloc,
bf9b2cc9 13177 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
2af2dbdc
VM
13178
13179 * Makefile.in (RA_H): Remove.
13180 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
13181 Rename regclass.o to reginfo.o.
13182 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
13183 gt-reginfo.h.
13184 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
13185 (GTFILES): Rename regclass.c to reginfo.c.
13186
13187 * passes.c (init_optimization_passes): Remove pass_local_alloc and
bf9b2cc9 13188 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
2af2dbdc
VM
13189
13190 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
13191 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
13192 Remove flag_ira.
6b67572e 13193 (finish_spills): Ditto. Remove code for !flag_ira.
2ba9daa7 13194
c95b2534 131952009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
00b251a0
KZ
13196
13197 PR middle-end/35854
13198 * doc/invoke.texi (rtl debug options): Complete rewrite.
13199 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
13200 to auto_inc_dec".
13201 * mode-switching.c (pass_mode_switching): Rename pass from
13202 "mode-sw" to "mode_sw".
13203 * except.c (pass_convert_to_eh_ranges): Rename pass from
13204 "eh-ranges" to "eh_ranges".
13205 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
13206 to "subreg1".
2ba9daa7
AS
13207
13208
72a54528
AM
132092009-01-29 Andrey Belevantsev <abel@ispras.ru>
13210 Alexander Monakov <amonakov@ispras.ru>
13211
13212 PR middle-end/38857
13213 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
13214 register.
13215 (move_exprs_to_boundary): Change return type and pass through
13216 should_move from move_op. Relax assert. Update usage ...
13217 (schedule_expr_on_boundary): ... here. Use should_move instead of
13218 cant_move.
13219 (move_op_orig_expr_found): Indicate that insn was disconnected from
13220 stream.
13221 (code_motion_process_successors): Do not call after_merge_succs
13222 callback if original expression was not found when traversing any of
13223 the branches.
13224 (code_motion_path_driver): Change return type. Update prototype.
13225 (move_op): Update comment. Add a new parameter (should_move). Update
13226 prototype. Set *should_move based on indication provided by
13227 move_op_orig_expr_found.
13228
001b9eb6
PH
132292009-01-28 Pat Haugen <pthaugen@us.ibm.com>
13230
13231 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
13232 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
13233 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
13234 * config/rs6000/rs6000.c (rs6000_override_options): Default
13235 avoid-indexed-addresses on for Power6, off for everything else.
13236 (avoiding_indexed_address_p): New function.
13237 (rs6000_legitimize_address): Use it.
13238 (rs6000_legitimate_address): Likewise.
13239 * config/rs6000/rs6000.md (movXX_updateX): Likewise
13240
59dc4898
KH
132412009-01-28 Kazu Hirata <kazu@codesourcery.com>
13242
13243 PR tree-optimization/38997
13244 * tree-loop-distribution.c (generate_memset_zero): Use
13245 POINTER_PLUS_EXPR for a pointer addition.
13246
07da44ab
AK
132472009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
13248
13249 * config/s390/s390.md (bswap<mode>2): New pattern added.
13250
cdc15d23
WG
132512009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
13252
13253 * config/s390/s390.md (*tls_load_31): Added type attribute.
13254
d46f24b6
WG
132552009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
13256
13257 * config/s390/s390.md: Fix a few comments.
13258
729e750f
WG
132592009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
13260
13261 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
13262 (*tm<mode>_full): Fixed z10prop attribute.
13263 (*tst<mode>_extimm): Fixed z10prop attribute.
13264 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
13265 (*tstqiCCT_cconly): Fixed z10prop attribute.
13266 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
13267 (*movsi_larl): Fixed z10prop attribute.
13268 (*movsi_zarch): Fixed z10prop attribute.
13269 (*movsi_eas): Fixed z10prop attribute.
13270 (*movhi): Fixed z10prop attribute.
13271 (*movqi): Fixed z10prop attribute.
13272 (*movstrictqi): Fixed z10prop attribute.
13273 (*mov<mode>): Fixed z10prop attribute.
13274 (*movcc): Fixed z10prop attribute.
13275 (*sethighpartdi_64): Fixed z10prop attribute.
13276 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
13277 (*negdi2_sign_cc): Fixed z10prop attribute.
13278 (*negdi2_sign): Fixed z10prop attribute.
13279 (*absdi2_sign_cc): Fixed z10prop attribute.
13280 (*absdi2_sign): Fixed z10prop attribute.
13281 (*negabsdi2_sign_cc): Fixed z10prop attribute.
13282 (*negabsdi2_sign): Fixed z10prop attribute.
13283 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
13284 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
13285 (doloop_si64): Fixed z10prop attribute.
13286 (doloop_si31): Fixed z10prop attribute.
13287 (doloop_long): Fixed z10prop attribute.
13288 (indirect_jump): Fixed z10prop attribute.
13289 (nop): Fixed z10prop attribute.
13290 (main_base_64): Fixed z10prop attribute.
13291 (reload_base_64): Fixed z10prop attribute.
13292
c7789bfb
JJ
132932009-01-28 Jakub Jelinek <jakub@redhat.com>
13294
13295 PR rtl-optimization/38740
6b67572e
UB
13296 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
13297 if !optimize.
c7789bfb
JJ
13298 * config/mips/mips.c (mips_reorg): Likewise.
13299
de081cfd
RG
133002009-01-28 Richard Guenther <rguenther@suse.de>
13301
13302 PR tree-optimization/38926
13303 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
13304 with the correct value id to a value.
13305 (do_regular_insertion): Use the value number of edoubleprime
13306 for the value number of the expr.
13307
13308 Revert
13309 2008-08-21 Richard Guenther <rguenther@suse.de>
bf9b2cc9 13310
d748c406
UB
13311 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
13312 a PHI ask VN if it is already available.
13313 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
13314 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
de081cfd 13315
a9d386a1
JJ
133162009-01-28 Jakub Jelinek <jakub@redhat.com>
13317
13318 PR middle-end/38934
13319 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
13320 set to varying whenever max has TREE_OVERFLOW set, similarly
13321 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
13322
97a170cd
RG
133232009-01-28 Richard Guenther <rguenther@suse.de>
13324
13325 PR middle-end/38908
13326 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
13327 uninitialized aggregate uses in call arguments.
13328
89ebafc6
PB
133292009-01-28 Paolo Bonzini <bonzini@gnu.org>
13330
13331 PR tree-optimization/38984
13332 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
13333 the nothing_id variable if -fno-delete-null-pointer-checks.
13334
bef3c57b
UB
133352009-01-28 Uros Bizjak <ubizjak@gmail.com>
13336
13337 PR target/38988
13338 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
13339 (set_got_offset_rex64): Ditto.
13340
0c6390fa
L
133412009-01-27 H.J. Lu <hongjiu.lu@intel.com>
13342
13343 PR target/38941
13344 * doc/extend.texi: Improve local variable with asm reg.
13345
bee6fa6d
AN
133462009-01-27 Adam Nemet <anemet@caviumnetworks.com>
13347
13348 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
13349 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
13350 was not supplied then set warn_packed_bitfield_compat to the
13351 default value of 1.
13352 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
13353 against 1.
13354
b5c3dfbb
RG
133552009-01-27 Richard Guenther <rguenther@suse.de>
13356
13357 PR tree-optimization/38503
13358 * cfgexpand.c (expand_gimple_basic_block): Ignore
13359 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
13360 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
13361 variables that cannot have TBAA applied.
13362 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
13363 statements.
13364
d748c406 133652009-01-27 Uros Bizjak <ubizjak@gmail.com>
576de5cb
UB
13366
13367 PR middle-end/38969
13368 * calls.c (initialize_argument_information): Do not wrap complex
13369 arguments in SAVE_EXPR.
13370
9112bb38
AT
133712009-01-26 Andreas Tobler <a.tobler@schweiz.org>
13372
13373 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
5efb79fc 13374 (INSTALL_LIBGCC): Revert typo commit.
9112bb38 13375
4757704f
RG
133762009-01-26 Richard Guenther <rguenther@suse.de>
13377
13378 PR tree-optimization/38745
13379 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
13380 from special handling.
13381
e3e6cff4
RG
133822009-01-26 Richard Guenther <rguenther@suse.de>
13383
13384 PR tree-optimization/38745
13385 * tree-ssa.c (execute_update_addresses_taken): Do not include
13386 variables that cannot possibly be a register in not_reg_needs.
13387 Do not clear TREE_ADDRESSABLE on vars that may not become
13388 registers.
13389 * tree-ssa.c (update_alias_info_1): Include those in the set
13390 of addressable vars.
13391
dc874b53
RG
133922009-01-26 Richard Guenther <rguenther@suse.de>
13393
13394 PR middle-end/38851
13395 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
13396 * tree-ssa-dse.c: Include langhooks.h
13397 (execute_simple_dse): Remove stores with zero size.
13398
849421a3
JJ
133992009-01-24 Jakub Jelinek <jakub@redhat.com>
13400
13401 PR c/38957
13402 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
13403 as PLUS_EXPR.
13404
82f70421
JB
134052009-01-24 Julian Brown <julian@codesourcery.com>
13406
13407 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
13408 config/arm/linux-atomic.c.
13409 * config/arm/linux-atomic.c: New.
13410
863412d6
EB
134112009-01-24 Eric Botcazou <ebotcazou@adacore.com>
13412
13413 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
13414 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
13415 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
13416
8c684300
L
134172009-01-24 H.J. Lu <hongjiu.lu@intel.com>
13418
13419 PR c/38938
93f1527a 13420 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
8c684300
L
13421 properly.
13422
b840fb02
SP
134232009-01-24 Sebastian Pop <sebastian.pop@amd.com>
13424
13425 PR tree-optimization/38953
13426 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
13427 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
13428 (gloog): Split the exit of the scop when the scop exit is a loop exit.
13429 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
13430 changed the CFG.
13431
ecee559f
PB
134322009-01-24 Paul Brook <paul@codesourcery.com>
13433
13434 * config/arm/neon.md (neon_type): Move to arm.md.
13435 (neon_mov<VSTRUCT>): Add neon_type attribute.
13436 * config/arm/arm.md (neon_type): Move to here.
13437 (conds): Add "unconditioal" and use as default for NEON insns.
13438
61ad0914
BE
134392009-01-24 Ben Elliston <bje@au.ibm.com>
13440
13441 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
13442 void *' warning from -Wc++-compat.
13443 * Makefile.in (dominance.o-warn): Remove.
13444
38432148 134452009-01-23 Paolo Bonzini <bonzini@gnu.org>
9bacafeb
PB
13446
13447 PR tree-optimization/38932
13448 * fold-const.c (fold_unary_ignore_overflow): New.
13449 * tree.h (fold_unary_ignore_overflow): Declare.
13450 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
13451 * tree-ssa-sccvn.c (visit_reference_op_load,
13452 simplify_unary_expression): Likewise.
13453
2cd36c22
AN
134542009-01-22 Adam Nemet <anemet@caviumnetworks.com>
13455
13456 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
13457 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
13458 regardless of their type.
13459 * c-common.c (handle_packed_attribute): Don't ignore packed on
13460 bitfields.
13461 * c.opt (Wpacked-bitfield-compat): New warning option.
13462 * stor-layout.c (place_field): Warn if offset of a field changed.
13463 * doc/extend.texi (packed): Mention the ABI change.
13464 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
13465 (Warning Options): Add it to the list.
13466
e4e624ab
L
134672009-01-22 H.J. Lu <hongjiu.lu@intel.com>
13468
13469 * c-opts.c (c_common_post_options): Fix a typo in comments.
13470
d0ea0759
SE
134712009-01-22 Steve Ellcey <sje@cup.hp.com>
13472
13473 PR middle-end/38615
13474 * gimplify.c (gimplify_init_constructor): Fix promotion of const
13475 variables to static.
13476 * doc/invoke.texi (-fmerge-all-constants): Update description.
13477
87673f84
UB
134782009-01-22 Uros Bizjak <ubizjak@gmail.com>
13479
13480 PR target/38931
13481 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
13482 (*movdi_1_rex64): Use type "mmx" for alternative 5.
13483
96339268
RE
134842009-01-22 Richard Earnshaw <rearnsha@arm.com>
13485
13486 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
13487 a word boundary.
13488 (LOCAL_ALIGNMENT): Similarly.
13489
442dc742 134902009-01-22 Mark Shinwell <shinwell@codesourcery.com>
87673f84 13491 Joseph Myers <joseph@codesourcery.com>
442dc742
MS
13492
13493 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
13494 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
13495 * config/arm/arm-tune.md: Regenerate.
13496 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
13497 -march=iwmmxt2.
13498
9b34732e
MS
134992009-01-22 Mark Shinwell <shinwell@codesourcery.com>
13500
13501 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
13502 version number to five.
13503
03c2a308
DS
135042009-01-22 Dodji Seketeli <dodji@redhat.com>
13505
13506 PR c++/38930
ba20e309 13507 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
03c2a308
DS
13508 * c-common.c (set_underlying_type): Likewise.
13509 (is_typedef_decl ): Likewise
13510 * tree.h: Likewise
13511 (set_underlying_type): Likewise.
13512 (is_typedef_type): Likewise.
13513
1240d76e
VM
135142009-01-21 Vladimir Makarov <vmakarov@redhat.com>
13515
13516 PR middle-end/38587
13517 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
13518 crossing setjmps.
13519
b8a1087d
DK
135202009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
13521
13522 PR bootstrap/37660
13523 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
13524 (LIBGCC_SPEC): Don't define.
13525 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
13526
435da628
UB
135272009-01-21 Uros Bizjak <ubizjak@gmail.com>
13528
13529 PR rtl-optimization/38879
13530 * alias.c (base_alias_check): Unaligned access via AND address can
13531 alias all surrounding object types except those with sizes equal
13532 or wider than the size of unaligned access.
13533
d597b3ce
DS
135342009-01-21 Dodji Seketeli <dodji@redhat.com>
13535
13536 PR c++/26693
ba20e309 13537 * c-decl.c (clone_underlying_type): Move this ...
d597b3ce 13538 * c-common.c (set_underlying_type): ... here.
435da628 13539 Also, make sure the function properly sets TYPE_STUB_DECL() on
d597b3ce
DS
13540 the newly created typedef variant type.
13541 (is_typedef_decl ): New entry point.
13542 * tree.h: Added a new member member_types_needing_access_check to
13543 struct tree_decl_non_common.
13544 (set_underlying_type): New entry point.
13545 (is_typedef_type): Likewise.
13546
71a6fe66
BM
135472009-01-21 Bingfeng Mei <bmei@broadcom.com>
13548
13549 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
13550 Check whether two instructions have memory references that
13551 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
13552 are helper functions for traversing.
13553 * alias.h (insn_alias_sets_confilict_p): New prototypes.
13554 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
13555 not to draw dependency edge for instructions with non-conflicting
13556 alias sets.
13557
5a248274
JM
135582009-01-20 Joseph Myers <joseph@codesourcery.com>
13559
13560 PR other/38758
6b67572e
UB
13561 * longlong.h: Update copyright years. Use soft-fp license notice.
13562 Sync __clz_tab declaration with glibc.
5a248274 13563
4b84f3de
SE
135642009-01-20 Steve Ellcey <sje@cup.hp.com>
13565
13566 PR target/30687
13567 * doc/extend.texi (syscall_linkage): New.
13568 (version_id): Modify.
13569
37348bf1 135702009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
435da628 13571 Richard Guenther <rguenther@suse.de>
37348bf1
AP
13572
13573 PR tree-optimization/38747
13574 PR tree-optimization/38748
13575 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
13576 conversion if the base address is an indirect reference and the
13577 aliasing sets could cause issues.
13578
d0a58904
SP
135792009-01-20 Sebastian Pop <sebastian.pop@amd.com>
13580
2ba9daa7 13581 * common.opt (fgraphite, fgraphite-identity): Add comment for
d0a58904
SP
13582 explaining why these options are not documented.
13583
71e7afb2
SP
135842009-01-20 Sebastian Pop <sebastian.pop@amd.com>
13585
13586 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
13587 gimple_call_lhs is NULL.
13588
38432148 135892009-01-20 Paolo Bonzini <bonzini@gnu.org>
09efeca1
PB
13590
13591 PR target/38868
13592 * emit-rtl.c (adjust_address_1): Make sure memref is never
13593 overwritten.
13594
cbb8dee3
BE
135952009-01-20 Ben Elliston <bje@au.ibm.com>
13596
13597 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
435da628 13598 const qualifier from arg parameter. Remove unnecessary cast to char *.
cbb8dee3
BE
13599 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
13600 const qualifier from arg 2.
13601
72c66596
IS
136022009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
13603
435da628 13604 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
72c66596 13605
f68211cd
VM
136062009-01-19 Vladimir Makarov <vmakarov@redhat.com>
13607
13608 PR c/38869
13609 * rtl.h (reinit_regs): New prototype.
13610 * regclass.c: Include ira.h.
13611 (reinit_regs): New.
13612 * Makefile.in (regclass.o): Add ira.h.
13613 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
13614
6e4f1168
L
136152009-01-18 H.J. Lu <hongjiu.lu@intel.com>
13616
13617 PR target/38736
13618 * c-common.c (handle_aligned_attribute): Use
13619 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
13620 default alignment value.
13621
13622 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
13623
13624 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
13625 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
13626
13627 * doc/extend.texi: Update __attribute__ ((aligned)). Document
13628 __BIGGEST_ALIGNMENT__.
13629
13630 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
13631
890065bf
RG
136322009-01-18 Richard Guenther <rguenther@suse.de>
13633
13634 PR tree-optimization/38819
13635 * tree-flow.h (operation_could_trap_helper_p): Declare.
13636 * tree-eh.c (operation_could_trap_helper_p): Export.
13637 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
13638 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
13639 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
13640 are about to insert a possibly trapping instruction and fail
13641 in this case.
13642
a729d731
AS
136432009-01-18 Andreas Schwab <schwab@suse.de>
13644
13645 * doc/install.texi (Configuration): Remove obsolete paragraph
13646 about use of --with-gnu-ld with --with-gnu-as.
13647
a640c13b
KH
136482009-01-18 Kazu Hirata <kazu@codesourcery.com>
13649
13650 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
13651 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
13652 Follow spelling conventions.
13653
dba2cc0c
BE
136542009-01-18 Ben Elliston <bje@au.ibm.com>
13655
13656 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
13657 C++ warning about implicit conversion from void * to struct
13658 bitmap_head_def *.
13659 (bitmap_obstack_free): Likewise for bitmap_element *.
bc127c63 13660 * Makefile.in (bitmap.o-warn): Remove.
dba2cc0c 13661
2207a498
DK
136622009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
13663
13664 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
13665
8137e465
SP
136662009-01-17 Sebastian Pop <sebastian.pop@amd.com>
13667 Tobias Grosser <tobi.grosser@amd.com>
13668
13669 * graphite.c (graphite_trans_scop_block): Do not block single
13670 nested loops.
13671
5be1c58c
AO
136722009-01-16 Alexandre Oliva <aoliva@redhat.com>
13673
13674 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
13675 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
13676 test with assertion.
13677
786ce82d
RG
136782009-01-16 Richard Guenther <rguenther@suse.de>
13679
13680 PR tree-optimization/38835
13681 PR middle-end/36227
13682 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
13683 and INT + PTR -> (INT)(PTR p+ INT) folding.
13684 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
13685
c1cb09ad
AN
136862009-01-16 Adam Nemet <anemet@caviumnetworks.com>
13687
13688 PR target/38554
13689 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
13690 the subreg from a lowpart subreg if it is also casting the value.
13691
bcab4e19
SP
136922009-01-16 Sebastian Pop <sebastian.pop@amd.com>
13693 Tobias Grosser <tobi.grosser@amd.com>
13694
13695 * graphite.c (compare_prefix_loops): New.
13696 (build_scop_canonical_schedules): Rewritten.
13697 (graphite_transform_loops): Move build_scop_canonical_schedules
13698 after build_scop_iteration_domain.
13699
0b040072
SP
137002009-01-16 Sebastian Pop <sebastian.pop@amd.com>
13701 Tobias Grosser <tobi.grosser@amd.com>
13702
2ba9daa7 13703 * graphite.c (add_conditions_to_domain): Add the loops to
0b040072
SP
13704 the dimension of the iteration domain. Do copy the domain
13705 only when it exists.
13706 (build_scop_conditions_1): Do not call add_conditions_to_domain.
13707 (add_conditions_to_constraints): New.
13708 (can_generate_code_stmt, can_generate_code): Removed.
13709 (gloog): Do not call can_generate_code.
13710 (graphite_transform_loops): Call add_conditions_to_constraints
13711 after building the iteration domain.
13712
56c6a499
JJ
137132009-01-16 Jakub Jelinek <jakub@redhat.com>
13714
13715 PR tree-optimization/38789
13716 * tree-ssa-threadedge.c
13717 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
13718 __builtin_constant_p.
13719
c95b2534 137202009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
cd3f1729
KZ
13721
13722 * dce.c (delete_unmarked_insns): Reversed the order that insns are
13723 examined before deleting them.
2ba9daa7 13724
c433cb14
RE
137252009-01-16 Richard Earnshaw <rearnsha@arm.com>
13726
13727 * function.c (aggregate_value_p): Correctly extract the function
13728 type from CALL_EXPR_FN lookup.
13729
c95b2534 137302009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
27d62fa4
HS
13731
13732 * config/picochip/picochip.c (picochip_override_options): Revert
13733 CFI asm flag disable commited previously.
13734
c77bb78f
SP
137352009-01-15 Sebastian Pop <sebastian.pop@amd.com>
13736 Tobias Grosser <tobi.grosser@amd.com>
13737 Jan Sjodin <jan.sjodin@amd.com>
13738
13739 * graphite.c (scan_tree_for_params): On substractions negate
13740 all the coefficients of the term.
13741 (clast_to_gcc_expression_red): New. Handle reduction expressions
13742 of more than two operands.
13743 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
13744 (get_vdef_before_scop): Handle also the case of default definitions.
13745
574af2d6
RS
137462009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
13747
13748 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
13749 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
13750 Also use them when walking CALL_INSN_FUNCTION_USAGE.
13751
e939805b
L
137522009-01-15 H.J. Lu <hongjiu.lu@intel.com>
13753 Joey Ye <joey.ye@intel.com>
13754
13755 PR middle-end/37843
13756 * cfgexpand.c (expand_stack_alignment): Don't update stack
13757 boundary nor check incoming stack boundary here.
13758 (gimple_expand_cfg): Update stack boundary and check incoming
13759 stack boundary here.
13760
c95b2534 137612009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
750900db 13762
435da628 13763 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
2ba9daa7 13764
0196c95e
JJ
137652009-01-14 Jakub Jelinek <jakub@redhat.com>
13766
13767 PR rtl-optimization/38245
13768 * calls.c (expand_call): Add stack arguments to
13769 CALL_INSN_FUNCTION_USAGE even for pure calls (when
13770 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
13771 in regs and partially in memory or BLKmode arguments.
13772 (emit_library_call_value_1): Add stack arguments to
13773 CALL_INSN_FUNCTION_USAGE even for pure calls (when
13774 ACCUMULATE_OUTGOING_ARGS).
13775 * dce.c: Include tm_p.h.
13776 (find_call_stack_args): New function.
13777 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
13778 argument.
13779 (mark_insn): Call find_call_stack_args for CALL_Ps.
13780 (prescan_insns_for_dce): Walk insns backwards in bb rather than
13781 forwards. Allocate and free arg_stores bitmap if needed, pass it
13782 down to deletable_insn_p, don't mark stores set in arg_stores
13783 bitmap, clear the bitmap at the beginning of each bb.
13784 * Makefile.in (dce.o): Depend on $(TM_P_H).
13785
6df6bcfa
MM
137862009-01-14 Michael Meissner <gnu@the-meissners.org>
13787
13788 PR target/22599
435da628
UB
13789 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
13790 to make sure the insn is a conditional test (bug 22599). Reformat a
13791 few long lines.
6df6bcfa 13792
765ec70c
SP
137932009-01-14 Sebastian Pop <sebastian.pop@amd.com>
13794
13795 PR middle-end/38431
13796 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
13797 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
13798 (gloog): Do not call cleanup_tree_cfg.
2ba9daa7 13799 (graphite_transform_loops): Call cleanup_tree_cfg after all
765ec70c
SP
13800 scops have been code generated.
13801
7de2b688
BS
138022009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
13803 * doc/gty.texi (Invoking the garbage collector): Added new node
13804 and section documenting ggc_collect.
13805
10bd6c5c
RG
138062009-01-14 Richard Guenther <rguenther@suse.de>
13807
13808 PR tree-optimization/38826
13809 PR middle-end/38477
13810 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
13811 initialization notes only if we actually emitted a warning.
13812 (intra_create_variable_infos): Add constraints for a result decl
13813 that is passed by hidden reference.
13814 (build_pred_graph): Mark all related variables non-direct on
13815 address-taking.
13816
9c7c70ee
NC
138172009-01-14 Nick Clifton <nickc@redhat.com>
13818
13819 * ira-conflicts.c: Include addresses.h for the definition of
13820 base_reg_class.
435da628
UB
13821 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
13822 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
9c7c70ee 13823
cf0c2a60
VM
138242009-01-13 Vladimir Makarov <vmakarov@redhat.com>
13825
13826 PR target/38811
13827 * Makefile.in (ira-lives.o): Add except.h.
13828
13829 * ira-lives.c: Include except.h.
13830 (process_bb_node_lives): Process can_throw_internal.
13831
d3302fd3
JJ
138322009-01-13 Jakub Jelinek <jakub@redhat.com>
13833
13834 PR rtl-optimization/38774
13835 * combine.c (simplify_set): When undoing cc_use change, don't do
13836 PUT_CODE on the newly created comparison, but instead put back the
13837 old comparison.
13838
7ab23fd0
JM
138392009-01-13 Joseph Myers <joseph@codesourcery.com>
13840
13841 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
13842 values. Remove duplicate arm8 entry.
13843
f9344488
SP
138442009-01-13 Sebastian Pop <sebastian.pop@amd.com>
13845
13846 PR tree-optimization/38786
13847 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
13848 the SSA_NAME case of expand_scalar_variables_expr.
13849 Set the type of an expression to the type of its assign statement.
13850 (expand_scalar_variables_expr): Also gather the scalar computation
13851 used to index the memory access. Do not pass loop_p.
13852 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
13853 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
bef3c57b
UB
13854 the gimple_stmt_iterator where it inserts new code.
13855 Do not pass loop_p.
f9344488
SP
13856 (copy_bb_and_scalar_dependences): Do not pass loop_p.
13857 (translate_clast): Update call to copy_bb_and_scalar_dependences.
13858
2d8bb84d
SP
138592009-01-13 Sebastian Pop <sebastian.pop@amd.com>
13860
13861 * graphite.h (debug_value): Removed.
13862 * graphite.c (debug_value): Removed.
13863
ff128632
RE
138642009-01-13 Richard Earnshaw <rearnsha@arm.com>
13865
435da628
UB
13866 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
13867 ldrd/strd with two 32-bit instructions.
ff128632 13868
d5a0a47b
RE
138692009-01-13 Richard Earnshaw <rearnsha@arm.com>
13870
435da628
UB
13871 * config/arm/arm.c (struct processors): Pass for speed down into
13872 cost helper functions.
d5a0a47b
RE
13873 (const_ok_for_op): Handle COMPARE and inequality nodes.
13874 (arm_rtx_costs_1): Rewrite.
13875 (arm_size_rtx_costs): Update prototype.
13876 (arm_rtx_costs): Pass speed down to helper functions.
13877 (arm_slowmul_rtx_costs): Rework cost calculations.
13878 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
13879 (arm_9e_rtx_costs): Likewise.
13880
26d5bf5b
UB
138812009-01-13 Uros Bizjak <ubizjak@gmail.com>
13882
13883 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
435da628 13884 relocations of local symbols wider than UNITS_PER_WORD are not valid.
26d5bf5b
UB
13885 (alpha_legitimize_address): Do not split local symbols wider than
13886 UNITS_PER_WORD into HIGH/LO_SUM parts.
13887
5d14e3d5
DS
138882009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
13889
13890 PR bootstrap/38580
13891 * gcc.c (process_command): Replace call to execvp with calls
13892 to pex_one and exit.
13893
33faafca
AS
138942009-01-03 Anatoly Sokolov <aesok@post.ru>
13895
13896 PR target/29141
13897 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
13898 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
13899 variant for devices with 3-byte PC.
ba20e309 13900 (__tablejump_elpm__): New.
33faafca 13901
634b5df5
JJ
139022009-01-12 Jakub Jelinek <jakub@redhat.com>
13903
13904 PR c/32041
13905 * c-parser.c (c_parser_postfix_expression): Allow `->' in
13906 offsetof member-designator, handle it as `[0].'.
13907
2842bb86
JDA
139082009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13909
13910 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
13911 function when not using named sections on targets with named sections
13912 if branch distance is less than 262132.
13913
76ee70f6
RE
139142009-01-12 Richard Earnshaw <rearnsha@arm.com>
13915
13916 * combine.c (combine_instructions): Recompute
13917 optimize_this_for_speed_p for each BB in the main combine loop.
13918
f56e675d
TB
139192009-01-12 Tomas Bily <tbily@suse.cz>
13920
13921 PR middlend/38385
26d5bf5b
UB
13922 * tree-loop-distribution.c (prop_phis): New function.
13923 (generate_builtin): Call prop_phis.
13924 * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
f56e675d 13925
c2152239
JJ
139262009-01-12 Jakub Jelinek <jakub@redhat.com>
13927
13928 PR tree-optimization/38807
13929 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
13930 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
13931
0e510b3e
AN
139322009-01-11 Adam Nemet <anemet@caviumnetworks.com>
13933
13934 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
13935 subreg of op0 to the original op0.
13936
c95b2534 139372009-01-11 Laurent GUERBY <laurent@guerby.net>
10270471
LG
13938
13939 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
2ba9daa7 13940
53a7ff9a
MS
139412009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
13942
13943 PR debug/7055
60839f5d 13944 * mips-tfile.c (parse_def): Fix parsing of def strings
53a7ff9a
MS
13945 starting with digits.
13946
b3a796bc
JJ
139472009-01-10 Jakub Jelinek <jakub@redhat.com>
13948
13949 PR target/38695
13950 * config/arm/arm.c (arm_is_long_call_p): Don't call
13951 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
13952
b21b850e
SB
139532009-01-09 Steven Bosscher <steven@gcc.gnu.org>
13954
13955 * regrename.c (regrename_optimize): Fix dumping.
13956 (find_oldest_value_reg): Preserve REG_POINTER.
13957 (copy_hardreg_forward_1): Likewise.
13958
e0e10d3a
DN
139592009-01-09 Diego Novillo <dnovillo@google.com>
13960
bf9b2cc9 13961 * gimple.h (struct gimple_statement_base) <uid>: Document
e0e10d3a
DN
13962 the restrictions on its use.
13963 (gimple_uid): Tidy.
13964 (gimple_set_uid): Tidy.
13965
c9da2ae8
JJ
139662009-01-09 Jakub Jelinek <jakub@redhat.com>
13967
13968 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
13969 zero guard even if align_bytes != 0 and count is smaller than
13970 size_needed.
13971
38432148 139722009-01-09 Vladimir Makarov <vmakarov@redhat.com>
a174c19c
VM
13973
13974 PR rtl-optimization/38495
26d5bf5b 13975 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
a174c19c
VM
13976 (add_range_and_copies_from_move_list): Print all added ranges.
13977 Add ranges to memory optimized destination.
13978
260fda3d
JJ
139792009-01-09 Jakub Jelinek <jakub@redhat.com>
13980
6f6278ad
JJ
13981 PR target/38686
13982 PR target/38708
13983 * config/i386/i386.c (override_options): Reject
13984 -mstringop-strategy=rep_8byte with -m32.
13985 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
13986 to 1. Do count comparison against epilogue_size_needed at compile
13987 time even when count_exp was constant forced into register. For
13988 size_needed don't jump to epilogue, instead just avoid aligning
13989 and invoke the body algorithm. If need_zero_guard, add zero guard
13990 even if count is non-zero, but smaller than size_needed + number of
13991 bytes that could be stored for alignment.
13992 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
13993 to 1. If need_zero_guard, add zero guard even if count is non-zero,
13994 but smaller than size_needed + number of bytes that could be stored
13995 for alignment. Compare size_needed with epilogue_size_needed instead
13996 of desired_align - align, don't adjust size_needed, pass
13997 epilogue_size_needed to the epilogue expanders.
13998
260fda3d 13999 PR c/35742
26d5bf5b 14000 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
260fda3d 14001
67b846fa
JDA
140022009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14003
14004 * pa.c (last_address): Change to unsigned.
14005 (update_total_code_bytes): Change argument to unsigned. Don't
14006 check if insn addresses are set.
14007 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
14008 addresses are not set.
14009 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
14010
91c82473
NC
140112009-01-09 Nick Clifton <nickc@redhat.com>
14012
14013 * config/sh/symbian.c: Replace uses of DECL_INLINE with
14014 DECL_DECLARED_INLINE_P.
14015
4017e262
JJ
140162009-01-09 Jakub Jelinek <jakub@redhat.com>
14017
0a49e5c2
JJ
14018 PR middle-end/38347
14019 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
14020 GET_MODE (op0) in operand_subword_force calls.
14021
4017e262
JJ
14022 PR middle-end/38771
14023 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
14024 fold_convert arg0 operands to TREE_TYPE (op0) first.
14025
7cd06356
VM
140262009-01-08 Vladimir Makarov <vmakarov@redhat.com>
14027
14028 * params.def (ira-max-conflict-table-size): Decrease default value
14029 to 1000.
14030
96867bbd
JJ
140312009-01-08 Jakub Jelinek <jakub@redhat.com>
14032
14033 PR tree-optimization/37031
14034 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
14035 on parameter_set.
14036 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
14037 allocate it using gc instead of heap, use VEC_quick_push instead of
14038 VEC_safe_push.
14039 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
14040 instead of heap, use VEC_quick_push instead of VEC_safe_push.
14041 * tree-data-ref.h (struct access_matrix): Change matrix to gc
14042 allocated vector from heap allocated.
14043 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
14044 * tree-loop-linear.c (linear_transform_loops): Allocate nest
14045 vector only after perfect_loop_nest_depth call.
14046
68f61c3d
SP
140472009-01-08 Sebastian Pop <sebastian.pop@amd.com>
14048 Jan Sjodin <jan.sjodin@amd.com>
14049
14050 PR tree-optimization/38559
14051 * graphite.c (debug_value, copy_constraint,
14052 swap_constraint_variables, scale_constraint_variable, ): New.
14053 (get_lower_bound, get_upper_bound): Removed.
14054 (graphite_trans_bb_strip_mine): Clean up this code that works
14055 only for constant number of iterations. Fully copy upper and
14056 lower bound constraints, not only the constant part of them.
14057 * graphite.h (debug_value): Declared.
14058
82567e33
IR
140592009-01-08 Ira Rosen <irar@il.ibm.com>
14060
14061 PR tree-optimization/37194
14062 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
2ba9daa7 14063 Don't add the cost of cost model guard in prologue to scalar
82567e33
IR
14064 outside cost in case of known number of iterations.
14065
7da13f1d
NF
140662009-01-07 Nathan Froyd <froydnj@codesourcery.com>
14067 Alan Modra <amodra@bigpond.net.au>
14068
14069 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
14070 non-word-aligned REG+CONST addressing.
14071
c0f64575
UB
140722009-01-07 Uros Bizjak <ubizjak@gmail.com>
14073
14074 PR target/38706
14075 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
14076 free_after_compilation when outputting a thunk.
14077 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
14078 Do not call free_after_compilation here.
14079
301b6a4e
UB
140802009-01-07 Uros Bizjak <ubizjak@gmail.com>
14081
14082 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
301b6a4e
UB
14083 (ix86_valid_target_attribute_inner_p): Ditto.
14084
6a114766
JS
140852009-01-07 Jan Sjodin <jan.sjodin@amd.com>
14086
14087 PR tree-optimization/38492
14088 PR tree-optimization/38498
14089 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
14090 * tree-chrec.h (scev_is_linear_expression): Declared.
14091 * graphite.c (graphite_cannot_represent_loop_niter): New.
14092 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
14093 (graphite_loop_normal_form): Use gcc_assert.
14094 (scan_tree_for_params): Use CASE_CONVERT.
14095 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
14096 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
14097 Use gcc_assert. Discard scops that contain unhandled cases.
14098 (build_scop_conditions): Return a boolean status for unhandled cases.
14099 (strip_mine_profitable_p): Print the loop number, not its depth.
14100 (is_interchange_valid): Pass the depth of the loop nest, don't
14101 recompute it wrongly.
14102 (graphite_trans_bb_block): Same.
14103 (graphite_trans_bb_block): Print tentative of loop blocking.
14104 (graphite_trans_scop_block): Do not print that the loop has been
14105 blocked.
14106 (graphite_transform_loops): Do not handle scops that contain condition
14107 scalar phi nodes.
14108
65b82caa
L
141092009-01-07 H.J. Lu <hongjiu.lu@intel.com>
14110
14111 AVX Programming Reference (December, 2008)
14112 * config/i386/avxintrin.h (_mm256_stream_si256): New.
14113 (_mm256_stream_pd): Likewise.
14114 (_mm256_stream_ps): Likewise.
14115
14116 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
14117 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
14118 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
14119 (bdesc_special_args): Add __builtin_ia32_movntdq256,
14120 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
14121 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
14122 (ix86_expand_special_args_builtin): Likewise.
14123
14124 * config/i386/sse.md (AVXMODEDI): New.
14125 (avx_movnt<mode>): Likewise.
14126 (avx_movnt<mode>): Likewise.
14127 (<sse>_movnt<mode>): Remove AVX support.
14128 (sse2_movntv2di): Likewise.
14129
cef158f9
RG
141302009-01-07 Richard Guenther <rguenther@suse.de>
14131
14132 PR middle-end/38751
14133 * fold-const.c (extract_muldiv): Remove obsolete comment.
14134 (fold_plusminus_mult_expr): Undo MINUS_EXPR
14135 to PLUS_EXPR canonicalization for the canonicalization.
14136
246cb5be
GP
141372009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
14138
14139 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
14140 hosted cross-compilers generating less efficient code.
14141
84b9b872
RS
141422009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
14143
14144 * function.h (rtl_data): Add a dbr_scheduled_p field.
14145 * reorg.c (dbr_schedule): Set it.
14146 (gate_handle_delay_slots): Check it.
14147 * config/mips/mips.c (mips_base_delayed_branch): Delete.
14148 (mips_reorg): Check flag_delayed_branch instead of
14149 mips_base_delayed_branch.
14150 (mips_override_options): Don't set mips_base_delayed_branch
14151 or flag_delayed_branch.
14152
ace984c8
RS
141532009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
14154
14155 PR rtl-optimization/38426.
14156 * ira.c (ira): Set current_function_is_leaf earlier.
14157
7ad7809b
JJ
141582009-01-06 Jakub Jelinek <jakub@redhat.com>
14159
14160 PR rtl-optimization/38722
14161 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
14162 too early, only set a flag and modify after last possible
14163 undo_all point.
14164
c52ec948
JJ
141652009-01-06 Janis Johnson <janis187@us.ibm.com>
14166
14167 PR c/34252
14168 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
14169 * real.c (decimal_single_format): Correct values of emin and emax.
14170 (decimal_double_format): Ditto.
14171 (decimal_quad_format): Ditto.
14172 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
14173 computation of DECnn_MIN and DECnn_MAX for corrected values of
14174 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
14175 __DECnn_MIN__, and adjust its computation for the corrected value
14176 of emin.
14177
300240e1
JH
141782009-01-06 Jan Hubicka <jh@suse.cz>
14179
14180 PR target/38744
435da628 14181 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
300240e1 14182
271c069e
GP
141832009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
14184
14185 * doc/contrib.texi (Contributors): Slightly adjust the end note.
14186 Add Robert Clark to the list of testers.
14187
64e4c301 141882009-01-06 Jan Hubicka <jh@suse.cz>
c95b2534 14189 Kai Tietz <kai.tietz@onevision.com>
64e4c301 14190
435da628
UB
14191 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
14192 * config/i386/i386.c (ix86_expand_call): Add clobbers.
64e4c301 14193
7650b83e 141942009-01-06 Jan Hubicka <jh@suse.cz>
c95b2534 14195 Kai Tietz <kai.tietz@onevision.com>
7650b83e 14196
435da628
UB
14197 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
14198 for w64 ABI.
14199 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
7650b83e
JH
14200 (ix86_nsaved_regs): Count only general purpose regs.
14201 (ix86_nsaved_sseregs): New.
14202 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
14203 to 16 for w64; compute padding and size of sse reg save area.
301b6a4e
UB
14204 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
14205 general purpose regs.
7650b83e
JH
14206 (ix86_emit_save_sse_regs_using_mov): New.
14207 (ix86_expand_prologue): Save SSE regs if needed.
14208 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
14209 (ix86_emit_restore_sse_regs_using_mov): New.
14210 (ix86_expand_epilogue): Save SSE regs if needed.
14211
9aa5c1b2 142122009-01-06 Jan Hubicka <jh@suse.cz>
c95b2534 14213 Kai Tietz <kai.tietz@onevision.com>
9aa5c1b2 14214
435da628
UB
14215 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
14216 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
14217 functions when accumulate outgoing args is off.
9aa5c1b2 14218
f7556aae
L
142192009-01-06 H.J. Lu <hongjiu.lu@intel.com>
14220
14221 PR bootstrap/38742
14222 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
14223 before using pseudos_have_intersected_live_ranges_p.
14224
14225 * ira-int.h (ira_assert): Always define.
14226
e47b7d04
L
142272009-01-06 H.J. Lu <hongjiu.lu@intel.com>
14228
14229 AVX Programming Reference (December, 2008)
14230 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
14231 (_mm256_permute2_pd): Likewise.
14232 (_mm_permute2_ps): Likewise.
14233 (_mm256_permute2_ps): Likewise.
14234 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
14235 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
14236
14237 * config/i386/i386.c (ix86_builtins): Remove
14238 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
14239 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
14240 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
14241 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
14242 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
14243 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
14244 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
14245 __builtin_ia32_vpermil2ps256.
14246 (ix86_init_mmx_sse_builtins): Updated.
14247 (ix86_expand_args_builtin): Likewise.
14248
44b86471
JDA
142492009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14250
e47b7d04
L
14251 * pa.c (output_call): Relocate non-jump insns in the delay slot of
14252 long absolute calls when generating PA 2.0 code.
44b86471 14253
311aab06
VM
142542009-01-05 Vladimir Makarov <vmakarov@redhat.com>
14255
14256 PR rtl-optimization/38583
14257 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
14258
14259 * params.def (ira-max-conflict-table-size): New.
14260
14261 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
2ba9daa7 14262
311aab06 14263 * ira.h (ira_conflicts_p): New external definition.
2ba9daa7 14264
311aab06
VM
14265 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
14266 table. Report this. Return result of building.
14267 (ira_build_conflicts): Use ira_conflicts_p. Check result of
14268 building conflict table.
14269
301b6a4e 14270 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
311aab06 14271 (ira_color): Use ira_conflicts_p.
2ba9daa7 14272
311aab06
VM
14273 * global.c: Include ira.h.
14274 (pseudo_for_reload_consideration_p, build_insn_chain): Use
14275 ira_conflicts_p.
14276
14277 * Makefile.in (global.o): Add ira.h.
2ba9daa7 14278
311aab06
VM
14279 * ira-build.c (mark_all_loops_for_removal,
14280 propagate_some_info_from_allocno): New.
14281 (remove_unnecessary_allocnos): Call
14282 propagate_some_info_from_allocno.
14283 (remove_low_level_allocnos): New.
14284 (remove_unnecessary_regions): Add parameter. Call
14285 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
14286 parameter to remove_unnecessary_regions.
14287 (ira_build): Remove all regions but root if the conflict table was
14288 not built. Update conflict hard regs for allocnos crossing calls.
14289
14290 * ira.c (ira_conflicts_p): New global.
14291 (ira): Define and use ira_conflicts_p.
14292
14293 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
14294 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
301b6a4e 14295 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
2ba9daa7 14296
5641785f
BE
142972009-01-06 Ben Elliston <bje@au.ibm.com>
14298
14299 * gengtype-lex.l (YY_NO_INPUT): Define.
14300
e4e5261f
AP
143012009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
14302
14303 PR c/34911
5641785f
BE
14304 * c-common.c (handle_vector_size_attribute): Also reject
14305 BOOLEAN_TYPE types.
e4e5261f 14306
7b10257f
SP
143072009-01-05 Sebastian Pop <sebastian.pop@amd.com>
14308
14309 PR tree-optimization/38492
14310 * graphite.c (rename_map_elt, debug_rename_elt,
301b6a4e
UB
14311 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
14312 rename_map_elt_info, eq_rename_map_elts,
14313 get_new_name_from_old_name, bb_in_sese_p): Moved around.
7b10257f
SP
14314 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
14315 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
14316 (sese_build_livein_liveouts): New.
14317 (new_sese, free_sese): New.
14318 (new_scop): Call new_sese.
14319 (free_scop): Call free_sese.
14320 (rename_variables_from_edge, rename_phis_end_scop): Removed.
14321 (register_old_new_names): Renamed register_old_and_new_names.
14322 (register_scop_liveout_renames, add_loop_exit_phis,
14323 insert_loop_close_phis, struct igp,
14324 default_liveout_before_guard, add_guard_exit_phis,
14325 insert_guard_phis, copy_renames): New.
14326 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
14327 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
14328 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
14329 (scop_adjust_phis_for_liveouts): New.
14330 (gloog): Call scop_adjust_phis_for_liveouts.
14331
14332 * graphite.h (struct sese): Documented. Added fields liveout,
301b6a4e 14333 num_ver and livein.
7b10257f
SP
14334 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
14335 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
14336 (struct scop): Added field liveout_renames.
14337 (SCOP_LIVEOUT_RENAMES): New.
14338
9761fcc7
HJ
143392009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
14340
14341 PR tree-optimization/38510
14342 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
14343 (translate_clast): Call recompute_all_dominators before
14344 graphite_verify.
14345 (gloog): Call recompute_all_dominators before graphite_verify.
14346
143472009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
c95b2534 14348 Jan Sjodin <jan.sjodin@amd.com>
9761fcc7
HJ
14349
14350 PR tree-optimization/38500
14351 * graphite.c (create_sese_edges): Call fix_loop_structure after
14352 splitting blocks.
14353
c95b2534 143542009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
48a01864
JS
14355
14356 * config.gcc: Add m32r*-*-rtems*.
14357 * config/m32r/rtems.h: New file.
14358
fc0cd180
BE
143592009-01-05 Ben Elliston <bje@au.ibm.com>
14360
14361 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
14362 (.po.pox): Likewise.
14363 (po/gcc.pot): Likewise.
14364
3106d8e5
DM
143652009-01-04 David S. Miller <davem@davemloft.net>
14366
14367 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
14368 (STARTING_FRAME_OFFSET): Always set to zero.
14369
0009b473
RS
143702009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
14371
14372 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
14373 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
14374 fixed-point types, and vectors of the same.
14375
4f24c6d6
RS
143762009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
14377
14378 * config/mips/sync.md (*mb_barrier): Rename to...
14379 (*memory_barrier): ...this.
14380
1df48f5c
JW
143812009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
14382
14383 * doc/extend.texi (Function Attributes): Move @cindex after @item
eefe5da0 14384 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
1df48f5c
JW
14385 and put in alphabetical order. Fix 'target' name and put in order.
14386 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
14387 typos.
14388
1a8c13b3
UB
143892009-01-04 Uros Bizjak <ubizjak@gmail.com>
14390
14391 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
14392 (memory_barrier): Expand as unspec instead of unspec_volatile.
14393 Remove mem:BLK from insn operands. Use Pmode scratch register.
14394 (*memory_barrier): Define as unspec instead of unspec_volatile.
14395 Use (match_dup 0) as input operand.
14396
14397 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
14398 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
14399 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
14400 scratch register. Remove operand 1.
14401 (*stbar): Define as unspec instead of unspec_volatile.
14402 Use (match_dup 0) as input operand, remove (const_int 8).
14403 (*membar): Define as unspec instead of unspec_volatile.
14404 Use (match_dup 0) as input operand, remove input operand 2.
14405
14406 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
14407 (memory_barrier): Expand as unspec instead of unspec_volatile.
14408 Remove mem:BLK from insn operands. Use Pmode scratch register.
14409 (*memory_barrier): Define as unspec instead of unspec_volatile.
14410 Use (match_dup 0) as input operand.
14411
14412 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
14413 Remove mem:BLK from insn operands. Use Pmode scratch register.
14414 Set volatile flag on operand 0.
14415 (*memory_barrier): New insn pattern.
14416
14417 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
14418 insn operands.
14419 (*memory_barrier): Use (match_dup 0) as input operand.
14420
14421 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
14422 Remove mem:BLK from insn operands. Use Pmode scratch register.
14423 Set volatile flag on operand 0.
301b6a4e 14424 (*mb_internal): New insn pattern.
1a8c13b3
UB
14425
14426 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
14427
fb0703f7
SB
144282009-01-04 Steven Bosscher <steven@gcc.gnu.org>
14429
14430 PR middle-end/38586
14431 * function.c (struct temp_slot): Move to the section of the file
14432 that deals with temp slots. Remove field 'address'.
14433 (temp_slot_address_table): New hash table of address -> temp slot.
14434 (struct temp_slot_address_entry): New struct, items for the table.
14435 (temp_slot_address_compute_hash, temp_slot_address_hash,
14436 temp_slot_address_eq, insert_temp_slot_address): Support functions
14437 for the new table.
14438 (find_temp_slot_from_address): Rewrite to use the new hash table.
14439 (remove_unused_temp_slot_addresses): Remove addresses of temp
14440 slots that have been made available.
14441 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
14442 worker function for remove_unused_temp_slot_addresses.
14443 (assign_stack_temp_for_type): Don't clear the temp slot address list.
14444 Add the temp slot address to the address -> temp slot map.
14445 (update_temp_slot_address): Update via insert_temp_slot_address.
14446 (free_temp_slots): Call remove_unused_temp_slot_addresses.
14447 (pop_temp_slots): Likewise.
14448 (init_temp_slots): Allocate the address -> temp slot map, or empty
14449 the map if it is already allocated.
14450 (prepare_function_start): Initialize temp slot processing.
14451
b5a430f3
SB
144522009-01-04 Steven Bosscher <steven@gcc.gnu.org>
14453
14454 PR middle-end/38584
14455 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
14456 Calculate the size of all stack vars assuming no packing of stack
14457 vars will happen, replacing a quadratic algorithm with a linear one.
14458
5d560619
JJ
144592009-01-03 Jakub Jelinek <jakub@redhat.com>
14460
14461 PR target/38707
14462 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
14463 can't be used.
14464
953a7caa
DN
144652009-01-03 Diego Novillo <dnovillo@google.com>
14466
14467 * doc/contrib.texi: Update contributions.
14468
5f26a230
JJ
144692009-01-03 Jakub Jelinek <jakub@redhat.com>
14470
493aa551
JJ
14471 PR c++/38705
14472 * builtins.c (fold_builtin_memory_op): Give up if either operand
14473 is volatile. Set srctype or desttype to non-qualified version
14474 of the other type.
14475
5f26a230
JJ
14476 PR c/38700
14477 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
14478 and FUNCTION_DECLs.
14479
c95b2534 144802009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
fafe34f9
KZ
14481
14482 PR rtl-optimization/35805
14483 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
14484 problem if fast dce is able to remove any instructions.
14485 * dce.c (dce_process_block): Fix dump message.
2ba9daa7 14486
0b355794
MM
144872009-01-02 Mark Mitchell <mark@codesourcery.com>
14488
14489 PR 33649
14490 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
14491
0cf0d02b
JJ
144922009-01-02 Jakub Jelinek <jakub@redhat.com>
14493
14494 PR middle-end/38690
14495 * tree-flow.h (op_code_prio, op_prio): New prototypes.
14496 * tree-pretty-print.c (op_code_prio): New function.
14497 (op_prio): No longer static. Use op_code_prio.
14498 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
14499 Use op_prio and op_code_prio to determine if () should be
14500 printed around operand(s) or not.
14501
14502 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
14503 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
14504 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
14505 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
14506 pp_character instead of pp_string for single letter printing.
14507
e3606f3b
RS
145082009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14509
14510 * doc/extend.texi: Fix '#pragma GCC option' typo.
14511
c95b2534 145122009-01-02 Richard Guenther <rguenther@suse.de>
00f39bd5 14513
a5f061dc
RG
14514 * doc/install.texi (--enable-checking): Mention different
14515 default for stage1.
14516 (--enable-stage1-checking): Document.
00f39bd5 14517
26de0bcb
AP
145182009-01-01 Andrew Pinski <pinskia@gmail.com>
14519
14520 PR middle-end/30142
14521 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
14522 case to be an error.
14523
7a7d8fab
BE
145242009-01-02 Ben Elliston <bje@au.ibm.com>
14525
14526 * config/fp-bit.h (pack_d): Constify argument.
14527 * config/fp-bit.c (makenan): Constify return type. Remove casts.
14528 (isnan): Constify argument.
14529 (isinf): Likewise.
14530 (iszero): Likewise.
14531 (pack_d): Likewise.
14532 (_fpadd_parts): Constify return type.
14533 (_fpmul_parts): Likewise.
14534 (_fpdiv_parts): Likewise.
14535
b295aee2
JJ
145362009-01-01 Jakub Jelinek <jakub@redhat.com>
14537
14538 PR c/36489
14539 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
14540 warn about overwriting initializer with side-effects or
14541 -Woverride-init if !IMPLICIT.
14542 (output_init_element): Likewise. Pass IMPLICIT down to
14543 add_pending_init.
14544 (process_init_element): Add IMPLICIT argument. Pass it down
14545 to output_init_element.
14546 (push_init_element, pop_init_level, set_designator): Adjust
14547 process_init_element callers.
14548 (set_nonincremental_init, set_nonincremental_init_from_string):
14549 Adjust add_pending_init callers.
14550 (output_pending_init_elements): Adjust output_init_element callers.
14551 * c-tree.h (process_init_element): Adjust prototype.
14552 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
14553 process_init_element callers.
ad41bd84
JM
14554
14555\f
14556Copyright (C) 2009 Free Software Foundation, Inc.
14557
14558Copying and distribution of this file, with or without modification,
14559are permitted in any medium without royalty provided the copyright
14560notice and this notice are preserved.